cc-viewer 1.6.101 → 1.6.103

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.
Files changed (64) hide show
  1. package/dist/assets/{App-BBYpOuu_.js → App-BBvSoVXY.js} +2 -2
  2. package/dist/assets/App-CIrOLEUO.css +1 -0
  3. package/dist/assets/AppHeader-CErNTjPI.css +41 -0
  4. package/dist/assets/{AppHeader.module-BnJxNjb3.js → AppHeader.module-vvUFsHXM.js} +118 -118
  5. package/dist/assets/{Mobile-B45U1CR5.js → Mobile-DohCgbyn.js} +1 -1
  6. package/dist/assets/{_basePickBy-BGQPijSO.js → _basePickBy-BrfYZj3Y.js} +1 -1
  7. package/dist/assets/{_baseUniq-D2O6bN8B.js → _baseUniq-DMaMw77b.js} +1 -1
  8. package/dist/assets/{arc-VMC-v7W7.js → arc-BGOJYkE4.js} +1 -1
  9. package/dist/assets/{architectureDiagram-2XIMDMQ5-BZGG3iqP.js → architectureDiagram-2XIMDMQ5-DWgBODiK.js} +1 -1
  10. package/dist/assets/{blockDiagram-WCTKOSBZ-DedyCCrb.js → blockDiagram-WCTKOSBZ-Ew0R5Vqp.js} +1 -1
  11. package/dist/assets/{c4Diagram-IC4MRINW-DS_hEYwQ.js → c4Diagram-IC4MRINW-J6MVc0Rh.js} +1 -1
  12. package/dist/assets/channel-CoGh8UkR.js +1 -0
  13. package/dist/assets/{chunk-4BX2VUAB-DypjSQT6.js → chunk-4BX2VUAB-VnORRleA.js} +1 -1
  14. package/dist/assets/{chunk-55IACEB6-BT0Td0q-.js → chunk-55IACEB6-CRt6Tgqw.js} +1 -1
  15. package/dist/assets/{chunk-FMBD7UC4-DXETedGB.js → chunk-FMBD7UC4-BHS6_2Ma.js} +1 -1
  16. package/dist/assets/{chunk-JSJVCQXG-Cax8-4nn.js → chunk-JSJVCQXG-DAgNrtm1.js} +1 -1
  17. package/dist/assets/{chunk-KX2RTZJC-BPrujhaW.js → chunk-KX2RTZJC-B-ajtONe.js} +1 -1
  18. package/dist/assets/{chunk-NQ4KR5QH-BoMDswtP.js → chunk-NQ4KR5QH-D5FtoUXJ.js} +1 -1
  19. package/dist/assets/{chunk-QZHKN3VN-B_ivIY8D.js → chunk-QZHKN3VN-CFIvpF1v.js} +1 -1
  20. package/dist/assets/{chunk-WL4C6EOR-CmOBGvG0.js → chunk-WL4C6EOR-CfBQY3FB.js} +1 -1
  21. package/dist/assets/classDiagram-VBA2DB6C-MQTWgRHU.js +1 -0
  22. package/dist/assets/classDiagram-v2-RAHNMMFH-MQTWgRHU.js +1 -0
  23. package/dist/assets/clone-j6xlKGqn.js +1 -0
  24. package/dist/assets/{cose-bilkent-S5V4N54A-nv6vURYC.js → cose-bilkent-S5V4N54A-DAN2TaCP.js} +1 -1
  25. package/dist/assets/{dagre-KLK3FWXG-0jAOYRYq.js → dagre-KLK3FWXG-DJdNS0go.js} +1 -1
  26. package/dist/assets/{diagram-E7M64L7V-kPWpWYvG.js → diagram-E7M64L7V--9WV0IpT.js} +1 -1
  27. package/dist/assets/{diagram-IFDJBPK2-bfBhcZP8.js → diagram-IFDJBPK2-BWFJfESs.js} +1 -1
  28. package/dist/assets/{diagram-P4PSJMXO-oikndtPa.js → diagram-P4PSJMXO-DxKaU1bC.js} +1 -1
  29. package/dist/assets/{erDiagram-INFDFZHY-COhc3Amy.js → erDiagram-INFDFZHY-CY5xeT2e.js} +1 -1
  30. package/dist/assets/{flowDiagram-PKNHOUZH-CXHBHVes.js → flowDiagram-PKNHOUZH-DtovDnKC.js} +1 -1
  31. package/dist/assets/{ganttDiagram-A5KZAMGK-4EP-gvee.js → ganttDiagram-A5KZAMGK-CIJjSouD.js} +1 -1
  32. package/dist/assets/{gitGraphDiagram-K3NZZRJ6-UTfQb5xM.js → gitGraphDiagram-K3NZZRJ6-DecTEYkc.js} +1 -1
  33. package/dist/assets/{graph-ae-gCpYS.js → graph-DcmDRnyu.js} +1 -1
  34. package/dist/assets/{index-JVINTRHF.js → index-CLO6hAyp.js} +2 -2
  35. package/dist/assets/{infoDiagram-LFFYTUFH-C0KeBZvg.js → infoDiagram-LFFYTUFH-DtrHvlRL.js} +1 -1
  36. package/dist/assets/{ishikawaDiagram-PHBUUO56-C4L4KOhm.js → ishikawaDiagram-PHBUUO56-D3XZnvPT.js} +1 -1
  37. package/dist/assets/{journeyDiagram-4ABVD52K-Digs-6UV.js → journeyDiagram-4ABVD52K-GFMllNia.js} +1 -1
  38. package/dist/assets/{kanban-definition-K7BYSVSG-Dxv7OUmZ.js → kanban-definition-K7BYSVSG-CmjYov7U.js} +1 -1
  39. package/dist/assets/{layout-gcnhk8gE.js → layout-Ch0AGZ4e.js} +1 -1
  40. package/dist/assets/{linear-5pPeAau8.js → linear-BJuNamF_.js} +1 -1
  41. package/dist/assets/{mermaid.core-BOeIicct.js → mermaid.core-BX-Kc9Vc.js} +4 -4
  42. package/dist/assets/{mindmap-definition-YRQLILUH-BRwB5vXt.js → mindmap-definition-YRQLILUH-Dfup7cCi.js} +1 -1
  43. package/dist/assets/{pieDiagram-SKSYHLDU-CGNK8icc.js → pieDiagram-SKSYHLDU-kaV6qMwy.js} +1 -1
  44. package/dist/assets/{quadrantDiagram-337W2JSQ-DdomAzpe.js → quadrantDiagram-337W2JSQ-CStyWHTW.js} +1 -1
  45. package/dist/assets/{requirementDiagram-Z7DCOOCP-NvyatAtF.js → requirementDiagram-Z7DCOOCP-mDK_Ripr.js} +1 -1
  46. package/dist/assets/{sankeyDiagram-WA2Y5GQK-DsAVUcBB.js → sankeyDiagram-WA2Y5GQK-DjGtu9Aq.js} +1 -1
  47. package/dist/assets/{sequenceDiagram-2WXFIKYE-Cg46sIQ7.js → sequenceDiagram-2WXFIKYE-BqoqSdDf.js} +1 -1
  48. package/dist/assets/{stateDiagram-RAJIS63D-Ck46r6YV.js → stateDiagram-RAJIS63D-CYPuVTaj.js} +1 -1
  49. package/dist/assets/stateDiagram-v2-FVOUBMTO-BMiMo2OL.js +1 -0
  50. package/dist/assets/{timeline-definition-YZTLITO2-CHJNCYyD.js → timeline-definition-YZTLITO2-CKHiEpTq.js} +1 -1
  51. package/dist/assets/{treemap-KZPCXAKY-DXKtPDjr.js → treemap-KZPCXAKY-Ps7CFSpF.js} +1 -1
  52. package/dist/assets/{vennDiagram-LZ73GAT5-fsQIMTxs.js → vennDiagram-LZ73GAT5-BgaV77Hv.js} +1 -1
  53. package/dist/assets/{xychartDiagram-JWTSCODW-4e0Fki4N.js → xychartDiagram-JWTSCODW-Cry2CbYr.js} +1 -1
  54. package/dist/index.html +1 -1
  55. package/lib/perm-bridge.js +6 -2
  56. package/package.json +1 -1
  57. package/server.js +17 -2
  58. package/dist/assets/App-CgZHfTgY.css +0 -1
  59. package/dist/assets/AppHeader-DfrWS2HG.css +0 -41
  60. package/dist/assets/channel-WI7nHgn7.js +0 -1
  61. package/dist/assets/classDiagram-VBA2DB6C-B3ddfJTa.js +0 -1
  62. package/dist/assets/classDiagram-v2-RAHNMMFH-B3ddfJTa.js +0 -1
  63. package/dist/assets/clone-P1u2BPlp.js +0 -1
  64. package/dist/assets/stateDiagram-v2-FVOUBMTO-BPwCapik.js +0 -1
