copilot-operator 0.1.62 → 0.1.64
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/dist/src/api/operator.controller.js +36 -3
- package/dist/src/api/operator.service.js +142 -14
- package/dist/src/config/schema.js +10 -0
- package/dist/src/orchestrator/leadRunner.js +268 -30
- package/dist/src/orchestrator/subtaskRetry.js +152 -0
- package/dist/src/orchestrator/taskRunner.js +8 -0
- package/dist/src/plan/kerrigan.js +31 -4
- package/dist/src/plan/systemGuide.js +185 -2
- package/dist/src/queue/queue.js +8 -2
- package/dist/src/session/store.js +4 -0
- package/dist/web/404.html +2 -2
- package/dist/web/_next/static/chunks/1077.32bfff8490ea3d67.js +1 -0
- package/dist/web/_next/static/chunks/1548.2bbbbb4759fd5073.js +1 -0
- package/dist/web/_next/static/chunks/2163.147b0ca65a65d5dd.js +1 -0
- package/dist/web/_next/static/chunks/714.16070ca6426f260c.js +1 -0
- package/dist/web/_next/static/chunks/7220.f71047baa16e6be0.js +1 -0
- package/dist/web/_next/static/chunks/7921-90ed63bfdf7162f3.js +1 -0
- package/dist/web/_next/static/chunks/8584.abc09920f03375b1.js +1 -0
- package/dist/web/_next/static/chunks/9067.538dec4d8ec0b04e.js +1 -0
- package/dist/web/_next/static/chunks/9747.9d15583d6ebafba3.js +1 -0
- package/dist/web/_next/static/chunks/app/page-185efe80d6e8dd05.js +1 -0
- package/dist/web/_next/static/chunks/app/queue/page-d4155eb6ab172c03.js +1 -0
- package/dist/web/_next/static/chunks/app/settings/page-9a83381087178f80.js +1 -0
- package/dist/web/_next/static/chunks/{webpack-4665fed2f4b06052.js → webpack-d85f02ecd2903252.js} +1 -1
- package/dist/web/_next/static/css/{5ec15fce93be8cbe.css → d107848da2f006af.css} +1 -1
- package/dist/web/defaults.html +2 -2
- package/dist/web/defaults.txt +8 -8
- package/dist/web/index.html +3 -3
- package/dist/web/index.txt +9 -9
- package/dist/web/queue.html +2 -2
- package/dist/web/queue.txt +9 -9
- package/dist/web/settings.html +2 -2
- package/dist/web/settings.txt +9 -9
- package/dist/web/system.html +2 -2
- package/dist/web/system.txt +9 -9
- package/package.json +3 -2
- package/dist/web/_next/static/chunks/1077.42a0502bfe3f2014.js +0 -1
- package/dist/web/_next/static/chunks/1548.dbf0648a1239382e.js +0 -1
- package/dist/web/_next/static/chunks/2163.dbdeebeb0c069d62.js +0 -1
- package/dist/web/_next/static/chunks/714.6472121643f99452.js +0 -1
- package/dist/web/_next/static/chunks/7220.391debd1191fc29a.js +0 -1
- package/dist/web/_next/static/chunks/7921-0549a0038e591e42.js +0 -1
- package/dist/web/_next/static/chunks/8584.4432f14f0cd88188.js +0 -1
- package/dist/web/_next/static/chunks/9067.841d6d2f4726f9c2.js +0 -1
- package/dist/web/_next/static/chunks/9747.1a7337320eccdc8a.js +0 -1
- package/dist/web/_next/static/chunks/app/page-ea0a60db75dac546.js +0 -1
- package/dist/web/_next/static/chunks/app/queue/page-f86936d39121ade8.js +0 -1
- package/dist/web/_next/static/chunks/app/settings/page-1833ace66fc9eb0e.js +0 -1
- /package/dist/web/_next/static/{PJs9xZLAnUDPOFvGV0T_M → vU04zVwJyicqgtWQsApuV}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{PJs9xZLAnUDPOFvGV0T_M → vU04zVwJyicqgtWQsApuV}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4662],{5462:(e,l,t)=>{"use strict";t.d(l,{f:()=>s,q:()=>i});var a=t(73365),n=t(1521);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"below",[l,t]=(0,n.useState)(!1),a=(0,n.useRef)(null),s=(0,n.useRef)(null),i=(0,n.useId)(),[r,o]=(0,n.useState)({visibility:"hidden"}),c=(0,n.useCallback)(()=>t(!1),[]),d=(0,n.useCallback)(()=>t(e=>!e),[]);return(0,n.useLayoutEffect)(()=>{var t;let n,i;if(!l)return void o({visibility:"hidden"});let r=null==(t=a.current)?void 0:t.getBoundingClientRect(),c=s.current;if(!r||!c)return;let d=c.offsetWidth,u=c.offsetHeight;"right"===e?(n=r.right+6,i=Math.min(r.top,window.innerHeight-u-8)):(n=Math.min(r.left,window.innerWidth-d-8),i=r.bottom+6+u>window.innerHeight-8?r.top-6-u:r.bottom+6),o({left:Math.max(8,n),top:Math.max(8,i)})},[l,e]),(0,n.useEffect)(()=>{if(!l)return;let e=e=>{var l,n;let i=e.target;(null==(l=s.current)?void 0:l.contains(i))||(null==(n=a.current)?void 0:n.contains(i))||t(!1)},n=e=>{var l;"Escape"===e.key&&(t(!1),null==(l=a.current)||l.focus())},i=()=>t(!1);return document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",n),window.addEventListener("resize",i),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("keydown",n),window.removeEventListener("resize",i)}},[l]),{open:l,setOpen:t,toggle:d,close:c,anchor:a,panel:s,style:r,id:i}}function i(e){let{label:l,text:t}=e,n=s("below");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{ref:n.anchor,type:"button",className:"info-btn","aria-label":l,title:l,"aria-expanded":n.open,"aria-controls":n.open?n.id:void 0,onClick:n.toggle,children:"i"}),n.open&&(0,a.jsxs)("div",{ref:n.panel,id:n.id,role:"dialog","aria-label":l,className:"pop info-pop",style:n.style,children:[(0,a.jsx)("p",{className:"pop-title",children:l}),t.split(/\n\s*\n/).map((e,l)=>{let t=l>0?/^([^::.。\n]{2,90}?)\s?(?::\s|:)/.exec(e):null;return(0,a.jsx)("p",{children:t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:t[1]}),e.slice(t[1].length)]}):e},e)})]})]})}},11272:(e,l,t)=>{"use strict";t.d(l,{O:()=>n});var a=t(73365);function n(){return(0,a.jsxs)("svg",{className:"branch-ico",viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",children:[(0,a.jsx)("path",{d:"M4.5 3.5v9M4.5 10c0-3 7-2.5 7-5.5",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,a.jsx)("circle",{cx:"4.5",cy:"3",r:"1.7",fill:"currentColor"}),(0,a.jsx)("circle",{cx:"4.5",cy:"13",r:"1.7",fill:"currentColor"}),(0,a.jsx)("circle",{cx:"11.5",cy:"4.2",r:"1.7",fill:"currentColor"})]})}},24784:(e,l,t)=>{"use strict";t.d(l,{Yb:()=>o,u:()=>r});var a=t(73365),n=t(1521),s=t(15549),i=t(8205);let r="::by-hand::";function o(e){var l,t,o;let{id:c,chosen:d,onChange:u,none:m,byHand:h,catalogue:x,disabled:p=!1,style:v}=e,{t:j}=(0,i.kj)(),f=function(e){let[l,t]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(void 0!==e)return;let l=!0;return s.FH.models().then(e=>{l&&t(e)}).catch(()=>void 0),()=>{l=!1}},[e]),void 0!==e?e:l}(x),b=null!=(l=null==f?void 0:f.options)?l:[],g=e=>e.toLowerCase().replace(/[-‐‑‒–—_]+/g," ").replace(/\s+/g," ").trim(),y=d&&d!==r?b.find(e=>g(e.name)===g(d)):void 0,k=null!=(t=null==y?void 0:y.name)?t:d,w=!!y||d===r&&void 0!==h,N=b.filter(e=>!e.group),S=new Map;for(let e of b)e.group&&S.set(e.group,[...null!=(o=S.get(e.group))?o:[],e]);return(0,a.jsxs)("select",{id:c,value:k,onChange:e=>u(e.target.value),disabled:p,style:{width:"auto",minWidth:280,...v},children:[void 0!==h&&(0,a.jsx)("option",{value:r,children:h}),void 0!==m&&(0,a.jsx)("option",{value:"",children:m}),d&&!w&&(0,a.jsx)("option",{value:d,children:j("model.notInList",{name:d})}),N.map(e=>(0,a.jsxs)("option",{value:e.name,disabled:e.disabled,children:[e.name,e.disabled?" — ".concat(j("model.unavailable")):""]},e.name)),[...S.entries()].map(e=>{let[l,t]=e;return(0,a.jsx)("optgroup",{label:l,children:t.map(e=>(0,a.jsxs)("option",{value:e.name,disabled:e.disabled,children:[e.name,e.disabled?" — ".concat(j("model.unavailable")):""]},e.name))},l)})]})}},51035:(e,l,t)=>{"use strict";t.d(l,{DialogHost:()=>d,Z:()=>c});var a=t(73365),n=t(1521),s=t(8205),i=t(94969);let r=null,o=[];function c(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(t=>{var a;return a={kind:"confirm",message:e,...l,resolve:t},void(r?r(a):o.push(a))})}function d(e){var l,t;let{children:c}=e,{t:d}=(0,s.kj)(),[u,m]=(0,n.useState)([]),h=(0,n.useRef)(null),x=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(r=e=>m(l=>[...l,e]),o.length>0){let e=o.splice(0,o.length);m(l=>[...l,...e])}return()=>{r=null}},[]);let p=u[0],v=(0,n.useCallback)(e=>{p&&(p.resolve(e),m(e=>e.slice(1)))},[p]);return(0,i.V)(x,!!p,h),(0,n.useEffect)(()=>{if(!p)return;let e=e=>{"Escape"===e.key&&(e.preventDefault(),v(!1))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[p,v]),(0,a.jsxs)(a.Fragment,{children:[c,p&&(0,a.jsx)("div",{className:"modal-backdrop",onClick:()=>v(!1),role:"presentation",children:(0,a.jsxs)("div",{ref:x,className:"modal".concat(p.danger?" danger":""),role:"confirm"===p.kind?"alertdialog":"dialog","aria-modal":"true","aria-labelledby":"modal-title","aria-describedby":"modal-body",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("h2",{id:"modal-title",children:null!=(l=p.title)?l:d("confirm"===p.kind?"dialog.confirmTitle":"dialog.noticeTitle")}),(0,a.jsx)("div",{id:"modal-body",className:"modal-body",children:p.message}),(0,a.jsxs)("div",{className:"row modal-actions",children:["confirm"===p.kind&&(0,a.jsx)("button",{type:"button",className:"quiet",onClick:()=>v(!1),children:d("dialog.cancel")}),(0,a.jsx)("button",{ref:h,type:"button",className:p.danger?"danger":"primary",onClick:()=>v(!0),children:null!=(t=p.okLabel)?t:d("dialog.ok")})]})]})})]})}},65323:(e,l,t)=>{Promise.resolve().then(t.bind(t,91082))},91082:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>j});var a=t(73365),n=t(1521),s=t(15549);let i="{$model_name}",r="{$provider_name}",o=["button","rows","model","provider","providerModel"],c={button:null,rows:null,model:i,provider:r,providerModel:i};function d(e){return e.includes("'")?e.includes('"')?"concat('".concat(e.split("'").join("', \"'\", '"),"')"):'"'.concat(e,'"'):"'".concat(e,"'")}function u(e,l){let t=e,a=(e,l)=>{void 0!==l&&(t=t.split("'".concat(e,"'")).join(l.includes("'")?d(l):"'".concat(l,"'")).split('"'.concat(e,'"')).join(l.includes('"')?d(l):'"'.concat(l,'"')).split(e).join(l))};return a(i,l.model),a(r,l.provider),t}var m=t(8205),h=t(51035),x=t(24784),p=t(5462),v=t(11272);function j(){let{t:e}=(0,m.kj)();(0,n.useEffect)(()=>{let e,l=0,t=()=>{let t=decodeURIComponent(window.location.hash.slice(1));if(!t)return;let a=Date.now()+5e3;cancelAnimationFrame(l);let n=()=>{let s=document.getElementById(t);if(!s){Date.now()<a&&(l=requestAnimationFrame(n));return}let i="reduced"===document.documentElement.dataset.motion||window.matchMedia("(prefers-reduced-motion: reduce)").matches;s.scrollIntoView({block:"start",behavior:i?"auto":"smooth"}),s.hasAttribute("tabindex")||s.setAttribute("tabindex","-1"),s.focus({preventScroll:!0}),s.classList.remove("spotlight"),s.offsetWidth,s.classList.add("spotlight"),clearTimeout(e),e=setTimeout(()=>s.classList.remove("spotlight"),4200)};n()};return t(),window.addEventListener("hashchange",t),()=>{window.removeEventListener("hashchange",t),cancelAnimationFrame(l),clearTimeout(e)}},[]);let[l,t]=(0,n.useState)(null),[i,r]=(0,n.useState)(!1),[o,c]=(0,n.useState)("");(0,n.useEffect)(()=>{s.FH.models().then(t).catch(()=>void 0)},[]);let d=async()=>{if(await (0,h.Z)(e("model.refreshConfirm"))){r(!0),c(e("model.refreshing"));try{var l;let a=await s.FH.models().then(()=>s.FH.refreshModels());t(a),c(0===a.options.length?null!=(l=a.note)?l:e("model.none"):e("model.refreshed",{n:a.options.length}))}catch(e){c(e.message)}finally{r(!1)}}},u={catalogue:l,setCatalogue:t,refreshModels:d,refreshing:i,refreshMsg:o};return(0,a.jsxs)("div",{className:"settings",children:[(0,a.jsxs)("div",{className:"panel",children:[(0,a.jsx)("h2",{children:e("def.title")}),(0,a.jsx)("p",{className:"muted small",children:e("def.intro")}),(0,a.jsx)("p",{className:"why",children:e("def.autoSave")})]}),(0,a.jsx)(W,{}),(0,a.jsx)(D,{}),(0,a.jsx)(M,{}),(0,a.jsx)(L,{}),(0,a.jsx)(H,{role:"worker",...u}),(0,a.jsx)(H,{role:"lead",...u}),(0,a.jsx)(H,{role:"review",...u}),(0,a.jsx)(q,{catalogue:l}),(0,a.jsx)(P,{})]})}function f(e){let{htmlFor:l,label:t,info:n,as:s="label"}=e,{t:i}=(0,m.kj)();return(0,a.jsxs)("div",{className:"field-label",children:["label"===s?(0,a.jsx)("label",{htmlFor:l,children:t}):(0,a.jsx)("span",{className:"field-name",children:t}),(0,a.jsx)(p.q,{label:i("info.about",{name:t}),text:n})]})}function b(e){let{id:l,label:t,info:n,unit:s,children:i}=e;return(0,a.jsxs)("div",{className:"settings-field",children:[(0,a.jsx)(f,{htmlFor:l,label:t,info:n}),(0,a.jsxs)("div",{className:"field-control",children:[i,s&&(0,a.jsx)("span",{className:"unit",children:s})]})]})}function g(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:900,t=(0,n.useRef)(null),a=(0,n.useRef)(null),s=(0,n.useRef)(e);return s.current=e,(0,n.useEffect)(()=>()=>{t.current&&clearTimeout(t.current),a.current&&s.current(a.current.value)},[]),e=>{t.current&&clearTimeout(t.current),a.current={value:e},t.current=setTimeout(()=>{a.current=null,s.current(e)},l)}}function y(e){let{id:l,value:t,min:s,max:i,onChange:r,disabled:o}=e,[c,d]=(0,n.useState)(String(t));return(0,n.useEffect)(()=>d(e=>k(e)===t?e:String(t)),[t]),(0,a.jsx)("input",{id:l,type:"number",className:"number",min:s,max:i,step:1,value:c,onChange:e=>{d(e.target.value);let l=k(e.target.value);null!==l&&l>=s&&l<=i&&r(l)},onBlur:()=>{let e=k(c),l=null===e?t:Math.max(s,Math.min(i,e));d(String(l)),l!==t&&r(l)},disabled:o})}function k(e){if(""===e.trim())return null;let l=Number(e);return Number.isInteger(l)?l:null}let w=(0,n.createContext)(e=>e);function N(){let[e,l]=(0,n.useState)(0),t=(0,n.useRef)(!0);return(0,n.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),{saving:e>0,track:(0,n.useCallback)(async e=>{let a=Date.now();l(e=>e+1);try{return await e}finally{setTimeout(()=>{t.current&&l(e=>Math.max(0,e-1))},Math.max(0,1600-(Date.now()-a)))}},[])}}function S(){let[e,l]=(0,n.useState)(1);return(0,n.useEffect)(()=>{let e=setInterval(()=>l(e=>e%3+1),380);return()=>clearInterval(e)},[]),(0,a.jsx)("span",{className:"saving-dots","aria-hidden":"true",children:".".repeat(e)})}function C(e){let{msg:l,saving:t}=e,{t:n}=(0,m.kj)();return t?(0,a.jsx)("div",{className:"row saved-note",children:(0,a.jsxs)("span",{className:"saving small",role:"status",children:[n("def.saving"),(0,a.jsx)(S,{})]})}):l?(0,a.jsx)("div",{className:"row saved-note",children:(0,a.jsx)("span",{className:"muted small",role:"status",children:l})}):null}let R={name:"",description:"",text:"",projectDir:""};function M(){let{t:e}=(0,m.kj)(),{saving:l,track:t}=N(),[i,r]=(0,n.useState)(null),[o,c]=(0,n.useState)({maxDescription:300}),[d,u]=(0,n.useState)([]),[x,p]=(0,n.useState)(""),[v,j]=(0,n.useState)(""),[f,b]=(0,n.useState)(!1),[g,y]=(0,n.useState)(R);(0,n.useEffect)(()=>{s.FH.skills().then(e=>{r(e.skills),c({maxDescription:e.maxDescription})}).catch(e=>j(e.message)),s.FH.project().then(e=>u([...e.rootDir?[{name:e.name||e.rootDir,dir:e.rootDir}]:[],...e.others.map(e=>({name:e.name,dir:e.rootDir}))])).catch(()=>void 0)},[]);let k=async l=>{b(!0),j("");try{let a=await t(s.FH.setSkills(l));return r(a.skills),p(e("skills.saved",{n:a.skills.length})),!0}catch(e){return j(e.message),!1}finally{b(!1)}},w=null!=i?i:[],S=async()=>{await k([...w,{...g,name:g.name.trim().toLowerCase()}])&&y(R)},M=async l=>{await (0,h.Z)(e("skills.removeConfirm",{name:w[l].name}),{okLabel:e("skills.remove"),danger:!0})&&await k(w.filter((e,t)=>t!==l))};return(0,a.jsxs)("section",{className:"panel",id:"skills","aria-labelledby":"skills-title",children:[(0,a.jsx)("h2",{id:"skills-title",children:e("skills.title")}),(0,a.jsx)("p",{className:"muted small",children:e("skills.intro")}),v&&(0,a.jsx)("div",{className:"err",children:v}),i&&0===i.length&&(0,a.jsx)("p",{className:"muted small",children:e("skills.none")}),w.map((e,l)=>(0,a.jsx)(E,{skill:e,projects:d,limits:o,onChange:e=>k(w.map((t,a)=>a===l?e:t)),onRemove:()=>void M(l),busy:f},"skill-".concat(l))),(0,a.jsx)(C,{msg:x,saving:l}),(0,a.jsx)("h3",{id:"skills-add",children:e("skills.addTitle")}),(0,a.jsx)(E,{skill:g,projects:d,limits:o,onDraft:y,busy:f}),(0,a.jsx)("div",{className:"row",children:(0,a.jsx)("button",{className:"primary",onClick:()=>void S(),disabled:f||!g.name.trim()||!g.text.trim(),children:e("skills.add")})})]})}function F(){return(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M2.5 4h11M6 4V2.5h4V4M3.8 4l.7 9.5h7l.7-9.5M6.6 6.6v4.8M9.4 6.6v4.8"})})}function E(e){let{skill:l,projects:t,limits:s,onChange:i,onDraft:r,onRemove:o,busy:c}=e,{t:d}=(0,m.kj)(),u=(0,n.useId)(),[h,x]=(0,n.useState)(l),p=(0,n.useRef)(!1);(0,n.useEffect)(()=>{p.current||x(l)},[l]);let v=e=>{let l={...h,...e};return x(l),null==r||r(l),l},j=g(async e=>{p.current=!1,i&&e.text!==l.text&&await i(e)},1200),b=()=>{i&&(h.name!==l.name||h.description!==l.description)&&i(h)};return(0,a.jsxs)("div",{className:"panel inner skill-entry".concat(i?"":" skill-new"),children:[o&&(0,a.jsxs)("div",{className:"skill-head",children:[(0,a.jsxs)("span",{className:"skill-title",children:["/",h.name]}),(0,a.jsxs)("button",{type:"button",className:"danger skill-delete",onClick:o,disabled:c,"aria-label":d("skills.removeOne",{name:h.name}),title:d("skills.removeOne",{name:h.name}),children:[(0,a.jsx)(F,{}),d("skills.remove")]})]}),(0,a.jsxs)("div",{className:"project-fields",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(f,{htmlFor:"".concat(u,"-name"),label:d("skills.name"),info:d("skills.nameInfo")}),(0,a.jsxs)("div",{className:"input-with-buttons skill-name-box",children:[(0,a.jsx)("span",{className:"skill-slash","aria-hidden":"true",children:"/"}),(0,a.jsx)("input",{id:"".concat(u,"-name"),type:"text",value:h.name,onChange:e=>v({name:e.target.value}),onBlur:b,placeholder:"new-test",spellCheck:!1})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(f,{htmlFor:"".concat(u,"-description"),label:d("skills.description"),info:d("skills.descriptionInfo")}),(0,a.jsx)("input",{id:"".concat(u,"-description"),type:"text",value:h.description,maxLength:s.maxDescription,onChange:e=>v({description:e.target.value}),onBlur:b})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(f,{htmlFor:"".concat(u,"-project"),label:d("skills.project"),info:d("skills.projectInfo")}),(0,a.jsx)("div",{className:"input-with-buttons",children:(0,a.jsxs)("select",{id:"".concat(u,"-project"),value:h.projectDir,onChange:e=>{let l=v({projectDir:e.target.value});i&&i(l)},children:[(0,a.jsx)("option",{value:"",children:d("skills.allProjects")}),t.map(e=>(0,a.jsx)("option",{value:e.dir,children:e.name},e.dir))]})})]})]}),(0,a.jsxs)("div",{className:"project-level2",children:[(0,a.jsx)(f,{htmlFor:"".concat(u,"-text"),label:d("skills.text"),info:d("skills.textInfo")}),(0,a.jsx)("textarea",{id:"".concat(u,"-text"),className:"prose",rows:5,value:h.text,onChange:e=>{let l=v({text:e.target.value});i&&(p.current=!0,j(l))},placeholder:d("skills.textPlaceholder")}),(0,a.jsx)("span",{className:"muted small skill-count",children:d("skills.count",{n:h.text.length.toLocaleString()})})]})]})}function W(){let{t:e}=(0,m.kj)(),[l,t]=(0,n.useState)(null),[i,r]=(0,n.useState)("");return(0,n.useEffect)(()=>{s.FH.level1().then(e=>t(e.content)).catch(l=>r(e("l1.failed",{reason:l.message})))},[]),(0,a.jsxs)("section",{className:"panel",id:"level1","aria-labelledby":"level1-title",children:[(0,a.jsxs)("div",{className:"row section-title",children:[(0,a.jsx)("h2",{id:"level1-title",children:e("l1.title")}),(0,a.jsx)("span",{className:"badge",children:e("l1.readOnly")})]}),(0,a.jsx)("div",{className:"callout",role:"note",children:e("l1.what")}),i&&(0,a.jsx)("div",{className:"err",children:i}),(0,a.jsxs)("details",{className:"l1-text",children:[(0,a.jsx)("summary",{children:e("l1.show")}),(0,a.jsx)("pre",{className:"l1-pre",children:null!=l?l:"…"})]})]})}function D(){var e,l;let{t}=(0,m.kj)(),{saving:i,track:r}=N(),[o,c]=(0,n.useState)(null),[d,u]=(0,n.useState)(""),[h,x]=(0,n.useState)(""),[p,v]=(0,n.useState)(""),[j,b]=(0,n.useState)(""),[y,k]=(0,n.useState)(!1),[w,S]=(0,n.useState)(""),[R,M]=(0,n.useState)(""),F=(0,n.useCallback)(async()=>{try{let e=await s.FH.project();c(e),u(e.rootDir),x(e.name),b("")}catch(e){b(e.message)}},[]);(0,n.useEffect)(()=>{F()},[F]);let E=async(e,l)=>{k(!0),v("");try{let t=await r(s.FH.setProject(e));return c(t),u(t.rootDir),v(l(t)),b(""),!0}catch(e){return b(e.message),!1}finally{k(!1)}},W=e=>E({rootDir:e},e=>e.rootDir?t("proj.saved",{dir:e.rootDir}):t("proj.cleared")),D=e=>E({name:e},()=>t("proj.nameSaved")),L=g(W),O=g(D),H=async(e,l)=>{k(!0);try{var t;let a=await s.FH.browseFolder(l.trim()||void 0);a.ok?e(a.path):a.cancelled||b(null!=(t=a.reason)?t:"")}catch(e){b(e.message)}finally{k(!1)}},A=null!=(e=null==o?void 0:o.others)?e:[],T=e=>e.map(e=>({name:e.name,rootDir:e.rootDir,level2:e.level2,readOnly:e.readOnly})),q=(e,l,t)=>E({others:T(A.map(t=>t.name===e.name?{...t,...l}:t))},t),B=async()=>{await E({others:[...T(A),{name:w.trim(),rootDir:R.trim(),level2:"",readOnly:!1}]},e=>t("proj.othersSaved",{n:e.others.length}))&&(S(""),M(""))};return(0,a.jsxs)("section",{className:"panel",id:"project","aria-labelledby":"project-title",children:[(0,a.jsx)("h2",{id:"project-title",children:t("proj.title")}),(0,a.jsx)("p",{className:"muted small",children:t("proj.intro")}),j&&(0,a.jsx)("div",{className:"err",children:j}),(0,a.jsx)(I,{name:h,dir:d,repoOk:!!(null==o?void 0:o.repoOk),repoProblem:null==o?void 0:o.repoProblem,branch:null==o?void 0:o.branch,level2:null!=(l=null==o?void 0:o.level2)?l:"",readOnly:(null==o?void 0:o.readOnly)===!0,onReadOnly:e=>E({readOnly:e},()=>t(e?"proj.readOnlyOn":"proj.readOnlyOff",{name:h||d})),isDefault:!0,busy:y,onNameInput:e=>{x(e),O(e)},onName:e=>void D(e),onDirInput:e=>{u(e),L(e)},onDir:e=>void W(e),onBrowse:()=>void H(e=>void W(e),d),onLevel2:e=>E({level2:e},()=>t("proj.level2Saved",{name:h||d})),onRemove:(null==o?void 0:o.rootDir)?()=>void W(""):void 0,removeLabel:t("proj.clear")}),o&&!o.rootDir&&(0,a.jsx)("p",{className:"muted small",children:t("proj.none")}),A.map((e,l)=>(0,a.jsx)(I,{name:e.name,dir:e.rootDir,repoOk:e.repoOk,repoProblem:e.repoProblem,branch:e.branch,level2:e.level2,readOnly:!0===e.readOnly,onReadOnly:l=>q(e,{readOnly:l},()=>t(l?"proj.readOnlyOn":"proj.readOnlyOff",{name:e.name})),busy:y,onName:l=>void q(e,{name:l},()=>t("proj.nameSaved")),onDir:l=>void q(e,{rootDir:l},()=>t("proj.othersSaved",{n:A.length})),onBrowse:()=>void H(l=>void q(e,{rootDir:l},()=>t("proj.othersSaved",{n:A.length})),e.rootDir),onLevel2:l=>q(e,{level2:l},()=>t("proj.level2Saved",{name:e.name})),onRemove:()=>{let l;l=e.name,E({others:T(A.filter(e=>e.name!==l))},e=>t("proj.othersSaved",{n:e.others.length}))},removeLabel:t("proj.otherRemove")},"other-".concat(l))),(0,a.jsx)(C,{msg:p,saving:i}),(0,a.jsx)("h3",{id:"others",children:t("proj.addTitle")}),(0,a.jsx)("p",{className:"muted small",children:t("proj.othersIntro")}),(0,a.jsxs)("div",{className:"project-fields add-project",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(f,{htmlFor:"new-project-name",label:t("proj.entryName"),info:t("proj.nameInfo")}),(0,a.jsx)("input",{id:"new-project-name",type:"text",value:w,onChange:e=>S(e.target.value),placeholder:t("proj.entryName"),disabled:y})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(f,{htmlFor:"new-project-dir",label:t("proj.entryDir"),info:t("proj.dirInfo")}),(0,a.jsxs)("div",{className:"input-with-buttons",children:[(0,a.jsx)("input",{id:"new-project-dir",type:"text",value:R,onChange:e=>M(e.target.value),placeholder:"C:\\Projects\\my-app-tests",disabled:y}),(0,a.jsx)("button",{onClick:()=>void H(e=>M(e),R),disabled:y,children:t("mirror.browse")}),(0,a.jsx)("button",{className:"primary",onClick:()=>void B(),disabled:y||!w.trim()||!R.trim(),children:t("proj.otherAdd")})]})]})]})]})}function I(e){var l;let{name:t,dir:s,repoOk:i,repoProblem:r,branch:o,level2:c,readOnly:d,onReadOnly:u,isDefault:h=!1,busy:x,onNameInput:j,onName:b,onDirInput:y,onDir:k,onBrowse:w,onLevel2:N,onRemove:S,removeLabel:C}=e,{t:R}=(0,m.kj)(),M=(0,n.useId)(),[F,E]=(0,n.useState)(t),[W,D]=(0,n.useState)(s),[I,L]=(0,n.useState)(c),O=(0,n.useRef)(!1),[H,A]=(0,n.useState)(d);(0,n.useEffect)(()=>A(d),[d]),(0,n.useEffect)(()=>E(t),[t]),(0,n.useEffect)(()=>D(s),[s]),(0,n.useEffect)(()=>{O.current||L(c)},[c]);let T=g(async e=>{O.current=!1,e!==c&&await N(e)},1200);return(0,a.jsxs)("div",{className:"panel inner project-entry",children:[(0,a.jsxs)("div",{className:"row project-tags",children:[h&&(0,a.jsx)("span",{className:"chip",title:R("proj.isDefaultWhy"),children:R("proj.isDefault")}),H&&(0,a.jsx)("span",{className:"badge reference",title:R("proj.readOnlyInfo"),children:R("proj.readOnlyBadge")}),s&&(0,a.jsx)("span",{className:"badge ".concat(i?"done":""),title:i?R("proj.isRepo"):r,children:R(i?"proj.otherRepo":"proj.otherNotRepo")}),s&&i&&o&&(0,a.jsxs)("span",{className:"branch-tag",children:[(0,a.jsxs)("span",{className:"badge branch",children:[(0,a.jsx)(v.O,{})," ","HEAD"===o?R("proj.detached"):R("proj.branch",{name:o})]}),(0,a.jsx)(p.q,{label:R("info.about",{name:R("proj.branch",{name:o})}),text:R("proj.branchInfo")})]})]}),s&&!i&&(0,a.jsx)("p",{className:"muted small",children:r||R("proj.notRepoWhy")}),(0,a.jsxs)("div",{className:"field-label check-label project-readonly",children:[(0,a.jsx)("input",{id:"".concat(M,"-readonly"),type:"checkbox",checked:H,onChange:e=>{let l=e.target.checked;A(l),u(l).then(e=>{!1===e&&A(!l)})}}),(0,a.jsx)("label",{htmlFor:"".concat(M,"-readonly"),children:R("proj.readOnly")}),(0,a.jsx)(p.q,{label:R("info.about",{name:R("proj.readOnly")}),text:R("proj.readOnlyInfo")})]}),(0,a.jsxs)("div",{className:"project-fields",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(f,{htmlFor:"".concat(M,"-name"),label:R("proj.entryName"),info:R("proj.nameInfo")}),(0,a.jsx)("input",{id:"".concat(M,"-name"),type:"text",value:F,onChange:e=>{E(e.target.value),null==j||j(e.target.value)},onBlur:()=>{(F!==t||j)&&b(F)},placeholder:s?null!=(l=s.replace(/[\\/]+$/,"").split(/[\\/]/).pop())?l:"":R("proj.namePlaceholder")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(f,{htmlFor:"".concat(M,"-dir"),label:R("proj.entryDir"),info:R("proj.dirInfo")}),(0,a.jsxs)("div",{className:"input-with-buttons",children:[(0,a.jsx)("input",{id:"".concat(M,"-dir"),type:"text",value:W,onChange:e=>{D(e.target.value),null==y||y(e.target.value)},onBlur:()=>{(W!==s||y)&&k(W)},placeholder:"C:\\Projects\\my-app"}),(0,a.jsx)("button",{onClick:w,disabled:x,children:R("mirror.browse")}),S&&(0,a.jsx)("button",{className:"quiet",onClick:S,disabled:x,children:C})]})]})]}),(0,a.jsxs)("div",{className:"project-level2",children:[(0,a.jsx)(f,{htmlFor:"".concat(M,"-level2"),label:R("proj.level2"),info:R("proj.level2Info",{n:8e3.toLocaleString()})}),(0,a.jsx)("textarea",{id:"".concat(M,"-level2"),className:"prose",rows:4,maxLength:8e3,value:I,onChange:e=>{O.current=!0,L(e.target.value),T(e.target.value)},placeholder:R("proj.level2Placeholder")}),(0,a.jsx)("span",{className:"muted small",children:R("proj.level2Count",{n:I.length.toLocaleString(),max:8e3.toLocaleString()})})]})]})}function L(){let{t:e}=(0,m.kj)(),[l,t]=(0,n.useState)(""),[i,r]=(0,n.useState)(!1),[o,c]=(0,n.useState)(""),[d,u]=(0,n.useState)(""),h=async()=>{r(!0),u(""),c(e("login.waiting"));try{let e=await s.FH.login(l);e.ok?c(e.message):(c(""),u(e.message))}catch(e){c(""),u(e.message)}finally{r(!1)}};return(0,a.jsxs)("section",{className:"panel",id:"login","aria-labelledby":"login-title",children:[(0,a.jsx)("h2",{id:"login-title",children:e("login.title")}),(0,a.jsx)("p",{className:"muted small",children:e("login.intro")}),d&&(0,a.jsx)("div",{className:"err",children:d}),(0,a.jsxs)(b,{id:"login-account",label:e("login.account"),info:e("login.accountWhy"),children:[(0,a.jsx)("input",{id:"login-account",type:"email",value:l,onChange:e=>t(e.target.value),placeholder:"name@company.com",disabled:i}),(0,a.jsx)("button",{className:"primary",onClick:()=>void h(),disabled:i,children:i?e("login.busy"):e("login.button")})]}),o&&(0,a.jsx)("div",{className:"small",role:"status",children:o})]})}let O={worker:{section:"model",pick:"default-model",manualId:"manual-model",manualKey:"manualModel",field:"defaultModel",title:"def.modelTitle",intro:"def.modelIntro",info:"def.modelInfo",manualWhy:"def.manualModelWhy",saved:"def.modelSaved",cleared:"def.modelCleared",save:async e=>(await s.FH.setDefaultModel(e)).defaultModel},lead:{section:"lead-model",pick:"default-lead-model",manualId:"manual-lead-model",manualKey:"leadManualModel",field:"defaultLeadModel",title:"def.leadTitle",intro:"def.leadIntro",info:"def.leadInfo",manualWhy:"def.leadManualWhy",saved:"def.leadSaved",cleared:"def.leadCleared",save:async e=>(await s.FH.setDefaultLeadModel(e)).defaultLeadModel},review:{section:"review",pick:"default-review-model",manualId:"manual-review-model",manualKey:"reviewManualModel",field:"defaultReviewModel",title:"def.reviewTitle",intro:"def.reviewIntro",info:"def.reviewInfo",manualWhy:"def.reviewManualWhy",saved:"def.reviewSaved",cleared:"def.reviewCleared",save:async e=>(await s.FH.setDefaultReviewModel(e)).defaultReviewModel}};function H(e){var l,t;let{role:s,catalogue:i,setCatalogue:r,refreshModels:o,refreshing:c,refreshMsg:d}=e,{t:u}=(0,m.kj)(),h=(0,m.W3)(),p=O[s],{saving:v,track:j}=N(),[f,g]=(0,n.useState)(""),[y,k]=(0,n.useState)(""),[S,R]=(0,n.useState)(!1),M=null!=(l=null==i?void 0:i[p.field])?l:"",F=async e=>{R(!0),g("");try{let l=await j(p.save(e));i&&r({...i,[p.field]:l}),g(l?u(p.saved,{name:l}):u(p.cleared)),k("")}catch(e){k(e.message)}finally{R(!1)}},E="review"===s&&""!==M&&M===(null!=(t=null==i?void 0:i.defaultModel)?t:"");return(0,a.jsx)(w.Provider,{value:j,children:(0,a.jsxs)("section",{className:"panel",id:p.section,"aria-labelledby":"".concat(p.section,"-title"),children:[(0,a.jsx)("h2",{id:"".concat(p.section,"-title"),children:u(p.title)}),(0,a.jsx)("p",{className:"muted small",children:u(p.intro)}),y&&(0,a.jsx)("div",{className:"err",children:y}),(0,a.jsxs)(b,{id:p.pick,label:u("def.modelField"),info:u(p.info),children:[(0,a.jsx)(x.Yb,{id:p.pick,chosen:M,onChange:e=>void F(e),none:u("def.modelNone"),catalogue:i,disabled:S||c}),(0,a.jsx)("button",{className:"quiet",onClick:()=>void F(""),disabled:S||!M,children:u("proj.clear")}),(0,a.jsx)("button",{onClick:()=>void o(),disabled:S||c,children:u("model.refresh")})]}),(0,a.jsx)("p",{className:"muted small field-after",children:(null==i?void 0:i.readAt)?u("model.readAt",{t:h(i.readAt),n:i.options.length}):u("model.neverRead")}),E&&(0,a.jsx)("p",{className:"why field-after warned-text",children:u("def.reviewSame")}),(0,a.jsx)(A,{id:p.manualId,setting:p.manualKey,why:p.manualWhy}),(0,a.jsx)(C,{msg:f||d,saving:v})]})})}function A(e){let{id:l,setting:t,why:i}=e,{t:r}=(0,m.kj)(),o=(0,n.useContext)(w),[c,d]=(0,n.useState)(null),[u,h]=(0,n.useState)("");(0,n.useEffect)(()=>{s.FH.settings().then(e=>{var l,a,n;let s=null!=(n=e.raw.copilot)?n:{},i=(null==(a=e.defaults)||null==(l=a.copilot)?void 0:l.manualModel)!==!1,r="boolean"==typeof s.manualModel?s.manualModel:i,o=s[t];d("boolean"==typeof o?o:r)}).catch(e=>h(e.message))},[t]);let x=async e=>{d(e);try{await o(s.FH.settings().then(l=>{var a;return s.FH.saveSettings({...l.raw,copilot:{...null!=(a=l.raw.copilot)?a:{},[t]:e}})})),h("")}catch(e){h(e.message)}};return(0,a.jsxs)("div",{className:"settings-field",children:[(0,a.jsxs)("div",{className:"field-label check-label",children:[(0,a.jsx)("input",{id:l,type:"checkbox",checked:!0===c,disabled:null===c,onChange:e=>void x(e.target.checked)}),(0,a.jsx)("label",{htmlFor:l,children:r("def.manualModel")}),(0,a.jsx)(p.q,{label:r("info.about",{name:r("def.manualModel")}),text:r(i)})]}),u&&(0,a.jsx)("div",{className:"err",children:u})]})}let T=[{key:"button",label:"loc.button",why:"loc.buttonWhy"},{key:"rows",label:"loc.rows",why:"loc.rowsWhy"},{key:"model",label:"loc.model",why:"loc.modelWhy"},{key:"provider",label:"loc.provider",why:"loc.providerWhy"},{key:"providerModel",label:"loc.providerModel",why:"loc.providerModelWhy"}];function q(e){var l,t,i,r;let{catalogue:c}=e,{t:d}=(0,m.kj)(),{saving:u,track:h}=N(),[x,v]=(0,n.useState)(null),[j,f]=(0,n.useState)(null),[b,g]=(0,n.useState)(null),[y,k]=(0,n.useState)(!1),[S,R]=(0,n.useState)(""),[M,F]=(0,n.useState)(""),E=(0,n.useRef)(Promise.resolve());(0,n.useEffect)(()=>{s.FH.settings().then(e=>{var l,t,a,n,s,i;let r=null!=(a=e.raw.copilot)?a:{},c=null!=(n=r.pickerLocators)?n:{};v(Object.fromEntries(o.map(e=>{var l;return[e,null!=(l=c[e])?l:""]}))),f(null!=(s=null==(l=e.picker)?void 0:l.defaults)?s:null),g(null!=(i=null==(t=e.picker)?void 0:t.dirs)?i:null),k(!0===r.pickerSteps)}).catch(e=>F(e.message))},[]);let W=e=>{let l=async()=>{try{var l;let t=(await s.FH.settings()).raw;R(""),await h(s.FH.saveSettings({...t,copilot:e({...null!=(l=t.copilot)?l:{}})})),R(d("loc.saved")),F("")}catch(e){F(e.message)}},t=E.current.then(l,l);return E.current=t.catch(()=>void 0),t},D=null!=(t=null==c||null==(l=c.options.find(e=>!e.group))?void 0:l.name)?t:"Think deeper",I=null==c?void 0:c.options.find(e=>e.group),L=null!=(i=null==I?void 0:I.group)?i:"Claude",O=null!=(r=null==I?void 0:I.name)?r:"Opus 5.5";return(0,a.jsx)(w.Provider,{value:h,children:(0,a.jsxs)("section",{className:"panel",id:"picker-locators","aria-labelledby":"picker-locators-title",children:[(0,a.jsx)("h2",{id:"picker-locators-title",children:d("loc.title")}),(0,a.jsx)("p",{className:"muted small",children:d("loc.intro")}),(0,a.jsxs)("details",{className:"picker-how",children:[(0,a.jsx)("summary",{children:d("loc.howTitle")}),(0,a.jsxs)("ol",{className:"small",children:[(0,a.jsx)("li",{children:d("loc.how1")}),(0,a.jsx)("li",{children:d("loc.how2")}),(0,a.jsx)("li",{children:d("loc.how3")}),(0,a.jsx)("li",{children:d("loc.how4")})]})]}),M&&(0,a.jsx)("div",{className:"err",children:M}),x&&j?T.map(e=>{let l;return(0,a.jsx)(B,{field:e.key,label:d(e.label),why:d(e.why),initial:x[e.key],fallback:j[e.key],example:"model"===(l=e.key)?{name:D,names:{model:D}}:"provider"===l?{name:L,names:{provider:L}}:"providerModel"===l?{name:O,names:{model:O,provider:L}}:null,onSave:l=>{let t;return t=e.key,W(e=>{var a;let n={...null!=(a=e.pickerLocators)?a:{}};l.trim()?n[t]=l.trim():delete n[t];let s={...e,pickerLocators:n};return 0===Object.keys(n).length&&delete s.pickerLocators,s})}},e.key)}):!M&&(0,a.jsx)("p",{className:"muted small",children:d("loc.loading")}),(0,a.jsx)("div",{className:"settings-field",children:(0,a.jsxs)("div",{className:"field-label check-label",children:[(0,a.jsx)("input",{id:"picker-steps",type:"checkbox",checked:y,disabled:!x,onChange:e=>{let l=e.target.checked;k(l),W(e=>({...e,pickerSteps:l}))}}),(0,a.jsx)("label",{htmlFor:"picker-steps",children:d("loc.steps")}),(0,a.jsx)(p.q,{label:d("info.about",{name:d("loc.steps")}),text:d("loc.stepsWhy")})]})}),b&&(0,a.jsx)("p",{className:"muted small field-after picker-dirs",children:d("loc.stepsWhere",{run:b.run,read:b.read})}),(0,a.jsx)(C,{msg:S,saving:u})]})})}function B(e){let{field:l,label:t,why:s,initial:i,fallback:r,example:o,onSave:d}=e,{t:h}=(0,m.kj)(),[x,p]=(0,n.useState)(i),[v,j]=(0,n.useState)(null),b=g(e=>d(e)),y="picker-".concat(l),k=v?"placeholder"===v.kind?h("loc.noPlaceholder",{ph:v.placeholder}):"colons"===v.kind?h("loc.twoColons",{axis:v.axis}):"xpath"===v.kind?h("loc.badXPath",{msg:v.message}):h("loc.badCss",{msg:v.message}):"",w=x.trim()||r;return(0,a.jsxs)("div",{className:"settings-field picker-field",children:[(0,a.jsx)(f,{htmlFor:y,label:t,info:s}),(0,a.jsxs)("div",{className:"field-control",children:[(0,a.jsx)("input",{id:y,type:"text",className:"picker-locator",spellCheck:!1,autoComplete:"off",value:x,placeholder:r,"aria-invalid":!!v||void 0,onChange:e=>(e=>{p(e);let t=function(e,l,t){var a;let n=l.trim();if(""===n)return null;let s=c[e];if(s&&!n.includes(s))return{kind:"placeholder",placeholder:s};let i=n.startsWith("xpath=")||!n.startsWith("css=")&&/^\s*(\/|\(|\.\.?\/)/.test(n),r=/(^|[/[(|\s])(ancestor-or-self|ancestor|attribute|child|descendant-or-self|descendant|following-sibling|following|parent|preceding-sibling|preceding|self):(?!:)/.exec(n);if(r&&i)return{kind:"colons",axis:r[2]};if(!t)return null;let o=u(n.replace(/^(xpath|css)=/,""),{model:"Think deeper",provider:"Claude"});try{i?t.evaluate(o,t,null,XPathResult.ANY_TYPE,null):t.querySelector(o)}catch(l){let e=(null!=(a=l.message)?a:String(l)).replace(/^Failed to execute '\w+' on 'Document': /,"");return i?{kind:"xpath",message:e}:{kind:"css",message:e}}return null}(l,e,document);j(t),t||b(e)})(e.target.value)}),(0,a.jsx)("button",{className:"quiet",disabled:!x,onClick:()=>{p(""),j(null),d("")},children:h("loc.default")})]}),v?(0,a.jsx)("div",{className:"err field-after",role:"alert",children:k}):(0,a.jsxs)("p",{className:"muted small field-after picker-note",children:[!x.trim()&&(0,a.jsxs)("span",{children:[h("loc.isDefault")," "]}),o&&(0,a.jsxs)(a.Fragment,{children:[h("loc.example",{name:o.name})," ",(0,a.jsx)("code",{className:"picker-example",children:u(w,o.names)})]})]})]})}function P(){let{t:e}=(0,m.kj)(),{saving:l,track:t}=N(),[i,r]=(0,n.useState)(null),o=(0,n.useRef)(null),c=(0,n.useRef)(Promise.resolve()),[d,u]=(0,n.useState)(2),[x,v]=(0,n.useState)(3),[j,f]=(0,n.useState)(2),[k,w]=(0,n.useState)(2),[S,R]=(0,n.useState)(60),[M,F]=(0,n.useState)(240),[E,W]=(0,n.useState)(20),[D,I]=(0,n.useState)(900),[L,O]=(0,n.useState)(12e4),[H,A]=(0,n.useState)(!1),[T,q]=(0,n.useState)(60),[B,P]=(0,n.useState)(!1),[U,_]=(0,n.useState)(90),[K,V]=(0,n.useState)("none"),[Z,Y]=(0,n.useState)("confirm"),[$,z]=(0,n.useState)("ask"),[X,G]=(0,n.useState)("ask"),[J,Q]=(0,n.useState)("ask"),[ee,el]=(0,n.useState)(2),[et,ea]=(0,n.useState)(15),[en,es]=(0,n.useState)(""),[ei,er]=(0,n.useState)("");(0,n.useEffect)(()=>{s.FH.settings().then(e=>{var l,t,a,n,s,i,c,d,m;o.current=e.raw,r(e.raw);let h=null!=(l=e.raw.limits)?l:{};v("number"==typeof h.autoContinue?h.autoContinue:3),u("number"==typeof h.retryBlockedInFreshChat?h.retryBlockedInFreshChat:2),f("number"==typeof h.minApproachesBeforeBlocked?h.minApproachesBeforeBlocked:2),w("number"==typeof h.maxReviewRounds?h.maxReviewRounds:2),R("number"==typeof h.maxIterations?h.maxIterations:60),F("number"==typeof h.maxRunMinutes?h.maxRunMinutes:240),W("number"==typeof h.maxSubtasks?h.maxSubtasks:20),O("number"==typeof h.maxMessageChars?h.maxMessageChars:12e4),Q(null!=(t=h.subtaskRetryMode)?t:"ask"),el("number"==typeof h.subtaskRetries?h.subtaskRetries:2),ea("number"==typeof h.subtaskRetryWaitSec?h.subtaskRetryWaitSec:15);let x=null!=(a=e.raw.pacing)?a:{};A(!0===x.gapEnabled),q("number"==typeof x.gapSec?x.gapSec:60),P(!0===x.gapRandom),_("number"==typeof x.gapMaxSec?x.gapMaxSec:90);let p=null!=(n=e.raw.copilot)?n:{};I("number"==typeof p.replyTimeoutSec?p.replyTimeoutSec:900);let j=null!=(s=e.raw.execution)?s:{};V(null!=(i=j.isolation)?i:"none"),Y(null!=(c=j.mode)?c:"confirm"),z(null!=(d=j.networkFetch)?d:"ask"),G(null!=(m=j.questions)?m:"ask")}).catch(e=>er(e.message))},[]);let eo=(l,a,n)=>{let i=async()=>{var i;if(!o.current)return;let c=await s.FH.settings().then(e=>e.raw).catch(()=>o.current),d={...c,[l]:{...null!=(i=c[l])?i:{},[a]:n}};es("");try{await t(s.FH.saveSettings(d)),o.current=d,r(d),es(e("exec.saved")),er("")}catch(e){er(e.message)}},d=c.current.then(i);return c.current=d.catch(()=>void 0),d},ec=g(e=>eo("limits","retryBlockedInFreshChat",e)),ed=g(e=>eo("limits","autoContinue",e)),eu=g(e=>eo("limits","minApproachesBeforeBlocked",e)),em=g(e=>eo("limits","maxReviewRounds",e)),eh=g(e=>eo("limits","maxIterations",e)),ex=g(e=>eo("limits","maxRunMinutes",e)),ep=g(e=>eo("limits","maxSubtasks",e)),ev=g(e=>eo("copilot","replyTimeoutSec",e)),ej=g(e=>eo("limits","maxMessageChars",e)),ef=g(e=>eo("limits","subtaskRetries",e)),eb=g(e=>eo("limits","subtaskRetryWaitSec",e)),eg=g(e=>eo("pacing","gapSec",e)),ey=g(e=>eo("pacing","gapMaxSec",e)),ek=(e,l)=>eo("execution",e,l),ew=[{id:"auto-continue",label:e("exec.autoContinue"),info:e("exec.autoContinueWhy"),unit:e("exec.autoContinueUnit"),value:x,min:0,max:20,set:v,later:ed},{id:"min-approaches",label:e("exec.minApproaches"),info:e("exec.minApproachesWhy"),unit:e("exec.minApproachesUnit"),value:j,min:2,max:20,set:f,later:eu},{id:"max-review-rounds",label:e("exec.maxReviewRounds"),info:e("exec.maxReviewRoundsWhy"),unit:e("exec.maxReviewRoundsUnit"),value:k,min:1,max:6,set:w,later:em},{id:"retry-blocked",label:e("exec.retryBlocked"),info:e("exec.retryBlockedWhy"),unit:e("exec.retryBlockedTimes"),value:d,min:0,max:5,set:u,later:ec},{id:"max-iterations",label:e("exec.maxIterations"),info:e("exec.maxIterationsWhy"),unit:e("exec.maxIterationsUnit"),value:S,min:5,max:200,set:R,later:eh},{id:"max-minutes",label:e("exec.maxRunMinutes"),info:e("exec.maxRunMinutesWhy"),unit:e("exec.maxRunMinutesUnit"),value:M,min:10,max:1440,set:F,later:ex},{id:"max-subtasks",label:e("exec.maxSubtasks"),info:e("exec.maxSubtasksWhy"),unit:e("exec.maxSubtasksUnit"),value:E,min:1,max:100,set:W,later:ep},{id:"reply-timeout",label:e("exec.replyTimeout"),info:e("exec.replyTimeoutWhy"),unit:e("exec.replyTimeoutUnit"),value:D,min:60,max:10800,set:I,later:ev},{id:"max-message-chars",label:e("exec.maxMessageChars"),info:e("exec.maxMessageCharsWhy"),unit:e("exec.maxMessageCharsUnit"),value:L,min:1e3,max:1e6,set:O,later:ej}];return(0,a.jsxs)("section",{className:"panel",id:"execution","aria-labelledby":"execution-title",children:[(0,a.jsx)("h2",{id:"execution-title",children:e("exec.title")}),(0,a.jsx)("p",{className:"muted small",children:e("exec.intro")}),ei&&(0,a.jsx)("div",{className:"err",children:ei}),ew.map(e=>(0,a.jsx)(b,{id:e.id,label:e.label,info:e.info,unit:e.unit,children:(0,a.jsx)(y,{id:e.id,value:e.value,min:e.min,max:e.max,onChange:l=>{e.set(l),e.later(l)},disabled:!i})},e.id)),(0,a.jsx)("div",{className:"settings-field",children:(0,a.jsxs)("div",{className:"field-label check-label",children:[(0,a.jsx)("input",{id:"gap-on",type:"checkbox",checked:H,disabled:!i,onChange:e=>{A(e.target.checked),eo("pacing","gapEnabled",e.target.checked)}}),(0,a.jsx)("label",{htmlFor:"gap-on",children:e("exec.gap")}),(0,a.jsx)(p.q,{label:e("info.about",{name:e("exec.gap")}),text:e("exec.gapWhy")})]})}),H&&(0,a.jsx)(b,{id:"gap-sec",label:e("exec.gapSec"),info:e("exec.gapSecWhy"),unit:e("exec.gapUnit"),children:(0,a.jsx)(y,{id:"gap-sec",value:T,min:1,max:3600,onChange:e=>{q(e),eg(e)},disabled:!i})}),H&&(0,a.jsx)("div",{className:"settings-field gap-random",children:(0,a.jsxs)("div",{className:"field-label check-label",children:[(0,a.jsx)("input",{id:"gap-random",type:"checkbox",checked:B,disabled:!i,onChange:e=>{P(e.target.checked),eo("pacing","gapRandom",e.target.checked),e.target.checked&&U<T&&(_(T),ey(T))}}),(0,a.jsx)("label",{htmlFor:"gap-random",children:e("exec.gapRandom")}),(0,a.jsx)(p.q,{label:e("info.about",{name:e("exec.gapRandom")}),text:e("exec.gapRandomWhy")})]})}),H&&B&&(0,a.jsx)(b,{id:"gap-max",label:e("exec.gapMax"),info:e("exec.gapMaxWhy"),unit:e("exec.gapUnit"),children:(0,a.jsx)(y,{id:"gap-max",value:U,min:T,max:3600,onChange:e=>{_(e),ey(e)},disabled:!i})}),(0,a.jsx)(b,{id:"isolation",label:e("exec.isolation"),info:e("exec.isolationWhy"),children:(0,a.jsxs)("select",{id:"isolation",value:K,onChange:e=>{let l=e.target.value;V(l),ek("isolation",l)},disabled:!i,children:[(0,a.jsx)("option",{value:"none",children:e("exec.isolationNone")}),(0,a.jsx)("option",{value:"none-accepted",children:e("exec.isolationNoneAccepted")}),(0,a.jsx)("option",{value:"separate-account",children:e("exec.isolationAccount")}),(0,a.jsx)("option",{value:"sandbox",children:e("exec.isolationSandbox")}),(0,a.jsx)("option",{value:"vm",children:e("exec.isolationVm")})]})}),(0,a.jsx)(b,{id:"start-mode",label:e("exec.startMode"),info:e("exec.startModeWhy"),children:(0,a.jsxs)("select",{id:"start-mode",value:Z,onChange:async l=>{let t=l.target.value;("unattended"!==t||await (0,h.Z)(e("exec.modeAutoConfirm")))&&(Y(t),ek("mode",t))},disabled:!i,children:[(0,a.jsx)("option",{value:"confirm",children:e("exec.startModeAsk")}),(0,a.jsx)("option",{value:"unattended",children:e("exec.startModeAuto")})]})}),(0,a.jsx)(b,{id:"network-fetch",label:e("exec.networkFetch"),info:e("exec.networkFetchWhy"),children:(0,a.jsxs)("select",{id:"network-fetch",value:$,onChange:e=>{let l=e.target.value;z(l),ek("networkFetch",l)},disabled:!i,children:[(0,a.jsx)("option",{value:"ask",children:e("exec.networkFetchAsk")}),(0,a.jsx)("option",{value:"refuse",children:e("exec.networkFetchRefuse")}),(0,a.jsx)("option",{value:"run",children:e("exec.networkFetchRun")})]})}),(0,a.jsx)(b,{id:"questions",label:e("exec.questions"),info:e("exec.questionsWhy"),children:(0,a.jsxs)("select",{id:"questions",value:X,onChange:async l=>{let t=l.target.value;("agree"!==t||await (0,h.Z)(e("exec.questionsAgreeConfirm")))&&(G(t),ek("questions",t))},disabled:!i,children:[(0,a.jsx)("option",{value:"ask",children:e("exec.questionsAsk")}),(0,a.jsx)("option",{value:"agree",children:e("exec.questionsAgree")})]})}),(0,a.jsx)("h3",{id:"subtask-retry",children:e("exec.subRetryTitle")}),(0,a.jsx)("p",{className:"muted small",children:e("exec.subRetryIntro")}),(0,a.jsx)(b,{id:"subtask-retry-mode",label:e("exec.subRetryMode"),info:e("exec.subRetryModeWhy"),children:(0,a.jsxs)("select",{id:"subtask-retry-mode",value:J,onChange:e=>{let l=e.target.value;Q(l),eo("limits","subtaskRetryMode",l)},disabled:!i,children:[(0,a.jsx)("option",{value:"ask",children:e("exec.subRetryAsk")}),(0,a.jsx)("option",{value:"same",children:e("exec.subRetrySame")}),(0,a.jsx)("option",{value:"fresh",children:e("exec.subRetryFresh")}),(0,a.jsx)("option",{value:"lead",children:e("exec.subRetryLead")})]})}),(0,a.jsx)(b,{id:"subtask-retries",label:e("exec.subRetries"),info:e("exec.subRetriesWhy"),unit:e("exec.subRetriesUnit"),children:(0,a.jsx)(y,{id:"subtask-retries",value:ee,min:0,max:3,onChange:e=>{el(e),ef(e)},disabled:!i})}),(0,a.jsx)(b,{id:"subtask-retry-wait",label:e("exec.subRetryWait"),info:e("exec.subRetryWaitWhy"),unit:e("exec.subRetryWaitUnit"),children:(0,a.jsx)(y,{id:"subtask-retry-wait",value:et,min:0,max:600,onChange:e=>{ea(e),eb(e)},disabled:!i})}),(0,a.jsx)(C,{msg:en,saving:l})]})}},94969:(e,l,t)=>{"use strict";t.d(l,{V:()=>s});var a=t(1521);let n='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';function s(e,l,t){(0,a.useEffect)(()=>{var a,s;if(!l)return;let i=document.activeElement instanceof HTMLElement?document.activeElement:null,r=e.current,o=null!=(s=null!=(a=null==t?void 0:t.current)?a:null==r?void 0:r.querySelector(n))?s:null;null==o||o.focus();let c=e=>{if("Tab"!==e.key||!r)return;let l=Array.from(r.querySelectorAll(n)).filter(e=>null!==e.offsetParent);if(0===l.length)return;let t=l[0],a=l[l.length-1],s=r.contains(document.activeElement);e.shiftKey&&(document.activeElement===t||!s)?(e.preventDefault(),a.focus()):e.shiftKey||document.activeElement!==a&&s||(e.preventDefault(),t.focus())};return document.addEventListener("keydown",c),()=>{document.removeEventListener("keydown",c),i&&document.contains(i)&&i.focus()}},[e,l,t])}}},e=>{e.O(0,[7921,2347,3131,7358],()=>e(e.s=65323)),_N_E=e.O()}]);
|
package/dist/web/_next/static/chunks/{webpack-4665fed2f4b06052.js → webpack-d85f02ecd2903252.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={},a={};function f(d){var c=a[d];if(void 0!==c)return c.exports;var b=a[d]={exports:{}},t=!0;try{e[d].call(b.exports,b,b.exports,f),t=!1}finally{t&&delete a[d]}return b.exports}f.m=e,(()=>{var e=[];f.O=(a,d,c,b)=>{if(d){b=b||0;for(var t=e.length;t>0&&e[t-1][2]>b;t--)e[t]=e[t-1];e[t]=[d,c,b];return}for(var r=1/0,t=0;t<e.length;t++){for(var[d,c,b]=e[t],o=!0,n=0;n<d.length;n++)(!1&b||r>=b)&&Object.keys(f.O).every(e=>f.O[e](d[n]))?d.splice(n--,1):(o=!1,b<r&&(r=b));if(o){e.splice(t--,1);var i=c();void 0!==i&&(a=i)}}return a}})(),f.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return f.d(a,{a:a}),a},(()=>{var e,a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;f.t=function(d,c){if(1&c&&(d=this(d)),8&c||"object"==typeof d&&d&&(4&c&&d.__esModule||16&c&&"function"==typeof d.then))return d;var b=Object.create(null);f.r(b);var t={};e=e||[null,a({}),a([]),a(a)];for(var r=2&c&&d;"object"==typeof r&&!~e.indexOf(r);r=a(r))Object.getOwnPropertyNames(r).forEach(e=>t[e]=()=>d[e]);return t.default=()=>d,f.d(b,t),b}})(),f.d=(e,a)=>{for(var d in a)f.o(a,d)&&!f.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:a[d]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((a,d)=>(f.f[d](e,a),a),[])),f.u=e=>"static/chunks/"+(({1384:"17449abc",2060:"20154aaa",4033:"f99cb6a2",5459:"85120a0e",6543:"2398d077",7100:"82d3f3cb",7278:"63b9f8e2",8653:"a9ddb983",9346:"c7ea4e13"})[e]||e)+"."+({12:"06a7f14bd6716249",76:"f9c2aea58a61692f",80:"df762af692aca107",192:"955be0d5fcd27ec6",344:"41cc997c8c8deeed",358:"4791f77f174006f3",384:"063f394c789898a7",386:"2718f961400a3322",441:"172f3f581f0030d1",442:"2e236a6c5c413bd9",464:"f60ecfb6c72ec733",603:"4055460889ea24d8",640:"2c2baacde5197a77",642:"b70763e1cfe9e45e",714:"
|
|
1
|
+
(()=>{"use strict";var e={},a={};function f(d){var c=a[d];if(void 0!==c)return c.exports;var b=a[d]={exports:{}},t=!0;try{e[d].call(b.exports,b,b.exports,f),t=!1}finally{t&&delete a[d]}return b.exports}f.m=e,(()=>{var e=[];f.O=(a,d,c,b)=>{if(d){b=b||0;for(var t=e.length;t>0&&e[t-1][2]>b;t--)e[t]=e[t-1];e[t]=[d,c,b];return}for(var r=1/0,t=0;t<e.length;t++){for(var[d,c,b]=e[t],o=!0,n=0;n<d.length;n++)(!1&b||r>=b)&&Object.keys(f.O).every(e=>f.O[e](d[n]))?d.splice(n--,1):(o=!1,b<r&&(r=b));if(o){e.splice(t--,1);var i=c();void 0!==i&&(a=i)}}return a}})(),f.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return f.d(a,{a:a}),a},(()=>{var e,a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;f.t=function(d,c){if(1&c&&(d=this(d)),8&c||"object"==typeof d&&d&&(4&c&&d.__esModule||16&c&&"function"==typeof d.then))return d;var b=Object.create(null);f.r(b);var t={};e=e||[null,a({}),a([]),a(a)];for(var r=2&c&&d;"object"==typeof r&&!~e.indexOf(r);r=a(r))Object.getOwnPropertyNames(r).forEach(e=>t[e]=()=>d[e]);return t.default=()=>d,f.d(b,t),b}})(),f.d=(e,a)=>{for(var d in a)f.o(a,d)&&!f.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:a[d]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((a,d)=>(f.f[d](e,a),a),[])),f.u=e=>"static/chunks/"+(({1384:"17449abc",2060:"20154aaa",4033:"f99cb6a2",5459:"85120a0e",6543:"2398d077",7100:"82d3f3cb",7278:"63b9f8e2",8653:"a9ddb983",9346:"c7ea4e13"})[e]||e)+"."+({12:"06a7f14bd6716249",76:"f9c2aea58a61692f",80:"df762af692aca107",192:"955be0d5fcd27ec6",344:"41cc997c8c8deeed",358:"4791f77f174006f3",384:"063f394c789898a7",386:"2718f961400a3322",441:"172f3f581f0030d1",442:"2e236a6c5c413bd9",464:"f60ecfb6c72ec733",603:"4055460889ea24d8",640:"2c2baacde5197a77",642:"b70763e1cfe9e45e",714:"16070ca6426f260c",795:"710d39b80c9ae80c",896:"eb46d6e001d25d0f",937:"6d8406b06135134f",948:"132a0571d85c8b01",972:"db753db904050e48",992:"8470b96c23472686",1017:"ce926873b598fb89",1077:"32bfff8490ea3d67",1083:"0122bea31f7199d9",1350:"a5dc706c8110fd34",1384:"fa53da036b7dcfb4",1490:"f5154054ddfd3dee",1536:"98fab69162f370f0",1548:"2bbbbb4759fd5073",1584:"7500138d08971f81",1706:"db51b57351297898",1707:"7d64ffc060c697a0",1732:"90182d376c75c315",1872:"d12259d09bb1173f",1880:"87829ecb91209eda",1920:"59b93a4215a75653",2037:"d1bb5e37c7fe85ae",2060:"28032c3aa5bcd84d",2063:"4745e20abad5b208",2163:"147b0ca65a65d5dd",2175:"8c8957600f6b88a8",2280:"5a3754f49656d989",2355:"d6bb92f10d516f81",2378:"4f15342be64a9d23",2395:"c2c4d3696d3b5542",2435:"9b433b38d34b4b2e",2486:"d130023b2b399eaa",2506:"bc8515842e225d2a",2529:"c88688b437d71d68",2606:"8e9434e7fee257b9",2738:"2559ed1058f6fb19",2821:"409d92f5ac5b8142",2908:"4e0e875d2d471932",3088:"12b1d19ca55225b7",3117:"a4e1c3348e8bead9",3152:"d623d85a9afed5d3",3184:"0788c67536fc4140",3194:"8ee589997ce1e093",3233:"1dcc2798f7f5efa0",3322:"4f7b378a41711478",3564:"bfa030e92401f57d",3690:"f691d3fcbd70073d",3696:"a367f4c8f42909d1",3748:"8726b202d79d0dba",3794:"19aedfb95f89dc48",3804:"593b14643e74a2a1",3816:"9f5568918e35e4ef",3854:"39b7a1bf2b4189fe",3859:"f56f3c6ac4b74cf1",3976:"11b159e82e0aa974",3986:"d47ed4855773e6dd",4008:"3691a32e1711848f",4033:"3f570aeba3860608",4054:"1c8d37b1513d20d8",4328:"e326d66dd5c820c6",4444:"36f5d8532bd6300d",4459:"d6df347eb58fccd7",4560:"b8235d283fb3608c",4619:"ae3628373decf74f",4623:"d5711a8d967e49f4",4670:"6b811cc3f67a851c",4812:"0af1380aa478f6d3",4912:"1ab85b0ebf52a3e0",4969:"4f7aff472cf938bf",4982:"bbbd303d665de4f0",5052:"dc8c36742419eed5",5115:"fbe164892bfd6fa4",5120:"b4aadb89d4fb4f65",5448:"1c4e0b719af53b3f",5459:"ac16dccf0b8d73d3",5664:"507fea1f6305067e",5706:"be484c6a7bed3fde",5790:"fe114d1a18741d62",6072:"b4b359b24b1738d4",6230:"8645bbed143793da",6260:"6b5b5c9713d7133f",6336:"b09d0d920c7631eb",6364:"5b0466f24f4ecf58",6419:"61399b0413b8bef0",6421:"3ace3aefc3e7350e",6542:"963ec591b5c2bc5a",6543:"79ae940919b9695e",6554:"0110334a71e72bbe",6688:"4a6ac23ba061262b",6885:"8fb8eeb9e792b515",6891:"dd910309748ad46b",6896:"33fdeb4e682c2cab",6912:"3416822e13b4bc03",6944:"635230aa8cb23871",6964:"35718884ad3375bc",6992:"4b059bae2659231d",6996:"7c41217972cabc3f",7024:"8bc670b892a558bb",7040:"e058d8f95c3c11e7",7100:"23be11b749288234",7220:"f71047baa16e6be0",7250:"7f1d45021e49d2fd",7278:"218fd437b256a7e4",7290:"7bceed706f7b6df5",7301:"c60eb2ba8ae6b859",7307:"39c27470a879fd0a",7328:"021e5e45124e40de",7333:"04d0e45b223dadd4",7340:"a5a75ee889c30b74",7443:"c189418756727101",7484:"c0e6bfca7b2fb65e",7489:"395193bf37b80884",7496:"e638a7286c17e438",7507:"9fd648884587a7f3",7664:"bd6265e6e94e1ecd",7695:"11ba99db589cb586",7764:"e62333ee1d63a458",7872:"9b08a88b7289949f",8024:"4bd0b5a7f26a0f7d",8173:"b82aa1855e641605",8216:"b248ebe0af447347",8360:"371456f14873ee9f",8381:"2d6783c030f8a913",8544:"7c1fb012f9073eaa",8547:"424f9970cc72775f",8584:"abc09920f03375b1",8616:"8e05c4a20dcdf39d",8653:"8bbb677720017a57",8662:"f2663643214caed1",8689:"e564346c6e0d16be",8752:"bf29293df3366e17",8800:"3c7b01176e98160a",8924:"49dd385ac101fb7e",9003:"3d5c7a418d0b858b",9067:"538dec4d8ec0b04e",9068:"9662bb8fa5fdc637",9125:"8589db5ba200cbf1",9178:"a7631bd283f2a69c",9190:"e3a90b1a9ed21668",9202:"8dcf7e6a85cc3d36",9249:"916a423ac8a07e76",9296:"59fcfc8261a4c6bd",9312:"e1fb4089a122d3d3",9313:"e4f6405d96375c40",9346:"9b71b5f026a1d6d4",9348:"022486b05b882739",9418:"1e8f8e14bb5fe3ae",9591:"d205941f0062de24",9628:"d8954a2bd28b85a6",9636:"35df6241125f8513",9658:"cdecb568f615e4c9",9680:"d10b204d08ca3a62",9728:"1d4cb6c68bd55f44",9747:"9d15583d6ebafba3",9763:"da9015d4a1b533b9",9784:"c9938b7e977e14eb",9812:"024424a52730b057",9884:"8712c5ed7b044ff2",9888:"ce925cd415b672ef",9891:"a97db7c8f05693d1",9904:"a3d2f8569d7355ab",9924:"03252dda78c705c3",9968:"3d45ff9183e8b07b",9984:"cdabea5a592e42a1"})[e]+".js",f.miniCssF=e=>"static/css/"+({2737:"4bfdd3ebb3d1a180",3499:"2de713eca93a7750",5591:"73368887921d70d9"})[e]+".css",f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={},a="_N_E:";f.l=(d,c,b,t)=>{if(e[d])return void e[d].push(c);if(void 0!==b)for(var r,o,n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var l=n[i];if(l.getAttribute("src")==d||l.getAttribute("data-webpack")==a+b){r=l;break}}r||(o=!0,(r=document.createElement("script")).charset="utf-8",r.timeout=120,f.nc&&r.setAttribute("nonce",f.nc),r.setAttribute("data-webpack",a+b),r.src=f.tu(d)),e[d]=[c];var u=(a,f)=>{r.onerror=r.onload=null,clearTimeout(s);var c=e[d];if(delete e[d],r.parentNode&&r.parentNode.removeChild(r),c&&c.forEach(e=>e(f)),a)return a(f)},s=setTimeout(u.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=u.bind(null,r.onerror),r.onload=u.bind(null,r.onload),o&&document.head.appendChild(r)}})(),f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.U=function(e){var a=new URL(e,"x:/"),f={};for(var d in a)f[d]=a[d];for(var d in f.href=e,f.pathname=e.replace(/[?#].*/,""),f.origin=f.protocol="",f.toString=f.toJSON=()=>e,f)Object.defineProperty(this,d,{enumerable:!0,configurable:!0,value:f[d]})},f.U.prototype=URL.prototype,(()=>{var e;f.tt=()=>(void 0===e&&(e={createScriptURL:e=>e},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("nextjs#bundler",e))),e)})(),f.tu=e=>f.tt().createScriptURL(e),f.p="/_next/",(()=>{var e={8068:0};f.f.miniCss=(a,d)=>{e[a]?d.push(e[a]):0!==e[a]&&({2737:1,3499:1,5591:1})[a]&&d.push(e[a]=(e=>new Promise((a,d)=>{var c=f.miniCssF(e),b=f.p+c;if(((e,a)=>{for(var f=document.getElementsByTagName("link"),d=0;d<f.length;d++){var c=f[d],b=c.getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(b===e||b===a))return c}for(var t=document.getElementsByTagName("style"),d=0;d<t.length;d++){var c=t[d],b=c.getAttribute("data-href");if(b===e||b===a)return c}})(c,b))return a();((e,a,f,d)=>{var c=document.createElement("link");return c.rel="stylesheet",c.type="text/css",c.onerror=c.onload=b=>{if(c.onerror=c.onload=null,"load"===b.type)f();else{var t=b&&("load"===b.type?"missing":b.type),r=b&&b.target&&b.target.href||a,o=Error("Loading CSS chunk "+e+" failed.\n("+r+")");o.code="CSS_CHUNK_LOAD_FAILED",o.type=t,o.request=r,c.parentNode.removeChild(c),d(o)}},c.href=a,!function(e){if("function"==typeof _N_E_STYLE_LOAD){let{href:a,onload:f,onerror:d}=e;_N_E_STYLE_LOAD(0===a.indexOf(window.location.origin)?new URL(a).pathname:a).then(()=>null==f?void 0:f.call(e,{type:"load"}),()=>null==d?void 0:d.call(e,{}))}else document.head.appendChild(e)}(c)})(e,b,a,d)}))(a).then(()=>{e[a]=0},f=>{throw delete e[a],f}))}})(),(()=>{f.b=document.baseURI||self.location.href;var e={8068:0,7353:0};f.f.j=(a,d)=>{var c=f.o(e,a)?e[a]:void 0;if(0!==c)if(c)d.push(c[2]);else if(/^(2737|3499|5591|7353|8068)$/.test(a))e[a]=0;else{var b=new Promise((f,d)=>c=e[a]=[f,d]);d.push(c[2]=b);var t=f.p+f.u(a),r=Error();f.l(t,d=>{if(f.o(e,a)&&(0!==(c=e[a])&&(e[a]=void 0),c)){var b=d&&("load"===d.type?"missing":d.type),t=d&&d.target&&d.target.src;r.message="Loading chunk "+a+" failed.\n("+b+": "+t+")",r.name="ChunkLoadError",r.type=b,r.request=t,c[1](r)}},"chunk-"+a,a)}},f.O.j=a=>0===e[a];var a=(a,d)=>{var c,b,[t,r,o]=d,n=0;if(t.some(a=>0!==e[a])){for(c in r)f.o(r,c)&&(f.m[c]=r[c]);if(o)var i=o(f)}for(a&&a(d);n<t.length;n++)b=t[n],f.o(e,b)&&e[b]&&e[b][0](),e[b]=0;return f.O(i)},d=self.webpackChunk_N_E=self.webpackChunk_N_E||[];d.forEach(a.bind(null,0)),d.push=a.bind(null,d.push.bind(d))})()})();
|