@kb-labs/release-manager-cli 2.94.0 → 2.96.0
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.
- package/dist/cli/commands/build.js +1 -1
- package/dist/cli/commands/build.js.map +1 -1
- package/dist/cli/commands/changelog.js +1 -1
- package/dist/cli/commands/changelog.js.map +1 -1
- package/dist/cli/commands/checks.js +1 -1
- package/dist/cli/commands/checks.js.map +1 -1
- package/dist/cli/commands/git.js +31 -12
- package/dist/cli/commands/git.js.map +1 -1
- package/dist/cli/commands/pack.js +1 -1
- package/dist/cli/commands/pack.js.map +1 -1
- package/dist/cli/commands/plan.js +1 -1
- package/dist/cli/commands/plan.js.map +1 -1
- package/dist/cli/commands/publish.js +1 -1
- package/dist/cli/commands/publish.js.map +1 -1
- package/dist/cli/commands/report.js +5 -2
- package/dist/cli/commands/report.js.map +1 -1
- package/dist/cli/commands/rollback.js +9 -1
- package/dist/cli/commands/rollback.js.map +1 -1
- package/dist/cli/commands/run.js +5 -5
- package/dist/cli/commands/run.js.map +1 -1
- package/dist/cli/commands/verify.js +1 -1
- package/dist/cli/commands/verify.js.map +1 -1
- package/dist/cli/commands/version.js +22 -28
- package/dist/cli/commands/version.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +43 -61
- package/dist/index.js.map +1 -1
- package/dist/manifest.d.ts +62 -27
- package/dist/manifest.js +43 -61
- package/dist/manifest.js.map +1 -1
- package/dist/rest/handlers/build-handler.js +34 -30
- package/dist/rest/handlers/build-handler.js.map +1 -1
- package/dist/rest/handlers/changelog-generate-handler.js +98 -64
- package/dist/rest/handlers/changelog-generate-handler.js.map +1 -1
- package/dist/rest/handlers/changelog-handler.js +28 -24
- package/dist/rest/handlers/changelog-handler.js.map +1 -1
- package/dist/rest/handlers/changelog-save-handler.js +2 -2
- package/dist/rest/handlers/changelog-save-handler.js.map +1 -1
- package/dist/rest/handlers/checklist-handler.js +49 -45
- package/dist/rest/handlers/checklist-handler.js.map +1 -1
- package/dist/rest/handlers/generate-handler.js +96 -92
- package/dist/rest/handlers/generate-handler.js.map +1 -1
- package/dist/rest/handlers/get-checks-handler.js +16 -12
- package/dist/rest/handlers/get-checks-handler.js.map +1 -1
- package/dist/rest/handlers/git-timeline-handler.js +63 -59
- package/dist/rest/handlers/git-timeline-handler.js.map +1 -1
- package/dist/rest/handlers/history-changelog-handler.js +2 -2
- package/dist/rest/handlers/history-changelog-handler.js.map +1 -1
- package/dist/rest/handlers/history-handler.js +45 -41
- package/dist/rest/handlers/history-handler.js.map +1 -1
- package/dist/rest/handlers/history-plan-handler.js +2 -2
- package/dist/rest/handlers/history-plan-handler.js.map +1 -1
- package/dist/rest/handlers/history-report-handler.js +2 -2
- package/dist/rest/handlers/history-report-handler.js.map +1 -1
- package/dist/rest/handlers/plan-handler.js +57 -53
- package/dist/rest/handlers/plan-handler.js.map +1 -1
- package/dist/rest/handlers/preview-handler.js +90 -86
- package/dist/rest/handlers/preview-handler.js.map +1 -1
- package/dist/rest/handlers/report-handler.js +36 -32
- package/dist/rest/handlers/report-handler.js.map +1 -1
- package/dist/rest/handlers/reset-handler.js +22 -18
- package/dist/rest/handlers/reset-handler.js.map +1 -1
- package/dist/rest/handlers/run-checks-handler.js +43 -39
- package/dist/rest/handlers/run-checks-handler.js.map +1 -1
- package/dist/rest/handlers/run-handler.js +53 -49
- package/dist/rest/handlers/run-handler.js.map +1 -1
- package/dist/rest/handlers/scopes-handler.js +40 -36
- package/dist/rest/handlers/scopes-handler.js.map +1 -1
- package/dist/rest/handlers/status-handler.js +49 -45
- package/dist/rest/handlers/status-handler.js.map +1 -1
- package/dist/widgets/117.js +24 -1
- package/dist/widgets/{919.js → 215.js} +1 -1
- package/dist/widgets/370.js +1 -1
- package/dist/widgets/{805.js → 46.js} +92 -92
- package/dist/widgets/50.js +1 -1
- package/dist/widgets/62.js +96 -0
- package/dist/widgets/648.js +1 -0
- package/dist/widgets/669.js +1 -1
- package/dist/widgets/775.js +1 -1
- package/dist/widgets/78.js +1 -0
- package/dist/widgets/968.js +2 -2
- package/dist/widgets/__federation_expose_ReleasePage.js +1 -1
- package/dist/widgets/mf-manifest.json +31 -31
- package/dist/widgets/mf-stats.json +39 -39
- package/dist/widgets/remoteEntry.js +2 -2
- package/package.json +9 -8
- package/dist/widgets/418.js +0 -38
- package/dist/widgets/451.js +0 -1
- package/dist/widgets/694.js +0 -1
package/dist/widgets/117.js
CHANGED
|
@@ -1 +1,24 @@
|
|
|
1
|
-
"use strict";(self.rspackChunk_kb_labs_release_manager_cli=self.rspackChunk_kb_labs_release_manager_cli||[]).push([[117],{2924(e,r,n){n.r(r),n.d(r,{UIAccordion:()=>eV,UIAlert:()=>e7,UIAreaChart:()=>ei,UIAvatar:()=>G,UIAvatarGroup:()=>X,UIBadge:()=>w,UIBarChart:()=>ec,UIBox:()=>m,UIBreadcrumb:()=>eX,UIButton:()=>M,UICard:()=>z,UICheckbox:()=>ez,UICheckboxGroup:()=>eF,UICol:()=>T,UIColumnChart:()=>eo,UIDatePicker:()=>eD,UIDescriptions:()=>ep,UIDescriptionsItem:()=>ex,UIDiffViewer:()=>rM,UIDivider:()=>k,UIDrawer:()=>rb,UIDropdown:()=>eY,UIDropdownButton:()=>eJ,UIEmptyState:()=>e9,UIErrorState:()=>rr,UIFlex:()=>h,UIForm:()=>eB,UIFormItem:()=>eM,UIFormList:()=>eP,UIHeader:()=>e6,UIIcon:()=>_,UIIconButton:()=>H,UIInput:()=>eU,UIInputNumber:()=>eL,UIInputPassword:()=>eT,UIInputSearch:()=>eC,UIInputTextArea:()=>ek,UIJsonViewer:()=>rC,UILineChart:()=>er,UIList:()=>eb,UIListItem:()=>eS,UIListItemMeta:()=>ev,UIMarkdownViewer:()=>rT,UIMenu:()=>eZ,UIMessage:()=>rd,UIMetricCard:()=>J,UIModal:()=>rp,UIModalConfirm:()=>rx,UIModalError:()=>ry,UIModalInfo:()=>rm,UIModalSuccess:()=>rh,UIModalWarning:()=>rj,UINotification:()=>rg,UIPage:()=>e1,UIPageHeader:()=>e4,UIPageSection:()=>e5,UIPieChart:()=>ea,UIPopconfirm:()=>rS,UIPopover:()=>rv,UIProgress:()=>ef,UIRadio:()=>eW,UIRadioGroup:()=>eN,UIRangePicker:()=>eR,UIResult:()=>rc,UIRow:()=>U,UISegmented:()=>eq,UISelect:()=>ew,UIShimmerText:()=>V,UISkeleton:()=>rn,UISkeletonButton:()=>ro,UISkeletonImage:()=>ri,UISkeletonInput:()=>rt,UISkeletonNode:()=>rl,UISkeletonText:()=>ra,UISlider:()=>eG,UISpace:()=>S,UISpaceCompact:()=>v,UISpin:()=>rs,UIStack:()=>b,UIStatistic:()=>eu,UIStatisticCountdown:()=>eg,UIStatisticsChart:()=>ed,UISteps:()=>eQ,UISwitch:()=>eA,UITable:()=>q,UITabs:()=>eO,UITag:()=>A,UIText:()=>x,UITimePicker:()=>e$,UITimeline:()=>em,UITimelineItem:()=>eh,UITitle:()=>R,UITooltip:()=>rI,UITree:()=>ey,UITreeDirectoryTree:()=>ej,UITreeNode:()=>eI,UITypographyLink:()=>I,UITypographyParagraph:()=>j,UITypographyText:()=>y,UIUpload:()=>e_,UIUploadDragger:()=>eH,createFillFunction:()=>Z,registerIconRenderer:()=>N,useChartColors:()=>Q,useUIForm:()=>eE,useUIMessage:()=>ru,useUINotification:()=>rf,useUITheme:()=>K});var o=n(296),t=n(5783),i=n(4552),l=n(2913),a=n(5505),s=n(5793),c=n(7346),d=n(1499),u=n(3292),g=n(6911),f=n(6831),{useToken:p}=o.theme;function x({children:e,size:r="base",weight:n="normal",color:o="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[n],color:d[o]},...s};return(0,i.jsx)(l,{style:u,className:a,children:e})}function m({children:e,p:r,pt:n,pr:o,pb:l,pl:a,m:s,mt:c,mr:d,mb:u,ml:g,as:f="div",className:p,style:x}){let h={...void 0!==r&&{padding:t.spacing[r]},...void 0!==n&&{paddingTop:t.spacing[n]},...void 0!==o&&{paddingRight:t.spacing[o]},...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!==g&&{marginLeft:t.spacing[g]},...x};return(0,i.jsx)(f,{style:h,className:p,children:e})}function h({children:e,direction:r="row",justify:n="start",align:o="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"}[n],alignItems:{start:"flex-start",end:"flex-end",center:"center",baseline:"baseline",stretch:"stretch"}[o],flexWrap:a,...void 0!==l&&{gap:t.spacing[l]},...d};return(0,i.jsx)(s,{style:u,className:c,children:e})}function y(e){return(0,i.jsx)(o.Typography.Text,{...e})}function j(e){return(0,i.jsx)(o.Typography.Paragraph,{...e})}function I(e){return(0,i.jsx)(o.Typography.Link,{...e})}function b({direction:e="vertical",spacing:r=2,align:n,children:o,as:t,className:l,style:a}){return(0,i.jsx)(h,{direction:"vertical"===e?"column":"row",gap:r,align:n,as:t,className:l,style:a,children:o})}function S(e){return(0,i.jsx)(o.Space,{...e})}function v(e){return(0,i.jsx)(o.Space.Compact,{...e})}function U(e){return(0,i.jsx)(o.Row,{...e})}function T(e){return(0,i.jsx)(o.Col,{...e})}function k(e){return(0,i.jsx)(o.Divider,{...e})}var{useToken:C}=o.theme;function w({variant:e="default",children:r,...n}){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)(o.Badge,{color:l[e],text:r,...n}):(0,i.jsx)(o.Badge,{status:{success:"success",warning:"warning",error:"error",info:"processing",default:"default"}[e],...n})}var B={},M=l.forwardRef(function({variant:e="default",className:r,...n},t){let l=[B.uiButton,r].filter(Boolean).join(" ");return(0,i.jsx)(o.Button,{ref:t,type:e,className:l,...n})}),{useToken:E}=o.theme,P={default:{tint:"transparent",accent:"transparent",border:"var(--border-primary, #e8eaed)"},success:{tint:"rgba(82,196,26,0.07)",accent:"#52c41a",border:"rgba(82,196,26,0.25)"},warning:{tint:"rgba(250,173,20,0.08)",accent:"#faad14",border:"rgba(250,173,20,0.30)"},error:{tint:"rgba(255,77,79,0.07)",accent:"#ff4d4f",border:"rgba(255,77,79,0.25)"},info:{tint:"rgba(12,102,255,0.07)",accent:"#0c66ff",border:"rgba(12,102,255,0.20)"}};function z({title:e,subtitle:r,extra:n,footer:t,children:l,size:a="default",bordered:s=!0,hoverable:c=!1,loading:d=!1,status:u="default",...g}){let{token:f}=E(),p=P[u],h=e||r?(0,i.jsxs)(m,{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)(o.Card,{title:h,extra:n,size:a,variant:s?"outlined":"borderless",hoverable:c,loading:d,...g,style:{boxShadow:c?"0 4px 16px rgba(0,0,0,0.08)":"0 1px 3px rgba(0,0,0,0.06)",transition:"box-shadow 200ms ease, transform 200ms ease",backgroundColor:"default"!==u?p.tint:void 0,borderColor:p.border,borderTopColor:"default"!==u?p.accent:p.border,borderTopWidth:"default"!==u?3:1,overflow:"hidden",...g.style},children:[l,t&&(0,i.jsx)(m,{mt:3,pt:3,style:{borderTop:`1px solid ${f.colorBorder}`},children:t})]})}var{useToken:F}=o.theme;function A({variant:e="default",color:r,children:n,closable:t,onClose:l,icon:a,...s}){let{token:c}=F(),d={success:c.colorSuccess,warning:c.colorWarning,error:c.colorError,info:c.colorInfo,default:c.colorPrimary,neutral:c.colorTextSecondary};return(0,i.jsx)(o.Tag,{color:r??d[e],closable:t,onClose:l,icon:a,...s,children:n})}var{Title:D}=o.Typography,{useToken:$}=o.theme;function R({level:e=1,children:r,subtitle:n,className:o,style:l}){let{token:a}=$();return n?(0,i.jsxs)(m,{mb:n?2:3,children:[(0,i.jsx)(D,{level:e,className:o,style:{margin:0,...l},children:r}),(0,i.jsx)(x,{size:"base",color:"secondary",as:"div",style:{marginTop:t.spacing["1"]},children:n})]}):(0,i.jsx)(D,{level:e,className:o,style:{marginBottom:t.spacing["3"],...l},children:r})}var L={},W=null;function N(e){W=e}function _({icon:e,name:r,size:n="base",color:o="inherit",spin:t=!1,onClick:a,className:s,style:c}){let d=[L.uiIcon,"anticon",L[`size-${n}`],L[`color-${o}`],t&&L.spin,a&&L.clickable,s].filter(Boolean).join(" "),u=null,g=r||("string"==typeof e?e:null);return(g?W?u=W(g):(console.warn(`Icon "${g}" 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 H=({icon:e,name:r,onClick:n,size:o="base",color:t="primary",...l})=>(0,i.jsx)(_,{icon:e,name:r,size:o,color:t,onClick:n,style:{cursor:"pointer",transition:"opacity 0.2s",...l.style},...l});function G(e){return(0,i.jsx)(o.Avatar,{...e})}function X(e){return(0,i.jsx)(o.Avatar.Group,{...e})}function K(){return o.theme.useToken()}var O={};function V({children:e,color:r="var(--text-secondary, #9CA3AF)",highlight:n="var(--text-primary, #111827)",duration:o="2s",className:t,style:l}){return(0,i.jsx)("span",{className:[O.shimmer,t].filter(Boolean).join(" "),style:{"--shimmer-color-1":r,"--shimmer-color-2":r,"--shimmer-highlight":n,"--shimmer-duration":o,...l},children:e})}var{useToken:Y}=o.theme;function J({label:e,value:r,trend:n="neutral",delta:t,unit:l,size:a="default",showDelta:s=!0,loading:c=!1}){let{token:d}=Y(),u="up"===n?d.colorSuccess:"down"===n?d.colorError:d.colorText;return(0,i.jsx)(o.Card,{size:a,loading:c,style:{height:"100%"},children:(0,i.jsxs)(m,{children:[(0,i.jsx)(x,{size:"sm",color:"secondary",as:"div",children:e}),(0,i.jsxs)(h,{align:"baseline",gap:2,style:{marginTop:d.marginXS},children:[(0,i.jsx)(x,{size:"2xl",weight:"bold",as:"div",style:{color:u},children:r}),l&&(0,i.jsx)(x,{size:"base",color:"secondary",children:l})]}),s&&void 0!==t&&(0,i.jsx)(h,{align:"center",gap:1,style:{marginTop:d.marginXS},children:(0,i.jsxs)(x,{size:"sm",style:{color:t>=0?d.colorSuccess:d.colorError},children:["up"===n?"↑":"down"===n?"↓":""," ",Math.abs(t),"%"]})})]})})}function q({columns:e,dataSource:r,rowKey:n="id",loading:t,pagination:l,rowSelection:a,onRow:s,size:c="middle",bordered:d=!1,expandable:u,className:g,style:f,scroll:p}){return(0,i.jsx)(o.Table,{columns:e,dataSource:r,rowKey:n,loading:t,pagination:l,rowSelection:a,onRow:s,size:c,bordered:d,expandable:u,className:g,style:f,scroll:p})}function Q(){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"],n=r=>e[r%e.length]||"#1890ff";return{colors:e,extendedColors:r,getColor:n,mapColors:(e,r)=>{let o=Array.from(new Set(e.map(e=>String(e[r]??"")))),t={};return o.forEach((e,r)=>{t[e]=n(r)}),t}}},[])}function Z(e,r){return n=>{let o=String(n[r]??""),t=Object.keys(e)[0];return e[o]||(t?e[t]:"#1890ff")||"#1890ff"}}var{useToken:ee}=o.theme;function er({colors:e,disableAutoColors:r,...n}){let o=function(){let{token:e}=ee();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=Q(),s=l.useMemo(()=>{let o=n.colorField||n.seriesField;if(console.log("[UILineChart] Debug info:",{hasColorField:o,colorField:n.colorField,seriesField:n.seriesField,disableAutoColors:r,hasData:!!n.data,dataLength:n.data?.length,customColors:e,paletteColors:t.colors}),r||!o||!n.data)return console.log("[UILineChart] Skipping auto-colors:",{disableAutoColors:r,hasColorField:o,hasData:!!n.data}),n;let i=e||t.colors;return console.log("[UILineChart] Applying colors:",{source:e?"custom":"palette",colors:i}),{...n,scale:{...n.scale,color:{range:i}}}},[n,e,t.colors,r]);return(0,i.jsx)(a.A,{...s,theme:o})}var{useToken:en}=o.theme;function eo({colors:e,...r}){let n=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])}(),o=e?{...n,colors10:e,colors20:e}:n;return(0,i.jsx)(s.A,{...r,theme:o})}var{useToken:et}=o.theme;function ei({colors:e,disableAutoColors:r,...n}){let o=function(){let{token:e}=et();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=Q(),a=l.useMemo(()=>{if(r||!n.colorField||!n.data)return n;let o=e||t.colors;return{...n,scale:{...n.scale,color:{range:o}}}},[n,e,t.colors,r]);return(0,i.jsx)(c.A,{...a,theme:o})}var{useToken:el}=o.theme;function ea({colors:e,disableAutoColors:r,...n}){let o=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=Q(),a=l.useMemo(()=>{if(r||!n.colorField||!n.data)return n;let o=e||t.colors;return{...n,scale:{...n.scale,color:{range:o}}}},[n,e,t.colors,r]);return(0,i.jsx)(d.A,{...a,theme:o})}var{useToken:es}=o.theme;function ec({colors:e,disableAutoColors:r,...n}){let o=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=Q(),a=l.useMemo(()=>{if(r||!n.seriesField||!n.data)return n;let o=e||t.colors;return{...n,scale:{...n.scale,color:{range:o}}}},[n,e,t.colors,r]);return(0,i.jsx)(u.A,{...a,theme:o})}function ed({data:e,loading:r=!1,title:n,metrics:t=[],xField:a="date",yField:s="value",colorField:c="category",style:d,height:u=350,showLegend:f=!0,chartProps:p}){let m=Q(),h=l.useMemo(()=>m.colors.slice(0,Math.max(t.length,3)),[m.colors,t.length]),y=l.useMemo(()=>e?0===t.length?e:e.flatMap(e=>{let r=[];for(let n of t){let o;o=n.key in e&&"number"==typeof e[n.key]?e[n.key]:e.metrics&&n.key in e.metrics?e.metrics[n.key]:0,n.transform&&(o=n.transform(o)),r.push({[a]:e.date?g(e.date).format("YYYY-MM-DD"):e[a],[c]:n.label,[s]:o})}return r}):[],[e,t,a,s,c]),j=()=>(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)(er,{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]),n=t.findIndex(r=>r.label===e[c]),o=e[s]?.toLocaleString()||"0";return r?.format&&null!=e[s]&&(o=r.format(e[s])),{name:e[c],value:o,color:h[n>=0?n:0]}}]},...p})]})]});return n?(0,i.jsx)(o.Card,{title:n,style:{marginTop:16,...d},children:j()}):(0,i.jsx)("div",{style:d,children:j()})}function eu(e){return(0,i.jsx)(o.Statistic,{...e})}function eg(e){return(0,i.jsx)(o.Statistic.Countdown,{...e})}function ef(e){return(0,i.jsx)(o.Progress,{...e})}function ep(e){return(0,i.jsx)(o.Descriptions,{...e})}function ex(e){return(0,i.jsx)(o.Descriptions.Item,{...e})}function em(e){return(0,i.jsx)(o.Timeline,{...e})}function eh(e){return(0,i.jsx)(o.Timeline.Item,{...e})}function ey(e){return(0,i.jsx)(o.Tree,{...e})}function ej(e){return(0,i.jsx)(o.Tree.DirectoryTree,{...e})}function eI(e){return(0,i.jsx)(o.Tree.TreeNode,{...e})}function eb(e){return(0,i.jsx)(o.List,{...e})}function eS(e){return(0,i.jsx)(o.List.Item,{...e})}function ev(e){return(0,i.jsx)(o.List.Item.Meta,{...e})}function eU({value:e,defaultValue:r,placeholder:n,disabled:t,prefix:l,suffix:a,maxLength:s,showCount:c,allowClear:d,onChange:u,onPressEnter:g,...f}){return(0,i.jsx)(o.Input,{value:e,defaultValue:r,placeholder:n,disabled:t,prefix:l,suffix:a,maxLength:s,showCount:c,allowClear:d,onChange:e=>{u?.(e.target.value)},onPressEnter:g,...f})}function eT(e){return(0,i.jsx)(o.Input.Password,{...e})}function ek(e){return(0,i.jsx)(o.Input.TextArea,{...e})}function eC(e){return(0,i.jsx)(o.Input.Search,{...e})}function ew({options:e=[],value:r,defaultValue:n,placeholder:t,disabled:l,loading:a,allowClear:s,showSearch:c,mode:d,onChange:u,...g}){let f=e.map(e=>({label:e.icon||e.description?(0,i.jsxs)(h,{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)(o.Select,{options:f,value:r,defaultValue:n,placeholder:t,disabled:l,loading:a,allowClear:s,showSearch:c,mode:d,onChange:u,...g})}function eB({layout:e="vertical",onFinish:r,onFinishFailed:n,initialValues:t,children:l,...a}){return(0,i.jsx)(o.Form,{layout:e,onFinish:r,onFinishFailed:n,initialValues:t,...a,children:l})}function eM(e){return(0,i.jsx)(o.Form.Item,{...e})}var eE=o.Form.useForm;function eP(e){return(0,i.jsx)(o.Form.List,{...e})}function ez({children:e,checked:r,defaultChecked:n,disabled:t,indeterminate:l,onChange:a,...s}){return(0,i.jsx)(o.Checkbox,{checked:r,defaultChecked:n,disabled:t,indeterminate:l,onChange:e=>{a?.(e.target.checked)},...s,children:e})}function eF({options:e,value:r,defaultValue:n,disabled:l,gap:a=2,onChange:s}){return(0,i.jsx)(o.Checkbox.Group,{value:r,defaultValue:n,disabled:l,onChange:s,children:(0,i.jsx)(m,{children:e.map((r,n)=>(0,i.jsxs)(m,{mb:n<e.length-1?a:0,children:[(0,i.jsx)(o.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 eA({checked:e,defaultChecked:r,disabled:n,loading:t,size:l="default",label:a,labelPosition:s="right",checkedChildren:c,unCheckedChildren:d,onChange:u,...g}){let f=(0,i.jsx)(o.Switch,{checked:e,defaultChecked:r,disabled:n,loading:t,size:l,checkedChildren:c,unCheckedChildren:d,onChange:u,...g});return a?(0,i.jsxs)(h,{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:n,disabled:t,format:l,allowClear:a=!0,showTime:s,onChange:c,...d}){return(0,i.jsx)(o.DatePicker,{value:e,defaultValue:r,placeholder:n,disabled:t,format:l,allowClear:a,showTime:s,onChange:c,...d})}function e$({value:e,defaultValue:r,placeholder:n,disabled:t,format:l,allowClear:a=!0,onChange:s,...c}){return(0,i.jsx)(o.TimePicker,{value:e,defaultValue:r,placeholder:n,disabled:t,format:l,allowClear:a,onChange:s,...c})}function eR(e){return(0,i.jsx)(o.DatePicker.RangePicker,{...e})}function eL(e){return(0,i.jsx)(o.InputNumber,{...e})}function eW(e){return(0,i.jsx)(o.Radio,{...e})}function eN(e){return(0,i.jsx)(o.Radio.Group,{...e})}function e_(e){return(0,i.jsx)(o.Upload,{...e})}function eH(e){return(0,i.jsx)(o.Upload.Dragger,{...e})}function eG(e){return(0,i.jsx)(o.Slider,{...e})}function eX({items:e,separator:r,className:n}){let t=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.onClick}));return(0,i.jsx)(o.Breadcrumb,{items:t,separator:r,className:n})}function eK({items:e,syncUrl:r,activeKey:n,defaultActiveKey:t,tabPosition:l="top",type:a="line",size:s="middle",onChange:c,onEdit:d,className:u,style:g}){let[p,x]=(0,f.useSearchParams)(),m=(0,f.useNavigate)(),h=(0,f.useParams)(),y=e[0]?.key??"",j=n,I=!0===r||"search"===r,b=r&&"object"==typeof r&&"path"===r.mode;I?j=p.get("tab")??y:b&&(j=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)(o.Tabs,{items:S,activeKey:j,defaultActiveKey:r?void 0:t,tabPosition:l,type:a,size:s,onChange:e=>{I?x(e===y?{}:{tab:e}):b&&"object"==typeof r&&m(e===y?r.basePath:`${r.basePath}/${e}`),c?.(e)},onEdit:d?(e,r)=>{d("string"==typeof e?e:"",r)}:void 0,className:u,style:g})}function eO(e){return(0,i.jsx)(eK,{...e})}function eV({items:e,activeKey:r,defaultActiveKey:n,accordion:t=!1,bordered:l=!0,ghost:a=!1,size:s="middle",onChange:c,className:d,style:u}){let g=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)(o.Collapse,{items:g,activeKey:r,defaultActiveKey:n,accordion:t,bordered:l,ghost:a,size:s,onChange:c,className:d,style:u})}function eY(e){return(0,i.jsx)(o.Dropdown,{...e})}function eJ(e){return(0,i.jsx)(o.Dropdown.Button,{...e})}function eq(e){return(0,i.jsx)(o.Segmented,{...e})}function eQ(e){return(0,i.jsx)(o.Steps,{...e})}function eZ(e){return(0,i.jsx)(o.Menu,{...e})}var{useToken:e0}=o.theme;function e1({children:e,width:r="default",variant:n="default",className:o,style:t}){let{token:l}=e0(),a="document"===n,s={maxWidth:{default:"1280px",wide:"1600px",full:"100%"}[r],margin:"0 auto",padding:l.padding,...a&&{backgroundColor:l.colorBgContainer,borderRadius:l.borderRadiusLG,boxShadow:"0 1px 3px rgba(0,0,0,0.06)"},minHeight:a?void 0:"100%",...t};return(0,i.jsx)(m,{as:"main",className:o,style:s,children:e})}var{useToken:e2}=o.theme;function e6({title:e,subtitle:r,breadcrumb:n,actions:o,className:l,style:a}){let{token:s}=e2(),c={borderBottom:`1px solid ${s.colorBorder}`,paddingBottom:t.spacing["4"],marginBottom:t.spacing["6"],...a};return(0,i.jsxs)(m,{className:l,style:c,children:[n&&(0,i.jsx)(m,{mb:2,children:n}),(0,i.jsxs)(h,{justify:"between",align:"start",gap:4,children:[(0,i.jsxs)(m,{style:{flex:1},children:[(0,i.jsx)(R,{level:1,style:{marginBottom:r?t.spacing["2"]:0},children:e}),r&&(0,i.jsx)(x,{size:"base",color:"secondary",children:r})]}),o&&(0,i.jsx)(m,{style:{flexShrink:0},children:o})]})]})}var{useToken:e3}=o.theme;function e4({title:e,description:r,icon:n,breadcrumbs:o,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||o&&o.length>0)&&(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:c.marginXS,marginBottom:c.marginXS},children:[a&&(0,i.jsx)(M,{variant:"text",size:"small",icon:(0,i.jsx)(_,{name:"ArrowLeftOutlined"}),onClick:a,style:{padding:"0 4px"}}),o&&o.length>0&&(0,i.jsx)(eX,{items:o.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:[n&&(0,i.jsx)("span",{style:{fontSize:24,color:c.colorPrimary,flexShrink:0,display:"flex",alignItems:"center"},children:n}),(0,i.jsxs)("div",{style:{minWidth:0},children:["string"==typeof e?(0,i.jsx)("h2",{style:{margin:0,fontSize:c.fontSizeHeading3,fontWeight:c.fontWeightStrong,color:c.colorTextHeading,lineHeight:1.3},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)(k,{style:{marginBottom:0}}),l]})]})}function e5({children:e,gap:r=24,style:n,...o}){return(0,i.jsx)("div",{style:{marginBottom:r,...n},...o,children:e})}function e7({variant:e="info",title:r,message:n,description:t,showIcon:l,closable:a,onClose:s,action:c,icon:d,className:u,style:g}){return(0,i.jsx)(o.Alert,{type:e,message:r||n,description:r?t||n:t,showIcon:l,closable:a,onClose:s,action:c,icon:d,className:u,style:g})}var{useToken:e8}=o.theme;function e9({icon:e,title:r,description:n,action:l,children:a,useDefaultImage:s,image:c,className:d,style:u}){let{token:g}=e8(),f=a??l;if(s||void 0!==c)return(0,i.jsx)(o.Empty,{description:n,image:c,className:d,style:u,children:f});let p={padding:t.spacing["8"],textAlign:"center",...u};return(0,i.jsx)(m,{className:d,style:p,children:(0,i.jsxs)(h,{direction:"column",align:"center",gap:3,children:[e&&(0,i.jsx)(m,{style:{fontSize:"48px",color:g.colorTextSecondary},children:e}),r&&(0,i.jsx)(x,{size:"lg",weight:"semibold",children:r}),n&&(0,i.jsx)(x,{size:"base",color:"secondary",children:n}),f&&(0,i.jsx)(m,{mt:2,children:f})]})})}e9.PRESENTED_IMAGE_SIMPLE=o.Empty.PRESENTED_IMAGE_SIMPLE,e9.PRESENTED_IMAGE_DEFAULT=o.Empty.PRESENTED_IMAGE_DEFAULT;var{useToken:re}=o.theme;function rr({icon:e,title:r="Something went wrong",description:n,details:o,showRetry:l=!1,retryText:a="Try again",onRetry:s,action:c,className:d,style:u}){let{token:g}=re(),f={padding:t.spacing["8"],textAlign:"center",...u};return(0,i.jsx)(m,{className:d,style:f,children:(0,i.jsxs)(h,{direction:"column",align:"center",gap:3,children:[e&&(0,i.jsx)(m,{style:{fontSize:"48px",color:g.colorError},children:e}),(0,i.jsx)(x,{size:"lg",weight:"semibold",color:"error",children:r}),n&&(0,i.jsx)(x,{size:"base",color:"secondary",children:n}),o&&(0,i.jsx)(m,{p:3,style:{backgroundColor:g.colorErrorBg,borderRadius:g.borderRadius,maxWidth:"600px",width:"100%"},children:(0,i.jsx)(x,{size:"sm",as:"pre",style:{margin:0,textAlign:"left",whiteSpace:"pre-wrap"},children:o})}),(l||c)&&(0,i.jsx)(m,{mt:2,children:c||(0,i.jsx)(M,{variant:"primary",onClick:s,children:a})})]})})}function rn({loading:e=!0,children:r,avatar:n,avatarShape:t="circle",lines:l=3,title:a=!0,active:s=!0,className:c,style:d}){return(0,i.jsx)(o.Skeleton,{loading:e,avatar:!!n&&{shape:t},paragraph:{rows:l},title:a,active:s,className:c,style:d,children:r})}function ro(e){return(0,i.jsx)(o.Skeleton.Button,{...e})}function rt(e){return(0,i.jsx)(o.Skeleton.Input,{...e})}function ri(e){return(0,i.jsx)(o.Skeleton.Image,{...e})}function rl(e){return(0,i.jsx)(o.Skeleton.Node,{...e})}function ra({width:e="100%",height:r="1em",gap:n=6,className:t,style:l}){let a=Array.isArray(e)?e:[e];return(0,i.jsx)("span",{className:t,style:{display:"inline-flex",flexDirection:"column",gap:n,...l},children:a.map((e,n)=>(0,i.jsx)("span",{style:{display:"inline-block",width:e,height:r,overflow:"hidden",borderRadius:4,flexShrink:0},children:(0,i.jsx)(o.Skeleton.Input,{active:!0,size:"small",style:{width:"100%",minWidth:"unset",height:"100%",display:"block"}})},n))})}function rs(e){return(0,i.jsx)(o.Spin,{...e})}function rc(e){return(0,i.jsx)(o.Result,{...e})}var rd=o.message;function ru(){return o.message.useMessage()}var rg=o.notification;function rf(){return o.notification.useNotification()}function rp({open:e,title:r,children:n,width:t="default",closable:l=!0,maskClosable:a=!0,footer:s,okText:c,cancelText:d,confirmLoading:u,onOk:g,onCancel:f,onClose:p,className:x,style:m}){let h={small:416,default:520,large:800,full:window.innerWidth-64},y="number"==typeof t?t:h[t];return(0,i.jsx)(o.Modal,{open:e,title:r,width:y,closable:l,maskClosable:a,footer:s,okText:c,cancelText:d,confirmLoading:u,onOk:g,onCancel:f||p,className:x,style:m,children:n})}var rx=o.Modal.confirm,rm=o.Modal.info,rh=o.Modal.success,ry=o.Modal.error,rj=o.Modal.warning;function rI({title:e,children:r,placement:n="top",arrow:t=!0,trigger:l="hover",open:a,className:s}){return(0,i.jsx)(o.Tooltip,{title:e,placement:n,arrow:t,trigger:l,open:a,className:s,children:r})}function rb(e){return(0,i.jsx)(o.Drawer,{...e})}function rS(e){return(0,i.jsx)(o.Popconfirm,{...e})}function rv(e){return(0,i.jsx)(o.Popover,{...e})}var{useToken:rU}=o.theme;function rT({content:e,className:r,style:n}){let o,{token:t}=rU(),l={padding:t.padding,backgroundColor:t.colorBgContainer,borderRadius:t.borderRadius,border:`1px solid ${t.colorBorder}`,lineHeight:1.6,...n},a={fontFamily:t.fontFamily,fontSize:t.fontSize,color:t.colorText};return(0,i.jsx)(m,{className:r,style:l,children:(0,i.jsx)("div",{style:a,dangerouslySetInnerHTML:{__html:(o=(o=(o=(o=(o=(o=(o=e.replace(/^### (.*$)/gim,"<h3>$1</h3>")).replace(/^## (.*$)/gim,"<h2>$1</h2>")).replace(/^# (.*$)/gim,"<h1>$1</h1>")).replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>")).replace(/\*(.*?)\*/g,"<em>$1</em>")).replace(/`(.*?)`/g,"<code>$1</code>")).replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2">$1</a>')).replace(/\n/g,"<br />")}})})}var{useToken:rk}=o.theme;function rC({data:e,collapsed:r=!1,indent:n=2,showLineNumbers:o=!1,className:t,style:a}){let{token:s}=rk(),c=l.useMemo(()=>{try{return JSON.stringify(e,null,n)}catch(e){return`Error: ${e instanceof Error?e.message:"Invalid JSON"}`}},[e,n]),d=c.split("\n"),u={backgroundColor:s.colorBgContainer,borderRadius:s.borderRadius,border:`1px solid ${s.colorBorder}`,overflow:"auto",maxHeight:"600px",...a},g={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},p=rw(c,s);return(0,i.jsx)(m,{className:t,style:u,children:(0,i.jsx)("pre",{style:g,children:o?d.map((e,r)=>(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{style:f,children:r+1}),(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:rw(e,s)}})]},r)):(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:p}})})})}function rw(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 rB={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:n=500,className:o,style:t}){if(!e||""===e.trim())return(0,i.jsx)("div",{style:{padding:16,textAlign:"center"},children:(0,i.jsx)(y,{type:"secondary",children:"No changes to display"})});let l=e.split("\n");return(0,i.jsx)("div",{className:o,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:n,overflow:"auto",...t},children:l.map((e,n)=>{let o=e.startsWith("@@")?"header":e.startsWith("+")?"add":e.startsWith("-")?"remove":"context",t=rB[o],l="add"===o||"remove"===o;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:n+1}),(0,i.jsx)("pre",{style:{margin:0,padding:0,color:t.color,whiteSpace:"pre",flex:1},children:e})]},n)})})}}}]);
|
|
1
|
+
"use strict";(self.rspackChunk_kb_labs_release_manager_cli=self.rspackChunk_kb_labs_release_manager_cli||[]).push([[117],{2924(e,r,o){o.r(r);var n=o(296),t=o(3234),i=o(4552),l=o(2913),a=o(5505),s=o(5793),c=o(7346),d=o(1499),u=o(3292),g=o(6911),f=o(6831),m=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:g,as:f="div",className:m,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!==g&&{marginLeft:t.spacing[g]},...p};return(0,i.jsx)(f,{style:x,className:m,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 k(e){return(0,i.jsx)(n.Space,{...e})}function v(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})}),{useToken:z}=n.theme,E={default:{tint:"transparent",accent:"transparent",border:"var(--border-primary, #e8eaed)"},success:{tint:"rgba(82,196,26,0.07)",accent:"#52c41a",border:"rgba(82,196,26,0.25)"},warning:{tint:"rgba(250,173,20,0.08)",accent:"#faad14",border:"rgba(250,173,20,0.30)"},error:{tint:"rgba(255,77,79,0.07)",accent:"#ff4d4f",border:"rgba(255,77,79,0.25)"},info:{tint:"rgba(12,102,255,0.07)",accent:"#0c66ff",border:"rgba(12,102,255,0.20)"}};function F({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",...g}){let{token:f}=z(),m=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:c,loading:d,...g,style:{boxShadow:c?"0 4px 16px rgba(0,0,0,0.08)":"0 1px 3px rgba(0,0,0,0.06)",transition:"box-shadow 200ms ease, transform 200ms ease",backgroundColor:"default"!==u?m.tint:void 0,borderColor:m.border,borderTopColor:"default"!==u?m.accent:m.border,borderTopWidth:"default"!==u?3:1,overflow:"hidden",...g.style},children:[l,t&&(0,i.jsx)(h,{mt:3,pt:3,style:{borderTop:`1px solid ${f.colorBorder}`},children:t})]})}var{useToken:P}=n.theme;function A({variant:e="default",color:r,children:o,closable:t,onClose:l,icon:a,className:s,onClick:c,...d}){let{token:u}=P(),g={success:u.colorSuccess,warning:u.colorWarning,error:u.colorError,info:u.colorInfo,default:u.colorPrimary,neutral:u.colorTextSecondary},f=["kb-ui-tag",s].filter(Boolean).join(" ");return(0,i.jsx)(n.Tag,{color:r??g[e],closable:t,onClose:l,icon:a,className:f,onClick:c,style:c?{cursor:"pointer"}:void 0,...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 W={},N=null;function _(e){N=e}function H({icon:e,name:r,size:o="base",color:n="inherit",spin:t=!1,onClick:a,className:s,style:c}){let d=[W.uiIcon,"anticon",W[`size-${o}`],W[`color-${n}`],t&&W.spin,a&&W.clickable,s].filter(Boolean).join(" "),u=null,g=r||("string"==typeof e?e:null);return(g?N?u=N(g):(console.warn(`Icon "${g}" 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:g}=Q(),f={default:g.colorFillSecondary,info:g.colorInfoBg,success:g.colorSuccessBg,warning:g.colorWarningBg,error:g.colorErrorBg},m={default:g.colorTextSecondary,info:g.colorInfo,success:g.colorSuccess,warning:g.colorWarning,error:g.colorError};return"up"===l?g.colorSuccess:"down"===l?g.colorError:g.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:g.borderRadiusSM,backgroundColor:f[t],display:"flex",alignItems:"center",justifyContent:"center",color:m[t],fontSize:16,marginBottom:g.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:g.marginXS},children:(0,i.jsxs)(x,{size:"sm",style:{color:a>=0?g.colorSuccess:g.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:g,style:f,scroll:m}){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:g,style:f,scroll:m})}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 eg({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:m}){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?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)(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]}}]},...m})]})]});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 em(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 ek(e){return(0,i.jsx)(n.List,{...e})}function ev(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:g,...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:g,...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,...g}){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,...g})}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 eE=n.Form.useForm;function eF(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,...g}){let f=(0,i.jsx)(n.Switch,{checked:e,defaultChecked:r,disabled:o,loading:t,size:l,checkedChildren:c,unCheckedChildren:d,onChange:u,...g});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 eW(e){return(0,i.jsx)(n.DatePicker.RangePicker,{...e})}function eN(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=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.onClick}));return(0,i.jsx)(n.Breadcrumb,{items:t,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:g}){let[m,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=m.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:g})}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 g=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:g,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:"0 1px 3px rgba(0,0,0,0.06)"},minHeight:a?void 0:"100%",...t};return(0,i.jsx)(h,{as:"main",className:n,style:s,children:e})}var{useToken:e5}=n.theme;function e3({title:e,subtitle:r,breadcrumb:o,actions:n,className:l,style:a}){let{token:s}=e5(),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:e4}=n.theme;function e7({title:e,description:r,icon:o,breadcrumbs:n,actions:t,tabs:l,onBack:a,children:s}){let{token:c}=e4(),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,fontSize:c.fontSizeHeading3,fontWeight:c.fontWeightStrong,color:c.colorTextHeading,lineHeight:1.3},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:g}){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:g})}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:g}=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 m={padding:t.spacing["8"],textAlign:"center",...u};return(0,i.jsx)(h,{className:d,style:m,children:(0,i.jsxs)(y,{direction:"column",align:"center",gap:3,children:[e&&(0,i.jsx)(h,{style:{fontSize:"48px",color:g.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:g}=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:g.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:g.colorErrorBg,borderRadius:g.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 rg(e){return(0,i.jsx)(n.Result,{...e})}var rf=n.message;function rm(){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:g,onCancel:f,onClose:m,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:g,onCancel:f||m,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 rk({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 rv(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
|
+
.kb-md { font-size: ${n.fontSize}px; line-height: 1.75; color: ${n.colorText}; font-family: ${n.fontFamily}; }
|
|
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.5em 0 0.5em; color:${n.colorTextHeading}; }
|
|
4
|
+
.kb-md h1 { font-size:${n.fontSizeHeading1}px; padding-bottom:0.3em; border-bottom:1px solid ${n.colorBorderSecondary}; }
|
|
5
|
+
.kb-md h2 { font-size:${n.fontSizeHeading2}px; padding-bottom:0.2em; border-bottom:1px solid ${n.colorBorderSecondary}; }
|
|
6
|
+
.kb-md h3 { font-size:${n.fontSizeHeading3}px; }
|
|
7
|
+
.kb-md h4 { font-size:${n.fontSizeHeading4}px; }
|
|
8
|
+
.kb-md p { margin:0.75em 0; }
|
|
9
|
+
.kb-md a { color:${n.colorPrimary}; text-decoration:none; }
|
|
10
|
+
.kb-md a:hover { text-decoration:underline; }
|
|
11
|
+
.kb-md code { font-family:${n.fontFamilyCode}; font-size:0.875em; background:${n.colorFillTertiary}; color:${n.colorTextSecondary}; padding:0.15em 0.4em; border-radius:${n.borderRadiusSM}px; }
|
|
12
|
+
.kb-md pre { background:${n.colorFillQuaternary}; border:1px solid ${n.colorBorderSecondary}; border-radius:${n.borderRadius}px; padding:16px; overflow-x:auto; margin:1em 0; }
|
|
13
|
+
.kb-md pre code { background:none; padding:0; font-size:0.85em; color:${n.colorText}; }
|
|
14
|
+
.kb-md ul,.kb-md ol { padding-left:1.75em; margin:0.75em 0; }
|
|
15
|
+
.kb-md li { margin:0.25em 0; }
|
|
16
|
+
.kb-md blockquote { margin:1em 0; padding:0.5em 1em; border-left:4px solid ${n.colorPrimaryBorder}; background:${n.colorFillQuaternary}; color:${n.colorTextSecondary}; border-radius:0 ${n.borderRadiusSM}px ${n.borderRadiusSM}px 0; }
|
|
17
|
+
.kb-md blockquote p { margin:0; }
|
|
18
|
+
.kb-md hr { border:none; border-top:1px solid ${n.colorBorderSecondary}; margin:1.5em 0; }
|
|
19
|
+
.kb-md table { width:100%; border-collapse:collapse; margin:1em 0; font-size:0.9em; }
|
|
20
|
+
.kb-md th,.kb-md td { border:1px solid ${n.colorBorderSecondary}; padding:8px 12px; text-align:left; }
|
|
21
|
+
.kb-md th { background:${n.colorFillTertiary}; font-weight:600; }
|
|
22
|
+
.kb-md tr:nth-child(even) td { background:${n.colorFillQuaternary}; }
|
|
23
|
+
.kb-md img { max-width:100%; border-radius:${n.borderRadius}px; }
|
|
24
|
+
`;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,m.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},g={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},m=r$(c,s);return(0,i.jsx)(h,{className:t,style:u,children:(0,i.jsx)("pre",{style:g,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:m}})})})}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 rE({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:()=>F,UICheckbox:()=>eP,UICheckboxGroup:()=>eA,UICol:()=>T,UIColumnChart:()=>ei,UICopyButton:()=>J,UIDatePicker:()=>eD,UIDescriptions:()=>ex,UIDescriptionsItem:()=>eh,UIDiffViewer:()=>rE,UIDivider:()=>w,UIDrawer:()=>rv,UIDropdown:()=>eQ,UIDropdownButton:()=>eq,UIEmptyState:()=>rr,UIErrorState:()=>rn,UIFlex:()=>y,UIForm:()=>e$,UIFormItem:()=>ez,UIFormList:()=>eF,UIHeader:()=>e3,UIIcon:()=>H,UIIconButton:()=>G,UIInput:()=>eT,UIInputNumber:()=>eN,UIInputPassword:()=>ew,UIInputSearch:()=>eB,UIInputTextArea:()=>eC,UIJsonViewer:()=>rM,UILineChart:()=>en,UIList:()=>ek,UIListItem:()=>ev,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:()=>eW,UIResult:()=>rg,UIRow:()=>U,UISegmented:()=>eZ,UISelect:()=>eM,UIShimmerText:()=>Y,UISkeleton:()=>ri,UISkeletonButton:()=>rl,UISkeletonImage:()=>rs,UISkeletonInput:()=>ra,UISkeletonNode:()=>rc,UISkeletonText:()=>rd,UISlider:()=>eX,UISpace:()=>k,UISpaceCompact:()=>v,UISpin:()=>ru,UIStack:()=>S,UIStatistic:()=>ef,UIStatisticCountdown:()=>em,UIStatisticsChart:()=>eg,UISteps:()=>e0,UISwitch:()=>eR,UITable:()=>Z,UITabs:()=>eY,UITag:()=>A,UIText:()=>x,UITimePicker:()=>eL,UITimeline:()=>ey,UITimelineItem:()=>eb,UITitle:()=>L,UITooltip:()=>rk,UITree:()=>ej,UITreeDirectoryTree:()=>eI,UITreeNode:()=>eS,UITypographyLink:()=>I,UITypographyParagraph:()=>j,UITypographyText:()=>b,UIUpload:()=>eG,UIUploadDragger:()=>eO,createFillFunction:()=>er,registerIconRenderer:()=>_,useChartColors:()=>ee,useUIForm:()=>eE,useUIMessage:()=>rm,useUINotification:()=>rx,useUITheme:()=>K})}}]);
|