From 251f314c924f2f0b3fdd288d8a2f2344df3118d2 Mon Sep 17 00:00:00 2001 From: aries_ckt <916701291@qq.com> Date: Mon, 7 Aug 2023 16:57:31 +0800 Subject: [PATCH] feat:add knowledge argument web page --- pilot/server/static/404.html | 2 +- pilot/server/static/404/index.html | 2 +- .../_buildManifest.js | 0 .../_ssgManifest.js | 0 ...8ef99caef9fdf742.js => 230-9b7eec94114cc7c3.js} | 4 ++-- .../_next/static/chunks/259-2c3490a9eca2f411.js | 1 - .../_next/static/chunks/316-370750739484dff7.js | 1 - .../_next/static/chunks/341-45d79e5f1110ab05.js | 1 + ...f82130fbef33c4d6.js => 796-efa6197beb2ead5e.js} | 6 +++--- .../_next/static/chunks/81-96228d374838bf49.js | 1 + ...25c9b71d449c8910.js => 877-cd5be147a1026461.js} | 2 +- .../chunks/app/chat/page-614438239adc40fc.js | 1 - .../chunks/app/chat/page-641be9e13d61cb24.js | 1 + .../documents/chunklist/page-5817243840a3f0d3.js | 1 - .../documents/chunklist/page-cd9a18b737d2f31b.js | 1 + .../datastores/documents/page-8c5325d5737cf6c7.js | 1 + .../datastores/documents/page-da4704cece0cf28a.js | 1 - ...d798355f6d9e339.js => page-1a9284a20aa72bde.js} | 2 +- ...1b4ac844c585c.js => layout-b589be73288fef1e.js} | 2 +- ...a66758966b07f9b.js => page-d7bb6ba07fe28c2b.js} | 2 +- ...750561cfcccd.js => webpack-73c0531c498ccd8d.js} | 2 +- .../{f7886471966370ed.css => 1dfcd77e60327762.css} | 2 +- pilot/server/static/chat/index.html | 2 +- pilot/server/static/chat/index.txt | 14 +++++++------- .../datastores/documents/chunklist/index.html | 2 +- .../datastores/documents/chunklist/index.txt | 14 +++++++------- .../server/static/datastores/documents/index.html | 2 +- pilot/server/static/datastores/documents/index.txt | 14 +++++++------- pilot/server/static/datastores/index.html | 2 +- pilot/server/static/datastores/index.txt | 14 +++++++------- pilot/server/static/index.html | 2 +- pilot/server/static/index.txt | 14 +++++++------- 32 files changed, 58 insertions(+), 58 deletions(-) rename pilot/server/static/_next/static/{8wN6ARX3c5zahVupdkg9Y => Cacznp7OMpA2Ut8fcv_rl}/_buildManifest.js (100%) rename pilot/server/static/_next/static/{8wN6ARX3c5zahVupdkg9Y => Cacznp7OMpA2Ut8fcv_rl}/_ssgManifest.js (100%) rename pilot/server/static/_next/static/chunks/{60-8ef99caef9fdf742.js => 230-9b7eec94114cc7c3.js} (55%) delete mode 100644 pilot/server/static/_next/static/chunks/259-2c3490a9eca2f411.js delete mode 100644 pilot/server/static/_next/static/chunks/316-370750739484dff7.js create mode 100644 pilot/server/static/_next/static/chunks/341-45d79e5f1110ab05.js rename pilot/server/static/_next/static/chunks/{256-f82130fbef33c4d6.js => 796-efa6197beb2ead5e.js} (74%) create mode 100644 pilot/server/static/_next/static/chunks/81-96228d374838bf49.js rename pilot/server/static/_next/static/chunks/{838-25c9b71d449c8910.js => 877-cd5be147a1026461.js} (82%) delete mode 100644 pilot/server/static/_next/static/chunks/app/chat/page-614438239adc40fc.js create mode 100644 pilot/server/static/_next/static/chunks/app/chat/page-641be9e13d61cb24.js delete mode 100644 pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-5817243840a3f0d3.js create mode 100644 pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-cd9a18b737d2f31b.js create mode 100644 pilot/server/static/_next/static/chunks/app/datastores/documents/page-8c5325d5737cf6c7.js delete mode 100644 pilot/server/static/_next/static/chunks/app/datastores/documents/page-da4704cece0cf28a.js rename pilot/server/static/_next/static/chunks/app/datastores/{page-9d798355f6d9e339.js => page-1a9284a20aa72bde.js} (99%) rename pilot/server/static/_next/static/chunks/app/{layout-4991b4ac844c585c.js => layout-b589be73288fef1e.js} (98%) rename pilot/server/static/_next/static/chunks/app/{page-1a66758966b07f9b.js => page-d7bb6ba07fe28c2b.js} (99%) rename pilot/server/static/_next/static/chunks/{webpack-8be0750561cfcccd.js => webpack-73c0531c498ccd8d.js} (98%) rename pilot/server/static/_next/static/css/{f7886471966370ed.css => 1dfcd77e60327762.css} (76%) diff --git a/pilot/server/static/404.html b/pilot/server/static/404.html index 8e9b53af4..b1f90a62a 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 8e9b53af4..b1f90a62a 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/8wN6ARX3c5zahVupdkg9Y/_buildManifest.js b/pilot/server/static/_next/static/Cacznp7OMpA2Ut8fcv_rl/_buildManifest.js similarity index 100% rename from pilot/server/static/_next/static/8wN6ARX3c5zahVupdkg9Y/_buildManifest.js rename to pilot/server/static/_next/static/Cacznp7OMpA2Ut8fcv_rl/_buildManifest.js diff --git a/pilot/server/static/_next/static/8wN6ARX3c5zahVupdkg9Y/_ssgManifest.js b/pilot/server/static/_next/static/Cacznp7OMpA2Ut8fcv_rl/_ssgManifest.js similarity index 100% rename from pilot/server/static/_next/static/8wN6ARX3c5zahVupdkg9Y/_ssgManifest.js rename to pilot/server/static/_next/static/Cacznp7OMpA2Ut8fcv_rl/_ssgManifest.js diff --git a/pilot/server/static/_next/static/chunks/60-8ef99caef9fdf742.js b/pilot/server/static/_next/static/chunks/230-9b7eec94114cc7c3.js similarity index 55% rename from pilot/server/static/_next/static/chunks/60-8ef99caef9fdf742.js rename to pilot/server/static/_next/static/chunks/230-9b7eec94114cc7c3.js index 03a3b1da8..5ff59b39e 100644 --- a/pilot/server/static/_next/static/chunks/60-8ef99caef9fdf742.js +++ b/pilot/server/static/_next/static/chunks/230-9b7eec94114cc7c3.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60],{76906:function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=t(82833)},90545:function(r,e,t){"use strict";t.d(e,{Z:function(){return h}});var n=t(40431),o=t(46750),i=t(86006),a=t(89791),s=t(4323),l=t(51579),c=t(86601),u=t(95887),d=t(9268);let f=["className","component"];var g=t(47327),p=t(98918),v=t(8622);let m=function(r={}){let{themeId:e,defaultTheme:t,defaultClassName:g="MuiBox-root",generateClassName:p}=r,v=(0,s.ZP)("div",{shouldForwardProp:r=>"theme"!==r&&"sx"!==r&&"as"!==r})(l.Z),m=i.forwardRef(function(r,i){let s=(0,u.Z)(t),l=(0,c.Z)(r),{className:m,component:h="div"}=l,b=(0,o.Z)(l,f);return(0,d.jsx)(v,(0,n.Z)({as:h,ref:i,className:(0,a.Z)(m,p?p(g):g),theme:e&&s[e]||s},b))});return m}({themeId:v.Z,defaultTheme:p.Z,defaultClassName:"MuiBox-root",generateClassName:g.Z.generate});var h=m},53113:function(r,e,t){"use strict";var n=t(46750),o=t(40431),i=t(86006),a=t(46319),s=t(47562),l=t(53832),c=t(99179),u=t(50645),d=t(88930),f=t(47093),g=t(326),p=t(94244),v=t(77614),m=t(42858),h=t(9268);let b=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled","component","slots","slotProps"],Z=r=>{let{color:e,disabled:t,focusVisible:n,focusVisibleClassName:o,fullWidth:i,size:a,variant:c,loading:u}=r,d={root:["root",t&&"disabled",n&&"focusVisible",i&&"fullWidth",c&&`variant${(0,l.Z)(c)}`,e&&`color${(0,l.Z)(e)}`,a&&`size${(0,l.Z)(a)}`,u&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},f=(0,s.Z)(d,v.F,{});return n&&o&&(f.root+=` ${o}`),f},y=(0,u.Z)("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(r,e)=>e.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)"}),k=(0,u.Z)("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(r,e)=>e.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)"}),x=(0,u.Z)("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(r,e)=>e.loadingIndicatorCenter})(({theme:r,ownerState:e})=>{var t,n;return(0,o.Z)({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(t=r.variants[e.variant])||null==(t=t[e.color])?void 0:t.color},e.disabled&&{color:null==(n=r.variants[`${e.variant}Disabled`])||null==(n=n[e.color])?void 0:n.color})}),C=(0,u.Z)("button",{name:"JoyButton",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i,a;return[(0,o.Z)({"--Icon-margin":"initial"},"sm"===e.size&&{"--Icon-fontSize":"1.25rem","--CircularProgress-size":"20px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:r.vars.fontSize.sm,paddingBlock:"2px",paddingInline:"0.75rem"},"md"===e.size&&{"--Icon-fontSize":"1.5rem","--CircularProgress-size":"24px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.5rem)",fontSize:r.vars.fontSize.sm,paddingBlock:"0.25rem",paddingInline:"1rem"},"lg"===e.size&&{"--Icon-fontSize":"1.75rem","--CircularProgress-size":"28px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 3rem)",fontSize:r.vars.fontSize.md,paddingBlock:"0.375rem",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",borderRadius:`var(--Button-radius, ${r.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:r.vars.fontFamily.body,fontWeight:r.vars.fontWeight.lg,lineHeight:1},e.fullWidth&&{width:"100%"},{[r.focus.selector]:r.focus.default}),null==(t=r.variants[e.variant])?void 0:t[e.color],{"&:hover":{"@media (hover: hover)":null==(n=r.variants[`${e.variant}Hover`])?void 0:n[e.color]}},{"&:active":null==(i=r.variants[`${e.variant}Active`])?void 0:i[e.color]},(0,o.Z)({[`&.${v.Z.disabled}`]:null==(a=r.variants[`${e.variant}Disabled`])?void 0:a[e.color]},"center"===e.loadingPosition&&{[`&.${v.Z.loading}`]:{color:"transparent"}})]}),z=i.forwardRef(function(r,e){var t;let s=(0,d.Z)({props:r,name:"JoyButton"}),{children:l,action:u,color:v="primary",variant:z="solid",size:S="md",fullWidth:P=!1,startDecorator:T,endDecorator:I,loading:$=!1,loadingPosition:w="center",loadingIndicator:_,disabled:A,component:B,slots:R={},slotProps:D={}}=s,N=(0,n.Z)(s,b),M=i.useContext(m.Z),O=r.variant||M.variant||z,F=r.size||M.size||S,{getColor:W}=(0,f.VT)(O),j=W(r.color,M.color||v),E=null!=(t=r.disabled)?t:M.disabled||A||$,H=i.useRef(null),V=(0,c.Z)(H,e),{focusVisible:J,setFocusVisible:L,getRootProps:U}=(0,a.Z)((0,o.Z)({},s,{disabled:E,rootRef:V})),K=null!=_?_:(0,h.jsx)(p.Z,(0,o.Z)({},"context"!==j&&{color:j},{thickness:{sm:2,md:3,lg:4}[F]||3}));i.useImperativeHandle(u,()=>({focusVisible:()=>{var r;L(!0),null==(r=H.current)||r.focus()}}),[L]);let q=(0,o.Z)({},s,{color:j,fullWidth:P,variant:O,size:F,focusVisible:J,loading:$,loadingPosition:w,disabled:E}),G=Z(q),X=(0,o.Z)({},N,{component:B,slots:R,slotProps:D}),[Q,Y]=(0,g.Z)("root",{ref:e,className:G.root,elementType:C,externalForwardedProps:X,getSlotProps:U,ownerState:q}),[rr,re]=(0,g.Z)("startDecorator",{className:G.startDecorator,elementType:y,externalForwardedProps:X,ownerState:q}),[rt,rn]=(0,g.Z)("endDecorator",{className:G.endDecorator,elementType:k,externalForwardedProps:X,ownerState:q}),[ro,ri]=(0,g.Z)("loadingIndicatorCenter",{className:G.loadingIndicatorCenter,elementType:x,externalForwardedProps:X,ownerState:q});return(0,h.jsxs)(Q,(0,o.Z)({},Y,{children:[(T||$&&"start"===w)&&(0,h.jsx)(rr,(0,o.Z)({},re,{children:$&&"start"===w?K:T})),l,$&&"center"===w&&(0,h.jsx)(ro,(0,o.Z)({},ri,{children:K})),(I||$&&"end"===w)&&(0,h.jsx)(rt,(0,o.Z)({},rn,{children:$&&"end"===w?K:I}))]}))});z.muiName="Button",e.Z=z},77614:function(r,e,t){"use strict";t.d(e,{F:function(){return o}});var n=t(18587);function o(r){return(0,n.d6)("MuiButton",r)}let i=(0,n.sI)("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);e.Z=i},42858:function(r,e,t){"use strict";var n=t(86006);let o=n.createContext({});e.Z=o},94244:function(r,e,t){"use strict";t.d(e,{Z:function(){return I}});var n=t(40431),o=t(46750),i=t(86006),a=t(89791),s=t(53832),l=t(47562),c=t(72120),u=t(50645),d=t(88930),f=t(47093),g=t(326),p=t(18587);function v(r){return(0,p.d6)("MuiCircularProgress",r)}(0,p.sI)("MuiCircularProgress",["root","determinate","svg","track","progress","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var m=t(9268);let h=r=>r,b,Z=["color","backgroundColor"],y=["children","className","color","size","variant","thickness","determinate","value","component","slots","slotProps"],k=(0,c.F4)({"0%":{transform:"rotate(-90deg)"},"100%":{transform:"rotate(270deg)"}}),x=r=>{let{determinate:e,color:t,variant:n,size:o}=r,i={root:["root",e&&"determinate",t&&`color${(0,s.Z)(t)}`,n&&`variant${(0,s.Z)(n)}`,o&&`size${(0,s.Z)(o)}`],svg:["svg"],track:["track"],progress:["progress"]};return(0,l.Z)(i,v,{})},C=(0,u.Z)("span",{name:"JoyCircularProgress",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r,theme:e})=>{var t;let i=(null==(t=e.variants[r.variant])?void 0:t[r.color])||{},{color:a,backgroundColor:s}=i,l=(0,o.Z)(i,Z);return(0,n.Z)({"--Icon-fontSize":"calc(0.4 * var(--_root-size))","--CircularProgress-trackColor":s,"--CircularProgress-progressColor":a,"--CircularProgress-percent":r.value,"--CircularProgress-linecap":"round"},"sm"===r.size&&{"--CircularProgress-trackThickness":"3px","--CircularProgress-progressThickness":"3px","--_root-size":"var(--CircularProgress-size, 24px)"},"sm"===r.instanceSize&&{"--CircularProgress-size":"24px"},"md"===r.size&&{"--CircularProgress-trackThickness":"6px","--CircularProgress-progressThickness":"6px","--_root-size":"var(--CircularProgress-size, 40px)"},"md"===r.instanceSize&&{"--CircularProgress-size":"40px"},"lg"===r.size&&{"--CircularProgress-trackThickness":"8px","--CircularProgress-progressThickness":"8px","--_root-size":"var(--CircularProgress-size, 64px)"},"lg"===r.instanceSize&&{"--CircularProgress-size":"64px"},r.thickness&&{"--CircularProgress-trackThickness":`${r.thickness}px`,"--CircularProgress-progressThickness":`${r.thickness}px`},{"--_thickness-diff":"calc(var(--CircularProgress-trackThickness) - var(--CircularProgress-progressThickness))","--_inner-size":"calc(var(--_root-size) - 2 * var(--variant-borderWidth, 0px))","--_outlined-inset":"max(var(--CircularProgress-trackThickness), var(--CircularProgress-progressThickness))",width:"var(--_root-size)",height:"var(--_root-size)",borderRadius:"var(--_root-size)",margin:"var(--CircularProgress-margin)",boxSizing:"border-box",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,position:"relative",color:a},r.children&&{fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,fontSize:"calc(0.2 * var(--_root-size))"},l,"outlined"===r.variant&&{"&:before":(0,n.Z)({content:'""',display:"block",position:"absolute",borderRadius:"inherit",top:"var(--_outlined-inset)",left:"var(--_outlined-inset)",right:"var(--_outlined-inset)",bottom:"var(--_outlined-inset)"},l)})}),z=(0,u.Z)("svg",{name:"JoyCircularProgress",slot:"Svg",overridesResolver:(r,e)=>e.svg})({width:"inherit",height:"inherit",display:"inherit",boxSizing:"inherit",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))"}),S=(0,u.Z)("circle",{name:"JoyCircularProgress",slot:"track",overridesResolver:(r,e)=>e.track})({cx:"50%",cy:"50%",r:"calc(var(--_inner-size) / 2 - var(--CircularProgress-trackThickness) / 2 + min(0px, var(--_thickness-diff) / 2))",fill:"transparent",strokeWidth:"var(--CircularProgress-trackThickness)",stroke:"var(--CircularProgress-trackColor)"}),P=(0,u.Z)("circle",{name:"JoyCircularProgress",slot:"progress",overridesResolver:(r,e)=>e.progress})({"--_progress-radius":"calc(var(--_inner-size) / 2 - var(--CircularProgress-progressThickness) / 2 - max(0px, var(--_thickness-diff) / 2))","--_progress-length":"calc(2 * 3.1415926535 * var(--_progress-radius))",cx:"50%",cy:"50%",r:"var(--_progress-radius)",fill:"transparent",strokeWidth:"var(--CircularProgress-progressThickness)",stroke:"var(--CircularProgress-progressColor)",strokeLinecap:"var(--CircularProgress-linecap, round)",strokeDasharray:"var(--_progress-length)",strokeDashoffset:"calc(var(--_progress-length) - var(--CircularProgress-percent) * var(--_progress-length) / 100)",transformOrigin:"center",transform:"rotate(-90deg)"},({ownerState:r})=>!r.determinate&&(0,c.iv)(b||(b=h` +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[230],{76906:function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=t(82833)},53113:function(r,e,t){"use strict";var n=t(46750),o=t(40431),i=t(86006),a=t(46319),s=t(47562),l=t(53832),c=t(99179),u=t(50645),d=t(88930),f=t(47093),g=t(326),p=t(94244),v=t(77614),m=t(42858),h=t(9268);let b=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled","component","slots","slotProps"],Z=r=>{let{color:e,disabled:t,focusVisible:n,focusVisibleClassName:o,fullWidth:i,size:a,variant:c,loading:u}=r,d={root:["root",t&&"disabled",n&&"focusVisible",i&&"fullWidth",c&&`variant${(0,l.Z)(c)}`,e&&`color${(0,l.Z)(e)}`,a&&`size${(0,l.Z)(a)}`,u&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},f=(0,s.Z)(d,v.F,{});return n&&o&&(f.root+=` ${o}`),f},y=(0,u.Z)("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(r,e)=>e.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)"}),k=(0,u.Z)("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(r,e)=>e.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)"}),x=(0,u.Z)("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(r,e)=>e.loadingIndicatorCenter})(({theme:r,ownerState:e})=>{var t,n;return(0,o.Z)({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(t=r.variants[e.variant])||null==(t=t[e.color])?void 0:t.color},e.disabled&&{color:null==(n=r.variants[`${e.variant}Disabled`])||null==(n=n[e.color])?void 0:n.color})}),C=(0,u.Z)("button",{name:"JoyButton",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i,a;return[(0,o.Z)({"--Icon-margin":"initial"},"sm"===e.size&&{"--Icon-fontSize":"1.25rem","--CircularProgress-size":"20px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:r.vars.fontSize.sm,paddingBlock:"2px",paddingInline:"0.75rem"},"md"===e.size&&{"--Icon-fontSize":"1.5rem","--CircularProgress-size":"24px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.5rem)",fontSize:r.vars.fontSize.sm,paddingBlock:"0.25rem",paddingInline:"1rem"},"lg"===e.size&&{"--Icon-fontSize":"1.75rem","--CircularProgress-size":"28px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 3rem)",fontSize:r.vars.fontSize.md,paddingBlock:"0.375rem",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",borderRadius:`var(--Button-radius, ${r.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:r.vars.fontFamily.body,fontWeight:r.vars.fontWeight.lg,lineHeight:1},e.fullWidth&&{width:"100%"},{[r.focus.selector]:r.focus.default}),null==(t=r.variants[e.variant])?void 0:t[e.color],{"&:hover":{"@media (hover: hover)":null==(n=r.variants[`${e.variant}Hover`])?void 0:n[e.color]}},{"&:active":null==(i=r.variants[`${e.variant}Active`])?void 0:i[e.color]},(0,o.Z)({[`&.${v.Z.disabled}`]:null==(a=r.variants[`${e.variant}Disabled`])?void 0:a[e.color]},"center"===e.loadingPosition&&{[`&.${v.Z.loading}`]:{color:"transparent"}})]}),z=i.forwardRef(function(r,e){var t;let s=(0,d.Z)({props:r,name:"JoyButton"}),{children:l,action:u,color:v="primary",variant:z="solid",size:S="md",fullWidth:P=!1,startDecorator:T,endDecorator:$,loading:I=!1,loadingPosition:w="center",loadingIndicator:_,disabled:A,component:B,slots:R={},slotProps:D={}}=s,M=(0,n.Z)(s,b),N=i.useContext(m.Z),O=r.variant||N.variant||z,W=r.size||N.size||S,{getColor:F}=(0,f.VT)(O),j=F(r.color,N.color||v),E=null!=(t=r.disabled)?t:N.disabled||A||I,H=i.useRef(null),V=(0,c.Z)(H,e),{focusVisible:J,setFocusVisible:L,getRootProps:U}=(0,a.Z)((0,o.Z)({},s,{disabled:E,rootRef:V})),K=null!=_?_:(0,h.jsx)(p.Z,(0,o.Z)({},"context"!==j&&{color:j},{thickness:{sm:2,md:3,lg:4}[W]||3}));i.useImperativeHandle(u,()=>({focusVisible:()=>{var r;L(!0),null==(r=H.current)||r.focus()}}),[L]);let q=(0,o.Z)({},s,{color:j,fullWidth:P,variant:O,size:W,focusVisible:J,loading:I,loadingPosition:w,disabled:E}),G=Z(q),X=(0,o.Z)({},M,{component:B,slots:R,slotProps:D}),[Q,Y]=(0,g.Z)("root",{ref:e,className:G.root,elementType:C,externalForwardedProps:X,getSlotProps:U,ownerState:q}),[rr,re]=(0,g.Z)("startDecorator",{className:G.startDecorator,elementType:y,externalForwardedProps:X,ownerState:q}),[rt,rn]=(0,g.Z)("endDecorator",{className:G.endDecorator,elementType:k,externalForwardedProps:X,ownerState:q}),[ro,ri]=(0,g.Z)("loadingIndicatorCenter",{className:G.loadingIndicatorCenter,elementType:x,externalForwardedProps:X,ownerState:q});return(0,h.jsxs)(Q,(0,o.Z)({},Y,{children:[(T||I&&"start"===w)&&(0,h.jsx)(rr,(0,o.Z)({},re,{children:I&&"start"===w?K:T})),l,I&&"center"===w&&(0,h.jsx)(ro,(0,o.Z)({},ri,{children:K})),($||I&&"end"===w)&&(0,h.jsx)(rt,(0,o.Z)({},rn,{children:I&&"end"===w?K:$}))]}))});z.muiName="Button",e.Z=z},77614:function(r,e,t){"use strict";t.d(e,{F:function(){return o}});var n=t(18587);function o(r){return(0,n.d6)("MuiButton",r)}let i=(0,n.sI)("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);e.Z=i},42858:function(r,e,t){"use strict";var n=t(86006);let o=n.createContext({});e.Z=o},94244:function(r,e,t){"use strict";t.d(e,{Z:function(){return $}});var n=t(40431),o=t(46750),i=t(86006),a=t(89791),s=t(53832),l=t(47562),c=t(72120),u=t(50645),d=t(88930),f=t(47093),g=t(326),p=t(18587);function v(r){return(0,p.d6)("MuiCircularProgress",r)}(0,p.sI)("MuiCircularProgress",["root","determinate","svg","track","progress","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var m=t(9268);let h=r=>r,b,Z=["color","backgroundColor"],y=["children","className","color","size","variant","thickness","determinate","value","component","slots","slotProps"],k=(0,c.F4)({"0%":{transform:"rotate(-90deg)"},"100%":{transform:"rotate(270deg)"}}),x=r=>{let{determinate:e,color:t,variant:n,size:o}=r,i={root:["root",e&&"determinate",t&&`color${(0,s.Z)(t)}`,n&&`variant${(0,s.Z)(n)}`,o&&`size${(0,s.Z)(o)}`],svg:["svg"],track:["track"],progress:["progress"]};return(0,l.Z)(i,v,{})},C=(0,u.Z)("span",{name:"JoyCircularProgress",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r,theme:e})=>{var t;let i=(null==(t=e.variants[r.variant])?void 0:t[r.color])||{},{color:a,backgroundColor:s}=i,l=(0,o.Z)(i,Z);return(0,n.Z)({"--Icon-fontSize":"calc(0.4 * var(--_root-size))","--CircularProgress-trackColor":s,"--CircularProgress-progressColor":a,"--CircularProgress-percent":r.value,"--CircularProgress-linecap":"round"},"sm"===r.size&&{"--CircularProgress-trackThickness":"3px","--CircularProgress-progressThickness":"3px","--_root-size":"var(--CircularProgress-size, 24px)"},"sm"===r.instanceSize&&{"--CircularProgress-size":"24px"},"md"===r.size&&{"--CircularProgress-trackThickness":"6px","--CircularProgress-progressThickness":"6px","--_root-size":"var(--CircularProgress-size, 40px)"},"md"===r.instanceSize&&{"--CircularProgress-size":"40px"},"lg"===r.size&&{"--CircularProgress-trackThickness":"8px","--CircularProgress-progressThickness":"8px","--_root-size":"var(--CircularProgress-size, 64px)"},"lg"===r.instanceSize&&{"--CircularProgress-size":"64px"},r.thickness&&{"--CircularProgress-trackThickness":`${r.thickness}px`,"--CircularProgress-progressThickness":`${r.thickness}px`},{"--_thickness-diff":"calc(var(--CircularProgress-trackThickness) - var(--CircularProgress-progressThickness))","--_inner-size":"calc(var(--_root-size) - 2 * var(--variant-borderWidth, 0px))","--_outlined-inset":"max(var(--CircularProgress-trackThickness), var(--CircularProgress-progressThickness))",width:"var(--_root-size)",height:"var(--_root-size)",borderRadius:"var(--_root-size)",margin:"var(--CircularProgress-margin)",boxSizing:"border-box",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,position:"relative",color:a},r.children&&{fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,fontSize:"calc(0.2 * var(--_root-size))"},l,"outlined"===r.variant&&{"&:before":(0,n.Z)({content:'""',display:"block",position:"absolute",borderRadius:"inherit",top:"var(--_outlined-inset)",left:"var(--_outlined-inset)",right:"var(--_outlined-inset)",bottom:"var(--_outlined-inset)"},l)})}),z=(0,u.Z)("svg",{name:"JoyCircularProgress",slot:"Svg",overridesResolver:(r,e)=>e.svg})({width:"inherit",height:"inherit",display:"inherit",boxSizing:"inherit",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))"}),S=(0,u.Z)("circle",{name:"JoyCircularProgress",slot:"track",overridesResolver:(r,e)=>e.track})({cx:"50%",cy:"50%",r:"calc(var(--_inner-size) / 2 - var(--CircularProgress-trackThickness) / 2 + min(0px, var(--_thickness-diff) / 2))",fill:"transparent",strokeWidth:"var(--CircularProgress-trackThickness)",stroke:"var(--CircularProgress-trackColor)"}),P=(0,u.Z)("circle",{name:"JoyCircularProgress",slot:"progress",overridesResolver:(r,e)=>e.progress})({"--_progress-radius":"calc(var(--_inner-size) / 2 - var(--CircularProgress-progressThickness) / 2 - max(0px, var(--_thickness-diff) / 2))","--_progress-length":"calc(2 * 3.1415926535 * var(--_progress-radius))",cx:"50%",cy:"50%",r:"var(--_progress-radius)",fill:"transparent",strokeWidth:"var(--CircularProgress-progressThickness)",stroke:"var(--CircularProgress-progressColor)",strokeLinecap:"var(--CircularProgress-linecap, round)",strokeDasharray:"var(--_progress-length)",strokeDashoffset:"calc(var(--_progress-length) - var(--CircularProgress-percent) * var(--_progress-length) / 100)",transformOrigin:"center",transform:"rotate(-90deg)"},({ownerState:r})=>!r.determinate&&(0,c.iv)(b||(b=h` animation: var(--CircularProgress-circulation, 0.8s linear 0s infinite normal none running) ${0}; - `),k)),T=i.forwardRef(function(r,e){let t=(0,d.Z)({props:r,name:"JoyCircularProgress"}),{children:i,className:s,color:l="primary",size:c="md",variant:u="soft",thickness:p,determinate:v=!1,value:h=v?0:25,component:b,slots:Z={},slotProps:k={}}=t,T=(0,o.Z)(t,y),{getColor:I}=(0,f.VT)(u),$=I(r.color,l),w=(0,n.Z)({},t,{color:$,size:c,variant:u,thickness:p,value:h,determinate:v,instanceSize:r.size}),_=x(w),A=(0,n.Z)({},T,{component:b,slots:Z,slotProps:k}),[B,R]=(0,g.Z)("root",{ref:e,className:(0,a.Z)(_.root,s),elementType:C,externalForwardedProps:A,ownerState:w,additionalProps:(0,n.Z)({role:"progressbar",style:{"--CircularProgress-percent":h}},h&&v&&{"aria-valuenow":"number"==typeof h?Math.round(h):Math.round(Number(h||0))})}),[D,N]=(0,g.Z)("svg",{className:_.svg,elementType:z,externalForwardedProps:A,ownerState:w}),[M,O]=(0,g.Z)("track",{className:_.track,elementType:S,externalForwardedProps:A,ownerState:w}),[F,W]=(0,g.Z)("progress",{className:_.progress,elementType:P,externalForwardedProps:A,ownerState:w});return(0,m.jsxs)(B,(0,n.Z)({},R,{children:[(0,m.jsxs)(D,(0,n.Z)({},N,{children:[(0,m.jsx)(M,(0,n.Z)({},O)),(0,m.jsx)(F,(0,n.Z)({},W))]})),i]}))});var I=T},46319:function(r,e,t){"use strict";t.d(e,{Z:function(){return l}});var n=t(40431),o=t(86006),i=t(21454),a=t(99179),s=t(87862);function l(r={}){let{disabled:e=!1,focusableWhenDisabled:t,href:l,rootRef:c,tabIndex:u,to:d,type:f}=r,g=o.useRef(),[p,v]=o.useState(!1),{isFocusVisibleRef:m,onFocus:h,onBlur:b,ref:Z}=(0,i.Z)(),[y,k]=o.useState(!1);e&&!t&&y&&k(!1),o.useEffect(()=>{m.current=y},[y,m]);let[x,C]=o.useState(""),z=r=>e=>{var t;y&&e.preventDefault(),null==(t=r.onMouseLeave)||t.call(r,e)},S=r=>e=>{var t;b(e),!1===m.current&&k(!1),null==(t=r.onBlur)||t.call(r,e)},P=r=>e=>{var t,n;g.current||(g.current=e.currentTarget),h(e),!0===m.current&&(k(!0),null==(n=r.onFocusVisible)||n.call(r,e)),null==(t=r.onFocus)||t.call(r,e)},T=()=>{let r=g.current;return"BUTTON"===x||"INPUT"===x&&["button","submit","reset"].includes(null==r?void 0:r.type)||"A"===x&&(null==r?void 0:r.href)},I=r=>t=>{if(!e){var n;null==(n=r.onClick)||n.call(r,t)}},$=r=>t=>{var n;e||(v(!0),document.addEventListener("mouseup",()=>{v(!1)},{once:!0})),null==(n=r.onMouseDown)||n.call(r,t)},w=r=>t=>{var n,o;null==(n=r.onKeyDown)||n.call(r,t),!t.defaultMuiPrevented&&(t.target!==t.currentTarget||T()||" "!==t.key||t.preventDefault(),t.target!==t.currentTarget||" "!==t.key||e||v(!0),t.target!==t.currentTarget||T()||"Enter"!==t.key||e||(null==(o=r.onClick)||o.call(r,t),t.preventDefault()))},_=r=>t=>{var n,o;t.target===t.currentTarget&&v(!1),null==(n=r.onKeyUp)||n.call(r,t),t.target!==t.currentTarget||T()||e||" "!==t.key||t.defaultMuiPrevented||null==(o=r.onClick)||o.call(r,t)},A=o.useCallback(r=>{var e;C(null!=(e=null==r?void 0:r.tagName)?e:"")},[]),B=(0,a.Z)(A,c,Z,g),R={};return"BUTTON"===x?(R.type=null!=f?f:"button",t?R["aria-disabled"]=e:R.disabled=e):""!==x&&(l||d||(R.role="button",R.tabIndex=null!=u?u:0),e&&(R["aria-disabled"]=e,R.tabIndex=t?null!=u?u:0:-1)),{getRootProps:(e={})=>{let t=(0,s.Z)(r),o=(0,n.Z)({},t,e);return delete o.onFocusVisible,(0,n.Z)({type:f},o,R,{onBlur:S(o),onClick:I(o),onFocus:P(o),onKeyDown:w(o),onKeyUp:_(o),onMouseDown:$(o),onMouseLeave:z(o),ref:B})},focusVisible:y,setFocusVisible:k,active:p,rootRef:B}}},82833:function(r,e,t){"use strict";t.r(e),t.d(e,{capitalize:function(){return o},createChainedFunction:function(){return i},createSvgIcon:function(){return rr},debounce:function(){return re},deprecatedPropType:function(){return rt},isMuiElement:function(){return rn},ownerDocument:function(){return ro},ownerWindow:function(){return ri},requirePropFactory:function(){return ra},setRef:function(){return rs},unstable_ClassNameGenerator:function(){return rv},unstable_useEnhancedEffect:function(){return rl},unstable_useId:function(){return rc},unsupportedProp:function(){return ru},useControlled:function(){return rd},useEventCallback:function(){return rf},useForkRef:function(){return rg},useIsFocusVisible:function(){return rp}});var n=t(47327),o=t(53832).Z,i=function(...r){return r.reduce((r,e)=>null==e?r:function(...t){r.apply(this,t),e.apply(this,t)},()=>{})},a=t(40431),s=t(86006),l=t(46750),c=t(89791),u=t(47562),d=t(38295),f=t(16066),g=t(95135),p=t(89587),v=t(2272),m=t(51579),h=t(23343),b={black:"#000",white:"#fff"},Z={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},y={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},k={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},x={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},C={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},z={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},S={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};let P=["mode","contrastThreshold","tonalOffset"],T={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:b.white,default:b.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},I={text:{primary:b.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:b.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function $(r,e,t,n){let o=n.light||n,i=n.dark||1.5*n;r[e]||(r.hasOwnProperty(t)?r[e]=r[t]:"light"===e?r.light=(0,h.$n)(r.main,o):"dark"===e&&(r.dark=(0,h._j)(r.main,i)))}let w=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],_={textTransform:"uppercase"},A='"Roboto", "Helvetica", "Arial", sans-serif';function B(...r){return`${r[0]}px ${r[1]}px ${r[2]}px ${r[3]}px rgba(0,0,0,0.2),${r[4]}px ${r[5]}px ${r[6]}px ${r[7]}px rgba(0,0,0,0.14),${r[8]}px ${r[9]}px ${r[10]}px ${r[11]}px rgba(0,0,0,0.12)`}let R=["none",B(0,2,1,-1,0,1,1,0,0,1,3,0),B(0,3,1,-2,0,2,2,0,0,1,5,0),B(0,3,3,-2,0,3,4,0,0,1,8,0),B(0,2,4,-1,0,4,5,0,0,1,10,0),B(0,3,5,-1,0,5,8,0,0,1,14,0),B(0,3,5,-1,0,6,10,0,0,1,18,0),B(0,4,5,-2,0,7,10,1,0,2,16,1),B(0,5,5,-3,0,8,10,1,0,3,14,2),B(0,5,6,-3,0,9,12,1,0,3,16,2),B(0,6,6,-3,0,10,14,1,0,4,18,3),B(0,6,7,-4,0,11,15,1,0,4,20,3),B(0,7,8,-4,0,12,17,2,0,5,22,4),B(0,7,8,-4,0,13,19,2,0,5,24,4),B(0,7,9,-4,0,14,21,2,0,5,26,4),B(0,8,9,-5,0,15,22,2,0,6,28,5),B(0,8,10,-5,0,16,24,2,0,6,30,5),B(0,8,11,-5,0,17,26,2,0,6,32,5),B(0,9,11,-5,0,18,28,2,0,7,34,6),B(0,9,12,-6,0,19,29,2,0,7,36,6),B(0,10,13,-6,0,20,31,3,0,8,38,7),B(0,10,13,-6,0,21,33,3,0,8,40,7),B(0,10,14,-6,0,22,35,3,0,8,42,7),B(0,11,14,-7,0,23,36,3,0,9,44,8),B(0,11,15,-7,0,24,38,3,0,9,46,8)],D=["duration","easing","delay"],N={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},M={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function O(r){return`${Math.round(r)}ms`}function F(r){if(!r)return 0;let e=r/36;return Math.round((4+15*e**.25+e/5)*10)}var W={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};let j=["breakpoints","mixins","spacing","palette","transitions","typography","shape"],E=function(r={}){var e;let{mixins:t={},palette:n={},transitions:o={},typography:i={}}=r,s=(0,l.Z)(r,j);if(r.vars)throw Error((0,f.Z)(18));let c=function(r){let{mode:e="light",contrastThreshold:t=3,tonalOffset:n=.2}=r,o=(0,l.Z)(r,P),i=r.primary||function(r="light"){return"dark"===r?{main:C[200],light:C[50],dark:C[400]}:{main:C[700],light:C[400],dark:C[800]}}(e),s=r.secondary||function(r="light"){return"dark"===r?{main:y[200],light:y[50],dark:y[400]}:{main:y[500],light:y[300],dark:y[700]}}(e),c=r.error||function(r="light"){return"dark"===r?{main:k[500],light:k[300],dark:k[700]}:{main:k[700],light:k[400],dark:k[800]}}(e),u=r.info||function(r="light"){return"dark"===r?{main:z[400],light:z[300],dark:z[700]}:{main:z[700],light:z[500],dark:z[900]}}(e),d=r.success||function(r="light"){return"dark"===r?{main:S[400],light:S[300],dark:S[700]}:{main:S[800],light:S[500],dark:S[900]}}(e),p=r.warning||function(r="light"){return"dark"===r?{main:x[400],light:x[300],dark:x[700]}:{main:"#ed6c02",light:x[500],dark:x[900]}}(e);function v(r){let e=(0,h.mi)(r,I.text.primary)>=t?I.text.primary:T.text.primary;return e}let m=({color:r,name:e,mainShade:t=500,lightShade:o=300,darkShade:i=700})=>{if(!(r=(0,a.Z)({},r)).main&&r[t]&&(r.main=r[t]),!r.hasOwnProperty("main"))throw Error((0,f.Z)(11,e?` (${e})`:"",t));if("string"!=typeof r.main)throw Error((0,f.Z)(12,e?` (${e})`:"",JSON.stringify(r.main)));return $(r,"light",o,n),$(r,"dark",i,n),r.contrastText||(r.contrastText=v(r.main)),r},w=(0,g.Z)((0,a.Z)({common:(0,a.Z)({},b),mode:e,primary:m({color:i,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:u,name:"info"}),success:m({color:d,name:"success"}),grey:Z,contrastThreshold:t,getContrastText:v,augmentColor:m,tonalOffset:n},{dark:I,light:T}[e]),o);return w}(n),u=(0,p.Z)(r),d=(0,g.Z)(u,{mixins:(e=u.breakpoints,(0,a.Z)({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)),palette:c,shadows:R.slice(),typography:function(r,e){let t="function"==typeof e?e(r):e,{fontFamily:n=A,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:f,pxToRem:p}=t,v=(0,l.Z)(t,w),m=o/14,h=p||(r=>`${r/d*m}rem`),b=(r,e,t,o,i)=>(0,a.Z)({fontFamily:n,fontWeight:r,fontSize:h(e),lineHeight:t},n===A?{letterSpacing:`${Math.round(1e5*(o/e))/1e5}em`}:{},i,f),Z={h1:b(i,96,1.167,-1.5),h2:b(i,60,1.2,-.5),h3:b(s,48,1.167,0),h4:b(s,34,1.235,.25),h5:b(s,24,1.334,0),h6:b(c,20,1.6,.15),subtitle1:b(s,16,1.75,.15),subtitle2:b(c,14,1.57,.1),body1:b(s,16,1.5,.15),body2:b(s,14,1.43,.15),button:b(c,14,1.75,.4,_),caption:b(s,12,1.66,.4),overline:b(s,12,2.66,1,_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,g.Z)((0,a.Z)({htmlFontSize:d,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:u},Z),v,{clone:!1})}(c,i),transitions:function(r){let e=(0,a.Z)({},N,r.easing),t=(0,a.Z)({},M,r.duration);return(0,a.Z)({getAutoHeightDuration:F,create:(r=["all"],n={})=>{let{duration:o=t.standard,easing:i=e.easeInOut,delay:a=0}=n;return(0,l.Z)(n,D),(Array.isArray(r)?r:[r]).map(r=>`${r} ${"string"==typeof o?o:O(o)} ${i} ${"string"==typeof a?a:O(a)}`).join(",")}},r,{easing:e,duration:t})}(o),zIndex:(0,a.Z)({},W)});return(d=[].reduce((r,e)=>(0,g.Z)(r,e),d=(0,g.Z)(d,s))).unstable_sxConfig=(0,a.Z)({},v.Z,null==s?void 0:s.unstable_sxConfig),d.unstable_sx=function(r){return(0,m.Z)({sx:r,theme:this})},d}();var H="$$material",V=t(9312);let J=(0,V.ZP)({themeId:H,defaultTheme:E,rootShouldForwardProp:r=>(0,V.x9)(r)&&"classes"!==r});var L=t(88539),U=t(13809);function K(r){return(0,U.Z)("MuiSvgIcon",r)}(0,L.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var q=t(9268);let G=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],X=r=>{let{color:e,fontSize:t,classes:n}=r,i={root:["root","inherit"!==e&&`color${o(e)}`,`fontSize${o(t)}`]};return(0,u.Z)(i,K,n)},Q=J("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(r,e)=>{let{ownerState:t}=r;return[e.root,"inherit"!==t.color&&e[`color${o(t.color)}`],e[`fontSize${o(t.fontSize)}`]]}})(({theme:r,ownerState:e})=>{var t,n,o,i,a,s,l,c,u,d,f,g,p,v,m,h,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(t=r.transitions)?void 0:null==(n=t.create)?void 0:n.call(t,"fill",{duration:null==(o=r.transitions)?void 0:null==(i=o.duration)?void 0:i.shorter}),fontSize:({inherit:"inherit",small:(null==(a=r.typography)?void 0:null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=r.typography)?void 0:null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=r.typography)?void 0:null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"})[e.fontSize],color:null!=(f=null==(g=(r.vars||r).palette)?void 0:null==(p=g[e.color])?void 0:p.main)?f:({action:null==(v=(r.vars||r).palette)?void 0:null==(m=v.action)?void 0:m.active,disabled:null==(h=(r.vars||r).palette)?void 0:null==(b=h.action)?void 0:b.disabled,inherit:void 0})[e.color]}}),Y=s.forwardRef(function(r,e){let t=function({props:r,name:e}){return(0,d.Z)({props:r,name:e,defaultTheme:E,themeId:H})}({props:r,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:u="svg",fontSize:f="medium",htmlColor:g,inheritViewBox:p=!1,titleAccess:v,viewBox:m="0 0 24 24"}=t,h=(0,l.Z)(t,G),b=s.isValidElement(n)&&"svg"===n.type,Z=(0,a.Z)({},t,{color:i,component:u,fontSize:f,instanceFontSize:r.fontSize,inheritViewBox:p,viewBox:m,hasSvgAsChild:b}),y={};p||(y.viewBox=m);let k=X(Z);return(0,q.jsxs)(Q,(0,a.Z)({as:u,className:(0,c.Z)(k.root,o),focusable:"false",color:g,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:e},y,h,b&&n.props,{ownerState:Z,children:[b?n.props.children:n,v?(0,q.jsx)("title",{children:v}):null]}))});function rr(r,e){function t(t,n){return(0,q.jsx)(Y,(0,a.Z)({"data-testid":`${e}Icon`,ref:n},t,{children:r}))}return t.muiName=Y.muiName,s.memo(s.forwardRef(t))}Y.muiName="SvgIcon";var re=t(22099).Z,rt=function(r,e){return()=>null},rn=t(44542).Z,ro=t(47375).Z,ri=t(30165).Z,ra=function(r,e){return()=>null},rs=t(65464).Z,rl=t(11059).Z,rc=t(49657).Z,ru=function(r,e,t,n,o){return null},rd=t(24263).Z,rf=t(66519).Z,rg=t(99179).Z,rp=t(21454).Z;let rv={configure:r=>{n.Z.configure(r)}}},22099:function(r,e,t){"use strict";function n(r,e=166){let t;function n(...o){clearTimeout(t),t=setTimeout(()=>{r.apply(this,o)},e)}return n.clear=()=>{clearTimeout(t)},n}t.d(e,{Z:function(){return n}})},47375:function(r,e,t){"use strict";function n(r){return r&&r.ownerDocument||document}t.d(e,{Z:function(){return n}})},30165:function(r,e,t){"use strict";t.d(e,{Z:function(){return o}});var n=t(47375);function o(r){let e=(0,n.Z)(r);return e.defaultView||window}},24263:function(r,e,t){"use strict";t.d(e,{Z:function(){return o}});var n=t(86006);function o({controlled:r,default:e,name:t,state:o="value"}){let{current:i}=n.useRef(void 0!==r),[a,s]=n.useState(e),l=i?r:a,c=n.useCallback(r=>{i||s(r)},[]);return[l,c]}},11059:function(r,e,t){"use strict";var n=t(86006);let o="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;e.Z=o},66519:function(r,e,t){"use strict";var n=t(86006),o=t(11059);e.Z=function(r){let e=n.useRef(r);return(0,o.Z)(()=>{e.current=r}),n.useCallback((...r)=>(0,e.current)(...r),[])}},49657:function(r,e,t){"use strict";t.d(e,{Z:function(){return s}});var n,o=t(86006);let i=0,a=(n||(n=t.t(o,2)))["useId".toString()];function s(r){if(void 0!==a){let e=a();return null!=r?r:e}return function(r){let[e,t]=o.useState(r),n=r||e;return o.useEffect(()=>{null==e&&t(`mui-${i+=1}`)},[e]),n}(r)}},78997:function(r){r.exports=function(r){return r&&r.__esModule?r:{default:r}},r.exports.__esModule=!0,r.exports.default=r.exports}}]); \ No newline at end of file + `),k)),T=i.forwardRef(function(r,e){let t=(0,d.Z)({props:r,name:"JoyCircularProgress"}),{children:i,className:s,color:l="primary",size:c="md",variant:u="soft",thickness:p,determinate:v=!1,value:h=v?0:25,component:b,slots:Z={},slotProps:k={}}=t,T=(0,o.Z)(t,y),{getColor:$}=(0,f.VT)(u),I=$(r.color,l),w=(0,n.Z)({},t,{color:I,size:c,variant:u,thickness:p,value:h,determinate:v,instanceSize:r.size}),_=x(w),A=(0,n.Z)({},T,{component:b,slots:Z,slotProps:k}),[B,R]=(0,g.Z)("root",{ref:e,className:(0,a.Z)(_.root,s),elementType:C,externalForwardedProps:A,ownerState:w,additionalProps:(0,n.Z)({role:"progressbar",style:{"--CircularProgress-percent":h}},h&&v&&{"aria-valuenow":"number"==typeof h?Math.round(h):Math.round(Number(h||0))})}),[D,M]=(0,g.Z)("svg",{className:_.svg,elementType:z,externalForwardedProps:A,ownerState:w}),[N,O]=(0,g.Z)("track",{className:_.track,elementType:S,externalForwardedProps:A,ownerState:w}),[W,F]=(0,g.Z)("progress",{className:_.progress,elementType:P,externalForwardedProps:A,ownerState:w});return(0,m.jsxs)(B,(0,n.Z)({},R,{children:[(0,m.jsxs)(D,(0,n.Z)({},M,{children:[(0,m.jsx)(N,(0,n.Z)({},O)),(0,m.jsx)(W,(0,n.Z)({},F))]})),i]}))});var $=T},46319:function(r,e,t){"use strict";t.d(e,{Z:function(){return l}});var n=t(40431),o=t(86006),i=t(21454),a=t(99179),s=t(87862);function l(r={}){let{disabled:e=!1,focusableWhenDisabled:t,href:l,rootRef:c,tabIndex:u,to:d,type:f}=r,g=o.useRef(),[p,v]=o.useState(!1),{isFocusVisibleRef:m,onFocus:h,onBlur:b,ref:Z}=(0,i.Z)(),[y,k]=o.useState(!1);e&&!t&&y&&k(!1),o.useEffect(()=>{m.current=y},[y,m]);let[x,C]=o.useState(""),z=r=>e=>{var t;y&&e.preventDefault(),null==(t=r.onMouseLeave)||t.call(r,e)},S=r=>e=>{var t;b(e),!1===m.current&&k(!1),null==(t=r.onBlur)||t.call(r,e)},P=r=>e=>{var t,n;g.current||(g.current=e.currentTarget),h(e),!0===m.current&&(k(!0),null==(n=r.onFocusVisible)||n.call(r,e)),null==(t=r.onFocus)||t.call(r,e)},T=()=>{let r=g.current;return"BUTTON"===x||"INPUT"===x&&["button","submit","reset"].includes(null==r?void 0:r.type)||"A"===x&&(null==r?void 0:r.href)},$=r=>t=>{if(!e){var n;null==(n=r.onClick)||n.call(r,t)}},I=r=>t=>{var n;e||(v(!0),document.addEventListener("mouseup",()=>{v(!1)},{once:!0})),null==(n=r.onMouseDown)||n.call(r,t)},w=r=>t=>{var n,o;null==(n=r.onKeyDown)||n.call(r,t),!t.defaultMuiPrevented&&(t.target!==t.currentTarget||T()||" "!==t.key||t.preventDefault(),t.target!==t.currentTarget||" "!==t.key||e||v(!0),t.target!==t.currentTarget||T()||"Enter"!==t.key||e||(null==(o=r.onClick)||o.call(r,t),t.preventDefault()))},_=r=>t=>{var n,o;t.target===t.currentTarget&&v(!1),null==(n=r.onKeyUp)||n.call(r,t),t.target!==t.currentTarget||T()||e||" "!==t.key||t.defaultMuiPrevented||null==(o=r.onClick)||o.call(r,t)},A=o.useCallback(r=>{var e;C(null!=(e=null==r?void 0:r.tagName)?e:"")},[]),B=(0,a.Z)(A,c,Z,g),R={};return"BUTTON"===x?(R.type=null!=f?f:"button",t?R["aria-disabled"]=e:R.disabled=e):""!==x&&(l||d||(R.role="button",R.tabIndex=null!=u?u:0),e&&(R["aria-disabled"]=e,R.tabIndex=t?null!=u?u:0:-1)),{getRootProps:(e={})=>{let t=(0,s.Z)(r),o=(0,n.Z)({},t,e);return delete o.onFocusVisible,(0,n.Z)({type:f},o,R,{onBlur:S(o),onClick:$(o),onFocus:P(o),onKeyDown:w(o),onKeyUp:_(o),onMouseDown:I(o),onMouseLeave:z(o),ref:B})},focusVisible:y,setFocusVisible:k,active:p,rootRef:B}}},82833:function(r,e,t){"use strict";t.r(e),t.d(e,{capitalize:function(){return o},createChainedFunction:function(){return i},createSvgIcon:function(){return rr},debounce:function(){return re},deprecatedPropType:function(){return rt},isMuiElement:function(){return rn},ownerDocument:function(){return ro},ownerWindow:function(){return ri},requirePropFactory:function(){return ra},setRef:function(){return rs},unstable_ClassNameGenerator:function(){return rv},unstable_useEnhancedEffect:function(){return rl},unstable_useId:function(){return rc},unsupportedProp:function(){return ru},useControlled:function(){return rd},useEventCallback:function(){return rf},useForkRef:function(){return rg},useIsFocusVisible:function(){return rp}});var n=t(47327),o=t(53832).Z,i=function(...r){return r.reduce((r,e)=>null==e?r:function(...t){r.apply(this,t),e.apply(this,t)},()=>{})},a=t(40431),s=t(86006),l=t(46750),c=t(89791),u=t(47562),d=t(38295),f=t(16066),g=t(95135),p=t(89587),v=t(2272),m=t(51579),h=t(23343),b={black:"#000",white:"#fff"},Z={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},y={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},k={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},x={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},C={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},z={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},S={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};let P=["mode","contrastThreshold","tonalOffset"],T={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:b.white,default:b.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},$={text:{primary:b.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:b.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function I(r,e,t,n){let o=n.light||n,i=n.dark||1.5*n;r[e]||(r.hasOwnProperty(t)?r[e]=r[t]:"light"===e?r.light=(0,h.$n)(r.main,o):"dark"===e&&(r.dark=(0,h._j)(r.main,i)))}let w=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],_={textTransform:"uppercase"},A='"Roboto", "Helvetica", "Arial", sans-serif';function B(...r){return`${r[0]}px ${r[1]}px ${r[2]}px ${r[3]}px rgba(0,0,0,0.2),${r[4]}px ${r[5]}px ${r[6]}px ${r[7]}px rgba(0,0,0,0.14),${r[8]}px ${r[9]}px ${r[10]}px ${r[11]}px rgba(0,0,0,0.12)`}let R=["none",B(0,2,1,-1,0,1,1,0,0,1,3,0),B(0,3,1,-2,0,2,2,0,0,1,5,0),B(0,3,3,-2,0,3,4,0,0,1,8,0),B(0,2,4,-1,0,4,5,0,0,1,10,0),B(0,3,5,-1,0,5,8,0,0,1,14,0),B(0,3,5,-1,0,6,10,0,0,1,18,0),B(0,4,5,-2,0,7,10,1,0,2,16,1),B(0,5,5,-3,0,8,10,1,0,3,14,2),B(0,5,6,-3,0,9,12,1,0,3,16,2),B(0,6,6,-3,0,10,14,1,0,4,18,3),B(0,6,7,-4,0,11,15,1,0,4,20,3),B(0,7,8,-4,0,12,17,2,0,5,22,4),B(0,7,8,-4,0,13,19,2,0,5,24,4),B(0,7,9,-4,0,14,21,2,0,5,26,4),B(0,8,9,-5,0,15,22,2,0,6,28,5),B(0,8,10,-5,0,16,24,2,0,6,30,5),B(0,8,11,-5,0,17,26,2,0,6,32,5),B(0,9,11,-5,0,18,28,2,0,7,34,6),B(0,9,12,-6,0,19,29,2,0,7,36,6),B(0,10,13,-6,0,20,31,3,0,8,38,7),B(0,10,13,-6,0,21,33,3,0,8,40,7),B(0,10,14,-6,0,22,35,3,0,8,42,7),B(0,11,14,-7,0,23,36,3,0,9,44,8),B(0,11,15,-7,0,24,38,3,0,9,46,8)],D=["duration","easing","delay"],M={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},N={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function O(r){return`${Math.round(r)}ms`}function W(r){if(!r)return 0;let e=r/36;return Math.round((4+15*e**.25+e/5)*10)}var F={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};let j=["breakpoints","mixins","spacing","palette","transitions","typography","shape"],E=function(r={}){var e;let{mixins:t={},palette:n={},transitions:o={},typography:i={}}=r,s=(0,l.Z)(r,j);if(r.vars)throw Error((0,f.Z)(18));let c=function(r){let{mode:e="light",contrastThreshold:t=3,tonalOffset:n=.2}=r,o=(0,l.Z)(r,P),i=r.primary||function(r="light"){return"dark"===r?{main:C[200],light:C[50],dark:C[400]}:{main:C[700],light:C[400],dark:C[800]}}(e),s=r.secondary||function(r="light"){return"dark"===r?{main:y[200],light:y[50],dark:y[400]}:{main:y[500],light:y[300],dark:y[700]}}(e),c=r.error||function(r="light"){return"dark"===r?{main:k[500],light:k[300],dark:k[700]}:{main:k[700],light:k[400],dark:k[800]}}(e),u=r.info||function(r="light"){return"dark"===r?{main:z[400],light:z[300],dark:z[700]}:{main:z[700],light:z[500],dark:z[900]}}(e),d=r.success||function(r="light"){return"dark"===r?{main:S[400],light:S[300],dark:S[700]}:{main:S[800],light:S[500],dark:S[900]}}(e),p=r.warning||function(r="light"){return"dark"===r?{main:x[400],light:x[300],dark:x[700]}:{main:"#ed6c02",light:x[500],dark:x[900]}}(e);function v(r){let e=(0,h.mi)(r,$.text.primary)>=t?$.text.primary:T.text.primary;return e}let m=({color:r,name:e,mainShade:t=500,lightShade:o=300,darkShade:i=700})=>{if(!(r=(0,a.Z)({},r)).main&&r[t]&&(r.main=r[t]),!r.hasOwnProperty("main"))throw Error((0,f.Z)(11,e?` (${e})`:"",t));if("string"!=typeof r.main)throw Error((0,f.Z)(12,e?` (${e})`:"",JSON.stringify(r.main)));return I(r,"light",o,n),I(r,"dark",i,n),r.contrastText||(r.contrastText=v(r.main)),r},w=(0,g.Z)((0,a.Z)({common:(0,a.Z)({},b),mode:e,primary:m({color:i,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:u,name:"info"}),success:m({color:d,name:"success"}),grey:Z,contrastThreshold:t,getContrastText:v,augmentColor:m,tonalOffset:n},{dark:$,light:T}[e]),o);return w}(n),u=(0,p.Z)(r),d=(0,g.Z)(u,{mixins:(e=u.breakpoints,(0,a.Z)({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)),palette:c,shadows:R.slice(),typography:function(r,e){let t="function"==typeof e?e(r):e,{fontFamily:n=A,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:f,pxToRem:p}=t,v=(0,l.Z)(t,w),m=o/14,h=p||(r=>`${r/d*m}rem`),b=(r,e,t,o,i)=>(0,a.Z)({fontFamily:n,fontWeight:r,fontSize:h(e),lineHeight:t},n===A?{letterSpacing:`${Math.round(1e5*(o/e))/1e5}em`}:{},i,f),Z={h1:b(i,96,1.167,-1.5),h2:b(i,60,1.2,-.5),h3:b(s,48,1.167,0),h4:b(s,34,1.235,.25),h5:b(s,24,1.334,0),h6:b(c,20,1.6,.15),subtitle1:b(s,16,1.75,.15),subtitle2:b(c,14,1.57,.1),body1:b(s,16,1.5,.15),body2:b(s,14,1.43,.15),button:b(c,14,1.75,.4,_),caption:b(s,12,1.66,.4),overline:b(s,12,2.66,1,_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,g.Z)((0,a.Z)({htmlFontSize:d,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:u},Z),v,{clone:!1})}(c,i),transitions:function(r){let e=(0,a.Z)({},M,r.easing),t=(0,a.Z)({},N,r.duration);return(0,a.Z)({getAutoHeightDuration:W,create:(r=["all"],n={})=>{let{duration:o=t.standard,easing:i=e.easeInOut,delay:a=0}=n;return(0,l.Z)(n,D),(Array.isArray(r)?r:[r]).map(r=>`${r} ${"string"==typeof o?o:O(o)} ${i} ${"string"==typeof a?a:O(a)}`).join(",")}},r,{easing:e,duration:t})}(o),zIndex:(0,a.Z)({},F)});return(d=[].reduce((r,e)=>(0,g.Z)(r,e),d=(0,g.Z)(d,s))).unstable_sxConfig=(0,a.Z)({},v.Z,null==s?void 0:s.unstable_sxConfig),d.unstable_sx=function(r){return(0,m.Z)({sx:r,theme:this})},d}();var H="$$material",V=t(9312);let J=(0,V.ZP)({themeId:H,defaultTheme:E,rootShouldForwardProp:r=>(0,V.x9)(r)&&"classes"!==r});var L=t(88539),U=t(13809);function K(r){return(0,U.Z)("MuiSvgIcon",r)}(0,L.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var q=t(9268);let G=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],X=r=>{let{color:e,fontSize:t,classes:n}=r,i={root:["root","inherit"!==e&&`color${o(e)}`,`fontSize${o(t)}`]};return(0,u.Z)(i,K,n)},Q=J("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(r,e)=>{let{ownerState:t}=r;return[e.root,"inherit"!==t.color&&e[`color${o(t.color)}`],e[`fontSize${o(t.fontSize)}`]]}})(({theme:r,ownerState:e})=>{var t,n,o,i,a,s,l,c,u,d,f,g,p,v,m,h,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(t=r.transitions)?void 0:null==(n=t.create)?void 0:n.call(t,"fill",{duration:null==(o=r.transitions)?void 0:null==(i=o.duration)?void 0:i.shorter}),fontSize:({inherit:"inherit",small:(null==(a=r.typography)?void 0:null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=r.typography)?void 0:null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=r.typography)?void 0:null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"})[e.fontSize],color:null!=(f=null==(g=(r.vars||r).palette)?void 0:null==(p=g[e.color])?void 0:p.main)?f:({action:null==(v=(r.vars||r).palette)?void 0:null==(m=v.action)?void 0:m.active,disabled:null==(h=(r.vars||r).palette)?void 0:null==(b=h.action)?void 0:b.disabled,inherit:void 0})[e.color]}}),Y=s.forwardRef(function(r,e){let t=function({props:r,name:e}){return(0,d.Z)({props:r,name:e,defaultTheme:E,themeId:H})}({props:r,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:u="svg",fontSize:f="medium",htmlColor:g,inheritViewBox:p=!1,titleAccess:v,viewBox:m="0 0 24 24"}=t,h=(0,l.Z)(t,G),b=s.isValidElement(n)&&"svg"===n.type,Z=(0,a.Z)({},t,{color:i,component:u,fontSize:f,instanceFontSize:r.fontSize,inheritViewBox:p,viewBox:m,hasSvgAsChild:b}),y={};p||(y.viewBox=m);let k=X(Z);return(0,q.jsxs)(Q,(0,a.Z)({as:u,className:(0,c.Z)(k.root,o),focusable:"false",color:g,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:e},y,h,b&&n.props,{ownerState:Z,children:[b?n.props.children:n,v?(0,q.jsx)("title",{children:v}):null]}))});function rr(r,e){function t(t,n){return(0,q.jsx)(Y,(0,a.Z)({"data-testid":`${e}Icon`,ref:n},t,{children:r}))}return t.muiName=Y.muiName,s.memo(s.forwardRef(t))}Y.muiName="SvgIcon";var re=t(22099).Z,rt=function(r,e){return()=>null},rn=t(44542).Z,ro=t(47375).Z,ri=t(30165).Z,ra=function(r,e){return()=>null},rs=t(65464).Z,rl=t(11059).Z,rc=t(49657).Z,ru=function(r,e,t,n,o){return null},rd=t(24263).Z,rf=t(66519).Z,rg=t(99179).Z,rp=t(21454).Z;let rv={configure:r=>{n.Z.configure(r)}}},22099:function(r,e,t){"use strict";function n(r,e=166){let t;function n(...o){clearTimeout(t),t=setTimeout(()=>{r.apply(this,o)},e)}return n.clear=()=>{clearTimeout(t)},n}t.d(e,{Z:function(){return n}})},47375:function(r,e,t){"use strict";function n(r){return r&&r.ownerDocument||document}t.d(e,{Z:function(){return n}})},30165:function(r,e,t){"use strict";t.d(e,{Z:function(){return o}});var n=t(47375);function o(r){let e=(0,n.Z)(r);return e.defaultView||window}},24263:function(r,e,t){"use strict";t.d(e,{Z:function(){return o}});var n=t(86006);function o({controlled:r,default:e,name:t,state:o="value"}){let{current:i}=n.useRef(void 0!==r),[a,s]=n.useState(e),l=i?r:a,c=n.useCallback(r=>{i||s(r)},[]);return[l,c]}},11059:function(r,e,t){"use strict";var n=t(86006);let o="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;e.Z=o},66519:function(r,e,t){"use strict";var n=t(86006),o=t(11059);e.Z=function(r){let e=n.useRef(r);return(0,o.Z)(()=>{e.current=r}),n.useCallback((...r)=>(0,e.current)(...r),[])}},49657:function(r,e,t){"use strict";t.d(e,{Z:function(){return s}});var n,o=t(86006);let i=0,a=(n||(n=t.t(o,2)))["useId".toString()];function s(r){if(void 0!==a){let e=a();return null!=r?r:e}return function(r){let[e,t]=o.useState(r),n=r||e;return o.useEffect(()=>{null==e&&t(`mui-${i+=1}`)},[e]),n}(r)}},78997:function(r){r.exports=function(r){return r&&r.__esModule?r:{default:r}},r.exports.__esModule=!0,r.exports.default=r.exports}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/259-2c3490a9eca2f411.js b/pilot/server/static/_next/static/chunks/259-2c3490a9eca2f411.js deleted file mode 100644 index 216c9d0c5..000000000 --- a/pilot/server/static/_next/static/chunks/259-2c3490a9eca2f411.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[259],{54842:function(e,t,r){var a=r(78997);t.Z=void 0;var s=a(r(76906)),i=r(9268),n=(0,s.default)((0,i.jsx)("path",{d:"m3.4 20.4 17.45-7.48c.81-.35.81-1.49 0-1.84L3.4 3.6c-.66-.29-1.39.2-1.39.91L2 9.12c0 .5.37.93.87.99L17 12 2.87 13.88c-.5.07-.87.5-.87 1l.01 4.61c0 .71.73 1.2 1.39.91z"}),"SendRounded");t.Z=n},67830:function(e,t,r){r.d(t,{F:function(){return u}});var a=r(19700),s=function(e,t,r){if(e&&"reportValidity"in e){var s=(0,a.U2)(r,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},i=function(e,t){var r=function(r){var a=t.fields[r];a&&a.ref&&"reportValidity"in a.ref?s(a.ref,r,e):a.refs&&a.refs.forEach(function(t){return s(t,r,e)})};for(var a in t.fields)r(a)},n=function(e,t){t.shouldUseNativeValidation&&i(e,t);var r={};for(var s in e){var n=(0,a.U2)(t.fields,s);(0,a.t8)(r,s,Object.assign(e[s]||{},{ref:n&&n.ref}))}return r},l=function(e,t){for(var r={};e.length;){var s=e[0],i=s.code,n=s.message,l=s.path.join(".");if(!r[l]){if("unionErrors"in s){var u=s.unionErrors[0].errors[0];r[l]={message:u.message,type:u.code}}else r[l]={message:n,type:i}}if("unionErrors"in s&&s.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var o=r[l].types,d=o&&o[s.code];r[l]=(0,a.KN)(l,t,r,i,d?[].concat(d,s.message):s.message)}e.shift()}return r},u=function(e,t,r){return void 0===r&&(r={}),function(a,s,u){try{return Promise.resolve(function(s,n){try{var l=Promise.resolve(e["sync"===r.mode?"parse":"parseAsync"](a,t)).then(function(e){return u.shouldUseNativeValidation&&i({},u),{errors:{},values:r.raw?a:e}})}catch(e){return n(e)}return l&&l.then?l.then(void 0,n):l}(0,function(e){if(null!=e.errors)return{values:{},errors:n(l(e.errors,!u.shouldUseNativeValidation&&"all"===u.criteriaMode),u)};throw e}))}catch(e){return Promise.reject(e)}}}},19700:function(e,t,r){r.d(t,{KN:function(){return V},U2:function(){return v},cI:function(){return em},t8:function(){return N}});var a=r(86006),s=e=>"checkbox"===e.type,i=e=>e instanceof Date,n=e=>null==e;let l=e=>"object"==typeof e;var u=e=>!n(e)&&!Array.isArray(e)&&l(e)&&!i(e),o=e=>u(e)&&e.target?s(e.target)?e.target.checked:e.target.value:e,d=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,c=(e,t)=>e.has(d(t)),p=e=>{let t=e.constructor&&e.constructor.prototype;return u(t)&&t.hasOwnProperty("isPrototypeOf")},f="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function h(e){let t;let r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(f&&(e instanceof Blob||e instanceof FileList))&&(r||u(e))))return e;else if(t=r?[]:{},Array.isArray(e)||p(e))for(let r in e)t[r]=h(e[r]);else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],y=e=>void 0===e,v=(e,t,r)=>{if(!t||!u(e))return r;let a=m(t.split(/[,[\].]+?/)).reduce((e,t)=>n(e)?e:e[t],e);return y(a)||a===e?y(e[t])?r:e[t]:a};let _={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},g={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},b={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};a.createContext(null);var x=(e,t,r,a=!0)=>{let s={defaultValues:t._defaultValues};for(let i in e)Object.defineProperty(s,i,{get:()=>(t._proxyFormState[i]!==g.all&&(t._proxyFormState[i]=!a||g.all),r&&(r[i]=!0),e[i])});return s},w=e=>u(e)&&!Object.keys(e).length,k=(e,t,r,a)=>{r(e);let{name:s,...i}=e;return w(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(e=>t[e]===(!a||g.all))},Z=e=>Array.isArray(e)?e:[e],S=e=>"string"==typeof e,T=(e,t,r,a,s)=>S(e)?(a&&t.watch.add(e),v(r,e,s)):Array.isArray(e)?e.map(e=>(a&&t.watch.add(e),v(r,e))):(a&&(t.watchAll=!0),r),A=e=>/^\w*$/.test(e),O=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function N(e,t,r){let a=-1,s=A(t)?[t]:O(t),i=s.length,n=i-1;for(;++at?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[a]:s||!0}}:{};let E=(e,t,r)=>{for(let a of r||Object.keys(e)){let r=v(e,a);if(r){let{_f:e,...a}=r;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else u(a)&&E(a,t)}}};var j=e=>({isOnSubmit:!e||e===g.onSubmit,isOnBlur:e===g.onBlur,isOnChange:e===g.onChange,isOnAll:e===g.all,isOnTouch:e===g.onTouched}),C=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),D=(e,t,r)=>{let a=m(v(e,r));return N(a,"root",t[r]),N(e,r,a),e},I=e=>"boolean"==typeof e,P=e=>"file"===e.type,F=e=>"function"==typeof e,M=e=>{if(!f)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},R=e=>S(e),L=e=>"radio"===e.type,U=e=>e instanceof RegExp;let $={value:!1,isValid:!1},z={value:!0,isValid:!0};var B=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!y(e[0].attributes.value)?y(e[0].value)||""===e[0].value?z:{value:e[0].value,isValid:!0}:z:$}return $};let K={isValid:!1,value:null};var q=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,K):K;function W(e,t,r="validate"){if(R(e)||Array.isArray(e)&&e.every(R)||I(e)&&!e)return{type:r,message:R(e)?e:"",ref:t}}var H=e=>u(e)&&!U(e)?e:{value:e,message:""},J=async(e,t,r,a,i)=>{let{ref:l,refs:o,required:d,maxLength:c,minLength:p,min:f,max:h,pattern:m,validate:_,name:g,valueAsNumber:x,mount:k,disabled:Z}=e._f,T=v(t,g);if(!k||Z)return{};let A=o?o[0]:l,O=e=>{a&&A.reportValidity&&(A.setCustomValidity(I(e)?"":e||""),A.reportValidity())},N={},E=L(l),j=s(l),C=(x||P(l))&&y(l.value)&&y(T)||M(l)&&""===l.value||""===T||Array.isArray(T)&&!T.length,D=V.bind(null,g,r,N),$=(e,t,r,a=b.maxLength,s=b.minLength)=>{let i=e?t:r;N[g]={type:e?a:s,message:i,ref:l,...D(e?a:s,i)}};if(i?!Array.isArray(T)||!T.length:d&&(!(E||j)&&(C||n(T))||I(T)&&!T||j&&!B(o).isValid||E&&!q(o).isValid)){let{value:e,message:t}=R(d)?{value:!!d,message:d}:H(d);if(e&&(N[g]={type:b.required,message:t,ref:A,...D(b.required,t)},!r))return O(t),N}if(!C&&(!n(f)||!n(h))){let e,t;let a=H(h),s=H(f);if(n(T)||isNaN(T)){let r=l.valueAsDate||new Date(T),i=e=>new Date(new Date().toDateString()+" "+e),n="time"==l.type,u="week"==l.type;S(a.value)&&T&&(e=n?i(T)>i(a.value):u?T>a.value:r>new Date(a.value)),S(s.value)&&T&&(t=n?i(T)a.value),n(s.value)||(t=r+e.value,s=!n(t.value)&&T.length<+t.value;if((a||s)&&($(a,e.message,t.message),!r))return O(N[g].message),N}if(m&&!C&&S(T)){let{value:e,message:t}=H(m);if(U(e)&&!T.match(e)&&(N[g]={type:b.pattern,message:t,ref:l,...D(b.pattern,t)},!r))return O(t),N}if(_){if(F(_)){let e=await _(T,t),a=W(e,A);if(a&&(N[g]={...a,...D(b.validate,a.message)},!r))return O(a.message),N}else if(u(_)){let e={};for(let a in _){if(!w(e)&&!r)break;let s=W(await _[a](T,t),A,a);s&&(e={...s,...D(a,s.message)},O(s.message),r&&(N[g]=e))}if(!w(e)&&(N[g]={ref:A,...e},!r))return N}}return O(!0),N};function Y(e,t){let r=Array.isArray(t)?t:A(t)?[t]:O(t),a=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,a=0;for(;a{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var Q=e=>n(e)||!l(e);function X(e,t){if(Q(e)||Q(t))return e===t;if(i(e)&&i(t))return e.getTime()===t.getTime();let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let s of r){let r=e[s];if(!a.includes(s))return!1;if("ref"!==s){let e=t[s];if(i(r)&&i(e)||u(r)&&u(e)||Array.isArray(r)&&Array.isArray(e)?!X(r,e):r!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>L(e)||s(e),er=e=>M(e)&&e.isConnected,ea=e=>{for(let t in e)if(F(e[t]))return!0;return!1};function es(e,t={}){let r=Array.isArray(e);if(u(e)||r)for(let r in e)Array.isArray(e[r])||u(e[r])&&!ea(e[r])?(t[r]=Array.isArray(e[r])?[]:{},es(e[r],t[r])):n(e[r])||(t[r]=!0);return t}var ei=(e,t)=>(function e(t,r,a){let s=Array.isArray(t);if(u(t)||s)for(let s in t)Array.isArray(t[s])||u(t[s])&&!ea(t[s])?y(r)||Q(a[s])?a[s]=Array.isArray(t[s])?es(t[s],[]):{...es(t[s])}:e(t[s],n(r)?{}:r[s],a[s]):a[s]=!X(t[s],r[s]);return a})(e,t,es(t)),en=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:a})=>y(e)?e:t?""===e?NaN:e?+e:e:r&&S(e)?new Date(e):a?a(e):e;function el(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:P(t)?t.files:L(t)?q(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):s(t)?B(e.refs).value:en(y(t.value)?e.ref.value:t.value,e)}var eu=(e,t,r,a)=>{let s={};for(let r of e){let e=v(t,r);e&&N(s,r,e._f)}return{criteriaMode:r,names:[...e],fields:s,shouldUseNativeValidation:a}},eo=e=>y(e)?e:U(e)?e.source:u(e)?U(e.value)?e.value.source:e.value:e,ed=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ec(e,t,r){let a=v(e,r);if(a||A(r))return{error:a,name:r};let s=r.split(".");for(;s.length;){let a=s.join("."),i=v(t,a),n=v(e,a);if(i&&!Array.isArray(i)&&r!==a)break;if(n&&n.type)return{name:a,error:n};s.pop()}return{name:r}}var ep=(e,t,r,a,s)=>!s.isOnAll&&(!r&&s.isOnTouch?!(t||e):(r?a.isOnBlur:s.isOnBlur)?!e:(r?!a.isOnChange:!s.isOnChange)||e),ef=(e,t)=>!m(v(e,t)).length&&Y(e,t);let eh={mode:g.onSubmit,reValidateMode:g.onChange,shouldFocusError:!0};function em(e={}){let t=a.useRef(),[r,l]=a.useState({isDirty:!1,isValidating:!1,isLoading:F(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:F(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let r,a={...eh,...e},l={submitCount:0,isDirty:!1,isLoading:F(a.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},d={},p=(u(a.defaultValues)||u(a.values))&&h(a.defaultValues||a.values)||{},b=a.shouldUnregister?{}:h(p),x={action:!1,mount:!1,watch:!1},k={mount:new Set,unMount:new Set,array:new Set,watch:new Set},A=0,O={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},V={values:G(),array:G(),state:G()},R=e.resetOptions&&e.resetOptions.keepDirtyValues,L=j(a.mode),U=j(a.reValidateMode),$=a.criteriaMode===g.all,z=e=>t=>{clearTimeout(A),A=setTimeout(e,t)},B=async e=>{if(O.isValid||e){let e=a.resolver?w((await es()).errors):await ey(d,!0);e!==l.isValid&&V.state.next({isValid:e})}},K=e=>O.isValidating&&V.state.next({isValidating:e}),q=(e,t)=>{N(l.errors,e,t),V.state.next({errors:l.errors})},W=(e,t,r,a)=>{let s=v(d,e);if(s){let i=v(b,e,y(r)?v(p,e):r);y(i)||a&&a.defaultChecked||t?N(b,e,t?i:el(s._f)):eg(e,i),x.mount&&B()}},H=(e,t,r,a,s)=>{let i=!1,n=!1,u={name:e};if(!r||a){O.isDirty&&(n=l.isDirty,l.isDirty=u.isDirty=ev(),i=n!==u.isDirty);let r=X(v(p,e),t);n=v(l.dirtyFields,e),r?Y(l.dirtyFields,e):N(l.dirtyFields,e,!0),u.dirtyFields=l.dirtyFields,i=i||O.dirtyFields&&!r!==n}if(r){let t=v(l.touchedFields,e);t||(N(l.touchedFields,e,r),u.touchedFields=l.touchedFields,i=i||O.touchedFields&&t!==r)}return i&&s&&V.state.next(u),i?u:{}},ea=(t,a,s,i)=>{let n=v(l.errors,t),u=O.isValid&&I(a)&&l.isValid!==a;if(e.delayError&&s?(r=z(()=>q(t,s)))(e.delayError):(clearTimeout(A),r=null,s?N(l.errors,t,s):Y(l.errors,t)),(s?!X(n,s):n)||!w(i)||u){let e={...i,...u&&I(a)?{isValid:a}:{},errors:l.errors,name:t};l={...l,...e},V.state.next(e)}K(!1)},es=async e=>a.resolver(b,a.context,eu(e||k.mount,d,a.criteriaMode,a.shouldUseNativeValidation)),em=async e=>{let{errors:t}=await es();if(e)for(let r of e){let e=v(t,r);e?N(l.errors,r,e):Y(l.errors,r)}else l.errors=t;return t},ey=async(e,t,r={valid:!0})=>{for(let s in e){let i=e[s];if(i){let{_f:e,...s}=i;if(e){let s=k.array.has(e.name),n=await J(i,b,$,a.shouldUseNativeValidation&&!t,s);if(n[e.name]&&(r.valid=!1,t))break;t||(v(n,e.name)?s?D(l.errors,n,e.name):N(l.errors,e.name,n[e.name]):Y(l.errors,e.name))}s&&await ey(s,t,r)}}return r.valid},ev=(e,t)=>(e&&t&&N(b,e,t),!X(eZ(),p)),e_=(e,t,r)=>T(e,k,{...x.mount?b:y(t)?p:S(e)?{[e]:t}:t},r,t),eg=(e,t,r={})=>{let a=v(d,e),i=t;if(a){let r=a._f;r&&(r.disabled||N(b,e,en(t,r)),i=M(r.ref)&&n(t)?"":t,ee(r.ref)?[...r.ref.options].forEach(e=>e.selected=i.includes(e.value)):r.refs?s(r.ref)?r.refs.length>1?r.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find(t=>t===e.value):i===e.value)):r.refs[0]&&(r.refs[0].checked=!!i):r.refs.forEach(e=>e.checked=e.value===i):P(r.ref)?r.ref.value="":(r.ref.value=i,r.ref.type||V.values.next({name:e,values:{...b}})))}(r.shouldDirty||r.shouldTouch)&&H(e,i,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&ek(e)},eb=(e,t,r)=>{for(let a in t){let s=t[a],n=`${e}.${a}`,l=v(d,n);!k.array.has(e)&&Q(s)&&(!l||l._f)||i(s)?eg(n,s,r):eb(n,s,r)}},ex=(e,r,a={})=>{let s=v(d,e),i=k.array.has(e),u=h(r);N(b,e,u),i?(V.array.next({name:e,values:{...b}}),(O.isDirty||O.dirtyFields)&&a.shouldDirty&&V.state.next({name:e,dirtyFields:ei(p,b),isDirty:ev(e,u)})):!s||s._f||n(u)?eg(e,u,a):eb(e,u,a),C(e,k)&&V.state.next({...l}),V.values.next({name:e,values:{...b}}),x.mount||t()},ew=async e=>{let t=e.target,s=t.name,i=!0,n=v(d,s);if(n){let u,c;let p=t.type?el(n._f):o(e),f=e.type===_.BLUR||e.type===_.FOCUS_OUT,h=!ed(n._f)&&!a.resolver&&!v(l.errors,s)&&!n._f.deps||ep(f,v(l.touchedFields,s),l.isSubmitted,U,L),m=C(s,k,f);N(b,s,p),f?(n._f.onBlur&&n._f.onBlur(e),r&&r(0)):n._f.onChange&&n._f.onChange(e);let y=H(s,p,f,!1),g=!w(y)||m;if(f||V.values.next({name:s,type:e.type,values:{...b}}),h)return O.isValid&&B(),g&&V.state.next({name:s,...m?{}:y});if(!f&&m&&V.state.next({...l}),K(!0),a.resolver){let{errors:e}=await es([s]),t=ec(l.errors,d,s),r=ec(e,d,t.name||s);u=r.error,s=r.name,c=w(e)}else u=(await J(n,b,$,a.shouldUseNativeValidation))[s],(i=isNaN(p)||p===v(b,s,p))&&(u?c=!1:O.isValid&&(c=await ey(d,!0)));i&&(n._f.deps&&ek(n._f.deps),ea(s,c,u,y))}},ek=async(e,t={})=>{let r,s;let i=Z(e);if(K(!0),a.resolver){let t=await em(y(e)?e:i);r=w(t),s=e?!i.some(e=>v(t,e)):r}else e?((s=(await Promise.all(i.map(async e=>{let t=v(d,e);return await ey(t&&t._f?{[e]:t}:t)}))).every(Boolean))||l.isValid)&&B():s=r=await ey(d);return V.state.next({...!S(e)||O.isValid&&r!==l.isValid?{}:{name:e},...a.resolver||!e?{isValid:r}:{},errors:l.errors,isValidating:!1}),t.shouldFocus&&!s&&E(d,e=>e&&v(l.errors,e),e?i:k.mount),s},eZ=e=>{let t={...p,...x.mount?b:{}};return y(e)?t:S(e)?v(t,e):e.map(e=>v(t,e))},eS=(e,t)=>({invalid:!!v((t||l).errors,e),isDirty:!!v((t||l).dirtyFields,e),isTouched:!!v((t||l).touchedFields,e),error:v((t||l).errors,e)}),eT=(e,t={})=>{for(let r of e?Z(e):k.mount)k.mount.delete(r),k.array.delete(r),t.keepValue||(Y(d,r),Y(b,r)),t.keepError||Y(l.errors,r),t.keepDirty||Y(l.dirtyFields,r),t.keepTouched||Y(l.touchedFields,r),a.shouldUnregister||t.keepDefaultValue||Y(p,r);V.values.next({values:{...b}}),V.state.next({...l,...t.keepDirty?{isDirty:ev()}:{}}),t.keepIsValid||B()},eA=(e,t={})=>{let r=v(d,e),s=I(t.disabled);return N(d,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),k.mount.add(e),r?s&&N(b,e,t.disabled?void 0:v(b,e,el(r._f))):W(e,!0,t.value),{...s?{disabled:t.disabled}:{},...a.shouldUseNativeValidation?{required:!!t.required,min:eo(t.min),max:eo(t.max),minLength:eo(t.minLength),maxLength:eo(t.maxLength),pattern:eo(t.pattern)}:{},name:e,onChange:ew,onBlur:ew,ref:s=>{if(s){eA(e,t),r=v(d,e);let a=y(s.value)&&s.querySelectorAll&&s.querySelectorAll("input,select,textarea")[0]||s,i=et(a),n=r._f.refs||[];(i?n.find(e=>e===a):a===r._f.ref)||(N(d,e,{_f:{...r._f,...i?{refs:[...n.filter(er),a,...Array.isArray(v(p,e))?[{}]:[]],ref:{type:a.type,name:e}}:{ref:a}}}),W(e,!1,void 0,a))}else(r=v(d,e,{}))._f&&(r._f.mount=!1),(a.shouldUnregister||t.shouldUnregister)&&!(c(k.array,e)&&x.action)&&k.unMount.add(e)}}},eO=()=>a.shouldFocusError&&E(d,e=>e&&v(l.errors,e),k.mount),eN=(r,a={})=>{let s=r||p,i=h(s),n=r&&!w(r)?i:p;if(a.keepDefaultValues||(p=s),!a.keepValues){if(a.keepDirtyValues||R)for(let e of k.mount)v(l.dirtyFields,e)?N(n,e,v(b,e)):ex(e,v(n,e));else{if(f&&y(r))for(let e of k.mount){let t=v(d,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(M(e)){let t=e.closest("form");if(t){t.reset();break}}}}d={}}b=e.shouldUnregister?a.keepDefaultValues?h(p):{}:i,V.array.next({values:{...n}}),V.values.next({values:{...n}})}k={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},x.mount||t(),x.mount=!O.isValid||!!a.keepIsValid,x.watch=!!e.shouldUnregister,V.state.next({submitCount:a.keepSubmitCount?l.submitCount:0,isDirty:a.keepDirty?l.isDirty:!!(a.keepDefaultValues&&!X(r,p)),isSubmitted:!!a.keepIsSubmitted&&l.isSubmitted,dirtyFields:a.keepDirtyValues?l.dirtyFields:a.keepDefaultValues&&r?ei(p,r):{},touchedFields:a.keepTouched?l.touchedFields:{},errors:a.keepErrors?l.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eV=(e,t)=>eN(F(e)?e(b):e,t);return F(a.defaultValues)&&a.defaultValues().then(e=>{eV(e,a.resetOptions),V.state.next({isLoading:!1})}),{control:{register:eA,unregister:eT,getFieldState:eS,_executeSchema:es,_getWatch:e_,_getDirty:ev,_updateValid:B,_removeUnmounted:()=>{for(let e of k.unMount){let t=v(d,e);t&&(t._f.refs?t._f.refs.every(e=>!er(e)):!er(t._f.ref))&&eT(e)}k.unMount=new Set},_updateFieldArray:(e,t=[],r,a,s=!0,i=!0)=>{if(a&&r){if(x.action=!0,i&&Array.isArray(v(d,e))){let t=r(v(d,e),a.argA,a.argB);s&&N(d,e,t)}if(i&&Array.isArray(v(l.errors,e))){let t=r(v(l.errors,e),a.argA,a.argB);s&&N(l.errors,e,t),ef(l.errors,e)}if(O.touchedFields&&i&&Array.isArray(v(l.touchedFields,e))){let t=r(v(l.touchedFields,e),a.argA,a.argB);s&&N(l.touchedFields,e,t)}O.dirtyFields&&(l.dirtyFields=ei(p,b)),V.state.next({name:e,isDirty:ev(e,t),dirtyFields:l.dirtyFields,errors:l.errors,isValid:l.isValid})}else N(b,e,t)},_getFieldArray:t=>m(v(x.mount?b:p,t,e.shouldUnregister?v(p,t,[]):[])),_reset:eN,_updateFormState:e=>{l={...l,...e}},_subjects:V,_proxyFormState:O,get _fields(){return d},get _formValues(){return b},get _state(){return x},set _state(value){x=value},get _defaultValues(){return p},get _names(){return k},set _names(value){k=value},get _formState(){return l},set _formState(value){l=value},get _options(){return a},set _options(value){a={...a,...value}}},trigger:ek,register:eA,handleSubmit:(e,t)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let s=h(b);if(V.state.next({isSubmitting:!0}),a.resolver){let{errors:e,values:t}=await es();l.errors=e,s=t}else await ey(d);Y(l.errors,"root"),w(l.errors)?(V.state.next({errors:{}}),await e(s,r)):(t&&await t({...l.errors},r),eO(),setTimeout(eO)),V.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:w(l.errors),submitCount:l.submitCount+1,errors:l.errors})},watch:(e,t)=>F(e)?V.values.subscribe({next:r=>e(e_(void 0,t),r)}):e_(e,t,!0),setValue:ex,getValues:eZ,reset:eV,resetField:(e,t={})=>{v(d,e)&&(y(t.defaultValue)?ex(e,v(p,e)):(ex(e,t.defaultValue),N(p,e,t.defaultValue)),t.keepTouched||Y(l.touchedFields,e),t.keepDirty||(Y(l.dirtyFields,e),l.isDirty=t.defaultValue?ev(e,v(p,e)):ev()),!t.keepError&&(Y(l.errors,e),O.isValid&&B()),V.state.next({...l}))},clearErrors:e=>{e&&Z(e).forEach(e=>Y(l.errors,e)),V.state.next({errors:e?l.errors:{}})},unregister:eT,setError:(e,t,r)=>{let a=(v(d,e,{_f:{}})._f||{}).ref;N(l.errors,e,{...t,ref:a}),V.state.next({name:e,errors:l.errors,isValid:!1}),r&&r.shouldFocus&&a&&a.focus&&a.focus()},setFocus:(e,t={})=>{let r=v(d,e),a=r&&r._f;if(a){let e=a.refs?a.refs[0]:a.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eS}}(e,()=>l(e=>({...e}))),formState:r});let d=t.current.control;return d._options=e,!function(e){let t=a.useRef(e);t.current=e,a.useEffect(()=>{let r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}({subject:d._subjects.state,next:e=>{k(e,d._proxyFormState,d._updateFormState,!0)&&l({...d._formState})}}),a.useEffect(()=>{e.values&&!X(e.values,d._defaultValues)&&d._reset(e.values,d._options.resetOptions)},[e.values,d]),a.useEffect(()=>{d._state.mount||(d._updateValid(),d._state.mount=!0),d._state.watch&&(d._state.watch=!1,d._subjects.state.next({...d._formState})),d._removeUnmounted()}),t.current.formState=x(r,d),t.current}},92391:function(e,t,r){r.d(t,{z:function(){return eW}}),(eL=ez||(ez={})).assertEqual=e=>e,eL.assertIs=function(e){},eL.assertNever=function(e){throw Error()},eL.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},eL.getValidEnumValues=e=>{let t=eL.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let a of t)r[a]=e[a];return eL.objectValues(r)},eL.objectValues=e=>eL.objectKeys(e).map(function(t){return e[t]}),eL.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},eL.find=(e,t)=>{for(let r of e)if(t(r))return r},eL.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,eL.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},eL.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t;let a=ez.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),s=e=>{let t=typeof e;switch(t){case"undefined":return a.undefined;case"string":return a.string;case"number":return isNaN(e)?a.nan:a.number;case"boolean":return a.boolean;case"function":return a.function;case"bigint":return a.bigint;case"object":if(Array.isArray(e))return a.array;if(null===e)return a.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return a.promise;if("undefined"!=typeof Map&&e instanceof Map)return a.map;if("undefined"!=typeof Set&&e instanceof Set)return a.set;if("undefined"!=typeof Date&&e instanceof Date)return a.date;return a.object;default:return a.unknown}},i=ez.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of"]);class n extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},r={_errors:[]},a=e=>{for(let s of e.issues)if("invalid_union"===s.code)s.unionErrors.map(a);else if("invalid_return_type"===s.code)a(s.returnTypeError);else if("invalid_arguments"===s.code)a(s.argumentsError);else if(0===s.path.length)r._errors.push(t(s));else{let e=r,a=0;for(;ae.message){let t={},r=[];for(let a of this.issues)a.path.length>0?(t[a.path[0]]=t[a.path[0]]||[],t[a.path[0]].push(e(a))):r.push(e(a));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}n.create=e=>{let t=new n(e);return t};let l=(e,t)=>{let r;switch(e.code){case i.invalid_type:r=e.received===a.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case i.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ez.jsonStringifyReplacer)}`;break;case i.unrecognized_keys:r=`Unrecognized key(s) in object: ${ez.joinValues(e.keys,", ")}`;break;case i.invalid_union:r="Invalid input";break;case i.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ez.joinValues(e.options)}`;break;case i.invalid_enum_value:r=`Invalid enum value. Expected ${ez.joinValues(e.options)}, received '${e.received}'`;break;case i.invalid_arguments:r="Invalid function arguments";break;case i.invalid_return_type:r="Invalid function return type";break;case i.invalid_date:r="Invalid date";break;case i.invalid_string:"object"==typeof e.validation?"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:ez.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case i.too_small:r="array"===e.type?`Array must contain ${e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be greater than ${e.inclusive?"or equal to ":""}${e.minimum}`:"date"===e.type?`Date must be greater than ${e.inclusive?"or equal to ":""}${new Date(e.minimum)}`:"Invalid input";break;case i.too_big:r="array"===e.type?`Array must contain ${e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be less than ${e.inclusive?"or equal to ":""}${e.maximum}`:"date"===e.type?`Date must be smaller than ${e.inclusive?"or equal to ":""}${new Date(e.maximum)}`:"Invalid input";break;case i.custom:r="Invalid input";break;case i.invalid_intersection_types:r="Intersection results could not be merged";break;case i.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;default:r=t.defaultError,ez.assertNever(e)}return{message:r}},u=l,o=e=>{let{data:t,path:r,errorMaps:a,issueData:s}=e,i=[...r,...s.path||[]],n={...s,path:i},l="",u=a.filter(e=>!!e).slice().reverse();for(let e of u)l=e(n,{data:t,defaultError:l}).message;return{...s,path:i,message:s.message||l}};function d(e,t){let r=o({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,u,l].filter(e=>!!e)});e.common.issues.push(r)}class c{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let a of t){if("aborted"===a.status)return p;"dirty"===a.status&&e.dirty(),r.push(a.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t)r.push({key:await e.key,value:await e.value});return c.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let a of t){let{key:t,value:s}=a;if("aborted"===t.status||"aborted"===s.status)return p;"dirty"===t.status&&e.dirty(),"dirty"===s.status&&e.dirty(),(void 0!==s.value||a.alwaysSet)&&(r[t.value]=s.value)}return{status:e.value,value:r}}}let p=Object.freeze({status:"aborted"}),f=e=>({status:"valid",value:e}),h=e=>"aborted"===e.status,m=e=>"dirty"===e.status,y=e=>"valid"===e.status,v=e=>e instanceof Promise;(eU=eB||(eB={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},eU.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class _{constructor(e,t,r,a){this.parent=e,this.data=t,this._path=r,this._key=a}get path(){return this._path.concat(this._key)}}let g=(e,t)=>{if(y(t))return{success:!0,data:t.value};{if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");let t=new n(e.common.issues);return{success:!1,error:t}}};function b(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:a,description:s}=e;if(t&&(r||a))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:s}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=a?a:t.defaultError}:{message:null!=r?r:t.defaultError},description:s}}class x{constructor(e){this.spa=this.safeParseAsync,this.superRefine=this._refinement,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.default=this.default.bind(this),this.describe=this.describe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return s(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:s(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new c,ctx:{common:e.parent.common,data:e.data,parsedType:s(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(v(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let a={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:s(e)},i=this._parseSync({data:e,path:a.path,parent:a});return g(a,i)}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:s(e)},a=this._parse({data:e,path:[],parent:r}),i=await (v(a)?a:Promise.resolve(a));return g(r,i)}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,a)=>{let s=e(t),n=()=>a.addIssue({code:i.custom,...r(t)});return"undefined"!=typeof Promise&&s instanceof Promise?s.then(e=>!!e||(n(),!1)):!!s||(n(),!1)})}refinement(e,t){return this._refinement((r,a)=>!!e(r)||(a.addIssue("function"==typeof t?t(r,a):t),!1))}_refinement(e){return new X({schema:this,typeName:eq.ZodEffects,effect:{type:"refinement",refinement:e}})}optional(){return ee.create(this)}nullable(){return et.create(this)}nullish(){return this.optional().nullable()}array(){return P.create(this)}promise(){return Q.create(this)}or(e){return R.create([this,e])}and(e){return U.create(this,e)}transform(e){return new X({schema:this,typeName:eq.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new er({innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:eq.ZodDefault})}brand(){return new ei({typeName:eq.ZodBranded,type:this,...b(void 0)})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let w=/^c[^\s-]{8,}$/i,k=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,Z=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;class S extends x{constructor(){super(...arguments),this._regex=(e,t,r)=>this.refinement(t=>e.test(t),{validation:t,code:i.invalid_string,...eB.errToObj(r)}),this.nonempty=e=>this.min(1,eB.errToObj(e)),this.trim=()=>new S({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}_parse(e){let t;let r=this._getType(e);if(r!==a.string){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.string,received:t.parsedType}),p}let s=new c;for(let r of this._def.checks)if("min"===r.kind)e.data.lengthr.value&&(d(t=this._getOrReturnCtx(e,t),{code:i.too_big,maximum:r.value,type:"string",inclusive:!0,message:r.message}),s.dirty());else if("email"===r.kind)Z.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"email",code:i.invalid_string,message:r.message}),s.dirty());else if("uuid"===r.kind)k.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:i.invalid_string,message:r.message}),s.dirty());else if("cuid"===r.kind)w.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:i.invalid_string,message:r.message}),s.dirty());else if("url"===r.kind)try{new URL(e.data)}catch(a){d(t=this._getOrReturnCtx(e,t),{validation:"url",code:i.invalid_string,message:r.message}),s.dirty()}else if("regex"===r.kind){r.regex.lastIndex=0;let a=r.regex.test(e.data);a||(d(t=this._getOrReturnCtx(e,t),{validation:"regex",code:i.invalid_string,message:r.message}),s.dirty())}else"trim"===r.kind?e.data=e.data.trim():"startsWith"===r.kind?e.data.startsWith(r.value)||(d(t=this._getOrReturnCtx(e,t),{code:i.invalid_string,validation:{startsWith:r.value},message:r.message}),s.dirty()):"endsWith"===r.kind?e.data.endsWith(r.value)||(d(t=this._getOrReturnCtx(e,t),{code:i.invalid_string,validation:{endsWith:r.value},message:r.message}),s.dirty()):ez.assertNever(r);return{status:s.value,value:e.data}}_addCheck(e){return new S({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...eB.errToObj(e)})}url(e){return this._addCheck({kind:"url",...eB.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...eB.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...eB.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...eB.errToObj(t)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...eB.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...eB.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...eB.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...eB.errToObj(t)})}length(e,t){return this.min(e,t).max(e,t)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew S({checks:[],typeName:eq.ZodString,...b(e)});class T extends x{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;let r=this._getType(e);if(r!==a.number){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.number,received:t.parsedType}),p}let s=new c;for(let r of this._def.checks)if("int"===r.kind)ez.isInteger(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:i.invalid_type,expected:"integer",received:"float",message:r.message}),s.dirty());else if("min"===r.kind){let a=r.inclusive?e.datar.value:e.data>=r.value;a&&(d(t=this._getOrReturnCtx(e,t),{code:i.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,message:r.message}),s.dirty())}else"multipleOf"===r.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,a=(t.toString().split(".")[1]||"").length,s=r>a?r:a,i=parseInt(e.toFixed(s).replace(".","")),n=parseInt(t.toFixed(s).replace(".",""));return i%n/Math.pow(10,s)}(e.data,r.value)&&(d(t=this._getOrReturnCtx(e,t),{code:i.not_multiple_of,multipleOf:r.value,message:r.message}),s.dirty()):ez.assertNever(r);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,eB.toString(t))}gt(e,t){return this.setLimit("min",e,!1,eB.toString(t))}lte(e,t){return this.setLimit("max",e,!0,eB.toString(t))}lt(e,t){return this.setLimit("max",e,!1,eB.toString(t))}setLimit(e,t,r,a){return new T({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:eB.toString(a)}]})}_addCheck(e){return new T({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:eB.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:eB.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:eB.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:eB.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:eB.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:eB.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind)}}T.create=e=>new T({checks:[],typeName:eq.ZodNumber,...b(e)});class A extends x{_parse(e){let t=this._getType(e);if(t!==a.bigint){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.bigint,received:t.parsedType}),p}return f(e.data)}}A.create=e=>new A({typeName:eq.ZodBigInt,...b(e)});class O extends x{_parse(e){let t=this._getType(e);if(t!==a.boolean){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.boolean,received:t.parsedType}),p}return f(e.data)}}O.create=e=>new O({typeName:eq.ZodBoolean,...b(e)});class N extends x{_parse(e){let t;let r=this._getType(e);if(r!==a.date){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.date,received:t.parsedType}),p}if(isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_date}),p}let s=new c;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()r.value&&(d(t=this._getOrReturnCtx(e,t),{code:i.too_big,message:r.message,inclusive:!0,maximum:r.value,type:"date"}),s.dirty()):ez.assertNever(r);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new N({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:eB.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:eB.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew N({checks:[],typeName:eq.ZodDate,...b(e)});class V extends x{_parse(e){let t=this._getType(e);if(t!==a.undefined){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.undefined,received:t.parsedType}),p}return f(e.data)}}V.create=e=>new V({typeName:eq.ZodUndefined,...b(e)});class E extends x{_parse(e){let t=this._getType(e);if(t!==a.null){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.null,received:t.parsedType}),p}return f(e.data)}}E.create=e=>new E({typeName:eq.ZodNull,...b(e)});class j extends x{constructor(){super(...arguments),this._any=!0}_parse(e){return f(e.data)}}j.create=e=>new j({typeName:eq.ZodAny,...b(e)});class C extends x{constructor(){super(...arguments),this._unknown=!0}_parse(e){return f(e.data)}}C.create=e=>new C({typeName:eq.ZodUnknown,...b(e)});class D extends x{_parse(e){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.never,received:t.parsedType}),p}}D.create=e=>new D({typeName:eq.ZodNever,...b(e)});class I extends x{_parse(e){let t=this._getType(e);if(t!==a.undefined){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.void,received:t.parsedType}),p}return f(e.data)}}I.create=e=>new I({typeName:eq.ZodVoid,...b(e)});class P extends x{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),s=this._def;if(t.parsedType!==a.array)return d(t,{code:i.invalid_type,expected:a.array,received:t.parsedType}),p;if(null!==s.minLength&&t.data.lengths.maxLength.value&&(d(t,{code:i.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,message:s.maxLength.message}),r.dirty()),t.common.async)return Promise.all(t.data.map((e,r)=>s.type._parseAsync(new _(t,e,t.path,r)))).then(e=>c.mergeArray(r,e));let n=t.data.map((e,r)=>s.type._parseSync(new _(t,e,t.path,r)));return c.mergeArray(r,n)}get element(){return this._def.type}min(e,t){return new P({...this._def,minLength:{value:e,message:eB.toString(t)}})}max(e,t){return new P({...this._def,maxLength:{value:e,message:eB.toString(t)}})}length(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}P.create=(e,t)=>new P({type:e,minLength:null,maxLength:null,typeName:eq.ZodArray,...b(t)}),(eK||(eK={})).mergeShapes=(e,t)=>({...e,...t});let F=e=>t=>new M({...e,shape:()=>({...e.shape(),...t})});class M extends x{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=F(this._def),this.extend=F(this._def)}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=ez.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){let t=this._getType(e);if(t!==a.object){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.object,received:t.parsedType}),p}let{status:r,ctx:s}=this._processInputParams(e),{shape:n,keys:l}=this._getCached(),u=[];if(!(this._def.catchall instanceof D&&"strip"===this._def.unknownKeys))for(let e in s.data)l.includes(e)||u.push(e);let o=[];for(let e of l){let t=n[e],r=s.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new _(s,r,s.path,e)),alwaysSet:e in s.data})}if(this._def.catchall instanceof D){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of u)o.push({key:{status:"valid",value:e},value:{status:"valid",value:s.data[e]}});else if("strict"===e)u.length>0&&(d(s,{code:i.unrecognized_keys,keys:u}),r.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of u){let r=s.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new _(s,r,s.path,t)),alwaysSet:t in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let r=await t.key;e.push({key:r,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>c.mergeObjectSync(r,e)):c.mergeObjectSync(r,o)}get shape(){return this._def.shape()}strict(e){return eB.errToObj,new M({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var a,s,i,n;let l=null!==(i=null===(s=(a=this._def).errorMap)||void 0===s?void 0:s.call(a,t,r).message)&&void 0!==i?i:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(n=eB.errToObj(e).message)&&void 0!==n?n:l}:{message:l}}}:{}})}strip(){return new M({...this._def,unknownKeys:"strip"})}passthrough(){return new M({...this._def,unknownKeys:"passthrough"})}setKey(e,t){return this.augment({[e]:t})}merge(e){let t=new M({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>eK.mergeShapes(this._def.shape(),e._def.shape()),typeName:eq.ZodObject});return t}catchall(e){return new M({...this._def,catchall:e})}pick(e){let t={};return ez.objectKeys(e).map(e=>{this.shape[e]&&(t[e]=this.shape[e])}),new M({...this._def,shape:()=>t})}omit(e){let t={};return ez.objectKeys(this.shape).map(r=>{-1===ez.objectKeys(e).indexOf(r)&&(t[r]=this.shape[r])}),new M({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof M){let r={};for(let a in t.shape){let s=t.shape[a];r[a]=ee.create(e(s))}return new M({...t._def,shape:()=>r})}return t instanceof P?P.create(e(t.element)):t instanceof ee?ee.create(e(t.unwrap())):t instanceof et?et.create(e(t.unwrap())):t instanceof $?$.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};if(e)ez.objectKeys(this.shape).map(r=>{-1===ez.objectKeys(e).indexOf(r)?t[r]=this.shape[r]:t[r]=this.shape[r].optional()});else for(let e in this.shape){let r=this.shape[e];t[e]=r.optional()}return new M({...this._def,shape:()=>t})}required(){let e={};for(let t in this.shape){let r=this.shape[t],a=r;for(;a instanceof ee;)a=a._def.innerType;e[t]=a}return new M({...this._def,shape:()=>e})}keyof(){return J(ez.objectKeys(this.shape))}}M.create=(e,t)=>new M({shape:()=>e,unknownKeys:"strip",catchall:D.create(),typeName:eq.ZodObject,...b(t)}),M.strictCreate=(e,t)=>new M({shape:()=>e,unknownKeys:"strict",catchall:D.create(),typeName:eq.ZodObject,...b(t)}),M.lazycreate=(e,t)=>new M({shape:e,unknownKeys:"strip",catchall:D.create(),typeName:eq.ZodObject,...b(t)});class R extends x{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new n(e.ctx.common.issues));return d(t,{code:i.invalid_union,unionErrors:r}),p});{let e;let a=[];for(let s of r){let r={...t,common:{...t.common,issues:[]},parent:null},i=s._parseSync({data:t.data,path:t.path,parent:r});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:r}),r.common.issues.length&&a.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let s=a.map(e=>new n(e));return d(t,{code:i.invalid_union,unionErrors:s}),p}}get options(){return this._def.options}}R.create=(e,t)=>new R({options:e,typeName:eq.ZodUnion,...b(t)});class L extends x{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.object)return d(t,{code:i.invalid_type,expected:a.object,received:t.parsedType}),p;let r=this.discriminator,s=t.data[r],n=this.options.get(s);return n?t.common.async?n._parseAsync({data:t.data,path:t.path,parent:t}):n._parseSync({data:t.data,path:t.path,parent:t}):(d(t,{code:i.invalid_union_discriminator,options:this.validDiscriminatorValues,path:[r]}),p)}get discriminator(){return this._def.discriminator}get validDiscriminatorValues(){return Array.from(this.options.keys())}get options(){return this._def.options}static create(e,t,r){let a=new Map;try{t.forEach(t=>{let r=t.shape[e].value;a.set(r,t)})}catch(e){throw Error("The discriminator value could not be extracted from all the provided schemas")}if(a.size!==t.length)throw Error("Some of the discriminator values are not unique");return new L({typeName:eq.ZodDiscriminatedUnion,discriminator:e,options:a,...b(r)})}}class U extends x{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(h(e)||h(n))return p;let l=function e(t,r){let i=s(t),n=s(r);if(t===r)return{valid:!0,data:t};if(i===a.object&&n===a.object){let a=ez.objectKeys(r),s=ez.objectKeys(t).filter(e=>-1!==a.indexOf(e)),i={...t,...r};for(let a of s){let s=e(t[a],r[a]);if(!s.valid)return{valid:!1};i[a]=s.data}return{valid:!0,data:i}}if(i===a.array&&n===a.array){if(t.length!==r.length)return{valid:!1};let a=[];for(let s=0;sn(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}U.create=(e,t,r)=>new U({left:e,right:t,typeName:eq.ZodIntersection,...b(r)});class $ extends x{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.array)return d(r,{code:i.invalid_type,expected:a.array,received:r.parsedType}),p;if(r.data.lengththis._def.items.length&&(d(r,{code:i.too_big,maximum:this._def.items.length,inclusive:!0,type:"array"}),t.dirty());let n=r.data.map((e,t)=>{let a=this._def.items[t]||this._def.rest;return a?a._parse(new _(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>c.mergeArray(t,e)):c.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new $({...this._def,rest:e})}}$.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new $({items:e,typeName:eq.ZodTuple,rest:null,...b(t)})};class z extends x{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.object)return d(r,{code:i.invalid_type,expected:a.object,received:r.parsedType}),p;let s=[],n=this._def.keyType,l=this._def.valueType;for(let e in r.data)s.push({key:n._parse(new _(r,e,r.path,e)),value:l._parse(new _(r,r.data[e],r.path,e))});return r.common.async?c.mergeObjectAsync(t,s):c.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(e,t,r){return new z(t instanceof x?{keyType:e,valueType:t,typeName:eq.ZodRecord,...b(r)}:{keyType:S.create(),valueType:e,typeName:eq.ZodRecord,...b(t)})}}class B extends x{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.map)return d(r,{code:i.invalid_type,expected:a.map,received:r.parsedType}),p;let s=this._def.keyType,n=this._def.valueType,l=[...r.data.entries()].map(([e,t],a)=>({key:s._parse(new _(r,e,r.path,[a,"key"])),value:n._parse(new _(r,t,r.path,[a,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of l){let a=await r.key,s=await r.value;if("aborted"===a.status||"aborted"===s.status)return p;("dirty"===a.status||"dirty"===s.status)&&t.dirty(),e.set(a.value,s.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of l){let a=r.key,s=r.value;if("aborted"===a.status||"aborted"===s.status)return p;("dirty"===a.status||"dirty"===s.status)&&t.dirty(),e.set(a.value,s.value)}return{status:t.value,value:e}}}}B.create=(e,t,r)=>new B({valueType:t,keyType:e,typeName:eq.ZodMap,...b(r)});class K extends x{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.set)return d(r,{code:i.invalid_type,expected:a.set,received:r.parsedType}),p;let s=this._def;null!==s.minSize&&r.data.sizes.maxSize.value&&(d(r,{code:i.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,message:s.maxSize.message}),t.dirty());let n=this._def.valueType;function l(e){let r=new Set;for(let a of e){if("aborted"===a.status)return p;"dirty"===a.status&&t.dirty(),r.add(a.value)}return{status:t.value,value:r}}let u=[...r.data.values()].map((e,t)=>n._parse(new _(r,e,r.path,t)));return r.common.async?Promise.all(u).then(e=>l(e)):l(u)}min(e,t){return new K({...this._def,minSize:{value:e,message:eB.toString(t)}})}max(e,t){return new K({...this._def,maxSize:{value:e,message:eB.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}K.create=(e,t)=>new K({valueType:e,minSize:null,maxSize:null,typeName:eq.ZodSet,...b(t)});class q extends x{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.function)return d(t,{code:i.invalid_type,expected:a.function,received:t.parsedType}),p;function r(e,r){return o({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u,l].filter(e=>!!e),issueData:{code:i.invalid_arguments,argumentsError:r}})}function s(e,r){return o({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u,l].filter(e=>!!e),issueData:{code:i.invalid_return_type,returnTypeError:r}})}let c={errorMap:t.common.contextualErrorMap},h=t.data;return this._def.returns instanceof Q?f(async(...e)=>{let t=new n([]),a=await this._def.args.parseAsync(e,c).catch(a=>{throw t.addIssue(r(e,a)),t}),i=await h(...a),l=await this._def.returns._def.type.parseAsync(i,c).catch(e=>{throw t.addIssue(s(i,e)),t});return l}):f((...e)=>{let t=this._def.args.safeParse(e,c);if(!t.success)throw new n([r(e,t.error)]);let a=h(...t.data),i=this._def.returns.safeParse(a,c);if(!i.success)throw new n([s(a,i.error)]);return i.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new q({...this._def,args:$.create(e).rest(C.create())})}returns(e){return new q({...this._def,returns:e})}implement(e){let t=this.parse(e);return t}strictImplement(e){let t=this.parse(e);return t}static create(e,t,r){return new q({args:e||$.create([]).rest(C.create()),returns:t||C.create(),typeName:eq.ZodFunction,...b(r)})}}class W extends x{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.getter();return r._parse({data:t.data,path:t.path,parent:t})}}W.create=(e,t)=>new W({getter:e,typeName:eq.ZodLazy,...b(t)});class H extends x{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_literal,expected:this._def.value}),p}return{status:"valid",value:e.data}}get value(){return this._def.value}}function J(e,t){return new Y({values:e,typeName:eq.ZodEnum,...b(t)})}H.create=(e,t)=>new H({value:e,typeName:eq.ZodLiteral,...b(t)});class Y extends x{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return d(t,{expected:ez.joinValues(r),received:t.parsedType,code:i.invalid_type}),p}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return d(t,{received:t.data,code:i.invalid_enum_value,options:r}),p}return f(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}}Y.create=J;class G extends x{_parse(e){let t=ez.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==a.string&&r.parsedType!==a.number){let e=ez.objectValues(t);return d(r,{expected:ez.joinValues(e),received:r.parsedType,code:i.invalid_type}),p}if(-1===t.indexOf(e.data)){let e=ez.objectValues(t);return d(r,{received:r.data,code:i.invalid_enum_value,options:e}),p}return f(e.data)}get enum(){return this._def.values}}G.create=(e,t)=>new G({values:e,typeName:eq.ZodNativeEnum,...b(t)});class Q extends x{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.promise&&!1===t.common.async)return d(t,{code:i.invalid_type,expected:a.promise,received:t.parsedType}),p;let r=t.parsedType===a.promise?t.data:Promise.resolve(t.data);return f(r.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Q.create=(e,t)=>new Q({type:e,typeName:eq.ZodPromise,...b(t)});class X extends x{innerType(){return this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),a=this._def.effect||null;if("preprocess"===a.type){let e=a.transform(r.data);return r.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:r.path,parent:r})):this._def.schema._parseSync({data:e,path:r.path,parent:r})}let s={addIssue:e=>{d(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),"refinement"===a.type){let e=e=>{let t=a.refinement(e,s);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?p:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===a.status?p:("dirty"===a.status&&t.dirty(),e(a.value),{status:t.value,value:a.value})}}if("transform"===a.type){if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>y(e)?Promise.resolve(a.transform(e.value,s)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!y(e))return e;let i=a.transform(e.value,s);if(i instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}}ez.assertNever(a)}}X.create=(e,t,r)=>new X({schema:e,typeName:eq.ZodEffects,effect:t,...b(r)}),X.createWithPreprocess=(e,t,r)=>new X({schema:t,effect:{type:"preprocess",transform:e},typeName:eq.ZodEffects,...b(r)});class ee extends x{_parse(e){let t=this._getType(e);return t===a.undefined?f(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ee.create=(e,t)=>new ee({innerType:e,typeName:eq.ZodOptional,...b(t)});class et extends x{_parse(e){let t=this._getType(e);return t===a.null?f(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}et.create=(e,t)=>new et({innerType:e,typeName:eq.ZodNullable,...b(t)});class er extends x{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===a.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}er.create=(e,t)=>new ee({innerType:e,typeName:eq.ZodOptional,...b(t)});class ea extends x{_parse(e){let t=this._getType(e);if(t!==a.nan){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.nan,received:t.parsedType}),p}return{status:"valid",value:e.data}}}ea.create=e=>new ea({typeName:eq.ZodNaN,...b(e)});let es=Symbol("zod_brand");class ei extends x{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}let en=(e,t={},r)=>e?j.create().superRefine((a,s)=>{if(!e(a)){let e="function"==typeof t?t(a):t,i="string"==typeof e?{message:e}:e;s.addIssue({code:"custom",...i,fatal:r})}}):j.create(),el={object:M.lazycreate};(e$=eq||(eq={})).ZodString="ZodString",e$.ZodNumber="ZodNumber",e$.ZodNaN="ZodNaN",e$.ZodBigInt="ZodBigInt",e$.ZodBoolean="ZodBoolean",e$.ZodDate="ZodDate",e$.ZodUndefined="ZodUndefined",e$.ZodNull="ZodNull",e$.ZodAny="ZodAny",e$.ZodUnknown="ZodUnknown",e$.ZodNever="ZodNever",e$.ZodVoid="ZodVoid",e$.ZodArray="ZodArray",e$.ZodObject="ZodObject",e$.ZodUnion="ZodUnion",e$.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e$.ZodIntersection="ZodIntersection",e$.ZodTuple="ZodTuple",e$.ZodRecord="ZodRecord",e$.ZodMap="ZodMap",e$.ZodSet="ZodSet",e$.ZodFunction="ZodFunction",e$.ZodLazy="ZodLazy",e$.ZodLiteral="ZodLiteral",e$.ZodEnum="ZodEnum",e$.ZodEffects="ZodEffects",e$.ZodNativeEnum="ZodNativeEnum",e$.ZodOptional="ZodOptional",e$.ZodNullable="ZodNullable",e$.ZodDefault="ZodDefault",e$.ZodPromise="ZodPromise",e$.ZodBranded="ZodBranded";let eu=S.create,eo=T.create,ed=ea.create,ec=A.create,ep=O.create,ef=N.create,eh=V.create,em=E.create,ey=j.create,ev=C.create,e_=D.create,eg=I.create,eb=P.create,ex=M.create,ew=M.strictCreate,ek=R.create,eZ=L.create,eS=U.create,eT=$.create,eA=z.create,eO=B.create,eN=K.create,eV=q.create,eE=W.create,ej=H.create,eC=Y.create,eD=G.create,eI=Q.create,eP=X.create,eF=ee.create,eM=et.create,eR=X.createWithPreprocess;var eL,eU,e$,ez,eB,eK,eq,eW=Object.freeze({__proto__:null,getParsedType:s,ZodParsedType:a,defaultErrorMap:l,setErrorMap:function(e){u=e},getErrorMap:function(){return u},makeIssue:o,EMPTY_PATH:[],addIssueToContext:d,ParseStatus:c,INVALID:p,DIRTY:e=>({status:"dirty",value:e}),OK:f,isAborted:h,isDirty:m,isValid:y,isAsync:v,ZodType:x,ZodString:S,ZodNumber:T,ZodBigInt:A,ZodBoolean:O,ZodDate:N,ZodUndefined:V,ZodNull:E,ZodAny:j,ZodUnknown:C,ZodNever:D,ZodVoid:I,ZodArray:P,get objectUtil(){return eK},ZodObject:M,ZodUnion:R,ZodDiscriminatedUnion:L,ZodIntersection:U,ZodTuple:$,ZodRecord:z,ZodMap:B,ZodSet:K,ZodFunction:q,ZodLazy:W,ZodLiteral:H,ZodEnum:Y,ZodNativeEnum:G,ZodPromise:Q,ZodEffects:X,ZodTransformer:X,ZodOptional:ee,ZodNullable:et,ZodDefault:er,ZodNaN:ea,BRAND:es,ZodBranded:ei,custom:en,Schema:x,ZodSchema:x,late:el,get ZodFirstPartyTypeKind(){return eq},any:ey,array:eb,bigint:ec,boolean:ep,date:ef,discriminatedUnion:eZ,effect:eP,enum:eC,function:eV,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>en(t=>t instanceof e,t,!0),intersection:eS,lazy:eE,literal:ej,map:eO,nan:ed,nativeEnum:eD,never:e_,null:em,nullable:eM,number:eo,object:ex,oboolean:()=>ep().optional(),onumber:()=>eo().optional(),optional:eF,ostring:()=>eu().optional(),preprocess:eR,promise:eI,record:eA,set:eN,strictObject:ew,string:eu,transformer:eP,tuple:eT,undefined:eh,union:ek,unknown:ev,void:eg,NEVER:p,ZodIssueCode:i,quotelessJson:e=>{let t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")},ZodError:n})}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/316-370750739484dff7.js b/pilot/server/static/_next/static/chunks/316-370750739484dff7.js deleted file mode 100644 index 055795c7a..000000000 --- a/pilot/server/static/_next/static/chunks/316-370750739484dff7.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[316],{53047:function(n,t,e){"use strict";e.d(t,{Qh:function(){return S},ZP:function(){return I}});var r=e(46750),o=e(40431),i=e(86006),u=e(53832),a=e(99179),c=e(46319),l=e(47562),s=e(50645),f=e(88930),v=e(47093),d=e(326),p=e(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=e(42858),g=e(9268);let b=["children","action","component","color","disabled","variant","size","slots","slotProps"],w=n=>{let{color:t,disabled:e,focusVisible:r,focusVisibleClassName:o,size:i,variant:a}=n,c={root:["root",e&&"disabled",r&&"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 r&&o&&(s.root+=` ${o}`),s},S=(0,s.Z)("button")(({theme:n,ownerState:t})=>{var e,r,i,u;return[(0,o.Z)({"--Icon-margin":"initial"},t.instanceSize&&{"--IconButton-size":({sm:"2rem",md:"2.5rem",lg:"3rem"})[t.instanceSize]},"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==(e=n.variants[t.variant])?void 0:e[t.color],{"&:hover":{"@media (hover: hover)":null==(r=n.variants[`${t.variant}Hover`])?void 0:r[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)(S,{name:"JoyIconButton",slot:"Root",overridesResolver:(n,t)=>t.root})({}),z=i.forwardRef(function(n,t){var e;let u=(0,f.Z)({props:n,name:"JoyIconButton"}),{children:l,action:s,component:p="button",color:h="primary",disabled:m,variant:S="soft",size:z="md",slots:I={},slotProps:O={}}=u,P=(0,r.Z)(u,b),T=i.useContext(y.Z),j=n.variant||T.variant||S,R=n.size||T.size||z,{getColor:B}=(0,v.VT)(j),E=B(n.color,T.color||h),C=null!=(e=n.disabled)?e:T.disabled||m,A=i.useRef(null),Z=(0,a.Z)(A,t),{focusVisible:H,setFocusVisible:W,getRootProps:M}=(0,c.Z)((0,o.Z)({},u,{disabled:C,rootRef:Z}));i.useImperativeHandle(s,()=>({focusVisible:()=>{var n;W(!0),null==(n=A.current)||n.focus()}}),[W]);let k=(0,o.Z)({},u,{component:p,color:E,disabled:C,variant:j,size:R,focusVisible:H,instanceSize:n.size}),N=w(k),$=(0,o.Z)({},P,{component:p,slots:I,slotProps:O}),[D,F]=(0,d.Z)("root",{ref:t,className:N.root,elementType:x,getSlotProps:M,externalForwardedProps:$,ownerState:k});return(0,g.jsx)(D,(0,o.Z)({},F,{children:l}))});z.muiName="IconButton";var I=z},89081:function(n,t,e){"use strict";e.d(t,{Z:function(){return F}});var r,o=function(){return(o=Object.assign||function(n){for(var t,e=1,r=arguments.length;et.indexOf(r)&&(e[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(n);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(n,r[o])&&(e[r[o]]=n[r[o]]);return e}function u(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,o,i=e.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(n){o={error:n}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u}function a(n,t,e){if(e||2==arguments.length)for(var r,o=0,i=t.length;o-1&&(i=setTimeout(function(){p.delete(n)},t)),p.set(n,o(o({},e),{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 e=g[n].indexOf(t);g[n].splice(e,1)}},S=function(n,t){var e=t.cacheKey,r=t.cacheTime,o=void 0===r?3e5:r,i=t.staleTime,l=void 0===i?0:i,s=t.setCache,v=t.getCache,g=(0,c.useRef)(),S=(0,c.useRef)(),x=function(n,t){s?s(t):h(n,o,t),b(n,t.data)},z=function(n,t){return(void 0===t&&(t=[]),v)?v(t):p.get(n)};return(f(function(){if(e){var t=z(e);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(e,function(t){n.setState({data:t})})}},[]),d(function(){var n;null===(n=g.current)||void 0===n||n.call(g)}),e)?{onBefore:function(n){var t=z(e,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 r=m.get(e);return r&&r!==S.current||(r=n.apply(void 0,a([],u(t),!1)),S.current=r,y(e,r)),{servicePromise:r}},onSuccess:function(t,r){var o;e&&(null===(o=g.current)||void 0===o||o.call(g),x(e,{data:t,params:r,time:new Date().getTime()}),g.current=w(e,function(t){n.setState({data:t})}))},onMutate:function(t){var r;e&&(null===(r=g.current)||void 0===r||r.call(g),x(e,{data:t,params:n.state.params,time:new Date().getTime()}),g.current=w(e,function(t){n.setState({data:t})}))}}:{}},x=e(56762),z=e.n(x),I=function(n,t){var e=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,i=t.debounceMaxWait,l=(0,c.useRef)(),s=(0,c.useMemo)(function(){var n={};return void 0!==r&&(n.leading=r),void 0!==o&&(n.trailing=o),void 0!==i&&(n.maxWait=i),n},[r,o,i]);return((0,c.useEffect)(function(){if(e){var t=n.runAsync.bind(n);return l.current=z()(function(n){n()},e,s),n.runAsync=function(){for(var n=[],e=0;e-1&&B.splice(n,1)})}return function(){l()}},[e,o]),d(function(){l()}),{}},A=function(n,t){var e=t.retryInterval,r=t.retryCount,o=(0,c.useRef)(),i=(0,c.useRef)(0),u=(0,c.useRef)(!1);return r?{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===r||i.current<=r){var t=null!=e?e: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=e(25832),H=e.n(Z),W=function(n,t){var e=t.throttleWait,r=t.throttleLeading,o=t.throttleTrailing,i=(0,c.useRef)(),l={};return(void 0!==r&&(l.leading=r),void 0!==o&&(l.trailing=o),(0,c.useEffect)(function(){if(e){var t=n.runAsync.bind(n);return i.current=H()(function(n){n()},e,l),n.runAsync=function(){for(var n=[],e=0;e0&&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||e<0||m&&r>=s}function w(){var n,e,r,i=o();if(b(i))return S(i);v=setTimeout(w,(n=i-d,e=i-p,r=t-n,m?a(r,s-e):r))}function S(n){return(v=void 0,y&&c)?g(n):(c=l=void 0,f)}function x(){var n,e=o(),r=b(e);if(c=arguments,l=this,d=e,r){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,r(e)&&(h=!!e.leading,s=(m="maxWait"in e)?u(i(e.maxWait)||0,t):s,y="trailing"in e?!!e.trailing:y),x.cancel=function(){void 0!==v&&clearTimeout(v),p=0,c=d=l=v=void 0},x.flush=function(){return void 0===v?f:S(o())},x}},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,e){var r=e(48276),o=e(60655);n.exports=function(n){return"symbol"==typeof n||o(n)&&"[object Symbol]"==r(n)}},49552:function(n,t,e){var r=e(41314);n.exports=function(){return r.Date.now()}},25832:function(n,t,e){var r=e(56762),o=e(74331);n.exports=function(n,t,e){var i=!0,u=!0;if("function"!=typeof n)throw TypeError("Expected a function");return o(e)&&(i="leading"in e?!!e.leading:i,u="trailing"in e?!!e.trailing:u),r(n,t,{leading:i,maxWait:t,trailing:u})}},64528:function(n,t,e){var r=e(84886),o=e(74331),i=e(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=r(n);var e=c.test(n);return e||l.test(n)?s(n.slice(2),e?2:8):a.test(n)?u:+n}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/341-45d79e5f1110ab05.js b/pilot/server/static/_next/static/chunks/341-45d79e5f1110ab05.js new file mode 100644 index 000000000..5430e1754 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/341-45d79e5f1110ab05.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[341],{54842:function(e,t,r){var a=r(78997);t.Z=void 0;var s=a(r(76906)),i=r(9268),n=(0,s.default)((0,i.jsx)("path",{d:"m3.4 20.4 17.45-7.48c.81-.35.81-1.49 0-1.84L3.4 3.6c-.66-.29-1.39.2-1.39.91L2 9.12c0 .5.37.93.87.99L17 12 2.87 13.88c-.5.07-.87.5-.87 1l.01 4.61c0 .71.73 1.2 1.39.91z"}),"SendRounded");t.Z=n},53047:function(e,t,r){r.d(t,{Qh:function(){return x},ZP:function(){return Z}});var a=r(46750),s=r(40431),i=r(86006),n=r(53832),o=r(99179),l=r(46319),u=r(47562),d=r(50645),c=r(88930),f=r(47093),p=r(326),h=r(18587);function m(e){return(0,h.d6)("MuiIconButton",e)}let y=(0,h.sI)("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg"]);var v=r(42858),g=r(9268);let _=["children","action","component","color","disabled","variant","size","slots","slotProps"],b=e=>{let{color:t,disabled:r,focusVisible:a,focusVisibleClassName:s,size:i,variant:o}=e,l={root:["root",r&&"disabled",a&&"focusVisible",o&&`variant${(0,n.Z)(o)}`,t&&`color${(0,n.Z)(t)}`,i&&`size${(0,n.Z)(i)}`]},d=(0,u.Z)(l,m,{});return a&&s&&(d.root+=` ${s}`),d},x=(0,d.Z)("button")(({theme:e,ownerState:t})=>{var r,a,i,n;return[(0,s.Z)({"--Icon-margin":"initial"},t.instanceSize&&{"--IconButton-size":({sm:"2rem",md:"2.5rem",lg:"3rem"})[t.instanceSize]},"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:e.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:e.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:e.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${e.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[e.focus.selector]:e.focus.default}),null==(r=e.variants[t.variant])?void 0:r[t.color],{"&:hover":{"@media (hover: hover)":null==(a=e.variants[`${t.variant}Hover`])?void 0:a[t.color]}},{"&:active":null==(i=e.variants[`${t.variant}Active`])?void 0:i[t.color]},{[`&.${y.disabled}`]:null==(n=e.variants[`${t.variant}Disabled`])?void 0:n[t.color]}]}),w=(0,d.Z)(x,{name:"JoyIconButton",slot:"Root",overridesResolver:(e,t)=>t.root})({}),k=i.forwardRef(function(e,t){var r;let n=(0,c.Z)({props:e,name:"JoyIconButton"}),{children:u,action:d,component:h="button",color:m="primary",disabled:y,variant:x="soft",size:k="md",slots:Z={},slotProps:S={}}=n,T=(0,a.Z)(n,_),A=i.useContext(v.Z),O=e.variant||A.variant||x,N=e.size||A.size||k,{getColor:V}=(0,f.VT)(O),E=V(e.color,A.color||m),j=null!=(r=e.disabled)?r:A.disabled||y,I=i.useRef(null),C=(0,o.Z)(I,t),{focusVisible:D,setFocusVisible:P,getRootProps:z}=(0,l.Z)((0,s.Z)({},n,{disabled:j,rootRef:C}));i.useImperativeHandle(d,()=>({focusVisible:()=>{var e;P(!0),null==(e=I.current)||e.focus()}}),[P]);let F=(0,s.Z)({},n,{component:h,color:E,disabled:j,variant:O,size:N,focusVisible:D,instanceSize:e.size}),R=b(F),M=(0,s.Z)({},T,{component:h,slots:Z,slotProps:S}),[L,U]=(0,p.Z)("root",{ref:t,className:R.root,elementType:w,getSlotProps:z,externalForwardedProps:M,ownerState:F});return(0,g.jsx)(L,(0,s.Z)({},U,{children:u}))});k.muiName="IconButton";var Z=k},67830:function(e,t,r){r.d(t,{F:function(){return l}});var a=r(19700),s=function(e,t,r){if(e&&"reportValidity"in e){var s=(0,a.U2)(r,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},i=function(e,t){var r=function(r){var a=t.fields[r];a&&a.ref&&"reportValidity"in a.ref?s(a.ref,r,e):a.refs&&a.refs.forEach(function(t){return s(t,r,e)})};for(var a in t.fields)r(a)},n=function(e,t){t.shouldUseNativeValidation&&i(e,t);var r={};for(var s in e){var n=(0,a.U2)(t.fields,s);(0,a.t8)(r,s,Object.assign(e[s]||{},{ref:n&&n.ref}))}return r},o=function(e,t){for(var r={};e.length;){var s=e[0],i=s.code,n=s.message,o=s.path.join(".");if(!r[o]){if("unionErrors"in s){var l=s.unionErrors[0].errors[0];r[o]={message:l.message,type:l.code}}else r[o]={message:n,type:i}}if("unionErrors"in s&&s.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var u=r[o].types,d=u&&u[s.code];r[o]=(0,a.KN)(o,t,r,i,d?[].concat(d,s.message):s.message)}e.shift()}return r},l=function(e,t,r){return void 0===r&&(r={}),function(a,s,l){try{return Promise.resolve(function(s,n){try{var o=Promise.resolve(e["sync"===r.mode?"parse":"parseAsync"](a,t)).then(function(e){return l.shouldUseNativeValidation&&i({},l),{errors:{},values:r.raw?a:e}})}catch(e){return n(e)}return o&&o.then?o.then(void 0,n):o}(0,function(e){if(null!=e.errors)return{values:{},errors:n(o(e.errors,!l.shouldUseNativeValidation&&"all"===l.criteriaMode),l)};throw e}))}catch(e){return Promise.reject(e)}}}},19700:function(e,t,r){r.d(t,{KN:function(){return V},U2:function(){return v},cI:function(){return em},t8:function(){return N}});var a=r(86006),s=e=>"checkbox"===e.type,i=e=>e instanceof Date,n=e=>null==e;let o=e=>"object"==typeof e;var l=e=>!n(e)&&!Array.isArray(e)&&o(e)&&!i(e),u=e=>l(e)&&e.target?s(e.target)?e.target.checked:e.target.value:e,d=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,c=(e,t)=>e.has(d(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},p="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function h(e){let t;let r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(p&&(e instanceof Blob||e instanceof FileList))&&(r||l(e))))return e;else if(t=r?[]:{},Array.isArray(e)||f(e))for(let r in e)t[r]=h(e[r]);else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],y=e=>void 0===e,v=(e,t,r)=>{if(!t||!l(e))return r;let a=m(t.split(/[,[\].]+?/)).reduce((e,t)=>n(e)?e:e[t],e);return y(a)||a===e?y(e[t])?r:e[t]:a};let g={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},_={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},b={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};a.createContext(null);var x=(e,t,r,a=!0)=>{let s={defaultValues:t._defaultValues};for(let i in e)Object.defineProperty(s,i,{get:()=>(t._proxyFormState[i]!==_.all&&(t._proxyFormState[i]=!a||_.all),r&&(r[i]=!0),e[i])});return s},w=e=>l(e)&&!Object.keys(e).length,k=(e,t,r,a)=>{r(e);let{name:s,...i}=e;return w(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(e=>t[e]===(!a||_.all))},Z=e=>Array.isArray(e)?e:[e],S=e=>"string"==typeof e,T=(e,t,r,a,s)=>S(e)?(a&&t.watch.add(e),v(r,e,s)):Array.isArray(e)?e.map(e=>(a&&t.watch.add(e),v(r,e))):(a&&(t.watchAll=!0),r),A=e=>/^\w*$/.test(e),O=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function N(e,t,r){let a=-1,s=A(t)?[t]:O(t),i=s.length,n=i-1;for(;++at?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[a]:s||!0}}:{};let E=(e,t,r)=>{for(let a of r||Object.keys(e)){let r=v(e,a);if(r){let{_f:e,...a}=r;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else l(a)&&E(a,t)}}};var j=e=>({isOnSubmit:!e||e===_.onSubmit,isOnBlur:e===_.onBlur,isOnChange:e===_.onChange,isOnAll:e===_.all,isOnTouch:e===_.onTouched}),I=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),C=(e,t,r)=>{let a=m(v(e,r));return N(a,"root",t[r]),N(e,r,a),e},D=e=>"boolean"==typeof e,P=e=>"file"===e.type,z=e=>"function"==typeof e,F=e=>{if(!p)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},R=e=>S(e),M=e=>"radio"===e.type,L=e=>e instanceof RegExp;let U={value:!1,isValid:!1},B={value:!0,isValid:!0};var $=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!y(e[0].attributes.value)?y(e[0].value)||""===e[0].value?B:{value:e[0].value,isValid:!0}:B:U}return U};let K={isValid:!1,value:null};var W=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,K):K;function q(e,t,r="validate"){if(R(e)||Array.isArray(e)&&e.every(R)||D(e)&&!e)return{type:r,message:R(e)?e:"",ref:t}}var H=e=>l(e)&&!L(e)?e:{value:e,message:""},J=async(e,t,r,a,i)=>{let{ref:o,refs:u,required:d,maxLength:c,minLength:f,min:p,max:h,pattern:m,validate:g,name:_,valueAsNumber:x,mount:k,disabled:Z}=e._f,T=v(t,_);if(!k||Z)return{};let A=u?u[0]:o,O=e=>{a&&A.reportValidity&&(A.setCustomValidity(D(e)?"":e||""),A.reportValidity())},N={},E=M(o),j=s(o),I=(x||P(o))&&y(o.value)&&y(T)||F(o)&&""===o.value||""===T||Array.isArray(T)&&!T.length,C=V.bind(null,_,r,N),U=(e,t,r,a=b.maxLength,s=b.minLength)=>{let i=e?t:r;N[_]={type:e?a:s,message:i,ref:o,...C(e?a:s,i)}};if(i?!Array.isArray(T)||!T.length:d&&(!(E||j)&&(I||n(T))||D(T)&&!T||j&&!$(u).isValid||E&&!W(u).isValid)){let{value:e,message:t}=R(d)?{value:!!d,message:d}:H(d);if(e&&(N[_]={type:b.required,message:t,ref:A,...C(b.required,t)},!r))return O(t),N}if(!I&&(!n(p)||!n(h))){let e,t;let a=H(h),s=H(p);if(n(T)||isNaN(T)){let r=o.valueAsDate||new Date(T),i=e=>new Date(new Date().toDateString()+" "+e),n="time"==o.type,l="week"==o.type;S(a.value)&&T&&(e=n?i(T)>i(a.value):l?T>a.value:r>new Date(a.value)),S(s.value)&&T&&(t=n?i(T)a.value),n(s.value)||(t=r+e.value,s=!n(t.value)&&T.length<+t.value;if((a||s)&&(U(a,e.message,t.message),!r))return O(N[_].message),N}if(m&&!I&&S(T)){let{value:e,message:t}=H(m);if(L(e)&&!T.match(e)&&(N[_]={type:b.pattern,message:t,ref:o,...C(b.pattern,t)},!r))return O(t),N}if(g){if(z(g)){let e=await g(T,t),a=q(e,A);if(a&&(N[_]={...a,...C(b.validate,a.message)},!r))return O(a.message),N}else if(l(g)){let e={};for(let a in g){if(!w(e)&&!r)break;let s=q(await g[a](T,t),A,a);s&&(e={...s,...C(a,s.message)},O(s.message),r&&(N[_]=e))}if(!w(e)&&(N[_]={ref:A,...e},!r))return N}}return O(!0),N};function Y(e,t){let r=Array.isArray(t)?t:A(t)?[t]:O(t),a=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,a=0;for(;a{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var Q=e=>n(e)||!o(e);function X(e,t){if(Q(e)||Q(t))return e===t;if(i(e)&&i(t))return e.getTime()===t.getTime();let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let s of r){let r=e[s];if(!a.includes(s))return!1;if("ref"!==s){let e=t[s];if(i(r)&&i(e)||l(r)&&l(e)||Array.isArray(r)&&Array.isArray(e)?!X(r,e):r!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>M(e)||s(e),er=e=>F(e)&&e.isConnected,ea=e=>{for(let t in e)if(z(e[t]))return!0;return!1};function es(e,t={}){let r=Array.isArray(e);if(l(e)||r)for(let r in e)Array.isArray(e[r])||l(e[r])&&!ea(e[r])?(t[r]=Array.isArray(e[r])?[]:{},es(e[r],t[r])):n(e[r])||(t[r]=!0);return t}var ei=(e,t)=>(function e(t,r,a){let s=Array.isArray(t);if(l(t)||s)for(let s in t)Array.isArray(t[s])||l(t[s])&&!ea(t[s])?y(r)||Q(a[s])?a[s]=Array.isArray(t[s])?es(t[s],[]):{...es(t[s])}:e(t[s],n(r)?{}:r[s],a[s]):a[s]=!X(t[s],r[s]);return a})(e,t,es(t)),en=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:a})=>y(e)?e:t?""===e?NaN:e?+e:e:r&&S(e)?new Date(e):a?a(e):e;function eo(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:P(t)?t.files:M(t)?W(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):s(t)?$(e.refs).value:en(y(t.value)?e.ref.value:t.value,e)}var el=(e,t,r,a)=>{let s={};for(let r of e){let e=v(t,r);e&&N(s,r,e._f)}return{criteriaMode:r,names:[...e],fields:s,shouldUseNativeValidation:a}},eu=e=>y(e)?e:L(e)?e.source:l(e)?L(e.value)?e.value.source:e.value:e,ed=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ec(e,t,r){let a=v(e,r);if(a||A(r))return{error:a,name:r};let s=r.split(".");for(;s.length;){let a=s.join("."),i=v(t,a),n=v(e,a);if(i&&!Array.isArray(i)&&r!==a)break;if(n&&n.type)return{name:a,error:n};s.pop()}return{name:r}}var ef=(e,t,r,a,s)=>!s.isOnAll&&(!r&&s.isOnTouch?!(t||e):(r?a.isOnBlur:s.isOnBlur)?!e:(r?!a.isOnChange:!s.isOnChange)||e),ep=(e,t)=>!m(v(e,t)).length&&Y(e,t);let eh={mode:_.onSubmit,reValidateMode:_.onChange,shouldFocusError:!0};function em(e={}){let t=a.useRef(),[r,o]=a.useState({isDirty:!1,isValidating:!1,isLoading:z(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:z(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let r,a={...eh,...e},o={submitCount:0,isDirty:!1,isLoading:z(a.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},d={},f=(l(a.defaultValues)||l(a.values))&&h(a.defaultValues||a.values)||{},b=a.shouldUnregister?{}:h(f),x={action:!1,mount:!1,watch:!1},k={mount:new Set,unMount:new Set,array:new Set,watch:new Set},A=0,O={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},V={values:G(),array:G(),state:G()},R=e.resetOptions&&e.resetOptions.keepDirtyValues,M=j(a.mode),L=j(a.reValidateMode),U=a.criteriaMode===_.all,B=e=>t=>{clearTimeout(A),A=setTimeout(e,t)},$=async e=>{if(O.isValid||e){let e=a.resolver?w((await es()).errors):await ey(d,!0);e!==o.isValid&&V.state.next({isValid:e})}},K=e=>O.isValidating&&V.state.next({isValidating:e}),W=(e,t)=>{N(o.errors,e,t),V.state.next({errors:o.errors})},q=(e,t,r,a)=>{let s=v(d,e);if(s){let i=v(b,e,y(r)?v(f,e):r);y(i)||a&&a.defaultChecked||t?N(b,e,t?i:eo(s._f)):e_(e,i),x.mount&&$()}},H=(e,t,r,a,s)=>{let i=!1,n=!1,l={name:e};if(!r||a){O.isDirty&&(n=o.isDirty,o.isDirty=l.isDirty=ev(),i=n!==l.isDirty);let r=X(v(f,e),t);n=v(o.dirtyFields,e),r?Y(o.dirtyFields,e):N(o.dirtyFields,e,!0),l.dirtyFields=o.dirtyFields,i=i||O.dirtyFields&&!r!==n}if(r){let t=v(o.touchedFields,e);t||(N(o.touchedFields,e,r),l.touchedFields=o.touchedFields,i=i||O.touchedFields&&t!==r)}return i&&s&&V.state.next(l),i?l:{}},ea=(t,a,s,i)=>{let n=v(o.errors,t),l=O.isValid&&D(a)&&o.isValid!==a;if(e.delayError&&s?(r=B(()=>W(t,s)))(e.delayError):(clearTimeout(A),r=null,s?N(o.errors,t,s):Y(o.errors,t)),(s?!X(n,s):n)||!w(i)||l){let e={...i,...l&&D(a)?{isValid:a}:{},errors:o.errors,name:t};o={...o,...e},V.state.next(e)}K(!1)},es=async e=>a.resolver(b,a.context,el(e||k.mount,d,a.criteriaMode,a.shouldUseNativeValidation)),em=async e=>{let{errors:t}=await es();if(e)for(let r of e){let e=v(t,r);e?N(o.errors,r,e):Y(o.errors,r)}else o.errors=t;return t},ey=async(e,t,r={valid:!0})=>{for(let s in e){let i=e[s];if(i){let{_f:e,...s}=i;if(e){let s=k.array.has(e.name),n=await J(i,b,U,a.shouldUseNativeValidation&&!t,s);if(n[e.name]&&(r.valid=!1,t))break;t||(v(n,e.name)?s?C(o.errors,n,e.name):N(o.errors,e.name,n[e.name]):Y(o.errors,e.name))}s&&await ey(s,t,r)}}return r.valid},ev=(e,t)=>(e&&t&&N(b,e,t),!X(eZ(),f)),eg=(e,t,r)=>T(e,k,{...x.mount?b:y(t)?f:S(e)?{[e]:t}:t},r,t),e_=(e,t,r={})=>{let a=v(d,e),i=t;if(a){let r=a._f;r&&(r.disabled||N(b,e,en(t,r)),i=F(r.ref)&&n(t)?"":t,ee(r.ref)?[...r.ref.options].forEach(e=>e.selected=i.includes(e.value)):r.refs?s(r.ref)?r.refs.length>1?r.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find(t=>t===e.value):i===e.value)):r.refs[0]&&(r.refs[0].checked=!!i):r.refs.forEach(e=>e.checked=e.value===i):P(r.ref)?r.ref.value="":(r.ref.value=i,r.ref.type||V.values.next({name:e,values:{...b}})))}(r.shouldDirty||r.shouldTouch)&&H(e,i,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&ek(e)},eb=(e,t,r)=>{for(let a in t){let s=t[a],n=`${e}.${a}`,o=v(d,n);!k.array.has(e)&&Q(s)&&(!o||o._f)||i(s)?e_(n,s,r):eb(n,s,r)}},ex=(e,r,a={})=>{let s=v(d,e),i=k.array.has(e),l=h(r);N(b,e,l),i?(V.array.next({name:e,values:{...b}}),(O.isDirty||O.dirtyFields)&&a.shouldDirty&&V.state.next({name:e,dirtyFields:ei(f,b),isDirty:ev(e,l)})):!s||s._f||n(l)?e_(e,l,a):eb(e,l,a),I(e,k)&&V.state.next({...o}),V.values.next({name:e,values:{...b}}),x.mount||t()},ew=async e=>{let t=e.target,s=t.name,i=!0,n=v(d,s);if(n){let l,c;let f=t.type?eo(n._f):u(e),p=e.type===g.BLUR||e.type===g.FOCUS_OUT,h=!ed(n._f)&&!a.resolver&&!v(o.errors,s)&&!n._f.deps||ef(p,v(o.touchedFields,s),o.isSubmitted,L,M),m=I(s,k,p);N(b,s,f),p?(n._f.onBlur&&n._f.onBlur(e),r&&r(0)):n._f.onChange&&n._f.onChange(e);let y=H(s,f,p,!1),_=!w(y)||m;if(p||V.values.next({name:s,type:e.type,values:{...b}}),h)return O.isValid&&$(),_&&V.state.next({name:s,...m?{}:y});if(!p&&m&&V.state.next({...o}),K(!0),a.resolver){let{errors:e}=await es([s]),t=ec(o.errors,d,s),r=ec(e,d,t.name||s);l=r.error,s=r.name,c=w(e)}else l=(await J(n,b,U,a.shouldUseNativeValidation))[s],(i=isNaN(f)||f===v(b,s,f))&&(l?c=!1:O.isValid&&(c=await ey(d,!0)));i&&(n._f.deps&&ek(n._f.deps),ea(s,c,l,y))}},ek=async(e,t={})=>{let r,s;let i=Z(e);if(K(!0),a.resolver){let t=await em(y(e)?e:i);r=w(t),s=e?!i.some(e=>v(t,e)):r}else e?((s=(await Promise.all(i.map(async e=>{let t=v(d,e);return await ey(t&&t._f?{[e]:t}:t)}))).every(Boolean))||o.isValid)&&$():s=r=await ey(d);return V.state.next({...!S(e)||O.isValid&&r!==o.isValid?{}:{name:e},...a.resolver||!e?{isValid:r}:{},errors:o.errors,isValidating:!1}),t.shouldFocus&&!s&&E(d,e=>e&&v(o.errors,e),e?i:k.mount),s},eZ=e=>{let t={...f,...x.mount?b:{}};return y(e)?t:S(e)?v(t,e):e.map(e=>v(t,e))},eS=(e,t)=>({invalid:!!v((t||o).errors,e),isDirty:!!v((t||o).dirtyFields,e),isTouched:!!v((t||o).touchedFields,e),error:v((t||o).errors,e)}),eT=(e,t={})=>{for(let r of e?Z(e):k.mount)k.mount.delete(r),k.array.delete(r),t.keepValue||(Y(d,r),Y(b,r)),t.keepError||Y(o.errors,r),t.keepDirty||Y(o.dirtyFields,r),t.keepTouched||Y(o.touchedFields,r),a.shouldUnregister||t.keepDefaultValue||Y(f,r);V.values.next({values:{...b}}),V.state.next({...o,...t.keepDirty?{isDirty:ev()}:{}}),t.keepIsValid||$()},eA=(e,t={})=>{let r=v(d,e),s=D(t.disabled);return N(d,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),k.mount.add(e),r?s&&N(b,e,t.disabled?void 0:v(b,e,eo(r._f))):q(e,!0,t.value),{...s?{disabled:t.disabled}:{},...a.shouldUseNativeValidation?{required:!!t.required,min:eu(t.min),max:eu(t.max),minLength:eu(t.minLength),maxLength:eu(t.maxLength),pattern:eu(t.pattern)}:{},name:e,onChange:ew,onBlur:ew,ref:s=>{if(s){eA(e,t),r=v(d,e);let a=y(s.value)&&s.querySelectorAll&&s.querySelectorAll("input,select,textarea")[0]||s,i=et(a),n=r._f.refs||[];(i?n.find(e=>e===a):a===r._f.ref)||(N(d,e,{_f:{...r._f,...i?{refs:[...n.filter(er),a,...Array.isArray(v(f,e))?[{}]:[]],ref:{type:a.type,name:e}}:{ref:a}}}),q(e,!1,void 0,a))}else(r=v(d,e,{}))._f&&(r._f.mount=!1),(a.shouldUnregister||t.shouldUnregister)&&!(c(k.array,e)&&x.action)&&k.unMount.add(e)}}},eO=()=>a.shouldFocusError&&E(d,e=>e&&v(o.errors,e),k.mount),eN=(r,a={})=>{let s=r||f,i=h(s),n=r&&!w(r)?i:f;if(a.keepDefaultValues||(f=s),!a.keepValues){if(a.keepDirtyValues||R)for(let e of k.mount)v(o.dirtyFields,e)?N(n,e,v(b,e)):ex(e,v(n,e));else{if(p&&y(r))for(let e of k.mount){let t=v(d,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(F(e)){let t=e.closest("form");if(t){t.reset();break}}}}d={}}b=e.shouldUnregister?a.keepDefaultValues?h(f):{}:i,V.array.next({values:{...n}}),V.values.next({values:{...n}})}k={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},x.mount||t(),x.mount=!O.isValid||!!a.keepIsValid,x.watch=!!e.shouldUnregister,V.state.next({submitCount:a.keepSubmitCount?o.submitCount:0,isDirty:a.keepDirty?o.isDirty:!!(a.keepDefaultValues&&!X(r,f)),isSubmitted:!!a.keepIsSubmitted&&o.isSubmitted,dirtyFields:a.keepDirtyValues?o.dirtyFields:a.keepDefaultValues&&r?ei(f,r):{},touchedFields:a.keepTouched?o.touchedFields:{},errors:a.keepErrors?o.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eV=(e,t)=>eN(z(e)?e(b):e,t);return z(a.defaultValues)&&a.defaultValues().then(e=>{eV(e,a.resetOptions),V.state.next({isLoading:!1})}),{control:{register:eA,unregister:eT,getFieldState:eS,_executeSchema:es,_getWatch:eg,_getDirty:ev,_updateValid:$,_removeUnmounted:()=>{for(let e of k.unMount){let t=v(d,e);t&&(t._f.refs?t._f.refs.every(e=>!er(e)):!er(t._f.ref))&&eT(e)}k.unMount=new Set},_updateFieldArray:(e,t=[],r,a,s=!0,i=!0)=>{if(a&&r){if(x.action=!0,i&&Array.isArray(v(d,e))){let t=r(v(d,e),a.argA,a.argB);s&&N(d,e,t)}if(i&&Array.isArray(v(o.errors,e))){let t=r(v(o.errors,e),a.argA,a.argB);s&&N(o.errors,e,t),ep(o.errors,e)}if(O.touchedFields&&i&&Array.isArray(v(o.touchedFields,e))){let t=r(v(o.touchedFields,e),a.argA,a.argB);s&&N(o.touchedFields,e,t)}O.dirtyFields&&(o.dirtyFields=ei(f,b)),V.state.next({name:e,isDirty:ev(e,t),dirtyFields:o.dirtyFields,errors:o.errors,isValid:o.isValid})}else N(b,e,t)},_getFieldArray:t=>m(v(x.mount?b:f,t,e.shouldUnregister?v(f,t,[]):[])),_reset:eN,_updateFormState:e=>{o={...o,...e}},_subjects:V,_proxyFormState:O,get _fields(){return d},get _formValues(){return b},get _state(){return x},set _state(value){x=value},get _defaultValues(){return f},get _names(){return k},set _names(value){k=value},get _formState(){return o},set _formState(value){o=value},get _options(){return a},set _options(value){a={...a,...value}}},trigger:ek,register:eA,handleSubmit:(e,t)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let s=h(b);if(V.state.next({isSubmitting:!0}),a.resolver){let{errors:e,values:t}=await es();o.errors=e,s=t}else await ey(d);Y(o.errors,"root"),w(o.errors)?(V.state.next({errors:{}}),await e(s,r)):(t&&await t({...o.errors},r),eO(),setTimeout(eO)),V.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:w(o.errors),submitCount:o.submitCount+1,errors:o.errors})},watch:(e,t)=>z(e)?V.values.subscribe({next:r=>e(eg(void 0,t),r)}):eg(e,t,!0),setValue:ex,getValues:eZ,reset:eV,resetField:(e,t={})=>{v(d,e)&&(y(t.defaultValue)?ex(e,v(f,e)):(ex(e,t.defaultValue),N(f,e,t.defaultValue)),t.keepTouched||Y(o.touchedFields,e),t.keepDirty||(Y(o.dirtyFields,e),o.isDirty=t.defaultValue?ev(e,v(f,e)):ev()),!t.keepError&&(Y(o.errors,e),O.isValid&&$()),V.state.next({...o}))},clearErrors:e=>{e&&Z(e).forEach(e=>Y(o.errors,e)),V.state.next({errors:e?o.errors:{}})},unregister:eT,setError:(e,t,r)=>{let a=(v(d,e,{_f:{}})._f||{}).ref;N(o.errors,e,{...t,ref:a}),V.state.next({name:e,errors:o.errors,isValid:!1}),r&&r.shouldFocus&&a&&a.focus&&a.focus()},setFocus:(e,t={})=>{let r=v(d,e),a=r&&r._f;if(a){let e=a.refs?a.refs[0]:a.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eS}}(e,()=>o(e=>({...e}))),formState:r});let d=t.current.control;return d._options=e,!function(e){let t=a.useRef(e);t.current=e,a.useEffect(()=>{let r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}({subject:d._subjects.state,next:e=>{k(e,d._proxyFormState,d._updateFormState,!0)&&o({...d._formState})}}),a.useEffect(()=>{e.values&&!X(e.values,d._defaultValues)&&d._reset(e.values,d._options.resetOptions)},[e.values,d]),a.useEffect(()=>{d._state.mount||(d._updateValid(),d._state.mount=!0),d._state.watch&&(d._state.watch=!1,d._subjects.state.next({...d._formState})),d._removeUnmounted()}),t.current.formState=x(r,d),t.current}},92391:function(e,t,r){r.d(t,{z:function(){return eq}}),(eM=eB||(eB={})).assertEqual=e=>e,eM.assertIs=function(e){},eM.assertNever=function(e){throw Error()},eM.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},eM.getValidEnumValues=e=>{let t=eM.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let a of t)r[a]=e[a];return eM.objectValues(r)},eM.objectValues=e=>eM.objectKeys(e).map(function(t){return e[t]}),eM.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},eM.find=(e,t)=>{for(let r of e)if(t(r))return r},eM.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,eM.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},eM.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t;let a=eB.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),s=e=>{let t=typeof e;switch(t){case"undefined":return a.undefined;case"string":return a.string;case"number":return isNaN(e)?a.nan:a.number;case"boolean":return a.boolean;case"function":return a.function;case"bigint":return a.bigint;case"object":if(Array.isArray(e))return a.array;if(null===e)return a.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return a.promise;if("undefined"!=typeof Map&&e instanceof Map)return a.map;if("undefined"!=typeof Set&&e instanceof Set)return a.set;if("undefined"!=typeof Date&&e instanceof Date)return a.date;return a.object;default:return a.unknown}},i=eB.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of"]);class n extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},r={_errors:[]},a=e=>{for(let s of e.issues)if("invalid_union"===s.code)s.unionErrors.map(a);else if("invalid_return_type"===s.code)a(s.returnTypeError);else if("invalid_arguments"===s.code)a(s.argumentsError);else if(0===s.path.length)r._errors.push(t(s));else{let e=r,a=0;for(;ae.message){let t={},r=[];for(let a of this.issues)a.path.length>0?(t[a.path[0]]=t[a.path[0]]||[],t[a.path[0]].push(e(a))):r.push(e(a));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}n.create=e=>{let t=new n(e);return t};let o=(e,t)=>{let r;switch(e.code){case i.invalid_type:r=e.received===a.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case i.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,eB.jsonStringifyReplacer)}`;break;case i.unrecognized_keys:r=`Unrecognized key(s) in object: ${eB.joinValues(e.keys,", ")}`;break;case i.invalid_union:r="Invalid input";break;case i.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${eB.joinValues(e.options)}`;break;case i.invalid_enum_value:r=`Invalid enum value. Expected ${eB.joinValues(e.options)}, received '${e.received}'`;break;case i.invalid_arguments:r="Invalid function arguments";break;case i.invalid_return_type:r="Invalid function return type";break;case i.invalid_date:r="Invalid date";break;case i.invalid_string:"object"==typeof e.validation?"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:eB.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case i.too_small:r="array"===e.type?`Array must contain ${e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be greater than ${e.inclusive?"or equal to ":""}${e.minimum}`:"date"===e.type?`Date must be greater than ${e.inclusive?"or equal to ":""}${new Date(e.minimum)}`:"Invalid input";break;case i.too_big:r="array"===e.type?`Array must contain ${e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be less than ${e.inclusive?"or equal to ":""}${e.maximum}`:"date"===e.type?`Date must be smaller than ${e.inclusive?"or equal to ":""}${new Date(e.maximum)}`:"Invalid input";break;case i.custom:r="Invalid input";break;case i.invalid_intersection_types:r="Intersection results could not be merged";break;case i.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;default:r=t.defaultError,eB.assertNever(e)}return{message:r}},l=o,u=e=>{let{data:t,path:r,errorMaps:a,issueData:s}=e,i=[...r,...s.path||[]],n={...s,path:i},o="",l=a.filter(e=>!!e).slice().reverse();for(let e of l)o=e(n,{data:t,defaultError:o}).message;return{...s,path:i,message:s.message||o}};function d(e,t){let r=u({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,l,o].filter(e=>!!e)});e.common.issues.push(r)}class c{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let a of t){if("aborted"===a.status)return f;"dirty"===a.status&&e.dirty(),r.push(a.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t)r.push({key:await e.key,value:await e.value});return c.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let a of t){let{key:t,value:s}=a;if("aborted"===t.status||"aborted"===s.status)return f;"dirty"===t.status&&e.dirty(),"dirty"===s.status&&e.dirty(),(void 0!==s.value||a.alwaysSet)&&(r[t.value]=s.value)}return{status:e.value,value:r}}}let f=Object.freeze({status:"aborted"}),p=e=>({status:"valid",value:e}),h=e=>"aborted"===e.status,m=e=>"dirty"===e.status,y=e=>"valid"===e.status,v=e=>e instanceof Promise;(eL=e$||(e$={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},eL.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class g{constructor(e,t,r,a){this.parent=e,this.data=t,this._path=r,this._key=a}get path(){return this._path.concat(this._key)}}let _=(e,t)=>{if(y(t))return{success:!0,data:t.value};{if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");let t=new n(e.common.issues);return{success:!1,error:t}}};function b(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:a,description:s}=e;if(t&&(r||a))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:s}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=a?a:t.defaultError}:{message:null!=r?r:t.defaultError},description:s}}class x{constructor(e){this.spa=this.safeParseAsync,this.superRefine=this._refinement,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.default=this.default.bind(this),this.describe=this.describe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return s(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:s(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new c,ctx:{common:e.parent.common,data:e.data,parsedType:s(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(v(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let a={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:s(e)},i=this._parseSync({data:e,path:a.path,parent:a});return _(a,i)}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:s(e)},a=this._parse({data:e,path:[],parent:r}),i=await (v(a)?a:Promise.resolve(a));return _(r,i)}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,a)=>{let s=e(t),n=()=>a.addIssue({code:i.custom,...r(t)});return"undefined"!=typeof Promise&&s instanceof Promise?s.then(e=>!!e||(n(),!1)):!!s||(n(),!1)})}refinement(e,t){return this._refinement((r,a)=>!!e(r)||(a.addIssue("function"==typeof t?t(r,a):t),!1))}_refinement(e){return new X({schema:this,typeName:eW.ZodEffects,effect:{type:"refinement",refinement:e}})}optional(){return ee.create(this)}nullable(){return et.create(this)}nullish(){return this.optional().nullable()}array(){return P.create(this)}promise(){return Q.create(this)}or(e){return R.create([this,e])}and(e){return L.create(this,e)}transform(e){return new X({schema:this,typeName:eW.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new er({innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:eW.ZodDefault})}brand(){return new ei({typeName:eW.ZodBranded,type:this,...b(void 0)})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let w=/^c[^\s-]{8,}$/i,k=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,Z=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;class S extends x{constructor(){super(...arguments),this._regex=(e,t,r)=>this.refinement(t=>e.test(t),{validation:t,code:i.invalid_string,...e$.errToObj(r)}),this.nonempty=e=>this.min(1,e$.errToObj(e)),this.trim=()=>new S({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}_parse(e){let t;let r=this._getType(e);if(r!==a.string){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.string,received:t.parsedType}),f}let s=new c;for(let r of this._def.checks)if("min"===r.kind)e.data.lengthr.value&&(d(t=this._getOrReturnCtx(e,t),{code:i.too_big,maximum:r.value,type:"string",inclusive:!0,message:r.message}),s.dirty());else if("email"===r.kind)Z.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"email",code:i.invalid_string,message:r.message}),s.dirty());else if("uuid"===r.kind)k.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:i.invalid_string,message:r.message}),s.dirty());else if("cuid"===r.kind)w.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:i.invalid_string,message:r.message}),s.dirty());else if("url"===r.kind)try{new URL(e.data)}catch(a){d(t=this._getOrReturnCtx(e,t),{validation:"url",code:i.invalid_string,message:r.message}),s.dirty()}else if("regex"===r.kind){r.regex.lastIndex=0;let a=r.regex.test(e.data);a||(d(t=this._getOrReturnCtx(e,t),{validation:"regex",code:i.invalid_string,message:r.message}),s.dirty())}else"trim"===r.kind?e.data=e.data.trim():"startsWith"===r.kind?e.data.startsWith(r.value)||(d(t=this._getOrReturnCtx(e,t),{code:i.invalid_string,validation:{startsWith:r.value},message:r.message}),s.dirty()):"endsWith"===r.kind?e.data.endsWith(r.value)||(d(t=this._getOrReturnCtx(e,t),{code:i.invalid_string,validation:{endsWith:r.value},message:r.message}),s.dirty()):eB.assertNever(r);return{status:s.value,value:e.data}}_addCheck(e){return new S({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...e$.errToObj(e)})}url(e){return this._addCheck({kind:"url",...e$.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...e$.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...e$.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...e$.errToObj(t)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...e$.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...e$.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...e$.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...e$.errToObj(t)})}length(e,t){return this.min(e,t).max(e,t)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew S({checks:[],typeName:eW.ZodString,...b(e)});class T extends x{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;let r=this._getType(e);if(r!==a.number){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.number,received:t.parsedType}),f}let s=new c;for(let r of this._def.checks)if("int"===r.kind)eB.isInteger(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:i.invalid_type,expected:"integer",received:"float",message:r.message}),s.dirty());else if("min"===r.kind){let a=r.inclusive?e.datar.value:e.data>=r.value;a&&(d(t=this._getOrReturnCtx(e,t),{code:i.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,message:r.message}),s.dirty())}else"multipleOf"===r.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,a=(t.toString().split(".")[1]||"").length,s=r>a?r:a,i=parseInt(e.toFixed(s).replace(".","")),n=parseInt(t.toFixed(s).replace(".",""));return i%n/Math.pow(10,s)}(e.data,r.value)&&(d(t=this._getOrReturnCtx(e,t),{code:i.not_multiple_of,multipleOf:r.value,message:r.message}),s.dirty()):eB.assertNever(r);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,e$.toString(t))}gt(e,t){return this.setLimit("min",e,!1,e$.toString(t))}lte(e,t){return this.setLimit("max",e,!0,e$.toString(t))}lt(e,t){return this.setLimit("max",e,!1,e$.toString(t))}setLimit(e,t,r,a){return new T({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:e$.toString(a)}]})}_addCheck(e){return new T({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:e$.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:e$.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:e$.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:e$.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:e$.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:e$.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind)}}T.create=e=>new T({checks:[],typeName:eW.ZodNumber,...b(e)});class A extends x{_parse(e){let t=this._getType(e);if(t!==a.bigint){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.bigint,received:t.parsedType}),f}return p(e.data)}}A.create=e=>new A({typeName:eW.ZodBigInt,...b(e)});class O extends x{_parse(e){let t=this._getType(e);if(t!==a.boolean){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.boolean,received:t.parsedType}),f}return p(e.data)}}O.create=e=>new O({typeName:eW.ZodBoolean,...b(e)});class N extends x{_parse(e){let t;let r=this._getType(e);if(r!==a.date){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.date,received:t.parsedType}),f}if(isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_date}),f}let s=new c;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()r.value&&(d(t=this._getOrReturnCtx(e,t),{code:i.too_big,message:r.message,inclusive:!0,maximum:r.value,type:"date"}),s.dirty()):eB.assertNever(r);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new N({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:e$.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:e$.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew N({checks:[],typeName:eW.ZodDate,...b(e)});class V extends x{_parse(e){let t=this._getType(e);if(t!==a.undefined){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.undefined,received:t.parsedType}),f}return p(e.data)}}V.create=e=>new V({typeName:eW.ZodUndefined,...b(e)});class E extends x{_parse(e){let t=this._getType(e);if(t!==a.null){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.null,received:t.parsedType}),f}return p(e.data)}}E.create=e=>new E({typeName:eW.ZodNull,...b(e)});class j extends x{constructor(){super(...arguments),this._any=!0}_parse(e){return p(e.data)}}j.create=e=>new j({typeName:eW.ZodAny,...b(e)});class I extends x{constructor(){super(...arguments),this._unknown=!0}_parse(e){return p(e.data)}}I.create=e=>new I({typeName:eW.ZodUnknown,...b(e)});class C extends x{_parse(e){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.never,received:t.parsedType}),f}}C.create=e=>new C({typeName:eW.ZodNever,...b(e)});class D extends x{_parse(e){let t=this._getType(e);if(t!==a.undefined){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.void,received:t.parsedType}),f}return p(e.data)}}D.create=e=>new D({typeName:eW.ZodVoid,...b(e)});class P extends x{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),s=this._def;if(t.parsedType!==a.array)return d(t,{code:i.invalid_type,expected:a.array,received:t.parsedType}),f;if(null!==s.minLength&&t.data.lengths.maxLength.value&&(d(t,{code:i.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,message:s.maxLength.message}),r.dirty()),t.common.async)return Promise.all(t.data.map((e,r)=>s.type._parseAsync(new g(t,e,t.path,r)))).then(e=>c.mergeArray(r,e));let n=t.data.map((e,r)=>s.type._parseSync(new g(t,e,t.path,r)));return c.mergeArray(r,n)}get element(){return this._def.type}min(e,t){return new P({...this._def,minLength:{value:e,message:e$.toString(t)}})}max(e,t){return new P({...this._def,maxLength:{value:e,message:e$.toString(t)}})}length(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}P.create=(e,t)=>new P({type:e,minLength:null,maxLength:null,typeName:eW.ZodArray,...b(t)}),(eK||(eK={})).mergeShapes=(e,t)=>({...e,...t});let z=e=>t=>new F({...e,shape:()=>({...e.shape(),...t})});class F extends x{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=z(this._def),this.extend=z(this._def)}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=eB.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){let t=this._getType(e);if(t!==a.object){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.object,received:t.parsedType}),f}let{status:r,ctx:s}=this._processInputParams(e),{shape:n,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof C&&"strip"===this._def.unknownKeys))for(let e in s.data)o.includes(e)||l.push(e);let u=[];for(let e of o){let t=n[e],r=s.data[e];u.push({key:{status:"valid",value:e},value:t._parse(new g(s,r,s.path,e)),alwaysSet:e in s.data})}if(this._def.catchall instanceof C){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of l)u.push({key:{status:"valid",value:e},value:{status:"valid",value:s.data[e]}});else if("strict"===e)l.length>0&&(d(s,{code:i.unrecognized_keys,keys:l}),r.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of l){let r=s.data[t];u.push({key:{status:"valid",value:t},value:e._parse(new g(s,r,s.path,t)),alwaysSet:t in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of u){let r=await t.key;e.push({key:r,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>c.mergeObjectSync(r,e)):c.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(e){return e$.errToObj,new F({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var a,s,i,n;let o=null!==(i=null===(s=(a=this._def).errorMap)||void 0===s?void 0:s.call(a,t,r).message)&&void 0!==i?i:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(n=e$.errToObj(e).message)&&void 0!==n?n:o}:{message:o}}}:{}})}strip(){return new F({...this._def,unknownKeys:"strip"})}passthrough(){return new F({...this._def,unknownKeys:"passthrough"})}setKey(e,t){return this.augment({[e]:t})}merge(e){let t=new F({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>eK.mergeShapes(this._def.shape(),e._def.shape()),typeName:eW.ZodObject});return t}catchall(e){return new F({...this._def,catchall:e})}pick(e){let t={};return eB.objectKeys(e).map(e=>{this.shape[e]&&(t[e]=this.shape[e])}),new F({...this._def,shape:()=>t})}omit(e){let t={};return eB.objectKeys(this.shape).map(r=>{-1===eB.objectKeys(e).indexOf(r)&&(t[r]=this.shape[r])}),new F({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof F){let r={};for(let a in t.shape){let s=t.shape[a];r[a]=ee.create(e(s))}return new F({...t._def,shape:()=>r})}return t instanceof P?P.create(e(t.element)):t instanceof ee?ee.create(e(t.unwrap())):t instanceof et?et.create(e(t.unwrap())):t instanceof U?U.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};if(e)eB.objectKeys(this.shape).map(r=>{-1===eB.objectKeys(e).indexOf(r)?t[r]=this.shape[r]:t[r]=this.shape[r].optional()});else for(let e in this.shape){let r=this.shape[e];t[e]=r.optional()}return new F({...this._def,shape:()=>t})}required(){let e={};for(let t in this.shape){let r=this.shape[t],a=r;for(;a instanceof ee;)a=a._def.innerType;e[t]=a}return new F({...this._def,shape:()=>e})}keyof(){return J(eB.objectKeys(this.shape))}}F.create=(e,t)=>new F({shape:()=>e,unknownKeys:"strip",catchall:C.create(),typeName:eW.ZodObject,...b(t)}),F.strictCreate=(e,t)=>new F({shape:()=>e,unknownKeys:"strict",catchall:C.create(),typeName:eW.ZodObject,...b(t)}),F.lazycreate=(e,t)=>new F({shape:e,unknownKeys:"strip",catchall:C.create(),typeName:eW.ZodObject,...b(t)});class R extends x{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new n(e.ctx.common.issues));return d(t,{code:i.invalid_union,unionErrors:r}),f});{let e;let a=[];for(let s of r){let r={...t,common:{...t.common,issues:[]},parent:null},i=s._parseSync({data:t.data,path:t.path,parent:r});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:r}),r.common.issues.length&&a.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let s=a.map(e=>new n(e));return d(t,{code:i.invalid_union,unionErrors:s}),f}}get options(){return this._def.options}}R.create=(e,t)=>new R({options:e,typeName:eW.ZodUnion,...b(t)});class M extends x{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.object)return d(t,{code:i.invalid_type,expected:a.object,received:t.parsedType}),f;let r=this.discriminator,s=t.data[r],n=this.options.get(s);return n?t.common.async?n._parseAsync({data:t.data,path:t.path,parent:t}):n._parseSync({data:t.data,path:t.path,parent:t}):(d(t,{code:i.invalid_union_discriminator,options:this.validDiscriminatorValues,path:[r]}),f)}get discriminator(){return this._def.discriminator}get validDiscriminatorValues(){return Array.from(this.options.keys())}get options(){return this._def.options}static create(e,t,r){let a=new Map;try{t.forEach(t=>{let r=t.shape[e].value;a.set(r,t)})}catch(e){throw Error("The discriminator value could not be extracted from all the provided schemas")}if(a.size!==t.length)throw Error("Some of the discriminator values are not unique");return new M({typeName:eW.ZodDiscriminatedUnion,discriminator:e,options:a,...b(r)})}}class L extends x{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(h(e)||h(n))return f;let o=function e(t,r){let i=s(t),n=s(r);if(t===r)return{valid:!0,data:t};if(i===a.object&&n===a.object){let a=eB.objectKeys(r),s=eB.objectKeys(t).filter(e=>-1!==a.indexOf(e)),i={...t,...r};for(let a of s){let s=e(t[a],r[a]);if(!s.valid)return{valid:!1};i[a]=s.data}return{valid:!0,data:i}}if(i===a.array&&n===a.array){if(t.length!==r.length)return{valid:!1};let a=[];for(let s=0;sn(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}L.create=(e,t,r)=>new L({left:e,right:t,typeName:eW.ZodIntersection,...b(r)});class U extends x{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.array)return d(r,{code:i.invalid_type,expected:a.array,received:r.parsedType}),f;if(r.data.lengththis._def.items.length&&(d(r,{code:i.too_big,maximum:this._def.items.length,inclusive:!0,type:"array"}),t.dirty());let n=r.data.map((e,t)=>{let a=this._def.items[t]||this._def.rest;return a?a._parse(new g(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>c.mergeArray(t,e)):c.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new U({...this._def,rest:e})}}U.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new U({items:e,typeName:eW.ZodTuple,rest:null,...b(t)})};class B extends x{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.object)return d(r,{code:i.invalid_type,expected:a.object,received:r.parsedType}),f;let s=[],n=this._def.keyType,o=this._def.valueType;for(let e in r.data)s.push({key:n._parse(new g(r,e,r.path,e)),value:o._parse(new g(r,r.data[e],r.path,e))});return r.common.async?c.mergeObjectAsync(t,s):c.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(e,t,r){return new B(t instanceof x?{keyType:e,valueType:t,typeName:eW.ZodRecord,...b(r)}:{keyType:S.create(),valueType:e,typeName:eW.ZodRecord,...b(t)})}}class $ extends x{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.map)return d(r,{code:i.invalid_type,expected:a.map,received:r.parsedType}),f;let s=this._def.keyType,n=this._def.valueType,o=[...r.data.entries()].map(([e,t],a)=>({key:s._parse(new g(r,e,r.path,[a,"key"])),value:n._parse(new g(r,t,r.path,[a,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){let a=await r.key,s=await r.value;if("aborted"===a.status||"aborted"===s.status)return f;("dirty"===a.status||"dirty"===s.status)&&t.dirty(),e.set(a.value,s.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of o){let a=r.key,s=r.value;if("aborted"===a.status||"aborted"===s.status)return f;("dirty"===a.status||"dirty"===s.status)&&t.dirty(),e.set(a.value,s.value)}return{status:t.value,value:e}}}}$.create=(e,t,r)=>new $({valueType:t,keyType:e,typeName:eW.ZodMap,...b(r)});class K extends x{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.set)return d(r,{code:i.invalid_type,expected:a.set,received:r.parsedType}),f;let s=this._def;null!==s.minSize&&r.data.sizes.maxSize.value&&(d(r,{code:i.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,message:s.maxSize.message}),t.dirty());let n=this._def.valueType;function o(e){let r=new Set;for(let a of e){if("aborted"===a.status)return f;"dirty"===a.status&&t.dirty(),r.add(a.value)}return{status:t.value,value:r}}let l=[...r.data.values()].map((e,t)=>n._parse(new g(r,e,r.path,t)));return r.common.async?Promise.all(l).then(e=>o(e)):o(l)}min(e,t){return new K({...this._def,minSize:{value:e,message:e$.toString(t)}})}max(e,t){return new K({...this._def,maxSize:{value:e,message:e$.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}K.create=(e,t)=>new K({valueType:e,minSize:null,maxSize:null,typeName:eW.ZodSet,...b(t)});class W extends x{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.function)return d(t,{code:i.invalid_type,expected:a.function,received:t.parsedType}),f;function r(e,r){return u({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,l,o].filter(e=>!!e),issueData:{code:i.invalid_arguments,argumentsError:r}})}function s(e,r){return u({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,l,o].filter(e=>!!e),issueData:{code:i.invalid_return_type,returnTypeError:r}})}let c={errorMap:t.common.contextualErrorMap},h=t.data;return this._def.returns instanceof Q?p(async(...e)=>{let t=new n([]),a=await this._def.args.parseAsync(e,c).catch(a=>{throw t.addIssue(r(e,a)),t}),i=await h(...a),o=await this._def.returns._def.type.parseAsync(i,c).catch(e=>{throw t.addIssue(s(i,e)),t});return o}):p((...e)=>{let t=this._def.args.safeParse(e,c);if(!t.success)throw new n([r(e,t.error)]);let a=h(...t.data),i=this._def.returns.safeParse(a,c);if(!i.success)throw new n([s(a,i.error)]);return i.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new W({...this._def,args:U.create(e).rest(I.create())})}returns(e){return new W({...this._def,returns:e})}implement(e){let t=this.parse(e);return t}strictImplement(e){let t=this.parse(e);return t}static create(e,t,r){return new W({args:e||U.create([]).rest(I.create()),returns:t||I.create(),typeName:eW.ZodFunction,...b(r)})}}class q extends x{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.getter();return r._parse({data:t.data,path:t.path,parent:t})}}q.create=(e,t)=>new q({getter:e,typeName:eW.ZodLazy,...b(t)});class H extends x{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_literal,expected:this._def.value}),f}return{status:"valid",value:e.data}}get value(){return this._def.value}}function J(e,t){return new Y({values:e,typeName:eW.ZodEnum,...b(t)})}H.create=(e,t)=>new H({value:e,typeName:eW.ZodLiteral,...b(t)});class Y extends x{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return d(t,{expected:eB.joinValues(r),received:t.parsedType,code:i.invalid_type}),f}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return d(t,{received:t.data,code:i.invalid_enum_value,options:r}),f}return p(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}}Y.create=J;class G extends x{_parse(e){let t=eB.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==a.string&&r.parsedType!==a.number){let e=eB.objectValues(t);return d(r,{expected:eB.joinValues(e),received:r.parsedType,code:i.invalid_type}),f}if(-1===t.indexOf(e.data)){let e=eB.objectValues(t);return d(r,{received:r.data,code:i.invalid_enum_value,options:e}),f}return p(e.data)}get enum(){return this._def.values}}G.create=(e,t)=>new G({values:e,typeName:eW.ZodNativeEnum,...b(t)});class Q extends x{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.promise&&!1===t.common.async)return d(t,{code:i.invalid_type,expected:a.promise,received:t.parsedType}),f;let r=t.parsedType===a.promise?t.data:Promise.resolve(t.data);return p(r.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Q.create=(e,t)=>new Q({type:e,typeName:eW.ZodPromise,...b(t)});class X extends x{innerType(){return this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),a=this._def.effect||null;if("preprocess"===a.type){let e=a.transform(r.data);return r.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:r.path,parent:r})):this._def.schema._parseSync({data:e,path:r.path,parent:r})}let s={addIssue:e=>{d(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),"refinement"===a.type){let e=e=>{let t=a.refinement(e,s);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?f:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===a.status?f:("dirty"===a.status&&t.dirty(),e(a.value),{status:t.value,value:a.value})}}if("transform"===a.type){if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>y(e)?Promise.resolve(a.transform(e.value,s)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!y(e))return e;let i=a.transform(e.value,s);if(i instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}}eB.assertNever(a)}}X.create=(e,t,r)=>new X({schema:e,typeName:eW.ZodEffects,effect:t,...b(r)}),X.createWithPreprocess=(e,t,r)=>new X({schema:t,effect:{type:"preprocess",transform:e},typeName:eW.ZodEffects,...b(r)});class ee extends x{_parse(e){let t=this._getType(e);return t===a.undefined?p(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ee.create=(e,t)=>new ee({innerType:e,typeName:eW.ZodOptional,...b(t)});class et extends x{_parse(e){let t=this._getType(e);return t===a.null?p(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}et.create=(e,t)=>new et({innerType:e,typeName:eW.ZodNullable,...b(t)});class er extends x{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===a.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}er.create=(e,t)=>new ee({innerType:e,typeName:eW.ZodOptional,...b(t)});class ea extends x{_parse(e){let t=this._getType(e);if(t!==a.nan){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.nan,received:t.parsedType}),f}return{status:"valid",value:e.data}}}ea.create=e=>new ea({typeName:eW.ZodNaN,...b(e)});let es=Symbol("zod_brand");class ei extends x{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}let en=(e,t={},r)=>e?j.create().superRefine((a,s)=>{if(!e(a)){let e="function"==typeof t?t(a):t,i="string"==typeof e?{message:e}:e;s.addIssue({code:"custom",...i,fatal:r})}}):j.create(),eo={object:F.lazycreate};(eU=eW||(eW={})).ZodString="ZodString",eU.ZodNumber="ZodNumber",eU.ZodNaN="ZodNaN",eU.ZodBigInt="ZodBigInt",eU.ZodBoolean="ZodBoolean",eU.ZodDate="ZodDate",eU.ZodUndefined="ZodUndefined",eU.ZodNull="ZodNull",eU.ZodAny="ZodAny",eU.ZodUnknown="ZodUnknown",eU.ZodNever="ZodNever",eU.ZodVoid="ZodVoid",eU.ZodArray="ZodArray",eU.ZodObject="ZodObject",eU.ZodUnion="ZodUnion",eU.ZodDiscriminatedUnion="ZodDiscriminatedUnion",eU.ZodIntersection="ZodIntersection",eU.ZodTuple="ZodTuple",eU.ZodRecord="ZodRecord",eU.ZodMap="ZodMap",eU.ZodSet="ZodSet",eU.ZodFunction="ZodFunction",eU.ZodLazy="ZodLazy",eU.ZodLiteral="ZodLiteral",eU.ZodEnum="ZodEnum",eU.ZodEffects="ZodEffects",eU.ZodNativeEnum="ZodNativeEnum",eU.ZodOptional="ZodOptional",eU.ZodNullable="ZodNullable",eU.ZodDefault="ZodDefault",eU.ZodPromise="ZodPromise",eU.ZodBranded="ZodBranded";let el=S.create,eu=T.create,ed=ea.create,ec=A.create,ef=O.create,ep=N.create,eh=V.create,em=E.create,ey=j.create,ev=I.create,eg=C.create,e_=D.create,eb=P.create,ex=F.create,ew=F.strictCreate,ek=R.create,eZ=M.create,eS=L.create,eT=U.create,eA=B.create,eO=$.create,eN=K.create,eV=W.create,eE=q.create,ej=H.create,eI=Y.create,eC=G.create,eD=Q.create,eP=X.create,ez=ee.create,eF=et.create,eR=X.createWithPreprocess;var eM,eL,eU,eB,e$,eK,eW,eq=Object.freeze({__proto__:null,getParsedType:s,ZodParsedType:a,defaultErrorMap:o,setErrorMap:function(e){l=e},getErrorMap:function(){return l},makeIssue:u,EMPTY_PATH:[],addIssueToContext:d,ParseStatus:c,INVALID:f,DIRTY:e=>({status:"dirty",value:e}),OK:p,isAborted:h,isDirty:m,isValid:y,isAsync:v,ZodType:x,ZodString:S,ZodNumber:T,ZodBigInt:A,ZodBoolean:O,ZodDate:N,ZodUndefined:V,ZodNull:E,ZodAny:j,ZodUnknown:I,ZodNever:C,ZodVoid:D,ZodArray:P,get objectUtil(){return eK},ZodObject:F,ZodUnion:R,ZodDiscriminatedUnion:M,ZodIntersection:L,ZodTuple:U,ZodRecord:B,ZodMap:$,ZodSet:K,ZodFunction:W,ZodLazy:q,ZodLiteral:H,ZodEnum:Y,ZodNativeEnum:G,ZodPromise:Q,ZodEffects:X,ZodTransformer:X,ZodOptional:ee,ZodNullable:et,ZodDefault:er,ZodNaN:ea,BRAND:es,ZodBranded:ei,custom:en,Schema:x,ZodSchema:x,late:eo,get ZodFirstPartyTypeKind(){return eW},any:ey,array:eb,bigint:ec,boolean:ef,date:ep,discriminatedUnion:eZ,effect:eP,enum:eI,function:eV,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>en(t=>t instanceof e,t,!0),intersection:eS,lazy:eE,literal:ej,map:eO,nan:ed,nativeEnum:eC,never:eg,null:em,nullable:eF,number:eu,object:ex,oboolean:()=>ef().optional(),onumber:()=>eu().optional(),optional:ez,ostring:()=>el().optional(),preprocess:eR,promise:eD,record:eA,set:eN,strictObject:ew,string:el,transformer:eP,tuple:eT,undefined:eh,union:ek,unknown:ev,void:e_,NEVER:f,ZodIssueCode:i,quotelessJson:e=>{let t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")},ZodError:n})}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/256-f82130fbef33c4d6.js b/pilot/server/static/_next/static/chunks/796-efa6197beb2ead5e.js similarity index 74% rename from pilot/server/static/_next/static/chunks/256-f82130fbef33c4d6.js rename to pilot/server/static/_next/static/chunks/796-efa6197beb2ead5e.js index 53089fc2e..356a99225 100644 --- a/pilot/server/static/_next/static/chunks/256-f82130fbef33c4d6.js +++ b/pilot/server/static/_next/static/chunks/796-efa6197beb2ead5e.js @@ -1,7 +1,7 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[256],{1301:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.Z=i},40020:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}),"Article");t.Z=i},11515:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkMode");t.Z=i},66664:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4h-3.5z"}),"DeleteOutlineOutlined");t.Z=i},601:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");t.Z=i},98703:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12zM7 9h2v2H7zm8 0h2v2h-2zm-4 0h2v2h-2z"}),"SmsOutlined");t.Z=i},84892:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7 1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2v2.95zm-7.45-3.91 1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z"}),"WbSunny");t.Z=i},4882:function(e,t,r){"use strict";r.d(t,{Z:function(){return R}});var n=r(46750),o=r(40431),a=r(86006),i=r(89791),l=r(53832),s=r(44542),u=r(47562),c=r(50645),d=r(88930),f=r(47093),h=r(326),p=r(18587);function m(e){return(0,p.d6)("MuiListItem",e)}(0,p.sI)("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);var g=r(31242),v=r(76620),y=r(52058),b=r(10504);let P=a.createContext(void 0);var _=r(8189),w=r(9268);let S=["component","className","children","nested","sticky","variant","color","startAction","endAction","role","slots","slotProps"],x=e=>{let{sticky:t,nested:r,nesting:n,variant:o,color:a}=e,i={root:["root",r&&"nested",n&&"nesting",t&&"sticky",a&&`color${(0,l.Z)(a)}`,o&&`variant${(0,l.Z)(o)}`],startAction:["startAction"],endAction:["endAction"]};return(0,u.Z)(i,m,{})},C=(0,c.Z)("li",{name:"JoyListItem",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r;return[!t.nested&&{"--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItemButton-marginBlock":"calc(-1 * var(--ListItem-paddingY))",alignItems:"center",marginInline:"var(--ListItem-marginInline)"},t.nested&&{"--NestedList-marginRight":"calc(-1 * var(--ListItem-paddingRight))","--NestedList-marginLeft":"calc(-1 * var(--ListItem-paddingLeft))","--NestedListItem-paddingLeft":"calc(var(--ListItem-paddingLeft) + var(--List-nestedInsetStart))","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItem-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))",flexDirection:"column"},(0,o.Z)({"--unstable_actionRadius":"calc(var(--ListItem-radius) - var(--variant-borderWidth, 0px))"},t.startAction&&{"--unstable_startActionWidth":"2rem"},t.endAction&&{"--unstable_endActionWidth":"2.5rem"},{boxSizing:"border-box",borderRadius:"var(--ListItem-radius)",display:"flex",flex:"none",position:"relative",paddingBlockStart:t.nested?0:"var(--ListItem-paddingY)",paddingBlockEnd:t.nested?0:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)"},void 0===t["data-first-child"]&&(0,o.Z)({},t.row?{marginInlineStart:"var(--List-gap)"}:{marginBlockStart:"var(--List-gap)"}),t.row&&t.wrap&&{marginInlineStart:"var(--List-gap)",marginBlockStart:"var(--List-gap)"},{minBlockSize:"var(--ListItem-minHeight)",fontSize:"var(--ListItem-fontSize)",fontFamily:e.vars.fontFamily.body},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:"var(--ListItem-stickyBackground)"}),null==(r=e.variants[t.variant])?void 0:r[t.color]]}),O=(0,c.Z)("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",left:0,transform:"translate(var(--ListItem-startActionTranslateX), -50%)",zIndex:1})),j=(0,c.Z)("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",right:0,transform:"translate(var(--ListItem-endActionTranslateX), -50%)"})),E=a.forwardRef(function(e,t){let r=(0,d.Z)({props:e,name:"JoyListItem"}),l=a.useContext(_.Z),u=a.useContext(b.Z),c=a.useContext(v.Z),p=a.useContext(y.Z),m=a.useContext(g.Z),{component:E,className:R,children:I,nested:L=!1,sticky:M=!1,variant:k="plain",color:N="neutral",startAction:A,endAction:T,role:$,slots:H={},slotProps:B={}}=r,Z=(0,n.Z)(r,S),{getColor:z}=(0,f.VT)(k),D=z(e.color,N),[W,U]=a.useState(""),[F,q]=(null==u?void 0:u.split(":"))||["",""],V=E||(F&&!F.match(/^(ul|ol|menu)$/)?"div":void 0),G="menu"===l?"none":void 0;u&&(G=({menu:"none",menubar:"none",group:"presentation"})[q]),$&&(G=$);let X=(0,o.Z)({},r,{sticky:M,startAction:A,endAction:T,row:c,wrap:p,variant:k,color:D,nesting:m,nested:L,component:V,role:G}),K=x(X),J=(0,o.Z)({},Z,{component:V,slots:H,slotProps:B}),[Y,Q]=(0,h.Z)("root",{additionalProps:{role:G},ref:t,className:(0,i.Z)(K.root,R),elementType:C,externalForwardedProps:J,ownerState:X}),[ee,et]=(0,h.Z)("startAction",{className:K.startAction,elementType:O,externalForwardedProps:J,ownerState:X}),[er,en]=(0,h.Z)("endAction",{className:K.endAction,elementType:j,externalForwardedProps:J,ownerState:X});return(0,w.jsx)(P.Provider,{value:U,children:(0,w.jsx)(g.Z.Provider,{value:!!L&&(W||!0),children:(0,w.jsxs)(Y,(0,o.Z)({},Q,{children:[A&&(0,w.jsx)(ee,(0,o.Z)({},et,{children:A})),a.Children.map(I,(e,t)=>a.isValidElement(e)?a.cloneElement(e,(0,o.Z)({},0===t&&{"data-first-child":""},(0,s.Z)(e,["ListItem"])&&{component:e.props.component||"div"})):e),T&&(0,w.jsx)(er,(0,o.Z)({},en,{children:T}))]}))})})});E.muiName="ListItem";var R=E},64579:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(40431),o=r(46750),a=r(86006),i=r(89791),l=r(47562),s=r(50645),u=r(88930),c=r(18587);function d(e){return(0,c.d6)("MuiListItemContent",e)}(0,c.sI)("MuiListItemContent",["root"]);var f=r(326),h=r(9268);let p=["component","className","children","slots","slotProps"],m=()=>(0,l.Z)({root:["root"]},d,{}),g=(0,s.Z)("div",{name:"JoyListItemContent",slot:"Root",overridesResolver:(e,t)=>t.root})({flex:"1 1 auto",minWidth:0}),v=a.forwardRef(function(e,t){let r=(0,u.Z)({props:e,name:"JoyListItemContent"}),{component:a,className:l,children:s,slots:c={},slotProps:d={}}=r,v=(0,o.Z)(r,p),y=(0,n.Z)({},r),b=m(),P=(0,n.Z)({},v,{component:a,slots:c,slotProps:d}),[_,w]=(0,f.Z)("root",{ref:t,className:(0,i.Z)(b.root,l),elementType:g,externalForwardedProps:P,ownerState:y});return(0,h.jsx)(_,(0,n.Z)({},w,{children:s}))});var y=v},62921:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(46750),o=r(40431),a=r(86006),i=r(89791),l=r(47562),s=r(50645),u=r(88930),c=r(18587);function d(e){return(0,c.d6)("MuiListItemDecorator",e)}(0,c.sI)("MuiListItemDecorator",["root"]);var f=r(54438),h=r(326),p=r(9268);let m=["component","className","children","slots","slotProps"],g=()=>(0,l.Z)({root:["root"]},d,{}),v=(0,s.Z)("span",{name:"JoyListItemDecorator",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>(0,o.Z)({boxSizing:"border-box",display:"inline-flex",color:"var(--ListItemDecorator-color)"},"horizontal"===e.parentOrientation?{minInlineSize:"var(--ListItemDecorator-size)",alignItems:"center"}:{minBlockSize:"var(--ListItemDecorator-size)",justifyContent:"center"})),y=a.forwardRef(function(e,t){let r=(0,u.Z)({props:e,name:"JoyListItemDecorator"}),{component:l,className:s,children:c,slots:d={},slotProps:y={}}=r,b=(0,n.Z)(r,m),P=a.useContext(f.Z),_=(0,o.Z)({parentOrientation:P},r),w=g(),S=(0,o.Z)({},b,{component:l,slots:d,slotProps:y}),[x,C]=(0,h.Z)("root",{ref:t,className:(0,i.Z)(w.root,s),elementType:v,externalForwardedProps:S,ownerState:_});return(0,p.jsx)(x,(0,o.Z)({},C,{children:c}))});var b=y},20837:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return ej}});var o=r(90151),a=r(88101),i=r(86006),l=r(17583),s=r(34777),u=r(56222),c=r(27977),d=r(49132),f=r(8683),h=r.n(f),p=r(39112),m=r(50946),g=r(14108),v=e=>{let{type:t,children:r,prefixCls:n,buttonProps:o,close:a,autoFocus:l,emitEvent:s,quitOnNullishReturnValue:u,actionFn:c}=e,d=i.useRef(!1),f=i.useRef(null),[h,v]=(0,p.Z)(!1),y=function(){null==a||a.apply(void 0,arguments)};i.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{var e;null===(e=f.current)||void 0===e||e.focus()})),()=>{e&&clearTimeout(e)}},[]);let b=e=>{e&&e.then&&(v(!0),e.then(function(){v(!1,!0),y.apply(void 0,arguments),d.current=!1},e=>(v(!1,!0),d.current=!1,Promise.reject(e))))};return i.createElement(m.ZP,Object.assign({},(0,g.n)(t),{onClick:e=>{let t;if(!d.current){if(d.current=!0,!c){y();return}if(s){var r;if(t=c(e),u&&!((r=t)&&r.then)){d.current=!1,y(e);return}}else if(c.length)t=c(a),d.current=!1;else if(!(t=c())){y();return}b(t)}},loading:h,prefixCls:n},o,{ref:f}),r)},y=r(80716),b=r(6783),P=r(40431),_=r(60456),w=r(61085),S=r(88684),x=r(14071),C=r(53457),O=r(48580),j=r(42442);function E(e,t,r){var n=t;return!n&&r&&(n="".concat(e,"-").concat(r)),n}function R(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if("number"!=typeof r){var o=e.document;"number"!=typeof(r=o.documentElement[n])&&(r=o.body[n])}return r}var I=r(78641),L=i.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate}),M={width:0,height:0,overflow:"hidden",outline:"none"},k=i.forwardRef(function(e,t){var r,n,o,a=e.prefixCls,l=e.className,s=e.style,u=e.title,c=e.ariaId,d=e.footer,f=e.closable,p=e.closeIcon,m=e.onClose,g=e.children,v=e.bodyStyle,y=e.bodyProps,b=e.modalRender,_=e.onMouseDown,w=e.onMouseUp,x=e.holderRef,C=e.visible,O=e.forceRender,j=e.width,E=e.height,R=(0,i.useRef)(),I=(0,i.useRef)();i.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=R.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===I.current?R.current.focus():e||t!==R.current||I.current.focus()}}});var k={};void 0!==j&&(k.width=j),void 0!==E&&(k.height=E),d&&(r=i.createElement("div",{className:"".concat(a,"-footer")},d)),u&&(n=i.createElement("div",{className:"".concat(a,"-header")},i.createElement("div",{className:"".concat(a,"-title"),id:c},u))),f&&(o=i.createElement("button",{type:"button",onClick:m,"aria-label":"Close",className:"".concat(a,"-close")},p||i.createElement("span",{className:"".concat(a,"-close-x")})));var N=i.createElement("div",{className:"".concat(a,"-content")},o,n,i.createElement("div",(0,P.Z)({className:"".concat(a,"-body"),style:v},y),g),r);return i.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":u?c:null,"aria-modal":"true",ref:x,style:(0,S.Z)((0,S.Z)({},s),k),className:h()(a,l),onMouseDown:_,onMouseUp:w},i.createElement("div",{tabIndex:0,ref:R,style:M,"aria-hidden":"true"}),i.createElement(L,{shouldUpdate:C||O},b?b(N):N),i.createElement("div",{tabIndex:0,ref:I,style:M,"aria-hidden":"true"}))}),N=i.forwardRef(function(e,t){var r=e.prefixCls,n=e.title,o=e.style,a=e.className,l=e.visible,s=e.forceRender,u=e.destroyOnClose,c=e.motionName,d=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,m=(0,i.useRef)(),g=i.useState(),v=(0,_.Z)(g,2),y=v[0],b=v[1],w={};function x(){var e,t,r,n,o,a=(r={left:(t=(e=m.current).getBoundingClientRect()).left,top:t.top},o=(n=e.ownerDocument).defaultView||n.parentWindow,r.left+=R(o),r.top+=R(o,!0),r);b(p?"".concat(p.x-a.left,"px ").concat(p.y-a.top,"px"):"")}return y&&(w.transformOrigin=y),i.createElement(I.ZP,{visible:l,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:s,motionName:c,removeOnLeave:u,ref:m},function(l,s){var u=l.className,c=l.style;return i.createElement(k,(0,P.Z)({},e,{ref:t,title:n,ariaId:d,prefixCls:r,holderRef:s,style:(0,S.Z)((0,S.Z)((0,S.Z)({},c),o),w),className:h()(a,u)}))})});function A(e){var t=e.prefixCls,r=e.style,n=e.visible,o=e.maskProps,a=e.motionName;return i.createElement(I.ZP,{key:"mask",visible:n,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},function(e,n){var a=e.className,l=e.style;return i.createElement("div",(0,P.Z)({ref:n,style:(0,S.Z)((0,S.Z)({},l),r),className:h()("".concat(t,"-mask"),a)},o))})}function T(e){var t=e.prefixCls,r=void 0===t?"rc-dialog":t,n=e.zIndex,o=e.visible,a=void 0!==o&&o,l=e.keyboard,s=void 0===l||l,u=e.focusTriggerAfterClose,c=void 0===u||u,d=e.wrapStyle,f=e.wrapClassName,p=e.wrapProps,m=e.onClose,g=e.afterOpenChange,v=e.afterClose,y=e.transitionName,b=e.animation,w=e.closable,R=e.mask,I=void 0===R||R,L=e.maskTransitionName,M=e.maskAnimation,k=e.maskClosable,T=e.maskStyle,$=e.maskProps,H=e.rootClassName,B=(0,i.useRef)(),Z=(0,i.useRef)(),z=(0,i.useRef)(),D=i.useState(a),W=(0,_.Z)(D,2),U=W[0],F=W[1],q=(0,C.Z)();function V(e){null==m||m(e)}var G=(0,i.useRef)(!1),X=(0,i.useRef)(),K=null;return(void 0===k||k)&&(K=function(e){G.current?G.current=!1:Z.current===e.target&&V(e)}),(0,i.useEffect)(function(){a&&(F(!0),(0,x.Z)(Z.current,document.activeElement)||(B.current=document.activeElement))},[a]),(0,i.useEffect)(function(){return function(){clearTimeout(X.current)}},[]),i.createElement("div",(0,P.Z)({className:h()("".concat(r,"-root"),H)},(0,j.Z)(e,{data:!0})),i.createElement(A,{prefixCls:r,visible:I&&a,motionName:E(r,L,M),style:(0,S.Z)({zIndex:n},T),maskProps:$}),i.createElement("div",(0,P.Z)({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===O.Z.ESC){e.stopPropagation(),V(e);return}a&&e.keyCode===O.Z.TAB&&z.current.changeActive(!e.shiftKey)},className:h()("".concat(r,"-wrap"),f),ref:Z,onClick:K,style:(0,S.Z)((0,S.Z)({zIndex:n},d),{},{display:U?null:"none"})},p),i.createElement(N,(0,P.Z)({},e,{onMouseDown:function(){clearTimeout(X.current),G.current=!0},onMouseUp:function(){X.current=setTimeout(function(){G.current=!1})},ref:z,closable:void 0===w||w,ariaId:q,prefixCls:r,visible:a&&U,onClose:V,onVisibleChanged:function(e){if(e)!function(){if(!(0,x.Z)(Z.current,document.activeElement)){var e;null===(e=z.current)||void 0===e||e.focus()}}();else{if(F(!1),I&&B.current&&c){try{B.current.focus({preventScroll:!0})}catch(e){}B.current=null}U&&(null==v||v())}null==g||g(e)},motionName:E(r,y,b)}))))}N.displayName="Content";var $=function(e){var t=e.visible,r=e.getContainer,n=e.forceRender,o=e.destroyOnClose,a=void 0!==o&&o,l=e.afterClose,s=i.useState(t),u=(0,_.Z)(s,2),c=u[0],d=u[1];return(i.useEffect(function(){t&&d(!0)},[t]),n||!a||c)?i.createElement(w.Z,{open:t||n||c,autoDestroy:!1,getContainer:r,autoLock:t||c},i.createElement(T,(0,P.Z)({},e,{destroyOnClose:a,afterClose:function(){null==l||l(),d(!1)}}))):null};$.displayName="Dialog";var H=r(71693),B=r(79746),Z=r(21440),z=r(12381),D=r(31533),W=r(66255);function U(e,t){return i.createElement("span",{className:`${e}-close-x`},t||i.createElement(D.Z,{className:`${e}-close-icon`}))}let F=e=>{let{okText:t,okType:r="primary",cancelText:n,confirmLoading:o,onOk:a,onCancel:l,okButtonProps:s,cancelButtonProps:u}=e,[c]=(0,b.Z)("Modal",(0,W.A)());return i.createElement(i.Fragment,null,i.createElement(m.ZP,Object.assign({onClick:l},u),n||(null==c?void 0:c.cancelText)),i.createElement(m.ZP,Object.assign({},(0,g.n)(r),{loading:o,onClick:a},s),t||(null==c?void 0:c.okText)))};var q=r(98663),V=r(11717),G=r(29138);let X=new V.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),K=new V.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),J=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{antCls:r}=e,n=`${r}-fade`,o=t?"&":"";return[(0,G.R)(n,X,K,e.motionDurationMid,t),{[` +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[796],{1301:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.Z=i},40020:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}),"Article");t.Z=i},11515:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkMode");t.Z=i},66664:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4h-3.5z"}),"DeleteOutlineOutlined");t.Z=i},601:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");t.Z=i},98703:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12zM7 9h2v2H7zm8 0h2v2h-2zm-4 0h2v2h-2z"}),"SmsOutlined");t.Z=i},84892:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7 1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2v2.95zm-7.45-3.91 1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z"}),"WbSunny");t.Z=i},53047:function(e,t,r){"use strict";r.d(t,{Qh:function(){return _},ZP:function(){return x}});var n=r(46750),o=r(40431),a=r(86006),i=r(53832),l=r(99179),s=r(46319),u=r(47562),c=r(50645),d=r(88930),f=r(47093),h=r(326),p=r(18587);function m(e){return(0,p.d6)("MuiIconButton",e)}let g=(0,p.sI)("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg"]);var v=r(42858),y=r(9268);let b=["children","action","component","color","disabled","variant","size","slots","slotProps"],P=e=>{let{color:t,disabled:r,focusVisible:n,focusVisibleClassName:o,size:a,variant:l}=e,s={root:["root",r&&"disabled",n&&"focusVisible",l&&`variant${(0,i.Z)(l)}`,t&&`color${(0,i.Z)(t)}`,a&&`size${(0,i.Z)(a)}`]},c=(0,u.Z)(s,m,{});return n&&o&&(c.root+=` ${o}`),c},_=(0,c.Z)("button")(({theme:e,ownerState:t})=>{var r,n,a,i;return[(0,o.Z)({"--Icon-margin":"initial"},t.instanceSize&&{"--IconButton-size":({sm:"2rem",md:"2.5rem",lg:"3rem"})[t.instanceSize]},"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:e.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:e.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:e.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${e.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[e.focus.selector]:e.focus.default}),null==(r=e.variants[t.variant])?void 0:r[t.color],{"&:hover":{"@media (hover: hover)":null==(n=e.variants[`${t.variant}Hover`])?void 0:n[t.color]}},{"&:active":null==(a=e.variants[`${t.variant}Active`])?void 0:a[t.color]},{[`&.${g.disabled}`]:null==(i=e.variants[`${t.variant}Disabled`])?void 0:i[t.color]}]}),S=(0,c.Z)(_,{name:"JoyIconButton",slot:"Root",overridesResolver:(e,t)=>t.root})({}),w=a.forwardRef(function(e,t){var r;let i=(0,d.Z)({props:e,name:"JoyIconButton"}),{children:u,action:c,component:p="button",color:m="primary",disabled:g,variant:_="soft",size:w="md",slots:x={},slotProps:C={}}=i,O=(0,n.Z)(i,b),j=a.useContext(v.Z),I=e.variant||j.variant||_,E=e.size||j.size||w,{getColor:R}=(0,f.VT)(I),L=R(e.color,j.color||m),M=null!=(r=e.disabled)?r:j.disabled||g,k=a.useRef(null),N=(0,l.Z)(k,t),{focusVisible:T,setFocusVisible:A,getRootProps:$}=(0,s.Z)((0,o.Z)({},i,{disabled:M,rootRef:N}));a.useImperativeHandle(c,()=>({focusVisible:()=>{var e;A(!0),null==(e=k.current)||e.focus()}}),[A]);let z=(0,o.Z)({},i,{component:p,color:L,disabled:M,variant:I,size:E,focusVisible:T,instanceSize:e.size}),B=P(z),H=(0,o.Z)({},O,{component:p,slots:x,slotProps:C}),[Z,D]=(0,h.Z)("root",{ref:t,className:B.root,elementType:S,getSlotProps:$,externalForwardedProps:H,ownerState:z});return(0,y.jsx)(Z,(0,o.Z)({},D,{children:u}))});w.muiName="IconButton";var x=w},4882:function(e,t,r){"use strict";r.d(t,{Z:function(){return E}});var n=r(46750),o=r(40431),a=r(86006),i=r(89791),l=r(53832),s=r(44542),u=r(47562),c=r(50645),d=r(88930),f=r(47093),h=r(326),p=r(18587);function m(e){return(0,p.d6)("MuiListItem",e)}(0,p.sI)("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);var g=r(31242),v=r(76620),y=r(52058),b=r(10504);let P=a.createContext(void 0);var _=r(8189),S=r(9268);let w=["component","className","children","nested","sticky","variant","color","startAction","endAction","role","slots","slotProps"],x=e=>{let{sticky:t,nested:r,nesting:n,variant:o,color:a}=e,i={root:["root",r&&"nested",n&&"nesting",t&&"sticky",a&&`color${(0,l.Z)(a)}`,o&&`variant${(0,l.Z)(o)}`],startAction:["startAction"],endAction:["endAction"]};return(0,u.Z)(i,m,{})},C=(0,c.Z)("li",{name:"JoyListItem",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r;return[!t.nested&&{"--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItemButton-marginBlock":"calc(-1 * var(--ListItem-paddingY))",alignItems:"center",marginInline:"var(--ListItem-marginInline)"},t.nested&&{"--NestedList-marginRight":"calc(-1 * var(--ListItem-paddingRight))","--NestedList-marginLeft":"calc(-1 * var(--ListItem-paddingLeft))","--NestedListItem-paddingLeft":"calc(var(--ListItem-paddingLeft) + var(--List-nestedInsetStart))","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItem-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))",flexDirection:"column"},(0,o.Z)({"--unstable_actionRadius":"calc(var(--ListItem-radius) - var(--variant-borderWidth, 0px))"},t.startAction&&{"--unstable_startActionWidth":"2rem"},t.endAction&&{"--unstable_endActionWidth":"2.5rem"},{boxSizing:"border-box",borderRadius:"var(--ListItem-radius)",display:"flex",flex:"none",position:"relative",paddingBlockStart:t.nested?0:"var(--ListItem-paddingY)",paddingBlockEnd:t.nested?0:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)"},void 0===t["data-first-child"]&&(0,o.Z)({},t.row?{marginInlineStart:"var(--List-gap)"}:{marginBlockStart:"var(--List-gap)"}),t.row&&t.wrap&&{marginInlineStart:"var(--List-gap)",marginBlockStart:"var(--List-gap)"},{minBlockSize:"var(--ListItem-minHeight)",fontSize:"var(--ListItem-fontSize)",fontFamily:e.vars.fontFamily.body},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:"var(--ListItem-stickyBackground)"}),null==(r=e.variants[t.variant])?void 0:r[t.color]]}),O=(0,c.Z)("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",left:0,transform:"translate(var(--ListItem-startActionTranslateX), -50%)",zIndex:1})),j=(0,c.Z)("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",right:0,transform:"translate(var(--ListItem-endActionTranslateX), -50%)"})),I=a.forwardRef(function(e,t){let r=(0,d.Z)({props:e,name:"JoyListItem"}),l=a.useContext(_.Z),u=a.useContext(b.Z),c=a.useContext(v.Z),p=a.useContext(y.Z),m=a.useContext(g.Z),{component:I,className:E,children:R,nested:L=!1,sticky:M=!1,variant:k="plain",color:N="neutral",startAction:T,endAction:A,role:$,slots:z={},slotProps:B={}}=r,H=(0,n.Z)(r,w),{getColor:Z}=(0,f.VT)(k),D=Z(e.color,N),[W,U]=a.useState(""),[F,q]=(null==u?void 0:u.split(":"))||["",""],V=I||(F&&!F.match(/^(ul|ol|menu)$/)?"div":void 0),G="menu"===l?"none":void 0;u&&(G=({menu:"none",menubar:"none",group:"presentation"})[q]),$&&(G=$);let J=(0,o.Z)({},r,{sticky:M,startAction:T,endAction:A,row:c,wrap:p,variant:k,color:D,nesting:m,nested:L,component:V,role:G}),X=x(J),K=(0,o.Z)({},H,{component:V,slots:z,slotProps:B}),[Y,Q]=(0,h.Z)("root",{additionalProps:{role:G},ref:t,className:(0,i.Z)(X.root,E),elementType:C,externalForwardedProps:K,ownerState:J}),[ee,et]=(0,h.Z)("startAction",{className:X.startAction,elementType:O,externalForwardedProps:K,ownerState:J}),[er,en]=(0,h.Z)("endAction",{className:X.endAction,elementType:j,externalForwardedProps:K,ownerState:J});return(0,S.jsx)(P.Provider,{value:U,children:(0,S.jsx)(g.Z.Provider,{value:!!L&&(W||!0),children:(0,S.jsxs)(Y,(0,o.Z)({},Q,{children:[T&&(0,S.jsx)(ee,(0,o.Z)({},et,{children:T})),a.Children.map(R,(e,t)=>a.isValidElement(e)?a.cloneElement(e,(0,o.Z)({},0===t&&{"data-first-child":""},(0,s.Z)(e,["ListItem"])&&{component:e.props.component||"div"})):e),A&&(0,S.jsx)(er,(0,o.Z)({},en,{children:A}))]}))})})});I.muiName="ListItem";var E=I},64579:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(40431),o=r(46750),a=r(86006),i=r(89791),l=r(47562),s=r(50645),u=r(88930),c=r(18587);function d(e){return(0,c.d6)("MuiListItemContent",e)}(0,c.sI)("MuiListItemContent",["root"]);var f=r(326),h=r(9268);let p=["component","className","children","slots","slotProps"],m=()=>(0,l.Z)({root:["root"]},d,{}),g=(0,s.Z)("div",{name:"JoyListItemContent",slot:"Root",overridesResolver:(e,t)=>t.root})({flex:"1 1 auto",minWidth:0}),v=a.forwardRef(function(e,t){let r=(0,u.Z)({props:e,name:"JoyListItemContent"}),{component:a,className:l,children:s,slots:c={},slotProps:d={}}=r,v=(0,o.Z)(r,p),y=(0,n.Z)({},r),b=m(),P=(0,n.Z)({},v,{component:a,slots:c,slotProps:d}),[_,S]=(0,f.Z)("root",{ref:t,className:(0,i.Z)(b.root,l),elementType:g,externalForwardedProps:P,ownerState:y});return(0,h.jsx)(_,(0,n.Z)({},S,{children:s}))});var y=v},62921:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(46750),o=r(40431),a=r(86006),i=r(89791),l=r(47562),s=r(50645),u=r(88930),c=r(18587);function d(e){return(0,c.d6)("MuiListItemDecorator",e)}(0,c.sI)("MuiListItemDecorator",["root"]);var f=r(54438),h=r(326),p=r(9268);let m=["component","className","children","slots","slotProps"],g=()=>(0,l.Z)({root:["root"]},d,{}),v=(0,s.Z)("span",{name:"JoyListItemDecorator",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>(0,o.Z)({boxSizing:"border-box",display:"inline-flex",color:"var(--ListItemDecorator-color)"},"horizontal"===e.parentOrientation?{minInlineSize:"var(--ListItemDecorator-size)",alignItems:"center"}:{minBlockSize:"var(--ListItemDecorator-size)",justifyContent:"center"})),y=a.forwardRef(function(e,t){let r=(0,u.Z)({props:e,name:"JoyListItemDecorator"}),{component:l,className:s,children:c,slots:d={},slotProps:y={}}=r,b=(0,n.Z)(r,m),P=a.useContext(f.Z),_=(0,o.Z)({parentOrientation:P},r),S=g(),w=(0,o.Z)({},b,{component:l,slots:d,slotProps:y}),[x,C]=(0,h.Z)("root",{ref:t,className:(0,i.Z)(S.root,s),elementType:v,externalForwardedProps:w,ownerState:_});return(0,p.jsx)(x,(0,o.Z)({},C,{children:c}))});var b=y},20837:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return ej}});var o=r(90151),a=r(88101),i=r(86006),l=r(17583),s=r(34777),u=r(56222),c=r(27977),d=r(49132),f=r(8683),h=r.n(f),p=r(39112),m=r(50946),g=r(14108),v=e=>{let{type:t,children:r,prefixCls:n,buttonProps:o,close:a,autoFocus:l,emitEvent:s,quitOnNullishReturnValue:u,actionFn:c}=e,d=i.useRef(!1),f=i.useRef(null),[h,v]=(0,p.Z)(!1),y=function(){null==a||a.apply(void 0,arguments)};i.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{var e;null===(e=f.current)||void 0===e||e.focus()})),()=>{e&&clearTimeout(e)}},[]);let b=e=>{e&&e.then&&(v(!0),e.then(function(){v(!1,!0),y.apply(void 0,arguments),d.current=!1},e=>(v(!1,!0),d.current=!1,Promise.reject(e))))};return i.createElement(m.ZP,Object.assign({},(0,g.n)(t),{onClick:e=>{let t;if(!d.current){if(d.current=!0,!c){y();return}if(s){var r;if(t=c(e),u&&!((r=t)&&r.then)){d.current=!1,y(e);return}}else if(c.length)t=c(a),d.current=!1;else if(!(t=c())){y();return}b(t)}},loading:h,prefixCls:n},o,{ref:f}),r)},y=r(80716),b=r(6783),P=r(40431),_=r(60456),S=r(61085),w=r(88684),x=r(14071),C=r(53457),O=r(48580),j=r(42442);function I(e,t,r){var n=t;return!n&&r&&(n="".concat(e,"-").concat(r)),n}function E(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if("number"!=typeof r){var o=e.document;"number"!=typeof(r=o.documentElement[n])&&(r=o.body[n])}return r}var R=r(78641),L=i.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate}),M={width:0,height:0,overflow:"hidden",outline:"none"},k=i.forwardRef(function(e,t){var r,n,o,a=e.prefixCls,l=e.className,s=e.style,u=e.title,c=e.ariaId,d=e.footer,f=e.closable,p=e.closeIcon,m=e.onClose,g=e.children,v=e.bodyStyle,y=e.bodyProps,b=e.modalRender,_=e.onMouseDown,S=e.onMouseUp,x=e.holderRef,C=e.visible,O=e.forceRender,j=e.width,I=e.height,E=(0,i.useRef)(),R=(0,i.useRef)();i.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=E.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===R.current?E.current.focus():e||t!==E.current||R.current.focus()}}});var k={};void 0!==j&&(k.width=j),void 0!==I&&(k.height=I),d&&(r=i.createElement("div",{className:"".concat(a,"-footer")},d)),u&&(n=i.createElement("div",{className:"".concat(a,"-header")},i.createElement("div",{className:"".concat(a,"-title"),id:c},u))),f&&(o=i.createElement("button",{type:"button",onClick:m,"aria-label":"Close",className:"".concat(a,"-close")},p||i.createElement("span",{className:"".concat(a,"-close-x")})));var N=i.createElement("div",{className:"".concat(a,"-content")},o,n,i.createElement("div",(0,P.Z)({className:"".concat(a,"-body"),style:v},y),g),r);return i.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":u?c:null,"aria-modal":"true",ref:x,style:(0,w.Z)((0,w.Z)({},s),k),className:h()(a,l),onMouseDown:_,onMouseUp:S},i.createElement("div",{tabIndex:0,ref:E,style:M,"aria-hidden":"true"}),i.createElement(L,{shouldUpdate:C||O},b?b(N):N),i.createElement("div",{tabIndex:0,ref:R,style:M,"aria-hidden":"true"}))}),N=i.forwardRef(function(e,t){var r=e.prefixCls,n=e.title,o=e.style,a=e.className,l=e.visible,s=e.forceRender,u=e.destroyOnClose,c=e.motionName,d=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,m=(0,i.useRef)(),g=i.useState(),v=(0,_.Z)(g,2),y=v[0],b=v[1],S={};function x(){var e,t,r,n,o,a=(r={left:(t=(e=m.current).getBoundingClientRect()).left,top:t.top},o=(n=e.ownerDocument).defaultView||n.parentWindow,r.left+=E(o),r.top+=E(o,!0),r);b(p?"".concat(p.x-a.left,"px ").concat(p.y-a.top,"px"):"")}return y&&(S.transformOrigin=y),i.createElement(R.ZP,{visible:l,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:s,motionName:c,removeOnLeave:u,ref:m},function(l,s){var u=l.className,c=l.style;return i.createElement(k,(0,P.Z)({},e,{ref:t,title:n,ariaId:d,prefixCls:r,holderRef:s,style:(0,w.Z)((0,w.Z)((0,w.Z)({},c),o),S),className:h()(a,u)}))})});function T(e){var t=e.prefixCls,r=e.style,n=e.visible,o=e.maskProps,a=e.motionName;return i.createElement(R.ZP,{key:"mask",visible:n,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},function(e,n){var a=e.className,l=e.style;return i.createElement("div",(0,P.Z)({ref:n,style:(0,w.Z)((0,w.Z)({},l),r),className:h()("".concat(t,"-mask"),a)},o))})}function A(e){var t=e.prefixCls,r=void 0===t?"rc-dialog":t,n=e.zIndex,o=e.visible,a=void 0!==o&&o,l=e.keyboard,s=void 0===l||l,u=e.focusTriggerAfterClose,c=void 0===u||u,d=e.wrapStyle,f=e.wrapClassName,p=e.wrapProps,m=e.onClose,g=e.afterOpenChange,v=e.afterClose,y=e.transitionName,b=e.animation,S=e.closable,E=e.mask,R=void 0===E||E,L=e.maskTransitionName,M=e.maskAnimation,k=e.maskClosable,A=e.maskStyle,$=e.maskProps,z=e.rootClassName,B=(0,i.useRef)(),H=(0,i.useRef)(),Z=(0,i.useRef)(),D=i.useState(a),W=(0,_.Z)(D,2),U=W[0],F=W[1],q=(0,C.Z)();function V(e){null==m||m(e)}var G=(0,i.useRef)(!1),J=(0,i.useRef)(),X=null;return(void 0===k||k)&&(X=function(e){G.current?G.current=!1:H.current===e.target&&V(e)}),(0,i.useEffect)(function(){a&&(F(!0),(0,x.Z)(H.current,document.activeElement)||(B.current=document.activeElement))},[a]),(0,i.useEffect)(function(){return function(){clearTimeout(J.current)}},[]),i.createElement("div",(0,P.Z)({className:h()("".concat(r,"-root"),z)},(0,j.Z)(e,{data:!0})),i.createElement(T,{prefixCls:r,visible:R&&a,motionName:I(r,L,M),style:(0,w.Z)({zIndex:n},A),maskProps:$}),i.createElement("div",(0,P.Z)({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===O.Z.ESC){e.stopPropagation(),V(e);return}a&&e.keyCode===O.Z.TAB&&Z.current.changeActive(!e.shiftKey)},className:h()("".concat(r,"-wrap"),f),ref:H,onClick:X,style:(0,w.Z)((0,w.Z)({zIndex:n},d),{},{display:U?null:"none"})},p),i.createElement(N,(0,P.Z)({},e,{onMouseDown:function(){clearTimeout(J.current),G.current=!0},onMouseUp:function(){J.current=setTimeout(function(){G.current=!1})},ref:Z,closable:void 0===S||S,ariaId:q,prefixCls:r,visible:a&&U,onClose:V,onVisibleChanged:function(e){if(e)!function(){if(!(0,x.Z)(H.current,document.activeElement)){var e;null===(e=Z.current)||void 0===e||e.focus()}}();else{if(F(!1),R&&B.current&&c){try{B.current.focus({preventScroll:!0})}catch(e){}B.current=null}U&&(null==v||v())}null==g||g(e)},motionName:I(r,y,b)}))))}N.displayName="Content";var $=function(e){var t=e.visible,r=e.getContainer,n=e.forceRender,o=e.destroyOnClose,a=void 0!==o&&o,l=e.afterClose,s=i.useState(t),u=(0,_.Z)(s,2),c=u[0],d=u[1];return(i.useEffect(function(){t&&d(!0)},[t]),n||!a||c)?i.createElement(S.Z,{open:t||n||c,autoDestroy:!1,getContainer:r,autoLock:t||c},i.createElement(A,(0,P.Z)({},e,{destroyOnClose:a,afterClose:function(){null==l||l(),d(!1)}}))):null};$.displayName="Dialog";var z=r(71693),B=r(79746),H=r(21440),Z=r(12381),D=r(31533),W=r(66255);function U(e,t){return i.createElement("span",{className:`${e}-close-x`},t||i.createElement(D.Z,{className:`${e}-close-icon`}))}let F=e=>{let{okText:t,okType:r="primary",cancelText:n,confirmLoading:o,onOk:a,onCancel:l,okButtonProps:s,cancelButtonProps:u}=e,[c]=(0,b.Z)("Modal",(0,W.A)());return i.createElement(i.Fragment,null,i.createElement(m.ZP,Object.assign({onClick:l},u),n||(null==c?void 0:c.cancelText)),i.createElement(m.ZP,Object.assign({},(0,g.n)(r),{loading:o,onClick:a},s),t||(null==c?void 0:c.okText)))};var q=r(98663),V=r(11717),G=r(29138);let J=new V.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),X=new V.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),K=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{antCls:r}=e,n=`${r}-fade`,o=t?"&":"";return[(0,G.R)(n,J,X,e.motionDurationMid,t),{[` ${o}${n}-enter, ${o}${n}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${n}-leave`]:{animationTimingFunction:"linear"}}]};var Y=r(87270),Q=r(40650),ee=r(70721);function et(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}let er=e=>{let{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},et("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},et("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:J(e)}]},en=e=>{let{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,q.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},(0,q.Qy)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, + `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${n}-leave`]:{animationTimingFunction:"linear"}}]};var Y=r(87270),Q=r(40650),ee=r(70721);function et(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}let er=e=>{let{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},et("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},et("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:K(e)}]},en=e=>{let{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,q.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},(0,q.Qy)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},eo=e=>{let{componentCls:t}=e,r=`${t}-confirm`;return{[r]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${r}-body-wrapper`]:Object.assign({},(0,q.dF)()),[`${r}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${r}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,[`+ ${r}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${r}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${r}-title`]:{flex:1},[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${r}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${r}-error ${r}-body > ${e.iconCls}`]:{color:e.colorError},[`${r}-warning ${r}-body > ${e.iconCls}, - ${r}-confirm ${r}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${r}-info ${r}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${r}-success ${r}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},ea=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},ei=e=>{let{componentCls:t,antCls:r}=e,n=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[n]:{[`${r}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${n}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${n}-btns`]:{marginTop:e.marginLG}}}};var el=(0,Q.Z)("Modal",e=>{let t=e.padding,r=e.fontSizeHeading5,n=e.lineHeightHeading5,o=(0,ee.TS)(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:n*r+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight});return[en(o),eo(o),ea(o),er(o),e.wireframe&&ei(o),(0,Y._y)(o,"zoom")]},e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading})),es=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};(0,H.Z)()&&window.document.documentElement&&document.documentElement.addEventListener("click",e=>{n={x:e.pageX,y:e.pageY},setTimeout(()=>{n=null},100)},!0);var eu=e=>{var t;let{getPopupContainer:r,getPrefixCls:o,direction:a}=i.useContext(B.E_),l=t=>{let{onCancel:r}=e;null==r||r(t)},{prefixCls:s,className:u,rootClassName:c,open:d,wrapClassName:f,centered:p,getContainer:m,closeIcon:g,focusTriggerAfterClose:v=!0,visible:b,width:P=520,footer:_}=e,w=es(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose","visible","width","footer"]),S=o("modal",s),x=o(),[C,O]=el(S),j=h()(f,{[`${S}-centered`]:!!p,[`${S}-wrap-rtl`]:"rtl"===a}),E=void 0===_?i.createElement(F,Object.assign({},e,{onOk:t=>{let{onOk:r}=e;null==r||r(t)},onCancel:l})):_;return C(i.createElement(z.BR,null,i.createElement(Z.Ux,{status:!0,override:!0},i.createElement($,Object.assign({width:P},w,{getContainer:void 0===m?r:m,prefixCls:S,rootClassName:h()(O,c),wrapClassName:j,footer:E,visible:null!=d?d:b,mousePosition:null!==(t=w.mousePosition)&&void 0!==t?t:n,onClose:l,closeIcon:U(S,g),focusTriggerAfterClose:v,transitionName:(0,y.mL)(x,"zoom",e.transitionName),maskTransitionName:(0,y.mL)(x,"fade",e.maskTransitionName),className:h()(O,u)})))))};function ec(e){let{icon:t,onCancel:r,onOk:n,close:o,okText:a,okButtonProps:l,cancelText:f,cancelButtonProps:h,confirmPrefixCls:p,rootPrefixCls:m,type:g,okCancel:y,footer:P,locale:_}=e,w=t;if(!t&&null!==t)switch(g){case"info":w=i.createElement(d.Z,null);break;case"success":w=i.createElement(s.Z,null);break;case"error":w=i.createElement(u.Z,null);break;default:w=i.createElement(c.Z,null)}let S=e.okType||"primary",x=null!=y?y:"confirm"===g,C=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[O]=(0,b.Z)("Modal"),j=_||O,E=x&&i.createElement(v,{actionFn:r,close:o,autoFocus:"cancel"===C,buttonProps:h,prefixCls:`${m}-btn`},f||(null==j?void 0:j.cancelText));return i.createElement("div",{className:`${p}-body-wrapper`},i.createElement("div",{className:`${p}-body`},w,void 0===e.title?null:i.createElement("span",{className:`${p}-title`},e.title),i.createElement("div",{className:`${p}-content`},e.content)),void 0===P?i.createElement("div",{className:`${p}-btns`},E,i.createElement(v,{type:S,actionFn:n,close:o,autoFocus:"ok"===C,buttonProps:l,prefixCls:`${m}-btn`},a||(x?null==j?void 0:j.okText:null==j?void 0:j.justOkText))):P)}var ed=e=>{let{close:t,zIndex:r,afterClose:n,visible:o,open:a,keyboard:s,centered:u,getContainer:c,maskStyle:d,direction:f,prefixCls:p,wrapClassName:m,rootPrefixCls:g,iconPrefixCls:v,theme:b,bodyStyle:P,closable:_=!1,closeIcon:w,modalRender:S,focusTriggerAfterClose:x}=e,C=`${p}-confirm`,O=e.width||416,j=e.style||{},E=void 0===e.mask||e.mask,R=void 0!==e.maskClosable&&e.maskClosable,I=h()(C,`${C}-${e.type}`,{[`${C}-rtl`]:"rtl"===f},e.className);return i.createElement(l.ZP,{prefixCls:g,iconPrefixCls:v,direction:f,theme:b},i.createElement(eu,{prefixCls:p,className:I,wrapClassName:h()({[`${C}-centered`]:!!e.centered},m),onCancel:()=>null==t?void 0:t({triggerCancel:!0}),open:a,title:"",footer:null,transitionName:(0,y.mL)(g,"zoom",e.transitionName),maskTransitionName:(0,y.mL)(g,"fade",e.maskTransitionName),mask:E,maskClosable:R,maskStyle:d,style:j,bodyStyle:P,width:O,zIndex:r,afterClose:n,keyboard:s,centered:u,getContainer:c,closable:_,closeIcon:w,modalRender:S,focusTriggerAfterClose:x},i.createElement(ec,Object.assign({},e,{confirmPrefixCls:C}))))},ef=[],eh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let ep="";function em(e){let t;let r=document.createDocumentFragment(),n=Object.assign(Object.assign({},e),{close:c,open:!0});function s(){for(var t=arguments.length,n=Array(t),i=0;ie&&e.triggerCancel);e.onCancel&&l&&e.onCancel.apply(e,[()=>{}].concat((0,o.Z)(n.slice(1))));for(let e=0;e{let e=(0,W.A)(),{getPrefixCls:t,getIconPrefixCls:d,getTheme:f}=(0,l.w6)(),h=t(void 0,ep),p=s||`${h}-modal`,m=d(),g=f(),v=u;!1===v&&(v=void 0),(0,a.s)(i.createElement(ed,Object.assign({},c,{getContainer:v,prefixCls:p,rootPrefixCls:h,iconPrefixCls:m,okText:n,locale:e,theme:g,cancelText:o||e.cancelText})),r)})}function c(){for(var t=arguments.length,r=Array(t),o=0;o{"function"==typeof e.afterClose&&e.afterClose(),s.apply(this,r)}})).visible&&delete n.visible,u(n)}return u(n),ef.push(c),{destroy:c,update:function(e){u(n="function"==typeof e?e(n):Object.assign(Object.assign({},n),e))}}}function eg(e){return Object.assign(Object.assign({},e),{type:"warning"})}function ev(e){return Object.assign(Object.assign({},e),{type:"info"})}function ey(e){return Object.assign(Object.assign({},e),{type:"success"})}function eb(e){return Object.assign(Object.assign({},e),{type:"error"})}function eP(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var e_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},ew=r(91295),eS=i.forwardRef((e,t)=>{var r;let{afterClose:n,config:a}=e,[l,s]=i.useState(!0),[u,c]=i.useState(a),{direction:d,getPrefixCls:f}=i.useContext(B.E_),h=f("modal"),p=f(),m=function(){s(!1);for(var e=arguments.length,t=Array(e),r=0;re&&e.triggerCancel);u.onCancel&&n&&u.onCancel.apply(u,[()=>{}].concat((0,o.Z)(t.slice(1))))};i.useImperativeHandle(t,()=>({destroy:m,update:e=>{c(t=>Object.assign(Object.assign({},t),e))}}));let g=null!==(r=u.okCancel)&&void 0!==r?r:"confirm"===u.type,[v]=(0,b.Z)("Modal",ew.Z.Modal);return i.createElement(ed,Object.assign({prefixCls:h,rootPrefixCls:p},u,{close:m,open:l,afterClose:()=>{var e;n(),null===(e=u.afterClose)||void 0===e||e.call(u)},okText:u.okText||(g?null==v?void 0:v.okText:null==v?void 0:v.justOkText),direction:u.direction||d,cancelText:u.cancelText||(null==v?void 0:v.cancelText)}))});let ex=0,eC=i.memo(i.forwardRef((e,t)=>{let[r,n]=function(){let[e,t]=i.useState([]),r=i.useCallback(e=>(t(t=>[].concat((0,o.Z)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[]);return[e,r]}();return i.useImperativeHandle(t,()=>({patchElement:n}),[]),i.createElement(i.Fragment,null,r)}));function eO(e){return em(eg(e))}eu.useModal=function(){let e=i.useRef(null),[t,r]=i.useState([]);i.useEffect(()=>{if(t.length){let e=(0,o.Z)(t);e.forEach(e=>{e()}),r([])}},[t]);let n=i.useCallback(t=>function(n){var a;let l;ex+=1;let s=i.createRef(),u=i.createElement(eS,{key:`modal-${ex}`,config:t(n),ref:s,afterClose:()=>{null==l||l()}});return(l=null===(a=e.current)||void 0===a?void 0:a.patchElement(u))&&ef.push(l),{destroy:()=>{function e(){var e;null===(e=s.current)||void 0===e||e.destroy()}s.current?e():r(t=>[].concat((0,o.Z)(t),[e]))},update:e=>{function t(){var t;null===(t=s.current)||void 0===t||t.update(e)}s.current?t():r(e=>[].concat((0,o.Z)(e),[t]))}}},[]),a=i.useMemo(()=>({info:n(ev),success:n(ey),error:n(eb),warning:n(eg),confirm:n(eP)}),[]);return[a,i.createElement(eC,{key:"modal-holder",ref:e})]},eu.info=function(e){return em(ev(e))},eu.success=function(e){return em(ey(e))},eu.error=function(e){return em(eb(e))},eu.warning=eO,eu.warn=eO,eu.confirm=function(e){return em(eP(e))},eu.destroyAll=function(){for(;ef.length;){let e=ef.pop();e&&e()}},eu.config=function(e){let{rootPrefixCls:t}=e;ep=t},eu._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:r,closeIcon:n,closable:o,type:a,title:l,children:s}=e,u=e_(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:c}=i.useContext(B.E_),d=c(),f=t||c("modal"),[,p]=el(f),m=`${f}-confirm`,g={};return g=a?{closable:null!=o&&o,title:"",footer:"",children:i.createElement(ec,Object.assign({},e,{confirmPrefixCls:m,rootPrefixCls:d,content:s}))}:{closable:null==o||o,title:l,footer:void 0===e.footer?i.createElement(F,Object.assign({},e)):e.footer,children:s},i.createElement(k,Object.assign({prefixCls:f,className:h()(p,`${f}-pure-panel`,a&&m,a&&`${m}-${a}`,r)},u,{closeIcon:U(f,n),closable:o},g))};var ej=eu},60501:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(65231);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let r=t[e.type]||[];r.push(e),t[e.type]=r});let n=t.title?t.title[0]:null,o="";if(n){let{children:e}=n.props;o="string"==typeof e?e:Array.isArray(e)?e.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(e=>{r(e,t[e]||[])})}}}r=(e,t)=>{let r=document.getElementsByTagName("head")[0],n=r.querySelector("meta[name=next-head-count]"),i=Number(n.content),l=[];for(let t=0,r=n.previousElementSibling;t{for(let t=0,r=l.length;t{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),u.forEach(e=>r.insertBefore(e,n)),n.content=(i-l.length+u.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57477:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return P}});let n=r(26927),o=n._(r(86006)),a=r(96050),i=r(8993),l=r(6692),s=r(84779),u=r(60501),c=r(50085),d=r(56858),f=r(68891),h=r(38052),p=r(32781),m=r(39748),g=new Set;function v(e,t,r,n,o,a){if(!a&&!(0,i.isLocalURL)(t))return;if(!n.bypassPrefetchedCheck){let o=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,a=t+"%"+r+"%"+o;if(g.has(a))return;g.add(a)}let l=a?e.prefetch(t,o):e.prefetch(t,r,n);Promise.resolve(l).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let r,n;let{href:l,as:g,children:b,prefetch:P=null,passHref:_,replace:w,shallow:S,scroll:x,locale:C,onClick:O,onMouseEnter:j,onTouchStart:E,legacyBehavior:R=!1,...I}=e;r=b,R&&("string"==typeof r||"number"==typeof r)&&(r=o.default.createElement("a",null,r));let L=!1!==P,M=null===P?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,k=o.default.useContext(c.RouterContext),N=o.default.useContext(d.AppRouterContext),A=null!=k?k:N,T=!k,{href:$,as:H}=o.default.useMemo(()=>{if(!k){let e=y(l);return{href:e,as:g?y(g):e}}let[e,t]=(0,a.resolveHref)(k,l,!0);return{href:e,as:g?(0,a.resolveHref)(k,g):t||e}},[k,l,g]),B=o.default.useRef($),Z=o.default.useRef(H);R&&(n=o.default.Children.only(r));let z=R?n&&"object"==typeof n&&n.ref:t,[D,W,U]=(0,f.useIntersection)({rootMargin:"200px"}),F=o.default.useCallback(e=>{(Z.current!==H||B.current!==$)&&(U(),Z.current=H,B.current=$),D(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[H,z,$,U,D]);o.default.useEffect(()=>{A&&W&&L&&v(A,$,H,{locale:C},{kind:M},T)},[H,$,W,C,L,null==k?void 0:k.locale,A,T,M]);let q={ref:F,onClick(e){R||"function"!=typeof O||O(e),R&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),A&&!e.defaultPrevented&&function(e,t,r,n,a,l,s,u,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,r=t.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,i.isLocalURL)(r)))return;e.preventDefault();let p=()=>{"beforePopState"in t?t[a?"replace":"push"](r,n,{shallow:l,locale:u,scroll:s}):t[a?"replace":"push"](n||r,{forceOptimisticNavigation:!d})};c?o.default.startTransition(p):p()}(e,A,$,H,w,S,x,C,T,L)},onMouseEnter(e){R||"function"!=typeof j||j(e),R&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),A&&(L||!T)&&v(A,$,H,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:M},T)},onTouchStart(e){R||"function"!=typeof E||E(e),R&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),A&&(L||!T)&&v(A,$,H,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:M},T)}};if((0,s.isAbsoluteUrl)(H))q.href=H;else if(!R||_||"a"===n.type&&!("href"in n.props)){let e=void 0!==C?C:null==k?void 0:k.locale,t=(null==k?void 0:k.isLocaleDomain)&&(0,h.getDomainLocale)(H,e,null==k?void 0:k.locales,null==k?void 0:k.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(H,e,null==k?void 0:k.defaultLocale))}return R?o.default.cloneElement(n,q):o.default.createElement("a",{...I,...q},r)}),P=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28769:function(e,t,r){"use strict";function n(e){return(e=e.slice(0)).startsWith("/")||(e="/"+e),e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(66630),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42342:function(e,t,r){"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(89777),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1364:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{requestIdleCallback:function(){return r},cancelIdleCallback:function(){return n}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6505:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{markAssetError:function(){return l},isAssetError:function(){return s},getClientBuildManifest:function(){return f},createRouteLoader:function(){return p}}),r(26927),r(56001);let n=r(60932),o=r(1364);function a(e,t,r){let n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);let a=new Promise(e=>{n=e});return t.set(e,o={resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let i=Symbol("ASSET_LOAD_ERROR");function l(e){return Object.defineProperty(e,i,{})}function s(e){return e&&i in e}let u=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),c=()=>"";function d(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,o.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function f(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);let e=new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}});return d(e,3800,l(Error("Failed to load client build manifest")))}function h(e,t){return f().then(r=>{if(!(t in r))throw l(Error("Failed to lookup route: "+t));let o=r[t].map(t=>e+"/_next/"+encodeURI(t));return{scripts:o.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+c()),css:o.filter(e=>e.endsWith(".css")).map(e=>e+c())}})}function p(e){let t=new Map,r=new Map,n=new Map,i=new Map;function s(e){{var t;let n=r.get(e.toString());return n||(document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(l(Error("Failed to load script: "+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n))}}function c(e){let t=n.get(e);return t||n.set(e,t=fetch(e).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: "+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw l(e)})),t}return{whenEntrypoint:e=>a(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),i.delete(e))})},loadRoute(r,n){return a(r,i,()=>{let o;return d(h(e,r).then(e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(s)),Promise.all(o.map(c))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,l(Error("Route did not complete loading: "+r))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==o?void 0:o())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():h(e,t).then(e=>Promise.all(u?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,o)=>{let a='\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]';if(document.querySelector(a))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>o(l(Error("Failed to prefetch: "+t))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25076:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return a.default},default:function(){return h},withRouter:function(){return s.default},useRouter:function(){return p},createRouter:function(){return m},makePublicRouterInstance:function(){return g}});let n=r(26927),o=n._(r(86006)),a=n._(r(70650)),i=r(50085),l=n._(r(40243)),s=n._(r(19451)),u={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],d=["push","replace","reload","back","prefetch","beforePopState"];function f(){if(!u.router)throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return u.router}Object.defineProperty(u,"events",{get:()=>a.default.events}),c.forEach(e=>{Object.defineProperty(u,e,{get(){let t=f();return t[e]}})}),d.forEach(e=>{u[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{u.ready(()=>{a.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;ne()),u.readyCallbacks=[],u.router}function g(e){let t={};for(let r of c){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=a.default.events,d.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:i="",strategy:l="afterInteractive",onError:u}=e,h=r||t;if(h&&d.has(h))return;if(c.has(t)){d.add(h),c.get(t).then(n,u);return}let p=()=>{o&&o(),d.add(h)},m=document.createElement("script"),g=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),n&&n.call(this,t),p()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});for(let[r,n]of(a?(m.innerHTML=a.__html||"",p()):i?(m.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",p()):t&&(m.src=t,c.set(t,g)),Object.entries(e))){if(void 0===n||f.includes(r))continue;let e=s.DOMAttributeNames[r]||r.toLowerCase();m.setAttribute(e,n)}"worker"===l&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",l),document.body.appendChild(m)};function p(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(e))}):h(e)}function m(e){e.forEach(p),function(){let e=[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')];e.forEach(e=>{let t=e.id||e.getAttribute("src");d.add(t)})}()}function g(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:o=null,strategy:s="afterInteractive",onError:c,...f}=e,{updateScripts:p,scripts:m,getIsSsr:g,appDir:v,nonce:y}=(0,i.useContext)(l.HeadManagerContext),b=(0,i.useRef)(!1);(0,i.useEffect)(()=>{let e=t||r;b.current||(o&&e&&d.has(e)&&o(),b.current=!0)},[o,t,r]);let P=(0,i.useRef)(!1);if((0,i.useEffect)(()=>{!P.current&&("afterInteractive"===s?h(e):"lazyOnload"===s&&("complete"===document.readyState?(0,u.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(e))})),P.current=!0)},[e,s]),("beforeInteractive"===s||"worker"===s)&&(p?(m[s]=(m[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:c,...f}]),p(m)):g&&g()?d.add(t||r):g&&!g()&&h(e)),v){if("beforeInteractive"===s)return r?(a.default.preload(r,f.integrity?{as:"script",integrity:f.integrity}:{as:"script"}),i.default.createElement("script",{nonce:y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r])+")"}})):(f.dangerouslySetInnerHTML&&(f.children=f.dangerouslySetInnerHTML.__html,delete f.dangerouslySetInnerHTML),i.default.createElement("script",{nonce:y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...f}])+")"}}));"afterInteractive"===s&&r&&a.default.preload(r,f.integrity?{as:"script",integrity:f.integrity}:{as:"script"})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let v=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60932:function(e,t){"use strict";let r;function n(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68891:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let n=r(86006),o=r(1364),a="function"==typeof IntersectionObserver,i=new Map,l=[];function s(e){let{rootRef:t,rootMargin:r,disabled:s}=e,u=s||!a,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{f.current=e},[]);(0,n.useEffect)(()=>{if(a){if(u||c)return;let e=f.current;if(e&&e.tagName){let n=function(e,t,r){let{id:n,observer:o,elements:a}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=l.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=i.get(n)))return t;let o=new Map,a=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:a,elements:o},l.push(r),i.set(r,t),t}(r);return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),i.delete(n);let e=l.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!c){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[u,r,t,c,f.current]);let p=(0,n.useCallback)(()=>{d(!1)},[]);return[h,c,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19451:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(26927),o=n._(r(86006)),a=r(25076);function i(e){function t(t){return o.default.createElement(e,{router:(0,a.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12958:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=.01);let n=new r(e.length,t);for(let t of e)n.add(t);return n}export(){let e={numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray};return e}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){let t=this.getHashValues(e);t.forEach(e=>{this.bitArray[e]=1})}contains(e){let t=this.getHashValues(e);return t.every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r>>13,t=Math.imul(t,1540483477)}return t>>>0}(""+e+r)%this.numBits;t.push(n)}return t}constructor(e,t){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},36902:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,"\\$&"):e}},38030:function(e,t){"use strict";function r(e,t){let r;let n=e.split("/");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}})},6636:function(e,t){"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},73348:function(e,t){"use strict";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o{e(...n)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},42061:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(4471),o=r(609);function a(e){let t=(0,o.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},609:function(e,t){"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},50085:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return a}});let n=r(26927),o=n._(r(86006)),a=o.default.createContext(null)},70650:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return q},matchesMiddleware:function(){return A},createKey:function(){return W}});let n=r(26927),o=r(25909),a=r(30769),i=r(6505),l=r(33772),s=o._(r(40243)),u=r(42061),c=r(38030),d=n._(r(73348)),f=r(84779),h=r(93861),p=r(16590);r(72431);let m=r(58287),g=r(35318),v=r(6692);r(28180);let y=r(89777),b=r(60501),P=r(42342),_=r(28769),w=r(32781),S=r(66630),x=r(3031),C=r(86708),O=r(41714),j=r(16234),E=r(8993),R=r(75247),I=r(86620),L=r(96050),M=r(74875),k=r(33811);function N(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}async function A(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,y.parsePath)(e.asPath),n=(0,S.hasBasePath)(r)?(0,_.removeBasePath)(r):r,o=(0,w.addBasePath)((0,b.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(o))}function T(e){let t=(0,f.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function $(e,t,r){let[n,o]=(0,L.resolveHref)(e,t,!0),a=(0,f.getLocationOrigin)(),i=n.startsWith(a),l=o&&o.startsWith(a);n=T(n),o=o?T(o):o;let s=i?n:(0,w.addBasePath)(n),u=r?T((0,L.resolveHref)(e,r)):o||n;return{url:s,as:l?u:(0,w.addBasePath)(u)}}function H(e,t){let r=(0,a.removeTrailingSlash)((0,u.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,h.isDynamicRoute)(t)&&(0,g.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function B(e){let t=await A(e);if(!t||!e.fetchData)return null;try{let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!0},o=t.headers.get("x-nextjs-rewrite"),l=o||t.headers.get("x-nextjs-matched-path"),s=t.headers.get("x-matched-path");if(!s||l||s.includes("__next_data_catchall")||s.includes("/_error")||s.includes("/404")||(l=s),l){if(l.startsWith("/")){let t=(0,p.parseRelativeUrl)(l),s=(0,C.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),u=(0,a.removeTrailingSlash)(s.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,i.getClientBuildManifest)()]).then(a=>{let[i,{__rewrites:l}]=a,d=(0,b.addLocale)(s.pathname,s.locale);if((0,h.isDynamicRoute)(d)||!o&&i.includes((0,c.normalizeLocalePath)((0,_.removeBasePath)(d),r.router.locales).pathname)){let r=(0,C.getNextPathnameInfo)((0,p.parseRelativeUrl)(e).pathname,{nextConfig:n,parseData:!0});d=(0,w.addBasePath)(r.pathname),t.pathname=d}if(!i.includes(u)){let e=H(u,i);e!==u&&(u=e)}let f=i.includes(u)?u:H((0,c.normalizeLocalePath)((0,_.removeBasePath)(t.pathname),r.router.locales).pathname,i);if((0,h.isDynamicRoute)(f)){let e=(0,m.getRouteMatcher)((0,g.getRouteRegex)(f))(d);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:f}})}let t=(0,y.parsePath)(e),s=(0,O.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:""+s+t.query+t.hash})}let u=t.headers.get("x-nextjs-redirect");if(u){if(u.startsWith("/")){let e=(0,y.parsePath)(u),t=(0,O.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:u})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}catch(e){return null}}let Z=Symbol("SSG_DATA_NOT_FOUND");function z(e){try{return JSON.parse(e)}catch(e){return null}}function D(e){var t;let{dataHref:r,inflightCache:n,isPrefetch:o,hasMiddleware:a,isServerRender:l,parseJSON:s,persistCache:u,isBackground:c,unstable_skipClientCache:d}=e,{href:f}=new URL(r,window.location.href),h=e=>(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(o=>!o.ok&&r>1&&o.status>=500?e(t,r-1,n):o)})(r,l?3:1,{headers:Object.assign({},o?{purpose:"prefetch"}:{},o&&a?{"x-middleware-prefetch":"1"}:{}),method:null!=(t=null==e?void 0:e.method)?t:"GET"}).then(t=>t.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:r,response:t,text:"",json:{},cacheKey:f}:t.text().then(e=>{if(!t.ok){if(a&&[301,302,307,308].includes(t.status))return{dataHref:r,response:t,text:e,json:{},cacheKey:f};if(404===t.status){var n;if(null==(n=z(e))?void 0:n.notFound)return{dataHref:r,json:{notFound:Z},response:t,text:e,cacheKey:f}}let o=Error("Failed to load static props");throw l||(0,i.markAssetError)(o),o}return{dataHref:r,json:s?z(e):null,response:t,text:e,cacheKey:f}})).then(e=>(u&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete n[f],e)).catch(e=>{throw d||delete n[f],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,i.markAssetError)(e),e});return d&&u?h({}).then(e=>(n[f]=Promise.resolve(e),e)):void 0!==n[f]?n[f]:n[f]=h(c?{method:"HEAD"}:{})}function W(){return Math.random().toString(36).slice(2,10)}function U(e){let{url:t,router:r}=e;if(t===(0,w.addBasePath)((0,b.addLocale)(r.asPath,r.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}let F=e=>{let{route:t,router:r}=e,n=!1,o=r.clc=()=>{n=!0};return()=>{if(n){let e=Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}};class q{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=$(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=$(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,r,n){{let s=!1,u=!1;for(let c of[e,t])if(c){let t=(0,a.removeTrailingSlash)(new URL(c,"http://n").pathname),d=(0,w.addBasePath)((0,b.addLocale)(t,r||this.locale));if(t!==(0,a.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var o,i,l;for(let e of(s=s||!!(null==(o=this._bfl_s)?void 0:o.contains(t))||!!(null==(i=this._bfl_s)?void 0:i.contains(d)),[t,d])){let t=e.split("/");for(let e=0;!u&&e{})}}}}return!1}async change(e,t,r,n,o){var u,c,d,x,C,O,R,L,k;let T,B;if(!(0,E.isLocalURL)(t))return U({url:t,router:this}),!1;let z=1===n._h;z||n.shallow||await this._bfl(r,void 0,n.locale);let D=z||n._shouldResolveHref||(0,y.parsePath)(t).pathname===(0,y.parsePath)(r).pathname,W={...this.state},F=!0!==this.isReady;this.isReady=!0;let V=this.isSsr;if(z||(this.isSsr=!1),z&&this.clc)return!1;let G=W.locale;f.ST&&performance.mark("routeChange");let{shallow:X=!1,scroll:K=!0}=n,J={shallow:X};this._inFlightRoute&&this.clc&&(V||q.events.emit("routeChangeError",N(),this._inFlightRoute,J),this.clc(),this.clc=null),r=(0,w.addBasePath)((0,b.addLocale)((0,S.hasBasePath)(r)?(0,_.removeBasePath)(r):r,n.locale,this.defaultLocale));let Y=(0,P.removeLocale)((0,S.hasBasePath)(r)?(0,_.removeBasePath)(r):r,W.locale);this._inFlightRoute=r;let Q=G!==W.locale;if(!z&&this.onlyAHashChange(Y)&&!Q){W.asPath=Y,q.events.emit("hashChangeStart",r,J),this.changeState(e,t,r,{...n,scroll:!1}),K&&this.scrollToHash(Y);try{await this.set(W,this.components[W.route],null)}catch(e){throw(0,s.default)(e)&&e.cancelled&&q.events.emit("routeChangeError",e,Y,J),e}return q.events.emit("hashChangeComplete",r,J),!0}let ee=(0,p.parseRelativeUrl)(t),{pathname:et,query:er}=ee;if(null==(u=this.components[et])?void 0:u.__appRouter)return U({url:r,router:this}),new Promise(()=>{});try{[T,{__rewrites:B}]=await Promise.all([this.pageLoader.getPageList(),(0,i.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return U({url:r,router:this}),!1}this.urlIsNew(Y)||Q||(e="replaceState");let en=r;et=et?(0,a.removeTrailingSlash)((0,_.removeBasePath)(et)):et;let eo=(0,a.removeTrailingSlash)(et),ea=r.startsWith("/")&&(0,p.parseRelativeUrl)(r).pathname,ei=!!(ea&&eo!==ea&&(!(0,h.isDynamicRoute)(eo)||!(0,m.getRouteMatcher)((0,g.getRouteRegex)(eo))(ea))),el=!n.shallow&&await A({asPath:r,locale:W.locale,router:this});if(z&&el&&(D=!1),D&&"/_error"!==et&&(n._shouldResolveHref=!0,ee.pathname=H(et,T),ee.pathname===et||(et=ee.pathname,ee.pathname=(0,w.addBasePath)(et),el||(t=(0,v.formatWithValidation)(ee)))),!(0,E.isLocalURL)(r))return U({url:r,router:this}),!1;en=(0,P.removeLocale)((0,_.removeBasePath)(en),W.locale),eo=(0,a.removeTrailingSlash)(et);let es=!1;if((0,h.isDynamicRoute)(eo)){let e=(0,p.parseRelativeUrl)(en),n=e.pathname,o=(0,g.getRouteRegex)(eo);es=(0,m.getRouteMatcher)(o)(n);let a=eo===n,i=a?(0,M.interpolateAs)(eo,n,er):{};if(es&&(!a||i.result))a?r=(0,v.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,I.omit)(er,i.params)})):Object.assign(er,es);else{let e=Object.keys(o.groups).filter(e=>!er[e]&&!o.groups[e].optional);if(e.length>0&&!el)throw Error((a?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+n+") is incompatible with the `href` value ("+eo+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as"))}}z||q.events.emit("routeChangeStart",r,J);let eu="/404"===this.pathname||"/_error"===this.pathname;try{let a=await this.getRouteInfo({route:eo,pathname:et,query:er,as:r,resolvedAs:en,routeProps:J,locale:W.locale,isPreview:W.isPreview,hasMiddleware:el,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:z&&!this.isFallback,isMiddlewareRewrite:ei});if(z||n.shallow||await this._bfl(r,"resolvedAs"in a?a.resolvedAs:void 0,W.locale),"route"in a&&el){eo=et=a.route||eo,J.shallow||(er=Object.assign({},a.query||{},er));let e=(0,S.hasBasePath)(ee.pathname)?(0,_.removeBasePath)(ee.pathname):ee.pathname;if(es&&et!==e&&Object.keys(es).forEach(e=>{es&&er[e]===es[e]&&delete er[e]}),(0,h.isDynamicRoute)(et)){let e=!J.shallow&&a.resolvedAs?a.resolvedAs:(0,w.addBasePath)((0,b.addLocale)(new URL(r,location.href).pathname,W.locale),!0),t=e;(0,S.hasBasePath)(t)&&(t=(0,_.removeBasePath)(t));let n=(0,g.getRouteRegex)(et),o=(0,m.getRouteMatcher)(n)(new URL(t,location.href).pathname);o&&Object.assign(er,o)}}if("type"in a){if("redirect-internal"===a.type)return this.change(e,a.newUrl,a.newAs,n);return U({url:a.destination,router:this}),new Promise(()=>{})}let i=a.Component;if(i&&i.unstable_scriptLoader){let e=[].concat(i.unstable_scriptLoader());e.forEach(e=>{(0,l.handleClientScriptLoad)(e.props)})}if((a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){n.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,p.parseRelativeUrl)(t);r.pathname=H(r.pathname,T);let{url:o,as:a}=$(this,t,t);return this.change(e,o,a,n)}return U({url:t,router:this}),new Promise(()=>{})}if(W.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===Z){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(a=await this.getRouteInfo({route:e,pathname:e,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isNotFound:!0}),"type"in a)throw Error("Unexpected middleware effect on /404")}}z&&"/_error"===this.pathname&&(null==(c=self.__NEXT_DATA__.props)?void 0:null==(d=c.pageProps)?void 0:d.statusCode)===500&&(null==(x=a.props)?void 0:x.pageProps)&&(a.props.pageProps.statusCode=500);let u=n.shallow&&W.route===(null!=(C=a.route)?C:eo),f=null!=(O=n.scroll)?O:!z&&!u,v=null!=o?o:f?{x:0,y:0}:null,y={...W,route:eo,pathname:et,query:er,asPath:Y,isFallback:!1};if(z&&eu){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isQueryUpdating:z&&!this.isFallback}),"type"in a)throw Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&(null==(R=self.__NEXT_DATA__.props)?void 0:null==(L=R.pageProps)?void 0:L.statusCode)===500&&(null==(k=a.props)?void 0:k.pageProps)&&(a.props.pageProps.statusCode=500);try{await this.set(y,a,v)}catch(e){throw(0,s.default)(e)&&e.cancelled&&q.events.emit("routeChangeError",e,Y,J),e}return!0}q.events.emit("beforeHistoryChange",r,J),this.changeState(e,t,r,n);let P=z&&!v&&!F&&!Q&&(0,j.compareRouterStates)(y,this.state);if(!P){try{await this.set(y,a,v)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw z||q.events.emit("routeChangeError",a.error,Y,J),a.error;z||q.events.emit("routeChangeComplete",r,J),f&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,s.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),("pushState"!==e||(0,f.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:W()},"",r))}async handleRouteInfoError(e,t,r,n,o,a){if(console.error(e),e.cancelled)throw e;if((0,i.isAssetError)(e)||a)throw q.events.emit("routeChangeError",e,n,o),U({url:n,router:this}),N();try{let n;let{page:o,styleSheets:a}=await this.fetchComponent("/_error"),i={props:n,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,s.default)(e)?e:Error(e+""),t,r,n,o,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:o,resolvedAs:i,routeProps:l,locale:u,hasMiddleware:d,isPreview:f,unstable_skipClientCache:h,isQueryUpdating:p,isMiddlewareRewrite:m,isNotFound:g}=e,y=t;try{var b,P,w,S;let e=F({route:y,router:this}),t=this.components[y];if(l.shallow&&t&&this.route===y)return t;d&&(t=void 0);let s=!t||"initial"in t?void 0:t,C={dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:g?"/404":i,locale:u}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:p?this.sbc:this.sdc,persistCache:!f,isPrefetch:!1,unstable_skipClientCache:h,isBackground:p},O=p&&!m?null:await B({fetchData:()=>D(C),asPath:g?"/404":i,locale:u,router:this}).catch(e=>{if(p)return null;throw e});if(O&&("/_error"===r||"/404"===r)&&(O.effect=void 0),p&&(O?O.json=self.__NEXT_DATA__.props:O={json:self.__NEXT_DATA__.props}),e(),(null==O?void 0:null==(b=O.effect)?void 0:b.type)==="redirect-internal"||(null==O?void 0:null==(P=O.effect)?void 0:P.type)==="redirect-external")return O.effect;if((null==O?void 0:null==(w=O.effect)?void 0:w.type)==="rewrite"){let e=(0,a.removeTrailingSlash)(O.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!p||o.includes(e))&&(y=e,r=O.effect.resolvedHref,n={...n,...O.effect.parsedAs.query},i=(0,_.removeBasePath)((0,c.normalizeLocalePath)(O.effect.parsedAs.pathname,this.locales).pathname),t=this.components[y],l.shallow&&t&&this.route===y&&!d))return{...t,route:y}}if((0,x.isAPIRoute)(y))return U({url:o,router:this}),new Promise(()=>{});let j=s||await this.fetchComponent(y).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),E=null==O?void 0:null==(S=O.response)?void 0:S.headers.get("x-middleware-skip"),R=j.__N_SSG||j.__N_SSP;E&&(null==O?void 0:O.dataHref)&&delete this.sdc[O.dataHref];let{props:I,cacheKey:L}=await this._getData(async()=>{if(R){if((null==O?void 0:O.json)&&!E)return{cacheKey:O.cacheKey,props:O.json};let e=(null==O?void 0:O.dataHref)?O.dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:r,query:n}),asPath:i,locale:u}),t=await D({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:E?{}:this.sdc,persistCache:!f,isPrefetch:!1,unstable_skipClientCache:h});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(j.Component,{pathname:r,query:n,asPath:o,locale:u,locales:this.locales,defaultLocale:this.defaultLocale})}});return j.__N_SSP&&C.dataHref&&L&&delete this.sdc[L],this.isPreview||!j.__N_SSG||p||D(Object.assign({},C,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),I.pageProps=Object.assign({},I.pageProps),j.props=I,j.route=y,j.query=n,j.resolvedAs=i,this.components[y]=j,j}catch(e){return this.handleRouteInfoError((0,s.getProperError)(e),r,n,o,l)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#"),[n,o]=e.split("#");return!!o&&t===n&&r===o||t===n&&r!==o}scrollToHash(e){let[,t=""]=e.split("#");if(""===t||"top"===t){(0,k.handleSmoothScroll)(()=>window.scrollTo(0,0));return}let r=decodeURIComponent(t),n=document.getElementById(r);if(n){(0,k.handleSmoothScroll)(()=>n.scrollIntoView());return}let o=document.getElementsByName(r)[0];o&&(0,k.handleSmoothScroll)(()=>o.scrollIntoView())}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),(0,R.isBot)(window.navigator.userAgent))return;let n=(0,p.parseRelativeUrl)(e),o=n.pathname,{pathname:i,query:l}=n,s=i,u=await this.pageLoader.getPageList(),c=t,d=void 0!==r.locale?r.locale||void 0:this.locale,f=await A({asPath:t,locale:d,router:this});n.pathname=H(n.pathname,u),(0,h.isDynamicRoute)(n.pathname)&&(i=n.pathname,n.pathname=i,Object.assign(l,(0,m.getRouteMatcher)((0,g.getRouteRegex)(n.pathname))((0,y.parsePath)(t).pathname)||{}),f||(e=(0,v.formatWithValidation)(n)));let b=await B({fetchData:()=>D({dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:s,query:l}),skipInterpolation:!0,asPath:c,locale:d}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:d,router:this});if((null==b?void 0:b.effect.type)==="rewrite"&&(n.pathname=b.effect.resolvedHref,i=b.effect.resolvedHref,l={...l,...b.effect.parsedAs.query},c=b.effect.parsedAs.pathname,e=(0,v.formatWithValidation)(n)),(null==b?void 0:b.effect.type)==="redirect-external")return;let P=(0,a.removeTrailingSlash)(i);await this._bfl(t,c,r.locale,!0)&&(this.components[o]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(P).then(t=>!!t&&D({dataHref:(null==b?void 0:b.json)?null==b?void 0:b.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:d}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](P)])}async fetchComponent(e){let t=F({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e})}_getFlightData(e){return D({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,f.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,n,{initialProps:o,pageLoader:i,App:l,wrapApp:s,Component:u,err:c,subscription:d,isFallback:m,locale:g,locales:y,defaultLocale:b,domainLocales:P,isPreview:_}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=W(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,v.formatWithValidation)({pathname:(0,w.addBasePath)(e),query:t}),(0,f.getURL)());return}if(n.__NA){window.location.reload();return}if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:o,as:a,options:i,key:l}=n;this._key=l;let{pathname:s}=(0,p.parseRelativeUrl)(o);(!this.isSsr||a!==(0,w.addBasePath)(this.asPath)||s!==(0,w.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};let S=(0,a.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[S]={Component:u,initial:!0,props:o,err:c,__N_SSG:o&&o.__N_SSG,__N_SSP:o&&o.__N_SSP}),this.components["/_app"]={Component:l,styleSheets:[]};{let{BloomFilter:e}=r(12958),t={numItems:6,errorRate:.01,numBits:58,numHashes:7,bitArray:[0,1,1,1,0,1,1,0,0,0,0,1,1,1,1,1,0,0,0,1,0,0,1,0,1,0,0,0,1,0,0,0,1,0,1,0,0,1,1,1,1,0,1,0,1,1,0,0,1,1,1,1,1,1,1,0,1,0]},n={numItems:0,errorRate:.01,numBits:0,numHashes:null,bitArray:[]};(null==t?void 0:t.numHashes)&&(this._bfl_s=new e(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==n?void 0:n.numHashes)&&(this._bfl_d=new e(n.numItems,n.errorRate),this._bfl_d.import(n))}this.events=q.events,this.pageLoader=i;let x=(0,h.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=d,this.clc=null,this._wrapApp=s,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!x&&!self.location.search),this.state={route:S,pathname:e,query:t,asPath:x?e:n,isPreview:!!_,locale:void 0,isFallback:m},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!n.startsWith("//")){let r={locale:g},o=(0,f.getURL)();this._initialMatchesMiddlewarePromise=A({router:this,locale:g,asPath:o}).then(a=>(r._shouldResolveHref=n!==e,this.changeState("replaceState",a?o:(0,v.formatWithValidation)({pathname:(0,w.addBasePath)(e),query:t}),o,r),a))}window.addEventListener("popstate",this.onPopState)}}q.events=(0,d.default)()},58485:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let n=r(16620),o=r(29973);function a(e,t,r,a){if(!t||t===r)return e;let i=e.toLowerCase();return!a&&((0,o.pathHasPrefix)(i,"/api")||(0,o.pathHasPrefix)(i,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},75061:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return o}});let n=r(89777);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+r+t+o+a}},16234:function(e,t){"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let o=r[n];if("query"===o){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},41714:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return l}});let n=r(30769),o=r(16620),a=r(75061),i=r(58485);function l(e){let t=(0,i.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,o.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,o.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},6692:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return i},urlObjectKeys:function(){return l},formatWithValidation:function(){return s}});let n=r(25909),o=n._(r(61937)),a=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",l=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(o.urlQueryToSearchParams(s)));let c=e.search||s&&"?"+s||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),""+n+u+(i=i.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+l}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return i(e)}},56001:function(e,t){"use strict";function r(e,t){void 0===t&&(t="");let r="/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:""+e;return r+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},86708:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});let n=r(38030),o=r(6223),a=r(29973);function i(e,t){var r,i,l;let{basePath:s,i18n:u,trailingSlash:c}=null!=(r=t.nextConfig)?r:{},d={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):c};if(s&&(0,a.pathHasPrefix)(d.pathname,s)&&(d.pathname=(0,o.removePathPrefix)(d.pathname,s),d.basePath=s),!0===t.parseData&&d.pathname.startsWith("/_next/data/")&&d.pathname.endsWith(".json")){let e=d.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),t=e[0];d.pathname="index"!==e[1]?"/"+e.slice(1).join("/"):"/",d.buildId=t}if(t.i18nProvider){let e=t.i18nProvider.analyze(d.pathname);d.locale=e.detectedLocale,d.pathname=null!=(i=e.pathname)?i:d.pathname}else if(u){let e=(0,n.normalizeLocalePath)(d.pathname,u.locales);d.locale=e.detectedLocale,d.pathname=null!=(l=e.pathname)?l:d.pathname}return d}},4471:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(28057),o=r(93861)},74875:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(58287),o=r(35318);function a(e,t,r){let a="",i=(0,o.getRouteRegex)(e),l=i.groups,s=(t!==e?(0,n.getRouteMatcher)(i)(t):"")||r;a=e;let u=Object.keys(l);return u.every(e=>{let t=s[e]||"",{repeat:r,optional:n}=l[e],o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in s)&&(a=a.replace(o,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:u,result:a}}},93861:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return n}});let r=/\/\[[^/]+?\](?=\/|$)/;function n(e){return r.test(e)}},8993:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(84779),o=r(66630);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},86620:function(e,t){"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},16590:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let n=r(84779),o=r(61937);function a(e,t){let r=new URL((0,n.getLocationOrigin)()),a=t?new URL(t,r):e.startsWith(".")?new URL(window.location.href):r,{pathname:i,searchParams:l,search:s,hash:u,href:c,origin:d}=new URL(e,a);if(d!==r.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:i,query:(0,o.searchParamsToUrlQuery)(l),search:s,hash:u,href:c.slice(r.origin.length)}}},29973:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(89777);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},61937:function(e,t){"use strict";function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,o]=e;Array.isArray(o)?o.forEach(e=>t.append(r,n(e))):t.set(r,n(o))}),t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return a}})},6223:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return o}});let n=r(29973);function o(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},96050:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let n=r(61937),o=r(6692),a=r(86620),i=r(84779),l=r(65231),s=r(8993),u=r(93861),c=r(74875);function d(e,t,r){let d;let f="string"==typeof t?t:(0,o.formatWithValidation)(t),h=f.match(/^[a-zA-Z]{1,}:\/\//),p=h?f.slice(h[0].length):f,m=p.split("?");if((m[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(p);f=(h?h[0]:"")+t}if(!(0,s.isLocalURL)(f))return r?[f]:f;try{d=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(f,d);e.pathname=(0,l.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:l}=(0,c.interpolateAs)(e.pathname,e.pathname,r);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(r,l)}))}let i=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[f]:f}}},58287:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let n=r(84779);function o(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach(e=>{let t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map(e=>a(e)):t.repeat?[a(n)]:a(n))}),i}}},35318:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRouteRegex:function(){return s},getNamedRouteRegex:function(){return c},getNamedMiddlewareRegex:function(){return d}});let n=r(36902),o=r(30769),a="nxtP";function i(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function l(e){let t=(0,o.removeTrailingSlash)(e).slice(1).split("/"),r={},a=1;return{parameterizedRoute:t.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,n.escapeStringRegexp)(e);{let{key:t,optional:n,repeat:o}=i(e.slice(1,-1));return r[t]={pos:a++,repeat:o,optional:n},o?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function s(e){let{parameterizedRoute:t,groups:r}=l(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function u(e,t){let r,l;let s=(0,o.removeTrailingSlash)(e).slice(1).split("/"),u=(r=97,l=1,()=>{let e="";for(let t=0;t122&&(l++,r=97);return e}),c={};return{namedParameterizedRoute:s.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,n.escapeStringRegexp)(e);{let{key:r,optional:n,repeat:o}=i(e.slice(1,-1)),l=r.replace(/\W/g,"");t&&(l=""+a+l);let s=!1;return(0===l.length||l.length>30)&&(s=!0),isNaN(parseInt(l.slice(0,1)))||(s=!0),s&&(l=u()),t?c[l]=""+a+r:c[l]=""+r,o?n?"(?:/(?<"+l+">.+?))?":"/(?<"+l+">.+?)":"/(?<"+l+">[^/]+?)"}}).join(""),routeKeys:c}}function c(e,t){let r=u(e,t);return{...s(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function d(e,t){let{parameterizedRoute:r}=l(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:o}=u(e,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}},28057:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let r=o.slice(1,-1),i=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),i=!0),r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+r+"').");if(r.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+r+"').");function a(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"').");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(n){if(i){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');a(this.restSlugName,r),this.restSlugName=r,o="[...]"}}else{if(i)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');a(this.slugName,r),this.slugName=r,o="[]"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}},84779:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return a},getLocationOrigin:function(){return i},getURL:function(){return l},getDisplayName:function(){return s},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return c},loadGetInitialProps:function(){return d},SP:function(){return f},ST:function(){return h},DecodeError:function(){return p},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return y}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;ao.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function l(){let{href:e}=window.location,t=i();return e.substring(t.length)}function s(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?"),r=t[0];return r.replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&u(r))return n;if(!n){let t='"'+s(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.';throw Error(t)}return n}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class v extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}},3031:function(e,t){"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},40243:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(6636);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Error((0,n.isPlainObject)(e)?JSON.stringify(e):e+"")}},35846:function(e,t,r){e.exports=r(57477)},53794:function(e,t,r){e.exports=r(25076)},54486:function(e,t,r){var n,o;void 0!==(o="function"==typeof(n=function(){var e,t,r,n={};n.version="0.2.0";var o=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};function a(e,t,r){return er?r:e}n.configure=function(e){var t,r;for(t in e)void 0!==(r=e[t])&&e.hasOwnProperty(t)&&(o[t]=r);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=a(e,o.minimum,1),n.status=1===e?null:e;var r=n.render(!t),s=r.querySelector(o.barSelector),u=o.speed,c=o.easing;return r.offsetWidth,i(function(t){var a,i;""===o.positionUsing&&(o.positionUsing=n.getPositioningCSS()),l(s,(a=e,(i="translate3d"===o.positionUsing?{transform:"translate3d("+(-1+a)*100+"%,0,0)"}:"translate"===o.positionUsing?{transform:"translate("+(-1+a)*100+"%,0)"}:{"margin-left":(-1+a)*100+"%"}).transition="all "+u+"ms "+c,i)),1===e?(l(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){l(r,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){n.remove(),t()},u)},u)):setTimeout(t,u)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout(function(){n.status&&(n.trickle(),e())},o.trickleSpeed)};return o.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*a(Math.random()*t,.1,.95)),t=a(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*o.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()&&(0===t&&n.start(),e++,t++,r.always(function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=o.template;var r,a,i=t.querySelector(o.barSelector),s=e?"-100":(-1+(n.status||0))*100,c=document.querySelector(o.parent);return l(i,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),!o.showSpinner&&(a=t.querySelector(o.spinnerSelector))&&f(a),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(o.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var i=(r=[],function(e){r.push(e),1==r.length&&function e(){var t=r.shift();t&&t(e)}()}),l=function(){var e=["Webkit","O","Moz","ms"],t={};function r(r,n,o){var a;n=t[a=(a=n).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[a]=function(t){var r=document.body.style;if(t in r)return t;for(var n,o=e.length,a=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((n=e[o]+a)in r)return n;return t}(a)),r.style[n]=o}return function(e,t){var n,o,a=arguments;if(2==a.length)for(n in t)void 0!==(o=t[n])&&t.hasOwnProperty(n)&&r(e,n,o);else r(e,a[1],a[2])}}();function s(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function u(e,t){var r=d(e),n=r+t;s(r,t)||(e.className=n.substring(1))}function c(e,t){var r,n=d(e);s(e,t)&&(r=n.replace(" "+t+" "," "),e.className=r.substring(1,r.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n})?n.call(t,r,t,e):n)&&(e.exports=o)}}]); \ No newline at end of file + ${r}-confirm ${r}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${r}-info ${r}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${r}-success ${r}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},ea=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},ei=e=>{let{componentCls:t,antCls:r}=e,n=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[n]:{[`${r}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${n}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${n}-btns`]:{marginTop:e.marginLG}}}};var el=(0,Q.Z)("Modal",e=>{let t=e.padding,r=e.fontSizeHeading5,n=e.lineHeightHeading5,o=(0,ee.TS)(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:n*r+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight});return[en(o),eo(o),ea(o),er(o),e.wireframe&&ei(o),(0,Y._y)(o,"zoom")]},e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading})),es=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};(0,z.Z)()&&window.document.documentElement&&document.documentElement.addEventListener("click",e=>{n={x:e.pageX,y:e.pageY},setTimeout(()=>{n=null},100)},!0);var eu=e=>{var t;let{getPopupContainer:r,getPrefixCls:o,direction:a}=i.useContext(B.E_),l=t=>{let{onCancel:r}=e;null==r||r(t)},{prefixCls:s,className:u,rootClassName:c,open:d,wrapClassName:f,centered:p,getContainer:m,closeIcon:g,focusTriggerAfterClose:v=!0,visible:b,width:P=520,footer:_}=e,S=es(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose","visible","width","footer"]),w=o("modal",s),x=o(),[C,O]=el(w),j=h()(f,{[`${w}-centered`]:!!p,[`${w}-wrap-rtl`]:"rtl"===a}),I=void 0===_?i.createElement(F,Object.assign({},e,{onOk:t=>{let{onOk:r}=e;null==r||r(t)},onCancel:l})):_;return C(i.createElement(Z.BR,null,i.createElement(H.Ux,{status:!0,override:!0},i.createElement($,Object.assign({width:P},S,{getContainer:void 0===m?r:m,prefixCls:w,rootClassName:h()(O,c),wrapClassName:j,footer:I,visible:null!=d?d:b,mousePosition:null!==(t=S.mousePosition)&&void 0!==t?t:n,onClose:l,closeIcon:U(w,g),focusTriggerAfterClose:v,transitionName:(0,y.mL)(x,"zoom",e.transitionName),maskTransitionName:(0,y.mL)(x,"fade",e.maskTransitionName),className:h()(O,u)})))))};function ec(e){let{icon:t,onCancel:r,onOk:n,close:o,okText:a,okButtonProps:l,cancelText:f,cancelButtonProps:h,confirmPrefixCls:p,rootPrefixCls:m,type:g,okCancel:y,footer:P,locale:_}=e,S=t;if(!t&&null!==t)switch(g){case"info":S=i.createElement(d.Z,null);break;case"success":S=i.createElement(s.Z,null);break;case"error":S=i.createElement(u.Z,null);break;default:S=i.createElement(c.Z,null)}let w=e.okType||"primary",x=null!=y?y:"confirm"===g,C=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[O]=(0,b.Z)("Modal"),j=_||O,I=x&&i.createElement(v,{actionFn:r,close:o,autoFocus:"cancel"===C,buttonProps:h,prefixCls:`${m}-btn`},f||(null==j?void 0:j.cancelText));return i.createElement("div",{className:`${p}-body-wrapper`},i.createElement("div",{className:`${p}-body`},S,void 0===e.title?null:i.createElement("span",{className:`${p}-title`},e.title),i.createElement("div",{className:`${p}-content`},e.content)),void 0===P?i.createElement("div",{className:`${p}-btns`},I,i.createElement(v,{type:w,actionFn:n,close:o,autoFocus:"ok"===C,buttonProps:l,prefixCls:`${m}-btn`},a||(x?null==j?void 0:j.okText:null==j?void 0:j.justOkText))):P)}var ed=e=>{let{close:t,zIndex:r,afterClose:n,visible:o,open:a,keyboard:s,centered:u,getContainer:c,maskStyle:d,direction:f,prefixCls:p,wrapClassName:m,rootPrefixCls:g,iconPrefixCls:v,theme:b,bodyStyle:P,closable:_=!1,closeIcon:S,modalRender:w,focusTriggerAfterClose:x}=e,C=`${p}-confirm`,O=e.width||416,j=e.style||{},I=void 0===e.mask||e.mask,E=void 0!==e.maskClosable&&e.maskClosable,R=h()(C,`${C}-${e.type}`,{[`${C}-rtl`]:"rtl"===f},e.className);return i.createElement(l.ZP,{prefixCls:g,iconPrefixCls:v,direction:f,theme:b},i.createElement(eu,{prefixCls:p,className:R,wrapClassName:h()({[`${C}-centered`]:!!e.centered},m),onCancel:()=>null==t?void 0:t({triggerCancel:!0}),open:a,title:"",footer:null,transitionName:(0,y.mL)(g,"zoom",e.transitionName),maskTransitionName:(0,y.mL)(g,"fade",e.maskTransitionName),mask:I,maskClosable:E,maskStyle:d,style:j,bodyStyle:P,width:O,zIndex:r,afterClose:n,keyboard:s,centered:u,getContainer:c,closable:_,closeIcon:S,modalRender:w,focusTriggerAfterClose:x},i.createElement(ec,Object.assign({},e,{confirmPrefixCls:C}))))},ef=[],eh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let ep="";function em(e){let t;let r=document.createDocumentFragment(),n=Object.assign(Object.assign({},e),{close:c,open:!0});function s(){for(var t=arguments.length,n=Array(t),i=0;ie&&e.triggerCancel);e.onCancel&&l&&e.onCancel.apply(e,[()=>{}].concat((0,o.Z)(n.slice(1))));for(let e=0;e{let e=(0,W.A)(),{getPrefixCls:t,getIconPrefixCls:d,getTheme:f}=(0,l.w6)(),h=t(void 0,ep),p=s||`${h}-modal`,m=d(),g=f(),v=u;!1===v&&(v=void 0),(0,a.s)(i.createElement(ed,Object.assign({},c,{getContainer:v,prefixCls:p,rootPrefixCls:h,iconPrefixCls:m,okText:n,locale:e,theme:g,cancelText:o||e.cancelText})),r)})}function c(){for(var t=arguments.length,r=Array(t),o=0;o{"function"==typeof e.afterClose&&e.afterClose(),s.apply(this,r)}})).visible&&delete n.visible,u(n)}return u(n),ef.push(c),{destroy:c,update:function(e){u(n="function"==typeof e?e(n):Object.assign(Object.assign({},n),e))}}}function eg(e){return Object.assign(Object.assign({},e),{type:"warning"})}function ev(e){return Object.assign(Object.assign({},e),{type:"info"})}function ey(e){return Object.assign(Object.assign({},e),{type:"success"})}function eb(e){return Object.assign(Object.assign({},e),{type:"error"})}function eP(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var e_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},eS=r(91295),ew=i.forwardRef((e,t)=>{var r;let{afterClose:n,config:a}=e,[l,s]=i.useState(!0),[u,c]=i.useState(a),{direction:d,getPrefixCls:f}=i.useContext(B.E_),h=f("modal"),p=f(),m=function(){s(!1);for(var e=arguments.length,t=Array(e),r=0;re&&e.triggerCancel);u.onCancel&&n&&u.onCancel.apply(u,[()=>{}].concat((0,o.Z)(t.slice(1))))};i.useImperativeHandle(t,()=>({destroy:m,update:e=>{c(t=>Object.assign(Object.assign({},t),e))}}));let g=null!==(r=u.okCancel)&&void 0!==r?r:"confirm"===u.type,[v]=(0,b.Z)("Modal",eS.Z.Modal);return i.createElement(ed,Object.assign({prefixCls:h,rootPrefixCls:p},u,{close:m,open:l,afterClose:()=>{var e;n(),null===(e=u.afterClose)||void 0===e||e.call(u)},okText:u.okText||(g?null==v?void 0:v.okText:null==v?void 0:v.justOkText),direction:u.direction||d,cancelText:u.cancelText||(null==v?void 0:v.cancelText)}))});let ex=0,eC=i.memo(i.forwardRef((e,t)=>{let[r,n]=function(){let[e,t]=i.useState([]),r=i.useCallback(e=>(t(t=>[].concat((0,o.Z)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[]);return[e,r]}();return i.useImperativeHandle(t,()=>({patchElement:n}),[]),i.createElement(i.Fragment,null,r)}));function eO(e){return em(eg(e))}eu.useModal=function(){let e=i.useRef(null),[t,r]=i.useState([]);i.useEffect(()=>{if(t.length){let e=(0,o.Z)(t);e.forEach(e=>{e()}),r([])}},[t]);let n=i.useCallback(t=>function(n){var a;let l;ex+=1;let s=i.createRef(),u=i.createElement(ew,{key:`modal-${ex}`,config:t(n),ref:s,afterClose:()=>{null==l||l()}});return(l=null===(a=e.current)||void 0===a?void 0:a.patchElement(u))&&ef.push(l),{destroy:()=>{function e(){var e;null===(e=s.current)||void 0===e||e.destroy()}s.current?e():r(t=>[].concat((0,o.Z)(t),[e]))},update:e=>{function t(){var t;null===(t=s.current)||void 0===t||t.update(e)}s.current?t():r(e=>[].concat((0,o.Z)(e),[t]))}}},[]),a=i.useMemo(()=>({info:n(ev),success:n(ey),error:n(eb),warning:n(eg),confirm:n(eP)}),[]);return[a,i.createElement(eC,{key:"modal-holder",ref:e})]},eu.info=function(e){return em(ev(e))},eu.success=function(e){return em(ey(e))},eu.error=function(e){return em(eb(e))},eu.warning=eO,eu.warn=eO,eu.confirm=function(e){return em(eP(e))},eu.destroyAll=function(){for(;ef.length;){let e=ef.pop();e&&e()}},eu.config=function(e){let{rootPrefixCls:t}=e;ep=t},eu._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:r,closeIcon:n,closable:o,type:a,title:l,children:s}=e,u=e_(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:c}=i.useContext(B.E_),d=c(),f=t||c("modal"),[,p]=el(f),m=`${f}-confirm`,g={};return g=a?{closable:null!=o&&o,title:"",footer:"",children:i.createElement(ec,Object.assign({},e,{confirmPrefixCls:m,rootPrefixCls:d,content:s}))}:{closable:null==o||o,title:l,footer:void 0===e.footer?i.createElement(F,Object.assign({},e)):e.footer,children:s},i.createElement(k,Object.assign({prefixCls:f,className:h()(p,`${f}-pure-panel`,a&&m,a&&`${m}-${a}`,r)},u,{closeIcon:U(f,n),closable:o},g))};var ej=eu},60501:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(65231);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let r=t[e.type]||[];r.push(e),t[e.type]=r});let n=t.title?t.title[0]:null,o="";if(n){let{children:e}=n.props;o="string"==typeof e?e:Array.isArray(e)?e.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(e=>{r(e,t[e]||[])})}}}r=(e,t)=>{let r=document.getElementsByTagName("head")[0],n=r.querySelector("meta[name=next-head-count]"),i=Number(n.content),l=[];for(let t=0,r=n.previousElementSibling;t{for(let t=0,r=l.length;t{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),u.forEach(e=>r.insertBefore(e,n)),n.content=(i-l.length+u.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57477:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return P}});let n=r(26927),o=n._(r(86006)),a=r(96050),i=r(8993),l=r(6692),s=r(84779),u=r(60501),c=r(50085),d=r(56858),f=r(68891),h=r(38052),p=r(32781),m=r(39748),g=new Set;function v(e,t,r,n,o,a){if(!a&&!(0,i.isLocalURL)(t))return;if(!n.bypassPrefetchedCheck){let o=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,a=t+"%"+r+"%"+o;if(g.has(a))return;g.add(a)}let l=a?e.prefetch(t,o):e.prefetch(t,r,n);Promise.resolve(l).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let r,n;let{href:l,as:g,children:b,prefetch:P=null,passHref:_,replace:S,shallow:w,scroll:x,locale:C,onClick:O,onMouseEnter:j,onTouchStart:I,legacyBehavior:E=!1,...R}=e;r=b,E&&("string"==typeof r||"number"==typeof r)&&(r=o.default.createElement("a",null,r));let L=!1!==P,M=null===P?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,k=o.default.useContext(c.RouterContext),N=o.default.useContext(d.AppRouterContext),T=null!=k?k:N,A=!k,{href:$,as:z}=o.default.useMemo(()=>{if(!k){let e=y(l);return{href:e,as:g?y(g):e}}let[e,t]=(0,a.resolveHref)(k,l,!0);return{href:e,as:g?(0,a.resolveHref)(k,g):t||e}},[k,l,g]),B=o.default.useRef($),H=o.default.useRef(z);E&&(n=o.default.Children.only(r));let Z=E?n&&"object"==typeof n&&n.ref:t,[D,W,U]=(0,f.useIntersection)({rootMargin:"200px"}),F=o.default.useCallback(e=>{(H.current!==z||B.current!==$)&&(U(),H.current=z,B.current=$),D(e),Z&&("function"==typeof Z?Z(e):"object"==typeof Z&&(Z.current=e))},[z,Z,$,U,D]);o.default.useEffect(()=>{T&&W&&L&&v(T,$,z,{locale:C},{kind:M},A)},[z,$,W,C,L,null==k?void 0:k.locale,T,A,M]);let q={ref:F,onClick(e){E||"function"!=typeof O||O(e),E&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),T&&!e.defaultPrevented&&function(e,t,r,n,a,l,s,u,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,r=t.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,i.isLocalURL)(r)))return;e.preventDefault();let p=()=>{"beforePopState"in t?t[a?"replace":"push"](r,n,{shallow:l,locale:u,scroll:s}):t[a?"replace":"push"](n||r,{forceOptimisticNavigation:!d})};c?o.default.startTransition(p):p()}(e,T,$,z,S,w,x,C,A,L)},onMouseEnter(e){E||"function"!=typeof j||j(e),E&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),T&&(L||!A)&&v(T,$,z,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:M},A)},onTouchStart(e){E||"function"!=typeof I||I(e),E&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),T&&(L||!A)&&v(T,$,z,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:M},A)}};if((0,s.isAbsoluteUrl)(z))q.href=z;else if(!E||_||"a"===n.type&&!("href"in n.props)){let e=void 0!==C?C:null==k?void 0:k.locale,t=(null==k?void 0:k.isLocaleDomain)&&(0,h.getDomainLocale)(z,e,null==k?void 0:k.locales,null==k?void 0:k.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(z,e,null==k?void 0:k.defaultLocale))}return E?o.default.cloneElement(n,q):o.default.createElement("a",{...R,...q},r)}),P=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28769:function(e,t,r){"use strict";function n(e){return(e=e.slice(0)).startsWith("/")||(e="/"+e),e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(66630),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42342:function(e,t,r){"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(89777),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1364:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{requestIdleCallback:function(){return r},cancelIdleCallback:function(){return n}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6505:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{markAssetError:function(){return l},isAssetError:function(){return s},getClientBuildManifest:function(){return f},createRouteLoader:function(){return p}}),r(26927),r(56001);let n=r(60932),o=r(1364);function a(e,t,r){let n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);let a=new Promise(e=>{n=e});return t.set(e,o={resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let i=Symbol("ASSET_LOAD_ERROR");function l(e){return Object.defineProperty(e,i,{})}function s(e){return e&&i in e}let u=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),c=()=>"";function d(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,o.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function f(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);let e=new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}});return d(e,3800,l(Error("Failed to load client build manifest")))}function h(e,t){return f().then(r=>{if(!(t in r))throw l(Error("Failed to lookup route: "+t));let o=r[t].map(t=>e+"/_next/"+encodeURI(t));return{scripts:o.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+c()),css:o.filter(e=>e.endsWith(".css")).map(e=>e+c())}})}function p(e){let t=new Map,r=new Map,n=new Map,i=new Map;function s(e){{var t;let n=r.get(e.toString());return n||(document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(l(Error("Failed to load script: "+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n))}}function c(e){let t=n.get(e);return t||n.set(e,t=fetch(e).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: "+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw l(e)})),t}return{whenEntrypoint:e=>a(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),i.delete(e))})},loadRoute(r,n){return a(r,i,()=>{let o;return d(h(e,r).then(e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(s)),Promise.all(o.map(c))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,l(Error("Route did not complete loading: "+r))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==o?void 0:o())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():h(e,t).then(e=>Promise.all(u?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,o)=>{let a='\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]';if(document.querySelector(a))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>o(l(Error("Failed to prefetch: "+t))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25076:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return a.default},default:function(){return h},withRouter:function(){return s.default},useRouter:function(){return p},createRouter:function(){return m},makePublicRouterInstance:function(){return g}});let n=r(26927),o=n._(r(86006)),a=n._(r(70650)),i=r(50085),l=n._(r(40243)),s=n._(r(19451)),u={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],d=["push","replace","reload","back","prefetch","beforePopState"];function f(){if(!u.router)throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return u.router}Object.defineProperty(u,"events",{get:()=>a.default.events}),c.forEach(e=>{Object.defineProperty(u,e,{get(){let t=f();return t[e]}})}),d.forEach(e=>{u[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{u.ready(()=>{a.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;ne()),u.readyCallbacks=[],u.router}function g(e){let t={};for(let r of c){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=a.default.events,d.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:i="",strategy:l="afterInteractive",onError:u}=e,h=r||t;if(h&&d.has(h))return;if(c.has(t)){d.add(h),c.get(t).then(n,u);return}let p=()=>{o&&o(),d.add(h)},m=document.createElement("script"),g=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),n&&n.call(this,t),p()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});for(let[r,n]of(a?(m.innerHTML=a.__html||"",p()):i?(m.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",p()):t&&(m.src=t,c.set(t,g)),Object.entries(e))){if(void 0===n||f.includes(r))continue;let e=s.DOMAttributeNames[r]||r.toLowerCase();m.setAttribute(e,n)}"worker"===l&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",l),document.body.appendChild(m)};function p(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(e))}):h(e)}function m(e){e.forEach(p),function(){let e=[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')];e.forEach(e=>{let t=e.id||e.getAttribute("src");d.add(t)})}()}function g(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:o=null,strategy:s="afterInteractive",onError:c,...f}=e,{updateScripts:p,scripts:m,getIsSsr:g,appDir:v,nonce:y}=(0,i.useContext)(l.HeadManagerContext),b=(0,i.useRef)(!1);(0,i.useEffect)(()=>{let e=t||r;b.current||(o&&e&&d.has(e)&&o(),b.current=!0)},[o,t,r]);let P=(0,i.useRef)(!1);if((0,i.useEffect)(()=>{!P.current&&("afterInteractive"===s?h(e):"lazyOnload"===s&&("complete"===document.readyState?(0,u.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(e))})),P.current=!0)},[e,s]),("beforeInteractive"===s||"worker"===s)&&(p?(m[s]=(m[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:c,...f}]),p(m)):g&&g()?d.add(t||r):g&&!g()&&h(e)),v){if("beforeInteractive"===s)return r?(a.default.preload(r,f.integrity?{as:"script",integrity:f.integrity}:{as:"script"}),i.default.createElement("script",{nonce:y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r])+")"}})):(f.dangerouslySetInnerHTML&&(f.children=f.dangerouslySetInnerHTML.__html,delete f.dangerouslySetInnerHTML),i.default.createElement("script",{nonce:y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...f}])+")"}}));"afterInteractive"===s&&r&&a.default.preload(r,f.integrity?{as:"script",integrity:f.integrity}:{as:"script"})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let v=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60932:function(e,t){"use strict";let r;function n(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68891:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let n=r(86006),o=r(1364),a="function"==typeof IntersectionObserver,i=new Map,l=[];function s(e){let{rootRef:t,rootMargin:r,disabled:s}=e,u=s||!a,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{f.current=e},[]);(0,n.useEffect)(()=>{if(a){if(u||c)return;let e=f.current;if(e&&e.tagName){let n=function(e,t,r){let{id:n,observer:o,elements:a}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=l.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=i.get(n)))return t;let o=new Map,a=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:a,elements:o},l.push(r),i.set(r,t),t}(r);return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),i.delete(n);let e=l.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!c){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[u,r,t,c,f.current]);let p=(0,n.useCallback)(()=>{d(!1)},[]);return[h,c,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19451:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(26927),o=n._(r(86006)),a=r(25076);function i(e){function t(t){return o.default.createElement(e,{router:(0,a.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12958:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=.01);let n=new r(e.length,t);for(let t of e)n.add(t);return n}export(){let e={numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray};return e}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){let t=this.getHashValues(e);t.forEach(e=>{this.bitArray[e]=1})}contains(e){let t=this.getHashValues(e);return t.every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r>>13,t=Math.imul(t,1540483477)}return t>>>0}(""+e+r)%this.numBits;t.push(n)}return t}constructor(e,t){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},36902:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,"\\$&"):e}},38030:function(e,t){"use strict";function r(e,t){let r;let n=e.split("/");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}})},6636:function(e,t){"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},73348:function(e,t){"use strict";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o{e(...n)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},42061:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(4471),o=r(609);function a(e){let t=(0,o.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},609:function(e,t){"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},50085:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return a}});let n=r(26927),o=n._(r(86006)),a=o.default.createContext(null)},70650:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return q},matchesMiddleware:function(){return T},createKey:function(){return W}});let n=r(26927),o=r(25909),a=r(30769),i=r(6505),l=r(33772),s=o._(r(40243)),u=r(42061),c=r(38030),d=n._(r(73348)),f=r(84779),h=r(93861),p=r(16590);r(72431);let m=r(58287),g=r(35318),v=r(6692);r(28180);let y=r(89777),b=r(60501),P=r(42342),_=r(28769),S=r(32781),w=r(66630),x=r(3031),C=r(86708),O=r(41714),j=r(16234),I=r(8993),E=r(75247),R=r(86620),L=r(96050),M=r(74875),k=r(33811);function N(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}async function T(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,y.parsePath)(e.asPath),n=(0,w.hasBasePath)(r)?(0,_.removeBasePath)(r):r,o=(0,S.addBasePath)((0,b.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(o))}function A(e){let t=(0,f.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function $(e,t,r){let[n,o]=(0,L.resolveHref)(e,t,!0),a=(0,f.getLocationOrigin)(),i=n.startsWith(a),l=o&&o.startsWith(a);n=A(n),o=o?A(o):o;let s=i?n:(0,S.addBasePath)(n),u=r?A((0,L.resolveHref)(e,r)):o||n;return{url:s,as:l?u:(0,S.addBasePath)(u)}}function z(e,t){let r=(0,a.removeTrailingSlash)((0,u.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,h.isDynamicRoute)(t)&&(0,g.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function B(e){let t=await T(e);if(!t||!e.fetchData)return null;try{let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!0},o=t.headers.get("x-nextjs-rewrite"),l=o||t.headers.get("x-nextjs-matched-path"),s=t.headers.get("x-matched-path");if(!s||l||s.includes("__next_data_catchall")||s.includes("/_error")||s.includes("/404")||(l=s),l){if(l.startsWith("/")){let t=(0,p.parseRelativeUrl)(l),s=(0,C.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),u=(0,a.removeTrailingSlash)(s.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,i.getClientBuildManifest)()]).then(a=>{let[i,{__rewrites:l}]=a,d=(0,b.addLocale)(s.pathname,s.locale);if((0,h.isDynamicRoute)(d)||!o&&i.includes((0,c.normalizeLocalePath)((0,_.removeBasePath)(d),r.router.locales).pathname)){let r=(0,C.getNextPathnameInfo)((0,p.parseRelativeUrl)(e).pathname,{nextConfig:n,parseData:!0});d=(0,S.addBasePath)(r.pathname),t.pathname=d}if(!i.includes(u)){let e=z(u,i);e!==u&&(u=e)}let f=i.includes(u)?u:z((0,c.normalizeLocalePath)((0,_.removeBasePath)(t.pathname),r.router.locales).pathname,i);if((0,h.isDynamicRoute)(f)){let e=(0,m.getRouteMatcher)((0,g.getRouteRegex)(f))(d);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:f}})}let t=(0,y.parsePath)(e),s=(0,O.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:""+s+t.query+t.hash})}let u=t.headers.get("x-nextjs-redirect");if(u){if(u.startsWith("/")){let e=(0,y.parsePath)(u),t=(0,O.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:u})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}catch(e){return null}}let H=Symbol("SSG_DATA_NOT_FOUND");function Z(e){try{return JSON.parse(e)}catch(e){return null}}function D(e){var t;let{dataHref:r,inflightCache:n,isPrefetch:o,hasMiddleware:a,isServerRender:l,parseJSON:s,persistCache:u,isBackground:c,unstable_skipClientCache:d}=e,{href:f}=new URL(r,window.location.href),h=e=>(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(o=>!o.ok&&r>1&&o.status>=500?e(t,r-1,n):o)})(r,l?3:1,{headers:Object.assign({},o?{purpose:"prefetch"}:{},o&&a?{"x-middleware-prefetch":"1"}:{}),method:null!=(t=null==e?void 0:e.method)?t:"GET"}).then(t=>t.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:r,response:t,text:"",json:{},cacheKey:f}:t.text().then(e=>{if(!t.ok){if(a&&[301,302,307,308].includes(t.status))return{dataHref:r,response:t,text:e,json:{},cacheKey:f};if(404===t.status){var n;if(null==(n=Z(e))?void 0:n.notFound)return{dataHref:r,json:{notFound:H},response:t,text:e,cacheKey:f}}let o=Error("Failed to load static props");throw l||(0,i.markAssetError)(o),o}return{dataHref:r,json:s?Z(e):null,response:t,text:e,cacheKey:f}})).then(e=>(u&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete n[f],e)).catch(e=>{throw d||delete n[f],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,i.markAssetError)(e),e});return d&&u?h({}).then(e=>(n[f]=Promise.resolve(e),e)):void 0!==n[f]?n[f]:n[f]=h(c?{method:"HEAD"}:{})}function W(){return Math.random().toString(36).slice(2,10)}function U(e){let{url:t,router:r}=e;if(t===(0,S.addBasePath)((0,b.addLocale)(r.asPath,r.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}let F=e=>{let{route:t,router:r}=e,n=!1,o=r.clc=()=>{n=!0};return()=>{if(n){let e=Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}};class q{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=$(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=$(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,r,n){{let s=!1,u=!1;for(let c of[e,t])if(c){let t=(0,a.removeTrailingSlash)(new URL(c,"http://n").pathname),d=(0,S.addBasePath)((0,b.addLocale)(t,r||this.locale));if(t!==(0,a.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var o,i,l;for(let e of(s=s||!!(null==(o=this._bfl_s)?void 0:o.contains(t))||!!(null==(i=this._bfl_s)?void 0:i.contains(d)),[t,d])){let t=e.split("/");for(let e=0;!u&&e{})}}}}return!1}async change(e,t,r,n,o){var u,c,d,x,C,O,E,L,k;let A,B;if(!(0,I.isLocalURL)(t))return U({url:t,router:this}),!1;let Z=1===n._h;Z||n.shallow||await this._bfl(r,void 0,n.locale);let D=Z||n._shouldResolveHref||(0,y.parsePath)(t).pathname===(0,y.parsePath)(r).pathname,W={...this.state},F=!0!==this.isReady;this.isReady=!0;let V=this.isSsr;if(Z||(this.isSsr=!1),Z&&this.clc)return!1;let G=W.locale;f.ST&&performance.mark("routeChange");let{shallow:J=!1,scroll:X=!0}=n,K={shallow:J};this._inFlightRoute&&this.clc&&(V||q.events.emit("routeChangeError",N(),this._inFlightRoute,K),this.clc(),this.clc=null),r=(0,S.addBasePath)((0,b.addLocale)((0,w.hasBasePath)(r)?(0,_.removeBasePath)(r):r,n.locale,this.defaultLocale));let Y=(0,P.removeLocale)((0,w.hasBasePath)(r)?(0,_.removeBasePath)(r):r,W.locale);this._inFlightRoute=r;let Q=G!==W.locale;if(!Z&&this.onlyAHashChange(Y)&&!Q){W.asPath=Y,q.events.emit("hashChangeStart",r,K),this.changeState(e,t,r,{...n,scroll:!1}),X&&this.scrollToHash(Y);try{await this.set(W,this.components[W.route],null)}catch(e){throw(0,s.default)(e)&&e.cancelled&&q.events.emit("routeChangeError",e,Y,K),e}return q.events.emit("hashChangeComplete",r,K),!0}let ee=(0,p.parseRelativeUrl)(t),{pathname:et,query:er}=ee;if(null==(u=this.components[et])?void 0:u.__appRouter)return U({url:r,router:this}),new Promise(()=>{});try{[A,{__rewrites:B}]=await Promise.all([this.pageLoader.getPageList(),(0,i.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return U({url:r,router:this}),!1}this.urlIsNew(Y)||Q||(e="replaceState");let en=r;et=et?(0,a.removeTrailingSlash)((0,_.removeBasePath)(et)):et;let eo=(0,a.removeTrailingSlash)(et),ea=r.startsWith("/")&&(0,p.parseRelativeUrl)(r).pathname,ei=!!(ea&&eo!==ea&&(!(0,h.isDynamicRoute)(eo)||!(0,m.getRouteMatcher)((0,g.getRouteRegex)(eo))(ea))),el=!n.shallow&&await T({asPath:r,locale:W.locale,router:this});if(Z&&el&&(D=!1),D&&"/_error"!==et&&(n._shouldResolveHref=!0,ee.pathname=z(et,A),ee.pathname===et||(et=ee.pathname,ee.pathname=(0,S.addBasePath)(et),el||(t=(0,v.formatWithValidation)(ee)))),!(0,I.isLocalURL)(r))return U({url:r,router:this}),!1;en=(0,P.removeLocale)((0,_.removeBasePath)(en),W.locale),eo=(0,a.removeTrailingSlash)(et);let es=!1;if((0,h.isDynamicRoute)(eo)){let e=(0,p.parseRelativeUrl)(en),n=e.pathname,o=(0,g.getRouteRegex)(eo);es=(0,m.getRouteMatcher)(o)(n);let a=eo===n,i=a?(0,M.interpolateAs)(eo,n,er):{};if(es&&(!a||i.result))a?r=(0,v.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,R.omit)(er,i.params)})):Object.assign(er,es);else{let e=Object.keys(o.groups).filter(e=>!er[e]&&!o.groups[e].optional);if(e.length>0&&!el)throw Error((a?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+n+") is incompatible with the `href` value ("+eo+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as"))}}Z||q.events.emit("routeChangeStart",r,K);let eu="/404"===this.pathname||"/_error"===this.pathname;try{let a=await this.getRouteInfo({route:eo,pathname:et,query:er,as:r,resolvedAs:en,routeProps:K,locale:W.locale,isPreview:W.isPreview,hasMiddleware:el,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:Z&&!this.isFallback,isMiddlewareRewrite:ei});if(Z||n.shallow||await this._bfl(r,"resolvedAs"in a?a.resolvedAs:void 0,W.locale),"route"in a&&el){eo=et=a.route||eo,K.shallow||(er=Object.assign({},a.query||{},er));let e=(0,w.hasBasePath)(ee.pathname)?(0,_.removeBasePath)(ee.pathname):ee.pathname;if(es&&et!==e&&Object.keys(es).forEach(e=>{es&&er[e]===es[e]&&delete er[e]}),(0,h.isDynamicRoute)(et)){let e=!K.shallow&&a.resolvedAs?a.resolvedAs:(0,S.addBasePath)((0,b.addLocale)(new URL(r,location.href).pathname,W.locale),!0),t=e;(0,w.hasBasePath)(t)&&(t=(0,_.removeBasePath)(t));let n=(0,g.getRouteRegex)(et),o=(0,m.getRouteMatcher)(n)(new URL(t,location.href).pathname);o&&Object.assign(er,o)}}if("type"in a){if("redirect-internal"===a.type)return this.change(e,a.newUrl,a.newAs,n);return U({url:a.destination,router:this}),new Promise(()=>{})}let i=a.Component;if(i&&i.unstable_scriptLoader){let e=[].concat(i.unstable_scriptLoader());e.forEach(e=>{(0,l.handleClientScriptLoad)(e.props)})}if((a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){n.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,p.parseRelativeUrl)(t);r.pathname=z(r.pathname,A);let{url:o,as:a}=$(this,t,t);return this.change(e,o,a,n)}return U({url:t,router:this}),new Promise(()=>{})}if(W.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===H){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(a=await this.getRouteInfo({route:e,pathname:e,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isNotFound:!0}),"type"in a)throw Error("Unexpected middleware effect on /404")}}Z&&"/_error"===this.pathname&&(null==(c=self.__NEXT_DATA__.props)?void 0:null==(d=c.pageProps)?void 0:d.statusCode)===500&&(null==(x=a.props)?void 0:x.pageProps)&&(a.props.pageProps.statusCode=500);let u=n.shallow&&W.route===(null!=(C=a.route)?C:eo),f=null!=(O=n.scroll)?O:!Z&&!u,v=null!=o?o:f?{x:0,y:0}:null,y={...W,route:eo,pathname:et,query:er,asPath:Y,isFallback:!1};if(Z&&eu){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isQueryUpdating:Z&&!this.isFallback}),"type"in a)throw Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&(null==(E=self.__NEXT_DATA__.props)?void 0:null==(L=E.pageProps)?void 0:L.statusCode)===500&&(null==(k=a.props)?void 0:k.pageProps)&&(a.props.pageProps.statusCode=500);try{await this.set(y,a,v)}catch(e){throw(0,s.default)(e)&&e.cancelled&&q.events.emit("routeChangeError",e,Y,K),e}return!0}q.events.emit("beforeHistoryChange",r,K),this.changeState(e,t,r,n);let P=Z&&!v&&!F&&!Q&&(0,j.compareRouterStates)(y,this.state);if(!P){try{await this.set(y,a,v)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw Z||q.events.emit("routeChangeError",a.error,Y,K),a.error;Z||q.events.emit("routeChangeComplete",r,K),f&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,s.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),("pushState"!==e||(0,f.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:W()},"",r))}async handleRouteInfoError(e,t,r,n,o,a){if(console.error(e),e.cancelled)throw e;if((0,i.isAssetError)(e)||a)throw q.events.emit("routeChangeError",e,n,o),U({url:n,router:this}),N();try{let n;let{page:o,styleSheets:a}=await this.fetchComponent("/_error"),i={props:n,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,s.default)(e)?e:Error(e+""),t,r,n,o,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:o,resolvedAs:i,routeProps:l,locale:u,hasMiddleware:d,isPreview:f,unstable_skipClientCache:h,isQueryUpdating:p,isMiddlewareRewrite:m,isNotFound:g}=e,y=t;try{var b,P,S,w;let e=F({route:y,router:this}),t=this.components[y];if(l.shallow&&t&&this.route===y)return t;d&&(t=void 0);let s=!t||"initial"in t?void 0:t,C={dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:g?"/404":i,locale:u}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:p?this.sbc:this.sdc,persistCache:!f,isPrefetch:!1,unstable_skipClientCache:h,isBackground:p},O=p&&!m?null:await B({fetchData:()=>D(C),asPath:g?"/404":i,locale:u,router:this}).catch(e=>{if(p)return null;throw e});if(O&&("/_error"===r||"/404"===r)&&(O.effect=void 0),p&&(O?O.json=self.__NEXT_DATA__.props:O={json:self.__NEXT_DATA__.props}),e(),(null==O?void 0:null==(b=O.effect)?void 0:b.type)==="redirect-internal"||(null==O?void 0:null==(P=O.effect)?void 0:P.type)==="redirect-external")return O.effect;if((null==O?void 0:null==(S=O.effect)?void 0:S.type)==="rewrite"){let e=(0,a.removeTrailingSlash)(O.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!p||o.includes(e))&&(y=e,r=O.effect.resolvedHref,n={...n,...O.effect.parsedAs.query},i=(0,_.removeBasePath)((0,c.normalizeLocalePath)(O.effect.parsedAs.pathname,this.locales).pathname),t=this.components[y],l.shallow&&t&&this.route===y&&!d))return{...t,route:y}}if((0,x.isAPIRoute)(y))return U({url:o,router:this}),new Promise(()=>{});let j=s||await this.fetchComponent(y).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),I=null==O?void 0:null==(w=O.response)?void 0:w.headers.get("x-middleware-skip"),E=j.__N_SSG||j.__N_SSP;I&&(null==O?void 0:O.dataHref)&&delete this.sdc[O.dataHref];let{props:R,cacheKey:L}=await this._getData(async()=>{if(E){if((null==O?void 0:O.json)&&!I)return{cacheKey:O.cacheKey,props:O.json};let e=(null==O?void 0:O.dataHref)?O.dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:r,query:n}),asPath:i,locale:u}),t=await D({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:I?{}:this.sdc,persistCache:!f,isPrefetch:!1,unstable_skipClientCache:h});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(j.Component,{pathname:r,query:n,asPath:o,locale:u,locales:this.locales,defaultLocale:this.defaultLocale})}});return j.__N_SSP&&C.dataHref&&L&&delete this.sdc[L],this.isPreview||!j.__N_SSG||p||D(Object.assign({},C,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),R.pageProps=Object.assign({},R.pageProps),j.props=R,j.route=y,j.query=n,j.resolvedAs=i,this.components[y]=j,j}catch(e){return this.handleRouteInfoError((0,s.getProperError)(e),r,n,o,l)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#"),[n,o]=e.split("#");return!!o&&t===n&&r===o||t===n&&r!==o}scrollToHash(e){let[,t=""]=e.split("#");if(""===t||"top"===t){(0,k.handleSmoothScroll)(()=>window.scrollTo(0,0));return}let r=decodeURIComponent(t),n=document.getElementById(r);if(n){(0,k.handleSmoothScroll)(()=>n.scrollIntoView());return}let o=document.getElementsByName(r)[0];o&&(0,k.handleSmoothScroll)(()=>o.scrollIntoView())}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),(0,E.isBot)(window.navigator.userAgent))return;let n=(0,p.parseRelativeUrl)(e),o=n.pathname,{pathname:i,query:l}=n,s=i,u=await this.pageLoader.getPageList(),c=t,d=void 0!==r.locale?r.locale||void 0:this.locale,f=await T({asPath:t,locale:d,router:this});n.pathname=z(n.pathname,u),(0,h.isDynamicRoute)(n.pathname)&&(i=n.pathname,n.pathname=i,Object.assign(l,(0,m.getRouteMatcher)((0,g.getRouteRegex)(n.pathname))((0,y.parsePath)(t).pathname)||{}),f||(e=(0,v.formatWithValidation)(n)));let b=await B({fetchData:()=>D({dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:s,query:l}),skipInterpolation:!0,asPath:c,locale:d}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:d,router:this});if((null==b?void 0:b.effect.type)==="rewrite"&&(n.pathname=b.effect.resolvedHref,i=b.effect.resolvedHref,l={...l,...b.effect.parsedAs.query},c=b.effect.parsedAs.pathname,e=(0,v.formatWithValidation)(n)),(null==b?void 0:b.effect.type)==="redirect-external")return;let P=(0,a.removeTrailingSlash)(i);await this._bfl(t,c,r.locale,!0)&&(this.components[o]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(P).then(t=>!!t&&D({dataHref:(null==b?void 0:b.json)?null==b?void 0:b.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:d}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](P)])}async fetchComponent(e){let t=F({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e})}_getFlightData(e){return D({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,f.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,n,{initialProps:o,pageLoader:i,App:l,wrapApp:s,Component:u,err:c,subscription:d,isFallback:m,locale:g,locales:y,defaultLocale:b,domainLocales:P,isPreview:_}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=W(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,v.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),(0,f.getURL)());return}if(n.__NA){window.location.reload();return}if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:o,as:a,options:i,key:l}=n;this._key=l;let{pathname:s}=(0,p.parseRelativeUrl)(o);(!this.isSsr||a!==(0,S.addBasePath)(this.asPath)||s!==(0,S.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};let w=(0,a.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[w]={Component:u,initial:!0,props:o,err:c,__N_SSG:o&&o.__N_SSG,__N_SSP:o&&o.__N_SSP}),this.components["/_app"]={Component:l,styleSheets:[]};{let{BloomFilter:e}=r(12958),t={numItems:6,errorRate:.01,numBits:58,numHashes:7,bitArray:[0,1,1,1,0,1,1,0,0,0,0,1,1,1,1,1,0,0,0,1,0,0,1,0,1,0,0,0,1,0,0,0,1,0,1,0,0,1,1,1,1,0,1,0,1,1,0,0,1,1,1,1,1,1,1,0,1,0]},n={numItems:0,errorRate:.01,numBits:0,numHashes:null,bitArray:[]};(null==t?void 0:t.numHashes)&&(this._bfl_s=new e(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==n?void 0:n.numHashes)&&(this._bfl_d=new e(n.numItems,n.errorRate),this._bfl_d.import(n))}this.events=q.events,this.pageLoader=i;let x=(0,h.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=d,this.clc=null,this._wrapApp=s,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!x&&!self.location.search),this.state={route:w,pathname:e,query:t,asPath:x?e:n,isPreview:!!_,locale:void 0,isFallback:m},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!n.startsWith("//")){let r={locale:g},o=(0,f.getURL)();this._initialMatchesMiddlewarePromise=T({router:this,locale:g,asPath:o}).then(a=>(r._shouldResolveHref=n!==e,this.changeState("replaceState",a?o:(0,v.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),o,r),a))}window.addEventListener("popstate",this.onPopState)}}q.events=(0,d.default)()},58485:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let n=r(16620),o=r(29973);function a(e,t,r,a){if(!t||t===r)return e;let i=e.toLowerCase();return!a&&((0,o.pathHasPrefix)(i,"/api")||(0,o.pathHasPrefix)(i,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},75061:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return o}});let n=r(89777);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+r+t+o+a}},16234:function(e,t){"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let o=r[n];if("query"===o){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},41714:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return l}});let n=r(30769),o=r(16620),a=r(75061),i=r(58485);function l(e){let t=(0,i.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,o.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,o.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},6692:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return i},urlObjectKeys:function(){return l},formatWithValidation:function(){return s}});let n=r(25909),o=n._(r(61937)),a=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",l=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(o.urlQueryToSearchParams(s)));let c=e.search||s&&"?"+s||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),""+n+u+(i=i.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+l}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return i(e)}},56001:function(e,t){"use strict";function r(e,t){void 0===t&&(t="");let r="/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:""+e;return r+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},86708:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});let n=r(38030),o=r(6223),a=r(29973);function i(e,t){var r,i,l;let{basePath:s,i18n:u,trailingSlash:c}=null!=(r=t.nextConfig)?r:{},d={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):c};if(s&&(0,a.pathHasPrefix)(d.pathname,s)&&(d.pathname=(0,o.removePathPrefix)(d.pathname,s),d.basePath=s),!0===t.parseData&&d.pathname.startsWith("/_next/data/")&&d.pathname.endsWith(".json")){let e=d.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),t=e[0];d.pathname="index"!==e[1]?"/"+e.slice(1).join("/"):"/",d.buildId=t}if(t.i18nProvider){let e=t.i18nProvider.analyze(d.pathname);d.locale=e.detectedLocale,d.pathname=null!=(i=e.pathname)?i:d.pathname}else if(u){let e=(0,n.normalizeLocalePath)(d.pathname,u.locales);d.locale=e.detectedLocale,d.pathname=null!=(l=e.pathname)?l:d.pathname}return d}},4471:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(28057),o=r(93861)},74875:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(58287),o=r(35318);function a(e,t,r){let a="",i=(0,o.getRouteRegex)(e),l=i.groups,s=(t!==e?(0,n.getRouteMatcher)(i)(t):"")||r;a=e;let u=Object.keys(l);return u.every(e=>{let t=s[e]||"",{repeat:r,optional:n}=l[e],o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in s)&&(a=a.replace(o,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:u,result:a}}},93861:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return n}});let r=/\/\[[^/]+?\](?=\/|$)/;function n(e){return r.test(e)}},8993:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(84779),o=r(66630);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},86620:function(e,t){"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},16590:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let n=r(84779),o=r(61937);function a(e,t){let r=new URL((0,n.getLocationOrigin)()),a=t?new URL(t,r):e.startsWith(".")?new URL(window.location.href):r,{pathname:i,searchParams:l,search:s,hash:u,href:c,origin:d}=new URL(e,a);if(d!==r.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:i,query:(0,o.searchParamsToUrlQuery)(l),search:s,hash:u,href:c.slice(r.origin.length)}}},29973:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(89777);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},61937:function(e,t){"use strict";function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,o]=e;Array.isArray(o)?o.forEach(e=>t.append(r,n(e))):t.set(r,n(o))}),t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return a}})},6223:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return o}});let n=r(29973);function o(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},96050:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let n=r(61937),o=r(6692),a=r(86620),i=r(84779),l=r(65231),s=r(8993),u=r(93861),c=r(74875);function d(e,t,r){let d;let f="string"==typeof t?t:(0,o.formatWithValidation)(t),h=f.match(/^[a-zA-Z]{1,}:\/\//),p=h?f.slice(h[0].length):f,m=p.split("?");if((m[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(p);f=(h?h[0]:"")+t}if(!(0,s.isLocalURL)(f))return r?[f]:f;try{d=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(f,d);e.pathname=(0,l.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:l}=(0,c.interpolateAs)(e.pathname,e.pathname,r);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(r,l)}))}let i=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[f]:f}}},58287:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let n=r(84779);function o(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach(e=>{let t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map(e=>a(e)):t.repeat?[a(n)]:a(n))}),i}}},35318:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRouteRegex:function(){return s},getNamedRouteRegex:function(){return c},getNamedMiddlewareRegex:function(){return d}});let n=r(36902),o=r(30769),a="nxtP";function i(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function l(e){let t=(0,o.removeTrailingSlash)(e).slice(1).split("/"),r={},a=1;return{parameterizedRoute:t.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,n.escapeStringRegexp)(e);{let{key:t,optional:n,repeat:o}=i(e.slice(1,-1));return r[t]={pos:a++,repeat:o,optional:n},o?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function s(e){let{parameterizedRoute:t,groups:r}=l(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function u(e,t){let r,l;let s=(0,o.removeTrailingSlash)(e).slice(1).split("/"),u=(r=97,l=1,()=>{let e="";for(let t=0;t122&&(l++,r=97);return e}),c={};return{namedParameterizedRoute:s.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,n.escapeStringRegexp)(e);{let{key:r,optional:n,repeat:o}=i(e.slice(1,-1)),l=r.replace(/\W/g,"");t&&(l=""+a+l);let s=!1;return(0===l.length||l.length>30)&&(s=!0),isNaN(parseInt(l.slice(0,1)))||(s=!0),s&&(l=u()),t?c[l]=""+a+r:c[l]=""+r,o?n?"(?:/(?<"+l+">.+?))?":"/(?<"+l+">.+?)":"/(?<"+l+">[^/]+?)"}}).join(""),routeKeys:c}}function c(e,t){let r=u(e,t);return{...s(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function d(e,t){let{parameterizedRoute:r}=l(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:o}=u(e,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}},28057:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let r=o.slice(1,-1),i=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),i=!0),r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+r+"').");if(r.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+r+"').");function a(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"').");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(n){if(i){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');a(this.restSlugName,r),this.restSlugName=r,o="[...]"}}else{if(i)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');a(this.slugName,r),this.slugName=r,o="[]"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}},84779:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return a},getLocationOrigin:function(){return i},getURL:function(){return l},getDisplayName:function(){return s},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return c},loadGetInitialProps:function(){return d},SP:function(){return f},ST:function(){return h},DecodeError:function(){return p},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return y}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;ao.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function l(){let{href:e}=window.location,t=i();return e.substring(t.length)}function s(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?"),r=t[0];return r.replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&u(r))return n;if(!n){let t='"'+s(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.';throw Error(t)}return n}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class v extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}},3031:function(e,t){"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},40243:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(6636);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Error((0,n.isPlainObject)(e)?JSON.stringify(e):e+"")}},35846:function(e,t,r){e.exports=r(57477)},53794:function(e,t,r){e.exports=r(25076)},54486:function(e,t,r){var n,o;void 0!==(o="function"==typeof(n=function(){var e,t,r,n={};n.version="0.2.0";var o=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};function a(e,t,r){return er?r:e}n.configure=function(e){var t,r;for(t in e)void 0!==(r=e[t])&&e.hasOwnProperty(t)&&(o[t]=r);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=a(e,o.minimum,1),n.status=1===e?null:e;var r=n.render(!t),s=r.querySelector(o.barSelector),u=o.speed,c=o.easing;return r.offsetWidth,i(function(t){var a,i;""===o.positionUsing&&(o.positionUsing=n.getPositioningCSS()),l(s,(a=e,(i="translate3d"===o.positionUsing?{transform:"translate3d("+(-1+a)*100+"%,0,0)"}:"translate"===o.positionUsing?{transform:"translate("+(-1+a)*100+"%,0)"}:{"margin-left":(-1+a)*100+"%"}).transition="all "+u+"ms "+c,i)),1===e?(l(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){l(r,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){n.remove(),t()},u)},u)):setTimeout(t,u)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout(function(){n.status&&(n.trickle(),e())},o.trickleSpeed)};return o.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*a(Math.random()*t,.1,.95)),t=a(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*o.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()&&(0===t&&n.start(),e++,t++,r.always(function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=o.template;var r,a,i=t.querySelector(o.barSelector),s=e?"-100":(-1+(n.status||0))*100,c=document.querySelector(o.parent);return l(i,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),!o.showSpinner&&(a=t.querySelector(o.spinnerSelector))&&f(a),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(o.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var i=(r=[],function(e){r.push(e),1==r.length&&function e(){var t=r.shift();t&&t(e)}()}),l=function(){var e=["Webkit","O","Moz","ms"],t={};function r(r,n,o){var a;n=t[a=(a=n).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[a]=function(t){var r=document.body.style;if(t in r)return t;for(var n,o=e.length,a=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((n=e[o]+a)in r)return n;return t}(a)),r.style[n]=o}return function(e,t){var n,o,a=arguments;if(2==a.length)for(n in t)void 0!==(o=t[n])&&t.hasOwnProperty(n)&&r(e,n,o);else r(e,a[1],a[2])}}();function s(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function u(e,t){var r=d(e),n=r+t;s(r,t)||(e.className=n.substring(1))}function c(e,t){var r,n=d(e);s(e,t)&&(r=n.replace(" "+t+" "," "),e.className=r.substring(1,r.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n})?n.call(t,r,t,e):n)&&(e.exports=o)}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/81-96228d374838bf49.js b/pilot/server/static/_next/static/chunks/81-96228d374838bf49.js new file mode 100644 index 000000000..2a48da03d --- /dev/null +++ b/pilot/server/static/_next/static/chunks/81-96228d374838bf49.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81],{89081:function(n,t,e){"use strict";e.d(t,{Z:function(){return z}});var r,i=function(){return(i=Object.assign||function(n){for(var t,e=1,r=arguments.length;et.indexOf(r)&&(e[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(n);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(e[r[i]]=n[r[i]]);return e}function u(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,i,o=e.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(n){i={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return u}function a(n,t,e){if(e||2==arguments.length)for(var r,i=0,o=t.length;i-1&&(o=setTimeout(function(){p.delete(n)},t)),p.set(n,i(i({},e),{timer:o}))},y=new Map,g=function(n,t){y.set(n,t),t.then(function(t){return y.delete(n),t}).catch(function(){y.delete(n)})},m={},b=function(n,t){m[n]&&m[n].forEach(function(n){return n(t)})},w=function(n,t){return m[n]||(m[n]=[]),m[n].push(t),function(){var e=m[n].indexOf(t);m[n].splice(e,1)}},x=function(n,t){var e=t.cacheKey,r=t.cacheTime,i=void 0===r?3e5:r,o=t.staleTime,f=void 0===o?0:o,l=t.setCache,v=t.getCache,m=(0,c.useRef)(),x=(0,c.useRef)(),O=function(n,t){l?l(t):h(n,i,t),b(n,t.data)},j=function(n,t){return(void 0===t&&(t=[]),v)?v(t):p.get(n)};return(s(function(){if(e){var t=j(e);t&&Object.hasOwnProperty.call(t,"data")&&(n.state.data=t.data,n.state.params=t.params,(-1===f||new Date().getTime()-t.time<=f)&&(n.state.loading=!1)),m.current=w(e,function(t){n.setState({data:t})})}},[]),d(function(){var n;null===(n=m.current)||void 0===n||n.call(m)}),e)?{onBefore:function(n){var t=j(e,n);return t&&Object.hasOwnProperty.call(t,"data")?-1===f||new Date().getTime()-t.time<=f?{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 r=y.get(e);return r&&r!==x.current||(r=n.apply(void 0,a([],u(t),!1)),x.current=r,g(e,r)),{servicePromise:r}},onSuccess:function(t,r){var i;e&&(null===(i=m.current)||void 0===i||i.call(m),O(e,{data:t,params:r,time:new Date().getTime()}),m.current=w(e,function(t){n.setState({data:t})}))},onMutate:function(t){var r;e&&(null===(r=m.current)||void 0===r||r.call(m),O(e,{data:t,params:n.state.params,time:new Date().getTime()}),m.current=w(e,function(t){n.setState({data:t})}))}}:{}},O=e(56762),j=e.n(O),S=function(n,t){var e=t.debounceWait,r=t.debounceLeading,i=t.debounceTrailing,o=t.debounceMaxWait,f=(0,c.useRef)(),l=(0,c.useMemo)(function(){var n={};return void 0!==r&&(n.leading=r),void 0!==i&&(n.trailing=i),void 0!==o&&(n.maxWait=o),n},[r,i,o]);return((0,c.useEffect)(function(){if(e){var t=n.runAsync.bind(n);return f.current=j()(function(n){n()},e,l),n.runAsync=function(){for(var n=[],e=0;e-1&&C.splice(n,1)})}return function(){f()}},[e,i]),d(function(){f()}),{}},k=function(n,t){var e=t.retryInterval,r=t.retryCount,i=(0,c.useRef)(),o=(0,c.useRef)(0),u=(0,c.useRef)(!1);return r?{onBefore:function(){u.current||(o.current=0),u.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,-1===r||o.current<=r){var t=null!=e?e:Math.min(1e3*Math.pow(2,o.current),3e4);i.current=setTimeout(function(){u.current=!0,n.refresh()},t)}else o.current=0},onCancel:function(){o.current=0,i.current&&clearTimeout(i.current)}}:{}},B=e(25832),N=e.n(B),W=function(n,t){var e=t.throttleWait,r=t.throttleLeading,i=t.throttleTrailing,o=(0,c.useRef)(),f={};return(void 0!==r&&(f.leading=r),void 0!==i&&(f.trailing=i),(0,c.useEffect)(function(){if(e){var t=n.runAsync.bind(n);return o.current=N()(function(n){n()},e,f),n.runAsync=function(){for(var n=[],e=0;e0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=t||e<0||y&&r>=l}function w(){var n,e,r,o=i();if(b(o))return x(o);v=setTimeout(w,(n=o-d,e=o-p,r=t-n,y?a(r,l-e):r))}function x(n){return(v=void 0,g&&c)?m(n):(c=f=void 0,s)}function O(){var n,e=i(),r=b(e);if(c=arguments,f=this,d=e,r){if(void 0===v)return p=n=d,v=setTimeout(w,t),h?m(n):s;if(y)return clearTimeout(v),v=setTimeout(w,t),m(d)}return void 0===v&&(v=setTimeout(w,t)),s}return t=o(t)||0,r(e)&&(h=!!e.leading,l=(y="maxWait"in e)?u(o(e.maxWait)||0,t):l,g="trailing"in e?!!e.trailing:g),O.cancel=function(){void 0!==v&&clearTimeout(v),p=0,c=d=f=v=void 0},O.flush=function(){return void 0===v?s:x(i())},O}},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,e){var r=e(48276),i=e(60655);n.exports=function(n){return"symbol"==typeof n||i(n)&&"[object Symbol]"==r(n)}},49552:function(n,t,e){var r=e(41314);n.exports=function(){return r.Date.now()}},25832:function(n,t,e){var r=e(56762),i=e(74331);n.exports=function(n,t,e){var o=!0,u=!0;if("function"!=typeof n)throw TypeError("Expected a function");return i(e)&&(o="leading"in e?!!e.leading:o,u="trailing"in e?!!e.trailing:u),r(n,t,{leading:o,maxWait:t,trailing:u})}},64528:function(n,t,e){var r=e(84886),i=e(74331),o=e(50246),u=0/0,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,l=parseInt;n.exports=function(n){if("number"==typeof n)return n;if(o(n))return u;if(i(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=i(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=r(n);var e=c.test(n);return e||f.test(n)?l(n.slice(2),e?2:8):a.test(n)?u:+n}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/838-25c9b71d449c8910.js b/pilot/server/static/_next/static/chunks/877-cd5be147a1026461.js similarity index 82% rename from pilot/server/static/_next/static/chunks/838-25c9b71d449c8910.js rename to pilot/server/static/_next/static/chunks/877-cd5be147a1026461.js index 1d53feafb..1dc7c46b0 100644 --- a/pilot/server/static/_next/static/chunks/838-25c9b71d449c8910.js +++ b/pilot/server/static/_next/static/chunks/877-cd5be147a1026461.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[838],{70333:function(e,t,r){"use strict";r.d(t,{iN:function(){return g},R_:function(){return f},ez:function(){return d}});var n=r(32675),o=r(79185),i=[{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 a(e){var t=e.r,r=e.g,o=e.b,i=(0,n.py)(t,r,o);return{h:360*i.h,s:i.s,v:i.v}}function l(e){var t=e.r,r=e.g,o=e.b;return"#".concat((0,n.vq)(t,r,o,!1))}function s(e,t,r){var n;return(n=Math.round(e.h)>=60&&240>=Math.round(e.h)?r?Math.round(e.h)-2*t:Math.round(e.h)+2*t:r?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?n+=360:n>=360&&(n-=360),n}function c(e,t,r){var n;return 0===e.h&&0===e.s?e.s:((n=r?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(n=1),r&&5===t&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)))}function u(e,t,r){var n;return(n=r?e.v+.05*t:e.v-.15*t)>1&&(n=1),Number(n.toFixed(2))}function f(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=(0,o.uA)(e),f=5;f>0;f-=1){var d=a(n),p=l((0,o.uA)({h:s(d,f,!0),s:c(d,f,!0),v:u(d,f,!0)}));r.push(p)}r.push(l(n));for(var h=1;h<=4;h+=1){var g=a(n),m=l((0,o.uA)({h:s(g,h),s:c(g,h),v:u(g,h)}));r.push(m)}return"dark"===t.theme?i.map(function(e){var n,i,a,s=e.index,c=e.opacity;return l((n=(0,o.uA)(t.backgroundColor||"#141414"),i=(0,o.uA)(r[s]),a=100*c/100,{r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b}))}):r}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,r){"use strict";r.d(t,{E4:function(){return H},jG:function(){return U},t2:function(){return k},fp:function(){return A},xy:function(){return N}});var n=r(90151),o=r(88684),i=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)},a=r(86006);r(55567),r(81027);var l=r(18050),s=r(49449),c=r(65877),u=function(){function e(t){(0,l.Z)(this,e),(0,c.Z)(this,"instanceId",void 0),(0,c.Z)(this,"cache",new Map),this.instanceId=t}return(0,s.Z)(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var r=e.join("%"),n=t(this.cache.get(r));null===n?this.cache.delete(r):this.cache.set(r,n)}}]),e}(),f="data-token-hash",d="data-css-hash",p="__cssinjs_instance__",h=a.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,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(t){t[p]=t[p]||e,t[p]===e&&document.head.insertBefore(t,r)});var n={};Array.from(document.querySelectorAll("style[".concat(d,"]"))).forEach(function(t){var r,o=t.getAttribute(d);n[o]?t[p]===e&&(null===(r=t.parentNode)||void 0===r||r.removeChild(t)):n[o]=!0})}return new u(e)}(),defaultCache:!0}),g=r(965),m=r(71693),v=r(52160);function y(e){var t="";return Object.keys(e).forEach(function(r){var n=e[r];t+=r,n&&"object"===(0,g.Z)(n)?t+=y(n):t+=n}),t}var b="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),x="903px",C=void 0,w=r(60456);function S(e,t,r,o){var i=a.useContext(h).cache,l=[e].concat((0,n.Z)(t));return a.useMemo(function(){i.update(l,function(e){var t=(0,w.Z)(e||[],2),n=t[0];return[(void 0===n?0:n)+1,t[1]||r()]})},[l.join("_")]),a.useEffect(function(){return function(){i.update(l,function(e){var t=(0,w.Z)(e||[],2),r=t[0],n=void 0===r?0:r,i=t[1];return 0==n-1?(null==o||o(i,!1),null):[n-1,i]})}},l),i.get(l)[1]}var E={},$=new Map,k=function(e,t,r,n){var i=r.getDerivativeToken(e),a=(0,o.Z)((0,o.Z)({},i),t);return n&&(a=n(a)),a};function A(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,a.useContext)(h).cache.instanceId,l=r.salt,s=void 0===l?"":l,c=r.override,u=void 0===c?E:c,d=r.formatToken,g=a.useMemo(function(){return Object.assign.apply(Object,[{}].concat((0,n.Z)(t)))},[t]),m=a.useMemo(function(){return y(g)},[g]),v=a.useMemo(function(){return y(u)},[u]);return S("token",[s,e.id,m,v],function(){var t=k(g,u,e,d),r=i("".concat(s,"_").concat(y(t)));t._tokenKey=r,$.set(r,($.get(r)||0)+1);var n="".concat("css","-").concat(i(r));return t._hashId=n,[t,n]},function(e){var t,r,n;t=e[0]._tokenKey,$.set(t,($.get(t)||0)-1),(n=(r=Array.from($.keys())).filter(function(e){return 0>=($.get(e)||0)})).length1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},a=i.root,l=i.injectHash,s=i.parentSelectors,c=r.hashId,u=r.layer,f=(r.path,r.hashPriority),d=r.transformers,p=void 0===d?[]:d;r.linters;var h="",y={};function S(t){var n=t.getName(c);if(!y[n]){var o=e(t.style,r,{root:!1,parentSelectors:s}),i=(0,w.Z)(o,1)[0];y[n]="@keyframes ".concat(t.getName(c)).concat(i)}}if((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,r):t&&r.push(t)}),r})(Array.isArray(t)?t:[t]).forEach(function(t){var i="string"!=typeof t||a?t:{};if("string"==typeof i)h+="".concat(i,"\n");else if(i._keyframe)S(i);else{var u=p.reduce(function(e,t){var r;return(null==t?void 0:null===(r=t.visit)||void 0===r?void 0:r.call(t,e))||e},i);Object.keys(u).forEach(function(t){var i=u[t];if("object"!==(0,g.Z)(i)||!i||"animationName"===t&&i._keyframe||"object"===(0,g.Z)(i)&&i&&("_skip_check_"in i||R in i)){function d(e,t){var r=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),n=t;Z[e]||"number"!=typeof n||0===n||(n="".concat(n,"px")),"animationName"===e&&null!=t&&t._keyframe&&(S(t),n=t.getName(c)),h+="".concat(r,":").concat(n,";")}var p,m=null!==(p=null==i?void 0:i.value)&&void 0!==p?p:i;"object"===(0,g.Z)(i)&&null!=i&&i[R]&&Array.isArray(m)?m.forEach(function(e){d(t,e)}):d(t,m)}else{var v=!1,b=t.trim(),x=!1;(a||l)&&c?b.startsWith("@")?v=!0:b=function(e,t,r){if(!t)return e;var o=".".concat(t),i="low"===r?":where(".concat(o,")"):o;return e.split(",").map(function(e){var t,r=e.trim().split(/\s+/),o=r[0]||"",a=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[o="".concat(a).concat(i).concat(o.slice(a.length))].concat((0,n.Z)(r.slice(1))).join(" ")}).join(",")}(t,c,f):a&&!c&&("&"===b||""===b)&&(b="",x=!0);var C=e(i,r,{root:x,injectHash:v,parentSelectors:[].concat((0,n.Z)(s),[b])}),E=(0,w.Z)(C,2),$=E[0],k=E[1];y=(0,o.Z)((0,o.Z)({},y),k),h+="".concat(b).concat($)}})}}),a){if(u&&(void 0===C&&(C=function(e,t){if((0,m.Z)()){(0,v.hq)(e,b);var r,n=document.createElement("div");n.style.position="fixed",n.style.left="0",n.style.top="0",null==t||t(n),document.body.appendChild(n);var o=getComputedStyle(n).width===x;return null===(r=n.parentNode)||void 0===r||r.removeChild(n),(0,v.jL)(b),o}return!1}("@layer ".concat(b," { .").concat(b," { width: ").concat(x,"!important; } }"),function(e){e.className=b})),C)){var E=u.split(","),$=E[E.length-1].trim();h="@layer ".concat($," {").concat(h,"}"),E.length>1&&(h="@layer ".concat(u,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,y]};function _(){return null}function N(e,t){var r=e.token,o=e.path,l=e.hashId,s=e.layer,u=e.nonce,g=a.useContext(h),m=g.autoClear,y=(g.mock,g.defaultCache),b=g.hashPriority,x=g.container,C=g.ssrInline,E=g.transformers,$=g.linters,k=g.cache,A=r._tokenKey,Z=[A].concat((0,n.Z)(o)),B=S("style",Z,function(){var e=F(t(),{hashId:l,hashPriority:b,layer:s,path:o.join("-"),transformers:E,linters:$}),r=(0,w.Z)(e,2),n=r[0],a=r[1],c=M(n),h=i("".concat(Z.join("%")).concat(c));if(j){var g={mark:d,prepend:"queue",attachTo:x},m="function"==typeof u?u():u;m&&(g.csp={nonce:m});var y=(0,v.hq)(c,h,g);y[p]=k.instanceId,y.setAttribute(f,A),Object.keys(a).forEach(function(e){(0,v.hq)(M(a[e]),"_effect-".concat(e),g)})}return[c,A,h]},function(e,t){var r=(0,w.Z)(e,3)[2];(t||m)&&j&&(0,v.jL)(r,{mark:d})}),P=(0,w.Z)(B,3),T=P[0],R=P[1],N=P[2];return function(e){var t,r;return t=C&&!j&&y?a.createElement("style",(0,O.Z)({},(r={},(0,c.Z)(r,f,R),(0,c.Z)(r,d,N),r),{dangerouslySetInnerHTML:{__html:T}})):a.createElement(_,null),a.createElement(a.Fragment,null,t,e)}}var H=function(){function e(t,r){(0,l.Z)(this,e),(0,c.Z)(this,"name",void 0),(0,c.Z)(this,"style",void 0),(0,c.Z)(this,"_keyframe",!0),this.name=t,this.style=r}return(0,s.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}(),D=function(){function e(){(0,l.Z)(this,e),(0,c.Z)(this,"cache",void 0),(0,c.Z)(this,"keys",void 0),(0,c.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,s.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t,r;o=null===(t=o)||void 0===t?void 0:null===(r=t.map)||void 0===r?void 0:r.get(e)}else o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&n&&(o.value[1]=this.cacheCallTimes++),null===(r=o)||void 0===r?void 0:r.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,r){var n=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 r=(0,w.Z)(e,2)[1];return n.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),L+=1}return(0,s.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,r){return r(e,t)},void 0)}}]),e}(),z=new D;function U(e){var t=Array.isArray(e)?e:[e];return z.has(t)||z.set(t,new I(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,r){"use strict";r.d(t,{Z:function(){return O}});var n=r(40431),o=r(60456),i=r(65877),a=r(89301),l=r(86006),s=r(8683),c=r.n(s),u=r(70333),f=r(83346),d=r(88684),p=r(965),h=r(5004),g=r(52160),m=r(60618);function v(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,r){var n=e[r];return"class"===r?(t.className=n,delete t.class):t[r]=n,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),r=t.csp,n=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";n&&(o=o.replace(/anticon/g,n)),(0,l.useEffect)(function(){var t=e.current,n=(0,m.A)(t);(0,g.hq)(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})},[])},w=["icon","className","onClick","style","primaryColor","secondaryColor"],S={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},E=function(e){var t,r,n=e.icon,o=e.className,i=e.onClick,s=e.style,c=e.primaryColor,u=e.secondaryColor,f=(0,a.Z)(e,w),p=l.useRef(),g=S;if(c&&(g={primaryColor:c,secondaryColor:u||b(c)}),C(p),t=v(n),r="icon should be icon definiton, but got ".concat(n),(0,h.ZP)(t,"[@ant-design/icons] ".concat(r)),!v(n))return null;var m=n;return m&&"function"==typeof m.icon&&(m=(0,d.Z)((0,d.Z)({},m),{},{icon:m.icon(g.primaryColor,g.secondaryColor)})),function e(t,r,n){return n?l.createElement(t.tag,(0,d.Z)((0,d.Z)({key:r},y(t.attrs)),n),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))})):l.createElement(t.tag,(0,d.Z)({key:r},y(t.attrs)),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))}))}(m.icon,"svg-".concat(m.name),(0,d.Z)((0,d.Z)({className:o,onClick:i,style:s,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:p}))};function $(e){var t=x(e),r=(0,o.Z)(t,2),n=r[0],i=r[1];return E.setTwoToneColors({primaryColor:n,secondaryColor:i})}E.displayName="IconReact",E.getTwoToneColors=function(){return(0,d.Z)({},S)},E.setTwoToneColors=function(e){var t=e.primaryColor,r=e.secondaryColor;S.primaryColor=t,S.secondaryColor=r||b(t),S.calculated=!!r};var k=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];$(u.iN.primary);var A=l.forwardRef(function(e,t){var r,s=e.className,u=e.icon,d=e.spin,p=e.rotate,h=e.tabIndex,g=e.onClick,m=e.twoToneColor,v=(0,a.Z)(e,k),y=l.useContext(f.Z),b=y.prefixCls,C=void 0===b?"anticon":b,w=y.rootClassName,S=c()(w,C,(r={},(0,i.Z)(r,"".concat(C,"-").concat(u.name),!!u.name),(0,i.Z)(r,"".concat(C,"-spin"),!!d||"loading"===u.name),r),s),$=h;void 0===$&&g&&($=-1);var A=x(m),O=(0,o.Z)(A,2),Z=O[0],B=O[1];return l.createElement("span",(0,n.Z)({role:"img","aria-label":u.name},v,{ref:t,tabIndex:$,onClick:g,className:S}),l.createElement(E,{icon:u,primaryColor:Z,secondaryColor:B,style:p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0}))});A.displayName="AntdIcon",A.getTwoToneColor=function(){var e=E.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},A.setTwoToneColor=$;var O=A},83346:function(e,t,r){"use strict";var n=(0,r(86006).createContext)({});t.Z=n},34777:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},56222:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={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"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},31533:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={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"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},27977:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},49132:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},75710:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={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"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},32675:function(e,t,r){"use strict";r.d(t,{T6:function(){return d},VD:function(){return p},WE:function(){return c},Yt:function(){return h},lC:function(){return i},py:function(){return s},rW:function(){return o},s:function(){return f},ve:function(){return l},vq:function(){return u}});var n=r(25752);function o(e,t,r){return{r:255*(0,n.sh)(e,255),g:255*(0,n.sh)(t,255),b:255*(0,n.sh)(r,255)}}function i(e,t,r){var o=Math.max(e=(0,n.sh)(e,255),t=(0,n.sh)(t,255),r=(0,n.sh)(r,255)),i=Math.min(e,t,r),a=0,l=0,s=(o+i)/2;if(o===i)l=0,a=0;else{var c=o-i;switch(l=s>.5?c/(2-o-i):c/(o+i),o){case e:a=(t-r)/c+(t1&&(r-=1),r<1/6)?e+(t-e)*(6*r):r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function l(e,t,r){if(e=(0,n.sh)(e,360),t=(0,n.sh)(t,100),r=(0,n.sh)(r,100),0===t)i=r,l=r,o=r;else{var o,i,l,s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;o=a(c,s,e+1/3),i=a(c,s,e),l=a(c,s,e-1/3)}return{r:255*o,g:255*i,b:255*l}}function s(e,t,r){var o=Math.max(e=(0,n.sh)(e,255),t=(0,n.sh)(t,255),r=(0,n.sh)(r,255)),i=Math.min(e,t,r),a=0,l=o-i;if(o===i)a=0;else{switch(o){case e:a=(t-r)/l+(t>16,g:(65280&e)>>8,b:255&e}}},29888:function(e,t,r){"use strict";r.d(t,{R:function(){return n}});var n={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,r){"use strict";r.d(t,{uA:function(){return a}});var n=r(32675),o=r(29888),i=r(25752);function a(e){var t={r:0,g:0,b:0},r=1,a=null,l=null,s=null,c=!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 r=u.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=u.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=u.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=u.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=u.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=u.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=u.hex8.exec(e))?{r:(0,n.VD)(r[1]),g:(0,n.VD)(r[2]),b:(0,n.VD)(r[3]),a:(0,n.T6)(r[4]),format:t?"name":"hex8"}:(r=u.hex6.exec(e))?{r:(0,n.VD)(r[1]),g:(0,n.VD)(r[2]),b:(0,n.VD)(r[3]),format:t?"name":"hex"}:(r=u.hex4.exec(e))?{r:(0,n.VD)(r[1]+r[1]),g:(0,n.VD)(r[2]+r[2]),b:(0,n.VD)(r[3]+r[3]),a:(0,n.T6)(r[4]+r[4]),format:t?"name":"hex8"}:!!(r=u.hex3.exec(e))&&{r:(0,n.VD)(r[1]+r[1]),g:(0,n.VD)(r[2]+r[2]),b:(0,n.VD)(r[3]+r[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(f(e.r)&&f(e.g)&&f(e.b)?(t=(0,n.rW)(e.r,e.g,e.b),c=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):f(e.h)&&f(e.s)&&f(e.v)?(a=(0,i.JX)(e.s),l=(0,i.JX)(e.v),t=(0,n.WE)(e.h,a,l),c=!0,d="hsv"):f(e.h)&&f(e.s)&&f(e.l)&&(a=(0,i.JX)(e.s),s=(0,i.JX)(e.l),t=(0,n.ve)(e.h,a,s),c=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=(0,i.Yq)(r),{ok:c,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:r}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:RegExp("rgb"+s),rgba:RegExp("rgba"+c),hsl:RegExp("hsl"+s),hsla:RegExp("hsla"+c),hsv:RegExp("hsv"+s),hsva:RegExp("hsva"+c),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,r){"use strict";r.d(t,{C:function(){return l}});var n=r(32675),o=r(29888),i=r(79185),a=r(25752),l=function(){function e(t,r){if(void 0===t&&(t=""),void 0===r&&(r={}),t instanceof e)return t;"number"==typeof t&&(t=(0,n.Yt)(t)),this.originalInput=t;var o,a=(0,i.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=r.format)&&void 0!==o?o:a.format,this.gradientType=r.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=a.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,r=e.g/255,n=e.b/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.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,n.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,n.py)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,n.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,n.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,n.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,n.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),r=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(r,")"):"rgba(".concat(e,", ").concat(t,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.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,a.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,n.vq)(this.r,this.g,this.b,!1),t=0,r=Object.entries(o.R);t=0;return!t&&n&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||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 r=this.toHsl();return r.l+=t/100,r.l=(0,a.V2)(r.l),new e(r)},e.prototype.brighten=function(t){void 0===t&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-(255*(t/100))))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-(255*(t/100))))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-(255*(t/100))))),new e(r)},e.prototype.darken=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=(0,a.V2)(r.l),new e(r)},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 r=this.toHsl();return r.s-=t/100,r.s=(0,a.V2)(r.s),new e(r)},e.prototype.saturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=(0,a.V2)(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){void 0===r&&(r=50);var n=this.toRgb(),o=new e(t).toRgb(),i=r/100,a={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return new e(a)},e.prototype.analogous=function(t,r){void 0===t&&(t=6),void 0===r&&(r=30);var n=this.toHsl(),o=360/r,i=[this];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var r=this.toHsv(),n=r.h,o=r.s,i=r.v,a=[],l=1/t;t--;)a.push(new e({h:n,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),o=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/o,g:(r.g*r.a+n.g*n.a*(1-r.a))/o,b:(r.b*r.a+n.b*n.a*(1-r.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 r=this.toHsl(),n=r.h,o=[this],i=360/t,a=1;aMath.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 i(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}r.d(t,{FZ:function(){return l},JX:function(){return a},V2:function(){return o},Yq:function(){return i},sh:function(){return n}})},43709:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=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,r),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 r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t-1&&!e.return)switch(e.type){case a.h5:e.return=function e(t,r){switch((0,i.vp)(t,r)){case 5103:return a.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 a.G$+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return a.G$+t+a.uj+t+a.MS+t+t;case 6828:case 4268:return a.G$+t+a.MS+t+t;case 6165:return a.G$+t+a.MS+"flex-"+t+t;case 5187:return a.G$+t+(0,i.gx)(t,/(\w+).+(:[^]+)/,a.G$+"box-$1$2"+a.MS+"flex-$1$2")+t;case 5443:return a.G$+t+a.MS+"flex-item-"+(0,i.gx)(t,/flex-|-self/,"")+t;case 4675:return a.G$+t+a.MS+"flex-line-pack"+(0,i.gx)(t,/align-content|flex-|-self/,"")+t;case 5548:return a.G$+t+a.MS+(0,i.gx)(t,"shrink","negative")+t;case 5292:return a.G$+t+a.MS+(0,i.gx)(t,"basis","preferred-size")+t;case 6060:return a.G$+"box-"+(0,i.gx)(t,"-grow","")+a.G$+t+a.MS+(0,i.gx)(t,"grow","positive")+t;case 4554:return a.G$+(0,i.gx)(t,/([^-])(transform)/g,"$1"+a.G$+"$2")+t;case 6187:return(0,i.gx)((0,i.gx)((0,i.gx)(t,/(zoom-|grab)/,a.G$+"$1"),/(image-set)/,a.G$+"$1"),t,"")+t;case 5495:case 3959:return(0,i.gx)(t,/(image-set\([^]*)/,a.G$+"$1$`$1");case 4968:return(0,i.gx)((0,i.gx)(t,/(.+:)(flex-)?(.*)/,a.G$+"box-pack:$3"+a.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a.G$+t+t;case 4095:case 3583:case 4068:case 2532:return(0,i.gx)(t,/(.+)-inline(.+)/,a.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,i.to)(t)-1-r>6)switch((0,i.uO)(t,r+1)){case 109:if(45!==(0,i.uO)(t,r+4))break;case 102:return(0,i.gx)(t,/(.+:)(.+)-([^]+)/,"$1"+a.G$+"$2-$3$1"+a.uj+(108==(0,i.uO)(t,r+3)?"$3":"$2-$3"))+t;case 115:return~(0,i.Cw)(t,"stretch")?e((0,i.gx)(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==(0,i.uO)(t,r+1))break;case 6444:switch((0,i.uO)(t,(0,i.to)(t)-3-(~(0,i.Cw)(t,"!important")&&10))){case 107:return(0,i.gx)(t,":",":"+a.G$)+t;case 101:return(0,i.gx)(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a.G$+(45===(0,i.uO)(t,14)?"inline-":"")+"box$3$1"+a.G$+"$2$3$1"+a.MS+"$2box$3")+t}break;case 5936:switch((0,i.uO)(t,r+11)){case 114:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return a.G$+t+a.MS+t+t}return t}(e.value,e.length);break;case a.lK:return(0,l.q)([(0,o.JG)(e,{value:(0,i.gx)(e.value,"@","@"+a.G$)})],n);case a.Fr:if(e.length)return(0,i.$e)(e.props,function(t){switch((0,i.EQ)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,l.q)([(0,o.JG)(e,{props:[(0,i.gx)(t,/:(read-\w+)/,":"+a.uj+"$1")]})],n);case"::placeholder":return(0,l.q)([(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,":"+a.G$+"input-$1")]}),(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,":"+a.uj+"$1")]}),(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,a.MS+"input-$1")]})],n)}return""})}}],g=function(e){var t,r,o,a,c,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,m={},v=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+u+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(a)+c,styles:a,next:n}}},85124:function(e,t,r){"use strict";r.d(t,{L:function(){return a},j:function(){return l}});var n,o=r(86006),i=!!(n||(n=r.t(o,2))).useInsertionEffect&&(n||(n=r.t(o,2))).useInsertionEffect,a=i||function(e){return e()},l=i||o.useLayoutEffect},75941:function(e,t,r){"use strict";function n(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "}),n}r.d(t,{My:function(){return i},fp:function(){return n},hC:function(){return o}});var o=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},i=function(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}}},18587:function(e,t,r){"use strict";r.d(t,{d6:function(){return i},sI:function(){return a}});var n=r(13809),o=r(88539);let i=(e,t)=>(0,n.Z)(e,t,"Joy"),a=(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,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(40431);function o(e,t,r){return void 0===e||"string"==typeof e?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,r)})}},87862:function(e,t,r){"use strict";function n(e,t=[]){if(void 0===e)return{};let r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}r.d(t,{Z:function(){return n}})},85059:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(89791),i=r(87862);function a(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}function l(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:l,externalForwardedProps:s,className:c}=e;if(!t){let e=(0,o.Z)(null==s?void 0:s.className,null==l?void 0:l.className,c,null==r?void 0:r.className),t=(0,n.Z)({},null==r?void 0:r.style,null==s?void 0:s.style,null==l?void 0:l.style),i=(0,n.Z)({},r,s,l);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}let u=(0,i.Z)((0,n.Z)({},s,l)),f=a(l),d=a(s),p=t(u),h=(0,o.Z)(null==p?void 0:p.className,null==r?void 0:r.className,c,null==s?void 0:s.className,null==l?void 0:l.className),g=(0,n.Z)({},null==p?void 0:p.style,null==r?void 0:r.style,null==s?void 0:s.style,null==l?void 0:l.style),m=(0,n.Z)({},p,r,d,f);return h.length>0&&(m.className=h),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:p.ref}}},95596:function(e,t,r){"use strict";function n(e,t,r){return"function"==typeof e?e(t,r):e}r.d(t,{Z:function(){return n}})},47093:function(e,t,r){"use strict";r.d(t,{VT:function(){return s},do:function(){return c}});var n=r(86006),o=r(29720),i=r(98918),a=r(9268);let l=n.createContext(void 0),s=e=>{let t=n.useContext(l);return{getColor:(r,n)=>t&&e&&t.includes(e)?r||"context":r||n}};function c({children:e,variant:t}){var r;let n=(0,o.F)();return(0,a.jsx)(l.Provider,{value:t?(null!=(r=n.colorInversionConfig)?r:i.Z.colorInversionConfig)[t]:void 0,children:e})}t.ZP=l},29720:function(e,t,r){"use strict";r.d(t,{F:function(){return c},Z:function(){return u}}),r(86006);var n=r(95887),o=r(14446),i=r(98918),a=r(41287),l=r(8622),s=r(9268);let c=()=>{let e=(0,n.Z)(i.Z);return e[l.Z]||e};function u({children:e,theme:t}){let r=i.Z;return t&&(r=(0,a.Z)(l.Z in t?t[l.Z]:t)),(0,s.jsx)(o.Z,{theme:r,themeId:t&&l.Z in t?l.Z:void 0,children:e})}},98918:function(e,t,r){"use strict";var n=r(41287);let o=(0,n.Z)();t.Z=o},41287:function(e,t,r){"use strict";r.d(t,{Z:function(){return A}});var n=r(40431),o=r(46750),i=r(95135),a=r(82190),l=r(23343),s=r(57716),c=r(93815);let u=(e,t,r,n=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=r:o&&"object"==typeof o&&(o[e]=r):o&&"object"==typeof o&&(o[e]||(o[e]=n.includes(e)?[]:{}),o=o[e])})},f=(e,t,r)=>{!function e(n,o=[],i=[]){Object.entries(n).forEach(([n,a])=>{r&&(!r||r([...o,n]))||null==a||("object"==typeof a&&Object.keys(a).length>0?e(a,[...o,n],Array.isArray(a)?[...i,n]:i):t([...o,n],a,i))})}(e)},d=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t)))return t;let r=e[e.length-1];return r.toLowerCase().indexOf("opacity")>=0?t:`${t}px`}return t};function p(e,t){let{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return f(e,(e,t,l)=>{if(("string"==typeof t||"number"==typeof t)&&(!n||!n(e,t))){let n=`--${r?`${r}-`:""}${e.join("-")}`;Object.assign(o,{[n]:d(e,t)}),u(i,e,`var(${n})`,l),u(a,e,`var(${n}, ${t})`,l)}},e=>"vars"===e[0]),{css:o,vars:i,varsWithDefaults:a}}let h=["colorSchemes","components"],g=["light"];var m=function(e,t){let{colorSchemes:r={}}=e,a=(0,o.Z)(e,h),{vars:l,css:s,varsWithDefaults:c}=p(a,t),u=c,f={},{light:d}=r,m=(0,o.Z)(r,g);if(Object.entries(m||{}).forEach(([e,r])=>{let{vars:n,css:o,varsWithDefaults:a}=p(r,t);u=(0,i.Z)(u,a),f[e]={css:o,vars:n}}),d){let{css:e,vars:r,varsWithDefaults:n}=p(d,t);u=(0,i.Z)(u,n),f.light={css:e,vars:r}}return{vars:u,generateCssVars:e=>e?{css:(0,n.Z)({},f[e].css),vars:f[e].vars}:{css:(0,n.Z)({},s),vars:l}}},v=r(51579),y=r(2272);let b=(0,n.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=r(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 w=r(18587),S=r(52428);let E=["cssVarPrefix","breakpoints","spacing","components","variants","colorInversion","shouldSkipGeneratingVar"],$=["colorSchemes"],k=(e="joy")=>(0,a.Z)(e);function A(e){var t,r,a,u,f,d,p,h,g,y,A,O,Z,B,P,T,j,R,M,F,_,N,H,D,L,I,z,U,W,G,K,q,V,X,Y,J,Q,ee,et,er,en,eo,ei,ea,el,es,ec,eu,ef,ed,ep,eh,eg,em,ev,ey;let eb=e||{},{cssVarPrefix:ex="joy",breakpoints:eC,spacing:ew,components:eS,variants:eE,colorInversion:e$,shouldSkipGeneratingVar:ek=C}=eb,eA=(0,o.Z)(eb,E),eO=k(ex),eZ={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"}},eB=e=>{var t;let r=e.split("-"),n=r[1],o=r[2];return eO(e,null==(t=eZ[n])?void 0:t[o])},eP=e=>({plainColor:eB(`palette-${e}-600`),plainHoverBg:eB(`palette-${e}-100`),plainActiveBg:eB(`palette-${e}-200`),plainDisabledColor:eB(`palette-${e}-200`),outlinedColor:eB(`palette-${e}-500`),outlinedBorder:eB(`palette-${e}-200`),outlinedHoverBg:eB(`palette-${e}-100`),outlinedHoverBorder:eB(`palette-${e}-300`),outlinedActiveBg:eB(`palette-${e}-200`),outlinedDisabledColor:eB(`palette-${e}-100`),outlinedDisabledBorder:eB(`palette-${e}-100`),softColor:eB(`palette-${e}-600`),softBg:eB(`palette-${e}-100`),softHoverBg:eB(`palette-${e}-200`),softActiveBg:eB(`palette-${e}-300`),softDisabledColor:eB(`palette-${e}-300`),softDisabledBg:eB(`palette-${e}-50`),solidColor:"#fff",solidBg:eB(`palette-${e}-500`),solidHoverBg:eB(`palette-${e}-600`),solidActiveBg:eB(`palette-${e}-700`),solidDisabledColor:"#fff",solidDisabledBg:eB(`palette-${e}-200`)}),eT=e=>({plainColor:eB(`palette-${e}-300`),plainHoverBg:eB(`palette-${e}-800`),plainActiveBg:eB(`palette-${e}-700`),plainDisabledColor:eB(`palette-${e}-800`),outlinedColor:eB(`palette-${e}-200`),outlinedBorder:eB(`palette-${e}-700`),outlinedHoverBg:eB(`palette-${e}-800`),outlinedHoverBorder:eB(`palette-${e}-600`),outlinedActiveBg:eB(`palette-${e}-900`),outlinedDisabledColor:eB(`palette-${e}-800`),outlinedDisabledBorder:eB(`palette-${e}-800`),softColor:eB(`palette-${e}-200`),softBg:eB(`palette-${e}-900`),softHoverBg:eB(`palette-${e}-800`),softActiveBg:eB(`palette-${e}-700`),softDisabledColor:eB(`palette-${e}-800`),softDisabledBg:eB(`palette-${e}-900`),solidColor:"#fff",solidBg:eB(`palette-${e}-600`),solidHoverBg:eB(`palette-${e}-700`),solidActiveBg:eB(`palette-${e}-800`),solidDisabledColor:eB(`palette-${e}-700`),solidDisabledBg:eB(`palette-${e}-900`)}),ej={palette:{mode:"light",primary:(0,n.Z)({},eZ.primary,eP("primary")),neutral:(0,n.Z)({},eZ.neutral,{plainColor:eB("palette-neutral-800"),plainHoverColor:eB("palette-neutral-900"),plainHoverBg:eB("palette-neutral-100"),plainActiveBg:eB("palette-neutral-200"),plainDisabledColor:eB("palette-neutral-300"),outlinedColor:eB("palette-neutral-800"),outlinedBorder:eB("palette-neutral-200"),outlinedHoverColor:eB("palette-neutral-900"),outlinedHoverBg:eB("palette-neutral-100"),outlinedHoverBorder:eB("palette-neutral-300"),outlinedActiveBg:eB("palette-neutral-200"),outlinedDisabledColor:eB("palette-neutral-300"),outlinedDisabledBorder:eB("palette-neutral-100"),softColor:eB("palette-neutral-800"),softBg:eB("palette-neutral-100"),softHoverColor:eB("palette-neutral-900"),softHoverBg:eB("palette-neutral-200"),softActiveBg:eB("palette-neutral-300"),softDisabledColor:eB("palette-neutral-300"),softDisabledBg:eB("palette-neutral-50"),solidColor:eB("palette-common-white"),solidBg:eB("palette-neutral-600"),solidHoverBg:eB("palette-neutral-700"),solidActiveBg:eB("palette-neutral-800"),solidDisabledColor:eB("palette-neutral-300"),solidDisabledBg:eB("palette-neutral-50")}),danger:(0,n.Z)({},eZ.danger,eP("danger")),info:(0,n.Z)({},eZ.info,eP("info")),success:(0,n.Z)({},eZ.success,eP("success")),warning:(0,n.Z)({},eZ.warning,eP("warning"),{solidColor:eB("palette-warning-800"),solidBg:eB("palette-warning-200"),solidHoverBg:eB("palette-warning-300"),solidActiveBg:eB("palette-warning-400"),solidDisabledColor:eB("palette-warning-200"),solidDisabledBg:eB("palette-warning-50"),softColor:eB("palette-warning-800"),softBg:eB("palette-warning-50"),softHoverBg:eB("palette-warning-100"),softActiveBg:eB("palette-warning-200"),softDisabledColor:eB("palette-warning-200"),softDisabledBg:eB("palette-warning-50"),outlinedColor:eB("palette-warning-800"),outlinedHoverBg:eB("palette-warning-50"),plainColor:eB("palette-warning-800"),plainHoverBg:eB("palette-warning-50")}),common:{white:"#FFF",black:"#09090D"},text:{primary:eB("palette-neutral-800"),secondary:eB("palette-neutral-600"),tertiary:eB("palette-neutral-500")},background:{body:eB("palette-common-white"),surface:eB("palette-common-white"),popup:eB("palette-common-white"),level1:eB("palette-neutral-50"),level2:eB("palette-neutral-100"),level3:eB("palette-neutral-200"),tooltip:eB("palette-neutral-800"),backdrop:"rgba(255 255 255 / 0.5)"},divider:`rgba(${eO("palette-neutral-mainChannel",(0,l.n8)(eZ.neutral[500]))} / 0.28)`,focusVisible:eB("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"187 187 187"},eR={palette:{mode:"dark",primary:(0,n.Z)({},eZ.primary,eT("primary")),neutral:(0,n.Z)({},eZ.neutral,{plainColor:eB("palette-neutral-200"),plainHoverColor:eB("palette-neutral-50"),plainHoverBg:eB("palette-neutral-800"),plainActiveBg:eB("palette-neutral-700"),plainDisabledColor:eB("palette-neutral-700"),outlinedColor:eB("palette-neutral-200"),outlinedBorder:eB("palette-neutral-800"),outlinedHoverColor:eB("palette-neutral-50"),outlinedHoverBg:eB("palette-neutral-800"),outlinedHoverBorder:eB("palette-neutral-700"),outlinedActiveBg:eB("palette-neutral-800"),outlinedDisabledColor:eB("palette-neutral-800"),outlinedDisabledBorder:eB("palette-neutral-800"),softColor:eB("palette-neutral-200"),softBg:eB("palette-neutral-800"),softHoverColor:eB("palette-neutral-50"),softHoverBg:eB("palette-neutral-700"),softActiveBg:eB("palette-neutral-600"),softDisabledColor:eB("palette-neutral-700"),softDisabledBg:eB("palette-neutral-900"),solidColor:eB("palette-common-white"),solidBg:eB("palette-neutral-600"),solidHoverBg:eB("palette-neutral-700"),solidActiveBg:eB("palette-neutral-800"),solidDisabledColor:eB("palette-neutral-700"),solidDisabledBg:eB("palette-neutral-900")}),danger:(0,n.Z)({},eZ.danger,eT("danger")),info:(0,n.Z)({},eZ.info,eT("info")),success:(0,n.Z)({},eZ.success,eT("success"),{solidColor:"#fff",solidBg:eB("palette-success-600"),solidHoverBg:eB("palette-success-700"),solidActiveBg:eB("palette-success-800")}),warning:(0,n.Z)({},eZ.warning,eT("warning"),{solidColor:eB("palette-common-black"),solidBg:eB("palette-warning-300"),solidHoverBg:eB("palette-warning-400"),solidActiveBg:eB("palette-warning-500")}),common:{white:"#FFF",black:"#09090D"},text:{primary:eB("palette-neutral-100"),secondary:eB("palette-neutral-300"),tertiary:eB("palette-neutral-400")},background:{body:eB("palette-neutral-900"),surface:eB("palette-common-black"),popup:eB("palette-neutral-900"),level1:eB("palette-neutral-800"),level2:eB("palette-neutral-700"),level3:eB("palette-neutral-600"),tooltip:eB("palette-neutral-600"),backdrop:`rgba(${eO("palette-neutral-darkChannel",(0,l.n8)(eZ.neutral[800]))} / 0.5)`},divider:`rgba(${eO("palette-neutral-mainChannel",(0,l.n8)(eZ.neutral[500]))} / 0.24)`,focusVisible:eB("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0"},eM='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',eF=(0,n.Z)({body:`"Public Sans", ${eO(`fontFamily-fallback, ${eM}`)}`,display:`"Public Sans", ${eO(`fontFamily-fallback, ${eM}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:eM},eA.fontFamily),e_=(0,n.Z)({xs:200,sm:300,md:500,lg:600,xl:700,xl2:800,xl3:900},eA.fontWeight),eN=(0,n.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"},eA.fontSize),eH=(0,n.Z)({sm:1.25,md:1.5,lg:1.7},eA.lineHeight),eD=(0,n.Z)({sm:"-0.01em",md:"0.083em",lg:"0.125em"},eA.letterSpacing),eL={colorSchemes:{light:ej,dark:eR},fontSize:eN,fontFamily:eF,fontWeight:e_,focus:{thickness:"2px",selector:`&.${(0,w.d6)("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${eO("focus-thickness",null!=(t=null==(r=eA.focus)?void 0:r.thickness)?t:"2px")})`,outline:`${eO("focus-thickness",null!=(a=null==(u=eA.focus)?void 0:u.thickness)?a:"2px")} solid ${eO("palette-focusVisible",eZ.primary[500])}`}},lineHeight:eH,letterSpacing:eD,radius:{xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"20px"},shadow:{xs:`${eO("shadowRing",null!=(f=null==(d=eA.colorSchemes)||null==(d=d.light)?void 0:d.shadowRing)?f:ej.shadowRing)}, 0 1px 2px 0 rgba(${eO("shadowChannel",null!=(p=null==(h=eA.colorSchemes)||null==(h=h.light)?void 0:h.shadowChannel)?p:ej.shadowChannel)} / 0.12)`,sm:`${eO("shadowRing",null!=(g=null==(y=eA.colorSchemes)||null==(y=y.light)?void 0:y.shadowRing)?g:ej.shadowRing)}, 0.3px 0.8px 1.1px rgba(${eO("shadowChannel",null!=(A=null==(O=eA.colorSchemes)||null==(O=O.light)?void 0:O.shadowChannel)?A:ej.shadowChannel)} / 0.11), 0.5px 1.3px 1.8px -0.6px rgba(${eO("shadowChannel",null!=(Z=null==(B=eA.colorSchemes)||null==(B=B.light)?void 0:B.shadowChannel)?Z:ej.shadowChannel)} / 0.18), 1.1px 2.7px 3.8px -1.2px rgba(${eO("shadowChannel",null!=(P=null==(T=eA.colorSchemes)||null==(T=T.light)?void 0:T.shadowChannel)?P:ej.shadowChannel)} / 0.26)`,md:`${eO("shadowRing",null!=(j=null==(R=eA.colorSchemes)||null==(R=R.light)?void 0:R.shadowRing)?j:ej.shadowRing)}, 0.3px 0.8px 1.1px rgba(${eO("shadowChannel",null!=(M=null==(F=eA.colorSchemes)||null==(F=F.light)?void 0:F.shadowChannel)?M:ej.shadowChannel)} / 0.12), 1.1px 2.8px 3.9px -0.4px rgba(${eO("shadowChannel",null!=(_=null==(N=eA.colorSchemes)||null==(N=N.light)?void 0:N.shadowChannel)?_:ej.shadowChannel)} / 0.17), 2.4px 6.1px 8.6px -0.8px rgba(${eO("shadowChannel",null!=(H=null==(D=eA.colorSchemes)||null==(D=D.light)?void 0:D.shadowChannel)?H:ej.shadowChannel)} / 0.23), 5.3px 13.3px 18.8px -1.2px rgba(${eO("shadowChannel",null!=(L=null==(I=eA.colorSchemes)||null==(I=I.light)?void 0:I.shadowChannel)?L:ej.shadowChannel)} / 0.29)`,lg:`${eO("shadowRing",null!=(z=null==(U=eA.colorSchemes)||null==(U=U.light)?void 0:U.shadowRing)?z:ej.shadowRing)}, 0.3px 0.8px 1.1px rgba(${eO("shadowChannel",null!=(W=null==(G=eA.colorSchemes)||null==(G=G.light)?void 0:G.shadowChannel)?W:ej.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${eO("shadowChannel",null!=(K=null==(q=eA.colorSchemes)||null==(q=q.light)?void 0:q.shadowChannel)?K:ej.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${eO("shadowChannel",null!=(V=null==(X=eA.colorSchemes)||null==(X=X.light)?void 0:X.shadowChannel)?V:ej.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${eO("shadowChannel",null!=(Y=null==(J=eA.colorSchemes)||null==(J=J.light)?void 0:J.shadowChannel)?Y:ej.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${eO("shadowChannel",null!=(Q=null==(ee=eA.colorSchemes)||null==(ee=ee.light)?void 0:ee.shadowChannel)?Q:ej.shadowChannel)} / 0.21)`,xl:`${eO("shadowRing",null!=(et=null==(er=eA.colorSchemes)||null==(er=er.light)?void 0:er.shadowRing)?et:ej.shadowRing)}, 0.3px 0.8px 1.1px rgba(${eO("shadowChannel",null!=(en=null==(eo=eA.colorSchemes)||null==(eo=eo.light)?void 0:eo.shadowChannel)?en:ej.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${eO("shadowChannel",null!=(ei=null==(ea=eA.colorSchemes)||null==(ea=ea.light)?void 0:ea.shadowChannel)?ei:ej.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${eO("shadowChannel",null!=(el=null==(es=eA.colorSchemes)||null==(es=es.light)?void 0:es.shadowChannel)?el:ej.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${eO("shadowChannel",null!=(ec=null==(eu=eA.colorSchemes)||null==(eu=eu.light)?void 0:eu.shadowChannel)?ec:ej.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${eO("shadowChannel",null!=(ef=null==(ed=eA.colorSchemes)||null==(ed=ed.light)?void 0:ed.shadowChannel)?ef:ej.shadowChannel)} / 0.21), 10.2px 25.5px 36px -0.9px rgba(${eO("shadowChannel",null!=(ep=null==(eh=eA.colorSchemes)||null==(eh=eh.light)?void 0:eh.shadowChannel)?ep:ej.shadowChannel)} / 0.24), 14.8px 36.8px 52.1px -1.1px rgba(${eO("shadowChannel",null!=(eg=null==(em=eA.colorSchemes)||null==(em=em.light)?void 0:em.shadowChannel)?eg:ej.shadowChannel)} / 0.27), 21px 52.3px 74px -1.2px rgba(${eO("shadowChannel",null!=(ev=null==(ey=eA.colorSchemes)||null==(ey=ey.light)?void 0:ey.shadowChannel)?ev:ej.shadowChannel)} / 0.29)`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,tooltip:1500},typography:{display1:{fontFamily:eO(`fontFamily-display, ${eF.display}`),fontWeight:eO(`fontWeight-xl, ${e_.xl}`),fontSize:eO(`fontSize-xl7, ${eN.xl7}`),lineHeight:eO(`lineHeight-sm, ${eH.sm}`),letterSpacing:eO(`letterSpacing-sm, ${eD.sm}`),color:eO("palette-text-primary",ej.palette.text.primary)},display2:{fontFamily:eO(`fontFamily-display, ${eF.display}`),fontWeight:eO(`fontWeight-xl, ${e_.xl}`),fontSize:eO(`fontSize-xl6, ${eN.xl6}`),lineHeight:eO(`lineHeight-sm, ${eH.sm}`),letterSpacing:eO(`letterSpacing-sm, ${eD.sm}`),color:eO("palette-text-primary",ej.palette.text.primary)},h1:{fontFamily:eO(`fontFamily-display, ${eF.display}`),fontWeight:eO(`fontWeight-lg, ${e_.lg}`),fontSize:eO(`fontSize-xl5, ${eN.xl5}`),lineHeight:eO(`lineHeight-sm, ${eH.sm}`),letterSpacing:eO(`letterSpacing-sm, ${eD.sm}`),color:eO("palette-text-primary",ej.palette.text.primary)},h2:{fontFamily:eO(`fontFamily-display, ${eF.display}`),fontWeight:eO(`fontWeight-lg, ${e_.lg}`),fontSize:eO(`fontSize-xl4, ${eN.xl4}`),lineHeight:eO(`lineHeight-sm, ${eH.sm}`),letterSpacing:eO(`letterSpacing-sm, ${eD.sm}`),color:eO("palette-text-primary",ej.palette.text.primary)},h3:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontWeight:eO(`fontWeight-md, ${e_.md}`),fontSize:eO(`fontSize-xl3, ${eN.xl3}`),lineHeight:eO(`lineHeight-sm, ${eH.sm}`),color:eO("palette-text-primary",ej.palette.text.primary)},h4:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontWeight:eO(`fontWeight-md, ${e_.md}`),fontSize:eO(`fontSize-xl2, ${eN.xl2}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-primary",ej.palette.text.primary)},h5:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontWeight:eO(`fontWeight-md, ${e_.md}`),fontSize:eO(`fontSize-xl, ${eN.xl}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-primary",ej.palette.text.primary)},h6:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontWeight:eO(`fontWeight-md, ${e_.md}`),fontSize:eO(`fontSize-lg, ${eN.lg}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-primary",ej.palette.text.primary)},body1:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontSize:eO(`fontSize-md, ${eN.md}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-primary",ej.palette.text.primary)},body2:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontSize:eO(`fontSize-sm, ${eN.sm}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-secondary",ej.palette.text.secondary)},body3:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontSize:eO(`fontSize-xs, ${eN.xs}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-tertiary",ej.palette.text.tertiary)},body4:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontSize:eO(`fontSize-xs2, ${eN.xs2}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-tertiary",ej.palette.text.tertiary)},body5:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontSize:eO(`fontSize-xs3, ${eN.xs3}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-tertiary",ej.palette.text.tertiary)}}},eI=eA?(0,i.Z)(eL,eA):eL,{colorSchemes:ez}=eI,eU=(0,o.Z)(eI,$),eW=(0,n.Z)({colorSchemes:ez},eU,{breakpoints:(0,s.Z)(null!=eC?eC:{}),components:(0,i.Z)({MuiSvgIcon:{defaultProps:{fontSize:"xl"},styleOverrides:{root:({ownerState:e,theme:t})=>{var r;let o=e.instanceFontSize;return(0,n.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==(r=t.vars.palette[e.color])?void 0:r.mainChannel} / 1)`},"context"===e.color&&{color:t.vars.palette.text.secondary},o&&"inherit"!==o&&{"--Icon-fontSize":t.vars.fontSize[o]})}}}},eS),cssVarPrefix:ex,getCssVar:eO,spacing:(0,c.Z)(ew),colorInversionConfig:{soft:["plain","outlined","soft","solid"],solid:["plain","outlined","soft","solid"]}});Object.entries(eW.colorSchemes).forEach(([e,t])=>{!function(e,t){Object.keys(t).forEach(r=>{let n={main:"500",light:"200",dark:"800"};"dark"===e&&(n.main=400),!t[r].mainChannel&&t[r][n.main]&&(t[r].mainChannel=(0,l.n8)(t[r][n.main])),!t[r].lightChannel&&t[r][n.light]&&(t[r].lightChannel=(0,l.n8)(t[r][n.light])),!t[r].darkChannel&&t[r][n.dark]&&(t[r].darkChannel=(0,l.n8)(t[r][n.dark]))})}(e,t.palette)});let{vars:eG,generateCssVars:eK}=m((0,n.Z)({colorSchemes:ez},eU),{prefix:ex,shouldSkipGeneratingVar:ek});eW.vars=eG,eW.generateCssVars=eK,eW.unstable_sxConfig=(0,n.Z)({},b,null==e?void 0:e.unstable_sxConfig),eW.unstable_sx=function(e){return(0,v.Z)({sx:e,theme:this})},eW.getColorSchemeSelector=e=>"light"===e?"&":`&[data-joy-color-scheme="${e}"], [data-joy-color-scheme="${e}"] &`;let eq={getCssVar:eO,palette:eW.colorSchemes.light.palette};return eW.variants=(0,i.Z)({plain:(0,S.Zm)("plain",eq),plainHover:(0,S.Zm)("plainHover",eq),plainActive:(0,S.Zm)("plainActive",eq),plainDisabled:(0,S.Zm)("plainDisabled",eq),outlined:(0,S.Zm)("outlined",eq),outlinedHover:(0,S.Zm)("outlinedHover",eq),outlinedActive:(0,S.Zm)("outlinedActive",eq),outlinedDisabled:(0,S.Zm)("outlinedDisabled",eq),soft:(0,S.Zm)("soft",eq),softHover:(0,S.Zm)("softHover",eq),softActive:(0,S.Zm)("softActive",eq),softDisabled:(0,S.Zm)("softDisabled",eq),solid:(0,S.Zm)("solid",eq),solidHover:(0,S.Zm)("solidHover",eq),solidActive:(0,S.Zm)("solidActive",eq),solidDisabled:(0,S.Zm)("solidDisabled",eq)},eE),eW.palette=(0,n.Z)({},eW.colorSchemes.light.palette,{colorScheme:"light"}),eW.shouldSkipGeneratingVar=ek,eW.colorInversion="function"==typeof e$?e$:(0,i.Z)({soft:(0,S.pP)(eW,!0),solid:(0,S.Lo)(eW,!0)},e$||{},{clone:!1}),eW}},8622:function(e,t){"use strict";t.Z="$$joy"},50645:function(e,t,r){"use strict";var n=r(9312),o=r(98918),i=r(8622);let a=(0,n.ZP)({defaultTheme:o.Z,themeId:i.Z});t.Z=a},88930:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(38295),i=r(98918),a=r(8622);function l({props:e,name:t}){return(0,o.Z)({props:e,name:t,defaultTheme:(0,n.Z)({},i.Z,{components:{}}),themeId:a.Z})}},52428:function(e,t,r){"use strict";r.d(t,{Lo:function(){return f},Zm:function(){return c},pP:function(){return u}});var n=r(40431),o=r(82190);let i=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))$/)}),a=(e,t,r)=>{t.includes("Color")&&(e.color=r),t.includes("Bg")&&(e.backgroundColor=r),t.includes("Border")&&(e.borderColor=r)},l=(e,t,r)=>{let n={};return Object.entries(t||{}).forEach(([t,o])=>{if(t.match(RegExp(`${e}(color|bg|border)`,"i"))&&o){let e=r?r(t):o;t.includes("Disabled")&&(n.pointerEvents="none",n.cursor="default"),t.match(/(Hover|Active|Disabled)/)||(n["--variant-borderWidth"]||(n["--variant-borderWidth"]="0px"),t.includes("Border")&&(n["--variant-borderWidth"]="1px",n.border="var(--variant-borderWidth) solid")),a(n,t,e)}}),n},s=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,c=(e,t)=>{let r={};if(t){let{getCssVar:o,palette:a}=t;Object.entries(a).forEach(t=>{let[s,c]=t;i(c)&&"object"==typeof c&&(r=(0,n.Z)({},r,{[s]:l(e,c,e=>o(`palette-${s}-${e}`,a[s][e]))}))})}return r.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)"}),r},u=(e,t)=>{let r=(0,o.Z)(e.cssVarPrefix),n=s(e.cssVarPrefix),a={},l=t?t=>{var n;let o=t.split("-"),i=o[1],a=o[2];return r(t,null==(n=e.palette)||null==(n=n[i])?void 0:n[a])}:r;return Object.entries(e.palette).forEach(t=>{let[r,o]=t;i(o)&&(a[r]={"--Badge-ringColor":l(`palette-${r}-softBg`),[n("--shadowChannel")]:l(`palette-${r}-darkChannel`),[e.getColorSchemeSelector("dark")]:{[n("--palette-focusVisible")]:l(`palette-${r}-300`),[n("--palette-background-body")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.1)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,[n("--palette-background-level1")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,[n("--palette-text-primary")]:l(`palette-${r}-100`),[n("--palette-text-secondary")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.72)`,[n("--palette-text-tertiary")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.6)`,[n("--palette-divider")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${l(`palette-${r}-lightChannel`)} / 1)`,"--variant-plainHoverColor":l(`palette-${r}-50`),"--variant-plainHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${l(`palette-${r}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":l(`palette-${r}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":l(`palette-${r}-600`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${r}-100`),"--variant-softBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${r}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${r}-400`),"--variant-solidActiveBg":l(`palette-${r}-400`),"--variant-solidDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`},[e.getColorSchemeSelector("light")]:{[n("--palette-focusVisible")]:l(`palette-${r}-500`),[n("--palette-background-body")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.1)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,[n("--palette-background-level1")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.48)`,[n("--palette-text-primary")]:l(`palette-${r}-700`),[n("--palette-text-secondary")]:`rgba(${l(`palette-${r}-darkChannel`)} / 0.8)`,[n("--palette-text-tertiary")]:`rgba(${l(`palette-${r}-darkChannel`)} / 0.68)`,[n("--palette-divider")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${l(`palette-${r}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${l(`palette-${r}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${l(`palette-${r}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":l(`palette-${r}-600`),"--variant-outlinedHoverBorder":l(`palette-${r}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-softColor":l(`palette-${r}-600`),"--variant-softBg":`rgba(${l(`palette-${r}-lightChannel`)} / 0.72)`,"--variant-softHoverColor":l(`palette-${r}-700`),"--variant-softHoverBg":l(`palette-${r}-200`),"--variant-softActiveBg":l(`palette-${r}-300`),"--variant-softDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,"--variant-solidColor":l("palette-common-white"),"--variant-solidBg":l(`palette-${r}-600`),"--variant-solidHoverColor":l("palette-common-white"),"--variant-solidHoverBg":l(`palette-${r}-500`),"--variant-solidActiveBg":l(`palette-${r}-500`),"--variant-solidDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`}})}),a},f=(e,t)=>{let r=(0,o.Z)(e.cssVarPrefix),n=s(e.cssVarPrefix),a={},l=t?t=>{let n=t.split("-"),o=n[1],i=n[2];return r(t,e.palette[o][i])}:r;return Object.entries(e.palette).forEach(e=>{let[t,r]=e;i(r)&&("warning"===t?a.warning={"--Badge-ringColor":l(`palette-${t}-solidBg`),[n("--shadowChannel")]:l(`palette-${t}-darkChannel`),[n("--palette-focusVisible")]:l(`palette-${t}-700`),[n("--palette-background-body")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.16)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.1)`,[n("--palette-background-popup")]:l(`palette-${t}-100`),[n("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[n("--palette-text-primary")]:l(`palette-${t}-900`),[n("--palette-text-secondary")]:l(`palette-${t}-700`),[n("--palette-text-tertiary")]:l(`palette-${t}-500`),[n("--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)`}:a[t]={colorScheme:"dark","--Badge-ringColor":l(`palette-${t}-solidBg`),[n("--shadowChannel")]:l(`palette-${t}-darkChannel`),[n("--palette-focusVisible")]:l(`palette-${t}-200`),[n("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[n("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[n("--palette-background-popup")]:l(`palette-${t}-700`),[n("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[n("--palette-text-primary")]:l("palette-common-white"),[n("--palette-text-secondary")]:l(`palette-${t}-100`),[n("--palette-text-tertiary")]:l(`palette-${t}-200`),[n("--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)`})}),a}},326:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(40431),o=r(46750),i=r(99179),a=r(95596),l=r(85059),s=r(31227),c=r(47093);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],f=["component","slots","slotProps"],d=["component"],p=["disableColorInversion"];function h(e,t){let{className:r,elementType:h,ownerState:g,externalForwardedProps:m,getSlotOwnerState:v,internalForwardedProps:y}=t,b=(0,o.Z)(t,u),{component:x,slots:C={[e]:void 0},slotProps:w={[e]:void 0}}=m,S=(0,o.Z)(m,f),E=C[e]||h,$=(0,a.Z)(w[e],g),k=(0,l.Z)((0,n.Z)({className:r},b,{externalForwardedProps:"root"===e?S:void 0,externalSlotProps:$})),{props:{component:A},internalRef:O}=k,Z=(0,o.Z)(k.props,d),B=(0,i.Z)(O,null==$?void 0:$.ref,t.ref),P=v?v(Z):{},{disableColorInversion:T=!1}=P,j=(0,o.Z)(P,p),R=(0,n.Z)({},g,j),{getColor:M}=(0,c.VT)(R.variant);if("root"===e){var F;R.color=null!=(F=Z.color)?F:g.color}else T||(R.color=M(Z.color,R.color));let _="root"===e?A||x:A,N=(0,s.Z)(E,(0,n.Z)({},"root"===e&&!x&&!C[e]&&y,"root"!==e&&!C[e]&&y,Z,_&&{as:_},{ref:B}),R);return Object.keys(j).forEach(e=>{delete N[e]}),[E,N]}},44169:function(e,t,r){"use strict";var n=r(86006);let o=n.createContext(null);t.Z=o},63678:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(86006),o=r(44169);function i(){let e=n.useContext(o.Z);return e}},4323:function(e,t,r){"use strict";r.d(t,{ZP:function(){return v},Co:function(){return y}});var n=r(40431),o=r(86006),i=r(83596),a=/^((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,i.Z)(function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),s=r(17464),c=r(75941),u=r(5013),f=r(85124),d=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?l:d},h=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},g=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,c.hC)(t,r,n),(0,f.L)(function(){return(0,c.My)(t,r,n)}),null},m=(function e(t,r){var i,a,l=t.__emotion_real===t,f=l&&t.__emotion_base||t;void 0!==r&&(i=r.label,a=r.target);var d=h(t,r,l),m=d||p(f),v=!m("as");return function(){var y=arguments,b=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),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=60&&240>=Math.round(e.h)?r?Math.round(e.h)-2*t:Math.round(e.h)+2*t:r?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?n+=360:n>=360&&(n-=360),n}function c(e,t,r){var n;return 0===e.h&&0===e.s?e.s:((n=r?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(n=1),r&&5===t&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)))}function u(e,t,r){var n;return(n=r?e.v+.05*t:e.v-.15*t)>1&&(n=1),Number(n.toFixed(2))}function f(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=(0,o.uA)(e),f=5;f>0;f-=1){var d=a(n),p=l((0,o.uA)({h:s(d,f,!0),s:c(d,f,!0),v:u(d,f,!0)}));r.push(p)}r.push(l(n));for(var h=1;h<=4;h+=1){var g=a(n),m=l((0,o.uA)({h:s(g,h),s:c(g,h),v:u(g,h)}));r.push(m)}return"dark"===t.theme?i.map(function(e){var n,i,a,s=e.index,c=e.opacity;return l((n=(0,o.uA)(t.backgroundColor||"#141414"),i=(0,o.uA)(r[s]),a=100*c/100,{r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b}))}):r}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,r){"use strict";r.d(t,{E4:function(){return H},jG:function(){return U},t2:function(){return k},fp:function(){return A},xy:function(){return N}});var n=r(90151),o=r(88684),i=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)},a=r(86006);r(55567),r(81027);var l=r(18050),s=r(49449),c=r(65877),u=function(){function e(t){(0,l.Z)(this,e),(0,c.Z)(this,"instanceId",void 0),(0,c.Z)(this,"cache",new Map),this.instanceId=t}return(0,s.Z)(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var r=e.join("%"),n=t(this.cache.get(r));null===n?this.cache.delete(r):this.cache.set(r,n)}}]),e}(),f="data-token-hash",d="data-css-hash",p="__cssinjs_instance__",h=a.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,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(t){t[p]=t[p]||e,t[p]===e&&document.head.insertBefore(t,r)});var n={};Array.from(document.querySelectorAll("style[".concat(d,"]"))).forEach(function(t){var r,o=t.getAttribute(d);n[o]?t[p]===e&&(null===(r=t.parentNode)||void 0===r||r.removeChild(t)):n[o]=!0})}return new u(e)}(),defaultCache:!0}),g=r(965),m=r(71693),v=r(52160);function y(e){var t="";return Object.keys(e).forEach(function(r){var n=e[r];t+=r,n&&"object"===(0,g.Z)(n)?t+=y(n):t+=n}),t}var b="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),x="903px",C=void 0,w=r(60456);function S(e,t,r,o){var i=a.useContext(h).cache,l=[e].concat((0,n.Z)(t));return a.useMemo(function(){i.update(l,function(e){var t=(0,w.Z)(e||[],2),n=t[0];return[(void 0===n?0:n)+1,t[1]||r()]})},[l.join("_")]),a.useEffect(function(){return function(){i.update(l,function(e){var t=(0,w.Z)(e||[],2),r=t[0],n=void 0===r?0:r,i=t[1];return 0==n-1?(null==o||o(i,!1),null):[n-1,i]})}},l),i.get(l)[1]}var E={},$=new Map,k=function(e,t,r,n){var i=r.getDerivativeToken(e),a=(0,o.Z)((0,o.Z)({},i),t);return n&&(a=n(a)),a};function A(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,a.useContext)(h).cache.instanceId,l=r.salt,s=void 0===l?"":l,c=r.override,u=void 0===c?E:c,d=r.formatToken,g=a.useMemo(function(){return Object.assign.apply(Object,[{}].concat((0,n.Z)(t)))},[t]),m=a.useMemo(function(){return y(g)},[g]),v=a.useMemo(function(){return y(u)},[u]);return S("token",[s,e.id,m,v],function(){var t=k(g,u,e,d),r=i("".concat(s,"_").concat(y(t)));t._tokenKey=r,$.set(r,($.get(r)||0)+1);var n="".concat("css","-").concat(i(r));return t._hashId=n,[t,n]},function(e){var t,r,n;t=e[0]._tokenKey,$.set(t,($.get(t)||0)-1),(n=(r=Array.from($.keys())).filter(function(e){return 0>=($.get(e)||0)})).length1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},a=i.root,l=i.injectHash,s=i.parentSelectors,c=r.hashId,u=r.layer,f=(r.path,r.hashPriority),d=r.transformers,p=void 0===d?[]:d;r.linters;var h="",y={};function S(t){var n=t.getName(c);if(!y[n]){var o=e(t.style,r,{root:!1,parentSelectors:s}),i=(0,w.Z)(o,1)[0];y[n]="@keyframes ".concat(t.getName(c)).concat(i)}}if((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,r):t&&r.push(t)}),r})(Array.isArray(t)?t:[t]).forEach(function(t){var i="string"!=typeof t||a?t:{};if("string"==typeof i)h+="".concat(i,"\n");else if(i._keyframe)S(i);else{var u=p.reduce(function(e,t){var r;return(null==t?void 0:null===(r=t.visit)||void 0===r?void 0:r.call(t,e))||e},i);Object.keys(u).forEach(function(t){var i=u[t];if("object"!==(0,g.Z)(i)||!i||"animationName"===t&&i._keyframe||"object"===(0,g.Z)(i)&&i&&("_skip_check_"in i||R in i)){function d(e,t){var r=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),n=t;Z[e]||"number"!=typeof n||0===n||(n="".concat(n,"px")),"animationName"===e&&null!=t&&t._keyframe&&(S(t),n=t.getName(c)),h+="".concat(r,":").concat(n,";")}var p,m=null!==(p=null==i?void 0:i.value)&&void 0!==p?p:i;"object"===(0,g.Z)(i)&&null!=i&&i[R]&&Array.isArray(m)?m.forEach(function(e){d(t,e)}):d(t,m)}else{var v=!1,b=t.trim(),x=!1;(a||l)&&c?b.startsWith("@")?v=!0:b=function(e,t,r){if(!t)return e;var o=".".concat(t),i="low"===r?":where(".concat(o,")"):o;return e.split(",").map(function(e){var t,r=e.trim().split(/\s+/),o=r[0]||"",a=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[o="".concat(a).concat(i).concat(o.slice(a.length))].concat((0,n.Z)(r.slice(1))).join(" ")}).join(",")}(t,c,f):a&&!c&&("&"===b||""===b)&&(b="",x=!0);var C=e(i,r,{root:x,injectHash:v,parentSelectors:[].concat((0,n.Z)(s),[b])}),E=(0,w.Z)(C,2),$=E[0],k=E[1];y=(0,o.Z)((0,o.Z)({},y),k),h+="".concat(b).concat($)}})}}),a){if(u&&(void 0===C&&(C=function(e,t){if((0,m.Z)()){(0,v.hq)(e,b);var r,n=document.createElement("div");n.style.position="fixed",n.style.left="0",n.style.top="0",null==t||t(n),document.body.appendChild(n);var o=getComputedStyle(n).width===x;return null===(r=n.parentNode)||void 0===r||r.removeChild(n),(0,v.jL)(b),o}return!1}("@layer ".concat(b," { .").concat(b," { width: ").concat(x,"!important; } }"),function(e){e.className=b})),C)){var E=u.split(","),$=E[E.length-1].trim();h="@layer ".concat($," {").concat(h,"}"),E.length>1&&(h="@layer ".concat(u,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,y]};function _(){return null}function N(e,t){var r=e.token,o=e.path,l=e.hashId,s=e.layer,u=e.nonce,g=a.useContext(h),m=g.autoClear,y=(g.mock,g.defaultCache),b=g.hashPriority,x=g.container,C=g.ssrInline,E=g.transformers,$=g.linters,k=g.cache,A=r._tokenKey,Z=[A].concat((0,n.Z)(o)),B=S("style",Z,function(){var e=F(t(),{hashId:l,hashPriority:b,layer:s,path:o.join("-"),transformers:E,linters:$}),r=(0,w.Z)(e,2),n=r[0],a=r[1],c=M(n),h=i("".concat(Z.join("%")).concat(c));if(j){var g={mark:d,prepend:"queue",attachTo:x},m="function"==typeof u?u():u;m&&(g.csp={nonce:m});var y=(0,v.hq)(c,h,g);y[p]=k.instanceId,y.setAttribute(f,A),Object.keys(a).forEach(function(e){(0,v.hq)(M(a[e]),"_effect-".concat(e),g)})}return[c,A,h]},function(e,t){var r=(0,w.Z)(e,3)[2];(t||m)&&j&&(0,v.jL)(r,{mark:d})}),P=(0,w.Z)(B,3),T=P[0],R=P[1],N=P[2];return function(e){var t,r;return t=C&&!j&&y?a.createElement("style",(0,O.Z)({},(r={},(0,c.Z)(r,f,R),(0,c.Z)(r,d,N),r),{dangerouslySetInnerHTML:{__html:T}})):a.createElement(_,null),a.createElement(a.Fragment,null,t,e)}}var H=function(){function e(t,r){(0,l.Z)(this,e),(0,c.Z)(this,"name",void 0),(0,c.Z)(this,"style",void 0),(0,c.Z)(this,"_keyframe",!0),this.name=t,this.style=r}return(0,s.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}(),D=function(){function e(){(0,l.Z)(this,e),(0,c.Z)(this,"cache",void 0),(0,c.Z)(this,"keys",void 0),(0,c.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,s.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t,r;o=null===(t=o)||void 0===t?void 0:null===(r=t.map)||void 0===r?void 0:r.get(e)}else o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&n&&(o.value[1]=this.cacheCallTimes++),null===(r=o)||void 0===r?void 0:r.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,r){var n=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 r=(0,w.Z)(e,2)[1];return n.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),L+=1}return(0,s.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,r){return r(e,t)},void 0)}}]),e}(),z=new D;function U(e){var t=Array.isArray(e)?e:[e];return z.has(t)||z.set(t,new I(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,r){"use strict";r.d(t,{Z:function(){return O}});var n=r(40431),o=r(60456),i=r(65877),a=r(89301),l=r(86006),s=r(8683),c=r.n(s),u=r(70333),f=r(83346),d=r(88684),p=r(965),h=r(5004),g=r(52160),m=r(60618);function v(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,r){var n=e[r];return"class"===r?(t.className=n,delete t.class):t[r]=n,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),r=t.csp,n=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";n&&(o=o.replace(/anticon/g,n)),(0,l.useEffect)(function(){var t=e.current,n=(0,m.A)(t);(0,g.hq)(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})},[])},w=["icon","className","onClick","style","primaryColor","secondaryColor"],S={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},E=function(e){var t,r,n=e.icon,o=e.className,i=e.onClick,s=e.style,c=e.primaryColor,u=e.secondaryColor,f=(0,a.Z)(e,w),p=l.useRef(),g=S;if(c&&(g={primaryColor:c,secondaryColor:u||b(c)}),C(p),t=v(n),r="icon should be icon definiton, but got ".concat(n),(0,h.ZP)(t,"[@ant-design/icons] ".concat(r)),!v(n))return null;var m=n;return m&&"function"==typeof m.icon&&(m=(0,d.Z)((0,d.Z)({},m),{},{icon:m.icon(g.primaryColor,g.secondaryColor)})),function e(t,r,n){return n?l.createElement(t.tag,(0,d.Z)((0,d.Z)({key:r},y(t.attrs)),n),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))})):l.createElement(t.tag,(0,d.Z)({key:r},y(t.attrs)),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))}))}(m.icon,"svg-".concat(m.name),(0,d.Z)((0,d.Z)({className:o,onClick:i,style:s,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:p}))};function $(e){var t=x(e),r=(0,o.Z)(t,2),n=r[0],i=r[1];return E.setTwoToneColors({primaryColor:n,secondaryColor:i})}E.displayName="IconReact",E.getTwoToneColors=function(){return(0,d.Z)({},S)},E.setTwoToneColors=function(e){var t=e.primaryColor,r=e.secondaryColor;S.primaryColor=t,S.secondaryColor=r||b(t),S.calculated=!!r};var k=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];$(u.iN.primary);var A=l.forwardRef(function(e,t){var r,s=e.className,u=e.icon,d=e.spin,p=e.rotate,h=e.tabIndex,g=e.onClick,m=e.twoToneColor,v=(0,a.Z)(e,k),y=l.useContext(f.Z),b=y.prefixCls,C=void 0===b?"anticon":b,w=y.rootClassName,S=c()(w,C,(r={},(0,i.Z)(r,"".concat(C,"-").concat(u.name),!!u.name),(0,i.Z)(r,"".concat(C,"-spin"),!!d||"loading"===u.name),r),s),$=h;void 0===$&&g&&($=-1);var A=x(m),O=(0,o.Z)(A,2),Z=O[0],B=O[1];return l.createElement("span",(0,n.Z)({role:"img","aria-label":u.name},v,{ref:t,tabIndex:$,onClick:g,className:S}),l.createElement(E,{icon:u,primaryColor:Z,secondaryColor:B,style:p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0}))});A.displayName="AntdIcon",A.getTwoToneColor=function(){var e=E.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},A.setTwoToneColor=$;var O=A},83346:function(e,t,r){"use strict";var n=(0,r(86006).createContext)({});t.Z=n},34777:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},56222:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={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"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},31533:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={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"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},27977:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},49132:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},75710:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={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"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},32675:function(e,t,r){"use strict";r.d(t,{T6:function(){return d},VD:function(){return p},WE:function(){return c},Yt:function(){return h},lC:function(){return i},py:function(){return s},rW:function(){return o},s:function(){return f},ve:function(){return l},vq:function(){return u}});var n=r(25752);function o(e,t,r){return{r:255*(0,n.sh)(e,255),g:255*(0,n.sh)(t,255),b:255*(0,n.sh)(r,255)}}function i(e,t,r){var o=Math.max(e=(0,n.sh)(e,255),t=(0,n.sh)(t,255),r=(0,n.sh)(r,255)),i=Math.min(e,t,r),a=0,l=0,s=(o+i)/2;if(o===i)l=0,a=0;else{var c=o-i;switch(l=s>.5?c/(2-o-i):c/(o+i),o){case e:a=(t-r)/c+(t1&&(r-=1),r<1/6)?e+(t-e)*(6*r):r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function l(e,t,r){if(e=(0,n.sh)(e,360),t=(0,n.sh)(t,100),r=(0,n.sh)(r,100),0===t)i=r,l=r,o=r;else{var o,i,l,s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;o=a(c,s,e+1/3),i=a(c,s,e),l=a(c,s,e-1/3)}return{r:255*o,g:255*i,b:255*l}}function s(e,t,r){var o=Math.max(e=(0,n.sh)(e,255),t=(0,n.sh)(t,255),r=(0,n.sh)(r,255)),i=Math.min(e,t,r),a=0,l=o-i;if(o===i)a=0;else{switch(o){case e:a=(t-r)/l+(t>16,g:(65280&e)>>8,b:255&e}}},29888:function(e,t,r){"use strict";r.d(t,{R:function(){return n}});var n={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,r){"use strict";r.d(t,{uA:function(){return a}});var n=r(32675),o=r(29888),i=r(25752);function a(e){var t={r:0,g:0,b:0},r=1,a=null,l=null,s=null,c=!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 r=u.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=u.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=u.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=u.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=u.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=u.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=u.hex8.exec(e))?{r:(0,n.VD)(r[1]),g:(0,n.VD)(r[2]),b:(0,n.VD)(r[3]),a:(0,n.T6)(r[4]),format:t?"name":"hex8"}:(r=u.hex6.exec(e))?{r:(0,n.VD)(r[1]),g:(0,n.VD)(r[2]),b:(0,n.VD)(r[3]),format:t?"name":"hex"}:(r=u.hex4.exec(e))?{r:(0,n.VD)(r[1]+r[1]),g:(0,n.VD)(r[2]+r[2]),b:(0,n.VD)(r[3]+r[3]),a:(0,n.T6)(r[4]+r[4]),format:t?"name":"hex8"}:!!(r=u.hex3.exec(e))&&{r:(0,n.VD)(r[1]+r[1]),g:(0,n.VD)(r[2]+r[2]),b:(0,n.VD)(r[3]+r[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(f(e.r)&&f(e.g)&&f(e.b)?(t=(0,n.rW)(e.r,e.g,e.b),c=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):f(e.h)&&f(e.s)&&f(e.v)?(a=(0,i.JX)(e.s),l=(0,i.JX)(e.v),t=(0,n.WE)(e.h,a,l),c=!0,d="hsv"):f(e.h)&&f(e.s)&&f(e.l)&&(a=(0,i.JX)(e.s),s=(0,i.JX)(e.l),t=(0,n.ve)(e.h,a,s),c=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=(0,i.Yq)(r),{ok:c,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:r}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:RegExp("rgb"+s),rgba:RegExp("rgba"+c),hsl:RegExp("hsl"+s),hsla:RegExp("hsla"+c),hsv:RegExp("hsv"+s),hsva:RegExp("hsva"+c),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,r){"use strict";r.d(t,{C:function(){return l}});var n=r(32675),o=r(29888),i=r(79185),a=r(25752),l=function(){function e(t,r){if(void 0===t&&(t=""),void 0===r&&(r={}),t instanceof e)return t;"number"==typeof t&&(t=(0,n.Yt)(t)),this.originalInput=t;var o,a=(0,i.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=r.format)&&void 0!==o?o:a.format,this.gradientType=r.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=a.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,r=e.g/255,n=e.b/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.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,n.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,n.py)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,n.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,n.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,n.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,n.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),r=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(r,")"):"rgba(".concat(e,", ").concat(t,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.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,a.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,n.vq)(this.r,this.g,this.b,!1),t=0,r=Object.entries(o.R);t=0;return!t&&n&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||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 r=this.toHsl();return r.l+=t/100,r.l=(0,a.V2)(r.l),new e(r)},e.prototype.brighten=function(t){void 0===t&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-(255*(t/100))))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-(255*(t/100))))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-(255*(t/100))))),new e(r)},e.prototype.darken=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=(0,a.V2)(r.l),new e(r)},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 r=this.toHsl();return r.s-=t/100,r.s=(0,a.V2)(r.s),new e(r)},e.prototype.saturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=(0,a.V2)(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){void 0===r&&(r=50);var n=this.toRgb(),o=new e(t).toRgb(),i=r/100,a={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return new e(a)},e.prototype.analogous=function(t,r){void 0===t&&(t=6),void 0===r&&(r=30);var n=this.toHsl(),o=360/r,i=[this];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var r=this.toHsv(),n=r.h,o=r.s,i=r.v,a=[],l=1/t;t--;)a.push(new e({h:n,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),o=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/o,g:(r.g*r.a+n.g*n.a*(1-r.a))/o,b:(r.b*r.a+n.b*n.a*(1-r.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 r=this.toHsl(),n=r.h,o=[this],i=360/t,a=1;aMath.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 i(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}r.d(t,{FZ:function(){return l},JX:function(){return a},V2:function(){return o},Yq:function(){return i},sh:function(){return n}})},43709:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=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,r),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 r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t-1&&!e.return)switch(e.type){case a.h5:e.return=function e(t,r){switch((0,i.vp)(t,r)){case 5103:return a.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 a.G$+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return a.G$+t+a.uj+t+a.MS+t+t;case 6828:case 4268:return a.G$+t+a.MS+t+t;case 6165:return a.G$+t+a.MS+"flex-"+t+t;case 5187:return a.G$+t+(0,i.gx)(t,/(\w+).+(:[^]+)/,a.G$+"box-$1$2"+a.MS+"flex-$1$2")+t;case 5443:return a.G$+t+a.MS+"flex-item-"+(0,i.gx)(t,/flex-|-self/,"")+t;case 4675:return a.G$+t+a.MS+"flex-line-pack"+(0,i.gx)(t,/align-content|flex-|-self/,"")+t;case 5548:return a.G$+t+a.MS+(0,i.gx)(t,"shrink","negative")+t;case 5292:return a.G$+t+a.MS+(0,i.gx)(t,"basis","preferred-size")+t;case 6060:return a.G$+"box-"+(0,i.gx)(t,"-grow","")+a.G$+t+a.MS+(0,i.gx)(t,"grow","positive")+t;case 4554:return a.G$+(0,i.gx)(t,/([^-])(transform)/g,"$1"+a.G$+"$2")+t;case 6187:return(0,i.gx)((0,i.gx)((0,i.gx)(t,/(zoom-|grab)/,a.G$+"$1"),/(image-set)/,a.G$+"$1"),t,"")+t;case 5495:case 3959:return(0,i.gx)(t,/(image-set\([^]*)/,a.G$+"$1$`$1");case 4968:return(0,i.gx)((0,i.gx)(t,/(.+:)(flex-)?(.*)/,a.G$+"box-pack:$3"+a.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a.G$+t+t;case 4095:case 3583:case 4068:case 2532:return(0,i.gx)(t,/(.+)-inline(.+)/,a.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,i.to)(t)-1-r>6)switch((0,i.uO)(t,r+1)){case 109:if(45!==(0,i.uO)(t,r+4))break;case 102:return(0,i.gx)(t,/(.+:)(.+)-([^]+)/,"$1"+a.G$+"$2-$3$1"+a.uj+(108==(0,i.uO)(t,r+3)?"$3":"$2-$3"))+t;case 115:return~(0,i.Cw)(t,"stretch")?e((0,i.gx)(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==(0,i.uO)(t,r+1))break;case 6444:switch((0,i.uO)(t,(0,i.to)(t)-3-(~(0,i.Cw)(t,"!important")&&10))){case 107:return(0,i.gx)(t,":",":"+a.G$)+t;case 101:return(0,i.gx)(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a.G$+(45===(0,i.uO)(t,14)?"inline-":"")+"box$3$1"+a.G$+"$2$3$1"+a.MS+"$2box$3")+t}break;case 5936:switch((0,i.uO)(t,r+11)){case 114:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return a.G$+t+a.MS+t+t}return t}(e.value,e.length);break;case a.lK:return(0,l.q)([(0,o.JG)(e,{value:(0,i.gx)(e.value,"@","@"+a.G$)})],n);case a.Fr:if(e.length)return(0,i.$e)(e.props,function(t){switch((0,i.EQ)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,l.q)([(0,o.JG)(e,{props:[(0,i.gx)(t,/:(read-\w+)/,":"+a.uj+"$1")]})],n);case"::placeholder":return(0,l.q)([(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,":"+a.G$+"input-$1")]}),(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,":"+a.uj+"$1")]}),(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,a.MS+"input-$1")]})],n)}return""})}}],g=function(e){var t,r,o,a,c,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,m={},v=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+u+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(a)+c,styles:a,next:n}}},85124:function(e,t,r){"use strict";r.d(t,{L:function(){return a},j:function(){return l}});var n,o=r(86006),i=!!(n||(n=r.t(o,2))).useInsertionEffect&&(n||(n=r.t(o,2))).useInsertionEffect,a=i||function(e){return e()},l=i||o.useLayoutEffect},75941:function(e,t,r){"use strict";function n(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "}),n}r.d(t,{My:function(){return i},fp:function(){return n},hC:function(){return o}});var o=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},i=function(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}}},90545:function(e,t,r){"use strict";r.d(t,{Z:function(){return v}});var n=r(40431),o=r(46750),i=r(86006),a=r(89791),l=r(4323),s=r(51579),c=r(86601),u=r(95887),f=r(9268);let d=["className","component"];var p=r(47327),h=r(98918),g=r(8622);let m=function(e={}){let{themeId:t,defaultTheme:r,defaultClassName:p="MuiBox-root",generateClassName:h}=e,g=(0,l.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(s.Z),m=i.forwardRef(function(e,i){let l=(0,u.Z)(r),s=(0,c.Z)(e),{className:m,component:v="div"}=s,y=(0,o.Z)(s,d);return(0,f.jsx)(g,(0,n.Z)({as:v,ref:i,className:(0,a.Z)(m,h?h(p):p),theme:t&&l[t]||l},y))});return m}({themeId:g.Z,defaultTheme:h.Z,defaultClassName:"MuiBox-root",generateClassName:p.Z.generate});var v=m},18587:function(e,t,r){"use strict";r.d(t,{d6:function(){return i},sI:function(){return a}});var n=r(13809),o=r(88539);let i=(e,t)=>(0,n.Z)(e,t,"Joy"),a=(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,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(40431);function o(e,t,r){return void 0===e||"string"==typeof e?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,r)})}},87862:function(e,t,r){"use strict";function n(e,t=[]){if(void 0===e)return{};let r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}r.d(t,{Z:function(){return n}})},85059:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(89791),i=r(87862);function a(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}function l(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:l,externalForwardedProps:s,className:c}=e;if(!t){let e=(0,o.Z)(null==s?void 0:s.className,null==l?void 0:l.className,c,null==r?void 0:r.className),t=(0,n.Z)({},null==r?void 0:r.style,null==s?void 0:s.style,null==l?void 0:l.style),i=(0,n.Z)({},r,s,l);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}let u=(0,i.Z)((0,n.Z)({},s,l)),f=a(l),d=a(s),p=t(u),h=(0,o.Z)(null==p?void 0:p.className,null==r?void 0:r.className,c,null==s?void 0:s.className,null==l?void 0:l.className),g=(0,n.Z)({},null==p?void 0:p.style,null==r?void 0:r.style,null==s?void 0:s.style,null==l?void 0:l.style),m=(0,n.Z)({},p,r,d,f);return h.length>0&&(m.className=h),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:p.ref}}},95596:function(e,t,r){"use strict";function n(e,t,r){return"function"==typeof e?e(t,r):e}r.d(t,{Z:function(){return n}})},47093:function(e,t,r){"use strict";r.d(t,{VT:function(){return s},do:function(){return c}});var n=r(86006),o=r(29720),i=r(98918),a=r(9268);let l=n.createContext(void 0),s=e=>{let t=n.useContext(l);return{getColor:(r,n)=>t&&e&&t.includes(e)?r||"context":r||n}};function c({children:e,variant:t}){var r;let n=(0,o.F)();return(0,a.jsx)(l.Provider,{value:t?(null!=(r=n.colorInversionConfig)?r:i.Z.colorInversionConfig)[t]:void 0,children:e})}t.ZP=l},29720:function(e,t,r){"use strict";r.d(t,{F:function(){return c},Z:function(){return u}}),r(86006);var n=r(95887),o=r(14446),i=r(98918),a=r(41287),l=r(8622),s=r(9268);let c=()=>{let e=(0,n.Z)(i.Z);return e[l.Z]||e};function u({children:e,theme:t}){let r=i.Z;return t&&(r=(0,a.Z)(l.Z in t?t[l.Z]:t)),(0,s.jsx)(o.Z,{theme:r,themeId:t&&l.Z in t?l.Z:void 0,children:e})}},98918:function(e,t,r){"use strict";var n=r(41287);let o=(0,n.Z)();t.Z=o},41287:function(e,t,r){"use strict";r.d(t,{Z:function(){return A}});var n=r(40431),o=r(46750),i=r(95135),a=r(82190),l=r(23343),s=r(57716),c=r(93815);let u=(e,t,r,n=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=r:o&&"object"==typeof o&&(o[e]=r):o&&"object"==typeof o&&(o[e]||(o[e]=n.includes(e)?[]:{}),o=o[e])})},f=(e,t,r)=>{!function e(n,o=[],i=[]){Object.entries(n).forEach(([n,a])=>{r&&(!r||r([...o,n]))||null==a||("object"==typeof a&&Object.keys(a).length>0?e(a,[...o,n],Array.isArray(a)?[...i,n]:i):t([...o,n],a,i))})}(e)},d=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t)))return t;let r=e[e.length-1];return r.toLowerCase().indexOf("opacity")>=0?t:`${t}px`}return t};function p(e,t){let{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return f(e,(e,t,l)=>{if(("string"==typeof t||"number"==typeof t)&&(!n||!n(e,t))){let n=`--${r?`${r}-`:""}${e.join("-")}`;Object.assign(o,{[n]:d(e,t)}),u(i,e,`var(${n})`,l),u(a,e,`var(${n}, ${t})`,l)}},e=>"vars"===e[0]),{css:o,vars:i,varsWithDefaults:a}}let h=["colorSchemes","components"],g=["light"];var m=function(e,t){let{colorSchemes:r={}}=e,a=(0,o.Z)(e,h),{vars:l,css:s,varsWithDefaults:c}=p(a,t),u=c,f={},{light:d}=r,m=(0,o.Z)(r,g);if(Object.entries(m||{}).forEach(([e,r])=>{let{vars:n,css:o,varsWithDefaults:a}=p(r,t);u=(0,i.Z)(u,a),f[e]={css:o,vars:n}}),d){let{css:e,vars:r,varsWithDefaults:n}=p(d,t);u=(0,i.Z)(u,n),f.light={css:e,vars:r}}return{vars:u,generateCssVars:e=>e?{css:(0,n.Z)({},f[e].css),vars:f[e].vars}:{css:(0,n.Z)({},s),vars:l}}},v=r(51579),y=r(2272);let b=(0,n.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=r(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 w=r(18587),S=r(52428);let E=["cssVarPrefix","breakpoints","spacing","components","variants","colorInversion","shouldSkipGeneratingVar"],$=["colorSchemes"],k=(e="joy")=>(0,a.Z)(e);function A(e){var t,r,a,u,f,d,p,h,g,y,A,O,Z,B,P,T,j,R,M,F,_,N,H,D,L,I,z,U,W,G,K,q,V,X,Y,J,Q,ee,et,er,en,eo,ei,ea,el,es,ec,eu,ef,ed,ep,eh,eg,em,ev,ey;let eb=e||{},{cssVarPrefix:ex="joy",breakpoints:eC,spacing:ew,components:eS,variants:eE,colorInversion:e$,shouldSkipGeneratingVar:ek=C}=eb,eA=(0,o.Z)(eb,E),eO=k(ex),eZ={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"}},eB=e=>{var t;let r=e.split("-"),n=r[1],o=r[2];return eO(e,null==(t=eZ[n])?void 0:t[o])},eP=e=>({plainColor:eB(`palette-${e}-600`),plainHoverBg:eB(`palette-${e}-100`),plainActiveBg:eB(`palette-${e}-200`),plainDisabledColor:eB(`palette-${e}-200`),outlinedColor:eB(`palette-${e}-500`),outlinedBorder:eB(`palette-${e}-200`),outlinedHoverBg:eB(`palette-${e}-100`),outlinedHoverBorder:eB(`palette-${e}-300`),outlinedActiveBg:eB(`palette-${e}-200`),outlinedDisabledColor:eB(`palette-${e}-100`),outlinedDisabledBorder:eB(`palette-${e}-100`),softColor:eB(`palette-${e}-600`),softBg:eB(`palette-${e}-100`),softHoverBg:eB(`palette-${e}-200`),softActiveBg:eB(`palette-${e}-300`),softDisabledColor:eB(`palette-${e}-300`),softDisabledBg:eB(`palette-${e}-50`),solidColor:"#fff",solidBg:eB(`palette-${e}-500`),solidHoverBg:eB(`palette-${e}-600`),solidActiveBg:eB(`palette-${e}-700`),solidDisabledColor:"#fff",solidDisabledBg:eB(`palette-${e}-200`)}),eT=e=>({plainColor:eB(`palette-${e}-300`),plainHoverBg:eB(`palette-${e}-800`),plainActiveBg:eB(`palette-${e}-700`),plainDisabledColor:eB(`palette-${e}-800`),outlinedColor:eB(`palette-${e}-200`),outlinedBorder:eB(`palette-${e}-700`),outlinedHoverBg:eB(`palette-${e}-800`),outlinedHoverBorder:eB(`palette-${e}-600`),outlinedActiveBg:eB(`palette-${e}-900`),outlinedDisabledColor:eB(`palette-${e}-800`),outlinedDisabledBorder:eB(`palette-${e}-800`),softColor:eB(`palette-${e}-200`),softBg:eB(`palette-${e}-900`),softHoverBg:eB(`palette-${e}-800`),softActiveBg:eB(`palette-${e}-700`),softDisabledColor:eB(`palette-${e}-800`),softDisabledBg:eB(`palette-${e}-900`),solidColor:"#fff",solidBg:eB(`palette-${e}-600`),solidHoverBg:eB(`palette-${e}-700`),solidActiveBg:eB(`palette-${e}-800`),solidDisabledColor:eB(`palette-${e}-700`),solidDisabledBg:eB(`palette-${e}-900`)}),ej={palette:{mode:"light",primary:(0,n.Z)({},eZ.primary,eP("primary")),neutral:(0,n.Z)({},eZ.neutral,{plainColor:eB("palette-neutral-800"),plainHoverColor:eB("palette-neutral-900"),plainHoverBg:eB("palette-neutral-100"),plainActiveBg:eB("palette-neutral-200"),plainDisabledColor:eB("palette-neutral-300"),outlinedColor:eB("palette-neutral-800"),outlinedBorder:eB("palette-neutral-200"),outlinedHoverColor:eB("palette-neutral-900"),outlinedHoverBg:eB("palette-neutral-100"),outlinedHoverBorder:eB("palette-neutral-300"),outlinedActiveBg:eB("palette-neutral-200"),outlinedDisabledColor:eB("palette-neutral-300"),outlinedDisabledBorder:eB("palette-neutral-100"),softColor:eB("palette-neutral-800"),softBg:eB("palette-neutral-100"),softHoverColor:eB("palette-neutral-900"),softHoverBg:eB("palette-neutral-200"),softActiveBg:eB("palette-neutral-300"),softDisabledColor:eB("palette-neutral-300"),softDisabledBg:eB("palette-neutral-50"),solidColor:eB("palette-common-white"),solidBg:eB("palette-neutral-600"),solidHoverBg:eB("palette-neutral-700"),solidActiveBg:eB("palette-neutral-800"),solidDisabledColor:eB("palette-neutral-300"),solidDisabledBg:eB("palette-neutral-50")}),danger:(0,n.Z)({},eZ.danger,eP("danger")),info:(0,n.Z)({},eZ.info,eP("info")),success:(0,n.Z)({},eZ.success,eP("success")),warning:(0,n.Z)({},eZ.warning,eP("warning"),{solidColor:eB("palette-warning-800"),solidBg:eB("palette-warning-200"),solidHoverBg:eB("palette-warning-300"),solidActiveBg:eB("palette-warning-400"),solidDisabledColor:eB("palette-warning-200"),solidDisabledBg:eB("palette-warning-50"),softColor:eB("palette-warning-800"),softBg:eB("palette-warning-50"),softHoverBg:eB("palette-warning-100"),softActiveBg:eB("palette-warning-200"),softDisabledColor:eB("palette-warning-200"),softDisabledBg:eB("palette-warning-50"),outlinedColor:eB("palette-warning-800"),outlinedHoverBg:eB("palette-warning-50"),plainColor:eB("palette-warning-800"),plainHoverBg:eB("palette-warning-50")}),common:{white:"#FFF",black:"#09090D"},text:{primary:eB("palette-neutral-800"),secondary:eB("palette-neutral-600"),tertiary:eB("palette-neutral-500")},background:{body:eB("palette-common-white"),surface:eB("palette-common-white"),popup:eB("palette-common-white"),level1:eB("palette-neutral-50"),level2:eB("palette-neutral-100"),level3:eB("palette-neutral-200"),tooltip:eB("palette-neutral-800"),backdrop:"rgba(255 255 255 / 0.5)"},divider:`rgba(${eO("palette-neutral-mainChannel",(0,l.n8)(eZ.neutral[500]))} / 0.28)`,focusVisible:eB("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"187 187 187"},eR={palette:{mode:"dark",primary:(0,n.Z)({},eZ.primary,eT("primary")),neutral:(0,n.Z)({},eZ.neutral,{plainColor:eB("palette-neutral-200"),plainHoverColor:eB("palette-neutral-50"),plainHoverBg:eB("palette-neutral-800"),plainActiveBg:eB("palette-neutral-700"),plainDisabledColor:eB("palette-neutral-700"),outlinedColor:eB("palette-neutral-200"),outlinedBorder:eB("palette-neutral-800"),outlinedHoverColor:eB("palette-neutral-50"),outlinedHoverBg:eB("palette-neutral-800"),outlinedHoverBorder:eB("palette-neutral-700"),outlinedActiveBg:eB("palette-neutral-800"),outlinedDisabledColor:eB("palette-neutral-800"),outlinedDisabledBorder:eB("palette-neutral-800"),softColor:eB("palette-neutral-200"),softBg:eB("palette-neutral-800"),softHoverColor:eB("palette-neutral-50"),softHoverBg:eB("palette-neutral-700"),softActiveBg:eB("palette-neutral-600"),softDisabledColor:eB("palette-neutral-700"),softDisabledBg:eB("palette-neutral-900"),solidColor:eB("palette-common-white"),solidBg:eB("palette-neutral-600"),solidHoverBg:eB("palette-neutral-700"),solidActiveBg:eB("palette-neutral-800"),solidDisabledColor:eB("palette-neutral-700"),solidDisabledBg:eB("palette-neutral-900")}),danger:(0,n.Z)({},eZ.danger,eT("danger")),info:(0,n.Z)({},eZ.info,eT("info")),success:(0,n.Z)({},eZ.success,eT("success"),{solidColor:"#fff",solidBg:eB("palette-success-600"),solidHoverBg:eB("palette-success-700"),solidActiveBg:eB("palette-success-800")}),warning:(0,n.Z)({},eZ.warning,eT("warning"),{solidColor:eB("palette-common-black"),solidBg:eB("palette-warning-300"),solidHoverBg:eB("palette-warning-400"),solidActiveBg:eB("palette-warning-500")}),common:{white:"#FFF",black:"#09090D"},text:{primary:eB("palette-neutral-100"),secondary:eB("palette-neutral-300"),tertiary:eB("palette-neutral-400")},background:{body:eB("palette-neutral-900"),surface:eB("palette-common-black"),popup:eB("palette-neutral-900"),level1:eB("palette-neutral-800"),level2:eB("palette-neutral-700"),level3:eB("palette-neutral-600"),tooltip:eB("palette-neutral-600"),backdrop:`rgba(${eO("palette-neutral-darkChannel",(0,l.n8)(eZ.neutral[800]))} / 0.5)`},divider:`rgba(${eO("palette-neutral-mainChannel",(0,l.n8)(eZ.neutral[500]))} / 0.24)`,focusVisible:eB("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0"},eM='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',eF=(0,n.Z)({body:`"Public Sans", ${eO(`fontFamily-fallback, ${eM}`)}`,display:`"Public Sans", ${eO(`fontFamily-fallback, ${eM}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:eM},eA.fontFamily),e_=(0,n.Z)({xs:200,sm:300,md:500,lg:600,xl:700,xl2:800,xl3:900},eA.fontWeight),eN=(0,n.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"},eA.fontSize),eH=(0,n.Z)({sm:1.25,md:1.5,lg:1.7},eA.lineHeight),eD=(0,n.Z)({sm:"-0.01em",md:"0.083em",lg:"0.125em"},eA.letterSpacing),eL={colorSchemes:{light:ej,dark:eR},fontSize:eN,fontFamily:eF,fontWeight:e_,focus:{thickness:"2px",selector:`&.${(0,w.d6)("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${eO("focus-thickness",null!=(t=null==(r=eA.focus)?void 0:r.thickness)?t:"2px")})`,outline:`${eO("focus-thickness",null!=(a=null==(u=eA.focus)?void 0:u.thickness)?a:"2px")} solid ${eO("palette-focusVisible",eZ.primary[500])}`}},lineHeight:eH,letterSpacing:eD,radius:{xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"20px"},shadow:{xs:`${eO("shadowRing",null!=(f=null==(d=eA.colorSchemes)||null==(d=d.light)?void 0:d.shadowRing)?f:ej.shadowRing)}, 0 1px 2px 0 rgba(${eO("shadowChannel",null!=(p=null==(h=eA.colorSchemes)||null==(h=h.light)?void 0:h.shadowChannel)?p:ej.shadowChannel)} / 0.12)`,sm:`${eO("shadowRing",null!=(g=null==(y=eA.colorSchemes)||null==(y=y.light)?void 0:y.shadowRing)?g:ej.shadowRing)}, 0.3px 0.8px 1.1px rgba(${eO("shadowChannel",null!=(A=null==(O=eA.colorSchemes)||null==(O=O.light)?void 0:O.shadowChannel)?A:ej.shadowChannel)} / 0.11), 0.5px 1.3px 1.8px -0.6px rgba(${eO("shadowChannel",null!=(Z=null==(B=eA.colorSchemes)||null==(B=B.light)?void 0:B.shadowChannel)?Z:ej.shadowChannel)} / 0.18), 1.1px 2.7px 3.8px -1.2px rgba(${eO("shadowChannel",null!=(P=null==(T=eA.colorSchemes)||null==(T=T.light)?void 0:T.shadowChannel)?P:ej.shadowChannel)} / 0.26)`,md:`${eO("shadowRing",null!=(j=null==(R=eA.colorSchemes)||null==(R=R.light)?void 0:R.shadowRing)?j:ej.shadowRing)}, 0.3px 0.8px 1.1px rgba(${eO("shadowChannel",null!=(M=null==(F=eA.colorSchemes)||null==(F=F.light)?void 0:F.shadowChannel)?M:ej.shadowChannel)} / 0.12), 1.1px 2.8px 3.9px -0.4px rgba(${eO("shadowChannel",null!=(_=null==(N=eA.colorSchemes)||null==(N=N.light)?void 0:N.shadowChannel)?_:ej.shadowChannel)} / 0.17), 2.4px 6.1px 8.6px -0.8px rgba(${eO("shadowChannel",null!=(H=null==(D=eA.colorSchemes)||null==(D=D.light)?void 0:D.shadowChannel)?H:ej.shadowChannel)} / 0.23), 5.3px 13.3px 18.8px -1.2px rgba(${eO("shadowChannel",null!=(L=null==(I=eA.colorSchemes)||null==(I=I.light)?void 0:I.shadowChannel)?L:ej.shadowChannel)} / 0.29)`,lg:`${eO("shadowRing",null!=(z=null==(U=eA.colorSchemes)||null==(U=U.light)?void 0:U.shadowRing)?z:ej.shadowRing)}, 0.3px 0.8px 1.1px rgba(${eO("shadowChannel",null!=(W=null==(G=eA.colorSchemes)||null==(G=G.light)?void 0:G.shadowChannel)?W:ej.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${eO("shadowChannel",null!=(K=null==(q=eA.colorSchemes)||null==(q=q.light)?void 0:q.shadowChannel)?K:ej.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${eO("shadowChannel",null!=(V=null==(X=eA.colorSchemes)||null==(X=X.light)?void 0:X.shadowChannel)?V:ej.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${eO("shadowChannel",null!=(Y=null==(J=eA.colorSchemes)||null==(J=J.light)?void 0:J.shadowChannel)?Y:ej.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${eO("shadowChannel",null!=(Q=null==(ee=eA.colorSchemes)||null==(ee=ee.light)?void 0:ee.shadowChannel)?Q:ej.shadowChannel)} / 0.21)`,xl:`${eO("shadowRing",null!=(et=null==(er=eA.colorSchemes)||null==(er=er.light)?void 0:er.shadowRing)?et:ej.shadowRing)}, 0.3px 0.8px 1.1px rgba(${eO("shadowChannel",null!=(en=null==(eo=eA.colorSchemes)||null==(eo=eo.light)?void 0:eo.shadowChannel)?en:ej.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${eO("shadowChannel",null!=(ei=null==(ea=eA.colorSchemes)||null==(ea=ea.light)?void 0:ea.shadowChannel)?ei:ej.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${eO("shadowChannel",null!=(el=null==(es=eA.colorSchemes)||null==(es=es.light)?void 0:es.shadowChannel)?el:ej.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${eO("shadowChannel",null!=(ec=null==(eu=eA.colorSchemes)||null==(eu=eu.light)?void 0:eu.shadowChannel)?ec:ej.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${eO("shadowChannel",null!=(ef=null==(ed=eA.colorSchemes)||null==(ed=ed.light)?void 0:ed.shadowChannel)?ef:ej.shadowChannel)} / 0.21), 10.2px 25.5px 36px -0.9px rgba(${eO("shadowChannel",null!=(ep=null==(eh=eA.colorSchemes)||null==(eh=eh.light)?void 0:eh.shadowChannel)?ep:ej.shadowChannel)} / 0.24), 14.8px 36.8px 52.1px -1.1px rgba(${eO("shadowChannel",null!=(eg=null==(em=eA.colorSchemes)||null==(em=em.light)?void 0:em.shadowChannel)?eg:ej.shadowChannel)} / 0.27), 21px 52.3px 74px -1.2px rgba(${eO("shadowChannel",null!=(ev=null==(ey=eA.colorSchemes)||null==(ey=ey.light)?void 0:ey.shadowChannel)?ev:ej.shadowChannel)} / 0.29)`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,tooltip:1500},typography:{display1:{fontFamily:eO(`fontFamily-display, ${eF.display}`),fontWeight:eO(`fontWeight-xl, ${e_.xl}`),fontSize:eO(`fontSize-xl7, ${eN.xl7}`),lineHeight:eO(`lineHeight-sm, ${eH.sm}`),letterSpacing:eO(`letterSpacing-sm, ${eD.sm}`),color:eO("palette-text-primary",ej.palette.text.primary)},display2:{fontFamily:eO(`fontFamily-display, ${eF.display}`),fontWeight:eO(`fontWeight-xl, ${e_.xl}`),fontSize:eO(`fontSize-xl6, ${eN.xl6}`),lineHeight:eO(`lineHeight-sm, ${eH.sm}`),letterSpacing:eO(`letterSpacing-sm, ${eD.sm}`),color:eO("palette-text-primary",ej.palette.text.primary)},h1:{fontFamily:eO(`fontFamily-display, ${eF.display}`),fontWeight:eO(`fontWeight-lg, ${e_.lg}`),fontSize:eO(`fontSize-xl5, ${eN.xl5}`),lineHeight:eO(`lineHeight-sm, ${eH.sm}`),letterSpacing:eO(`letterSpacing-sm, ${eD.sm}`),color:eO("palette-text-primary",ej.palette.text.primary)},h2:{fontFamily:eO(`fontFamily-display, ${eF.display}`),fontWeight:eO(`fontWeight-lg, ${e_.lg}`),fontSize:eO(`fontSize-xl4, ${eN.xl4}`),lineHeight:eO(`lineHeight-sm, ${eH.sm}`),letterSpacing:eO(`letterSpacing-sm, ${eD.sm}`),color:eO("palette-text-primary",ej.palette.text.primary)},h3:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontWeight:eO(`fontWeight-md, ${e_.md}`),fontSize:eO(`fontSize-xl3, ${eN.xl3}`),lineHeight:eO(`lineHeight-sm, ${eH.sm}`),color:eO("palette-text-primary",ej.palette.text.primary)},h4:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontWeight:eO(`fontWeight-md, ${e_.md}`),fontSize:eO(`fontSize-xl2, ${eN.xl2}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-primary",ej.palette.text.primary)},h5:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontWeight:eO(`fontWeight-md, ${e_.md}`),fontSize:eO(`fontSize-xl, ${eN.xl}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-primary",ej.palette.text.primary)},h6:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontWeight:eO(`fontWeight-md, ${e_.md}`),fontSize:eO(`fontSize-lg, ${eN.lg}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-primary",ej.palette.text.primary)},body1:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontSize:eO(`fontSize-md, ${eN.md}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-primary",ej.palette.text.primary)},body2:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontSize:eO(`fontSize-sm, ${eN.sm}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-secondary",ej.palette.text.secondary)},body3:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontSize:eO(`fontSize-xs, ${eN.xs}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-tertiary",ej.palette.text.tertiary)},body4:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontSize:eO(`fontSize-xs2, ${eN.xs2}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-tertiary",ej.palette.text.tertiary)},body5:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontSize:eO(`fontSize-xs3, ${eN.xs3}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-tertiary",ej.palette.text.tertiary)}}},eI=eA?(0,i.Z)(eL,eA):eL,{colorSchemes:ez}=eI,eU=(0,o.Z)(eI,$),eW=(0,n.Z)({colorSchemes:ez},eU,{breakpoints:(0,s.Z)(null!=eC?eC:{}),components:(0,i.Z)({MuiSvgIcon:{defaultProps:{fontSize:"xl"},styleOverrides:{root:({ownerState:e,theme:t})=>{var r;let o=e.instanceFontSize;return(0,n.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==(r=t.vars.palette[e.color])?void 0:r.mainChannel} / 1)`},"context"===e.color&&{color:t.vars.palette.text.secondary},o&&"inherit"!==o&&{"--Icon-fontSize":t.vars.fontSize[o]})}}}},eS),cssVarPrefix:ex,getCssVar:eO,spacing:(0,c.Z)(ew),colorInversionConfig:{soft:["plain","outlined","soft","solid"],solid:["plain","outlined","soft","solid"]}});Object.entries(eW.colorSchemes).forEach(([e,t])=>{!function(e,t){Object.keys(t).forEach(r=>{let n={main:"500",light:"200",dark:"800"};"dark"===e&&(n.main=400),!t[r].mainChannel&&t[r][n.main]&&(t[r].mainChannel=(0,l.n8)(t[r][n.main])),!t[r].lightChannel&&t[r][n.light]&&(t[r].lightChannel=(0,l.n8)(t[r][n.light])),!t[r].darkChannel&&t[r][n.dark]&&(t[r].darkChannel=(0,l.n8)(t[r][n.dark]))})}(e,t.palette)});let{vars:eG,generateCssVars:eK}=m((0,n.Z)({colorSchemes:ez},eU),{prefix:ex,shouldSkipGeneratingVar:ek});eW.vars=eG,eW.generateCssVars=eK,eW.unstable_sxConfig=(0,n.Z)({},b,null==e?void 0:e.unstable_sxConfig),eW.unstable_sx=function(e){return(0,v.Z)({sx:e,theme:this})},eW.getColorSchemeSelector=e=>"light"===e?"&":`&[data-joy-color-scheme="${e}"], [data-joy-color-scheme="${e}"] &`;let eq={getCssVar:eO,palette:eW.colorSchemes.light.palette};return eW.variants=(0,i.Z)({plain:(0,S.Zm)("plain",eq),plainHover:(0,S.Zm)("plainHover",eq),plainActive:(0,S.Zm)("plainActive",eq),plainDisabled:(0,S.Zm)("plainDisabled",eq),outlined:(0,S.Zm)("outlined",eq),outlinedHover:(0,S.Zm)("outlinedHover",eq),outlinedActive:(0,S.Zm)("outlinedActive",eq),outlinedDisabled:(0,S.Zm)("outlinedDisabled",eq),soft:(0,S.Zm)("soft",eq),softHover:(0,S.Zm)("softHover",eq),softActive:(0,S.Zm)("softActive",eq),softDisabled:(0,S.Zm)("softDisabled",eq),solid:(0,S.Zm)("solid",eq),solidHover:(0,S.Zm)("solidHover",eq),solidActive:(0,S.Zm)("solidActive",eq),solidDisabled:(0,S.Zm)("solidDisabled",eq)},eE),eW.palette=(0,n.Z)({},eW.colorSchemes.light.palette,{colorScheme:"light"}),eW.shouldSkipGeneratingVar=ek,eW.colorInversion="function"==typeof e$?e$:(0,i.Z)({soft:(0,S.pP)(eW,!0),solid:(0,S.Lo)(eW,!0)},e$||{},{clone:!1}),eW}},8622:function(e,t){"use strict";t.Z="$$joy"},50645:function(e,t,r){"use strict";var n=r(9312),o=r(98918),i=r(8622);let a=(0,n.ZP)({defaultTheme:o.Z,themeId:i.Z});t.Z=a},88930:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(38295),i=r(98918),a=r(8622);function l({props:e,name:t}){return(0,o.Z)({props:e,name:t,defaultTheme:(0,n.Z)({},i.Z,{components:{}}),themeId:a.Z})}},52428:function(e,t,r){"use strict";r.d(t,{Lo:function(){return f},Zm:function(){return c},pP:function(){return u}});var n=r(40431),o=r(82190);let i=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))$/)}),a=(e,t,r)=>{t.includes("Color")&&(e.color=r),t.includes("Bg")&&(e.backgroundColor=r),t.includes("Border")&&(e.borderColor=r)},l=(e,t,r)=>{let n={};return Object.entries(t||{}).forEach(([t,o])=>{if(t.match(RegExp(`${e}(color|bg|border)`,"i"))&&o){let e=r?r(t):o;t.includes("Disabled")&&(n.pointerEvents="none",n.cursor="default"),t.match(/(Hover|Active|Disabled)/)||(n["--variant-borderWidth"]||(n["--variant-borderWidth"]="0px"),t.includes("Border")&&(n["--variant-borderWidth"]="1px",n.border="var(--variant-borderWidth) solid")),a(n,t,e)}}),n},s=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,c=(e,t)=>{let r={};if(t){let{getCssVar:o,palette:a}=t;Object.entries(a).forEach(t=>{let[s,c]=t;i(c)&&"object"==typeof c&&(r=(0,n.Z)({},r,{[s]:l(e,c,e=>o(`palette-${s}-${e}`,a[s][e]))}))})}return r.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)"}),r},u=(e,t)=>{let r=(0,o.Z)(e.cssVarPrefix),n=s(e.cssVarPrefix),a={},l=t?t=>{var n;let o=t.split("-"),i=o[1],a=o[2];return r(t,null==(n=e.palette)||null==(n=n[i])?void 0:n[a])}:r;return Object.entries(e.palette).forEach(t=>{let[r,o]=t;i(o)&&(a[r]={"--Badge-ringColor":l(`palette-${r}-softBg`),[n("--shadowChannel")]:l(`palette-${r}-darkChannel`),[e.getColorSchemeSelector("dark")]:{[n("--palette-focusVisible")]:l(`palette-${r}-300`),[n("--palette-background-body")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.1)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,[n("--palette-background-level1")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,[n("--palette-text-primary")]:l(`palette-${r}-100`),[n("--palette-text-secondary")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.72)`,[n("--palette-text-tertiary")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.6)`,[n("--palette-divider")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${l(`palette-${r}-lightChannel`)} / 1)`,"--variant-plainHoverColor":l(`palette-${r}-50`),"--variant-plainHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${l(`palette-${r}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":l(`palette-${r}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":l(`palette-${r}-600`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${r}-100`),"--variant-softBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${r}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${r}-400`),"--variant-solidActiveBg":l(`palette-${r}-400`),"--variant-solidDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`},[e.getColorSchemeSelector("light")]:{[n("--palette-focusVisible")]:l(`palette-${r}-500`),[n("--palette-background-body")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.1)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,[n("--palette-background-level1")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.48)`,[n("--palette-text-primary")]:l(`palette-${r}-700`),[n("--palette-text-secondary")]:`rgba(${l(`palette-${r}-darkChannel`)} / 0.8)`,[n("--palette-text-tertiary")]:`rgba(${l(`palette-${r}-darkChannel`)} / 0.68)`,[n("--palette-divider")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${l(`palette-${r}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${l(`palette-${r}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${l(`palette-${r}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":l(`palette-${r}-600`),"--variant-outlinedHoverBorder":l(`palette-${r}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-softColor":l(`palette-${r}-600`),"--variant-softBg":`rgba(${l(`palette-${r}-lightChannel`)} / 0.72)`,"--variant-softHoverColor":l(`palette-${r}-700`),"--variant-softHoverBg":l(`palette-${r}-200`),"--variant-softActiveBg":l(`palette-${r}-300`),"--variant-softDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,"--variant-solidColor":l("palette-common-white"),"--variant-solidBg":l(`palette-${r}-600`),"--variant-solidHoverColor":l("palette-common-white"),"--variant-solidHoverBg":l(`palette-${r}-500`),"--variant-solidActiveBg":l(`palette-${r}-500`),"--variant-solidDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`}})}),a},f=(e,t)=>{let r=(0,o.Z)(e.cssVarPrefix),n=s(e.cssVarPrefix),a={},l=t?t=>{let n=t.split("-"),o=n[1],i=n[2];return r(t,e.palette[o][i])}:r;return Object.entries(e.palette).forEach(e=>{let[t,r]=e;i(r)&&("warning"===t?a.warning={"--Badge-ringColor":l(`palette-${t}-solidBg`),[n("--shadowChannel")]:l(`palette-${t}-darkChannel`),[n("--palette-focusVisible")]:l(`palette-${t}-700`),[n("--palette-background-body")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.16)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.1)`,[n("--palette-background-popup")]:l(`palette-${t}-100`),[n("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[n("--palette-text-primary")]:l(`palette-${t}-900`),[n("--palette-text-secondary")]:l(`palette-${t}-700`),[n("--palette-text-tertiary")]:l(`palette-${t}-500`),[n("--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)`}:a[t]={colorScheme:"dark","--Badge-ringColor":l(`palette-${t}-solidBg`),[n("--shadowChannel")]:l(`palette-${t}-darkChannel`),[n("--palette-focusVisible")]:l(`palette-${t}-200`),[n("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[n("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[n("--palette-background-popup")]:l(`palette-${t}-700`),[n("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[n("--palette-text-primary")]:l("palette-common-white"),[n("--palette-text-secondary")]:l(`palette-${t}-100`),[n("--palette-text-tertiary")]:l(`palette-${t}-200`),[n("--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)`})}),a}},326:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(40431),o=r(46750),i=r(99179),a=r(95596),l=r(85059),s=r(31227),c=r(47093);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],f=["component","slots","slotProps"],d=["component"],p=["disableColorInversion"];function h(e,t){let{className:r,elementType:h,ownerState:g,externalForwardedProps:m,getSlotOwnerState:v,internalForwardedProps:y}=t,b=(0,o.Z)(t,u),{component:x,slots:C={[e]:void 0},slotProps:w={[e]:void 0}}=m,S=(0,o.Z)(m,f),E=C[e]||h,$=(0,a.Z)(w[e],g),k=(0,l.Z)((0,n.Z)({className:r},b,{externalForwardedProps:"root"===e?S:void 0,externalSlotProps:$})),{props:{component:A},internalRef:O}=k,Z=(0,o.Z)(k.props,d),B=(0,i.Z)(O,null==$?void 0:$.ref,t.ref),P=v?v(Z):{},{disableColorInversion:T=!1}=P,j=(0,o.Z)(P,p),R=(0,n.Z)({},g,j),{getColor:M}=(0,c.VT)(R.variant);if("root"===e){var F;R.color=null!=(F=Z.color)?F:g.color}else T||(R.color=M(Z.color,R.color));let _="root"===e?A||x:A,N=(0,s.Z)(E,(0,n.Z)({},"root"===e&&!x&&!C[e]&&y,"root"!==e&&!C[e]&&y,Z,_&&{as:_},{ref:B}),R);return Object.keys(j).forEach(e=>{delete N[e]}),[E,N]}},44169:function(e,t,r){"use strict";var n=r(86006);let o=n.createContext(null);t.Z=o},63678:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(86006),o=r(44169);function i(){let e=n.useContext(o.Z);return e}},4323:function(e,t,r){"use strict";r.d(t,{ZP:function(){return v},Co:function(){return y}});var n=r(40431),o=r(86006),i=r(83596),a=/^((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,i.Z)(function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),s=r(17464),c=r(75941),u=r(5013),f=r(85124),d=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?l:d},h=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},g=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,c.hC)(t,r,n),(0,f.L)(function(){return(0,c.My)(t,r,n)}),null},m=(function e(t,r){var i,a,l=t.__emotion_real===t,f=l&&t.__emotion_base||t;void 0!==r&&(i=r.label,a=r.target);var d=h(t,r,l),m=d||p(f),v=!m("as");return function(){var y=arguments,b=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),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{let l=(0,i.useReducer)((e,l)=>({...e,...l}),{...e});return l},b=t(57931),g=t(52040),y=e=>{let{queryAgentURL:l,channel:t,queryBody:n,initHistory:a,runHistoryList:s}=e,[r,o]=j({history:a||[]}),{refreshDialogList:d}=(0,b.Cg)(),c=new AbortController;(0,i.useEffect)(()=>{a&&o({history:a})},[a]);let u=async(e,i)=>{if(!e)return;let a=[...r.history,{role:"human",context:e}],s=a.length;o({history:a});try{await (0,m.L)("".concat(g.env.API_BASE_URL?g.env.API_BASE_URL:"").concat("/api"+l),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...i,...n,user_input:e,channel:t}),signal:c.signal,async onopen(e){if(a.length<=1){var l;d();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),null===(l=window.history)||void 0===l||l.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==m.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw console.log("onerror"),Error(e)},onmessage:e=>{var l,t,n;if(e.data=null===(l=e.data)||void 0===l?void 0:l.replaceAll("\\n","\n"),"[DONE]"===e.data);else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))o({history:[...a,{role:"view",context:null===(n=e.data)||void 0===n?void 0:n.replace("[ERROR]","")}]});else{let l=[...a];e.data&&((null==l?void 0:l[s])?l[s].context="".concat(e.data):l.push({role:"view",context:e.data}),o({history:l}))}}})}catch(e){console.log(e),o({history:[...a,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:u,history:r.history}},_=t(67830),w=t(54842),Z=t(80937),N=t(311),P=t(94244),C=t(12025),S=t(46571),k=t(53113),E=t(35086),D=t(53047),R=t(81528),O=t(30530),L=t(64747),B=t(77614),I=t(19700),T=t(92391),A=t(55749),z=t(70781),F=t(75403),V=t(99398),q=t(49064),J=t(56008),M=t(84835),U=t.n(M),W=t(21628),H=t(15241),G=t(28179);let K=T.z.object({query:T.z.string().min(1)});var Y=e=>{var l;let{messages:a,onSubmit:r,readOnly:o,paramsList:d,runParamsList:c,isChartChat:u=!1,dbList:h,runDbList:p,supportTypes:m,clearIntialMessage:j,setChartsData:b}=e,g=(0,J.useSearchParams)(),y=g.get("initMessage"),T=g.get("spaceNameOriginal"),M=g.get("scene"),Y=(0,i.useRef)(null),[Q,X]=(0,i.useState)(!1),[$,ee]=(0,i.useState)(),[el,et]=(0,i.useState)(!1),[en,ei]=(0,i.useState)(),[ea,es]=(0,i.useState)(a),[er,eo]=(0,i.useState)(""),[ed,ec]=(0,i.useState)(!1),[eu,eh]=(0,i.useState)(h),ex=(e,l,t)=>{let n=U().cloneDeep(eu);n&&(void 0===(null==eu?void 0:eu[e])&&(n[e]={}),n[e][l]=t,eh(n))},ev=(0,I.cI)({resolver:(0,_.F)(K),defaultValues:{}}),ep=async e=>{let{query:l}=e;try{X(!0),ev.reset(),await r(l,{select_param:null==d?void 0:d[$]})}catch(e){}finally{X(!1)}},ef=async()=>{try{var e;let l=new URLSearchParams(window.location.search),t=l.get("initMessage");l.delete("initMessage"),null===(e=window.history)||void 0===e||e.replaceState(null,null,"?".concat(l.toString())),await ep({query:t})}catch(e){console.log(e)}finally{null==j||j()}},em={overrides:{code:e=>{let{children:l}=e;return(0,n.jsx)(V.Z,{language:"javascript",style:q.Z,children:l})}},wrapper:i.Fragment},ej=e=>{let l=e;try{l=JSON.parse(e)}catch(e){console.log(e)}return l},eb=i.useMemo(()=>{if("function"==typeof(null==window?void 0:window.fetch)){let e=t(62631);return t(25204),t(82372),e.default}},[]);return i.useEffect(()=>{Y.current&&Y.current.scrollTo(0,Y.current.scrollHeight)},[null==a?void 0:a.length]),i.useEffect(()=>{y&&a.length<=0&&ef()},[y,a.length]),i.useEffect(()=>{var e,l;d&&(null===(e=Object.keys(d||{}))||void 0===e?void 0:e.length)>0&&ee(T||(null===(l=Object.keys(d||{}))||void 0===l?void 0:l[0]))},[d]),i.useEffect(()=>{if(u){let e=U().cloneDeep(a);e.forEach(e=>{(null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=ej(null==e?void 0:e.context))}),es(e.filter(e=>["view","human"].includes(e.role)))}else es(a.filter(e=>["view","human"].includes(e.role)))},[u,a]),(0,i.useEffect)(()=>{let e=U().cloneDeep(h);null==e||e.forEach(e=>{let l=null==m?void 0:m.find(l=>l.db_type===e.db_type);e.isfileDb=null==l?void 0:l.is_file_db}),eh(e)},[h,m]),(0,n.jsxs)("div",{className:"w-full h-full",children:[(0,n.jsxs)(Z.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,n.jsxs)(Z.Z,{ref:Y,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[null==ea?void 0:ea.map((e,l)=>{var t,i;return(0,n.jsx)(Z.Z,{children:(0,n.jsx)(s.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:l=>({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,n.jsxs)(v.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,n.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,n.jsx)(z.Z,{}):(0,n.jsx)(A.Z,{})}),(0,n.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:u&&"view"===e.role&&"object"==typeof(null==e?void 0:e.context)?(0,n.jsxs)(n.Fragment,{children:["[".concat(e.context.template_name,"]: "),(0,n.jsx)(N.Z,{sx:{color:"#1677ff"},component:"button",onClick:()=>{et(!0),ei(l),eo(JSON.stringify(null==e?void 0:e.context,null,2))},children:e.context.template_introduce||"暂无介绍"})]}):(0,n.jsx)(F.Z,{options:em,children:null===(t=e.context)||void 0===t?void 0:null===(i=t.replaceAll)||void 0===i?void 0:i.call(t,"\\n","\n")})})]})})},l)}),Q&&(0,n.jsx)(P.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!o&&(0,n.jsx)(v.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,n.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(),ev.handleSubmit(ep)(e)},children:[(0,n.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[Object.keys(d||{}).length>0&&(0,n.jsx)("div",{className:"flex items-center gap-3",children:(0,n.jsx)(C.Z,{value:$,onChange:(e,l)=>{ee(l)},sx:{maxWidth:"100%"},children:null===(l=Object.keys(d||{}))||void 0===l?void 0:l.map(e=>(0,n.jsx)(S.Z,{value:e,children:e},e))})}),["chat_with_db_execute","chat_with_db_qa"].includes(M)&&(0,n.jsx)(k.Z,{"aria-label":"Like",variant:"plain",color:"neutral",sx:{padding:0,"&: hover":{backgroundColor:"unset"}},onClick:()=>{ec(!0)},children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,n.jsx)(G.Z,{style:{marginBottom:"0.125rem",fontSize:"28px"}}),(0,n.jsx)("span",{style:{display:"block",lineHeight:"25px",fontSize:12,marginLeft:6},children:"DB Connect Setting"})]})})]}),(0,n.jsx)(E.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,n.jsx)(D.ZP,{type:"submit",disabled:Q,children:(0,n.jsx)(w.Z,{})}),...ev.register("query")})]})})]}),(0,n.jsx)(R.Z,{open:el,onClose:()=>{et(!1)},children:(0,n.jsxs)(O.Z,{"aria-labelledby":"variant-modal-title","aria-describedby":"variant-modal-description",children:[(0,n.jsx)(L.Z,{}),(0,n.jsxs)(v.Z,{sx:{marginTop:"32px"},children:[!!eb&&(0,n.jsx)(eb,{mode:"json",value:er,height:"600px",width:"820px",onChange:eo,placeholder:"默认json数据",debounceChangePeriod:100,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,setOptions:{useWorker:!0,showLineNumbers:!0,highlightSelectedWord:!0,tabSize:2}}),(0,n.jsx)(k.Z,{variant:"outlined",className:"w-full",sx:{marginTop:"12px"},onClick:()=>{if(en)try{let e=U().cloneDeep(ea),l=JSON.parse(er);e[en].context=l,es(e),null==b||b(null==l?void 0:l.charts),et(!1),eo("")}catch(e){W.ZP.error("JSON 格式化出错")}},children:"Submit"})]})]})}),(0,n.jsx)(R.Z,{open:ed,onClose:()=>{ec(!1),null==c||c()},children:(0,n.jsxs)(O.Z,{children:[(0,n.jsx)(L.Z,{}),(0,n.jsxs)(x.Z,{children:[(0,n.jsx)("caption",{children:(0,n.jsx)("h3",{style:{fontWeight:"bold"},children:"数据库列表"})}),(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{style:{width:"140px"},children:"数据库类型"}),(0,n.jsx)("th",{style:{width:"130px"},children:"数据库名"}),(0,n.jsx)("th",{style:{width:"150px"},children:"链接地址/域名"}),(0,n.jsx)("th",{style:{width:"100px"},children:"端口"}),(0,n.jsx)("th",{style:{width:"140px"},children:"用户名"}),(0,n.jsx)("th",{style:{width:"140px"},children:"密码"}),(0,n.jsx)("th",{style:{width:"140px"},children:"备注"}),(0,n.jsx)("th",{style:{width:"140px"},children:"操作"})]})}),(0,n.jsxs)("tbody",{children:[null==eu?void 0:eu.map((e,l)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(C.Z,{defaultValue:null==e?void 0:e.db_type,onChange:(e,t)=>{let n=null==m?void 0:m.find(e=>e.db_type===t),i=U().cloneDeep(eu);i[l].db_type=t,i[l].isfileDb=null==n?void 0:n.is_file_db,n?(i[l].db_host="",i[l].db_port=""):i[l].db_path="",eh(i)},children:null==m?void 0:m.map(e=>(0,n.jsx)(S.Z,{value:e.db_type,children:null==e?void 0:e.db_type},e.db_type))}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_type,children:null==e?void 0:e.db_type})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isNew)?(0,n.jsx)(E.ZP,{value:null==e?void 0:e.db_name,onChange:e=>{ex(l,"db_name",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_name,children:null==e?void 0:e.db_name})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(E.ZP,{value:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host,onChange:t=>{(null==e?void 0:e.isfileDb)?ex(l,"db_path",t.target.value):ex(l,"db_host",t.target.value)}}):(0,n.jsx)(H.Z,{title:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host,children:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(null==e?void 0:e.isfileDb)?"-":(0,n.jsx)(E.ZP,{value:null==e?void 0:e.db_port,onChange:e=>{ex(l,"db_port",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_port,children:null==e?void 0:e.db_port})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(E.ZP,{defaultValue:e.db_user,onChange:e=>{ex(l,"db_user",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_user,children:null==e?void 0:e.db_user})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(E.ZP,{defaultValue:e.db_pwd,type:"password",onChange:e=>{ex(l,"db_pwd",e.target.value)}}):(0,n.jsx)(n.Fragment,{children:"******"})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(E.ZP,{defaultValue:null==e?void 0:e.comment,onChange:e=>{ex(l,"comment",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.comment,children:null==e?void 0:e.comment})}),(0,n.jsx)("td",{children:(0,n.jsxs)(v.Z,{sx:{gap:1,["& .".concat(B.Z.root)]:{padding:0,"&:hover":{background:"transparent"}}},children:[(null==e?void 0:e.isEdit)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(k.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:async()=>{let l=U().cloneDeep(e),t={db_type:null==l?void 0:l.db_type,db_name:null==l?void 0:l.db_name,file_path:(null==l?void 0:l.isfileDb)?null==l?void 0:l.db_path:void 0,db_host:(null==l?void 0:l.isfileDb)?void 0:null==l?void 0:l.db_host,db_port:(null==l?void 0:l.isfileDb)?void 0:null==l?void 0:l.db_port,db_user:null==l?void 0:l.db_user,db_pwd:null==l?void 0:l.db_pwd,comment:null==l?void 0:l.comment};if(l.isNew){let e=null==h?void 0:h.map(e=>null==e?void 0:e.db_name);if(null==e?void 0:e.includes(null==l?void 0:l.db_name)){W.ZP.error("该数据库名称已存在");return}await (0,f.PR)("/api/v1/chat/db/add",t)}else await (0,f.PR)("/api/v1/chat/db/edit",t);await (null==p?void 0:p())},children:"保存"}),(0,n.jsx)(k.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:()=>{let t=U().cloneDeep(eu);(null==e?void 0:e.isNew)?t.splice(l,1):(t[l].isEdit=!1,t[l]=null==h?void 0:h[l]),eh(t)},children:"取消"})]}):(0,n.jsx)(k.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:()=>{let e=U().cloneDeep(eu);e[l].isEdit=!0,eh(e)},children:"编辑"}),(0,n.jsx)(k.Z,{size:"sm",variant:"soft",color:"danger",onClick:async()=>{(null==e?void 0:e.db_name)&&(await (0,f.PR)("/api/v1/chat/db/delete?db_name=".concat(null==e?void 0:e.db_name)),await (null==p?void 0:p()))},children:"删除"})]})})]},l)),(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:8,children:(0,n.jsx)(k.Z,{variant:"outlined",sx:{width:"100%"},onClick:()=>{let e=U().cloneDeep(eu);null==e||e.push({isEdit:!0,isNew:!0,db_name:""}),eh(e)},children:"+ 新增一行"})})})]})]})]})})]})};let Q=()=>(0,n.jsxs)(s.Z,{className:"h-full w-full flex bg-transparent",children:[(0,n.jsx)(r.Z,{animation:"wave",variant:"text",level:"body2"}),(0,n.jsx)(r.Z,{animation:"wave",variant:"text",level:"body2"}),(0,n.jsx)(o.Z,{ratio:"21/9",className:"flex-1",sx:{["& .".concat(d.Z.content)]:{height:"100%"}},children:(0,n.jsx)(r.Z,{variant:"overlay",className:"h-full"})})]});var X=()=>{let[e,l]=(0,i.useState)();i.useRef(null);let[t,r]=i.useState(!1),o=(0,J.useSearchParams)(),{refreshDialogList:d}=(0,b.Cg)(),m=o.get("id"),j=o.get("scene"),{data:g,run:_}=(0,p.Z)(async()=>await (0,f.Tk)("/v1/chat/dialogue/messages/history",{con_uid:m}),{ready:!!m,refreshDeps:[m]}),{data:w,run:Z}=(0,p.Z)(async()=>await (0,f.Tk)("/v1/chat/db/list"),{ready:!!j&&!!["chat_with_db_execute","chat_with_db_qa"].includes(j)}),{data:N}=(0,p.Z)(async()=>await (0,f.Tk)("/v1/chat/db/support/type"),{ready:!!j&&!!["chat_with_db_execute","chat_with_db_qa"].includes(j)}),{data:P,run:C}=(0,p.Z)(async()=>await (0,f.Kw)("/v1/chat/mode/params/list?chat_mode=".concat(j)),{ready:!!j,refreshDeps:[m,j]}),{history:S,handleChatSubmit:k}=y({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:m,chat_mode:j||"chat_normal"},initHistory:null==g?void 0:g.data,runHistoryList:_});(0,i.useEffect)(()=>{try{var e;let t=null==S?void 0:null===(e=S[S.length-1])||void 0===e?void 0:e.context,n=JSON.parse(t);l((null==n?void 0:n.template_name)==="report"?null==n?void 0:n.charts:void 0)}catch(e){l(void 0)}},[S]);let E=(0,i.useMemo)(()=>{if(e){let l=[],t=null==e?void 0:e.filter(e=>"IndicatorValue"===e.chart_type);t.length>0&&l.push({rowIndex:l.length,cols:t,type:"IndicatorValue"});let n=null==e?void 0:e.filter(e=>"IndicatorValue"!==e.chart_type),i=n.length,a=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][i].forEach(e=>{if(e>0){let t=n.slice(a,a+e);a+=e,l.push({rowIndex:l.length,cols:t})}}),l}},[e]);return(0,n.jsxs)(c.Z,{container:!0,spacing:2,className:"h-full",sx:{flexGrow:1},children:[e&&(0,n.jsx)(c.Z,{xs:8,className:"max-h-full",children:(0,n.jsx)("div",{className:"flex flex-col gap-3 h-full",children:null==E?void 0:E.map(e=>(0,n.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex flex-1 gap-3 overflow-hidden":""),children:e.cols.map(e=>{if("IndicatorValue"===e.chart_type)return(0,n.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(s.Z,{sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"justify-around",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,n.jsx)(h.ZP,{children:e.value})]})})},e.name))},e.chart_uid);if("LineChart"===e.chart_type)return(0,n.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,n.jsx)(s.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"h-full",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1 h-full",children:(0,n.jsx)(a.Chart,{padding:[10,20,50,40],autoFit:!0,data:e.values,children:(0,n.jsx)(a.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"name*value",color:"type"})})})]})})},e.chart_uid);if("BarChart"===e.chart_type)return(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(s.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"h-full",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(a.Chart,{autoFit:!0,data:e.values,children:[(0,n.jsx)(a.Interval,{position:"name*value",style:{lineWidth:3,stroke:(0,a.getTheme)().colors10[0]}}),(0,n.jsx)(a.Tooltip,{shared:!0})]})})]})})},e.chart_uid);if("Table"===e.chart_type){var l,t;let i=U().groupBy(e.values,"type");return(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(s.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"h-full",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(x.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:Object.keys(i).map(e=>(0,n.jsx)("th",{children:e},e))})}),(0,n.jsx)("tbody",{children:null===(l=Object.values(i))||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.map((e,l)=>{var t;return(0,n.jsx)("tr",{children:null===(t=Object.keys(i))||void 0===t?void 0:t.map(e=>{var t;return(0,n.jsx)("td",{children:(null==i?void 0:null===(t=i[e])||void 0===t?void 0:t[l].value)||""},e)})},l)})})]})})]})})},e.chart_uid)}})},e.rowIndex))})}),!e&&"chat_dashboard"===j&&(0,n.jsx)(c.Z,{xs:8,className:"max-h-full p-6",children:(0,n.jsx)("div",{className:"flex flex-col gap-3 h-full",children:(0,n.jsxs)(c.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,n.jsx)(c.Z,{xs:8,children:(0,n.jsx)(v.Z,{className:"h-full w-full",sx:{display:"flex",gap:2},children:(0,n.jsx)(Q,{})})}),(0,n.jsx)(c.Z,{xs:4,children:(0,n.jsx)(Q,{})}),(0,n.jsx)(c.Z,{xs:4,children:(0,n.jsx)(Q,{})}),(0,n.jsx)(c.Z,{xs:8,children:(0,n.jsx)(Q,{})})]})})}),(0,n.jsx)(c.Z,{xs:"chat_dashboard"===j?4:12,className:"h-full max-h-full",children:(0,n.jsx)("div",{className:"h-full",style:{boxShadow:"chat_dashboard"===j?"0px 0px 9px 0px #c1c0c080":"unset"},children:(0,n.jsx)(Y,{clearIntialMessage:async()=>{await d()},dbList:null==w?void 0:w.data,runDbList:Z,supportTypes:null==N?void 0:N.data,isChartChat:"chat_dashboard"===j,messages:S||[],onSubmit:k,paramsList:null==P?void 0:P.data,runParamsList:C,setChartsData:l})})})]})}},57931:function(e,l,t){"use strict";t.d(l,{ZP:function(){return d},Cg:function(){return r}});var n=t(9268),i=t(89081),a=t(78915),s=t(86006);let[r,o]=function(){let e=s.createContext(void 0);return[function(){let l=s.useContext(e);if(void 0===l)throw Error("useCtx must be inside a Provider with a value");return l},e.Provider]}();var d=e=>{let{children:l}=e,{run:t,data:s,refresh:r}=(0,i.Z)(async()=>await (0,a.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(o,{value:{dialogueList:s,queryDialogueList:t,refreshDialogList:r},children:l})}},78915:function(e,l,t){"use strict";t.d(l,{Tk:function(){return c},Kw:function(){return u},PR:function(){return h},Ej:function(){return x}});var n=t(21628),i=t(24214),a=t(52040);let s=i.Z.create({baseURL:a.env.API_BASE_URL});s.defaults.timeout=1e4,s.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var r=t(84835);let o={"content-type":"application/json"},d=e=>{if(!(0,r.isPlainObject)(e))return JSON.stringify(e);let l={...e};for(let e in l){let t=l[e];"string"==typeof t&&(l[e]=t.trim())}return JSON.stringify(l)},c=(e,l)=>{if(l){let t=Object.keys(l).filter(e=>void 0!==l[e]&&""!==l[e]).map(e=>"".concat(e,"=").concat(l[e])).join("&");t&&(e+="?".concat(t))}return s.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},u=(e,l)=>{let t=d(l);return s.post("/api"+e,{body:t,headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},h=(e,l)=>(d(l),s.post(e,l,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),x=(e,l)=>s.post(e,l).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,757,282,838,60,759,192,86,316,790,767,259,751,320,253,769,744],function(){return e(e.s=83738)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/chat/page-641be9e13d61cb24.js b/pilot/server/static/_next/static/chunks/app/chat/page-641be9e13d61cb24.js new file mode 100644 index 000000000..df748dfb0 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/chat/page-641be9e13d61cb24.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[929],{83738:function(e,l,t){Promise.resolve().then(t.bind(t,65641))},65641:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return X}});var n=t(9268),i=t(86006),a=t(91440),s=t(90022),r=t(69962),o=t(97287),d=t(73141),c=t(45642),u=t(8997),h=t(22046),x=t(83192),v=t(90545),p=t(89081),f=t(78915),m=t(71990),j=e=>{let l=(0,i.useReducer)((e,l)=>({...e,...l}),{...e});return l},b=t(57931),g=t(56008),y=t(21628),_=t(52040),w=e=>{let{queryAgentURL:l,channel:t,queryBody:n,initHistory:a,runHistoryList:s}=e,[r,o]=j({history:a||[]}),d=(0,g.useSearchParams)(),c=d.get("id"),{refreshDialogList:u}=(0,b.Cg)(),h=new AbortController;(0,i.useEffect)(()=>{a&&o({history:a})},[a]);let x=async(e,i)=>{if(!e)return;let a=[...r.history,{role:"human",context:e}],s=a.length;o({history:a});let d={conv_uid:c,...i,...n,user_input:e,channel:t};if(!(null==d?void 0:d.conv_uid)){y.ZP.error("conv_uid 不存在,请刷新后重试");return}try{await (0,m.L)("".concat(_.env.API_BASE_URL?_.env.API_BASE_URL:"").concat("/api"+l),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(d),signal:h.signal,async onopen(e){if(a.length<=1){var l;u();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),null===(l=window.history)||void 0===l||l.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==m.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw console.log("onerror"),Error(e)},onmessage:e=>{var l,t,n;if(e.data=null===(l=e.data)||void 0===l?void 0:l.replaceAll("\\n","\n"),"[DONE]"===e.data);else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))o({history:[...a,{role:"view",context:null===(n=e.data)||void 0===n?void 0:n.replace("[ERROR]","")}]});else{let l=[...a];e.data&&((null==l?void 0:l[s])?l[s].context="".concat(e.data):l.push({role:"view",context:e.data}),o({history:l}))}}})}catch(e){console.log(e),o({history:[...a,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:x,history:r.history}},Z=t(67830),N=t(54842),P=t(80937),S=t(311),C=t(94244),k=t(12025),E=t(46571),D=t(53113),R=t(35086),O=t(53047),L=t(81528),B=t(30530),I=t(64747),T=t(77614),A=t(19700),z=t(92391),F=t(55749),V=t(70781),q=t(75403),J=t(99398),M=t(49064),U=t(84835),W=t.n(U),H=t(15241),G=t(28179);let K=z.z.object({query:z.z.string().min(1)});var Y=e=>{var l;let{messages:a,onSubmit:r,readOnly:o,paramsList:d,runParamsList:c,dbList:u,runDbList:h,supportTypes:p,clearIntialMessage:m,setChartsData:j}=e,b=(0,g.useSearchParams)(),_=b.get("initMessage"),w=b.get("spaceNameOriginal"),z=b.get("scene"),U="chat_dashboard"===z,Y=(0,i.useRef)(null),[Q,X]=(0,i.useState)(!1),[$,ee]=(0,i.useState)(),[el,et]=(0,i.useState)(!1),[en,ei]=(0,i.useState)(),[ea,es]=(0,i.useState)(a),[er,eo]=(0,i.useState)(""),[ed,ec]=(0,i.useState)(!1),[eu,eh]=(0,i.useState)(u),ex=(e,l,t)=>{let n=W().cloneDeep(eu);n&&(void 0===(null==eu?void 0:eu[e])&&(n[e]={}),n[e][l]=t,eh(n))},ev=(0,A.cI)({resolver:(0,Z.F)(K),defaultValues:{}}),ep=async e=>{let{query:l}=e;try{X(!0),ev.reset(),await r(l,{select_param:null==d?void 0:d[$]})}catch(e){}finally{X(!1)}},ef=async()=>{try{var e;let l=new URLSearchParams(window.location.search),t=l.get("initMessage");l.delete("initMessage"),null===(e=window.history)||void 0===e||e.replaceState(null,null,"?".concat(l.toString())),await ep({query:t})}catch(e){console.log(e)}finally{null==m||m()}},em={overrides:{code:e=>{let{children:l}=e;return(0,n.jsx)(J.Z,{language:"javascript",style:M.Z,children:l})}},wrapper:i.Fragment},ej=e=>{let l=e;try{l=JSON.parse(e)}catch(e){console.log(e)}return l},eb=i.useMemo(()=>{if("function"==typeof(null==window?void 0:window.fetch)){let e=t(62631);return t(25204),t(82372),e.default}},[]);return i.useEffect(()=>{Y.current&&Y.current.scrollTo(0,Y.current.scrollHeight)},[null==a?void 0:a.length]),i.useEffect(()=>{_&&a.length<=0&&ef()},[_,a.length]),i.useEffect(()=>{var e,l;d&&(null===(e=Object.keys(d||{}))||void 0===e?void 0:e.length)>0&&ee(w||(null===(l=Object.keys(d||{}))||void 0===l?void 0:l[0]))},[d]),i.useEffect(()=>{if(U){let e=W().cloneDeep(a);e.forEach(e=>{(null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=ej(null==e?void 0:e.context))}),es(e.filter(e=>["view","human"].includes(e.role)))}else es(a.filter(e=>["view","human"].includes(e.role)))},[U,a]),(0,i.useEffect)(()=>{let e=W().cloneDeep(u);null==e||e.forEach(e=>{let l=null==p?void 0:p.find(l=>l.db_type===e.db_type);e.isfileDb=null==l?void 0:l.is_file_db}),eh(e)},[u,p]),(0,n.jsxs)("div",{className:"w-full h-full",children:[(0,n.jsxs)(P.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,n.jsxs)(P.Z,{ref:Y,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[null==ea?void 0:ea.map((e,l)=>{var t,i;return(0,n.jsx)(P.Z,{children:(0,n.jsx)(s.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:l=>({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,n.jsxs)(v.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,n.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,n.jsx)(V.Z,{}):(0,n.jsx)(F.Z,{})}),(0,n.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:U&&"view"===e.role&&"object"==typeof(null==e?void 0:e.context)?(0,n.jsxs)(n.Fragment,{children:["[".concat(e.context.template_name,"]: "),(0,n.jsx)(S.Z,{sx:{color:"#1677ff"},component:"button",onClick:()=>{et(!0),ei(l),eo(JSON.stringify(null==e?void 0:e.context,null,2))},children:e.context.template_introduce||"暂无介绍"})]}):(0,n.jsx)(n.Fragment,{children:"string"==typeof e.context&&(0,n.jsx)(q.Z,{options:em,children:null===(t=e.context)||void 0===t?void 0:null===(i=t.replaceAll)||void 0===i?void 0:i.call(t,"\\n","\n")})})})]})})},l)}),Q&&(0,n.jsx)(C.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!o&&(0,n.jsx)(v.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,n.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(),ev.handleSubmit(ep)(e)},children:[(0,n.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[Object.keys(d||{}).length>0&&(0,n.jsx)("div",{className:"flex items-center gap-3",children:(0,n.jsx)(k.Z,{value:$,onChange:(e,l)=>{ee(l)},sx:{maxWidth:"100%"},children:null===(l=Object.keys(d||{}))||void 0===l?void 0:l.map(e=>(0,n.jsx)(E.Z,{value:e,children:e},e))})}),["chat_with_db_execute","chat_with_db_qa"].includes(z)&&(0,n.jsx)(D.Z,{"aria-label":"Like",variant:"plain",color:"neutral",sx:{padding:0,"&: hover":{backgroundColor:"unset"}},onClick:()=>{ec(!0)},children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,n.jsx)(G.Z,{style:{marginBottom:"0.125rem",fontSize:"28px"}}),(0,n.jsx)("span",{style:{display:"block",lineHeight:"25px",fontSize:12,marginLeft:6},children:"DB Connect Setting"})]})})]}),(0,n.jsx)(R.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,n.jsx)(O.ZP,{type:"submit",disabled:Q,children:(0,n.jsx)(N.Z,{})}),...ev.register("query")})]})})]}),(0,n.jsx)(L.Z,{open:el,onClose:()=>{et(!1)},children:(0,n.jsxs)(B.Z,{"aria-labelledby":"variant-modal-title","aria-describedby":"variant-modal-description",children:[(0,n.jsx)(I.Z,{}),(0,n.jsxs)(v.Z,{sx:{marginTop:"32px"},children:[!!eb&&(0,n.jsx)(eb,{mode:"json",value:er,height:"600px",width:"820px",onChange:eo,placeholder:"默认json数据",debounceChangePeriod:100,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,setOptions:{useWorker:!0,showLineNumbers:!0,highlightSelectedWord:!0,tabSize:2}}),(0,n.jsx)(D.Z,{variant:"outlined",className:"w-full",sx:{marginTop:"12px"},onClick:()=>{if(en)try{let e=W().cloneDeep(ea),l=JSON.parse(er);e[en].context=l,es(e),null==j||j(null==l?void 0:l.charts),et(!1),eo("")}catch(e){y.ZP.error("JSON 格式化出错")}},children:"Submit"})]})]})}),(0,n.jsx)(L.Z,{open:ed,onClose:()=>{ec(!1),null==c||c()},children:(0,n.jsxs)(B.Z,{children:[(0,n.jsx)(I.Z,{}),(0,n.jsxs)(x.Z,{children:[(0,n.jsx)("caption",{children:(0,n.jsx)("h3",{style:{fontWeight:"bold"},children:"数据库列表"})}),(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{style:{width:"140px"},children:"数据库类型"}),(0,n.jsx)("th",{style:{width:"130px"},children:"数据库名"}),(0,n.jsx)("th",{style:{width:"150px"},children:"链接地址/域名"}),(0,n.jsx)("th",{style:{width:"100px"},children:"端口"}),(0,n.jsx)("th",{style:{width:"140px"},children:"用户名"}),(0,n.jsx)("th",{style:{width:"140px"},children:"密码"}),(0,n.jsx)("th",{style:{width:"140px"},children:"备注"}),(0,n.jsx)("th",{style:{width:"140px"},children:"操作"})]})}),(0,n.jsxs)("tbody",{children:[null==eu?void 0:eu.map((e,l)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(k.Z,{defaultValue:null==e?void 0:e.db_type,onChange:(e,t)=>{let n=null==p?void 0:p.find(e=>e.db_type===t),i=W().cloneDeep(eu);i[l].db_type=t,i[l].isfileDb=null==n?void 0:n.is_file_db,n?(i[l].db_host="",i[l].db_port=""):i[l].db_path="",eh(i)},children:null==p?void 0:p.map(e=>(0,n.jsx)(E.Z,{value:e.db_type,children:null==e?void 0:e.db_type},e.db_type))}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_type,children:null==e?void 0:e.db_type})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isNew)?(0,n.jsx)(R.ZP,{value:null==e?void 0:e.db_name,onChange:e=>{ex(l,"db_name",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_name,children:null==e?void 0:e.db_name})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(R.ZP,{value:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host,onChange:t=>{(null==e?void 0:e.isfileDb)?ex(l,"db_path",t.target.value):ex(l,"db_host",t.target.value)}}):(0,n.jsx)(H.Z,{title:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host,children:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(null==e?void 0:e.isfileDb)?"-":(0,n.jsx)(R.ZP,{value:null==e?void 0:e.db_port,onChange:e=>{ex(l,"db_port",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_port,children:null==e?void 0:e.db_port})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(R.ZP,{defaultValue:e.db_user,onChange:e=>{ex(l,"db_user",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_user,children:null==e?void 0:e.db_user})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(R.ZP,{defaultValue:e.db_pwd,type:"password",onChange:e=>{ex(l,"db_pwd",e.target.value)}}):(0,n.jsx)(n.Fragment,{children:"******"})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(R.ZP,{defaultValue:null==e?void 0:e.comment,onChange:e=>{ex(l,"comment",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.comment,children:null==e?void 0:e.comment})}),(0,n.jsx)("td",{children:(0,n.jsxs)(v.Z,{sx:{gap:1,["& .".concat(T.Z.root)]:{padding:0,"&:hover":{background:"transparent"}}},children:[(null==e?void 0:e.isEdit)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(D.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:async()=>{let l=W().cloneDeep(e),t={db_type:null==l?void 0:l.db_type,db_name:null==l?void 0:l.db_name,file_path:(null==l?void 0:l.isfileDb)?null==l?void 0:l.db_path:void 0,db_host:(null==l?void 0:l.isfileDb)?void 0:null==l?void 0:l.db_host,db_port:(null==l?void 0:l.isfileDb)?void 0:null==l?void 0:l.db_port,db_user:null==l?void 0:l.db_user,db_pwd:null==l?void 0:l.db_pwd,comment:null==l?void 0:l.comment};if(l.isNew){let e=null==u?void 0:u.map(e=>null==e?void 0:e.db_name);if(null==e?void 0:e.includes(null==l?void 0:l.db_name)){y.ZP.error("该数据库名称已存在");return}await (0,f.PR)("/api/v1/chat/db/add",t)}else await (0,f.PR)("/api/v1/chat/db/edit",t);await (null==h?void 0:h())},children:"保存"}),(0,n.jsx)(D.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:()=>{let t=W().cloneDeep(eu);(null==e?void 0:e.isNew)?t.splice(l,1):(t[l].isEdit=!1,t[l]=null==u?void 0:u[l]),eh(t)},children:"取消"})]}):(0,n.jsx)(D.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:()=>{let e=W().cloneDeep(eu);e[l].isEdit=!0,eh(e)},children:"编辑"}),(0,n.jsx)(D.Z,{size:"sm",variant:"soft",color:"danger",onClick:async()=>{(null==e?void 0:e.db_name)&&(await (0,f.PR)("/api/v1/chat/db/delete?db_name=".concat(null==e?void 0:e.db_name)),await (null==h?void 0:h()))},children:"删除"})]})})]},l)),(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:8,children:(0,n.jsx)(D.Z,{variant:"outlined",sx:{width:"100%"},onClick:()=>{let e=W().cloneDeep(eu);null==e||e.push({isEdit:!0,isNew:!0,db_name:""}),eh(e)},children:"+ 新增一行"})})})]})]})]})})]})};let Q=()=>(0,n.jsxs)(s.Z,{className:"h-full w-full flex bg-transparent",children:[(0,n.jsx)(r.Z,{animation:"wave",variant:"text",level:"body2"}),(0,n.jsx)(r.Z,{animation:"wave",variant:"text",level:"body2"}),(0,n.jsx)(o.Z,{ratio:"21/9",className:"flex-1",sx:{["& .".concat(d.Z.content)]:{height:"100%"}},children:(0,n.jsx)(r.Z,{variant:"overlay",className:"h-full"})})]});var X=()=>{let[e,l]=(0,i.useState)();i.useRef(null);let[t,r]=i.useState(!1),o=(0,g.useSearchParams)(),{refreshDialogList:d}=(0,b.Cg)(),m=o.get("id"),j=o.get("scene"),{data:y,run:_}=(0,p.Z)(async()=>await (0,f.Tk)("/v1/chat/dialogue/messages/history",{con_uid:m}),{ready:!!m,refreshDeps:[m]}),{data:Z,run:N}=(0,p.Z)(async()=>await (0,f.Tk)("/v1/chat/db/list"),{ready:!!j&&!!["chat_with_db_execute","chat_with_db_qa"].includes(j)}),{data:P}=(0,p.Z)(async()=>await (0,f.Tk)("/v1/chat/db/support/type"),{ready:!!j&&!!["chat_with_db_execute","chat_with_db_qa"].includes(j)}),{data:S,run:C}=(0,p.Z)(async()=>await (0,f.Kw)("/v1/chat/mode/params/list?chat_mode=".concat(j)),{ready:!!j,refreshDeps:[m,j]}),{history:k,handleChatSubmit:E}=w({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:m,chat_mode:j||"chat_normal"},initHistory:null==y?void 0:y.data,runHistoryList:_});(0,i.useEffect)(()=>{try{var e;let t=null==k?void 0:null===(e=k[k.length-1])||void 0===e?void 0:e.context,n=JSON.parse(t);l((null==n?void 0:n.template_name)==="report"?null==n?void 0:n.charts:void 0)}catch(e){l(void 0)}},[k]);let D=(0,i.useMemo)(()=>{if(e){let l=[],t=null==e?void 0:e.filter(e=>"IndicatorValue"===e.chart_type);t.length>0&&l.push({rowIndex:l.length,cols:t,type:"IndicatorValue"});let n=null==e?void 0:e.filter(e=>"IndicatorValue"!==e.chart_type),i=n.length,a=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][i].forEach(e=>{if(e>0){let t=n.slice(a,a+e);a+=e,l.push({rowIndex:l.length,cols:t})}}),l}},[e]);return(0,n.jsxs)(c.Z,{container:!0,spacing:2,className:"h-full",sx:{flexGrow:1},children:[e&&(0,n.jsx)(c.Z,{xs:8,className:"max-h-full",children:(0,n.jsx)("div",{className:"flex flex-col gap-3 h-full",children:null==D?void 0:D.map(e=>(0,n.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex flex-1 gap-3 overflow-hidden":""),children:e.cols.map(e=>{if("IndicatorValue"===e.chart_type)return(0,n.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(s.Z,{sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"justify-around",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,n.jsx)(h.ZP,{children:e.value})]})})},e.name))},e.chart_uid);if("LineChart"===e.chart_type)return(0,n.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,n.jsx)(s.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"h-full",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1 h-full",children:(0,n.jsx)(a.Chart,{padding:[10,20,50,40],autoFit:!0,data:e.values,children:(0,n.jsx)(a.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"name*value",color:"type"})})})]})})},e.chart_uid);if("BarChart"===e.chart_type)return(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(s.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"h-full",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(a.Chart,{autoFit:!0,data:e.values,children:[(0,n.jsx)(a.Interval,{position:"name*value",style:{lineWidth:3,stroke:(0,a.getTheme)().colors10[0]}}),(0,n.jsx)(a.Tooltip,{shared:!0})]})})]})})},e.chart_uid);if("Table"===e.chart_type){var l,t;let i=W().groupBy(e.values,"type");return(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(s.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"h-full",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(x.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:Object.keys(i).map(e=>(0,n.jsx)("th",{children:e},e))})}),(0,n.jsx)("tbody",{children:null===(l=Object.values(i))||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.map((e,l)=>{var t;return(0,n.jsx)("tr",{children:null===(t=Object.keys(i))||void 0===t?void 0:t.map(e=>{var t;return(0,n.jsx)("td",{children:(null==i?void 0:null===(t=i[e])||void 0===t?void 0:t[l].value)||""},e)})},l)})})]})})]})})},e.chart_uid)}})},e.rowIndex))})}),!e&&"chat_dashboard"===j&&(0,n.jsx)(c.Z,{xs:8,className:"max-h-full p-6",children:(0,n.jsx)("div",{className:"flex flex-col gap-3 h-full",children:(0,n.jsxs)(c.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,n.jsx)(c.Z,{xs:8,children:(0,n.jsx)(v.Z,{className:"h-full w-full",sx:{display:"flex",gap:2},children:(0,n.jsx)(Q,{})})}),(0,n.jsx)(c.Z,{xs:4,children:(0,n.jsx)(Q,{})}),(0,n.jsx)(c.Z,{xs:4,children:(0,n.jsx)(Q,{})}),(0,n.jsx)(c.Z,{xs:8,children:(0,n.jsx)(Q,{})})]})})}),(0,n.jsx)(c.Z,{xs:"chat_dashboard"===j?4:12,className:"h-full max-h-full",children:(0,n.jsx)("div",{className:"h-full",style:{boxShadow:"chat_dashboard"===j?"0px 0px 9px 0px #c1c0c080":"unset"},children:(0,n.jsx)(Y,{clearIntialMessage:async()=>{await d()},dbList:null==Z?void 0:Z.data,runDbList:N,supportTypes:null==P?void 0:P.data,isChartChat:"chat_dashboard"===j,messages:k||[],onSubmit:E,paramsList:null==S?void 0:S.data,runParamsList:C,setChartsData:l})})})]})}},57931:function(e,l,t){"use strict";t.d(l,{ZP:function(){return d},Cg:function(){return r}});var n=t(9268),i=t(89081),a=t(78915),s=t(86006);let[r,o]=function(){let e=s.createContext(void 0);return[function(){let l=s.useContext(e);if(void 0===l)throw Error("useCtx must be inside a Provider with a value");return l},e.Provider]}();var d=e=>{let{children:l}=e,{run:t,data:s,refresh:r}=(0,i.Z)(async()=>await (0,a.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(o,{value:{dialogueList:s,queryDialogueList:t,refreshDialogList:r},children:l})}},78915:function(e,l,t){"use strict";t.d(l,{Tk:function(){return c},Kw:function(){return u},PR:function(){return h},Ej:function(){return x}});var n=t(21628),i=t(24214),a=t(52040);let s=i.Z.create({baseURL:a.env.API_BASE_URL});s.defaults.timeout=1e4,s.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var r=t(84835);let o={"content-type":"application/json"},d=e=>{if(!(0,r.isPlainObject)(e))return JSON.stringify(e);let l={...e};for(let e in l){let t=l[e];"string"==typeof t&&(l[e]=t.trim())}return JSON.stringify(l)},c=(e,l)=>{if(l){let t=Object.keys(l).filter(e=>void 0!==l[e]&&""!==l[e]).map(e=>"".concat(e,"=").concat(l[e])).join("&");t&&(e+="?".concat(t))}return s.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},u=(e,l)=>{let t=d(l);return s.post("/api"+e,{body:t,headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},h=(e,l)=>(d(l),s.post(e,l,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),x=(e,l)=>s.post(e,l).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,757,282,877,230,759,192,81,86,790,767,341,751,320,253,769,744],function(){return e(e.s=83738)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-5817243840a3f0d3.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-5817243840a3f0d3.js deleted file mode 100644 index 876850310..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-5817243840a3f0d3.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[538],{40687:function(e,t,n){Promise.resolve().then(n.bind(n,26257))},26257:function(e,t,n){"use strict";n.r(t);var r=n(9268),a=n(56008),i=n(86006),c=n(78635),s=n(80937),o=n(44334),l=n(311),d=n(22046),h=n(83192),u=n(23910),g=n(1031),f=n(78915);t.default=()=>{let e=(0,a.useRouter)(),{mode:t}=(0,c.tv)(),n=(0,a.useSearchParams)().get("spacename"),j=(0,a.useSearchParams)().get("documentid"),[m,p]=(0,i.useState)(0),[x,P]=(0,i.useState)(0),[S,_]=(0,i.useState)([]);return(0,i.useEffect)(()=>{(async function(){let e=await (0,f.PR)("/knowledge/".concat(n,"/chunk/list"),{document_id:j,page:1,page_size:20});e.success&&(_(e.data.data),p(e.data.total),P(e.data.page))})()},[]),(0,r.jsxs)("div",{className:"p-4",children:[(0,r.jsx)(s.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:(0,r.jsxs)(o.Z,{"aria-label":"breadcrumbs",children:[(0,r.jsx)(l.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,r.jsx)(l.Z,{onClick:()=>{e.push("/datastores/documents?name=".concat(n))},underline:"hover",color:"neutral",fontSize:"inherit",children:"Documents"},"Knowledge Space"),(0,r.jsx)(d.ZP,{fontSize:"inherit",children:"Chunks"})]})}),(0,r.jsx)("div",{className:"p-4",children:S.length?(0,r.jsxs)(r.Fragment,{children:[(0,r.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,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Name"}),(0,r.jsx)("th",{children:"Content"}),(0,r.jsx)("th",{children:"Meta Data"})]})}),(0,r.jsx)("tbody",{children:S.map(e=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:e.doc_name}),(0,r.jsx)("td",{children:(0,r.jsx)(u.Z,{content:e.content,trigger:"hover",children:e.content.length>10?"".concat(e.content.slice(0,10),"..."):e.content})}),(0,r.jsx)("td",{children:(0,r.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,r.jsx)(s.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,r.jsx)(g.Z,{defaultPageSize:20,showSizeChanger:!1,current:x,total:m,onChange:async e=>{let t=await (0,f.PR)("/knowledge/".concat(n,"/chunk/list"),{document_id:j,page:e,page_size:20});t.success&&(_(t.data.data),p(t.data.total),P(t.data.page))},hideOnSinglePage:!0})})]}):(0,r.jsx)(r.Fragment,{})})]})}},78915:function(e,t,n){"use strict";n.d(t,{Tk:function(){return d},Kw:function(){return h},PR:function(){return u},Ej:function(){return g}});var r=n(21628),a=n(24214),i=n(52040);let c=a.Z.create({baseURL:i.env.API_BASE_URL});c.defaults.timeout=1e4,c.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=n(84835);let o={"content-type":"application/json"},l=e=>{if(!(0,s.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 c.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},h=(e,t)=>{let n=l(t);return c.post("/api"+e,{body:n,headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},u=(e,t)=>(l(t),c.post(e,t,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})),g=(e,t)=>c.post(e,t).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,838,759,192,409,767,957,253,769,744],function(){return e(e.s=40687)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-cd9a18b737d2f31b.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-cd9a18b737d2f31b.js new file mode 100644 index 000000000..871f41eae --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-cd9a18b737d2f31b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[538],{40687:function(e,t,n){Promise.resolve().then(n.bind(n,26257))},26257:function(e,t,n){"use strict";n.r(t);var r=n(9268),a=n(56008),i=n(86006),c=n(78635),s=n(90545),o=n(80937),l=n(44334),d=n(311),h=n(22046),u=n(83192),g=n(23910),f=n(1031),j=n(78915);t.default=()=>{let e=(0,a.useRouter)(),{mode:t}=(0,c.tv)(),n=(0,a.useSearchParams)().get("spacename"),m=(0,a.useSearchParams)().get("documentid"),[p,x]=(0,i.useState)(0),[P,b]=(0,i.useState)(0),[S,Z]=(0,i.useState)([]);return(0,i.useEffect)(()=>{(async function(){let e=await (0,j.PR)("/knowledge/".concat(n,"/chunk/list"),{document_id:m,page:1,page_size:20});e.success&&(Z(e.data.data),x(e.data.total),b(e.data.page))})()},[]),(0,r.jsxs)(s.Z,{className:"p-4",sx:{"&":{height:"90%"}},children:[(0,r.jsx)(o.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:(0,r.jsxs)(l.Z,{"aria-label":"breadcrumbs",children:[(0,r.jsx)(d.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,r.jsx)(d.Z,{onClick:()=>{e.push("/datastores/documents?name=".concat(n))},underline:"hover",color:"neutral",fontSize:"inherit",children:"Documents"},"Knowledge Space"),(0,r.jsx)(h.ZP,{fontSize:"inherit",children:"Chunks"})]})}),(0,r.jsx)(s.Z,{className:"p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:S.length?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(u.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,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Name"}),(0,r.jsx)("th",{children:"Content"}),(0,r.jsx)("th",{children:"Meta Data"})]})}),(0,r.jsx)("tbody",{children:S.map(e=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:e.doc_name}),(0,r.jsx)("td",{children:(0,r.jsx)(g.Z,{content:e.content,trigger:"hover",children:e.content.length>10?"".concat(e.content.slice(0,10),"..."):e.content})}),(0,r.jsx)("td",{children:(0,r.jsx)(g.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,r.jsx)(r.Fragment,{})}),(0,r.jsx)(o.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,r.jsx)(f.Z,{defaultPageSize:20,showSizeChanger:!1,current:P,total:p,onChange:async e=>{let t=await (0,j.PR)("/knowledge/".concat(n,"/chunk/list"),{document_id:m,page:e,page_size:20});t.success&&(Z(t.data.data),x(t.data.total),b(t.data.page))},hideOnSinglePage:!0})})]})}},78915:function(e,t,n){"use strict";n.d(t,{Tk:function(){return d},Kw:function(){return h},PR:function(){return u},Ej:function(){return g}});var r=n(21628),a=n(24214),i=n(52040);let c=a.Z.create({baseURL:i.env.API_BASE_URL});c.defaults.timeout=1e4,c.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=n(84835);let o={"content-type":"application/json"},l=e=>{if(!(0,s.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 c.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},h=(e,t)=>{let n=l(t);return c.post("/api"+e,{body:n,headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},u=(e,t)=>(l(t),c.post(e,t,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})),g=(e,t)=>c.post(e,t).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,877,759,192,409,767,957,253,769,744],function(){return e(e.s=40687)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-8c5325d5737cf6c7.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-8c5325d5737cf6c7.js new file mode 100644 index 000000000..2c1ea997b --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-8c5325d5737cf6c7.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[470],{51499:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),a=i(9268),o=(0,r.default)((0,a.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");t.Z=o},44066:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),a=i(9268),o=(0,r.default)((0,a.jsx)("path",{d:"m10 17 5-5-5-5v10z"}),"ArrowRight");t.Z=o},78141:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),a=i(9268),o=(0,r.default)((0,a.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=o},73220:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),a=i(9268),o=(0,r.default)((0,a.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"}),"Chat");t.Z=o},59970:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),a=i(9268),o=(0,r.default)((0,a.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline");t.Z=o},42414:function(e,t,i){Promise.resolve().then(i.bind(i,36906))},36906:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return ed}});var n=i(9268),r=i(56008),a=i(86006),o=i(50645),s=i(5737),l=i(78635),d=i(80937),c=i(44334),h=i(311),x=i(22046),p=i(53113),u=i(83192),m=i(46750),g=i(40431),v=i(89791),f=i(47562),j=i(46319),Z=i(53832),C=i(49657),b=i(88930),y=i(47093),w=i(18587);function P(e){return(0,w.d6)("MuiChip",e)}let S=(0,w.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"]),k=a.createContext({disabled:void 0,variant:void 0,color:void 0});var _=i(326);let z=["children","className","color","onClick","disabled","size","variant","startDecorator","endDecorator","component","slots","slotProps"],R=e=>{let{disabled:t,size:i,color:n,clickable:r,variant:a,focusVisible:o}=e,s={root:["root",t&&"disabled",n&&`color${(0,Z.Z)(n)}`,i&&`size${(0,Z.Z)(i)}`,a&&`variant${(0,Z.Z)(a)}`,r&&"clickable"],action:["action",t&&"disabled",o&&"focusVisible"],label:["label",i&&`label${(0,Z.Z)(i)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,f.Z)(s,P,{})},D=(0,o.Z)("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,r,a;return[(0,g.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)",maxWidth:"max-content",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",[`&.${S.disabled}`]:{color:null==(i=e.variants[`${t.variant}Disabled`])||null==(i=i[t.color])?void 0:i.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:null==(a=e.variants[t.variant])||null==(a=a[t.color])?void 0:a.color}]:[null==(n=e.variants[t.variant])?void 0:n[t.color],{[`&.${S.disabled}`]:null==(r=e.variants[`${t.variant}Disabled`])?void 0:r[t.color]}]]}),I=(0,o.Z)("span",{name:"JoyChip",slot:"Label",overridesResolver:(e,t)=>t.label})(({ownerState:e})=>(0,g.Z)({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},e.clickable&&{zIndex:1,pointerEvents:"none"})),B=(0,o.Z)("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e,ownerState:t})=>{var i,n,r,a;return[{position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,width:"100%",border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[e.focus.selector]:e.focus.default},null==(i=e.variants[t.variant])?void 0:i[t.color],{"&:hover":null==(n=e.variants[`${t.variant}Hover`])?void 0:n[t.color]},{"&:active":null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color]},{[`&.${S.disabled}`]:null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]}]}),H=(0,o.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"}),L=(0,o.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"}),T=a.forwardRef(function(e,t){let i=(0,b.Z)({props:e,name:"JoyChip"}),{children:r,className:o,color:s="primary",onClick:l,disabled:d=!1,size:c="md",variant:h="solid",startDecorator:x,endDecorator:p,component:u,slots:f={},slotProps:Z={}}=i,w=(0,m.Z)(i,z),{getColor:P}=(0,y.VT)(h),S=P(e.color,s),T=!!l||!!Z.action,N=(0,g.Z)({},i,{disabled:d,size:c,color:S,variant:h,clickable:T,focusVisible:!1}),F="function"==typeof Z.action?Z.action(N):Z.action,O=a.useRef(null),{focusVisible:A,getRootProps:E}=(0,j.Z)((0,g.Z)({},F,{disabled:d,rootRef:O}));N.focusVisible=A;let M=R(N),W=(0,g.Z)({},w,{component:u,slots:f,slotProps:Z}),[V,U]=(0,_.Z)("root",{ref:t,className:(0,v.Z)(M.root,o),elementType:D,externalForwardedProps:W,ownerState:N}),[$,G]=(0,_.Z)("label",{className:M.label,elementType:I,externalForwardedProps:W,ownerState:N}),J=(0,C.Z)(G.id),[Y,K]=(0,_.Z)("action",{className:M.action,elementType:B,externalForwardedProps:W,ownerState:N,getSlotProps:E,additionalProps:{"aria-labelledby":J,as:null==F?void 0:F.component,onClick:l}}),[X,q]=(0,_.Z)("startDecorator",{className:M.startDecorator,elementType:H,externalForwardedProps:W,ownerState:N}),[Q,ee]=(0,_.Z)("endDecorator",{className:M.endDecorator,elementType:L,externalForwardedProps:W,ownerState:N}),et=a.useMemo(()=>({disabled:d,variant:h,color:"context"===S?void 0:S}),[S,d,h]);return(0,n.jsx)(k.Provider,{value:et,children:(0,n.jsxs)(V,(0,g.Z)({},U,{children:[T&&(0,n.jsx)(Y,(0,g.Z)({},K)),(0,n.jsx)($,(0,g.Z)({},G,{id:J,children:r})),x&&(0,n.jsx)(X,(0,g.Z)({},q,{children:x})),p&&(0,n.jsx)(Q,(0,g.Z)({},ee,{children:p}))]}))})});var N=i(81528),F=i(90545),O=i(35086),A=i(866),E=i(28086),M=i(65326),W=i.n(M),V=i(72474),U=i(59534),$=i(78141),G=i(68949),J=i(73220),Y=i(50157),K=i(23910),X=i(21628),q=i(1031),Q=i(78915),ee=i(89081),et=i(59970),ei=i(44066),en=i(51499),er=e=>{var t,i,r,o,l,c,h,x,u,m,g,v,f,j,Z,C,b,y;let{spaceName:w}=e,[P,S]=(0,a.useState)(!1),[k,_]=(0,a.useState)({}),[z,R]=(0,a.useState)(!1),[D,I]=(0,a.useState)(!1),{data:B}=(0,ee.Z)(()=>(0,Q.PR)("/knowledge/".concat(w,"/arguments")),{onSuccess(e){_(e.data)}});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.Z,{variant:"outlined",onClick:()=>S(!0),children:"Arguments"}),(0,n.jsx)(N.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:P,onClose:()=>S(!1),children:(0,n.jsxs)(s.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,n.jsxs)(F.Z,{sx:{height:"500px",overflow:"auto","&::-webkit-scrollbar":{display:"none"}},children:[(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(F.Z,{sx:{fontWeight:"bold",fontSize:"25px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{R(e=>!e)},children:[z?(0,n.jsx)(ei.Z,{}):(0,n.jsx)(en.Z,{}),"embedding"]}),(0,n.jsxs)(F.Z,{sx:{height:z?"0px":void 0,overflow:"hidden"},children:[(0,n.jsxs)(d.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"20px",flexGrow:"1",flexShrink:"1",marginRight:"30px"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"10px"},children:["topk",(0,n.jsx)(K.Z,{content:"the top k vectors based on similarity score",trigger:"hover",style:{marginLeft:"20px"},children:(0,n.jsx)(et.Z,{sx:{marginLeft:"10px"}})})]}),(0,n.jsx)(F.Z,{children:(0,n.jsx)(O.ZP,{defaultValue:(null==B?void 0:null===(t=B.data)||void 0===t?void 0:null===(i=t.embedding)||void 0===i?void 0:i.topk)||"",onChange:e=>{k.embedding.topk=e.target.value,_({...k})}})})]}),(0,n.jsxs)(F.Z,{sx:{marginBottom:"20px",flexGrow:"1",flexShrink:"1"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"10px"},children:["recall_score",(0,n.jsx)(K.Z,{content:"Set a threshold score for the retrieval of similar vectors",trigger:"hover",style:{marginLeft:"20px"},children:(0,n.jsx)(et.Z,{sx:{marginLeft:"10px"}})})]}),(0,n.jsx)(F.Z,{children:(0,n.jsx)(O.ZP,{defaultValue:(null==B?void 0:null===(r=B.data)||void 0===r?void 0:null===(o=r.embedding)||void 0===o?void 0:o.recall_score)||"",onChange:e=>{k.embedding.recall_score=e.target.value,_({...k})}})})]})]}),(0,n.jsxs)(d.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"20px",flexGrow:"1",flexShrink:"1",marginRight:"30px"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"10px"},children:["recall_type",(0,n.jsx)(K.Z,{content:"recall type",trigger:"hover",style:{marginLeft:"20px"},children:(0,n.jsx)(et.Z,{sx:{marginLeft:"10px"}})})]}),(0,n.jsx)(F.Z,{children:(0,n.jsx)(O.ZP,{defaultValue:(null==B?void 0:null===(l=B.data)||void 0===l?void 0:null===(c=l.embedding)||void 0===c?void 0:c.recall_type)||"",onChange:e=>{k.embedding.recall_type=e.target.value,_({...k})}})})]}),(0,n.jsxs)(F.Z,{sx:{marginBottom:"20px",flexGrow:"1",flexShrink:"1"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"10px"},children:["model",(0,n.jsx)(K.Z,{content:"A model used to create vector representations of text or other data",trigger:"hover",style:{marginLeft:"20px"},children:(0,n.jsx)(et.Z,{sx:{marginLeft:"10px"}})})]}),(0,n.jsx)(F.Z,{children:(0,n.jsx)(O.ZP,{defaultValue:(null==B?void 0:null===(h=B.data)||void 0===h?void 0:null===(x=h.embedding)||void 0===x?void 0:x.model)||"",onChange:e=>{k.embedding.model=e.target.value,_({...k})}})})]})]}),(0,n.jsxs)(d.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"20px",flexGrow:"1",flexShrink:"1",marginRight:"30px"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"10px"},children:["chunk_size",(0,n.jsx)(K.Z,{content:"The size of the data chunks used in processing",trigger:"hover",style:{marginLeft:"20px"},children:(0,n.jsx)(et.Z,{sx:{marginLeft:"10px"}})})]}),(0,n.jsx)(F.Z,{children:(0,n.jsx)(O.ZP,{defaultValue:(null==B?void 0:null===(u=B.data)||void 0===u?void 0:null===(m=u.embedding)||void 0===m?void 0:m.chunk_size)||"",onChange:e=>{k.embedding.chunk_size=e.target.value,_({...k})}})})]}),(0,n.jsxs)(F.Z,{sx:{marginBottom:"20px",flexGrow:"1",flexShrink:"1"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"10px"},children:["chunk_overlap",(0,n.jsx)(K.Z,{content:"The amount of overlap between adjacent data chunks",trigger:"hover",style:{marginLeft:"20px"},children:(0,n.jsx)(et.Z,{sx:{marginLeft:"10px"}})})]}),(0,n.jsx)(F.Z,{children:(0,n.jsx)(O.ZP,{defaultValue:(null==B?void 0:null===(g=B.data)||void 0===g?void 0:null===(v=g.embedding)||void 0===v?void 0:v.chunk_overlap)||"",onChange:e=>{k.embedding.chunk_overlap=e.target.value,_({...k})}})})]})]})]})]}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(F.Z,{sx:{fontWeight:"bold",fontSize:"25px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{I(e=>!e)},children:[D?(0,n.jsx)(ei.Z,{}):(0,n.jsx)(en.Z,{}),"prompt"]}),(0,n.jsxs)(F.Z,{sx:{height:D?"0px":void 0,overflow:"hidden"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"20px"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"10px"},children:["scene",(0,n.jsx)(K.Z,{content:"A contextual parameter used to define the setting or environment in which the prompt is being used",trigger:"hover",style:{marginLeft:"20px"},children:(0,n.jsx)(et.Z,{sx:{marginLeft:"10px"}})})]}),(0,n.jsx)(F.Z,{children:(0,n.jsx)(A.Z,{minRows:5,defaultValue:(null==B?void 0:null===(f=B.data)||void 0===f?void 0:null===(j=f.prompt)||void 0===j?void 0:j.scene)||"",onChange:e=>{k.prompt.scene=e.target.value,_({...k})}})})]}),(0,n.jsxs)(F.Z,{sx:{marginBottom:"20px"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"10px"},children:["template",(0,n.jsx)(K.Z,{content:"A pre-defined structure or format for the prompt, which can help ensure that the AI system generates responses that are consistent with the desired style or tone.",trigger:"hover",style:{marginLeft:"20px"},children:(0,n.jsx)(et.Z,{sx:{marginLeft:"10px"}})})]}),(0,n.jsx)(F.Z,{children:(0,n.jsx)(A.Z,{minRows:5,defaultValue:(null==B?void 0:null===(Z=B.data)||void 0===Z?void 0:null===(C=Z.prompt)||void 0===C?void 0:C.template)||"",onChange:e=>{k.prompt.template=e.target.value,_({...k})}})})]}),(0,n.jsxs)(F.Z,{sx:{marginBottom:"20px"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"10px"},children:["max_token",(0,n.jsx)(K.Z,{content:"The maximum number of tokens or words allowed in a prompt",trigger:"hover",style:{marginLeft:"20px"},children:(0,n.jsx)(et.Z,{sx:{marginLeft:"10px"}})})]}),(0,n.jsx)(F.Z,{children:(0,n.jsx)(O.ZP,{defaultValue:(null==B?void 0:null===(b=B.data)||void 0===b?void 0:null===(y=b.prompt)||void 0===y?void 0:y.max_token)||"",onChange:e=>{k.prompt.max_token=e.target.value,_({...k})}})})]})]})]})]}),(0,n.jsx)(d.Z,{direction:"row",justifyContent:"flex-start",sx:{marginTop:"20px",marginBottom:"20px"},children:(0,n.jsx)(p.Z,{variant:"outlined",onClick:()=>{(0,Q.PR)("/knowledge/".concat(w,"/argument/save"),{argument:JSON.stringify(k)}).then(e=>{e.success?(window.location.reload(),X.ZP.success("success")):X.ZP.error(e.err_msg||"failed")})},children:"Submit"})})]})})]})};let{Dragger:ea}=Y.default,eo=(0,o.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}}),es=["Choose a Datasource type","Setup the Datasource"],el=[{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 ed=()=>{let e=(0,r.useRouter)(),t=(0,r.useSearchParams)().get("name"),{mode:i}=(0,l.tv)(),[o,m]=(0,a.useState)(!1),[g,v]=(0,a.useState)(0),[f,j]=(0,a.useState)(""),[Z,C]=(0,a.useState)([]),[b,y]=(0,a.useState)(""),[w,P]=(0,a.useState)(""),[S,k]=(0,a.useState)(""),[_,z]=(0,a.useState)(""),[R,D]=(0,a.useState)(null),[I,B]=(0,a.useState)(0),[H,L]=(0,a.useState)(0),[M,Y]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{(async function(){let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:1,page_size:20});e.success&&(C(e.data.data),B(e.data.total),L(e.data.page))})()},[]),(0,n.jsxs)("div",{className:"p-4",children:[(0,n.jsxs)(d.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,n.jsxs)(c.Z,{"aria-label":"breadcrumbs",children:[(0,n.jsx)(h.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,n.jsx)(x.ZP,{fontSize:"inherit",children:"Documents"})]}),(0,n.jsxs)(d.Z,{direction:"row",alignItems:"center",children:[(0,n.jsxs)(p.Z,{variant:"outlined",onClick:async()=>{var i,n;let r=await (0,Q.PR)("/api/v1/chat/dialogue/new",{chat_mode:"chat_knowledge"});(null==r?void 0:r.success)&&(null==r?void 0:null===(i=r.data)||void 0===i?void 0:i.conv_uid)&&e.push("/chat?id=".concat(null==r?void 0:null===(n=r.data)||void 0===n?void 0:n.conv_uid,"&scene=chat_knowledge&spaceNameOriginal=").concat(t))},sx:{marginRight:"20px",backgroundColor:"rgb(39, 155, 255) !important",color:"white",border:"none"},children:[(0,n.jsx)(J.Z,{sx:{marginRight:"6px",fontSize:"18px"}}),"Chat"]}),(0,n.jsx)(p.Z,{variant:"outlined",onClick:()=>m(!0),sx:{marginRight:"20px"},children:"+ Add Datasource"}),(0,n.jsx)(er,{spaceName:t})]})]}),Z.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(u.Z,{color:"primary",variant:"plain",size:"sm",sx:{"& tbody tr: hover":{backgroundColor:"light"===i?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"},"& tr > *:last-child":{textAlign:"right"}},children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"Name"}),(0,n.jsx)("th",{children:"Type"}),(0,n.jsx)("th",{children:"Size"}),(0,n.jsx)("th",{children:"Last Synch"}),(0,n.jsx)("th",{children:"Status"}),(0,n.jsx)("th",{children:"Result"}),(0,n.jsx)("th",{style:{width:"30%"},children:"Operation"})]})}),(0,n.jsx)("tbody",{children:Z.map(i=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:i.doc_name}),(0,n.jsx)("td",{children:(0,n.jsx)(T,{size:"sm",variant:"solid",color:"neutral",sx:{opacity:.5},children:i.doc_type})}),(0,n.jsxs)("td",{children:[i.chunk_size," chunks"]}),(0,n.jsx)("td",{children:W()(i.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,n.jsx)("td",{children:(0,n.jsx)(T,{size:"sm",sx:{opacity:.5},variant:"solid",color:function(){switch(i.status){case"TODO":return"neutral";case"RUNNING":return"primary";case"FINISHED":return"success";case"FAILED":return"danger"}}(),children:i.status})}),(0,n.jsx)("td",{children:"TODO"===i.status||"RUNNING"===i.status?"":"FINISHED"===i.status?(0,n.jsx)(K.Z,{content:i.result,trigger:"hover",children:(0,n.jsx)(T,{size:"sm",variant:"solid",color:"success",sx:{opacity:.5},children:"SUCCESS"})}):(0,n.jsx)(K.Z,{content:i.result,trigger:"hover",children:(0,n.jsx)(T,{size:"sm",variant:"solid",color:"danger",sx:{opacity:.5},children:"FAILED"})})}),(0,n.jsx)("td",{children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(p.Z,{variant:"outlined",size:"sm",sx:{marginRight:"2px"},onClick:async()=>{let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[i.id]});e.success?X.ZP.success("success"):X.ZP.error(e.err_msg||"failed")},children:["Synch",(0,n.jsx)($.Z,{})]}),(0,n.jsx)(p.Z,{variant:"outlined",size:"sm",sx:{marginRight:"2px"},onClick:()=>{e.push("/datastores/documents/chunklist?spacename=".concat(t,"&documentid=").concat(i.id))},children:"Details"}),(0,n.jsxs)(p.Z,{variant:"outlined",size:"sm",color:"danger",onClick:async()=>{let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/delete"),{doc_name:i.doc_name});if(e.success){X.ZP.success("success");let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:H,page_size:20});e.success&&(C(e.data.data),B(e.data.total),L(e.data.page))}else X.ZP.error(e.err_msg||"failed")},children:["Delete",(0,n.jsx)(G.Z,{})]})]})})]},i.id))})]}),(0,n.jsx)(d.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,n.jsx)(q.Z,{defaultPageSize:20,showSizeChanger:!1,current:H,total:I,onChange:async e=>{let i=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:e,page_size:20});i.success&&(C(i.data.data),B(i.data.total),L(i.data.page))},hideOnSinglePage:!0})})]}):(0,n.jsx)(n.Fragment,{}),(0,n.jsx)(N.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:o,onClose:()=>m(!1),children:(0,n.jsxs)(s.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,n.jsx)(F.Z,{sx:{width:"100%"},children:(0,n.jsx)(d.Z,{spacing:2,direction:"row",children:es.map((e,t)=>(0,n.jsxs)(eo,{sx:{fontWeight:g===t?"bold":"",color:g===t?"#2AA3FF":""},children:[t(0,n.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:()=>{j(e.type),v(1)},children:[(0,n.jsx)(s.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,n.jsx)(s.Z,{children:e.subTitle})]},e.type))})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(F.Z,{sx:{margin:"30px auto"},children:["Name:",(0,n.jsx)(O.ZP,{placeholder:"Please input the name",onChange:e=>P(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===f?(0,n.jsxs)(n.Fragment,{children:["Web Page URL:",(0,n.jsx)(O.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>y(e.target.value)})]}):"file"===f?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(ea,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){D(null),P("");return}D(e.file.originFileObj),P(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)(V.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)(O.ZP,{placeholder:"Please input the text source",onChange:e=>k(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,n.jsx)(A.Z,{onChange:e=>z(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,n.jsx)(x.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,n.jsx)(E.Z,{checked:M,onChange:e=>Y(e.target.checked)}),children:"Synch:"})]}),(0,n.jsxs)(d.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,n.jsx)(p.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>v(0),children:"< Back"}),(0,n.jsx)(p.Z,{variant:"outlined",onClick:async()=>{if(""===w){X.ZP.error("Please input the name");return}if("webPage"===f){if(""===b){X.ZP.error("Please input the Web Page URL");return}let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:w,content:b,doc_type:"URL"});if(e.success&&M&&(0,Q.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){X.ZP.success("success"),m(!1);let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:H,page_size:20});e.success&&(C(e.data.data),B(e.data.total),L(e.data.page))}else X.ZP.error(e.err_msg||"failed")}else if("file"===f){if(!R){X.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",w),e.append("doc_file",R),e.append("doc_type","DOCUMENT");let i=await (0,Q.Ej)("/knowledge/".concat(t,"/document/upload"),e);if(i.success&&M&&(0,Q.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[i.data]}),i.success){X.ZP.success("success"),m(!1);let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:H,page_size:20});e.success&&(C(e.data.data),B(e.data.total),L(e.data.page))}else X.ZP.error(i.err_msg||"failed")}else{if(""===_){X.ZP.error("Please input the text");return}let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:w,source:S,content:_,doc_type:"TEXT"});if(e.success&&M&&(0,Q.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){X.ZP.success("success"),m(!1);let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:H,page_size:20});e.success&&(C(e.data.data),B(e.data.total),L(e.data.page))}else X.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}},78915:function(e,t,i){"use strict";i.d(t,{Tk:function(){return c},Kw:function(){return h},PR:function(){return x},Ej:function(){return p}});var n=i(21628),r=i(24214),a=i(52040);let o=r.Z.create({baseURL:a.env.API_BASE_URL});o.defaults.timeout=1e4,o.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=i(84835);let l={"content-type":"application/json"},d=e=>{if(!(0,s.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let i=t[e];"string"==typeof i&&(t[e]=i.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let i=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");i&&(e+="?".concat(i))}return o.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},h=(e,t)=>{let i=d(t);return o.post("/api"+e,{body:i,headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},x=(e,t)=>(d(t),o.post(e,t,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),p=(e,t)=>o.post(e,t).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,550,877,230,759,192,81,86,409,790,946,767,957,872,253,769,744],function(){return e(e.s=42414)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-da4704cece0cf28a.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-da4704cece0cf28a.js deleted file mode 100644 index 05c5a7bb5..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-da4704cece0cf28a.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 r=i(a(76906)),n=a(9268),o=(0,r.default)((0,n.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=o},73220:function(e,t,a){"use strict";var i=a(78997);t.Z=void 0;var r=i(a(76906)),n=a(9268),o=(0,r.default)((0,n.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"}),"Chat");t.Z=o},42414: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 er}});var i=a(9268),r=a(56008),n=a(86006),o=a(50645),s=a(5737),l=a(78635),c=a(80937),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),j=a(49657),Z=a(88930),y=a(47093),P=a(18587);function w(e){return(0,P.d6)("MuiChip",e)}let S=(0,P.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"]),_=n.createContext({disabled:void 0,variant:void 0,color:void 0});var z=a(326);let k=["children","className","color","onClick","disabled","size","variant","startDecorator","endDecorator","component","slots","slotProps"],R=e=>{let{disabled:t,size:a,color:i,clickable:r,variant:n,focusVisible:o}=e,s={root:["root",t&&"disabled",i&&`color${(0,b.Z)(i)}`,a&&`size${(0,b.Z)(a)}`,n&&`variant${(0,b.Z)(n)}`,r&&"clickable"],action:["action",t&&"disabled",o&&"focusVisible"],label:["label",a&&`label${(0,b.Z)(a)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,f.Z)(s,w,{})},D=(0,o.Z)("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var a,i,r,n;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)",maxWidth:"max-content",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",[`&.${S.disabled}`]:{color:null==(a=e.variants[`${t.variant}Disabled`])||null==(a=a[t.color])?void 0:a.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:null==(n=e.variants[t.variant])||null==(n=n[t.color])?void 0:n.color}]:[null==(i=e.variants[t.variant])?void 0:i[t.color],{[`&.${S.disabled}`]:null==(r=e.variants[`${t.variant}Disabled`])?void 0:r[t.color]}]]}),I=(0,o.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"})),H=(0,o.Z)("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e,ownerState:t})=>{var a,i,r,n;return[{position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,width:"100%",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==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color]},{[`&.${S.disabled}`]:null==(n=e.variants[`${t.variant}Disabled`])?void 0:n[t.color]}]}),N=(0,o.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"}),F=(0,o.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"}),T=n.forwardRef(function(e,t){let a=(0,Z.Z)({props:e,name:"JoyChip"}),{children:r,className:o,color:s="primary",onClick:l,disabled:c=!1,size:d="md",variant:h="solid",startDecorator:p,endDecorator:u,component:g,slots:f={},slotProps:b={}}=a,P=(0,m.Z)(a,k),{getColor:w}=(0,y.VT)(h),S=w(e.color,s),T=!!l||!!b.action,O=(0,x.Z)({},a,{disabled:c,size:d,color:S,variant:h,clickable:T,focusVisible:!1}),E="function"==typeof b.action?b.action(O):b.action,M=n.useRef(null),{focusVisible:W,getRootProps:L}=(0,C.Z)((0,x.Z)({},E,{disabled:c,rootRef:M}));O.focusVisible=W;let A=R(O),U=(0,x.Z)({},P,{component:g,slots:f,slotProps:b}),[$,B]=(0,z.Z)("root",{ref:t,className:(0,v.Z)(A.root,o),elementType:D,externalForwardedProps:U,ownerState:O}),[V,J]=(0,z.Z)("label",{className:A.label,elementType:I,externalForwardedProps:U,ownerState:O}),Y=(0,j.Z)(J.id),[G,K]=(0,z.Z)("action",{className:A.action,elementType:H,externalForwardedProps:U,ownerState:O,getSlotProps:L,additionalProps:{"aria-labelledby":Y,as:null==E?void 0:E.component,onClick:l}}),[X,q]=(0,z.Z)("startDecorator",{className:A.startDecorator,elementType:N,externalForwardedProps:U,ownerState:O}),[Q,ee]=(0,z.Z)("endDecorator",{className:A.endDecorator,elementType:F,externalForwardedProps:U,ownerState:O}),et=n.useMemo(()=>({disabled:c,variant:h,color:"context"===S?void 0:S}),[S,c,h]);return(0,i.jsx)(_.Provider,{value:et,children:(0,i.jsxs)($,(0,x.Z)({},B,{children:[T&&(0,i.jsx)(G,(0,x.Z)({},K)),(0,i.jsx)(V,(0,x.Z)({},J,{id:Y,children:r})),p&&(0,i.jsx)(X,(0,x.Z)({},q,{children:p})),u&&(0,i.jsx)(Q,(0,x.Z)({},ee,{children:u}))]}))})});var O=a(81528),E=a(90545),M=a(35086),W=a(866),L=a(28086),A=a(65326),U=a.n(A),$=a(72474),B=a(59534),V=a(78141),J=a(68949),Y=a(73220),G=a(50157),K=a(23910),X=a(21628),q=a(1031),Q=a(78915);let{Dragger:ee}=G.default,et=(0,o.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}}),ea=["Choose a Datasource type","Setup the Datasource"],ei=[{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 er=()=>{let e=(0,r.useRouter)(),t=(0,r.useSearchParams)().get("name"),{mode:a}=(0,l.tv)(),[o,m]=(0,n.useState)(!1),[x,v]=(0,n.useState)(0),[f,C]=(0,n.useState)(""),[b,j]=(0,n.useState)([]),[Z,y]=(0,n.useState)(""),[P,w]=(0,n.useState)(""),[S,_]=(0,n.useState)(""),[z,k]=(0,n.useState)(""),[R,D]=(0,n.useState)(null),[I,H]=(0,n.useState)(0),[N,F]=(0,n.useState)(0),[A,G]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{(async function(){let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:1,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.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.jsxs)(c.Z,{direction:"row",alignItems:"center",children:[(0,i.jsxs)(u.Z,{variant:"outlined",onClick:async()=>{var a,i;let r=await (0,Q.PR)("/api/v1/chat/dialogue/new",{chat_mode:"chat_knowledge"});(null==r?void 0:r.success)&&(null==r?void 0:null===(a=r.data)||void 0===a?void 0:a.conv_uid)&&e.push("/chat?id=".concat(null==r?void 0:null===(i=r.data)||void 0===i?void 0:i.conv_uid,"&scene=chat_knowledge&spaceNameOriginal=").concat(t))},sx:{marginRight:"20px",backgroundColor:"rgb(39, 155, 255) !important",color:"white",border:"none"},children:[(0,i.jsx)(Y.Z,{sx:{marginRight:"6px",fontSize:"18px"}}),"Chat"]}),(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:"sm",sx:{"& tbody tr: hover":{backgroundColor:"light"===a?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"},"& tr > *:last-child":{textAlign:"right"}},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",{style:{width:"30%"},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)(T,{size:"sm",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:U()(a.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,i.jsx)("td",{children:(0,i.jsx)(T,{size:"sm",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)(K.Z,{content:a.result,trigger:"hover",children:(0,i.jsx)(T,{size:"sm",variant:"solid",color:"success",sx:{opacity:.5},children:"SUCCESS"})}):(0,i.jsx)(K.Z,{content:a.result,trigger:"hover",children:(0,i.jsx)(T,{size:"sm",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:"2px"},onClick:async()=>{let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[a.id]});e.success?X.ZP.success("success"):X.ZP.error(e.err_msg||"failed")},children:["Synch",(0,i.jsx)(V.Z,{})]}),(0,i.jsx)(u.Z,{variant:"outlined",size:"sm",sx:{marginRight:"2px"},onClick:()=>{e.push("/datastores/documents/chunklist?spacename=".concat(t,"&documentid=").concat(a.id))},children:"Details"}),(0,i.jsxs)(u.Z,{variant:"outlined",size:"sm",color:"danger",onClick:async()=>{let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/delete"),{doc_name:a.doc_name});if(e.success){X.ZP.success("success");let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:N,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))}else X.ZP.error(e.err_msg||"failed")},children:["Delete",(0,i.jsx)(J.Z,{})]})]})})]},a.id))})]}),(0,i.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,i.jsx)(q.Z,{defaultPageSize:20,showSizeChanger:!1,current:N,total:I,onChange:async e=>{let a=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:e,page_size:20});a.success&&(j(a.data.data),H(a.data.total),F(a.data.page))},hideOnSinglePage:!0})})]}):(0,i.jsx)(i.Fragment,{}),(0,i.jsx)(O.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:o,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:ea.map((e,t)=>(0,i.jsxs)(et,{sx:{fontWeight:x===t?"bold":"",color:x===t?"#2AA3FF":""},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)(M.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)(M.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>y(e.target.value)})]}):"file"===f?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(ee,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){D(null),w("");return}D(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)($.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)(M.ZP,{placeholder:"Please input the text source",onChange:e=>_(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,i.jsx)(W.Z,{onChange:e=>k(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,i.jsx)(p.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,i.jsx)(L.Z,{checked:A,onChange:e=>G(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(""===P){X.ZP.error("Please input the name");return}if("webPage"===f){if(""===Z){X.ZP.error("Please input the Web Page URL");return}let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:P,content:Z,doc_type:"URL"});if(e.success&&A&&(0,Q.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){X.ZP.success("success"),m(!1);let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:N,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))}else X.ZP.error(e.err_msg||"failed")}else if("file"===f){if(!R){X.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",P),e.append("doc_file",R),e.append("doc_type","DOCUMENT");let a=await (0,Q.Ej)("/knowledge/".concat(t,"/document/upload"),e);if(a.success&&A&&(0,Q.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[a.data]}),a.success){X.ZP.success("success"),m(!1);let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:N,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))}else X.ZP.error(a.err_msg||"failed")}else{if(""===z){X.ZP.error("Please input the text");return}let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:P,source:S,content:z,doc_type:"TEXT"});if(e.success&&A&&(0,Q.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){X.ZP.success("success"),m(!1);let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:N,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))}else X.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}},78915:function(e,t,a){"use strict";a.d(t,{Tk:function(){return d},Kw:function(){return h},PR:function(){return p},Ej:function(){return u}});var i=a(21628),r=a(24214),n=a(52040);let o=r.Z.create({baseURL:n.env.API_BASE_URL});o.defaults.timeout=1e4,o.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=a(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,s.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let a=t[e];"string"==typeof a&&(t[e]=a.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let a=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");a&&(e+="?".concat(a))}return o.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{i.ZP.error(e),Promise.reject(e)})},h=(e,t)=>{let a=c(t);return o.post("/api"+e,{body:a,headers:l}).then(e=>e).catch(e=>{i.ZP.error(e),Promise.reject(e)})},p=(e,t)=>(c(t),o.post(e,t,{headers:l}).then(e=>e).catch(e=>{i.ZP.error(e),Promise.reject(e)})),u=(e,t)=>o.post(e,t).then(e=>e).catch(e=>{i.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,550,838,60,759,192,86,409,790,946,767,957,872,253,769,744],function(){return e(e.s=42414)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-9d798355f6d9e339.js b/pilot/server/static/_next/static/chunks/app/datastores/page-1a9284a20aa72bde.js similarity index 99% rename from pilot/server/static/_next/static/chunks/app/datastores/page-9d798355f6d9e339.js rename to pilot/server/static/_next/static/chunks/app/datastores/page-1a9284a20aa72bde.js index 5207436f2..97c4ba70e 100644 --- a/pilot/server/static/_next/static/chunks/app/datastores/page-9d798355f6d9e339.js +++ b/pilot/server/static/_next/static/chunks/app/datastores/page-1a9284a20aa72bde.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{85182:function(e,t,r){Promise.resolve().then(r.bind(r,44323))},44323:function(e,t,r){"use strict";r.r(t);var n=r(9268),s=r(56008),o=r(86006),i=r(72474),a=r(59534),l=r(29382),c=r(68949),x=r(74852),d=r(50157),p=r(21628),u=r(50645),h=r(5737),g=r(90545),m=r(80937),j=r(81528),f=r(35086),Z=r(53113),b=r(866),P=r(22046),w=r(28086),y=r(30530),k=r(50318),S=r(78915);let{Dragger:C}=d.default,F=(0,u.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}}),v=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],R=[{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)(),[t,r]=(0,o.useState)(0),[d,u]=(0,o.useState)(""),[_,A]=(0,o.useState)([]),[N,T]=(0,o.useState)(!1),[B,E]=(0,o.useState)(""),[z,D]=(0,o.useState)(""),[O,W]=(0,o.useState)(""),[U,L]=(0,o.useState)(""),[G,I]=(0,o.useState)(""),[K,M]=(0,o.useState)(""),[J,V]=(0,o.useState)(""),[H,X]=(0,o.useState)(null),[Y,q]=(0,o.useState)(!0),[Q,$]=(0,o.useState)(!1),[ee,et]=(0,o.useState)({});return(0,o.useEffect)(()=>{(async function(){let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)})()},[]),(0,n.jsxs)(g.Z,{sx:{width:"100%",height:"100%"},className:"bg-[#F1F2F5] dark:bg-[#212121]",children:[(0,n.jsx)(g.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)(g.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:()=>T(!0),className:"bg-[#E9EBEE] dark:bg-[#484848]",children:[(0,n.jsx)(g.Z,{sx:{width:"32px",height:"32px",lineHeight:"28px",border:"1px solid #2AA3FF",textAlign:"center",borderRadius:"5px",marginRight:"5px",fontWeight:"300",color:"#2AA3FF"},children:"+"}),(0,n.jsx)(g.Z,{sx:{fontSize:"16px"},children:"space"})]}),_.map((t,r)=>(0,n.jsxs)(g.Z,{sx:{position:"relative",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,n.jsxs)(g.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,n.jsx)(l.Z,{sx:{marginRight:"5px",color:"#2AA3FF"}}),t.name]}),(0,n.jsxs)(g.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.vector_type}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.owner}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.docs||0}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]}),(0,n.jsx)(g.Z,{sx:{position:"absolute",right:"10px",top:"10px",color:"rgb(205, 32, 41)"},onClick:e=>{e.stopPropagation(),et(t),$(!0)},children:(0,n.jsx)(c.Z,{sx:{fontSize:"30px"}})})]},r)),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{})]})}),(0,n.jsx)(j.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:N,onClose:()=>T(!1),children:(0,n.jsxs)(h.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,n.jsx)(g.Z,{sx:{width:"100%"},children:(0,n.jsx)(m.Z,{spacing:2,direction:"row",children:v.map((e,r)=>(0,n.jsxs)(F,{sx:{fontWeight:t===r?"bold":"",color:t===r?"#2AA3FF":""},children:[rE(e.target.value),sx:{marginBottom:"20px"}}),"Owner:",(0,n.jsx)(f.ZP,{placeholder:"Please input the owner",onChange:e=>D(e.target.value),sx:{marginBottom:"20px"}}),"Description:",(0,n.jsx)(f.ZP,{placeholder:"Please input the description",onChange:e=>W(e.target.value),sx:{marginBottom:"20px"}})]}),(0,n.jsx)(Z.Z,{variant:"outlined",onClick:async()=>{if(""===B){p.ZP.error("please input the name");return}if(/[^0-9a-zA-Z_-]/.test(B)){p.ZP.error('the name can only contain numbers, letters, "-" and "_"');return}if(""===z){p.ZP.error("please input the owner");return}if(""===O){p.ZP.error("please input the description");return}let e=await (0,S.PR)("/knowledge/space/add",{name:B,vector_type:"Chroma",owner:z,desc:O});if(e.success){p.ZP.success("success"),r(1);let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)}else p.ZP.error(e.err_msg||"failed")},children:"Next"})]}):1===t?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(g.Z,{sx:{margin:"30px auto"},children:R.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:()=>{u(e.type),r(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)(g.Z,{sx:{margin:"30px auto"},children:["Name:",(0,n.jsx)(f.ZP,{placeholder:"Please input the name",onChange:e=>I(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===d?(0,n.jsxs)(n.Fragment,{children:["Web Page URL:",(0,n.jsx)(f.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>L(e.target.value)})]}):"file"===d?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(C,{name:"file",multiple:!1,onChange(e){var t;if(0===e.fileList.length){X(null),I("");return}X(e.file.originFileObj),I(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)(i.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=>M(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,n.jsx)(b.Z,{onChange:e=>V(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,n.jsx)(P.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,n.jsx)(w.Z,{checked:Y,onChange:e=>q(e.target.checked)}),children:"Synch:"})]}),(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,n.jsx)(Z.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>r(1),children:"< Back"}),(0,n.jsx)(Z.Z,{variant:"outlined",onClick:async()=>{if(""===G){p.ZP.error("Please input the name");return}if("webPage"===d){if(""===U){p.ZP.error("Please input the Web Page URL");return}let e=await (0,S.PR)("/knowledge/".concat(B,"/document/add"),{doc_name:G,content:U,doc_type:"URL"});e.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[e.data]})):p.ZP.error(e.err_msg||"failed")}else if("file"===d){if(!H){p.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",G),e.append("doc_file",H),e.append("doc_type","DOCUMENT");let t=await (0,S.Ej)("/knowledge/".concat(B,"/document/upload"),e);t.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[t.data]})):p.ZP.error(t.err_msg||"failed")}else{if(""===J){p.ZP.error("Please input the text");return}let e=await (0,S.PR)("/knowledge/".concat(B,"/document/add"),{doc_name:G,source:K,content:J,doc_type:"TEXT"});e.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[e.data]})):p.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})}),(0,n.jsx)(j.Z,{open:Q,onClose:()=>$(!1),children:(0,n.jsxs)(y.Z,{variant:"outlined",role:"alertdialog","aria-labelledby":"alert-dialog-modal-title","aria-describedby":"alert-dialog-modal-description",children:[(0,n.jsx)(P.ZP,{id:"alert-dialog-modal-title",component:"h2",startDecorator:(0,n.jsx)(x.Z,{style:{color:"rgb(205, 32, 41)"}}),sx:{color:"black"},children:"Confirmation"}),(0,n.jsx)(k.Z,{}),(0,n.jsxs)(P.ZP,{id:"alert-dialog-modal-description",textColor:"text.tertiary",sx:{fontWeight:"500",color:"black"},children:["Sure to delete ",null==ee?void 0:ee.name,"?"]}),(0,n.jsxs)(g.Z,{sx:{display:"flex",gap:1,justifyContent:"flex-end",pt:2},children:[(0,n.jsx)(Z.Z,{variant:"outlined",color:"neutral",onClick:()=>$(!1),children:"Cancel"}),(0,n.jsx)(Z.Z,{variant:"outlined",color:"danger",onClick:async()=>{$(!1);let e=await (0,S.PR)("/knowledge/space/delete",{name:null==ee?void 0:ee.name});if(e.success){p.ZP.success("success");let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)}else p.ZP.error(e.err_msg||"failed")},children:"Yes"})]})]})})]})}},78915:function(e,t,r){"use strict";r.d(t,{Tk:function(){return x},Kw:function(){return d},PR:function(){return p},Ej:function(){return u}});var n=r(21628),s=r(24214),o=r(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=r(84835);let l={"content-type":"application/json"},c=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)},x=(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=>{n.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=>{n.ZP.error(e),Promise.reject(e)})},p=(e,t)=>(c(t),i.post(e,t,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),u=(e,t)=>i.post(e,t).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,838,60,759,192,86,790,946,872,2,253,769,744],function(){return e(e.s=85182)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{85182:function(e,t,r){Promise.resolve().then(r.bind(r,44323))},44323:function(e,t,r){"use strict";r.r(t);var n=r(9268),s=r(56008),o=r(86006),i=r(72474),a=r(59534),l=r(29382),c=r(68949),x=r(74852),d=r(50157),p=r(21628),u=r(50645),h=r(5737),g=r(90545),m=r(80937),j=r(81528),f=r(35086),Z=r(53113),b=r(866),P=r(22046),w=r(28086),y=r(30530),k=r(50318),S=r(78915);let{Dragger:C}=d.default,F=(0,u.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}}),v=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],R=[{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)(),[t,r]=(0,o.useState)(0),[d,u]=(0,o.useState)(""),[_,A]=(0,o.useState)([]),[N,T]=(0,o.useState)(!1),[B,E]=(0,o.useState)(""),[z,D]=(0,o.useState)(""),[O,W]=(0,o.useState)(""),[U,L]=(0,o.useState)(""),[G,I]=(0,o.useState)(""),[K,M]=(0,o.useState)(""),[J,V]=(0,o.useState)(""),[H,X]=(0,o.useState)(null),[Y,q]=(0,o.useState)(!0),[Q,$]=(0,o.useState)(!1),[ee,et]=(0,o.useState)({});return(0,o.useEffect)(()=>{(async function(){let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)})()},[]),(0,n.jsxs)(g.Z,{sx:{width:"100%",height:"100%"},className:"bg-[#F1F2F5] dark:bg-[#212121]",children:[(0,n.jsx)(g.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)(g.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:()=>T(!0),className:"bg-[#E9EBEE] dark:bg-[#484848]",children:[(0,n.jsx)(g.Z,{sx:{width:"32px",height:"32px",lineHeight:"28px",border:"1px solid #2AA3FF",textAlign:"center",borderRadius:"5px",marginRight:"5px",fontWeight:"300",color:"#2AA3FF"},children:"+"}),(0,n.jsx)(g.Z,{sx:{fontSize:"16px"},children:"space"})]}),_.map((t,r)=>(0,n.jsxs)(g.Z,{sx:{position:"relative",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,n.jsxs)(g.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,n.jsx)(l.Z,{sx:{marginRight:"5px",color:"#2AA3FF"}}),t.name]}),(0,n.jsxs)(g.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.vector_type}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.owner}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.docs||0}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]}),(0,n.jsx)(g.Z,{sx:{position:"absolute",right:"10px",top:"10px",color:"rgb(205, 32, 41)"},onClick:e=>{e.stopPropagation(),et(t),$(!0)},children:(0,n.jsx)(c.Z,{sx:{fontSize:"30px"}})})]},r)),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{})]})}),(0,n.jsx)(j.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:N,onClose:()=>T(!1),children:(0,n.jsxs)(h.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,n.jsx)(g.Z,{sx:{width:"100%"},children:(0,n.jsx)(m.Z,{spacing:2,direction:"row",children:v.map((e,r)=>(0,n.jsxs)(F,{sx:{fontWeight:t===r?"bold":"",color:t===r?"#2AA3FF":""},children:[rE(e.target.value),sx:{marginBottom:"20px"}}),"Owner:",(0,n.jsx)(f.ZP,{placeholder:"Please input the owner",onChange:e=>D(e.target.value),sx:{marginBottom:"20px"}}),"Description:",(0,n.jsx)(f.ZP,{placeholder:"Please input the description",onChange:e=>W(e.target.value),sx:{marginBottom:"20px"}})]}),(0,n.jsx)(Z.Z,{variant:"outlined",onClick:async()=>{if(""===B){p.ZP.error("please input the name");return}if(/[^0-9a-zA-Z_-]/.test(B)){p.ZP.error('the name can only contain numbers, letters, "-" and "_"');return}if(""===z){p.ZP.error("please input the owner");return}if(""===O){p.ZP.error("please input the description");return}let e=await (0,S.PR)("/knowledge/space/add",{name:B,vector_type:"Chroma",owner:z,desc:O});if(e.success){p.ZP.success("success"),r(1);let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)}else p.ZP.error(e.err_msg||"failed")},children:"Next"})]}):1===t?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(g.Z,{sx:{margin:"30px auto"},children:R.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:()=>{u(e.type),r(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)(g.Z,{sx:{margin:"30px auto"},children:["Name:",(0,n.jsx)(f.ZP,{placeholder:"Please input the name",onChange:e=>I(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===d?(0,n.jsxs)(n.Fragment,{children:["Web Page URL:",(0,n.jsx)(f.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>L(e.target.value)})]}):"file"===d?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(C,{name:"file",multiple:!1,onChange(e){var t;if(0===e.fileList.length){X(null),I("");return}X(e.file.originFileObj),I(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)(i.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=>M(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,n.jsx)(b.Z,{onChange:e=>V(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,n.jsx)(P.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,n.jsx)(w.Z,{checked:Y,onChange:e=>q(e.target.checked)}),children:"Synch:"})]}),(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,n.jsx)(Z.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>r(1),children:"< Back"}),(0,n.jsx)(Z.Z,{variant:"outlined",onClick:async()=>{if(""===G){p.ZP.error("Please input the name");return}if("webPage"===d){if(""===U){p.ZP.error("Please input the Web Page URL");return}let e=await (0,S.PR)("/knowledge/".concat(B,"/document/add"),{doc_name:G,content:U,doc_type:"URL"});e.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[e.data]})):p.ZP.error(e.err_msg||"failed")}else if("file"===d){if(!H){p.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",G),e.append("doc_file",H),e.append("doc_type","DOCUMENT");let t=await (0,S.Ej)("/knowledge/".concat(B,"/document/upload"),e);t.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[t.data]})):p.ZP.error(t.err_msg||"failed")}else{if(""===J){p.ZP.error("Please input the text");return}let e=await (0,S.PR)("/knowledge/".concat(B,"/document/add"),{doc_name:G,source:K,content:J,doc_type:"TEXT"});e.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[e.data]})):p.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})}),(0,n.jsx)(j.Z,{open:Q,onClose:()=>$(!1),children:(0,n.jsxs)(y.Z,{variant:"outlined",role:"alertdialog","aria-labelledby":"alert-dialog-modal-title","aria-describedby":"alert-dialog-modal-description",children:[(0,n.jsx)(P.ZP,{id:"alert-dialog-modal-title",component:"h2",startDecorator:(0,n.jsx)(x.Z,{style:{color:"rgb(205, 32, 41)"}}),sx:{color:"black"},children:"Confirmation"}),(0,n.jsx)(k.Z,{}),(0,n.jsxs)(P.ZP,{id:"alert-dialog-modal-description",textColor:"text.tertiary",sx:{fontWeight:"500",color:"black"},children:["Sure to delete ",null==ee?void 0:ee.name,"?"]}),(0,n.jsxs)(g.Z,{sx:{display:"flex",gap:1,justifyContent:"flex-end",pt:2},children:[(0,n.jsx)(Z.Z,{variant:"outlined",color:"neutral",onClick:()=>$(!1),children:"Cancel"}),(0,n.jsx)(Z.Z,{variant:"outlined",color:"danger",onClick:async()=>{$(!1);let e=await (0,S.PR)("/knowledge/space/delete",{name:null==ee?void 0:ee.name});if(e.success){p.ZP.success("success");let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)}else p.ZP.error(e.err_msg||"failed")},children:"Yes"})]})]})})]})}},78915:function(e,t,r){"use strict";r.d(t,{Tk:function(){return x},Kw:function(){return d},PR:function(){return p},Ej:function(){return u}});var n=r(21628),s=r(24214),o=r(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=r(84835);let l={"content-type":"application/json"},c=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)},x=(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=>{n.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=>{n.ZP.error(e),Promise.reject(e)})},p=(e,t)=>(c(t),i.post(e,t,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),u=(e,t)=>i.post(e,t).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,877,230,759,192,86,790,946,872,2,253,769,744],function(){return e(e.s=85182)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/layout-4991b4ac844c585c.js b/pilot/server/static/_next/static/chunks/app/layout-b589be73288fef1e.js similarity index 98% rename from pilot/server/static/_next/static/chunks/app/layout-4991b4ac844c585c.js rename to pilot/server/static/_next/static/chunks/app/layout-b589be73288fef1e.js index 20b087816..7f1125c7c 100644 --- a/pilot/server/static/_next/static/chunks/app/layout-4991b4ac844c585c.js +++ b/pilot/server/static/_next/static/chunks/app/layout-b589be73288fef1e.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{72431:function(){},86185: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),s=r(78915),l=r(86006);let[a,o]=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:a}=(0,i.Z)(async()=>await (0,s.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(o,{value:{dialogueList:l,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 M}});var s=r(9268);r(97402),r(23517);var l=r(86006),a=r(56008),o=r(35846),d=r.n(o),c=r(20837),u=r(78635),f=r(90545),h=r(53113),x=r(18818),m=r(4882),p=r(70092),v=r(64579),g=r(22046),j=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=r(76394),D=r.n(E),S=()=>{var e;let t=(0,a.usePathname)(),r=(0,a.useSearchParams)(),n=r.get("id"),i=(0,a.useRouter)(),{dialogueList:o,queryDialogueList:E,refreshDialogList:S}=(0,P.Cg)(),{mode:z,setMode:L}=(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)(D(),{src:"/LOGO_1.png",alt:"DB-GPT",width:633,height:157,className:"w-full max-w-full",unoptimized:!0})})}),(0,s.jsx)(f.Z,{sx:{px:2},children:(0,s.jsx)(d(),{href:"/",children:(0,s.jsx)(h.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)(x.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,s.jsx)(m.Z,{nested:!0,children:(0,s.jsx)(x.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 l=("/chat"===t||"/chat/"===t)&&n===e.conv_uid;return(0,s.jsx)(m.Z,{children:(0,s.jsx)(p.Z,{selected:l,variant:l?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,s.jsx)(v.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)(g.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)(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,_.Kw)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await S(),"/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)(x.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,s.jsx)(m.Z,{nested:!0,children:(0,s.jsx)(x.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)(m.Z,{children:(0,s.jsxs)(p.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)(v.Z,{children:e.label})]})})},e.route))})}),(0,s.jsx)(m.Z,{children:(0,s.jsxs)(p.Z,{sx:{height:"2.5rem"},onClick:()=>{"light"===z?L("dark"):L("light")},children:[(0,s.jsx)(b.Z,{children:"dark"===z?(0,s.jsx)(Z.Z,{fontSize:"small"}):(0,s.jsx)(w.Z,{fontSize:"small"})}),(0,s.jsx)(v.Z,{children:"Theme"})]})})]})})]})]})})]})},z=r(29720),L=r(41287),F=r(38230);let H=(0,L.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...F.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:{...F.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"}},zIndex:{modal:1001}});var O=r(53794),I=r.n(O),T=r(54486),R=r.n(T);let A=0;function J(){"loading"!==i&&(i="loading",n=setTimeout(function(){R().start()},250))}function K(){A>0||(i="stop",clearTimeout(n),R().done())}if(I().events.on("routeChangeStart",J),I().events.on("routeChangeComplete",K),I().events.on("routeChangeError",K),"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,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===(s=i.classList)||void 0===s||s.remove("dark"):null==n||null===(l=n.current)||void 0===l||null===(a=l.classList)||void 0===a||a.remove("light")}},[n,r]),(0,s.jsxs)("div",{ref:n,className:"h-full",children:[(0,s.jsx)(W,{}),(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)(S,{}),(0,s.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]})})})]})}var M=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)(z.Z,{theme:H,children:(0,s.jsx)(u.lL,{theme:H,defaultMode:"light",children:(0,s.jsx)(G,{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 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 l.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 l.post("/api"+e,{body:r,headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},f=(e,t)=>(d(t),l.post(e,t,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),h=(e,t)=>l.post(e,t).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},97402:function(){},23517:function(){}},function(e){e.O(0,[180,838,60,759,409,316,946,394,751,256,253,769,744],function(){return e(e.s=86185)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{72431:function(){},86185: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),s=r(78915),l=r(86006);let[a,o]=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:a}=(0,i.Z)(async()=>await (0,s.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(o,{value:{dialogueList:l,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 M}});var s=r(9268);r(97402),r(23517);var l=r(86006),a=r(56008),o=r(35846),d=r.n(o),c=r(20837),u=r(78635),f=r(90545),h=r(53113),x=r(18818),m=r(4882),p=r(70092),v=r(64579),g=r(22046),j=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=r(76394),D=r.n(E),S=()=>{var e;let t=(0,a.usePathname)(),r=(0,a.useSearchParams)(),n=r.get("id"),i=(0,a.useRouter)(),{dialogueList:o,queryDialogueList:E,refreshDialogList:S}=(0,P.Cg)(),{mode:z,setMode:L}=(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)(D(),{src:"/LOGO_1.png",alt:"DB-GPT",width:633,height:157,className:"w-full max-w-full",unoptimized:!0})})}),(0,s.jsx)(f.Z,{sx:{px:2},children:(0,s.jsx)(d(),{href:"/",children:(0,s.jsx)(h.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)(x.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,s.jsx)(m.Z,{nested:!0,children:(0,s.jsx)(x.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 l=("/chat"===t||"/chat/"===t)&&n===e.conv_uid;return(0,s.jsx)(m.Z,{children:(0,s.jsx)(p.Z,{selected:l,variant:l?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,s.jsx)(v.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)(g.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)(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,_.Kw)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await S(),"/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)(x.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,s.jsx)(m.Z,{nested:!0,children:(0,s.jsx)(x.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)(m.Z,{children:(0,s.jsxs)(p.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)(v.Z,{children:e.label})]})})},e.route))})}),(0,s.jsx)(m.Z,{children:(0,s.jsxs)(p.Z,{sx:{height:"2.5rem"},onClick:()=>{"light"===z?L("dark"):L("light")},children:[(0,s.jsx)(b.Z,{children:"dark"===z?(0,s.jsx)(Z.Z,{fontSize:"small"}):(0,s.jsx)(w.Z,{fontSize:"small"})}),(0,s.jsx)(v.Z,{children:"Theme"})]})})]})})]})]})})]})},z=r(29720),L=r(41287),F=r(38230);let H=(0,L.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...F.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:{...F.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"}},zIndex:{modal:1001}});var O=r(53794),I=r.n(O),T=r(54486),R=r.n(T);let A=0;function J(){"loading"!==i&&(i="loading",n=setTimeout(function(){R().start()},250))}function K(){A>0||(i="stop",clearTimeout(n),R().done())}if(I().events.on("routeChangeStart",J),I().events.on("routeChangeComplete",K),I().events.on("routeChangeError",K),"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,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===(s=i.classList)||void 0===s||s.remove("dark"):null==n||null===(l=n.current)||void 0===l||null===(a=l.classList)||void 0===a||a.remove("light")}},[n,r]),(0,s.jsxs)("div",{ref:n,className:"h-full",children:[(0,s.jsx)(W,{}),(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)(S,{}),(0,s.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]})})})]})}var M=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)(z.Z,{theme:H,children:(0,s.jsx)(u.lL,{theme:H,defaultMode:"light",children:(0,s.jsx)(G,{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 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 l.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 l.post("/api"+e,{body:r,headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},f=(e,t)=>(d(t),l.post(e,t,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),h=(e,t)=>l.post(e,t).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},97402:function(){},23517:function(){}},function(e){e.O(0,[180,877,230,759,81,409,946,394,751,796,253,769,744],function(){return e(e.s=86185)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/page-1a66758966b07f9b.js b/pilot/server/static/_next/static/chunks/app/page-d7bb6ba07fe28c2b.js similarity index 99% rename from pilot/server/static/_next/static/chunks/app/page-1a66758966b07f9b.js rename to pilot/server/static/_next/static/chunks/app/page-d7bb6ba07fe28c2b.js index 14834e0d4..a7275dfe5 100644 --- a/pilot/server/static/_next/static/chunks/app/page-1a66758966b07f9b.js +++ b/pilot/server/static/_next/static/chunks/app/page-d7bb6ba07fe28c2b.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{50318:function(i,e,t){"use strict";t.d(e,{Z:function(){return y}});var r=t(46750),n=t(40431),a=t(86006),o=t(89791),l=t(53832),s=t(47562),c=t(50645),d=t(88930),v=t(18587);function u(i){return(0,v.d6)("MuiDivider",i)}(0,v.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);var h=t(326),m=t(9268);let p=["className","children","component","inset","orientation","role","slots","slotProps"],g=i=>{let{orientation:e,inset:t}=i,r={root:["root",e,t&&`inset${(0,l.Z)(t)}`]};return(0,s.Z)(r,u,{})},f=(0,c.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(i,e)=>e.root})(({theme:i,ownerState:e})=>(0,n.Z)({"--Divider-thickness":"1px","--Divider-lineColor":i.vars.palette.divider},"none"===e.inset&&{"--_Divider-inset":"0px"},"context"===e.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===e.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===e.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},e.children?{"--Divider-gap":i.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===e.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:i.vars.fontFamily.body,fontSize:i.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===e.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===e.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===e.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===e.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===e.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===e.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"===e.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===e.orientation?"initial":"var(--Divider-thickness)"})),x=a.forwardRef(function(i,e){let t=(0,d.Z)({props:i,name:"JoyDivider"}),{className:a,children:l,component:s=null!=l?"div":"hr",inset:c,orientation:v="horizontal",role:u="hr"!==s?"separator":void 0,slots:x={},slotProps:y={}}=t,b=(0,r.Z)(t,p),j=(0,n.Z)({},t,{inset:c,role:u,orientation:v,component:s}),D=g(j),k=(0,n.Z)({},b,{component:s,slots:x,slotProps:y}),[w,Z]=(0,h.Z)("root",{ref:e,className:(0,o.Z)(D.root,a),elementType:f,externalForwardedProps:k,ownerState:j,additionalProps:(0,n.Z)({as:s,role:u},"separator"===u&&"vertical"===v&&{"aria-orientation":"vertical"})});return(0,m.jsx)(w,(0,n.Z)({},Z,{children:l}))});x.muiName="Divider";var y=x},69255:function(i,e,t){Promise.resolve().then(t.bind(t,93768))},93768:function(i,e,t){"use strict";t.r(e);var r=t(9268),n=t(89081),a=t(86006),o=t(50318),l=t(90545),s=t(77614),c=t(53113),d=t(35086),v=t(53047),u=t(54842),h=t(67830),m=t(19700),p=t(92391),g=t(78915),f=t(56008),x=t(76394),y=t.n(x);e.default=function(){var i;let e=p.z.object({query:p.z.string().min(1)}),t=(0,f.useRouter)(),[x,b]=(0,a.useState)(!1),j=(0,m.cI)({resolver:(0,h.F)(e),defaultValues:{}}),{data:D}=(0,n.Z)(async()=>await (0,g.Kw)("/v1/chat/dialogue/scenes")),k=async i=>{let{query:e}=i;try{var r,n;b(!0),j.reset();let i=await (0,g.Kw)("/v1/chat/dialogue/new",{chat_mode:"chat_normal"});(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===(n=i.data)||void 0===n?void 0:n.conv_uid,"&initMessage=").concat(e))}catch(i){}finally{b(!1)}};return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"mx-auto h-full justify-center flex max-w-3xl flex-col gap-8 px-5 pt-6",children:[(0,r.jsx)("div",{className:"my-0 mx-auto",children:(0,r.jsx)(y(),{src:"/LOGO.png",alt:"Revolutionizing Database Interactions with Private LLM Technology",width:856,height:160,className:"w-full",unoptimized:!0})}),(0,r.jsx)("div",{className:"grid gap-8 lg:grid-cols-3",children:(0,r.jsxs)("div",{className:"lg:col-span-3",children:[(0,r.jsx)(o.Z,{className:"text-[#878c93]",children:"Quick Start"}),(0,r.jsx)(l.Z,{className:"grid pt-7 rounded-xl gap-2 lg:grid-cols-3 lg:gap-6",sx:{["& .".concat(s.Z.root)]:{color:"var(--joy-palette-primary-solidColor)",backgroundColor:"var(--joy-palette-primary-solidBg)",height:"52px","&: hover":{backgroundColor:"var(--joy-palette-primary-solidHoverBg)"}},["& .".concat(s.Z.disabled)]:{cursor:"not-allowed",pointerEvents:"unset",color:"var(--joy-palette-primary-plainColor)",backgroundColor:"var(--joy-palette-primary-softDisabledBg)","&: hover":{backgroundColor:"var(--joy-palette-primary-softDisabledBg)"}}},children:null==D?void 0:null===(i=D.data)||void 0===i?void 0:i.map(i=>(0,r.jsx)(c.Z,{disabled:null==i?void 0:i.show_disable,size:"md",variant:"solid",className:"text-base rounded-none",onClick:async()=>{var e,r;let n=await (0,g.Kw)("/v1/chat/dialogue/new",{chat_mode:i.chat_scene});(null==n?void 0:n.success)&&(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.conv_uid)&&t.push("/chat?id=".concat(null==n?void 0:null===(r=n.data)||void 0===r?void 0:r.conv_uid,"&scene=").concat(i.chat_scene))},children:i.scene_name},i.chat_scene))})]})}),(0,r.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,r.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:i=>{j.handleSubmit(k)(i)},children:(0,r.jsx)(d.ZP,{sx:{width:"100%"},variant:"outlined",placeholder:"Ask anything",endDecorator:(0,r.jsx)(v.ZP,{type:"submit",disabled:x,children:(0,r.jsx)(u.Z,{})}),...j.register("query")})})})]})})}},78915:function(i,e,t){"use strict";t.d(e,{Tk:function(){return d},Kw:function(){return v},PR:function(){return u},Ej:function(){return h}});var r=t(21628),n=t(24214),a=t(52040);let o=n.Z.create({baseURL:a.env.API_BASE_URL});o.defaults.timeout=1e4,o.interceptors.response.use(i=>i.data,i=>Promise.reject(i));var l=t(84835);let s={"content-type":"application/json"},c=i=>{if(!(0,l.isPlainObject)(i))return JSON.stringify(i);let e={...i};for(let i in e){let t=e[i];"string"==typeof t&&(e[i]=t.trim())}return JSON.stringify(e)},d=(i,e)=>{if(e){let t=Object.keys(e).filter(i=>void 0!==e[i]&&""!==e[i]).map(i=>"".concat(i,"=").concat(e[i])).join("&");t&&(i+="?".concat(t))}return o.get("/api"+i,{headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})},v=(i,e)=>{let t=c(e);return o.post("/api"+i,{body:t,headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})},u=(i,e)=>(c(e),o.post(i,e,{headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})),h=(i,e)=>o.post(i,e).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})}},function(i){i.O(0,[180,838,60,86,316,259,394,253,769,744],function(){return i(i.s=69255)}),_N_E=i.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{50318:function(i,e,t){"use strict";t.d(e,{Z:function(){return y}});var r=t(46750),n=t(40431),a=t(86006),o=t(89791),l=t(53832),s=t(47562),c=t(50645),d=t(88930),v=t(18587);function u(i){return(0,v.d6)("MuiDivider",i)}(0,v.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);var h=t(326),m=t(9268);let p=["className","children","component","inset","orientation","role","slots","slotProps"],g=i=>{let{orientation:e,inset:t}=i,r={root:["root",e,t&&`inset${(0,l.Z)(t)}`]};return(0,s.Z)(r,u,{})},f=(0,c.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(i,e)=>e.root})(({theme:i,ownerState:e})=>(0,n.Z)({"--Divider-thickness":"1px","--Divider-lineColor":i.vars.palette.divider},"none"===e.inset&&{"--_Divider-inset":"0px"},"context"===e.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===e.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===e.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},e.children?{"--Divider-gap":i.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===e.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:i.vars.fontFamily.body,fontSize:i.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===e.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===e.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===e.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===e.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===e.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===e.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"===e.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===e.orientation?"initial":"var(--Divider-thickness)"})),x=a.forwardRef(function(i,e){let t=(0,d.Z)({props:i,name:"JoyDivider"}),{className:a,children:l,component:s=null!=l?"div":"hr",inset:c,orientation:v="horizontal",role:u="hr"!==s?"separator":void 0,slots:x={},slotProps:y={}}=t,b=(0,r.Z)(t,p),j=(0,n.Z)({},t,{inset:c,role:u,orientation:v,component:s}),D=g(j),k=(0,n.Z)({},b,{component:s,slots:x,slotProps:y}),[w,Z]=(0,h.Z)("root",{ref:e,className:(0,o.Z)(D.root,a),elementType:f,externalForwardedProps:k,ownerState:j,additionalProps:(0,n.Z)({as:s,role:u},"separator"===u&&"vertical"===v&&{"aria-orientation":"vertical"})});return(0,m.jsx)(w,(0,n.Z)({},Z,{children:l}))});x.muiName="Divider";var y=x},69255:function(i,e,t){Promise.resolve().then(t.bind(t,93768))},93768:function(i,e,t){"use strict";t.r(e);var r=t(9268),n=t(89081),a=t(86006),o=t(50318),l=t(90545),s=t(77614),c=t(53113),d=t(35086),v=t(53047),u=t(54842),h=t(67830),m=t(19700),p=t(92391),g=t(78915),f=t(56008),x=t(76394),y=t.n(x);e.default=function(){var i;let e=p.z.object({query:p.z.string().min(1)}),t=(0,f.useRouter)(),[x,b]=(0,a.useState)(!1),j=(0,m.cI)({resolver:(0,h.F)(e),defaultValues:{}}),{data:D}=(0,n.Z)(async()=>await (0,g.Kw)("/v1/chat/dialogue/scenes")),k=async i=>{let{query:e}=i;try{var r,n;b(!0),j.reset();let i=await (0,g.Kw)("/v1/chat/dialogue/new",{chat_mode:"chat_normal"});(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===(n=i.data)||void 0===n?void 0:n.conv_uid,"&initMessage=").concat(e))}catch(i){}finally{b(!1)}};return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"mx-auto h-full justify-center flex max-w-3xl flex-col gap-8 px-5 pt-6",children:[(0,r.jsx)("div",{className:"my-0 mx-auto",children:(0,r.jsx)(y(),{src:"/LOGO.png",alt:"Revolutionizing Database Interactions with Private LLM Technology",width:856,height:160,className:"w-full",unoptimized:!0})}),(0,r.jsx)("div",{className:"grid gap-8 lg:grid-cols-3",children:(0,r.jsxs)("div",{className:"lg:col-span-3",children:[(0,r.jsx)(o.Z,{className:"text-[#878c93]",children:"Quick Start"}),(0,r.jsx)(l.Z,{className:"grid pt-7 rounded-xl gap-2 lg:grid-cols-3 lg:gap-6",sx:{["& .".concat(s.Z.root)]:{color:"var(--joy-palette-primary-solidColor)",backgroundColor:"var(--joy-palette-primary-solidBg)",height:"52px","&: hover":{backgroundColor:"var(--joy-palette-primary-solidHoverBg)"}},["& .".concat(s.Z.disabled)]:{cursor:"not-allowed",pointerEvents:"unset",color:"var(--joy-palette-primary-plainColor)",backgroundColor:"var(--joy-palette-primary-softDisabledBg)","&: hover":{backgroundColor:"var(--joy-palette-primary-softDisabledBg)"}}},children:null==D?void 0:null===(i=D.data)||void 0===i?void 0:i.map(i=>(0,r.jsx)(c.Z,{disabled:null==i?void 0:i.show_disable,size:"md",variant:"solid",className:"text-base rounded-none",onClick:async()=>{var e,r;let n=await (0,g.Kw)("/v1/chat/dialogue/new",{chat_mode:i.chat_scene});(null==n?void 0:n.success)&&(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.conv_uid)&&t.push("/chat?id=".concat(null==n?void 0:null===(r=n.data)||void 0===r?void 0:r.conv_uid,"&scene=").concat(i.chat_scene))},children:i.scene_name},i.chat_scene))})]})}),(0,r.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,r.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:i=>{j.handleSubmit(k)(i)},children:(0,r.jsx)(d.ZP,{sx:{width:"100%"},variant:"outlined",placeholder:"Ask anything",endDecorator:(0,r.jsx)(v.ZP,{type:"submit",disabled:x,children:(0,r.jsx)(u.Z,{})}),...j.register("query")})})})]})})}},78915:function(i,e,t){"use strict";t.d(e,{Tk:function(){return d},Kw:function(){return v},PR:function(){return u},Ej:function(){return h}});var r=t(21628),n=t(24214),a=t(52040);let o=n.Z.create({baseURL:a.env.API_BASE_URL});o.defaults.timeout=1e4,o.interceptors.response.use(i=>i.data,i=>Promise.reject(i));var l=t(84835);let s={"content-type":"application/json"},c=i=>{if(!(0,l.isPlainObject)(i))return JSON.stringify(i);let e={...i};for(let i in e){let t=e[i];"string"==typeof t&&(e[i]=t.trim())}return JSON.stringify(e)},d=(i,e)=>{if(e){let t=Object.keys(e).filter(i=>void 0!==e[i]&&""!==e[i]).map(i=>"".concat(i,"=").concat(e[i])).join("&");t&&(i+="?".concat(t))}return o.get("/api"+i,{headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})},v=(i,e)=>{let t=c(e);return o.post("/api"+i,{body:t,headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})},u=(i,e)=>(c(e),o.post(i,e,{headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})),h=(i,e)=>o.post(i,e).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})}},function(i){i.O(0,[180,877,230,81,86,341,394,253,769,744],function(){return i(i.s=69255)}),_N_E=i.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/webpack-8be0750561cfcccd.js b/pilot/server/static/_next/static/chunks/webpack-73c0531c498ccd8d.js similarity index 98% rename from pilot/server/static/_next/static/chunks/webpack-8be0750561cfcccd.js rename to pilot/server/static/_next/static/chunks/webpack-73c0531c498ccd8d.js index 0eced4784..c16f30663 100644 --- a/pilot/server/static/_next/static/chunks/webpack-8be0750561cfcccd.js +++ b/pilot/server/static/_next/static/chunks/webpack-73c0531c498ccd8d.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,d.amdD=function(){throw Error("define cannot be used indirect")},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}.block{display:block}.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-full{max-height:100%}.max-h-screen{max-height:100vh}.min-h-0{min-height:0}.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-transparent{background-color:transparent}.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}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-6{padding-bottom:1.5rem}.pt-6,.py-6{padding-top:1.5rem}.pt-7{padding-top:1.75rem}.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:#279bff!important}.ant-pagination .ant-pagination-item a{color:#b0b0bf}.ant-pagination .ant-pagination-item.ant-pagination-item-active{background-color:#279bff!important}.ant-pagination .ant-pagination-item.ant-pagination-item-active a{color:#fff!important}table tr td{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.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/chat/index.html b/pilot/server/static/chat/index.html index 3977cb045..eb0f11d55 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 0c363fc31..d2518e914 100644 --- a/pilot/server/static/chat/index.txt +++ b/pilot/server/static/chat/index.txt @@ -1,9 +1,9 @@ -1:HL["/_next/static/css/f7886471966370ed.css",{"as":"style"}] -0:["8wN6ARX3c5zahVupdkg9Y",[[["",{"children":["chat",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f7886471966370ed.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","838:static/chunks/838-25c9b71d449c8910.js","60:static/chunks/60-8ef99caef9fdf742.js","759:static/chunks/759-22c7defc3aa943a7.js","409:static/chunks/409-4b199bf070fd70fc.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-4991b4ac844c585c.js"],"name":"","async":false} -5:I{"id":"13211","chunks":["272:static/chunks/webpack-8be0750561cfcccd.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-8be0750561cfcccd.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-8be0750561cfcccd.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"65641","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","757:static/chunks/f60284a2-6891068c9ea7ce77.js","282:static/chunks/7e4358a0-8f10c290d655cdf1.js","838:static/chunks/838-25c9b71d449c8910.js","60:static/chunks/60-8ef99caef9fdf742.js","759:static/chunks/759-22c7defc3aa943a7.js","192:static/chunks/192-e9f419fb9f5bc502.js","86:static/chunks/86-6193a530bd8e3ef4.js","316:static/chunks/316-370750739484dff7.js","790:static/chunks/790-97e6b769f5c791cb.js","767:static/chunks/767-b93280f4b5b5e975.js","259:static/chunks/259-2c3490a9eca2f411.js","751:static/chunks/751-30fee9a32c6e64a2.js","320:static/chunks/320-63dc542e9a7120d1.js","929:static/chunks/app/chat/page-614438239adc40fc.js"],"name":"","async":false} +1:HL["/_next/static/css/1dfcd77e60327762.css",{"as":"style"}] +0:["Cacznp7OMpA2Ut8fcv_rl",[[["",{"children":["chat",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-cd5be147a1026461.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-22c7defc3aa943a7.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-b589be73288fef1e.js"],"name":"","async":false} +5:I{"id":"13211","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.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-73c0531c498ccd8d.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-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +8:I{"id":"65641","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","757:static/chunks/f60284a2-6891068c9ea7ce77.js","282:static/chunks/7e4358a0-8f10c290d655cdf1.js","877:static/chunks/877-cd5be147a1026461.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-22c7defc3aa943a7.js","192:static/chunks/192-e9f419fb9f5bc502.js","81:static/chunks/81-96228d374838bf49.js","86:static/chunks/86-6193a530bd8e3ef4.js","790:static/chunks/790-97e6b769f5c791cb.js","767:static/chunks/767-b93280f4b5b5e975.js","341:static/chunks/341-45d79e5f1110ab05.js","751:static/chunks/751-30fee9a32c6e64a2.js","320:static/chunks/320-63dc542e9a7120d1.js","929:static/chunks/app/chat/page-641be9e13d61cb24.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 062738446..f315dd782 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 78eeab432..c02077dcd 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/f7886471966370ed.css",{"as":"style"}] -0:["8wN6ARX3c5zahVupdkg9Y",[[["",{"children":["datastores",{"children":["documents",{"children":["chunklist",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f7886471966370ed.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","838:static/chunks/838-25c9b71d449c8910.js","60:static/chunks/60-8ef99caef9fdf742.js","759:static/chunks/759-22c7defc3aa943a7.js","409:static/chunks/409-4b199bf070fd70fc.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-4991b4ac844c585c.js"],"name":"","async":false} -5:I{"id":"13211","chunks":["272:static/chunks/webpack-8be0750561cfcccd.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-8be0750561cfcccd.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-8be0750561cfcccd.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"26257","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","838:static/chunks/838-25c9b71d449c8910.js","759:static/chunks/759-22c7defc3aa943a7.js","192:static/chunks/192-e9f419fb9f5bc502.js","409:static/chunks/409-4b199bf070fd70fc.js","767:static/chunks/767-b93280f4b5b5e975.js","957:static/chunks/957-c96ff4de6e80d713.js","538:static/chunks/app/datastores/documents/chunklist/page-5817243840a3f0d3.js"],"name":"","async":false} +1:HL["/_next/static/css/1dfcd77e60327762.css",{"as":"style"}] +0:["Cacznp7OMpA2Ut8fcv_rl",[[["",{"children":["datastores",{"children":["documents",{"children":["chunklist",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-cd5be147a1026461.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-22c7defc3aa943a7.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-b589be73288fef1e.js"],"name":"","async":false} +5:I{"id":"13211","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.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-73c0531c498ccd8d.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-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +8:I{"id":"26257","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-cd5be147a1026461.js","759:static/chunks/759-22c7defc3aa943a7.js","192:static/chunks/192-e9f419fb9f5bc502.js","409:static/chunks/409-4b199bf070fd70fc.js","767:static/chunks/767-b93280f4b5b5e975.js","957:static/chunks/957-c96ff4de6e80d713.js","538:static/chunks/app/datastores/documents/chunklist/page-cd9a18b737d2f31b.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 5ee7648f3..79d17659d 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 016939396..9d1d23c0e 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/f7886471966370ed.css",{"as":"style"}] -0:["8wN6ARX3c5zahVupdkg9Y",[[["",{"children":["datastores",{"children":["documents",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f7886471966370ed.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","838:static/chunks/838-25c9b71d449c8910.js","60:static/chunks/60-8ef99caef9fdf742.js","759:static/chunks/759-22c7defc3aa943a7.js","409:static/chunks/409-4b199bf070fd70fc.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-4991b4ac844c585c.js"],"name":"","async":false} -5:I{"id":"13211","chunks":["272:static/chunks/webpack-8be0750561cfcccd.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-8be0750561cfcccd.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-8be0750561cfcccd.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"16692","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","550:static/chunks/925f3d25-1af7259455ef26bd.js","838:static/chunks/838-25c9b71d449c8910.js","60:static/chunks/60-8ef99caef9fdf742.js","759:static/chunks/759-22c7defc3aa943a7.js","192:static/chunks/192-e9f419fb9f5bc502.js","86:static/chunks/86-6193a530bd8e3ef4.js","409:static/chunks/409-4b199bf070fd70fc.js","790:static/chunks/790-97e6b769f5c791cb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","767:static/chunks/767-b93280f4b5b5e975.js","957:static/chunks/957-c96ff4de6e80d713.js","872:static/chunks/872-4a145d8028102d89.js","470:static/chunks/app/datastores/documents/page-da4704cece0cf28a.js"],"name":"","async":false} +1:HL["/_next/static/css/1dfcd77e60327762.css",{"as":"style"}] +0:["Cacznp7OMpA2Ut8fcv_rl",[[["",{"children":["datastores",{"children":["documents",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-cd5be147a1026461.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-22c7defc3aa943a7.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-b589be73288fef1e.js"],"name":"","async":false} +5:I{"id":"13211","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.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-73c0531c498ccd8d.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-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +8:I{"id":"36906","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","550:static/chunks/925f3d25-1af7259455ef26bd.js","877:static/chunks/877-cd5be147a1026461.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-22c7defc3aa943a7.js","192:static/chunks/192-e9f419fb9f5bc502.js","81:static/chunks/81-96228d374838bf49.js","86:static/chunks/86-6193a530bd8e3ef4.js","409:static/chunks/409-4b199bf070fd70fc.js","790:static/chunks/790-97e6b769f5c791cb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","767:static/chunks/767-b93280f4b5b5e975.js","957:static/chunks/957-c96ff4de6e80d713.js","872:static/chunks/872-4a145d8028102d89.js","470:static/chunks/app/datastores/documents/page-8c5325d5737cf6c7.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 43f56980f..bef2117cb 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 3f44f8c77..06f8cec1a 100644 --- a/pilot/server/static/datastores/index.txt +++ b/pilot/server/static/datastores/index.txt @@ -1,9 +1,9 @@ -1:HL["/_next/static/css/f7886471966370ed.css",{"as":"style"}] -0:["8wN6ARX3c5zahVupdkg9Y",[[["",{"children":["datastores",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f7886471966370ed.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","838:static/chunks/838-25c9b71d449c8910.js","60:static/chunks/60-8ef99caef9fdf742.js","759:static/chunks/759-22c7defc3aa943a7.js","409:static/chunks/409-4b199bf070fd70fc.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-4991b4ac844c585c.js"],"name":"","async":false} -5:I{"id":"13211","chunks":["272:static/chunks/webpack-8be0750561cfcccd.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-8be0750561cfcccd.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-8be0750561cfcccd.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","838:static/chunks/838-25c9b71d449c8910.js","60:static/chunks/60-8ef99caef9fdf742.js","759:static/chunks/759-22c7defc3aa943a7.js","192:static/chunks/192-e9f419fb9f5bc502.js","86:static/chunks/86-6193a530bd8e3ef4.js","790:static/chunks/790-97e6b769f5c791cb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","872:static/chunks/872-4a145d8028102d89.js","2:static/chunks/2-a60cf38d8ab305bb.js","43:static/chunks/app/datastores/page-9d798355f6d9e339.js"],"name":"","async":false} +1:HL["/_next/static/css/1dfcd77e60327762.css",{"as":"style"}] +0:["Cacznp7OMpA2Ut8fcv_rl",[[["",{"children":["datastores",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-cd5be147a1026461.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-22c7defc3aa943a7.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-b589be73288fef1e.js"],"name":"","async":false} +5:I{"id":"13211","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.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-73c0531c498ccd8d.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-73c0531c498ccd8d.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","877:static/chunks/877-cd5be147a1026461.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-22c7defc3aa943a7.js","192:static/chunks/192-e9f419fb9f5bc502.js","86:static/chunks/86-6193a530bd8e3ef4.js","790:static/chunks/790-97e6b769f5c791cb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","872:static/chunks/872-4a145d8028102d89.js","2:static/chunks/2-a60cf38d8ab305bb.js","43:static/chunks/app/datastores/page-1a9284a20aa72bde.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 5de2e62a8..6e8b1e6c4 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 9e1b9f581..6167e4c0e 100644 --- a/pilot/server/static/index.txt +++ b/pilot/server/static/index.txt @@ -1,9 +1,9 @@ -1:HL["/_next/static/css/f7886471966370ed.css",{"as":"style"}] -0:["8wN6ARX3c5zahVupdkg9Y",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f7886471966370ed.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","838:static/chunks/838-25c9b71d449c8910.js","60:static/chunks/60-8ef99caef9fdf742.js","759:static/chunks/759-22c7defc3aa943a7.js","409:static/chunks/409-4b199bf070fd70fc.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-4991b4ac844c585c.js"],"name":"","async":false} -5:I{"id":"13211","chunks":["272:static/chunks/webpack-8be0750561cfcccd.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-8be0750561cfcccd.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-8be0750561cfcccd.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"93768","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","838:static/chunks/838-25c9b71d449c8910.js","60:static/chunks/60-8ef99caef9fdf742.js","86:static/chunks/86-6193a530bd8e3ef4.js","316:static/chunks/316-370750739484dff7.js","259:static/chunks/259-2c3490a9eca2f411.js","394:static/chunks/394-0ffa189aa535d3eb.js","931:static/chunks/app/page-1a66758966b07f9b.js"],"name":"","async":false} +1:HL["/_next/static/css/1dfcd77e60327762.css",{"as":"style"}] +0:["Cacznp7OMpA2Ut8fcv_rl",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-cd5be147a1026461.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-22c7defc3aa943a7.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-b589be73288fef1e.js"],"name":"","async":false} +5:I{"id":"13211","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.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-73c0531c498ccd8d.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-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +8:I{"id":"93768","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-cd5be147a1026461.js","230:static/chunks/230-9b7eec94114cc7c3.js","81:static/chunks/81-96228d374838bf49.js","86:static/chunks/86-6193a530bd8e3ef4.js","341:static/chunks/341-45d79e5f1110ab05.js","394:static/chunks/394-0ffa189aa535d3eb.js","931:static/chunks/app/page-d7bb6ba07fe28c2b.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"}]]