cc-viewer 1.6.120 → 1.6.121

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 (59) hide show
  1. package/dist/assets/{App-B4gVd81A.js → App-Dh2saYau.js} +1 -1
  2. package/dist/assets/{AppHeader.module--nz0NBXP.js → AppHeader.module-CszrDKwT.js} +4 -4
  3. package/dist/assets/{Mobile-BZisBT75.js → Mobile-CBM2ZW9t.js} +1 -1
  4. package/dist/assets/{_basePickBy-B7ymC-aR.js → _basePickBy-BljdtoXx.js} +1 -1
  5. package/dist/assets/{_baseUniq-DKhf0_fw.js → _baseUniq-BjfqTNb0.js} +1 -1
  6. package/dist/assets/{arc-CY1k0FYh.js → arc-BGU-xp21.js} +1 -1
  7. package/dist/assets/{architectureDiagram-2XIMDMQ5-B7M_CgBl.js → architectureDiagram-2XIMDMQ5-CTyX9k-T.js} +1 -1
  8. package/dist/assets/{blockDiagram-WCTKOSBZ-h9rqEwWm.js → blockDiagram-WCTKOSBZ-CbDMyNWp.js} +1 -1
  9. package/dist/assets/{c4Diagram-IC4MRINW-UtarPqlc.js → c4Diagram-IC4MRINW-Yfg33Tlc.js} +1 -1
  10. package/dist/assets/channel-Cxtslcd6.js +1 -0
  11. package/dist/assets/{chunk-4BX2VUAB-Cgqv_ZB3.js → chunk-4BX2VUAB-MlENDY9c.js} +1 -1
  12. package/dist/assets/{chunk-55IACEB6-BjjEZZ9F.js → chunk-55IACEB6-DAzl9m0G.js} +1 -1
  13. package/dist/assets/{chunk-FMBD7UC4-mq5eu6HV.js → chunk-FMBD7UC4-BP0l7wwE.js} +1 -1
  14. package/dist/assets/{chunk-JSJVCQXG-DJxv4fEN.js → chunk-JSJVCQXG-BMPrv-w4.js} +1 -1
  15. package/dist/assets/{chunk-KX2RTZJC-B7mOxH4S.js → chunk-KX2RTZJC-BmTlNA43.js} +1 -1
  16. package/dist/assets/{chunk-NQ4KR5QH-lKV-bgei.js → chunk-NQ4KR5QH-DS6BSt7h.js} +1 -1
  17. package/dist/assets/{chunk-QZHKN3VN-Du3G0dbw.js → chunk-QZHKN3VN-DnNRsn6c.js} +1 -1
  18. package/dist/assets/{chunk-WL4C6EOR-BqehfQSW.js → chunk-WL4C6EOR-B55AcYYN.js} +1 -1
  19. package/dist/assets/classDiagram-VBA2DB6C-B23l4vWZ.js +1 -0
  20. package/dist/assets/classDiagram-v2-RAHNMMFH-B23l4vWZ.js +1 -0
  21. package/dist/assets/clone-CWfsSBBt.js +1 -0
  22. package/dist/assets/{cose-bilkent-S5V4N54A-DEXBhaLv.js → cose-bilkent-S5V4N54A-CfIHiY-U.js} +1 -1
  23. package/dist/assets/{dagre-KLK3FWXG-DBUopeoP.js → dagre-KLK3FWXG-DW0ALo89.js} +1 -1
  24. package/dist/assets/{diagram-E7M64L7V-C-IcUxP-.js → diagram-E7M64L7V-DCjYkESg.js} +1 -1
  25. package/dist/assets/{diagram-IFDJBPK2-BzyRnXHF.js → diagram-IFDJBPK2-CBnlnqCT.js} +1 -1
  26. package/dist/assets/{diagram-P4PSJMXO-BrVYC6F7.js → diagram-P4PSJMXO-BPLtrciB.js} +1 -1
  27. package/dist/assets/{erDiagram-INFDFZHY-CQ4MufsX.js → erDiagram-INFDFZHY-BWKBNE3b.js} +1 -1
  28. package/dist/assets/{flowDiagram-PKNHOUZH-wXNuuOdR.js → flowDiagram-PKNHOUZH-B79AawB2.js} +1 -1
  29. package/dist/assets/{ganttDiagram-A5KZAMGK-CpOIovvH.js → ganttDiagram-A5KZAMGK-CdAZgR_x.js} +1 -1
  30. package/dist/assets/{gitGraphDiagram-K3NZZRJ6-CJ2SFA-P.js → gitGraphDiagram-K3NZZRJ6-yZlvYe2k.js} +1 -1
  31. package/dist/assets/{graph-CeROF2Mz.js → graph-C0nxKAJv.js} +1 -1
  32. package/dist/assets/{index-ChVTlxbW.js → index-CFZi01LA.js} +2 -2
  33. package/dist/assets/{infoDiagram-LFFYTUFH-sIJH-Z1z.js → infoDiagram-LFFYTUFH-Qc0PCgVe.js} +1 -1
  34. package/dist/assets/{ishikawaDiagram-PHBUUO56-cG4SNKKi.js → ishikawaDiagram-PHBUUO56-CDt-YpEv.js} +1 -1
  35. package/dist/assets/{journeyDiagram-4ABVD52K-VguHZzpM.js → journeyDiagram-4ABVD52K-BhpVAU4V.js} +1 -1
  36. package/dist/assets/{kanban-definition-K7BYSVSG-aac-DAbK.js → kanban-definition-K7BYSVSG-CsWT5-lh.js} +1 -1
  37. package/dist/assets/{layout-H-oL9_kj.js → layout-CDxqCISi.js} +1 -1
  38. package/dist/assets/{linear-B8vXJBL5.js → linear-CW7tgee2.js} +1 -1
  39. package/dist/assets/{mermaid.core-ymnAayos.js → mermaid.core-qCpwXVvo.js} +4 -4
  40. package/dist/assets/{mindmap-definition-YRQLILUH-C-o4Vqly.js → mindmap-definition-YRQLILUH-DEsqAmD1.js} +1 -1
  41. package/dist/assets/{pieDiagram-SKSYHLDU-CK-0NVK8.js → pieDiagram-SKSYHLDU-BSJNXbfB.js} +1 -1
  42. package/dist/assets/{quadrantDiagram-337W2JSQ-pdNqFX9x.js → quadrantDiagram-337W2JSQ-DvijwvUf.js} +1 -1
  43. package/dist/assets/{requirementDiagram-Z7DCOOCP-BaGfh6sq.js → requirementDiagram-Z7DCOOCP-BxGhOM3K.js} +1 -1
  44. package/dist/assets/{sankeyDiagram-WA2Y5GQK-BQ0RzX_F.js → sankeyDiagram-WA2Y5GQK-DlyoiBiU.js} +1 -1
  45. package/dist/assets/{sequenceDiagram-2WXFIKYE-Dm-5PFIC.js → sequenceDiagram-2WXFIKYE-DvnSS2un.js} +1 -1
  46. package/dist/assets/{stateDiagram-RAJIS63D-3i5jvJab.js → stateDiagram-RAJIS63D-B-IiBlQ-.js} +1 -1
  47. package/dist/assets/stateDiagram-v2-FVOUBMTO-BOZvgAbb.js +1 -0
  48. package/dist/assets/{timeline-definition-YZTLITO2-cWci8icH.js → timeline-definition-YZTLITO2-CZrWNeYh.js} +1 -1
  49. package/dist/assets/{treemap-KZPCXAKY-BtmtecEc.js → treemap-KZPCXAKY-DkOJwtjo.js} +1 -1
  50. package/dist/assets/{vennDiagram-LZ73GAT5-CpulXM49.js → vennDiagram-LZ73GAT5-DDG3bdDb.js} +1 -1
  51. package/dist/assets/{xychartDiagram-JWTSCODW-BXUcP7vT.js → xychartDiagram-JWTSCODW-DL-uhWOl.js} +1 -1
  52. package/dist/index.html +1 -1
  53. package/package.json +1 -1
  54. package/server.js +2 -2
  55. package/dist/assets/channel-DtVb9u7M.js +0 -1
  56. package/dist/assets/classDiagram-VBA2DB6C-1uDH4k71.js +0 -1
  57. package/dist/assets/classDiagram-v2-RAHNMMFH-1uDH4k71.js +0 -1
  58. package/dist/assets/clone-D9G_m0uC.js +0 -1
  59. package/dist/assets/stateDiagram-v2-FVOUBMTO-11B6eW5s.js +0 -1
