diff --git a/datacenter/.gitignore b/datacenter/.gitignore index 8f322f0d8..90a819b9c 100644 --- a/datacenter/.gitignore +++ b/datacenter/.gitignore @@ -25,7 +25,7 @@ yarn-debug.log* yarn-error.log* # local env files -.env*.local +.env.prod # vercel .vercel diff --git a/datacenter/next.config.js b/datacenter/next.config.js index b1f8602d8..9ebb2f610 100644 --- a/datacenter/next.config.js +++ b/datacenter/next.config.js @@ -8,7 +8,7 @@ const nextConfig = { ignoreBuildErrors: true }, env: { - API_BASE_URL: process.env.NEXT_PUBLIC_API_BASE_URL ||'http://120.26.193.159:5000' + API_BASE_URL: process.env.API_BASE_URL }, trailingSlash: true } diff --git a/datacenter/package.json b/datacenter/package.json index 038b415ab..3bdcb8bac 100644 --- a/datacenter/package.json +++ b/datacenter/package.json @@ -5,6 +5,7 @@ "scripts": { "dev": "next dev", "build": "next build", + "build:prod": "APP_ENV=prod next build", "start": "next start", "lint": "next lint", "export": "next export", diff --git a/pilot/scene/chat_db/auto_execute/out_parser.py b/pilot/scene/chat_db/auto_execute/out_parser.py index d56c24984..5ae3cc111 100644 --- a/pilot/scene/chat_db/auto_execute/out_parser.py +++ b/pilot/scene/chat_db/auto_execute/out_parser.py @@ -27,7 +27,11 @@ class DbChatOutputParser(BaseOutputParser): clean_str = super().parse_prompt_response(model_out_text) print("clean prompt response:", clean_str) response = json.loads(clean_str) - sql, thoughts = response["sql"], response["thoughts"] + for key in sorted(response): + if key.strip() == 'sql': + sql =response[key] + if key.strip() == 'thoughts': + thoughts =response[key] return SqlAction(sql, thoughts) def parse_view_response(self, speak, data) -> str: diff --git a/pilot/scene/chat_execution/out_parser.py b/pilot/scene/chat_execution/out_parser.py index 565d54c5e..1124fa528 100644 --- a/pilot/scene/chat_execution/out_parser.py +++ b/pilot/scene/chat_execution/out_parser.py @@ -28,11 +28,13 @@ class PluginChatOutputParser(BaseOutputParser): except Exception as e: raise ValueError("model server out not fllow the prompt!") - command, thoughts, speak = ( - response["command"], - response["thoughts"], - response["speak"], - ) + for key in sorted(response): + if key.strip() == 'command': + command =response[key] + if key.strip() == 'thoughts': + thoughts =response[key] + if key.strip() == 'speak': + speak =response[key] return PluginAction(command, speak, thoughts) def parse_view_response(self, speak, data) -> str: diff --git a/pilot/server/static/404.html b/pilot/server/static/404.html index a4feabea5..8e860bd5b 100644 --- a/pilot/server/static/404.html +++ b/pilot/server/static/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/pilot/server/static/404/index.html b/pilot/server/static/404/index.html index a4feabea5..8e860bd5b 100644 --- a/pilot/server/static/404/index.html +++ b/pilot/server/static/404/index.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/pilot/server/static/_next/static/78-6fvqkDkgeOnUsWIzRd/_buildManifest.js b/pilot/server/static/_next/static/7kBNiPNqLEMy4jACgzMf4/_buildManifest.js similarity index 100% rename from pilot/server/static/_next/static/78-6fvqkDkgeOnUsWIzRd/_buildManifest.js rename to pilot/server/static/_next/static/7kBNiPNqLEMy4jACgzMf4/_buildManifest.js diff --git a/pilot/server/static/_next/static/78-6fvqkDkgeOnUsWIzRd/_ssgManifest.js b/pilot/server/static/_next/static/7kBNiPNqLEMy4jACgzMf4/_ssgManifest.js similarity index 100% rename from pilot/server/static/_next/static/78-6fvqkDkgeOnUsWIzRd/_ssgManifest.js rename to pilot/server/static/_next/static/7kBNiPNqLEMy4jACgzMf4/_ssgManifest.js diff --git a/pilot/server/static/_next/static/BVzBiuHGuyq42mJZb_YZ8/_buildManifest.js b/pilot/server/static/_next/static/BVzBiuHGuyq42mJZb_YZ8/_buildManifest.js deleted file mode 100644 index cb10d35e8..000000000 --- a/pilot/server/static/_next/static/BVzBiuHGuyq42mJZb_YZ8/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-f5357f382422dd96.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/pilot/server/static/_next/static/BVzBiuHGuyq42mJZb_YZ8/_ssgManifest.js b/pilot/server/static/_next/static/BVzBiuHGuyq42mJZb_YZ8/_ssgManifest.js deleted file mode 100644 index 5b3ff592f..000000000 --- a/pilot/server/static/_next/static/BVzBiuHGuyq42mJZb_YZ8/_ssgManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/pilot/server/static/_next/static/C5iDQ207eyReb9bRXegbu/_buildManifest.js b/pilot/server/static/_next/static/C5iDQ207eyReb9bRXegbu/_buildManifest.js deleted file mode 100644 index cb10d35e8..000000000 --- a/pilot/server/static/_next/static/C5iDQ207eyReb9bRXegbu/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-f5357f382422dd96.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/pilot/server/static/_next/static/C5iDQ207eyReb9bRXegbu/_ssgManifest.js b/pilot/server/static/_next/static/C5iDQ207eyReb9bRXegbu/_ssgManifest.js deleted file mode 100644 index 5b3ff592f..000000000 --- a/pilot/server/static/_next/static/C5iDQ207eyReb9bRXegbu/_ssgManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/pilot/server/static/_next/static/I32BqNR_oBtzM3ewXQsG-/_buildManifest.js b/pilot/server/static/_next/static/I32BqNR_oBtzM3ewXQsG-/_buildManifest.js deleted file mode 100644 index cb10d35e8..000000000 --- a/pilot/server/static/_next/static/I32BqNR_oBtzM3ewXQsG-/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-f5357f382422dd96.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/pilot/server/static/_next/static/I32BqNR_oBtzM3ewXQsG-/_ssgManifest.js b/pilot/server/static/_next/static/I32BqNR_oBtzM3ewXQsG-/_ssgManifest.js deleted file mode 100644 index 5b3ff592f..000000000 --- a/pilot/server/static/_next/static/I32BqNR_oBtzM3ewXQsG-/_ssgManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/214-6da104d67aad51e5.js b/pilot/server/static/_next/static/chunks/214-6da104d67aad51e5.js new file mode 100644 index 000000000..a72d54157 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/214-6da104d67aad51e5.js @@ -0,0 +1,6 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[214],{91083:function(t){!function(){var e={675:function(t,e){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,i=u(t),s=i[0],a=i[1],f=new o((s+a)*3/4-a),l=0,c=a>0?s-4:s;for(r=0;r>16&255,f[l++]=e>>8&255,f[l++]=255&e;return 2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,f[l++]=255&e),1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,f[l++]=e>>8&255,f[l++]=255&e),f},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],s=0,a=n-o;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(t,s,s+16383>a?a:s+16383));return 1===o?i.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===o&&i.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=i.length;s0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(t,e,r){"use strict";/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */var n=r(675),o=r(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(t){if(t>2147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!a.isEncoding(e))throw TypeError("Unknown encoding: "+e);var r=0|p(t,e),n=s(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}(t,e);if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(U(t,ArrayBuffer)||t&&U(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(U(t,SharedArrayBuffer)||t&&U(t.buffer,SharedArrayBuffer)))return function(t,e,r){var n;if(e<0||t.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||U(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return R(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(t).length;default:if(o)return n?-1:R(t).length;e=(""+e).toLowerCase(),o=!0}}function d(t,e,r){var o,i,s=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(i=r=+r)!=i&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return -1;r=t.length-1}else if(r<0){if(!o)return -1;r=0}if("string"==typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,o);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,o);throw TypeError("val must be string, number or Buffer")}function m(t,e,r,n,o){var i,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;s=2,a/=2,u/=2,r/=2}function f(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){var l=-1;for(i=r;ia&&(r=a-u),i=r;i>=0;i--){for(var c=!0,h=0;h239?4:f>223?3:f>191?2:1;if(o+c<=r)switch(c){case 1:f<128&&(l=f);break;case 2:(192&(i=t[o+1]))==128&&(u=(31&f)<<6|63&i)>127&&(l=u);break;case 3:i=t[o+1],s=t[o+2],(192&i)==128&&(192&s)==128&&(u=(15&f)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=t[o+1],s=t[o+2],a=t[o+3],(192&i)==128&&(192&s)==128&&(192&a)==128&&(u=(15&f)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,c=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=c}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function E(t,e,r,n,o,i){if(!a.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw RangeError("Index out of range")}function v(t,e,r,n,o,i){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function A(t,e,r,n,i){return e=+e,r>>>=0,i||v(t,e,r,4,34028234663852886e22,-34028234663852886e22),o.write(t,e,r,n,23,4),r+4}function O(t,e,r,n,i){return e=+e,r>>>=0,i||v(t,e,r,8,17976931348623157e292,-17976931348623157e292),o.write(t,e,r,n,52,8),r+8}e.Buffer=a,e.SlowBuffer=function(t){return+t!=t&&(t=0),a.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,e,r){return u(t,e,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,r){return(f(t),t<=0)?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(U(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),U(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);or&&(t+=" ... "),""},i&&(a.prototype[i]=a.prototype.inspect),a.prototype.compare=function(t,e,r,n,o){if(U(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var i=o-n,s=r-e,u=Math.min(i,s),f=this.slice(n,o),l=t.slice(e,r),c=0;c>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,s,a,u,f,l,c,h,p,d,y,g=this.length-e;if((void 0===r||r>g)&&(r=g),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var m=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;n>i/2&&(n=i/2);for(var s=0;s>8,o.push(r%256),o.push(n);return o}(t,this.length-d),this,d,y);default:if(m)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),m=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||w(t,e,this.length);for(var n=this[t],o=1,i=0;++i>>=0,e>>>=0,r||w(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},a.prototype.readUInt8=function(t,e){return t>>>=0,e||w(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||w(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||w(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||w(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||w(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);for(var n=this[t],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},a.prototype.readInt8=function(t,e){return(t>>>=0,e||w(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||w(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t>>>=0,e||w(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||w(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||w(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t>>>=0,e||w(t,4,this.length),o.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||w(t,4,this.length),o.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||w(t,8,this.length),o.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||w(t,8,this.length),o.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;E(this,t,e,r,o,0)}var i=1,s=0;for(this[e]=255&t;++s>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;E(this,t,e,r,o,0)}var i=r-1,s=1;for(this[e+i]=255&t;--i>=0&&(s*=256);)this[e+i]=t/s&255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);E(this,t,e,r,o-1,-o)}var i=0,s=1,a=0;for(this[e]=255&t;++i>0)-a&255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);E(this,t,e,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeFloatLE=function(t,e,r){return A(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return A(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return O(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return O(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return o},a.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var o,i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&r<57344){if(!o){if(r>56319||s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function T(t){for(var e=[],r=0;r=e.length)&&!(o>=t.length);++o)e[o+r]=t[o];return o}function U(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var x=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}()},783:function(t,e){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */e.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,u=(1<>1,l=-7,c=r?o-1:0,h=r?-1:1,p=t[e+c];for(c+=h,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+t[e+c],c+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+t[e+c],c+=h,l-=8);if(0===i)i=1-f;else{if(i===u)return s?NaN:(p?-1:1)*(1/0);s+=Math.pow(2,n),i-=f}return(p?-1:1)*s*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var s,a,u,f=8*i-o-1,l=(1<>1,h=23===o?5960464477539062e-23:0,p=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+c>=1?e+=h/u:e+=h*Math.pow(2,1-c),e*u>=2&&(s++,u/=2),s+c>=l?(a=0,s=l):s+c>=1?(a=(e*u-1)*Math.pow(2,o),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,o),s=0));o>=8;t[r+p]=255&a,p+=d,a/=256,o-=8);for(s=s<0;t[r+p]=255&s,p+=d,s/=256,f-=8);t[r+p-d]|=128*y}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}},s=!0;try{e[t](i,i.exports,n),s=!1}finally{s&&delete r[t]}return i.exports}n.ab="//";var o=n(72);t.exports=o}()},24214:function(t,e,r){"use strict";let n;function o(t,e){return function(){return t.apply(e,arguments)}}r.d(e,{Z:function(){return tq}});let{toString:i}=Object.prototype,{getPrototypeOf:s}=Object,a=(_=Object.create(null),t=>{let e=i.call(t);return _[e]||(_[e]=e.slice(8,-1).toLowerCase())}),u=t=>(t=t.toLowerCase(),e=>a(e)===t),f=t=>e=>typeof e===t,{isArray:l}=Array,c=f("undefined"),h=u("ArrayBuffer"),p=f("string"),d=f("function"),y=f("number"),g=t=>null!==t&&"object"==typeof t,m=t=>{if("object"!==a(t))return!1;let e=s(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},b=u("Date"),w=u("File"),E=u("Blob"),v=u("FileList"),A=u("URLSearchParams");function O(t,e,{allOwnKeys:r=!1}={}){let n,o;if(null!=t){if("object"!=typeof t&&(t=[t]),l(t))for(n=0,o=t.length;n0;)if(e===(r=n[o]).toLowerCase())return r;return null}let R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,T=t=>!c(t)&&t!==R,B=(I="undefined"!=typeof Uint8Array&&s(Uint8Array),t=>I&&t instanceof I),C=u("HTMLFormElement"),U=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),x=u("RegExp"),N=(t,e)=>{let r=Object.getOwnPropertyDescriptors(t),n={};O(r,(r,o)=>{!1!==e(r,o,t)&&(n[o]=r)}),Object.defineProperties(t,n)},j="abcdefghijklmnopqrstuvwxyz",P="0123456789",L={DIGIT:P,ALPHA:j,ALPHA_DIGIT:j+j.toUpperCase()+P};var _,I,k={isArray:l,isArrayBuffer:h,isBuffer:function(t){return null!==t&&!c(t)&&null!==t.constructor&&!c(t.constructor)&&d(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||i.call(t)===e||d(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&h(t.buffer)},isString:p,isNumber:y,isBoolean:t=>!0===t||!1===t,isObject:g,isPlainObject:m,isUndefined:c,isDate:b,isFile:w,isBlob:E,isRegExp:x,isFunction:d,isStream:t=>g(t)&&d(t.pipe),isURLSearchParams:A,isTypedArray:B,isFileList:v,forEach:O,merge:function t(){let{caseless:e}=T(this)&&this||{},r={},n=(n,o)=>{let i=e&&S(r,o)||o;m(r[i])&&m(n)?r[i]=t(r[i],n):m(n)?r[i]=t({},n):l(n)?r[i]=n.slice():r[i]=n};for(let t=0,e=arguments.length;t(O(e,(e,n)=>{r&&d(e)?t[n]=o(e,r):t[n]=e},{allOwnKeys:n}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let o,i,a;let u={};if(e=e||{},null==t)return e;do{for(i=(o=Object.getOwnPropertyNames(t)).length;i-- >0;)a=o[i],(!n||n(a,t,e))&&!u[a]&&(e[a]=t[a],u[a]=!0);t=!1!==r&&s(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:a,kindOfTest:u,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;let n=t.indexOf(e,r);return -1!==n&&n===r},toArray:t=>{if(!t)return null;if(l(t))return t;let e=t.length;if(!y(e))return null;let r=Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{let r;let n=t&&t[Symbol.iterator],o=n.call(t);for(;(r=o.next())&&!r.done;){let n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let r;let n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:C,hasOwnProperty:U,hasOwnProp:U,reduceDescriptors:N,freezeMethods:t=>{N(t,(e,r)=>{if(d(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;let n=t[r];if(d(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(t,e)=>{let r={};return(t=>{t.forEach(t=>{r[t]=!0})})(l(t)?t:String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(t,e)=>Number.isFinite(t=+t)?t:e,findKey:S,global:R,isContextDefined:T,ALPHABET:L,generateString:(t=16,e=L.ALPHA_DIGIT)=>{let r="",{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r},isSpecCompliantForm:function(t){return!!(t&&d(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{let e=Array(10),r=(t,n)=>{if(g(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;let o=l(t)?[]:{};return O(t,(t,e)=>{let i=r(t,n+1);c(i)||(o[e]=i)}),e[n]=void 0,o}}return t};return r(t,0)}};function F(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}k.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let D=F.prototype,M={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{M[t]={value:t}}),Object.defineProperties(F,M),Object.defineProperty(D,"isAxiosError",{value:!0}),F.from=(t,e,r,n,o,i)=>{let s=Object.create(D);return k.toFlatObject(t,s,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t),F.call(s,t.message,e,r,n,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};var q=r(91083).Buffer;function z(t){return k.isPlainObject(t)||k.isArray(t)}function J(t){return k.endsWith(t,"[]")?t.slice(0,-2):t}function H(t,e,r){return t?t.concat(e).map(function(t,e){return t=J(t),!r&&e?"["+t+"]":t}).join(r?".":""):e}let W=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});var V=function(t,e,r){if(!k.isObject(t))throw TypeError("target must be an object");e=e||new FormData,r=k.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!k.isUndefined(e[t])});let n=r.metaTokens,o=r.visitor||l,i=r.dots,s=r.indexes,a=r.Blob||"undefined"!=typeof Blob&&Blob,u=a&&k.isSpecCompliantForm(e);if(!k.isFunction(o))throw TypeError("visitor must be a function");function f(t){if(null===t)return"";if(k.isDate(t))return t.toISOString();if(!u&&k.isBlob(t))throw new F("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(t)||k.isTypedArray(t)?u&&"function"==typeof Blob?new Blob([t]):q.from(t):t}function l(t,r,o){let a=t;if(t&&!o&&"object"==typeof t){if(k.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else{var u;if(k.isArray(t)&&(u=t,k.isArray(u)&&!u.some(z))||(k.isFileList(t)||k.endsWith(r,"[]"))&&(a=k.toArray(t)))return r=J(r),a.forEach(function(t,n){k.isUndefined(t)||null===t||e.append(!0===s?H([r],n,i):null===s?r:r+"[]",f(t))}),!1}}return!!z(t)||(e.append(H(o,r,i),f(t)),!1)}let c=[],h=Object.assign(W,{defaultVisitor:l,convertValue:f,isVisitable:z});if(!k.isObject(t))throw TypeError("data must be an object");return!function t(r,n){if(!k.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),k.forEach(r,function(r,i){let s=!(k.isUndefined(r)||null===r)&&o.call(e,r,k.isString(i)?i.trim():i,n,h);!0===s&&t(r,n?n.concat(i):[i])}),c.pop()}}(t),e};function K(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function G(t,e){this._pairs=[],t&&V(t,this,e)}let $=G.prototype;function X(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Y(t,e,r){let n;if(!e)return t;let o=r&&r.encode||X,i=r&&r.serialize;if(n=i?i(e,r):k.isURLSearchParams(e)?e.toString():new G(e,r).toString(o)){let e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t}$.append=function(t,e){this._pairs.push([t,e])},$.toString=function(t){let e=t?function(e){return t.call(this,e,K)}:K;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};var Z=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){k.forEach(this.handlers,function(e){null!==e&&t(e)})}},Q={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tt="undefined"!=typeof URLSearchParams?URLSearchParams:G,te="undefined"!=typeof FormData?FormData:null,tr="undefined"!=typeof Blob?Blob:null;let tn=("undefined"==typeof navigator||"ReactNative"!==(n=navigator.product)&&"NativeScript"!==n&&"NS"!==n)&&"undefined"!=typeof window&&"undefined"!=typeof document,to="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var ti={isBrowser:!0,classes:{URLSearchParams:tt,FormData:te,Blob:tr},isStandardBrowserEnv:tn,isStandardBrowserWebWorkerEnv:to,protocols:["http","https","file","blob","url","data"]},ts=function(t){if(k.isFormData(t)&&k.isFunction(t.entries)){let e={};return k.forEachEntry(t,(t,r)=>{!function t(e,r,n,o){let i=e[o++],s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&k.isArray(n)?n.length:i,a)return k.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&k.isObject(n[i])||(n[i]=[]);let u=t(e,r,n[i],o);return u&&k.isArray(n[i])&&(n[i]=function(t){let e,r;let n={},o=Object.keys(t),i=o.length;for(e=0;e"[]"===t[0]?"":t[1]||t[0]),r,e,0)}),e}return null};let ta={"Content-Type":void 0},tu={transitional:Q,adapter:["xhr","http"],transformRequest:[function(t,e){let r;let n=e.getContentType()||"",o=n.indexOf("application/json")>-1,i=k.isObject(t);i&&k.isHTMLForm(t)&&(t=new FormData(t));let s=k.isFormData(t);if(s)return o&&o?JSON.stringify(ts(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1){var a,u;return(a=t,u=this.formSerializer,V(a,new ti.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return ti.isNode&&k.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},u))).toString()}if((r=k.isFileList(t))||n.indexOf("multipart/form-data")>-1){let e=this.env&&this.env.FormData;return V(r?{"files[]":t}:t,e&&new e,this.formSerializer)}}return i||o?(e.setContentType("application/json",!1),function(t,e,r){if(k.isString(t))try{return(0,JSON.parse)(t),k.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){let e=this.transitional||tu.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(t&&k.isString(t)&&(r&&!this.responseType||n)){let r=e&&e.silentJSONParsing;try{return JSON.parse(t)}catch(t){if(!r&&n){if("SyntaxError"===t.name)throw F.from(t,F.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ti.classes.FormData,Blob:ti.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};k.forEach(["delete","get","head"],function(t){tu.headers[t]={}}),k.forEach(["post","put","patch"],function(t){tu.headers[t]=k.merge(ta)});let tf=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var tl=t=>{let e,r,n;let o={};return t&&t.split("\n").forEach(function(t){n=t.indexOf(":"),e=t.substring(0,n).trim().toLowerCase(),r=t.substring(n+1).trim(),!e||o[e]&&tf[e]||("set-cookie"===e?o[e]?o[e].push(r):o[e]=[r]:o[e]=o[e]?o[e]+", "+r:r)}),o};let tc=Symbol("internals");function th(t){return t&&String(t).trim().toLowerCase()}function tp(t){return!1===t||null==t?t:k.isArray(t)?t.map(tp):String(t)}function td(t,e,r,n,o){if(k.isFunction(n))return n.call(this,e,r);if(o&&(e=r),k.isString(e)){if(k.isString(n))return -1!==e.indexOf(n);if(k.isRegExp(n))return n.test(e)}}class ty{constructor(t){t&&this.set(t)}set(t,e,r){let n=this;function o(t,e,r){let o=th(e);if(!o)throw Error("header name must be a non-empty string");let i=k.findKey(n,o);i&&void 0!==n[i]&&!0!==r&&(void 0!==r||!1===n[i])||(n[i||e]=tp(t))}let i=(t,e)=>k.forEach(t,(t,r)=>o(t,r,e));if(k.isPlainObject(t)||t instanceof this.constructor)i(t,e);else{var s;k.isString(t)&&(t=t.trim())&&(s=t,!/^[-_a-zA-Z]+$/.test(s.trim()))?i(tl(t),e):null!=t&&o(e,t,r)}return this}get(t,e){if(t=th(t)){let r=k.findKey(this,t);if(r){let t=this[r];if(!e)return t;if(!0===e)return function(t){let e;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;e=n.exec(t);)r[e[1]]=e[2];return r}(t);if(k.isFunction(e))return e.call(this,t,r);if(k.isRegExp(e))return e.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=th(t)){let r=k.findKey(this,t);return!!(r&&void 0!==this[r]&&(!e||td(this,this[r],r,e)))}return!1}delete(t,e){let r=this,n=!1;function o(t){if(t=th(t)){let o=k.findKey(r,t);o&&(!e||td(r,r[o],o,e))&&(delete r[o],n=!0)}}return k.isArray(t)?t.forEach(o):o(t),n}clear(t){let e=Object.keys(this),r=e.length,n=!1;for(;r--;){let o=e[r];(!t||td(this,this[o],o,t,!0))&&(delete this[o],n=!0)}return n}normalize(t){let e=this,r={};return k.forEach(this,(n,o)=>{let i=k.findKey(r,o);if(i){e[i]=tp(n),delete e[o];return}let s=t?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r):String(o).trim();s!==o&&delete e[o],e[s]=tp(n),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let e=Object.create(null);return k.forEach(this,(r,n)=>{null!=r&&!1!==r&&(e[n]=t&&k.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){let r=new this(t);return e.forEach(t=>r.set(t)),r}static accessor(t){let e=this[tc]=this[tc]={accessors:{}},r=e.accessors,n=this.prototype;function o(t){let e=th(t);r[e]||(!function(t,e){let r=k.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(t,r,o){return this[n].call(this,e,t,r,o)},configurable:!0})})}(n,t),r[e]=!0)}return k.isArray(t)?t.forEach(o):o(t),this}}function tg(t,e){let r=this||tu,n=e||r,o=ty.from(n.headers),i=n.data;return k.forEach(t,function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function tm(t){return!!(t&&t.__CANCEL__)}function tb(t,e,r){F.call(this,null==t?"canceled":t,F.ERR_CANCELED,e,r),this.name="CanceledError"}ty.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.freezeMethods(ty.prototype),k.freezeMethods(ty),k.inherits(tb,F,{__CANCEL__:!0});var tw=ti.isStandardBrowserEnv?{write:function(t,e,r,n,o,i){let s=[];s.push(t+"="+encodeURIComponent(e)),k.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),k.isString(n)&&s.push("path="+n),k.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){let e=document.cookie.match(RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function tE(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t:e}var tv=ti.isStandardBrowserEnv?function(){let t;let e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){let n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=n(window.location.href),function(e){let r=k.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0},tA=function(t,e){let r;t=t||10;let n=Array(t),o=Array(t),i=0,s=0;return e=void 0!==e?e:1e3,function(a){let u=Date.now(),f=o[s];r||(r=u),n[i]=a,o[i]=u;let l=s,c=0;for(;l!==i;)c+=n[l++],l%=t;if((i=(i+1)%t)===s&&(s=(s+1)%t),u-r{let i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-r,u=n(a),f=i<=s;r=i;let l={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:u||void 0,estimated:u&&s&&f?(s-i)/u:void 0,event:o};l[e?"download":"upload"]=!0,t(l)}}let tS="undefined"!=typeof XMLHttpRequest;var tR=tS&&function(t){return new Promise(function(e,r){let n,o=t.data,i=ty.from(t.headers).normalize(),s=t.responseType;function a(){t.cancelToken&&t.cancelToken.unsubscribe(n),t.signal&&t.signal.removeEventListener("abort",n)}k.isFormData(o)&&(ti.isStandardBrowserEnv||ti.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let u=new XMLHttpRequest;if(t.auth){let e=t.auth.username||"",r=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(e+":"+r))}let f=tE(t.baseURL,t.url);function l(){if(!u)return;let n=ty.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),o=s&&"text"!==s&&"json"!==s?u.response:u.responseText,i={data:o,status:u.status,statusText:u.statusText,headers:n,config:t,request:u};!function(t,e,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new F("Request failed with status code "+r.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}(function(t){e(t),a()},function(t){r(t),a()},i),u=null}if(u.open(t.method.toUpperCase(),Y(f,t.params,t.paramsSerializer),!0),u.timeout=t.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(r(new F("Request aborted",F.ECONNABORTED,t,u)),u=null)},u.onerror=function(){r(new F("Network Error",F.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",n=t.transitional||Q;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new F(e,n.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,t,u)),u=null},ti.isStandardBrowserEnv){let e=(t.withCredentials||tv(f))&&t.xsrfCookieName&&tw.read(t.xsrfCookieName);e&&i.set(t.xsrfHeaderName,e)}void 0===o&&i.setContentType(null),"setRequestHeader"in u&&k.forEach(i.toJSON(),function(t,e){u.setRequestHeader(e,t)}),k.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),s&&"json"!==s&&(u.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&u.addEventListener("progress",tO(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",tO(t.onUploadProgress)),(t.cancelToken||t.signal)&&(n=e=>{u&&(r(!e||e.type?new tb(null,t,u):e),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(n),t.signal&&(t.signal.aborted?n():t.signal.addEventListener("abort",n)));let c=function(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(f);if(c&&-1===ti.protocols.indexOf(c)){r(new F("Unsupported protocol "+c+":",F.ERR_BAD_REQUEST,t));return}u.send(o||null)})};let tT={http:null,xhr:tR};k.forEach(tT,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});var tB={getAdapter:t=>{let e,r;t=k.isArray(t)?t:[t];let{length:n}=t;for(let o=0;ot instanceof ty?t.toJSON():t;function tN(t,e){e=e||{};let r={};function n(t,e,r){return k.isPlainObject(t)&&k.isPlainObject(e)?k.merge.call({caseless:r},t,e):k.isPlainObject(e)?k.merge({},e):k.isArray(e)?e.slice():e}function o(t,e,r){return k.isUndefined(e)?k.isUndefined(t)?void 0:n(void 0,t,r):n(t,e,r)}function i(t,e){if(!k.isUndefined(e))return n(void 0,e)}function s(t,e){return k.isUndefined(e)?k.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function a(r,o,i){return i in e?n(r,o):i in t?n(void 0,r):void 0}let u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(t,e)=>o(tx(t),tx(e),!0)};return k.forEach(Object.keys(t).concat(Object.keys(e)),function(n){let i=u[n]||o,s=i(t[n],e[n],n);k.isUndefined(s)&&i!==a||(r[n]=s)}),r}let tj="1.3.4",tP={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{tP[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});let tL={};tP.transitional=function(t,e,r){function n(t,e){return"[Axios v"+tj+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,o,i)=>{if(!1===t)throw new F(n(o," has been removed"+(e?" in "+e:"")),F.ERR_DEPRECATED);return e&&!tL[o]&&(tL[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};var t_={assertOptions:function(t,e,r){if("object"!=typeof t)throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),o=n.length;for(;o-- >0;){let i=n[o],s=e[i];if(s){let e=t[i],r=void 0===e||s(e,i,t);if(!0!==r)throw new F("option "+i+" must be "+r,F.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new F("Unknown option "+i,F.ERR_BAD_OPTION)}},validators:tP};let tI=t_.validators;class tk{constructor(t){this.defaults=t,this.interceptors={request:new Z,response:new Z}}request(t,e){let r,n,o;"string"==typeof t?(e=e||{}).url=t:e=t||{},e=tN(this.defaults,e);let{transitional:i,paramsSerializer:s,headers:a}=e;void 0!==i&&t_.assertOptions(i,{silentJSONParsing:tI.transitional(tI.boolean),forcedJSONParsing:tI.transitional(tI.boolean),clarifyTimeoutError:tI.transitional(tI.boolean)},!1),void 0!==s&&t_.assertOptions(s,{encode:tI.function,serialize:tI.function},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase(),(r=a&&k.merge(a.common,a[e.method]))&&k.forEach(["delete","get","head","post","put","patch","common"],t=>{delete a[t]}),e.headers=ty.concat(r,a);let u=[],f=!0;this.interceptors.request.forEach(function(t){("function"!=typeof t.runWhen||!1!==t.runWhen(e))&&(f=f&&t.synchronous,u.unshift(t.fulfilled,t.rejected))});let l=[];this.interceptors.response.forEach(function(t){l.push(t.fulfilled,t.rejected)});let c=0;if(!f){let t=[tU.bind(this),void 0];for(t.unshift.apply(t,u),t.push.apply(t,l),o=t.length,n=Promise.resolve(e);c{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null}),this.promise.then=t=>{let e;let n=new Promise(t=>{r.subscribe(t),e=t}).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t(function(t,n,o){r.reason||(r.reason=new tb(t,n,o),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;let e=new tF(function(e){t=e});return{token:e,cancel:t}}}let tD={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(tD).forEach(([t,e])=>{tD[e]=t});let tM=function t(e){let r=new tk(e),n=o(tk.prototype.request,r);return k.extend(n,tk.prototype,r,{allOwnKeys:!0}),k.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return t(tN(e,r))},n}(tu);tM.Axios=tk,tM.CanceledError=tb,tM.CancelToken=tF,tM.isCancel=tm,tM.VERSION=tj,tM.toFormData=V,tM.AxiosError=F,tM.Cancel=tM.CanceledError,tM.all=function(t){return Promise.all(t)},tM.spread=function(t){return function(e){return t.apply(null,e)}},tM.isAxiosError=function(t){return k.isObject(t)&&!0===t.isAxiosError},tM.mergeConfig=tN,tM.AxiosHeaders=ty,tM.formToJSON=t=>ts(k.isHTMLForm(t)?new FormData(t):t),tM.HttpStatusCode=tD,tM.default=tM;var tq=tM}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/316-cdd7af28971b8ca4.js b/pilot/server/static/_next/static/chunks/316-cdd7af28971b8ca4.js new file mode 100644 index 000000000..b72c97c32 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/316-cdd7af28971b8ca4.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[316],{53047:function(n,t,r){"use strict";r.d(t,{ZP:function(){return O}});var e=r(46750),o=r(40431),i=r(86006),u=r(53832),a=r(99179),c=r(46319),l=r(47562),s=r(50645),f=r(88930),v=r(47093),d=r(326),p=r(18587);function h(n){return(0,p.d6)("MuiIconButton",n)}let m=(0,p.sI)("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg"]);var y=r(9268);let g=["children","action","component","color","variant","size"],b=n=>{let{color:t,disabled:r,focusVisible:e,focusVisibleClassName:o,size:i,variant:a}=n,c={root:["root",r&&"disabled",e&&"focusVisible",a&&`variant${(0,u.Z)(a)}`,t&&`color${(0,u.Z)(t)}`,i&&`size${(0,u.Z)(i)}`]},s=(0,l.Z)(c,h,{});return e&&o&&(s.root+=` ${o}`),s},w=(0,s.Z)("button")(({theme:n,ownerState:t})=>{var r,e,i,u;return[(0,o.Z)({"--Icon-margin":"initial"},"sm"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.6)","--CircularProgress-size":"20px",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:n.vars.fontSize.sm,paddingInline:"2px"},"md"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.5rem) / 1.667)","--CircularProgress-size":"24px",minWidth:"var(--IconButton-size, 2.5rem)",minHeight:"var(--IconButton-size, 2.5rem)",fontSize:n.vars.fontSize.md,paddingInline:"0.25rem"},"lg"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 3rem) / 1.714)","--CircularProgress-size":"28px",minWidth:"var(--IconButton-size, 3rem)",minHeight:"var(--IconButton-size, 3rem)",fontSize:n.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:n.vars.fontFamily.body,fontWeight:n.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${n.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[n.focus.selector]:n.focus.default}),null==(r=n.variants[t.variant])?void 0:r[t.color],{"&:hover":null==(e=n.variants[`${t.variant}Hover`])?void 0:e[t.color]},{"&:active":null==(i=n.variants[`${t.variant}Active`])?void 0:i[t.color]},{[`&.${m.disabled}`]:null==(u=n.variants[`${t.variant}Disabled`])?void 0:u[t.color]}]}),x=(0,s.Z)(w,{name:"JoyIconButton",slot:"Root",overridesResolver:(n,t)=>t.root})({}),S=i.forwardRef(function(n,t){let r=(0,f.Z)({props:n,name:"JoyIconButton"}),{children:u,action:l,component:s="button",color:p="primary",variant:h="soft",size:m="md"}=r,w=(0,e.Z)(r,g),{getColor:S}=(0,v.VT)(h),O=S(n.color,p),P=i.useRef(null),I=(0,a.Z)(P,t),{focusVisible:z,setFocusVisible:T,getRootProps:j}=(0,c.Z)((0,o.Z)({},r,{ref:I}));i.useImperativeHandle(l,()=>({focusVisible:()=>{var n;T(!0),null==(n=P.current)||n.focus()}}),[T]);let R=(0,o.Z)({},r,{component:s,color:O,variant:h,size:m,focusVisible:z}),B=b(R),[E,C]=(0,d.Z)("root",{ref:t,className:B.root,elementType:x,getSlotProps:j,externalForwardedProps:(0,o.Z)({},w,{component:s}),ownerState:R});return(0,y.jsx)(E,(0,o.Z)({},C,{children:u}))});var O=S},89081:function(n,t,r){"use strict";r.d(t,{Z:function(){return D}});var e,o=function(){return(o=Object.assign||function(n){for(var t,r=1,e=arguments.length;rt.indexOf(e)&&(r[e]=n[e]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,e=Object.getOwnPropertySymbols(n);ot.indexOf(e[o])&&Object.prototype.propertyIsEnumerable.call(n,e[o])&&(r[e[o]]=n[e[o]]);return r}function u(n,t){var r="function"==typeof Symbol&&n[Symbol.iterator];if(!r)return n;var e,o,i=r.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(e=i.next()).done;)u.push(e.value)}catch(n){o={error:n}}finally{try{e&&!e.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}function a(n,t,r){if(r||2==arguments.length)for(var e,o=0,i=t.length;o-1&&(i=setTimeout(function(){p.delete(n)},t)),p.set(n,o(o({},r),{timer:i}))},m=new Map,y=function(n,t){m.set(n,t),t.then(function(t){return m.delete(n),t}).catch(function(){m.delete(n)})},g={},b=function(n,t){g[n]&&g[n].forEach(function(n){return n(t)})},w=function(n,t){return g[n]||(g[n]=[]),g[n].push(t),function(){var r=g[n].indexOf(t);g[n].splice(r,1)}},x=function(n,t){var r=t.cacheKey,e=t.cacheTime,o=void 0===e?3e5:e,i=t.staleTime,l=void 0===i?0:i,s=t.setCache,v=t.getCache,g=(0,c.useRef)(),x=(0,c.useRef)(),S=function(n,t){s?s(t):h(n,o,t),b(n,t.data)},O=function(n,t){return(void 0===t&&(t=[]),v)?v(t):p.get(n)};return(f(function(){if(r){var t=O(r);t&&Object.hasOwnProperty.call(t,"data")&&(n.state.data=t.data,n.state.params=t.params,(-1===l||new Date().getTime()-t.time<=l)&&(n.state.loading=!1)),g.current=w(r,function(t){n.setState({data:t})})}},[]),d(function(){var n;null===(n=g.current)||void 0===n||n.call(g)}),r)?{onBefore:function(n){var t=O(r,n);return t&&Object.hasOwnProperty.call(t,"data")?-1===l||new Date().getTime()-t.time<=l?{loading:!1,data:null==t?void 0:t.data,error:void 0,returnNow:!0}:{data:null==t?void 0:t.data,error:void 0}:{}},onRequest:function(n,t){var e=m.get(r);return e&&e!==x.current||(e=n.apply(void 0,a([],u(t),!1)),x.current=e,y(r,e)),{servicePromise:e}},onSuccess:function(t,e){var o;r&&(null===(o=g.current)||void 0===o||o.call(g),S(r,{data:t,params:e,time:new Date().getTime()}),g.current=w(r,function(t){n.setState({data:t})}))},onMutate:function(t){var e;r&&(null===(e=g.current)||void 0===e||e.call(g),S(r,{data:t,params:n.state.params,time:new Date().getTime()}),g.current=w(r,function(t){n.setState({data:t})}))}}:{}},S=r(56762),O=r.n(S),P=function(n,t){var r=t.debounceWait,e=t.debounceLeading,o=t.debounceTrailing,i=t.debounceMaxWait,l=(0,c.useRef)(),s=(0,c.useMemo)(function(){var n={};return void 0!==e&&(n.leading=e),void 0!==o&&(n.trailing=o),void 0!==i&&(n.maxWait=i),n},[e,o,i]);return((0,c.useEffect)(function(){if(r){var t=n.runAsync.bind(n);return l.current=O()(function(n){n()},r,s),n.runAsync=function(){for(var n=[],r=0;r-1&&B.splice(n,1)})}return function(){l()}},[r,o]),d(function(){l()}),{}},A=function(n,t){var r=t.retryInterval,e=t.retryCount,o=(0,c.useRef)(),i=(0,c.useRef)(0),u=(0,c.useRef)(!1);return e?{onBefore:function(){u.current||(i.current=0),u.current=!1,o.current&&clearTimeout(o.current)},onSuccess:function(){i.current=0},onError:function(){if(i.current+=1,-1===e||i.current<=e){var t=null!=r?r:Math.min(1e3*Math.pow(2,i.current),3e4);o.current=setTimeout(function(){u.current=!0,n.refresh()},t)}else i.current=0},onCancel:function(){i.current=0,o.current&&clearTimeout(o.current)}}:{}},Z=r(25832),H=r.n(Z),W=function(n,t){var r=t.throttleWait,e=t.throttleLeading,o=t.throttleTrailing,i=(0,c.useRef)(),l={};return(void 0!==e&&(l.leading=e),void 0!==o&&(l.trailing=o),(0,c.useEffect)(function(){if(r){var t=n.runAsync.bind(n);return i.current=H()(function(n){n()},r,l),n.runAsync=function(){for(var n=[],r=0;r0&&o[o.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=t||r<0||m&&e>=s}function w(){var n,r,e,i=o();if(b(i))return x(i);v=setTimeout(w,(n=i-d,r=i-p,e=t-n,m?a(e,s-r):e))}function x(n){return(v=void 0,y&&c)?g(n):(c=l=void 0,f)}function S(){var n,r=o(),e=b(r);if(c=arguments,l=this,d=r,e){if(void 0===v)return p=n=d,v=setTimeout(w,t),h?g(n):f;if(m)return clearTimeout(v),v=setTimeout(w,t),g(d)}return void 0===v&&(v=setTimeout(w,t)),f}return t=i(t)||0,e(r)&&(h=!!r.leading,s=(m="maxWait"in r)?u(i(r.maxWait)||0,t):s,y="trailing"in r?!!r.trailing:y),S.cancel=function(){void 0!==v&&clearTimeout(v),p=0,c=d=l=v=void 0},S.flush=function(){return void 0===v?f:x(o())},S}},74331:function(n){n.exports=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}},60655:function(n){n.exports=function(n){return null!=n&&"object"==typeof n}},50246:function(n,t,r){var e=r(48276),o=r(60655);n.exports=function(n){return"symbol"==typeof n||o(n)&&"[object Symbol]"==e(n)}},49552:function(n,t,r){var e=r(41314);n.exports=function(){return e.Date.now()}},25832:function(n,t,r){var e=r(56762),o=r(74331);n.exports=function(n,t,r){var i=!0,u=!0;if("function"!=typeof n)throw TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,u="trailing"in r?!!r.trailing:u),e(n,t,{leading:i,maxWait:t,trailing:u})}},64528:function(n,t,r){var e=r(84886),o=r(74331),i=r(50246),u=0/0,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;n.exports=function(n){if("number"==typeof n)return n;if(i(n))return u;if(o(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=o(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=e(n);var r=c.test(n);return r||l.test(n)?s(n.slice(2),r?2:8):a.test(n)?u:+n}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/430-266fcdf5d617a912.js b/pilot/server/static/_next/static/chunks/430-266fcdf5d617a912.js deleted file mode 100644 index 2ece9273d..000000000 --- a/pilot/server/static/_next/static/chunks/430-266fcdf5d617a912.js +++ /dev/null @@ -1,65 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[430],{70333:function(e,t,n){"use strict";n.d(t,{iN:function(){return g},R_:function(){return f},ez:function(){return d}});var r=n(32675),o=n(79185),a=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function i(e){var t=e.r,n=e.g,o=e.b,a=(0,r.py)(t,n,o);return{h:360*a.h,s:a.s,v:a.v}}function l(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.vq)(t,n,o,!1))}function c(e,t,n){var r;return(r=Math.round(e.h)>=60&&240>=Math.round(e.h)?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function s(e,t,n){var r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)))}function u(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function f(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.uA)(e),f=5;f>0;f-=1){var d=i(r),p=l((0,o.uA)({h:c(d,f,!0),s:s(d,f,!0),v:u(d,f,!0)}));n.push(p)}n.push(l(r));for(var h=1;h<=4;h+=1){var g=i(r),v=l((0,o.uA)({h:c(g,h),s:s(g,h),v:u(g,h)}));n.push(v)}return"dark"===t.theme?a.map(function(e){var r,a,i,c=e.index,s=e.opacity;return l((r=(0,o.uA)(t.backgroundColor||"#141414"),a=(0,o.uA)(n[c]),i=100*s/100,{r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b}))}):n}var d={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"},p={},h={};Object.keys(d).forEach(function(e){p[e]=f(d[e]),p[e].primary=p[e][5],h[e]=f(d[e],{theme:"dark",backgroundColor:"#141414"}),h[e].primary=h[e][5]}),p.red,p.volcano,p.gold,p.orange,p.yellow,p.lime,p.green,p.cyan;var g=p.blue;p.geekblue,p.purple,p.magenta,p.grey,p.grey},11717:function(e,t,n){"use strict";n.d(t,{E4:function(){return D},jG:function(){return G},t2:function(){return Z},fp:function(){return E},xy:function(){return _}});var r=n(90151),o=n(88684),a=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)},i=n(86006);n(55567),n(81027);var l=n(18050),c=n(49449),s=n(65877),u=function(){function e(t){(0,l.Z)(this,e),(0,s.Z)(this,"instanceId",void 0),(0,s.Z)(this,"cache",new Map),this.instanceId=t}return(0,c.Z)(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var n=e.join("%"),r=t(this.cache.get(n));null===r?this.cache.delete(n):this.cache.set(n,r)}}]),e}(),f="data-token-hash",d="data-css-hash",p="__cssinjs_instance__",h=i.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(d,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[p]=t[p]||e,t[p]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(d,"]"))).forEach(function(t){var n,o=t.getAttribute(d);r[o]?t[p]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new u(e)}(),defaultCache:!0}),g=n(965),v=n(71693),m=n(52160);function y(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r&&"object"===(0,g.Z)(r)?t+=y(r):t+=r}),t}var b="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),x="903px",C=void 0,S=n(60456);function w(e,t,n,o){var a=i.useContext(h).cache,l=[e].concat((0,r.Z)(t));return i.useMemo(function(){a.update(l,function(e){var t=(0,S.Z)(e||[],2),r=t[0];return[(void 0===r?0:r)+1,t[1]||n()]})},[l.join("_")]),i.useEffect(function(){return function(){a.update(l,function(e){var t=(0,S.Z)(e||[],2),n=t[0],r=void 0===n?0:n,a=t[1];return 0==r-1?(null==o||o(a,!1),null):[r-1,a]})}},l),a.get(l)[1]}var $={},k=new Map,Z=function(e,t,n,r){var a=n.getDerivativeToken(e),i=(0,o.Z)((0,o.Z)({},a),t);return r&&(i=r(i)),i};function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,i.useContext)(h).cache.instanceId,l=n.salt,c=void 0===l?"":l,s=n.override,u=void 0===s?$:s,d=n.formatToken,g=i.useMemo(function(){return Object.assign.apply(Object,[{}].concat((0,r.Z)(t)))},[t]),v=i.useMemo(function(){return y(g)},[g]),m=i.useMemo(function(){return y(u)},[u]);return w("token",[c,e.id,v,m],function(){var t=Z(g,u,e,d),n=a("".concat(c,"_").concat(y(t)));t._tokenKey=n,k.set(n,(k.get(n)||0)+1);var r="".concat("css","-").concat(a(n));return t._hashId=r,[t,r]},function(e){var t,n,r;t=e[0]._tokenKey,k.set(t,(k.get(t)||0)-1),(r=(n=Array.from(k.keys())).filter(function(e){return 0>=(k.get(e)||0)})).length1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},i=a.root,l=a.injectHash,c=a.parentSelectors,s=n.hashId,u=n.layer,f=(n.path,n.hashPriority),d=n.transformers,p=void 0===d?[]:d;n.linters;var h="",y={};function w(t){var r=t.getName(s);if(!y[r]){var o=e(t.style,n,{root:!1,parentSelectors:c}),a=(0,S.Z)(o,1)[0];y[r]="@keyframes ".concat(t.getName(s)).concat(a)}}if((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n})(Array.isArray(t)?t:[t]).forEach(function(t){var a="string"!=typeof t||i?t:{};if("string"==typeof a)h+="".concat(a,"\n");else if(a._keyframe)w(a);else{var u=p.reduce(function(e,t){var n;return(null==t?void 0:null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},a);Object.keys(u).forEach(function(t){var a=u[t];if("object"!==(0,g.Z)(a)||!a||"animationName"===t&&a._keyframe||"object"===(0,g.Z)(a)&&a&&("_skip_check_"in a||H in a)){function d(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;O[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(w(t),r=t.getName(s)),h+="".concat(n,":").concat(r,";")}var p,v=null!==(p=null==a?void 0:a.value)&&void 0!==p?p:a;"object"===(0,g.Z)(a)&&null!=a&&a[H]&&Array.isArray(v)?v.forEach(function(e){d(t,e)}):d(t,v)}else{var m=!1,b=t.trim(),x=!1;(i||l)&&s?b.startsWith("@")?m=!0:b=function(e,t,n){if(!t)return e;var o=".".concat(t),a="low"===n?":where(".concat(o,")"):o;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),o=n[0]||"",i=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[o="".concat(i).concat(a).concat(o.slice(i.length))].concat((0,r.Z)(n.slice(1))).join(" ")}).join(",")}(t,s,f):i&&!s&&("&"===b||""===b)&&(b="",x=!0);var C=e(a,n,{root:x,injectHash:m,parentSelectors:[].concat((0,r.Z)(c),[b])}),$=(0,S.Z)(C,2),k=$[0],Z=$[1];y=(0,o.Z)((0,o.Z)({},y),Z),h+="".concat(b).concat(k)}})}}),i){if(u&&(void 0===C&&(C=function(e,t){if((0,v.Z)()){(0,m.hq)(e,b);var n,r=document.createElement("div");r.style.position="fixed",r.style.left="0",r.style.top="0",null==t||t(r),document.body.appendChild(r);var o=getComputedStyle(r).width===x;return null===(n=r.parentNode)||void 0===n||n.removeChild(r),(0,m.jL)(b),o}return!1}("@layer ".concat(b," { .").concat(b," { width: ").concat(x,"!important; } }"),function(e){e.className=b})),C)){var $=u.split(","),k=$[$.length-1].trim();h="@layer ".concat(k," {").concat(h,"}"),$.length>1&&(h="@layer ".concat(u,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,y]};function R(){return null}function _(e,t){var n=e.token,o=e.path,l=e.hashId,c=e.layer,u=e.nonce,g=i.useContext(h),v=g.autoClear,y=(g.mock,g.defaultCache),b=g.hashPriority,x=g.container,C=g.ssrInline,$=g.transformers,k=g.linters,Z=g.cache,E=n._tokenKey,O=[E].concat((0,r.Z)(o)),P=w("style",O,function(){var e=F(t(),{hashId:l,hashPriority:b,layer:c,path:o.join("-"),transformers:$,linters:k}),n=(0,S.Z)(e,2),r=n[0],i=n[1],s=T(r),h=a("".concat(O.join("%")).concat(s));if(j){var g={mark:d,prepend:"queue",attachTo:x},v="function"==typeof u?u():u;v&&(g.csp={nonce:v});var y=(0,m.hq)(s,h,g);y[p]=Z.instanceId,y.setAttribute(f,E),Object.keys(i).forEach(function(e){(0,m.hq)(T(i[e]),"_effect-".concat(e),g)})}return[s,E,h]},function(e,t){var n=(0,S.Z)(e,3)[2];(t||v)&&j&&(0,m.jL)(n,{mark:d})}),B=(0,S.Z)(P,3),M=B[0],H=B[1],_=B[2];return function(e){var t,n;return t=C&&!j&&y?i.createElement("style",(0,A.Z)({},(n={},(0,s.Z)(n,f,H),(0,s.Z)(n,d,_),n),{dangerouslySetInnerHTML:{__html:M}})):i.createElement(R,null),i.createElement(i.Fragment,null,t,e)}}var D=function(){function e(t,n){(0,l.Z)(this,e),(0,s.Z)(this,"name",void 0),(0,s.Z)(this,"style",void 0),(0,s.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,c.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}(),L=function(){function e(){(0,l.Z)(this,e),(0,s.Z)(this,"cache",void 0),(0,s.Z)(this,"keys",void 0),(0,s.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,c.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t,n;o=null===(t=o)||void 0===t?void 0:null===(n=t.map)||void 0===n?void 0:n.get(e)}else o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=(0,S.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),I+=1}return(0,c.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),z=new L;function G(e){var t=Array.isArray(e)?e:[e];return z.has(t)||z.set(t,new N(t)),z.get(t)}function W(e){return e.notSplit=!0,e}W(["borderTop","borderBottom"]),W(["borderTop"]),W(["borderBottom"]),W(["borderLeft","borderRight"]),W(["borderLeft"]),W(["borderRight"])},1240:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(40431),o=n(60456),a=n(65877),i=n(89301),l=n(86006),c=n(8683),s=n.n(c),u=n(70333),f=n(83346),d=n(88684),p=n(965),h=n(5004),g=n(52160),v=n(60618);function m(e){return"object"===(0,p.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,p.Z)(e.icon)||"function"==typeof e.icon)}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):t[n]=r,t},{})}function b(e){return(0,u.R_)(e)[0]}function x(e){return e?Array.isArray(e)?e:[e]:[]}var C=function(e){var t=(0,l.useContext)(f.Z),n=t.csp,r=t.prefixCls,o="\n.anticon {\n display: inline-block;\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";r&&(o=o.replace(/anticon/g,r)),(0,l.useEffect)(function(){var t=e.current,r=(0,v.A)(t);(0,g.hq)(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})},[])},S=["icon","className","onClick","style","primaryColor","secondaryColor"],w={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},$=function(e){var t,n,r=e.icon,o=e.className,a=e.onClick,c=e.style,s=e.primaryColor,u=e.secondaryColor,f=(0,i.Z)(e,S),p=l.useRef(),g=w;if(s&&(g={primaryColor:s,secondaryColor:u||b(s)}),C(p),t=m(r),n="icon should be icon definiton, but got ".concat(r),(0,h.ZP)(t,"[@ant-design/icons] ".concat(n)),!m(r))return null;var v=r;return v&&"function"==typeof v.icon&&(v=(0,d.Z)((0,d.Z)({},v),{},{icon:v.icon(g.primaryColor,g.secondaryColor)})),function e(t,n,r){return r?l.createElement(t.tag,(0,d.Z)((0,d.Z)({key:n},y(t.attrs)),r),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})):l.createElement(t.tag,(0,d.Z)({key:n},y(t.attrs)),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))}))}(v.icon,"svg-".concat(v.name),(0,d.Z)((0,d.Z)({className:o,onClick:a,style:c,"data-icon":v.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:p}))};function k(e){var t=x(e),n=(0,o.Z)(t,2),r=n[0],a=n[1];return $.setTwoToneColors({primaryColor:r,secondaryColor:a})}$.displayName="IconReact",$.getTwoToneColors=function(){return(0,d.Z)({},w)},$.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;w.primaryColor=t,w.secondaryColor=n||b(t),w.calculated=!!n};var Z=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];k(u.iN.primary);var E=l.forwardRef(function(e,t){var n,c=e.className,u=e.icon,d=e.spin,p=e.rotate,h=e.tabIndex,g=e.onClick,v=e.twoToneColor,m=(0,i.Z)(e,Z),y=l.useContext(f.Z),b=y.prefixCls,C=void 0===b?"anticon":b,S=y.rootClassName,w=s()(S,C,(n={},(0,a.Z)(n,"".concat(C,"-").concat(u.name),!!u.name),(0,a.Z)(n,"".concat(C,"-spin"),!!d||"loading"===u.name),n),c),k=h;void 0===k&&g&&(k=-1);var E=x(v),A=(0,o.Z)(E,2),O=A[0],P=A[1];return l.createElement("span",(0,r.Z)({role:"img","aria-label":u.name},m,{ref:t,tabIndex:k,onClick:g,className:w}),l.createElement($,{icon:u,primaryColor:O,secondaryColor:P,style:p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0}))});E.displayName="AntdIcon",E.getTwoToneColor=function(){var e=$.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},E.setTwoToneColor=k;var A=E},83346:function(e,t,n){"use strict";var r=(0,n(86006).createContext)({});t.Z=r},56222:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(40431),o=n(86006),a={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 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},i=n(1240),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},31533:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(40431),o=n(86006),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},i=n(1240),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},75710:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(40431),o=n(86006),a={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"},i=n(1240),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},32675:function(e,t,n){"use strict";n.d(t,{T6:function(){return d},VD:function(){return p},WE:function(){return s},Yt:function(){return h},lC:function(){return a},py:function(){return c},rW:function(){return o},s:function(){return f},ve:function(){return l},vq:function(){return u}});var r=n(25752);function o(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function a(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),a=Math.min(e,t,n),i=0,l=0,c=(o+a)/2;if(o===a)l=0,i=0;else{var s=o-a;switch(l=c>.5?s/(2-o-a):s/(o+a),o){case e:i=(t-n)/s+(t1&&(n-=1),n<1/6)?e+(t-e)*(6*n):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)a=n,l=n,o=n;else{var o,a,l,c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;o=i(s,c,e+1/3),a=i(s,c,e),l=i(s,c,e-1/3)}return{r:255*o,g:255*a,b:255*l}}function c(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),a=Math.min(e,t,n),i=0,l=o-a;if(o===a)i=0;else{switch(o){case e:i=(t-n)/l+(t>16,g:(65280&e)>>8,b:255&e}}},29888:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});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"}},79185:function(e,t,n){"use strict";n.d(t,{uA:function(){return i}});var r=n(32675),o=n(29888),a=n(25752);function i(e){var t={r:0,g:0,b:0},n=1,i=null,l=null,c=null,s=!1,d=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=u.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=u.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=u.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=u.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=u.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=u.hex8.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"}:(n=u.hex6.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"}:(n=u.hex4.exec(e))?{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=u.hex3.exec(e))&&{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(f(e.r)&&f(e.g)&&f(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),s=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):f(e.h)&&f(e.s)&&f(e.v)?(i=(0,a.JX)(e.s),l=(0,a.JX)(e.v),t=(0,r.WE)(e.h,i,l),s=!0,d="hsv"):f(e.h)&&f(e.s)&&f(e.l)&&(i=(0,a.JX)(e.s),c=(0,a.JX)(e.l),t=(0,r.ve)(e.h,i,c),s=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,a.Yq)(n),{ok:s,format:e.format||d,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:RegExp("rgb"+c),rgba:RegExp("rgba"+s),hsl:RegExp("hsl"+c),hsla:RegExp("hsla"+s),hsv:RegExp("hsv"+c),hsva:RegExp("hsva"+s),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 f(e){return!!u.CSS_UNIT.exec(String(e))}},57389:function(e,t,n){"use strict";n.d(t,{C:function(){return l}});var r=n(32675),o=n(29888),a=n(79185),i=n(25752),l=function(){function e(t,n){if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.Yt)(t)),this.originalInput=t;var o,i=(0,a.uA)(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},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=(0,i.Yq)(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=(0,r.py)(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=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.lC)(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=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.vq)(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),(0,r.s)(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*(0,i.sh)(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*(0,i.sh)(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="#"+(0,r.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.R);t=0;return!t&&r&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("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())},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=(0,i.V2)(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(-(255*(t/100))))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(255*(t/100))))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(255*(t/100))))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,i.V2)(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=(0,i.V2)(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=(0,i.V2)(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(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},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,a=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+l)%1;return i},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],a=360/t,i=1;iMath.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function a(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function i(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:function(){return l},JX:function(){return i},V2:function(){return o},Yq:function(){return a},sh:function(){return r}})},43709:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t-1&&!e.return)switch(e.type){case i.h5:e.return=function e(t,n){switch((0,a.vp)(t,n)){case 5103:return i.G$+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return i.G$+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return i.G$+t+i.uj+t+i.MS+t+t;case 6828:case 4268:return i.G$+t+i.MS+t+t;case 6165:return i.G$+t+i.MS+"flex-"+t+t;case 5187:return i.G$+t+(0,a.gx)(t,/(\w+).+(:[^]+)/,i.G$+"box-$1$2"+i.MS+"flex-$1$2")+t;case 5443:return i.G$+t+i.MS+"flex-item-"+(0,a.gx)(t,/flex-|-self/,"")+t;case 4675:return i.G$+t+i.MS+"flex-line-pack"+(0,a.gx)(t,/align-content|flex-|-self/,"")+t;case 5548:return i.G$+t+i.MS+(0,a.gx)(t,"shrink","negative")+t;case 5292:return i.G$+t+i.MS+(0,a.gx)(t,"basis","preferred-size")+t;case 6060:return i.G$+"box-"+(0,a.gx)(t,"-grow","")+i.G$+t+i.MS+(0,a.gx)(t,"grow","positive")+t;case 4554:return i.G$+(0,a.gx)(t,/([^-])(transform)/g,"$1"+i.G$+"$2")+t;case 6187:return(0,a.gx)((0,a.gx)((0,a.gx)(t,/(zoom-|grab)/,i.G$+"$1"),/(image-set)/,i.G$+"$1"),t,"")+t;case 5495:case 3959:return(0,a.gx)(t,/(image-set\([^]*)/,i.G$+"$1$`$1");case 4968:return(0,a.gx)((0,a.gx)(t,/(.+:)(flex-)?(.*)/,i.G$+"box-pack:$3"+i.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+i.G$+t+t;case 4095:case 3583:case 4068:case 2532:return(0,a.gx)(t,/(.+)-inline(.+)/,i.G$+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,a.to)(t)-1-n>6)switch((0,a.uO)(t,n+1)){case 109:if(45!==(0,a.uO)(t,n+4))break;case 102:return(0,a.gx)(t,/(.+:)(.+)-([^]+)/,"$1"+i.G$+"$2-$3$1"+i.uj+(108==(0,a.uO)(t,n+3)?"$3":"$2-$3"))+t;case 115:return~(0,a.Cw)(t,"stretch")?e((0,a.gx)(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==(0,a.uO)(t,n+1))break;case 6444:switch((0,a.uO)(t,(0,a.to)(t)-3-(~(0,a.Cw)(t,"!important")&&10))){case 107:return(0,a.gx)(t,":",":"+i.G$)+t;case 101:return(0,a.gx)(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+i.G$+(45===(0,a.uO)(t,14)?"inline-":"")+"box$3$1"+i.G$+"$2$3$1"+i.MS+"$2box$3")+t}break;case 5936:switch((0,a.uO)(t,n+11)){case 114:return i.G$+t+i.MS+(0,a.gx)(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return i.G$+t+i.MS+(0,a.gx)(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return i.G$+t+i.MS+(0,a.gx)(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return i.G$+t+i.MS+t+t}return t}(e.value,e.length);break;case i.lK:return(0,l.q)([(0,o.JG)(e,{value:(0,a.gx)(e.value,"@","@"+i.G$)})],r);case i.Fr:if(e.length)return(0,a.$e)(e.props,function(t){switch((0,a.EQ)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,l.q)([(0,o.JG)(e,{props:[(0,a.gx)(t,/:(read-\w+)/,":"+i.uj+"$1")]})],r);case"::placeholder":return(0,l.q)([(0,o.JG)(e,{props:[(0,a.gx)(t,/:(plac\w+)/,":"+i.G$+"input-$1")]}),(0,o.JG)(e,{props:[(0,a.gx)(t,/:(plac\w+)/,":"+i.uj+"$1")]}),(0,o.JG)(e,{props:[(0,a.gx)(t,/:(plac\w+)/,i.MS+"input-$1")]})],r)}return""})}}],g=function(e){var t,n,o,i,s,u=e.key;if("css"===u){var f=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(f,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var g=e.stylisPlugins||h,v={},m=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+u+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(i)+s,styles:i,next:r}}},85124:function(e,t,n){"use strict";n.d(t,{L:function(){return i},j:function(){return l}});var r,o=n(86006),a=!!(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect,i=a||function(e){return e()},l=a||o.useLayoutEffect},75941:function(e,t,n){"use strict";function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}n.d(t,{My:function(){return a},fp:function(){return r},hC:function(){return o}});var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},a=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next;while(void 0!==a)}}},18587:function(e,t,n){"use strict";n.d(t,{d6:function(){return a},sI:function(){return i}});var r=n(13809),o=n(88539);let a=(e,t)=>(0,r.Z)(e,t,"Joy"),i=(e,t)=>(0,o.Z)(e,t,"Joy")},38230:function(e,t){"use strict";t.Z={grey:{50:"#F7F7F8",100:"#EBEBEF",200:"#D8D8DF",300:"#B9B9C6",400:"#8F8FA3",500:"#73738C",600:"#5A5A72",700:"#434356",800:"#25252D",900:"#131318"},blue:{50:"#F4FAFF",100:"#DDF1FF",200:"#ADDBFF",300:"#6FB6FF",400:"#3990FF",500:"#096BDE",600:"#054DA7",700:"#02367D",800:"#072859",900:"#00153C"},yellow:{50:"#FFF8C5",100:"#FAE17D",200:"#EAC54F",300:"#D4A72C",400:"#BF8700",500:"#9A6700",600:"#7D4E00",700:"#633C01",800:"#4D2D00",900:"#3B2300"},red:{50:"#FFF8F6",100:"#FFE9E8",200:"#FFC7C5",300:"#FF9192",400:"#FA5255",500:"#D3232F",600:"#A10E25",700:"#77061B",800:"#580013",900:"#39000D"},green:{50:"#F3FEF5",100:"#D7F5DD",200:"#77EC95",300:"#4CC76E",400:"#2CA24D",500:"#1A7D36",600:"#0F5D26",700:"#034318",800:"#002F0F",900:"#001D09"},purple:{50:"#FDF7FF",100:"#F4EAFF",200:"#E1CBFF",300:"#C69EFF",400:"#A374F9",500:"#814DDE",600:"#5F35AE",700:"#452382",800:"#301761",900:"#1D0A42"}}},31227:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(40431);function o(e,t,n){return void 0===e||"string"==typeof e?t:(0,r.Z)({},t,{ownerState:(0,r.Z)({},t.ownerState,n)})}},87862:function(e,t,n){"use strict";function r(e,t=[]){if(void 0===e)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}n.d(t,{Z:function(){return r}})},85059:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(40431),o=n(89791),a=n(87862);function i(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function l(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:l,externalForwardedProps:c,className:s}=e;if(!t){let e=(0,o.Z)(null==c?void 0:c.className,null==l?void 0:l.className,s,null==n?void 0:n.className),t=(0,r.Z)({},null==n?void 0:n.style,null==c?void 0:c.style,null==l?void 0:l.style),a=(0,r.Z)({},n,c,l);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}let u=(0,a.Z)((0,r.Z)({},c,l)),f=i(l),d=i(c),p=t(u),h=(0,o.Z)(null==p?void 0:p.className,null==n?void 0:n.className,s,null==c?void 0:c.className,null==l?void 0:l.className),g=(0,r.Z)({},null==p?void 0:p.style,null==n?void 0:n.style,null==c?void 0:c.style,null==l?void 0:l.style),v=(0,r.Z)({},p,n,d,f);return h.length>0&&(v.className=h),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:p.ref}}},95596:function(e,t,n){"use strict";function r(e,t){return"function"==typeof e?e(t):e}n.d(t,{Z:function(){return r}})},47093:function(e,t,n){"use strict";n.d(t,{VT:function(){return c},do:function(){return s}});var r=n(86006),o=n(95887),a=n(98918),i=n(9268);let l=r.createContext(void 0),c=e=>{let t=r.useContext(l);return{getColor:(n,r)=>t&&e&&t.includes(e)?n||"context":n||r}};function s({children:e,variant:t}){var n;let r=(0,o.Z)(a.Z);return(0,i.jsx)(l.Provider,{value:t?(null!=(n=r.colorInversionConfig)?n:a.Z.colorInversionConfig)[t]:void 0,children:e})}t.ZP=l},98918:function(e,t,n){"use strict";var r=n(41287);let o=(0,r.Z)();t.Z=o},41287:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(40431),o=n(46750),a=n(95135),i=n(82190),l=n(23343),c=n(57716),s=n(93815);let u=(e,t,n,r=[])=>{let o=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})},f=(e,t,n)=>{!function e(r,o=[],a=[]){Object.entries(r).forEach(([r,i])=>{n&&(!n||n([...o,r]))||null==i||("object"==typeof i&&Object.keys(i).length>0?e(i,[...o,r],Array.isArray(i)?[...a,r]:a):t([...o,r],i,a))})}(e)},d=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t)))return t;let n=e[e.length-1];return n.toLowerCase().indexOf("opacity")>=0?t:`${t}px`}return t};function p(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};return f(e,(e,t,l)=>{if(("string"==typeof t||"number"==typeof t)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:""}${e.join("-")}`;Object.assign(o,{[r]:d(e,t)}),u(a,e,`var(${r})`,l),u(i,e,`var(${r}, ${t})`,l)}},e=>"vars"===e[0]),{css:o,vars:a,varsWithDefaults:i}}let h=["colorSchemes","components"],g=["light"];var v=function(e,t){let{colorSchemes:n={}}=e,i=(0,o.Z)(e,h),{vars:l,css:c,varsWithDefaults:s}=p(i,t),u=s,f={},{light:d}=n,v=(0,o.Z)(n,g);if(Object.entries(v||{}).forEach(([e,n])=>{let{vars:r,css:o,varsWithDefaults:i}=p(n,t);u=(0,a.Z)(u,i),f[e]={css:o,vars:r}}),d){let{css:e,vars:n,varsWithDefaults:r}=p(d,t);u=(0,a.Z)(u,r),f.light={css:e,vars:n}}return{vars:u,generateCssVars:e=>e?{css:(0,r.Z)({},f[e].css),vars:f[e].vars}:{css:(0,r.Z)({},c),vars:l}}},m=n(51579),y=n(2272);let b=(0,r.Z)({},y.Z,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});var x=n(38230);function C(e){var t;return!!e[0].match(/^(typography|variants|breakpoints|colorInversion|colorInversionConfig)$/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null!=(t=e[1])&&t.match(/^(mode)$/))||"focus"===e[0]&&"thickness"!==e[1]}var S=n(18587),w=n(52428);let $=["cssVarPrefix","breakpoints","spacing","components","variants","colorInversion","shouldSkipGeneratingVar"],k=["colorSchemes"],Z=(e="joy")=>(0,i.Z)(e);function E(e){var t,n,i,u,f,d,p,h,g,y,E,A,O,P,B,M,j,H,T,F,R,_,D,L,I,N,z,G,W,U,K,V,X,q,Y,Q,J,ee,et,en,er,eo,ea,ei,el,ec,es,eu,ef,ed,ep,eh,eg,ev,em,ey,eb,ex,eC,eS,ew,e$,ek,eZ,eE,eA,eO,eP,eB,eM,ej,eH,eT,eF,eR,e_,eD,eL,eI,eN,ez,eG;let eW=e||{},{cssVarPrefix:eU="joy",breakpoints:eK,spacing:eV,components:eX,variants:eq,colorInversion:eY,shouldSkipGeneratingVar:eQ=C}=eW,eJ=(0,o.Z)(eW,$),e0=Z(eU),e1={primary:x.Z.blue,neutral:x.Z.grey,danger:x.Z.red,info:x.Z.purple,success:x.Z.green,warning:x.Z.yellow,common:{white:"#FFF",black:"#09090D"}},e5=e=>{var t;let n=e.split("-"),r=n[1],o=n[2];return e0(e,null==(t=e1[r])?void 0:t[o])},e2=e=>({plainColor:e5(`palette-${e}-600`),plainHoverBg:e5(`palette-${e}-100`),plainActiveBg:e5(`palette-${e}-200`),plainDisabledColor:e5(`palette-${e}-200`),outlinedColor:e5(`palette-${e}-500`),outlinedBorder:e5(`palette-${e}-200`),outlinedHoverBg:e5(`palette-${e}-100`),outlinedHoverBorder:e5(`palette-${e}-300`),outlinedActiveBg:e5(`palette-${e}-200`),outlinedDisabledColor:e5(`palette-${e}-100`),outlinedDisabledBorder:e5(`palette-${e}-100`),softColor:e5(`palette-${e}-600`),softBg:e5(`palette-${e}-100`),softHoverBg:e5(`palette-${e}-200`),softActiveBg:e5(`palette-${e}-300`),softDisabledColor:e5(`palette-${e}-300`),softDisabledBg:e5(`palette-${e}-50`),solidColor:"#fff",solidBg:e5(`palette-${e}-500`),solidHoverBg:e5(`palette-${e}-600`),solidActiveBg:e5(`palette-${e}-700`),solidDisabledColor:"#fff",solidDisabledBg:e5(`palette-${e}-200`)}),e6=e=>({plainColor:e5(`palette-${e}-300`),plainHoverBg:e5(`palette-${e}-800`),plainActiveBg:e5(`palette-${e}-700`),plainDisabledColor:e5(`palette-${e}-800`),outlinedColor:e5(`palette-${e}-200`),outlinedBorder:e5(`palette-${e}-700`),outlinedHoverBg:e5(`palette-${e}-800`),outlinedHoverBorder:e5(`palette-${e}-600`),outlinedActiveBg:e5(`palette-${e}-900`),outlinedDisabledColor:e5(`palette-${e}-800`),outlinedDisabledBorder:e5(`palette-${e}-800`),softColor:e5(`palette-${e}-200`),softBg:e5(`palette-${e}-900`),softHoverBg:e5(`palette-${e}-800`),softActiveBg:e5(`palette-${e}-700`),softDisabledColor:e5(`palette-${e}-800`),softDisabledBg:e5(`palette-${e}-900`),solidColor:"#fff",solidBg:e5(`palette-${e}-600`),solidHoverBg:e5(`palette-${e}-700`),solidActiveBg:e5(`palette-${e}-800`),solidDisabledColor:e5(`palette-${e}-700`),solidDisabledBg:e5(`palette-${e}-900`)}),e3={palette:{mode:"light",primary:(0,r.Z)({},e1.primary,e2("primary")),neutral:(0,r.Z)({},e1.neutral,{plainColor:e5("palette-neutral-800"),plainHoverColor:e5("palette-neutral-900"),plainHoverBg:e5("palette-neutral-100"),plainActiveBg:e5("palette-neutral-200"),plainDisabledColor:e5("palette-neutral-300"),outlinedColor:e5("palette-neutral-800"),outlinedBorder:e5("palette-neutral-200"),outlinedHoverColor:e5("palette-neutral-900"),outlinedHoverBg:e5("palette-neutral-100"),outlinedHoverBorder:e5("palette-neutral-300"),outlinedActiveBg:e5("palette-neutral-200"),outlinedDisabledColor:e5("palette-neutral-300"),outlinedDisabledBorder:e5("palette-neutral-100"),softColor:e5("palette-neutral-800"),softBg:e5("palette-neutral-100"),softHoverColor:e5("palette-neutral-900"),softHoverBg:e5("palette-neutral-200"),softActiveBg:e5("palette-neutral-300"),softDisabledColor:e5("palette-neutral-300"),softDisabledBg:e5("palette-neutral-50"),solidColor:e5("palette-common-white"),solidBg:e5("palette-neutral-600"),solidHoverBg:e5("palette-neutral-700"),solidActiveBg:e5("palette-neutral-800"),solidDisabledColor:e5("palette-neutral-300"),solidDisabledBg:e5("palette-neutral-50")}),danger:(0,r.Z)({},e1.danger,e2("danger")),info:(0,r.Z)({},e1.info,e2("info")),success:(0,r.Z)({},e1.success,e2("success")),warning:(0,r.Z)({},e1.warning,e2("warning"),{solidColor:e5("palette-warning-800"),solidBg:e5("palette-warning-200"),solidHoverBg:e5("palette-warning-300"),solidActiveBg:e5("palette-warning-400"),solidDisabledColor:e5("palette-warning-200"),solidDisabledBg:e5("palette-warning-50"),softColor:e5("palette-warning-800"),softBg:e5("palette-warning-50"),softHoverBg:e5("palette-warning-100"),softActiveBg:e5("palette-warning-200"),softDisabledColor:e5("palette-warning-200"),softDisabledBg:e5("palette-warning-50"),outlinedColor:e5("palette-warning-800"),outlinedHoverBg:e5("palette-warning-50"),plainColor:e5("palette-warning-800"),plainHoverBg:e5("palette-warning-50")}),common:{white:"#FFF",black:"#09090D"},text:{primary:e5("palette-neutral-800"),secondary:e5("palette-neutral-600"),tertiary:e5("palette-neutral-500")},background:{body:e5("palette-common-white"),surface:e5("palette-common-white"),popup:e5("palette-common-white"),level1:e5("palette-neutral-50"),level2:e5("palette-neutral-100"),level3:e5("palette-neutral-200"),tooltip:e5("palette-neutral-800"),backdrop:"rgba(255 255 255 / 0.5)"},divider:`rgba(${e0("palette-neutral-mainChannel",(0,l.n8)(e1.neutral[500]))} / 0.28)`,focusVisible:e5("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"187 187 187"},e8={palette:{mode:"dark",primary:(0,r.Z)({},e1.primary,e6("primary")),neutral:(0,r.Z)({},e1.neutral,{plainColor:e5("palette-neutral-200"),plainHoverColor:e5("palette-neutral-50"),plainHoverBg:e5("palette-neutral-800"),plainActiveBg:e5("palette-neutral-700"),plainDisabledColor:e5("palette-neutral-700"),outlinedColor:e5("palette-neutral-200"),outlinedBorder:e5("palette-neutral-800"),outlinedHoverColor:e5("palette-neutral-50"),outlinedHoverBg:e5("palette-neutral-800"),outlinedHoverBorder:e5("palette-neutral-700"),outlinedActiveBg:e5("palette-neutral-800"),outlinedDisabledColor:e5("palette-neutral-800"),outlinedDisabledBorder:e5("palette-neutral-800"),softColor:e5("palette-neutral-200"),softBg:e5("palette-neutral-800"),softHoverColor:e5("palette-neutral-50"),softHoverBg:e5("palette-neutral-700"),softActiveBg:e5("palette-neutral-600"),softDisabledColor:e5("palette-neutral-700"),softDisabledBg:e5("palette-neutral-900"),solidColor:e5("palette-common-white"),solidBg:e5("palette-neutral-600"),solidHoverBg:e5("palette-neutral-700"),solidActiveBg:e5("palette-neutral-800"),solidDisabledColor:e5("palette-neutral-700"),solidDisabledBg:e5("palette-neutral-900")}),danger:(0,r.Z)({},e1.danger,e6("danger")),info:(0,r.Z)({},e1.info,e6("info")),success:(0,r.Z)({},e1.success,e6("success"),{solidColor:"#fff",solidBg:e5("palette-success-600"),solidHoverBg:e5("palette-success-700"),solidActiveBg:e5("palette-success-800")}),warning:(0,r.Z)({},e1.warning,e6("warning"),{solidColor:e5("palette-common-black"),solidBg:e5("palette-warning-300"),solidHoverBg:e5("palette-warning-400"),solidActiveBg:e5("palette-warning-500")}),common:{white:"#FFF",black:"#09090D"},text:{primary:e5("palette-neutral-100"),secondary:e5("palette-neutral-300"),tertiary:e5("palette-neutral-400")},background:{body:e5("palette-neutral-900"),surface:e5("palette-common-black"),popup:e5("palette-neutral-800"),level1:e5("palette-neutral-800"),level2:e5("palette-neutral-700"),level3:e5("palette-neutral-600"),tooltip:e5("palette-neutral-600"),backdrop:`rgba(${e0("palette-neutral-darkChannel",(0,l.n8)(e1.neutral[800]))} / 0.5)`},divider:`rgba(${e0("palette-neutral-mainChannel",(0,l.n8)(e1.neutral[500]))} / 0.24)`,focusVisible:e5("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0"},e4='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',e9=(0,r.Z)({body:`"Public Sans", ${e0("fontFamily-fallback",e4)}`,display:`"Public Sans", ${e0("fontFamily-fallback",e4)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:e4},eJ.fontFamily),e7=(0,r.Z)({xs:200,sm:300,md:500,lg:600,xl:700,xl2:800,xl3:900},eJ.fontWeight),te=(0,r.Z)({xs3:"0.5rem",xs2:"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem",xl5:"3rem",xl6:"3.75rem",xl7:"4.5rem"},eJ.fontSize),tt=(0,r.Z)({sm:1.25,md:1.5,lg:1.7},eJ.lineHeight),tn=(0,r.Z)({sm:"-0.01em",md:"0.083em",lg:"0.125em"},eJ.letterSpacing),tr={colorSchemes:{light:e3,dark:e8},fontSize:te,fontFamily:e9,fontWeight:e7,focus:{thickness:"2px",selector:`&.${(0,S.d6)("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${e0("focus-thickness",null!=(t=null==(n=eJ.focus)?void 0:n.thickness)?t:"2px")})`,outline:`${e0("focus-thickness",null!=(i=null==(u=eJ.focus)?void 0:u.thickness)?i:"2px")} solid ${e0("palette-focusVisible",e1.primary[500])}`}},lineHeight:tt,letterSpacing:tn,radius:{xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"20px"},shadow:{xs:`${e0("shadowRing",null!=(f=null==(d=eJ.colorSchemes)?void 0:null==(p=d.light)?void 0:p.shadowRing)?f:e3.shadowRing)}, 0 1px 2px 0 rgba(${e0("shadowChannel",null!=(h=null==(g=eJ.colorSchemes)?void 0:null==(y=g.light)?void 0:y.shadowChannel)?h:e3.shadowChannel)} / 0.12)`,sm:`${e0("shadowRing",null!=(E=null==(A=eJ.colorSchemes)?void 0:null==(O=A.light)?void 0:O.shadowRing)?E:e3.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e0("shadowChannel",null!=(P=null==(B=eJ.colorSchemes)?void 0:null==(M=B.light)?void 0:M.shadowChannel)?P:e3.shadowChannel)} / 0.11), 0.5px 1.3px 1.8px -0.6px rgba(${e0("shadowChannel",null!=(j=null==(H=eJ.colorSchemes)?void 0:null==(T=H.light)?void 0:T.shadowChannel)?j:e3.shadowChannel)} / 0.18), 1.1px 2.7px 3.8px -1.2px rgba(${e0("shadowChannel",null!=(F=null==(R=eJ.colorSchemes)?void 0:null==(_=R.light)?void 0:_.shadowChannel)?F:e3.shadowChannel)} / 0.26)`,md:`${e0("shadowRing",null!=(D=null==(L=eJ.colorSchemes)?void 0:null==(I=L.light)?void 0:I.shadowRing)?D:e3.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e0("shadowChannel",null!=(N=null==(z=eJ.colorSchemes)?void 0:null==(G=z.light)?void 0:G.shadowChannel)?N:e3.shadowChannel)} / 0.12), 1.1px 2.8px 3.9px -0.4px rgba(${e0("shadowChannel",null!=(W=null==(U=eJ.colorSchemes)?void 0:null==(K=U.light)?void 0:K.shadowChannel)?W:e3.shadowChannel)} / 0.17), 2.4px 6.1px 8.6px -0.8px rgba(${e0("shadowChannel",null!=(V=null==(X=eJ.colorSchemes)?void 0:null==(q=X.light)?void 0:q.shadowChannel)?V:e3.shadowChannel)} / 0.23), 5.3px 13.3px 18.8px -1.2px rgba(${e0("shadowChannel",null!=(Y=null==(Q=eJ.colorSchemes)?void 0:null==(J=Q.light)?void 0:J.shadowChannel)?Y:e3.shadowChannel)} / 0.29)`,lg:`${e0("shadowRing",null!=(ee=null==(et=eJ.colorSchemes)?void 0:null==(en=et.light)?void 0:en.shadowRing)?ee:e3.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e0("shadowChannel",null!=(er=null==(eo=eJ.colorSchemes)?void 0:null==(ea=eo.light)?void 0:ea.shadowChannel)?er:e3.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${e0("shadowChannel",null!=(ei=null==(el=eJ.colorSchemes)?void 0:null==(ec=el.light)?void 0:ec.shadowChannel)?ei:e3.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${e0("shadowChannel",null!=(es=null==(eu=eJ.colorSchemes)?void 0:null==(ef=eu.light)?void 0:ef.shadowChannel)?es:e3.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${e0("shadowChannel",null!=(ed=null==(ep=eJ.colorSchemes)?void 0:null==(eh=ep.light)?void 0:eh.shadowChannel)?ed:e3.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${e0("shadowChannel",null!=(eg=null==(ev=eJ.colorSchemes)?void 0:null==(em=ev.light)?void 0:em.shadowChannel)?eg:e3.shadowChannel)} / 0.21)`,xl:`${e0("shadowRing",null!=(ey=null==(eb=eJ.colorSchemes)?void 0:null==(ex=eb.light)?void 0:ex.shadowRing)?ey:e3.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e0("shadowChannel",null!=(eC=null==(eS=eJ.colorSchemes)?void 0:null==(ew=eS.light)?void 0:ew.shadowChannel)?eC:e3.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${e0("shadowChannel",null!=(e$=null==(ek=eJ.colorSchemes)?void 0:null==(eZ=ek.light)?void 0:eZ.shadowChannel)?e$:e3.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${e0("shadowChannel",null!=(eE=null==(eA=eJ.colorSchemes)?void 0:null==(eO=eA.light)?void 0:eO.shadowChannel)?eE:e3.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${e0("shadowChannel",null!=(eP=null==(eB=eJ.colorSchemes)?void 0:null==(eM=eB.light)?void 0:eM.shadowChannel)?eP:e3.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${e0("shadowChannel",null!=(ej=null==(eH=eJ.colorSchemes)?void 0:null==(eT=eH.light)?void 0:eT.shadowChannel)?ej:e3.shadowChannel)} / 0.21), 10.2px 25.5px 36px -0.9px rgba(${e0("shadowChannel",null!=(eF=null==(eR=eJ.colorSchemes)?void 0:null==(e_=eR.light)?void 0:e_.shadowChannel)?eF:e3.shadowChannel)} / 0.24), 14.8px 36.8px 52.1px -1.1px rgba(${e0("shadowChannel",null!=(eD=null==(eL=eJ.colorSchemes)?void 0:null==(eI=eL.light)?void 0:eI.shadowChannel)?eD:e3.shadowChannel)} / 0.27), 21px 52.3px 74px -1.2px rgba(${e0("shadowChannel",null!=(eN=null==(ez=eJ.colorSchemes)?void 0:null==(eG=ez.light)?void 0:eG.shadowChannel)?eN:e3.shadowChannel)} / 0.29)`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,tooltip:1500},typography:{display1:{fontFamily:e0("fontFamily-display",e9.display),fontWeight:e0("fontWeight-xl",e7.xl.toString()),fontSize:e0("fontSize-xl7",te.xl7),lineHeight:e0("lineHeight-sm",tt.sm.toString()),letterSpacing:e0("letterSpacing-sm",tn.sm),color:e0("palette-text-primary",e3.palette.text.primary)},display2:{fontFamily:e0("fontFamily-display",e9.display),fontWeight:e0("fontWeight-xl",e7.xl.toString()),fontSize:e0("fontSize-xl6",te.xl6),lineHeight:e0("lineHeight-sm",tt.sm.toString()),letterSpacing:e0("letterSpacing-sm",tn.sm),color:e0("palette-text-primary",e3.palette.text.primary)},h1:{fontFamily:e0("fontFamily-display",e9.display),fontWeight:e0("fontWeight-lg",e7.lg.toString()),fontSize:e0("fontSize-xl5",te.xl5),lineHeight:e0("lineHeight-sm",tt.sm.toString()),letterSpacing:e0("letterSpacing-sm",tn.sm),color:e0("palette-text-primary",e3.palette.text.primary)},h2:{fontFamily:e0("fontFamily-display",e9.display),fontWeight:e0("fontWeight-lg",e7.lg.toString()),fontSize:e0("fontSize-xl4",te.xl4),lineHeight:e0("lineHeight-sm",tt.sm.toString()),letterSpacing:e0("letterSpacing-sm",tn.sm),color:e0("palette-text-primary",e3.palette.text.primary)},h3:{fontFamily:e0("fontFamily-body",e9.body),fontWeight:e0("fontWeight-md",e7.md.toString()),fontSize:e0("fontSize-xl3",te.xl3),lineHeight:e0("lineHeight-sm",tt.sm.toString()),color:e0("palette-text-primary",e3.palette.text.primary)},h4:{fontFamily:e0("fontFamily-body",e9.body),fontWeight:e0("fontWeight-md",e7.md.toString()),fontSize:e0("fontSize-xl2",te.xl2),lineHeight:e0("lineHeight-md",tt.md.toString()),color:e0("palette-text-primary",e3.palette.text.primary)},h5:{fontFamily:e0("fontFamily-body",e9.body),fontWeight:e0("fontWeight-md",e7.md.toString()),fontSize:e0("fontSize-xl",te.xl),lineHeight:e0("lineHeight-md",tt.md.toString()),color:e0("palette-text-primary",e3.palette.text.primary)},h6:{fontFamily:e0("fontFamily-body",e9.body),fontWeight:e0("fontWeight-md",e7.md.toString()),fontSize:e0("fontSize-lg",te.lg),lineHeight:e0("lineHeight-md",tt.md.toString()),color:e0("palette-text-primary",e3.palette.text.primary)},body1:{fontFamily:e0("fontFamily-body",e9.body),fontSize:e0("fontSize-md",te.md),lineHeight:e0("lineHeight-md",tt.md.toString()),color:e0("palette-text-primary",e3.palette.text.primary)},body2:{fontFamily:e0("fontFamily-body",e9.body),fontSize:e0("fontSize-sm",te.sm),lineHeight:e0("lineHeight-md",tt.md.toString()),color:e0("palette-text-secondary",e3.palette.text.secondary)},body3:{fontFamily:e0("fontFamily-body",e9.body),fontSize:e0("fontSize-xs",te.xs),lineHeight:e0("lineHeight-md",tt.md.toString()),color:e0("palette-text-tertiary",e3.palette.text.tertiary)},body4:{fontFamily:e0("fontFamily-body",e9.body),fontSize:e0("fontSize-xs2",te.xs2),lineHeight:e0("lineHeight-md",tt.md.toString()),color:e0("palette-text-tertiary",e3.palette.text.tertiary)},body5:{fontFamily:e0("fontFamily-body",e9.body),fontSize:e0("fontSize-xs3",te.xs3),lineHeight:e0("lineHeight-md",tt.md.toString()),color:e0("palette-text-tertiary",e3.palette.text.tertiary)}}},to=eJ?(0,a.Z)(tr,eJ):tr,{colorSchemes:ta}=to,ti=(0,o.Z)(to,k),tl=(0,r.Z)({colorSchemes:ta},ti,{breakpoints:(0,c.Z)(null!=eK?eK:{}),components:(0,a.Z)({MuiSvgIcon:{defaultProps:{fontSize:"xl"},styleOverrides:{root:({ownerState:e,theme:t})=>{var n;let o=e.instanceFontSize;return(0,r.Z)({color:"var(--Icon-color)",margin:"var(--Icon-margin)"},e.fontSize&&"inherit"!==e.fontSize&&{fontSize:`var(--Icon-fontSize, ${t.vars.fontSize[e.fontSize]})`},e.color&&"inherit"!==e.color&&"context"!==e.color&&t.vars.palette[e.color]&&{color:`rgba(${null==(n=t.vars.palette[e.color])?void 0:n.mainChannel} / 1)`},"context"===e.color&&{color:t.vars.palette.text.secondary},o&&"inherit"!==o&&{"--Icon-fontSize":t.vars.fontSize[o]})}}}},eX),cssVarPrefix:eU,getCssVar:e0,spacing:(0,s.Z)(eV),colorInversionConfig:{soft:["plain","outlined","soft","solid"],solid:["plain","outlined","soft","solid"]}});Object.entries(tl.colorSchemes).forEach(([e,t])=>{!function(e,t){Object.keys(t).forEach(n=>{let r={main:"500",light:"200",dark:"800"};"dark"===e&&(r.main=400),!t[n].mainChannel&&t[n][r.main]&&(t[n].mainChannel=(0,l.n8)(t[n][r.main])),!t[n].lightChannel&&t[n][r.light]&&(t[n].lightChannel=(0,l.n8)(t[n][r.light])),!t[n].darkChannel&&t[n][r.dark]&&(t[n].darkChannel=(0,l.n8)(t[n][r.dark]))})}(e,t.palette)});let{vars:tc,generateCssVars:ts}=v((0,r.Z)({colorSchemes:ta},ti),{prefix:eU,shouldSkipGeneratingVar:eQ});tl.vars=tc,tl.generateCssVars=ts,tl.unstable_sxConfig=(0,r.Z)({},b,null==e?void 0:e.unstable_sxConfig),tl.unstable_sx=function(e){return(0,m.Z)({sx:e,theme:this})},tl.getColorSchemeSelector=e=>"light"===e?"&":`&[data-joy-color-scheme="${e}"], [data-joy-color-scheme="${e}"] &`;let tu={getCssVar:e0,palette:tl.colorSchemes.light.palette};return tl.variants=(0,a.Z)({plain:(0,w.Zm)("plain",tu),plainHover:(0,w.Zm)("plainHover",tu),plainActive:(0,w.Zm)("plainActive",tu),plainDisabled:(0,w.Zm)("plainDisabled",tu),outlined:(0,w.Zm)("outlined",tu),outlinedHover:(0,w.Zm)("outlinedHover",tu),outlinedActive:(0,w.Zm)("outlinedActive",tu),outlinedDisabled:(0,w.Zm)("outlinedDisabled",tu),soft:(0,w.Zm)("soft",tu),softHover:(0,w.Zm)("softHover",tu),softActive:(0,w.Zm)("softActive",tu),softDisabled:(0,w.Zm)("softDisabled",tu),solid:(0,w.Zm)("solid",tu),solidHover:(0,w.Zm)("solidHover",tu),solidActive:(0,w.Zm)("solidActive",tu),solidDisabled:(0,w.Zm)("solidDisabled",tu)},eq),tl.palette=(0,r.Z)({},tl.colorSchemes.light.palette,{colorScheme:"light"}),tl.shouldSkipGeneratingVar=eQ,tl.colorInversion="function"==typeof eY?eY:(0,a.Z)({soft:(0,w.pP)(tl,!0),solid:(0,w.Lo)(tl,!0)},eY||{},{clone:!1}),tl}},50645:function(e,t,n){"use strict";var r=n(9312),o=n(98918);let a=(0,r.ZP)({defaultTheme:o.Z});t.Z=a},88930:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(40431),o=n(38295),a=n(98918);function i({props:e,name:t}){return(0,o.Z)({props:e,name:t,defaultTheme:(0,r.Z)({},a.Z,{components:{}})})}},52428:function(e,t,n){"use strict";n.d(t,{Lo:function(){return f},Zm:function(){return s},pP:function(){return u}});var r=n(40431),o=n(82190);let a=e=>e&&"object"==typeof e&&Object.keys(e).some(e=>{var t;return null==(t=e.match)?void 0:t.call(e,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),i=(e,t,n)=>{t.includes("Color")&&(e.color=n),t.includes("Bg")&&(e.backgroundColor=n),t.includes("Border")&&(e.borderColor=n)},l=(e,t,n)=>{let r={};return Object.entries(t||{}).forEach(([t,o])=>{if(t.match(RegExp(`${e}(color|bg|border)`,"i"))&&o){let e=n?n(t):o;t.includes("Disabled")&&(r.pointerEvents="none",r.cursor="default"),t.match(/(Hover|Active|Disabled)/)||(r["--variant-borderWidth"]||(r["--variant-borderWidth"]="0px"),t.includes("Border")&&(r["--variant-borderWidth"]="1px",r.border="var(--variant-borderWidth) solid")),i(r,t,e)}}),r},c=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,s=(e,t)=>{let n={};if(t){let{getCssVar:o,palette:i}=t;Object.entries(i).forEach(t=>{let[c,s]=t;a(s)&&"object"==typeof s&&(n=(0,r.Z)({},n,{[c]:l(e,s,e=>o(`palette-${c}-${e}`,i[c][e]))}))})}return n.context=l(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverColor:"var(--variant-solidHoverColor)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),n},u=(e,t)=>{let n=(0,o.Z)(e.cssVarPrefix),r=c(e.cssVarPrefix),i={},l=t?t=>{var r,o;let a=t.split("-"),i=a[1],l=a[2];return n(t,null==(r=e.palette)?void 0:null==(o=r[i])?void 0:o[l])}:n;return Object.entries(e.palette).forEach(t=>{let[n,o]=t;a(o)&&(i[n]={"--Badge-ringColor":l(`palette-${n}-softBg`),[r("--shadowChannel")]:l(`palette-${n}-darkChannel`),[e.getColorSchemeSelector("dark")]:{[r("--palette-focusVisible")]:l(`palette-${n}-300`),[r("--palette-background-body")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.1)`,[r("--palette-background-surface")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`,[r("--palette-background-level1")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.4)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,[r("--palette-text-primary")]:l(`palette-${n}-100`),[r("--palette-text-secondary")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.72)`,[r("--palette-text-tertiary")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.6)`,[r("--palette-divider")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${l(`palette-${n}-lightChannel`)} / 1)`,"--variant-plainHoverColor":l(`palette-${n}-50`),"--variant-plainHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${l(`palette-${n}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":l(`palette-${n}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":l(`palette-${n}-600`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${n}-100`),"--variant-softBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${n}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${n}-400`),"--variant-solidActiveBg":l(`palette-${n}-400`),"--variant-solidDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`},[e.getColorSchemeSelector("light")]:{[r("--palette-focusVisible")]:l(`palette-${n}-500`),[r("--palette-background-body")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.1)`,[r("--palette-background-surface")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`,[r("--palette-background-level1")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.48)`,[r("--palette-text-primary")]:l(`palette-${n}-700`),[r("--palette-text-secondary")]:`rgba(${l(`palette-${n}-darkChannel`)} / 0.8)`,[r("--palette-text-tertiary")]:`rgba(${l(`palette-${n}-darkChannel`)} / 0.68)`,[r("--palette-divider")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${l(`palette-${n}-mainChannel`)} / 1)`,"--variant-plainHoverColor":l(`palette-${n}-600`),"--variant-plainHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${l(`palette-${n}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":l(`palette-${n}-600`),"--variant-outlinedHoverBorder":l(`palette-${n}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-softColor":l(`palette-${n}-600`),"--variant-softBg":`rgba(${l(`palette-${n}-lightChannel`)} / 0.72)`,"--variant-softHoverColor":l(`palette-${n}-700`),"--variant-softHoverBg":l(`palette-${n}-200`),"--variant-softActiveBg":l(`palette-${n}-300`),"--variant-softDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`,"--variant-solidColor":l("palette-common-white"),"--variant-solidBg":l(`palette-${n}-600`),"--variant-solidHoverColor":l("palette-common-white"),"--variant-solidHoverBg":l(`palette-${n}-500`),"--variant-solidActiveBg":l(`palette-${n}-500`),"--variant-solidDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`}})}),i},f=(e,t)=>{let n=(0,o.Z)(e.cssVarPrefix),r=c(e.cssVarPrefix),i={},l=t?t=>{let r=t.split("-"),o=r[1],a=r[2];return n(t,e.palette[o][a])}:n;return Object.entries(e.palette).forEach(e=>{let[t,n]=e;a(n)&&("warning"===t?i.warning={"--Badge-ringColor":l(`palette-${t}-solidBg`),[r("--shadowChannel")]:l(`palette-${t}-darkChannel`),[r("--palette-focusVisible")]:l(`palette-${t}-700`),[r("--palette-background-body")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.16)`,[r("--palette-background-surface")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.1)`,[r("--palette-background-popup")]:l(`palette-${t}-100`),[r("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[r("--palette-text-primary")]:l(`palette-${t}-900`),[r("--palette-text-secondary")]:l(`palette-${t}-700`),[r("--palette-text-tertiary")]:l(`palette-${t}-500`),[r("--palette-divider")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,"--variant-plainColor":l(`palette-${t}-700`),"--variant-plainHoverColor":l(`palette-${t}-800`),"--variant-plainHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-700`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.5)`,"--variant-outlinedHoverColor":l(`palette-${t}-800`),"--variant-outlinedHoverBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.6)`,"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${t}-800`),"--variant-softHoverColor":l(`palette-${t}-900`),"--variant-softBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.2)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.28)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.08)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${t}-600`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${t}-700`),"--variant-solidActiveBg":l(`palette-${t}-800`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.08)`}:i[t]={colorScheme:"dark","--Badge-ringColor":l(`palette-${t}-solidBg`),[r("--shadowChannel")]:l(`palette-${t}-darkChannel`),[r("--palette-focusVisible")]:l(`palette-${t}-200`),[r("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[r("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[r("--palette-background-popup")]:l(`palette-${t}-700`),[r("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[r("--palette-text-primary")]:l("palette-common-white"),[r("--palette-text-secondary")]:l(`palette-${t}-100`),[r("--palette-text-tertiary")]:l(`palette-${t}-200`),[r("--palette-divider")]:`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainColor":l(`palette-${t}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-50`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":l(`palette-${t}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":l("palette-common-white"),"--variant-softHoverColor":l("palette-common-white"),"--variant-softBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.16)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`,"--variant-solidColor":l(`palette-${t}-${"neutral"===t?"600":"500"}`),"--variant-solidBg":l("palette-common-white"),"--variant-solidHoverColor":l(`palette-${t}-700`),"--variant-solidHoverBg":l("palette-common-white"),"--variant-solidActiveBg":l(`palette-${t}-200`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`})}),i}},326:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(40431),o=n(46750),a=n(99179),i=n(95596),l=n(85059),c=n(31227),s=n(47093);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],f=["component","slots","slotProps"],d=["component"],p=["disableColorInversion"];function h(e,t){let{className:n,elementType:h,ownerState:g,externalForwardedProps:v,getSlotOwnerState:m,internalForwardedProps:y}=t,b=(0,o.Z)(t,u),{component:x,slots:C={[e]:void 0},slotProps:S={[e]:void 0}}=v,w=(0,o.Z)(v,f),$=C[e]||h,k=(0,i.Z)(S[e],g),Z=(0,l.Z)((0,r.Z)({className:n},b,{externalForwardedProps:"root"===e?w:void 0,externalSlotProps:k})),{props:{component:E},internalRef:A}=Z,O=(0,o.Z)(Z.props,d),P=(0,a.Z)(A,null==k?void 0:k.ref,t.ref),B=m?m(O):{},{disableColorInversion:M=!1}=B,j=(0,o.Z)(B,p),H=(0,r.Z)({},g,j),{getColor:T}=(0,s.VT)(H.variant);if("root"===e){var F;H.color=null!=(F=O.color)?F:g.color}else M||(H.color=T(O.color,H.color));let R="root"===e?E||x:E,_=(0,c.Z)($,(0,r.Z)({},"root"===e&&!x&&!C[e]&&y,"root"!==e&&!C[e]&&y,O,R&&{as:R},{ref:P}),H);return Object.keys(j).forEach(e=>{delete _[e]}),[$,_]}},4323:function(e,t,n){"use strict";n.d(t,{ZP:function(){return m},Co:function(){return y}});var r=n(40431),o=n(86006),a=n(83596),i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,l=(0,a.Z)(function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),c=n(17464),s=n(75941),u=n(5013),f=n(85124),d=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?l:d},h=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,s.hC)(t,n,r),(0,f.L)(function(){return(0,s.My)(t,n,r)}),null},v=(function e(t,n){var a,i,l=t.__emotion_real===t,f=l&&t.__emotion_base||t;void 0!==n&&(a=n.label,i=n.target);var d=h(t,n,l),v=d||p(f),m=!v("as");return function(){var y=arguments,b=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&b.push("label:"+a+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var x=y.length,C=1;C{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},91559:function(e,t,n){"use strict";n.d(t,{L7:function(){return c},P$:function(){return u},VO:function(){return o},W8:function(){return l},dt:function(){return s},k9:function(){return i}});var r=n(95135);let o={xs:0,sm:600,md:900,lg:1200,xl:1536},a={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`};function i(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||a;return t.reduce((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if("object"==typeof t){let e=r.breakpoints||a;return Object.keys(t).reduce((r,a)=>{if(-1!==Object.keys(e.values||o).indexOf(a)){let o=e.up(a);r[o]=n(t[a],a)}else r[a]=t[a];return r},{})}let i=n(t);return i}function l(e={}){var t;let n=null==(t=e.keys)?void 0:t.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{});return n||{}}function c(e,t){return e.reduce((e,t)=>{let n=e[t],r=!n||0===Object.keys(n).length;return r&&delete e[t],e},t)}function s(e,...t){let n=l(e),o=[n,...t].reduce((e,t)=>(0,r.Z)(e,t),{});return c(Object.keys(n),o)}function u({values:e,breakpoints:t,base:n}){let r;let o=n||function(e,t){if("object"!=typeof e)return{};let n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r{null!=e[t]&&(n[t]=!0)}),n}(e,t),a=Object.keys(o);return 0===a.length?e:a.reduce((t,n,o)=>(Array.isArray(e)?(t[n]=null!=e[o]?e[o]:e[r],r=o):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[r],r=n):t[n]=e,t),{})}},23343:function(e,t,n){"use strict";n.d(t,{$n:function(){return f},_j:function(){return u},mi:function(){return s},n8:function(){return i}});var r=n(16066);function o(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function a(e){let t;if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let n=e.indexOf("("),o=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(o))throw Error((0,r.Z)(9,e));let i=e.substring(n+1,e.length-1);if("color"===o){if(t=(i=i.split(" ")).shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,r.Z)(10,t))}else i=i.split(",");return{type:o,values:i=i.map(e=>parseFloat(e)),colorSpace:t}}let i=e=>{let t=a(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};function l(e){let{type:t,colorSpace:n}=e,{values:r}=e;return -1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),`${t}(${r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`})`}function c(e){let t="hsl"===(e=a(e)).type||"hsla"===e.type?a(function(e){e=a(e);let{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),c=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1),s="rgb",u=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return"hsla"===e.type&&(s+="a",u.push(t[3])),l({type:s,values:u})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s(e,t){let n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e,t){if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)}function f(e,t){if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return l(e)}},9312:function(e,t,n){"use strict";n.d(t,{ZP:function(){return b},x9:function(){return v}});var r=n(46750),o=n(40431),a=n(4323),i=n(89587),l=n(53832);let c=["variant"];function s(e){return 0===e.length}function u(e){let{variant:t}=e,n=(0,r.Z)(e,c),o=t||"";return Object.keys(n).sort().forEach(t=>{"color"===t?o+=s(o)?e[t]:(0,l.Z)(e[t]):o+=`${s(o)?t:(0,l.Z)(t)}${(0,l.Z)(e[t].toString())}`}),o}var f=n(51579);let d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],p=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,h=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);let r={};return n.forEach(e=>{let t=u(e.props);r[t]=e.style}),r},g=(e,t,n,r)=>{var o,a;let{ownerState:i={}}=e,l=[],c=null==n?void 0:null==(o=n.components)?void 0:null==(a=o[r])?void 0:a.variants;return c&&c.forEach(n=>{let r=!0;Object.keys(n.props).forEach(t=>{i[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)}),r&&l.push(t[u(n.props)])}),l};function v(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let m=(0,i.Z)();function y({defaultTheme:e,theme:t,themeId:n}){return 0===Object.keys(t).length?e:t[n]||t}function b(e={}){let{themeId:t,defaultTheme:n=m,rootShouldForwardProp:i=v,slotShouldForwardProp:l=v}=e,c=e=>(0,f.Z)((0,o.Z)({},e,{theme:y((0,o.Z)({},e,{defaultTheme:n,themeId:t}))}));return c.__mui_systemSx=!0,(e,s={})=>{let u;(0,a.Co)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:f,slot:m,skipVariantsResolver:b,skipSx:x,overridesResolver:C}=s,S=(0,r.Z)(s,d),w=void 0!==b?b:m&&"Root"!==m||!1,$=x||!1,k=v;"Root"===m?k=i:m?k=l:"string"==typeof e&&e.charCodeAt(0)>96&&(k=void 0);let Z=(0,a.ZP)(e,(0,o.Z)({shouldForwardProp:k,label:u},S)),E=(r,...a)=>{let i=a?a.map(e=>"function"==typeof e&&e.__emotion_real!==e?r=>e((0,o.Z)({},r,{theme:y((0,o.Z)({},r,{defaultTheme:n,themeId:t}))})):e):[],l=r;f&&C&&i.push(e=>{let r=y((0,o.Z)({},e,{defaultTheme:n,themeId:t})),a=p(f,r);if(a){let t={};return Object.entries(a).forEach(([n,a])=>{t[n]="function"==typeof a?a((0,o.Z)({},e,{theme:r})):a}),C(e,t)}return null}),f&&!w&&i.push(e=>{let r=y((0,o.Z)({},e,{defaultTheme:n,themeId:t}));return g(e,h(f,r),r,f)}),$||i.push(c);let s=i.length-a.length;if(Array.isArray(r)&&s>0){let e=Array(s).fill("");(l=[...r,...e]).raw=[...r.raw,...e]}else"function"==typeof r&&r.__emotion_real!==r&&(l=e=>r((0,o.Z)({},e,{theme:y((0,o.Z)({},e,{defaultTheme:n,themeId:t}))})));let u=Z(l,...i);return e.muiName&&(u.muiName=e.muiName),u};return Z.withConfig&&(E.withConfig=Z.withConfig),E}}},57716:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(46750),o=n(40431);let a=["values","unit","step"],i=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,o.Z)({},e,{[t.key]:t.val}),{})};function l(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:l=5}=e,c=(0,r.Z)(e,a),s=i(t),u=Object.keys(s);function f(e){let r="number"==typeof t[e]?t[e]:e;return`@media (min-width:${r}${n})`}function d(e){let r="number"==typeof t[e]?t[e]:e;return`@media (max-width:${r-l/100}${n})`}function p(e,r){let o=u.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[u[o]]?t[u[o]]:r)-l/100}${n})`}return(0,o.Z)({keys:u,values:s,up:f,down:d,between:p,only:function(e){return u.indexOf(e)+1{let n=0===e.length?[1]:e;return n.map(e=>{let n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ")};return n.mui=!0,n}},89587:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(40431),o=n(46750),a=n(95135),i=n(57716),l={borderRadius:4},c=n(93815),s=n(51579),u=n(2272);let f=["breakpoints","palette","spacing","shape"];var d=function(e={},...t){let{breakpoints:n={},palette:d={},spacing:p,shape:h={}}=e,g=(0,o.Z)(e,f),v=(0,i.Z)(n),m=(0,c.Z)(p),y=(0,a.Z)({breakpoints:v,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},d),spacing:m,shape:(0,r.Z)({},l,h)},g);return(y=t.reduce((e,t)=>(0,a.Z)(e,t),y)).unstable_sxConfig=(0,r.Z)({},u.Z,null==g?void 0:g.unstable_sxConfig),y.unstable_sx=function(e){return(0,s.Z)({sx:e,theme:this})},y}},82190:function(e,t,n){"use strict";function r(e=""){return(t,...n)=>`var(--${e?`${e}-`:""}${t}${function t(...n){if(!n.length)return"";let r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}(...n)})`}n.d(t,{Z:function(){return r}})},70233:function(e,t,n){"use strict";var r=n(95135);t.Z=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},48527:function(e,t,n){"use strict";n.d(t,{hB:function(){return h},eI:function(){return p},NA:function(){return g},e6:function(){return m},o3:function(){return y}});var r=n(91559),o=n(95247),a=n(70233);let i={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},s=function(e){let t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!c[e])return[e];e=c[e]}let[t,n]=e.split(""),r=i[t],o=l[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...u,...f];function p(e,t,n,r){var a;let i=null!=(a=(0,o.DW)(e,t,!1))?a:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>void 0}function h(e){return p(e,"spacing",8,"spacing")}function g(e,t){if("string"==typeof t||null==t)return t;let n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function v(e,t){let n=h(e.theme);return Object.keys(e).map(o=>(function(e,t,n,o){if(-1===t.indexOf(n))return null;let a=s(n),i=e[n];return(0,r.k9)(e,i,e=>a.reduce((t,n)=>(t[n]=g(o,e),t),{}))})(e,t,o,n)).reduce(a.Z,{})}function m(e){return v(e,u)}function y(e){return v(e,f)}function b(e){return v(e,d)}m.propTypes={},m.filterProps=u,y.propTypes={},y.filterProps=f,b.propTypes={},b.filterProps=d},95247:function(e,t,n){"use strict";n.d(t,{DW:function(){return a},Jq:function(){return i}});var r=n(53832),o=n(91559);function a(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function i(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:a(e,n)||r,t&&(o=t(o,r,e)),o}t.ZP=function(e){let{prop:t,cssProperty:n=e.prop,themeKey:l,transform:c}=e,s=e=>{if(null==e[t])return null;let s=e[t],u=e.theme,f=a(u,l)||{};return(0,o.k9)(e,s,e=>{let o=i(f,c,e);return(e===o&&"string"==typeof e&&(o=i(f,c,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===n)?o:{[n]:o}})};return s.propTypes={},s.filterProps=[t],s}},2272:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=n(48527),o=n(95247),a=n(70233),i=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?(0,a.Z)(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n},l=n(91559);function c(e){return"number"!=typeof e?e:`${e}px solid`}let s=(0,o.ZP)({prop:"border",themeKey:"borders",transform:c}),u=(0,o.ZP)({prop:"borderTop",themeKey:"borders",transform:c}),f=(0,o.ZP)({prop:"borderRight",themeKey:"borders",transform:c}),d=(0,o.ZP)({prop:"borderBottom",themeKey:"borders",transform:c}),p=(0,o.ZP)({prop:"borderLeft",themeKey:"borders",transform:c}),h=(0,o.ZP)({prop:"borderColor",themeKey:"palette"}),g=(0,o.ZP)({prop:"borderTopColor",themeKey:"palette"}),v=(0,o.ZP)({prop:"borderRightColor",themeKey:"palette"}),m=(0,o.ZP)({prop:"borderBottomColor",themeKey:"palette"}),y=(0,o.ZP)({prop:"borderLeftColor",themeKey:"palette"}),b=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,r.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,l.k9)(e,e.borderRadius,e=>({borderRadius:(0,r.NA)(t,e)}))}return null};b.propTypes={},b.filterProps=["borderRadius"],i(s,u,f,d,p,h,g,v,m,y,b);let x=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,r.eI)(e.theme,"spacing",8,"gap");return(0,l.k9)(e,e.gap,e=>({gap:(0,r.NA)(t,e)}))}return null};x.propTypes={},x.filterProps=["gap"];let C=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,r.eI)(e.theme,"spacing",8,"columnGap");return(0,l.k9)(e,e.columnGap,e=>({columnGap:(0,r.NA)(t,e)}))}return null};C.propTypes={},C.filterProps=["columnGap"];let S=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,r.eI)(e.theme,"spacing",8,"rowGap");return(0,l.k9)(e,e.rowGap,e=>({rowGap:(0,r.NA)(t,e)}))}return null};S.propTypes={},S.filterProps=["rowGap"];let w=(0,o.ZP)({prop:"gridColumn"}),$=(0,o.ZP)({prop:"gridRow"}),k=(0,o.ZP)({prop:"gridAutoFlow"}),Z=(0,o.ZP)({prop:"gridAutoColumns"}),E=(0,o.ZP)({prop:"gridAutoRows"}),A=(0,o.ZP)({prop:"gridTemplateColumns"}),O=(0,o.ZP)({prop:"gridTemplateRows"}),P=(0,o.ZP)({prop:"gridTemplateAreas"}),B=(0,o.ZP)({prop:"gridArea"});function M(e,t){return"grey"===t?t:e}i(x,C,S,w,$,k,Z,E,A,O,P,B);let j=(0,o.ZP)({prop:"color",themeKey:"palette",transform:M}),H=(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:M}),T=(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:M});function F(e){return e<=1&&0!==e?`${100*e}%`:e}i(j,H,T);let R=(0,o.ZP)({prop:"width",transform:F}),_=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,l.k9)(e,e.maxWidth,t=>{var n,r,o;let a=(null==(n=e.theme)?void 0:null==(r=n.breakpoints)?void 0:null==(o=r.values)?void 0:o[t])||l.VO[t];return{maxWidth:a||F(t)}}):null;_.filterProps=["maxWidth"];let D=(0,o.ZP)({prop:"minWidth",transform:F}),L=(0,o.ZP)({prop:"height",transform:F}),I=(0,o.ZP)({prop:"maxHeight",transform:F}),N=(0,o.ZP)({prop:"minHeight",transform:F});(0,o.ZP)({prop:"size",cssProperty:"width",transform:F}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:F});let z=(0,o.ZP)({prop:"boxSizing"});i(R,_,D,L,I,N,z);let G={border:{themeKey:"borders",transform:c},borderTop:{themeKey:"borders",transform:c},borderRight:{themeKey:"borders",transform:c},borderBottom:{themeKey:"borders",transform:c},borderLeft:{themeKey:"borders",transform:c},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:b},color:{themeKey:"palette",transform:M},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:M},backgroundColor:{themeKey:"palette",transform:M},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:x},rowGap:{style:S},columnGap:{style:C},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:F},maxWidth:{style:_},minWidth:{transform:F},height:{transform:F},maxHeight:{transform:F},minHeight:{transform:F},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var W=G},86601:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(40431),o=n(46750),a=n(95135),i=n(2272);let l=["sx"],c=e=>{var t,n;let r={systemProps:{},otherProps:{}},o=null!=(t=null==e?void 0:null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:i.Z;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r};function s(e){let t;let{sx:n}=e,i=(0,o.Z)(e,l),{systemProps:s,otherProps:u}=c(i);return t=Array.isArray(n)?[s,...n]:"function"==typeof n?(...e)=>{let t=n(...e);return(0,a.P)(t)?(0,r.Z)({},s,t):s}:(0,r.Z)({},s,n),(0,r.Z)({},u,{sx:t})}},51579:function(e,t,n){"use strict";var r=n(53832),o=n(70233),a=n(95247),i=n(91559),l=n(2272);let c=function(){function e(e,t,n,o){let l={[e]:t,theme:n},c=o[e];if(!c)return{[e]:t};let{cssProperty:s=e,themeKey:u,transform:f,style:d}=c;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};let p=(0,a.DW)(n,u)||{};return d?d(l):(0,i.k9)(l,t,t=>{let n=(0,a.Jq)(p,f,t);return(t===n&&"string"==typeof t&&(n=(0,a.Jq)(p,f,`${e}${"default"===t?"":(0,r.Z)(t)}`,t)),!1===s)?n:{[s]:n}})}return function t(n){var r;let{sx:a,theme:c={}}=n||{};if(!a)return null;let s=null!=(r=c.unstable_sxConfig)?r:l.Z;function u(n){let r=n;if("function"==typeof n)r=n(c);else if("object"!=typeof n)return n;if(!r)return null;let a=(0,i.W8)(c.breakpoints),l=Object.keys(a),u=a;return Object.keys(r).forEach(n=>{var a;let l="function"==typeof(a=r[n])?a(c):a;if(null!=l){if("object"==typeof l){if(s[n])u=(0,o.Z)(u,e(n,l,c,s));else{let e=(0,i.k9)({theme:c},l,e=>({[n]:e}));(function(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)})(e,l)?u[n]=t({sx:l,theme:c}):u=(0,o.Z)(u,e)}}else u=(0,o.Z)(u,e(n,l,c,s))}}),(0,i.L7)(l,u)}return Array.isArray(a)?a.map(u):u(a)}}();c.filterProps=["sx"],t.Z=c},95887:function(e,t,n){"use strict";var r=n(89587),o=n(65396);let a=(0,r.Z)();t.Z=function(e=a){return(0,o.Z)(e)}},38295:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(40431),o=n(95887);function a({props:e,name:t,defaultTheme:n,themeId:a}){let i=(0,o.Z)(n);a&&(i=i[a]||i);let l=function(e){let{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?function e(t,n){let o=(0,r.Z)({},n);return Object.keys(t).forEach(a=>{if(a.toString().match(/^(components|slots)$/))o[a]=(0,r.Z)({},t[a],o[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){let i=t[a]||{},l=n[a];o[a]={},l&&Object.keys(l)?i&&Object.keys(i)?(o[a]=(0,r.Z)({},l),Object.keys(i).forEach(t=>{o[a][t]=e(i[t],l[t])})):o[a]=l:o[a]=i}else void 0===o[a]&&(o[a]=t[a])}),o}(t.components[n].defaultProps,o):o}({theme:i,name:t,props:e});return l}},65396:function(e,t,n){"use strict";var r=n(86006),o=n(17464);t.Z=function(e=null){let t=r.useContext(o.T);return t&&0!==Object.keys(t).length?t:e}},47327:function(e,t){"use strict";let n;let r=e=>e,o=(n=r,{configure(e){n=e},generate:e=>n(e),reset(){n=r}});t.Z=o},53832:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(16066);function o(e){if("string"!=typeof e)throw Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},47562:function(e,t,n){"use strict";function r(e,t,n){let r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){let o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}n.d(t,{Z:function(){return r}})},95135:function(e,t,n){"use strict";n.d(t,{P:function(){return o},Z:function(){return function e(t,n,a={clone:!0}){let i=a.clone?(0,r.Z)({},t):t;return o(t)&&o(n)&&Object.keys(n).forEach(r=>{"__proto__"!==r&&(o(n[r])&&r in t&&o(t[r])?i[r]=e(t[r],n[r],a):a.clone?i[r]=o(n[r])?function e(t){if(!o(t))return t;let n={};return Object.keys(t).forEach(r=>{n[r]=e(t[r])}),n}(n[r]):n[r]:i[r]=n[r])}),i}}});var r=n(40431);function o(e){return null!==e&&"object"==typeof e&&e.constructor===Object}},16066:function(e,t,n){"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e{o[t]=(0,r.Z)(e,t,n)}),o}},65464:function(e,t,n){"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},99179:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(86006),o=n(65464);function a(...e){return r.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{(0,o.Z)(e,t)})},e)}},21454:function(e,t,n){"use strict";let r;n.d(t,{Z:function(){return f}});var o=n(86006);let a=!0,i=!1,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(a=!0)}function s(){a=!1}function u(){"hidden"===this.visibilityState&&i&&(a=!0)}function f(){let e=o.useCallback(e=>{if(null!=e){var t;(t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",s,!0),t.addEventListener("pointerdown",s,!0),t.addEventListener("touchstart",s,!0),t.addEventListener("visibilitychange",u,!0)}},[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){let{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return a||function(e){let{type:t,tagName:n}=e;return"INPUT"===n&&!!l[t]&&!e.readOnly||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(i=!0,window.clearTimeout(r),r=window.setTimeout(()=>{i=!1},100),t.current=!1,!0)},ref:e}}},20538:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var r=n(86006);let o=r.createContext(!1),a=e=>{let{children:t,disabled:n}=e,a=r.useContext(o);return r.createElement(o.Provider,{value:null!=n?n:a},t)};t.Z=o},25844:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(86006),o=n(30069);let a=r.createContext(void 0),i=e=>{let{children:t,size:n}=e,i=(0,o.Z)(n);return r.createElement(a.Provider,{value:i},t)};t.Z=a},79746:function(e,t,n){"use strict";n.d(t,{E_:function(){return a},oR:function(){return o}});var r=n(86006);let o="anticon",a=r.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:o}),{Consumer:i}=a},30069:function(e,t,n){"use strict";var r=n(86006),o=n(25844);t.Z=e=>{let t=r.useContext(o.Z),n=r.useMemo(()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t,[e,t]);return n}},17583:function(e,t,n){"use strict";let r,o,a;n.d(t,{ZP:function(){return _},w6:function(){return T}});var i=n(11717),l=n(83346),c=n(55567),s=n(79035),u=n(86006),f=(0,u.createContext)(void 0),d=n(66255),p=n(67044),h=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>((0,d.f)(t&&t.Modal),()=>{(0,d.f)()}),[t]);let o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(p.Z.Provider,{value:o},n)},g=n(91295),v=n(31508),m=n(99528),y=n(79746),b=n(70333),x=n(57389),C=n(71693),S=n(52160);let w=`-ant-${Date.now()}-${Math.random()}`;var $=n(20538),k=n(25844),Z=n(81027),E=n(78641);function A(e){let{children:t}=e,[,n]=(0,v.dQ)(),{motion:r}=n,o=u.useRef(!1);return(o.current=o.current||!1===r,o.current)?u.createElement(E.zt,{motion:r},t):t}var O=n(98663),P=(e,t)=>{let[n,r]=(0,v.dQ)();return(0,i.xy)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},(0,O.Ro)()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},B=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let M=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];function j(){return r||"ant"}function H(){return o||y.oR}let T=()=>({getPrefixCls:(e,t)=>t||(e?`${j()}-${e}`:j()),getIconPrefixCls:H,getRootPrefixCls:()=>r||j(),getTheme:()=>a}),F=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,form:o,locale:a,componentSize:d,direction:p,space:b,virtual:x,dropdownMatchSelectWidth:C,popupMatchSelectWidth:S,popupOverflow:w,legacyLocale:E,parentContext:O,iconPrefixCls:j,theme:H,componentDisabled:T}=e,F=u.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let o=r||O.getPrefixCls("");return t?`${o}-${t}`:o},[O.getPrefixCls,e.prefixCls]),R=j||O.iconPrefixCls||y.oR,_=R!==O.iconPrefixCls,D=n||O.csp,L=P(R,D),I=function(e,t){let n=e||{},r=!1!==n.inherit&&t?t:v.u_,o=(0,c.Z)(()=>{if(!e)return t;let o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(e,t)=>e.some((e,n)=>{let r=t[n];return!(0,Z.Z)(e,r,!0)}));return o}(H,O.theme),N={csp:D,autoInsertSpaceInButton:r,locale:a||E,direction:p,space:b,virtual:x,popupMatchSelectWidth:null!=S?S:C,popupOverflow:w,getPrefixCls:F,iconPrefixCls:R,theme:I},z=Object.assign({},O);Object.keys(N).forEach(e=>{void 0!==N[e]&&(z[e]=N[e])}),M.forEach(t=>{let n=e[t];n&&(z[t]=n)});let G=(0,c.Z)(()=>z,z,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),W=u.useMemo(()=>({prefixCls:R,csp:D}),[R,D]),U=_?L(t):t,K=u.useMemo(()=>{var e,t,n;return(0,s.T)((null===(e=g.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=G.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null==o?void 0:o.validateMessages)||{})},[G,null==o?void 0:o.validateMessages]);Object.keys(K).length>0&&(U=u.createElement(f.Provider,{value:K},t)),a&&(U=u.createElement(h,{locale:a,_ANT_MARK__:"internalMark"},U)),(R||D)&&(U=u.createElement(l.Z.Provider,{value:W},U)),d&&(U=u.createElement(k.q,{size:d},U)),U=u.createElement(A,null,U);let V=u.useMemo(()=>{let e=I||{},{algorithm:t,token:n}=e,r=B(e,["algorithm","token"]),o=t&&(!Array.isArray(t)||t.length>0)?(0,i.jG)(t):void 0;return Object.assign(Object.assign({},r),{theme:o,token:Object.assign(Object.assign({},m.Z),n)})},[I]);return H&&(U=u.createElement(v.Mj.Provider,{value:V},U)),void 0!==T&&(U=u.createElement($.n,{disabled:T},U)),u.createElement(y.E_.Provider,{value:G},U)},R=e=>{let t=u.useContext(y.E_),n=u.useContext(p.Z);return u.createElement(F,Object.assign({parentContext:t,legacyLocale:n},e))};R.ConfigContext=y.E_,R.SizeContext=k.Z,R.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:i}=e;void 0!==t&&(r=t),void 0!==n&&(o=n),i&&(Object.keys(i).some(e=>e.endsWith("Color"))?function(e,t){let n=function(e,t){let n={},r=(e,t)=>{let n=e.clone();return(n=(null==t?void 0:t(n))||n).toRgbString()},o=(e,t)=>{let o=new x.C(e),a=(0,b.R_)(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=a[1],n[`${t}-color-hover`]=a[4],n[`${t}-color-active`]=a[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=a[0],n[`${t}-color-deprecated-border`]=a[2]};if(t.primaryColor){o(t.primaryColor,"primary");let e=new x.C(t.primaryColor),a=(0,b.R_)(e.toRgbString());a.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setAlpha(.12*e.getAlpha()));let i=new x.C(a[0]);n["primary-color-active-deprecated-f-30"]=r(i,e=>e.setAlpha(.3*e.getAlpha())),n["primary-color-active-deprecated-d-02"]=r(i,e=>e.darken(2))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");let a=Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`);return` - :root { - ${a.join("\n")} - } - `.trim()}(e,t);(0,C.Z)()&&(0,S.hq)(n,`${w}-dynamic-theme`)}(j(),i):a=i)},R.useConfig=function(){let e=(0,u.useContext)($.Z),t=(0,u.useContext)(k.Z);return{componentDisabled:e,componentSize:t}},Object.defineProperty(R,"SizeContext",{get:()=>k.Z});var _=R},67044:function(e,t,n){"use strict";var r=n(86006);let o=(0,r.createContext)(void 0);t.Z=o},91295:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(91219),o={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};let a={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},o)},i="${label} is not a valid ${type}",l={locale:"en",Pagination:r.Z,DatePicker:a,TimePicker:o,Calendar:a,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};var c=l},66255:function(e,t,n){"use strict";n.d(t,{A:function(){return i},f:function(){return a}});var r=n(91295);let o=Object.assign({},r.Z.Modal);function a(e){o=e?Object.assign(Object.assign({},o),e):Object.assign({},r.Z.Modal)}function i(){return o}},98663:function(e,t,n){"use strict";n.d(t,{Lx:function(){return l},Qy:function(){return u},Ro:function(){return a},Wf:function(){return o},dF:function(){return i},du:function(){return c},oN:function(){return s},vS:function(){return r}});let r={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},o=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),a=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),i=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),l=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},[`&:active, - &:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),c=(e,t)=>{let{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},s=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),u=e=>({"&:focus-visible":Object.assign({},s(e))})},31508:function(e,t,n){"use strict";n.d(t,{Mj:function(){return u},u_:function(){return s},dQ:function(){return f}});var r=n(11717),o=n(86006),a=n(47794),i=n(99528),l=n(85207);let c=(0,r.jG)(a.Z),s={token:i.Z,hashed:!0},u=o.createContext(s);function f(){let{token:e,hashed:t,theme:n,components:a}=o.useContext(u),s=`5.6.2-${t||""}`,f=n||c,[d,p]=(0,r.fp)(f,[i.Z,e],{salt:s,override:Object.assign({override:e},a),formatToken:l.Z});return[f,d,t?p:""]}},47794:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(70333),o=n(33058),a=n(99528),i=n(41433),l=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},c=n(57389);let s=(e,t)=>new c.C(e).setAlpha(t).toRgbString(),u=(e,t)=>{let n=new c.C(e);return n.darken(t).toHexString()},f=e=>{let t=(0,r.R_)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},d=(e,t)=>{let n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:s(r,.88),colorTextSecondary:s(r,.65),colorTextTertiary:s(r,.45),colorTextQuaternary:s(r,.25),colorFill:s(r,.15),colorFillSecondary:s(r,.06),colorFillTertiary:s(r,.04),colorFillQuaternary:s(r,.02),colorBgLayout:u(n,4),colorBgContainer:u(n,0),colorBgElevated:u(n,0),colorBgSpotlight:s(r,.85),colorBorder:u(n,15),colorBorderSecondary:u(n,6)}};var p=n(89931);function h(e){let t=Object.keys(a.M).map(t=>{let n=(0,r.R_)(e[t]);return Array(10).fill(1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),(0,i.Z)(e,{generateColorPalettes:f,generateNeutralColorPalettes:d})),(0,p.Z)(e.fontSize)),function(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(0,o.Z)(e)),function(e){let{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},l(r))}(e))}},99528:function(e,t,n){"use strict";n.d(t,{M:function(){return r}});let r={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"},o=Object.assign(Object.assign({},r),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, -'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});t.Z=o},41433:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(57389);function o(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t,{colorSuccess:a,colorWarning:i,colorError:l,colorInfo:c,colorPrimary:s,colorBgBase:u,colorTextBase:f}=e,d=n(s),p=n(a),h=n(i),g=n(l),v=n(c),m=o(u,f);return Object.assign(Object.assign({},m),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[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:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorBgMask:new r.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},33058:function(e,t){"use strict";t.Z=e=>{let{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}}},89931:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=e=>{let t=function(e){let t=Array(10).fill(null).map((t,n)=>{let r=e*Math.pow(2.71828,(n-1)/5);return 2*Math.floor((n>1?Math.floor(r):Math.ceil(r))/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:(e+8)/e}))}(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}}},85207:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(57389),o=n(99528);function a(e){return e>=0&&e<=255}var i=function(e,t){let{r:n,g:o,b:i,a:l}=new r.C(e).toRgb();if(l<1)return e;let{r:c,g:s,b:u}=new r.C(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-c*(1-e))/e),l=Math.round((o-s*(1-e))/e),f=Math.round((i-u*(1-e))/e);if(a(t)&&a(l)&&a(f))return new r.C({r:t,g:l,b:f,a:Math.round(100*e)/100}).toRgbString()}return new r.C({r:n,g:o,b:i,a:1}).toRgbString()},l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function c(e){let{override:t}=e,n=l(e,["override"]),a=Object.assign({},t);Object.keys(o.Z).forEach(e=>{delete a[e]});let c=Object.assign(Object.assign({},n),a);!1===c.motion&&(c.motionDurationFast="0s",c.motionDurationMid="0s",c.motionDurationSlow="0s");let s=Object.assign(Object.assign(Object.assign({},c),{colorLink:c.colorInfoText,colorLinkHover:c.colorInfoHover,colorLinkActive:c.colorInfoActive,colorFillContent:c.colorFillSecondary,colorFillContentHover:c.colorFill,colorFillAlter:c.colorFillQuaternary,colorBgContainerDisabled:c.colorFillTertiary,colorBorderBg:c.colorBgContainer,colorSplit:i(c.colorBorderSecondary,c.colorBgContainer),colorTextPlaceholder:c.colorTextQuaternary,colorTextDisabled:c.colorTextQuaternary,colorTextHeading:c.colorText,colorTextLabel:c.colorTextSecondary,colorTextDescription:c.colorTextTertiary,colorTextLightSolid:c.colorWhite,colorHighlight:c.colorError,colorBgTextHover:c.colorFillSecondary,colorBgTextActive:c.colorFill,colorIcon:c.colorTextTertiary,colorIconHover:c.colorText,colorErrorOutline:i(c.colorErrorBg,c.colorBgContainer),colorWarningOutline:i(c.colorWarningBg,c.colorBgContainer),fontSizeIcon:c.fontSizeSM,lineWidthFocus:4*c.lineWidth,lineWidth:c.lineWidth,controlOutlineWidth:2*c.lineWidth,controlInteractiveSize:c.controlHeight/2,controlItemBgHover:c.colorFillTertiary,controlItemBgActive:c.colorPrimaryBg,controlItemBgActiveHover:c.colorPrimaryBgHover,controlItemBgActiveDisabled:c.colorFill,controlTmpOutline:c.colorFillQuaternary,controlOutline:i(c.colorPrimaryBg,c.colorBgContainer),lineType:c.lineType,borderRadius:c.borderRadius,borderRadiusXS:c.borderRadiusXS,borderRadiusSM:c.borderRadiusSM,borderRadiusLG:c.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:c.sizeXXS,paddingXS:c.sizeXS,paddingSM:c.sizeSM,padding:c.size,paddingMD:c.sizeMD,paddingLG:c.sizeLG,paddingXL:c.sizeXL,paddingContentHorizontalLG:c.sizeLG,paddingContentVerticalLG:c.sizeMS,paddingContentHorizontal:c.sizeMS,paddingContentVertical:c.sizeSM,paddingContentHorizontalSM:c.size,paddingContentVerticalSM:c.sizeXS,marginXXS:c.sizeXXS,marginXS:c.sizeXS,marginSM:c.sizeSM,margin:c.size,marginMD:c.sizeMD,marginLG:c.sizeLG,marginXL:c.sizeXL,marginXXL:c.sizeXXL,boxShadow:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowSecondary:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTertiary:` - 0 1px 2px 0 rgba(0, 0, 0, 0.03), - 0 1px 6px -1px rgba(0, 0, 0, 0.02), - 0 2px 4px 0 rgba(0, 0, 0, 0.02) - `,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` - 0 1px 2px -2px ${new r.C("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new r.C("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new r.C("rgba(0, 0, 0, 0.09)").toRgbString()} - `,boxShadowDrawerRight:` - -6px 0 16px 0 rgba(0, 0, 0, 0.08), - -3px 0 6px -4px rgba(0, 0, 0, 0.12), - -9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerLeft:` - 6px 0 16px 0 rgba(0, 0, 0, 0.08), - 3px 0 6px -4px rgba(0, 0, 0, 0.12), - 9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerUp:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerDown:` - 0 -6px 16px 0 rgba(0, 0, 0, 0.08), - 0 -3px 6px -4px rgba(0, 0, 0, 0.12), - 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,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)"}),a);return s}},40650:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(11717);n(65493);var o=n(86006),a=n(79746),i=n(98663),l=n(31508),c=n(70721);function s(e,t,n,s){return u=>{let[f,d,p]=(0,l.dQ)(),{getPrefixCls:h,iconPrefixCls:g,csp:v}=(0,o.useContext)(a.E_),m=h(),y={theme:f,token:d,hashId:p,nonce:()=>null==v?void 0:v.nonce};return(0,r.xy)(Object.assign(Object.assign({},y),{path:["Shared",m]}),()=>[{"&":(0,i.Lx)(d)}]),[(0,r.xy)(Object.assign(Object.assign({},y),{path:[e,u,g]}),()=>{let{token:r,flush:o}=(0,c.ZP)(d),a=Object.assign({},d[e]);if(null==s?void 0:s.deprecatedTokens){let{deprecatedTokens:e}=s;e.forEach(e=>{var t;let[n,r]=e;((null==a?void 0:a[n])||(null==a?void 0:a[r]))&&(null!==(t=a[r])&&void 0!==t||(a[r]=null==a?void 0:a[n]))})}let l="function"==typeof n?n((0,c.TS)(r,null!=a?a:{})):n,f=Object.assign(Object.assign({},l),a),h=`.${u}`,v=(0,c.TS)(r,{componentCls:h,prefixCls:u,iconCls:`.${g}`,antCls:`.${m}`},f),y=t(v,{hashId:p,prefixCls:u,rootPrefixCls:m,iconPrefixCls:g,overrideComponentToken:a});return o(e,f),[(null==s?void 0:s.resetStyle)===!1?null:(0,i.du)(d,u),y]}),p]}}},70721:function(e,t,n){"use strict";n.d(t,{TS:function(){return a},ZP:function(){return c}});let r="undefined"!=typeof CSSINJS_STATISTIC,o=!0;function a(){for(var e=arguments.length,t=Array(e),n=0;n{let t=Object.keys(e);t.forEach(t=>{Object.defineProperty(a,t,{configurable:!0,enumerable:!0,get:()=>e[t]})})}),o=!0,a}let i={};function l(){}function c(e){let t;let n=e,a=l;return r&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(o&&t.add(n),e[n])}),a=(e,n)=>{i[e]={global:Array.from(t),component:n}}),{token:n,keys:t,flush:a}}},8683:function(e,t){var n;/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t1&&void 0!==arguments[1]?arguments[1]:2;t();var a=(0,q.Z)(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a},t]},Q=[M,j,H,"end"],J=[M,T];function ee(e){return e===H||"end"===e}var et=function(e,t,n){var r=(0,Z.Z)(B),o=(0,u.Z)(r,2),a=o[0],i=o[1],l=Y(),c=(0,u.Z)(l,2),s=c[0],f=c[1],d=t?J:Q;return X(function(){if(a!==B&&"end"!==a){var e=d.indexOf(a),t=d[e+1],r=n(a);!1===r?i(t,!0):t&&s(function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,a]),v.useEffect(function(){return function(){f()}},[]),[function(){i(M,!0)},a]},en=(i=G,"object"===(0,f.Z)(G)&&(i=G.transitionSupport),(l=v.forwardRef(function(e,t){var n=e.visible,r=void 0===n||n,o=e.removeOnLeave,a=void 0===o||o,l=e.forceRender,f=e.children,d=e.motionName,m=e.leavedClassName,y=e.eventProps,x=v.useContext(b).motion,C=!!(e.motionName&&i&&!1!==x),S=(0,v.useRef)(),w=(0,v.useRef)(),$=function(e,t,n,r){var o=r.motionEnter,a=void 0===o||o,i=r.motionAppear,l=void 0===i||i,f=r.motionLeave,d=void 0===f||f,p=r.motionDeadline,h=r.motionLeaveImmediately,g=r.onAppearPrepare,m=r.onEnterPrepare,y=r.onLeavePrepare,b=r.onAppearStart,x=r.onEnterStart,C=r.onLeaveStart,S=r.onAppearActive,w=r.onEnterActive,$=r.onLeaveActive,k=r.onAppearEnd,B=r.onEnterEnd,F=r.onLeaveEnd,R=r.onVisibleChanged,_=(0,Z.Z)(),D=(0,u.Z)(_,2),L=D[0],I=D[1],N=(0,Z.Z)(E),z=(0,u.Z)(N,2),G=z[0],W=z[1],U=(0,Z.Z)(null),K=(0,u.Z)(U,2),q=K[0],Y=K[1],Q=(0,v.useRef)(!1),J=(0,v.useRef)(null),en=(0,v.useRef)(!1);function er(){W(E,!0),Y(null,!0)}function eo(e){var t,r=n();if(!e||e.deadline||e.target===r){var o=en.current;G===A&&o?t=null==k?void 0:k(r,e):G===O&&o?t=null==B?void 0:B(r,e):G===P&&o&&(t=null==F?void 0:F(r,e)),G!==E&&o&&!1!==t&&er()}}var ea=V(eo),ei=(0,u.Z)(ea,1)[0],el=function(e){var t,n,r;switch(e){case A:return t={},(0,c.Z)(t,M,g),(0,c.Z)(t,j,b),(0,c.Z)(t,H,S),t;case O:return n={},(0,c.Z)(n,M,m),(0,c.Z)(n,j,x),(0,c.Z)(n,H,w),n;case P:return r={},(0,c.Z)(r,M,y),(0,c.Z)(r,j,C),(0,c.Z)(r,H,$),r;default:return{}}},ec=v.useMemo(function(){return el(G)},[G]),es=et(G,!e,function(e){if(e===M){var t,r=ec[M];return!!r&&r(n())}return ed in ec&&Y((null===(t=ec[ed])||void 0===t?void 0:t.call(ec,n(),null))||null),ed===H&&(ei(n()),p>0&&(clearTimeout(J.current),J.current=setTimeout(function(){eo({deadline:!0})},p))),ed===T&&er(),!0}),eu=(0,u.Z)(es,2),ef=eu[0],ed=eu[1],ep=ee(ed);en.current=ep,X(function(){I(t);var n,r=Q.current;Q.current=!0,!r&&t&&l&&(n=A),r&&t&&a&&(n=O),(r&&!t&&d||!r&&h&&!t&&d)&&(n=P);var o=el(n);n&&(e||o[M])?(W(n),ef()):W(E)},[t]),(0,v.useEffect)(function(){(G!==A||l)&&(G!==O||a)&&(G!==P||d)||W(E)},[l,a,d]),(0,v.useEffect)(function(){return function(){Q.current=!1,clearTimeout(J.current)}},[]);var eh=v.useRef(!1);(0,v.useEffect)(function(){L&&(eh.current=!0),void 0!==L&&G===E&&((eh.current||L)&&(null==R||R(L)),eh.current=!0)},[L,G]);var eg=q;return ec[M]&&ed===j&&(eg=(0,s.Z)({transition:"none"},eg)),[G,ed,eg,null!=L?L:t]}(C,r,function(){try{return S.current instanceof HTMLElement?S.current:(0,h.Z)(w.current)}catch(e){return null}},e),B=(0,u.Z)($,4),F=B[0],R=B[1],_=B[2],D=B[3],L=v.useRef(D);D&&(L.current=!0);var I=v.useCallback(function(e){S.current=e,(0,g.mH)(t,e)},[t]),N=(0,s.Z)((0,s.Z)({},y),{},{visible:r});if(f){if(F===E)z=D?f((0,s.Z)({},N),I):!a&&L.current&&m?f((0,s.Z)((0,s.Z)({},N),{},{className:m}),I):!l&&(a||m)?null:f((0,s.Z)((0,s.Z)({},N),{},{style:{display:"none"}}),I);else{R===M?W="prepare":ee(R)?W="active":R===j&&(W="start");var z,G,W,U=K(d,"".concat(F,"-").concat(W));z=f((0,s.Z)((0,s.Z)({},N),{},{className:p()(K(d,F),(G={},(0,c.Z)(G,U,U&&W),(0,c.Z)(G,d,"string"==typeof d),G)),style:_}),I)}}else z=null;return v.isValidElement(z)&&(0,g.Yr)(z)&&!z.ref&&(z=v.cloneElement(z,{ref:I})),v.createElement(k,{ref:w},z)})).displayName="CSSMotion",l),er=n(40431),eo=n(70184),ea="keep",ei="remove",el="removed";function ec(e){var t;return t=e&&"object"===(0,f.Z)(e)&&"key"in e?e:{key:e},(0,s.Z)((0,s.Z)({},t),{},{key:String(t.key)})}function es(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(ec)}var eu=["component","children","onVisibleChanged","onAllRemoved"],ef=["status"],ed=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"],ep=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:en,n=function(e){(0,w.Z)(r,e);var n=(0,$.Z)(r);function r(){var e;(0,C.Z)(this,r);for(var t=arguments.length,o=Array(t),a=0;a0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,a=es(e),i=es(t);a.forEach(function(e){for(var t=!1,a=r;a1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==ei})).forEach(function(t){t.key===e&&(t.status=ea)})}),n})(r,es(n)).filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==el||e.status!==ei})}}}]),r}(v.Component);return(0,c.Z)(n,"defaultProps",{component:"div"}),n}(G),eh=en},91219:function(e,t){"use strict";t.Z={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},71693:function(e,t,n){"use strict";function r(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}n.d(t,{Z:function(){return r}})},14071:function(e,t,n){"use strict";function r(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}n.d(t,{Z:function(){return r}})},52160:function(e,t,n){"use strict";n.d(t,{hq:function(){return p},jL:function(){return d}});var r=n(71693),o=n(14071),a="data-rc-order",i=new Map;function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function c(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function s(e){return Array.from((i.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.Z)())return null;var n=t.csp,o=t.prepend,i=document.createElement("style");i.setAttribute(a,"queue"===o?"prependQueue":o?"prepend":"append"),null!=n&&n.nonce&&(i.nonce=null==n?void 0:n.nonce),i.innerHTML=e;var l=c(t),u=l.firstChild;if(o){if("queue"===o){var f=s(l).filter(function(e){return["prepend","prependQueue"].includes(e.getAttribute(a))});if(f.length)return l.insertBefore(i,f[f.length-1].nextSibling),i}l.insertBefore(i,u)}else l.appendChild(i);return i}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(c(t)).find(function(n){return n.getAttribute(l(t))===e})}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=f(e,t);n&&c(t).removeChild(n)}function p(e,t){var n,r,a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=i.get(e);if(!n||!(0,o.Z)(document,n)){var r=u("",t),a=r.parentNode;i.set(e,a),e.removeChild(r)}}(c(s),s);var d=f(t,s);if(d)return null!==(n=s.csp)&&void 0!==n&&n.nonce&&d.nonce!==(null===(r=s.csp)||void 0===r?void 0:r.nonce)&&(d.nonce=null===(a=s.csp)||void 0===a?void 0:a.nonce),d.innerHTML!==e&&(d.innerHTML=e),d;var p=u(e,s);return p.setAttribute(l(s),t),p}},49175:function(e,t,n){"use strict";n.d(t,{S:function(){return a},Z:function(){return i}});var r=n(86006),o=n(8431);function a(e){return e instanceof HTMLElement||e instanceof SVGElement}function i(e){return a(e)?e:e instanceof r.Component?o.findDOMNode(e):null}},60618:function(e,t,n){"use strict";function r(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function o(e){return r(e)!==(null==e?void 0:e.ownerDocument)?r(e):null}n.d(t,{A:function(){return o}})},48580:function(e,t){"use strict";var n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE||e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY||e>=n.A&&e<=n.Z||-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.Z=n},23254:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(86006);function o(e){var t=r.useRef();return t.current=e,r.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o2&&void 0!==arguments[2]&&arguments[2],a=new Set;return function e(t,i){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=a.has(t);if((0,o.ZP)(!c,"Warning: There may be circular references"),c)return!1;if(t===i)return!0;if(n&&l>1)return!1;a.add(t);var s=l+1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(var u=0;u1&&void 0!==arguments[1]?arguments[1]:1,r=o+=1;return!function t(o){if(0===o)a.delete(r),e();else{var i=n(function(){t(o-1)});a.set(r,i)}}(t),r};i.cancel=function(e){var t=a.get(e);return a.delete(t),r(t)},t.Z=i},92510:function(e,t,n){"use strict";n.d(t,{Yr:function(){return s},mH:function(){return i},sQ:function(){return l},x1:function(){return c}});var r=n(965),o=n(10854),a=n(55567);function i(e,t){"function"==typeof e?e(t):"object"===(0,r.Z)(e)&&e&&"current"in e&&(e.current=t)}function l(){for(var e=arguments.length,t=Array(e),n=0;n3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!(0,l.Z)(e,t.slice(0,-1))?e:function e(t,n,r,l){if(!n.length)return r;var c,s=(0,i.Z)(n),u=s[0],f=s.slice(1);return c=t||"number"!=typeof u?Array.isArray(t)?(0,a.Z)(t):(0,o.Z)({},t):[],l&&void 0===r&&1===f.length?delete c[u][f[0]]:c[u]=e(c[u],f,r,l),c}(e,t,n,r)}function s(e){return Array.isArray(e)?[]:{}}var u="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function f(){for(var e=arguments.length,t=Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},46750:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},71971:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(965);function o(){o=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o,i,l=Object.create((t&&t.prototype instanceof h?t:h).prototype);return a(l,"_invoke",{value:(o=new k(r||[]),i="suspendedStart",function(t,r){if("executing"===i)throw Error("Generator is already running");if("completed"===i){if("throw"===t)throw r;return E()}for(o.method=t,o.arg=r;;){var a=o.delegate;if(a){var l=function e(t,n){var r=n.method,o=t.iterator[r];if(void 0===o)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=void 0,e(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),p;var a=d(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,p;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,p):i:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,p)}(a,o);if(l){if(l===p)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var c=d(e,n,o);if("normal"===c.type){if(i=o.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(i="completed",o.method="throw",o.arg=c.arg)}})}),l}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function g(){}function v(){}var m={};u(m,l,function(){return this});var y=Object.getPrototypeOf,b=y&&y(y(Z([])));b&&b!==t&&n.call(b,l)&&(m=b);var x=v.prototype=h.prototype=Object.create(m);function C(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){var o;a(this,"_invoke",{value:function(a,i){function l(){return new t(function(o,l){!function o(a,i,l,c){var s=d(e[a],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==(0,r.Z)(f)&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){o("next",e,l,c)},function(e){o("throw",e,l,c)}):t.resolve(f).then(function(e){u.value=e,l(u)},function(e){return o("throw",e,l,c)})}c(s.arg)}(a,i,o,l)})}return o=o?o.then(l,l):l()}})}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function $(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function Z(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),$(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;$(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:Z(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}},60456:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(86351),o=n(24537),a=n(62160);function i(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||(0,o.Z)(e,t)||(0,a.Z)()}},29221:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(86351),o=n(13804),a=n(24537),i=n(62160);function l(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,a.Z)(e)||(0,i.Z)()}},90151:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(16544),o=n(13804),a=n(24537);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,a.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},58774:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(965);function o(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},965:function(e,t,n){"use strict";function r(e){return(r="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})(e)}n.d(t,{Z:function(){return r}})},24537:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(16544);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,r.Z)(e,t)}}},57436:function(e,t,n){"use strict";n.d(t,{Ab:function(){return i},Fr:function(){return l},G$:function(){return a},JM:function(){return f},K$:function(){return s},MS:function(){return r},h5:function(){return c},lK:function(){return u},uj:function(){return o}});var r="-ms-",o="-moz-",a="-webkit-",i="comm",l="rule",c="decl",s="@import",u="@keyframes",f="@layer"},99946:function(e,t,n){"use strict";n.d(t,{MY:function(){return i}});var r=n(57436),o=n(10036),a=n(125);function i(e){return(0,a.cE)(function e(t,n,i,s,u,f,d,p,h){for(var g,v=0,m=0,y=d,b=0,x=0,C=0,S=1,w=1,$=1,k=0,Z="",E=u,A=f,O=s,P=Z;w;)switch(C=k,k=(0,a.lp)()){case 40:if(108!=C&&58==(0,o.uO)(P,y-1)){-1!=(0,o.Cw)(P+=(0,o.gx)((0,a.iF)(k),"&","&\f"),"&\f")&&($=-1);break}case 34:case 39:case 91:P+=(0,a.iF)(k);break;case 9:case 10:case 13:case 32:P+=(0,a.Qb)(C);break;case 92:P+=(0,a.kq)((0,a.Ud)()-1,7);continue;case 47:switch((0,a.fj)()){case 42:case 47:(0,o.R3)((g=(0,a.q6)((0,a.lp)(),(0,a.Ud)()),(0,a.dH)(g,n,i,r.Ab,(0,o.Dp)((0,a.Tb)()),(0,o.tb)(g,2,-2),0)),h);break;default:P+="/"}break;case 123*S:p[v++]=(0,o.to)(P)*$;case 125*S:case 59:case 0:switch(k){case 0:case 125:w=0;case 59+m:-1==$&&(P=(0,o.gx)(P,/\f/g,"")),x>0&&(0,o.to)(P)-y&&(0,o.R3)(x>32?c(P+";",s,i,y-1):c((0,o.gx)(P," ","")+";",s,i,y-2),h);break;case 59:P+=";";default:if((0,o.R3)(O=l(P,n,i,v,m,u,p,Z,E=[],A=[],y),f),123===k){if(0===m)e(P,n,O,O,E,f,y,p,A);else switch(99===b&&110===(0,o.uO)(P,3)?100:b){case 100:case 108:case 109:case 115:e(t,O,O,s&&(0,o.R3)(l(t,O,O,0,0,u,p,Z,u,E=[],y),A),u,A,y,p,s?E:A);break;default:e(P,O,O,O,[""],A,0,p,A)}}}v=m=x=0,S=$=1,Z=P="",y=d;break;case 58:y=1+(0,o.to)(P),x=C;default:if(S<1){if(123==k)--S;else if(125==k&&0==S++&&125==(0,a.mp)())continue}switch(P+=(0,o.Dp)(k),k*S){case 38:$=m>0?1:(P+="\f",-1);break;case 44:p[v++]=((0,o.to)(P)-1)*$,$=1;break;case 64:45===(0,a.fj)()&&(P+=(0,a.iF)((0,a.lp)())),b=(0,a.fj)(),m=y=(0,o.to)(Z=P+=(0,a.QU)((0,a.Ud)())),k++;break;case 45:45===C&&2==(0,o.to)(P)&&(S=0)}}return f}("",null,null,null,[""],e=(0,a.un)(e),0,[0],e))}function l(e,t,n,i,l,c,s,u,f,d,p){for(var h=l-1,g=0===l?c:[""],v=(0,o.Ei)(g),m=0,y=0,b=0;m0?g[x]+" "+C:(0,o.gx)(C,/&\f/g,g[x])))&&(f[b++]=S);return(0,a.dH)(e,t,n,0===l?r.Fr:u,f,d,p)}function c(e,t,n,i){return(0,a.dH)(e,t,n,r.h5,(0,o.tb)(e,0,i),(0,o.tb)(e,i+1,-1),i)}},34523:function(e,t,n){"use strict";n.d(t,{P:function(){return i},q:function(){return a}});var r=n(57436),o=n(10036);function a(e,t){for(var n="",r=(0,o.Ei)(e),a=0;a0?(0,r.uO)(s,--l):0,a--,10===c&&(a=1,o--),c}function h(){return c=l2||y(c)>3?"":" "}function w(e,t){for(;--t&&h()&&!(c<48)&&!(c>102)&&(!(c>57)||!(c<65))&&(!(c>70)||!(c<97)););return m(e,l+(t<6&&32==g()&&32==h()))}function $(e,t){for(;h();)if(e+c===57)break;else if(e+c===84&&47===g())break;return"/*"+m(t,l-1)+"*"+(0,r.Dp)(47===e?e:h())}function k(e){for(;!y(g());)h();return m(e,l)}},10036:function(e,t,n){"use strict";n.d(t,{$e:function(){return v},Cw:function(){return u},Dp:function(){return o},EQ:function(){return c},Ei:function(){return h},R3:function(){return g},Wn:function(){return r},f0:function(){return a},fy:function(){return l},gx:function(){return s},tb:function(){return d},to:function(){return p},uO:function(){return f},vp:function(){return i}});var r=Math.abs,o=String.fromCharCode,a=Object.assign;function i(e,t){return 45^f(e,0)?(((t<<2^f(e,0))<<2^f(e,1))<<2^f(e,2))<<2^f(e,3):0}function l(e){return e.trim()}function c(e,t){return(e=t.exec(e))?e[0]:e}function s(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function f(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function p(e){return e.length}function h(e){return e.length}function g(e,t){return t.push(e),e}function v(e,t){return e.map(t).join("")}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/440-96bb64772ec3a56d.js b/pilot/server/static/_next/static/chunks/440-96bb64772ec3a56d.js deleted file mode 100644 index c4fb949c0..000000000 --- a/pilot/server/static/_next/static/chunks/440-96bb64772ec3a56d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[440],{21440:function(e,t,r){"use strict";r.d(t,{aM:function(){return eO},Ux:function(){return eC}});var n,i=r(86006),a=r(40431),s=r(89301),o=r(65877),u=r(88684),l=r(90151),c=r(18050),f=r(49449),d=r(70184),g=r(43663),h=r(38340),v=r(25912),p=r(5004),m="RC_FORM_INTERNAL_HOOKS",y=function(){(0,p.ZP)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},F=i.createContext({getFieldValue:y,getFieldsValue:y,getFieldError:y,getFieldWarning:y,getFieldsError:y,isFieldsTouched:y,isFieldTouched:y,isFieldValidating:y,isFieldsValidating:y,resetFields:y,setFields:y,setFieldValue:y,setFieldsValue:y,validateFields:y,submit:y,getInternalHooks:function(){return y(),{dispatch:y,initEntityValue:y,registerField:y,useSubscribe:y,setInitialValues:y,destroyForm:y,setCallbacks:y,registerWatch:y,getFields:y,setValidateMessages:y,setPreserve:y,getInitialValue:y}}}),b=i.createContext(null);function w(e){return null==e?[]:Array.isArray(e)?e:[e]}var E=r(71971),P=r(27859),Z=r(52040);function V(){return(V=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),n=1;n=a)return e;switch(e){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch(e){return"[Circular]"}break;default:return e}}):e}function N(e,t){return!!(null==e||"array"===t&&Array.isArray(e)&&!e.length)||("string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t)&&"string"==typeof e&&!e}function T(e,t,r){var n=0,i=e.length;!function a(s){if(s&&s.length){r(s);return}var o=n;n+=1,o()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},L={integer:function(e){return L.number(e)&&parseInt(e,10)===e},float:function(e){return L.number(e)&&!L.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return new RegExp(e),!0}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!L.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(S.email)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(_())},hex:function(e){return"string"==typeof e&&!!e.match(S.hex)}},U="enum",W={required:I,whitespace:function(e,t,r,n,i){(/^\s+$/.test(t)||""===t)&&n.push(R(i.messages.whitespace,e.fullField))},type:function(e,t,r,n,i){if(e.required&&void 0===t){I(e,t,r,n,i);return}var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?L[a](t)||n.push(R(i.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&n.push(R(i.messages.types[a],e.fullField,e.type))},range:function(e,t,r,n,i){var a="number"==typeof e.len,s="number"==typeof e.min,o="number"==typeof e.max,u=t,l=null,c="number"==typeof t,f="string"==typeof t,d=Array.isArray(t);if(c?l="number":f?l="string":d&&(l="array"),!l)return!1;d&&(u=t.length),f&&(u=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?u!==e.len&&n.push(R(i.messages[l].len,e.fullField,e.len)):s&&!o&&ue.max?n.push(R(i.messages[l].max,e.fullField,e.max)):s&&o&&(ue.max)&&n.push(R(i.messages[l].range,e.fullField,e.min,e.max))},enum:function(e,t,r,n,i){e[U]=Array.isArray(e[U])?e[U]:[],-1===e[U].indexOf(t)&&n.push(R(i.messages[U],e.fullField,e[U].join(", ")))},pattern:function(e,t,r,n,i){!e.pattern||(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||n.push(R(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"!=typeof e.pattern||new RegExp(e.pattern).test(t)||n.push(R(i.messages.pattern.mismatch,e.fullField,t,e.pattern)))}},D=function(e,t,r,n,i){var a=e.type,s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t,a)&&!e.required)return r();W.required(e,t,n,s,i,a),N(t,a)||W.type(e,t,n,s,i)}r(s)},H={string:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t,"string")&&!e.required)return r();W.required(e,t,n,a,i,"string"),N(t,"string")||(W.type(e,t,n,a,i),W.range(e,t,n,a,i),W.pattern(e,t,n,a,i),!0===e.whitespace&&W.whitespace(e,t,n,a,i))}r(a)},method:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t)&&!e.required)return r();W.required(e,t,n,a,i),void 0!==t&&W.type(e,t,n,a,i)}r(a)},number:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(""===t&&(t=void 0),N(t)&&!e.required)return r();W.required(e,t,n,a,i),void 0!==t&&(W.type(e,t,n,a,i),W.range(e,t,n,a,i))}r(a)},boolean:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t)&&!e.required)return r();W.required(e,t,n,a,i),void 0!==t&&W.type(e,t,n,a,i)}r(a)},regexp:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t)&&!e.required)return r();W.required(e,t,n,a,i),N(t)||W.type(e,t,n,a,i)}r(a)},integer:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t)&&!e.required)return r();W.required(e,t,n,a,i),void 0!==t&&(W.type(e,t,n,a,i),W.range(e,t,n,a,i))}r(a)},float:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t)&&!e.required)return r();W.required(e,t,n,a,i),void 0!==t&&(W.type(e,t,n,a,i),W.range(e,t,n,a,i))}r(a)},array:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(null==t&&!e.required)return r();W.required(e,t,n,a,i,"array"),null!=t&&(W.type(e,t,n,a,i),W.range(e,t,n,a,i))}r(a)},object:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t)&&!e.required)return r();W.required(e,t,n,a,i),void 0!==t&&W.type(e,t,n,a,i)}r(a)},enum:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t)&&!e.required)return r();W.required(e,t,n,a,i),void 0!==t&&W.enum(e,t,n,a,i)}r(a)},pattern:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t,"string")&&!e.required)return r();W.required(e,t,n,a,i),N(t,"string")||W.pattern(e,t,n,a,i)}r(a)},date:function(e,t,r,n,i){var a,s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t,"date")&&!e.required)return r();W.required(e,t,n,s,i),!N(t,"date")&&(a=t instanceof Date?t:new Date(t),W.type(e,a,n,s,i),a&&W.range(e,a.getTime(),n,s,i))}r(s)},url:D,hex:D,email:D,required:function(e,t,r,n,i){var a=[],s=Array.isArray(t)?"array":typeof t;W.required(e,t,n,a,i,s),r(a)},any:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t)&&!e.required)return r();W.required(e,t,n,a,i)}r(a)}};function z(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var J=z(),B=function(){function e(e){this.rules=null,this._messages=J,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(r){var n=e[r];t.rules[r]=Array.isArray(n)?n:[n]})},t.messages=function(e){return e&&(this._messages=$(z(),e)),this._messages},t.validate=function(t,r,n){var i=this;void 0===r&&(r={}),void 0===n&&(n=function(){});var a=t,s=r,o=n;if("function"==typeof s&&(o=s,s={}),!this.rules||0===Object.keys(this.rules).length)return o&&o(null,a),Promise.resolve(a);if(s.messages){var u=this.messages();u===J&&(u=z()),$(u,s.messages),s.messages=u}else s.messages=this.messages();var l={};(s.keys||Object.keys(this.rules)).forEach(function(e){var r=i.rules[e],n=a[e];r.forEach(function(r){var s=r;"function"==typeof s.transform&&(a===t&&(a=V({},a)),n=a[e]=s.transform(n)),(s="function"==typeof s?{validator:s}:V({},s)).validator=i.getValidationMethod(s),s.validator&&(s.field=e,s.fullField=s.fullField||e,s.type=i.getType(s),l[e]=l[e]||[],l[e].push({rule:s,value:n,source:a,field:e}))})});var c={};return function(e,t,r,n,i){if(t.first){var a=new Promise(function(t,a){var s;T((s=[],Object.keys(e).forEach(function(t){s.push.apply(s,e[t]||[])}),s),r,function(e){return n(e),e.length?a(new M(e,A(e))):t(i)})});return a.catch(function(e){return e}),a}var s=!0===t.firstFields?Object.keys(e):t.firstFields||[],o=Object.keys(e),u=o.length,l=0,c=[],f=new Promise(function(t,a){var f=function(e){if(c.push.apply(c,e),++l===u)return n(c),c.length?a(new M(c,A(c))):t(i)};o.length||(n(c),t(i)),o.forEach(function(t){var n=e[t];-1!==s.indexOf(t)?T(n,r,f):function(e,t,r){var n=[],i=0,a=e.length;function s(e){n.push.apply(n,e||[]),++i===a&&r(n)}e.forEach(function(e){t(e,s)})}(n,r,f)})});return f.catch(function(e){return e}),f}(l,s,function(t,r){var n,i=t.rule,o=("object"===i.type||"array"===i.type)&&("object"==typeof i.fields||"object"==typeof i.defaultField);function u(e,t){return V({},t,{fullField:i.fullField+"."+e,fullFields:i.fullFields?[].concat(i.fullFields,[e]):[e]})}function l(n){void 0===n&&(n=[]);var l=Array.isArray(n)?n:[n];!s.suppressWarning&&l.length&&e.warning("async-validator:",l),l.length&&void 0!==i.message&&(l=[].concat(i.message));var f=l.map(j(i,a));if(s.first&&f.length)return c[i.field]=1,r(f);if(o){if(i.required&&!t.value)return void 0!==i.message?f=[].concat(i.message).map(j(i,a)):s.error&&(f=[s.error(i,R(s.messages.required,i.field))]),r(f);var d={};i.defaultField&&Object.keys(t.value).map(function(e){d[e]=i.defaultField});var g={};Object.keys(d=V({},d,t.rule.fields)).forEach(function(e){var t=d[e],r=Array.isArray(t)?t:[t];g[e]=r.map(u.bind(null,e))});var h=new e(g);h.messages(s.messages),t.rule.options&&(t.rule.options.messages=s.messages,t.rule.options.error=s.error),h.validate(t.value,t.rule.options||s,function(e){var t=[];f&&f.length&&t.push.apply(t,f),e&&e.length&&t.push.apply(t,e),r(t.length?t:null)})}else r(f)}if(o=o&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator)n=i.asyncValidator(i,t.value,l,t.source,s);else if(i.validator){try{n=i.validator(i,t.value,l,t.source,s)}catch(e){null==console.error||console.error(e),s.suppressValidatorError||setTimeout(function(){throw e},0),l(e.message)}!0===n?l():!1===n?l("function"==typeof i.message?i.message(i.fullField||i.field):i.message||(i.fullField||i.field)+" fails"):n instanceof Array?l(n):n instanceof Error&&l(n.message)}n&&n.then&&n.then(function(){return l()},function(e){return l(e)})},function(e){!function(e){for(var t=[],r={},n=0;n=n||r<0||r>=n)return e;var i=e[t],a=t-r;return a>0?[].concat((0,l.Z)(e.slice(0,r)),[i],(0,l.Z)(e.slice(r,t)),(0,l.Z)(e.slice(t+1,n))):a<0?[].concat((0,l.Z)(e.slice(0,t)),(0,l.Z)(e.slice(t+1,r+1)),[i],(0,l.Z)(e.slice(r+1,n))):e}var ef=["name"],ed=[];function eg(e,t,r,n,i,a){return"function"==typeof e?e(t,r,"source"in a?{source:a.source}:{}):n!==i}var eh=function(e){(0,g.Z)(r,e);var t=(0,h.Z)(r);function r(e){var n;return(0,c.Z)(this,r),(n=t.call(this,e)).state={resetCount:0},n.cancelRegisterFunc=null,n.mounted=!1,n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.prevValidating=void 0,n.errors=ed,n.warnings=ed,n.cancelRegister=function(){var e=n.props,t=e.preserve,r=e.isListField,i=e.name;n.cancelRegisterFunc&&n.cancelRegisterFunc(r,t,ea(i)),n.cancelRegisterFunc=null},n.getNamePath=function(){var e=n.props,t=e.name,r=e.fieldContext.prefixName,i=void 0===r?[]:r;return void 0!==t?[].concat((0,l.Z)(i),(0,l.Z)(t)):[]},n.getRules=function(){var e=n.props,t=e.rules,r=e.fieldContext;return(void 0===t?[]:t).map(function(e){return"function"==typeof e?e(r):e})},n.refresh=function(){n.mounted&&n.setState(function(e){return{resetCount:e.resetCount+1}})},n.triggerMetaEvent=function(e){var t=n.props.onMetaChange;null==t||t((0,u.Z)((0,u.Z)({},n.getMeta()),{},{destroy:e}))},n.onStoreChange=function(e,t,r){var i=n.props,a=i.shouldUpdate,s=i.dependencies,o=void 0===s?[]:s,u=i.onReset,l=r.store,c=n.getNamePath(),f=n.getValue(e),d=n.getValue(l),g=t&&eo(t,c);switch("valueUpdate"===r.type&&"external"===r.source&&f!==d&&(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=ed,n.warnings=ed,n.triggerMetaEvent()),r.type){case"reset":if(!t||g){n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=ed,n.warnings=ed,n.triggerMetaEvent(),null==u||u(),n.refresh();return}break;case"remove":if(a){n.reRender();return}break;case"setField":if(g){var h=r.data;"touched"in h&&(n.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(n.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(n.errors=h.errors||ed),"warnings"in h&&(n.warnings=h.warnings||ed),n.dirty=!0,n.triggerMetaEvent(),n.reRender();return}if(a&&!c.length&&eg(a,e,l,f,d,r)){n.reRender();return}break;case"dependenciesUpdate":if(o.map(ea).some(function(e){return eo(r.relatedFields,e)})){n.reRender();return}break;default:if(g||(!o.length||c.length||a)&&eg(a,e,l,f,d,r)){n.reRender();return}}!0===a&&n.reRender()},n.validateRules=function(e){var t=n.getNamePath(),r=n.getValue(),i=e||{},a=i.triggerName,s=i.validateOnly,o=Promise.resolve().then(function(){if(!n.mounted)return[];var i=n.props,s=i.validateFirst,c=void 0!==s&&s,f=i.messageVariables,d=n.getRules();a&&(d=d.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||w(t).includes(a)}));var g=function(e,t,r,n,i,a){var s,o,l=e.join("."),c=r.map(function(e,t){var r=e.validator,n=(0,u.Z)((0,u.Z)({},e),{},{ruleIndex:t});return r&&(n.validator=function(e,t,n){var i=!1,a=r(e,t,function(){for(var e=arguments.length,t=Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:ed;if(n.validatePromise===o){n.validatePromise=null;var t,r=[],i=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,n=e.errors,a=void 0===n?ed:n;t?i.push.apply(i,(0,l.Z)(a)):r.push.apply(r,(0,l.Z)(a))}),n.errors=r,n.warnings=i,n.triggerMetaEvent(),n.reRender()}}),g});return void 0!==s&&s||(n.validatePromise=o,n.dirty=!0,n.errors=ed,n.warnings=ed,n.triggerMetaEvent(),n.reRender()),o},n.isFieldValidating=function(){return!!n.validatePromise},n.isFieldTouched=function(){return n.touched},n.isFieldDirty=function(){return!!n.dirty||void 0!==n.props.initialValue||void 0!==(0,n.props.fieldContext.getInternalHooks(m).getInitialValue)(n.getNamePath())},n.getErrors=function(){return n.errors},n.getWarnings=function(){return n.warnings},n.isListField=function(){return n.props.isListField},n.isList=function(){return n.props.isList},n.isPreserve=function(){return n.props.preserve},n.getMeta=function(){return n.prevValidating=n.isFieldValidating(),{touched:n.isFieldTouched(),validating:n.prevValidating,errors:n.errors,warnings:n.warnings,name:n.getNamePath(),validated:null===n.validatePromise}},n.getOnlyChild=function(e){if("function"==typeof e){var t=n.getMeta();return(0,u.Z)((0,u.Z)({},n.getOnlyChild(e(n.getControlled(),t,n.props.fieldContext))),{},{isFunction:!0})}var r=(0,v.Z)(e);return 1===r.length&&i.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}},n.getValue=function(e){var t=n.props.fieldContext.getFieldsValue,r=n.getNamePath();return(0,ei.Z)(e||t(!0),r)},n.getControlled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.props,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,l=t.valuePropName,c=t.getValueProps,f=t.fieldContext,d=void 0!==i?i:f.validateTrigger,g=n.getNamePath(),h=f.getInternalHooks,v=f.getFieldsValue,p=h(m).dispatch,y=n.getValue(),F=c||function(e){return(0,o.Z)({},l,e)},b=e[r],E=(0,u.Z)((0,u.Z)({},e),F(y));return E[r]=function(){n.touched=!0,n.dirty=!0,n.triggerMetaEvent();for(var e,t=arguments.length,r=Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[];if(r.watchList.length){var t=r.getFieldsValue(),n=r.getFieldsValue(!0);r.watchList.forEach(function(r){r(t,n,e)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(e){r.store=e},this.getFieldEntities=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?r.fieldEntities.filter(function(e){return e.getNamePath().length}):r.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new eF;return r.getFieldEntities(e).forEach(function(e){var r=e.getNamePath();t.set(r,e)}),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return r.getFieldEntities(!0);var t=r.getFieldsMap(!0);return e.map(function(e){var r=ea(e);return t.get(r)||{INVALIDATE_NAME_PATH:ea(e)}})},this.getFieldsValue=function(e,t){if(r.warningUnhooked(),!0===e&&!t)return r.store;var n=r.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),i=[];return n.forEach(function(r){var n,a="INVALIDATE_NAME_PATH"in r?r.INVALIDATE_NAME_PATH:r.getNamePath();!(!e&&(null===(n=r.isListField)||void 0===n?void 0:n.call(r)))&&(t?t("getMeta"in r?r.getMeta():null)&&i.push(a):i.push(a))}),es(r.store,i.map(ea))},this.getFieldValue=function(e){r.warningUnhooked();var t=ea(e);return(0,ei.Z)(r.store,t)},this.getFieldsError=function(e){return r.warningUnhooked(),r.getFieldEntitiesForNamePathList(e).map(function(t,r){return!t||"INVALIDATE_NAME_PATH"in t?{name:ea(e[r]),errors:[],warnings:[]}:{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}})},this.getFieldError=function(e){r.warningUnhooked();var t=ea(e);return r.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){r.warningUnhooked();var t=ea(e);return r.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){r.warningUnhooked();for(var e,t=arguments.length,n=Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=new eF,i=r.getFieldEntities(!0);i.forEach(function(e){var t=e.props.initialValue,r=e.getNamePath();if(void 0!==t){var i=n.get(r)||new Set;i.add({entity:e,value:t}),n.set(r,i)}}),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach(function(t){var r,i=n.get(t);i&&(r=e).push.apply(r,(0,l.Z)((0,l.Z)(i).map(function(e){return e.entity})))})):e=i,function(e){e.forEach(function(e){if(void 0!==e.props.initialValue){var i=e.getNamePath();if(void 0!==r.getInitialValue(i))(0,p.ZP)(!1,"Form already set 'initialValues' with path '".concat(i.join("."),"'. Field can not overwrite it."));else{var a=n.get(i);if(a&&a.size>1)(0,p.ZP)(!1,"Multiple Field with path '".concat(i.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(a){var s=r.getFieldValue(i);t.skipExist&&void 0!==s||r.updateStore((0,G.Z)(r.store,i,(0,l.Z)(a)[0].value))}}}})}(e)},this.resetFields=function(e){r.warningUnhooked();var t=r.store;if(!e){r.updateStore((0,G.T)(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(t,null,{type:"reset"}),r.notifyWatch();return}var n=e.map(ea);n.forEach(function(e){var t=r.getInitialValue(e);r.updateStore((0,G.Z)(r.store,e,t))}),r.resetWithFieldInitialValue({namePathList:n}),r.notifyObservers(t,n,{type:"reset"}),r.notifyWatch(n)},this.setFields=function(e){r.warningUnhooked();var t=r.store,n=[];e.forEach(function(e){var i=e.name,a=(0,s.Z)(e,eb),o=ea(i);n.push(o),"value"in a&&r.updateStore((0,G.Z)(r.store,o,a.value)),r.notifyObservers(t,[o],{type:"setField",data:e})}),r.notifyWatch(n)},this.getFields=function(){return r.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),n=e.getMeta(),i=(0,u.Z)((0,u.Z)({},n),{},{name:t,value:r.getFieldValue(t)});return Object.defineProperty(i,"originRCField",{value:!0}),i})},this.initEntityValue=function(e){var t=e.props.initialValue;if(void 0!==t){var n=e.getNamePath();void 0===(0,ei.Z)(r.store,n)&&r.updateStore((0,G.Z)(r.store,n,t))}},this.isMergedPreserve=function(e){var t=void 0!==e?e:r.preserve;return null==t||t},this.registerField=function(e){r.fieldEntities.push(e);var t=e.getNamePath();if(r.notifyWatch([t]),void 0!==e.props.initialValue){var n=r.store;r.resetWithFieldInitialValue({entities:[e],skipExist:!0}),r.notifyObservers(n,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(t){return t!==e}),!r.isMergedPreserve(i)&&(!n||a.length>1)){var s=n?void 0:r.getInitialValue(t);if(t.length&&r.getFieldValue(t)!==s&&r.fieldEntities.every(function(e){return!eu(e.getNamePath(),t)})){var o=r.store;r.updateStore((0,G.Z)(o,t,s,!0)),r.notifyObservers(o,[t],{type:"remove"}),r.triggerDependenciesUpdate(o,t)}}r.notifyWatch([t])}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,n=e.value;r.updateValue(t,n);break;case"validateField":var i=e.namePath,a=e.triggerName;r.validateFields([i],{triggerName:a})}},this.notifyObservers=function(e,t,n){if(r.subscribable){var i=(0,u.Z)((0,u.Z)({},n),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(r){(0,r.onStoreChange)(e,t,i)})}else r.forceRootUpdate()},this.triggerDependenciesUpdate=function(e,t){var n=r.getDependencyChildrenFields(t);return n.length&&r.validateFields(n),r.notifyObservers(e,n,{type:"dependenciesUpdate",relatedFields:[t].concat((0,l.Z)(n))}),n},this.updateValue=function(e,t){var n=ea(e),i=r.store;r.updateStore((0,G.Z)(r.store,n,t)),r.notifyObservers(i,[n],{type:"valueUpdate",source:"internal"}),r.notifyWatch([n]);var a=r.triggerDependenciesUpdate(i,n),s=r.callbacks.onValuesChange;s&&s(es(r.store,[n]),r.getFieldsValue()),r.triggerOnFieldsChange([n].concat((0,l.Z)(a)))},this.setFieldsValue=function(e){r.warningUnhooked();var t=r.store;if(e){var n=(0,G.T)(r.store,e);r.updateStore(n)}r.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()},this.setFieldValue=function(e,t){r.setFields([{name:e,value:t}])},this.getDependencyChildrenFields=function(e){var t=new Set,n=[],i=new eF;return r.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var r=ea(t);i.update(r,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})}),function e(r){(i.get(r)||new Set).forEach(function(r){if(!t.has(r)){t.add(r);var i=r.getNamePath();r.isFieldDirty()&&i.length&&(n.push(i),e(i))}})}(e),n},this.triggerOnFieldsChange=function(e,t){var n=r.callbacks.onFieldsChange;if(n){var i=r.getFields();if(t){var a=new eF;t.forEach(function(e){var t=e.name,r=e.errors;a.set(t,r)}),i.forEach(function(e){e.errors=a.get(e.name)||e.errors})}n(i.filter(function(t){return eo(e,t.name)}),i)}},this.validateFields=function(e,t){r.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(s=e,o=t):o=e;var n,i,a,s,o,c=!!s,f=c?s.map(ea):[],d=[];r.getFieldEntities(!0).forEach(function(e){if(c||f.push(e.getNamePath()),(null===(t=o)||void 0===t?void 0:t.recursive)&&c){var t,n=e.getNamePath();n.every(function(e,t){return s[t]===e||void 0===s[t]})&&f.push(n)}if(e.props.rules&&e.props.rules.length){var i=e.getNamePath();if(!c||eo(f,i)){var a=e.validateRules((0,u.Z)({validateMessages:(0,u.Z)((0,u.Z)({},Y),r.validateMessages)},o));d.push(a.then(function(){return{name:i,errors:[],warnings:[]}}).catch(function(e){var t,r=[],n=[];return(null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,i=e.errors;t?n.push.apply(n,(0,l.Z)(i)):r.push.apply(r,(0,l.Z)(i))}),r.length)?Promise.reject({name:i,errors:r,warnings:n}):{name:i,errors:r,warnings:n}}))}}});var g=(n=!1,i=d.length,a=[],d.length?new Promise(function(e,t){d.forEach(function(r,s){r.catch(function(e){return n=!0,e}).then(function(r){i-=1,a[s]=r,i>0||(n&&t(a),e(a))})})}):Promise.resolve([]));r.lastValidatePromise=g,g.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});r.notifyObservers(r.store,t,{type:"validateFinish"}),r.triggerOnFieldsChange(t,e)});var h=g.then(function(){return r.lastValidatePromise===g?Promise.resolve(r.getFieldsValue(f)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:r.getFieldsValue(f),errorFields:t,outOfDate:r.lastValidatePromise!==g})});return h.catch(function(e){return e}),r.triggerOnFieldsChange(f),h},this.submit=function(){r.warningUnhooked(),r.validateFields().then(function(e){var t=r.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=r.callbacks.onFinishFailed;t&&t(e)})},this.forceRootUpdate=t}),eE=function(e){var t=i.useRef(),r=i.useState({}),n=(0,ep.Z)(r,2)[1];if(!t.current){if(e)t.current=e;else{var a=new ew(function(){n({})});t.current=a.getForm()}}return[t.current]},eP=i.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),eZ=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];function eV(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var ek=function(){},ex=i.forwardRef(function(e,t){var r,n=e.name,o=e.initialValues,c=e.fields,f=e.form,d=e.preserve,g=e.children,h=e.component,v=void 0===h?"form":h,p=e.validateMessages,y=e.validateTrigger,w=void 0===y?"onChange":y,E=e.onValuesChange,P=e.onFieldsChange,Z=e.onFinish,V=e.onFinishFailed,k=(0,s.Z)(e,eZ),x=i.useContext(eP),O=eE(f),C=(0,ep.Z)(O,1)[0],q=C.getInternalHooks(m),A=q.useSubscribe,R=q.setInitialValues,N=q.setCallbacks,T=q.setValidateMessages,M=q.setPreserve,j=q.destroyForm;i.useImperativeHandle(t,function(){return C}),i.useEffect(function(){return x.registerForm(n,C),function(){x.unregisterForm(n)}},[x,C,n]),T((0,u.Z)((0,u.Z)({},x.validateMessages),p)),N({onValuesChange:E,onFieldsChange:function(e){if(x.triggerFormChange(n,e),P){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i=0&&t<=r.length?(d.keys=[].concat((0,l.Z)(d.keys.slice(0,t)),[d.id],(0,l.Z)(d.keys.slice(t))),i([].concat((0,l.Z)(r.slice(0,t)),[e],(0,l.Z)(r.slice(t))))):(d.keys=[].concat((0,l.Z)(d.keys),[d.id]),i([].concat((0,l.Z)(r),[e]))),d.id+=1},remove:function(e){var t=s(),r=new Set(Array.isArray(e)?e:[e]);r.size<=0||(d.keys=d.keys.filter(function(e,t){return!r.has(t)}),i(t.filter(function(e,t){return!r.has(t)})))},move:function(e,t){if(e!==t){var r=s();e<0||e>=r.length||t<0||t>=r.length||(d.keys=ec(d.keys,e,t),i(ec(r,e,t)))}}},t)})))},ex.useForm=eE,ex.useWatch=function(){for(var e=arguments.length,t=Array(e),r=0;r{let{children:t,status:r,override:n}=e,a=(0,i.useContext)(eO),s=(0,i.useMemo)(()=>{let e=Object.assign({},a);return n&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[r,n,a]);return i.createElement(eO.Provider,{value:s},t)}},52040:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(66003)},66003:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u=[],l=!1,c=-1;function f(){l&&n&&(l=!1,n.length?u=n.concat(u):c=-1,u.length&&d())}function d(){if(!l){var e=o(f);l=!0;for(var t=u.length;t;){for(n=u,u=[];++c1)for(var r=1;r{let{color:e,disabled:r,focusVisible:n,focusVisibleClassName:o,size:i,variant:s}=t,u={root:["root",r&&"disabled",n&&"focusVisible",s&&`variant${(0,a.Z)(s)}`,e&&`color${(0,a.Z)(e)}`,i&&`size${(0,a.Z)(i)}`]},c=(0,f.Z)(u,y,{});return n&&o&&(c.root+=` ${o}`),c},w=(0,c.Z)("button")(({theme:t,ownerState:e})=>{var r,n,i,a;return[(0,o.Z)({"--Icon-margin":"initial"},"sm"===e.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.6)","--CircularProgress-size":"20px",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:t.vars.fontSize.sm,paddingInline:"2px"},"md"===e.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.5rem) / 1.667)","--CircularProgress-size":"24px",minWidth:"var(--IconButton-size, 2.5rem)",minHeight:"var(--IconButton-size, 2.5rem)",fontSize:t.vars.fontSize.md,paddingInline:"0.25rem"},"lg"===e.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 3rem) / 1.714)","--CircularProgress-size":"28px",minWidth:"var(--IconButton-size, 3rem)",minHeight:"var(--IconButton-size, 3rem)",fontSize:t.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:t.vars.fontFamily.body,fontWeight:t.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${t.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[t.focus.selector]:t.focus.default}),null==(r=t.variants[e.variant])?void 0:r[e.color],{"&:hover":null==(n=t.variants[`${e.variant}Hover`])?void 0:n[e.color]},{"&:active":null==(i=t.variants[`${e.variant}Active`])?void 0:i[e.color]},{[`&.${g.disabled}`]:null==(a=t.variants[`${e.variant}Disabled`])?void 0:a[e.color]}]}),E=(0,c.Z)(w,{name:"JoyIconButton",slot:"Root",overridesResolver:(t,e)=>e.root})({}),O=i.forwardRef(function(t,e){let r=(0,l.Z)({props:t,name:"JoyIconButton"}),{children:a,action:f,component:c="button",color:d="primary",variant:y="soft",size:g="md"}=r,w=(0,n.Z)(r,v),{getColor:O}=(0,h.VT)(y),S=O(t.color,d),A=i.useRef(null),R=(0,s.Z)(A,e),{focusVisible:T,setFocusVisible:B,getRootProps:x}=(0,u.Z)((0,o.Z)({},r,{ref:R}));i.useImperativeHandle(f,()=>({focusVisible:()=>{var t;B(!0),null==(t=A.current)||t.focus()}}),[B]);let C=(0,o.Z)({},r,{component:c,color:S,variant:y,size:g,focusVisible:T}),P=b(C),[j,U]=(0,p.Z)("root",{ref:e,className:P.root,elementType:E,getSlotProps:x,externalForwardedProps:(0,o.Z)({},w,{component:c}),ownerState:C});return(0,m.jsx)(j,(0,o.Z)({},U,{children:a}))});var S=O},89081:function(t,e,r){"use strict";r.d(e,{Z:function(){return q}});var n,o=function(){return(o=Object.assign||function(t){for(var e,r=1,n=arguments.length;re.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);oe.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function a(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function s(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o-1&&(i=setTimeout(function(){d.delete(t)},e)),d.set(t,o(o({},r),{timer:i}))},g=new Map,m=function(t,e){g.set(t,e),e.then(function(e){return g.delete(t),e}).catch(function(){g.delete(t)})},v={},b=function(t,e){v[t]&&v[t].forEach(function(t){return t(e)})},w=function(t,e){return v[t]||(v[t]=[]),v[t].push(e),function(){var r=v[t].indexOf(e);v[t].splice(r,1)}},E=function(t,e){var r=e.cacheKey,n=e.cacheTime,o=void 0===n?3e5:n,i=e.staleTime,f=void 0===i?0:i,c=e.setCache,h=e.getCache,v=(0,u.useRef)(),E=(0,u.useRef)(),O=function(t,e){c?c(e):y(t,o,e),b(t,e.data)},S=function(t,e){return(void 0===e&&(e=[]),h)?h(e):d.get(t)};return(l(function(){if(r){var e=S(r);e&&Object.hasOwnProperty.call(e,"data")&&(t.state.data=e.data,t.state.params=e.params,(-1===f||new Date().getTime()-e.time<=f)&&(t.state.loading=!1)),v.current=w(r,function(e){t.setState({data:e})})}},[]),p(function(){var t;null===(t=v.current)||void 0===t||t.call(v)}),r)?{onBefore:function(t){var e=S(r,t);return e&&Object.hasOwnProperty.call(e,"data")?-1===f||new Date().getTime()-e.time<=f?{loading:!1,data:null==e?void 0:e.data,error:void 0,returnNow:!0}:{data:null==e?void 0:e.data,error:void 0}:{}},onRequest:function(t,e){var n=g.get(r);return n&&n!==E.current||(n=t.apply(void 0,s([],a(e),!1)),E.current=n,m(r,n)),{servicePromise:n}},onSuccess:function(e,n){var o;r&&(null===(o=v.current)||void 0===o||o.call(v),O(r,{data:e,params:n,time:new Date().getTime()}),v.current=w(r,function(e){t.setState({data:e})}))},onMutate:function(e){var n;r&&(null===(n=v.current)||void 0===n||n.call(v),O(r,{data:e,params:t.state.params,time:new Date().getTime()}),v.current=w(r,function(e){t.setState({data:e})}))}}:{}},O=r(56762),S=r.n(O),A=function(t,e){var r=e.debounceWait,n=e.debounceLeading,o=e.debounceTrailing,i=e.debounceMaxWait,f=(0,u.useRef)(),c=(0,u.useMemo)(function(){var t={};return void 0!==n&&(t.leading=n),void 0!==o&&(t.trailing=o),void 0!==i&&(t.maxWait=i),t},[n,o,i]);return((0,u.useEffect)(function(){if(r){var e=t.runAsync.bind(t);return f.current=S()(function(t){t()},r,c),t.runAsync=function(){for(var t=[],r=0;r-1&&P.splice(t,1)})}return function(){f()}},[r,o]),p(function(){f()}),{}},N=function(t,e){var r=e.retryInterval,n=e.retryCount,o=(0,u.useRef)(),i=(0,u.useRef)(0),a=(0,u.useRef)(!1);return n?{onBefore:function(){a.current||(i.current=0),a.current=!1,o.current&&clearTimeout(o.current)},onSuccess:function(){i.current=0},onError:function(){if(i.current+=1,-1===n||i.current<=n){var e=null!=r?r:Math.min(1e3*Math.pow(2,i.current),3e4);o.current=setTimeout(function(){a.current=!0,t.refresh()},e)}else i.current=0},onCancel:function(){i.current=0,o.current&&clearTimeout(o.current)}}:{}},I=r(25832),L=r.n(I),_=function(t,e){var r=e.throttleWait,n=e.throttleLeading,o=e.throttleTrailing,i=(0,u.useRef)(),f={};return(void 0!==n&&(f.leading=n),void 0!==o&&(f.trailing=o),(0,u.useEffect)(function(){if(r){var e=t.runAsync.bind(t);return i.current=L()(function(t){t()},r,f),t.runAsync=function(){for(var t=[],r=0;r0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]=e||r<0||g&&n>=c}function w(){var t,r,n,i=o();if(b(i))return E(i);h=setTimeout(w,(t=i-p,r=i-d,n=e-t,g?s(n,c-r):n))}function E(t){return(h=void 0,m&&u)?v(t):(u=f=void 0,l)}function O(){var t,r=o(),n=b(r);if(u=arguments,f=this,p=r,n){if(void 0===h)return d=t=p,h=setTimeout(w,e),y?v(t):l;if(g)return clearTimeout(h),h=setTimeout(w,e),v(p)}return void 0===h&&(h=setTimeout(w,e)),l}return e=i(e)||0,n(r)&&(y=!!r.leading,c=(g="maxWait"in r)?a(i(r.maxWait)||0,e):c,m="trailing"in r?!!r.trailing:m),O.cancel=function(){void 0!==h&&clearTimeout(h),d=0,u=p=f=h=void 0},O.flush=function(){return void 0===h?l:E(o())},O}},74331:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},60655:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},50246:function(t,e,r){var n=r(48276),o=r(60655);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},49552:function(t,e,r){var n=r(41314);t.exports=function(){return n.Date.now()}},25832:function(t,e,r){var n=r(56762),o=r(74331);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},64528:function(t,e,r){var n=r(84886),o=r(74331),i=r(50246),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=u.test(t);return r||f.test(t)?c(t.slice(2),r?2:8):s.test(t)?a:+t}},91083:function(t){!function(){var e={675:function(t,e){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,i=u(t),a=i[0],s=i[1],f=new o((a+s)*3/4-s),c=0,l=s>0?a-4:a;for(r=0;r>16&255,f[c++]=e>>8&255,f[c++]=255&e;return 2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,f[c++]=255&e),1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,f[c++]=e>>8&255,f[c++]=255&e),f},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=0,s=n-o;a>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(t,a,a+16383>s?s:a+16383));return 1===o?i.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===o&&i.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(t,e,r){"use strict";/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */var n=r(675),o=r(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(t){if(t>2147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return c(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!s.isEncoding(e))throw TypeError("Unknown encoding: "+e);var r=0|p(t,e),n=a(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}(t,e);if(ArrayBuffer.isView(t))return l(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(C(t,ArrayBuffer)||t&&C(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(C(t,SharedArrayBuffer)||t&&C(t.buffer,SharedArrayBuffer)))return function(t,e,r){var n;if(e<0||t.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||C(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return R(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(t).length;default:if(o)return n?-1:R(t).length;e=(""+e).toLowerCase(),o=!0}}function d(t,e,r){var o,i,a=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(i=r=+r)!=i&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return -1;r=t.length-1}else if(r<0){if(!o)return -1;r=0}if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,o);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,o);throw TypeError("val must be string, number or Buffer")}function m(t,e,r,n,o){var i,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;a=2,s/=2,u/=2,r/=2}function f(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var c=-1;for(i=r;is&&(r=s-u),i=r;i>=0;i--){for(var l=!0,h=0;h239?4:f>223?3:f>191?2:1;if(o+l<=r)switch(l){case 1:f<128&&(c=f);break;case 2:(192&(i=t[o+1]))==128&&(u=(31&f)<<6|63&i)>127&&(c=u);break;case 3:i=t[o+1],a=t[o+2],(192&i)==128&&(192&a)==128&&(u=(15&f)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],(192&i)==128&&(192&a)==128&&(192&s)==128&&(u=(15&f)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,l=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=l}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function w(t,e,r,n,o,i){if(!s.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw RangeError("Index out of range")}function E(t,e,r,n,o,i){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function O(t,e,r,n,i){return e=+e,r>>>=0,i||E(t,e,r,4,34028234663852886e22,-34028234663852886e22),o.write(t,e,r,n,23,4),r+4}function S(t,e,r,n,i){return e=+e,r>>>=0,i||E(t,e,r,8,17976931348623157e292,-17976931348623157e292),o.write(t,e,r,n,52,8),r+8}e.Buffer=s,e.SlowBuffer=function(t){return+t!=t&&(t=0),s.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,r){return u(t,e,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,r){return(f(t),t<=0)?a(t):void 0!==e?"string"==typeof r?a(t).fill(e,r):a(t).fill(e):a(t)},s.allocUnsafe=function(t){return c(t)},s.allocUnsafeSlow=function(t){return c(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(C(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),C(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);or&&(t+=" ... "),""},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(t,e,r,n,o){if(C(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var i=o-n,a=r-e,u=Math.min(i,a),f=this.slice(n,o),c=t.slice(e,r),l=0;l>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,a,s,u,f,c,l,h,p,d,y,g=this.length-e;if((void 0===r||r>g)&&(r=g),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var m=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;n>i/2&&(n=i/2);for(var a=0;a>8,o.push(r%256),o.push(n);return o}(t,this.length-d),this,d,y);default:if(m)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),m=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t],o=1,i=0;++i>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},s.prototype.readUInt8=function(t,e){return t>>>=0,e||b(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},s.prototype.readInt8=function(t,e){return(t>>>=0,e||b(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||b(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||b(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||b(t,4,this.length),o.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||b(t,4,this.length),o.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||b(t,8,this.length),o.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||b(t,8,this.length),o.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;w(this,t,e,r,o,0)}var i=1,a=0;for(this[e]=255&t;++a>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;w(this,t,e,r,o,0)}var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},s.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);w(this,t,e,r,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i>0)-s&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);w(this,t,e,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,r){return O(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return O(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return S(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return S(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return o},s.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var o,i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&r<57344){if(!o){if(r>56319||a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function T(t){for(var e=[],r=0;r=e.length)&&!(o>=t.length);++o)e[o+r]=t[o];return o}function C(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var P=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}()},783:function(t,e){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */e.read=function(t,e,r,n,o){var i,a,s=8*o-n-1,u=(1<>1,c=-7,l=r?o-1:0,h=r?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-c)-1,p>>=-c,c+=s;c>0;i=256*i+t[e+l],l+=h,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+t[e+l],l+=h,c-=8);if(0===i)i=1-f;else{if(i===u)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,n),i-=f}return(p?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,s,u,f=8*i-o-1,c=(1<>1,h=23===o?5960464477539062e-23:0,p=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+l>=1?e+=h/u:e+=h*Math.pow(2,1-l),e*u>=2&&(a++,u/=2),a+l>=c?(s=0,a=c):a+l>=1?(s=(e*u-1)*Math.pow(2,o),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;t[r+p]=255&s,p+=d,s/=256,o-=8);for(a=a<0;t[r+p]=255&a,p+=d,a/=256,f-=8);t[r+p-d]|=128*y}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}},a=!0;try{e[t](i,i.exports,n),a=!1}finally{a&&delete r[t]}return i.exports}n.ab="//";var o=n(72);t.exports=o}()},24214:function(t,e,r){"use strict";let n;function o(t,e){return function(){return t.apply(e,arguments)}}r.d(e,{Z:function(){return tM}});let{toString:i}=Object.prototype,{getPrototypeOf:a}=Object,s=(L=Object.create(null),t=>{let e=i.call(t);return L[e]||(L[e]=e.slice(8,-1).toLowerCase())}),u=t=>(t=t.toLowerCase(),e=>s(e)===t),f=t=>e=>typeof e===t,{isArray:c}=Array,l=f("undefined"),h=u("ArrayBuffer"),p=f("string"),d=f("function"),y=f("number"),g=t=>null!==t&&"object"==typeof t,m=t=>{if("object"!==s(t))return!1;let e=a(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},v=u("Date"),b=u("File"),w=u("Blob"),E=u("FileList"),O=u("URLSearchParams");function S(t,e,{allOwnKeys:r=!1}={}){let n,o;if(null!=t){if("object"!=typeof t&&(t=[t]),c(t))for(n=0,o=t.length;n0;)if(e===(r=n[o]).toLowerCase())return r;return null}let R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,T=t=>!l(t)&&t!==R,B=(_="undefined"!=typeof Uint8Array&&a(Uint8Array),t=>_&&t instanceof _),x=u("HTMLFormElement"),C=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),P=u("RegExp"),j=(t,e)=>{let r=Object.getOwnPropertyDescriptors(t),n={};S(r,(r,o)=>{!1!==e(r,o,t)&&(n[o]=r)}),Object.defineProperties(t,n)},U="abcdefghijklmnopqrstuvwxyz",N="0123456789",I={DIGIT:N,ALPHA:U,ALPHA_DIGIT:U+U.toUpperCase()+N};var L,_,F={isArray:c,isArrayBuffer:h,isBuffer:function(t){return null!==t&&!l(t)&&null!==t.constructor&&!l(t.constructor)&&d(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||i.call(t)===e||d(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&h(t.buffer)},isString:p,isNumber:y,isBoolean:t=>!0===t||!1===t,isObject:g,isPlainObject:m,isUndefined:l,isDate:v,isFile:b,isBlob:w,isRegExp:P,isFunction:d,isStream:t=>g(t)&&d(t.pipe),isURLSearchParams:O,isTypedArray:B,isFileList:E,forEach:S,merge:function t(){let{caseless:e}=T(this)&&this||{},r={},n=(n,o)=>{let i=e&&A(r,o)||o;m(r[i])&&m(n)?r[i]=t(r[i],n):m(n)?r[i]=t({},n):c(n)?r[i]=n.slice():r[i]=n};for(let t=0,e=arguments.length;t(S(e,(e,n)=>{r&&d(e)?t[n]=o(e,r):t[n]=e},{allOwnKeys:n}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let o,i,s;let u={};if(e=e||{},null==t)return e;do{for(i=(o=Object.getOwnPropertyNames(t)).length;i-- >0;)s=o[i],(!n||n(s,t,e))&&!u[s]&&(e[s]=t[s],u[s]=!0);t=!1!==r&&a(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:s,kindOfTest:u,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;let n=t.indexOf(e,r);return -1!==n&&n===r},toArray:t=>{if(!t)return null;if(c(t))return t;let e=t.length;if(!y(e))return null;let r=Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{let r;let n=t&&t[Symbol.iterator],o=n.call(t);for(;(r=o.next())&&!r.done;){let n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let r;let n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:x,hasOwnProperty:C,hasOwnProp:C,reduceDescriptors:j,freezeMethods:t=>{j(t,(e,r)=>{if(d(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;let n=t[r];if(d(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(t,e)=>{let r={};return(t=>{t.forEach(t=>{r[t]=!0})})(c(t)?t:String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(t,e)=>Number.isFinite(t=+t)?t:e,findKey:A,global:R,isContextDefined:T,ALPHABET:I,generateString:(t=16,e=I.ALPHA_DIGIT)=>{let r="",{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r},isSpecCompliantForm:function(t){return!!(t&&d(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{let e=Array(10),r=(t,n)=>{if(g(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;let o=c(t)?[]:{};return S(t,(t,e)=>{let i=r(t,n+1);l(i)||(o[e]=i)}),e[n]=void 0,o}}return t};return r(t,0)}};function k(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}F.inherits(k,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:F.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let D=k.prototype,z={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{z[t]={value:t}}),Object.defineProperties(k,z),Object.defineProperty(D,"isAxiosError",{value:!0}),k.from=(t,e,r,n,o,i)=>{let a=Object.create(D);return F.toFlatObject(t,a,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t),k.call(a,t.message,e,r,n,o),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};var M=r(91083).Buffer;function q(t){return F.isPlainObject(t)||F.isArray(t)}function H(t){return F.endsWith(t,"[]")?t.slice(0,-2):t}function W(t,e,r){return t?t.concat(e).map(function(t,e){return t=H(t),!r&&e?"["+t+"]":t}).join(r?".":""):e}let J=F.toFlatObject(F,{},null,function(t){return/^is[A-Z]/.test(t)});var Z=function(t,e,r){if(!F.isObject(t))throw TypeError("target must be an object");e=e||new FormData,r=F.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!F.isUndefined(e[t])});let n=r.metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,s=r.Blob||"undefined"!=typeof Blob&&Blob,u=s&&F.isSpecCompliantForm(e);if(!F.isFunction(o))throw TypeError("visitor must be a function");function f(t){if(null===t)return"";if(F.isDate(t))return t.toISOString();if(!u&&F.isBlob(t))throw new k("Blob is not supported. Use a Buffer instead.");return F.isArrayBuffer(t)||F.isTypedArray(t)?u&&"function"==typeof Blob?new Blob([t]):M.from(t):t}function c(t,r,o){let s=t;if(t&&!o&&"object"==typeof t){if(F.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else{var u;if(F.isArray(t)&&(u=t,F.isArray(u)&&!u.some(q))||(F.isFileList(t)||F.endsWith(r,"[]"))&&(s=F.toArray(t)))return r=H(r),s.forEach(function(t,n){F.isUndefined(t)||null===t||e.append(!0===a?W([r],n,i):null===a?r:r+"[]",f(t))}),!1}}return!!q(t)||(e.append(W(o,r,i),f(t)),!1)}let l=[],h=Object.assign(J,{defaultVisitor:c,convertValue:f,isVisitable:q});if(!F.isObject(t))throw TypeError("data must be an object");return!function t(r,n){if(!F.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),F.forEach(r,function(r,i){let a=!(F.isUndefined(r)||null===r)&&o.call(e,r,F.isString(i)?i.trim():i,n,h);!0===a&&t(r,n?n.concat(i):[i])}),l.pop()}}(t),e};function $(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function V(t,e){this._pairs=[],t&&Z(t,this,e)}let K=V.prototype;function G(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function X(t,e,r){let n;if(!e)return t;let o=r&&r.encode||G,i=r&&r.serialize;if(n=i?i(e,r):F.isURLSearchParams(e)?e.toString():new V(e,r).toString(o)){let e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t}K.append=function(t,e){this._pairs.push([t,e])},K.toString=function(t){let e=t?function(e){return t.call(this,e,$)}:$;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};var Y=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){F.forEach(this.handlers,function(e){null!==e&&t(e)})}},Q={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tt="undefined"!=typeof URLSearchParams?URLSearchParams:V,te="undefined"!=typeof FormData?FormData:null,tr="undefined"!=typeof Blob?Blob:null;let tn=("undefined"==typeof navigator||"ReactNative"!==(n=navigator.product)&&"NativeScript"!==n&&"NS"!==n)&&"undefined"!=typeof window&&"undefined"!=typeof document,to="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var ti={isBrowser:!0,classes:{URLSearchParams:tt,FormData:te,Blob:tr},isStandardBrowserEnv:tn,isStandardBrowserWebWorkerEnv:to,protocols:["http","https","file","blob","url","data"]},ta=function(t){if(F.isFormData(t)&&F.isFunction(t.entries)){let e={};return F.forEachEntry(t,(t,r)=>{!function t(e,r,n,o){let i=e[o++],a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&F.isArray(n)?n.length:i,s)return F.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&F.isObject(n[i])||(n[i]=[]);let u=t(e,r,n[i],o);return u&&F.isArray(n[i])&&(n[i]=function(t){let e,r;let n={},o=Object.keys(t),i=o.length;for(e=0;e"[]"===t[0]?"":t[1]||t[0]),r,e,0)}),e}return null};let ts={"Content-Type":void 0},tu={transitional:Q,adapter:["xhr","http"],transformRequest:[function(t,e){let r;let n=e.getContentType()||"",o=n.indexOf("application/json")>-1,i=F.isObject(t);i&&F.isHTMLForm(t)&&(t=new FormData(t));let a=F.isFormData(t);if(a)return o&&o?JSON.stringify(ta(t)):t;if(F.isArrayBuffer(t)||F.isBuffer(t)||F.isStream(t)||F.isFile(t)||F.isBlob(t))return t;if(F.isArrayBufferView(t))return t.buffer;if(F.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1){var s,u;return(s=t,u=this.formSerializer,Z(s,new ti.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return ti.isNode&&F.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},u))).toString()}if((r=F.isFileList(t))||n.indexOf("multipart/form-data")>-1){let e=this.env&&this.env.FormData;return Z(r?{"files[]":t}:t,e&&new e,this.formSerializer)}}return i||o?(e.setContentType("application/json",!1),function(t,e,r){if(F.isString(t))try{return(0,JSON.parse)(t),F.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){let e=this.transitional||tu.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(t&&F.isString(t)&&(r&&!this.responseType||n)){let r=e&&e.silentJSONParsing;try{return JSON.parse(t)}catch(t){if(!r&&n){if("SyntaxError"===t.name)throw k.from(t,k.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ti.classes.FormData,Blob:ti.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};F.forEach(["delete","get","head"],function(t){tu.headers[t]={}}),F.forEach(["post","put","patch"],function(t){tu.headers[t]=F.merge(ts)});let tf=F.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var tc=t=>{let e,r,n;let o={};return t&&t.split("\n").forEach(function(t){n=t.indexOf(":"),e=t.substring(0,n).trim().toLowerCase(),r=t.substring(n+1).trim(),!e||o[e]&&tf[e]||("set-cookie"===e?o[e]?o[e].push(r):o[e]=[r]:o[e]=o[e]?o[e]+", "+r:r)}),o};let tl=Symbol("internals");function th(t){return t&&String(t).trim().toLowerCase()}function tp(t){return!1===t||null==t?t:F.isArray(t)?t.map(tp):String(t)}function td(t,e,r,n,o){if(F.isFunction(n))return n.call(this,e,r);if(o&&(e=r),F.isString(e)){if(F.isString(n))return -1!==e.indexOf(n);if(F.isRegExp(n))return n.test(e)}}class ty{constructor(t){t&&this.set(t)}set(t,e,r){let n=this;function o(t,e,r){let o=th(e);if(!o)throw Error("header name must be a non-empty string");let i=F.findKey(n,o);i&&void 0!==n[i]&&!0!==r&&(void 0!==r||!1===n[i])||(n[i||e]=tp(t))}let i=(t,e)=>F.forEach(t,(t,r)=>o(t,r,e));if(F.isPlainObject(t)||t instanceof this.constructor)i(t,e);else{var a;F.isString(t)&&(t=t.trim())&&(a=t,!/^[-_a-zA-Z]+$/.test(a.trim()))?i(tc(t),e):null!=t&&o(e,t,r)}return this}get(t,e){if(t=th(t)){let r=F.findKey(this,t);if(r){let t=this[r];if(!e)return t;if(!0===e)return function(t){let e;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;e=n.exec(t);)r[e[1]]=e[2];return r}(t);if(F.isFunction(e))return e.call(this,t,r);if(F.isRegExp(e))return e.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=th(t)){let r=F.findKey(this,t);return!!(r&&void 0!==this[r]&&(!e||td(this,this[r],r,e)))}return!1}delete(t,e){let r=this,n=!1;function o(t){if(t=th(t)){let o=F.findKey(r,t);o&&(!e||td(r,r[o],o,e))&&(delete r[o],n=!0)}}return F.isArray(t)?t.forEach(o):o(t),n}clear(t){let e=Object.keys(this),r=e.length,n=!1;for(;r--;){let o=e[r];(!t||td(this,this[o],o,t,!0))&&(delete this[o],n=!0)}return n}normalize(t){let e=this,r={};return F.forEach(this,(n,o)=>{let i=F.findKey(r,o);if(i){e[i]=tp(n),delete e[o];return}let a=t?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r):String(o).trim();a!==o&&delete e[o],e[a]=tp(n),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let e=Object.create(null);return F.forEach(this,(r,n)=>{null!=r&&!1!==r&&(e[n]=t&&F.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){let r=new this(t);return e.forEach(t=>r.set(t)),r}static accessor(t){let e=this[tl]=this[tl]={accessors:{}},r=e.accessors,n=this.prototype;function o(t){let e=th(t);r[e]||(!function(t,e){let r=F.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(t,r,o){return this[n].call(this,e,t,r,o)},configurable:!0})})}(n,t),r[e]=!0)}return F.isArray(t)?t.forEach(o):o(t),this}}function tg(t,e){let r=this||tu,n=e||r,o=ty.from(n.headers),i=n.data;return F.forEach(t,function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function tm(t){return!!(t&&t.__CANCEL__)}function tv(t,e,r){k.call(this,null==t?"canceled":t,k.ERR_CANCELED,e,r),this.name="CanceledError"}ty.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),F.freezeMethods(ty.prototype),F.freezeMethods(ty),F.inherits(tv,k,{__CANCEL__:!0});var tb=ti.isStandardBrowserEnv?{write:function(t,e,r,n,o,i){let a=[];a.push(t+"="+encodeURIComponent(e)),F.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),F.isString(n)&&a.push("path="+n),F.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){let e=document.cookie.match(RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function tw(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t:e}var tE=ti.isStandardBrowserEnv?function(){let t;let e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){let n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=n(window.location.href),function(e){let r=F.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0},tO=function(t,e){let r;t=t||10;let n=Array(t),o=Array(t),i=0,a=0;return e=void 0!==e?e:1e3,function(s){let u=Date.now(),f=o[a];r||(r=u),n[i]=s,o[i]=u;let c=a,l=0;for(;c!==i;)l+=n[c++],c%=t;if((i=(i+1)%t)===a&&(a=(a+1)%t),u-r{let i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-r,u=n(s),f=i<=a;r=i;let c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&f?(a-i)/u:void 0,event:o};c[e?"download":"upload"]=!0,t(c)}}let tA="undefined"!=typeof XMLHttpRequest;var tR=tA&&function(t){return new Promise(function(e,r){let n,o=t.data,i=ty.from(t.headers).normalize(),a=t.responseType;function s(){t.cancelToken&&t.cancelToken.unsubscribe(n),t.signal&&t.signal.removeEventListener("abort",n)}F.isFormData(o)&&(ti.isStandardBrowserEnv||ti.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let u=new XMLHttpRequest;if(t.auth){let e=t.auth.username||"",r=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(e+":"+r))}let f=tw(t.baseURL,t.url);function c(){if(!u)return;let n=ty.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),o=a&&"text"!==a&&"json"!==a?u.response:u.responseText,i={data:o,status:u.status,statusText:u.statusText,headers:n,config:t,request:u};!function(t,e,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new k("Request failed with status code "+r.status,[k.ERR_BAD_REQUEST,k.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}(function(t){e(t),s()},function(t){r(t),s()},i),u=null}if(u.open(t.method.toUpperCase(),X(f,t.params,t.paramsSerializer),!0),u.timeout=t.timeout,"onloadend"in u?u.onloadend=c:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(c)},u.onabort=function(){u&&(r(new k("Request aborted",k.ECONNABORTED,t,u)),u=null)},u.onerror=function(){r(new k("Network Error",k.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",n=t.transitional||Q;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new k(e,n.clarifyTimeoutError?k.ETIMEDOUT:k.ECONNABORTED,t,u)),u=null},ti.isStandardBrowserEnv){let e=(t.withCredentials||tE(f))&&t.xsrfCookieName&&tb.read(t.xsrfCookieName);e&&i.set(t.xsrfHeaderName,e)}void 0===o&&i.setContentType(null),"setRequestHeader"in u&&F.forEach(i.toJSON(),function(t,e){u.setRequestHeader(e,t)}),F.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),a&&"json"!==a&&(u.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&u.addEventListener("progress",tS(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",tS(t.onUploadProgress)),(t.cancelToken||t.signal)&&(n=e=>{u&&(r(!e||e.type?new tv(null,t,u):e),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(n),t.signal&&(t.signal.aborted?n():t.signal.addEventListener("abort",n)));let l=function(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(f);if(l&&-1===ti.protocols.indexOf(l)){r(new k("Unsupported protocol "+l+":",k.ERR_BAD_REQUEST,t));return}u.send(o||null)})};let tT={http:null,xhr:tR};F.forEach(tT,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});var tB={getAdapter:t=>{let e,r;t=F.isArray(t)?t:[t];let{length:n}=t;for(let o=0;ot instanceof ty?t.toJSON():t;function tj(t,e){e=e||{};let r={};function n(t,e,r){return F.isPlainObject(t)&&F.isPlainObject(e)?F.merge.call({caseless:r},t,e):F.isPlainObject(e)?F.merge({},e):F.isArray(e)?e.slice():e}function o(t,e,r){return F.isUndefined(e)?F.isUndefined(t)?void 0:n(void 0,t,r):n(t,e,r)}function i(t,e){if(!F.isUndefined(e))return n(void 0,e)}function a(t,e){return F.isUndefined(e)?F.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function s(r,o,i){return i in e?n(r,o):i in t?n(void 0,r):void 0}let u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e)=>o(tP(t),tP(e),!0)};return F.forEach(Object.keys(t).concat(Object.keys(e)),function(n){let i=u[n]||o,a=i(t[n],e[n],n);F.isUndefined(a)&&i!==s||(r[n]=a)}),r}let tU="1.3.4",tN={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{tN[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});let tI={};tN.transitional=function(t,e,r){function n(t,e){return"[Axios v"+tU+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,o,i)=>{if(!1===t)throw new k(n(o," has been removed"+(e?" in "+e:"")),k.ERR_DEPRECATED);return e&&!tI[o]&&(tI[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};var tL={assertOptions:function(t,e,r){if("object"!=typeof t)throw new k("options must be an object",k.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),o=n.length;for(;o-- >0;){let i=n[o],a=e[i];if(a){let e=t[i],r=void 0===e||a(e,i,t);if(!0!==r)throw new k("option "+i+" must be "+r,k.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new k("Unknown option "+i,k.ERR_BAD_OPTION)}},validators:tN};let t_=tL.validators;class tF{constructor(t){this.defaults=t,this.interceptors={request:new Y,response:new Y}}request(t,e){let r,n,o;"string"==typeof t?(e=e||{}).url=t:e=t||{},e=tj(this.defaults,e);let{transitional:i,paramsSerializer:a,headers:s}=e;void 0!==i&&tL.assertOptions(i,{silentJSONParsing:t_.transitional(t_.boolean),forcedJSONParsing:t_.transitional(t_.boolean),clarifyTimeoutError:t_.transitional(t_.boolean)},!1),void 0!==a&&tL.assertOptions(a,{encode:t_.function,serialize:t_.function},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase(),(r=s&&F.merge(s.common,s[e.method]))&&F.forEach(["delete","get","head","post","put","patch","common"],t=>{delete s[t]}),e.headers=ty.concat(r,s);let u=[],f=!0;this.interceptors.request.forEach(function(t){("function"!=typeof t.runWhen||!1!==t.runWhen(e))&&(f=f&&t.synchronous,u.unshift(t.fulfilled,t.rejected))});let c=[];this.interceptors.response.forEach(function(t){c.push(t.fulfilled,t.rejected)});let l=0;if(!f){let t=[tC.bind(this),void 0];for(t.unshift.apply(t,u),t.push.apply(t,c),o=t.length,n=Promise.resolve(e);l{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null}),this.promise.then=t=>{let e;let n=new Promise(t=>{r.subscribe(t),e=t}).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t(function(t,n,o){r.reason||(r.reason=new tv(t,n,o),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;let e=new tk(function(e){t=e});return{token:e,cancel:t}}}let tD={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(tD).forEach(([t,e])=>{tD[e]=t});let tz=function t(e){let r=new tF(e),n=o(tF.prototype.request,r);return F.extend(n,tF.prototype,r,{allOwnKeys:!0}),F.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return t(tj(e,r))},n}(tu);tz.Axios=tF,tz.CanceledError=tv,tz.CancelToken=tk,tz.isCancel=tm,tz.VERSION=tU,tz.toFormData=Z,tz.AxiosError=k,tz.Cancel=tz.CanceledError,tz.all=function(t){return Promise.all(t)},tz.spread=function(t){return function(e){return t.apply(null,e)}},tz.isAxiosError=function(t){return F.isObject(t)&&!0===t.isAxiosError},tz.mergeConfig=tj,tz.AxiosHeaders=ty,tz.formToJSON=t=>ta(F.isHTMLForm(t)?new FormData(t):t),tz.HttpStatusCode=tD,tz.default=tz;var tM=tz}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/agents/page-14efdc7876dcf19f.js b/pilot/server/static/_next/static/chunks/app/agents/page-14efdc7876dcf19f.js deleted file mode 100644 index ea177cc3a..000000000 --- a/pilot/server/static/_next/static/chunks/app/agents/page-14efdc7876dcf19f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[718],{82738:function(e,t,l){Promise.resolve().then(l.bind(l,4191))},4191:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return E}});var s=l(9268),r=l(67830),a=l(54842),n=l(70900),o=l(62414),i=l(94244),c=l(33155),u=l(7354),d=l(35891),h=l(35086),m=l(53047),x=l(86006),p=l(19700),y=l(92391),f=l(70321),v=l(75403),j=l(99398),g=l(49064);let Z=y.z.object({query:y.z.string().min(1)});var b=e=>{let{messages:t,onSubmit:l,initialMessage:y,readOnly:b,paramsList:w,clearIntialMessage:N}=e,k=x.useRef(null),[P,T]=(0,x.useState)(!1),[S,C]=(0,x.useState)(),[R,O]=(0,x.useState)(),E=(0,p.cI)({resolver:(0,r.F)(Z),defaultValues:{}}),A=async e=>{let{query:t}=e;try{T(!0),E.reset(),await l(t,{select_param:null==w?void 0:w[R]})}catch(e){}finally{T(!1)}},_=async()=>{try{let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await A({query:y})}catch(e){console.log(e)}finally{null==N||N()}},L={overrides:{code:e=>{let{children:t}=e;return(0,s.jsx)(j.Z,{language:"javascript",style:g.Z,children:t})}}};return x.useEffect(()=>{k.current&&k.current.scrollTo(0,k.current.scrollHeight)},[null==t?void 0:t.length]),x.useEffect(()=>{y&&t.length<=0&&_()},[y]),x.useEffect(()=>{var e,t;w&&(null===(e=Object.keys(w||{}))||void 0===e?void 0:e.length)>0&&O(null===(t=Object.keys(w||{}))||void 0===t?void 0:t[0])},[w]),(0,s.jsx)("div",{className:"mx-auto flex h-full max-w-3xl flex-col gap-6 px-5 py-6 sm:gap-8 xl:max-w-5xl",children:(0,s.jsxs)(n.Z,{direction:"column",gap:2,sx:{display:"flex",flex:1,flexBasis:"100%",width:"100%",height:"100%",maxHeight:"100%",minHeight:"100%",mx:"auto"},children:[(0,s.jsxs)(n.Z,{ref:k,direction:"column",gap:2,sx:{boxSizing:"border-box",maxWidth:"100%",width:"100%",mx:"auto",flex:1,maxHeight:"100%",overflowY:"auto",p:2,border:"1px solid",borderColor:"var(--joy-palette-divider)"},children:[S&&(0,s.jsx)(o.Z,{size:"sm",variant:"outlined",color:"primary",className:"message-agent",sx:{mr:"auto",ml:"none",whiteSpace:"pre-wrap"},children:null==S?void 0:S.context}),t.filter(e=>["view","human"].includes(e.role)).map((e,t)=>{var l;return(0,s.jsx)(n.Z,{sx:{mr:"view"===e.role?"auto":"none",ml:"human"===e.role?"auto":"none"},children:(0,s.jsx)(o.Z,{size:"sm",variant:"outlined",className:"view"===e.role?"message-agent":"message-human",color:"view"===e.role?"primary":"neutral",sx:e=>({px:2,"ol, ul":{my:0,pl:2},ol:{listStyle:"numeric"},ul:{listStyle:"disc",mb:2},li:{my:1},a:{textDecoration:"underline"}}),children:(0,s.jsx)(v.Z,{options:L,children:null===(l=e.context)||void 0===l?void 0:l.replaceAll("\\n","\n")})})},t)}),P&&(0,s.jsx)(i.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!b&&(0,s.jsxs)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px"},onSubmit:e=>{e.stopPropagation(),E.handleSubmit(A)(e)},children:[Object.keys(w||{}).length>0&&(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(c.Z,{value:R,onChange:(e,t)=>{O(t)},className:"max-w-xs",children:Object.keys(w||{}).map(e=>(0,s.jsx)(u.Z,{value:e,children:null==w?void 0:w[e]},e))}),(0,s.jsx)(d.Z,{className:"cursor-pointer",title:R,placement:"top",variant:"outlined",children:(0,s.jsx)(f.Z,{})})]}),(0,s.jsx)(h.ZP,{sx:{width:"100%"},variant:"outlined",endDecorator:(0,s.jsx)(m.ZP,{type:"submit",disabled:P,children:(0,s.jsx)(a.Z,{})}),...E.register("query")})]})]})})},w=l(91440),N=l(50645),k=l(5737),P=l(45642),T=l(26974),S=l(22046),C=l(78417),R=l(66487);let O=(0,N.Z)(k.Z)(e=>{let{theme:t}=e;return{...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}});var E=()=>{let{handleChatSubmit:e,history:t}=(0,R.Z)({queryAgentURL:"/v1/chat/completions"}),l=[{year:"1951 年",sales:0},{year:"1952 年",sales:52},{year:"1956 年",sales:61},{year:"1957 年",sales:45},{year:"1958 年",sales:48},{year:"1959 年",sales:38},{year:"1960 年",sales:38},{year:"1962 年",sales:38}];return(0,s.jsx)("div",{className:"p-4 flex flex-row gap-6 min-h-full w-full",children:(0,s.jsx)("div",{className:"flex w-full",children:(0,s.jsxs)(P.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,s.jsx)(P.Z,{xs:8,children:(0,s.jsxs)(C.Z,{spacing:2,className:"h-full",children:[(0,s.jsx)(O,{children:(0,s.jsx)(P.Z,{container:!0,spacing:2,children:[{label:"Revenue Won",value:"$7,811,851"},{label:"Close %",value:"37.7%"},{label:"AVG Days to Close",value:"121"},{label:"Opportunities Won",value:"526"}].map(e=>(0,s.jsx)(P.Z,{xs:3,children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(T.Z,{className:"justify-around",children:[(0,s.jsx)(S.ZP,{gutterBottom:!0,component:"div",children:e.label}),(0,s.jsx)(S.ZP,{children:e.value})]})})},e.label))})}),(0,s.jsx)(O,{className:"flex-1",children:(0,s.jsx)(o.Z,{className:"h-full",children:(0,s.jsxs)(T.Z,{className:"h-full",children:[(0,s.jsx)(S.ZP,{gutterBottom:!0,component:"div",children:"Revenue Won by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsx)(w.Chart,{padding:[10,20,50,40],autoFit:!0,data:[{month:"Jan",city:"Tokyo",temperature:7},{month:"Feb",city:"Tokyo",temperature:13},{month:"Mar",city:"Tokyo",temperature:16.5},{month:"Apr",city:"Tokyo",temperature:14.5},{month:"May",city:"Tokyo",temperature:10},{month:"Jun",city:"Tokyo",temperature:7.5},{month:"Jul",city:"Tokyo",temperature:9.2},{month:"Aug",city:"Tokyo",temperature:14.5},{month:"Sep",city:"Tokyo",temperature:9.3},{month:"Oct",city:"Tokyo",temperature:8.3},{month:"Nov",city:"Tokyo",temperature:8.9},{month:"Dec",city:"Tokyo",temperature:5.6}],children:(0,s.jsx)(w.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"month*temperature",color:"city"})})})]})})}),(0,s.jsx)(O,{className:"flex-1",children:(0,s.jsxs)(P.Z,{container:!0,spacing:2,className:"h-full",children:[(0,s.jsx)(P.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(T.Z,{className:"h-full",children:[(0,s.jsx)(S.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})}),(0,s.jsx)(P.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(T.Z,{className:"h-full",children:[(0,s.jsx)(S.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})}),(0,s.jsx)(P.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(T.Z,{className:"h-full",children:[(0,s.jsx)(S.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})})]})})]})}),(0,s.jsx)(P.Z,{xs:4,children:(0,s.jsx)(b,{messages:t,onSubmit:e})})]})})})}},57931:function(e,t,l){"use strict";l.d(t,{ZP:function(){return c},Cg:function(){return o}});var s=l(9268),r=l(89081),a=l(78915),n=l(86006);let[o,i]=function(){let e=n.createContext(void 0);return[function(){let t=n.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:l,data:n,refresh:o}=(0,r.Z)(async()=>await (0,a.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,s.jsx)(i,{value:{dialogueList:n,queryDialogueList:l,refreshDialogList:o},children:t})}},66487:function(e,t,l){"use strict";l.d(t,{Z:function(){return i}});var s=l(71990),r=l(86006),a=e=>{let t=(0,r.useReducer)((e,t)=>({...e,...t}),{...e});return t},n=l(57931),o=l(52040),i=e=>{let{queryAgentURL:t,channel:l,queryBody:i,initHistory:c}=e,[u,d]=a({history:c||[]}),{refreshDialogList:h}=(0,n.Cg)();(0,r.useEffect)(()=>{c&&d({history:c})},[c]);let m=async(e,r)=>{if(!e)return;let a=[...u.history,{role:"human",context:e}],n=a.length;d({history:a});try{let c=new AbortController;await (0,s.L)("".concat(o.env.API_BASE_URL+"/api"+t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...r,...i,user_input:e,channel:l}),signal:c.signal,async onopen(e){if(a.length<=1){h();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==s.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)c.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))c.abort(),d({history:[...a,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...a];e.data&&((null==t?void 0:t[n])?t[n].context="".concat(e.data):t.push({role:"view",context:e.data}),d({history:t}))}}})}catch(e){console.log("---e",e),d({history:[...a,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:m,history:u.history}}},78915:function(e,t,l){"use strict";l.d(t,{T:function(){return u},K:function(){return d}});var s=l(21628),r=l(24214),a=l(52040);let n=r.Z.create({baseURL:a.env.API_BASE_URL});n.defaults.timeout=1e4,n.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var o=l(84835);let i={"content-type":"application/json"},c=e=>{if(!(0,o.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let l=t[e];"string"==typeof l&&(t[e]=l.trim())}return JSON.stringify(t)},u=(e,t)=>{if(t){let l=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");l&&(e+="?".concat(l))}return n.get("/api"+e,{headers:i}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let l=c(t);return n.post("/api"+e,{body:l,headers:i}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})}}},function(e){e.O(0,[180,757,797,577,86,562,259,751,662,481,253,769,744],function(){return e(e.s=82738)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/agents/page-1a9eb9931bf223c4.js b/pilot/server/static/_next/static/chunks/app/agents/page-1a9eb9931bf223c4.js new file mode 100644 index 000000000..e2bdac9cc --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/agents/page-1a9eb9931bf223c4.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[718],{82738:function(e,t,l){Promise.resolve().then(l.bind(l,4191))},4191:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return E}});var r=l(9268),s=l(67830),a=l(54842),n=l(70900),o=l(62414),i=l(94244),c=l(33155),u=l(7354),h=l(35891),d=l(35086),m=l(53047),x=l(86006),p=l(19700),y=l(92391),f=l(70321),j=l(75403),v=l(99398),g=l(49064);let Z=y.z.object({query:y.z.string().min(1)});var b=e=>{let{messages:t,onSubmit:l,initialMessage:y,readOnly:b,paramsList:w,clearIntialMessage:N}=e,P=x.useRef(null),[k,S]=(0,x.useState)(!1),[T,C]=(0,x.useState)(),[R,O]=(0,x.useState)(),E=(0,p.cI)({resolver:(0,s.F)(Z),defaultValues:{}}),A=async e=>{let{query:t}=e;try{S(!0),E.reset(),await l(t,{select_param:null==w?void 0:w[R]})}catch(e){}finally{S(!1)}},_=async()=>{try{let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await A({query:y})}catch(e){console.log(e)}finally{null==N||N()}},L={overrides:{code:e=>{let{children:t}=e;return(0,r.jsx)(v.Z,{language:"javascript",style:g.Z,children:t})}}};return x.useEffect(()=>{P.current&&P.current.scrollTo(0,P.current.scrollHeight)},[null==t?void 0:t.length]),x.useEffect(()=>{y&&t.length<=0&&_()},[y]),x.useEffect(()=>{var e,t;w&&(null===(e=Object.keys(w||{}))||void 0===e?void 0:e.length)>0&&O(null===(t=Object.keys(w||{}))||void 0===t?void 0:t[0])},[w]),(0,r.jsx)("div",{className:"mx-auto flex h-full max-w-3xl flex-col gap-6 px-5 py-6 sm:gap-8 xl:max-w-5xl",children:(0,r.jsxs)(n.Z,{direction:"column",gap:2,sx:{display:"flex",flex:1,flexBasis:"100%",width:"100%",height:"100%",maxHeight:"100%",minHeight:"100%",mx:"auto"},children:[(0,r.jsxs)(n.Z,{ref:P,direction:"column",gap:2,sx:{boxSizing:"border-box",maxWidth:"100%",width:"100%",mx:"auto",flex:1,maxHeight:"100%",overflowY:"auto",p:2,border:"1px solid",borderColor:"var(--joy-palette-divider)"},children:[T&&(0,r.jsx)(o.Z,{size:"sm",variant:"outlined",color:"primary",className:"message-agent",sx:{mr:"auto",ml:"none",whiteSpace:"pre-wrap"},children:null==T?void 0:T.context}),t.filter(e=>["view","human"].includes(e.role)).map((e,t)=>{var l;return(0,r.jsx)(n.Z,{sx:{mr:"view"===e.role?"auto":"none",ml:"human"===e.role?"auto":"none"},children:(0,r.jsx)(o.Z,{size:"sm",variant:"outlined",className:"view"===e.role?"message-agent":"message-human",color:"view"===e.role?"primary":"neutral",sx:e=>({px:2,"ol, ul":{my:0,pl:2},ol:{listStyle:"numeric"},ul:{listStyle:"disc",mb:2},li:{my:1},a:{textDecoration:"underline"}}),children:(0,r.jsx)(j.Z,{options:L,children:null===(l=e.context)||void 0===l?void 0:l.replaceAll("\\n","\n")})})},t)}),k&&(0,r.jsx)(i.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!b&&(0,r.jsxs)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px"},onSubmit:e=>{e.stopPropagation(),E.handleSubmit(A)(e)},children:[Object.keys(w||{}).length>0&&(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(c.Z,{value:R,onChange:(e,t)=>{O(t)},className:"max-w-xs",children:Object.keys(w||{}).map(e=>(0,r.jsx)(u.Z,{value:e,children:null==w?void 0:w[e]},e))}),(0,r.jsx)(h.Z,{className:"cursor-pointer",title:R,placement:"top",variant:"outlined",children:(0,r.jsx)(f.Z,{})})]}),(0,r.jsx)(d.ZP,{sx:{width:"100%"},variant:"outlined",endDecorator:(0,r.jsx)(m.ZP,{type:"submit",disabled:k,children:(0,r.jsx)(a.Z,{})}),...E.register("query")})]})]})})},w=l(91440),N=l(50645),P=l(5737),k=l(45642),S=l(26974),T=l(22046),C=l(78417),R=l(66487);let O=(0,N.Z)(P.Z)(e=>{let{theme:t}=e;return{...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}});var E=()=>{let{handleChatSubmit:e,history:t}=(0,R.Z)({queryAgentURL:"/v1/chat/completions"}),l=[{year:"1951 年",sales:0},{year:"1952 年",sales:52},{year:"1956 年",sales:61},{year:"1957 年",sales:45},{year:"1958 年",sales:48},{year:"1959 年",sales:38},{year:"1960 年",sales:38},{year:"1962 年",sales:38}];return(0,r.jsx)("div",{className:"p-4 flex flex-row gap-6 min-h-full w-full",children:(0,r.jsx)("div",{className:"flex w-full",children:(0,r.jsxs)(k.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,r.jsx)(k.Z,{xs:8,children:(0,r.jsxs)(C.Z,{spacing:2,className:"h-full",children:[(0,r.jsx)(O,{children:(0,r.jsx)(k.Z,{container:!0,spacing:2,children:[{label:"Revenue Won",value:"$7,811,851"},{label:"Close %",value:"37.7%"},{label:"AVG Days to Close",value:"121"},{label:"Opportunities Won",value:"526"}].map(e=>(0,r.jsx)(k.Z,{xs:3,children:(0,r.jsx)(o.Z,{className:"flex-1 h-full",children:(0,r.jsxs)(S.Z,{className:"justify-around",children:[(0,r.jsx)(T.ZP,{gutterBottom:!0,component:"div",children:e.label}),(0,r.jsx)(T.ZP,{children:e.value})]})})},e.label))})}),(0,r.jsx)(O,{className:"flex-1",children:(0,r.jsx)(o.Z,{className:"h-full",children:(0,r.jsxs)(S.Z,{className:"h-full",children:[(0,r.jsx)(T.ZP,{gutterBottom:!0,component:"div",children:"Revenue Won by Month"}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)(w.Chart,{padding:[10,20,50,40],autoFit:!0,data:[{month:"Jan",city:"Tokyo",temperature:7},{month:"Feb",city:"Tokyo",temperature:13},{month:"Mar",city:"Tokyo",temperature:16.5},{month:"Apr",city:"Tokyo",temperature:14.5},{month:"May",city:"Tokyo",temperature:10},{month:"Jun",city:"Tokyo",temperature:7.5},{month:"Jul",city:"Tokyo",temperature:9.2},{month:"Aug",city:"Tokyo",temperature:14.5},{month:"Sep",city:"Tokyo",temperature:9.3},{month:"Oct",city:"Tokyo",temperature:8.3},{month:"Nov",city:"Tokyo",temperature:8.9},{month:"Dec",city:"Tokyo",temperature:5.6}],children:(0,r.jsx)(w.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"month*temperature",color:"city"})})})]})})}),(0,r.jsx)(O,{className:"flex-1",children:(0,r.jsxs)(k.Z,{container:!0,spacing:2,className:"h-full",children:[(0,r.jsx)(k.Z,{xs:4,className:"h-full",children:(0,r.jsx)(o.Z,{className:"flex-1 h-full",children:(0,r.jsxs)(S.Z,{className:"h-full",children:[(0,r.jsx)(T.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,r.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,r.jsx)(w.Tooltip,{shared:!0})]})})]})})}),(0,r.jsx)(k.Z,{xs:4,className:"h-full",children:(0,r.jsx)(o.Z,{className:"flex-1 h-full",children:(0,r.jsxs)(S.Z,{className:"h-full",children:[(0,r.jsx)(T.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,r.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,r.jsx)(w.Tooltip,{shared:!0})]})})]})})}),(0,r.jsx)(k.Z,{xs:4,className:"h-full",children:(0,r.jsx)(o.Z,{className:"flex-1 h-full",children:(0,r.jsxs)(S.Z,{className:"h-full",children:[(0,r.jsx)(T.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,r.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,r.jsx)(w.Tooltip,{shared:!0})]})})]})})})]})})]})}),(0,r.jsx)(k.Z,{xs:4,children:(0,r.jsx)(b,{messages:t,onSubmit:e})})]})})})}},57931:function(e,t,l){"use strict";l.d(t,{ZP:function(){return c},Cg:function(){return o}});var r=l(9268),s=l(89081),a=l(78915),n=l(86006);let[o,i]=function(){let e=n.createContext(void 0);return[function(){let t=n.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:l,data:n,refresh:o}=(0,s.Z)(async()=>await (0,a.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,r.jsx)(i,{value:{dialogueList:n,queryDialogueList:l,refreshDialogList:o},children:t})}},66487:function(e,t,l){"use strict";l.d(t,{Z:function(){return i}});var r=l(71990),s=l(86006),a=e=>{let t=(0,s.useReducer)((e,t)=>({...e,...t}),{...e});return t},n=l(57931),o=l(52040),i=e=>{let{queryAgentURL:t,channel:l,queryBody:i,initHistory:c}=e,[u,h]=a({history:c||[]}),{refreshDialogList:d}=(0,n.Cg)();(0,s.useEffect)(()=>{c&&h({history:c})},[c]);let m=async(e,s)=>{if(!e)return;let a=[...u.history,{role:"human",context:e}],n=a.length;h({history:a});try{let c=new AbortController;await (0,r.L)("".concat(o.env.API_BASE_URL?o.env.API_BASE_URL:"").concat("/api"+t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...s,...i,user_input:e,channel:l}),signal:c.signal,async onopen(e){if(a.length<=1){d();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==r.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)c.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))c.abort(),h({history:[...a,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...a];e.data&&((null==t?void 0:t[n])?t[n].context="".concat(e.data):t.push({role:"view",context:e.data}),h({history:t}))}}})}catch(e){console.log("---e",e),h({history:[...a,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:m,history:u.history}}},78915:function(e,t,l){"use strict";l.d(t,{Tk:function(){return u},Kw:function(){return h},PR:function(){return d},Ej:function(){return m}});var r=l(21628),s=l(24214),a=l(52040);let n=s.Z.create({baseURL:a.env.API_BASE_URL});n.defaults.timeout=1e4,n.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var o=l(84835);let i={"content-type":"application/json"},c=e=>{if(!(0,o.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let l=t[e];"string"==typeof l&&(t[e]=l.trim())}return JSON.stringify(t)},u=(e,t)=>{if(t){let l=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");l&&(e+="?".concat(l))}return n.get("/api"+e,{headers:i}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},h=(e,t)=>{let l=c(t);return n.post("/api"+e,{body:l,headers:i}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let l=c(t);return n.post(e,{body:l,headers:i}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},m=(e,t)=>n.post(e,{body:t}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,757,797,577,214,86,316,259,751,662,481,253,769,744],function(){return e(e.s=82738)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/agents/page-290a52766c0633f9.js b/pilot/server/static/_next/static/chunks/app/agents/page-290a52766c0633f9.js deleted file mode 100644 index b1861ace4..000000000 --- a/pilot/server/static/_next/static/chunks/app/agents/page-290a52766c0633f9.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[718],{82738:function(e,t,l){Promise.resolve().then(l.bind(l,4191))},4191:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return E}});var s=l(9268),a=l(67830),r=l(54842),n=l(70900),o=l(62414),i=l(94244),c=l(33155),u=l(7354),d=l(35891),h=l(35086),m=l(53047),x=l(86006),p=l(19700),y=l(92391),f=l(70321),j=l(75403),v=l(99398),g=l(49064);let Z=y.z.object({query:y.z.string().min(1)});var w=e=>{let{messages:t,onSubmit:l,initialMessage:y,readOnly:w,paramsList:b,clearIntialMessage:N}=e,k=x.useRef(null),[T,P]=(0,x.useState)(!1),[C,S]=(0,x.useState)(),[O,R]=(0,x.useState)(),E=(0,p.cI)({resolver:(0,a.F)(Z),defaultValues:{}}),A=async e=>{let{query:t}=e;try{P(!0),E.reset(),await l(t,{select_param:null==b?void 0:b[O]})}catch(e){}finally{P(!1)}},W=async()=>{try{let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await A({query:y})}catch(e){console.log(e)}finally{null==N||N()}},M={overrides:{code:e=>{let{children:t}=e;return(0,s.jsx)(v.Z,{language:"javascript",style:g.Z,children:t})}}};return x.useEffect(()=>{k.current&&k.current.scrollTo(0,k.current.scrollHeight)},[null==t?void 0:t.length]),x.useEffect(()=>{y&&t.length<=0&&W()},[y]),x.useEffect(()=>{var e,t;b&&(null===(e=Object.keys(b||{}))||void 0===e?void 0:e.length)>0&&R(null===(t=Object.keys(b||{}))||void 0===t?void 0:t[0])},[b]),(0,s.jsx)("div",{className:"mx-auto flex h-full max-w-3xl flex-col gap-6 px-5 py-6 sm:gap-8 xl:max-w-5xl",children:(0,s.jsxs)(n.Z,{direction:"column",gap:2,sx:{display:"flex",flex:1,flexBasis:"100%",width:"100%",height:"100%",maxHeight:"100%",minHeight:"100%",mx:"auto"},children:[(0,s.jsxs)(n.Z,{ref:k,direction:"column",gap:2,sx:{boxSizing:"border-box",maxWidth:"100%",width:"100%",mx:"auto",flex:1,maxHeight:"100%",overflowY:"auto",p:2,border:"1px solid",borderColor:"var(--joy-palette-divider)"},children:[C&&(0,s.jsx)(o.Z,{size:"sm",variant:"outlined",color:"primary",className:"message-agent",sx:{mr:"auto",ml:"none",whiteSpace:"pre-wrap"},children:null==C?void 0:C.context}),t.filter(e=>["view","human"].includes(e.role)).map((e,t)=>{var l;return(0,s.jsx)(n.Z,{sx:{mr:"view"===e.role?"auto":"none",ml:"human"===e.role?"auto":"none"},children:(0,s.jsx)(o.Z,{size:"sm",variant:"outlined",className:"view"===e.role?"message-agent":"message-human",color:"view"===e.role?"primary":"neutral",sx:e=>({px:2,"ol, ul":{my:0,pl:2},ol:{listStyle:"numeric"},ul:{listStyle:"disc",mb:2},li:{my:1},a:{textDecoration:"underline"}}),children:(0,s.jsx)(j.Z,{options:M,children:null===(l=e.context)||void 0===l?void 0:l.replaceAll("\\n","\n")})})},t)}),T&&(0,s.jsx)(i.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!w&&(0,s.jsxs)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px"},onSubmit:e=>{e.stopPropagation(),E.handleSubmit(A)(e)},children:[Object.keys(b||{}).length>0&&(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(c.Z,{value:O,onChange:(e,t)=>{R(t)},className:"max-w-xs",children:Object.keys(b||{}).map(e=>(0,s.jsx)(u.Z,{value:e,children:null==b?void 0:b[e]},e))}),(0,s.jsx)(d.Z,{className:"cursor-pointer",title:O,placement:"top",variant:"outlined",children:(0,s.jsx)(f.Z,{})})]}),(0,s.jsx)(h.ZP,{sx:{width:"100%"},variant:"outlined",endDecorator:(0,s.jsx)(m.ZP,{type:"submit",disabled:T,children:(0,s.jsx)(r.Z,{})}),...E.register("query")})]})]})})},b=l(91440),N=l(50645),k=l(5737),T=l(45642),P=l(26974),C=l(22046),S=l(78417),O=l(66487);let R=(0,N.Z)(k.Z)(e=>{let{theme:t}=e;return{...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}});var E=()=>{let{handleChatSubmit:e,history:t}=(0,O.Z)({queryAgentURL:"/v1/chat/completions"}),l=[{year:"1951 年",sales:0},{year:"1952 年",sales:52},{year:"1956 年",sales:61},{year:"1957 年",sales:45},{year:"1958 年",sales:48},{year:"1959 年",sales:38},{year:"1960 年",sales:38},{year:"1962 年",sales:38}];return(0,s.jsx)("div",{className:"p-4 flex flex-row gap-6 min-h-full w-full",children:(0,s.jsx)("div",{className:"flex w-full",children:(0,s.jsxs)(T.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,s.jsx)(T.Z,{xs:8,children:(0,s.jsxs)(S.Z,{spacing:2,className:"h-full",children:[(0,s.jsx)(R,{children:(0,s.jsx)(T.Z,{container:!0,spacing:2,children:[{label:"Revenue Won",value:"$7,811,851"},{label:"Close %",value:"37.7%"},{label:"AVG Days to Close",value:"121"},{label:"Opportunities Won",value:"526"}].map(e=>(0,s.jsx)(T.Z,{xs:3,children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"justify-around",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:e.label}),(0,s.jsx)(C.ZP,{children:e.value})]})})},e.label))})}),(0,s.jsx)(R,{className:"flex-1",children:(0,s.jsx)(o.Z,{className:"h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Revenue Won by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsx)(b.Chart,{padding:[10,20,50,40],autoFit:!0,data:[{month:"Jan",city:"Tokyo",temperature:7},{month:"Feb",city:"Tokyo",temperature:13},{month:"Mar",city:"Tokyo",temperature:16.5},{month:"Apr",city:"Tokyo",temperature:14.5},{month:"May",city:"Tokyo",temperature:10},{month:"Jun",city:"Tokyo",temperature:7.5},{month:"Jul",city:"Tokyo",temperature:9.2},{month:"Aug",city:"Tokyo",temperature:14.5},{month:"Sep",city:"Tokyo",temperature:9.3},{month:"Oct",city:"Tokyo",temperature:8.3},{month:"Nov",city:"Tokyo",temperature:8.9},{month:"Dec",city:"Tokyo",temperature:5.6}],children:(0,s.jsx)(b.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"month*temperature",color:"city"})})})]})})}),(0,s.jsx)(R,{className:"flex-1",children:(0,s.jsxs)(T.Z,{container:!0,spacing:2,className:"h-full",children:[(0,s.jsx)(T.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(b.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(b.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,b.getTheme)().colors10[0]}}),(0,s.jsx)(b.Tooltip,{shared:!0})]})})]})})}),(0,s.jsx)(T.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(b.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(b.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,b.getTheme)().colors10[0]}}),(0,s.jsx)(b.Tooltip,{shared:!0})]})})]})})}),(0,s.jsx)(T.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(b.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(b.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,b.getTheme)().colors10[0]}}),(0,s.jsx)(b.Tooltip,{shared:!0})]})})]})})})]})})]})}),(0,s.jsx)(T.Z,{xs:4,children:(0,s.jsx)(w,{messages:t,onSubmit:e})})]})})})}},57931:function(e,t,l){"use strict";l.d(t,{ZP:function(){return c},Cg:function(){return o}});var s=l(9268),a=l(89081),r=l(78915),n=l(86006);let[o,i]=function(){let e=n.createContext(void 0);return[function(){let t=n.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:l,data:n,refresh:o}=(0,a.Z)(async()=>await (0,r.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,s.jsx)(i,{value:{dialogueList:n,queryDialogueList:l,refreshDialogList:o},children:t})}},66487:function(e,t,l){"use strict";l.d(t,{Z:function(){return o}});var s=l(71990),a=l(86006),r=e=>{let t=(0,a.useReducer)((e,t)=>({...e,...t}),{...e});return t},n=l(57931),o=e=>{let{queryAgentURL:t,channel:l,queryBody:o,initHistory:i}=e,[c,u]=r({history:i||[]}),{refreshDialogList:d}=(0,n.Cg)();(0,a.useEffect)(()=>{i&&u({history:i})},[i]);let h=async(e,a)=>{if(!e)return;let r=[...c.history,{role:"human",context:e}],n=r.length;u({history:r});try{let i=new AbortController;await (0,s.L)("".concat("http://${window.location.hostname}:${window.location.port}/api"+t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...a,...o,user_input:e,channel:l}),signal:i.signal,async onopen(e){if(r.length<=1){d();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==s.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)i.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))i.abort(),u({history:[...r,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...r];e.data&&((null==t?void 0:t[n])?t[n].context="".concat(e.data):t.push({role:"view",context:e.data}),u({history:t}))}}})}catch(e){console.log("---e",e),u({history:[...r,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:h,history:c.history}}},78915:function(e,t,l){"use strict";l.d(t,{T:function(){return c},K:function(){return u}});var s=l(21628),a=l(24214);let r=a.Z.create({baseURL:"http://${window.location.hostname}:${window.location.port}"});r.defaults.timeout=1e4,r.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var n=l(84835);let o={"content-type":"application/json"},i=e=>{if(!(0,n.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let l=t[e];"string"==typeof l&&(t[e]=l.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let l=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");l&&(e+="?".concat(l))}return r.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let l=i(t);return r.post("/api"+e,{body:l,headers:o}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})}}},function(e){e.O(0,[180,757,430,577,86,562,259,751,662,481,253,769,744],function(){return e(e.s=82738)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/agents/page-9ff5589fdf9f0807.js b/pilot/server/static/_next/static/chunks/app/agents/page-9ff5589fdf9f0807.js deleted file mode 100644 index c67c6f6b6..000000000 --- a/pilot/server/static/_next/static/chunks/app/agents/page-9ff5589fdf9f0807.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[718],{82738:function(e,t,l){Promise.resolve().then(l.bind(l,4191))},4191:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return E}});var s=l(9268),a=l(67830),r=l(54842),n=l(70900),o=l(62414),i=l(94244),c=l(33155),u=l(7354),h=l(35891),d=l(35086),m=l(53047),x=l(86006),p=l(19700),y=l(92391),f=l(70321),j=l(75403),v=l(99398),g=l(49064);let Z=y.z.object({query:y.z.string().min(1)});var b=e=>{let{messages:t,onSubmit:l,initialMessage:y,readOnly:b,paramsList:w,clearIntialMessage:N}=e,k=x.useRef(null),[T,P]=(0,x.useState)(!1),[C,S]=(0,x.useState)(),[O,R]=(0,x.useState)(),E=(0,p.cI)({resolver:(0,a.F)(Z),defaultValues:{}}),A=async e=>{let{query:t}=e;try{P(!0),E.reset(),await l(t,{select_param:null==w?void 0:w[O]})}catch(e){}finally{P(!1)}},W=async()=>{try{let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await A({query:y})}catch(e){console.log(e)}finally{null==N||N()}},M={overrides:{code:e=>{let{children:t}=e;return(0,s.jsx)(v.Z,{language:"javascript",style:g.Z,children:t})}}};return x.useEffect(()=>{k.current&&k.current.scrollTo(0,k.current.scrollHeight)},[null==t?void 0:t.length]),x.useEffect(()=>{y&&t.length<=0&&W()},[y]),x.useEffect(()=>{var e,t;w&&(null===(e=Object.keys(w||{}))||void 0===e?void 0:e.length)>0&&R(null===(t=Object.keys(w||{}))||void 0===t?void 0:t[0])},[w]),(0,s.jsx)("div",{className:"mx-auto flex h-full max-w-3xl flex-col gap-6 px-5 py-6 sm:gap-8 xl:max-w-5xl",children:(0,s.jsxs)(n.Z,{direction:"column",gap:2,sx:{display:"flex",flex:1,flexBasis:"100%",width:"100%",height:"100%",maxHeight:"100%",minHeight:"100%",mx:"auto"},children:[(0,s.jsxs)(n.Z,{ref:k,direction:"column",gap:2,sx:{boxSizing:"border-box",maxWidth:"100%",width:"100%",mx:"auto",flex:1,maxHeight:"100%",overflowY:"auto",p:2,border:"1px solid",borderColor:"var(--joy-palette-divider)"},children:[C&&(0,s.jsx)(o.Z,{size:"sm",variant:"outlined",color:"primary",className:"message-agent",sx:{mr:"auto",ml:"none",whiteSpace:"pre-wrap"},children:null==C?void 0:C.context}),t.filter(e=>["view","human"].includes(e.role)).map((e,t)=>{var l;return(0,s.jsx)(n.Z,{sx:{mr:"view"===e.role?"auto":"none",ml:"human"===e.role?"auto":"none"},children:(0,s.jsx)(o.Z,{size:"sm",variant:"outlined",className:"view"===e.role?"message-agent":"message-human",color:"view"===e.role?"primary":"neutral",sx:e=>({px:2,"ol, ul":{my:0,pl:2},ol:{listStyle:"numeric"},ul:{listStyle:"disc",mb:2},li:{my:1},a:{textDecoration:"underline"}}),children:(0,s.jsx)(j.Z,{options:M,children:null===(l=e.context)||void 0===l?void 0:l.replaceAll("\\n","\n")})})},t)}),T&&(0,s.jsx)(i.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!b&&(0,s.jsxs)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px"},onSubmit:e=>{e.stopPropagation(),E.handleSubmit(A)(e)},children:[Object.keys(w||{}).length>0&&(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(c.Z,{value:O,onChange:(e,t)=>{R(t)},className:"max-w-xs",children:Object.keys(w||{}).map(e=>(0,s.jsx)(u.Z,{value:e,children:null==w?void 0:w[e]},e))}),(0,s.jsx)(h.Z,{className:"cursor-pointer",title:O,placement:"top",variant:"outlined",children:(0,s.jsx)(f.Z,{})})]}),(0,s.jsx)(d.ZP,{sx:{width:"100%"},variant:"outlined",endDecorator:(0,s.jsx)(m.ZP,{type:"submit",disabled:T,children:(0,s.jsx)(r.Z,{})}),...E.register("query")})]})]})})},w=l(91440),N=l(50645),k=l(5737),T=l(45642),P=l(26974),C=l(22046),S=l(78417),O=l(66487);let R=(0,N.Z)(k.Z)(e=>{let{theme:t}=e;return{...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}});var E=()=>{let{handleChatSubmit:e,history:t}=(0,O.Z)({queryAgentURL:"/v1/chat/completions"}),l=[{year:"1951 年",sales:0},{year:"1952 年",sales:52},{year:"1956 年",sales:61},{year:"1957 年",sales:45},{year:"1958 年",sales:48},{year:"1959 年",sales:38},{year:"1960 年",sales:38},{year:"1962 年",sales:38}];return(0,s.jsx)("div",{className:"p-4 flex flex-row gap-6 min-h-full w-full",children:(0,s.jsx)("div",{className:"flex w-full",children:(0,s.jsxs)(T.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,s.jsx)(T.Z,{xs:8,children:(0,s.jsxs)(S.Z,{spacing:2,className:"h-full",children:[(0,s.jsx)(R,{children:(0,s.jsx)(T.Z,{container:!0,spacing:2,children:[{label:"Revenue Won",value:"$7,811,851"},{label:"Close %",value:"37.7%"},{label:"AVG Days to Close",value:"121"},{label:"Opportunities Won",value:"526"}].map(e=>(0,s.jsx)(T.Z,{xs:3,children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"justify-around",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:e.label}),(0,s.jsx)(C.ZP,{children:e.value})]})})},e.label))})}),(0,s.jsx)(R,{className:"flex-1",children:(0,s.jsx)(o.Z,{className:"h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Revenue Won by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsx)(w.Chart,{padding:[10,20,50,40],autoFit:!0,data:[{month:"Jan",city:"Tokyo",temperature:7},{month:"Feb",city:"Tokyo",temperature:13},{month:"Mar",city:"Tokyo",temperature:16.5},{month:"Apr",city:"Tokyo",temperature:14.5},{month:"May",city:"Tokyo",temperature:10},{month:"Jun",city:"Tokyo",temperature:7.5},{month:"Jul",city:"Tokyo",temperature:9.2},{month:"Aug",city:"Tokyo",temperature:14.5},{month:"Sep",city:"Tokyo",temperature:9.3},{month:"Oct",city:"Tokyo",temperature:8.3},{month:"Nov",city:"Tokyo",temperature:8.9},{month:"Dec",city:"Tokyo",temperature:5.6}],children:(0,s.jsx)(w.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"month*temperature",color:"city"})})})]})})}),(0,s.jsx)(R,{className:"flex-1",children:(0,s.jsxs)(T.Z,{container:!0,spacing:2,className:"h-full",children:[(0,s.jsx)(T.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})}),(0,s.jsx)(T.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})}),(0,s.jsx)(T.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})})]})})]})}),(0,s.jsx)(T.Z,{xs:4,children:(0,s.jsx)(b,{messages:t,onSubmit:e})})]})})})}},57931:function(e,t,l){"use strict";l.d(t,{ZP:function(){return c},Cg:function(){return o}});var s=l(9268),a=l(89081),r=l(78915),n=l(86006);let[o,i]=function(){let e=n.createContext(void 0);return[function(){let t=n.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:l,data:n,refresh:o}=(0,a.Z)(async()=>await (0,r.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,s.jsx)(i,{value:{dialogueList:n,queryDialogueList:l,refreshDialogList:o},children:t})}},66487:function(e,t,l){"use strict";l.d(t,{Z:function(){return o}});var s=l(71990),a=l(86006),r=e=>{let t=(0,a.useReducer)((e,t)=>({...e,...t}),{...e});return t},n=l(57931),o=e=>{let{queryAgentURL:t,channel:l,queryBody:o,initHistory:i}=e,[c,u]=r({history:i||[]}),{refreshDialogList:h}=(0,n.Cg)();(0,a.useEffect)(()=>{i&&u({history:i})},[i]);let d=async(e,a)=>{if(!e)return;let r=[...c.history,{role:"human",context:e}],n=r.length;u({history:r});try{let i=new AbortController;await (0,s.L)("".concat("http://localhost:5000/api"+t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...a,...o,user_input:e,channel:l}),signal:i.signal,async onopen(e){if(r.length<=1){h();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==s.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)i.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))i.abort(),u({history:[...r,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...r];e.data&&((null==t?void 0:t[n])?t[n].context="".concat(e.data):t.push({role:"view",context:e.data}),u({history:t}))}}})}catch(e){console.log("---e",e),u({history:[...r,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:d,history:c.history}}},78915:function(e,t,l){"use strict";l.d(t,{T:function(){return c},K:function(){return u}});var s=l(21628),a=l(24214);let r=a.Z.create({baseURL:"http://localhost:5000"});r.defaults.timeout=1e4,r.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var n=l(84835);let o={"content-type":"application/json"},i=e=>{if(!(0,n.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let l=t[e];"string"==typeof l&&(t[e]=l.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let l=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");l&&(e+="?".concat(l))}return r.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let l=i(t);return r.post("/api"+e,{body:l,headers:o}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})}}},function(e){e.O(0,[180,757,430,577,86,562,259,751,662,481,253,769,744],function(){return e(e.s=82738)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/agents/page-bf26b65bed55ade1.js b/pilot/server/static/_next/static/chunks/app/agents/page-bf26b65bed55ade1.js deleted file mode 100644 index 5d9294c04..000000000 --- a/pilot/server/static/_next/static/chunks/app/agents/page-bf26b65bed55ade1.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[718],{82738:function(e,t,l){Promise.resolve().then(l.bind(l,4191))},4191:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return E}});var s=l(9268),r=l(67830),a=l(54842),n=l(70900),o=l(62414),i=l(94244),c=l(33155),u=l(7354),h=l(35891),d=l(35086),m=l(53047),x=l(86006),p=l(19700),y=l(92391),f=l(70321),j=l(75403),v=l(99398),g=l(49064);let Z=y.z.object({query:y.z.string().min(1)});var b=e=>{let{messages:t,onSubmit:l,initialMessage:y,readOnly:b,paramsList:w,clearIntialMessage:N}=e,k=x.useRef(null),[T,P]=(0,x.useState)(!1),[C,S]=(0,x.useState)(),[O,R]=(0,x.useState)(),E=(0,p.cI)({resolver:(0,r.F)(Z),defaultValues:{}}),A=async e=>{let{query:t}=e;try{P(!0),E.reset(),await l(t,{select_param:null==w?void 0:w[O]})}catch(e){}finally{P(!1)}},W=async()=>{try{let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await A({query:y})}catch(e){console.log(e)}finally{null==N||N()}},M={overrides:{code:e=>{let{children:t}=e;return(0,s.jsx)(v.Z,{language:"javascript",style:g.Z,children:t})}}};return x.useEffect(()=>{k.current&&k.current.scrollTo(0,k.current.scrollHeight)},[null==t?void 0:t.length]),x.useEffect(()=>{y&&t.length<=0&&W()},[y]),x.useEffect(()=>{var e,t;w&&(null===(e=Object.keys(w||{}))||void 0===e?void 0:e.length)>0&&R(null===(t=Object.keys(w||{}))||void 0===t?void 0:t[0])},[w]),(0,s.jsx)("div",{className:"mx-auto flex h-full max-w-3xl flex-col gap-6 px-5 py-6 sm:gap-8 xl:max-w-5xl",children:(0,s.jsxs)(n.Z,{direction:"column",gap:2,sx:{display:"flex",flex:1,flexBasis:"100%",width:"100%",height:"100%",maxHeight:"100%",minHeight:"100%",mx:"auto"},children:[(0,s.jsxs)(n.Z,{ref:k,direction:"column",gap:2,sx:{boxSizing:"border-box",maxWidth:"100%",width:"100%",mx:"auto",flex:1,maxHeight:"100%",overflowY:"auto",p:2,border:"1px solid",borderColor:"var(--joy-palette-divider)"},children:[C&&(0,s.jsx)(o.Z,{size:"sm",variant:"outlined",color:"primary",className:"message-agent",sx:{mr:"auto",ml:"none",whiteSpace:"pre-wrap"},children:null==C?void 0:C.context}),t.filter(e=>["view","human"].includes(e.role)).map((e,t)=>{var l;return(0,s.jsx)(n.Z,{sx:{mr:"view"===e.role?"auto":"none",ml:"human"===e.role?"auto":"none"},children:(0,s.jsx)(o.Z,{size:"sm",variant:"outlined",className:"view"===e.role?"message-agent":"message-human",color:"view"===e.role?"primary":"neutral",sx:e=>({px:2,"ol, ul":{my:0,pl:2},ol:{listStyle:"numeric"},ul:{listStyle:"disc",mb:2},li:{my:1},a:{textDecoration:"underline"}}),children:(0,s.jsx)(j.Z,{options:M,children:null===(l=e.context)||void 0===l?void 0:l.replaceAll("\\n","\n")})})},t)}),T&&(0,s.jsx)(i.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!b&&(0,s.jsxs)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px"},onSubmit:e=>{e.stopPropagation(),E.handleSubmit(A)(e)},children:[Object.keys(w||{}).length>0&&(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(c.Z,{value:O,onChange:(e,t)=>{R(t)},className:"max-w-xs",children:Object.keys(w||{}).map(e=>(0,s.jsx)(u.Z,{value:e,children:null==w?void 0:w[e]},e))}),(0,s.jsx)(h.Z,{className:"cursor-pointer",title:O,placement:"top",variant:"outlined",children:(0,s.jsx)(f.Z,{})})]}),(0,s.jsx)(d.ZP,{sx:{width:"100%"},variant:"outlined",endDecorator:(0,s.jsx)(m.ZP,{type:"submit",disabled:T,children:(0,s.jsx)(a.Z,{})}),...E.register("query")})]})]})})},w=l(91440),N=l(50645),k=l(5737),T=l(45642),P=l(26974),C=l(22046),S=l(78417),O=l(66487);let R=(0,N.Z)(k.Z)(e=>{let{theme:t}=e;return{...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}});var E=()=>{let{handleChatSubmit:e,history:t}=(0,O.Z)({queryAgentURL:"/v1/chat/completions"}),l=[{year:"1951 年",sales:0},{year:"1952 年",sales:52},{year:"1956 年",sales:61},{year:"1957 年",sales:45},{year:"1958 年",sales:48},{year:"1959 年",sales:38},{year:"1960 年",sales:38},{year:"1962 年",sales:38}];return(0,s.jsx)("div",{className:"p-4 flex flex-row gap-6 min-h-full w-full",children:(0,s.jsx)("div",{className:"flex w-full",children:(0,s.jsxs)(T.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,s.jsx)(T.Z,{xs:8,children:(0,s.jsxs)(S.Z,{spacing:2,className:"h-full",children:[(0,s.jsx)(R,{children:(0,s.jsx)(T.Z,{container:!0,spacing:2,children:[{label:"Revenue Won",value:"$7,811,851"},{label:"Close %",value:"37.7%"},{label:"AVG Days to Close",value:"121"},{label:"Opportunities Won",value:"526"}].map(e=>(0,s.jsx)(T.Z,{xs:3,children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"justify-around",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:e.label}),(0,s.jsx)(C.ZP,{children:e.value})]})})},e.label))})}),(0,s.jsx)(R,{className:"flex-1",children:(0,s.jsx)(o.Z,{className:"h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Revenue Won by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsx)(w.Chart,{padding:[10,20,50,40],autoFit:!0,data:[{month:"Jan",city:"Tokyo",temperature:7},{month:"Feb",city:"Tokyo",temperature:13},{month:"Mar",city:"Tokyo",temperature:16.5},{month:"Apr",city:"Tokyo",temperature:14.5},{month:"May",city:"Tokyo",temperature:10},{month:"Jun",city:"Tokyo",temperature:7.5},{month:"Jul",city:"Tokyo",temperature:9.2},{month:"Aug",city:"Tokyo",temperature:14.5},{month:"Sep",city:"Tokyo",temperature:9.3},{month:"Oct",city:"Tokyo",temperature:8.3},{month:"Nov",city:"Tokyo",temperature:8.9},{month:"Dec",city:"Tokyo",temperature:5.6}],children:(0,s.jsx)(w.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"month*temperature",color:"city"})})})]})})}),(0,s.jsx)(R,{className:"flex-1",children:(0,s.jsxs)(T.Z,{container:!0,spacing:2,className:"h-full",children:[(0,s.jsx)(T.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})}),(0,s.jsx)(T.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})}),(0,s.jsx)(T.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})})]})})]})}),(0,s.jsx)(T.Z,{xs:4,children:(0,s.jsx)(b,{messages:t,onSubmit:e})})]})})})}},57931:function(e,t,l){"use strict";l.d(t,{ZP:function(){return c},Cg:function(){return o}});var s=l(9268),r=l(89081),a=l(78915),n=l(86006);let[o,i]=function(){let e=n.createContext(void 0);return[function(){let t=n.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:l,data:n,refresh:o}=(0,r.Z)(async()=>await (0,a.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,s.jsx)(i,{value:{dialogueList:n,queryDialogueList:l,refreshDialogList:o},children:t})}},66487:function(e,t,l){"use strict";l.d(t,{Z:function(){return o}});var s=l(71990),r=l(86006),a=e=>{let t=(0,r.useReducer)((e,t)=>({...e,...t}),{...e});return t},n=l(57931),o=e=>{let{queryAgentURL:t,channel:l,queryBody:o,initHistory:i}=e,[c,u]=a({history:i||[]}),{refreshDialogList:h}=(0,n.Cg)();(0,r.useEffect)(()=>{i&&u({history:i})},[i]);let d=async(e,r)=>{if(!e)return;let a=[...c.history,{role:"human",context:e}],n=a.length;u({history:a});try{let i=new AbortController;await (0,s.L)("".concat("http://120.26.193.159:5000/api"+t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...r,...o,user_input:e,channel:l}),signal:i.signal,async onopen(e){if(a.length<=1){h();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==s.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)i.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))i.abort(),u({history:[...a,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...a];e.data&&((null==t?void 0:t[n])?t[n].context="".concat(e.data):t.push({role:"view",context:e.data}),u({history:t}))}}})}catch(e){console.log("---e",e),u({history:[...a,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:d,history:c.history}}},78915:function(e,t,l){"use strict";l.d(t,{T:function(){return c},K:function(){return u}});var s=l(21628),r=l(24214);let a=r.Z.create({baseURL:"http://120.26.193.159:5000"});a.defaults.timeout=1e4,a.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var n=l(84835);let o={"content-type":"application/json"},i=e=>{if(!(0,n.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let l=t[e];"string"==typeof l&&(t[e]=l.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let l=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");l&&(e+="?".concat(l))}return a.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let l=i(t);return a.post("/api"+e,{body:l,headers:o}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})}}},function(e){e.O(0,[180,757,430,577,86,562,259,751,662,481,253,769,744],function(){return e(e.s=82738)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/chat/page-2070328aeac2da46.js b/pilot/server/static/_next/static/chunks/app/chat/page-2070328aeac2da46.js deleted file mode 100644 index 36d5577c3..000000000 --- a/pilot/server/static/_next/static/chunks/app/chat/page-2070328aeac2da46.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[929],{55749:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),o=r(9268),i=(0,n.default)([(0,o.jsx)("path",{d:"M19.89 10.75c.07.41.11.82.11 1.25 0 4.41-3.59 8-8 8s-8-3.59-8-8c0-.05.01-.1 0-.14 2.6-.98 4.69-2.99 5.74-5.55 3.38 4.14 7.97 3.73 8.99 3.61l-.89-1.93c-.13.01-4.62.38-7.18-3.86 1.01-.16 1.71-.15 2.59-.01 2.52-1.15 1.93-.89 2.76-1.26C14.78 2.3 13.43 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.43-.3-2.78-.84-4.01l-1.27 2.76zM8.08 5.03C7.45 6.92 6.13 8.5 4.42 9.47 5.05 7.58 6.37 6 8.08 5.03z"},"0"),(0,o.jsx)("circle",{cx:"15",cy:"13",r:"1.25"},"1"),(0,o.jsx)("circle",{cx:"9",cy:"13",r:"1.25"},"2"),(0,o.jsx)("path",{d:"m23 4.5-2.4-1.1L19.5 1l-1.1 2.4L16 4.5l2.4 1.1L19.5 8l1.1-2.4z"},"3")],"FaceRetouchingNaturalOutlined");t.Z=i},70781:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),o=r(9268),i=(0,n.default)((0,o.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3zm-2 10H6V7h12v12zm-9-6c-.83 0-1.5-.67-1.5-1.5S8.17 10 9 10s1.5.67 1.5 1.5S9.83 13 9 13zm7.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5zM8 15h8v2H8v-2z"}),"SmartToyOutlined");t.Z=i},90545:function(e,t,r){"use strict";r.d(t,{Z:function(){return v}});var a=r(40431),n=r(46750),o=r(86006),i=r(89791),s=r(4323),l=r(51579),c=r(86601),u=r(95887),d=r(9268);let h=["className","component"];var f=r(47327),m=r(98918);let p=function(e={}){let{themeId:t,defaultTheme:r,defaultClassName:f="MuiBox-root",generateClassName:m}=e,p=(0,s.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z),v=o.forwardRef(function(e,o){let s=(0,u.Z)(r),l=(0,c.Z)(e),{className:v,component:g="div"}=l,x=(0,n.Z)(l,h);return(0,d.jsx)(p,(0,a.Z)({as:g,ref:o,className:(0,i.Z)(v,m?m(f):f),theme:t&&s[t]||s},x))});return v}({defaultTheme:m.Z,defaultClassName:"MuiBox-root",generateClassName:f.Z.generate});var v=p},84380:function(e,t,r){Promise.resolve().then(r.bind(r,59498))},59498:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return R}});var a=r(9268),n=r(89081),o=r(78915),i=r(66487),s=r(67830),l=r(54842),c=r(70900),u=r(62414),d=r(90545),h=r(94244),f=r(33155),m=r(7354),p=r(35086),v=r(53047),g=r(86006),x=r(19700),y=r(92391),w=r(55749),j=r(70781),b=r(75403),Z=r(99398),S=r(49064),N=r(56008);let P=y.z.object({query:y.z.string().min(1)});var C=e=>{var t;let{messages:r,onSubmit:n,readOnly:o,paramsList:i,clearIntialMessage:y}=e,C=(0,N.useSearchParams)(),O=C.get("initMessage"),R=g.useRef(null),[k,z]=(0,g.useState)(!1),[_,E]=(0,g.useState)(),M=(0,x.cI)({resolver:(0,s.F)(P),defaultValues:{}}),L=async e=>{let{query:t}=e;try{console.log("submit"),z(!0),M.reset(),await n(t,{select_param:null==i?void 0:i[_]})}catch(e){}finally{z(!1)}},T=async()=>{try{let e=new URLSearchParams(window.location.search),t=e.get("initMessage");e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await L({query:t})}catch(e){console.log(e)}finally{null==y||y()}},F={overrides:{code:e=>{let{children:t}=e;return(0,a.jsx)(Z.Z,{language:"javascript",style:S.Z,children:t})}},wrapper:g.Fragment};return g.useEffect(()=>{R.current&&R.current.scrollTo(0,R.current.scrollHeight)},[null==r?void 0:r.length]),g.useEffect(()=>{O&&r.length<=0&&T()},[O,r.length]),g.useEffect(()=>{var e,t;i&&(null===(e=Object.keys(i||{}))||void 0===e?void 0:e.length)>0&&E(null===(t=Object.keys(i||{}))||void 0===t?void 0:t[0])},[i]),(0,a.jsx)("div",{className:"w-full h-full",children:(0,a.jsxs)(c.Z,{className:"w-full h-full bg-[#fefefe] dark:bg-[#212121]",sx:{table:{borderCollapse:"collapse",border:"1px solid #ccc",width:"100%"},"th, td":{border:"1px solid #ccc",padding:"10px",textAlign:"center"}},children:[(0,a.jsxs)(c.Z,{ref:R,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[null===(t=r.filter(e=>["view","human"].includes(e.role)))||void 0===t?void 0:t.map((e,t)=>{var r;return(0,a.jsx)(c.Z,{children:(0,a.jsx)(u.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:t=>({background:"view"===e.role?"var(--joy-palette-primary-softBg, var(--joy-palette-primary-100, #DDF1FF))":"unset",border:"unset",borderRadius:"unset",padding:"24px 0 26px 0",lineHeight:"24px"}),children:(0,a.jsxs)(d.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,a.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,a.jsx)(j.Z,{}):(0,a.jsx)(w.Z,{})}),(0,a.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:(0,a.jsx)(b.Z,{options:F,children:null===(r=e.context)||void 0===r?void 0:r.replaceAll("\\n","\n")})})]})})},t)}),k&&(0,a.jsx)(h.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!o&&(0,a.jsx)(d.Z,{className:"bg-[#fefefe] dark:bg-[#212121] before:bg-[#fefefe] before:dark:bg-[#212121]",sx:{position:"relative","&::before":{content:'" "',position:"absolute",top:"-18px",left:"0",right:"0",width:"100%",margin:"0 auto",height:"20px",filter:"blur(10px)",zIndex:2}},children:(0,a.jsxs)("form",{style:{maxWidth:"100%",width:"76%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px",paddingBottom:"58px",paddingTop:"20px"},onSubmit:e=>{e.stopPropagation(),M.handleSubmit(L)(e)},children:[Object.keys(i||{}).length>0&&(0,a.jsx)("div",{className:"flex items-center gap-3",children:(0,a.jsx)(f.Z,{value:_,onChange:(e,t)=>{E(t)},sx:{maxWidth:"100%"},children:Object.keys(i||{}).map(e=>(0,a.jsx)(m.Z,{value:e,children:e},e))})}),(0,a.jsx)(p.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,a.jsx)(v.ZP,{type:"submit",disabled:k,children:(0,a.jsx)(l.Z,{})}),...M.register("query")})]})})]})})},O=r(57931),R=()=>{let e=(0,N.useSearchParams)(),{refreshDialogList:t}=(0,O.Cg)(),r=e.get("id"),s=e.get("scene"),{data:l}=(0,n.Z)(async()=>await (0,o.T)("/v1/chat/dialogue/messages/history",{con_uid:r}),{ready:!!r,refreshDeps:[r]}),{data:c}=(0,n.Z)(async()=>await (0,o.K)("/v1/chat/mode/params/list?chat_mode=".concat(s)),{ready:!!s,refreshDeps:[r,s]}),{history:u,handleChatSubmit:d}=(0,i.Z)({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:r,chat_mode:s||"chat_normal"},initHistory:null==l?void 0:l.data});return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(C,{clearIntialMessage:async()=>{await t()},messages:u||[],onSubmit:d,paramsList:null==c?void 0:c.data})})}},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return c},Cg:function(){return s}});var a=r(9268),n=r(89081),o=r(78915),i=r(86006);let[s,l]=function(){let e=i.createContext(void 0);return[function(){let t=i.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:r,data:i,refresh:s}=(0,n.Z)(async()=>await (0,o.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,a.jsx)(l,{value:{dialogueList:i,queryDialogueList:r,refreshDialogList:s},children:t})}},66487:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var a=r(71990),n=r(86006),o=e=>{let t=(0,n.useReducer)((e,t)=>({...e,...t}),{...e});return t},i=r(57931),s=e=>{let{queryAgentURL:t,channel:r,queryBody:s,initHistory:l}=e,[c,u]=o({history:l||[]}),{refreshDialogList:d}=(0,i.Cg)();(0,n.useEffect)(()=>{l&&u({history:l})},[l]);let h=async(e,n)=>{if(!e)return;let o=[...c.history,{role:"human",context:e}],i=o.length;u({history:o});try{let l=new AbortController;await (0,a.L)("".concat("http://${window.location.hostname}:${window.location.port}/api"+t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...s,user_input:e,channel:r}),signal:l.signal,async onopen(e){if(o.length<=1){d();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==a.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)l.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))l.abort(),u({history:[...o,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...o];e.data&&((null==t?void 0:t[i])?t[i].context="".concat(e.data):t.push({role:"view",context:e.data}),u({history:t}))}}})}catch(e){console.log("---e",e),u({history:[...o,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:h,history:c.history}}},78915:function(e,t,r){"use strict";r.d(t,{T:function(){return c},K:function(){return u}});var a=r(21628),n=r(24214);let o=n.Z.create({baseURL:"http://${window.location.hostname}:${window.location.port}"});o.defaults.timeout=1e4,o.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var i=r(84835);let s={"content-type":"application/json"},l=e=>{if(!(0,i.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return o.get("/api"+e,{headers:s}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let r=l(t);return o.post("/api"+e,{body:r,headers:s}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})}},56008:function(e,t,r){e.exports=r(30794)}},function(e){e.O(0,[180,430,577,86,562,259,751,662,253,769,744],function(){return e(e.s=84380)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/chat/page-51dab834c773ef72.js b/pilot/server/static/_next/static/chunks/app/chat/page-51dab834c773ef72.js deleted file mode 100644 index 955819935..000000000 --- a/pilot/server/static/_next/static/chunks/app/chat/page-51dab834c773ef72.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[929],{55749:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),s=r(9268),i=(0,n.default)([(0,s.jsx)("path",{d:"M19.89 10.75c.07.41.11.82.11 1.25 0 4.41-3.59 8-8 8s-8-3.59-8-8c0-.05.01-.1 0-.14 2.6-.98 4.69-2.99 5.74-5.55 3.38 4.14 7.97 3.73 8.99 3.61l-.89-1.93c-.13.01-4.62.38-7.18-3.86 1.01-.16 1.71-.15 2.59-.01 2.52-1.15 1.93-.89 2.76-1.26C14.78 2.3 13.43 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.43-.3-2.78-.84-4.01l-1.27 2.76zM8.08 5.03C7.45 6.92 6.13 8.5 4.42 9.47 5.05 7.58 6.37 6 8.08 5.03z"},"0"),(0,s.jsx)("circle",{cx:"15",cy:"13",r:"1.25"},"1"),(0,s.jsx)("circle",{cx:"9",cy:"13",r:"1.25"},"2"),(0,s.jsx)("path",{d:"m23 4.5-2.4-1.1L19.5 1l-1.1 2.4L16 4.5l2.4 1.1L19.5 8l1.1-2.4z"},"3")],"FaceRetouchingNaturalOutlined");t.Z=i},70781:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),s=r(9268),i=(0,n.default)((0,s.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3zm-2 10H6V7h12v12zm-9-6c-.83 0-1.5-.67-1.5-1.5S8.17 10 9 10s1.5.67 1.5 1.5S9.83 13 9 13zm7.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5zM8 15h8v2H8v-2z"}),"SmartToyOutlined");t.Z=i},90545:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var a=r(40431),n=r(46750),s=r(86006),i=r(89791),o=r(4323),l=r(51579),c=r(86601),u=r(95887),d=r(9268);let h=["className","component"];var f=r(47327),v=r(98918);let m=function(e={}){let{themeId:t,defaultTheme:r,defaultClassName:f="MuiBox-root",generateClassName:v}=e,m=(0,o.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z),p=s.forwardRef(function(e,s){let o=(0,u.Z)(r),l=(0,c.Z)(e),{className:p,component:g="div"}=l,x=(0,n.Z)(l,h);return(0,d.jsx)(m,(0,a.Z)({as:g,ref:s,className:(0,i.Z)(p,v?v(f):f),theme:t&&o[t]||o},x))});return p}({defaultTheme:v.Z,defaultClassName:"MuiBox-root",generateClassName:f.Z.generate});var p=m},84380:function(e,t,r){Promise.resolve().then(r.bind(r,59498))},59498:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return R}});var a=r(9268),n=r(89081),s=r(78915),i=r(66487),o=r(67830),l=r(54842),c=r(70900),u=r(62414),d=r(90545),h=r(94244),f=r(33155),v=r(7354),m=r(35086),p=r(53047),g=r(86006),x=r(19700),y=r(92391),j=r(55749),w=r(70781),b=r(75403),Z=r(99398),S=r(49064),N=r(56008);let P=y.z.object({query:y.z.string().min(1)});var C=e=>{var t;let{messages:r,onSubmit:n,readOnly:s,paramsList:i,clearIntialMessage:y}=e,C=(0,N.useSearchParams)(),O=C.get("initMessage"),R=g.useRef(null),[k,z]=(0,g.useState)(!1),[_,E]=(0,g.useState)(),M=(0,x.cI)({resolver:(0,o.F)(P),defaultValues:{}}),L=async e=>{let{query:t}=e;try{console.log("submit"),z(!0),M.reset(),await n(t,{select_param:null==i?void 0:i[_]})}catch(e){}finally{z(!1)}},T=async()=>{try{let e=new URLSearchParams(window.location.search),t=e.get("initMessage");e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await L({query:t})}catch(e){console.log(e)}finally{null==y||y()}},F={overrides:{code:e=>{let{children:t}=e;return(0,a.jsx)(Z.Z,{language:"javascript",style:S.Z,children:t})}},wrapper:g.Fragment};return g.useEffect(()=>{R.current&&R.current.scrollTo(0,R.current.scrollHeight)},[null==r?void 0:r.length]),g.useEffect(()=>{O&&r.length<=0&&T()},[O,r.length]),g.useEffect(()=>{var e,t;i&&(null===(e=Object.keys(i||{}))||void 0===e?void 0:e.length)>0&&E(null===(t=Object.keys(i||{}))||void 0===t?void 0:t[0])},[i]),(0,a.jsx)("div",{className:"w-full h-full",children:(0,a.jsxs)(c.Z,{className:"w-full h-full bg-[#fefefe] dark:bg-[#212121]",sx:{table:{borderCollapse:"collapse",border:"1px solid #ccc",width:"100%"},"th, td":{border:"1px solid #ccc",padding:"10px",textAlign:"center"}},children:[(0,a.jsxs)(c.Z,{ref:R,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[null===(t=r.filter(e=>["view","human"].includes(e.role)))||void 0===t?void 0:t.map((e,t)=>{var r;return(0,a.jsx)(c.Z,{children:(0,a.jsx)(u.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:t=>({background:"view"===e.role?"var(--joy-palette-primary-softBg, var(--joy-palette-primary-100, #DDF1FF))":"unset",border:"unset",borderRadius:"unset",padding:"24px 0 26px 0",lineHeight:"24px"}),children:(0,a.jsxs)(d.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,a.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,a.jsx)(w.Z,{}):(0,a.jsx)(j.Z,{})}),(0,a.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:(0,a.jsx)(b.Z,{options:F,children:null===(r=e.context)||void 0===r?void 0:r.replaceAll("\\n","\n")})})]})})},t)}),k&&(0,a.jsx)(h.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!s&&(0,a.jsx)(d.Z,{className:"bg-[#fefefe] dark:bg-[#212121] before:bg-[#fefefe] before:dark:bg-[#212121]",sx:{position:"relative","&::before":{content:'" "',position:"absolute",top:"-18px",left:"0",right:"0",width:"100%",margin:"0 auto",height:"20px",filter:"blur(10px)",zIndex:2}},children:(0,a.jsxs)("form",{style:{maxWidth:"100%",width:"76%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px",paddingBottom:"58px",paddingTop:"20px"},onSubmit:e=>{e.stopPropagation(),M.handleSubmit(L)(e)},children:[Object.keys(i||{}).length>0&&(0,a.jsx)("div",{className:"flex items-center gap-3",children:(0,a.jsx)(f.Z,{value:_,onChange:(e,t)=>{E(t)},sx:{maxWidth:"100%"},children:Object.keys(i||{}).map(e=>(0,a.jsx)(v.Z,{value:e,children:e},e))})}),(0,a.jsx)(m.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,a.jsx)(p.ZP,{type:"submit",disabled:k,children:(0,a.jsx)(l.Z,{})}),...M.register("query")})]})})]})})},O=r(57931),R=()=>{let e=(0,N.useSearchParams)(),{refreshDialogList:t}=(0,O.Cg)(),r=e.get("id"),o=e.get("scene"),{data:l}=(0,n.Z)(async()=>await (0,s.T)("/v1/chat/dialogue/messages/history",{con_uid:r}),{ready:!!r,refreshDeps:[r]}),{data:c}=(0,n.Z)(async()=>await (0,s.K)("/v1/chat/mode/params/list?chat_mode=".concat(o)),{ready:!!o,refreshDeps:[r,o]}),{history:u,handleChatSubmit:d}=(0,i.Z)({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:r,chat_mode:o||"chat_normal"},initHistory:null==l?void 0:l.data});return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(C,{clearIntialMessage:async()=>{await t()},messages:u||[],onSubmit:d,paramsList:null==c?void 0:c.data})})}},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return c},Cg:function(){return o}});var a=r(9268),n=r(89081),s=r(78915),i=r(86006);let[o,l]=function(){let e=i.createContext(void 0);return[function(){let t=i.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:r,data:i,refresh:o}=(0,n.Z)(async()=>await (0,s.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,a.jsx)(l,{value:{dialogueList:i,queryDialogueList:r,refreshDialogList:o},children:t})}},66487:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var a=r(71990),n=r(86006),s=e=>{let t=(0,n.useReducer)((e,t)=>({...e,...t}),{...e});return t},i=r(57931),o=e=>{let{queryAgentURL:t,channel:r,queryBody:o,initHistory:l}=e,[c,u]=s({history:l||[]}),{refreshDialogList:d}=(0,i.Cg)();(0,n.useEffect)(()=>{l&&u({history:l})},[l]);let h=async(e,n)=>{if(!e)return;let s=[...c.history,{role:"human",context:e}],i=s.length;u({history:s});try{let l=new AbortController;await (0,a.L)("".concat("http://localhost:5000/api"+t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...o,user_input:e,channel:r}),signal:l.signal,async onopen(e){if(s.length<=1){d();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==a.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)l.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))l.abort(),u({history:[...s,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...s];e.data&&((null==t?void 0:t[i])?t[i].context="".concat(e.data):t.push({role:"view",context:e.data}),u({history:t}))}}})}catch(e){console.log("---e",e),u({history:[...s,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:h,history:c.history}}},78915:function(e,t,r){"use strict";r.d(t,{T:function(){return c},K:function(){return u}});var a=r(21628),n=r(24214);let s=n.Z.create({baseURL:"http://localhost:5000"});s.defaults.timeout=1e4,s.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var i=r(84835);let o={"content-type":"application/json"},l=e=>{if(!(0,i.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return s.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let r=l(t);return s.post("/api"+e,{body:r,headers:o}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})}},56008:function(e,t,r){e.exports=r(30794)}},function(e){e.O(0,[180,430,577,86,562,259,751,662,253,769,744],function(){return e(e.s=84380)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/chat/page-9f94c641247afd26.js b/pilot/server/static/_next/static/chunks/app/chat/page-9f94c641247afd26.js new file mode 100644 index 000000000..817433299 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/chat/page-9f94c641247afd26.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[929],{55749:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),o=r(9268),s=(0,n.default)([(0,o.jsx)("path",{d:"M19.89 10.75c.07.41.11.82.11 1.25 0 4.41-3.59 8-8 8s-8-3.59-8-8c0-.05.01-.1 0-.14 2.6-.98 4.69-2.99 5.74-5.55 3.38 4.14 7.97 3.73 8.99 3.61l-.89-1.93c-.13.01-4.62.38-7.18-3.86 1.01-.16 1.71-.15 2.59-.01 2.52-1.15 1.93-.89 2.76-1.26C14.78 2.3 13.43 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.43-.3-2.78-.84-4.01l-1.27 2.76zM8.08 5.03C7.45 6.92 6.13 8.5 4.42 9.47 5.05 7.58 6.37 6 8.08 5.03z"},"0"),(0,o.jsx)("circle",{cx:"15",cy:"13",r:"1.25"},"1"),(0,o.jsx)("circle",{cx:"9",cy:"13",r:"1.25"},"2"),(0,o.jsx)("path",{d:"m23 4.5-2.4-1.1L19.5 1l-1.1 2.4L16 4.5l2.4 1.1L19.5 8l1.1-2.4z"},"3")],"FaceRetouchingNaturalOutlined");t.Z=s},70781:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),o=r(9268),s=(0,n.default)((0,o.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3zm-2 10H6V7h12v12zm-9-6c-.83 0-1.5-.67-1.5-1.5S8.17 10 9 10s1.5.67 1.5 1.5S9.83 13 9 13zm7.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5zM8 15h8v2H8v-2z"}),"SmartToyOutlined");t.Z=s},90545:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var a=r(40431),n=r(46750),o=r(86006),s=r(89791),i=r(4323),l=r(51579),c=r(86601),u=r(95887),d=r(9268);let h=["className","component"];var f=r(47327),v=r(98918);let m=function(e={}){let{themeId:t,defaultTheme:r,defaultClassName:f="MuiBox-root",generateClassName:v}=e,m=(0,i.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z),p=o.forwardRef(function(e,o){let i=(0,u.Z)(r),l=(0,c.Z)(e),{className:p,component:g="div"}=l,x=(0,n.Z)(l,h);return(0,d.jsx)(m,(0,a.Z)({as:g,ref:o,className:(0,s.Z)(p,v?v(f):f),theme:t&&i[t]||i},x))});return p}({defaultTheme:v.Z,defaultClassName:"MuiBox-root",generateClassName:f.Z.generate});var p=m},84380:function(e,t,r){Promise.resolve().then(r.bind(r,59498))},59498:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return k}});var a=r(9268),n=r(89081),o=r(78915),s=r(66487),i=r(67830),l=r(54842),c=r(70900),u=r(62414),d=r(90545),h=r(94244),f=r(33155),v=r(7354),m=r(35086),p=r(53047),g=r(86006),x=r(19700),y=r(92391),j=r(55749),w=r(70781),b=r(75403),Z=r(99398),P=r(49064),S=r(56008);let N=y.z.object({query:y.z.string().min(1)});var R=e=>{var t;let{messages:r,onSubmit:n,readOnly:o,paramsList:s,clearIntialMessage:y}=e,R=(0,S.useSearchParams)(),_=R.get("initMessage"),k=g.useRef(null),[C,O]=(0,g.useState)(!1),[E,z]=(0,g.useState)(),L=(0,x.cI)({resolver:(0,i.F)(N),defaultValues:{}}),A=async e=>{let{query:t}=e;try{console.log("submit"),O(!0),L.reset(),await n(t,{select_param:null==s?void 0:s[E]})}catch(e){}finally{O(!1)}},M=async()=>{try{let e=new URLSearchParams(window.location.search),t=e.get("initMessage");e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await A({query:t})}catch(e){console.log(e)}finally{null==y||y()}},T={overrides:{code:e=>{let{children:t}=e;return(0,a.jsx)(Z.Z,{language:"javascript",style:P.Z,children:t})}},wrapper:g.Fragment};return g.useEffect(()=>{k.current&&k.current.scrollTo(0,k.current.scrollHeight)},[null==r?void 0:r.length]),g.useEffect(()=>{_&&r.length<=0&&M()},[_,r.length]),g.useEffect(()=>{var e,t;s&&(null===(e=Object.keys(s||{}))||void 0===e?void 0:e.length)>0&&z(null===(t=Object.keys(s||{}))||void 0===t?void 0:t[0])},[s]),(0,a.jsx)("div",{className:"w-full h-full",children:(0,a.jsxs)(c.Z,{className:"w-full h-full bg-[#fefefe] dark:bg-[#212121]",sx:{table:{borderCollapse:"collapse",border:"1px solid #ccc",width:"100%"},"th, td":{border:"1px solid #ccc",padding:"10px",textAlign:"center"}},children:[(0,a.jsxs)(c.Z,{ref:k,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[null===(t=r.filter(e=>["view","human"].includes(e.role)))||void 0===t?void 0:t.map((e,t)=>{var r;return(0,a.jsx)(c.Z,{children:(0,a.jsx)(u.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:t=>({background:"view"===e.role?"var(--joy-palette-primary-softBg, var(--joy-palette-primary-100, #DDF1FF))":"unset",border:"unset",borderRadius:"unset",padding:"24px 0 26px 0",lineHeight:"24px"}),children:(0,a.jsxs)(d.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,a.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,a.jsx)(w.Z,{}):(0,a.jsx)(j.Z,{})}),(0,a.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:(0,a.jsx)(b.Z,{options:T,children:null===(r=e.context)||void 0===r?void 0:r.replaceAll("\\n","\n")})})]})})},t)}),C&&(0,a.jsx)(h.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!o&&(0,a.jsx)(d.Z,{className:"bg-[#fefefe] dark:bg-[#212121] before:bg-[#fefefe] before:dark:bg-[#212121]",sx:{position:"relative","&::before":{content:'" "',position:"absolute",top:"-18px",left:"0",right:"0",width:"100%",margin:"0 auto",height:"20px",filter:"blur(10px)",zIndex:2}},children:(0,a.jsxs)("form",{style:{maxWidth:"100%",width:"76%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px",paddingBottom:"58px",paddingTop:"20px"},onSubmit:e=>{e.stopPropagation(),L.handleSubmit(A)(e)},children:[Object.keys(s||{}).length>0&&(0,a.jsx)("div",{className:"flex items-center gap-3",children:(0,a.jsx)(f.Z,{value:E,onChange:(e,t)=>{z(t)},sx:{maxWidth:"100%"},children:Object.keys(s||{}).map(e=>(0,a.jsx)(v.Z,{value:e,children:e},e))})}),(0,a.jsx)(m.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,a.jsx)(p.ZP,{type:"submit",disabled:C,children:(0,a.jsx)(l.Z,{})}),...L.register("query")})]})})]})})},_=r(57931),k=()=>{let e=(0,S.useSearchParams)(),{refreshDialogList:t}=(0,_.Cg)(),r=e.get("id"),i=e.get("scene"),{data:l}=(0,n.Z)(async()=>await (0,o.Tk)("/v1/chat/dialogue/messages/history",{con_uid:r}),{ready:!!r,refreshDeps:[r]}),{data:c}=(0,n.Z)(async()=>await (0,o.Kw)("/v1/chat/mode/params/list?chat_mode=".concat(i)),{ready:!!i,refreshDeps:[r,i]}),{history:u,handleChatSubmit:d}=(0,s.Z)({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:r,chat_mode:i||"chat_normal"},initHistory:null==l?void 0:l.data});return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(R,{clearIntialMessage:async()=>{await t()},messages:u||[],onSubmit:d,paramsList:null==c?void 0:c.data})})}},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return c},Cg:function(){return i}});var a=r(9268),n=r(89081),o=r(78915),s=r(86006);let[i,l]=function(){let e=s.createContext(void 0);return[function(){let t=s.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:r,data:s,refresh:i}=(0,n.Z)(async()=>await (0,o.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,a.jsx)(l,{value:{dialogueList:s,queryDialogueList:r,refreshDialogList:i},children:t})}},66487:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var a=r(71990),n=r(86006),o=e=>{let t=(0,n.useReducer)((e,t)=>({...e,...t}),{...e});return t},s=r(57931),i=r(52040),l=e=>{let{queryAgentURL:t,channel:r,queryBody:l,initHistory:c}=e,[u,d]=o({history:c||[]}),{refreshDialogList:h}=(0,s.Cg)();(0,n.useEffect)(()=>{c&&d({history:c})},[c]);let f=async(e,n)=>{if(!e)return;let o=[...u.history,{role:"human",context:e}],s=o.length;d({history:o});try{let c=new AbortController;await (0,a.L)("".concat(i.env.API_BASE_URL?i.env.API_BASE_URL:"").concat("/api"+t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...l,user_input:e,channel:r}),signal:c.signal,async onopen(e){if(o.length<=1){h();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==a.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)c.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))c.abort(),d({history:[...o,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...o];e.data&&((null==t?void 0:t[s])?t[s].context="".concat(e.data):t.push({role:"view",context:e.data}),d({history:t}))}}})}catch(e){console.log("---e",e),d({history:[...o,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:f,history:u.history}}},78915:function(e,t,r){"use strict";r.d(t,{Tk:function(){return u},Kw:function(){return d},PR:function(){return h},Ej:function(){return f}});var a=r(21628),n=r(24214),o=r(52040);let s=n.Z.create({baseURL:o.env.API_BASE_URL});s.defaults.timeout=1e4,s.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var i=r(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,i.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},u=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return s.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let r=c(t);return s.post("/api"+e,{body:r,headers:l}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},h=(e,t)=>{let r=c(t);return s.post(e,{body:r,headers:l}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},f=(e,t)=>s.post(e,{body:t}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},56008:function(e,t,r){e.exports=r(30794)}},function(e){e.O(0,[180,797,577,214,86,316,259,751,662,253,769,744],function(){return e(e.s=84380)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/chat/page-c8e22645d6c99448.js b/pilot/server/static/_next/static/chunks/app/chat/page-c8e22645d6c99448.js deleted file mode 100644 index 5461ee8d4..000000000 --- a/pilot/server/static/_next/static/chunks/app/chat/page-c8e22645d6c99448.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[929],{55749:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),s=r(9268),i=(0,n.default)([(0,s.jsx)("path",{d:"M19.89 10.75c.07.41.11.82.11 1.25 0 4.41-3.59 8-8 8s-8-3.59-8-8c0-.05.01-.1 0-.14 2.6-.98 4.69-2.99 5.74-5.55 3.38 4.14 7.97 3.73 8.99 3.61l-.89-1.93c-.13.01-4.62.38-7.18-3.86 1.01-.16 1.71-.15 2.59-.01 2.52-1.15 1.93-.89 2.76-1.26C14.78 2.3 13.43 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.43-.3-2.78-.84-4.01l-1.27 2.76zM8.08 5.03C7.45 6.92 6.13 8.5 4.42 9.47 5.05 7.58 6.37 6 8.08 5.03z"},"0"),(0,s.jsx)("circle",{cx:"15",cy:"13",r:"1.25"},"1"),(0,s.jsx)("circle",{cx:"9",cy:"13",r:"1.25"},"2"),(0,s.jsx)("path",{d:"m23 4.5-2.4-1.1L19.5 1l-1.1 2.4L16 4.5l2.4 1.1L19.5 8l1.1-2.4z"},"3")],"FaceRetouchingNaturalOutlined");t.Z=i},70781:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),s=r(9268),i=(0,n.default)((0,s.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3zm-2 10H6V7h12v12zm-9-6c-.83 0-1.5-.67-1.5-1.5S8.17 10 9 10s1.5.67 1.5 1.5S9.83 13 9 13zm7.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5zM8 15h8v2H8v-2z"}),"SmartToyOutlined");t.Z=i},90545:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var a=r(40431),n=r(46750),s=r(86006),i=r(89791),o=r(4323),l=r(51579),c=r(86601),u=r(95887),d=r(9268);let h=["className","component"];var f=r(47327),v=r(98918);let m=function(e={}){let{themeId:t,defaultTheme:r,defaultClassName:f="MuiBox-root",generateClassName:v}=e,m=(0,o.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z),p=s.forwardRef(function(e,s){let o=(0,u.Z)(r),l=(0,c.Z)(e),{className:p,component:g="div"}=l,x=(0,n.Z)(l,h);return(0,d.jsx)(m,(0,a.Z)({as:g,ref:s,className:(0,i.Z)(p,v?v(f):f),theme:t&&o[t]||o},x))});return p}({defaultTheme:v.Z,defaultClassName:"MuiBox-root",generateClassName:f.Z.generate});var p=m},84380:function(e,t,r){Promise.resolve().then(r.bind(r,59498))},59498:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return R}});var a=r(9268),n=r(89081),s=r(78915),i=r(66487),o=r(67830),l=r(54842),c=r(70900),u=r(62414),d=r(90545),h=r(94244),f=r(33155),v=r(7354),m=r(35086),p=r(53047),g=r(86006),x=r(19700),y=r(92391),j=r(55749),w=r(70781),b=r(75403),Z=r(99398),S=r(49064),N=r(56008);let P=y.z.object({query:y.z.string().min(1)});var C=e=>{var t;let{messages:r,onSubmit:n,readOnly:s,paramsList:i,clearIntialMessage:y}=e,C=(0,N.useSearchParams)(),O=C.get("initMessage"),R=g.useRef(null),[k,z]=(0,g.useState)(!1),[_,E]=(0,g.useState)(),M=(0,x.cI)({resolver:(0,o.F)(P),defaultValues:{}}),L=async e=>{let{query:t}=e;try{console.log("submit"),z(!0),M.reset(),await n(t,{select_param:null==i?void 0:i[_]})}catch(e){}finally{z(!1)}},T=async()=>{try{let e=new URLSearchParams(window.location.search),t=e.get("initMessage");e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await L({query:t})}catch(e){console.log(e)}finally{null==y||y()}},F={overrides:{code:e=>{let{children:t}=e;return(0,a.jsx)(Z.Z,{language:"javascript",style:S.Z,children:t})}},wrapper:g.Fragment};return g.useEffect(()=>{R.current&&R.current.scrollTo(0,R.current.scrollHeight)},[null==r?void 0:r.length]),g.useEffect(()=>{O&&r.length<=0&&T()},[O,r.length]),g.useEffect(()=>{var e,t;i&&(null===(e=Object.keys(i||{}))||void 0===e?void 0:e.length)>0&&E(null===(t=Object.keys(i||{}))||void 0===t?void 0:t[0])},[i]),(0,a.jsx)("div",{className:"w-full h-full",children:(0,a.jsxs)(c.Z,{className:"w-full h-full bg-[#fefefe] dark:bg-[#212121]",sx:{table:{borderCollapse:"collapse",border:"1px solid #ccc",width:"100%"},"th, td":{border:"1px solid #ccc",padding:"10px",textAlign:"center"}},children:[(0,a.jsxs)(c.Z,{ref:R,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[null===(t=r.filter(e=>["view","human"].includes(e.role)))||void 0===t?void 0:t.map((e,t)=>{var r;return(0,a.jsx)(c.Z,{children:(0,a.jsx)(u.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:t=>({background:"view"===e.role?"var(--joy-palette-primary-softBg, var(--joy-palette-primary-100, #DDF1FF))":"unset",border:"unset",borderRadius:"unset",padding:"24px 0 26px 0",lineHeight:"24px"}),children:(0,a.jsxs)(d.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,a.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,a.jsx)(w.Z,{}):(0,a.jsx)(j.Z,{})}),(0,a.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:(0,a.jsx)(b.Z,{options:F,children:null===(r=e.context)||void 0===r?void 0:r.replaceAll("\\n","\n")})})]})})},t)}),k&&(0,a.jsx)(h.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!s&&(0,a.jsx)(d.Z,{className:"bg-[#fefefe] dark:bg-[#212121] before:bg-[#fefefe] before:dark:bg-[#212121]",sx:{position:"relative","&::before":{content:'" "',position:"absolute",top:"-18px",left:"0",right:"0",width:"100%",margin:"0 auto",height:"20px",filter:"blur(10px)",zIndex:2}},children:(0,a.jsxs)("form",{style:{maxWidth:"100%",width:"76%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px",paddingBottom:"58px",paddingTop:"20px"},onSubmit:e=>{e.stopPropagation(),M.handleSubmit(L)(e)},children:[Object.keys(i||{}).length>0&&(0,a.jsx)("div",{className:"flex items-center gap-3",children:(0,a.jsx)(f.Z,{value:_,onChange:(e,t)=>{E(t)},sx:{maxWidth:"100%"},children:Object.keys(i||{}).map(e=>(0,a.jsx)(v.Z,{value:e,children:e},e))})}),(0,a.jsx)(m.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,a.jsx)(p.ZP,{type:"submit",disabled:k,children:(0,a.jsx)(l.Z,{})}),...M.register("query")})]})})]})})},O=r(57931),R=()=>{let e=(0,N.useSearchParams)(),{refreshDialogList:t}=(0,O.Cg)(),r=e.get("id"),o=e.get("scene"),{data:l}=(0,n.Z)(async()=>await (0,s.T)("/v1/chat/dialogue/messages/history",{con_uid:r}),{ready:!!r,refreshDeps:[r]}),{data:c}=(0,n.Z)(async()=>await (0,s.K)("/v1/chat/mode/params/list?chat_mode=".concat(o)),{ready:!!o,refreshDeps:[r,o]}),{history:u,handleChatSubmit:d}=(0,i.Z)({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:r,chat_mode:o||"chat_normal"},initHistory:null==l?void 0:l.data});return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(C,{clearIntialMessage:async()=>{await t()},messages:u||[],onSubmit:d,paramsList:null==c?void 0:c.data})})}},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return c},Cg:function(){return o}});var a=r(9268),n=r(89081),s=r(78915),i=r(86006);let[o,l]=function(){let e=i.createContext(void 0);return[function(){let t=i.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:r,data:i,refresh:o}=(0,n.Z)(async()=>await (0,s.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,a.jsx)(l,{value:{dialogueList:i,queryDialogueList:r,refreshDialogList:o},children:t})}},66487:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var a=r(71990),n=r(86006),s=e=>{let t=(0,n.useReducer)((e,t)=>({...e,...t}),{...e});return t},i=r(57931),o=e=>{let{queryAgentURL:t,channel:r,queryBody:o,initHistory:l}=e,[c,u]=s({history:l||[]}),{refreshDialogList:d}=(0,i.Cg)();(0,n.useEffect)(()=>{l&&u({history:l})},[l]);let h=async(e,n)=>{if(!e)return;let s=[...c.history,{role:"human",context:e}],i=s.length;u({history:s});try{let l=new AbortController;await (0,a.L)("".concat("http://120.26.193.159:5000/api"+t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...o,user_input:e,channel:r}),signal:l.signal,async onopen(e){if(s.length<=1){d();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==a.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)l.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))l.abort(),u({history:[...s,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...s];e.data&&((null==t?void 0:t[i])?t[i].context="".concat(e.data):t.push({role:"view",context:e.data}),u({history:t}))}}})}catch(e){console.log("---e",e),u({history:[...s,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:h,history:c.history}}},78915:function(e,t,r){"use strict";r.d(t,{T:function(){return c},K:function(){return u}});var a=r(21628),n=r(24214);let s=n.Z.create({baseURL:"http://120.26.193.159:5000"});s.defaults.timeout=1e4,s.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var i=r(84835);let o={"content-type":"application/json"},l=e=>{if(!(0,i.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return s.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let r=l(t);return s.post("/api"+e,{body:r,headers:o}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})}},56008:function(e,t,r){e.exports=r(30794)}},function(e){e.O(0,[180,430,577,86,562,259,751,662,253,769,744],function(){return e(e.s=84380)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/chat/page-d3d20e749b98a936.js b/pilot/server/static/_next/static/chunks/app/chat/page-d3d20e749b98a936.js deleted file mode 100644 index 8366a344b..000000000 --- a/pilot/server/static/_next/static/chunks/app/chat/page-d3d20e749b98a936.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[929],{55749:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),s=r(9268),i=(0,n.default)([(0,s.jsx)("path",{d:"M19.89 10.75c.07.41.11.82.11 1.25 0 4.41-3.59 8-8 8s-8-3.59-8-8c0-.05.01-.1 0-.14 2.6-.98 4.69-2.99 5.74-5.55 3.38 4.14 7.97 3.73 8.99 3.61l-.89-1.93c-.13.01-4.62.38-7.18-3.86 1.01-.16 1.71-.15 2.59-.01 2.52-1.15 1.93-.89 2.76-1.26C14.78 2.3 13.43 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.43-.3-2.78-.84-4.01l-1.27 2.76zM8.08 5.03C7.45 6.92 6.13 8.5 4.42 9.47 5.05 7.58 6.37 6 8.08 5.03z"},"0"),(0,s.jsx)("circle",{cx:"15",cy:"13",r:"1.25"},"1"),(0,s.jsx)("circle",{cx:"9",cy:"13",r:"1.25"},"2"),(0,s.jsx)("path",{d:"m23 4.5-2.4-1.1L19.5 1l-1.1 2.4L16 4.5l2.4 1.1L19.5 8l1.1-2.4z"},"3")],"FaceRetouchingNaturalOutlined");t.Z=i},70781:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),s=r(9268),i=(0,n.default)((0,s.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3zm-2 10H6V7h12v12zm-9-6c-.83 0-1.5-.67-1.5-1.5S8.17 10 9 10s1.5.67 1.5 1.5S9.83 13 9 13zm7.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5zM8 15h8v2H8v-2z"}),"SmartToyOutlined");t.Z=i},90545:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var a=r(40431),n=r(46750),s=r(86006),i=r(89791),o=r(4323),l=r(51579),c=r(86601),u=r(95887),d=r(9268);let h=["className","component"];var f=r(47327),v=r(98918);let m=function(e={}){let{themeId:t,defaultTheme:r,defaultClassName:f="MuiBox-root",generateClassName:v}=e,m=(0,o.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z),g=s.forwardRef(function(e,s){let o=(0,u.Z)(r),l=(0,c.Z)(e),{className:g,component:p="div"}=l,x=(0,n.Z)(l,h);return(0,d.jsx)(m,(0,a.Z)({as:p,ref:s,className:(0,i.Z)(g,v?v(f):f),theme:t&&o[t]||o},x))});return g}({defaultTheme:v.Z,defaultClassName:"MuiBox-root",generateClassName:f.Z.generate});var g=m},84380:function(e,t,r){Promise.resolve().then(r.bind(r,59498))},59498:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return O}});var a=r(9268),n=r(89081),s=r(78915),i=r(66487),o=r(67830),l=r(54842),c=r(70900),u=r(62414),d=r(90545),h=r(94244),f=r(33155),v=r(7354),m=r(35086),g=r(53047),p=r(86006),x=r(19700),y=r(92391),j=r(55749),w=r(70781),b=r(75403),Z=r(99398),S=r(49064),P=r(56008);let N=y.z.object({query:y.z.string().min(1)});var R=e=>{var t;let{messages:r,onSubmit:n,readOnly:s,paramsList:i,clearIntialMessage:y}=e,R=(0,P.useSearchParams)(),C=R.get("initMessage"),O=p.useRef(null),[_,k]=(0,p.useState)(!1),[E,z]=(0,p.useState)(),L=(0,x.cI)({resolver:(0,o.F)(N),defaultValues:{}}),M=async e=>{let{query:t}=e;try{console.log("submit"),k(!0),L.reset(),await n(t,{select_param:null==i?void 0:i[E]})}catch(e){}finally{k(!1)}},T=async()=>{try{let e=new URLSearchParams(window.location.search),t=e.get("initMessage");e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await M({query:t})}catch(e){console.log(e)}finally{null==y||y()}},A={overrides:{code:e=>{let{children:t}=e;return(0,a.jsx)(Z.Z,{language:"javascript",style:S.Z,children:t})}},wrapper:p.Fragment};return p.useEffect(()=>{O.current&&O.current.scrollTo(0,O.current.scrollHeight)},[null==r?void 0:r.length]),p.useEffect(()=>{C&&r.length<=0&&T()},[C,r.length]),p.useEffect(()=>{var e,t;i&&(null===(e=Object.keys(i||{}))||void 0===e?void 0:e.length)>0&&z(null===(t=Object.keys(i||{}))||void 0===t?void 0:t[0])},[i]),(0,a.jsx)("div",{className:"w-full h-full",children:(0,a.jsxs)(c.Z,{className:"w-full h-full bg-[#fefefe] dark:bg-[#212121]",sx:{table:{borderCollapse:"collapse",border:"1px solid #ccc",width:"100%"},"th, td":{border:"1px solid #ccc",padding:"10px",textAlign:"center"}},children:[(0,a.jsxs)(c.Z,{ref:O,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[null===(t=r.filter(e=>["view","human"].includes(e.role)))||void 0===t?void 0:t.map((e,t)=>{var r;return(0,a.jsx)(c.Z,{children:(0,a.jsx)(u.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:t=>({background:"view"===e.role?"var(--joy-palette-primary-softBg, var(--joy-palette-primary-100, #DDF1FF))":"unset",border:"unset",borderRadius:"unset",padding:"24px 0 26px 0",lineHeight:"24px"}),children:(0,a.jsxs)(d.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,a.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,a.jsx)(w.Z,{}):(0,a.jsx)(j.Z,{})}),(0,a.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:(0,a.jsx)(b.Z,{options:A,children:null===(r=e.context)||void 0===r?void 0:r.replaceAll("\\n","\n")})})]})})},t)}),_&&(0,a.jsx)(h.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!s&&(0,a.jsx)(d.Z,{className:"bg-[#fefefe] dark:bg-[#212121] before:bg-[#fefefe] before:dark:bg-[#212121]",sx:{position:"relative","&::before":{content:'" "',position:"absolute",top:"-18px",left:"0",right:"0",width:"100%",margin:"0 auto",height:"20px",filter:"blur(10px)",zIndex:2}},children:(0,a.jsxs)("form",{style:{maxWidth:"100%",width:"76%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px",paddingBottom:"58px",paddingTop:"20px"},onSubmit:e=>{e.stopPropagation(),L.handleSubmit(M)(e)},children:[Object.keys(i||{}).length>0&&(0,a.jsx)("div",{className:"flex items-center gap-3",children:(0,a.jsx)(f.Z,{value:E,onChange:(e,t)=>{z(t)},sx:{maxWidth:"100%"},children:Object.keys(i||{}).map(e=>(0,a.jsx)(v.Z,{value:e,children:e},e))})}),(0,a.jsx)(m.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,a.jsx)(g.ZP,{type:"submit",disabled:_,children:(0,a.jsx)(l.Z,{})}),...L.register("query")})]})})]})})},C=r(57931),O=()=>{let e=(0,P.useSearchParams)(),{refreshDialogList:t}=(0,C.Cg)(),r=e.get("id"),o=e.get("scene"),{data:l}=(0,n.Z)(async()=>await (0,s.T)("/v1/chat/dialogue/messages/history",{con_uid:r}),{ready:!!r,refreshDeps:[r]}),{data:c}=(0,n.Z)(async()=>await (0,s.K)("/v1/chat/mode/params/list?chat_mode=".concat(o)),{ready:!!o,refreshDeps:[r,o]}),{history:u,handleChatSubmit:d}=(0,i.Z)({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:r,chat_mode:o||"chat_normal"},initHistory:null==l?void 0:l.data});return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(R,{clearIntialMessage:async()=>{await t()},messages:u||[],onSubmit:d,paramsList:null==c?void 0:c.data})})}},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return c},Cg:function(){return o}});var a=r(9268),n=r(89081),s=r(78915),i=r(86006);let[o,l]=function(){let e=i.createContext(void 0);return[function(){let t=i.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:r,data:i,refresh:o}=(0,n.Z)(async()=>await (0,s.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,a.jsx)(l,{value:{dialogueList:i,queryDialogueList:r,refreshDialogList:o},children:t})}},66487:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var a=r(71990),n=r(86006),s=e=>{let t=(0,n.useReducer)((e,t)=>({...e,...t}),{...e});return t},i=r(57931),o=r(52040),l=e=>{let{queryAgentURL:t,channel:r,queryBody:l,initHistory:c}=e,[u,d]=s({history:c||[]}),{refreshDialogList:h}=(0,i.Cg)();(0,n.useEffect)(()=>{c&&d({history:c})},[c]);let f=async(e,n)=>{if(!e)return;let s=[...u.history,{role:"human",context:e}],i=s.length;d({history:s});try{let c=new AbortController;await (0,a.L)("".concat(o.env.API_BASE_URL+"/api"+t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...l,user_input:e,channel:r}),signal:c.signal,async onopen(e){if(s.length<=1){h();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==a.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)c.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))c.abort(),d({history:[...s,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...s];e.data&&((null==t?void 0:t[i])?t[i].context="".concat(e.data):t.push({role:"view",context:e.data}),d({history:t}))}}})}catch(e){console.log("---e",e),d({history:[...s,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:f,history:u.history}}},78915:function(e,t,r){"use strict";r.d(t,{T:function(){return u},K:function(){return d}});var a=r(21628),n=r(24214),s=r(52040);let i=n.Z.create({baseURL:s.env.API_BASE_URL});i.defaults.timeout=1e4,i.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var o=r(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,o.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},u=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return i.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let r=c(t);return i.post("/api"+e,{body:r,headers:l}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})}},56008:function(e,t,r){e.exports=r(30794)}},function(e){e.O(0,[180,797,577,86,562,259,751,662,253,769,744],function(){return e(e.s=84380)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-d24299cdff6d507c.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-d24299cdff6d507c.js deleted file mode 100644 index 41f3d5f32..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-d24299cdff6d507c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[538],{55254:function(e,t,n){Promise.resolve().then(n.bind(n,26257))},26257:function(e,t,n){"use strict";n.r(t);var a=n(9268),i=n(56008),s=n(86006),r=n(78635),c=n(70900),o=n(44334),d=n(311),l=n(22046),h=n(83192),u=n(23910),g=n(1031);t.default=()=>{let e=(0,i.useRouter)(),{mode:t}=(0,r.tv)(),n=(0,i.useSearchParams)().get("spacename"),x=(0,i.useSearchParams)().get("documentid"),[j,p]=(0,s.useState)(0),[m,f]=(0,s.useState)(0),[S,y]=(0,s.useState)([]);return(0,s.useEffect)(()=>{(async function(){let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(n,"/chunk/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({document_id:x,page:1,page_size:20})}),t=await e.json();t.success&&(y(t.data.data),p(t.data.total),f(t.data.page))})()},[]),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:(0,a.jsxs)(o.Z,{"aria-label":"breadcrumbs",children:[(0,a.jsx)(d.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,a.jsx)(d.Z,{onClick:()=>{e.push("/datastores/documents?name=".concat(n))},underline:"hover",color:"neutral",fontSize:"inherit",children:"Documents"},"Knowledge Space"),(0,a.jsx)(l.ZP,{fontSize:"inherit",children:"Chunks"})]})}),(0,a.jsx)("div",{className:"p-4",children:S.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(h.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===t?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Name"}),(0,a.jsx)("th",{children:"Content"}),(0,a.jsx)("th",{children:"Meta Data"})]})}),(0,a.jsx)("tbody",{children:S.map(e=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:e.doc_name}),(0,a.jsx)("td",{children:(0,a.jsx)(u.Z,{content:e.content,trigger:"hover",children:e.content.length>10?"".concat(e.content.slice(0,10),"..."):e.content})}),(0,a.jsx)("td",{children:(0,a.jsx)(u.Z,{content:JSON.stringify(e.meta_info||"{}",null,2),trigger:"hover",children:e.meta_info.length>10?"".concat(e.meta_info.slice(0,10),"..."):e.meta_info})})]},e.id))})]}),(0,a.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,a.jsx)(g.Z,{defaultPageSize:20,showSizeChanger:!1,current:m,total:j,onChange:async e=>{let t=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(n,"/chunk/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({document_id:x,page:e,page_size:20})}),a=await t.json();a.success&&(y(a.data.data),p(a.data.total),f(a.data.page))},hideOnSinglePage:!0})})]}):(0,a.jsx)(a.Fragment,{})})]})}}},function(e){e.O(0,[430,693,118,440,55,253,769,744],function(){return e(e.s=55254)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-e0ca49fea4a412bb.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-e0ca49fea4a412bb.js deleted file mode 100644 index 5a79ce8f2..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-e0ca49fea4a412bb.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[538],{55254:function(e,t,n){Promise.resolve().then(n.bind(n,26257))},26257:function(e,t,n){"use strict";n.r(t);var a=n(9268),o=n(56008),i=n(86006),s=n(78635),c=n(70900),r=n(44334),d=n(311),l=n(22046),h=n(83192),u=n(23910),g=n(1031);t.default=()=>{let e=(0,o.useRouter)(),{mode:t}=(0,s.tv)(),n=(0,o.useSearchParams)().get("spacename"),p=(0,o.useSearchParams)().get("documentid"),[x,m]=(0,i.useState)(0),[j,f]=(0,i.useState)(0),[w,S]=(0,i.useState)([]);return(0,i.useEffect)(()=>{(async function(){let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(n,"/chunk/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({document_id:p,page:1,page_size:20})}),t=await e.json();t.success&&(S(t.data.data),m(t.data.total),f(t.data.page))})()},[]),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:(0,a.jsxs)(r.Z,{"aria-label":"breadcrumbs",children:[(0,a.jsx)(d.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,a.jsx)(d.Z,{onClick:()=>{e.push("/datastores/documents?name=".concat(n))},underline:"hover",color:"neutral",fontSize:"inherit",children:"Documents"},"Knowledge Space"),(0,a.jsx)(l.ZP,{fontSize:"inherit",children:"Chunks"})]})}),(0,a.jsx)("div",{className:"p-4",children:w.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(h.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===t?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Name"}),(0,a.jsx)("th",{children:"Content"}),(0,a.jsx)("th",{children:"Meta Data"})]})}),(0,a.jsx)("tbody",{children:w.map(e=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:e.doc_name}),(0,a.jsx)("td",{children:(0,a.jsx)(u.Z,{content:e.content,trigger:"hover",children:e.content.length>10?"".concat(e.content.slice(0,10),"..."):e.content})}),(0,a.jsx)("td",{children:(0,a.jsx)(u.Z,{content:JSON.stringify(e.meta_info||"{}",null,2),trigger:"hover",children:e.meta_info.length>10?"".concat(e.meta_info.slice(0,10),"..."):e.meta_info})})]},e.id))})]}),(0,a.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,a.jsx)(g.Z,{defaultPageSize:20,showSizeChanger:!1,current:j,total:x,onChange:async e=>{let t=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(n,"/chunk/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({document_id:p,page:e,page_size:20})}),a=await t.json();a.success&&(S(a.data.data),m(a.data.total),f(a.data.page))},hideOnSinglePage:!0})})]}):(0,a.jsx)(a.Fragment,{})})]})}}},function(e){e.O(0,[430,693,118,440,55,253,769,744],function(){return e(e.s=55254)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-ff44ac50657039fc.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-ff44ac50657039fc.js deleted file mode 100644 index 5bf5fcca4..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-ff44ac50657039fc.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[538],{55254:function(e,t,n){Promise.resolve().then(n.bind(n,26257))},26257:function(e,t,n){"use strict";n.r(t);var a=n(9268),i=n(56008),s=n(86006),o=n(78635),c=n(70900),r=n(44334),l=n(311),d=n(22046),h=n(83192),u=n(23910),g=n(1031);t.default=()=>{let e=(0,i.useRouter)(),{mode:t}=(0,o.tv)(),n=(0,i.useSearchParams)().get("spacename"),x=(0,i.useSearchParams)().get("documentid"),[j,p]=(0,s.useState)(0),[m,f]=(0,s.useState)(0),[S,y]=(0,s.useState)([]);return(0,s.useEffect)(()=>{(async function(){let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(n,"/chunk/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({document_id:x,page:1,page_size:20})}),t=await e.json();t.success&&(y(t.data.data),p(t.data.total),f(t.data.page))})()},[]),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:(0,a.jsxs)(r.Z,{"aria-label":"breadcrumbs",children:[(0,a.jsx)(l.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,a.jsx)(l.Z,{onClick:()=>{e.push("/datastores/documents?name=".concat(n))},underline:"hover",color:"neutral",fontSize:"inherit",children:"Documents"},"Knowledge Space"),(0,a.jsx)(d.ZP,{fontSize:"inherit",children:"Chunks"})]})}),(0,a.jsx)("div",{className:"p-4",children:S.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(h.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===t?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Name"}),(0,a.jsx)("th",{children:"Content"}),(0,a.jsx)("th",{children:"Meta Data"})]})}),(0,a.jsx)("tbody",{children:S.map(e=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:e.doc_name}),(0,a.jsx)("td",{children:(0,a.jsx)(u.Z,{content:e.content,trigger:"hover",children:e.content.length>10?"".concat(e.content.slice(0,10),"..."):e.content})}),(0,a.jsx)("td",{children:(0,a.jsx)(u.Z,{content:JSON.stringify(e.meta_info||"{}",null,2),trigger:"hover",children:e.meta_info.length>10?"".concat(e.meta_info.slice(0,10),"..."):e.meta_info})})]},e.id))})]}),(0,a.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,a.jsx)(g.Z,{defaultPageSize:20,showSizeChanger:!1,current:m,total:j,onChange:async e=>{let t=await fetch("".concat("http://localhost:5000","/knowledge/").concat(n,"/chunk/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({document_id:x,page:e,page_size:20})}),a=await t.json();a.success&&(y(a.data.data),p(a.data.total),f(a.data.page))},hideOnSinglePage:!0})})]}):(0,a.jsx)(a.Fragment,{})})]})}}},function(e){e.O(0,[430,693,118,440,55,253,769,744],function(){return e(e.s=55254)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-497fcc1c34ff4a13.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-497fcc1c34ff4a13.js deleted file mode 100644 index c983f9f11..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-497fcc1c34ff4a13.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[470],{78141:function(e,t,a){"use strict";var i=a(78997);t.Z=void 0;var n=i(a(76906)),o=a(9268),r=(0,n.default)((0,o.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached");t.Z=r},22199:function(e,t,a){Promise.resolve().then(a.bind(a,16692))},16692:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return et}});var i=a(9268),n=a(56008),o=a(86006),r=a(50645),s=a(5737),l=a(78635),c=a(70900),d=a(44334),h=a(311),p=a(22046),u=a(53113),g=a(83192),m=a(46750),x=a(40431),v=a(89791),f=a(47562),C=a(46319),b=a(53832),y=a(49657),j=a(88930),S=a(47093),Z=a(18587);function w(e){return(0,Z.d6)("MuiChip",e)}let P=(0,Z.sI)("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),_=o.createContext({disabled:void 0,variant:void 0,color:void 0});var D=a(326);let T=["children","className","color","slotProps","onClick","disabled","size","variant","startDecorator","endDecorator"],k=e=>{let{disabled:t,size:a,color:i,clickable:n,variant:o,focusVisible:r}=e,s={root:["root",t&&"disabled",i&&`color${(0,b.Z)(i)}`,a&&`size${(0,b.Z)(a)}`,o&&`variant${(0,b.Z)(o)}`,n&&"clickable"],action:["action",t&&"disabled",r&&"focusVisible"],label:["label",a&&`label${(0,b.Z)(a)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,f.Z)(s,w,{})},z=(0,r.Z)("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var a,i,n,o,r,s;return[(0,x.Z)({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--unstable_actionRadius":"var(--_Chip-radius)"},"sm"===t.size&&{"--Chip-gap":"0.25rem","--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(min(1.125rem, var(--_Chip-minHeight)) - 2 * var(--variant-borderWidth, 0px))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.714)","--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",fontSize:e.vars.fontSize.xs},"md"===t.size&&{"--Chip-gap":"0.375rem","--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"min(1.375rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.778)","--_Chip-minHeight":"var(--Chip-minHeight, 2rem)",fontSize:e.vars.fontSize.sm},"lg"===t.size&&{"--Chip-gap":"0.5rem","--Chip-paddingInline":"1rem","--Chip-decoratorChildHeight":"min(1.75rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 2)","--_Chip-minHeight":"var(--Chip-minHeight, 2.5rem)",fontSize:e.vars.fontSize.md},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",fontWeight:e.vars.fontWeight.md,fontFamily:e.vars.fontFamily.body,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box",[`&.${P.disabled}`]:{color:null==(a=e.variants[`${t.variant}Disabled`])?void 0:null==(i=a[t.color])?void 0:i.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:null==(r=e.variants[t.variant])?void 0:null==(s=r[t.color])?void 0:s.color}]:[null==(n=e.variants[t.variant])?void 0:n[t.color],{[`&.${P.disabled}`]:null==(o=e.variants[`${t.variant}Disabled`])?void 0:o[t.color]}]]}),O=(0,r.Z)("span",{name:"JoyChip",slot:"Label",overridesResolver:(e,t)=>t.label})(({ownerState:e})=>(0,x.Z)({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},e.clickable&&{zIndex:1,pointerEvents:"none"})),I=(0,r.Z)("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e,ownerState:t})=>{var a,i,n,o;return[{position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[e.focus.selector]:e.focus.default},null==(a=e.variants[t.variant])?void 0:a[t.color],{"&:hover":null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color]},{"&:active":null==(n=e.variants[`${t.variant}Active`])?void 0:n[t.color]},{[`&.${P.disabled}`]:null==(o=e.variants[`${t.variant}Disabled`])?void 0:o[t.color]}]}),N=(0,r.Z)("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--Chip-deleteMargin":"0 0 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",marginInlineEnd:"var(--Chip-gap)",order:0,zIndex:1,pointerEvents:"none"}),R=(0,r.Z)("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Chip-deleteMargin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",marginInlineStart:"var(--Chip-gap)",order:2,zIndex:1,pointerEvents:"none"}),H=o.forwardRef(function(e,t){let a=(0,j.Z)({props:e,name:"JoyChip"}),{children:n,className:r,color:s="primary",slotProps:l={},onClick:c,disabled:d=!1,size:h="md",variant:p="solid",startDecorator:u,endDecorator:g}=a,f=(0,m.Z)(a,T),{getColor:b}=(0,S.VT)(p),Z=b(e.color,s),w=!!c||!!l.action,P=(0,x.Z)({},a,{disabled:d,size:h,color:Z,variant:p,clickable:w,focusVisible:!1}),H="function"==typeof l.action?l.action(P):l.action,F=o.useRef(null),{focusVisible:E,getRootProps:J}=(0,C.Z)((0,x.Z)({},H,{disabled:d,ref:F}));P.focusVisible=E;let W=k(P),M=(0,x.Z)({},f,{slotProps:l}),[L,$]=(0,D.Z)("root",{ref:t,className:(0,v.Z)(W.root,r),elementType:z,externalForwardedProps:M,ownerState:P}),[U,A]=(0,D.Z)("label",{className:W.label,elementType:O,externalForwardedProps:M,ownerState:P}),B=(0,y.Z)(A.id),[V,Y]=(0,D.Z)("action",{className:W.action,elementType:I,externalForwardedProps:M,ownerState:P,getSlotProps:J,additionalProps:{"aria-labelledby":B,as:null==H?void 0:H.component,onClick:c}}),[G,K]=(0,D.Z)("startDecorator",{className:W.startDecorator,elementType:N,externalForwardedProps:M,ownerState:P}),[X,q]=(0,D.Z)("endDecorator",{className:W.endDecorator,elementType:R,externalForwardedProps:M,ownerState:P}),Q=o.useMemo(()=>({disabled:d,variant:p,color:"context"===Z?void 0:Z}),[Z,d,p]);return(0,i.jsx)(_.Provider,{value:Q,children:(0,i.jsxs)(L,(0,x.Z)({},$,{children:[w&&(0,i.jsx)(V,(0,x.Z)({},Y)),(0,i.jsx)(U,(0,x.Z)({},A,{id:B,children:n})),u&&(0,i.jsx)(G,(0,x.Z)({},K,{children:u})),g&&(0,i.jsx)(X,(0,x.Z)({},q,{children:g}))]}))})});var F=a(11437),E=a(90545),J=a(35086),W=a(866),M=a(28086),L=a(65326),$=a.n(L),U=a(72474),A=a(59534),B=a(78141),V=a(50157),Y=a(23910),G=a(21628),K=a(1031);let{Dragger:X}=V.default,q=(0,r.Z)(s.Z)(e=>{let{theme:t}=e;return{width:"50%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),Q=["Choose a Datasource type","Setup the Datasource"],ee=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];var et=()=>{let e=(0,n.useRouter)(),t=(0,n.useSearchParams)().get("name"),{mode:a}=(0,l.tv)(),[r,m]=(0,o.useState)(!1),[x,v]=(0,o.useState)(0),[f,C]=(0,o.useState)(""),[b,y]=(0,o.useState)([]),[j,S]=(0,o.useState)(""),[Z,w]=(0,o.useState)(""),[P,_]=(0,o.useState)(""),[D,T]=(0,o.useState)(""),[k,z]=(0,o.useState)(null),[O,I]=(0,o.useState)(0),[N,R]=(0,o.useState)(0),[L,V]=(0,o.useState)(!0);return(0,o.useEffect)(()=>{(async function(){let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:1,page_size:20})}),a=await e.json();a.success&&(y(a.data.data),I(a.data.total),R(a.data.page))})()},[]),(0,i.jsxs)("div",{className:"p-4",children:[(0,i.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,i.jsxs)(d.Z,{"aria-label":"breadcrumbs",children:[(0,i.jsx)(h.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,i.jsx)(p.ZP,{fontSize:"inherit",children:"Documents"})]}),(0,i.jsx)(u.Z,{variant:"outlined",onClick:()=>m(!0),children:"+ Add Datasource"})]}),b.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(g.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===a?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:"Name"}),(0,i.jsx)("th",{children:"Type"}),(0,i.jsx)("th",{children:"Size"}),(0,i.jsx)("th",{children:"Last Synch"}),(0,i.jsx)("th",{children:"Status"}),(0,i.jsx)("th",{children:"Result"}),(0,i.jsx)("th",{children:"Operation"})]})}),(0,i.jsx)("tbody",{children:b.map(a=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:a.doc_name}),(0,i.jsx)("td",{children:(0,i.jsx)(H,{variant:"solid",color:"neutral",sx:{opacity:.5},children:a.doc_type})}),(0,i.jsxs)("td",{children:[a.chunk_size," chunks"]}),(0,i.jsx)("td",{children:$()(a.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,i.jsx)("td",{children:(0,i.jsx)(H,{sx:{opacity:.5},variant:"solid",color:function(){switch(a.status){case"TODO":return"neutral";case"RUNNING":return"primary";case"FINISHED":return"success";case"FAILED":return"danger"}}(),children:a.status})}),(0,i.jsx)("td",{children:"TODO"===a.status||"RUNNING"===a.status?"":"FINISHED"===a.status?(0,i.jsx)(Y.Z,{content:a.result,trigger:"hover",children:(0,i.jsx)(H,{variant:"solid",color:"success",sx:{opacity:.5},children:"SUCCESS"})}):(0,i.jsx)(Y.Z,{content:a.result,trigger:"hover",children:(0,i.jsx)(H,{variant:"solid",color:"danger",sx:{opacity:.5},children:"FAILED"})})}),(0,i.jsx)("td",{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(u.Z,{variant:"outlined",size:"sm",sx:{marginRight:"20px"},onClick:async()=>{let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[a.id]})}),i=await e.json();i.success?G.ZP.success("success"):G.ZP.error(i.err_msg||"failed")},children:["Synch",(0,i.jsx)(B.Z,{})]}),(0,i.jsx)(u.Z,{variant:"outlined",size:"sm",onClick:()=>{e.push("/datastores/documents/chunklist?spacename=".concat(t,"&documentid=").concat(a.id))},children:"Details"})]})})]},a.id))})]}),(0,i.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,i.jsx)(K.Z,{defaultPageSize:20,showSizeChanger:!1,current:N,total:O,onChange:async e=>{let a=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:e,page_size:20})}),i=await a.json();i.success&&(y(i.data.data),I(i.data.total),R(i.data.page))},hideOnSinglePage:!0})})]}):(0,i.jsx)(i.Fragment,{}),(0,i.jsx)(F.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:r,onClose:()=>m(!1),children:(0,i.jsxs)(s.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,i.jsx)(E.Z,{sx:{width:"100%"},children:(0,i.jsx)(c.Z,{spacing:2,direction:"row",children:Q.map((e,t)=>(0,i.jsxs)(q,{sx:{fontWeight:x===t?"bold":"",color:x===t?"#814DDE":""},children:[t(0,i.jsxs)(s.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{C(e.type),v(1)},children:[(0,i.jsx)(s.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,i.jsx)(s.Z,{children:e.subTitle})]},e.type))})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(E.Z,{sx:{margin:"30px auto"},children:["Name:",(0,i.jsx)(J.ZP,{placeholder:"Please input the name",onChange:e=>w(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===f?(0,i.jsxs)(i.Fragment,{children:["Web Page URL:",(0,i.jsx)(J.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>S(e.target.value)})]}):"file"===f?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(X,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){z(null),w("");return}z(e.file.originFileObj),w(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,i.jsx)("p",{className:"ant-upload-drag-icon",children:(0,i.jsx)(U.Z,{})}),(0,i.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,i.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,i.jsxs)(i.Fragment,{children:["Text Source(Optional):",(0,i.jsx)(J.ZP,{placeholder:"Please input the text source",onChange:e=>_(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,i.jsx)(W.Z,{onChange:e=>T(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,i.jsx)(p.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,i.jsx)(M.Z,{checked:L,onChange:e=>V(e.target.checked)}),children:"Synch:"})]}),(0,i.jsxs)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,i.jsx)(u.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>v(0),children:"< Back"}),(0,i.jsx)(u.Z,{variant:"outlined",onClick:async()=>{if(""===Z){G.ZP.error("Please input the name");return}if("webPage"===f){if(""===j){G.ZP.error("Please input the Web Page URL");return}let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:Z,content:j,doc_type:"URL"})}),a=await e.json();if(a.success&&L&&fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[a.data]})}),a.success){G.ZP.success("success"),m(!1);let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:N,page_size:20})}),a=await e.json();a.success&&(y(a.data.data),I(a.data.total),R(a.data.page))}else G.ZP.error(a.err_msg||"failed")}else if("file"===f){if(!k){G.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",Z),e.append("doc_file",k),e.append("doc_type","DOCUMENT");let a=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/upload"),{method:"POST",body:e}),i=await a.json();if(i.success&&L&&fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[i.data]})}),i.success){G.ZP.success("success"),m(!1);let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:N,page_size:20})}),a=await e.json();a.success&&(y(a.data.data),I(a.data.total),R(a.data.page))}else G.ZP.error(i.err_msg||"failed")}else{if(""===D){G.ZP.error("Please input the text");return}let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:Z,source:P,content:D,doc_type:"TEXT"})}),a=await e.json();if(a.success&&L&&fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[a.data]})}),a.success){G.ZP.success("success"),m(!1);let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:N,page_size:20})}),a=await e.json();a.success&&(y(a.data.data),I(a.data.total),R(a.data.page))}else G.ZP.error(a.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}}},function(e){e.O(0,[550,430,577,86,693,118,440,672,55,642,253,769,744],function(){return e(e.s=22199)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-a131be003bf1298d.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-a131be003bf1298d.js deleted file mode 100644 index 6209617e2..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-a131be003bf1298d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[470],{78141:function(e,t,a){"use strict";var i=a(78997);t.Z=void 0;var n=i(a(76906)),o=a(9268),r=(0,n.default)((0,o.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached");t.Z=r},22199:function(e,t,a){Promise.resolve().then(a.bind(a,16692))},16692:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return et}});var i=a(9268),n=a(56008),o=a(86006),r=a(50645),s=a(5737),l=a(78635),c=a(70900),d=a(44334),h=a(311),p=a(22046),u=a(53113),g=a(83192),m=a(46750),x=a(40431),v=a(89791),f=a(47562),C=a(46319),w=a(53832),b=a(49657),y=a(88930),j=a(47093),S=a(18587);function Z(e){return(0,S.d6)("MuiChip",e)}let P=(0,S.sI)("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),_=o.createContext({disabled:void 0,variant:void 0,color:void 0});var D=a(326);let T=["children","className","color","slotProps","onClick","disabled","size","variant","startDecorator","endDecorator"],k=e=>{let{disabled:t,size:a,color:i,clickable:n,variant:o,focusVisible:r}=e,s={root:["root",t&&"disabled",i&&`color${(0,w.Z)(i)}`,a&&`size${(0,w.Z)(a)}`,o&&`variant${(0,w.Z)(o)}`,n&&"clickable"],action:["action",t&&"disabled",r&&"focusVisible"],label:["label",a&&`label${(0,w.Z)(a)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,f.Z)(s,Z,{})},z=(0,r.Z)("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var a,i,n,o,r,s;return[(0,x.Z)({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--unstable_actionRadius":"var(--_Chip-radius)"},"sm"===t.size&&{"--Chip-gap":"0.25rem","--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(min(1.125rem, var(--_Chip-minHeight)) - 2 * var(--variant-borderWidth, 0px))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.714)","--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",fontSize:e.vars.fontSize.xs},"md"===t.size&&{"--Chip-gap":"0.375rem","--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"min(1.375rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.778)","--_Chip-minHeight":"var(--Chip-minHeight, 2rem)",fontSize:e.vars.fontSize.sm},"lg"===t.size&&{"--Chip-gap":"0.5rem","--Chip-paddingInline":"1rem","--Chip-decoratorChildHeight":"min(1.75rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 2)","--_Chip-minHeight":"var(--Chip-minHeight, 2.5rem)",fontSize:e.vars.fontSize.md},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",fontWeight:e.vars.fontWeight.md,fontFamily:e.vars.fontFamily.body,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box",[`&.${P.disabled}`]:{color:null==(a=e.variants[`${t.variant}Disabled`])?void 0:null==(i=a[t.color])?void 0:i.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:null==(r=e.variants[t.variant])?void 0:null==(s=r[t.color])?void 0:s.color}]:[null==(n=e.variants[t.variant])?void 0:n[t.color],{[`&.${P.disabled}`]:null==(o=e.variants[`${t.variant}Disabled`])?void 0:o[t.color]}]]}),O=(0,r.Z)("span",{name:"JoyChip",slot:"Label",overridesResolver:(e,t)=>t.label})(({ownerState:e})=>(0,x.Z)({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},e.clickable&&{zIndex:1,pointerEvents:"none"})),I=(0,r.Z)("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e,ownerState:t})=>{var a,i,n,o;return[{position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[e.focus.selector]:e.focus.default},null==(a=e.variants[t.variant])?void 0:a[t.color],{"&:hover":null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color]},{"&:active":null==(n=e.variants[`${t.variant}Active`])?void 0:n[t.color]},{[`&.${P.disabled}`]:null==(o=e.variants[`${t.variant}Disabled`])?void 0:o[t.color]}]}),$=(0,r.Z)("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--Chip-deleteMargin":"0 0 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",marginInlineEnd:"var(--Chip-gap)",order:0,zIndex:1,pointerEvents:"none"}),N=(0,r.Z)("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Chip-deleteMargin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",marginInlineStart:"var(--Chip-gap)",order:2,zIndex:1,pointerEvents:"none"}),R=o.forwardRef(function(e,t){let a=(0,y.Z)({props:e,name:"JoyChip"}),{children:n,className:r,color:s="primary",slotProps:l={},onClick:c,disabled:d=!1,size:h="md",variant:p="solid",startDecorator:u,endDecorator:g}=a,f=(0,m.Z)(a,T),{getColor:w}=(0,j.VT)(p),S=w(e.color,s),Z=!!c||!!l.action,P=(0,x.Z)({},a,{disabled:d,size:h,color:S,variant:p,clickable:Z,focusVisible:!1}),R="function"==typeof l.action?l.action(P):l.action,H=o.useRef(null),{focusVisible:F,getRootProps:E}=(0,C.Z)((0,x.Z)({},R,{disabled:d,ref:H}));P.focusVisible=F;let J=k(P),W=(0,x.Z)({},f,{slotProps:l}),[M,L]=(0,D.Z)("root",{ref:t,className:(0,v.Z)(J.root,r),elementType:z,externalForwardedProps:W,ownerState:P}),[U,A]=(0,D.Z)("label",{className:J.label,elementType:O,externalForwardedProps:W,ownerState:P}),B=(0,b.Z)(A.id),[V,Y]=(0,D.Z)("action",{className:J.action,elementType:I,externalForwardedProps:W,ownerState:P,getSlotProps:E,additionalProps:{"aria-labelledby":B,as:null==R?void 0:R.component,onClick:c}}),[G,K]=(0,D.Z)("startDecorator",{className:J.startDecorator,elementType:$,externalForwardedProps:W,ownerState:P}),[X,q]=(0,D.Z)("endDecorator",{className:J.endDecorator,elementType:N,externalForwardedProps:W,ownerState:P}),Q=o.useMemo(()=>({disabled:d,variant:p,color:"context"===S?void 0:S}),[S,d,p]);return(0,i.jsx)(_.Provider,{value:Q,children:(0,i.jsxs)(M,(0,x.Z)({},L,{children:[Z&&(0,i.jsx)(V,(0,x.Z)({},Y)),(0,i.jsx)(U,(0,x.Z)({},A,{id:B,children:n})),u&&(0,i.jsx)(G,(0,x.Z)({},K,{children:u})),g&&(0,i.jsx)(X,(0,x.Z)({},q,{children:g}))]}))})});var H=a(11437),F=a(90545),E=a(35086),J=a(866),W=a(28086),M=a(65326),L=a.n(M),U=a(72474),A=a(59534),B=a(78141),V=a(50157),Y=a(23910),G=a(21628),K=a(1031);let{Dragger:X}=V.default,q=(0,r.Z)(s.Z)(e=>{let{theme:t}=e;return{width:"50%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),Q=["Choose a Datasource type","Setup the Datasource"],ee=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];var et=()=>{let e=(0,n.useRouter)(),t=(0,n.useSearchParams)().get("name"),{mode:a}=(0,l.tv)(),[r,m]=(0,o.useState)(!1),[x,v]=(0,o.useState)(0),[f,C]=(0,o.useState)(""),[w,b]=(0,o.useState)([]),[y,j]=(0,o.useState)(""),[S,Z]=(0,o.useState)(""),[P,_]=(0,o.useState)(""),[D,T]=(0,o.useState)(""),[k,z]=(0,o.useState)(null),[O,I]=(0,o.useState)(0),[$,N]=(0,o.useState)(0),[M,V]=(0,o.useState)(!0);return(0,o.useEffect)(()=>{(async function(){let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:1,page_size:20})}),a=await e.json();a.success&&(b(a.data.data),I(a.data.total),N(a.data.page))})()},[]),(0,i.jsxs)("div",{className:"p-4",children:[(0,i.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,i.jsxs)(d.Z,{"aria-label":"breadcrumbs",children:[(0,i.jsx)(h.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,i.jsx)(p.ZP,{fontSize:"inherit",children:"Documents"})]}),(0,i.jsx)(u.Z,{variant:"outlined",onClick:()=>m(!0),children:"+ Add Datasource"})]}),w.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(g.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===a?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:"Name"}),(0,i.jsx)("th",{children:"Type"}),(0,i.jsx)("th",{children:"Size"}),(0,i.jsx)("th",{children:"Last Synch"}),(0,i.jsx)("th",{children:"Status"}),(0,i.jsx)("th",{children:"Result"}),(0,i.jsx)("th",{children:"Operation"})]})}),(0,i.jsx)("tbody",{children:w.map(a=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:a.doc_name}),(0,i.jsx)("td",{children:(0,i.jsx)(R,{variant:"solid",color:"neutral",sx:{opacity:.5},children:a.doc_type})}),(0,i.jsxs)("td",{children:[a.chunk_size," chunks"]}),(0,i.jsx)("td",{children:L()(a.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,i.jsx)("td",{children:(0,i.jsx)(R,{sx:{opacity:.5},variant:"solid",color:function(){switch(a.status){case"TODO":return"neutral";case"RUNNING":return"primary";case"FINISHED":return"success";case"FAILED":return"danger"}}(),children:a.status})}),(0,i.jsx)("td",{children:"TODO"===a.status||"RUNNING"===a.status?"":"FINISHED"===a.status?(0,i.jsx)(Y.Z,{content:a.result,trigger:"hover",children:(0,i.jsx)(R,{variant:"solid",color:"success",sx:{opacity:.5},children:"SUCCESS"})}):(0,i.jsx)(Y.Z,{content:a.result,trigger:"hover",children:(0,i.jsx)(R,{variant:"solid",color:"danger",sx:{opacity:.5},children:"FAILED"})})}),(0,i.jsx)("td",{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(u.Z,{variant:"outlined",size:"sm",sx:{marginRight:"20px"},onClick:async()=>{let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[a.id]})}),i=await e.json();i.success?G.ZP.success("success"):G.ZP.error(i.err_msg||"failed")},children:["Synch",(0,i.jsx)(B.Z,{})]}),(0,i.jsx)(u.Z,{variant:"outlined",size:"sm",onClick:()=>{e.push("/datastores/documents/chunklist?spacename=".concat(t,"&documentid=").concat(a.id))},children:"Details"})]})})]},a.id))})]}),(0,i.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,i.jsx)(K.Z,{defaultPageSize:20,showSizeChanger:!1,current:$,total:O,onChange:async e=>{let a=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:e,page_size:20})}),i=await a.json();i.success&&(b(i.data.data),I(i.data.total),N(i.data.page))},hideOnSinglePage:!0})})]}):(0,i.jsx)(i.Fragment,{}),(0,i.jsx)(H.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:r,onClose:()=>m(!1),children:(0,i.jsxs)(s.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,i.jsx)(F.Z,{sx:{width:"100%"},children:(0,i.jsx)(c.Z,{spacing:2,direction:"row",children:Q.map((e,t)=>(0,i.jsxs)(q,{sx:{fontWeight:x===t?"bold":"",color:x===t?"#814DDE":""},children:[t(0,i.jsxs)(s.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{C(e.type),v(1)},children:[(0,i.jsx)(s.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,i.jsx)(s.Z,{children:e.subTitle})]},e.type))})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(F.Z,{sx:{margin:"30px auto"},children:["Name:",(0,i.jsx)(E.ZP,{placeholder:"Please input the name",onChange:e=>Z(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===f?(0,i.jsxs)(i.Fragment,{children:["Web Page URL:",(0,i.jsx)(E.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>j(e.target.value)})]}):"file"===f?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(X,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){z(null),Z("");return}z(e.file.originFileObj),Z(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,i.jsx)("p",{className:"ant-upload-drag-icon",children:(0,i.jsx)(U.Z,{})}),(0,i.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,i.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,i.jsxs)(i.Fragment,{children:["Text Source(Optional):",(0,i.jsx)(E.ZP,{placeholder:"Please input the text source",onChange:e=>_(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,i.jsx)(J.Z,{onChange:e=>T(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,i.jsx)(p.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,i.jsx)(W.Z,{checked:M,onChange:e=>V(e.target.checked)}),children:"Synch:"})]}),(0,i.jsxs)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,i.jsx)(u.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>v(0),children:"< Back"}),(0,i.jsx)(u.Z,{variant:"outlined",onClick:async()=>{if(""===S){G.ZP.error("Please input the name");return}if("webPage"===f){if(""===y){G.ZP.error("Please input the Web Page URL");return}let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:S,content:y,doc_type:"URL"})}),a=await e.json();if(a.success&&M&&fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[a.data]})}),a.success){G.ZP.success("success"),m(!1);let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:$,page_size:20})}),a=await e.json();a.success&&(b(a.data.data),I(a.data.total),N(a.data.page))}else G.ZP.error(a.err_msg||"failed")}else if("file"===f){if(!k){G.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",S),e.append("doc_file",k),e.append("doc_type","DOCUMENT");let a=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/upload"),{method:"POST",body:e}),i=await a.json();if(i.success&&M&&fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[i.data]})}),i.success){G.ZP.success("success"),m(!1);let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:$,page_size:20})}),a=await e.json();a.success&&(b(a.data.data),I(a.data.total),N(a.data.page))}else G.ZP.error(i.err_msg||"failed")}else{if(""===D){G.ZP.error("Please input the text");return}let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:S,source:P,content:D,doc_type:"TEXT"})}),a=await e.json();if(a.success&&M&&fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[a.data]})}),a.success){G.ZP.success("success"),m(!1);let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:$,page_size:20})}),a=await e.json();a.success&&(b(a.data.data),I(a.data.total),N(a.data.page))}else G.ZP.error(a.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}}},function(e){e.O(0,[550,430,577,86,693,118,440,672,55,642,253,769,744],function(){return e(e.s=22199)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-c51de11f1af75384.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-c51de11f1af75384.js deleted file mode 100644 index 8a836c7cd..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-c51de11f1af75384.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[470],{78141:function(e,t,a){"use strict";var i=a(78997);t.Z=void 0;var n=i(a(76906)),o=a(9268),r=(0,n.default)((0,o.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached");t.Z=r},22199:function(e,t,a){Promise.resolve().then(a.bind(a,16692))},16692:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return et}});var i=a(9268),n=a(56008),o=a(86006),r=a(50645),s=a(5737),l=a(78635),c=a(70900),d=a(44334),h=a(311),p=a(22046),u=a(53113),g=a(83192),m=a(46750),x=a(40431),v=a(89791),f=a(47562),C=a(46319),b=a(53832),y=a(49657),j=a(88930),S=a(47093),Z=a(18587);function w(e){return(0,Z.d6)("MuiChip",e)}let P=(0,Z.sI)("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),_=o.createContext({disabled:void 0,variant:void 0,color:void 0});var D=a(326);let T=["children","className","color","slotProps","onClick","disabled","size","variant","startDecorator","endDecorator"],k=e=>{let{disabled:t,size:a,color:i,clickable:n,variant:o,focusVisible:r}=e,s={root:["root",t&&"disabled",i&&`color${(0,b.Z)(i)}`,a&&`size${(0,b.Z)(a)}`,o&&`variant${(0,b.Z)(o)}`,n&&"clickable"],action:["action",t&&"disabled",r&&"focusVisible"],label:["label",a&&`label${(0,b.Z)(a)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,f.Z)(s,w,{})},z=(0,r.Z)("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var a,i,n,o,r,s;return[(0,x.Z)({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--unstable_actionRadius":"var(--_Chip-radius)"},"sm"===t.size&&{"--Chip-gap":"0.25rem","--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(min(1.125rem, var(--_Chip-minHeight)) - 2 * var(--variant-borderWidth, 0px))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.714)","--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",fontSize:e.vars.fontSize.xs},"md"===t.size&&{"--Chip-gap":"0.375rem","--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"min(1.375rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.778)","--_Chip-minHeight":"var(--Chip-minHeight, 2rem)",fontSize:e.vars.fontSize.sm},"lg"===t.size&&{"--Chip-gap":"0.5rem","--Chip-paddingInline":"1rem","--Chip-decoratorChildHeight":"min(1.75rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 2)","--_Chip-minHeight":"var(--Chip-minHeight, 2.5rem)",fontSize:e.vars.fontSize.md},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",fontWeight:e.vars.fontWeight.md,fontFamily:e.vars.fontFamily.body,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box",[`&.${P.disabled}`]:{color:null==(a=e.variants[`${t.variant}Disabled`])?void 0:null==(i=a[t.color])?void 0:i.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:null==(r=e.variants[t.variant])?void 0:null==(s=r[t.color])?void 0:s.color}]:[null==(n=e.variants[t.variant])?void 0:n[t.color],{[`&.${P.disabled}`]:null==(o=e.variants[`${t.variant}Disabled`])?void 0:o[t.color]}]]}),O=(0,r.Z)("span",{name:"JoyChip",slot:"Label",overridesResolver:(e,t)=>t.label})(({ownerState:e})=>(0,x.Z)({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},e.clickable&&{zIndex:1,pointerEvents:"none"})),I=(0,r.Z)("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e,ownerState:t})=>{var a,i,n,o;return[{position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[e.focus.selector]:e.focus.default},null==(a=e.variants[t.variant])?void 0:a[t.color],{"&:hover":null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color]},{"&:active":null==(n=e.variants[`${t.variant}Active`])?void 0:n[t.color]},{[`&.${P.disabled}`]:null==(o=e.variants[`${t.variant}Disabled`])?void 0:o[t.color]}]}),N=(0,r.Z)("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--Chip-deleteMargin":"0 0 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",marginInlineEnd:"var(--Chip-gap)",order:0,zIndex:1,pointerEvents:"none"}),R=(0,r.Z)("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Chip-deleteMargin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",marginInlineStart:"var(--Chip-gap)",order:2,zIndex:1,pointerEvents:"none"}),H=o.forwardRef(function(e,t){let a=(0,j.Z)({props:e,name:"JoyChip"}),{children:n,className:r,color:s="primary",slotProps:l={},onClick:c,disabled:d=!1,size:h="md",variant:p="solid",startDecorator:u,endDecorator:g}=a,f=(0,m.Z)(a,T),{getColor:b}=(0,S.VT)(p),Z=b(e.color,s),w=!!c||!!l.action,P=(0,x.Z)({},a,{disabled:d,size:h,color:Z,variant:p,clickable:w,focusVisible:!1}),H="function"==typeof l.action?l.action(P):l.action,F=o.useRef(null),{focusVisible:E,getRootProps:J}=(0,C.Z)((0,x.Z)({},H,{disabled:d,ref:F}));P.focusVisible=E;let W=k(P),M=(0,x.Z)({},f,{slotProps:l}),[L,$]=(0,D.Z)("root",{ref:t,className:(0,v.Z)(W.root,r),elementType:z,externalForwardedProps:M,ownerState:P}),[U,A]=(0,D.Z)("label",{className:W.label,elementType:O,externalForwardedProps:M,ownerState:P}),B=(0,y.Z)(A.id),[V,Y]=(0,D.Z)("action",{className:W.action,elementType:I,externalForwardedProps:M,ownerState:P,getSlotProps:J,additionalProps:{"aria-labelledby":B,as:null==H?void 0:H.component,onClick:c}}),[G,K]=(0,D.Z)("startDecorator",{className:W.startDecorator,elementType:N,externalForwardedProps:M,ownerState:P}),[X,q]=(0,D.Z)("endDecorator",{className:W.endDecorator,elementType:R,externalForwardedProps:M,ownerState:P}),Q=o.useMemo(()=>({disabled:d,variant:p,color:"context"===Z?void 0:Z}),[Z,d,p]);return(0,i.jsx)(_.Provider,{value:Q,children:(0,i.jsxs)(L,(0,x.Z)({},$,{children:[w&&(0,i.jsx)(V,(0,x.Z)({},Y)),(0,i.jsx)(U,(0,x.Z)({},A,{id:B,children:n})),u&&(0,i.jsx)(G,(0,x.Z)({},K,{children:u})),g&&(0,i.jsx)(X,(0,x.Z)({},q,{children:g}))]}))})});var F=a(11437),E=a(90545),J=a(35086),W=a(866),M=a(28086),L=a(65326),$=a.n(L),U=a(72474),A=a(59534),B=a(78141),V=a(50157),Y=a(23910),G=a(21628),K=a(1031);let{Dragger:X}=V.default,q=(0,r.Z)(s.Z)(e=>{let{theme:t}=e;return{width:"50%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),Q=["Choose a Datasource type","Setup the Datasource"],ee=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];var et=()=>{let e=(0,n.useRouter)(),t=(0,n.useSearchParams)().get("name"),{mode:a}=(0,l.tv)(),[r,m]=(0,o.useState)(!1),[x,v]=(0,o.useState)(0),[f,C]=(0,o.useState)(""),[b,y]=(0,o.useState)([]),[j,S]=(0,o.useState)(""),[Z,w]=(0,o.useState)(""),[P,_]=(0,o.useState)(""),[D,T]=(0,o.useState)(""),[k,z]=(0,o.useState)(null),[O,I]=(0,o.useState)(0),[N,R]=(0,o.useState)(0),[L,V]=(0,o.useState)(!0);return(0,o.useEffect)(()=>{(async function(){let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:1,page_size:20})}),a=await e.json();a.success&&(y(a.data.data),I(a.data.total),R(a.data.page))})()},[]),(0,i.jsxs)("div",{className:"p-4",children:[(0,i.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,i.jsxs)(d.Z,{"aria-label":"breadcrumbs",children:[(0,i.jsx)(h.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,i.jsx)(p.ZP,{fontSize:"inherit",children:"Documents"})]}),(0,i.jsx)(u.Z,{variant:"outlined",onClick:()=>m(!0),children:"+ Add Datasource"})]}),b.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(g.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===a?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:"Name"}),(0,i.jsx)("th",{children:"Type"}),(0,i.jsx)("th",{children:"Size"}),(0,i.jsx)("th",{children:"Last Synch"}),(0,i.jsx)("th",{children:"Status"}),(0,i.jsx)("th",{children:"Result"}),(0,i.jsx)("th",{children:"Operation"})]})}),(0,i.jsx)("tbody",{children:b.map(a=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:a.doc_name}),(0,i.jsx)("td",{children:(0,i.jsx)(H,{variant:"solid",color:"neutral",sx:{opacity:.5},children:a.doc_type})}),(0,i.jsxs)("td",{children:[a.chunk_size," chunks"]}),(0,i.jsx)("td",{children:$()(a.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,i.jsx)("td",{children:(0,i.jsx)(H,{sx:{opacity:.5},variant:"solid",color:function(){switch(a.status){case"TODO":return"neutral";case"RUNNING":return"primary";case"FINISHED":return"success";case"FAILED":return"danger"}}(),children:a.status})}),(0,i.jsx)("td",{children:"TODO"===a.status||"RUNNING"===a.status?"":"FINISHED"===a.status?(0,i.jsx)(Y.Z,{content:a.result,trigger:"hover",children:(0,i.jsx)(H,{variant:"solid",color:"success",sx:{opacity:.5},children:"SUCCESS"})}):(0,i.jsx)(Y.Z,{content:a.result,trigger:"hover",children:(0,i.jsx)(H,{variant:"solid",color:"danger",sx:{opacity:.5},children:"FAILED"})})}),(0,i.jsx)("td",{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(u.Z,{variant:"outlined",size:"sm",sx:{marginRight:"20px"},onClick:async()=>{let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[a.id]})}),i=await e.json();i.success?G.ZP.success("success"):G.ZP.error(i.err_msg||"failed")},children:["Synch",(0,i.jsx)(B.Z,{})]}),(0,i.jsx)(u.Z,{variant:"outlined",size:"sm",onClick:()=>{e.push("/datastores/documents/chunklist?spacename=".concat(t,"&documentid=").concat(a.id))},children:"Details"})]})})]},a.id))})]}),(0,i.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,i.jsx)(K.Z,{defaultPageSize:20,showSizeChanger:!1,current:N,total:O,onChange:async e=>{let a=await fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:e,page_size:20})}),i=await a.json();i.success&&(y(i.data.data),I(i.data.total),R(i.data.page))},hideOnSinglePage:!0})})]}):(0,i.jsx)(i.Fragment,{}),(0,i.jsx)(F.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:r,onClose:()=>m(!1),children:(0,i.jsxs)(s.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,i.jsx)(E.Z,{sx:{width:"100%"},children:(0,i.jsx)(c.Z,{spacing:2,direction:"row",children:Q.map((e,t)=>(0,i.jsxs)(q,{sx:{fontWeight:x===t?"bold":"",color:x===t?"#814DDE":""},children:[t(0,i.jsxs)(s.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{C(e.type),v(1)},children:[(0,i.jsx)(s.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,i.jsx)(s.Z,{children:e.subTitle})]},e.type))})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(E.Z,{sx:{margin:"30px auto"},children:["Name:",(0,i.jsx)(J.ZP,{placeholder:"Please input the name",onChange:e=>w(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===f?(0,i.jsxs)(i.Fragment,{children:["Web Page URL:",(0,i.jsx)(J.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>S(e.target.value)})]}):"file"===f?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(X,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){z(null),w("");return}z(e.file.originFileObj),w(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,i.jsx)("p",{className:"ant-upload-drag-icon",children:(0,i.jsx)(U.Z,{})}),(0,i.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,i.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,i.jsxs)(i.Fragment,{children:["Text Source(Optional):",(0,i.jsx)(J.ZP,{placeholder:"Please input the text source",onChange:e=>_(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,i.jsx)(W.Z,{onChange:e=>T(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,i.jsx)(p.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,i.jsx)(M.Z,{checked:L,onChange:e=>V(e.target.checked)}),children:"Synch:"})]}),(0,i.jsxs)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,i.jsx)(u.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>v(0),children:"< Back"}),(0,i.jsx)(u.Z,{variant:"outlined",onClick:async()=>{if(""===Z){G.ZP.error("Please input the name");return}if("webPage"===f){if(""===j){G.ZP.error("Please input the Web Page URL");return}let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:Z,content:j,doc_type:"URL"})}),a=await e.json();if(a.success&&L&&fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[a.data]})}),a.success){G.ZP.success("success"),m(!1);let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:N,page_size:20})}),a=await e.json();a.success&&(y(a.data.data),I(a.data.total),R(a.data.page))}else G.ZP.error(a.err_msg||"failed")}else if("file"===f){if(!k){G.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",Z),e.append("doc_file",k),e.append("doc_type","DOCUMENT");let a=await fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/upload"),{method:"POST",body:e}),i=await a.json();if(i.success&&L&&fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[i.data]})}),i.success){G.ZP.success("success"),m(!1);let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:N,page_size:20})}),a=await e.json();a.success&&(y(a.data.data),I(a.data.total),R(a.data.page))}else G.ZP.error(i.err_msg||"failed")}else{if(""===D){G.ZP.error("Please input the text");return}let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:Z,source:P,content:D,doc_type:"TEXT"})}),a=await e.json();if(a.success&&L&&fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[a.data]})}),a.success){G.ZP.success("success"),m(!1);let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:N,page_size:20})}),a=await e.json();a.success&&(y(a.data.data),I(a.data.total),R(a.data.page))}else G.ZP.error(a.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}}},function(e){e.O(0,[550,430,577,86,693,118,440,672,55,642,253,769,744],function(){return e(e.s=22199)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-2c82a1b061f2cc3b.js b/pilot/server/static/_next/static/chunks/app/datastores/page-2c82a1b061f2cc3b.js deleted file mode 100644 index 65c462fec..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/page-2c82a1b061f2cc3b.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{25123:function(e,t,n){"use strict";var o=n(78997);t.Z=void 0;var s=o(n(76906)),a=n(9268),i=(0,s.default)((0,a.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-8-2h2v-4h4v-2h-4V7h-2v4H7v2h4z"}),"AddBoxOutlined");t.Z=i},29382:function(e,t,n){"use strict";var o=n(78997);t.Z=void 0;var s=o(n(76906)),a=n(9268),i=(0,s.default)([(0,a.jsx)("path",{d:"M5 5h2v3h10V5h2v5h2V5c0-1.1-.9-2-2-2h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v-2H5V5zm7-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),(0,a.jsx)("path",{d:"M20.3 18.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S12 14 12 16.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l2.7 2.7 1.4-1.4-2.7-2.7zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z"},"1")],"ContentPasteSearchOutlined");t.Z=i},31982:function(e,t,n){Promise.resolve().then(n.bind(n,44323))},44323:function(e,t,n){"use strict";n.r(t);var o=n(9268),s=n(56008),a=n(86006),i=n(72474),r=n(59534),c=n(25123),l=n(29382),d=n(50157),x=n(21628),p=n(50645),h=n(5737),g=n(78635),u=n(90545),f=n(70900),m=n(11437),j=n(35086),b=n(53113),S=n(866),w=n(22046),y=n(28086),Z=n(52040);let{Dragger:P}=d.default,v=(0,p.Z)(h.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),k=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],C=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,s.useRouter)(),{mode:t}=(0,g.tv)(),[n,d]=(0,a.useState)(0),[p,_]=(0,a.useState)(""),[T,O]=(0,a.useState)([]),[R,A]=(0,a.useState)(!1),[B,z]=(0,a.useState)(""),[N,E]=(0,a.useState)(""),[U,L]=(0,a.useState)(""),[F,D]=(0,a.useState)(""),[I,W]=(0,a.useState)(""),[J,V]=(0,a.useState)(null),[M,G]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{(async function(){let e=await fetch("".concat(Z.env.API_BASE_URL,"/knowledge/space/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),t=await e.json();t.success&&O(t.data)})()},[]),(0,o.jsxs)(u.Z,{sx:{width:"100%",height:"100%",backgroundColor:"light"===t?"rgb(238, 240, 245)":"rgb(33, 33, 33)"},children:[(0,o.jsx)(u.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,o.jsxs)(f.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,o.jsxs)(u.Z,{sx:{boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",backgroundColor:"light"===t?"rgb(224, 228, 237)":"rgb(72, 72, 72)",flexShrink:0,flexGrow:0,cursor:"pointer","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>A(!0),children:[(0,o.jsx)(c.Z,{sx:{marginRight:"10px",fontSize:"30px"}}),"Space"]}),T.map((n,s)=>(0,o.jsxs)(u.Z,{sx:{padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",backgroundColor:"light"===t?"rgb(255, 255, 255)":"rgb(72, 72, 72)",borderTop:"3px solid rgb(82, 196, 26)",flexShrink:0,flexGrow:0,cursor:"pointer","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(n.name))},children:[(0,o.jsxs)(u.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,o.jsx)(l.Z,{sx:{marginRight:"5px"}}),n.name]}),(0,o.jsxs)(u.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,o.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(u.Z,{sx:{color:"black"},children:n.vector_type}),(0,o.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,o.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(u.Z,{sx:{color:"black"},children:n.owner}),(0,o.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,o.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(u.Z,{sx:{color:"black"},children:n.docs||0}),(0,o.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]})]},s)),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{})]})}),(0,o.jsx)(m.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:R,onClose:()=>A(!1),children:(0,o.jsxs)(h.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,o.jsx)(u.Z,{sx:{width:"100%"},children:(0,o.jsx)(f.Z,{spacing:2,direction:"row",children:k.map((e,t)=>(0,o.jsxs)(v,{sx:{fontWeight:n===t?"bold":"",color:n===t?"#814DDE":""},children:[tz(e.target.value)})]}),(0,o.jsx)(b.Z,{variant:"outlined",onClick:async()=>{if(""===B){x.ZP.error("please input the name");return}let e=await fetch("".concat(Z.env.API_BASE_URL,"/knowledge/space/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:B,vector_type:"Chroma",owner:"keting",desc:"test1"})}),t=await e.json();if(t.success){x.ZP.success("success"),d(1);let e=await fetch("".concat(Z.env.API_BASE_URL,"/knowledge/space/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),t=await e.json();t.success&&O(t.data)}else x.ZP.error(t.err_msg||"failed")},children:"Next"})]}):1===n?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(u.Z,{sx:{margin:"30px auto"},children:C.map(e=>(0,o.jsxs)(h.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{_(e.type),d(2)},children:[(0,o.jsx)(h.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,o.jsx)(h.Z,{children:e.subTitle})]},e.type))})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(u.Z,{sx:{margin:"30px auto"},children:["Name:",(0,o.jsx)(j.ZP,{placeholder:"Please input the name",onChange:e=>L(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===p?(0,o.jsxs)(o.Fragment,{children:["Web Page URL:",(0,o.jsx)(j.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>E(e.target.value)})]}):"file"===p?(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(P,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){V(null),L("");return}V(e.file.originFileObj),L(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,o.jsx)("p",{className:"ant-upload-drag-icon",children:(0,o.jsx)(i.Z,{})}),(0,o.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,o.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,o.jsxs)(o.Fragment,{children:["Text Source(Optional):",(0,o.jsx)(j.ZP,{placeholder:"Please input the text source",onChange:e=>D(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,o.jsx)(S.Z,{onChange:e=>W(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,o.jsx)(w.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,o.jsx)(y.Z,{checked:M,onChange:e=>G(e.target.checked)}),children:"Synch:"})]}),(0,o.jsxs)(f.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,o.jsx)(b.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>d(1),children:"< Back"}),(0,o.jsx)(b.Z,{variant:"outlined",onClick:async()=>{if(""===U){x.ZP.error("Please input the name");return}if("webPage"===p){if(""===N){x.ZP.error("Please input the Web Page URL");return}let e=await fetch("".concat(Z.env.API_BASE_URL,"/knowledge/").concat(B,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:U,content:N,doc_type:"URL"})}),t=await e.json();t.success?(x.ZP.success("success"),A(!1),M&&fetch("".concat(Z.env.API_BASE_URL,"/knowledge/").concat(B,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[t.data]})})):x.ZP.error(t.err_msg||"failed")}else if("file"===p){if(!J){x.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",U),e.append("doc_file",J),e.append("doc_type","DOCUMENT");let t=await fetch("".concat(Z.env.API_BASE_URL,"/knowledge/").concat(B,"/document/upload"),{method:"POST",body:e}),n=await t.json();n.success?(x.ZP.success("success"),A(!1),M&&fetch("".concat(Z.env.API_BASE_URL,"/knowledge/").concat(B,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[n.data]})})):x.ZP.error(n.err_msg||"failed")}else{if(""===I){x.ZP.error("Please input the text");return}let e=await fetch("".concat(Z.env.API_BASE_URL,"/knowledge/").concat(B,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:U,source:F,content:I,doc_type:"TEXT"})}),t=await e.json();t.success?(x.ZP.success("success"),A(!1),M&&fetch("".concat(Z.env.API_BASE_URL,"/knowledge/").concat(B,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[t.data]})})):x.ZP.error(t.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}}},function(e){e.O(0,[797,577,86,693,118,672,642,253,769,744],function(){return e(e.s=31982)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-826697a85e728a5c.js b/pilot/server/static/_next/static/chunks/app/datastores/page-826697a85e728a5c.js new file mode 100644 index 000000000..3c1b7a0b3 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/datastores/page-826697a85e728a5c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{29382:function(e,t,n){"use strict";var r=n(78997);t.Z=void 0;var s=r(n(76906)),o=n(9268),i=(0,s.default)([(0,o.jsx)("path",{d:"M5 5h2v3h10V5h2v5h2V5c0-1.1-.9-2-2-2h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v-2H5V5zm7-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),(0,o.jsx)("path",{d:"M20.3 18.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S12 14 12 16.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l2.7 2.7 1.4-1.4-2.7-2.7zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z"},"1")],"ContentPasteSearchOutlined");t.Z=i},31982:function(e,t,n){Promise.resolve().then(n.bind(n,44323))},44323:function(e,t,n){"use strict";n.r(t);var r=n(9268),s=n(56008),o=n(86006),i=n(72474),a=n(59534),c=n(29382),l=n(50157),d=n(21628),x=n(50645),p=n(5737),h=n(78635),u=n(90545),g=n(70900),m=n(11437),f=n(35086),j=n(53113),b=n(866),Z=n(22046),P=n(28086),w=n(78915);let{Dragger:y}=l.default,k=(0,x.Z)(p.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),S=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],v=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,s.useRouter)(),{mode:t}=(0,h.tv)(),[n,l]=(0,o.useState)(0),[x,F]=(0,o.useState)(""),[R,C]=(0,o.useState)([]),[_,z]=(0,o.useState)(!1),[E,N]=(0,o.useState)(""),[T,D]=(0,o.useState)(""),[A,O]=(0,o.useState)(""),[B,W]=(0,o.useState)(""),[U,L]=(0,o.useState)(""),[G,M]=(0,o.useState)(null),[V,I]=(0,o.useState)(!0);return(0,o.useEffect)(()=>{(async function(){let e=await (0,w.PR)("/knowledge/space/list");e.success&&C(e.data)})()},[]),(0,r.jsxs)(u.Z,{sx:{width:"100%",height:"100%"},className:"bg-[#F1F2F5] dark:bg-[#212121]",children:[(0,r.jsx)(u.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,r.jsxs)(g.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,r.jsxs)(u.Z,{sx:{display:"flex",alignContent:"start",boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"16px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>z(!0),className:"bg-[#E9EBEE] dark:bg-[#484848]",children:[(0,r.jsx)(u.Z,{sx:{width:"32px",height:"32px",lineHeight:"28px",border:"1px solid gray",textAlign:"center",borderRadius:"5px",marginRight:"5px",fontWeight:"300"},children:"+"}),(0,r.jsx)(u.Z,{sx:{fontSize:"16px"},children:"space"})]}),R.map((t,n)=>(0,r.jsxs)(u.Z,{sx:{padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",borderTop:"4px solid rgb(84, 164, 248)",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"10px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(t.name))},className:"bg-[#FFFFFF] dark:bg-[#484848]",children:[(0,r.jsxs)(u.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,r.jsx)(c.Z,{sx:{marginRight:"5px",color:"#2AA3FF"}}),t.name]}),(0,r.jsxs)(u.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,r.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,r.jsx)(u.Z,{sx:{color:"#2AA3FF"},children:t.vector_type}),(0,r.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,r.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,r.jsx)(u.Z,{sx:{color:"#2AA3FF"},children:t.owner}),(0,r.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,r.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,r.jsx)(u.Z,{sx:{color:"#2AA3FF"},children:t.docs||0}),(0,r.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]})]},n)),(0,r.jsx)("i",{}),(0,r.jsx)("i",{}),(0,r.jsx)("i",{}),(0,r.jsx)("i",{}),(0,r.jsx)("i",{})]})}),(0,r.jsx)(m.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:_,onClose:()=>z(!1),children:(0,r.jsxs)(p.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,r.jsx)(u.Z,{sx:{width:"100%"},children:(0,r.jsx)(g.Z,{spacing:2,direction:"row",children:S.map((e,t)=>(0,r.jsxs)(k,{sx:{fontWeight:n===t?"bold":"",color:n===t?"#814DDE":""},children:[tN(e.target.value)})]}),(0,r.jsx)(j.Z,{variant:"outlined",onClick:async()=>{if(""===E){d.ZP.error("please input the name");return}let e=await (0,w.PR)("/knowledge/space/add",{name:E,vector_type:"Chroma",owner:"keting",desc:"test1"});if(e.success){d.ZP.success("success"),l(1);let e=await (0,w.PR)("/knowledge/space/list");e.success&&C(e.data)}else d.ZP.error(e.err_msg||"failed")},children:"Next"})]}):1===n?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(u.Z,{sx:{margin:"30px auto"},children:v.map(e=>(0,r.jsxs)(p.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{F(e.type),l(2)},children:[(0,r.jsx)(p.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,r.jsx)(p.Z,{children:e.subTitle})]},e.type))})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(u.Z,{sx:{margin:"30px auto"},children:["Name:",(0,r.jsx)(f.ZP,{placeholder:"Please input the name",onChange:e=>O(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===x?(0,r.jsxs)(r.Fragment,{children:["Web Page URL:",(0,r.jsx)(f.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>D(e.target.value)})]}):"file"===x?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(y,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){M(null),O("");return}M(e.file.originFileObj),O(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,r.jsx)("p",{className:"ant-upload-drag-icon",children:(0,r.jsx)(i.Z,{})}),(0,r.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,r.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,r.jsxs)(r.Fragment,{children:["Text Source(Optional):",(0,r.jsx)(f.ZP,{placeholder:"Please input the text source",onChange:e=>W(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,r.jsx)(b.Z,{onChange:e=>L(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,r.jsx)(Z.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,r.jsx)(P.Z,{checked:V,onChange:e=>I(e.target.checked)}),children:"Synch:"})]}),(0,r.jsxs)(g.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,r.jsx)(j.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>l(1),children:"< Back"}),(0,r.jsx)(j.Z,{variant:"outlined",onClick:async()=>{if(""===A){d.ZP.error("Please input the name");return}if("webPage"===x){if(""===T){d.ZP.error("Please input the Web Page URL");return}let e=await (0,w.PR)("/knowledge/".concat(E,"/document/add"),{doc_name:A,content:T,doc_type:"URL"});e.success?(d.ZP.success("success"),z(!1),V&&(0,w.PR)("/knowledge/".concat(E,"/document/sync"),{doc_ids:[e.data]})):d.ZP.error(e.err_msg||"failed")}else if("file"===x){if(!G){d.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",A),e.append("doc_file",G),e.append("doc_type","DOCUMENT");let t=await (0,w.Ej)("/knowledge/".concat(E,"/document/upload"),e);t.success?(d.ZP.success("success"),z(!1),V&&(0,w.PR)("/knowledge/".concat(E,"/document/sync"),{doc_ids:[t.data]})):d.ZP.error(t.err_msg||"failed")}else{if(""===U){d.ZP.error("Please input the text");return}let e=await (0,w.PR)("/knowledge/".concat(E,"/document/add"),{doc_name:A,source:B,content:U,doc_type:"TEXT"});e.success?(d.ZP.success("success"),z(!1),V&&(0,w.PR)("/knowledge/".concat(E,"/document/sync"),{doc_ids:[e.data]})):d.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}},78915:function(e,t,n){"use strict";n.d(t,{Tk:function(){return d},Kw:function(){return x},PR:function(){return p},Ej:function(){return h}});var r=n(21628),s=n(24214),o=n(52040);let i=s.Z.create({baseURL:o.env.API_BASE_URL});i.defaults.timeout=1e4,i.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=n(84835);let c={"content-type":"application/json"},l=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let n=t[e];"string"==typeof n&&(t[e]=n.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let n=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");n&&(e+="?".concat(n))}return i.get("/api"+e,{headers:c}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},x=(e,t)=>{let n=l(t);return i.post("/api"+e,{body:n,headers:c}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},p=(e,t)=>{let n=l(t);return i.post(e,{body:n,headers:c}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},h=(e,t)=>i.post(e,{body:t}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,797,577,214,86,693,118,672,642,253,769,744],function(){return e(e.s=31982)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-84d5a7826bef9983.js b/pilot/server/static/_next/static/chunks/app/datastores/page-84d5a7826bef9983.js deleted file mode 100644 index 2b2729335..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/page-84d5a7826bef9983.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{25123:function(e,t,o){"use strict";var n=o(78997);t.Z=void 0;var a=n(o(76906)),i=o(9268),s=(0,a.default)((0,i.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-8-2h2v-4h4v-2h-4V7h-2v4H7v2h4z"}),"AddBoxOutlined");t.Z=s},29382:function(e,t,o){"use strict";var n=o(78997);t.Z=void 0;var a=n(o(76906)),i=o(9268),s=(0,a.default)([(0,i.jsx)("path",{d:"M5 5h2v3h10V5h2v5h2V5c0-1.1-.9-2-2-2h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v-2H5V5zm7-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),(0,i.jsx)("path",{d:"M20.3 18.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S12 14 12 16.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l2.7 2.7 1.4-1.4-2.7-2.7zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z"},"1")],"ContentPasteSearchOutlined");t.Z=s},31982:function(e,t,o){Promise.resolve().then(o.bind(o,44323))},44323:function(e,t,o){"use strict";o.r(t);var n=o(9268),a=o(56008),i=o(86006),s=o(72474),r=o(59534),c=o(25123),l=o(29382),d=o(50157),x=o(21628),p=o(50645),h=o(5737),g=o(78635),u=o(90545),m=o(70900),w=o(11437),f=o(35086),j=o(53113),b=o(866),y=o(22046),Z=o(28086);let{Dragger:S}=d.default,P=(0,p.Z)(h.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),k=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],C=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,a.useRouter)(),{mode:t}=(0,g.tv)(),[o,d]=(0,i.useState)(0),[p,v]=(0,i.useState)(""),[T,O]=(0,i.useState)([]),[_,z]=(0,i.useState)(!1),[N,$]=(0,i.useState)(""),[R,F]=(0,i.useState)(""),[D,B]=(0,i.useState)(""),[W,E]=(0,i.useState)(""),[J,U]=(0,i.useState)(""),[V,L]=(0,i.useState)(null),[M,G]=(0,i.useState)(!0);return(0,i.useEffect)(()=>{(async function(){let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/space/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),t=await e.json();t.success&&O(t.data)})()},[]),(0,n.jsxs)(u.Z,{sx:{width:"100%",height:"100%",backgroundColor:"light"===t?"rgb(238, 240, 245)":"rgb(33, 33, 33)"},children:[(0,n.jsx)(u.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,n.jsxs)(u.Z,{sx:{boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",backgroundColor:"light"===t?"rgb(224, 228, 237)":"rgb(72, 72, 72)",flexShrink:0,flexGrow:0,cursor:"pointer","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>z(!0),children:[(0,n.jsx)(c.Z,{sx:{marginRight:"10px",fontSize:"30px"}}),"Space"]}),T.map((o,a)=>(0,n.jsxs)(u.Z,{sx:{padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",backgroundColor:"light"===t?"rgb(255, 255, 255)":"rgb(72, 72, 72)",borderTop:"3px solid rgb(82, 196, 26)",flexShrink:0,flexGrow:0,cursor:"pointer","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(o.name))},children:[(0,n.jsxs)(u.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,n.jsx)(l.Z,{sx:{marginRight:"5px"}}),o.name]}),(0,n.jsxs)(u.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,n.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(u.Z,{sx:{color:"black"},children:o.vector_type}),(0,n.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,n.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(u.Z,{sx:{color:"black"},children:o.owner}),(0,n.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,n.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(u.Z,{sx:{color:"black"},children:o.docs||0}),(0,n.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]})]},a)),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{})]})}),(0,n.jsx)(w.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:_,onClose:()=>z(!1),children:(0,n.jsxs)(h.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,n.jsx)(u.Z,{sx:{width:"100%"},children:(0,n.jsx)(m.Z,{spacing:2,direction:"row",children:k.map((e,t)=>(0,n.jsxs)(P,{sx:{fontWeight:o===t?"bold":"",color:o===t?"#814DDE":""},children:[t$(e.target.value)})]}),(0,n.jsx)(j.Z,{variant:"outlined",onClick:async()=>{if(""===N){x.ZP.error("please input the name");return}let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/space/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:N,vector_type:"Chroma",owner:"keting",desc:"test1"})}),t=await e.json();if(t.success){x.ZP.success("success"),d(1);let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/space/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),t=await e.json();t.success&&O(t.data)}else x.ZP.error(t.err_msg||"failed")},children:"Next"})]}):1===o?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(u.Z,{sx:{margin:"30px auto"},children:C.map(e=>(0,n.jsxs)(h.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{v(e.type),d(2)},children:[(0,n.jsx)(h.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,n.jsx)(h.Z,{children:e.subTitle})]},e.type))})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(u.Z,{sx:{margin:"30px auto"},children:["Name:",(0,n.jsx)(f.ZP,{placeholder:"Please input the name",onChange:e=>B(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===p?(0,n.jsxs)(n.Fragment,{children:["Web Page URL:",(0,n.jsx)(f.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>F(e.target.value)})]}):"file"===p?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(S,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){L(null),B("");return}L(e.file.originFileObj),B(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,n.jsx)("p",{className:"ant-upload-drag-icon",children:(0,n.jsx)(s.Z,{})}),(0,n.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,n.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,n.jsxs)(n.Fragment,{children:["Text Source(Optional):",(0,n.jsx)(f.ZP,{placeholder:"Please input the text source",onChange:e=>E(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,n.jsx)(b.Z,{onChange:e=>U(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,n.jsx)(y.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,n.jsx)(Z.Z,{checked:M,onChange:e=>G(e.target.checked)}),children:"Synch:"})]}),(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,n.jsx)(j.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>d(1),children:"< Back"}),(0,n.jsx)(j.Z,{variant:"outlined",onClick:async()=>{if(""===D){x.ZP.error("Please input the name");return}if("webPage"===p){if(""===R){x.ZP.error("Please input the Web Page URL");return}let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(N,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:D,content:R,doc_type:"URL"})}),t=await e.json();t.success?(x.ZP.success("success"),z(!1),M&&fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(N,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[t.data]})})):x.ZP.error(t.err_msg||"failed")}else if("file"===p){if(!V){x.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",D),e.append("doc_file",V),e.append("doc_type","DOCUMENT");let t=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(N,"/document/upload"),{method:"POST",body:e}),o=await t.json();o.success?(x.ZP.success("success"),z(!1),M&&fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(N,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[o.data]})})):x.ZP.error(o.err_msg||"failed")}else{if(""===J){x.ZP.error("Please input the text");return}let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(N,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:D,source:W,content:J,doc_type:"TEXT"})}),t=await e.json();t.success?(x.ZP.success("success"),z(!1),M&&fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(N,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[t.data]})})):x.ZP.error(t.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}}},function(e){e.O(0,[430,577,86,693,118,672,642,253,769,744],function(){return e(e.s=31982)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-a19a0b3ef6d9cc2f.js b/pilot/server/static/_next/static/chunks/app/datastores/page-a19a0b3ef6d9cc2f.js deleted file mode 100644 index fefce74cc..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/page-a19a0b3ef6d9cc2f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{25123:function(e,t,n){"use strict";var o=n(78997);t.Z=void 0;var s=o(n(76906)),a=n(9268),i=(0,s.default)((0,a.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-8-2h2v-4h4v-2h-4V7h-2v4H7v2h4z"}),"AddBoxOutlined");t.Z=i},29382:function(e,t,n){"use strict";var o=n(78997);t.Z=void 0;var s=o(n(76906)),a=n(9268),i=(0,s.default)([(0,a.jsx)("path",{d:"M5 5h2v3h10V5h2v5h2V5c0-1.1-.9-2-2-2h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v-2H5V5zm7-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),(0,a.jsx)("path",{d:"M20.3 18.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S12 14 12 16.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l2.7 2.7 1.4-1.4-2.7-2.7zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z"},"1")],"ContentPasteSearchOutlined");t.Z=i},31982:function(e,t,n){Promise.resolve().then(n.bind(n,44323))},44323:function(e,t,n){"use strict";n.r(t);var o=n(9268),s=n(56008),a=n(86006),i=n(72474),r=n(59534),c=n(25123),l=n(29382),d=n(50157),x=n(21628),h=n(50645),p=n(5737),g=n(78635),u=n(90545),f=n(70900),m=n(11437),j=n(35086),b=n(53113),w=n(866),y=n(22046),Z=n(28086);let{Dragger:S}=d.default,P=(0,h.Z)(p.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),k=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],C=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,s.useRouter)(),{mode:t}=(0,g.tv)(),[n,d]=(0,a.useState)(0),[h,v]=(0,a.useState)(""),[T,O]=(0,a.useState)([]),[_,z]=(0,a.useState)(!1),[N,R]=(0,a.useState)(""),[F,D]=(0,a.useState)(""),[B,W]=(0,a.useState)(""),[E,J]=(0,a.useState)(""),[U,V]=(0,a.useState)(""),[L,M]=(0,a.useState)(null),[G,H]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{(async function(){let e=await fetch("".concat("http://localhost:5000","/knowledge/space/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),t=await e.json();t.success&&O(t.data)})()},[]),(0,o.jsxs)(u.Z,{sx:{width:"100%",height:"100%",backgroundColor:"light"===t?"rgb(238, 240, 245)":"rgb(33, 33, 33)"},children:[(0,o.jsx)(u.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,o.jsxs)(f.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,o.jsxs)(u.Z,{sx:{boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",backgroundColor:"light"===t?"rgb(224, 228, 237)":"rgb(72, 72, 72)",flexShrink:0,flexGrow:0,cursor:"pointer","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>z(!0),children:[(0,o.jsx)(c.Z,{sx:{marginRight:"10px",fontSize:"30px"}}),"Space"]}),T.map((n,s)=>(0,o.jsxs)(u.Z,{sx:{padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",backgroundColor:"light"===t?"rgb(255, 255, 255)":"rgb(72, 72, 72)",borderTop:"3px solid rgb(82, 196, 26)",flexShrink:0,flexGrow:0,cursor:"pointer","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(n.name))},children:[(0,o.jsxs)(u.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,o.jsx)(l.Z,{sx:{marginRight:"5px"}}),n.name]}),(0,o.jsxs)(u.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,o.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(u.Z,{sx:{color:"black"},children:n.vector_type}),(0,o.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,o.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(u.Z,{sx:{color:"black"},children:n.owner}),(0,o.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,o.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(u.Z,{sx:{color:"black"},children:n.docs||0}),(0,o.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]})]},s)),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{})]})}),(0,o.jsx)(m.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:_,onClose:()=>z(!1),children:(0,o.jsxs)(p.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,o.jsx)(u.Z,{sx:{width:"100%"},children:(0,o.jsx)(f.Z,{spacing:2,direction:"row",children:k.map((e,t)=>(0,o.jsxs)(P,{sx:{fontWeight:n===t?"bold":"",color:n===t?"#814DDE":""},children:[tR(e.target.value)})]}),(0,o.jsx)(b.Z,{variant:"outlined",onClick:async()=>{if(""===N){x.ZP.error("please input the name");return}let e=await fetch("".concat("http://localhost:5000","/knowledge/space/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:N,vector_type:"Chroma",owner:"keting",desc:"test1"})}),t=await e.json();if(t.success){x.ZP.success("success"),d(1);let e=await fetch("".concat("http://localhost:5000","/knowledge/space/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),t=await e.json();t.success&&O(t.data)}else x.ZP.error(t.err_msg||"failed")},children:"Next"})]}):1===n?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(u.Z,{sx:{margin:"30px auto"},children:C.map(e=>(0,o.jsxs)(p.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{v(e.type),d(2)},children:[(0,o.jsx)(p.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,o.jsx)(p.Z,{children:e.subTitle})]},e.type))})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(u.Z,{sx:{margin:"30px auto"},children:["Name:",(0,o.jsx)(j.ZP,{placeholder:"Please input the name",onChange:e=>W(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===h?(0,o.jsxs)(o.Fragment,{children:["Web Page URL:",(0,o.jsx)(j.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>D(e.target.value)})]}):"file"===h?(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(S,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){M(null),W("");return}M(e.file.originFileObj),W(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,o.jsx)("p",{className:"ant-upload-drag-icon",children:(0,o.jsx)(i.Z,{})}),(0,o.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,o.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,o.jsxs)(o.Fragment,{children:["Text Source(Optional):",(0,o.jsx)(j.ZP,{placeholder:"Please input the text source",onChange:e=>J(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,o.jsx)(w.Z,{onChange:e=>V(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,o.jsx)(y.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,o.jsx)(Z.Z,{checked:G,onChange:e=>H(e.target.checked)}),children:"Synch:"})]}),(0,o.jsxs)(f.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,o.jsx)(b.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>d(1),children:"< Back"}),(0,o.jsx)(b.Z,{variant:"outlined",onClick:async()=>{if(""===B){x.ZP.error("Please input the name");return}if("webPage"===h){if(""===F){x.ZP.error("Please input the Web Page URL");return}let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(N,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:B,content:F,doc_type:"URL"})}),t=await e.json();t.success?(x.ZP.success("success"),z(!1),G&&fetch("".concat("http://localhost:5000","/knowledge/").concat(N,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[t.data]})})):x.ZP.error(t.err_msg||"failed")}else if("file"===h){if(!L){x.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",B),e.append("doc_file",L),e.append("doc_type","DOCUMENT");let t=await fetch("".concat("http://localhost:5000","/knowledge/").concat(N,"/document/upload"),{method:"POST",body:e}),n=await t.json();n.success?(x.ZP.success("success"),z(!1),G&&fetch("".concat("http://localhost:5000","/knowledge/").concat(N,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[n.data]})})):x.ZP.error(n.err_msg||"failed")}else{if(""===U){x.ZP.error("Please input the text");return}let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(N,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:B,source:E,content:U,doc_type:"TEXT"})}),t=await e.json();t.success?(x.ZP.success("success"),z(!1),G&&fetch("".concat("http://localhost:5000","/knowledge/").concat(N,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[t.data]})})):x.ZP.error(t.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}}},function(e){e.O(0,[430,577,86,693,118,672,642,253,769,744],function(){return e(e.s=31982)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-f80c26174f4684ec.js b/pilot/server/static/_next/static/chunks/app/datastores/page-f80c26174f4684ec.js deleted file mode 100644 index 95eecb278..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/page-f80c26174f4684ec.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{25123:function(e,t,n){"use strict";var o=n(78997);t.Z=void 0;var s=o(n(76906)),a=n(9268),i=(0,s.default)((0,a.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-8-2h2v-4h4v-2h-4V7h-2v4H7v2h4z"}),"AddBoxOutlined");t.Z=i},29382:function(e,t,n){"use strict";var o=n(78997);t.Z=void 0;var s=o(n(76906)),a=n(9268),i=(0,s.default)([(0,a.jsx)("path",{d:"M5 5h2v3h10V5h2v5h2V5c0-1.1-.9-2-2-2h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v-2H5V5zm7-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),(0,a.jsx)("path",{d:"M20.3 18.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S12 14 12 16.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l2.7 2.7 1.4-1.4-2.7-2.7zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z"},"1")],"ContentPasteSearchOutlined");t.Z=i},31982:function(e,t,n){Promise.resolve().then(n.bind(n,44323))},44323:function(e,t,n){"use strict";n.r(t);var o=n(9268),s=n(56008),a=n(86006),i=n(72474),r=n(59534),c=n(25123),l=n(29382),d=n(50157),x=n(21628),p=n(50645),h=n(5737),g=n(78635),u=n(90545),f=n(70900),m=n(11437),j=n(35086),b=n(53113),w=n(866),y=n(22046),Z=n(28086);let{Dragger:S}=d.default,P=(0,p.Z)(h.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),k=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],C=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,s.useRouter)(),{mode:t}=(0,g.tv)(),[n,d]=(0,a.useState)(0),[p,v]=(0,a.useState)(""),[T,O]=(0,a.useState)([]),[_,z]=(0,a.useState)(!1),[N,R]=(0,a.useState)(""),[F,D]=(0,a.useState)(""),[B,W]=(0,a.useState)(""),[E,J]=(0,a.useState)(""),[U,V]=(0,a.useState)(""),[L,M]=(0,a.useState)(null),[G,H]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{(async function(){let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/space/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),t=await e.json();t.success&&O(t.data)})()},[]),(0,o.jsxs)(u.Z,{sx:{width:"100%",height:"100%",backgroundColor:"light"===t?"rgb(238, 240, 245)":"rgb(33, 33, 33)"},children:[(0,o.jsx)(u.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,o.jsxs)(f.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,o.jsxs)(u.Z,{sx:{boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",backgroundColor:"light"===t?"rgb(224, 228, 237)":"rgb(72, 72, 72)",flexShrink:0,flexGrow:0,cursor:"pointer","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>z(!0),children:[(0,o.jsx)(c.Z,{sx:{marginRight:"10px",fontSize:"30px"}}),"Space"]}),T.map((n,s)=>(0,o.jsxs)(u.Z,{sx:{padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",backgroundColor:"light"===t?"rgb(255, 255, 255)":"rgb(72, 72, 72)",borderTop:"3px solid rgb(82, 196, 26)",flexShrink:0,flexGrow:0,cursor:"pointer","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(n.name))},children:[(0,o.jsxs)(u.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,o.jsx)(l.Z,{sx:{marginRight:"5px"}}),n.name]}),(0,o.jsxs)(u.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,o.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(u.Z,{sx:{color:"black"},children:n.vector_type}),(0,o.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,o.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(u.Z,{sx:{color:"black"},children:n.owner}),(0,o.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,o.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(u.Z,{sx:{color:"black"},children:n.docs||0}),(0,o.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]})]},s)),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{})]})}),(0,o.jsx)(m.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:_,onClose:()=>z(!1),children:(0,o.jsxs)(h.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,o.jsx)(u.Z,{sx:{width:"100%"},children:(0,o.jsx)(f.Z,{spacing:2,direction:"row",children:k.map((e,t)=>(0,o.jsxs)(P,{sx:{fontWeight:n===t?"bold":"",color:n===t?"#814DDE":""},children:[tR(e.target.value)})]}),(0,o.jsx)(b.Z,{variant:"outlined",onClick:async()=>{if(""===N){x.ZP.error("please input the name");return}let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/space/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:N,vector_type:"Chroma",owner:"keting",desc:"test1"})}),t=await e.json();if(t.success){x.ZP.success("success"),d(1);let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/space/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),t=await e.json();t.success&&O(t.data)}else x.ZP.error(t.err_msg||"failed")},children:"Next"})]}):1===n?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(u.Z,{sx:{margin:"30px auto"},children:C.map(e=>(0,o.jsxs)(h.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{v(e.type),d(2)},children:[(0,o.jsx)(h.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,o.jsx)(h.Z,{children:e.subTitle})]},e.type))})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(u.Z,{sx:{margin:"30px auto"},children:["Name:",(0,o.jsx)(j.ZP,{placeholder:"Please input the name",onChange:e=>W(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===p?(0,o.jsxs)(o.Fragment,{children:["Web Page URL:",(0,o.jsx)(j.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>D(e.target.value)})]}):"file"===p?(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(S,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){M(null),W("");return}M(e.file.originFileObj),W(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,o.jsx)("p",{className:"ant-upload-drag-icon",children:(0,o.jsx)(i.Z,{})}),(0,o.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,o.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,o.jsxs)(o.Fragment,{children:["Text Source(Optional):",(0,o.jsx)(j.ZP,{placeholder:"Please input the text source",onChange:e=>J(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,o.jsx)(w.Z,{onChange:e=>V(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,o.jsx)(y.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,o.jsx)(Z.Z,{checked:G,onChange:e=>H(e.target.checked)}),children:"Synch:"})]}),(0,o.jsxs)(f.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,o.jsx)(b.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>d(1),children:"< Back"}),(0,o.jsx)(b.Z,{variant:"outlined",onClick:async()=>{if(""===B){x.ZP.error("Please input the name");return}if("webPage"===p){if(""===F){x.ZP.error("Please input the Web Page URL");return}let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(N,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:B,content:F,doc_type:"URL"})}),t=await e.json();t.success?(x.ZP.success("success"),z(!1),G&&fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(N,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[t.data]})})):x.ZP.error(t.err_msg||"failed")}else if("file"===p){if(!L){x.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",B),e.append("doc_file",L),e.append("doc_type","DOCUMENT");let t=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(N,"/document/upload"),{method:"POST",body:e}),n=await t.json();n.success?(x.ZP.success("success"),z(!1),G&&fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(N,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[n.data]})})):x.ZP.error(n.err_msg||"failed")}else{if(""===U){x.ZP.error("Please input the text");return}let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(N,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:B,source:E,content:U,doc_type:"TEXT"})}),t=await e.json();t.success?(x.ZP.success("success"),z(!1),G&&fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(N,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[t.data]})})):x.ZP.error(t.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}}},function(e){e.O(0,[430,577,86,693,118,672,642,253,769,744],function(){return e(e.s=31982)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/layout-1851fcd483733ee4.js b/pilot/server/static/_next/static/chunks/app/layout-1851fcd483733ee4.js new file mode 100644 index 000000000..bea0b3a89 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/layout-1851fcd483733ee4.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{72431:function(){},91541:function(e,t,r){Promise.resolve().then(r.bind(r,50902))},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return d},Cg:function(){return o}});var n=r(9268),i=r(89081),s=r(78915),l=r(86006);let[o,a]=function(){let e=l.createContext(void 0);return[function(){let t=l.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var d=e=>{let{children:t}=e,{run:r,data:l,refresh:o}=(0,i.Z)(async()=>await (0,s.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(a,{value:{dialogueList:l,queryDialogueList:r,refreshDialogList:o},children:t})}},50902:function(e,t,r){"use strict";let n,i;r.r(t),r.d(t,{default:function(){return K}});var s=r(9268);r(97402),r(23517);var l=r(86006),o=r(56008),a=r(35846),d=r.n(a),c=r(20837),u=r(78635),f=r(90545),h=r(22046),x=r(53113),m=r(18818),p=r(4882),v=r(70092),j=r(64579),g=r(53047),b=r(62921),y=r(40020),Z=r(11515),w=r(84892),k=r(601),C=r(1301),B=r(98703),P=r(57931),N=r(66664),_=r(78915),E=()=>{var e;let t=(0,o.usePathname)(),r=(0,o.useSearchParams)(),n=r.get("id"),i=(0,o.useRouter)(),{dialogueList:a,queryDialogueList:E,refreshDialogList:D}=(0,P.Cg)(),{mode:S,setMode:z}=(0,u.tv)(),F=(0,l.useMemo)(()=>[{label:"Knowledge Space",route:"/datastores",icon:(0,s.jsx)(y.Z,{fontSize:"small"}),active:"/datastores"===t}],[t]);return(0,l.useEffect)(()=>{(async()=>{await E()})()},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("nav",{className:"flex h-12 items-center justify-between border-b px-4 dark:border-gray-800 dark:bg-gray-800/70 md:hidden",children:[(0,s.jsx)("div",{children:(0,s.jsx)(k.Z,{})}),(0,s.jsx)("span",{className:"truncate px-4",children:"New Chat"}),(0,s.jsx)("a",{href:"",className:"-mr-3 flex h-9 w-9 shrink-0 items-center justify-center",children:(0,s.jsx)(C.Z,{})})]}),(0,s.jsx)("nav",{className:"grid max-h-screen h-full max-md:hidden",children:(0,s.jsxs)(f.Z,{sx:{display:"flex",flexDirection:"column",borderRight:"1px solid",borderColor:"divider",maxHeight:"100vh",position:"sticky",left:"0px",top:"0px",overflow:"hidden"},children:[(0,s.jsx)(f.Z,{sx:{p:2,gap:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:(0,s.jsx)("div",{className:"flex items-center gap-3",children:(0,s.jsx)(h.ZP,{component:"h1",fontWeight:"xl",children:"DB-GPT"})})}),(0,s.jsx)(f.Z,{sx:{px:2},children:(0,s.jsx)(d(),{href:"/",children:(0,s.jsx)(x.Z,{color:"primary",className:"w-full bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f]",style:{color:"#fff"},children:"+ New Chat"})})}),(0,s.jsx)(f.Z,{sx:{p:2,display:{xs:"none",sm:"initial"},maxHeight:"100%",overflow:"auto"},children:(0,s.jsx)(m.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,s.jsx)(p.Z,{nested:!0,children:(0,s.jsx)(m.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"},gap:"4px"},children:null==a?void 0:null===(e=a.data)||void 0===e?void 0:e.map(e=>{let l=("/chat"===t||"/chat/"===t)&&n===e.conv_uid;return(0,s.jsx)(p.Z,{children:(0,s.jsx)(v.Z,{selected:l,variant:l?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,s.jsx)(j.Z,{children:(0,s.jsxs)(d(),{href:"/chat?id=".concat(e.conv_uid,"&scene=").concat(null==e?void 0:e.chat_mode),className:"flex items-center justify-between",children:[(0,s.jsxs)(h.ZP,{fontSize:14,noWrap:!0,children:[(0,s.jsx)(B.Z,{style:{marginRight:"0.5rem"}}),(null==e?void 0:e.user_name)||(null==e?void 0:e.user_input)||"undefined"]}),(0,s.jsx)(g.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:n=>{n.preventDefault(),n.stopPropagation(),c.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,async onOk(){await (0,_.Kw)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await D(),"/chat"===t&&r.get("id")===e.conv_uid&&i.push("/")}})},className:"del-btn invisible",children:(0,s.jsx)(N.Z,{})})]})})})},e.conv_uid)})})})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-between flex-1",children:[(0,s.jsx)("div",{}),(0,s.jsx)(f.Z,{sx:{p:2,pt:3,pb:6,borderTop:"1px solid",borderColor:"divider",display:{xs:"none",sm:"initial"},position:"sticky",bottom:0,zIndex:100,background:"var(--joy-palette-background-body)"},children:(0,s.jsxs)(m.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,s.jsx)(p.Z,{nested:!0,children:(0,s.jsx)(m.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"}},children:F.map(e=>(0,s.jsx)(d(),{href:e.route,children:(0,s.jsx)(p.Z,{children:(0,s.jsxs)(v.Z,{color:"neutral",sx:{marginBottom:1,height:"2.5rem"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,s.jsx)(b.Z,{sx:{color:e.active?"inherit":"neutral.500"},children:e.icon}),(0,s.jsx)(j.Z,{children:e.label})]})})},e.route))})}),(0,s.jsx)(p.Z,{children:(0,s.jsxs)(v.Z,{sx:{height:"2.5rem"},onClick:()=>{"light"===S?z("dark"):z("light")},children:[(0,s.jsx)(b.Z,{children:"dark"===S?(0,s.jsx)(Z.Z,{fontSize:"small"}):(0,s.jsx)(w.Z,{fontSize:"small"})}),(0,s.jsx)(j.Z,{children:"Theme"})]})})]})})]})]})})]})},D=r(29720),S=r(41287),z=r(38230);let F=(0,S.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...z.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...z.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}});var H=r(53794),L=r.n(H),T=r(54486),I=r.n(T);let O=0;function R(){"loading"!==i&&(i="loading",n=setTimeout(function(){I().start()},250))}function A(){O>0||(i="stop",clearTimeout(n),I().done())}if(L().events.on("routeChangeStart",R),L().events.on("routeChangeComplete",A),L().events.on("routeChangeError",A),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,r=Array(t),n=0;n{if((null==n?void 0:n.current)&&r){var e,t,i,s,l,o;null==n||null===(e=n.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(r),"light"===r?null==n||null===(i=n.current)||void 0===i||null===(s=i.classList)||void 0===s||s.remove("dark"):null==n||null===(l=n.current)||void 0===l||null===(o=l.classList)||void 0===o||o.remove("light")}},[n,r]),(0,s.jsxs)("div",{ref:n,className:"h-full",children:[(0,s.jsx)(J,{}),(0,s.jsx)(P.ZP,{children:(0,s.jsx)("div",{className:"contents h-full",children:(0,s.jsxs)("div",{className:"grid h-full w-screen grid-cols-1 grid-rows-[auto,1fr] overflow-hidden text-smd dark:text-gray-300 md:grid-cols-[280px,1fr] md:grid-rows-[1fr]",children:[(0,s.jsx)(E,{}),(0,s.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]})})})]})}var K=function(e){let{children:t}=e;return(0,s.jsx)("html",{lang:"en",className:"h-full font-sans",children:(0,s.jsx)("body",{className:"h-full font-sans",children:(0,s.jsx)(D.Z,{theme:F,children:(0,s.jsx)(u.lL,{theme:F,defaultMode:"light",children:(0,s.jsx)(W,{children:t})})})})})}},78915:function(e,t,r){"use strict";r.d(t,{Tk:function(){return c},Kw:function(){return u},PR:function(){return f},Ej:function(){return h}});var n=r(21628),i=r(24214),s=r(52040);let l=i.Z.create({baseURL:s.env.API_BASE_URL});l.defaults.timeout=1e4,l.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var o=r(84835);let a={"content-type":"application/json"},d=e=>{if(!(0,o.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return l.get("/api"+e,{headers:a}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let r=d(t);return l.post("/api"+e,{body:r,headers:a}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},f=(e,t)=>{let r=d(t);return l.post(e,{body:r,headers:a}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},h=(e,t)=>l.post(e,{body:t}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},97402:function(){},23517:function(){}},function(e){e.O(0,[180,797,577,214,693,316,440,672,751,216,253,769,744],function(){return e(e.s=91541)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/layout-3463461ae68b31ef.js b/pilot/server/static/_next/static/chunks/app/layout-3463461ae68b31ef.js deleted file mode 100644 index 85563b95c..000000000 --- a/pilot/server/static/_next/static/chunks/app/layout-3463461ae68b31ef.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{72431:function(){},91541:function(e,t,r){Promise.resolve().then(r.bind(r,50902))},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return d},Cg:function(){return a}});var n=r(9268),i=r(89081),l=r(78915),s=r(86006);let[a,o]=function(){let e=s.createContext(void 0);return[function(){let t=s.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var d=e=>{let{children:t}=e,{run:r,data:s,refresh:a}=(0,i.Z)(async()=>await (0,l.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(o,{value:{dialogueList:s,queryDialogueList:r,refreshDialogList:a},children:t})}},50902:function(e,t,r){"use strict";let n,i;r.r(t),r.d(t,{default:function(){return K}});var l=r(9268);r(97402),r(23517);var s=r(86006),a=r(56008),o=r(35846),d=r.n(o),c=r(20837),u=r(78635),f=r(90545),h=r(22046),x=r(53113),m=r(18818),v=r(4882),p=r(70092),g=r(64579),j=r(53047),b=r(62921),y=r(40020),Z=r(11515),w=r(84892),k=r(601),C=r(1301),B=r(98703),N=r(57931),P=r(66664),_=r(78915),D=()=>{var e;let t=(0,a.usePathname)(),r=(0,a.useSearchParams)(),n=r.get("id"),i=(0,a.useRouter)(),{dialogueList:o,queryDialogueList:D,refreshDialogList:E}=(0,N.Cg)(),{mode:S,setMode:z}=(0,u.tv)(),F=(0,s.useMemo)(()=>[{label:"Knowledge Space",route:"/datastores",icon:(0,l.jsx)(y.Z,{fontSize:"small"}),active:"/datastores"===t}],[t]);return(0,s.useEffect)(()=>{(async()=>{await D()})()},[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("nav",{className:"flex h-12 items-center justify-between border-b px-4 dark:border-gray-800 dark:bg-gray-800/70 md:hidden",children:[(0,l.jsx)("div",{children:(0,l.jsx)(k.Z,{})}),(0,l.jsx)("span",{className:"truncate px-4",children:"New Chat"}),(0,l.jsx)("a",{href:"",className:"-mr-3 flex h-9 w-9 shrink-0 items-center justify-center",children:(0,l.jsx)(C.Z,{})})]}),(0,l.jsx)("nav",{className:"grid max-h-screen h-full max-md:hidden",children:(0,l.jsxs)(f.Z,{sx:{display:"flex",flexDirection:"column",borderRight:"1px solid",borderColor:"divider",maxHeight:"100vh",position:"sticky",left:"0px",top:"0px",overflow:"hidden"},children:[(0,l.jsx)(f.Z,{sx:{p:2,gap:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:(0,l.jsx)("div",{className:"flex items-center gap-3",children:(0,l.jsx)(h.ZP,{component:"h1",fontWeight:"xl",children:"DB-GPT"})})}),(0,l.jsx)(f.Z,{sx:{px:2},children:(0,l.jsx)(d(),{href:"/",children:(0,l.jsx)(x.Z,{color:"primary",className:"w-full bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f]",style:{color:"#fff"},children:"+ New Chat"})})}),(0,l.jsx)(f.Z,{sx:{p:2,display:{xs:"none",sm:"initial"},maxHeight:"100%",overflow:"auto"},children:(0,l.jsx)(m.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,l.jsx)(v.Z,{nested:!0,children:(0,l.jsx)(m.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"},gap:"4px"},children:null==o?void 0:null===(e=o.data)||void 0===e?void 0:e.map(e=>{let s=("/chat"===t||"/chat/"===t)&&n===e.conv_uid;return(0,l.jsx)(v.Z,{children:(0,l.jsx)(p.Z,{selected:s,variant:s?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,l.jsx)(g.Z,{children:(0,l.jsxs)(d(),{href:"/chat?id=".concat(e.conv_uid,"&scene=").concat(null==e?void 0:e.chat_mode),className:"flex items-center justify-between",children:[(0,l.jsxs)(h.ZP,{fontSize:14,noWrap:!0,children:[(0,l.jsx)(B.Z,{style:{marginRight:"0.5rem"}}),(null==e?void 0:e.user_name)||(null==e?void 0:e.user_input)||"undefined"]}),(0,l.jsx)(j.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:n=>{n.preventDefault(),n.stopPropagation(),c.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,async onOk(){await (0,_.K)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await E(),"/chat"===t&&r.get("id")===e.conv_uid&&i.push("/")}})},className:"del-btn invisible",children:(0,l.jsx)(P.Z,{})})]})})})},e.conv_uid)})})})})}),(0,l.jsxs)("div",{className:"flex flex-col justify-between flex-1",children:[(0,l.jsx)("div",{}),(0,l.jsx)(f.Z,{sx:{p:2,pt:3,pb:6,borderTop:"1px solid",borderColor:"divider",display:{xs:"none",sm:"initial"},position:"sticky",bottom:0,zIndex:100,background:"var(--joy-palette-background-body)"},children:(0,l.jsxs)(m.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,l.jsx)(v.Z,{nested:!0,children:(0,l.jsx)(m.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"}},children:F.map(e=>(0,l.jsx)(d(),{href:e.route,children:(0,l.jsx)(v.Z,{children:(0,l.jsxs)(p.Z,{color:"neutral",sx:{marginBottom:1,height:"2.5rem"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,l.jsx)(b.Z,{sx:{color:e.active?"inherit":"neutral.500"},children:e.icon}),(0,l.jsx)(g.Z,{children:e.label})]})})},e.route))})}),(0,l.jsx)(v.Z,{children:(0,l.jsxs)(p.Z,{sx:{height:"2.5rem"},onClick:()=>{"light"===S?z("dark"):z("light")},children:[(0,l.jsx)(b.Z,{children:"dark"===S?(0,l.jsx)(Z.Z,{fontSize:"small"}):(0,l.jsx)(w.Z,{fontSize:"small"})}),(0,l.jsx)(g.Z,{children:"Theme"})]})})]})})]})]})})]})},E=r(29720),S=r(41287),z=r(38230);let F=(0,S.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...z.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...z.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}});var H=r(53794),L=r.n(H),T=r(54486),I=r.n(T);let O=0;function A(){"loading"!==i&&(i="loading",n=setTimeout(function(){I().start()},250))}function J(){O>0||(i="stop",clearTimeout(n),I().done())}if(L().events.on("routeChangeStart",A),L().events.on("routeChangeComplete",J),L().events.on("routeChangeError",J),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,r=Array(t),n=0;n{if((null==n?void 0:n.current)&&r){var e,t,i,l,s,a;null==n||null===(e=n.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(r),"light"===r?null==n||null===(i=n.current)||void 0===i||null===(l=i.classList)||void 0===l||l.remove("dark"):null==n||null===(s=n.current)||void 0===s||null===(a=s.classList)||void 0===a||a.remove("light")}},[n,r]),(0,l.jsxs)("div",{ref:n,className:"h-full",children:[(0,l.jsx)(R,{}),(0,l.jsx)(N.ZP,{children:(0,l.jsx)("div",{className:"contents h-full",children:(0,l.jsxs)("div",{className:"grid h-full w-screen grid-cols-1 grid-rows-[auto,1fr] overflow-hidden text-smd dark:text-gray-300 md:grid-cols-[280px,1fr] md:grid-rows-[1fr]",children:[(0,l.jsx)(D,{}),(0,l.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]})})})]})}var K=function(e){let{children:t}=e;return(0,l.jsx)("html",{lang:"en",className:"h-full font-sans",children:(0,l.jsx)("body",{className:"h-full font-sans",children:(0,l.jsx)(E.Z,{theme:F,children:(0,l.jsx)(u.lL,{theme:F,defaultMode:"light",children:(0,l.jsx)(W,{children:t})})})})})}},78915:function(e,t,r){"use strict";r.d(t,{T:function(){return c},K:function(){return u}});var n=r(21628),i=r(24214),l=r(52040);let s=i.Z.create({baseURL:l.env.API_BASE_URL});s.defaults.timeout=1e4,s.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=r(84835);let o={"content-type":"application/json"},d=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return s.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let r=d(t);return s.post("/api"+e,{body:r,headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},97402:function(){},23517:function(){}},function(e){e.O(0,[180,797,577,562,693,440,672,751,216,253,769,744],function(){return e(e.s=91541)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/layout-601c7da47d01f9e4.js b/pilot/server/static/_next/static/chunks/app/layout-601c7da47d01f9e4.js deleted file mode 100644 index ec99acb19..000000000 --- a/pilot/server/static/_next/static/chunks/app/layout-601c7da47d01f9e4.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{72431:function(){},91541:function(e,t,r){Promise.resolve().then(r.bind(r,50902))},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return d},Cg:function(){return o}});var n=r(9268),i=r(89081),l=r(78915),s=r(86006);let[o,a]=function(){let e=s.createContext(void 0);return[function(){let t=s.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var d=e=>{let{children:t}=e,{run:r,data:s,refresh:o}=(0,i.Z)(async()=>await (0,l.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(a,{value:{dialogueList:s,queryDialogueList:r,refreshDialogList:o},children:t})}},50902:function(e,t,r){"use strict";let n,i;r.r(t),r.d(t,{default:function(){return K}});var l=r(9268);r(97402),r(23517);var s=r(86006),o=r(56008),a=r(35846),d=r.n(a),c=r(20837),u=r(78635),f=r(90545),h=r(22046),x=r(53113),m=r(18818),p=r(4882),v=r(70092),g=r(64579),j=r(53047),b=r(62921),y=r(40020),Z=r(11515),w=r(84892),k=r(601),C=r(1301),B=r(98703),N=r(57931),P=r(66664),_=r(78915),D=()=>{var e;let t=(0,o.usePathname)(),r=(0,o.useSearchParams)(),n=r.get("id"),i=(0,o.useRouter)(),{dialogueList:a,queryDialogueList:D,refreshDialogList:E}=(0,N.Cg)(),{mode:S,setMode:z}=(0,u.tv)(),F=(0,s.useMemo)(()=>[{label:"Knowledge Space",route:"/datastores",icon:(0,l.jsx)(y.Z,{fontSize:"small"}),active:"/datastores"===t}],[t]);return(0,s.useEffect)(()=>{(async()=>{await D()})()},[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("nav",{className:"flex h-12 items-center justify-between border-b px-4 dark:border-gray-800 dark:bg-gray-800/70 md:hidden",children:[(0,l.jsx)("div",{children:(0,l.jsx)(k.Z,{})}),(0,l.jsx)("span",{className:"truncate px-4",children:"New Chat"}),(0,l.jsx)("a",{href:"",className:"-mr-3 flex h-9 w-9 shrink-0 items-center justify-center",children:(0,l.jsx)(C.Z,{})})]}),(0,l.jsx)("nav",{className:"grid max-h-screen h-full max-md:hidden",children:(0,l.jsxs)(f.Z,{sx:{display:"flex",flexDirection:"column",borderRight:"1px solid",borderColor:"divider",maxHeight:"100vh",position:"sticky",left:"0px",top:"0px",overflow:"hidden"},children:[(0,l.jsx)(f.Z,{sx:{p:2,gap:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:(0,l.jsx)("div",{className:"flex items-center gap-3",children:(0,l.jsx)(h.ZP,{component:"h1",fontWeight:"xl",children:"DB-GPT"})})}),(0,l.jsx)(f.Z,{sx:{px:2},children:(0,l.jsx)(d(),{href:"/",children:(0,l.jsx)(x.Z,{color:"primary",className:"w-full bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f]",style:{color:"#fff"},children:"+ New Chat"})})}),(0,l.jsx)(f.Z,{sx:{p:2,display:{xs:"none",sm:"initial"},maxHeight:"100%",overflow:"auto"},children:(0,l.jsx)(m.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,l.jsx)(p.Z,{nested:!0,children:(0,l.jsx)(m.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"},gap:"4px"},children:null==a?void 0:null===(e=a.data)||void 0===e?void 0:e.map(e=>{let s=("/chat"===t||"/chat/"===t)&&n===e.conv_uid;return(0,l.jsx)(p.Z,{children:(0,l.jsx)(v.Z,{selected:s,variant:s?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,l.jsx)(g.Z,{children:(0,l.jsxs)(d(),{href:"/chat?id=".concat(e.conv_uid,"&scene=").concat(null==e?void 0:e.chat_mode),className:"flex items-center justify-between",children:[(0,l.jsxs)(h.ZP,{fontSize:14,noWrap:!0,children:[(0,l.jsx)(B.Z,{style:{marginRight:"0.5rem"}}),(null==e?void 0:e.user_name)||(null==e?void 0:e.user_input)||"undefined"]}),(0,l.jsx)(j.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:n=>{n.preventDefault(),n.stopPropagation(),c.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,async onOk(){await (0,_.K)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await E(),"/chat"===t&&r.get("id")===e.conv_uid&&i.push("/")}})},className:"del-btn invisible",children:(0,l.jsx)(P.Z,{})})]})})})},e.conv_uid)})})})})}),(0,l.jsxs)("div",{className:"flex flex-col justify-between flex-1",children:[(0,l.jsx)("div",{}),(0,l.jsx)(f.Z,{sx:{p:2,pt:3,pb:6,borderTop:"1px solid",borderColor:"divider",display:{xs:"none",sm:"initial"},position:"sticky",bottom:0,zIndex:100,background:"var(--joy-palette-background-body)"},children:(0,l.jsxs)(m.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,l.jsx)(p.Z,{nested:!0,children:(0,l.jsx)(m.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"}},children:F.map(e=>(0,l.jsx)(d(),{href:e.route,children:(0,l.jsx)(p.Z,{children:(0,l.jsxs)(v.Z,{color:"neutral",sx:{marginBottom:1,height:"2.5rem"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,l.jsx)(b.Z,{sx:{color:e.active?"inherit":"neutral.500"},children:e.icon}),(0,l.jsx)(g.Z,{children:e.label})]})})},e.route))})}),(0,l.jsx)(p.Z,{children:(0,l.jsxs)(v.Z,{sx:{height:"2.5rem"},onClick:()=>{"light"===S?z("dark"):z("light")},children:[(0,l.jsx)(b.Z,{children:"dark"===S?(0,l.jsx)(Z.Z,{fontSize:"small"}):(0,l.jsx)(w.Z,{fontSize:"small"})}),(0,l.jsx)(g.Z,{children:"Theme"})]})})]})})]})]})})]})},E=r(29720),S=r(41287),z=r(38230);let F=(0,S.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...z.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...z.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}});var H=r(53794),L=r.n(H),T=r(54486),O=r.n(T);let I=0;function J(){"loading"!==i&&(i="loading",n=setTimeout(function(){O().start()},250))}function R(){I>0||(i="stop",clearTimeout(n),O().done())}if(L().events.on("routeChangeStart",J),L().events.on("routeChangeComplete",R),L().events.on("routeChangeError",R),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,r=Array(t),n=0;n{if((null==n?void 0:n.current)&&r){var e,t,i,l,s,o;null==n||null===(e=n.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(r),"light"===r?null==n||null===(i=n.current)||void 0===i||null===(l=i.classList)||void 0===l||l.remove("dark"):null==n||null===(s=n.current)||void 0===s||null===(o=s.classList)||void 0===o||o.remove("light")}},[n,r]),(0,l.jsxs)("div",{ref:n,className:"h-full",children:[(0,l.jsx)(A,{}),(0,l.jsx)(N.ZP,{children:(0,l.jsx)("div",{className:"contents h-full",children:(0,l.jsxs)("div",{className:"grid h-full w-screen grid-cols-1 grid-rows-[auto,1fr] overflow-hidden text-smd dark:text-gray-300 md:grid-cols-[280px,1fr] md:grid-rows-[1fr]",children:[(0,l.jsx)(D,{}),(0,l.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]})})})]})}var K=function(e){let{children:t}=e;return(0,l.jsx)("html",{lang:"en",className:"h-full font-sans",children:(0,l.jsx)("body",{className:"h-full font-sans",children:(0,l.jsx)(E.Z,{theme:F,children:(0,l.jsx)(u.lL,{theme:F,defaultMode:"light",children:(0,l.jsx)(W,{children:t})})})})})}},78915:function(e,t,r){"use strict";r.d(t,{T:function(){return d},K:function(){return c}});var n=r(21628),i=r(24214);let l=i.Z.create({baseURL:"http://${window.location.hostname}:${window.location.port}"});l.defaults.timeout=1e4,l.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=r(84835);let o={"content-type":"application/json"},a=e=>{if(!(0,s.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return l.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},c=(e,t)=>{let r=a(t);return l.post("/api"+e,{body:r,headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},97402:function(){},23517:function(){}},function(e){e.O(0,[180,430,577,562,693,440,672,751,216,253,769,744],function(){return e(e.s=91541)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/layout-686ec2e1c5b2d957.js b/pilot/server/static/_next/static/chunks/app/layout-686ec2e1c5b2d957.js deleted file mode 100644 index a16d57557..000000000 --- a/pilot/server/static/_next/static/chunks/app/layout-686ec2e1c5b2d957.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{72431:function(){},91541:function(e,t,r){Promise.resolve().then(r.bind(r,50902))},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return d},Cg:function(){return a}});var n=r(9268),i=r(89081),l=r(78915),s=r(86006);let[a,o]=function(){let e=s.createContext(void 0);return[function(){let t=s.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var d=e=>{let{children:t}=e,{run:r,data:s,refresh:a}=(0,i.Z)(async()=>await (0,l.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(o,{value:{dialogueList:s,queryDialogueList:r,refreshDialogList:a},children:t})}},50902:function(e,t,r){"use strict";let n,i;r.r(t),r.d(t,{default:function(){return K}});var l=r(9268);r(97402),r(23517);var s=r(86006),a=r(56008),o=r(35846),d=r.n(o),c=r(20837),u=r(78635),f=r(90545),h=r(22046),x=r(53113),m=r(18818),p=r(4882),v=r(70092),g=r(64579),j=r(53047),b=r(62921),y=r(40020),Z=r(11515),w=r(84892),k=r(601),C=r(1301),B=r(98703),N=r(57931),P=r(66664),_=r(78915),D=()=>{var e;let t=(0,a.usePathname)(),r=(0,a.useSearchParams)(),n=r.get("id"),i=(0,a.useRouter)(),{dialogueList:o,queryDialogueList:D,refreshDialogList:E}=(0,N.Cg)(),{mode:S,setMode:z}=(0,u.tv)(),F=(0,s.useMemo)(()=>[{label:"Knowledge Space",route:"/datastores",icon:(0,l.jsx)(y.Z,{fontSize:"small"}),active:"/datastores"===t}],[t]);return(0,s.useEffect)(()=>{(async()=>{await D()})()},[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("nav",{className:"flex h-12 items-center justify-between border-b px-4 dark:border-gray-800 dark:bg-gray-800/70 md:hidden",children:[(0,l.jsx)("div",{children:(0,l.jsx)(k.Z,{})}),(0,l.jsx)("span",{className:"truncate px-4",children:"New Chat"}),(0,l.jsx)("a",{href:"",className:"-mr-3 flex h-9 w-9 shrink-0 items-center justify-center",children:(0,l.jsx)(C.Z,{})})]}),(0,l.jsx)("nav",{className:"grid max-h-screen h-full max-md:hidden",children:(0,l.jsxs)(f.Z,{sx:{display:"flex",flexDirection:"column",borderRight:"1px solid",borderColor:"divider",maxHeight:"100vh",position:"sticky",left:"0px",top:"0px",overflow:"hidden"},children:[(0,l.jsx)(f.Z,{sx:{p:2,gap:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:(0,l.jsx)("div",{className:"flex items-center gap-3",children:(0,l.jsx)(h.ZP,{component:"h1",fontWeight:"xl",children:"DB-GPT"})})}),(0,l.jsx)(f.Z,{sx:{px:2},children:(0,l.jsx)(d(),{href:"/",children:(0,l.jsx)(x.Z,{color:"primary",className:"w-full bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f]",style:{color:"#fff"},children:"+ New Chat"})})}),(0,l.jsx)(f.Z,{sx:{p:2,display:{xs:"none",sm:"initial"},maxHeight:"100%",overflow:"auto"},children:(0,l.jsx)(m.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,l.jsx)(p.Z,{nested:!0,children:(0,l.jsx)(m.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"},gap:"4px"},children:null==o?void 0:null===(e=o.data)||void 0===e?void 0:e.map(e=>{let s=("/chat"===t||"/chat/"===t)&&n===e.conv_uid;return(0,l.jsx)(p.Z,{children:(0,l.jsx)(v.Z,{selected:s,variant:s?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,l.jsx)(g.Z,{children:(0,l.jsxs)(d(),{href:"/chat?id=".concat(e.conv_uid,"&scene=").concat(null==e?void 0:e.chat_mode),className:"flex items-center justify-between",children:[(0,l.jsxs)(h.ZP,{fontSize:14,noWrap:!0,children:[(0,l.jsx)(B.Z,{style:{marginRight:"0.5rem"}}),(null==e?void 0:e.user_name)||(null==e?void 0:e.user_input)||"undefined"]}),(0,l.jsx)(j.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:n=>{n.preventDefault(),n.stopPropagation(),c.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,async onOk(){await (0,_.K)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await E(),"/chat"===t&&r.get("id")===e.conv_uid&&i.push("/")}})},className:"del-btn invisible",children:(0,l.jsx)(P.Z,{})})]})})})},e.conv_uid)})})})})}),(0,l.jsxs)("div",{className:"flex flex-col justify-between flex-1",children:[(0,l.jsx)("div",{}),(0,l.jsx)(f.Z,{sx:{p:2,pt:3,pb:6,borderTop:"1px solid",borderColor:"divider",display:{xs:"none",sm:"initial"},position:"sticky",bottom:0,zIndex:100,background:"var(--joy-palette-background-body)"},children:(0,l.jsxs)(m.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,l.jsx)(p.Z,{nested:!0,children:(0,l.jsx)(m.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"}},children:F.map(e=>(0,l.jsx)(d(),{href:e.route,children:(0,l.jsx)(p.Z,{children:(0,l.jsxs)(v.Z,{color:"neutral",sx:{marginBottom:1,height:"2.5rem"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,l.jsx)(b.Z,{sx:{color:e.active?"inherit":"neutral.500"},children:e.icon}),(0,l.jsx)(g.Z,{children:e.label})]})})},e.route))})}),(0,l.jsx)(p.Z,{children:(0,l.jsxs)(v.Z,{sx:{height:"2.5rem"},onClick:()=>{"light"===S?z("dark"):z("light")},children:[(0,l.jsx)(b.Z,{children:"dark"===S?(0,l.jsx)(Z.Z,{fontSize:"small"}):(0,l.jsx)(w.Z,{fontSize:"small"})}),(0,l.jsx)(g.Z,{children:"Theme"})]})})]})})]})]})})]})},E=r(29720),S=r(41287),z=r(38230);let F=(0,S.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...z.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...z.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}});var H=r(53794),L=r.n(H),T=r(54486),O=r.n(T);let I=0;function J(){"loading"!==i&&(i="loading",n=setTimeout(function(){O().start()},250))}function R(){I>0||(i="stop",clearTimeout(n),O().done())}if(L().events.on("routeChangeStart",J),L().events.on("routeChangeComplete",R),L().events.on("routeChangeError",R),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,r=Array(t),n=0;n{if((null==n?void 0:n.current)&&r){var e,t,i,l,s,a;null==n||null===(e=n.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(r),"light"===r?null==n||null===(i=n.current)||void 0===i||null===(l=i.classList)||void 0===l||l.remove("dark"):null==n||null===(s=n.current)||void 0===s||null===(a=s.classList)||void 0===a||a.remove("light")}},[n,r]),(0,l.jsxs)("div",{ref:n,className:"h-full",children:[(0,l.jsx)(A,{}),(0,l.jsx)(N.ZP,{children:(0,l.jsx)("div",{className:"contents h-full",children:(0,l.jsxs)("div",{className:"grid h-full w-screen grid-cols-1 grid-rows-[auto,1fr] overflow-hidden text-smd dark:text-gray-300 md:grid-cols-[280px,1fr] md:grid-rows-[1fr]",children:[(0,l.jsx)(D,{}),(0,l.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]})})})]})}var K=function(e){let{children:t}=e;return(0,l.jsx)("html",{lang:"en",className:"h-full font-sans",children:(0,l.jsx)("body",{className:"h-full font-sans",children:(0,l.jsx)(E.Z,{theme:F,children:(0,l.jsx)(u.lL,{theme:F,defaultMode:"light",children:(0,l.jsx)(W,{children:t})})})})})}},78915:function(e,t,r){"use strict";r.d(t,{T:function(){return d},K:function(){return c}});var n=r(21628),i=r(24214);let l=i.Z.create({baseURL:"http://localhost:5000"});l.defaults.timeout=1e4,l.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=r(84835);let a={"content-type":"application/json"},o=e=>{if(!(0,s.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return l.get("/api"+e,{headers:a}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},c=(e,t)=>{let r=o(t);return l.post("/api"+e,{body:r,headers:a}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},97402:function(){},23517:function(){}},function(e){e.O(0,[180,430,577,562,693,440,672,751,216,253,769,744],function(){return e(e.s=91541)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/layout-c8df6bd2dbefb573.js b/pilot/server/static/_next/static/chunks/app/layout-c8df6bd2dbefb573.js deleted file mode 100644 index e78be7b9b..000000000 --- a/pilot/server/static/_next/static/chunks/app/layout-c8df6bd2dbefb573.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{72431:function(){},91541:function(e,t,r){Promise.resolve().then(r.bind(r,50902))},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return d},Cg:function(){return a}});var n=r(9268),i=r(89081),l=r(78915),s=r(86006);let[a,o]=function(){let e=s.createContext(void 0);return[function(){let t=s.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var d=e=>{let{children:t}=e,{run:r,data:s,refresh:a}=(0,i.Z)(async()=>await (0,l.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(o,{value:{dialogueList:s,queryDialogueList:r,refreshDialogList:a},children:t})}},50902:function(e,t,r){"use strict";let n,i;r.r(t),r.d(t,{default:function(){return K}});var l=r(9268);r(97402),r(23517);var s=r(86006),a=r(56008),o=r(35846),d=r.n(o),c=r(20837),u=r(78635),f=r(90545),h=r(22046),x=r(53113),m=r(18818),p=r(4882),v=r(70092),g=r(64579),j=r(53047),b=r(62921),y=r(40020),Z=r(11515),w=r(84892),k=r(601),C=r(1301),B=r(98703),N=r(57931),P=r(66664),_=r(78915),D=()=>{var e;let t=(0,a.usePathname)(),r=(0,a.useSearchParams)(),n=r.get("id"),i=(0,a.useRouter)(),{dialogueList:o,queryDialogueList:D,refreshDialogList:E}=(0,N.Cg)(),{mode:S,setMode:z}=(0,u.tv)(),F=(0,s.useMemo)(()=>[{label:"Knowledge Space",route:"/datastores",icon:(0,l.jsx)(y.Z,{fontSize:"small"}),active:"/datastores"===t}],[t]);return(0,s.useEffect)(()=>{(async()=>{await D()})()},[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("nav",{className:"flex h-12 items-center justify-between border-b px-4 dark:border-gray-800 dark:bg-gray-800/70 md:hidden",children:[(0,l.jsx)("div",{children:(0,l.jsx)(k.Z,{})}),(0,l.jsx)("span",{className:"truncate px-4",children:"New Chat"}),(0,l.jsx)("a",{href:"",className:"-mr-3 flex h-9 w-9 shrink-0 items-center justify-center",children:(0,l.jsx)(C.Z,{})})]}),(0,l.jsx)("nav",{className:"grid max-h-screen h-full max-md:hidden",children:(0,l.jsxs)(f.Z,{sx:{display:"flex",flexDirection:"column",borderRight:"1px solid",borderColor:"divider",maxHeight:"100vh",position:"sticky",left:"0px",top:"0px",overflow:"hidden"},children:[(0,l.jsx)(f.Z,{sx:{p:2,gap:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:(0,l.jsx)("div",{className:"flex items-center gap-3",children:(0,l.jsx)(h.ZP,{component:"h1",fontWeight:"xl",children:"DB-GPT"})})}),(0,l.jsx)(f.Z,{sx:{px:2},children:(0,l.jsx)(d(),{href:"/",children:(0,l.jsx)(x.Z,{color:"primary",className:"w-full bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f]",style:{color:"#fff"},children:"+ New Chat"})})}),(0,l.jsx)(f.Z,{sx:{p:2,display:{xs:"none",sm:"initial"},maxHeight:"100%",overflow:"auto"},children:(0,l.jsx)(m.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,l.jsx)(p.Z,{nested:!0,children:(0,l.jsx)(m.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"},gap:"4px"},children:null==o?void 0:null===(e=o.data)||void 0===e?void 0:e.map(e=>{let s=("/chat"===t||"/chat/"===t)&&n===e.conv_uid;return(0,l.jsx)(p.Z,{children:(0,l.jsx)(v.Z,{selected:s,variant:s?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,l.jsx)(g.Z,{children:(0,l.jsxs)(d(),{href:"/chat?id=".concat(e.conv_uid,"&scene=").concat(null==e?void 0:e.chat_mode),className:"flex items-center justify-between",children:[(0,l.jsxs)(h.ZP,{fontSize:14,noWrap:!0,children:[(0,l.jsx)(B.Z,{style:{marginRight:"0.5rem"}}),(null==e?void 0:e.user_name)||(null==e?void 0:e.user_input)||"undefined"]}),(0,l.jsx)(j.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:n=>{n.preventDefault(),n.stopPropagation(),c.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,async onOk(){await (0,_.K)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await E(),"/chat"===t&&r.get("id")===e.conv_uid&&i.push("/")}})},className:"del-btn invisible",children:(0,l.jsx)(P.Z,{})})]})})})},e.conv_uid)})})})})}),(0,l.jsxs)("div",{className:"flex flex-col justify-between flex-1",children:[(0,l.jsx)("div",{}),(0,l.jsx)(f.Z,{sx:{p:2,pt:3,pb:6,borderTop:"1px solid",borderColor:"divider",display:{xs:"none",sm:"initial"},position:"sticky",bottom:0,zIndex:100,background:"var(--joy-palette-background-body)"},children:(0,l.jsxs)(m.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,l.jsx)(p.Z,{nested:!0,children:(0,l.jsx)(m.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"}},children:F.map(e=>(0,l.jsx)(d(),{href:e.route,children:(0,l.jsx)(p.Z,{children:(0,l.jsxs)(v.Z,{color:"neutral",sx:{marginBottom:1,height:"2.5rem"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,l.jsx)(b.Z,{sx:{color:e.active?"inherit":"neutral.500"},children:e.icon}),(0,l.jsx)(g.Z,{children:e.label})]})})},e.route))})}),(0,l.jsx)(p.Z,{children:(0,l.jsxs)(v.Z,{sx:{height:"2.5rem"},onClick:()=>{"light"===S?z("dark"):z("light")},children:[(0,l.jsx)(b.Z,{children:"dark"===S?(0,l.jsx)(Z.Z,{fontSize:"small"}):(0,l.jsx)(w.Z,{fontSize:"small"})}),(0,l.jsx)(g.Z,{children:"Theme"})]})})]})})]})]})})]})},E=r(29720),S=r(41287),z=r(38230);let F=(0,S.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...z.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...z.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}});var H=r(53794),L=r.n(H),T=r(54486),O=r.n(T);let I=0;function J(){"loading"!==i&&(i="loading",n=setTimeout(function(){O().start()},250))}function R(){I>0||(i="stop",clearTimeout(n),O().done())}if(L().events.on("routeChangeStart",J),L().events.on("routeChangeComplete",R),L().events.on("routeChangeError",R),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,r=Array(t),n=0;n{if((null==n?void 0:n.current)&&r){var e,t,i,l,s,a;null==n||null===(e=n.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(r),"light"===r?null==n||null===(i=n.current)||void 0===i||null===(l=i.classList)||void 0===l||l.remove("dark"):null==n||null===(s=n.current)||void 0===s||null===(a=s.classList)||void 0===a||a.remove("light")}},[n,r]),(0,l.jsxs)("div",{ref:n,className:"h-full",children:[(0,l.jsx)(A,{}),(0,l.jsx)(N.ZP,{children:(0,l.jsx)("div",{className:"contents h-full",children:(0,l.jsxs)("div",{className:"grid h-full w-screen grid-cols-1 grid-rows-[auto,1fr] overflow-hidden text-smd dark:text-gray-300 md:grid-cols-[280px,1fr] md:grid-rows-[1fr]",children:[(0,l.jsx)(D,{}),(0,l.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]})})})]})}var K=function(e){let{children:t}=e;return(0,l.jsx)("html",{lang:"en",className:"h-full font-sans",children:(0,l.jsx)("body",{className:"h-full font-sans",children:(0,l.jsx)(E.Z,{theme:F,children:(0,l.jsx)(u.lL,{theme:F,defaultMode:"light",children:(0,l.jsx)(W,{children:t})})})})})}},78915:function(e,t,r){"use strict";r.d(t,{T:function(){return d},K:function(){return c}});var n=r(21628),i=r(24214);let l=i.Z.create({baseURL:"http://120.26.193.159:5000"});l.defaults.timeout=1e4,l.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=r(84835);let a={"content-type":"application/json"},o=e=>{if(!(0,s.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return l.get("/api"+e,{headers:a}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},c=(e,t)=>{let r=o(t);return l.post("/api"+e,{body:r,headers:a}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},97402:function(){},23517:function(){}},function(e){e.O(0,[180,430,577,562,693,440,672,751,216,253,769,744],function(){return e(e.s=91541)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/page-d905b9e0123b490c.js b/pilot/server/static/_next/static/chunks/app/page-1212e9544d59c652.js similarity index 65% rename from pilot/server/static/_next/static/chunks/app/page-d905b9e0123b490c.js rename to pilot/server/static/_next/static/chunks/app/page-1212e9544d59c652.js index 3442db94f..7c7ad70b5 100644 --- a/pilot/server/static/_next/static/chunks/app/page-d905b9e0123b490c.js +++ b/pilot/server/static/_next/static/chunks/app/page-1212e9544d59c652.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{90545:function(e,r,t){"use strict";t.d(r,{Z:function(){return g}});var o=t(40431),i=t(46750),n=t(86006),a=t(89791),l=t(4323),s=t(51579),c=t(86601),d=t(95887),v=t(9268);let u=["className","component"];var p=t(47327),m=t(98918);let h=function(e={}){let{themeId:r,defaultTheme:t,defaultClassName:p="MuiBox-root",generateClassName:m}=e,h=(0,l.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(s.Z),g=n.forwardRef(function(e,n){let l=(0,d.Z)(t),s=(0,c.Z)(e),{className:g,component:f="div"}=s,y=(0,i.Z)(s,u);return(0,v.jsx)(h,(0,o.Z)({as:f,ref:n,className:(0,a.Z)(g,m?m(p):p),theme:r&&l[r]||l},y))});return g}({defaultTheme:m.Z,defaultClassName:"MuiBox-root",generateClassName:p.Z.generate});var g=h},53113:function(e,r,t){"use strict";var o=t(46750),i=t(40431),n=t(86006),a=t(46319),l=t(47562),s=t(53832),c=t(99179),d=t(50645),v=t(88930),u=t(47093),p=t(326),m=t(94244),h=t(77614),g=t(9268);let f=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled"],y=e=>{let{color:r,disabled:t,focusVisible:o,focusVisibleClassName:i,fullWidth:n,size:a,variant:c,loading:d}=e,v={root:["root",t&&"disabled",o&&"focusVisible",n&&"fullWidth",c&&`variant${(0,s.Z)(c)}`,r&&`color${(0,s.Z)(r)}`,a&&`size${(0,s.Z)(a)}`,d&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},u=(0,l.Z)(v,h.F,{});return o&&i&&(u.root+=` ${i}`),u},x=(0,d.Z)("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(e,r)=>r.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),Z=(0,d.Z)("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(e,r)=>r.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),D=(0,d.Z)("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(e,r)=>r.loadingIndicatorCenter})(({theme:e,ownerState:r})=>{var t,o,n,a;return(0,i.Z)({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(t=e.variants[r.variant])?void 0:null==(o=t[r.color])?void 0:o.color},r.disabled&&{color:null==(n=e.variants[`${r.variant}Disabled`])?void 0:null==(a=n[r.color])?void 0:a.color})}),b=(0,d.Z)("button",{name:"JoyButton",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>{var t,o,n,a;return[(0,i.Z)({"--Icon-margin":"initial"},"sm"===r.size&&{"--Icon-fontSize":"1.25rem","--CircularProgress-size":"20px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"2px",paddingInline:"0.75rem"},"md"===r.size&&{"--Icon-fontSize":"1.5rem","--CircularProgress-size":"24px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.5rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"0.25rem",paddingInline:"1rem"},"lg"===r.size&&{"--Icon-fontSize":"1.75rem","--CircularProgress-size":"28px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 3rem)",fontSize:e.vars.fontSize.md,paddingBlock:"0.375rem",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",borderRadius:`var(--Button-radius, ${e.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.lg,lineHeight:1},r.fullWidth&&{width:"100%"},{[e.focus.selector]:e.focus.default}),null==(t=e.variants[r.variant])?void 0:t[r.color],{"&:hover":null==(o=e.variants[`${r.variant}Hover`])?void 0:o[r.color]},{"&:active":null==(n=e.variants[`${r.variant}Active`])?void 0:n[r.color]},(0,i.Z)({[`&.${h.Z.disabled}`]:null==(a=e.variants[`${r.variant}Disabled`])?void 0:a[r.color]},"center"===r.loadingPosition&&{[`&.${h.Z.loading}`]:{color:"transparent"}})]}),S=n.forwardRef(function(e,r){let t=(0,v.Z)({props:e,name:"JoyButton"}),{children:l,action:s,color:d="primary",variant:h="solid",size:S="md",fullWidth:j=!1,startDecorator:B,endDecorator:I,loading:P=!1,loadingPosition:C="center",loadingIndicator:z,disabled:w}=t,k=(0,o.Z)(t,f),{getColor:N}=(0,u.VT)(h),T=N(e.color,d),R=n.useRef(null),_=(0,c.Z)(R,r),{focusVisible:F,setFocusVisible:$,getRootProps:W}=(0,a.Z)((0,i.Z)({},t,{disabled:w||P,ref:_})),J=null!=z?z:(0,g.jsx)(m.Z,(0,i.Z)({},"context"!==T&&{color:T},{thickness:{sm:2,md:3,lg:4}[S]||3}));n.useImperativeHandle(s,()=>({focusVisible:()=>{var e;$(!0),null==(e=R.current)||e.focus()}}),[$]);let M=(0,i.Z)({},t,{color:T,fullWidth:j,variant:h,size:S,focusVisible:F,loading:P,loadingPosition:C,disabled:w||P}),H=y(M),[O,E]=(0,p.Z)("root",{ref:r,className:H.root,elementType:b,externalForwardedProps:k,getSlotProps:W,ownerState:M}),[L,V]=(0,p.Z)("startDecorator",{className:H.startDecorator,elementType:x,externalForwardedProps:k,ownerState:M}),[A,K]=(0,p.Z)("endDecorator",{className:H.endDecorator,elementType:Z,externalForwardedProps:k,ownerState:M}),[q,G]=(0,p.Z)("loadingIndicatorCenter",{className:H.loadingIndicatorCenter,elementType:D,externalForwardedProps:k,ownerState:M});return(0,g.jsxs)(O,(0,i.Z)({},E,{children:[(B||P&&"start"===C)&&(0,g.jsx)(L,(0,i.Z)({},V,{children:P&&"start"===C?J:B})),l,P&&"center"===C&&(0,g.jsx)(q,(0,i.Z)({},G,{children:J})),(I||P&&"end"===C)&&(0,g.jsx)(A,(0,i.Z)({},K,{children:P&&"end"===C?J:I}))]}))});r.Z=S},77614:function(e,r,t){"use strict";t.d(r,{F:function(){return i}});var o=t(18587);function i(e){return(0,o.d6)("MuiButton",e)}let n=(0,o.sI)("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);r.Z=n},22046:function(e,r,t){"use strict";t.d(r,{eu:function(){return x},FR:function(){return y},ZP:function(){return I}});var o=t(46750),i=t(40431),n=t(86006),a=t(53832),l=t(86601),s=t(47562),c=t(50645),d=t(88930),v=t(47093),u=t(326),p=t(18587);function m(e){return(0,p.d6)("MuiTypography",e)}(0,p.sI)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","body1","body2","body3","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var h=t(9268);let g=["color","textColor"],f=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant"],y=n.createContext(!1),x=n.createContext(!1),Z=e=>{let{gutterBottom:r,noWrap:t,level:o,color:i,variant:n}=e,l={root:["root",o,r&&"gutterBottom",t&&"noWrap",i&&`color${(0,a.Z)(i)}`,n&&`variant${(0,a.Z)(n)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,s.Z)(l,m,{})},D=(0,c.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,r)=>r.startDecorator})(({ownerState:e})=>{var r;return(0,i.Z)({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.startDecorator&&("flex-start"===e.alignItems||(null==(r=e.sx)?void 0:r.alignItems)==="flex-start")&&{marginTop:"2px"})}),b=(0,c.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,r)=>r.endDecorator})(({ownerState:e})=>{var r;return(0,i.Z)({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.endDecorator&&("flex-start"===e.alignItems||(null==(r=e.sx)?void 0:r.alignItems)==="flex-start")&&{marginTop:"2px"})}),S=(0,c.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>{var t,o,n,a;return(0,i.Z)({"--Icon-fontSize":"1.25em",margin:"var(--Typography-margin, 0px)"},r.nesting?{display:"inline"}:{fontFamily:e.vars.fontFamily.body,display:"block"},(r.startDecorator||r.endDecorator)&&(0,i.Z)({display:"flex",alignItems:"center"},r.nesting&&(0,i.Z)({display:"inline-flex"},r.startDecorator&&{verticalAlign:"bottom"})),r.level&&"inherit"!==r.level&&e.typography[r.level],{fontSize:`var(--Typography-fontSize, ${r.level&&"inherit"!==r.level&&null!=(t=null==(o=e.typography[r.level])?void 0:o.fontSize)?t:"inherit"})`},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.color&&"context"!==r.color&&{color:`rgba(${null==(n=e.vars.palette[r.color])?void 0:n.mainChannel} / 1)`},r.variant&&(0,i.Z)({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.15em, 4px)",paddingInline:"0.375em"},!r.nesting&&{marginInline:"-0.375em"},null==(a=e.variants[r.variant])?void 0:a[r.color]))}),j={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",display1:"h1",display2:"h2",body1:"p",body2:"p",body3:"span",body4:"span",body5:"span",inherit:"p"},B=n.forwardRef(function(e,r){let t=(0,d.Z)({props:e,name:"JoyTypography"}),{color:a,textColor:s}=t,c=(0,o.Z)(t,g),p=n.useContext(y),m=n.useContext(x),B=(0,l.Z)((0,i.Z)({},c,{color:s})),{component:I,gutterBottom:P=!1,noWrap:C=!1,level:z="body1",levelMapping:w={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body1:"p",body2:"p",body3:"p",inherit:"p"},children:k,endDecorator:N,startDecorator:T,variant:R}=B,_=(0,o.Z)(B,f),{getColor:F}=(0,v.VT)(R),$=F(e.color,R?null!=a?a:"neutral":a),W=p||m?e.level||"inherit":z,J=I||(p?"span":w[W]||j[W]||"span"),M=(0,i.Z)({},B,{level:W,component:J,color:$,gutterBottom:P,noWrap:C,nesting:p,variant:R}),H=Z(M),O=(0,i.Z)({},_,{component:J}),[E,L]=(0,u.Z)("root",{ref:r,className:H.root,elementType:S,externalForwardedProps:O,ownerState:M}),[V,A]=(0,u.Z)("startDecorator",{className:H.startDecorator,elementType:D,externalForwardedProps:O,ownerState:M}),[K,q]=(0,u.Z)("endDecorator",{className:H.endDecorator,elementType:b,externalForwardedProps:O,ownerState:M});return(0,h.jsx)(y.Provider,{value:!0,children:(0,h.jsxs)(E,(0,i.Z)({},L,{children:[T&&(0,h.jsx)(V,(0,i.Z)({},A,{children:T})),k,N&&(0,h.jsx)(K,(0,i.Z)({},q,{children:N}))]}))})});var I=B},45825:function(e,r,t){Promise.resolve().then(t.bind(t,26925))},26925:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return k}});var o=t(9268),i=t(89081),n=t(86006),a=t(22046),l=t(46750),s=t(40431),c=t(89791),d=t(53832),v=t(47562),u=t(50645),p=t(88930),m=t(18587);function h(e){return(0,m.d6)("MuiDivider",e)}(0,m.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);let g=["className","children","component","inset","orientation","role"],f=e=>{let{orientation:r,inset:t}=e,o={root:["root",r,t&&`inset${(0,d.Z)(t)}`]};return(0,v.Z)(o,h,{})},y=(0,u.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>(0,s.Z)({"--Divider-thickness":"1px","--Divider-lineColor":e.vars.palette.divider},"none"===r.inset&&{"--_Divider-inset":"0px"},"context"===r.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===r.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===r.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},r.children?{"--Divider-gap":e.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===r.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===r.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===r.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===r.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===r.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===r.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===r.orientation?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}:{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:"vertical"===r.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===r.orientation?"initial":"var(--Divider-thickness)"})),x=n.forwardRef(function(e,r){let t=(0,p.Z)({props:e,name:"JoyDivider"}),{className:i,children:n,component:a=null!=n?"div":"hr",inset:d,orientation:v="horizontal",role:u="hr"!==a?"separator":void 0}=t,m=(0,l.Z)(t,g),h=(0,s.Z)({},t,{inset:d,role:u,orientation:v,component:a}),x=f(h);return(0,o.jsx)(y,(0,s.Z)({ref:r,as:a,className:(0,c.Z)(x.root,i),ownerState:h,role:u},"separator"===u&&"vertical"===v&&{"aria-orientation":"vertical"},m,{children:n}))});x.muiName="Divider";var Z=t(90545),D=t(77614),b=t(53113),S=t(35086),j=t(53047),B=t(54842),I=t(67830),P=t(19700),C=t(92391),z=t(78915),w=t(56008);function k(){var e;let r=C.z.object({query:C.z.string().min(1)}),t=(0,w.useRouter)(),[l,s]=(0,n.useState)(!1),c=(0,P.cI)({resolver:(0,I.F)(r),defaultValues:{}}),{data:d}=(0,i.Z)(async()=>await (0,z.K)("/v1/chat/dialogue/scenes")),v=async e=>{let{query:r}=e;try{var o,i;s(!0),c.reset();let e=await (0,z.K)("/v1/chat/dialogue/new",{chat_mode:"chat_normal"});(null==e?void 0:e.success)&&(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.conv_uid)&&t.push("/chat?id=".concat(null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.conv_uid,"&initMessage=").concat(r))}catch(e){}finally{s(!1)}};return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"mx-auto h-full justify-center flex max-w-3xl flex-col gap-8 px-5 pt-6 xl:max-w-4xl",children:[(0,o.jsxs)("div",{className:"max-w-xs my-0 mx-auto",children:[(0,o.jsx)(a.ZP,{level:"h3",className:"text-center",children:"DB-GPT"}),(0,o.jsx)(a.ZP,{level:"body1",className:"text-center pt-4",children:"Revolutionizing Database Interactions with Private LLM Technology"})]}),(0,o.jsx)("div",{className:"grid gap-8 lg:grid-cols-3",children:(0,o.jsxs)("div",{className:"lg:col-span-3",children:[(0,o.jsx)(x,{className:"text-[#878c93]",children:"Quick Start"}),(0,o.jsx)(Z.Z,{className:"grid pt-7 rounded-xl gap-2 lg:grid-cols-3 lg:gap-6",sx:{["& .".concat(D.Z.root)]:{color:"var(--joy-palette-primary-solidColor)",backgroundColor:"var(--joy-palette-primary-solidBg)",height:"52px","&: hover":{backgroundColor:"var(--joy-palette-primary-solidHoverBg)"}}},children:null==d?void 0:null===(e=d.data)||void 0===e?void 0:e.map(e=>(0,o.jsx)(b.Z,{size:"md",variant:"solid",className:"text-base rounded-none",onClick:async()=>{var r,o;let i=await (0,z.K)("/v1/chat/dialogue/new",{chat_mode:e.chat_scene});(null==i?void 0:i.success)&&(null==i?void 0:null===(r=i.data)||void 0===r?void 0:r.conv_uid)&&t.push("/chat?id=".concat(null==i?void 0:null===(o=i.data)||void 0===o?void 0:o.conv_uid,"&scene=").concat(e.chat_scene))},children:e.scene_name},e.chat_scene))})]})}),(0,o.jsx)("div",{className:"mt-6 mb-[10%] pointer-events-none inset-x-0 bottom-0 z-0 mx-auto flex w-full max-w-3xl flex-col items-center justify-center max-md:border-t xl:max-w-4xl [&>*]:pointer-events-auto",children:(0,o.jsx)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",height:"52px"},onSubmit:e=>{c.handleSubmit(v)(e)},children:(0,o.jsx)(S.ZP,{sx:{width:"100%"},variant:"outlined",placeholder:"Ask anything",endDecorator:(0,o.jsx)(j.ZP,{type:"submit",disabled:l,children:(0,o.jsx)(B.Z,{})}),...c.register("query")})})})]})})}},78915:function(e,r,t){"use strict";t.d(r,{T:function(){return c},K:function(){return d}});var o=t(21628),i=t(24214);let n=i.Z.create({baseURL:"http://120.26.193.159:5000"});n.defaults.timeout=1e4,n.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=t(84835);let l={"content-type":"application/json"},s=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let r={...e};for(let e in r){let t=r[e];"string"==typeof t&&(r[e]=t.trim())}return JSON.stringify(r)},c=(e,r)=>{if(r){let t=Object.keys(r).filter(e=>void 0!==r[e]&&""!==r[e]).map(e=>"".concat(e,"=").concat(r[e])).join("&");t&&(e+="?".concat(t))}return n.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})},d=(e,r)=>{let t=s(r);return n.post("/api"+e,{body:t,headers:l}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})}},56008:function(e,r,t){e.exports=t(30794)}},function(e){e.O(0,[180,430,577,86,562,259,253,769,744],function(){return e(e.s=45825)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{90545:function(e,r,t){"use strict";t.d(r,{Z:function(){return g}});var o=t(40431),i=t(46750),n=t(86006),a=t(89791),l=t(4323),s=t(51579),c=t(86601),d=t(95887),v=t(9268);let u=["className","component"];var p=t(47327),m=t(98918);let h=function(e={}){let{themeId:r,defaultTheme:t,defaultClassName:p="MuiBox-root",generateClassName:m}=e,h=(0,l.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(s.Z),g=n.forwardRef(function(e,n){let l=(0,d.Z)(t),s=(0,c.Z)(e),{className:g,component:f="div"}=s,y=(0,i.Z)(s,u);return(0,v.jsx)(h,(0,o.Z)({as:f,ref:n,className:(0,a.Z)(g,m?m(p):p),theme:r&&l[r]||l},y))});return g}({defaultTheme:m.Z,defaultClassName:"MuiBox-root",generateClassName:p.Z.generate});var g=h},53113:function(e,r,t){"use strict";var o=t(46750),i=t(40431),n=t(86006),a=t(46319),l=t(47562),s=t(53832),c=t(99179),d=t(50645),v=t(88930),u=t(47093),p=t(326),m=t(94244),h=t(77614),g=t(9268);let f=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled"],y=e=>{let{color:r,disabled:t,focusVisible:o,focusVisibleClassName:i,fullWidth:n,size:a,variant:c,loading:d}=e,v={root:["root",t&&"disabled",o&&"focusVisible",n&&"fullWidth",c&&`variant${(0,s.Z)(c)}`,r&&`color${(0,s.Z)(r)}`,a&&`size${(0,s.Z)(a)}`,d&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},u=(0,l.Z)(v,h.F,{});return o&&i&&(u.root+=` ${i}`),u},x=(0,d.Z)("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(e,r)=>r.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),Z=(0,d.Z)("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(e,r)=>r.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),D=(0,d.Z)("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(e,r)=>r.loadingIndicatorCenter})(({theme:e,ownerState:r})=>{var t,o,n,a;return(0,i.Z)({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(t=e.variants[r.variant])?void 0:null==(o=t[r.color])?void 0:o.color},r.disabled&&{color:null==(n=e.variants[`${r.variant}Disabled`])?void 0:null==(a=n[r.color])?void 0:a.color})}),b=(0,d.Z)("button",{name:"JoyButton",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>{var t,o,n,a;return[(0,i.Z)({"--Icon-margin":"initial"},"sm"===r.size&&{"--Icon-fontSize":"1.25rem","--CircularProgress-size":"20px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"2px",paddingInline:"0.75rem"},"md"===r.size&&{"--Icon-fontSize":"1.5rem","--CircularProgress-size":"24px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.5rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"0.25rem",paddingInline:"1rem"},"lg"===r.size&&{"--Icon-fontSize":"1.75rem","--CircularProgress-size":"28px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 3rem)",fontSize:e.vars.fontSize.md,paddingBlock:"0.375rem",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",borderRadius:`var(--Button-radius, ${e.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.lg,lineHeight:1},r.fullWidth&&{width:"100%"},{[e.focus.selector]:e.focus.default}),null==(t=e.variants[r.variant])?void 0:t[r.color],{"&:hover":null==(o=e.variants[`${r.variant}Hover`])?void 0:o[r.color]},{"&:active":null==(n=e.variants[`${r.variant}Active`])?void 0:n[r.color]},(0,i.Z)({[`&.${h.Z.disabled}`]:null==(a=e.variants[`${r.variant}Disabled`])?void 0:a[r.color]},"center"===r.loadingPosition&&{[`&.${h.Z.loading}`]:{color:"transparent"}})]}),P=n.forwardRef(function(e,r){let t=(0,v.Z)({props:e,name:"JoyButton"}),{children:l,action:s,color:d="primary",variant:h="solid",size:P="md",fullWidth:S=!1,startDecorator:j,endDecorator:B,loading:I=!1,loadingPosition:w="center",loadingIndicator:C,disabled:z}=t,k=(0,o.Z)(t,f),{getColor:N}=(0,u.VT)(h),T=N(e.color,d),R=n.useRef(null),_=(0,c.Z)(R,r),{focusVisible:F,setFocusVisible:$,getRootProps:W}=(0,a.Z)((0,i.Z)({},t,{disabled:z||I,ref:_})),J=null!=C?C:(0,g.jsx)(m.Z,(0,i.Z)({},"context"!==T&&{color:T},{thickness:{sm:2,md:3,lg:4}[P]||3}));n.useImperativeHandle(s,()=>({focusVisible:()=>{var e;$(!0),null==(e=R.current)||e.focus()}}),[$]);let M=(0,i.Z)({},t,{color:T,fullWidth:S,variant:h,size:P,focusVisible:F,loading:I,loadingPosition:w,disabled:z||I}),H=y(M),[E,O]=(0,p.Z)("root",{ref:r,className:H.root,elementType:b,externalForwardedProps:k,getSlotProps:W,ownerState:M}),[L,A]=(0,p.Z)("startDecorator",{className:H.startDecorator,elementType:x,externalForwardedProps:k,ownerState:M}),[V,K]=(0,p.Z)("endDecorator",{className:H.endDecorator,elementType:Z,externalForwardedProps:k,ownerState:M}),[q,U]=(0,p.Z)("loadingIndicatorCenter",{className:H.loadingIndicatorCenter,elementType:D,externalForwardedProps:k,ownerState:M});return(0,g.jsxs)(E,(0,i.Z)({},O,{children:[(j||I&&"start"===w)&&(0,g.jsx)(L,(0,i.Z)({},A,{children:I&&"start"===w?J:j})),l,I&&"center"===w&&(0,g.jsx)(q,(0,i.Z)({},U,{children:J})),(B||I&&"end"===w)&&(0,g.jsx)(V,(0,i.Z)({},K,{children:I&&"end"===w?J:B}))]}))});r.Z=P},77614:function(e,r,t){"use strict";t.d(r,{F:function(){return i}});var o=t(18587);function i(e){return(0,o.d6)("MuiButton",e)}let n=(0,o.sI)("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);r.Z=n},22046:function(e,r,t){"use strict";t.d(r,{eu:function(){return x},FR:function(){return y},ZP:function(){return B}});var o=t(46750),i=t(40431),n=t(86006),a=t(53832),l=t(86601),s=t(47562),c=t(50645),d=t(88930),v=t(47093),u=t(326),p=t(18587);function m(e){return(0,p.d6)("MuiTypography",e)}(0,p.sI)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","body1","body2","body3","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var h=t(9268);let g=["color","textColor"],f=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant"],y=n.createContext(!1),x=n.createContext(!1),Z=e=>{let{gutterBottom:r,noWrap:t,level:o,color:i,variant:n}=e,l={root:["root",o,r&&"gutterBottom",t&&"noWrap",i&&`color${(0,a.Z)(i)}`,n&&`variant${(0,a.Z)(n)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,s.Z)(l,m,{})},D=(0,c.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,r)=>r.startDecorator})(({ownerState:e})=>{var r;return(0,i.Z)({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.startDecorator&&("flex-start"===e.alignItems||(null==(r=e.sx)?void 0:r.alignItems)==="flex-start")&&{marginTop:"2px"})}),b=(0,c.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,r)=>r.endDecorator})(({ownerState:e})=>{var r;return(0,i.Z)({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.endDecorator&&("flex-start"===e.alignItems||(null==(r=e.sx)?void 0:r.alignItems)==="flex-start")&&{marginTop:"2px"})}),P=(0,c.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>{var t,o,n,a;return(0,i.Z)({"--Icon-fontSize":"1.25em",margin:"var(--Typography-margin, 0px)"},r.nesting?{display:"inline"}:{fontFamily:e.vars.fontFamily.body,display:"block"},(r.startDecorator||r.endDecorator)&&(0,i.Z)({display:"flex",alignItems:"center"},r.nesting&&(0,i.Z)({display:"inline-flex"},r.startDecorator&&{verticalAlign:"bottom"})),r.level&&"inherit"!==r.level&&e.typography[r.level],{fontSize:`var(--Typography-fontSize, ${r.level&&"inherit"!==r.level&&null!=(t=null==(o=e.typography[r.level])?void 0:o.fontSize)?t:"inherit"})`},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.color&&"context"!==r.color&&{color:`rgba(${null==(n=e.vars.palette[r.color])?void 0:n.mainChannel} / 1)`},r.variant&&(0,i.Z)({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.15em, 4px)",paddingInline:"0.375em"},!r.nesting&&{marginInline:"-0.375em"},null==(a=e.variants[r.variant])?void 0:a[r.color]))}),S={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",display1:"h1",display2:"h2",body1:"p",body2:"p",body3:"span",body4:"span",body5:"span",inherit:"p"},j=n.forwardRef(function(e,r){let t=(0,d.Z)({props:e,name:"JoyTypography"}),{color:a,textColor:s}=t,c=(0,o.Z)(t,g),p=n.useContext(y),m=n.useContext(x),j=(0,l.Z)((0,i.Z)({},c,{color:s})),{component:B,gutterBottom:I=!1,noWrap:w=!1,level:C="body1",levelMapping:z={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body1:"p",body2:"p",body3:"p",inherit:"p"},children:k,endDecorator:N,startDecorator:T,variant:R}=j,_=(0,o.Z)(j,f),{getColor:F}=(0,v.VT)(R),$=F(e.color,R?null!=a?a:"neutral":a),W=p||m?e.level||"inherit":C,J=B||(p?"span":z[W]||S[W]||"span"),M=(0,i.Z)({},j,{level:W,component:J,color:$,gutterBottom:I,noWrap:w,nesting:p,variant:R}),H=Z(M),E=(0,i.Z)({},_,{component:J}),[O,L]=(0,u.Z)("root",{ref:r,className:H.root,elementType:P,externalForwardedProps:E,ownerState:M}),[A,V]=(0,u.Z)("startDecorator",{className:H.startDecorator,elementType:D,externalForwardedProps:E,ownerState:M}),[K,q]=(0,u.Z)("endDecorator",{className:H.endDecorator,elementType:b,externalForwardedProps:E,ownerState:M});return(0,h.jsx)(y.Provider,{value:!0,children:(0,h.jsxs)(O,(0,i.Z)({},L,{children:[T&&(0,h.jsx)(A,(0,i.Z)({},V,{children:T})),k,N&&(0,h.jsx)(K,(0,i.Z)({},q,{children:N}))]}))})});var B=j},45825:function(e,r,t){Promise.resolve().then(t.bind(t,26925))},26925:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return k}});var o=t(9268),i=t(89081),n=t(86006),a=t(22046),l=t(46750),s=t(40431),c=t(89791),d=t(53832),v=t(47562),u=t(50645),p=t(88930),m=t(18587);function h(e){return(0,m.d6)("MuiDivider",e)}(0,m.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);let g=["className","children","component","inset","orientation","role"],f=e=>{let{orientation:r,inset:t}=e,o={root:["root",r,t&&`inset${(0,d.Z)(t)}`]};return(0,v.Z)(o,h,{})},y=(0,u.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>(0,s.Z)({"--Divider-thickness":"1px","--Divider-lineColor":e.vars.palette.divider},"none"===r.inset&&{"--_Divider-inset":"0px"},"context"===r.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===r.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===r.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},r.children?{"--Divider-gap":e.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===r.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===r.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===r.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===r.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===r.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===r.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===r.orientation?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}:{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:"vertical"===r.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===r.orientation?"initial":"var(--Divider-thickness)"})),x=n.forwardRef(function(e,r){let t=(0,p.Z)({props:e,name:"JoyDivider"}),{className:i,children:n,component:a=null!=n?"div":"hr",inset:d,orientation:v="horizontal",role:u="hr"!==a?"separator":void 0}=t,m=(0,l.Z)(t,g),h=(0,s.Z)({},t,{inset:d,role:u,orientation:v,component:a}),x=f(h);return(0,o.jsx)(y,(0,s.Z)({ref:r,as:a,className:(0,c.Z)(x.root,i),ownerState:h,role:u},"separator"===u&&"vertical"===v&&{"aria-orientation":"vertical"},m,{children:n}))});x.muiName="Divider";var Z=t(90545),D=t(77614),b=t(53113),P=t(35086),S=t(53047),j=t(54842),B=t(67830),I=t(19700),w=t(92391),C=t(78915),z=t(56008);function k(){var e;let r=w.z.object({query:w.z.string().min(1)}),t=(0,z.useRouter)(),[l,s]=(0,n.useState)(!1),c=(0,I.cI)({resolver:(0,B.F)(r),defaultValues:{}}),{data:d}=(0,i.Z)(async()=>await (0,C.Kw)("/v1/chat/dialogue/scenes")),v=async e=>{let{query:r}=e;try{var o,i;s(!0),c.reset();let e=await (0,C.Kw)("/v1/chat/dialogue/new",{chat_mode:"chat_normal"});(null==e?void 0:e.success)&&(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.conv_uid)&&t.push("/chat?id=".concat(null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.conv_uid,"&initMessage=").concat(r))}catch(e){}finally{s(!1)}};return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"mx-auto h-full justify-center flex max-w-3xl flex-col gap-8 px-5 pt-6 xl:max-w-4xl",children:[(0,o.jsxs)("div",{className:"max-w-xs my-0 mx-auto",children:[(0,o.jsx)(a.ZP,{level:"h3",className:"text-center",children:"DB-GPT"}),(0,o.jsx)(a.ZP,{level:"body1",className:"text-center pt-4",children:"Revolutionizing Database Interactions with Private LLM Technology"})]}),(0,o.jsx)("div",{className:"grid gap-8 lg:grid-cols-3",children:(0,o.jsxs)("div",{className:"lg:col-span-3",children:[(0,o.jsx)(x,{className:"text-[#878c93]",children:"Quick Start"}),(0,o.jsx)(Z.Z,{className:"grid pt-7 rounded-xl gap-2 lg:grid-cols-3 lg:gap-6",sx:{["& .".concat(D.Z.root)]:{color:"var(--joy-palette-primary-solidColor)",backgroundColor:"var(--joy-palette-primary-solidBg)",height:"52px","&: hover":{backgroundColor:"var(--joy-palette-primary-solidHoverBg)"}}},children:null==d?void 0:null===(e=d.data)||void 0===e?void 0:e.map(e=>(0,o.jsx)(b.Z,{size:"md",variant:"solid",className:"text-base rounded-none",onClick:async()=>{var r,o;let i=await (0,C.Kw)("/v1/chat/dialogue/new",{chat_mode:e.chat_scene});(null==i?void 0:i.success)&&(null==i?void 0:null===(r=i.data)||void 0===r?void 0:r.conv_uid)&&t.push("/chat?id=".concat(null==i?void 0:null===(o=i.data)||void 0===o?void 0:o.conv_uid,"&scene=").concat(e.chat_scene))},children:e.scene_name},e.chat_scene))})]})}),(0,o.jsx)("div",{className:"mt-6 mb-[10%] pointer-events-none inset-x-0 bottom-0 z-0 mx-auto flex w-full max-w-3xl flex-col items-center justify-center max-md:border-t xl:max-w-4xl [&>*]:pointer-events-auto",children:(0,o.jsx)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",height:"52px"},onSubmit:e=>{c.handleSubmit(v)(e)},children:(0,o.jsx)(P.ZP,{sx:{width:"100%"},variant:"outlined",placeholder:"Ask anything",endDecorator:(0,o.jsx)(S.ZP,{type:"submit",disabled:l,children:(0,o.jsx)(j.Z,{})}),...c.register("query")})})})]})})}},78915:function(e,r,t){"use strict";t.d(r,{Tk:function(){return d},Kw:function(){return v},PR:function(){return u},Ej:function(){return p}});var o=t(21628),i=t(24214),n=t(52040);let a=i.Z.create({baseURL:n.env.API_BASE_URL});a.defaults.timeout=1e4,a.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var l=t(84835);let s={"content-type":"application/json"},c=e=>{if(!(0,l.isPlainObject)(e))return JSON.stringify(e);let r={...e};for(let e in r){let t=r[e];"string"==typeof t&&(r[e]=t.trim())}return JSON.stringify(r)},d=(e,r)=>{if(r){let t=Object.keys(r).filter(e=>void 0!==r[e]&&""!==r[e]).map(e=>"".concat(e,"=").concat(r[e])).join("&");t&&(e+="?".concat(t))}return a.get("/api"+e,{headers:s}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})},v=(e,r)=>{let t=c(r);return a.post("/api"+e,{body:t,headers:s}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})},u=(e,r)=>{let t=c(r);return a.post(e,{body:t,headers:s}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})},p=(e,r)=>a.post(e,{body:r}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})},56008:function(e,r,t){e.exports=t(30794)}},function(e){e.O(0,[180,797,577,214,86,316,259,253,769,744],function(){return e(e.s=45825)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/page-3ac84803013d92de.js b/pilot/server/static/_next/static/chunks/app/page-3ac84803013d92de.js deleted file mode 100644 index 96665c60b..000000000 --- a/pilot/server/static/_next/static/chunks/app/page-3ac84803013d92de.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{90545:function(e,r,t){"use strict";t.d(r,{Z:function(){return h}});var o=t(40431),i=t(46750),n=t(86006),a=t(89791),l=t(4323),s=t(51579),c=t(86601),d=t(95887),v=t(9268);let u=["className","component"];var p=t(47327),m=t(98918);let g=function(e={}){let{themeId:r,defaultTheme:t,defaultClassName:p="MuiBox-root",generateClassName:m}=e,g=(0,l.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(s.Z),h=n.forwardRef(function(e,n){let l=(0,d.Z)(t),s=(0,c.Z)(e),{className:h,component:f="div"}=s,y=(0,i.Z)(s,u);return(0,v.jsx)(g,(0,o.Z)({as:f,ref:n,className:(0,a.Z)(h,m?m(p):p),theme:r&&l[r]||l},y))});return h}({defaultTheme:m.Z,defaultClassName:"MuiBox-root",generateClassName:p.Z.generate});var h=g},53113:function(e,r,t){"use strict";var o=t(46750),i=t(40431),n=t(86006),a=t(46319),l=t(47562),s=t(53832),c=t(99179),d=t(50645),v=t(88930),u=t(47093),p=t(326),m=t(94244),g=t(77614),h=t(9268);let f=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled"],y=e=>{let{color:r,disabled:t,focusVisible:o,focusVisibleClassName:i,fullWidth:n,size:a,variant:c,loading:d}=e,v={root:["root",t&&"disabled",o&&"focusVisible",n&&"fullWidth",c&&`variant${(0,s.Z)(c)}`,r&&`color${(0,s.Z)(r)}`,a&&`size${(0,s.Z)(a)}`,d&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},u=(0,l.Z)(v,g.F,{});return o&&i&&(u.root+=` ${i}`),u},x=(0,d.Z)("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(e,r)=>r.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),Z=(0,d.Z)("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(e,r)=>r.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),D=(0,d.Z)("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(e,r)=>r.loadingIndicatorCenter})(({theme:e,ownerState:r})=>{var t,o,n,a;return(0,i.Z)({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(t=e.variants[r.variant])?void 0:null==(o=t[r.color])?void 0:o.color},r.disabled&&{color:null==(n=e.variants[`${r.variant}Disabled`])?void 0:null==(a=n[r.color])?void 0:a.color})}),b=(0,d.Z)("button",{name:"JoyButton",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>{var t,o,n,a;return[(0,i.Z)({"--Icon-margin":"initial"},"sm"===r.size&&{"--Icon-fontSize":"1.25rem","--CircularProgress-size":"20px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"2px",paddingInline:"0.75rem"},"md"===r.size&&{"--Icon-fontSize":"1.5rem","--CircularProgress-size":"24px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.5rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"0.25rem",paddingInline:"1rem"},"lg"===r.size&&{"--Icon-fontSize":"1.75rem","--CircularProgress-size":"28px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 3rem)",fontSize:e.vars.fontSize.md,paddingBlock:"0.375rem",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",borderRadius:`var(--Button-radius, ${e.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.lg,lineHeight:1},r.fullWidth&&{width:"100%"},{[e.focus.selector]:e.focus.default}),null==(t=e.variants[r.variant])?void 0:t[r.color],{"&:hover":null==(o=e.variants[`${r.variant}Hover`])?void 0:o[r.color]},{"&:active":null==(n=e.variants[`${r.variant}Active`])?void 0:n[r.color]},(0,i.Z)({[`&.${g.Z.disabled}`]:null==(a=e.variants[`${r.variant}Disabled`])?void 0:a[r.color]},"center"===r.loadingPosition&&{[`&.${g.Z.loading}`]:{color:"transparent"}})]}),S=n.forwardRef(function(e,r){let t=(0,v.Z)({props:e,name:"JoyButton"}),{children:l,action:s,color:d="primary",variant:g="solid",size:S="md",fullWidth:j=!1,startDecorator:B,endDecorator:I,loading:P=!1,loadingPosition:C="center",loadingIndicator:z,disabled:w}=t,k=(0,o.Z)(t,f),{getColor:N}=(0,u.VT)(g),T=N(e.color,d),R=n.useRef(null),_=(0,c.Z)(R,r),{focusVisible:F,setFocusVisible:$,getRootProps:W}=(0,a.Z)((0,i.Z)({},t,{disabled:w||P,ref:_})),J=null!=z?z:(0,h.jsx)(m.Z,(0,i.Z)({},"context"!==T&&{color:T},{thickness:{sm:2,md:3,lg:4}[S]||3}));n.useImperativeHandle(s,()=>({focusVisible:()=>{var e;$(!0),null==(e=R.current)||e.focus()}}),[$]);let M=(0,i.Z)({},t,{color:T,fullWidth:j,variant:g,size:S,focusVisible:F,loading:P,loadingPosition:C,disabled:w||P}),H=y(M),[O,E]=(0,p.Z)("root",{ref:r,className:H.root,elementType:b,externalForwardedProps:k,getSlotProps:W,ownerState:M}),[L,A]=(0,p.Z)("startDecorator",{className:H.startDecorator,elementType:x,externalForwardedProps:k,ownerState:M}),[V,K]=(0,p.Z)("endDecorator",{className:H.endDecorator,elementType:Z,externalForwardedProps:k,ownerState:M}),[q,U]=(0,p.Z)("loadingIndicatorCenter",{className:H.loadingIndicatorCenter,elementType:D,externalForwardedProps:k,ownerState:M});return(0,h.jsxs)(O,(0,i.Z)({},E,{children:[(B||P&&"start"===C)&&(0,h.jsx)(L,(0,i.Z)({},A,{children:P&&"start"===C?J:B})),l,P&&"center"===C&&(0,h.jsx)(q,(0,i.Z)({},U,{children:J})),(I||P&&"end"===C)&&(0,h.jsx)(V,(0,i.Z)({},K,{children:P&&"end"===C?J:I}))]}))});r.Z=S},77614:function(e,r,t){"use strict";t.d(r,{F:function(){return i}});var o=t(18587);function i(e){return(0,o.d6)("MuiButton",e)}let n=(0,o.sI)("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);r.Z=n},22046:function(e,r,t){"use strict";t.d(r,{eu:function(){return x},FR:function(){return y},ZP:function(){return I}});var o=t(46750),i=t(40431),n=t(86006),a=t(53832),l=t(86601),s=t(47562),c=t(50645),d=t(88930),v=t(47093),u=t(326),p=t(18587);function m(e){return(0,p.d6)("MuiTypography",e)}(0,p.sI)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","body1","body2","body3","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var g=t(9268);let h=["color","textColor"],f=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant"],y=n.createContext(!1),x=n.createContext(!1),Z=e=>{let{gutterBottom:r,noWrap:t,level:o,color:i,variant:n}=e,l={root:["root",o,r&&"gutterBottom",t&&"noWrap",i&&`color${(0,a.Z)(i)}`,n&&`variant${(0,a.Z)(n)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,s.Z)(l,m,{})},D=(0,c.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,r)=>r.startDecorator})(({ownerState:e})=>{var r;return(0,i.Z)({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.startDecorator&&("flex-start"===e.alignItems||(null==(r=e.sx)?void 0:r.alignItems)==="flex-start")&&{marginTop:"2px"})}),b=(0,c.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,r)=>r.endDecorator})(({ownerState:e})=>{var r;return(0,i.Z)({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.endDecorator&&("flex-start"===e.alignItems||(null==(r=e.sx)?void 0:r.alignItems)==="flex-start")&&{marginTop:"2px"})}),S=(0,c.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>{var t,o,n,a;return(0,i.Z)({"--Icon-fontSize":"1.25em",margin:"var(--Typography-margin, 0px)"},r.nesting?{display:"inline"}:{fontFamily:e.vars.fontFamily.body,display:"block"},(r.startDecorator||r.endDecorator)&&(0,i.Z)({display:"flex",alignItems:"center"},r.nesting&&(0,i.Z)({display:"inline-flex"},r.startDecorator&&{verticalAlign:"bottom"})),r.level&&"inherit"!==r.level&&e.typography[r.level],{fontSize:`var(--Typography-fontSize, ${r.level&&"inherit"!==r.level&&null!=(t=null==(o=e.typography[r.level])?void 0:o.fontSize)?t:"inherit"})`},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.color&&"context"!==r.color&&{color:`rgba(${null==(n=e.vars.palette[r.color])?void 0:n.mainChannel} / 1)`},r.variant&&(0,i.Z)({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.15em, 4px)",paddingInline:"0.375em"},!r.nesting&&{marginInline:"-0.375em"},null==(a=e.variants[r.variant])?void 0:a[r.color]))}),j={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",display1:"h1",display2:"h2",body1:"p",body2:"p",body3:"span",body4:"span",body5:"span",inherit:"p"},B=n.forwardRef(function(e,r){let t=(0,d.Z)({props:e,name:"JoyTypography"}),{color:a,textColor:s}=t,c=(0,o.Z)(t,h),p=n.useContext(y),m=n.useContext(x),B=(0,l.Z)((0,i.Z)({},c,{color:s})),{component:I,gutterBottom:P=!1,noWrap:C=!1,level:z="body1",levelMapping:w={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body1:"p",body2:"p",body3:"p",inherit:"p"},children:k,endDecorator:N,startDecorator:T,variant:R}=B,_=(0,o.Z)(B,f),{getColor:F}=(0,v.VT)(R),$=F(e.color,R?null!=a?a:"neutral":a),W=p||m?e.level||"inherit":z,J=I||(p?"span":w[W]||j[W]||"span"),M=(0,i.Z)({},B,{level:W,component:J,color:$,gutterBottom:P,noWrap:C,nesting:p,variant:R}),H=Z(M),O=(0,i.Z)({},_,{component:J}),[E,L]=(0,u.Z)("root",{ref:r,className:H.root,elementType:S,externalForwardedProps:O,ownerState:M}),[A,V]=(0,u.Z)("startDecorator",{className:H.startDecorator,elementType:D,externalForwardedProps:O,ownerState:M}),[K,q]=(0,u.Z)("endDecorator",{className:H.endDecorator,elementType:b,externalForwardedProps:O,ownerState:M});return(0,g.jsx)(y.Provider,{value:!0,children:(0,g.jsxs)(E,(0,i.Z)({},L,{children:[T&&(0,g.jsx)(A,(0,i.Z)({},V,{children:T})),k,N&&(0,g.jsx)(K,(0,i.Z)({},q,{children:N}))]}))})});var I=B},45825:function(e,r,t){Promise.resolve().then(t.bind(t,26925))},26925:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return k}});var o=t(9268),i=t(89081),n=t(86006),a=t(22046),l=t(46750),s=t(40431),c=t(89791),d=t(53832),v=t(47562),u=t(50645),p=t(88930),m=t(18587);function g(e){return(0,m.d6)("MuiDivider",e)}(0,m.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);let h=["className","children","component","inset","orientation","role"],f=e=>{let{orientation:r,inset:t}=e,o={root:["root",r,t&&`inset${(0,d.Z)(t)}`]};return(0,v.Z)(o,g,{})},y=(0,u.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>(0,s.Z)({"--Divider-thickness":"1px","--Divider-lineColor":e.vars.palette.divider},"none"===r.inset&&{"--_Divider-inset":"0px"},"context"===r.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===r.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===r.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},r.children?{"--Divider-gap":e.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===r.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===r.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===r.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===r.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===r.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===r.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===r.orientation?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}:{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:"vertical"===r.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===r.orientation?"initial":"var(--Divider-thickness)"})),x=n.forwardRef(function(e,r){let t=(0,p.Z)({props:e,name:"JoyDivider"}),{className:i,children:n,component:a=null!=n?"div":"hr",inset:d,orientation:v="horizontal",role:u="hr"!==a?"separator":void 0}=t,m=(0,l.Z)(t,h),g=(0,s.Z)({},t,{inset:d,role:u,orientation:v,component:a}),x=f(g);return(0,o.jsx)(y,(0,s.Z)({ref:r,as:a,className:(0,c.Z)(x.root,i),ownerState:g,role:u},"separator"===u&&"vertical"===v&&{"aria-orientation":"vertical"},m,{children:n}))});x.muiName="Divider";var Z=t(90545),D=t(77614),b=t(53113),S=t(35086),j=t(53047),B=t(54842),I=t(67830),P=t(19700),C=t(92391),z=t(78915),w=t(56008);function k(){var e;let r=C.z.object({query:C.z.string().min(1)}),t=(0,w.useRouter)(),[l,s]=(0,n.useState)(!1),c=(0,P.cI)({resolver:(0,I.F)(r),defaultValues:{}}),{data:d}=(0,i.Z)(async()=>await (0,z.K)("/v1/chat/dialogue/scenes")),v=async e=>{let{query:r}=e;try{var o,i;s(!0),c.reset();let e=await (0,z.K)("/v1/chat/dialogue/new",{chat_mode:"chat_normal"});(null==e?void 0:e.success)&&(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.conv_uid)&&t.push("/chat?id=".concat(null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.conv_uid,"&initMessage=").concat(r))}catch(e){}finally{s(!1)}};return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"mx-auto h-full justify-center flex max-w-3xl flex-col gap-8 px-5 pt-6 xl:max-w-4xl",children:[(0,o.jsxs)("div",{className:"max-w-xs my-0 mx-auto",children:[(0,o.jsx)(a.ZP,{level:"h3",className:"text-center",children:"DB-GPT"}),(0,o.jsx)(a.ZP,{level:"body1",className:"text-center pt-4",children:"Revolutionizing Database Interactions with Private LLM Technology"})]}),(0,o.jsx)("div",{className:"grid gap-8 lg:grid-cols-3",children:(0,o.jsxs)("div",{className:"lg:col-span-3",children:[(0,o.jsx)(x,{className:"text-[#878c93]",children:"Quick Start"}),(0,o.jsx)(Z.Z,{className:"grid pt-7 rounded-xl gap-2 lg:grid-cols-3 lg:gap-6",sx:{["& .".concat(D.Z.root)]:{color:"var(--joy-palette-primary-solidColor)",backgroundColor:"var(--joy-palette-primary-solidBg)",height:"52px","&: hover":{backgroundColor:"var(--joy-palette-primary-solidHoverBg)"}}},children:null==d?void 0:null===(e=d.data)||void 0===e?void 0:e.map(e=>(0,o.jsx)(b.Z,{size:"md",variant:"solid",className:"text-base rounded-none",onClick:async()=>{var r,o;let i=await (0,z.K)("/v1/chat/dialogue/new",{chat_mode:e.chat_scene});(null==i?void 0:i.success)&&(null==i?void 0:null===(r=i.data)||void 0===r?void 0:r.conv_uid)&&t.push("/chat?id=".concat(null==i?void 0:null===(o=i.data)||void 0===o?void 0:o.conv_uid,"&scene=").concat(e.chat_scene))},children:e.scene_name},e.chat_scene))})]})}),(0,o.jsx)("div",{className:"mt-6 mb-[10%] pointer-events-none inset-x-0 bottom-0 z-0 mx-auto flex w-full max-w-3xl flex-col items-center justify-center max-md:border-t xl:max-w-4xl [&>*]:pointer-events-auto",children:(0,o.jsx)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",height:"52px"},onSubmit:e=>{c.handleSubmit(v)(e)},children:(0,o.jsx)(S.ZP,{sx:{width:"100%"},variant:"outlined",placeholder:"Ask anything",endDecorator:(0,o.jsx)(j.ZP,{type:"submit",disabled:l,children:(0,o.jsx)(B.Z,{})}),...c.register("query")})})})]})})}},78915:function(e,r,t){"use strict";t.d(r,{T:function(){return d},K:function(){return v}});var o=t(21628),i=t(24214),n=t(52040);let a=i.Z.create({baseURL:n.env.API_BASE_URL});a.defaults.timeout=1e4,a.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var l=t(84835);let s={"content-type":"application/json"},c=e=>{if(!(0,l.isPlainObject)(e))return JSON.stringify(e);let r={...e};for(let e in r){let t=r[e];"string"==typeof t&&(r[e]=t.trim())}return JSON.stringify(r)},d=(e,r)=>{if(r){let t=Object.keys(r).filter(e=>void 0!==r[e]&&""!==r[e]).map(e=>"".concat(e,"=").concat(r[e])).join("&");t&&(e+="?".concat(t))}return a.get("/api"+e,{headers:s}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})},v=(e,r)=>{let t=c(r);return a.post("/api"+e,{body:t,headers:s}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})}},56008:function(e,r,t){e.exports=t(30794)}},function(e){e.O(0,[180,797,577,86,562,259,253,769,744],function(){return e(e.s=45825)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/page-42511314a150846a.js b/pilot/server/static/_next/static/chunks/app/page-42511314a150846a.js deleted file mode 100644 index 930570ff0..000000000 --- a/pilot/server/static/_next/static/chunks/app/page-42511314a150846a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{90545:function(e,r,t){"use strict";t.d(r,{Z:function(){return g}});var o=t(40431),i=t(46750),n=t(86006),a=t(89791),l=t(4323),s=t(51579),c=t(86601),d=t(95887),v=t(9268);let u=["className","component"];var p=t(47327),m=t(98918);let h=function(e={}){let{themeId:r,defaultTheme:t,defaultClassName:p="MuiBox-root",generateClassName:m}=e,h=(0,l.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(s.Z),g=n.forwardRef(function(e,n){let l=(0,d.Z)(t),s=(0,c.Z)(e),{className:g,component:f="div"}=s,y=(0,i.Z)(s,u);return(0,v.jsx)(h,(0,o.Z)({as:f,ref:n,className:(0,a.Z)(g,m?m(p):p),theme:r&&l[r]||l},y))});return g}({defaultTheme:m.Z,defaultClassName:"MuiBox-root",generateClassName:p.Z.generate});var g=h},53113:function(e,r,t){"use strict";var o=t(46750),i=t(40431),n=t(86006),a=t(46319),l=t(47562),s=t(53832),c=t(99179),d=t(50645),v=t(88930),u=t(47093),p=t(326),m=t(94244),h=t(77614),g=t(9268);let f=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled"],y=e=>{let{color:r,disabled:t,focusVisible:o,focusVisibleClassName:i,fullWidth:n,size:a,variant:c,loading:d}=e,v={root:["root",t&&"disabled",o&&"focusVisible",n&&"fullWidth",c&&`variant${(0,s.Z)(c)}`,r&&`color${(0,s.Z)(r)}`,a&&`size${(0,s.Z)(a)}`,d&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},u=(0,l.Z)(v,h.F,{});return o&&i&&(u.root+=` ${i}`),u},x=(0,d.Z)("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(e,r)=>r.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),Z=(0,d.Z)("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(e,r)=>r.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),D=(0,d.Z)("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(e,r)=>r.loadingIndicatorCenter})(({theme:e,ownerState:r})=>{var t,o,n,a;return(0,i.Z)({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(t=e.variants[r.variant])?void 0:null==(o=t[r.color])?void 0:o.color},r.disabled&&{color:null==(n=e.variants[`${r.variant}Disabled`])?void 0:null==(a=n[r.color])?void 0:a.color})}),b=(0,d.Z)("button",{name:"JoyButton",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>{var t,o,n,a;return[(0,i.Z)({"--Icon-margin":"initial"},"sm"===r.size&&{"--Icon-fontSize":"1.25rem","--CircularProgress-size":"20px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"2px",paddingInline:"0.75rem"},"md"===r.size&&{"--Icon-fontSize":"1.5rem","--CircularProgress-size":"24px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.5rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"0.25rem",paddingInline:"1rem"},"lg"===r.size&&{"--Icon-fontSize":"1.75rem","--CircularProgress-size":"28px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 3rem)",fontSize:e.vars.fontSize.md,paddingBlock:"0.375rem",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",borderRadius:`var(--Button-radius, ${e.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.lg,lineHeight:1},r.fullWidth&&{width:"100%"},{[e.focus.selector]:e.focus.default}),null==(t=e.variants[r.variant])?void 0:t[r.color],{"&:hover":null==(o=e.variants[`${r.variant}Hover`])?void 0:o[r.color]},{"&:active":null==(n=e.variants[`${r.variant}Active`])?void 0:n[r.color]},(0,i.Z)({[`&.${h.Z.disabled}`]:null==(a=e.variants[`${r.variant}Disabled`])?void 0:a[r.color]},"center"===r.loadingPosition&&{[`&.${h.Z.loading}`]:{color:"transparent"}})]}),S=n.forwardRef(function(e,r){let t=(0,v.Z)({props:e,name:"JoyButton"}),{children:l,action:s,color:d="primary",variant:h="solid",size:S="md",fullWidth:j=!1,startDecorator:B,endDecorator:I,loading:P=!1,loadingPosition:w="center",loadingIndicator:C,disabled:z}=t,k=(0,o.Z)(t,f),{getColor:N}=(0,u.VT)(h),T=N(e.color,d),R=n.useRef(null),_=(0,c.Z)(R,r),{focusVisible:$,setFocusVisible:F,getRootProps:W}=(0,a.Z)((0,i.Z)({},t,{disabled:z||P,ref:_})),J=null!=C?C:(0,g.jsx)(m.Z,(0,i.Z)({},"context"!==T&&{color:T},{thickness:{sm:2,md:3,lg:4}[S]||3}));n.useImperativeHandle(s,()=>({focusVisible:()=>{var e;F(!0),null==(e=R.current)||e.focus()}}),[F]);let M=(0,i.Z)({},t,{color:T,fullWidth:j,variant:h,size:S,focusVisible:$,loading:P,loadingPosition:w,disabled:z||P}),H=y(M),[O,E]=(0,p.Z)("root",{ref:r,className:H.root,elementType:b,externalForwardedProps:k,getSlotProps:W,ownerState:M}),[L,V]=(0,p.Z)("startDecorator",{className:H.startDecorator,elementType:x,externalForwardedProps:k,ownerState:M}),[A,K]=(0,p.Z)("endDecorator",{className:H.endDecorator,elementType:Z,externalForwardedProps:k,ownerState:M}),[q,G]=(0,p.Z)("loadingIndicatorCenter",{className:H.loadingIndicatorCenter,elementType:D,externalForwardedProps:k,ownerState:M});return(0,g.jsxs)(O,(0,i.Z)({},E,{children:[(B||P&&"start"===w)&&(0,g.jsx)(L,(0,i.Z)({},V,{children:P&&"start"===w?J:B})),l,P&&"center"===w&&(0,g.jsx)(q,(0,i.Z)({},G,{children:J})),(I||P&&"end"===w)&&(0,g.jsx)(A,(0,i.Z)({},K,{children:P&&"end"===w?J:I}))]}))});r.Z=S},77614:function(e,r,t){"use strict";t.d(r,{F:function(){return i}});var o=t(18587);function i(e){return(0,o.d6)("MuiButton",e)}let n=(0,o.sI)("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);r.Z=n},22046:function(e,r,t){"use strict";t.d(r,{eu:function(){return x},FR:function(){return y},ZP:function(){return I}});var o=t(46750),i=t(40431),n=t(86006),a=t(53832),l=t(86601),s=t(47562),c=t(50645),d=t(88930),v=t(47093),u=t(326),p=t(18587);function m(e){return(0,p.d6)("MuiTypography",e)}(0,p.sI)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","body1","body2","body3","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var h=t(9268);let g=["color","textColor"],f=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant"],y=n.createContext(!1),x=n.createContext(!1),Z=e=>{let{gutterBottom:r,noWrap:t,level:o,color:i,variant:n}=e,l={root:["root",o,r&&"gutterBottom",t&&"noWrap",i&&`color${(0,a.Z)(i)}`,n&&`variant${(0,a.Z)(n)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,s.Z)(l,m,{})},D=(0,c.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,r)=>r.startDecorator})(({ownerState:e})=>{var r;return(0,i.Z)({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.startDecorator&&("flex-start"===e.alignItems||(null==(r=e.sx)?void 0:r.alignItems)==="flex-start")&&{marginTop:"2px"})}),b=(0,c.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,r)=>r.endDecorator})(({ownerState:e})=>{var r;return(0,i.Z)({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.endDecorator&&("flex-start"===e.alignItems||(null==(r=e.sx)?void 0:r.alignItems)==="flex-start")&&{marginTop:"2px"})}),S=(0,c.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>{var t,o,n,a;return(0,i.Z)({"--Icon-fontSize":"1.25em",margin:"var(--Typography-margin, 0px)"},r.nesting?{display:"inline"}:{fontFamily:e.vars.fontFamily.body,display:"block"},(r.startDecorator||r.endDecorator)&&(0,i.Z)({display:"flex",alignItems:"center"},r.nesting&&(0,i.Z)({display:"inline-flex"},r.startDecorator&&{verticalAlign:"bottom"})),r.level&&"inherit"!==r.level&&e.typography[r.level],{fontSize:`var(--Typography-fontSize, ${r.level&&"inherit"!==r.level&&null!=(t=null==(o=e.typography[r.level])?void 0:o.fontSize)?t:"inherit"})`},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.color&&"context"!==r.color&&{color:`rgba(${null==(n=e.vars.palette[r.color])?void 0:n.mainChannel} / 1)`},r.variant&&(0,i.Z)({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.15em, 4px)",paddingInline:"0.375em"},!r.nesting&&{marginInline:"-0.375em"},null==(a=e.variants[r.variant])?void 0:a[r.color]))}),j={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",display1:"h1",display2:"h2",body1:"p",body2:"p",body3:"span",body4:"span",body5:"span",inherit:"p"},B=n.forwardRef(function(e,r){let t=(0,d.Z)({props:e,name:"JoyTypography"}),{color:a,textColor:s}=t,c=(0,o.Z)(t,g),p=n.useContext(y),m=n.useContext(x),B=(0,l.Z)((0,i.Z)({},c,{color:s})),{component:I,gutterBottom:P=!1,noWrap:w=!1,level:C="body1",levelMapping:z={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body1:"p",body2:"p",body3:"p",inherit:"p"},children:k,endDecorator:N,startDecorator:T,variant:R}=B,_=(0,o.Z)(B,f),{getColor:$}=(0,v.VT)(R),F=$(e.color,R?null!=a?a:"neutral":a),W=p||m?e.level||"inherit":C,J=I||(p?"span":z[W]||j[W]||"span"),M=(0,i.Z)({},B,{level:W,component:J,color:F,gutterBottom:P,noWrap:w,nesting:p,variant:R}),H=Z(M),O=(0,i.Z)({},_,{component:J}),[E,L]=(0,u.Z)("root",{ref:r,className:H.root,elementType:S,externalForwardedProps:O,ownerState:M}),[V,A]=(0,u.Z)("startDecorator",{className:H.startDecorator,elementType:D,externalForwardedProps:O,ownerState:M}),[K,q]=(0,u.Z)("endDecorator",{className:H.endDecorator,elementType:b,externalForwardedProps:O,ownerState:M});return(0,h.jsx)(y.Provider,{value:!0,children:(0,h.jsxs)(E,(0,i.Z)({},L,{children:[T&&(0,h.jsx)(V,(0,i.Z)({},A,{children:T})),k,N&&(0,h.jsx)(K,(0,i.Z)({},q,{children:N}))]}))})});var I=B},45825:function(e,r,t){Promise.resolve().then(t.bind(t,26925))},26925:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return k}});var o=t(9268),i=t(89081),n=t(86006),a=t(22046),l=t(46750),s=t(40431),c=t(89791),d=t(53832),v=t(47562),u=t(50645),p=t(88930),m=t(18587);function h(e){return(0,m.d6)("MuiDivider",e)}(0,m.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);let g=["className","children","component","inset","orientation","role"],f=e=>{let{orientation:r,inset:t}=e,o={root:["root",r,t&&`inset${(0,d.Z)(t)}`]};return(0,v.Z)(o,h,{})},y=(0,u.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>(0,s.Z)({"--Divider-thickness":"1px","--Divider-lineColor":e.vars.palette.divider},"none"===r.inset&&{"--_Divider-inset":"0px"},"context"===r.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===r.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===r.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},r.children?{"--Divider-gap":e.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===r.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===r.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===r.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===r.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===r.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===r.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===r.orientation?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}:{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:"vertical"===r.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===r.orientation?"initial":"var(--Divider-thickness)"})),x=n.forwardRef(function(e,r){let t=(0,p.Z)({props:e,name:"JoyDivider"}),{className:i,children:n,component:a=null!=n?"div":"hr",inset:d,orientation:v="horizontal",role:u="hr"!==a?"separator":void 0}=t,m=(0,l.Z)(t,g),h=(0,s.Z)({},t,{inset:d,role:u,orientation:v,component:a}),x=f(h);return(0,o.jsx)(y,(0,s.Z)({ref:r,as:a,className:(0,c.Z)(x.root,i),ownerState:h,role:u},"separator"===u&&"vertical"===v&&{"aria-orientation":"vertical"},m,{children:n}))});x.muiName="Divider";var Z=t(90545),D=t(77614),b=t(53113),S=t(35086),j=t(53047),B=t(54842),I=t(67830),P=t(19700),w=t(92391),C=t(78915),z=t(56008);function k(){var e;let r=w.z.object({query:w.z.string().min(1)}),t=(0,z.useRouter)(),[l,s]=(0,n.useState)(!1),c=(0,P.cI)({resolver:(0,I.F)(r),defaultValues:{}}),{data:d}=(0,i.Z)(async()=>await (0,C.K)("/v1/chat/dialogue/scenes")),v=async e=>{let{query:r}=e;try{var o,i;s(!0),c.reset();let e=await (0,C.K)("/v1/chat/dialogue/new",{chat_mode:"chat_normal"});(null==e?void 0:e.success)&&(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.conv_uid)&&t.push("/chat?id=".concat(null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.conv_uid,"&initMessage=").concat(r))}catch(e){}finally{s(!1)}};return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"mx-auto h-full justify-center flex max-w-3xl flex-col gap-8 px-5 pt-6 xl:max-w-4xl",children:[(0,o.jsxs)("div",{className:"max-w-xs my-0 mx-auto",children:[(0,o.jsx)(a.ZP,{level:"h3",className:"text-center",children:"DB-GPT"}),(0,o.jsx)(a.ZP,{level:"body1",className:"text-center pt-4",children:"Revolutionizing Database Interactions with Private LLM Technology"})]}),(0,o.jsx)("div",{className:"grid gap-8 lg:grid-cols-3",children:(0,o.jsxs)("div",{className:"lg:col-span-3",children:[(0,o.jsx)(x,{className:"text-[#878c93]",children:"Quick Start"}),(0,o.jsx)(Z.Z,{className:"grid pt-7 rounded-xl gap-2 lg:grid-cols-3 lg:gap-6",sx:{["& .".concat(D.Z.root)]:{color:"var(--joy-palette-primary-solidColor)",backgroundColor:"var(--joy-palette-primary-solidBg)",height:"52px","&: hover":{backgroundColor:"var(--joy-palette-primary-solidHoverBg)"}}},children:null==d?void 0:null===(e=d.data)||void 0===e?void 0:e.map(e=>(0,o.jsx)(b.Z,{size:"md",variant:"solid",className:"text-base rounded-none",onClick:async()=>{var r,o;let i=await (0,C.K)("/v1/chat/dialogue/new",{chat_mode:e.chat_scene});(null==i?void 0:i.success)&&(null==i?void 0:null===(r=i.data)||void 0===r?void 0:r.conv_uid)&&t.push("/chat?id=".concat(null==i?void 0:null===(o=i.data)||void 0===o?void 0:o.conv_uid,"&scene=").concat(e.chat_scene))},children:e.scene_name},e.chat_scene))})]})}),(0,o.jsx)("div",{className:"mt-6 mb-[10%] pointer-events-none inset-x-0 bottom-0 z-0 mx-auto flex w-full max-w-3xl flex-col items-center justify-center max-md:border-t xl:max-w-4xl [&>*]:pointer-events-auto",children:(0,o.jsx)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",height:"52px"},onSubmit:e=>{c.handleSubmit(v)(e)},children:(0,o.jsx)(S.ZP,{sx:{width:"100%"},variant:"outlined",placeholder:"Ask anything",endDecorator:(0,o.jsx)(j.ZP,{type:"submit",disabled:l,children:(0,o.jsx)(B.Z,{})}),...c.register("query")})})})]})})}},78915:function(e,r,t){"use strict";t.d(r,{T:function(){return c},K:function(){return d}});var o=t(21628),i=t(24214);let n=i.Z.create({baseURL:"http://${window.location.hostname}:${window.location.port}"});n.defaults.timeout=1e4,n.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=t(84835);let l={"content-type":"application/json"},s=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let r={...e};for(let e in r){let t=r[e];"string"==typeof t&&(r[e]=t.trim())}return JSON.stringify(r)},c=(e,r)=>{if(r){let t=Object.keys(r).filter(e=>void 0!==r[e]&&""!==r[e]).map(e=>"".concat(e,"=").concat(r[e])).join("&");t&&(e+="?".concat(t))}return n.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})},d=(e,r)=>{let t=s(r);return n.post("/api"+e,{body:t,headers:l}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})}},56008:function(e,r,t){e.exports=t(30794)}},function(e){e.O(0,[180,430,577,86,562,259,253,769,744],function(){return e(e.s=45825)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/page-96f2bace1a1ea8be.js b/pilot/server/static/_next/static/chunks/app/page-96f2bace1a1ea8be.js deleted file mode 100644 index caef62cb5..000000000 --- a/pilot/server/static/_next/static/chunks/app/page-96f2bace1a1ea8be.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{90545:function(e,r,t){"use strict";t.d(r,{Z:function(){return g}});var o=t(40431),i=t(46750),n=t(86006),a=t(89791),l=t(4323),s=t(51579),c=t(86601),d=t(95887),v=t(9268);let u=["className","component"];var p=t(47327),m=t(98918);let h=function(e={}){let{themeId:r,defaultTheme:t,defaultClassName:p="MuiBox-root",generateClassName:m}=e,h=(0,l.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(s.Z),g=n.forwardRef(function(e,n){let l=(0,d.Z)(t),s=(0,c.Z)(e),{className:g,component:f="div"}=s,y=(0,i.Z)(s,u);return(0,v.jsx)(h,(0,o.Z)({as:f,ref:n,className:(0,a.Z)(g,m?m(p):p),theme:r&&l[r]||l},y))});return g}({defaultTheme:m.Z,defaultClassName:"MuiBox-root",generateClassName:p.Z.generate});var g=h},53113:function(e,r,t){"use strict";var o=t(46750),i=t(40431),n=t(86006),a=t(46319),l=t(47562),s=t(53832),c=t(99179),d=t(50645),v=t(88930),u=t(47093),p=t(326),m=t(94244),h=t(77614),g=t(9268);let f=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled"],y=e=>{let{color:r,disabled:t,focusVisible:o,focusVisibleClassName:i,fullWidth:n,size:a,variant:c,loading:d}=e,v={root:["root",t&&"disabled",o&&"focusVisible",n&&"fullWidth",c&&`variant${(0,s.Z)(c)}`,r&&`color${(0,s.Z)(r)}`,a&&`size${(0,s.Z)(a)}`,d&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},u=(0,l.Z)(v,h.F,{});return o&&i&&(u.root+=` ${i}`),u},x=(0,d.Z)("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(e,r)=>r.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),Z=(0,d.Z)("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(e,r)=>r.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),D=(0,d.Z)("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(e,r)=>r.loadingIndicatorCenter})(({theme:e,ownerState:r})=>{var t,o,n,a;return(0,i.Z)({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(t=e.variants[r.variant])?void 0:null==(o=t[r.color])?void 0:o.color},r.disabled&&{color:null==(n=e.variants[`${r.variant}Disabled`])?void 0:null==(a=n[r.color])?void 0:a.color})}),b=(0,d.Z)("button",{name:"JoyButton",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>{var t,o,n,a;return[(0,i.Z)({"--Icon-margin":"initial"},"sm"===r.size&&{"--Icon-fontSize":"1.25rem","--CircularProgress-size":"20px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"2px",paddingInline:"0.75rem"},"md"===r.size&&{"--Icon-fontSize":"1.5rem","--CircularProgress-size":"24px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.5rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"0.25rem",paddingInline:"1rem"},"lg"===r.size&&{"--Icon-fontSize":"1.75rem","--CircularProgress-size":"28px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 3rem)",fontSize:e.vars.fontSize.md,paddingBlock:"0.375rem",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",borderRadius:`var(--Button-radius, ${e.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.lg,lineHeight:1},r.fullWidth&&{width:"100%"},{[e.focus.selector]:e.focus.default}),null==(t=e.variants[r.variant])?void 0:t[r.color],{"&:hover":null==(o=e.variants[`${r.variant}Hover`])?void 0:o[r.color]},{"&:active":null==(n=e.variants[`${r.variant}Active`])?void 0:n[r.color]},(0,i.Z)({[`&.${h.Z.disabled}`]:null==(a=e.variants[`${r.variant}Disabled`])?void 0:a[r.color]},"center"===r.loadingPosition&&{[`&.${h.Z.loading}`]:{color:"transparent"}})]}),S=n.forwardRef(function(e,r){let t=(0,v.Z)({props:e,name:"JoyButton"}),{children:l,action:s,color:d="primary",variant:h="solid",size:S="md",fullWidth:j=!1,startDecorator:B,endDecorator:I,loading:P=!1,loadingPosition:C="center",loadingIndicator:z,disabled:w}=t,k=(0,o.Z)(t,f),{getColor:N}=(0,u.VT)(h),T=N(e.color,d),R=n.useRef(null),_=(0,c.Z)(R,r),{focusVisible:F,setFocusVisible:$,getRootProps:W}=(0,a.Z)((0,i.Z)({},t,{disabled:w||P,ref:_})),J=null!=z?z:(0,g.jsx)(m.Z,(0,i.Z)({},"context"!==T&&{color:T},{thickness:{sm:2,md:3,lg:4}[S]||3}));n.useImperativeHandle(s,()=>({focusVisible:()=>{var e;$(!0),null==(e=R.current)||e.focus()}}),[$]);let M=(0,i.Z)({},t,{color:T,fullWidth:j,variant:h,size:S,focusVisible:F,loading:P,loadingPosition:C,disabled:w||P}),H=y(M),[O,E]=(0,p.Z)("root",{ref:r,className:H.root,elementType:b,externalForwardedProps:k,getSlotProps:W,ownerState:M}),[L,V]=(0,p.Z)("startDecorator",{className:H.startDecorator,elementType:x,externalForwardedProps:k,ownerState:M}),[A,K]=(0,p.Z)("endDecorator",{className:H.endDecorator,elementType:Z,externalForwardedProps:k,ownerState:M}),[q,G]=(0,p.Z)("loadingIndicatorCenter",{className:H.loadingIndicatorCenter,elementType:D,externalForwardedProps:k,ownerState:M});return(0,g.jsxs)(O,(0,i.Z)({},E,{children:[(B||P&&"start"===C)&&(0,g.jsx)(L,(0,i.Z)({},V,{children:P&&"start"===C?J:B})),l,P&&"center"===C&&(0,g.jsx)(q,(0,i.Z)({},G,{children:J})),(I||P&&"end"===C)&&(0,g.jsx)(A,(0,i.Z)({},K,{children:P&&"end"===C?J:I}))]}))});r.Z=S},77614:function(e,r,t){"use strict";t.d(r,{F:function(){return i}});var o=t(18587);function i(e){return(0,o.d6)("MuiButton",e)}let n=(0,o.sI)("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);r.Z=n},22046:function(e,r,t){"use strict";t.d(r,{eu:function(){return x},FR:function(){return y},ZP:function(){return I}});var o=t(46750),i=t(40431),n=t(86006),a=t(53832),l=t(86601),s=t(47562),c=t(50645),d=t(88930),v=t(47093),u=t(326),p=t(18587);function m(e){return(0,p.d6)("MuiTypography",e)}(0,p.sI)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","body1","body2","body3","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var h=t(9268);let g=["color","textColor"],f=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant"],y=n.createContext(!1),x=n.createContext(!1),Z=e=>{let{gutterBottom:r,noWrap:t,level:o,color:i,variant:n}=e,l={root:["root",o,r&&"gutterBottom",t&&"noWrap",i&&`color${(0,a.Z)(i)}`,n&&`variant${(0,a.Z)(n)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,s.Z)(l,m,{})},D=(0,c.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,r)=>r.startDecorator})(({ownerState:e})=>{var r;return(0,i.Z)({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.startDecorator&&("flex-start"===e.alignItems||(null==(r=e.sx)?void 0:r.alignItems)==="flex-start")&&{marginTop:"2px"})}),b=(0,c.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,r)=>r.endDecorator})(({ownerState:e})=>{var r;return(0,i.Z)({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.endDecorator&&("flex-start"===e.alignItems||(null==(r=e.sx)?void 0:r.alignItems)==="flex-start")&&{marginTop:"2px"})}),S=(0,c.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>{var t,o,n,a;return(0,i.Z)({"--Icon-fontSize":"1.25em",margin:"var(--Typography-margin, 0px)"},r.nesting?{display:"inline"}:{fontFamily:e.vars.fontFamily.body,display:"block"},(r.startDecorator||r.endDecorator)&&(0,i.Z)({display:"flex",alignItems:"center"},r.nesting&&(0,i.Z)({display:"inline-flex"},r.startDecorator&&{verticalAlign:"bottom"})),r.level&&"inherit"!==r.level&&e.typography[r.level],{fontSize:`var(--Typography-fontSize, ${r.level&&"inherit"!==r.level&&null!=(t=null==(o=e.typography[r.level])?void 0:o.fontSize)?t:"inherit"})`},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.color&&"context"!==r.color&&{color:`rgba(${null==(n=e.vars.palette[r.color])?void 0:n.mainChannel} / 1)`},r.variant&&(0,i.Z)({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.15em, 4px)",paddingInline:"0.375em"},!r.nesting&&{marginInline:"-0.375em"},null==(a=e.variants[r.variant])?void 0:a[r.color]))}),j={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",display1:"h1",display2:"h2",body1:"p",body2:"p",body3:"span",body4:"span",body5:"span",inherit:"p"},B=n.forwardRef(function(e,r){let t=(0,d.Z)({props:e,name:"JoyTypography"}),{color:a,textColor:s}=t,c=(0,o.Z)(t,g),p=n.useContext(y),m=n.useContext(x),B=(0,l.Z)((0,i.Z)({},c,{color:s})),{component:I,gutterBottom:P=!1,noWrap:C=!1,level:z="body1",levelMapping:w={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body1:"p",body2:"p",body3:"p",inherit:"p"},children:k,endDecorator:N,startDecorator:T,variant:R}=B,_=(0,o.Z)(B,f),{getColor:F}=(0,v.VT)(R),$=F(e.color,R?null!=a?a:"neutral":a),W=p||m?e.level||"inherit":z,J=I||(p?"span":w[W]||j[W]||"span"),M=(0,i.Z)({},B,{level:W,component:J,color:$,gutterBottom:P,noWrap:C,nesting:p,variant:R}),H=Z(M),O=(0,i.Z)({},_,{component:J}),[E,L]=(0,u.Z)("root",{ref:r,className:H.root,elementType:S,externalForwardedProps:O,ownerState:M}),[V,A]=(0,u.Z)("startDecorator",{className:H.startDecorator,elementType:D,externalForwardedProps:O,ownerState:M}),[K,q]=(0,u.Z)("endDecorator",{className:H.endDecorator,elementType:b,externalForwardedProps:O,ownerState:M});return(0,h.jsx)(y.Provider,{value:!0,children:(0,h.jsxs)(E,(0,i.Z)({},L,{children:[T&&(0,h.jsx)(V,(0,i.Z)({},A,{children:T})),k,N&&(0,h.jsx)(K,(0,i.Z)({},q,{children:N}))]}))})});var I=B},45825:function(e,r,t){Promise.resolve().then(t.bind(t,26925))},26925:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return k}});var o=t(9268),i=t(89081),n=t(86006),a=t(22046),l=t(46750),s=t(40431),c=t(89791),d=t(53832),v=t(47562),u=t(50645),p=t(88930),m=t(18587);function h(e){return(0,m.d6)("MuiDivider",e)}(0,m.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);let g=["className","children","component","inset","orientation","role"],f=e=>{let{orientation:r,inset:t}=e,o={root:["root",r,t&&`inset${(0,d.Z)(t)}`]};return(0,v.Z)(o,h,{})},y=(0,u.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>(0,s.Z)({"--Divider-thickness":"1px","--Divider-lineColor":e.vars.palette.divider},"none"===r.inset&&{"--_Divider-inset":"0px"},"context"===r.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===r.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===r.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},r.children?{"--Divider-gap":e.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===r.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===r.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===r.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===r.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===r.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===r.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===r.orientation?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}:{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:"vertical"===r.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===r.orientation?"initial":"var(--Divider-thickness)"})),x=n.forwardRef(function(e,r){let t=(0,p.Z)({props:e,name:"JoyDivider"}),{className:i,children:n,component:a=null!=n?"div":"hr",inset:d,orientation:v="horizontal",role:u="hr"!==a?"separator":void 0}=t,m=(0,l.Z)(t,g),h=(0,s.Z)({},t,{inset:d,role:u,orientation:v,component:a}),x=f(h);return(0,o.jsx)(y,(0,s.Z)({ref:r,as:a,className:(0,c.Z)(x.root,i),ownerState:h,role:u},"separator"===u&&"vertical"===v&&{"aria-orientation":"vertical"},m,{children:n}))});x.muiName="Divider";var Z=t(90545),D=t(77614),b=t(53113),S=t(35086),j=t(53047),B=t(54842),I=t(67830),P=t(19700),C=t(92391),z=t(78915),w=t(56008);function k(){var e;let r=C.z.object({query:C.z.string().min(1)}),t=(0,w.useRouter)(),[l,s]=(0,n.useState)(!1),c=(0,P.cI)({resolver:(0,I.F)(r),defaultValues:{}}),{data:d}=(0,i.Z)(async()=>await (0,z.K)("/v1/chat/dialogue/scenes")),v=async e=>{let{query:r}=e;try{var o,i;s(!0),c.reset();let e=await (0,z.K)("/v1/chat/dialogue/new",{chat_mode:"chat_normal"});(null==e?void 0:e.success)&&(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.conv_uid)&&t.push("/chat?id=".concat(null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.conv_uid,"&initMessage=").concat(r))}catch(e){}finally{s(!1)}};return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"mx-auto h-full justify-center flex max-w-3xl flex-col gap-8 px-5 pt-6 xl:max-w-4xl",children:[(0,o.jsxs)("div",{className:"max-w-xs my-0 mx-auto",children:[(0,o.jsx)(a.ZP,{level:"h3",className:"text-center",children:"DB-GPT"}),(0,o.jsx)(a.ZP,{level:"body1",className:"text-center pt-4",children:"Revolutionizing Database Interactions with Private LLM Technology"})]}),(0,o.jsx)("div",{className:"grid gap-8 lg:grid-cols-3",children:(0,o.jsxs)("div",{className:"lg:col-span-3",children:[(0,o.jsx)(x,{className:"text-[#878c93]",children:"Quick Start"}),(0,o.jsx)(Z.Z,{className:"grid pt-7 rounded-xl gap-2 lg:grid-cols-3 lg:gap-6",sx:{["& .".concat(D.Z.root)]:{color:"var(--joy-palette-primary-solidColor)",backgroundColor:"var(--joy-palette-primary-solidBg)",height:"52px","&: hover":{backgroundColor:"var(--joy-palette-primary-solidHoverBg)"}}},children:null==d?void 0:null===(e=d.data)||void 0===e?void 0:e.map(e=>(0,o.jsx)(b.Z,{size:"md",variant:"solid",className:"text-base rounded-none",onClick:async()=>{var r,o;let i=await (0,z.K)("/v1/chat/dialogue/new",{chat_mode:e.chat_scene});(null==i?void 0:i.success)&&(null==i?void 0:null===(r=i.data)||void 0===r?void 0:r.conv_uid)&&t.push("/chat?id=".concat(null==i?void 0:null===(o=i.data)||void 0===o?void 0:o.conv_uid,"&scene=").concat(e.chat_scene))},children:e.scene_name},e.chat_scene))})]})}),(0,o.jsx)("div",{className:"mt-6 mb-[10%] pointer-events-none inset-x-0 bottom-0 z-0 mx-auto flex w-full max-w-3xl flex-col items-center justify-center max-md:border-t xl:max-w-4xl [&>*]:pointer-events-auto",children:(0,o.jsx)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",height:"52px"},onSubmit:e=>{c.handleSubmit(v)(e)},children:(0,o.jsx)(S.ZP,{sx:{width:"100%"},variant:"outlined",placeholder:"Ask anything",endDecorator:(0,o.jsx)(j.ZP,{type:"submit",disabled:l,children:(0,o.jsx)(B.Z,{})}),...c.register("query")})})})]})})}},78915:function(e,r,t){"use strict";t.d(r,{T:function(){return c},K:function(){return d}});var o=t(21628),i=t(24214);let n=i.Z.create({baseURL:"http://localhost:5000"});n.defaults.timeout=1e4,n.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=t(84835);let l={"content-type":"application/json"},s=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let r={...e};for(let e in r){let t=r[e];"string"==typeof t&&(r[e]=t.trim())}return JSON.stringify(r)},c=(e,r)=>{if(r){let t=Object.keys(r).filter(e=>void 0!==r[e]&&""!==r[e]).map(e=>"".concat(e,"=").concat(r[e])).join("&");t&&(e+="?".concat(t))}return n.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})},d=(e,r)=>{let t=s(r);return n.post("/api"+e,{body:t,headers:l}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})}},56008:function(e,r,t){e.exports=t(30794)}},function(e){e.O(0,[180,430,577,86,562,259,253,769,744],function(){return e(e.s=45825)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/webpack-b546a9873d86091b.js b/pilot/server/static/_next/static/chunks/webpack-053a725dccea4b75.js similarity index 98% rename from pilot/server/static/_next/static/chunks/webpack-b546a9873d86091b.js rename to pilot/server/static/_next/static/chunks/webpack-053a725dccea4b75.js index 0e6ec8a51..814eb85a8 100644 --- a/pilot/server/static/_next/static/chunks/webpack-b546a9873d86091b.js +++ b/pilot/server/static/_next/static/chunks/webpack-053a725dccea4b75.js @@ -1 +1 @@ -!function(){"use strict";var e,t,n,r,o,u,i,c,f,a={},l={};function d(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={id:e,loaded:!1,exports:{}},r=!0;try{a[e].call(n.exports,n,n.exports,d),r=!1}finally{r&&delete l[e]}return n.loaded=!0,n.exports}d.m=a,e=[],d.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(d.O).every(function(e){return d.O[e](n[f])})?n.splice(f--,1):(c=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(d.O).every(function(e){return d.O[e](n[f])})?n.splice(f--,1):(c=!1,o\*\]\:pointer-events-auto>*{pointer-events:auto}#nprogress{pointer-events:none}#nprogress .bar{background:var(--joy-palette-primary-500,#096bde);position:fixed;z-index:10031;top:0;left:0;width:100%;height:3px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px var(--joy-palette-primary-500,#096bde),0 0 5px var(--joy-palette-primary-500,#096bde);opacity:1;transform:rotate(3deg) translateY(-4px)} \ No newline at end of file +*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Josefin Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.z-0{z-index:0}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-top:0;margin-bottom:0}.-mr-3{margin-right:-.75rem}.mb-\[10\%\]{margin-bottom:10%}.mr-3{margin-right:.75rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-6{margin-top:1.5rem}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-12{height:3rem}.h-9{height:2.25rem}.h-full{height:100%}.max-h-screen{max-height:100vh}.min-h-0{min-height:0}.min-h-full{min-height:100%}.w-12{width:3rem}.w-9{width:2.25rem}.w-full{width:100%}.w-screen{width:100vw}.min-w-0{min-width:0}.max-w-3xl{max-width:48rem}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-rows-\[auto\2c 1fr\]{grid-template-rows:auto 1fr}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.overflow-auto{overflow:auto}.overflow-hidden,.truncate{overflow:hidden}.truncate{text-overflow:ellipsis;white-space:nowrap}.rounded-none{border-radius:0}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.bg-\[\#E9EBEE\]{--tw-bg-opacity:1;background-color:rgb(233 235 238/var(--tw-bg-opacity))}.bg-\[\#F1F2F5\]{--tw-bg-opacity:1;background-color:rgb(241 242 245/var(--tw-bg-opacity))}.bg-\[\#FFFFFF\]{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-\[\#fefefe\]{--tw-bg-opacity:1;background-color:rgb(254 254 254/var(--tw-bg-opacity))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\[\#31afff\]{--tw-gradient-from:#31afff var(--tw-gradient-from-position);--tw-gradient-to:rgba(49,175,255,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-\[\#1677ff\]{--tw-gradient-to:#1677ff var(--tw-gradient-to-position)}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-7{padding-top:1.75rem}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-sans{font-family:Josefin Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-base{font-size:1rem;line-height:1.5rem}.text-\[\#878c93\]{--tw-text-opacity:1;color:rgb(135 140 147/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}body{margin:0;color:var(--joy-palette-text-primary,var(--joy-palette-neutral-800,#25252d));font-family:var(--joy-fontFamily-body,var(--joy-Josefin Sans,sans-serif));font-size:var(--joy-fontSize-md,1rem);line-height:var(--joy-lineHeight-md,1.5);background-color:var(--joy-palette-background-body)}body .ant-btn-primary{background-color:#1677ff}.ant-pagination .ant-pagination-next *,.ant-pagination .ant-pagination-prev *{color:#9123a7!important}.ant-pagination .ant-pagination-item{border-color:#9123a7!important;background-color:#9123a7!important}.ant-pagination .ant-pagination-item.ant-pagination-item-active a{color:#fff!important}.before\:bg-\[\#fefefe\]:before{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(254 254 254/var(--tw-bg-opacity))}:is(.dark .dark\:border-gray-800){--tw-border-opacity:1;border-color:rgb(31 41 55/var(--tw-border-opacity))}:is(.dark .dark\:bg-\[\#212121\]){--tw-bg-opacity:1;background-color:rgb(33 33 33/var(--tw-bg-opacity))}:is(.dark .dark\:bg-\[\#484848\]){--tw-bg-opacity:1;background-color:rgb(72 72 72/var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800\/70){background-color:rgba(31,41,55,.7)}:is(.dark .dark\:bg-gradient-to-r){background-image:linear-gradient(to right,var(--tw-gradient-stops))}:is(.dark .dark\:from-\[\#6a6a6a\]){--tw-gradient-from:#6a6a6a var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,42%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}:is(.dark .dark\:to-\[\#80868f\]){--tw-gradient-to:#80868f var(--tw-gradient-to-position)}:is(.dark .dark\:text-gray-300){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}:is(.dark .before\:dark\:bg-\[\#212121\]):before{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(33 33 33/var(--tw-bg-opacity))}@media not all and (min-width:768px){.max-md\:hidden{display:none}.max-md\:border-t{border-top-width:1px}}@media (min-width:640px){.sm\:gap-8{gap:2rem}}@media (min-width:768px){.md\:hidden{display:none}.md\:grid-cols-\[280px\2c 1fr\]{grid-template-columns:280px 1fr}.md\:grid-rows-\[1fr\]{grid-template-rows:1fr}}@media (min-width:1024px){.lg\:col-span-3{grid-column:span 3/span 3}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:gap-6{gap:1.5rem}}@media (min-width:1280px){.xl\:max-w-4xl{max-width:56rem}.xl\:max-w-5xl{max-width:64rem}}.\[\&\>\*\]\:pointer-events-auto>*{pointer-events:auto}#nprogress{pointer-events:none}#nprogress .bar{background:var(--joy-palette-primary-500,#096bde);position:fixed;z-index:10031;top:0;left:0;width:100%;height:3px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px var(--joy-palette-primary-500,#096bde),0 0 5px var(--joy-palette-primary-500,#096bde);opacity:1;transform:rotate(3deg) translateY(-4px)} \ No newline at end of file diff --git a/pilot/server/static/agents/index.html b/pilot/server/static/agents/index.html index 1e22a5aa0..dd7a8a29d 100644 --- a/pilot/server/static/agents/index.html +++ b/pilot/server/static/agents/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/pilot/server/static/agents/index.txt b/pilot/server/static/agents/index.txt index fb272acb4..3ceaf9608 100644 --- a/pilot/server/static/agents/index.txt +++ b/pilot/server/static/agents/index.txt @@ -1,9 +1,9 @@ -1:HL["/_next/static/css/2d59d2fccc805bbc.css",{"as":"style"}] -0:["78-6fvqkDkgeOnUsWIzRd",[[["",{"children":["agents",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-c8df6bd2dbefb573.js"],"name":"","async":false} -5:I{"id":"13211","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -6:I{"id":"5767","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -7:I{"id":"37396","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"4191","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","757:static/chunks/f60284a2-6891068c9ea7ce77.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","562:static/chunks/562-967d90db5cfc2e85.js","259:static/chunks/259-2c3490a9eca2f411.js","751:static/chunks/751-9808572c67f2351c.js","662:static/chunks/662-6f651dffca342bc9.js","481:static/chunks/481-55e7d47dd2c74b66.js","718:static/chunks/app/agents/page-bf26b65bed55ade1.js"],"name":"","async":false} +1:HL["/_next/static/css/500e50384396563b.css",{"as":"style"}] +0:["7kBNiPNqLEMy4jACgzMf4",[[["",{"children":["agents",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/500e50384396563b.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","214:static/chunks/214-6da104d67aad51e5.js","693:static/chunks/693-ed79550f78fd681b.js","316:static/chunks/316-cdd7af28971b8ca4.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-1851fcd483733ee4.js"],"name":"","async":false} +5:I{"id":"13211","chunks":["272:static/chunks/webpack-053a725dccea4b75.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +6:I{"id":"5767","chunks":["272:static/chunks/webpack-053a725dccea4b75.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +7:I{"id":"37396","chunks":["272:static/chunks/webpack-053a725dccea4b75.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +8:I{"id":"4191","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","757:static/chunks/f60284a2-6891068c9ea7ce77.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","214:static/chunks/214-6da104d67aad51e5.js","86:static/chunks/86-3a20bc6b78835c59.js","316:static/chunks/316-cdd7af28971b8ca4.js","259:static/chunks/259-2c3490a9eca2f411.js","751:static/chunks/751-9808572c67f2351c.js","662:static/chunks/662-6f651dffca342bc9.js","481:static/chunks/481-55e7d47dd2c74b66.js","718:static/chunks/app/agents/page-1a9eb9931bf223c4.js"],"name":"","async":false} 2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","agents","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],null],"segment":"agents"},"styles":[]}],"params":{}}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]] diff --git a/pilot/server/static/chat/index.html b/pilot/server/static/chat/index.html index 014fde83b..045eb2ed1 100644 --- a/pilot/server/static/chat/index.html +++ b/pilot/server/static/chat/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/pilot/server/static/chat/index.txt b/pilot/server/static/chat/index.txt index fe4edfe05..4944fffb2 100644 --- a/pilot/server/static/chat/index.txt +++ b/pilot/server/static/chat/index.txt @@ -1,9 +1,9 @@ -1:HL["/_next/static/css/2d59d2fccc805bbc.css",{"as":"style"}] -0:["78-6fvqkDkgeOnUsWIzRd",[[["",{"children":["chat",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-c8df6bd2dbefb573.js"],"name":"","async":false} -5:I{"id":"13211","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -6:I{"id":"5767","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -7:I{"id":"37396","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"59498","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","562:static/chunks/562-967d90db5cfc2e85.js","259:static/chunks/259-2c3490a9eca2f411.js","751:static/chunks/751-9808572c67f2351c.js","662:static/chunks/662-6f651dffca342bc9.js","929:static/chunks/app/chat/page-c8e22645d6c99448.js"],"name":"","async":false} +1:HL["/_next/static/css/500e50384396563b.css",{"as":"style"}] +0:["7kBNiPNqLEMy4jACgzMf4",[[["",{"children":["chat",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/500e50384396563b.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","214:static/chunks/214-6da104d67aad51e5.js","693:static/chunks/693-ed79550f78fd681b.js","316:static/chunks/316-cdd7af28971b8ca4.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-1851fcd483733ee4.js"],"name":"","async":false} +5:I{"id":"13211","chunks":["272:static/chunks/webpack-053a725dccea4b75.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +6:I{"id":"5767","chunks":["272:static/chunks/webpack-053a725dccea4b75.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +7:I{"id":"37396","chunks":["272:static/chunks/webpack-053a725dccea4b75.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +8:I{"id":"59498","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","214:static/chunks/214-6da104d67aad51e5.js","86:static/chunks/86-3a20bc6b78835c59.js","316:static/chunks/316-cdd7af28971b8ca4.js","259:static/chunks/259-2c3490a9eca2f411.js","751:static/chunks/751-9808572c67f2351c.js","662:static/chunks/662-6f651dffca342bc9.js","929:static/chunks/app/chat/page-9f94c641247afd26.js"],"name":"","async":false} 2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","chat","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"chat"},"styles":[]}],"params":{}}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]] diff --git a/pilot/server/static/datastores/documents/chunklist/index.html b/pilot/server/static/datastores/documents/chunklist/index.html index 4bede4f93..4d035a77a 100644 --- a/pilot/server/static/datastores/documents/chunklist/index.html +++ b/pilot/server/static/datastores/documents/chunklist/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/pilot/server/static/datastores/documents/chunklist/index.txt b/pilot/server/static/datastores/documents/chunklist/index.txt index adb767936..97744e50d 100644 --- a/pilot/server/static/datastores/documents/chunklist/index.txt +++ b/pilot/server/static/datastores/documents/chunklist/index.txt @@ -1,9 +1,9 @@ -1:HL["/_next/static/css/2d59d2fccc805bbc.css",{"as":"style"}] -0:["78-6fvqkDkgeOnUsWIzRd",[[["",{"children":["datastores",{"children":["documents",{"children":["chunklist",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-c8df6bd2dbefb573.js"],"name":"","async":false} -5:I{"id":"13211","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -6:I{"id":"5767","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -7:I{"id":"37396","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"26257","chunks":["430:static/chunks/430-266fcdf5d617a912.js","693:static/chunks/693-ed79550f78fd681b.js","118:static/chunks/118-46b95fe35f46f1b9.js","440:static/chunks/440-96bb64772ec3a56d.js","55:static/chunks/55-41778c7520ea1334.js","538:static/chunks/app/datastores/documents/chunklist/page-d24299cdff6d507c.js"],"name":"","async":false} +1:HL["/_next/static/css/500e50384396563b.css",{"as":"style"}] +0:["7kBNiPNqLEMy4jACgzMf4",[[["",{"children":["datastores",{"children":["documents",{"children":["chunklist",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/500e50384396563b.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","214:static/chunks/214-6da104d67aad51e5.js","693:static/chunks/693-ed79550f78fd681b.js","316:static/chunks/316-cdd7af28971b8ca4.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-1851fcd483733ee4.js"],"name":"","async":false} +5:I{"id":"13211","chunks":["272:static/chunks/webpack-053a725dccea4b75.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +6:I{"id":"5767","chunks":["272:static/chunks/webpack-053a725dccea4b75.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +7:I{"id":"37396","chunks":["272:static/chunks/webpack-053a725dccea4b75.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +8:I{"id":"26257","chunks":["797:static/chunks/797-d2478b2581e1fdcb.js","693:static/chunks/693-ed79550f78fd681b.js","118:static/chunks/118-46b95fe35f46f1b9.js","440:static/chunks/440-8431a38ed9f2e11b.js","55:static/chunks/55-41778c7520ea1334.js","538:static/chunks/app/datastores/documents/chunklist/page-72f7f9cb769de003.js"],"name":"","async":false} 2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children","documents","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children","documents","children","chunklist","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"chunklist"},"styles":[]}],"segment":"documents"},"styles":[]}],"segment":"datastores"},"styles":[]}],"params":{}}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]] diff --git a/pilot/server/static/datastores/documents/index.html b/pilot/server/static/datastores/documents/index.html index fd965a764..4996aa1e9 100644 --- a/pilot/server/static/datastores/documents/index.html +++ b/pilot/server/static/datastores/documents/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/pilot/server/static/datastores/documents/index.txt b/pilot/server/static/datastores/documents/index.txt index 72fad0fe8..cd8234ec0 100644 --- a/pilot/server/static/datastores/documents/index.txt +++ b/pilot/server/static/datastores/documents/index.txt @@ -1,9 +1,9 @@ -1:HL["/_next/static/css/2d59d2fccc805bbc.css",{"as":"style"}] -0:["78-6fvqkDkgeOnUsWIzRd",[[["",{"children":["datastores",{"children":["documents",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-c8df6bd2dbefb573.js"],"name":"","async":false} -5:I{"id":"13211","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -6:I{"id":"5767","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -7:I{"id":"37396","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"16692","chunks":["550:static/chunks/925f3d25-1af7259455ef26bd.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","693:static/chunks/693-ed79550f78fd681b.js","118:static/chunks/118-46b95fe35f46f1b9.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","55:static/chunks/55-41778c7520ea1334.js","642:static/chunks/642-df31c252aa27b391.js","470:static/chunks/app/datastores/documents/page-497fcc1c34ff4a13.js"],"name":"","async":false} +1:HL["/_next/static/css/500e50384396563b.css",{"as":"style"}] +0:["7kBNiPNqLEMy4jACgzMf4",[[["",{"children":["datastores",{"children":["documents",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/500e50384396563b.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","214:static/chunks/214-6da104d67aad51e5.js","693:static/chunks/693-ed79550f78fd681b.js","316:static/chunks/316-cdd7af28971b8ca4.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-1851fcd483733ee4.js"],"name":"","async":false} +5:I{"id":"13211","chunks":["272:static/chunks/webpack-053a725dccea4b75.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +6:I{"id":"5767","chunks":["272:static/chunks/webpack-053a725dccea4b75.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +7:I{"id":"37396","chunks":["272:static/chunks/webpack-053a725dccea4b75.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +8:I{"id":"16692","chunks":["550:static/chunks/925f3d25-1af7259455ef26bd.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","693:static/chunks/693-ed79550f78fd681b.js","118:static/chunks/118-46b95fe35f46f1b9.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","55:static/chunks/55-41778c7520ea1334.js","642:static/chunks/642-df31c252aa27b391.js","470:static/chunks/app/datastores/documents/page-d8e7a09883074ff0.js"],"name":"","async":false} 2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children","documents","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"documents"},"styles":[]}],"segment":"datastores"},"styles":[]}],"params":{}}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]] diff --git a/pilot/server/static/datastores/index.html b/pilot/server/static/datastores/index.html index 997ef0403..eaba7d7f9 100644 --- a/pilot/server/static/datastores/index.html +++ b/pilot/server/static/datastores/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/pilot/server/static/datastores/index.txt b/pilot/server/static/datastores/index.txt index ca88ab883..33d034d91 100644 --- a/pilot/server/static/datastores/index.txt +++ b/pilot/server/static/datastores/index.txt @@ -1,9 +1,9 @@ -1:HL["/_next/static/css/2d59d2fccc805bbc.css",{"as":"style"}] -0:["78-6fvqkDkgeOnUsWIzRd",[[["",{"children":["datastores",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-c8df6bd2dbefb573.js"],"name":"","async":false} -5:I{"id":"13211","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -6:I{"id":"5767","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -7:I{"id":"37396","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"44323","chunks":["430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","693:static/chunks/693-ed79550f78fd681b.js","118:static/chunks/118-46b95fe35f46f1b9.js","672:static/chunks/672-860e1c1d53658862.js","642:static/chunks/642-df31c252aa27b391.js","43:static/chunks/app/datastores/page-f80c26174f4684ec.js"],"name":"","async":false} +1:HL["/_next/static/css/500e50384396563b.css",{"as":"style"}] +0:["7kBNiPNqLEMy4jACgzMf4",[[["",{"children":["datastores",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/500e50384396563b.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","214:static/chunks/214-6da104d67aad51e5.js","693:static/chunks/693-ed79550f78fd681b.js","316:static/chunks/316-cdd7af28971b8ca4.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-1851fcd483733ee4.js"],"name":"","async":false} +5:I{"id":"13211","chunks":["272:static/chunks/webpack-053a725dccea4b75.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +6:I{"id":"5767","chunks":["272:static/chunks/webpack-053a725dccea4b75.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +7:I{"id":"37396","chunks":["272:static/chunks/webpack-053a725dccea4b75.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +8:I{"id":"44323","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","214:static/chunks/214-6da104d67aad51e5.js","86:static/chunks/86-3a20bc6b78835c59.js","693:static/chunks/693-ed79550f78fd681b.js","118:static/chunks/118-46b95fe35f46f1b9.js","672:static/chunks/672-860e1c1d53658862.js","642:static/chunks/642-df31c252aa27b391.js","43:static/chunks/app/datastores/page-826697a85e728a5c.js"],"name":"","async":false} 2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"datastores"},"styles":[]}],"params":{}}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]] diff --git a/pilot/server/static/index.html b/pilot/server/static/index.html index 219ec054d..5dc81f5f7 100644 --- a/pilot/server/static/index.html +++ b/pilot/server/static/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/pilot/server/static/index.txt b/pilot/server/static/index.txt index 7ee8af731..400cd469f 100644 --- a/pilot/server/static/index.txt +++ b/pilot/server/static/index.txt @@ -1,9 +1,9 @@ -1:HL["/_next/static/css/2d59d2fccc805bbc.css",{"as":"style"}] -0:["78-6fvqkDkgeOnUsWIzRd",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-c8df6bd2dbefb573.js"],"name":"","async":false} -5:I{"id":"13211","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -6:I{"id":"5767","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -7:I{"id":"37396","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"26925","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","562:static/chunks/562-967d90db5cfc2e85.js","259:static/chunks/259-2c3490a9eca2f411.js","931:static/chunks/app/page-d905b9e0123b490c.js"],"name":"","async":false} +1:HL["/_next/static/css/500e50384396563b.css",{"as":"style"}] +0:["7kBNiPNqLEMy4jACgzMf4",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/500e50384396563b.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","214:static/chunks/214-6da104d67aad51e5.js","693:static/chunks/693-ed79550f78fd681b.js","316:static/chunks/316-cdd7af28971b8ca4.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-1851fcd483733ee4.js"],"name":"","async":false} +5:I{"id":"13211","chunks":["272:static/chunks/webpack-053a725dccea4b75.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +6:I{"id":"5767","chunks":["272:static/chunks/webpack-053a725dccea4b75.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +7:I{"id":"37396","chunks":["272:static/chunks/webpack-053a725dccea4b75.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +8:I{"id":"26925","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","214:static/chunks/214-6da104d67aad51e5.js","86:static/chunks/86-3a20bc6b78835c59.js","316:static/chunks/316-cdd7af28971b8ca4.js","259:static/chunks/259-2c3490a9eca2f411.js","931:static/chunks/app/page-1212e9544d59c652.js"],"name":"","async":false} 2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"params":{}}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]]