@tickernelz/paperclip-pro-ui 2026.1026.1 → 2026.1026.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/assets/{AgentAvatar-3pt0e7Nb.js → AgentAvatar-D4YQ4myL.js} +1 -1
  2. package/dist/assets/{Agents.production-CEz_YqOz.js → Agents.production-DisxPp_D.js} +2 -2
  3. package/dist/assets/{BreadcrumbContext-C5UY1_2_.js → BreadcrumbContext-DP0mgUIg.js} +2 -2
  4. package/dist/assets/{CompanyActivity.production-Bpl5z0M-.js → CompanyActivity.production-IHMnSMxY.js} +1 -1
  5. package/dist/assets/{CompanyExport-CtEd3A9b.js → CompanyExport-DLFCiJgk.js} +4 -4
  6. package/dist/assets/{CompanySkills.production-Cukn9jaT.js → CompanySkills.production-D7Kycho5.js} +1 -1
  7. package/dist/assets/{EmptyState-DQbVgS-p.js → EmptyState-BN5HM6-K.js} +1 -1
  8. package/dist/assets/{MarkdownBody-Bag5G4pU.js → MarkdownBody-N2K7JfY-.js} +10 -10
  9. package/dist/assets/{MarkdownEditor-DeDfAfa1.js → MarkdownEditor-DHz7g42W.js} +2 -2
  10. package/dist/assets/{OrgChart.production-BiDz21UE.js → OrgChart.production-DOQpinvG.js} +1 -1
  11. package/dist/assets/{PageSkeleton-D_5r8dcZ.js → PageSkeleton-BiXcKvFW.js} +1 -1
  12. package/dist/assets/{RoutineDetail.production-CzbBhJAk.js → RoutineDetail.production-CKEsocIQ.js} +1 -1
  13. package/dist/assets/{RoutineRunVariablesDialog-CZtsH_JY.js → RoutineRunVariablesDialog-CrC88u8T.js} +2 -2
  14. package/dist/assets/{Routines.production-PCnujAqa.js → Routines.production-BreVWKw_.js} +1 -1
  15. package/dist/assets/{SearchableSelect-BOAdBQ1_.js → SearchableSelect-CyZJenSa.js} +2 -2
  16. package/dist/assets/{StatusIcon-BBMKEIzh.js → StatusIcon-C_7wHYAC.js} +1 -1
  17. package/dist/assets/{Terminal-BKpg1lTQ.js → Terminal-DvZkSOO9.js} +1 -1
  18. package/dist/assets/{ToastContext-pqJDE-qV.js → ToastContext-YqYQB596.js} +1 -1
  19. package/dist/assets/{access-DFdkIDh6.js → access-CspWWirX.js} +1 -1
  20. package/dist/assets/agent-avatar-url-BgdXoMNW.js +1 -0
  21. package/dist/assets/{agents-Bt8zKqlA.js → agents-BXUtBaur.js} +1 -1
  22. package/dist/assets/{alert-dialog-BTQO_vxZ.js → alert-dialog-BGWR1eHm.js} +1 -1
  23. package/dist/assets/{arrow-right-Ce12eTM-.js → arrow-right-QtlfoJHE.js} +1 -1
  24. package/dist/assets/{badge-DS0iSZk6.js → badge-_pdOC0PF.js} +1 -1
  25. package/dist/assets/{bot-BGWVOcez.js → bot-B09KshQK.js} +1 -1
  26. package/dist/assets/{boxes-C02rVL8S.js → boxes-Bpd3vwBa.js} +15 -15
  27. package/dist/assets/card-B_2b5Riw.js +1 -0
  28. package/dist/assets/{check-DgsYPXlG.js → check-2BJzr5lo.js} +1 -1
  29. package/dist/assets/{checkbox-DoOpwYPO.js → checkbox-DhPd8h_U.js} +1 -1
  30. package/dist/assets/{chevron-down-BEJgazB5.js → chevron-down-C8ZdH7h9.js} +1 -1
  31. package/dist/assets/{clipboard-AC72N8Z3.js → clipboard-B6GwC8zN.js} +1 -1
  32. package/dist/assets/{definition-qpMYsfq9.js → definition-CzvtfwXO.js} +1 -1
  33. package/dist/assets/{dialog-BMEd_jdP.js → dialog-aW5qVpwP.js} +1 -1
  34. package/dist/assets/{dist-BdyzVC8t.js → dist-BNyB3Sjo.js} +1 -1
  35. package/dist/assets/{dist-B6Jsa02Z.js → dist-Cwi5N9Q2.js} +1 -1
  36. package/dist/assets/dist-G1LZKTxg.js +1 -0
  37. package/dist/assets/{dist-CePqi6B5.js → dist-f8T_RDWp.js} +1 -1
  38. package/dist/assets/{dist-B2LcjvpJ.js → dist-rAdi5Ixy.js} +1 -1
  39. package/dist/assets/{environments-wosDJECi.js → environments-C7g5xojw.js} +1 -1
  40. package/dist/assets/{external-link-CGKReFbp.js → external-link-CDJwwbV8.js} +1 -1
  41. package/dist/assets/{file-text-BEpTQbBb.js → file-text-HU_olDIx.js} +1 -1
  42. package/dist/assets/{health-Dg7ygOgu.js → health-Za7wEC5p.js} +1 -1
  43. package/dist/assets/heartbeats-CpU47ZZC.js +1 -0
  44. package/dist/assets/{index-BETsy-4G.js → index-1d87cXe2.js} +167 -167
  45. package/dist/assets/index-C3k-0GCc.css +1 -0
  46. package/dist/assets/{input-n2PwoC5W.js → input-CfcFr-x-.js} +1 -1
  47. package/dist/assets/{instanceSettings-UW4UJtsx.js → instanceSettings-CIY4sDga.js} +1 -1
  48. package/dist/assets/{label-CljinCBZ.js → label-CRFTGD7I.js} +1 -1
  49. package/dist/assets/{mention-chips-qHd6m1ND.js → mention-chips-1XYhZxbY.js} +2 -2
  50. package/dist/assets/{rotate-ccw-BG8FHoCt.js → rotate-ccw-MDZCGMRv.js} +1 -1
  51. package/dist/assets/{save-BXLSR2gg.js → save-BDLuZ_1b.js} +1 -1
  52. package/dist/assets/{select-BE2Dzeqe.js → select-CV4NIBut.js} +1 -1
  53. package/dist/assets/{sheet-f-OPLA_A.js → sheet-gHOCLZNA.js} +1 -1
  54. package/dist/assets/{skeleton-B0n5vJZM.js → skeleton-BXdcfOZv.js} +1 -1
  55. package/dist/assets/{tabs-DjPbBqQc.js → tabs-D69nzsXS.js} +1 -1
  56. package/dist/assets/{use-adapter-capabilities-D1fcMd4Z.js → use-adapter-capabilities--7ZiaS5B.js} +1 -1
  57. package/dist/assets/{useHiddenSettings-CrkxOtUf.js → useHiddenSettings-DUdQI3FV.js} +1 -1
  58. package/dist/assets/{usePrefersReducedMotion-BWTaUL90.js → usePrefersReducedMotion-CT6hiLGt.js} +1 -1
  59. package/dist/assets/{x-DzHuYO5n.js → x-BYvg7sTI.js} +1 -1
  60. package/dist/downloads/local-browser-chromium.zip +0 -0
  61. package/dist/downloads/local-browser-firefox-unsigned.zip +0 -0
  62. package/dist/downloads/local-browser-firefox.xpi +0 -0
  63. package/dist/index.html +50 -50
  64. package/dist/sw.js +1 -1
  65. package/package.json +1 -1
  66. package/dist/assets/agent-avatar-url-BMpmTJXY.js +0 -1
  67. package/dist/assets/card-B_jC1ZsI.js +0 -1
  68. package/dist/assets/dist-Bmk2aBAp.js +0 -1
  69. package/dist/assets/heartbeats-EALHMlGe.js +0 -1
  70. package/dist/assets/index-CARV3Pdj.css +0 -1