@@ -1,4 +1,4 @@
1
- var Ms=Object.defineProperty;var Es=(n,s,t)=>s in n?Ms(n,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[s]=t;var O=(n,s,t)=>Es(n,typeof s!="symbol"?s+"":s,t);import{r as j,R as q,j as e,a as Rs}from"./index-JVINTRHF.js";import{M as Is,N as Ls,_ as se,c as te,P as ct,Q as Ps,U as dt,d as bt,V as ge,W as Nt,X as nt,Y as _t,Z as As,$ as yt,a0 as Ds,a1 as St,a2 as Bs,g as Os,m as Fs,u as Be,a3 as $s,a4 as Hs,a5 as zs,a6 as Vs,a7 as Us,a8 as qs,a9 as Ws,aa as kt,C as vt,I as pe,ab as Ks,ac as Kt,ad as Gs,ae as Gt,af as Js,ag as Qs,ah as Ys,e as le,t as p,q as ze,v as Xs,w as Ce,f as Zs,h as ea,j as ta,s as d,o as W,n as ie,ai as Jt,aj as Fe,ak as G,al as Ke,am as Oe,k as sa,an as aa,l as Ve,ao as na,ap as je,S as Qt,B as H,aq as la,ar as ia,as as $e,at as oa,au as me,av as wt,aw as we,y as ra,J as ca,ax as Yt,H as Te,ay as qe,E as ht,az as Tt,G as ut,aA as da,O as Xt,aB as ha,aC as ua,aD as ma,aE as Ee,aF as Mt,aG as pa,aH as Et,aI as Zt,aJ as es,aK as Re,aL as Ie,aM as ts,aN as lt,aO as Rt,aP as It,aQ as Lt,aR as ga,aS as fa,A as xa,aT as We,aU as Pt,aV as ya,z as va,x as E,D as ja,aW as Ca}from"./AppHeader.module-BnJxNjb3.js";var At=j.createContext(null),ss=j.createContext({}),ba=["prefixCls","className","containerRef"],Na=function(s){var t=s.prefixCls,a=s.className,c=s.containerRef,l=Is(s,ba),u=j.useContext(ss),g=u.panel,i=Ls(g,c);return j.createElement("div",se({className:te("".concat(t,"-content"),a),role:"dialog",ref:i},ct(s,{aria:!0}),{"aria-modal":"true"},l))};function Dt(n){return typeof n=="string"&&String(Number(n))===n?(Ps(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(n)):n}var Bt={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function _a(n,s){var t,a,c,l=n.prefixCls,u=n.open,g=n.placement,i=n.inline,h=n.push,o=n.forceRender,r=n.autoFocus,m=n.keyboard,v=n.classNames,x=n.rootClassName,f=n.rootStyle,y=n.zIndex,C=n.className,k=n.id,_=n.style,b=n.motion,T=n.width,R=n.height,P=n.children,I=n.mask,M=n.maskClosable,B=n.maskMotion,F=n.maskClassName,ae=n.maskStyle,ne=n.afterOpenChange,A=n.onClose,X=n.onMouseEnter,oe=n.onMouseOver,Z=n.onMouseLeave,he=n.onClick,ue=n.onKeyDown,fe=n.onKeyUp,N=n.styles,U=n.drawerRender,ee=j.useRef(),de=j.useRef(),xe=j.useRef();j.useImperativeHandle(s,function(){return ee.current});var be=function(re){var Pe=re.keyCode,Ae=re.shiftKey;switch(Pe){case nt.TAB:{if(Pe===nt.TAB){if(!Ae&&document.activeElement===xe.current){var De;(De=de.current)===null||De===void 0||De.focus({preventScroll:!0})}else if(Ae&&document.activeElement===de.current){var at;(at=xe.current)===null||at===void 0||at.focus({preventScroll:!0})}}break}case nt.ESC:{A&&m&&(re.stopPropagation(),A(re));break}}};j.useEffect(function(){if(u&&r){var Y;(Y=ee.current)===null||Y===void 0||Y.focus({preventScroll:!0})}},[u]);var Ne=j.useState(!1),_e=dt(Ne,2),ye=_e[0],Q=_e[1],L=j.useContext(At),$;typeof h=="boolean"?$=h?{}:{distance:0}:$=h||{};var K=(t=(a=(c=$)===null||c===void 0?void 0:c.distance)!==null&&a!==void 0?a:L==null?void 0:L.pushDistance)!==null&&t!==void 0?t:180,ve=j.useMemo(function(){return{pushDistance:K,push:function(){Q(!0)},pull:function(){Q(!1)}}},[K]);j.useEffect(function(){if(u){var Y;L==null||(Y=L.push)===null||Y===void 0||Y.call(L)}else{var re;L==null||(re=L.pull)===null||re===void 0||re.call(L)}},[u]),j.useEffect(function(){return function(){var Y;L==null||(Y=L.pull)===null||Y===void 0||Y.call(L)}},[]);var Ue=j.createElement(bt,se({key:"mask"},B,{visible:I&&u}),function(Y,re){var Pe=Y.className,Ae=Y.style;return j.createElement("div",{className:te("".concat(l,"-mask"),Pe,v==null?void 0:v.mask,F),style:ge(ge(ge({},Ae),ae),N==null?void 0:N.mask),onClick:M&&u?A:void 0,ref:re})}),ks=typeof b=="function"?b(g):b,ke={};if(ye&&K)switch(g){case"top":ke.transform="translateY(".concat(K,"px)");break;case"bottom":ke.transform="translateY(".concat(-K,"px)");break;case"left":ke.transform="translateX(".concat(K,"px)");break;default:ke.transform="translateX(".concat(-K,"px)");break}g==="left"||g==="right"?ke.width=Dt(T):ke.height=Dt(R);var ws={onMouseEnter:X,onMouseOver:oe,onMouseLeave:Z,onClick:he,onKeyDown:ue,onKeyUp:fe},Ts=j.createElement(bt,se({key:"panel"},ks,{visible:u,forceRender:o,onVisibleChanged:function(re){ne==null||ne(re)},removeOnLeave:!1,leavedClassName:"".concat(l,"-content-wrapper-hidden")}),function(Y,re){var Pe=Y.className,Ae=Y.style,De=j.createElement(Na,se({id:k,containerRef:re,prefixCls:l,className:te(C,v==null?void 0:v.content),style:ge(ge({},_),N==null?void 0:N.content)},ct(n,{aria:!0}),ws),P);return j.createElement("div",se({className:te("".concat(l,"-content-wrapper"),v==null?void 0:v.wrapper,Pe),style:ge(ge(ge({},ke),Ae),N==null?void 0:N.wrapper)},ct(n,{data:!0})),U?U(De):De)}),Ct=ge({},f);return y&&(Ct.zIndex=y),j.createElement(At.Provider,{value:ve},j.createElement("div",{className:te(l,"".concat(l,"-").concat(g),x,Nt(Nt({},"".concat(l,"-open"),u),"".concat(l,"-inline"),i)),style:Ct,tabIndex:-1,ref:ee,onKeyDown:be},Ue,j.createElement("div",{tabIndex:0,ref:de,style:Bt,"aria-hidden":"true","data-sentinel":"start"}),Ts,j.createElement("div",{tabIndex:0,ref:xe,style:Bt,"aria-hidden":"true","data-sentinel":"end"})))}var Sa=j.forwardRef(_a),ka=function(s){var t=s.open,a=t===void 0?!1:t,c=s.prefixCls,l=c===void 0?"rc-drawer":c,u=s.placement,g=u===void 0?"right":u,i=s.autoFocus,h=i===void 0?!0:i,o=s.keyboard,r=o===void 0?!0:o,m=s.width,v=m===void 0?378:m,x=s.mask,f=x===void 0?!0:x,y=s.maskClosable,C=y===void 0?!0:y,k=s.getContainer,_=s.forceRender,b=s.afterOpenChange,T=s.destroyOnClose,R=s.onMouseEnter,P=s.onMouseOver,I=s.onMouseLeave,M=s.onClick,B=s.onKeyDown,F=s.onKeyUp,ae=s.panelRef,ne=j.useState(!1),A=dt(ne,2),X=A[0],oe=A[1],Z=j.useState(!1),he=dt(Z,2),ue=he[0],fe=he[1];_t(function(){fe(!0)},[]);var N=ue?a:!1,U=j.useRef(),ee=j.useRef();_t(function(){N&&(ee.current=document.activeElement)},[N]);var de=function(ye){var Q;if(oe(ye),b==null||b(ye),!ye&&ee.current&&!((Q=U.current)!==null&&Q!==void 0&&Q.contains(ee.current))){var L;(L=ee.current)===null||L===void 0||L.focus({preventScroll:!0})}},xe=j.useMemo(function(){return{panel:ae}},[ae]);if(!_&&!X&&!N&&T)return null;var be={onMouseEnter:R,onMouseOver:P,onMouseLeave:I,onClick:M,onKeyDown:B,onKeyUp:F},Ne=ge(ge({},s),{},{open:N,prefixCls:l,placement:g,autoFocus:h,keyboard:r,width:v,mask:f,maskClosable:C,inline:k===!1,afterOpenChange:de,ref:U},be);return j.createElement(ss.Provider,{value:xe},j.createElement(As,{open:N||_||X,autoDestroy:!1,getContainer:k,autoLock:f&&(N||X)},j.createElement(Sa,Ne)))};const as=n=>{var s,t;const{prefixCls:a,ariaId:c,title:l,footer:u,extra:g,closable:i,loading:h,onClose:o,headerStyle:r,bodyStyle:m,footerStyle:v,children:x,classNames:f,styles:y}=n,C=yt("drawer");let k;i===!1?k=void 0:i===void 0||i===!0?k="start":k=(i==null?void 0:i.placement)==="end"?"end":"start";const _=j.useCallback(I=>j.createElement("button",{type:"button",onClick:o,className:te(`${a}-close`,{[`${a}-close-${k}`]:k==="end"})},I),[o,a,k]),[b,T]=Ds(St(n),St(C),{closable:!0,closeIconRender:_}),R=()=>{var I,M;return!l&&!b?null:j.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(I=C.styles)===null||I===void 0?void 0:I.header),r),y==null?void 0:y.header),className:te(`${a}-header`,{[`${a}-header-close-only`]:b&&!l&&!g},(M=C.classNames)===null||M===void 0?void 0:M.header,f==null?void 0:f.header)},j.createElement("div",{className:`${a}-header-title`},k==="start"&&T,l&&j.createElement("div",{className:`${a}-title`,id:c},l)),g&&j.createElement("div",{className:`${a}-extra`},g),k==="end"&&T)},P=()=>{var I,M;if(!u)return null;const B=`${a}-footer`;return j.createElement("div",{className:te(B,(I=C.classNames)===null||I===void 0?void 0:I.footer,f==null?void 0:f.footer),style:Object.assign(Object.assign(Object.assign({},(M=C.styles)===null||M===void 0?void 0:M.footer),v),y==null?void 0:y.footer)},u)};return j.createElement(j.Fragment,null,R(),j.createElement("div",{className:te(`${a}-body`,f==null?void 0:f.body,(s=C.classNames)===null||s===void 0?void 0:s.body),style:Object.assign(Object.assign(Object.assign({},(t=C.styles)===null||t===void 0?void 0:t.body),m),y==null?void 0:y.body)},h?j.createElement(Bs,{active:!0,title:!1,paragraph:{rows:5},className:`${a}-body-skeleton`}):x),P())},wa=n=>{const s="100%";return{left:`translateX(-${s})`,right:`translateX(${s})`,top:`translateY(-${s})`,bottom:`translateY(${s})`}[n]},ns=(n,s)=>({"&-enter, &-appear":Object.assign(Object.assign({},n),{"&-active":s}),"&-leave":Object.assign(Object.assign({},s),{"&-active":n})}),ls=(n,s)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${s}`}}},ns({opacity:n},{opacity:1})),Ta=(n,s)=>[ls(.7,s),ns({transform:wa(n)},{transform:"none"})],Ma=n=>{const{componentCls:s,motionDurationSlow:t}=n;return{[s]:{[`${s}-mask-motion`]:ls(0,t),[`${s}-panel-motion`]:["left","right","top","bottom"].reduce((a,c)=>Object.assign(Object.assign({},a),{[`&-${c}`]:Ta(c,t)}),{})}}},Ea=n=>{const{borderRadiusSM:s,componentCls:t,zIndexPopup:a,colorBgMask:c,colorBgElevated:l,motionDurationSlow:u,motionDurationMid:g,paddingXS:i,padding:h,paddingLG:o,fontSizeLG:r,lineHeightLG:m,lineWidth:v,lineType:x,colorSplit:f,marginXS:y,colorIcon:C,colorIconHover:k,colorBgTextHover:_,colorBgTextActive:b,colorText:T,fontWeightStrong:R,footerPaddingBlock:P,footerPaddingInline:I,calc:M}=n,B=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:a,pointerEvents:"none",color:T,"&-pure":{position:"relative",background:l,display:"flex",flexDirection:"column",[`&${t}-left`]:{boxShadow:n.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:n.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:n.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:n.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:a,background:c,pointerEvents:"auto"},[B]:{position:"absolute",zIndex:a,maxWidth:"100vw",transition:`all ${u}`,"&-hidden":{display:"none"}},[`&-left > ${B}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:n.boxShadowDrawerLeft},[`&-right > ${B}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:n.boxShadowDrawerRight},[`&-top > ${B}`]:{top:0,insetInline:0,boxShadow:n.boxShadowDrawerUp},[`&-bottom > ${B}`]:{bottom:0,insetInline:0,boxShadow:n.boxShadowDrawerDown},[`${t}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:l,pointerEvents:"auto"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Be(h)} ${Be(o)}`,fontSize:r,lineHeight:m,borderBottom:`${Be(v)} ${x} ${f}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:Object.assign({display:"inline-flex",width:M(r).add(i).equal(),height:M(r).add(i).equal(),borderRadius:s,justifyContent:"center",alignItems:"center",color:C,fontWeight:R,fontSize:r,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${g}`,textRendering:"auto",[`&${t}-close-end`]:{marginInlineStart:y},[`&:not(${t}-close-end)`]:{marginInlineEnd:y},"&:hover":{color:k,backgroundColor:_,textDecoration:"none"},"&:active":{backgroundColor:b}},$s(n)),[`${t}-title`]:{flex:1,margin:0,fontWeight:n.fontWeightStrong,fontSize:r,lineHeight:m},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:o,overflow:"auto",[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${t}-footer`]:{flexShrink:0,padding:`${Be(P)} ${Be(I)}`,borderTop:`${Be(v)} ${x} ${f}`},"&-rtl":{direction:"rtl"}}}},Ra=n=>({zIndexPopup:n.zIndexPopupBase,footerPaddingBlock:n.paddingXS,footerPaddingInline:n.padding}),is=Os("Drawer",n=>{const s=Fs(n,{});return[Ea(s),Ma(s)]},Ra);var os=function(n,s){var t={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&s.indexOf(a)<0&&(t[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(n);c<a.length;c++)s.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(n,a[c])&&(t[a[c]]=n[a[c]]);return t};const Ia={distance:180},Ge=n=>{const{rootClassName:s,width:t,height:a,size:c="default",mask:l=!0,push:u=Ia,open:g,afterOpenChange:i,onClose:h,prefixCls:o,getContainer:r,panelRef:m=null,style:v,className:x,"aria-labelledby":f,visible:y,afterVisibleChange:C,maskStyle:k,drawerStyle:_,contentWrapperStyle:b,destroyOnClose:T,destroyOnHidden:R}=n,P=os(n,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","panelRef","style","className","aria-labelledby","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle","destroyOnClose","destroyOnHidden"]),I=Hs(),M=P.title?I:void 0,{getPopupContainer:B,getPrefixCls:F,direction:ae,className:ne,style:A,classNames:X,styles:oe}=yt("drawer"),Z=F("drawer",o),[he,ue,fe]=is(Z),N=r===void 0&&B?()=>B(document.body):r,U=te({"no-mask":!l,[`${Z}-rtl`]:ae==="rtl"},s,ue,fe),ee=j.useMemo(()=>t??(c==="large"?736:378),[t,c]),de=j.useMemo(()=>a??(c==="large"?736:378),[a,c]),xe={motionName:kt(Z,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},be=K=>({motionName:kt(Z,`panel-motion-${K}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Ne=zs(),_e=Vs(m,Ne),[ye,Q]=Us("Drawer",P.zIndex),{classNames:L={},styles:$={}}=P;return he(j.createElement(qs,{form:!0,space:!0},j.createElement(Ws.Provider,{value:Q},j.createElement(ka,Object.assign({prefixCls:Z,onClose:h,maskMotion:xe,motion:be},P,{classNames:{mask:te(L.mask,X.mask),content:te(L.content,X.content),wrapper:te(L.wrapper,X.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},$.mask),k),oe.mask),content:Object.assign(Object.assign(Object.assign({},$.content),_),oe.content),wrapper:Object.assign(Object.assign(Object.assign({},$.wrapper),b),oe.wrapper)},open:g??y,mask:l,push:u,width:ee,height:de,style:Object.assign(Object.assign({},A),v),className:te(ne,x),rootClassName:U,getContainer:N,afterOpenChange:i??C,panelRef:_e,zIndex:ye,"aria-labelledby":f??M,destroyOnClose:R??T}),j.createElement(as,Object.assign({prefixCls:Z},P,{ariaId:M,onClose:h}))))))},La=n=>{const{prefixCls:s,style:t,className:a,placement:c="right"}=n,l=os(n,["prefixCls","style","className","placement"]),{getPrefixCls:u}=j.useContext(vt),g=u("drawer",s),[i,h,o]=is(g),r=te(g,`${g}-pure`,`${g}-${c}`,h,o,a);return i(j.createElement("div",{className:r,style:t},j.createElement(as,Object.assign({prefixCls:g},l))))};Ge._InternalPanelDoNotUseOrYouWillBeFired=La;var Pa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},Aa=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:Pa}))},Je=j.forwardRef(Aa),Da={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Ba=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:Da}))},Ot=j.forwardRef(Ba);function Oa(n,s,t){return typeof t=="boolean"?t:n.length?!0:Ks(s).some(c=>c.type===Kt)}var rs=function(n,s){var t={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&s.indexOf(a)<0&&(t[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(n);c<a.length;c++)s.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(n,a[c])&&(t[a[c]]=n[a[c]]);return t};function st({suffixCls:n,tagName:s,displayName:t}){return a=>j.forwardRef((l,u)=>j.createElement(a,Object.assign({ref:u,suffixCls:n,tagName:s},l)))}const jt=j.forwardRef((n,s)=>{const{prefixCls:t,suffixCls:a,className:c,tagName:l}=n,u=rs(n,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:g}=j.useContext(vt),i=g("layout",t),[h,o,r]=Gt(i),m=a?`${i}-${a}`:i;return h(j.createElement(l,Object.assign({className:te(t||m,c,o,r),ref:s},u)))}),Fa=j.forwardRef((n,s)=>{const{direction:t}=j.useContext(vt),[a,c]=j.useState([]),{prefixCls:l,className:u,rootClassName:g,children:i,hasSider:h,tagName:o,style:r}=n,m=rs(n,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),v=Gs(m,["suffixCls"]),{getPrefixCls:x,className:f,style:y}=yt("layout"),C=x("layout",l),k=Oa(a,i,h),[_,b,T]=Gt(C),R=te(C,{[`${C}-has-sider`]:k,[`${C}-rtl`]:t==="rtl"},f,u,g,b,T),P=j.useMemo(()=>({siderHook:{addSider:I=>{c(M=>[].concat(Js(M),[I]))},removeSider:I=>{c(M=>M.filter(B=>B!==I))}}}),[]);return _(j.createElement(Qs.Provider,{value:P},j.createElement(o,Object.assign({ref:s,className:R,style:Object.assign(Object.assign({},y),r)},v),i)))}),$a=st({tagName:"div",displayName:"Layout"})(Fa),Ha=st({suffixCls:"header",tagName:"header",displayName:"Header"})(jt),za=st({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(jt),Va=st({suffixCls:"content",tagName:"main",displayName:"Content"})(jt),Se=$a;Se.Header=Ha;Se.Footer=za;Se.Content=Va;Se.Sider=Kt;Se._InternalSiderContext=Ys;var Ua={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"},qa=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:Ua}))},Ft=j.forwardRef(qa),Wa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"},Ka=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:Wa}))},$t=j.forwardRef(Ka),Ga={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"},Ja=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:Ga}))},Ht=j.forwardRef(Ja),Qa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},Ya=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:Qa}))},Qe=j.forwardRef(Ya),Xa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"},Za=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:Xa}))},it=j.forwardRef(Za),en={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},tn=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:en}))},sn=j.forwardRef(tn),an={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},nn=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:an}))},ln=j.forwardRef(nn),on={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},rn=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:on}))},zt=j.forwardRef(rn),cn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},dn=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:cn}))},Vt=j.forwardRef(dn),hn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},un=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:hn}))},Ut=j.forwardRef(un),mn=Object.defineProperty,Ye=Object.getOwnPropertySymbols,cs=Object.prototype.hasOwnProperty,ds=Object.prototype.propertyIsEnumerable,qt=(n,s,t)=>s in n?mn(n,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[s]=t,mt=(n,s)=>{for(var t in s||(s={}))cs.call(s,t)&&qt(n,t,s[t]);if(Ye)for(var t of Ye(s))ds.call(s,t)&&qt(n,t,s[t]);return n},pt=(n,s)=>{var t={};for(var a in n)cs.call(n,a)&&s.indexOf(a)<0&&(t[a]=n[a]);if(n!=null&&Ye)for(var a of Ye(n))s.indexOf(a)<0&&ds.call(n,a)&&(t[a]=n[a]);return t};/**
1
+ var Ms=Object.defineProperty;var Es=(n,s,t)=>s in n?Ms(n,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[s]=t;var O=(n,s,t)=>Es(n,typeof s!="symbol"?s+"":s,t);import{r as j,R as q,j as e,a as Rs}from"./index-CLO6hAyp.js";import{M as Is,N as Ls,_ as se,c as te,P as ct,Q as Ps,U as dt,d as bt,V as ge,W as Nt,X as nt,Y as _t,Z as As,$ as yt,a0 as Ds,a1 as St,a2 as Bs,g as Os,m as Fs,u as Be,a3 as $s,a4 as Hs,a5 as zs,a6 as Vs,a7 as Us,a8 as qs,a9 as Ws,aa as kt,C as vt,I as pe,ab as Ks,ac as Kt,ad as Gs,ae as Gt,af as Js,ag as Qs,ah as Ys,e as le,t as p,q as ze,v as Xs,w as Ce,f as Zs,h as ea,j as ta,s as d,o as W,n as ie,ai as Jt,aj as Fe,ak as G,al as Ke,am as Oe,k as sa,an as aa,l as Ve,ao as na,ap as je,S as Qt,B as H,aq as la,ar as ia,as as $e,at as oa,au as me,av as wt,aw as we,y as ra,J as ca,ax as Yt,H as Te,ay as qe,E as ht,az as Tt,G as ut,aA as da,O as Xt,aB as ha,aC as ua,aD as ma,aE as Ee,aF as Mt,aG as pa,aH as Et,aI as Zt,aJ as es,aK as Re,aL as Ie,aM as ts,aN as lt,aO as Rt,aP as It,aQ as Lt,aR as ga,aS as fa,A as xa,aT as We,aU as Pt,aV as ya,z as va,x as E,D as ja,aW as Ca}from"./AppHeader.module-vvUFsHXM.js";var At=j.createContext(null),ss=j.createContext({}),ba=["prefixCls","className","containerRef"],Na=function(s){var t=s.prefixCls,a=s.className,c=s.containerRef,l=Is(s,ba),u=j.useContext(ss),g=u.panel,i=Ls(g,c);return j.createElement("div",se({className:te("".concat(t,"-content"),a),role:"dialog",ref:i},ct(s,{aria:!0}),{"aria-modal":"true"},l))};function Dt(n){return typeof n=="string"&&String(Number(n))===n?(Ps(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(n)):n}var Bt={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function _a(n,s){var t,a,c,l=n.prefixCls,u=n.open,g=n.placement,i=n.inline,h=n.push,o=n.forceRender,r=n.autoFocus,m=n.keyboard,v=n.classNames,x=n.rootClassName,f=n.rootStyle,y=n.zIndex,C=n.className,k=n.id,_=n.style,b=n.motion,T=n.width,R=n.height,P=n.children,I=n.mask,M=n.maskClosable,B=n.maskMotion,F=n.maskClassName,ae=n.maskStyle,ne=n.afterOpenChange,A=n.onClose,X=n.onMouseEnter,oe=n.onMouseOver,Z=n.onMouseLeave,he=n.onClick,ue=n.onKeyDown,fe=n.onKeyUp,N=n.styles,U=n.drawerRender,ee=j.useRef(),de=j.useRef(),xe=j.useRef();j.useImperativeHandle(s,function(){return ee.current});var be=function(re){var Pe=re.keyCode,Ae=re.shiftKey;switch(Pe){case nt.TAB:{if(Pe===nt.TAB){if(!Ae&&document.activeElement===xe.current){var De;(De=de.current)===null||De===void 0||De.focus({preventScroll:!0})}else if(Ae&&document.activeElement===de.current){var at;(at=xe.current)===null||at===void 0||at.focus({preventScroll:!0})}}break}case nt.ESC:{A&&m&&(re.stopPropagation(),A(re));break}}};j.useEffect(function(){if(u&&r){var Y;(Y=ee.current)===null||Y===void 0||Y.focus({preventScroll:!0})}},[u]);var Ne=j.useState(!1),_e=dt(Ne,2),ye=_e[0],Q=_e[1],L=j.useContext(At),$;typeof h=="boolean"?$=h?{}:{distance:0}:$=h||{};var K=(t=(a=(c=$)===null||c===void 0?void 0:c.distance)!==null&&a!==void 0?a:L==null?void 0:L.pushDistance)!==null&&t!==void 0?t:180,ve=j.useMemo(function(){return{pushDistance:K,push:function(){Q(!0)},pull:function(){Q(!1)}}},[K]);j.useEffect(function(){if(u){var Y;L==null||(Y=L.push)===null||Y===void 0||Y.call(L)}else{var re;L==null||(re=L.pull)===null||re===void 0||re.call(L)}},[u]),j.useEffect(function(){return function(){var Y;L==null||(Y=L.pull)===null||Y===void 0||Y.call(L)}},[]);var Ue=j.createElement(bt,se({key:"mask"},B,{visible:I&&u}),function(Y,re){var Pe=Y.className,Ae=Y.style;return j.createElement("div",{className:te("".concat(l,"-mask"),Pe,v==null?void 0:v.mask,F),style:ge(ge(ge({},Ae),ae),N==null?void 0:N.mask),onClick:M&&u?A:void 0,ref:re})}),ks=typeof b=="function"?b(g):b,ke={};if(ye&&K)switch(g){case"top":ke.transform="translateY(".concat(K,"px)");break;case"bottom":ke.transform="translateY(".concat(-K,"px)");break;case"left":ke.transform="translateX(".concat(K,"px)");break;default:ke.transform="translateX(".concat(-K,"px)");break}g==="left"||g==="right"?ke.width=Dt(T):ke.height=Dt(R);var ws={onMouseEnter:X,onMouseOver:oe,onMouseLeave:Z,onClick:he,onKeyDown:ue,onKeyUp:fe},Ts=j.createElement(bt,se({key:"panel"},ks,{visible:u,forceRender:o,onVisibleChanged:function(re){ne==null||ne(re)},removeOnLeave:!1,leavedClassName:"".concat(l,"-content-wrapper-hidden")}),function(Y,re){var Pe=Y.className,Ae=Y.style,De=j.createElement(Na,se({id:k,containerRef:re,prefixCls:l,className:te(C,v==null?void 0:v.content),style:ge(ge({},_),N==null?void 0:N.content)},ct(n,{aria:!0}),ws),P);return j.createElement("div",se({className:te("".concat(l,"-content-wrapper"),v==null?void 0:v.wrapper,Pe),style:ge(ge(ge({},ke),Ae),N==null?void 0:N.wrapper)},ct(n,{data:!0})),U?U(De):De)}),Ct=ge({},f);return y&&(Ct.zIndex=y),j.createElement(At.Provider,{value:ve},j.createElement("div",{className:te(l,"".concat(l,"-").concat(g),x,Nt(Nt({},"".concat(l,"-open"),u),"".concat(l,"-inline"),i)),style:Ct,tabIndex:-1,ref:ee,onKeyDown:be},Ue,j.createElement("div",{tabIndex:0,ref:de,style:Bt,"aria-hidden":"true","data-sentinel":"start"}),Ts,j.createElement("div",{tabIndex:0,ref:xe,style:Bt,"aria-hidden":"true","data-sentinel":"end"})))}var Sa=j.forwardRef(_a),ka=function(s){var t=s.open,a=t===void 0?!1:t,c=s.prefixCls,l=c===void 0?"rc-drawer":c,u=s.placement,g=u===void 0?"right":u,i=s.autoFocus,h=i===void 0?!0:i,o=s.keyboard,r=o===void 0?!0:o,m=s.width,v=m===void 0?378:m,x=s.mask,f=x===void 0?!0:x,y=s.maskClosable,C=y===void 0?!0:y,k=s.getContainer,_=s.forceRender,b=s.afterOpenChange,T=s.destroyOnClose,R=s.onMouseEnter,P=s.onMouseOver,I=s.onMouseLeave,M=s.onClick,B=s.onKeyDown,F=s.onKeyUp,ae=s.panelRef,ne=j.useState(!1),A=dt(ne,2),X=A[0],oe=A[1],Z=j.useState(!1),he=dt(Z,2),ue=he[0],fe=he[1];_t(function(){fe(!0)},[]);var N=ue?a:!1,U=j.useRef(),ee=j.useRef();_t(function(){N&&(ee.current=document.activeElement)},[N]);var de=function(ye){var Q;if(oe(ye),b==null||b(ye),!ye&&ee.current&&!((Q=U.current)!==null&&Q!==void 0&&Q.contains(ee.current))){var L;(L=ee.current)===null||L===void 0||L.focus({preventScroll:!0})}},xe=j.useMemo(function(){return{panel:ae}},[ae]);if(!_&&!X&&!N&&T)return null;var be={onMouseEnter:R,onMouseOver:P,onMouseLeave:I,onClick:M,onKeyDown:B,onKeyUp:F},Ne=ge(ge({},s),{},{open:N,prefixCls:l,placement:g,autoFocus:h,keyboard:r,width:v,mask:f,maskClosable:C,inline:k===!1,afterOpenChange:de,ref:U},be);return j.createElement(ss.Provider,{value:xe},j.createElement(As,{open:N||_||X,autoDestroy:!1,getContainer:k,autoLock:f&&(N||X)},j.createElement(Sa,Ne)))};const as=n=>{var s,t;const{prefixCls:a,ariaId:c,title:l,footer:u,extra:g,closable:i,loading:h,onClose:o,headerStyle:r,bodyStyle:m,footerStyle:v,children:x,classNames:f,styles:y}=n,C=yt("drawer");let k;i===!1?k=void 0:i===void 0||i===!0?k="start":k=(i==null?void 0:i.placement)==="end"?"end":"start";const _=j.useCallback(I=>j.createElement("button",{type:"button",onClick:o,className:te(`${a}-close`,{[`${a}-close-${k}`]:k==="end"})},I),[o,a,k]),[b,T]=Ds(St(n),St(C),{closable:!0,closeIconRender:_}),R=()=>{var I,M;return!l&&!b?null:j.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(I=C.styles)===null||I===void 0?void 0:I.header),r),y==null?void 0:y.header),className:te(`${a}-header`,{[`${a}-header-close-only`]:b&&!l&&!g},(M=C.classNames)===null||M===void 0?void 0:M.header,f==null?void 0:f.header)},j.createElement("div",{className:`${a}-header-title`},k==="start"&&T,l&&j.createElement("div",{className:`${a}-title`,id:c},l)),g&&j.createElement("div",{className:`${a}-extra`},g),k==="end"&&T)},P=()=>{var I,M;if(!u)return null;const B=`${a}-footer`;return j.createElement("div",{className:te(B,(I=C.classNames)===null||I===void 0?void 0:I.footer,f==null?void 0:f.footer),style:Object.assign(Object.assign(Object.assign({},(M=C.styles)===null||M===void 0?void 0:M.footer),v),y==null?void 0:y.footer)},u)};return j.createElement(j.Fragment,null,R(),j.createElement("div",{className:te(`${a}-body`,f==null?void 0:f.body,(s=C.classNames)===null||s===void 0?void 0:s.body),style:Object.assign(Object.assign(Object.assign({},(t=C.styles)===null||t===void 0?void 0:t.body),m),y==null?void 0:y.body)},h?j.createElement(Bs,{active:!0,title:!1,paragraph:{rows:5},className:`${a}-body-skeleton`}):x),P())},wa=n=>{const s="100%";return{left:`translateX(-${s})`,right:`translateX(${s})`,top:`translateY(-${s})`,bottom:`translateY(${s})`}[n]},ns=(n,s)=>({"&-enter, &-appear":Object.assign(Object.assign({},n),{"&-active":s}),"&-leave":Object.assign(Object.assign({},s),{"&-active":n})}),ls=(n,s)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${s}`}}},ns({opacity:n},{opacity:1})),Ta=(n,s)=>[ls(.7,s),ns({transform:wa(n)},{transform:"none"})],Ma=n=>{const{componentCls:s,motionDurationSlow:t}=n;return{[s]:{[`${s}-mask-motion`]:ls(0,t),[`${s}-panel-motion`]:["left","right","top","bottom"].reduce((a,c)=>Object.assign(Object.assign({},a),{[`&-${c}`]:Ta(c,t)}),{})}}},Ea=n=>{const{borderRadiusSM:s,componentCls:t,zIndexPopup:a,colorBgMask:c,colorBgElevated:l,motionDurationSlow:u,motionDurationMid:g,paddingXS:i,padding:h,paddingLG:o,fontSizeLG:r,lineHeightLG:m,lineWidth:v,lineType:x,colorSplit:f,marginXS:y,colorIcon:C,colorIconHover:k,colorBgTextHover:_,colorBgTextActive:b,colorText:T,fontWeightStrong:R,footerPaddingBlock:P,footerPaddingInline:I,calc:M}=n,B=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:a,pointerEvents:"none",color:T,"&-pure":{position:"relative",background:l,display:"flex",flexDirection:"column",[`&${t}-left`]:{boxShadow:n.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:n.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:n.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:n.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:a,background:c,pointerEvents:"auto"},[B]:{position:"absolute",zIndex:a,maxWidth:"100vw",transition:`all ${u}`,"&-hidden":{display:"none"}},[`&-left > ${B}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:n.boxShadowDrawerLeft},[`&-right > ${B}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:n.boxShadowDrawerRight},[`&-top > ${B}`]:{top:0,insetInline:0,boxShadow:n.boxShadowDrawerUp},[`&-bottom > ${B}`]:{bottom:0,insetInline:0,boxShadow:n.boxShadowDrawerDown},[`${t}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:l,pointerEvents:"auto"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Be(h)} ${Be(o)}`,fontSize:r,lineHeight:m,borderBottom:`${Be(v)} ${x} ${f}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:Object.assign({display:"inline-flex",width:M(r).add(i).equal(),height:M(r).add(i).equal(),borderRadius:s,justifyContent:"center",alignItems:"center",color:C,fontWeight:R,fontSize:r,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${g}`,textRendering:"auto",[`&${t}-close-end`]:{marginInlineStart:y},[`&:not(${t}-close-end)`]:{marginInlineEnd:y},"&:hover":{color:k,backgroundColor:_,textDecoration:"none"},"&:active":{backgroundColor:b}},$s(n)),[`${t}-title`]:{flex:1,margin:0,fontWeight:n.fontWeightStrong,fontSize:r,lineHeight:m},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:o,overflow:"auto",[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${t}-footer`]:{flexShrink:0,padding:`${Be(P)} ${Be(I)}`,borderTop:`${Be(v)} ${x} ${f}`},"&-rtl":{direction:"rtl"}}}},Ra=n=>({zIndexPopup:n.zIndexPopupBase,footerPaddingBlock:n.paddingXS,footerPaddingInline:n.padding}),is=Os("Drawer",n=>{const s=Fs(n,{});return[Ea(s),Ma(s)]},Ra);var os=function(n,s){var t={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&s.indexOf(a)<0&&(t[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(n);c<a.length;c++)s.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(n,a[c])&&(t[a[c]]=n[a[c]]);return t};const Ia={distance:180},Ge=n=>{const{rootClassName:s,width:t,height:a,size:c="default",mask:l=!0,push:u=Ia,open:g,afterOpenChange:i,onClose:h,prefixCls:o,getContainer:r,panelRef:m=null,style:v,className:x,"aria-labelledby":f,visible:y,afterVisibleChange:C,maskStyle:k,drawerStyle:_,contentWrapperStyle:b,destroyOnClose:T,destroyOnHidden:R}=n,P=os(n,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","panelRef","style","className","aria-labelledby","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle","destroyOnClose","destroyOnHidden"]),I=Hs(),M=P.title?I:void 0,{getPopupContainer:B,getPrefixCls:F,direction:ae,className:ne,style:A,classNames:X,styles:oe}=yt("drawer"),Z=F("drawer",o),[he,ue,fe]=is(Z),N=r===void 0&&B?()=>B(document.body):r,U=te({"no-mask":!l,[`${Z}-rtl`]:ae==="rtl"},s,ue,fe),ee=j.useMemo(()=>t??(c==="large"?736:378),[t,c]),de=j.useMemo(()=>a??(c==="large"?736:378),[a,c]),xe={motionName:kt(Z,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},be=K=>({motionName:kt(Z,`panel-motion-${K}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Ne=zs(),_e=Vs(m,Ne),[ye,Q]=Us("Drawer",P.zIndex),{classNames:L={},styles:$={}}=P;return he(j.createElement(qs,{form:!0,space:!0},j.createElement(Ws.Provider,{value:Q},j.createElement(ka,Object.assign({prefixCls:Z,onClose:h,maskMotion:xe,motion:be},P,{classNames:{mask:te(L.mask,X.mask),content:te(L.content,X.content),wrapper:te(L.wrapper,X.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},$.mask),k),oe.mask),content:Object.assign(Object.assign(Object.assign({},$.content),_),oe.content),wrapper:Object.assign(Object.assign(Object.assign({},$.wrapper),b),oe.wrapper)},open:g??y,mask:l,push:u,width:ee,height:de,style:Object.assign(Object.assign({},A),v),className:te(ne,x),rootClassName:U,getContainer:N,afterOpenChange:i??C,panelRef:_e,zIndex:ye,"aria-labelledby":f??M,destroyOnClose:R??T}),j.createElement(as,Object.assign({prefixCls:Z},P,{ariaId:M,onClose:h}))))))},La=n=>{const{prefixCls:s,style:t,className:a,placement:c="right"}=n,l=os(n,["prefixCls","style","className","placement"]),{getPrefixCls:u}=j.useContext(vt),g=u("drawer",s),[i,h,o]=is(g),r=te(g,`${g}-pure`,`${g}-${c}`,h,o,a);return i(j.createElement("div",{className:r,style:t},j.createElement(as,Object.assign({prefixCls:g},l))))};Ge._InternalPanelDoNotUseOrYouWillBeFired=La;var Pa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},Aa=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:Pa}))},Je=j.forwardRef(Aa),Da={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Ba=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:Da}))},Ot=j.forwardRef(Ba);function Oa(n,s,t){return typeof t=="boolean"?t:n.length?!0:Ks(s).some(c=>c.type===Kt)}var rs=function(n,s){var t={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&s.indexOf(a)<0&&(t[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(n);c<a.length;c++)s.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(n,a[c])&&(t[a[c]]=n[a[c]]);return t};function st({suffixCls:n,tagName:s,displayName:t}){return a=>j.forwardRef((l,u)=>j.createElement(a,Object.assign({ref:u,suffixCls:n,tagName:s},l)))}const jt=j.forwardRef((n,s)=>{const{prefixCls:t,suffixCls:a,className:c,tagName:l}=n,u=rs(n,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:g}=j.useContext(vt),i=g("layout",t),[h,o,r]=Gt(i),m=a?`${i}-${a}`:i;return h(j.createElement(l,Object.assign({className:te(t||m,c,o,r),ref:s},u)))}),Fa=j.forwardRef((n,s)=>{const{direction:t}=j.useContext(vt),[a,c]=j.useState([]),{prefixCls:l,className:u,rootClassName:g,children:i,hasSider:h,tagName:o,style:r}=n,m=rs(n,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),v=Gs(m,["suffixCls"]),{getPrefixCls:x,className:f,style:y}=yt("layout"),C=x("layout",l),k=Oa(a,i,h),[_,b,T]=Gt(C),R=te(C,{[`${C}-has-sider`]:k,[`${C}-rtl`]:t==="rtl"},f,u,g,b,T),P=j.useMemo(()=>({siderHook:{addSider:I=>{c(M=>[].concat(Js(M),[I]))},removeSider:I=>{c(M=>M.filter(B=>B!==I))}}}),[]);return _(j.createElement(Qs.Provider,{value:P},j.createElement(o,Object.assign({ref:s,className:R,style:Object.assign(Object.assign({},y),r)},v),i)))}),$a=st({tagName:"div",displayName:"Layout"})(Fa),Ha=st({suffixCls:"header",tagName:"header",displayName:"Header"})(jt),za=st({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(jt),Va=st({suffixCls:"content",tagName:"main",displayName:"Content"})(jt),Se=$a;Se.Header=Ha;Se.Footer=za;Se.Content=Va;Se.Sider=Kt;Se._InternalSiderContext=Ys;var Ua={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"},qa=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:Ua}))},Ft=j.forwardRef(qa),Wa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"},Ka=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:Wa}))},$t=j.forwardRef(Ka),Ga={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"},Ja=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:Ga}))},Ht=j.forwardRef(Ja),Qa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},Ya=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:Qa}))},Qe=j.forwardRef(Ya),Xa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"},Za=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:Xa}))},it=j.forwardRef(Za),en={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},tn=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:en}))},sn=j.forwardRef(tn),an={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},nn=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:an}))},ln=j.forwardRef(nn),on={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},rn=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:on}))},zt=j.forwardRef(rn),cn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},dn=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:cn}))},Vt=j.forwardRef(dn),hn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},un=function(s,t){return j.createElement(pe,se({},s,{ref:t,icon:hn}))},Ut=j.forwardRef(un),mn=Object.defineProperty,Ye=Object.getOwnPropertySymbols,cs=Object.prototype.hasOwnProperty,ds=Object.prototype.propertyIsEnumerable,qt=(n,s,t)=>s in n?mn(n,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[s]=t,mt=(n,s)=>{for(var t in s||(s={}))cs.call(s,t)&&qt(n,t,s[t]);if(Ye)for(var t of Ye(s))ds.call(s,t)&&qt(n,t,s[t]);return n},pt=(n,s)=>{var t={};for(var a in n)cs.call(n,a)&&s.indexOf(a)<0&&(t[a]=n[a]);if(n!=null&&Ye)for(var a of Ye(n))s.indexOf(a)<0&&ds.call(n,a)&&(t[a]=n[a]);return t};/**
2
2
  * @license QR Code generator library (TypeScript)
