@kb-labs/qa-entry 2.118.2 → 2.119.0-canary.2077501f1

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,5 +1,7 @@
1
- "use strict";(self.rspackChunk_kb_labs_qa_entry=self.rspackChunk_kb_labs_qa_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),g=o(5963),f=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:g="div",className:f,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)(g,{style:x,className:f,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:g}=F(),f=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:g.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:g.colorBorder,overflow:"hidden","--card-accent":f.accent,...m.style},children:[l,t&&(0,i.jsx)(h,{mt:3,pt:3,style:{borderTop:`1px solid ${g.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 q(){return n.theme.useToken()}var K={};function V({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:[K.shimmer,t].filter(Boolean).join(" "),style:{"--shimmer-color-1":r,"--shimmer-color-2":r,"--shimmer-highlight":o,"--shimmer-duration":n,...l},children:e})}function Y({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:J}=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}=J(),g={default:m.colorFillSecondary,info:m.colorInfoBg,success:m.colorSuccessBg,warning:m.colorWarningBg,error:m.colorErrorBg},f={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:g[t],display:"flex",alignItems:"center",justifyContent:"center",color:f[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:g,scroll:f}){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:g,scroll:f})}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:g=!0,chartProps:f}){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:[g&&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]}}]},...f})]})]});return o?(0,i.jsx)(n.Card,{title:o,style:{marginTop:16,...d},children:b()}):(0,i.jsx)("div",{style:d,children:b()})}function eg(e){return(0,i.jsx)(n.Statistic,{...e})}function ef(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,...g}){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,...g})}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 g=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:g,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 g=(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}),g,"right"===s&&(0,i.jsx)(x,{children:a})]}):g}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 eq({items:e,separator:r,className:o}){let t=(0,g.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 eK({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[f,p]=(0,g.useSearchParams)(),x=(0,g.useNavigate)(),h=(0,g.useParams)(),y=e[0]?.key??"",b=o,j=!0===r||"search"===r,I=r&&"object"==typeof r&&"path"===r.mode;j?b=f.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 eV(e){return(0,i.jsx)(eK,{...e})}function eY({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 eJ(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)(eq,{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(),g=a??l;if(s||void 0!==c)return(0,i.jsx)(n.Empty,{description:o,image:c,className:d,style:u,children:g});let 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.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}),g&&(0,i.jsx)(h,{mt:2,children:g})]})})}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(),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.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 rg=n.message;function rf(){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:g,onClose:f,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:g||f,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_qa_entry=self.rspackChunk_kb_labs_qa_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(1882),s=o(5505),c=o(5793),d=o(7346),u=o(1499),m=o(3292),g=o(6911),f=o(5963),p=o(3781),x=o(7e3),{useToken:h}=n.theme;function y({children:e,size:r="base",weight:o="normal",color:n="primary",as:l="span",className:a,style:s}){let{token:c}=h(),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 b({children:e,p:r,pt:o,pr:n,pb:l,pl:a,m:s,mt:c,mr:d,mb:u,ml:m,as:g="div",className:f,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)(g,{style:x,className:f,children:e})}function j({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 I(e){return(0,i.jsx)(n.Typography.Text,{...e})}function k(e){return(0,i.jsx)(n.Typography.Paragraph,{...e})}function S(e){return(0,i.jsx)(n.Typography.Link,{...e})}function v({direction:e="vertical",spacing:r=2,align:o,children:n,as:t,className:l,style:a}){return(0,i.jsx)(j,{direction:"vertical"===e?"column":"row",gap:r,align:o,as:t,className:l,style:a,children:n})}function U(e){return(0,i.jsx)(n.Space,{...e})}function T(e){return(0,i.jsx)(n.Space.Compact,{...e})}function w(e){return(0,i.jsx)(n.Row,{...e})}function C(e){return(0,i.jsx)(n.Col,{...e})}function B(e){return(0,i.jsx)(n.Divider,{...e})}var{useToken:z}=n.theme;function M({variant:e="default",children:r,...o}){let{token:t}=z(),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 $=l.forwardRef(function({variant:e="default",className:r,...o},t){let l=["uiButton_3Yg7B",r].filter(Boolean).join(" ");return(0,i.jsx)(n.Button,{ref:t,type:e,className:l,...o})}),{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:s="default",bordered:c=!0,hoverable:d=!1,loading:u=!1,status:m="default",...g}){let{token:f}=F(),p=E[m],x=e||r?(0,i.jsxs)(b,{children:[e&&("string"==typeof e?(0,i.jsx)(y,{size:"lg",weight:"semibold",as:"div",children:e}):e),r&&(0,i.jsx)(y,{size:"sm",color:"secondary",as:"div",style:{marginTop:f.marginXXS},children:r})]}):void 0;return(0,i.jsxs)(n.Card,{title:x,extra:o,size:s,variant:c?"outlined":"borderless",hoverable:!1,loading:u,...g,className:(0,a.A)("card_0vX7-",d&&"hoverable_NBVEA","default"!==m&&"accented_yICrq",g.className),style:{borderColor:f.colorBorder,overflow:"hidden","--card-accent":p.accent,...g.style},children:[l,t&&(0,i.jsx)(b,{mt:3,pt:3,style:{borderTop:`1px solid ${f.colorBorder}`},children:t})]})}function _({variant:e="default",color:r,children:o,closable:t,onClose:l,icon:s,className:c,onClick:d,...u}){let m=(0,a.A)("kb-ui-tag_D2ji0",d&&"kb-ui-tag--clickable_FGDC8",c);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:s,className:m,onClick:d,...u,children:o})}var{Title:A}=n.Typography,{useToken:D}=n.theme;function R({level:e=1,children:r,subtitle:o,className:n,style:l}){let{token:a}=D();return o?(0,i.jsxs)(b,{mb:o?2:3,children:[(0,i.jsx)(A,{level:e,className:n,style:{margin:0,...l},children:r}),(0,i.jsx)(y,{size:"base",color:"secondary",as:"div",style:{marginTop:t.spacing["1"]},children:o})]}):(0,i.jsx)(A,{level:e,className:n,style:{marginBottom:t.spacing["3"],...l},children:r})}var L={uiIcon:"uiIcon_k0ec4",clickable:"clickable_OssZj","size-xs":"size-xs_M79Cj","size-sm":"size-sm_10jDl","size-base":"size-base_h9Lkp","size-lg":"size-lg_O0C5x","size-xl":"size-xl_WXfPC","size-2xl":"size-2xl_32DCm","color-primary":"color-primary_h3CLu","color-secondary":"color-secondary_4pb5w","color-success":"color-success_O8h6-","color-warning":"color-warning_dYWdv","color-error":"color-error_adjhG","color-info":"color-info_TwzBK","color-inherit":"color-inherit_YCf-Z",spin:"spin_rwV9G",uiIconSpin:"uiIconSpin_JA9h9",disabled:"disabled_sSgts"},N=null;function W(e){N=e}function H({icon:e,name:r,size:o="base",color:n="inherit",spin:t=!1,onClick:s,className:c,style:d}){let u=(0,a.A)(L.uiIcon,"anticon",L[`size-${o}`],L[`color-${n}`],t&&L.spin,s&&L.clickable,c),m=null,g=r||("string"==typeof e?e:null);return(g?N?m=N(g):(console.warn(`Icon "${g}" could not be loaded. Call registerIconRenderer() at app startup.`),m=null):l.isValidElement(e)&&(m=e),m)?(0,i.jsx)("span",{className:u,style:d,onClick:s,role:s?"button":void 0,tabIndex:s?0:void 0,onKeyDown:s?e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),s())}:void 0,children:m}):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 V(){return n.theme.useToken()}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:(0,a.A)("shimmer_Vu6DO",t),style:{"--shimmer-color-1":r,"--shimmer-color-2":r,"--shimmer-highlight":o,"--shimmer-duration":n,...l},children:e})}function K({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 J({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(),g={default:m.colorFillSecondary,info:m.colorInfoBg,success:m.colorSuccessBg,warning:m.colorWarningBg,error:m.colorErrorBg},f={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)(b,{children:[o&&(0,i.jsx)("div",{style:{width:36,height:36,borderRadius:m.borderRadiusSM,backgroundColor:g[t],display:"flex",alignItems:"center",justifyContent:"center",color:f[t],fontSize:16,marginBottom:m.marginSM},children:o}),(0,i.jsx)(y,{size:"sm",color:"secondary",as:"div",children:e}),(0,i.jsx)(n.Tooltip,{title:String(r),mouseEnterDelay:.6,children:(0,i.jsxs)(j,{align:"baseline",gap:2,style:{marginTop:4,overflow:"hidden"},children:[(0,i.jsx)(y,{size:"2xl",weight:"bold",as:"div",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:r}),s&&(0,i.jsx)(y,{size:"base",color:"secondary",style:{flexShrink:0},children:s})]})}),d&&void 0!==a&&(0,i.jsx)(j,{align:"center",gap:1,style:{marginTop:m.marginXS},children:(0,i.jsxs)(y,{size:"sm",style:{color:a>=0?m.colorSuccess:m.colorError},children:["up"===l?"↑":"down"===l?"↓":""," ",Math.abs(a),"%"]})})]})})}function Q({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:g,scroll:f}){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:g,scroll:f})}function Z(){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 ee(e,r){return o=>{let n=String(o[r]??""),t=Object.keys(e)[0];return e[n]||(t?e[t]:"#1890ff")||"#1890ff"}}var{useToken:er}=n.theme;function eo({colors:e,disableAutoColors:r,...o}){let n=function(){let{token:e}=er();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=Z(),a=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)(s.A,{...a,theme:n})}var{useToken:en}=n.theme;function et({colors:e,...r}){let o=function(){let{token:e}=en();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)(c.A,{...r,theme:n})}var{useToken:ei}=n.theme;function el({colors:e,disableAutoColors:r,...o}){let n=function(){let{token:e}=ei();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=Z(),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:ea}=n.theme;function es({colors:e,disableAutoColors:r,...o}){let n=function(){let{token:e}=ea();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=Z(),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)(u.A,{...a,theme:n})}var{useToken:ec}=n.theme;function ed({colors:e,disableAutoColors:r,...o}){let n=function(){let{token:e}=ec();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=Z(),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)(m.A,{...a,theme:n})}function eu({data:e,loading:r=!1,title:o,metrics:t=[],xField:a="date",yField:s="value",colorField:c="category",style:d,height:u=350,showLegend:m=!0,chartProps:f}){let p=Z(),x=l.useMemo(()=>p.colors.slice(0,Math.max(t.length,3)),[p.colors,t.length]),h=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?g(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)(y,{color:"secondary",children:"Loading chart data..."})}),!r&&(!h||0===h.length)&&(0,i.jsx)("div",{style:{textAlign:"center",padding:"40px 0"},children:(0,i.jsx)(y,{color:"secondary",children:"No data available for the selected date range"})}),!r&&h&&h.length>0&&(0,i.jsxs)("div",{children:[m&&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:x[r%x.length]}}),(0,i.jsx)("span",{style:{fontSize:13,fontWeight:500},children:e.label})]},e.label))}):null,(0,i.jsx)(eo,{data:h,xField:a,yField:s,colorField:c,height:u,colors:x,scale:{color:{range:x}},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:x[o>=0?o:0]}}]},...f})]})]});return o?(0,i.jsx)(n.Card,{title:o,style:{marginTop:16,...d},children:b()}):(0,i.jsx)("div",{style:d,children:b()})}function em(e){return(0,i.jsx)(n.Statistic,{...e})}function eg(e){return(0,i.jsx)(n.Statistic.Countdown,{...e})}function ef(e){return(0,i.jsx)(n.Progress,{...e})}function ep(e){return(0,i.jsx)(n.Descriptions,{...e})}function ex(e){return(0,i.jsx)(n.Descriptions.Item,{...e})}function eh(e){return(0,i.jsx)(n.Timeline,{...e})}function ey(e){return(0,i.jsx)(n.Timeline.Item,{...e})}function eb(e){return(0,i.jsx)(n.Tree,{...e})}function ej(e){return(0,i.jsx)(n.Tree.DirectoryTree,{...e})}function eI(e){return(0,i.jsx)(n.Tree.TreeNode,{...e})}function ek(e){return(0,i.jsx)(n.List,{...e})}function eS(e){return(0,i.jsx)(n.List.Item,{...e})}function ev(e){return(0,i.jsx)(n.List.Item.Meta,{...e})}function eU({value:e,defaultValue:r,placeholder:o,disabled:t,prefix:l,suffix:a,maxLength:s,showCount:c,allowClear:d,onChange:u,onPressEnter:m,...g}){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,...g})}function eT(e){return(0,i.jsx)(n.Input.Password,{...e})}function ew(e){return(0,i.jsx)(n.Input.TextArea,{...e})}function eC(e){return(0,i.jsx)(n.Input.Search,{...e})}function eB({options:e=[],value:r,defaultValue:o,placeholder:t,disabled:l,loading:a,allowClear:s,showSearch:c,mode:d,onChange:u,...m}){let g=e.map(e=>({label:e.icon||e.description?(0,i.jsxs)(j,{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:g,value:r,defaultValue:o,placeholder:t,disabled:l,loading:a,allowClear:s,showSearch:c,mode:d,onChange:u,...m})}function ez({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 eM(e){return(0,i.jsx)(n.Form.Item,{...e})}var e$=n.Form.useForm;function eF(e){return(0,i.jsx)(n.Form.List,{...e})}function eE({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 eP({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)(b,{children:e.map((r,o)=>(0,i.jsxs)(b,{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)(y,{size:"sm",color:"secondary",as:"div",style:{marginLeft:t.spacing["6"],marginTop:t.spacing["1"]},children:r.description})]},r.value))})})}function e_({checked:e,defaultChecked:r,disabled:o,loading:t,size:l="default",label:a,labelPosition:s="right",checkedChildren:c,unCheckedChildren:d,onChange:u,...m}){let g=(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)(j,{align:"center",gap:2,children:["left"===s&&(0,i.jsx)(y,{children:a}),g,"right"===s&&(0,i.jsx)(y,{children:a})]}):g}function eA({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 eD({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 eR(e){return(0,i.jsx)(n.DatePicker.RangePicker,{...e})}function eL(e){return(0,i.jsx)(n.InputNumber,{...e})}function eN(e){return(0,i.jsx)(n.Radio,{...e})}function eW(e){return(0,i.jsx)(n.Radio.Group,{...e})}function eH(e){return(0,i.jsx)(n.Upload,{...e})}function eG(e){return(0,i.jsx)(n.Upload.Dragger,{...e})}function eO(e){return(0,i.jsx)(n.Slider,{...e})}function eX({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 k=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:k,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 eK({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 eJ(e){return(0,i.jsx)(n.Dropdown.Button,{...e})}function eQ(e){return(0,i.jsx)(n.Segmented,{...e})}function eZ(e){return(0,i.jsx)(n.Steps,{...e})}function e0(e){return(0,i.jsx)(n.Menu,{...e})}var{useToken:e1}=n.theme;function e2({children:e,width:r="default",variant:o="default",className:n,style:t}){let{token:l}=e1(),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)(b,{as:"main",className:n,style:s,children:e})}var{useToken:e6}=n.theme;function e4({title:e,subtitle:r,breadcrumb:o,actions:n,className:l,style:a}){let{token:s}=e6(),c={borderBottom:`1px solid ${s.colorBorder}`,paddingBottom:t.spacing["4"],marginBottom:t.spacing["6"],...a};return(0,i.jsxs)(b,{className:l,style:c,children:[o&&(0,i.jsx)(b,{mb:2,children:o}),(0,i.jsxs)(j,{justify:"between",align:"start",gap:4,children:[(0,i.jsxs)(b,{style:{flex:1},children:[(0,i.jsx)(R,{level:1,style:{marginBottom:r?t.spacing["2"]:0},children:e}),r&&(0,i.jsx)(y,{size:"base",color:"secondary",children:r})]}),n&&(0,i.jsx)(b,{style:{flexShrink:0},children:n})]})]})}var{useToken:e3}=n.theme;function e5({title:e,description:r,icon:o,breadcrumbs:n,actions:t,tabs:l,onBack:a,children:s}){let{token:c}=e3(),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)(eX,{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)(y,{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)(B,{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 e7({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:e8}=n.theme;function re({icon:e,title:r,description:o,action:l,children:a,useDefaultImage:s,image:c,className:d,style:u}){let{token:m}=e8(),g=a??l;if(s||void 0!==c)return(0,i.jsx)(n.Empty,{description:o,image:c,className:d,style:u,children:g});let f={padding:t.spacing["8"],textAlign:"center",...u};return(0,i.jsx)(b,{className:d,style:f,children:(0,i.jsxs)(j,{direction:"column",align:"center",gap:3,children:[e&&(0,i.jsx)(b,{style:{fontSize:"48px",color:m.colorTextSecondary},children:e}),r&&(0,i.jsx)(y,{size:"lg",weight:"semibold",children:r}),o&&(0,i.jsx)(y,{size:"base",color:"secondary",children:o}),g&&(0,i.jsx)(b,{mt:2,children:g})]})})}re.PRESENTED_IMAGE_SIMPLE=n.Empty.PRESENTED_IMAGE_SIMPLE,re.PRESENTED_IMAGE_DEFAULT=n.Empty.PRESENTED_IMAGE_DEFAULT;var{useToken:rr}=n.theme;function ro({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}=rr(),g={padding:t.spacing["8"],textAlign:"center",...u};return(0,i.jsx)(b,{className:d,style:g,children:(0,i.jsxs)(j,{direction:"column",align:"center",gap:3,children:[e&&(0,i.jsx)(b,{style:{fontSize:"48px",color:m.colorError},children:e}),(0,i.jsx)(y,{size:"lg",weight:"semibold",color:"error",children:r}),o&&(0,i.jsx)(y,{size:"base",color:"secondary",children:o}),n&&(0,i.jsx)(b,{p:3,style:{backgroundColor:m.colorErrorBg,borderRadius:m.borderRadius,maxWidth:"600px",width:"100%"},children:(0,i.jsx)(y,{size:"sm",as:"pre",style:{margin:0,textAlign:"left",whiteSpace:"pre-wrap"},children:n})}),(l||c)&&(0,i.jsx)(b,{mt:2,children:c||(0,i.jsx)($,{variant:"primary",onClick:s,children:a})})]})})}function rn({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 rt(e){return(0,i.jsx)(n.Skeleton.Button,{...e})}function ri(e){return(0,i.jsx)(n.Skeleton.Input,{...e})}function rl(e){return(0,i.jsx)(n.Skeleton.Image,{...e})}function ra(e){return(0,i.jsx)(n.Skeleton.Node,{...e})}function rs({width:e="100%",height:r="1em",gap:o=6,className:t,style:l}){let{token:s}=n.theme.useToken(),c=Array.isArray(e),d=c?e:[e],u=c?"100%":"number"==typeof e?`${e}px`:e;return(0,i.jsx)("span",{className:t,style:{display:"inline-flex",flexDirection:"column",gap:o,width:u,...l},children:d.map((e,o)=>(0,i.jsx)("span",{className:(0,a.A)("skeletonText_D4KLj"),style:{display:"block",width:c?"number"==typeof e?`${e}px`:e:"100%",height:"number"==typeof r?`${r}px`:r,borderRadius:s.borderRadiusSM,flexShrink:0,backgroundImage:`linear-gradient(90deg, ${s.colorBorder} 25%, ${s.colorBgLayout} 50%, ${s.colorBorder} 75%)`,backgroundSize:"400% 100%"}},o))})}function rc(e){return(0,i.jsx)(n.Spin,{...e})}function rd(e){return(0,i.jsx)(n.Result,{...e})}var ru=n.message;function rm(){return n.message.useMessage()}var rg=n.notification;function rf(){return n.notification.useNotification()}function rp({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:g,onClose:f,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:g||f,className:p,style:x,children:o})}var rx=n.Modal.confirm,rh=n.Modal.info,ry=n.Modal.success,rb=n.Modal.error,rj=n.Modal.warning;function rI({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 rS(e){return(0,i.jsx)(n.Popconfirm,{...e})}function rv(e){return(0,i.jsx)(n.Popover,{...e})}var{useToken:rU}=n.theme;function rT({content:e,className:r,style:o}){let{token:n}=rU(),t=`
2
2
  .kb-md { font-size: ${n.fontSize}px; line-height: 1.6; color: ${n.colorText}; font-family: ${n.fontFamily}; }
3
+ .kb-md > *:first-child { margin-top: 0; }
4
+ .kb-md > *:last-child { margin-bottom: 0; }
3
5
  .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
6
  .kb-md h1:first-child,.kb-md h2:first-child,.kb-md h3:first-child { margin-top:0; }
5
7
  .kb-md h1 { font-size:1.5em; padding-bottom:0.3em; border-bottom:1px solid ${n.colorBorderSecondary}; }
@@ -13,7 +15,12 @@
13
15
  .kb-md pre { background:${n.colorFillQuaternary}; border:1px solid ${n.colorBorderSecondary}; border-radius:${n.borderRadius}px; padding:12px 16px; overflow-x:auto; margin:0.75em 0; }
14
16
  .kb-md pre code { background:none; padding:0; font-size:0.85em; color:${n.colorText}; }
15
17
  .kb-md ul,.kb-md ol { padding-left:1.5em; margin:0.6em 0; }
16
- .kb-md li { margin:0.2em 0; }
18
+ .kb-md ul { list-style: disc; }
19
+ .kb-md ol { list-style: decimal; }
20
+ .kb-md ul ul { list-style: circle; }
21
+ .kb-md ol ol, .kb-md ul ol { list-style: decimal; }
22
+ .kb-md li { margin:0.2em 0; list-style: inherit; }
23
+ .kb-md li::marker { color:${n.colorTextTertiary}; }
17
24
  .kb-md blockquote { margin:0.75em 0; padding:0.4em 1em; border-left:4px solid ${n.colorPrimaryBorder}; background:${n.colorFillQuaternary}; color:${n.colorTextSecondary}; border-radius:0 ${n.borderRadiusSM}px ${n.borderRadiusSM}px 0; }
18
25
  .kb-md blockquote p { margin:0; }
19
26
  .kb-md hr { border:none; border-top:1px solid ${n.colorBorderSecondary}; margin:1.2em 0; }
@@ -22,4 +29,4 @@
22
29
  .kb-md th { background:${n.colorFillTertiary}; font-weight:600; }
23
30
  .kb-md tr:nth-child(even) td { background:${n.colorFillQuaternary}; }
24
31
  .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,f.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},g={display:"inline-block",width:"40px",color:s.colorTextSecondary,userSelect:"none",textAlign:"right",marginRight:s.marginSM},f=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:g,children:r+1}),(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:r$(e,s)}})]},r)):(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:f}})})})}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:()=>eY,UIAlert:()=>e8,UIAreaChart:()=>ea,UIAvatar:()=>O,UIAvatarGroup:()=>X,UIBadge:()=>B,UIBarChart:()=>eu,UIBox:()=>h,UIBreadcrumb:()=>eq,UIButton:()=>$,UICard:()=>P,UICheckbox:()=>eP,UICheckboxGroup:()=>eA,UICol:()=>T,UIColumnChart:()=>ei,UICopyButton:()=>Y,UIDatePicker:()=>eD,UIDescriptions:()=>ex,UIDescriptionsItem:()=>eh,UIDiffViewer:()=>rF,UIDivider:()=>w,UIDrawer:()=>rk,UIDropdown:()=>eJ,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:()=>rg,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:()=>V,UISkeleton:()=>ri,UISkeletonButton:()=>rl,UISkeletonImage:()=>rs,UISkeletonInput:()=>ra,UISkeletonNode:()=>rc,UISkeletonText:()=>rd,UISlider:()=>eX,UISpace:()=>v,UISpaceCompact:()=>k,UISpin:()=>ru,UIStack:()=>S,UIStatistic:()=>eg,UIStatisticCountdown:()=>ef,UIStatisticsChart:()=>em,UISteps:()=>e0,UISwitch:()=>eR,UITable:()=>Z,UITabs:()=>eV,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:()=>rf,useUINotification:()=>rx,useUITheme:()=>q})}}]);
