@kb-labs/workflow-entry 2.118.1 → 2.119.0-canary.8c5512847

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[117],{2924(e,r,o){o.r(r);var n=o(9497),t=o(7899),i=o(4552),l=o(92),a=o(5505),s=o(5793),c=o(7346),d=o(1499),u=o(3292),m=o(6911),f=o(5963),g=o(3781),{useToken:p}=n.theme;function x({children:e,size:r="base",weight:o="normal",color:n="primary",as:l="span",className:a,style:s}){let{token:c}=p(),d={primary:c.colorText,secondary:c.colorTextSecondary,success:c.colorSuccess,warning:c.colorWarning,error:c.colorError,info:c.colorInfo},u={...{fontSize:t.typography.fontSize[r][0],lineHeight:t.typography.fontSize[r][1].lineHeight,fontWeight:t.typography.fontWeight[o],color:d[n]},...s};return(0,i.jsx)(l,{style:u,className:a,children:e})}function h({children:e,p:r,pt:o,pr:n,pb:l,pl:a,m:s,mt:c,mr:d,mb:u,ml:m,as:f="div",className:g,style:p}){let x={...void 0!==r&&{padding:t.spacing[r]},...void 0!==o&&{paddingTop:t.spacing[o]},...void 0!==n&&{paddingRight:t.spacing[n]},...void 0!==l&&{paddingBottom:t.spacing[l]},...void 0!==a&&{paddingLeft:t.spacing[a]},...void 0!==s&&{margin:t.spacing[s]},...void 0!==c&&{marginTop:t.spacing[c]},...void 0!==d&&{marginRight:t.spacing[d]},...void 0!==u&&{marginBottom:t.spacing[u]},...void 0!==m&&{marginLeft:t.spacing[m]},...p};return(0,i.jsx)(f,{style:x,className:g,children:e})}function y({children:e,direction:r="row",justify:o="start",align:n="stretch",gap:l,wrap:a="nowrap",as:s="div",className:c,style:d}){let u={display:"flex",flexDirection:r,justifyContent:{start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly"}[o],alignItems:{start:"flex-start",end:"flex-end",center:"center",baseline:"baseline",stretch:"stretch"}[n],flexWrap:a,...void 0!==l&&{gap:t.spacing[l]},...d};return(0,i.jsx)(s,{style:u,className:c,children:e})}function b(e){return(0,i.jsx)(n.Typography.Text,{...e})}function j(e){return(0,i.jsx)(n.Typography.Paragraph,{...e})}function I(e){return(0,i.jsx)(n.Typography.Link,{...e})}function S({direction:e="vertical",spacing:r=2,align:o,children:n,as:t,className:l,style:a}){return(0,i.jsx)(y,{direction:"vertical"===e?"column":"row",gap:r,align:o,as:t,className:l,style:a,children:n})}function v(e){return(0,i.jsx)(n.Space,{...e})}function k(e){return(0,i.jsx)(n.Space.Compact,{...e})}function U(e){return(0,i.jsx)(n.Row,{...e})}function T(e){return(0,i.jsx)(n.Col,{...e})}function w(e){return(0,i.jsx)(n.Divider,{...e})}var{useToken:C}=n.theme;function B({variant:e="default",children:r,...o}){let{token:t}=C(),l={success:t.colorSuccess,warning:t.colorWarning,error:t.colorError,info:t.colorInfo,default:t.colorTextSecondary};return r?(0,i.jsx)(n.Badge,{color:l[e],text:r,...o}):(0,i.jsx)(n.Badge,{status:{success:"success",warning:"warning",error:"error",info:"processing",default:"default"}[e],...o})}var M={},$=l.forwardRef(function({variant:e="default",className:r,...o},t){let l=[M.uiButton,r].filter(Boolean).join(" ");return(0,i.jsx)(n.Button,{ref:t,type:e,className:l,...o})}),z={},{useToken:F}=n.theme,E={default:{accent:"var(--border-primary)"},success:{accent:"var(--success)"},warning:{accent:"var(--warning)"},error:{accent:"var(--error)"},info:{accent:"var(--info)"}};function P({title:e,subtitle:r,extra:o,footer:t,children:l,size:a="default",bordered:s=!0,hoverable:c=!1,loading:d=!1,status:u="default",...m}){let{token:f}=F(),g=E[u],p=e||r?(0,i.jsxs)(h,{children:[e&&("string"==typeof e?(0,i.jsx)(x,{size:"lg",weight:"semibold",as:"div",children:e}):e),r&&(0,i.jsx)(x,{size:"sm",color:"secondary",as:"div",style:{marginTop:f.marginXXS},children:r})]}):void 0;return(0,i.jsxs)(n.Card,{title:p,extra:o,size:a,variant:s?"outlined":"borderless",hoverable:!1,loading:d,...m,className:[z.card,c&&z.hoverable,"default"!==u&&z.accented,m.className].filter(Boolean).join(" "),style:{borderColor:f.colorBorder,overflow:"hidden","--card-accent":g.accent,...m.style},children:[l,t&&(0,i.jsx)(h,{mt:3,pt:3,style:{borderTop:`1px solid ${f.colorBorder}`},children:t})]})}function A({variant:e="default",color:r,children:o,closable:t,onClose:l,icon:a,className:s,onClick:c,...d}){let u=["kb-ui-tag",c&&"kb-ui-tag--clickable",s].filter(Boolean).join(" ");return(0,i.jsx)(n.Tag,{color:r??({success:"success",warning:"warning",error:"error",info:"processing",default:void 0,neutral:void 0})[e],closable:t,onClose:l,icon:a,className:u,onClick:c,...d,children:o})}var{Title:R}=n.Typography,{useToken:D}=n.theme;function L({level:e=1,children:r,subtitle:o,className:n,style:l}){let{token:a}=D();return o?(0,i.jsxs)(h,{mb:o?2:3,children:[(0,i.jsx)(R,{level:e,className:n,style:{margin:0,...l},children:r}),(0,i.jsx)(x,{size:"base",color:"secondary",as:"div",style:{marginTop:t.spacing["1"]},children:o})]}):(0,i.jsx)(R,{level:e,className:n,style:{marginBottom:t.spacing["3"],...l},children:r})}var N={},W=null;function _(e){W=e}function H({icon:e,name:r,size:o="base",color:n="inherit",spin:t=!1,onClick:a,className:s,style:c}){let d=[N.uiIcon,"anticon",N[`size-${o}`],N[`color-${n}`],t&&N.spin,a&&N.clickable,s].filter(Boolean).join(" "),u=null,m=r||("string"==typeof e?e:null);return(m?W?u=W(m):(console.warn(`Icon "${m}" could not be loaded. Call registerIconRenderer() at app startup.`),u=null):l.isValidElement(e)&&(u=e),u)?(0,i.jsx)("span",{className:d,style:c,onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,onKeyDown:a?e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),a())}:void 0,children:u}):null}var G=({icon:e,name:r,onClick:o,size:n="base",color:t="primary",...l})=>(0,i.jsx)(H,{icon:e,name:r,size:n,color:t,onClick:o,style:{cursor:"pointer",transition:"opacity 0.2s",...l.style},...l});function O(e){return(0,i.jsx)(n.Avatar,{...e})}function X(e){return(0,i.jsx)(n.Avatar.Group,{...e})}function K(){return n.theme.useToken()}var V={};function Y({children:e,color:r="var(--text-secondary, #9CA3AF)",highlight:o="var(--text-primary, #111827)",duration:n="2s",className:t,style:l}){return(0,i.jsx)("span",{className:[V.shimmer,t].filter(Boolean).join(" "),style:{"--shimmer-color-1":r,"--shimmer-color-2":r,"--shimmer-highlight":o,"--shimmer-duration":n,...l},children:e})}function J({value:e,size:r="small",label:o,style:n,...t}){let[a,s]=l.useState(!1);return(0,i.jsx)($,{variant:"text",size:r,icon:(0,i.jsx)(H,{name:a?"CheckOutlined":"CopyOutlined",style:{color:a?"#52c41a":void 0,transition:"color 150ms ease"}}),onClick:r=>{r.stopPropagation(),navigator.clipboard.writeText(e).then(()=>{s(!0),setTimeout(()=>s(!1),1500)})},style:{transition:"opacity 150ms ease",...n},...t,children:o})}var{useToken:Q}=n.theme;function q({label:e,value:r,icon:o,status:t="default",trend:l="neutral",delta:a,unit:s,size:c="default",showDelta:d=!0,loading:u=!1}){let{token:m}=Q(),f={default:m.colorFillSecondary,info:m.colorInfoBg,success:m.colorSuccessBg,warning:m.colorWarningBg,error:m.colorErrorBg},g={default:m.colorTextSecondary,info:m.colorInfo,success:m.colorSuccess,warning:m.colorWarning,error:m.colorError};return"up"===l?m.colorSuccess:"down"===l?m.colorError:m.colorTextSecondary,(0,i.jsx)(n.Card,{size:c,loading:u,style:{height:"100%"},children:(0,i.jsxs)(h,{children:[o&&(0,i.jsx)("div",{style:{width:36,height:36,borderRadius:m.borderRadiusSM,backgroundColor:f[t],display:"flex",alignItems:"center",justifyContent:"center",color:g[t],fontSize:16,marginBottom:m.marginSM},children:o}),(0,i.jsx)(x,{size:"sm",color:"secondary",as:"div",children:e}),(0,i.jsx)(n.Tooltip,{title:String(r),mouseEnterDelay:.6,children:(0,i.jsxs)(y,{align:"baseline",gap:2,style:{marginTop:4,overflow:"hidden"},children:[(0,i.jsx)(x,{size:"2xl",weight:"bold",as:"div",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:r}),s&&(0,i.jsx)(x,{size:"base",color:"secondary",style:{flexShrink:0},children:s})]})}),d&&void 0!==a&&(0,i.jsx)(y,{align:"center",gap:1,style:{marginTop:m.marginXS},children:(0,i.jsxs)(x,{size:"sm",style:{color:a>=0?m.colorSuccess:m.colorError},children:["up"===l?"↑":"down"===l?"↓":""," ",Math.abs(a),"%"]})})]})})}function Z({columns:e,dataSource:r,rowKey:o="id",loading:t,pagination:l,rowSelection:a,onRow:s,size:c="middle",bordered:d=!1,expandable:u,className:m,style:f,scroll:g}){return(0,i.jsx)(n.Table,{columns:e,dataSource:r,rowKey:o,loading:t,pagination:l,rowSelection:a,onRow:s,size:c,bordered:d,expandable:u,className:m,style:f,scroll:g})}function ee(){return(0,l.useMemo)(()=>{let e=["#1677ff","#52c41a","#faad14","#ff4d4f","#1890ff","#722ed1","#eb2f96","#13c2c2","#fa8c16","#2f54eb"];console.log("[useChartColors] Created palette:",{colors:e});let r=[...e,"#e6f4ff","#f6ffed","#fffbe6","#fff2f0","#e6f4ff","#f759ab","#9254de","#40a9ff","#73d13d","#ffc53d"],o=r=>e[r%e.length]||"#1890ff";return{colors:e,extendedColors:r,getColor:o,mapColors:(e,r)=>{let n=Array.from(new Set(e.map(e=>String(e[r]??"")))),t={};return n.forEach((e,r)=>{t[e]=o(r)}),t}}},[])}function er(e,r){return o=>{let n=String(o[r]??""),t=Object.keys(e)[0];return e[n]||(t?e[t]:"#1890ff")||"#1890ff"}}var{useToken:eo}=n.theme;function en({colors:e,disableAutoColors:r,...o}){let n=function(){let{token:e}=eo();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=ee(),s=l.useMemo(()=>{let n=o.colorField||o.seriesField;if(console.log("[UILineChart] Debug info:",{hasColorField:n,colorField:o.colorField,seriesField:o.seriesField,disableAutoColors:r,hasData:!!o.data,dataLength:o.data?.length,customColors:e,paletteColors:t.colors}),r||!n||!o.data)return console.log("[UILineChart] Skipping auto-colors:",{disableAutoColors:r,hasColorField:n,hasData:!!o.data}),o;let i=e||t.colors;return console.log("[UILineChart] Applying colors:",{source:e?"custom":"palette",colors:i}),{...o,scale:{...o.scale,color:{range:i}}}},[o,e,t.colors,r]);return(0,i.jsx)(a.A,{...s,theme:n})}var{useToken:et}=n.theme;function ei({colors:e,...r}){let o=function(){let{token:e}=et();return l.useMemo(()=>({defaultColor:e.colorPrimary,colors10:[e.colorInfo,e.colorSuccess,e.colorWarning,e.colorError,e.colorPrimary,e.colorInfoBg,e.colorSuccessBg,e.colorWarningBg,e.colorErrorBg,e.colorPrimaryBg],colors20:[e.colorInfo,e.colorSuccess,e.colorWarning,e.colorError,e.colorPrimary,e.colorInfoBg,e.colorSuccessBg,e.colorWarningBg,e.colorErrorBg,e.colorPrimaryBg,e.colorInfoBorder,e.colorSuccessBorder,e.colorWarningBorder,e.colorErrorBorder,e.colorPrimaryBorder,e.colorInfoText,e.colorSuccessText,e.colorWarningText,e.colorErrorText,e.colorPrimaryText],styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),n=e?{...o,colors10:e,colors20:e}:o;return(0,i.jsx)(s.A,{...r,theme:n})}var{useToken:el}=n.theme;function ea({colors:e,disableAutoColors:r,...o}){let n=function(){let{token:e}=el();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=ee(),a=l.useMemo(()=>{if(r||!o.colorField||!o.data)return o;let n=e||t.colors;return{...o,scale:{...o.scale,color:{range:n}}}},[o,e,t.colors,r]);return(0,i.jsx)(c.A,{...a,theme:n})}var{useToken:es}=n.theme;function ec({colors:e,disableAutoColors:r,...o}){let n=function(){let{token:e}=es();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=ee(),a=l.useMemo(()=>{if(r||!o.colorField||!o.data)return o;let n=e||t.colors;return{...o,scale:{...o.scale,color:{range:n}}}},[o,e,t.colors,r]);return(0,i.jsx)(d.A,{...a,theme:n})}var{useToken:ed}=n.theme;function eu({colors:e,disableAutoColors:r,...o}){let n=function(){let{token:e}=ed();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=ee(),a=l.useMemo(()=>{if(r||!o.seriesField||!o.data)return o;let n=e||t.colors;return{...o,scale:{...o.scale,color:{range:n}}}},[o,e,t.colors,r]);return(0,i.jsx)(u.A,{...a,theme:n})}function em({data:e,loading:r=!1,title:o,metrics:t=[],xField:a="date",yField:s="value",colorField:c="category",style:d,height:u=350,showLegend:f=!0,chartProps:g}){let p=ee(),h=l.useMemo(()=>p.colors.slice(0,Math.max(t.length,3)),[p.colors,t.length]),y=l.useMemo(()=>e?0===t.length?e:e.flatMap(e=>{let r=[];for(let o of t){let n;n=o.key in e&&"number"==typeof e[o.key]?e[o.key]:e.metrics&&o.key in e.metrics?e.metrics[o.key]:0,o.transform&&(n=o.transform(n)),r.push({[a]:e.date?m(e.date).format("YYYY-MM-DD"):e[a],[c]:o.label,[s]:n})}return r}):[],[e,t,a,s,c]),b=()=>(0,i.jsxs)(i.Fragment,{children:[r&&(0,i.jsx)("div",{style:{textAlign:"center",padding:"40px 0"},children:(0,i.jsx)(x,{color:"secondary",children:"Loading chart data..."})}),!r&&(!y||0===y.length)&&(0,i.jsx)("div",{style:{textAlign:"center",padding:"40px 0"},children:(0,i.jsx)(x,{color:"secondary",children:"No data available for the selected date range"})}),!r&&y&&y.length>0&&(0,i.jsxs)("div",{children:[f&&0!==t.length?(0,i.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:12,gap:16},children:t.map((e,r)=>(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,i.jsx)("span",{style:{display:"inline-block",width:10,height:10,borderRadius:"50%",backgroundColor:h[r%h.length]}}),(0,i.jsx)("span",{style:{fontSize:13,fontWeight:500},children:e.label})]},e.label))}):null,(0,i.jsx)(en,{data:y,xField:a,yField:s,colorField:c,height:u,colors:h,scale:{color:{range:h}},axis:{x:{label:{autoRotate:!1}},y:{label:{formatter:e=>{let r=Number(e);return r>=1e6?`${(r/1e6).toFixed(1)}M`:r>=1e3?`${(r/1e3).toFixed(1)}K`:r.toLocaleString()}}}},style:{shape:"smooth",lineWidth:2},legend:!1,tooltip:{title:e=>e[a],items:[e=>{let r=t.find(r=>r.label===e[c]),o=t.findIndex(r=>r.label===e[c]),n=e[s]?.toLocaleString()||"0";return r?.format&&null!=e[s]&&(n=r.format(e[s])),{name:e[c],value:n,color:h[o>=0?o:0]}}]},...g})]})]});return o?(0,i.jsx)(n.Card,{title:o,style:{marginTop:16,...d},children:b()}):(0,i.jsx)("div",{style:d,children:b()})}function ef(e){return(0,i.jsx)(n.Statistic,{...e})}function eg(e){return(0,i.jsx)(n.Statistic.Countdown,{...e})}function ep(e){return(0,i.jsx)(n.Progress,{...e})}function ex(e){return(0,i.jsx)(n.Descriptions,{...e})}function eh(e){return(0,i.jsx)(n.Descriptions.Item,{...e})}function ey(e){return(0,i.jsx)(n.Timeline,{...e})}function eb(e){return(0,i.jsx)(n.Timeline.Item,{...e})}function ej(e){return(0,i.jsx)(n.Tree,{...e})}function eI(e){return(0,i.jsx)(n.Tree.DirectoryTree,{...e})}function eS(e){return(0,i.jsx)(n.Tree.TreeNode,{...e})}function ev(e){return(0,i.jsx)(n.List,{...e})}function ek(e){return(0,i.jsx)(n.List.Item,{...e})}function eU(e){return(0,i.jsx)(n.List.Item.Meta,{...e})}function eT({value:e,defaultValue:r,placeholder:o,disabled:t,prefix:l,suffix:a,maxLength:s,showCount:c,allowClear:d,onChange:u,onPressEnter:m,...f}){return(0,i.jsx)(n.Input,{value:e,defaultValue:r,placeholder:o,disabled:t,prefix:l,suffix:a,maxLength:s,showCount:c,allowClear:d,onChange:e=>{u?.(e.target.value)},onPressEnter:m,...f})}function ew(e){return(0,i.jsx)(n.Input.Password,{...e})}function eC(e){return(0,i.jsx)(n.Input.TextArea,{...e})}function eB(e){return(0,i.jsx)(n.Input.Search,{...e})}function eM({options:e=[],value:r,defaultValue:o,placeholder:t,disabled:l,loading:a,allowClear:s,showSearch:c,mode:d,onChange:u,...m}){let f=e.map(e=>({label:e.icon||e.description?(0,i.jsxs)(y,{align:"center",gap:2,style:{width:"100%"},children:[e.icon&&(0,i.jsx)("span",{children:e.icon}),(0,i.jsx)("span",{style:{flex:1},children:e.label}),e.description&&(0,i.jsx)("span",{style:{fontSize:"0.85em",opacity:.7},children:e.description})]}):e.label,value:e.value,disabled:e.disabled}));return(0,i.jsx)(n.Select,{options:f,value:r,defaultValue:o,placeholder:t,disabled:l,loading:a,allowClear:s,showSearch:c,mode:d,onChange:u,...m})}function e$({layout:e="vertical",onFinish:r,onFinishFailed:o,initialValues:t,children:l,...a}){return(0,i.jsx)(n.Form,{layout:e,onFinish:r,onFinishFailed:o,initialValues:t,...a,children:l})}function ez(e){return(0,i.jsx)(n.Form.Item,{...e})}var eF=n.Form.useForm;function eE(e){return(0,i.jsx)(n.Form.List,{...e})}function eP({children:e,checked:r,defaultChecked:o,disabled:t,indeterminate:l,onChange:a,...s}){return(0,i.jsx)(n.Checkbox,{checked:r,defaultChecked:o,disabled:t,indeterminate:l,onChange:e=>{a?.(e.target.checked)},...s,children:e})}function eA({options:e,value:r,defaultValue:o,disabled:l,gap:a=2,onChange:s}){return(0,i.jsx)(n.Checkbox.Group,{value:r,defaultValue:o,disabled:l,onChange:s,children:(0,i.jsx)(h,{children:e.map((r,o)=>(0,i.jsxs)(h,{mb:o<e.length-1?a:0,children:[(0,i.jsx)(n.Checkbox,{value:r.value,disabled:r.disabled,children:r.label}),r.description&&(0,i.jsx)(x,{size:"sm",color:"secondary",as:"div",style:{marginLeft:t.spacing["6"],marginTop:t.spacing["1"]},children:r.description})]},r.value))})})}function eR({checked:e,defaultChecked:r,disabled:o,loading:t,size:l="default",label:a,labelPosition:s="right",checkedChildren:c,unCheckedChildren:d,onChange:u,...m}){let f=(0,i.jsx)(n.Switch,{checked:e,defaultChecked:r,disabled:o,loading:t,size:l,checkedChildren:c,unCheckedChildren:d,onChange:u,...m});return a?(0,i.jsxs)(y,{align:"center",gap:2,children:["left"===s&&(0,i.jsx)(x,{children:a}),f,"right"===s&&(0,i.jsx)(x,{children:a})]}):f}function eD({value:e,defaultValue:r,placeholder:o,disabled:t,format:l,allowClear:a=!0,showTime:s,onChange:c,...d}){return(0,i.jsx)(n.DatePicker,{value:e,defaultValue:r,placeholder:o,disabled:t,format:l,allowClear:a,showTime:s,onChange:c,...d})}function eL({value:e,defaultValue:r,placeholder:o,disabled:t,format:l,allowClear:a=!0,onChange:s,...c}){return(0,i.jsx)(n.TimePicker,{value:e,defaultValue:r,placeholder:o,disabled:t,format:l,allowClear:a,onChange:s,...c})}function eN(e){return(0,i.jsx)(n.DatePicker.RangePicker,{...e})}function eW(e){return(0,i.jsx)(n.InputNumber,{...e})}function e_(e){return(0,i.jsx)(n.Radio,{...e})}function eH(e){return(0,i.jsx)(n.Radio.Group,{...e})}function eG(e){return(0,i.jsx)(n.Upload,{...e})}function eO(e){return(0,i.jsx)(n.Upload.Dragger,{...e})}function eX(e){return(0,i.jsx)(n.Slider,{...e})}function eK({items:e,separator:r,className:o}){let t=(0,f.useNavigate)(),l=e.map(e=>({title:e.icon?(0,i.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[e.icon,(0,i.jsx)("span",{children:e.title})]}):e.title,href:e.href,onClick:e.href?r=>{r.preventDefault(),t(e.href)}:e.onClick}));return(0,i.jsx)(n.Breadcrumb,{items:l,separator:r,className:o})}function eV({items:e,syncUrl:r,activeKey:o,defaultActiveKey:t,tabPosition:l="top",type:a="line",size:s="middle",onChange:c,onEdit:d,className:u,style:m}){let[g,p]=(0,f.useSearchParams)(),x=(0,f.useNavigate)(),h=(0,f.useParams)(),y=e[0]?.key??"",b=o,j=!0===r||"search"===r,I=r&&"object"==typeof r&&"path"===r.mode;j?b=g.get("tab")??y:I&&(b=h.tab??y);let S=e.map(e=>({key:e.key,label:e.icon?(0,i.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[e.icon,(0,i.jsx)("span",{children:e.label})]}):e.label,children:e.children,disabled:e.disabled,closable:e.closable}));return(0,i.jsx)(n.Tabs,{items:S,activeKey:b,defaultActiveKey:r?void 0:t,tabPosition:l,type:a,size:s,onChange:e=>{j?p(e===y?{}:{tab:e}):I&&"object"==typeof r&&x(e===y?r.basePath:`${r.basePath}/${e}`),c?.(e)},onEdit:d?(e,r)=>{d("string"==typeof e?e:"",r)}:void 0,className:u,style:m})}function eY(e){return(0,i.jsx)(eV,{...e})}function eJ({items:e,activeKey:r,defaultActiveKey:o,accordion:t=!1,bordered:l=!0,ghost:a=!1,size:s="middle",onChange:c,className:d,style:u}){let m=e.map(e=>({key:e.key,label:e.label,children:e.children,extra:e.extra,showArrow:e.showArrow,collapsible:e.collapsible}));return(0,i.jsx)(n.Collapse,{items:m,activeKey:r,defaultActiveKey:o,accordion:t,bordered:l,ghost:a,size:s,onChange:c,className:d,style:u})}function eQ(e){return(0,i.jsx)(n.Dropdown,{...e})}function eq(e){return(0,i.jsx)(n.Dropdown.Button,{...e})}function eZ(e){return(0,i.jsx)(n.Segmented,{...e})}function e0(e){return(0,i.jsx)(n.Steps,{...e})}function e1(e){return(0,i.jsx)(n.Menu,{...e})}var{useToken:e2}=n.theme;function e6({children:e,width:r="default",variant:o="default",className:n,style:t}){let{token:l}=e2(),a="document"===o,s={maxWidth:{default:"1280px",wide:"1600px",full:"100%"}[r],margin:"0 auto",padding:l.padding,...a&&{backgroundColor:l.colorBgContainer,borderRadius:l.borderRadiusLG,boxShadow:l.boxShadow},minHeight:a?void 0:"100%",...t};return(0,i.jsx)(h,{as:"main",className:n,style:s,children:e})}var{useToken:e4}=n.theme;function e3({title:e,subtitle:r,breadcrumb:o,actions:n,className:l,style:a}){let{token:s}=e4(),c={borderBottom:`1px solid ${s.colorBorder}`,paddingBottom:t.spacing["4"],marginBottom:t.spacing["6"],...a};return(0,i.jsxs)(h,{className:l,style:c,children:[o&&(0,i.jsx)(h,{mb:2,children:o}),(0,i.jsxs)(y,{justify:"between",align:"start",gap:4,children:[(0,i.jsxs)(h,{style:{flex:1},children:[(0,i.jsx)(L,{level:1,style:{marginBottom:r?t.spacing["2"]:0},children:e}),r&&(0,i.jsx)(x,{size:"base",color:"secondary",children:r})]}),n&&(0,i.jsx)(h,{style:{flexShrink:0},children:n})]})]})}var{useToken:e5}=n.theme;function e7({title:e,description:r,icon:o,breadcrumbs:n,actions:t,tabs:l,onBack:a,children:s}){let{token:c}=e5(),d=!!l;return(0,i.jsxs)("div",{style:{marginBottom:24*!d},children:[(a||n&&n.length>0)&&(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:c.marginXS,marginBottom:c.marginXS},children:[a&&(0,i.jsx)($,{variant:"text",size:"small",icon:(0,i.jsx)(H,{name:"ArrowLeftOutlined"}),onClick:a,style:{padding:"0 4px"}}),n&&n.length>0&&(0,i.jsx)(eK,{items:n.map(e=>({title:e.title,...e.href?{href:e.href}:{}}))})]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:c.marginSM},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:c.marginSM,minWidth:0},children:[o&&(0,i.jsx)("span",{style:{fontSize:24,color:c.colorPrimary,flexShrink:0,display:"flex",alignItems:"center"},children:o}),(0,i.jsxs)("div",{style:{minWidth:0},children:["string"==typeof e?(0,i.jsx)("h2",{style:{margin:0,fontFamily:"var(--font-heading)",fontSize:c.fontSizeHeading3,fontWeight:700,letterSpacing:"-0.02em",color:c.colorTextHeading,lineHeight:1.2},children:e}):e,r&&(0,i.jsx)("div",{style:{marginTop:4},children:"string"==typeof r?(0,i.jsx)(x,{color:"secondary",size:"sm",children:r}):r})]})]}),t&&(0,i.jsx)("div",{style:{display:"flex",alignItems:"center",gap:c.marginXS,flexShrink:0},children:t})]}),s&&(0,i.jsx)("div",{style:{marginTop:c.marginSM},children:s}),d&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w,{style:{marginBottom:0}}),l]})]})}function e9({children:e,gap:r=24,style:o,...n}){return(0,i.jsx)("div",{style:{marginBottom:r,...o},...n,children:e})}function e8({variant:e="info",title:r,message:o,description:t,showIcon:l,closable:a,onClose:s,action:c,icon:d,className:u,style:m}){return(0,i.jsx)(n.Alert,{type:e,message:r||o,description:r?t||o:t,showIcon:l,closable:a,onClose:s,action:c,icon:d,className:u,style:m})}var{useToken:re}=n.theme;function rr({icon:e,title:r,description:o,action:l,children:a,useDefaultImage:s,image:c,className:d,style:u}){let{token:m}=re(),f=a??l;if(s||void 0!==c)return(0,i.jsx)(n.Empty,{description:o,image:c,className:d,style:u,children:f});let g={padding:t.spacing["8"],textAlign:"center",...u};return(0,i.jsx)(h,{className:d,style:g,children:(0,i.jsxs)(y,{direction:"column",align:"center",gap:3,children:[e&&(0,i.jsx)(h,{style:{fontSize:"48px",color:m.colorTextSecondary},children:e}),r&&(0,i.jsx)(x,{size:"lg",weight:"semibold",children:r}),o&&(0,i.jsx)(x,{size:"base",color:"secondary",children:o}),f&&(0,i.jsx)(h,{mt:2,children:f})]})})}rr.PRESENTED_IMAGE_SIMPLE=n.Empty.PRESENTED_IMAGE_SIMPLE,rr.PRESENTED_IMAGE_DEFAULT=n.Empty.PRESENTED_IMAGE_DEFAULT;var{useToken:ro}=n.theme;function rn({icon:e,title:r="Something went wrong",description:o,details:n,showRetry:l=!1,retryText:a="Try again",onRetry:s,action:c,className:d,style:u}){let{token:m}=ro(),f={padding:t.spacing["8"],textAlign:"center",...u};return(0,i.jsx)(h,{className:d,style:f,children:(0,i.jsxs)(y,{direction:"column",align:"center",gap:3,children:[e&&(0,i.jsx)(h,{style:{fontSize:"48px",color:m.colorError},children:e}),(0,i.jsx)(x,{size:"lg",weight:"semibold",color:"error",children:r}),o&&(0,i.jsx)(x,{size:"base",color:"secondary",children:o}),n&&(0,i.jsx)(h,{p:3,style:{backgroundColor:m.colorErrorBg,borderRadius:m.borderRadius,maxWidth:"600px",width:"100%"},children:(0,i.jsx)(x,{size:"sm",as:"pre",style:{margin:0,textAlign:"left",whiteSpace:"pre-wrap"},children:n})}),(l||c)&&(0,i.jsx)(h,{mt:2,children:c||(0,i.jsx)($,{variant:"primary",onClick:s,children:a})})]})})}var rt={};function ri({loading:e=!0,children:r,avatar:o,avatarShape:t="circle",lines:l=3,title:a=!0,active:s=!0,className:c,style:d}){return(0,i.jsx)(n.Skeleton,{loading:e,avatar:!!o&&{shape:t},paragraph:{rows:l},title:a,active:s,className:c,style:d,children:r})}function rl(e){return(0,i.jsx)(n.Skeleton.Button,{...e})}function ra(e){return(0,i.jsx)(n.Skeleton.Input,{...e})}function rs(e){return(0,i.jsx)(n.Skeleton.Image,{...e})}function rc(e){return(0,i.jsx)(n.Skeleton.Node,{...e})}function rd({width:e="100%",height:r="1em",gap:o=6,className:t,style:l}){let{token:a}=n.theme.useToken(),s=Array.isArray(e),c=s?e:[e],d=s?"100%":"number"==typeof e?`${e}px`:e;return(0,i.jsx)("span",{className:t,style:{display:"inline-flex",flexDirection:"column",gap:o,width:d,...l},children:c.map((e,o)=>(0,i.jsx)("span",{className:rt.skeletonText,style:{display:"block",width:s?"number"==typeof e?`${e}px`:e:"100%",height:"number"==typeof r?`${r}px`:r,borderRadius:a.borderRadiusSM,flexShrink:0,backgroundImage:`linear-gradient(90deg, ${a.colorBorder} 25%, ${a.colorBgLayout} 50%, ${a.colorBorder} 75%)`,backgroundSize:"400% 100%"}},o))})}function ru(e){return(0,i.jsx)(n.Spin,{...e})}function rm(e){return(0,i.jsx)(n.Result,{...e})}var rf=n.message;function rg(){return n.message.useMessage()}var rp=n.notification;function rx(){return n.notification.useNotification()}function rh({open:e,title:r,children:o,width:t="default",closable:l=!0,maskClosable:a=!0,footer:s,okText:c,cancelText:d,confirmLoading:u,onOk:m,onCancel:f,onClose:g,className:p,style:x}){let h={small:416,default:520,large:800,full:window.innerWidth-64},y="number"==typeof t?t:h[t];return(0,i.jsx)(n.Modal,{open:e,title:r,width:y,closable:l,maskClosable:a,footer:s,okText:c,cancelText:d,confirmLoading:u,onOk:m,onCancel:f||g,className:p,style:x,children:o})}var ry=n.Modal.confirm,rb=n.Modal.info,rj=n.Modal.success,rI=n.Modal.error,rS=n.Modal.warning;function rv({title:e,children:r,placement:o="top",arrow:t=!0,trigger:l="hover",open:a,className:s}){return(0,i.jsx)(n.Tooltip,{title:e,placement:o,arrow:t,trigger:l,open:a,className:s,children:r})}function rk(e){return(0,i.jsx)(n.Drawer,{...e})}function rU(e){return(0,i.jsx)(n.Popconfirm,{...e})}function rT(e){return(0,i.jsx)(n.Popover,{...e})}var{useToken:rw}=n.theme;function rC({content:e,className:r,style:o}){let{token:n}=rw(),t=`
1
+ "use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[117],{2924(e,r,o){o.r(r);var n=o(4712),t=o(2984),i=o(4552),l=o(1913),a=o(5505),s=o(5793),c=o(7346),d=o(1499),u=o(3292),m=o(6911),f=o(5154),g=o(3781),{useToken:p}=n.theme;function x({children:e,size:r="base",weight:o="normal",color:n="primary",as:l="span",className:a,style:s}){let{token:c}=p(),d={primary:c.colorText,secondary:c.colorTextSecondary,success:c.colorSuccess,warning:c.colorWarning,error:c.colorError,info:c.colorInfo},u={...{fontSize:t.typography.fontSize[r][0],lineHeight:t.typography.fontSize[r][1].lineHeight,fontWeight:t.typography.fontWeight[o],color:d[n]},...s};return(0,i.jsx)(l,{style:u,className:a,children:e})}function h({children:e,p:r,pt:o,pr:n,pb:l,pl:a,m:s,mt:c,mr:d,mb:u,ml:m,as:f="div",className:g,style:p}){let x={...void 0!==r&&{padding:t.spacing[r]},...void 0!==o&&{paddingTop:t.spacing[o]},...void 0!==n&&{paddingRight:t.spacing[n]},...void 0!==l&&{paddingBottom:t.spacing[l]},...void 0!==a&&{paddingLeft:t.spacing[a]},...void 0!==s&&{margin:t.spacing[s]},...void 0!==c&&{marginTop:t.spacing[c]},...void 0!==d&&{marginRight:t.spacing[d]},...void 0!==u&&{marginBottom:t.spacing[u]},...void 0!==m&&{marginLeft:t.spacing[m]},...p};return(0,i.jsx)(f,{style:x,className:g,children:e})}function y({children:e,direction:r="row",justify:o="start",align:n="stretch",gap:l,wrap:a="nowrap",as:s="div",className:c,style:d}){let u={display:"flex",flexDirection:r,justifyContent:{start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly"}[o],alignItems:{start:"flex-start",end:"flex-end",center:"center",baseline:"baseline",stretch:"stretch"}[n],flexWrap:a,...void 0!==l&&{gap:t.spacing[l]},...d};return(0,i.jsx)(s,{style:u,className:c,children:e})}function b(e){return(0,i.jsx)(n.Typography.Text,{...e})}function j(e){return(0,i.jsx)(n.Typography.Paragraph,{...e})}function I(e){return(0,i.jsx)(n.Typography.Link,{...e})}function S({direction:e="vertical",spacing:r=2,align:o,children:n,as:t,className:l,style:a}){return(0,i.jsx)(y,{direction:"vertical"===e?"column":"row",gap:r,align:o,as:t,className:l,style:a,children:n})}function v(e){return(0,i.jsx)(n.Space,{...e})}function k(e){return(0,i.jsx)(n.Space.Compact,{...e})}function U(e){return(0,i.jsx)(n.Row,{...e})}function T(e){return(0,i.jsx)(n.Col,{...e})}function w(e){return(0,i.jsx)(n.Divider,{...e})}var{useToken:C}=n.theme;function B({variant:e="default",children:r,...o}){let{token:t}=C(),l={success:t.colorSuccess,warning:t.colorWarning,error:t.colorError,info:t.colorInfo,default:t.colorTextSecondary};return r?(0,i.jsx)(n.Badge,{color:l[e],text:r,...o}):(0,i.jsx)(n.Badge,{status:{success:"success",warning:"warning",error:"error",info:"processing",default:"default"}[e],...o})}var M={},$=l.forwardRef(function({variant:e="default",className:r,...o},t){let l=[M.uiButton,r].filter(Boolean).join(" ");return(0,i.jsx)(n.Button,{ref:t,type:e,className:l,...o})}),z={},{useToken:F}=n.theme,E={default:{accent:"var(--border-primary)"},success:{accent:"var(--success)"},warning:{accent:"var(--warning)"},error:{accent:"var(--error)"},info:{accent:"var(--info)"}};function P({title:e,subtitle:r,extra:o,footer:t,children:l,size:a="default",bordered:s=!0,hoverable:c=!1,loading:d=!1,status:u="default",...m}){let{token:f}=F(),g=E[u],p=e||r?(0,i.jsxs)(h,{children:[e&&("string"==typeof e?(0,i.jsx)(x,{size:"lg",weight:"semibold",as:"div",children:e}):e),r&&(0,i.jsx)(x,{size:"sm",color:"secondary",as:"div",style:{marginTop:f.marginXXS},children:r})]}):void 0;return(0,i.jsxs)(n.Card,{title:p,extra:o,size:a,variant:s?"outlined":"borderless",hoverable:!1,loading:d,...m,className:[z.card,c&&z.hoverable,"default"!==u&&z.accented,m.className].filter(Boolean).join(" "),style:{borderColor:f.colorBorder,overflow:"hidden","--card-accent":g.accent,...m.style},children:[l,t&&(0,i.jsx)(h,{mt:3,pt:3,style:{borderTop:`1px solid ${f.colorBorder}`},children:t})]})}function A({variant:e="default",color:r,children:o,closable:t,onClose:l,icon:a,className:s,onClick:c,...d}){let u=["kb-ui-tag",c&&"kb-ui-tag--clickable",s].filter(Boolean).join(" ");return(0,i.jsx)(n.Tag,{color:r??({success:"success",warning:"warning",error:"error",info:"processing",default:void 0,neutral:void 0})[e],closable:t,onClose:l,icon:a,className:u,onClick:c,...d,children:o})}var{Title:R}=n.Typography,{useToken:D}=n.theme;function L({level:e=1,children:r,subtitle:o,className:n,style:l}){let{token:a}=D();return o?(0,i.jsxs)(h,{mb:o?2:3,children:[(0,i.jsx)(R,{level:e,className:n,style:{margin:0,...l},children:r}),(0,i.jsx)(x,{size:"base",color:"secondary",as:"div",style:{marginTop:t.spacing["1"]},children:o})]}):(0,i.jsx)(R,{level:e,className:n,style:{marginBottom:t.spacing["3"],...l},children:r})}var N={},W=null;function _(e){W=e}function H({icon:e,name:r,size:o="base",color:n="inherit",spin:t=!1,onClick:a,className:s,style:c}){let d=[N.uiIcon,"anticon",N[`size-${o}`],N[`color-${n}`],t&&N.spin,a&&N.clickable,s].filter(Boolean).join(" "),u=null,m=r||("string"==typeof e?e:null);return(m?W?u=W(m):(console.warn(`Icon "${m}" could not be loaded. Call registerIconRenderer() at app startup.`),u=null):l.isValidElement(e)&&(u=e),u)?(0,i.jsx)("span",{className:d,style:c,onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,onKeyDown:a?e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),a())}:void 0,children:u}):null}var G=({icon:e,name:r,onClick:o,size:n="base",color:t="primary",...l})=>(0,i.jsx)(H,{icon:e,name:r,size:n,color:t,onClick:o,style:{cursor:"pointer",transition:"opacity 0.2s",...l.style},...l});function O(e){return(0,i.jsx)(n.Avatar,{...e})}function X(e){return(0,i.jsx)(n.Avatar.Group,{...e})}function K(){return n.theme.useToken()}var V={};function Y({children:e,color:r="var(--text-secondary, #9CA3AF)",highlight:o="var(--text-primary, #111827)",duration:n="2s",className:t,style:l}){return(0,i.jsx)("span",{className:[V.shimmer,t].filter(Boolean).join(" "),style:{"--shimmer-color-1":r,"--shimmer-color-2":r,"--shimmer-highlight":o,"--shimmer-duration":n,...l},children:e})}function J({value:e,size:r="small",label:o,style:n,...t}){let[a,s]=l.useState(!1);return(0,i.jsx)($,{variant:"text",size:r,icon:(0,i.jsx)(H,{name:a?"CheckOutlined":"CopyOutlined",style:{color:a?"#52c41a":void 0,transition:"color 150ms ease"}}),onClick:r=>{r.stopPropagation(),navigator.clipboard.writeText(e).then(()=>{s(!0),setTimeout(()=>s(!1),1500)})},style:{transition:"opacity 150ms ease",...n},...t,children:o})}var{useToken:Q}=n.theme;function q({label:e,value:r,icon:o,status:t="default",trend:l="neutral",delta:a,unit:s,size:c="default",showDelta:d=!0,loading:u=!1}){let{token:m}=Q(),f={default:m.colorFillSecondary,info:m.colorInfoBg,success:m.colorSuccessBg,warning:m.colorWarningBg,error:m.colorErrorBg},g={default:m.colorTextSecondary,info:m.colorInfo,success:m.colorSuccess,warning:m.colorWarning,error:m.colorError};return"up"===l?m.colorSuccess:"down"===l?m.colorError:m.colorTextSecondary,(0,i.jsx)(n.Card,{size:c,loading:u,style:{height:"100%"},children:(0,i.jsxs)(h,{children:[o&&(0,i.jsx)("div",{style:{width:36,height:36,borderRadius:m.borderRadiusSM,backgroundColor:f[t],display:"flex",alignItems:"center",justifyContent:"center",color:g[t],fontSize:16,marginBottom:m.marginSM},children:o}),(0,i.jsx)(x,{size:"sm",color:"secondary",as:"div",children:e}),(0,i.jsx)(n.Tooltip,{title:String(r),mouseEnterDelay:.6,children:(0,i.jsxs)(y,{align:"baseline",gap:2,style:{marginTop:4,overflow:"hidden"},children:[(0,i.jsx)(x,{size:"2xl",weight:"bold",as:"div",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:r}),s&&(0,i.jsx)(x,{size:"base",color:"secondary",style:{flexShrink:0},children:s})]})}),d&&void 0!==a&&(0,i.jsx)(y,{align:"center",gap:1,style:{marginTop:m.marginXS},children:(0,i.jsxs)(x,{size:"sm",style:{color:a>=0?m.colorSuccess:m.colorError},children:["up"===l?"↑":"down"===l?"↓":""," ",Math.abs(a),"%"]})})]})})}function Z({columns:e,dataSource:r,rowKey:o="id",loading:t,pagination:l,rowSelection:a,onRow:s,size:c="middle",bordered:d=!1,expandable:u,className:m,style:f,scroll:g}){return(0,i.jsx)(n.Table,{columns:e,dataSource:r,rowKey:o,loading:t,pagination:l,rowSelection:a,onRow:s,size:c,bordered:d,expandable:u,className:m,style:f,scroll:g})}function ee(){return(0,l.useMemo)(()=>{let e=["#1677ff","#52c41a","#faad14","#ff4d4f","#1890ff","#722ed1","#eb2f96","#13c2c2","#fa8c16","#2f54eb"];console.log("[useChartColors] Created palette:",{colors:e});let r=[...e,"#e6f4ff","#f6ffed","#fffbe6","#fff2f0","#e6f4ff","#f759ab","#9254de","#40a9ff","#73d13d","#ffc53d"],o=r=>e[r%e.length]||"#1890ff";return{colors:e,extendedColors:r,getColor:o,mapColors:(e,r)=>{let n=Array.from(new Set(e.map(e=>String(e[r]??"")))),t={};return n.forEach((e,r)=>{t[e]=o(r)}),t}}},[])}function er(e,r){return o=>{let n=String(o[r]??""),t=Object.keys(e)[0];return e[n]||(t?e[t]:"#1890ff")||"#1890ff"}}var{useToken:eo}=n.theme;function en({colors:e,disableAutoColors:r,...o}){let n=function(){let{token:e}=eo();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=ee(),s=l.useMemo(()=>{let n=o.colorField||o.seriesField;if(console.log("[UILineChart] Debug info:",{hasColorField:n,colorField:o.colorField,seriesField:o.seriesField,disableAutoColors:r,hasData:!!o.data,dataLength:o.data?.length,customColors:e,paletteColors:t.colors}),r||!n||!o.data)return console.log("[UILineChart] Skipping auto-colors:",{disableAutoColors:r,hasColorField:n,hasData:!!o.data}),o;let i=e||t.colors;return console.log("[UILineChart] Applying colors:",{source:e?"custom":"palette",colors:i}),{...o,scale:{...o.scale,color:{range:i}}}},[o,e,t.colors,r]);return(0,i.jsx)(a.A,{...s,theme:n})}var{useToken:et}=n.theme;function ei({colors:e,...r}){let o=function(){let{token:e}=et();return l.useMemo(()=>({defaultColor:e.colorPrimary,colors10:[e.colorInfo,e.colorSuccess,e.colorWarning,e.colorError,e.colorPrimary,e.colorInfoBg,e.colorSuccessBg,e.colorWarningBg,e.colorErrorBg,e.colorPrimaryBg],colors20:[e.colorInfo,e.colorSuccess,e.colorWarning,e.colorError,e.colorPrimary,e.colorInfoBg,e.colorSuccessBg,e.colorWarningBg,e.colorErrorBg,e.colorPrimaryBg,e.colorInfoBorder,e.colorSuccessBorder,e.colorWarningBorder,e.colorErrorBorder,e.colorPrimaryBorder,e.colorInfoText,e.colorSuccessText,e.colorWarningText,e.colorErrorText,e.colorPrimaryText],styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),n=e?{...o,colors10:e,colors20:e}:o;return(0,i.jsx)(s.A,{...r,theme:n})}var{useToken:el}=n.theme;function ea({colors:e,disableAutoColors:r,...o}){let n=function(){let{token:e}=el();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=ee(),a=l.useMemo(()=>{if(r||!o.colorField||!o.data)return o;let n=e||t.colors;return{...o,scale:{...o.scale,color:{range:n}}}},[o,e,t.colors,r]);return(0,i.jsx)(c.A,{...a,theme:n})}var{useToken:es}=n.theme;function ec({colors:e,disableAutoColors:r,...o}){let n=function(){let{token:e}=es();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=ee(),a=l.useMemo(()=>{if(r||!o.colorField||!o.data)return o;let n=e||t.colors;return{...o,scale:{...o.scale,color:{range:n}}}},[o,e,t.colors,r]);return(0,i.jsx)(d.A,{...a,theme:n})}var{useToken:ed}=n.theme;function eu({colors:e,disableAutoColors:r,...o}){let n=function(){let{token:e}=ed();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=ee(),a=l.useMemo(()=>{if(r||!o.seriesField||!o.data)return o;let n=e||t.colors;return{...o,scale:{...o.scale,color:{range:n}}}},[o,e,t.colors,r]);return(0,i.jsx)(u.A,{...a,theme:n})}function em({data:e,loading:r=!1,title:o,metrics:t=[],xField:a="date",yField:s="value",colorField:c="category",style:d,height:u=350,showLegend:f=!0,chartProps:g}){let p=ee(),h=l.useMemo(()=>p.colors.slice(0,Math.max(t.length,3)),[p.colors,t.length]),y=l.useMemo(()=>e?0===t.length?e:e.flatMap(e=>{let r=[];for(let o of t){let n;n=o.key in e&&"number"==typeof e[o.key]?e[o.key]:e.metrics&&o.key in e.metrics?e.metrics[o.key]:0,o.transform&&(n=o.transform(n)),r.push({[a]:e.date?m(e.date).format("YYYY-MM-DD"):e[a],[c]:o.label,[s]:n})}return r}):[],[e,t,a,s,c]),b=()=>(0,i.jsxs)(i.Fragment,{children:[r&&(0,i.jsx)("div",{style:{textAlign:"center",padding:"40px 0"},children:(0,i.jsx)(x,{color:"secondary",children:"Loading chart data..."})}),!r&&(!y||0===y.length)&&(0,i.jsx)("div",{style:{textAlign:"center",padding:"40px 0"},children:(0,i.jsx)(x,{color:"secondary",children:"No data available for the selected date range"})}),!r&&y&&y.length>0&&(0,i.jsxs)("div",{children:[f&&0!==t.length?(0,i.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:12,gap:16},children:t.map((e,r)=>(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,i.jsx)("span",{style:{display:"inline-block",width:10,height:10,borderRadius:"50%",backgroundColor:h[r%h.length]}}),(0,i.jsx)("span",{style:{fontSize:13,fontWeight:500},children:e.label})]},e.label))}):null,(0,i.jsx)(en,{data:y,xField:a,yField:s,colorField:c,height:u,colors:h,scale:{color:{range:h}},axis:{x:{label:{autoRotate:!1}},y:{label:{formatter:e=>{let r=Number(e);return r>=1e6?`${(r/1e6).toFixed(1)}M`:r>=1e3?`${(r/1e3).toFixed(1)}K`:r.toLocaleString()}}}},style:{shape:"smooth",lineWidth:2},legend:!1,tooltip:{title:e=>e[a],items:[e=>{let r=t.find(r=>r.label===e[c]),o=t.findIndex(r=>r.label===e[c]),n=e[s]?.toLocaleString()||"0";return r?.format&&null!=e[s]&&(n=r.format(e[s])),{name:e[c],value:n,color:h[o>=0?o:0]}}]},...g})]})]});return o?(0,i.jsx)(n.Card,{title:o,style:{marginTop:16,...d},children:b()}):(0,i.jsx)("div",{style:d,children:b()})}function ef(e){return(0,i.jsx)(n.Statistic,{...e})}function eg(e){return(0,i.jsx)(n.Statistic.Countdown,{...e})}function ep(e){return(0,i.jsx)(n.Progress,{...e})}function ex(e){return(0,i.jsx)(n.Descriptions,{...e})}function eh(e){return(0,i.jsx)(n.Descriptions.Item,{...e})}function ey(e){return(0,i.jsx)(n.Timeline,{...e})}function eb(e){return(0,i.jsx)(n.Timeline.Item,{...e})}function ej(e){return(0,i.jsx)(n.Tree,{...e})}function eI(e){return(0,i.jsx)(n.Tree.DirectoryTree,{...e})}function eS(e){return(0,i.jsx)(n.Tree.TreeNode,{...e})}function ev(e){return(0,i.jsx)(n.List,{...e})}function ek(e){return(0,i.jsx)(n.List.Item,{...e})}function eU(e){return(0,i.jsx)(n.List.Item.Meta,{...e})}function eT({value:e,defaultValue:r,placeholder:o,disabled:t,prefix:l,suffix:a,maxLength:s,showCount:c,allowClear:d,onChange:u,onPressEnter:m,...f}){return(0,i.jsx)(n.Input,{value:e,defaultValue:r,placeholder:o,disabled:t,prefix:l,suffix:a,maxLength:s,showCount:c,allowClear:d,onChange:e=>{u?.(e.target.value)},onPressEnter:m,...f})}function ew(e){return(0,i.jsx)(n.Input.Password,{...e})}function eC(e){return(0,i.jsx)(n.Input.TextArea,{...e})}function eB(e){return(0,i.jsx)(n.Input.Search,{...e})}function eM({options:e=[],value:r,defaultValue:o,placeholder:t,disabled:l,loading:a,allowClear:s,showSearch:c,mode:d,onChange:u,...m}){let f=e.map(e=>({label:e.icon||e.description?(0,i.jsxs)(y,{align:"center",gap:2,style:{width:"100%"},children:[e.icon&&(0,i.jsx)("span",{children:e.icon}),(0,i.jsx)("span",{style:{flex:1},children:e.label}),e.description&&(0,i.jsx)("span",{style:{fontSize:"0.85em",opacity:.7},children:e.description})]}):e.label,value:e.value,disabled:e.disabled}));return(0,i.jsx)(n.Select,{options:f,value:r,defaultValue:o,placeholder:t,disabled:l,loading:a,allowClear:s,showSearch:c,mode:d,onChange:u,...m})}function e$({layout:e="vertical",onFinish:r,onFinishFailed:o,initialValues:t,children:l,...a}){return(0,i.jsx)(n.Form,{layout:e,onFinish:r,onFinishFailed:o,initialValues:t,...a,children:l})}function ez(e){return(0,i.jsx)(n.Form.Item,{...e})}var eF=n.Form.useForm;function eE(e){return(0,i.jsx)(n.Form.List,{...e})}function eP({children:e,checked:r,defaultChecked:o,disabled:t,indeterminate:l,onChange:a,...s}){return(0,i.jsx)(n.Checkbox,{checked:r,defaultChecked:o,disabled:t,indeterminate:l,onChange:e=>{a?.(e.target.checked)},...s,children:e})}function eA({options:e,value:r,defaultValue:o,disabled:l,gap:a=2,onChange:s}){return(0,i.jsx)(n.Checkbox.Group,{value:r,defaultValue:o,disabled:l,onChange:s,children:(0,i.jsx)(h,{children:e.map((r,o)=>(0,i.jsxs)(h,{mb:o<e.length-1?a:0,children:[(0,i.jsx)(n.Checkbox,{value:r.value,disabled:r.disabled,children:r.label}),r.description&&(0,i.jsx)(x,{size:"sm",color:"secondary",as:"div",style:{marginLeft:t.spacing["6"],marginTop:t.spacing["1"]},children:r.description})]},r.value))})})}function eR({checked:e,defaultChecked:r,disabled:o,loading:t,size:l="default",label:a,labelPosition:s="right",checkedChildren:c,unCheckedChildren:d,onChange:u,...m}){let f=(0,i.jsx)(n.Switch,{checked:e,defaultChecked:r,disabled:o,loading:t,size:l,checkedChildren:c,unCheckedChildren:d,onChange:u,...m});return a?(0,i.jsxs)(y,{align:"center",gap:2,children:["left"===s&&(0,i.jsx)(x,{children:a}),f,"right"===s&&(0,i.jsx)(x,{children:a})]}):f}function eD({value:e,defaultValue:r,placeholder:o,disabled:t,format:l,allowClear:a=!0,showTime:s,onChange:c,...d}){return(0,i.jsx)(n.DatePicker,{value:e,defaultValue:r,placeholder:o,disabled:t,format:l,allowClear:a,showTime:s,onChange:c,...d})}function eL({value:e,defaultValue:r,placeholder:o,disabled:t,format:l,allowClear:a=!0,onChange:s,...c}){return(0,i.jsx)(n.TimePicker,{value:e,defaultValue:r,placeholder:o,disabled:t,format:l,allowClear:a,onChange:s,...c})}function eN(e){return(0,i.jsx)(n.DatePicker.RangePicker,{...e})}function eW(e){return(0,i.jsx)(n.InputNumber,{...e})}function e_(e){return(0,i.jsx)(n.Radio,{...e})}function eH(e){return(0,i.jsx)(n.Radio.Group,{...e})}function eG(e){return(0,i.jsx)(n.Upload,{...e})}function eO(e){return(0,i.jsx)(n.Upload.Dragger,{...e})}function eX(e){return(0,i.jsx)(n.Slider,{...e})}function eK({items:e,separator:r,className:o}){let t=(0,f.useNavigate)(),l=e.map(e=>({title:e.icon?(0,i.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[e.icon,(0,i.jsx)("span",{children:e.title})]}):e.title,href:e.href,onClick:e.href?r=>{r.preventDefault(),t(e.href)}:e.onClick}));return(0,i.jsx)(n.Breadcrumb,{items:l,separator:r,className:o})}function eV({items:e,syncUrl:r,activeKey:o,defaultActiveKey:t,tabPosition:l="top",type:a="line",size:s="middle",onChange:c,onEdit:d,className:u,style:m}){let[g,p]=(0,f.useSearchParams)(),x=(0,f.useNavigate)(),h=(0,f.useParams)(),y=e[0]?.key??"",b=o,j=!0===r||"search"===r,I=r&&"object"==typeof r&&"path"===r.mode;j?b=g.get("tab")??y:I&&(b=h.tab??y);let S=e.map(e=>({key:e.key,label:e.icon?(0,i.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[e.icon,(0,i.jsx)("span",{children:e.label})]}):e.label,children:e.children,disabled:e.disabled,closable:e.closable}));return(0,i.jsx)(n.Tabs,{items:S,activeKey:b,defaultActiveKey:r?void 0:t,tabPosition:l,type:a,size:s,onChange:e=>{j?p(e===y?{}:{tab:e}):I&&"object"==typeof r&&x(e===y?r.basePath:`${r.basePath}/${e}`),c?.(e)},onEdit:d?(e,r)=>{d("string"==typeof e?e:"",r)}:void 0,className:u,style:m})}function eY(e){return(0,i.jsx)(eV,{...e})}function eJ({items:e,activeKey:r,defaultActiveKey:o,accordion:t=!1,bordered:l=!0,ghost:a=!1,size:s="middle",onChange:c,className:d,style:u}){let m=e.map(e=>({key:e.key,label:e.label,children:e.children,extra:e.extra,showArrow:e.showArrow,collapsible:e.collapsible}));return(0,i.jsx)(n.Collapse,{items:m,activeKey:r,defaultActiveKey:o,accordion:t,bordered:l,ghost:a,size:s,onChange:c,className:d,style:u})}function eQ(e){return(0,i.jsx)(n.Dropdown,{...e})}function eq(e){return(0,i.jsx)(n.Dropdown.Button,{...e})}function eZ(e){return(0,i.jsx)(n.Segmented,{...e})}function e0(e){return(0,i.jsx)(n.Steps,{...e})}function e1(e){return(0,i.jsx)(n.Menu,{...e})}var{useToken:e2}=n.theme;function e6({children:e,width:r="default",variant:o="default",className:n,style:t}){let{token:l}=e2(),a="document"===o,s={maxWidth:{default:"1280px",wide:"1600px",full:"100%"}[r],margin:"0 auto",padding:l.padding,...a&&{backgroundColor:l.colorBgContainer,borderRadius:l.borderRadiusLG,boxShadow:l.boxShadow},minHeight:a?void 0:"100%",...t};return(0,i.jsx)(h,{as:"main",className:n,style:s,children:e})}var{useToken:e4}=n.theme;function e3({title:e,subtitle:r,breadcrumb:o,actions:n,className:l,style:a}){let{token:s}=e4(),c={borderBottom:`1px solid ${s.colorBorder}`,paddingBottom:t.spacing["4"],marginBottom:t.spacing["6"],...a};return(0,i.jsxs)(h,{className:l,style:c,children:[o&&(0,i.jsx)(h,{mb:2,children:o}),(0,i.jsxs)(y,{justify:"between",align:"start",gap:4,children:[(0,i.jsxs)(h,{style:{flex:1},children:[(0,i.jsx)(L,{level:1,style:{marginBottom:r?t.spacing["2"]:0},children:e}),r&&(0,i.jsx)(x,{size:"base",color:"secondary",children:r})]}),n&&(0,i.jsx)(h,{style:{flexShrink:0},children:n})]})]})}var{useToken:e5}=n.theme;function e7({title:e,description:r,icon:o,breadcrumbs:n,actions:t,tabs:l,onBack:a,children:s}){let{token:c}=e5(),d=!!l;return(0,i.jsxs)("div",{style:{marginBottom:24*!d},children:[(a||n&&n.length>0)&&(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:c.marginXS,marginBottom:c.marginXS},children:[a&&(0,i.jsx)($,{variant:"text",size:"small",icon:(0,i.jsx)(H,{name:"ArrowLeftOutlined"}),onClick:a,style:{padding:"0 4px"}}),n&&n.length>0&&(0,i.jsx)(eK,{items:n.map(e=>({title:e.title,...e.href?{href:e.href}:{}}))})]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:c.marginSM},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:c.marginSM,minWidth:0},children:[o&&(0,i.jsx)("span",{style:{fontSize:24,color:c.colorPrimary,flexShrink:0,display:"flex",alignItems:"center"},children:o}),(0,i.jsxs)("div",{style:{minWidth:0},children:["string"==typeof e?(0,i.jsx)("h2",{style:{margin:0,fontFamily:"var(--font-heading)",fontSize:c.fontSizeHeading3,fontWeight:700,letterSpacing:"-0.02em",color:c.colorTextHeading,lineHeight:1.2},children:e}):e,r&&(0,i.jsx)("div",{style:{marginTop:4},children:"string"==typeof r?(0,i.jsx)(x,{color:"secondary",size:"sm",children:r}):r})]})]}),t&&(0,i.jsx)("div",{style:{display:"flex",alignItems:"center",gap:c.marginXS,flexShrink:0},children:t})]}),s&&(0,i.jsx)("div",{style:{marginTop:c.marginSM},children:s}),d&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w,{style:{marginBottom:0}}),l]})]})}function e8({children:e,gap:r=24,style:o,...n}){return(0,i.jsx)("div",{style:{marginBottom:r,...o},...n,children:e})}function e9({variant:e="info",title:r,message:o,description:t,showIcon:l,closable:a,onClose:s,action:c,icon:d,className:u,style:m}){return(0,i.jsx)(n.Alert,{type:e,message:r||o,description:r?t||o:t,showIcon:l,closable:a,onClose:s,action:c,icon:d,className:u,style:m})}var{useToken:re}=n.theme;function rr({icon:e,title:r,description:o,action:l,children:a,useDefaultImage:s,image:c,className:d,style:u}){let{token:m}=re(),f=a??l;if(s||void 0!==c)return(0,i.jsx)(n.Empty,{description:o,image:c,className:d,style:u,children:f});let g={padding:t.spacing["8"],textAlign:"center",...u};return(0,i.jsx)(h,{className:d,style:g,children:(0,i.jsxs)(y,{direction:"column",align:"center",gap:3,children:[e&&(0,i.jsx)(h,{style:{fontSize:"48px",color:m.colorTextSecondary},children:e}),r&&(0,i.jsx)(x,{size:"lg",weight:"semibold",children:r}),o&&(0,i.jsx)(x,{size:"base",color:"secondary",children:o}),f&&(0,i.jsx)(h,{mt:2,children:f})]})})}rr.PRESENTED_IMAGE_SIMPLE=n.Empty.PRESENTED_IMAGE_SIMPLE,rr.PRESENTED_IMAGE_DEFAULT=n.Empty.PRESENTED_IMAGE_DEFAULT;var{useToken:ro}=n.theme;function rn({icon:e,title:r="Something went wrong",description:o,details:n,showRetry:l=!1,retryText:a="Try again",onRetry:s,action:c,className:d,style:u}){let{token:m}=ro(),f={padding:t.spacing["8"],textAlign:"center",...u};return(0,i.jsx)(h,{className:d,style:f,children:(0,i.jsxs)(y,{direction:"column",align:"center",gap:3,children:[e&&(0,i.jsx)(h,{style:{fontSize:"48px",color:m.colorError},children:e}),(0,i.jsx)(x,{size:"lg",weight:"semibold",color:"error",children:r}),o&&(0,i.jsx)(x,{size:"base",color:"secondary",children:o}),n&&(0,i.jsx)(h,{p:3,style:{backgroundColor:m.colorErrorBg,borderRadius:m.borderRadius,maxWidth:"600px",width:"100%"},children:(0,i.jsx)(x,{size:"sm",as:"pre",style:{margin:0,textAlign:"left",whiteSpace:"pre-wrap"},children:n})}),(l||c)&&(0,i.jsx)(h,{mt:2,children:c||(0,i.jsx)($,{variant:"primary",onClick:s,children:a})})]})})}var rt={};function ri({loading:e=!0,children:r,avatar:o,avatarShape:t="circle",lines:l=3,title:a=!0,active:s=!0,className:c,style:d}){return(0,i.jsx)(n.Skeleton,{loading:e,avatar:!!o&&{shape:t},paragraph:{rows:l},title:a,active:s,className:c,style:d,children:r})}function rl(e){return(0,i.jsx)(n.Skeleton.Button,{...e})}function ra(e){return(0,i.jsx)(n.Skeleton.Input,{...e})}function rs(e){return(0,i.jsx)(n.Skeleton.Image,{...e})}function rc(e){return(0,i.jsx)(n.Skeleton.Node,{...e})}function rd({width:e="100%",height:r="1em",gap:o=6,className:t,style:l}){let{token:a}=n.theme.useToken(),s=Array.isArray(e),c=s?e:[e],d=s?"100%":"number"==typeof e?`${e}px`:e;return(0,i.jsx)("span",{className:t,style:{display:"inline-flex",flexDirection:"column",gap:o,width:d,...l},children:c.map((e,o)=>(0,i.jsx)("span",{className:rt.skeletonText,style:{display:"block",width:s?"number"==typeof e?`${e}px`:e:"100%",height:"number"==typeof r?`${r}px`:r,borderRadius:a.borderRadiusSM,flexShrink:0,backgroundImage:`linear-gradient(90deg, ${a.colorBorder} 25%, ${a.colorBgLayout} 50%, ${a.colorBorder} 75%)`,backgroundSize:"400% 100%"}},o))})}function ru(e){return(0,i.jsx)(n.Spin,{...e})}function rm(e){return(0,i.jsx)(n.Result,{...e})}var rf=n.message;function rg(){return n.message.useMessage()}var rp=n.notification;function rx(){return n.notification.useNotification()}function rh({open:e,title:r,children:o,width:t="default",closable:l=!0,maskClosable:a=!0,footer:s,okText:c,cancelText:d,confirmLoading:u,onOk:m,onCancel:f,onClose:g,className:p,style:x}){let h={small:416,default:520,large:800,full:window.innerWidth-64},y="number"==typeof t?t:h[t];return(0,i.jsx)(n.Modal,{open:e,title:r,width:y,closable:l,maskClosable:a,footer:s,okText:c,cancelText:d,confirmLoading:u,onOk:m,onCancel:f||g,className:p,style:x,children:o})}var ry=n.Modal.confirm,rb=n.Modal.info,rj=n.Modal.success,rI=n.Modal.error,rS=n.Modal.warning;function rv({title:e,children:r,placement:o="top",arrow:t=!0,trigger:l="hover",open:a,className:s}){return(0,i.jsx)(n.Tooltip,{title:e,placement:o,arrow:t,trigger:l,open:a,className:s,children:r})}function rk(e){return(0,i.jsx)(n.Drawer,{...e})}function rU(e){return(0,i.jsx)(n.Popconfirm,{...e})}function rT(e){return(0,i.jsx)(n.Popover,{...e})}var{useToken:rw}=n.theme;function rC({content:e,className:r,style:o}){let{token:n}=rw(),t=`
2
2
  .kb-md { font-size: ${n.fontSize}px; line-height: 1.6; color: ${n.colorText}; font-family: ${n.fontFamily}; }
3
3
  .kb-md h1,.kb-md h2,.kb-md h3,.kb-md h4,.kb-md h5,.kb-md h6 { font-weight:600; line-height:1.3; margin:1.2em 0 0.4em; color:${n.colorTextHeading}; }
4
4
  .kb-md h1:first-child,.kb-md h2:first-child,.kb-md h3:first-child { margin-top:0; }
@@ -22,4 +22,4 @@
22
22
  .kb-md th { background:${n.colorFillTertiary}; font-weight:600; }
23
23
  .kb-md tr:nth-child(even) td { background:${n.colorFillQuaternary}; }
24
24
  .kb-md img { max-width:100%; border-radius:${n.borderRadius}px; }
25
- `;return(0,i.jsxs)(h,{className:r,style:{padding:n.padding,...o},children:[(0,i.jsx)("style",{children:t}),(0,i.jsx)("div",{className:"kb-md",dangerouslySetInnerHTML:{__html:(0,g.xI)(e)}})]})}var{useToken:rB}=n.theme;function rM({data:e,collapsed:r=!1,indent:o=2,showLineNumbers:n=!1,className:t,style:a}){let{token:s}=rB(),c=l.useMemo(()=>{try{return JSON.stringify(e,null,o)}catch(e){return`Error: ${e instanceof Error?e.message:"Invalid JSON"}`}},[e,o]),d=c.split("\n"),u={backgroundColor:s.colorBgContainer,borderRadius:s.borderRadius,border:`1px solid ${s.colorBorder}`,overflow:"auto",maxHeight:"600px",...a},m={display:"block",fontFamily:'Consolas, Monaco, "Courier New", monospace',fontSize:"13px",lineHeight:"1.6",padding:s.padding,margin:0,whiteSpace:"pre",color:s.colorText},f={display:"inline-block",width:"40px",color:s.colorTextSecondary,userSelect:"none",textAlign:"right",marginRight:s.marginSM},g=r$(c,s);return(0,i.jsx)(h,{className:t,style:u,children:(0,i.jsx)("pre",{style:m,children:n?d.map((e,r)=>(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{style:f,children:r+1}),(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:r$(e,s)}})]},r)):(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:g}})})})}function r$(e,r){return(e=(e=(e=(e=e.replace(/"([^"]+)":/g,`<span style="color: ${r.colorPrimary}">"$1"</span>:`)).replace(/: "([^"]*)"/g,`: <span style="color: ${r.colorSuccess}">"$1"</span>`)).replace(/: (\d+)/g,`: <span style="color: ${r.colorWarning}">$1</span>`)).replace(/: (true|false)/g,`: <span style="color: ${r.colorInfo}">$1</span>`)).replace(/: (null)/g,`: <span style="color: ${r.colorTextSecondary}">$1</span>`)}var rz={add:{bg:"rgba(22, 163, 74, 0.12)",border:"var(--success, #16a34a)",color:"var(--success, #16a34a)"},remove:{bg:"rgba(220, 38, 38, 0.12)",border:"var(--error, #dc2626)",color:"var(--error, #dc2626)"},header:{bg:"var(--bg-tertiary, rgba(0,0,0,0.04))",border:"transparent",color:"var(--text-secondary, #6b7280)"},context:{bg:"transparent",border:"transparent",color:"inherit"}};function rF({diff:e,showLineNumbers:r=!0,maxHeight:o=500,className:n,style:t}){if(!e||""===e.trim())return(0,i.jsx)("div",{style:{padding:16,textAlign:"center"},children:(0,i.jsx)(b,{type:"secondary",children:"No changes to display"})});let l=e.split("\n");return(0,i.jsx)("div",{className:n,style:{background:"var(--bg-tertiary, rgba(0,0,0,0.02))",border:"1px solid var(--border-primary, rgba(0,0,0,0.1))",borderRadius:"var(--radius-md, 6px)",fontFamily:'Monaco, Menlo, "Courier New", monospace',fontSize:13,lineHeight:1.5,maxHeight:o,overflow:"auto",...t},children:l.map((e,o)=>{let n=e.startsWith("@@")?"header":e.startsWith("+")?"add":e.startsWith("-")?"remove":"context",t=rz[n],l="add"===n||"remove"===n;return(0,i.jsxs)("div",{style:{display:"flex",background:t.bg,borderLeft:l?`3px solid ${t.border}`:"none",paddingLeft:l?8:11},children:[r&&(0,i.jsx)("span",{style:{minWidth:44,textAlign:"right",paddingRight:12,userSelect:"none",color:"var(--text-secondary, #6c757d)",fontSize:12},children:o+1}),(0,i.jsx)("pre",{style:{margin:0,padding:0,color:t.color,whiteSpace:"pre",flex:1},children:e})]},o)})})}o.d(r,{UIAccordion:()=>eJ,UIAlert:()=>e8,UIAreaChart:()=>ea,UIAvatar:()=>O,UIAvatarGroup:()=>X,UIBadge:()=>B,UIBarChart:()=>eu,UIBox:()=>h,UIBreadcrumb:()=>eK,UIButton:()=>$,UICard:()=>P,UICheckbox:()=>eP,UICheckboxGroup:()=>eA,UICol:()=>T,UIColumnChart:()=>ei,UICopyButton:()=>J,UIDatePicker:()=>eD,UIDescriptions:()=>ex,UIDescriptionsItem:()=>eh,UIDiffViewer:()=>rF,UIDivider:()=>w,UIDrawer:()=>rk,UIDropdown:()=>eQ,UIDropdownButton:()=>eq,UIEmptyState:()=>rr,UIErrorState:()=>rn,UIFlex:()=>y,UIForm:()=>e$,UIFormItem:()=>ez,UIFormList:()=>eE,UIHeader:()=>e3,UIIcon:()=>H,UIIconButton:()=>G,UIInput:()=>eT,UIInputNumber:()=>eW,UIInputPassword:()=>ew,UIInputSearch:()=>eB,UIInputTextArea:()=>eC,UIJsonViewer:()=>rM,UILineChart:()=>en,UIList:()=>ev,UIListItem:()=>ek,UIListItemMeta:()=>eU,UIMarkdownViewer:()=>rC,UIMenu:()=>e1,UIMessage:()=>rf,UIMetricCard:()=>q,UIModal:()=>rh,UIModalConfirm:()=>ry,UIModalError:()=>rI,UIModalInfo:()=>rb,UIModalSuccess:()=>rj,UIModalWarning:()=>rS,UINotification:()=>rp,UIPage:()=>e6,UIPageHeader:()=>e7,UIPageSection:()=>e9,UIPieChart:()=>ec,UIPopconfirm:()=>rU,UIPopover:()=>rT,UIProgress:()=>ep,UIRadio:()=>e_,UIRadioGroup:()=>eH,UIRangePicker:()=>eN,UIResult:()=>rm,UIRow:()=>U,UISegmented:()=>eZ,UISelect:()=>eM,UIShimmerText:()=>Y,UISkeleton:()=>ri,UISkeletonButton:()=>rl,UISkeletonImage:()=>rs,UISkeletonInput:()=>ra,UISkeletonNode:()=>rc,UISkeletonText:()=>rd,UISlider:()=>eX,UISpace:()=>v,UISpaceCompact:()=>k,UISpin:()=>ru,UIStack:()=>S,UIStatistic:()=>ef,UIStatisticCountdown:()=>eg,UIStatisticsChart:()=>em,UISteps:()=>e0,UISwitch:()=>eR,UITable:()=>Z,UITabs:()=>eY,UITag:()=>A,UIText:()=>x,UITimePicker:()=>eL,UITimeline:()=>ey,UITimelineItem:()=>eb,UITitle:()=>L,UITooltip:()=>rv,UITree:()=>ej,UITreeDirectoryTree:()=>eI,UITreeNode:()=>eS,UITypographyLink:()=>I,UITypographyParagraph:()=>j,UITypographyText:()=>b,UIUpload:()=>eG,UIUploadDragger:()=>eO,createFillFunction:()=>er,registerIconRenderer:()=>_,useChartColors:()=>ee,useUIForm:()=>eF,useUIMessage:()=>rg,useUINotification:()=>rx,useUITheme:()=>K})}}]);
25
+ `;return(0,i.jsxs)(h,{className:r,style:{padding:n.padding,...o},children:[(0,i.jsx)("style",{children:t}),(0,i.jsx)("div",{className:"kb-md",dangerouslySetInnerHTML:{__html:(0,g.xI)(e)}})]})}var{useToken:rB}=n.theme;function rM({data:e,collapsed:r=!1,indent:o=2,showLineNumbers:n=!1,className:t,style:a}){let{token:s}=rB(),c=l.useMemo(()=>{try{return JSON.stringify(e,null,o)}catch(e){return`Error: ${e instanceof Error?e.message:"Invalid JSON"}`}},[e,o]),d=c.split("\n"),u={backgroundColor:s.colorBgContainer,borderRadius:s.borderRadius,border:`1px solid ${s.colorBorder}`,overflow:"auto",maxHeight:"600px",...a},m={display:"block",fontFamily:'Consolas, Monaco, "Courier New", monospace',fontSize:"13px",lineHeight:"1.6",padding:s.padding,margin:0,whiteSpace:"pre",color:s.colorText},f={display:"inline-block",width:"40px",color:s.colorTextSecondary,userSelect:"none",textAlign:"right",marginRight:s.marginSM},g=r$(c,s);return(0,i.jsx)(h,{className:t,style:u,children:(0,i.jsx)("pre",{style:m,children:n?d.map((e,r)=>(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{style:f,children:r+1}),(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:r$(e,s)}})]},r)):(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:g}})})})}function r$(e,r){return(e=(e=(e=(e=e.replace(/"([^"]+)":/g,`<span style="color: ${r.colorPrimary}">"$1"</span>:`)).replace(/: "([^"]*)"/g,`: <span style="color: ${r.colorSuccess}">"$1"</span>`)).replace(/: (\d+)/g,`: <span style="color: ${r.colorWarning}">$1</span>`)).replace(/: (true|false)/g,`: <span style="color: ${r.colorInfo}">$1</span>`)).replace(/: (null)/g,`: <span style="color: ${r.colorTextSecondary}">$1</span>`)}var rz={add:{bg:"rgba(22, 163, 74, 0.12)",border:"var(--success, #16a34a)",color:"var(--success, #16a34a)"},remove:{bg:"rgba(220, 38, 38, 0.12)",border:"var(--error, #dc2626)",color:"var(--error, #dc2626)"},header:{bg:"var(--bg-tertiary, rgba(0,0,0,0.04))",border:"transparent",color:"var(--text-secondary, #6b7280)"},context:{bg:"transparent",border:"transparent",color:"inherit"}};function rF({diff:e,showLineNumbers:r=!0,maxHeight:o=500,className:n,style:t}){if(!e||""===e.trim())return(0,i.jsx)("div",{style:{padding:16,textAlign:"center"},children:(0,i.jsx)(b,{type:"secondary",children:"No changes to display"})});let l=e.split("\n");return(0,i.jsx)("div",{className:n,style:{background:"var(--bg-tertiary, rgba(0,0,0,0.02))",border:"1px solid var(--border-primary, rgba(0,0,0,0.1))",borderRadius:"var(--radius-md, 6px)",fontFamily:'Monaco, Menlo, "Courier New", monospace',fontSize:13,lineHeight:1.5,maxHeight:o,overflow:"auto",...t},children:l.map((e,o)=>{let n=e.startsWith("@@")?"header":e.startsWith("+")?"add":e.startsWith("-")?"remove":"context",t=rz[n],l="add"===n||"remove"===n;return(0,i.jsxs)("div",{style:{display:"flex",background:t.bg,borderLeft:l?`3px solid ${t.border}`:"none",paddingLeft:l?8:11},children:[r&&(0,i.jsx)("span",{style:{minWidth:44,textAlign:"right",paddingRight:12,userSelect:"none",color:"var(--text-secondary, #6c757d)",fontSize:12},children:o+1}),(0,i.jsx)("pre",{style:{margin:0,padding:0,color:t.color,whiteSpace:"pre",flex:1},children:e})]},o)})})}o.d(r,{UIAccordion:()=>eJ,UIAlert:()=>e9,UIAreaChart:()=>ea,UIAvatar:()=>O,UIAvatarGroup:()=>X,UIBadge:()=>B,UIBarChart:()=>eu,UIBox:()=>h,UIBreadcrumb:()=>eK,UIButton:()=>$,UICard:()=>P,UICheckbox:()=>eP,UICheckboxGroup:()=>eA,UICol:()=>T,UIColumnChart:()=>ei,UICopyButton:()=>J,UIDatePicker:()=>eD,UIDescriptions:()=>ex,UIDescriptionsItem:()=>eh,UIDiffViewer:()=>rF,UIDivider:()=>w,UIDrawer:()=>rk,UIDropdown:()=>eQ,UIDropdownButton:()=>eq,UIEmptyState:()=>rr,UIErrorState:()=>rn,UIFlex:()=>y,UIForm:()=>e$,UIFormItem:()=>ez,UIFormList:()=>eE,UIHeader:()=>e3,UIIcon:()=>H,UIIconButton:()=>G,UIInput:()=>eT,UIInputNumber:()=>eW,UIInputPassword:()=>ew,UIInputSearch:()=>eB,UIInputTextArea:()=>eC,UIJsonViewer:()=>rM,UILineChart:()=>en,UIList:()=>ev,UIListItem:()=>ek,UIListItemMeta:()=>eU,UIMarkdownViewer:()=>rC,UIMenu:()=>e1,UIMessage:()=>rf,UIMetricCard:()=>q,UIModal:()=>rh,UIModalConfirm:()=>ry,UIModalError:()=>rI,UIModalInfo:()=>rb,UIModalSuccess:()=>rj,UIModalWarning:()=>rS,UINotification:()=>rp,UIPage:()=>e6,UIPageHeader:()=>e7,UIPageSection:()=>e8,UIPieChart:()=>ec,UIPopconfirm:()=>rU,UIPopover:()=>rT,UIProgress:()=>ep,UIRadio:()=>e_,UIRadioGroup:()=>eH,UIRangePicker:()=>eN,UIResult:()=>rm,UIRow:()=>U,UISegmented:()=>eZ,UISelect:()=>eM,UIShimmerText:()=>Y,UISkeleton:()=>ri,UISkeletonButton:()=>rl,UISkeletonImage:()=>rs,UISkeletonInput:()=>ra,UISkeletonNode:()=>rc,UISkeletonText:()=>rd,UISlider:()=>eX,UISpace:()=>v,UISpaceCompact:()=>k,UISpin:()=>ru,UIStack:()=>S,UIStatistic:()=>ef,UIStatisticCountdown:()=>eg,UIStatisticsChart:()=>em,UISteps:()=>e0,UISwitch:()=>eR,UITable:()=>Z,UITabs:()=>eY,UITag:()=>A,UIText:()=>x,UITimePicker:()=>eL,UITimeline:()=>ey,UITimelineItem:()=>eb,UITitle:()=>L,UITooltip:()=>rv,UITree:()=>ej,UITreeDirectoryTree:()=>eI,UITreeNode:()=>eS,UITypographyLink:()=>I,UITypographyParagraph:()=>j,UITypographyText:()=>b,UIUpload:()=>eG,UIUploadDragger:()=>eO,createFillFunction:()=>er,registerIconRenderer:()=>_,useChartColors:()=>ee,useUIForm:()=>eF,useUIMessage:()=>rg,useUINotification:()=>rx,useUITheme:()=>K})}}]);
@@ -1 +1 @@
1
- "use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[165],{3978(e,t,r){var i=r(92);function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(n(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},f=Symbol.for("react.portal"),c=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(n(299));return function(e,t,r){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:f,key:null==i?null:""+i,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.flushSync=function(e){var t=c.T,r=s.p;try{if(c.T=null,s.p=2,e)return e()}finally{c.T=t,s.p=r,s.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,i=y(r,t.crossOrigin),n="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?s.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:i,integrity:n,fetchPriority:o}):"script"===r&&s.d.X(e,{crossOrigin:i,integrity:n,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var r=y(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var r=t.as,i=y(r,t.crossOrigin);s.d.L(e,r,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var r=y(t.as,t.crossOrigin);s.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,r){return c.H.useFormState(e,t,r)},t.useFormStatus=function(){return c.H.useHostTransitionStatus()},t.version="19.2.5"},1297(e,t,r){!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(3978)}}]);
1
+ "use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[165],{3978(e,t,r){var i=r(1913);function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(n(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},f=Symbol.for("react.portal"),c=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(n(299));return function(e,t,r){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:f,key:null==i?null:""+i,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.flushSync=function(e){var t=c.T,r=s.p;try{if(c.T=null,s.p=2,e)return e()}finally{c.T=t,s.p=r,s.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,i=y(r,t.crossOrigin),n="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?s.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:i,integrity:n,fetchPriority:o}):"script"===r&&s.d.X(e,{crossOrigin:i,integrity:n,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var r=y(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var r=t.as,i=y(r,t.crossOrigin);s.d.L(e,r,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var r=y(t.as,t.crossOrigin);s.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,r){return c.H.useFormState(e,t,r)},t.useFormStatus=function(){return c.H.useHostTransitionStatus()},t.version="19.2.5"},1297(e,t,r){!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(3978)}}]);
@@ -1 +1 @@
1
- "use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[370],{3481(r,e,o){o.r(e);var t=o(92),a=o(4552),n=o(5699),c=o(9312),i=o(5963),l=o(9497),v=o(7899),s=(0,t.createContext)(null);function d({children:r,value:e}){return(0,a.jsx)(s.Provider,{value:e,children:r})}function g(){let r=(0,t.useContext)(s);if(!r)throw Error("usePage() must be used inside a PageContextProvider (are you inside a Studio page?)");return r}function u(){return g()}function y(){let r=(0,n.useEventBusContext)(),{pluginId:e,pageId:o}=g(),a=(0,t.useRef)([]);return(0,t.useEffect)(()=>()=>{for(let r of a.current)r();a.current=[]},[]),{publish:(0,t.useCallback)((t,a)=>{r.publish(t,a,e,o)},[r,e,o]),subscribe:(0,t.useCallback)((t,n)=>{let c=r.subscribe(t,n,e,o);return a.current.push(c),c},[r,e,o])}}function b(r,e){let o=function(r,e){if(!e||0===Object.keys(e).length)return r;let o=new URLSearchParams;for(let[r,t]of Object.entries(e))null!=t&&o.set(r,String(t));let t=r.includes("?")?"&":"?";return`${r}${t}${o.toString()}`}(r,e?.params),t=(0,c.useQuery)({queryKey:["studio-data",o],queryFn:()=>p(o),enabled:e?.enabled,staleTime:e?.staleTime,refetchInterval:e?.pollingMs||void 0,select:e?.select});return{data:t.data,isLoading:t.isLoading,isError:t.isError,error:t.error,refetch:t.refetch,isFetching:t.isFetching}}function m(r,e="POST"){let o="string"==typeof e?{method:e}:e,t=o.method??"POST",a=o.mapBody,n=(0,c.useMutation)({mutationFn:async e=>{let o="function"==typeof r?r(e):r,n=a?a(e):e,c=null!=n,i=await fetch(`${x()}/api${o}`,{method:t,headers:c?{"Content-Type":"application/json"}:{},body:c?JSON.stringify(n):void 0});if(!i.ok)throw Error(`${t} ${o} failed: ${i.status} ${i.statusText}`);let l=await i.json();return l&&"object"==typeof l&&"ok"in l&&"data"in l?l.data:l}});return{mutate:n.mutate,mutateAsync:n.mutateAsync,isLoading:n.isPending,isError:n.isError,error:n.error,data:n.data}}function x(){if("u">typeof window){let r=window.__KB_STUDIO_CONFIG__,e=r?.KB_API_BASE_URL;if(e)try{return new URL(e).origin}catch{}}return""}async function p(r){let e=await fetch(`${x()}/api${r}`);if(!e.ok)throw Error(`GET ${r} failed: ${e.status} ${e.statusText}`);let o=await e.json();return o&&"object"==typeof o&&"ok"in o&&"data"in o?o.data:o}function B(r,e={}){let{events:o="message",doneEvent:a,terminalEvents:n,enabled:c=!0,reconnect:i=!1,maxReconnects:l=5,reconnectIntervalMs:v=2e3,maxEvents:s=0,parse:d=f,params:g,onEvent:u,onOpen:y,onError:b,onDone:m}=e,[x,p]=(0,t.useState)([]),[S,h]=(0,t.useState)(void 0),[k,C]=(0,t.useState)(null),[T,F]=(0,t.useState)(!1),[E,H]=(0,t.useState)("closed"),[w,A]=(0,t.useState)(!1),[P,I]=(0,t.useState)(0),D=(0,t.useRef)(null),L=(0,t.useRef)(null),R=(0,t.useRef)(!1),W=(0,t.useRef)(!1),$=(0,t.useRef)(u),M=(0,t.useRef)(y),O=(0,t.useRef)(b),_=(0,t.useRef)(m),N=(0,t.useRef)(d);$.current=u,M.current=y,O.current=b,_.current=m,N.current=d;let z=JSON.stringify(o),G=JSON.stringify(g),j=JSON.stringify(n),X=(0,t.useCallback)(()=>{R.current=!0,L.current&&(clearTimeout(L.current),L.current=null),D.current&&(D.current.close(),D.current=null),F(!1),H("closed"),A(!0)},[]),U=(0,t.useCallback)(()=>{p([]),h(void 0)},[]);return(0,t.useEffect)(()=>{if(!r||!c){D.current&&(D.current.close(),D.current=null),F(!1);return}R.current=!1,W.current=!1,p([]),h(void 0),C(null),A(!1),I(0),H("connecting");let e=0;return!function t(){let c=new EventSource(function(r,e){let o=r.startsWith("http")?r:`/api${r}`;if(!e||0===Object.keys(e).length)return o;let t=new URLSearchParams;for(let[r,o]of Object.entries(e))null!=o&&t.set(r,String(o));let a=o.includes("?")?"&":"?";return`${o}${a}${t.toString()}`}(r,g));D.current=c;let d=Array.isArray(o)?o:[o],u=r=>{try{let e=N.current(r.data);h(e),p(r=>{let o=[...r,e];return s>0&&o.length>s?o.slice(-s):o}),$.current?.(e)}catch(e){let r=e instanceof Error?e:Error("Failed to parse SSE event data");C(r),O.current?.(r)}};for(let r of d)c.addEventListener(r,u);for(let r of[...n??[],...a?[a]:[]])c.addEventListener(r,()=>{W.current=!0,c.close(),D.current=null,F(!1),H("closed"),A(!0),_.current?.()});c.onopen=()=>{e=0,I(0),F(!0),H("live"),C(null),M.current?.()},c.onerror=()=>{if(c.close(),D.current=null,F(!1),R.current||W.current)return void H("closed");let r=Error("SSE connection lost");C(r),O.current?.(r),i&&e<l?(I(++e),H("reconnecting"),L.current=setTimeout(t,v*Math.pow(2,e-1))):H("closed")}}(),()=>{R.current=!0,L.current&&(clearTimeout(L.current),L.current=null),D.current&&(D.current.close(),D.current=null)}},[r,c,a,i,l,v,s,z,G,j]),{events:x,latest:S,isConnected:T,connectionStatus:E,closedClean:w,error:k,close:X,clear:U,reconnectCount:P}}function f(r){return JSON.parse(r)}function S(r){let[e,o]=(0,t.useState)(()=>r?h(r):null);return(0,t.useEffect)(()=>{if(!r)return void o(null);o(h(r));let e=setInterval(()=>{o(h(r))},1e3);return()=>clearInterval(e)},[r]),e}function h(r){let e=Math.max(0,Math.floor((Date.now()-new Date(r).getTime())/1e3));if(e<60)return`${e}s`;let o=Math.floor(e/60);if(o<60)return`${o}m ${(e%60).toString().padStart(2,"0")}s`;let t=Math.floor(o/60);return`${t}h ${(o%60).toString().padStart(2,"0")}m`}function k(r,e){let{getNextCursor:o,params:t,enabled:a,staleTime:n,cursorParam:i="cursor",initialCursor:l}=e,v=(0,c.useInfiniteQuery)({queryKey:["studio-infinite",r,t],queryFn:async({pageParam:e})=>C(function(r,e,o,t){let a=new URLSearchParams;if(e)for(let[r,o]of Object.entries(e))null!=o&&a.set(r,String(o));null!=t&&a.set(o,String(t));let n=a.toString(),c=r.startsWith("http")?r:`/api${r}`;return n?`${c}?${n}`:c}(r,t,i,e)),initialPageParam:l,getNextPageParam:o,enabled:a,staleTime:n}),s=v.data?.pages??[],d=s.flatMap(r=>Array.isArray(r)?r:[r]);return{pages:s,data:d,isLoading:v.isLoading,isFetching:v.isFetching,isFetchingNextPage:v.isFetchingNextPage,hasNextPage:v.hasNextPage,fetchNextPage:v.fetchNextPage,error:v.error,isError:v.isError,refetch:v.refetch}}async function C(r){let e=await fetch(r);if(!e.ok)throw Error(`GET ${r} failed: ${e.status} ${e.statusText}`);let o=await e.json();return o&&"object"==typeof o&&"ok"in o&&"data"in o?o.data:o}function T(r,e={}){let{enabled:o=!0,reconnect:a=!1,maxReconnects:n=5,reconnectIntervalMs:c=2e3,protocols:i,parse:l=F,serialize:v=E,maxMessages:s=100,onMessage:d,onOpen:g,onClose:u,onError:y}=e,[b,m]=(0,t.useState)([]),[x,p]=(0,t.useState)(void 0),[B,f]=(0,t.useState)("disconnected"),[S,h]=(0,t.useState)(null),[k,C]=(0,t.useState)(0),H=(0,t.useRef)(null),w=(0,t.useRef)(null),A=(0,t.useRef)(!1),P=(0,t.useRef)(d),I=(0,t.useRef)(g),D=(0,t.useRef)(u),L=(0,t.useRef)(y),R=(0,t.useRef)(l),W=(0,t.useRef)(v);P.current=d,I.current=g,D.current=u,L.current=y,R.current=l,W.current=v;let $=(0,t.useCallback)(()=>{w.current&&(clearTimeout(w.current),w.current=null),H.current&&(H.current.close(),H.current=null)},[]),M=(0,t.useCallback)(()=>{if(!r)return;$(),A.current=!1,f("connecting"),h(null);let e=0;!function o(){let t=function(r){if(r.startsWith("ws://")||r.startsWith("wss://"))return r;let e=r.startsWith("/")?r:`/${r}`;if("u">typeof window){let r=window.__KB_STUDIO_CONFIG__,o=r?.KB_API_BASE_URL;if(o)try{let r=new URL(o).origin,t=r.startsWith("https")?"wss:":"ws:";return`${t}//${new URL(r).host}${e}`}catch{}}let o="https:"===window.location.protocol?"wss:":"ws:";return`${o}//${window.location.host}${e}`}(r),l=i?new WebSocket(t,i):new WebSocket(t);H.current=l,l.onopen=r=>{e=0,C(0),f("connected"),h(null),I.current?.(r)},l.onmessage=r=>{try{let e=R.current(r.data);p(e),m(r=>{let o=[...r,e];return s>0&&o.length>s?o.slice(-s):o}),P.current?.(e)}catch{}},l.onclose=r=>{H.current=null,f("disconnected"),D.current?.(r),!A.current&&a&&e<n&&1e3!==r.code&&(C(++e),w.current=setTimeout(o,c*Math.pow(2,e-1)))},l.onerror=r=>{f("error"),h(r),L.current?.(r)}}()},[r,i,a,n,c,s,$]),O=(0,t.useCallback)((r,e)=>{A.current=!0,w.current&&(clearTimeout(w.current),w.current=null),H.current&&(H.current.close(r,e),H.current=null),f("disconnected")},[]),_=(0,t.useCallback)(r=>{H.current?.readyState===WebSocket.OPEN&&H.current.send(W.current(r))},[]),N=(0,t.useCallback)(r=>{H.current?.readyState===WebSocket.OPEN&&H.current.send(r)},[]),z=(0,t.useCallback)(()=>{m([]),p(void 0)},[]);return(0,t.useEffect)(()=>{if(!r||!o){$(),f("disconnected");return}return m([]),p(void 0),M(),()=>{A.current=!0,$()}},[r,o]),{send:_,sendRaw:N,messages:b,latest:x,status:B,isConnected:"connected"===B,error:S,connect:M,disconnect:O,clear:z,reconnectCount:k}}function F(r){return JSON.parse(r)}function E(r){return JSON.stringify(r)}function H(){let{permissions:r}=g();return{hasPermission:(0,t.useCallback)(e=>r.includes(e),[r]),permissions:r}}function w(){let r=(0,i.useNavigate)(),e=(0,i.useLocation)(),o=(0,t.useCallback)(e=>r(e),[r]),a=(0,t.useCallback)(()=>r(-1),[r]),n=(0,t.useCallback)(r=>window.open(r,"_blank","noopener"),[]);return{navigate:o,currentPath:e.pathname,goBack:a,openExternal:n}}function A(){let r=(0,t.useCallback)(r=>{l.notification[r.type]({message:r.message,description:r.description,duration:r.duration??4.5})},[]),e=(0,t.useCallback)((e,o)=>r({type:"success",message:e,description:o}),[r]),o=(0,t.useCallback)((e,o)=>r({type:"error",message:e,description:o}),[r]),a=(0,t.useCallback)((e,o)=>r({type:"warning",message:e,description:o}),[r]),n=(0,t.useCallback)((e,o)=>r({type:"info",message:e,description:o}),[r]);return{notify:r,success:e,error:o,warning:a,info:n}}var P={bgPrimary:v.lightSemanticColors["bg-primary"],bgSecondary:v.lightSemanticColors["bg-secondary"],bgTertiary:v.lightSemanticColors["bg-tertiary"],textPrimary:v.lightSemanticColors["text-primary"],textSecondary:v.lightSemanticColors["text-secondary"],textTertiary:v.lightSemanticColors["text-tertiary"],textInverse:v.lightSemanticColors["text-inverse"],borderPrimary:v.lightSemanticColors["border-primary"],borderSecondary:v.lightSemanticColors["border-secondary"],link:v.lightSemanticColors.link,linkHover:v.lightSemanticColors["link-hover"],accentSubtle:v.lightSemanticColors["accent-subtle"],success:v.lightSemanticColors.success,warning:v.lightSemanticColors.warning,error:v.lightSemanticColors.error,info:v.lightSemanticColors.info,disabled:v.lightSemanticColors.disabled,shadow:v.lightSemanticColors.shadow},I={bgPrimary:v.darkSemanticColors["bg-primary"],bgSecondary:v.darkSemanticColors["bg-secondary"],bgTertiary:v.darkSemanticColors["bg-tertiary"],textPrimary:v.darkSemanticColors["text-primary"],textSecondary:v.darkSemanticColors["text-secondary"],textTertiary:v.darkSemanticColors["text-tertiary"],textInverse:v.darkSemanticColors["text-inverse"],borderPrimary:v.darkSemanticColors["border-primary"],borderSecondary:v.darkSemanticColors["border-secondary"],link:v.darkSemanticColors.link,linkHover:v.darkSemanticColors["link-hover"],accentSubtle:v.darkSemanticColors["accent-subtle"],success:v.darkSemanticColors.success,warning:v.darkSemanticColors.warning,error:v.darkSemanticColors.error,info:v.darkSemanticColors.info,disabled:v.darkSemanticColors.disabled,shadow:v.darkSemanticColors.shadow};function D(){return"u"<typeof document?"light":document.documentElement.classList.contains("dark")?"dark":"light"}function L(){let{token:r}=l.theme.useToken(),[e,o]=t.useState(D);return t.useEffect(()=>{let r=new MutationObserver(()=>{o(D())});return r.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>r.disconnect()},[]),{mode:e,antdToken:r,semantic:"dark"===e?I:P,tokens:{colors:v.colors,spacing:v.spacing,typography:v.typography,radius:v.radius,shadows:v.shadows}}}function R(){return{colorPrimary:"var(--link, #0c66ff)",colorPrimaryHover:"var(--link-hover, #0050cc)",colorPrimaryActive:"var(--link-hover, #0050cc)",colorPrimaryBg:"var(--accent-subtle, #dbeafe)",colorPrimaryBgHover:"var(--accent-subtle, #dbeafe)",colorPrimaryBorder:"var(--link, #0c66ff)",colorPrimaryBorderHover:"var(--link-hover, #0050cc)",colorPrimaryText:"var(--link, #0c66ff)",colorPrimaryTextHover:"var(--link-hover, #0050cc)",colorPrimaryTextActive:"var(--link-hover, #0050cc)",colorSuccess:"var(--success, #16A34A)",colorSuccessHover:"var(--success, #16A34A)",colorSuccessActive:"var(--success, #16A34A)",colorSuccessBg:"var(--bg-tertiary, #F3F4F6)",colorSuccessBgHover:"var(--bg-tertiary, #F3F4F6)",colorSuccessBorder:"var(--success, #16A34A)",colorSuccessBorderHover:"var(--success, #16A34A)",colorSuccessText:"var(--success, #16A34A)",colorSuccessTextHover:"var(--success, #16A34A)",colorSuccessTextActive:"var(--success, #16A34A)",colorWarning:"var(--warning, #F59E0B)",colorWarningHover:"var(--warning, #F59E0B)",colorWarningActive:"var(--warning, #F59E0B)",colorWarningBg:"var(--bg-tertiary, #F3F4F6)",colorWarningBgHover:"var(--bg-tertiary, #F3F4F6)",colorWarningBorder:"var(--warning, #F59E0B)",colorWarningBorderHover:"var(--warning, #F59E0B)",colorWarningText:"var(--warning, #F59E0B)",colorWarningTextHover:"var(--warning, #F59E0B)",colorWarningTextActive:"var(--warning, #F59E0B)",colorWarningOutline:"rgba(245, 158, 11, 0.2)",colorError:"var(--error, #DC2626)",colorErrorHover:"var(--error, #DC2626)",colorErrorActive:"var(--error, #DC2626)",colorErrorBg:"var(--bg-tertiary, #F3F4F6)",colorErrorBgHover:"var(--bg-tertiary, #F3F4F6)",colorErrorBorder:"var(--error, #DC2626)",colorErrorBorderHover:"var(--error, #DC2626)",colorErrorText:"var(--error, #DC2626)",colorErrorTextHover:"var(--error, #DC2626)",colorErrorTextActive:"var(--error, #DC2626)",colorErrorOutline:"rgba(220, 38, 38, 0.2)",colorInfo:"var(--info, #0EA5E9)",colorInfoHover:"var(--info, #0EA5E9)",colorInfoActive:"var(--info, #0EA5E9)",colorInfoBg:"var(--bg-tertiary, #F3F4F6)",colorInfoBgHover:"var(--bg-tertiary, #F3F4F6)",colorInfoBorder:"var(--info, #0EA5E9)",colorInfoBorderHover:"var(--info, #0EA5E9)",colorInfoText:"var(--info, #0EA5E9)",colorInfoTextHover:"var(--info, #0EA5E9)",colorInfoTextActive:"var(--info, #0EA5E9)",colorBgContainer:"var(--bg-secondary, #FFFFFF)",colorBgBase:"var(--bg-primary, #F9FAFB)",colorBgElevated:"var(--bg-secondary, #FFFFFF)",colorBgLayout:"var(--bg-primary, #F9FAFB)",colorBgSpotlight:"var(--bg-tertiary, #F3F4F6)",colorBgMask:"rgba(0, 0, 0, 0.45)",colorBgTextHover:"var(--bg-hover, #F3F4F6)",colorBgTextActive:"var(--bg-hover, #F3F4F6)",colorBgContainerDisabled:"var(--bg-tertiary, #F3F4F6)",colorText:"var(--text-primary, #111827)",colorTextBase:"var(--text-primary, #111827)",colorTextSecondary:"var(--text-secondary, #6B7280)",colorTextTertiary:"var(--text-tertiary, #6B7280)",colorTextQuaternary:"var(--text-tertiary, #6B7280)",colorTextDisabled:"var(--disabled, #9CA3AF)",colorTextHeading:"var(--text-primary, #111827)",colorTextLabel:"var(--text-secondary, #6B7280)",colorTextDescription:"var(--text-secondary, #6B7280)",colorTextPlaceholder:"var(--text-tertiary, #6B7280)",colorTextLightSolid:"var(--text-inverse, #FFFFFF)",colorBorder:"var(--border-primary, #E5E7EB)",colorBorderSecondary:"var(--border-secondary, #D4D4D4)",colorBorderBg:"var(--bg-secondary, #FFFFFF)",colorSplit:"var(--border-primary, #E5E7EB)",colorFill:"var(--bg-tertiary, #F3F4F6)",colorFillSecondary:"var(--bg-tertiary, #F3F4F6)",colorFillTertiary:"var(--bg-primary, #F9FAFB)",colorFillQuaternary:"var(--bg-primary, #F9FAFB)",colorFillContent:"var(--bg-hover, #F3F4F6)",colorFillContentHover:"var(--bg-hover, #F3F4F6)",colorFillAlter:"var(--bg-tertiary, #F3F4F6)",colorWhite:"#FFFFFF",boxShadow:"0 2px 24px rgba(0,0,0,0.07)",boxShadowSecondary:"0 4px 32px rgba(0,0,0,0.08)",boxShadowTertiary:"0 8px 48px rgba(0,0,0,0.10)",borderRadius:10,borderRadiusLG:16,borderRadiusSM:8,borderRadiusXS:6,borderRadiusOuter:8,controlHeight:36,controlHeightLG:40,controlHeightSM:28,controlHeightXS:22,fontFamily:"var(--font-body, 'Geist Sans', 'Segoe UI', sans-serif)",fontSize:14,fontSizeLG:16,fontSizeSM:12,fontSizeXL:20,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,fontSizeIcon:12,fontWeightStrong:600,lineHeight:1.5714285714285714,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,padding:16,paddingLG:24,paddingSM:12,paddingXS:8,paddingXXS:4,margin:16,marginLG:24,marginSM:12,marginXS:8,marginXXS:4,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",colorLink:"var(--link, #0c66ff)",colorLinkHover:"var(--link-hover, #0050cc)",colorLinkActive:"var(--link-hover, #0050cc)",colorIcon:"var(--text-secondary, #6B7280)",colorIconHover:"var(--text-primary, #111827)",colorHighlight:"var(--link, #0c66ff)",controlOutline:"rgba(12, 102, 255, 0.15)",controlOutlineWidth:2,controlInteractiveSize:16,controlItemBgHover:"var(--bg-hover, #F3F4F6)",controlItemBgActive:"var(--accent-subtle, #dbeafe)",controlItemBgActiveHover:"var(--accent-subtle, #dbeafe)",controlItemBgActiveDisabled:"var(--bg-tertiary, #F3F4F6)",controlTmpOutline:"rgba(12, 102, 255, 0.08)",screenXS:480,screenSM:576,screenMD:768,screenLG:992,screenXL:1200,screenXXL:1600}}function W(){return{Table:{headerBg:"var(--bg-tertiary)",headerColor:"var(--text-primary)",borderColor:"var(--border-primary)",colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",rowHoverBg:"var(--bg-hover)",rowSelectedBg:"var(--accent-subtle)",rowSelectedHoverBg:"var(--accent-subtle)",rowExpandedBg:"var(--bg-secondary)",bodySortBg:"var(--bg-tertiary)",headerSortActiveBg:"var(--bg-tertiary)",headerSortHoverBg:"var(--bg-tertiary)",headerFilterHoverBg:"var(--bg-tertiary)",fixedHeaderSortActiveBg:"var(--bg-tertiary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",expandIconBg:"var(--bg-secondary)",footerBg:"var(--bg-tertiary)",footerColor:"var(--text-primary)",selectionColumnWidth:60,stickyScrollBarBg:"var(--bg-tertiary)",stickyScrollBarBorderRadius:4},Tag:{defaultBg:"var(--bg-tertiary)",defaultColor:"var(--text-primary)",colorBorder:"var(--border-primary)",colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)"},Badge:{colorError:"var(--error)",colorSuccess:"var(--success)",colorWarning:"var(--warning)",colorInfo:"var(--info)",colorText:"var(--text-primary)"},Alert:{colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)",colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",colorSuccessBg:"var(--bg-tertiary)",colorErrorBg:"var(--bg-tertiary)",colorWarningBg:"var(--bg-tertiary)",colorInfoBg:"var(--bg-tertiary)",colorSuccessBorder:"var(--success)",colorErrorBorder:"var(--error)",colorWarningBorder:"var(--warning)",colorInfoBorder:"var(--info)"},Card:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBorderSecondary:"var(--border-primary)",headerBg:"var(--bg-secondary)",actionsBg:"var(--bg-tertiary)",extraColor:"var(--text-secondary)"},Descriptions:{colorText:"var(--text-primary)",colorTextLabel:"var(--text-secondary)",colorBorder:"var(--border-primary)"},Button:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",colorPrimaryActive:"var(--link-hover)",primaryColor:"var(--text-inverse)",primaryShadow:"0 2px 0 rgba(12, 102, 255, 0.15)",defaultBg:"var(--bg-secondary)",defaultColor:"var(--text-primary)",defaultBorderColor:"var(--border-primary)",defaultShadow:"0 2px 0 rgba(0, 0, 0, 0.015)",defaultHoverBg:"var(--bg-hover)",defaultHoverColor:"var(--text-primary)",defaultHoverBorderColor:"var(--border-secondary)",defaultActiveBg:"var(--bg-hover)",defaultActiveColor:"var(--text-primary)",defaultActiveBorderColor:"var(--border-secondary)",ghostBg:"transparent",defaultGhostColor:"var(--text-primary)",defaultGhostBorderColor:"var(--border-primary)",borderColorDisabled:"var(--border-primary)",colorBgContainerDisabled:"var(--bg-tertiary)",textTextColor:"var(--text-secondary)",textTextHoverColor:"var(--text-primary)",textTextActiveColor:"var(--text-primary)",textHoverBg:"var(--accent-subtle)",linkHoverBg:"transparent",colorLink:"var(--link)",colorLinkHover:"var(--link-hover)",colorLinkActive:"var(--link-hover)",solidTextColor:"var(--text-primary)",dangerColor:"var(--error)",dangerShadow:"0 2px 0 rgba(220, 38, 38, 0.1)",colorErrorBg:"transparent",colorErrorBgHover:"var(--bg-hover)",colorErrorBorder:"var(--error)",colorErrorBorderHover:"var(--error)",colorErrorHover:"var(--error)",colorErrorActive:"var(--error)"},Input:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorTextPlaceholder:"var(--text-tertiary)",hoverBorderColor:"var(--border-secondary)",activeBorderColor:"var(--link)",activeShadow:"0 0 0 3px rgba(12, 102, 255, 0.12)",errorActiveShadow:"0 0 0 2px rgba(220, 38, 38, 0.1)",warningActiveShadow:"0 0 0 2px rgba(245, 158, 11, 0.1)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Select:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",colorTextPlaceholder:"var(--text-tertiary)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",optionSelectedBg:"var(--accent-subtle)",optionSelectedColor:"var(--link)",optionActiveBg:"var(--bg-hover)",optionSelectedFontWeight:600,multipleItemBg:"var(--bg-tertiary)",multipleItemBorderColor:"var(--border-primary)",multipleItemColorDisabled:"var(--disabled)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",selectorBg:"var(--bg-secondary)"},Dropdown:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorTextDisabled:"var(--disabled)",controlItemBgHover:"var(--bg-hover)",controlItemBgActive:"var(--accent-subtle)",controlItemBgActiveHover:"var(--accent-subtle)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",colorBgContainer:"var(--bg-secondary)",colorSplit:"var(--border-primary)",paddingBlock:8,controlPaddingHorizontal:12},Menu:{colorText:"var(--text-primary)",colorTextSecondary:"var(--text-secondary)",colorBgContainer:"var(--bg-sidebar)",colorBorder:"var(--border-primary)",colorSplit:"var(--border-primary)",itemColor:"var(--text-primary)",itemBg:"var(--bg-secondary)",itemHoverBg:"var(--bg-hover)",itemHoverColor:"var(--link)",itemSelectedBg:"transparent",itemSelectedColor:"var(--link)",itemActiveBg:"transparent",darkItemBg:"var(--bg-secondary)",darkItemColor:"var(--text-primary)",darkItemHoverBg:"var(--bg-hover)",darkItemSelectedBg:"transparent",darkItemSelectedColor:"var(--link)",darkSubMenuItemBg:"var(--bg-secondary)",subMenuItemBg:"var(--bg-secondary)",popupBg:"var(--bg-secondary)",colorPrimary:"var(--link)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",groupTitleColor:"var(--text-tertiary)",groupTitleFontSize:11,itemBorderRadius:8,subMenuItemBorderRadius:6,itemPaddingInline:12},Tabs:{colorText:"var(--text-secondary)",colorTextHeading:"var(--text-primary)",colorBorder:"var(--border-primary)",colorBorderSecondary:"var(--border-primary)",colorPrimary:"var(--link)",itemHoverColor:"var(--link)",itemSelectedColor:"var(--link)",itemActiveColor:"var(--link)",inkBarColor:"var(--link)"},Modal:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",headerBg:"var(--bg-secondary)",footerBg:"var(--bg-tertiary)",contentBg:"var(--bg-secondary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Drawer:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Popover:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)"},Tooltip:{colorText:"var(--text-primary)",colorBgSpotlight:"var(--bg-secondary)",colorTextLightSolid:"var(--text-primary)"},List:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBorder:"var(--border-primary)",colorSplit:"var(--border-primary)",metaMarginBottom:8,avatarMarginRight:16},Switch:{colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)"},Radio:{colorPrimary:"var(--link)",colorText:"var(--text-primary)",buttonCheckedBg:"var(--link)",buttonCheckedBgDisabled:"var(--disabled)",buttonColor:"var(--text-primary)",buttonSolidCheckedColor:"var(--text-inverse)",buttonSolidCheckedBg:"var(--link)",buttonSolidCheckedHoverBg:"var(--link-hover)",buttonSolidCheckedActiveBg:"var(--link-hover)"},Checkbox:{colorPrimary:"var(--link)",colorText:"var(--text-primary)"},DatePicker:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",colorTextPlaceholder:"var(--text-tertiary)",colorTextDisabled:"var(--disabled)",colorLink:"var(--link)",colorLinkHover:"var(--link-hover)",cellHoverBg:"var(--bg-hover)",cellActiveWithRangeBg:"var(--accent-subtle)",cellBgDisabled:"var(--bg-tertiary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Form:{colorText:"var(--text-primary)",colorTextLabel:"var(--text-secondary)",colorError:"var(--error)",colorWarning:"var(--warning)"},Pagination:{colorText:"var(--text-primary)",colorTextDisabled:"var(--disabled)",colorBgContainer:"var(--bg-secondary)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",itemBg:"var(--bg-secondary)",itemActiveBg:"var(--link)",itemActiveBgDisabled:"var(--bg-tertiary)",itemInputBg:"var(--bg-secondary)",itemLinkBg:"var(--bg-secondary)",colorBgTextHover:"var(--bg-hover)"},Steps:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)",colorPrimary:"var(--link)",colorBorder:"var(--border-primary)"},Breadcrumb:{colorText:"var(--text-secondary)",colorTextDescription:"var(--text-tertiary)",linkColor:"var(--link)",linkHoverColor:"var(--link-hover)",separatorColor:"var(--text-tertiary)"},Progress:{colorText:"var(--text-primary)",colorSuccess:"var(--success)",colorError:"var(--error)",remainingColor:"var(--bg-tertiary)"},Skeleton:{colorFill:"var(--bg-tertiary)",colorFillContent:"var(--bg-hover)"},Spin:{colorPrimary:"var(--link)",colorBgContainer:"var(--bg-secondary)"},Divider:{colorSplit:"var(--border-primary)",colorText:"var(--text-secondary)"},Layout:{headerBg:"var(--bg-secondary)",bodyBg:"var(--bg-primary)",triggerBg:"var(--bg-tertiary)",colorText:"var(--text-primary)"},Collapse:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBorder:"var(--border-primary)",colorBgContainer:"var(--bg-secondary)",headerBg:"var(--bg-tertiary)"},Carousel:{colorBgContainer:"var(--bg-secondary)",dotActiveWidth:24},Anchor:{colorPrimary:"var(--link)",colorText:"var(--text-secondary)",linkPaddingBlock:4},Timeline:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)",tailColor:"var(--border-primary)",dotBg:"var(--bg-secondary)"},Transfer:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",controlItemBgActive:"var(--bg-hover)"},Tree:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorPrimary:"var(--link)",nodeHoverBg:"var(--bg-hover)",nodeSelectedBg:"var(--accent-subtle)"},TreeSelect:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",nodeHoverBg:"var(--bg-hover)",nodeSelectedBg:"var(--accent-subtle)"},Cascader:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",optionSelectedBg:"var(--bg-hover)"},Segmented:{colorText:"var(--text-primary)",colorTextLabel:"var(--text-secondary)",colorBgLayout:"var(--bg-tertiary)",itemSelectedBg:"var(--bg-secondary)",itemSelectedColor:"var(--link)",itemHoverBg:"var(--bg-hover)"},Rate:{colorText:"var(--warning)"},Slider:{colorPrimary:"var(--link)",colorPrimaryBorder:"var(--link)",trackBg:"var(--bg-tertiary)",trackHoverBg:"var(--bg-hover)"},Upload:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)",colorBorder:"var(--border-primary)",colorFillAlter:"var(--bg-tertiary)",colorPrimary:"var(--link)"},Calendar:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",itemActiveBg:"var(--accent-subtle)"},Image:{colorTextLightSolid:"var(--text-primary)",colorBgMask:"rgba(0, 0, 0, 0.45)"},Statistic:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)"},Result:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorTextDescription:"var(--text-secondary)"},Empty:{colorText:"var(--text-secondary)",colorTextDescription:"var(--text-tertiary)"},Message:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",contentBg:"var(--bg-secondary)",contentPadding:"10px 16px",colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)"},Notification:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)"}}}o.d(e,{PageContextProvider:()=>d,getAntDesignComponents:()=>W,getAntDesignTokens:()=>R,useData:()=>b,useElapsedTimer:()=>S,useEventBus:()=>y,useInfiniteData:()=>k,useMutateData:()=>m,useNavigation:()=>w,useNotification:()=>A,usePage:()=>u,usePageContext:()=>g,usePermissions:()=>H,useSSE:()=>B,useTheme:()=>L,useWebSocket:()=>T})}}]);
1
+ "use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[370],{3481(r,e,o){o.r(e);var t=o(1913),a=o(4552),n=o(9044),c=o(3621),i=o(5154),l=o(4712),v=o(2984),s=(0,t.createContext)(null);function d({children:r,value:e}){return(0,a.jsx)(s.Provider,{value:e,children:r})}function g(){let r=(0,t.useContext)(s);if(!r)throw Error("usePage() must be used inside a PageContextProvider (are you inside a Studio page?)");return r}function u(){return g()}function y(){let r=(0,n.useEventBusContext)(),{pluginId:e,pageId:o}=g(),a=(0,t.useRef)([]);return(0,t.useEffect)(()=>()=>{for(let r of a.current)r();a.current=[]},[]),{publish:(0,t.useCallback)((t,a)=>{r.publish(t,a,e,o)},[r,e,o]),subscribe:(0,t.useCallback)((t,n)=>{let c=r.subscribe(t,n,e,o);return a.current.push(c),c},[r,e,o])}}function b(r,e){let o=function(r,e){if(!e||0===Object.keys(e).length)return r;let o=new URLSearchParams;for(let[r,t]of Object.entries(e))null!=t&&o.set(r,String(t));let t=r.includes("?")?"&":"?";return`${r}${t}${o.toString()}`}(r,e?.params),t=(0,c.useQuery)({queryKey:["studio-data",o],queryFn:()=>p(o),enabled:e?.enabled,staleTime:e?.staleTime,refetchInterval:e?.pollingMs||void 0,select:e?.select});return{data:t.data,isLoading:t.isLoading,isError:t.isError,error:t.error,refetch:t.refetch,isFetching:t.isFetching}}function m(r,e="POST"){let o="string"==typeof e?{method:e}:e,t=o.method??"POST",a=o.mapBody,n=(0,c.useMutation)({mutationFn:async e=>{let o="function"==typeof r?r(e):r,n=a?a(e):e,c=null!=n,i=await fetch(`${x()}/api${o}`,{method:t,headers:c?{"Content-Type":"application/json"}:{},body:c?JSON.stringify(n):void 0});if(!i.ok)throw Error(`${t} ${o} failed: ${i.status} ${i.statusText}`);let l=await i.json();return l&&"object"==typeof l&&"ok"in l&&"data"in l?l.data:l}});return{mutate:n.mutate,mutateAsync:n.mutateAsync,isLoading:n.isPending,isError:n.isError,error:n.error,data:n.data}}function x(){if("u">typeof window){let r=window.__KB_STUDIO_CONFIG__,e=r?.KB_API_BASE_URL;if(e)try{return new URL(e).origin}catch{}}return""}async function p(r){let e=await fetch(`${x()}/api${r}`);if(!e.ok)throw Error(`GET ${r} failed: ${e.status} ${e.statusText}`);let o=await e.json();return o&&"object"==typeof o&&"ok"in o&&"data"in o?o.data:o}function B(r,e={}){let{events:o="message",doneEvent:a,terminalEvents:n,enabled:c=!0,reconnect:i=!1,maxReconnects:l=5,reconnectIntervalMs:v=2e3,maxEvents:s=0,parse:d=f,params:g,onEvent:u,onOpen:y,onError:b,onDone:m}=e,[x,p]=(0,t.useState)([]),[S,h]=(0,t.useState)(void 0),[k,C]=(0,t.useState)(null),[T,F]=(0,t.useState)(!1),[E,H]=(0,t.useState)("closed"),[w,A]=(0,t.useState)(!1),[P,I]=(0,t.useState)(0),D=(0,t.useRef)(null),L=(0,t.useRef)(null),R=(0,t.useRef)(!1),W=(0,t.useRef)(!1),$=(0,t.useRef)(u),M=(0,t.useRef)(y),O=(0,t.useRef)(b),_=(0,t.useRef)(m),N=(0,t.useRef)(d);$.current=u,M.current=y,O.current=b,_.current=m,N.current=d;let z=JSON.stringify(o),G=JSON.stringify(g),j=JSON.stringify(n),X=(0,t.useCallback)(()=>{R.current=!0,L.current&&(clearTimeout(L.current),L.current=null),D.current&&(D.current.close(),D.current=null),F(!1),H("closed"),A(!0)},[]),U=(0,t.useCallback)(()=>{p([]),h(void 0)},[]);return(0,t.useEffect)(()=>{if(!r||!c){D.current&&(D.current.close(),D.current=null),F(!1);return}R.current=!1,W.current=!1,p([]),h(void 0),C(null),A(!1),I(0),H("connecting");let e=0;return!function t(){let c=new EventSource(function(r,e){let o=r.startsWith("http")?r:`/api${r}`;if(!e||0===Object.keys(e).length)return o;let t=new URLSearchParams;for(let[r,o]of Object.entries(e))null!=o&&t.set(r,String(o));let a=o.includes("?")?"&":"?";return`${o}${a}${t.toString()}`}(r,g));D.current=c;let d=Array.isArray(o)?o:[o],u=r=>{try{let e=N.current(r.data);h(e),p(r=>{let o=[...r,e];return s>0&&o.length>s?o.slice(-s):o}),$.current?.(e)}catch(e){let r=e instanceof Error?e:Error("Failed to parse SSE event data");C(r),O.current?.(r)}};for(let r of d)c.addEventListener(r,u);for(let r of[...n??[],...a?[a]:[]])c.addEventListener(r,()=>{W.current=!0,c.close(),D.current=null,F(!1),H("closed"),A(!0),_.current?.()});c.onopen=()=>{e=0,I(0),F(!0),H("live"),C(null),M.current?.()},c.onerror=()=>{if(c.close(),D.current=null,F(!1),R.current||W.current)return void H("closed");let r=Error("SSE connection lost");C(r),O.current?.(r),i&&e<l?(I(++e),H("reconnecting"),L.current=setTimeout(t,v*Math.pow(2,e-1))):H("closed")}}(),()=>{R.current=!0,L.current&&(clearTimeout(L.current),L.current=null),D.current&&(D.current.close(),D.current=null)}},[r,c,a,i,l,v,s,z,G,j]),{events:x,latest:S,isConnected:T,connectionStatus:E,closedClean:w,error:k,close:X,clear:U,reconnectCount:P}}function f(r){return JSON.parse(r)}function S(r){let[e,o]=(0,t.useState)(()=>r?h(r):null);return(0,t.useEffect)(()=>{if(!r)return void o(null);o(h(r));let e=setInterval(()=>{o(h(r))},1e3);return()=>clearInterval(e)},[r]),e}function h(r){let e=Math.max(0,Math.floor((Date.now()-new Date(r).getTime())/1e3));if(e<60)return`${e}s`;let o=Math.floor(e/60);if(o<60)return`${o}m ${(e%60).toString().padStart(2,"0")}s`;let t=Math.floor(o/60);return`${t}h ${(o%60).toString().padStart(2,"0")}m`}function k(r,e){let{getNextCursor:o,params:t,enabled:a,staleTime:n,cursorParam:i="cursor",initialCursor:l}=e,v=(0,c.useInfiniteQuery)({queryKey:["studio-infinite",r,t],queryFn:async({pageParam:e})=>C(function(r,e,o,t){let a=new URLSearchParams;if(e)for(let[r,o]of Object.entries(e))null!=o&&a.set(r,String(o));null!=t&&a.set(o,String(t));let n=a.toString(),c=r.startsWith("http")?r:`/api${r}`;return n?`${c}?${n}`:c}(r,t,i,e)),initialPageParam:l,getNextPageParam:o,enabled:a,staleTime:n}),s=v.data?.pages??[],d=s.flatMap(r=>Array.isArray(r)?r:[r]);return{pages:s,data:d,isLoading:v.isLoading,isFetching:v.isFetching,isFetchingNextPage:v.isFetchingNextPage,hasNextPage:v.hasNextPage,fetchNextPage:v.fetchNextPage,error:v.error,isError:v.isError,refetch:v.refetch}}async function C(r){let e=await fetch(r);if(!e.ok)throw Error(`GET ${r} failed: ${e.status} ${e.statusText}`);let o=await e.json();return o&&"object"==typeof o&&"ok"in o&&"data"in o?o.data:o}function T(r,e={}){let{enabled:o=!0,reconnect:a=!1,maxReconnects:n=5,reconnectIntervalMs:c=2e3,protocols:i,parse:l=F,serialize:v=E,maxMessages:s=100,onMessage:d,onOpen:g,onClose:u,onError:y}=e,[b,m]=(0,t.useState)([]),[x,p]=(0,t.useState)(void 0),[B,f]=(0,t.useState)("disconnected"),[S,h]=(0,t.useState)(null),[k,C]=(0,t.useState)(0),H=(0,t.useRef)(null),w=(0,t.useRef)(null),A=(0,t.useRef)(!1),P=(0,t.useRef)(d),I=(0,t.useRef)(g),D=(0,t.useRef)(u),L=(0,t.useRef)(y),R=(0,t.useRef)(l),W=(0,t.useRef)(v);P.current=d,I.current=g,D.current=u,L.current=y,R.current=l,W.current=v;let $=(0,t.useCallback)(()=>{w.current&&(clearTimeout(w.current),w.current=null),H.current&&(H.current.close(),H.current=null)},[]),M=(0,t.useCallback)(()=>{if(!r)return;$(),A.current=!1,f("connecting"),h(null);let e=0;!function o(){let t=function(r){if(r.startsWith("ws://")||r.startsWith("wss://"))return r;let e=r.startsWith("/")?r:`/${r}`;if("u">typeof window){let r=window.__KB_STUDIO_CONFIG__,o=r?.KB_API_BASE_URL;if(o)try{let r=new URL(o).origin,t=r.startsWith("https")?"wss:":"ws:";return`${t}//${new URL(r).host}${e}`}catch{}}let o="https:"===window.location.protocol?"wss:":"ws:";return`${o}//${window.location.host}${e}`}(r),l=i?new WebSocket(t,i):new WebSocket(t);H.current=l,l.onopen=r=>{e=0,C(0),f("connected"),h(null),I.current?.(r)},l.onmessage=r=>{try{let e=R.current(r.data);p(e),m(r=>{let o=[...r,e];return s>0&&o.length>s?o.slice(-s):o}),P.current?.(e)}catch{}},l.onclose=r=>{H.current=null,f("disconnected"),D.current?.(r),!A.current&&a&&e<n&&1e3!==r.code&&(C(++e),w.current=setTimeout(o,c*Math.pow(2,e-1)))},l.onerror=r=>{f("error"),h(r),L.current?.(r)}}()},[r,i,a,n,c,s,$]),O=(0,t.useCallback)((r,e)=>{A.current=!0,w.current&&(clearTimeout(w.current),w.current=null),H.current&&(H.current.close(r,e),H.current=null),f("disconnected")},[]),_=(0,t.useCallback)(r=>{H.current?.readyState===WebSocket.OPEN&&H.current.send(W.current(r))},[]),N=(0,t.useCallback)(r=>{H.current?.readyState===WebSocket.OPEN&&H.current.send(r)},[]),z=(0,t.useCallback)(()=>{m([]),p(void 0)},[]);return(0,t.useEffect)(()=>{if(!r||!o){$(),f("disconnected");return}return m([]),p(void 0),M(),()=>{A.current=!0,$()}},[r,o]),{send:_,sendRaw:N,messages:b,latest:x,status:B,isConnected:"connected"===B,error:S,connect:M,disconnect:O,clear:z,reconnectCount:k}}function F(r){return JSON.parse(r)}function E(r){return JSON.stringify(r)}function H(){let{permissions:r}=g();return{hasPermission:(0,t.useCallback)(e=>r.includes(e),[r]),permissions:r}}function w(){let r=(0,i.useNavigate)(),e=(0,i.useLocation)(),o=(0,t.useCallback)(e=>r(e),[r]),a=(0,t.useCallback)(()=>r(-1),[r]),n=(0,t.useCallback)(r=>window.open(r,"_blank","noopener"),[]);return{navigate:o,currentPath:e.pathname,goBack:a,openExternal:n}}function A(){let r=(0,t.useCallback)(r=>{l.notification[r.type]({message:r.message,description:r.description,duration:r.duration??4.5})},[]),e=(0,t.useCallback)((e,o)=>r({type:"success",message:e,description:o}),[r]),o=(0,t.useCallback)((e,o)=>r({type:"error",message:e,description:o}),[r]),a=(0,t.useCallback)((e,o)=>r({type:"warning",message:e,description:o}),[r]),n=(0,t.useCallback)((e,o)=>r({type:"info",message:e,description:o}),[r]);return{notify:r,success:e,error:o,warning:a,info:n}}var P={bgPrimary:v.lightSemanticColors["bg-primary"],bgSecondary:v.lightSemanticColors["bg-secondary"],bgTertiary:v.lightSemanticColors["bg-tertiary"],textPrimary:v.lightSemanticColors["text-primary"],textSecondary:v.lightSemanticColors["text-secondary"],textTertiary:v.lightSemanticColors["text-tertiary"],textInverse:v.lightSemanticColors["text-inverse"],borderPrimary:v.lightSemanticColors["border-primary"],borderSecondary:v.lightSemanticColors["border-secondary"],link:v.lightSemanticColors.link,linkHover:v.lightSemanticColors["link-hover"],accentSubtle:v.lightSemanticColors["accent-subtle"],success:v.lightSemanticColors.success,warning:v.lightSemanticColors.warning,error:v.lightSemanticColors.error,info:v.lightSemanticColors.info,disabled:v.lightSemanticColors.disabled,shadow:v.lightSemanticColors.shadow},I={bgPrimary:v.darkSemanticColors["bg-primary"],bgSecondary:v.darkSemanticColors["bg-secondary"],bgTertiary:v.darkSemanticColors["bg-tertiary"],textPrimary:v.darkSemanticColors["text-primary"],textSecondary:v.darkSemanticColors["text-secondary"],textTertiary:v.darkSemanticColors["text-tertiary"],textInverse:v.darkSemanticColors["text-inverse"],borderPrimary:v.darkSemanticColors["border-primary"],borderSecondary:v.darkSemanticColors["border-secondary"],link:v.darkSemanticColors.link,linkHover:v.darkSemanticColors["link-hover"],accentSubtle:v.darkSemanticColors["accent-subtle"],success:v.darkSemanticColors.success,warning:v.darkSemanticColors.warning,error:v.darkSemanticColors.error,info:v.darkSemanticColors.info,disabled:v.darkSemanticColors.disabled,shadow:v.darkSemanticColors.shadow};function D(){return"u"<typeof document?"light":document.documentElement.classList.contains("dark")?"dark":"light"}function L(){let{token:r}=l.theme.useToken(),[e,o]=t.useState(D);return t.useEffect(()=>{let r=new MutationObserver(()=>{o(D())});return r.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>r.disconnect()},[]),{mode:e,antdToken:r,semantic:"dark"===e?I:P,tokens:{colors:v.colors,spacing:v.spacing,typography:v.typography,radius:v.radius,shadows:v.shadows}}}function R(){return{colorPrimary:"var(--link, #0c66ff)",colorPrimaryHover:"var(--link-hover, #0050cc)",colorPrimaryActive:"var(--link-hover, #0050cc)",colorPrimaryBg:"var(--accent-subtle, #dbeafe)",colorPrimaryBgHover:"var(--accent-subtle, #dbeafe)",colorPrimaryBorder:"var(--link, #0c66ff)",colorPrimaryBorderHover:"var(--link-hover, #0050cc)",colorPrimaryText:"var(--link, #0c66ff)",colorPrimaryTextHover:"var(--link-hover, #0050cc)",colorPrimaryTextActive:"var(--link-hover, #0050cc)",colorSuccess:"var(--success, #16A34A)",colorSuccessHover:"var(--success, #16A34A)",colorSuccessActive:"var(--success, #16A34A)",colorSuccessBg:"var(--bg-tertiary, #F3F4F6)",colorSuccessBgHover:"var(--bg-tertiary, #F3F4F6)",colorSuccessBorder:"var(--success, #16A34A)",colorSuccessBorderHover:"var(--success, #16A34A)",colorSuccessText:"var(--success, #16A34A)",colorSuccessTextHover:"var(--success, #16A34A)",colorSuccessTextActive:"var(--success, #16A34A)",colorWarning:"var(--warning, #F59E0B)",colorWarningHover:"var(--warning, #F59E0B)",colorWarningActive:"var(--warning, #F59E0B)",colorWarningBg:"var(--bg-tertiary, #F3F4F6)",colorWarningBgHover:"var(--bg-tertiary, #F3F4F6)",colorWarningBorder:"var(--warning, #F59E0B)",colorWarningBorderHover:"var(--warning, #F59E0B)",colorWarningText:"var(--warning, #F59E0B)",colorWarningTextHover:"var(--warning, #F59E0B)",colorWarningTextActive:"var(--warning, #F59E0B)",colorWarningOutline:"rgba(245, 158, 11, 0.2)",colorError:"var(--error, #DC2626)",colorErrorHover:"var(--error, #DC2626)",colorErrorActive:"var(--error, #DC2626)",colorErrorBg:"var(--bg-tertiary, #F3F4F6)",colorErrorBgHover:"var(--bg-tertiary, #F3F4F6)",colorErrorBorder:"var(--error, #DC2626)",colorErrorBorderHover:"var(--error, #DC2626)",colorErrorText:"var(--error, #DC2626)",colorErrorTextHover:"var(--error, #DC2626)",colorErrorTextActive:"var(--error, #DC2626)",colorErrorOutline:"rgba(220, 38, 38, 0.2)",colorInfo:"var(--info, #0EA5E9)",colorInfoHover:"var(--info, #0EA5E9)",colorInfoActive:"var(--info, #0EA5E9)",colorInfoBg:"var(--bg-tertiary, #F3F4F6)",colorInfoBgHover:"var(--bg-tertiary, #F3F4F6)",colorInfoBorder:"var(--info, #0EA5E9)",colorInfoBorderHover:"var(--info, #0EA5E9)",colorInfoText:"var(--info, #0EA5E9)",colorInfoTextHover:"var(--info, #0EA5E9)",colorInfoTextActive:"var(--info, #0EA5E9)",colorBgContainer:"var(--bg-secondary, #FFFFFF)",colorBgBase:"var(--bg-primary, #F9FAFB)",colorBgElevated:"var(--bg-secondary, #FFFFFF)",colorBgLayout:"var(--bg-primary, #F9FAFB)",colorBgSpotlight:"var(--bg-tertiary, #F3F4F6)",colorBgMask:"rgba(0, 0, 0, 0.45)",colorBgTextHover:"var(--bg-hover, #F3F4F6)",colorBgTextActive:"var(--bg-hover, #F3F4F6)",colorBgContainerDisabled:"var(--bg-tertiary, #F3F4F6)",colorText:"var(--text-primary, #111827)",colorTextBase:"var(--text-primary, #111827)",colorTextSecondary:"var(--text-secondary, #6B7280)",colorTextTertiary:"var(--text-tertiary, #6B7280)",colorTextQuaternary:"var(--text-tertiary, #6B7280)",colorTextDisabled:"var(--disabled, #9CA3AF)",colorTextHeading:"var(--text-primary, #111827)",colorTextLabel:"var(--text-secondary, #6B7280)",colorTextDescription:"var(--text-secondary, #6B7280)",colorTextPlaceholder:"var(--text-tertiary, #6B7280)",colorTextLightSolid:"var(--text-inverse, #FFFFFF)",colorBorder:"var(--border-primary, #E5E7EB)",colorBorderSecondary:"var(--border-secondary, #D4D4D4)",colorBorderBg:"var(--bg-secondary, #FFFFFF)",colorSplit:"var(--border-primary, #E5E7EB)",colorFill:"var(--bg-tertiary, #F3F4F6)",colorFillSecondary:"var(--bg-tertiary, #F3F4F6)",colorFillTertiary:"var(--bg-primary, #F9FAFB)",colorFillQuaternary:"var(--bg-primary, #F9FAFB)",colorFillContent:"var(--bg-hover, #F3F4F6)",colorFillContentHover:"var(--bg-hover, #F3F4F6)",colorFillAlter:"var(--bg-tertiary, #F3F4F6)",colorWhite:"#FFFFFF",boxShadow:"0 2px 24px rgba(0,0,0,0.07)",boxShadowSecondary:"0 4px 32px rgba(0,0,0,0.08)",boxShadowTertiary:"0 8px 48px rgba(0,0,0,0.10)",borderRadius:10,borderRadiusLG:16,borderRadiusSM:8,borderRadiusXS:6,borderRadiusOuter:8,controlHeight:36,controlHeightLG:40,controlHeightSM:28,controlHeightXS:22,fontFamily:"var(--font-body, 'Geist Sans', 'Segoe UI', sans-serif)",fontSize:14,fontSizeLG:16,fontSizeSM:12,fontSizeXL:20,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,fontSizeIcon:12,fontWeightStrong:600,lineHeight:1.5714285714285714,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,padding:16,paddingLG:24,paddingSM:12,paddingXS:8,paddingXXS:4,margin:16,marginLG:24,marginSM:12,marginXS:8,marginXXS:4,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",colorLink:"var(--link, #0c66ff)",colorLinkHover:"var(--link-hover, #0050cc)",colorLinkActive:"var(--link-hover, #0050cc)",colorIcon:"var(--text-secondary, #6B7280)",colorIconHover:"var(--text-primary, #111827)",colorHighlight:"var(--link, #0c66ff)",controlOutline:"rgba(12, 102, 255, 0.15)",controlOutlineWidth:2,controlInteractiveSize:16,controlItemBgHover:"var(--bg-hover, #F3F4F6)",controlItemBgActive:"var(--accent-subtle, #dbeafe)",controlItemBgActiveHover:"var(--accent-subtle, #dbeafe)",controlItemBgActiveDisabled:"var(--bg-tertiary, #F3F4F6)",controlTmpOutline:"rgba(12, 102, 255, 0.08)",screenXS:480,screenSM:576,screenMD:768,screenLG:992,screenXL:1200,screenXXL:1600}}function W(){return{Table:{headerBg:"var(--bg-tertiary)",headerColor:"var(--text-primary)",borderColor:"var(--border-primary)",colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",rowHoverBg:"var(--bg-hover)",rowSelectedBg:"var(--accent-subtle)",rowSelectedHoverBg:"var(--accent-subtle)",rowExpandedBg:"var(--bg-secondary)",bodySortBg:"var(--bg-tertiary)",headerSortActiveBg:"var(--bg-tertiary)",headerSortHoverBg:"var(--bg-tertiary)",headerFilterHoverBg:"var(--bg-tertiary)",fixedHeaderSortActiveBg:"var(--bg-tertiary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",expandIconBg:"var(--bg-secondary)",footerBg:"var(--bg-tertiary)",footerColor:"var(--text-primary)",selectionColumnWidth:60,stickyScrollBarBg:"var(--bg-tertiary)",stickyScrollBarBorderRadius:4},Tag:{defaultBg:"var(--bg-tertiary)",defaultColor:"var(--text-primary)",colorBorder:"var(--border-primary)",colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)"},Badge:{colorError:"var(--error)",colorSuccess:"var(--success)",colorWarning:"var(--warning)",colorInfo:"var(--info)",colorText:"var(--text-primary)"},Alert:{colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)",colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",colorSuccessBg:"var(--bg-tertiary)",colorErrorBg:"var(--bg-tertiary)",colorWarningBg:"var(--bg-tertiary)",colorInfoBg:"var(--bg-tertiary)",colorSuccessBorder:"var(--success)",colorErrorBorder:"var(--error)",colorWarningBorder:"var(--warning)",colorInfoBorder:"var(--info)"},Card:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBorderSecondary:"var(--border-primary)",headerBg:"var(--bg-secondary)",actionsBg:"var(--bg-tertiary)",extraColor:"var(--text-secondary)"},Descriptions:{colorText:"var(--text-primary)",colorTextLabel:"var(--text-secondary)",colorBorder:"var(--border-primary)"},Button:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",colorPrimaryActive:"var(--link-hover)",primaryColor:"var(--text-inverse)",primaryShadow:"0 2px 0 rgba(12, 102, 255, 0.15)",defaultBg:"var(--bg-secondary)",defaultColor:"var(--text-primary)",defaultBorderColor:"var(--border-primary)",defaultShadow:"0 2px 0 rgba(0, 0, 0, 0.015)",defaultHoverBg:"var(--bg-hover)",defaultHoverColor:"var(--text-primary)",defaultHoverBorderColor:"var(--border-secondary)",defaultActiveBg:"var(--bg-hover)",defaultActiveColor:"var(--text-primary)",defaultActiveBorderColor:"var(--border-secondary)",ghostBg:"transparent",defaultGhostColor:"var(--text-primary)",defaultGhostBorderColor:"var(--border-primary)",borderColorDisabled:"var(--border-primary)",colorBgContainerDisabled:"var(--bg-tertiary)",textTextColor:"var(--text-secondary)",textTextHoverColor:"var(--text-primary)",textTextActiveColor:"var(--text-primary)",textHoverBg:"var(--accent-subtle)",linkHoverBg:"transparent",colorLink:"var(--link)",colorLinkHover:"var(--link-hover)",colorLinkActive:"var(--link-hover)",solidTextColor:"var(--text-primary)",dangerColor:"var(--error)",dangerShadow:"0 2px 0 rgba(220, 38, 38, 0.1)",colorErrorBg:"transparent",colorErrorBgHover:"var(--bg-hover)",colorErrorBorder:"var(--error)",colorErrorBorderHover:"var(--error)",colorErrorHover:"var(--error)",colorErrorActive:"var(--error)"},Input:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorTextPlaceholder:"var(--text-tertiary)",hoverBorderColor:"var(--border-secondary)",activeBorderColor:"var(--link)",activeShadow:"0 0 0 3px rgba(12, 102, 255, 0.12)",errorActiveShadow:"0 0 0 2px rgba(220, 38, 38, 0.1)",warningActiveShadow:"0 0 0 2px rgba(245, 158, 11, 0.1)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Select:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",colorTextPlaceholder:"var(--text-tertiary)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",optionSelectedBg:"var(--accent-subtle)",optionSelectedColor:"var(--link)",optionActiveBg:"var(--bg-hover)",optionSelectedFontWeight:600,multipleItemBg:"var(--bg-tertiary)",multipleItemBorderColor:"var(--border-primary)",multipleItemColorDisabled:"var(--disabled)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",selectorBg:"var(--bg-secondary)"},Dropdown:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorTextDisabled:"var(--disabled)",controlItemBgHover:"var(--bg-hover)",controlItemBgActive:"var(--accent-subtle)",controlItemBgActiveHover:"var(--accent-subtle)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",colorBgContainer:"var(--bg-secondary)",colorSplit:"var(--border-primary)",paddingBlock:8,controlPaddingHorizontal:12},Menu:{colorText:"var(--text-primary)",colorTextSecondary:"var(--text-secondary)",colorBgContainer:"var(--bg-sidebar)",colorBorder:"var(--border-primary)",colorSplit:"var(--border-primary)",itemColor:"var(--text-primary)",itemBg:"var(--bg-secondary)",itemHoverBg:"var(--bg-hover)",itemHoverColor:"var(--link)",itemSelectedBg:"transparent",itemSelectedColor:"var(--link)",itemActiveBg:"transparent",darkItemBg:"var(--bg-secondary)",darkItemColor:"var(--text-primary)",darkItemHoverBg:"var(--bg-hover)",darkItemSelectedBg:"transparent",darkItemSelectedColor:"var(--link)",darkSubMenuItemBg:"var(--bg-secondary)",subMenuItemBg:"var(--bg-secondary)",popupBg:"var(--bg-secondary)",colorPrimary:"var(--link)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",groupTitleColor:"var(--text-tertiary)",groupTitleFontSize:11,itemBorderRadius:8,subMenuItemBorderRadius:6,itemPaddingInline:12},Tabs:{colorText:"var(--text-secondary)",colorTextHeading:"var(--text-primary)",colorBorder:"var(--border-primary)",colorBorderSecondary:"var(--border-primary)",colorPrimary:"var(--link)",itemHoverColor:"var(--link)",itemSelectedColor:"var(--link)",itemActiveColor:"var(--link)",inkBarColor:"var(--link)"},Modal:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",headerBg:"var(--bg-secondary)",footerBg:"var(--bg-tertiary)",contentBg:"var(--bg-secondary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Drawer:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Popover:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)"},Tooltip:{colorText:"var(--text-primary)",colorBgSpotlight:"var(--bg-secondary)",colorTextLightSolid:"var(--text-primary)"},List:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBorder:"var(--border-primary)",colorSplit:"var(--border-primary)",metaMarginBottom:8,avatarMarginRight:16},Switch:{colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)"},Radio:{colorPrimary:"var(--link)",colorText:"var(--text-primary)",buttonCheckedBg:"var(--link)",buttonCheckedBgDisabled:"var(--disabled)",buttonColor:"var(--text-primary)",buttonSolidCheckedColor:"var(--text-inverse)",buttonSolidCheckedBg:"var(--link)",buttonSolidCheckedHoverBg:"var(--link-hover)",buttonSolidCheckedActiveBg:"var(--link-hover)"},Checkbox:{colorPrimary:"var(--link)",colorText:"var(--text-primary)"},DatePicker:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",colorTextPlaceholder:"var(--text-tertiary)",colorTextDisabled:"var(--disabled)",colorLink:"var(--link)",colorLinkHover:"var(--link-hover)",cellHoverBg:"var(--bg-hover)",cellActiveWithRangeBg:"var(--accent-subtle)",cellBgDisabled:"var(--bg-tertiary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Form:{colorText:"var(--text-primary)",colorTextLabel:"var(--text-secondary)",colorError:"var(--error)",colorWarning:"var(--warning)"},Pagination:{colorText:"var(--text-primary)",colorTextDisabled:"var(--disabled)",colorBgContainer:"var(--bg-secondary)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",itemBg:"var(--bg-secondary)",itemActiveBg:"var(--link)",itemActiveBgDisabled:"var(--bg-tertiary)",itemInputBg:"var(--bg-secondary)",itemLinkBg:"var(--bg-secondary)",colorBgTextHover:"var(--bg-hover)"},Steps:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)",colorPrimary:"var(--link)",colorBorder:"var(--border-primary)"},Breadcrumb:{colorText:"var(--text-secondary)",colorTextDescription:"var(--text-tertiary)",linkColor:"var(--link)",linkHoverColor:"var(--link-hover)",separatorColor:"var(--text-tertiary)"},Progress:{colorText:"var(--text-primary)",colorSuccess:"var(--success)",colorError:"var(--error)",remainingColor:"var(--bg-tertiary)"},Skeleton:{colorFill:"var(--bg-tertiary)",colorFillContent:"var(--bg-hover)"},Spin:{colorPrimary:"var(--link)",colorBgContainer:"var(--bg-secondary)"},Divider:{colorSplit:"var(--border-primary)",colorText:"var(--text-secondary)"},Layout:{headerBg:"var(--bg-secondary)",bodyBg:"var(--bg-primary)",triggerBg:"var(--bg-tertiary)",colorText:"var(--text-primary)"},Collapse:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBorder:"var(--border-primary)",colorBgContainer:"var(--bg-secondary)",headerBg:"var(--bg-tertiary)"},Carousel:{colorBgContainer:"var(--bg-secondary)",dotActiveWidth:24},Anchor:{colorPrimary:"var(--link)",colorText:"var(--text-secondary)",linkPaddingBlock:4},Timeline:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)",tailColor:"var(--border-primary)",dotBg:"var(--bg-secondary)"},Transfer:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",controlItemBgActive:"var(--bg-hover)"},Tree:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorPrimary:"var(--link)",nodeHoverBg:"var(--bg-hover)",nodeSelectedBg:"var(--accent-subtle)"},TreeSelect:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",nodeHoverBg:"var(--bg-hover)",nodeSelectedBg:"var(--accent-subtle)"},Cascader:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",optionSelectedBg:"var(--bg-hover)"},Segmented:{colorText:"var(--text-primary)",colorTextLabel:"var(--text-secondary)",colorBgLayout:"var(--bg-tertiary)",itemSelectedBg:"var(--bg-secondary)",itemSelectedColor:"var(--link)",itemHoverBg:"var(--bg-hover)"},Rate:{colorText:"var(--warning)"},Slider:{colorPrimary:"var(--link)",colorPrimaryBorder:"var(--link)",trackBg:"var(--bg-tertiary)",trackHoverBg:"var(--bg-hover)"},Upload:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)",colorBorder:"var(--border-primary)",colorFillAlter:"var(--bg-tertiary)",colorPrimary:"var(--link)"},Calendar:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",itemActiveBg:"var(--accent-subtle)"},Image:{colorTextLightSolid:"var(--text-primary)",colorBgMask:"rgba(0, 0, 0, 0.45)"},Statistic:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)"},Result:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorTextDescription:"var(--text-secondary)"},Empty:{colorText:"var(--text-secondary)",colorTextDescription:"var(--text-tertiary)"},Message:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",contentBg:"var(--bg-secondary)",contentPadding:"10px 16px",colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)"},Notification:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)"}}}o.d(e,{PageContextProvider:()=>d,getAntDesignComponents:()=>W,getAntDesignTokens:()=>R,useData:()=>b,useElapsedTimer:()=>S,useEventBus:()=>y,useInfiniteData:()=>k,useMutateData:()=>m,useNavigation:()=>w,useNotification:()=>A,usePage:()=>u,usePageContext:()=>g,usePermissions:()=>H,useSSE:()=>B,useTheme:()=>L,useWebSocket:()=>T})}}]);