@@ -1,4 +1,4 @@
1
- var Mn=Object.defineProperty;var a=(e,t)=>Mn(e,"name",{value:t,configurable:!0});import{i as Ot}from"./rolldown-runtime-ZpX3ckPj.js";import{$a as Ln,G as V,Ki as Tn,P as On,St as ce,Xa as jn,Za as Nn,_a as Bn,a as Un,aa as zn,c as Fn,ht as qn,ia as Hn,l as Wn,n as k,na as Vn,pt as Qn,r as Kn,ra as h,t as Jn,u as Gn}from"./boxes-C02rVL8S.js";import{t as Yn}from"./preload-helper-CceJXRIF.js";var l=Ot(Ln(),1),He=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,jt=/^[\\/]{2}/;function Zn(e,t){return t+e.replace(/\\/g,"/")}a(Zn,"normalizeProtocolRelativeUrl");var ot="popstate";function st(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}a(st,"isLocation");function Xn(e={}){function t(n,o){let s=o.state?.masked,{pathname:i,search:u,hash:c}=s||n.location;return Oe("",{pathname:i,search:u,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default",s?{pathname:n.location.pathname,search:n.location.search,hash:n.location.hash}:void 0)}a(t,"createBrowserLocation");function r(n,o){return typeof o=="string"?o:Q(o)}return a(r,"createBrowserHref"),ta(t,r,null,e)}a(Xn,"createBrowserHistory");function C(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}a(C,"invariant");function M(e,t){if(!e)try{throw new Error(t)}catch{}}a(M,"warning");function ea(){return Math.random().toString(36).substring(2,10)}a(ea,"createKey");function it(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}a(it,"getHistoryState");function Oe(e,t,r=null,n,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ee(t):t,state:r,key:t&&t.key||n||ea(),mask:o}}a(Oe,"createLocation");function Q({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}a(Q,"createPath");function ee(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}a(ee,"parsePath");function ta(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:s=!1}=n,i=o.history,u="POP",c=null,d=m();d==null&&(d=0,i.replaceState({...i.state,idx:d},""));function m(){return(i.state||{idx:null}).idx}a(m,"getIndex");function f(){u="POP";let p=m(),x=p==null?null:p-d;d=p,c&&c({action:u,location:y.location,delta:x})}a(f,"handlePop");function g(p,x){u="PUSH";let w=st(p)?p:Oe(y.location,p,x);r&&r(w,p),d=m()+1;let S=it(w,d),$=y.createHref(w.mask||w);try{i.pushState(S,"",$)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign($)}s&&c&&c({action:u,location:y.location,delta:1})}a(g,"push");function b(p,x){u="REPLACE";let w=st(p)?p:Oe(y.location,p,x);r&&r(w,p),d=m();let S=it(w,d),$=y.createHref(w.mask||w);i.replaceState(S,"",$),s&&c&&c({action:u,location:y.location,delta:0})}a(b,"replace2");function v(p){return ra(o,p)}a(v,"createURL");let y={get action(){return u},get location(){return e(o,i)},listen(p){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(ot,f),c=p,()=>{o.removeEventListener(ot,f),c=null}},createHref(p){return t(o,p)},createURL:v,encodeLocation(p){let x=v(p);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:g,replace:b,go(p){return i.go(p)}};return y}a(ta,"getUrlBasedHistory");function ra(e,t,r=!1){let n="http://localhost";e&&(n=e.location.origin!=="null"?e.location.origin:e.location.href),C(n,"No window.location.(origin|href) available to create URL");let o=typeof t=="string"?t:Q(t);return o=o.replace(/ $/,"%20"),!r&&jt.test(o)&&(o=n+o),new URL(o,n)}a(ra,"createBrowserURLImpl");var na;na=new WeakMap;function Nt(e,t,r="/"){return Bt(e,t,r,!1)}a(Nt,"matchRoutes");function Bt(e,t,r,n,o){let s=F((typeof t=="string"?ee(t):t).pathname||"/",r);if(s==null)return null;let i=o??oa(e),u=null,c=ga(s);for(let d=0;u==null&&d<i.length;++d)u=pa(i[d],c,n);return u}a(Bt,"matchRoutesImpl");function aa(e,t){let{route:r,pathname:n,params:o}=e;return{id:r.id,pathname:n,params:o,data:t[r.id],loaderData:t[r.id],handle:r.handle}}a(aa,"convertRouteMatchToUiMatch");function oa(e){let t=Ut(e);return sa(t),t}a(oa,"flattenAndRankRoutes");function Ut(e,t=[],r=[],n="",o=!1){let s=a((i,u,c=o,d)=>{let m={relativePath:d===void 0?i.path||"":d,caseSensitive:i.caseSensitive===!0,childrenIndex:u,route:i};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(n)&&c)return;C(m.relativePath.startsWith(n),`Absolute route path "${m.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(n.length)}let f=N([n,m.relativePath]),g=r.concat(m);i.children&&i.children.length>0&&(C(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),Ut(i.children,t,g,f,c)),!(i.path==null&&!i.index)&&t.push({path:f,score:ma(f,i.index),routesMeta:g.map((b,v)=>{let[y,p]=qt(b.relativePath,b.caseSensitive,v===g.length-1);return{...b,matcher:y,compiledParams:p}})})},"flattenRoute");return e.forEach((i,u)=>{if(i.path===""||!i.path?.includes("?"))s(i,u);else for(let c of zt(i.path))s(i,u,!0,c)}),t}a(Ut,"flattenRoutes");function zt(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return o?[s,""]:[s];let i=zt(n.join("/")),u=[];return u.push(...i.map(c=>c===""?s:[s,c].join("/"))),o&&u.push(...i),u.map(c=>e.startsWith("/")&&c===""?"/":c)}a(zt,"explodeOptionalSegments");function sa(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:ha(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}a(sa,"rankRouteBranches");var ia=/^:[\w-]+$/,la=3,ua=2,ca=1,da=10,fa=-2,lt=a(e=>e==="*","isSplat");function ma(e,t){let r=e.split("/"),n=r.length;return r.some(lt)&&(n+=fa),t&&(n+=ua),r.filter(o=>!lt(o)).reduce((o,s)=>o+(ia.test(s)?la:s===""?ca:da),n)}a(ma,"computeScore");function ha(e,t){return e.length===t.length&&e.slice(0,-1).every((r,n)=>r===t[n])?e[e.length-1]-t[t.length-1]:0}a(ha,"compareIndexes");function pa(e,t,r=!1){let{routesMeta:n}=e,o={},s="/",i=[];for(let u=0;u<n.length;++u){let c=n[u],d=u===n.length-1,m=s==="/"?t:t.slice(s.length)||"/",f={path:c.relativePath,caseSensitive:c.caseSensitive,end:d},g=c.matcher&&c.compiledParams?Ft(f,m,c.matcher,c.compiledParams):ke(f,m),b=c.route;if(!g&&d&&r&&!n[n.length-1].route.index&&(g=ke({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},m)),!g)return null;Object.assign(o,g.params),i.push({params:o,pathname:N([s,g.pathname]),pathnameBase:ba(N([s,g.pathnameBase])),route:b}),g.pathnameBase!=="/"&&(s=N([s,g.pathnameBase]))}return i}a(pa,"matchRouteBranch");function ke(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=qt(e.path,e.caseSensitive,e.end);return Ft(e,t,r,n)}a(ke,"matchPath");function Ft(e,t,r,n){let o=t.match(r);if(!o)return null;let s=o[0],i=Z(s,1),u=o.slice(1);return{params:n.reduce((c,{paramName:d,isOptional:m},f)=>{if(d==="*"){let b=u[f]||"";i=Z(s.slice(0,s.length-b.length),1)}const g=u[f];return m&&!g?c[d]=void 0:c[d]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:i,pattern:e}}a(Ft,"matchPathImpl");function qt(e,t=!1,r=!0){M(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,i,u,c,d)=>{if(n.push({paramName:i,isOptional:u!=null}),u){let m=d.charAt(c+s.length);return m&&m!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}a(qt,"compilePath");function ga(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return M(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}a(ga,"decodePath");function F(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}a(F,"stripBasename");function ya(e,t="/"){let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?ee(e):e,s;return r?(r=Ht(r),r.startsWith("/")||r.startsWith("\\")?s=ut(r.substring(1),"/"):s=ut(r,t)):s=t,{pathname:s,search:ka(n),hash:xa(o)}}a(ya,"resolvePath");function ut(e,t){let r=Z(t).split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}a(ut,"resolvePathname");function Pe(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}a(Pe,"getInvalidPathError");function va(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}a(va,"getPathContributingMatches");function We(e){let t=va(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}a(We,"getResolveToMatches");function Ie(e,t,r,n=!1){let o;typeof e=="string"?o=ee(e):(o={...e},C(!o.pathname||!o.pathname.includes("?"),Pe("?","pathname","search",o)),C(!o.pathname||!o.pathname.includes("#"),Pe("#","pathname","hash",o)),C(!o.search||!o.search.includes("#"),Pe("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,u;if(i==null)u=r;else{let f=t.length-1;if(!n&&i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),f-=1;o.pathname=g.join("/")}u=f>=0?t[f]:"/"}let c=ya(o,u),d=i&&i!=="/"&&i.endsWith("/"),m=(s||i===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(d||m)&&(c.pathname+="/"),c}a(Ie,"resolveTo$1");var Ht=a(e=>e.replace(/[\\/]{2,}/g,"/"),"removeDoubleSlashes"),N=a(e=>Ht(e.join("/")),"joinPaths");function Z(e,t=0){let r=e.length;for(;r>t&&e.charCodeAt(r-1)===47;)r--;return r===e.length?e:e.slice(0,r)}a(Z,"removeTrailingSlash");var ba=a(e=>Z(e).replace(/^\/*/,"/"),"normalizePathname"),ka=a(e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,"normalizeSearch"),xa=a(e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,"normalizeHash"),wa=class{static{a(this,"ErrorResponseImpl")}constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Wt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}a(Wt,"isRouteErrorResponse");function Sa(e){return N(e.map(t=>t.route.path).filter(Boolean))||"/"}a(Sa,"getRoutePattern");var Vt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Qt(e,t){let r=e;if(typeof r!="string"||!He.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,o=!1;if(Vt)try{let s=new URL(window.location.href),i=jt.test(r)?new URL(Zn(r,s.protocol)):new URL(r),u=F(i.pathname,t);i.origin===s.origin&&u!=null?r=u+i.search+i.hash:o=!0}catch{M(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:o,to:r}}a(Qt,"parseToInfo");var Wi=Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),ct=new URL("http://localhost");function Ve(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),ct)}catch{return ct}}a(Ve,"getNavigatorCurrentUrl");function Me(e,t){return e.origin===t.origin&&(e.origin!=="null"||e.protocol===t.protocol&&e.host===t.host)}a(Me,"isSameOrigin");function Ia(e,t){if(e.startsWith("//"))return!0;let r=t.protocol.toLowerCase();return e.toLowerCase().startsWith(r)?t.host===""||e.slice(r.length).startsWith("//"):!1}a(Ia,"isExplicitUrl");function Qe(e,t,r,n){let o=null;try{o=e==null?null:new URL(e,r)}catch{}let s=new URL(t,r),i=o!=null&&!Me(o,r),u=!Me(s,r);if(n==="reject"){if(i||u)throw new Error("External navigation is not allowed")}else if(u&&(o==null||!Ia(e,o)||!Me(o,s)))throw new Error("External navigation is not allowed")}a(Qe,"validateNavigationTarget");var Kt=["POST","PUT","PATCH","DELETE"],Vi=new Set(Kt),Ea=["GET",...Kt],Qi=new Set(Ea),Ra,Ca,$a,_a;Ra=new WeakMap;Ca=new WeakMap;$a=new WeakMap;_a=new WeakMap;var Da=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Aa(e){try{return Da.includes(new URL(e).protocol)}catch{return!1}}a(Aa,"hasInvalidProtocol");var te=l.createContext(null);te.displayName="DataRouter";var de=l.createContext(null);de.displayName="DataRouterState";var Jt=l.createContext(!1);function Gt(){return l.useContext(Jt)}a(Gt,"useIsRSCRouterContext");var Yt=l.createContext({isTransitioning:!1});Yt.displayName="ViewTransition";var Pa=l.createContext(new Map);Pa.displayName="Fetchers";var je=l.createContext(null);je.displayName="Await";var A=l.createContext(null);A.displayName="Navigation";var re=l.createContext(null);re.displayName="Location";var O=l.createContext({outlet:null,matches:[],isDataRoute:!1});O.displayName="Route";var Ke=l.createContext(null);Ke.displayName="RouteError";var Zt="REACT_ROUTER_ERROR",Ma="REDIRECT",La="ROUTE_ERROR_RESPONSE";function Ta(e){if(e.startsWith(`${Zt}:${Ma}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}a(Ta,"decodeRedirectErrorDigest");function Oa(e){if(e.startsWith(`${Zt}:${La}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new wa(t.status,t.statusText,t.data)}catch{}}a(Oa,"decodeRouteErrorResponseDigest");function ja(e,{relative:t}={}){C(ne(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=l.useContext(A),{hash:o,pathname:s,search:i}=fe(e,{relative:t}),u=s;return r!=="/"&&(u=s==="/"?r:N([r,s])),n.createHref({pathname:u,search:i,hash:o})}a(ja,"useHref");function ne(){return l.useContext(re)!=null}a(ne,"useInRouterContext");function L(){return C(ne(),"useLocation() may be used only in the context of a <Router> component."),l.useContext(re).location}a(L,"useLocation");function Ki(){return l.useContext(re).navigationType}a(Ki,"useNavigationType");var Xt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function er(e){l.useContext(A).static||l.useLayoutEffect(e)}a(er,"useIsomorphicLayoutEffect");function Ee(){let{isDataRoute:e}=l.useContext(O);return e?Xa():Na()}a(Ee,"useNavigate$1");function Na(){C(ne(),"useNavigate() may be used only in the context of a <Router> component.");let e=l.useContext(te),{basename:t,navigator:r}=l.useContext(A),{matches:n}=l.useContext(O),{pathname:o}=L(),s=JSON.stringify(We(n)),i=l.useRef(!1);return er(()=>{i.current=!0}),l.useCallback((u,c={})=>{if(M(i.current,Xt),!i.current)return;if(typeof u=="number"){r.go(u);return}let d=Ie(u,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:N([t,d.pathname])),Qe(typeof u=="string"?u:Q(u),r.createHref(d),Ve(r),"reject"),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,o,e])}a(Na,"useNavigateUnstable");var Ba=l.createContext(null);function Ua(e){let t=l.useContext(O).outlet;return l.useMemo(()=>t&&l.createElement(Ba.Provider,{value:e},t),[t,e])}a(Ua,"useOutlet");function za(){let{matches:e}=l.useContext(O);return e[e.length-1]?.params??{}}a(za,"useParams");function fe(e,{relative:t}={}){let{matches:r}=l.useContext(O),{pathname:n}=L(),o=JSON.stringify(We(r));return l.useMemo(()=>Ie(e,JSON.parse(o),n,t==="path"),[e,o,n,t])}a(fe,"useResolvedPath");function Fa(e,t){return tr(e,t)}a(Fa,"useRoutes");function tr(e,t,r){C(ne(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=l.useContext(A),{matches:o}=l.useContext(O),s=o[o.length-1],i=s?s.params:{},u=s?s.pathname:"/",c=s?s.pathnameBase:"/",d=s&&s.route;{let p=d&&d.path||"";ar(u,!d||p.endsWith("*")||p.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${p}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
1
+ var Mn=Object.defineProperty;var a=(e,t)=>Mn(e,"name",{value:t,configurable:!0});import{i as Ot}from"./rolldown-runtime-ZpX3ckPj.js";import{G as V,P as Ln,Qa as Tn,St as ce,Za as On,a as jn,aa as Nn,c as Bn,eo as Un,ht as zn,ia as h,l as Fn,n as k,oa as qn,pt as Hn,qi as Wn,r as Vn,ra as Qn,t as Kn,u as Jn,va as Gn}from"./boxes-Bpd3vwBa.js";import{t as Yn}from"./preload-helper-CceJXRIF.js";var l=Ot(Un(),1),He=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,jt=/^[\\/]{2}/;function Zn(e,t){return t+e.replace(/\\/g,"/")}a(Zn,"normalizeProtocolRelativeUrl");var ot="popstate";function st(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}a(st,"isLocation");function Xn(e={}){function t(n,o){let s=o.state?.masked,{pathname:i,search:u,hash:c}=s||n.location;return Oe("",{pathname:i,search:u,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default",s?{pathname:n.location.pathname,search:n.location.search,hash:n.location.hash}:void 0)}a(t,"createBrowserLocation");function r(n,o){return typeof o=="string"?o:Q(o)}return a(r,"createBrowserHref"),ta(t,r,null,e)}a(Xn,"createBrowserHistory");function C(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}a(C,"invariant");function M(e,t){if(!e)try{throw new Error(t)}catch{}}a(M,"warning");function ea(){return Math.random().toString(36).substring(2,10)}a(ea,"createKey");function it(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}a(it,"getHistoryState");function Oe(e,t,r=null,n,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ee(t):t,state:r,key:t&&t.key||n||ea(),mask:o}}a(Oe,"createLocation");function Q({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}a(Q,"createPath");function ee(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}a(ee,"parsePath");function ta(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:s=!1}=n,i=o.history,u="POP",c=null,d=m();d==null&&(d=0,i.replaceState({...i.state,idx:d},""));function m(){return(i.state||{idx:null}).idx}a(m,"getIndex");function f(){u="POP";let p=m(),x=p==null?null:p-d;d=p,c&&c({action:u,location:y.location,delta:x})}a(f,"handlePop");function g(p,x){u="PUSH";let w=st(p)?p:Oe(y.location,p,x);r&&r(w,p),d=m()+1;let S=it(w,d),$=y.createHref(w.mask||w);try{i.pushState(S,"",$)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign($)}s&&c&&c({action:u,location:y.location,delta:1})}a(g,"push");function b(p,x){u="REPLACE";let w=st(p)?p:Oe(y.location,p,x);r&&r(w,p),d=m();let S=it(w,d),$=y.createHref(w.mask||w);i.replaceState(S,"",$),s&&c&&c({action:u,location:y.location,delta:0})}a(b,"replace2");function v(p){return ra(o,p)}a(v,"createURL");let y={get action(){return u},get location(){return e(o,i)},listen(p){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(ot,f),c=p,()=>{o.removeEventListener(ot,f),c=null}},createHref(p){return t(o,p)},createURL:v,encodeLocation(p){let x=v(p);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:g,replace:b,go(p){return i.go(p)}};return y}a(ta,"getUrlBasedHistory");function ra(e,t,r=!1){let n="http://localhost";e&&(n=e.location.origin!=="null"?e.location.origin:e.location.href),C(n,"No window.location.(origin|href) available to create URL");let o=typeof t=="string"?t:Q(t);return o=o.replace(/ $/,"%20"),!r&&jt.test(o)&&(o=n+o),new URL(o,n)}a(ra,"createBrowserURLImpl");var na;na=new WeakMap;function Nt(e,t,r="/"){return Bt(e,t,r,!1)}a(Nt,"matchRoutes");function Bt(e,t,r,n,o){let s=F((typeof t=="string"?ee(t):t).pathname||"/",r);if(s==null)return null;let i=o??oa(e),u=null,c=ga(s);for(let d=0;u==null&&d<i.length;++d)u=pa(i[d],c,n);return u}a(Bt,"matchRoutesImpl");function aa(e,t){let{route:r,pathname:n,params:o}=e;return{id:r.id,pathname:n,params:o,data:t[r.id],loaderData:t[r.id],handle:r.handle}}a(aa,"convertRouteMatchToUiMatch");function oa(e){let t=Ut(e);return sa(t),t}a(oa,"flattenAndRankRoutes");function Ut(e,t=[],r=[],n="",o=!1){let s=a((i,u,c=o,d)=>{let m={relativePath:d===void 0?i.path||"":d,caseSensitive:i.caseSensitive===!0,childrenIndex:u,route:i};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(n)&&c)return;C(m.relativePath.startsWith(n),`Absolute route path "${m.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(n.length)}let f=N([n,m.relativePath]),g=r.concat(m);i.children&&i.children.length>0&&(C(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),Ut(i.children,t,g,f,c)),!(i.path==null&&!i.index)&&t.push({path:f,score:ma(f,i.index),routesMeta:g.map((b,v)=>{let[y,p]=qt(b.relativePath,b.caseSensitive,v===g.length-1);return{...b,matcher:y,compiledParams:p}})})},"flattenRoute");return e.forEach((i,u)=>{if(i.path===""||!i.path?.includes("?"))s(i,u);else for(let c of zt(i.path))s(i,u,!0,c)}),t}a(Ut,"flattenRoutes");function zt(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return o?[s,""]:[s];let i=zt(n.join("/")),u=[];return u.push(...i.map(c=>c===""?s:[s,c].join("/"))),o&&u.push(...i),u.map(c=>e.startsWith("/")&&c===""?"/":c)}a(zt,"explodeOptionalSegments");function sa(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:ha(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}a(sa,"rankRouteBranches");var ia=/^:[\w-]+$/,la=3,ua=2,ca=1,da=10,fa=-2,lt=a(e=>e==="*","isSplat");function ma(e,t){let r=e.split("/"),n=r.length;return r.some(lt)&&(n+=fa),t&&(n+=ua),r.filter(o=>!lt(o)).reduce((o,s)=>o+(ia.test(s)?la:s===""?ca:da),n)}a(ma,"computeScore");function ha(e,t){return e.length===t.length&&e.slice(0,-1).every((r,n)=>r===t[n])?e[e.length-1]-t[t.length-1]:0}a(ha,"compareIndexes");function pa(e,t,r=!1){let{routesMeta:n}=e,o={},s="/",i=[];for(let u=0;u<n.length;++u){let c=n[u],d=u===n.length-1,m=s==="/"?t:t.slice(s.length)||"/",f={path:c.relativePath,caseSensitive:c.caseSensitive,end:d},g=c.matcher&&c.compiledParams?Ft(f,m,c.matcher,c.compiledParams):ke(f,m),b=c.route;if(!g&&d&&r&&!n[n.length-1].route.index&&(g=ke({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},m)),!g)return null;Object.assign(o,g.params),i.push({params:o,pathname:N([s,g.pathname]),pathnameBase:ba(N([s,g.pathnameBase])),route:b}),g.pathnameBase!=="/"&&(s=N([s,g.pathnameBase]))}return i}a(pa,"matchRouteBranch");function ke(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=qt(e.path,e.caseSensitive,e.end);return Ft(e,t,r,n)}a(ke,"matchPath");function Ft(e,t,r,n){let o=t.match(r);if(!o)return null;let s=o[0],i=Z(s,1),u=o.slice(1);return{params:n.reduce((c,{paramName:d,isOptional:m},f)=>{if(d==="*"){let b=u[f]||"";i=Z(s.slice(0,s.length-b.length),1)}const g=u[f];return m&&!g?c[d]=void 0:c[d]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:i,pattern:e}}a(Ft,"matchPathImpl");function qt(e,t=!1,r=!0){M(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,i,u,c,d)=>{if(n.push({paramName:i,isOptional:u!=null}),u){let m=d.charAt(c+s.length);return m&&m!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}a(qt,"compilePath");function ga(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return M(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}a(ga,"decodePath");function F(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}a(F,"stripBasename");function ya(e,t="/"){let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?ee(e):e,s;return r?(r=Ht(r),r.startsWith("/")||r.startsWith("\\")?s=ut(r.substring(1),"/"):s=ut(r,t)):s=t,{pathname:s,search:ka(n),hash:xa(o)}}a(ya,"resolvePath");function ut(e,t){let r=Z(t).split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}a(ut,"resolvePathname");function Pe(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}a(Pe,"getInvalidPathError");function va(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}a(va,"getPathContributingMatches");function We(e){let t=va(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}a(We,"getResolveToMatches");function Ie(e,t,r,n=!1){let o;typeof e=="string"?o=ee(e):(o={...e},C(!o.pathname||!o.pathname.includes("?"),Pe("?","pathname","search",o)),C(!o.pathname||!o.pathname.includes("#"),Pe("#","pathname","hash",o)),C(!o.search||!o.search.includes("#"),Pe("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,u;if(i==null)u=r;else{let f=t.length-1;if(!n&&i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),f-=1;o.pathname=g.join("/")}u=f>=0?t[f]:"/"}let c=ya(o,u),d=i&&i!=="/"&&i.endsWith("/"),m=(s||i===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(d||m)&&(c.pathname+="/"),c}a(Ie,"resolveTo$1");var Ht=a(e=>e.replace(/[\\/]{2,}/g,"/"),"removeDoubleSlashes"),N=a(e=>Ht(e.join("/")),"joinPaths");function Z(e,t=0){let r=e.length;for(;r>t&&e.charCodeAt(r-1)===47;)r--;return r===e.length?e:e.slice(0,r)}a(Z,"removeTrailingSlash");var ba=a(e=>Z(e).replace(/^\/*/,"/"),"normalizePathname"),ka=a(e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,"normalizeSearch"),xa=a(e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,"normalizeHash"),wa=class{static{a(this,"ErrorResponseImpl")}constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Wt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}a(Wt,"isRouteErrorResponse");function Sa(e){return N(e.map(t=>t.route.path).filter(Boolean))||"/"}a(Sa,"getRoutePattern");var Vt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Qt(e,t){let r=e;if(typeof r!="string"||!He.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,o=!1;if(Vt)try{let s=new URL(window.location.href),i=jt.test(r)?new URL(Zn(r,s.protocol)):new URL(r),u=F(i.pathname,t);i.origin===s.origin&&u!=null?r=u+i.search+i.hash:o=!0}catch{M(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:o,to:r}}a(Qt,"parseToInfo");var Wi=Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),ct=new URL("http://localhost");function Ve(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),ct)}catch{return ct}}a(Ve,"getNavigatorCurrentUrl");function Me(e,t){return e.origin===t.origin&&(e.origin!=="null"||e.protocol===t.protocol&&e.host===t.host)}a(Me,"isSameOrigin");function Ia(e,t){if(e.startsWith("//"))return!0;let r=t.protocol.toLowerCase();return e.toLowerCase().startsWith(r)?t.host===""||e.slice(r.length).startsWith("//"):!1}a(Ia,"isExplicitUrl");function Qe(e,t,r,n){let o=null;try{o=e==null?null:new URL(e,r)}catch{}let s=new URL(t,r),i=o!=null&&!Me(o,r),u=!Me(s,r);if(n==="reject"){if(i||u)throw new Error("External navigation is not allowed")}else if(u&&(o==null||!Ia(e,o)||!Me(o,s)))throw new Error("External navigation is not allowed")}a(Qe,"validateNavigationTarget");var Kt=["POST","PUT","PATCH","DELETE"],Vi=new Set(Kt),Ea=["GET",...Kt],Qi=new Set(Ea),Ra,Ca,$a,_a;Ra=new WeakMap;Ca=new WeakMap;$a=new WeakMap;_a=new WeakMap;var Da=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Aa(e){try{return Da.includes(new URL(e).protocol)}catch{return!1}}a(Aa,"hasInvalidProtocol");var te=l.createContext(null);te.displayName="DataRouter";var de=l.createContext(null);de.displayName="DataRouterState";var Jt=l.createContext(!1);function Gt(){return l.useContext(Jt)}a(Gt,"useIsRSCRouterContext");var Yt=l.createContext({isTransitioning:!1});Yt.displayName="ViewTransition";var Pa=l.createContext(new Map);Pa.displayName="Fetchers";var je=l.createContext(null);je.displayName="Await";var A=l.createContext(null);A.displayName="Navigation";var re=l.createContext(null);re.displayName="Location";var O=l.createContext({outlet:null,matches:[],isDataRoute:!1});O.displayName="Route";var Ke=l.createContext(null);Ke.displayName="RouteError";var Zt="REACT_ROUTER_ERROR",Ma="REDIRECT",La="ROUTE_ERROR_RESPONSE";function Ta(e){if(e.startsWith(`${Zt}:${Ma}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}a(Ta,"decodeRedirectErrorDigest");function Oa(e){if(e.startsWith(`${Zt}:${La}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new wa(t.status,t.statusText,t.data)}catch{}}a(Oa,"decodeRouteErrorResponseDigest");function ja(e,{relative:t}={}){C(ne(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=l.useContext(A),{hash:o,pathname:s,search:i}=fe(e,{relative:t}),u=s;return r!=="/"&&(u=s==="/"?r:N([r,s])),n.createHref({pathname:u,search:i,hash:o})}a(ja,"useHref");function ne(){return l.useContext(re)!=null}a(ne,"useInRouterContext");function L(){return C(ne(),"useLocation() may be used only in the context of a <Router> component."),l.useContext(re).location}a(L,"useLocation");function Ki(){return l.useContext(re).navigationType}a(Ki,"useNavigationType");var Xt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function er(e){l.useContext(A).static||l.useLayoutEffect(e)}a(er,"useIsomorphicLayoutEffect");function Ee(){let{isDataRoute:e}=l.useContext(O);return e?Xa():Na()}a(Ee,"useNavigate$1");function Na(){C(ne(),"useNavigate() may be used only in the context of a <Router> component.");let e=l.useContext(te),{basename:t,navigator:r}=l.useContext(A),{matches:n}=l.useContext(O),{pathname:o}=L(),s=JSON.stringify(We(n)),i=l.useRef(!1);return er(()=>{i.current=!0}),l.useCallback((u,c={})=>{if(M(i.current,Xt),!i.current)return;if(typeof u=="number"){r.go(u);return}let d=Ie(u,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:N([t,d.pathname])),Qe(typeof u=="string"?u:Q(u),r.createHref(d),Ve(r),"reject"),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,o,e])}a(Na,"useNavigateUnstable");var Ba=l.createContext(null);function Ua(e){let t=l.useContext(O).outlet;return l.useMemo(()=>t&&l.createElement(Ba.Provider,{value:e},t),[t,e])}a(Ua,"useOutlet");function za(){let{matches:e}=l.useContext(O);return e[e.length-1]?.params??{}}a(za,"useParams");function fe(e,{relative:t}={}){let{matches:r}=l.useContext(O),{pathname:n}=L(),o=JSON.stringify(We(r));return l.useMemo(()=>Ie(e,JSON.parse(o),n,t==="path"),[e,o,n,t])}a(fe,"useResolvedPath");function Fa(e,t){return tr(e,t)}a(Fa,"useRoutes");function tr(e,t,r){C(ne(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=l.useContext(A),{matches:o}=l.useContext(O),s=o[o.length-1],i=s?s.params:{},u=s?s.pathname:"/",c=s?s.pathnameBase:"/",d=s&&s.route;{let p=d&&d.path||"";ar(u,!d||p.endsWith("*")||p.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${p}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2
2
 
3
3
  Please change the parent <Route path="${p}"> to <Route path="${p==="/"?"*":`${p}/*`}">.`)}let m=L(),f;if(t){let p=typeof t=="string"?ee(t):t;C(c==="/"||p.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${p.pathname}" was given in the \`location\` prop.`),f=p}else f=m;let g=f.pathname||"/",b=g;if(c!=="/"){let p=c.replace(/^\//,"").split("/");b="/"+g.replace(/^\//,"").split("/").slice(p.length).join("/")}let v=r&&r.state.matches.length?r.state.matches.map(p=>Object.assign(p,{route:r.manifest[p.route.id]||p.route})):Nt(e,{pathname:b});M(d||v!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),M(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=Qa(v&&v.map(p=>Object.assign({},p,{params:Object.assign({},i,p.params),pathname:N([c,n.encodeLocation?n.encodeLocation(p.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?c:N([c,n.encodeLocation?n.encodeLocation(p.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathnameBase])})),o,r);return t&&y?l.createElement(re.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...f},navigationType:"POP"}},y):y}a(tr,"useRoutesImpl");function qa(){let e=Za(),t=Wt(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},s={padding:"2px 4px",backgroundColor:n},i=null;return i=l.createElement(l.Fragment,null,l.createElement("p",null,"💿 Hey developer 👋"),l.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",l.createElement("code",{style:s},"ErrorBoundary")," or"," ",l.createElement("code",{style:s},"errorElement")," prop on your route.")),l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),r?l.createElement("pre",{style:o},r):null,i)}a(qa,"DefaultErrorComponent");var Ha=l.createElement(qa,null),rr=class extends l.Component{static{a(this,"RenderErrorBoundary")}constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError&&this.props.onError(e,t)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=Oa(e.digest);r&&(e=r)}let t=e!==void 0?l.createElement(O.Provider,{value:this.props.routeContext},l.createElement(Ke.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?l.createElement(Wa,{error:e},t):t}};rr.contextType=Jt;var Le=new WeakMap;function Wa({children:e,error:t}){let{basename:r,navigator:n}=l.useContext(A);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let o=Ta(t.digest);if(o){let s=Le.get(t);if(s)throw s;let i=Qt(o.location,r),u=i.absoluteURL||i.to;if(Qe(o.location,u,Ve(n),"allow-explicit"),Aa(u))throw new Error("Invalid redirect location");if(Vt&&!Le.get(t))if(i.isExternal||o.reloadDocument)window.location.href=u;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:o.replace}));throw Le.set(t,c),c}return l.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u}`})}}return e}a(Wa,"RSCErrorHandler");function Va({routeContext:e,match:t,children:r}){let n=l.useContext(te);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),l.createElement(O.Provider,{value:e},r)}a(Va,"RenderedRoute");function Qa(e,t=[],r){let n=r?.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=n?.errors;if(s!=null){let m=o.findIndex(f=>f.route.id&&s?.[f.route.id]!==void 0);C(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,m+1))}let i=!1,u=-1;if(r&&n){i=n.renderFallback;for(let m=0;m<o.length;m++){let f=o[m];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=m),f.route.id){let{loaderData:g,errors:b}=n,v=f.route.loader&&!g.hasOwnProperty(f.route.id)&&(!b||b[f.route.id]===void 0);if(f.route.lazy||v){r.isStatic&&(i=!0),u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}}let c=r?.onError,d=n&&c?(m,f)=>{c(m,{location:n.location,params:n.matches?.[0]?.params??{},pattern:Sa(n.matches),errorInfo:f})}:void 0;return o.reduceRight((m,f,g)=>{let b,v=!1,y=null,p=null;n&&(b=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||Ha,i&&(u<0&&g===0?(ar("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,p=null):u===g&&(v=!0,p=f.route.hydrateFallbackElement||null)));let x=t.concat(o.slice(0,g+1)),w=a(()=>{let S;return b?S=y:v?S=p:f.route.Component?S=l.createElement(f.route.Component,null):f.route.element?S=f.route.element:S=m,l.createElement(Va,{match:f,routeContext:{outlet:m,matches:x,isDataRoute:n!=null},children:S})},"getChildren");return n&&(f.route.ErrorBoundary||f.route.errorElement||g===0)?l.createElement(rr,{location:n.location,revalidation:n.revalidation,component:y,error:b,children:w(),routeContext:{outlet:null,matches:x,isDataRoute:!0},onError:d}):w()},null)}a(Qa,"_renderMatches");function Je(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}a(Je,"getDataRouterConsoleError");function Ka(e){let t=l.useContext(te);return C(t,Je(e)),t}a(Ka,"useDataRouterContext");function Ge(e){let t=l.useContext(de);return C(t,Je(e)),t}a(Ge,"useDataRouterState");function Ja(e){let t=l.useContext(O);return C(t,Je(e)),t}a(Ja,"useRouteContext");function Ye(e){let t=Ja(e),r=t.matches[t.matches.length-1];return C(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}a(Ye,"useCurrentRouteId");function Ga(){return Ye("useRouteId")}a(Ga,"useRouteId");function Ya(){let e=Ge("useNavigation");return l.useMemo(()=>{let{matches:t,historyAction:r,...n}=e.navigation;return n},[e.navigation])}a(Ya,"useNavigation");function nr(){let{matches:e,loaderData:t}=Ge("useMatches");return l.useMemo(()=>e.map(r=>aa(r,t)),[e,t])}a(nr,"useMatches");function Za(){let e=l.useContext(Ke),t=Ge("useRouteError"),r=Ye("useRouteError");return e!==void 0?e:t.errors?.[r]}a(Za,"useRouteError");function Xa(){let{router:e}=Ka("useNavigate"),t=Ye("useNavigate"),r=l.useRef(!1);return er(()=>{r.current=!0}),l.useCallback(async(n,o={})=>{M(r.current,Xt),r.current&&(typeof n=="number"?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...o}))},[e,t])}a(Xa,"useNavigateStable");var dt={};function ar(e,t,r){!t&&!dt[e]&&(dt[e]=!0,M(!1,r))}a(ar,"warningOnce");var ft={};function eo(e,t){!e&&!ft[t]&&(ft[t]=!0)}a(eo,"warnOnce");var Ji=l.memo(to);function to({routes:e,manifest:t,future:r,state:n,isStatic:o,onError:s}){return tr(e,void 0,{manifest:t,state:n,isStatic:o,onError:s,future:r})}a(to,"DataRoutes2");function ro({to:e,replace:t,state:r,relative:n}){C(ne(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o,navigator:s}=l.useContext(A);M(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=l.useContext(O),{pathname:u}=L(),c=Ee(),d=Ie(e,We(i),u,n==="path");Qe(typeof e=="string"?e:Q(e),s.createHref(d),Ve(s),"reject");let m=JSON.stringify(d);return l.useEffect(()=>{c(JSON.parse(m),{replace:t,state:r,relative:n})},[c,m,n,t,r]),null}a(ro,"Navigate$1");function Gi(e){return Ua(e.context)}a(Gi,"Outlet");function no(e){C(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}a(no,"Route");function or({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:o,static:s=!1,useTransitions:i}){C(!ne(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),c=l.useMemo(()=>({basename:u,navigator:o,static:s,useTransitions:i,future:{}}),[u,o,s,i]);typeof r=="string"&&(r=ee(r));let{pathname:d="/",search:m="",hash:f="",state:g=null,key:b="default",mask:v}=r,y=l.useMemo(()=>{let p=F(d,u);return p==null?null:{location:{pathname:p,search:m,hash:f,state:g,key:b,mask:v},navigationType:n}},[u,d,m,f,g,b,n,v]);return M(y!=null,`<Router basename="${u}"> is not able to match the URL "${d}${m}${f}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:l.createElement(A.Provider,{value:c},l.createElement(re.Provider,{children:t,value:y}))}a(or,"Router");function Yi({children:e,location:t}){return Fa(Ne(e),t)}a(Yi,"Routes");var Zi=class extends l.Component{static{a(this,"AwaitErrorBoundary")}constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onError&&this.props.onError(e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,o=0;if(!(r instanceof Promise))o=1,n=Promise.resolve(),Object.defineProperty(n,"_tracked",{get:a(()=>!0,"get")}),Object.defineProperty(n,"_data",{get:a(()=>r,"get")});else if(this.state.error){o=2;let s=this.state.error;n=Promise.reject().catch(()=>{}),Object.defineProperty(n,"_tracked",{get:a(()=>!0,"get")}),Object.defineProperty(n,"_error",{get:a(()=>s,"get")})}else r._tracked?(n=r,o="_error"in n?2:"_data"in n?1:0):(o=0,Object.defineProperty(r,"_tracked",{get:a(()=>!0,"get")}),n=r.then(s=>Object.defineProperty(r,"_data",{get:a(()=>s,"get")}),s=>{this.props.onError?.(s),Object.defineProperty(r,"_error",{get:a(()=>s,"get")})}));if(o===2&&!t)throw n._error;if(o===2)return l.createElement(je.Provider,{value:n,children:t});if(o===1)return l.createElement(je.Provider,{value:n,children:e});throw n}};function Ne(e,t=[]){let r=[];return l.Children.forEach(e,(n,o)=>{if(!l.isValidElement(n))return;let s=[...t,o];if(n.type===l.Fragment){r.push.apply(r,Ne(n.props.children,s));return}C(n.type===no,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),C(!n.props.index||!n.props.children,"An index route cannot have child routes.");let i={id:n.props.id||s.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=Ne(n.props.children,s)),r.push(i)}),r}a(Ne,"createRoutesFromChildren");var ve="get",be="application/x-www-form-urlencoded";function Re(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}a(Re,"isHtmlElement");function ao(e){return Re(e)&&e.tagName.toLowerCase()==="button"}a(ao,"isButtonElement");function oo(e){return Re(e)&&e.tagName.toLowerCase()==="form"}a(oo,"isFormElement");function so(e){return Re(e)&&e.tagName.toLowerCase()==="input"}a(so,"isInputElement");function io(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}a(io,"isModifiedEvent");function lo(e,t){return e.button===0&&(!t||t==="_self")&&!io(e)}a(lo,"shouldProcessLinkClick");function Be(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(o=>[r,o]):[[r,n]])},[]))}a(Be,"createSearchParams");function uo(e,t){let r=Be(e);return t&&t.forEach((n,o)=>{r.has(o)||t.getAll(o).forEach(s=>{r.append(o,s)})}),r}a(uo,"getSearchParamsForLocation");var pe=null;function co(){if(pe===null)try{new FormData(document.createElement("form"),0),pe=!1}catch{pe=!0}return pe}a(co,"isFormDataSubmitterSupported");var fo=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Te(e){return e!=null&&!fo.has(e)?(M(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${be}"`),null):e}a(Te,"getFormEncType");function mo(e,t){let r,n,o,s,i;if(oo(e)){let u=e.getAttribute("action");n=u?F(u,t):null,r=e.getAttribute("method")||ve,o=Te(e.getAttribute("enctype"))||be,s=new FormData(e)}else if(ao(e)||so(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||u.getAttribute("action");if(n=c?F(c,t):null,r=e.getAttribute("formmethod")||u.getAttribute("method")||ve,o=Te(e.getAttribute("formenctype"))||Te(u.getAttribute("enctype"))||be,s=new FormData(u,e),!co()){let{name:d,type:m,value:f}=e;if(m==="image"){let g=d?`${d}.`:"";s.append(`${g}x`,"0"),s.append(`${g}y`,"0")}else d&&s.append(d,f)}}else{if(Re(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ve,n=null,o=be,i=e}return s&&o==="text/plain"&&(i=s,s=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:s,body:i}}a(mo,"getFormSubmissionInfo");var Xi=Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),ho={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},po=/[&><\u2028\u2029]/g;function mt(e){return e.replace(po,t=>ho[t])}a(mt,"escapeHtml");function Ce(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}a(Ce,"invariant2");function sr(e,t,r,n){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${n}`:o.pathname=`${o.pathname}.${n}`:o.pathname==="/"?o.pathname=`_root.${n}`:t&&F(o.pathname,t)==="/"?o.pathname=`${Z(t)}/_root.${n}`:o.pathname=`${Z(o.pathname)}.${n}`,o}a(sr,"singleFetchUrl");async function go(e,t){if(e.id in t)return t[e.id];try{let r=await Yn(()=>import(e.module),[]);return t[e.id]=r,r}catch{return window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}a(go,"loadRouteModule");function yo(e){return e!=null&&typeof e.page=="string"}a(yo,"isPageLinkDescriptor");function vo(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}a(vo,"isHtmlLinkDescriptor");async function bo(e,t,r){return wo((await Promise.all(e.map(async n=>{let o=t.routes[n.route.id];if(o){let s=await go(o,r);return s.links?s.links():[]}return[]}))).flat(1).filter(vo).filter(n=>n.rel==="stylesheet"||n.rel==="preload").map(n=>n.rel==="stylesheet"?{...n,rel:"prefetch",as:"style"}:{...n,rel:"prefetch"}))}a(bo,"getKeyedPrefetchLinks");function ht(e,t,r,n,o,s){let i=a((c,d)=>r[d]?c.route.id!==r[d].route.id:!0,"isNew"),u=a((c,d)=>r[d].pathname!==c.pathname||r[d].route.path?.endsWith("*")&&r[d].params["*"]!==c.params["*"],"matchPathChanged");return s==="assets"?t.filter((c,d)=>i(c,d)||u(c,d)):s==="data"?t.filter((c,d)=>{let m=n.routes[c.route.id];if(!m||!m.hasLoader)return!1;if(i(c,d)||u(c,d))return!0;if(c.route.shouldRevalidate){let f=c.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}a(ht,"getNewMatchesForLinks");function ir(e,t,{includeHydrateFallback:r}={}){return ko(e.map(n=>{let o=t.routes[n.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}a(ir,"getModuleLinkHrefs");function ko(e){return[...new Set(e)]}a(ko,"dedupeHrefs");function xo(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}a(xo,"sortKeys");function wo(e,t){let r=new Set,n=new Set(t);return e.reduce((o,s)=>{if(t&&!yo(s)&&s.as==="script"&&s.href&&n.has(s.href))return o;let i=JSON.stringify(xo(s));return r.has(i)||(r.add(i),o.push({key:i,link:s})),o},[])}a(wo,"dedupeLinkDescriptors");function So(e,t){return e.mode==="lazy"&&t===!0}a(So,"isFogOfWarEnabled");function Io({sri:e,...t},r){let n=new Set(r.state.matches.map(u=>u.route.id)),o=r.state.location.pathname.split("/").filter(Boolean),s=["/"];for(o.pop();o.length>0;)s.push(`/${o.join("/")}`),o.pop();s.forEach(u=>{let c=Bt(r.routes,u,r.basename||"/",!1,r.branches);c&&c.forEach(d=>n.add(d.route.id))});let i=[...n].reduce((u,c)=>Object.assign(u,{[c]:t.routes[c]}),{});return{...t,routes:i,sri:e?!0:void 0}}a(Io,"getPartialManifest");function $e(){let e=l.useContext(te);return Ce(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}a($e,"useDataRouterContext2");function lr(){let e=l.useContext(de);return Ce(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}a(lr,"useDataRouterStateContext");var _e=l.createContext(void 0);_e.displayName="FrameworkContext";function K(){let e=l.useContext(_e);return Ce(e,"You must render this element inside a <HydratedRouter> element"),e}a(K,"useFrameworkContext");function Eo(e,t){let r=l.useContext(_e),[n,o]=l.useState(!1),[s,i]=l.useState(!1),{onFocus:u,onBlur:c,onMouseEnter:d,onMouseLeave:m,onTouchStart:f}=t,g=l.useRef(null);l.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let y=a(x=>{x.forEach(w=>{i(w.isIntersecting)})},"callback"),p=new IntersectionObserver(y,{threshold:.5});return g.current&&p.observe(g.current),()=>{p.disconnect()}}},[e]),l.useEffect(()=>{if(n){let y=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(y)}}},[n]);let b=a(()=>{o(!0)},"setIntent"),v=a(()=>{o(!1),i(!1)},"cancelIntent");return r?e!=="intent"?[s,g,{}]:[s,g,{onFocus:se(u,b),onBlur:se(c,v),onMouseEnter:se(d,b),onMouseLeave:se(m,v),onTouchStart:se(f,b)}]:[!1,g,{}]}a(Eo,"usePrefetchBehavior");function se(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}a(se,"composeEventHandlers");function Ro(e,t,r){if(r&&!xe)return[e[0]];if(t){let n=e.findIndex(o=>t[o.route.id]!==void 0);return e.slice(0,n+1)}return e}a(Ro,"getActiveMatches");function Co({page:e,...t}){let r=Gt(),{nonce:n}=K(),{router:o}=$e(),s=l.useMemo(()=>Nt(o.routes,e,o.basename),[o.routes,e,o.basename]);return s?(t.nonce==null&&n&&(t={...t,nonce:n}),r?l.createElement(_o,{page:e,matches:s,...t}):l.createElement(Do,{page:e,matches:s,...t})):null}a(Co,"PrefetchPageLinks");function $o(e){let{manifest:t,routeModules:r}=K(),[n,o]=l.useState([]);return l.useEffect(()=>{let s=!1;return bo(e,t,r).then(i=>{s||o(i)}),()=>{s=!0}},[e,t,r]),n}a($o,"useKeyedPrefetchLinks");function _o({page:e,matches:t,...r}){let n=L(),{future:o}=K(),{basename:s}=$e(),i=l.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let u=sr(e,s,o.v8_trailingSlashAwareDataRequests,"rsc"),c=!1,d=[];for(let m of t)typeof m.route.shouldRevalidate=="function"?c=!0:d.push(m.route.id);return c&&d.length>0&&u.searchParams.set("_routes",d.join(",")),[u.pathname+u.search]},[s,o.v8_trailingSlashAwareDataRequests,e,n,t]);return l.createElement(l.Fragment,null,i.map(u=>l.createElement("link",{key:u,rel:"prefetch",as:"fetch",href:u,...r})))}a(_o,"RSCPrefetchPageLinksImpl");function Do({page:e,matches:t,...r}){let n=L(),{future:o,manifest:s,routeModules:i}=K(),{basename:u}=$e(),{loaderData:c,matches:d}=lr(),m=l.useMemo(()=>ht(e,t,d,s,n,"data"),[e,t,d,s,n]),f=l.useMemo(()=>ht(e,t,d,s,n,"assets"),[e,t,d,s,n]),g=l.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let y=new Set,p=!1;if(t.forEach(w=>{let S=s.routes[w.route.id];!S||!S.hasLoader||(!m.some($=>$.route.id===w.route.id)&&w.route.id in c&&i[w.route.id]?.shouldRevalidate||S.hasClientLoader?p=!0:y.add(w.route.id))}),y.size===0)return[];let x=sr(e,u,o.v8_trailingSlashAwareDataRequests,"data");return p&&y.size>0&&x.searchParams.set("_routes",t.filter(w=>y.has(w.route.id)).map(w=>w.route.id).join(",")),[x.pathname+x.search]},[u,o.v8_trailingSlashAwareDataRequests,c,n,s,m,t,e,i]),b=l.useMemo(()=>ir(f,s),[f,s]),v=$o(f);return l.createElement(l.Fragment,null,g.map(y=>l.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...r})),b.map(y=>l.createElement("link",{key:y,rel:"modulepreload",href:y,...r})),v.map(({key:y,link:p})=>l.createElement("link",{key:y,nonce:r.nonce,...p,crossOrigin:p.crossOrigin??r.crossOrigin})))}a(Do,"PrefetchPageLinksImpl");var xe=!1;function Ao(){xe=!0}a(Ao,"setIsHydrated");function Po(e){let{manifest:t,serverHandoffString:r,isSpaMode:n,renderMeta:o,routeDiscovery:s,ssr:i,nonce:u}=K(),{router:c,static:d,staticContext:m}=$e(),{matches:f}=lr(),g=Gt(),b=So(s,i);e.nonce==null&&u&&(e={...e,nonce:u}),o&&(o.didRenderScripts=!0);let v=Ro(f,null,n);l.useEffect(()=>{Ao()},[]);let y=l.useMemo(()=>{if(g)return null;let w=m?`window.__reactRouterContext = ${r};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",S=d?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${b?"":`import ${JSON.stringify(t.url)}`};
4
4
  ${v.map(($,E)=>{let _=`route${E}`,P=t.routes[$.route.id];Ce(P,`Route ${$.route.id} not found in manifest`);let{clientActionModule:j,clientLoaderModule:D,clientMiddlewareModule:B,hydrateFallbackModule:J,module:T}=P,q=[...j?[{module:j,varName:`${_}_clientAction`}]:[],...D?[{module:D,varName:`${_}_clientLoader`}]:[],...B?[{module:B,varName:`${_}_clientMiddleware`}]:[],...J?[{module:J,varName:`${_}_HydrateFallback`}]:[],{module:T,varName:`${_}_main`}];return q.length===1?`import * as ${_} from ${JSON.stringify(T)};`:[q.map(U=>`import * as ${U.varName} from "${U.module}";`).join(`
@@ -12,4 +12,4 @@ import(${JSON.stringify(t.entry.module)});`:" ";return l.createElement(l.Fragmen
12
12
  console.log(
13
13
  "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
14
14
  );
15
- `}});if(Wt(e))return l.createElement(pt,{title:"Unhandled Thrown Response!"},l.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),n);let o;if(e instanceof Error)o=e;else{let s=e==null?"Unknown Error":typeof e=="object"&&"toString"in e?e.toString():JSON.stringify(e);o=new Error(s)}return l.createElement(pt,{title:"Application Error!",isOutsideRemixApp:t},l.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),l.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},o.stack),n)}a(Lo,"RemixRootDefaultErrorBoundary");function pt({title:e,renderScripts:t,isOutsideRemixApp:r,children:n}){let{routeModules:o}=K();return o.root?.Layout&&!r?n:l.createElement("html",{lang:"en"},l.createElement("head",null,l.createElement("meta",{charSet:"utf-8"}),l.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),l.createElement("title",null,e)),l.createElement("body",null,l.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n,t?l.createElement(Po,null):null)))}a(pt,"BoundaryShell");var To=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{To&&(window.__reactRouterVersion="7.18.4")}catch{}function tl({basename:e,children:t,useTransitions:r,window:n}){let o=l.useRef();o.current==null&&(o.current=Xn({window:n,v5Compat:!0}));let s=o.current,[i,u]=l.useState({action:s.action,location:s.location}),c=l.useCallback(d=>{r===!1?u(d):l.startTransition(()=>u(d))},[r]);return l.useLayoutEffect(()=>s.listen(c),[s,c]),l.createElement(or,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:s,useTransitions:r})}a(tl,"BrowserRouter");function Oo({basename:e,children:t,history:r,useTransitions:n}){let[o,s]=l.useState({action:r.action,location:r.location}),i=l.useCallback(u=>{n===!1?s(u):l.startTransition(()=>s(u))},[n]);return l.useLayoutEffect(()=>r.listen(i),[r,i]),l.createElement(or,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:r,useTransitions:n})}a(Oo,"HistoryRouter");Oo.displayName="unstable_HistoryRouter";var me=l.forwardRef(a(function({onClick:t,discover:r="render",prefetch:n="none",relative:o,reloadDocument:s,replace:i,mask:u,state:c,target:d,to:m,preventScrollReset:f,viewTransition:g,defaultShouldRevalidate:b,...v},y){let{basename:p,navigator:x,useTransitions:w}=l.useContext(A),S=typeof m=="string"&&He.test(m),$=Qt(m,p);m=$.to;let E=ja(m,{relative:o}),_=L(),P=null;if(u){let z=Ie(u,[],_.mask?_.mask.pathname:"/",!0);p!=="/"&&(z.pathname=z.pathname==="/"?p:N([p,z.pathname])),P=x.createHref(z)}let[j,D,B]=Eo(n,v),J=Uo(m,{replace:i,mask:u,state:c,target:d,preventScrollReset:f,relative:o,viewTransition:g,defaultShouldRevalidate:b,useTransitions:w});function T(z){t&&t(z),z.defaultPrevented||J(z)}a(T,"handleClick");let q=!($.isExternal||s),U=l.createElement("a",{...v,...B,href:(q?P:void 0)||$.absoluteURL||E,onClick:q?T:t,ref:Mo(y,D),target:d,"data-discover":!S&&r==="render"?"true":void 0});return j&&!S?l.createElement(l.Fragment,null,U,l.createElement(Co,{page:E})):U},"LinkWithRef"));me.displayName="Link";var ur=l.forwardRef(a(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:o=!1,style:s,to:i,viewTransition:u,children:c,...d},m){let f=fe(i,{relative:d.relative}),g=L(),b=l.useContext(de),{navigator:v,basename:y}=l.useContext(A),p=b!=null&&Qo(f)&&u===!0,x=v.encodeLocation?v.encodeLocation(f).pathname:f.pathname,w=g.pathname,S=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;r||(w=w.toLowerCase(),S=S?S.toLowerCase():null,x=x.toLowerCase()),S&&y&&(S=F(S,y)||S);const $=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let E=w===x||!o&&w.startsWith(x)&&w.charAt($)==="/",_=S!=null&&(S===x||!o&&S.startsWith(x)&&S.charAt(x.length)==="/"),P={isActive:E,isPending:_,isTransitioning:p},j=E?t:void 0,D;typeof n=="function"?D=n(P):D=[n,E?"active":null,_?"pending":null,p?"transitioning":null].filter(Boolean).join(" ");let B=typeof s=="function"?s(P):s;return l.createElement(me,{...d,"aria-current":j,className:D,ref:m,style:B,to:i,viewTransition:u},typeof c=="function"?c(P):c)},"NavLinkWithRef"));ur.displayName="NavLink";var jo=l.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:o,state:s,method:i=ve,action:u,onSubmit:c,relative:d,preventScrollReset:m,viewTransition:f,defaultShouldRevalidate:g,...b},v)=>{let{useTransitions:y}=l.useContext(A),p=qo(),x=Ho(u,{relative:d}),w=i.toLowerCase()==="get"?"get":"post",S=typeof u=="string"&&He.test(u),$=a(E=>{if(c&&c(E),E.defaultPrevented)return;E.preventDefault();let _=E.nativeEvent.submitter,P=_?.getAttribute("formmethod")||i,j=a(()=>p(_||E.currentTarget,{fetcherKey:t,method:P,navigate:r,replace:o,state:s,relative:d,preventScrollReset:m,viewTransition:f,defaultShouldRevalidate:g}),"doSubmit");y&&r!==!1?l.startTransition(()=>j()):j()},"submitHandler");return l.createElement("form",{ref:v,method:w,action:x,onSubmit:n?c:$,...b,"data-discover":!S&&e==="render"?"true":void 0})});jo.displayName="Form";function No({getKey:e,storageKey:t,...r}){let n=l.useContext(_e),{basename:o}=l.useContext(A),s=L(),i=nr();Wo({getKey:e,storageKey:t});let u=l.useMemo(()=>{if(!n||!e)return null;let d=ze(s,i,o,e);return d!==s.key?d:null},[]);if(!n||n.isSpaMode)return null;let c=((d,m)=>{if(!window.history.state||!window.history.state.key){let f=Math.random().toString(32).slice(2);window.history.replaceState({key:f},"")}try{let f=JSON.parse(sessionStorage.getItem(d)||"{}")[m||window.history.state.key];typeof f=="number"&&window.scrollTo(0,f)}catch{sessionStorage.removeItem(d)}}).toString();return r.nonce==null&&n?.nonce&&(r.nonce=n.nonce),l.createElement("script",{...r,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${mt(JSON.stringify(t||Ue))}, ${mt(JSON.stringify(u))})`}})}a(No,"ScrollRestoration");No.displayName="ScrollRestoration";function cr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}a(cr,"getDataRouterConsoleError2");function Ze(e){let t=l.useContext(te);return C(t,cr(e)),t}a(Ze,"useDataRouterContext3");function Bo(e){let t=l.useContext(de);return C(t,cr(e)),t}a(Bo,"useDataRouterState2");function Uo(e,{target:t,replace:r,mask:n,state:o,preventScrollReset:s,relative:i,viewTransition:u,defaultShouldRevalidate:c,useTransitions:d}={}){let m=Ee(),f=L(),g=fe(e,{relative:i});return l.useCallback(b=>{if(lo(b,t)){b.preventDefault();let v=r!==void 0?r:Q(f)===Q(g),y=a(()=>m(e,{replace:v,mask:n,state:o,preventScrollReset:s,relative:i,viewTransition:u,defaultShouldRevalidate:c}),"doNavigate");d?l.startTransition(()=>y()):y()}},[f,m,g,r,n,o,t,e,s,i,u,c,d])}a(Uo,"useLinkClickHandler");function rl(e){M(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=l.useRef(Be(e)),r=l.useRef(!1),n=L(),o=l.useMemo(()=>uo(n.search,r.current?null:t.current),[n.search]),s=Ee();return[o,l.useCallback((i,u)=>{const c=Be(typeof i=="function"?i(new URLSearchParams(o)):i);r.current=!0,s("?"+c,u)},[s,o])]}a(rl,"useSearchParams");var zo=0,Fo=a(()=>`__${String(++zo)}__`,"getUniqueFetcherId");function qo(){let{router:e}=Ze("useSubmit"),{basename:t}=l.useContext(A),r=Ga(),n=e.fetch,o=e.navigate;return l.useCallback(async(s,i={})=>{let{action:u,method:c,encType:d,formData:m,body:f}=mo(s,t);if(i.navigate===!1){let g=i.fetcherKey||Fo();await n(g,r,i.action||u,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:m,body:f,formMethod:i.method||c,formEncType:i.encType||d,flushSync:i.flushSync})}else await o(i.action||u,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:m,body:f,formMethod:i.method||c,formEncType:i.encType||d,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[n,o,t,r])}a(qo,"useSubmit");function Ho(e,{relative:t}={}){let{basename:r}=l.useContext(A),n=l.useContext(O);C(n,"useFormAction must be used inside a RouteContext");let[o]=n.matches.slice(-1),s={...fe(e||".",{relative:t})},i=L();if(e==null){s.search=i.search;let u=new URLSearchParams(s.search),c=u.getAll("index");if(c.some(d=>d==="")){u.delete("index"),c.filter(m=>m).forEach(m=>u.append("index",m));let d=u.toString();s.search=d?`?${d}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:N([r,s.pathname])),Q(s)}a(Ho,"useFormAction");var Ue="react-router-scroll-positions",ge={};function ze(e,t,r,n){let o=null;return n&&(r!=="/"?o=n({...e,pathname:F(e.pathname,r)||e.pathname},t):o=n(e,t)),o==null&&(o=e.key),o}a(ze,"getScrollRestorationKey");function Wo({getKey:e,storageKey:t}={}){let{router:r}=Ze("useScrollRestoration"),{restoreScrollPosition:n,preventScrollReset:o}=Bo("useScrollRestoration"),{basename:s}=l.useContext(A),i=L(),u=nr(),c=Ya();l.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),Vo(l.useCallback(()=>{if(c.state==="idle"){let d=ze(i,u,s,e);ge[d]=window.scrollY}try{sessionStorage.setItem(t||Ue,JSON.stringify(ge))}catch(d){M(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${d}).`)}window.history.scrollRestoration="auto"},[c.state,e,s,i,u,t])),typeof document<"u"&&(l.useLayoutEffect(()=>{try{let d=sessionStorage.getItem(t||Ue);d&&(ge=JSON.parse(d))}catch{}},[t]),l.useLayoutEffect(()=>{let d=r?.enableScrollRestoration(ge,()=>window.scrollY,e?(m,f)=>ze(m,f,s,e):void 0);return()=>d&&d()},[r,s,e]),l.useLayoutEffect(()=>{if(n!==!1){if(typeof n=="number"){window.scrollTo(0,n);return}try{if(i.hash){let d=document.getElementById(decodeURIComponent(i.hash.slice(1)));if(d){d.scrollIntoView();return}}}catch{M(!1,`"${i.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}o!==!0&&window.scrollTo(0,0)}},[i,n,o]))}a(Wo,"useScrollRestoration");function nl(e,t){let{capture:r}=t||{};l.useEffect(()=>{let n=r!=null?{capture:r}:void 0;return window.addEventListener("beforeunload",e,n),()=>{window.removeEventListener("beforeunload",e,n)}},[e,r])}a(nl,"useBeforeUnload");function Vo(e,t){let{capture:r}=t||{};l.useEffect(()=>{let n=r!=null?{capture:r}:void 0;return window.addEventListener("pagehide",e,n),()=>{window.removeEventListener("pagehide",e,n)}},[e,r])}a(Vo,"usePageHide");function Qo(e,{relative:t}={}){let r=l.useContext(Yt);C(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Ze("useViewTransitionState"),o=fe(e,{relative:t});if(!r.isTransitioning)return!1;let s=F(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=F(r.nextLocation.pathname,n)||r.nextLocation.pathname;return ke(o.pathname,i)!=null||ke(o.pathname,s)!=null}a(Qo,"useViewTransitionState");var gt=60,Fe=3600,we=24*Fe,yt=7*we,vt=30*we;function Ko(e){const t=Date.now(),r=new Date(e).getTime(),n=Math.round((t-r)/1e3);return n<gt?"just now":n<Fe?`${Math.floor(n/gt)}m ago`:n<we?`${Math.floor(n/Fe)}h ago`:n<yt?`${Math.floor(n/we)}d ago`:n<vt?`${Math.floor(n/yt)}w ago`:`${Math.floor(n/vt)}mo ago`}a(Ko,"timeAgo");var Jo=[{label:"My work",views:[{key:"mine",label:"Mine",surface:"inbox",inboxTab:"mine",hint:"Assigned to you or waiting on you"},{key:"unread",label:"Unread",surface:"inbox",inboxTab:"unread",hint:"Tasks you touched with new activity"},{key:"blocked",label:"Blocked",surface:"inbox",inboxTab:"blocked",hint:"Blocked tasks, grouped by blocker"},{key:"recent",label:"Recent",surface:"inbox",inboxTab:"recent",hint:"Everything you touched lately"},{key:"everything",label:"Everything",surface:"inbox",inboxTab:"all",hint:"Tasks, approvals, failed runs and join requests"}]},{label:"Organization",views:[{key:"all",label:"All tasks",surface:"issues",statuses:[],hint:"Every task in the organization"},{key:"active",label:"Active",surface:"issues",statuses:["todo","in_progress","in_review","blocked"],hint:"Open tasks, running or not"},{key:"backlog",label:"Backlog",surface:"issues",statuses:["backlog"],hint:"Not started yet"},{key:"done",label:"Done",surface:"issues",statuses:["done","cancelled"],hint:"Completed and cancelled"}]}],dr=new Map(Jo.flatMap(e=>e.views.map(t=>[t.key,t]))),fr="mine",Go="view",Yo="paperclip:tasks:last-view";function Zo(e){return typeof e=="string"&&dr.has(e)}a(Zo,"isTaskViewKey");function mr(e){return dr.get(e)}a(mr,"taskView");function Xe(e){return Zo(e)?e:null}a(Xe,"normalizeTaskViewKey");var bt={mine:"mine",unread:"unread",blocked:"blocked",recent:"recent",all:"everything"};function al(e){return e&&e in bt?bt[e]:fr}a(al,"taskViewForInboxTab");function ol(){try{return Xe(window.localStorage.getItem("paperclip:tasks:last-view"))??"mine"}catch{return fr}}a(ol,"loadLastTaskView");function sl(e){try{window.localStorage.setItem(Yo,e)}catch{}}a(sl,"saveLastTaskView");var il=["assignee","workspace","participantAgentId","q"];function ll(e,t,r){const n=Xe(e);return t&&(!n||mr(n).surface==="inbox")?"all":n??r}a(ll,"resolveInitialTaskView");var hr="from",pr="fromHref",gr="paperclip:issue-detail-breadcrumb:";function yr(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.label=="string"&&typeof t.href=="string"}a(yr,"isIssueDetailBreadcrumb");function vr(e){return e==="issues"||e==="inbox"}a(vr,"isIssueDetailSource");function br(e){if(typeof e!="object"||e===null)return!1;const t=e,r=t.originKind===void 0||typeof t.originKind=="string",n=t.originId===void 0||t.originId===null||typeof t.originId=="string",o=t.blockerAttention===void 0||typeof t.blockerAttention=="object"&&t.blockerAttention!==null;return typeof t.id=="string"&&(t.identifier===null||typeof t.identifier=="string")&&typeof t.title=="string"&&typeof t.status=="string"&&o&&typeof t.priority=="string"&&(t.projectId===null||typeof t.projectId=="string")&&(t.projectName===null||typeof t.projectName=="string")&&r&&n}a(br,"isIssueDetailHeaderSeed");function Xo(e){return{id:e.id,identifier:e.identifier??null,title:e.title,status:e.status,blockerAttention:e.blockerAttention,priority:e.priority,projectId:e.projectId??null,projectName:e.project?.name??null,originKind:e.originKind,originId:e.originId??null}}a(Xo,"createIssueDetailHeaderSeed");function kr(e,t){const r=Xo(t);return typeof e!="object"||e===null?{issueDetailHeaderSeed:r}:{...e,issueDetailHeaderSeed:r}}a(kr,"withIssueDetailHeaderSeed");function es(e){if(typeof e!="object"||e===null)return null;const t=e.issueDetailHeaderSeed;return br(t)?t:null}a(es,"readIssueDetailHeaderSeed");function ts(e){if(!e)return null;const t=new URLSearchParams(e).get(hr);return vr(t)?t:null}a(ts,"readIssueDetailSourceFromSearch");function rs(e){if(!e)return null;const t=new URLSearchParams(e).get(pr);return t&&t.startsWith("/")?t:null}a(rs,"readIssueDetailBreadcrumbHrefFromSearch");function ns(e){const t=e.slice(e.indexOf("?")+1);if(!e.includes("?"))return!1;const r=new URLSearchParams(t).get(Go),n=Xe(r);return n!==null&&mr(n).surface==="inbox"}a(ns,"isInboxBackedTaskViewHref");function xr(e,t){return vr(e?.issueDetailSource)?e.issueDetailSource:t?t.href.includes("/inbox")||ns(t.href)||t.label==="Inbox"?"inbox":t.label==="Tasks"||t.href.includes("/issues")?"issues":null:null}a(xr,"inferIssueDetailSource");function kt(e){return e==="inbox"?{label:"Inbox",href:"/inbox"}:{label:"Tasks",href:"/issues"}}a(kt,"breadcrumbForSource");function ul(e,t,r){return{issueDetailBreadcrumb:{label:e,href:t},issueDetailSource:r}}a(ul,"createIssueDetailLocationState");function cl(e){return typeof e!="object"||e===null?{issueDetailInboxQuickArchiveArmed:!0}:{...e,issueDetailInboxQuickArchiveArmed:!0}}a(cl,"armIssueDetailInboxQuickArchive");function as(e){if(typeof window>"u"||!window.sessionStorage)return null;const t=window.sessionStorage.getItem(`${gr}${e}`);if(!t)return null;try{const r=JSON.parse(t),n=yr(r.issueDetailBreadcrumb)?r.issueDetailBreadcrumb:null,o=xr(r,n);if(!n||!o)return null;const s=br(r.issueDetailHeaderSeed)?r.issueDetailHeaderSeed:void 0;return{issueDetailBreadcrumb:n,issueDetailSource:o,issueDetailInboxQuickArchiveArmed:r.issueDetailInboxQuickArchiveArmed===!0,issueDetailHeaderSeed:s}}catch{return null}}a(as,"readStoredIssueDetailLocationState");function wr(e,t){if(typeof e=="object"&&e!==null){const o=e.issueDetailBreadcrumb;if(yr(o)){const s=xr(e,o);if(!s)return null;const i=es(e)??void 0;return{issueDetailBreadcrumb:o,issueDetailSource:s,issueDetailInboxQuickArchiveArmed:e.issueDetailInboxQuickArchiveArmed===!0,issueDetailHeaderSeed:i}}}const r=ts(t),n=rs(t);return r?{issueDetailBreadcrumb:n?{...kt(r),href:n}:kt(r),issueDetailSource:r,issueDetailInboxQuickArchiveArmed:!1}:null}a(wr,"normalizeIssueDetailLocationState");function dl(e,t,r){if(typeof window>"u"||!window.sessionStorage)return;const n=wr(t,r);n&&window.sessionStorage.setItem(`${gr}${e}`,JSON.stringify(n))}a(dl,"rememberIssueDetailLocationState");function os(e){return`/issues/${e}`}a(os,"createIssueDetailPath");function fl(e){if(!e)return!1;const t=new URLSearchParams(e);return t.has(hr)||t.has(pr)}a(fl,"hasLegacyIssueDetailQuery");function ss(e,t,r){const n=wr(t,r);return n||(e?as(e):null)}a(ss,"readIssueDetailLocationState");function ml(e,t,r){return ss(e,t,r)?.issueDetailBreadcrumb??null}a(ml,"readIssueDetailBreadcrumb");var xt=class extends Error{static{a(this,"CommentSubmissionUnknownError")}constructor(){super("We couldn’t confirm whether this comment was saved. Review the conversation before starting another draft."),this.name="CommentSubmissionUnknownError"}};function wt(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e,r=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;return typeof t.id=="string"&&r.test(t.id)&&typeof t.issueId=="string"&&r.test(t.issueId)&&typeof t.body=="string"}a(wt,"hasCommentReceipt");async function St(e,t){try{const r=await e;if(!t(r))throw new xt;return r}catch(r){throw r instanceof Vn&&r.status<500?r:new xt}}a(St,"confirmedCommentResponse");function It(e){const t=new URLSearchParams;return e?.attention&&t.set("attention",e.attention),e?.status&&t.set("status",e.status),e?.priority&&t.set("priority",e.priority),e?.projectId&&t.set("projectId",e.projectId),e?.parentId&&t.set("parentId",e.parentId),e?.assigneeAgentId&&t.set("assigneeAgentId",e.assigneeAgentId),e?.participantAgentId&&t.set("participantAgentId",e.participantAgentId),e?.assigneeUserId&&t.set("assigneeUserId",e.assigneeUserId),e?.touchedByUserId&&t.set("touchedByUserId",e.touchedByUserId),e?.inboxArchivedByUserId&&t.set("inboxArchivedByUserId",e.inboxArchivedByUserId),e?.unreadForUserId&&t.set("unreadForUserId",e.unreadForUserId),e?.labelId&&t.set("labelId",e.labelId),e?.createdByAgentId&&t.set("createdByAgentId",e.createdByAgentId),e?.createdByUserId&&t.set("createdByUserId",e.createdByUserId),e?.updatedSince&&t.set("updatedSince",e.updatedSince),e?.workspaceId&&t.set("workspaceId",e.workspaceId),e?.executionWorkspaceId&&t.set("executionWorkspaceId",e.executionWorkspaceId),e?.originKind&&t.set("originKind",e.originKind),e?.originKindPrefix&&t.set("originKindPrefix",e.originKindPrefix),e?.originId&&t.set("originId",e.originId),e?.descendantOf&&t.set("descendantOf",e.descendantOf),e?.createdFromIssueId&&t.set("createdFromIssueId",e.createdFromIssueId),e?.includeRoutineExecutions&&t.set("includeRoutineExecutions","true"),e?.includeBlockedBy&&t.set("includeBlockedBy","true"),e?.includeBlockedInboxAttention&&t.set("includeBlockedInboxAttention","true"),e?.includeLiveDescendantSummary&&t.set("includeLiveDescendantSummary","true"),e?.hasPlanDocument!==void 0&&t.set("hasPlanDocument",e.hasPlanDocument?"true":"false"),e?.q&&t.set("q",e.q),e?.limit&&t.set("limit",String(e.limit)),e?.offset!==void 0&&t.set("offset",String(e.offset)),e?.sortField&&t.set("sortField",e.sortField),e?.sortDir&&t.set("sortDir",e.sortDir),e?.afterId&&t.set("afterId",e.afterId),t}a(It,"issueListSearchParams");var Y={listAll:a(async(e,t,r)=>{const o=new Map;let s;for(;;){const i=await Y.list(e,{...t,limit:500,sortField:"id",sortDir:"asc",afterId:s},r);for(const u of i)o.set(u.id,u);if(i.length<500)return[...o.values()];s=i[i.length-1].id}},"listAll"),list:a((e,t,r)=>{const n=It(t).toString(),o=`/companies/${e}/issues${n?`?${n}`:""}`;return r?h.get(o,r):h.get(o)},"list"),listCompact:a((e,t,r)=>{const n=It(t);n.set("view","compact");const o=`/companies/${e}/issues?${n.toString()}`;return r?h.get(o,r):h.get(o)},"listCompact"),count:a((e,t)=>{const r=new URLSearchParams;return r.set("attention",t.attention),t.status&&r.set("status",t.status),t.assigneeAgentId&&r.set("assigneeAgentId",t.assigneeAgentId),t.assigneeUserId&&r.set("assigneeUserId",t.assigneeUserId),t.projectId&&r.set("projectId",t.projectId),t.labelId&&r.set("labelId",t.labelId),t.q&&r.set("q",t.q),h.get(`/companies/${e}/issues/count?${r.toString()}`)},"count"),listLabels:a(e=>h.get(`/companies/${e}/labels`),"listLabels"),createLabel:a((e,t)=>h.post(`/companies/${e}/labels`,t),"createLabel"),deleteLabel:a(e=>h.delete(`/labels/${e}`),"deleteLabel"),get:a((e,t)=>t?h.get(`/issues/${e}`,t):h.get(`/issues/${e}`),"get"),refs:a((e,t)=>h.get(`/companies/${e}/issues/refs?ids=${encodeURIComponent(t.join(","))}`),"refs"),getRunnerGoal:a((e,t)=>{const r=t?`?agentId=${encodeURIComponent(t)}`:"";return h.get(`/issues/${e}/runner-goal${r}`)},"getRunnerGoal"),actOnRunnerGoal:a((e,t)=>h.post(`/issues/${e}/runner-goal/actions`,t),"actOnRunnerGoal"),getModelOverride:a(e=>h.get(`/issues/${e}/model-override`),"getModelOverride"),setModelOverride:a((e,t)=>h.put(`/issues/${e}/model-override`,t),"setModelOverride"),getWatchdog:a(e=>h.get(`/issues/${e}/watchdog`),"getWatchdog"),getAgentTodo:a(e=>h.get(`/issues/${e}/agent-todo`),"getAgentTodo"),upsertWatchdog:a((e,t)=>h.put(`/issues/${e}/watchdog`,t),"upsertWatchdog"),deleteWatchdog:a(e=>h.delete(`/issues/${e}/watchdog`),"deleteWatchdog"),markRead:a(e=>h.post(`/issues/${e}/read`,{}),"markRead"),markUnread:a(e=>h.delete(`/issues/${e}/read`),"markUnread"),archiveFromInbox:a(e=>h.post(`/issues/${e}/inbox-archive`,{}),"archiveFromInbox"),unarchiveFromInbox:a(e=>h.delete(`/issues/${e}/inbox-archive`),"unarchiveFromInbox"),setTitle:a((e,t)=>h.put(`/issues/${e}/title`,t),"setTitle"),create:a((e,t)=>h.post(`/companies/${e}/issues`,t),"create"),update:a((e,t)=>{const r=h.patch(`/issues/${e}`,t);return typeof t.comment=="string"?St(r,n=>wt(n?.comment)):r},"update"),decideStalledReview:a((e,t)=>h.post(`/issues/${e}/stalled-review-decision`,t),"decideStalledReview"),retryWorkspaceExport:a((e,t)=>h.post(`/issues/${e}/recovery-actions/retry-workspace-export`,t),"retryWorkspaceExport"),resolveRecoveryAction:a((e,t)=>h.post(`/issues/${e}/recovery-actions/resolve`,t),"resolveRecoveryAction"),previewTreeControl:a((e,t)=>h.post(`/issues/${e}/tree-control/preview`,t),"previewTreeControl"),createTreeHold:a((e,t)=>h.post(`/issues/${e}/tree-holds`,t),"createTreeHold"),getTreeHold:a((e,t)=>h.get(`/issues/${e}/tree-holds/${t}`),"getTreeHold"),listTreeHolds:a((e,t)=>{const r=new URLSearchParams;t?.status&&r.set("status",t.status),t?.mode&&r.set("mode",t.mode),t?.includeMembers&&r.set("includeMembers","true");const n=r.toString();return h.get(`/issues/${e}/tree-holds${n?`?${n}`:""}`)},"listTreeHolds"),getTreeControlState:a(e=>h.get(`/issues/${e}/tree-control/state`),"getTreeControlState"),releaseTreeHold:a((e,t,r)=>h.post(`/issues/${e}/tree-holds/${t}/release`,r),"releaseTreeHold"),checkMonitorNow:a(e=>h.post(`/issues/${e}/monitor/check-now`,{}),"checkMonitorNow"),retryScheduledRetryNow:a(e=>h.post(`/issues/${e}/scheduled-retry/retry-now`,{}),"retryScheduledRetryNow"),remove:a(e=>h.delete(`/issues/${e}`),"remove"),checkout:a((e,t)=>h.post(`/issues/${e}/checkout`,{agentId:t,expectedStatuses:["todo","backlog","blocked","in_review"]}),"checkout"),release:a(e=>h.post(`/issues/${e}/release`,{}),"release"),listComments:a((e,t)=>{const r=new URLSearchParams;t?.after&&r.set("after",t.after),t?.order&&r.set("order",t.order),t?.limit&&r.set("limit",String(t.limit));const n=r.toString();return h.get(`/issues/${e}/comments${n?`?${n}`:""}`)},"listComments"),getQueuedComments:a(e=>h.get(`/issues/${e}/queued-comments`),"getQueuedComments"),editQueuedComment:a((e,t,r)=>h.patch(`/issues/${e}/queued-comments/${t}`,r),"editQueuedComment"),reorderQueuedComments:a((e,t)=>h.put(`/issues/${e}/queued-comments/order`,t),"reorderQueuedComments"),interruptQueuedComments:a((e,t)=>h.post(`/issues/${e}/queued-comments/interrupt`,t),"interruptQueuedComments"),interruptLatestQueuedComments:a(async(e,t)=>{const r=await Y.getQueuedComments(e);if(!r.queueId||r.targetRunId&&r.targetRunId!==t)throw new Error("The queued messages changed. Refresh and try again.");return Y.interruptQueuedComments(e,{queueId:r.queueId,revision:r.revision,targetRunId:r.targetRunId})},"interruptLatestQueuedComments"),steerQueuedComment:a((e,t,r)=>h.post(`/issues/${e}/queued-comments/${t}/steer`,r),"steerQueuedComment"),discardQueuedComment:a((e,t,r)=>h.delete(`/issues/${e}/queued-comments/${t}`,r),"discardQueuedComment"),listInteractions:a(e=>h.get(`/issues/${e}/interactions`),"listInteractions"),listAcceptedPlanDecompositions:a(e=>h.get(`/issues/${e}/accepted-plan-decompositions`),"listAcceptedPlanDecompositions"),createInteraction:a((e,t)=>h.post(`/issues/${e}/interactions`,t),"createInteraction"),acceptInteraction:a((e,t,r)=>{const{note:n,...o}=r??{};return h.post(`/issues/${e}/interactions/${t}/accept`,n?.trim()?{...o,note:n}:o)},"acceptInteraction"),rejectInteraction:a((e,t,r,n)=>h.post(`/issues/${e}/interactions/${t}/reject`,{...r?{reason:r}:{},...n?.trim()?{note:n}:{}}),"rejectInteraction"),cancelInteraction:a((e,t,r)=>h.post(`/issues/${e}/interactions/${t}/cancel`,r?{reason:r}:{}),"cancelInteraction"),skipInteraction:a((e,t,r)=>h.post(`/issues/${e}/interactions/${t}/skip`,r?{reason:r}:{}),"skipInteraction"),respondToInteraction:a((e,t,r)=>h.post(`/issues/${e}/interactions/${t}/respond`,r),"respondToInteraction"),submitInteractionVerdicts:a((e,t,r)=>h.post(`/issues/${e}/interactions/${t}/verdicts`,{verdicts:r}),"submitInteractionVerdicts"),getComment:a((e,t)=>h.get(`/issues/${e}/comments/${t}`),"getComment"),listFeedbackVotes:a(e=>h.get(`/issues/${e}/feedback-votes`),"listFeedbackVotes"),getCostSummary:a((e,t={})=>{const r=t.excludeRoot?"?excludeRoot=true":"";return h.get(`/issues/${e}/cost-summary${r}`)},"getCostSummary"),listFeedbackTraces:a((e,t)=>{const r=new URLSearchParams;for(const[o,s]of Object.entries(t??{}))s!==void 0&&r.set(o,String(s));const n=r.toString();return h.get(`/issues/${e}/feedback-traces${n?`?${n}`:""}`)},"listFeedbackTraces"),upsertFeedbackVote:a((e,t)=>h.post(`/issues/${e}/feedback-votes`,t),"upsertFeedbackVote"),addComment:a((e,t,r,n,o,s,i)=>St(h.post(`/issues/${e}/comments`,{body:t,...s?{clientRequestId:s}:{},...r===void 0?{}:{reopen:r},...n===void 0?{}:{interrupt:n},...o?.length?{attachmentIds:o}:{},...i===void 0?{}:{deliver:i}}),wt),"addComment"),cancelComment:a((e,t)=>h.delete(`/issues/${e}/comments/${t}?mode=cancel`),"cancelComment"),deleteComment:a((e,t)=>h.delete(`/issues/${e}/comments/${t}`),"deleteComment"),listDocuments:a((e,t)=>h.get(`/issues/${e}/documents${t?.includeSystem?"?includeSystem=true":""}`),"listDocuments"),getDocument:a((e,t)=>h.get(`/issues/${e}/documents/${encodeURIComponent(t)}`),"getDocument"),getDocumentPdf:a((e,t)=>h.getBlob(`/issues/${e}/documents/${encodeURIComponent(t)}/pdf`),"getDocumentPdf"),upsertDocument:a((e,t,r)=>h.put(`/issues/${e}/documents/${encodeURIComponent(t)}`,r),"upsertDocument"),lockDocument:a((e,t)=>h.post(`/issues/${e}/documents/${encodeURIComponent(t)}/lock`,{}),"lockDocument"),unlockDocument:a((e,t)=>h.post(`/issues/${e}/documents/${encodeURIComponent(t)}/unlock`,{}),"unlockDocument"),listDocumentRevisions:a((e,t)=>h.get(`/issues/${e}/documents/${encodeURIComponent(t)}/revisions`),"listDocumentRevisions"),restoreDocumentRevision:a((e,t,r)=>h.post(`/issues/${e}/documents/${encodeURIComponent(t)}/revisions/${r}/restore`,{}),"restoreDocumentRevision"),deleteDocument:a((e,t)=>h.delete(`/issues/${e}/documents/${encodeURIComponent(t)}`),"deleteDocument"),listAttachments:a(e=>h.get(`/issues/${e}/attachments`),"listAttachments"),uploadAttachment:a((e,t,r,n)=>{const o=zn(r);if(o)return Promise.reject(o);const s=new FormData;return s.append("file",r),n&&s.append("issueCommentId",n),h.postForm(`/companies/${e}/issues/${t}/attachments`,s)},"uploadAttachment"),deleteAttachment:a(e=>h.delete(`/attachments/${e}`),"deleteAttachment"),privacyConstraints:a(e=>h.get(`/issues/${e}/privacy-constraints`),"privacyConstraints"),listAccessGrants:a((e,t)=>t?h.get(`/issues/${e}/access-grants`,t):h.get(`/issues/${e}/access-grants`),"listAccessGrants"),createAccessGrant:a((e,t)=>h.post(`/issues/${e}/access-grants`,t),"createAccessGrant"),revokeAccessGrant:a((e,t)=>h.post(`/issues/${e}/access-grants/${t}/revoke`,{}),"revokeAccessGrant"),setVisibility:a((e,t)=>h.patch(`/issues/${e}`,{visibility:t}),"setVisibility"),listApprovals:a(e=>h.get(`/issues/${e}/approvals`),"listApprovals"),linkApproval:a((e,t)=>h.post(`/issues/${e}/approvals`,{approvalId:t}),"linkApproval"),unlinkApproval:a((e,t)=>h.delete(`/issues/${e}/approvals/${t}`),"unlinkApproval"),listWorkProducts:a((e,t)=>{const r=`/issues/${e}/work-products${t?.refreshPullRequests?"?refreshPullRequests=true":""}`;return t?.fresh&&Hn(r),h.get(r,{signal:t?.signal})},"listWorkProducts"),ensureWorkProductReviewDocument:a((e,t)=>h.post(`/issues/${e}/work-products/${t}/review-document`,{}),"ensureWorkProductReviewDocument"),createWorkProduct:a((e,t)=>h.post(`/issues/${e}/work-products`,t),"createWorkProduct"),updateWorkProduct:a((e,t)=>h.patch(`/work-products/${e}`,t),"updateWorkProduct"),deleteWorkProduct:a(e=>h.delete(`/work-products/${e}`),"deleteWorkProduct")};function X(e){return new Date(e).getTime()}a(X,"toTimestamp");function is(){const e=globalThis.crypto?.randomUUID?.();return e?`optimistic-${e}`:`optimistic-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}a(is,"createOptimisticCommentId");function et(e){return[...e].sort((t,r)=>{const n=X(t.createdAt)-X(r.createdAt);return n!==0?n:t.id.localeCompare(r.id)})}a(et,"sortIssueComments");function Et(e){return et(e).reverse()}a(Et,"sortIssueCommentsDesc");function hl(e){const t=new Date,r=is();return{id:r,clientId:r,companyId:e.companyId,issueId:e.issueId,authorType:"user",authorAgentId:null,authorUserId:e.authorUserId,body:e.body,presentation:null,metadata:null,clientStatus:e.clientStatus??"pending",queueTargetRunId:e.queueTargetRunId??null,createdAt:t,updatedAt:t}}a(hl,"createOptimisticIssueComment");function pl(e){return e.runId||e.interruptedRunId||e.comment.id&&(e.comment.id===e.activeRunWakeCommentId||e.comment.id===e.activeRunCommentId)||e.comment.authorAgentId&&e.activeRunAgentId&&e.comment.authorAgentId===e.activeRunAgentId?!1:e.comment.clientStatus==="queued"?!0:e.activeRunStartedAt?X(e.comment.createdAt)>=X(e.activeRunStartedAt):!1}a(pl,"isQueuedIssueComment");function gl(e,t){const r=t.queuedTargetRunId??null;return!r||!t.targetRunIsLive||t.runningRunId&&t.runningRunId!==r?e:{...e,clientStatus:"queued",queueState:"queued",queueTargetRunId:r}}a(gl,"applyLocalQueuedIssueCommentState");function yl(e,t){const r=e??[],n=[...r],o=new Set(n.map(i=>i.id)),s=new Set;for(const i of t){if(o.has(i.id))continue;const u=r.find(c=>!s.has(c.id)&&c.issueId===i.issueId&&c.authorType===i.authorType&&c.authorUserId===i.authorUserId&&c.body===i.body&&Math.abs(X(c.createdAt)-X(i.createdAt))<=6e4);if(u){s.add(u.id);const c={...u,clientId:i.clientId};n[n.findIndex(d=>d.id===u.id)]=c;continue}n.push(i)}return et(n)}a(yl,"mergeIssueComments");function vl(e,t){const r=e.findIndex(n=>n.clientId===t);return r===-1?{comments:e,comment:null}:{comments:e.filter(n=>n.clientId!==t),comment:e[r]??null}}a(vl,"takeOptimisticIssueComment");function bl(e){return et((e??[]).flatMap(t=>t))}a(bl,"flattenIssueCommentPages");function ls(e,t){if(!(!e||e.length<t))return e[e.length-1]?.id}a(ls,"getNextIssueCommentPageParam");function Rt(e,t){if(!(!e||e.length<t))return e[e.length-1]?.id}a(Rt,"getNextPageCursor");async function kl(e){const t=(e.pages??[]).map(i=>[...i]),r=e.pageParams?[...e.pageParams].slice(0,t.length):t.map(()=>null);for(;r.length<t.length;)r.push(null);if(e.pageSize<=0)return{pages:t,pageParams:r};let n=Rt(t[t.length-1],e.pageSize);const o=Math.max(0,e.maxPages??Number.POSITIVE_INFINITY),s=new Set;for(;n&&!s.has(n)&&s.size<o;){s.add(n);const i=[...await e.fetchPage(n)];t.push(i),r.push(n),n=Rt(i,e.pageSize)}return{pages:t,pageParams:r}}a(kl,"loadRemainingIssueCommentPages");function xl(e){return e.activeDetailTab!=="chat"||!e.hasOlderComments||e.initialPageLoading||e.olderPageLoading||e.loadedCommentCount===0?!1:e.loadedCommentCount<e.autoLoadLimit}a(xl,"shouldAutoloadOlderIssueComments");function wl(e,t){if(!e)return e;const r={...e};return t.reopen===!0&&(e.status==="done"||e.status==="cancelled"||e.status==="blocked")&&(r.status="todo"),t.reassignment&&(r.assigneeAgentId=t.reassignment.assigneeAgentId,r.assigneeUserId=t.reassignment.assigneeUserId),r}a(wl,"applyOptimisticIssueCommentUpdate");function us(e,t){if(!e)return e;const r={...e,updatedAt:new Date},n=a(s=>Object.prototype.hasOwnProperty.call(t,s),"hasOwn"),o=a(s=>{n(s)&&(r[s]=t[s])},"assign");if(o("status"),o("priority"),o("assigneeAgentId"),o("assigneeUserId"),o("projectId"),o("parentId"),o("projectWorkspaceId"),o("executionWorkspaceId"),o("executionWorkspacePreference"),o("executionWorkspaceSettings"),o("hiddenAt"),n("labelIds")&&Array.isArray(t.labelIds)){const s=t.labelIds.filter(i=>typeof i=="string");r.labelIds=s,e.labels&&(r.labels=e.labels.filter(i=>s.includes(i.id)))}if(n("blockedByIssueIds")&&Array.isArray(t.blockedByIssueIds)&&e.blockedBy){const s=new Set(t.blockedByIssueIds.filter(i=>typeof i=="string"));r.blockedBy=e.blockedBy.filter(i=>s.has(i.id))}return n("projectId")&&(r.project=e.project?.id===r.projectId?e.project:null),n("parentId")&&(r.ancestors=void 0),n("executionWorkspaceId")&&(r.currentExecutionWorkspace=e.currentExecutionWorkspace?.id===r.executionWorkspaceId?e.currentExecutionWorkspace:null),r}a(us,"applyOptimisticIssueFieldUpdate");function cs(e,t){const r=t instanceof Set?t:new Set(t);return r.has(e.id)||!!e.identifier&&r.has(e.identifier)}a(cs,"matchesIssueRef$1");function Sl(e,t,r){if(!e)return e;let n=!1;const o=e.map(s=>cs(s,t)?(n=!0,us(s,r)??s):s);return n?o:e}a(Sl,"applyOptimisticIssueFieldUpdateToCollection");function Il(e,t){if(!e||e.length===0)return[[t]];const r=e.map(n=>[...n]);for(let n=0;n<r.length;n+=1){const o=r[n].findIndex(s=>s.id===t.id);if(o!==-1)return r[n][o]=t,r[n]=Et(r[n]),r}return r[0]=Et([...r[0],t]),r}a(Il,"upsertIssueCommentInPages");function El(e,t){return!e||e.length===0?[]:e.map(r=>r.filter(n=>n.id!==t)).filter(r=>r.length>0)}a(El,"removeIssueCommentFromPages");var ds=["issues","detail"],Sr=6e4,fs=3e4;function ie(e){return typeof e=="string"&&e.length>0}a(ie,"isNonEmptyString");function Ir(e,t){const r=new Set;return ie(e)&&r.add(e),ie(t?.id)&&r.add(t.id),ie(t?.identifier)&&r.add(t.identifier),Array.from(r)}a(Ir,"collectIssueRefs");function ms(e,t){const r=t instanceof Set?t:new Set(t);return r.has(e.id)||!!e.identifier&&r.has(e.identifier)}a(ms,"matchesIssueRef");function Se(e){if(typeof e!="object"||e===null)return!1;const t=e;return ie(t.id)&&ie(t.companyId)&&typeof t.title=="string"&&typeof t.status=="string"&&typeof t.workMode=="string"&&typeof t.priority=="string"&&(t.projectId===null||typeof t.projectId=="string")&&(t.parentId===null||typeof t.parentId=="string")&&(t.identifier===null||typeof t.identifier=="string")&&(t.description===null||typeof t.description=="string")&&(t.assigneeAgentId===null||typeof t.assigneeAgentId=="string")&&(t.assigneeUserId===null||typeof t.assigneeUserId=="string")&&(t.executionRunId===null||typeof t.executionRunId=="string")&&(t.issueNumber===null||typeof t.issueNumber=="number")&&typeof t.requestDepth=="number"&&t.createdAt!=null&&t.updatedAt!=null}a(Se,"isCompleteIssueSnapshot");function Ct(e,t){return e?{...e,...t}:t}a(Ct,"mergeIssueSnapshots");function Er(e,t,r){const n=Ir(t,r);for(const o of n){const s=e.getQueryData(ce.issues.detail(o));if(Se(s))return s}return e.getQueriesData({queryKey:ds}).map(([,o])=>o).find(o=>Se(o)&&ms(o,n))}a(Er,"getCachedIssueDetail");function Rr(e,t,r){if(!Se(t))return t;const n=Ir(r?.issueRef,t),o=Ct(Er(e,r?.issueRef,t),t);for(const s of n)e.setQueryData(ce.issues.detail(s),i=>Ct(i,o));return o}a(Rr,"seedIssueDetailCache");async function Cr(e,t,r){return Rr(e,r?await Y.get(t,r):await Y.get(t),{issueRef:t})}a(Cr,"fetchIssueDetail");function hs(e,t,r){return{queryKey:ce.issues.detail(t),queryFn:a(({signal:n})=>Cr(e,t,{signal:n}),"queryFn"),placeholderData:Er(e,t,r?.placeholderIssue??void 0)}}a(hs,"getIssueDetailQueryOptions");function ps(e,t,r){return Se(r?.issue)&&Rr(e,r.issue,{issueRef:t}),e.prefetchQuery({queryKey:ce.issues.detail(t),queryFn:a(()=>Cr(e,t),"queryFn"),staleTime:Sr})}a(ps,"prefetchIssueDetail");function gs(e,t){return e.prefetchInfiniteQuery({queryKey:ce.issues.comments(t),queryFn:a(({pageParam:r})=>Y.listComments(t,{order:"desc",limit:50,...r?{after:r}:{}}),"queryFn"),initialPageParam:null,getNextPageParam:a(r=>ls(r,50),"getNextPageParam"),staleTime:fs,pages:1})}a(gs,"prefetchIssueComments");function ys(e,t,r){return Promise.all([ps(e,t,r),gs(e,r?.issue?.id??t)])}a(ys,"prefetchIssueDetailForNavigation");var I=Ot(Nn(),1);function vs({...e}){return(0,I.jsx)(Wn,{"data-slot":"popover",...e})}a(vs,"Popover");function bs({...e}){return(0,I.jsx)(Gn,{"data-slot":"popover-trigger",...e})}a(bs,"PopoverTrigger");function ks({className:e,align:t="center",sideOffset:r=4,disablePortal:n=!1,...o}){const s=(0,I.jsx)(Un,{"data-slot":"popover-content",align:t,sideOffset:r,className:V("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...o});return n?s:(0,I.jsx)(Fn,{children:s})}a(ks,"PopoverContent");function Rl({...e}){return(0,I.jsx)(Kn,{"data-slot":"popover-anchor",...e})}a(Rl,"PopoverAnchor");function Cl({className:e,...t}){return(0,I.jsx)("div",{"data-slot":"popover-title",className:V("font-medium",e),...t})}a(Cl,"PopoverTitle");function $l({className:e,...t}){return(0,I.jsx)("p",{"data-slot":"popover-description",className:V("text-muted-foreground",e),...t})}a($l,"PopoverDescription");var $r={name:"atom",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z",key:"1l2ple"}],["path",{d:"M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z",key:"1wam0m"}]]};$r.node;var xs=k($r),_r={name:"ban",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]};_r.node;var ws=k(_r),Dr={name:"box",size:24,node:[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]};Dr.node;var Ss=k(Dr),Ar={name:"brain",size:24,node:[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]};Ar.node;var Is=k(Ar),Pr={name:"briefcase",size:24,node:[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]};Pr.node;var Es=k(Pr),Mr={name:"bug",size:24,node:[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]};Mr.node;var Rs=k(Mr),Lr={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};Lr.node;var Cs=k(Lr),Tr={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};Tr.node;var Or=k(Tr),jr={name:"circle-dot",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]};jr.node;var $s=k(jr),Nr={name:"circle-minus",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["minus-circle"]};Nr.node;var $t=k(Nr),Br={name:"circle",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]};Br.node;var _t=k(Br),Ur={name:"code",size:24,node:[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]};Ur.node;var _s=k(Ur),zr={name:"cog",size:24,node:[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]]};zr.node;var Ds=k(zr),Fr={name:"compass",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]]};Fr.node;var As=k(Fr),qr={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};qr.node;var Ps=k(qr),Hr={name:"crown",size:24,node:[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]};Hr.node;var Ms=k(Hr),Wr={name:"database",size:24,node:[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]};Wr.node;var Ls=k(Wr),Vr={name:"file-code",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]};Vr.node;var Ts=k(Vr),Qr={name:"flame",size:24,node:[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]]};Qr.node;var Os=k(Qr),Kr={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};Kr.node;var js=k(Kr),Jr={name:"gem",size:24,node:[["path",{d:"M10.5 3 8 9l4 13 4-13-2.5-6",key:"b3dvk1"}],["path",{d:"M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z",key:"7w4byz"}],["path",{d:"M2 9h20",key:"16fsjt"}]]};Jr.node;var Ns=k(Jr),Gr={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};Gr.node;var Bs=k(Gr),Yr={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};Yr.node;var Us=k(Yr),Zr={name:"hammer",size:24,node:[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]]};Zr.node;var zs=k(Zr),Xr={name:"heart",size:24,node:[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]};Xr.node;var Fs=k(Xr),en={name:"hexagon",size:24,node:[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]]};en.node;var qs=k(en),tn={name:"layers",size:24,node:[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],aliases:["layers-3"]};tn.node;var Hs=k(tn),rn={name:"lightbulb",size:24,node:[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]};rn.node;var Ws=k(rn),nn={name:"lock",size:24,node:[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]};nn.node;var Vs=k(nn),an={name:"mail",size:24,node:[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]};an.node;var Qs=k(an),on={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};on.node;var Ks=k(on),sn={name:"package",size:24,node:[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]};sn.node;var Js=k(sn),ln={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};ln.node;var _l=k(ln),un={name:"puzzle",size:24,node:[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]};un.node;var Gs=k(un),cn={name:"radar",size:24,node:[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]};cn.node;var Ys=k(cn),dn={name:"rocket",size:24,node:[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]};dn.node;var Zs=k(dn),fn={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};fn.node;var Xs=k(fn),mn={name:"shield",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]};mn.node;var ei=k(mn),hn={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};hn.node;var ti=k(hn),pn={name:"star",size:24,node:[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]};pn.node;var ri=k(pn),gn={name:"target",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]};gn.node;var ni=k(gn),yn={name:"telescope",size:24,node:[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]]};yn.node;var ai=k(yn),vn={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};vn.node;var oi=k(vn),bn={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};bn.node;var si=k(bn),kn={name:"zap",size:24,node:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]]};kn.node;var ii=k(kn),Dl={backlog:"text-muted-foreground border-muted-foreground",todo:"text-amber-600 border-amber-600 dark:text-amber-400 dark:border-amber-400",in_progress:"text-blue-600 border-blue-600 dark:text-blue-400 dark:border-blue-400",in_review:"text-violet-600 border-violet-600 dark:text-violet-400 dark:border-violet-400",done:"text-green-600 border-green-600 dark:text-green-400 dark:border-green-400",cancelled:"text-neutral-500 border-neutral-500",blocked:"text-red-600 border-red-600 dark:text-red-400 dark:border-red-400"},Al="text-muted-foreground border-muted-foreground",Pl={backlog:"text-muted-foreground",todo:"text-amber-600 dark:text-amber-400",in_progress:"text-blue-600 dark:text-blue-400",in_review:"text-violet-600 dark:text-violet-400",done:"text-green-600 dark:text-green-400",cancelled:"text-neutral-500",blocked:"text-red-600 dark:text-red-400"},Ml="text-muted-foreground",ye={gray:"bg-[#F5F3F0] text-[#52585D] border-[#A8AEB2] dark:bg-[#6e696024] dark:text-[#9A958A] dark:border-[#9e958a73]",blue:"bg-[#DBEAFE] text-[#1D4ED8] border-[#2563EB] dark:bg-[#2563eb2e] dark:text-[#2563EB] dark:border-[#2563eb73]",amber:"bg-[#FEF3C7] text-[#B45309] border-[#F59E0B] dark:bg-[#f59e0b24] dark:text-[#F59E0B] dark:border-[#f59e0b73]",green:"bg-[#DCFCE7] text-[#188A3C] border-[#22C55E] dark:bg-[#22c55e1f] dark:text-[#22C55E] dark:border-[#22c55e73]",violet:"bg-[#EDE9FE] text-[#5B21B6] border-[#7C3AED] dark:bg-[#7c3aed2e] dark:text-[#7C3AED] dark:border-[#7c3aed73]",red:"bg-[#FEE2E2] text-[#991B1B] border-[#DC2626] dark:bg-[#dc26262e] dark:text-[#DC2626] dark:border-[#dc262673]"},Ll={active:`border ${ye.green}`,running:`border ${ye.blue}`,scheduled_retry:"bg-sky-100 text-sky-700 dark:bg-sky-900/50 dark:text-sky-300",paused:`border ${ye.amber}`,idle:`border ${ye.gray}`,archived:"bg-muted text-muted-foreground",planned:"bg-muted text-muted-foreground",achieved:"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300",completed:"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300",failed:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",timed_out:"bg-orange-100 text-orange-700 dark:bg-orange-900/50 dark:text-orange-300",succeeded:"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300",ok:"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300",warning:"bg-amber-100 text-amber-700 dark:bg-amber-900/50 dark:text-amber-300",error:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",info:"bg-sky-100 text-sky-700 dark:bg-sky-900/50 dark:text-sky-300",terminated:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",pending:"bg-yellow-100 text-yellow-700 dark:bg-yellow-900/50 dark:text-yellow-300",queued:"bg-yellow-100 text-yellow-700 dark:bg-yellow-900/50 dark:text-yellow-300",pending_approval:"bg-amber-100 text-amber-700 dark:bg-amber-900/50 dark:text-amber-300",revision_requested:"bg-amber-100 text-amber-700 dark:bg-amber-900/50 dark:text-amber-300",approved:"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300",rejected:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",draft:"bg-muted text-muted-foreground",backlog:"bg-muted text-muted-foreground",todo:"bg-amber-100 text-amber-700 dark:bg-amber-900/50 dark:text-amber-300",in_progress:"bg-blue-100 text-blue-700 dark:bg-blue-900/50 dark:text-blue-300",in_review:"bg-violet-100 text-violet-700 dark:bg-violet-900/50 dark:text-violet-300",blocked:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",done:"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300",cancelled:"bg-muted text-muted-foreground",allowed:"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300",denied:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",block:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300","require-approval":"bg-amber-100 text-amber-700 dark:bg-amber-900/50 dark:text-amber-300",redacted:"bg-violet-100 text-violet-700 dark:bg-violet-900/50 dark:text-violet-300","rate-limit":"bg-orange-100 text-orange-700 dark:bg-orange-900/50 dark:text-orange-300",deferred:"bg-sky-100 text-sky-700 dark:bg-sky-900/50 dark:text-sky-300",hidden:"bg-muted text-muted-foreground",quarantined:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300","runtime-error":"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",healthy:"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300",degraded:"bg-amber-100 text-amber-700 dark:bg-amber-900/50 dark:text-amber-300",unchecked:"bg-muted text-muted-foreground"},Tl="bg-muted text-muted-foreground",Ol="text-[#1D4ED8] dark:text-[#2563EB]",jl="bg-blue-500/10 border-blue-500/30 text-blue-600 dark:text-blue-400",Nl={info:"border-[#2563EB]/40 bg-[#DBEAFE]/50 text-[#1D4ED8] dark:border-[#2563eb59] dark:bg-[#2563eb14] dark:text-[#93C5FD]",warning:"border-[#F59E0B]/50 bg-[#FEF3C7]/60 text-[#B45309] dark:border-[#f59e0b59] dark:bg-[#f59e0b12] dark:text-[#F59E0B]",danger:"border-destructive/40 bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300"},Bl={idle:"--status-agent-idle",active:"--status-agent-idle",running:"--status-agent-running",paused:"--status-agent-paused",error:"--status-agent-error"},Ul="--status-agent-idle",zl={idle:"--status-task-backlog",backlog:"--status-task-backlog",todo:"--status-task-todo",in_progress:"--status-task-in_progress",in_review:"--status-task-in_review",done:"--status-task-done",blocked:"--status-task-blocked",cancelled:"--status-task-cancelled"},Fl="--status-task-backlog",li={idle:"--status-task-icon-backlog",backlog:"--status-task-icon-backlog",todo:"--status-task-icon-todo",in_progress:"--status-task-icon-in_progress",in_review:"--status-task-icon-in_review",done:"--status-task-icon-done",blocked:"--status-task-icon-blocked",cancelled:"--status-task-icon-cancelled",in_queue:"--status-task-icon-in_queue"};var ql={running:"bg-blue-400 animate-pulse",active:"bg-green-400",paused:"bg-yellow-400",idle:"bg-yellow-400",pending_approval:"bg-amber-400",error:"bg-red-400",archived:"bg-neutral-400"},Hl="bg-neutral-400",Wl={critical:"text-red-600 dark:text-red-400",high:"text-orange-600 dark:text-orange-400",medium:"text-yellow-600 dark:text-yellow-400",low:"text-blue-600 dark:text-blue-400"},Vl="text-yellow-600 dark:text-yellow-400",Ql={unknown:"text-muted-foreground border-muted-foreground",open:"text-blue-600 border-blue-600 dark:text-blue-400 dark:border-blue-400",waiting:"text-amber-600 border-amber-600 dark:text-amber-400 dark:border-amber-400",running:"text-blue-600 border-blue-600 dark:text-blue-400 dark:border-blue-400",succeeded:"text-green-600 border-green-600 dark:text-green-400 dark:border-green-400",merged:"text-violet-600 border-violet-600 dark:text-violet-400 dark:border-violet-400",failed:"text-red-600 border-red-600 dark:text-red-400 dark:border-red-400",blocked:"text-red-600 border-red-600 dark:text-red-400 dark:border-red-400",closed:"text-neutral-500 border-neutral-500",archived:"text-neutral-500 border-neutral-500",auth_required:"text-amber-600 border-amber-600 dark:text-amber-400 dark:border-amber-400",unreachable:"text-red-600 border-red-600 dark:text-red-400 dark:border-red-400"},Kl="text-muted-foreground border-muted-foreground",Jl={unknown:"bg-muted text-muted-foreground",open:"bg-blue-100 text-blue-700 dark:bg-blue-900/50 dark:text-blue-300",waiting:"bg-amber-100 text-amber-700 dark:bg-amber-900/50 dark:text-amber-300",running:"bg-blue-100 text-blue-700 dark:bg-blue-900/50 dark:text-blue-300",succeeded:"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300",failed:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",blocked:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",closed:"bg-muted text-muted-foreground",archived:"bg-muted text-muted-foreground",auth_required:"bg-amber-100 text-amber-700 dark:bg-amber-900/50 dark:text-amber-300",unreachable:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300"},Gl="bg-muted text-muted-foreground",Yl={unknown:"",fresh:"",stale:"opacity-70 [border-style:dashed]",auth_required:"[border-style:dashed]",unreachable:"[border-style:dashed]"},ui={sm:14,md:16,lg:20},ci=k("TaskProgressSpinner",[["circle",{cx:"12",cy:"12",r:"10",pathLength:"100",strokeDasharray:"80 20",key:"progress"}]]),di={idle:_t,backlog:Or,todo:_t,in_progress:ci,in_review:$s,done:Cs,blocked:$t,cancelled:ws,in_queue:$t},fi=Or;function mi({status:e,size:t="md",className:r,title:n}){const o=ui[t],s=di[e]??fi,i=li[e]??"--status-task-icon-backlog",u=n?{role:"img","aria-label":n}:{"aria-hidden":!0};return(0,I.jsx)(s,{size:o,className:V("inline-block shrink-0 align-middle",e==="in_progress"&&"motion-safe:animate-spin",r),style:{color:`var(${i})`},...u,children:n?(0,I.jsx)("title",{children:n}):null})}a(mi,"StatusGlyph");var Dt={folder:js,rocket:Zs,code:_s,terminal:oi,database:Ls,globe:Us,package:Js,boxes:Jn,box:Ss,layers:Hs,briefcase:Es,compass:As,target:ni,flame:Os,zap:ii,star:ri,bug:Rs,wrench:si,hammer:zs,lightbulb:Ws,sparkles:ti,shield:ei,lock:Vs,search:Xs,cog:Ds,brain:Is,cpu:Ps,"git-branch":Bs,"file-code":Ts,puzzle:Gs,gem:Ns,atom:xs,heart:Fs,mail:Qs,"message-square":Ks,crown:Ms,radar:Ys,telescope:ai,hexagon:qs},hi="folder";function pi(e){return e&&Tn.includes(e)?Dt[e]:Dt[hi]}a(pi,"getProjectIcon");var gi={xs:{box:"h-4 w-4 rounded-sm",icon:"h-2.5 w-2.5"},sm:{box:"h-6 w-6 rounded-md",icon:"h-3.5 w-3.5"},md:{box:"h-7 w-7 rounded-lg",icon:"h-4 w-4"},lg:{box:"h-9 w-9 rounded-lg",icon:"h-5 w-5"}};function yi({color:e,icon:t,size:r="md",className:n}){const o=gi[r],s=!!e,i=pi(t);return(0,I.jsx)("span",{"aria-hidden":!0,className:V("inline-flex shrink-0 items-center justify-center",o.box,s?"text-white":"bg-muted text-muted-foreground",n),style:s?{backgroundColor:e??void 0}:void 0,children:(0,I.jsx)(i,{className:o.icon})})}a(yi,"ProjectTile");var le=null,qe=new Set;function xn(){for(const e of qe)e()}a(xn,"emitQuicklookChange");function At(e){le!==e&&(le=e,xn())}a(At,"openQuicklookId");function Pt(e){le===e&&(le=null,xn())}a(Pt,"closeQuicklookId");function vi(e){return qe.add(e),()=>{qe.delete(e)}}a(vi,"subscribeQuicklook");function bi(e){return l.useSyncExternalStore(vi,()=>le===e,()=>!1)}a(bi,"useIsQuicklookOpen");var ki=120,xi=13,wi="w-72 p-3";function Si(e="start"){return e==="start"?-13:e==="end"?xi:0}a(Si,"quicklookAlignOffset");function Ii(e){if(!e)return null;const t=e.replace(/!\[[^\]]*]\([^)]+\)/g," ").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/[#>*_`~-]+/g," ").replace(/\s+/g," ").trim();return t?t.length>180?`${t.slice(0,177).trimEnd()}...`:t:null}a(Ii,"summarizeIssueDescription");function Ei({className:e}){return(0,I.jsx)("span",{className:V("text-xs",e),"aria-hidden":!0,children:"·"})}a(Ei,"QuicklookSeparator");function Ri(e){const t=e.replace(/_/g," ");return t.charAt(0).toUpperCase()+t.slice(1)}a(Ri,"statusLabel");function Ci({issue:e,linkTo:t,linkState:r,compact:n=!1}){const o=(0,l.useMemo)(()=>Ii(e.description),[e.description]),s=e.project?.name;return(0,I.jsxs)("div",{className:V("space-y-2",n&&"space-y-1.5"),children:[(0,I.jsxs)("div",{className:"flex items-center gap-1",children:[(0,I.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-1",children:[(0,I.jsx)(mi,{status:e.status,size:"md",title:Ri(e.status)}),(0,I.jsx)("span",{className:"shrink-0 font-mono text-(length:--text-micro) text-muted-foreground",children:e.identifier??e.id.slice(0,8)}),s?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ei,{className:"shrink-0 text-muted-foreground"}),(0,I.jsxs)("span",{className:"flex min-w-0 max-w-(--sz-12rem) flex-1 items-center gap-1 text-(length:--text-micro) text-muted-foreground",title:s,"data-testid":"quicklook-project",children:[(0,I.jsx)(yi,{size:"xs"}),(0,I.jsx)("span",{className:"truncate",children:s})]})]}):null]}),(0,I.jsx)("span",{className:"shrink-0 text-(length:--text-micro) text-muted-foreground",children:Ko(new Date(e.updatedAt))})]}),(0,I.jsx)(me,{to:t,state:r??kr(null,e),className:"block text-sm font-medium leading-snug hover:underline line-clamp-2",children:e.title}),o?(0,I.jsx)("p",{className:"text-xs leading-5 text-muted-foreground [display:-webkit-box] [-webkit-box-orient:vertical] [-webkit-line-clamp:4] overflow-hidden",children:o}):null]})}a(Ci,"IssueQuicklookCard");var $i=l.forwardRef(a(function({issuePathId:t,to:r,children:n,className:o,state:s,disableIssueQuicklook:i=!1,issuePrefetch:u=null,issueQuicklookSide:c="top",issueQuicklookAlign:d="start",onClick:m,onClickCapture:f,onMouseEnter:g,onFocus:b,onBlur:v,onTouchStart:y,...p},x){const w=jn(),S=l.useMemo(()=>Symbol("issue-quicklook"),[]),$=bi(S),E=l.useRef(null),_=l.useRef(null),P=l.useRef(null),j=l.useCallback(R=>{_.current=R,typeof x=="function"?x(R):x&&(x.current=R)},[x]),D=l.useCallback(()=>{E.current&&(clearTimeout(E.current),E.current=null)},[]),B=l.useCallback(()=>{D(),At(S)},[D,S]),J=l.useCallback(()=>{D(),E.current=setTimeout(()=>{E.current=null,At(S)},ki)},[D,S]),T=l.useCallback(()=>{D(),Pt(S)},[D,S]);l.useEffect(()=>()=>{D(),Pt(S)},[D,S]),l.useEffect(()=>{if(!$)return;const R=12,nt=a((W,oe,G)=>{if(!W)return!1;const H=W.getBoundingClientRect();return oe>=H.left-R&&oe<=H.right+R&&G>=H.top-R&&G<=H.bottom+R},"nearBox"),Pn=a((W,oe)=>{const G=_.current,H=P.current;if(G?.matches(":hover")||H?.matches(":hover")||nt(G,W,oe)||nt(H,W,oe))return!0;const Ae=document.activeElement;return G===Ae||!!H&&!!Ae&&H.contains(Ae)},"stillEngaged"),at=a(W=>{Pn(W.clientX,W.clientY)||T()},"onPointerMove");return document.addEventListener("pointermove",at,{passive:!0}),()=>document.removeEventListener("pointermove",at)},[$,T]);const q=u?kr(s,u):s,{data:U,isLoading:z}=Bn({...hs(w,t,{placeholderIssue:u??void 0}),enabled:$,staleTime:Sr}),An=os(t),ae=l.useCallback(()=>{ys(w,t,{issue:u})},[t,u,w]),rt=(0,I.jsx)(me,{ref:j,to:r,state:q,className:o,onMouseEnter:a(R=>{ae(),g?.(R)},"onMouseEnter"),onFocus:a(R=>{ae(),B(),b?.(R)},"onFocus"),onBlur:a(R=>{setTimeout(()=>T(),0),v?.(R)},"onBlur"),onTouchStart:a(R=>{ae(),y?.(R)},"onTouchStart"),onClickCapture:a(R=>{ae(),f?.(R)},"onClickCapture"),onClick:a(R=>{T(),m?.(R)},"onClick"),...p,children:n});return i?rt:(0,I.jsxs)(vs,{open:$,onOpenChange:a(R=>R?B():T(),"onOpenChange"),children:[(0,I.jsx)(bs,{asChild:!0,onMouseEnter:a(()=>{ae(),J()},"onMouseEnter"),onMouseLeave:T,children:rt}),(0,I.jsx)(ks,{ref:P,"data-quicklook":!0,className:wi,side:c,align:d,alignOffset:Si(d),onMouseEnter:B,onMouseLeave:T,onOpenAutoFocus:a(R=>R.preventDefault(),"onOpenAutoFocus"),onCloseAutoFocus:a(R=>R.preventDefault(),"onCloseAutoFocus"),children:U?(0,I.jsx)(Ci,{issue:U,linkTo:An,linkState:q,compact:!0}):(0,I.jsxs)("div",{className:"space-y-2",children:[(0,I.jsx)("div",{className:"h-4 w-24 rounded bg-accent/50"}),(0,I.jsx)("div",{className:"h-4 w-full rounded bg-accent/40"}),(0,I.jsx)("div",{className:"h-4 w-3/4 rounded bg-accent/30"}),z?null:(0,I.jsx)("p",{className:"text-xs text-muted-foreground",children:"Unable to load task preview."})]})})]})},"IssueLinkQuicklookImpl")),wn=new Set(["dashboard","companies","company","skills","teams-catalog","org","agents","chats","apps","projects","workspaces","terminal","execution-workspaces","issues","tasks","routines","goals","artifacts","tools","approvals","costs","usage","activity","audit","decisions","inbox","board-chat","artifacts","u","design-guide","search","settings","timeline"]),tt=new Set(["auth","invite","board-claim","cli-auth","mcp-connect","dot-connect","assistant-connections","docs","instance","s"]);function ue(e){return e.trim().toUpperCase()}a(ue,"normalizeCompanyPrefix");function Sn(e){const t=e.match(/^([^?#]*)(\?[^#]*)?(#.*)?$/);return{pathname:t?.[1]??e,search:t?.[2]??"",hash:t?.[3]??""}}a(Sn,"splitPath");function _i(e){return e.split("/").filter(Boolean)[0]??null}a(_i,"getRootSegment");function Di(e){if(e==="/")return!0;const t=_i(e);return t?tt.has(t.toLowerCase()):!0}a(Di,"isGlobalPath");function In(e){const t=e.split("/").filter(Boolean);if(t.length===0)return null;const r=t[0].toLowerCase();return tt.has(r)||wn.has(r)?null:ue(t[0])}a(In,"extractCompanyPrefixFromPath");function Mt(e,t){const{pathname:r,search:n,hash:o}=Sn(e);if(!r.startsWith("/")||Di(r)||!t)return e;const s=ue(t);return In(r)?e:`/${s}${r}${n}${o}`}a(Mt,"applyCompanyPrefix");function Ai(e,...t){const r=["cases",...t].filter(Boolean).join("/");return e?`/${ue(e)}/${r}`:`/${r}`}a(Ai,"caseHref");function Zl(e){const{pathname:t,search:r,hash:n}=Sn(e),o=t.split("/").filter(Boolean);if(o.length>=2){const s=o[1].toLowerCase();if(!tt.has(o[0].toLowerCase())&&wn.has(s))return`/${o.slice(1).join("/")}${r}${n}`}return`${t}${r}${n}`}a(Zl,"toCompanyRelativePath");var En=/^[A-Z][A-Z0-9]*-\d+$/i,Pi=/^issue:\/\/:?([^?#\s]+)([?#].*)?$/i,Mi=/issue:\/\/:?[^\s<>()]+|https?:\/\/[^\s<>()]+|\/(?:[^\s<>()/]+\/)*issues\/[A-Z][A-Z0-9]*-\d+(?=$|[\s<>)\],.;!?:])|\b[A-Z][A-Z0-9]*-\d+\b/gi;function Rn(e){if(!e)return null;const t=e.trim();if(!t||/^https?:\/\//i.test(t))return null;const r=t.split(/[?#]/,1)[0].split("/").filter(Boolean),n=r.findIndex(s=>s==="issues");if(n===-1||n===r.length-1)return null;const o=decodeURIComponent(r[n+1]??"");return!o||o.startsWith(":")?null:En.test(o)?o.toUpperCase():o}a(Rn,"parseIssuePathIdFromPath");function Cn(e,t){if(!e)return null;const r=e.trim(),n=r.match(Pi);if(n?.[1]){const i=decodeURIComponent(n[1]);return{issuePathId:i,href:`/issues/${encodeURIComponent(i)}${n[2]??""}`}}const o=Rn(e);if(o)return{issuePathId:o,href:`/issues/${encodeURIComponent(o)}${r.match(/[?#].*$/)?.[0]??""}`};if(!En.test(r))return null;const s=r.toUpperCase();if(t&&t.size>0){const i=s.split("-")[0];if(!i||!t.has(i))return null}return{issuePathId:s,href:`/issues/${encodeURIComponent(s)}`}}a(Cn,"parseIssueReferenceFromHref");function Li(e){let t=e,r="";for(;t.length>0;){const n=t.at(-1);if(!n||!/[),.;!?:\]]/.test(n))break;if(n===")"){const o=(t.match(/\(/g)??[]).length;if((t.match(/\)/g)??[]).length<=o)break}if(n==="]"){const o=(t.match(/\[/g)??[]).length;if((t.match(/\]/g)??[]).length<=o)break}r=`${n}${r}`,t=t.slice(0,-1)}return{core:t,trailing:r}}a(Li,"splitTrailingPunctuation");function $n(e,t,r="text"){return{type:"link",url:t,children:[{type:r,value:e}]}}a($n,"createIssueLinkNode");function Ti(e,t){const r=[];let n=0,o=!1;for(const s of e.matchAll(Mi)){const i=s[0];if(!i)continue;const u=s.index??0,c=u+i.length,{core:d,trailing:m}=Li(i),f=Cn(d,t);f&&(o=!0,u>n&&r.push({type:"text",value:e.slice(n,u)}),r.push($n(d,f.href)),m&&r.push({type:"text",value:m}),n=c)}return o?(n<e.length&&r.push({type:"text",value:e.slice(n)}),r):null}a(Ti,"linkifyIssueReferencesInText");function _n(e,t){if(!Array.isArray(e.children)||e.children.length===0||e.type==="link"||e.type==="linkReference"||e.type==="code"||e.type==="definition"||e.type==="html")return;const r=[];for(const n of e.children){if(n.type==="inlineCode"&&typeof n.value=="string"){const o=Cn(n.value,t);if(o){r.push($n(n.value,o.href,"inlineCode"));continue}}if(n.type==="text"&&typeof n.value=="string"){const o=Ti(n.value,t);if(o){r.push(...o);continue}}_n(n,t),r.push(n)}e.children=r}a(_n,"rewriteMarkdownTree");function Xl(e){const t=e?.knownPrefixes&&e.knownPrefixes.length>0?new Set(e.knownPrefixes.map(r=>r.toUpperCase())):void 0;return r=>{_n(r,t)}}a(Xl,"remarkLinkIssueReferences");function De(e,t){if(typeof e=="string")return Mt(e,t);if(e.pathname&&e.pathname.startsWith("/")){const r=Mt(e.pathname,t);if(r!==e.pathname)return{...e,pathname:r}}return e}a(De,"resolveTo");function he(){const{selectedCompany:e}=qn(),t=za(),r=L();if(t.companyPrefix)return ue(t.companyPrefix);const n=In(r.pathname);return n||(e?ue(e.issuePrefix):null)}a(he,"useActiveCompanyPrefix");function eu(){const e=he();return l.useCallback((...t)=>Ai(e,...t),[e])}a(eu,"useCaseHref");var tu=l.forwardRef(a(function({to:t,disableIssueQuicklook:r=!1,issuePrefetch:n=null,issueQuicklookSide:o,issueQuicklookAlign:s,...i},u){const c=De(t,he()),d=Rn(typeof c=="string"?c:c.pathname);return d?(0,I.jsx)($i,{ref:u,to:c,issuePathId:d,disableIssueQuicklook:r,issuePrefetch:n,issueQuicklookSide:o,issueQuicklookAlign:s,...i}):(0,I.jsx)(me,{ref:u,to:c,...i})},"CompanyLink")),ru=l.forwardRef(a(function({to:t,...r},n){const o=he();return(0,I.jsx)(ur,{ref:n,to:De(t,o),...r})},"CompanyNavLink"));function nu({to:e,...t}){const r=he();return(0,I.jsx)(ro,{to:De(e,r),...t})}a(nu,"Navigate");function au(){const e=Ee(),t=he();return l.useCallback(((r,n)=>{if(typeof r=="number"){e(r);return}e(De(r,t),n)}),[e,t])}a(au,"useNavigate");var Lt=a(e=>typeof e=="boolean"?`${e}`:e===0?"0":e,"falsyToString"),Tt=Qn,Oi=a((e,t)=>r=>{var n;if(t?.variants==null)return Tt(e,r?.class,r?.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(d=>{const m=r?.[d],f=s?.[d];if(m===null)return null;const g=Lt(m)||Lt(f);return o[d][g]}),u=r&&Object.entries(r).reduce((d,m)=>{let[f,g]=m;return g===void 0||(d[f]=g),d},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,m)=>{let{class:f,className:g,...b}=m;return Object.entries(b).every(v=>{let[y,p]=v;return Array.isArray(p)?p.includes({...s,...u}[y]):{...s,...u}[y]===p})?[...d,f,g]:d},[]);return Tt(e,i,c,r?.class,r?.className)},"cva"),ji=Oi("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-(--tp-color-background-color-border-color-box-shadow-opacity) disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-(length:--rad-3) aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",cta:"bg-foreground text-background hover:bg-foreground/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-9 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-10","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-9","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),Ni=l.forwardRef(a(function({className:t,variant:r="default",size:n="default",asChild:o=!1,...s},i){const u=o?On:"button";return(0,I.jsx)(u,{ref:i,"data-slot":"button","data-variant":r,"data-size":n,className:V(ji({variant:r,size:n,className:t})),...s})},"Button"));Ni.displayName="Button";var Dn=(0,l.createContext)(null);function Bi(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r+=1)if(e[r]?.label!==t[r]?.label||e[r]?.onClick!==t[r]?.onClick||e[r]?.href!==t[r]?.href||e[r]?.identifier!==t[r]?.identifier||e[r]?.leadingKey!==t[r]?.leadingKey||e[r]?.trailingKey!==t[r]?.trailingKey)return!1;return!0}a(Bi,"breadcrumbsEqual");function Ui(e,t){const r=e.length===0?[]:[...e].reverse().map(o=>o.label),n=t?.trim()?[t.trim()]:[];return[...r,...n,"Paperclip"].join(" • ")}a(Ui,"buildDocumentTitle");function ou({children:e,companyName:t}){const[r,n]=(0,l.useState)([]),[o,s]=(0,l.useState)(null),[i,u]=(0,l.useState)(null),[c,d]=(0,l.useState)(null),m=(0,l.useCallback)(v=>{n(y=>Bi(y,v)?y:v)},[]),f=(0,l.useCallback)(v=>{d(v)},[]),g=(0,l.useCallback)(v=>{s(v)},[]),b=(0,l.useCallback)(v=>{u(v)},[]);return(0,l.useEffect)(()=>{document.title=Ui(r,t)},[r,t]),(0,I.jsx)(Dn.Provider,{value:{breadcrumbs:r,setBreadcrumbs:m,breadcrumbToolbar:o,setBreadcrumbToolbar:g,breadcrumbPanelControl:i,setBreadcrumbPanelControl:b,mobileToolbar:c,setMobileToolbar:f},children:e})}a(ou,"BreadcrumbProvider");function su(){const e=(0,l.useContext)(Dn);if(!e)throw new Error("useBreadcrumbs must be used within BreadcrumbProvider");return e}a(su,"useBreadcrumbs");export{ni as $,bl as $t,Nl as A,tl as An,$t as At,Ml as B,rl as Bn,Rl as Bt,yi as C,ol as Cn,Ls as Ct,Hl as D,mr as Dn,Ds as Dt,ql as E,sl as En,As as Et,Ql as F,nl as Fn,Is as Ft,Ll as G,Er as Gt,Wl as H,$l as Ht,Kl as I,L as In,Ss as It,Fl as J,gl as Jt,Tl as K,hs as Kt,Dl as L,Ee as Ln,ws as Lt,Yl as M,Gi as Mn,Or as Mt,Jl as N,no as Nn,Cs as Nt,Bl as O,al as On,_s as Ot,Gl as P,Yi as Pn,Rs as Pt,ai as Q,hl as Qt,Al as R,Ki as Rn,xs as Rt,Si as S,Go as Sn,Ts as St,mi as T,ll as Tn,Ps as Tt,Vl as U,Cl as Ut,jl as V,ks as Vt,Ol as W,bs as Wt,si as X,us as Xt,ii as Y,wl as Yt,oi as Z,Sl as Zt,ue as _,ss as _n,Us as _t,Oi as a,El as an,Ys as at,Ci as b,il as bn,js as bt,nu as c,Il as cn,Js as ct,au as d,cl as dn,Vs as dt,ls as en,ri as et,Cn as f,ul as fn,Ws as ft,Di as g,es as gn,zs as gt,In as h,ml as hn,Fs as ht,ji as i,yl as in,Zs as it,ye as j,me as jn,$s as jt,Ul as k,Ko as kn,_t as kt,he as l,Y as ln,Ks as lt,Mt as m,fl as mn,qs as mt,su as n,kl as nn,ei as nt,tu as o,xl as on,Gs as ot,Xl as p,os as pn,Hs as pt,zl as q,ys as qt,Ni as r,cs as rn,Xs as rt,ru as s,vl as sn,_l as st,ou as t,pl as tn,ti as tt,eu as u,xt as un,Qs as ut,Zl as v,dl as vn,Bs as vt,Dt as w,Xe as wn,Ms as wt,wi as x,Jo as xn,Os as xt,$i as y,kr as yn,Ns as yt,Pl as z,za as zn,vs as zt};
15
+ `}});if(Wt(e))return l.createElement(pt,{title:"Unhandled Thrown Response!"},l.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),n);let o;if(e instanceof Error)o=e;else{let s=e==null?"Unknown Error":typeof e=="object"&&"toString"in e?e.toString():JSON.stringify(e);o=new Error(s)}return l.createElement(pt,{title:"Application Error!",isOutsideRemixApp:t},l.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),l.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},o.stack),n)}a(Lo,"RemixRootDefaultErrorBoundary");function pt({title:e,renderScripts:t,isOutsideRemixApp:r,children:n}){let{routeModules:o}=K();return o.root?.Layout&&!r?n:l.createElement("html",{lang:"en"},l.createElement("head",null,l.createElement("meta",{charSet:"utf-8"}),l.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),l.createElement("title",null,e)),l.createElement("body",null,l.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n,t?l.createElement(Po,null):null)))}a(pt,"BoundaryShell");var To=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{To&&(window.__reactRouterVersion="7.18.4")}catch{}function tl({basename:e,children:t,useTransitions:r,window:n}){let o=l.useRef();o.current==null&&(o.current=Xn({window:n,v5Compat:!0}));let s=o.current,[i,u]=l.useState({action:s.action,location:s.location}),c=l.useCallback(d=>{r===!1?u(d):l.startTransition(()=>u(d))},[r]);return l.useLayoutEffect(()=>s.listen(c),[s,c]),l.createElement(or,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:s,useTransitions:r})}a(tl,"BrowserRouter");function Oo({basename:e,children:t,history:r,useTransitions:n}){let[o,s]=l.useState({action:r.action,location:r.location}),i=l.useCallback(u=>{n===!1?s(u):l.startTransition(()=>s(u))},[n]);return l.useLayoutEffect(()=>r.listen(i),[r,i]),l.createElement(or,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:r,useTransitions:n})}a(Oo,"HistoryRouter");Oo.displayName="unstable_HistoryRouter";var me=l.forwardRef(a(function({onClick:t,discover:r="render",prefetch:n="none",relative:o,reloadDocument:s,replace:i,mask:u,state:c,target:d,to:m,preventScrollReset:f,viewTransition:g,defaultShouldRevalidate:b,...v},y){let{basename:p,navigator:x,useTransitions:w}=l.useContext(A),S=typeof m=="string"&&He.test(m),$=Qt(m,p);m=$.to;let E=ja(m,{relative:o}),_=L(),P=null;if(u){let z=Ie(u,[],_.mask?_.mask.pathname:"/",!0);p!=="/"&&(z.pathname=z.pathname==="/"?p:N([p,z.pathname])),P=x.createHref(z)}let[j,D,B]=Eo(n,v),J=Uo(m,{replace:i,mask:u,state:c,target:d,preventScrollReset:f,relative:o,viewTransition:g,defaultShouldRevalidate:b,useTransitions:w});function T(z){t&&t(z),z.defaultPrevented||J(z)}a(T,"handleClick");let q=!($.isExternal||s),U=l.createElement("a",{...v,...B,href:(q?P:void 0)||$.absoluteURL||E,onClick:q?T:t,ref:Mo(y,D),target:d,"data-discover":!S&&r==="render"?"true":void 0});return j&&!S?l.createElement(l.Fragment,null,U,l.createElement(Co,{page:E})):U},"LinkWithRef"));me.displayName="Link";var ur=l.forwardRef(a(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:o=!1,style:s,to:i,viewTransition:u,children:c,...d},m){let f=fe(i,{relative:d.relative}),g=L(),b=l.useContext(de),{navigator:v,basename:y}=l.useContext(A),p=b!=null&&Qo(f)&&u===!0,x=v.encodeLocation?v.encodeLocation(f).pathname:f.pathname,w=g.pathname,S=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;r||(w=w.toLowerCase(),S=S?S.toLowerCase():null,x=x.toLowerCase()),S&&y&&(S=F(S,y)||S);const $=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let E=w===x||!o&&w.startsWith(x)&&w.charAt($)==="/",_=S!=null&&(S===x||!o&&S.startsWith(x)&&S.charAt(x.length)==="/"),P={isActive:E,isPending:_,isTransitioning:p},j=E?t:void 0,D;typeof n=="function"?D=n(P):D=[n,E?"active":null,_?"pending":null,p?"transitioning":null].filter(Boolean).join(" ");let B=typeof s=="function"?s(P):s;return l.createElement(me,{...d,"aria-current":j,className:D,ref:m,style:B,to:i,viewTransition:u},typeof c=="function"?c(P):c)},"NavLinkWithRef"));ur.displayName="NavLink";var jo=l.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:o,state:s,method:i=ve,action:u,onSubmit:c,relative:d,preventScrollReset:m,viewTransition:f,defaultShouldRevalidate:g,...b},v)=>{let{useTransitions:y}=l.useContext(A),p=qo(),x=Ho(u,{relative:d}),w=i.toLowerCase()==="get"?"get":"post",S=typeof u=="string"&&He.test(u),$=a(E=>{if(c&&c(E),E.defaultPrevented)return;E.preventDefault();let _=E.nativeEvent.submitter,P=_?.getAttribute("formmethod")||i,j=a(()=>p(_||E.currentTarget,{fetcherKey:t,method:P,navigate:r,replace:o,state:s,relative:d,preventScrollReset:m,viewTransition:f,defaultShouldRevalidate:g}),"doSubmit");y&&r!==!1?l.startTransition(()=>j()):j()},"submitHandler");return l.createElement("form",{ref:v,method:w,action:x,onSubmit:n?c:$,...b,"data-discover":!S&&e==="render"?"true":void 0})});jo.displayName="Form";function No({getKey:e,storageKey:t,...r}){let n=l.useContext(_e),{basename:o}=l.useContext(A),s=L(),i=nr();Wo({getKey:e,storageKey:t});let u=l.useMemo(()=>{if(!n||!e)return null;let d=ze(s,i,o,e);return d!==s.key?d:null},[]);if(!n||n.isSpaMode)return null;let c=((d,m)=>{if(!window.history.state||!window.history.state.key){let f=Math.random().toString(32).slice(2);window.history.replaceState({key:f},"")}try{let f=JSON.parse(sessionStorage.getItem(d)||"{}")[m||window.history.state.key];typeof f=="number"&&window.scrollTo(0,f)}catch{sessionStorage.removeItem(d)}}).toString();return r.nonce==null&&n?.nonce&&(r.nonce=n.nonce),l.createElement("script",{...r,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${mt(JSON.stringify(t||Ue))}, ${mt(JSON.stringify(u))})`}})}a(No,"ScrollRestoration");No.displayName="ScrollRestoration";function cr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}a(cr,"getDataRouterConsoleError2");function Ze(e){let t=l.useContext(te);return C(t,cr(e)),t}a(Ze,"useDataRouterContext3");function Bo(e){let t=l.useContext(de);return C(t,cr(e)),t}a(Bo,"useDataRouterState2");function Uo(e,{target:t,replace:r,mask:n,state:o,preventScrollReset:s,relative:i,viewTransition:u,defaultShouldRevalidate:c,useTransitions:d}={}){let m=Ee(),f=L(),g=fe(e,{relative:i});return l.useCallback(b=>{if(lo(b,t)){b.preventDefault();let v=r!==void 0?r:Q(f)===Q(g),y=a(()=>m(e,{replace:v,mask:n,state:o,preventScrollReset:s,relative:i,viewTransition:u,defaultShouldRevalidate:c}),"doNavigate");d?l.startTransition(()=>y()):y()}},[f,m,g,r,n,o,t,e,s,i,u,c,d])}a(Uo,"useLinkClickHandler");function rl(e){M(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=l.useRef(Be(e)),r=l.useRef(!1),n=L(),o=l.useMemo(()=>uo(n.search,r.current?null:t.current),[n.search]),s=Ee();return[o,l.useCallback((i,u)=>{const c=Be(typeof i=="function"?i(new URLSearchParams(o)):i);r.current=!0,s("?"+c,u)},[s,o])]}a(rl,"useSearchParams");var zo=0,Fo=a(()=>`__${String(++zo)}__`,"getUniqueFetcherId");function qo(){let{router:e}=Ze("useSubmit"),{basename:t}=l.useContext(A),r=Ga(),n=e.fetch,o=e.navigate;return l.useCallback(async(s,i={})=>{let{action:u,method:c,encType:d,formData:m,body:f}=mo(s,t);if(i.navigate===!1){let g=i.fetcherKey||Fo();await n(g,r,i.action||u,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:m,body:f,formMethod:i.method||c,formEncType:i.encType||d,flushSync:i.flushSync})}else await o(i.action||u,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:m,body:f,formMethod:i.method||c,formEncType:i.encType||d,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[n,o,t,r])}a(qo,"useSubmit");function Ho(e,{relative:t}={}){let{basename:r}=l.useContext(A),n=l.useContext(O);C(n,"useFormAction must be used inside a RouteContext");let[o]=n.matches.slice(-1),s={...fe(e||".",{relative:t})},i=L();if(e==null){s.search=i.search;let u=new URLSearchParams(s.search),c=u.getAll("index");if(c.some(d=>d==="")){u.delete("index"),c.filter(m=>m).forEach(m=>u.append("index",m));let d=u.toString();s.search=d?`?${d}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:N([r,s.pathname])),Q(s)}a(Ho,"useFormAction");var Ue="react-router-scroll-positions",ge={};function ze(e,t,r,n){let o=null;return n&&(r!=="/"?o=n({...e,pathname:F(e.pathname,r)||e.pathname},t):o=n(e,t)),o==null&&(o=e.key),o}a(ze,"getScrollRestorationKey");function Wo({getKey:e,storageKey:t}={}){let{router:r}=Ze("useScrollRestoration"),{restoreScrollPosition:n,preventScrollReset:o}=Bo("useScrollRestoration"),{basename:s}=l.useContext(A),i=L(),u=nr(),c=Ya();l.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),Vo(l.useCallback(()=>{if(c.state==="idle"){let d=ze(i,u,s,e);ge[d]=window.scrollY}try{sessionStorage.setItem(t||Ue,JSON.stringify(ge))}catch(d){M(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${d}).`)}window.history.scrollRestoration="auto"},[c.state,e,s,i,u,t])),typeof document<"u"&&(l.useLayoutEffect(()=>{try{let d=sessionStorage.getItem(t||Ue);d&&(ge=JSON.parse(d))}catch{}},[t]),l.useLayoutEffect(()=>{let d=r?.enableScrollRestoration(ge,()=>window.scrollY,e?(m,f)=>ze(m,f,s,e):void 0);return()=>d&&d()},[r,s,e]),l.useLayoutEffect(()=>{if(n!==!1){if(typeof n=="number"){window.scrollTo(0,n);return}try{if(i.hash){let d=document.getElementById(decodeURIComponent(i.hash.slice(1)));if(d){d.scrollIntoView();return}}}catch{M(!1,`"${i.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}o!==!0&&window.scrollTo(0,0)}},[i,n,o]))}a(Wo,"useScrollRestoration");function nl(e,t){let{capture:r}=t||{};l.useEffect(()=>{let n=r!=null?{capture:r}:void 0;return window.addEventListener("beforeunload",e,n),()=>{window.removeEventListener("beforeunload",e,n)}},[e,r])}a(nl,"useBeforeUnload");function Vo(e,t){let{capture:r}=t||{};l.useEffect(()=>{let n=r!=null?{capture:r}:void 0;return window.addEventListener("pagehide",e,n),()=>{window.removeEventListener("pagehide",e,n)}},[e,r])}a(Vo,"usePageHide");function Qo(e,{relative:t}={}){let r=l.useContext(Yt);C(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Ze("useViewTransitionState"),o=fe(e,{relative:t});if(!r.isTransitioning)return!1;let s=F(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=F(r.nextLocation.pathname,n)||r.nextLocation.pathname;return ke(o.pathname,i)!=null||ke(o.pathname,s)!=null}a(Qo,"useViewTransitionState");var gt=60,Fe=3600,we=24*Fe,yt=7*we,vt=30*we;function Ko(e){const t=Date.now(),r=new Date(e).getTime(),n=Math.round((t-r)/1e3);return n<gt?"just now":n<Fe?`${Math.floor(n/gt)}m ago`:n<we?`${Math.floor(n/Fe)}h ago`:n<yt?`${Math.floor(n/we)}d ago`:n<vt?`${Math.floor(n/yt)}w ago`:`${Math.floor(n/vt)}mo ago`}a(Ko,"timeAgo");var Jo=[{label:"My work",views:[{key:"mine",label:"Mine",surface:"inbox",inboxTab:"mine",hint:"Assigned to you or waiting on you"},{key:"unread",label:"Unread",surface:"inbox",inboxTab:"unread",hint:"Tasks you touched with new activity"},{key:"blocked",label:"Blocked",surface:"inbox",inboxTab:"blocked",hint:"Blocked tasks, grouped by blocker"},{key:"recent",label:"Recent",surface:"inbox",inboxTab:"recent",hint:"Everything you touched lately"},{key:"everything",label:"Everything",surface:"inbox",inboxTab:"all",hint:"Tasks, approvals, failed runs and join requests"}]},{label:"Organization",views:[{key:"all",label:"All tasks",surface:"issues",statuses:[],hint:"Every task in the organization"},{key:"active",label:"Active",surface:"issues",statuses:["todo","in_progress","in_review","blocked"],hint:"Open tasks, running or not"},{key:"backlog",label:"Backlog",surface:"issues",statuses:["backlog"],hint:"Not started yet"},{key:"done",label:"Done",surface:"issues",statuses:["done","cancelled"],hint:"Completed and cancelled"}]}],dr=new Map(Jo.flatMap(e=>e.views.map(t=>[t.key,t]))),fr="mine",Go="view",Yo="paperclip:tasks:last-view";function Zo(e){return typeof e=="string"&&dr.has(e)}a(Zo,"isTaskViewKey");function mr(e){return dr.get(e)}a(mr,"taskView");function Xe(e){return Zo(e)?e:null}a(Xe,"normalizeTaskViewKey");var bt={mine:"mine",unread:"unread",blocked:"blocked",recent:"recent",all:"everything"};function al(e){return e&&e in bt?bt[e]:fr}a(al,"taskViewForInboxTab");function ol(){try{return Xe(window.localStorage.getItem("paperclip:tasks:last-view"))??"mine"}catch{return fr}}a(ol,"loadLastTaskView");function sl(e){try{window.localStorage.setItem(Yo,e)}catch{}}a(sl,"saveLastTaskView");var il=["assignee","workspace","participantAgentId","q"];function ll(e,t,r){const n=Xe(e);return t&&(!n||mr(n).surface==="inbox")?"all":n??r}a(ll,"resolveInitialTaskView");var hr="from",pr="fromHref",gr="paperclip:issue-detail-breadcrumb:";function yr(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.label=="string"&&typeof t.href=="string"}a(yr,"isIssueDetailBreadcrumb");function vr(e){return e==="issues"||e==="inbox"}a(vr,"isIssueDetailSource");function br(e){if(typeof e!="object"||e===null)return!1;const t=e,r=t.originKind===void 0||typeof t.originKind=="string",n=t.originId===void 0||t.originId===null||typeof t.originId=="string",o=t.blockerAttention===void 0||typeof t.blockerAttention=="object"&&t.blockerAttention!==null;return typeof t.id=="string"&&(t.identifier===null||typeof t.identifier=="string")&&typeof t.title=="string"&&typeof t.status=="string"&&o&&typeof t.priority=="string"&&(t.projectId===null||typeof t.projectId=="string")&&(t.projectName===null||typeof t.projectName=="string")&&r&&n}a(br,"isIssueDetailHeaderSeed");function Xo(e){return{id:e.id,identifier:e.identifier??null,title:e.title,status:e.status,blockerAttention:e.blockerAttention,priority:e.priority,projectId:e.projectId??null,projectName:e.project?.name??null,originKind:e.originKind,originId:e.originId??null}}a(Xo,"createIssueDetailHeaderSeed");function kr(e,t){const r=Xo(t);return typeof e!="object"||e===null?{issueDetailHeaderSeed:r}:{...e,issueDetailHeaderSeed:r}}a(kr,"withIssueDetailHeaderSeed");function es(e){if(typeof e!="object"||e===null)return null;const t=e.issueDetailHeaderSeed;return br(t)?t:null}a(es,"readIssueDetailHeaderSeed");function ts(e){if(!e)return null;const t=new URLSearchParams(e).get(hr);return vr(t)?t:null}a(ts,"readIssueDetailSourceFromSearch");function rs(e){if(!e)return null;const t=new URLSearchParams(e).get(pr);return t&&t.startsWith("/")?t:null}a(rs,"readIssueDetailBreadcrumbHrefFromSearch");function ns(e){const t=e.slice(e.indexOf("?")+1);if(!e.includes("?"))return!1;const r=new URLSearchParams(t).get(Go),n=Xe(r);return n!==null&&mr(n).surface==="inbox"}a(ns,"isInboxBackedTaskViewHref");function xr(e,t){return vr(e?.issueDetailSource)?e.issueDetailSource:t?t.href.includes("/inbox")||ns(t.href)||t.label==="Inbox"?"inbox":t.label==="Tasks"||t.href.includes("/issues")?"issues":null:null}a(xr,"inferIssueDetailSource");function kt(e){return e==="inbox"?{label:"Inbox",href:"/inbox"}:{label:"Tasks",href:"/issues"}}a(kt,"breadcrumbForSource");function ul(e,t,r){return{issueDetailBreadcrumb:{label:e,href:t},issueDetailSource:r}}a(ul,"createIssueDetailLocationState");function cl(e){return typeof e!="object"||e===null?{issueDetailInboxQuickArchiveArmed:!0}:{...e,issueDetailInboxQuickArchiveArmed:!0}}a(cl,"armIssueDetailInboxQuickArchive");function as(e){if(typeof window>"u"||!window.sessionStorage)return null;const t=window.sessionStorage.getItem(`${gr}${e}`);if(!t)return null;try{const r=JSON.parse(t),n=yr(r.issueDetailBreadcrumb)?r.issueDetailBreadcrumb:null,o=xr(r,n);if(!n||!o)return null;const s=br(r.issueDetailHeaderSeed)?r.issueDetailHeaderSeed:void 0;return{issueDetailBreadcrumb:n,issueDetailSource:o,issueDetailInboxQuickArchiveArmed:r.issueDetailInboxQuickArchiveArmed===!0,issueDetailHeaderSeed:s}}catch{return null}}a(as,"readStoredIssueDetailLocationState");function wr(e,t){if(typeof e=="object"&&e!==null){const o=e.issueDetailBreadcrumb;if(yr(o)){const s=xr(e,o);if(!s)return null;const i=es(e)??void 0;return{issueDetailBreadcrumb:o,issueDetailSource:s,issueDetailInboxQuickArchiveArmed:e.issueDetailInboxQuickArchiveArmed===!0,issueDetailHeaderSeed:i}}}const r=ts(t),n=rs(t);return r?{issueDetailBreadcrumb:n?{...kt(r),href:n}:kt(r),issueDetailSource:r,issueDetailInboxQuickArchiveArmed:!1}:null}a(wr,"normalizeIssueDetailLocationState");function dl(e,t,r){if(typeof window>"u"||!window.sessionStorage)return;const n=wr(t,r);n&&window.sessionStorage.setItem(`${gr}${e}`,JSON.stringify(n))}a(dl,"rememberIssueDetailLocationState");function os(e){return`/issues/${e}`}a(os,"createIssueDetailPath");function fl(e){if(!e)return!1;const t=new URLSearchParams(e);return t.has(hr)||t.has(pr)}a(fl,"hasLegacyIssueDetailQuery");function ss(e,t,r){const n=wr(t,r);return n||(e?as(e):null)}a(ss,"readIssueDetailLocationState");function ml(e,t,r){return ss(e,t,r)?.issueDetailBreadcrumb??null}a(ml,"readIssueDetailBreadcrumb");var xt=class extends Error{static{a(this,"CommentSubmissionUnknownError")}constructor(){super("We couldn’t confirm whether this comment was saved. Review the conversation before starting another draft."),this.name="CommentSubmissionUnknownError"}};function wt(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e,r=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;return typeof t.id=="string"&&r.test(t.id)&&typeof t.issueId=="string"&&r.test(t.issueId)&&typeof t.body=="string"}a(wt,"hasCommentReceipt");async function St(e,t){try{const r=await e;if(!t(r))throw new xt;return r}catch(r){throw r instanceof Qn&&r.status<500?r:new xt}}a(St,"confirmedCommentResponse");function It(e){const t=new URLSearchParams;return e?.attention&&t.set("attention",e.attention),e?.status&&t.set("status",e.status),e?.priority&&t.set("priority",e.priority),e?.projectId&&t.set("projectId",e.projectId),e?.parentId&&t.set("parentId",e.parentId),e?.assigneeAgentId&&t.set("assigneeAgentId",e.assigneeAgentId),e?.participantAgentId&&t.set("participantAgentId",e.participantAgentId),e?.assigneeUserId&&t.set("assigneeUserId",e.assigneeUserId),e?.touchedByUserId&&t.set("touchedByUserId",e.touchedByUserId),e?.inboxArchivedByUserId&&t.set("inboxArchivedByUserId",e.inboxArchivedByUserId),e?.unreadForUserId&&t.set("unreadForUserId",e.unreadForUserId),e?.labelId&&t.set("labelId",e.labelId),e?.createdByAgentId&&t.set("createdByAgentId",e.createdByAgentId),e?.createdByUserId&&t.set("createdByUserId",e.createdByUserId),e?.updatedSince&&t.set("updatedSince",e.updatedSince),e?.workspaceId&&t.set("workspaceId",e.workspaceId),e?.executionWorkspaceId&&t.set("executionWorkspaceId",e.executionWorkspaceId),e?.originKind&&t.set("originKind",e.originKind),e?.originKindPrefix&&t.set("originKindPrefix",e.originKindPrefix),e?.originId&&t.set("originId",e.originId),e?.descendantOf&&t.set("descendantOf",e.descendantOf),e?.createdFromIssueId&&t.set("createdFromIssueId",e.createdFromIssueId),e?.includeRoutineExecutions&&t.set("includeRoutineExecutions","true"),e?.includeBlockedBy&&t.set("includeBlockedBy","true"),e?.includeBlockedInboxAttention&&t.set("includeBlockedInboxAttention","true"),e?.includeLiveDescendantSummary&&t.set("includeLiveDescendantSummary","true"),e?.hasPlanDocument!==void 0&&t.set("hasPlanDocument",e.hasPlanDocument?"true":"false"),e?.q&&t.set("q",e.q),e?.limit&&t.set("limit",String(e.limit)),e?.offset!==void 0&&t.set("offset",String(e.offset)),e?.sortField&&t.set("sortField",e.sortField),e?.sortDir&&t.set("sortDir",e.sortDir),e?.afterId&&t.set("afterId",e.afterId),t}a(It,"issueListSearchParams");var Y={listAll:a(async(e,t,r)=>{const o=new Map;let s;for(;;){const i=await Y.list(e,{...t,limit:500,sortField:"id",sortDir:"asc",afterId:s},r);for(const u of i)o.set(u.id,u);if(i.length<500)return[...o.values()];s=i[i.length-1].id}},"listAll"),list:a((e,t,r)=>{const n=It(t).toString(),o=`/companies/${e}/issues${n?`?${n}`:""}`;return r?h.get(o,r):h.get(o)},"list"),listCompact:a((e,t,r)=>{const n=It(t);n.set("view","compact");const o=`/companies/${e}/issues?${n.toString()}`;return r?h.get(o,r):h.get(o)},"listCompact"),count:a((e,t)=>{const r=new URLSearchParams;return r.set("attention",t.attention),t.status&&r.set("status",t.status),t.assigneeAgentId&&r.set("assigneeAgentId",t.assigneeAgentId),t.assigneeUserId&&r.set("assigneeUserId",t.assigneeUserId),t.projectId&&r.set("projectId",t.projectId),t.labelId&&r.set("labelId",t.labelId),t.q&&r.set("q",t.q),h.get(`/companies/${e}/issues/count?${r.toString()}`)},"count"),listLabels:a(e=>h.get(`/companies/${e}/labels`),"listLabels"),createLabel:a((e,t)=>h.post(`/companies/${e}/labels`,t),"createLabel"),deleteLabel:a(e=>h.delete(`/labels/${e}`),"deleteLabel"),get:a((e,t)=>t?h.get(`/issues/${e}`,t):h.get(`/issues/${e}`),"get"),refs:a((e,t)=>h.get(`/companies/${e}/issues/refs?ids=${encodeURIComponent(t.join(","))}`),"refs"),getRunnerGoal:a((e,t)=>{const r=t?`?agentId=${encodeURIComponent(t)}`:"";return h.get(`/issues/${e}/runner-goal${r}`)},"getRunnerGoal"),actOnRunnerGoal:a((e,t)=>h.post(`/issues/${e}/runner-goal/actions`,t),"actOnRunnerGoal"),getModelOverride:a(e=>h.get(`/issues/${e}/model-override`),"getModelOverride"),setModelOverride:a((e,t)=>h.put(`/issues/${e}/model-override`,t),"setModelOverride"),getWatchdog:a(e=>h.get(`/issues/${e}/watchdog`),"getWatchdog"),getAgentTodo:a(e=>h.get(`/issues/${e}/agent-todo`),"getAgentTodo"),upsertWatchdog:a((e,t)=>h.put(`/issues/${e}/watchdog`,t),"upsertWatchdog"),deleteWatchdog:a(e=>h.delete(`/issues/${e}/watchdog`),"deleteWatchdog"),markRead:a(e=>h.post(`/issues/${e}/read`,{}),"markRead"),markUnread:a(e=>h.delete(`/issues/${e}/read`),"markUnread"),archiveFromInbox:a(e=>h.post(`/issues/${e}/inbox-archive`,{}),"archiveFromInbox"),unarchiveFromInbox:a(e=>h.delete(`/issues/${e}/inbox-archive`),"unarchiveFromInbox"),setTitle:a((e,t)=>h.put(`/issues/${e}/title`,t),"setTitle"),create:a((e,t)=>h.post(`/companies/${e}/issues`,t),"create"),update:a((e,t)=>{const r=h.patch(`/issues/${e}`,t);return typeof t.comment=="string"?St(r,n=>wt(n?.comment)):r},"update"),decideStalledReview:a((e,t)=>h.post(`/issues/${e}/stalled-review-decision`,t),"decideStalledReview"),retryWorkspaceExport:a((e,t)=>h.post(`/issues/${e}/recovery-actions/retry-workspace-export`,t),"retryWorkspaceExport"),resolveRecoveryAction:a((e,t)=>h.post(`/issues/${e}/recovery-actions/resolve`,t),"resolveRecoveryAction"),previewTreeControl:a((e,t)=>h.post(`/issues/${e}/tree-control/preview`,t),"previewTreeControl"),createTreeHold:a((e,t)=>h.post(`/issues/${e}/tree-holds`,t),"createTreeHold"),getTreeHold:a((e,t)=>h.get(`/issues/${e}/tree-holds/${t}`),"getTreeHold"),listTreeHolds:a((e,t)=>{const r=new URLSearchParams;t?.status&&r.set("status",t.status),t?.mode&&r.set("mode",t.mode),t?.includeMembers&&r.set("includeMembers","true");const n=r.toString();return h.get(`/issues/${e}/tree-holds${n?`?${n}`:""}`)},"listTreeHolds"),getTreeControlState:a(e=>h.get(`/issues/${e}/tree-control/state`),"getTreeControlState"),releaseTreeHold:a((e,t,r)=>h.post(`/issues/${e}/tree-holds/${t}/release`,r),"releaseTreeHold"),checkMonitorNow:a(e=>h.post(`/issues/${e}/monitor/check-now`,{}),"checkMonitorNow"),retryScheduledRetryNow:a(e=>h.post(`/issues/${e}/scheduled-retry/retry-now`,{}),"retryScheduledRetryNow"),remove:a(e=>h.delete(`/issues/${e}`),"remove"),checkout:a((e,t)=>h.post(`/issues/${e}/checkout`,{agentId:t,expectedStatuses:["todo","backlog","blocked","in_review"]}),"checkout"),release:a(e=>h.post(`/issues/${e}/release`,{}),"release"),listComments:a((e,t)=>{const r=new URLSearchParams;t?.after&&r.set("after",t.after),t?.order&&r.set("order",t.order),t?.limit&&r.set("limit",String(t.limit));const n=r.toString();return h.get(`/issues/${e}/comments${n?`?${n}`:""}`)},"listComments"),getQueuedComments:a(e=>h.get(`/issues/${e}/queued-comments`),"getQueuedComments"),editQueuedComment:a((e,t,r)=>h.patch(`/issues/${e}/queued-comments/${t}`,r),"editQueuedComment"),reorderQueuedComments:a((e,t)=>h.put(`/issues/${e}/queued-comments/order`,t),"reorderQueuedComments"),interruptQueuedComments:a((e,t)=>h.post(`/issues/${e}/queued-comments/interrupt`,t),"interruptQueuedComments"),interruptLatestQueuedComments:a(async(e,t)=>{const r=await Y.getQueuedComments(e);if(!r.queueId||r.targetRunId&&r.targetRunId!==t)throw new Error("The queued messages changed. Refresh and try again.");return Y.interruptQueuedComments(e,{queueId:r.queueId,revision:r.revision,targetRunId:r.targetRunId})},"interruptLatestQueuedComments"),steerQueuedComment:a((e,t,r)=>h.post(`/issues/${e}/queued-comments/${t}/steer`,r),"steerQueuedComment"),discardQueuedComment:a((e,t,r)=>h.delete(`/issues/${e}/queued-comments/${t}`,r),"discardQueuedComment"),listInteractions:a(e=>h.get(`/issues/${e}/interactions`),"listInteractions"),listAcceptedPlanDecompositions:a(e=>h.get(`/issues/${e}/accepted-plan-decompositions`),"listAcceptedPlanDecompositions"),createInteraction:a((e,t)=>h.post(`/issues/${e}/interactions`,t),"createInteraction"),acceptInteraction:a((e,t,r)=>{const{note:n,...o}=r??{};return h.post(`/issues/${e}/interactions/${t}/accept`,n?.trim()?{...o,note:n}:o)},"acceptInteraction"),rejectInteraction:a((e,t,r,n)=>h.post(`/issues/${e}/interactions/${t}/reject`,{...r?{reason:r}:{},...n?.trim()?{note:n}:{}}),"rejectInteraction"),cancelInteraction:a((e,t,r)=>h.post(`/issues/${e}/interactions/${t}/cancel`,r?{reason:r}:{}),"cancelInteraction"),skipInteraction:a((e,t,r)=>h.post(`/issues/${e}/interactions/${t}/skip`,r?{reason:r}:{}),"skipInteraction"),respondToInteraction:a((e,t,r)=>h.post(`/issues/${e}/interactions/${t}/respond`,r),"respondToInteraction"),submitInteractionVerdicts:a((e,t,r)=>h.post(`/issues/${e}/interactions/${t}/verdicts`,{verdicts:r}),"submitInteractionVerdicts"),getComment:a((e,t)=>h.get(`/issues/${e}/comments/${t}`),"getComment"),listFeedbackVotes:a(e=>h.get(`/issues/${e}/feedback-votes`),"listFeedbackVotes"),getCostSummary:a((e,t={})=>{const r=t.excludeRoot?"?excludeRoot=true":"";return h.get(`/issues/${e}/cost-summary${r}`)},"getCostSummary"),listFeedbackTraces:a((e,t)=>{const r=new URLSearchParams;for(const[o,s]of Object.entries(t??{}))s!==void 0&&r.set(o,String(s));const n=r.toString();return h.get(`/issues/${e}/feedback-traces${n?`?${n}`:""}`)},"listFeedbackTraces"),upsertFeedbackVote:a((e,t)=>h.post(`/issues/${e}/feedback-votes`,t),"upsertFeedbackVote"),addComment:a((e,t,r,n,o,s,i)=>St(h.post(`/issues/${e}/comments`,{body:t,...s?{clientRequestId:s}:{},...r===void 0?{}:{reopen:r},...n===void 0?{}:{interrupt:n},...o?.length?{attachmentIds:o}:{},...i===void 0?{}:{deliver:i}}),wt),"addComment"),cancelComment:a((e,t)=>h.delete(`/issues/${e}/comments/${t}?mode=cancel`),"cancelComment"),deleteComment:a((e,t)=>h.delete(`/issues/${e}/comments/${t}`),"deleteComment"),listDocuments:a((e,t)=>h.get(`/issues/${e}/documents${t?.includeSystem?"?includeSystem=true":""}`),"listDocuments"),getDocument:a((e,t)=>h.get(`/issues/${e}/documents/${encodeURIComponent(t)}`),"getDocument"),getDocumentPdf:a((e,t)=>h.getBlob(`/issues/${e}/documents/${encodeURIComponent(t)}/pdf`),"getDocumentPdf"),upsertDocument:a((e,t,r)=>h.put(`/issues/${e}/documents/${encodeURIComponent(t)}`,r),"upsertDocument"),lockDocument:a((e,t)=>h.post(`/issues/${e}/documents/${encodeURIComponent(t)}/lock`,{}),"lockDocument"),unlockDocument:a((e,t)=>h.post(`/issues/${e}/documents/${encodeURIComponent(t)}/unlock`,{}),"unlockDocument"),listDocumentRevisions:a((e,t)=>h.get(`/issues/${e}/documents/${encodeURIComponent(t)}/revisions`),"listDocumentRevisions"),restoreDocumentRevision:a((e,t,r)=>h.post(`/issues/${e}/documents/${encodeURIComponent(t)}/revisions/${r}/restore`,{}),"restoreDocumentRevision"),deleteDocument:a((e,t)=>h.delete(`/issues/${e}/documents/${encodeURIComponent(t)}`),"deleteDocument"),listAttachments:a(e=>h.get(`/issues/${e}/attachments`),"listAttachments"),uploadAttachment:a((e,t,r,n)=>{const o=qn(r);if(o)return Promise.reject(o);const s=new FormData;return s.append("file",r),n&&s.append("issueCommentId",n),h.postForm(`/companies/${e}/issues/${t}/attachments`,s)},"uploadAttachment"),deleteAttachment:a(e=>h.delete(`/attachments/${e}`),"deleteAttachment"),privacyConstraints:a(e=>h.get(`/issues/${e}/privacy-constraints`),"privacyConstraints"),listAccessGrants:a((e,t)=>t?h.get(`/issues/${e}/access-grants`,t):h.get(`/issues/${e}/access-grants`),"listAccessGrants"),createAccessGrant:a((e,t)=>h.post(`/issues/${e}/access-grants`,t),"createAccessGrant"),revokeAccessGrant:a((e,t)=>h.post(`/issues/${e}/access-grants/${t}/revoke`,{}),"revokeAccessGrant"),setVisibility:a((e,t)=>h.patch(`/issues/${e}`,{visibility:t}),"setVisibility"),listApprovals:a(e=>h.get(`/issues/${e}/approvals`),"listApprovals"),linkApproval:a((e,t)=>h.post(`/issues/${e}/approvals`,{approvalId:t}),"linkApproval"),unlinkApproval:a((e,t)=>h.delete(`/issues/${e}/approvals/${t}`),"unlinkApproval"),listWorkProducts:a((e,t)=>{const r=`/issues/${e}/work-products${t?.refreshPullRequests?"?refreshPullRequests=true":""}`;return t?.fresh&&Nn(r),h.get(r,{signal:t?.signal})},"listWorkProducts"),ensureWorkProductReviewDocument:a((e,t)=>h.post(`/issues/${e}/work-products/${t}/review-document`,{}),"ensureWorkProductReviewDocument"),createWorkProduct:a((e,t)=>h.post(`/issues/${e}/work-products`,t),"createWorkProduct"),updateWorkProduct:a((e,t)=>h.patch(`/work-products/${e}`,t),"updateWorkProduct"),deleteWorkProduct:a(e=>h.delete(`/work-products/${e}`),"deleteWorkProduct")};function X(e){return new Date(e).getTime()}a(X,"toTimestamp");function is(){const e=globalThis.crypto?.randomUUID?.();return e?`optimistic-${e}`:`optimistic-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}a(is,"createOptimisticCommentId");function et(e){return[...e].sort((t,r)=>{const n=X(t.createdAt)-X(r.createdAt);return n!==0?n:t.id.localeCompare(r.id)})}a(et,"sortIssueComments");function Et(e){return et(e).reverse()}a(Et,"sortIssueCommentsDesc");function hl(e){const t=new Date,r=is();return{id:r,clientId:r,companyId:e.companyId,issueId:e.issueId,authorType:"user",authorAgentId:null,authorUserId:e.authorUserId,body:e.body,presentation:null,metadata:null,clientStatus:e.clientStatus??"pending",queueTargetRunId:e.queueTargetRunId??null,createdAt:t,updatedAt:t}}a(hl,"createOptimisticIssueComment");function pl(e){return e.runId||e.interruptedRunId||e.comment.id&&(e.comment.id===e.activeRunWakeCommentId||e.comment.id===e.activeRunCommentId)||e.comment.authorAgentId&&e.activeRunAgentId&&e.comment.authorAgentId===e.activeRunAgentId?!1:e.comment.clientStatus==="queued"?!0:e.activeRunStartedAt?X(e.comment.createdAt)>=X(e.activeRunStartedAt):!1}a(pl,"isQueuedIssueComment");function gl(e,t){const r=t.queuedTargetRunId??null;return!r||!t.targetRunIsLive||t.runningRunId&&t.runningRunId!==r?e:{...e,clientStatus:"queued",queueState:"queued",queueTargetRunId:r}}a(gl,"applyLocalQueuedIssueCommentState");function yl(e,t){const r=e??[],n=[...r],o=new Set(n.map(i=>i.id)),s=new Set;for(const i of t){if(o.has(i.id))continue;const u=r.find(c=>!s.has(c.id)&&c.issueId===i.issueId&&c.authorType===i.authorType&&c.authorUserId===i.authorUserId&&c.body===i.body&&Math.abs(X(c.createdAt)-X(i.createdAt))<=6e4);if(u){s.add(u.id);const c={...u,clientId:i.clientId};n[n.findIndex(d=>d.id===u.id)]=c;continue}n.push(i)}return et(n)}a(yl,"mergeIssueComments");function vl(e,t){const r=e.findIndex(n=>n.clientId===t);return r===-1?{comments:e,comment:null}:{comments:e.filter(n=>n.clientId!==t),comment:e[r]??null}}a(vl,"takeOptimisticIssueComment");function bl(e){return et((e??[]).flatMap(t=>t))}a(bl,"flattenIssueCommentPages");function ls(e,t){if(!(!e||e.length<t))return e[e.length-1]?.id}a(ls,"getNextIssueCommentPageParam");function Rt(e,t){if(!(!e||e.length<t))return e[e.length-1]?.id}a(Rt,"getNextPageCursor");async function kl(e){const t=(e.pages??[]).map(i=>[...i]),r=e.pageParams?[...e.pageParams].slice(0,t.length):t.map(()=>null);for(;r.length<t.length;)r.push(null);if(e.pageSize<=0)return{pages:t,pageParams:r};let n=Rt(t[t.length-1],e.pageSize);const o=Math.max(0,e.maxPages??Number.POSITIVE_INFINITY),s=new Set;for(;n&&!s.has(n)&&s.size<o;){s.add(n);const i=[...await e.fetchPage(n)];t.push(i),r.push(n),n=Rt(i,e.pageSize)}return{pages:t,pageParams:r}}a(kl,"loadRemainingIssueCommentPages");function xl(e){return e.activeDetailTab!=="chat"||!e.hasOlderComments||e.initialPageLoading||e.olderPageLoading||e.loadedCommentCount===0?!1:e.loadedCommentCount<e.autoLoadLimit}a(xl,"shouldAutoloadOlderIssueComments");function wl(e,t){if(!e)return e;const r={...e};return t.reopen===!0&&(e.status==="done"||e.status==="cancelled"||e.status==="blocked")&&(r.status="todo"),t.reassignment&&(r.assigneeAgentId=t.reassignment.assigneeAgentId,r.assigneeUserId=t.reassignment.assigneeUserId),r}a(wl,"applyOptimisticIssueCommentUpdate");function us(e,t){if(!e)return e;const r={...e,updatedAt:new Date},n=a(s=>Object.prototype.hasOwnProperty.call(t,s),"hasOwn"),o=a(s=>{n(s)&&(r[s]=t[s])},"assign");if(o("status"),o("priority"),o("assigneeAgentId"),o("assigneeUserId"),o("projectId"),o("parentId"),o("projectWorkspaceId"),o("executionWorkspaceId"),o("executionWorkspacePreference"),o("executionWorkspaceSettings"),o("hiddenAt"),n("labelIds")&&Array.isArray(t.labelIds)){const s=t.labelIds.filter(i=>typeof i=="string");r.labelIds=s,e.labels&&(r.labels=e.labels.filter(i=>s.includes(i.id)))}if(n("blockedByIssueIds")&&Array.isArray(t.blockedByIssueIds)&&e.blockedBy){const s=new Set(t.blockedByIssueIds.filter(i=>typeof i=="string"));r.blockedBy=e.blockedBy.filter(i=>s.has(i.id))}return n("projectId")&&(r.project=e.project?.id===r.projectId?e.project:null),n("parentId")&&(r.ancestors=void 0),n("executionWorkspaceId")&&(r.currentExecutionWorkspace=e.currentExecutionWorkspace?.id===r.executionWorkspaceId?e.currentExecutionWorkspace:null),r}a(us,"applyOptimisticIssueFieldUpdate");function cs(e,t){const r=t instanceof Set?t:new Set(t);return r.has(e.id)||!!e.identifier&&r.has(e.identifier)}a(cs,"matchesIssueRef$1");function Sl(e,t,r){if(!e)return e;let n=!1;const o=e.map(s=>cs(s,t)?(n=!0,us(s,r)??s):s);return n?o:e}a(Sl,"applyOptimisticIssueFieldUpdateToCollection");function Il(e,t){if(!e||e.length===0)return[[t]];const r=e.map(n=>[...n]);for(let n=0;n<r.length;n+=1){const o=r[n].findIndex(s=>s.id===t.id);if(o!==-1)return r[n][o]=t,r[n]=Et(r[n]),r}return r[0]=Et([...r[0],t]),r}a(Il,"upsertIssueCommentInPages");function El(e,t){return!e||e.length===0?[]:e.map(r=>r.filter(n=>n.id!==t)).filter(r=>r.length>0)}a(El,"removeIssueCommentFromPages");var ds=["issues","detail"],Sr=6e4,fs=3e4;function ie(e){return typeof e=="string"&&e.length>0}a(ie,"isNonEmptyString");function Ir(e,t){const r=new Set;return ie(e)&&r.add(e),ie(t?.id)&&r.add(t.id),ie(t?.identifier)&&r.add(t.identifier),Array.from(r)}a(Ir,"collectIssueRefs");function ms(e,t){const r=t instanceof Set?t:new Set(t);return r.has(e.id)||!!e.identifier&&r.has(e.identifier)}a(ms,"matchesIssueRef");function Se(e){if(typeof e!="object"||e===null)return!1;const t=e;return ie(t.id)&&ie(t.companyId)&&typeof t.title=="string"&&typeof t.status=="string"&&typeof t.workMode=="string"&&typeof t.priority=="string"&&(t.projectId===null||typeof t.projectId=="string")&&(t.parentId===null||typeof t.parentId=="string")&&(t.identifier===null||typeof t.identifier=="string")&&(t.description===null||typeof t.description=="string")&&(t.assigneeAgentId===null||typeof t.assigneeAgentId=="string")&&(t.assigneeUserId===null||typeof t.assigneeUserId=="string")&&(t.executionRunId===null||typeof t.executionRunId=="string")&&(t.issueNumber===null||typeof t.issueNumber=="number")&&typeof t.requestDepth=="number"&&t.createdAt!=null&&t.updatedAt!=null}a(Se,"isCompleteIssueSnapshot");function Ct(e,t){return e?{...e,...t}:t}a(Ct,"mergeIssueSnapshots");function Er(e,t,r){const n=Ir(t,r);for(const o of n){const s=e.getQueryData(ce.issues.detail(o));if(Se(s))return s}return e.getQueriesData({queryKey:ds}).map(([,o])=>o).find(o=>Se(o)&&ms(o,n))}a(Er,"getCachedIssueDetail");function Rr(e,t,r){if(!Se(t))return t;const n=Ir(r?.issueRef,t),o=Ct(Er(e,r?.issueRef,t),t);for(const s of n)e.setQueryData(ce.issues.detail(s),i=>Ct(i,o));return o}a(Rr,"seedIssueDetailCache");async function Cr(e,t,r){return Rr(e,r?await Y.get(t,r):await Y.get(t),{issueRef:t})}a(Cr,"fetchIssueDetail");function hs(e,t,r){return{queryKey:ce.issues.detail(t),queryFn:a(({signal:n})=>Cr(e,t,{signal:n}),"queryFn"),placeholderData:Er(e,t,r?.placeholderIssue??void 0)}}a(hs,"getIssueDetailQueryOptions");function ps(e,t,r){return Se(r?.issue)&&Rr(e,r.issue,{issueRef:t}),e.prefetchQuery({queryKey:ce.issues.detail(t),queryFn:a(()=>Cr(e,t),"queryFn"),staleTime:Sr})}a(ps,"prefetchIssueDetail");function gs(e,t){return e.prefetchInfiniteQuery({queryKey:ce.issues.comments(t),queryFn:a(({pageParam:r})=>Y.listComments(t,{order:"desc",limit:50,...r?{after:r}:{}}),"queryFn"),initialPageParam:null,getNextPageParam:a(r=>ls(r,50),"getNextPageParam"),staleTime:fs,pages:1})}a(gs,"prefetchIssueComments");function ys(e,t,r){return Promise.all([ps(e,t,r),gs(e,r?.issue?.id??t)])}a(ys,"prefetchIssueDetailForNavigation");var I=Ot(Tn(),1);function vs({...e}){return(0,I.jsx)(Fn,{"data-slot":"popover",...e})}a(vs,"Popover");function bs({...e}){return(0,I.jsx)(Jn,{"data-slot":"popover-trigger",...e})}a(bs,"PopoverTrigger");function ks({className:e,align:t="center",sideOffset:r=4,disablePortal:n=!1,...o}){const s=(0,I.jsx)(jn,{"data-slot":"popover-content",align:t,sideOffset:r,className:V("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...o});return n?s:(0,I.jsx)(Bn,{children:s})}a(ks,"PopoverContent");function Rl({...e}){return(0,I.jsx)(Vn,{"data-slot":"popover-anchor",...e})}a(Rl,"PopoverAnchor");function Cl({className:e,...t}){return(0,I.jsx)("div",{"data-slot":"popover-title",className:V("font-medium",e),...t})}a(Cl,"PopoverTitle");function $l({className:e,...t}){return(0,I.jsx)("p",{"data-slot":"popover-description",className:V("text-muted-foreground",e),...t})}a($l,"PopoverDescription");var $r={name:"atom",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z",key:"1l2ple"}],["path",{d:"M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z",key:"1wam0m"}]]};$r.node;var xs=k($r),_r={name:"ban",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]};_r.node;var ws=k(_r),Dr={name:"box",size:24,node:[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]};Dr.node;var Ss=k(Dr),Ar={name:"brain",size:24,node:[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]};Ar.node;var Is=k(Ar),Pr={name:"briefcase",size:24,node:[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]};Pr.node;var Es=k(Pr),Mr={name:"bug",size:24,node:[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]};Mr.node;var Rs=k(Mr),Lr={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};Lr.node;var Cs=k(Lr),Tr={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};Tr.node;var Or=k(Tr),jr={name:"circle-dot",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]};jr.node;var $s=k(jr),Nr={name:"circle-minus",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["minus-circle"]};Nr.node;var $t=k(Nr),Br={name:"circle",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]};Br.node;var _t=k(Br),Ur={name:"code",size:24,node:[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]};Ur.node;var _s=k(Ur),zr={name:"cog",size:24,node:[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]]};zr.node;var Ds=k(zr),Fr={name:"compass",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]]};Fr.node;var As=k(Fr),qr={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};qr.node;var Ps=k(qr),Hr={name:"crown",size:24,node:[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]};Hr.node;var Ms=k(Hr),Wr={name:"database",size:24,node:[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]};Wr.node;var Ls=k(Wr),Vr={name:"file-code",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]};Vr.node;var Ts=k(Vr),Qr={name:"flame",size:24,node:[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]]};Qr.node;var Os=k(Qr),Kr={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};Kr.node;var js=k(Kr),Jr={name:"gem",size:24,node:[["path",{d:"M10.5 3 8 9l4 13 4-13-2.5-6",key:"b3dvk1"}],["path",{d:"M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z",key:"7w4byz"}],["path",{d:"M2 9h20",key:"16fsjt"}]]};Jr.node;var Ns=k(Jr),Gr={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};Gr.node;var Bs=k(Gr),Yr={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};Yr.node;var Us=k(Yr),Zr={name:"hammer",size:24,node:[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]]};Zr.node;var zs=k(Zr),Xr={name:"heart",size:24,node:[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]};Xr.node;var Fs=k(Xr),en={name:"hexagon",size:24,node:[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]]};en.node;var qs=k(en),tn={name:"layers",size:24,node:[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],aliases:["layers-3"]};tn.node;var Hs=k(tn),rn={name:"lightbulb",size:24,node:[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]};rn.node;var Ws=k(rn),nn={name:"lock",size:24,node:[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]};nn.node;var Vs=k(nn),an={name:"mail",size:24,node:[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]};an.node;var Qs=k(an),on={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};on.node;var Ks=k(on),sn={name:"package",size:24,node:[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]};sn.node;var Js=k(sn),ln={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};ln.node;var _l=k(ln),un={name:"puzzle",size:24,node:[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]};un.node;var Gs=k(un),cn={name:"radar",size:24,node:[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]};cn.node;var Ys=k(cn),dn={name:"rocket",size:24,node:[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]};dn.node;var Zs=k(dn),fn={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};fn.node;var Xs=k(fn),mn={name:"shield",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]};mn.node;var ei=k(mn),hn={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};hn.node;var ti=k(hn),pn={name:"star",size:24,node:[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]};pn.node;var ri=k(pn),gn={name:"target",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]};gn.node;var ni=k(gn),yn={name:"telescope",size:24,node:[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]]};yn.node;var ai=k(yn),vn={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};vn.node;var oi=k(vn),bn={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};bn.node;var si=k(bn),kn={name:"zap",size:24,node:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]]};kn.node;var ii=k(kn),Dl={backlog:"text-muted-foreground border-muted-foreground",todo:"text-amber-600 border-amber-600 dark:text-amber-400 dark:border-amber-400",in_progress:"text-blue-600 border-blue-600 dark:text-blue-400 dark:border-blue-400",in_review:"text-violet-600 border-violet-600 dark:text-violet-400 dark:border-violet-400",done:"text-green-600 border-green-600 dark:text-green-400 dark:border-green-400",cancelled:"text-neutral-500 border-neutral-500",blocked:"text-red-600 border-red-600 dark:text-red-400 dark:border-red-400"},Al="text-muted-foreground border-muted-foreground",Pl={backlog:"text-muted-foreground",todo:"text-amber-600 dark:text-amber-400",in_progress:"text-blue-600 dark:text-blue-400",in_review:"text-violet-600 dark:text-violet-400",done:"text-green-600 dark:text-green-400",cancelled:"text-neutral-500",blocked:"text-red-600 dark:text-red-400"},Ml="text-muted-foreground",ye={gray:"bg-[#F5F3F0] text-[#52585D] border-[#A8AEB2] dark:bg-[#6e696024] dark:text-[#9A958A] dark:border-[#9e958a73]",blue:"bg-[#DBEAFE] text-[#1D4ED8] border-[#2563EB] dark:bg-[#2563eb2e] dark:text-[#2563EB] dark:border-[#2563eb73]",amber:"bg-[#FEF3C7] text-[#B45309] border-[#F59E0B] dark:bg-[#f59e0b24] dark:text-[#F59E0B] dark:border-[#f59e0b73]",green:"bg-[#DCFCE7] text-[#188A3C] border-[#22C55E] dark:bg-[#22c55e1f] dark:text-[#22C55E] dark:border-[#22c55e73]",violet:"bg-[#EDE9FE] text-[#5B21B6] border-[#7C3AED] dark:bg-[#7c3aed2e] dark:text-[#7C3AED] dark:border-[#7c3aed73]",red:"bg-[#FEE2E2] text-[#991B1B] border-[#DC2626] dark:bg-[#dc26262e] dark:text-[#DC2626] dark:border-[#dc262673]"},Ll={active:`border ${ye.green}`,running:`border ${ye.blue}`,scheduled_retry:"bg-sky-100 text-sky-700 dark:bg-sky-900/50 dark:text-sky-300",paused:`border ${ye.amber}`,idle:`border ${ye.gray}`,archived:"bg-muted text-muted-foreground",planned:"bg-muted text-muted-foreground",achieved:"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300",completed:"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300",failed:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",timed_out:"bg-orange-100 text-orange-700 dark:bg-orange-900/50 dark:text-orange-300",succeeded:"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300",ok:"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300",warning:"bg-amber-100 text-amber-700 dark:bg-amber-900/50 dark:text-amber-300",error:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",info:"bg-sky-100 text-sky-700 dark:bg-sky-900/50 dark:text-sky-300",terminated:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",pending:"bg-yellow-100 text-yellow-700 dark:bg-yellow-900/50 dark:text-yellow-300",queued:"bg-yellow-100 text-yellow-700 dark:bg-yellow-900/50 dark:text-yellow-300",pending_approval:"bg-amber-100 text-amber-700 dark:bg-amber-900/50 dark:text-amber-300",revision_requested:"bg-amber-100 text-amber-700 dark:bg-amber-900/50 dark:text-amber-300",approved:"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300",rejected:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",draft:"bg-muted text-muted-foreground",backlog:"bg-muted text-muted-foreground",todo:"bg-amber-100 text-amber-700 dark:bg-amber-900/50 dark:text-amber-300",in_progress:"bg-blue-100 text-blue-700 dark:bg-blue-900/50 dark:text-blue-300",in_review:"bg-violet-100 text-violet-700 dark:bg-violet-900/50 dark:text-violet-300",blocked:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",done:"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300",cancelled:"bg-muted text-muted-foreground",allowed:"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300",denied:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",block:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300","require-approval":"bg-amber-100 text-amber-700 dark:bg-amber-900/50 dark:text-amber-300",redacted:"bg-violet-100 text-violet-700 dark:bg-violet-900/50 dark:text-violet-300","rate-limit":"bg-orange-100 text-orange-700 dark:bg-orange-900/50 dark:text-orange-300",deferred:"bg-sky-100 text-sky-700 dark:bg-sky-900/50 dark:text-sky-300",hidden:"bg-muted text-muted-foreground",quarantined:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300","runtime-error":"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",healthy:"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300",degraded:"bg-amber-100 text-amber-700 dark:bg-amber-900/50 dark:text-amber-300",unchecked:"bg-muted text-muted-foreground"},Tl="bg-muted text-muted-foreground",Ol="text-[#1D4ED8] dark:text-[#2563EB]",jl="bg-blue-500/10 border-blue-500/30 text-blue-600 dark:text-blue-400",Nl={info:"border-[#2563EB]/40 bg-[#DBEAFE]/50 text-[#1D4ED8] dark:border-[#2563eb59] dark:bg-[#2563eb14] dark:text-[#93C5FD]",warning:"border-[#F59E0B]/50 bg-[#FEF3C7]/60 text-[#B45309] dark:border-[#f59e0b59] dark:bg-[#f59e0b12] dark:text-[#F59E0B]",danger:"border-destructive/40 bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300"},Bl={idle:"--status-agent-idle",active:"--status-agent-idle",running:"--status-agent-running",paused:"--status-agent-paused",error:"--status-agent-error"},Ul="--status-agent-idle",zl={idle:"--status-task-backlog",backlog:"--status-task-backlog",todo:"--status-task-todo",in_progress:"--status-task-in_progress",in_review:"--status-task-in_review",done:"--status-task-done",blocked:"--status-task-blocked",cancelled:"--status-task-cancelled"},Fl="--status-task-backlog",li={idle:"--status-task-icon-backlog",backlog:"--status-task-icon-backlog",todo:"--status-task-icon-todo",in_progress:"--status-task-icon-in_progress",in_review:"--status-task-icon-in_review",done:"--status-task-icon-done",blocked:"--status-task-icon-blocked",cancelled:"--status-task-icon-cancelled",in_queue:"--status-task-icon-in_queue"};var ql={running:"bg-blue-400 animate-pulse",active:"bg-green-400",paused:"bg-yellow-400",idle:"bg-yellow-400",pending_approval:"bg-amber-400",error:"bg-red-400",archived:"bg-neutral-400"},Hl="bg-neutral-400",Wl={critical:"text-red-600 dark:text-red-400",high:"text-orange-600 dark:text-orange-400",medium:"text-yellow-600 dark:text-yellow-400",low:"text-blue-600 dark:text-blue-400"},Vl="text-yellow-600 dark:text-yellow-400",Ql={unknown:"text-muted-foreground border-muted-foreground",open:"text-blue-600 border-blue-600 dark:text-blue-400 dark:border-blue-400",waiting:"text-amber-600 border-amber-600 dark:text-amber-400 dark:border-amber-400",running:"text-blue-600 border-blue-600 dark:text-blue-400 dark:border-blue-400",succeeded:"text-green-600 border-green-600 dark:text-green-400 dark:border-green-400",merged:"text-violet-600 border-violet-600 dark:text-violet-400 dark:border-violet-400",failed:"text-red-600 border-red-600 dark:text-red-400 dark:border-red-400",blocked:"text-red-600 border-red-600 dark:text-red-400 dark:border-red-400",closed:"text-neutral-500 border-neutral-500",archived:"text-neutral-500 border-neutral-500",auth_required:"text-amber-600 border-amber-600 dark:text-amber-400 dark:border-amber-400",unreachable:"text-red-600 border-red-600 dark:text-red-400 dark:border-red-400"},Kl="text-muted-foreground border-muted-foreground",Jl={unknown:"bg-muted text-muted-foreground",open:"bg-blue-100 text-blue-700 dark:bg-blue-900/50 dark:text-blue-300",waiting:"bg-amber-100 text-amber-700 dark:bg-amber-900/50 dark:text-amber-300",running:"bg-blue-100 text-blue-700 dark:bg-blue-900/50 dark:text-blue-300",succeeded:"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300",failed:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",blocked:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",closed:"bg-muted text-muted-foreground",archived:"bg-muted text-muted-foreground",auth_required:"bg-amber-100 text-amber-700 dark:bg-amber-900/50 dark:text-amber-300",unreachable:"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300"},Gl="bg-muted text-muted-foreground",Yl={unknown:"",fresh:"",stale:"opacity-70 [border-style:dashed]",auth_required:"[border-style:dashed]",unreachable:"[border-style:dashed]"},ui={sm:14,md:16,lg:20},ci=k("TaskProgressSpinner",[["circle",{cx:"12",cy:"12",r:"10",pathLength:"100",strokeDasharray:"80 20",key:"progress"}]]),di={idle:_t,backlog:Or,todo:_t,in_progress:ci,in_review:$s,done:Cs,blocked:$t,cancelled:ws,in_queue:$t},fi=Or;function mi({status:e,size:t="md",className:r,title:n}){const o=ui[t],s=di[e]??fi,i=li[e]??"--status-task-icon-backlog",u=n?{role:"img","aria-label":n}:{"aria-hidden":!0};return(0,I.jsx)(s,{size:o,className:V("inline-block shrink-0 align-middle",e==="in_progress"&&"motion-safe:animate-spin",r),style:{color:`var(${i})`},...u,children:n?(0,I.jsx)("title",{children:n}):null})}a(mi,"StatusGlyph");var Dt={folder:js,rocket:Zs,code:_s,terminal:oi,database:Ls,globe:Us,package:Js,boxes:Kn,box:Ss,layers:Hs,briefcase:Es,compass:As,target:ni,flame:Os,zap:ii,star:ri,bug:Rs,wrench:si,hammer:zs,lightbulb:Ws,sparkles:ti,shield:ei,lock:Vs,search:Xs,cog:Ds,brain:Is,cpu:Ps,"git-branch":Bs,"file-code":Ts,puzzle:Gs,gem:Ns,atom:xs,heart:Fs,mail:Qs,"message-square":Ks,crown:Ms,radar:Ys,telescope:ai,hexagon:qs},hi="folder";function pi(e){return e&&Wn.includes(e)?Dt[e]:Dt[hi]}a(pi,"getProjectIcon");var gi={xs:{box:"h-4 w-4 rounded-sm",icon:"h-2.5 w-2.5"},sm:{box:"h-6 w-6 rounded-md",icon:"h-3.5 w-3.5"},md:{box:"h-7 w-7 rounded-lg",icon:"h-4 w-4"},lg:{box:"h-9 w-9 rounded-lg",icon:"h-5 w-5"}};function yi({color:e,icon:t,size:r="md",className:n}){const o=gi[r],s=!!e,i=pi(t);return(0,I.jsx)("span",{"aria-hidden":!0,className:V("inline-flex shrink-0 items-center justify-center",o.box,s?"text-white":"bg-muted text-muted-foreground",n),style:s?{backgroundColor:e??void 0}:void 0,children:(0,I.jsx)(i,{className:o.icon})})}a(yi,"ProjectTile");var le=null,qe=new Set;function xn(){for(const e of qe)e()}a(xn,"emitQuicklookChange");function At(e){le!==e&&(le=e,xn())}a(At,"openQuicklookId");function Pt(e){le===e&&(le=null,xn())}a(Pt,"closeQuicklookId");function vi(e){return qe.add(e),()=>{qe.delete(e)}}a(vi,"subscribeQuicklook");function bi(e){return l.useSyncExternalStore(vi,()=>le===e,()=>!1)}a(bi,"useIsQuicklookOpen");var ki=120,xi=13,wi="w-72 p-3";function Si(e="start"){return e==="start"?-13:e==="end"?xi:0}a(Si,"quicklookAlignOffset");function Ii(e){if(!e)return null;const t=e.replace(/!\[[^\]]*]\([^)]+\)/g," ").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/[#>*_`~-]+/g," ").replace(/\s+/g," ").trim();return t?t.length>180?`${t.slice(0,177).trimEnd()}...`:t:null}a(Ii,"summarizeIssueDescription");function Ei({className:e}){return(0,I.jsx)("span",{className:V("text-xs",e),"aria-hidden":!0,children:"·"})}a(Ei,"QuicklookSeparator");function Ri(e){const t=e.replace(/_/g," ");return t.charAt(0).toUpperCase()+t.slice(1)}a(Ri,"statusLabel");function Ci({issue:e,linkTo:t,linkState:r,compact:n=!1}){const o=(0,l.useMemo)(()=>Ii(e.description),[e.description]),s=e.project?.name;return(0,I.jsxs)("div",{className:V("space-y-2",n&&"space-y-1.5"),children:[(0,I.jsxs)("div",{className:"flex items-center gap-1",children:[(0,I.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-1",children:[(0,I.jsx)(mi,{status:e.status,size:"md",title:Ri(e.status)}),(0,I.jsx)("span",{className:"shrink-0 font-mono text-(length:--text-micro) text-muted-foreground",children:e.identifier??e.id.slice(0,8)}),s?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ei,{className:"shrink-0 text-muted-foreground"}),(0,I.jsxs)("span",{className:"flex min-w-0 max-w-(--sz-12rem) flex-1 items-center gap-1 text-(length:--text-micro) text-muted-foreground",title:s,"data-testid":"quicklook-project",children:[(0,I.jsx)(yi,{size:"xs"}),(0,I.jsx)("span",{className:"truncate",children:s})]})]}):null]}),(0,I.jsx)("span",{className:"shrink-0 text-(length:--text-micro) text-muted-foreground",children:Ko(new Date(e.updatedAt))})]}),(0,I.jsx)(me,{to:t,state:r??kr(null,e),className:"block text-sm font-medium leading-snug hover:underline line-clamp-2",children:e.title}),o?(0,I.jsx)("p",{className:"text-xs leading-5 text-muted-foreground [display:-webkit-box] [-webkit-box-orient:vertical] [-webkit-line-clamp:4] overflow-hidden",children:o}):null]})}a(Ci,"IssueQuicklookCard");var $i=l.forwardRef(a(function({issuePathId:t,to:r,children:n,className:o,state:s,disableIssueQuicklook:i=!1,issuePrefetch:u=null,issueQuicklookSide:c="top",issueQuicklookAlign:d="start",onClick:m,onClickCapture:f,onMouseEnter:g,onFocus:b,onBlur:v,onTouchStart:y,...p},x){const w=On(),S=l.useMemo(()=>Symbol("issue-quicklook"),[]),$=bi(S),E=l.useRef(null),_=l.useRef(null),P=l.useRef(null),j=l.useCallback(R=>{_.current=R,typeof x=="function"?x(R):x&&(x.current=R)},[x]),D=l.useCallback(()=>{E.current&&(clearTimeout(E.current),E.current=null)},[]),B=l.useCallback(()=>{D(),At(S)},[D,S]),J=l.useCallback(()=>{D(),E.current=setTimeout(()=>{E.current=null,At(S)},ki)},[D,S]),T=l.useCallback(()=>{D(),Pt(S)},[D,S]);l.useEffect(()=>()=>{D(),Pt(S)},[D,S]),l.useEffect(()=>{if(!$)return;const R=12,nt=a((W,oe,G)=>{if(!W)return!1;const H=W.getBoundingClientRect();return oe>=H.left-R&&oe<=H.right+R&&G>=H.top-R&&G<=H.bottom+R},"nearBox"),Pn=a((W,oe)=>{const G=_.current,H=P.current;if(G?.matches(":hover")||H?.matches(":hover")||nt(G,W,oe)||nt(H,W,oe))return!0;const Ae=document.activeElement;return G===Ae||!!H&&!!Ae&&H.contains(Ae)},"stillEngaged"),at=a(W=>{Pn(W.clientX,W.clientY)||T()},"onPointerMove");return document.addEventListener("pointermove",at,{passive:!0}),()=>document.removeEventListener("pointermove",at)},[$,T]);const q=u?kr(s,u):s,{data:U,isLoading:z}=Gn({...hs(w,t,{placeholderIssue:u??void 0}),enabled:$,staleTime:Sr}),An=os(t),ae=l.useCallback(()=>{ys(w,t,{issue:u})},[t,u,w]),rt=(0,I.jsx)(me,{ref:j,to:r,state:q,className:o,onMouseEnter:a(R=>{ae(),g?.(R)},"onMouseEnter"),onFocus:a(R=>{ae(),B(),b?.(R)},"onFocus"),onBlur:a(R=>{setTimeout(()=>T(),0),v?.(R)},"onBlur"),onTouchStart:a(R=>{ae(),y?.(R)},"onTouchStart"),onClickCapture:a(R=>{ae(),f?.(R)},"onClickCapture"),onClick:a(R=>{T(),m?.(R)},"onClick"),...p,children:n});return i?rt:(0,I.jsxs)(vs,{open:$,onOpenChange:a(R=>R?B():T(),"onOpenChange"),children:[(0,I.jsx)(bs,{asChild:!0,onMouseEnter:a(()=>{ae(),J()},"onMouseEnter"),onMouseLeave:T,children:rt}),(0,I.jsx)(ks,{ref:P,"data-quicklook":!0,className:wi,side:c,align:d,alignOffset:Si(d),onMouseEnter:B,onMouseLeave:T,onOpenAutoFocus:a(R=>R.preventDefault(),"onOpenAutoFocus"),onCloseAutoFocus:a(R=>R.preventDefault(),"onCloseAutoFocus"),children:U?(0,I.jsx)(Ci,{issue:U,linkTo:An,linkState:q,compact:!0}):(0,I.jsxs)("div",{className:"space-y-2",children:[(0,I.jsx)("div",{className:"h-4 w-24 rounded bg-accent/50"}),(0,I.jsx)("div",{className:"h-4 w-full rounded bg-accent/40"}),(0,I.jsx)("div",{className:"h-4 w-3/4 rounded bg-accent/30"}),z?null:(0,I.jsx)("p",{className:"text-xs text-muted-foreground",children:"Unable to load task preview."})]})})]})},"IssueLinkQuicklookImpl")),wn=new Set(["dashboard","companies","company","skills","teams-catalog","org","agents","chats","apps","projects","workspaces","terminal","execution-workspaces","issues","tasks","routines","goals","artifacts","tools","approvals","costs","usage","activity","audit","decisions","inbox","board-chat","artifacts","u","design-guide","search","settings","timeline"]),tt=new Set(["auth","invite","board-claim","cli-auth","mcp-connect","dot-connect","assistant-connections","docs","instance","s"]);function ue(e){return e.trim().toUpperCase()}a(ue,"normalizeCompanyPrefix");function Sn(e){const t=e.match(/^([^?#]*)(\?[^#]*)?(#.*)?$/);return{pathname:t?.[1]??e,search:t?.[2]??"",hash:t?.[3]??""}}a(Sn,"splitPath");function _i(e){return e.split("/").filter(Boolean)[0]??null}a(_i,"getRootSegment");function Di(e){if(e==="/")return!0;const t=_i(e);return t?tt.has(t.toLowerCase()):!0}a(Di,"isGlobalPath");function In(e){const t=e.split("/").filter(Boolean);if(t.length===0)return null;const r=t[0].toLowerCase();return tt.has(r)||wn.has(r)?null:ue(t[0])}a(In,"extractCompanyPrefixFromPath");function Mt(e,t){const{pathname:r,search:n,hash:o}=Sn(e);if(!r.startsWith("/")||Di(r)||!t)return e;const s=ue(t);return In(r)?e:`/${s}${r}${n}${o}`}a(Mt,"applyCompanyPrefix");function Ai(e,...t){const r=["cases",...t].filter(Boolean).join("/");return e?`/${ue(e)}/${r}`:`/${r}`}a(Ai,"caseHref");function Zl(e){const{pathname:t,search:r,hash:n}=Sn(e),o=t.split("/").filter(Boolean);if(o.length>=2){const s=o[1].toLowerCase();if(!tt.has(o[0].toLowerCase())&&wn.has(s))return`/${o.slice(1).join("/")}${r}${n}`}return`${t}${r}${n}`}a(Zl,"toCompanyRelativePath");var En=/^[A-Z][A-Z0-9]*-\d+$/i,Pi=/^issue:\/\/:?([^?#\s]+)([?#].*)?$/i,Mi=/issue:\/\/:?[^\s<>()]+|https?:\/\/[^\s<>()]+|\/(?:[^\s<>()/]+\/)*issues\/[A-Z][A-Z0-9]*-\d+(?=$|[\s<>)\],.;!?:])|\b[A-Z][A-Z0-9]*-\d+\b/gi;function Rn(e){if(!e)return null;const t=e.trim();if(!t||/^https?:\/\//i.test(t))return null;const r=t.split(/[?#]/,1)[0].split("/").filter(Boolean),n=r.findIndex(s=>s==="issues");if(n===-1||n===r.length-1)return null;const o=decodeURIComponent(r[n+1]??"");return!o||o.startsWith(":")?null:En.test(o)?o.toUpperCase():o}a(Rn,"parseIssuePathIdFromPath");function Cn(e,t){if(!e)return null;const r=e.trim(),n=r.match(Pi);if(n?.[1]){const i=decodeURIComponent(n[1]);return{issuePathId:i,href:`/issues/${encodeURIComponent(i)}${n[2]??""}`}}const o=Rn(e);if(o)return{issuePathId:o,href:`/issues/${encodeURIComponent(o)}${r.match(/[?#].*$/)?.[0]??""}`};if(!En.test(r))return null;const s=r.toUpperCase();if(t&&t.size>0){const i=s.split("-")[0];if(!i||!t.has(i))return null}return{issuePathId:s,href:`/issues/${encodeURIComponent(s)}`}}a(Cn,"parseIssueReferenceFromHref");function Li(e){let t=e,r="";for(;t.length>0;){const n=t.at(-1);if(!n||!/[),.;!?:\]]/.test(n))break;if(n===")"){const o=(t.match(/\(/g)??[]).length;if((t.match(/\)/g)??[]).length<=o)break}if(n==="]"){const o=(t.match(/\[/g)??[]).length;if((t.match(/\]/g)??[]).length<=o)break}r=`${n}${r}`,t=t.slice(0,-1)}return{core:t,trailing:r}}a(Li,"splitTrailingPunctuation");function $n(e,t,r="text"){return{type:"link",url:t,children:[{type:r,value:e}]}}a($n,"createIssueLinkNode");function Ti(e,t){const r=[];let n=0,o=!1;for(const s of e.matchAll(Mi)){const i=s[0];if(!i)continue;const u=s.index??0,c=u+i.length,{core:d,trailing:m}=Li(i),f=Cn(d,t);f&&(o=!0,u>n&&r.push({type:"text",value:e.slice(n,u)}),r.push($n(d,f.href)),m&&r.push({type:"text",value:m}),n=c)}return o?(n<e.length&&r.push({type:"text",value:e.slice(n)}),r):null}a(Ti,"linkifyIssueReferencesInText");function _n(e,t){if(!Array.isArray(e.children)||e.children.length===0||e.type==="link"||e.type==="linkReference"||e.type==="code"||e.type==="definition"||e.type==="html")return;const r=[];for(const n of e.children){if(n.type==="inlineCode"&&typeof n.value=="string"){const o=Cn(n.value,t);if(o){r.push($n(n.value,o.href,"inlineCode"));continue}}if(n.type==="text"&&typeof n.value=="string"){const o=Ti(n.value,t);if(o){r.push(...o);continue}}_n(n,t),r.push(n)}e.children=r}a(_n,"rewriteMarkdownTree");function Xl(e){const t=e?.knownPrefixes&&e.knownPrefixes.length>0?new Set(e.knownPrefixes.map(r=>r.toUpperCase())):void 0;return r=>{_n(r,t)}}a(Xl,"remarkLinkIssueReferences");function De(e,t){if(typeof e=="string")return Mt(e,t);if(e.pathname&&e.pathname.startsWith("/")){const r=Mt(e.pathname,t);if(r!==e.pathname)return{...e,pathname:r}}return e}a(De,"resolveTo");function he(){const{selectedCompany:e}=zn(),t=za(),r=L();if(t.companyPrefix)return ue(t.companyPrefix);const n=In(r.pathname);return n||(e?ue(e.issuePrefix):null)}a(he,"useActiveCompanyPrefix");function eu(){const e=he();return l.useCallback((...t)=>Ai(e,...t),[e])}a(eu,"useCaseHref");var tu=l.forwardRef(a(function({to:t,disableIssueQuicklook:r=!1,issuePrefetch:n=null,issueQuicklookSide:o,issueQuicklookAlign:s,...i},u){const c=De(t,he()),d=Rn(typeof c=="string"?c:c.pathname);return d?(0,I.jsx)($i,{ref:u,to:c,issuePathId:d,disableIssueQuicklook:r,issuePrefetch:n,issueQuicklookSide:o,issueQuicklookAlign:s,...i}):(0,I.jsx)(me,{ref:u,to:c,...i})},"CompanyLink")),ru=l.forwardRef(a(function({to:t,...r},n){const o=he();return(0,I.jsx)(ur,{ref:n,to:De(t,o),...r})},"CompanyNavLink"));function nu({to:e,...t}){const r=he();return(0,I.jsx)(ro,{to:De(e,r),...t})}a(nu,"Navigate");function au(){const e=Ee(),t=he();return l.useCallback(((r,n)=>{if(typeof r=="number"){e(r);return}e(De(r,t),n)}),[e,t])}a(au,"useNavigate");var Lt=a(e=>typeof e=="boolean"?`${e}`:e===0?"0":e,"falsyToString"),Tt=Hn,Oi=a((e,t)=>r=>{var n;if(t?.variants==null)return Tt(e,r?.class,r?.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(d=>{const m=r?.[d],f=s?.[d];if(m===null)return null;const g=Lt(m)||Lt(f);return o[d][g]}),u=r&&Object.entries(r).reduce((d,m)=>{let[f,g]=m;return g===void 0||(d[f]=g),d},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,m)=>{let{class:f,className:g,...b}=m;return Object.entries(b).every(v=>{let[y,p]=v;return Array.isArray(p)?p.includes({...s,...u}[y]):{...s,...u}[y]===p})?[...d,f,g]:d},[]);return Tt(e,i,c,r?.class,r?.className)},"cva"),ji=Oi("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-(--tp-color-background-color-border-color-box-shadow-opacity) disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-(length:--rad-3) aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",cta:"bg-foreground text-background hover:bg-foreground/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-9 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-10","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-9","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),Ni=l.forwardRef(a(function({className:t,variant:r="default",size:n="default",asChild:o=!1,...s},i){const u=o?Ln:"button";return(0,I.jsx)(u,{ref:i,"data-slot":"button","data-variant":r,"data-size":n,className:V(ji({variant:r,size:n,className:t})),...s})},"Button"));Ni.displayName="Button";var Dn=(0,l.createContext)(null);function Bi(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r+=1)if(e[r]?.label!==t[r]?.label||e[r]?.onClick!==t[r]?.onClick||e[r]?.href!==t[r]?.href||e[r]?.identifier!==t[r]?.identifier||e[r]?.leadingKey!==t[r]?.leadingKey||e[r]?.trailingKey!==t[r]?.trailingKey)return!1;return!0}a(Bi,"breadcrumbsEqual");function Ui(e,t){const r=e.length===0?[]:[...e].reverse().map(o=>o.label),n=t?.trim()?[t.trim()]:[];return[...r,...n,"Paperclip"].join(" • ")}a(Ui,"buildDocumentTitle");function ou({children:e,companyName:t}){const[r,n]=(0,l.useState)([]),[o,s]=(0,l.useState)(null),[i,u]=(0,l.useState)(null),[c,d]=(0,l.useState)(null),m=(0,l.useCallback)(v=>{n(y=>Bi(y,v)?y:v)},[]),f=(0,l.useCallback)(v=>{d(v)},[]),g=(0,l.useCallback)(v=>{s(v)},[]),b=(0,l.useCallback)(v=>{u(v)},[]);return(0,l.useEffect)(()=>{document.title=Ui(r,t)},[r,t]),(0,I.jsx)(Dn.Provider,{value:{breadcrumbs:r,setBreadcrumbs:m,breadcrumbToolbar:o,setBreadcrumbToolbar:g,breadcrumbPanelControl:i,setBreadcrumbPanelControl:b,mobileToolbar:c,setMobileToolbar:f},children:e})}a(ou,"BreadcrumbProvider");function su(){const e=(0,l.useContext)(Dn);if(!e)throw new Error("useBreadcrumbs must be used within BreadcrumbProvider");return e}a(su,"useBreadcrumbs");export{ni as $,bl as $t,Nl as A,tl as An,$t as At,Ml as B,rl as Bn,Rl as Bt,yi as C,ol as Cn,Ls as Ct,Hl as D,mr as Dn,Ds as Dt,ql as E,sl as En,As as Et,Ql as F,nl as Fn,Is as Ft,Ll as G,Er as Gt,Wl as H,$l as Ht,Kl as I,L as In,Ss as It,Fl as J,gl as Jt,Tl as K,hs as Kt,Dl as L,Ee as Ln,ws as Lt,Yl as M,Gi as Mn,Or as Mt,Jl as N,no as Nn,Cs as Nt,Bl as O,al as On,_s as Ot,Gl as P,Yi as Pn,Rs as Pt,ai as Q,hl as Qt,Al as R,Ki as Rn,xs as Rt,Si as S,Go as Sn,Ts as St,mi as T,ll as Tn,Ps as Tt,Vl as U,Cl as Ut,jl as V,ks as Vt,Ol as W,bs as Wt,si as X,us as Xt,ii as Y,wl as Yt,oi as Z,Sl as Zt,ue as _,ss as _n,Us as _t,Oi as a,El as an,Ys as at,Ci as b,il as bn,js as bt,nu as c,Il as cn,Js as ct,au as d,cl as dn,Vs as dt,ls as en,ri as et,Cn as f,ul as fn,Ws as ft,Di as g,es as gn,zs as gt,In as h,ml as hn,Fs as ht,ji as i,yl as in,Zs as it,ye as j,me as jn,$s as jt,Ul as k,Ko as kn,_t as kt,he as l,Y as ln,Ks as lt,Mt as m,fl as mn,qs as mt,su as n,kl as nn,ei as nt,tu as o,xl as on,Gs as ot,Xl as p,os as pn,Hs as pt,zl as q,ys as qt,Ni as r,cs as rn,Xs as rt,ru as s,vl as sn,_l as st,ou as t,pl as tn,ti as tt,eu as u,xt as un,Qs as ut,Zl as v,dl as vn,Bs as vt,Dt as w,Xe as wn,Ms as wt,wi as x,Jo as xn,Os as xt,$i as y,kr as yn,Ns as yt,Pl as z,za as zn,vs as zt};