buddy-workbench 0.1.38 → 0.1.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buddy-workbench",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
package/server.js CHANGED
@@ -34,6 +34,17 @@ const app = express();
34
34
  app.use(express.json());
35
35
  app.use(compression);
36
36
 
37
+ // The service worker and entry document must be revalidated so a new build can
38
+ // publish a new cache version and new hashed asset references immediately.
39
+ app.use((req, res, next) => {
40
+ if (req.path === '/sw.js') {
41
+ res.setHeader('Cache-Control', 'no-cache, no-store, must-revalidate');
42
+ } else if (req.path === '/' || req.path === '/index.html') {
43
+ res.setHeader('Cache-Control', 'no-cache, must-revalidate');
44
+ }
45
+ next();
46
+ });
47
+
37
48
  // Intercept error responses (HTTP status >= 400) from any API route
38
49
  app.use((req, res, next) => {
39
50
  const originalJson = res.json;
@@ -493,7 +493,7 @@ html body {
493
493
  ${n}-eye,
494
494
  ${n}-download,
495
495
  ${n}-delete
496
- `]:{zIndex:10,width:r,margin:`0 ${ce(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${u}-thumbnail, ${u}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${u}-name`]:{display:"none",textAlign:"center"},[`${u}-file + ${u}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ce(l(e.paddingXS).mul(2).equal())})`},[`${u}-uploading`]:{[`&${u}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${u}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ce(l(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},sie=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},cie=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},pn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},uie=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),die=un("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,pictureCardSize:a,calc:l}=e,s=an(e,{uploadThumbnailSize:l(t).mul(2).equal(),uploadProgressOffset:l(l(n).div(2)).add(r).equal(),uploadPicCardSize:a});return[cie(s),rie(s),iie(s),lie(s),aie(s),oie(s),sie(s),_f(s)]},uie);var fie={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},mie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:fie}))},vie=o.forwardRef(mie),gie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},pie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:gie}))},hie=o.forwardRef(pie),bie={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},yie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:bie}))},xie=o.forwardRef(yie);function zv(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Dv(e,t){const n=ke(t),r=n.findIndex(({uid:a})=>a===e.uid);return r===-1?n.push(e):n[r]=e,n}function m1(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function Cie(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const Sie=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},a7=e=>e.indexOf("image/")===0,wie=e=>{if(e.type&&!e.thumbUrl)return a7(e.type);const t=e.thumbUrl||e.url||"",n=Sie(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},wl=200;function $ie(e){return new Promise(t=>{if(!e.type||!a7(e.type)){t("");return}const n=document.createElement("canvas");n.width=wl,n.height=wl,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${wl}px; height: ${wl}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:l,height:s}=a;let u=wl,d=wl,f=0,v=0;l>s?(d=s*(wl/l),v=-(d-u)/2):(u=l*(wl/s),f=-(u-d)/2),r.drawImage(a,f,v,u,d);const g=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(g)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const l=new FileReader;l.onload=()=>{l.result&&typeof l.result=="string"&&(a.src=l.result)},l.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const l=new FileReader;l.onload=()=>{l.result&&t(l.result)},l.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var Eie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 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:"download",theme:"outlined"},jie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Eie}))},rm=o.forwardRef(jie);const Oie=o.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:a,file:l,items:s,progress:u,iconRender:d,actionIconRender:f,itemRender:v,isImgUrl:g,showPreviewIcon:h,showRemoveIcon:b,showDownloadIcon:x,previewIcon:S,removeIcon:y,downloadIcon:w,extra:$,onPreview:E,onDownload:R,onClose:j},N)=>{var O,M;const{status:I}=l,[T,z]=o.useState(I);o.useEffect(()=>{I!=="removed"&&z(I)},[I]);const[H,L]=o.useState(!1);o.useEffect(()=>{const X=setTimeout(()=>{L(!0)},300);return()=>{clearTimeout(X)}},[]);const D=d(l);let F=o.createElement("div",{className:`${e}-icon`},D);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(T==="uploading"||!l.thumbUrl&&!l.url){const X=de(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:T!=="uploading"});F=o.createElement("div",{className:X},D)}else{const X=g!=null&&g(l)?o.createElement("img",{src:l.thumbUrl||l.url,alt:l.name,className:`${e}-list-item-image`,crossOrigin:l.crossOrigin}):D,oe=de(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:g&&!g(l)});F=o.createElement("a",{className:oe,onClick:J=>E(l,J),href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},X)}const k=de(`${e}-list-item`,`${e}-list-item-${T}`),_=typeof l.linkProps=="string"?JSON.parse(l.linkProps):l.linkProps,V=(typeof b=="function"?b(l):b)?f((typeof y=="function"?y(l):y)||o.createElement(hr,null),()=>j(l),e,r.removeFile,!0):null,W=(typeof x=="function"?x(l):x)&&T==="done"?f((typeof w=="function"?w(l):w)||o.createElement(rm,null),()=>R(l),e,r.downloadFile):null,q=a!=="picture-card"&&a!=="picture-circle"&&o.createElement("span",{key:"download-delete",className:de(`${e}-list-item-actions`,{picture:a==="picture"})},W,V),B=typeof $=="function"?$(l):$,K=B&&o.createElement("span",{className:`${e}-list-item-extra`},B),U=de(`${e}-list-item-name`),G=l.url?o.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:U,title:l.name},_,{href:l.url,onClick:X=>E(l,X)}),l.name,K):o.createElement("span",{key:"view",className:U,onClick:X=>E(l,X),title:l.name},l.name,K),Z=(typeof h=="function"?h(l):h)&&(l.url||l.thumbUrl)?o.createElement("a",{href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:X=>E(l,X),title:r.previewFile},typeof S=="function"?S(l):S||o.createElement(Jf,null)):null,ne=(a==="picture-card"||a==="picture-circle")&&T!=="uploading"&&o.createElement("span",{className:`${e}-list-item-actions`},Z,T==="done"&&W,V),{getPrefixCls:le}=o.useContext(Rt),Y=le(),te=o.createElement("div",{className:k},F,G,q,ne,H&&o.createElement(Zr,{motionName:`${Y}-fade`,visible:T==="uploading",motionDeadline:2e3},({className:X})=>{const oe="percent"in l?o.createElement(Fp,Object.assign({type:"line",percent:l.percent,"aria-label":l["aria-label"],"aria-labelledby":l["aria-labelledby"]},u)):null;return o.createElement("div",{className:de(`${e}-list-item-progress`,X)},oe)})),se=l.response&&typeof l.response=="string"?l.response:((O=l.error)===null||O===void 0?void 0:O.statusText)||((M=l.error)===null||M===void 0?void 0:M.message)||r.uploadError,ee=T==="error"?o.createElement($n,{title:se,getPopupContainer:X=>X.parentNode},te):te;return o.createElement("div",{className:de(`${e}-list-item-container`,t),style:n,ref:N},v?v(ee,l,s,{download:R.bind(null,l),preview:E.bind(null,l),remove:j.bind(null,l)}):ee)}),Nie=(e,t)=>{const{listType:n="text",previewFile:r=$ie,onPreview:a,onDownload:l,onRemove:s,locale:u,iconRender:d,isImageUrl:f=wie,prefixCls:v,items:g=[],showPreviewIcon:h=!0,showRemoveIcon:b=!0,showDownloadIcon:x=!1,removeIcon:S,previewIcon:y,downloadIcon:w,extra:$,progress:E={size:[-1,2],showInfo:!1},appendAction:R,appendActionVisible:j=!0,itemRender:N,disabled:O}=e,[,M]=$x(),[I,T]=o.useState(!1),z=["picture-card","picture-circle"].includes(n);o.useEffect(()=>{n.startsWith("picture")&&(g||[]).forEach(U=>{!(U.originFileObj instanceof File||U.originFileObj instanceof Blob)||U.thumbUrl!==void 0||(U.thumbUrl="",r==null||r(U.originFileObj).then(G=>{U.thumbUrl=G||"",M()}))})},[n,g,r]),o.useEffect(()=>{T(!0)},[]);const H=(U,G)=>{if(a)return G==null||G.preventDefault(),a(U)},L=U=>{typeof l=="function"?l(U):U.url&&window.open(U.url)},D=U=>{s==null||s(U)},F=U=>{if(d)return d(U,n);const G=U.status==="uploading";if(n.startsWith("picture")){const Z=n==="picture"?o.createElement(qo,null):u.uploading,ne=f!=null&&f(U)?o.createElement(xie,null):o.createElement(vie,null);return G?Z:ne}return G?o.createElement(qo,null):o.createElement(hie,null)},k=(U,G,Z,ne,le)=>{const Y={type:"text",size:"small",title:ne,onClick:te=>{var se,ee;G(),o.isValidElement(U)&&((ee=(se=U.props).onClick)===null||ee===void 0||ee.call(se,te))},className:`${Z}-list-item-action`,disabled:le?O:!1};return o.isValidElement(U)?o.createElement(Ie,Object.assign({},Y,{icon:Ir(U,Object.assign(Object.assign({},U.props),{onClick:()=>{}}))})):o.createElement(Ie,Object.assign({},Y),o.createElement("span",null,U))};o.useImperativeHandle(t,()=>({handlePreview:H,handleDownload:L}));const{getPrefixCls:_}=o.useContext(Rt),V=_("upload",v),W=_(),q=de(`${V}-list`,`${V}-list-${n}`),B=o.useMemo(()=>Rn(cu(W),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[W]),K=Object.assign(Object.assign({},z?{}:B),{motionDeadline:2e3,motionName:`${V}-${z?"animate-inline":"animate"}`,keys:ke(g.map(U=>({key:U.uid,file:U}))),motionAppear:I});return o.createElement("div",{className:q},o.createElement(Sx,Object.assign({},K,{component:!1}),({key:U,file:G,className:Z,style:ne})=>o.createElement(Oie,{key:U,locale:u,prefixCls:V,className:Z,style:ne,file:G,items:g,progress:E,listType:n,isImgUrl:f,showPreviewIcon:h,showRemoveIcon:b,showDownloadIcon:x,removeIcon:S,previewIcon:y,downloadIcon:w,extra:$,iconRender:F,actionIconRender:k,itemRender:N,onPreview:H,onDownload:L,onClose:D})),R&&o.createElement(Zr,Object.assign({},K,{visible:j,forceRender:!0}),({className:U,style:G})=>Ir(R,Z=>({className:de(Z.className,U),style:Object.assign(Object.assign(Object.assign({},G),{pointerEvents:U?"none":void 0}),Z.style)}))))},Rie=o.forwardRef(Nie);var Iie=function(e,t,n,r){function a(l){return l instanceof n?l:new n(function(s){s(l)})}return new(n||(n=Promise))(function(l,s){function u(v){try{f(r.next(v))}catch(g){s(g)}}function d(v){try{f(r.throw(v))}catch(g){s(g)}}function f(v){v.done?l(v.value):a(v.value).then(u,d)}f((r=r.apply(e,[])).next())})};const Wd=`__LIST_IGNORE_${Date.now()}__`,Mie=(e,t)=>{const n=mr("upload"),{fileList:r,defaultFileList:a,onRemove:l,showUploadList:s=!0,listType:u="text",onPreview:d,onDownload:f,onChange:v,onDrop:g,previewFile:h,disabled:b,locale:x,iconRender:S,isImageUrl:y,progress:w,prefixCls:$,className:E,type:R="select",children:j,style:N,itemRender:O,maxCount:M,data:I={},multiple:T=!1,hasControlInside:z=!0,action:H="",accept:L="",supportServerRender:D=!0,rootClassName:F}=e,k=o.useContext(Yr),_=b??k,V=e.customRequest||n.customRequest,[W,q]=yn(a||[],{value:r,postState:$e=>$e??[]}),[B,K]=o.useState("drop"),U=o.useRef(null),G=o.useRef(null);o.useMemo(()=>{const $e=Date.now();(r||[]).forEach((Ee,Pe)=>{!Ee.uid&&!Object.isFrozen(Ee)&&(Ee.uid=`__AUTO__${$e}_${Pe}__`)})},[r]);const Z=($e,Ee,Pe)=>{let Be=ke(Ee),Qe=!1;M===1?Be=Be.slice(-1):M&&(Qe=Be.length>M,Be=Be.slice(0,M)),wo.flushSync(()=>{q(Be)});const bt={file:$e,fileList:Be};Pe&&(bt.event=Pe),(!Qe||$e.status==="removed"||Be.some(qe=>qe.uid===$e.uid))&&wo.flushSync(()=>{v==null||v(bt)})},ne=($e,Ee)=>Iie(void 0,void 0,void 0,function*(){const{beforeUpload:Pe,transformFile:Be}=e;let Qe=$e;if(Pe){const bt=yield Pe($e,Ee);if(bt===!1)return!1;if(delete $e[Wd],bt===Wd)return Object.defineProperty($e,Wd,{value:!0,configurable:!0}),!1;typeof bt=="object"&&bt&&(Qe=bt)}return Be&&(Qe=yield Be(Qe)),Qe}),le=$e=>{const Ee=$e.filter(Qe=>!Qe.file[Wd]);if(!Ee.length)return;const Pe=Ee.map(Qe=>zv(Qe.file));let Be=ke(W);Pe.forEach(Qe=>{Be=Dv(Qe,Be)}),Pe.forEach((Qe,bt)=>{let qe=Qe;if(Ee[bt].parsedFile)Qe.status="uploading";else{const{originFileObj:nt}=Qe;let mt;try{mt=new File([nt],nt.name,{type:nt.type})}catch{mt=new Blob([nt],{type:nt.type}),mt.name=nt.name,mt.lastModifiedDate=new Date,mt.lastModified=new Date().getTime()}mt.uid=Qe.uid,qe=mt}Z(qe,Be)})},Y=($e,Ee,Pe)=>{try{typeof $e=="string"&&($e=JSON.parse($e))}catch{}if(!m1(Ee,W))return;const Be=zv(Ee);Be.status="done",Be.percent=100,Be.response=$e,Be.xhr=Pe;const Qe=Dv(Be,W);Z(Be,Qe)},te=($e,Ee)=>{if(!m1(Ee,W))return;const Pe=zv(Ee);Pe.status="uploading",Pe.percent=$e.percent;const Be=Dv(Pe,W);Z(Pe,Be,$e)},se=($e,Ee,Pe)=>{if(!m1(Pe,W))return;const Be=zv(Pe);Be.error=$e,Be.response=Ee,Be.status="error";const Qe=Dv(Be,W);Z(Be,Qe)},ee=$e=>{let Ee;Promise.resolve(typeof l=="function"?l($e):l).then(Pe=>{var Be;if(Pe===!1)return;const Qe=Cie($e,W);Qe&&(Ee=Object.assign(Object.assign({},$e),{status:"removed"}),W==null||W.forEach(bt=>{const qe=Ee.uid!==void 0?"uid":"name";bt[qe]===Ee[qe]&&!Object.isFrozen(bt)&&(bt.status="removed")}),(Be=U.current)===null||Be===void 0||Be.abort(Ee),Z(Ee,Qe))})},X=$e=>{K($e.type),$e.type==="drop"&&(g==null||g($e))};o.useImperativeHandle(t,()=>({onBatchStart:le,onSuccess:Y,onProgress:te,onError:se,fileList:W,upload:U.current,nativeElement:G.current}));const{getPrefixCls:oe,direction:J,upload:ae}=o.useContext(Rt),Q=oe("upload",$),me=Object.assign(Object.assign({onBatchStart:le,onError:se,onProgress:te,onSuccess:Y},e),{customRequest:V,data:I,multiple:T,action:H,accept:L,supportServerRender:D,prefixCls:Q,disabled:_,beforeUpload:ne,onChange:void 0,hasControlInside:z});delete me.className,delete me.style,(!j||_)&&delete me.id;const xe=`${Q}-wrapper`,[fe,ye,be]=die(Q,xe),[he]=ka("Upload",jo.Upload),{showRemoveIcon:Ce,showPreviewIcon:Se,showDownloadIcon:Re,removeIcon:Te,previewIcon:Ke,downloadIcon:Ve,extra:He}=typeof s=="boolean"?{}:s,Ge=typeof Ce>"u"?!_:Ce,ze=($e,Ee)=>s?o.createElement(Rie,{prefixCls:Q,listType:u,items:W,previewFile:h,onPreview:d,onDownload:f,onRemove:ee,showRemoveIcon:Ge,showPreviewIcon:Se,showDownloadIcon:Re,removeIcon:Te,previewIcon:Ke,downloadIcon:Ve,iconRender:S,extra:He,locale:Object.assign(Object.assign({},he),x),isImageUrl:y,progress:w,appendAction:$e,appendActionVisible:Ee,itemRender:O,disabled:_}):$e,je=de(xe,E,F,ye,be,ae==null?void 0:ae.className,{[`${Q}-rtl`]:J==="rtl",[`${Q}-picture-card-wrapper`]:u==="picture-card",[`${Q}-picture-circle-wrapper`]:u==="picture-circle"}),_e=Object.assign(Object.assign({},ae==null?void 0:ae.style),N);if(R==="drag"){const $e=de(ye,Q,`${Q}-drag`,{[`${Q}-drag-uploading`]:W.some(Ee=>Ee.status==="uploading"),[`${Q}-drag-hover`]:B==="dragover",[`${Q}-disabled`]:_,[`${Q}-rtl`]:J==="rtl"});return fe(o.createElement("span",{className:je,ref:G},o.createElement("div",{className:$e,style:_e,onDrop:X,onDragOver:X,onDragLeave:X},o.createElement(nx,Object.assign({},me,{ref:U,className:`${Q}-btn`}),o.createElement("div",{className:`${Q}-drag-container`},j))),ze()))}const Ne=de(Q,`${Q}-select`,{[`${Q}-disabled`]:_,[`${Q}-hidden`]:!j}),De=o.createElement("div",{className:Ne,style:_e},o.createElement(nx,Object.assign({},me,{ref:U})));return fe(u==="picture-card"||u==="picture-circle"?o.createElement("span",{className:je,ref:G},ze(De,!!j)):o.createElement("span",{className:je,ref:G},De,ze()))},o7=o.forwardRef(Mie);var Tie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Pie=o.forwardRef((e,t)=>{const{style:n,height:r,hasControlInside:a=!1,children:l}=e,s=Tie(e,["style","height","hasControlInside","children"]),u=Object.assign(Object.assign({},n),{height:r});return o.createElement(o7,Object.assign({ref:t,hasControlInside:a},s,{style:u,type:"drag"}),l)}),Gp=o7;Gp.Dragger=Pie;Gp.LIST_IGNORE=Wd;var kie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M193 796c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563zm-48.1-252.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 00-11.3 0l-39.6 39.6a8.03 8.03 0 000 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 00-11.3 0l-67.9 67.9a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM832 892H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8z"}}]},name:"alert",theme:"outlined"},zie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:kie}))},Of=o.forwardRef(zie),Die={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"},Aie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Die}))},_ie=o.forwardRef(Aie),Bie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"},Lie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Bie}))},i7=o.forwardRef(Lie),Hie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},Fie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Hie}))},Vie=o.forwardRef(Fie),Wie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Kie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Wie}))},Nf=o.forwardRef(Kie),Uie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},qie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Uie}))},Is=o.forwardRef(qie),Gie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},Xie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Gie}))},Yie=o.forwardRef(Xie),Qie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"},Zie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Qie}))},rx=o.forwardRef(Zie),Jie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 00-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 00-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 01-63 63H232a63 63 0 01-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0022.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 00123.2-149.5A120 120 0 01836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 01308 680V412h408v268z"}}]},name:"bug",theme:"outlined"},ele=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Jie}))},Rf=o.forwardRef(ele),tle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"},nle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:tle}))},G6=o.forwardRef(nle),rle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},ale=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:rle}))},mi=o.forwardRef(ale),ole={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M433.1 657.7a31.8 31.8 0 0051.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7H642c-10.2 0-19.9 4.9-25.9 13.3L459 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H315c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8z"}},{tag:"path",attrs:{d:"M880 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:"check-square",theme:"outlined"},ile=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:ole}))},If=o.forwardRef(ile),lle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 512.3v-.3c0-229.8-186.2-416-416-416S96 282.2 96 512v.4c0 229.8 186.2 416 416 416s416-186.2 416-416v-.3.2zm-6.7-74.6l.6 3.3-.6-3.3zM676.7 638.2c53.5-82.2 52.5-189.4-11.1-263.7l162.4-8.4c20.5 44.4 32 93.8 32 145.9 0 185.2-144.6 336.6-327.1 347.4l143.8-221.2zM512 652.3c-77.5 0-140.2-62.7-140.2-140.2 0-77.7 62.7-140.2 140.2-140.2S652.2 434.5 652.2 512 589.5 652.3 512 652.3zm369.2-331.7l-3-5.7 3 5.7zM512 164c121.3 0 228.2 62.1 290.4 156.2l-263.6-13.9c-97.5-5.7-190.2 49.2-222.3 141.1L227.8 311c63.1-88.9 166.9-147 284.2-147zM102.5 585.8c26 145 127.1 264 261.6 315.1C229.6 850 128.5 731 102.5 585.8zM164 512c0-55.9 13.2-108.7 36.6-155.5l119.7 235.4c44.1 86.7 137.4 139.7 234 121.6l-74 145.1C302.9 842.5 164 693.5 164 512zm324.7 415.4c4 .2 8 .4 12 .5-4-.2-8-.3-12-.5z"}}]},name:"chrome",theme:"outlined"},sle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:lle}))},cle=o.forwardRef(sle),ule={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},dle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:ule}))},fle=o.forwardRef(dle),mle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm176.5 585.7l-28.6 39a7.99 7.99 0 01-11.2 1.7L483.3 569.8a7.92 7.92 0 01-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z"}}]},name:"clock-circle",theme:"filled"},vle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:mle}))},gle=o.forwardRef(vle),ple={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},hle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:ple}))},X6=o.forwardRef(hle),ble={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"},yle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:ble}))},xle=o.forwardRef(yle),Cle={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"},Sle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Cle}))},Va=o.forwardRef(Sle),wle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attrs:{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attrs:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]},name:"comment",theme:"outlined"},$le=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:wle}))},Y6=o.forwardRef($le),Ele={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm198.4-588.1a32 32 0 00-24.5.5L414.9 415 296.4 686c-3.6 8.2-3.6 17.5 0 25.7 3.4 7.8 9.7 13.9 17.7 17 3.8 1.5 7.7 2.2 11.7 2.2 4.4 0 8.7-.9 12.8-2.7l271-118.6 118.5-271a32.06 32.06 0 00-17.7-42.7zM576.8 534.4l26.2 26.2-42.4 42.4-26.2-26.2L380 644.4 447.5 490 422 464.4l42.4-42.4 25.5 25.5L644.4 380l-67.6 154.4zM464.4 422L422 464.4l25.5 25.6 86.9 86.8 26.2 26.2 42.4-42.4-26.2-26.2-86.8-86.9z"}}]},name:"compass",theme:"outlined"},jle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Ele}))},Ole=o.forwardRef(jle),Nle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M326 664H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V696c0-17.7-14.3-32-32-32zm16-576h-48c-8.8 0-16 7.2-16 16v176H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V104c0-8.8-7.2-16-16-16zm578 576H698c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V744h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm0-384H746V104c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16z"}}]},name:"compress",theme:"outlined"},Rle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Nle}))},ax=o.forwardRef(Rle),Ile={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z"}}]},name:"customer-service",theme:"outlined"},Mle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Ile}))},Tle=o.forwardRef(Mle),Ple={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"},kle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Ple}))},zle=o.forwardRef(kle),Dle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"},Ale=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Dle}))},_le=o.forwardRef(Ale),Ble={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 289.1a362.49 362.49 0 00-79.9-115.7 370.83 370.83 0 00-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 00169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0022.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-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 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z"}}]},name:"environment",theme:"outlined"},Lle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Ble}))},Hle=o.forwardRef(Lle),Fle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Vle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Fle}))},Ag=o.forwardRef(Vle),Wle={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"},Kle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Wle}))},Xp=o.forwardRef(Kle),Ule={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-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-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},qle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Ule}))},Yp=o.forwardRef(qle),Gle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 392h64v64h-64zm0 190v160h128V582h-64v-62h-64v62zm80 48v64h-32v-64h32zm-16-302h64v64h-64zm-64-64h64v64h-64zm64 192h64v64h-64zm0-256h64v64h-64zm494.6 88.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 562H232V136h64v64h64v-64h174v216a42 42 0 0042 42h216v494z"}}]},name:"file-zip",theme:"outlined"},Xle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Gle}))},Q6=o.forwardRef(Xle),Yle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},Qle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Yle}))},Zle=o.forwardRef(Qle),Jle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder-add",theme:"outlined"},ese=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Jle}))},ox=o.forwardRef(ese),tse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"},nse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:tse}))},rse=o.forwardRef(nse),ase={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"}}]},name:"fullscreen",theme:"outlined"},ose=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:ase}))},ise=o.forwardRef(ose),lse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M312.1 591.5c3.1 3.1 8.2 3.1 11.3 0l101.8-101.8 86.1 86.2c3.1 3.1 8.2 3.1 11.3 0l226.3-226.5c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 00-11.3 0L517 485.3l-86.1-86.2a8.03 8.03 0 00-11.3 0L275.3 543.4a8.03 8.03 0 000 11.3l36.8 36.8z"}},{tag:"path",attrs:{d:"M904 160H548V96c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H120c-17.7 0-32 14.3-32 32v520c0 17.7 14.3 32 32 32h356.4v32L311.6 884.1a7.92 7.92 0 00-2.3 11l30.3 47.2v.1c2.4 3.7 7.4 4.7 11.1 2.3L512 838.9l161.3 105.8c3.7 2.4 8.7 1.4 11.1-2.3v-.1l30.3-47.2a8 8 0 00-2.3-11L548 776.3V744h356c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 512H160V232h704v440z"}}]},name:"fund-projection-screen",theme:"outlined"},sse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:lse}))},cse=o.forwardRef(sse),use={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},dse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:use}))},fse=o.forwardRef(dse),mse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M913.9 552.2L805 181.4v-.1c-7.6-22.9-25.7-36.5-48.3-36.5-23.4 0-42.5 13.5-49.7 35.2l-71.4 213H388.8l-71.4-213c-7.2-21.7-26.3-35.2-49.7-35.2-23.1 0-42.5 14.8-48.4 36.6L110.5 552.2c-4.4 14.7 1.2 31.4 13.5 40.7l368.5 276.4c2.6 3.6 6.2 6.3 10.4 7.8l8.6 6.4 8.5-6.4c4.9-1.7 9-4.7 11.9-8.9l368.4-275.4c12.4-9.2 18-25.9 13.6-40.6zM751.7 193.4c1-1.8 2.9-1.9 3.5-1.9 1.1 0 2.5.3 3.4 3L818 394.3H684.5l67.2-200.9zm-487.4 1c.9-2.6 2.3-2.9 3.4-2.9 2.7 0 2.9.1 3.4 1.7l67.3 201.2H206.5l57.8-200zM158.8 558.7l28.2-97.3 202.4 270.2-230.6-172.9zm73.9-116.4h122.1l90.8 284.3-212.9-284.3zM512.9 776L405.7 442.3H620L512.9 776zm157.9-333.7h119.5L580 723.1l90.8-280.8zm-40.7 293.9l207.3-276.7 29.5 99.2-236.8 177.5z"}}]},name:"gitlab",theme:"outlined"},vse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:mse}))},ix=o.forwardRef(vse),gse={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"},pse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:gse}))},Pu=o.forwardRef(pse),hse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM496 208H312c-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 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 244a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"hdd",theme:"outlined"},bse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:hse}))},yse=o.forwardRef(bse),xse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},Cse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:xse}))},Sse=o.forwardRef(Cse),wse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},$se=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:wse}))},gu=o.forwardRef($se),Ese={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"},jse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Ese}))},l7=o.forwardRef(jse),Ose={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Nse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Ose}))},Mf=o.forwardRef(Nse),Rse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Ise=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Rse}))},HC=o.forwardRef(Ise),Mse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L255.8 713.6l-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l110.3 111.2c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.1 304.1 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112m161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2"}}]},name:"key",theme:"outlined"},Tse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Mse}))},Pse=o.forwardRef(Tse),kse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},zse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:kse}))},rf=o.forwardRef(zse),Dse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"}}]},name:"mail",theme:"outlined"},Ase=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Dse}))},_se=o.forwardRef(Ase),Bse={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"},Lse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Bse}))},Hse=o.forwardRef(Lse),Fse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"},Vse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Fse}))},v1=o.forwardRef(Vse),Wse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"},Kse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Wse}))},Use=o.forwardRef(Kse),qse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"}}]},name:"picture",theme:"outlined"},Gse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:qse}))},Z6=o.forwardRef(Gse),Xse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"},Yse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Xse}))},Qse=o.forwardRef(Yse),Zse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},Jse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Zse}))},Vs=o.forwardRef(Jse),ece={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-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:"project",theme:"outlined"},tce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:ece}))},Tf=o.forwardRef(tce),nce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"},rce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:nce}))},ace=o.forwardRef(rce),oce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"},ice=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:oce}))},ao=o.forwardRef(ice),lce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"},sce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:lce}))},cce=o.forwardRef(sce),uce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},dce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:uce}))},fce=o.forwardRef(dce),mce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M136 384h56c4.4 0 8-3.6 8-8V200h176c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-37.6 0-68 30.4-68 68v180c0 4.4 3.6 8 8 8zm512-184h176v176c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V196c0-37.6-30.4-68-68-68H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM376 824H200V648c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v180c0 37.6 30.4 68 68 68h180c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm512-184h-56c-4.4 0-8 3.6-8 8v176H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h180c37.6 0 68-30.4 68-68V648c0-4.4-3.6-8-8-8zm16-164H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"scan",theme:"outlined"},vce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:mce}))},J6=o.forwardRef(vce),gce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},pce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:gce}))},Qp=o.forwardRef(pce),hce={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"},bce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:hce}))},Zp=o.forwardRef(bce),yce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},xce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:yce}))},_g=o.forwardRef(xce),Cce={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"},Sce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Cce}))},e8=o.forwardRef(Sce),wce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},$ce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:wce}))},Bg=o.forwardRef($ce),Ece={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"},jce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Ece}))},s7=o.forwardRef(jce),Oce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},Nce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Oce}))},FC=o.forwardRef(Nce),Rce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"}}]},name:"undo",theme:"outlined"},Ice=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Rce}))},c7=o.forwardRef(Ice),Mce={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"},Tce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Mce}))},Pce=o.forwardRef(Tce),kce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226zM208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"video-camera",theme:"outlined"},zce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:kce}))},Dce=o.forwardRef(zce),Ace={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},_ce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Ace}))},Bce=o.forwardRef(_ce);const Lce="0.1.38",Fc={version:Lce};async function it(e,t){const n=await fetch(e,t);if(!n.ok)throw new Error((await n.json().catch(()=>({}))).error||"Something went wrong. Please try again.");return n.status===204?null:n.json()}const wr={list:()=>it("/api/launchers"),running:()=>it("/api/launchers/running"),create:e=>it("/api/launchers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>it(`/api/launchers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>it(`/api/launchers/${e}`,{method:"DELETE"}),start:e=>it(`/api/launchers/${e}/start`,{method:"POST"}),openTerminal:e=>it(`/api/launchers/${e}/open-terminal`,{method:"POST"}),run:(e,t)=>it(`/api/launchers/${e}/scripts/${t}/run`,{method:"POST"}),runInstall:e=>it(`/api/launchers/${e}/install/run`,{method:"POST"}),stop:async(e,t)=>{try{return await it(`/api/launchers/${e}/stop`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scriptId:t})})}catch{return it(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/stop`,{method:"POST"})}},logs:(e,t)=>it(`/api/launchers/${e}/scripts/${t}/logs`),errorLogs:(e,t)=>it(`/api/launchers/${e}/scripts/${t}/logs/error`),clearLogs:(e,t)=>it(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"}),packageScripts:e=>it(`/api/launchers/${e}/package-scripts`),runPackageScript:(e,t)=>it(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/run`,{method:"POST"}),packageScriptLogs:(e,t)=>it(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`),packageScriptErrorLogs:(e,t)=>it(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs/error`),clearPackageScriptLogs:(e,t)=>it(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"})},Hce={list:()=>it("/api/plugins")},$l={list:e=>it(`/api/clipboard${e?`?date=${encodeURIComponent(e)}`:""}`),tagged:()=>it("/api/clipboard/tagged"),remove:(e,t)=>it(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{method:"DELETE"}),uploadImage:e=>it("/api/clipboard/image",{method:"POST",headers:{"Content-Type":e.type||"image/png"},body:e}),updateTags:(e,t,n)=>it(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/tags`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tags:n})}),copied:(e,t)=>it(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/copied`,{method:"POST"})},Mi={list:()=>it("/api/group-tasks"),catalog:()=>it("/api/group-tasks/catalog"),create:e=>it("/api/group-tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>it(`/api/group-tasks/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>it(`/api/group-tasks/${e}`,{method:"DELETE"}),start:e=>it(`/api/group-tasks/${e}/start`,{method:"POST"}),stop:e=>it(`/api/group-tasks/${e}/stop`,{method:"POST"})},g1={list:()=>it("/api/port-diagnostics"),get:e=>it(`/api/port-diagnostics/${encodeURIComponent(e)}`),kill:(e,t)=>it("/api/port-diagnostics/kill",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({port:e,pid:t})})},u7={open:e=>it("/api/settings/open-url",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})}),openPath:(e,t="")=>it("/api/settings/open-editor",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,location:t})}),openFolder:e=>it("/api/settings/open-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})},$r={status:()=>it("/api/settings"),devConfigurations:()=>it("/api/settings/dev-configurations"),selectDirectory:()=>it("/api/settings/select-directory",{method:"POST"}),openDataDir:()=>it("/api/settings/open-data-dir",{method:"POST"}),openFolder:e=>it("/api/settings/open-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})}),saveDomain:e=>it("/api/settings/domain",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:e})}),saveJiraIssuePrefix:e=>it("/api/settings/jira-issue-prefix",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({jiraIssuePrefix:e})}),saveDefaultEditor:e=>it("/api/settings/default-editor",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultEditor:e})}),saveDefaultBrowser:e=>it("/api/settings/default-browser",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultBrowser:e})}),saveTheme:e=>it("/api/settings/theme",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({theme:e})}),saveDevConfigurations:e=>it("/api/settings/dev-configurations",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),saveAccessToken:(e,t)=>it(`/api/settings/${encodeURIComponent(e)}-access-token`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t})}),saveClipboardEnabled:e=>it("/api/settings/clipboard-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardImageEnabled:e=>it("/api/settings/clipboard-image-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardDeduplicateMinutes:e=>it("/api/settings/clipboard-deduplicate-minutes",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({minutes:e})})},Fce={status:(e=!1)=>it(`/api/updates${e?"?refresh=1":""}`)},Vce={install:e=>it("/api/settings/dev-configurations/nvm/install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({version:e})})},Kd={manage:(e,t)=>it(`/api/settings/dev-configurations/npm/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({packageName:t})}),versions:e=>it("/api/settings/dev-configurations/npm/versions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({packageName:e})})};Kd.search=e=>it("/api/settings/dev-configurations/npm/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:e})});const p1={stats:()=>it("/api/data-backup/stats"),export:async()=>{var r;const e=await fetch("/api/data-backup/export");if(!e.ok)throw new Error((await e.json().catch(()=>({}))).error||"Unable to export data backup.");const n=((r=(e.headers.get("Content-Disposition")||"").match(/filename="([^"]+)"/))==null?void 0:r[1])||"devbuddy-data-backup.tar.gz";return{blob:await e.blob(),filename:n}},import:e=>it("/api/data-backup/import",{method:"POST",headers:{"Content-Type":"application/gzip"},body:e})},af={get:()=>it("/api/presentations"),save:e=>it("/api/presentations",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({plans:e})}),setActive:e=>it("/api/presentations/active",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({plan:e})})},Av={check:e=>it("/api/pr-review/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prLink:e})}),myPrs:()=>it("/api/pr-review/my-prs"),reviewPrs:()=>it("/api/pr-review/review-prs"),comment:e=>it("/api/pr-review/comment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},Vc={list:()=>it("/api/jira-filters"),create:e=>it("/api/jira-filters",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>it(`/api/jira-filters/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>it(`/api/jira-filters/${e}`,{method:"DELETE"}),issues:e=>it(`/api/jira-filters/${e}/issues`),cloneIssue:e=>it("/api/jira-filters/issues/clone",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},ja={list:()=>it("/api/todos"),create:e=>it("/api/todos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>it(`/api/todos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>it(`/api/todos/${e}`,{method:"DELETE"}),archive:e=>it(`/api/todos/${e}/archive`,{method:"POST"}),unarchive:e=>it(`/api/todos/${e}/unarchive`,{method:"POST"}),batch:(e,t)=>it("/api/todos/batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,ids:t})})},Qc={list:()=>it("/api/static-pages"),create:e=>it("/api/static-pages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>it(`/api/static-pages/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>it(`/api/static-pages/${e}`,{method:"DELETE"})},of={list:()=>it("/api/errors"),log:e=>it("/api/errors",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),clear:()=>it("/api/errors",{method:"DELETE"}),remove:e=>it(`/api/errors/${e}`,{method:"DELETE"})},El={getData:()=>it("/api/postman"),importCollection:e=>it("/api/postman/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collectionJson:e})}),createCollection:e=>it("/api/postman/collections",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),updateCollection:(e,t)=>it(`/api/postman/collections/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),deleteCollection:e=>it(`/api/postman/collections/${e}`,{method:"DELETE"}),saveEnvironments:e=>it("/api/postman/environments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),sendRequest:e=>it("/api/postman/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},h1={status:()=>it("/api/bookmark-sync/status"),preview:e=>it(`/api/bookmark-sync/preview?mode=${encodeURIComponent(e)}`),sync:e=>it("/api/bookmark-sync/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:e})})},Ud={scan:e=>it("/api/file-organizer/scan",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),execute:e=>it("/api/file-organizer/execute",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),getHistory:()=>it("/api/file-organizer/history"),undo:e=>it("/api/file-organizer/undo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:e})}),browse:e=>it("/api/file-organizer/browse",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})},Ti={listApps:()=>it("/api/branch-sync/apps"),createApp:e=>it("/api/branch-sync/apps",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),updateApp:(e,t)=>it(`/api/branch-sync/apps/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),deleteApp:e=>it(`/api/branch-sync/apps/${e}`,{method:"DELETE"}),check:e=>it("/api/branch-sync/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({app:e})}),createPr:e=>it("/api/branch-sync/create-pr",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),createBranch:e=>it("/api/branch-sync/create-branch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),getBranches:e=>it(`/api/branch-sync/branches?repo=${encodeURIComponent(e)}`)},Wc={config:()=>it("/api/package-upgrade/config"),saveConfig:e=>it("/api/package-upgrade/config",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({workspaceDir:e})}),addRepo:e=>it("/api/package-upgrade/repos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),cloneRepo:e=>it(`/api/package-upgrade/repos/${e}/clone`,{method:"POST"}),removeRepo:e=>it(`/api/package-upgrade/repos/${e}`,{method:"DELETE"}),createTask:e=>it("/api/package-upgrade/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},Wce="modulepreload",Kce=function(e){return"/"+e},t8={},d7=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let s=function(f){return Promise.all(f.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));a=s(n.map(f=>{if(f=Kce(f),f in t8)return;t8[f]=!0;const v=f.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${g}`))return;const h=document.createElement("link");if(h.rel=v?"stylesheet":Wce,v||(h.as="script"),h.crossOrigin="",h.href=f,d&&h.setAttribute("nonce",d),document.head.appendChild(h),v)return new Promise((b,x)=>{h.addEventListener("load",b),h.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${f}`)))})}))}function l(s){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=s,window.dispatchEvent(u),!u.defaultPrevented)throw s}return a.then(s=>{for(const u of s||[])u.status==="rejected"&&l(u.reason);return t().catch(l)})};async function f7(e,t,n){const r=URL.createObjectURL(e);try{const a=await new Promise((f,v)=>{const g=new Image;g.onload=()=>f(g),g.onerror=()=>v(new Error("Unable to read this image. Please choose a valid image file.")),g.src=r}),l=document.createElement("canvas"),s=Math.max(a.naturalWidth,a.naturalHeight);let u=1;t&&(u=t/s),n!=null&&n>0&&n<=100&&(u=u*(n/100)),l.width=Math.max(1,Math.round(a.naturalWidth*u)),l.height=Math.max(1,Math.round(a.naturalHeight*u));const d=l.getContext("2d",{willReadFrequently:!0});return d.drawImage(a,0,0,l.width,l.height),{imageData:d.getImageData(0,0,l.width,l.height),width:l.width,height:l.height}}finally{URL.revokeObjectURL(r)}}async function Uce(e,t={}){const{quality:n=75,progressive:r=!0,optimizeCoding:a=!0,autoSubsample:l=!0}=t,[{encode:s},{imageData:u}]=await Promise.all([d7(()=>import("./index-Dty-56mC.js"),[]),f7(e)]),d=await s(u,{quality:n,progressive:r,optimize_coding:a,auto_subsample:l}),f=new Blob([d],{type:"image/jpeg"}),v=(e.name||"clipboard-image.png").replace(/\.[^.]+$/,"")+".jpg";return new File([f],v,{type:"image/jpeg"})}const{Paragraph:qce,Text:Gce,Title:Xce}=An;function wa({actions:e,className:t="",copyClassName:n="",description:r,descriptionClassName:a="",eyebrow:l="WORKBENCH",title:s,titleClassName:u="",titlePrefix:d,titleRowClassName:f=""}){const v=m.jsx(Xce,{className:u||void 0,level:2,children:s});return m.jsxs("header",{className:["page-header","workspace-page-header",t].filter(Boolean).join(" "),children:[m.jsxs("div",{className:n||void 0,children:[m.jsx(Gce,{className:"workspace-page-eyebrow",children:l}),d?m.jsxs("div",{className:f||void 0,children:[d,v]}):v,r?m.jsx(qce,{className:["workspace-page-description",a].filter(Boolean).join(" "),type:"secondary",children:r}):null]}),e||null]})}const n8=[{value:"chrome",label:"Google Chrome"},{value:"edge",label:"Microsoft Edge"},{value:"safari",label:"Safari"}];function Yce(e=!0){return e?n8:n8.filter(t=>t.value!=="safari")}function oa(e){e&&u7.open(e).catch(()=>{window.open(e,"_blank")})}function VC(e,t){if(!e||!t)return"";const n=e.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`https://${n.startsWith("jira.")?n:`jira.${n}`}/browse/${t.toUpperCase()}`}function Qce(e,t){if(!t)return"";if(!e)return`https://jira.example.com/issues/?filter=${encodeURIComponent(t)}`;const n=e.replace(/^https?:\/\//i,"").replace(/\/+$/,"");return`https://${n.includes("jira")||n.includes(".atlassian.net")?n:`jira.${n}`}/issues/?filter=${encodeURIComponent(t)}`}const{Text:Id}=An,Md=()=>new Intl.DateTimeFormat("en-CA").format(new Date),Zce=[{value:0,label:"No deduplication (0 min)"},{value:5,label:"5 minutes"},{value:15,label:"15 minutes"},{value:30,label:"30 minutes"},{value:60,label:"1 hour (Default)"},{value:120,label:"2 hours"},{value:360,label:"6 hours"},{value:720,label:"12 hours"},{value:1440,label:"24 hours"}];function Jce({value:e,domain:t,jiraIssuePrefix:n}){const r=[],a=/\[[^\]]+\]\(https?:\/\/[^\s)]+\)|https?:\/\/[^\s]+/g;let l=0;const s=(n||"").split(/[\s,]+/).filter(Boolean).map(f=>f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),u=s.length>0&&t?new RegExp(`\\b(?:${s.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,d=(f,v)=>{if(!u||!t)return f;const g=[];let h=0;u.lastIndex=0;for(const b of f.matchAll(u)){b.index>h&&g.push(f.slice(h,b.index));const x=b[0],S=VC(t,x);g.push(m.jsx("a",{href:S,target:"_blank",rel:"noreferrer",onClick:y=>{y.preventDefault(),oa(S)},children:x},`${v}-${b.index}`)),h=b.index+x.length}return h<f.length&&g.push(f.slice(h)),g};for(const f of e.matchAll(a)){f.index>l&&r.push(...d(e.slice(l,f.index),`txt-${f.index}`));const v=f[0].match(/^\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)$/);if(v)r.push(m.jsx("a",{href:v[2],target:"_blank",rel:"noreferrer",onClick:g=>{g.preventDefault(),oa(v[2])},children:v[1]},f.index));else{const g=f[0].replace(/[),.;:!?]+$/,"");r.push(m.jsx("a",{href:g,target:"_blank",rel:"noreferrer",onClick:h=>{h.preventDefault(),oa(g)},children:g},f.index)),f[0].length>g.length&&r.push(f[0].slice(g.length))}l=f.index+f[0].length}return l<e.length&&r.push(...d(e.slice(l),"txt-end")),r}const r8=e=>e.text||e.preview||"",a8=e=>`/api/clipboard/image/${encodeURIComponent(e)}`;function ys(e,t,n){const r=e.trim();if(!r)return!1;if(t==="account")return r.length<=20&&(/^[AT]\d+/i.test(r)||/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/i.test(r)||/\b(?:account|username|user\s*name|login|帐号|账号|用户名)\s*[:=]/i.test(r));if(t==="id")return/^[a-zA-Z0-9]+-[a-zA-Z0-9]+-[a-zA-Z0-9]+-[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$/i.test(r);if(t==="url")return/^https?:\/\/[^\s]+$/i.test(r);if(t==="json"){if(r.startsWith("{")&&r.endsWith("}")||r.startsWith("[")&&r.endsWith("]"))try{return JSON.parse(r),!0}catch{return!1}return!1}if(t==="jira"){const a=(n||"").split(/[\s,]+/).filter(Boolean).map(l=>l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return a.length>0?new RegExp(`\\b(?:${a.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"i").test(r):/\b[A-Z]{2,10}-[a-zA-Z0-9]{1,10}\b/i.test(r)}return t==="code"?/```[\s\S]*?```|\b(?:const|let|var|function|class|import|export|SELECT|INSERT|UPDATE|DELETE)\b|[{};][\s\S]*[{};]/.test(r):!0}function eue({children:e}){const t=o.useRef(null),[n,r]=o.useState(!1);return o.useEffect(()=>{const a=t.current;if(!a)return;const l=()=>{r(a.scrollTop+a.clientHeight<a.scrollHeight-1)};l(),a.addEventListener("scroll",l,{passive:!0});const s=typeof ResizeObserver<"u"?new ResizeObserver(l):null;return s==null||s.observe(a),()=>{a.removeEventListener("scroll",l),s==null||s.disconnect()}},[e]),m.jsxs("div",{className:`clipboard-preview-wrap${n?" has-more":""}`,children:[m.jsx("pre",{ref:t,className:"clipboard-preview",children:e}),m.jsx("span",{className:"clipboard-preview-fade","aria-hidden":"true"})]})}function tue(){const{message:e}=Jr.useApp(),[t,n]=o.useState(()=>{const Y=localStorage.getItem("buddy_clipboard_enabled");return Y!==null?Y==="true":!0}),[r,a]=o.useState(!0),[l,s]=o.useState([]),[u,d]=o.useState(Md()),[f,v]=o.useState([]),[g,h]=o.useState([]),[b,x]=o.useState(null),[S,y]=o.useState(""),[w,$]=o.useState("all"),[E,R]=o.useState(null),[j,N]=o.useState(""),[O,M]=o.useState(""),[I,T]=o.useState(60),[z,H]=o.useState(!1),[L,D]=o.useState(!0);o.useEffect(()=>{$r.status().then(Y=>{if(Y){if(Y.isMac!==void 0&&H(Y.isMac),Y.clipboardEnabled!==void 0){const te=Y.clipboardEnabled!==!1;n(te),localStorage.setItem("buddy_clipboard_enabled",String(te))}Y.clipboardImageEnabled!==void 0&&D(Y.clipboardImageEnabled!==!1),Y.clipboardDeduplicateMinutes!==void 0&&T(Y.clipboardDeduplicateMinutes),Y.domain&&N(Y.domain),Y.jiraIssuePrefix&&M(Y.jiraIssuePrefix)}}).catch(()=>{}).finally(()=>a(!1))},[]);const F=async Y=>{n(Y),localStorage.setItem("buddy_clipboard_enabled",String(Y));try{const se=(await $r.saveClipboardEnabled(Y)).clipboardEnabled!==!1;n(se),localStorage.setItem("buddy_clipboard_enabled",String(se)),e.success(Y?"Clipboard history enabled":"Clipboard history disabled")}catch(te){e.error(te.message)}},k=async Y=>{D(Y);try{const te=await $r.saveClipboardImageEnabled(Y);te&&te.clipboardImageEnabled!==void 0&&D(te.clipboardImageEnabled!==!1),e.success(Y?"Image clipboard monitoring enabled":"Image clipboard monitoring disabled")}catch(te){e.error(te.message)}},_=async Y=>{T(Y);try{await $r.saveClipboardDeduplicateMinutes(Y),e.success("Duplicate filter window updated.")}catch(te){e.error(te.message)}},V=async Y=>{try{const[te,se]=await Promise.all([$l.list(Y),$l.tagged().catch(()=>({items:[]}))]);s(te.dates),v(te.items),h(se.items||[])}catch(te){e.error(te.message)}},W=async(Y,te)=>{const se=(te||"").trim();if(!se)return;const ee=Y.tags||[];if(ee.includes(se)){x(null);return}const X=[...ee,se],oe=Y.date||u;try{await $l.updateTags(oe,Y.id,X),v(J=>J.map(ae=>ae.id===Y.id?{...ae,tags:X}:ae)),h(J=>J.some(Q=>Q.id===Y.id)?J.map(Q=>Q.id===Y.id?{...Q,tags:X}:Q):[{...Y,tags:X,date:oe},...J]),e.success("Tag added")}catch(J){e.error(J.message)}finally{x(null),y("")}},q=async(Y,te)=>{const ee=(Y.tags||[]).filter(oe=>oe!==te),X=Y.date||u;try{await $l.updateTags(X,Y.id,ee),v(oe=>oe.map(J=>J.id===Y.id?{...J,tags:ee}:J)),h(oe=>ee.length===0?oe.filter(J=>J.id!==Y.id):oe.map(J=>J.id===Y.id?{...J,tags:ee}:J)),e.success("Tag removed")}catch(oe){e.error(oe.message)}},B=o.useRef(Md());o.useEffect(()=>{if(!t)return;const Y=()=>{const X=Md();if(X!==B.current){const oe=B.current;if(B.current=X,u===oe)return d(X),!0}return!1};Y()||V(u);const se=()=>{Y()||V(u)};window.addEventListener("visibilitychange",se),window.addEventListener("focus",se);let ee=null;return u===Md()&&(ee=setInterval(()=>{document.visibilityState==="visible"&&V(u)},3e3)),()=>{window.removeEventListener("visibilitychange",se),window.removeEventListener("focus",se),ee&&clearInterval(ee)}},[u,t]);const K=async Y=>{try{await $l.remove(u,Y),await V(u),e.success("Clipboard entry deleted.")}catch(te){e.error(te.message)}},U=async Y=>{const te=Y.date||u;if(Y.imageFile)try{const ee=await(await fetch(a8(Y.imageFile))).blob();await navigator.clipboard.write([new ClipboardItem({[ee.type]:ee})]),$l.copied(te,Y.id).catch(()=>{}),R(Y.id),setTimeout(()=>{R(X=>X===Y.id?null:X)},1e3)}catch(se){e.error("Failed to copy image: "+se.message)}else navigator.clipboard.writeText(Y.text||Y.preview),$l.copied(te,Y.id).catch(()=>{}),R(Y.id),setTimeout(()=>{R(se=>se===Y.id?null:se)},1e3)};o.useEffect(()=>{if(!t)return;const Y=te=>{const se=document.activeElement;if(!(se&&(se.tagName==="INPUT"||se.tagName==="TEXTAREA"||se.isContentEditable))){if(te.key==="ArrowLeft"){const ee=[...new Set([...l,u])].sort(),X=ee.indexOf(u);X<ee.length-1&&X!==-1&&d(ee[X+1])}else if(te.key==="ArrowRight"){const ee=[...new Set([...l,u])].sort(),X=ee.indexOf(u);X>0&&d(ee[X-1])}}};return window.addEventListener("keydown",Y),()=>window.removeEventListener("keydown",Y)},[l,u,t]),o.useEffect(()=>{if(!t)return;const Y=async te=>{var X;const se=document.activeElement;if(se&&(se.tagName==="INPUT"||se.tagName==="TEXTAREA"||se.isContentEditable))return;const ee=(X=te.clipboardData)==null?void 0:X.items;if(ee){for(const oe of ee)if(oe.type.startsWith("image/")){const J=oe.getAsFile();if(J){try{e.loading({content:"Compressing and saving image from paste…",key:"paste-upload",duration:0});const ae=await Uce(J);await $l.uploadImage(ae);const Q=Md();d(Q),await V(Q),e.success({content:"Image pasted and saved to history!",key:"paste-upload"})}catch(ae){e.error({content:"Failed to save pasted image: "+ae.message,key:"paste-upload"})}break}}}};return window.addEventListener("paste",Y),()=>window.removeEventListener("paste",Y)},[u,t]);const G=l.reduce((Y,te)=>{var oe;const[se,ee,X]=te.split("-");return Y[se]||(Y[se]={}),(oe=Y[se])[ee]||(oe[ee]=[]),Y[se][ee].push(X),Y},{}),Z=Object.entries(G).sort(([Y],[te])=>te.localeCompare(Y)).map(([Y,te])=>({value:Y,label:Y,children:Object.entries(te).sort(([se],[ee])=>ee.localeCompare(se)).map(([se,ee])=>({value:se,label:se,children:ee.sort().reverse().map(X=>({value:X,label:X}))}))})),ne=o.useMemo(()=>w==="tagged"?g:w==="all"?f:w==="image"?f.filter(Y=>!!Y.imageFile):f.filter(Y=>!Y.imageFile&&ys(r8(Y),w,O)),[w,f,g,O]),le=o.useMemo(()=>{const Y={all:f.length,tagged:g.length,jira:0,account:0,id:0,url:0,json:0,code:0,image:0};for(const te of f)if(te.imageFile)Y.image++;else{const se=r8(te);ys(se,"jira",O)&&Y.jira++,ys(se,"account")&&Y.account++,ys(se,"id")&&Y.id++,ys(se,"url")&&Y.url++,ys(se,"json")&&Y.json++,ys(se,"code")&&Y.code++}return[{key:"all",label:`All (${Y.all})`},{key:"tagged",label:`Tagged (${Y.tagged})`},{key:"jira",label:`Jira (${Y.jira})`},{key:"account",label:`Account (${Y.account})`},{key:"id",label:`ID (${Y.id})`},{key:"url",label:`Url (${Y.url})`},{key:"json",label:`JSON (${Y.json})`},{key:"code",label:`Code (${Y.code})`},{key:"image",label:`Img (${Y.image})`}]},[f,g,O]);return m.jsxs("div",{className:"clipboard-page",children:[m.jsx(wa,{actions:m.jsxs("div",{className:"clipboard-controls",children:[m.jsxs(pt,{size:16,align:"center",children:[m.jsx(Wl,{loading:r,checked:t,onChange:F,checkedChildren:"On",unCheckedChildren:"Off"}),m.jsx(Zs,{className:"clipboard-picker",disabled:!t||r,options:Z,value:u.split("-"),onChange:Y=>(Y==null?void 0:Y.length)===3&&d(Y.join("-")),placeholder:"Select date"})]}),m.jsxs("div",{className:"clipboard-settings",children:[m.jsxs("div",{className:"clipboard-setting-row",children:[m.jsx(Id,{type:"secondary",className:"clipboard-setting-label",children:"Deduplicate filter:"}),m.jsx(Vn,{size:"small",disabled:!t||r,value:I,onChange:_,className:"clipboard-deduplicate-select",options:Zce})]}),z&&m.jsxs("div",{className:"clipboard-setting-row",children:[m.jsx(Id,{type:"secondary",className:"clipboard-setting-label",children:"Monitor image clipboard:"}),m.jsx(Wl,{size:"small",disabled:!t||r,checked:L,onChange:k,checkedChildren:"On",unCheckedChildren:"Off"})]})]})]}),description:"Saved locally and archived by date.",title:"Clipboard history"}),t?m.jsxs(m.Fragment,{children:[m.jsx(Mo,{className:"clipboard-tabs",activeKey:w,onChange:$,items:le}),ne.length?m.jsx("div",{className:"clipboard-list",children:ne.map(Y=>{const te=Y.date||u,se=`/api/clipboard/${encodeURIComponent(te)}/${encodeURIComponent(Y.id)}`,ee=new Date(Y.createdAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return m.jsxs(Xt,{size:"small",className:"clipboard-item",children:[m.jsxs("div",{children:[m.jsxs("div",{className:"clipboard-item-meta",children:[m.jsx(Id,{type:"secondary",children:ee}),Y.date&&Y.date!==u&&m.jsx(Vt,{style:{margin:0},children:Y.date}),(Y.tags||[]).map(X=>m.jsx(Vt,{color:"purple",closable:!0,onClose:oe=>{oe.preventDefault(),q(Y,X)},style:{margin:0},children:X},X)),m.jsx(Ux,{content:m.jsxs(pt.Compact,{style:{width:200},children:[m.jsx(Ht,{size:"small",placeholder:"Tag name",value:S,onChange:X=>y(X.target.value),onPressEnter:()=>W(Y,S)}),m.jsx(Ie,{size:"small",type:"primary",onClick:()=>W(Y,S),children:"Add"})]}),title:"Add Tag",trigger:"click",open:b===Y.id,onOpenChange:X=>{x(X?Y.id:null),y("")},children:m.jsxs(Vt,{style:{cursor:"pointer",borderStyle:"dashed",margin:0},children:[m.jsx(xr,{})," Tag"]})})]}),Y.imageFile?m.jsx("div",{className:"clipboard-image-wrap",children:m.jsx(dI,{src:a8(Y.imageFile),alt:"Clipboard entry",className:"clipboard-image",preview:!0,onError:()=>e.error("Unable to load clipboard image.")})}):m.jsxs(m.Fragment,{children:[m.jsx(eue,{children:m.jsx(Jce,{value:Y.preview||Y.text,domain:j,jiraIssuePrefix:O})}),Y.contentFile&&m.jsxs("span",{className:"clipboard-original",children:[m.jsx("a",{href:se,target:"_blank",rel:"noreferrer",children:"View original content"}),m.jsxs("a",{href:Y.editorUrl,children:["Open in ",Y.editorName||"editor"]})]})]})]}),m.jsxs("span",{className:"clipboard-actions",children:[m.jsx($n,{title:E===Y.id?"Copied!":"Copy",children:m.jsx(Ie,{type:"text",icon:E===Y.id?m.jsx(Wi,{style:{color:"#52c41a"}}):m.jsx(Xo,{}),onClick:()=>U(Y)})}),m.jsx($n,{title:"Delete",children:m.jsx(Ie,{type:"text",danger:!0,icon:m.jsx(hr,{}),onClick:()=>K(Y.id)})})]})]},Y.id)})}):m.jsx(wn,{description:`No ${w==="all"?"clipboard entries":`${w==="id"?"ID":w} entries`}${w==="tagged"?".":` for ${u}.`}`})]}):m.jsx(Xt,{className:"clipboard-disabled-card",children:m.jsx(wn,{image:m.jsx(_g,{style:{fontSize:48,color:"#9ca3af"}}),description:m.jsxs("div",{className:"clipboard-disabled-copy",children:[m.jsx(Id,{strong:!0,className:"clipboard-disabled-title",children:"Clipboard history is disabled"}),m.jsx(Id,{type:"secondary",children:"Turn on the switch in the top-right corner to start capturing and viewing history."})]})})}),m.jsx(Zl.BackTop,{visibilityHeight:240})]})}const m7=[{value:"vscode",label:"VS Code"},{value:"devin",label:"Devin"},{value:"idea",label:"IntelliJ IDEA"}];function v7(e="vscode"){const t=m7.find(n=>n.value===e);return t?t.label:"VS Code"}function g7(e="vscode",t="",n="",r={}){if(!t)return"";const a=typeof r=="boolean"?r:!!(r!=null&&r.newWindow);let l="",s="";if(n){const u=n.split(":").filter(Boolean);u[0]&&(l=u[0]),u[1]&&(s=u[1])}if(e==="idea"){let u=`idea://open?file=${encodeURIComponent(t)}`;return l&&(u+=`&line=${l}`),s&&(u+=`&column=${s}`),u}return e==="devin"?`devin://file${encodeURI(t)}${n}`:a?`vscode://vscode.open-folder${encodeURI(t)}?forceNewWindow=true`:`vscode://file${encodeURI(t)}${n}`}const{Text:b1}=An;function nue({tasks:e,running:t,onCreate:n,onEdit:r,onStart:a,onStop:l,onRemove:s}){const u=[{title:"Name",dataIndex:"name",render:d=>m.jsx(b1,{strong:!0,children:d})},{title:"Scripts",dataIndex:"items",width:110,render:d=>m.jsxs(b1,{type:"secondary",children:[d.length," scripts"]})},{title:"Actions",width:236,render:(d,f)=>{const v=f.items.every(g=>t.has(`${g.launcherId}:${g.scriptId}`));return m.jsxs(pt,{children:[m.jsx(Ie,{size:"small",danger:v,icon:v?m.jsx(_g,{}):m.jsx(Vs,{}),onClick:()=>v?l(f):a(f),children:v?"Stop":"Start"}),m.jsx(Ie,{size:"small",onClick:()=>r(f),children:"Edit"}),m.jsx(Ie,{size:"small",danger:!0,icon:m.jsx(hr,{}),onClick:()=>s(f),children:"Delete"})]})}}];return m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"group-task-header",children:[m.jsx(b1,{type:"secondary",children:"Start selected scripts across multiple services."}),m.jsx(Ie,{type:"primary",icon:m.jsx(xr,{}),onClick:n,children:"Add quick launch"})]}),e.length?m.jsx(Zn,{className:"group-task-table",rowKey:"id",dataSource:e,columns:u,pagination:!1,size:"small"}):m.jsx(wn,{description:"No quick launches yet.",className:"group-task-empty"})]})}function WC({open:e,initialPath:t="~",onCancel:n,onSelect:r,title:a="Browse Directory"}){const{message:l}=Jr.useApp(),[s,u]=o.useState(t),[d,f]=o.useState(null),[v,g]=o.useState(!1),h=async b=>{g(!0);try{const x=await Ud.browse(b||"~");f(x),u(x.currentPath)}catch(x){l.error(x.message||"Failed to read directory")}finally{g(!1)}};return o.useEffect(()=>{e&&h(t||"~")},[e,t]),m.jsx(On,{title:a,open:e,onCancel:n,footer:null,width:640,destroyOnClose:!0,children:m.jsxs(Xr,{spinning:v,children:[m.jsx("div",{className:"file-browser-path-row",children:m.jsx(Ht,{value:s,onChange:b=>u(b.target.value),onPressEnter:()=>h(s),addonAfter:m.jsx(Ie,{size:"small",type:"text",onClick:()=>h(s),children:"Go"})})}),d&&m.jsxs("div",{children:[m.jsx("div",{className:"file-browser-parent-row",children:m.jsx(Ie,{size:"small",onClick:()=>h(d.parentPath),disabled:d.currentPath===d.parentPath,children:"⬅ Parent Directory"})}),m.jsx("div",{className:"file-browser-list",children:d.subdirectories.length===0?m.jsx("div",{className:"file-browser-empty",children:"No subdirectories found"}):d.subdirectories.map(b=>m.jsxs("div",{className:"file-browser-item",onClick:()=>h(b.fullPath),children:[m.jsxs("span",{children:[m.jsx(qi,{className:"file-browser-icon"}),b.name]}),m.jsx(Ie,{size:"small",type:"link",onClick:x=>{x.stopPropagation(),r(b.fullPath)},children:"Select Folder"})]},b.fullPath))}),m.jsx("div",{className:"file-browser-confirm-row",children:m.jsxs(Ie,{type:"primary",onClick:()=>r(d.currentPath),children:["Confirm Path: ",d.currentPath]})})]})]})})}const{Text:xs}=An,Td=(e,t)=>`${e}:${t}`,rue=()=>m.jsx("div",{style:{width:"0.8em",height:"0.8em",backgroundColor:"rgba(0,0,0,0.88)"}});function aue({form:e,editing:t,executor:n,running:r,errorCounts:a={},packageScripts:l,onRun:s,onRunInstall:u,onRunPackage:d,onStop:f,onLogs:v,onPackageLogs:g}){const h=!!(t&&[...r].some(S=>S.startsWith(`${t.id}:`))),[b,x]=o.useState(()=>h);return o.useEffect(()=>{h&&x(!0)},[t==null?void 0:t.id]),o.useEffect(()=>{h||x(!1)},[h]),m.jsx(xt.List,{name:"scripts",children:(S,{add:y,remove:w})=>{const $=["npm","pnpm","yarn"].includes(n)?{id:"install",name:"Install",command:`${n} install${n==="npm"?" --legacy-peer-deps":""}`}:null,E=[...S.map(N=>({...N,key:`custom-${N.key}`,kind:"custom"})),...$?[{key:"install",kind:"install",script:$}]:[],...(l||[]).map(N=>({key:`package-${N.id}`,kind:"package",script:N}))],R=b?E.filter(N=>{const O=N.kind==="custom"?e.getFieldValue(["scripts",N.name]):N.script;return t&&(O==null?void 0:O.id)&&r.has(Td(t.id,O.id))}):E,j=[{title:"Source",width:100,render:(N,O)=>m.jsx(Vt,{color:O.kind==="package"?"purple":O.kind==="install"?"green":"default",children:O.kind==="package"?"Package":O.kind==="install"?"Executor":"Custom"})},{title:"Script name",width:200,render:(N,O)=>{var z;const M=O.kind==="custom"?e.getFieldValue(["scripts",O.name]):O.script,I=(M==null?void 0:M.name)===e.getFieldValue("startCommand"),T=t&&(M==null?void 0:M.id)&&r.has(Td(t.id,M.id));return m.jsxs(pt,{direction:"vertical",size:1,style:{width:"100%"},children:[O.kind!=="custom"||T?m.jsxs(pt,{size:4,children:[m.jsx(xs,{strong:!0,children:(M==null?void 0:M.name)||((z=O.script)==null?void 0:z.name)}),I&&m.jsx(ao,{className:"start-script-icon"})]}):m.jsx(xt.Item,{noStyle:!0,name:[O.name,"name"],rules:[{required:!0,message:"Required"}],children:m.jsx(Ht,{placeholder:"serve",allowClear:!0,suffix:I?m.jsx(ao,{className:"start-script-icon"}):null})}),T&&m.jsx(Ca,{status:"success",text:m.jsx(xs,{type:"secondary",style:{fontSize:11},children:"running"})})]})}},{title:"Command",render:(N,O)=>{const M=O.kind==="custom"?e.getFieldValue(["scripts",O.name]):O.script,I=t&&(M==null?void 0:M.id)&&r.has(Td(t.id,M.id));return O.kind==="package"?m.jsxs(pt,{direction:"vertical",size:0,children:[m.jsxs(xs,{code:!0,children:[n," run ",O.script.name]}),m.jsx(xs,{type:"secondary",style:{fontSize:12},children:O.script.command})]}):O.kind==="install"?m.jsx(xs,{code:!0,children:O.script.command}):I?m.jsx(xs,{code:!0,children:M==null?void 0:M.command}):m.jsx(xt.Item,{noStyle:!0,name:[O.name,"command"],rules:[{required:!0,message:"Required"}],children:m.jsx(Ht,{placeholder:"npm run dev",allowClear:!0})})}},{title:"Actions",width:132,render:(N,O)=>{const M=O.kind==="custom"?e.getFieldValue(["scripts",O.name]):O.script,I=t&&(M==null?void 0:M.id)&&r.has(Td(t.id,M.id)),T=t&&(M!=null&&M.id)&&a[Td(t.id,M.id)]||0;return m.jsxs(pt,{size:2,children:[t&&m.jsx($n,{title:I?"Stop":"Start",children:m.jsx(Ie,{type:"text",danger:I,icon:I?m.jsx(rue,{}):m.jsx(Qse,{}),onClick:()=>I?f(M):O.kind==="package"?d(M):O.kind==="install"?u(M):s(M),disabled:!(M!=null&&M.id)})}),m.jsx($n,{title:"Logs",children:m.jsx(Ca,{count:T,size:"small",offset:[-2,2],children:m.jsx(Ie,{type:"text",icon:m.jsx(Ql,{}),onClick:()=>O.kind==="package"?g(M):v(M),disabled:!t||!(M!=null&&M.id)})})}),O.kind==="custom"&&!I&&m.jsx($n,{title:"Remove",children:m.jsx(Ie,{type:"text",danger:!0,icon:m.jsx(hr,{}),onClick:()=>w(O.name)})})]})}}];return m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"script-header",children:[m.jsx(zp,{orientation:"left",children:"Scripts"}),m.jsxs(pt,{size:"middle",align:"center",children:[m.jsxs("label",{className:"script-running-filter",children:[m.jsx(Wl,{size:"small",checked:b,onChange:x,disabled:!t}),m.jsx(xs,{type:"secondary",className:"script-running-filter-label",children:"Show running only"})]}),m.jsx(Ie,{icon:m.jsx(xr,{}),onClick:()=>{x(!1),y({name:"",command:""})},children:"Add script"})]})]}),m.jsx(Zn,{size:"small",rowKey:"key",pagination:!1,loading:l===null,dataSource:R,columns:j})]})}})}const oue=e=>m.jsx("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"currentColor",style:{verticalAlign:"-0.125em",...e.style},...e,children:m.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.75 2.5a.75.75 0 01.742-.647h21.016a.75.75 0 01.742.853l-2.622 17.5a.75.75 0 01-.742.644H4.114a.75.75 0 01-.742-.644L.75 2.5zm13.1 11.2h-3.7l-.76-3.8h5.22l-.76 3.8z"})});function iue(e){if(!e)return null;const t=e.toLowerCase();return t.includes("bitbucket")?m.jsx(oue,{style:{color:"#2584FF"}}):t.includes("github")?m.jsx(fse,{style:{color:"#24292e"}}):t.includes("gitlab")?m.jsx(ix,{style:{color:"#fc6d26"}}):m.jsx(Pu,{className:"repo-generic-icon"})}function p7({repoUrl:e,style:t}){if(!e)return null;const n=iue(e);return n?m.jsx($n,{title:"Open repository in browser",children:m.jsx(Ie,{className:"repo-icon-button",type:"text",size:"small",icon:n,onClick:r=>{r.preventDefault(),r.stopPropagation(),oa(e)},style:t})}):null}const lue=()=>({alias:"",folder:"",groupName:"",executor:"npm",startCommand:void 0,scripts:[]});function sue({open:e,editing:t,groups:n,running:r,errorCounts:a={},onCancel:l,onSave:s,onRun:u,onRunInstall:d,onRunPackage:f,onStop:v,onLogs:g,onDelete:h}){const{message:b,modal:x}=Jr.useApp(),[S]=xt.useForm(),[y,w]=o.useState(null),[$,E]=o.useState(!1),R=O=>{if(O&&(S.setFieldValue("folder",O),!S.getFieldValue("alias"))){const I=O.split(/[/\\]/).filter(Boolean);I.length>0&&S.setFieldValue("alias",I[I.length-1])}E(!1)},j=()=>{x.confirm({title:"Delete Service",content:`Are you sure you want to delete service "${t==null?void 0:t.alias}"?`,okText:"Delete",okButtonProps:{type:"primary",danger:!0},cancelText:"Cancel",onOk:async()=>{try{await h(t)}catch(O){b.error(O.message)}}})};o.useEffect(()=>{e&&(S.resetFields(),S.setFieldsValue(t?{...t,startCommand:t.startCommand||void 0,scripts:t.scripts}:lue()),w(t?null:[]),t&&wr.packageScripts(t.id).then(O=>w(O.scripts)).catch(()=>w([])))},[e,t,S]);const N=async()=>{try{const O=(S.getFieldValue("scripts")||[]).filter(T=>{var z,H;return((z=T==null?void 0:T.name)==null?void 0:z.trim())||((H=T==null?void 0:T.command)==null?void 0:H.trim())});S.setFieldValue("scripts",O);const M=await S.validateFields(["alias","folder","groupName","startCommand"]),I={...S.getFieldsValue(!0),...M,scripts:O};await s(I)}catch(O){if(O!=null&&O.errorFields)return;b.error(O.message)}};return m.jsxs(On,{title:t?m.jsxs(pt,{align:"center",size:6,children:[m.jsxs("span",{children:["Service details · ",t.alias]}),m.jsx(p7,{repoUrl:t.repoUrl})]}):"Add service",open:e,onCancel:l,onOk:N,okText:t?"Save":"Save service",width:860,destroyOnClose:!0,footer:m.jsxs("div",{className:"service-modal-footer",children:[t?m.jsx(Ie,{type:"primary",danger:!0,onClick:j,children:"Delete service"}):m.jsx("div",{}),m.jsxs(pt,{children:[m.jsx(Ie,{onClick:l,children:"Cancel"}),m.jsx(Ie,{type:"primary",onClick:N,children:t?"Save":"Save service"})]})]}),children:[m.jsxs(xt,{form:S,layout:"vertical",children:[m.jsx(xg,{className:"service-config",defaultActiveKey:t?[]:["configuration"],items:[{key:"configuration",label:"Service configuration",children:m.jsxs(Wo,{gutter:[16,0],children:[m.jsx(er,{xs:24,sm:12,children:m.jsx(xt.Item,{label:"Name",name:"alias",rules:[{required:!0}],children:m.jsx(Ht,{placeholder:"Service name",allowClear:!0})})}),m.jsx(er,{xs:24,sm:12,children:m.jsx(xt.Item,{label:"Project folder",name:"folder",rules:[{required:!0}],children:m.jsx(Ht,{prefix:m.jsx(qi,{style:{color:"#8c8c8c"}}),suffix:m.jsx(Ie,{type:"text",size:"small",icon:m.jsx(qi,{}),onClick:()=>E(!0),style:{fontSize:12,padding:"0 4px"},children:"Browse"}),placeholder:"Project folder path",allowClear:!0})})}),m.jsx(er,{xs:24,sm:8,children:m.jsx(xt.Item,{label:"Group",name:"groupName",children:m.jsx(Sg,{options:n.map(O=>({value:O})),placeholder:"Group name",allowClear:!0})})}),m.jsx(er,{xs:24,sm:8,children:m.jsx(xt.Item,{label:"Executor",name:"executor",rules:[{required:!0}],children:m.jsx(Sg,{options:["npm","pnpm","yarn"].map(O=>({value:O})),placeholder:"npm",allowClear:!0})})}),m.jsx(er,{xs:24,sm:8,children:m.jsx(xt.Item,{noStyle:!0,shouldUpdate:(O,M)=>O.scripts!==M.scripts,children:()=>{const O=(S.getFieldValue("scripts")||[]).map(T=>T==null?void 0:T.name).filter(Boolean),M=(y||[]).map(T=>T.name),I=[...new Set([...O,...M])].map(T=>({label:T,value:T}));return m.jsx(xt.Item,{label:"Start script name",name:"startCommand",children:m.jsx(Vn,{placeholder:"Select start script",allowClear:!0,options:I})})}})})]})}]}),m.jsx(xt.Item,{noStyle:!0,shouldUpdate:(O,M)=>O.executor!==M.executor||O.startCommand!==M.startCommand||O.scripts!==M.scripts,children:()=>m.jsx(aue,{form:S,editing:t,executor:S.getFieldValue("executor")||"npm",running:r,errorCounts:a,packageScripts:y,onRun:O=>u(t,O),onRunInstall:()=>d(t),onRunPackage:O=>f(t,O),onStop:O=>v(t,O.id),onLogs:O=>g(t,O),onPackageLogs:O=>g(t,O,!0)})})]}),m.jsx(WC,{open:$,initialPath:S.getFieldValue("folder")||"~",onCancel:()=>E(!1),onSelect:R,title:"Select Project Directory"})]})}const{Text:cue}=An;function uue({open:e,editingGroupTask:t,groupCatalog:n,onCancel:r,onSave:a}){const{message:l}=Jr.useApp(),[s]=xt.useForm();o.useEffect(()=>{e&&(s.resetFields(),s.setFieldsValue({name:(t==null?void 0:t.name)||"",items:(t==null?void 0:t.items.map(f=>`${f.launcherId}|${f.scriptId}`))||[]}))},[e,t,s]);const u=o.useMemo(()=>Object.entries(n.reduce((f,v)=>{const g=v.groupName||"Ungrouped";return(f[g]||(f[g]=[])).push(v),f},{})).sort(([f],[v])=>f.localeCompare(v)).map(([f,v])=>({key:f,label:f,children:m.jsx("div",{className:"group-task-projects",children:v.map(g=>m.jsx(Xt,{size:"small",title:g.alias,children:m.jsx(pt,{direction:"vertical",children:g.scripts.map(h=>m.jsxs(Fr,{value:`${g.id}|${h.id}`,children:[h.name," ",m.jsxs(cue,{type:"secondary",children:["(",h.source,")"]})]},h.id))})},g.id))})})),[n]),d=async()=>{try{const f=await s.validateFields(),v={name:f.name,items:f.items.map(g=>{const[h,b]=g.split("|");return{launcherId:h,scriptId:b}})};await a(v)}catch(f){f!=null&&f.errorFields||l.error(f.message)}};return m.jsx(On,{title:t?`Edit quick launch · ${t.name}`:"Add quick launch",open:e,onCancel:r,onOk:d,okText:t?"Save changes":"Save quick launch",width:760,destroyOnClose:!0,children:m.jsxs(xt,{form:s,layout:"vertical",children:[m.jsx(xt.Item,{label:"Name",name:"name",rules:[{required:!0}],children:m.jsx(Ht,{placeholder:"Start local stack",allowClear:!0})}),m.jsx(xt.Item,{label:"Scripts",name:"items",rules:[{required:!0,message:"Select at least one script."}],children:m.jsx(Fr.Group,{className:"group-task-selector",children:m.jsx(Mo,{items:u})})})]})})}const o8={30:"ansi-black",31:"ansi-red",32:"ansi-green",33:"ansi-yellow",34:"ansi-blue",35:"ansi-magenta",36:"ansi-cyan",37:"ansi-white",90:"ansi-gray",91:"ansi-red",92:"ansi-green",93:"ansi-yellow",94:"ansi-blue",95:"ansi-magenta",96:"ansi-cyan",97:"ansi-white"};function lx({value:e,editor:t}){const[n,r]=o.useState(t||"vscode"),[a,l]=o.useState(""),[s,u]=o.useState("");o.useEffect(()=>{t&&r(t),$r.status().then(g=>{g!=null&&g.defaultEditor&&!t&&r(g.defaultEditor),g!=null&&g.domain&&l(g.domain),g!=null&&g.jiraIssuePrefix&&u(g.jiraIssuePrefix)}).catch(()=>{})},[t]);const d=(s||"").split(/[\s,]+/).filter(Boolean).map(g=>g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),f=d.length>0&&a?new RegExp(`\\b(?:${d.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,v=(g,h)=>{let b="";const x=($,E)=>$.split(/(\u001b\[[0-9;]*m)/g).map((j,N)=>{const O=j.match(/^\u001b\[([0-9;]*)m$/);if(O){const I=O[1].split(";").map(Number);return b=I.includes(0)?"":o8[I.find(T=>o8[T])]||b,null}if(!j)return null;const M=b||(/\b(error|failed|fatal|exception|TS\d{4,5})\b/i.test(j)?"log-error":/\b(warn|warning)\b/i.test(j)?"log-warning":/\b(success|ready|started|listening)\b/i.test(j)?"log-success":"");return m.jsx("span",{className:M,children:j},`${E}-${N}`)}),S=/(https?:\/\/(?:[^\s<>'"`]|\u001b\[[0-9;]*m)+|\/(?:(?:[^\s:(),;!?]|\u001b\[[0-9;]*m)+\/)*(?:[^\s:(),;!?]|\u001b\[[0-9;]*m)+(?::(?:\d+|\u001b\[[0-9;]*m)+(?::(?:\d+|\u001b\[[0-9;]*m)+)?)?)/g,y=f&&f.test(g);return!g.includes("http")&&!g.includes("/")&&!y?x(g,`${h}-0`):g.split(S).map(($,E)=>{if(!$)return null;const R=`${h}-${E}`;if(/^https?:\/\//.test($.replace(/\u001b\[[0-9;]*m/g,""))){const N=$.replace(/\u001b\[[0-9;]*m/g,""),O=N.replace(/[),.;:!?]+$/,""),M=N.slice(O.length);return m.jsxs("span",{children:[m.jsx("a",{className:"log-link",href:O,target:"_blank",rel:"noreferrer",onClick:I=>{I.preventDefault(),oa(O)},children:x($.slice(0,$.length-M.length),`${R}-url`)}),M&&x(M,`${R}-suf`)]},R)}const j=$.replace(/\u001b\[[0-9;]*m/g,"");if(j.startsWith("/")){const[,N,O=""]=j.match(/^(.*?)(:\d+(?::\d+)?)?$/)||[];if(N){const M=g7(n,N,O);return m.jsx("a",{className:"log-link",href:M,target:"_blank",rel:"noreferrer",title:`Open in ${v7(n)}`,children:x($,R)},R)}}if(f&&a&&(f.lastIndex=0,f.test(j))){const N=[];let O=0;f.lastIndex=0;for(const M of j.matchAll(f)){M.index>O&&N.push(x(j.slice(O,M.index),`${R}-sub-${M.index}`));const I=M[0],T=VC(a,I);N.push(m.jsx("a",{className:"log-link",href:T,target:"_blank",rel:"noreferrer",onClick:z=>{z.preventDefault(),oa(T)},children:I},`${R}-jira-${M.index}`)),O=M.index+I.length}return O<j.length&&N.push(x(j.slice(O),`${R}-sub-end`)),m.jsx("span",{children:N},R)}return x($,R)})};return m.jsx("div",{className:"log-output",role:"log",children:e.split(`
496
+ `]:{zIndex:10,width:r,margin:`0 ${ce(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${u}-thumbnail, ${u}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${u}-name`]:{display:"none",textAlign:"center"},[`${u}-file + ${u}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ce(l(e.paddingXS).mul(2).equal())})`},[`${u}-uploading`]:{[`&${u}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${u}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ce(l(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},sie=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},cie=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},pn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},uie=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),die=un("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,pictureCardSize:a,calc:l}=e,s=an(e,{uploadThumbnailSize:l(t).mul(2).equal(),uploadProgressOffset:l(l(n).div(2)).add(r).equal(),uploadPicCardSize:a});return[cie(s),rie(s),iie(s),lie(s),aie(s),oie(s),sie(s),_f(s)]},uie);var fie={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},mie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:fie}))},vie=o.forwardRef(mie),gie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},pie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:gie}))},hie=o.forwardRef(pie),bie={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},yie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:bie}))},xie=o.forwardRef(yie);function zv(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Dv(e,t){const n=ke(t),r=n.findIndex(({uid:a})=>a===e.uid);return r===-1?n.push(e):n[r]=e,n}function m1(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function Cie(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const Sie=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},a7=e=>e.indexOf("image/")===0,wie=e=>{if(e.type&&!e.thumbUrl)return a7(e.type);const t=e.thumbUrl||e.url||"",n=Sie(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},wl=200;function $ie(e){return new Promise(t=>{if(!e.type||!a7(e.type)){t("");return}const n=document.createElement("canvas");n.width=wl,n.height=wl,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${wl}px; height: ${wl}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:l,height:s}=a;let u=wl,d=wl,f=0,v=0;l>s?(d=s*(wl/l),v=-(d-u)/2):(u=l*(wl/s),f=-(u-d)/2),r.drawImage(a,f,v,u,d);const g=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(g)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const l=new FileReader;l.onload=()=>{l.result&&typeof l.result=="string"&&(a.src=l.result)},l.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const l=new FileReader;l.onload=()=>{l.result&&t(l.result)},l.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var Eie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 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:"download",theme:"outlined"},jie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Eie}))},rm=o.forwardRef(jie);const Oie=o.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:a,file:l,items:s,progress:u,iconRender:d,actionIconRender:f,itemRender:v,isImgUrl:g,showPreviewIcon:h,showRemoveIcon:b,showDownloadIcon:x,previewIcon:S,removeIcon:y,downloadIcon:w,extra:$,onPreview:E,onDownload:R,onClose:j},N)=>{var O,M;const{status:I}=l,[T,z]=o.useState(I);o.useEffect(()=>{I!=="removed"&&z(I)},[I]);const[H,L]=o.useState(!1);o.useEffect(()=>{const X=setTimeout(()=>{L(!0)},300);return()=>{clearTimeout(X)}},[]);const D=d(l);let F=o.createElement("div",{className:`${e}-icon`},D);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(T==="uploading"||!l.thumbUrl&&!l.url){const X=de(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:T!=="uploading"});F=o.createElement("div",{className:X},D)}else{const X=g!=null&&g(l)?o.createElement("img",{src:l.thumbUrl||l.url,alt:l.name,className:`${e}-list-item-image`,crossOrigin:l.crossOrigin}):D,oe=de(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:g&&!g(l)});F=o.createElement("a",{className:oe,onClick:J=>E(l,J),href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},X)}const k=de(`${e}-list-item`,`${e}-list-item-${T}`),_=typeof l.linkProps=="string"?JSON.parse(l.linkProps):l.linkProps,V=(typeof b=="function"?b(l):b)?f((typeof y=="function"?y(l):y)||o.createElement(hr,null),()=>j(l),e,r.removeFile,!0):null,W=(typeof x=="function"?x(l):x)&&T==="done"?f((typeof w=="function"?w(l):w)||o.createElement(rm,null),()=>R(l),e,r.downloadFile):null,q=a!=="picture-card"&&a!=="picture-circle"&&o.createElement("span",{key:"download-delete",className:de(`${e}-list-item-actions`,{picture:a==="picture"})},W,V),B=typeof $=="function"?$(l):$,K=B&&o.createElement("span",{className:`${e}-list-item-extra`},B),U=de(`${e}-list-item-name`),G=l.url?o.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:U,title:l.name},_,{href:l.url,onClick:X=>E(l,X)}),l.name,K):o.createElement("span",{key:"view",className:U,onClick:X=>E(l,X),title:l.name},l.name,K),Z=(typeof h=="function"?h(l):h)&&(l.url||l.thumbUrl)?o.createElement("a",{href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:X=>E(l,X),title:r.previewFile},typeof S=="function"?S(l):S||o.createElement(Jf,null)):null,ne=(a==="picture-card"||a==="picture-circle")&&T!=="uploading"&&o.createElement("span",{className:`${e}-list-item-actions`},Z,T==="done"&&W,V),{getPrefixCls:le}=o.useContext(Rt),Y=le(),te=o.createElement("div",{className:k},F,G,q,ne,H&&o.createElement(Zr,{motionName:`${Y}-fade`,visible:T==="uploading",motionDeadline:2e3},({className:X})=>{const oe="percent"in l?o.createElement(Fp,Object.assign({type:"line",percent:l.percent,"aria-label":l["aria-label"],"aria-labelledby":l["aria-labelledby"]},u)):null;return o.createElement("div",{className:de(`${e}-list-item-progress`,X)},oe)})),se=l.response&&typeof l.response=="string"?l.response:((O=l.error)===null||O===void 0?void 0:O.statusText)||((M=l.error)===null||M===void 0?void 0:M.message)||r.uploadError,ee=T==="error"?o.createElement($n,{title:se,getPopupContainer:X=>X.parentNode},te):te;return o.createElement("div",{className:de(`${e}-list-item-container`,t),style:n,ref:N},v?v(ee,l,s,{download:R.bind(null,l),preview:E.bind(null,l),remove:j.bind(null,l)}):ee)}),Nie=(e,t)=>{const{listType:n="text",previewFile:r=$ie,onPreview:a,onDownload:l,onRemove:s,locale:u,iconRender:d,isImageUrl:f=wie,prefixCls:v,items:g=[],showPreviewIcon:h=!0,showRemoveIcon:b=!0,showDownloadIcon:x=!1,removeIcon:S,previewIcon:y,downloadIcon:w,extra:$,progress:E={size:[-1,2],showInfo:!1},appendAction:R,appendActionVisible:j=!0,itemRender:N,disabled:O}=e,[,M]=$x(),[I,T]=o.useState(!1),z=["picture-card","picture-circle"].includes(n);o.useEffect(()=>{n.startsWith("picture")&&(g||[]).forEach(U=>{!(U.originFileObj instanceof File||U.originFileObj instanceof Blob)||U.thumbUrl!==void 0||(U.thumbUrl="",r==null||r(U.originFileObj).then(G=>{U.thumbUrl=G||"",M()}))})},[n,g,r]),o.useEffect(()=>{T(!0)},[]);const H=(U,G)=>{if(a)return G==null||G.preventDefault(),a(U)},L=U=>{typeof l=="function"?l(U):U.url&&window.open(U.url)},D=U=>{s==null||s(U)},F=U=>{if(d)return d(U,n);const G=U.status==="uploading";if(n.startsWith("picture")){const Z=n==="picture"?o.createElement(qo,null):u.uploading,ne=f!=null&&f(U)?o.createElement(xie,null):o.createElement(vie,null);return G?Z:ne}return G?o.createElement(qo,null):o.createElement(hie,null)},k=(U,G,Z,ne,le)=>{const Y={type:"text",size:"small",title:ne,onClick:te=>{var se,ee;G(),o.isValidElement(U)&&((ee=(se=U.props).onClick)===null||ee===void 0||ee.call(se,te))},className:`${Z}-list-item-action`,disabled:le?O:!1};return o.isValidElement(U)?o.createElement(Ie,Object.assign({},Y,{icon:Ir(U,Object.assign(Object.assign({},U.props),{onClick:()=>{}}))})):o.createElement(Ie,Object.assign({},Y),o.createElement("span",null,U))};o.useImperativeHandle(t,()=>({handlePreview:H,handleDownload:L}));const{getPrefixCls:_}=o.useContext(Rt),V=_("upload",v),W=_(),q=de(`${V}-list`,`${V}-list-${n}`),B=o.useMemo(()=>Rn(cu(W),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[W]),K=Object.assign(Object.assign({},z?{}:B),{motionDeadline:2e3,motionName:`${V}-${z?"animate-inline":"animate"}`,keys:ke(g.map(U=>({key:U.uid,file:U}))),motionAppear:I});return o.createElement("div",{className:q},o.createElement(Sx,Object.assign({},K,{component:!1}),({key:U,file:G,className:Z,style:ne})=>o.createElement(Oie,{key:U,locale:u,prefixCls:V,className:Z,style:ne,file:G,items:g,progress:E,listType:n,isImgUrl:f,showPreviewIcon:h,showRemoveIcon:b,showDownloadIcon:x,removeIcon:S,previewIcon:y,downloadIcon:w,extra:$,iconRender:F,actionIconRender:k,itemRender:N,onPreview:H,onDownload:L,onClose:D})),R&&o.createElement(Zr,Object.assign({},K,{visible:j,forceRender:!0}),({className:U,style:G})=>Ir(R,Z=>({className:de(Z.className,U),style:Object.assign(Object.assign(Object.assign({},G),{pointerEvents:U?"none":void 0}),Z.style)}))))},Rie=o.forwardRef(Nie);var Iie=function(e,t,n,r){function a(l){return l instanceof n?l:new n(function(s){s(l)})}return new(n||(n=Promise))(function(l,s){function u(v){try{f(r.next(v))}catch(g){s(g)}}function d(v){try{f(r.throw(v))}catch(g){s(g)}}function f(v){v.done?l(v.value):a(v.value).then(u,d)}f((r=r.apply(e,[])).next())})};const Wd=`__LIST_IGNORE_${Date.now()}__`,Mie=(e,t)=>{const n=mr("upload"),{fileList:r,defaultFileList:a,onRemove:l,showUploadList:s=!0,listType:u="text",onPreview:d,onDownload:f,onChange:v,onDrop:g,previewFile:h,disabled:b,locale:x,iconRender:S,isImageUrl:y,progress:w,prefixCls:$,className:E,type:R="select",children:j,style:N,itemRender:O,maxCount:M,data:I={},multiple:T=!1,hasControlInside:z=!0,action:H="",accept:L="",supportServerRender:D=!0,rootClassName:F}=e,k=o.useContext(Yr),_=b??k,V=e.customRequest||n.customRequest,[W,q]=yn(a||[],{value:r,postState:$e=>$e??[]}),[B,K]=o.useState("drop"),U=o.useRef(null),G=o.useRef(null);o.useMemo(()=>{const $e=Date.now();(r||[]).forEach((Ee,Pe)=>{!Ee.uid&&!Object.isFrozen(Ee)&&(Ee.uid=`__AUTO__${$e}_${Pe}__`)})},[r]);const Z=($e,Ee,Pe)=>{let Be=ke(Ee),Qe=!1;M===1?Be=Be.slice(-1):M&&(Qe=Be.length>M,Be=Be.slice(0,M)),wo.flushSync(()=>{q(Be)});const bt={file:$e,fileList:Be};Pe&&(bt.event=Pe),(!Qe||$e.status==="removed"||Be.some(qe=>qe.uid===$e.uid))&&wo.flushSync(()=>{v==null||v(bt)})},ne=($e,Ee)=>Iie(void 0,void 0,void 0,function*(){const{beforeUpload:Pe,transformFile:Be}=e;let Qe=$e;if(Pe){const bt=yield Pe($e,Ee);if(bt===!1)return!1;if(delete $e[Wd],bt===Wd)return Object.defineProperty($e,Wd,{value:!0,configurable:!0}),!1;typeof bt=="object"&&bt&&(Qe=bt)}return Be&&(Qe=yield Be(Qe)),Qe}),le=$e=>{const Ee=$e.filter(Qe=>!Qe.file[Wd]);if(!Ee.length)return;const Pe=Ee.map(Qe=>zv(Qe.file));let Be=ke(W);Pe.forEach(Qe=>{Be=Dv(Qe,Be)}),Pe.forEach((Qe,bt)=>{let qe=Qe;if(Ee[bt].parsedFile)Qe.status="uploading";else{const{originFileObj:nt}=Qe;let mt;try{mt=new File([nt],nt.name,{type:nt.type})}catch{mt=new Blob([nt],{type:nt.type}),mt.name=nt.name,mt.lastModifiedDate=new Date,mt.lastModified=new Date().getTime()}mt.uid=Qe.uid,qe=mt}Z(qe,Be)})},Y=($e,Ee,Pe)=>{try{typeof $e=="string"&&($e=JSON.parse($e))}catch{}if(!m1(Ee,W))return;const Be=zv(Ee);Be.status="done",Be.percent=100,Be.response=$e,Be.xhr=Pe;const Qe=Dv(Be,W);Z(Be,Qe)},te=($e,Ee)=>{if(!m1(Ee,W))return;const Pe=zv(Ee);Pe.status="uploading",Pe.percent=$e.percent;const Be=Dv(Pe,W);Z(Pe,Be,$e)},se=($e,Ee,Pe)=>{if(!m1(Pe,W))return;const Be=zv(Pe);Be.error=$e,Be.response=Ee,Be.status="error";const Qe=Dv(Be,W);Z(Be,Qe)},ee=$e=>{let Ee;Promise.resolve(typeof l=="function"?l($e):l).then(Pe=>{var Be;if(Pe===!1)return;const Qe=Cie($e,W);Qe&&(Ee=Object.assign(Object.assign({},$e),{status:"removed"}),W==null||W.forEach(bt=>{const qe=Ee.uid!==void 0?"uid":"name";bt[qe]===Ee[qe]&&!Object.isFrozen(bt)&&(bt.status="removed")}),(Be=U.current)===null||Be===void 0||Be.abort(Ee),Z(Ee,Qe))})},X=$e=>{K($e.type),$e.type==="drop"&&(g==null||g($e))};o.useImperativeHandle(t,()=>({onBatchStart:le,onSuccess:Y,onProgress:te,onError:se,fileList:W,upload:U.current,nativeElement:G.current}));const{getPrefixCls:oe,direction:J,upload:ae}=o.useContext(Rt),Q=oe("upload",$),me=Object.assign(Object.assign({onBatchStart:le,onError:se,onProgress:te,onSuccess:Y},e),{customRequest:V,data:I,multiple:T,action:H,accept:L,supportServerRender:D,prefixCls:Q,disabled:_,beforeUpload:ne,onChange:void 0,hasControlInside:z});delete me.className,delete me.style,(!j||_)&&delete me.id;const xe=`${Q}-wrapper`,[fe,ye,be]=die(Q,xe),[he]=ka("Upload",jo.Upload),{showRemoveIcon:Ce,showPreviewIcon:Se,showDownloadIcon:Re,removeIcon:Te,previewIcon:Ke,downloadIcon:Ve,extra:He}=typeof s=="boolean"?{}:s,Ge=typeof Ce>"u"?!_:Ce,ze=($e,Ee)=>s?o.createElement(Rie,{prefixCls:Q,listType:u,items:W,previewFile:h,onPreview:d,onDownload:f,onRemove:ee,showRemoveIcon:Ge,showPreviewIcon:Se,showDownloadIcon:Re,removeIcon:Te,previewIcon:Ke,downloadIcon:Ve,iconRender:S,extra:He,locale:Object.assign(Object.assign({},he),x),isImageUrl:y,progress:w,appendAction:$e,appendActionVisible:Ee,itemRender:O,disabled:_}):$e,je=de(xe,E,F,ye,be,ae==null?void 0:ae.className,{[`${Q}-rtl`]:J==="rtl",[`${Q}-picture-card-wrapper`]:u==="picture-card",[`${Q}-picture-circle-wrapper`]:u==="picture-circle"}),_e=Object.assign(Object.assign({},ae==null?void 0:ae.style),N);if(R==="drag"){const $e=de(ye,Q,`${Q}-drag`,{[`${Q}-drag-uploading`]:W.some(Ee=>Ee.status==="uploading"),[`${Q}-drag-hover`]:B==="dragover",[`${Q}-disabled`]:_,[`${Q}-rtl`]:J==="rtl"});return fe(o.createElement("span",{className:je,ref:G},o.createElement("div",{className:$e,style:_e,onDrop:X,onDragOver:X,onDragLeave:X},o.createElement(nx,Object.assign({},me,{ref:U,className:`${Q}-btn`}),o.createElement("div",{className:`${Q}-drag-container`},j))),ze()))}const Ne=de(Q,`${Q}-select`,{[`${Q}-disabled`]:_,[`${Q}-hidden`]:!j}),De=o.createElement("div",{className:Ne,style:_e},o.createElement(nx,Object.assign({},me,{ref:U})));return fe(u==="picture-card"||u==="picture-circle"?o.createElement("span",{className:je,ref:G},ze(De,!!j)):o.createElement("span",{className:je,ref:G},De,ze()))},o7=o.forwardRef(Mie);var Tie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Pie=o.forwardRef((e,t)=>{const{style:n,height:r,hasControlInside:a=!1,children:l}=e,s=Tie(e,["style","height","hasControlInside","children"]),u=Object.assign(Object.assign({},n),{height:r});return o.createElement(o7,Object.assign({ref:t,hasControlInside:a},s,{style:u,type:"drag"}),l)}),Gp=o7;Gp.Dragger=Pie;Gp.LIST_IGNORE=Wd;var kie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M193 796c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563zm-48.1-252.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 00-11.3 0l-39.6 39.6a8.03 8.03 0 000 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 00-11.3 0l-67.9 67.9a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM832 892H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8z"}}]},name:"alert",theme:"outlined"},zie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:kie}))},Of=o.forwardRef(zie),Die={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"},Aie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Die}))},_ie=o.forwardRef(Aie),Bie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"},Lie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Bie}))},i7=o.forwardRef(Lie),Hie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},Fie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Hie}))},Vie=o.forwardRef(Fie),Wie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Kie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Wie}))},Nf=o.forwardRef(Kie),Uie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},qie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Uie}))},Is=o.forwardRef(qie),Gie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},Xie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Gie}))},Yie=o.forwardRef(Xie),Qie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"},Zie=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Qie}))},rx=o.forwardRef(Zie),Jie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 00-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 00-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 01-63 63H232a63 63 0 01-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0022.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 00123.2-149.5A120 120 0 01836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 01308 680V412h408v268z"}}]},name:"bug",theme:"outlined"},ele=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Jie}))},Rf=o.forwardRef(ele),tle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"},nle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:tle}))},G6=o.forwardRef(nle),rle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},ale=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:rle}))},mi=o.forwardRef(ale),ole={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M433.1 657.7a31.8 31.8 0 0051.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7H642c-10.2 0-19.9 4.9-25.9 13.3L459 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H315c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8z"}},{tag:"path",attrs:{d:"M880 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:"check-square",theme:"outlined"},ile=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:ole}))},If=o.forwardRef(ile),lle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 512.3v-.3c0-229.8-186.2-416-416-416S96 282.2 96 512v.4c0 229.8 186.2 416 416 416s416-186.2 416-416v-.3.2zm-6.7-74.6l.6 3.3-.6-3.3zM676.7 638.2c53.5-82.2 52.5-189.4-11.1-263.7l162.4-8.4c20.5 44.4 32 93.8 32 145.9 0 185.2-144.6 336.6-327.1 347.4l143.8-221.2zM512 652.3c-77.5 0-140.2-62.7-140.2-140.2 0-77.7 62.7-140.2 140.2-140.2S652.2 434.5 652.2 512 589.5 652.3 512 652.3zm369.2-331.7l-3-5.7 3 5.7zM512 164c121.3 0 228.2 62.1 290.4 156.2l-263.6-13.9c-97.5-5.7-190.2 49.2-222.3 141.1L227.8 311c63.1-88.9 166.9-147 284.2-147zM102.5 585.8c26 145 127.1 264 261.6 315.1C229.6 850 128.5 731 102.5 585.8zM164 512c0-55.9 13.2-108.7 36.6-155.5l119.7 235.4c44.1 86.7 137.4 139.7 234 121.6l-74 145.1C302.9 842.5 164 693.5 164 512zm324.7 415.4c4 .2 8 .4 12 .5-4-.2-8-.3-12-.5z"}}]},name:"chrome",theme:"outlined"},sle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:lle}))},cle=o.forwardRef(sle),ule={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},dle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:ule}))},fle=o.forwardRef(dle),mle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm176.5 585.7l-28.6 39a7.99 7.99 0 01-11.2 1.7L483.3 569.8a7.92 7.92 0 01-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z"}}]},name:"clock-circle",theme:"filled"},vle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:mle}))},gle=o.forwardRef(vle),ple={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},hle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:ple}))},X6=o.forwardRef(hle),ble={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"},yle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:ble}))},xle=o.forwardRef(yle),Cle={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"},Sle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Cle}))},Va=o.forwardRef(Sle),wle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attrs:{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attrs:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]},name:"comment",theme:"outlined"},$le=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:wle}))},Y6=o.forwardRef($le),Ele={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm198.4-588.1a32 32 0 00-24.5.5L414.9 415 296.4 686c-3.6 8.2-3.6 17.5 0 25.7 3.4 7.8 9.7 13.9 17.7 17 3.8 1.5 7.7 2.2 11.7 2.2 4.4 0 8.7-.9 12.8-2.7l271-118.6 118.5-271a32.06 32.06 0 00-17.7-42.7zM576.8 534.4l26.2 26.2-42.4 42.4-26.2-26.2L380 644.4 447.5 490 422 464.4l42.4-42.4 25.5 25.5L644.4 380l-67.6 154.4zM464.4 422L422 464.4l25.5 25.6 86.9 86.8 26.2 26.2 42.4-42.4-26.2-26.2-86.8-86.9z"}}]},name:"compass",theme:"outlined"},jle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Ele}))},Ole=o.forwardRef(jle),Nle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M326 664H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V696c0-17.7-14.3-32-32-32zm16-576h-48c-8.8 0-16 7.2-16 16v176H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V104c0-8.8-7.2-16-16-16zm578 576H698c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V744h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm0-384H746V104c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16z"}}]},name:"compress",theme:"outlined"},Rle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Nle}))},ax=o.forwardRef(Rle),Ile={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z"}}]},name:"customer-service",theme:"outlined"},Mle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Ile}))},Tle=o.forwardRef(Mle),Ple={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"},kle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Ple}))},zle=o.forwardRef(kle),Dle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"},Ale=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Dle}))},_le=o.forwardRef(Ale),Ble={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 289.1a362.49 362.49 0 00-79.9-115.7 370.83 370.83 0 00-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 00169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0022.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-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 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z"}}]},name:"environment",theme:"outlined"},Lle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Ble}))},Hle=o.forwardRef(Lle),Fle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Vle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Fle}))},Ag=o.forwardRef(Vle),Wle={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"},Kle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Wle}))},Xp=o.forwardRef(Kle),Ule={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-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-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},qle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Ule}))},Yp=o.forwardRef(qle),Gle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 392h64v64h-64zm0 190v160h128V582h-64v-62h-64v62zm80 48v64h-32v-64h32zm-16-302h64v64h-64zm-64-64h64v64h-64zm64 192h64v64h-64zm0-256h64v64h-64zm494.6 88.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 562H232V136h64v64h64v-64h174v216a42 42 0 0042 42h216v494z"}}]},name:"file-zip",theme:"outlined"},Xle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Gle}))},Q6=o.forwardRef(Xle),Yle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},Qle=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Yle}))},Zle=o.forwardRef(Qle),Jle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder-add",theme:"outlined"},ese=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Jle}))},ox=o.forwardRef(ese),tse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"},nse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:tse}))},rse=o.forwardRef(nse),ase={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"}}]},name:"fullscreen",theme:"outlined"},ose=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:ase}))},ise=o.forwardRef(ose),lse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M312.1 591.5c3.1 3.1 8.2 3.1 11.3 0l101.8-101.8 86.1 86.2c3.1 3.1 8.2 3.1 11.3 0l226.3-226.5c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 00-11.3 0L517 485.3l-86.1-86.2a8.03 8.03 0 00-11.3 0L275.3 543.4a8.03 8.03 0 000 11.3l36.8 36.8z"}},{tag:"path",attrs:{d:"M904 160H548V96c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H120c-17.7 0-32 14.3-32 32v520c0 17.7 14.3 32 32 32h356.4v32L311.6 884.1a7.92 7.92 0 00-2.3 11l30.3 47.2v.1c2.4 3.7 7.4 4.7 11.1 2.3L512 838.9l161.3 105.8c3.7 2.4 8.7 1.4 11.1-2.3v-.1l30.3-47.2a8 8 0 00-2.3-11L548 776.3V744h356c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 512H160V232h704v440z"}}]},name:"fund-projection-screen",theme:"outlined"},sse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:lse}))},cse=o.forwardRef(sse),use={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},dse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:use}))},fse=o.forwardRef(dse),mse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M913.9 552.2L805 181.4v-.1c-7.6-22.9-25.7-36.5-48.3-36.5-23.4 0-42.5 13.5-49.7 35.2l-71.4 213H388.8l-71.4-213c-7.2-21.7-26.3-35.2-49.7-35.2-23.1 0-42.5 14.8-48.4 36.6L110.5 552.2c-4.4 14.7 1.2 31.4 13.5 40.7l368.5 276.4c2.6 3.6 6.2 6.3 10.4 7.8l8.6 6.4 8.5-6.4c4.9-1.7 9-4.7 11.9-8.9l368.4-275.4c12.4-9.2 18-25.9 13.6-40.6zM751.7 193.4c1-1.8 2.9-1.9 3.5-1.9 1.1 0 2.5.3 3.4 3L818 394.3H684.5l67.2-200.9zm-487.4 1c.9-2.6 2.3-2.9 3.4-2.9 2.7 0 2.9.1 3.4 1.7l67.3 201.2H206.5l57.8-200zM158.8 558.7l28.2-97.3 202.4 270.2-230.6-172.9zm73.9-116.4h122.1l90.8 284.3-212.9-284.3zM512.9 776L405.7 442.3H620L512.9 776zm157.9-333.7h119.5L580 723.1l90.8-280.8zm-40.7 293.9l207.3-276.7 29.5 99.2-236.8 177.5z"}}]},name:"gitlab",theme:"outlined"},vse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:mse}))},ix=o.forwardRef(vse),gse={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"},pse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:gse}))},Pu=o.forwardRef(pse),hse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM496 208H312c-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 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 244a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"hdd",theme:"outlined"},bse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:hse}))},yse=o.forwardRef(bse),xse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},Cse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:xse}))},Sse=o.forwardRef(Cse),wse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},$se=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:wse}))},gu=o.forwardRef($se),Ese={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"},jse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Ese}))},l7=o.forwardRef(jse),Ose={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Nse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Ose}))},Mf=o.forwardRef(Nse),Rse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Ise=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Rse}))},HC=o.forwardRef(Ise),Mse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L255.8 713.6l-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l110.3 111.2c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.1 304.1 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112m161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2"}}]},name:"key",theme:"outlined"},Tse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Mse}))},Pse=o.forwardRef(Tse),kse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},zse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:kse}))},rf=o.forwardRef(zse),Dse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"}}]},name:"mail",theme:"outlined"},Ase=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Dse}))},_se=o.forwardRef(Ase),Bse={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"},Lse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Bse}))},Hse=o.forwardRef(Lse),Fse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"},Vse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Fse}))},v1=o.forwardRef(Vse),Wse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"},Kse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Wse}))},Use=o.forwardRef(Kse),qse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"}}]},name:"picture",theme:"outlined"},Gse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:qse}))},Z6=o.forwardRef(Gse),Xse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"},Yse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Xse}))},Qse=o.forwardRef(Yse),Zse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},Jse=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Zse}))},Vs=o.forwardRef(Jse),ece={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-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:"project",theme:"outlined"},tce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:ece}))},Tf=o.forwardRef(tce),nce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"},rce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:nce}))},ace=o.forwardRef(rce),oce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"},ice=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:oce}))},ao=o.forwardRef(ice),lce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"},sce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:lce}))},cce=o.forwardRef(sce),uce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},dce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:uce}))},fce=o.forwardRef(dce),mce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M136 384h56c4.4 0 8-3.6 8-8V200h176c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-37.6 0-68 30.4-68 68v180c0 4.4 3.6 8 8 8zm512-184h176v176c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V196c0-37.6-30.4-68-68-68H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM376 824H200V648c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v180c0 37.6 30.4 68 68 68h180c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm512-184h-56c-4.4 0-8 3.6-8 8v176H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h180c37.6 0 68-30.4 68-68V648c0-4.4-3.6-8-8-8zm16-164H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"scan",theme:"outlined"},vce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:mce}))},J6=o.forwardRef(vce),gce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},pce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:gce}))},Qp=o.forwardRef(pce),hce={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"},bce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:hce}))},Zp=o.forwardRef(bce),yce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},xce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:yce}))},_g=o.forwardRef(xce),Cce={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"},Sce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Cce}))},e8=o.forwardRef(Sce),wce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},$ce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:wce}))},Bg=o.forwardRef($ce),Ece={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"},jce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Ece}))},s7=o.forwardRef(jce),Oce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},Nce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Oce}))},FC=o.forwardRef(Nce),Rce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"}}]},name:"undo",theme:"outlined"},Ice=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Rce}))},c7=o.forwardRef(Ice),Mce={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"},Tce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Mce}))},Pce=o.forwardRef(Tce),kce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226zM208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"video-camera",theme:"outlined"},zce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:kce}))},Dce=o.forwardRef(zce),Ace={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},_ce=function(t,n){return o.createElement(rt,we({},t,{ref:n,icon:Ace}))},Bce=o.forwardRef(_ce);const Lce="0.1.39",Fc={version:Lce};async function it(e,t){const n=await fetch(e,t);if(!n.ok)throw new Error((await n.json().catch(()=>({}))).error||"Something went wrong. Please try again.");return n.status===204?null:n.json()}const wr={list:()=>it("/api/launchers"),running:()=>it("/api/launchers/running"),create:e=>it("/api/launchers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>it(`/api/launchers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>it(`/api/launchers/${e}`,{method:"DELETE"}),start:e=>it(`/api/launchers/${e}/start`,{method:"POST"}),openTerminal:e=>it(`/api/launchers/${e}/open-terminal`,{method:"POST"}),run:(e,t)=>it(`/api/launchers/${e}/scripts/${t}/run`,{method:"POST"}),runInstall:e=>it(`/api/launchers/${e}/install/run`,{method:"POST"}),stop:async(e,t)=>{try{return await it(`/api/launchers/${e}/stop`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scriptId:t})})}catch{return it(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/stop`,{method:"POST"})}},logs:(e,t)=>it(`/api/launchers/${e}/scripts/${t}/logs`),errorLogs:(e,t)=>it(`/api/launchers/${e}/scripts/${t}/logs/error`),clearLogs:(e,t)=>it(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"}),packageScripts:e=>it(`/api/launchers/${e}/package-scripts`),runPackageScript:(e,t)=>it(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/run`,{method:"POST"}),packageScriptLogs:(e,t)=>it(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`),packageScriptErrorLogs:(e,t)=>it(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs/error`),clearPackageScriptLogs:(e,t)=>it(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"})},Hce={list:()=>it("/api/plugins")},$l={list:e=>it(`/api/clipboard${e?`?date=${encodeURIComponent(e)}`:""}`),tagged:()=>it("/api/clipboard/tagged"),remove:(e,t)=>it(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{method:"DELETE"}),uploadImage:e=>it("/api/clipboard/image",{method:"POST",headers:{"Content-Type":e.type||"image/png"},body:e}),updateTags:(e,t,n)=>it(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/tags`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tags:n})}),copied:(e,t)=>it(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/copied`,{method:"POST"})},Mi={list:()=>it("/api/group-tasks"),catalog:()=>it("/api/group-tasks/catalog"),create:e=>it("/api/group-tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>it(`/api/group-tasks/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>it(`/api/group-tasks/${e}`,{method:"DELETE"}),start:e=>it(`/api/group-tasks/${e}/start`,{method:"POST"}),stop:e=>it(`/api/group-tasks/${e}/stop`,{method:"POST"})},g1={list:()=>it("/api/port-diagnostics"),get:e=>it(`/api/port-diagnostics/${encodeURIComponent(e)}`),kill:(e,t)=>it("/api/port-diagnostics/kill",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({port:e,pid:t})})},u7={open:e=>it("/api/settings/open-url",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})}),openPath:(e,t="")=>it("/api/settings/open-editor",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,location:t})}),openFolder:e=>it("/api/settings/open-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})},$r={status:()=>it("/api/settings"),devConfigurations:()=>it("/api/settings/dev-configurations"),selectDirectory:()=>it("/api/settings/select-directory",{method:"POST"}),openDataDir:()=>it("/api/settings/open-data-dir",{method:"POST"}),openFolder:e=>it("/api/settings/open-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})}),saveDomain:e=>it("/api/settings/domain",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:e})}),saveJiraIssuePrefix:e=>it("/api/settings/jira-issue-prefix",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({jiraIssuePrefix:e})}),saveDefaultEditor:e=>it("/api/settings/default-editor",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultEditor:e})}),saveDefaultBrowser:e=>it("/api/settings/default-browser",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultBrowser:e})}),saveTheme:e=>it("/api/settings/theme",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({theme:e})}),saveDevConfigurations:e=>it("/api/settings/dev-configurations",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),saveAccessToken:(e,t)=>it(`/api/settings/${encodeURIComponent(e)}-access-token`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t})}),saveClipboardEnabled:e=>it("/api/settings/clipboard-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardImageEnabled:e=>it("/api/settings/clipboard-image-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardDeduplicateMinutes:e=>it("/api/settings/clipboard-deduplicate-minutes",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({minutes:e})})},Fce={status:(e=!1)=>it(`/api/updates${e?"?refresh=1":""}`)},Vce={install:e=>it("/api/settings/dev-configurations/nvm/install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({version:e})})},Kd={manage:(e,t)=>it(`/api/settings/dev-configurations/npm/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({packageName:t})}),versions:e=>it("/api/settings/dev-configurations/npm/versions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({packageName:e})})};Kd.search=e=>it("/api/settings/dev-configurations/npm/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:e})});const p1={stats:()=>it("/api/data-backup/stats"),export:async()=>{var r;const e=await fetch("/api/data-backup/export");if(!e.ok)throw new Error((await e.json().catch(()=>({}))).error||"Unable to export data backup.");const n=((r=(e.headers.get("Content-Disposition")||"").match(/filename="([^"]+)"/))==null?void 0:r[1])||"devbuddy-data-backup.tar.gz";return{blob:await e.blob(),filename:n}},import:e=>it("/api/data-backup/import",{method:"POST",headers:{"Content-Type":"application/gzip"},body:e})},af={get:()=>it("/api/presentations"),save:e=>it("/api/presentations",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({plans:e})}),setActive:e=>it("/api/presentations/active",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({plan:e})})},Av={check:e=>it("/api/pr-review/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prLink:e})}),myPrs:()=>it("/api/pr-review/my-prs"),reviewPrs:()=>it("/api/pr-review/review-prs"),comment:e=>it("/api/pr-review/comment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},Vc={list:()=>it("/api/jira-filters"),create:e=>it("/api/jira-filters",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>it(`/api/jira-filters/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>it(`/api/jira-filters/${e}`,{method:"DELETE"}),issues:e=>it(`/api/jira-filters/${e}/issues`),cloneIssue:e=>it("/api/jira-filters/issues/clone",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},ja={list:()=>it("/api/todos"),create:e=>it("/api/todos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>it(`/api/todos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>it(`/api/todos/${e}`,{method:"DELETE"}),archive:e=>it(`/api/todos/${e}/archive`,{method:"POST"}),unarchive:e=>it(`/api/todos/${e}/unarchive`,{method:"POST"}),batch:(e,t)=>it("/api/todos/batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,ids:t})})},Qc={list:()=>it("/api/static-pages"),create:e=>it("/api/static-pages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>it(`/api/static-pages/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>it(`/api/static-pages/${e}`,{method:"DELETE"})},of={list:()=>it("/api/errors"),log:e=>it("/api/errors",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),clear:()=>it("/api/errors",{method:"DELETE"}),remove:e=>it(`/api/errors/${e}`,{method:"DELETE"})},El={getData:()=>it("/api/postman"),importCollection:e=>it("/api/postman/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collectionJson:e})}),createCollection:e=>it("/api/postman/collections",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),updateCollection:(e,t)=>it(`/api/postman/collections/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),deleteCollection:e=>it(`/api/postman/collections/${e}`,{method:"DELETE"}),saveEnvironments:e=>it("/api/postman/environments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),sendRequest:e=>it("/api/postman/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},h1={status:()=>it("/api/bookmark-sync/status"),preview:e=>it(`/api/bookmark-sync/preview?mode=${encodeURIComponent(e)}`),sync:e=>it("/api/bookmark-sync/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:e})})},Ud={scan:e=>it("/api/file-organizer/scan",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),execute:e=>it("/api/file-organizer/execute",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),getHistory:()=>it("/api/file-organizer/history"),undo:e=>it("/api/file-organizer/undo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:e})}),browse:e=>it("/api/file-organizer/browse",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})},Ti={listApps:()=>it("/api/branch-sync/apps"),createApp:e=>it("/api/branch-sync/apps",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),updateApp:(e,t)=>it(`/api/branch-sync/apps/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),deleteApp:e=>it(`/api/branch-sync/apps/${e}`,{method:"DELETE"}),check:e=>it("/api/branch-sync/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({app:e})}),createPr:e=>it("/api/branch-sync/create-pr",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),createBranch:e=>it("/api/branch-sync/create-branch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),getBranches:e=>it(`/api/branch-sync/branches?repo=${encodeURIComponent(e)}`)},Wc={config:()=>it("/api/package-upgrade/config"),saveConfig:e=>it("/api/package-upgrade/config",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({workspaceDir:e})}),addRepo:e=>it("/api/package-upgrade/repos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),cloneRepo:e=>it(`/api/package-upgrade/repos/${e}/clone`,{method:"POST"}),removeRepo:e=>it(`/api/package-upgrade/repos/${e}`,{method:"DELETE"}),createTask:e=>it("/api/package-upgrade/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},Wce="modulepreload",Kce=function(e){return"/"+e},t8={},d7=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let s=function(f){return Promise.all(f.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));a=s(n.map(f=>{if(f=Kce(f),f in t8)return;t8[f]=!0;const v=f.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${g}`))return;const h=document.createElement("link");if(h.rel=v?"stylesheet":Wce,v||(h.as="script"),h.crossOrigin="",h.href=f,d&&h.setAttribute("nonce",d),document.head.appendChild(h),v)return new Promise((b,x)=>{h.addEventListener("load",b),h.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${f}`)))})}))}function l(s){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=s,window.dispatchEvent(u),!u.defaultPrevented)throw s}return a.then(s=>{for(const u of s||[])u.status==="rejected"&&l(u.reason);return t().catch(l)})};async function f7(e,t,n){const r=URL.createObjectURL(e);try{const a=await new Promise((f,v)=>{const g=new Image;g.onload=()=>f(g),g.onerror=()=>v(new Error("Unable to read this image. Please choose a valid image file.")),g.src=r}),l=document.createElement("canvas"),s=Math.max(a.naturalWidth,a.naturalHeight);let u=1;t&&(u=t/s),n!=null&&n>0&&n<=100&&(u=u*(n/100)),l.width=Math.max(1,Math.round(a.naturalWidth*u)),l.height=Math.max(1,Math.round(a.naturalHeight*u));const d=l.getContext("2d",{willReadFrequently:!0});return d.drawImage(a,0,0,l.width,l.height),{imageData:d.getImageData(0,0,l.width,l.height),width:l.width,height:l.height}}finally{URL.revokeObjectURL(r)}}async function Uce(e,t={}){const{quality:n=75,progressive:r=!0,optimizeCoding:a=!0,autoSubsample:l=!0}=t,[{encode:s},{imageData:u}]=await Promise.all([d7(()=>import("./index-Dty-56mC.js"),[]),f7(e)]),d=await s(u,{quality:n,progressive:r,optimize_coding:a,auto_subsample:l}),f=new Blob([d],{type:"image/jpeg"}),v=(e.name||"clipboard-image.png").replace(/\.[^.]+$/,"")+".jpg";return new File([f],v,{type:"image/jpeg"})}const{Paragraph:qce,Text:Gce,Title:Xce}=An;function wa({actions:e,className:t="",copyClassName:n="",description:r,descriptionClassName:a="",eyebrow:l="WORKBENCH",title:s,titleClassName:u="",titlePrefix:d,titleRowClassName:f=""}){const v=m.jsx(Xce,{className:u||void 0,level:2,children:s});return m.jsxs("header",{className:["page-header","workspace-page-header",t].filter(Boolean).join(" "),children:[m.jsxs("div",{className:n||void 0,children:[m.jsx(Gce,{className:"workspace-page-eyebrow",children:l}),d?m.jsxs("div",{className:f||void 0,children:[d,v]}):v,r?m.jsx(qce,{className:["workspace-page-description",a].filter(Boolean).join(" "),type:"secondary",children:r}):null]}),e||null]})}const n8=[{value:"chrome",label:"Google Chrome"},{value:"edge",label:"Microsoft Edge"},{value:"safari",label:"Safari"}];function Yce(e=!0){return e?n8:n8.filter(t=>t.value!=="safari")}function oa(e){e&&u7.open(e).catch(()=>{window.open(e,"_blank")})}function VC(e,t){if(!e||!t)return"";const n=e.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`https://${n.startsWith("jira.")?n:`jira.${n}`}/browse/${t.toUpperCase()}`}function Qce(e,t){if(!t)return"";if(!e)return`https://jira.example.com/issues/?filter=${encodeURIComponent(t)}`;const n=e.replace(/^https?:\/\//i,"").replace(/\/+$/,"");return`https://${n.includes("jira")||n.includes(".atlassian.net")?n:`jira.${n}`}/issues/?filter=${encodeURIComponent(t)}`}const{Text:Id}=An,Md=()=>new Intl.DateTimeFormat("en-CA").format(new Date),Zce=[{value:0,label:"No deduplication (0 min)"},{value:5,label:"5 minutes"},{value:15,label:"15 minutes"},{value:30,label:"30 minutes"},{value:60,label:"1 hour (Default)"},{value:120,label:"2 hours"},{value:360,label:"6 hours"},{value:720,label:"12 hours"},{value:1440,label:"24 hours"}];function Jce({value:e,domain:t,jiraIssuePrefix:n}){const r=[],a=/\[[^\]]+\]\(https?:\/\/[^\s)]+\)|https?:\/\/[^\s]+/g;let l=0;const s=(n||"").split(/[\s,]+/).filter(Boolean).map(f=>f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),u=s.length>0&&t?new RegExp(`\\b(?:${s.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,d=(f,v)=>{if(!u||!t)return f;const g=[];let h=0;u.lastIndex=0;for(const b of f.matchAll(u)){b.index>h&&g.push(f.slice(h,b.index));const x=b[0],S=VC(t,x);g.push(m.jsx("a",{href:S,target:"_blank",rel:"noreferrer",onClick:y=>{y.preventDefault(),oa(S)},children:x},`${v}-${b.index}`)),h=b.index+x.length}return h<f.length&&g.push(f.slice(h)),g};for(const f of e.matchAll(a)){f.index>l&&r.push(...d(e.slice(l,f.index),`txt-${f.index}`));const v=f[0].match(/^\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)$/);if(v)r.push(m.jsx("a",{href:v[2],target:"_blank",rel:"noreferrer",onClick:g=>{g.preventDefault(),oa(v[2])},children:v[1]},f.index));else{const g=f[0].replace(/[),.;:!?]+$/,"");r.push(m.jsx("a",{href:g,target:"_blank",rel:"noreferrer",onClick:h=>{h.preventDefault(),oa(g)},children:g},f.index)),f[0].length>g.length&&r.push(f[0].slice(g.length))}l=f.index+f[0].length}return l<e.length&&r.push(...d(e.slice(l),"txt-end")),r}const r8=e=>e.text||e.preview||"",a8=e=>`/api/clipboard/image/${encodeURIComponent(e)}`;function ys(e,t,n){const r=e.trim();if(!r)return!1;if(t==="account")return r.length<=20&&(/^[AT]\d+/i.test(r)||/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/i.test(r)||/\b(?:account|username|user\s*name|login|帐号|账号|用户名)\s*[:=]/i.test(r));if(t==="id")return/^[a-zA-Z0-9]+-[a-zA-Z0-9]+-[a-zA-Z0-9]+-[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$/i.test(r);if(t==="url")return/^https?:\/\/[^\s]+$/i.test(r);if(t==="json"){if(r.startsWith("{")&&r.endsWith("}")||r.startsWith("[")&&r.endsWith("]"))try{return JSON.parse(r),!0}catch{return!1}return!1}if(t==="jira"){const a=(n||"").split(/[\s,]+/).filter(Boolean).map(l=>l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return a.length>0?new RegExp(`\\b(?:${a.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"i").test(r):/\b[A-Z]{2,10}-[a-zA-Z0-9]{1,10}\b/i.test(r)}return t==="code"?/```[\s\S]*?```|\b(?:const|let|var|function|class|import|export|SELECT|INSERT|UPDATE|DELETE)\b|[{};][\s\S]*[{};]/.test(r):!0}function eue({children:e}){const t=o.useRef(null),[n,r]=o.useState(!1);return o.useEffect(()=>{const a=t.current;if(!a)return;const l=()=>{r(a.scrollTop+a.clientHeight<a.scrollHeight-1)};l(),a.addEventListener("scroll",l,{passive:!0});const s=typeof ResizeObserver<"u"?new ResizeObserver(l):null;return s==null||s.observe(a),()=>{a.removeEventListener("scroll",l),s==null||s.disconnect()}},[e]),m.jsxs("div",{className:`clipboard-preview-wrap${n?" has-more":""}`,children:[m.jsx("pre",{ref:t,className:"clipboard-preview",children:e}),m.jsx("span",{className:"clipboard-preview-fade","aria-hidden":"true"})]})}function tue(){const{message:e}=Jr.useApp(),[t,n]=o.useState(()=>{const Y=localStorage.getItem("buddy_clipboard_enabled");return Y!==null?Y==="true":!0}),[r,a]=o.useState(!0),[l,s]=o.useState([]),[u,d]=o.useState(Md()),[f,v]=o.useState([]),[g,h]=o.useState([]),[b,x]=o.useState(null),[S,y]=o.useState(""),[w,$]=o.useState("all"),[E,R]=o.useState(null),[j,N]=o.useState(""),[O,M]=o.useState(""),[I,T]=o.useState(60),[z,H]=o.useState(!1),[L,D]=o.useState(!0);o.useEffect(()=>{$r.status().then(Y=>{if(Y){if(Y.isMac!==void 0&&H(Y.isMac),Y.clipboardEnabled!==void 0){const te=Y.clipboardEnabled!==!1;n(te),localStorage.setItem("buddy_clipboard_enabled",String(te))}Y.clipboardImageEnabled!==void 0&&D(Y.clipboardImageEnabled!==!1),Y.clipboardDeduplicateMinutes!==void 0&&T(Y.clipboardDeduplicateMinutes),Y.domain&&N(Y.domain),Y.jiraIssuePrefix&&M(Y.jiraIssuePrefix)}}).catch(()=>{}).finally(()=>a(!1))},[]);const F=async Y=>{n(Y),localStorage.setItem("buddy_clipboard_enabled",String(Y));try{const se=(await $r.saveClipboardEnabled(Y)).clipboardEnabled!==!1;n(se),localStorage.setItem("buddy_clipboard_enabled",String(se)),e.success(Y?"Clipboard history enabled":"Clipboard history disabled")}catch(te){e.error(te.message)}},k=async Y=>{D(Y);try{const te=await $r.saveClipboardImageEnabled(Y);te&&te.clipboardImageEnabled!==void 0&&D(te.clipboardImageEnabled!==!1),e.success(Y?"Image clipboard monitoring enabled":"Image clipboard monitoring disabled")}catch(te){e.error(te.message)}},_=async Y=>{T(Y);try{await $r.saveClipboardDeduplicateMinutes(Y),e.success("Duplicate filter window updated.")}catch(te){e.error(te.message)}},V=async Y=>{try{const[te,se]=await Promise.all([$l.list(Y),$l.tagged().catch(()=>({items:[]}))]);s(te.dates),v(te.items),h(se.items||[])}catch(te){e.error(te.message)}},W=async(Y,te)=>{const se=(te||"").trim();if(!se)return;const ee=Y.tags||[];if(ee.includes(se)){x(null);return}const X=[...ee,se],oe=Y.date||u;try{await $l.updateTags(oe,Y.id,X),v(J=>J.map(ae=>ae.id===Y.id?{...ae,tags:X}:ae)),h(J=>J.some(Q=>Q.id===Y.id)?J.map(Q=>Q.id===Y.id?{...Q,tags:X}:Q):[{...Y,tags:X,date:oe},...J]),e.success("Tag added")}catch(J){e.error(J.message)}finally{x(null),y("")}},q=async(Y,te)=>{const ee=(Y.tags||[]).filter(oe=>oe!==te),X=Y.date||u;try{await $l.updateTags(X,Y.id,ee),v(oe=>oe.map(J=>J.id===Y.id?{...J,tags:ee}:J)),h(oe=>ee.length===0?oe.filter(J=>J.id!==Y.id):oe.map(J=>J.id===Y.id?{...J,tags:ee}:J)),e.success("Tag removed")}catch(oe){e.error(oe.message)}},B=o.useRef(Md());o.useEffect(()=>{if(!t)return;const Y=()=>{const X=Md();if(X!==B.current){const oe=B.current;if(B.current=X,u===oe)return d(X),!0}return!1};Y()||V(u);const se=()=>{Y()||V(u)};window.addEventListener("visibilitychange",se),window.addEventListener("focus",se);let ee=null;return u===Md()&&(ee=setInterval(()=>{document.visibilityState==="visible"&&V(u)},3e3)),()=>{window.removeEventListener("visibilitychange",se),window.removeEventListener("focus",se),ee&&clearInterval(ee)}},[u,t]);const K=async Y=>{try{await $l.remove(u,Y),await V(u),e.success("Clipboard entry deleted.")}catch(te){e.error(te.message)}},U=async Y=>{const te=Y.date||u;if(Y.imageFile)try{const ee=await(await fetch(a8(Y.imageFile))).blob();await navigator.clipboard.write([new ClipboardItem({[ee.type]:ee})]),$l.copied(te,Y.id).catch(()=>{}),R(Y.id),setTimeout(()=>{R(X=>X===Y.id?null:X)},1e3)}catch(se){e.error("Failed to copy image: "+se.message)}else navigator.clipboard.writeText(Y.text||Y.preview),$l.copied(te,Y.id).catch(()=>{}),R(Y.id),setTimeout(()=>{R(se=>se===Y.id?null:se)},1e3)};o.useEffect(()=>{if(!t)return;const Y=te=>{const se=document.activeElement;if(!(se&&(se.tagName==="INPUT"||se.tagName==="TEXTAREA"||se.isContentEditable))){if(te.key==="ArrowLeft"){const ee=[...new Set([...l,u])].sort(),X=ee.indexOf(u);X<ee.length-1&&X!==-1&&d(ee[X+1])}else if(te.key==="ArrowRight"){const ee=[...new Set([...l,u])].sort(),X=ee.indexOf(u);X>0&&d(ee[X-1])}}};return window.addEventListener("keydown",Y),()=>window.removeEventListener("keydown",Y)},[l,u,t]),o.useEffect(()=>{if(!t)return;const Y=async te=>{var X;const se=document.activeElement;if(se&&(se.tagName==="INPUT"||se.tagName==="TEXTAREA"||se.isContentEditable))return;const ee=(X=te.clipboardData)==null?void 0:X.items;if(ee){for(const oe of ee)if(oe.type.startsWith("image/")){const J=oe.getAsFile();if(J){try{e.loading({content:"Compressing and saving image from paste…",key:"paste-upload",duration:0});const ae=await Uce(J);await $l.uploadImage(ae);const Q=Md();d(Q),await V(Q),e.success({content:"Image pasted and saved to history!",key:"paste-upload"})}catch(ae){e.error({content:"Failed to save pasted image: "+ae.message,key:"paste-upload"})}break}}}};return window.addEventListener("paste",Y),()=>window.removeEventListener("paste",Y)},[u,t]);const G=l.reduce((Y,te)=>{var oe;const[se,ee,X]=te.split("-");return Y[se]||(Y[se]={}),(oe=Y[se])[ee]||(oe[ee]=[]),Y[se][ee].push(X),Y},{}),Z=Object.entries(G).sort(([Y],[te])=>te.localeCompare(Y)).map(([Y,te])=>({value:Y,label:Y,children:Object.entries(te).sort(([se],[ee])=>ee.localeCompare(se)).map(([se,ee])=>({value:se,label:se,children:ee.sort().reverse().map(X=>({value:X,label:X}))}))})),ne=o.useMemo(()=>w==="tagged"?g:w==="all"?f:w==="image"?f.filter(Y=>!!Y.imageFile):f.filter(Y=>!Y.imageFile&&ys(r8(Y),w,O)),[w,f,g,O]),le=o.useMemo(()=>{const Y={all:f.length,tagged:g.length,jira:0,account:0,id:0,url:0,json:0,code:0,image:0};for(const te of f)if(te.imageFile)Y.image++;else{const se=r8(te);ys(se,"jira",O)&&Y.jira++,ys(se,"account")&&Y.account++,ys(se,"id")&&Y.id++,ys(se,"url")&&Y.url++,ys(se,"json")&&Y.json++,ys(se,"code")&&Y.code++}return[{key:"all",label:`All (${Y.all})`},{key:"tagged",label:`Tagged (${Y.tagged})`},{key:"jira",label:`Jira (${Y.jira})`},{key:"account",label:`Account (${Y.account})`},{key:"id",label:`ID (${Y.id})`},{key:"url",label:`Url (${Y.url})`},{key:"json",label:`JSON (${Y.json})`},{key:"code",label:`Code (${Y.code})`},{key:"image",label:`Img (${Y.image})`}]},[f,g,O]);return m.jsxs("div",{className:"clipboard-page",children:[m.jsx(wa,{actions:m.jsxs("div",{className:"clipboard-controls",children:[m.jsxs(pt,{size:16,align:"center",children:[m.jsx(Wl,{loading:r,checked:t,onChange:F,checkedChildren:"On",unCheckedChildren:"Off"}),m.jsx(Zs,{className:"clipboard-picker",disabled:!t||r,options:Z,value:u.split("-"),onChange:Y=>(Y==null?void 0:Y.length)===3&&d(Y.join("-")),placeholder:"Select date"})]}),m.jsxs("div",{className:"clipboard-settings",children:[m.jsxs("div",{className:"clipboard-setting-row",children:[m.jsx(Id,{type:"secondary",className:"clipboard-setting-label",children:"Deduplicate filter:"}),m.jsx(Vn,{size:"small",disabled:!t||r,value:I,onChange:_,className:"clipboard-deduplicate-select",options:Zce})]}),z&&m.jsxs("div",{className:"clipboard-setting-row",children:[m.jsx(Id,{type:"secondary",className:"clipboard-setting-label",children:"Monitor image clipboard:"}),m.jsx(Wl,{size:"small",disabled:!t||r,checked:L,onChange:k,checkedChildren:"On",unCheckedChildren:"Off"})]})]})]}),description:"Saved locally and archived by date.",title:"Clipboard history"}),t?m.jsxs(m.Fragment,{children:[m.jsx(Mo,{className:"clipboard-tabs",activeKey:w,onChange:$,items:le}),ne.length?m.jsx("div",{className:"clipboard-list",children:ne.map(Y=>{const te=Y.date||u,se=`/api/clipboard/${encodeURIComponent(te)}/${encodeURIComponent(Y.id)}`,ee=new Date(Y.createdAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return m.jsxs(Xt,{size:"small",className:"clipboard-item",children:[m.jsxs("div",{children:[m.jsxs("div",{className:"clipboard-item-meta",children:[m.jsx(Id,{type:"secondary",children:ee}),Y.date&&Y.date!==u&&m.jsx(Vt,{style:{margin:0},children:Y.date}),(Y.tags||[]).map(X=>m.jsx(Vt,{color:"purple",closable:!0,onClose:oe=>{oe.preventDefault(),q(Y,X)},style:{margin:0},children:X},X)),m.jsx(Ux,{content:m.jsxs(pt.Compact,{style:{width:200},children:[m.jsx(Ht,{size:"small",placeholder:"Tag name",value:S,onChange:X=>y(X.target.value),onPressEnter:()=>W(Y,S)}),m.jsx(Ie,{size:"small",type:"primary",onClick:()=>W(Y,S),children:"Add"})]}),title:"Add Tag",trigger:"click",open:b===Y.id,onOpenChange:X=>{x(X?Y.id:null),y("")},children:m.jsxs(Vt,{style:{cursor:"pointer",borderStyle:"dashed",margin:0},children:[m.jsx(xr,{})," Tag"]})})]}),Y.imageFile?m.jsx("div",{className:"clipboard-image-wrap",children:m.jsx(dI,{src:a8(Y.imageFile),alt:"Clipboard entry",className:"clipboard-image",preview:!0,onError:()=>e.error("Unable to load clipboard image.")})}):m.jsxs(m.Fragment,{children:[m.jsx(eue,{children:m.jsx(Jce,{value:Y.preview||Y.text,domain:j,jiraIssuePrefix:O})}),Y.contentFile&&m.jsxs("span",{className:"clipboard-original",children:[m.jsx("a",{href:se,target:"_blank",rel:"noreferrer",children:"View original content"}),m.jsxs("a",{href:Y.editorUrl,children:["Open in ",Y.editorName||"editor"]})]})]})]}),m.jsxs("span",{className:"clipboard-actions",children:[m.jsx($n,{title:E===Y.id?"Copied!":"Copy",children:m.jsx(Ie,{type:"text",icon:E===Y.id?m.jsx(Wi,{style:{color:"#52c41a"}}):m.jsx(Xo,{}),onClick:()=>U(Y)})}),m.jsx($n,{title:"Delete",children:m.jsx(Ie,{type:"text",danger:!0,icon:m.jsx(hr,{}),onClick:()=>K(Y.id)})})]})]},Y.id)})}):m.jsx(wn,{description:`No ${w==="all"?"clipboard entries":`${w==="id"?"ID":w} entries`}${w==="tagged"?".":` for ${u}.`}`})]}):m.jsx(Xt,{className:"clipboard-disabled-card",children:m.jsx(wn,{image:m.jsx(_g,{style:{fontSize:48,color:"#9ca3af"}}),description:m.jsxs("div",{className:"clipboard-disabled-copy",children:[m.jsx(Id,{strong:!0,className:"clipboard-disabled-title",children:"Clipboard history is disabled"}),m.jsx(Id,{type:"secondary",children:"Turn on the switch in the top-right corner to start capturing and viewing history."})]})})}),m.jsx(Zl.BackTop,{visibilityHeight:240})]})}const m7=[{value:"vscode",label:"VS Code"},{value:"devin",label:"Devin"},{value:"idea",label:"IntelliJ IDEA"}];function v7(e="vscode"){const t=m7.find(n=>n.value===e);return t?t.label:"VS Code"}function g7(e="vscode",t="",n="",r={}){if(!t)return"";const a=typeof r=="boolean"?r:!!(r!=null&&r.newWindow);let l="",s="";if(n){const u=n.split(":").filter(Boolean);u[0]&&(l=u[0]),u[1]&&(s=u[1])}if(e==="idea"){let u=`idea://open?file=${encodeURIComponent(t)}`;return l&&(u+=`&line=${l}`),s&&(u+=`&column=${s}`),u}return e==="devin"?`devin://file${encodeURI(t)}${n}`:a?`vscode://vscode.open-folder${encodeURI(t)}?forceNewWindow=true`:`vscode://file${encodeURI(t)}${n}`}const{Text:b1}=An;function nue({tasks:e,running:t,onCreate:n,onEdit:r,onStart:a,onStop:l,onRemove:s}){const u=[{title:"Name",dataIndex:"name",render:d=>m.jsx(b1,{strong:!0,children:d})},{title:"Scripts",dataIndex:"items",width:110,render:d=>m.jsxs(b1,{type:"secondary",children:[d.length," scripts"]})},{title:"Actions",width:236,render:(d,f)=>{const v=f.items.every(g=>t.has(`${g.launcherId}:${g.scriptId}`));return m.jsxs(pt,{children:[m.jsx(Ie,{size:"small",danger:v,icon:v?m.jsx(_g,{}):m.jsx(Vs,{}),onClick:()=>v?l(f):a(f),children:v?"Stop":"Start"}),m.jsx(Ie,{size:"small",onClick:()=>r(f),children:"Edit"}),m.jsx(Ie,{size:"small",danger:!0,icon:m.jsx(hr,{}),onClick:()=>s(f),children:"Delete"})]})}}];return m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"group-task-header",children:[m.jsx(b1,{type:"secondary",children:"Start selected scripts across multiple services."}),m.jsx(Ie,{type:"primary",icon:m.jsx(xr,{}),onClick:n,children:"Add quick launch"})]}),e.length?m.jsx(Zn,{className:"group-task-table",rowKey:"id",dataSource:e,columns:u,pagination:!1,size:"small"}):m.jsx(wn,{description:"No quick launches yet.",className:"group-task-empty"})]})}function WC({open:e,initialPath:t="~",onCancel:n,onSelect:r,title:a="Browse Directory"}){const{message:l}=Jr.useApp(),[s,u]=o.useState(t),[d,f]=o.useState(null),[v,g]=o.useState(!1),h=async b=>{g(!0);try{const x=await Ud.browse(b||"~");f(x),u(x.currentPath)}catch(x){l.error(x.message||"Failed to read directory")}finally{g(!1)}};return o.useEffect(()=>{e&&h(t||"~")},[e,t]),m.jsx(On,{title:a,open:e,onCancel:n,footer:null,width:640,destroyOnClose:!0,children:m.jsxs(Xr,{spinning:v,children:[m.jsx("div",{className:"file-browser-path-row",children:m.jsx(Ht,{value:s,onChange:b=>u(b.target.value),onPressEnter:()=>h(s),addonAfter:m.jsx(Ie,{size:"small",type:"text",onClick:()=>h(s),children:"Go"})})}),d&&m.jsxs("div",{children:[m.jsx("div",{className:"file-browser-parent-row",children:m.jsx(Ie,{size:"small",onClick:()=>h(d.parentPath),disabled:d.currentPath===d.parentPath,children:"⬅ Parent Directory"})}),m.jsx("div",{className:"file-browser-list",children:d.subdirectories.length===0?m.jsx("div",{className:"file-browser-empty",children:"No subdirectories found"}):d.subdirectories.map(b=>m.jsxs("div",{className:"file-browser-item",onClick:()=>h(b.fullPath),children:[m.jsxs("span",{children:[m.jsx(qi,{className:"file-browser-icon"}),b.name]}),m.jsx(Ie,{size:"small",type:"link",onClick:x=>{x.stopPropagation(),r(b.fullPath)},children:"Select Folder"})]},b.fullPath))}),m.jsx("div",{className:"file-browser-confirm-row",children:m.jsxs(Ie,{type:"primary",onClick:()=>r(d.currentPath),children:["Confirm Path: ",d.currentPath]})})]})]})})}const{Text:xs}=An,Td=(e,t)=>`${e}:${t}`,rue=()=>m.jsx("div",{style:{width:"0.8em",height:"0.8em",backgroundColor:"rgba(0,0,0,0.88)"}});function aue({form:e,editing:t,executor:n,running:r,errorCounts:a={},packageScripts:l,onRun:s,onRunInstall:u,onRunPackage:d,onStop:f,onLogs:v,onPackageLogs:g}){const h=!!(t&&[...r].some(S=>S.startsWith(`${t.id}:`))),[b,x]=o.useState(()=>h);return o.useEffect(()=>{h&&x(!0)},[t==null?void 0:t.id]),o.useEffect(()=>{h||x(!1)},[h]),m.jsx(xt.List,{name:"scripts",children:(S,{add:y,remove:w})=>{const $=["npm","pnpm","yarn"].includes(n)?{id:"install",name:"Install",command:`${n} install${n==="npm"?" --legacy-peer-deps":""}`}:null,E=[...S.map(N=>({...N,key:`custom-${N.key}`,kind:"custom"})),...$?[{key:"install",kind:"install",script:$}]:[],...(l||[]).map(N=>({key:`package-${N.id}`,kind:"package",script:N}))],R=b?E.filter(N=>{const O=N.kind==="custom"?e.getFieldValue(["scripts",N.name]):N.script;return t&&(O==null?void 0:O.id)&&r.has(Td(t.id,O.id))}):E,j=[{title:"Source",width:100,render:(N,O)=>m.jsx(Vt,{color:O.kind==="package"?"purple":O.kind==="install"?"green":"default",children:O.kind==="package"?"Package":O.kind==="install"?"Executor":"Custom"})},{title:"Script name",width:200,render:(N,O)=>{var z;const M=O.kind==="custom"?e.getFieldValue(["scripts",O.name]):O.script,I=(M==null?void 0:M.name)===e.getFieldValue("startCommand"),T=t&&(M==null?void 0:M.id)&&r.has(Td(t.id,M.id));return m.jsxs(pt,{direction:"vertical",size:1,style:{width:"100%"},children:[O.kind!=="custom"||T?m.jsxs(pt,{size:4,children:[m.jsx(xs,{strong:!0,children:(M==null?void 0:M.name)||((z=O.script)==null?void 0:z.name)}),I&&m.jsx(ao,{className:"start-script-icon"})]}):m.jsx(xt.Item,{noStyle:!0,name:[O.name,"name"],rules:[{required:!0,message:"Required"}],children:m.jsx(Ht,{placeholder:"serve",allowClear:!0,suffix:I?m.jsx(ao,{className:"start-script-icon"}):null})}),T&&m.jsx(Ca,{status:"success",text:m.jsx(xs,{type:"secondary",style:{fontSize:11},children:"running"})})]})}},{title:"Command",render:(N,O)=>{const M=O.kind==="custom"?e.getFieldValue(["scripts",O.name]):O.script,I=t&&(M==null?void 0:M.id)&&r.has(Td(t.id,M.id));return O.kind==="package"?m.jsxs(pt,{direction:"vertical",size:0,children:[m.jsxs(xs,{code:!0,children:[n," run ",O.script.name]}),m.jsx(xs,{type:"secondary",style:{fontSize:12},children:O.script.command})]}):O.kind==="install"?m.jsx(xs,{code:!0,children:O.script.command}):I?m.jsx(xs,{code:!0,children:M==null?void 0:M.command}):m.jsx(xt.Item,{noStyle:!0,name:[O.name,"command"],rules:[{required:!0,message:"Required"}],children:m.jsx(Ht,{placeholder:"npm run dev",allowClear:!0})})}},{title:"Actions",width:132,render:(N,O)=>{const M=O.kind==="custom"?e.getFieldValue(["scripts",O.name]):O.script,I=t&&(M==null?void 0:M.id)&&r.has(Td(t.id,M.id)),T=t&&(M!=null&&M.id)&&a[Td(t.id,M.id)]||0;return m.jsxs(pt,{size:2,children:[t&&m.jsx($n,{title:I?"Stop":"Start",children:m.jsx(Ie,{type:"text",danger:I,icon:I?m.jsx(rue,{}):m.jsx(Qse,{}),onClick:()=>I?f(M):O.kind==="package"?d(M):O.kind==="install"?u(M):s(M),disabled:!(M!=null&&M.id)})}),m.jsx($n,{title:"Logs",children:m.jsx(Ca,{count:T,size:"small",offset:[-2,2],children:m.jsx(Ie,{type:"text",icon:m.jsx(Ql,{}),onClick:()=>O.kind==="package"?g(M):v(M),disabled:!t||!(M!=null&&M.id)})})}),O.kind==="custom"&&!I&&m.jsx($n,{title:"Remove",children:m.jsx(Ie,{type:"text",danger:!0,icon:m.jsx(hr,{}),onClick:()=>w(O.name)})})]})}}];return m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"script-header",children:[m.jsx(zp,{orientation:"left",children:"Scripts"}),m.jsxs(pt,{size:"middle",align:"center",children:[m.jsxs("label",{className:"script-running-filter",children:[m.jsx(Wl,{size:"small",checked:b,onChange:x,disabled:!t}),m.jsx(xs,{type:"secondary",className:"script-running-filter-label",children:"Show running only"})]}),m.jsx(Ie,{icon:m.jsx(xr,{}),onClick:()=>{x(!1),y({name:"",command:""})},children:"Add script"})]})]}),m.jsx(Zn,{size:"small",rowKey:"key",pagination:!1,loading:l===null,dataSource:R,columns:j})]})}})}const oue=e=>m.jsx("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"currentColor",style:{verticalAlign:"-0.125em",...e.style},...e,children:m.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.75 2.5a.75.75 0 01.742-.647h21.016a.75.75 0 01.742.853l-2.622 17.5a.75.75 0 01-.742.644H4.114a.75.75 0 01-.742-.644L.75 2.5zm13.1 11.2h-3.7l-.76-3.8h5.22l-.76 3.8z"})});function iue(e){if(!e)return null;const t=e.toLowerCase();return t.includes("bitbucket")?m.jsx(oue,{style:{color:"#2584FF"}}):t.includes("github")?m.jsx(fse,{style:{color:"#24292e"}}):t.includes("gitlab")?m.jsx(ix,{style:{color:"#fc6d26"}}):m.jsx(Pu,{className:"repo-generic-icon"})}function p7({repoUrl:e,style:t}){if(!e)return null;const n=iue(e);return n?m.jsx($n,{title:"Open repository in browser",children:m.jsx(Ie,{className:"repo-icon-button",type:"text",size:"small",icon:n,onClick:r=>{r.preventDefault(),r.stopPropagation(),oa(e)},style:t})}):null}const lue=()=>({alias:"",folder:"",groupName:"",executor:"npm",startCommand:void 0,scripts:[]});function sue({open:e,editing:t,groups:n,running:r,errorCounts:a={},onCancel:l,onSave:s,onRun:u,onRunInstall:d,onRunPackage:f,onStop:v,onLogs:g,onDelete:h}){const{message:b,modal:x}=Jr.useApp(),[S]=xt.useForm(),[y,w]=o.useState(null),[$,E]=o.useState(!1),R=O=>{if(O&&(S.setFieldValue("folder",O),!S.getFieldValue("alias"))){const I=O.split(/[/\\]/).filter(Boolean);I.length>0&&S.setFieldValue("alias",I[I.length-1])}E(!1)},j=()=>{x.confirm({title:"Delete Service",content:`Are you sure you want to delete service "${t==null?void 0:t.alias}"?`,okText:"Delete",okButtonProps:{type:"primary",danger:!0},cancelText:"Cancel",onOk:async()=>{try{await h(t)}catch(O){b.error(O.message)}}})};o.useEffect(()=>{e&&(S.resetFields(),S.setFieldsValue(t?{...t,startCommand:t.startCommand||void 0,scripts:t.scripts}:lue()),w(t?null:[]),t&&wr.packageScripts(t.id).then(O=>w(O.scripts)).catch(()=>w([])))},[e,t,S]);const N=async()=>{try{const O=(S.getFieldValue("scripts")||[]).filter(T=>{var z,H;return((z=T==null?void 0:T.name)==null?void 0:z.trim())||((H=T==null?void 0:T.command)==null?void 0:H.trim())});S.setFieldValue("scripts",O);const M=await S.validateFields(["alias","folder","groupName","startCommand"]),I={...S.getFieldsValue(!0),...M,scripts:O};await s(I)}catch(O){if(O!=null&&O.errorFields)return;b.error(O.message)}};return m.jsxs(On,{title:t?m.jsxs(pt,{align:"center",size:6,children:[m.jsxs("span",{children:["Service details · ",t.alias]}),m.jsx(p7,{repoUrl:t.repoUrl})]}):"Add service",open:e,onCancel:l,onOk:N,okText:t?"Save":"Save service",width:860,destroyOnClose:!0,footer:m.jsxs("div",{className:"service-modal-footer",children:[t?m.jsx(Ie,{type:"primary",danger:!0,onClick:j,children:"Delete service"}):m.jsx("div",{}),m.jsxs(pt,{children:[m.jsx(Ie,{onClick:l,children:"Cancel"}),m.jsx(Ie,{type:"primary",onClick:N,children:t?"Save":"Save service"})]})]}),children:[m.jsxs(xt,{form:S,layout:"vertical",children:[m.jsx(xg,{className:"service-config",defaultActiveKey:t?[]:["configuration"],items:[{key:"configuration",label:"Service configuration",children:m.jsxs(Wo,{gutter:[16,0],children:[m.jsx(er,{xs:24,sm:12,children:m.jsx(xt.Item,{label:"Name",name:"alias",rules:[{required:!0}],children:m.jsx(Ht,{placeholder:"Service name",allowClear:!0})})}),m.jsx(er,{xs:24,sm:12,children:m.jsx(xt.Item,{label:"Project folder",name:"folder",rules:[{required:!0}],children:m.jsx(Ht,{prefix:m.jsx(qi,{style:{color:"#8c8c8c"}}),suffix:m.jsx(Ie,{type:"text",size:"small",icon:m.jsx(qi,{}),onClick:()=>E(!0),style:{fontSize:12,padding:"0 4px"},children:"Browse"}),placeholder:"Project folder path",allowClear:!0})})}),m.jsx(er,{xs:24,sm:8,children:m.jsx(xt.Item,{label:"Group",name:"groupName",children:m.jsx(Sg,{options:n.map(O=>({value:O})),placeholder:"Group name",allowClear:!0})})}),m.jsx(er,{xs:24,sm:8,children:m.jsx(xt.Item,{label:"Executor",name:"executor",rules:[{required:!0}],children:m.jsx(Sg,{options:["npm","pnpm","yarn"].map(O=>({value:O})),placeholder:"npm",allowClear:!0})})}),m.jsx(er,{xs:24,sm:8,children:m.jsx(xt.Item,{noStyle:!0,shouldUpdate:(O,M)=>O.scripts!==M.scripts,children:()=>{const O=(S.getFieldValue("scripts")||[]).map(T=>T==null?void 0:T.name).filter(Boolean),M=(y||[]).map(T=>T.name),I=[...new Set([...O,...M])].map(T=>({label:T,value:T}));return m.jsx(xt.Item,{label:"Start script name",name:"startCommand",children:m.jsx(Vn,{placeholder:"Select start script",allowClear:!0,options:I})})}})})]})}]}),m.jsx(xt.Item,{noStyle:!0,shouldUpdate:(O,M)=>O.executor!==M.executor||O.startCommand!==M.startCommand||O.scripts!==M.scripts,children:()=>m.jsx(aue,{form:S,editing:t,executor:S.getFieldValue("executor")||"npm",running:r,errorCounts:a,packageScripts:y,onRun:O=>u(t,O),onRunInstall:()=>d(t),onRunPackage:O=>f(t,O),onStop:O=>v(t,O.id),onLogs:O=>g(t,O),onPackageLogs:O=>g(t,O,!0)})})]}),m.jsx(WC,{open:$,initialPath:S.getFieldValue("folder")||"~",onCancel:()=>E(!1),onSelect:R,title:"Select Project Directory"})]})}const{Text:cue}=An;function uue({open:e,editingGroupTask:t,groupCatalog:n,onCancel:r,onSave:a}){const{message:l}=Jr.useApp(),[s]=xt.useForm();o.useEffect(()=>{e&&(s.resetFields(),s.setFieldsValue({name:(t==null?void 0:t.name)||"",items:(t==null?void 0:t.items.map(f=>`${f.launcherId}|${f.scriptId}`))||[]}))},[e,t,s]);const u=o.useMemo(()=>Object.entries(n.reduce((f,v)=>{const g=v.groupName||"Ungrouped";return(f[g]||(f[g]=[])).push(v),f},{})).sort(([f],[v])=>f.localeCompare(v)).map(([f,v])=>({key:f,label:f,children:m.jsx("div",{className:"group-task-projects",children:v.map(g=>m.jsx(Xt,{size:"small",title:g.alias,children:m.jsx(pt,{direction:"vertical",children:g.scripts.map(h=>m.jsxs(Fr,{value:`${g.id}|${h.id}`,children:[h.name," ",m.jsxs(cue,{type:"secondary",children:["(",h.source,")"]})]},h.id))})},g.id))})})),[n]),d=async()=>{try{const f=await s.validateFields(),v={name:f.name,items:f.items.map(g=>{const[h,b]=g.split("|");return{launcherId:h,scriptId:b}})};await a(v)}catch(f){f!=null&&f.errorFields||l.error(f.message)}};return m.jsx(On,{title:t?`Edit quick launch · ${t.name}`:"Add quick launch",open:e,onCancel:r,onOk:d,okText:t?"Save changes":"Save quick launch",width:760,destroyOnClose:!0,children:m.jsxs(xt,{form:s,layout:"vertical",children:[m.jsx(xt.Item,{label:"Name",name:"name",rules:[{required:!0}],children:m.jsx(Ht,{placeholder:"Start local stack",allowClear:!0})}),m.jsx(xt.Item,{label:"Scripts",name:"items",rules:[{required:!0,message:"Select at least one script."}],children:m.jsx(Fr.Group,{className:"group-task-selector",children:m.jsx(Mo,{items:u})})})]})})}const o8={30:"ansi-black",31:"ansi-red",32:"ansi-green",33:"ansi-yellow",34:"ansi-blue",35:"ansi-magenta",36:"ansi-cyan",37:"ansi-white",90:"ansi-gray",91:"ansi-red",92:"ansi-green",93:"ansi-yellow",94:"ansi-blue",95:"ansi-magenta",96:"ansi-cyan",97:"ansi-white"};function lx({value:e,editor:t}){const[n,r]=o.useState(t||"vscode"),[a,l]=o.useState(""),[s,u]=o.useState("");o.useEffect(()=>{t&&r(t),$r.status().then(g=>{g!=null&&g.defaultEditor&&!t&&r(g.defaultEditor),g!=null&&g.domain&&l(g.domain),g!=null&&g.jiraIssuePrefix&&u(g.jiraIssuePrefix)}).catch(()=>{})},[t]);const d=(s||"").split(/[\s,]+/).filter(Boolean).map(g=>g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),f=d.length>0&&a?new RegExp(`\\b(?:${d.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,v=(g,h)=>{let b="";const x=($,E)=>$.split(/(\u001b\[[0-9;]*m)/g).map((j,N)=>{const O=j.match(/^\u001b\[([0-9;]*)m$/);if(O){const I=O[1].split(";").map(Number);return b=I.includes(0)?"":o8[I.find(T=>o8[T])]||b,null}if(!j)return null;const M=b||(/\b(error|failed|fatal|exception|TS\d{4,5})\b/i.test(j)?"log-error":/\b(warn|warning)\b/i.test(j)?"log-warning":/\b(success|ready|started|listening)\b/i.test(j)?"log-success":"");return m.jsx("span",{className:M,children:j},`${E}-${N}`)}),S=/(https?:\/\/(?:[^\s<>'"`]|\u001b\[[0-9;]*m)+|\/(?:(?:[^\s:(),;!?]|\u001b\[[0-9;]*m)+\/)*(?:[^\s:(),;!?]|\u001b\[[0-9;]*m)+(?::(?:\d+|\u001b\[[0-9;]*m)+(?::(?:\d+|\u001b\[[0-9;]*m)+)?)?)/g,y=f&&f.test(g);return!g.includes("http")&&!g.includes("/")&&!y?x(g,`${h}-0`):g.split(S).map(($,E)=>{if(!$)return null;const R=`${h}-${E}`;if(/^https?:\/\//.test($.replace(/\u001b\[[0-9;]*m/g,""))){const N=$.replace(/\u001b\[[0-9;]*m/g,""),O=N.replace(/[),.;:!?]+$/,""),M=N.slice(O.length);return m.jsxs("span",{children:[m.jsx("a",{className:"log-link",href:O,target:"_blank",rel:"noreferrer",onClick:I=>{I.preventDefault(),oa(O)},children:x($.slice(0,$.length-M.length),`${R}-url`)}),M&&x(M,`${R}-suf`)]},R)}const j=$.replace(/\u001b\[[0-9;]*m/g,"");if(j.startsWith("/")){const[,N,O=""]=j.match(/^(.*?)(:\d+(?::\d+)?)?$/)||[];if(N){const M=g7(n,N,O);return m.jsx("a",{className:"log-link",href:M,target:"_blank",rel:"noreferrer",title:`Open in ${v7(n)}`,children:x($,R)},R)}}if(f&&a&&(f.lastIndex=0,f.test(j))){const N=[];let O=0;f.lastIndex=0;for(const M of j.matchAll(f)){M.index>O&&N.push(x(j.slice(O,M.index),`${R}-sub-${M.index}`));const I=M[0],T=VC(a,I);N.push(m.jsx("a",{className:"log-link",href:T,target:"_blank",rel:"noreferrer",onClick:z=>{z.preventDefault(),oa(T)},children:I},`${R}-jira-${M.index}`)),O=M.index+I.length}return O<j.length&&N.push(x(j.slice(O),`${R}-sub-end`)),m.jsx("span",{children:N},R)}return x($,R)})};return m.jsx("div",{className:"log-output",role:"log",children:e.split(`
497
497
  `).map((g,h)=>m.jsx("div",{className:"log-line",children:m.jsx("code",{children:v(g,h)})},h))})}function due({open:e,logTarget:t,onCancel:n}){var d;const[r,a]=o.useState("output"),[l,s]=o.useState("");o.useEffect(()=>{e&&(a("output"),s("Loading…"))},[e,t]),o.useEffect(()=>{if(!e||!t)return;const f=async()=>{try{const g=t.package?r==="error"?await wr.packageScriptErrorLogs(t.launcher.id,t.script.name):await wr.packageScriptLogs(t.launcher.id,t.script.name):r==="error"?await wr.errorLogs(t.launcher.id,t.script.id):await wr.logs(t.launcher.id,t.script.id);s(g.log||(r==="error"?"No error logs yet.":"No logs yet."))}catch(g){s(g.message)}};f();const v=setInterval(f,1e3);return()=>clearInterval(v)},[e,t,r]);const u=async()=>{if(t)try{t.package?await wr.clearPackageScriptLogs(t.launcher.id,t.script.name):await wr.clearLogs(t.launcher.id,t.script.id),s(r==="error"?"No error logs yet.":"No logs yet.")}catch{}};return m.jsx(On,{title:t?`${(d=t.launcher)!=null&&d.alias?`${t.launcher.alias} / `:""}${t.script.name} · Logs`:"Logs",open:e,onCancel:n,footer:null,width:1080,zIndex:1200,children:m.jsx(Mo,{activeKey:r,onChange:a,tabBarExtraContent:t&&m.jsxs(pt,{children:[m.jsx(Ie,{icon:m.jsx(fle,{}),onClick:u,children:"Clear log"}),m.jsx(Ie,{icon:m.jsx(Pu,{}),onClick:()=>{const f=t.package?`#/logs/${t.launcher.id}/pkg/${encodeURIComponent(t.script.name)}`:`#/logs/${t.launcher.id}/${encodeURIComponent(t.script.id)}`;window.open(f,"_blank")},children:"Open in new tab"})]}),items:[{key:"output",label:"Logs",children:m.jsx(lx,{value:l})},{key:"error",label:"Error logs",children:m.jsx(lx,{value:l})}]})})}const{Text:fue}=An;function mue({launchers:e,running:t,errorCounts:n={},refresh:r,loading:a}){const{message:l}=Jr.useApp(),[s,u]=o.useState("all"),[d,f]=o.useState([]),[v,g]=o.useState([]),[h,b]=o.useState(!1),[x,S]=o.useState(!1),[y,w]=o.useState(null),[$,E]=o.useState(!1),[R,j]=o.useState(null),[N,O]=o.useState(!1),[M,I]=o.useState(null),[T,z]=o.useState("vscode");o.useEffect(()=>{Mi.list().then(f).catch(ee=>l.error(ee.message)),$r.status().then(ee=>{ee!=null&&ee.defaultEditor&&z(ee.defaultEditor)}).catch(()=>{})},[]);const H=o.useMemo(()=>[...new Set(e.map(ee=>ee.groupName).filter(Boolean))].sort((ee,X)=>ee.localeCompare(X)),[e]),L=s==="all"?e:e.filter(ee=>ee.groupName===s),D=(ee=null)=>{j(ee),E(!0)},F=async ee=>{if(R){const X=await wr.update(R.id,ee);j(X)}else await wr.create(ee),E(!1);l.success("Saved"),await r()},k=async ee=>{try{const X=[...t].filter(oe=>oe.startsWith(`${ee.id}:`));if(X.length>0){const oe=X.map(J=>J.slice(`${ee.id}:`.length));await Promise.all(oe.map(J=>wr.stop(ee.id,J)))}await wr.remove(ee.id),E(!1),l.success("Deleted"),await r()}catch(X){l.error(X.message)}},_=async(ee,X)=>{try{await wr.run(ee.id,X.id),await r()}catch(oe){l.error(oe.message)}},V=async ee=>{try{await wr.runInstall(ee.id),await r()}catch(X){l.error(X.message)}},W=async(ee,X)=>{try{await wr.runPackageScript(ee.id,X.name),await r()}catch(oe){l.error(oe.message)}},q=(ee,X,oe=!1)=>{I({launcher:ee,script:X,package:oe}),O(!0)},B=async ee=>{try{await wr.start(ee.id),await r()}catch(X){l.warning(X.message)}},K=async ee=>{try{await wr.openTerminal(ee.id)}catch(X){l.error(X.message)}},U=async(ee,X)=>{try{await wr.stop(ee.id,X),await r()}catch(oe){await r(),l.error(oe.message)}},G=async(ee,X)=>{try{await Promise.all(X.map(oe=>wr.stop(ee.id,oe))),await r()}catch(oe){await r(),l.error(oe.message)}},Z=async(ee=null)=>{if(w(ee),S(!0),!v.length)try{g(await Mi.catalog())}catch(X){l.error(X.message)}},ne=async ee=>{y?await Mi.update(y.id,ee):await Mi.create(ee),S(!1),f(await Mi.list())},le=async ee=>{const X=`group-task-${ee.id}`;l.loading({content:`Starting ${ee.name}…`,key:X,duration:0});try{const oe=await Mi.start(ee.id),J=oe.results.filter(ae=>ae.error);J.length?l.warning({content:`${oe.results.length-J.length} started, ${J.length} failed.`,key:X}):l.success({content:`${oe.results.length} scripts started.`,key:X}),await r()}catch(oe){l.error({content:oe.message,key:X})}},Y=async ee=>{const X=`group-task-${ee.id}`;l.loading({content:`Stopping ${ee.name}…`,key:X,duration:0});try{const J=(await Mi.stop(ee.id)).results.filter(ae=>ae.ok).length;l.success({content:`${J} scripts stopped.`,key:X}),await r()}catch(oe){l.error({content:oe.message,key:X})}},te=async ee=>{try{await Mi.remove(ee.id),f(await Mi.list())}catch(X){l.error(X.message)}},se=[{title:"Service",dataIndex:"alias",render:(ee,X)=>m.jsxs(pt,{size:8,align:"center",children:[m.jsx(Ie,{type:"text",size:"small",className:"launcher-terminal-button",icon:m.jsx(Va,{}),"aria-label":`Open terminal in ${X.folder}`,title:`Open Terminal in ${X.folder}`,onClick:oe=>{oe.stopPropagation(),K(X)}}),m.jsx("a",{href:g7(T,X.folder,"",{newWindow:!0}),title:`Open ${X.folder} in ${v7(T)}`,onClick:oe=>{oe.preventDefault(),oe.stopPropagation(),u7.openPath(X.folder)},className:"launcher-service-link",children:ee}),m.jsx(p7,{repoUrl:X.repoUrl}),X.branch&&m.jsx(fue,{code:!0,className:"launcher-branch",children:X.branch})]})},{title:"Scripts",width:170,align:"center",render:(ee,X)=>{const oe=[...t].filter(Q=>Q.startsWith(`${X.id}:`)).length,J=X.scripts.length+(X.packageScriptCount||0),ae=Object.entries(n).filter(([Q])=>Q.startsWith(`${X.id}:`)).reduce((Q,[,me])=>Q+(me||0),0);return m.jsxs(pt,{size:8,children:[m.jsx(Ca,{status:oe?"success":"default",text:`${oe} / ${J} running`}),ae>0&&m.jsx(Ca,{count:ae,overflowCount:999,style:{backgroundColor:"#ff4d4f"}})]})}},{title:"Action",width:108,align:"center",render:(ee,X)=>{const oe=[...t].filter(ae=>ae.startsWith(`${X.id}:`)),J=oe.length>0;return m.jsx(Ie,{size:"small",type:J?"default":"primary",danger:J,icon:J?m.jsx(_g,{}):m.jsx(Vs,{}),onClick:ae=>{ae.stopPropagation(),J?G(X,oe.map(Q=>Q.slice(`${X.id}:`.length))):B(X)},children:J?"Stop":"Start"})}}];return m.jsxs(m.Fragment,{children:[m.jsx(wa,{actions:m.jsxs(pt,{children:[m.jsx(Ie,{onClick:()=>b(!0),children:"Quick Launch"}),m.jsx(Ie,{type:"primary",icon:m.jsx(xr,{}),onClick:()=>D(),children:"Add service"})]}),description:"Manage and run local project scripts.",title:"Launcher"}),a?m.jsx("div",{className:"launcher-loading",children:m.jsx(Xr,{size:"large"})}):e.length?m.jsxs(m.Fragment,{children:[d.length>0&&m.jsx("div",{className:"quick-launch-bar",children:m.jsxs(pt,{wrap:!0,size:"middle",children:[m.jsx("span",{className:"quick-launch-label",children:"Quick Launch:"}),d.map(ee=>{const X=ee.items.every(oe=>t.has(`${oe.launcherId}:${oe.scriptId}`));return m.jsxs(Ie,{type:X?"default":"primary",danger:X,icon:X?m.jsx(_g,{}):m.jsx(Vs,{}),onClick:()=>X?Y(ee):le(ee),children:[X?"Stop":"Start"," ",ee.name]},ee.id)})]})}),m.jsx(Mo,{activeKey:s,onChange:u,className:"group-tabs",items:[{key:"all",label:`All (${e.length})`},...H.map(ee=>({key:ee,label:`${ee} (${e.filter(X=>X.groupName===ee).length})`}))]}),L.length?m.jsx(Zn,{className:"launcher-table",rowKey:"id",dataSource:L,columns:se,pagination:!1,onRow:ee=>({onClick:()=>D(ee)})}):m.jsx(wn,{description:"No services in this group."})]}):m.jsx(wn,{description:"No services yet",children:m.jsx(Ie,{type:"primary",onClick:()=>D(),children:"Add service"})}),m.jsx(sue,{open:$,editing:R,groups:H,running:t,errorCounts:n,onCancel:()=>E(!1),onSave:F,onRun:_,onRunInstall:V,onRunPackage:W,onStop:U,onLogs:q,onDelete:k}),m.jsx(On,{title:"Quick Launch",open:h,onCancel:()=>b(!1),footer:null,width:760,destroyOnClose:!0,children:m.jsx(nue,{tasks:d,running:t,onCreate:()=>Z(),onEdit:Z,onStart:le,onStop:Y,onRemove:te})}),m.jsx(uue,{open:x,editingGroupTask:y,groupCatalog:v,onCancel:()=>S(!1),onSave:ne}),m.jsx(due,{open:N,logTarget:M,onCancel:()=>O(!1)})]})}const{Text:Pi}=An;function vue({refreshLaunchers:e}){const[t,n]=o.useState([]),[r,a]=o.useState(!1),[l,s]=o.useState(null),[u,d]=o.useState(!1),[f,v]=o.useState(!1),[g,h]=o.useState(null),b=async()=>{a(!0);try{n((await g1.list()).ports)}catch(w){gn.error(w.message)}finally{a(!1)}};o.useEffect(()=>{b()},[]);const x=async()=>{if(l){d(!0);try{const w=(await g1.get(l)).process;h(w),v(!0)}catch(w){gn.error(w.message)}finally{d(!1)}}},S=async({port:w,pid:$})=>{try{await g1.kill(w,$),gn.success(`Process on port ${w} was killed.`),await b(),e&&await e()}catch(E){gn.error(E.message)}},y=[{title:"Port",dataIndex:"port",width:100,render:w=>m.jsx(Pi,{code:!0,children:w})},{title:"Last used",dataIndex:"launcher",render:(w,$)=>m.jsxs(pt,{direction:"vertical",size:0,children:[m.jsx(Pi,{strong:!0,children:w}),m.jsx(Pi,{type:"secondary",children:$.script})]})},{title:"Process",dataIndex:"command",render:(w,$)=>m.jsxs(pt,{direction:"vertical",size:0,children:[m.jsx(Pi,{code:!0,children:$.currentCommand||w}),m.jsxs(Pi,{type:"secondary",children:["PID ",$.currentPid||$.pid]})]})},{title:"Status",width:170,render:(w,$)=>$.ghost?m.jsx(Vt,{color:"error",children:"Ghost process"}):$.listening?m.jsx(Vt,{color:"success",children:"Script running"}):$.reused?m.jsx(Vt,{color:"warning",children:"Port reused"}):m.jsx(Vt,{children:"Port released"})},{title:"Action",width:100,render:(w,$)=>$.listening||$.reused?m.jsx(Ra,{title:`Kill process on port ${$.port}?`,description:"The process currently listening on this port will be stopped.",okText:"Kill",okButtonProps:{danger:!0},onConfirm:()=>S({port:$.port,pid:$.currentPid}),children:m.jsx(Ie,{danger:!0,icon:m.jsx(hr,{}),children:"Kill"})}):m.jsx(Ie,{disabled:!0,icon:m.jsx(hr,{}),children:"Kill"})}];return m.jsxs("div",{className:"port-diagnostic-page",children:[m.jsx(wa,{actions:m.jsx(Ie,{icon:m.jsx(Ui,{}),onClick:b,loading:r,children:"Refresh"}),description:"Every port observed while a recent Launcher script was running. Ghost processes still listen after their script has stopped.",title:"Port Diagnostic"}),m.jsxs(Xt,{className:"port-manual-query",size:"small",children:[m.jsxs(pt,{wrap:!0,children:[m.jsx(Pi,{strong:!0,children:"Query port"}),m.jsx(wf,{min:1,max:65535,controls:!1,value:l,onChange:s,onPressEnter:x,placeholder:"e.g. 3000"}),m.jsx(Ie,{type:"primary",onClick:x,loading:u,disabled:!l,children:"Query"})]}),f&&m.jsx("div",{className:"port-query-result",children:g?m.jsxs(pt,{wrap:!0,children:[m.jsx(Vt,{color:"success",children:"Listening"}),m.jsxs(Pi,{code:!0,children:["PID ",g.pid]}),m.jsx(Pi,{code:!0,children:g.command}),m.jsx(Ra,{title:`Kill process on port ${g.port}?`,description:"The process currently listening on this port will be stopped.",okText:"Kill",okButtonProps:{danger:!0},onConfirm:()=>S(g),children:m.jsx(Ie,{danger:!0,icon:m.jsx(hr,{}),children:"Kill"})})]}):m.jsxs(Pi,{type:"secondary",children:["No process is listening on port ",l,"."]})})]}),m.jsx(Zn,{className:"port-diagnostic-table",rowKey:w=>`${w.startedAt}-${w.port}-${w.pid}`,loading:r,dataSource:t,columns:y,pagination:!1,locale:{emptyText:m.jsx(wn,{description:"No ports have been observed from Launcher scripts yet."})}})]})}const{Title:ki,Paragraph:zi,Text:Hn}=An,y1=[{id:"bitbucket",label:"Bitbucket"},{id:"jira",label:"Jira"},{id:"confluence",label:"Confluence"}],Pd=(e=0)=>{if(e===0)return"0 B";const t=["B","KB","MB","GB","TB"],n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),t.length-1);return`${(e/1024**n).toFixed(n===0?0:1)} ${t[n]}`};function gue({theme:e,onThemeChange:t,onStaticPagesChange:n}){var X,oe,J,ae;const[r]=xt.useForm(),[a]=xt.useForm(),[l,s]=o.useState({}),[u,d]=o.useState(!1),[f,v]=o.useState(!1),[g,h]=o.useState(null),[b,x]=o.useState(!0),[S,y]=o.useState(!1),[w,$]=o.useState(!1),[E,R]=o.useState(!1),[j,N]=o.useState(null),[O,M]=o.useState(!1),I=o.useRef(null),[T,z]=o.useState([]),[H,L]=o.useState(!1),[D,F]=o.useState(null),[k,_]=o.useState(!1),V=async()=>{try{await $r.openDataDir()}catch(Q){gn.error(Q.message)}},W=async Q=>{t==null||t(Q);try{const me=await $r.saveTheme(Q);s(xe=>({...xe,...me}))}catch(me){t==null||t(e),gn.error(me.message)}},q=async()=>{x(!0);try{h(await p1.stats())}catch(Q){gn.error(Q.message)}finally{x(!1)}},B=async()=>{$(!0);try{const{blob:Q,filename:me}=await p1.export(),xe=URL.createObjectURL(Q),fe=document.createElement("a");fe.href=xe,fe.download=me,document.body.appendChild(fe),fe.click(),fe.remove(),setTimeout(()=>URL.revokeObjectURL(xe),1e3),gn.success("Data backup exported.")}catch(Q){gn.error(Q.message)}finally{$(!1)}},K=Q=>{const[me]=Q.target.files||[];Q.target.value="",me&&(M(!1),N(me))},U=async()=>{if(j){R(!0);try{const Q=await p1.import(j);h(Q),M(!0)}catch(Q){gn.error(Q.message)}finally{R(!1)}}},G=async()=>{try{const Q=await Qc.list();z(Q)}catch(Q){gn.error(Q.message)}};o.useEffect(()=>{$r.status().then(Q=>{s(Q),r.setFieldsValue({domain:Q.domain,jiraIssuePrefix:Q.jiraIssuePrefix||"",defaultEditor:Q.defaultEditor||"vscode",defaultBrowser:Q.defaultBrowser||"chrome"})}).catch(Q=>gn.error(Q.message)),G(),q()},[r]);const Z=Q=>l[`${Q}TokenConfigured`],ne=async()=>{try{await r.validateFields(["domain"]),d(!0);const Q=r.getFieldsValue();if(Q.domain!=null){const me=await $r.saveDomain(Q.domain);s(xe=>({...xe,...me})),r.setFieldValue("domain",me.domain)}if(Q.jiraIssuePrefix!=null){const me=await $r.saveJiraIssuePrefix(Q.jiraIssuePrefix);s(xe=>({...xe,...me})),r.setFieldValue("jiraIssuePrefix",me.jiraIssuePrefix)}if(Q.defaultEditor!=null){const me=await $r.saveDefaultEditor(Q.defaultEditor);s(xe=>({...xe,...me})),r.setFieldValue("defaultEditor",me.defaultEditor)}if(Q.defaultBrowser!=null){const me=await $r.saveDefaultBrowser(Q.defaultBrowser);s(xe=>({...xe,...me})),r.setFieldValue("defaultBrowser",me.defaultBrowser)}for(const{id:me}of y1)if(Q[me]){const xe=await $r.saveAccessToken(me,Q[me]);s(fe=>({...fe,...xe})),r.resetFields([me])}d(!1),v(!0),setTimeout(()=>v(!1),1500)}catch(Q){d(!1),Q!=null&&Q.errorFields||gn.error(Q.message)}},le=async Q=>{try{const me=await $r.saveAccessToken(Q,"");s(me),r.resetFields([Q]),gn.success(`${y1.find(xe=>xe.id===Q).label} Access Token removed.`)}catch(me){gn.error(me.message)}},Y=()=>{F(null),a.resetFields(),L(!0)},te=Q=>{F(Q),a.setFieldsValue({name:Q.name,url:Q.url}),L(!0)},se=async Q=>{try{await Qc.remove(Q),gn.success("Static page deleted."),await G(),n==null||n()}catch(me){gn.error(me.message)}},ee=async()=>{try{const Q=await a.validateFields();_(!0),D?(await Qc.update(D.id,Q),gn.success("Static page updated.")):(await Qc.create(Q),gn.success("Static page created.")),_(!1),L(!1),await G(),n==null||n()}catch(Q){_(!1),Q!=null&&Q.errorFields||gn.error(Q.message)}};return m.jsxs("div",{className:"settings-page",children:[m.jsx(wa,{actions:m.jsx(Ie,{type:"primary",color:f?"green":"primary",variant:"solid",icon:f?m.jsx(Wi,{}):null,loading:!f&&u,onClick:ne,children:f?"Saved":"Save"}),className:"settings-page-header",description:"Customize DevBuddy, manage integrations, and maintain your workspace data.",title:"Settings"}),m.jsx(Xt,{className:"settings-card settings-card-spaced settings-dev-config-entry",children:m.jsxs("div",{className:"settings-title settings-title-actions",children:[m.jsx("div",{className:"settings-icon-wrap",children:m.jsx(FC,{className:"settings-icon"})}),m.jsxs("div",{className:"settings-title-copy",children:[m.jsx(ki,{level:4,children:"Dev Configurations"}),m.jsx(zi,{type:"secondary",children:"Read and update your system-level npm and Git configuration, including Git SSH key settings."})]}),m.jsx(Ie,{onClick:()=>{window.location.hash="#/dev-configurations"},children:"Open"})]})}),m.jsxs(xt,{form:r,layout:"vertical",children:[m.jsxs(Xt,{className:"settings-card settings-card-spaced",children:[m.jsxs("div",{className:"settings-title",children:[m.jsx("div",{className:"settings-icon-wrap",children:m.jsx(e8,{className:"settings-icon"})}),m.jsxs("div",{children:[m.jsx(ki,{level:4,children:"Appearance"}),m.jsx(zi,{type:"secondary",children:"Choose how DevBuddy looks. Theme changes are applied and saved immediately."})]})]}),m.jsxs("div",{className:"settings-appearance-row",children:[m.jsxs("div",{children:[m.jsx(Hn,{strong:!0,children:"Theme"}),m.jsx(Hn,{type:"secondary",className:"settings-appearance-hint",children:"Use the original dark navigation or the new bright workspace."})]}),m.jsx(hC,{"aria-label":"Application theme",value:e,onChange:W,options:[{label:"Dark",value:"dark",icon:m.jsx(Hse,{})},{label:"Light",value:"light",icon:m.jsx(e8,{})}]})]})]}),m.jsxs(Xt,{className:"settings-card settings-card-spaced",children:[m.jsxs("div",{className:"settings-title",children:[m.jsx("div",{className:"settings-icon-wrap",children:m.jsx(Va,{className:"settings-icon"})}),m.jsxs("div",{children:[m.jsx(ki,{level:4,children:"Default Applications"}),m.jsx(zi,{type:"secondary",children:"Choose your preferred editor and browser to open files, folders, and links."})]})]}),m.jsxs("div",{className:"token-settings-form",children:[m.jsxs("div",{className:"token-row",children:[m.jsxs("div",{className:"token-row-info",children:[m.jsx(Hn,{strong:!0,className:"token-row-name",children:"Default Editor"}),m.jsx(Hn,{type:"secondary",className:"token-row-hint",children:"VS Code, Devin, or IntelliJ IDEA"})]}),m.jsx(xt.Item,{name:"defaultEditor",children:m.jsx(Vn,{options:m7,className:"settings-app-select"})})]}),m.jsxs("div",{className:"token-row",children:[m.jsxs("div",{className:"token-row-info",children:[m.jsx(Hn,{strong:!0,className:"token-row-name",children:"Default Browser"}),m.jsx(Hn,{type:"secondary",className:"token-row-hint",children:"Choose your default browser"})]}),m.jsx(xt.Item,{name:"defaultBrowser",className:"settings-form-item-flush",children:m.jsx(Vn,{options:Yce(l.isMac!==!1),className:"settings-app-select"})})]})]})]}),m.jsxs(Xt,{className:"settings-card settings-card-spaced",children:[m.jsxs("div",{className:"settings-title",children:[m.jsx("div",{className:"settings-icon-wrap",children:m.jsx(qi,{className:"settings-icon"})}),m.jsxs("div",{children:[m.jsx(ki,{level:4,children:"Data Directory"}),m.jsx(zi,{type:"secondary",children:"Local directory where settings, logs, and application data are stored."})]})]}),m.jsxs("div",{className:"token-settings-form",children:[m.jsxs("div",{className:"token-row",children:[m.jsxs("div",{className:"token-row-info",children:[m.jsx(Hn,{strong:!0,className:"token-row-name",children:"Data Storage Path"}),m.jsx(Hn,{type:"secondary",className:"token-row-hint",children:"Directory location on your file system"})]}),m.jsxs("div",{className:"settings-data-path",children:[m.jsx(Ht,{value:l.dataDir||"",readOnly:!0}),m.jsx(Ie,{icon:m.jsx(qi,{}),onClick:V,children:"Open Directory"})]})]}),m.jsxs("div",{className:"token-row",children:[m.jsxs("div",{className:"token-row-info",children:[m.jsx(Hn,{strong:!0,className:"token-row-name",children:"Storage Usage"}),m.jsx(Hn,{type:"secondary",className:"token-row-hint",children:"Total size and file count inside the data directory"})]}),m.jsxs("div",{className:"settings-data-usage",children:[m.jsx(zle,{}),m.jsx(Hn,{strong:!0,children:b?"Calculating…":Pd(g==null?void 0:g.sizeBytes)}),!b&&m.jsxs(Hn,{type:"secondary",children:["· ",(g==null?void 0:g.fileCount)||0," files"]}),m.jsx(Ie,{type:"link",size:"small",onClick:()=>y(!0),children:"Details"}),m.jsx(Ie,{type:"link",size:"small",onClick:q,loading:b,children:"Refresh"})]})]}),m.jsxs("div",{className:"token-row",children:[m.jsxs("div",{className:"token-row-info",children:[m.jsx(Hn,{strong:!0,className:"token-row-name",children:"Backup & Restore"}),m.jsx(Hn,{type:"secondary",className:"token-row-hint",children:"Includes settings, access tokens, logs, clipboard files, and other local data"})]}),m.jsxs("div",{className:"settings-backup-actions",children:[m.jsx(Ie,{icon:m.jsx(rm,{}),loading:w,onClick:B,children:"Export Backup"}),m.jsx(Ie,{icon:m.jsx(Pce,{}),loading:E,onClick:()=>{var Q;return(Q=I.current)==null?void 0:Q.click()},children:"Import Backup"}),m.jsx("input",{ref:I,className:"settings-backup-input",hidden:!0,type:"file",accept:".tar.gz,.tgz,application/gzip",onChange:K})]})]})]})]}),m.jsx(On,{title:O?"Backup restored":"Import data backup?",open:!!j,onCancel:()=>!E&&(N(null),M(!1)),onOk:()=>O?window.location.reload():U(),okText:O?"Reload DevBuddy":"Import Backup",okButtonProps:{danger:!O,loading:E},cancelText:"Cancel",closable:!E,maskClosable:!E,children:m.jsx("div",{className:"settings-import-confirm",children:O?m.jsxs("div",{className:"settings-import-complete",children:[m.jsx(Wi,{className:"settings-import-complete-icon"}),m.jsx(ki,{level:4,children:"Import completed successfully"}),m.jsx(zi,{children:"Backup data has been restored. Reload DevBuddy to apply the restored settings and files."}),m.jsxs(Hn,{type:"secondary",children:[(g==null?void 0:g.importedFiles)||0," files imported."]})]}):m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"settings-import-file-summary",children:[m.jsx(Hn,{type:"secondary",children:"Selected file"}),m.jsx(Hn,{strong:!0,children:j==null?void 0:j.name}),m.jsx(Hn,{type:"secondary",children:Pd((j==null?void 0:j.size)||0)})]}),m.jsx(zi,{children:"This backup will be restored into the data directory. Matching files will be overwritten, while other existing files will be kept."}),m.jsx(Hn,{type:"warning",children:"Restart DevBuddy after importing so all restored settings take effect."})]})})}),m.jsxs(Xt,{className:"settings-card settings-card-spaced",children:[m.jsxs("div",{className:"settings-title settings-title-actions",children:[m.jsx("div",{className:"settings-icon-wrap",children:m.jsx(Pu,{className:"settings-icon"})}),m.jsxs("div",{className:"settings-title-copy",children:[m.jsx(ki,{level:4,children:"Static Pages"}),m.jsx(zi,{type:"secondary",children:"Configure static pages (configuration saved in data/static-pages.json). Static page files can be placed in pages/ or data/pages/ directory or use external URLs."})]}),m.jsx(Ie,{type:"primary",icon:m.jsx(xr,{}),onClick:Y,children:"Add Static Page"})]}),m.jsx(Zn,{dataSource:T,rowKey:"id",pagination:!1,size:"middle",columns:[{title:"Page Name",dataIndex:"name",key:"name",width:200},{title:"URL",dataIndex:"url",key:"url",render:Q=>m.jsx("a",{href:Q,target:"_blank",rel:"noreferrer",children:Q})},{title:m.jsx("div",{className:"settings-action-column-title",children:"Action"}),key:"action",width:140,align:"right",render:(Q,me)=>m.jsxs(pt,{children:[m.jsx(Ie,{type:"link",size:"small",icon:m.jsx(Hi,{}),onClick:()=>te(me),children:"Edit"}),m.jsx(Ra,{title:"Delete static page?",description:"Are you sure you want to delete this page?",onConfirm:()=>se(me.id),okText:"Yes",cancelText:"No",children:m.jsx(Ie,{type:"link",danger:!0,size:"small",icon:m.jsx(hr,{}),children:"Delete"})})]})}]})]}),m.jsxs(Xt,{className:"settings-card",children:[m.jsxs("div",{className:"settings-title",children:[m.jsx("div",{className:"settings-icon-wrap",children:m.jsx(Pse,{className:"settings-icon"})}),m.jsxs("div",{children:[m.jsx(ki,{level:4,children:"Access Tokens & Domain"}),m.jsx(zi,{type:"secondary",children:"Tokens are stored locally and are never shown again."})]})]}),m.jsxs("div",{className:"token-settings-form",children:[m.jsxs("div",{className:"token-row",children:[m.jsxs("div",{className:"token-row-info",children:[m.jsx(Hn,{strong:!0,className:"token-row-name",children:"Domain"}),m.jsx(Hn,{type:"secondary",className:"token-row-hint",children:"e.g. abc.com"})]}),m.jsx(xt.Item,{name:"domain",rules:[{pattern:/^([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/,message:"Enter a valid domain, e.g. abc.com"}],children:m.jsx(Ht,{placeholder:"abc.com",allowClear:!0})})]}),m.jsxs("div",{className:"token-row",children:[m.jsxs("div",{className:"token-row-info",children:[m.jsx(Hn,{strong:!0,className:"token-row-name",children:"Jira Issue Prefix"}),m.jsx(Hn,{type:"secondary",className:"token-row-hint",children:"e.g. PROJ"})]}),m.jsx(xt.Item,{name:"jiraIssuePrefix",children:m.jsx(Ht,{placeholder:"PROJ",allowClear:!0})})]}),y1.map(({id:Q,label:me})=>m.jsxs("div",{className:`token-row ${Z(Q)?"is-configured":""}`,children:[m.jsxs("div",{className:"token-row-info",children:[m.jsxs("div",{className:"token-row-name-line",children:[m.jsx(Hn,{strong:!0,className:"token-row-name",children:me}),Z(Q)&&m.jsx(Vt,{color:"success",closable:!0,onClose:xe=>{xe.preventDefault(),le(Q)},className:"token-row-tag",children:"Configured"})]}),m.jsxs(Hn,{type:"secondary",className:"token-row-hint",children:[me," API access token"]})]}),m.jsx(xt.Item,{name:Q,children:m.jsx(Ht.Password,{placeholder:Z(Q)?"Enter new token to replace":"Paste access token",autoComplete:"off",allowClear:!0})})]},Q))]})]})]}),m.jsxs(On,{className:"settings-storage-modal",title:"Storage Usage Details",open:S,onCancel:()=>y(!1),width:760,footer:[m.jsx(Ie,{onClick:q,loading:b,children:"Refresh Analysis"},"refresh"),m.jsx(Ie,{type:"primary",onClick:()=>y(!1),children:"Close"},"close")],children:[m.jsx(zi,{type:"secondary",className:"settings-storage-description",children:"Size analysis for the DevBuddy data directory, grouped by top-level folder."}),m.jsxs("div",{className:"settings-storage-summary",children:[m.jsxs("div",{children:[m.jsx(Hn,{type:"secondary",children:"Total size"}),m.jsx(Hn,{strong:!0,children:b?"—":Pd(g==null?void 0:g.sizeBytes)})]}),m.jsxs("div",{children:[m.jsx(Hn,{type:"secondary",children:"Files"}),m.jsx(Hn,{strong:!0,children:b?"—":((g==null?void 0:g.fileCount)||0).toLocaleString()})]}),m.jsxs("div",{children:[m.jsx(Hn,{type:"secondary",children:"Storage groups"}),m.jsx(Hn,{strong:!0,children:b?"—":(((X=g==null?void 0:g.breakdown)==null?void 0:X.length)||0).toLocaleString()})]})]}),m.jsx(ki,{level:5,className:"settings-storage-section-title",children:"Breakdown"}),!b&&!((oe=g==null?void 0:g.breakdown)!=null&&oe.length)?m.jsx(wn,{image:wn.PRESENTED_IMAGE_SIMPLE,description:"The data directory is empty"}):m.jsx(Zn,{className:"settings-storage-table",dataSource:(g==null?void 0:g.breakdown)||[],rowKey:"path",loading:b,pagination:!1,size:"small",scroll:((J=g==null?void 0:g.breakdown)==null?void 0:J.length)>6?{y:260}:void 0,columns:[{title:"Location",dataIndex:"name",key:"name",render:(Q,me)=>m.jsxs("span",{className:"settings-storage-location",children:[me.path==="."?m.jsx(zg,{}):m.jsx(nf,{}),m.jsx(Hn,{strong:!0,children:Q})]})},{title:"Usage",key:"usage",width:250,render:(Q,me)=>{const xe=g!=null&&g.sizeBytes?me.sizeBytes/g.sizeBytes*100:0;return m.jsxs("div",{className:"settings-storage-usage-cell",children:[m.jsx(Fp,{percent:xe,showInfo:!1,size:"small"}),m.jsxs(Hn,{type:"secondary",children:[xe<.1&&xe>0?"<0.1":xe.toFixed(1),"%"]})]})}},{title:"Size",dataIndex:"sizeBytes",key:"sizeBytes",width:90,align:"right",render:Pd},{title:"Files",dataIndex:"fileCount",key:"fileCount",width:75,align:"right",render:Q=>Q.toLocaleString()}]}),!!((ae=g==null?void 0:g.largestFiles)!=null&&ae.length)&&m.jsxs(m.Fragment,{children:[m.jsx(ki,{level:5,className:"settings-storage-section-title",children:"Largest files"}),m.jsx("div",{className:"settings-largest-files",children:g.largestFiles.map(Q=>m.jsxs("div",{className:"settings-largest-file",children:[m.jsxs("span",{children:[m.jsx(zg,{}),m.jsx(Hn,{ellipsis:{tooltip:Q.path},children:Q.path})]}),m.jsx(Hn,{strong:!0,children:Pd(Q.sizeBytes)})]},Q.path))})]})]}),m.jsx(On,{title:D?"Edit Static Page":"Add Static Page",open:H,onOk:ee,onCancel:()=>L(!1),okText:"Save",confirmLoading:k,destroyOnClose:!0,children:m.jsxs(xt,{form:a,layout:"vertical",className:"settings-page-modal-form",children:[m.jsx(xt.Item,{name:"name",label:"Page Name",rules:[{required:!0,message:"Please enter page name"}],children:m.jsx(Ht,{placeholder:"e.g. test name"})}),m.jsx(xt.Item,{name:"url",label:"URL",extra:"Local pages in pages/ or data/pages/ directory can be accessed via /pages/<path> or /data/pages/<path>",rules:[{required:!0,message:"Please enter page URL"}],children:m.jsx(Ht,{placeholder:"e.g. /pages/welcome/index.html or https://example.com"})})]})})]})}const{Paragraph:_v,Text:Rr}=An,x1={npm:{prefix:"",registry:"https://registry.npmjs.org/",strictSsl:!0,cache:"",proxy:"",httpsProxy:""},git:{name:"",email:"",sshKey:""},nvm:{defaultVersion:""}};function pue(e){const t=String(e||"").replace(/^v/,""),[n="",r=""]=t.split(".");return[n,`${n}.${r}`,e]}function hue(e=[]){const t=new Map;return e.forEach(n=>{const r=typeof n=="string"?n:n.version,a=typeof n=="string"?"":n.publishedAt,[l="",s=""]=String(r).replace(/^v/,"").split(".");t.has(l)||t.set(l,new Map);const u=t.get(l),d=`${l}.${s}`;u.has(d)||u.set(d,[]),u.get(d).push({label:m.jsxs("span",{className:"npm-version-option",children:[m.jsx("span",{children:r}),a&&m.jsx("span",{className:"npm-version-published",children:new Date(a).toLocaleDateString()})]}),value:r})}),[...t.entries()].map(([n,r])=>({label:`v${n}`,value:n,children:[...r.entries()].map(([a,l])=>({label:a,value:a,children:l}))}))}function bue(){var be;const{message:e}=Jr.useApp(),[t]=xt.useForm(),[n,r]=o.useState(!1),[a,l]=o.useState(!1),[s,u]=o.useState({nodeVersion:"",npmVersion:""}),[d,f]=o.useState({installed:!1,currentVersion:"",defaultVersion:"",nvmDir:"",nodeJsMirror:"",installedVersions:[]}),[v,g]=o.useState(""),[h,b]=o.useState(!1),[x,S]=o.useState([]),[y,w]=o.useState(!1),[$,E]=o.useState(!1),[R,j]=o.useState(""),[N,O]=o.useState(""),[M,I]=o.useState([]),[T,z]=o.useState(!1),[H,L]=o.useState(!1),[D,F]=o.useState(null),[k,_]=o.useState(""),[V,W]=o.useState([]),[q,B]=o.useState([]),[K,U]=o.useState(!1),[G,Z]=o.useState(""),[ne,le]=o.useState(!1);o.useEffect(()=>{$r.devConfigurations().then(he=>{var Ce,Se,Re,Te,Ke;f(he.nvm||x1.nvm),S(((Ce=he.npm)==null?void 0:Ce.globalPackages)||[]),u({nodeVersion:((Se=he.npm)==null?void 0:Se.nodeVersion)||"",npmVersion:((Re=he.npm)==null?void 0:Re.npmVersion)||""}),t.setFieldsValue({npm:{...x1.npm,...he.npm},git:{...x1.git,...he.git},nvm:{defaultVersion:((Te=he.nvm)==null?void 0:Te.defaultVersion)||"",nodeJsMirror:((Ke=he.nvm)==null?void 0:Ke.nodeJsMirror)||""}})}).catch(he=>gn.error(he.message))},[t]);const Y=async()=>{try{const he=await t.validateFields();r(!0);const Ce=await $r.saveDevConfigurations(he);t.setFieldsValue(Ce),Ce.nvm&&f(Ce.nvm),l(!0),window.setTimeout(()=>l(!1),1500)}catch(he){he!=null&&he.errorFields||gn.error(he.message)}finally{r(!1)}},te=async()=>{if(v.trim()){b(!0);try{const he=await Vce.install(v.trim());f(he),g(""),gn.success(`Installed Node.js ${he.currentVersion||v.trim()}.`)}catch(he){gn.error(he.message)}finally{b(!1)}}},se=async()=>{var he;w(!0);try{const Ce=await $r.devConfigurations();S(((he=Ce.npm)==null?void 0:he.globalPackages)||[])}catch(Ce){gn.error(Ce.message)}finally{w(!1)}},ee=async(he,Ce)=>{j(`${he}:${Ce}`);try{S(await Kd.manage(he,Ce)),e.success(`${Ce} ${he==="uninstall"?"uninstalled":"upgraded"}.`)}catch(Se){gn.error(Se.message)}finally{j("")}},X=async()=>{if(N.trim()){L(!0);try{I(await Kd.search(N.trim())),z(!1)}catch(he){gn.error(he.message)}finally{L(!1)}}},oe=async()=>{if(D){le(!0);try{const he=k.trim()?`${D.name}@${k.trim()}`:D.name;S(await Kd.manage("install",he)),F(null),I([]),O(""),e.success(`${he} installed.`)}catch(he){gn.error(he.message)}finally{le(!1)}}},J=async he=>{var Ce;U(!0),Z(he.name);try{const Se=await Kd.versions(he.name),Re=Se.length?Se:he.version?[{version:he.version,publishedAt:""}]:[],Te=he.version||((Ce=Re[0])==null?void 0:Ce.version)||"";B(Re),_(Te),W(pue(Te)),F(he)}catch(Se){gn.error(Se.message)}finally{U(!1),Z("")}},ae=[{title:"Package",dataIndex:"name",key:"name",render:he=>m.jsx(Rr,{code:!0,children:he})},{title:"Version",dataIndex:"version",key:"version",render:he=>m.jsx(Vt,{children:he||"unknown"})},{title:"Actions",key:"actions",align:"right",render:(he,Ce)=>m.jsxs("div",{className:"npm-package-actions",children:[m.jsx(Ie,{size:"small",loading:R===`upgrade:${Ce.name}`,onClick:()=>ee("upgrade",Ce.name),children:"Upgrade"}),m.jsx(Ra,{title:`Uninstall ${Ce.name}?`,onConfirm:()=>ee("uninstall",Ce.name),okText:"Uninstall",okButtonProps:{danger:!0},children:m.jsx(Ie,{size:"small",danger:!0,loading:R===`uninstall:${Ce.name}`,children:"Uninstall"})})]})}],Q=m.jsxs(Xt,{className:"dev-config-card",bordered:!1,children:[m.jsxs("div",{className:"dev-config-section-heading",children:[m.jsx("div",{className:"dev-config-icon npm-icon",children:m.jsx(Va,{})}),m.jsxs("div",{children:[m.jsx(Rr,{strong:!0,children:"NPM configuration"}),m.jsx(_v,{type:"secondary",children:"Set the defaults used by npm when installing and publishing packages."})]})]}),m.jsxs("div",{className:"npm-runtime-status",children:[m.jsxs("div",{children:[m.jsx(Rr,{type:"secondary",children:"Current Node.js"}),m.jsx(Rr,{strong:!0,children:s.nodeVersion||"—"})]}),m.jsxs("div",{children:[m.jsx(Rr,{type:"secondary",children:"Current npm"}),m.jsx(Rr,{strong:!0,children:s.npmVersion||"—"})]})]}),m.jsxs("div",{className:"dev-config-grid",children:[m.jsx(xt.Item,{label:"Prefix",name:["npm","prefix"],extra:"Global package installation directory.",children:m.jsx(Ht,{placeholder:"/usr/local"})}),m.jsx(xt.Item,{label:"Registry",name:["npm","registry"],rules:[{type:"url",warningOnly:!0}],children:m.jsx(Ht,{placeholder:"https://registry.npmjs.org/"})}),m.jsx(xt.Item,{label:"Cache",name:["npm","cache"],extra:"Leave blank to use npm's default cache location.",children:m.jsx(Ht,{placeholder:"~/.npm"})}),m.jsx(xt.Item,{label:"Proxy",name:["npm","proxy"],children:m.jsx(Ht,{placeholder:"http://proxy.example.com:8080"})}),m.jsx(xt.Item,{label:"HTTPS Proxy",name:["npm","httpsProxy"],children:m.jsx(Ht,{placeholder:"http://proxy.example.com:8080"})}),m.jsx(xt.Item,{label:"Strict SSL",name:["npm","strictSsl"],valuePropName:"checked",extra:"Verify SSL certificates when connecting to the registry.",children:m.jsx(Wl,{})})]}),m.jsx("div",{className:"npm-global-packages",children:m.jsxs("div",{className:"npm-global-packages-heading",children:[m.jsxs("div",{children:[m.jsx(Rr,{strong:!0,children:"Global packages"}),m.jsx(_v,{type:"secondary",children:"Manage packages installed globally by the system npm."})]}),m.jsxs(Ie,{icon:m.jsx(Ui,{}),loading:y,onClick:()=>{E(!0),se()},children:["Manage (",x.length,")"]})]})})]}),me=m.jsxs(Xt,{className:"dev-config-card",bordered:!1,children:[m.jsxs("div",{className:"dev-config-section-heading",children:[m.jsx("div",{className:"dev-config-icon git-icon",children:m.jsx(ix,{})}),m.jsxs("div",{children:[m.jsx(Rr,{strong:!0,children:"GIT identity"}),m.jsx(_v,{type:"secondary",children:"Configure the author identity Git uses for new commits."})]})]}),m.jsxs("div",{className:"dev-config-grid git-grid",children:[m.jsx(xt.Item,{label:"Name",name:["git","name"],children:m.jsx(Ht,{placeholder:"Ada Lovelace"})}),m.jsx(xt.Item,{label:"Email",name:["git","email"],rules:[{type:"email",warningOnly:!0}],children:m.jsx(Ht,{placeholder:"ada@example.com"})}),m.jsx(xt.Item,{className:"git-ssh-key",label:"SSH Key",name:["git","sshKey"],extra:"Private key path used by Git SSH, for example ~/.ssh/id_ed25519.",children:m.jsx(Ht,{placeholder:"~/.ssh/id_ed25519"})})]})]}),xe=m.jsxs(Xt,{className:"dev-config-card",bordered:!1,children:[m.jsxs("div",{className:"dev-config-section-heading",children:[m.jsx("div",{className:"dev-config-icon nvm-icon",children:m.jsx(Va,{})}),m.jsxs("div",{children:[m.jsx(Rr,{strong:!0,children:"NVM configuration"}),m.jsx(_v,{type:"secondary",children:"Manage Node.js versions through the system NVM installation."})]})]}),m.jsxs("div",{className:"nvm-status-grid",children:[m.jsxs("div",{children:[m.jsx(Rr,{type:"secondary",children:"NVM version"}),m.jsx(Rr,{strong:!0,children:d.version||"—"})]}),m.jsxs("div",{children:[m.jsx(Rr,{type:"secondary",children:"Current using version"}),m.jsx(Rr,{strong:!0,children:d.currentVersion||"—"})]}),m.jsxs("div",{children:[m.jsx(Rr,{type:"secondary",children:"NVM directory"}),m.jsx(Rr,{strong:!0,children:d.nvmDir||"—"})]})]}),m.jsxs("div",{className:"dev-config-grid nvm-grid",children:[m.jsx(xt.Item,{label:"Node.js download mirror",name:["nvm","nodeJsMirror"],extra:"Saved as NVM_NODEJS_ORG_MIRROR in your shell profile.",children:m.jsx(Ht,{placeholder:"https://nodejs.org/dist"})}),m.jsx(xt.Item,{label:"Default Node.js version",name:["nvm","defaultVersion"],extra:"Applied through nvm alias default when you save.",children:m.jsx(Ht,{placeholder:"20"})}),m.jsx(xt.Item,{label:"Install Node.js version",extra:"Examples: 20, 20.11.1, lts/*",children:m.jsx(Ht,{value:v,onChange:he=>g(he.target.value),addonAfter:m.jsx(Ie,{type:"link",loading:h,onClick:te,children:"Install"}),placeholder:"22"})})]}),m.jsxs("div",{className:"nvm-installed-versions",children:[m.jsx(Rr,{type:"secondary",children:"Installed versions"}),m.jsx("div",{children:(be=d.installedVersions)!=null&&be.length?d.installedVersions.map(he=>m.jsx(Vt,{children:he},he)):m.jsx(Rr,{type:"secondary",children:"None found"})})]})]}),fe=m.jsxs(On,{title:"Global packages",open:$,onCancel:()=>!R&&!ne&&E(!1),footer:null,width:760,children:[m.jsxs("div",{className:"npm-install-row",children:[m.jsx(Ht,{value:N,onChange:he=>O(he.target.value),onPressEnter:X,placeholder:"Search npm packages"}),m.jsx(Ie,{type:"primary",loading:H,disabled:!N.trim(),onClick:X,children:"Search"}),m.jsx(Ie,{icon:m.jsx(Ui,{}),loading:y,onClick:se,children:"Refresh"})]}),M.length>0&&m.jsxs(m.Fragment,{children:[m.jsx(Rr,{strong:!0,children:"Search results"}),m.jsx(Zn,{className:"npm-search-results",rowKey:"name",size:"small",dataSource:T?M:M.slice(0,5),pagination:!1,columns:[{title:"Package",dataIndex:"name",render:he=>m.jsx(Rr,{code:!0,children:he})},{title:"Version",dataIndex:"version"},{title:"Description",dataIndex:"description",ellipsis:!0},{title:"",key:"install",align:"right",render:(he,Ce)=>m.jsx(Ie,{size:"small",type:"primary",loading:K&&Ce.name===G,onClick:()=>J(Ce),children:"Install"})}]}),M.length>5&&m.jsx(Ie,{className:"npm-show-more",type:"link",onClick:()=>z(he=>!he),children:T?"Show fewer":`Show more (${M.length-5})`}),m.jsx(zp,{})]}),m.jsx(Zn,{className:"npm-global-package-table",rowKey:"name",size:"small",loading:y,dataSource:x,columns:ae,pagination:!1,locale:{emptyText:"No global packages found."}})]}),ye=m.jsx(On,{className:"npm-install-confirm-modal",width:560,title:"Install global package?",open:!!D,onCancel:()=>!ne&&F(null),onOk:oe,okText:ne?"Installing…":"Install",confirmLoading:ne,closable:!ne,maskClosable:!ne,children:ne?m.jsxs("div",{className:"npm-install-progress",children:[m.jsx(Xr,{}),m.jsxs(Rr,{children:["Installing ",m.jsxs("strong",{children:[D==null?void 0:D.name,k?`@${k}`:""]})," globally with npm…"]}),m.jsx(Rr,{type:"secondary",children:"This may take a moment. The package list will refresh when it finishes."})]}):m.jsxs("div",{className:"npm-install-confirm",children:[m.jsx(Rr,{children:"Choose the version to install:"}),m.jsx(Zs,{className:"npm-version-select",popupClassName:"npm-version-picker",value:V,onChange:he=>{const Ce=he||[];W(Ce),_(Ce.length?Ce[Ce.length-1]:"")},options:hue(q),placeholder:"Select a version",expandTrigger:"hover",displayRender:he=>he.length?he[he.length-1]:""}),m.jsx(Rr,{type:"secondary",children:"Versions are grouped by major and minor release. Publish dates are shown on the patch version."})]})});return m.jsxs("div",{className:"dev-configurations-page",children:[m.jsx(wa,{actions:m.jsx(Ie,{type:"primary",icon:a?m.jsx(Wi,{}):null,loading:!a&&n,onClick:Y,children:a?"Saved":"Save"}),description:"Read and update the system-level npm and Git configuration used across your development workflow.",eyebrow:"DEVELOPMENT",title:"Dev Configurations"}),m.jsx(xt,{form:t,layout:"vertical",children:m.jsx(Mo,{defaultActiveKey:"npm",items:[{key:"npm",label:"NPM",icon:m.jsx(Va,{}),children:m.jsxs(m.Fragment,{children:[Q,fe,ye]})},{key:"git",label:"GIT",icon:m.jsx(ix,{}),children:me},{key:"nvm",label:"NVM",icon:m.jsx(Va,{}),disabled:!d.installed,children:xe}]})})]})}const{Title:yue,Text:no,Paragraph:xue}=An,{Dragger:Cue}=Gp,i8=(e=0)=>{if(!e)return"0 B";const t=["B","KB","MB","GB"],n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),t.length-1);return`${(e/1024**n).toFixed(n?1:0)} ${t[n]}`},Sue=e=>({file:e,name:e.name||"clipboard-image.png",url:URL.createObjectURL(e),size:e.size});function wue(){const[e,t]=o.useState(null),[n,r]=o.useState(null),[a,l]=o.useState(75),[s,u]=o.useState(!0),[d,f]=o.useState(!0),[v,g]=o.useState(!0),[h,b]=o.useState(2),[x,S]=o.useState(!1),[y,w]=o.useState(null),[$,E]=o.useState(100),[R,j]=o.useState(!1),[N,O]=o.useState(!1),[M,I]=gn.useMessage(),T=o.useRef(null),z=o.useRef(null),H=q=>{var B;(B=q.current)!=null&&B.url&&URL.revokeObjectURL(q.current.url)},L=q=>{var K;if(!((K=q==null?void 0:q.type)!=null&&K.startsWith("image/")))return M.error("Please choose an image file."),!1;H(T),H(z);const B=Sue(q);return T.current=B,z.current=null,t(B),r(null),_(q),!1},D=q=>{var B;return[...((B=q.dataTransfer)==null?void 0:B.types)||[]].includes("Files")},F=q=>{var K;q.preventDefault(),O(!1);const B=[...((K=q.dataTransfer)==null?void 0:K.files)||[]].find(U=>U.type.startsWith("image/"));B?L(B):M.error("Drop an image file to compress it.")};o.useEffect(()=>()=>{H(T),H(z)},[]),o.useEffect(()=>{const q=B=>{var G;const K=[...((G=B.clipboardData)==null?void 0:G.items)||[]].find(Z=>Z.type.startsWith("image/"));if(!K)return;B.preventDefault();const U=K.getAsFile();U&&(L(new File([U],`clipboard-${Date.now()}.${U.type.split("/")[1]||"png"}`,{type:U.type})),M.success("Image read from clipboard."))};return window.addEventListener("paste",q),()=>window.removeEventListener("paste",q)},[M]);const k=async()=>{var q;try{if(!((q=navigator.clipboard)!=null&&q.read))throw new Error("Direct clipboard reading is unavailable. Paste an image with ⌘ / Ctrl + V instead.");const B=await navigator.clipboard.read();for(const K of B){const U=K.types.find(G=>G.startsWith("image/"));if(U){const G=await K.getType(U);L(new File([G],`clipboard-${Date.now()}.${U.split("/")[1]||"png"}`,{type:U})),M.success("Image read from clipboard.");return}}throw new Error("No image was found in the clipboard.")}catch(B){M.warning(B.message||"Unable to read an image from the clipboard.")}},_=async(q=e==null?void 0:e.file)=>{if(q){j(!0);try{const[{encode:B},{imageData:K,width:U,height:G}]=await Promise.all([d7(()=>import("./index-Dty-56mC.js"),[]),f7(q,y,$)]),Z=await B(K,{quality:a,progressive:s,optimize_coding:d,auto_subsample:v,chroma_subsample:h,trellis_multipass:x});H(z);const ne=new Blob([Z],{type:"image/jpeg"}),le={url:URL.createObjectURL(ne),size:ne.size,width:U,height:G};z.current=le,r(le),M.success("MozJPEG compression complete.")}catch(B){M.error(B.message||"Image compression failed.")}finally{j(!1)}}},V=()=>{if(!n)return;const q=e.name.replace(/\.[^.]+$/,"")||"image",B=document.createElement("a");B.href=n.url,B.download=`${q}-mozjpeg.jpg`,B.click()},W=n&&e?Math.round((1-n.size/e.size)*100):null;return m.jsxs(m.Fragment,{children:[I,m.jsxs("div",{className:`squoosh-page ${N?"is-file-dragging":""}`,onDragOver:q=>{D(q)&&(q.preventDefault(),O(!0))},onDragLeave:q=>{q.currentTarget===q.target&&O(!1)},onDrop:F,children:[m.jsx(wa,{actions:m.jsxs(pt,{children:[m.jsx(Ie,{icon:m.jsx(Xo,{}),onClick:k,children:"Read clipboard"}),m.jsx(Ie,{type:"primary",icon:m.jsx(ax,{}),onClick:()=>_(),disabled:!e,loading:R,children:"Compress"})]}),description:"Compress JPEG images locally while balancing visual quality and file size.",title:"Image compression"}),m.jsxs("div",{className:"squoosh-studio",children:[m.jsxs("div",{className:"squoosh-preview-area",children:[m.jsx(l8,{title:"Original",detail:e?`${i8(e.size)} · ${e.name}`:"Choose an image to begin",children:e?m.jsx(s8,{label:"Original image",image:e.url}):m.jsxs(Cue,{accept:"image/*",multiple:!1,showUploadList:!1,beforeUpload:L,className:"image-dropzone",children:[m.jsx("p",{className:"ant-upload-drag-icon",children:m.jsx(Mf,{})}),m.jsx("p",{className:"ant-upload-text",children:"Drop an image or click to choose"}),m.jsx("p",{className:"ant-upload-hint",children:"Or paste an image with ⌘ / Ctrl + V."})]})}),m.jsx(l8,{title:"MozJPEG output",detail:n?`${i8(n.size)} · ${n.width} × ${n.height}`:"Waiting for compression",action:n&&m.jsx(Ie,{type:"primary",size:"small",icon:m.jsx(rm,{}),onClick:V,children:"Download"}),children:R?m.jsx("div",{className:"image-loading",children:m.jsx(Xr,{tip:"Compressing…"})}):n?m.jsxs(m.Fragment,{children:[m.jsx(s8,{label:"Compressed JPEG",image:n.url}),W!==null&&m.jsx("div",{className:`compression-saving ${W>0?"is-saving":""}`,children:W>0?`${W}% smaller`:"No size reduction at current settings."})]}):m.jsx(wn,{image:wn.PRESENTED_IMAGE_SIMPLE,description:"Compressed preview"})})]}),m.jsxs("aside",{className:"squoosh-settings",children:[m.jsxs("div",{className:"settings-heading",children:[m.jsx(no,{children:"ENCODER"}),m.jsx(yue,{level:4,children:"MozJPEG"}),m.jsx(xue,{children:"Fine-tune output size and image quality."})]}),m.jsxs("div",{className:"option-row",children:[m.jsxs("div",{children:[m.jsx(no,{strong:!0,children:"Quality"}),m.jsx("br",{}),m.jsx(no,{type:"secondary",children:"Higher values preserve more detail."})]}),m.jsx(Vt,{color:"purple",children:a})]}),m.jsx(TY,{min:1,max:100,value:a,onChange:l,tooltip:{formatter:q=>`${q}`}}),m.jsxs("div",{className:"option-select",children:[m.jsxs("div",{children:[m.jsx(no,{strong:!0,children:"Long edge"}),m.jsx("br",{}),m.jsx(no,{type:"secondary",children:"Scale the longest edge to this value. Never crops the image."})]}),m.jsx(wf,{min:1,max:16384,value:y,onChange:w,placeholder:"Original",addonAfter:"px"})]}),m.jsxs("div",{className:"option-select",children:[m.jsxs("div",{children:[m.jsx(no,{strong:!0,children:"Scale"}),m.jsx("br",{}),m.jsx(no,{type:"secondary",children:"Scale the image by percentage."})]}),m.jsx(wf,{min:1,max:100,value:$,onChange:E,placeholder:"100",addonAfter:"%",allowClear:!0})]}),m.jsx(Bv,{label:"Progressive JPEG",description:"Display a low-detail preview while loading.",checked:s,onChange:u}),m.jsx(Bv,{label:"Optimize coding",description:"Reduce size without changing image quality.",checked:d,onChange:f}),m.jsx(xg,{ghost:!0,className:"advanced-options",items:[{key:"advanced",label:"Advanced settings",children:m.jsxs(m.Fragment,{children:[m.jsx(Bv,{label:"Automatic chroma subsampling",description:"Pick sampling based on the image content.",checked:v,onChange:g}),m.jsxs("div",{className:"option-select",children:[m.jsxs("div",{children:[m.jsx(no,{strong:!0,children:"Chroma subsampling"}),m.jsx("br",{}),m.jsx(no,{type:"secondary",children:"Enabled when automatic mode is off."})]}),m.jsx(Vn,{disabled:v,value:h,onChange:b,options:[{value:0,label:"4:4:4 (colour detail)"},{value:1,label:"4:2:2 (balanced)"},{value:2,label:"4:2:0 (smaller file)"}]})]}),m.jsx(Bv,{label:"Trellis multi-pass",description:"Further size reduction with a longer encode time.",checked:x,onChange:S})]})}]}),m.jsx(Ie,{type:"primary",size:"large",block:!0,icon:m.jsx(ax,{}),onClick:()=>_(),disabled:!e,loading:R,children:"Compress image"})]})]})]})]})}function l8({title:e,detail:t,action:n,children:r}){return m.jsxs("div",{className:"preview-pane",children:[m.jsxs("header",{children:[m.jsxs("div",{children:[m.jsx(no,{children:e}),m.jsx("span",{children:t})]}),n]}),m.jsx("div",{className:"preview-canvas",children:r})]})}function Bv({label:e,description:t,checked:n,onChange:r}){return m.jsxs("div",{className:"option-switch",children:[m.jsxs("div",{children:[m.jsx(no,{strong:!0,children:e}),m.jsx("br",{}),m.jsx(no,{type:"secondary",children:t})]}),m.jsx(Wl,{checked:n,onChange:r})]})}function s8({label:e,image:t,metadata:n}){return m.jsxs("div",{className:"image-panel",children:[m.jsx("img",{src:t,alt:e}),n&&m.jsx("div",{className:"image-panel-meta",children:m.jsx(no,{type:"secondary",children:n})})]})}const{Paragraph:$ue,Text:xa}=An;function Eue({prs:e,selectedPrKeys:t,onToggleSelectPr:n,onSelectPr:r}){return e.length===0?m.jsx(wn,{className:"pr-review-empty",description:"No open pull requests found."}):m.jsx("div",{className:"pr-review-list",children:e.map(a=>{var d,f,v,g,h,b,x,S,y;const l=a.reviewUrl||"",s=a.reviewUrl||a.id,u=t.includes(s);return m.jsx(Xt,{size:"small",hoverable:!0,className:`pr-review-list-item ${u?"is-selected":""}`,onClick:()=>l&&r(l),children:m.jsxs("div",{className:"pr-review-list-row",children:[m.jsxs("div",{className:"pr-review-list-primary",children:[m.jsx(Fr,{checked:u,onChange:w=>{w.stopPropagation(),n(s)},onClick:w=>w.stopPropagation()}),m.jsxs("div",{className:"pr-review-list-copy",children:[m.jsxs(pt,{size:8,wrap:!0,children:[m.jsxs(xa,{strong:!0,className:"pr-review-list-title",children:["#",a.id," ",a.title]}),a.draft&&m.jsx(Vt,{color:"gold",children:"Draft"})]}),m.jsxs("div",{className:"pr-review-list-meta",children:[m.jsxs(xa,{type:"secondary",style:{fontWeight:500},children:[(v=(f=(d=a.fromRef)==null?void 0:d.repository)==null?void 0:f.project)==null?void 0:v.key," / ",(h=(g=a.fromRef)==null?void 0:g.repository)==null?void 0:h.slug]}),m.jsx("span",{className:"pr-review-list-separator",children:"|"}),m.jsx(Vt,{size:"small",className:"pr-review-branch-tag",children:(b=a.fromRef)==null?void 0:b.displayId}),m.jsx(Is,{style:{fontSize:"10px"}}),m.jsx(Vt,{size:"small",className:"pr-review-branch-tag",children:(x=a.toRef)==null?void 0:x.displayId}),m.jsx("span",{className:"pr-review-list-separator",children:"|"}),m.jsxs("span",{children:["Author: ",m.jsx("strong",{children:(y=(S=a.author)==null?void 0:S.user)==null?void 0:y.displayName})]}),m.jsx("span",{className:"pr-review-list-separator",children:"|"}),m.jsxs("span",{children:["Updated: ",new Date(a.updatedDate).toLocaleDateString()]})]})]})]}),m.jsxs(pt,{size:8,children:[m.jsx(Ie,{size:"small",icon:m.jsx(rf,{}),onClick:w=>{w.stopPropagation(),l&&oa(l)},children:"Open"}),m.jsx(Ie,{type:"primary",size:"small",onClick:w=>{w.stopPropagation(),l&&r(l)},children:"Review"})]})]})},s)})})}function c8(){const e=window.location.hash||"";if(e.includes("#/pr-review/detail")){const t=e.indexOf("?");if(t!==-1)return new URLSearchParams(e.slice(t)).get("url")||""}return""}function jue(){const[e]=xt.useForm(),[t,n]=o.useState(!1),[r,a]=o.useState(!0),[l,s]=o.useState(null),[u,d]=o.useState(()=>c8()),[f,v]=o.useState(!1),[g,h]=o.useState([]),[b,x]=o.useState([]),[S,y]=o.useState(!1),[w,$]=o.useState("review"),[E,R]=o.useState([]),[j,N]=o.useState(!1),[O,M]=o.useState(null),[I,T]=o.useState(""),[z,H]=o.useState(!1),[L,D]=o.useState(new Set),F=async()=>{y(!0);try{const[te,se]=await Promise.all([Av.myPrs().catch(()=>({values:[]})),Av.reviewPrs().catch(()=>({values:[]}))]);h((te==null?void 0:te.values)||[]),x((se==null?void 0:se.values)||[])}catch{}y(!1)};o.useEffect(()=>{$r.status().then(te=>{a(te.bitbucketTokenConfigured),te.bitbucketTokenConfigured&&F()}).catch(()=>{})},[]),o.useEffect(()=>{const te=()=>{const se=c8();d(se)};return window.addEventListener("hashchange",te),()=>window.removeEventListener("hashchange",te)},[]),o.useEffect(()=>{if(!u){s(null),n(!1);return}e.setFieldsValue({prLink:u}),n(!0),s(null),Av.check(u).then(te=>{s(te),D(new Set),gn.success("PR Review completed successfully.")}).catch(te=>{gn.error(te.message)}).finally(()=>{n(!1)})},[u]);const k=w==="review"?b:g,_=te=>{$(te),R([])},V=te=>{R(se=>se.includes(te)?se.filter(ee=>ee!==te):[...se,te])},W=te=>{if(te.target.checked){const se=k.map(ee=>ee.reviewUrl||ee.id);R(se)}else R([])},q=()=>{const se=k.filter(X=>E.includes(X.reviewUrl||X.id)).map(X=>X.reviewUrl).filter(Boolean);if(se.length===0){gn.warning("No PR URLs selected");return}const ee=se.join(`
498
498
  `);navigator.clipboard.writeText(ee),gn.success(`Copied ${se.length} PR URL(s) to clipboard`)},B=k.length>0&&k.every(te=>E.includes(te.reviewUrl||te.id)),K=E.length>0&&!B,U=te=>{const se=typeof te=="string"?te:te==null?void 0:te.prLink;if(!se||!se.trim())return;const ee=se.trim();window.location.hash=`#/pr-review/detail?url=${encodeURIComponent(ee)}`},G=()=>{window.location.hash.includes("#/pr-review/detail")?window.location.hash="#/pr-review":window.history.back()},Z=(te,se)=>{const ee=`${te}:${se.line}:${se.rule}`,X=`⚠️ [${se.severity.toUpperCase()}] ${se.rule}: ${se.message}
499
499
  \`\`\`javascript
@@ -544,4 +544,4 @@ ${N.details||""}`;navigator.clipboard.writeText(O),h(N.id),setTimeout(()=>{h(M=>
544
544
 
545
545
  ## 01. Opening · 3 min
546
546
 
547
- What should the audience take away?`,rows:18,value:h})]}),m.jsxs("section",{className:"presentation-brief",children:[m.jsxs("div",{className:"presentation-brief-main",children:[m.jsxs("div",{className:"presentation-brief-fields",children:[m.jsxs("label",{children:[m.jsx("span",{children:"Presentation title"}),m.jsx(Ht,{onChange:V=>R({title:V.target.value}),value:a.title})]}),m.jsxs("label",{children:[m.jsx("span",{children:"Subtitle / promise"}),m.jsx(Ht,{onChange:V=>R({subtitle:V.target.value}),value:a.subtitle})]}),m.jsxs("label",{children:[m.jsx("span",{children:"Presenter"}),m.jsx(Ht,{onChange:V=>R({presenter:V.target.value}),value:a.presenter})]}),m.jsxs("label",{children:[m.jsx("span",{children:"Planned date"}),m.jsx(ec,{allowClear:!0,format:"MMM D, YYYY",onChange:V=>R({plannedDate:V?V.format("YYYY-MM-DD"):""}),value:a.plannedDate?ra(a.plannedDate):null})]})]}),m.jsxs("div",{className:"presentation-brief-options",children:[m.jsxs("div",{className:"presentation-display-option presentation-theme-option",children:[m.jsxs("span",{children:[m.jsx("strong",{children:"Audience theme"}),m.jsx("small",{children:"Audience view appearance"})]}),m.jsx(hC,{onChange:V=>R({audienceTheme:V}),options:[{label:"Light",value:"light"},{label:"Dark",value:"dark"}],size:"small",value:a.audienceTheme})]}),m.jsxs("label",{className:"presentation-display-option",children:[m.jsxs("span",{children:[m.jsx("strong",{children:"Show time boxes"}),m.jsx("small",{children:"Audience view · all sections"})]}),m.jsx(Wl,{"aria-label":"Show time boxes for all sections in the audience view",checked:a.showTimeBoxes,onChange:V=>R({showTimeBoxes:V}),size:"small"})]}),m.jsxs("label",{className:"presentation-display-option",children:[m.jsxs("span",{children:[m.jsx("strong",{children:"Show DevBuddy logo"}),m.jsx("small",{children:"Audience view header"})]}),m.jsx(Wl,{"aria-label":"Show DevBuddy logo in the audience view",checked:a.showAudienceLogo,onChange:V=>R({showAudienceLogo:V}),size:"small"})]})]})]}),m.jsx("div",{className:"presentation-brief-side",children:m.jsxs("div",{className:"presentation-brief-stats",children:[m.jsxs("div",{children:[m.jsx("strong",{children:a.sections.length}),m.jsx("span",{children:"sections"})]}),m.jsxs("div",{children:[m.jsx("strong",{children:w}),m.jsx("span",{children:"minutes"})]}),m.jsxs("div",{children:[m.jsxs("strong",{children:[$,"%"]}),m.jsx("span",{children:"progress"})]})]})})]}),m.jsxs("div",{className:"presentation-progress-strip",children:[m.jsxs("div",{children:[m.jsx("span",{children:"Current section"}),m.jsx("strong",{children:y.title})]}),m.jsx(Fp,{percent:$,showInfo:!1}),m.jsxs(Al,{children:[a.activeIndex+1," of ",a.sections.length]})]}),m.jsxs("div",{className:"presentation-workspace",children:[m.jsx(Ede,{onAdd:N,onDelete:M,onMove:O,onSelect:V=>R({activeIndex:V}),plan:a}),m.jsx(jde,{index:a.activeIndex,onChange:j,section:y,total:a.sections.length}),m.jsx(Ode,{now:s,onAddNote:H,onNext:()=>z(1),onPrevious:()=>z(-1),onResetTimer:T,onToggleTimer:I,plan:a})]})]})}function Rde(){const{message:e}=Jr.useApp(),[t,n]=o.useState(O8),r=o.useRef(!1),[a,l]=o.useState(null),[s,u]=o.useState(!1),[d,f]=o.useState("");o.useEffect(()=>{let h=!1;return(async()=>{try{const x=await af.get();if(h)return;if(Array.isArray(x.plans)&&x.plans.length>0)n(x.plans.map(si));else{const S=O8();n(S),await af.save(S)}r.current=!0}catch{r.current=!0}})(),()=>{h=!0}},[]),o.useEffect(()=>{r.current&&af.save(t)},[t]);const v=t.find(h=>h.id===a);if(v)return m.jsx(Nde,{initialPlan:v,onBack:()=>l(null),onPlanChange:h=>{n(b=>b.map(x=>x.id===h.id?h:x))}},v.id);const g=()=>{const h=wde(d);n(b=>[h,...b]),f(""),u(!1),l(h.id)};return m.jsxs("div",{className:"presentation-page presentation-library-page",children:[m.jsx(wa,{actions:m.jsx(Ie,{icon:m.jsx(xr,{}),onClick:()=>u(!0),type:"primary",children:"Add presentation"}),className:"presentation-header presentation-library-header",copyClassName:"presentation-header-copy",description:"Plan the story, prepare your speaker console, and keep every presentation ready to run.",title:"Presentations"}),t.length>0?m.jsx("div",{className:"presentation-library-grid",children:t.map(h=>{const b=h.sections.reduce((S,y)=>S+y.duration,0),x=UC(h);return m.jsxs("div",{className:"presentation-library-item-wrapper",children:[m.jsxs("button",{className:"presentation-library-item",onClick:()=>l(h.id),type:"button",children:[m.jsx("span",{className:"presentation-library-icon",children:m.jsx(Ql,{})}),m.jsxs("span",{className:"presentation-library-item-copy",children:[m.jsx("span",{className:"presentation-library-item-topline",children:m.jsx("strong",{children:h.title})}),m.jsx("span",{className:"presentation-library-subtitle",children:h.subtitle||"No subtitle yet"})]}),m.jsxs("span",{className:"presentation-library-progress",children:[m.jsx("i",{children:m.jsx("b",{style:{width:`${x}%`}})}),m.jsxs("em",{children:[x,"%"]})]}),m.jsxs("span",{className:"presentation-library-meta",children:[m.jsxs("span",{children:[h.sections.length," sections"]}),m.jsxs("span",{children:[b," min"]}),h.plannedDate&&m.jsx("span",{children:S7(h.plannedDate)}),m.jsxs("span",{children:["Updated ",new Date(h.updatedAt||Date.now()).toLocaleDateString()]})]})]}),m.jsx(Ra,{cancelText:"Cancel",description:"This presentation and its quick captures will be permanently removed.",okButtonProps:{danger:!0},okText:"Delete",onConfirm:()=>{n(S=>S.filter(y=>y.id!==h.id)),e.success("Presentation deleted.")},title:`Delete “${h.title||"Untitled presentation"}”?`,children:m.jsx(Ie,{"aria-label":`Delete ${h.title||"presentation"}`,className:"presentation-library-delete",danger:!0,icon:m.jsx(hr,{}),size:"small",type:"text"})})]},h.id)})}):m.jsx(Xt,{className:"presentation-library-empty",children:m.jsx(wn,{description:"No presentations yet",image:wn.PRESENTED_IMAGE_SIMPLE,children:m.jsx(Ie,{icon:m.jsx(xr,{}),onClick:()=>u(!0),type:"primary",children:"Add presentation"})})}),m.jsx(On,{okButtonProps:{disabled:!d.trim()},okText:"Create presentation",onCancel:()=>{u(!1),f("")},onOk:g,open:s,title:"New presentation",children:m.jsxs("label",{className:"presentation-create-field",children:[m.jsx("span",{children:"Presentation title"}),m.jsx(Ht,{autoFocus:!0,onChange:h=>f(h.target.value),onPressEnter:()=>{d.trim()&&g()},placeholder:"e.g. Q3 product strategy",value:d})]})})]})}function Ide(){const[e,t]=o.useState(()=>si(Ll)),[n,r]=o.useState(Date.now()),[a,l]=o.useState(!!document.fullscreenElement),s=o.useRef(null);o.useEffect(()=>{af.get().then(h=>{h.activePlan&&t(si(h.activePlan))}).catch(()=>{});const g="BroadcastChannel"in window?new BroadcastChannel(C7):null;return g&&(g.onmessage=h=>t(si(h.data))),()=>{g==null||g.close()}},[]),o.useEffect(()=>{const g=window.setInterval(()=>r(Date.now()),1e3);return()=>window.clearInterval(g)},[]),o.useEffect(()=>{const g=()=>l(!!document.fullscreenElement);return document.addEventListener("fullscreenchange",g),()=>document.removeEventListener("fullscreenchange",g)},[]);const u=e.sections[e.activeIndex],d=UC(e),f=KC(e,n),v=async()=>{var g,h,b;try{document.fullscreenElement?await((g=document.exitFullscreen)==null?void 0:g.call(document)):await((b=(h=s.current)==null?void 0:h.requestFullscreen)==null?void 0:b.call(h))}catch{}};return m.jsxs("main",{className:`presentation-audience is-${e.audienceTheme} ${a?"is-fullscreen":""}`,ref:s,children:[m.jsx("div",{className:"presentation-audience-orb audience-orb-one"}),m.jsx("div",{className:"presentation-audience-orb audience-orb-two"}),m.jsxs("header",{className:"presentation-audience-header",children:[e.showAudienceLogo?m.jsxs("div",{className:"presentation-audience-brand",children:[m.jsx("span",{children:"✦"}),m.jsx("strong",{children:"DevBuddy"}),m.jsx("i",{}),m.jsx("span",{children:"Presentation"})]}):m.jsxs("div",{className:"presentation-audience-section-label",children:["SECTION ",String(e.activeIndex+1).padStart(2,"0")]}),m.jsxs("div",{className:"presentation-audience-status",children:[m.jsxs("span",{className:e.timer.running?"is-live":"",children:[m.jsx("i",{})," ",e.timer.running?"LIVE":"PAUSED"]}),m.jsx("strong",{children:cg(f)}),m.jsx(Ie,{"aria-label":a?"Exit full screen":"Enter full screen",icon:a?m.jsx(rse,{}):m.jsx(ise,{}),onClick:v,shape:"circle",type:"text"})]})]}),m.jsxs("section",{className:"presentation-audience-stage",children:[(e.showAudienceLogo||e.showTimeBoxes)&&m.jsxs("div",{className:"presentation-audience-kicker",children:[e.showAudienceLogo&&m.jsxs("span",{children:["SECTION ",String(e.activeIndex+1).padStart(2,"0")]}),e.showAudienceLogo&&e.showTimeBoxes&&m.jsx("i",{}),e.showTimeBoxes&&m.jsxs("span",{children:[u.duration," MIN"]})]}),m.jsx("h1",{children:u.title}),m.jsx($de,{source:u.summary})]}),m.jsx("section",{className:"presentation-audience-footer",children:m.jsxs("div",{className:"presentation-audience-plan",children:[m.jsxs("div",{className:"presentation-audience-plan-heading",children:[m.jsxs("div",{children:[m.jsx("span",{children:e.title}),m.jsx("small",{children:[e.subtitle,e.presenter,S7(e.plannedDate)].filter(Boolean).join(" · ")})]}),m.jsxs("strong",{children:[d,"%"]})]}),m.jsx("div",{className:"presentation-audience-progress",children:m.jsx("i",{style:{width:`${d}%`}})}),m.jsx("div",{className:"presentation-audience-outline",children:e.sections.map((g,h)=>m.jsxs("div",{className:`${h===e.activeIndex?"is-active":""} ${h<e.activeIndex?"is-complete":""}`,children:[m.jsx("span",{children:h<e.activeIndex?m.jsx(Qo,{}):String(h+1).padStart(2,"0")}),m.jsx("strong",{children:g.title})]},g.id))})]})})]})}const{Content:Mde,Sider:Tde}=Vl,{Title:w1,Text:Ol}=An,N8={dark:"#6555e8",light:"#dbeafe"},w7=["overview","launcher","clipboard","ports","image-compress","jira-filters","todo-list","postman","bookmark-sync","file-organizer","branch-sync","package-upgrade","presentation-plan","presentation-view","settings","dev-configurations","errors"],Pde=()=>{const t=(window.location.hash||"#/overview").slice(2);return t.startsWith("plugin:")?{page:"plugin",pluginId:t.slice(7)}:t.startsWith("static:")?{page:"static-page",staticId:t.slice(7)}:t.startsWith("logs/")?{page:"logs",pluginId:null}:["todo-list/archived","todo-archived"].includes(t)?{page:"todo-archived",pluginId:null}:t.startsWith("pr-review")?{page:"pr-review",pluginId:null}:t==="home"?{page:"overview",pluginId:null}:w7.includes(t)?{page:t,pluginId:null}:{page:"overview",pluginId:null}};function kde({theme:e,onThemeChange:t}){var se;const{message:n}=Jr.useApp(),r=Pde(),[a,l]=o.useState([]),[s,u]=o.useState(new Set),[d,f]=o.useState({}),[v,g]=o.useState(!0),[h,b]=o.useState(null),[x,S]=o.useState(!1),[y,w]=o.useState([]),[$,E]=o.useState([]),[R,j]=o.useState(!0),[N,O]=o.useState(r.page),[M,I]=o.useState(()=>{var ee;return((ee=window.matchMedia)==null?void 0:ee.call(window,"(max-width: 991.98px)").matches)??!1}),[T,z]=o.useState(null),[H,L]=o.useState(!1),[D,F]=o.useState(!1),[k,_]=o.useState(r.pluginId?{id:r.pluginId,name:"Plugin"}:null),[V,W]=o.useState(null),[q,B]=o.useState(""),K=async({showLoading:ee=!1}={})=>{ee&&g(!0);try{const[X,oe]=await Promise.all([wr.list(),wr.running()]);l(X),Array.isArray(oe)?(u(new Set(oe)),f({})):(u(new Set((oe==null?void 0:oe.running)||[])),f((oe==null?void 0:oe.errorCounts)||{})),S(!0),b(null)}catch(X){b((X==null?void 0:X.message)||"Unable to load service and runtime data.")}finally{ee&&g(!1)}},U=async(ee=!1)=>{L(!0);try{z(await Fce.status(ee))}catch{z(X=>X||{currentVersion:Fc.version,latestVersion:Fc.version,updateAvailable:!1,releases:[],sourceUnavailable:!0})}finally{L(!1)}},G=()=>K({showLoading:!0}),Z=async ee=>{if(ee){B("Loading plugin…");try{B(ee.view?await(await fetch(ee.view)).text():"This plugin does not provide a view yet.")}catch{B("Failed to load the plugin view.")}}};o.useEffect(()=>{Promise.all([K({showLoading:!0}),Hce.list().then(w),Qc.list().then(E),$r.status().then(ee=>{ee&&typeof ee.isMac=="boolean"&&j(ee.isMac)})]).catch(ee=>n.error(ee.message)),U()},[]),o.useEffect(()=>{const ee=()=>{const oe=(window.location.hash||"#/overview").slice(2);if(oe.startsWith("plugin:")){const J=oe.slice(7),ae=y.find(Q=>Q.id===J);ae?(W(null),O("plugin"),_(ae),Z(ae)):y.length>0&&(window.location.hash="#/overview")}else if(oe.startsWith("static:")){const J=oe.slice(7),ae=$.find(Q=>String(Q.id)===String(J));ae?(_(null),O("static-page"),W(ae)):$.length>0&&(window.location.hash="#/overview")}else oe.startsWith("logs/")?(_(null),W(null),O("logs")):["todo-list/archived","todo-archived"].includes(oe)?(_(null),W(null),O("todo-archived")):oe.startsWith("pr-review")?(_(null),W(null),O("pr-review")):oe==="home"||w7.includes(oe)?(_(null),W(null),O(oe==="home"?"overview":oe)):window.location.hash="#/overview"};return window.addEventListener("hashchange",ee),window.location.hash?ee():window.location.hash="#/overview",()=>window.removeEventListener("hashchange",ee)},[y,$]),o.useEffect(()=>{const ee=oe=>{var J;(oe.error||oe.message)&&of.log({source:"Frontend",message:oe.message||"Uncaught JavaScript Error",details:((J=oe.error)==null?void 0:J.stack)||`${oe.filename}:${oe.lineno}:${oe.colno}`}).catch(()=>{})},X=oe=>{var J,ae;of.log({source:"Frontend (Promise)",message:((J=oe.reason)==null?void 0:J.message)||String(oe.reason||"Unhandled Promise Rejection"),details:((ae=oe.reason)==null?void 0:ae.stack)||String(oe.reason)}).catch(()=>{})};return window.addEventListener("error",ee),window.addEventListener("unhandledrejection",X),()=>{window.removeEventListener("error",ee),window.removeEventListener("unhandledrejection",X)}},[]),o.useEffect(()=>{const ee=X=>{(X.metaKey||X.ctrlKey)&&X.shiftKey&&(X.key==="r"||X.key==="R"||X.code==="KeyR")&&(X.preventDefault(),X.stopPropagation())};return window.addEventListener("keydown",ee,!0),()=>window.removeEventListener("keydown",ee,!0)},[]),o.useEffect(()=>{if(v||!["overview","launcher","ports"].includes(N))return;const ee=setInterval(()=>{K()},2e3);return()=>clearInterval(ee)},[N,v]);const ne=o.useMemo(()=>{const ee=[...y.map(X=>({key:`plugin:${X.id}`,icon:m.jsx("span",{"aria-hidden":"true",children:X.icon||"✦"}),label:X.name||X.id})),...$.map(X=>({key:`static:${X.id}`,icon:m.jsx(Pu,{}),label:X.name}))];return[{key:"overview",icon:m.jsx(gu,{}),label:"Overview"},{type:"group",label:"Run & Observe",children:[{key:"launcher",icon:m.jsx(ao,{}),label:"Launcher"},{key:"ports",icon:m.jsx(FC,{}),label:"Port Diagnostic"},{key:"errors",icon:m.jsx(Of,{}),label:"Error Logs"}]},{type:"group",label:"Plan & Review",children:[{key:"pr-review",icon:m.jsx(Yp,{}),label:"PR Review"},{key:"jira-filters",icon:m.jsx(Zle,{}),label:"Jira Filters"},{key:"todo-list",icon:m.jsx(If,{}),label:"To-Do List"},{key:"presentation-plan",icon:m.jsx(cse,{}),label:"Presentations"},{key:"branch-sync",icon:m.jsx(rx,{}),label:"Branch Sync"},{key:"package-upgrade",icon:m.jsx(s7,{}),label:"Package Upgrade"}]},{type:"group",label:"Utilities",children:[{key:"postman",icon:m.jsx(Qp,{}),label:"Postman"},{key:"image-compress",icon:m.jsx(ax,{}),label:"Image compression"},...R?[{key:"clipboard",icon:m.jsx(Xo,{}),label:"Clipboard history"}]:[],{key:"bookmark-sync",icon:m.jsx(Bg,{}),label:"Bookmark Sync"},{key:"file-organizer",icon:m.jsx(qi,{}),label:"Folder Organizer"}]},{type:"group",label:"Extensions",children:ee}]},[y,$,R]),le=({key:ee})=>{window.location.hash=`#/${ee}`},Y=k?`plugin:${k.id}`:V?`static:${V.id}`:N==="todo-archived"?"todo-list":N,te=h&&!(v&&!x)?m.jsx(Ho,{type:x?"warning":"error",showIcon:!0,message:x?"Service status may be out of date":"Unable to load services",description:h,action:m.jsx(Ie,{size:"small",loading:v,onClick:G,children:"Retry"}),className:"launcher-data-notice"}):null;return N==="logs"?m.jsx(Wue,{}):N==="presentation-view"?m.jsx(Ide,{}):m.jsxs(Vl,{className:"workbench",children:[m.jsxs(Tde,{"aria-label":"DevBuddy navigation",breakpoint:"lg",className:"sidebar",collapsed:M,collapsedWidth:64,collapsible:!0,onBreakpoint:I,onCollapse:I,width:240,children:[m.jsxs("div",{className:"brand-row",children:[m.jsxs("a",{className:"brand",href:"#/overview","aria-current":N==="overview"?"page":void 0,"aria-label":`Go to Overview — DevBuddy version ${Fc.version}`,children:[m.jsx("span",{className:"brand-mark","aria-hidden":"true",children:"✦"}),m.jsx("span",{className:"brand-name",children:"DevBuddy"}),m.jsxs("span",{className:"brand-version",children:["v",Fc.version]})]}),!M&&m.jsx($n,{title:T!=null&&T.updateAvailable?`Update available: v${T.latestVersion}`:"View Change Log",children:m.jsx(Ca,{dot:!!(T!=null&&T.updateAvailable),color:"#f5b942",offset:[-2,3],children:m.jsx(Ie,{"aria-label":T!=null&&T.updateAvailable?`Update available: version ${T.latestVersion}`:"View Change Log",className:`sidebar-update-button ${T!=null&&T.updateAvailable?"has-update":""}`,icon:m.jsx(G6,{}),loading:H&&!T,onClick:()=>F(!0),type:"text"})})})]}),m.jsx("nav",{className:"sidebar-nav","aria-label":"Main navigation",children:m.jsx(Fl,{theme:e==="light"?"light":"dark",mode:"inline",tabIndex:-1,selectedKeys:[Y],items:ne,onClick:le})}),m.jsx("div",{className:"sidebar-bottom",children:m.jsx("div",{className:"sidebar-bottom-inner",children:m.jsx("nav",{"aria-label":"Settings navigation",children:m.jsx(Fl,{theme:e==="light"?"light":"dark",mode:"inline",tabIndex:-1,selectedKeys:N==="settings"?["settings"]:[],items:[{key:"settings",icon:m.jsx(Zp,{}),label:"Settings"}],onClick:le})})})})]}),m.jsx(Vl,{children:m.jsx(Mde,{className:`page ${["static-page","postman"].includes(N)?"is-static-page":""} ${["overview","postman","static-page"].includes(N)?"":"is-workspace-content"} ${N==="presentation-plan"?"is-presentation-plan":""}`,children:k?m.jsxs(m.Fragment,{children:[m.jsx(Ol,{type:"secondary",children:"PLUGIN"}),m.jsx(w1,{level:2,children:k.name}),m.jsx(Xt,{children:m.jsx("div",{dangerouslySetInnerHTML:{__html:q}})})]}):N==="static-page"&&V?m.jsx("div",{className:"static-page-container",children:m.jsx("iframe",{src:V.url,title:V.name,className:"static-page-iframe"})}):N==="image-compress"?m.jsx(wue,{}):N==="overview"?m.jsx(pde,{launchers:a,running:s,errorCounts:d,plugins:y,staticPages:$,loading:v,error:h,hasLoaded:x,onRetry:G,onNavigate:ee=>{window.location.hash=`#/${ee}`}}):N==="clipboard"?R?m.jsx(tue,{}):m.jsxs(Xt,{className:"platform-unavailable-card",children:[m.jsx(w1,{level:4,children:"Clipboard History Unavailable on Windows"}),m.jsx(Ol,{type:"secondary",children:"Clipboard History monitoring relies on macOS system APIs and is currently only supported on macOS."})]}):N==="ports"?m.jsx(vue,{refreshLaunchers:K}):N==="pr-review"?m.jsx(jue,{}):N==="jira-filters"?m.jsx(Tue,{}):N==="todo-list"?m.jsx(_ue,{}):N==="todo-archived"?m.jsx(Hue,{}):N==="presentation-plan"?m.jsx(Rde,{}):N==="postman"?m.jsx(rde,{}):N==="bookmark-sync"?m.jsx(ade,{}):N==="file-organizer"?m.jsx(ide,{}):N==="branch-sync"?m.jsx(lde,{}):N==="package-upgrade"?m.jsx(cde,{}):N==="errors"?m.jsx(Kue,{}):N==="settings"?m.jsx(gue,{theme:e,onThemeChange:t,onStaticPagesChange:()=>Qc.list().then(E)}):N==="dev-configurations"?m.jsx(bue,{}):m.jsxs(m.Fragment,{children:[te,(v||x||!h)&&m.jsx(mue,{launchers:a,running:s,errorCounts:d,refresh:K,loading:v&&!x})]})})}),m.jsx(On,{className:"changelog-modal",footer:[m.jsx(Ie,{loading:H,onClick:()=>U(!0),children:"Check again"},"refresh"),m.jsx(Ie,{type:"primary",onClick:()=>F(!1),children:"Close"},"close")],onCancel:()=>F(!1),open:D,title:m.jsxs("div",{className:"changelog-title",children:[m.jsx("span",{className:`changelog-bulb ${T!=null&&T.updateAvailable?"has-update":""}`,children:m.jsx(G6,{})}),m.jsx("span",{children:"DevBuddy Change Log"})]}),width:680,children:H&&!T?m.jsx("div",{className:"changelog-loading",children:m.jsx(Xr,{})}):m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"changelog-version-row",children:[m.jsxs("div",{children:[m.jsx(Ol,{type:"secondary",children:"Installed"}),m.jsxs(Ol,{strong:!0,children:["v",(T==null?void 0:T.currentVersion)||Fc.version]})]}),m.jsxs("div",{children:[m.jsx(Ol,{type:"secondary",children:"Latest"}),m.jsxs(Ol,{strong:!0,children:["v",(T==null?void 0:T.latestVersion)||Fc.version]})]}),m.jsx(Vt,{color:T!=null&&T.updateAvailable?"gold":"green",children:T!=null&&T.updateAvailable?"Update available":"Up to date"})]}),(T==null?void 0:T.sourceUnavailable)&&m.jsx(Ho,{className:"changelog-source-alert",message:"Could not reach the configured npm registry. Showing locally available release notes.",showIcon:!0,type:"info"}),m.jsx("div",{className:"changelog-release-list",children:(se=T==null?void 0:T.releases)!=null&&se.length?T.releases.slice(0,5).map(ee=>m.jsxs("section",{className:"changelog-release",children:[m.jsxs("div",{className:"changelog-release-heading",children:[m.jsxs("div",{className:"changelog-release-title",children:[m.jsxs(Vt,{className:"changelog-release-version",children:["v",ee.version]}),m.jsx(w1,{level:4,children:ee.name})]}),ee.publishedAt&&m.jsx(Ol,{type:"secondary",children:new Date(ee.publishedAt).toLocaleDateString()})]}),m.jsx(Ol,{className:"changelog-release-notes",children:ee.notes||"Published to the configured npm registry."})]},`${ee.version}-${ee.publishedAt||""}`)):m.jsx(wn,{description:"No published release notes yet.",image:wn.PRESENTED_IMAGE_SIMPLE})})]})})]})}function zde(){const[e,t]=o.useState(()=>document.documentElement.dataset.theme||localStorage.getItem("devbuddy-theme")||"dark");return o.useEffect(()=>{$r.status().then(n=>{const r=n.theme==="light"?"light":"dark";t(r),localStorage.setItem("devbuddy-theme",r)}).catch(()=>{})},[]),o.useLayoutEffect(()=>{var n;document.documentElement.dataset.theme=e,localStorage.setItem("devbuddy-theme",e),(n=document.querySelector('meta[name="theme-color"]'))==null||n.setAttribute("content",N8[e]||N8.dark)},[e]),m.jsx(Ro,{theme:{token:{borderRadius:10,colorBgLayout:e==="light"?"#f7f8fc":"#f4f5fa",colorInfo:e==="light"?"#5b50e0":"#6555e8",colorLink:e==="light"?"#5b50e0":"#5b4cc4",colorLinkActive:e==="light"?"#4c42c9":"#5143c2",colorLinkHover:e==="light"?"#6e63ec":"#7669ee",colorPrimary:e==="light"?"#5b50e0":"#6555e8",colorPrimaryActive:e==="light"?"#4c42c9":"#5143c2",colorPrimaryHover:e==="light"?"#6e63ec":"#7669ee",controlOutline:e==="light"?"rgba(91, 80, 224, .2)":"rgba(101, 85, 232, .22)",colorTextSecondary:"#667085"},components:{Layout:{bodyBg:e==="light"?"#f7f8fc":"#f4f5fa",siderBg:e==="light"?"#ffffff":"#171c2b",triggerBg:e==="light"?"#f8f9fc":"#101522",triggerColor:e==="light"?"#667085":"#c9ced8"},Menu:{darkItemBg:"#171c2b",darkItemSelectedBg:"#6555e8",darkSubMenuItemBg:"#171c2b",itemSelectedBg:"#eeecff",itemSelectedColor:"#5143c2"}}},children:m.jsx(Jr,{children:m.jsx(kde,{theme:e,onThemeChange:t})})})}const Dde=kT.createRoot(document.getElementById("app"));Dde.render(m.jsx(zde,{}));requestAnimationFrame(()=>{requestAnimationFrame(()=>{window.setTimeout(()=>{const e=document.getElementById("app-splash");e&&(e.classList.add("is-hidden"),window.setTimeout(()=>e.remove(),700))},700)})});
547
+ What should the audience take away?`,rows:18,value:h})]}),m.jsxs("section",{className:"presentation-brief",children:[m.jsxs("div",{className:"presentation-brief-main",children:[m.jsxs("div",{className:"presentation-brief-fields",children:[m.jsxs("label",{children:[m.jsx("span",{children:"Presentation title"}),m.jsx(Ht,{onChange:V=>R({title:V.target.value}),value:a.title})]}),m.jsxs("label",{children:[m.jsx("span",{children:"Subtitle / promise"}),m.jsx(Ht,{onChange:V=>R({subtitle:V.target.value}),value:a.subtitle})]}),m.jsxs("label",{children:[m.jsx("span",{children:"Presenter"}),m.jsx(Ht,{onChange:V=>R({presenter:V.target.value}),value:a.presenter})]}),m.jsxs("label",{children:[m.jsx("span",{children:"Planned date"}),m.jsx(ec,{allowClear:!0,format:"MMM D, YYYY",onChange:V=>R({plannedDate:V?V.format("YYYY-MM-DD"):""}),value:a.plannedDate?ra(a.plannedDate):null})]})]}),m.jsxs("div",{className:"presentation-brief-options",children:[m.jsxs("div",{className:"presentation-display-option presentation-theme-option",children:[m.jsxs("span",{children:[m.jsx("strong",{children:"Audience theme"}),m.jsx("small",{children:"Audience view appearance"})]}),m.jsx(hC,{onChange:V=>R({audienceTheme:V}),options:[{label:"Light",value:"light"},{label:"Dark",value:"dark"}],size:"small",value:a.audienceTheme})]}),m.jsxs("label",{className:"presentation-display-option",children:[m.jsxs("span",{children:[m.jsx("strong",{children:"Show time boxes"}),m.jsx("small",{children:"Audience view · all sections"})]}),m.jsx(Wl,{"aria-label":"Show time boxes for all sections in the audience view",checked:a.showTimeBoxes,onChange:V=>R({showTimeBoxes:V}),size:"small"})]}),m.jsxs("label",{className:"presentation-display-option",children:[m.jsxs("span",{children:[m.jsx("strong",{children:"Show DevBuddy logo"}),m.jsx("small",{children:"Audience view header"})]}),m.jsx(Wl,{"aria-label":"Show DevBuddy logo in the audience view",checked:a.showAudienceLogo,onChange:V=>R({showAudienceLogo:V}),size:"small"})]})]})]}),m.jsx("div",{className:"presentation-brief-side",children:m.jsxs("div",{className:"presentation-brief-stats",children:[m.jsxs("div",{children:[m.jsx("strong",{children:a.sections.length}),m.jsx("span",{children:"sections"})]}),m.jsxs("div",{children:[m.jsx("strong",{children:w}),m.jsx("span",{children:"minutes"})]}),m.jsxs("div",{children:[m.jsxs("strong",{children:[$,"%"]}),m.jsx("span",{children:"progress"})]})]})})]}),m.jsxs("div",{className:"presentation-progress-strip",children:[m.jsxs("div",{children:[m.jsx("span",{children:"Current section"}),m.jsx("strong",{children:y.title})]}),m.jsx(Fp,{percent:$,showInfo:!1}),m.jsxs(Al,{children:[a.activeIndex+1," of ",a.sections.length]})]}),m.jsxs("div",{className:"presentation-workspace",children:[m.jsx(Ede,{onAdd:N,onDelete:M,onMove:O,onSelect:V=>R({activeIndex:V}),plan:a}),m.jsx(jde,{index:a.activeIndex,onChange:j,section:y,total:a.sections.length}),m.jsx(Ode,{now:s,onAddNote:H,onNext:()=>z(1),onPrevious:()=>z(-1),onResetTimer:T,onToggleTimer:I,plan:a})]})]})}function Rde(){const{message:e}=Jr.useApp(),[t,n]=o.useState(O8),r=o.useRef(!1),[a,l]=o.useState(null),[s,u]=o.useState(!1),[d,f]=o.useState("");o.useEffect(()=>{let h=!1;return(async()=>{try{const x=await af.get();if(h)return;if(Array.isArray(x.plans)&&x.plans.length>0)n(x.plans.map(si));else{const S=O8();n(S),await af.save(S)}r.current=!0}catch{r.current=!0}})(),()=>{h=!0}},[]),o.useEffect(()=>{r.current&&af.save(t)},[t]);const v=t.find(h=>h.id===a);if(v)return m.jsx(Nde,{initialPlan:v,onBack:()=>l(null),onPlanChange:h=>{n(b=>b.map(x=>x.id===h.id?h:x))}},v.id);const g=()=>{const h=wde(d);n(b=>[h,...b]),f(""),u(!1),l(h.id)};return m.jsxs("div",{className:"presentation-page presentation-library-page",children:[m.jsx(wa,{actions:m.jsx(Ie,{icon:m.jsx(xr,{}),onClick:()=>u(!0),type:"primary",children:"Add presentation"}),className:"presentation-header presentation-library-header",copyClassName:"presentation-header-copy",description:"Plan the story, prepare your speaker console, and keep every presentation ready to run.",title:"Presentations"}),t.length>0?m.jsx("div",{className:"presentation-library-grid",children:t.map(h=>{const b=h.sections.reduce((S,y)=>S+y.duration,0),x=UC(h);return m.jsxs("div",{className:"presentation-library-item-wrapper",children:[m.jsxs("button",{className:"presentation-library-item",onClick:()=>l(h.id),type:"button",children:[m.jsx("span",{className:"presentation-library-icon",children:m.jsx(Ql,{})}),m.jsxs("span",{className:"presentation-library-item-copy",children:[m.jsx("span",{className:"presentation-library-item-topline",children:m.jsx("strong",{children:h.title})}),m.jsx("span",{className:"presentation-library-subtitle",children:h.subtitle||"No subtitle yet"})]}),m.jsxs("span",{className:"presentation-library-progress",children:[m.jsx("i",{children:m.jsx("b",{style:{width:`${x}%`}})}),m.jsxs("em",{children:[x,"%"]})]}),m.jsxs("span",{className:"presentation-library-meta",children:[m.jsxs("span",{children:[h.sections.length," sections"]}),m.jsxs("span",{children:[b," min"]}),h.plannedDate&&m.jsx("span",{children:S7(h.plannedDate)}),m.jsxs("span",{children:["Updated ",new Date(h.updatedAt||Date.now()).toLocaleDateString()]})]})]}),m.jsx(Ra,{cancelText:"Cancel",description:"This presentation and its quick captures will be permanently removed.",okButtonProps:{danger:!0},okText:"Delete",onConfirm:()=>{n(S=>S.filter(y=>y.id!==h.id)),e.success("Presentation deleted.")},title:`Delete “${h.title||"Untitled presentation"}”?`,children:m.jsx(Ie,{"aria-label":`Delete ${h.title||"presentation"}`,className:"presentation-library-delete",danger:!0,icon:m.jsx(hr,{}),size:"small",type:"text"})})]},h.id)})}):m.jsx(Xt,{className:"presentation-library-empty",children:m.jsx(wn,{description:"No presentations yet",image:wn.PRESENTED_IMAGE_SIMPLE,children:m.jsx(Ie,{icon:m.jsx(xr,{}),onClick:()=>u(!0),type:"primary",children:"Add presentation"})})}),m.jsx(On,{okButtonProps:{disabled:!d.trim()},okText:"Create presentation",onCancel:()=>{u(!1),f("")},onOk:g,open:s,title:"New presentation",children:m.jsxs("label",{className:"presentation-create-field",children:[m.jsx("span",{children:"Presentation title"}),m.jsx(Ht,{autoFocus:!0,onChange:h=>f(h.target.value),onPressEnter:()=>{d.trim()&&g()},placeholder:"e.g. Q3 product strategy",value:d})]})})]})}function Ide(){const[e,t]=o.useState(()=>si(Ll)),[n,r]=o.useState(Date.now()),[a,l]=o.useState(!!document.fullscreenElement),s=o.useRef(null);o.useEffect(()=>{af.get().then(h=>{h.activePlan&&t(si(h.activePlan))}).catch(()=>{});const g="BroadcastChannel"in window?new BroadcastChannel(C7):null;return g&&(g.onmessage=h=>t(si(h.data))),()=>{g==null||g.close()}},[]),o.useEffect(()=>{const g=window.setInterval(()=>r(Date.now()),1e3);return()=>window.clearInterval(g)},[]),o.useEffect(()=>{const g=()=>l(!!document.fullscreenElement);return document.addEventListener("fullscreenchange",g),()=>document.removeEventListener("fullscreenchange",g)},[]);const u=e.sections[e.activeIndex],d=UC(e),f=KC(e,n),v=async()=>{var g,h,b;try{document.fullscreenElement?await((g=document.exitFullscreen)==null?void 0:g.call(document)):await((b=(h=s.current)==null?void 0:h.requestFullscreen)==null?void 0:b.call(h))}catch{}};return m.jsxs("main",{className:`presentation-audience is-${e.audienceTheme} ${a?"is-fullscreen":""}`,ref:s,children:[m.jsx("div",{className:"presentation-audience-orb audience-orb-one"}),m.jsx("div",{className:"presentation-audience-orb audience-orb-two"}),m.jsxs("header",{className:"presentation-audience-header",children:[e.showAudienceLogo?m.jsxs("div",{className:"presentation-audience-brand",children:[m.jsx("span",{children:"✦"}),m.jsx("strong",{children:"DevBuddy"}),m.jsx("i",{}),m.jsx("span",{children:"Presentation"})]}):m.jsxs("div",{className:"presentation-audience-section-label",children:["SECTION ",String(e.activeIndex+1).padStart(2,"0")]}),m.jsxs("div",{className:"presentation-audience-status",children:[m.jsxs("span",{className:e.timer.running?"is-live":"",children:[m.jsx("i",{})," ",e.timer.running?"LIVE":"PAUSED"]}),m.jsx("strong",{children:cg(f)}),m.jsx(Ie,{"aria-label":a?"Exit full screen":"Enter full screen",icon:a?m.jsx(rse,{}):m.jsx(ise,{}),onClick:v,shape:"circle",type:"text"})]})]}),m.jsxs("section",{className:"presentation-audience-stage",children:[(e.showAudienceLogo||e.showTimeBoxes)&&m.jsxs("div",{className:"presentation-audience-kicker",children:[e.showAudienceLogo&&m.jsxs("span",{children:["SECTION ",String(e.activeIndex+1).padStart(2,"0")]}),e.showAudienceLogo&&e.showTimeBoxes&&m.jsx("i",{}),e.showTimeBoxes&&m.jsxs("span",{children:[u.duration," MIN"]})]}),m.jsx("h1",{children:u.title}),m.jsx($de,{source:u.summary})]}),m.jsx("section",{className:"presentation-audience-footer",children:m.jsxs("div",{className:"presentation-audience-plan",children:[m.jsxs("div",{className:"presentation-audience-plan-heading",children:[m.jsxs("div",{children:[m.jsx("span",{children:e.title}),m.jsx("small",{children:[e.subtitle,e.presenter,S7(e.plannedDate)].filter(Boolean).join(" · ")})]}),m.jsxs("strong",{children:[d,"%"]})]}),m.jsx("div",{className:"presentation-audience-progress",children:m.jsx("i",{style:{width:`${d}%`}})}),m.jsx("div",{className:"presentation-audience-outline",children:e.sections.map((g,h)=>m.jsxs("div",{className:`${h===e.activeIndex?"is-active":""} ${h<e.activeIndex?"is-complete":""}`,children:[m.jsx("span",{children:h<e.activeIndex?m.jsx(Qo,{}):String(h+1).padStart(2,"0")}),m.jsx("strong",{children:g.title})]},g.id))})]})})]})}const{Content:Mde,Sider:Tde}=Vl,{Title:w1,Text:Ol}=An,N8={dark:"#6555e8",light:"#dbeafe"},w7=["overview","launcher","clipboard","ports","image-compress","jira-filters","todo-list","postman","bookmark-sync","file-organizer","branch-sync","package-upgrade","presentation-plan","presentation-view","settings","dev-configurations","errors"],Pde=()=>{const t=(window.location.hash||"#/overview").slice(2);return t.startsWith("plugin:")?{page:"plugin",pluginId:t.slice(7)}:t.startsWith("static:")?{page:"static-page",staticId:t.slice(7)}:t.startsWith("logs/")?{page:"logs",pluginId:null}:["todo-list/archived","todo-archived"].includes(t)?{page:"todo-archived",pluginId:null}:t.startsWith("pr-review")?{page:"pr-review",pluginId:null}:t==="home"?{page:"overview",pluginId:null}:w7.includes(t)?{page:t,pluginId:null}:{page:"overview",pluginId:null}};function kde({theme:e,onThemeChange:t}){var se;const{message:n}=Jr.useApp(),r=Pde(),[a,l]=o.useState([]),[s,u]=o.useState(new Set),[d,f]=o.useState({}),[v,g]=o.useState(!0),[h,b]=o.useState(null),[x,S]=o.useState(!1),[y,w]=o.useState([]),[$,E]=o.useState([]),[R,j]=o.useState(!0),[N,O]=o.useState(r.page),[M,I]=o.useState(()=>{var ee;return((ee=window.matchMedia)==null?void 0:ee.call(window,"(max-width: 991.98px)").matches)??!1}),[T,z]=o.useState(null),[H,L]=o.useState(!1),[D,F]=o.useState(!1),[k,_]=o.useState(r.pluginId?{id:r.pluginId,name:"Plugin"}:null),[V,W]=o.useState(null),[q,B]=o.useState(""),K=async({showLoading:ee=!1}={})=>{ee&&g(!0);try{const[X,oe]=await Promise.all([wr.list(),wr.running()]);l(X),Array.isArray(oe)?(u(new Set(oe)),f({})):(u(new Set((oe==null?void 0:oe.running)||[])),f((oe==null?void 0:oe.errorCounts)||{})),S(!0),b(null)}catch(X){b((X==null?void 0:X.message)||"Unable to load service and runtime data.")}finally{ee&&g(!1)}},U=async(ee=!1)=>{L(!0);try{z(await Fce.status(ee))}catch{z(X=>X||{currentVersion:Fc.version,latestVersion:Fc.version,updateAvailable:!1,releases:[],sourceUnavailable:!0})}finally{L(!1)}},G=()=>K({showLoading:!0}),Z=async ee=>{if(ee){B("Loading plugin…");try{B(ee.view?await(await fetch(ee.view)).text():"This plugin does not provide a view yet.")}catch{B("Failed to load the plugin view.")}}};o.useEffect(()=>{Promise.all([K({showLoading:!0}),Hce.list().then(w),Qc.list().then(E),$r.status().then(ee=>{ee&&typeof ee.isMac=="boolean"&&j(ee.isMac)})]).catch(ee=>n.error(ee.message)),U()},[]),o.useEffect(()=>{const ee=()=>{const oe=(window.location.hash||"#/overview").slice(2);if(oe.startsWith("plugin:")){const J=oe.slice(7),ae=y.find(Q=>Q.id===J);ae?(W(null),O("plugin"),_(ae),Z(ae)):y.length>0&&(window.location.hash="#/overview")}else if(oe.startsWith("static:")){const J=oe.slice(7),ae=$.find(Q=>String(Q.id)===String(J));ae?(_(null),O("static-page"),W(ae)):$.length>0&&(window.location.hash="#/overview")}else oe.startsWith("logs/")?(_(null),W(null),O("logs")):["todo-list/archived","todo-archived"].includes(oe)?(_(null),W(null),O("todo-archived")):oe.startsWith("pr-review")?(_(null),W(null),O("pr-review")):oe==="home"||w7.includes(oe)?(_(null),W(null),O(oe==="home"?"overview":oe)):window.location.hash="#/overview"};return window.addEventListener("hashchange",ee),window.location.hash?ee():window.location.hash="#/overview",()=>window.removeEventListener("hashchange",ee)},[y,$]),o.useEffect(()=>{const ee=oe=>{var J;(oe.error||oe.message)&&of.log({source:"Frontend",message:oe.message||"Uncaught JavaScript Error",details:((J=oe.error)==null?void 0:J.stack)||`${oe.filename}:${oe.lineno}:${oe.colno}`}).catch(()=>{})},X=oe=>{var J,ae;of.log({source:"Frontend (Promise)",message:((J=oe.reason)==null?void 0:J.message)||String(oe.reason||"Unhandled Promise Rejection"),details:((ae=oe.reason)==null?void 0:ae.stack)||String(oe.reason)}).catch(()=>{})};return window.addEventListener("error",ee),window.addEventListener("unhandledrejection",X),()=>{window.removeEventListener("error",ee),window.removeEventListener("unhandledrejection",X)}},[]),o.useEffect(()=>{const ee=X=>{(X.metaKey||X.ctrlKey)&&X.shiftKey&&(X.key==="r"||X.key==="R"||X.code==="KeyR")&&(X.preventDefault(),X.stopPropagation())};return window.addEventListener("keydown",ee,!0),()=>window.removeEventListener("keydown",ee,!0)},[]),o.useEffect(()=>{if(v||!["overview","launcher","ports"].includes(N))return;const ee=setInterval(()=>{K()},2e3);return()=>clearInterval(ee)},[N,v]);const ne=o.useMemo(()=>{const ee=[...y.map(X=>({key:`plugin:${X.id}`,icon:m.jsx("span",{"aria-hidden":"true",children:X.icon||"✦"}),label:X.name||X.id})),...$.map(X=>({key:`static:${X.id}`,icon:m.jsx(Pu,{}),label:X.name}))];return[{key:"overview",icon:m.jsx(gu,{}),label:"Overview"},{type:"group",label:"Run & Observe",children:[{key:"launcher",icon:m.jsx(ao,{}),label:"Launcher"},{key:"ports",icon:m.jsx(FC,{}),label:"Port Diagnostic"},{key:"errors",icon:m.jsx(Of,{}),label:"Error Logs"}]},{type:"group",label:"Plan & Review",children:[{key:"pr-review",icon:m.jsx(Yp,{}),label:"PR Review"},{key:"jira-filters",icon:m.jsx(Zle,{}),label:"Jira Filters"},{key:"todo-list",icon:m.jsx(If,{}),label:"To-Do List"},{key:"presentation-plan",icon:m.jsx(cse,{}),label:"Presentations"},{key:"branch-sync",icon:m.jsx(rx,{}),label:"Branch Sync"},{key:"package-upgrade",icon:m.jsx(s7,{}),label:"Package Upgrade"}]},{type:"group",label:"Utilities",children:[{key:"postman",icon:m.jsx(Qp,{}),label:"Postman"},{key:"image-compress",icon:m.jsx(ax,{}),label:"Image compression"},...R?[{key:"clipboard",icon:m.jsx(Xo,{}),label:"Clipboard history"}]:[],{key:"bookmark-sync",icon:m.jsx(Bg,{}),label:"Bookmark Sync"},{key:"file-organizer",icon:m.jsx(qi,{}),label:"Folder Organizer"}]},{type:"group",label:"Extensions",children:ee}]},[y,$,R]),le=({key:ee})=>{window.location.hash=`#/${ee}`},Y=k?`plugin:${k.id}`:V?`static:${V.id}`:N==="todo-archived"?"todo-list":N,te=h&&!(v&&!x)?m.jsx(Ho,{type:x?"warning":"error",showIcon:!0,message:x?"Service status may be out of date":"Unable to load services",description:h,action:m.jsx(Ie,{size:"small",loading:v,onClick:G,children:"Retry"}),className:"launcher-data-notice"}):null;return N==="logs"?m.jsx(Wue,{}):N==="presentation-view"?m.jsx(Ide,{}):m.jsxs(Vl,{className:"workbench",children:[m.jsxs(Tde,{"aria-label":"DevBuddy navigation",breakpoint:"lg",className:"sidebar",collapsed:M,collapsedWidth:64,collapsible:!0,onBreakpoint:I,onCollapse:I,width:240,children:[m.jsxs("div",{className:"brand-row",children:[m.jsxs("a",{className:"brand",href:"#/overview","aria-current":N==="overview"?"page":void 0,"aria-label":`Go to Overview — DevBuddy version ${Fc.version}`,children:[m.jsx("span",{className:"brand-mark","aria-hidden":"true",children:"✦"}),m.jsx("span",{className:"brand-name",children:"DevBuddy"}),m.jsxs("span",{className:"brand-version",children:["v",Fc.version]})]}),!M&&m.jsx($n,{title:T!=null&&T.updateAvailable?`Update available: v${T.latestVersion}`:"View Change Log",children:m.jsx(Ca,{dot:!!(T!=null&&T.updateAvailable),color:"#f5b942",offset:[-2,3],children:m.jsx(Ie,{"aria-label":T!=null&&T.updateAvailable?`Update available: version ${T.latestVersion}`:"View Change Log",className:`sidebar-update-button ${T!=null&&T.updateAvailable?"has-update":""}`,icon:m.jsx(G6,{}),loading:H&&!T,onClick:()=>F(!0),type:"text"})})})]}),m.jsx("nav",{className:"sidebar-nav","aria-label":"Main navigation",children:m.jsx(Fl,{theme:e==="light"?"light":"dark",mode:"inline",tabIndex:-1,selectedKeys:[Y],items:ne,onClick:le})}),m.jsx("div",{className:"sidebar-bottom",children:m.jsx("div",{className:"sidebar-bottom-inner",children:m.jsx("nav",{"aria-label":"Settings navigation",children:m.jsx(Fl,{theme:e==="light"?"light":"dark",mode:"inline",tabIndex:-1,selectedKeys:N==="settings"?["settings"]:[],items:[{key:"settings",icon:m.jsx(Zp,{}),label:"Settings"}],onClick:le})})})})]}),m.jsx(Vl,{children:m.jsx(Mde,{className:`page ${["static-page","postman"].includes(N)?"is-static-page":""} ${["overview","postman","static-page"].includes(N)?"":"is-workspace-content"} ${N==="presentation-plan"?"is-presentation-plan":""}`,children:k?m.jsxs(m.Fragment,{children:[m.jsx(Ol,{type:"secondary",children:"PLUGIN"}),m.jsx(w1,{level:2,children:k.name}),m.jsx(Xt,{children:m.jsx("div",{dangerouslySetInnerHTML:{__html:q}})})]}):N==="static-page"&&V?m.jsx("div",{className:"static-page-container",children:m.jsx("iframe",{src:V.url,title:V.name,className:"static-page-iframe"})}):N==="image-compress"?m.jsx(wue,{}):N==="overview"?m.jsx(pde,{launchers:a,running:s,errorCounts:d,plugins:y,staticPages:$,loading:v,error:h,hasLoaded:x,onRetry:G,onNavigate:ee=>{window.location.hash=`#/${ee}`}}):N==="clipboard"?R?m.jsx(tue,{}):m.jsxs(Xt,{className:"platform-unavailable-card",children:[m.jsx(w1,{level:4,children:"Clipboard History Unavailable on Windows"}),m.jsx(Ol,{type:"secondary",children:"Clipboard History monitoring relies on macOS system APIs and is currently only supported on macOS."})]}):N==="ports"?m.jsx(vue,{refreshLaunchers:K}):N==="pr-review"?m.jsx(jue,{}):N==="jira-filters"?m.jsx(Tue,{}):N==="todo-list"?m.jsx(_ue,{}):N==="todo-archived"?m.jsx(Hue,{}):N==="presentation-plan"?m.jsx(Rde,{}):N==="postman"?m.jsx(rde,{}):N==="bookmark-sync"?m.jsx(ade,{}):N==="file-organizer"?m.jsx(ide,{}):N==="branch-sync"?m.jsx(lde,{}):N==="package-upgrade"?m.jsx(cde,{}):N==="errors"?m.jsx(Kue,{}):N==="settings"?m.jsx(gue,{theme:e,onThemeChange:t,onStaticPagesChange:()=>Qc.list().then(E)}):N==="dev-configurations"?m.jsx(bue,{}):m.jsxs(m.Fragment,{children:[te,(v||x||!h)&&m.jsx(mue,{launchers:a,running:s,errorCounts:d,refresh:K,loading:v&&!x})]})})}),m.jsx(On,{className:"changelog-modal",footer:[m.jsx(Ie,{loading:H,onClick:()=>U(!0),children:"Check again"},"refresh"),m.jsx(Ie,{type:"primary",onClick:()=>F(!1),children:"Close"},"close")],onCancel:()=>F(!1),open:D,title:m.jsxs("div",{className:"changelog-title",children:[m.jsx("span",{className:`changelog-bulb ${T!=null&&T.updateAvailable?"has-update":""}`,children:m.jsx(G6,{})}),m.jsx("span",{children:"DevBuddy Change Log"})]}),width:680,children:H&&!T?m.jsx("div",{className:"changelog-loading",children:m.jsx(Xr,{})}):m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"changelog-version-row",children:[m.jsxs("div",{children:[m.jsx(Ol,{type:"secondary",children:"Installed"}),m.jsxs(Ol,{strong:!0,children:["v",(T==null?void 0:T.currentVersion)||Fc.version]})]}),m.jsxs("div",{children:[m.jsx(Ol,{type:"secondary",children:"Latest"}),m.jsxs(Ol,{strong:!0,children:["v",(T==null?void 0:T.latestVersion)||Fc.version]})]}),m.jsx(Vt,{color:T!=null&&T.updateAvailable?"gold":"green",children:T!=null&&T.updateAvailable?"Update available":"Up to date"})]}),(T==null?void 0:T.sourceUnavailable)&&m.jsx(Ho,{className:"changelog-source-alert",message:"Could not reach the configured npm registry. Showing locally available release notes.",showIcon:!0,type:"info"}),m.jsx("div",{className:"changelog-release-list",children:(se=T==null?void 0:T.releases)!=null&&se.length?T.releases.slice(0,5).map(ee=>m.jsxs("section",{className:"changelog-release",children:[m.jsxs("div",{className:"changelog-release-heading",children:[m.jsxs("div",{className:"changelog-release-title",children:[m.jsxs(Vt,{className:"changelog-release-version",children:["v",ee.version]}),m.jsx(w1,{level:4,children:ee.name})]}),ee.publishedAt&&m.jsx(Ol,{type:"secondary",children:new Date(ee.publishedAt).toLocaleDateString()})]}),m.jsx(Ol,{className:"changelog-release-notes",children:ee.notes||"Published to the configured npm registry."})]},`${ee.version}-${ee.publishedAt||""}`)):m.jsx(wn,{description:"No published release notes yet.",image:wn.PRESENTED_IMAGE_SIMPLE})})]})})]})}function zde(){const[e,t]=o.useState(()=>document.documentElement.dataset.theme||localStorage.getItem("devbuddy-theme")||"dark");return o.useEffect(()=>{$r.status().then(n=>{const r=n.theme==="light"?"light":"dark";t(r),localStorage.setItem("devbuddy-theme",r)}).catch(()=>{})},[]),o.useLayoutEffect(()=>{var n;document.documentElement.dataset.theme=e,localStorage.setItem("devbuddy-theme",e),(n=document.querySelector('meta[name="theme-color"]'))==null||n.setAttribute("content",N8[e]||N8.dark)},[e]),m.jsx(Ro,{theme:{token:{borderRadius:10,colorBgLayout:e==="light"?"#f7f8fc":"#f4f5fa",colorInfo:e==="light"?"#5b50e0":"#6555e8",colorLink:e==="light"?"#5b50e0":"#5b4cc4",colorLinkActive:e==="light"?"#4c42c9":"#5143c2",colorLinkHover:e==="light"?"#6e63ec":"#7669ee",colorPrimary:e==="light"?"#5b50e0":"#6555e8",colorPrimaryActive:e==="light"?"#4c42c9":"#5143c2",colorPrimaryHover:e==="light"?"#6e63ec":"#7669ee",controlOutline:e==="light"?"rgba(91, 80, 224, .2)":"rgba(101, 85, 232, .22)",colorTextSecondary:"#667085"},components:{Layout:{bodyBg:e==="light"?"#f7f8fc":"#f4f5fa",siderBg:e==="light"?"#ffffff":"#171c2b",triggerBg:e==="light"?"#f8f9fc":"#101522",triggerColor:e==="light"?"#667085":"#c9ced8"},Menu:{darkItemBg:"#171c2b",darkItemSelectedBg:"#6555e8",darkSubMenuItemBg:"#171c2b",itemSelectedBg:"#eeecff",itemSelectedColor:"#5143c2"}}},children:m.jsx(Jr,{children:m.jsx(kde,{theme:e,onThemeChange:t})})})}const Dde=kT.createRoot(document.getElementById("app"));Dde.render(m.jsx(zde,{}));"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js",{updateViaCache:"none"}).catch(e=>{console.warn("DevBuddy service worker registration failed:",e)})});requestAnimationFrame(()=>{requestAnimationFrame(()=>{window.setTimeout(()=>{const e=document.getElementById("app-splash");e&&(e.classList.add("is-hidden"),window.setTimeout(()=>e.remove(),700))},700)})});
@@ -133,7 +133,7 @@
133
133
  .app-splash-logo { animation: none; }
134
134
  }
135
135
  </style>
136
- <script type="module" crossorigin src="/assets/index-DlBaxOIN.js"></script>
136
+ <script type="module" crossorigin src="/assets/index-D_0x1vPi.js"></script>
137
137
  <link rel="stylesheet" crossorigin href="/assets/index-BWhse591.css">
138
138
  </head>
139
139
  <body>
package/ui/dist/sw.js ADDED
@@ -0,0 +1,62 @@
1
+
2
+ const CACHE_NAME = "devbuddy-ui--D_0x1vPi.js|assetsindex-Dty-56mC.js|assetsmozjpeg_dec-muSO2n8T.wasm|assetsmozjpeg_enc-DO-zoExo.wasm|splash-9c68b5bd543c";
3
+ const PRECACHE_URLS = ["/index.html","/devbuddy-splash.svg","assets/mozjpeg_dec-muSO2n8T.wasm","assets/mozjpeg_enc-DO-zoExo.wasm","assets/index-BWhse591.css","assets/index-D_0x1vPi.js","assets/index-Dty-56mC.js"];
4
+
5
+ self.addEventListener('install', (event) => {
6
+ event.waitUntil(
7
+ caches.open(CACHE_NAME).then((cache) => cache.addAll(PRECACHE_URLS))
8
+ );
9
+ self.skipWaiting();
10
+ });
11
+
12
+ self.addEventListener('activate', (event) => {
13
+ event.waitUntil(
14
+ caches.keys().then((cacheNames) => Promise.all(
15
+ cacheNames
16
+ .filter((cacheName) => cacheName.startsWith('devbuddy-ui-') && cacheName !== CACHE_NAME)
17
+ .map((cacheName) => caches.delete(cacheName))
18
+ ))
19
+ );
20
+ self.clients.claim();
21
+ });
22
+
23
+ self.addEventListener('fetch', (event) => {
24
+ const { request } = event;
25
+ if (request.method !== 'GET' || new URL(request.url).origin !== self.location.origin) return;
26
+
27
+ // The entry document must be refreshed from the server so changed asset
28
+ // hashes can be discovered. The cached copy is only an offline fallback.
29
+ if (request.mode === 'navigate' || new URL(request.url).pathname === '/index.html') {
30
+ event.respondWith(
31
+ fetch(request, { cache: 'no-store' })
32
+ .then((response) => {
33
+ if (response.ok) {
34
+ const copy = response.clone();
35
+ caches.open(CACHE_NAME).then((cache) => cache.put('/index.html', copy));
36
+ }
37
+ return response;
38
+ })
39
+ .catch(() => caches.match('/index.html'))
40
+ );
41
+ return;
42
+ }
43
+
44
+ if (new URL(request.url).pathname === '/devbuddy-splash.svg') {
45
+ event.respondWith(caches.match(request).then((cached) => cached || fetch(request)));
46
+ return;
47
+ }
48
+
49
+ // Hashed build assets are immutable within a release. Serve them locally,
50
+ // while still allowing assets added outside the precache to be cached on use.
51
+ if (new URL(request.url).pathname.startsWith('/assets/')) {
52
+ event.respondWith(
53
+ caches.match(request).then((cached) => cached || fetch(request).then((response) => {
54
+ if (response.ok) {
55
+ const copy = response.clone();
56
+ caches.open(CACHE_NAME).then((cache) => cache.put(request, copy));
57
+ }
58
+ return response;
59
+ }))
60
+ );
61
+ }
62
+ });