3
3
  * Copyright (c) Project Nayuki.
4
4
  * SPDX-License-Identifier: MIT
@@ -24,7 +24,7 @@ var Ms=Object.defineProperty;var Es=(n,s,t)=>s in n?Ms(n,s,{enumerable:!0,config
24
24
 
25
25
 
26
26
  `)}renderProjectStatsContent(){const{projectStats:t,projectStatsLoading:a}=this.state;if(a)return e.jsx("div",{className:d.projectStatsCenter,children:e.jsx(Qt,{})});if(!t)return e.jsx("div",{className:d.projectStatsEmpty,children:p("ui.projectStats.noData")});const{summary:c,models:l,updatedAt:u}=t;l&&Object.entries(l).sort((h,o)=>o[1]-h[1]);const g={};if(t.files){for(const h of Object.values(t.files))if(h.models)for(const[o,r]of Object.entries(h.models))g[o]||(g[o]={input:0,output:0,cacheRead:0,cacheCreation:0,count:0}),g[o].input+=r.input_tokens||0,g[o].output+=r.output_tokens||0,g[o].cacheRead+=r.cache_read_input_tokens||0,g[o].cacheCreation+=r.cache_creation_input_tokens||0,g[o].count+=r.count||0}const i=Object.entries(g).sort((h,o)=>o[1].count-h[1].count);return e.jsxs("div",{className:d.projectStatsContent,children:[u&&e.jsx("div",{className:d.projectStatsUpdated,children:p("ui.projectStats.updatedAt",{time:new Date(u).toLocaleString()})}),e.jsxs("div",{className:d.projectStatsSummary,children:[e.jsxs("div",{className:d.projectStatCard,children:[e.jsx("div",{className:d.projectStatValue,children:(c==null?void 0:c.requestCount)??0}),e.jsx("div",{className:d.projectStatLabel,children:p("ui.projectStats.totalRequests")})]}),e.jsxs("div",{className:d.projectStatCard,children:[e.jsx("div",{className:d.projectStatValue,children:(c==null?void 0:c.turnCount)??(c==null?void 0:c.sessionCount)??0}),e.jsx("div",{className:d.projectStatLabel,children:p("ui.projectStats.turnCount")})]}),e.jsxs("div",{className:d.projectStatCard,children:[e.jsx("div",{className:d.projectStatValue,children:(c==null?void 0:c.fileCount)??0}),e.jsx("div",{className:d.projectStatLabel,children:p("ui.projectStats.totalFiles")})]}),e.jsxs("div",{className:d.projectStatCard,children:[e.jsx("div",{className:d.projectStatValue,children:W(c==null?void 0:c.input_tokens)}),e.jsx("div",{className:d.projectStatLabel,children:"Input Tokens"})]}),e.jsxs("div",{className:d.projectStatCard,children:[e.jsx("div",{className:d.projectStatValue,children:W(c==null?void 0:c.output_tokens)}),e.jsx("div",{className:d.projectStatLabel,children:"Output Tokens"})]})]}),i.length>0&&e.jsxs("div",{className:d.projectStatsSection,children:[e.jsx("div",{className:d.projectStatsSectionTitle,children:p("ui.projectStats.modelUsage")}),i.map(([h,o])=>{const r=o.input+o.cacheRead+o.cacheCreation,m=r>0?(o.cacheRead/r*100).toFixed(1):"0.0";return e.jsxs("div",{className:d.projectStatsModelCard,children:[e.jsxs("div",{className:d.projectStatsModelHeader,children:[e.jsx("span",{className:d.projectStatsModelName,children:h}),e.jsxs("span",{className:d.projectStatsModelCount,children:[o.count," reqs"]})]}),e.jsx("table",{className:d.statsTable,children:e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("td",{className:d.label,children:"Token"}),e.jsx("td",{className:d.th,children:"input"}),e.jsx("td",{className:d.th,children:"output"})]}),e.jsxs("tr",{className:d.rowBorder,children:[e.jsx("td",{className:d.label}),e.jsx("td",{className:d.td,children:W(r)}),e.jsx("td",{className:d.td,children:W(o.output)})]}),e.jsxs("tr",{children:[e.jsx("td",{className:d.label,children:"Cache"}),e.jsx("td",{className:d.th,children:"create"}),e.jsx("td",{className:d.th,children:"read"})]}),e.jsxs("tr",{className:d.rowBorder,children:[e.jsx("td",{className:d.label}),e.jsx("td",{className:d.td,children:W(o.cacheCreation)}),e.jsx("td",{className:d.td,children:W(o.cacheRead)})]}),e.jsxs("tr",{children:[e.jsx("td",{className:d.label,children:p("ui.hitRate")}),e.jsxs("td",{colSpan:2,className:d.td,children:[m,"%"]})]})]})})]},h)})]})]})}render(){const{requestCount:t,requests:a=[],viewMode:c,cacheType:l,onToggleViewMode:u,onImportLocalLogs:g,onLangChange:i,isLocalLog:h,localLogFile:o,projectName:r,collapseToolResults:m,onCollapseToolResultsChange:v,expandThinking:x,onExpandThinkingChange:f,showFullToolContent:y,onShowFullToolContentChange:C,expandDiff:k,onExpandDiffChange:_,filterIrrelevant:b,onFilterIrrelevantChange:T,logDir:R,onLogDirChange:P,updateInfo:I,onDismissUpdate:M,cliMode:B,terminalVisible:F,onToggleTerminal:ae,onReturnToWorkspaces:ne,contextWindow:A,serverCachedContent:X,resumeAutoChoice:oe,onResumeAutoChoiceToggle:Z,onResumeAutoChoiceChange:he}=this.props,{countdownText:ue}=this.state,fe=[{key:"import-local",icon:e.jsx(zt,{}),label:p("ui.importLocalLogs"),onClick:g},{key:"export-prompts",icon:e.jsx(sn,{}),label:p("ui.exportPrompts"),onClick:this.handleShowPrompts},{key:"plugin-management",icon:e.jsx(Ft,{}),label:p("ui.pluginManagement"),onClick:this.handleShowPlugins},{key:"switch-workspace",icon:e.jsx(zt,{className:d.iconMirror}),label:e.jsx("span",{className:d.disabledMenuItem,children:p("ui.switchWorkspace")}),disabled:!0},{key:"process-management",icon:e.jsx(it,{}),label:p("ui.processManagement"),onClick:this.handleShowProcesses},{key:"proxy-switch",icon:e.jsx(Ot,{}),label:p("ui.proxySwitch"),onClick:()=>this.setState({proxyModalVisible:!0})},{type:"divider"},{key:"project-stats",icon:e.jsx($t,{}),label:p("ui.projectStats"),onClick:this.handleShowProjectStats},...c==="raw"?[{key:"global-settings",icon:e.jsx(Vt,{}),label:p("ui.globalSettings"),onClick:()=>this.setState({globalSettingsVisible:!0})}]:[],...c==="chat"?[{key:"display-settings",icon:e.jsx(Vt,{}),label:p("ui.settings"),onClick:()=>this.setState({settingsDrawerVisible:!0})}]:[],{key:"language",icon:e.jsx(ln,{}),label:p("ui.languageSettings"),children:[{key:"lang-grid-container",type:"group",label:e.jsx("div",{className:d.langGrid,children:_n.map(N=>e.jsx(H,{size:"small",type:N.value===ia()?"primary":"default",onClick:U=>{U.stopPropagation(),la(N.value),i&&i()},className:d.langBtn,children:N.label},N.value))})}]}];return e.jsxs("div",{className:d.headerBar,children:[e.jsxs($e,{size:"middle",children:[e.jsx(oa,{menu:{items:fe,className:"logo-dropdown-menu"},trigger:["hover"],onOpenChange:N=>this.setState({logoDropdownOpen:N}),align:{offset:[-4,0]},children:e.jsx("span",{className:`${d.logoWrap}${this.state.logoDropdownOpen?` ${d.logoWrapActive}`:""}`,children:e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`${d.logoImage}${this.state.logoDropdownOpen?` ${d.logoImageActive}`:""}`,children:[e.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),e.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),e.jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})})}),e.jsx(Oe,{content:this.renderTokenStats(),trigger:"hover",placement:"bottomLeft",overlayInnerStyle:{background:"#1e1e1e",border:"1px solid #3a3a3a",borderRadius:8,padding:"8px 8px",maxHeight:"80vh",overflowY:"auto"},children:e.jsxs(me,{className:d.tokenStatsTag,children:[e.jsx(it,{className:d.tokenStatsIcon}),p("ui.tokenStats")]})}),this.props.activeProxyId&&this.props.activeProxyId!=="max"&&(()=>{const N=(this.props.proxyProfiles||[]).find(U=>U.id===this.props.activeProxyId);return N?e.jsxs(me,{className:d.proxyProfileTag,onClick:()=>this.setState({proxyModalVisible:!0}),children:[e.jsx(Ot,{className:d.proxySwapIcon}),N.name,N.activeModel?` · ${N.activeModel}`:""]}):null})(),(()=>{var xe,be,Ne,_e,ye;let N=0;const U=ot.find(Q=>Q.value===this.state.calibrationModel),ee=U==null?void 0:U.tokens;if(!h){if(ee&&(A==null?void 0:A.used_percentage)!=null){const Q=$=>{var ve,Ue;const K=(Ue=(ve=$.response)==null?void 0:ve.body)==null?void 0:Ue.usage;return((K==null?void 0:K.input_tokens)||0)+((K==null?void 0:K.cache_creation_input_tokens)||0)+((K==null?void 0:K.cache_read_input_tokens)||0)};let L=0;for(let $=a.length-1;$>=0;$--)if(Ce(a[$])&&((be=(xe=a[$].response)==null?void 0:xe.body)!=null&&be.usage)){L=Q(a[$]);break}if(L>0){const $=ee*.835;N=Math.min(100,Math.max(0,Math.round(L/$*100)))}else{const $=A.context_window_size||2e5;N=Math.min(100,Math.max(0,Math.round(A.used_percentage*$/ee/83.5*100)))}}else if((A==null?void 0:A.used_percentage)!=null){const Q=this.state.settingsModel?wt(this.state.settingsModel):0,L=A.context_window_size||2e5;Q&&Q!==L?N=Math.min(100,Math.max(0,Math.round(A.used_percentage*L/Q/83.5*100))):N=Math.min(100,Math.max(0,Math.round(A.used_percentage/83.5*100)))}else if(a.length>0){const Q=L=>{var K,ve;const $=(ve=(K=L.response)==null?void 0:K.body)==null?void 0:ve.usage;return(($==null?void 0:$.input_tokens)||0)+(($==null?void 0:$.cache_creation_input_tokens)||0)+(($==null?void 0:$.cache_read_input_tokens)||0)};for(let L=a.length-1;L>=0;L--)if(Ce(a[L])&&((_e=(Ne=a[L].response)==null?void 0:Ne.body)!=null&&_e.usage)){const $=Q(a[L]),ve=(ee||(A==null?void 0:A.context_window_size)||wt(((ye=a[L].body)==null?void 0:ye.model)||this.state.settingsModel))*.835;ve>0&&$>0&&(N=Math.min(100,Math.max(0,Math.round($/ve*100))));break}}}N===0&&this._lastContextPercent>0&&(N=this._lastContextPercent);const de=N>=80?"#ff4d4f":N>=60?"#faad14":"#52c41a";return h?e.jsx(me,{className:`${d.liveTag} ${d.liveTagHistory}`,children:e.jsx("span",{className:d.liveTagText,children:p("ui.historyLog",{file:o})})}):e.jsx(Oe,{content:this.state._cachePopoverOpen?this.renderCacheContentPopover(N):e.jsx("div",{className:d.cachePopoverPlaceholder}),trigger:"hover",placement:"bottomLeft",overlayInnerStyle:{background:"#1e1e1e",border:"1px solid #3a3a3a",borderRadius:8,padding:"8px 8px"},onOpenChange:Q=>{this.setState({_cachePopoverOpen:Q}),Q||(this._cacheScrollInited=!1)},children:e.jsxs("span",{className:d.liveTag,style:{borderColor:de,color:de},children:[e.jsx("span",{className:d.liveTagFill,style:{width:`${N}%`,backgroundColor:de}}),e.jsx("span",{className:d.liveTagContent,children:e.jsxs("span",{className:d.liveTagText,children:[p("ui.liveMonitoring"),r?`:${r}`:""]})})]})})})(),I&&e.jsx(me,{color:I.type==="completed"?"green":"orange",closable:!0,onClose:()=>M&&M(),children:I.type==="completed"?p("ui.update.completed",{version:I.version}):p("ui.update.majorAvailable",{version:I.version})})]}),e.jsxs($e,{size:"middle",children:[ue&&c==="raw"&&e.jsxs(me,{style:{background:"#2a2a2a",border:"1px solid #3a3a3a",color:ue===p("ui.cacheExpired")?"#ff6b6b":"#ccc"},children:[p("ui.cacheCountdown",{type:l?`(${l})`:""}),e.jsx("strong",{className:d.countdownStrong,children:ue})]}),c==="chat"&&B&&!h&&this.state.localUrl&&e.jsxs(e.Fragment,{children:[this.state.countryFlag&&e.jsx(Oe,{content:this.state.countryInfo?e.jsxs("div",{className:d.countryInfoPopover,children:[e.jsxs("div",{children:[this.state.countryFlag," ",this.state.countryInfo.country]}),this.state.countryInfo.region&&e.jsx("div",{children:this.state.countryInfo.region}),this.state.countryInfo.city&&e.jsx("div",{children:this.state.countryInfo.city}),this.state.countryInfo.org&&e.jsx("div",{className:d.countryInfoMeta,children:this.state.countryInfo.org}),this.state.countryInfo.ip&&e.jsx("div",{className:d.countryInfoMeta,children:this.state.countryInfo.ip})]}):null,trigger:"hover",placement:"bottomRight",overlayInnerStyle:{background:"#1e1e1e",border:"1px solid #3a3a3a",borderRadius:8,padding:"8px 12px"},children:e.jsx(H,{className:d.compactBtnNoBorder,icon:e.jsx("span",{className:d.countryFlagIcon,children:this.state.countryFlag})})}),e.jsx(Oe,{content:e.jsxs("div",{className:d.qrcodePopover,children:[e.jsx("div",{className:d.qrcodeTitle,children:p("ui.scanToCoding")}),e.jsx(js,{value:this.state.localUrl,size:200,bgColor:"#141414",fgColor:"#d9d9d9",level:"M"}),e.jsx(we,{readOnly:!0,value:this.state.localUrl,className:d.qrcodeUrlInput,suffix:e.jsx(Fe,{className:d.qrcodeUrlCopy,onClick:()=>{navigator.clipboard.writeText(this.state.localUrl).then(()=>{G.success(p("ui.copied"))}).catch(()=>{})}})})]}),trigger:"hover",placement:"bottomRight",overlayInnerStyle:{background:"#1e1e1e",border:"1px solid #3a3a3a",borderRadius:8,padding:"8px 8px"},children:e.jsx(H,{className:d.compactBtnNoBorder,icon:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:d.svgIcon,children:[e.jsx("rect",{x:"5",y:"2",width:"14",height:"20",rx:"2",ry:"2"}),e.jsx("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"})]})})})]}),B&&c==="chat"&&!h&&e.jsx(H,{className:d.compactBtn,type:F?"primary":"default",ghost:F,icon:e.jsx(Qe,{}),onClick:ae,children:p("ui.terminal")}),e.jsx(H,{className:d.compactBtn,type:c==="raw"?"primary":"default",icon:c==="raw"?e.jsx(ra,{}):e.jsx(Je,{}),onClick:u,children:c==="raw"?p("ui.chatMode"):p("ui.rawMode")})]}),e.jsxs(je,{title:`${p("ui.userPrompt")} (${this.state.promptData.length}${p("ui.promptCountUnit")})`,open:this.state.promptModalVisible,onCancel:()=>this.setState({promptModalVisible:!1}),footer:null,width:700,children:[e.jsx("div",{className:d.promptExportBar,children:e.jsx(H,{icon:e.jsx(ca,{}),onClick:this.handleExportPromptsTxt,children:p("ui.exportPromptsTxt")})}),e.jsx(Yt,{activeKey:this.state.promptViewMode,onChange:N=>this.setState({promptViewMode:N}),size:"small",items:[{key:"original",label:p("ui.promptModeOriginal")},{key:"context",label:p("ui.promptModeContext")},{key:"text",label:p("ui.promptModeText")}]}),this.state.promptViewMode==="text"?e.jsx("textarea",{readOnly:!0,className:d.promptTextarea,value:this.buildTextModeContent()}):e.jsxs("div",{className:d.promptScrollArea,children:[this.state.promptData.length===0&&e.jsx("div",{className:d.promptEmpty,children:p("ui.noPrompt")}),this.state.promptData.map((N,U)=>{const ee=N.timestamp?new Date(N.timestamp).toLocaleString():p("ui.unknownTime");return e.jsxs("div",{children:[e.jsxs("div",{className:d.promptTimestamp,children:[ee,":"]}),this.state.promptViewMode==="original"?this.renderOriginalPrompt(N):this.renderTextPrompt(N)]},U)})]})]}),e.jsxs(Ge,{title:p("ui.settings"),placement:"left",width:360,open:this.state.settingsDrawerVisible,onClose:()=>this.setState({settingsDrawerVisible:!1}),children:[e.jsxs("div",{className:d.settingsGroupBox,children:[e.jsx("div",{className:d.settingsGroupTitle,children:p("ui.chatDisplaySwitches")}),e.jsxs("div",{className:d.settingsItem,children:[e.jsx("span",{className:d.settingsLabel,children:p("ui.collapseToolResults")}),e.jsx(Te,{checked:!!m,onChange:N=>v&&v(N)})]}),e.jsxs("div",{className:d.settingsItem,children:[e.jsx("span",{className:d.settingsLabel,children:p("ui.expandThinking")}),e.jsx(Te,{checked:!!x,onChange:N=>f&&f(N)})]}),e.jsxs("div",{className:d.settingsItem,children:[e.jsx("span",{className:d.settingsLabel,children:p("ui.showFullToolContent")}),e.jsx(Te,{checked:!!y,onChange:N=>C&&C(N)})]})]}),e.jsxs("div",{className:d.settingsGroupBox,children:[e.jsx("div",{className:d.settingsGroupTitle,children:p("ui.userPreferences")}),e.jsxs("div",{className:d.settingsItem,children:[e.jsx("span",{className:d.settingsLabel,children:p("ui.resumeAutoChoice")}),e.jsx(Te,{checked:!!oe,onChange:N=>Z&&Z(N)})]}),oe&&e.jsx("div",{className:d.settingsItem,children:e.jsxs(qe.Group,{value:oe,onChange:N=>he&&he(N.target.value),size:"small",children:[e.jsx(qe,{value:"continue",children:p("ui.resumeAutoChoice.continue")}),e.jsx(qe,{value:"new",children:p("ui.resumeAutoChoice.new")})]})})]})]}),e.jsxs(Ge,{title:e.jsxs("span",{children:[p("ui.globalSettings")," ",e.jsx(ie,{doc:"GlobalSettings"})]}),placement:"left",width:400,open:this.state.globalSettingsVisible,onClose:()=>this.setState({globalSettingsVisible:!1}),children:[e.jsxs("div",{className:d.settingsItem,children:[e.jsx("span",{className:d.settingsLabel,children:p("ui.filterIrrelevant")}),e.jsx(Te,{checked:!!b,onChange:N=>T&&T(N)})]}),e.jsxs("div",{className:d.settingsItem,children:[e.jsx("span",{className:d.settingsLabel,children:p("ui.expandDiff")}),e.jsx(Te,{checked:!!k,onChange:N=>_&&_(N)})]}),e.jsx("div",{className:d.settingsDivider}),e.jsx("div",{className:d.settingsLabel,children:p("ui.logDirTitle")}),e.jsx(we,{className:d.logDirInput,value:this.state.logDirDraft??R,onChange:N=>this.setState({logDirDraft:N.target.value}),onBlur:()=>{const N=this.state.logDirDraft;N!=null&&N!==R&&(P==null||P(N)),this.setState({logDirDraft:null})},onPressEnter:()=>{const N=this.state.logDirDraft;N!=null&&N!==R&&(P==null||P(N)),this.setState({logDirDraft:null})},placeholder:"~/.claude/cc-viewer"})]}),e.jsx(Ge,{title:e.jsxs("span",{children:[e.jsx($t,{className:d.titleIcon}),p("ui.projectStats")]}),placement:"left",width:400,open:this.state.projectStatsVisible,onClose:()=>this.setState({projectStatsVisible:!1}),children:this.renderProjectStatsContent()}),e.jsxs(je,{title:e.jsxs("span",{children:[e.jsx(Ft,{className:d.titleIcon}),p("ui.pluginManagement")]}),open:this.state.pluginModalVisible,onCancel:()=>this.setState({pluginModalVisible:!1}),footer:e.jsxs("div",{className:d.pluginModalFooter,children:[e.jsxs("div",{className:d.pluginModalFooterLeft,children:[e.jsx(H,{icon:e.jsx(Tt,{}),onClick:this.handleAddPlugin,children:p("ui.plugins.add")}),e.jsx(H,{icon:e.jsx(Ht,{}),onClick:this.handleShowCdnModal,children:p("ui.plugins.cdnInstall")})]}),e.jsx(H,{icon:e.jsx(ut,{}),onClick:this.handleReloadPlugins,children:p("ui.plugins.reload")})]}),width:560,children:[this.state.pluginsDir&&e.jsxs("div",{className:d.pluginDirHint,children:[e.jsxs("span",{className:d.pluginDirLabel,children:[p("ui.plugins.pluginsDir"),":"]})," ",e.jsx("code",{className:d.pluginDirPath,onClick:()=>{navigator.clipboard.writeText(this.state.pluginsDir).then(()=>{G.success(p("ui.copied"))}).catch(()=>{})},children:this.state.pluginsDir})]}),this.state.pluginsList.length===0?e.jsxs("div",{className:d.pluginEmpty,children:[e.jsx("div",{className:d.pluginEmptyTitle,children:p("ui.plugins.empty")}),e.jsx("div",{className:d.pluginEmptyHint,children:p("ui.plugins.emptyHint")})]}):e.jsx("div",{className:d.pluginList,children:this.state.pluginsList.map(N=>e.jsxs("div",{className:d.pluginItem,children:[e.jsxs("div",{className:d.pluginInfo,children:[e.jsx("span",{className:d.pluginName,children:N.name}),e.jsx("span",{className:d.pluginFile,children:N.file}),N.hooks.length>0&&e.jsx("span",{className:d.pluginHooks,children:N.hooks.map(U=>e.jsx("span",{className:d.pluginHookTag,children:U},U))})]}),e.jsxs("div",{className:d.pluginActions,children:[e.jsx(Te,{size:"small",checked:N.enabled,onChange:U=>this.handleTogglePlugin(N.name,U)}),e.jsx(H,{type:"text",size:"small",danger:!0,icon:e.jsx(ht,{}),onClick:()=>this.handleDeletePlugin(N.file,N.name)})]})]},N.file))})]}),e.jsx(je,{title:p("ui.plugins.delete"),open:this.state.deleteConfirmVisible,onCancel:()=>this.setState({deleteConfirmVisible:!1,deleteTarget:null}),onOk:this.handleDeletePluginConfirm,okType:"danger",okText:"OK",cancelText:"Cancel",children:e.jsx("p",{children:this.state.deleteTarget?p("ui.plugins.deleteConfirm",{name:this.state.deleteTarget.name}):""})}),e.jsx(je,{title:e.jsxs("span",{children:[e.jsx(Ht,{className:d.titleIcon}),p("ui.plugins.cdnInstall")]}),open:this.state.cdnModalVisible,onCancel:this.handleCdnCancel,onOk:this.handleCdnInstall,confirmLoading:this.state.cdnLoading,okText:p("ui.plugins.cdnInstallBtn"),cancelText:p("ui.cancel"),width:480,children:e.jsxs("div",{children:[e.jsx("div",{className:d.cdnUrlLabel,children:p("ui.plugins.cdnUrl")}),e.jsx(we,{placeholder:p("ui.plugins.cdnUrlPlaceholder"),value:this.state.cdnUrl,onChange:this.handleCdnUrlChange,onPressEnter:this.handleCdnInstall,className:d.cdnInput})]})}),e.jsx(je,{title:e.jsxs("span",{children:[e.jsx(it,{className:d.titleIcon}),p("ui.processManagement")]}),open:this.state.processModalVisible,onCancel:()=>this.setState({processModalVisible:!1}),footer:e.jsx(H,{icon:e.jsx(ut,{}),onClick:this.fetchProcesses,loading:this.state.processLoading,children:p("ui.processManagement.refresh")}),width:780,children:e.jsx(da,{dataSource:this.state.processList,rowKey:"pid",loading:this.state.processLoading,size:"middle",pagination:!1,columns:[{title:p("ui.processManagement.port"),dataIndex:"port",width:80,render:N=>N?e.jsx("a",{href:`${window.location.protocol}//127.0.0.1:${N}`,target:"_blank",rel:"noopener noreferrer",children:N}):""},{title:"PID",dataIndex:"pid",width:80},{title:p("ui.processManagement.command"),dataIndex:"command",ellipsis:!0},{title:p("ui.processManagement.startTime"),dataIndex:"startTime",width:200},{title:p("ui.processManagement.action"),width:100,render:(N,U)=>U.isCurrent?e.jsx(H,{size:"small",className:d.currentProcessBtn,children:p("ui.processManagement.current")}):e.jsx(H,{size:"small",danger:!0,onClick:()=>this.handleKillProcess(U.pid),children:p("ui.processManagement.kill")})}]})}),e.jsx(je,{title:e.jsxs("span",{children:[e.jsx(Xt,{apiEndpoint:le("/api/open-profile-dir"),title:p("ui.proxy.openConfigDir"),size:16})," ",p("ui.proxySwitch")," ",e.jsx(ie,{doc:"ProxySwitch",zIndex:1100})]}),open:this.state.proxyModalVisible,onCancel:()=>this.setState({proxyModalVisible:!1,editingProxy:null}),footer:null,width:520,children:this.renderProxyProfileList()})]})}renderProxyProfileList(){const t=this.props.proxyProfiles||[],a=this.props.activeProxyId||"max",{editingProxy:c,editForm:l}=this.state;return e.jsxs("div",{children:[e.jsxs("div",{className:d.proxyWarning,children:["⚠️ ",p("ui.proxy.maxWarning")]}),e.jsx("div",{className:d.proxyList,children:t.map(u=>{var g;return e.jsxs("div",{className:`${d.proxyItem} ${u.id===a?d.proxyItemActive:""}`,children:[e.jsxs("div",{className:d.proxyItemMain,onClick:()=>{if(u.id!==a){const i={active:u.id,profiles:t};this.props.onProxyProfileChange(i)}},children:[e.jsx(qe,{checked:u.id===a,style:{marginRight:8}}),e.jsxs("div",{className:d.proxyItemInfo,children:[e.jsxs("div",{className:d.proxyItemNameRow,children:[e.jsx("span",{className:d.proxyItemName,children:u.name}),u.id==="max"&&e.jsx(me,{className:d.proxyBuiltinTag,children:p("ui.proxy.builtin")})]}),u.id==="max"&&this.props.defaultConfig&&e.jsxs("div",{className:d.proxyItemDetail,children:[(()=>{try{return new URL(this.props.defaultConfig.origin).host}catch{return this.props.defaultConfig.origin}})(),this.props.defaultConfig.authType?` · ${this.props.defaultConfig.authType}`:"",this.props.defaultConfig.apiKey?` · ${this.props.defaultConfig.apiKey}`:"",this.props.defaultConfig.model?` · ${this.props.defaultConfig.model}`:""]}),u.id!=="max"&&u.baseURL&&e.jsxs("div",{className:d.proxyItemDetail,children:[(()=>{try{return new URL(u.baseURL).host}catch{return u.baseURL}})(),u.activeModel?` · ${u.activeModel}`:(g=u.models)!=null&&g.length?` · ${u.models[0]}`:""]})]})]}),u.id!=="max"&&e.jsxs("div",{className:d.proxyItemActions,children:[e.jsx(H,{type:"text",size:"small",icon:e.jsx(ha,{}),onClick:()=>this.setState({editingProxy:u.id,editForm:{name:u.name||"",baseURL:u.baseURL||"",apiKey:u.apiKey||"",models:(u.models||[]).join(", "),activeModel:u.activeModel||""}})}),e.jsx(H,{type:"text",size:"small",danger:!0,icon:e.jsx(ht,{}),onClick:()=>{je.confirm({title:p("ui.proxy.deleteProxy"),content:p("ui.proxy.deleteConfirm",{name:u.name}),okType:"danger",onOk:()=>{const i=t.filter(o=>o.id!==u.id),h=a===u.id?"max":a;this.props.onProxyProfileChange({active:h,profiles:i})}})}})]})]},u.id)})}),c&&e.jsxs("div",{className:d.proxyEditForm,children:[e.jsxs("div",{className:d.proxyEditRow,children:[e.jsxs("label",{children:[p("ui.proxy.name")," ",e.jsx("span",{className:d.proxyRequired,children:"*"})]}),e.jsx(we,{size:"small",value:l.name,onChange:u=>{const g=u.target.value;this.setState(i=>({editForm:{...i.editForm,name:g}}))}})]}),e.jsxs("div",{className:d.proxyEditRow,children:[e.jsxs("label",{children:[p("ui.proxy.baseURL")," ",e.jsx("span",{className:d.proxyRequired,children:"*"})]}),e.jsx(we,{size:"small",value:l.baseURL,onChange:u=>{const g=u.target.value;this.setState(i=>({editForm:{...i.editForm,baseURL:g}}))},placeholder:"https://api.example.com"})]}),e.jsxs("div",{className:d.proxyEditRow,children:[e.jsxs("label",{children:[p("ui.proxy.apiKey")," ",e.jsx("span",{className:d.proxyRequired,children:"*"})]}),e.jsx(we.Password,{size:"small",value:l.apiKey,onChange:u=>{const g=u.target.value;this.setState(i=>({editForm:{...i.editForm,apiKey:g}}))},placeholder:"sk-..."})]}),e.jsx("div",{className:d.proxyEditDivider}),e.jsxs("div",{className:d.proxyEditRow,children:[e.jsx("label",{children:p("ui.proxy.models")}),e.jsx(we,{size:"small",value:l.models,onChange:u=>{const g=u.target.value;this.setState(i=>({editForm:{...i.editForm,models:g}}))},placeholder:"model-1, model-2"})]}),e.jsxs("div",{className:d.proxyEditRow,children:[e.jsx("label",{children:p("ui.proxy.activeModel")}),e.jsx(Ke,{size:"small",className:d.fullWidthSelect,value:l.activeModel||void 0,onChange:u=>this.setState(g=>({editForm:{...g.editForm,activeModel:u}})),placeholder:p("ui.proxy.activeModel"),children:(l.models||"").split(",").map(u=>u.trim()).filter(Boolean).map(u=>e.jsx(Ke.Option,{value:u,children:u},u))})]}),e.jsxs("div",{className:d.proxyEditBtns,children:[e.jsx(H,{size:"small",icon:e.jsx(ua,{}),type:"primary",onClick:()=>{var h,o,r;if(!((h=l.name)!=null&&h.trim())||!((o=l.baseURL)!=null&&o.trim())||!((r=l.apiKey)!=null&&r.trim())){G.warning(p("ui.proxy.requiredFields"));return}const u=(l.models||"").split(",").map(m=>m.trim()).filter(Boolean),g={id:c==="__new__"?`proxy_${Date.now()}`:c,name:l.name.trim(),baseURL:l.baseURL.trim(),apiKey:l.apiKey.trim(),models:u,activeModel:l.activeModel||u[0]||""};let i;c==="__new__"?i=[...t,g]:i=t.map(m=>m.id===c?{...m,...g,id:m.id}:m),this.props.onProxyProfileChange({active:a,profiles:i}),this.setState({editingProxy:null})},children:p("ui.proxy.save")}),e.jsx(H,{size:"small",icon:e.jsx(ma,{}),onClick:()=>this.setState({editingProxy:null}),children:p("ui.proxy.cancel")})]})]}),!c&&e.jsx(H,{block:!0,type:"dashed",icon:e.jsx(Tt,{}),style:{marginTop:12},onClick:()=>this.setState({editingProxy:"__new__",editForm:{name:"",baseURL:"",apiKey:"",models:"",activeModel:""}}),children:p("ui.proxy.addProxy")})]})}};O(Me,"COMMAND_TAGS",new Set(["command-name","command-message","command-args","local-command-caveat","local-command-stdout"]));let Xe=Me;const Sn="_centerEmpty_18l8t_1",kn="_scrollContainer_18l8t_8",wn="_listItem_18l8t_15",Tn="_listItemActive_18l8t_27",Mn="_itemContent_18l8t_36",En="_itemHeader_18l8t_41",Rn="_tagNoMargin_18l8t_49",In="_modelName_18l8t_54",Ln="_modelNameMain_18l8t_59",Pn="_time_18l8t_63",An="_detailRow_18l8t_69",Dn="_urlText_18l8t_76",Bn="_duration_18l8t_85",On="_statusOk_18l8t_90",Fn="_statusErr_18l8t_96",$n="_statusDefault_18l8t_101",Hn="_usageBox_18l8t_106",zn="_cacheDot_18l8t_116",Vn="_cacheDotLoss_18l8t_125",Un="_cacheDotNormal_18l8t_130",qn="_tagMainAgent_18l8t_134",Wn="_tagPlan_18l8t_140",Kn="_tagMuted_18l8t_146",Gn="_tooltipPreLine_18l8t_152",V={centerEmpty:Sn,scrollContainer:kn,listItem:wn,listItemActive:Tn,itemContent:Mn,itemHeader:En,tagNoMargin:Rn,modelName:In,modelNameMain:Ln,time:Pn,detailRow:An,urlText:Dn,duration:Bn,statusOk:On,statusErr:Fn,statusDefault:$n,usageBox:Hn,cacheDot:zn,cacheDotLoss:Vn,cacheDotNormal:Un,tagMainAgent:qn,tagPlan:Wn,tagMuted:Kn,tooltipPreLine:Gn};class Jn extends q.Component{constructor(t){super(t);O(this,"handleKeyDown",t=>{if(t.key!=="ArrowUp"&&t.key!=="ArrowDown")return;const{requests:a,selectedIndex:c,onSelect:l}=this.props;if(!a.length)return;t.preventDefault();const u=c??0,g=t.key==="ArrowUp"?Math.max(0,u-1):Math.min(a.length-1,u+1);g!==u&&l(g)});this.activeItemRef=q.createRef()}componentDidMount(){this.scrollToSelected(!0)}shouldComponentUpdate(t){return t.requests!==this.props.requests||t.selectedIndex!==this.props.selectedIndex||t.scrollCenter!==this.props.scrollCenter||t.cacheLossMap!==this.props.cacheLossMap}componentDidUpdate(t){this.props.scrollCenter&&t.selectedIndex!==this.props.selectedIndex?this.scrollToSelected(!0):t.selectedIndex!==this.props.selectedIndex&&(this.scrollToSelected(!1),this.activeItemRef.current&&this.activeItemRef.current.focus({preventScroll:!0}))}scrollToSelected(t){this.activeItemRef.current&&(this.activeItemRef.current.scrollIntoView({block:t?"center":"nearest",behavior:"instant"}),t&&this.props.onScrollDone&&this.props.onScrollDone())}render(){const{requests:t,selectedIndex:a,onSelect:c}=this.props;return t.length===0?e.jsx("div",{className:V.centerEmpty,children:e.jsx(Ee,{description:p("ui.waitingRequests")})}):e.jsx("div",{className:V.scrollContainer,onKeyDown:this.handleKeyDown,children:e.jsx(Mt,{dataSource:t,size:"small",split:!1,renderItem:(l,u)=>{var T,R,P;const g=new Date(l.timestamp).toLocaleTimeString("zh-CN"),i=u===a,h=l.response&&l.response.status<400,o=l.response&&l.response.status>=400,r=pa((T=l.body)==null?void 0:T.model),m=u+1<t.length?t[u+1]:null,{type:v,subType:x}=Ve(l,m),f=(P=(R=l.response)==null?void 0:R.body)==null?void 0:P.usage,y=f?(f.input_tokens||0)+(f.cache_read_input_tokens||0)+(f.cache_creation_input_tokens||0):null,C=(f==null?void 0:f.output_tokens)||null,k=(f==null?void 0:f.cache_read_input_tokens)||0,_=(f==null?void 0:f.cache_creation_input_tokens)||0;let b=l.url;try{const I=new URL(l.url);b=I.host+I.pathname}catch{}return e.jsx(Mt.Item,{ref:i?this.activeItemRef:void 0,tabIndex:0,onClick:()=>c(u),className:`${V.listItem} ${i?V.listItemActive:""}`,children:e.jsxs("div",{className:V.itemContent,children:[e.jsxs("div",{className:V.itemHeader,children:[v==="MainAgent"?e.jsx(me,{className:`${V.tagNoMargin} ${V.tagMainAgent}`,children:"MainAgent"}):v==="Plan"?e.jsx(me,{className:`${V.tagNoMargin} ${V.tagPlan}`,children:Et(v,x)}):v==="Count"||v==="Preflight"?e.jsx(me,{className:`${V.tagNoMargin} ${V.tagMuted}`,children:v}):e.jsx(me,{className:V.tagNoMargin,children:Et(v,x)}),r&&e.jsx("span",{className:`${V.modelName} ${v==="MainAgent"?V.modelNameMain:""}`,children:r}),e.jsx("span",{className:V.time,children:g})]}),e.jsxs("div",{className:V.detailRow,children:[e.jsx("span",{className:V.urlText,title:l.url,children:b}),l.duration&&e.jsxs("span",{className:V.duration,children:[l.duration,"ms"]}),l.response&&e.jsx("span",{className:h?V.statusOk:o?V.statusErr:V.statusDefault,children:l.response.status})]}),f&&e.jsxs("div",{className:V.usageBox,children:[e.jsxs("div",{children:["token: output:",W(C)||0,", input: ",W(y)||0]}),(k>0||_>0)&&e.jsx("div",{children:(()=>{var F;const I=(F=this.props.cacheLossMap)==null?void 0:F.get(u),M={ttl:"ui.cacheLoss.ttl",system_change:"ui.cacheLoss.systemChange",tools_change:"ui.cacheLoss.toolsChange",model_change:"ui.cacheLoss.modelChange",msg_truncated:"ui.cacheLoss.msgTruncated",msg_modified:"ui.cacheLoss.msgModified",key_change:"ui.cacheLoss.keyChange"};let B;if(I){const ne=(I.reasons||[I.reason]).map(A=>p(M[A]||M.key_change)).join(`
27
- `);B=e.jsx(Zt,{title:e.jsx("span",{className:V.tooltipPreLine,children:ne}),children:e.jsx("span",{className:`${V.cacheDot} ${V.cacheDotLoss}`})})}else B=e.jsx("span",{className:`${V.cacheDot} ${V.cacheDotNormal}`});return e.jsxs(e.Fragment,{children:["cache",B,": ",k>0?`read:${W(k)}`:"",k>0&&_>0?", ":"",_>0?`create:${W(_)}`:""]})})()})]})]})})}})})}}const Qn=n=>typeof n=="boolean"||n instanceof Boolean,Yn=n=>typeof n=="number"||n instanceof Number,Xn=n=>typeof n=="bigint"||n instanceof BigInt,Cs=n=>!!n&&n instanceof Date,Zn=n=>typeof n=="string"||n instanceof String,el=n=>Array.isArray(n),bs=n=>typeof n=="object"&&n!==null,Ns=n=>!!n&&n instanceof Object&&typeof n=="function";function Ze(n,s){return s===void 0&&(s=!1),!n||s?`"${n}"`:n}function tl(n,s,t){return t?JSON.stringify(n):s?`"${n}"`:n}function _s(n){let{field:s,value:t,data:a,lastElement:c,openBracket:l,closeBracket:u,level:g,style:i,shouldExpandNode:h,clickToExpandNode:o,outerRef:r,beforeExpandChange:m}=n;const v=j.useRef(!1),[x,f]=j.useState(()=>h(g,t,s)),y=j.useRef(null);j.useEffect(()=>{v.current?f(h(g,t,s)):v.current=!0},[h]);const C=j.useId();if(a.length===0)return sl({field:s,openBracket:l,closeBracket:u,lastElement:c,style:i});const k=x?i.collapseIcon:i.expandIcon,_=x?i.ariaLables.collapseJson:i.ariaLables.expandJson,b=g+1,T=a.length-1,R=M=>{x!==M&&(!m||m({level:g,value:t,field:s,newExpandValue:M}))&&f(M)},P=M=>{if(M.key==="ArrowRight"||M.key==="ArrowLeft")M.preventDefault(),R(M.key==="ArrowRight");else if(M.key==="ArrowUp"||M.key==="ArrowDown"){M.preventDefault();const B=M.key==="ArrowUp"?-1:1;if(!r.current)return;const F=r.current.querySelectorAll("[role=button]");let ae=-1;for(let A=0;A<F.length;A++)if(F[A].tabIndex===0){ae=A;break}if(ae<0)return;const ne=(ae+B+F.length)%F.length;F[ae].tabIndex=-1,F[ne].tabIndex=0,F[ne].focus()}},I=()=>{var M;R(!x);const B=y.current;if(!B)return;const F=(M=r.current)===null||M===void 0?void 0:M.querySelector('[role=button][tabindex="0"]');F&&(F.tabIndex=-1),B.tabIndex=0,B.focus()};return j.createElement("div",{className:i.basicChildStyle,role:"treeitem","aria-expanded":x,"aria-selected":void 0},j.createElement("span",{className:k,onClick:I,onKeyDown:P,role:"button","aria-label":_,"aria-expanded":x,"aria-controls":x?C:void 0,ref:y,tabIndex:g===0?0:-1}),(s||s==="")&&(o?j.createElement("span",{className:i.clickableLabel,onClick:I,onKeyDown:P},Ze(s,i.quotesForFieldNames),":"):j.createElement("span",{className:i.label},Ze(s,i.quotesForFieldNames),":")),j.createElement("span",{className:i.punctuation},l),x?j.createElement("ul",{id:C,role:"group",className:i.childFieldsContainer},a.map((M,B)=>j.createElement(gt,{key:M[0]||B,field:M[0],value:M[1],style:i,lastElement:B===T,level:b,shouldExpandNode:h,clickToExpandNode:o,beforeExpandChange:m,outerRef:r}))):j.createElement("span",{className:i.collapsedContent,onClick:I,onKeyDown:P}),j.createElement("span",{className:i.punctuation},u),!c&&j.createElement("span",{className:i.punctuation},","))}function sl(n){let{field:s,openBracket:t,closeBracket:a,lastElement:c,style:l}=n;return j.createElement("div",{className:l.basicChildStyle,role:"treeitem","aria-selected":void 0},(s||s==="")&&j.createElement("span",{className:l.label},Ze(s,l.quotesForFieldNames),":"),j.createElement("span",{className:l.punctuation},t),j.createElement("span",{className:l.punctuation},a),!c&&j.createElement("span",{className:l.punctuation},","))}function al(n){let{field:s,value:t,style:a,lastElement:c,shouldExpandNode:l,clickToExpandNode:u,level:g,outerRef:i,beforeExpandChange:h}=n;return _s({field:s,value:t,lastElement:c||!1,level:g,openBracket:"{",closeBracket:"}",style:a,shouldExpandNode:l,clickToExpandNode:u,data:Object.keys(t).map(o=>[o,t[o]]),outerRef:i,beforeExpandChange:h})}function nl(n){let{field:s,value:t,style:a,lastElement:c,level:l,shouldExpandNode:u,clickToExpandNode:g,outerRef:i,beforeExpandChange:h}=n;return _s({field:s,value:t,lastElement:c||!1,level:l,openBracket:"[",closeBracket:"]",style:a,shouldExpandNode:u,clickToExpandNode:g,data:t.map(o=>[void 0,o]),outerRef:i,beforeExpandChange:h})}function ll(n){let{field:s,value:t,style:a,lastElement:c}=n,l,u=a.otherValue;return t===null?(l="null",u=a.nullValue):t===void 0?(l="undefined",u=a.undefinedValue):Zn(t)?(l=tl(t,!a.noQuotesForStringValues,a.stringifyStringValues),u=a.stringValue):Qn(t)?(l=t?"true":"false",u=a.booleanValue):Yn(t)?(l=t.toString(),u=a.numberValue):Xn(t)?(l=`${t.toString()}n`,u=a.numberValue):Cs(t)?l=t.toISOString():Ns(t)?l="function() { }":l=t.toString(),j.createElement("div",{className:a.basicChildStyle,role:"treeitem","aria-selected":void 0},(s||s==="")&&j.createElement("span",{className:a.label},Ze(s,a.quotesForFieldNames),":"),j.createElement("span",{className:u},l),!c&&j.createElement("span",{className:a.punctuation},","))}function gt(n){const s=n.value;return el(s)?j.createElement(nl,Object.assign({},n)):bs(s)&&!Cs(s)&&!Ns(s)?j.createElement(al,Object.assign({},n)):j.createElement(ll,Object.assign({},n))}var z={"container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","child-fields-container":"_1BXBN","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti","container-dark":"_11RoI _GzYRV","expand-icon-dark":"_17H2C _f10Tu _1MFti _1UmXx","collapse-icon-dark":"_3QHg2 _f10Tu _1MFti _1LId0","collapsed-content-dark":"_3fDAz _1pNG9 _1MFti","label-dark":"_2bSDX","clickable-label-dark":"_1RQEj _2bSDX _1MFti","punctuation-dark":"_gsbQL _3eOF8","value-null-dark":"_LaAZe","value-undefined-dark":"_GTKgm","value-string-dark":"_Chy1W","value-number-dark":"_2bveF","value-boolean-dark":"_2vRm-","value-other-dark":"_1prJR"};const Ss={collapseJson:"collapse JSON",expandJson:"expand JSON"},rt={container:z["container-light"],basicChildStyle:z["basic-element-style"],childFieldsContainer:z["child-fields-container"],label:z["label-light"],clickableLabel:z["clickable-label-light"],nullValue:z["value-null-light"],undefinedValue:z["value-undefined-light"],stringValue:z["value-string-light"],booleanValue:z["value-boolean-light"],numberValue:z["value-number-light"],otherValue:z["value-other-light"],punctuation:z["punctuation-light"],collapseIcon:z["collapse-icon-light"],expandIcon:z["expand-icon-light"],collapsedContent:z["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:Ss,stringifyStringValues:!1},il={container:z["container-dark"],basicChildStyle:z["basic-element-style"],childFieldsContainer:z["child-fields-container"],label:z["label-dark"],clickableLabel:z["clickable-label-dark"],nullValue:z["value-null-dark"],undefinedValue:z["value-undefined-dark"],stringValue:z["value-string-dark"],booleanValue:z["value-boolean-dark"],numberValue:z["value-number-dark"],otherValue:z["value-other-dark"],punctuation:z["punctuation-dark"],collapseIcon:z["collapse-icon-dark"],expandIcon:z["expand-icon-dark"],collapsedContent:z["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:Ss,stringifyStringValues:!1},ol=()=>!0,rl=n=>{let{data:s,style:t=rt,shouldExpandNode:a=ol,clickToExpandNode:c=!1,beforeExpandChange:l,compactTopLevel:u,...g}=n;const i=j.useRef(null);return j.createElement("div",Object.assign({"aria-label":"JSON view"},g,{className:t.container,ref:i,role:"tree"}),u&&bs(s)?Object.entries(s).map(h=>{let[o,r]=h;return j.createElement(gt,{key:o,field:o,value:r,style:{...rt,...t},lastElement:!0,level:1,shouldExpandNode:a,clickToExpandNode:c,beforeExpandChange:l,outerRef:i})}):j.createElement(gt,{value:s,style:{...rt,...t},lastElement:!0,level:0,shouldExpandNode:a,clickToExpandNode:c,outerRef:i,beforeExpandChange:l}))},cl="_container_1h2lr_1",dl={container:cl},hl={...il,container:"rjv-container"};class et extends q.Component{shouldComponentUpdate(s){return s.data!==this.props.data||s.defaultExpand!==this.props.defaultExpand||s.expandNode!==this.props.expandNode}render(){const{data:s,defaultExpand:t,expandNode:a}=this.props;if(s==null)return null;const c=typeof a=="function"?a:t==="all"?()=>!0:t==="root"?l=>l<2:l=>l<1;return e.jsx("div",{className:dl.container,children:e.jsx(rl,{data:s,shouldExpandNode:c,style:hl})})}}function ul({currentId:n,visibleIds:s=[],key:t}){if(t!=="ArrowUp"&&t!=="ArrowDown")return null;const a=s.findIndex(l=>l===n),c=t==="ArrowUp"?-1:1;return a>=0?s[a+c]??null:null}const ml="_root_9isis_1",pl="_sidebar_9isis_9",gl="_section_9isis_18",fl="_sectionHeader_9isis_22",xl="_arrow_9isis_48",yl="_sectionTitle_9isis_54",vl="_sectionCount_9isis_62",jl="_sectionBody_9isis_71",Cl="_historyToggle_9isis_76",bl="_historyToggleLabel_9isis_102",Nl="_item_9isis_107",_l="_itemActive_9isis_133",Sl="_itemContent_9isis_143",kl="_itemLabel_9isis_149",wl="_itemSublabel_9isis_157",Tl="_itemTime_9isis_166",Ml="_content_9isis_175",El="_contentEmpty_9isis_183",Rl="_contentInner_9isis_190",Il="_emptyWrap_9isis_194",Ll="_roleHeader_9isis_202",Pl="_roleBadge_9isis_210",Al="_role_user_9isis_219",Dl="_role_assistant_9isis_225",Bl="_roleLabel_9isis_231",Ol="_contentTime_9isis_238",Fl="_turnDivider_9isis_246",$l="_textBlock_9isis_253",Hl="_textBlockBar_9isis_260",zl="_textBlockBody_9isis_269",Vl="_textBlockCompact_9isis_277",Ul="_textBlockCompactFloat_9isis_284",ql="_thinkingBlock_9isis_291",Wl="_thinkingHeader_9isis_299",Kl="_thinkingPreview_9isis_314",Gl="_thinkingBody_9isis_324",Jl="_toolBlock_9isis_330",Ql="_toolBlockResult_9isis_337",Yl="_toolBlockError_9isis_341",Xl="_toolBlockHeader_9isis_345",Zl="_toolBlockBody_9isis_356",ei="_toolName_9isis_361",ti="_toolId_9isis_367",si="_errorLabel_9isis_374",ai="_blockTag_9isis_384",ni="_blockTagText_9isis_397",li="_blockTagThinking_9isis_403",ii="_blockTagResult_9isis_409",oi="_blockTagError_9isis_415",ri="_jsonBlock_9isis_422",ci="_jsonBlockLabel_9isis_429",di="_blockSeparator_9isis_439",hi="_markdownBody_9isis_446",w={root:ml,sidebar:pl,section:gl,sectionHeader:fl,arrow:xl,sectionTitle:yl,sectionCount:vl,sectionBody:jl,historyToggle:Cl,historyToggleLabel:bl,item:Nl,itemActive:_l,itemContent:Sl,itemLabel:kl,itemSublabel:wl,itemTime:Tl,content:Ml,contentEmpty:El,contentInner:Rl,emptyWrap:Il,roleHeader:Ll,roleBadge:Pl,role_user:Al,role_assistant:Dl,roleLabel:Bl,contentTime:Ol,turnDivider:Fl,textBlock:$l,textBlockBar:Hl,textBlockBody:zl,textBlockCompact:Vl,textBlockCompactFloat:Ul,thinkingBlock:ql,thinkingHeader:Wl,thinkingPreview:Kl,thinkingBody:Gl,toolBlock:Jl,toolBlockResult:Ql,toolBlockError:Yl,toolBlockHeader:Xl,toolBlockBody:Zl,toolName:ei,toolId:ti,errorLabel:si,blockTag:ai,blockTagText:ni,blockTagThinking:li,blockTagResult:ii,blockTagError:oi,jsonBlock:ri,jsonBlockLabel:ci,blockSeparator:di,markdownBody:hi},{Text:ui}=es;function ft(n){if(n==null)return[];if(typeof n=="string"){const s=n.trim();return s?[{type:"markdown",text:s}]:[]}if(Array.isArray(n)){const s=[];for(const t of n)if(t)if(t.type==="text"){const a=(t.text||"").trim();a&&s.push({type:"markdown",text:a})}else if(t.type==="tool_use")s.push({type:"tool_use",name:t.name||"unknown",id:t.id||"",input:t.input??{}});else if(t.type==="tool_result"){const a=mi(t.content);s.push({type:"tool_result",tool_use_id:t.tool_use_id||"",is_error:t.is_error,content:a})}else if(t.type==="thinking"){const a=t.thinking||"";a.trim()&&s.push({type:"thinking",text:a})}else t.type==="image"?s.push({type:"json",label:"image",data:t}):s.push({type:"json",label:t.type||"block",data:t});return s}return[{type:"json",label:"content",data:n}]}function mi(n){if(n==null)return[];if(typeof n=="string"){const s=n.trim();return s?[{type:"markdown",text:s}]:[]}return Array.isArray(n)?n.flatMap(s=>{if(!s)return[];if(s.type==="text"){const t=(s.text||"").trim();return t?[{type:"markdown",text:t}]:[]}return[{type:"json",label:s.type||"block",data:s}]}):[{type:"json",label:"content",data:n}]}function pi(n){if(!n)return null;if(typeof n=="string")return[{type:"markdown",text:n}];if(Array.isArray(n)){const s=[];return n.forEach((t,a)=>{a>0&&s.push({type:"separator"}),t&&(typeof t=="string"?s.push({type:"markdown",text:t}):t.type==="text"?s.push({type:"markdown",text:t.text||""}):s.push({type:"json",label:t.type||"item",data:t}))}),s}return[{type:"json",label:"system",data:n}]}function gi(n){const s=[],t=(n==null?void 0:n.name)||"unknown",a=(n==null?void 0:n.description)||"";let c=`### ${t}
27
+ `);B=e.jsx(Zt,{title:e.jsx("span",{className:V.tooltipPreLine,children:ne}),children:e.jsx("span",{className:`${V.cacheDot} ${V.cacheDotLoss}`})})}else B=e.jsx("span",{className:`${V.cacheDot} ${V.cacheDotNormal}`});return e.jsxs(e.Fragment,{children:["cache",B,": ",k>0?`read:${W(k)}`:"",k>0&&_>0?", ":"",_>0?`create:${W(_)}`:""]})})()})]})]})})}})})}}const Qn=n=>typeof n=="boolean"||n instanceof Boolean,Yn=n=>typeof n=="number"||n instanceof Number,Xn=n=>typeof n=="bigint"||n instanceof BigInt,Cs=n=>!!n&&n instanceof Date,Zn=n=>typeof n=="string"||n instanceof String,el=n=>Array.isArray(n),bs=n=>typeof n=="object"&&n!==null,Ns=n=>!!n&&n instanceof Object&&typeof n=="function";function Ze(n,s){return s===void 0&&(s=!1),!n||s?`"${n}"`:n}function tl(n,s,t){return t?JSON.stringify(n):s?`"${n}"`:n}function _s(n){let{field:s,value:t,data:a,lastElement:c,openBracket:l,closeBracket:u,level:g,style:i,shouldExpandNode:h,clickToExpandNode:o,outerRef:r,beforeExpandChange:m}=n;const v=j.useRef(!1),[x,f]=j.useState(()=>h(g,t,s)),y=j.useRef(null);j.useEffect(()=>{v.current?f(h(g,t,s)):v.current=!0},[h]);const C=j.useId();if(a.length===0)return sl({field:s,openBracket:l,closeBracket:u,lastElement:c,style:i});const k=x?i.collapseIcon:i.expandIcon,_=x?i.ariaLables.collapseJson:i.ariaLables.expandJson,b=g+1,T=a.length-1,R=M=>{x!==M&&(!m||m({level:g,value:t,field:s,newExpandValue:M}))&&f(M)},P=M=>{if(M.key==="ArrowRight"||M.key==="ArrowLeft")M.preventDefault(),R(M.key==="ArrowRight");else if(M.key==="ArrowUp"||M.key==="ArrowDown"){M.preventDefault();const B=M.key==="ArrowUp"?-1:1;if(!r.current)return;const F=r.current.querySelectorAll("[role=button]");let ae=-1;for(let A=0;A<F.length;A++)if(F[A].tabIndex===0){ae=A;break}if(ae<0)return;const ne=(ae+B+F.length)%F.length;F[ae].tabIndex=-1,F[ne].tabIndex=0,F[ne].focus()}},I=()=>{var M;R(!x);const B=y.current;if(!B)return;const F=(M=r.current)===null||M===void 0?void 0:M.querySelector('[role=button][tabindex="0"]');F&&(F.tabIndex=-1),B.tabIndex=0,B.focus()};return j.createElement("div",{className:i.basicChildStyle,role:"treeitem","aria-expanded":x,"aria-selected":void 0},j.createElement("span",{className:k,onClick:I,onKeyDown:P,role:"button","aria-label":_,"aria-expanded":x,"aria-controls":x?C:void 0,ref:y,tabIndex:g===0?0:-1}),(s||s==="")&&(o?j.createElement("span",{className:i.clickableLabel,onClick:I,onKeyDown:P},Ze(s,i.quotesForFieldNames),":"):j.createElement("span",{className:i.label},Ze(s,i.quotesForFieldNames),":")),j.createElement("span",{className:i.punctuation},l),x?j.createElement("ul",{id:C,role:"group",className:i.childFieldsContainer},a.map((M,B)=>j.createElement(gt,{key:M[0]||B,field:M[0],value:M[1],style:i,lastElement:B===T,level:b,shouldExpandNode:h,clickToExpandNode:o,beforeExpandChange:m,outerRef:r}))):j.createElement("span",{className:i.collapsedContent,onClick:I,onKeyDown:P}),j.createElement("span",{className:i.punctuation},u),!c&&j.createElement("span",{className:i.punctuation},","))}function sl(n){let{field:s,openBracket:t,closeBracket:a,lastElement:c,style:l}=n;return j.createElement("div",{className:l.basicChildStyle,role:"treeitem","aria-selected":void 0},(s||s==="")&&j.createElement("span",{className:l.label},Ze(s,l.quotesForFieldNames),":"),j.createElement("span",{className:l.punctuation},t),j.createElement("span",{className:l.punctuation},a),!c&&j.createElement("span",{className:l.punctuation},","))}function al(n){let{field:s,value:t,style:a,lastElement:c,shouldExpandNode:l,clickToExpandNode:u,level:g,outerRef:i,beforeExpandChange:h}=n;return _s({field:s,value:t,lastElement:c||!1,level:g,openBracket:"{",closeBracket:"}",style:a,shouldExpandNode:l,clickToExpandNode:u,data:Object.keys(t).map(o=>[o,t[o]]),outerRef:i,beforeExpandChange:h})}function nl(n){let{field:s,value:t,style:a,lastElement:c,level:l,shouldExpandNode:u,clickToExpandNode:g,outerRef:i,beforeExpandChange:h}=n;return _s({field:s,value:t,lastElement:c||!1,level:l,openBracket:"[",closeBracket:"]",style:a,shouldExpandNode:u,clickToExpandNode:g,data:t.map(o=>[void 0,o]),outerRef:i,beforeExpandChange:h})}function ll(n){let{field:s,value:t,style:a,lastElement:c}=n,l,u=a.otherValue;return t===null?(l="null",u=a.nullValue):t===void 0?(l="undefined",u=a.undefinedValue):Zn(t)?(l=tl(t,!a.noQuotesForStringValues,a.stringifyStringValues),u=a.stringValue):Qn(t)?(l=t?"true":"false",u=a.booleanValue):Yn(t)?(l=t.toString(),u=a.numberValue):Xn(t)?(l=`${t.toString()}n`,u=a.numberValue):Cs(t)?l=t.toISOString():Ns(t)?l="function() { }":l=t.toString(),j.createElement("div",{className:a.basicChildStyle,role:"treeitem","aria-selected":void 0},(s||s==="")&&j.createElement("span",{className:a.label},Ze(s,a.quotesForFieldNames),":"),j.createElement("span",{className:u},l),!c&&j.createElement("span",{className:a.punctuation},","))}function gt(n){const s=n.value;return el(s)?j.createElement(nl,Object.assign({},n)):bs(s)&&!Cs(s)&&!Ns(s)?j.createElement(al,Object.assign({},n)):j.createElement(ll,Object.assign({},n))}var z={"container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","child-fields-container":"_1BXBN","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti","container-dark":"_11RoI _GzYRV","expand-icon-dark":"_17H2C _f10Tu _1MFti _1UmXx","collapse-icon-dark":"_3QHg2 _f10Tu _1MFti _1LId0","collapsed-content-dark":"_3fDAz _1pNG9 _1MFti","label-dark":"_2bSDX","clickable-label-dark":"_1RQEj _2bSDX _1MFti","punctuation-dark":"_gsbQL _3eOF8","value-null-dark":"_LaAZe","value-undefined-dark":"_GTKgm","value-string-dark":"_Chy1W","value-number-dark":"_2bveF","value-boolean-dark":"_2vRm-","value-other-dark":"_1prJR"};const Ss={collapseJson:"collapse JSON",expandJson:"expand JSON"},rt={container:z["container-light"],basicChildStyle:z["basic-element-style"],childFieldsContainer:z["child-fields-container"],label:z["label-light"],clickableLabel:z["clickable-label-light"],nullValue:z["value-null-light"],undefinedValue:z["value-undefined-light"],stringValue:z["value-string-light"],booleanValue:z["value-boolean-light"],numberValue:z["value-number-light"],otherValue:z["value-other-light"],punctuation:z["punctuation-light"],collapseIcon:z["collapse-icon-light"],expandIcon:z["expand-icon-light"],collapsedContent:z["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:Ss,stringifyStringValues:!1},il={container:z["container-dark"],basicChildStyle:z["basic-element-style"],childFieldsContainer:z["child-fields-container"],label:z["label-dark"],clickableLabel:z["clickable-label-dark"],nullValue:z["value-null-dark"],undefinedValue:z["value-undefined-dark"],stringValue:z["value-string-dark"],booleanValue:z["value-boolean-dark"],numberValue:z["value-number-dark"],otherValue:z["value-other-dark"],punctuation:z["punctuation-dark"],collapseIcon:z["collapse-icon-dark"],expandIcon:z["expand-icon-dark"],collapsedContent:z["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:Ss,stringifyStringValues:!1},ol=()=>!0,rl=n=>{let{data:s,style:t=rt,shouldExpandNode:a=ol,clickToExpandNode:c=!1,beforeExpandChange:l,compactTopLevel:u,...g}=n;const i=j.useRef(null);return j.createElement("div",Object.assign({"aria-label":"JSON view"},g,{className:t.container,ref:i,role:"tree"}),u&&bs(s)?Object.entries(s).map(h=>{let[o,r]=h;return j.createElement(gt,{key:o,field:o,value:r,style:{...rt,...t},lastElement:!0,level:1,shouldExpandNode:a,clickToExpandNode:c,beforeExpandChange:l,outerRef:i})}):j.createElement(gt,{value:s,style:{...rt,...t},lastElement:!0,level:0,shouldExpandNode:a,clickToExpandNode:c,outerRef:i,beforeExpandChange:l}))},cl="_container_17kea_1",dl={container:cl},hl={...il,container:"rjv-container"};class et extends q.Component{shouldComponentUpdate(s){return s.data!==this.props.data||s.defaultExpand!==this.props.defaultExpand||s.expandNode!==this.props.expandNode}render(){const{data:s,defaultExpand:t,expandNode:a}=this.props;if(s==null)return null;const c=typeof a=="function"?a:t==="all"?()=>!0:t==="root"?l=>l<2:l=>l<1;return e.jsx("div",{className:dl.container,children:e.jsx(rl,{data:s,shouldExpandNode:c,style:hl})})}}function ul({currentId:n,visibleIds:s=[],key:t}){if(t!=="ArrowUp"&&t!=="ArrowDown")return null;const a=s.findIndex(l=>l===n),c=t==="ArrowUp"?-1:1;return a>=0?s[a+c]??null:null}const ml="_root_9isis_1",pl="_sidebar_9isis_9",gl="_section_9isis_18",fl="_sectionHeader_9isis_22",xl="_arrow_9isis_48",yl="_sectionTitle_9isis_54",vl="_sectionCount_9isis_62",jl="_sectionBody_9isis_71",Cl="_historyToggle_9isis_76",bl="_historyToggleLabel_9isis_102",Nl="_item_9isis_107",_l="_itemActive_9isis_133",Sl="_itemContent_9isis_143",kl="_itemLabel_9isis_149",wl="_itemSublabel_9isis_157",Tl="_itemTime_9isis_166",Ml="_content_9isis_175",El="_contentEmpty_9isis_183",Rl="_contentInner_9isis_190",Il="_emptyWrap_9isis_194",Ll="_roleHeader_9isis_202",Pl="_roleBadge_9isis_210",Al="_role_user_9isis_219",Dl="_role_assistant_9isis_225",Bl="_roleLabel_9isis_231",Ol="_contentTime_9isis_238",Fl="_turnDivider_9isis_246",$l="_textBlock_9isis_253",Hl="_textBlockBar_9isis_260",zl="_textBlockBody_9isis_269",Vl="_textBlockCompact_9isis_277",Ul="_textBlockCompactFloat_9isis_284",ql="_thinkingBlock_9isis_291",Wl="_thinkingHeader_9isis_299",Kl="_thinkingPreview_9isis_314",Gl="_thinkingBody_9isis_324",Jl="_toolBlock_9isis_330",Ql="_toolBlockResult_9isis_337",Yl="_toolBlockError_9isis_341",Xl="_toolBlockHeader_9isis_345",Zl="_toolBlockBody_9isis_356",ei="_toolName_9isis_361",ti="_toolId_9isis_367",si="_errorLabel_9isis_374",ai="_blockTag_9isis_384",ni="_blockTagText_9isis_397",li="_blockTagThinking_9isis_403",ii="_blockTagResult_9isis_409",oi="_blockTagError_9isis_415",ri="_jsonBlock_9isis_422",ci="_jsonBlockLabel_9isis_429",di="_blockSeparator_9isis_439",hi="_markdownBody_9isis_446",w={root:ml,sidebar:pl,section:gl,sectionHeader:fl,arrow:xl,sectionTitle:yl,sectionCount:vl,sectionBody:jl,historyToggle:Cl,historyToggleLabel:bl,item:Nl,itemActive:_l,itemContent:Sl,itemLabel:kl,itemSublabel:wl,itemTime:Tl,content:Ml,contentEmpty:El,contentInner:Rl,emptyWrap:Il,roleHeader:Ll,roleBadge:Pl,role_user:Al,role_assistant:Dl,roleLabel:Bl,contentTime:Ol,turnDivider:Fl,textBlock:$l,textBlockBar:Hl,textBlockBody:zl,textBlockCompact:Vl,textBlockCompactFloat:Ul,thinkingBlock:ql,thinkingHeader:Wl,thinkingPreview:Kl,thinkingBody:Gl,toolBlock:Jl,toolBlockResult:Ql,toolBlockError:Yl,toolBlockHeader:Xl,toolBlockBody:Zl,toolName:ei,toolId:ti,errorLabel:si,blockTag:ai,blockTagText:ni,blockTagThinking:li,blockTagResult:ii,blockTagError:oi,jsonBlock:ri,jsonBlockLabel:ci,blockSeparator:di,markdownBody:hi},{Text:ui}=es;function ft(n){if(n==null)return[];if(typeof n=="string"){const s=n.trim();return s?[{type:"markdown",text:s}]:[]}if(Array.isArray(n)){const s=[];for(const t of n)if(t)if(t.type==="text"){const a=(t.text||"").trim();a&&s.push({type:"markdown",text:a})}else if(t.type==="tool_use")s.push({type:"tool_use",name:t.name||"unknown",id:t.id||"",input:t.input??{}});else if(t.type==="tool_result"){const a=mi(t.content);s.push({type:"tool_result",tool_use_id:t.tool_use_id||"",is_error:t.is_error,content:a})}else if(t.type==="thinking"){const a=t.thinking||"";a.trim()&&s.push({type:"thinking",text:a})}else t.type==="image"?s.push({type:"json",label:"image",data:t}):s.push({type:"json",label:t.type||"block",data:t});return s}return[{type:"json",label:"content",data:n}]}function mi(n){if(n==null)return[];if(typeof n=="string"){const s=n.trim();return s?[{type:"markdown",text:s}]:[]}return Array.isArray(n)?n.flatMap(s=>{if(!s)return[];if(s.type==="text"){const t=(s.text||"").trim();return t?[{type:"markdown",text:t}]:[]}return[{type:"json",label:s.type||"block",data:s}]}):[{type:"json",label:"content",data:n}]}function pi(n){if(!n)return null;if(typeof n=="string")return[{type:"markdown",text:n}];if(Array.isArray(n)){const s=[];return n.forEach((t,a)=>{a>0&&s.push({type:"separator"}),t&&(typeof t=="string"?s.push({type:"markdown",text:t}):t.type==="text"?s.push({type:"markdown",text:t.text||""}):s.push({type:"json",label:t.type||"item",data:t}))}),s}return[{type:"json",label:"system",data:n}]}function gi(n){const s=[],t=(n==null?void 0:n.name)||"unknown",a=(n==null?void 0:n.description)||"";let c=`### ${t}
28
28
 
29
29
  `;a&&(c+=`${a}
30
30
 
@@ -0,0 +1 @@
1
+ ._centerEmpty_18l8t_1{display:flex;align-items:center;justify-content:center;height:100%}._scrollContainer_18l8t_8{overflow:auto;height:100%;-webkit-overflow-scrolling:touch;will-change:scroll-position}._listItem_18l8t_15{cursor:pointer;padding:8px 12px;border-left:3px solid #00000000;border-bottom:1px solid #1e1e1e;transition:background .15s}._listItem_18l8t_15:hover{background:#111}._listItemActive_18l8t_27{background:#1a2332;border-left-color:#3b82f6}._listItemActive_18l8t_27:hover{background:#1a2332}._itemContent_18l8t_36{width:100%;min-width:0}._itemHeader_18l8t_41{display:flex;align-items:center;gap:6px;margin-bottom:4px;font-size:12px}._tagNoMargin_18l8t_49{margin:0;font-size:12px}._modelName_18l8t_54{font-size:12px;color:#888}._modelNameMain_18l8t_59{color:#d97757}._time_18l8t_63{font-size:12px;color:#6b7280;margin-left:auto}._detailRow_18l8t_69{display:flex;gap:8px;font-size:12px;align-items:center}._urlText_18l8t_76{color:#555;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}._duration_18l8t_85{color:#6b7280;flex-shrink:0}._statusOk_18l8t_90{color:#22c55e;opacity:.5;flex-shrink:0}._statusErr_18l8t_96{color:#ef4444;flex-shrink:0}._statusDefault_18l8t_101{color:#999;flex-shrink:0}._usageBox_18l8t_106{background:#111;border-radius:4px;padding:3px 6px;margin-top:4px;font-size:12px;color:#6b7280;line-height:1.6}._cacheDot_18l8t_116{display:inline-block;width:6px;height:6px;border-radius:50%;margin:0 3px;vertical-align:middle}._cacheDotLoss_18l8t_125{background-color:#8b1a1a;cursor:help}._cacheDotNormal_18l8t_130{background-color:#3a3a3a}._tagMainAgent_18l8t_134{color:#d97757;border-color:#d9775744;background:#d9775712}._tagPlan_18l8t_140{color:#a33;border-color:#a33;background-color:#000}._tagMuted_18l8t_146{color:#666;border-color:#444;background-color:#000}._tooltipPreLine_18l8t_152{white-space:pre-line}._GzYRV{line-height:1.2;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word}._3eOF8{margin-right:5px;font-weight:700}._3eOF8+._3eOF8{margin-left:-5px}._1MFti{cursor:pointer}._f10Tu{font-size:1.2em;margin-right:5px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._1UmXx:after{content:"▸"}._1LId0:after{content:"▾"}._1pNG9{margin-right:5px}._1pNG9:after{content:"...";font-size:.8em}._2IvMF{background:#eee}._2bkNM{margin:0;padding:0 10px}._1BXBN{margin:0;padding:0}._1MGIk{font-weight:600;margin-right:5px;color:#000}._3uHL6{color:#000}._2T6PJ,._1Gho6{color:#df113a}._vGjyY{color:#2a3f3c}._1bQdo{color:#0b75f5}._3zQKs{color:#469038}._1xvuR{color:#43413d}._oLqym,._2AXVT,._2KJWg{color:#000}._11RoI{background:#002b36}._17H2C,._3QHg2,._3fDAz{color:#fdf6e3}._2bSDX{font-weight:bolder;margin-right:5px;color:#fdf6e3}._gsbQL{color:#fdf6e3}._LaAZe,._GTKgm{color:#81b5ac}._Chy1W{color:#cb4b16}._2bveF{color:#d33682}._2vRm-{color:#ae81ff}._1prJR{color:#268bd2}._container_17kea_1{background:#111;border-radius:6px;border:1px solid #2a2a2a;padding:12px;font-size:13px;font-family:monospace;overflow:auto}._root_9isis_1{display:flex;height:100%;min-height:0;gap:0}._sidebar_9isis_9{width:220px;flex-shrink:0;border-right:1px solid #2a2a2a;overflow-y:auto;padding:4px 0;-webkit-overflow-scrolling:touch}._section_9isis_18{-webkit-user-select:none;user-select:none}._sectionHeader_9isis_22{display:flex;align-items:center;gap:6px;width:100%;padding:6px 10px;cursor:pointer;color:#e5e5e5;font-size:12px;font-weight:600;transition:background .15s;background:none;border:0;text-align:left;font:inherit}._sectionHeader_9isis_22:hover{background:#ffffff0a}._sectionHeader_9isis_22:focus-visible{outline:1px solid #1668dcbf;outline-offset:-1px}._arrow_9isis_48{font-size:10px;color:#888;flex-shrink:0}._sectionTitle_9isis_54{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._sectionCount_9isis_62{font-size:11px;color:#666;background:#1e1e1e;border-radius:10px;padding:0 6px;line-height:18px}._sectionBody_9isis_71{padding:2px 0}._historyToggle_9isis_76{display:flex;align-items:center;gap:6px;width:100%;padding:4px 10px 4px 14px;cursor:pointer;color:#666;font-size:11px;transition:color .15s,background .15s;background:none;border:0;text-align:left;font:inherit}._historyToggle_9isis_76:hover{color:#888;background:#ffffff0a}._historyToggle_9isis_76:focus-visible{outline:1px solid #1668dcbf;outline-offset:-1px}._historyToggleLabel_9isis_102{flex:1}._item_9isis_107{display:flex;align-items:center;justify-content:space-between;width:100%;padding:5px 10px 5px 24px;font-size:12px;color:#888;cursor:pointer;transition:background .15s,color .15s;background:none;border:0;text-align:left;font:inherit}._item_9isis_107:hover{background:#ffffff0a;color:#e5e5e5}._item_9isis_107:focus-visible{outline:1px solid #1668dcbf;outline-offset:-1px}._itemActive_9isis_133,._itemActive_9isis_133:hover{background:#1668dc26;color:#1668dc}._itemContent_9isis_143{flex:1;min-width:0;overflow:hidden}._itemLabel_9isis_149{font-family:monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}._itemSublabel_9isis_157{font-size:10px;color:#555;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}._itemTime_9isis_166{font-size:9px;color:#555;flex-shrink:0;margin-left:4px;font-family:monospace}._content_9isis_175{flex:1;min-width:0;overflow:auto;padding:12px 16px;-webkit-overflow-scrolling:touch}._contentEmpty_9isis_183{height:100%;display:flex;align-items:center;justify-content:center}._contentInner_9isis_190{padding-bottom:20px}._emptyWrap_9isis_194{display:flex;align-items:center;justify-content:center;height:200px}._roleHeader_9isis_202{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:nowrap}._roleBadge_9isis_210{font-size:10px;font-weight:600;letter-spacing:.04em;padding:2px 7px;border-radius:4px;flex-shrink:0}._role_user_9isis_219{background:#3b82f633;color:#60a5fa;border:1px solid #3b82f64d}._role_assistant_9isis_225{background:#8b5cf62e;color:#a78bfa;border:1px solid #8b5cf64d}._roleLabel_9isis_231{font-size:11px;color:#666;flex:1;min-width:0}._contentTime_9isis_238{margin-left:auto;font-size:10px;color:#555;font-family:monospace;flex-shrink:0}._turnDivider_9isis_246{border:none;border-top:1px solid #1e1e1e;margin:14px 0}._textBlock_9isis_253{margin-bottom:8px;border:1px solid #1e1e1e;border-radius:6px;overflow:hidden}._textBlockBar_9isis_260{display:flex;align-items:center;gap:6px;padding:4px 10px;background:#111;border-bottom:1px solid #1e1e1e}._textBlockBody_9isis_269{padding:10px 12px;font-size:13px;line-height:1.7;color:#e5e5e5;word-break:break-word}._textBlockCompact_9isis_277{position:relative;padding:8px 10px;font-size:12px;color:#aaa}._textBlockCompactFloat_9isis_284{float:right;margin-left:6px;margin-bottom:2px}._thinkingBlock_9isis_291{margin-bottom:8px;border:1px solid #2a2a1e;border-radius:6px;overflow:hidden;background:#111108}._thinkingHeader_9isis_299{display:flex;align-items:center;gap:6px;padding:5px 10px;cursor:pointer;font-size:12px;color:#888;transition:background .15s}._thinkingHeader_9isis_299:hover{background:#ffffff0a}._thinkingPreview_9isis_314{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#666;font-size:11px}._thinkingBody_9isis_324{padding:8px 12px;border-top:1px solid #2a2a1e}._toolBlock_9isis_330{margin-bottom:8px;border:1px solid #1e1e1e;border-radius:6px;overflow:hidden}._toolBlockResult_9isis_337{border-color:#1a3a1a}._toolBlockError_9isis_341{border-color:#2a1a1a}._toolBlockHeader_9isis_345{display:flex;align-items:center;gap:8px;padding:5px 10px;background:#111;border-bottom:1px solid #1e1e1e;font-size:12px;flex-wrap:wrap}._toolBlockBody_9isis_356{padding:8px 10px;font-size:12px}._toolName_9isis_361{color:#e5e5e5;font-weight:500;font-family:monospace}._toolId_9isis_367{color:#555;font-size:10px;font-family:monospace;margin-left:auto}._errorLabel_9isis_374{font-size:10px;color:#f87171;background:#ef444426;border:1px solid #ef444440;border-radius:3px;padding:1px 5px}._blockTag_9isis_384{font-size:9px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;padding:1px 5px;border-radius:3px;background:#1e1e1e;color:#666;border:1px solid #2a2a2a;flex-shrink:0}._blockTagText_9isis_397{background:#3b82f61a;color:#60a5fa;border-color:#3b82f633}._blockTagThinking_9isis_403{background:#eab3081a;color:#f59e0b;border-color:#eab30833}._blockTagResult_9isis_409{background:#162312;color:#22c55e;border-color:#274916}._blockTagError_9isis_415{background:#ef44441a;color:#f87171;border-color:#ef444433}._jsonBlock_9isis_422{margin-bottom:8px;border:1px solid #1e1e1e;border-radius:6px;overflow:hidden}._jsonBlockLabel_9isis_429{font-size:10px;color:#666;padding:3px 10px;background:#111;border-bottom:1px solid #1e1e1e;font-family:monospace}._blockSeparator_9isis_439{border:none;border-top:1px solid #2a2a2a;margin:16px 0}._markdownBody_9isis_446{font-size:13px;line-height:1.7;color:#e5e5e5;word-break:break-word}._container_1yyka_1{height:100%;overflow:auto;padding:0 16px;-webkit-overflow-scrolling:touch;will-change:scroll-position}._emptyState_1yyka_9{display:flex;align-items:center;justify-content:center;height:100%}._urlSection_1yyka_16{padding:12px 0;border-bottom:1px solid #1e1e1e;display:flex;align-items:flex-start}._urlLeft_1yyka_23{flex:1;min-width:0}._tokenStatsBox_1yyka_28{flex-shrink:0;padding-left:12px;display:flex;align-items:center}._tokenGrid_1yyka_35{display:flex;border:1px solid #303030;border-radius:6px;overflow:hidden;min-width:360px;font-size:11px;line-height:1.6}._tokenRows_1yyka_45{flex:1}._tokenRow_1yyka_45{display:flex}._tokenRowBorder_1yyka_53{border-top:1px solid #303030}._tokenLabel_1yyka_57{color:#888;padding:4px 8px;white-space:nowrap;font-weight:600}._tokenTd_1yyka_64{flex:1;color:#e5e5e5;text-align:right;padding:4px 8px;font-family:monospace;white-space:nowrap}._tokenHitRate_1yyka_73{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#e5e5e5;padding:4px 8px;font-family:monospace;white-space:nowrap;border-left:1px solid #303030;min-width:100px}._tokenHitRateLabel_1yyka_86{color:#888;font-size:10px;font-family:sans-serif}._tokenRowBorder_1yyka_53 td{border-top:1px solid #303030}._urlText_1yyka_96{color:#e5e5e5;font-size:13px;margin-bottom:8px;word-break:break-all}._metaText_1yyka_103,._headersContainer_1yyka_107{font-size:12px}._headerRow_1yyka_111{display:flex;padding:4px 0;border-bottom:1px solid #1e1e1e}._headerKey_1yyka_117{min-width:200px;flex-shrink:0}._headerValue_1yyka_122{word-break:break-all;margin-left:8px}._streamingBox_1yyka_127{padding:20px;background:#1e1e1e;border-radius:6px;border:1px solid #2a2a2a}._bodyToolbar_1yyka_134{display:flex;gap:8px;margin-bottom:8px}._rawTextPre_1yyka_140{background:#0d1117;border:1px solid #2a2a2a;border-radius:6px;padding:12px;font-size:12px;color:#e5e5e5;overflow:auto;max-height:600px;white-space:pre-wrap;word-break:break-all}._tabContent_1yyka_153{padding:12px 0}._collapseSpacing_1yyka_157{margin-bottom:16px}._bodyLabel_1yyka_161{margin:0}._bodyHeader_1yyka_165{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}._diffSection_1yyka_172{margin-bottom:16px}._diffToggle_1yyka_176{display:inline-block;margin-bottom:8px;cursor:pointer}._diffIcon_1yyka_182{font-size:12px;margin-left:4px}._viewInChatBtn_1yyka_187{display:inline-flex;align-items:center;height:26px;border-radius:13px;border:1px solid #444;background:#0000;color:#888;cursor:pointer;font-size:12px;transition:all .2s;padding:0 10px;white-space:nowrap}._viewInChatBtn_1yyka_187:hover{border-color:#666;color:#e5e5e5;background:#ffffff0a}._reminderSelect_1yyka_208{min-width:140px;font-size:12px}._reminderSelect_1yyka_208 .ant-select-selector.ant-select-selector{border-radius:2px;border-color:#444;background:#0000;min-height:26px;height:auto;padding:0 8px;font-family:monospace}._reminderSelect_1yyka_208 .ant-select-selection-placeholder{font-size:11px}._diffHeaderRow_1yyka_227{display:flex;align-items:center;gap:8px}._diffSpaceRight_1yyka_233{margin-left:auto}._reminderFilterWrapper_1yyka_237{display:inline-flex;align-items:center;gap:4px}._reminderLabel_1yyka_243{color:#888;font-size:12px;font-family:monospace}._cacheTabContent_1yyka_249{height:calc(100vh - 220px);min-height:400px}._userPromptList_1yyka_254{width:600px;max-height:300px;overflow-y:auto}._userPromptItem_1yyka_260{padding:4px 8px;font-size:12px;color:#ccc;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:3px}._userPromptNavBtn_1yyka_271{margin-left:auto;font-size:11px;color:#1668dc;cursor:pointer;border:1px solid #1668dc;border-radius:3px;padding:1px 6px;white-space:nowrap}._cacheContent_1yyka_282{padding:8px 0;height:100%;display:flex;flex-direction:column}._cacheTokenBar_1yyka_289{display:flex;align-items:center;font-size:12px;font-family:monospace;color:#aaa;margin-bottom:12px;flex-shrink:0}._cacheTokenWrite_1yyka_299{color:#d97757}._cacheTokenRead_1yyka_303{color:#22c55e}._cacheCopyIcon_1yyka_307{margin-left:8px;cursor:pointer;color:#888;transition:color .2s}._cacheScrollArea_1yyka_314{flex:1;overflow-y:auto;min-height:0}._cacheSectionBlock_1yyka_320{margin-bottom:12px}._cacheSectionHeader_1yyka_324{font-size:13px;font-weight:600;color:#e5e5e5;margin-bottom:6px;cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;gap:4px}._cacheCollapseArrow_1yyka_336{display:inline-block;transition:transform .2s;font-size:10px}._cachePre_1yyka_342{white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.5;color:#ccc;background:#111;border:1px solid #2a2a2a;border-radius:4px;padding:8px;margin:4px 0;font-family:Menlo,Monaco,monospace}._cacheHighlightSvg_1yyka_356{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none;overflow:visible}._cachePreSystem_1yyka_365{white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.5;color:#ccc;background:#060f2a;border:1px solid #0b2a5c;border-radius:4px;padding:8px;margin:4px 0;font-family:Menlo,Monaco,monospace}._resizer_1xl2m_1{width:6px;cursor:col-resize;background:#1e1e1e;flex-shrink:0;transition:background .2s}._resizer_1xl2m_1:hover{background:#3b82f6}