@@ -1,4 +1,4 @@
1
- var Ts=Object.defineProperty;var Ms=(n,s,t)=>s in n?Ts(n,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[s]=t;var B=(n,s,t)=>Ms(n,typeof s!="symbol"?s+"":s,t);import{r as j,R as W,j as e,a as Es}from"./index-ChVTlxbW.js";import{P as Rs,Q as Is,_ as te,c as se,U as dt,V as Ls,W as ht,d as Nt,X as ve,Y as _t,Z as ot,$ as St,a0 as Ps,a1 as yt,a2 as As,a3 as kt,a4 as Ds,g as Bs,m as Os,u as Fe,a5 as Fs,a6 as Hs,a7 as $s,a8 as zs,a9 as Vs,aa as Us,ab as qs,ac as wt,C as jt,I as ue,ad as Ws,ae as Kt,af as Ks,ag as Gt,ah as Gs,ai as Js,aj as Qs,e as oe,t as p,w as qe,x as Ys,y as Se,j as Xs,k as Zs,l as ea,s as c,v as G,q as ie,ak as Jt,al as $e,am as J,L as Ue,an as He,n as ta,ao as sa,o as We,ap as aa,aq as Ne,S as Qt,B as F,ar as na,as as la,at as ze,au as oa,av as pe,aw as Tt,ax as Me,M as ia,ay as Yt,J as Ee,az as Ke,G as ut,aA as Mt,H as mt,aB as ra,O as Xt,aC as ca,aD as da,aE as ha,aF as Ie,aG as Et,aH as ua,aI as Rt,aJ as Zt,aK as es,aL as Le,aM as Pe,aN as ts,aO as it,aP as It,aQ as Lt,aR as Pt,aS as ma,aT as pa,A as fa,aU as Ge,aV as At,aW as ga,D as xa,z as R,E as va,aX as ya}from"./AppHeader.module--nz0NBXP.js";var Dt=j.createContext(null),ss=j.createContext({}),ja=["prefixCls","className","containerRef"],Ca=function(s){var t=s.prefixCls,a=s.className,d=s.containerRef,l=Rs(s,ja),u=j.useContext(ss),f=u.panel,o=Is(f,d);return j.createElement("div",te({className:se("".concat(t,"-content"),a),role:"dialog",ref:o},dt(s,{aria:!0}),{"aria-modal":"true"},l))};function Bt(n){return typeof n=="string"&&String(Number(n))===n?(Ls(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(n)):n}var Ot={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ba(n,s){var t,a,d,l=n.prefixCls,u=n.open,f=n.placement,o=n.inline,h=n.push,i=n.forceRender,r=n.autoFocus,m=n.keyboard,y=n.classNames,x=n.rootClassName,g=n.rootStyle,v=n.zIndex,C=n.className,k=n.id,N=n.style,b=n.motion,T=n.width,E=n.height,L=n.children,I=n.mask,M=n.maskClosable,D=n.maskMotion,O=n.maskClassName,ae=n.maskStyle,ne=n.afterOpenChange,P=n.onClose,X=n.onMouseEnter,re=n.onMouseOver,ee=n.onMouseLeave,me=n.onClick,ye=n.onKeyDown,fe=n.onKeyUp,K=n.styles,ge=n.drawerRender,_=j.useRef(),z=j.useRef(),ce=j.useRef();j.useImperativeHandle(s,function(){return _.current});var _e=function(de){var De=de.keyCode,Be=de.shiftKey;switch(De){case ot.TAB:{if(De===ot.TAB){if(!Be&&document.activeElement===ce.current){var Oe;(Oe=z.current)===null||Oe===void 0||Oe.focus({preventScroll:!0})}else if(Be&&document.activeElement===z.current){var lt;(lt=ce.current)===null||lt===void 0||lt.focus({preventScroll:!0})}}break}case ot.ESC:{P&&m&&(de.stopPropagation(),P(de));break}}};j.useEffect(function(){if(u&&r){var Y;(Y=_.current)===null||Y===void 0||Y.focus({preventScroll:!0})}},[u]);var ke=j.useState(!1),we=ht(ke,2),je=we[0],xe=we[1],V=j.useContext(Dt),Z;typeof h=="boolean"?Z=h?{}:{distance:0}:Z=h||{};var q=(t=(a=(d=Z)===null||d===void 0?void 0:d.distance)!==null&&a!==void 0?a:V==null?void 0:V.pushDistance)!==null&&t!==void 0?t:180,U=j.useMemo(function(){return{pushDistance:q,push:function(){xe(!0)},pull:function(){xe(!1)}}},[q]);j.useEffect(function(){if(u){var Y;V==null||(Y=V.push)===null||Y===void 0||Y.call(V)}else{var de;V==null||(de=V.pull)===null||de===void 0||de.call(V)}},[u]),j.useEffect(function(){return function(){var Y;V==null||(Y=V.pull)===null||Y===void 0||Y.call(V)}},[]);var le=j.createElement(Nt,te({key:"mask"},D,{visible:I&&u}),function(Y,de){var De=Y.className,Be=Y.style;return j.createElement("div",{className:se("".concat(l,"-mask"),De,y==null?void 0:y.mask,O),style:ve(ve(ve({},Be),ae),K==null?void 0:K.mask),onClick:M&&u?P:void 0,ref:de})}),Ce=typeof b=="function"?b(f):b,be={};if(je&&q)switch(f){case"top":be.transform="translateY(".concat(q,"px)");break;case"bottom":be.transform="translateY(".concat(-q,"px)");break;case"left":be.transform="translateX(".concat(q,"px)");break;default:be.transform="translateX(".concat(-q,"px)");break}f==="left"||f==="right"?be.width=Bt(T):be.height=Bt(E);var ks={onMouseEnter:X,onMouseOver:re,onMouseLeave:ee,onClick:me,onKeyDown:ye,onKeyUp:fe},ws=j.createElement(Nt,te({key:"panel"},Ce,{visible:u,forceRender:i,onVisibleChanged:function(de){ne==null||ne(de)},removeOnLeave:!1,leavedClassName:"".concat(l,"-content-wrapper-hidden")}),function(Y,de){var De=Y.className,Be=Y.style,Oe=j.createElement(Ca,te({id:k,containerRef:de,prefixCls:l,className:se(C,y==null?void 0:y.content),style:ve(ve({},N),K==null?void 0:K.content)},dt(n,{aria:!0}),ks),L);return j.createElement("div",te({className:se("".concat(l,"-content-wrapper"),y==null?void 0:y.wrapper,De),style:ve(ve(ve({},be),Be),K==null?void 0:K.wrapper)},dt(n,{data:!0})),ge?ge(Oe):Oe)}),bt=ve({},g);return v&&(bt.zIndex=v),j.createElement(Dt.Provider,{value:U},j.createElement("div",{className:se(l,"".concat(l,"-").concat(f),x,_t(_t({},"".concat(l,"-open"),u),"".concat(l,"-inline"),o)),style:bt,tabIndex:-1,ref:_,onKeyDown:_e},le,j.createElement("div",{tabIndex:0,ref:z,style:Ot,"aria-hidden":"true","data-sentinel":"start"}),ws,j.createElement("div",{tabIndex:0,ref:ce,style:Ot,"aria-hidden":"true","data-sentinel":"end"})))}var Na=j.forwardRef(ba),_a=function(s){var t=s.open,a=t===void 0?!1:t,d=s.prefixCls,l=d===void 0?"rc-drawer":d,u=s.placement,f=u===void 0?"right":u,o=s.autoFocus,h=o===void 0?!0:o,i=s.keyboard,r=i===void 0?!0:i,m=s.width,y=m===void 0?378:m,x=s.mask,g=x===void 0?!0:x,v=s.maskClosable,C=v===void 0?!0:v,k=s.getContainer,N=s.forceRender,b=s.afterOpenChange,T=s.destroyOnClose,E=s.onMouseEnter,L=s.onMouseOver,I=s.onMouseLeave,M=s.onClick,D=s.onKeyDown,O=s.onKeyUp,ae=s.panelRef,ne=j.useState(!1),P=ht(ne,2),X=P[0],re=P[1],ee=j.useState(!1),me=ht(ee,2),ye=me[0],fe=me[1];St(function(){fe(!0)},[]);var K=ye?a:!1,ge=j.useRef(),_=j.useRef();St(function(){K&&(_.current=document.activeElement)},[K]);var z=function(je){var xe;if(re(je),b==null||b(je),!je&&_.current&&!((xe=ge.current)!==null&&xe!==void 0&&xe.contains(_.current))){var V;(V=_.current)===null||V===void 0||V.focus({preventScroll:!0})}},ce=j.useMemo(function(){return{panel:ae}},[ae]);if(!N&&!X&&!K&&T)return null;var _e={onMouseEnter:E,onMouseOver:L,onMouseLeave:I,onClick:M,onKeyDown:D,onKeyUp:O},ke=ve(ve({},s),{},{open:K,prefixCls:l,placement:f,autoFocus:h,keyboard:r,width:y,mask:g,maskClosable:C,inline:k===!1,afterOpenChange:z,ref:ge},_e);return j.createElement(ss.Provider,{value:ce},j.createElement(Ps,{open:K||N||X,autoDestroy:!1,getContainer:k,autoLock:g&&(K||X)},j.createElement(Na,ke)))};const as=n=>{var s,t;const{prefixCls:a,ariaId:d,title:l,footer:u,extra:f,closable:o,loading:h,onClose:i,headerStyle:r,bodyStyle:m,footerStyle:y,children:x,classNames:g,styles:v}=n,C=yt("drawer");let k;o===!1?k=void 0:o===void 0||o===!0?k="start":k=(o==null?void 0:o.placement)==="end"?"end":"start";const N=j.useCallback(I=>j.createElement("button",{type:"button",onClick:i,className:se(`${a}-close`,{[`${a}-close-${k}`]:k==="end"})},I),[i,a,k]),[b,T]=As(kt(n),kt(C),{closable:!0,closeIconRender:N}),E=()=>{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),v==null?void 0:v.header),className:se(`${a}-header`,{[`${a}-header-close-only`]:b&&!l&&!f},(M=C.classNames)===null||M===void 0?void 0:M.header,g==null?void 0:g.header)},j.createElement("div",{className:`${a}-header-title`},k==="start"&&T,l&&j.createElement("div",{className:`${a}-title`,id:d},l)),f&&j.createElement("div",{className:`${a}-extra`},f),k==="end"&&T)},L=()=>{var I,M;if(!u)return null;const D=`${a}-footer`;return j.createElement("div",{className:se(D,(I=C.classNames)===null||I===void 0?void 0:I.footer,g==null?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},(M=C.styles)===null||M===void 0?void 0:M.footer),y),v==null?void 0:v.footer)},u)};return j.createElement(j.Fragment,null,E(),j.createElement("div",{className:se(`${a}-body`,g==null?void 0:g.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),v==null?void 0:v.body)},h?j.createElement(Ds,{active:!0,title:!1,paragraph:{rows:5},className:`${a}-body-skeleton`}):x),L())},Sa=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})),ka=(n,s)=>[ls(.7,s),ns({transform:Sa(n)},{transform:"none"})],wa=n=>{const{componentCls:s,motionDurationSlow:t}=n;return{[s]:{[`${s}-mask-motion`]:ls(0,t),[`${s}-panel-motion`]:["left","right","top","bottom"].reduce((a,d)=>Object.assign(Object.assign({},a),{[`&-${d}`]:ka(d,t)}),{})}}},Ta=n=>{const{borderRadiusSM:s,componentCls:t,zIndexPopup:a,colorBgMask:d,colorBgElevated:l,motionDurationSlow:u,motionDurationMid:f,paddingXS:o,padding:h,paddingLG:i,fontSizeLG:r,lineHeightLG:m,lineWidth:y,lineType:x,colorSplit:g,marginXS:v,colorIcon:C,colorIconHover:k,colorBgTextHover:N,colorBgTextActive:b,colorText:T,fontWeightStrong:E,footerPaddingBlock:L,footerPaddingInline:I,calc:M}=n,D=`${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:d,pointerEvents:"auto"},[D]:{position:"absolute",zIndex:a,maxWidth:"100vw",transition:`all ${u}`,"&-hidden":{display:"none"}},[`&-left > ${D}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:n.boxShadowDrawerLeft},[`&-right > ${D}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:n.boxShadowDrawerRight},[`&-top > ${D}`]:{top:0,insetInline:0,boxShadow:n.boxShadowDrawerUp},[`&-bottom > ${D}`]:{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:`${Fe(h)} ${Fe(i)}`,fontSize:r,lineHeight:m,borderBottom:`${Fe(y)} ${x} ${g}`,"&-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(o).equal(),height:M(r).add(o).equal(),borderRadius:s,justifyContent:"center",alignItems:"center",color:C,fontWeight:E,fontSize:r,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${f}`,textRendering:"auto",[`&${t}-close-end`]:{marginInlineStart:v},[`&:not(${t}-close-end)`]:{marginInlineEnd:v},"&:hover":{color:k,backgroundColor:N,textDecoration:"none"},"&:active":{backgroundColor:b}},Fs(n)),[`${t}-title`]:{flex:1,margin:0,fontWeight:n.fontWeightStrong,fontSize:r,lineHeight:m},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:i,overflow:"auto",[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${t}-footer`]:{flexShrink:0,padding:`${Fe(L)} ${Fe(I)}`,borderTop:`${Fe(y)} ${x} ${g}`},"&-rtl":{direction:"rtl"}}}},Ma=n=>({zIndexPopup:n.zIndexPopupBase,footerPaddingBlock:n.paddingXS,footerPaddingInline:n.padding}),os=Bs("Drawer",n=>{const s=Os(n,{});return[Ta(s),wa(s)]},Ma);var is=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 d=0,a=Object.getOwnPropertySymbols(n);d<a.length;d++)s.indexOf(a[d])<0&&Object.prototype.propertyIsEnumerable.call(n,a[d])&&(t[a[d]]=n[a[d]]);return t};const Ea={distance:180},Je=n=>{const{rootClassName:s,width:t,height:a,size:d="default",mask:l=!0,push:u=Ea,open:f,afterOpenChange:o,onClose:h,prefixCls:i,getContainer:r,panelRef:m=null,style:y,className:x,"aria-labelledby":g,visible:v,afterVisibleChange:C,maskStyle:k,drawerStyle:N,contentWrapperStyle:b,destroyOnClose:T,destroyOnHidden:E}=n,L=is(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=L.title?I:void 0,{getPopupContainer:D,getPrefixCls:O,direction:ae,className:ne,style:P,classNames:X,styles:re}=yt("drawer"),ee=O("drawer",i),[me,ye,fe]=os(ee),K=r===void 0&&D?()=>D(document.body):r,ge=se({"no-mask":!l,[`${ee}-rtl`]:ae==="rtl"},s,ye,fe),_=j.useMemo(()=>t??(d==="large"?736:378),[t,d]),z=j.useMemo(()=>a??(d==="large"?736:378),[a,d]),ce={motionName:wt(ee,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},_e=q=>({motionName:wt(ee,`panel-motion-${q}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),ke=$s(),we=zs(m,ke),[je,xe]=Vs("Drawer",L.zIndex),{classNames:V={},styles:Z={}}=L;return me(j.createElement(Us,{form:!0,space:!0},j.createElement(qs.Provider,{value:xe},j.createElement(_a,Object.assign({prefixCls:ee,onClose:h,maskMotion:ce,motion:_e},L,{classNames:{mask:se(V.mask,X.mask),content:se(V.content,X.content),wrapper:se(V.wrapper,X.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},Z.mask),k),re.mask),content:Object.assign(Object.assign(Object.assign({},Z.content),N),re.content),wrapper:Object.assign(Object.assign(Object.assign({},Z.wrapper),b),re.wrapper)},open:f??v,mask:l,push:u,width:_,height:z,style:Object.assign(Object.assign({},P),y),className:se(ne,x),rootClassName:ge,getContainer:K,afterOpenChange:o??C,panelRef:we,zIndex:je,"aria-labelledby":g??M,destroyOnClose:E??T}),j.createElement(as,Object.assign({prefixCls:ee},L,{ariaId:M,onClose:h}))))))},Ra=n=>{const{prefixCls:s,style:t,className:a,placement:d="right"}=n,l=is(n,["prefixCls","style","className","placement"]),{getPrefixCls:u}=j.useContext(jt),f=u("drawer",s),[o,h,i]=os(f),r=se(f,`${f}-pure`,`${f}-${d}`,h,i,a);return o(j.createElement("div",{className:r,style:t},j.createElement(as,Object.assign({prefixCls:f},l))))};Je._InternalPanelDoNotUseOrYouWillBeFired=Ra;var Ia={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"},La=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:Ia}))},Qe=j.forwardRef(La),Pa={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"},Aa=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:Pa}))},Ft=j.forwardRef(Aa);function Da(n,s,t){return typeof t=="boolean"?t:n.length?!0:Ws(s).some(d=>d.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 d=0,a=Object.getOwnPropertySymbols(n);d<a.length;d++)s.indexOf(a[d])<0&&Object.prototype.propertyIsEnumerable.call(n,a[d])&&(t[a[d]]=n[a[d]]);return t};function nt({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 Ct=j.forwardRef((n,s)=>{const{prefixCls:t,suffixCls:a,className:d,tagName:l}=n,u=rs(n,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:f}=j.useContext(jt),o=f("layout",t),[h,i,r]=Gt(o),m=a?`${o}-${a}`:o;return h(j.createElement(l,Object.assign({className:se(t||m,d,i,r),ref:s},u)))}),Ba=j.forwardRef((n,s)=>{const{direction:t}=j.useContext(jt),[a,d]=j.useState([]),{prefixCls:l,className:u,rootClassName:f,children:o,hasSider:h,tagName:i,style:r}=n,m=rs(n,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),y=Ks(m,["suffixCls"]),{getPrefixCls:x,className:g,style:v}=yt("layout"),C=x("layout",l),k=Da(a,o,h),[N,b,T]=Gt(C),E=se(C,{[`${C}-has-sider`]:k,[`${C}-rtl`]:t==="rtl"},g,u,f,b,T),L=j.useMemo(()=>({siderHook:{addSider:I=>{d(M=>[].concat(Gs(M),[I]))},removeSider:I=>{d(M=>M.filter(D=>D!==I))}}}),[]);return N(j.createElement(Js.Provider,{value:L},j.createElement(i,Object.assign({ref:s,className:E,style:Object.assign(Object.assign({},v),r)},y),o)))}),Oa=nt({tagName:"div",displayName:"Layout"})(Ba),Fa=nt({suffixCls:"header",tagName:"header",displayName:"Header"})(Ct),Ha=nt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Ct),$a=nt({suffixCls:"content",tagName:"main",displayName:"Content"})(Ct),Te=Oa;Te.Header=Fa;Te.Footer=Ha;Te.Content=$a;Te.Sider=Kt;Te._InternalSiderContext=Qs;var za={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"},Va=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:za}))},Ht=j.forwardRef(Va),Ua={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"},qa=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:Ua}))},$t=j.forwardRef(qa),Wa={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"},Ka=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:Wa}))},zt=j.forwardRef(Ka),Ga={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"},Ja=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:Ga}))},Ye=j.forwardRef(Ja),Qa={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"},Ya=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:Qa}))},rt=j.forwardRef(Ya),Xa={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"},Za=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:Xa}))},en=j.forwardRef(Za),tn={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"},sn=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:tn}))},an=j.forwardRef(sn),nn={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"},ln=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:nn}))},Vt=j.forwardRef(ln),on={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},rn=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:on}))},cn=j.forwardRef(rn),dn={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"},hn=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:dn}))},Ut=j.forwardRef(hn),un={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"},mn=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:un}))},qt=j.forwardRef(mn),pn=Object.defineProperty,Ze=Object.getOwnPropertySymbols,cs=Object.prototype.hasOwnProperty,ds=Object.prototype.propertyIsEnumerable,Wt=(n,s,t)=>s in n?pn(n,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[s]=t,pt=(n,s)=>{for(var t in s||(s={}))cs.call(s,t)&&Wt(n,t,s[t]);if(Ze)for(var t of Ze(s))ds.call(s,t)&&Wt(n,t,s[t]);return n},ft=(n,s)=>{var t={};for(var a in n)cs.call(n,a)&&s.indexOf(a)<0&&(t[a]=n[a]);if(n!=null&&Ze)for(var a of Ze(n))s.indexOf(a)<0&&ds.call(n,a)&&(t[a]=n[a]);return t};/**
1
+ var Ts=Object.defineProperty;var Ms=(n,s,t)=>s in n?Ts(n,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[s]=t;var B=(n,s,t)=>Ms(n,typeof s!="symbol"?s+"":s,t);import{r as j,R as W,j as e,a as Es}from"./index-CFZi01LA.js";import{P as Rs,Q as Is,_ as te,c as se,U as dt,V as Ls,W as ht,d as Nt,X as ve,Y as _t,Z as ot,$ as St,a0 as Ps,a1 as yt,a2 as As,a3 as kt,a4 as Ds,g as Bs,m as Os,u as Fe,a5 as Fs,a6 as Hs,a7 as $s,a8 as zs,a9 as Vs,aa as Us,ab as qs,ac as wt,C as jt,I as ue,ad as Ws,ae as Kt,af as Ks,ag as Gt,ah as Gs,ai as Js,aj as Qs,e as oe,t as p,w as qe,x as Ys,y as Se,j as Xs,k as Zs,l as ea,s as c,v as G,q as ie,ak as Jt,al as $e,am as J,L as Ue,an as He,n as ta,ao as sa,o as We,ap as aa,aq as Ne,S as Qt,B as F,ar as na,as as la,at as ze,au as oa,av as pe,aw as Tt,ax as Me,M as ia,ay as Yt,J as Ee,az as Ke,G as ut,aA as Mt,H as mt,aB as ra,O as Xt,aC as ca,aD as da,aE as ha,aF as Ie,aG as Et,aH as ua,aI as Rt,aJ as Zt,aK as es,aL as Le,aM as Pe,aN as ts,aO as it,aP as It,aQ as Lt,aR as Pt,aS as ma,aT as pa,A as fa,aU as Ge,aV as At,aW as ga,D as xa,z as R,E as va,aX as ya}from"./AppHeader.module-CszrDKwT.js";var Dt=j.createContext(null),ss=j.createContext({}),ja=["prefixCls","className","containerRef"],Ca=function(s){var t=s.prefixCls,a=s.className,d=s.containerRef,l=Rs(s,ja),u=j.useContext(ss),f=u.panel,o=Is(f,d);return j.createElement("div",te({className:se("".concat(t,"-content"),a),role:"dialog",ref:o},dt(s,{aria:!0}),{"aria-modal":"true"},l))};function Bt(n){return typeof n=="string"&&String(Number(n))===n?(Ls(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(n)):n}var Ot={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ba(n,s){var t,a,d,l=n.prefixCls,u=n.open,f=n.placement,o=n.inline,h=n.push,i=n.forceRender,r=n.autoFocus,m=n.keyboard,y=n.classNames,x=n.rootClassName,g=n.rootStyle,v=n.zIndex,C=n.className,k=n.id,N=n.style,b=n.motion,T=n.width,E=n.height,L=n.children,I=n.mask,M=n.maskClosable,D=n.maskMotion,O=n.maskClassName,ae=n.maskStyle,ne=n.afterOpenChange,P=n.onClose,X=n.onMouseEnter,re=n.onMouseOver,ee=n.onMouseLeave,me=n.onClick,ye=n.onKeyDown,fe=n.onKeyUp,K=n.styles,ge=n.drawerRender,_=j.useRef(),z=j.useRef(),ce=j.useRef();j.useImperativeHandle(s,function(){return _.current});var _e=function(de){var De=de.keyCode,Be=de.shiftKey;switch(De){case ot.TAB:{if(De===ot.TAB){if(!Be&&document.activeElement===ce.current){var Oe;(Oe=z.current)===null||Oe===void 0||Oe.focus({preventScroll:!0})}else if(Be&&document.activeElement===z.current){var lt;(lt=ce.current)===null||lt===void 0||lt.focus({preventScroll:!0})}}break}case ot.ESC:{P&&m&&(de.stopPropagation(),P(de));break}}};j.useEffect(function(){if(u&&r){var Y;(Y=_.current)===null||Y===void 0||Y.focus({preventScroll:!0})}},[u]);var ke=j.useState(!1),we=ht(ke,2),je=we[0],xe=we[1],V=j.useContext(Dt),Z;typeof h=="boolean"?Z=h?{}:{distance:0}:Z=h||{};var q=(t=(a=(d=Z)===null||d===void 0?void 0:d.distance)!==null&&a!==void 0?a:V==null?void 0:V.pushDistance)!==null&&t!==void 0?t:180,U=j.useMemo(function(){return{pushDistance:q,push:function(){xe(!0)},pull:function(){xe(!1)}}},[q]);j.useEffect(function(){if(u){var Y;V==null||(Y=V.push)===null||Y===void 0||Y.call(V)}else{var de;V==null||(de=V.pull)===null||de===void 0||de.call(V)}},[u]),j.useEffect(function(){return function(){var Y;V==null||(Y=V.pull)===null||Y===void 0||Y.call(V)}},[]);var le=j.createElement(Nt,te({key:"mask"},D,{visible:I&&u}),function(Y,de){var De=Y.className,Be=Y.style;return j.createElement("div",{className:se("".concat(l,"-mask"),De,y==null?void 0:y.mask,O),style:ve(ve(ve({},Be),ae),K==null?void 0:K.mask),onClick:M&&u?P:void 0,ref:de})}),Ce=typeof b=="function"?b(f):b,be={};if(je&&q)switch(f){case"top":be.transform="translateY(".concat(q,"px)");break;case"bottom":be.transform="translateY(".concat(-q,"px)");break;case"left":be.transform="translateX(".concat(q,"px)");break;default:be.transform="translateX(".concat(-q,"px)");break}f==="left"||f==="right"?be.width=Bt(T):be.height=Bt(E);var ks={onMouseEnter:X,onMouseOver:re,onMouseLeave:ee,onClick:me,onKeyDown:ye,onKeyUp:fe},ws=j.createElement(Nt,te({key:"panel"},Ce,{visible:u,forceRender:i,onVisibleChanged:function(de){ne==null||ne(de)},removeOnLeave:!1,leavedClassName:"".concat(l,"-content-wrapper-hidden")}),function(Y,de){var De=Y.className,Be=Y.style,Oe=j.createElement(Ca,te({id:k,containerRef:de,prefixCls:l,className:se(C,y==null?void 0:y.content),style:ve(ve({},N),K==null?void 0:K.content)},dt(n,{aria:!0}),ks),L);return j.createElement("div",te({className:se("".concat(l,"-content-wrapper"),y==null?void 0:y.wrapper,De),style:ve(ve(ve({},be),Be),K==null?void 0:K.wrapper)},dt(n,{data:!0})),ge?ge(Oe):Oe)}),bt=ve({},g);return v&&(bt.zIndex=v),j.createElement(Dt.Provider,{value:U},j.createElement("div",{className:se(l,"".concat(l,"-").concat(f),x,_t(_t({},"".concat(l,"-open"),u),"".concat(l,"-inline"),o)),style:bt,tabIndex:-1,ref:_,onKeyDown:_e},le,j.createElement("div",{tabIndex:0,ref:z,style:Ot,"aria-hidden":"true","data-sentinel":"start"}),ws,j.createElement("div",{tabIndex:0,ref:ce,style:Ot,"aria-hidden":"true","data-sentinel":"end"})))}var Na=j.forwardRef(ba),_a=function(s){var t=s.open,a=t===void 0?!1:t,d=s.prefixCls,l=d===void 0?"rc-drawer":d,u=s.placement,f=u===void 0?"right":u,o=s.autoFocus,h=o===void 0?!0:o,i=s.keyboard,r=i===void 0?!0:i,m=s.width,y=m===void 0?378:m,x=s.mask,g=x===void 0?!0:x,v=s.maskClosable,C=v===void 0?!0:v,k=s.getContainer,N=s.forceRender,b=s.afterOpenChange,T=s.destroyOnClose,E=s.onMouseEnter,L=s.onMouseOver,I=s.onMouseLeave,M=s.onClick,D=s.onKeyDown,O=s.onKeyUp,ae=s.panelRef,ne=j.useState(!1),P=ht(ne,2),X=P[0],re=P[1],ee=j.useState(!1),me=ht(ee,2),ye=me[0],fe=me[1];St(function(){fe(!0)},[]);var K=ye?a:!1,ge=j.useRef(),_=j.useRef();St(function(){K&&(_.current=document.activeElement)},[K]);var z=function(je){var xe;if(re(je),b==null||b(je),!je&&_.current&&!((xe=ge.current)!==null&&xe!==void 0&&xe.contains(_.current))){var V;(V=_.current)===null||V===void 0||V.focus({preventScroll:!0})}},ce=j.useMemo(function(){return{panel:ae}},[ae]);if(!N&&!X&&!K&&T)return null;var _e={onMouseEnter:E,onMouseOver:L,onMouseLeave:I,onClick:M,onKeyDown:D,onKeyUp:O},ke=ve(ve({},s),{},{open:K,prefixCls:l,placement:f,autoFocus:h,keyboard:r,width:y,mask:g,maskClosable:C,inline:k===!1,afterOpenChange:z,ref:ge},_e);return j.createElement(ss.Provider,{value:ce},j.createElement(Ps,{open:K||N||X,autoDestroy:!1,getContainer:k,autoLock:g&&(K||X)},j.createElement(Na,ke)))};const as=n=>{var s,t;const{prefixCls:a,ariaId:d,title:l,footer:u,extra:f,closable:o,loading:h,onClose:i,headerStyle:r,bodyStyle:m,footerStyle:y,children:x,classNames:g,styles:v}=n,C=yt("drawer");let k;o===!1?k=void 0:o===void 0||o===!0?k="start":k=(o==null?void 0:o.placement)==="end"?"end":"start";const N=j.useCallback(I=>j.createElement("button",{type:"button",onClick:i,className:se(`${a}-close`,{[`${a}-close-${k}`]:k==="end"})},I),[i,a,k]),[b,T]=As(kt(n),kt(C),{closable:!0,closeIconRender:N}),E=()=>{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),v==null?void 0:v.header),className:se(`${a}-header`,{[`${a}-header-close-only`]:b&&!l&&!f},(M=C.classNames)===null||M===void 0?void 0:M.header,g==null?void 0:g.header)},j.createElement("div",{className:`${a}-header-title`},k==="start"&&T,l&&j.createElement("div",{className:`${a}-title`,id:d},l)),f&&j.createElement("div",{className:`${a}-extra`},f),k==="end"&&T)},L=()=>{var I,M;if(!u)return null;const D=`${a}-footer`;return j.createElement("div",{className:se(D,(I=C.classNames)===null||I===void 0?void 0:I.footer,g==null?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},(M=C.styles)===null||M===void 0?void 0:M.footer),y),v==null?void 0:v.footer)},u)};return j.createElement(j.Fragment,null,E(),j.createElement("div",{className:se(`${a}-body`,g==null?void 0:g.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),v==null?void 0:v.body)},h?j.createElement(Ds,{active:!0,title:!1,paragraph:{rows:5},className:`${a}-body-skeleton`}):x),L())},Sa=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})),ka=(n,s)=>[ls(.7,s),ns({transform:Sa(n)},{transform:"none"})],wa=n=>{const{componentCls:s,motionDurationSlow:t}=n;return{[s]:{[`${s}-mask-motion`]:ls(0,t),[`${s}-panel-motion`]:["left","right","top","bottom"].reduce((a,d)=>Object.assign(Object.assign({},a),{[`&-${d}`]:ka(d,t)}),{})}}},Ta=n=>{const{borderRadiusSM:s,componentCls:t,zIndexPopup:a,colorBgMask:d,colorBgElevated:l,motionDurationSlow:u,motionDurationMid:f,paddingXS:o,padding:h,paddingLG:i,fontSizeLG:r,lineHeightLG:m,lineWidth:y,lineType:x,colorSplit:g,marginXS:v,colorIcon:C,colorIconHover:k,colorBgTextHover:N,colorBgTextActive:b,colorText:T,fontWeightStrong:E,footerPaddingBlock:L,footerPaddingInline:I,calc:M}=n,D=`${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:d,pointerEvents:"auto"},[D]:{position:"absolute",zIndex:a,maxWidth:"100vw",transition:`all ${u}`,"&-hidden":{display:"none"}},[`&-left > ${D}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:n.boxShadowDrawerLeft},[`&-right > ${D}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:n.boxShadowDrawerRight},[`&-top > ${D}`]:{top:0,insetInline:0,boxShadow:n.boxShadowDrawerUp},[`&-bottom > ${D}`]:{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:`${Fe(h)} ${Fe(i)}`,fontSize:r,lineHeight:m,borderBottom:`${Fe(y)} ${x} ${g}`,"&-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(o).equal(),height:M(r).add(o).equal(),borderRadius:s,justifyContent:"center",alignItems:"center",color:C,fontWeight:E,fontSize:r,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${f}`,textRendering:"auto",[`&${t}-close-end`]:{marginInlineStart:v},[`&:not(${t}-close-end)`]:{marginInlineEnd:v},"&:hover":{color:k,backgroundColor:N,textDecoration:"none"},"&:active":{backgroundColor:b}},Fs(n)),[`${t}-title`]:{flex:1,margin:0,fontWeight:n.fontWeightStrong,fontSize:r,lineHeight:m},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:i,overflow:"auto",[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${t}-footer`]:{flexShrink:0,padding:`${Fe(L)} ${Fe(I)}`,borderTop:`${Fe(y)} ${x} ${g}`},"&-rtl":{direction:"rtl"}}}},Ma=n=>({zIndexPopup:n.zIndexPopupBase,footerPaddingBlock:n.paddingXS,footerPaddingInline:n.padding}),os=Bs("Drawer",n=>{const s=Os(n,{});return[Ta(s),wa(s)]},Ma);var is=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 d=0,a=Object.getOwnPropertySymbols(n);d<a.length;d++)s.indexOf(a[d])<0&&Object.prototype.propertyIsEnumerable.call(n,a[d])&&(t[a[d]]=n[a[d]]);return t};const Ea={distance:180},Je=n=>{const{rootClassName:s,width:t,height:a,size:d="default",mask:l=!0,push:u=Ea,open:f,afterOpenChange:o,onClose:h,prefixCls:i,getContainer:r,panelRef:m=null,style:y,className:x,"aria-labelledby":g,visible:v,afterVisibleChange:C,maskStyle:k,drawerStyle:N,contentWrapperStyle:b,destroyOnClose:T,destroyOnHidden:E}=n,L=is(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=L.title?I:void 0,{getPopupContainer:D,getPrefixCls:O,direction:ae,className:ne,style:P,classNames:X,styles:re}=yt("drawer"),ee=O("drawer",i),[me,ye,fe]=os(ee),K=r===void 0&&D?()=>D(document.body):r,ge=se({"no-mask":!l,[`${ee}-rtl`]:ae==="rtl"},s,ye,fe),_=j.useMemo(()=>t??(d==="large"?736:378),[t,d]),z=j.useMemo(()=>a??(d==="large"?736:378),[a,d]),ce={motionName:wt(ee,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},_e=q=>({motionName:wt(ee,`panel-motion-${q}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),ke=$s(),we=zs(m,ke),[je,xe]=Vs("Drawer",L.zIndex),{classNames:V={},styles:Z={}}=L;return me(j.createElement(Us,{form:!0,space:!0},j.createElement(qs.Provider,{value:xe},j.createElement(_a,Object.assign({prefixCls:ee,onClose:h,maskMotion:ce,motion:_e},L,{classNames:{mask:se(V.mask,X.mask),content:se(V.content,X.content),wrapper:se(V.wrapper,X.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},Z.mask),k),re.mask),content:Object.assign(Object.assign(Object.assign({},Z.content),N),re.content),wrapper:Object.assign(Object.assign(Object.assign({},Z.wrapper),b),re.wrapper)},open:f??v,mask:l,push:u,width:_,height:z,style:Object.assign(Object.assign({},P),y),className:se(ne,x),rootClassName:ge,getContainer:K,afterOpenChange:o??C,panelRef:we,zIndex:je,"aria-labelledby":g??M,destroyOnClose:E??T}),j.createElement(as,Object.assign({prefixCls:ee},L,{ariaId:M,onClose:h}))))))},Ra=n=>{const{prefixCls:s,style:t,className:a,placement:d="right"}=n,l=is(n,["prefixCls","style","className","placement"]),{getPrefixCls:u}=j.useContext(jt),f=u("drawer",s),[o,h,i]=os(f),r=se(f,`${f}-pure`,`${f}-${d}`,h,i,a);return o(j.createElement("div",{className:r,style:t},j.createElement(as,Object.assign({prefixCls:f},l))))};Je._InternalPanelDoNotUseOrYouWillBeFired=Ra;var Ia={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"},La=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:Ia}))},Qe=j.forwardRef(La),Pa={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"},Aa=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:Pa}))},Ft=j.forwardRef(Aa);function Da(n,s,t){return typeof t=="boolean"?t:n.length?!0:Ws(s).some(d=>d.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 d=0,a=Object.getOwnPropertySymbols(n);d<a.length;d++)s.indexOf(a[d])<0&&Object.prototype.propertyIsEnumerable.call(n,a[d])&&(t[a[d]]=n[a[d]]);return t};function nt({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 Ct=j.forwardRef((n,s)=>{const{prefixCls:t,suffixCls:a,className:d,tagName:l}=n,u=rs(n,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:f}=j.useContext(jt),o=f("layout",t),[h,i,r]=Gt(o),m=a?`${o}-${a}`:o;return h(j.createElement(l,Object.assign({className:se(t||m,d,i,r),ref:s},u)))}),Ba=j.forwardRef((n,s)=>{const{direction:t}=j.useContext(jt),[a,d]=j.useState([]),{prefixCls:l,className:u,rootClassName:f,children:o,hasSider:h,tagName:i,style:r}=n,m=rs(n,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),y=Ks(m,["suffixCls"]),{getPrefixCls:x,className:g,style:v}=yt("layout"),C=x("layout",l),k=Da(a,o,h),[N,b,T]=Gt(C),E=se(C,{[`${C}-has-sider`]:k,[`${C}-rtl`]:t==="rtl"},g,u,f,b,T),L=j.useMemo(()=>({siderHook:{addSider:I=>{d(M=>[].concat(Gs(M),[I]))},removeSider:I=>{d(M=>M.filter(D=>D!==I))}}}),[]);return N(j.createElement(Js.Provider,{value:L},j.createElement(i,Object.assign({ref:s,className:E,style:Object.assign(Object.assign({},v),r)},y),o)))}),Oa=nt({tagName:"div",displayName:"Layout"})(Ba),Fa=nt({suffixCls:"header",tagName:"header",displayName:"Header"})(Ct),Ha=nt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Ct),$a=nt({suffixCls:"content",tagName:"main",displayName:"Content"})(Ct),Te=Oa;Te.Header=Fa;Te.Footer=Ha;Te.Content=$a;Te.Sider=Kt;Te._InternalSiderContext=Qs;var za={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"},Va=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:za}))},Ht=j.forwardRef(Va),Ua={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"},qa=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:Ua}))},$t=j.forwardRef(qa),Wa={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"},Ka=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:Wa}))},zt=j.forwardRef(Ka),Ga={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"},Ja=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:Ga}))},Ye=j.forwardRef(Ja),Qa={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"},Ya=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:Qa}))},rt=j.forwardRef(Ya),Xa={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"},Za=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:Xa}))},en=j.forwardRef(Za),tn={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"},sn=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:tn}))},an=j.forwardRef(sn),nn={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"},ln=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:nn}))},Vt=j.forwardRef(ln),on={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},rn=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:on}))},cn=j.forwardRef(rn),dn={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"},hn=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:dn}))},Ut=j.forwardRef(hn),un={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"},mn=function(s,t){return j.createElement(ue,te({},s,{ref:t,icon:un}))},qt=j.forwardRef(mn),pn=Object.defineProperty,Ze=Object.getOwnPropertySymbols,cs=Object.prototype.hasOwnProperty,ds=Object.prototype.propertyIsEnumerable,Wt=(n,s,t)=>s in n?pn(n,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[s]=t,pt=(n,s)=>{for(var t in s||(s={}))cs.call(s,t)&&Wt(n,t,s[t]);if(Ze)for(var t of Ze(s))ds.call(s,t)&&Wt(n,t,s[t]);return n},ft=(n,s)=>{var t={};for(var a in n)cs.call(n,a)&&s.indexOf(a)<0&&(t[a]=n[a]);if(n!=null&&Ze)for(var a of Ze(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
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-ymnAayos.js","assets/index-ChVTlxbW.js","assets/index-DZF1ClLH.css"])))=>i.map(i=>d[i]);
2
- var $B=Object.defineProperty;var bB=(t,e,n)=>e in t?$B(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Je=(t,e,n)=>bB(t,typeof e!="symbol"?e+"":e,n);import{g as P0,R as F,b as SB,r as f,c as C0,j as w,a as Ft,_ as o6,i as mT}from"./index-ChVTlxbW.js";function yB(t,e){for(var n=0;n<e.length;n++){const i=e[n];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(i,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var F$={exports:{}};/*!
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-qCpwXVvo.js","assets/index-CFZi01LA.js","assets/index-DZF1ClLH.css"])))=>i.map(i=>d[i]);
2
+ var $B=Object.defineProperty;var bB=(t,e,n)=>e in t?$B(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Je=(t,e,n)=>bB(t,typeof e!="symbol"?e+"":e,n);import{g as P0,R as F,b as SB,r as f,c as C0,j as w,a as Ft,_ as o6,i as mT}from"./index-CFZi01LA.js";function yB(t,e){for(var n=0;n<e.length;n++){const i=e[n];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(i,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var F$={exports:{}};/*!
3
3
  Copyright (c) 2018 Jed Watson.
4
4
  Licensed under the MIT License (MIT), see
5
5
  http://jedwatson.github.io/classnames
@@ -773,7 +773,7 @@ ${t}</tr>
773
773
  `}tablecell(t){let e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
774
774
  `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${ga(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let i=this.parser.parseInline(n),r=sR(t);if(r===null)return i;t=r;let s='<a href="'+t+'"';return e&&(s+=' title="'+ga(e)+'"'),s+=">"+i+"</a>",s}image({href:t,title:e,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let r=sR(t);if(r===null)return ga(n);t=r;let s=`<img src="${t}" alt="${ga(n)}"`;return e&&(s+=` title="${ga(e)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ga(t.text)}},xP=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},Vo=class T_{constructor(e){Je(this,"options");Je(this,"renderer");Je(this,"textRenderer");this.options=e||Qd,this.options.renderer=this.options.renderer||new Tv,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new xP}static parse(e,n){return new T_(n).parse(e)}static parseInline(e,n){return new T_(n).parseInline(e)}parse(e){var i,r;let n="";for(let s=0;s<e.length;s++){let o=e[s];if((r=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&r[o.type]){let l=o,c=this.options.extensions.renderers[l.type].call({parser:this},l);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){n+=c||"";continue}}let a=o;switch(a.type){case"space":{n+=this.renderer.space(a);break}case"hr":{n+=this.renderer.hr(a);break}case"heading":{n+=this.renderer.heading(a);break}case"code":{n+=this.renderer.code(a);break}case"table":{n+=this.renderer.table(a);break}case"blockquote":{n+=this.renderer.blockquote(a);break}case"list":{n+=this.renderer.list(a);break}case"checkbox":{n+=this.renderer.checkbox(a);break}case"html":{n+=this.renderer.html(a);break}case"def":{n+=this.renderer.def(a);break}case"paragraph":{n+=this.renderer.paragraph(a);break}case"text":{n+=this.renderer.text(a);break}default:{let l='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(e,n=this.renderer){var r,s;let i="";for(let o=0;o<e.length;o++){let a=e[o];if((s=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&s[a.type]){let c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){i+=c||"";continue}}let l=a;switch(l.type){case"escape":{i+=n.text(l);break}case"html":{i+=n.html(l);break}case"link":{i+=n.link(l);break}case"image":{i+=n.image(l);break}case"checkbox":{i+=n.checkbox(l);break}case"strong":{i+=n.strong(l);break}case"em":{i+=n.em(l);break}case"codespan":{i+=n.codespan(l);break}case"br":{i+=n.br(l);break}case"del":{i+=n.del(l);break}case"text":{i+=n.text(l);break}default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return i}},lg,_O=(lg=class{constructor(e){Je(this,"options");Je(this,"block");this.options=e||Qd}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?Lo.lex:Lo.lexInline}provideParser(){return this.block?Vo.parse:Vo.parseInline}},Je(lg,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Je(lg,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),lg),Lfe=class{constructor(...e){Je(this,"defaults",gP());Je(this,"options",this.setOptions);Je(this,"parse",this.parseMarkdown(!0));Je(this,"parseInline",this.parseMarkdown(!1));Je(this,"Parser",Vo);Je(this,"Renderer",Tv);Je(this,"TextRenderer",xP);Je(this,"Lexer",Lo);Je(this,"Tokenizer",Cv);Je(this,"Hooks",_O);this.use(...e)}walkTokens(e,n){var r,s;let i=[];for(let o of e)switch(i=i.concat(n.call(this,o)),o.type){case"table":{let a=o;for(let l of a.header)i=i.concat(this.walkTokens(l.tokens,n));for(let l of a.rows)for(let c of l)i=i.concat(this.walkTokens(c.tokens,n));break}case"list":{let a=o;i=i.concat(this.walkTokens(a.items,n));break}default:{let a=o;(s=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&s[a.type]?this.defaults.extensions.childTokens[a.type].forEach(l=>{let c=a[l].flat(1/0);i=i.concat(this.walkTokens(c,n))}):a.tokens&&(i=i.concat(this.walkTokens(a.tokens,n)))}}return i}use(...e){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(i=>{let r={...i};if(r.async=this.defaults.async||r.async||!1,i.extensions&&(i.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let o=n.renderers[s.name];o?n.renderers[s.name]=function(...a){let l=s.renderer.apply(this,a);return l===!1&&(l=o.apply(this,a)),l}:n.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=n[s.level];o?o.unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(n.childTokens[s.name]=s.childTokens)}),r.extensions=n),i.renderer){let s=this.defaults.renderer||new Tv(this.defaults);for(let o in i.renderer){if(!(o in s))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let a=o,l=i.renderer[a],c=s[a];s[a]=(...d)=>{let u=l.apply(s,d);return u===!1&&(u=c.apply(s,d)),u||""}}r.renderer=s}if(i.tokenizer){let s=this.defaults.tokenizer||new Cv(this.defaults);for(let o in i.tokenizer){if(!(o in s))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let a=o,l=i.tokenizer[a],c=s[a];s[a]=(...d)=>{let u=l.apply(s,d);return u===!1&&(u=c.apply(s,d)),u}}r.tokenizer=s}if(i.hooks){let s=this.defaults.hooks||new _O;for(let o in i.hooks){if(!(o in s))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let a=o,l=i.hooks[a],c=s[a];_O.passThroughHooks.has(o)?s[a]=d=>{if(this.defaults.async&&_O.passThroughHooksRespectAsync.has(o))return(async()=>{let h=await l.call(s,d);return c.call(s,h)})();let u=l.call(s,d);return c.call(s,u)}:s[a]=(...d)=>{if(this.defaults.async)return(async()=>{let h=await l.apply(s,d);return h===!1&&(h=await c.apply(s,d)),h})();let u=l.apply(s,d);return u===!1&&(u=c.apply(s,d)),u}}r.hooks=s}if(i.walkTokens){let s=this.defaults.walkTokens,o=i.walkTokens;r.walkTokens=function(a){let l=[];return l.push(o.call(this,a)),s&&(l=l.concat(s.call(this,a))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,n){return Lo.lex(e,n??this.defaults)}parser(e,n){return Vo.parse(e,n??this.defaults)}parseMarkdown(e){return(n,i)=>{let r={...i},s={...this.defaults,...r},o=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&r.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=e),s.async)return(async()=>{let a=s.hooks?await s.hooks.preprocess(n):n,l=await(s.hooks?await s.hooks.provideLexer():e?Lo.lex:Lo.lexInline)(a,s),c=s.hooks?await s.hooks.processAllTokens(l):l;s.walkTokens&&await Promise.all(this.walkTokens(c,s.walkTokens));let d=await(s.hooks?await s.hooks.provideParser():e?Vo.parse:Vo.parseInline)(c,s);return s.hooks?await s.hooks.postprocess(d):d})().catch(o);try{s.hooks&&(n=s.hooks.preprocess(n));let a=(s.hooks?s.hooks.provideLexer():e?Lo.lex:Lo.lexInline)(n,s);s.hooks&&(a=s.hooks.processAllTokens(a)),s.walkTokens&&this.walkTokens(a,s.walkTokens);let l=(s.hooks?s.hooks.provideParser():e?Vo.parse:Vo.parseInline)(a,s);return s.hooks&&(l=s.hooks.postprocess(l)),l}catch(a){return o(a)}}}onError(e,n){return i=>{if(i.message+=`
775
775
  Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+ga(i.message+"",!0)+"</pre>";return n?Promise.resolve(r):r}if(n)return Promise.reject(i);throw i}}},dd=new Lfe;function ni(t,e){return dd.parse(t,e)}ni.options=ni.setOptions=function(t){return dd.setOptions(t),ni.defaults=dd.defaults,F7(ni.defaults),ni};ni.getDefaults=gP;ni.defaults=Qd;ni.use=function(...t){return dd.use(...t),ni.defaults=dd.defaults,F7(ni.defaults),ni};ni.walkTokens=function(t,e){return dd.walkTokens(t,e)};ni.parseInline=dd.parseInline;ni.Parser=Vo;ni.parser=Vo.parse;ni.Renderer=Tv;ni.TextRenderer=xP;ni.Lexer=Lo;ni.lexer=Lo.lex;ni.Tokenizer=Cv;ni.Hooks=_O;ni.parse=ni;ni.options;ni.setOptions;ni.use;ni.walkTokens;ni.parseInline;Vo.parse;Lo.lex;/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:lM,setPrototypeOf:lR,isFrozen:Vfe,getPrototypeOf:Bfe,getOwnPropertyDescriptor:Yfe}=Object;let{freeze:ws,seal:Xo,create:Qg}=Object,{apply:k_,construct:R_}=typeof Reflect<"u"&&Reflect;ws||(ws=function(e){return e});Xo||(Xo=function(e){return e});k_||(k_=function(e,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),s=2;s<i;s++)r[s-2]=arguments[s];return e.apply(n,r)});R_||(R_=function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return new e(...i)});const hm=Ps(Array.prototype.forEach),Dfe=Ps(Array.prototype.lastIndexOf),cR=Ps(Array.prototype.pop),Uh=Ps(Array.prototype.push),Ufe=Ps(Array.prototype.splice),xg=Ps(String.prototype.toLowerCase),eS=Ps(String.prototype.toString),tS=Ps(String.prototype.match),qh=Ps(String.prototype.replace),qfe=Ps(String.prototype.indexOf),Zfe=Ps(String.prototype.trim),to=Ps(Object.prototype.hasOwnProperty),Os=Ps(RegExp.prototype.test),Zh=Gfe(TypeError);function Ps(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return k_(t,e,i)}}function Gfe(t){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return R_(t,n)}}function yn(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xg;lR&&lR(t,null);let i=e.length;for(;i--;){let r=e[i];if(typeof r=="string"){const s=n(r);s!==r&&(Vfe(e)||(e[i]=s),r=s)}t[r]=!0}return t}function Ffe(t){for(let e=0;e<t.length;e++)to(t,e)||(t[e]=null);return t}function va(t){const e=Qg(null);for(const[n,i]of lM(t))to(t,n)&&(Array.isArray(i)?e[n]=Ffe(i):i&&typeof i=="object"&&i.constructor===Object?e[n]=va(i):e[n]=i);return e}function Gh(t,e){for(;t!==null;){const i=Yfe(t,e);if(i){if(i.get)return Ps(i.get);if(typeof i.value=="function")return Ps(i.value)}t=Bfe(t)}function n(){return null}return n}const dR=ws(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),nS=ws(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),iS=ws(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Hfe=ws(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),rS=ws(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Kfe=ws(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),uR=ws(["#text"]),hR=ws(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),sS=ws(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),OR=ws(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Om=ws(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Jfe=Xo(/\{\{[\w\W]*|[\w\W]*\}\}/gm),epe=Xo(/<%[\w\W]*|[\w\W]*%>/gm),tpe=Xo(/\$\{[\w\W]*/gm),npe=Xo(/^data-[\-\w.\u00B7-\uFFFF]+$/),ipe=Xo(/^aria-[\-\w]+$/),cM=Xo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),rpe=Xo(/^(?:\w+script|data):/i),spe=Xo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dM=Xo(/^html$/i),ope=Xo(/^[a-z][.\w]*(-[.\w]+)+$/i);var fR=Object.freeze({__proto__:null,ARIA_ATTR:ipe,ATTR_WHITESPACE:spe,CUSTOM_ELEMENT:ope,DATA_ATTR:npe,DOCTYPE_NAME:dM,ERB_EXPR:epe,IS_ALLOWED_URI:cM,IS_SCRIPT_OR_DATA:rpe,MUSTACHE_EXPR:Jfe,TMPLIT_EXPR:tpe});const Fh={element:1,text:3,progressingInstruction:7,comment:8,document:9},ape=function(){return typeof window>"u"?null:window},lpe=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(i=n.getAttribute(r));const s="dompurify"+(i?"#"+i:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},pR=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function uM(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ape();const e=Ge=>uM(Ge);if(e.version="3.3.3",e.removed=[],!t||!t.document||t.document.nodeType!==Fh.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const i=n,r=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:a,Element:l,NodeFilter:c,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:u,DOMParser:h,trustedTypes:O}=t,p=l.prototype,m=Gh(p,"cloneNode"),g=Gh(p,"remove"),v=Gh(p,"nextSibling"),$=Gh(p,"childNodes"),b=Gh(p,"parentNode");if(typeof o=="function"){const Ge=n.createElement("template");Ge.content&&Ge.content.ownerDocument&&(n=Ge.content.ownerDocument)}let S,y="";const{implementation:_,createNodeIterator:Q,createDocumentFragment:P,getElementsByTagName:C}=n,{importNode:X}=i;let z=pR();e.isSupported=typeof lM=="function"&&typeof b=="function"&&_&&_.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:T,ERB_EXPR:k,TMPLIT_EXPR:x,DATA_ATTR:R,ARIA_ATTR:E,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:A,CUSTOM_ELEMENT:j}=fR;let{IS_ALLOWED_URI:N}=fR,L=null;const B=yn({},[...dR,...nS,...iS,...rS,...uR]);let V=null;const U=yn({},[...hR,...sS,...OR,...Om]);let W=Object.seal(Qg(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),D=null,ee=null;const Z=Object.seal(Qg(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let te=!0,fe=!0,oe=!1,ne=!0,ae=!1,G=!0,K=!1,q=!1,se=!1,ce=!1,ve=!1,Se=!1,ue=!0,me=!1;const he="user-content-";let pe=!0,Pe=!1,Ae={},Ue=null;const Ze=yn({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let De=null;const et=yn({},["audio","video","img","source","image","track"]);let Te=null;const we=yn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),We="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",Ve="http://www.w3.org/1999/xhtml";let Xe=Ve,qe=!1,nt=null;const ut=yn({},[We,je,Ve],eS);let Nt=yn({},["mi","mo","mn","ms","mtext"]),Yt=yn({},["annotation-xml"]);const It=yn({},["title","style","font","a","script"]);let sn=null;const re=["application/xhtml+xml","text/html"],ye="text/html";let _e=null,Ke=null;const yt=n.createElement("form"),Be=function(de){return de instanceof RegExp||de instanceof Function},Ie=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ke&&Ke===de)){if((!de||typeof de!="object")&&(de={}),de=va(de),sn=re.indexOf(de.PARSER_MEDIA_TYPE)===-1?ye:de.PARSER_MEDIA_TYPE,_e=sn==="application/xhtml+xml"?eS:xg,L=to(de,"ALLOWED_TAGS")?yn({},de.ALLOWED_TAGS,_e):B,V=to(de,"ALLOWED_ATTR")?yn({},de.ALLOWED_ATTR,_e):U,nt=to(de,"ALLOWED_NAMESPACES")?yn({},de.ALLOWED_NAMESPACES,eS):ut,Te=to(de,"ADD_URI_SAFE_ATTR")?yn(va(we),de.ADD_URI_SAFE_ATTR,_e):we,De=to(de,"ADD_DATA_URI_TAGS")?yn(va(et),de.ADD_DATA_URI_TAGS,_e):et,Ue=to(de,"FORBID_CONTENTS")?yn({},de.FORBID_CONTENTS,_e):Ze,D=to(de,"FORBID_TAGS")?yn({},de.FORBID_TAGS,_e):va({}),ee=to(de,"FORBID_ATTR")?yn({},de.FORBID_ATTR,_e):va({}),Ae=to(de,"USE_PROFILES")?de.USE_PROFILES:!1,te=de.ALLOW_ARIA_ATTR!==!1,fe=de.ALLOW_DATA_ATTR!==!1,oe=de.ALLOW_UNKNOWN_PROTOCOLS||!1,ne=de.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ae=de.SAFE_FOR_TEMPLATES||!1,G=de.SAFE_FOR_XML!==!1,K=de.WHOLE_DOCUMENT||!1,ce=de.RETURN_DOM||!1,ve=de.RETURN_DOM_FRAGMENT||!1,Se=de.RETURN_TRUSTED_TYPE||!1,se=de.FORCE_BODY||!1,ue=de.SANITIZE_DOM!==!1,me=de.SANITIZE_NAMED_PROPS||!1,pe=de.KEEP_CONTENT!==!1,Pe=de.IN_PLACE||!1,N=de.ALLOWED_URI_REGEXP||cM,Xe=de.NAMESPACE||Ve,Nt=de.MATHML_TEXT_INTEGRATION_POINTS||Nt,Yt=de.HTML_INTEGRATION_POINTS||Yt,W=de.CUSTOM_ELEMENT_HANDLING||{},de.CUSTOM_ELEMENT_HANDLING&&Be(de.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=de.CUSTOM_ELEMENT_HANDLING.tagNameCheck),de.CUSTOM_ELEMENT_HANDLING&&Be(de.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=de.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),de.CUSTOM_ELEMENT_HANDLING&&typeof de.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=de.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ae&&(fe=!1),ve&&(ce=!0),Ae&&(L=yn({},uR),V=Qg(null),Ae.html===!0&&(yn(L,dR),yn(V,hR)),Ae.svg===!0&&(yn(L,nS),yn(V,sS),yn(V,Om)),Ae.svgFilters===!0&&(yn(L,iS),yn(V,sS),yn(V,Om)),Ae.mathMl===!0&&(yn(L,rS),yn(V,OR),yn(V,Om))),to(de,"ADD_TAGS")||(Z.tagCheck=null),to(de,"ADD_ATTR")||(Z.attributeCheck=null),de.ADD_TAGS&&(typeof de.ADD_TAGS=="function"?Z.tagCheck=de.ADD_TAGS:(L===B&&(L=va(L)),yn(L,de.ADD_TAGS,_e))),de.ADD_ATTR&&(typeof de.ADD_ATTR=="function"?Z.attributeCheck=de.ADD_ATTR:(V===U&&(V=va(V)),yn(V,de.ADD_ATTR,_e))),de.ADD_URI_SAFE_ATTR&&yn(Te,de.ADD_URI_SAFE_ATTR,_e),de.FORBID_CONTENTS&&(Ue===Ze&&(Ue=va(Ue)),yn(Ue,de.FORBID_CONTENTS,_e)),de.ADD_FORBID_CONTENTS&&(Ue===Ze&&(Ue=va(Ue)),yn(Ue,de.ADD_FORBID_CONTENTS,_e)),pe&&(L["#text"]=!0),K&&yn(L,["html","head","body"]),L.table&&(yn(L,["tbody"]),delete D.tbody),de.TRUSTED_TYPES_POLICY){if(typeof de.TRUSTED_TYPES_POLICY.createHTML!="function")throw Zh('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof de.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Zh('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=de.TRUSTED_TYPES_POLICY,y=S.createHTML("")}else S===void 0&&(S=lpe(O,r)),S!==null&&typeof y=="string"&&(y=S.createHTML(""));ws&&ws(de),Ke=de}},Re=yn({},[...nS,...iS,...Hfe]),xe=yn({},[...rS,...Kfe]),Ee=function(de){let ge=b(de);(!ge||!ge.tagName)&&(ge={namespaceURI:Xe,tagName:"template"});const ke=xg(de.tagName),ct=xg(ge.tagName);return nt[de.namespaceURI]?de.namespaceURI===je?ge.namespaceURI===Ve?ke==="svg":ge.namespaceURI===We?ke==="svg"&&(ct==="annotation-xml"||Nt[ct]):!!Re[ke]:de.namespaceURI===We?ge.namespaceURI===Ve?ke==="math":ge.namespaceURI===je?ke==="math"&&Yt[ct]:!!xe[ke]:de.namespaceURI===Ve?ge.namespaceURI===je&&!Yt[ct]||ge.namespaceURI===We&&!Nt[ct]?!1:!xe[ke]&&(It[ke]||!Re[ke]):!!(sn==="application/xhtml+xml"&&nt[de.namespaceURI]):!1},Qe=function(de){Uh(e.removed,{element:de});try{b(de).removeChild(de)}catch{g(de)}},Ye=function(de,ge){try{Uh(e.removed,{attribute:ge.getAttributeNode(de),from:ge})}catch{Uh(e.removed,{attribute:null,from:ge})}if(ge.removeAttribute(de),de==="is")if(ce||ve)try{Qe(ge)}catch{}else try{ge.setAttribute(de,"")}catch{}},mt=function(de){let ge=null,ke=null;if(se)de="<remove></remove>"+de;else{const tt=tS(de,/^[\r\n\t ]+/);ke=tt&&tt[0]}sn==="application/xhtml+xml"&&Xe===Ve&&(de='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+de+"</body></html>");const ct=S?S.createHTML(de):de;if(Xe===Ve)try{ge=new h().parseFromString(ct,sn)}catch{}if(!ge||!ge.documentElement){ge=_.createDocument(Xe,"template",null);try{ge.documentElement.innerHTML=qe?y:ct}catch{}}const ft=ge.body||ge.documentElement;return de&&ke&&ft.insertBefore(n.createTextNode(ke),ft.childNodes[0]||null),Xe===Ve?C.call(ge,K?"html":"body")[0]:K?ge.documentElement:ft},gt=function(de){return Q.call(de.ownerDocument||de,de,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ut=function(de){return de instanceof u&&(typeof de.nodeName!="string"||typeof de.textContent!="string"||typeof de.removeChild!="function"||!(de.attributes instanceof d)||typeof de.removeAttribute!="function"||typeof de.setAttribute!="function"||typeof de.namespaceURI!="string"||typeof de.insertBefore!="function"||typeof de.hasChildNodes!="function")},st=function(de){return typeof a=="function"&&de instanceof a};function Fe(Ge,de,ge){hm(Ge,ke=>{ke.call(e,de,ge,Ke)})}const Pt=function(de){let ge=null;if(Fe(z.beforeSanitizeElements,de,null),Ut(de))return Qe(de),!0;const ke=_e(de.nodeName);if(Fe(z.uponSanitizeElement,de,{tagName:ke,allowedTags:L}),G&&de.hasChildNodes()&&!st(de.firstElementChild)&&Os(/<[/\w!]/g,de.innerHTML)&&Os(/<[/\w!]/g,de.textContent)||de.nodeType===Fh.progressingInstruction||G&&de.nodeType===Fh.comment&&Os(/<[/\w]/g,de.data))return Qe(de),!0;if(!(Z.tagCheck instanceof Function&&Z.tagCheck(ke))&&(!L[ke]||D[ke])){if(!D[ke]&&Jt(ke)&&(W.tagNameCheck instanceof RegExp&&Os(W.tagNameCheck,ke)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ke)))return!1;if(pe&&!Ue[ke]){const ct=b(de)||de.parentNode,ft=$(de)||de.childNodes;if(ft&&ct){const tt=ft.length;for(let it=tt-1;it>=0;--it){const Tt=m(ft[it],!0);Tt.__removalCount=(de.__removalCount||0)+1,ct.insertBefore(Tt,v(de))}}}return Qe(de),!0}return de instanceof l&&!Ee(de)||(ke==="noscript"||ke==="noembed"||ke==="noframes")&&Os(/<\/no(script|embed|frames)/i,de.innerHTML)?(Qe(de),!0):(ae&&de.nodeType===Fh.text&&(ge=de.textContent,hm([T,k,x],ct=>{ge=qh(ge,ct," ")}),de.textContent!==ge&&(Uh(e.removed,{element:de.cloneNode()}),de.textContent=ge)),Fe(z.afterSanitizeElements,de,null),!1)},Zt=function(de,ge,ke){if(ee[ge]||ue&&(ge==="id"||ge==="name")&&(ke in n||ke in yt))return!1;if(!(fe&&!ee[ge]&&Os(R,ge))){if(!(te&&Os(E,ge))){if(!(Z.attributeCheck instanceof Function&&Z.attributeCheck(ge,de))){if(!V[ge]||ee[ge]){if(!(Jt(de)&&(W.tagNameCheck instanceof RegExp&&Os(W.tagNameCheck,de)||W.tagNameCheck instanceof Function&&W.tagNameCheck(de))&&(W.attributeNameCheck instanceof RegExp&&Os(W.attributeNameCheck,ge)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(ge,de))||ge==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&Os(W.tagNameCheck,ke)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ke))))return!1}else if(!Te[ge]){if(!Os(N,qh(ke,A,""))){if(!((ge==="src"||ge==="xlink:href"||ge==="href")&&de!=="script"&&qfe(ke,"data:")===0&&De[de])){if(!(oe&&!Os(I,qh(ke,A,"")))){if(ke)return!1}}}}}}}return!0},Jt=function(de){return de!=="annotation-xml"&&tS(de,j)},en=function(de){Fe(z.beforeSanitizeAttributes,de,null);const{attributes:ge}=de;if(!ge||Ut(de))return;const ke={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let ct=ge.length;for(;ct--;){const ft=ge[ct],{name:tt,namespaceURI:it,value:Tt}=ft,Gt=_e(tt),be=Tt;let ze=tt==="value"?be:Zfe(be);if(ke.attrName=Gt,ke.attrValue=ze,ke.keepAttr=!0,ke.forceKeepAttr=void 0,Fe(z.uponSanitizeAttribute,de,ke),ze=ke.attrValue,me&&(Gt==="id"||Gt==="name")&&(Ye(tt,de),ze=he+ze),G&&Os(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ze)){Ye(tt,de);continue}if(Gt==="attributename"&&tS(ze,"href")){Ye(tt,de);continue}if(ke.forceKeepAttr)continue;if(!ke.keepAttr){Ye(tt,de);continue}if(!ne&&Os(/\/>/i,ze)){Ye(tt,de);continue}ae&&hm([T,k,x],qt=>{ze=qh(ze,qt," ")});const rt=_e(de.nodeName);if(!Zt(rt,Gt,ze)){Ye(tt,de);continue}if(S&&typeof O=="object"&&typeof O.getAttributeType=="function"&&!it)switch(O.getAttributeType(rt,Gt)){case"TrustedHTML":{ze=S.createHTML(ze);break}case"TrustedScriptURL":{ze=S.createScriptURL(ze);break}}if(ze!==be)try{it?de.setAttributeNS(it,tt,ze):de.setAttribute(tt,ze),Ut(de)?Qe(de):cR(e.removed)}catch{Ye(tt,de)}}Fe(z.afterSanitizeAttributes,de,null)},mn=function Ge(de){let ge=null;const ke=gt(de);for(Fe(z.beforeSanitizeShadowDOM,de,null);ge=ke.nextNode();)Fe(z.uponSanitizeShadowNode,ge,null),Pt(ge),en(ge),ge.content instanceof s&&Ge(ge.content);Fe(z.afterSanitizeShadowDOM,de,null)};return e.sanitize=function(Ge){let de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ge=null,ke=null,ct=null,ft=null;if(qe=!Ge,qe&&(Ge="<!-->"),typeof Ge!="string"&&!st(Ge))if(typeof Ge.toString=="function"){if(Ge=Ge.toString(),typeof Ge!="string")throw Zh("dirty is not a string, aborting")}else throw Zh("toString is not a function");if(!e.isSupported)return Ge;if(q||Ie(de),e.removed=[],typeof Ge=="string"&&(Pe=!1),Pe){if(Ge.nodeName){const Tt=_e(Ge.nodeName);if(!L[Tt]||D[Tt])throw Zh("root node is forbidden and cannot be sanitized in-place")}}else if(Ge instanceof a)ge=mt("<!---->"),ke=ge.ownerDocument.importNode(Ge,!0),ke.nodeType===Fh.element&&ke.nodeName==="BODY"||ke.nodeName==="HTML"?ge=ke:ge.appendChild(ke);else{if(!ce&&!ae&&!K&&Ge.indexOf("<")===-1)return S&&Se?S.createHTML(Ge):Ge;if(ge=mt(Ge),!ge)return ce?null:Se?y:""}ge&&se&&Qe(ge.firstChild);const tt=gt(Pe?Ge:ge);for(;ct=tt.nextNode();)Pt(ct),en(ct),ct.content instanceof s&&mn(ct.content);if(Pe)return Ge;if(ce){if(ve)for(ft=P.call(ge.ownerDocument);ge.firstChild;)ft.appendChild(ge.firstChild);else ft=ge;return(V.shadowroot||V.shadowrootmode)&&(ft=X.call(i,ft,!0)),ft}let it=K?ge.outerHTML:ge.innerHTML;return K&&L["!doctype"]&&ge.ownerDocument&&ge.ownerDocument.doctype&&ge.ownerDocument.doctype.name&&Os(dM,ge.ownerDocument.doctype.name)&&(it="<!DOCTYPE "+ge.ownerDocument.doctype.name+`>
776
- `+it),ae&&hm([T,k,x],Tt=>{it=qh(it,Tt," ")}),S&&Se?S.createHTML(it):it},e.setConfig=function(){let Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ie(Ge),q=!0},e.clearConfig=function(){Ke=null,q=!1},e.isValidAttribute=function(Ge,de,ge){Ke||Ie({});const ke=_e(Ge),ct=_e(de);return Zt(ke,ct,ge)},e.addHook=function(Ge,de){typeof de=="function"&&Uh(z[Ge],de)},e.removeHook=function(Ge,de){if(de!==void 0){const ge=Dfe(z[Ge],de);return ge===-1?void 0:Ufe(z[Ge],ge,1)[0]}return cR(z[Ge])},e.removeHooks=function(Ge){z[Ge]=[]},e.removeAllHooks=function(){z=pR()},e}var wP=uM();let Hh=null,mR=!1,oS=null,E_=new Set;function cpe(){return Hh||(Hh=o6(()=>import("./mermaid.core-ymnAayos.js").then(t=>t.bE),__vite__mapDeps([0,1,2])).then(t=>{const e=t.default;return e.initialize({startOnLoad:!1,theme:"dark",darkMode:!0,securityLevel:"strict",flowchart:{useMaxWidth:!0},themeVariables:{darkMode:!0,background:"#0d1117",primaryColor:"#1a3a5c",primaryTextColor:"#c9d1d9",primaryBorderColor:"#30363d",lineColor:"#58a6ff",secondaryColor:"#161b22",tertiaryColor:"#0d1117",nodeTextColor:"#c9d1d9",edgeLabelBackground:"#0d1117"}}),e}).catch(()=>(Hh=null,null)),Hh)}async function dpe(t){if(!t)return;const e=t.querySelectorAll("code.language-mermaid");if(e.length===0)return;const n=await cpe();if(n)for(const i of e){const r=i.parentElement;if(!r||r.dataset.mermaidRendered)continue;r.dataset.mermaidRendered="1";const s=i.textContent;try{const o="mmd-"+Math.random().toString(36).slice(2,9),{svg:a}=await n.render(o,s),l=document.createElement("div");l.className="mermaid-diagram",l.innerHTML=wP.sanitize(a,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:["style","foreignObject"]}),r.replaceWith(l)}catch{}}}function upe(){oS||(oS=requestAnimationFrame(()=>{oS=null;const t=E_;E_=new Set;for(const e of t)e.isConnected&&dpe(e)}))}function hpe(){if(mR||typeof document>"u")return;mR=!0;const t=new MutationObserver(n=>{var i;for(const r of n)for(const s of r.addedNodes)if(s.nodeType===1&&((i=s.querySelector)!=null&&i.call(s,"code.language-mermaid"))){E_.add(s),upe();return}}),e=()=>t.observe(document.body,{childList:!0,subtree:!0});document.body?e():document.addEventListener("DOMContentLoaded",e)}hpe();const Kh=new Map,Ope=1024;function bo(t){if(!t)return"";const e=Kh.get(t);if(e!==void 0)return e;let n;try{n=wP.sanitize(ni.parse(t,{breaks:!0}))}catch{n=__(t)}return Kh.size>=Ope&&Kh.delete(Kh.keys().next().value),Kh.set(t,n),n}const fpe=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
776
+ `+it),ae&&hm([T,k,x],Tt=>{it=qh(it,Tt," ")}),S&&Se?S.createHTML(it):it},e.setConfig=function(){let Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ie(Ge),q=!0},e.clearConfig=function(){Ke=null,q=!1},e.isValidAttribute=function(Ge,de,ge){Ke||Ie({});const ke=_e(Ge),ct=_e(de);return Zt(ke,ct,ge)},e.addHook=function(Ge,de){typeof de=="function"&&Uh(z[Ge],de)},e.removeHook=function(Ge,de){if(de!==void 0){const ge=Dfe(z[Ge],de);return ge===-1?void 0:Ufe(z[Ge],ge,1)[0]}return cR(z[Ge])},e.removeHooks=function(Ge){z[Ge]=[]},e.removeAllHooks=function(){z=pR()},e}var wP=uM();let Hh=null,mR=!1,oS=null,E_=new Set;function cpe(){return Hh||(Hh=o6(()=>import("./mermaid.core-qCpwXVvo.js").then(t=>t.bE),__vite__mapDeps([0,1,2])).then(t=>{const e=t.default;return e.initialize({startOnLoad:!1,theme:"dark",darkMode:!0,securityLevel:"strict",flowchart:{useMaxWidth:!0},themeVariables:{darkMode:!0,background:"#0d1117",primaryColor:"#1a3a5c",primaryTextColor:"#c9d1d9",primaryBorderColor:"#30363d",lineColor:"#58a6ff",secondaryColor:"#161b22",tertiaryColor:"#0d1117",nodeTextColor:"#c9d1d9",edgeLabelBackground:"#0d1117"}}),e}).catch(()=>(Hh=null,null)),Hh)}async function dpe(t){if(!t)return;const e=t.querySelectorAll("code.language-mermaid");if(e.length===0)return;const n=await cpe();if(n)for(const i of e){const r=i.parentElement;if(!r||r.dataset.mermaidRendered)continue;r.dataset.mermaidRendered="1";const s=i.textContent;try{const o="mmd-"+Math.random().toString(36).slice(2,9),{svg:a}=await n.render(o,s),l=document.createElement("div");l.className="mermaid-diagram",l.innerHTML=wP.sanitize(a,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:["style","foreignObject"]}),r.replaceWith(l)}catch{}}}function upe(){oS||(oS=requestAnimationFrame(()=>{oS=null;const t=E_;E_=new Set;for(const e of t)e.isConnected&&dpe(e)}))}function hpe(){if(mR||typeof document>"u")return;mR=!0;const t=new MutationObserver(n=>{var i;for(const r of n)for(const s of r.addedNodes)if(s.nodeType===1&&((i=s.querySelector)!=null&&i.call(s,"code.language-mermaid"))){E_.add(s),upe();return}}),e=()=>t.observe(document.body,{childList:!0,subtree:!0});document.body?e():document.addEventListener("DOMContentLoaded",e)}hpe();const Kh=new Map,Ope=1024;function bo(t){if(!t)return"";const e=Kh.get(t);if(e!==void 0)return e;let n;try{n=wP.sanitize(ni.parse(t,{breaks:!0}))}catch{n=__(t)}return Kh.size>=Ope&&Kh.delete(Kh.keys().next().value),Kh.set(t,n),n}const fpe=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
777
777
  <!-- Bar chart: represents data analysis -->