32
+ `,l=x.A.sanitize(p.xI.parse(e));return(0,i.jsxs)(b,{className:r,style:{padding:n.padding,...o},children:[(0,i.jsx)("style",{children:t}),(0,i.jsx)("div",{className:"kb-md",dangerouslySetInnerHTML:{__html:l}})]})}var{useToken:rw}=n.theme;function rC({data:e,collapsed:r=!1,indent:o=2,showLineNumbers:n=!1,className:t,style:a}){let{token:s}=rw(),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},g={display:"inline-block",width:"40px",color:s.colorTextSecondary,userSelect:"none",textAlign:"right",marginRight:s.marginSM},f=rB(c,s);return(0,i.jsx)(b,{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:g,children:r+1}),(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:rB(e,s)}})]},r)):(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:f}})})})}function rB(e,r){return(e=(e=(e=(e=(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")).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 rM({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)(I,{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:()=>eK,UIAlert:()=>e7,UIAreaChart:()=>el,UIAvatar:()=>O,UIAvatarGroup:()=>X,UIBadge:()=>M,UIBarChart:()=>ed,UIBox:()=>b,UIBreadcrumb:()=>eX,UIButton:()=>$,UICard:()=>P,UICheckbox:()=>eE,UICheckboxGroup:()=>eP,UICol:()=>C,UIColumnChart:()=>et,UICopyButton:()=>K,UIDatePicker:()=>eA,UIDescriptions:()=>ep,UIDescriptionsItem:()=>ex,UIDiffViewer:()=>rM,UIDivider:()=>B,UIDrawer:()=>rk,UIDropdown:()=>eq,UIDropdownButton:()=>eJ,UIEmptyState:()=>re,UIErrorState:()=>ro,UIFlex:()=>j,UIForm:()=>ez,UIFormItem:()=>eM,UIFormList:()=>eF,UIHeader:()=>e4,UIIcon:()=>H,UIIconButton:()=>G,UIInput:()=>eU,UIInputNumber:()=>eL,UIInputPassword:()=>eT,UIInputSearch:()=>eC,UIInputTextArea:()=>ew,UIJsonViewer:()=>rC,UILineChart:()=>eo,UIList:()=>ek,UIListItem:()=>eS,UIListItemMeta:()=>ev,UIMarkdownViewer:()=>rT,UIMenu:()=>e0,UIMessage:()=>ru,UIMetricCard:()=>J,UIModal:()=>rp,UIModalConfirm:()=>rx,UIModalError:()=>rb,UIModalInfo:()=>rh,UIModalSuccess:()=>ry,UIModalWarning:()=>rj,UINotification:()=>rg,UIPage:()=>e2,UIPageHeader:()=>e5,UIPageSection:()=>e9,UIPieChart:()=>es,UIPopconfirm:()=>rS,UIPopover:()=>rv,UIProgress:()=>ef,UIRadio:()=>eN,UIRadioGroup:()=>eW,UIRangePicker:()=>eR,UIResult:()=>rd,UIRow:()=>w,UISegmented:()=>eQ,UISelect:()=>eB,UIShimmerText:()=>Y,UISkeleton:()=>rn,UISkeletonButton:()=>rt,UISkeletonImage:()=>rl,UISkeletonInput:()=>ri,UISkeletonNode:()=>ra,UISkeletonText:()=>rs,UISlider:()=>eO,UISpace:()=>U,UISpaceCompact:()=>T,UISpin:()=>rc,UIStack:()=>v,UIStatistic:()=>em,UIStatisticCountdown:()=>eg,UIStatisticsChart:()=>eu,UISteps:()=>eZ,UISwitch:()=>e_,UITable:()=>Q,UITabs:()=>eY,UITag:()=>_,UIText:()=>y,UITimePicker:()=>eD,UITimeline:()=>eh,UITimelineItem:()=>ey,UITitle:()=>R,UITooltip:()=>rI,UITree:()=>eb,UITreeDirectoryTree:()=>ej,UITreeNode:()=>eI,UITypographyLink:()=>S,UITypographyParagraph:()=>k,UITypographyText:()=>I,UIUpload:()=>eH,UIUploadDragger:()=>eG,createFillFunction:()=>ee,registerIconRenderer:()=>W,useChartColors:()=>Z,useUIForm:()=>e$,useUIMessage:()=>rm,useUINotification:()=>rf,useUITheme:()=>V})}}]);