buddy-workbench 0.1.20 → 0.1.21
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/bin/devbuddy.js
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { execSync, spawn } from 'node:child_process';
|
|
4
|
+
import { existsSync, mkdirSync, openSync, readFileSync, unlinkSync, writeFileSync } from 'node:fs';
|
|
5
|
+
import { dirname, join } from 'node:path';
|
|
6
|
+
import { fileURLToPath } from 'node:url';
|
|
7
|
+
|
|
8
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
9
|
+
const __dirname = dirname(__filename);
|
|
10
|
+
const root = dirname(__dirname);
|
|
11
|
+
|
|
12
|
+
const dataDir = join(root, 'data');
|
|
13
|
+
const pidFile = join(dataDir, 'devbuddy.pid');
|
|
14
|
+
const logFile = join(dataDir, 'devbuddy.log');
|
|
15
|
+
const serverJs = join(root, 'server.js');
|
|
16
|
+
|
|
17
|
+
function isProcessRunning(pid) {
|
|
18
|
+
try {
|
|
19
|
+
process.kill(pid, 0);
|
|
20
|
+
return true;
|
|
21
|
+
} catch (err) {
|
|
22
|
+
return err.code === 'EPERM';
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function getRunningPid() {
|
|
27
|
+
if (!existsSync(pidFile)) return null;
|
|
28
|
+
try {
|
|
29
|
+
const content = readFileSync(pidFile, 'utf8').trim();
|
|
30
|
+
const pid = parseInt(content, 10);
|
|
31
|
+
if (!isNaN(pid) && isProcessRunning(pid)) {
|
|
32
|
+
return pid;
|
|
33
|
+
}
|
|
34
|
+
// Stale PID file
|
|
35
|
+
try { unlinkSync(pidFile); } catch {}
|
|
36
|
+
return null;
|
|
37
|
+
} catch {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function sendSignal(pid, signal) {
|
|
43
|
+
try {
|
|
44
|
+
process.kill(pid, signal);
|
|
45
|
+
return true;
|
|
46
|
+
} catch (err1) {
|
|
47
|
+
try {
|
|
48
|
+
process.kill(-pid, signal);
|
|
49
|
+
return true;
|
|
50
|
+
} catch (err2) {
|
|
51
|
+
try {
|
|
52
|
+
execSync(`kill -${signal === 'SIGTERM' ? '15' : '9'} ${pid}`);
|
|
53
|
+
return true;
|
|
54
|
+
} catch {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
async function start() {
|
|
62
|
+
const existingPid = getRunningPid();
|
|
63
|
+
if (existingPid) {
|
|
64
|
+
console.log(`DevBuddy is already running (PID ${existingPid}).`);
|
|
65
|
+
console.log(`URL: http://localhost:${process.env.PORT || 3100}`);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
mkdirSync(dataDir, { recursive: true });
|
|
70
|
+
|
|
71
|
+
const out = openSync(logFile, 'a');
|
|
72
|
+
const err = openSync(logFile, 'a');
|
|
73
|
+
|
|
74
|
+
const child = spawn(process.execPath, [serverJs], {
|
|
75
|
+
detached: true,
|
|
76
|
+
stdio: ['ignore', out, err],
|
|
77
|
+
cwd: root,
|
|
78
|
+
env: { ...process.env }
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
if (!child.pid) {
|
|
82
|
+
console.error('Error: Failed to spawn DevBuddy process.');
|
|
83
|
+
process.exit(1);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
writeFileSync(pidFile, String(child.pid));
|
|
87
|
+
child.unref();
|
|
88
|
+
|
|
89
|
+
// Wait briefly to confirm it didn't immediately crash
|
|
90
|
+
await new Promise((resolve) => setTimeout(resolve, 800));
|
|
91
|
+
|
|
92
|
+
if (isProcessRunning(child.pid)) {
|
|
93
|
+
const port = process.env.PORT || 3100;
|
|
94
|
+
console.log(`DevBuddy started successfully (PID ${child.pid}).`);
|
|
95
|
+
console.log(`URL: http://localhost:${port}`);
|
|
96
|
+
console.log(`Logs: ${logFile}`);
|
|
97
|
+
} else {
|
|
98
|
+
console.error(`DevBuddy failed to start. Check logs at: ${logFile}`);
|
|
99
|
+
try { unlinkSync(pidFile); } catch {}
|
|
100
|
+
process.exit(1);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
async function stop() {
|
|
105
|
+
const pid = getRunningPid();
|
|
106
|
+
if (!pid) {
|
|
107
|
+
console.log('DevBuddy is not running.');
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
console.log(`Stopping DevBuddy (PID ${pid})…`);
|
|
112
|
+
sendSignal(pid, 'SIGTERM');
|
|
113
|
+
|
|
114
|
+
// Poll for process termination up to 5 seconds
|
|
115
|
+
const maxWait = 5000;
|
|
116
|
+
const interval = 100;
|
|
117
|
+
let elapsed = 0;
|
|
118
|
+
|
|
119
|
+
while (elapsed < maxWait) {
|
|
120
|
+
if (!isProcessRunning(pid)) {
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
await new Promise((r) => setTimeout(r, interval));
|
|
124
|
+
elapsed += interval;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (isProcessRunning(pid)) {
|
|
128
|
+
console.log(`Process ${pid} did not exit in time. Force killing…`);
|
|
129
|
+
sendSignal(pid, 'SIGKILL');
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
try { unlinkSync(pidFile); } catch {}
|
|
133
|
+
console.log('DevBuddy stopped.');
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
function status() {
|
|
137
|
+
const pid = getRunningPid();
|
|
138
|
+
if (pid) {
|
|
139
|
+
const port = process.env.PORT || 3100;
|
|
140
|
+
console.log(`DevBuddy is running (PID ${pid}).`);
|
|
141
|
+
console.log(`URL: http://localhost:${port}`);
|
|
142
|
+
} else {
|
|
143
|
+
console.log('DevBuddy is stopped.');
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
function help() {
|
|
148
|
+
console.log(`
|
|
149
|
+
DevBuddy CLI
|
|
150
|
+
|
|
151
|
+
Usage:
|
|
152
|
+
devbuddy <command>
|
|
153
|
+
|
|
154
|
+
Commands:
|
|
155
|
+
start Start DevBuddy in the background
|
|
156
|
+
stop Stop the running DevBuddy instance
|
|
157
|
+
status Check the status of DevBuddy
|
|
158
|
+
restart Restart DevBuddy
|
|
159
|
+
help Display this help message
|
|
160
|
+
`);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
async function main() {
|
|
164
|
+
const command = process.argv[2] || 'help';
|
|
165
|
+
|
|
166
|
+
switch (command.toLowerCase()) {
|
|
167
|
+
case 'start':
|
|
168
|
+
await start();
|
|
169
|
+
break;
|
|
170
|
+
case 'stop':
|
|
171
|
+
await stop();
|
|
172
|
+
break;
|
|
173
|
+
case 'status':
|
|
174
|
+
status();
|
|
175
|
+
break;
|
|
176
|
+
case 'restart':
|
|
177
|
+
await stop();
|
|
178
|
+
await start();
|
|
179
|
+
break;
|
|
180
|
+
case 'help':
|
|
181
|
+
case '-h':
|
|
182
|
+
case '--help':
|
|
183
|
+
help();
|
|
184
|
+
break;
|
|
185
|
+
default:
|
|
186
|
+
console.log(`Unknown command: ${command}`);
|
|
187
|
+
help();
|
|
188
|
+
process.exit(1);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
main().catch((err) => {
|
|
193
|
+
console.error('Unexpected error:', err);
|
|
194
|
+
process.exit(1);
|
|
195
|
+
});
|
package/package.json
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "buddy-workbench",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"
|
|
7
|
+
"devbuddy": "./bin/devbuddy.js",
|
|
8
|
+
"buddy-workbench": "./bin/devbuddy.js"
|
|
8
9
|
},
|
|
9
10
|
"files": [
|
|
10
11
|
"server.js",
|
|
11
12
|
"server/",
|
|
12
13
|
"ui/dist/",
|
|
13
14
|
"plugins/",
|
|
14
|
-
"pages/"
|
|
15
|
+
"pages/",
|
|
16
|
+
"bin/"
|
|
15
17
|
],
|
|
16
18
|
"scripts": {
|
|
17
19
|
"start": "exec node server.js",
|
package/server.js
CHANGED
|
File without changes
|
|
@@ -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 ${le(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${u}-thumbnail, ${u}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${u}-name`]:{display:"none",textAlign:"center"},[`${u}-file + ${u}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${le(l(e.paddingXS).mul(2).equal())})`},[`${u}-uploading`]:{[`&${u}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${u}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${le(l(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Qre=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Zre=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},mn(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"}})}},Jre=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),eae=un("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,pictureCardSize:a,calc:l}=e,c=rn(e,{uploadThumbnailSize:l(t).mul(2).equal(),uploadProgressOffset:l(l(n).div(2)).add(r).equal(),uploadPicCardSize:a});return[Zre(c),Ure(c),Xre(c),Yre(c),qre(c),Gre(c),Qre(c),uf(c)]},Jre);var tae={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"},nae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:tae}))},rae=i.forwardRef(nae),aae={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"},oae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:aae}))},iae=i.forwardRef(oae),lae={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"},sae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:lae}))},cae=i.forwardRef(sae);function av(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 ov(e,t){const n=Me(t),r=n.findIndex(({uid:a})=>a===e.uid);return r===-1?n.push(e):n[r]=e,n}function $b(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function uae(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 dae=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},qN=e=>e.indexOf("image/")===0,fae=e=>{if(e.type&&!e.thumbUrl)return qN(e.type);const t=e.thumbUrl||e.url||"",n=dae(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)},nl=200;function mae(e){return new Promise(t=>{if(!e.type||!qN(e.type)){t("");return}const n=document.createElement("canvas");n.width=nl,n.height=nl,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${nl}px; height: ${nl}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:c}=a;let u=nl,d=nl,f=0,v=0;l>c?(d=c*(nl/l),v=-(d-u)/2):(u=l*(nl/c),f=-(u-d)/2),r.drawImage(a,f,v,u,d);const g=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(g)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const l=new FileReader;l.onload=()=>{l.result&&typeof l.result=="string"&&(a.src=l.result)},l.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const l=new FileReader;l.onload=()=>{l.result&&t(l.result)},l.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var vae={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"},gae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:vae}))},KC=i.forwardRef(gae);const pae=i.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:a,file:l,items:c,progress:u,iconRender:d,actionIconRender:f,itemRender:v,isImgUrl:g,showPreviewIcon:p,showRemoveIcon:y,showDownloadIcon:x,previewIcon:S,removeIcon:b,downloadIcon:$,extra:w,onPreview:E,onDownload:R,onClose:j},I)=>{var O,M;const{status:N}=l,[P,B]=i.useState(N);i.useEffect(()=>{N!=="removed"&&B(N)},[N]);const[L,k]=i.useState(!1);i.useEffect(()=>{const Y=setTimeout(()=>{k(!0)},300);return()=>{clearTimeout(Y)}},[]);const _=d(l);let H=i.createElement("div",{className:`${e}-icon`},_);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(P==="uploading"||!l.thumbUrl&&!l.url){const Y=de(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:P!=="uploading"});H=i.createElement("div",{className:Y},_)}else{const Y=g!=null&&g(l)?i.createElement("img",{src:l.thumbUrl||l.url,alt:l.name,className:`${e}-list-item-image`,crossOrigin:l.crossOrigin}):_,ee=de(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:g&&!g(l)});H=i.createElement("a",{className:ee,onClick:ie=>E(l,ie),href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Y)}const z=de(`${e}-list-item`,`${e}-list-item-${P}`),D=typeof l.linkProps=="string"?JSON.parse(l.linkProps):l.linkProps,F=(typeof y=="function"?y(l):y)?f((typeof b=="function"?b(l):b)||i.createElement($r,null),()=>j(l),e,r.removeFile,!0):null,W=(typeof x=="function"?x(l):x)&&P==="done"?f((typeof $=="function"?$(l):$)||i.createElement(KC,null),()=>R(l),e,r.downloadFile):null,U=a!=="picture-card"&&a!=="picture-circle"&&i.createElement("span",{key:"download-delete",className:de(`${e}-list-item-actions`,{picture:a==="picture"})},W,F),V=typeof w=="function"?w(l):w,G=V&&i.createElement("span",{className:`${e}-list-item-extra`},V),q=de(`${e}-list-item-name`),K=l.url?i.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:q,title:l.name},D,{href:l.url,onClick:Y=>E(l,Y)}),l.name,G):i.createElement("span",{key:"view",className:q,onClick:Y=>E(l,Y),title:l.name},l.name,G),Z=(typeof p=="function"?p(l):p)&&(l.url||l.thumbUrl)?i.createElement("a",{href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Y=>E(l,Y),title:r.previewFile},typeof S=="function"?S(l):S||i.createElement(IC,null)):null,Q=(a==="picture-card"||a==="picture-circle")&&P!=="uploading"&&i.createElement("span",{className:`${e}-list-item-actions`},Z,P==="done"&&W,F),{getPrefixCls:te}=i.useContext(Rt),X=te(),oe=i.createElement("div",{className:z},H,K,U,Q,L&&i.createElement(ta,{motionName:`${X}-fade`,visible:P==="uploading",motionDeadline:2e3},({className:Y})=>{const ee="percent"in l?i.createElement(mN,Object.assign({type:"line",percent:l.percent,"aria-label":l["aria-label"],"aria-labelledby":l["aria-labelledby"]},u)):null;return i.createElement("div",{className:de(`${e}-list-item-progress`,Y)},ee)})),ae=l.response&&typeof l.response=="string"?l.response:((O=l.error)===null||O===void 0?void 0:O.statusText)||((M=l.error)===null||M===void 0?void 0:M.message)||r.uploadError,re=P==="error"?i.createElement(_n,{title:ae,getPopupContainer:Y=>Y.parentNode},oe):oe;return i.createElement("div",{className:de(`${e}-list-item-container`,t),style:n,ref:I},v?v(re,l,c,{download:R.bind(null,l),preview:E.bind(null,l),remove:j.bind(null,l)}):re)}),hae=(e,t)=>{const{listType:n="text",previewFile:r=mae,onPreview:a,onDownload:l,onRemove:c,locale:u,iconRender:d,isImageUrl:f=fae,prefixCls:v,items:g=[],showPreviewIcon:p=!0,showRemoveIcon:y=!0,showDownloadIcon:x=!1,removeIcon:S,previewIcon:b,downloadIcon:$,extra:w,progress:E={size:[-1,2],showInfo:!1},appendAction:R,appendActionVisible:j=!0,itemRender:I,disabled:O}=e,[,M]=j1(),[N,P]=i.useState(!1),B=["picture-card","picture-circle"].includes(n);i.useEffect(()=>{n.startsWith("picture")&&(g||[]).forEach(q=>{!(q.originFileObj instanceof File||q.originFileObj instanceof Blob)||q.thumbUrl!==void 0||(q.thumbUrl="",r==null||r(q.originFileObj).then(K=>{q.thumbUrl=K||"",M()}))})},[n,g,r]),i.useEffect(()=>{P(!0)},[]);const L=(q,K)=>{if(a)return K==null||K.preventDefault(),a(q)},k=q=>{typeof l=="function"?l(q):q.url&&window.open(q.url)},_=q=>{c==null||c(q)},H=q=>{if(d)return d(q,n);const K=q.status==="uploading";if(n.startsWith("picture")){const Z=n==="picture"?i.createElement(To,null):u.uploading,Q=f!=null&&f(q)?i.createElement(cae,null):i.createElement(rae,null);return K?Z:Q}return K?i.createElement(To,null):i.createElement(iae,null)},z=(q,K,Z,Q,te)=>{const X={type:"text",size:"small",title:Q,onClick:oe=>{var ae,re;K(),i.isValidElement(q)&&((re=(ae=q.props).onClick)===null||re===void 0||re.call(ae,oe))},className:`${Z}-list-item-action`,disabled:te?O:!1};return i.isValidElement(q)?i.createElement(Ue,Object.assign({},X,{icon:Or(q,Object.assign(Object.assign({},q.props),{onClick:()=>{}}))})):i.createElement(Ue,Object.assign({},X),i.createElement("span",null,q))};i.useImperativeHandle(t,()=>({handlePreview:L,handleDownload:k}));const{getPrefixCls:D}=i.useContext(Rt),F=D("upload",v),W=D(),U=de(`${F}-list`,`${F}-list-${n}`),V=i.useMemo(()=>En(Lc(W),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[W]),G=Object.assign(Object.assign({},B?{}:V),{motionDeadline:2e3,motionName:`${F}-${B?"animate-inline":"animate"}`,keys:Me(g.map(q=>({key:q.uid,file:q}))),motionAppear:N});return i.createElement("div",{className:U},i.createElement(E1,Object.assign({},G,{component:!1}),({key:q,file:K,className:Z,style:Q})=>i.createElement(pae,{key:q,locale:u,prefixCls:F,className:Z,style:Q,file:K,items:g,progress:E,listType:n,isImgUrl:f,showPreviewIcon:p,showRemoveIcon:y,showDownloadIcon:x,removeIcon:S,previewIcon:b,downloadIcon:$,extra:w,iconRender:H,actionIconRender:z,itemRender:I,onPreview:L,onDownload:k,onClose:_})),R&&i.createElement(ta,Object.assign({},G,{visible:j,forceRender:!0}),({className:q,style:K})=>Or(R,Z=>({className:de(Z.className,q),style:Object.assign(Object.assign(Object.assign({},K),{pointerEvents:q?"none":void 0}),Z.style)}))))},bae=i.forwardRef(hae);var yae=function(e,t,n,r){function a(l){return l instanceof n?l:new n(function(c){c(l)})}return new(n||(n=Promise))(function(l,c){function u(v){try{f(r.next(v))}catch(g){c(g)}}function d(v){try{f(r.throw(v))}catch(g){c(g)}}function f(v){v.done?l(v.value):a(v.value).then(u,d)}f((r=r.apply(e,[])).next())})};const $d=`__LIST_IGNORE_${Date.now()}__`,Cae=(e,t)=>{const n=hr("upload"),{fileList:r,defaultFileList:a,onRemove:l,showUploadList:c=!0,listType:u="text",onPreview:d,onDownload:f,onChange:v,onDrop:g,previewFile:p,disabled:y,locale:x,iconRender:S,isImageUrl:b,progress:$,prefixCls:w,className:E,type:R="select",children:j,style:I,itemRender:O,maxCount:M,data:N={},multiple:P=!1,hasControlInside:B=!0,action:L="",accept:k="",supportServerRender:_=!0,rootClassName:H}=e,z=i.useContext(Kr),D=y??z,F=e.customRequest||n.customRequest,[W,U]=Cn(a||[],{value:r,postState:we=>we??[]}),[V,G]=i.useState("drop"),q=i.useRef(null),K=i.useRef(null);i.useMemo(()=>{const we=Date.now();(r||[]).forEach((Oe,Te)=>{!Oe.uid&&!Object.isFrozen(Oe)&&(Oe.uid=`__AUTO__${we}_${Te}__`)})},[r]);const Z=(we,Oe,Te)=>{let Le=Me(Oe),tt=!1;M===1?Le=Le.slice(-1):M&&(tt=Le.length>M,Le=Le.slice(0,M)),vo.flushSync(()=>{U(Le)});const Ct={file:we,fileList:Le};Te&&(Ct.event=Te),(!tt||we.status==="removed"||Le.some(We=>We.uid===we.uid))&&vo.flushSync(()=>{v==null||v(Ct)})},Q=(we,Oe)=>yae(void 0,void 0,void 0,function*(){const{beforeUpload:Te,transformFile:Le}=e;let tt=we;if(Te){const Ct=yield Te(we,Oe);if(Ct===!1)return!1;if(delete we[$d],Ct===$d)return Object.defineProperty(we,$d,{value:!0,configurable:!0}),!1;typeof Ct=="object"&&Ct&&(tt=Ct)}return Le&&(tt=yield Le(tt)),tt}),te=we=>{const Oe=we.filter(tt=>!tt.file[$d]);if(!Oe.length)return;const Te=Oe.map(tt=>av(tt.file));let Le=Me(W);Te.forEach(tt=>{Le=ov(tt,Le)}),Te.forEach((tt,Ct)=>{let We=tt;if(Oe[Ct].parsedFile)tt.status="uploading";else{const{originFileObj:nt}=tt;let dt;try{dt=new File([nt],nt.name,{type:nt.type})}catch{dt=new Blob([nt],{type:nt.type}),dt.name=nt.name,dt.lastModifiedDate=new Date,dt.lastModified=new Date().getTime()}dt.uid=tt.uid,We=dt}Z(We,Le)})},X=(we,Oe,Te)=>{try{typeof we=="string"&&(we=JSON.parse(we))}catch{}if(!$b(Oe,W))return;const Le=av(Oe);Le.status="done",Le.percent=100,Le.response=we,Le.xhr=Te;const tt=ov(Le,W);Z(Le,tt)},oe=(we,Oe)=>{if(!$b(Oe,W))return;const Te=av(Oe);Te.status="uploading",Te.percent=we.percent;const Le=ov(Te,W);Z(Te,Le,we)},ae=(we,Oe,Te)=>{if(!$b(Te,W))return;const Le=av(Te);Le.error=we,Le.response=Oe,Le.status="error";const tt=ov(Le,W);Z(Le,tt)},re=we=>{let Oe;Promise.resolve(typeof l=="function"?l(we):l).then(Te=>{var Le;if(Te===!1)return;const tt=uae(we,W);tt&&(Oe=Object.assign(Object.assign({},we),{status:"removed"}),W==null||W.forEach(Ct=>{const We=Oe.uid!==void 0?"uid":"name";Ct[We]===Oe[We]&&!Object.isFrozen(Ct)&&(Ct.status="removed")}),(Le=q.current)===null||Le===void 0||Le.abort(Oe),Z(Oe,tt))})},Y=we=>{G(we.type),we.type==="drop"&&(g==null||g(we))};i.useImperativeHandle(t,()=>({onBatchStart:te,onSuccess:X,onProgress:oe,onError:ae,fileList:W,upload:q.current,nativeElement:K.current}));const{getPrefixCls:ee,direction:ie,upload:ue}=i.useContext(Rt),se=ee("upload",w),pe=Object.assign(Object.assign({onBatchStart:te,onError:ae,onProgress:oe,onSuccess:X},e),{customRequest:F,data:N,multiple:P,action:L,accept:k,supportServerRender:_,prefixCls:se,disabled:D,beforeUpload:Q,onChange:void 0,hasControlInside:B});delete pe.className,delete pe.style,(!j||D)&&delete pe.id;const fe=`${se}-wrapper`,[he,Se,be]=eae(se,fe),[$e]=Aa("Upload",po.Upload),{showRemoveIcon:xe,showPreviewIcon:ye,showDownloadIcon:Ne,removeIcon:_e,previewIcon:Qe,downloadIcon:Ke,extra:Fe}=typeof c=="boolean"?{}:c,Xe=typeof xe>"u"?!D:xe,Pe=(we,Oe)=>c?i.createElement(bae,{prefixCls:se,listType:u,items:W,previewFile:p,onPreview:d,onDownload:f,onRemove:re,showRemoveIcon:Xe,showPreviewIcon:ye,showDownloadIcon:Ne,removeIcon:_e,previewIcon:Qe,downloadIcon:Ke,iconRender:S,extra:Fe,locale:Object.assign(Object.assign({},$e),x),isImageUrl:b,progress:$,appendAction:we,appendActionVisible:Oe,itemRender:O,disabled:D}):we,je=de(fe,E,H,Se,be,ue==null?void 0:ue.className,{[`${se}-rtl`]:ie==="rtl",[`${se}-picture-card-wrapper`]:u==="picture-card",[`${se}-picture-circle-wrapper`]:u==="picture-circle"}),Ae=Object.assign(Object.assign({},ue==null?void 0:ue.style),I);if(R==="drag"){const we=de(Se,se,`${se}-drag`,{[`${se}-drag-uploading`]:W.some(Oe=>Oe.status==="uploading"),[`${se}-drag-hover`]:V==="dragover",[`${se}-disabled`]:D,[`${se}-rtl`]:ie==="rtl"});return he(i.createElement("span",{className:je,ref:K},i.createElement("div",{className:we,style:Ae,onDrop:Y,onDragOver:Y,onDragLeave:Y},i.createElement(o1,Object.assign({},pe,{ref:q,className:`${se}-btn`}),i.createElement("div",{className:`${se}-drag-container`},j))),Pe()))}const Re=de(se,`${se}-select`,{[`${se}-disabled`]:D,[`${se}-hidden`]:!j}),ze=i.createElement("div",{className:Re,style:Ae},i.createElement(o1,Object.assign({},pe,{ref:q})));return he(u==="picture-card"||u==="picture-circle"?i.createElement("span",{className:je,ref:K},Pe(ze,!!j)):i.createElement("span",{className:je,ref:K},ze,Pe()))},GN=i.forwardRef(Cae);var xae=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 Sae=i.forwardRef((e,t)=>{const{style:n,height:r,hasControlInside:a=!1,children:l}=e,c=xae(e,["style","height","hasControlInside","children"]),u=Object.assign(Object.assign({},n),{height:r});return i.createElement(GN,Object.assign({ref:t,hasControlInside:a},c,{style:u,type:"drag"}),l)}),sp=GN;sp.Dragger=Sae;sp.LIST_IGNORE=$d;var $ae={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"},wae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:$ae}))},XN=i.forwardRef(wae),Eae={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"},Oae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Eae}))},jae=i.forwardRef(Oae),Rae={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"},Iae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Rae}))},i1=i.forwardRef(Iae),Nae={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"},Mae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Nae}))},YN=i.forwardRef(Mae),Tae={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"},Pae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Tae}))},l1=i.forwardRef(Pae),zae={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"},Dae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:zae}))},ef=i.forwardRef(Dae),_ae={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"},Aae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:_ae}))},Oi=i.forwardRef(Aae),Bae={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"},kae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Bae}))},UC=i.forwardRef(kae),Lae={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"},Hae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Lae}))},Fae=i.forwardRef(Hae),Vae={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"},Wae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Vae}))},Kae=i.forwardRef(Wae),Uae={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"},qae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Uae}))},Gae=i.forwardRef(qae),Xae={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"},Yae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Xae}))},XO=i.forwardRef(Yae),Qae={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"},Zae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Qae}))},ji=i.forwardRef(Zae),Jae={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"},eoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Jae}))},YO=i.forwardRef(eoe),toe={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"},noe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:toe}))},roe=i.forwardRef(noe),aoe={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"},ooe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:aoe}))},s1=i.forwardRef(ooe),ioe={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"},loe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:ioe}))},soe=i.forwardRef(loe),coe={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"},uoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:coe}))},doe=i.forwardRef(uoe),foe={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"},moe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:foe}))},voe=i.forwardRef(moe),goe={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"},poe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:goe}))},ag=i.forwardRef(poe),hoe={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"},boe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:hoe}))},qC=i.forwardRef(boe),yoe={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"},Coe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:yoe}))},QN=i.forwardRef(Coe),xoe={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"},Soe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:xoe}))},QO=i.forwardRef(Soe),$oe={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"},woe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:$oe}))},Eoe=i.forwardRef(woe),Ooe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"}}]},name:"fire",theme:"outlined"},joe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Ooe}))},tf=i.forwardRef(joe),Roe={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"},Ioe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Roe}))},c1=i.forwardRef(Ioe),Noe={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"},Moe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Noe}))},Toe=i.forwardRef(Moe),Poe={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"},zoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Poe}))},Doe=i.forwardRef(zoe),_oe={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"},Aoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:_oe}))},jf=i.forwardRef(Aoe),Boe={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"},koe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Boe}))},Loe=i.forwardRef(koe),Hoe={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"},Foe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Hoe}))},Voe=i.forwardRef(Foe),Woe={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"},Koe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Woe}))},nf=i.forwardRef(Koe),Uoe={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"},qoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Uoe}))},Goe=i.forwardRef(qoe),Xoe={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"},Yoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Xoe}))},rf=i.forwardRef(Yoe),Qoe={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"},Zoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Qoe}))},xs=i.forwardRef(Zoe),Joe={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"},eie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Joe}))},tie=i.forwardRef(eie),nie={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"},rie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:nie}))},Td=i.forwardRef(rie),aie={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"},oie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:aie}))},iie=i.forwardRef(oie),lie={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"},sie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:lie}))},wb=i.forwardRef(sie),cie={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"},uie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:cie}))},ZO=i.forwardRef(uie),die={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"},fie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:die}))},mie=i.forwardRef(fie),vie={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"},gie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:vie}))},u1=i.forwardRef(gie),pie={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"},hie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:pie}))},af=i.forwardRef(hie),bie={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"},yie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:bie}))},wl=i.forwardRef(yie),Cie={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"},xie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Cie}))},Sie=i.forwardRef(xie),$ie={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"},wie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:$ie}))},Eie=i.forwardRef(wie),Oie={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"},jie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Oie}))},JO=i.forwardRef(jie),Rie={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"},Iie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Rie}))},GC=i.forwardRef(Iie),Nie={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"},Mie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Nie}))},ZN=i.forwardRef(Mie),Tie={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"},Pie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Tie}))},og=i.forwardRef(Pie),zie={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"},Die=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:zie}))},ig=i.forwardRef(Die),_ie={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"},Aie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:_ie}))},Bie=i.forwardRef(Aie),kie={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"},Lie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:kie}))},JN=i.forwardRef(Lie),Hie={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"},Fie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Hie}))},Vie=i.forwardRef(Fie),Wie={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"},Kie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Wie}))},Xc=i.forwardRef(Kie);const Uie="0.1.20",qie={version:Uie};async function $t(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 Sr={list:()=>$t("/api/launchers"),running:()=>$t("/api/launchers/running"),create:e=>$t("/api/launchers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>$t(`/api/launchers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>$t(`/api/launchers/${e}`,{method:"DELETE"}),start:e=>$t(`/api/launchers/${e}/start`,{method:"POST"}),run:(e,t)=>$t(`/api/launchers/${e}/scripts/${t}/run`,{method:"POST"}),runInstall:e=>$t(`/api/launchers/${e}/install/run`,{method:"POST"}),stop:async(e,t)=>{try{return await $t(`/api/launchers/${e}/stop`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scriptId:t})})}catch{return $t(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/stop`,{method:"POST"})}},logs:(e,t)=>$t(`/api/launchers/${e}/scripts/${t}/logs`),errorLogs:(e,t)=>$t(`/api/launchers/${e}/scripts/${t}/logs/error`),clearLogs:(e,t)=>$t(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"}),packageScripts:e=>$t(`/api/launchers/${e}/package-scripts`),runPackageScript:(e,t)=>$t(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/run`,{method:"POST"}),packageScriptLogs:(e,t)=>$t(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`),packageScriptErrorLogs:(e,t)=>$t(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs/error`),clearPackageScriptLogs:(e,t)=>$t(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"})},Gie={list:()=>$t("/api/plugins")},rl={list:e=>$t(`/api/clipboard${e?`?date=${encodeURIComponent(e)}`:""}`),tagged:()=>$t("/api/clipboard/tagged"),remove:(e,t)=>$t(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{method:"DELETE"}),uploadImage:e=>$t("/api/clipboard/image",{method:"POST",headers:{"Content-Type":e.type||"image/png"},body:e}),updateTags:(e,t,n)=>$t(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/tags`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tags:n})}),copied:(e,t)=>$t(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/copied`,{method:"POST"})},bi={list:()=>$t("/api/group-tasks"),catalog:()=>$t("/api/group-tasks/catalog"),create:e=>$t("/api/group-tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>$t(`/api/group-tasks/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>$t(`/api/group-tasks/${e}`,{method:"DELETE"}),start:e=>$t(`/api/group-tasks/${e}/start`,{method:"POST"}),stop:e=>$t(`/api/group-tasks/${e}/stop`,{method:"POST"})},Eb={list:()=>$t("/api/port-diagnostics"),get:e=>$t(`/api/port-diagnostics/${encodeURIComponent(e)}`),kill:(e,t)=>$t("/api/port-diagnostics/kill",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({port:e,pid:t})})},eM={open:e=>$t("/api/settings/open-url",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})}),openPath:(e,t="")=>$t("/api/settings/open-editor",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,location:t})})},Vr={status:()=>$t("/api/settings"),selectDirectory:()=>$t("/api/settings/select-directory",{method:"POST"}),saveDomain:e=>$t("/api/settings/domain",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:e})}),saveJiraIssuePrefix:e=>$t("/api/settings/jira-issue-prefix",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({jiraIssuePrefix:e})}),saveDefaultEditor:e=>$t("/api/settings/default-editor",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultEditor:e})}),saveDefaultBrowser:e=>$t("/api/settings/default-browser",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultBrowser:e})}),saveAccessToken:(e,t)=>$t(`/api/settings/${encodeURIComponent(e)}-access-token`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t})}),saveClipboardEnabled:e=>$t("/api/settings/clipboard-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardImageEnabled:e=>$t("/api/settings/clipboard-image-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardDeduplicateMinutes:e=>$t("/api/settings/clipboard-deduplicate-minutes",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({minutes:e})})},iv={check:e=>$t("/api/pr-review/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prLink:e})}),myPrs:()=>$t("/api/pr-review/my-prs"),reviewPrs:()=>$t("/api/pr-review/review-prs"),comment:e=>$t("/api/pr-review/comment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},xc={list:()=>$t("/api/jira-filters"),create:e=>$t("/api/jira-filters",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>$t(`/api/jira-filters/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>$t(`/api/jira-filters/${e}`,{method:"DELETE"}),issues:e=>$t(`/api/jira-filters/${e}/issues`),cloneIssue:e=>$t("/api/jira-filters/issues/clone",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},Ca={list:()=>$t("/api/todos"),create:e=>$t("/api/todos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>$t(`/api/todos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>$t(`/api/todos/${e}`,{method:"DELETE"}),archive:e=>$t(`/api/todos/${e}/archive`,{method:"POST"}),unarchive:e=>$t(`/api/todos/${e}/unarchive`,{method:"POST"}),batch:(e,t)=>$t("/api/todos/batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,ids:t})})},Rc={list:()=>$t("/api/static-pages"),create:e=>$t("/api/static-pages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>$t(`/api/static-pages/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>$t(`/api/static-pages/${e}`,{method:"DELETE"})},Pd={list:()=>$t("/api/errors"),log:e=>$t("/api/errors",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),clear:()=>$t("/api/errors",{method:"DELETE"}),remove:e=>$t(`/api/errors/${e}`,{method:"DELETE"})},al={getData:()=>$t("/api/postman"),importCollection:e=>$t("/api/postman/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collectionJson:e})}),createCollection:e=>$t("/api/postman/collections",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),updateCollection:(e,t)=>$t(`/api/postman/collections/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),deleteCollection:e=>$t(`/api/postman/collections/${e}`,{method:"DELETE"}),saveEnvironments:e=>$t("/api/postman/environments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),sendRequest:e=>$t("/api/postman/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},Ob={status:()=>$t("/api/bookmark-sync/status"),preview:e=>$t(`/api/bookmark-sync/preview?mode=${encodeURIComponent(e)}`),sync:e=>$t("/api/bookmark-sync/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:e})})},dd={scan:e=>$t("/api/file-organizer/scan",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),execute:e=>$t("/api/file-organizer/execute",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),getHistory:()=>$t("/api/file-organizer/history"),undo:e=>$t("/api/file-organizer/undo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:e})}),browse:e=>$t("/api/file-organizer/browse",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})},ol={listApps:()=>$t("/api/branch-sync/apps"),createApp:e=>$t("/api/branch-sync/apps",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),updateApp:(e,t)=>$t(`/api/branch-sync/apps/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),deleteApp:e=>$t(`/api/branch-sync/apps/${e}`,{method:"DELETE"}),check:e=>$t("/api/branch-sync/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({app:e})}),createPr:e=>$t("/api/branch-sync/create-pr",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),createBranch:e=>$t("/api/branch-sync/create-branch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),getBranches:e=>$t(`/api/branch-sync/branches?repo=${encodeURIComponent(e)}`)},Xie="modulepreload",Yie=function(e){return"/"+e},e3={},tM=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let c=function(f){return Promise.all(f.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));a=c(n.map(f=>{if(f=Yie(f),f in e3)return;e3[f]=!0;const v=f.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${g}`))return;const p=document.createElement("link");if(p.rel=v?"stylesheet":Xie,v||(p.as="script"),p.crossOrigin="",p.href=f,d&&p.setAttribute("nonce",d),document.head.appendChild(p),v)return new Promise((y,x)=>{p.addEventListener("load",y),p.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${f}`)))})}))}function l(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return a.then(c=>{for(const u of c||[])u.status==="rejected"&&l(u.reason);return t().catch(l)})};async function nM(e,t,n){const r=URL.createObjectURL(e);try{const a=await new Promise((f,v)=>{const g=new Image;g.onload=()=>f(g),g.onerror=()=>v(new Error("Unable to read this image. Please choose a valid image file.")),g.src=r}),l=document.createElement("canvas"),c=Math.max(a.naturalWidth,a.naturalHeight);let u=1;t&&(u=t/c),n!=null&&n>0&&n<=100&&(u=u*(n/100)),l.width=Math.max(1,Math.round(a.naturalWidth*u)),l.height=Math.max(1,Math.round(a.naturalHeight*u));const d=l.getContext("2d",{willReadFrequently:!0});return d.drawImage(a,0,0,l.width,l.height),{imageData:d.getImageData(0,0,l.width,l.height),width:l.width,height:l.height}}finally{URL.revokeObjectURL(r)}}async function Qie(e,t={}){const{quality:n=75,progressive:r=!0,optimizeCoding:a=!0,autoSubsample:l=!0}=t,[{encode:c},{imageData:u}]=await Promise.all([tM(()=>import("./index-Dty-56mC.js"),[]),nM(e)]),d=await c(u,{quality:n,progressive:r,optimize_coding:a,auto_subsample:l}),f=new Blob([d],{type:"image/jpeg"}),v=(e.name||"clipboard-image.png").replace(/\.[^.]+$/,"")+".jpg";return new File([f],v,{type:"image/jpeg"})}const t3=[{value:"chrome",label:"Google Chrome"},{value:"edge",label:"Microsoft Edge"},{value:"safari",label:"Safari"}];function Zie(e=!0){return e?t3:t3.filter(t=>t.value!=="safari")}function Zr(e){e&&eM.open(e).catch(()=>{window.open(e,"_blank")})}function XC(e,t){if(!e||!t)return"";const n=e.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`https://${n.startsWith("jira.")?n:`jira.${n}`}/browse/${t.toUpperCase()}`}function Jie(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{Title:ele,Text:Sc,Paragraph:tle}=Xn,fd=()=>new Intl.DateTimeFormat("en-CA").format(new Date),nle=[{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 rle({value:e,domain:t,jiraIssuePrefix:n}){const r=[],a=/\[[^\]]+\]\(https?:\/\/[^\s)]+\)|https?:\/\/[^\s]+/g;let l=0;const c=(n||"").split(/[\s,]+/).filter(Boolean).map(f=>f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),u=c.length>0&&t?new RegExp(`\\b(?:${c.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,d=(f,v)=>{if(!u||!t)return f;const g=[];let p=0;u.lastIndex=0;for(const y of f.matchAll(u)){y.index>p&&g.push(f.slice(p,y.index));const x=y[0],S=XC(t,x);g.push(h.jsx("a",{href:S,target:"_blank",rel:"noreferrer",onClick:b=>{b.preventDefault(),Zr(S)},children:x},`${v}-${y.index}`)),p=y.index+x.length}return p<f.length&&g.push(f.slice(p)),g};for(const f of e.matchAll(a)){f.index>l&&r.push(...d(e.slice(l,f.index),`txt-${f.index}`));const v=f[0].match(/^\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)$/);if(v)r.push(h.jsx("a",{href:v[2],target:"_blank",rel:"noreferrer",onClick:g=>{g.preventDefault(),Zr(v[2])},children:v[1]},f.index));else{const g=f[0].replace(/[),.;:!?]+$/,"");r.push(h.jsx("a",{href:g,target:"_blank",rel:"noreferrer",onClick:p=>{p.preventDefault(),Zr(g)},children:g},f.index)),f[0].length>g.length&&r.push(f[0].slice(g.length))}l=f.index+f[0].length}return l<e.length&&r.push(...d(e.slice(l),"txt-end")),r}const n3=e=>e.text||e.preview||"";function Zl(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 ale(){const{message:e}=Ra.useApp(),[t,n]=i.useState(()=>{const X=localStorage.getItem("buddy_clipboard_enabled");return X!==null?X==="true":!0}),[r,a]=i.useState(!0),[l,c]=i.useState([]),[u,d]=i.useState(fd()),[f,v]=i.useState([]),[g,p]=i.useState([]),[y,x]=i.useState(null),[S,b]=i.useState(""),[$,w]=i.useState("all"),[E,R]=i.useState(null),[j,I]=i.useState(""),[O,M]=i.useState(""),[N,P]=i.useState(60),[B,L]=i.useState(!1),[k,_]=i.useState(!0);i.useEffect(()=>{Vr.status().then(X=>{if(X){if(X.isMac!==void 0&&L(X.isMac),X.clipboardEnabled!==void 0){const oe=X.clipboardEnabled!==!1;n(oe),localStorage.setItem("buddy_clipboard_enabled",String(oe))}X.clipboardImageEnabled!==void 0&&_(X.clipboardImageEnabled!==!1),X.clipboardDeduplicateMinutes!==void 0&&P(X.clipboardDeduplicateMinutes),X.domain&&I(X.domain),X.jiraIssuePrefix&&M(X.jiraIssuePrefix)}}).catch(()=>{}).finally(()=>a(!1))},[]);const H=async X=>{n(X),localStorage.setItem("buddy_clipboard_enabled",String(X));try{const ae=(await Vr.saveClipboardEnabled(X)).clipboardEnabled!==!1;n(ae),localStorage.setItem("buddy_clipboard_enabled",String(ae)),e.success(X?"Clipboard history enabled":"Clipboard history disabled")}catch(oe){e.error(oe.message)}},z=async X=>{_(X);try{const oe=await Vr.saveClipboardImageEnabled(X);oe&&oe.clipboardImageEnabled!==void 0&&_(oe.clipboardImageEnabled!==!1),e.success(X?"Image clipboard monitoring enabled":"Image clipboard monitoring disabled")}catch(oe){e.error(oe.message)}},D=async X=>{P(X);try{await Vr.saveClipboardDeduplicateMinutes(X),e.success("Duplicate filter window updated.")}catch(oe){e.error(oe.message)}},F=async X=>{try{const[oe,ae]=await Promise.all([rl.list(X),rl.tagged().catch(()=>({items:[]}))]);c(oe.dates),v(oe.items),p(ae.items||[])}catch(oe){e.error(oe.message)}},W=async(X,oe)=>{const ae=(oe||"").trim();if(!ae)return;const re=X.tags||[];if(re.includes(ae)){x(null);return}const Y=[...re,ae],ee=X.date||u;try{await rl.updateTags(ee,X.id,Y),v(ie=>ie.map(ue=>ue.id===X.id?{...ue,tags:Y}:ue)),p(ie=>ie.some(se=>se.id===X.id)?ie.map(se=>se.id===X.id?{...se,tags:Y}:se):[{...X,tags:Y,date:ee},...ie]),e.success("Tag added")}catch(ie){e.error(ie.message)}finally{x(null),b("")}},U=async(X,oe)=>{const re=(X.tags||[]).filter(ee=>ee!==oe),Y=X.date||u;try{await rl.updateTags(Y,X.id,re),v(ee=>ee.map(ie=>ie.id===X.id?{...ie,tags:re}:ie)),p(ee=>re.length===0?ee.filter(ie=>ie.id!==X.id):ee.map(ie=>ie.id===X.id?{...ie,tags:re}:ie)),e.success("Tag removed")}catch(ee){e.error(ee.message)}},V=i.useRef(fd());i.useEffect(()=>{if(!t)return;const X=()=>{const Y=fd();if(Y!==V.current){const ee=V.current;if(V.current=Y,u===ee)return d(Y),!0}return!1};X()||F(u);const ae=()=>{X()||F(u)};window.addEventListener("visibilitychange",ae),window.addEventListener("focus",ae);let re=null;return u===fd()&&(re=setInterval(()=>{document.visibilityState==="visible"&&F(u)},3e3)),()=>{window.removeEventListener("visibilitychange",ae),window.removeEventListener("focus",ae),re&&clearInterval(re)}},[u,t]);const G=async X=>{try{await rl.remove(u,X),await F(u),e.success("Clipboard entry deleted.")}catch(oe){e.error(oe.message)}},q=async X=>{const oe=X.date||u;if(X.imageFile)try{const re=await(await fetch(`${window.location.origin}/api/clipboard/image/${X.imageFile}`)).blob();await navigator.clipboard.write([new ClipboardItem({[re.type]:re})]),rl.copied(oe,X.id).catch(()=>{}),R(X.id),setTimeout(()=>{R(Y=>Y===X.id?null:Y)},1e3)}catch(ae){e.error("Failed to copy image: "+ae.message)}else navigator.clipboard.writeText(X.text||X.preview),rl.copied(oe,X.id).catch(()=>{}),R(X.id),setTimeout(()=>{R(ae=>ae===X.id?null:ae)},1e3)};i.useEffect(()=>{if(!t)return;const X=oe=>{const ae=document.activeElement;if(!(ae&&(ae.tagName==="INPUT"||ae.tagName==="TEXTAREA"||ae.isContentEditable))){if(oe.key==="ArrowLeft"){const re=[...new Set([...l,u])].sort(),Y=re.indexOf(u);Y<re.length-1&&Y!==-1&&d(re[Y+1])}else if(oe.key==="ArrowRight"){const re=[...new Set([...l,u])].sort(),Y=re.indexOf(u);Y>0&&d(re[Y-1])}}};return window.addEventListener("keydown",X),()=>window.removeEventListener("keydown",X)},[l,u,t]),i.useEffect(()=>{if(!t)return;const X=async oe=>{var Y;const ae=document.activeElement;if(ae&&(ae.tagName==="INPUT"||ae.tagName==="TEXTAREA"||ae.isContentEditable))return;const re=(Y=oe.clipboardData)==null?void 0:Y.items;if(re){for(const ee of re)if(ee.type.startsWith("image/")){const ie=ee.getAsFile();if(ie){try{e.loading({content:"Compressing and saving image from paste…",key:"paste-upload",duration:0});const ue=await Qie(ie);await rl.uploadImage(ue);const se=fd();d(se),await F(se),e.success({content:"Image pasted and saved to history!",key:"paste-upload"})}catch(ue){e.error({content:"Failed to save pasted image: "+ue.message,key:"paste-upload"})}break}}}};return window.addEventListener("paste",X),()=>window.removeEventListener("paste",X)},[u,t]);const K=l.reduce((X,oe)=>{var ee;const[ae,re,Y]=oe.split("-");return X[ae]||(X[ae]={}),(ee=X[ae])[re]||(ee[re]=[]),X[ae][re].push(Y),X},{}),Z=Object.entries(K).sort(([X],[oe])=>oe.localeCompare(X)).map(([X,oe])=>({value:X,label:X,children:Object.entries(oe).sort(([ae],[re])=>re.localeCompare(ae)).map(([ae,re])=>({value:ae,label:ae,children:re.sort().reverse().map(Y=>({value:Y,label:Y}))}))})),Q=i.useMemo(()=>$==="tagged"?g:$==="all"?f:$==="image"?f.filter(X=>!!X.imageFile):f.filter(X=>!X.imageFile&&Zl(n3(X),$,O)),[$,f,g,O]),te=i.useMemo(()=>{const X={all:f.length,tagged:g.length,jira:0,account:0,id:0,url:0,json:0,code:0,image:0};for(const oe of f)if(oe.imageFile)X.image++;else{const ae=n3(oe);Zl(ae,"jira",O)&&X.jira++,Zl(ae,"account")&&X.account++,Zl(ae,"id")&&X.id++,Zl(ae,"url")&&X.url++,Zl(ae,"json")&&X.json++,Zl(ae,"code")&&X.code++}return[{key:"all",label:`All (${X.all})`},{key:"tagged",label:`Tagged (${X.tagged})`},{key:"jira",label:`Jira (${X.jira})`},{key:"account",label:`Account (${X.account})`},{key:"id",label:`ID (${X.id})`},{key:"url",label:`Url (${X.url})`},{key:"json",label:`JSON (${X.json})`},{key:"code",label:`Code (${X.code})`},{key:"image",label:`Img (${X.image})`}]},[f,g,O]);return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx(Sc,{type:"secondary",children:"LOCAL CLIPBOARD"}),h.jsx(ele,{level:2,children:"Clipboard history"}),h.jsx(tle,{type:"secondary",children:"Saved locally and archived by date."})]}),h.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:8},children:[h.jsxs(vt,{size:16,align:"center",children:[h.jsx(Zd,{loading:r,checked:t,onChange:H,checkedChildren:"On",unCheckedChildren:"Off"}),h.jsx(su,{className:"clipboard-picker",disabled:!t||r,options:Z,value:u.split("-"),onChange:X=>(X==null?void 0:X.length)===3&&d(X.join("-")),placeholder:"Select date"})]}),h.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:6},children:[h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[h.jsx(Sc,{type:"secondary",style:{fontSize:12},children:"Deduplicate filter:"}),h.jsx(Fn,{size:"small",disabled:!t||r,value:N,onChange:D,style:{width:160},options:nle})]}),B&&h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[h.jsx(Sc,{type:"secondary",style:{fontSize:12},children:"Monitor image clipboard:"}),h.jsx(Zd,{size:"small",disabled:!t||r,checked:k,onChange:z,checkedChildren:"On",unCheckedChildren:"Off"})]})]})]})]}),t?h.jsxs(h.Fragment,{children:[h.jsx(Lo,{className:"clipboard-tabs",activeKey:$,onChange:w,items:te}),Q.length?h.jsx("div",{className:"clipboard-list",children:Q.map(X=>{const oe=X.date||u,ae=`${window.location.origin}/api/clipboard/${oe}/${X.id}`,re=new Date(X.createdAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return h.jsxs(yn,{size:"small",className:"clipboard-item",children:[h.jsxs("div",{children:[h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[h.jsx(Sc,{type:"secondary",children:re}),X.date&&X.date!==u&&h.jsx(qt,{style:{margin:0},children:X.date}),(X.tags||[]).map(Y=>h.jsx(qt,{color:"blue",closable:!0,onClose:ee=>{ee.preventDefault(),U(X,Y)},style:{margin:0},children:Y},Y)),h.jsx(Y1,{content:h.jsxs(vt.Compact,{style:{width:200},children:[h.jsx(sn,{size:"small",placeholder:"Tag name",value:S,onChange:Y=>b(Y.target.value),onPressEnter:()=>W(X,S)}),h.jsx(Ue,{size:"small",type:"primary",onClick:()=>W(X,S),children:"Add"})]}),title:"Add Tag",trigger:"click",open:y===X.id,onOpenChange:Y=>{x(Y?X.id:null),b("")},children:h.jsxs(qt,{style:{cursor:"pointer",borderStyle:"dashed",margin:0},children:[h.jsx(Yr,{})," Tag"]})})]}),X.imageFile?h.jsx("div",{style:{marginTop:8},children:h.jsx("img",{src:`${window.location.origin}/api/clipboard/image/${X.imageFile}`,alt:"Clipboard entry",style:{maxWidth:"100%",maxHeight:300,borderRadius:6,cursor:"pointer",border:"1px solid #eef0f6"},onClick:()=>window.open(`${window.location.origin}/api/clipboard/image/${X.imageFile}`,"_blank")})}):h.jsxs(h.Fragment,{children:[h.jsx("pre",{style:{marginTop:8},children:h.jsx(rle,{value:X.preview||X.text,domain:j,jiraIssuePrefix:O})}),X.contentFile&&h.jsxs("span",{className:"clipboard-original",children:[h.jsx("a",{href:ae,target:"_blank",rel:"noreferrer",children:"View original content"}),h.jsxs("a",{href:X.editorUrl,children:["Open in ",X.editorName||"editor"]})]})]})]}),h.jsxs("span",{className:"clipboard-actions",children:[h.jsx(_n,{title:E===X.id?"Copied!":"Copy",children:h.jsx(Ue,{type:"text",icon:E===X.id?h.jsx(js,{style:{color:"#52c41a"}}):h.jsx(ei,{}),onClick:()=>q(X)})}),h.jsx(_n,{title:"Delete",children:h.jsx(Ue,{type:"text",danger:!0,icon:h.jsx($r,{}),onClick:()=>G(X.id)})})]})]},X.id)})}):h.jsx(Bn,{description:`No ${$==="all"?"clipboard entries":`${$==="id"?"ID":$} entries`}${$==="tagged"?".":` for ${u}.`}`})]}):h.jsx(yn,{style:{marginTop:24,textAlign:"center",padding:"48px 0"},children:h.jsx(Bn,{image:h.jsx(og,{style:{fontSize:48,color:"#9ca3af"}}),description:h.jsxs("div",{style:{marginTop:8},children:[h.jsx(Sc,{strong:!0,style:{fontSize:16,display:"block",color:"#374151"},children:"Clipboard history is disabled"}),h.jsx(Sc,{type:"secondary",children:"Turn on the switch in the top-right corner to start capturing and viewing history."})]})})}),h.jsx(Ml.BackTop,{visibilityHeight:240})]})}const rM=[{value:"vscode",label:"VS Code"},{value:"devin",label:"Devin"},{value:"idea",label:"IntelliJ IDEA"}];function aM(e="vscode"){const t=rM.find(n=>n.value===e);return t?t.label:"VS Code"}function oM(e="vscode",t="",n="",r={}){if(!t)return"";const a=typeof r=="boolean"?r:!!(r!=null&&r.newWindow);let l="",c="";if(n){const u=n.split(":").filter(Boolean);u[0]&&(l=u[0]),u[1]&&(c=u[1])}if(e==="idea"){let u=`idea://open?file=${encodeURIComponent(t)}`;return l&&(u+=`&line=${l}`),c&&(u+=`&column=${c}`),u}return e==="devin"?`devin://file${encodeURI(t)}${n}`:a?`vscode://vscode.open-folder${encodeURI(t)}?forceNewWindow=true`:`vscode://file${encodeURI(t)}${n}`}const{Text:jb}=Xn;function ole({tasks:e,running:t,onCreate:n,onEdit:r,onStart:a,onStop:l,onRemove:c}){const u=[{title:"Name",dataIndex:"name",render:d=>h.jsx(jb,{strong:!0,children:d})},{title:"Scripts",dataIndex:"items",width:110,render:d=>h.jsxs(jb,{type:"secondary",children:[d.length," scripts"]})},{title:"Actions",width:236,render:(d,f)=>{const v=f.items.every(g=>t.has(`${g.launcherId}:${g.scriptId}`));return h.jsxs(vt,{children:[h.jsx(Ue,{size:"small",danger:v,icon:v?h.jsx(og,{}):h.jsx(u1,{}),onClick:()=>v?l(f):a(f),children:v?"Stop":"Start"}),h.jsx(Ue,{size:"small",onClick:()=>r(f),children:"Edit"}),h.jsx(Ue,{size:"small",danger:!0,icon:h.jsx($r,{}),onClick:()=>c(f),children:"Delete"})]})}}];return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"group-task-header",children:[h.jsx(jb,{type:"secondary",children:"Start selected scripts across multiple services."}),h.jsx(Ue,{type:"primary",icon:h.jsx(Yr,{}),onClick:n,children:"Add quick launch"})]}),e.length?h.jsx(mr,{className:"group-task-table",rowKey:"id",dataSource:e,columns:u,pagination:!1,size:"small"}):h.jsx(Bn,{description:"No quick launches yet.",className:"group-task-empty"})]})}const{Text:Jl}=Xn,md=(e,t)=>`${e}:${t}`,ile=()=>h.jsx("div",{style:{width:"0.8em",height:"0.8em",backgroundColor:"rgba(0,0,0,0.88)"}});function lle({form:e,editing:t,executor:n,running:r,errorCounts:a={},packageScripts:l,onRun:c,onRunInstall:u,onRunPackage:d,onStop:f,onLogs:v,onPackageLogs:g}){const p=!!(t&&[...r].some(S=>S.startsWith(`${t.id}:`))),[y,x]=i.useState(()=>p);return i.useEffect(()=>{p&&x(!0)},[t==null?void 0:t.id]),i.useEffect(()=>{p||x(!1)},[p]),h.jsx(Ht.List,{name:"scripts",children:(S,{add:b,remove:$})=>{const w=["npm","pnpm","yarn"].includes(n)?{id:"install",name:"Install",command:`${n} install${n==="npm"?" --legacy-peer-deps":""}`}:null,E=[...S.map(I=>({...I,key:`custom-${I.key}`,kind:"custom"})),...w?[{key:"install",kind:"install",script:w}]:[],...(l||[]).map(I=>({key:`package-${I.id}`,kind:"package",script:I}))],R=y?E.filter(I=>{const O=I.kind==="custom"?e.getFieldValue(["scripts",I.name]):I.script;return t&&(O==null?void 0:O.id)&&r.has(md(t.id,O.id))}):E,j=[{title:"Source",width:100,render:(I,O)=>h.jsx(qt,{color:O.kind==="package"?"blue":O.kind==="install"?"green":"default",children:O.kind==="package"?"Package":O.kind==="install"?"Executor":"Custom"})},{title:"Script name",width:200,render:(I,O)=>{var B;const M=O.kind==="custom"?e.getFieldValue(["scripts",O.name]):O.script,N=(M==null?void 0:M.name)===e.getFieldValue("startCommand"),P=t&&(M==null?void 0:M.id)&&r.has(md(t.id,M.id));return h.jsxs(vt,{direction:"vertical",size:1,style:{width:"100%"},children:[O.kind!=="custom"||P?h.jsxs(vt,{size:4,children:[h.jsx(Jl,{strong:!0,children:(M==null?void 0:M.name)||((B=O.script)==null?void 0:B.name)}),N&&h.jsx(wl,{className:"start-script-icon"})]}):h.jsx(Ht.Item,{noStyle:!0,name:[O.name,"name"],rules:[{required:!0,message:"Required"}],children:h.jsx(sn,{placeholder:"serve",allowClear:!0,suffix:N?h.jsx(wl,{className:"start-script-icon"}):null})}),P&&h.jsx(ja,{status:"success",text:h.jsx(Jl,{type:"secondary",style:{fontSize:11},children:"running"})})]})}},{title:"Command",render:(I,O)=>{const M=O.kind==="custom"?e.getFieldValue(["scripts",O.name]):O.script,N=t&&(M==null?void 0:M.id)&&r.has(md(t.id,M.id));return O.kind==="package"?h.jsxs(vt,{direction:"vertical",size:0,children:[h.jsxs(Jl,{code:!0,children:[n," run ",O.script.name]}),h.jsx(Jl,{type:"secondary",style:{fontSize:12},children:O.script.command})]}):O.kind==="install"?h.jsx(Jl,{code:!0,children:O.script.command}):N?h.jsx(Jl,{code:!0,children:M==null?void 0:M.command}):h.jsx(Ht.Item,{noStyle:!0,name:[O.name,"command"],rules:[{required:!0,message:"Required"}],children:h.jsx(sn,{placeholder:"npm run dev",allowClear:!0})})}},{title:"Actions",width:132,render:(I,O)=>{const M=O.kind==="custom"?e.getFieldValue(["scripts",O.name]):O.script,N=t&&(M==null?void 0:M.id)&&r.has(md(t.id,M.id)),P=t&&(M!=null&&M.id)&&a[md(t.id,M.id)]||0;return h.jsxs(vt,{size:2,children:[t&&h.jsx(_n,{title:N?"Stop":"Start",children:h.jsx(Ue,{type:"text",danger:N,icon:N?h.jsx(ile,{}):h.jsx(mie,{}),onClick:()=>N?f(M):O.kind==="package"?d(M):O.kind==="install"?u(M):c(M),disabled:!(M!=null&&M.id)})}),h.jsx(_n,{title:"Logs",children:h.jsx(ja,{count:P,size:"small",offset:[-2,2],children:h.jsx(Ue,{type:"text",icon:h.jsx(uu,{}),onClick:()=>O.kind==="package"?g(M):v(M),disabled:!t||!(M!=null&&M.id)})})}),O.kind==="custom"&&!N&&h.jsx(_n,{title:"Remove",children:h.jsx(Ue,{type:"text",danger:!0,icon:h.jsx($r,{}),onClick:()=>$(O.name)})})]})}}];return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"script-header",children:[h.jsx(xC,{orientation:"left",children:"Scripts"}),h.jsxs(vt,{size:"middle",align:"center",children:[h.jsxs("label",{style:{display:"inline-flex",alignItems:"center",gap:6,cursor:"pointer",userSelect:"none"},children:[h.jsx(Zd,{size:"small",checked:y,onChange:x,disabled:!t}),h.jsx(Jl,{type:"secondary",style:{fontSize:13},children:"Show running only"})]}),h.jsx(Ue,{icon:h.jsx(Yr,{}),onClick:()=>{x(!1),b({name:"",command:""})},children:"Add script"})]})]}),h.jsx(mr,{size:"small",rowKey:"key",pagination:!1,loading:l===null,dataSource:R,columns:j})]})}})}const sle=e=>h.jsx("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"currentColor",style:{verticalAlign:"-0.125em",...e.style},...e,children:h.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 cle(e){if(!e)return null;const t=e.toLowerCase();return t.includes("bitbucket")?h.jsx(sle,{style:{color:"#2584FF"}}):t.includes("github")?h.jsx(Toe,{style:{color:"#24292e"}}):t.includes("gitlab")?h.jsx(Doe,{style:{color:"#fc6d26"}}):h.jsx(jf,{style:{color:"#1890ff"}})}function iM({repoUrl:e,style:t}){if(!e)return null;const n=cle(e);return n?h.jsx(_n,{title:"Open repository in browser",children:h.jsx(Ue,{type:"text",size:"small",icon:n,onClick:r=>{r.preventDefault(),r.stopPropagation(),Zr(e)},style:{padding:0,width:20,height:20,minWidth:20,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:4,...t}})}):null}const ule=()=>({alias:"",folder:"",groupName:"",executor:"npm",startCommand:void 0,scripts:[]});function dle({open:e,editing:t,groups:n,running:r,errorCounts:a={},onCancel:l,onSave:c,onRun:u,onRunInstall:d,onRunPackage:f,onStop:v,onLogs:g,onDelete:p}){const{message:y,modal:x}=Ra.useApp(),[S]=Ht.useForm(),[b,$]=i.useState(null),[w,E]=i.useState(!1),R=async()=>{E(!0);try{const O=await Vr.selectDirectory();if(O&&O.path&&(S.setFieldValue("folder",O.path),!S.getFieldValue("alias"))){const N=O.path.split(/[/\\]/).filter(Boolean);N.length>0&&S.setFieldValue("alias",N[N.length-1])}}catch(O){y.error(O.message)}finally{E(!1)}},j=()=>{x.confirm({title:"Delete Service",content:`Are you sure you want to delete service "${t==null?void 0:t.alias}"?`,okText:"Delete",okButtonProps:{type:"primary",danger:!0},cancelText:"Cancel",onOk:async()=>{try{await p(t)}catch(O){y.error(O.message)}}})};i.useEffect(()=>{e&&(S.resetFields(),S.setFieldsValue(t?{...t,startCommand:t.startCommand||void 0,scripts:t.scripts}:ule()),$(t?null:[]),t&&Sr.packageScripts(t.id).then(O=>$(O.scripts)).catch(()=>$([])))},[e,t,S]);const I=async()=>{try{const O=(S.getFieldValue("scripts")||[]).filter(P=>{var B,L;return((B=P==null?void 0:P.name)==null?void 0:B.trim())||((L=P==null?void 0:P.command)==null?void 0:L.trim())});S.setFieldValue("scripts",O);const M=await S.validateFields(["alias","folder","groupName","startCommand"]),N={...S.getFieldsValue(!0),...M,scripts:O};await c(N)}catch(O){if(O!=null&&O.errorFields)return;y.error(O.message)}};return h.jsx(ar,{title:t?h.jsxs(vt,{align:"center",size:6,children:[h.jsxs("span",{children:["Service details · ",t.alias]}),h.jsx(iM,{repoUrl:t.repoUrl})]}):"Add service",open:e,onCancel:l,onOk:I,okText:t?"Save":"Save service",width:860,destroyOnClose:!0,footer:h.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[t?h.jsx(Ue,{type:"primary",danger:!0,onClick:j,children:"Delete service"}):h.jsx("div",{}),h.jsxs(vt,{children:[h.jsx(Ue,{onClick:l,children:"Cancel"}),h.jsx(Ue,{type:"primary",onClick:I,children:t?"Save":"Save service"})]})]}),children:h.jsxs(Ht,{form:S,layout:"vertical",children:[h.jsx(Fv,{className:"service-config",defaultActiveKey:t?[]:["configuration"],items:[{key:"configuration",label:"Service configuration",children:h.jsxs(Ro,{gutter:[16,0],children:[h.jsx(Qn,{xs:24,sm:12,children:h.jsx(Ht.Item,{label:"Name",name:"alias",rules:[{required:!0}],children:h.jsx(sn,{placeholder:"Service name",allowClear:!0})})}),h.jsx(Qn,{xs:24,sm:12,children:h.jsx(Ht.Item,{label:"Project folder",name:"folder",rules:[{required:!0}],children:h.jsx(sn,{prefix:h.jsx(Gc,{style:{color:"#8c8c8c"}}),suffix:h.jsx(Ue,{type:"text",size:"small",icon:h.jsx(Gc,{}),loading:w,onClick:R,style:{fontSize:12,padding:"0 4px"},children:"Browse"}),placeholder:"Project folder path",allowClear:!0})})}),h.jsx(Qn,{xs:24,sm:8,children:h.jsx(Ht.Item,{label:"Group",name:"groupName",children:h.jsx(Wv,{options:n.map(O=>({value:O})),placeholder:"Group name",allowClear:!0})})}),h.jsx(Qn,{xs:24,sm:8,children:h.jsx(Ht.Item,{label:"Executor",name:"executor",rules:[{required:!0}],children:h.jsx(Wv,{options:["npm","pnpm","yarn"].map(O=>({value:O})),placeholder:"npm",allowClear:!0})})}),h.jsx(Qn,{xs:24,sm:8,children:h.jsx(Ht.Item,{noStyle:!0,shouldUpdate:(O,M)=>O.scripts!==M.scripts,children:()=>{const O=(S.getFieldValue("scripts")||[]).map(P=>P==null?void 0:P.name).filter(Boolean),M=(b||[]).map(P=>P.name),N=[...new Set([...O,...M])].map(P=>({label:P,value:P}));return h.jsx(Ht.Item,{label:"Start script name",name:"startCommand",children:h.jsx(Fn,{placeholder:"Select start script",allowClear:!0,options:N})})}})})]})}]}),h.jsx(Ht.Item,{noStyle:!0,shouldUpdate:(O,M)=>O.executor!==M.executor||O.startCommand!==M.startCommand||O.scripts!==M.scripts,children:()=>h.jsx(lle,{form:S,editing:t,executor:S.getFieldValue("executor")||"npm",running:r,errorCounts:a,packageScripts:b,onRun:O=>u(t,O),onRunInstall:()=>d(t),onRunPackage:O=>f(t,O),onStop:O=>v(t,O.id),onLogs:O=>g(t,O),onPackageLogs:O=>g(t,O,!0)})})]})})}const{Text:fle}=Xn;function mle({open:e,editingGroupTask:t,groupCatalog:n,onCancel:r,onSave:a}){const{message:l}=Ra.useApp(),[c]=Ht.useForm();i.useEffect(()=>{e&&(c.resetFields(),c.setFieldsValue({name:(t==null?void 0:t.name)||"",items:(t==null?void 0:t.items.map(f=>`${f.launcherId}|${f.scriptId}`))||[]}))},[e,t,c]);const u=i.useMemo(()=>Object.entries(n.reduce((f,v)=>{const g=v.groupName||"Ungrouped";return(f[g]||(f[g]=[])).push(v),f},{})).sort(([f],[v])=>f.localeCompare(v)).map(([f,v])=>({key:f,label:f,children:h.jsx("div",{className:"group-task-projects",children:v.map(g=>h.jsx(yn,{size:"small",title:g.alias,children:h.jsx(vt,{direction:"vertical",children:g.scripts.map(p=>h.jsxs(Qr,{value:`${g.id}|${p.id}`,children:[p.name," ",h.jsxs(fle,{type:"secondary",children:["(",p.source,")"]})]},p.id))})},g.id))})})),[n]),d=async()=>{try{const f=await c.validateFields(),v={name:f.name,items:f.items.map(g=>{const[p,y]=g.split("|");return{launcherId:p,scriptId:y}})};await a(v)}catch(f){f!=null&&f.errorFields||l.error(f.message)}};return h.jsx(ar,{title:t?`Edit quick launch · ${t.name}`:"Add quick launch",open:e,onCancel:r,onOk:d,okText:t?"Save changes":"Save quick launch",width:760,destroyOnClose:!0,children:h.jsxs(Ht,{form:c,layout:"vertical",children:[h.jsx(Ht.Item,{label:"Name",name:"name",rules:[{required:!0}],children:h.jsx(sn,{placeholder:"Start local stack",allowClear:!0})}),h.jsx(Ht.Item,{label:"Scripts",name:"items",rules:[{required:!0,message:"Select at least one script."}],children:h.jsx(Qr.Group,{className:"group-task-selector",children:h.jsx(Lo,{items:u})})})]})})}const r3={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 d1({value:e,editor:t}){const[n,r]=i.useState(t||"vscode"),[a,l]=i.useState(""),[c,u]=i.useState("");i.useEffect(()=>{t&&r(t),Vr.status().then(g=>{g!=null&&g.defaultEditor&&!t&&r(g.defaultEditor),g!=null&&g.domain&&l(g.domain),g!=null&&g.jiraIssuePrefix&&u(g.jiraIssuePrefix)}).catch(()=>{})},[t]);const d=(c||"").split(/[\s,]+/).filter(Boolean).map(g=>g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),f=d.length>0&&a?new RegExp(`\\b(?:${d.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,v=(g,p)=>{let y="";const x=(w,E)=>w.split(/(\u001b\[[0-9;]*m)/g).map((j,I)=>{const O=j.match(/^\u001b\[([0-9;]*)m$/);if(O){const N=O[1].split(";").map(Number);return y=N.includes(0)?"":r3[N.find(P=>r3[P])]||y,null}if(!j)return null;const M=y||(/\b(error|failed|fatal|exception|TS\d{4,5})\b/i.test(j)?"log-error":/\b(warn|warning)\b/i.test(j)?"log-warning":/\b(success|ready|started|listening)\b/i.test(j)?"log-success":"");return h.jsx("span",{className:M,children:j},`${E}-${I}`)}),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,b=f&&f.test(g);return!g.includes("http")&&!g.includes("/")&&!b?x(g,`${p}-0`):g.split(S).map((w,E)=>{if(!w)return null;const R=`${p}-${E}`;if(/^https?:\/\//.test(w.replace(/\u001b\[[0-9;]*m/g,""))){const I=w.replace(/\u001b\[[0-9;]*m/g,""),O=I.replace(/[),.;:!?]+$/,""),M=I.slice(O.length);return h.jsxs("span",{children:[h.jsx("a",{className:"log-link",href:O,target:"_blank",rel:"noreferrer",onClick:N=>{N.preventDefault(),Zr(O)},children:x(w.slice(0,w.length-M.length),`${R}-url`)}),M&&x(M,`${R}-suf`)]},R)}const j=w.replace(/\u001b\[[0-9;]*m/g,"");if(j.startsWith("/")){const[,I,O=""]=j.match(/^(.*?)(:\d+(?::\d+)?)?$/)||[];if(I){const M=oM(n,I,O);return h.jsx("a",{className:"log-link",href:M,target:"_blank",rel:"noreferrer",title:`Open in ${aM(n)}`,children:x(w,R)},R)}}if(f&&a&&(f.lastIndex=0,f.test(j))){const I=[];let O=0;f.lastIndex=0;for(const M of j.matchAll(f)){M.index>O&&I.push(x(j.slice(O,M.index),`${R}-sub-${M.index}`));const N=M[0],P=XC(a,N);I.push(h.jsx("a",{className:"log-link",href:P,target:"_blank",rel:"noreferrer",onClick:B=>{B.preventDefault(),Zr(P)},children:N},`${R}-jira-${M.index}`)),O=M.index+N.length}return O<j.length&&I.push(x(j.slice(O),`${R}-sub-end`)),h.jsx("span",{children:I},R)}return x(w,R)})};return h.jsx("div",{className:"log-output",role:"log",children:e.split(`
|
|
496
|
+
`]:{zIndex:10,width:r,margin:`0 ${le(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${u}-thumbnail, ${u}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${u}-name`]:{display:"none",textAlign:"center"},[`${u}-file + ${u}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${le(l(e.paddingXS).mul(2).equal())})`},[`${u}-uploading`]:{[`&${u}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${u}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${le(l(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Qre=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Zre=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},mn(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"}})}},Jre=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),eae=un("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,pictureCardSize:a,calc:l}=e,c=rn(e,{uploadThumbnailSize:l(t).mul(2).equal(),uploadProgressOffset:l(l(n).div(2)).add(r).equal(),uploadPicCardSize:a});return[Zre(c),Ure(c),Xre(c),Yre(c),qre(c),Gre(c),Qre(c),uf(c)]},Jre);var tae={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"},nae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:tae}))},rae=i.forwardRef(nae),aae={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"},oae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:aae}))},iae=i.forwardRef(oae),lae={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"},sae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:lae}))},cae=i.forwardRef(sae);function av(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 ov(e,t){const n=Me(t),r=n.findIndex(({uid:a})=>a===e.uid);return r===-1?n.push(e):n[r]=e,n}function $b(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function uae(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 dae=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},qN=e=>e.indexOf("image/")===0,fae=e=>{if(e.type&&!e.thumbUrl)return qN(e.type);const t=e.thumbUrl||e.url||"",n=dae(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)},nl=200;function mae(e){return new Promise(t=>{if(!e.type||!qN(e.type)){t("");return}const n=document.createElement("canvas");n.width=nl,n.height=nl,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${nl}px; height: ${nl}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:c}=a;let u=nl,d=nl,f=0,v=0;l>c?(d=c*(nl/l),v=-(d-u)/2):(u=l*(nl/c),f=-(u-d)/2),r.drawImage(a,f,v,u,d);const g=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(g)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const l=new FileReader;l.onload=()=>{l.result&&typeof l.result=="string"&&(a.src=l.result)},l.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const l=new FileReader;l.onload=()=>{l.result&&t(l.result)},l.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var vae={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"},gae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:vae}))},KC=i.forwardRef(gae);const pae=i.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:a,file:l,items:c,progress:u,iconRender:d,actionIconRender:f,itemRender:v,isImgUrl:g,showPreviewIcon:p,showRemoveIcon:y,showDownloadIcon:x,previewIcon:S,removeIcon:b,downloadIcon:$,extra:w,onPreview:E,onDownload:R,onClose:j},I)=>{var O,M;const{status:N}=l,[P,B]=i.useState(N);i.useEffect(()=>{N!=="removed"&&B(N)},[N]);const[L,k]=i.useState(!1);i.useEffect(()=>{const Y=setTimeout(()=>{k(!0)},300);return()=>{clearTimeout(Y)}},[]);const _=d(l);let H=i.createElement("div",{className:`${e}-icon`},_);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(P==="uploading"||!l.thumbUrl&&!l.url){const Y=de(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:P!=="uploading"});H=i.createElement("div",{className:Y},_)}else{const Y=g!=null&&g(l)?i.createElement("img",{src:l.thumbUrl||l.url,alt:l.name,className:`${e}-list-item-image`,crossOrigin:l.crossOrigin}):_,ee=de(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:g&&!g(l)});H=i.createElement("a",{className:ee,onClick:ie=>E(l,ie),href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Y)}const z=de(`${e}-list-item`,`${e}-list-item-${P}`),D=typeof l.linkProps=="string"?JSON.parse(l.linkProps):l.linkProps,F=(typeof y=="function"?y(l):y)?f((typeof b=="function"?b(l):b)||i.createElement($r,null),()=>j(l),e,r.removeFile,!0):null,W=(typeof x=="function"?x(l):x)&&P==="done"?f((typeof $=="function"?$(l):$)||i.createElement(KC,null),()=>R(l),e,r.downloadFile):null,U=a!=="picture-card"&&a!=="picture-circle"&&i.createElement("span",{key:"download-delete",className:de(`${e}-list-item-actions`,{picture:a==="picture"})},W,F),V=typeof w=="function"?w(l):w,G=V&&i.createElement("span",{className:`${e}-list-item-extra`},V),q=de(`${e}-list-item-name`),K=l.url?i.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:q,title:l.name},D,{href:l.url,onClick:Y=>E(l,Y)}),l.name,G):i.createElement("span",{key:"view",className:q,onClick:Y=>E(l,Y),title:l.name},l.name,G),Z=(typeof p=="function"?p(l):p)&&(l.url||l.thumbUrl)?i.createElement("a",{href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Y=>E(l,Y),title:r.previewFile},typeof S=="function"?S(l):S||i.createElement(IC,null)):null,Q=(a==="picture-card"||a==="picture-circle")&&P!=="uploading"&&i.createElement("span",{className:`${e}-list-item-actions`},Z,P==="done"&&W,F),{getPrefixCls:te}=i.useContext(Rt),X=te(),oe=i.createElement("div",{className:z},H,K,U,Q,L&&i.createElement(ta,{motionName:`${X}-fade`,visible:P==="uploading",motionDeadline:2e3},({className:Y})=>{const ee="percent"in l?i.createElement(mN,Object.assign({type:"line",percent:l.percent,"aria-label":l["aria-label"],"aria-labelledby":l["aria-labelledby"]},u)):null;return i.createElement("div",{className:de(`${e}-list-item-progress`,Y)},ee)})),ae=l.response&&typeof l.response=="string"?l.response:((O=l.error)===null||O===void 0?void 0:O.statusText)||((M=l.error)===null||M===void 0?void 0:M.message)||r.uploadError,re=P==="error"?i.createElement(_n,{title:ae,getPopupContainer:Y=>Y.parentNode},oe):oe;return i.createElement("div",{className:de(`${e}-list-item-container`,t),style:n,ref:I},v?v(re,l,c,{download:R.bind(null,l),preview:E.bind(null,l),remove:j.bind(null,l)}):re)}),hae=(e,t)=>{const{listType:n="text",previewFile:r=mae,onPreview:a,onDownload:l,onRemove:c,locale:u,iconRender:d,isImageUrl:f=fae,prefixCls:v,items:g=[],showPreviewIcon:p=!0,showRemoveIcon:y=!0,showDownloadIcon:x=!1,removeIcon:S,previewIcon:b,downloadIcon:$,extra:w,progress:E={size:[-1,2],showInfo:!1},appendAction:R,appendActionVisible:j=!0,itemRender:I,disabled:O}=e,[,M]=j1(),[N,P]=i.useState(!1),B=["picture-card","picture-circle"].includes(n);i.useEffect(()=>{n.startsWith("picture")&&(g||[]).forEach(q=>{!(q.originFileObj instanceof File||q.originFileObj instanceof Blob)||q.thumbUrl!==void 0||(q.thumbUrl="",r==null||r(q.originFileObj).then(K=>{q.thumbUrl=K||"",M()}))})},[n,g,r]),i.useEffect(()=>{P(!0)},[]);const L=(q,K)=>{if(a)return K==null||K.preventDefault(),a(q)},k=q=>{typeof l=="function"?l(q):q.url&&window.open(q.url)},_=q=>{c==null||c(q)},H=q=>{if(d)return d(q,n);const K=q.status==="uploading";if(n.startsWith("picture")){const Z=n==="picture"?i.createElement(To,null):u.uploading,Q=f!=null&&f(q)?i.createElement(cae,null):i.createElement(rae,null);return K?Z:Q}return K?i.createElement(To,null):i.createElement(iae,null)},z=(q,K,Z,Q,te)=>{const X={type:"text",size:"small",title:Q,onClick:oe=>{var ae,re;K(),i.isValidElement(q)&&((re=(ae=q.props).onClick)===null||re===void 0||re.call(ae,oe))},className:`${Z}-list-item-action`,disabled:te?O:!1};return i.isValidElement(q)?i.createElement(Ue,Object.assign({},X,{icon:Or(q,Object.assign(Object.assign({},q.props),{onClick:()=>{}}))})):i.createElement(Ue,Object.assign({},X),i.createElement("span",null,q))};i.useImperativeHandle(t,()=>({handlePreview:L,handleDownload:k}));const{getPrefixCls:D}=i.useContext(Rt),F=D("upload",v),W=D(),U=de(`${F}-list`,`${F}-list-${n}`),V=i.useMemo(()=>En(Lc(W),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[W]),G=Object.assign(Object.assign({},B?{}:V),{motionDeadline:2e3,motionName:`${F}-${B?"animate-inline":"animate"}`,keys:Me(g.map(q=>({key:q.uid,file:q}))),motionAppear:N});return i.createElement("div",{className:U},i.createElement(E1,Object.assign({},G,{component:!1}),({key:q,file:K,className:Z,style:Q})=>i.createElement(pae,{key:q,locale:u,prefixCls:F,className:Z,style:Q,file:K,items:g,progress:E,listType:n,isImgUrl:f,showPreviewIcon:p,showRemoveIcon:y,showDownloadIcon:x,removeIcon:S,previewIcon:b,downloadIcon:$,extra:w,iconRender:H,actionIconRender:z,itemRender:I,onPreview:L,onDownload:k,onClose:_})),R&&i.createElement(ta,Object.assign({},G,{visible:j,forceRender:!0}),({className:q,style:K})=>Or(R,Z=>({className:de(Z.className,q),style:Object.assign(Object.assign(Object.assign({},K),{pointerEvents:q?"none":void 0}),Z.style)}))))},bae=i.forwardRef(hae);var yae=function(e,t,n,r){function a(l){return l instanceof n?l:new n(function(c){c(l)})}return new(n||(n=Promise))(function(l,c){function u(v){try{f(r.next(v))}catch(g){c(g)}}function d(v){try{f(r.throw(v))}catch(g){c(g)}}function f(v){v.done?l(v.value):a(v.value).then(u,d)}f((r=r.apply(e,[])).next())})};const $d=`__LIST_IGNORE_${Date.now()}__`,Cae=(e,t)=>{const n=hr("upload"),{fileList:r,defaultFileList:a,onRemove:l,showUploadList:c=!0,listType:u="text",onPreview:d,onDownload:f,onChange:v,onDrop:g,previewFile:p,disabled:y,locale:x,iconRender:S,isImageUrl:b,progress:$,prefixCls:w,className:E,type:R="select",children:j,style:I,itemRender:O,maxCount:M,data:N={},multiple:P=!1,hasControlInside:B=!0,action:L="",accept:k="",supportServerRender:_=!0,rootClassName:H}=e,z=i.useContext(Kr),D=y??z,F=e.customRequest||n.customRequest,[W,U]=Cn(a||[],{value:r,postState:we=>we??[]}),[V,G]=i.useState("drop"),q=i.useRef(null),K=i.useRef(null);i.useMemo(()=>{const we=Date.now();(r||[]).forEach((Oe,Te)=>{!Oe.uid&&!Object.isFrozen(Oe)&&(Oe.uid=`__AUTO__${we}_${Te}__`)})},[r]);const Z=(we,Oe,Te)=>{let Le=Me(Oe),tt=!1;M===1?Le=Le.slice(-1):M&&(tt=Le.length>M,Le=Le.slice(0,M)),vo.flushSync(()=>{U(Le)});const Ct={file:we,fileList:Le};Te&&(Ct.event=Te),(!tt||we.status==="removed"||Le.some(We=>We.uid===we.uid))&&vo.flushSync(()=>{v==null||v(Ct)})},Q=(we,Oe)=>yae(void 0,void 0,void 0,function*(){const{beforeUpload:Te,transformFile:Le}=e;let tt=we;if(Te){const Ct=yield Te(we,Oe);if(Ct===!1)return!1;if(delete we[$d],Ct===$d)return Object.defineProperty(we,$d,{value:!0,configurable:!0}),!1;typeof Ct=="object"&&Ct&&(tt=Ct)}return Le&&(tt=yield Le(tt)),tt}),te=we=>{const Oe=we.filter(tt=>!tt.file[$d]);if(!Oe.length)return;const Te=Oe.map(tt=>av(tt.file));let Le=Me(W);Te.forEach(tt=>{Le=ov(tt,Le)}),Te.forEach((tt,Ct)=>{let We=tt;if(Oe[Ct].parsedFile)tt.status="uploading";else{const{originFileObj:nt}=tt;let dt;try{dt=new File([nt],nt.name,{type:nt.type})}catch{dt=new Blob([nt],{type:nt.type}),dt.name=nt.name,dt.lastModifiedDate=new Date,dt.lastModified=new Date().getTime()}dt.uid=tt.uid,We=dt}Z(We,Le)})},X=(we,Oe,Te)=>{try{typeof we=="string"&&(we=JSON.parse(we))}catch{}if(!$b(Oe,W))return;const Le=av(Oe);Le.status="done",Le.percent=100,Le.response=we,Le.xhr=Te;const tt=ov(Le,W);Z(Le,tt)},oe=(we,Oe)=>{if(!$b(Oe,W))return;const Te=av(Oe);Te.status="uploading",Te.percent=we.percent;const Le=ov(Te,W);Z(Te,Le,we)},ae=(we,Oe,Te)=>{if(!$b(Te,W))return;const Le=av(Te);Le.error=we,Le.response=Oe,Le.status="error";const tt=ov(Le,W);Z(Le,tt)},re=we=>{let Oe;Promise.resolve(typeof l=="function"?l(we):l).then(Te=>{var Le;if(Te===!1)return;const tt=uae(we,W);tt&&(Oe=Object.assign(Object.assign({},we),{status:"removed"}),W==null||W.forEach(Ct=>{const We=Oe.uid!==void 0?"uid":"name";Ct[We]===Oe[We]&&!Object.isFrozen(Ct)&&(Ct.status="removed")}),(Le=q.current)===null||Le===void 0||Le.abort(Oe),Z(Oe,tt))})},Y=we=>{G(we.type),we.type==="drop"&&(g==null||g(we))};i.useImperativeHandle(t,()=>({onBatchStart:te,onSuccess:X,onProgress:oe,onError:ae,fileList:W,upload:q.current,nativeElement:K.current}));const{getPrefixCls:ee,direction:ie,upload:ue}=i.useContext(Rt),se=ee("upload",w),pe=Object.assign(Object.assign({onBatchStart:te,onError:ae,onProgress:oe,onSuccess:X},e),{customRequest:F,data:N,multiple:P,action:L,accept:k,supportServerRender:_,prefixCls:se,disabled:D,beforeUpload:Q,onChange:void 0,hasControlInside:B});delete pe.className,delete pe.style,(!j||D)&&delete pe.id;const fe=`${se}-wrapper`,[he,Se,be]=eae(se,fe),[$e]=Aa("Upload",po.Upload),{showRemoveIcon:xe,showPreviewIcon:ye,showDownloadIcon:Ne,removeIcon:_e,previewIcon:Qe,downloadIcon:Ke,extra:Fe}=typeof c=="boolean"?{}:c,Xe=typeof xe>"u"?!D:xe,Pe=(we,Oe)=>c?i.createElement(bae,{prefixCls:se,listType:u,items:W,previewFile:p,onPreview:d,onDownload:f,onRemove:re,showRemoveIcon:Xe,showPreviewIcon:ye,showDownloadIcon:Ne,removeIcon:_e,previewIcon:Qe,downloadIcon:Ke,iconRender:S,extra:Fe,locale:Object.assign(Object.assign({},$e),x),isImageUrl:b,progress:$,appendAction:we,appendActionVisible:Oe,itemRender:O,disabled:D}):we,je=de(fe,E,H,Se,be,ue==null?void 0:ue.className,{[`${se}-rtl`]:ie==="rtl",[`${se}-picture-card-wrapper`]:u==="picture-card",[`${se}-picture-circle-wrapper`]:u==="picture-circle"}),Ae=Object.assign(Object.assign({},ue==null?void 0:ue.style),I);if(R==="drag"){const we=de(Se,se,`${se}-drag`,{[`${se}-drag-uploading`]:W.some(Oe=>Oe.status==="uploading"),[`${se}-drag-hover`]:V==="dragover",[`${se}-disabled`]:D,[`${se}-rtl`]:ie==="rtl"});return he(i.createElement("span",{className:je,ref:K},i.createElement("div",{className:we,style:Ae,onDrop:Y,onDragOver:Y,onDragLeave:Y},i.createElement(o1,Object.assign({},pe,{ref:q,className:`${se}-btn`}),i.createElement("div",{className:`${se}-drag-container`},j))),Pe()))}const Re=de(se,`${se}-select`,{[`${se}-disabled`]:D,[`${se}-hidden`]:!j}),ze=i.createElement("div",{className:Re,style:Ae},i.createElement(o1,Object.assign({},pe,{ref:q})));return he(u==="picture-card"||u==="picture-circle"?i.createElement("span",{className:je,ref:K},Pe(ze,!!j)):i.createElement("span",{className:je,ref:K},ze,Pe()))},GN=i.forwardRef(Cae);var xae=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 Sae=i.forwardRef((e,t)=>{const{style:n,height:r,hasControlInside:a=!1,children:l}=e,c=xae(e,["style","height","hasControlInside","children"]),u=Object.assign(Object.assign({},n),{height:r});return i.createElement(GN,Object.assign({ref:t,hasControlInside:a},c,{style:u,type:"drag"}),l)}),sp=GN;sp.Dragger=Sae;sp.LIST_IGNORE=$d;var $ae={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"},wae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:$ae}))},XN=i.forwardRef(wae),Eae={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"},Oae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Eae}))},jae=i.forwardRef(Oae),Rae={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"},Iae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Rae}))},i1=i.forwardRef(Iae),Nae={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"},Mae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Nae}))},YN=i.forwardRef(Mae),Tae={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"},Pae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Tae}))},l1=i.forwardRef(Pae),zae={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"},Dae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:zae}))},ef=i.forwardRef(Dae),_ae={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"},Aae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:_ae}))},Oi=i.forwardRef(Aae),Bae={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"},kae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Bae}))},UC=i.forwardRef(kae),Lae={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"},Hae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Lae}))},Fae=i.forwardRef(Hae),Vae={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"},Wae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Vae}))},Kae=i.forwardRef(Wae),Uae={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"},qae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Uae}))},Gae=i.forwardRef(qae),Xae={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"},Yae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Xae}))},XO=i.forwardRef(Yae),Qae={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"},Zae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Qae}))},ji=i.forwardRef(Zae),Jae={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"},eoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Jae}))},YO=i.forwardRef(eoe),toe={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"},noe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:toe}))},roe=i.forwardRef(noe),aoe={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"},ooe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:aoe}))},s1=i.forwardRef(ooe),ioe={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"},loe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:ioe}))},soe=i.forwardRef(loe),coe={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"},uoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:coe}))},doe=i.forwardRef(uoe),foe={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"},moe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:foe}))},voe=i.forwardRef(moe),goe={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"},poe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:goe}))},ag=i.forwardRef(poe),hoe={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"},boe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:hoe}))},qC=i.forwardRef(boe),yoe={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"},Coe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:yoe}))},QN=i.forwardRef(Coe),xoe={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"},Soe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:xoe}))},QO=i.forwardRef(Soe),$oe={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"},woe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:$oe}))},Eoe=i.forwardRef(woe),Ooe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"}}]},name:"fire",theme:"outlined"},joe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Ooe}))},tf=i.forwardRef(joe),Roe={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"},Ioe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Roe}))},c1=i.forwardRef(Ioe),Noe={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"},Moe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Noe}))},Toe=i.forwardRef(Moe),Poe={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"},zoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Poe}))},Doe=i.forwardRef(zoe),_oe={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"},Aoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:_oe}))},jf=i.forwardRef(Aoe),Boe={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"},koe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Boe}))},Loe=i.forwardRef(koe),Hoe={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"},Foe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Hoe}))},Voe=i.forwardRef(Foe),Woe={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"},Koe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Woe}))},nf=i.forwardRef(Koe),Uoe={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"},qoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Uoe}))},Goe=i.forwardRef(qoe),Xoe={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"},Yoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Xoe}))},rf=i.forwardRef(Yoe),Qoe={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"},Zoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Qoe}))},xs=i.forwardRef(Zoe),Joe={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"},eie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Joe}))},tie=i.forwardRef(eie),nie={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"},rie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:nie}))},Td=i.forwardRef(rie),aie={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"},oie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:aie}))},iie=i.forwardRef(oie),lie={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"},sie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:lie}))},wb=i.forwardRef(sie),cie={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"},uie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:cie}))},ZO=i.forwardRef(uie),die={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"},fie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:die}))},mie=i.forwardRef(fie),vie={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"},gie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:vie}))},u1=i.forwardRef(gie),pie={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"},hie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:pie}))},af=i.forwardRef(hie),bie={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"},yie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:bie}))},wl=i.forwardRef(yie),Cie={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"},xie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Cie}))},Sie=i.forwardRef(xie),$ie={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"},wie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:$ie}))},Eie=i.forwardRef(wie),Oie={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"},jie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Oie}))},JO=i.forwardRef(jie),Rie={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"},Iie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Rie}))},GC=i.forwardRef(Iie),Nie={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"},Mie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Nie}))},ZN=i.forwardRef(Mie),Tie={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"},Pie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Tie}))},og=i.forwardRef(Pie),zie={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"},Die=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:zie}))},ig=i.forwardRef(Die),_ie={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"},Aie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:_ie}))},Bie=i.forwardRef(Aie),kie={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"},Lie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:kie}))},JN=i.forwardRef(Lie),Hie={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"},Fie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Hie}))},Vie=i.forwardRef(Fie),Wie={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"},Kie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Wie}))},Xc=i.forwardRef(Kie);const Uie="0.1.21",qie={version:Uie};async function $t(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 Sr={list:()=>$t("/api/launchers"),running:()=>$t("/api/launchers/running"),create:e=>$t("/api/launchers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>$t(`/api/launchers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>$t(`/api/launchers/${e}`,{method:"DELETE"}),start:e=>$t(`/api/launchers/${e}/start`,{method:"POST"}),run:(e,t)=>$t(`/api/launchers/${e}/scripts/${t}/run`,{method:"POST"}),runInstall:e=>$t(`/api/launchers/${e}/install/run`,{method:"POST"}),stop:async(e,t)=>{try{return await $t(`/api/launchers/${e}/stop`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scriptId:t})})}catch{return $t(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/stop`,{method:"POST"})}},logs:(e,t)=>$t(`/api/launchers/${e}/scripts/${t}/logs`),errorLogs:(e,t)=>$t(`/api/launchers/${e}/scripts/${t}/logs/error`),clearLogs:(e,t)=>$t(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"}),packageScripts:e=>$t(`/api/launchers/${e}/package-scripts`),runPackageScript:(e,t)=>$t(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/run`,{method:"POST"}),packageScriptLogs:(e,t)=>$t(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`),packageScriptErrorLogs:(e,t)=>$t(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs/error`),clearPackageScriptLogs:(e,t)=>$t(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"})},Gie={list:()=>$t("/api/plugins")},rl={list:e=>$t(`/api/clipboard${e?`?date=${encodeURIComponent(e)}`:""}`),tagged:()=>$t("/api/clipboard/tagged"),remove:(e,t)=>$t(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{method:"DELETE"}),uploadImage:e=>$t("/api/clipboard/image",{method:"POST",headers:{"Content-Type":e.type||"image/png"},body:e}),updateTags:(e,t,n)=>$t(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/tags`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tags:n})}),copied:(e,t)=>$t(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/copied`,{method:"POST"})},bi={list:()=>$t("/api/group-tasks"),catalog:()=>$t("/api/group-tasks/catalog"),create:e=>$t("/api/group-tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>$t(`/api/group-tasks/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>$t(`/api/group-tasks/${e}`,{method:"DELETE"}),start:e=>$t(`/api/group-tasks/${e}/start`,{method:"POST"}),stop:e=>$t(`/api/group-tasks/${e}/stop`,{method:"POST"})},Eb={list:()=>$t("/api/port-diagnostics"),get:e=>$t(`/api/port-diagnostics/${encodeURIComponent(e)}`),kill:(e,t)=>$t("/api/port-diagnostics/kill",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({port:e,pid:t})})},eM={open:e=>$t("/api/settings/open-url",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})}),openPath:(e,t="")=>$t("/api/settings/open-editor",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,location:t})})},Vr={status:()=>$t("/api/settings"),selectDirectory:()=>$t("/api/settings/select-directory",{method:"POST"}),saveDomain:e=>$t("/api/settings/domain",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:e})}),saveJiraIssuePrefix:e=>$t("/api/settings/jira-issue-prefix",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({jiraIssuePrefix:e})}),saveDefaultEditor:e=>$t("/api/settings/default-editor",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultEditor:e})}),saveDefaultBrowser:e=>$t("/api/settings/default-browser",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultBrowser:e})}),saveAccessToken:(e,t)=>$t(`/api/settings/${encodeURIComponent(e)}-access-token`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t})}),saveClipboardEnabled:e=>$t("/api/settings/clipboard-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardImageEnabled:e=>$t("/api/settings/clipboard-image-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardDeduplicateMinutes:e=>$t("/api/settings/clipboard-deduplicate-minutes",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({minutes:e})})},iv={check:e=>$t("/api/pr-review/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prLink:e})}),myPrs:()=>$t("/api/pr-review/my-prs"),reviewPrs:()=>$t("/api/pr-review/review-prs"),comment:e=>$t("/api/pr-review/comment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},xc={list:()=>$t("/api/jira-filters"),create:e=>$t("/api/jira-filters",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>$t(`/api/jira-filters/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>$t(`/api/jira-filters/${e}`,{method:"DELETE"}),issues:e=>$t(`/api/jira-filters/${e}/issues`),cloneIssue:e=>$t("/api/jira-filters/issues/clone",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},Ca={list:()=>$t("/api/todos"),create:e=>$t("/api/todos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>$t(`/api/todos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>$t(`/api/todos/${e}`,{method:"DELETE"}),archive:e=>$t(`/api/todos/${e}/archive`,{method:"POST"}),unarchive:e=>$t(`/api/todos/${e}/unarchive`,{method:"POST"}),batch:(e,t)=>$t("/api/todos/batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,ids:t})})},Rc={list:()=>$t("/api/static-pages"),create:e=>$t("/api/static-pages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>$t(`/api/static-pages/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>$t(`/api/static-pages/${e}`,{method:"DELETE"})},Pd={list:()=>$t("/api/errors"),log:e=>$t("/api/errors",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),clear:()=>$t("/api/errors",{method:"DELETE"}),remove:e=>$t(`/api/errors/${e}`,{method:"DELETE"})},al={getData:()=>$t("/api/postman"),importCollection:e=>$t("/api/postman/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collectionJson:e})}),createCollection:e=>$t("/api/postman/collections",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),updateCollection:(e,t)=>$t(`/api/postman/collections/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),deleteCollection:e=>$t(`/api/postman/collections/${e}`,{method:"DELETE"}),saveEnvironments:e=>$t("/api/postman/environments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),sendRequest:e=>$t("/api/postman/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},Ob={status:()=>$t("/api/bookmark-sync/status"),preview:e=>$t(`/api/bookmark-sync/preview?mode=${encodeURIComponent(e)}`),sync:e=>$t("/api/bookmark-sync/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:e})})},dd={scan:e=>$t("/api/file-organizer/scan",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),execute:e=>$t("/api/file-organizer/execute",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),getHistory:()=>$t("/api/file-organizer/history"),undo:e=>$t("/api/file-organizer/undo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:e})}),browse:e=>$t("/api/file-organizer/browse",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})},ol={listApps:()=>$t("/api/branch-sync/apps"),createApp:e=>$t("/api/branch-sync/apps",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),updateApp:(e,t)=>$t(`/api/branch-sync/apps/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),deleteApp:e=>$t(`/api/branch-sync/apps/${e}`,{method:"DELETE"}),check:e=>$t("/api/branch-sync/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({app:e})}),createPr:e=>$t("/api/branch-sync/create-pr",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),createBranch:e=>$t("/api/branch-sync/create-branch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),getBranches:e=>$t(`/api/branch-sync/branches?repo=${encodeURIComponent(e)}`)},Xie="modulepreload",Yie=function(e){return"/"+e},e3={},tM=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let c=function(f){return Promise.all(f.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));a=c(n.map(f=>{if(f=Yie(f),f in e3)return;e3[f]=!0;const v=f.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${g}`))return;const p=document.createElement("link");if(p.rel=v?"stylesheet":Xie,v||(p.as="script"),p.crossOrigin="",p.href=f,d&&p.setAttribute("nonce",d),document.head.appendChild(p),v)return new Promise((y,x)=>{p.addEventListener("load",y),p.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${f}`)))})}))}function l(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return a.then(c=>{for(const u of c||[])u.status==="rejected"&&l(u.reason);return t().catch(l)})};async function nM(e,t,n){const r=URL.createObjectURL(e);try{const a=await new Promise((f,v)=>{const g=new Image;g.onload=()=>f(g),g.onerror=()=>v(new Error("Unable to read this image. Please choose a valid image file.")),g.src=r}),l=document.createElement("canvas"),c=Math.max(a.naturalWidth,a.naturalHeight);let u=1;t&&(u=t/c),n!=null&&n>0&&n<=100&&(u=u*(n/100)),l.width=Math.max(1,Math.round(a.naturalWidth*u)),l.height=Math.max(1,Math.round(a.naturalHeight*u));const d=l.getContext("2d",{willReadFrequently:!0});return d.drawImage(a,0,0,l.width,l.height),{imageData:d.getImageData(0,0,l.width,l.height),width:l.width,height:l.height}}finally{URL.revokeObjectURL(r)}}async function Qie(e,t={}){const{quality:n=75,progressive:r=!0,optimizeCoding:a=!0,autoSubsample:l=!0}=t,[{encode:c},{imageData:u}]=await Promise.all([tM(()=>import("./index-Dty-56mC.js"),[]),nM(e)]),d=await c(u,{quality:n,progressive:r,optimize_coding:a,auto_subsample:l}),f=new Blob([d],{type:"image/jpeg"}),v=(e.name||"clipboard-image.png").replace(/\.[^.]+$/,"")+".jpg";return new File([f],v,{type:"image/jpeg"})}const t3=[{value:"chrome",label:"Google Chrome"},{value:"edge",label:"Microsoft Edge"},{value:"safari",label:"Safari"}];function Zie(e=!0){return e?t3:t3.filter(t=>t.value!=="safari")}function Zr(e){e&&eM.open(e).catch(()=>{window.open(e,"_blank")})}function XC(e,t){if(!e||!t)return"";const n=e.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`https://${n.startsWith("jira.")?n:`jira.${n}`}/browse/${t.toUpperCase()}`}function Jie(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{Title:ele,Text:Sc,Paragraph:tle}=Xn,fd=()=>new Intl.DateTimeFormat("en-CA").format(new Date),nle=[{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 rle({value:e,domain:t,jiraIssuePrefix:n}){const r=[],a=/\[[^\]]+\]\(https?:\/\/[^\s)]+\)|https?:\/\/[^\s]+/g;let l=0;const c=(n||"").split(/[\s,]+/).filter(Boolean).map(f=>f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),u=c.length>0&&t?new RegExp(`\\b(?:${c.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,d=(f,v)=>{if(!u||!t)return f;const g=[];let p=0;u.lastIndex=0;for(const y of f.matchAll(u)){y.index>p&&g.push(f.slice(p,y.index));const x=y[0],S=XC(t,x);g.push(h.jsx("a",{href:S,target:"_blank",rel:"noreferrer",onClick:b=>{b.preventDefault(),Zr(S)},children:x},`${v}-${y.index}`)),p=y.index+x.length}return p<f.length&&g.push(f.slice(p)),g};for(const f of e.matchAll(a)){f.index>l&&r.push(...d(e.slice(l,f.index),`txt-${f.index}`));const v=f[0].match(/^\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)$/);if(v)r.push(h.jsx("a",{href:v[2],target:"_blank",rel:"noreferrer",onClick:g=>{g.preventDefault(),Zr(v[2])},children:v[1]},f.index));else{const g=f[0].replace(/[),.;:!?]+$/,"");r.push(h.jsx("a",{href:g,target:"_blank",rel:"noreferrer",onClick:p=>{p.preventDefault(),Zr(g)},children:g},f.index)),f[0].length>g.length&&r.push(f[0].slice(g.length))}l=f.index+f[0].length}return l<e.length&&r.push(...d(e.slice(l),"txt-end")),r}const n3=e=>e.text||e.preview||"";function Zl(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 ale(){const{message:e}=Ra.useApp(),[t,n]=i.useState(()=>{const X=localStorage.getItem("buddy_clipboard_enabled");return X!==null?X==="true":!0}),[r,a]=i.useState(!0),[l,c]=i.useState([]),[u,d]=i.useState(fd()),[f,v]=i.useState([]),[g,p]=i.useState([]),[y,x]=i.useState(null),[S,b]=i.useState(""),[$,w]=i.useState("all"),[E,R]=i.useState(null),[j,I]=i.useState(""),[O,M]=i.useState(""),[N,P]=i.useState(60),[B,L]=i.useState(!1),[k,_]=i.useState(!0);i.useEffect(()=>{Vr.status().then(X=>{if(X){if(X.isMac!==void 0&&L(X.isMac),X.clipboardEnabled!==void 0){const oe=X.clipboardEnabled!==!1;n(oe),localStorage.setItem("buddy_clipboard_enabled",String(oe))}X.clipboardImageEnabled!==void 0&&_(X.clipboardImageEnabled!==!1),X.clipboardDeduplicateMinutes!==void 0&&P(X.clipboardDeduplicateMinutes),X.domain&&I(X.domain),X.jiraIssuePrefix&&M(X.jiraIssuePrefix)}}).catch(()=>{}).finally(()=>a(!1))},[]);const H=async X=>{n(X),localStorage.setItem("buddy_clipboard_enabled",String(X));try{const ae=(await Vr.saveClipboardEnabled(X)).clipboardEnabled!==!1;n(ae),localStorage.setItem("buddy_clipboard_enabled",String(ae)),e.success(X?"Clipboard history enabled":"Clipboard history disabled")}catch(oe){e.error(oe.message)}},z=async X=>{_(X);try{const oe=await Vr.saveClipboardImageEnabled(X);oe&&oe.clipboardImageEnabled!==void 0&&_(oe.clipboardImageEnabled!==!1),e.success(X?"Image clipboard monitoring enabled":"Image clipboard monitoring disabled")}catch(oe){e.error(oe.message)}},D=async X=>{P(X);try{await Vr.saveClipboardDeduplicateMinutes(X),e.success("Duplicate filter window updated.")}catch(oe){e.error(oe.message)}},F=async X=>{try{const[oe,ae]=await Promise.all([rl.list(X),rl.tagged().catch(()=>({items:[]}))]);c(oe.dates),v(oe.items),p(ae.items||[])}catch(oe){e.error(oe.message)}},W=async(X,oe)=>{const ae=(oe||"").trim();if(!ae)return;const re=X.tags||[];if(re.includes(ae)){x(null);return}const Y=[...re,ae],ee=X.date||u;try{await rl.updateTags(ee,X.id,Y),v(ie=>ie.map(ue=>ue.id===X.id?{...ue,tags:Y}:ue)),p(ie=>ie.some(se=>se.id===X.id)?ie.map(se=>se.id===X.id?{...se,tags:Y}:se):[{...X,tags:Y,date:ee},...ie]),e.success("Tag added")}catch(ie){e.error(ie.message)}finally{x(null),b("")}},U=async(X,oe)=>{const re=(X.tags||[]).filter(ee=>ee!==oe),Y=X.date||u;try{await rl.updateTags(Y,X.id,re),v(ee=>ee.map(ie=>ie.id===X.id?{...ie,tags:re}:ie)),p(ee=>re.length===0?ee.filter(ie=>ie.id!==X.id):ee.map(ie=>ie.id===X.id?{...ie,tags:re}:ie)),e.success("Tag removed")}catch(ee){e.error(ee.message)}},V=i.useRef(fd());i.useEffect(()=>{if(!t)return;const X=()=>{const Y=fd();if(Y!==V.current){const ee=V.current;if(V.current=Y,u===ee)return d(Y),!0}return!1};X()||F(u);const ae=()=>{X()||F(u)};window.addEventListener("visibilitychange",ae),window.addEventListener("focus",ae);let re=null;return u===fd()&&(re=setInterval(()=>{document.visibilityState==="visible"&&F(u)},3e3)),()=>{window.removeEventListener("visibilitychange",ae),window.removeEventListener("focus",ae),re&&clearInterval(re)}},[u,t]);const G=async X=>{try{await rl.remove(u,X),await F(u),e.success("Clipboard entry deleted.")}catch(oe){e.error(oe.message)}},q=async X=>{const oe=X.date||u;if(X.imageFile)try{const re=await(await fetch(`${window.location.origin}/api/clipboard/image/${X.imageFile}`)).blob();await navigator.clipboard.write([new ClipboardItem({[re.type]:re})]),rl.copied(oe,X.id).catch(()=>{}),R(X.id),setTimeout(()=>{R(Y=>Y===X.id?null:Y)},1e3)}catch(ae){e.error("Failed to copy image: "+ae.message)}else navigator.clipboard.writeText(X.text||X.preview),rl.copied(oe,X.id).catch(()=>{}),R(X.id),setTimeout(()=>{R(ae=>ae===X.id?null:ae)},1e3)};i.useEffect(()=>{if(!t)return;const X=oe=>{const ae=document.activeElement;if(!(ae&&(ae.tagName==="INPUT"||ae.tagName==="TEXTAREA"||ae.isContentEditable))){if(oe.key==="ArrowLeft"){const re=[...new Set([...l,u])].sort(),Y=re.indexOf(u);Y<re.length-1&&Y!==-1&&d(re[Y+1])}else if(oe.key==="ArrowRight"){const re=[...new Set([...l,u])].sort(),Y=re.indexOf(u);Y>0&&d(re[Y-1])}}};return window.addEventListener("keydown",X),()=>window.removeEventListener("keydown",X)},[l,u,t]),i.useEffect(()=>{if(!t)return;const X=async oe=>{var Y;const ae=document.activeElement;if(ae&&(ae.tagName==="INPUT"||ae.tagName==="TEXTAREA"||ae.isContentEditable))return;const re=(Y=oe.clipboardData)==null?void 0:Y.items;if(re){for(const ee of re)if(ee.type.startsWith("image/")){const ie=ee.getAsFile();if(ie){try{e.loading({content:"Compressing and saving image from paste…",key:"paste-upload",duration:0});const ue=await Qie(ie);await rl.uploadImage(ue);const se=fd();d(se),await F(se),e.success({content:"Image pasted and saved to history!",key:"paste-upload"})}catch(ue){e.error({content:"Failed to save pasted image: "+ue.message,key:"paste-upload"})}break}}}};return window.addEventListener("paste",X),()=>window.removeEventListener("paste",X)},[u,t]);const K=l.reduce((X,oe)=>{var ee;const[ae,re,Y]=oe.split("-");return X[ae]||(X[ae]={}),(ee=X[ae])[re]||(ee[re]=[]),X[ae][re].push(Y),X},{}),Z=Object.entries(K).sort(([X],[oe])=>oe.localeCompare(X)).map(([X,oe])=>({value:X,label:X,children:Object.entries(oe).sort(([ae],[re])=>re.localeCompare(ae)).map(([ae,re])=>({value:ae,label:ae,children:re.sort().reverse().map(Y=>({value:Y,label:Y}))}))})),Q=i.useMemo(()=>$==="tagged"?g:$==="all"?f:$==="image"?f.filter(X=>!!X.imageFile):f.filter(X=>!X.imageFile&&Zl(n3(X),$,O)),[$,f,g,O]),te=i.useMemo(()=>{const X={all:f.length,tagged:g.length,jira:0,account:0,id:0,url:0,json:0,code:0,image:0};for(const oe of f)if(oe.imageFile)X.image++;else{const ae=n3(oe);Zl(ae,"jira",O)&&X.jira++,Zl(ae,"account")&&X.account++,Zl(ae,"id")&&X.id++,Zl(ae,"url")&&X.url++,Zl(ae,"json")&&X.json++,Zl(ae,"code")&&X.code++}return[{key:"all",label:`All (${X.all})`},{key:"tagged",label:`Tagged (${X.tagged})`},{key:"jira",label:`Jira (${X.jira})`},{key:"account",label:`Account (${X.account})`},{key:"id",label:`ID (${X.id})`},{key:"url",label:`Url (${X.url})`},{key:"json",label:`JSON (${X.json})`},{key:"code",label:`Code (${X.code})`},{key:"image",label:`Img (${X.image})`}]},[f,g,O]);return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx(Sc,{type:"secondary",children:"LOCAL CLIPBOARD"}),h.jsx(ele,{level:2,children:"Clipboard history"}),h.jsx(tle,{type:"secondary",children:"Saved locally and archived by date."})]}),h.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:8},children:[h.jsxs(vt,{size:16,align:"center",children:[h.jsx(Zd,{loading:r,checked:t,onChange:H,checkedChildren:"On",unCheckedChildren:"Off"}),h.jsx(su,{className:"clipboard-picker",disabled:!t||r,options:Z,value:u.split("-"),onChange:X=>(X==null?void 0:X.length)===3&&d(X.join("-")),placeholder:"Select date"})]}),h.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:6},children:[h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[h.jsx(Sc,{type:"secondary",style:{fontSize:12},children:"Deduplicate filter:"}),h.jsx(Fn,{size:"small",disabled:!t||r,value:N,onChange:D,style:{width:160},options:nle})]}),B&&h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[h.jsx(Sc,{type:"secondary",style:{fontSize:12},children:"Monitor image clipboard:"}),h.jsx(Zd,{size:"small",disabled:!t||r,checked:k,onChange:z,checkedChildren:"On",unCheckedChildren:"Off"})]})]})]})]}),t?h.jsxs(h.Fragment,{children:[h.jsx(Lo,{className:"clipboard-tabs",activeKey:$,onChange:w,items:te}),Q.length?h.jsx("div",{className:"clipboard-list",children:Q.map(X=>{const oe=X.date||u,ae=`${window.location.origin}/api/clipboard/${oe}/${X.id}`,re=new Date(X.createdAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return h.jsxs(yn,{size:"small",className:"clipboard-item",children:[h.jsxs("div",{children:[h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[h.jsx(Sc,{type:"secondary",children:re}),X.date&&X.date!==u&&h.jsx(qt,{style:{margin:0},children:X.date}),(X.tags||[]).map(Y=>h.jsx(qt,{color:"blue",closable:!0,onClose:ee=>{ee.preventDefault(),U(X,Y)},style:{margin:0},children:Y},Y)),h.jsx(Y1,{content:h.jsxs(vt.Compact,{style:{width:200},children:[h.jsx(sn,{size:"small",placeholder:"Tag name",value:S,onChange:Y=>b(Y.target.value),onPressEnter:()=>W(X,S)}),h.jsx(Ue,{size:"small",type:"primary",onClick:()=>W(X,S),children:"Add"})]}),title:"Add Tag",trigger:"click",open:y===X.id,onOpenChange:Y=>{x(Y?X.id:null),b("")},children:h.jsxs(qt,{style:{cursor:"pointer",borderStyle:"dashed",margin:0},children:[h.jsx(Yr,{})," Tag"]})})]}),X.imageFile?h.jsx("div",{style:{marginTop:8},children:h.jsx("img",{src:`${window.location.origin}/api/clipboard/image/${X.imageFile}`,alt:"Clipboard entry",style:{maxWidth:"100%",maxHeight:300,borderRadius:6,cursor:"pointer",border:"1px solid #eef0f6"},onClick:()=>window.open(`${window.location.origin}/api/clipboard/image/${X.imageFile}`,"_blank")})}):h.jsxs(h.Fragment,{children:[h.jsx("pre",{style:{marginTop:8},children:h.jsx(rle,{value:X.preview||X.text,domain:j,jiraIssuePrefix:O})}),X.contentFile&&h.jsxs("span",{className:"clipboard-original",children:[h.jsx("a",{href:ae,target:"_blank",rel:"noreferrer",children:"View original content"}),h.jsxs("a",{href:X.editorUrl,children:["Open in ",X.editorName||"editor"]})]})]})]}),h.jsxs("span",{className:"clipboard-actions",children:[h.jsx(_n,{title:E===X.id?"Copied!":"Copy",children:h.jsx(Ue,{type:"text",icon:E===X.id?h.jsx(js,{style:{color:"#52c41a"}}):h.jsx(ei,{}),onClick:()=>q(X)})}),h.jsx(_n,{title:"Delete",children:h.jsx(Ue,{type:"text",danger:!0,icon:h.jsx($r,{}),onClick:()=>G(X.id)})})]})]},X.id)})}):h.jsx(Bn,{description:`No ${$==="all"?"clipboard entries":`${$==="id"?"ID":$} entries`}${$==="tagged"?".":` for ${u}.`}`})]}):h.jsx(yn,{style:{marginTop:24,textAlign:"center",padding:"48px 0"},children:h.jsx(Bn,{image:h.jsx(og,{style:{fontSize:48,color:"#9ca3af"}}),description:h.jsxs("div",{style:{marginTop:8},children:[h.jsx(Sc,{strong:!0,style:{fontSize:16,display:"block",color:"#374151"},children:"Clipboard history is disabled"}),h.jsx(Sc,{type:"secondary",children:"Turn on the switch in the top-right corner to start capturing and viewing history."})]})})}),h.jsx(Ml.BackTop,{visibilityHeight:240})]})}const rM=[{value:"vscode",label:"VS Code"},{value:"devin",label:"Devin"},{value:"idea",label:"IntelliJ IDEA"}];function aM(e="vscode"){const t=rM.find(n=>n.value===e);return t?t.label:"VS Code"}function oM(e="vscode",t="",n="",r={}){if(!t)return"";const a=typeof r=="boolean"?r:!!(r!=null&&r.newWindow);let l="",c="";if(n){const u=n.split(":").filter(Boolean);u[0]&&(l=u[0]),u[1]&&(c=u[1])}if(e==="idea"){let u=`idea://open?file=${encodeURIComponent(t)}`;return l&&(u+=`&line=${l}`),c&&(u+=`&column=${c}`),u}return e==="devin"?`devin://file${encodeURI(t)}${n}`:a?`vscode://vscode.open-folder${encodeURI(t)}?forceNewWindow=true`:`vscode://file${encodeURI(t)}${n}`}const{Text:jb}=Xn;function ole({tasks:e,running:t,onCreate:n,onEdit:r,onStart:a,onStop:l,onRemove:c}){const u=[{title:"Name",dataIndex:"name",render:d=>h.jsx(jb,{strong:!0,children:d})},{title:"Scripts",dataIndex:"items",width:110,render:d=>h.jsxs(jb,{type:"secondary",children:[d.length," scripts"]})},{title:"Actions",width:236,render:(d,f)=>{const v=f.items.every(g=>t.has(`${g.launcherId}:${g.scriptId}`));return h.jsxs(vt,{children:[h.jsx(Ue,{size:"small",danger:v,icon:v?h.jsx(og,{}):h.jsx(u1,{}),onClick:()=>v?l(f):a(f),children:v?"Stop":"Start"}),h.jsx(Ue,{size:"small",onClick:()=>r(f),children:"Edit"}),h.jsx(Ue,{size:"small",danger:!0,icon:h.jsx($r,{}),onClick:()=>c(f),children:"Delete"})]})}}];return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"group-task-header",children:[h.jsx(jb,{type:"secondary",children:"Start selected scripts across multiple services."}),h.jsx(Ue,{type:"primary",icon:h.jsx(Yr,{}),onClick:n,children:"Add quick launch"})]}),e.length?h.jsx(mr,{className:"group-task-table",rowKey:"id",dataSource:e,columns:u,pagination:!1,size:"small"}):h.jsx(Bn,{description:"No quick launches yet.",className:"group-task-empty"})]})}const{Text:Jl}=Xn,md=(e,t)=>`${e}:${t}`,ile=()=>h.jsx("div",{style:{width:"0.8em",height:"0.8em",backgroundColor:"rgba(0,0,0,0.88)"}});function lle({form:e,editing:t,executor:n,running:r,errorCounts:a={},packageScripts:l,onRun:c,onRunInstall:u,onRunPackage:d,onStop:f,onLogs:v,onPackageLogs:g}){const p=!!(t&&[...r].some(S=>S.startsWith(`${t.id}:`))),[y,x]=i.useState(()=>p);return i.useEffect(()=>{p&&x(!0)},[t==null?void 0:t.id]),i.useEffect(()=>{p||x(!1)},[p]),h.jsx(Ht.List,{name:"scripts",children:(S,{add:b,remove:$})=>{const w=["npm","pnpm","yarn"].includes(n)?{id:"install",name:"Install",command:`${n} install${n==="npm"?" --legacy-peer-deps":""}`}:null,E=[...S.map(I=>({...I,key:`custom-${I.key}`,kind:"custom"})),...w?[{key:"install",kind:"install",script:w}]:[],...(l||[]).map(I=>({key:`package-${I.id}`,kind:"package",script:I}))],R=y?E.filter(I=>{const O=I.kind==="custom"?e.getFieldValue(["scripts",I.name]):I.script;return t&&(O==null?void 0:O.id)&&r.has(md(t.id,O.id))}):E,j=[{title:"Source",width:100,render:(I,O)=>h.jsx(qt,{color:O.kind==="package"?"blue":O.kind==="install"?"green":"default",children:O.kind==="package"?"Package":O.kind==="install"?"Executor":"Custom"})},{title:"Script name",width:200,render:(I,O)=>{var B;const M=O.kind==="custom"?e.getFieldValue(["scripts",O.name]):O.script,N=(M==null?void 0:M.name)===e.getFieldValue("startCommand"),P=t&&(M==null?void 0:M.id)&&r.has(md(t.id,M.id));return h.jsxs(vt,{direction:"vertical",size:1,style:{width:"100%"},children:[O.kind!=="custom"||P?h.jsxs(vt,{size:4,children:[h.jsx(Jl,{strong:!0,children:(M==null?void 0:M.name)||((B=O.script)==null?void 0:B.name)}),N&&h.jsx(wl,{className:"start-script-icon"})]}):h.jsx(Ht.Item,{noStyle:!0,name:[O.name,"name"],rules:[{required:!0,message:"Required"}],children:h.jsx(sn,{placeholder:"serve",allowClear:!0,suffix:N?h.jsx(wl,{className:"start-script-icon"}):null})}),P&&h.jsx(ja,{status:"success",text:h.jsx(Jl,{type:"secondary",style:{fontSize:11},children:"running"})})]})}},{title:"Command",render:(I,O)=>{const M=O.kind==="custom"?e.getFieldValue(["scripts",O.name]):O.script,N=t&&(M==null?void 0:M.id)&&r.has(md(t.id,M.id));return O.kind==="package"?h.jsxs(vt,{direction:"vertical",size:0,children:[h.jsxs(Jl,{code:!0,children:[n," run ",O.script.name]}),h.jsx(Jl,{type:"secondary",style:{fontSize:12},children:O.script.command})]}):O.kind==="install"?h.jsx(Jl,{code:!0,children:O.script.command}):N?h.jsx(Jl,{code:!0,children:M==null?void 0:M.command}):h.jsx(Ht.Item,{noStyle:!0,name:[O.name,"command"],rules:[{required:!0,message:"Required"}],children:h.jsx(sn,{placeholder:"npm run dev",allowClear:!0})})}},{title:"Actions",width:132,render:(I,O)=>{const M=O.kind==="custom"?e.getFieldValue(["scripts",O.name]):O.script,N=t&&(M==null?void 0:M.id)&&r.has(md(t.id,M.id)),P=t&&(M!=null&&M.id)&&a[md(t.id,M.id)]||0;return h.jsxs(vt,{size:2,children:[t&&h.jsx(_n,{title:N?"Stop":"Start",children:h.jsx(Ue,{type:"text",danger:N,icon:N?h.jsx(ile,{}):h.jsx(mie,{}),onClick:()=>N?f(M):O.kind==="package"?d(M):O.kind==="install"?u(M):c(M),disabled:!(M!=null&&M.id)})}),h.jsx(_n,{title:"Logs",children:h.jsx(ja,{count:P,size:"small",offset:[-2,2],children:h.jsx(Ue,{type:"text",icon:h.jsx(uu,{}),onClick:()=>O.kind==="package"?g(M):v(M),disabled:!t||!(M!=null&&M.id)})})}),O.kind==="custom"&&!N&&h.jsx(_n,{title:"Remove",children:h.jsx(Ue,{type:"text",danger:!0,icon:h.jsx($r,{}),onClick:()=>$(O.name)})})]})}}];return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"script-header",children:[h.jsx(xC,{orientation:"left",children:"Scripts"}),h.jsxs(vt,{size:"middle",align:"center",children:[h.jsxs("label",{style:{display:"inline-flex",alignItems:"center",gap:6,cursor:"pointer",userSelect:"none"},children:[h.jsx(Zd,{size:"small",checked:y,onChange:x,disabled:!t}),h.jsx(Jl,{type:"secondary",style:{fontSize:13},children:"Show running only"})]}),h.jsx(Ue,{icon:h.jsx(Yr,{}),onClick:()=>{x(!1),b({name:"",command:""})},children:"Add script"})]})]}),h.jsx(mr,{size:"small",rowKey:"key",pagination:!1,loading:l===null,dataSource:R,columns:j})]})}})}const sle=e=>h.jsx("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"currentColor",style:{verticalAlign:"-0.125em",...e.style},...e,children:h.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 cle(e){if(!e)return null;const t=e.toLowerCase();return t.includes("bitbucket")?h.jsx(sle,{style:{color:"#2584FF"}}):t.includes("github")?h.jsx(Toe,{style:{color:"#24292e"}}):t.includes("gitlab")?h.jsx(Doe,{style:{color:"#fc6d26"}}):h.jsx(jf,{style:{color:"#1890ff"}})}function iM({repoUrl:e,style:t}){if(!e)return null;const n=cle(e);return n?h.jsx(_n,{title:"Open repository in browser",children:h.jsx(Ue,{type:"text",size:"small",icon:n,onClick:r=>{r.preventDefault(),r.stopPropagation(),Zr(e)},style:{padding:0,width:20,height:20,minWidth:20,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:4,...t}})}):null}const ule=()=>({alias:"",folder:"",groupName:"",executor:"npm",startCommand:void 0,scripts:[]});function dle({open:e,editing:t,groups:n,running:r,errorCounts:a={},onCancel:l,onSave:c,onRun:u,onRunInstall:d,onRunPackage:f,onStop:v,onLogs:g,onDelete:p}){const{message:y,modal:x}=Ra.useApp(),[S]=Ht.useForm(),[b,$]=i.useState(null),[w,E]=i.useState(!1),R=async()=>{E(!0);try{const O=await Vr.selectDirectory();if(O&&O.path&&(S.setFieldValue("folder",O.path),!S.getFieldValue("alias"))){const N=O.path.split(/[/\\]/).filter(Boolean);N.length>0&&S.setFieldValue("alias",N[N.length-1])}}catch(O){y.error(O.message)}finally{E(!1)}},j=()=>{x.confirm({title:"Delete Service",content:`Are you sure you want to delete service "${t==null?void 0:t.alias}"?`,okText:"Delete",okButtonProps:{type:"primary",danger:!0},cancelText:"Cancel",onOk:async()=>{try{await p(t)}catch(O){y.error(O.message)}}})};i.useEffect(()=>{e&&(S.resetFields(),S.setFieldsValue(t?{...t,startCommand:t.startCommand||void 0,scripts:t.scripts}:ule()),$(t?null:[]),t&&Sr.packageScripts(t.id).then(O=>$(O.scripts)).catch(()=>$([])))},[e,t,S]);const I=async()=>{try{const O=(S.getFieldValue("scripts")||[]).filter(P=>{var B,L;return((B=P==null?void 0:P.name)==null?void 0:B.trim())||((L=P==null?void 0:P.command)==null?void 0:L.trim())});S.setFieldValue("scripts",O);const M=await S.validateFields(["alias","folder","groupName","startCommand"]),N={...S.getFieldsValue(!0),...M,scripts:O};await c(N)}catch(O){if(O!=null&&O.errorFields)return;y.error(O.message)}};return h.jsx(ar,{title:t?h.jsxs(vt,{align:"center",size:6,children:[h.jsxs("span",{children:["Service details · ",t.alias]}),h.jsx(iM,{repoUrl:t.repoUrl})]}):"Add service",open:e,onCancel:l,onOk:I,okText:t?"Save":"Save service",width:860,destroyOnClose:!0,footer:h.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[t?h.jsx(Ue,{type:"primary",danger:!0,onClick:j,children:"Delete service"}):h.jsx("div",{}),h.jsxs(vt,{children:[h.jsx(Ue,{onClick:l,children:"Cancel"}),h.jsx(Ue,{type:"primary",onClick:I,children:t?"Save":"Save service"})]})]}),children:h.jsxs(Ht,{form:S,layout:"vertical",children:[h.jsx(Fv,{className:"service-config",defaultActiveKey:t?[]:["configuration"],items:[{key:"configuration",label:"Service configuration",children:h.jsxs(Ro,{gutter:[16,0],children:[h.jsx(Qn,{xs:24,sm:12,children:h.jsx(Ht.Item,{label:"Name",name:"alias",rules:[{required:!0}],children:h.jsx(sn,{placeholder:"Service name",allowClear:!0})})}),h.jsx(Qn,{xs:24,sm:12,children:h.jsx(Ht.Item,{label:"Project folder",name:"folder",rules:[{required:!0}],children:h.jsx(sn,{prefix:h.jsx(Gc,{style:{color:"#8c8c8c"}}),suffix:h.jsx(Ue,{type:"text",size:"small",icon:h.jsx(Gc,{}),loading:w,onClick:R,style:{fontSize:12,padding:"0 4px"},children:"Browse"}),placeholder:"Project folder path",allowClear:!0})})}),h.jsx(Qn,{xs:24,sm:8,children:h.jsx(Ht.Item,{label:"Group",name:"groupName",children:h.jsx(Wv,{options:n.map(O=>({value:O})),placeholder:"Group name",allowClear:!0})})}),h.jsx(Qn,{xs:24,sm:8,children:h.jsx(Ht.Item,{label:"Executor",name:"executor",rules:[{required:!0}],children:h.jsx(Wv,{options:["npm","pnpm","yarn"].map(O=>({value:O})),placeholder:"npm",allowClear:!0})})}),h.jsx(Qn,{xs:24,sm:8,children:h.jsx(Ht.Item,{noStyle:!0,shouldUpdate:(O,M)=>O.scripts!==M.scripts,children:()=>{const O=(S.getFieldValue("scripts")||[]).map(P=>P==null?void 0:P.name).filter(Boolean),M=(b||[]).map(P=>P.name),N=[...new Set([...O,...M])].map(P=>({label:P,value:P}));return h.jsx(Ht.Item,{label:"Start script name",name:"startCommand",children:h.jsx(Fn,{placeholder:"Select start script",allowClear:!0,options:N})})}})})]})}]}),h.jsx(Ht.Item,{noStyle:!0,shouldUpdate:(O,M)=>O.executor!==M.executor||O.startCommand!==M.startCommand||O.scripts!==M.scripts,children:()=>h.jsx(lle,{form:S,editing:t,executor:S.getFieldValue("executor")||"npm",running:r,errorCounts:a,packageScripts:b,onRun:O=>u(t,O),onRunInstall:()=>d(t),onRunPackage:O=>f(t,O),onStop:O=>v(t,O.id),onLogs:O=>g(t,O),onPackageLogs:O=>g(t,O,!0)})})]})})}const{Text:fle}=Xn;function mle({open:e,editingGroupTask:t,groupCatalog:n,onCancel:r,onSave:a}){const{message:l}=Ra.useApp(),[c]=Ht.useForm();i.useEffect(()=>{e&&(c.resetFields(),c.setFieldsValue({name:(t==null?void 0:t.name)||"",items:(t==null?void 0:t.items.map(f=>`${f.launcherId}|${f.scriptId}`))||[]}))},[e,t,c]);const u=i.useMemo(()=>Object.entries(n.reduce((f,v)=>{const g=v.groupName||"Ungrouped";return(f[g]||(f[g]=[])).push(v),f},{})).sort(([f],[v])=>f.localeCompare(v)).map(([f,v])=>({key:f,label:f,children:h.jsx("div",{className:"group-task-projects",children:v.map(g=>h.jsx(yn,{size:"small",title:g.alias,children:h.jsx(vt,{direction:"vertical",children:g.scripts.map(p=>h.jsxs(Qr,{value:`${g.id}|${p.id}`,children:[p.name," ",h.jsxs(fle,{type:"secondary",children:["(",p.source,")"]})]},p.id))})},g.id))})})),[n]),d=async()=>{try{const f=await c.validateFields(),v={name:f.name,items:f.items.map(g=>{const[p,y]=g.split("|");return{launcherId:p,scriptId:y}})};await a(v)}catch(f){f!=null&&f.errorFields||l.error(f.message)}};return h.jsx(ar,{title:t?`Edit quick launch · ${t.name}`:"Add quick launch",open:e,onCancel:r,onOk:d,okText:t?"Save changes":"Save quick launch",width:760,destroyOnClose:!0,children:h.jsxs(Ht,{form:c,layout:"vertical",children:[h.jsx(Ht.Item,{label:"Name",name:"name",rules:[{required:!0}],children:h.jsx(sn,{placeholder:"Start local stack",allowClear:!0})}),h.jsx(Ht.Item,{label:"Scripts",name:"items",rules:[{required:!0,message:"Select at least one script."}],children:h.jsx(Qr.Group,{className:"group-task-selector",children:h.jsx(Lo,{items:u})})})]})})}const r3={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 d1({value:e,editor:t}){const[n,r]=i.useState(t||"vscode"),[a,l]=i.useState(""),[c,u]=i.useState("");i.useEffect(()=>{t&&r(t),Vr.status().then(g=>{g!=null&&g.defaultEditor&&!t&&r(g.defaultEditor),g!=null&&g.domain&&l(g.domain),g!=null&&g.jiraIssuePrefix&&u(g.jiraIssuePrefix)}).catch(()=>{})},[t]);const d=(c||"").split(/[\s,]+/).filter(Boolean).map(g=>g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),f=d.length>0&&a?new RegExp(`\\b(?:${d.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,v=(g,p)=>{let y="";const x=(w,E)=>w.split(/(\u001b\[[0-9;]*m)/g).map((j,I)=>{const O=j.match(/^\u001b\[([0-9;]*)m$/);if(O){const N=O[1].split(";").map(Number);return y=N.includes(0)?"":r3[N.find(P=>r3[P])]||y,null}if(!j)return null;const M=y||(/\b(error|failed|fatal|exception|TS\d{4,5})\b/i.test(j)?"log-error":/\b(warn|warning)\b/i.test(j)?"log-warning":/\b(success|ready|started|listening)\b/i.test(j)?"log-success":"");return h.jsx("span",{className:M,children:j},`${E}-${I}`)}),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,b=f&&f.test(g);return!g.includes("http")&&!g.includes("/")&&!b?x(g,`${p}-0`):g.split(S).map((w,E)=>{if(!w)return null;const R=`${p}-${E}`;if(/^https?:\/\//.test(w.replace(/\u001b\[[0-9;]*m/g,""))){const I=w.replace(/\u001b\[[0-9;]*m/g,""),O=I.replace(/[),.;:!?]+$/,""),M=I.slice(O.length);return h.jsxs("span",{children:[h.jsx("a",{className:"log-link",href:O,target:"_blank",rel:"noreferrer",onClick:N=>{N.preventDefault(),Zr(O)},children:x(w.slice(0,w.length-M.length),`${R}-url`)}),M&&x(M,`${R}-suf`)]},R)}const j=w.replace(/\u001b\[[0-9;]*m/g,"");if(j.startsWith("/")){const[,I,O=""]=j.match(/^(.*?)(:\d+(?::\d+)?)?$/)||[];if(I){const M=oM(n,I,O);return h.jsx("a",{className:"log-link",href:M,target:"_blank",rel:"noreferrer",title:`Open in ${aM(n)}`,children:x(w,R)},R)}}if(f&&a&&(f.lastIndex=0,f.test(j))){const I=[];let O=0;f.lastIndex=0;for(const M of j.matchAll(f)){M.index>O&&I.push(x(j.slice(O,M.index),`${R}-sub-${M.index}`));const N=M[0],P=XC(a,N);I.push(h.jsx("a",{className:"log-link",href:P,target:"_blank",rel:"noreferrer",onClick:B=>{B.preventDefault(),Zr(P)},children:N},`${R}-jira-${M.index}`)),O=M.index+N.length}return O<j.length&&I.push(x(j.slice(O),`${R}-sub-end`)),h.jsx("span",{children:I},R)}return x(w,R)})};return h.jsx("div",{className:"log-output",role:"log",children:e.split(`
|
|
497
497
|
`).map((g,p)=>h.jsx("div",{className:"log-line",children:h.jsx("code",{children:v(g,p)})},p))})}function vle({open:e,logTarget:t,onCancel:n}){var d;const[r,a]=i.useState("output"),[l,c]=i.useState("");i.useEffect(()=>{e&&(a("output"),c("Loading…"))},[e,t]),i.useEffect(()=>{if(!e||!t)return;const f=async()=>{try{const g=t.package?r==="error"?await Sr.packageScriptErrorLogs(t.launcher.id,t.script.name):await Sr.packageScriptLogs(t.launcher.id,t.script.name):r==="error"?await Sr.errorLogs(t.launcher.id,t.script.id):await Sr.logs(t.launcher.id,t.script.id);c(g.log||(r==="error"?"No error logs yet.":"No logs yet."))}catch(g){c(g.message)}};f();const v=setInterval(f,1e3);return()=>clearInterval(v)},[e,t,r]);const u=async()=>{if(t)try{t.package?await Sr.clearPackageScriptLogs(t.launcher.id,t.script.name):await Sr.clearLogs(t.launcher.id,t.script.id),c(r==="error"?"No error logs yet.":"No logs yet.")}catch{}};return h.jsx(ar,{title:t?`${(d=t.launcher)!=null&&d.alias?`${t.launcher.alias} / `:""}${t.script.name} · Logs`:"Logs",open:e,onCancel:n,footer:null,width:1080,zIndex:1200,children:h.jsx(Lo,{activeKey:r,onChange:a,tabBarExtraContent:t&&h.jsxs(vt,{children:[h.jsx(Ue,{icon:h.jsx(Kae,{}),onClick:u,children:"Clear log"}),h.jsx(Ue,{icon:h.jsx(jf,{}),onClick:()=>{const f=t.package?`#/logs/${t.launcher.id}/pkg/${encodeURIComponent(t.script.name)}`:`#/logs/${t.launcher.id}/${encodeURIComponent(t.script.id)}`;window.open(f,"_blank")},children:"Open in new tab"})]}),items:[{key:"output",label:"Logs",children:h.jsx(d1,{value:l})},{key:"error",label:"Error logs",children:h.jsx(d1,{value:l})}]})})}const{Title:gle,Text:a3,Paragraph:ple}=Xn;function hle({launchers:e,running:t,errorCounts:n={},refresh:r,loading:a}){const{message:l}=Ra.useApp(),[c,u]=i.useState("all"),[d,f]=i.useState([]),[v,g]=i.useState([]),[p,y]=i.useState(!1),[x,S]=i.useState(!1),[b,$]=i.useState(null),[w,E]=i.useState(!1),[R,j]=i.useState(null),[I,O]=i.useState(!1),[M,N]=i.useState(null),[P,B]=i.useState("vscode");i.useEffect(()=>{bi.list().then(f).catch(ae=>l.error(ae.message)),Vr.status().then(ae=>{ae!=null&&ae.defaultEditor&&B(ae.defaultEditor)}).catch(()=>{})},[]);const L=i.useMemo(()=>[...new Set(e.map(ae=>ae.groupName).filter(Boolean))].sort((ae,re)=>ae.localeCompare(re)),[e]),k=c==="all"?e:e.filter(ae=>ae.groupName===c),_=(ae=null)=>{j(ae),E(!0)},H=async ae=>{if(R){const re=await Sr.update(R.id,ae);j(re)}else await Sr.create(ae),E(!1);l.success("Saved"),await r()},z=async ae=>{try{const re=[...t].filter(Y=>Y.startsWith(`${ae.id}:`));if(re.length>0){const Y=re.map(ee=>ee.slice(`${ae.id}:`.length));await Promise.all(Y.map(ee=>Sr.stop(ae.id,ee)))}await Sr.remove(ae.id),E(!1),l.success("Deleted"),await r()}catch(re){l.error(re.message)}},D=async(ae,re)=>{try{await Sr.run(ae.id,re.id),await r()}catch(Y){l.error(Y.message)}},F=async ae=>{try{await Sr.runInstall(ae.id),await r()}catch(re){l.error(re.message)}},W=async(ae,re)=>{try{await Sr.runPackageScript(ae.id,re.name),await r()}catch(Y){l.error(Y.message)}},U=(ae,re,Y=!1)=>{N({launcher:ae,script:re,package:Y}),O(!0)},V=async ae=>{try{await Sr.start(ae.id),await r()}catch(re){l.warning(re.message)}},G=async(ae,re)=>{try{await Sr.stop(ae.id,re),await r()}catch(Y){await r(),l.error(Y.message)}},q=async(ae,re)=>{try{await Promise.all(re.map(Y=>Sr.stop(ae.id,Y))),await r()}catch(Y){await r(),l.error(Y.message)}},K=async(ae=null)=>{if($(ae),S(!0),!v.length)try{g(await bi.catalog())}catch(re){l.error(re.message)}},Z=async ae=>{b?await bi.update(b.id,ae):await bi.create(ae),S(!1),f(await bi.list())},Q=async ae=>{const re=`group-task-${ae.id}`;l.loading({content:`Starting ${ae.name}…`,key:re,duration:0});try{const Y=await bi.start(ae.id),ee=Y.results.filter(ie=>ie.error);ee.length?l.warning({content:`${Y.results.length-ee.length} started, ${ee.length} failed.`,key:re}):l.success({content:`${Y.results.length} scripts started.`,key:re}),await r()}catch(Y){l.error({content:Y.message,key:re})}},te=async ae=>{const re=`group-task-${ae.id}`;l.loading({content:`Stopping ${ae.name}…`,key:re,duration:0});try{const ee=(await bi.stop(ae.id)).results.filter(ie=>ie.ok).length;l.success({content:`${ee} scripts stopped.`,key:re}),await r()}catch(Y){l.error({content:Y.message,key:re})}},X=async ae=>{try{await bi.remove(ae.id),f(await bi.list())}catch(re){l.error(re.message)}},oe=[{title:"Service",dataIndex:"alias",render:(ae,re)=>h.jsxs(vt,{size:8,align:"center",children:[h.jsx("a",{href:oM(P,re.folder,"",{newWindow:!0}),title:`Open ${re.folder} in ${aM(P)}`,onClick:Y=>{Y.preventDefault(),Y.stopPropagation(),eM.openPath(re.folder)},style:{fontWeight:600},children:ae}),h.jsx(iM,{repoUrl:re.repoUrl}),re.branch&&h.jsx(a3,{code:!0,style:{margin:0},children:re.branch})]})},{title:"Scripts",width:170,align:"center",render:(ae,re)=>{const Y=[...t].filter(ue=>ue.startsWith(`${re.id}:`)).length,ee=re.scripts.length+(re.packageScriptCount||0),ie=Object.entries(n).filter(([ue])=>ue.startsWith(`${re.id}:`)).reduce((ue,[,se])=>ue+(se||0),0);return h.jsxs(vt,{size:8,children:[h.jsx(ja,{status:Y?"success":"default",text:`${Y} / ${ee} running`}),ie>0&&h.jsx(ja,{count:ie,overflowCount:999,style:{backgroundColor:"#ff4d4f"}})]})}},{title:"Action",width:108,align:"center",render:(ae,re)=>{const Y=[...t].filter(ie=>ie.startsWith(`${re.id}:`)),ee=Y.length>0;return h.jsx(Ue,{size:"small",type:ee?"default":"primary",danger:ee,icon:ee?h.jsx(og,{}):h.jsx(u1,{}),onClick:ie=>{ie.stopPropagation(),ee?q(re,Y.map(ue=>ue.slice(`${re.id}:`.length))):V(re)},children:ee?"Stop":"Start"})}}];return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx(a3,{type:"secondary",children:"SERVICES"}),h.jsx(gle,{level:2,children:"Launcher"}),h.jsx(ple,{type:"secondary",children:"Manage and run local project scripts."})]}),h.jsxs(vt,{children:[h.jsx(Ue,{onClick:()=>y(!0),children:"Quick Launch"}),h.jsx(Ue,{type:"primary",icon:h.jsx(Yr,{}),onClick:()=>_(),children:"Add service"})]})]}),a?h.jsx("div",{style:{padding:"80px 0",textAlign:"center"},children:h.jsx(la,{size:"large"})}):e.length?h.jsxs(h.Fragment,{children:[d.length>0&&h.jsx("div",{className:"quick-launch-bar",style:{marginBottom:20,padding:"12px 16px",background:"#fff",borderRadius:8,border:"1px solid #e4e8f1",boxShadow:"0 2px 8px rgba(31, 42, 68, 0.03)"},children:h.jsxs(vt,{wrap:!0,size:"middle",children:[h.jsx("span",{style:{fontSize:11,color:"#727b94",fontWeight:750,textTransform:"uppercase",letterSpacing:"0.08em"},children:"Quick Launch:"}),d.map(ae=>{const re=ae.items.every(Y=>t.has(`${Y.launcherId}:${Y.scriptId}`));return h.jsxs(Ue,{type:re?"default":"primary",danger:re,icon:re?h.jsx(og,{}):h.jsx(u1,{}),onClick:()=>re?te(ae):Q(ae),children:[re?"Stop":"Start"," ",ae.name]},ae.id)})]})}),h.jsx(Lo,{activeKey:c,onChange:u,className:"group-tabs",items:[{key:"all",label:`All (${e.length})`},...L.map(ae=>({key:ae,label:`${ae} (${e.filter(re=>re.groupName===ae).length})`}))]}),k.length?h.jsx(mr,{className:"launcher-table",rowKey:"id",dataSource:k,columns:oe,pagination:!1,onRow:ae=>({onClick:()=>_(ae)})}):h.jsx(Bn,{description:"No services in this group."})]}):h.jsx(Bn,{description:"No services yet",children:h.jsx(Ue,{type:"primary",onClick:()=>_(),children:"Add service"})}),h.jsx(dle,{open:w,editing:R,groups:L,running:t,errorCounts:n,onCancel:()=>E(!1),onSave:H,onRun:D,onRunInstall:F,onRunPackage:W,onStop:G,onLogs:U,onDelete:z}),h.jsx(ar,{title:"Quick Launch",open:p,onCancel:()=>y(!1),footer:null,width:760,destroyOnClose:!0,children:h.jsx(ole,{tasks:d,running:t,onCreate:()=>K(),onEdit:K,onStart:Q,onStop:te,onRemove:X})}),h.jsx(mle,{open:x,editingGroupTask:b,groupCatalog:v,onCancel:()=>S(!1),onSave:Z}),h.jsx(vle,{open:I,logTarget:M,onCancel:()=>O(!1)})]})}const{Title:ble,Text:Uo,Paragraph:yle}=Xn;function Cle({refreshLaunchers:e}){const[t,n]=i.useState([]),[r,a]=i.useState(!1),[l,c]=i.useState(null),[u,d]=i.useState(!1),[f,v]=i.useState(!1),[g,p]=i.useState(null),y=async()=>{a(!0);try{n((await Eb.list()).ports)}catch($){Hn.error($.message)}finally{a(!1)}};i.useEffect(()=>{y()},[]);const x=async()=>{if(l){d(!0);try{const $=(await Eb.get(l)).process;p($),v(!0)}catch($){Hn.error($.message)}finally{d(!1)}}},S=async({port:$,pid:w})=>{try{await Eb.kill($,w),Hn.success(`Process on port ${$} was killed.`),await y(),e&&await e()}catch(E){Hn.error(E.message)}},b=[{title:"Port",dataIndex:"port",width:100,render:$=>h.jsx(Uo,{code:!0,children:$})},{title:"Last used",dataIndex:"launcher",render:($,w)=>h.jsxs(vt,{direction:"vertical",size:0,children:[h.jsx(Uo,{strong:!0,children:$}),h.jsx(Uo,{type:"secondary",children:w.script})]})},{title:"Process",dataIndex:"command",render:($,w)=>h.jsxs(vt,{direction:"vertical",size:0,children:[h.jsx(Uo,{code:!0,children:w.currentCommand||$}),h.jsxs(Uo,{type:"secondary",children:["PID ",w.currentPid||w.pid]})]})},{title:"Status",width:170,render:($,w)=>w.ghost?h.jsx(qt,{color:"error",children:"Ghost process"}):w.listening?h.jsx(qt,{color:"success",children:"Script running"}):w.reused?h.jsx(qt,{color:"warning",children:"Port reused"}):h.jsx(qt,{children:"Port released"})},{title:"Action",width:100,render:($,w)=>w.listening||w.reused?h.jsx(Ya,{title:`Kill process on port ${w.port}?`,description:"The process currently listening on this port will be stopped.",okText:"Kill",okButtonProps:{danger:!0},onConfirm:()=>S({port:w.port,pid:w.currentPid}),children:h.jsx(Ue,{danger:!0,icon:h.jsx($r,{}),children:"Kill"})}):h.jsx(Ue,{disabled:!0,icon:h.jsx($r,{}),children:"Kill"})}];return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx(Uo,{type:"secondary",children:"DIAGNOSTICS"}),h.jsx(ble,{level:2,children:"Port Diagnostic"}),h.jsx(yle,{type:"secondary",children:"Every port observed while a recent Launcher script was running. Ghost processes still listen after their script has stopped."})]}),h.jsx(Ue,{icon:h.jsx(ys,{}),onClick:y,loading:r,children:"Refresh"})]}),h.jsxs(yn,{className:"port-manual-query",size:"small",children:[h.jsxs(vt,{wrap:!0,children:[h.jsx(Uo,{strong:!0,children:"Query port"}),h.jsx(Zv,{min:1,max:65535,controls:!1,value:l,onChange:c,onPressEnter:x,placeholder:"e.g. 3000"}),h.jsx(Ue,{type:"primary",onClick:x,loading:u,disabled:!l,children:"Query"})]}),f&&h.jsx("div",{className:"port-query-result",children:g?h.jsxs(vt,{wrap:!0,children:[h.jsx(qt,{color:"success",children:"Listening"}),h.jsxs(Uo,{code:!0,children:["PID ",g.pid]}),h.jsx(Uo,{code:!0,children:g.command}),h.jsx(Ya,{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:h.jsx(Ue,{danger:!0,icon:h.jsx($r,{}),children:"Kill"})})]}):h.jsxs(Uo,{type:"secondary",children:["No process is listening on port ",l,"."]})})]}),h.jsx(mr,{className:"port-diagnostic-table",rowKey:$=>`${$.startedAt}-${$.port}-${$.pid}`,loading:r,dataSource:t,columns:b,pagination:!1,locale:{emptyText:h.jsx(Bn,{description:"No ports have been observed from Launcher scripts yet."})}})]})}const{Title:lv,Paragraph:Rb,Text:xo}=Xn,Ib=[{id:"bitbucket",label:"Bitbucket"},{id:"jira",label:"Jira"},{id:"confluence",label:"Confluence"}];function xle({onStaticPagesChange:e}){const[t]=Ht.useForm(),[n]=Ht.useForm(),[r,a]=i.useState({}),[l,c]=i.useState(!1),[u,d]=i.useState(!1),[f,v]=i.useState([]),[g,p]=i.useState(!1),[y,x]=i.useState(null),[S,b]=i.useState(!1),$=async()=>{try{const N=await Rc.list();v(N)}catch(N){Hn.error(N.message)}};i.useEffect(()=>{Vr.status().then(N=>{a(N),t.setFieldsValue({domain:N.domain,jiraIssuePrefix:N.jiraIssuePrefix||"",defaultEditor:N.defaultEditor||"vscode",defaultBrowser:N.defaultBrowser||"chrome"})}).catch(N=>Hn.error(N.message)),$()},[t]);const w=N=>r[`${N}TokenConfigured`],E=async()=>{try{await t.validateFields(["domain"]),c(!0);const N=t.getFieldsValue();if(N.domain!=null){const P=await Vr.saveDomain(N.domain);a(B=>({...B,...P})),t.setFieldValue("domain",P.domain)}if(N.jiraIssuePrefix!=null){const P=await Vr.saveJiraIssuePrefix(N.jiraIssuePrefix);a(B=>({...B,...P})),t.setFieldValue("jiraIssuePrefix",P.jiraIssuePrefix)}if(N.defaultEditor!=null){const P=await Vr.saveDefaultEditor(N.defaultEditor);a(B=>({...B,...P})),t.setFieldValue("defaultEditor",P.defaultEditor)}if(N.defaultBrowser!=null){const P=await Vr.saveDefaultBrowser(N.defaultBrowser);a(B=>({...B,...P})),t.setFieldValue("defaultBrowser",P.defaultBrowser)}for(const{id:P}of Ib)if(N[P]){const B=await Vr.saveAccessToken(P,N[P]);a(L=>({...L,...B})),t.resetFields([P])}c(!1),d(!0),setTimeout(()=>d(!1),1500)}catch(N){c(!1),N!=null&&N.errorFields||Hn.error(N.message)}},R=async N=>{try{const P=await Vr.saveAccessToken(N,"");a(P),t.resetFields([N]),Hn.success(`${Ib.find(B=>B.id===N).label} Access Token removed.`)}catch(P){Hn.error(P.message)}},j=()=>{x(null),n.resetFields(),p(!0)},I=N=>{x(N),n.setFieldsValue({name:N.name,url:N.url}),p(!0)},O=async N=>{try{await Rc.remove(N),Hn.success("Static page deleted."),await $(),e==null||e()}catch(P){Hn.error(P.message)}},M=async()=>{try{const N=await n.validateFields();b(!0),y?(await Rc.update(y.id,N),Hn.success("Static page updated.")):(await Rc.create(N),Hn.success("Static page created.")),b(!1),p(!1),await $(),e==null||e()}catch(N){b(!1),N!=null&&N.errorFields||Hn.error(N.message)}};return h.jsxs("div",{className:"settings-page",children:[h.jsx(xo,{type:"secondary",children:"SETTINGS"}),h.jsxs("div",{className:"settings-page-header",children:[h.jsx(lv,{level:2,children:"Settings"}),h.jsx(Ue,{type:"primary",color:u?"green":"primary",variant:"solid",icon:u?h.jsx(js,{}):null,loading:!u&&l,onClick:E,children:u?"Saved":"Save"})]}),h.jsxs(Ht,{form:t,layout:"vertical",children:[h.jsxs(yn,{className:"settings-card",style:{marginBottom:20},children:[h.jsxs("div",{className:"settings-title",children:[h.jsx("div",{className:"settings-icon-wrap",children:h.jsx(ji,{className:"settings-icon"})}),h.jsxs("div",{children:[h.jsx(lv,{level:4,children:"Default Applications"}),h.jsx(Rb,{type:"secondary",children:"Choose your preferred editor and browser to open files, folders, and links."})]})]}),h.jsxs("div",{className:"token-settings-form",children:[h.jsxs("div",{className:"token-row",children:[h.jsxs("div",{className:"token-row-info",children:[h.jsx(xo,{strong:!0,className:"token-row-name",children:"Default Editor"}),h.jsx(xo,{type:"secondary",className:"token-row-hint",children:"VS Code, Devin, or IntelliJ IDEA"})]}),h.jsx(Ht.Item,{name:"defaultEditor",children:h.jsx(Fn,{options:rM,style:{width:220}})})]}),h.jsxs("div",{className:"token-row",children:[h.jsxs("div",{className:"token-row-info",children:[h.jsx(xo,{strong:!0,className:"token-row-name",children:"Default Browser"}),h.jsx(xo,{type:"secondary",className:"token-row-hint",children:"Choose your default browser"})]}),h.jsx(Ht.Item,{name:"defaultBrowser",style:{marginBottom:0},children:h.jsx(Fn,{options:Zie(r.isMac!==!1),style:{width:220}})})]})]})]}),h.jsxs(yn,{className:"settings-card",style:{marginBottom:20},children:[h.jsxs("div",{className:"settings-title",style:{borderBottom:"none",marginBottom:12,paddingBottom:0},children:[h.jsx("div",{className:"settings-icon-wrap",children:h.jsx(jf,{className:"settings-icon"})}),h.jsxs("div",{style:{flex:1},children:[h.jsx(lv,{level:4,children:"Static Pages"}),h.jsx(Rb,{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.jsx(Ue,{type:"primary",icon:h.jsx(Yr,{}),onClick:j,children:"Add Static Page"})]}),h.jsx(mr,{dataSource:f,rowKey:"id",pagination:!1,size:"middle",columns:[{title:"Page Name",dataIndex:"name",key:"name",width:200},{title:"URL",dataIndex:"url",key:"url",render:N=>h.jsx("a",{href:N,target:"_blank",rel:"noreferrer",children:N})},{title:"Action",key:"action",width:140,align:"right",render:(N,P)=>h.jsxs(vt,{children:[h.jsx(Ue,{type:"link",size:"small",icon:h.jsx(yl,{}),onClick:()=>I(P),children:"Edit"}),h.jsx(Ya,{title:"Delete static page?",description:"Are you sure you want to delete this page?",onConfirm:()=>O(P.id),okText:"Yes",cancelText:"No",children:h.jsx(Ue,{type:"link",danger:!0,size:"small",icon:h.jsx($r,{}),children:"Delete"})})]})}]})]}),h.jsxs(yn,{className:"settings-card",children:[h.jsxs("div",{className:"settings-title",children:[h.jsx("div",{className:"settings-icon-wrap",children:h.jsx(tie,{className:"settings-icon"})}),h.jsxs("div",{children:[h.jsx(lv,{level:4,children:"Access Tokens & Domain"}),h.jsx(Rb,{type:"secondary",children:"Tokens are stored locally and are never shown again."})]})]}),h.jsxs("div",{className:"token-settings-form",children:[h.jsxs("div",{className:"token-row",children:[h.jsxs("div",{className:"token-row-info",children:[h.jsx(xo,{strong:!0,className:"token-row-name",children:"Domain"}),h.jsx(xo,{type:"secondary",className:"token-row-hint",children:"e.g. abc.com"})]}),h.jsx(Ht.Item,{name:"domain",rules:[{pattern:/^([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/,message:"Enter a valid domain, e.g. abc.com"}],children:h.jsx(sn,{placeholder:"abc.com",allowClear:!0})})]}),h.jsxs("div",{className:"token-row",children:[h.jsxs("div",{className:"token-row-info",children:[h.jsx(xo,{strong:!0,className:"token-row-name",children:"Jira Issue Prefix"}),h.jsx(xo,{type:"secondary",className:"token-row-hint",children:"e.g. PROJ"})]}),h.jsx(Ht.Item,{name:"jiraIssuePrefix",children:h.jsx(sn,{placeholder:"PROJ",allowClear:!0})})]}),Ib.map(({id:N,label:P})=>h.jsxs("div",{className:`token-row ${w(N)?"is-configured":""}`,children:[h.jsxs("div",{className:"token-row-info",children:[h.jsxs("div",{className:"token-row-name-line",children:[h.jsx(xo,{strong:!0,className:"token-row-name",children:P}),w(N)&&h.jsx(qt,{color:"success",closable:!0,onClose:B=>{B.preventDefault(),R(N)},className:"token-row-tag",children:"Configured"})]}),h.jsxs(xo,{type:"secondary",className:"token-row-hint",children:[P," API access token"]})]}),h.jsx(Ht.Item,{name:N,children:h.jsx(sn.Password,{placeholder:w(N)?"Enter new token to replace":"Paste access token",autoComplete:"off",allowClear:!0})})]},N))]})]})]}),h.jsx(ar,{title:y?"Edit Static Page":"Add Static Page",open:g,onOk:M,onCancel:()=>p(!1),okText:"Save",confirmLoading:S,destroyOnClose:!0,children:h.jsxs(Ht,{form:n,layout:"vertical",style:{marginTop:16},children:[h.jsx(Ht.Item,{name:"name",label:"Page Name",rules:[{required:!0,message:"Please enter page name"}],children:h.jsx(sn,{placeholder:"e.g. test name"})}),h.jsx(Ht.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:h.jsx(sn,{placeholder:"e.g. /pages/welcome/index.html or https://example.com"})})]})})]})}const{Title:o3,Text:Da,Paragraph:Sle}=Xn,{Dragger:$le}=sp,i3=(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]}`},wle=e=>({file:e,name:e.name||"clipboard-image.png",url:URL.createObjectURL(e),size:e.size});function Ele(){const[e,t]=i.useState(null),[n,r]=i.useState(null),[a,l]=i.useState(75),[c,u]=i.useState(!0),[d,f]=i.useState(!0),[v,g]=i.useState(!0),[p,y]=i.useState(2),[x,S]=i.useState(!1),[b,$]=i.useState(null),[w,E]=i.useState(100),[R,j]=i.useState(!1),[I,O]=i.useState(!1),[M,N]=Hn.useMessage(),P=i.useRef(null),B=i.useRef(null),L=U=>{var V;(V=U.current)!=null&&V.url&&URL.revokeObjectURL(U.current.url)},k=U=>{var G;if(!((G=U==null?void 0:U.type)!=null&&G.startsWith("image/")))return M.error("Please choose an image file."),!1;L(P),L(B);const V=wle(U);return P.current=V,B.current=null,t(V),r(null),D(U),!1},_=U=>{var V;return[...((V=U.dataTransfer)==null?void 0:V.types)||[]].includes("Files")},H=U=>{var G;U.preventDefault(),O(!1);const V=[...((G=U.dataTransfer)==null?void 0:G.files)||[]].find(q=>q.type.startsWith("image/"));V?k(V):M.error("Drop an image file to compress it.")};i.useEffect(()=>()=>{L(P),L(B)},[]),i.useEffect(()=>{const U=V=>{var K;const G=[...((K=V.clipboardData)==null?void 0:K.items)||[]].find(Z=>Z.type.startsWith("image/"));if(!G)return;V.preventDefault();const q=G.getAsFile();q&&(k(new File([q],`clipboard-${Date.now()}.${q.type.split("/")[1]||"png"}`,{type:q.type})),M.success("Image read from clipboard."))};return window.addEventListener("paste",U),()=>window.removeEventListener("paste",U)},[M]);const z=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 V=await navigator.clipboard.read();for(const G of V){const q=G.types.find(K=>K.startsWith("image/"));if(q){const K=await G.getType(q);k(new File([K],`clipboard-${Date.now()}.${q.split("/")[1]||"png"}`,{type:q})),M.success("Image read from clipboard.");return}}throw new Error("No image was found in the clipboard.")}catch(V){M.warning(V.message||"Unable to read an image from the clipboard.")}},D=async(U=e==null?void 0:e.file)=>{if(U){j(!0);try{const[{encode:V},{imageData:G,width:q,height:K}]=await Promise.all([tM(()=>import("./index-Dty-56mC.js"),[]),nM(U,b,w)]),Z=await V(G,{quality:a,progressive:c,optimize_coding:d,auto_subsample:v,chroma_subsample:p,trellis_multipass:x});L(B);const Q=new Blob([Z],{type:"image/jpeg"}),te={url:URL.createObjectURL(Q),size:Q.size,width:q,height:K};B.current=te,r(te),M.success("MozJPEG compression complete.")}catch(V){M.error(V.message||"Image compression failed.")}finally{j(!1)}}},F=()=>{if(!n)return;const U=e.name.replace(/\.[^.]+$/,"")||"image",V=document.createElement("a");V.href=n.url,V.download=`${U}-mozjpeg.jpg`,V.click()},W=n&&e?Math.round((1-n.size/e.size)*100):null;return h.jsxs(h.Fragment,{children:[N,h.jsxs("div",{className:`squoosh-page ${I?"is-file-dragging":""}`,onDragOver:U=>{_(U)&&(U.preventDefault(),O(!0))},onDragLeave:U=>{U.currentTarget===U.target&&O(!1)},onDrop:H,children:[h.jsxs("header",{className:"squoosh-header",children:[h.jsxs("div",{children:[h.jsx(Da,{children:"MOZJPEG WORKBENCH"}),h.jsx(o3,{level:2,children:"Image compression"})]}),h.jsxs(vt,{children:[h.jsx(Ue,{icon:h.jsx(ei,{}),onClick:z,children:"Read clipboard"}),h.jsx(Ue,{type:"primary",icon:h.jsx(s1,{}),onClick:()=>D(),disabled:!e,loading:R,children:"Compress"})]})]}),h.jsxs("div",{className:"squoosh-studio",children:[h.jsxs("div",{className:"squoosh-preview-area",children:[h.jsx(l3,{title:"Original",detail:e?`${i3(e.size)} · ${e.name}`:"Choose an image to begin",children:e?h.jsx(s3,{label:"Original image",image:e.url}):h.jsxs($le,{accept:"image/*",multiple:!1,showUploadList:!1,beforeUpload:k,className:"image-dropzone",children:[h.jsx("p",{className:"ant-upload-drag-icon",children:h.jsx(rf,{})}),h.jsx("p",{className:"ant-upload-text",children:"Drop an image or click to choose"}),h.jsx("p",{className:"ant-upload-hint",children:"Or paste an image with ⌘ / Ctrl + V."})]})}),h.jsx(l3,{title:"MozJPEG output",detail:n?`${i3(n.size)} · ${n.width} × ${n.height}`:"Waiting for compression",action:n&&h.jsx(Ue,{type:"primary",size:"small",icon:h.jsx(KC,{}),onClick:F,children:"Download"}),children:R?h.jsx("div",{className:"image-loading",children:h.jsx(la,{tip:"Compressing…"})}):n?h.jsxs(h.Fragment,{children:[h.jsx(s3,{label:"Compressed JPEG",image:n.url}),W!==null&&h.jsx("div",{className:`compression-saving ${W>0?"is-saving":""}`,children:W>0?`${W}% smaller`:"No size reduction at current settings."})]}):h.jsx(Bn,{image:Bn.PRESENTED_IMAGE_SIMPLE,description:"Compressed preview"})})]}),h.jsxs("aside",{className:"squoosh-settings",children:[h.jsxs("div",{className:"settings-heading",children:[h.jsx(Da,{children:"ENCODER"}),h.jsx(o3,{level:4,children:"MozJPEG"}),h.jsx(Sle,{children:"Fine-tune output size and image quality."})]}),h.jsxs("div",{className:"option-row",children:[h.jsxs("div",{children:[h.jsx(Da,{strong:!0,children:"Quality"}),h.jsx("br",{}),h.jsx(Da,{type:"secondary",children:"Higher values preserve more detail."})]}),h.jsx(qt,{color:"blue",children:a})]}),h.jsx(bX,{min:1,max:100,value:a,onChange:l,tooltip:{formatter:U=>`${U}`}}),h.jsxs("div",{className:"option-select",children:[h.jsxs("div",{children:[h.jsx(Da,{strong:!0,children:"Long edge"}),h.jsx("br",{}),h.jsx(Da,{type:"secondary",children:"Scale the longest edge to this value. Never crops the image."})]}),h.jsx(Zv,{min:1,max:16384,value:b,onChange:$,placeholder:"Original",addonAfter:"px"})]}),h.jsxs("div",{className:"option-select",children:[h.jsxs("div",{children:[h.jsx(Da,{strong:!0,children:"Scale"}),h.jsx("br",{}),h.jsx(Da,{type:"secondary",children:"Scale the image by percentage."})]}),h.jsx(Zv,{min:1,max:100,value:w,onChange:E,placeholder:"100",addonAfter:"%",allowClear:!0})]}),h.jsx(sv,{label:"Progressive JPEG",description:"Display a low-detail preview while loading.",checked:c,onChange:u}),h.jsx(sv,{label:"Optimize coding",description:"Reduce size without changing image quality.",checked:d,onChange:f}),h.jsx(Fv,{ghost:!0,className:"advanced-options",items:[{key:"advanced",label:"Advanced settings",children:h.jsxs(h.Fragment,{children:[h.jsx(sv,{label:"Automatic chroma subsampling",description:"Pick sampling based on the image content.",checked:v,onChange:g}),h.jsxs("div",{className:"option-select",children:[h.jsxs("div",{children:[h.jsx(Da,{strong:!0,children:"Chroma subsampling"}),h.jsx("br",{}),h.jsx(Da,{type:"secondary",children:"Enabled when automatic mode is off."})]}),h.jsx(Fn,{disabled:v,value:p,onChange:y,options:[{value:0,label:"4:4:4 (colour detail)"},{value:1,label:"4:2:2 (balanced)"},{value:2,label:"4:2:0 (smaller file)"}]})]}),h.jsx(sv,{label:"Trellis multi-pass",description:"Further size reduction with a longer encode time.",checked:x,onChange:S})]})}]}),h.jsx(Ue,{type:"primary",size:"large",block:!0,icon:h.jsx(s1,{}),onClick:()=>D(),disabled:!e,loading:R,children:"Compress image"})]})]})]})]})}function l3({title:e,detail:t,action:n,children:r}){return h.jsxs("div",{className:"preview-pane",children:[h.jsxs("header",{children:[h.jsxs("div",{children:[h.jsx(Da,{children:e}),h.jsx("span",{children:t})]}),n]}),h.jsx("div",{className:"preview-canvas",children:r})]})}function sv({label:e,description:t,checked:n,onChange:r}){return h.jsxs("div",{className:"option-switch",children:[h.jsxs("div",{children:[h.jsx(Da,{strong:!0,children:e}),h.jsx("br",{}),h.jsx(Da,{type:"secondary",children:t})]}),h.jsx(Zd,{checked:n,onChange:r})]})}function s3({label:e,image:t,metadata:n}){return h.jsxs("div",{className:"image-panel",children:[h.jsx("img",{src:t,alt:e}),n&&h.jsx("div",{className:"image-panel-meta",children:h.jsx(Da,{type:"secondary",children:n})})]})}const{Title:Ole,Text:ia,Paragraph:c3}=Xn;function jle({prs:e,selectedPrKeys:t,onToggleSelectPr:n,onSelectPr:r}){return e.length===0?h.jsx(Bn,{description:"No open pull requests found.",style:{padding:"24px 0"}}):h.jsx("div",{style:{display:"grid",gap:"12px"},children:e.map(a=>{var d,f,v,g,p,y,x,S,b;const l=a.reviewUrl||"",c=a.reviewUrl||a.id,u=t.includes(c);return h.jsx(yn,{size:"small",hoverable:!0,style:{borderColor:u?"#1677ff":"#e3e6ef",backgroundColor:u?"#f0f5ff":"#ffffff",transition:"all 0.2s"},onClick:()=>l&&r(l),children:h.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:"12px"},children:[h.jsxs("div",{style:{flex:1,minWidth:0,display:"flex",alignItems:"center",gap:"12px"},children:[h.jsx(Qr,{checked:u,onChange:$=>{$.stopPropagation(),n(c)},onClick:$=>$.stopPropagation()}),h.jsxs("div",{style:{flex:1,minWidth:0},children:[h.jsxs(vt,{size:8,wrap:!0,children:[h.jsxs(ia,{strong:!0,style:{fontSize:"14px"},children:["#",a.id," ",a.title]}),a.draft&&h.jsx(qt,{color:"gold",children:"Draft"})]}),h.jsxs("div",{style:{marginTop:"6px",fontSize:"12px",display:"flex",alignItems:"center",flexWrap:"wrap",gap:"6px",color:"#727b94"},children:[h.jsxs(ia,{type:"secondary",style:{fontWeight:500},children:[(v=(f=(d=a.fromRef)==null?void 0:d.repository)==null?void 0:f.project)==null?void 0:v.key," / ",(p=(g=a.fromRef)==null?void 0:g.repository)==null?void 0:p.slug]}),h.jsx("span",{style:{color:"#d9d9d9"},children:"|"}),h.jsx(qt,{size:"small",color:"cyan",style:{margin:0},children:(y=a.fromRef)==null?void 0:y.displayId}),h.jsx(YN,{style:{fontSize:"10px",color:"#8c8c8c"}}),h.jsx(qt,{size:"small",color:"blue",style:{margin:0},children:(x=a.toRef)==null?void 0:x.displayId}),h.jsx("span",{style:{color:"#d9d9d9"},children:"|"}),h.jsxs("span",{children:["Author: ",h.jsx("strong",{children:(b=(S=a.author)==null?void 0:S.user)==null?void 0:b.displayName})]}),h.jsx("span",{style:{color:"#d9d9d9"},children:"|"}),h.jsxs("span",{children:["Updated: ",new Date(a.updatedDate).toLocaleDateString()]})]})]})]}),h.jsxs(vt,{size:8,children:[h.jsx(Ue,{size:"small",icon:h.jsx(Td,{}),onClick:$=>{$.stopPropagation(),l&&Zr(l)},children:"Open"}),h.jsx(Ue,{type:"primary",size:"small",onClick:$=>{$.stopPropagation(),l&&r(l)},children:"Review"})]})]})},c)})})}function Rle(){const[e]=Ht.useForm(),[t,n]=i.useState(!1),[r,a]=i.useState(!0),[l,c]=i.useState(null),[u,d]=i.useState(!1),[f,v]=i.useState([]),[g,p]=i.useState([]),[y,x]=i.useState(!1),[S,b]=i.useState("review"),[$,w]=i.useState([]),[E,R]=i.useState(!1),[j,I]=i.useState(null),[O,M]=i.useState(""),[N,P]=i.useState(!1),[B,L]=i.useState(new Set),k=async()=>{x(!0);try{const[Q,te]=await Promise.all([iv.myPrs().catch(()=>({values:[]})),iv.reviewPrs().catch(()=>({values:[]}))]);v((Q==null?void 0:Q.values)||[]),p((te==null?void 0:te.values)||[])}catch{}x(!1)};i.useEffect(()=>{Vr.status().then(Q=>{a(Q.bitbucketTokenConfigured),Q.bitbucketTokenConfigured&&k()}).catch(()=>{})},[]);const _=S==="review"?g:f,H=Q=>{b(Q),w([])},z=Q=>{w(te=>te.includes(Q)?te.filter(X=>X!==Q):[...te,Q])},D=Q=>{if(Q.target.checked){const te=_.map(X=>X.reviewUrl||X.id);w(te)}else w([])},F=()=>{const te=_.filter(oe=>$.includes(oe.reviewUrl||oe.id)).map(oe=>oe.reviewUrl).filter(Boolean);if(te.length===0){Hn.warning("No PR URLs selected");return}const X=te.join(`
|
|
498
498
|
`);navigator.clipboard.writeText(X),Hn.success(`Copied ${te.length} PR URL(s) to clipboard`)},W=_.length>0&&_.every(Q=>$.includes(Q.reviewUrl||Q.id)),U=$.length>0&&!W,V=async Q=>{const te=typeof Q=="string"?Q:Q.prLink;if(te){n(!0),c(null),e.setFieldsValue({prLink:te});try{const X=await iv.check(te.trim());c(X),L(new Set),Hn.success("PR Review completed successfully.")}catch(X){Hn.error(X.message)}finally{n(!1)}}},G=(Q,te)=>{const X=`${Q}:${te.line}:${te.rule}`,oe=`⚠️ [${te.severity.toUpperCase()}] ${te.rule}: ${te.message}
|
|
499
499
|
\`\`\`javascript
|
package/ui/dist/index.html
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<link rel="apple-touch-icon" href="/devbuddy-180.png" />
|
|
16
16
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
17
17
|
<title>DevBuddy · Workbench</title>
|
|
18
|
-
<script type="module" crossorigin src="/assets/index-
|
|
18
|
+
<script type="module" crossorigin src="/assets/index-kLUg9ehS.js"></script>
|
|
19
19
|
<link rel="stylesheet" crossorigin href="/assets/index-B9y46rtV.css">
|
|
20
20
|
</head>
|
|
21
21
|
<body role="application">
|