778
778
  <!-- Three vertical bars of varying height -->
779
779
  <line x1="18" y1="20" x2="18" y2="10"/>
@@ -1029,7 +1029,7 @@ void main() {
1029
1029
 
1030
1030
  `+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(n=>{n(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}},G1e=new Z1e;function IS(t){F1e(t)||G1e.onUnexpectedError(t)}var yQ="Canceled";function F1e(t){return t instanceof H1e?!0:t instanceof Error&&t.name===yQ&&t.message===yQ}var H1e=class extends Error{constructor(){super(yQ),this.name=this.message}},NE=class _Q extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof _Q)return e;let n=new _Q;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}};function K1e(t,e){let n=this,i=!1,r;return function(){return i||(i=!0,e||(r=t.apply(n,arguments))),r}}var J1e;(t=>{function e(s){return s<0}t.isLessThan=e;function n(s){return s<=0}t.isLessThanOrEqual=n;function i(s){return s>0}t.isGreaterThan=i;function r(s){return s===0}t.isNeitherLessOrGreaterThan=r,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(J1e||(J1e={}));var R9;(t=>{function e(S){return S&&typeof S=="object"&&typeof S[Symbol.iterator]=="function"}t.is=e;let n=Object.freeze([]);function i(){return n}t.empty=i;function*r(S){yield S}t.single=r;function s(S){return e(S)?S:r(S)}t.wrap=s;function o(S){return S||n}t.from=o;function*a(S){for(let y=S.length-1;y>=0;y--)yield S[y]}t.reverse=a;function l(S){return!S||S[Symbol.iterator]().next().done===!0}t.isEmpty=l;function c(S){return S[Symbol.iterator]().next().value}t.first=c;function d(S,y){let _=0;for(let Q of S)if(y(Q,_++))return!0;return!1}t.some=d;function u(S,y){for(let _ of S)if(y(_))return _}t.find=u;function*h(S,y){for(let _ of S)y(_)&&(yield _)}t.filter=h;function*O(S,y){let _=0;for(let Q of S)yield y(Q,_++)}t.map=O;function*p(S,y){let _=0;for(let Q of S)yield*y(Q,_++)}t.flatMap=p;function*m(...S){for(let y of S)yield*y}t.concat=m;function g(S,y,_){let Q=_;for(let P of S)Q=y(Q,P);return Q}t.reduce=g;function*v(S,y,_=S.length){for(y<0&&(y+=S.length),_<0?_+=S.length:_>S.length&&(_=S.length);y<_;y++)yield S[y]}t.slice=v;function $(S,y=Number.POSITIVE_INFINITY){let _=[];if(y===0)return[_,S];let Q=S[Symbol.iterator]();for(let P=0;P<y;P++){let C=Q.next();if(C.done)return[_,t.empty()];_.push(C.value)}return[_,{[Symbol.iterator](){return Q}}]}t.consume=$;async function b(S){let y=[];for await(let _ of S)y.push(_);return Promise.resolve(y)}t.asyncToArray=b})(R9||(R9={}));function E9(t){if(R9.is(t)){let e=[];for(let n of t)if(n)try{n.dispose()}catch(i){e.push(i)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function eye(...t){return X9(()=>E9(t))}function X9(t){return{dispose:K1e(()=>{t()})}}var z9=class I9{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{E9(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?I9.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}delete(e){if(e){if(e===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(e),e.dispose()}}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),void 0)}};z9.DISABLE_DISPOSED_WARNING=!1;var LP=z9,jv=class{constructor(){this._store=new LP,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}};jv.None=Object.freeze({dispose(){}});var tye=globalThis.performance&&typeof globalThis.performance.now=="function",nye=class A9{static create(e){return new A9(e)}constructor(e){this._now=tye&&e===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}},iye;(t=>{t.None=()=>jv.None;function e(T,k){return u(T,()=>{},0,void 0,!0,void 0,k)}t.defer=e;function n(T){return(k,x=null,R)=>{let E=!1,I;return I=T(A=>{if(!E)return I?I.dispose():E=!0,k.call(x,A)},null,R),E&&I.dispose(),I}}t.once=n;function i(T,k,x){return c((R,E=null,I)=>T(A=>R.call(E,k(A)),null,I),x)}t.map=i;function r(T,k,x){return c((R,E=null,I)=>T(A=>{k(A),R.call(E,A)},null,I),x)}t.forEach=r;function s(T,k,x){return c((R,E=null,I)=>T(A=>k(A)&&R.call(E,A),null,I),x)}t.filter=s;function o(T){return T}t.signal=o;function a(...T){return(k,x=null,R)=>{let E=eye(...T.map(I=>I(A=>k.call(x,A))));return d(E,R)}}t.any=a;function l(T,k,x,R){let E=x;return i(T,I=>(E=k(E,I),E),R)}t.reduce=l;function c(T,k){let x,R={onWillAddFirstListener(){x=T(E.fire,E)},onDidRemoveLastListener(){x==null||x.dispose()}},E=new Zl(R);return k==null||k.add(E),E.event}function d(T,k){return k instanceof Array?k.push(T):k&&k.add(T),T}function u(T,k,x=100,R=!1,E=!1,I,A){let j,N,L,B=0,V,U={leakWarningThreshold:I,onWillAddFirstListener(){j=T(D=>{B++,N=k(N,D),R&&!L&&(W.fire(N),N=void 0),V=()=>{let ee=N;N=void 0,L=void 0,(!R||B>1)&&W.fire(ee),B=0},typeof x=="number"?(clearTimeout(L),L=setTimeout(V,x)):L===void 0&&(L=0,queueMicrotask(V))})},onWillRemoveListener(){E&&B>0&&(V==null||V())},onDidRemoveLastListener(){V=void 0,j.dispose()}},W=new Zl(U);return A==null||A.add(W),W.event}t.debounce=u;function h(T,k=0,x){return t.debounce(T,(R,E)=>R?(R.push(E),R):[E],k,void 0,!0,void 0,x)}t.accumulate=h;function O(T,k=(R,E)=>R===E,x){let R=!0,E;return s(T,I=>{let A=R||!k(I,E);return R=!1,E=I,A},x)}t.latch=O;function p(T,k,x){return[t.filter(T,k,x),t.filter(T,R=>!k(R),x)]}t.split=p;function m(T,k=!1,x=[],R){let E=x.slice(),I=T(N=>{E?E.push(N):j.fire(N)});R&&R.add(I);let A=()=>{E==null||E.forEach(N=>j.fire(N)),E=null},j=new Zl({onWillAddFirstListener(){I||(I=T(N=>j.fire(N)),R&&R.add(I))},onDidAddFirstListener(){E&&(k?setTimeout(A):A())},onDidRemoveLastListener(){I&&I.dispose(),I=null}});return R&&R.add(j),j.event}t.buffer=m;function g(T,k){return(x,R,E)=>{let I=k(new $);return T(function(A){let j=I.evaluate(A);j!==v&&x.call(R,j)},void 0,E)}}t.chain=g;let v=Symbol("HaltChainable");class ${constructor(){this.steps=[]}map(k){return this.steps.push(k),this}forEach(k){return this.steps.push(x=>(k(x),x)),this}filter(k){return this.steps.push(x=>k(x)?x:v),this}reduce(k,x){let R=x;return this.steps.push(E=>(R=k(R,E),R)),this}latch(k=(x,R)=>x===R){let x=!0,R;return this.steps.push(E=>{let I=x||!k(E,R);return x=!1,R=E,I?E:v}),this}evaluate(k){for(let x of this.steps)if(k=x(k),k===v)break;return k}}function b(T,k,x=R=>R){let R=(...j)=>A.fire(x(...j)),E=()=>T.on(k,R),I=()=>T.removeListener(k,R),A=new Zl({onWillAddFirstListener:E,onDidRemoveLastListener:I});return A.event}t.fromNodeEventEmitter=b;function S(T,k,x=R=>R){let R=(...j)=>A.fire(x(...j)),E=()=>T.addEventListener(k,R),I=()=>T.removeEventListener(k,R),A=new Zl({onWillAddFirstListener:E,onDidRemoveLastListener:I});return A.event}t.fromDOMEventEmitter=S;function y(T){return new Promise(k=>n(T)(k))}t.toPromise=y;function _(T){let k=new Zl;return T.then(x=>{k.fire(x)},()=>{k.fire(void 0)}).finally(()=>{k.dispose()}),k.event}t.fromPromise=_;function Q(T,k){return T(x=>k.fire(x))}t.forward=Q;function P(T,k,x){return k(x),T(R=>k(R))}t.runAndSubscribe=P;class C{constructor(k,x){this._observable=k,this._counter=0,this._hasChanged=!1;let R={onWillAddFirstListener:()=>{k.addObserver(this)},onDidRemoveLastListener:()=>{k.removeObserver(this)}};this.emitter=new Zl(R),x&&x.add(this.emitter)}beginUpdate(k){this._counter++}handlePossibleChange(k){}handleChange(k,x){this._hasChanged=!0}endUpdate(k){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function X(T,k){return new C(T,k).emitter.event}t.fromObservable=X;function z(T){return(k,x,R)=>{let E=0,I=!1,A={beginUpdate(){E++},endUpdate(){E--,E===0&&(T.reportChanges(),I&&(I=!1,k.call(x)))},handlePossibleChange(){},handleChange(){I=!0}};T.addObserver(A),T.reportChanges();let j={dispose(){T.removeObserver(A)}};return R instanceof LP?R.add(j):Array.isArray(R)&&R.push(j),j}}t.fromObservableLight=z})(iye||(iye={}));var QQ=class xQ{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${xQ._idPool++}`,xQ.all.add(this)}start(e){this._stopWatch=new nye,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}};QQ.all=new Set,QQ._idPool=0;var rye=QQ,sye=-1,M9=class j9{constructor(e,n,i=(j9._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=n,this.name=i,this._warnCountdown=0}dispose(){var e;(e=this._stacks)==null||e.clear()}check(e,n){let i=this.threshold;if(i<=0||n<i)return;this._stacks||(this._stacks=new Map);let r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;let[s,o]=this.getMostFrequentStack(),a=`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${o}):`;console.warn(a),console.warn(s);let l=new lye(a,s);this._errorHandler(l)}return()=>{let s=this._stacks.get(e.value)||0;this._stacks.set(e.value,s-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,n=0;for(let[i,r]of this._stacks)(!e||n<r)&&(e=[i,r],n=r);return e}};M9._idPool=1;var oye=M9,aye=class N9{constructor(e){this.value=e}static create(){let e=new Error;return new N9(e.stack??"")}print(){console.warn(this.value.split(`
1031
1031
  `).slice(2).join(`
1032
- `))}},lye=class extends Error{constructor(e,n){super(e),this.name="ListenerLeakError",this.stack=n}},cye=class extends Error{constructor(e,n){super(e),this.name="ListenerRefusalError",this.stack=n}},dye=0,AS=class{constructor(t){this.value=t,this.id=dye++}},uye=2,hye,Zl=class{constructor(e){var n,i,r,s;this._size=0,this._options=e,this._leakageMon=(n=this._options)!=null&&n.leakWarningThreshold?new oye((e==null?void 0:e.onListenerError)??IS,((i=this._options)==null?void 0:i.leakWarningThreshold)??sye):void 0,this._perfMon=(r=this._options)!=null&&r._profName?new rye(this._options._profName):void 0,this._deliveryQueue=(s=this._options)==null?void 0:s.deliveryQueue}dispose(){var e,n,i,r;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)==null?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(i=(n=this._options)==null?void 0:n.onDidRemoveLastListener)==null||i.call(n),(r=this._leakageMon)==null||r.dispose())}get event(){return this._event??(this._event=(e,n,i)=>{var a,l,c,d,u;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let h=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(h);let O=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],p=new cye(`${h}. HINT: Stack shows most frequent listener (${O[1]}-times)`,O[0]);return(((a=this._options)==null?void 0:a.onListenerError)||IS)(p),jv.None}if(this._disposed)return jv.None;n&&(e=e.bind(n));let r=new AS(e),s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(r.stack=aye.create(),s=this._leakageMon.check(r.stack,this._size+1)),this._listeners?this._listeners instanceof AS?(this._deliveryQueue??(this._deliveryQueue=new Oye),this._listeners=[this._listeners,r]):this._listeners.push(r):((c=(l=this._options)==null?void 0:l.onWillAddFirstListener)==null||c.call(l,this),this._listeners=r,(u=(d=this._options)==null?void 0:d.onDidAddFirstListener)==null||u.call(d,this)),this._size++;let o=X9(()=>{s==null||s(),this._removeListener(r)});return i instanceof LP?i.add(o):Array.isArray(i)&&i.push(o),o}),this._event}_removeListener(e){var s,o,a,l;if((o=(s=this._options)==null?void 0:s.onWillRemoveListener)==null||o.call(s,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(l=(a=this._options)==null?void 0:a.onDidRemoveLastListener)==null||l.call(a,this),this._size=0;return}let n=this._listeners,i=n.indexOf(e);if(i===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[i]=void 0;let r=this._deliveryQueue.current===this;if(this._size*uye<=n.length){let c=0;for(let d=0;d<n.length;d++)n[d]?n[c++]=n[d]:r&&(this._deliveryQueue.end--,c<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=c}}_deliver(e,n){var r;if(!e)return;let i=((r=this._options)==null?void 0:r.onListenerError)||IS;if(!i){e.value(n);return}try{e.value(n)}catch(s){i(s)}}_deliverQueue(e){let n=e.current._listeners;for(;e.i<e.end;)this._deliver(n[e.i++],e.value);e.reset()}fire(e){var n,i,r,s;if((n=this._deliveryQueue)!=null&&n.current&&(this._deliverQueue(this._deliveryQueue),(i=this._perfMon)==null||i.stop()),(r=this._perfMon)==null||r.start(this._size),this._listeners)if(this._listeners instanceof AS)this._deliver(this._listeners,e);else{let o=this._deliveryQueue;o.enqueue(this,e,this._listeners.length),this._deliverQueue(o)}(s=this._perfMon)==null||s.stop()}hasListeners(){return this._size>0}},Oye=class{constructor(){this.i=-1,this.end=0}enqueue(e,n,i){this.i=0,this.end=i,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},Nv=class Mg{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new Zl,this.onChange=this._onChange.event;let e=new q1e;this.register(e),this._active=e.version,this._activeProvider=e}static extractShouldJoin(e){return(e&1)!==0}static extractWidth(e){return e>>1&3}static extractCharKind(e){return e>>3}static createPropertyValue(e,n,i=!1){return(e&16777215)<<3|(n&3)<<1|(i?1:0)}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(e){if(!this._providers[e])throw new Error(`unknown Unicode version "${e}"`);this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)}register(e){this._providers[e.version]=e}wcwidth(e){return this._activeProvider.wcwidth(e)}getStringCellWidth(e){let n=0,i=0,r=e.length;for(let s=0;s<r;++s){let o=e.charCodeAt(s);if(55296<=o&&o<=56319){if(++s>=r)return n+this.wcwidth(o);let c=e.charCodeAt(s);56320<=c&&c<=57343?o=(o-55296)*1024+c-56320+65536:n+=this.wcwidth(c)}let a=this.charProperties(o,i),l=Mg.extractWidth(a);Mg.extractShouldJoin(a)&&(l-=Mg.extractWidth(i)),n+=l,i=a}return n}charProperties(e,n){return this._activeProvider.charProperties(e,n)}},MS=[[768,879],[1155,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1541],[1552,1562],[1564,1564],[1611,1631],[1648,1648],[1750,1757],[1759,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2045,2045],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2259,2306],[2362,2362],[2364,2364],[2369,2376],[2381,2381],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2558,2558],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2879,2879],[2881,2884],[2893,2893],[2902,2902],[2914,2915],[2946,2946],[3008,3008],[3021,3021],[3072,3072],[3076,3076],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],[3405,3405],[3426,3427],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4448,4607],[4957,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6158],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6752,6752],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6846],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7673],[7675,7679],[8203,8207],[8234,8238],[8288,8292],[8294,8303],[8400,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43204,43205],[43232,43249],[43263,43263],[43302,43309],[43335,43345],[43392,43394],[43443,43443],[43446,43449],[43452,43453],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[43766,43766],[44005,44005],[44008,44008],[44013,44013],[64286,64286],[65024,65039],[65056,65071],[65279,65279],[65529,65531]],fye=[[66045,66045],[66272,66272],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[68325,68326],[68900,68903],[69446,69456],[69633,69633],[69688,69702],[69759,69761],[69811,69814],[69817,69818],[69821,69821],[69837,69837],[69888,69890],[69927,69931],[69933,69940],[70003,70003],[70016,70017],[70070,70078],[70089,70092],[70191,70193],[70196,70196],[70198,70199],[70206,70206],[70367,70367],[70371,70378],[70400,70401],[70459,70460],[70464,70464],[70502,70508],[70512,70516],[70712,70719],[70722,70724],[70726,70726],[70750,70750],[70835,70840],[70842,70842],[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71229,71229],[71231,71232],[71339,71339],[71341,71341],[71344,71349],[71351,71351],[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[72148,72151],[72154,72155],[72160,72160],[72193,72202],[72243,72248],[72251,72254],[72263,72263],[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72767,72767],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73018,73018],[73020,73021],[73023,73029],[73031,73031],[73104,73105],[73109,73109],[73111,73111],[73459,73460],[78896,78904],[92912,92916],[92976,92982],[94031,94031],[94095,94098],[113821,113822],[113824,113827],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121461,121461],[121476,121476],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123184,123190],[123628,123631],[125136,125142],[125252,125258],[917505,917505],[917536,917631],[917760,917999]],jS=[[4352,4447],[8986,8987],[9001,9002],[9193,9196],[9200,9200],[9203,9203],[9725,9726],[9748,9749],[9800,9811],[9855,9855],[9875,9875],[9889,9889],[9898,9899],[9917,9918],[9924,9925],[9934,9934],[9940,9940],[9962,9962],[9970,9971],[9973,9973],[9978,9978],[9981,9981],[9989,9989],[9994,9995],[10024,10024],[10060,10060],[10062,10062],[10067,10069],[10071,10071],[10133,10135],[10160,10160],[10175,10175],[11035,11036],[11088,11088],[11093,11093],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12288,12329],[12334,12350],[12353,12438],[12443,12543],[12549,12591],[12593,12686],[12688,12730],[12736,12771],[12784,12830],[12832,12871],[12880,19903],[19968,42124],[42128,42182],[43360,43388],[44032,55203],[63744,64255],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65281,65376],[65504,65510]],pye=[[94176,94179],[94208,100343],[100352,101106],[110592,110878],[110928,110930],[110948,110951],[110960,111355],[126980,126980],[127183,127183],[127374,127374],[127377,127386],[127488,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,127776],[127789,127797],[127799,127868],[127870,127891],[127904,127946],[127951,127955],[127968,127984],[127988,127988],[127992,128062],[128064,128064],[128066,128252],[128255,128317],[128331,128334],[128336,128359],[128378,128378],[128405,128406],[128420,128420],[128507,128591],[128640,128709],[128716,128716],[128720,128722],[128725,128725],[128747,128748],[128756,128762],[128992,129003],[129293,129393],[129395,129398],[129402,129442],[129445,129450],[129454,129482],[129485,129535],[129648,129651],[129656,129658],[129664,129666],[129680,129685],[131072,196605],[196608,262141]],sl;function WE(t,e){let n=0,i=e.length-1,r;if(t<e[0][0]||t>e[i][1])return!1;for(;i>=n;)if(r=n+i>>1,t>e[r][1])n=r+1;else if(t<e[r][0])i=r-1;else return!0;return!1}var mye=class{constructor(){if(this.version="11",!sl){sl=new Uint8Array(65536),sl.fill(1),sl[0]=0,sl.fill(0,1,32),sl.fill(0,127,160);for(let e=0;e<MS.length;++e)sl.fill(0,MS[e][0],MS[e][1]+1);for(let e=0;e<jS.length;++e)sl.fill(2,jS[e][0],jS[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?sl[e]:WE(e,fye)?0:WE(e,pye)?2:1}charProperties(e,n){let i=this.wcwidth(e),r=i===0&&n!==0;if(r){let s=Nv.extractWidth(n);s===0?r=!1:s>i&&(i=s)}return Nv.createPropertyValue(0,i,r)}},gye=class{activate(e){e.unicode.register(new mye)}dispose(){}};const vye="_terminalPanel_1bsaq_1",$ye="_terminalContainer_1bsaq_8",bye="_pendingFileStrip_1bsaq_21",Sye="_pendingFileTag_1bsaq_29",yye="_pendingFileName_1bsaq_41",_ye="_pendingFileClose_1bsaq_48",Qye="_pendingImageItem_1bsaq_62",xye="_pendingImageThumb_1bsaq_72",wye="_pendingImageRemove_1bsaq_78",Pye="_terminalToolbar_1bsaq_104",Cye="_toolbarBtn_1bsaq_115",Tye="_toolbarBtnDisabled_1bsaq_136",kye="_virtualKeybar_1bsaq_151",Rye="_virtualKey_1bsaq_151",Eye="_virtualKeyPressed_1bsaq_182",Xye="_vkSeparator_1bsaq_189",zye="_vkAction_1bsaq_198",Iye="_vkTeamLabel_1bsaq_210",Aye="_vkTeamPreset_1bsaq_219",Mye="_vkDisabled_1bsaq_224",jye="_presetList_1bsaq_230",Nye="_presetRow_1bsaq_238",Wye="_presetRowDragging_1bsaq_250",Lye="_presetRowDragOver_1bsaq_254",Vye="_dragHandle_1bsaq_259",Bye="_presetText_1bsaq_277",Yye="_presetMenu_1bsaq_287",Dye="_presetMenuItem_1bsaq_292",Uye="_presetMenuItemMuted_1bsaq_311",qye="_presetName_1bsaq_330",Zye="_presetInput_1bsaq_340",Gye="_presetTextarea_1bsaq_356",Fye="_hiddenFileInput_1bsaq_373",Hye="_popoverEmptyHint_1bsaq_377",Kye="_agentTeamDisabledTip_1bsaq_384",Jye="_toolbarBtnRight_1bsaq_390",e_e="_presetSectionHeader_1bsaq_394",t_e="_presetSectionTitle_1bsaq_398",n_e="_presetListEmptyHint_1bsaq_404",i_e="_presetActions_1bsaq_411",r_e="_presetFormField_1bsaq_417",s_e="_presetFormLabel_1bsaq_421",Et={terminalPanel:vye,terminalContainer:$ye,pendingFileStrip:bye,pendingFileTag:Sye,pendingFileName:yye,pendingFileClose:_ye,pendingImageItem:Qye,pendingImageThumb:xye,pendingImageRemove:wye,terminalToolbar:Pye,toolbarBtn:Cye,toolbarBtnDisabled:Tye,virtualKeybar:kye,virtualKey:Rye,virtualKeyPressed:Eye,vkSeparator:Xye,vkAction:zye,vkTeamLabel:Iye,vkTeamPreset:Aye,vkDisabled:Mye,presetList:jye,presetRow:Nye,presetRowDragging:Wye,presetRowDragOver:Lye,dragHandle:Vye,presetText:Bye,presetMenu:Yye,presetMenuItem:Dye,presetMenuItemMuted:Uye,presetName:qye,presetInput:Zye,presetTextarea:Gye,hiddenFileInput:Fye,popoverEmptyHint:Hye,agentTeamDisabledTip:Kye,toolbarBtnRight:Jye,presetSectionHeader:e_e,presetSectionTitle:t_e,presetListEmptyHint:n_e,presetActions:i_e,presetFormField:r_e,presetFormLabel:s_e},W9=[{builtinId:"scout-regiment",version:1,teamName:"ui.preset.scoutRegiment.name",description:"ui.preset.scoutRegiment.desc"},{builtinId:"codereview-5",version:1,teamName:"ui.preset.codeReview5.name",description:"ui.preset.codeReview5.desc"},{builtinId:"codereview-2",version:1,teamName:"ui.preset.codeReview2.name",description:"ui.preset.codeReview2.desc"}],LE={background:"#0a0a0a",foreground:"#d4d4d4",cursor:"#0a0a0a",selectionBackground:"#264f78",black:"#000000",red:"#ef4444",green:"#73c991",yellow:"#fbbf24",blue:"#3b82f6",magenta:"#d946ef",cyan:"#06b6d4",white:"#e5e5e5",brightBlack:"#666666",brightRed:"#ff7b7b",brightGreen:"#9ddc6f",brightYellow:"#ffce5b",brightBlue:"#66b3ff",brightMagenta:"#e88ce8",brightCyan:"#7eddd9",brightWhite:"#ffffff"},VE={background:"#ffffff",foreground:"#333333",cursor:"#333333",selectionBackground:"#cce5ff",black:"#000000",red:"#CD3131",green:"#107C10",yellow:"#949800",blue:"#0451A5",magenta:"#BC05BC",cyan:"#0598BC",white:"#555555",brightBlack:"#666666",brightRed:"#CD3131",brightGreen:"#14CE14",brightYellow:"#B5BA00",brightBlue:"#0451A5",brightMagenta:"#BC05BC",brightCyan:"#0598BC",brightWhite:"#A5A5A5"},o_e=[{label:"↑",seq:"\x1B[A"},{label:"↓",seq:"\x1B[B"},{label:"←",seq:"\x1B[D"},{label:"→",seq:"\x1B[C"},{label:"Enter",seq:"\r"},{label:"Tab",seq:" "},{label:"Esc",seq:"\x1B"},{label:"Ctrl+C",seq:""}];function a_e(){return w.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[w.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),w.jsx("polyline",{points:"17 8 12 3 7 8"}),w.jsx("line",{x1:"12",y1:"3",x2:"12",y2:"15"})]})}function xm(){return w.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[w.jsx("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),w.jsx("circle",{cx:"9",cy:"7",r:"4"}),w.jsx("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),w.jsx("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]})}async function Wv(t){if(t.size>52428800)throw new Error("File too large (max 50MB)");const n=new FormData;n.append("file",t);const r=await(await fetch(pt("/api/upload"),{method:"POST",body:n})).json();if(!r.ok)throw new Error(r.error||"Upload failed");return r.path}class l_e extends F.Component{constructor(n){super(n);Je(this,"_handlePaste",n=>{var s,o,a,l;const i=(s=n.clipboardData)==null?void 0:s.items;if(i){for(const c of i)if(c.type.startsWith("image/")){n.preventDefault(),n.stopPropagation();const d=c.getAsFile();d&&this._uploadClipboardImage(d);return}}if((a=(o=this.terminal)==null?void 0:o.modes)!=null&&a.bracketedPasteMode)return;const r=(l=n.clipboardData)==null?void 0:l.getData("text");if(!(!r||!this.ws||this.ws.readyState!==WebSocket.OPEN)&&(r.includes(`
1032
+ `))}},lye=class extends Error{constructor(e,n){super(e),this.name="ListenerLeakError",this.stack=n}},cye=class extends Error{constructor(e,n){super(e),this.name="ListenerRefusalError",this.stack=n}},dye=0,AS=class{constructor(t){this.value=t,this.id=dye++}},uye=2,hye,Zl=class{constructor(e){var n,i,r,s;this._size=0,this._options=e,this._leakageMon=(n=this._options)!=null&&n.leakWarningThreshold?new oye((e==null?void 0:e.onListenerError)??IS,((i=this._options)==null?void 0:i.leakWarningThreshold)??sye):void 0,this._perfMon=(r=this._options)!=null&&r._profName?new rye(this._options._profName):void 0,this._deliveryQueue=(s=this._options)==null?void 0:s.deliveryQueue}dispose(){var e,n,i,r;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)==null?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(i=(n=this._options)==null?void 0:n.onDidRemoveLastListener)==null||i.call(n),(r=this._leakageMon)==null||r.dispose())}get event(){return this._event??(this._event=(e,n,i)=>{var a,l,c,d,u;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let h=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(h);let O=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],p=new cye(`${h}. HINT: Stack shows most frequent listener (${O[1]}-times)`,O[0]);return(((a=this._options)==null?void 0:a.onListenerError)||IS)(p),jv.None}if(this._disposed)return jv.None;n&&(e=e.bind(n));let r=new AS(e),s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(r.stack=aye.create(),s=this._leakageMon.check(r.stack,this._size+1)),this._listeners?this._listeners instanceof AS?(this._deliveryQueue??(this._deliveryQueue=new Oye),this._listeners=[this._listeners,r]):this._listeners.push(r):((c=(l=this._options)==null?void 0:l.onWillAddFirstListener)==null||c.call(l,this),this._listeners=r,(u=(d=this._options)==null?void 0:d.onDidAddFirstListener)==null||u.call(d,this)),this._size++;let o=X9(()=>{s==null||s(),this._removeListener(r)});return i instanceof LP?i.add(o):Array.isArray(i)&&i.push(o),o}),this._event}_removeListener(e){var s,o,a,l;if((o=(s=this._options)==null?void 0:s.onWillRemoveListener)==null||o.call(s,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(l=(a=this._options)==null?void 0:a.onDidRemoveLastListener)==null||l.call(a,this),this._size=0;return}let n=this._listeners,i=n.indexOf(e);if(i===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[i]=void 0;let r=this._deliveryQueue.current===this;if(this._size*uye<=n.length){let c=0;for(let d=0;d<n.length;d++)n[d]?n[c++]=n[d]:r&&(this._deliveryQueue.end--,c<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=c}}_deliver(e,n){var r;if(!e)return;let i=((r=this._options)==null?void 0:r.onListenerError)||IS;if(!i){e.value(n);return}try{e.value(n)}catch(s){i(s)}}_deliverQueue(e){let n=e.current._listeners;for(;e.i<e.end;)this._deliver(n[e.i++],e.value);e.reset()}fire(e){var n,i,r,s;if((n=this._deliveryQueue)!=null&&n.current&&(this._deliverQueue(this._deliveryQueue),(i=this._perfMon)==null||i.stop()),(r=this._perfMon)==null||r.start(this._size),this._listeners)if(this._listeners instanceof AS)this._deliver(this._listeners,e);else{let o=this._deliveryQueue;o.enqueue(this,e,this._listeners.length),this._deliverQueue(o)}(s=this._perfMon)==null||s.stop()}hasListeners(){return this._size>0}},Oye=class{constructor(){this.i=-1,this.end=0}enqueue(e,n,i){this.i=0,this.end=i,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},Nv=class Mg{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new Zl,this.onChange=this._onChange.event;let e=new q1e;this.register(e),this._active=e.version,this._activeProvider=e}static extractShouldJoin(e){return(e&1)!==0}static extractWidth(e){return e>>1&3}static extractCharKind(e){return e>>3}static createPropertyValue(e,n,i=!1){return(e&16777215)<<3|(n&3)<<1|(i?1:0)}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(e){if(!this._providers[e])throw new Error(`unknown Unicode version "${e}"`);this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)}register(e){this._providers[e.version]=e}wcwidth(e){return this._activeProvider.wcwidth(e)}getStringCellWidth(e){let n=0,i=0,r=e.length;for(let s=0;s<r;++s){let o=e.charCodeAt(s);if(55296<=o&&o<=56319){if(++s>=r)return n+this.wcwidth(o);let c=e.charCodeAt(s);56320<=c&&c<=57343?o=(o-55296)*1024+c-56320+65536:n+=this.wcwidth(c)}let a=this.charProperties(o,i),l=Mg.extractWidth(a);Mg.extractShouldJoin(a)&&(l-=Mg.extractWidth(i)),n+=l,i=a}return n}charProperties(e,n){return this._activeProvider.charProperties(e,n)}},MS=[[768,879],[1155,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1541],[1552,1562],[1564,1564],[1611,1631],[1648,1648],[1750,1757],[1759,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2045,2045],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2259,2306],[2362,2362],[2364,2364],[2369,2376],[2381,2381],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2558,2558],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2879,2879],[2881,2884],[2893,2893],[2902,2902],[2914,2915],[2946,2946],[3008,3008],[3021,3021],[3072,3072],[3076,3076],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],[3405,3405],[3426,3427],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4448,4607],[4957,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6158],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6752,6752],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6846],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7673],[7675,7679],[8203,8207],[8234,8238],[8288,8292],[8294,8303],[8400,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43204,43205],[43232,43249],[43263,43263],[43302,43309],[43335,43345],[43392,43394],[43443,43443],[43446,43449],[43452,43453],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[43766,43766],[44005,44005],[44008,44008],[44013,44013],[64286,64286],[65024,65039],[65056,65071],[65279,65279],[65529,65531]],fye=[[66045,66045],[66272,66272],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[68325,68326],[68900,68903],[69446,69456],[69633,69633],[69688,69702],[69759,69761],[69811,69814],[69817,69818],[69821,69821],[69837,69837],[69888,69890],[69927,69931],[69933,69940],[70003,70003],[70016,70017],[70070,70078],[70089,70092],[70191,70193],[70196,70196],[70198,70199],[70206,70206],[70367,70367],[70371,70378],[70400,70401],[70459,70460],[70464,70464],[70502,70508],[70512,70516],[70712,70719],[70722,70724],[70726,70726],[70750,70750],[70835,70840],[70842,70842],[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71229,71229],[71231,71232],[71339,71339],[71341,71341],[71344,71349],[71351,71351],[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[72148,72151],[72154,72155],[72160,72160],[72193,72202],[72243,72248],[72251,72254],[72263,72263],[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72767,72767],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73018,73018],[73020,73021],[73023,73029],[73031,73031],[73104,73105],[73109,73109],[73111,73111],[73459,73460],[78896,78904],[92912,92916],[92976,92982],[94031,94031],[94095,94098],[113821,113822],[113824,113827],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121461,121461],[121476,121476],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123184,123190],[123628,123631],[125136,125142],[125252,125258],[917505,917505],[917536,917631],[917760,917999]],jS=[[4352,4447],[8986,8987],[9001,9002],[9193,9196],[9200,9200],[9203,9203],[9725,9726],[9748,9749],[9800,9811],[9855,9855],[9875,9875],[9889,9889],[9898,9899],[9917,9918],[9924,9925],[9934,9934],[9940,9940],[9962,9962],[9970,9971],[9973,9973],[9978,9978],[9981,9981],[9989,9989],[9994,9995],[10024,10024],[10060,10060],[10062,10062],[10067,10069],[10071,10071],[10133,10135],[10160,10160],[10175,10175],[11035,11036],[11088,11088],[11093,11093],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12288,12329],[12334,12350],[12353,12438],[12443,12543],[12549,12591],[12593,12686],[12688,12730],[12736,12771],[12784,12830],[12832,12871],[12880,19903],[19968,42124],[42128,42182],[43360,43388],[44032,55203],[63744,64255],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65281,65376],[65504,65510]],pye=[[94176,94179],[94208,100343],[100352,101106],[110592,110878],[110928,110930],[110948,110951],[110960,111355],[126980,126980],[127183,127183],[127374,127374],[127377,127386],[127488,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,127776],[127789,127797],[127799,127868],[127870,127891],[127904,127946],[127951,127955],[127968,127984],[127988,127988],[127992,128062],[128064,128064],[128066,128252],[128255,128317],[128331,128334],[128336,128359],[128378,128378],[128405,128406],[128420,128420],[128507,128591],[128640,128709],[128716,128716],[128720,128722],[128725,128725],[128747,128748],[128756,128762],[128992,129003],[129293,129393],[129395,129398],[129402,129442],[129445,129450],[129454,129482],[129485,129535],[129648,129651],[129656,129658],[129664,129666],[129680,129685],[131072,196605],[196608,262141]],sl;function WE(t,e){let n=0,i=e.length-1,r;if(t<e[0][0]||t>e[i][1])return!1;for(;i>=n;)if(r=n+i>>1,t>e[r][1])n=r+1;else if(t<e[r][0])i=r-1;else return!0;return!1}var mye=class{constructor(){if(this.version="11",!sl){sl=new Uint8Array(65536),sl.fill(1),sl[0]=0,sl.fill(0,1,32),sl.fill(0,127,160);for(let e=0;e<MS.length;++e)sl.fill(0,MS[e][0],MS[e][1]+1);for(let e=0;e<jS.length;++e)sl.fill(2,jS[e][0],jS[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?sl[e]:WE(e,fye)?0:WE(e,pye)?2:1}charProperties(e,n){let i=this.wcwidth(e),r=i===0&&n!==0;if(r){let s=Nv.extractWidth(n);s===0?r=!1:s>i&&(i=s)}return Nv.createPropertyValue(0,i,r)}},gye=class{activate(e){e.unicode.register(new mye)}dispose(){}};const vye="_terminalPanel_1bsaq_1",$ye="_terminalContainer_1bsaq_8",bye="_pendingFileStrip_1bsaq_21",Sye="_pendingFileTag_1bsaq_29",yye="_pendingFileName_1bsaq_41",_ye="_pendingFileClose_1bsaq_48",Qye="_pendingImageItem_1bsaq_62",xye="_pendingImageThumb_1bsaq_72",wye="_pendingImageRemove_1bsaq_78",Pye="_terminalToolbar_1bsaq_104",Cye="_toolbarBtn_1bsaq_115",Tye="_toolbarBtnDisabled_1bsaq_136",kye="_virtualKeybar_1bsaq_151",Rye="_virtualKey_1bsaq_151",Eye="_virtualKeyPressed_1bsaq_182",Xye="_vkSeparator_1bsaq_189",zye="_vkAction_1bsaq_198",Iye="_vkTeamLabel_1bsaq_210",Aye="_vkTeamPreset_1bsaq_219",Mye="_vkDisabled_1bsaq_224",jye="_presetList_1bsaq_230",Nye="_presetRow_1bsaq_238",Wye="_presetRowDragging_1bsaq_250",Lye="_presetRowDragOver_1bsaq_254",Vye="_dragHandle_1bsaq_259",Bye="_presetText_1bsaq_277",Yye="_presetMenu_1bsaq_287",Dye="_presetMenuItem_1bsaq_292",Uye="_presetMenuItemMuted_1bsaq_311",qye="_presetName_1bsaq_330",Zye="_presetInput_1bsaq_340",Gye="_presetTextarea_1bsaq_356",Fye="_hiddenFileInput_1bsaq_373",Hye="_popoverEmptyHint_1bsaq_377",Kye="_agentTeamDisabledTip_1bsaq_384",Jye="_toolbarBtnRight_1bsaq_390",e_e="_presetSectionHeader_1bsaq_394",t_e="_presetSectionTitle_1bsaq_398",n_e="_presetListEmptyHint_1bsaq_404",i_e="_presetActions_1bsaq_411",r_e="_presetFormField_1bsaq_417",s_e="_presetFormLabel_1bsaq_421",Et={terminalPanel:vye,terminalContainer:$ye,pendingFileStrip:bye,pendingFileTag:Sye,pendingFileName:yye,pendingFileClose:_ye,pendingImageItem:Qye,pendingImageThumb:xye,pendingImageRemove:wye,terminalToolbar:Pye,toolbarBtn:Cye,toolbarBtnDisabled:Tye,virtualKeybar:kye,virtualKey:Rye,virtualKeyPressed:Eye,vkSeparator:Xye,vkAction:zye,vkTeamLabel:Iye,vkTeamPreset:Aye,vkDisabled:Mye,presetList:jye,presetRow:Nye,presetRowDragging:Wye,presetRowDragOver:Lye,dragHandle:Vye,presetText:Bye,presetMenu:Yye,presetMenuItem:Dye,presetMenuItemMuted:Uye,presetName:qye,presetInput:Zye,presetTextarea:Gye,hiddenFileInput:Fye,popoverEmptyHint:Hye,agentTeamDisabledTip:Kye,toolbarBtnRight:Jye,presetSectionHeader:e_e,presetSectionTitle:t_e,presetListEmptyHint:n_e,presetActions:i_e,presetFormField:r_e,presetFormLabel:s_e},W9=[{builtinId:"scout-regiment",version:1,teamName:"ui.preset.scoutRegiment.name",description:"ui.preset.scoutRegiment.desc"},{builtinId:"codereview-5",version:1,teamName:"ui.preset.codeReview5.name",description:"ui.preset.codeReview5.desc"},{builtinId:"codereview-2",version:1,teamName:"ui.preset.codeReview2.name",description:"ui.preset.codeReview2.desc"}],LE={background:"#0a0a0a",foreground:"#d4d4d4",cursor:"#0a0a0a",selectionBackground:"#264f78",black:"#000000",red:"#ef4444",green:"#73c991",yellow:"#fbbf24",blue:"#3b82f6",magenta:"#d946ef",cyan:"#06b6d4",white:"#e5e5e5",brightBlack:"#666666",brightRed:"#ff7b7b",brightGreen:"#9ddc6f",brightYellow:"#ffce5b",brightBlue:"#66b3ff",brightMagenta:"#e88ce8",brightCyan:"#7eddd9",brightWhite:"#ffffff"},VE={background:"#ffffff",foreground:"#333333",cursor:"#333333",selectionBackground:"#cce5ff",black:"#000000",red:"#CD3131",green:"#107C10",yellow:"#949800",blue:"#0451A5",magenta:"#BC05BC",cyan:"#0598BC",white:"#555555",brightBlack:"#666666",brightRed:"#CD3131",brightGreen:"#14CE14",brightYellow:"#B5BA00",brightBlue:"#0451A5",brightMagenta:"#BC05BC",brightCyan:"#0598BC",brightWhite:"#A5A5A5"},o_e=[{label:"↑",seq:"\x1B[A"},{label:"↓",seq:"\x1B[B"},{label:"←",seq:"\x1B[D"},{label:"→",seq:"\x1B[C"},{label:"Enter",seq:"\r"},{label:"Tab",seq:" "},{label:"Esc",seq:"\x1B"},{label:"Ctrl+C",seq:""}];function a_e(){return w.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[w.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),w.jsx("polyline",{points:"17 8 12 3 7 8"}),w.jsx("line",{x1:"12",y1:"3",x2:"12",y2:"15"})]})}function xm(){return w.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[w.jsx("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),w.jsx("circle",{cx:"9",cy:"7",r:"4"}),w.jsx("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),w.jsx("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]})}async function Wv(t){if(t.size>104857600)throw new Error("File too large (max 100MB)");const n=new FormData;n.append("file",t);const r=await(await fetch(pt("/api/upload"),{method:"POST",body:n})).json();if(!r.ok)throw new Error(r.error||"Upload failed");return r.path}class l_e extends F.Component{constructor(n){super(n);Je(this,"_handlePaste",n=>{var s,o,a,l;const i=(s=n.clipboardData)==null?void 0:s.items;if(i){for(const c of i)if(c.type.startsWith("image/")){n.preventDefault(),n.stopPropagation();const d=c.getAsFile();d&&this._uploadClipboardImage(d);return}}if((a=(o=this.terminal)==null?void 0:o.modes)!=null&&a.bracketedPasteMode)return;const r=(l=n.clipboardData)==null?void 0:l.getData("text");if(!(!r||!this.ws||this.ws.readyState!==WebSocket.OPEN)&&(r.includes(`
1033
1033
  `)||r.includes("\r"))){n.preventDefault(),n.stopPropagation();const c=`\x1B[200~${r}\x1B[201~`;this.ws.send(JSON.stringify({type:"input",data:c}))}});Je(this,"_uploadClipboardImage",async n=>{try{const i=await this._downscaleForRetina(n),r=await Wv(i);this.props.onFilePath&&this.props.onFilePath(r),this.ws&&this.ws.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:"image-upload-notify",path:r,source:"terminal"})),this.terminal&&this.terminal.focus()}catch(i){console.error("[CC Viewer] Clipboard image upload failed:",i),ti.error(le("ui.terminal.pasteImageFailed"))}});Je(this,"handleVirtualKey",n=>{var i,r;if(this.ws&&this.ws.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:"input",data:n})),Ft){const s=(i=this.containerRef.current)==null?void 0:i.querySelector(".xterm-helper-textarea");s&&s.blur()}else(r=this.terminal)==null||r.focus()});Je(this,"_vkTouchStart",n=>{n.preventDefault();const i=n.touches[0];this._vkStartX=i.clientX,this._vkStartY=i.clientY,this._vkMoved=!1,this._vkTarget=n.currentTarget,this._vkTarget.classList.add(Et.virtualKeyPressed)});Je(this,"_vkTouchMove",n=>{if(this._vkMoved)return;const i=n.touches[0],r=i.clientX-this._vkStartX,s=i.clientY-this._vkStartY;r*r+s*s>64&&(this._vkMoved=!0)});Je(this,"_vkTouchEnd",(n,i)=>{var r;i.preventDefault(),(r=this._vkTarget)==null||r.classList.remove(Et.virtualKeyPressed),this._vkTarget=null,this._vkMoved||n()});Je(this,"handleFileUpload",async n=>{var r;const i=(r=n.target.files)==null?void 0:r[0];if(i){try{const s=await Wv(i);this.props.onFilePath&&this.props.onFilePath(s),this.ws&&this.ws.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:"image-upload-notify",path:s,source:"terminal"})),!Ft&&this.terminal&&this.terminal.focus()}catch(s){console.error("[CC Viewer] Upload failed:",s)}n.target.value=""}});Je(this,"_savePresetShortcuts",(n,i)=>{const r={presetShortcuts:n.map(s=>{const o={teamName:s.teamName,description:s.description};return s.builtinId&&(o.builtinId=s.builtinId),s.modified&&(o.modified=!0),o})};i&&(r.dismissedBuiltinPresets=[...i]),fetch(pt("/api/preferences"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(()=>{window.dispatchEvent(new Event("ccv-presets-changed"))}).catch(()=>{})});Je(this,"handlePresetAdd",()=>{const n=this.state.presetAddText.trim(),i=this.state.presetAddName.trim();if(!n&&!i)return;const{presetEditId:r,presetItems:s}=this.state;let o;r?o=s.map(a=>{if(a.id!==r)return a;const l={...a,teamName:i,description:n};return a.builtinId&&(l.modified=!0),l}):o=[...s,{id:Date.now(),teamName:i,description:n}],this.setState({presetItems:o,presetAddVisible:!1,presetAddText:"",presetAddName:"",presetEditId:null}),this._savePresetShortcuts(o)});Je(this,"handlePresetDelete",()=>{const{presetItems:n,presetSelected:i}=this.state;if(i.size===0)return;const r=new Set(this._dismissedBuiltinPresets||[]);for(const o of n)i.has(o.id)&&o.builtinId&&r.add(o.builtinId);this._dismissedBuiltinPresets=r;const s=n.filter(o=>!i.has(o.id));this.setState({presetItems:s,presetSelected:new Set}),this._savePresetShortcuts(s,r)});Je(this,"handlePresetToggle",n=>{this.setState(i=>{const r=new Set(i.presetSelected);return r.has(n)?r.delete(n):r.add(n),{presetSelected:r}})});Je(this,"_dragIdx",null);Je(this,"_dragOverIdx",null);Je(this,"handleDragStart",(n,i)=>{i.stopPropagation(),this._dragIdx=n,i.dataTransfer.effectAllowed="move",i.dataTransfer.setData("text/x-preset-reorder",String(n)),requestAnimationFrame(()=>this.forceUpdate())});Je(this,"handleDragOver",(n,i)=>{i.preventDefault(),i.stopPropagation(),i.dataTransfer.dropEffect="move",this._dragOverIdx!==n&&(this._dragOverIdx=n,this.forceUpdate())});Je(this,"handleDragEnd",n=>{n&&n.stopPropagation(),this._dragIdx=null,this._dragOverIdx=null,this.forceUpdate()});Je(this,"handleDragLeave",(n,i)=>{i.stopPropagation(),this._dragOverIdx===n&&(this._dragOverIdx=null,this.forceUpdate())});Je(this,"handleDrop",(n,i)=>{i.preventDefault(),i.stopPropagation();const r=this._dragIdx;if(r===null||r===n){this.handleDragEnd();return}const s=[...this.state.presetItems],[o]=s.splice(r,1);s.splice(r<n?n-1:n,0,o),this.setState({presetItems:s}),this._savePresetShortcuts(s),this.handleDragEnd()});Je(this,"handlePresetSend",n=>{n&&(this.setState({agentTeamPopoverOpen:!1}),this.ws&&this.ws.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:"input",data:`\x1B[200~${n}\x1B[201~`})),!Ft&&this.terminal&&this.terminal.focus())});Je(this,"handleEnableAgentTeam",()=>{this.state.agentTeamEnabling||(this.setState({agentTeamEnabling:!0}),this.ws&&this.ws.readyState===WebSocket.OPEN&&(this.ws.send(JSON.stringify({type:"input",data:`Add "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" to the env object in ~/.claude/settings.json. If the env key does not exist, create it. Preserve all existing content. Only modify this one field. If ~/.claude/settings.json does not exist, instead add the line: export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 to the user's shell profile (~/.zshrc or ~/.bashrc).`+"\r"})),ti.success("需要重启 Claude Code 才能生效")),!Ft&&this.terminal&&this.terminal.focus())});this.containerRef=F.createRef(),this.fileInputRef=F.createRef(),this.terminal=null,this.fitAddon=null,this.ws=null,this.resizeObserver=null,this.state={agentTeamEnabled:!1,agentTeamPopoverOpen:!1,presetModalVisible:!1,presetItems:[],presetSelected:new Set,presetAddVisible:!1,presetAddText:"",presetAddName:"",presetEditId:null}}componentDidMount(){this.initTerminal(),this.connectWebSocket(),this.setupResizeObserver(),fetch(pt("/api/claude-settings")).then(n=>n.json()).then(n=>{var r;const i=((r=n==null?void 0:n.env)==null?void 0:r.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS)==="1";this.setState({agentTeamEnabled:i})}).catch(()=>{}),this._loadPresetShortcuts(),this._onPresetsChanged=()=>this._loadPresetShortcuts(),window.addEventListener("ccv-presets-changed",this._onPresetsChanged),this._themeObserver=new MutationObserver(()=>{if(this.terminal){const n=document.documentElement.getAttribute("data-theme")!=="light";this.terminal.options.theme=n?LE:VE}}),this._themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}_loadPresetShortcuts(){fetch(pt("/api/preferences")).then(n=>n.json()).then(n=>{const i=Array.isArray(n.dismissedBuiltinPresets)?new Set(n.dismissedBuiltinPresets):new Set;this._dismissedBuiltinPresets=i;let r=[];Array.isArray(n.presetShortcuts)&&(r=n.presetShortcuts.map((o,a)=>typeof o=="string"?{id:Date.now()+a,teamName:"",description:o}:{id:Date.now()+a,teamName:o.teamName||"",description:o.description||"",...o.builtinId?{builtinId:o.builtinId}:{},...o.modified?{modified:!0}:{}}));const s=new Set(r.filter(o=>o.builtinId).map(o=>o.builtinId));for(const o of W9)i.has(o.builtinId)||s.has(o.builtinId)||r.unshift({id:Date.now()+Math.random(),builtinId:o.builtinId,teamName:o.teamName,description:o.description});this.setState({presetItems:r})}).catch(()=>{})}componentWillUnmount(){this._themeObserver&&(this._themeObserver.disconnect(),this._themeObserver=null),window.removeEventListener("ccv-presets-changed",this._onPresetsChanged),this._stopMobileMomentum&&this._stopMobileMomentum(),this._writeTimer&&cancelAnimationFrame(this._writeTimer),this._wsReconnectTimer&&clearTimeout(this._wsReconnectTimer),this.ws&&(this.ws.onclose=null,this.ws.close(),this.ws=null),this._resizeDebounceTimer&&clearTimeout(this._resizeDebounceTimer),this._webglRecoveryTimer&&clearTimeout(this._webglRecoveryTimer),this.resizeObserver&&this.resizeObserver.disconnect(),this.webglAddon&&(this.webglAddon.dispose(),this.webglAddon=null),this.terminal&&(this.terminal.textarea&&this.terminal.textarea.removeEventListener("paste",this._handlePaste,!0),this.terminal.dispose())}initTerminal(){const n=document.documentElement.getAttribute("data-theme")!=="light";this.terminal=new eSe({cursorBlink:!1,cursorStyle:"bar",cursorWidth:1,cursorInactiveStyle:"none",fontSize:Ft?11:13,fontFamily:'Menlo, Monaco, "Courier New", monospace',theme:n?LE:VE,allowProposedApi:!0,scrollback:mT?200:Ft?1e3:3e3,smoothScrollDuration:0,scrollOnUserInput:!0}),this.fitAddon=new iSe,this.terminal.loadAddon(this.fitAddon),this.terminal.loadAddon(new Y1e);const i=new gye;this.terminal.loadAddon(i),this.terminal.unicode.activeVersion="11",this.terminal.open(this.containerRef.current),mT||this._loadWebglAddon(!1),this._writeBuffer="",this._writeTimer=null,requestAnimationFrame(Ft?()=>{this._mobileFixedResize()}:()=>{this.fitAddon.fit(),this.terminal.focus()}),this.terminal.attachCustomKeyEventHandler(r=>{var s,o,a,l,c,d;if(r.type==="keydown"&&r.key==="Enter"&&r.shiftKey)return this.ws&&this.ws.readyState===WebSocket.OPEN?(this.ws.send(JSON.stringify({type:"input",data:`\x1B[200~
1034
1034
  \x1B[201~`})),!1):!0;if(r.type==="keydown"&&r.key==="Enter"&&!r.shiftKey&&!r.ctrlKey&&!r.metaKey){const u=this.props.pendingImages,h=((a=(o=(s=this.terminal)==null?void 0:s.buffer)==null?void 0:o.active)==null?void 0:a.type)==="alternate";if((u==null?void 0:u.length)>0&&!h&&((l=this.ws)==null?void 0:l.readyState)===WebSocket.OPEN){const O=u.map(p=>`"${p.path.replace(/"/g,"")}"`).join(" ");return this.ws.send(JSON.stringify({type:"input",data:O+" \r"})),(d=(c=this.props).onClearPendingImages)==null||d.call(c),!1}}return!0}),this.terminal.onData(r=>{this.ws&&this.ws.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:"input",data:r}))}),this.terminal.textarea&&this.terminal.textarea.addEventListener("paste",this._handlePaste,!0),Ft&&this._setupMobileTouchScroll()}_setupMobileTouchScroll(){var p;const n=(p=this.containerRef.current)==null?void 0:p.querySelector(".xterm-screen");if(!n)return;const i=this.terminal,r=()=>{var g,v,$,b;const m=(b=($=(v=(g=i._core)==null?void 0:g._renderService)==null?void 0:v.dimensions)==null?void 0:$.css)==null?void 0:b.cell;return(m==null?void 0:m.height)||15};let s=0,o=0,a=null,l=0,c=0,d=null,u=[];const h=()=>{a&&(cancelAnimationFrame(a),a=null),d&&(cancelAnimationFrame(d),d=null),c=0,l=0},O=()=>{if(d=null,c===0)return;l+=c,c=0;const m=r(),g=Math.trunc(l/m);g!==0&&(i.scrollLines(g),l-=g*m)};n.addEventListener("touchstart",m=>{h(),m.touches.length===1&&(s=m.touches[0].clientY,o=performance.now(),u=[])},{passive:!0}),n.addEventListener("touchmove",m=>{if(m.touches.length!==1)return;const g=m.touches[0].clientY,v=performance.now(),$=v-o,b=s-g;if($>0){const S=b/$*16;for(u.push({v:S,t:v});u.length>0&&v-u[0].t>100;)u.shift()}c+=b,d||(d=requestAnimationFrame(O)),s=g,o=v},{passive:!0}),n.addEventListener("touchend",()=>{if(d&&(cancelAnimationFrame(d),d=null),c!==0){l+=c,c=0;const b=r(),S=Math.trunc(l/b);S!==0&&i.scrollLines(S),l=0}let m=0;if(u.length>=2){let b=0,S=0;const y=u[u.length-1].t;for(const _ of u){const Q=Math.max(0,1-(y-_.t)/100);S+=_.v*Q,b+=Q}m=b>0?S/b:0}if(u=[],Math.abs(m)<.5)return;const g=.95;let v=0;const $=()=>{if(Math.abs(m)<.3){const y=r(),_=Math.round(v/y);_!==0&&i.scrollLines(_),a=null;return}v+=m;const b=r(),S=Math.trunc(v/b);S!==0&&(i.scrollLines(S),v-=S*b),m*=g,a=requestAnimationFrame($)};a=requestAnimationFrame($)},{passive:!0}),this._stopMobileMomentum=h}connectWebSocket(){const i=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws/terminal`;this.ws=new WebSocket(i),this.ws.onmessage=r=>{try{const s=JSON.parse(r.data);s.type==="data"?this._throttledWrite(s.data):s.type==="exit"?(this._flushWrite(),this.terminal.write(`\r
1035
1035
  \x1B[33m${le("ui.terminal.exited",{code:s.exitCode??"?"})}\x1B[0m\r