buddy-workbench 0.1.71 → 0.1.72
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,12 +1,25 @@
|
|
|
1
1
|
import { execFile } from 'node:child_process';
|
|
2
|
-
import { existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from 'node:fs';
|
|
2
|
+
import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, writeFileSync } from 'node:fs';
|
|
3
3
|
import { homedir } from 'node:os';
|
|
4
4
|
import { basename, dirname, join } from 'node:path';
|
|
5
5
|
import { promisify } from 'node:util';
|
|
6
6
|
|
|
7
7
|
const execFileAsync = promisify(execFile);
|
|
8
8
|
const NPM_KEYS = ['prefix', 'registry', 'strict-ssl', 'cache', 'proxy', 'https-proxy'];
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
function getNvmDir() {
|
|
11
|
+
const home = homedir();
|
|
12
|
+
const candidates = [
|
|
13
|
+
process.env.NVM_DIR,
|
|
14
|
+
join(home, '.nvm'),
|
|
15
|
+
'/opt/homebrew/opt/nvm',
|
|
16
|
+
'/usr/local/opt/nvm'
|
|
17
|
+
].filter(Boolean);
|
|
18
|
+
for (const dir of candidates) {
|
|
19
|
+
if (existsSync(join(dir, 'nvm.sh'))) return dir;
|
|
20
|
+
}
|
|
21
|
+
return process.env.NVM_DIR || join(home, '.nvm');
|
|
22
|
+
}
|
|
10
23
|
|
|
11
24
|
function getEnrichedEnv() {
|
|
12
25
|
const home = homedir();
|
|
@@ -22,7 +35,7 @@ function getEnrichedEnv() {
|
|
|
22
35
|
'/usr/sbin',
|
|
23
36
|
'/sbin'
|
|
24
37
|
];
|
|
25
|
-
const nvmDir =
|
|
38
|
+
const nvmDir = getNvmDir();
|
|
26
39
|
if (existsSync(nvmDir)) {
|
|
27
40
|
try {
|
|
28
41
|
const versionsDir = join(nvmDir, 'versions', 'node');
|
|
@@ -86,9 +99,18 @@ async function runNvm(script, timeout = 5000) {
|
|
|
86
99
|
if (process.platform === 'win32') {
|
|
87
100
|
throw new Error('Unix NVM shell is not supported on Windows.');
|
|
88
101
|
}
|
|
89
|
-
|
|
102
|
+
const nvmDir = getNvmDir();
|
|
103
|
+
const nvmSh = join(nvmDir, 'nvm.sh');
|
|
104
|
+
const nvmLoad = existsSync(nvmSh) ? `. "${nvmSh}"; ` : '';
|
|
105
|
+
const fullScript = `${nvmLoad}${script}`;
|
|
106
|
+
for (const shell of ['bash', 'sh', 'zsh']) {
|
|
90
107
|
try {
|
|
91
|
-
const { stdout } = await execFileAsync(shell, ['-
|
|
108
|
+
const { stdout } = await execFileAsync(shell, ['-c', fullScript], {
|
|
109
|
+
timeout,
|
|
110
|
+
maxBuffer: 4 * 1024 * 1024,
|
|
111
|
+
env: { ...getEnrichedEnv(), NVM_DIR: nvmDir },
|
|
112
|
+
windowsHide: false
|
|
113
|
+
});
|
|
92
114
|
return stdout.trim();
|
|
93
115
|
} catch {}
|
|
94
116
|
}
|
|
@@ -100,22 +122,90 @@ function parseNvmVersions(output) {
|
|
|
100
122
|
}
|
|
101
123
|
|
|
102
124
|
export async function readNvmConfiguration() {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
const defaultLine = value('DEFAULT');
|
|
125
|
+
const nvmDir = getNvmDir();
|
|
126
|
+
const nvmSh = join(nvmDir, 'nvm.sh');
|
|
127
|
+
if (!existsSync(nvmSh)) {
|
|
107
128
|
return {
|
|
108
|
-
installed:
|
|
109
|
-
version:
|
|
110
|
-
currentVersion:
|
|
111
|
-
defaultVersion:
|
|
112
|
-
nvmDir:
|
|
113
|
-
nodeJsMirror:
|
|
114
|
-
installedVersions:
|
|
129
|
+
installed: false,
|
|
130
|
+
version: '',
|
|
131
|
+
currentVersion: '',
|
|
132
|
+
defaultVersion: '',
|
|
133
|
+
nvmDir: '',
|
|
134
|
+
nodeJsMirror: '',
|
|
135
|
+
installedVersions: []
|
|
115
136
|
};
|
|
116
|
-
} catch {
|
|
117
|
-
return { installed: false, version: '', currentVersion: '', defaultVersion: '', nvmDir: '', nodeJsMirror: '', installedVersions: [] };
|
|
118
137
|
}
|
|
138
|
+
|
|
139
|
+
let version = '';
|
|
140
|
+
try {
|
|
141
|
+
const pkgFile = join(nvmDir, 'package.json');
|
|
142
|
+
if (existsSync(pkgFile)) {
|
|
143
|
+
const pkg = JSON.parse(readFileSync(pkgFile, 'utf8'));
|
|
144
|
+
version = pkg.version || '';
|
|
145
|
+
}
|
|
146
|
+
} catch {}
|
|
147
|
+
|
|
148
|
+
const installedVersions = [];
|
|
149
|
+
const versionsDir = join(nvmDir, 'versions', 'node');
|
|
150
|
+
if (existsSync(versionsDir)) {
|
|
151
|
+
try {
|
|
152
|
+
for (const entry of readdirSync(versionsDir)) {
|
|
153
|
+
if (/^v?\d+/.test(entry)) {
|
|
154
|
+
installedVersions.push(entry.startsWith('v') ? entry : `v${entry}`);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
} catch {}
|
|
158
|
+
}
|
|
159
|
+
try {
|
|
160
|
+
for (const entry of readdirSync(nvmDir)) {
|
|
161
|
+
if (/^v\d+\.\d+\.\d+$/.test(entry) && existsSync(join(nvmDir, entry, 'bin', 'node'))) {
|
|
162
|
+
if (!installedVersions.includes(entry)) installedVersions.push(entry);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
} catch {}
|
|
166
|
+
installedVersions.sort((a, b) => b.localeCompare(a, undefined, { numeric: true, sensitivity: 'base' }));
|
|
167
|
+
|
|
168
|
+
let defaultVersion = '';
|
|
169
|
+
try {
|
|
170
|
+
const defaultAliasFile = join(nvmDir, 'alias', 'default');
|
|
171
|
+
if (existsSync(defaultAliasFile)) {
|
|
172
|
+
defaultVersion = readFileSync(defaultAliasFile, 'utf8').trim();
|
|
173
|
+
}
|
|
174
|
+
} catch {}
|
|
175
|
+
|
|
176
|
+
let currentVersion = process.version || '';
|
|
177
|
+
try {
|
|
178
|
+
const currentLink = join(nvmDir, 'current');
|
|
179
|
+
if (existsSync(currentLink)) {
|
|
180
|
+
const real = basename(realpathSync(currentLink));
|
|
181
|
+
if (/^v?\d+/.test(real)) {
|
|
182
|
+
currentVersion = real.startsWith('v') ? real : `v${real}`;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
} catch {}
|
|
186
|
+
|
|
187
|
+
let nodeJsMirror = process.env.NVM_NODEJS_ORG_MIRROR || '';
|
|
188
|
+
if (!nodeJsMirror) {
|
|
189
|
+
try {
|
|
190
|
+
const shellFile = basename(process.env.SHELL || '') === 'bash' ? '.bashrc' : '.zshrc';
|
|
191
|
+
const file = join(homedir(), shellFile);
|
|
192
|
+
if (existsSync(file)) {
|
|
193
|
+
const content = readFileSync(file, 'utf8');
|
|
194
|
+
const match = content.match(/export\s+NVM_NODEJS_ORG_MIRROR="([^"]*)"/);
|
|
195
|
+
if (match) nodeJsMirror = match[1];
|
|
196
|
+
}
|
|
197
|
+
} catch {}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
return {
|
|
201
|
+
installed: true,
|
|
202
|
+
version,
|
|
203
|
+
currentVersion,
|
|
204
|
+
defaultVersion,
|
|
205
|
+
nvmDir,
|
|
206
|
+
nodeJsMirror,
|
|
207
|
+
installedVersions
|
|
208
|
+
};
|
|
119
209
|
}
|
|
120
210
|
|
|
121
211
|
async function readNpmConfig(key) {
|
|
@@ -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 ${ue(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${c}-thumbnail, ${c}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${c}-name`]:{display:"none",textAlign:"center"},[`${c}-file + ${c}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ue(l(e.paddingXS).mul(2).equal())})`},[`${c}-uploading`]:{[`&${c}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${c}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ue(l(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Rie=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Iie=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},hn(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"}})}},Mie=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),Tie=dn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,pictureCardSize:a,calc:l}=e,s=on(e,{uploadThumbnailSize:l(t).mul(2).equal(),uploadProgressOffset:l(l(n).div(2)).add(r).equal(),uploadPicCardSize:a});return[Iie(s),$ie(s),Oie(s),Nie(s),Eie(s),jie(s),Rie(s),Qf(s)]},Mie);var Pie={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"},kie=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Pie}))},Die=o.forwardRef(kie),zie={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"},Aie=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:zie}))},_ie=o.forwardRef(Aie),Lie={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"},Bie=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Lie}))},Hie=o.forwardRef(Bie);function Xv(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 Yv(e,t){const n=_e(t),r=n.findIndex(({uid:a})=>a===e.uid);return r===-1?n.push(e):n[r]=e,n}function $1(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function Fie(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 Vie=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},SM=e=>e.indexOf("image/")===0,Wie=e=>{if(e.type&&!e.thumbUrl)return SM(e.type);const t=e.thumbUrl||e.url||"",n=Vie(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)},Il=200;function Kie(e){return new Promise(t=>{if(!e.type||!SM(e.type)){t("");return}const n=document.createElement("canvas");n.width=Il,n.height=Il,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Il}px; height: ${Il}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 c=Il,f=Il,m=0,v=0;l>s?(f=s*(Il/l),v=-(f-c)/2):(c=l*(Il/s),m=-(c-f)/2),r.drawImage(a,m,v,c,f);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 Uie={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"},qie=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Uie}))},Ju=o.forwardRef(qie);const Gie=o.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:a,file:l,items:s,progress:c,iconRender:f,actionIconRender:m,itemRender:v,isImgUrl:g,showPreviewIcon:h,showRemoveIcon:b,showDownloadIcon:y,previewIcon:S,removeIcon:x,downloadIcon:w,extra:$,onPreview:E,onDownload:R,onClose:O},N)=>{var I,j;const{status:M}=l,[k,z]=o.useState(M);o.useEffect(()=>{M!=="removed"&&z(M)},[M]);const[D,L]=o.useState(!1);o.useEffect(()=>{const te=setTimeout(()=>{L(!0)},300);return()=>{clearTimeout(te)}},[]);const _=f(l);let V=o.createElement("div",{className:`${e}-icon`},_);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(k==="uploading"||!l.thumbUrl&&!l.url){const te=me(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:k!=="uploading"});V=o.createElement("div",{className:te},_)}else{const te=g!=null&&g(l)?o.createElement("img",{src:l.thumbUrl||l.url,alt:l.name,className:`${e}-list-item-image`,crossOrigin:l.crossOrigin}):_,X=me(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:g&&!g(l)});V=o.createElement("a",{className:X,onClick:Q=>E(l,Q),href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},te)}const P=me(`${e}-list-item`,`${e}-list-item-${k}`),A=typeof l.linkProps=="string"?JSON.parse(l.linkProps):l.linkProps,H=(typeof b=="function"?b(l):b)?m((typeof x=="function"?x(l):x)||o.createElement(or,null),()=>O(l),e,r.removeFile,!0):null,W=(typeof y=="function"?y(l):y)&&k==="done"?m((typeof w=="function"?w(l):w)||o.createElement(Ju,null),()=>R(l),e,r.downloadFile):null,U=a!=="picture-card"&&a!=="picture-circle"&&o.createElement("span",{key:"download-delete",className:me(`${e}-list-item-actions`,{picture:a==="picture"})},W,H),F=typeof $=="function"?$(l):$,q=F&&o.createElement("span",{className:`${e}-list-item-extra`},F),K=me(`${e}-list-item-name`),G=l.url?o.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:K,title:l.name},A,{href:l.url,onClick:te=>E(l,te)}),l.name,q):o.createElement("span",{key:"view",className:K,onClick:te=>E(l,te),title:l.name},l.name,q),Y=(typeof h=="function"?h(l):h)&&(l.url||l.thumbUrl)?o.createElement("a",{href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:te=>E(l,te),title:r.previewFile},typeof S=="function"?S(l):S||o.createElement(Uu,null)):null,ee=(a==="picture-card"||a==="picture-circle")&&k!=="uploading"&&o.createElement("span",{className:`${e}-list-item-actions`},Y,k==="done"&&W,H),{getPrefixCls:ae}=o.useContext(It),le=ae(),Z=o.createElement("div",{className:P},V,G,U,ee,D&&o.createElement(ra,{motionName:`${le}-fade`,visible:k==="uploading",motionDeadline:2e3},({className:te})=>{const X="percent"in l?o.createElement(gm,Object.assign({type:"line",percent:l.percent,"aria-label":l["aria-label"],"aria-labelledby":l["aria-labelledby"]},c)):null;return o.createElement("div",{className:me(`${e}-list-item-progress`,te)},X)})),se=l.response&&typeof l.response=="string"?l.response:((I=l.error)===null||I===void 0?void 0:I.statusText)||((j=l.error)===null||j===void 0?void 0:j.message)||r.uploadError,de=k==="error"?o.createElement(yn,{title:se,getPopupContainer:te=>te.parentNode},Z):Z;return o.createElement("div",{className:me(`${e}-list-item-container`,t),style:n,ref:N},v?v(de,l,s,{download:R.bind(null,l),preview:E.bind(null,l),remove:O.bind(null,l)}):de)}),Xie=(e,t)=>{const{listType:n="text",previewFile:r=Kie,onPreview:a,onDownload:l,onRemove:s,locale:c,iconRender:f,isImageUrl:m=Wie,prefixCls:v,items:g=[],showPreviewIcon:h=!0,showRemoveIcon:b=!0,showDownloadIcon:y=!1,removeIcon:S,previewIcon:x,downloadIcon:w,extra:$,progress:E={size:[-1,2],showInfo:!1},appendAction:R,appendActionVisible:O=!0,itemRender:N,disabled:I}=e,[,j]=_x(),[M,k]=o.useState(!1),z=["picture-card","picture-circle"].includes(n);o.useEffect(()=>{n.startsWith("picture")&&(g||[]).forEach(K=>{!(K.originFileObj instanceof File||K.originFileObj instanceof Blob)||K.thumbUrl!==void 0||(K.thumbUrl="",r==null||r(K.originFileObj).then(G=>{K.thumbUrl=G||"",j()}))})},[n,g,r]),o.useEffect(()=>{k(!0)},[]);const D=(K,G)=>{if(a)return G==null||G.preventDefault(),a(K)},L=K=>{typeof l=="function"?l(K):K.url&&window.open(K.url)},_=K=>{s==null||s(K)},V=K=>{if(f)return f(K,n);const G=K.status==="uploading";if(n.startsWith("picture")){const Y=n==="picture"?o.createElement(Ao,null):c.uploading,ee=m!=null&&m(K)?o.createElement(Hie,null):o.createElement(Die,null);return G?Y:ee}return G?o.createElement(Ao,null):o.createElement(_ie,null)},P=(K,G,Y,ee,ae)=>{const le={type:"text",size:"small",title:ee,onClick:Z=>{var se,de;G(),o.isValidElement(K)&&((de=(se=K.props).onClick)===null||de===void 0||de.call(se,Z))},className:`${Y}-list-item-action`,disabled:ae?I:!1};return o.isValidElement(K)?o.createElement(Oe,Object.assign({},le,{icon:Dr(K,Object.assign(Object.assign({},K.props),{onClick:()=>{}}))})):o.createElement(Oe,Object.assign({},le),o.createElement("span",null,K))};o.useImperativeHandle(t,()=>({handlePreview:D,handleDownload:L}));const{getPrefixCls:A}=o.useContext(It),H=A("upload",v),W=A(),U=me(`${H}-list`,`${H}-list-${n}`),F=o.useMemo(()=>In($u(W),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[W]),q=Object.assign(Object.assign({},z?{}:F),{motionDeadline:2e3,motionName:`${H}-${z?"animate-inline":"animate"}`,keys:_e(g.map(K=>({key:K.uid,file:K}))),motionAppear:M});return o.createElement("div",{className:U},o.createElement(zx,Object.assign({},q,{component:!1}),({key:K,file:G,className:Y,style:ee})=>o.createElement(Gie,{key:K,locale:c,prefixCls:H,className:Y,style:ee,file:G,items:g,progress:E,listType:n,isImgUrl:m,showPreviewIcon:h,showRemoveIcon:b,showDownloadIcon:y,removeIcon:S,previewIcon:x,downloadIcon:w,extra:$,iconRender:V,actionIconRender:P,itemRender:N,onPreview:D,onDownload:L,onClose:_})),R&&o.createElement(ra,Object.assign({},q,{visible:O,forceRender:!0}),({className:K,style:G})=>Dr(R,Y=>({className:me(Y.className,K),style:Object.assign(Object.assign(Object.assign({},G),{pointerEvents:K?"none":void 0}),Y.style)}))))},Yie=o.forwardRef(Xie);var Jie=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 c(v){try{m(r.next(v))}catch(g){s(g)}}function f(v){try{m(r.throw(v))}catch(g){s(g)}}function m(v){v.done?l(v.value):a(v.value).then(c,f)}m((r=r.apply(e,[])).next())})};const sf=`__LIST_IGNORE_${Date.now()}__`,Qie=(e,t)=>{const n=br("upload"),{fileList:r,defaultFileList:a,onRemove:l,showUploadList:s=!0,listType:c="text",onPreview:f,onDownload:m,onChange:v,onDrop:g,previewFile:h,disabled:b,locale:y,iconRender:S,isImageUrl:x,progress:w,prefixCls:$,className:E,type:R="select",children:O,style:N,itemRender:I,maxCount:j,data:M={},multiple:k=!1,hasControlInside:z=!0,action:D="",accept:L="",supportServerRender:_=!0,rootClassName:V}=e,P=o.useContext(ta),A=b??P,H=e.customRequest||n.customRequest,[W,U]=Cn(a||[],{value:r,postState:Ne=>Ne??[]}),[F,q]=o.useState("drop"),K=o.useRef(null),G=o.useRef(null);o.useMemo(()=>{const Ne=Date.now();(r||[]).forEach((Me,Ae)=>{!Me.uid&&!Object.isFrozen(Me)&&(Me.uid=`__AUTO__${Ne}_${Ae}__`)})},[r]);const Y=(Ne,Me,Ae)=>{let Ke=_e(Me),et=!1;j===1?Ke=Ke.slice(-1):j&&(et=Ke.length>j,Ke=Ke.slice(0,j)),Po.flushSync(()=>{U(Ke)});const Be={file:Ne,fileList:Ke};Ae&&(Be.event=Ae),(!et||Ne.status==="removed"||Ke.some(Ve=>Ve.uid===Ne.uid))&&Po.flushSync(()=>{v==null||v(Be)})},ee=(Ne,Me)=>Jie(void 0,void 0,void 0,function*(){const{beforeUpload:Ae,transformFile:Ke}=e;let et=Ne;if(Ae){const Be=yield Ae(Ne,Me);if(Be===!1)return!1;if(delete Ne[sf],Be===sf)return Object.defineProperty(Ne,sf,{value:!0,configurable:!0}),!1;typeof Be=="object"&&Be&&(et=Be)}return Ke&&(et=yield Ke(et)),et}),ae=Ne=>{const Me=Ne.filter(et=>!et.file[sf]);if(!Me.length)return;const Ae=Me.map(et=>Xv(et.file));let Ke=_e(W);Ae.forEach(et=>{Ke=Yv(et,Ke)}),Ae.forEach((et,Be)=>{let Ve=et;if(Me[Be].parsedFile)et.status="uploading";else{const{originFileObj:Je}=et;let st;try{st=new File([Je],Je.name,{type:Je.type})}catch{st=new Blob([Je],{type:Je.type}),st.name=Je.name,st.lastModifiedDate=new Date,st.lastModified=new Date().getTime()}st.uid=et.uid,Ve=st}Y(Ve,Ke)})},le=(Ne,Me,Ae)=>{try{typeof Ne=="string"&&(Ne=JSON.parse(Ne))}catch{}if(!$1(Me,W))return;const Ke=Xv(Me);Ke.status="done",Ke.percent=100,Ke.response=Ne,Ke.xhr=Ae;const et=Yv(Ke,W);Y(Ke,et)},Z=(Ne,Me)=>{if(!$1(Me,W))return;const Ae=Xv(Me);Ae.status="uploading",Ae.percent=Ne.percent;const Ke=Yv(Ae,W);Y(Ae,Ke,Ne)},se=(Ne,Me,Ae)=>{if(!$1(Ae,W))return;const Ke=Xv(Ae);Ke.error=Ne,Ke.response=Me,Ke.status="error";const et=Yv(Ke,W);Y(Ke,et)},de=Ne=>{let Me;Promise.resolve(typeof l=="function"?l(Ne):l).then(Ae=>{var Ke;if(Ae===!1)return;const et=Fie(Ne,W);et&&(Me=Object.assign(Object.assign({},Ne),{status:"removed"}),W==null||W.forEach(Be=>{const Ve=Me.uid!==void 0?"uid":"name";Be[Ve]===Me[Ve]&&!Object.isFrozen(Be)&&(Be.status="removed")}),(Ke=K.current)===null||Ke===void 0||Ke.abort(Me),Y(Me,et))})},te=Ne=>{q(Ne.type),Ne.type==="drop"&&(g==null||g(Ne))};o.useImperativeHandle(t,()=>({onBatchStart:ae,onSuccess:le,onProgress:Z,onError:se,fileList:W,upload:K.current,nativeElement:G.current}));const{getPrefixCls:X,direction:Q,upload:oe}=o.useContext(It),J=X("upload",$),ve=Object.assign(Object.assign({onBatchStart:ae,onError:se,onProgress:Z,onSuccess:le},e),{customRequest:H,data:M,multiple:k,action:D,accept:L,supportServerRender:_,prefixCls:J,disabled:A,beforeUpload:ee,onChange:void 0,hasControlInside:z});delete ve.className,delete ve.style,(!O||A)&&delete ve.id;const he=`${J}-wrapper`,[Ee,je,xe]=Tie(J,he),[ce]=Ba("Upload",zo.Upload),{showRemoveIcon:pe,showPreviewIcon:ie,showDownloadIcon:Se,removeIcon:Re,previewIcon:ke,downloadIcon:He,extra:De}=typeof s=="boolean"?{}:s,We=typeof pe>"u"?!A:pe,Ce=(Ne,Me)=>s?o.createElement(Yie,{prefixCls:J,listType:c,items:W,previewFile:h,onPreview:f,onDownload:m,onRemove:de,showRemoveIcon:We,showPreviewIcon:ie,showDownloadIcon:Se,removeIcon:Re,previewIcon:ke,downloadIcon:He,iconRender:S,extra:De,locale:Object.assign(Object.assign({},ce),y),isImageUrl:x,progress:w,appendAction:Ne,appendActionVisible:Me,itemRender:I,disabled:A}):Ne,we=me(he,E,V,je,xe,oe==null?void 0:oe.className,{[`${J}-rtl`]:Q==="rtl",[`${J}-picture-card-wrapper`]:c==="picture-card",[`${J}-picture-circle-wrapper`]:c==="picture-circle"}),Pe=Object.assign(Object.assign({},oe==null?void 0:oe.style),N);if(R==="drag"){const Ne=me(je,J,`${J}-drag`,{[`${J}-drag-uploading`]:W.some(Me=>Me.status==="uploading"),[`${J}-drag-hover`]:F==="dragover",[`${J}-disabled`]:A,[`${J}-rtl`]:Q==="rtl"});return Ee(o.createElement("span",{className:we,ref:G},o.createElement("div",{className:Ne,style:Pe,onDrop:te,onDragOver:te,onDragLeave:te},o.createElement(hx,Object.assign({},ve,{ref:K,className:`${J}-btn`}),o.createElement("div",{className:`${J}-drag-container`},O))),Ce()))}const Ie=me(J,`${J}-select`,{[`${J}-disabled`]:A,[`${J}-hidden`]:!O}),Le=o.createElement("div",{className:Ie,style:Pe},o.createElement(hx,Object.assign({},ve,{ref:K})));return Ee(c==="picture-card"||c==="picture-circle"?o.createElement("span",{className:we,ref:G},Ce(Le,!!O)):o.createElement("span",{className:we,ref:G},Le,Ce()))},wM=o.forwardRef(Qie);var Zie=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 ele=o.forwardRef((e,t)=>{const{style:n,height:r,hasControlInside:a=!1,children:l}=e,s=Zie(e,["style","height","hasControlInside","children"]),c=Object.assign(Object.assign({},n),{height:r});return o.createElement(wM,Object.assign({ref:t,hasControlInside:a},s,{style:c,type:"drag"}),l)}),oh=wM;oh.Dragger=ele;oh.LIST_IGNORE=sf;var tle={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"},nle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:tle}))},Mu=o.forwardRef(nle),rle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"},ale=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:rle}))},ole=o.forwardRef(ale),ile={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"},lle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:ile}))},sle=o.forwardRef(lle),cle={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"},ule=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:cle}))},$M=o.forwardRef(ule),dle={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"},fle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:dle}))},mle=o.forwardRef(fle),vle={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"},gle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:vle}))},ec=o.forwardRef(gle),ple={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"},hle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:ple}))},Hs=o.forwardRef(hle),ble={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"},yle=function(t,n){return o.createElement(lt,$e({},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:"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"},Sle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Cle}))},wg=o.forwardRef(Sle),wle={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"},$le=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:wle}))},Hf=o.forwardRef($le),Ele={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"},jle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Ele}))},aj=o.forwardRef(jle),Ole={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"},Nle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Ole}))},Ci=o.forwardRef(Nle),Rle={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(lt,$e({},t,{ref:n,icon:Rle}))},tc=o.forwardRef(Ile),Mle={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"},Tle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Mle}))},Ple=o.forwardRef(Tle),kle={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(lt,$e({},t,{ref:n,icon:kle}))},EM=o.forwardRef(Dle),zle={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"},Ale=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:zle}))},_le=o.forwardRef(Ale),Lle={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"},Ble=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Lle}))},oj=o.forwardRef(Ble),Hle={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"},Fle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Hle}))},Vle=o.forwardRef(Fle),Wle={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"},Kle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Wle}))},ja=o.forwardRef(Kle),Ule={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"},qle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Ule}))},ij=o.forwardRef(qle),Gle={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"},Xle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Gle}))},Yle=o.forwardRef(Xle),Jle={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"},Qle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Jle}))},bx=o.forwardRef(Qle),Zle={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"},ese=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Zle}))},tse=o.forwardRef(ese),nse={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"},rse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:nse}))},ase=o.forwardRef(rse),ose={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"},ise=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:ose}))},lse=o.forwardRef(ise),sse={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"},cse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:sse}))},use=o.forwardRef(cse),dse={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"},fse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:dse}))},Xg=o.forwardRef(fse),mse={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"},vse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:mse}))},ih=o.forwardRef(vse),gse={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"},pse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:gse}))},lh=o.forwardRef(pse),hse={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"},bse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:hse}))},lj=o.forwardRef(bse),yse={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"},xse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:yse}))},Cse=o.forwardRef(xse),Sse={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"},wse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Sse}))},$se=o.forwardRef(wse),Ese={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M840 192h-56v-72c0-13.3-10.7-24-24-24H168c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h592c13.3 0 24-10.7 24-24V256h32v200H465c-22.1 0-40 17.9-40 40v136h-44c-4.4 0-8 3.6-8 8v228c0 .6.1 1.3.2 1.9A83.99 83.99 0 00457 960c46.4 0 84-37.6 84-84 0-2.1-.1-4.1-.2-6.1.1-.6.2-1.2.2-1.9V640c0-4.4-3.6-8-8-8h-44V520h351c22.1 0 40-17.9 40-40V232c0-22.1-17.9-40-40-40zM720 352H208V160h512v192zM477 876c0 11-9 20-20 20s-20-9-20-20V696h40v180z"}}]},name:"format-painter",theme:"outlined"},jse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Ese}))},Ose=o.forwardRef(jse),Nse={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"},Rse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Nse}))},Ise=o.forwardRef(Rse),Mse={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"},Tse=function(t,n){return o.createElement(lt,$e({},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:"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"},Dse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:kse}))},zse=o.forwardRef(Dse),Ase={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"},_se=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Ase}))},Lse=o.forwardRef(_se),Bse={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"},Hse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Bse}))},Yg=o.forwardRef(Hse),Fse={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"},Vse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Fse}))},Qu=o.forwardRef(Vse),Wse={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"},Kse=function(t,n){return o.createElement(lt,$e({},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:"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"},Gse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:qse}))},Xse=o.forwardRef(Gse),Yse={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"},Jse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Yse}))},Ff=o.forwardRef(Jse),Qse={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"},Zse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Qse}))},jM=o.forwardRef(Zse),ece={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"},tce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:ece}))},Vf=o.forwardRef(tce),nce={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"},rce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:nce}))},sh=o.forwardRef(rce),ace={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"},oce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:ace}))},ice=o.forwardRef(oce),lce={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"},sce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:lce}))},Ul=o.forwardRef(sce),cce={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"},uce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:cce}))},dce=o.forwardRef(uce),fce={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"},mce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:fce}))},vce=o.forwardRef(mce),gce={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"},pce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:gce}))},E1=o.forwardRef(pce),hce={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"},bce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:hce}))},yce=o.forwardRef(bce),xce={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"},Cce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:xce}))},sj=o.forwardRef(Cce),Sce={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"},wce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Sce}))},$ce=o.forwardRef(wce),Ece={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"},jce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Ece}))},nc=o.forwardRef(jce),Oce={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"},Nce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Oce}))},Wf=o.forwardRef(Nce),Rce={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"},Ice=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Rce}))},Mce=o.forwardRef(Ice),Tce={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"},Pce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Tce}))},uo=o.forwardRef(Pce),kce={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"},Dce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:kce}))},zce=o.forwardRef(Dce),Ace={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"},_ce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Ace}))},OM=o.forwardRef(_ce),Lce={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"},Bce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Lce}))},cj=o.forwardRef(Bce),Hce={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"},Fce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Hce}))},rc=o.forwardRef(Fce),Vce={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"},Wce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Vce}))},ac=o.forwardRef(Wce),Kce={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"},Uce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Kce}))},Jg=o.forwardRef(Uce),qce={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"},Gce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:qce}))},uj=o.forwardRef(Gce),Xce={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"},Yce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Xce}))},Kf=o.forwardRef(Yce),Jce={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"},Qce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Jce}))},NM=o.forwardRef(Qce),Zce={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"},eue=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Zce}))},eS=o.forwardRef(eue),tue={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"},nue=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:tue}))},RM=o.forwardRef(nue),rue={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"},aue=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:rue}))},oue=o.forwardRef(aue),iue={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"},lue=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:iue}))},sue=o.forwardRef(lue),cue={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"},uue=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:cue}))},due=o.forwardRef(uue);const fue="0.1.71",tu={version:fue};async function Ye(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 jr={list:()=>Ye("/api/launchers"),running:()=>Ye("/api/launchers/running"),create:e=>Ye("/api/launchers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>Ye(`/api/launchers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>Ye(`/api/launchers/${e}`,{method:"DELETE"}),start:e=>Ye(`/api/launchers/${e}/start`,{method:"POST"}),openTerminal:e=>Ye(`/api/launchers/${e}/open-terminal`,{method:"POST"}),run:(e,t)=>Ye(`/api/launchers/${e}/scripts/${t}/run`,{method:"POST"}),runInstall:e=>Ye(`/api/launchers/${e}/install/run`,{method:"POST"}),stop:async(e,t)=>{try{return await Ye(`/api/launchers/${e}/stop`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scriptId:t})})}catch{return Ye(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/stop`,{method:"POST"})}},logs:(e,t)=>Ye(`/api/launchers/${e}/scripts/${t}/logs`),errorLogs:(e,t)=>Ye(`/api/launchers/${e}/scripts/${t}/logs/error`),clearLogs:(e,t)=>Ye(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"}),packageScripts:e=>Ye(`/api/launchers/${e}/package-scripts`),runPackageScript:(e,t)=>Ye(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/run`,{method:"POST"}),packageScriptLogs:(e,t)=>Ye(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`),packageScriptErrorLogs:(e,t)=>Ye(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs/error`),clearPackageScriptLogs:(e,t)=>Ye(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"})},mue={get:()=>Ye("/api/overview")},vue={list:()=>Ye("/api/plugins")},Li={list:e=>Ye(`/api/clipboard${e?`?date=${encodeURIComponent(e)}`:""}`),tagged:()=>Ye("/api/clipboard/tagged"),remove:(e,t)=>Ye(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{method:"DELETE"}),uploadImage:e=>Ye("/api/clipboard/image",{method:"POST",headers:{"Content-Type":e.type||"image/png"},body:e}),updateTags:(e,t,n)=>Ye(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/tags`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tags:n})}),copied:(e,t)=>Ye(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/copied`,{method:"POST"}),copyImage:(e,t)=>Ye(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/copy-image`,{method:"POST"})},Bi={list:()=>Ye("/api/group-tasks"),catalog:()=>Ye("/api/group-tasks/catalog"),create:e=>Ye("/api/group-tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>Ye(`/api/group-tasks/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>Ye(`/api/group-tasks/${e}`,{method:"DELETE"}),start:e=>Ye(`/api/group-tasks/${e}/start`,{method:"POST"}),stop:e=>Ye(`/api/group-tasks/${e}/stop`,{method:"POST"})},j1={list:()=>Ye("/api/port-diagnostics"),get:e=>Ye(`/api/port-diagnostics/${encodeURIComponent(e)}`),kill:(e,t)=>Ye("/api/port-diagnostics/kill",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({port:e,pid:t})})},IM={open:e=>Ye("/api/settings/open-url",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})}),openPath:(e,t="")=>Ye("/api/settings/open-editor",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,location:t})}),openFolder:e=>Ye("/api/settings/open-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})},tr={status:()=>Ye("/api/settings"),devConfigurations:()=>Ye("/api/settings/dev-configurations"),selectDirectory:()=>Ye("/api/settings/select-directory",{method:"POST"}),selectFile:()=>Ye("/api/settings/select-file",{method:"POST"}),openDataDir:()=>Ye("/api/settings/open-data-dir",{method:"POST"}),openFolder:e=>Ye("/api/settings/open-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})}),saveDomain:e=>Ye("/api/settings/domain",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:e})}),saveJiraIssuePrefix:e=>Ye("/api/settings/jira-issue-prefix",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({jiraIssuePrefix:e})}),saveDefaultEditor:e=>Ye("/api/settings/default-editor",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultEditor:e})}),saveDefaultBrowser:e=>Ye("/api/settings/default-browser",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultBrowser:e})}),saveTheme:e=>Ye("/api/settings/theme",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({theme:e})}),saveDevConfigurations:e=>Ye("/api/settings/dev-configurations",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),saveAccessToken:(e,t)=>Ye(`/api/settings/${encodeURIComponent(e)}-access-token`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t})}),saveClipboardEnabled:e=>Ye("/api/settings/clipboard-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardImageEnabled:e=>Ye("/api/settings/clipboard-image-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardDeduplicateMinutes:e=>Ye("/api/settings/clipboard-deduplicate-minutes",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({minutes:e})})},dj={status:(e=!1)=>Ye(`/api/updates${e?"?refresh=1":""}`),selfUpdate:(e="latest")=>Ye("/api/updates/self-update",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({version:e})})},gue={install:e=>Ye("/api/settings/dev-configurations/nvm/install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({version:e})})},zs={manage:(e,t)=>Ye(`/api/settings/dev-configurations/npm/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({packageName:t})}),versions:e=>Ye("/api/settings/dev-configurations/npm/versions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({packageName:e})}),useSuggestedPrefix:()=>Ye("/api/settings/dev-configurations/npm/use-prefix-suggestion",{method:"POST"})};zs.search=e=>Ye("/api/settings/dev-configurations/npm/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:e})});const O1={stats:()=>Ye("/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=>Ye("/api/data-backup/import",{method:"POST",headers:{"Content-Type":"application/gzip"},body:e})},yf={get:()=>Ye("/api/presentations"),save:e=>Ye("/api/presentations",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({plans:e})}),setActive:e=>Ye("/api/presentations/active",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({plan:e})})},nu={check:e=>Ye("/api/pr-review/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prLink:e})}),rules:()=>Ye("/api/pr-review/rules"),saveRules:(e,t)=>Ye("/api/pr-review/rules",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({rules:e,customRules:t})}),myPrs:()=>Ye("/api/pr-review/my-prs"),reviewPrs:()=>Ye("/api/pr-review/review-prs"),comment:e=>Ye("/api/pr-review/comment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},N1={load:e=>Ye("/api/pr-conflicts/load",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prUrl:e})}),myConflicts:()=>Ye("/api/pr-conflicts/my-conflicts"),resolve:e=>Ye("/api/pr-conflicts/resolve",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},No={list:()=>Ye("/api/jira-filters"),create:e=>Ye("/api/jira-filters",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>Ye(`/api/jira-filters/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>Ye(`/api/jira-filters/${e}`,{method:"DELETE"}),issues:e=>Ye(`/api/jira-filters/${e}/issues`),cloneIssue:e=>Ye("/api/jira-filters/issues/clone",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),templates:{list:()=>Ye("/api/jira-filters/templates"),create:e=>Ye("/api/jira-filters/templates",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>Ye(`/api/jira-filters/templates/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>Ye(`/api/jira-filters/templates/${e}`,{method:"DELETE"})},recentlyCreated:()=>Ye("/api/jira-filters/recently-created")},Ia={list:()=>Ye("/api/todos"),create:e=>Ye("/api/todos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>Ye(`/api/todos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>Ye(`/api/todos/${e}`,{method:"DELETE"}),archive:e=>Ye(`/api/todos/${e}/archive`,{method:"POST"}),unarchive:e=>Ye(`/api/todos/${e}/unarchive`,{method:"POST"}),batch:(e,t)=>Ye("/api/todos/batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,ids:t})})},Jv={list:()=>Ye("/api/memos"),create:e=>Ye("/api/memos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>Ye(`/api/memos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>Ye(`/api/memos/${e}`,{method:"DELETE"})},As={list:()=>Ye("/api/static-pages"),create:e=>Ye("/api/static-pages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>Ye(`/api/static-pages/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>Ye(`/api/static-pages/${e}`,{method:"DELETE"})},bu={list:()=>Ye("/api/errors"),log:e=>Ye("/api/errors",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),clear:()=>Ye("/api/errors",{method:"DELETE"}),remove:e=>Ye(`/api/errors/${e}`,{method:"DELETE"})},Ml={getData:()=>Ye("/api/postman"),importCollection:e=>Ye("/api/postman/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collectionJson:e})}),createCollection:e=>Ye("/api/postman/collections",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),updateCollection:(e,t)=>Ye(`/api/postman/collections/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),deleteCollection:e=>Ye(`/api/postman/collections/${e}`,{method:"DELETE"}),saveEnvironments:e=>Ye("/api/postman/environments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),sendRequest:e=>Ye("/api/postman/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},R1={status:()=>Ye("/api/bookmark-sync/status"),preview:e=>Ye(`/api/bookmark-sync/preview?mode=${encodeURIComponent(e)}`),sync:e=>Ye("/api/bookmark-sync/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:e})})},cf={scan:e=>Ye("/api/file-organizer/scan",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),execute:e=>Ye("/api/file-organizer/execute",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),getHistory:()=>Ye("/api/file-organizer/history"),undo:e=>Ye("/api/file-organizer/undo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:e})}),browse:e=>Ye("/api/file-organizer/browse",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})},Hi={listApps:()=>Ye("/api/branch-sync/apps"),createApp:e=>Ye("/api/branch-sync/apps",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),updateApp:(e,t)=>Ye(`/api/branch-sync/apps/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),deleteApp:e=>Ye(`/api/branch-sync/apps/${e}`,{method:"DELETE"}),check:e=>Ye("/api/branch-sync/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({app:e})}),createPr:e=>Ye("/api/branch-sync/create-pr",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),createBranch:e=>Ye("/api/branch-sync/create-branch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),getBranches:e=>Ye(`/api/branch-sync/branches?repo=${encodeURIComponent(e)}`)},so={config:()=>Ye("/api/package-upgrade/config"),dependencyScan:()=>Ye("/api/package-upgrade/dependency-scan"),dependencyRepositories:()=>Ye("/api/package-upgrade/dependency-repositories"),saveDependencyRepositories:e=>Ye("/api/package-upgrade/dependency-repositories",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({directories:e})}),saveConfig:e=>Ye("/api/package-upgrade/config",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({workspaceDir:e})}),addRepo:e=>Ye("/api/package-upgrade/repos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),packageNames:e=>Ye("/api/package-upgrade/repos/packages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({repoIds:e})}),branches:e=>Ye("/api/package-upgrade/repos/branches",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({repoIds:e})}),cloneRepo:e=>Ye(`/api/package-upgrade/repos/${e}/clone`,{method:"POST"}),removeRepo:e=>Ye(`/api/package-upgrade/repos/${e}`,{method:"DELETE"}),createTask:e=>Ye("/api/package-upgrade/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},pue="modulepreload",hue=function(e){return"/"+e},fj={},MM=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let s=function(m){return Promise.all(m.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));a=s(n.map(m=>{if(m=hue(m),m in fj)return;fj[m]=!0;const v=m.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${g}`))return;const h=document.createElement("link");if(h.rel=v?"stylesheet":pue,v||(h.as="script"),h.crossOrigin="",h.href=m,f&&h.setAttribute("nonce",f),document.head.appendChild(h),v)return new Promise((b,y)=>{h.addEventListener("load",b),h.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${m}`)))})}))}function l(s){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s}return a.then(s=>{for(const c of s||[])c.status==="rejected"&&l(c.reason);return t().catch(l)})};async function TM(e,t,n){const r=URL.createObjectURL(e);try{const a=await new Promise((m,v)=>{const g=new Image;g.onload=()=>m(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 c=1;t&&(c=t/s),n!=null&&n>0&&n<=100&&(c=c*(n/100)),l.width=Math.max(1,Math.round(a.naturalWidth*c)),l.height=Math.max(1,Math.round(a.naturalHeight*c));const f=l.getContext("2d",{willReadFrequently:!0});return f.drawImage(a,0,0,l.width,l.height),{imageData:f.getImageData(0,0,l.width,l.height),width:l.width,height:l.height}}finally{URL.revokeObjectURL(r)}}async function bue(e,t={}){const{quality:n=75,progressive:r=!0,optimizeCoding:a=!0,autoSubsample:l=!0}=t,[{encode:s},{imageData:c}]=await Promise.all([MM(()=>import("./index-Dty-56mC.js"),[]),TM(e)]),f=await s(c,{quality:n,progressive:r,optimize_coding:a,auto_subsample:l}),m=new Blob([f],{type:"image/jpeg"}),v=(e.name||"clipboard-image.png").replace(/\.[^.]+$/,"")+".jpg";return new File([m],v,{type:"image/jpeg"})}const{Paragraph:yue,Text:xue,Title:Cue}=Rn;function Gr({actions:e,className:t="",copyClassName:n="",description:r,descriptionClassName:a="",eyebrow:l="WORKBENCH",title:s,titleClassName:c="",titlePrefix:f,titleRowClassName:m=""}){const v=u.jsx(Cue,{className:c||void 0,level:2,children:s});return u.jsxs("header",{className:["page-header","workspace-page-header",t].filter(Boolean).join(" "),children:[u.jsxs("div",{className:n||void 0,children:[u.jsx(xue,{className:"workspace-page-eyebrow",children:l}),f?u.jsxs("div",{className:m||void 0,children:[f,v]}):v,r?u.jsx(yue,{className:["workspace-page-description",a].filter(Boolean).join(" "),type:"secondary",children:r}):null]}),e||null]})}const mj=[{value:"chrome",label:"Google Chrome"},{value:"edge",label:"Microsoft Edge"},{value:"safari",label:"Safari"}];function Sue(e=!0){return e?mj:mj.filter(t=>t.value!=="safari")}function Rr(e){e&&IM.open(e).catch(()=>{window.open(e,"_blank")})}function ch(e,t){if(!e||!t)return"";const n=e.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`https://${n.startsWith("jira.")?n:`jira.${n}`}/browse/${t.toUpperCase()}`}function wue(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:Xd}=Rn,ru=()=>new Intl.DateTimeFormat("en-CA").format(new Date),$ue=[{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 Eue({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(m=>m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),c=s.length>0&&t?new RegExp(`\\b(?:${s.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,f=(m,v)=>{if(!c||!t)return m;const g=[];let h=0;c.lastIndex=0;for(const b of m.matchAll(c)){b.index>h&&g.push(m.slice(h,b.index));const y=b[0],S=ch(t,y);g.push(u.jsx("a",{href:S,target:"_blank",rel:"noreferrer",onClick:x=>{x.preventDefault(),Rr(S)},children:y},`${v}-${b.index}`)),h=b.index+y.length}return h<m.length&&g.push(m.slice(h)),g};for(const m of e.matchAll(a)){m.index>l&&r.push(...f(e.slice(l,m.index),`txt-${m.index}`));const v=m[0].match(/^\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)$/);if(v)r.push(u.jsx("a",{href:v[2],target:"_blank",rel:"noreferrer",onClick:g=>{g.preventDefault(),Rr(v[2])},children:v[1]},m.index));else{const g=m[0].replace(/[),.;:!?]+$/,"");r.push(u.jsx("a",{href:g,target:"_blank",rel:"noreferrer",onClick:h=>{h.preventDefault(),Rr(g)},children:g},m.index)),m[0].length>g.length&&r.push(m[0].slice(g.length))}l=m.index+m[0].length}return l<e.length&&r.push(...f(e.slice(l),"txt-end")),r}const vj=e=>e.text||e.preview||"",gj=e=>`/api/clipboard/image/${encodeURIComponent(e)}`;async function jue(e){if(e.type==="image/png")return e;const t=URL.createObjectURL(e);try{const n=await new Promise((l,s)=>{const c=new window.Image;c.onload=()=>l(c),c.onerror=()=>s(new Error("Unable to decode clipboard image.")),c.src=t}),r=document.createElement("canvas");r.width=n.naturalWidth,r.height=n.naturalHeight;const a=r.getContext("2d");if(!a)throw new Error("Image canvas is unavailable.");return a.drawImage(n,0,0),await new Promise((l,s)=>{r.toBlob(c=>{c?l(c):s(new Error("Unable to encode clipboard image as PNG."))},"image/png")})}finally{URL.revokeObjectURL(t)}}function js(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 Oue({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]),u.jsxs("div",{className:`clipboard-preview-wrap${n?" has-more":""}`,children:[u.jsx("pre",{ref:t,className:"clipboard-preview",children:e}),u.jsx("span",{className:"clipboard-preview-fade","aria-hidden":"true"})]})}function Nue(){const{message:e}=qr.useApp(),[t,n]=o.useState(()=>{const Z=localStorage.getItem("buddy_clipboard_enabled");return Z!==null?Z==="true":!0}),[r,a]=o.useState(!0),[l,s]=o.useState([]),[c,f]=o.useState(ru()),[m,v]=o.useState([]),[g,h]=o.useState([]),[b,y]=o.useState(null),[S,x]=o.useState(""),[w,$]=o.useState("all"),[E,R]=o.useState(null),[O,N]=o.useState(""),[I,j]=o.useState(""),[M,k]=o.useState(60),[z,D]=o.useState(!1),[L,_]=o.useState(!0);o.useEffect(()=>{tr.status().then(Z=>{if(Z){if(Z.isMac!==void 0&&D(Z.isMac),Z.clipboardEnabled!==void 0){const se=Z.clipboardEnabled!==!1;n(se),localStorage.setItem("buddy_clipboard_enabled",String(se))}Z.clipboardImageEnabled!==void 0&&_(Z.clipboardImageEnabled!==!1),Z.clipboardDeduplicateMinutes!==void 0&&k(Z.clipboardDeduplicateMinutes),Z.domain&&N(Z.domain),Z.jiraIssuePrefix&&j(Z.jiraIssuePrefix)}}).catch(()=>{}).finally(()=>a(!1))},[]);const V=async Z=>{n(Z),localStorage.setItem("buddy_clipboard_enabled",String(Z));try{const de=(await tr.saveClipboardEnabled(Z)).clipboardEnabled!==!1;n(de),localStorage.setItem("buddy_clipboard_enabled",String(de)),e.success(Z?"Clipboard history enabled":"Clipboard history disabled")}catch(se){e.error(se.message)}},P=async Z=>{_(Z);try{const se=await tr.saveClipboardImageEnabled(Z);se&&se.clipboardImageEnabled!==void 0&&_(se.clipboardImageEnabled!==!1),e.success(Z?"Image clipboard monitoring enabled":"Image clipboard monitoring disabled")}catch(se){e.error(se.message)}},A=async Z=>{k(Z);try{await tr.saveClipboardDeduplicateMinutes(Z),e.success("Duplicate filter window updated.")}catch(se){e.error(se.message)}},H=async Z=>{try{const[se,de]=await Promise.all([Li.list(Z),Li.tagged().catch(()=>({items:[]}))]);s(se.dates),v(se.items),h(de.items||[])}catch(se){e.error(se.message)}},W=async(Z,se)=>{const de=(se||"").trim();if(!de)return;const te=Z.tags||[];if(te.includes(de)){y(null);return}const X=[...te,de],Q=Z.date||c;try{await Li.updateTags(Q,Z.id,X),v(oe=>oe.map(J=>J.id===Z.id?{...J,tags:X}:J)),h(oe=>oe.some(ve=>ve.id===Z.id)?oe.map(ve=>ve.id===Z.id?{...ve,tags:X}:ve):[{...Z,tags:X,date:Q},...oe]),e.success("Tag added")}catch(oe){e.error(oe.message)}finally{y(null),x("")}},U=async(Z,se)=>{const te=(Z.tags||[]).filter(Q=>Q!==se),X=Z.date||c;try{await Li.updateTags(X,Z.id,te),v(Q=>Q.map(oe=>oe.id===Z.id?{...oe,tags:te}:oe)),h(Q=>te.length===0?Q.filter(oe=>oe.id!==Z.id):Q.map(oe=>oe.id===Z.id?{...oe,tags:te}:oe)),e.success("Tag removed")}catch(Q){e.error(Q.message)}},F=o.useRef(ru());o.useEffect(()=>{if(!t)return;const Z=()=>{const X=ru();if(X!==F.current){const Q=F.current;if(F.current=X,c===Q)return f(X),!0}return!1};Z()||H(c);const de=()=>{Z()||H(c)};window.addEventListener("visibilitychange",de),window.addEventListener("focus",de);let te=null;return c===ru()&&(te=setInterval(()=>{document.visibilityState==="visible"&&H(c)},3e3)),()=>{window.removeEventListener("visibilitychange",de),window.removeEventListener("focus",de),te&&clearInterval(te)}},[c,t]);const q=async Z=>{try{await Li.remove(c,Z),await H(c),e.success("Clipboard entry deleted.")}catch(se){e.error(se.message)}},K=async Z=>{var de;const se=Z.date||c;if(Z.imageFile)try{if(!((de=navigator.clipboard)!=null&&de.write)||typeof window.ClipboardItem>"u")throw new Error("Image clipboard is not supported by this browser.");await Li.copied(se,Z.id);const te=await fetch(gj(Z.imageFile));if(!te.ok)throw new Error("Unable to load image.");const X=await jue(await te.blob());try{await navigator.clipboard.write([new ClipboardItem({"image/png":X})])}catch(Q){await Li.copyImage(se,Z.id).catch(()=>{throw Q})}R(Z.id),setTimeout(()=>{R(Q=>Q===Z.id?null:Q)},1e3)}catch(te){e.error("Failed to copy image: "+te.message)}else navigator.clipboard.writeText(Z.text||Z.preview),Li.copied(se,Z.id).catch(()=>{}),R(Z.id),setTimeout(()=>{R(te=>te===Z.id?null:te)},1e3)},G=o.useMemo(()=>[...new Set([ru(),...l,c])],[l,c]);o.useEffect(()=>{if(!t)return;const Z=se=>{const de=document.activeElement;if(de&&(de.tagName==="INPUT"||de.tagName==="TEXTAREA"||de.isContentEditable||de.closest(".clipboard-tabs")))return;const te=[...G].sort(),X=te.indexOf(c);se.key==="ArrowLeft"?X>0&&f(te[X-1]):se.key==="ArrowRight"&&X<te.length-1&&X!==-1&&f(te[X+1])};return window.addEventListener("keydown",Z),()=>window.removeEventListener("keydown",Z)},[G,c,t]),o.useEffect(()=>{if(!t)return;const Z=async se=>{var X;const de=document.activeElement;if(de&&(de.tagName==="INPUT"||de.tagName==="TEXTAREA"||de.isContentEditable))return;const te=(X=se.clipboardData)==null?void 0:X.items;if(te){for(const Q of te)if(Q.type.startsWith("image/")){const oe=Q.getAsFile();if(oe){try{e.loading({content:"Compressing and saving image from paste…",key:"paste-upload",duration:0});const J=await bue(oe);await Li.uploadImage(J);const ve=ru();f(ve),await H(ve),e.success({content:"Image pasted and saved to history!",key:"paste-upload"})}catch(J){e.error({content:"Failed to save pasted image: "+J.message,key:"paste-upload"})}break}}}};return window.addEventListener("paste",Z),()=>window.removeEventListener("paste",Z)},[c,t]);const Y=G.reduce((Z,se)=>{var Q;const[de,te,X]=se.split("-");return Z[de]||(Z[de]={}),(Q=Z[de])[te]||(Q[te]=[]),Z[de][te].includes(X)||Z[de][te].push(X),Z},{}),ee=Object.entries(Y).sort(([Z],[se])=>se.localeCompare(Z)).map(([Z,se])=>({value:Z,label:Z,children:Object.entries(se).sort(([de],[te])=>te.localeCompare(de)).map(([de,te])=>({value:de,label:de,children:te.sort().reverse().map(X=>({value:X,label:X}))}))})),ae=o.useMemo(()=>w==="tagged"?g:w==="all"?m:w==="image"?m.filter(Z=>!!Z.imageFile):m.filter(Z=>!Z.imageFile&&js(vj(Z),w,I)),[w,m,g,I]),le=o.useMemo(()=>{const Z={all:m.length,tagged:g.length,jira:0,account:0,id:0,url:0,json:0,code:0,image:0};for(const de of m)if(de.imageFile)Z.image++;else{const te=vj(de);js(te,"jira",I)&&Z.jira++,js(te,"account")&&Z.account++,js(te,"id")&&Z.id++,js(te,"url")&&Z.url++,js(te,"json")&&Z.json++,js(te,"code")&&Z.code++}const se=[{key:"all",label:`All (${Z.all})`},{key:"tagged",label:`Tagged (${Z.tagged})`},{key:"jira",label:`Jira (${Z.jira})`},{key:"account",label:`Account (${Z.account})`},{key:"id",label:`ID (${Z.id})`},{key:"url",label:`Url (${Z.url})`},{key:"json",label:`JSON (${Z.json})`},{key:"code",label:`Code (${Z.code})`}];return z&&se.push({key:"image",label:`Img (${Z.image})`}),se},[m,g,I,z]);return o.useEffect(()=>{!z&&w==="image"&&$("all")},[z,w]),u.jsxs("div",{className:"clipboard-page",children:[u.jsx(Gr,{actions:u.jsxs("div",{className:"clipboard-controls",children:[u.jsxs(nt,{size:16,align:"center",children:[u.jsx(Qi,{loading:r,checked:t,onChange:V,checkedChildren:"On",unCheckedChildren:"Off"}),u.jsx(as,{className:"clipboard-picker",disabled:!t||r,options:ee,value:c.split("-"),onChange:Z=>(Z==null?void 0:Z.length)===3&&f(Z.join("-")),placeholder:"Select date"})]}),u.jsxs("div",{className:"clipboard-settings",children:[u.jsxs("div",{className:"clipboard-setting-row",children:[u.jsx(Xd,{type:"secondary",className:"clipboard-setting-label",children:"Deduplicate filter:"}),u.jsx(kn,{size:"small",disabled:!t||r,value:M,onChange:A,className:"clipboard-deduplicate-select",options:$ue})]}),z&&u.jsxs("div",{className:"clipboard-setting-row",children:[u.jsx(Xd,{type:"secondary",className:"clipboard-setting-label",children:"Monitor image clipboard:"}),u.jsx(Qi,{size:"small",disabled:!t||r,checked:L,onChange:P,checkedChildren:"On",unCheckedChildren:"Off"})]})]})]}),description:"Saved locally and archived by date.",title:"Clipboard History"}),t?u.jsxs(u.Fragment,{children:[u.jsx(po,{className:"clipboard-tabs",activeKey:w,onChange:Z=>{$(Z),requestAnimationFrame(()=>{var se;return(se=document.activeElement)==null?void 0:se.blur()})},onKeyDown:Z=>{var se;["ArrowLeft","ArrowRight"].includes(Z.key)&&(Z.preventDefault(),(se=document.activeElement)==null||se.blur())},items:le}),ae.length?u.jsx("div",{className:"clipboard-list",children:ae.map(Z=>{const se=Z.date||c,de=`/api/clipboard/${encodeURIComponent(se)}/${encodeURIComponent(Z.id)}`,te=new Date(Z.createdAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return u.jsxs(Wt,{size:"small",className:"clipboard-item",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"clipboard-item-meta",children:[u.jsx(Xd,{type:"secondary",children:te}),Z.date&&Z.date!==c&&u.jsx(_t,{style:{margin:0},children:Z.date}),(Z.tags||[]).map(X=>u.jsx(_t,{color:"purple",closable:!0,onClose:Q=>{Q.preventDefault(),U(Z,X)},style:{margin:0},children:X},X)),u.jsx(iC,{content:u.jsxs(nt.Compact,{style:{width:200},children:[u.jsx(wt,{size:"small",placeholder:"Tag name",value:S,onChange:X=>x(X.target.value),onPressEnter:()=>W(Z,S)}),u.jsx(Oe,{size:"small",type:"primary",onClick:()=>W(Z,S),children:"Add"})]}),title:"Add Tag",trigger:"click",open:b===Z.id,onOpenChange:X=>{y(X?Z.id:null),x("")},children:u.jsxs(_t,{style:{cursor:"pointer",borderStyle:"dashed",margin:0},children:[u.jsx(dr,{})," Tag"]})})]}),Z.imageFile?u.jsx("div",{className:"clipboard-image-wrap",children:u.jsx(RI,{src:gj(Z.imageFile),alt:"Clipboard entry",className:"clipboard-image",preview:!0,onError:()=>e.error("Unable to load clipboard image.")})}):u.jsxs(u.Fragment,{children:[u.jsx(Oue,{children:u.jsx(Eue,{value:Z.preview||Z.text,domain:O,jiraIssuePrefix:I})}),Z.contentFile&&u.jsxs("span",{className:"clipboard-original",children:[u.jsx("a",{href:de,target:"_blank",rel:"noreferrer",children:"View original content"}),u.jsxs("a",{href:Z.editorUrl,children:["Open in ",Z.editorName||"editor"]})]})]})]}),u.jsxs("span",{className:"clipboard-actions",children:[u.jsx(yn,{title:E===Z.id?"Copied!":"Copy",children:u.jsx(Oe,{type:"text",icon:E===Z.id?u.jsx(Yi,{style:{color:"#52c41a"}}):u.jsx(_o,{}),onClick:()=>K(Z)})}),u.jsx(yn,{title:"Delete",children:u.jsx(Oe,{type:"text",danger:!0,icon:u.jsx(or,{}),onClick:()=>q(Z.id)})})]})]},Z.id)})}):u.jsx(vn,{description:`No ${w==="all"?"clipboard entries":`${w==="id"?"ID":w} entries`}${w==="tagged"?".":` for ${c}.`}`})]}):u.jsx(Wt,{className:"clipboard-disabled-card",children:u.jsx(vn,{image:u.jsx(Jg,{style:{fontSize:48,color:"#9ca3af"}}),description:u.jsxs("div",{className:"clipboard-disabled-copy",children:[u.jsx(Xd,{strong:!0,className:"clipboard-disabled-title",children:"Clipboard history is disabled"}),u.jsx(Xd,{type:"secondary",children:"Turn on the switch in the top-right corner to start capturing and viewing history."})]})})}),u.jsx(os.BackTop,{visibilityHeight:240})]})}const PM=[{value:"vscode",label:"VS Code"},{value:"devin",label:"Devin"},{value:"idea",label:"IntelliJ IDEA"}];function kM(e="vscode"){const t=PM.find(n=>n.value===e);return t?t.label:"VS Code"}function DM(e="vscode",t="",n="",r={}){if(!t)return"";const a=typeof r=="boolean"?r:!!(r!=null&&r.newWindow);let l="",s="";if(n){const c=n.split(":").filter(Boolean);c[0]&&(l=c[0]),c[1]&&(s=c[1])}if(e==="idea"){let c=`idea://open?file=${encodeURIComponent(t)}`;return l&&(c+=`&line=${l}`),s&&(c+=`&column=${s}`),c}return e==="devin"?`devin://file${encodeURI(t)}${n}`:a?`vscode://vscode.open-folder${encodeURI(t)}?forceNewWindow=true`:`vscode://file${encodeURI(t)}${n}`}const{Text:I1}=Rn;function Rue({tasks:e,running:t,onCreate:n,onEdit:r,onStart:a,onStop:l,onRemove:s}){const c=[{title:"Name",dataIndex:"name",render:f=>u.jsx(I1,{strong:!0,children:f})},{title:"Scripts",dataIndex:"items",width:110,render:f=>u.jsxs(I1,{type:"secondary",children:[f.length," scripts"]})},{title:"Actions",width:236,render:(f,m)=>{const v=m.items.every(g=>t.has(`${g.launcherId}:${g.scriptId}`));return u.jsxs(nt,{children:[u.jsx(Oe,{size:"small",danger:v,icon:v?u.jsx(Jg,{}):u.jsx(nc,{}),onClick:()=>v?l(m):a(m),children:v?"Stop":"Start"}),u.jsx(Oe,{size:"small",onClick:()=>r(m),children:"Edit"}),u.jsx(Oe,{size:"small",danger:!0,icon:u.jsx(or,{}),onClick:()=>s(m),children:"Delete"})]})}}];return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"group-task-header",children:[u.jsx(I1,{type:"secondary",children:"Start selected scripts across multiple services."}),u.jsx(Oe,{type:"primary",icon:u.jsx(dr,{}),onClick:n,children:"Add quick launch"})]}),e.length?u.jsx(Un,{className:"group-task-table",rowKey:"id",dataSource:e,columns:c,pagination:!1,size:"small"}):u.jsx(vn,{description:"No quick launches yet.",className:"group-task-empty"})]})}function Uf({open:e,initialPath:t="~",onCancel:n,onSelect:r,title:a="Browse Directory",selectionType:l="directory"}){const{message:s}=qr.useApp(),[c,f]=o.useState(t),[m,v]=o.useState(null),[g,h]=o.useState(!1),b=async y=>{h(!0);try{const S=await cf.browse(y||"~");v(S),f(S.currentPath)}catch(S){s.error(S.message||"Failed to read directory")}finally{h(!1)}};return o.useEffect(()=>{e&&b(t||"~")},[e,t]),u.jsx($n,{title:a,open:e,onCancel:n,footer:null,width:640,destroyOnClose:!0,children:u.jsxs(wr,{spinning:g,children:[u.jsx("div",{className:"file-browser-path-row",children:u.jsx(wt,{value:c,onChange:y=>f(y.target.value),onPressEnter:()=>b(c),addonAfter:u.jsx(Oe,{size:"small",type:"text",onClick:()=>b(c),children:"Go"})})}),m&&u.jsxs("div",{children:[u.jsx("div",{className:"file-browser-parent-row",children:u.jsxs(Oe,{size:"small",onClick:()=>b(m.parentPath),disabled:m.currentPath===m.parentPath,children:[u.jsx(ec,{}),"Parent Directory"]})}),u.jsx("div",{className:"file-browser-list",children:m.subdirectories.length===0&&(l!=="file"||(m.files||[]).length===0)?u.jsx("div",{className:"file-browser-empty",children:"No items found"}):u.jsxs(u.Fragment,{children:[m.subdirectories.map(y=>u.jsxs("div",{className:"file-browser-item",onClick:()=>b(y.fullPath),children:[u.jsxs("span",{children:[u.jsx(ca,{className:"file-browser-icon"}),y.name]}),l==="directory"&&u.jsx(Oe,{size:"small",type:"link",onClick:S=>{S.stopPropagation(),r(y.fullPath)},children:"Select Folder"})]},y.fullPath)),l==="file"&&(m.files||[]).map(y=>u.jsxs("div",{className:"file-browser-item",onClick:()=>r(y.fullPath),children:[u.jsxs("span",{children:[u.jsx(Ql,{className:"file-browser-icon"}),y.name]}),u.jsx(Oe,{size:"small",type:"link",onClick:S=>{S.stopPropagation(),r(y.fullPath)},children:"Select File"})]},y.fullPath))]})}),l==="directory"&&u.jsx("div",{className:"file-browser-confirm-row",children:u.jsxs(Oe,{type:"primary",onClick:()=>r(m.currentPath),children:["Confirm Path: ",m.currentPath]})})]})]})})}const{Text:Os}=Rn,Yd=(e,t)=>`${e}:${t}`,Iue=()=>u.jsx("div",{style:{width:"0.8em",height:"0.8em",backgroundColor:"rgba(0,0,0,0.88)"}});function Mue({form:e,editing:t,executor:n,running:r,errorCounts:a={},packageScripts:l,onRun:s,onRunInstall:c,onRunPackage:f,onStop:m,onLogs:v,onPackageLogs:g}){const h=!!(t&&[...r].some(S=>S.startsWith(`${t.id}:`))),[b,y]=o.useState(()=>h);return o.useEffect(()=>{h&&y(!0)},[t==null?void 0:t.id]),o.useEffect(()=>{h||y(!1)},[h]),u.jsx(gt.List,{name:"scripts",children:(S,{add:x,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 I=N.kind==="custom"?e.getFieldValue(["scripts",N.name]):N.script;return t&&(I==null?void 0:I.id)&&r.has(Yd(t.id,I.id))}):E,O=[{title:"Source",width:100,render:(N,I)=>u.jsx(_t,{color:I.kind==="package"?"purple":I.kind==="install"?"green":"default",children:I.kind==="package"?"Package":I.kind==="install"?"Executor":"Custom"})},{title:"Script name",width:200,render:(N,I)=>{var z;const j=I.kind==="custom"?e.getFieldValue(["scripts",I.name]):I.script,M=(j==null?void 0:j.name)===e.getFieldValue("startCommand"),k=t&&(j==null?void 0:j.id)&&r.has(Yd(t.id,j.id));return u.jsxs(nt,{direction:"vertical",size:1,style:{width:"100%"},children:[I.kind!=="custom"||k?u.jsxs(nt,{size:4,children:[u.jsx(Os,{strong:!0,children:(j==null?void 0:j.name)||((z=I.script)==null?void 0:z.name)}),M&&u.jsx(uo,{className:"start-script-icon"})]}):u.jsx(gt.Item,{noStyle:!0,name:[I.name,"name"],rules:[{required:!0,message:"Required"}],children:u.jsx(wt,{placeholder:"serve",allowClear:!0,suffix:M?u.jsx(uo,{className:"start-script-icon"}):null})}),k&&u.jsx(ga,{status:"success",text:u.jsx(Os,{type:"secondary",style:{fontSize:11},children:"running"})})]})}},{title:"Command",render:(N,I)=>{const j=I.kind==="custom"?e.getFieldValue(["scripts",I.name]):I.script,M=t&&(j==null?void 0:j.id)&&r.has(Yd(t.id,j.id));return I.kind==="package"?u.jsxs(nt,{direction:"vertical",size:0,children:[u.jsxs(Os,{code:!0,children:[n," run ",I.script.name]}),u.jsx(Os,{type:"secondary",style:{fontSize:12},children:I.script.command})]}):I.kind==="install"?u.jsx(Os,{code:!0,children:I.script.command}):M?u.jsx(Os,{code:!0,children:j==null?void 0:j.command}):u.jsx(gt.Item,{noStyle:!0,name:[I.name,"command"],rules:[{required:!0,message:"Required"}],children:u.jsx(wt,{placeholder:"npm run dev",allowClear:!0})})}},{title:"Actions",width:132,render:(N,I)=>{const j=I.kind==="custom"?e.getFieldValue(["scripts",I.name]):I.script,M=t&&(j==null?void 0:j.id)&&r.has(Yd(t.id,j.id)),k=t&&(j!=null&&j.id)&&a[Yd(t.id,j.id)]||0;return u.jsxs(nt,{size:2,children:[t&&u.jsx(yn,{title:M?"Stop":"Start",children:u.jsx(Oe,{type:"text",danger:M,icon:M?u.jsx(Iue,{}):u.jsx($ce,{}),onClick:()=>M?m(j):I.kind==="package"?f(j):I.kind==="install"?c(j):s(j),disabled:!(j!=null&&j.id)})}),u.jsx(yn,{title:"Logs",children:u.jsx(ga,{count:k,size:"small",offset:[-2,2],children:u.jsx(Oe,{type:"text",icon:u.jsx(nl,{}),onClick:()=>I.kind==="package"?g(j):v(j),disabled:!t||!(j!=null&&j.id)})})}),I.kind==="custom"&&!M&&u.jsx(yn,{title:"Remove",children:u.jsx(Oe,{type:"text",danger:!0,icon:u.jsx(or,{}),onClick:()=>w(I.name)})})]})}}];return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"script-header",children:[u.jsx(dm,{orientation:"left",children:"Scripts"}),u.jsxs(nt,{size:"middle",align:"center",children:[u.jsxs("label",{className:"script-running-filter",children:[u.jsx(Qi,{size:"small",checked:b,onChange:y,disabled:!t}),u.jsx(Os,{type:"secondary",className:"script-running-filter-label",children:"Show running only"})]}),u.jsx(Oe,{icon:u.jsx(dr,{}),onClick:()=>{y(!1),x({name:"",command:""})},children:"Add script"})]})]}),u.jsx(Un,{size:"small",rowKey:"key",pagination:!1,loading:l===null,dataSource:R,columns:O})]})}})}const Tue=e=>u.jsx("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"currentColor",style:{verticalAlign:"-0.125em",...e.style},...e,children:u.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 Pue(e){if(!e)return null;const t=e.toLowerCase();return t.includes("bitbucket")?u.jsx(Tue,{style:{color:"#2584FF"}}):t.includes("github")?u.jsx(Lse,{style:{color:"#24292e"}}):t.includes("gitlab")?u.jsx(Yg,{style:{color:"#fc6d26"}}):u.jsx(Qu,{className:"repo-generic-icon"})}function zM({repoUrl:e,style:t}){if(!e)return null;const n=Pue(e);return n?u.jsx(yn,{title:"Open repository in browser",children:u.jsx(Oe,{className:"repo-icon-button",type:"text",size:"small",icon:n,onClick:r=>{r.preventDefault(),r.stopPropagation(),Rr(e)},style:t})}):null}const kue=()=>({alias:"",folder:"",groupName:"",executor:"npm",startCommand:void 0,scripts:[]});function Due({open:e,editing:t,groups:n,running:r,errorCounts:a={},onCancel:l,onSave:s,onRun:c,onRunInstall:f,onRunPackage:m,onStop:v,onLogs:g,onDelete:h}){const{message:b,modal:y}=qr.useApp(),[S]=gt.useForm(),[x,w]=o.useState(null),[$,E]=o.useState(!1),R=j=>{if(j&&(S.setFieldValue("folder",j),!S.getFieldValue("alias"))){const k=j.split(/[/\\]/).filter(Boolean);k.length>0&&S.setFieldValue("alias",k[k.length-1])}E(!1)},O=async()=>{const j=String(S.getFieldValue("folder")||"").trim();if(!j){b.warning("Set a project folder first.");return}try{await tr.openFolder(j)}catch(M){b.error(M.message)}},N=()=>{y.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(j){b.error(j.message)}}})};o.useEffect(()=>{e&&(S.resetFields(),S.setFieldsValue(t?{...t,startCommand:t.startCommand||void 0,scripts:t.scripts}:kue()),w(t?null:[]),t&&jr.packageScripts(t.id).then(j=>w(j.scripts)).catch(()=>w([])))},[e,t,S]);const I=async()=>{try{const j=(S.getFieldValue("scripts")||[]).filter(z=>{var D,L;return((D=z==null?void 0:z.name)==null?void 0:D.trim())||((L=z==null?void 0:z.command)==null?void 0:L.trim())});S.setFieldValue("scripts",j);const M=await S.validateFields(["alias","folder","groupName","startCommand"]),k={...S.getFieldsValue(!0),...M,scripts:j};await s(k)}catch(j){if(j!=null&&j.errorFields)return;b.error(j.message)}};return u.jsxs($n,{title:t?u.jsxs(nt,{align:"center",size:6,children:[u.jsxs("span",{children:["Service details · ",t.alias]}),u.jsx(zM,{repoUrl:t.repoUrl})]}):"Add service",open:e,onCancel:l,onOk:I,okText:t?"Save":"Save service",width:860,destroyOnClose:!0,footer:u.jsxs("div",{className:"service-modal-footer",children:[t?u.jsx(Oe,{type:"primary",danger:!0,onClick:N,children:"Delete service"}):u.jsx("div",{}),u.jsxs(nt,{children:[u.jsx(Oe,{onClick:l,children:"Cancel"}),u.jsx(Oe,{type:"primary",onClick:I,children:t?"Save":"Save service"})]})]}),children:[u.jsxs(gt,{form:S,layout:"vertical",children:[u.jsx(Pf,{className:"service-config",defaultActiveKey:t?[]:["configuration"],items:[{key:"configuration",label:"Service configuration",children:u.jsxs(To,{gutter:[16,0],children:[u.jsx(Yn,{xs:24,sm:12,children:u.jsx(gt.Item,{label:"Name",name:"alias",rules:[{required:!0}],children:u.jsx(wt,{placeholder:"Service name",allowClear:!0})})}),u.jsx(Yn,{xs:24,sm:12,children:u.jsx(gt.Item,{label:"Project folder",name:"folder",rules:[{required:!0}],children:u.jsx(wt,{prefix:u.jsx(Oe,{type:"text",htmlType:"button",icon:u.jsx(ca,{}),onClick:O,"aria-label":"Open project folder",title:"Open project folder",style:{color:"#8c8c8c",padding:"0 4px"}}),suffix:u.jsx(Oe,{type:"text",size:"small",icon:u.jsx(ca,{}),onClick:()=>E(!0),style:{fontSize:12,padding:"0 4px"},children:"Browse"}),placeholder:"Project folder path",allowClear:!0})})}),u.jsx(Yn,{xs:24,sm:8,children:u.jsx(gt.Item,{label:"Group",name:"groupName",children:u.jsx(ju,{options:n.map(j=>({value:j})),placeholder:"Group name",allowClear:!0})})}),u.jsx(Yn,{xs:24,sm:8,children:u.jsx(gt.Item,{label:"Executor",name:"executor",rules:[{required:!0}],children:u.jsx(ju,{options:["npm","pnpm","yarn"].map(j=>({value:j})),placeholder:"npm",allowClear:!0})})}),u.jsx(Yn,{xs:24,sm:8,children:u.jsx(gt.Item,{noStyle:!0,shouldUpdate:(j,M)=>j.scripts!==M.scripts,children:()=>{const j=(S.getFieldValue("scripts")||[]).map(z=>z==null?void 0:z.name).filter(Boolean),M=(x||[]).map(z=>z.name),k=[...new Set([...j,...M])].map(z=>({label:z,value:z}));return u.jsx(gt.Item,{label:"Start script name",name:"startCommand",children:u.jsx(kn,{placeholder:"Select start script",allowClear:!0,options:k})})}})})]})}]}),u.jsx(gt.Item,{noStyle:!0,shouldUpdate:(j,M)=>j.executor!==M.executor||j.startCommand!==M.startCommand||j.scripts!==M.scripts,children:()=>u.jsx(Mue,{form:S,editing:t,executor:S.getFieldValue("executor")||"npm",running:r,errorCounts:a,packageScripts:x,onRun:j=>c(t,j),onRunInstall:()=>f(t),onRunPackage:j=>m(t,j),onStop:j=>v(t,j.id),onLogs:j=>g(t,j),onPackageLogs:j=>g(t,j,!0)})})]}),u.jsx(Uf,{open:$,initialPath:S.getFieldValue("folder")||"~",onCancel:()=>E(!1),onSelect:R,title:"Select Project Directory"})]})}const{Text:zue}=Rn;function Aue({open:e,editingGroupTask:t,groupCatalog:n,onCancel:r,onSave:a}){const{message:l}=qr.useApp(),[s]=gt.useForm();o.useEffect(()=>{e&&(s.resetFields(),s.setFieldsValue({name:(t==null?void 0:t.name)||"",items:(t==null?void 0:t.items.map(m=>`${m.launcherId}|${m.scriptId}`))||[]}))},[e,t,s]);const c=o.useMemo(()=>Object.entries(n.reduce((m,v)=>{const g=v.groupName||"Ungrouped";return(m[g]||(m[g]=[])).push(v),m},{})).sort(([m],[v])=>m.localeCompare(v)).map(([m,v])=>({key:m,label:m,children:u.jsx("div",{className:"group-task-projects",children:v.map(g=>u.jsx(Wt,{size:"small",title:g.alias,children:u.jsx(nt,{direction:"vertical",children:g.scripts.map(h=>u.jsxs(ar,{value:`${g.id}|${h.id}`,children:[h.name," ",u.jsxs(zue,{type:"secondary",children:["(",h.source,")"]})]},h.id))})},g.id))})})),[n]),f=async()=>{try{const m=await s.validateFields(),v={name:m.name,items:m.items.map(g=>{const[h,b]=g.split("|");return{launcherId:h,scriptId:b}})};await a(v)}catch(m){m!=null&&m.errorFields||l.error(m.message)}};return u.jsx($n,{title:t?`Edit quick launch · ${t.name}`:"Add quick launch",open:e,onCancel:r,onOk:f,okText:t?"Save changes":"Save quick launch",width:760,destroyOnClose:!0,children:u.jsxs(gt,{form:s,layout:"vertical",children:[u.jsx(gt.Item,{label:"Name",name:"name",rules:[{required:!0}],children:u.jsx(wt,{placeholder:"Start local stack",allowClear:!0})}),u.jsx(gt.Item,{label:"Scripts",name:"items",rules:[{required:!0,message:"Select at least one script."}],children:u.jsx(ar.Group,{className:"group-task-selector",children:u.jsx(po,{items:c})})})]})})}const pj={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 yx({value:e,editor:t}){const[n,r]=o.useState(t||"vscode"),[a,l]=o.useState(""),[s,c]=o.useState("");o.useEffect(()=>{t&&r(t),tr.status().then(g=>{g!=null&&g.defaultEditor&&!t&&r(g.defaultEditor),g!=null&&g.domain&&l(g.domain),g!=null&&g.jiraIssuePrefix&&c(g.jiraIssuePrefix)}).catch(()=>{})},[t]);const f=(s||"").split(/[\s,]+/).filter(Boolean).map(g=>g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),m=f.length>0&&a?new RegExp(`\\b(?:${f.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,v=(g,h)=>{let b="";const y=($,E)=>$.split(/(\u001b\[[0-9;]*m)/g).map((O,N)=>{const I=O.match(/^\u001b\[([0-9;]*)m$/);if(I){const M=I[1].split(";").map(Number);return b=M.includes(0)?"":pj[M.find(k=>pj[k])]||b,null}if(!O)return null;const j=b||(/\b(error|failed|fatal|exception|TS\d{4,5})\b/i.test(O)?"log-error":/\b(warn|warning)\b/i.test(O)?"log-warning":/\b(success|ready|started|listening)\b/i.test(O)?"log-success":"");return u.jsx("span",{className:j,children:O},`${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,x=m&&m.test(g);return!g.includes("http")&&!g.includes("/")&&!x?y(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,""),I=N.replace(/[),.;:!?]+$/,""),j=N.slice(I.length);return u.jsxs("span",{children:[u.jsx("a",{className:"log-link",href:I,target:"_blank",rel:"noreferrer",onClick:M=>{M.preventDefault(),Rr(I)},children:y($.slice(0,$.length-j.length),`${R}-url`)}),j&&y(j,`${R}-suf`)]},R)}const O=$.replace(/\u001b\[[0-9;]*m/g,"");if(O.startsWith("/")){const[,N,I=""]=O.match(/^(.*?)(:\d+(?::\d+)?)?$/)||[];if(N){const j=DM(n,N,I);return u.jsx("a",{className:"log-link",href:j,target:"_blank",rel:"noreferrer",title:`Open in ${kM(n)}`,children:y($,R)},R)}}if(m&&a&&(m.lastIndex=0,m.test(O))){const N=[];let I=0;m.lastIndex=0;for(const j of O.matchAll(m)){j.index>I&&N.push(y(O.slice(I,j.index),`${R}-sub-${j.index}`));const M=j[0],k=ch(a,M);N.push(u.jsx("a",{className:"log-link",href:k,target:"_blank",rel:"noreferrer",onClick:z=>{z.preventDefault(),Rr(k)},children:M},`${R}-jira-${j.index}`)),I=j.index+M.length}return I<O.length&&N.push(y(O.slice(I),`${R}-sub-end`)),u.jsx("span",{children:N},R)}return y($,R)})};return u.jsx("div",{className:"log-output",role:"log",children:e.split(`
|
|
496
|
+
`]:{zIndex:10,width:r,margin:`0 ${ue(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${c}-thumbnail, ${c}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${c}-name`]:{display:"none",textAlign:"center"},[`${c}-file + ${c}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ue(l(e.paddingXS).mul(2).equal())})`},[`${c}-uploading`]:{[`&${c}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${c}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ue(l(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Rie=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Iie=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},hn(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"}})}},Mie=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),Tie=dn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,pictureCardSize:a,calc:l}=e,s=on(e,{uploadThumbnailSize:l(t).mul(2).equal(),uploadProgressOffset:l(l(n).div(2)).add(r).equal(),uploadPicCardSize:a});return[Iie(s),$ie(s),Oie(s),Nie(s),Eie(s),jie(s),Rie(s),Qf(s)]},Mie);var Pie={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"},kie=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Pie}))},Die=o.forwardRef(kie),zie={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"},Aie=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:zie}))},_ie=o.forwardRef(Aie),Lie={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"},Bie=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Lie}))},Hie=o.forwardRef(Bie);function Xv(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 Yv(e,t){const n=_e(t),r=n.findIndex(({uid:a})=>a===e.uid);return r===-1?n.push(e):n[r]=e,n}function $1(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function Fie(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 Vie=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},SM=e=>e.indexOf("image/")===0,Wie=e=>{if(e.type&&!e.thumbUrl)return SM(e.type);const t=e.thumbUrl||e.url||"",n=Vie(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)},Il=200;function Kie(e){return new Promise(t=>{if(!e.type||!SM(e.type)){t("");return}const n=document.createElement("canvas");n.width=Il,n.height=Il,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Il}px; height: ${Il}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 c=Il,f=Il,m=0,v=0;l>s?(f=s*(Il/l),v=-(f-c)/2):(c=l*(Il/s),m=-(c-f)/2),r.drawImage(a,m,v,c,f);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 Uie={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"},qie=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Uie}))},Ju=o.forwardRef(qie);const Gie=o.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:a,file:l,items:s,progress:c,iconRender:f,actionIconRender:m,itemRender:v,isImgUrl:g,showPreviewIcon:h,showRemoveIcon:b,showDownloadIcon:y,previewIcon:S,removeIcon:x,downloadIcon:w,extra:$,onPreview:E,onDownload:R,onClose:O},N)=>{var I,j;const{status:M}=l,[k,z]=o.useState(M);o.useEffect(()=>{M!=="removed"&&z(M)},[M]);const[D,L]=o.useState(!1);o.useEffect(()=>{const te=setTimeout(()=>{L(!0)},300);return()=>{clearTimeout(te)}},[]);const _=f(l);let V=o.createElement("div",{className:`${e}-icon`},_);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(k==="uploading"||!l.thumbUrl&&!l.url){const te=me(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:k!=="uploading"});V=o.createElement("div",{className:te},_)}else{const te=g!=null&&g(l)?o.createElement("img",{src:l.thumbUrl||l.url,alt:l.name,className:`${e}-list-item-image`,crossOrigin:l.crossOrigin}):_,X=me(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:g&&!g(l)});V=o.createElement("a",{className:X,onClick:Q=>E(l,Q),href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},te)}const P=me(`${e}-list-item`,`${e}-list-item-${k}`),A=typeof l.linkProps=="string"?JSON.parse(l.linkProps):l.linkProps,H=(typeof b=="function"?b(l):b)?m((typeof x=="function"?x(l):x)||o.createElement(or,null),()=>O(l),e,r.removeFile,!0):null,W=(typeof y=="function"?y(l):y)&&k==="done"?m((typeof w=="function"?w(l):w)||o.createElement(Ju,null),()=>R(l),e,r.downloadFile):null,U=a!=="picture-card"&&a!=="picture-circle"&&o.createElement("span",{key:"download-delete",className:me(`${e}-list-item-actions`,{picture:a==="picture"})},W,H),F=typeof $=="function"?$(l):$,q=F&&o.createElement("span",{className:`${e}-list-item-extra`},F),K=me(`${e}-list-item-name`),G=l.url?o.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:K,title:l.name},A,{href:l.url,onClick:te=>E(l,te)}),l.name,q):o.createElement("span",{key:"view",className:K,onClick:te=>E(l,te),title:l.name},l.name,q),Y=(typeof h=="function"?h(l):h)&&(l.url||l.thumbUrl)?o.createElement("a",{href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:te=>E(l,te),title:r.previewFile},typeof S=="function"?S(l):S||o.createElement(Uu,null)):null,ee=(a==="picture-card"||a==="picture-circle")&&k!=="uploading"&&o.createElement("span",{className:`${e}-list-item-actions`},Y,k==="done"&&W,H),{getPrefixCls:ae}=o.useContext(It),le=ae(),Z=o.createElement("div",{className:P},V,G,U,ee,D&&o.createElement(ra,{motionName:`${le}-fade`,visible:k==="uploading",motionDeadline:2e3},({className:te})=>{const X="percent"in l?o.createElement(gm,Object.assign({type:"line",percent:l.percent,"aria-label":l["aria-label"],"aria-labelledby":l["aria-labelledby"]},c)):null;return o.createElement("div",{className:me(`${e}-list-item-progress`,te)},X)})),se=l.response&&typeof l.response=="string"?l.response:((I=l.error)===null||I===void 0?void 0:I.statusText)||((j=l.error)===null||j===void 0?void 0:j.message)||r.uploadError,de=k==="error"?o.createElement(yn,{title:se,getPopupContainer:te=>te.parentNode},Z):Z;return o.createElement("div",{className:me(`${e}-list-item-container`,t),style:n,ref:N},v?v(de,l,s,{download:R.bind(null,l),preview:E.bind(null,l),remove:O.bind(null,l)}):de)}),Xie=(e,t)=>{const{listType:n="text",previewFile:r=Kie,onPreview:a,onDownload:l,onRemove:s,locale:c,iconRender:f,isImageUrl:m=Wie,prefixCls:v,items:g=[],showPreviewIcon:h=!0,showRemoveIcon:b=!0,showDownloadIcon:y=!1,removeIcon:S,previewIcon:x,downloadIcon:w,extra:$,progress:E={size:[-1,2],showInfo:!1},appendAction:R,appendActionVisible:O=!0,itemRender:N,disabled:I}=e,[,j]=_x(),[M,k]=o.useState(!1),z=["picture-card","picture-circle"].includes(n);o.useEffect(()=>{n.startsWith("picture")&&(g||[]).forEach(K=>{!(K.originFileObj instanceof File||K.originFileObj instanceof Blob)||K.thumbUrl!==void 0||(K.thumbUrl="",r==null||r(K.originFileObj).then(G=>{K.thumbUrl=G||"",j()}))})},[n,g,r]),o.useEffect(()=>{k(!0)},[]);const D=(K,G)=>{if(a)return G==null||G.preventDefault(),a(K)},L=K=>{typeof l=="function"?l(K):K.url&&window.open(K.url)},_=K=>{s==null||s(K)},V=K=>{if(f)return f(K,n);const G=K.status==="uploading";if(n.startsWith("picture")){const Y=n==="picture"?o.createElement(Ao,null):c.uploading,ee=m!=null&&m(K)?o.createElement(Hie,null):o.createElement(Die,null);return G?Y:ee}return G?o.createElement(Ao,null):o.createElement(_ie,null)},P=(K,G,Y,ee,ae)=>{const le={type:"text",size:"small",title:ee,onClick:Z=>{var se,de;G(),o.isValidElement(K)&&((de=(se=K.props).onClick)===null||de===void 0||de.call(se,Z))},className:`${Y}-list-item-action`,disabled:ae?I:!1};return o.isValidElement(K)?o.createElement(Oe,Object.assign({},le,{icon:Dr(K,Object.assign(Object.assign({},K.props),{onClick:()=>{}}))})):o.createElement(Oe,Object.assign({},le),o.createElement("span",null,K))};o.useImperativeHandle(t,()=>({handlePreview:D,handleDownload:L}));const{getPrefixCls:A}=o.useContext(It),H=A("upload",v),W=A(),U=me(`${H}-list`,`${H}-list-${n}`),F=o.useMemo(()=>In($u(W),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[W]),q=Object.assign(Object.assign({},z?{}:F),{motionDeadline:2e3,motionName:`${H}-${z?"animate-inline":"animate"}`,keys:_e(g.map(K=>({key:K.uid,file:K}))),motionAppear:M});return o.createElement("div",{className:U},o.createElement(zx,Object.assign({},q,{component:!1}),({key:K,file:G,className:Y,style:ee})=>o.createElement(Gie,{key:K,locale:c,prefixCls:H,className:Y,style:ee,file:G,items:g,progress:E,listType:n,isImgUrl:m,showPreviewIcon:h,showRemoveIcon:b,showDownloadIcon:y,removeIcon:S,previewIcon:x,downloadIcon:w,extra:$,iconRender:V,actionIconRender:P,itemRender:N,onPreview:D,onDownload:L,onClose:_})),R&&o.createElement(ra,Object.assign({},q,{visible:O,forceRender:!0}),({className:K,style:G})=>Dr(R,Y=>({className:me(Y.className,K),style:Object.assign(Object.assign(Object.assign({},G),{pointerEvents:K?"none":void 0}),Y.style)}))))},Yie=o.forwardRef(Xie);var Jie=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 c(v){try{m(r.next(v))}catch(g){s(g)}}function f(v){try{m(r.throw(v))}catch(g){s(g)}}function m(v){v.done?l(v.value):a(v.value).then(c,f)}m((r=r.apply(e,[])).next())})};const sf=`__LIST_IGNORE_${Date.now()}__`,Qie=(e,t)=>{const n=br("upload"),{fileList:r,defaultFileList:a,onRemove:l,showUploadList:s=!0,listType:c="text",onPreview:f,onDownload:m,onChange:v,onDrop:g,previewFile:h,disabled:b,locale:y,iconRender:S,isImageUrl:x,progress:w,prefixCls:$,className:E,type:R="select",children:O,style:N,itemRender:I,maxCount:j,data:M={},multiple:k=!1,hasControlInside:z=!0,action:D="",accept:L="",supportServerRender:_=!0,rootClassName:V}=e,P=o.useContext(ta),A=b??P,H=e.customRequest||n.customRequest,[W,U]=Cn(a||[],{value:r,postState:Ne=>Ne??[]}),[F,q]=o.useState("drop"),K=o.useRef(null),G=o.useRef(null);o.useMemo(()=>{const Ne=Date.now();(r||[]).forEach((Me,Ae)=>{!Me.uid&&!Object.isFrozen(Me)&&(Me.uid=`__AUTO__${Ne}_${Ae}__`)})},[r]);const Y=(Ne,Me,Ae)=>{let Ke=_e(Me),et=!1;j===1?Ke=Ke.slice(-1):j&&(et=Ke.length>j,Ke=Ke.slice(0,j)),Po.flushSync(()=>{U(Ke)});const Be={file:Ne,fileList:Ke};Ae&&(Be.event=Ae),(!et||Ne.status==="removed"||Ke.some(Ve=>Ve.uid===Ne.uid))&&Po.flushSync(()=>{v==null||v(Be)})},ee=(Ne,Me)=>Jie(void 0,void 0,void 0,function*(){const{beforeUpload:Ae,transformFile:Ke}=e;let et=Ne;if(Ae){const Be=yield Ae(Ne,Me);if(Be===!1)return!1;if(delete Ne[sf],Be===sf)return Object.defineProperty(Ne,sf,{value:!0,configurable:!0}),!1;typeof Be=="object"&&Be&&(et=Be)}return Ke&&(et=yield Ke(et)),et}),ae=Ne=>{const Me=Ne.filter(et=>!et.file[sf]);if(!Me.length)return;const Ae=Me.map(et=>Xv(et.file));let Ke=_e(W);Ae.forEach(et=>{Ke=Yv(et,Ke)}),Ae.forEach((et,Be)=>{let Ve=et;if(Me[Be].parsedFile)et.status="uploading";else{const{originFileObj:Je}=et;let st;try{st=new File([Je],Je.name,{type:Je.type})}catch{st=new Blob([Je],{type:Je.type}),st.name=Je.name,st.lastModifiedDate=new Date,st.lastModified=new Date().getTime()}st.uid=et.uid,Ve=st}Y(Ve,Ke)})},le=(Ne,Me,Ae)=>{try{typeof Ne=="string"&&(Ne=JSON.parse(Ne))}catch{}if(!$1(Me,W))return;const Ke=Xv(Me);Ke.status="done",Ke.percent=100,Ke.response=Ne,Ke.xhr=Ae;const et=Yv(Ke,W);Y(Ke,et)},Z=(Ne,Me)=>{if(!$1(Me,W))return;const Ae=Xv(Me);Ae.status="uploading",Ae.percent=Ne.percent;const Ke=Yv(Ae,W);Y(Ae,Ke,Ne)},se=(Ne,Me,Ae)=>{if(!$1(Ae,W))return;const Ke=Xv(Ae);Ke.error=Ne,Ke.response=Me,Ke.status="error";const et=Yv(Ke,W);Y(Ke,et)},de=Ne=>{let Me;Promise.resolve(typeof l=="function"?l(Ne):l).then(Ae=>{var Ke;if(Ae===!1)return;const et=Fie(Ne,W);et&&(Me=Object.assign(Object.assign({},Ne),{status:"removed"}),W==null||W.forEach(Be=>{const Ve=Me.uid!==void 0?"uid":"name";Be[Ve]===Me[Ve]&&!Object.isFrozen(Be)&&(Be.status="removed")}),(Ke=K.current)===null||Ke===void 0||Ke.abort(Me),Y(Me,et))})},te=Ne=>{q(Ne.type),Ne.type==="drop"&&(g==null||g(Ne))};o.useImperativeHandle(t,()=>({onBatchStart:ae,onSuccess:le,onProgress:Z,onError:se,fileList:W,upload:K.current,nativeElement:G.current}));const{getPrefixCls:X,direction:Q,upload:oe}=o.useContext(It),J=X("upload",$),ve=Object.assign(Object.assign({onBatchStart:ae,onError:se,onProgress:Z,onSuccess:le},e),{customRequest:H,data:M,multiple:k,action:D,accept:L,supportServerRender:_,prefixCls:J,disabled:A,beforeUpload:ee,onChange:void 0,hasControlInside:z});delete ve.className,delete ve.style,(!O||A)&&delete ve.id;const he=`${J}-wrapper`,[Ee,je,xe]=Tie(J,he),[ce]=Ba("Upload",zo.Upload),{showRemoveIcon:pe,showPreviewIcon:ie,showDownloadIcon:Se,removeIcon:Re,previewIcon:ke,downloadIcon:He,extra:De}=typeof s=="boolean"?{}:s,We=typeof pe>"u"?!A:pe,Ce=(Ne,Me)=>s?o.createElement(Yie,{prefixCls:J,listType:c,items:W,previewFile:h,onPreview:f,onDownload:m,onRemove:de,showRemoveIcon:We,showPreviewIcon:ie,showDownloadIcon:Se,removeIcon:Re,previewIcon:ke,downloadIcon:He,iconRender:S,extra:De,locale:Object.assign(Object.assign({},ce),y),isImageUrl:x,progress:w,appendAction:Ne,appendActionVisible:Me,itemRender:I,disabled:A}):Ne,we=me(he,E,V,je,xe,oe==null?void 0:oe.className,{[`${J}-rtl`]:Q==="rtl",[`${J}-picture-card-wrapper`]:c==="picture-card",[`${J}-picture-circle-wrapper`]:c==="picture-circle"}),Pe=Object.assign(Object.assign({},oe==null?void 0:oe.style),N);if(R==="drag"){const Ne=me(je,J,`${J}-drag`,{[`${J}-drag-uploading`]:W.some(Me=>Me.status==="uploading"),[`${J}-drag-hover`]:F==="dragover",[`${J}-disabled`]:A,[`${J}-rtl`]:Q==="rtl"});return Ee(o.createElement("span",{className:we,ref:G},o.createElement("div",{className:Ne,style:Pe,onDrop:te,onDragOver:te,onDragLeave:te},o.createElement(hx,Object.assign({},ve,{ref:K,className:`${J}-btn`}),o.createElement("div",{className:`${J}-drag-container`},O))),Ce()))}const Ie=me(J,`${J}-select`,{[`${J}-disabled`]:A,[`${J}-hidden`]:!O}),Le=o.createElement("div",{className:Ie,style:Pe},o.createElement(hx,Object.assign({},ve,{ref:K})));return Ee(c==="picture-card"||c==="picture-circle"?o.createElement("span",{className:we,ref:G},Ce(Le,!!O)):o.createElement("span",{className:we,ref:G},Le,Ce()))},wM=o.forwardRef(Qie);var Zie=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 ele=o.forwardRef((e,t)=>{const{style:n,height:r,hasControlInside:a=!1,children:l}=e,s=Zie(e,["style","height","hasControlInside","children"]),c=Object.assign(Object.assign({},n),{height:r});return o.createElement(wM,Object.assign({ref:t,hasControlInside:a},s,{style:c,type:"drag"}),l)}),oh=wM;oh.Dragger=ele;oh.LIST_IGNORE=sf;var tle={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"},nle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:tle}))},Mu=o.forwardRef(nle),rle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"},ale=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:rle}))},ole=o.forwardRef(ale),ile={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"},lle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:ile}))},sle=o.forwardRef(lle),cle={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"},ule=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:cle}))},$M=o.forwardRef(ule),dle={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"},fle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:dle}))},mle=o.forwardRef(fle),vle={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"},gle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:vle}))},ec=o.forwardRef(gle),ple={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"},hle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:ple}))},Hs=o.forwardRef(hle),ble={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"},yle=function(t,n){return o.createElement(lt,$e({},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:"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"},Sle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Cle}))},wg=o.forwardRef(Sle),wle={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"},$le=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:wle}))},Hf=o.forwardRef($le),Ele={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"},jle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Ele}))},aj=o.forwardRef(jle),Ole={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"},Nle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Ole}))},Ci=o.forwardRef(Nle),Rle={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(lt,$e({},t,{ref:n,icon:Rle}))},tc=o.forwardRef(Ile),Mle={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"},Tle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Mle}))},Ple=o.forwardRef(Tle),kle={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(lt,$e({},t,{ref:n,icon:kle}))},EM=o.forwardRef(Dle),zle={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"},Ale=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:zle}))},_le=o.forwardRef(Ale),Lle={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"},Ble=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Lle}))},oj=o.forwardRef(Ble),Hle={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"},Fle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Hle}))},Vle=o.forwardRef(Fle),Wle={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"},Kle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Wle}))},ja=o.forwardRef(Kle),Ule={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"},qle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Ule}))},ij=o.forwardRef(qle),Gle={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"},Xle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Gle}))},Yle=o.forwardRef(Xle),Jle={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"},Qle=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Jle}))},bx=o.forwardRef(Qle),Zle={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"},ese=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Zle}))},tse=o.forwardRef(ese),nse={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"},rse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:nse}))},ase=o.forwardRef(rse),ose={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"},ise=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:ose}))},lse=o.forwardRef(ise),sse={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"},cse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:sse}))},use=o.forwardRef(cse),dse={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"},fse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:dse}))},Xg=o.forwardRef(fse),mse={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"},vse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:mse}))},ih=o.forwardRef(vse),gse={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"},pse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:gse}))},lh=o.forwardRef(pse),hse={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"},bse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:hse}))},lj=o.forwardRef(bse),yse={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"},xse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:yse}))},Cse=o.forwardRef(xse),Sse={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"},wse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Sse}))},$se=o.forwardRef(wse),Ese={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M840 192h-56v-72c0-13.3-10.7-24-24-24H168c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h592c13.3 0 24-10.7 24-24V256h32v200H465c-22.1 0-40 17.9-40 40v136h-44c-4.4 0-8 3.6-8 8v228c0 .6.1 1.3.2 1.9A83.99 83.99 0 00457 960c46.4 0 84-37.6 84-84 0-2.1-.1-4.1-.2-6.1.1-.6.2-1.2.2-1.9V640c0-4.4-3.6-8-8-8h-44V520h351c22.1 0 40-17.9 40-40V232c0-22.1-17.9-40-40-40zM720 352H208V160h512v192zM477 876c0 11-9 20-20 20s-20-9-20-20V696h40v180z"}}]},name:"format-painter",theme:"outlined"},jse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Ese}))},Ose=o.forwardRef(jse),Nse={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"},Rse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Nse}))},Ise=o.forwardRef(Rse),Mse={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"},Tse=function(t,n){return o.createElement(lt,$e({},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:"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"},Dse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:kse}))},zse=o.forwardRef(Dse),Ase={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"},_se=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Ase}))},Lse=o.forwardRef(_se),Bse={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"},Hse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Bse}))},Yg=o.forwardRef(Hse),Fse={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"},Vse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Fse}))},Qu=o.forwardRef(Vse),Wse={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"},Kse=function(t,n){return o.createElement(lt,$e({},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:"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"},Gse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:qse}))},Xse=o.forwardRef(Gse),Yse={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"},Jse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Yse}))},Ff=o.forwardRef(Jse),Qse={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"},Zse=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Qse}))},jM=o.forwardRef(Zse),ece={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"},tce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:ece}))},Vf=o.forwardRef(tce),nce={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"},rce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:nce}))},sh=o.forwardRef(rce),ace={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"},oce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:ace}))},ice=o.forwardRef(oce),lce={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"},sce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:lce}))},Ul=o.forwardRef(sce),cce={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"},uce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:cce}))},dce=o.forwardRef(uce),fce={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"},mce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:fce}))},vce=o.forwardRef(mce),gce={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"},pce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:gce}))},E1=o.forwardRef(pce),hce={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"},bce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:hce}))},yce=o.forwardRef(bce),xce={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"},Cce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:xce}))},sj=o.forwardRef(Cce),Sce={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"},wce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Sce}))},$ce=o.forwardRef(wce),Ece={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"},jce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Ece}))},nc=o.forwardRef(jce),Oce={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"},Nce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Oce}))},Wf=o.forwardRef(Nce),Rce={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"},Ice=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Rce}))},Mce=o.forwardRef(Ice),Tce={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"},Pce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Tce}))},uo=o.forwardRef(Pce),kce={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"},Dce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:kce}))},zce=o.forwardRef(Dce),Ace={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"},_ce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Ace}))},OM=o.forwardRef(_ce),Lce={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"},Bce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Lce}))},cj=o.forwardRef(Bce),Hce={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"},Fce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Hce}))},rc=o.forwardRef(Fce),Vce={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"},Wce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Vce}))},ac=o.forwardRef(Wce),Kce={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"},Uce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Kce}))},Jg=o.forwardRef(Uce),qce={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"},Gce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:qce}))},uj=o.forwardRef(Gce),Xce={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"},Yce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Xce}))},Kf=o.forwardRef(Yce),Jce={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"},Qce=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Jce}))},NM=o.forwardRef(Qce),Zce={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"},eue=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:Zce}))},eS=o.forwardRef(eue),tue={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"},nue=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:tue}))},RM=o.forwardRef(nue),rue={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"},aue=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:rue}))},oue=o.forwardRef(aue),iue={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"},lue=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:iue}))},sue=o.forwardRef(lue),cue={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"},uue=function(t,n){return o.createElement(lt,$e({},t,{ref:n,icon:cue}))},due=o.forwardRef(uue);const fue="0.1.72",tu={version:fue};async function Ye(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 jr={list:()=>Ye("/api/launchers"),running:()=>Ye("/api/launchers/running"),create:e=>Ye("/api/launchers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>Ye(`/api/launchers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>Ye(`/api/launchers/${e}`,{method:"DELETE"}),start:e=>Ye(`/api/launchers/${e}/start`,{method:"POST"}),openTerminal:e=>Ye(`/api/launchers/${e}/open-terminal`,{method:"POST"}),run:(e,t)=>Ye(`/api/launchers/${e}/scripts/${t}/run`,{method:"POST"}),runInstall:e=>Ye(`/api/launchers/${e}/install/run`,{method:"POST"}),stop:async(e,t)=>{try{return await Ye(`/api/launchers/${e}/stop`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scriptId:t})})}catch{return Ye(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/stop`,{method:"POST"})}},logs:(e,t)=>Ye(`/api/launchers/${e}/scripts/${t}/logs`),errorLogs:(e,t)=>Ye(`/api/launchers/${e}/scripts/${t}/logs/error`),clearLogs:(e,t)=>Ye(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"}),packageScripts:e=>Ye(`/api/launchers/${e}/package-scripts`),runPackageScript:(e,t)=>Ye(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/run`,{method:"POST"}),packageScriptLogs:(e,t)=>Ye(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`),packageScriptErrorLogs:(e,t)=>Ye(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs/error`),clearPackageScriptLogs:(e,t)=>Ye(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"})},mue={get:()=>Ye("/api/overview")},vue={list:()=>Ye("/api/plugins")},Li={list:e=>Ye(`/api/clipboard${e?`?date=${encodeURIComponent(e)}`:""}`),tagged:()=>Ye("/api/clipboard/tagged"),remove:(e,t)=>Ye(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{method:"DELETE"}),uploadImage:e=>Ye("/api/clipboard/image",{method:"POST",headers:{"Content-Type":e.type||"image/png"},body:e}),updateTags:(e,t,n)=>Ye(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/tags`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tags:n})}),copied:(e,t)=>Ye(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/copied`,{method:"POST"}),copyImage:(e,t)=>Ye(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/copy-image`,{method:"POST"})},Bi={list:()=>Ye("/api/group-tasks"),catalog:()=>Ye("/api/group-tasks/catalog"),create:e=>Ye("/api/group-tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>Ye(`/api/group-tasks/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>Ye(`/api/group-tasks/${e}`,{method:"DELETE"}),start:e=>Ye(`/api/group-tasks/${e}/start`,{method:"POST"}),stop:e=>Ye(`/api/group-tasks/${e}/stop`,{method:"POST"})},j1={list:()=>Ye("/api/port-diagnostics"),get:e=>Ye(`/api/port-diagnostics/${encodeURIComponent(e)}`),kill:(e,t)=>Ye("/api/port-diagnostics/kill",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({port:e,pid:t})})},IM={open:e=>Ye("/api/settings/open-url",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})}),openPath:(e,t="")=>Ye("/api/settings/open-editor",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,location:t})}),openFolder:e=>Ye("/api/settings/open-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})},tr={status:()=>Ye("/api/settings"),devConfigurations:()=>Ye("/api/settings/dev-configurations"),selectDirectory:()=>Ye("/api/settings/select-directory",{method:"POST"}),selectFile:()=>Ye("/api/settings/select-file",{method:"POST"}),openDataDir:()=>Ye("/api/settings/open-data-dir",{method:"POST"}),openFolder:e=>Ye("/api/settings/open-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})}),saveDomain:e=>Ye("/api/settings/domain",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:e})}),saveJiraIssuePrefix:e=>Ye("/api/settings/jira-issue-prefix",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({jiraIssuePrefix:e})}),saveDefaultEditor:e=>Ye("/api/settings/default-editor",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultEditor:e})}),saveDefaultBrowser:e=>Ye("/api/settings/default-browser",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultBrowser:e})}),saveTheme:e=>Ye("/api/settings/theme",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({theme:e})}),saveDevConfigurations:e=>Ye("/api/settings/dev-configurations",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),saveAccessToken:(e,t)=>Ye(`/api/settings/${encodeURIComponent(e)}-access-token`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t})}),saveClipboardEnabled:e=>Ye("/api/settings/clipboard-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardImageEnabled:e=>Ye("/api/settings/clipboard-image-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardDeduplicateMinutes:e=>Ye("/api/settings/clipboard-deduplicate-minutes",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({minutes:e})})},dj={status:(e=!1)=>Ye(`/api/updates${e?"?refresh=1":""}`),selfUpdate:(e="latest")=>Ye("/api/updates/self-update",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({version:e})})},gue={install:e=>Ye("/api/settings/dev-configurations/nvm/install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({version:e})})},zs={manage:(e,t)=>Ye(`/api/settings/dev-configurations/npm/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({packageName:t})}),versions:e=>Ye("/api/settings/dev-configurations/npm/versions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({packageName:e})}),useSuggestedPrefix:()=>Ye("/api/settings/dev-configurations/npm/use-prefix-suggestion",{method:"POST"})};zs.search=e=>Ye("/api/settings/dev-configurations/npm/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:e})});const O1={stats:()=>Ye("/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=>Ye("/api/data-backup/import",{method:"POST",headers:{"Content-Type":"application/gzip"},body:e})},yf={get:()=>Ye("/api/presentations"),save:e=>Ye("/api/presentations",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({plans:e})}),setActive:e=>Ye("/api/presentations/active",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({plan:e})})},nu={check:e=>Ye("/api/pr-review/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prLink:e})}),rules:()=>Ye("/api/pr-review/rules"),saveRules:(e,t)=>Ye("/api/pr-review/rules",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({rules:e,customRules:t})}),myPrs:()=>Ye("/api/pr-review/my-prs"),reviewPrs:()=>Ye("/api/pr-review/review-prs"),comment:e=>Ye("/api/pr-review/comment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},N1={load:e=>Ye("/api/pr-conflicts/load",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prUrl:e})}),myConflicts:()=>Ye("/api/pr-conflicts/my-conflicts"),resolve:e=>Ye("/api/pr-conflicts/resolve",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},No={list:()=>Ye("/api/jira-filters"),create:e=>Ye("/api/jira-filters",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>Ye(`/api/jira-filters/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>Ye(`/api/jira-filters/${e}`,{method:"DELETE"}),issues:e=>Ye(`/api/jira-filters/${e}/issues`),cloneIssue:e=>Ye("/api/jira-filters/issues/clone",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),templates:{list:()=>Ye("/api/jira-filters/templates"),create:e=>Ye("/api/jira-filters/templates",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>Ye(`/api/jira-filters/templates/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>Ye(`/api/jira-filters/templates/${e}`,{method:"DELETE"})},recentlyCreated:()=>Ye("/api/jira-filters/recently-created")},Ia={list:()=>Ye("/api/todos"),create:e=>Ye("/api/todos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>Ye(`/api/todos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>Ye(`/api/todos/${e}`,{method:"DELETE"}),archive:e=>Ye(`/api/todos/${e}/archive`,{method:"POST"}),unarchive:e=>Ye(`/api/todos/${e}/unarchive`,{method:"POST"}),batch:(e,t)=>Ye("/api/todos/batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,ids:t})})},Jv={list:()=>Ye("/api/memos"),create:e=>Ye("/api/memos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>Ye(`/api/memos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>Ye(`/api/memos/${e}`,{method:"DELETE"})},As={list:()=>Ye("/api/static-pages"),create:e=>Ye("/api/static-pages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>Ye(`/api/static-pages/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>Ye(`/api/static-pages/${e}`,{method:"DELETE"})},bu={list:()=>Ye("/api/errors"),log:e=>Ye("/api/errors",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),clear:()=>Ye("/api/errors",{method:"DELETE"}),remove:e=>Ye(`/api/errors/${e}`,{method:"DELETE"})},Ml={getData:()=>Ye("/api/postman"),importCollection:e=>Ye("/api/postman/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collectionJson:e})}),createCollection:e=>Ye("/api/postman/collections",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),updateCollection:(e,t)=>Ye(`/api/postman/collections/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),deleteCollection:e=>Ye(`/api/postman/collections/${e}`,{method:"DELETE"}),saveEnvironments:e=>Ye("/api/postman/environments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),sendRequest:e=>Ye("/api/postman/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},R1={status:()=>Ye("/api/bookmark-sync/status"),preview:e=>Ye(`/api/bookmark-sync/preview?mode=${encodeURIComponent(e)}`),sync:e=>Ye("/api/bookmark-sync/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:e})})},cf={scan:e=>Ye("/api/file-organizer/scan",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),execute:e=>Ye("/api/file-organizer/execute",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),getHistory:()=>Ye("/api/file-organizer/history"),undo:e=>Ye("/api/file-organizer/undo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:e})}),browse:e=>Ye("/api/file-organizer/browse",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})},Hi={listApps:()=>Ye("/api/branch-sync/apps"),createApp:e=>Ye("/api/branch-sync/apps",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),updateApp:(e,t)=>Ye(`/api/branch-sync/apps/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),deleteApp:e=>Ye(`/api/branch-sync/apps/${e}`,{method:"DELETE"}),check:e=>Ye("/api/branch-sync/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({app:e})}),createPr:e=>Ye("/api/branch-sync/create-pr",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),createBranch:e=>Ye("/api/branch-sync/create-branch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),getBranches:e=>Ye(`/api/branch-sync/branches?repo=${encodeURIComponent(e)}`)},so={config:()=>Ye("/api/package-upgrade/config"),dependencyScan:()=>Ye("/api/package-upgrade/dependency-scan"),dependencyRepositories:()=>Ye("/api/package-upgrade/dependency-repositories"),saveDependencyRepositories:e=>Ye("/api/package-upgrade/dependency-repositories",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({directories:e})}),saveConfig:e=>Ye("/api/package-upgrade/config",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({workspaceDir:e})}),addRepo:e=>Ye("/api/package-upgrade/repos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),packageNames:e=>Ye("/api/package-upgrade/repos/packages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({repoIds:e})}),branches:e=>Ye("/api/package-upgrade/repos/branches",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({repoIds:e})}),cloneRepo:e=>Ye(`/api/package-upgrade/repos/${e}/clone`,{method:"POST"}),removeRepo:e=>Ye(`/api/package-upgrade/repos/${e}`,{method:"DELETE"}),createTask:e=>Ye("/api/package-upgrade/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},pue="modulepreload",hue=function(e){return"/"+e},fj={},MM=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let s=function(m){return Promise.all(m.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));a=s(n.map(m=>{if(m=hue(m),m in fj)return;fj[m]=!0;const v=m.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${g}`))return;const h=document.createElement("link");if(h.rel=v?"stylesheet":pue,v||(h.as="script"),h.crossOrigin="",h.href=m,f&&h.setAttribute("nonce",f),document.head.appendChild(h),v)return new Promise((b,y)=>{h.addEventListener("load",b),h.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${m}`)))})}))}function l(s){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s}return a.then(s=>{for(const c of s||[])c.status==="rejected"&&l(c.reason);return t().catch(l)})};async function TM(e,t,n){const r=URL.createObjectURL(e);try{const a=await new Promise((m,v)=>{const g=new Image;g.onload=()=>m(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 c=1;t&&(c=t/s),n!=null&&n>0&&n<=100&&(c=c*(n/100)),l.width=Math.max(1,Math.round(a.naturalWidth*c)),l.height=Math.max(1,Math.round(a.naturalHeight*c));const f=l.getContext("2d",{willReadFrequently:!0});return f.drawImage(a,0,0,l.width,l.height),{imageData:f.getImageData(0,0,l.width,l.height),width:l.width,height:l.height}}finally{URL.revokeObjectURL(r)}}async function bue(e,t={}){const{quality:n=75,progressive:r=!0,optimizeCoding:a=!0,autoSubsample:l=!0}=t,[{encode:s},{imageData:c}]=await Promise.all([MM(()=>import("./index-Dty-56mC.js"),[]),TM(e)]),f=await s(c,{quality:n,progressive:r,optimize_coding:a,auto_subsample:l}),m=new Blob([f],{type:"image/jpeg"}),v=(e.name||"clipboard-image.png").replace(/\.[^.]+$/,"")+".jpg";return new File([m],v,{type:"image/jpeg"})}const{Paragraph:yue,Text:xue,Title:Cue}=Rn;function Gr({actions:e,className:t="",copyClassName:n="",description:r,descriptionClassName:a="",eyebrow:l="WORKBENCH",title:s,titleClassName:c="",titlePrefix:f,titleRowClassName:m=""}){const v=u.jsx(Cue,{className:c||void 0,level:2,children:s});return u.jsxs("header",{className:["page-header","workspace-page-header",t].filter(Boolean).join(" "),children:[u.jsxs("div",{className:n||void 0,children:[u.jsx(xue,{className:"workspace-page-eyebrow",children:l}),f?u.jsxs("div",{className:m||void 0,children:[f,v]}):v,r?u.jsx(yue,{className:["workspace-page-description",a].filter(Boolean).join(" "),type:"secondary",children:r}):null]}),e||null]})}const mj=[{value:"chrome",label:"Google Chrome"},{value:"edge",label:"Microsoft Edge"},{value:"safari",label:"Safari"}];function Sue(e=!0){return e?mj:mj.filter(t=>t.value!=="safari")}function Rr(e){e&&IM.open(e).catch(()=>{window.open(e,"_blank")})}function ch(e,t){if(!e||!t)return"";const n=e.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`https://${n.startsWith("jira.")?n:`jira.${n}`}/browse/${t.toUpperCase()}`}function wue(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:Xd}=Rn,ru=()=>new Intl.DateTimeFormat("en-CA").format(new Date),$ue=[{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 Eue({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(m=>m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),c=s.length>0&&t?new RegExp(`\\b(?:${s.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,f=(m,v)=>{if(!c||!t)return m;const g=[];let h=0;c.lastIndex=0;for(const b of m.matchAll(c)){b.index>h&&g.push(m.slice(h,b.index));const y=b[0],S=ch(t,y);g.push(u.jsx("a",{href:S,target:"_blank",rel:"noreferrer",onClick:x=>{x.preventDefault(),Rr(S)},children:y},`${v}-${b.index}`)),h=b.index+y.length}return h<m.length&&g.push(m.slice(h)),g};for(const m of e.matchAll(a)){m.index>l&&r.push(...f(e.slice(l,m.index),`txt-${m.index}`));const v=m[0].match(/^\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)$/);if(v)r.push(u.jsx("a",{href:v[2],target:"_blank",rel:"noreferrer",onClick:g=>{g.preventDefault(),Rr(v[2])},children:v[1]},m.index));else{const g=m[0].replace(/[),.;:!?]+$/,"");r.push(u.jsx("a",{href:g,target:"_blank",rel:"noreferrer",onClick:h=>{h.preventDefault(),Rr(g)},children:g},m.index)),m[0].length>g.length&&r.push(m[0].slice(g.length))}l=m.index+m[0].length}return l<e.length&&r.push(...f(e.slice(l),"txt-end")),r}const vj=e=>e.text||e.preview||"",gj=e=>`/api/clipboard/image/${encodeURIComponent(e)}`;async function jue(e){if(e.type==="image/png")return e;const t=URL.createObjectURL(e);try{const n=await new Promise((l,s)=>{const c=new window.Image;c.onload=()=>l(c),c.onerror=()=>s(new Error("Unable to decode clipboard image.")),c.src=t}),r=document.createElement("canvas");r.width=n.naturalWidth,r.height=n.naturalHeight;const a=r.getContext("2d");if(!a)throw new Error("Image canvas is unavailable.");return a.drawImage(n,0,0),await new Promise((l,s)=>{r.toBlob(c=>{c?l(c):s(new Error("Unable to encode clipboard image as PNG."))},"image/png")})}finally{URL.revokeObjectURL(t)}}function js(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 Oue({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]),u.jsxs("div",{className:`clipboard-preview-wrap${n?" has-more":""}`,children:[u.jsx("pre",{ref:t,className:"clipboard-preview",children:e}),u.jsx("span",{className:"clipboard-preview-fade","aria-hidden":"true"})]})}function Nue(){const{message:e}=qr.useApp(),[t,n]=o.useState(()=>{const Z=localStorage.getItem("buddy_clipboard_enabled");return Z!==null?Z==="true":!0}),[r,a]=o.useState(!0),[l,s]=o.useState([]),[c,f]=o.useState(ru()),[m,v]=o.useState([]),[g,h]=o.useState([]),[b,y]=o.useState(null),[S,x]=o.useState(""),[w,$]=o.useState("all"),[E,R]=o.useState(null),[O,N]=o.useState(""),[I,j]=o.useState(""),[M,k]=o.useState(60),[z,D]=o.useState(!1),[L,_]=o.useState(!0);o.useEffect(()=>{tr.status().then(Z=>{if(Z){if(Z.isMac!==void 0&&D(Z.isMac),Z.clipboardEnabled!==void 0){const se=Z.clipboardEnabled!==!1;n(se),localStorage.setItem("buddy_clipboard_enabled",String(se))}Z.clipboardImageEnabled!==void 0&&_(Z.clipboardImageEnabled!==!1),Z.clipboardDeduplicateMinutes!==void 0&&k(Z.clipboardDeduplicateMinutes),Z.domain&&N(Z.domain),Z.jiraIssuePrefix&&j(Z.jiraIssuePrefix)}}).catch(()=>{}).finally(()=>a(!1))},[]);const V=async Z=>{n(Z),localStorage.setItem("buddy_clipboard_enabled",String(Z));try{const de=(await tr.saveClipboardEnabled(Z)).clipboardEnabled!==!1;n(de),localStorage.setItem("buddy_clipboard_enabled",String(de)),e.success(Z?"Clipboard history enabled":"Clipboard history disabled")}catch(se){e.error(se.message)}},P=async Z=>{_(Z);try{const se=await tr.saveClipboardImageEnabled(Z);se&&se.clipboardImageEnabled!==void 0&&_(se.clipboardImageEnabled!==!1),e.success(Z?"Image clipboard monitoring enabled":"Image clipboard monitoring disabled")}catch(se){e.error(se.message)}},A=async Z=>{k(Z);try{await tr.saveClipboardDeduplicateMinutes(Z),e.success("Duplicate filter window updated.")}catch(se){e.error(se.message)}},H=async Z=>{try{const[se,de]=await Promise.all([Li.list(Z),Li.tagged().catch(()=>({items:[]}))]);s(se.dates),v(se.items),h(de.items||[])}catch(se){e.error(se.message)}},W=async(Z,se)=>{const de=(se||"").trim();if(!de)return;const te=Z.tags||[];if(te.includes(de)){y(null);return}const X=[...te,de],Q=Z.date||c;try{await Li.updateTags(Q,Z.id,X),v(oe=>oe.map(J=>J.id===Z.id?{...J,tags:X}:J)),h(oe=>oe.some(ve=>ve.id===Z.id)?oe.map(ve=>ve.id===Z.id?{...ve,tags:X}:ve):[{...Z,tags:X,date:Q},...oe]),e.success("Tag added")}catch(oe){e.error(oe.message)}finally{y(null),x("")}},U=async(Z,se)=>{const te=(Z.tags||[]).filter(Q=>Q!==se),X=Z.date||c;try{await Li.updateTags(X,Z.id,te),v(Q=>Q.map(oe=>oe.id===Z.id?{...oe,tags:te}:oe)),h(Q=>te.length===0?Q.filter(oe=>oe.id!==Z.id):Q.map(oe=>oe.id===Z.id?{...oe,tags:te}:oe)),e.success("Tag removed")}catch(Q){e.error(Q.message)}},F=o.useRef(ru());o.useEffect(()=>{if(!t)return;const Z=()=>{const X=ru();if(X!==F.current){const Q=F.current;if(F.current=X,c===Q)return f(X),!0}return!1};Z()||H(c);const de=()=>{Z()||H(c)};window.addEventListener("visibilitychange",de),window.addEventListener("focus",de);let te=null;return c===ru()&&(te=setInterval(()=>{document.visibilityState==="visible"&&H(c)},3e3)),()=>{window.removeEventListener("visibilitychange",de),window.removeEventListener("focus",de),te&&clearInterval(te)}},[c,t]);const q=async Z=>{try{await Li.remove(c,Z),await H(c),e.success("Clipboard entry deleted.")}catch(se){e.error(se.message)}},K=async Z=>{var de;const se=Z.date||c;if(Z.imageFile)try{if(!((de=navigator.clipboard)!=null&&de.write)||typeof window.ClipboardItem>"u")throw new Error("Image clipboard is not supported by this browser.");await Li.copied(se,Z.id);const te=await fetch(gj(Z.imageFile));if(!te.ok)throw new Error("Unable to load image.");const X=await jue(await te.blob());try{await navigator.clipboard.write([new ClipboardItem({"image/png":X})])}catch(Q){await Li.copyImage(se,Z.id).catch(()=>{throw Q})}R(Z.id),setTimeout(()=>{R(Q=>Q===Z.id?null:Q)},1e3)}catch(te){e.error("Failed to copy image: "+te.message)}else navigator.clipboard.writeText(Z.text||Z.preview),Li.copied(se,Z.id).catch(()=>{}),R(Z.id),setTimeout(()=>{R(te=>te===Z.id?null:te)},1e3)},G=o.useMemo(()=>[...new Set([ru(),...l,c])],[l,c]);o.useEffect(()=>{if(!t)return;const Z=se=>{const de=document.activeElement;if(de&&(de.tagName==="INPUT"||de.tagName==="TEXTAREA"||de.isContentEditable||de.closest(".clipboard-tabs")))return;const te=[...G].sort(),X=te.indexOf(c);se.key==="ArrowLeft"?X>0&&f(te[X-1]):se.key==="ArrowRight"&&X<te.length-1&&X!==-1&&f(te[X+1])};return window.addEventListener("keydown",Z),()=>window.removeEventListener("keydown",Z)},[G,c,t]),o.useEffect(()=>{if(!t)return;const Z=async se=>{var X;const de=document.activeElement;if(de&&(de.tagName==="INPUT"||de.tagName==="TEXTAREA"||de.isContentEditable))return;const te=(X=se.clipboardData)==null?void 0:X.items;if(te){for(const Q of te)if(Q.type.startsWith("image/")){const oe=Q.getAsFile();if(oe){try{e.loading({content:"Compressing and saving image from paste…",key:"paste-upload",duration:0});const J=await bue(oe);await Li.uploadImage(J);const ve=ru();f(ve),await H(ve),e.success({content:"Image pasted and saved to history!",key:"paste-upload"})}catch(J){e.error({content:"Failed to save pasted image: "+J.message,key:"paste-upload"})}break}}}};return window.addEventListener("paste",Z),()=>window.removeEventListener("paste",Z)},[c,t]);const Y=G.reduce((Z,se)=>{var Q;const[de,te,X]=se.split("-");return Z[de]||(Z[de]={}),(Q=Z[de])[te]||(Q[te]=[]),Z[de][te].includes(X)||Z[de][te].push(X),Z},{}),ee=Object.entries(Y).sort(([Z],[se])=>se.localeCompare(Z)).map(([Z,se])=>({value:Z,label:Z,children:Object.entries(se).sort(([de],[te])=>te.localeCompare(de)).map(([de,te])=>({value:de,label:de,children:te.sort().reverse().map(X=>({value:X,label:X}))}))})),ae=o.useMemo(()=>w==="tagged"?g:w==="all"?m:w==="image"?m.filter(Z=>!!Z.imageFile):m.filter(Z=>!Z.imageFile&&js(vj(Z),w,I)),[w,m,g,I]),le=o.useMemo(()=>{const Z={all:m.length,tagged:g.length,jira:0,account:0,id:0,url:0,json:0,code:0,image:0};for(const de of m)if(de.imageFile)Z.image++;else{const te=vj(de);js(te,"jira",I)&&Z.jira++,js(te,"account")&&Z.account++,js(te,"id")&&Z.id++,js(te,"url")&&Z.url++,js(te,"json")&&Z.json++,js(te,"code")&&Z.code++}const se=[{key:"all",label:`All (${Z.all})`},{key:"tagged",label:`Tagged (${Z.tagged})`},{key:"jira",label:`Jira (${Z.jira})`},{key:"account",label:`Account (${Z.account})`},{key:"id",label:`ID (${Z.id})`},{key:"url",label:`Url (${Z.url})`},{key:"json",label:`JSON (${Z.json})`},{key:"code",label:`Code (${Z.code})`}];return z&&se.push({key:"image",label:`Img (${Z.image})`}),se},[m,g,I,z]);return o.useEffect(()=>{!z&&w==="image"&&$("all")},[z,w]),u.jsxs("div",{className:"clipboard-page",children:[u.jsx(Gr,{actions:u.jsxs("div",{className:"clipboard-controls",children:[u.jsxs(nt,{size:16,align:"center",children:[u.jsx(Qi,{loading:r,checked:t,onChange:V,checkedChildren:"On",unCheckedChildren:"Off"}),u.jsx(as,{className:"clipboard-picker",disabled:!t||r,options:ee,value:c.split("-"),onChange:Z=>(Z==null?void 0:Z.length)===3&&f(Z.join("-")),placeholder:"Select date"})]}),u.jsxs("div",{className:"clipboard-settings",children:[u.jsxs("div",{className:"clipboard-setting-row",children:[u.jsx(Xd,{type:"secondary",className:"clipboard-setting-label",children:"Deduplicate filter:"}),u.jsx(kn,{size:"small",disabled:!t||r,value:M,onChange:A,className:"clipboard-deduplicate-select",options:$ue})]}),z&&u.jsxs("div",{className:"clipboard-setting-row",children:[u.jsx(Xd,{type:"secondary",className:"clipboard-setting-label",children:"Monitor image clipboard:"}),u.jsx(Qi,{size:"small",disabled:!t||r,checked:L,onChange:P,checkedChildren:"On",unCheckedChildren:"Off"})]})]})]}),description:"Saved locally and archived by date.",title:"Clipboard History"}),t?u.jsxs(u.Fragment,{children:[u.jsx(po,{className:"clipboard-tabs",activeKey:w,onChange:Z=>{$(Z),requestAnimationFrame(()=>{var se;return(se=document.activeElement)==null?void 0:se.blur()})},onKeyDown:Z=>{var se;["ArrowLeft","ArrowRight"].includes(Z.key)&&(Z.preventDefault(),(se=document.activeElement)==null||se.blur())},items:le}),ae.length?u.jsx("div",{className:"clipboard-list",children:ae.map(Z=>{const se=Z.date||c,de=`/api/clipboard/${encodeURIComponent(se)}/${encodeURIComponent(Z.id)}`,te=new Date(Z.createdAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return u.jsxs(Wt,{size:"small",className:"clipboard-item",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"clipboard-item-meta",children:[u.jsx(Xd,{type:"secondary",children:te}),Z.date&&Z.date!==c&&u.jsx(_t,{style:{margin:0},children:Z.date}),(Z.tags||[]).map(X=>u.jsx(_t,{color:"purple",closable:!0,onClose:Q=>{Q.preventDefault(),U(Z,X)},style:{margin:0},children:X},X)),u.jsx(iC,{content:u.jsxs(nt.Compact,{style:{width:200},children:[u.jsx(wt,{size:"small",placeholder:"Tag name",value:S,onChange:X=>x(X.target.value),onPressEnter:()=>W(Z,S)}),u.jsx(Oe,{size:"small",type:"primary",onClick:()=>W(Z,S),children:"Add"})]}),title:"Add Tag",trigger:"click",open:b===Z.id,onOpenChange:X=>{y(X?Z.id:null),x("")},children:u.jsxs(_t,{style:{cursor:"pointer",borderStyle:"dashed",margin:0},children:[u.jsx(dr,{})," Tag"]})})]}),Z.imageFile?u.jsx("div",{className:"clipboard-image-wrap",children:u.jsx(RI,{src:gj(Z.imageFile),alt:"Clipboard entry",className:"clipboard-image",preview:!0,onError:()=>e.error("Unable to load clipboard image.")})}):u.jsxs(u.Fragment,{children:[u.jsx(Oue,{children:u.jsx(Eue,{value:Z.preview||Z.text,domain:O,jiraIssuePrefix:I})}),Z.contentFile&&u.jsxs("span",{className:"clipboard-original",children:[u.jsx("a",{href:de,target:"_blank",rel:"noreferrer",children:"View original content"}),u.jsxs("a",{href:Z.editorUrl,children:["Open in ",Z.editorName||"editor"]})]})]})]}),u.jsxs("span",{className:"clipboard-actions",children:[u.jsx(yn,{title:E===Z.id?"Copied!":"Copy",children:u.jsx(Oe,{type:"text",icon:E===Z.id?u.jsx(Yi,{style:{color:"#52c41a"}}):u.jsx(_o,{}),onClick:()=>K(Z)})}),u.jsx(yn,{title:"Delete",children:u.jsx(Oe,{type:"text",danger:!0,icon:u.jsx(or,{}),onClick:()=>q(Z.id)})})]})]},Z.id)})}):u.jsx(vn,{description:`No ${w==="all"?"clipboard entries":`${w==="id"?"ID":w} entries`}${w==="tagged"?".":` for ${c}.`}`})]}):u.jsx(Wt,{className:"clipboard-disabled-card",children:u.jsx(vn,{image:u.jsx(Jg,{style:{fontSize:48,color:"#9ca3af"}}),description:u.jsxs("div",{className:"clipboard-disabled-copy",children:[u.jsx(Xd,{strong:!0,className:"clipboard-disabled-title",children:"Clipboard history is disabled"}),u.jsx(Xd,{type:"secondary",children:"Turn on the switch in the top-right corner to start capturing and viewing history."})]})})}),u.jsx(os.BackTop,{visibilityHeight:240})]})}const PM=[{value:"vscode",label:"VS Code"},{value:"devin",label:"Devin"},{value:"idea",label:"IntelliJ IDEA"}];function kM(e="vscode"){const t=PM.find(n=>n.value===e);return t?t.label:"VS Code"}function DM(e="vscode",t="",n="",r={}){if(!t)return"";const a=typeof r=="boolean"?r:!!(r!=null&&r.newWindow);let l="",s="";if(n){const c=n.split(":").filter(Boolean);c[0]&&(l=c[0]),c[1]&&(s=c[1])}if(e==="idea"){let c=`idea://open?file=${encodeURIComponent(t)}`;return l&&(c+=`&line=${l}`),s&&(c+=`&column=${s}`),c}return e==="devin"?`devin://file${encodeURI(t)}${n}`:a?`vscode://vscode.open-folder${encodeURI(t)}?forceNewWindow=true`:`vscode://file${encodeURI(t)}${n}`}const{Text:I1}=Rn;function Rue({tasks:e,running:t,onCreate:n,onEdit:r,onStart:a,onStop:l,onRemove:s}){const c=[{title:"Name",dataIndex:"name",render:f=>u.jsx(I1,{strong:!0,children:f})},{title:"Scripts",dataIndex:"items",width:110,render:f=>u.jsxs(I1,{type:"secondary",children:[f.length," scripts"]})},{title:"Actions",width:236,render:(f,m)=>{const v=m.items.every(g=>t.has(`${g.launcherId}:${g.scriptId}`));return u.jsxs(nt,{children:[u.jsx(Oe,{size:"small",danger:v,icon:v?u.jsx(Jg,{}):u.jsx(nc,{}),onClick:()=>v?l(m):a(m),children:v?"Stop":"Start"}),u.jsx(Oe,{size:"small",onClick:()=>r(m),children:"Edit"}),u.jsx(Oe,{size:"small",danger:!0,icon:u.jsx(or,{}),onClick:()=>s(m),children:"Delete"})]})}}];return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"group-task-header",children:[u.jsx(I1,{type:"secondary",children:"Start selected scripts across multiple services."}),u.jsx(Oe,{type:"primary",icon:u.jsx(dr,{}),onClick:n,children:"Add quick launch"})]}),e.length?u.jsx(Un,{className:"group-task-table",rowKey:"id",dataSource:e,columns:c,pagination:!1,size:"small"}):u.jsx(vn,{description:"No quick launches yet.",className:"group-task-empty"})]})}function Uf({open:e,initialPath:t="~",onCancel:n,onSelect:r,title:a="Browse Directory",selectionType:l="directory"}){const{message:s}=qr.useApp(),[c,f]=o.useState(t),[m,v]=o.useState(null),[g,h]=o.useState(!1),b=async y=>{h(!0);try{const S=await cf.browse(y||"~");v(S),f(S.currentPath)}catch(S){s.error(S.message||"Failed to read directory")}finally{h(!1)}};return o.useEffect(()=>{e&&b(t||"~")},[e,t]),u.jsx($n,{title:a,open:e,onCancel:n,footer:null,width:640,destroyOnClose:!0,children:u.jsxs(wr,{spinning:g,children:[u.jsx("div",{className:"file-browser-path-row",children:u.jsx(wt,{value:c,onChange:y=>f(y.target.value),onPressEnter:()=>b(c),addonAfter:u.jsx(Oe,{size:"small",type:"text",onClick:()=>b(c),children:"Go"})})}),m&&u.jsxs("div",{children:[u.jsx("div",{className:"file-browser-parent-row",children:u.jsxs(Oe,{size:"small",onClick:()=>b(m.parentPath),disabled:m.currentPath===m.parentPath,children:[u.jsx(ec,{}),"Parent Directory"]})}),u.jsx("div",{className:"file-browser-list",children:m.subdirectories.length===0&&(l!=="file"||(m.files||[]).length===0)?u.jsx("div",{className:"file-browser-empty",children:"No items found"}):u.jsxs(u.Fragment,{children:[m.subdirectories.map(y=>u.jsxs("div",{className:"file-browser-item",onClick:()=>b(y.fullPath),children:[u.jsxs("span",{children:[u.jsx(ca,{className:"file-browser-icon"}),y.name]}),l==="directory"&&u.jsx(Oe,{size:"small",type:"link",onClick:S=>{S.stopPropagation(),r(y.fullPath)},children:"Select Folder"})]},y.fullPath)),l==="file"&&(m.files||[]).map(y=>u.jsxs("div",{className:"file-browser-item",onClick:()=>r(y.fullPath),children:[u.jsxs("span",{children:[u.jsx(Ql,{className:"file-browser-icon"}),y.name]}),u.jsx(Oe,{size:"small",type:"link",onClick:S=>{S.stopPropagation(),r(y.fullPath)},children:"Select File"})]},y.fullPath))]})}),l==="directory"&&u.jsx("div",{className:"file-browser-confirm-row",children:u.jsxs(Oe,{type:"primary",onClick:()=>r(m.currentPath),children:["Confirm Path: ",m.currentPath]})})]})]})})}const{Text:Os}=Rn,Yd=(e,t)=>`${e}:${t}`,Iue=()=>u.jsx("div",{style:{width:"0.8em",height:"0.8em",backgroundColor:"rgba(0,0,0,0.88)"}});function Mue({form:e,editing:t,executor:n,running:r,errorCounts:a={},packageScripts:l,onRun:s,onRunInstall:c,onRunPackage:f,onStop:m,onLogs:v,onPackageLogs:g}){const h=!!(t&&[...r].some(S=>S.startsWith(`${t.id}:`))),[b,y]=o.useState(()=>h);return o.useEffect(()=>{h&&y(!0)},[t==null?void 0:t.id]),o.useEffect(()=>{h||y(!1)},[h]),u.jsx(gt.List,{name:"scripts",children:(S,{add:x,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 I=N.kind==="custom"?e.getFieldValue(["scripts",N.name]):N.script;return t&&(I==null?void 0:I.id)&&r.has(Yd(t.id,I.id))}):E,O=[{title:"Source",width:100,render:(N,I)=>u.jsx(_t,{color:I.kind==="package"?"purple":I.kind==="install"?"green":"default",children:I.kind==="package"?"Package":I.kind==="install"?"Executor":"Custom"})},{title:"Script name",width:200,render:(N,I)=>{var z;const j=I.kind==="custom"?e.getFieldValue(["scripts",I.name]):I.script,M=(j==null?void 0:j.name)===e.getFieldValue("startCommand"),k=t&&(j==null?void 0:j.id)&&r.has(Yd(t.id,j.id));return u.jsxs(nt,{direction:"vertical",size:1,style:{width:"100%"},children:[I.kind!=="custom"||k?u.jsxs(nt,{size:4,children:[u.jsx(Os,{strong:!0,children:(j==null?void 0:j.name)||((z=I.script)==null?void 0:z.name)}),M&&u.jsx(uo,{className:"start-script-icon"})]}):u.jsx(gt.Item,{noStyle:!0,name:[I.name,"name"],rules:[{required:!0,message:"Required"}],children:u.jsx(wt,{placeholder:"serve",allowClear:!0,suffix:M?u.jsx(uo,{className:"start-script-icon"}):null})}),k&&u.jsx(ga,{status:"success",text:u.jsx(Os,{type:"secondary",style:{fontSize:11},children:"running"})})]})}},{title:"Command",render:(N,I)=>{const j=I.kind==="custom"?e.getFieldValue(["scripts",I.name]):I.script,M=t&&(j==null?void 0:j.id)&&r.has(Yd(t.id,j.id));return I.kind==="package"?u.jsxs(nt,{direction:"vertical",size:0,children:[u.jsxs(Os,{code:!0,children:[n," run ",I.script.name]}),u.jsx(Os,{type:"secondary",style:{fontSize:12},children:I.script.command})]}):I.kind==="install"?u.jsx(Os,{code:!0,children:I.script.command}):M?u.jsx(Os,{code:!0,children:j==null?void 0:j.command}):u.jsx(gt.Item,{noStyle:!0,name:[I.name,"command"],rules:[{required:!0,message:"Required"}],children:u.jsx(wt,{placeholder:"npm run dev",allowClear:!0})})}},{title:"Actions",width:132,render:(N,I)=>{const j=I.kind==="custom"?e.getFieldValue(["scripts",I.name]):I.script,M=t&&(j==null?void 0:j.id)&&r.has(Yd(t.id,j.id)),k=t&&(j!=null&&j.id)&&a[Yd(t.id,j.id)]||0;return u.jsxs(nt,{size:2,children:[t&&u.jsx(yn,{title:M?"Stop":"Start",children:u.jsx(Oe,{type:"text",danger:M,icon:M?u.jsx(Iue,{}):u.jsx($ce,{}),onClick:()=>M?m(j):I.kind==="package"?f(j):I.kind==="install"?c(j):s(j),disabled:!(j!=null&&j.id)})}),u.jsx(yn,{title:"Logs",children:u.jsx(ga,{count:k,size:"small",offset:[-2,2],children:u.jsx(Oe,{type:"text",icon:u.jsx(nl,{}),onClick:()=>I.kind==="package"?g(j):v(j),disabled:!t||!(j!=null&&j.id)})})}),I.kind==="custom"&&!M&&u.jsx(yn,{title:"Remove",children:u.jsx(Oe,{type:"text",danger:!0,icon:u.jsx(or,{}),onClick:()=>w(I.name)})})]})}}];return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"script-header",children:[u.jsx(dm,{orientation:"left",children:"Scripts"}),u.jsxs(nt,{size:"middle",align:"center",children:[u.jsxs("label",{className:"script-running-filter",children:[u.jsx(Qi,{size:"small",checked:b,onChange:y,disabled:!t}),u.jsx(Os,{type:"secondary",className:"script-running-filter-label",children:"Show running only"})]}),u.jsx(Oe,{icon:u.jsx(dr,{}),onClick:()=>{y(!1),x({name:"",command:""})},children:"Add script"})]})]}),u.jsx(Un,{size:"small",rowKey:"key",pagination:!1,loading:l===null,dataSource:R,columns:O})]})}})}const Tue=e=>u.jsx("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"currentColor",style:{verticalAlign:"-0.125em",...e.style},...e,children:u.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 Pue(e){if(!e)return null;const t=e.toLowerCase();return t.includes("bitbucket")?u.jsx(Tue,{style:{color:"#2584FF"}}):t.includes("github")?u.jsx(Lse,{style:{color:"#24292e"}}):t.includes("gitlab")?u.jsx(Yg,{style:{color:"#fc6d26"}}):u.jsx(Qu,{className:"repo-generic-icon"})}function zM({repoUrl:e,style:t}){if(!e)return null;const n=Pue(e);return n?u.jsx(yn,{title:"Open repository in browser",children:u.jsx(Oe,{className:"repo-icon-button",type:"text",size:"small",icon:n,onClick:r=>{r.preventDefault(),r.stopPropagation(),Rr(e)},style:t})}):null}const kue=()=>({alias:"",folder:"",groupName:"",executor:"npm",startCommand:void 0,scripts:[]});function Due({open:e,editing:t,groups:n,running:r,errorCounts:a={},onCancel:l,onSave:s,onRun:c,onRunInstall:f,onRunPackage:m,onStop:v,onLogs:g,onDelete:h}){const{message:b,modal:y}=qr.useApp(),[S]=gt.useForm(),[x,w]=o.useState(null),[$,E]=o.useState(!1),R=j=>{if(j&&(S.setFieldValue("folder",j),!S.getFieldValue("alias"))){const k=j.split(/[/\\]/).filter(Boolean);k.length>0&&S.setFieldValue("alias",k[k.length-1])}E(!1)},O=async()=>{const j=String(S.getFieldValue("folder")||"").trim();if(!j){b.warning("Set a project folder first.");return}try{await tr.openFolder(j)}catch(M){b.error(M.message)}},N=()=>{y.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(j){b.error(j.message)}}})};o.useEffect(()=>{e&&(S.resetFields(),S.setFieldsValue(t?{...t,startCommand:t.startCommand||void 0,scripts:t.scripts}:kue()),w(t?null:[]),t&&jr.packageScripts(t.id).then(j=>w(j.scripts)).catch(()=>w([])))},[e,t,S]);const I=async()=>{try{const j=(S.getFieldValue("scripts")||[]).filter(z=>{var D,L;return((D=z==null?void 0:z.name)==null?void 0:D.trim())||((L=z==null?void 0:z.command)==null?void 0:L.trim())});S.setFieldValue("scripts",j);const M=await S.validateFields(["alias","folder","groupName","startCommand"]),k={...S.getFieldsValue(!0),...M,scripts:j};await s(k)}catch(j){if(j!=null&&j.errorFields)return;b.error(j.message)}};return u.jsxs($n,{title:t?u.jsxs(nt,{align:"center",size:6,children:[u.jsxs("span",{children:["Service details · ",t.alias]}),u.jsx(zM,{repoUrl:t.repoUrl})]}):"Add service",open:e,onCancel:l,onOk:I,okText:t?"Save":"Save service",width:860,destroyOnClose:!0,footer:u.jsxs("div",{className:"service-modal-footer",children:[t?u.jsx(Oe,{type:"primary",danger:!0,onClick:N,children:"Delete service"}):u.jsx("div",{}),u.jsxs(nt,{children:[u.jsx(Oe,{onClick:l,children:"Cancel"}),u.jsx(Oe,{type:"primary",onClick:I,children:t?"Save":"Save service"})]})]}),children:[u.jsxs(gt,{form:S,layout:"vertical",children:[u.jsx(Pf,{className:"service-config",defaultActiveKey:t?[]:["configuration"],items:[{key:"configuration",label:"Service configuration",children:u.jsxs(To,{gutter:[16,0],children:[u.jsx(Yn,{xs:24,sm:12,children:u.jsx(gt.Item,{label:"Name",name:"alias",rules:[{required:!0}],children:u.jsx(wt,{placeholder:"Service name",allowClear:!0})})}),u.jsx(Yn,{xs:24,sm:12,children:u.jsx(gt.Item,{label:"Project folder",name:"folder",rules:[{required:!0}],children:u.jsx(wt,{prefix:u.jsx(Oe,{type:"text",htmlType:"button",icon:u.jsx(ca,{}),onClick:O,"aria-label":"Open project folder",title:"Open project folder",style:{color:"#8c8c8c",padding:"0 4px"}}),suffix:u.jsx(Oe,{type:"text",size:"small",icon:u.jsx(ca,{}),onClick:()=>E(!0),style:{fontSize:12,padding:"0 4px"},children:"Browse"}),placeholder:"Project folder path",allowClear:!0})})}),u.jsx(Yn,{xs:24,sm:8,children:u.jsx(gt.Item,{label:"Group",name:"groupName",children:u.jsx(ju,{options:n.map(j=>({value:j})),placeholder:"Group name",allowClear:!0})})}),u.jsx(Yn,{xs:24,sm:8,children:u.jsx(gt.Item,{label:"Executor",name:"executor",rules:[{required:!0}],children:u.jsx(ju,{options:["npm","pnpm","yarn"].map(j=>({value:j})),placeholder:"npm",allowClear:!0})})}),u.jsx(Yn,{xs:24,sm:8,children:u.jsx(gt.Item,{noStyle:!0,shouldUpdate:(j,M)=>j.scripts!==M.scripts,children:()=>{const j=(S.getFieldValue("scripts")||[]).map(z=>z==null?void 0:z.name).filter(Boolean),M=(x||[]).map(z=>z.name),k=[...new Set([...j,...M])].map(z=>({label:z,value:z}));return u.jsx(gt.Item,{label:"Start script name",name:"startCommand",children:u.jsx(kn,{placeholder:"Select start script",allowClear:!0,options:k})})}})})]})}]}),u.jsx(gt.Item,{noStyle:!0,shouldUpdate:(j,M)=>j.executor!==M.executor||j.startCommand!==M.startCommand||j.scripts!==M.scripts,children:()=>u.jsx(Mue,{form:S,editing:t,executor:S.getFieldValue("executor")||"npm",running:r,errorCounts:a,packageScripts:x,onRun:j=>c(t,j),onRunInstall:()=>f(t),onRunPackage:j=>m(t,j),onStop:j=>v(t,j.id),onLogs:j=>g(t,j),onPackageLogs:j=>g(t,j,!0)})})]}),u.jsx(Uf,{open:$,initialPath:S.getFieldValue("folder")||"~",onCancel:()=>E(!1),onSelect:R,title:"Select Project Directory"})]})}const{Text:zue}=Rn;function Aue({open:e,editingGroupTask:t,groupCatalog:n,onCancel:r,onSave:a}){const{message:l}=qr.useApp(),[s]=gt.useForm();o.useEffect(()=>{e&&(s.resetFields(),s.setFieldsValue({name:(t==null?void 0:t.name)||"",items:(t==null?void 0:t.items.map(m=>`${m.launcherId}|${m.scriptId}`))||[]}))},[e,t,s]);const c=o.useMemo(()=>Object.entries(n.reduce((m,v)=>{const g=v.groupName||"Ungrouped";return(m[g]||(m[g]=[])).push(v),m},{})).sort(([m],[v])=>m.localeCompare(v)).map(([m,v])=>({key:m,label:m,children:u.jsx("div",{className:"group-task-projects",children:v.map(g=>u.jsx(Wt,{size:"small",title:g.alias,children:u.jsx(nt,{direction:"vertical",children:g.scripts.map(h=>u.jsxs(ar,{value:`${g.id}|${h.id}`,children:[h.name," ",u.jsxs(zue,{type:"secondary",children:["(",h.source,")"]})]},h.id))})},g.id))})})),[n]),f=async()=>{try{const m=await s.validateFields(),v={name:m.name,items:m.items.map(g=>{const[h,b]=g.split("|");return{launcherId:h,scriptId:b}})};await a(v)}catch(m){m!=null&&m.errorFields||l.error(m.message)}};return u.jsx($n,{title:t?`Edit quick launch · ${t.name}`:"Add quick launch",open:e,onCancel:r,onOk:f,okText:t?"Save changes":"Save quick launch",width:760,destroyOnClose:!0,children:u.jsxs(gt,{form:s,layout:"vertical",children:[u.jsx(gt.Item,{label:"Name",name:"name",rules:[{required:!0}],children:u.jsx(wt,{placeholder:"Start local stack",allowClear:!0})}),u.jsx(gt.Item,{label:"Scripts",name:"items",rules:[{required:!0,message:"Select at least one script."}],children:u.jsx(ar.Group,{className:"group-task-selector",children:u.jsx(po,{items:c})})})]})})}const pj={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 yx({value:e,editor:t}){const[n,r]=o.useState(t||"vscode"),[a,l]=o.useState(""),[s,c]=o.useState("");o.useEffect(()=>{t&&r(t),tr.status().then(g=>{g!=null&&g.defaultEditor&&!t&&r(g.defaultEditor),g!=null&&g.domain&&l(g.domain),g!=null&&g.jiraIssuePrefix&&c(g.jiraIssuePrefix)}).catch(()=>{})},[t]);const f=(s||"").split(/[\s,]+/).filter(Boolean).map(g=>g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),m=f.length>0&&a?new RegExp(`\\b(?:${f.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,v=(g,h)=>{let b="";const y=($,E)=>$.split(/(\u001b\[[0-9;]*m)/g).map((O,N)=>{const I=O.match(/^\u001b\[([0-9;]*)m$/);if(I){const M=I[1].split(";").map(Number);return b=M.includes(0)?"":pj[M.find(k=>pj[k])]||b,null}if(!O)return null;const j=b||(/\b(error|failed|fatal|exception|TS\d{4,5})\b/i.test(O)?"log-error":/\b(warn|warning)\b/i.test(O)?"log-warning":/\b(success|ready|started|listening)\b/i.test(O)?"log-success":"");return u.jsx("span",{className:j,children:O},`${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,x=m&&m.test(g);return!g.includes("http")&&!g.includes("/")&&!x?y(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,""),I=N.replace(/[),.;:!?]+$/,""),j=N.slice(I.length);return u.jsxs("span",{children:[u.jsx("a",{className:"log-link",href:I,target:"_blank",rel:"noreferrer",onClick:M=>{M.preventDefault(),Rr(I)},children:y($.slice(0,$.length-j.length),`${R}-url`)}),j&&y(j,`${R}-suf`)]},R)}const O=$.replace(/\u001b\[[0-9;]*m/g,"");if(O.startsWith("/")){const[,N,I=""]=O.match(/^(.*?)(:\d+(?::\d+)?)?$/)||[];if(N){const j=DM(n,N,I);return u.jsx("a",{className:"log-link",href:j,target:"_blank",rel:"noreferrer",title:`Open in ${kM(n)}`,children:y($,R)},R)}}if(m&&a&&(m.lastIndex=0,m.test(O))){const N=[];let I=0;m.lastIndex=0;for(const j of O.matchAll(m)){j.index>I&&N.push(y(O.slice(I,j.index),`${R}-sub-${j.index}`));const M=j[0],k=ch(a,M);N.push(u.jsx("a",{className:"log-link",href:k,target:"_blank",rel:"noreferrer",onClick:z=>{z.preventDefault(),Rr(k)},children:M},`${R}-jira-${j.index}`)),I=j.index+M.length}return I<O.length&&N.push(y(O.slice(I),`${R}-sub-end`)),u.jsx("span",{children:N},R)}return y($,R)})};return u.jsx("div",{className:"log-output",role:"log",children:e.split(`
|
|
497
497
|
`).map((g,h)=>u.jsx("div",{className:"log-line",children:u.jsx("code",{children:v(g,h)})},h))})}function _ue({open:e,logTarget:t,onCancel:n}){var f;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 m=async()=>{try{const g=t.package?r==="error"?await jr.packageScriptErrorLogs(t.launcher.id,t.script.name):await jr.packageScriptLogs(t.launcher.id,t.script.name):r==="error"?await jr.errorLogs(t.launcher.id,t.script.id):await jr.logs(t.launcher.id,t.script.id);s(g.log||(r==="error"?"No error logs yet.":"No logs yet."))}catch(g){s(g.message)}};m();const v=setInterval(m,1e3);return()=>clearInterval(v)},[e,t,r]);const c=async()=>{if(t)try{t.package?await jr.clearPackageScriptLogs(t.launcher.id,t.script.name):await jr.clearLogs(t.launcher.id,t.script.id),s(r==="error"?"No error logs yet.":"No logs yet.")}catch{}};return u.jsx($n,{title:t?`${(f=t.launcher)!=null&&f.alias?`${t.launcher.alias} / `:""}${t.script.name} · Logs`:"Logs",open:e,onCancel:n,footer:null,width:1080,zIndex:1200,children:u.jsx(po,{activeKey:r,onChange:a,tabBarExtraContent:t&&u.jsxs(nt,{children:[u.jsx(Oe,{icon:u.jsx(EM,{}),onClick:c,children:"Clear log"}),u.jsx(Oe,{icon:u.jsx(Qu,{}),onClick:()=>{const m=t.package?`#/logs/${t.launcher.id}/pkg/${encodeURIComponent(t.script.name)}`:`#/logs/${t.launcher.id}/${encodeURIComponent(t.script.id)}`;window.open(m,"_blank")},children:"Open in new tab"})]}),items:[{key:"output",label:"Logs",children:u.jsx(yx,{value:l})},{key:"error",label:"Error logs",children:u.jsx(yx,{value:l})}]})})}const{Text:Lue}=Rn,Bue=(e,t)=>{const n=e.scripts.find(r=>r.id===t);return n?n.name:t==="install"?"Install":t.startsWith("package:")?t.slice(8):t};function Hue({launchers:e,running:t,errorCounts:n={},refresh:r,loading:a}){const{message:l}=qr.useApp(),[s,c]=o.useState("all"),[f,m]=o.useState([]),[v,g]=o.useState([]),[h,b]=o.useState(!1),[y,S]=o.useState(!1),[x,w]=o.useState(null),[$,E]=o.useState(!1),[R,O]=o.useState(null),[N,I]=o.useState(!1),[j,M]=o.useState(null),[k,z]=o.useState("vscode"),D=o.useRef(null);o.useEffect(()=>{Bi.list().then(m).catch(te=>l.error(te.message)),tr.status().then(te=>{te!=null&&te.defaultEditor&&z(te.defaultEditor)}).catch(()=>{})},[]);const L=o.useMemo(()=>[...new Set(e.map(te=>te.groupName).filter(Boolean))].sort((te,X)=>te.localeCompare(X)),[e]),_=s==="all"?e:e.filter(te=>te.groupName===s);o.useLayoutEffect(()=>{var X;[...((X=D.current)==null?void 0:X.querySelectorAll("[tabindex]"))||[],...document.querySelectorAll(".launcher-table, .launcher-table [tabindex]")].forEach(Q=>{document.activeElement===Q&&Q.blur(),Q.tabIndex=-1})},[s,L,e.length]);const V=(te=null)=>{O(te),E(!0)},P=async te=>{if(R){const X=await jr.update(R.id,te);O(X)}else await jr.create(te),E(!1);l.success("Saved"),await r()},A=async te=>{try{const X=[...t].filter(Q=>Q.startsWith(`${te.id}:`));if(X.length>0){const Q=X.map(oe=>oe.slice(`${te.id}:`.length));await Promise.all(Q.map(oe=>jr.stop(te.id,oe)))}await jr.remove(te.id),E(!1),l.success("Deleted"),await r()}catch(X){l.error(X.message)}},H=async(te,X)=>{try{await jr.run(te.id,X.id),await r()}catch(Q){l.error(Q.message)}},W=async te=>{try{await jr.runInstall(te.id),await r()}catch(X){l.error(X.message)}},U=async(te,X)=>{try{await jr.runPackageScript(te.id,X.name),await r()}catch(Q){l.error(Q.message)}},F=(te,X,Q=!1)=>{M({launcher:te,script:X,package:Q}),I(!0)},q=async te=>{try{await jr.start(te.id),await r()}catch(X){l.warning(X.message)}},K=async te=>{try{await jr.openTerminal(te.id)}catch(X){l.error(X.message)}},G=async(te,X)=>{try{await jr.stop(te.id,X),await r()}catch(Q){await r(),l.error(Q.message)}},Y=async(te,X)=>{try{await Promise.all(X.map(Q=>jr.stop(te.id,Q))),await r()}catch(Q){await r(),l.error(Q.message)}},ee=async(te=null)=>{if(w(te),S(!0),!v.length)try{g(await Bi.catalog())}catch(X){l.error(X.message)}},ae=async te=>{x?await Bi.update(x.id,te):await Bi.create(te),S(!1),m(await Bi.list())},le=async te=>{const X=`group-task-${te.id}`;l.loading({content:`Starting ${te.name}…`,key:X,duration:0});try{const Q=await Bi.start(te.id),oe=Q.results.filter(J=>J.error);oe.length?l.warning({content:`${Q.results.length-oe.length} started, ${oe.length} failed.`,key:X}):l.success({content:`${Q.results.length} scripts started.`,key:X}),await r()}catch(Q){l.error({content:Q.message,key:X})}},Z=async te=>{const X=`group-task-${te.id}`;l.loading({content:`Stopping ${te.name}…`,key:X,duration:0});try{const oe=(await Bi.stop(te.id)).results.filter(J=>J.ok).length;l.success({content:`${oe} scripts stopped.`,key:X}),await r()}catch(Q){l.error({content:Q.message,key:X})}},se=async te=>{try{await Bi.remove(te.id),m(await Bi.list())}catch(X){l.error(X.message)}},de=[{title:"Service",dataIndex:"alias",render:(te,X)=>u.jsxs(nt,{size:8,align:"center",children:[u.jsx(Oe,{type:"text",size:"small",className:"launcher-terminal-button",icon:u.jsx(ja,{}),"aria-label":`Open terminal in ${X.folder}`,title:`Open Terminal in ${X.folder}`,onClick:Q=>{Q.stopPropagation(),K(X)}}),u.jsx("a",{href:DM(k,X.folder,"",{newWindow:!0}),title:`Open ${X.folder} in ${kM(k)}`,onClick:Q=>{Q.preventDefault(),Q.stopPropagation(),IM.openPath(X.folder)},className:"launcher-service-link",children:te}),u.jsx(zM,{repoUrl:X.repoUrl}),X.branch&&u.jsx(Lue,{code:!0,className:"launcher-branch",children:X.branch})]})},{title:"Scripts",width:170,align:"center",render:(te,X)=>{const Q=[...t].filter(Ee=>Ee.startsWith(`${X.id}:`)),oe=Q.map(Ee=>Bue(X,Ee.slice(`${X.id}:`.length))),J=X.scripts.length+(X.packageScriptCount||0),ve=Object.entries(n).filter(([Ee])=>Ee.startsWith(`${X.id}:`)).reduce((Ee,[,je])=>Ee+(je||0),0),he=u.jsx(ga,{status:Q.length?"success":"default",text:`${Q.length} / ${J} running`});return u.jsxs(nt,{size:8,children:[u.jsxs("span",{className:"launcher-running-status",children:[he,oe.length>0&&u.jsx("span",{className:"launcher-running-tooltip",children:oe.map((Ee,je)=>u.jsxs("span",{children:["• ",Ee]},`${Ee}-${je}`))})]}),ve>0&&u.jsx(ga,{count:ve,overflowCount:999,style:{backgroundColor:"#ff4d4f"}})]})}},{title:"Action",width:108,align:"center",render:(te,X)=>{const Q=[...t].filter(J=>J.startsWith(`${X.id}:`)),oe=Q.length>0;return u.jsx(Oe,{size:"small",type:oe?"default":"primary",danger:oe,icon:oe?u.jsx(Jg,{}):u.jsx(nc,{}),onClick:J=>{J.stopPropagation(),oe?Y(X,Q.map(ve=>ve.slice(`${X.id}:`.length))):q(X)},children:oe?"Stop":"Start"})}}];return u.jsxs(u.Fragment,{children:[u.jsx(Gr,{actions:u.jsxs(nt,{children:[u.jsx(Oe,{onClick:()=>b(!0),children:"Quick Launch"}),u.jsx(Oe,{type:"primary",icon:u.jsx(dr,{}),onClick:()=>V(),children:"Add service"})]}),description:"Manage and run local project scripts.",title:"Launcher"}),a?u.jsx("div",{className:"launcher-loading",children:u.jsx(wr,{size:"large"})}):e.length?u.jsxs(u.Fragment,{children:[f.length>0&&u.jsx("div",{className:"quick-launch-bar",children:u.jsxs(nt,{wrap:!0,size:"middle",children:[u.jsx("span",{className:"quick-launch-label",children:"Quick Launch:"}),f.map(te=>{const X=te.items.every(Q=>t.has(`${Q.launcherId}:${Q.scriptId}`));return u.jsxs(Oe,{type:X?"default":"primary",danger:X,icon:X?u.jsx(Jg,{}):u.jsx(nc,{}),onClick:()=>X?Z(te):le(te),children:[X?"Stop":"Start"," ",te.name]},te.id)})]})}),u.jsx("div",{ref:D,children:u.jsx(po,{activeKey:s,onChange:c,className:"group-tabs",items:[{key:"all",label:`All (${e.length})`},...L.map(te=>({key:te,label:`${te} (${e.filter(X=>X.groupName===te).length})`}))]})}),_.length?u.jsx(Un,{className:"launcher-table",rowKey:"id",dataSource:_,columns:de,pagination:!1,onRow:te=>({onClick:()=>V(te)})}):u.jsx(vn,{description:"No services in this group."})]}):u.jsx(vn,{description:"No services yet"}),u.jsx(Due,{open:$,editing:R,groups:L,running:t,errorCounts:n,onCancel:()=>E(!1),onSave:P,onRun:H,onRunInstall:W,onRunPackage:U,onStop:G,onLogs:F,onDelete:A}),u.jsx($n,{title:"Quick Launch",open:h,onCancel:()=>b(!1),footer:null,width:760,destroyOnClose:!0,children:u.jsx(Rue,{tasks:f,running:t,onCreate:()=>ee(),onEdit:ee,onStart:le,onStop:Z,onRemove:se})}),u.jsx(Aue,{open:y,editingGroupTask:x,groupCatalog:v,onCancel:()=>S(!1),onSave:ae}),u.jsx(_ue,{open:N,logTarget:j,onCancel:()=>I(!1)})]})}const{Text:Fi}=Rn;function Fue({refreshLaunchers:e}){const[t,n]=o.useState([]),[r,a]=o.useState(!1),[l,s]=o.useState(null),[c,f]=o.useState(!1),[m,v]=o.useState(!1),[g,h]=o.useState(null),b=async()=>{a(!0);try{n((await j1.list()).ports)}catch(w){Ut.error(w.message)}finally{a(!1)}};o.useEffect(()=>{b()},[]);const y=async()=>{if(l){f(!0);try{const w=(await j1.get(l)).process;h(w),v(!0)}catch(w){Ut.error(w.message)}finally{f(!1)}}},S=async({port:w,pid:$})=>{try{await j1.kill(w,$),Ut.success(`Process on port ${w} was killed.`),await b(),e&&await e()}catch(E){Ut.error(E.message)}},x=[{title:"Port",dataIndex:"port",width:100,align:"center",onHeaderCell:()=>({className:"port-diagnostic-header-center"}),render:w=>u.jsx(Fi,{code:!0,children:w})},{title:"Last used",dataIndex:"launcher",render:(w,$)=>u.jsxs(nt,{direction:"vertical",size:0,children:[u.jsx(Fi,{strong:!0,children:w}),u.jsx(Fi,{type:"secondary",children:$.script})]})},{title:"Process",dataIndex:"command",render:(w,$)=>u.jsxs(nt,{direction:"vertical",size:0,children:[u.jsx(Fi,{code:!0,children:$.currentCommand||w}),u.jsxs(Fi,{type:"secondary",children:["PID ",$.currentPid||$.pid]})]})},{title:"Status",width:170,align:"center",onHeaderCell:()=>({className:"port-diagnostic-header-center"}),render:(w,$)=>$.ghost?u.jsx(_t,{color:"error",children:"Ghost process"}):$.listening?u.jsx(_t,{color:"success",children:"Script running"}):$.reused?u.jsx(_t,{color:"warning",children:"Port reused"}):u.jsx(_t,{children:"Port released"})},{title:"Action",width:100,align:"center",onHeaderCell:()=>({className:"port-diagnostic-header-center"}),render:(w,$)=>$.listening||$.reused?u.jsx(ha,{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:u.jsx(Oe,{type:"primary",danger:!0,icon:u.jsx(or,{}),children:"Kill"})}):u.jsx(Oe,{type:"primary",danger:!0,disabled:!0,icon:u.jsx(or,{}),children:"Kill"})}];return u.jsxs("div",{className:"port-diagnostic-page",children:[u.jsx(Gr,{actions:u.jsx(Oe,{icon:u.jsx(xi,{}),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"}),u.jsxs(Wt,{className:"port-manual-query",size:"small",children:[u.jsxs(nt,{wrap:!0,children:[u.jsx(Fi,{strong:!0,children:"Query port"}),u.jsx(Af,{min:1,max:65535,controls:!1,value:l,onChange:s,onPressEnter:y,placeholder:"e.g. 3000"}),u.jsx(Oe,{type:"primary",onClick:y,loading:c,disabled:!l,children:"Query"})]}),m&&u.jsx("div",{className:"port-query-result",children:g?u.jsxs(nt,{wrap:!0,children:[u.jsx(_t,{color:"success",children:"Listening"}),u.jsxs(Fi,{code:!0,children:["PID ",g.pid]}),u.jsx(Fi,{code:!0,children:g.command}),u.jsx(ha,{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:u.jsx(Oe,{type:"primary",danger:!0,icon:u.jsx(or,{}),children:"Kill"})})]}):u.jsxs(Fi,{type:"secondary",children:["No process is listening on port ",l,"."]})})]}),u.jsx(Un,{className:"port-diagnostic-table",rowKey:w=>`${w.startedAt}-${w.port}-${w.pid}`,loading:r,dataSource:t,columns:x,pagination:!1,locale:{emptyText:u.jsx(vn,{description:"No ports have been observed from Launcher scripts yet."})}})]})}const{Title:Ko,Paragraph:Uo,Text:Pn}=Rn,M1=[{id:"bitbucket",label:"Bitbucket"},{id:"jira",label:"Jira"},{id:"confluence",label:"Confluence"}],Jd=(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]}`},hj=e=>{const t=String((e==null?void 0:e.url)||"").trim().replace(/\/+$/,"");return t==="/pages/welcome"||t==="/pages/welcome/index.html"};function Vue({theme:e,onThemeChange:t,onStaticPagesChange:n}){var ke,He,De,We;const[r]=gt.useForm(),[a]=gt.useForm(),[l,s]=o.useState({}),[c,f]=o.useState(!1),[m,v]=o.useState(!1),[g,h]=o.useState(null),[b,y]=o.useState(!0),[S,x]=o.useState(!1),[w,$]=o.useState(!1),[E,R]=o.useState(!1),[O,N]=o.useState(null),[I,j]=o.useState(!1),[M,k]=o.useState(""),[z,D]=o.useState(!1),[L,_]=o.useState(!1),V=o.useRef(null),[P,A]=o.useState([]),[H,W]=o.useState(!1),[U,F]=o.useState(!1),[q,K]=o.useState(null),[G,Y]=o.useState(!1),[ee,ae]=o.useState(null),le=async()=>{try{await tr.openDataDir()}catch(Ce){Ut.error(Ce.message)}},Z=async()=>{if(M)try{await tr.openFolder(M)}catch(Ce){Ut.error(Ce.message)}},se=async Ce=>{const we=String(Ce||"").trim();if(we){D(!0);try{const Pe=await so.saveConfig(we);k(Pe.workspaceDir||we),_(!1),Ut.success("Workspace directory saved.")}catch(Pe){Ut.error(Pe.message)}finally{D(!1)}}},de=async Ce=>{t==null||t(Ce);try{const we=await tr.saveTheme(Ce);s(Pe=>({...Pe,...we}))}catch(we){t==null||t(e),Ut.error(we.message)}},te=async()=>{y(!0);try{h(await O1.stats())}catch(Ce){Ut.error(Ce.message)}finally{y(!1)}},X=async()=>{$(!0);try{const{blob:Ce,filename:we}=await O1.export(),Pe=URL.createObjectURL(Ce),Ie=document.createElement("a");Ie.href=Pe,Ie.download=we,document.body.appendChild(Ie),Ie.click(),Ie.remove(),setTimeout(()=>URL.revokeObjectURL(Pe),1e3),Ut.success("Data backup exported.")}catch(Ce){Ut.error(Ce.message)}finally{$(!1)}},Q=Ce=>{const[we]=Ce.target.files||[];Ce.target.value="",we&&(j(!1),N(we))},oe=async()=>{if(O){R(!0);try{const Ce=await O1.import(O);h(Ce),j(!0)}catch(Ce){Ut.error(Ce.message)}finally{R(!1)}}},J=async()=>{try{const Ce=await As.list();A(Ce)}catch(Ce){Ut.error(Ce.message)}finally{W(!0)}};o.useEffect(()=>{tr.status().then(Ce=>{s(Ce),r.setFieldsValue({domain:Ce.domain,jiraIssuePrefix:Ce.jiraIssuePrefix||"",defaultEditor:Ce.defaultEditor||"vscode",defaultBrowser:Ce.defaultBrowser||"chrome"})}).catch(Ce=>Ut.error(Ce.message)),so.config().then(Ce=>k(Ce.workspaceDir||"")).catch(()=>{}),J(),te()},[r]);const ve=Ce=>l[`${Ce}TokenConfigured`],he=async()=>{try{await r.validateFields(["domain"]),f(!0);const Ce=r.getFieldsValue();if(Ce.domain!=null){const we=await tr.saveDomain(Ce.domain);s(Pe=>({...Pe,...we})),r.setFieldValue("domain",we.domain)}if(Ce.jiraIssuePrefix!=null){const we=await tr.saveJiraIssuePrefix(Ce.jiraIssuePrefix);s(Pe=>({...Pe,...we})),r.setFieldValue("jiraIssuePrefix",we.jiraIssuePrefix)}if(Ce.defaultEditor!=null){const we=await tr.saveDefaultEditor(Ce.defaultEditor);s(Pe=>({...Pe,...we})),r.setFieldValue("defaultEditor",we.defaultEditor)}if(Ce.defaultBrowser!=null){const we=await tr.saveDefaultBrowser(Ce.defaultBrowser);s(Pe=>({...Pe,...we})),r.setFieldValue("defaultBrowser",we.defaultBrowser)}for(const{id:we}of M1)if(Ce[we]){const Pe=await tr.saveAccessToken(we,Ce[we]);s(Ie=>({...Ie,...Pe})),r.resetFields([we])}f(!1),v(!0),setTimeout(()=>v(!1),1500)}catch(Ce){f(!1),Ce!=null&&Ce.errorFields||Ut.error(Ce.message)}},Ee=async Ce=>{try{const we=await tr.saveAccessToken(Ce,"");s(we),r.resetFields([Ce]),Ut.success(`${M1.find(Pe=>Pe.id===Ce).label} Access Token removed.`)}catch(we){Ut.error(we.message)}},je=()=>{K(null),a.resetFields(),F(!0)},xe=async()=>{const Ce="/pages/welcome";if(P.some(hj)){Ut.info("The test demo page is already added.");return}try{await As.create({name:"Welcome Demo",url:Ce}),Ut.success("Test demo page added."),await J(),n==null||n()}catch(we){Ut.error(we.message)}},ce=Ce=>{K(Ce),a.setFieldsValue({name:Ce.name,url:Ce.url}),F(!0)},pe=async Ce=>{try{await As.remove(Ce),Ut.success("Static page deleted."),await J(),n==null||n()}catch(we){Ut.error(we.message)}},ie=async()=>{try{const Ce=await a.validateFields();Y(!0),q?(await As.update(q.id,Ce),Ut.success("Static page updated.")):(await As.create(Ce),Ut.success("Static page created.")),Y(!1),F(!1),await J(),n==null||n()}catch(Ce){Y(!1),Ce!=null&&Ce.errorFields||Ut.error(Ce.message)}},Se=Ce=>{var Pe,Ie;const we=Ce.target.closest('a[href^="#settings-"]');if(we){if(Ce.preventDefault(),we.getAttribute("href")==="#settings-dev-configurations"){(Pe=document.querySelector(".page"))==null||Pe.scrollTo({top:0,behavior:"smooth"});return}(Ie=document.getElementById(we.getAttribute("href").slice(1)))==null||Ie.scrollIntoView({behavior:"smooth",block:"start"})}},Re=[{id:"settings-dev-configurations",label:"Dev Configurations"},{id:"settings-error-logs",label:"Error Logs"},{id:"settings-appearance",label:"Appearance"},{id:"settings-default-applications",label:"Default Applications"},{id:"settings-workspace-directory",label:"Workspace Directory"},{id:"settings-data-directory",label:"Data Directory"},{id:"settings-static-pages",label:"Static Pages"},{id:"settings-access-tokens",label:"Access Tokens & Domain"}];return u.jsxs("div",{className:"settings-page",children:[u.jsx(Gr,{actions:u.jsx(Oe,{type:"primary",color:m?"green":"primary",variant:"solid",icon:m?u.jsx(Yi,{}):null,loading:!m&&c,onClick:he,children:m?"Saved":"Save"}),className:"settings-page-header",description:"Customize DevBuddy, manage integrations, and maintain your workspace data.",title:"Settings"}),u.jsxs("div",{className:"settings-layout",children:[u.jsx("nav",{className:"settings-section-nav","aria-label":"Settings sections",onClick:Se,children:Re.map((Ce,we)=>{const Pe=ee==null?99:Math.abs(we-ee),Ie=ee==null?12:Math.max(12,52-Pe*10),Le=ee===we;return u.jsxs("a",{href:`#${Ce.id}`,"aria-label":Ce.label,className:Le?"is-active":"",style:{"--nav-width":`${Ie}px`},onMouseEnter:()=>ae(we),onMouseLeave:()=>ae(null),onFocus:()=>ae(we),onBlur:()=>ae(null),children:[u.jsx("span",{className:`settings-section-nav-preview ${Le?"is-visible":""}`,children:Ce.label}),Ce.label]},Ce.id)})}),u.jsxs("div",{className:"settings-content",children:[u.jsx(Wt,{id:"settings-dev-configurations",className:"settings-card settings-card-spaced settings-dev-config-entry",children:u.jsxs("div",{className:"settings-title settings-title-actions",children:[u.jsx("div",{className:"settings-icon-wrap",children:u.jsx(eS,{className:"settings-icon"})}),u.jsxs("div",{className:"settings-title-copy",children:[u.jsx(Ko,{level:4,children:"Dev Configurations"}),u.jsx(Uo,{type:"secondary",children:"Read and update your system-level npm and Git configuration, including Git SSH key settings."})]}),u.jsx(Oe,{onClick:()=>{window.location.hash="#/dev-configurations"},children:"Open"})]})}),u.jsx(Wt,{id:"settings-error-logs",className:"settings-card settings-card-spaced settings-dev-config-entry",children:u.jsxs("div",{className:"settings-title settings-title-actions",children:[u.jsx("div",{className:"settings-icon-wrap",children:u.jsx(Mu,{className:"settings-icon"})}),u.jsxs("div",{className:"settings-title-copy",children:[u.jsx(Ko,{level:4,children:"Error Logs"}),u.jsx(Uo,{type:"secondary",children:"Review application, launcher, and frontend errors captured by DevBuddy."})]}),u.jsx(Oe,{onClick:()=>{window.location.hash="#/errors"},children:"Open"})]})}),u.jsxs(gt,{form:r,layout:"vertical",children:[u.jsxs(Wt,{id:"settings-appearance",className:"settings-card settings-card-spaced",children:[u.jsxs("div",{className:"settings-title",children:[u.jsx("div",{className:"settings-icon-wrap",children:u.jsx(uj,{className:"settings-icon"})}),u.jsxs("div",{children:[u.jsx(Ko,{level:4,children:"Appearance"}),u.jsx(Uo,{type:"secondary",children:"Choose how DevBuddy looks. Theme changes are applied and saved immediately."})]})]}),u.jsxs("div",{className:"settings-appearance-row",children:[u.jsxs("div",{children:[u.jsx(Pn,{strong:!0,children:"Theme"}),u.jsx(Pn,{type:"secondary",className:"settings-appearance-hint",children:"Use the original dark navigation or the new bright workspace."})]}),u.jsx(fm,{"aria-label":"Application theme",value:e,onChange:de,options:[{label:"Dark",value:"dark",icon:u.jsx(vce,{})},{label:"Light",value:"light",icon:u.jsx(uj,{})}]})]})]}),u.jsxs(Wt,{id:"settings-default-applications",className:"settings-card settings-card-spaced",children:[u.jsxs("div",{className:"settings-title",children:[u.jsx("div",{className:"settings-icon-wrap",children:u.jsx(ja,{className:"settings-icon"})}),u.jsxs("div",{children:[u.jsx(Ko,{level:4,children:"Default Applications"}),u.jsx(Uo,{type:"secondary",children:"Choose your preferred editor and browser to open files, folders, and links."})]})]}),u.jsxs("div",{className:"token-settings-form",children:[u.jsxs("div",{className:"token-row",children:[u.jsxs("div",{className:"token-row-info",children:[u.jsx(Pn,{strong:!0,className:"token-row-name",children:"Default Editor"}),u.jsx(Pn,{type:"secondary",className:"token-row-hint",children:"VS Code, Devin, or IntelliJ IDEA"})]}),u.jsx(gt.Item,{name:"defaultEditor",children:u.jsx(kn,{options:PM,className:"settings-app-select"})})]}),u.jsxs("div",{className:"token-row",children:[u.jsxs("div",{className:"token-row-info",children:[u.jsx(Pn,{strong:!0,className:"token-row-name",children:"Default Browser"}),u.jsx(Pn,{type:"secondary",className:"token-row-hint",children:"Choose your default browser"})]}),u.jsx(gt.Item,{name:"defaultBrowser",className:"settings-form-item-flush",children:u.jsx(kn,{options:Sue(l.isMac!==!1),className:"settings-app-select"})})]})]})]}),u.jsxs(Wt,{id:"settings-workspace-directory",className:"settings-card settings-card-spaced",children:[u.jsxs("div",{className:"settings-title",children:[u.jsx("div",{className:"settings-icon-wrap",children:u.jsx(ca,{className:"settings-icon"})}),u.jsxs("div",{children:[u.jsx(Ko,{level:4,children:"Workspace Directory"}),u.jsx(Uo,{type:"secondary",children:"Local workspace used by Package Upgrade and repository workflows."})]})]}),u.jsxs("div",{className:"token-row",children:[u.jsxs("div",{className:"token-row-info",children:[u.jsx(Pn,{strong:!0,className:"token-row-name",children:"Workspace Path"}),u.jsx(Pn,{type:"secondary",className:"token-row-hint",children:"Choose the local directory that contains your repositories"})]}),u.jsx("div",{className:"settings-data-path",children:u.jsxs(nt.Compact,{className:"directory-path-control",children:[u.jsx(wt,{value:M,readOnly:!0,placeholder:"Not configured",prefix:u.jsx(Oe,{type:"text",icon:u.jsx(ca,{}),onClick:Z,disabled:!M||z,"aria-label":"Open workspace directory",title:"Open workspace directory"})}),u.jsx(Oe,{onClick:()=>_(!0),loading:z,children:"Browse"})]})})]})]}),u.jsx(Uf,{open:L,initialPath:M||"~",onCancel:()=>_(!1),onSelect:se,title:"Select Workspace Directory"}),u.jsxs(Wt,{id:"settings-data-directory",className:"settings-card settings-card-spaced",children:[u.jsxs("div",{className:"settings-title",children:[u.jsx("div",{className:"settings-icon-wrap",children:u.jsx(ca,{className:"settings-icon"})}),u.jsxs("div",{children:[u.jsx(Ko,{level:4,children:"Data Directory"}),u.jsx(Uo,{type:"secondary",children:"Local directory where settings, logs, and application data are stored."})]})]}),u.jsxs("div",{className:"token-settings-form",children:[u.jsxs("div",{className:"token-row",children:[u.jsxs("div",{className:"token-row-info",children:[u.jsx(Pn,{strong:!0,className:"token-row-name",children:"Data Storage Path"}),u.jsx(Pn,{type:"secondary",className:"token-row-hint",children:"Directory location on your file system"})]}),u.jsx("div",{className:"settings-data-path",children:u.jsx(nt.Compact,{className:"directory-path-control directory-path-control-readonly",children:u.jsx(wt,{value:l.dataDir||"",readOnly:!0,prefix:u.jsx(Oe,{type:"text",icon:u.jsx(ca,{}),onClick:le,disabled:!l.dataDir,"aria-label":"Open data directory",title:"Open data directory"})})})})]}),u.jsxs("div",{className:"token-row",children:[u.jsxs("div",{className:"token-row-info",children:[u.jsx(Pn,{strong:!0,className:"token-row-name",children:"Storage Usage"}),u.jsx(Pn,{type:"secondary",className:"token-row-hint",children:"Total size and file count inside the data directory"})]}),u.jsxs("div",{className:"settings-data-usage",children:[u.jsx(ase,{}),u.jsx(Pn,{strong:!0,children:b?"Calculating…":Jd(g==null?void 0:g.sizeBytes)}),!b&&u.jsxs(Pn,{type:"secondary",children:["· ",(g==null?void 0:g.fileCount)||0," files"]}),u.jsx(Oe,{type:"link",size:"small",onClick:()=>x(!0),children:"Details"}),u.jsx(Oe,{type:"link",size:"small",onClick:te,loading:b,children:"Refresh"})]})]}),u.jsxs("div",{className:"token-row",children:[u.jsxs("div",{className:"token-row-info",children:[u.jsx(Pn,{strong:!0,className:"token-row-name",children:"Backup & Restore"}),u.jsx(Pn,{type:"secondary",className:"token-row-hint",children:"Includes settings, access tokens, logs, clipboard files, and other local data"})]}),u.jsxs("div",{className:"settings-backup-actions",children:[u.jsx(Oe,{icon:u.jsx(Ju,{}),loading:w,onClick:X,children:"Export Backup"}),u.jsx(Oe,{icon:u.jsx(oue,{}),loading:E,onClick:()=>{var Ce;return(Ce=V.current)==null?void 0:Ce.click()},children:"Import Backup"}),u.jsx("input",{ref:V,className:"settings-backup-input",hidden:!0,type:"file",accept:".tar.gz,.tgz,application/gzip",onChange:Q})]})]})]})]}),u.jsx($n,{title:I?"Backup restored":"Import data backup?",open:!!O,onCancel:()=>!E&&(N(null),j(!1)),onOk:()=>I?window.location.reload():oe(),okText:I?"Reload DevBuddy":"Import Backup",okButtonProps:{danger:!I,loading:E},cancelText:"Cancel",closable:!E,maskClosable:!E,children:u.jsx("div",{className:"settings-import-confirm",children:I?u.jsxs("div",{className:"settings-import-complete",children:[u.jsx(Yi,{className:"settings-import-complete-icon"}),u.jsx(Ko,{level:4,children:"Import completed successfully"}),u.jsx(Uo,{children:"Backup data has been restored. Reload DevBuddy to apply the restored settings and files."}),u.jsxs(Pn,{type:"secondary",children:[(g==null?void 0:g.importedFiles)||0," files imported."]})]}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"settings-import-file-summary",children:[u.jsx(Pn,{type:"secondary",children:"Selected file"}),u.jsx(Pn,{strong:!0,children:O==null?void 0:O.name}),u.jsx(Pn,{type:"secondary",children:Jd((O==null?void 0:O.size)||0)})]}),u.jsx(Uo,{children:"This backup will be restored into the data directory. Matching files will be overwritten, while other existing files will be kept."}),u.jsx(Pn,{type:"warning",children:"Restart DevBuddy after importing so all restored settings take effect."})]})})}),u.jsxs(Wt,{id:"settings-static-pages",className:"settings-card settings-card-spaced",children:[u.jsxs("div",{className:"settings-title settings-title-actions",children:[u.jsx("div",{className:"settings-icon-wrap",children:u.jsx(Qu,{className:"settings-icon"})}),u.jsxs("div",{className:"settings-title-copy",children:[u.jsx(Ko,{level:4,children:"Static Pages"}),u.jsxs(Uo,{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."," ",H&&!P.some(hj)&&u.jsx("a",{href:"#add-test-demo",onClick:Ce=>{Ce.preventDefault(),xe()},children:"Add test demo"})]})]}),u.jsx(Oe,{type:"primary",icon:u.jsx(dr,{}),onClick:je,children:"Add Static Page"})]}),u.jsx(Un,{dataSource:P,rowKey:"id",pagination:!1,size:"middle",columns:[{title:"Page Name",dataIndex:"name",key:"name",width:200},{title:"URL",dataIndex:"url",key:"url",render:Ce=>u.jsx("a",{href:Ce,target:"_blank",rel:"noreferrer",children:Ce})},{title:u.jsx("div",{className:"settings-action-column-title",children:"Action"}),key:"action",width:140,align:"right",render:(Ce,we)=>u.jsxs(nt,{children:[u.jsx(Oe,{type:"link",size:"small",icon:u.jsx(ei,{}),onClick:()=>ce(we),children:"Edit"}),u.jsx(ha,{title:"Delete static page?",description:"Are you sure you want to delete this page?",onConfirm:()=>pe(we.id),okText:"Yes",cancelText:"No",children:u.jsx(Oe,{type:"link",danger:!0,size:"small",icon:u.jsx(or,{}),children:"Delete"})})]})}]})]}),u.jsxs(Wt,{id:"settings-access-tokens",className:"settings-card",children:[u.jsxs("div",{className:"settings-title",children:[u.jsx("div",{className:"settings-icon-wrap",children:u.jsx(ice,{className:"settings-icon"})}),u.jsxs("div",{children:[u.jsx(Ko,{level:4,children:"Access Tokens & Domain"}),u.jsx(Uo,{type:"secondary",children:"Tokens are stored locally and are never shown again."})]})]}),u.jsxs("div",{className:"token-settings-form",children:[u.jsxs("div",{className:"token-row",children:[u.jsxs("div",{className:"token-row-info",children:[u.jsx(Pn,{strong:!0,className:"token-row-name",children:"Domain"}),u.jsx(Pn,{type:"secondary",className:"token-row-hint",children:"e.g. abc.com"})]}),u.jsx(gt.Item,{name:"domain",rules:[{pattern:/^([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/,message:"Enter a valid domain, e.g. abc.com"}],children:u.jsx(wt,{placeholder:"abc.com",allowClear:!0})})]}),u.jsxs("div",{className:"token-row",children:[u.jsxs("div",{className:"token-row-info",children:[u.jsx(Pn,{strong:!0,className:"token-row-name",children:"Jira Issue Prefix"}),u.jsx(Pn,{type:"secondary",className:"token-row-hint",children:"e.g. PROJ"})]}),u.jsx(gt.Item,{name:"jiraIssuePrefix",children:u.jsx(wt,{placeholder:"PROJ",allowClear:!0})})]}),M1.map(({id:Ce,label:we})=>u.jsxs("div",{className:`token-row ${ve(Ce)?"is-configured":""}`,children:[u.jsxs("div",{className:"token-row-info",children:[u.jsxs("div",{className:"token-row-name-line",children:[u.jsx(Pn,{strong:!0,className:"token-row-name",children:we}),ve(Ce)&&u.jsx(_t,{color:"success",closable:!0,onClose:Pe=>{Pe.preventDefault(),Ee(Ce)},className:"token-row-tag",children:"Configured"})]}),u.jsxs(Pn,{type:"secondary",className:"token-row-hint",children:[we," API access token"]})]}),u.jsx(gt.Item,{name:Ce,children:u.jsx(wt.Password,{placeholder:ve(Ce)?"Enter new token to replace":"Paste access token",autoComplete:"off",allowClear:!0})})]},Ce))]})]})]})]})]}),u.jsxs($n,{className:"settings-storage-modal",title:"Storage Usage Details",open:S,onCancel:()=>x(!1),width:760,footer:[u.jsx(Oe,{onClick:te,loading:b,children:"Refresh Analysis"},"refresh"),u.jsx(Oe,{type:"primary",onClick:()=>x(!1),children:"Close"},"close")],children:[u.jsx(Uo,{type:"secondary",className:"settings-storage-description",children:"Size analysis for the DevBuddy data directory, grouped by top-level folder."}),u.jsxs("div",{className:"settings-storage-summary",children:[u.jsxs("div",{children:[u.jsx(Pn,{type:"secondary",children:"Total size"}),u.jsx(Pn,{strong:!0,children:b?"—":Jd(g==null?void 0:g.sizeBytes)})]}),u.jsxs("div",{children:[u.jsx(Pn,{type:"secondary",children:"Files"}),u.jsx(Pn,{strong:!0,children:b?"—":((g==null?void 0:g.fileCount)||0).toLocaleString()})]}),u.jsxs("div",{children:[u.jsx(Pn,{type:"secondary",children:"Storage groups"}),u.jsx(Pn,{strong:!0,children:b?"—":(((ke=g==null?void 0:g.breakdown)==null?void 0:ke.length)||0).toLocaleString()})]})]}),u.jsx(Ko,{level:5,className:"settings-storage-section-title",children:"Breakdown"}),!b&&!((He=g==null?void 0:g.breakdown)!=null&&He.length)?u.jsx(vn,{image:vn.PRESENTED_IMAGE_SIMPLE,description:"The data directory is empty"}):u.jsx(Un,{className:"settings-storage-table",dataSource:(g==null?void 0:g.breakdown)||[],rowKey:"path",loading:b,pagination:!1,size:"small",scroll:((De=g==null?void 0:g.breakdown)==null?void 0:De.length)>6?{y:260}:void 0,columns:[{title:"Location",dataIndex:"name",key:"name",render:(Ce,we)=>u.jsxs("span",{className:"settings-storage-location",children:[we.path==="."?u.jsx(Ql,{}):u.jsx(bf,{}),u.jsx(Pn,{strong:!0,children:Ce})]})},{title:"Usage",key:"usage",width:250,render:(Ce,we)=>{const Pe=g!=null&&g.sizeBytes?we.sizeBytes/g.sizeBytes*100:0;return u.jsxs("div",{className:"settings-storage-usage-cell",children:[u.jsx(gm,{percent:Pe,showInfo:!1,size:"small"}),u.jsxs(Pn,{type:"secondary",children:[Pe<.1&&Pe>0?"<0.1":Pe.toFixed(1),"%"]})]})}},{title:"Size",dataIndex:"sizeBytes",key:"sizeBytes",width:90,align:"right",render:Jd},{title:"Files",dataIndex:"fileCount",key:"fileCount",width:75,align:"right",render:Ce=>Ce.toLocaleString()}]}),!!((We=g==null?void 0:g.largestFiles)!=null&&We.length)&&u.jsxs(u.Fragment,{children:[u.jsx(Ko,{level:5,className:"settings-storage-section-title",children:"Largest files"}),u.jsx("div",{className:"settings-largest-files",children:g.largestFiles.map(Ce=>u.jsxs("div",{className:"settings-largest-file",children:[u.jsxs("span",{children:[u.jsx(Ql,{}),u.jsx(Pn,{ellipsis:{tooltip:Ce.path},children:Ce.path})]}),u.jsx(Pn,{strong:!0,children:Jd(Ce.sizeBytes)})]},Ce.path))})]})]}),u.jsx($n,{title:q?"Edit Static Page":"Add Static Page",open:U,onOk:ie,onCancel:()=>F(!1),okText:"Save",confirmLoading:G,destroyOnClose:!0,children:u.jsxs(gt,{form:a,layout:"vertical",className:"settings-page-modal-form",children:[u.jsx(gt.Item,{name:"name",label:"Page Name",rules:[{required:!0,message:"Please enter page name"}],children:u.jsx(wt,{placeholder:"e.g. test name"})}),u.jsx(gt.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:u.jsx(wt,{placeholder:"e.g. /pages/welcome/index.html or https://example.com"})})]})})]})}const{Paragraph:Qv,Text:Tr}=Rn,Ns={npm:{prefix:"",registry:"https://registry.npmjs.org/",strictSsl:!0,cache:"",proxy:"",httpsProxy:""},git:{name:"",email:"",sshKey:""},nvm:{defaultVersion:""}};function Wue(e){const t=String(e||"").replace(/^v/,""),[n="",r=""]=t.split(".");return[n,`${n}.${r}`,e]}function Kue(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 c=t.get(l),f=`${l}.${s}`;c.has(f)||c.set(f,[]),c.get(f).push({label:u.jsxs("span",{className:"npm-version-option",children:[u.jsx("span",{children:r}),a&&u.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 Uue(){var et;const{message:e}=qr.useApp(),[t]=gt.useForm(),[n,r]=o.useState(!0),[a,l]=o.useState(!1),[s,c]=o.useState(!1),[f,m]=o.useState(!1),[v,g]=o.useState({nodeVersion:"",npmVersion:""}),[h,b]=o.useState({installed:!1,currentVersion:"",defaultVersion:"",nvmDir:"",nodeJsMirror:"",installedVersions:[]}),[y,S]=o.useState(""),[x,w]=o.useState(!1),[$,E]=o.useState([]),[R,O]=o.useState(!1),[N,I]=o.useState(!1),[j,M]=o.useState(""),[k,z]=o.useState(""),[D,L]=o.useState([]),[_,V]=o.useState(!1),[P,A]=o.useState(!1),[H,W]=o.useState(null),[U,F]=o.useState(""),[q,K]=o.useState([]),[G,Y]=o.useState([]),[ee,ae]=o.useState(!1),[le,Z]=o.useState(""),[se,de]=o.useState(!1),[te,X]=o.useState(null),[Q,oe]=o.useState("~"),[J,ve]=o.useState(!1),[he,Ee]=o.useState("npm");o.useEffect(()=>{tr.devConfigurations().then(Be=>{var Ve,Je,st,at,dt;b(Be.nvm||Ns.nvm),E(((Ve=Be.npm)==null?void 0:Ve.globalPackages)||[]),g({nodeVersion:((Je=Be.npm)==null?void 0:Je.nodeVersion)||"",npmVersion:((st=Be.npm)==null?void 0:st.npmVersion)||""}),t.setFieldsValue({npm:{...Ns.npm,...Be.npm},git:{...Ns.git,...Be.git},nvm:{defaultVersion:((at=Be.nvm)==null?void 0:at.defaultVersion)||"",nodeJsMirror:((dt=Be.nvm)==null?void 0:dt.nodeJsMirror)||""}})}).catch(Be=>Ut.error(Be.message)).finally(()=>r(!1))},[t]);const je=async()=>{try{await t.validateFields();const Ve=t.getFieldsValue(!0)[he]||{},Je={section:he,[he]:{...Ns[he],...Ve}};l(!0);const st=await tr.saveDevConfigurations(Je);t.setFieldsValue(st),st.nvm&&b(st.nvm),m(!0),window.setTimeout(()=>m(!1),1500)}catch(Be){Be!=null&&Be.errorFields||Ut.error(Be.message)}finally{l(!1)}},xe=async()=>{if(y.trim()){w(!0);try{const Be=await gue.install(y.trim());b(Be),S(""),Ut.success(`Installed Node.js ${Be.currentVersion||y.trim()}.`)}catch(Be){Ut.error(Be.message)}finally{w(!1)}}},ce=async()=>{var Be,Ve,Je,st,at;O(!0);try{const dt=await tr.devConfigurations();E(((Be=dt.npm)==null?void 0:Be.globalPackages)||[]),g({nodeVersion:((Ve=dt.npm)==null?void 0:Ve.nodeVersion)||"",npmVersion:((Je=dt.npm)==null?void 0:Je.npmVersion)||""}),dt.nvm&&b(dt.nvm),t.setFieldsValue({npm:{...Ns.npm,...dt.npm},git:{...Ns.git,...dt.git},nvm:{defaultVersion:((st=dt.nvm)==null?void 0:st.defaultVersion)||"",nodeJsMirror:((at=dt.nvm)==null?void 0:at.nodeJsMirror)||""}})}catch(dt){Ut.error(dt.message)}finally{O(!1)}},pe=async(Be,Ve)=>{M(`${Be}:${Ve}`);try{await zs.manage(Be,Ve),await ce(),e.success(`${Ve} ${Be==="uninstall"?"uninstalled":"upgraded"}.`)}catch(Je){Ut.error(Je.message)}finally{M("")}},ie=async()=>{if(k.trim()){A(!0);try{L(await zs.search(k.trim())),V(!1)}catch(Be){Ut.error(Be.message)}finally{A(!1)}}},Se=async()=>{if(H){de(!0);try{const Be=U.trim()?`${H.name}@${U.trim()}`:H.name;await zs.manage("install",Be),await ce(),W(null),L([]),z(""),e.success(`${Be} installed.`)}catch(Be){Ut.error(Be.message)}finally{de(!1)}}},Re=async Be=>{var Ve;ae(!0),Z(Be.name);try{const Je=await zs.versions(Be.name),st=Je.length?Je:Be.version?[{version:Be.version,publishedAt:""}]:[],at=Be.version||((Ve=st[0])==null?void 0:Ve.version)||"";Y(st),F(at),K(Wue(at)),W(Be)}catch(Je){Ut.error(Je.message)}finally{ae(!1),Z("")}},ke=Be=>{oe(t.getFieldValue(["npm",Be])||"~"),X(Be)},He=Be=>{te&&t.setFieldValue(["npm",te],Be),X(null)},De=Be=>{t.setFieldValue(["git","sshKey"],Be),m(!1),ve(!1)},We=async Be=>{const Ve=String(t.getFieldValue(["npm",Be])||"").trim();if(!Ve){e.info(`Select a ${Be} directory first.`);return}try{await tr.openFolder(Ve)}catch(Je){e.error(Je.message)}},Ce=async()=>{c(!0);try{const Be=await zs.useSuggestedPrefix();t.setFieldValue(["npm","prefix"],Be.prefix),m(!1),e.success(`NPM prefix set to ${Be.prefix}.`)}catch(Be){e.error(Be.message)}finally{c(!1)}},we=Be=>{t.setFieldValue(["npm",Be],Ns.npm[Be]),m(!1)},Pe=(Be,Ve)=>u.jsxs("span",{className:"npm-field-label",children:[u.jsx("span",{children:Be}),u.jsx(Oe,{type:"link",size:"small",htmlType:"button",className:"npm-reset-button",onClick:()=>we(Ve),children:"Reset"})]}),Ie=[{title:"Package",dataIndex:"name",key:"name",render:Be=>u.jsx(Tr,{code:!0,children:Be})},{title:"Version",dataIndex:"version",key:"version",render:Be=>u.jsx(_t,{children:Be||"unknown"})},{title:"Actions",key:"actions",align:"right",render:(Be,Ve)=>u.jsx("div",{className:"npm-package-actions",children:u.jsx(ha,{title:`Uninstall ${Ve.name}?`,onConfirm:()=>pe("uninstall",Ve.name),okText:"Uninstall",okButtonProps:{danger:!0},children:u.jsx(Oe,{type:"primary",danger:!0,size:"small",loading:j===`uninstall:${Ve.name}`,children:"Uninstall"})})})}],Le=u.jsxs(Wt,{className:"dev-config-card",bordered:!1,children:[u.jsxs("div",{className:"dev-config-section-heading",children:[u.jsx("div",{className:"dev-config-icon npm-icon",children:u.jsx(ja,{})}),u.jsxs("div",{children:[u.jsx(Tr,{strong:!0,children:"NPM configuration"}),u.jsx(Qv,{type:"secondary",children:"Set the defaults used by npm when installing and publishing packages."})]})]}),u.jsxs("div",{className:"npm-runtime-status",children:[u.jsxs("div",{children:[u.jsx(Tr,{type:"secondary",children:"Current Node.js"}),u.jsx(Tr,{strong:!0,children:v.nodeVersion||"—"})]}),u.jsxs("div",{children:[u.jsx(Tr,{type:"secondary",children:"Current npm"}),u.jsx(Tr,{strong:!0,children:v.npmVersion||"—"})]})]}),u.jsxs("div",{className:"dev-config-grid",children:[u.jsx(gt.Item,{label:u.jsxs("span",{className:"npm-field-label",children:[u.jsx("span",{children:"Prefix"}),u.jsx(Oe,{type:"link",size:"small",htmlType:"button",className:"npm-reset-button",onClick:()=>we("prefix"),children:"Reset"}),u.jsx(Oe,{type:"link",size:"small",htmlType:"button",className:"npm-reset-button",loading:s,onClick:Ce,children:"Use suggestion"})]}),name:["npm","prefix"],extra:"Global package installation directory.",children:u.jsx(wt,{className:"npm-directory-input",prefix:u.jsx(Oe,{htmlType:"button",type:"text",className:"npm-directory-picker",icon:u.jsx(ca,{}),onClick:()=>We("prefix"),"aria-label":"Open Prefix Directory",title:"Open Prefix Directory"}),allowClear:!0,readOnly:!0,placeholder:"/usr/local",addonAfter:u.jsx(Oe,{htmlType:"button",type:"text",onClick:()=>ke("prefix"),children:"Browse"})})}),u.jsx(gt.Item,{label:Pe("Registry","registry"),name:["npm","registry"],rules:[{type:"url",warningOnly:!0}],children:u.jsx(wt,{placeholder:"https://registry.npmjs.org/"})}),u.jsx(gt.Item,{label:Pe("Cache","cache"),name:["npm","cache"],extra:"Leave blank to use npm's default cache location.",children:u.jsx(wt,{className:"npm-directory-input",prefix:u.jsx(Oe,{htmlType:"button",type:"text",className:"npm-directory-picker",icon:u.jsx(ca,{}),onClick:()=>We("cache"),"aria-label":"Open Cache Directory",title:"Open Cache Directory"}),allowClear:!0,readOnly:!0,placeholder:"~/.npm",addonAfter:u.jsx(Oe,{htmlType:"button",type:"text",onClick:()=>ke("cache"),children:"Browse"})})}),u.jsx(gt.Item,{label:Pe("Proxy","proxy"),name:["npm","proxy"],children:u.jsx(wt,{placeholder:"http://proxy.example.com:8080"})}),u.jsx(gt.Item,{label:Pe("HTTPS Proxy","httpsProxy"),name:["npm","httpsProxy"],children:u.jsx(wt,{placeholder:"http://proxy.example.com:8080"})}),u.jsx(gt.Item,{label:"Strict SSL",name:["npm","strictSsl"],valuePropName:"checked",extra:"Verify SSL certificates when connecting to the registry.",children:u.jsx(Qi,{})})]}),u.jsx("div",{className:"npm-global-packages",children:u.jsxs("div",{className:"npm-global-packages-heading",children:[u.jsxs("div",{children:[u.jsx(Tr,{strong:!0,children:"Global packages"}),u.jsx(Qv,{type:"secondary",children:"Manage packages installed globally by the system npm."})]}),u.jsxs(Oe,{icon:u.jsx(xi,{}),loading:R,onClick:()=>{I(!0),ce()},children:["Manage (",$.length,")"]})]})})]}),Ne=u.jsxs(Wt,{className:"dev-config-card",bordered:!1,children:[u.jsxs("div",{className:"dev-config-section-heading",children:[u.jsx("div",{className:"dev-config-icon git-icon",children:u.jsx(Yg,{})}),u.jsxs("div",{children:[u.jsx(Tr,{strong:!0,children:"GIT identity"}),u.jsx(Qv,{type:"secondary",children:"Configure the author identity Git uses for new commits."})]})]}),u.jsxs("div",{className:"dev-config-grid git-grid",children:[u.jsx(gt.Item,{label:"Name",name:["git","name"],children:u.jsx(wt,{placeholder:"Ada Lovelace"})}),u.jsx(gt.Item,{label:"Email",name:["git","email"],rules:[{type:"email",warningOnly:!0}],children:u.jsx(wt,{placeholder:"ada@example.com"})}),u.jsx(gt.Item,{className:"git-ssh-key",label:"SSH Key",name:["git","sshKey"],extra:"Enter a path directly or choose a private key file.",children:u.jsx(wt,{className:"npm-directory-input",placeholder:"~/.ssh/id_ed25519",prefix:u.jsx(Oe,{htmlType:"button",type:"text",className:"npm-directory-picker",icon:u.jsx(Ql,{}),"aria-label":"Select SSH Key File",onClick:()=>ve(!0)})})})]})]}),Me=u.jsxs(Wt,{className:"dev-config-card",bordered:!1,children:[u.jsxs("div",{className:"dev-config-section-heading",children:[u.jsx("div",{className:"dev-config-icon nvm-icon",children:u.jsx(ja,{})}),u.jsxs("div",{children:[u.jsx(Tr,{strong:!0,children:"NVM configuration"}),u.jsx(Qv,{type:"secondary",children:"Manage Node.js versions through the system NVM installation."})]})]}),u.jsxs("div",{className:"nvm-status-grid",children:[u.jsxs("div",{children:[u.jsx(Tr,{type:"secondary",children:"NVM version"}),u.jsx(Tr,{strong:!0,children:h.version||"—"})]}),u.jsxs("div",{children:[u.jsx(Tr,{type:"secondary",children:"Current using version"}),u.jsx(Tr,{strong:!0,children:h.currentVersion||"—"})]}),u.jsxs("div",{children:[u.jsx(Tr,{type:"secondary",children:"NVM directory"}),u.jsx(Tr,{strong:!0,children:h.nvmDir||"—"})]})]}),u.jsxs("div",{className:"dev-config-grid nvm-grid",children:[u.jsx(gt.Item,{label:"Node.js download mirror",name:["nvm","nodeJsMirror"],extra:"Saved as NVM_NODEJS_ORG_MIRROR in your shell profile.",children:u.jsx(wt,{placeholder:"https://nodejs.org/dist"})}),u.jsx(gt.Item,{label:"Default Node.js version",name:["nvm","defaultVersion"],extra:"Applied through nvm alias default when you save.",children:u.jsx(wt,{placeholder:"20"})}),u.jsx(gt.Item,{label:"Install Node.js version",extra:"Examples: 20, 20.11.1, lts/*",children:u.jsx(wt,{value:y,onChange:Be=>S(Be.target.value),addonAfter:u.jsx(Oe,{type:"link",loading:x,onClick:xe,children:"Install"}),placeholder:"22"})})]}),u.jsxs("div",{className:"nvm-installed-versions",children:[u.jsx(Tr,{type:"secondary",children:"Installed versions"}),u.jsx("div",{children:(et=h.installedVersions)!=null&&et.length?h.installedVersions.map(Be=>u.jsx(_t,{children:Be},Be)):u.jsx(Tr,{type:"secondary",children:"None found"})})]})]}),Ae=u.jsxs($n,{title:"Global packages",open:N,onCancel:()=>!j&&!se&&I(!1),footer:null,width:760,children:[u.jsxs("div",{className:"npm-install-row",children:[u.jsx(wt,{value:k,onChange:Be=>z(Be.target.value),onPressEnter:ie,placeholder:"Search npm packages"}),u.jsx(Oe,{type:"primary",loading:P,disabled:!k.trim(),onClick:ie,children:"Search"}),u.jsx(Oe,{icon:u.jsx(xi,{}),loading:R,onClick:ce,children:"Refresh"})]}),D.length>0&&u.jsxs(u.Fragment,{children:[u.jsx(Tr,{strong:!0,children:"Search results"}),u.jsx(Un,{className:"npm-search-results",rowKey:"name",size:"small",dataSource:_?D:D.slice(0,5),pagination:!1,columns:[{title:"Package",dataIndex:"name",render:Be=>u.jsx(Tr,{code:!0,children:Be})},{title:"Version",dataIndex:"version"},{title:"Description",dataIndex:"description",ellipsis:!0},{title:"",key:"install",align:"right",render:(Be,Ve)=>u.jsx(Oe,{size:"small",type:"primary",loading:ee&&Ve.name===le,onClick:()=>Re(Ve),children:"Install"})}]}),D.length>5&&u.jsx(Oe,{className:"npm-show-more",type:"link",onClick:()=>V(Be=>!Be),children:_?"Show fewer":`Show more (${D.length-5})`}),u.jsx(dm,{})]}),u.jsx(Un,{className:"npm-global-package-table",rowKey:"name",size:"small",loading:R,dataSource:$,columns:Ie,pagination:!1,locale:{emptyText:"No global packages found."}})]}),Ke=u.jsx($n,{className:"npm-install-confirm-modal",width:560,title:"Install global package?",open:!!H,onCancel:()=>!se&&W(null),onOk:Se,okText:se?"Installing…":"Install",confirmLoading:se,closable:!se,maskClosable:!se,children:se?u.jsxs("div",{className:"npm-install-progress",children:[u.jsx(wr,{}),u.jsxs(Tr,{children:["Installing ",u.jsxs("strong",{children:[H==null?void 0:H.name,U?`@${U}`:""]})," globally with npm…"]}),u.jsx(Tr,{type:"secondary",children:"This may take a moment. The package list will refresh when it finishes."})]}):u.jsxs("div",{className:"npm-install-confirm",children:[u.jsx(Tr,{children:"Choose the version to install:"}),u.jsx(as,{className:"npm-version-select",popupClassName:"npm-version-picker",value:q,onChange:Be=>{const Ve=Be||[];K(Ve),F(Ve.length?Ve[Ve.length-1]:"")},options:Kue(G),placeholder:"Select a version",expandTrigger:"hover",displayRender:Be=>Be.length?Be[Be.length-1]:""}),u.jsx(Tr,{type:"secondary",children:"Versions are grouped by major and minor release. Publish dates are shown on the patch version."})]})});return u.jsxs("div",{className:"dev-configurations-page",children:[u.jsx(Gr,{actions:u.jsx(Oe,{type:"primary",icon:f?u.jsx(Yi,{}):null,loading:!f&&a,onClick:je,children:f?"Saved":"Save"}),description:"Read and update the system-level npm and Git configuration used across your development workflow.",eyebrow:"DEVELOPMENT",title:"Dev Configurations"}),u.jsx(wr,{spinning:n,tip:"Loading system configuration…",children:u.jsx(gt,{form:t,layout:"vertical",children:u.jsx(po,{activeKey:he,onChange:Ee,items:[{key:"npm",label:"NPM",icon:u.jsx(ja,{}),children:u.jsxs(u.Fragment,{children:[Le,Ae,Ke]})},{key:"git",label:"GIT",icon:u.jsx(Yg,{}),children:Ne},{key:"nvm",label:"NVM",icon:u.jsx(ja,{}),disabled:!h.installed,children:Me}]})})}),u.jsx(Uf,{open:!!te,initialPath:Q,onCancel:()=>X(null),onSelect:He,title:"Select Project Directory"}),u.jsx(Uf,{open:J,initialPath:"~",onCancel:()=>ve(!1),onSelect:De,selectionType:"file",title:"Select SSH Key File"})]})}const{Title:que,Text:lo,Paragraph:Gue}=Rn,{Dragger:Xue}=oh,bj=(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]}`},Yue=e=>({file:e,name:e.name||"clipboard-image.png",url:URL.createObjectURL(e),size:e.size});function Jue(){const[e,t]=o.useState(null),[n,r]=o.useState(null),[a,l]=o.useState(75),[s,c]=o.useState(!0),[f,m]=o.useState(!0),[v,g]=o.useState(!0),[h,b]=o.useState(2),[y,S]=o.useState(!1),[x,w]=o.useState(null),[$,E]=o.useState(100),[R,O]=o.useState(!1),[N,I]=o.useState(!1),[j,M]=Ut.useMessage(),k=o.useRef(null),z=o.useRef(null),D=U=>{var F;(F=U.current)!=null&&F.url&&URL.revokeObjectURL(U.current.url)},L=U=>{var q;if(!((q=U==null?void 0:U.type)!=null&&q.startsWith("image/")))return j.error("Please choose an image file."),!1;D(k),D(z);const F=Yue(U);return k.current=F,z.current=null,t(F),r(null),A(U),!1},_=U=>{var F;return[...((F=U.dataTransfer)==null?void 0:F.types)||[]].includes("Files")},V=U=>{var q;U.preventDefault(),I(!1);const F=[...((q=U.dataTransfer)==null?void 0:q.files)||[]].find(K=>K.type.startsWith("image/"));F?L(F):j.error("Drop an image file to compress it.")};o.useEffect(()=>()=>{D(k),D(z)},[]),o.useEffect(()=>{const U=F=>{var G;const q=[...((G=F.clipboardData)==null?void 0:G.items)||[]].find(Y=>Y.type.startsWith("image/"));if(!q)return;F.preventDefault();const K=q.getAsFile();K&&(L(new File([K],`clipboard-${Date.now()}.${K.type.split("/")[1]||"png"}`,{type:K.type})),j.success("Image read from clipboard."))};return window.addEventListener("paste",U),()=>window.removeEventListener("paste",U)},[j]);const P=async()=>{var U;try{if(!((U=navigator.clipboard)!=null&&U.read))throw new Error("Direct clipboard reading is unavailable. Paste an image with ⌘ / Ctrl + V instead.");const F=await navigator.clipboard.read();for(const q of F){const K=q.types.find(G=>G.startsWith("image/"));if(K){const G=await q.getType(K);L(new File([G],`clipboard-${Date.now()}.${K.split("/")[1]||"png"}`,{type:K})),j.success("Image read from clipboard.");return}}throw new Error("No image was found in the clipboard.")}catch(F){j.warning(F.message||"Unable to read an image from the clipboard.")}},A=async(U=e==null?void 0:e.file)=>{if(U){O(!0);try{const[{encode:F},{imageData:q,width:K,height:G}]=await Promise.all([MM(()=>import("./index-Dty-56mC.js"),[]),TM(U,x,$)]),Y=await F(q,{quality:a,progressive:s,optimize_coding:f,auto_subsample:v,chroma_subsample:h,trellis_multipass:y});D(z);const ee=new Blob([Y],{type:"image/jpeg"}),ae={url:URL.createObjectURL(ee),size:ee.size,width:K,height:G};z.current=ae,r(ae),j.success("MozJPEG compression complete.")}catch(F){j.error(F.message||"Image compression failed.")}finally{O(!1)}}},H=()=>{if(!n)return;const U=e.name.replace(/\.[^.]+$/,"")||"image",F=document.createElement("a");F.href=n.url,F.download=`${U}-mozjpeg.jpg`,F.click()},W=n&&e?Math.round((1-n.size/e.size)*100):null;return u.jsxs(u.Fragment,{children:[M,u.jsxs("div",{className:`squoosh-page ${N?"is-file-dragging":""}`,onDragOver:U=>{_(U)&&(U.preventDefault(),I(!0))},onDragLeave:U=>{U.currentTarget===U.target&&I(!1)},onDrop:V,children:[u.jsx(Gr,{actions:u.jsxs(nt,{children:[u.jsx(Oe,{icon:u.jsx(_o,{}),onClick:P,children:"Read clipboard"}),u.jsx(Oe,{type:"primary",icon:u.jsx(bx,{}),onClick:()=>A(),disabled:!e,loading:R,children:"Compress"})]}),description:"Compress JPEG images locally while balancing visual quality and file size.",title:"Image compression"}),u.jsxs("div",{className:"squoosh-studio",children:[u.jsxs("div",{className:"squoosh-preview-area",children:[u.jsx(yj,{title:"Original",detail:e?`${bj(e.size)} · ${e.name}`:"Choose an image to begin",children:e?u.jsx(xj,{label:"Original image",image:e.url}):u.jsxs(Xue,{accept:"image/*",multiple:!1,showUploadList:!1,beforeUpload:L,className:"image-dropzone",children:[u.jsx("p",{className:"ant-upload-drag-icon",children:u.jsx(Vf,{})}),u.jsx("p",{className:"ant-upload-text",children:"Drop an image or click to choose"}),u.jsx("p",{className:"ant-upload-hint",children:"Or paste an image with ⌘ / Ctrl + V."})]})}),u.jsx(yj,{title:"MozJPEG output",detail:n?`${bj(n.size)} · ${n.width} × ${n.height}`:"Waiting for compression",action:n&&u.jsx(Oe,{type:"primary",size:"small",icon:u.jsx(Ju,{}),onClick:H,children:"Download"}),children:R?u.jsx("div",{className:"image-loading",children:u.jsx(wr,{tip:"Compressing…"})}):n?u.jsxs(u.Fragment,{children:[u.jsx(xj,{label:"Compressed JPEG",image:n.url}),W!==null&&u.jsx("div",{className:`compression-saving ${W>0?"is-saving":""}`,children:W>0?`${W}% smaller`:"No size reduction at current settings."})]}):u.jsx(vn,{image:vn.PRESENTED_IMAGE_SIMPLE,description:"Compressed preview"})})]}),u.jsxs("aside",{className:"squoosh-settings",children:[u.jsxs("div",{className:"settings-heading",children:[u.jsx(lo,{children:"ENCODER"}),u.jsx(que,{level:4,children:"MozJPEG"}),u.jsx(Gue,{children:"Fine-tune output size and image quality."})]}),u.jsxs("div",{className:"option-row",children:[u.jsxs("div",{children:[u.jsx(lo,{strong:!0,children:"Quality"}),u.jsx("br",{}),u.jsx(lo,{type:"secondary",children:"Higher values preserve more detail."})]}),u.jsx(_t,{color:"purple",children:a})]}),u.jsx(ZY,{min:1,max:100,value:a,onChange:l,tooltip:{formatter:U=>`${U}`}}),u.jsxs("div",{className:"option-select",children:[u.jsxs("div",{children:[u.jsx(lo,{strong:!0,children:"Long edge"}),u.jsx("br",{}),u.jsx(lo,{type:"secondary",children:"Scale the longest edge to this value. Never crops the image."})]}),u.jsx(Af,{min:1,max:16384,value:x,onChange:w,placeholder:"Original",addonAfter:"px"})]}),u.jsxs("div",{className:"option-select",children:[u.jsxs("div",{children:[u.jsx(lo,{strong:!0,children:"Scale"}),u.jsx("br",{}),u.jsx(lo,{type:"secondary",children:"Scale the image by percentage."})]}),u.jsx(Af,{min:1,max:100,value:$,onChange:E,placeholder:"100",addonAfter:"%",allowClear:!0})]}),u.jsx(Zv,{label:"Progressive JPEG",description:"Display a low-detail preview while loading.",checked:s,onChange:c}),u.jsx(Zv,{label:"Optimize coding",description:"Reduce size without changing image quality.",checked:f,onChange:m}),u.jsx(Pf,{ghost:!0,className:"advanced-options",items:[{key:"advanced",label:"Advanced settings",children:u.jsxs(u.Fragment,{children:[u.jsx(Zv,{label:"Automatic chroma subsampling",description:"Pick sampling based on the image content.",checked:v,onChange:g}),u.jsxs("div",{className:"option-select",children:[u.jsxs("div",{children:[u.jsx(lo,{strong:!0,children:"Chroma subsampling"}),u.jsx("br",{}),u.jsx(lo,{type:"secondary",children:"Enabled when automatic mode is off."})]}),u.jsx(kn,{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)"}]})]}),u.jsx(Zv,{label:"Trellis multi-pass",description:"Further size reduction with a longer encode time.",checked:y,onChange:S})]})}]}),u.jsx(Oe,{type:"primary",size:"large",block:!0,icon:u.jsx(bx,{}),onClick:()=>A(),disabled:!e,loading:R,children:"Compress image"})]})]})]})]})}function yj({title:e,detail:t,action:n,children:r}){return u.jsxs("div",{className:"preview-pane",children:[u.jsxs("header",{children:[u.jsxs("div",{children:[u.jsx(lo,{children:e}),u.jsx("span",{children:t})]}),n]}),u.jsx("div",{className:"preview-canvas",children:r})]})}function Zv({label:e,description:t,checked:n,onChange:r}){return u.jsxs("div",{className:"option-switch",children:[u.jsxs("div",{children:[u.jsx(lo,{strong:!0,children:e}),u.jsx("br",{}),u.jsx(lo,{type:"secondary",children:t})]}),u.jsx(Qi,{checked:n,onChange:r})]})}function xj({label:e,image:t,metadata:n}){return u.jsxs("div",{className:"image-panel",children:[u.jsx("img",{src:t,alt:e}),n&&u.jsx("div",{className:"image-panel-meta",children:u.jsx(lo,{type:"secondary",children:n})})]})}const{Paragraph:Que,Text:Pr}=Rn;function Zue({prs:e,selectedPrKeys:t,onToggleSelectPr:n,onSelectPr:r}){return e.length===0?u.jsx(vn,{className:"pr-review-empty",description:"No open pull requests found."}):u.jsx("div",{className:"pr-review-list",children:e.map(a=>{var f,m,v,g,h,b,y,S,x;const l=a.reviewUrl||"",s=a.reviewUrl||a.id,c=t.includes(s);return u.jsx(Wt,{size:"small",hoverable:!0,className:`pr-review-list-item ${c?"is-selected":""}`,onClick:()=>l&&r(l),children:u.jsxs("div",{className:"pr-review-list-row",children:[u.jsxs("div",{className:"pr-review-list-primary",children:[u.jsx(ar,{checked:c,onChange:w=>{w.stopPropagation(),n(s)},onClick:w=>w.stopPropagation()}),u.jsxs("div",{className:"pr-review-list-copy",children:[u.jsxs(nt,{size:8,wrap:!0,children:[u.jsxs(Pr,{strong:!0,className:"pr-review-list-title",children:["#",a.id," ",a.title]}),a.draft&&u.jsx(_t,{color:"gold",children:"Draft"})]}),u.jsxs("div",{className:"pr-review-list-meta",children:[u.jsxs(Pr,{type:"secondary",style:{fontWeight:500},children:[(v=(m=(f=a.fromRef)==null?void 0:f.repository)==null?void 0:m.project)==null?void 0:v.key," / ",(h=(g=a.fromRef)==null?void 0:g.repository)==null?void 0:h.slug]}),u.jsx("span",{className:"pr-review-list-separator",children:"|"}),u.jsx(_t,{size:"small",className:"pr-review-branch-tag",children:(b=a.fromRef)==null?void 0:b.displayId}),u.jsx(Hs,{style:{fontSize:"10px"}}),u.jsx(_t,{size:"small",className:"pr-review-branch-tag",children:(y=a.toRef)==null?void 0:y.displayId}),u.jsx("span",{className:"pr-review-list-separator",children:"|"}),u.jsxs("span",{children:["Author: ",u.jsx("strong",{children:(x=(S=a.author)==null?void 0:S.user)==null?void 0:x.displayName})]}),u.jsx("span",{className:"pr-review-list-separator",children:"|"}),u.jsxs("span",{children:["Updated: ",new Date(a.updatedDate).toLocaleDateString()]})]})]})]}),u.jsxs(nt,{size:8,children:[u.jsx(Oe,{size:"small",icon:u.jsx(Ul,{}),onClick:w=>{w.stopPropagation(),l&&Rr(l)},children:"Open"}),u.jsx(Oe,{type:"primary",size:"small",onClick:w=>{w.stopPropagation(),l&&r(l)},children:"Review"})]})]})},s)})})}function Cj(){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 ede(){const[e]=gt.useForm(),[t,n]=o.useState(!1),[r,a]=o.useState(!0),[l,s]=o.useState(null),[c,f]=o.useState(()=>Cj()),[m,v]=o.useState(!1),[g,h]=o.useState([]),[b,y]=o.useState([]),[S,x]=o.useState(!1),[w,$]=o.useState("review"),[E,R]=o.useState([]),[O,N]=o.useState(!1),[I,j]=o.useState(null),[M,k]=o.useState(""),[z,D]=o.useState(!1),[L,_]=o.useState(new Set),[V,P]=o.useState(!1),[A,H]=o.useState([]),[W,U]=o.useState([]),[F,q]=o.useState(!1),[K,G]=o.useState(!1),Y=async()=>{x(!0);try{const[ie,Se]=await Promise.all([nu.myPrs().catch(()=>({values:[]})),nu.reviewPrs().catch(()=>({values:[]}))]);h((ie==null?void 0:ie.values)||[]),y((Se==null?void 0:Se.values)||[])}catch{}x(!1)};o.useEffect(()=>{tr.status().then(ie=>{a(ie.bitbucketTokenConfigured),ie.bitbucketTokenConfigured&&Y()}).catch(()=>{})},[]);const ee=async()=>{if(P(!0),!(A.length>0)){q(!0);try{const ie=await nu.rules();H(ie.rules||[]),U(ie.customRules||[])}catch(ie){Ut.error(ie.message||"Failed to load PR Review rules.")}finally{q(!1)}}},ae=(ie,Se)=>{H(Re=>Re.map(ke=>ke.id===ie?{...ke,...Se}:ke))},le=()=>{U(ie=>[...ie,{id:`custom-${Date.now()}`,name:"New custom rule",pattern:"",flags:"g",message:"Custom pattern matched.",enabled:!0,severity:"warning"}])},Z=(ie,Se)=>{U(Re=>Re.map(ke=>ke.id===ie?{...ke,...Se}:ke))},se=async()=>{G(!0);try{const ie=await nu.saveRules(A,W);H(ie.rules||[]),U(ie.customRules||[]),P(!1),Ut.success("PR Review rules saved.")}catch(ie){Ut.error(ie.message||"Failed to save PR Review rules.")}finally{G(!1)}};o.useEffect(()=>{const ie=()=>{const Se=Cj();f(Se)};return window.addEventListener("hashchange",ie),()=>window.removeEventListener("hashchange",ie)},[]),o.useEffect(()=>{if(!c){s(null),n(!1);return}e.setFieldsValue({prLink:c}),n(!0),s(null),nu.check(c).then(ie=>{s(ie),_(new Set),Ut.success("PR Review completed successfully.")}).catch(ie=>{Ut.error(ie.message)}).finally(()=>{n(!1)})},[c]);const de=w==="review"?b:g,te=ie=>{$(ie),R([])},X=ie=>{R(Se=>Se.includes(ie)?Se.filter(Re=>Re!==ie):[...Se,ie])},Q=ie=>{if(ie.target.checked){const Se=de.map(Re=>Re.reviewUrl||Re.id);R(Se)}else R([])},oe=()=>{const Se=de.filter(ke=>E.includes(ke.reviewUrl||ke.id)).map(ke=>ke.reviewUrl).filter(Boolean);if(Se.length===0){Ut.warning("No PR URLs selected");return}const Re=Se.join(`
|
|
498
498
|
`);navigator.clipboard.writeText(Re),Ut.success(`Copied ${Se.length} PR URL(s) to clipboard`)},J=de.length>0&&de.every(ie=>E.includes(ie.reviewUrl||ie.id)),ve=E.length>0&&!J,he=ie=>{const Se=typeof ie=="string"?ie:ie==null?void 0:ie.prLink;if(!Se||!Se.trim())return;const Re=Se.trim();window.location.hash=`#/pr-review/detail?url=${encodeURIComponent(Re)}`},Ee=()=>{window.location.hash.includes("#/pr-review/detail")?window.location.hash="#/pr-review":window.history.back()},je=(ie,Se)=>{const Re=`${ie}:${Se.line}:${Se.rule}`,ke=`⚠️ [${Se.severity.toUpperCase()}] ${Se.rule}: ${Se.message}
|
|
499
499
|
\`\`\`javascript
|
|
@@ -566,4 +566,4 @@ ${m.join(`
|
|
|
566
566
|
`).length-1?`
|
|
567
567
|
`:""]},n))})}function xfe(){const[e,t]=o.useState(gfe),[n,r]=o.useState("ApiResponse"),[a,l]=o.useState("interface"),[s,c]=o.useState(!1),[f,m]=o.useState(!0),[v,g]=o.useState("editor"),[h,b]=Ut.useMessage(),y=o.useMemo(()=>{if(!e.trim())return{code:"",value:null,empty:!0};try{const $=JSON.parse(e);return{code:hfe($,n,{kind:a,optional:s,exported:f}),value:$}}catch($){return{error:$.message}}},[e,n,a,s,f]),S=()=>{try{t(JSON.stringify(JSON.parse(e),null,2)),h.success("JSON formatted.")}catch{h.error("Fix the JSON syntax before formatting.")}},x=async()=>{y.code&&(await navigator.clipboard.writeText(y.code),h.success("TypeScript copied to clipboard."))},w=()=>{if(!y.code)return;const $=new Blob([y.code],{type:"text/typescript;charset=utf-8"}),E=document.createElement("a");E.href=URL.createObjectURL($),E.download=`${tp(n)}.ts`,E.click(),URL.revokeObjectURL(E.href)};return u.jsxs(u.Fragment,{children:[b,u.jsxs("div",{className:"json-to-typescript-page",children:[u.jsx(Gr,{description:"Turn JSON data into readable TypeScript types locally in your browser.",eyebrow:"UTILITIES",title:"JSON to TypeScript"}),u.jsxs("div",{className:"json-to-typescript-toolbar",children:[u.jsxs("div",{children:[u.jsx(A1,{type:"secondary",children:"TYPE NAME"}),u.jsx(wt,{value:n,onChange:$=>r($.target.value),placeholder:"ApiResponse"})]}),u.jsxs("div",{children:[u.jsx(A1,{type:"secondary",children:"DECLARATION"}),u.jsx(kn,{value:a,onChange:l,options:[{value:"interface",label:"interface"},{value:"type",label:"type"}]})]}),u.jsx(ar,{checked:s,onChange:$=>c($.target.checked),onMouseDown:Vj,onDoubleClick:Wj,children:"Optional properties"}),u.jsx(ar,{checked:f,onChange:$=>m($.target.checked),onMouseDown:Vj,onDoubleClick:Wj,children:"Export"}),u.jsx(Oe,{icon:u.jsx(EM,{}),onClick:()=>t(""),children:"Clear"})]}),u.jsxs("div",{className:"json-to-typescript-workspace",children:[u.jsxs(Wt,{className:"code-card",title:u.jsxs("span",{children:[u.jsx(ja,{})," JSON input"]}),extra:u.jsxs(nt,{size:10,children:[u.jsx(fm,{size:"small",value:v,onChange:g,options:[{value:"editor",label:"Editor"},{value:"tree",label:"Tree"}]}),u.jsx(_t,{color:y.error?"error":y.empty?"default":"green",children:y.error?"Invalid JSON":y.empty?"Empty":"Valid JSON"})]}),children:[u.jsxs("div",{className:"code-pane",children:[u.jsx(yn,{title:"Format JSON",children:u.jsx(Oe,{className:"code-pane-action",type:"text",icon:u.jsx(Ose,{}),onClick:S})}),v==="editor"?u.jsx(wt.TextArea,{className:"code-editor",value:e,onChange:$=>t($.target.value),spellCheck:!1,placeholder:"Paste JSON here…"}):u.jsx(Cfe,{value:y.value,error:y.error,empty:y.empty})]}),y.error&&u.jsx(pa,{className:"json-error",type:"error",showIcon:!0,message:"Unable to generate types",description:y.error})]}),u.jsx(Wt,{className:"code-card",title:u.jsxs("span",{children:[u.jsx(ja,{})," TypeScript output"]}),extra:u.jsx(Oe,{type:"text",size:"small",icon:u.jsx(Ju,{}),disabled:!y.code,onClick:w,children:"Download .ts"}),children:u.jsxs("div",{className:"code-pane",children:[u.jsx(yn,{title:"Copy TypeScript",children:u.jsx(Oe,{className:"code-pane-action",type:"text",icon:u.jsx(_o,{}),disabled:!y.code,onClick:x})}),u.jsx("pre",{className:"code-output",children:y.code?u.jsx(yfe,{code:y.code}):"// TypeScript will appear here once the JSON is valid."})]})})]}),u.jsxs(A1,{className:"json-to-typescript-note",type:"secondary",children:["Objects become interfaces, arrays are inferred from their items, and empty or null values use ",u.jsx("code",{children:"unknown"}),"."]})]})]})}function Vj(e){e.detail>1&&e.preventDefault()}function Wj(e){var t,n;e.preventDefault(),(n=(t=window.getSelection)==null?void 0:t.call(window))==null||n.removeAllRanges()}function Cfe({value:e,error:t,empty:n}){return t?u.jsx("div",{className:"json-tree code-editor",children:"// Fix the JSON to preview its tree."}):n?u.jsx("div",{className:"json-tree code-editor",children:"// Enter JSON to preview its tree."}):u.jsx("div",{className:"json-tree code-editor",children:u.jsx(VM,{name:"root",value:e})})}function VM({name:e,value:t,depth:n=0}){const[r,a]=o.useState(n<2),l=t!==null&&typeof t=="object",s=l?Object.entries(t):[],c=t===null?"null":Array.isArray(t)?`Array(${t.length})`:typeof t,f=l?c:JSON.stringify(t);return u.jsxs("div",{className:"json-tree-node",style:{"--tree-depth":n},children:[u.jsxs("div",{className:`json-tree-row ${l?"is-branch":""}`,children:[l?u.jsx("button",{className:"json-tree-toggle",type:"button",onClick:()=>a(m=>!m),"aria-label":r?`Collapse ${e}`:`Expand ${e}`,children:r?u.jsx(Bu,{}):u.jsx(mo,{})}):u.jsx("span",{className:"json-tree-toggle-spacer"}),u.jsx("span",{className:"json-tree-key",children:e}),u.jsx("span",{className:"json-tree-colon",children:":"}),u.jsx("span",{className:`json-tree-value json-tree-value-${typeof t}`,children:f})]}),l&&r&&u.jsx("div",{className:"json-tree-children",children:s.length?s.map(([m,v])=>u.jsx(VM,{name:Array.isArray(t)?`[${m}]`:m,value:v,depth:n+1},m)):u.jsx("div",{className:"json-tree-empty",children:Array.isArray(t)?"Empty array":"Empty object"})})]})}const Sfe=e=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}).format(new Date(e));function wfe(e){const t=f=>f.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),n=f=>t(f).replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").replace(/`(.+?)`/g,"<code>$1</code>").replace(/!\[([^\]]*)\]\((https?:\/\/[^\s)]+)\)/g,'<img src="$2" alt="$1" loading="lazy" />').replace(/\[(.+?)\]\((https?:\/\/[^\s)]+)\)/g,'<a href="$2" target="_blank" rel="noreferrer">$1</a>'),r=f=>{const m=f.trim().replace(/^\|/,"").replace(/\|$/,""),v=[];let g="",h=!1;for(const b of m)b==="`"&&(h=!h),b==="|"&&!h?(v.push(g),g=""):g+=b;return v.push(g),v.map(b=>n(b.trim()))};let a="",l=[],s=!1;const c=()=>{if(!l.length)return;const[f,...m]=l;a+=`<table><thead><tr>${f.map(v=>`<th>${v}</th>`).join("")}</tr></thead><tbody>${m.map(v=>`<tr>${v.map(g=>`<td>${g}</td>`).join("")}</tr>`).join("")}</tbody></table>`,l=[]};return e.split(`
|
|
568
568
|
`).forEach(f=>{if(f.startsWith("```")){s=!s,a+=s?"<pre><code>":"</code></pre>";return}if(s){a+=`${t(f)}
|
|
569
|
-
`;return}if(/^\s*\|?.+\|.+\|?\s*$/.test(f)){if(/^\s*\|?\s*:?-{3,}/.test(f))return;l.push(r(f));return}c();const m=n(f);f.startsWith("### ")?a+=`<h3>${m.slice(4)}</h3>`:f.startsWith("## ")?a+=`<h2>${m.slice(3)}</h2>`:f.startsWith("# ")?a+=`<h1>${m.slice(2)}</h1>`:f.startsWith("- ")?a+=`<li>${m.slice(2)}</li>`:f.trim()&&(a+=`<p>${m}</p>`)}),c(),a.replace(/(<li>.*<\/li>\s*)+/g,f=>`<ul>${f}</ul>`)}const $fe=o.memo(function({html:t}){return u.jsx("div",{className:"markdown-block",dangerouslySetInnerHTML:{__html:t}})});function Efe({content:e}){const t=o.useMemo(()=>wfe(e||"*Nothing to preview yet*").split(/(?=<(?:h[1-3]|p|ul|pre|table)>)/).filter(Boolean),[e]);return u.jsx("div",{className:"markdown-body",children:t.map((n,r)=>u.jsx($fe,{html:n},r))})}function jfe(){const[e,t]=o.useState([]),[n,r]=o.useState(null),[a,l]=o.useState({title:"",content:"",tags:[]}),[s,c]=o.useState(""),[f,m]=o.useState("all"),[v,g]=o.useState("preview"),[h,b]=o.useState(!0),[y,S]=o.useState(!1),x=o.useRef(!1),w=async()=>{try{const j=await Jv.list();t(j),j[0]&&(r(j[0].id),l(j[0]))}catch(j){Ut.error(j.message)}finally{b(!1)}};o.useEffect(()=>{w()},[]),o.useEffect(()=>{const j=M=>{(M.metaKey||M.ctrlKey)&&M.key==="s"&&(M.preventDefault(),N())};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)});const $=o.useMemo(()=>[...new Set(e.flatMap(j=>j.tags||[]))],[e]),E=e.filter(j=>{var M;return(f==="all"||((M=j.tags)==null?void 0:M.includes(f)))&&(!s||`${j.title} ${j.content}`.toLowerCase().includes(s.toLowerCase()))}),R=j=>{r(j.id),l(j)},O=()=>{r(null),l({title:"",content:"",tags:[]})};async function N(){if(x.current)return;if(!a.title.trim()&&!a.content.trim()){Ut.warning("Add some content first");return}x.current=!0;const j=Date.now();S(!0);try{const M={...a,tags:a.tagsInput??a.tags},k=n?await Jv.update(n,M):await Jv.create(M);t(z=>n?z.map(D=>D.id===k.id?k:D):[k,...z]),r(k.id),l(k),Ut.success("Memo saved")}catch(M){Ut.error(M.message)}finally{await new Promise(M=>setTimeout(M,Math.max(0,500-(Date.now()-j)))),x.current=!1,S(!1)}}async function I(){if(n)try{await Jv.remove(n);const j=e.filter(M=>M.id!==n);t(j),j[0]?R(j[0]):O(),Ut.success("Memo deleted")}catch(j){Ut.error(j.message)}}return h?u.jsx("div",{className:"memos-loading",children:u.jsx(wr,{})}):u.jsxs("div",{className:"memos-page",children:[u.jsx(Gr,{description:"Capture ideas and keep your thinking light.",eyebrow:"PERSONAL KNOWLEDGE",title:"Memos"}),u.jsxs("div",{className:"memos-shell",children:[u.jsxs("aside",{className:"memos-list-panel",children:[u.jsxs("div",{className:"memos-list-title",children:[u.jsxs("span",{children:["All notes ",u.jsx("b",{children:e.length})]}),u.jsx(Oe,{type:"text",icon:u.jsx(dr,{}),onClick:O})]}),u.jsx(wt,{allowClear:!0,prefix:u.jsx(tl,{}),placeholder:"Search memos...",value:s,onChange:j=>c(j.target.value)}),u.jsxs("div",{className:"memo-tags",children:[u.jsx("button",{className:f==="all"?"active":"",onClick:()=>m("all"),children:"All notes"}),$.map(j=>u.jsxs("button",{className:f===j?"active":"",onClick:()=>m(j),children:["#",j]},j))]}),u.jsx("div",{className:"memo-items",children:E.length?E.map(j=>u.jsxs("button",{className:`memo-item ${j.id===n?"selected":""}`,onClick:()=>R(j),children:[u.jsx("strong",{children:j.title||"Untitled memo"}),u.jsx("span",{children:j.content.replace(/[#*`\n]/g," ").trim()||"No content yet"}),u.jsx("small",{children:Sfe(j.updatedAt)})]},j.id)):u.jsx(vn,{image:vn.PRESENTED_IMAGE_SIMPLE,description:"No memos found"})})]}),u.jsxs("main",{className:"memo-editor-panel",children:[u.jsxs("div",{className:"memo-toolbar",children:[u.jsx(fm,{className:"memo-mode","aria-label":"Memo view mode",value:v,onChange:g,options:[{value:"edit",label:u.jsx(ei,{"aria-label":"Edit"})},{value:"preview",label:u.jsx(Uu,{"aria-label":"Preview"})},{value:"split",label:u.jsx("span",{"aria-label":"Split",children:"↔"})}]}),u.jsxs("div",{children:[u.jsx(ha,{title:"Delete this memo?",onConfirm:I,disabled:!n,children:u.jsx(Oe,{danger:!0,type:"text",icon:u.jsx(or,{}),disabled:!n})}),u.jsxs(Oe,{type:"primary",icon:u.jsx(OM,{}),loading:y,onClick:N,children:["Save ",u.jsx("span",{className:"save-hint",children:"⌘S"})]})]})]}),u.jsxs("div",{className:`memo-workspace view-${v}`,children:[u.jsxs("section",{className:"memo-edit",children:[u.jsx(wt,{className:"memo-title-input",bordered:!1,placeholder:"Memo title",value:a.title,onChange:j=>l({...a,title:j.target.value})}),u.jsx(wt,{className:"memo-tag-input",bordered:!1,prefix:"#",placeholder:"Add tags, separated by commas",value:(a.tags||[]).join(", "),onChange:j=>l({...a,tags:j.target.value.split(",").map(M=>M.trim().toLowerCase()).filter(Boolean)})}),u.jsx(wt.TextArea,{className:"memo-content-input",bordered:!1,placeholder:"Start writing in Markdown...",value:a.content,onChange:j=>l({...a,content:j.target.value}),autoSize:{minRows:18}})]}),u.jsxs("section",{className:"memo-preview",children:[u.jsx("div",{className:"preview-label",children:"PREVIEW"}),u.jsx(Efe,{content:a.content})]})]}),u.jsxs("div",{className:"memo-footer",children:[u.jsx("span",{children:"Markdown supported"}),u.jsxs("span",{children:[a.content.length," characters"]}),u.jsx("div",{children:(a.tags||[]).map(j=>u.jsxs(_t,{children:["#",j]},j))})]})]})]})]})}const{Content:Ofe,Sider:Nfe}=Yl,{Title:Kj,Text:Ms}=Rn,Uj={dark:"#6555e8",light:"#dbeafe"},Rfe="var(--db-font-sans)",WM=["overview","launcher","clipboard","ports","image-compress","json-to-typescript","jira-filters","todo-list","memos","postman","bookmark-sync","file-organizer","branch-sync","package-upgrade","package-versions","presentation-plan","presentation-view","settings","dev-configurations","errors"],Ife=()=>{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.startsWith("pr-conflict")?{page:"pr-conflict",pluginId:null}:t.startsWith("branch-sync")?{page:"branch-sync",pluginId:null}:t==="home"?{page:"overview",pluginId:null}:WM.includes(t)?{page:t,pluginId:null}:{page:"overview",pluginId:null}};function Mfe({theme:e,onThemeChange:t}){var xe;const{message:n}=qr.useApp(),r=Ife(),[a,l]=o.useState([]),[s,c]=o.useState(new Set),[f,m]=o.useState({}),[v,g]=o.useState([]),[h,b]=o.useState(!0),[y,S]=o.useState(null),[x,w]=o.useState(!1),[$,E]=o.useState(!1),[R,O]=o.useState([]),[N,I]=o.useState([]),[j,M]=o.useState(r.page),[k,z]=o.useState(()=>{var ce;return((ce=window.matchMedia)==null?void 0:ce.call(window,"(max-width: 991.98px)").matches)??!1}),[D,L]=o.useState(null),[_,V]=o.useState(!1),[P,A]=o.useState(!1),[H,W]=o.useState(""),[U,F]=o.useState(null),[q,K]=o.useState(!1),[G,Y]=o.useState(r.pluginId?{id:r.pluginId,name:"Plugin"}:null),[ee,ae]=o.useState(null),[le,Z]=o.useState(""),se=async({showLoading:ce=!1}={})=>{ce&&b(!0);try{const[pe,ie,Se]=await Promise.all([jr.list(),jr.running(),bu.list().catch(()=>[])]);l(pe),g(Array.isArray(Se)?Se:[]),Array.isArray(ie)?(c(new Set(ie)),m({})):(c(new Set((ie==null?void 0:ie.running)||[])),m((ie==null?void 0:ie.errorCounts)||{})),w(!0),S(null),E(!0)}catch(pe){S((pe==null?void 0:pe.message)||"Unable to load service and runtime data."),E(!1)}finally{ce&&b(!1)}},de=async(ce=!1)=>{V(!0);try{L(await dj.status(ce))}catch{L(pe=>pe||{currentVersion:tu.version,latestVersion:tu.version,updateAvailable:!1,releases:[],sourceUnavailable:!0})}finally{V(!1)}},te=()=>se({showLoading:!0}),X=()=>{F(null),K(!0)},Q=()=>{const ce=U==null?void 0:U.success;K(!1),ce&&window.location.reload()},oe=async(ce="latest")=>{A(!0),W(ce),F(null);try{const pe=await dj.selfUpdate(ce);F({success:!0,message:pe.message}),L(ie=>ie&&{...ie,currentVersion:ce==="latest"?ie.latestVersion:ce,updateAvailable:ce==="latest"?!1:ce!==ie.latestVersion})}catch(pe){F({success:!1,message:pe.message||"DevBuddy could not be updated."})}finally{A(!1)}},J=async ce=>{if(ce){Z("Loading plugin…");try{Z(ce.view?await(await fetch(ce.view)).text():"This plugin does not provide a view yet.")}catch{Z("Failed to load the plugin view.")}}};o.useEffect(()=>{Promise.all([se({showLoading:!0}),vue.list().then(O),As.list().then(I)]).catch(ce=>n.error(ce.message)),de()},[]),o.useEffect(()=>{const ce=()=>{const ie=(window.location.hash||"#/overview").slice(2);if(ie.startsWith("plugin:")){const Se=ie.slice(7),Re=R.find(ke=>ke.id===Se);Re?(ae(null),M("plugin"),Y(Re),J(Re)):R.length>0&&(window.location.hash="#/overview")}else if(ie.startsWith("static:")){const Se=ie.slice(7),Re=N.find(ke=>String(ke.id)===String(Se));Re?(Y(null),M("static-page"),ae(Re)):N.length>0&&(window.location.hash="#/overview")}else ie.startsWith("logs/")?(Y(null),ae(null),M("logs")):["todo-list/archived","todo-archived"].includes(ie)?(Y(null),ae(null),M("todo-archived")):ie.startsWith("pr-review")?(Y(null),ae(null),M("pr-review")):ie.startsWith("pr-conflict")?(Y(null),ae(null),M("pr-conflict")):ie.startsWith("branch-sync")?(Y(null),ae(null),M("branch-sync")):ie==="home"||WM.includes(ie)?(Y(null),ae(null),M(ie==="home"?"overview":ie)):window.location.hash="#/overview"};return window.addEventListener("hashchange",ce),window.location.hash?ce():window.location.hash="#/overview",()=>window.removeEventListener("hashchange",ce)},[R,N]),o.useEffect(()=>{const ce=ie=>{var Se;(ie.error||ie.message)&&bu.log({source:"Frontend",message:ie.message||"Uncaught JavaScript Error",details:((Se=ie.error)==null?void 0:Se.stack)||`${ie.filename}:${ie.lineno}:${ie.colno}`}).catch(()=>{})},pe=ie=>{var Se,Re;bu.log({source:"Frontend (Promise)",message:((Se=ie.reason)==null?void 0:Se.message)||String(ie.reason||"Unhandled Promise Rejection"),details:((Re=ie.reason)==null?void 0:Re.stack)||String(ie.reason)}).catch(()=>{})};return window.addEventListener("error",ce),window.addEventListener("unhandledrejection",pe),()=>{window.removeEventListener("error",ce),window.removeEventListener("unhandledrejection",pe)}},[]),o.useLayoutEffect(()=>{var ce;(ce=document.querySelector(".page"))==null||ce.scrollTo({top:0,left:0,behavior:"auto"})},[j,G==null?void 0:G.id,ee==null?void 0:ee.id]),o.useEffect(()=>{const ce=pe=>{(pe.metaKey||pe.ctrlKey)&&pe.shiftKey&&(pe.key==="r"||pe.key==="R"||pe.code==="KeyR")&&(pe.preventDefault(),pe.stopPropagation())};return window.addEventListener("keydown",ce,!0),()=>window.removeEventListener("keydown",ce,!0)},[]),o.useEffect(()=>{if(h||!["overview","launcher","ports"].includes(j))return;const ce=setInterval(()=>{se()},2e3);return()=>clearInterval(ce)},[j,h]);const ve=o.useMemo(()=>{const ce=[...R.map(pe=>({key:`plugin:${pe.id}`,icon:u.jsx("span",{"aria-hidden":"true",children:pe.icon||"✦"}),label:pe.name||pe.id})),...N.map(pe=>({key:`static:${pe.id}`,icon:u.jsx(Qu,{}),label:pe.name}))];return[{type:"group",label:"Run & Observe",children:[{key:"launcher",icon:u.jsx(uo,{}),label:"Launcher"},{key:"ports",icon:u.jsx(eS,{}),label:"Port Diagnostic"}]},{type:"group",label:"Plan & Review",children:[{key:"todo-list",icon:u.jsx(tc,{}),label:"To-Do"},{key:"memos",icon:u.jsx(nl,{}),label:"Memos"},{key:"pr-review",icon:u.jsx(lh,{}),label:"PR Review"},{key:"pr-conflict",icon:u.jsx(Yg,{}),label:"Resolve Conflicts"},{key:"jira-filters",icon:u.jsx(Cse,{}),label:"Jira Workspace"},{key:"presentation-plan",icon:u.jsx(zse,{}),label:"Presentations"},{key:"branch-sync",icon:u.jsx(wg,{}),label:"Branch Sync"},{key:"package-upgrade",icon:u.jsx(NM,{}),label:"Package Upgrade"},{key:"package-versions",icon:u.jsx(ole,{}),label:"Package Versions"}]},{type:"group",label:"Utilities",children:[{key:"clipboard",icon:u.jsx(_o,{}),label:"Clipboard History"},{key:"postman",icon:u.jsx(rc,{}),label:"Postman"},{key:"image-compress",icon:u.jsx(bx,{}),label:"Image compression"},{key:"json-to-typescript",icon:u.jsx(ja,{}),label:"JSON to TypeScript"},{key:"bookmark-sync",icon:u.jsx(Kf,{}),label:"Bookmark Sync"},{key:"file-organizer",icon:u.jsx(ca,{}),label:"Folder Organizer"}]},...ce.length>0?[{type:"group",label:"Extensions",children:ce}]:[]]},[R,N]),he=({key:ce})=>{window.location.hash=`#/${ce}`},Ee=G?`plugin:${G.id}`:ee?`static:${ee.id}`:j==="todo-archived"?"todo-list":j,je=y&&!(h&&!x)?u.jsx(pa,{type:x?"warning":"error",showIcon:!0,message:x?"Service status may be out of date":"Unable to load services",description:y,action:u.jsx(Oe,{size:"small",loading:h,onClick:te,children:"Retry"}),className:"launcher-data-notice"}):null;return j==="logs"?u.jsx(Sde,{}):j==="presentation-view"?u.jsx(vfe,{}):u.jsxs(Yl,{className:"workbench",children:[u.jsxs(Nfe,{"aria-label":"DevBuddy navigation",breakpoint:"lg",className:"sidebar",collapsed:k,collapsedWidth:64,collapsible:!0,onBreakpoint:z,onCollapse:z,width:240,children:[u.jsxs("div",{className:"brand-row",children:[u.jsxs("a",{className:"brand",href:"#/overview","aria-current":j==="overview"?"page":void 0,"aria-label":`Go to Overview — DevBuddy version ${tu.version}`,children:[u.jsx("span",{className:`brand-mark ${$?"":"is-offline"}`,"aria-hidden":"true",children:"✦"}),u.jsx("span",{className:"brand-name",children:"DevBuddy"}),u.jsxs("span",{className:"brand-version",children:["v",tu.version]})]}),!k&&u.jsx(yn,{title:D!=null&&D.updateAvailable?`Update available: v${D.latestVersion}`:"View Change Log",children:u.jsx(ga,{dot:!!(D!=null&&D.updateAvailable),color:"#f5b942",offset:[-2,3],children:u.jsx(Oe,{"aria-label":D!=null&&D.updateAvailable?`Update available: version ${D.latestVersion}`:"View Change Log",className:`sidebar-update-button ${D!=null&&D.updateAvailable?"has-update":""}`,icon:u.jsx(aj,{}),loading:_&&!D,onClick:X,type:"text"})})})]}),u.jsx("nav",{className:"sidebar-nav","aria-label":"Main navigation",children:u.jsx(Xl,{theme:e==="light"?"light":"dark",mode:"inline",tabIndex:-1,selectedKeys:[Ee],items:ve,onClick:he})}),u.jsx("div",{className:"sidebar-bottom",children:u.jsx("div",{className:"sidebar-bottom-inner",children:u.jsx("nav",{"aria-label":"Settings navigation",children:u.jsx(Xl,{className:"sidebar-settings-menu",theme:e==="light"?"light":"dark",mode:"inline",tabIndex:-1,selectedKeys:["settings","errors"].includes(j)?[j]:[],items:[{key:"settings",icon:u.jsx(ac,{}),label:"Settings"}],onClick:he})})})})]}),u.jsx(Yl,{children:u.jsx(Ofe,{className:`page ${["static-page","postman"].includes(j)?"is-static-page":""} ${["overview","postman","static-page"].includes(j)?"":"is-workspace-content"} ${j==="presentation-plan"?"is-presentation-plan":""} ${j==="json-to-typescript"?"is-json-to-typescript":""} ${j==="memos"?"is-memos":""}`,children:G?u.jsxs(u.Fragment,{children:[u.jsx(Ms,{type:"secondary",children:"PLUGIN"}),u.jsx(Kj,{level:2,children:G.name}),u.jsx(Wt,{children:u.jsx("div",{dangerouslySetInnerHTML:{__html:le}})})]}):j==="static-page"&&ee?u.jsx("div",{className:"static-page-container",children:u.jsx("iframe",{src:ee.url,title:ee.name,className:"static-page-iframe"})}):j==="image-compress"?u.jsx(Jue,{}):j==="json-to-typescript"?u.jsx(xfe,{}):j==="overview"?u.jsx(efe,{launchers:a,running:s,errorCounts:f,errorLogs:v,plugins:R,staticPages:N,loading:h,error:y,hasLoaded:x,onRetry:te,onNavigate:ce=>{window.location.hash=`#/${ce}`}}):j==="clipboard"?u.jsx(Nue,{}):j==="ports"?u.jsx(Fue,{refreshLaunchers:se}):j==="pr-review"?u.jsx(ede,{}):j==="pr-conflict"?u.jsx(rde,{}):j==="jira-filters"?u.jsx(ude,{}):j==="todo-list"?u.jsx(pde,{}):j==="memos"?u.jsx(jfe,{}):j==="todo-archived"?u.jsx(yde,{}):j==="presentation-plan"?u.jsx(mfe,{}):j==="postman"?u.jsx(Dde,{}):j==="bookmark-sync"?u.jsx(zde,{}):j==="file-organizer"?u.jsx(_de,{}):j==="branch-sync"?u.jsx(Lde,{}):j==="package-upgrade"?u.jsx(Hde,{}):j==="package-versions"?u.jsx(Vde,{}):j==="errors"?u.jsx(wde,{}):j==="settings"?u.jsx(Vue,{theme:e,onThemeChange:t,onStaticPagesChange:()=>As.list().then(I)}):j==="dev-configurations"?u.jsx(Uue,{}):u.jsxs(u.Fragment,{children:[je,(h||x||!y)&&u.jsx(Hue,{launchers:a,running:s,errorCounts:f,refresh:se,loading:h&&!x})]})})}),u.jsx($n,{className:"changelog-modal",footer:[(D==null?void 0:D.updateAvailable)&&!(U!=null&&U.success)&&u.jsx(Oe,{type:"primary",loading:P&&H==="latest",onClick:()=>oe(),children:"Update now"},"update"),u.jsx(Oe,{disabled:P,loading:_,onClick:()=>de(!0),children:"Check again"},"refresh"),u.jsx(Oe,{type:"primary",disabled:P,onClick:Q,children:U!=null&&U.success?"Close & reload":"Close"},"close")],onCancel:Q,closable:!P,maskClosable:!P,open:q,title:u.jsxs("div",{className:"changelog-title",children:[u.jsx("span",{className:`changelog-bulb ${D!=null&&D.updateAvailable?"has-update":""}`,children:u.jsx(aj,{})}),u.jsx("span",{children:"Updates"})]}),width:680,children:_&&!D?u.jsx("div",{className:"changelog-loading",children:u.jsx(wr,{})}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"changelog-version-row",children:[u.jsxs("div",{children:[u.jsx(Ms,{type:"secondary",children:"Installed"}),u.jsxs(Ms,{strong:!0,children:["v",(D==null?void 0:D.currentVersion)||tu.version]})]}),u.jsxs("div",{children:[u.jsx(Ms,{type:"secondary",children:"Latest"}),u.jsxs(Ms,{strong:!0,children:["v",(D==null?void 0:D.latestVersion)||tu.version]})]}),u.jsx(_t,{color:D!=null&&D.updateAvailable?"gold":"green",children:D!=null&&D.updateAvailable?"Update available":"Up to date"})]}),(D==null?void 0:D.sourceUnavailable)&&u.jsx(pa,{className:"changelog-source-alert",message:"Could not reach the configured npm registry. Showing locally available release notes.",showIcon:!0,type:"info"}),U&&u.jsx(pa,{className:"changelog-source-alert",description:U.message,message:U.success?"DevBuddy updated successfully":"DevBuddy update failed",showIcon:!0,type:U.success?"success":"error"}),u.jsx("div",{className:"changelog-release-list",children:(xe=D==null?void 0:D.releases)!=null&&xe.length?D.releases.slice(0,5).map(ce=>u.jsxs("section",{className:"changelog-release",children:[u.jsxs("div",{className:"changelog-release-heading",children:[u.jsxs("div",{className:"changelog-release-title",children:[u.jsxs(_t,{className:"changelog-release-version",children:["v",ce.version]}),u.jsx(Kj,{level:4,children:ce.name})]}),u.jsxs("div",{className:"changelog-release-actions",children:[ce.publishedAt&&u.jsx(Ms,{type:"secondary",children:new Date(ce.publishedAt).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1})}),u.jsx(Oe,{size:"small",type:ce.version===(D==null?void 0:D.latestVersion)?"primary":"default",disabled:P||ce.version===(D==null?void 0:D.currentVersion),loading:P&&H===ce.version,onClick:()=>oe(ce.version),children:ce.version===(D==null?void 0:D.currentVersion)?"Installed":"Install"})]})]}),u.jsx(Ms,{className:"changelog-release-notes",children:ce.notes||"Published to the configured npm registry."})]},`${ce.version}-${ce.publishedAt||""}`)):u.jsx(vn,{description:"No published release notes yet.",image:vn.PRESENTED_IMAGE_SIMPLE})})]})})]})}function Tfe(){const[e,t]=o.useState(()=>document.documentElement.dataset.theme||localStorage.getItem("devbuddy-theme")||"dark");return o.useEffect(()=>{tr.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",Uj[e]||Uj.dark)},[e]),o.useLayoutEffect(()=>{const n=()=>{document.querySelectorAll('[role="tab"], [role="tabpanel"]').forEach(l=>{document.activeElement===l&&l.blur(),l.tabIndex!==-1&&(l.tabIndex=-1)})};n();const r=new MutationObserver(n),a=l=>{var s,c;(c=(s=l.target).matches)!=null&&c.call(s,'[role="tab"], [role="tabpanel"]')&&l.target.blur()};return document.addEventListener("focusin",a,!0),r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),()=>{r.disconnect(),document.removeEventListener("focusin",a,!0)}},[]),u.jsx(Bo,{theme:{token:{fontFamily:Rfe,borderRadius:10,colorBgLayout:e==="light"?"#f7f8fc":"#f4f5fa",colorInfo:e==="light"?"#2e83d2":"#6555e8",colorLink:e==="light"?"#2e83d2":"#5b4cc4",colorLinkActive:e==="light"?"#2474bd":"#5143c2",colorLinkHover:e==="light"?"#4593d8":"#7669ee",colorPrimary:e==="light"?"#2e83d2":"#6555e8",colorPrimaryActive:e==="light"?"#2474bd":"#5143c2",colorPrimaryHover:e==="light"?"#4593d8":"#7669ee",controlOutline:e==="light"?"rgba(46, 131, 210, .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:u.jsx(qr,{children:u.jsx(Mfe,{theme:e,onThemeChange:t})})})}const Pfe=/Macintosh|Mac OS X|iPhone|iPad/i.test(navigator.userAgent);document.documentElement.dataset.platform=Pfe?"mac":"other";const kfe=tP.createRoot(document.getElementById("app"));kfe.render(u.jsx(Tfe,{}));"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)})});
|
|
569
|
+
`;return}if(/^\s*\|?.+\|.+\|?\s*$/.test(f)){if(/^\s*\|?\s*:?-{3,}/.test(f))return;l.push(r(f));return}c();const m=n(f);f.startsWith("### ")?a+=`<h3>${m.slice(4)}</h3>`:f.startsWith("## ")?a+=`<h2>${m.slice(3)}</h2>`:f.startsWith("# ")?a+=`<h1>${m.slice(2)}</h1>`:f.startsWith("- ")?a+=`<li>${m.slice(2)}</li>`:f.trim()&&(a+=`<p>${m}</p>`)}),c(),a.replace(/(<li>.*<\/li>\s*)+/g,f=>`<ul>${f}</ul>`)}const $fe=o.memo(function({html:t}){return u.jsx("div",{className:"markdown-block",dangerouslySetInnerHTML:{__html:t}})});function Efe({content:e}){const t=o.useMemo(()=>wfe(e||"*Nothing to preview yet*").split(/(?=<(?:h[1-3]|p|ul|pre|table)>)/).filter(Boolean),[e]);return u.jsx("div",{className:"markdown-body",children:t.map((n,r)=>u.jsx($fe,{html:n},r))})}function jfe(){const[e,t]=o.useState([]),[n,r]=o.useState(null),[a,l]=o.useState({title:"",content:"",tags:[]}),[s,c]=o.useState(""),[f,m]=o.useState("all"),[v,g]=o.useState("preview"),[h,b]=o.useState(!0),[y,S]=o.useState(!1),x=o.useRef(!1),w=async()=>{try{const j=await Jv.list();t(j),j[0]&&(r(j[0].id),l(j[0]))}catch(j){Ut.error(j.message)}finally{b(!1)}};o.useEffect(()=>{w()},[]),o.useEffect(()=>{const j=M=>{(M.metaKey||M.ctrlKey)&&M.key==="s"&&(M.preventDefault(),N())};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)});const $=o.useMemo(()=>[...new Set(e.flatMap(j=>j.tags||[]))],[e]),E=e.filter(j=>{var M;return(f==="all"||((M=j.tags)==null?void 0:M.includes(f)))&&(!s||`${j.title} ${j.content}`.toLowerCase().includes(s.toLowerCase()))}),R=j=>{r(j.id),l(j)},O=()=>{r(null),l({title:"",content:"",tags:[]})};async function N(){if(x.current)return;if(!a.title.trim()&&!a.content.trim()){Ut.warning("Add some content first");return}x.current=!0;const j=Date.now();S(!0);try{const M={...a,tags:a.tagsInput??a.tags},k=n?await Jv.update(n,M):await Jv.create(M);t(z=>n?z.map(D=>D.id===k.id?k:D):[k,...z]),r(k.id),l(k),Ut.success("Memo saved")}catch(M){Ut.error(M.message)}finally{await new Promise(M=>setTimeout(M,Math.max(0,500-(Date.now()-j)))),x.current=!1,S(!1)}}async function I(){if(n)try{await Jv.remove(n);const j=e.filter(M=>M.id!==n);t(j),j[0]?R(j[0]):O(),Ut.success("Memo deleted")}catch(j){Ut.error(j.message)}}return h?u.jsx("div",{className:"memos-loading",children:u.jsx(wr,{})}):u.jsxs("div",{className:"memos-page",children:[u.jsx(Gr,{description:"Capture ideas and keep your thinking light.",eyebrow:"PERSONAL KNOWLEDGE",title:"Memos"}),u.jsxs("div",{className:"memos-shell",children:[u.jsxs("aside",{className:"memos-list-panel",children:[u.jsxs("div",{className:"memos-list-title",children:[u.jsxs("span",{children:["All notes ",u.jsx("b",{children:e.length})]}),u.jsx(Oe,{type:"text",icon:u.jsx(dr,{}),onClick:O})]}),u.jsx(wt,{allowClear:!0,prefix:u.jsx(tl,{}),placeholder:"Search memos...",value:s,onChange:j=>c(j.target.value)}),u.jsxs("div",{className:"memo-tags",children:[u.jsx("button",{className:f==="all"?"active":"",onClick:()=>m("all"),children:"All notes"}),$.map(j=>u.jsxs("button",{className:f===j?"active":"",onClick:()=>m(j),children:["#",j]},j))]}),u.jsx("div",{className:"memo-items",children:E.length?E.map(j=>u.jsxs("button",{className:`memo-item ${j.id===n?"selected":""}`,onClick:()=>R(j),children:[u.jsx("strong",{children:j.title||"Untitled memo"}),u.jsx("span",{children:j.content.replace(/[#*`\n]/g," ").trim()||"No content yet"}),u.jsx("small",{children:Sfe(j.updatedAt)})]},j.id)):u.jsx(vn,{image:vn.PRESENTED_IMAGE_SIMPLE,description:"No memos found"})})]}),u.jsxs("main",{className:"memo-editor-panel",children:[u.jsxs("div",{className:"memo-toolbar",children:[u.jsx(fm,{className:"memo-mode","aria-label":"Memo view mode",value:v,onChange:g,options:[{value:"edit",label:u.jsx(ei,{"aria-label":"Edit"})},{value:"preview",label:u.jsx(Uu,{"aria-label":"Preview"})},{value:"split",label:u.jsx("span",{"aria-label":"Split",children:"↔"})}]}),u.jsxs("div",{children:[u.jsx(ha,{title:"Delete this memo?",onConfirm:I,disabled:!n,children:u.jsx(Oe,{danger:!0,type:"text",icon:u.jsx(or,{}),disabled:!n})}),u.jsxs(Oe,{type:"primary",icon:u.jsx(OM,{}),loading:y,onClick:N,children:["Save ",u.jsx("span",{className:"save-hint",children:"⌘S"})]})]})]}),u.jsxs("div",{className:`memo-workspace view-${v}`,children:[u.jsxs("section",{className:"memo-edit",children:[u.jsx(wt,{className:"memo-title-input",bordered:!1,placeholder:"Memo title",value:a.title,onChange:j=>l({...a,title:j.target.value})}),u.jsx(wt,{className:"memo-tag-input",bordered:!1,prefix:"#",placeholder:"Add tags, separated by commas",value:(a.tags||[]).join(", "),onChange:j=>l({...a,tags:j.target.value.split(",").map(M=>M.trim().toLowerCase()).filter(Boolean)})}),u.jsx(wt.TextArea,{className:"memo-content-input",bordered:!1,placeholder:"Start writing in Markdown...",value:a.content,onChange:j=>l({...a,content:j.target.value}),autoSize:{minRows:18}})]}),u.jsxs("section",{className:"memo-preview",children:[u.jsx("div",{className:"preview-label",children:"PREVIEW"}),u.jsx(Efe,{content:a.content})]})]}),u.jsxs("div",{className:"memo-footer",children:[u.jsx("span",{children:"Markdown supported"}),u.jsxs("span",{children:[a.content.length," characters"]}),u.jsx("div",{children:(a.tags||[]).map(j=>u.jsxs(_t,{children:["#",j]},j))})]})]})]})]})}const{Content:Ofe,Sider:Nfe}=Yl,{Title:Kj,Text:Ms}=Rn,Uj={dark:"#6555e8",light:"#dbeafe"},Rfe="var(--db-font-sans)",WM=["overview","launcher","clipboard","ports","image-compress","json-to-typescript","jira-filters","todo-list","memos","postman","bookmark-sync","file-organizer","branch-sync","package-upgrade","package-versions","presentation-plan","presentation-view","settings","dev-configurations","errors"],Ife=()=>{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.startsWith("pr-conflict")?{page:"pr-conflict",pluginId:null}:t.startsWith("branch-sync")?{page:"branch-sync",pluginId:null}:t==="home"?{page:"overview",pluginId:null}:WM.includes(t)?{page:t,pluginId:null}:{page:"overview",pluginId:null}};function Mfe({theme:e,onThemeChange:t}){var xe;const{message:n}=qr.useApp(),r=Ife(),[a,l]=o.useState([]),[s,c]=o.useState(new Set),[f,m]=o.useState({}),[v,g]=o.useState([]),[h,b]=o.useState(!0),[y,S]=o.useState(null),[x,w]=o.useState(!1),[$,E]=o.useState(!1),[R,O]=o.useState([]),[N,I]=o.useState([]),[j,M]=o.useState(r.page),[k,z]=o.useState(()=>{var ce;return((ce=window.matchMedia)==null?void 0:ce.call(window,"(max-width: 991.98px)").matches)??!1}),[D,L]=o.useState(null),[_,V]=o.useState(!1),[P,A]=o.useState(!1),[H,W]=o.useState(""),[U,F]=o.useState(null),[q,K]=o.useState(!1),[G,Y]=o.useState(r.pluginId?{id:r.pluginId,name:"Plugin"}:null),[ee,ae]=o.useState(null),[le,Z]=o.useState(""),se=async({showLoading:ce=!1}={})=>{ce&&b(!0);try{const[pe,ie,Se]=await Promise.all([jr.list(),jr.running(),bu.list().catch(()=>[])]);l(pe),g(Array.isArray(Se)?Se:[]),Array.isArray(ie)?(c(new Set(ie)),m({})):(c(new Set((ie==null?void 0:ie.running)||[])),m((ie==null?void 0:ie.errorCounts)||{})),w(!0),S(null),E(!0)}catch(pe){S((pe==null?void 0:pe.message)||"Unable to load service and runtime data."),E(!1)}finally{ce&&b(!1)}},de=async(ce=!1)=>{V(!0);try{L(await dj.status(ce))}catch{L(pe=>pe||{currentVersion:tu.version,latestVersion:tu.version,updateAvailable:!1,releases:[],sourceUnavailable:!0})}finally{V(!1)}},te=()=>se({showLoading:!0}),X=()=>{F(null),K(!0)},Q=()=>{const ce=U==null?void 0:U.success;K(!1),ce&&window.location.reload()},oe=async(ce="latest")=>{A(!0),W(ce),F(null);try{const pe=await dj.selfUpdate(ce);F({success:!0,message:pe.message}),L(ie=>ie&&{...ie,currentVersion:ce==="latest"?ie.latestVersion:ce,updateAvailable:ce==="latest"?!1:ce!==ie.latestVersion})}catch(pe){F({success:!1,message:pe.message||"DevBuddy could not be updated."})}finally{A(!1)}},J=async ce=>{if(ce){Z("Loading plugin…");try{Z(ce.view?await(await fetch(ce.view)).text():"This plugin does not provide a view yet.")}catch{Z("Failed to load the plugin view.")}}};o.useEffect(()=>{Promise.all([se({showLoading:!0}),vue.list().then(O),As.list().then(I)]).catch(ce=>n.error(ce.message)),de()},[]),o.useEffect(()=>{const ce=()=>{const ie=(window.location.hash||"#/overview").slice(2);if(ie.startsWith("plugin:")){const Se=ie.slice(7),Re=R.find(ke=>ke.id===Se);Re?(ae(null),M("plugin"),Y(Re),J(Re)):R.length>0&&(window.location.hash="#/overview")}else if(ie.startsWith("static:")){const Se=ie.slice(7),Re=N.find(ke=>String(ke.id)===String(Se));Re?(Y(null),M("static-page"),ae(Re)):N.length>0&&(window.location.hash="#/overview")}else ie.startsWith("logs/")?(Y(null),ae(null),M("logs")):["todo-list/archived","todo-archived"].includes(ie)?(Y(null),ae(null),M("todo-archived")):ie.startsWith("pr-review")?(Y(null),ae(null),M("pr-review")):ie.startsWith("pr-conflict")?(Y(null),ae(null),M("pr-conflict")):ie.startsWith("branch-sync")?(Y(null),ae(null),M("branch-sync")):ie==="home"||WM.includes(ie)?(Y(null),ae(null),M(ie==="home"?"overview":ie)):window.location.hash="#/overview"};return window.addEventListener("hashchange",ce),window.location.hash?ce():window.location.hash="#/overview",()=>window.removeEventListener("hashchange",ce)},[R,N]),o.useEffect(()=>{const ce=ie=>{var Se;(ie.error||ie.message)&&bu.log({source:"Frontend",message:ie.message||"Uncaught JavaScript Error",details:((Se=ie.error)==null?void 0:Se.stack)||`${ie.filename}:${ie.lineno}:${ie.colno}`}).catch(()=>{})},pe=ie=>{var Se,Re;bu.log({source:"Frontend (Promise)",message:((Se=ie.reason)==null?void 0:Se.message)||String(ie.reason||"Unhandled Promise Rejection"),details:((Re=ie.reason)==null?void 0:Re.stack)||String(ie.reason)}).catch(()=>{})};return window.addEventListener("error",ce),window.addEventListener("unhandledrejection",pe),()=>{window.removeEventListener("error",ce),window.removeEventListener("unhandledrejection",pe)}},[]),o.useLayoutEffect(()=>{var ce;(ce=document.querySelector(".page"))==null||ce.scrollTo({top:0,left:0,behavior:"auto"})},[j,G==null?void 0:G.id,ee==null?void 0:ee.id]),o.useEffect(()=>{const ce=pe=>{(pe.metaKey||pe.ctrlKey)&&pe.shiftKey&&(pe.key==="r"||pe.key==="R"||pe.code==="KeyR")&&(pe.preventDefault(),pe.stopPropagation())};return window.addEventListener("keydown",ce,!0),()=>window.removeEventListener("keydown",ce,!0)},[]),o.useEffect(()=>{if(h||!["overview","launcher","ports"].includes(j))return;const ce=setInterval(()=>{se()},2e3);return()=>clearInterval(ce)},[j,h]);const ve=o.useMemo(()=>{const ce=[...R.map(pe=>({key:`plugin:${pe.id}`,icon:u.jsx("span",{"aria-hidden":"true",children:pe.icon||"✦"}),label:pe.name||pe.id})),...N.map(pe=>({key:`static:${pe.id}`,icon:u.jsx(Qu,{}),label:pe.name}))];return[{type:"group",label:"Run & Observe",children:[{key:"launcher",icon:u.jsx(uo,{}),label:"Launcher"},{key:"ports",icon:u.jsx(eS,{}),label:"Port Diagnostic"}]},{type:"group",label:"Plan & Review",children:[{key:"todo-list",icon:u.jsx(tc,{}),label:"To-Do"},{key:"memos",icon:u.jsx(nl,{}),label:"Memos"},{key:"pr-review",icon:u.jsx(lh,{}),label:"PR Review"},{key:"pr-conflict",icon:u.jsx(Yg,{}),label:"Resolve Conflicts"},{key:"jira-filters",icon:u.jsx(Cse,{}),label:"Jira Workspace"},{key:"presentation-plan",icon:u.jsx(zse,{}),label:"Presentations"},{key:"branch-sync",icon:u.jsx(wg,{}),label:"Branch Sync"},{key:"package-upgrade",icon:u.jsx(NM,{}),label:"Package Upgrade"},{key:"package-versions",icon:u.jsx(ole,{}),label:"Package Versions"}]},{type:"group",label:"Utilities",children:[{key:"clipboard",icon:u.jsx(_o,{}),label:"Clipboard"},{key:"postman",icon:u.jsx(rc,{}),label:"Postman"},{key:"image-compress",icon:u.jsx(bx,{}),label:"Image compression"},{key:"json-to-typescript",icon:u.jsx(ja,{}),label:"JSON to TypeScript"},{key:"bookmark-sync",icon:u.jsx(Kf,{}),label:"Bookmark Sync"},{key:"file-organizer",icon:u.jsx(ca,{}),label:"Folder Organizer"}]},...ce.length>0?[{type:"group",label:"Extensions",children:ce}]:[]]},[R,N]),he=({key:ce})=>{window.location.hash=`#/${ce}`},Ee=G?`plugin:${G.id}`:ee?`static:${ee.id}`:j==="todo-archived"?"todo-list":j,je=y&&!(h&&!x)?u.jsx(pa,{type:x?"warning":"error",showIcon:!0,message:x?"Service status may be out of date":"Unable to load services",description:y,action:u.jsx(Oe,{size:"small",loading:h,onClick:te,children:"Retry"}),className:"launcher-data-notice"}):null;return j==="logs"?u.jsx(Sde,{}):j==="presentation-view"?u.jsx(vfe,{}):u.jsxs(Yl,{className:"workbench",children:[u.jsxs(Nfe,{"aria-label":"DevBuddy navigation",breakpoint:"lg",className:"sidebar",collapsed:k,collapsedWidth:64,collapsible:!0,onBreakpoint:z,onCollapse:z,width:240,children:[u.jsxs("div",{className:"brand-row",children:[u.jsxs("a",{className:"brand",href:"#/overview","aria-current":j==="overview"?"page":void 0,"aria-label":`Go to Overview — DevBuddy version ${tu.version}`,children:[u.jsx("span",{className:`brand-mark ${$?"":"is-offline"}`,"aria-hidden":"true",children:"✦"}),u.jsx("span",{className:"brand-name",children:"DevBuddy"}),u.jsxs("span",{className:"brand-version",children:["v",tu.version]})]}),!k&&u.jsx(yn,{title:D!=null&&D.updateAvailable?`Update available: v${D.latestVersion}`:"View Change Log",children:u.jsx(ga,{dot:!!(D!=null&&D.updateAvailable),color:"#f5b942",offset:[-2,3],children:u.jsx(Oe,{"aria-label":D!=null&&D.updateAvailable?`Update available: version ${D.latestVersion}`:"View Change Log",className:`sidebar-update-button ${D!=null&&D.updateAvailable?"has-update":""}`,icon:u.jsx(aj,{}),loading:_&&!D,onClick:X,type:"text"})})})]}),u.jsx("nav",{className:"sidebar-nav","aria-label":"Main navigation",children:u.jsx(Xl,{theme:e==="light"?"light":"dark",mode:"inline",tabIndex:-1,selectedKeys:[Ee],items:ve,onClick:he})}),u.jsx("div",{className:"sidebar-bottom",children:u.jsx("div",{className:"sidebar-bottom-inner",children:u.jsx("nav",{"aria-label":"Settings navigation",children:u.jsx(Xl,{className:"sidebar-settings-menu",theme:e==="light"?"light":"dark",mode:"inline",tabIndex:-1,selectedKeys:["settings","errors"].includes(j)?[j]:[],items:[{key:"settings",icon:u.jsx(ac,{}),label:"Settings"}],onClick:he})})})})]}),u.jsx(Yl,{children:u.jsx(Ofe,{className:`page ${["static-page","postman"].includes(j)?"is-static-page":""} ${["overview","postman","static-page"].includes(j)?"":"is-workspace-content"} ${j==="presentation-plan"?"is-presentation-plan":""} ${j==="json-to-typescript"?"is-json-to-typescript":""} ${j==="memos"?"is-memos":""}`,children:G?u.jsxs(u.Fragment,{children:[u.jsx(Ms,{type:"secondary",children:"PLUGIN"}),u.jsx(Kj,{level:2,children:G.name}),u.jsx(Wt,{children:u.jsx("div",{dangerouslySetInnerHTML:{__html:le}})})]}):j==="static-page"&&ee?u.jsx("div",{className:"static-page-container",children:u.jsx("iframe",{src:ee.url,title:ee.name,className:"static-page-iframe"})}):j==="image-compress"?u.jsx(Jue,{}):j==="json-to-typescript"?u.jsx(xfe,{}):j==="overview"?u.jsx(efe,{launchers:a,running:s,errorCounts:f,errorLogs:v,plugins:R,staticPages:N,loading:h,error:y,hasLoaded:x,onRetry:te,onNavigate:ce=>{window.location.hash=`#/${ce}`}}):j==="clipboard"?u.jsx(Nue,{}):j==="ports"?u.jsx(Fue,{refreshLaunchers:se}):j==="pr-review"?u.jsx(ede,{}):j==="pr-conflict"?u.jsx(rde,{}):j==="jira-filters"?u.jsx(ude,{}):j==="todo-list"?u.jsx(pde,{}):j==="memos"?u.jsx(jfe,{}):j==="todo-archived"?u.jsx(yde,{}):j==="presentation-plan"?u.jsx(mfe,{}):j==="postman"?u.jsx(Dde,{}):j==="bookmark-sync"?u.jsx(zde,{}):j==="file-organizer"?u.jsx(_de,{}):j==="branch-sync"?u.jsx(Lde,{}):j==="package-upgrade"?u.jsx(Hde,{}):j==="package-versions"?u.jsx(Vde,{}):j==="errors"?u.jsx(wde,{}):j==="settings"?u.jsx(Vue,{theme:e,onThemeChange:t,onStaticPagesChange:()=>As.list().then(I)}):j==="dev-configurations"?u.jsx(Uue,{}):u.jsxs(u.Fragment,{children:[je,(h||x||!y)&&u.jsx(Hue,{launchers:a,running:s,errorCounts:f,refresh:se,loading:h&&!x})]})})}),u.jsx($n,{className:"changelog-modal",footer:[(D==null?void 0:D.updateAvailable)&&!(U!=null&&U.success)&&u.jsx(Oe,{type:"primary",loading:P&&H==="latest",onClick:()=>oe(),children:"Update now"},"update"),u.jsx(Oe,{disabled:P,loading:_,onClick:()=>de(!0),children:"Check again"},"refresh"),u.jsx(Oe,{type:"primary",disabled:P,onClick:Q,children:U!=null&&U.success?"Close & reload":"Close"},"close")],onCancel:Q,closable:!P,maskClosable:!P,open:q,title:u.jsxs("div",{className:"changelog-title",children:[u.jsx("span",{className:`changelog-bulb ${D!=null&&D.updateAvailable?"has-update":""}`,children:u.jsx(aj,{})}),u.jsx("span",{children:"Updates"})]}),width:680,children:_&&!D?u.jsx("div",{className:"changelog-loading",children:u.jsx(wr,{})}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"changelog-version-row",children:[u.jsxs("div",{children:[u.jsx(Ms,{type:"secondary",children:"Installed"}),u.jsxs(Ms,{strong:!0,children:["v",(D==null?void 0:D.currentVersion)||tu.version]})]}),u.jsxs("div",{children:[u.jsx(Ms,{type:"secondary",children:"Latest"}),u.jsxs(Ms,{strong:!0,children:["v",(D==null?void 0:D.latestVersion)||tu.version]})]}),u.jsx(_t,{color:D!=null&&D.updateAvailable?"gold":"green",children:D!=null&&D.updateAvailable?"Update available":"Up to date"})]}),(D==null?void 0:D.sourceUnavailable)&&u.jsx(pa,{className:"changelog-source-alert",message:"Could not reach the configured npm registry. Showing locally available release notes.",showIcon:!0,type:"info"}),U&&u.jsx(pa,{className:"changelog-source-alert",description:U.message,message:U.success?"DevBuddy updated successfully":"DevBuddy update failed",showIcon:!0,type:U.success?"success":"error"}),u.jsx("div",{className:"changelog-release-list",children:(xe=D==null?void 0:D.releases)!=null&&xe.length?D.releases.slice(0,5).map(ce=>u.jsxs("section",{className:"changelog-release",children:[u.jsxs("div",{className:"changelog-release-heading",children:[u.jsxs("div",{className:"changelog-release-title",children:[u.jsxs(_t,{className:"changelog-release-version",children:["v",ce.version]}),u.jsx(Kj,{level:4,children:ce.name})]}),u.jsxs("div",{className:"changelog-release-actions",children:[ce.publishedAt&&u.jsx(Ms,{type:"secondary",children:new Date(ce.publishedAt).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1})}),u.jsx(Oe,{size:"small",type:ce.version===(D==null?void 0:D.latestVersion)?"primary":"default",disabled:P||ce.version===(D==null?void 0:D.currentVersion),loading:P&&H===ce.version,onClick:()=>oe(ce.version),children:ce.version===(D==null?void 0:D.currentVersion)?"Installed":"Install"})]})]}),u.jsx(Ms,{className:"changelog-release-notes",children:ce.notes||"Published to the configured npm registry."})]},`${ce.version}-${ce.publishedAt||""}`)):u.jsx(vn,{description:"No published release notes yet.",image:vn.PRESENTED_IMAGE_SIMPLE})})]})})]})}function Tfe(){const[e,t]=o.useState(()=>document.documentElement.dataset.theme||localStorage.getItem("devbuddy-theme")||"dark");return o.useEffect(()=>{tr.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",Uj[e]||Uj.dark)},[e]),o.useLayoutEffect(()=>{const n=()=>{document.querySelectorAll('[role="tab"], [role="tabpanel"]').forEach(l=>{document.activeElement===l&&l.blur(),l.tabIndex!==-1&&(l.tabIndex=-1)})};n();const r=new MutationObserver(n),a=l=>{var s,c;(c=(s=l.target).matches)!=null&&c.call(s,'[role="tab"], [role="tabpanel"]')&&l.target.blur()};return document.addEventListener("focusin",a,!0),r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),()=>{r.disconnect(),document.removeEventListener("focusin",a,!0)}},[]),u.jsx(Bo,{theme:{token:{fontFamily:Rfe,borderRadius:10,colorBgLayout:e==="light"?"#f7f8fc":"#f4f5fa",colorInfo:e==="light"?"#2e83d2":"#6555e8",colorLink:e==="light"?"#2e83d2":"#5b4cc4",colorLinkActive:e==="light"?"#2474bd":"#5143c2",colorLinkHover:e==="light"?"#4593d8":"#7669ee",colorPrimary:e==="light"?"#2e83d2":"#6555e8",colorPrimaryActive:e==="light"?"#2474bd":"#5143c2",colorPrimaryHover:e==="light"?"#4593d8":"#7669ee",controlOutline:e==="light"?"rgba(46, 131, 210, .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:u.jsx(qr,{children:u.jsx(Mfe,{theme:e,onThemeChange:t})})})}const Pfe=/Macintosh|Mac OS X|iPhone|iPad/i.test(navigator.userAgent);document.documentElement.dataset.platform=Pfe?"mac":"other";const kfe=tP.createRoot(document.getElementById("app"));kfe.render(u.jsx(Tfe,{}));"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)})});
|
package/ui/dist/index.html
CHANGED
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
.app-splash-content::after { animation: none; }
|
|
148
148
|
}
|
|
149
149
|
</style>
|
|
150
|
-
<script type="module" crossorigin src="/assets/index-
|
|
150
|
+
<script type="module" crossorigin src="/assets/index-D7Y6Ks9X.js"></script>
|
|
151
151
|
<link rel="stylesheet" crossorigin href="/assets/index-CZUbxhFl.css">
|
|
152
152
|
</head>
|
|
153
153
|
<body>
|
package/ui/dist/sw.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
const CACHE_NAME = "devbuddy-ui
|
|
3
|
-
const PRECACHE_URLS = ["/index.html","/devbuddy-splash.svg","assets/
|
|
2
|
+
const CACHE_NAME = "devbuddy-ui--D7Y6Ks9X.js|assetsindex-Dty-56mC.js|assetsmozjpeg_dec-muSO2n8T.wasm|assetsmozjpeg_enc-DO-zoExo.wasm|splash-0a5ef7c15eba";
|
|
3
|
+
const PRECACHE_URLS = ["/index.html","/devbuddy-splash.svg","assets/mozjpeg_enc-DO-zoExo.wasm","assets/mozjpeg_dec-muSO2n8T.wasm","assets/index-CZUbxhFl.css","assets/index-D7Y6Ks9X.js","assets/index-Dty-56mC.js"];
|
|
4
4
|
|
|
5
5
|
self.addEventListener('install', (event) => {
|
|
6
6
|
event.waitUntil(
|