@intent-hq/web 2.329.1 → 2.330.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{BA1PODMh.js → -CNzmNt8.js} +1 -1
- package/web/app/immutable/chunks/{BFtvBSew.js → 0VQsaIc5.js} +1 -1
- package/web/app/immutable/chunks/{CzNFeyXq.js → 1kZYk73E.js} +1 -1
- package/web/app/immutable/chunks/{CenHMQnL.js → 4rPACIPc.js} +1 -1
- package/web/app/immutable/chunks/{DnsljLCu.js → 56Ve4phw.js} +4 -4
- package/web/app/immutable/chunks/{B5P3MlXt.js → 5EQzwjFU.js} +1 -1
- package/web/app/immutable/chunks/{DZehrap8.js → 5YCHxLN1.js} +1 -1
- package/web/app/immutable/chunks/{_2fOudXW.js → 8t0Gx_mY.js} +3 -3
- package/web/app/immutable/chunks/{SYyiTNGD.js → 91BV6KFP.js} +1 -1
- package/web/app/immutable/chunks/{B7jicnjL.js → B-RrcP34.js} +1 -1
- package/web/app/immutable/chunks/{BZ-EICJi.js → B2ywnjG_.js} +1 -1
- package/web/app/immutable/chunks/{BWX9-gTx.js → B4W05Glr.js} +1 -1
- package/web/app/immutable/chunks/{s3gu_1Am.js → B5YXY4gT.js} +1 -1
- package/web/app/immutable/chunks/{gpmK1kqQ.js → B5nDENeQ.js} +1 -1
- package/web/app/immutable/chunks/{BQJ4WjRD.js → B9GX4VRk.js} +1 -1
- package/web/app/immutable/chunks/{Q-qQLirG.js → B9ylxCBv.js} +1 -1
- package/web/app/immutable/chunks/{B5qHFYtB.js → BBGX-ci7.js} +1 -1
- package/web/app/immutable/chunks/{DWRjMQoO.js → BF3lDslR.js} +1 -1
- package/web/app/immutable/chunks/{BxG6A9b4.js → BGq45CP4.js} +1 -1
- package/web/app/immutable/chunks/{BiMshSJB.js → BM3phmDM.js} +1 -1
- package/web/app/immutable/chunks/{u4f1abDP.js → BOCcnpyu.js} +1 -1
- package/web/app/immutable/chunks/{r5gxpJo8.js → BPdm-e1q.js} +1 -1
- package/web/app/immutable/chunks/{Bo9ahub4.js → BRz9UwkY.js} +2 -2
- package/web/app/immutable/chunks/{BqEu3ShV.js → BUH1cXWe.js} +1 -1
- package/web/app/immutable/chunks/{IyX2wNBZ.js → BVEChIvV.js} +1 -1
- package/web/app/immutable/chunks/{B4VyGGYM.js → B_wPEBaI.js} +1 -1
- package/web/app/immutable/chunks/{DtaTESlI.js → BbcTTSnr.js} +1 -1
- package/web/app/immutable/chunks/{CXY1P6C9.js → BfxAliuB.js} +1 -1
- package/web/app/immutable/chunks/{DcoxMA27.js → Bg7GBSBQ.js} +1 -1
- package/web/app/immutable/chunks/{CnOr9NAz.js → Bi15WK7m.js} +1 -1
- package/web/app/immutable/chunks/{ByFoaxbG.js → Bjuqq3Zd.js} +1 -1
- package/web/app/immutable/chunks/{BGCj8f4n.js → BlCPsgO4.js} +2 -2
- package/web/app/immutable/chunks/{DBp7mVI8.js → BlRn68PY.js} +1 -1
- package/web/app/immutable/chunks/{Ca8dpfL7.js → BmYE6Ue_.js} +1 -1
- package/web/app/immutable/chunks/{cxunVpZz.js → BsjwOa8m.js} +1 -1
- package/web/app/immutable/chunks/{lBxfStnS.js → Bsz0mK8i.js} +1 -1
- package/web/app/immutable/chunks/{XDo28UMB.js → BveuvcUn.js} +3 -3
- package/web/app/immutable/chunks/{BC6-b3Dv.js → Bx0bz20m.js} +3 -3
- package/web/app/immutable/chunks/{Cx0E7JMD.js → Bx30GctV.js} +1 -1
- package/web/app/immutable/chunks/ByQ08O_R.js +1 -0
- package/web/app/immutable/chunks/{D8--oZc6.js → C2scFn3X.js} +1 -1
- package/web/app/immutable/chunks/{4pk0Z0U9.js → C6jc4Pti.js} +1 -1
- package/web/app/immutable/chunks/{2uCE_ZPn.js → C9eE8ZXy.js} +1 -1
- package/web/app/immutable/chunks/{DW8uhmxw.js → C9ey9TZx.js} +1 -1
- package/web/app/immutable/chunks/{DnRXhZ6_.js → CB2xLjY4.js} +1 -1
- package/web/app/immutable/chunks/{Ij0kpg_f.js → CBAaIsiA.js} +1 -1
- package/web/app/immutable/chunks/{DlQXxpP-.js → CCQJkGZ_.js} +1 -1
- package/web/app/immutable/chunks/{CYZxRRWB.js → CCagIz8d.js} +1 -1
- package/web/app/immutable/chunks/{Bu8Z06IG.js → CEA4WprY.js} +1 -1
- package/web/app/immutable/chunks/{BsxJ3VR0.js → CFcAdFFD.js} +1 -1
- package/web/app/immutable/chunks/{D3VV-t_O.js → CGWrDwo6.js} +1 -1
- package/web/app/immutable/chunks/{BYhv5ULD.js → CGoCQMYw.js} +1 -1
- package/web/app/immutable/chunks/{DaWbYcBW.js → CHyrfJgg.js} +1 -1
- package/web/app/immutable/chunks/{YIKSjExn.js → CJ0z1v-C.js} +1 -1
- package/web/app/immutable/chunks/{gCaQv1mQ.js → CMnxgVrV.js} +1 -1
- package/web/app/immutable/chunks/{Bl8pGyWE.js → CNEXeIWq.js} +6 -6
- package/web/app/immutable/chunks/{CN6k04kg.js → CPi21vJ2.js} +1 -1
- package/web/app/immutable/chunks/{OyVPvX5W.js → CRl3Fhij.js} +1 -1
- package/web/app/immutable/chunks/{BQEuQ5so.js → CTPvu81o.js} +1 -1
- package/web/app/immutable/chunks/{BRH9kOBU.js → CTf3pgnM.js} +1 -1
- package/web/app/immutable/chunks/{1_OFWWss.js → CY94okR1.js} +1 -1
- package/web/app/immutable/chunks/{5r_d4X6e.js → CbdCK_T5.js} +3 -3
- package/web/app/immutable/chunks/{DfUDzzt8.js → Ck1t7lzU.js} +1 -1
- package/web/app/immutable/chunks/{DKyn5QCF.js → Cq3jmim-.js} +1 -1
- package/web/app/immutable/chunks/{CBYLlCL4.js → CqYT7Dd6.js} +1 -1
- package/web/app/immutable/chunks/{DVX6Tk_b.js → CrJDbXeR.js} +1 -1
- package/web/app/immutable/chunks/{DwMfNnNV.js → CsAyqppV.js} +2 -2
- package/web/app/immutable/chunks/{DukFUCSi.js → CsfPzyL6.js} +1 -1
- package/web/app/immutable/chunks/{DOnVAbj0.js → Cu6_o9yH.js} +1 -1
- package/web/app/immutable/chunks/{ChNVaYkZ.js → CuQGJ_Hl.js} +1 -1
- package/web/app/immutable/chunks/{ClOS_-e_.js → Cx-79P8l.js} +1 -1
- package/web/app/immutable/chunks/{ys17TXF0.js → D-W1GPTx.js} +1 -1
- package/web/app/immutable/chunks/{kwSDV9fJ.js → D3VNRPKq.js} +4 -4
- package/web/app/immutable/chunks/{CZiWVYjs.js → D6A4AOD2.js} +1 -1
- package/web/app/immutable/chunks/{DBVnJFMb.js → D7CwqOyk.js} +1 -1
- package/web/app/immutable/chunks/{C3Utm2D5.js → D7_Jc752.js} +1 -1
- package/web/app/immutable/chunks/{CODzDoHx.js → D7e2XTJl.js} +1 -1
- package/web/app/immutable/chunks/{B7El2OF0.js → D84UKAzR.js} +1 -1
- package/web/app/immutable/chunks/{vRomtSEH.js → D8tsE2-F.js} +1 -1
- package/web/app/immutable/chunks/{DfSn9hGW.js → DAWb2dTK.js} +1 -1
- package/web/app/immutable/chunks/{ByQlGVkM.js → DCHEHwiS.js} +1 -1
- package/web/app/immutable/chunks/{C3QEllyF.js → DEkMLJNk.js} +1 -1
- package/web/app/immutable/chunks/{C7ivcElf.js → DH_PNr-8.js} +1 -1
- package/web/app/immutable/chunks/{CS6iaD-m.js → DJ7wLorJ.js} +1 -1
- package/web/app/immutable/chunks/{BBl75qdv.js → DOqguBrF.js} +1 -1
- package/web/app/immutable/chunks/{lfhgTSoj.js → DRuEOkw4.js} +1 -1
- package/web/app/immutable/chunks/{B1Vhnxzz.js → DSKeLath.js} +1 -1
- package/web/app/immutable/chunks/{q8l-xXLl.js → DUJSEf2g.js} +2 -2
- package/web/app/immutable/chunks/{kOvgsK93.js → DWwdvItj.js} +2 -2
- package/web/app/immutable/chunks/{CBQNI-Hj.js → DWzc_C3M.js} +1 -1
- package/web/app/immutable/chunks/{-j1F8NEs.js → Dax0jHgN.js} +1 -1
- package/web/app/immutable/chunks/{khmuPkH1.js → DccM5_Kz.js} +1 -1
- package/web/app/immutable/chunks/{T0VysRBQ.js → Ddaozz5f.js} +1 -1
- package/web/app/immutable/chunks/{DNvaSS2U.js → DlOjrEkG.js} +1 -1
- package/web/app/immutable/chunks/Dqy2jMvN.js +4 -0
- package/web/app/immutable/chunks/{CEeOHP8e.js → DrIarztw.js} +1 -1
- package/web/app/immutable/chunks/{pJpiiUGa.js → DrdCoP-L.js} +1 -1
- package/web/app/immutable/chunks/{BYBxN_iz.js → DsaheIX7.js} +1 -1
- package/web/app/immutable/chunks/{C4MOq5FS.js → ErrYu-1b.js} +1 -1
- package/web/app/immutable/chunks/{DGy8ScKF.js → FZGh-nAC.js} +1 -1
- package/web/app/immutable/chunks/{B58pcVYz.js → GdXyc5RW.js} +1 -1
- package/web/app/immutable/chunks/HxrVoImD.js +2 -0
- package/web/app/immutable/chunks/{sYQprIK6.js → P80wVyai.js} +1 -1
- package/web/app/immutable/chunks/{ee2kv8V7.js → QF0bJN4h.js} +1 -1
- package/web/app/immutable/chunks/{hRXpLgdr.js → R1PIrMEo.js} +4 -4
- package/web/app/immutable/chunks/{B7tvViul.js → SI5c1abe.js} +2 -2
- package/web/app/immutable/chunks/{D5t4Sb61.js → SrKv1_3m.js} +1 -1
- package/web/app/immutable/chunks/{NyR8pG10.js → V-pYlOFT.js} +1 -1
- package/web/app/immutable/chunks/{ClsELQC1.js → X60wq_Gr.js} +1 -1
- package/web/app/immutable/chunks/{M4GSoHng.js → XA_y_9lT.js} +12 -12
- package/web/app/immutable/chunks/{DZIg-0qV.js → YNVJCvyF.js} +2 -2
- package/web/app/immutable/chunks/{B2uGo8UC.js → _vwL6Rxf.js} +1 -1
- package/web/app/immutable/chunks/{BzT2S2ou.js → aUxeG-_E.js} +1 -1
- package/web/app/immutable/chunks/{Cx2ztPW2.js → bXZvOnOg.js} +1 -1
- package/web/app/immutable/chunks/{DgPKRk-d.js → bmdvISxl.js} +1 -1
- package/web/app/immutable/chunks/{CrAIOpwj.js → dhHWeHB7.js} +1 -1
- package/web/app/immutable/chunks/{vQwN4WXd.js → ecK2Rz_W.js} +1 -1
- package/web/app/immutable/chunks/{DdGFeF49.js → fm9pZz0d.js} +3 -3
- package/web/app/immutable/chunks/{DZzmT9V_.js → jho6TGJn.js} +1 -1
- package/web/app/immutable/chunks/{BVaU_GbR.js → jonfRsD6.js} +1 -1
- package/web/app/immutable/chunks/{DawDK143.js → kHRHwI-x.js} +1 -1
- package/web/app/immutable/chunks/{CbkAERDZ.js → lOSCBcaC.js} +1 -1
- package/web/app/immutable/chunks/{AsRiGNKE.js → nXIZY1Eq.js} +1 -1
- package/web/app/immutable/chunks/{BvBD37j2.js → rj2N2X77.js} +1 -1
- package/web/app/immutable/chunks/{DVuaeV8Y.js → rw7bge4F.js} +1 -1
- package/web/app/immutable/chunks/{DhQzPxYK.js → tIh0qGP0.js} +1 -1
- package/web/app/immutable/chunks/{Bg6EMrHe.js → wFOLz40M.js} +4 -4
- package/web/app/immutable/chunks/{BAbkls59.js → wqG7RsMr.js} +1 -1
- package/web/app/immutable/entry/{app.DrmM2gXC.js → app.DGPhT6bY.js} +2 -2
- package/web/app/immutable/entry/start.C2NOsCgx.js +1 -0
- package/web/app/immutable/nodes/{0.DvHREjig.js → 0.BC-jKADe.js} +1 -1
- package/web/app/immutable/nodes/{1.ClPj5TCv.js → 1.BElbRM6L.js} +1 -1
- package/web/app/immutable/nodes/{10.Ca2-F8qL.js → 10.BhzQgaxP.js} +1 -1
- package/web/app/immutable/nodes/{14.DR4jcijT.js → 14.lrSpZ_2D.js} +1 -1
- package/web/app/immutable/nodes/{17.ploub82N.js → 17.EkpTyH-y.js} +2 -2
- package/web/app/immutable/nodes/{2.CWTxlS6d.js → 2.eUJUH-2K.js} +5 -5
- package/web/app/immutable/nodes/{3.7XW5RNaq.js → 3.CqDcm_5y.js} +1 -1
- package/web/app/immutable/nodes/{4.B8c9sA1f.js → 4.DNZQQAL_.js} +1 -1
- package/web/app/immutable/nodes/{5.8AXtwblD.js → 5.kCfkqAT0.js} +1 -1
- package/web/app/immutable/nodes/{6.DYnY5u72.js → 6.CzeBG3TF.js} +1 -1
- package/web/app/immutable/nodes/{7.CGylAw3f.js → 7.C_teQRRk.js} +1 -1
- package/web/app/immutable/nodes/{8.D5h4WyUO.js → 8.Dro0M0JS.js} +4 -4
- package/web/app/immutable/nodes/{9.QQqXOPhv.js → 9.BgUq0jQt.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/Bgs5Oygw.js +0 -1
- package/web/app/immutable/chunks/BhAlvK4b.js +0 -4
- package/web/app/immutable/chunks/DKPv6b-m.js +0 -2
- package/web/app/immutable/entry/start.B5qs3plV.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Zt,bq as W,by as Jt,b as Nt,a_ as P,bu as Z,bs as Ie,bo as i}from"./8obSPONn.js";import{bs as Qt,ay as yt,be as h,b$ as x,b_ as s,bO as o,W as n,bS as l,bl as B,bn as Xt,aA as V,a7 as Se,aD as t,c9 as g,aB as I,bo as we,bV as kt,br as Ge,ca as Bt,bH as M,bk as Le,a5 as E,bA as O}from"./DYhIMPy1.js";import{n as Ae,p as Pe,v as ze,j as De,I as Ht,u as qt}from"./Crq31h4w.js";import{c as Te}from"./Mne-RwlA.js";import{f as z}from"./CYnvHqAo.js";import"./BiuqRP28.js";import{b as Fe}from"./DYfj3lcw.js";import"./DrQfmm9r.js";import"./BICcGRy9.js";import{b as Ue}from"./Bq6o_ftd.js";import{I as Mt}from"./CN_bicqw.js";import{L as Kt}from"./CBoIo15V.js";import"./CXgjAj37.js";import{G as Ee,x as Oe}from"./kOvgsK93.js";import{Ii as K,fm as Wt,z as Be,ec as Vt,qs as He,tK as qe,I9 as Me,oc as Ke,hA as We}from"./DomfbKVx.js";import{aY as jt,aZ as Rt,a_ as Ve,aT as je,aU as Yt,aV as Re,aW as Ye,b2 as Ze}from"./CXY1P6C9.js";var Je=I('<!> <p class="type-body"> </p>',1);function Ne(it,m){if(new.target)return Zt({component:Ne,...it});Qt(m,!0);let D=W(m,"open",15,!1),H=W(m,"static",7,!1),st=W(m,"title",7),_=W(m,"message",7),k=W(m,"buttons",7),b=W(m,"cancelIndex",7,0),J=W(m,"onSelect",7);function j(r){D(!1),J()?.(r)}var vt={get open(){return D()},set open(r=!1){D(r),V()},get static(){return H()},set static(r=!1){H(r),V()},get title(){return st()},set title(r){st(r),V()},get message(){return _()},set message(r){_(r),V()},get buttons(){return k()},set buttons(r){k(r),V()},get cancelIndex(){return b()},set cancelIndex(r=0){b(r),V()},get onSelect(){return J()},set onSelect(r){J(r),V()},$set:Jt,$on:(r,q)=>Nt(m,r,q)};return Ue(it,{get static(){return H()},role:"alertdialog",get title(){return st()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>j(k().length-1),onCancel:()=>j(b()),get open(){return D()},set open(q){D(q)},footer:q=>{var T=Se(),w=yt(T);Ae(w,17,k,Pe,(N,Q,R)=>{{let X=g(()=>R===b()?"ghost":R===k().length-1?"primary":"outline");z(N,{get variant(){return t(X)},onclick:()=>j(R),children:(ct,pt)=>{h();var ut=x();s(()=>o(ut,t(Q))),n(ct,ut)},$$slots:{default:!0}})}}),n(q,T)},children:(q,T)=>{var w=Je(),N=yt(w);Te(N,()=>Fe,(X,ct)=>{ct(X,{class:"sr-only",children:(pt,ut)=>{h();var _t=x();s(()=>o(_t,_())),n(pt,_t)},$$slots:{default:!0}})});var Q=l(N,2),R=B(Q,!0);s(()=>o(R,_())),n(q,w)},$$slots:{footer:!0,default:!0}}),Xt(vt)}var Qe=I('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Xe=I('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),ta=I('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),ea=I('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),aa=I('<p class="text-xs text-danger" role="alert"> </p>'),na=I('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),ra=I('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),sa=I('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),oa=I('<p class="text-sm text-subtle" role="status"> </p>'),la=I('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),ia=I('<p class="text-sm text-danger" role="alert"> </p>'),ca=I('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function ua(it,m){const D=we();if(new.target)return Zt({component:ua,...it});Qt(m,!0);const H=()=>Z(ct,"$storedInstance$",r),st=()=>Z(ee,"$deviceGrantSupported$",r),_=()=>Z(ne,"$instanceSetupSupported$",r),k=()=>Z(pt,"$isAuthenticating$",r),b=()=>Z(ut,"$isCancelling$",r),J=()=>Z(te,"$deviceFlow$",r),j=()=>Z(_t,"$cancelOutcome$",r),vt=()=>Z(ae,"$error$",r),[r,q]=Ie();let T=W(m,"compact",7,!1),w=W(m,"onCancel",7);const N=`${D}-host`,Q=`${D}-host-help`,R=`${D}-host-error`,X=`${D}-token`,ct=jt(),pt=Rt(),ut=Ve(),_t=je(),te=Yt(),ee=Re(),ae=Ye(),ne=Ze();let bt=kt(Ge(jt.select(K.state))),St=kt(!1),tt=kt(""),ft=kt(!1);const p=g(()=>qe(t(bt))),wt=g(()=>t(ft)||t(p)===H()&&st()===!1),Ct=g(()=>t(p)?Ke(t(p)):null),re=g(()=>_()&&t(p)!==null&&t(tt).trim().length>0);Bt(()=>{const c=H();t(St)||M(bt,c,!0)}),Bt(()=>{_()||M(tt,"")}),Le(()=>{const c=()=>{const e=K.state;Rt.select(e)&&Yt.select(e)&&K.dispatch(Wt())};return window.addEventListener("focus",c),()=>window.removeEventListener("focus",c)});function Gt(){!_()||!t(p)||t(p)===H()||k()||b()||K.dispatch(He(t(p)))}function se(){M(St,!0),M(tt,"")}function Lt(){!_()||!t(p)||k()||b()||K.dispatch(Me(t(p)))}function At(){const c=t(tt).trim();!_()||!c||!t(p)||k()||b()||(K.dispatch(We(t(p),c)),M(tt,""))}function Pt(){!_()||b()||(k()&&K.dispatch(Vt()),M(ft,!0))}function oe(){M(ft,!1)}function le(){b()||K.dispatch(Vt())}function ie(){t(Ct)&&Oe(t(Ct),{})}function ce(c){c.key==="Enter"&&(c.preventDefault(),Gt(),t(wt)?document.getElementById(X)?.focus():Lt())}function ue(c){c.key==="Enter"&&(c.preventDefault(),At())}const zt=g(()=>T()?"sm":"xl"),gt=g(()=>T()?"sm":"default");var de={get compact(){return T()},set compact(c=!1){T(c),V()},get onCancel(){return w()},set onCancel(c){w(c),V()},$set:Jt,$on:(c,e)=>Nt(m,c,e)},$t=ca();{const c=e=>{z(e,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return b()},onclick:le,children:(a,u)=>{h();var f=x();s(G=>o(f,G),[()=>b()?i.lib_gitlabConnect_cancelling_label():i.lib_gitlabConnect_cancel_label()]),n(a,f)},$$slots:{default:!0}})};var Dt=E($t);{var ve=e=>{var a=Qe(),u=B(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_updateRequired_description()]),n(e,a)};P(Dt,e=>{_()||e(ve)})}var Tt=l(Dt,2);{var pe=e=>{var a=Xe(),u=B(a,!0);s(()=>o(u,H())),n(e,a)};P(Tt,e=>{(k()||b())&&e(pe)})}var Ft=l(Tt,2);{var _e=e=>{var a=ta(),u=E(a);{let at=g(()=>i.lib_gitlabConnect_openGitlab_label());Ee(u,{get userCode(){return J().userCode},get verificationUri(){return J().verificationUri},get openLabel(){return t(at)},get compact(){return T()}})}var f=l(u,2),G=E(f);Ht(G,{size:16,class:"shrink-0"});var S=l(G,2),ot=B(S,!0),et=l(S,2);{let at=g(()=>b()||!_());z(et,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(at)},onclick:Pt,children:(It,Et)=>{h();var d=x();s($=>o(d,$),[()=>i.lib_gitlabConnect_useToken_label()]),n(It,d)},$$slots:{default:!0}})}var dt=l(et,2);c(dt),O(f),O(a),s(at=>o(ot,at),[()=>i.lib_gitlabConnect_waitingForAuthorization_label()]),n(e,a)},be=e=>{var a=ea(),u=E(a);Ht(u,{size:16,class:"shrink-0"});var f=l(u,2),G=B(f,!0),S=l(f,2);c(S),O(a),s(ot=>o(G,ot),[()=>i.lib_gitlabConnect_connecting_label()]),n(e,a)},fe=e=>{var a=sa(),u=yt(a),f=E(u);Kt(f,{get for(){return N},children:(d,$)=>{h();var y=x();s(L=>o(y,L),[()=>i.lib_gitlabConnect_host_label()]),n(d,y)},$$slots:{default:!0}});var G=l(f,2);{let d=g(()=>!_()),$=g(()=>!t(p)||void 0),y=g(()=>t(p)?Q:`${Q} ${R}`);Mt(G,{get id(){return N},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(d)},get"aria-invalid"(){return t($)},get"aria-describedby"(){return t(y)},get placeholder(){return Be},oninput:se,onchange:Gt,onkeydown:ce,get value(){return t(bt)},set value(L){M(bt,L,!0)}})}var S=l(G,2),ot=B(S,!0),et=l(S,2);{var dt=d=>{var $=aa(),y=B($,!0);s(L=>{qt($,"id",R),o(y,L)},[()=>i.lib_gitlabConnect_invalidInstance_error()]),n(d,$)};P(et,d=>{t(p)||d(dt)})}O(u);var at=l(u,2);{var It=d=>{var $=na(),y=yt($),L=E(y);Kt(L,{get for(){return X},children:(v,U)=>{h();var lt=x();s(C=>o(lt,C),[()=>i.lib_gitlabConnect_token_label()]),n(v,lt)},$$slots:{default:!0}});var mt=l(L,2);{let v=g(()=>!_());Mt(mt,{get id(){return X},type:"password",autocomplete:"off",get disabled(){return t(v)},placeholder:"glpat-...",onkeydown:ue,get value(){return t(tt)},set value(U){M(tt,U,!0)}})}var ht=l(mt,2),F=E(ht),nt=l(F);{var xt=v=>{z(v,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:ie,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_createToken_label({host:t(p)})]),n(U,C)},$$slots:{default:!0}})};P(nt,v=>{t(Ct)&&t(p)&&v(xt)})}O(ht),O(y);var A=l(y,2),Y=E(A);{let v=g(()=>!t(re));z(Y,{variant:"primary",get size(){return t(zt)},type:"button",onclick:At,get disabled(){return t(v)},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_connect_label()]),n(U,C)},$$slots:{default:!0}})}var Ot=l(Y,2);{var ke=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",onclick:oe,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_useDevice_label()]),n(U,C)},$$slots:{default:!0}})};P(Ot,v=>{t(ft)&&!(t(p)===H()&&st()===!1)&&v(ke)})}var ye=l(Ot,2);{var Ce=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return w()},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_cancel_label()]),n(U,C)},$$slots:{default:!0}})};P(ye,v=>{w()&&v(Ce)})}O(A),s(v=>o(F,`${v??""} `),[()=>i.lib_gitlabConnect_token_description()]),n(d,$)},Et=d=>{var $=ra(),y=E($);{let F=g(()=>!t(p)||!_());z(y,{variant:"primary",get size(){return t(zt)},type:"button",onclick:Lt,get disabled(){return t(F)},children:(nt,xt)=>{h();var A=x();s(Y=>o(A,Y),[()=>i.lib_gitlabConnect_connect_label()]),n(nt,A)},$$slots:{default:!0}})}var L=l(y,2);{let F=g(()=>!_());z(L,{variant:"ghost",get size(){return t(gt)},type:"button",get disabled(){return t(F)},onclick:Pt,children:(nt,xt)=>{h();var A=x();s(Y=>o(A,Y),[()=>i.lib_gitlabConnect_useToken_label()]),n(nt,A)},$$slots:{default:!0}})}var mt=l(L,2);{var ht=F=>{z(F,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return w()},children:(nt,xt)=>{h();var A=x();s(Y=>o(A,Y),[()=>i.lib_gitlabConnect_cancel_label()]),n(nt,A)},$$slots:{default:!0}})};P(mt,F=>{w()&&F(ht)})}O($),n(d,$)};P(at,d=>{t(wt)?d(It):d(Et,-1)})}s(d=>{qt(S,"id",Q),o(ot,d)},[()=>i.lib_gitlabConnect_host_description()]),n(e,a)};P(Ft,e=>{(k()||b())&&J()?e(_e):k()||b()?e(be,1):e(fe,-1)})}var Ut=l(Ft,2);{var ge=e=>{var a=oa(),u=B(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_cancelled_label()]),n(e,a)},$e=e=>{var a=la(),u=E(a),f=B(u,!0),G=l(u,2);z(G,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return b()},onclick:()=>K.dispatch(Wt()),children:(S,ot)=>{h();var et=x();s(dt=>o(et,dt),[()=>i.lib_gitlabConnect_checkStatus_label()]),n(S,et)},$$slots:{default:!0}}),O(a),s(S=>o(f,S),[()=>j()==="already-started"?i.lib_gitlabConnect_alreadyStarted_description():i.lib_gitlabConnect_cancelFailed_description()]),n(e,a)};P(Ut,e=>{j()==="cancelled"?e(ge):(j()==="already-started"||j()==="failed")&&e($e,1)})}var me=l(Ut,2);{var he=e=>{var a=ia(),u=B(a,!0);s(()=>o(u,vt())),n(e,a)};P(me,e=>{vt()&&e(he)})}O($t)}s(()=>ze($t,1,De(T()?"space-y-2":"space-y-4"))),n(it,$t);var xe=Xt(de);return q(),xe}export{ua as G,Ne as M};
|
|
1
|
+
import{t as Zt,bq as W,by as Jt,b as Nt,a_ as P,bu as Z,bs as Ie,bo as i}from"./8obSPONn.js";import{bs as Qt,ay as yt,be as h,b$ as x,b_ as s,bO as o,W as n,bS as l,bl as B,bn as Xt,aA as V,a7 as Se,aD as t,c9 as g,aB as I,bo as we,bV as kt,br as Ge,ca as Bt,bH as M,bk as Le,a5 as E,bA as O}from"./DYhIMPy1.js";import{n as Ae,p as Pe,v as ze,j as De,I as Ht,u as qt}from"./Crq31h4w.js";import{c as Te}from"./Mne-RwlA.js";import{f as z}from"./CYnvHqAo.js";import"./BiuqRP28.js";import{b as Fe}from"./DYfj3lcw.js";import"./DrQfmm9r.js";import"./BICcGRy9.js";import{b as Ue}from"./Bq6o_ftd.js";import{I as Mt}from"./CN_bicqw.js";import{L as Kt}from"./CBoIo15V.js";import"./CXgjAj37.js";import{G as Ee,x as Oe}from"./DWwdvItj.js";import{Ii as K,fm as Wt,z as Be,ec as Vt,qs as He,tK as qe,I9 as Me,oc as Ke,hA as We}from"./DomfbKVx.js";import{aY as jt,aZ as Rt,a_ as Ve,aT as je,aU as Yt,aV as Re,aW as Ye,b2 as Ze}from"./BfxAliuB.js";var Je=I('<!> <p class="type-body"> </p>',1);function Ne(it,m){if(new.target)return Zt({component:Ne,...it});Qt(m,!0);let D=W(m,"open",15,!1),H=W(m,"static",7,!1),st=W(m,"title",7),_=W(m,"message",7),k=W(m,"buttons",7),b=W(m,"cancelIndex",7,0),J=W(m,"onSelect",7);function j(r){D(!1),J()?.(r)}var vt={get open(){return D()},set open(r=!1){D(r),V()},get static(){return H()},set static(r=!1){H(r),V()},get title(){return st()},set title(r){st(r),V()},get message(){return _()},set message(r){_(r),V()},get buttons(){return k()},set buttons(r){k(r),V()},get cancelIndex(){return b()},set cancelIndex(r=0){b(r),V()},get onSelect(){return J()},set onSelect(r){J(r),V()},$set:Jt,$on:(r,q)=>Nt(m,r,q)};return Ue(it,{get static(){return H()},role:"alertdialog",get title(){return st()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>j(k().length-1),onCancel:()=>j(b()),get open(){return D()},set open(q){D(q)},footer:q=>{var T=Se(),w=yt(T);Ae(w,17,k,Pe,(N,Q,R)=>{{let X=g(()=>R===b()?"ghost":R===k().length-1?"primary":"outline");z(N,{get variant(){return t(X)},onclick:()=>j(R),children:(ct,pt)=>{h();var ut=x();s(()=>o(ut,t(Q))),n(ct,ut)},$$slots:{default:!0}})}}),n(q,T)},children:(q,T)=>{var w=Je(),N=yt(w);Te(N,()=>Fe,(X,ct)=>{ct(X,{class:"sr-only",children:(pt,ut)=>{h();var _t=x();s(()=>o(_t,_())),n(pt,_t)},$$slots:{default:!0}})});var Q=l(N,2),R=B(Q,!0);s(()=>o(R,_())),n(q,w)},$$slots:{footer:!0,default:!0}}),Xt(vt)}var Qe=I('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Xe=I('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),ta=I('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),ea=I('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),aa=I('<p class="text-xs text-danger" role="alert"> </p>'),na=I('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),ra=I('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),sa=I('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),oa=I('<p class="text-sm text-subtle" role="status"> </p>'),la=I('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),ia=I('<p class="text-sm text-danger" role="alert"> </p>'),ca=I('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function ua(it,m){const D=we();if(new.target)return Zt({component:ua,...it});Qt(m,!0);const H=()=>Z(ct,"$storedInstance$",r),st=()=>Z(ee,"$deviceGrantSupported$",r),_=()=>Z(ne,"$instanceSetupSupported$",r),k=()=>Z(pt,"$isAuthenticating$",r),b=()=>Z(ut,"$isCancelling$",r),J=()=>Z(te,"$deviceFlow$",r),j=()=>Z(_t,"$cancelOutcome$",r),vt=()=>Z(ae,"$error$",r),[r,q]=Ie();let T=W(m,"compact",7,!1),w=W(m,"onCancel",7);const N=`${D}-host`,Q=`${D}-host-help`,R=`${D}-host-error`,X=`${D}-token`,ct=jt(),pt=Rt(),ut=Ve(),_t=je(),te=Yt(),ee=Re(),ae=Ye(),ne=Ze();let bt=kt(Ge(jt.select(K.state))),St=kt(!1),tt=kt(""),ft=kt(!1);const p=g(()=>qe(t(bt))),wt=g(()=>t(ft)||t(p)===H()&&st()===!1),Ct=g(()=>t(p)?Ke(t(p)):null),re=g(()=>_()&&t(p)!==null&&t(tt).trim().length>0);Bt(()=>{const c=H();t(St)||M(bt,c,!0)}),Bt(()=>{_()||M(tt,"")}),Le(()=>{const c=()=>{const e=K.state;Rt.select(e)&&Yt.select(e)&&K.dispatch(Wt())};return window.addEventListener("focus",c),()=>window.removeEventListener("focus",c)});function Gt(){!_()||!t(p)||t(p)===H()||k()||b()||K.dispatch(He(t(p)))}function se(){M(St,!0),M(tt,"")}function Lt(){!_()||!t(p)||k()||b()||K.dispatch(Me(t(p)))}function At(){const c=t(tt).trim();!_()||!c||!t(p)||k()||b()||(K.dispatch(We(t(p),c)),M(tt,""))}function Pt(){!_()||b()||(k()&&K.dispatch(Vt()),M(ft,!0))}function oe(){M(ft,!1)}function le(){b()||K.dispatch(Vt())}function ie(){t(Ct)&&Oe(t(Ct),{})}function ce(c){c.key==="Enter"&&(c.preventDefault(),Gt(),t(wt)?document.getElementById(X)?.focus():Lt())}function ue(c){c.key==="Enter"&&(c.preventDefault(),At())}const zt=g(()=>T()?"sm":"xl"),gt=g(()=>T()?"sm":"default");var de={get compact(){return T()},set compact(c=!1){T(c),V()},get onCancel(){return w()},set onCancel(c){w(c),V()},$set:Jt,$on:(c,e)=>Nt(m,c,e)},$t=ca();{const c=e=>{z(e,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return b()},onclick:le,children:(a,u)=>{h();var f=x();s(G=>o(f,G),[()=>b()?i.lib_gitlabConnect_cancelling_label():i.lib_gitlabConnect_cancel_label()]),n(a,f)},$$slots:{default:!0}})};var Dt=E($t);{var ve=e=>{var a=Qe(),u=B(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_updateRequired_description()]),n(e,a)};P(Dt,e=>{_()||e(ve)})}var Tt=l(Dt,2);{var pe=e=>{var a=Xe(),u=B(a,!0);s(()=>o(u,H())),n(e,a)};P(Tt,e=>{(k()||b())&&e(pe)})}var Ft=l(Tt,2);{var _e=e=>{var a=ta(),u=E(a);{let at=g(()=>i.lib_gitlabConnect_openGitlab_label());Ee(u,{get userCode(){return J().userCode},get verificationUri(){return J().verificationUri},get openLabel(){return t(at)},get compact(){return T()}})}var f=l(u,2),G=E(f);Ht(G,{size:16,class:"shrink-0"});var S=l(G,2),ot=B(S,!0),et=l(S,2);{let at=g(()=>b()||!_());z(et,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(at)},onclick:Pt,children:(It,Et)=>{h();var d=x();s($=>o(d,$),[()=>i.lib_gitlabConnect_useToken_label()]),n(It,d)},$$slots:{default:!0}})}var dt=l(et,2);c(dt),O(f),O(a),s(at=>o(ot,at),[()=>i.lib_gitlabConnect_waitingForAuthorization_label()]),n(e,a)},be=e=>{var a=ea(),u=E(a);Ht(u,{size:16,class:"shrink-0"});var f=l(u,2),G=B(f,!0),S=l(f,2);c(S),O(a),s(ot=>o(G,ot),[()=>i.lib_gitlabConnect_connecting_label()]),n(e,a)},fe=e=>{var a=sa(),u=yt(a),f=E(u);Kt(f,{get for(){return N},children:(d,$)=>{h();var y=x();s(L=>o(y,L),[()=>i.lib_gitlabConnect_host_label()]),n(d,y)},$$slots:{default:!0}});var G=l(f,2);{let d=g(()=>!_()),$=g(()=>!t(p)||void 0),y=g(()=>t(p)?Q:`${Q} ${R}`);Mt(G,{get id(){return N},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(d)},get"aria-invalid"(){return t($)},get"aria-describedby"(){return t(y)},get placeholder(){return Be},oninput:se,onchange:Gt,onkeydown:ce,get value(){return t(bt)},set value(L){M(bt,L,!0)}})}var S=l(G,2),ot=B(S,!0),et=l(S,2);{var dt=d=>{var $=aa(),y=B($,!0);s(L=>{qt($,"id",R),o(y,L)},[()=>i.lib_gitlabConnect_invalidInstance_error()]),n(d,$)};P(et,d=>{t(p)||d(dt)})}O(u);var at=l(u,2);{var It=d=>{var $=na(),y=yt($),L=E(y);Kt(L,{get for(){return X},children:(v,U)=>{h();var lt=x();s(C=>o(lt,C),[()=>i.lib_gitlabConnect_token_label()]),n(v,lt)},$$slots:{default:!0}});var mt=l(L,2);{let v=g(()=>!_());Mt(mt,{get id(){return X},type:"password",autocomplete:"off",get disabled(){return t(v)},placeholder:"glpat-...",onkeydown:ue,get value(){return t(tt)},set value(U){M(tt,U,!0)}})}var ht=l(mt,2),F=E(ht),nt=l(F);{var xt=v=>{z(v,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:ie,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_createToken_label({host:t(p)})]),n(U,C)},$$slots:{default:!0}})};P(nt,v=>{t(Ct)&&t(p)&&v(xt)})}O(ht),O(y);var A=l(y,2),Y=E(A);{let v=g(()=>!t(re));z(Y,{variant:"primary",get size(){return t(zt)},type:"button",onclick:At,get disabled(){return t(v)},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_connect_label()]),n(U,C)},$$slots:{default:!0}})}var Ot=l(Y,2);{var ke=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",onclick:oe,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_useDevice_label()]),n(U,C)},$$slots:{default:!0}})};P(Ot,v=>{t(ft)&&!(t(p)===H()&&st()===!1)&&v(ke)})}var ye=l(Ot,2);{var Ce=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return w()},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_cancel_label()]),n(U,C)},$$slots:{default:!0}})};P(ye,v=>{w()&&v(Ce)})}O(A),s(v=>o(F,`${v??""} `),[()=>i.lib_gitlabConnect_token_description()]),n(d,$)},Et=d=>{var $=ra(),y=E($);{let F=g(()=>!t(p)||!_());z(y,{variant:"primary",get size(){return t(zt)},type:"button",onclick:Lt,get disabled(){return t(F)},children:(nt,xt)=>{h();var A=x();s(Y=>o(A,Y),[()=>i.lib_gitlabConnect_connect_label()]),n(nt,A)},$$slots:{default:!0}})}var L=l(y,2);{let F=g(()=>!_());z(L,{variant:"ghost",get size(){return t(gt)},type:"button",get disabled(){return t(F)},onclick:Pt,children:(nt,xt)=>{h();var A=x();s(Y=>o(A,Y),[()=>i.lib_gitlabConnect_useToken_label()]),n(nt,A)},$$slots:{default:!0}})}var mt=l(L,2);{var ht=F=>{z(F,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return w()},children:(nt,xt)=>{h();var A=x();s(Y=>o(A,Y),[()=>i.lib_gitlabConnect_cancel_label()]),n(nt,A)},$$slots:{default:!0}})};P(mt,F=>{w()&&F(ht)})}O($),n(d,$)};P(at,d=>{t(wt)?d(It):d(Et,-1)})}s(d=>{qt(S,"id",Q),o(ot,d)},[()=>i.lib_gitlabConnect_host_description()]),n(e,a)};P(Ft,e=>{(k()||b())&&J()?e(_e):k()||b()?e(be,1):e(fe,-1)})}var Ut=l(Ft,2);{var ge=e=>{var a=oa(),u=B(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_cancelled_label()]),n(e,a)},$e=e=>{var a=la(),u=E(a),f=B(u,!0),G=l(u,2);z(G,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return b()},onclick:()=>K.dispatch(Wt()),children:(S,ot)=>{h();var et=x();s(dt=>o(et,dt),[()=>i.lib_gitlabConnect_checkStatus_label()]),n(S,et)},$$slots:{default:!0}}),O(a),s(S=>o(f,S),[()=>j()==="already-started"?i.lib_gitlabConnect_alreadyStarted_description():i.lib_gitlabConnect_cancelFailed_description()]),n(e,a)};P(Ut,e=>{j()==="cancelled"?e(ge):(j()==="already-started"||j()==="failed")&&e($e,1)})}var me=l(Ut,2);{var he=e=>{var a=ia(),u=B(a,!0);s(()=>o(u,vt())),n(e,a)};P(me,e=>{vt()&&e(he)})}O($t)}s(()=>ze($t,1,De(T()?"space-y-2":"space-y-4"))),n(it,$t);var xe=Xt(de);return q(),xe}export{ua as G,Ne as M};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as gt}from"./
|
|
1
|
+
import{g as gt}from"./bmdvISxl.js";import{d as mt,g as lt,f as xt,e as kt}from"./Bsz0mK8i.js";import{U as _t,aZ as vt,V as bt,a_ as wt,Y as Tt,b0 as St,b as s,X as R,aW as H,B as $t,r as Mt,d as it}from"./D3VNRPKq.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,W;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var X="";W=[];for(N in v[A])this.terminals_[N]&&N>yt&&W.push("'"+this.terminals_[N]+"'");_.showPosition?X="Parse error on line "+(C+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+W.join(", ")+", got '"+(this.terminals_[b]||b)+"'":X="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(X,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:W})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as i}from"./
|
|
1
|
+
import{b as i}from"./D3VNRPKq.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as p,r as u,d as n}from"./
|
|
1
|
+
import{g as p,r as u,d as n}from"./DH_PNr-8.js";import{p as f}from"./BBGX-ci7.js";import{b as a,ay as o}from"./D3VNRPKq.js";import{M as c,c as d}from"./Bvvd2zh3.js";var v=d().RailroadAbnf.parser.LangiumParser,i=a(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=a(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=a(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=a(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=a(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=a(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=a(e=>{f(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(P(r)))},"populateDb"),R={parse:a(e=>{n.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:n}},w={parser:R,db:n,renderer:u,styles:p};export{w as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as M}from"./BvFAWM27.js";import{a as v}from"./BdWqymET.js";import{d as E}from"./DC8fssXE.js";import{Ii as o,Dd as _,CF as C,g as y,uy as O,u8 as D,fW as H,BX as L,Cd as P,Ed as R,B$ as B}from"./DomfbKVx.js";import{aY as p}from"./DkXjvKmg.js";import{d as x}from"./B0Z-1lwJ.js";import{n as F}from"./
|
|
1
|
+
import{C as M}from"./BvFAWM27.js";import{a as v}from"./BdWqymET.js";import{d as E}from"./DC8fssXE.js";import{Ii as o,Dd as _,CF as C,g as y,uy as O,u8 as D,fW as H,BX as L,Cd as P,Ed as R,B$ as B}from"./DomfbKVx.js";import{aY as p}from"./DkXjvKmg.js";import{d as x}from"./B0Z-1lwJ.js";import{n as F}from"./DUJSEf2g.js";import{o as W,e as q}from"./P80wVyai.js";const u=new v("OpenMessage"),A=150,S=15e3,N=2,Y=[150,400,800,1500,3e3],G=M;let g;function k(e){return new Promise(t=>setTimeout(t,e))}function m(e,t){const s=o.state,n=s.agentSessions?.byAgentId[e]?.messages,a=s.agentSessions?.historySegmentsByAgentId?.[e]?.messages;return!!(n?.some(r=>r.id===t)||a?.some(r=>r.id===t))}function T(e,t){const s=o.state,n=s.agentSessions?.historySegmentsByAgentId?.[e];n?.detachedFromTail!==!0||n.messages.some(r=>r.id===t)||!s.agentSessions?.byAgentId[e]?.messages?.some(r=>r.id===t)||o.dispatch(H(e))}function $(e){return o.state.chatState?.byAgentId[e]?.transcriptHydration}async function I(e,t,s){const n=Date.now()+S;let a=0;for(;Date.now()<n;){if(s.aborted)return!1;if(m(e,t))return!0;if(a>=N&&$(e)==="settled"&&!p.select(o.state,e).initialHistoryPending)return!1;a++,await k(A)}return!s.aborted&&m(e,t)}async function K(e,t,s,n){const a=Date.now()+S;for(;p.select(o.state,e).initialHistoryPending;){if(n?.aborted||Date.now()>=a)return!1;await k(A)}const r=o.state.agentSessions?.byAgentId[e];if(!r||n?.aborted)return!1;if(m(e,t))return T(e,t),!0;s??=r.workspaceId;const l=p.select(o.state,e);let c={nextToken:l.scrollbackOlderToken,prevToken:l.scrollbackGapToken,olderAnchorId:l.scrollbackOlderTokenAnchorId};o.dispatch(L(e,"seek"));const d=p.select(o.state,e).scrollbackDiscardEpoch,f=()=>!!o.state.agentSessions?.byAgentId[e]&&p.select(o.state,e).scrollbackDiscardEpoch===d;try{const i=await E.agents.getConversation(e,G,void 0,t,void 0,s);return n?.aborted||!f()||!i.messages.some(h=>h.id===t)?!1:(o.dispatch(P(e,i.messages,i.messages[0]?.seq)),i.nextToken===null&&o.dispatch(R(e)),c={nextToken:i.nextToken,prevToken:i.prevToken,olderAnchorId:i.messages[0]?.id??null},m(e,t))}catch(i){return u.warn("[seekConversationToMessage] Seek fetch failed (message may no longer exist)",{agentId:e,messageId:t,error:i}),!1}finally{f()&&o.dispatch(B(e,c))}}async function ee(e){if(e.signal?.aborted)return;g?.abort(),g=new AbortController;const t=e.signal?AbortSignal.any([g.signal,e.signal]):g.signal,{workspaceId:s,agentId:n,messageId:a,query:r,targetTabId:l}=e;u.info("[openMessage] Deep-opening conversation at message",{workspaceId:s,agentId:n,messageId:a});const c=s===y;c&&!e.contentAlreadyOpen&&(o.dispatch(_(n)),o.dispatch(C(y,n)),o.dispatch(O("chief")));const d=c?"/":q(s);if(!e.contentAlreadyOpen&&typeof window<"u"&&window.location.pathname!==d){try{c?await F(d):await W(s)}catch(w){u.warn("[openMessage] Workspace navigation failed",{workspaceId:s,error:w});return}if(t.aborted)return;if(window.location.pathname!==d){u.warn("[openMessage] Workspace navigation was not confirmed",{workspaceId:s});return}}!e.contentAlreadyOpen&&!c&&o.dispatch(D(s,{agentId:n}));const f=await I(n,a,t);f&&T(n,a);const i=f||await K(n,a,s,t);if(t.aborted)return;if(!i){u.warn("[openMessage] Message not found; conversation opened at tail",{agentId:n,messageId:a});return}const h=`open-message-${Date.now()}-${Math.random().toString(36).slice(2)}`,b={agentId:n,messageId:a,query:r,targetTabId:l,requestId:h,signal:t};for(const w of Y)setTimeout(()=>{t.aborted||x("chat:open-message",b)},w)}export{ee as openMessage,K as seekConversationToMessage};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{U as be,aZ as we,Y as _e,b0 as De,V as Se,a_ as Ce,b as l,X as dt,aW as vt,B as Me,L as U,ay as st,z as Ee,P as Ie,r as $e,bh as Ye}from"./kwSDV9fJ.js";import{g as It}from"./BdWqymET.js";import{t as Ae,d as Fe,m as Le,l as Oe,h as We,g as Zt,p as Qt,u as Pe,q as Ve,i as ze,v as Re,x as Ne,w as He,n as Be,e as Kt,j as Jt,k as te,s as ee,a as re}from"./SYyiTNGD.js";function qe(t){return t}var Tt=1,Yt=2,Ft=3,xt=4,se=1e-6;function Ge(t){return"translate("+t+",0)"}function Xe(t){return"translate(0,"+t+")"}function je(t){return e=>+t(e)}function Ue(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),s=>+t(s)+e}function Ze(){return!this.__axis}function de(t,e){var s=[],r=null,i=null,g=6,y=6,b=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,L=t===Tt||t===xt?-1:1,_=t===xt||t===Yt?"x":"y",W=t===Tt||t===Ft?Ge:Xe;function w(D){var N=r??(e.ticks?e.ticks.apply(e,s):e.domain()),V=i??(e.tickFormat?e.tickFormat.apply(e,s):qe),k=Math.max(g,0)+b,M=e.range(),P=+M[0]+S,O=+M[M.length-1]+S,B=(e.bandwidth?Ue:je)(e.copy(),S),H=D.selection?D.selection():D,I=H.selectAll(".domain").data([null]),x=H.selectAll(".tick").data(N,e).order(),h=x.exit(),E=x.enter().append("g").attr("class","tick"),f=x.select("line"),T=x.select("text");I=I.merge(I.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(E),f=f.merge(E.append("line").attr("stroke","currentColor").attr(_+"2",L*g)),T=T.merge(E.append("text").attr("fill","currentColor").attr(_,L*k).attr("dy",t===Tt?"0em":t===Ft?"0.71em":"0.32em")),D!==H&&(I=I.transition(D),x=x.transition(D),f=f.transition(D),T=T.transition(D),h=h.transition(D).attr("opacity",se).attr("transform",function(v){return isFinite(v=B(v))?W(v+S):this.getAttribute("transform")}),E.attr("opacity",se).attr("transform",function(v){var p=this.parentNode.__axis;return W((p&&isFinite(p=p(v))?p:B(v))+S)})),h.remove(),I.attr("d",t===xt||t===Yt?y?"M"+L*y+","+P+"H"+S+"V"+O+"H"+L*y:"M"+S+","+P+"V"+O:y?"M"+P+","+L*y+"V"+S+"H"+O+"V"+L*y:"M"+P+","+S+"H"+O),x.attr("opacity",1).attr("transform",function(v){return W(B(v)+S)}),f.attr(_+"2",L*g),T.attr(_,L*k).text(V),H.filter(Ze).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Yt?"start":t===xt?"end":"middle"),H.each(function(){this.__axis=B})}return w.scale=function(D){return arguments.length?(e=D,w):e},w.ticks=function(){return s=Array.from(arguments),w},w.tickArguments=function(D){return arguments.length?(s=D==null?[]:Array.from(D),w):s.slice()},w.tickValues=function(D){return arguments.length?(r=D==null?null:Array.from(D),w):r&&r.slice()},w.tickFormat=function(D){return arguments.length?(i=D,w):i},w.tickSize=function(D){return arguments.length?(g=y=+D,w):g},w.tickSizeInner=function(D){return arguments.length?(g=+D,w):g},w.tickSizeOuter=function(D){return arguments.length?(y=+D,w):y},w.tickPadding=function(D){return arguments.length?(b=+D,w):b},w.offset=function(D){return arguments.length?(S=+D,w):S},w}function Qe(t){return de(Tt,t)}function Ke(t){return de(Ft,t)}var bt={exports:{}},Je=bt.exports,ne;function tr(){return ne||(ne=1,(function(t,e){(function(s,r){t.exports=r()})(Je,(function(){var s="day";return function(r,i,g){var y=function(L){return L.add(4-L.isoWeekday(),s)},b=i.prototype;b.isoWeekYear=function(){return y(this).year()},b.isoWeek=function(L){if(!this.$utils().u(L))return this.add(7*(L-this.isoWeek()),s);var _,W,w,D,N=y(this),V=(_=this.isoWeekYear(),W=this.$u,w=(W?g.utc:g)().year(_).startOf("year"),D=4-w.isoWeekday(),w.isoWeekday()>4&&(D+=7),w.add(D,s));return N.diff(V,"week")+1},b.isoWeekday=function(L){return this.$utils().u(L)?this.day()||7:this.day(this.day()%7?L:L-7)};var S=b.startOf;b.startOf=function(L,_){var W=this.$utils(),w=!!W.u(_)||_;return W.p(L)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(L,_)}}}))})(bt)),bt.exports}var er=tr();const rr=It(er);var wt={exports:{}},sr=wt.exports,ie;function nr(){return ie||(ie=1,(function(t,e){(function(s,r){t.exports=r()})(sr,(function(){var s={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,g=/\d\d/,y=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,S={},L=function(k){return(k=+k)+(k>68?1900:2e3)},_=function(k){return function(M){this[k]=+M}},W=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(M){if(!M||M==="Z")return 0;var P=M.match(/([+-]|\d\d)/g),O=60*P[1]+(+P[2]||0);return O===0?0:P[0]==="+"?-O:O})(k)}],w=function(k){var M=S[k];return M&&(M.indexOf?M:M.s.concat(M.f))},D=function(k,M){var P,O=S.meridiem;if(O){for(var B=1;B<=24;B+=1)if(k.indexOf(O(B,0,M))>-1){P=B>12;break}}else P=k===(M?"pm":"PM");return P},N={A:[b,function(k){this.afternoon=D(k,!1)}],a:[b,function(k){this.afternoon=D(k,!0)}],Q:[i,function(k){this.month=3*(k-1)+1}],S:[i,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[y,_("seconds")],ss:[y,_("seconds")],m:[y,_("minutes")],mm:[y,_("minutes")],H:[y,_("hours")],h:[y,_("hours")],HH:[y,_("hours")],hh:[y,_("hours")],D:[y,_("day")],DD:[g,_("day")],Do:[b,function(k){var M=S.ordinal,P=k.match(/\d+/);if(this.day=P[0],M)for(var O=1;O<=31;O+=1)M(O).replace(/\[|\]/g,"")===k&&(this.day=O)}],w:[y,_("week")],ww:[g,_("week")],M:[y,_("month")],MM:[g,_("month")],MMM:[b,function(k){var M=w("months"),P=(w("monthsShort")||M.map((function(O){return O.slice(0,3)}))).indexOf(k)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[b,function(k){var M=w("months").indexOf(k)+1;if(M<1)throw new Error;this.month=M%12||M}],Y:[/[+-]?\d+/,_("year")],YY:[g,function(k){this.year=L(k)}],YYYY:[/\d{4}/,_("year")],Z:W,ZZ:W};function V(k){var M,P;M=k,P=S&&S.formats;for(var O=(k=M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(f,T,v){var p=v&&v.toUpperCase();return T||P[v]||s[v]||P[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(a,d,m){return d||m.slice(1)}))}))).match(r),B=O.length,H=0;H<B;H+=1){var I=O[H],x=N[I],h=x&&x[0],E=x&&x[1];O[H]=E?{regex:h,parser:E}:I.replace(/^\[|\]$/g,"")}return function(f){for(var T={},v=0,p=0;v<B;v+=1){var a=O[v];if(typeof a=="string")p+=a.length;else{var d=a.regex,m=a.parser,u=f.slice(p),C=d.exec(u)[0];m.call(T,C),f=f.replace(C,"")}}return(function(n){var $=n.afternoon;if($!==void 0){var o=n.hours;$?o<12&&(n.hours+=12):o===12&&(n.hours=0),delete n.afternoon}})(T),T}}return function(k,M,P){P.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(L=k.parseTwoDigitYear);var O=M.prototype,B=O.parse;O.parse=function(H){var I=H.date,x=H.utc,h=H.args;this.$u=x;var E=h[1];if(typeof E=="string"){var f=h[2]===!0,T=h[3]===!0,v=f||T,p=h[2];T&&(p=h[2]),S=this.$locale(),!f&&p&&(S=P.Ls[p]),this.$d=(function(u,C,n,$){try{if(["x","X"].indexOf(C)>-1)return new Date((C==="X"?1e3:1)*u);var o=V(C)(u),G=o.year,c=o.month,Y=o.day,A=o.hours,R=o.minutes,F=o.seconds,q=o.milliseconds,z=o.zone,nt=o.week,at=new Date,yt=Y||(G||c?1:at.getDate()),lt=G||at.getFullYear(),X=0;G&&!c||(X=c>0?c-1:at.getMonth());var K,Z=A||0,ot=R||0,J=F||0,it=q||0;return z?new Date(Date.UTC(lt,X,yt,Z,ot,J,it+60*z.offset*1e3)):n?new Date(Date.UTC(lt,X,yt,Z,ot,J,it)):(K=new Date(lt,X,yt,Z,ot,J,it),nt&&(K=$(K).week(nt).toDate()),K)}catch{return new Date("")}})(I,E,x,P),this.init(),p&&p!==!0&&(this.$L=this.locale(p).$L),v&&I!=this.format(E)&&(this.$d=new Date("")),S={}}else if(E instanceof Array)for(var a=E.length,d=1;d<=a;d+=1){h[1]=E[d-1];var m=P.apply(this,h);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}d===a&&(this.$d=new Date(""))}else B.call(this,H)}}}))})(wt)),wt.exports}var ir=nr();const ar=It(ir);var _t={exports:{}},or=_t.exports,ae;function cr(){return ae||(ae=1,(function(t,e){(function(s,r){t.exports=r()})(or,(function(){return function(s,r){var i=r.prototype,g=i.format;i.format=function(y){var b=this,S=this.$locale();if(!this.isValid())return g.bind(this)(y);var L=this.$utils(),_=(y||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(W){switch(W){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return S.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return S.ordinal(b.week(),"W");case"w":case"ww":return L.s(b.week(),W==="w"?1:2,"0");case"W":case"WW":return L.s(b.isoWeek(),W==="W"?1:2,"0");case"k":case"kk":return L.s(String(b.$H===0?24:b.$H),W==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return W}}));return g.bind(this)(_)}}}))})(_t)),_t.exports}var lr=cr();const ur=It(lr);var Dt={exports:{}},dr=Dt.exports,oe;function fr(){return oe||(oe=1,(function(t,e){(function(s,r){t.exports=r()})(dr,(function(){var s,r,i=1e3,g=6e4,y=36e5,b=864e5,S=31536e6,L=2628e6,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,W=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,w={years:S,months:L,days:b,hours:y,minutes:g,seconds:i,milliseconds:1,weeks:6048e5},D=function(I){return I instanceof B},N=function(I,x,h){return new B(I,h,x.$l)},V=function(I){return r.p(I)+"s"},k=function(I){return I<0},M=function(I){return k(I)?Math.ceil(I):Math.floor(I)},P=function(I){return Math.abs(I)},O=function(I,x){return I?k(I)?{negative:!0,format:""+P(I)+x}:{negative:!1,format:""+I+x}:{negative:!1,format:""}},B=(function(){function I(h,E,f){var T=this;if(this.$d={},this.$l=f,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),E)return N(h*w[V(E)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(a){T.$d[V(a)]=h[a]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(_);if(v){var p=v.slice(2).map((function(a){return a!=null?Number(a):0}));return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var x=I.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(E,f){return E+(h.$d[f]||0)*w[f]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=M(h/S),h%=S,this.$d.months=M(h/L),h%=L,this.$d.days=M(h/b),h%=b,this.$d.hours=M(h/y),h%=y,this.$d.minutes=M(h/g),h%=g,this.$d.seconds=M(h/i),h%=i,this.$d.milliseconds=h},x.toISOString=function(){var h=O(this.$d.years,"Y"),E=O(this.$d.months,"M"),f=+this.$d.days||0;this.$d.weeks&&(f+=7*this.$d.weeks);var T=O(f,"D"),v=O(this.$d.hours,"H"),p=O(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var d=O(a,"S"),m=h.negative||E.negative||T.negative||v.negative||p.negative||d.negative,u=v.format||p.format||d.format?"T":"",C=(m?"-":"")+"P"+h.format+E.format+T.format+u+v.format+p.format+d.format;return C==="P"||C==="-P"?"P0D":C},x.toJSON=function(){return this.toISOString()},x.format=function(h){var E=h||"YYYY-MM-DDTHH:mm:ss",f={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return E.replace(W,(function(T,v){return v||String(f[T])}))},x.as=function(h){return this.$ms/w[V(h)]},x.get=function(h){var E=this.$ms,f=V(h);return f==="milliseconds"?E%=1e3:E=f==="weeks"?M(E/w[f]):this.$d[f],E||0},x.add=function(h,E,f){var T;return T=E?h*w[V(E)]:D(h)?h.$ms:N(h,this).$ms,N(this.$ms+T*(f?-1:1),this)},x.subtract=function(h,E){return this.add(h,E,!0)},x.locale=function(h){var E=this.clone();return E.$l=h,E},x.clone=function(){return N(this.$ms,this)},x.humanize=function(h){return s().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},I})(),H=function(I,x,h){return I.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")};return function(I,x,h){s=h,r=h().$utils(),h.duration=function(T,v){var p=h.locale();return N(T,{$l:p},v)},h.isDuration=D;var E=x.prototype.add,f=x.prototype.subtract;x.prototype.add=function(T,v){return D(T)?H(this,T,1):E.bind(this)(T,v)},x.prototype.subtract=function(T,v){return D(T)?H(this,T,-1):f.bind(this)(T,v)}}}))})(Dt)),Dt.exports}var hr=fr();const mr=It(hr);var Lt=(function(){var t=l(function(p,a,d,m){for(d=d||{},m=p.length;m--;d[p[m]]=a);return d},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],s=[1,26],r=[1,27],i=[1,28],g=[1,29],y=[1,30],b=[1,31],S=[1,32],L=[1,33],_=[1,34],W=[1,9],w=[1,10],D=[1,11],N=[1,12],V=[1,13],k=[1,14],M=[1,15],P=[1,16],O=[1,19],B=[1,20],H=[1,21],I=[1,22],x=[1,23],h=[1,25],E=[1,35],f={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(function(a,d,m,u,C,n,$){var o=n.length-1;switch(C){case 1:return n[o-1];case 2:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:this.$=n[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[o].substr(18);break;case 19:u.TopAxis(),this.$=n[o].substr(8);break;case 20:u.setAxisFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 21:u.setTickInterval(n[o].substr(13)),this.$=n[o].substr(13);break;case 22:u.setExcludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 23:u.setIncludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 24:u.setTodayMarker(n[o].substr(12)),this.$=n[o].substr(12);break;case 27:u.setDiagramTitle(n[o].substr(6)),this.$=n[o].substr(6);break;case 28:this.$=n[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[o].substr(8)),this.$=n[o].substr(8);break;case 33:u.addTask(n[o-1],n[o]),this.$="task";break;case 34:this.$=n[o-1],u.setClickEvent(n[o-1],n[o],null);break;case 35:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],n[o]);break;case 36:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],null),u.setLink(n[o-2],n[o]);break;case 37:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-2],n[o-1]),u.setLink(n[o-3],n[o]);break;case 38:this.$=n[o-2],u.setClickEvent(n[o-2],n[o],null),u.setLink(n[o-2],n[o-1]);break;case 39:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-1],n[o]),u.setLink(n[o-3],n[o-2]);break;case 40:this.$=n[o-1],u.setLink(n[o-1],n[o]);break;case 41:case 47:this.$=n[o-1]+" "+n[o];break;case 42:case 43:case 45:this.$=n[o-2]+" "+n[o-1]+" "+n[o];break;case 44:case 46:this.$=n[o-3]+" "+n[o-2]+" "+n[o-1]+" "+n[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:l(function(a,d){if(d.recoverable)this.trace(a);else{var m=new Error(a);throw m.hash=d,m}},"parseError"),parse:l(function(a){var d=this,m=[0],u=[],C=[null],n=[],$=this.table,o="",G=0,c=0,Y=2,A=1,R=n.slice.call(arguments,1),F=Object.create(this.lexer),q={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(q.yy[z]=this.yy[z]);F.setInput(a,q.yy),q.yy.lexer=F,q.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var nt=F.yylloc;n.push(nt);var at=F.options&&F.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(Q){m.length=m.length-2*Q,C.length=C.length-Q,n.length=n.length-Q}l(yt,"popStack");function lt(){var Q;return Q=u.pop()||F.lex()||A,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}l(lt,"lex");for(var X,K,Z,ot,J={},it,tt,Ut,pt;;){if(K=m[m.length-1],this.defaultActions[K]?Z=this.defaultActions[K]:((X===null||typeof X>"u")&&(X=lt()),Z=$[K]&&$[K][X]),typeof Z>"u"||!Z.length||!Z[0]){var $t="";pt=[];for(it in $[K])this.terminals_[it]&&it>Y&&pt.push("'"+this.terminals_[it]+"'");F.showPosition?$t="Parse error on line "+(G+1)+`:
|
|
1
|
+
import{U as be,aZ as we,Y as _e,b0 as De,V as Se,a_ as Ce,b as l,X as dt,aW as vt,B as Me,L as U,ay as st,z as Ee,P as Ie,r as $e,bh as Ye}from"./D3VNRPKq.js";import{g as It}from"./BdWqymET.js";import{t as Ae,d as Fe,m as Le,l as Oe,h as We,g as Zt,p as Qt,u as Pe,q as Ve,i as ze,v as Re,x as Ne,w as He,n as Be,e as Kt,j as Jt,k as te,s as ee,a as re}from"./91BV6KFP.js";function qe(t){return t}var Tt=1,Yt=2,Ft=3,xt=4,se=1e-6;function Ge(t){return"translate("+t+",0)"}function Xe(t){return"translate(0,"+t+")"}function je(t){return e=>+t(e)}function Ue(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),s=>+t(s)+e}function Ze(){return!this.__axis}function de(t,e){var s=[],r=null,i=null,g=6,y=6,b=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,L=t===Tt||t===xt?-1:1,_=t===xt||t===Yt?"x":"y",W=t===Tt||t===Ft?Ge:Xe;function w(D){var N=r??(e.ticks?e.ticks.apply(e,s):e.domain()),V=i??(e.tickFormat?e.tickFormat.apply(e,s):qe),k=Math.max(g,0)+b,M=e.range(),P=+M[0]+S,O=+M[M.length-1]+S,B=(e.bandwidth?Ue:je)(e.copy(),S),H=D.selection?D.selection():D,I=H.selectAll(".domain").data([null]),x=H.selectAll(".tick").data(N,e).order(),h=x.exit(),E=x.enter().append("g").attr("class","tick"),f=x.select("line"),T=x.select("text");I=I.merge(I.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(E),f=f.merge(E.append("line").attr("stroke","currentColor").attr(_+"2",L*g)),T=T.merge(E.append("text").attr("fill","currentColor").attr(_,L*k).attr("dy",t===Tt?"0em":t===Ft?"0.71em":"0.32em")),D!==H&&(I=I.transition(D),x=x.transition(D),f=f.transition(D),T=T.transition(D),h=h.transition(D).attr("opacity",se).attr("transform",function(v){return isFinite(v=B(v))?W(v+S):this.getAttribute("transform")}),E.attr("opacity",se).attr("transform",function(v){var p=this.parentNode.__axis;return W((p&&isFinite(p=p(v))?p:B(v))+S)})),h.remove(),I.attr("d",t===xt||t===Yt?y?"M"+L*y+","+P+"H"+S+"V"+O+"H"+L*y:"M"+S+","+P+"V"+O:y?"M"+P+","+L*y+"V"+S+"H"+O+"V"+L*y:"M"+P+","+S+"H"+O),x.attr("opacity",1).attr("transform",function(v){return W(B(v)+S)}),f.attr(_+"2",L*g),T.attr(_,L*k).text(V),H.filter(Ze).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Yt?"start":t===xt?"end":"middle"),H.each(function(){this.__axis=B})}return w.scale=function(D){return arguments.length?(e=D,w):e},w.ticks=function(){return s=Array.from(arguments),w},w.tickArguments=function(D){return arguments.length?(s=D==null?[]:Array.from(D),w):s.slice()},w.tickValues=function(D){return arguments.length?(r=D==null?null:Array.from(D),w):r&&r.slice()},w.tickFormat=function(D){return arguments.length?(i=D,w):i},w.tickSize=function(D){return arguments.length?(g=y=+D,w):g},w.tickSizeInner=function(D){return arguments.length?(g=+D,w):g},w.tickSizeOuter=function(D){return arguments.length?(y=+D,w):y},w.tickPadding=function(D){return arguments.length?(b=+D,w):b},w.offset=function(D){return arguments.length?(S=+D,w):S},w}function Qe(t){return de(Tt,t)}function Ke(t){return de(Ft,t)}var bt={exports:{}},Je=bt.exports,ne;function tr(){return ne||(ne=1,(function(t,e){(function(s,r){t.exports=r()})(Je,(function(){var s="day";return function(r,i,g){var y=function(L){return L.add(4-L.isoWeekday(),s)},b=i.prototype;b.isoWeekYear=function(){return y(this).year()},b.isoWeek=function(L){if(!this.$utils().u(L))return this.add(7*(L-this.isoWeek()),s);var _,W,w,D,N=y(this),V=(_=this.isoWeekYear(),W=this.$u,w=(W?g.utc:g)().year(_).startOf("year"),D=4-w.isoWeekday(),w.isoWeekday()>4&&(D+=7),w.add(D,s));return N.diff(V,"week")+1},b.isoWeekday=function(L){return this.$utils().u(L)?this.day()||7:this.day(this.day()%7?L:L-7)};var S=b.startOf;b.startOf=function(L,_){var W=this.$utils(),w=!!W.u(_)||_;return W.p(L)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(L,_)}}}))})(bt)),bt.exports}var er=tr();const rr=It(er);var wt={exports:{}},sr=wt.exports,ie;function nr(){return ie||(ie=1,(function(t,e){(function(s,r){t.exports=r()})(sr,(function(){var s={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,g=/\d\d/,y=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,S={},L=function(k){return(k=+k)+(k>68?1900:2e3)},_=function(k){return function(M){this[k]=+M}},W=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(M){if(!M||M==="Z")return 0;var P=M.match(/([+-]|\d\d)/g),O=60*P[1]+(+P[2]||0);return O===0?0:P[0]==="+"?-O:O})(k)}],w=function(k){var M=S[k];return M&&(M.indexOf?M:M.s.concat(M.f))},D=function(k,M){var P,O=S.meridiem;if(O){for(var B=1;B<=24;B+=1)if(k.indexOf(O(B,0,M))>-1){P=B>12;break}}else P=k===(M?"pm":"PM");return P},N={A:[b,function(k){this.afternoon=D(k,!1)}],a:[b,function(k){this.afternoon=D(k,!0)}],Q:[i,function(k){this.month=3*(k-1)+1}],S:[i,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[y,_("seconds")],ss:[y,_("seconds")],m:[y,_("minutes")],mm:[y,_("minutes")],H:[y,_("hours")],h:[y,_("hours")],HH:[y,_("hours")],hh:[y,_("hours")],D:[y,_("day")],DD:[g,_("day")],Do:[b,function(k){var M=S.ordinal,P=k.match(/\d+/);if(this.day=P[0],M)for(var O=1;O<=31;O+=1)M(O).replace(/\[|\]/g,"")===k&&(this.day=O)}],w:[y,_("week")],ww:[g,_("week")],M:[y,_("month")],MM:[g,_("month")],MMM:[b,function(k){var M=w("months"),P=(w("monthsShort")||M.map((function(O){return O.slice(0,3)}))).indexOf(k)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[b,function(k){var M=w("months").indexOf(k)+1;if(M<1)throw new Error;this.month=M%12||M}],Y:[/[+-]?\d+/,_("year")],YY:[g,function(k){this.year=L(k)}],YYYY:[/\d{4}/,_("year")],Z:W,ZZ:W};function V(k){var M,P;M=k,P=S&&S.formats;for(var O=(k=M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(f,T,v){var p=v&&v.toUpperCase();return T||P[v]||s[v]||P[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(a,d,m){return d||m.slice(1)}))}))).match(r),B=O.length,H=0;H<B;H+=1){var I=O[H],x=N[I],h=x&&x[0],E=x&&x[1];O[H]=E?{regex:h,parser:E}:I.replace(/^\[|\]$/g,"")}return function(f){for(var T={},v=0,p=0;v<B;v+=1){var a=O[v];if(typeof a=="string")p+=a.length;else{var d=a.regex,m=a.parser,u=f.slice(p),C=d.exec(u)[0];m.call(T,C),f=f.replace(C,"")}}return(function(n){var $=n.afternoon;if($!==void 0){var o=n.hours;$?o<12&&(n.hours+=12):o===12&&(n.hours=0),delete n.afternoon}})(T),T}}return function(k,M,P){P.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(L=k.parseTwoDigitYear);var O=M.prototype,B=O.parse;O.parse=function(H){var I=H.date,x=H.utc,h=H.args;this.$u=x;var E=h[1];if(typeof E=="string"){var f=h[2]===!0,T=h[3]===!0,v=f||T,p=h[2];T&&(p=h[2]),S=this.$locale(),!f&&p&&(S=P.Ls[p]),this.$d=(function(u,C,n,$){try{if(["x","X"].indexOf(C)>-1)return new Date((C==="X"?1e3:1)*u);var o=V(C)(u),G=o.year,c=o.month,Y=o.day,A=o.hours,R=o.minutes,F=o.seconds,q=o.milliseconds,z=o.zone,nt=o.week,at=new Date,yt=Y||(G||c?1:at.getDate()),lt=G||at.getFullYear(),X=0;G&&!c||(X=c>0?c-1:at.getMonth());var K,Z=A||0,ot=R||0,J=F||0,it=q||0;return z?new Date(Date.UTC(lt,X,yt,Z,ot,J,it+60*z.offset*1e3)):n?new Date(Date.UTC(lt,X,yt,Z,ot,J,it)):(K=new Date(lt,X,yt,Z,ot,J,it),nt&&(K=$(K).week(nt).toDate()),K)}catch{return new Date("")}})(I,E,x,P),this.init(),p&&p!==!0&&(this.$L=this.locale(p).$L),v&&I!=this.format(E)&&(this.$d=new Date("")),S={}}else if(E instanceof Array)for(var a=E.length,d=1;d<=a;d+=1){h[1]=E[d-1];var m=P.apply(this,h);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}d===a&&(this.$d=new Date(""))}else B.call(this,H)}}}))})(wt)),wt.exports}var ir=nr();const ar=It(ir);var _t={exports:{}},or=_t.exports,ae;function cr(){return ae||(ae=1,(function(t,e){(function(s,r){t.exports=r()})(or,(function(){return function(s,r){var i=r.prototype,g=i.format;i.format=function(y){var b=this,S=this.$locale();if(!this.isValid())return g.bind(this)(y);var L=this.$utils(),_=(y||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(W){switch(W){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return S.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return S.ordinal(b.week(),"W");case"w":case"ww":return L.s(b.week(),W==="w"?1:2,"0");case"W":case"WW":return L.s(b.isoWeek(),W==="W"?1:2,"0");case"k":case"kk":return L.s(String(b.$H===0?24:b.$H),W==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return W}}));return g.bind(this)(_)}}}))})(_t)),_t.exports}var lr=cr();const ur=It(lr);var Dt={exports:{}},dr=Dt.exports,oe;function fr(){return oe||(oe=1,(function(t,e){(function(s,r){t.exports=r()})(dr,(function(){var s,r,i=1e3,g=6e4,y=36e5,b=864e5,S=31536e6,L=2628e6,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,W=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,w={years:S,months:L,days:b,hours:y,minutes:g,seconds:i,milliseconds:1,weeks:6048e5},D=function(I){return I instanceof B},N=function(I,x,h){return new B(I,h,x.$l)},V=function(I){return r.p(I)+"s"},k=function(I){return I<0},M=function(I){return k(I)?Math.ceil(I):Math.floor(I)},P=function(I){return Math.abs(I)},O=function(I,x){return I?k(I)?{negative:!0,format:""+P(I)+x}:{negative:!1,format:""+I+x}:{negative:!1,format:""}},B=(function(){function I(h,E,f){var T=this;if(this.$d={},this.$l=f,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),E)return N(h*w[V(E)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(a){T.$d[V(a)]=h[a]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(_);if(v){var p=v.slice(2).map((function(a){return a!=null?Number(a):0}));return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var x=I.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(E,f){return E+(h.$d[f]||0)*w[f]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=M(h/S),h%=S,this.$d.months=M(h/L),h%=L,this.$d.days=M(h/b),h%=b,this.$d.hours=M(h/y),h%=y,this.$d.minutes=M(h/g),h%=g,this.$d.seconds=M(h/i),h%=i,this.$d.milliseconds=h},x.toISOString=function(){var h=O(this.$d.years,"Y"),E=O(this.$d.months,"M"),f=+this.$d.days||0;this.$d.weeks&&(f+=7*this.$d.weeks);var T=O(f,"D"),v=O(this.$d.hours,"H"),p=O(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var d=O(a,"S"),m=h.negative||E.negative||T.negative||v.negative||p.negative||d.negative,u=v.format||p.format||d.format?"T":"",C=(m?"-":"")+"P"+h.format+E.format+T.format+u+v.format+p.format+d.format;return C==="P"||C==="-P"?"P0D":C},x.toJSON=function(){return this.toISOString()},x.format=function(h){var E=h||"YYYY-MM-DDTHH:mm:ss",f={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return E.replace(W,(function(T,v){return v||String(f[T])}))},x.as=function(h){return this.$ms/w[V(h)]},x.get=function(h){var E=this.$ms,f=V(h);return f==="milliseconds"?E%=1e3:E=f==="weeks"?M(E/w[f]):this.$d[f],E||0},x.add=function(h,E,f){var T;return T=E?h*w[V(E)]:D(h)?h.$ms:N(h,this).$ms,N(this.$ms+T*(f?-1:1),this)},x.subtract=function(h,E){return this.add(h,E,!0)},x.locale=function(h){var E=this.clone();return E.$l=h,E},x.clone=function(){return N(this.$ms,this)},x.humanize=function(h){return s().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},I})(),H=function(I,x,h){return I.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")};return function(I,x,h){s=h,r=h().$utils(),h.duration=function(T,v){var p=h.locale();return N(T,{$l:p},v)},h.isDuration=D;var E=x.prototype.add,f=x.prototype.subtract;x.prototype.add=function(T,v){return D(T)?H(this,T,1):E.bind(this)(T,v)},x.prototype.subtract=function(T,v){return D(T)?H(this,T,-1):f.bind(this)(T,v)}}}))})(Dt)),Dt.exports}var hr=fr();const mr=It(hr);var Lt=(function(){var t=l(function(p,a,d,m){for(d=d||{},m=p.length;m--;d[p[m]]=a);return d},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],s=[1,26],r=[1,27],i=[1,28],g=[1,29],y=[1,30],b=[1,31],S=[1,32],L=[1,33],_=[1,34],W=[1,9],w=[1,10],D=[1,11],N=[1,12],V=[1,13],k=[1,14],M=[1,15],P=[1,16],O=[1,19],B=[1,20],H=[1,21],I=[1,22],x=[1,23],h=[1,25],E=[1,35],f={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(function(a,d,m,u,C,n,$){var o=n.length-1;switch(C){case 1:return n[o-1];case 2:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:this.$=n[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[o].substr(18);break;case 19:u.TopAxis(),this.$=n[o].substr(8);break;case 20:u.setAxisFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 21:u.setTickInterval(n[o].substr(13)),this.$=n[o].substr(13);break;case 22:u.setExcludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 23:u.setIncludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 24:u.setTodayMarker(n[o].substr(12)),this.$=n[o].substr(12);break;case 27:u.setDiagramTitle(n[o].substr(6)),this.$=n[o].substr(6);break;case 28:this.$=n[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[o].substr(8)),this.$=n[o].substr(8);break;case 33:u.addTask(n[o-1],n[o]),this.$="task";break;case 34:this.$=n[o-1],u.setClickEvent(n[o-1],n[o],null);break;case 35:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],n[o]);break;case 36:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],null),u.setLink(n[o-2],n[o]);break;case 37:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-2],n[o-1]),u.setLink(n[o-3],n[o]);break;case 38:this.$=n[o-2],u.setClickEvent(n[o-2],n[o],null),u.setLink(n[o-2],n[o-1]);break;case 39:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-1],n[o]),u.setLink(n[o-3],n[o-2]);break;case 40:this.$=n[o-1],u.setLink(n[o-1],n[o]);break;case 41:case 47:this.$=n[o-1]+" "+n[o];break;case 42:case 43:case 45:this.$=n[o-2]+" "+n[o-1]+" "+n[o];break;case 44:case 46:this.$=n[o-3]+" "+n[o-2]+" "+n[o-1]+" "+n[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:l(function(a,d){if(d.recoverable)this.trace(a);else{var m=new Error(a);throw m.hash=d,m}},"parseError"),parse:l(function(a){var d=this,m=[0],u=[],C=[null],n=[],$=this.table,o="",G=0,c=0,Y=2,A=1,R=n.slice.call(arguments,1),F=Object.create(this.lexer),q={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(q.yy[z]=this.yy[z]);F.setInput(a,q.yy),q.yy.lexer=F,q.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var nt=F.yylloc;n.push(nt);var at=F.options&&F.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(Q){m.length=m.length-2*Q,C.length=C.length-Q,n.length=n.length-Q}l(yt,"popStack");function lt(){var Q;return Q=u.pop()||F.lex()||A,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}l(lt,"lex");for(var X,K,Z,ot,J={},it,tt,Ut,pt;;){if(K=m[m.length-1],this.defaultActions[K]?Z=this.defaultActions[K]:((X===null||typeof X>"u")&&(X=lt()),Z=$[K]&&$[K][X]),typeof Z>"u"||!Z.length||!Z[0]){var $t="";pt=[];for(it in $[K])this.terminals_[it]&&it>Y&&pt.push("'"+this.terminals_[it]+"'");F.showPosition?$t="Parse error on line "+(G+1)+`:
|
|
2
2
|
`+F.showPosition()+`
|
|
3
3
|
Expecting `+pt.join(", ")+", got '"+(this.terminals_[X]||X)+"'":$t="Parse error on line "+(G+1)+": Unexpected "+(X==A?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError($t,{text:F.match,token:this.terminals_[X]||X,line:F.yylineno,loc:nt,expected:pt})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+X);switch(Z[0]){case 1:m.push(X),C.push(F.yytext),n.push(F.yylloc),m.push(Z[1]),X=null,c=F.yyleng,o=F.yytext,G=F.yylineno,nt=F.yylloc;break;case 2:if(tt=this.productions_[Z[1]][1],J.$=C[C.length-tt],J._$={first_line:n[n.length-(tt||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(tt||1)].first_column,last_column:n[n.length-1].last_column},at&&(J._$.range=[n[n.length-(tt||1)].range[0],n[n.length-1].range[1]]),ot=this.performAction.apply(J,[o,c,G,q.yy,Z[1],C,n].concat(R)),typeof ot<"u")return ot;tt&&(m=m.slice(0,-1*tt*2),C=C.slice(0,-1*tt),n=n.slice(0,-1*tt)),m.push(this.productions_[Z[1]][0]),C.push(J.$),n.push(J._$),Ut=$[m[m.length-2]][m[m.length-1]],m.push(Ut);break;case 3:return!0}}return!0},"parse")},T=(function(){var p={EOF:1,parseError:l(function(d,m){if(this.yy.parser)this.yy.parser.parseError(d,m);else throw new Error(d)},"parseError"),setInput:l(function(a,d){return this.yy=d||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var d=a.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:l(function(a){var d=a.length,m=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===u.length?this.yylloc.first_column:0)+u[u.length-m.length].length-m[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(a){this.unput(this.match.slice(a))},"less"),pastInput:l(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var a=this.pastInput(),d=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as F,bq as l,a_ as q,bo as u,by as G,b as H,bu as re,bs as se}from"./8obSPONn.js";import{bs as J,a5 as P,bl as I,bS as _,bA as $,be as z,b$ as N,b_ as k,bO as m,W as v,aD as ae,bn as K,aA as p,c9 as ne,aB as B,c5 as T,a7 as oe,ay as ie}from"./DYhIMPy1.js";import{u as W}from"./Crq31h4w.js";import{f as A}from"./CYnvHqAo.js";import{D as ce}from"./BdJ2kTDg.js";import{a5 as de}from"./
|
|
1
|
+
import{t as F,bq as l,a_ as q,bo as u,by as G,b as H,bu as re,bs as se}from"./8obSPONn.js";import{bs as J,a5 as P,bl as I,bS as _,bA as $,be as z,b$ as N,b_ as k,bO as m,W as v,aD as ae,bn as K,aA as p,c9 as ne,aB as B,c5 as T,a7 as oe,ay as ie}from"./DYhIMPy1.js";import{u as W}from"./Crq31h4w.js";import{f as A}from"./CYnvHqAo.js";import{D as ce}from"./BdJ2kTDg.js";import{a5 as de}from"./HxrVoImD.js";import{Ii as ue,iM as le}from"./DomfbKVx.js";var pe=B('<p class="text-sm text-muted-foreground"> </p>'),j=B('<p role="status" class="text-sm"> </p>'),ge=B('<div class="flex max-h-[min(calc(100dvh-8rem),calc(var(--toast-max-height,100dvh)-2rem))] min-h-0 min-w-0 flex-col gap-3" role="group"><div class="min-h-0 space-y-3 overflow-y-auto break-words" role="region" tabindex="0"><p class="font-medium break-words"> </p> <p class="text-sm text-muted-foreground"> </p> <!> <!> <!> <!></div> <div class="flex shrink-0 flex-wrap gap-2"><!> <!> <!></div></div>');function L(y,r){if(new.target)return F({component:L,...y});J(r,!0);let a=l(r,"request",7),g=l(r,"pending",7,!1),b=l(r,"settingUp",7,!1),c=l(r,"guidance",7),d=l(r,"checklist",7),i=l(r,"onDecision",7);var C={get request(){return a()},set request(e){a(e),p()},get pending(){return g()},set pending(e=!1){g(e),p()},get settingUp(){return b()},set settingUp(e=!1){b(e),p()},get guidance(){return c()},set guidance(e){c(e),p()},get checklist(){return d()},set checklist(e){d(e),p()},get onDecision(){return i()},set onDecision(e){i(e),p()},$set:G,$on:(e,t)=>H(r,e,t)},x=ge(),f=P(x),w=P(f),U=I(w,!0),D=_(w,2),n=I(D,!0),h=_(D,2);{var Q=e=>{var t=pe(),s=I(t,!0);k(o=>m(s,o),[()=>u.desktop_consent_claimPrimary({computer:a().computerName})]),v(e,t)};q(h,e=>{a().claimsPrimary&&e(Q)})}var O=_(h,2);{var V=e=>{ce(e,{get checklist(){return d()}})};q(O,e=>{d()&&e(V)})}var S=_(O,2);{var X=e=>{var t=j(),s=I(t,!0);k(()=>m(s,c())),v(e,t)};q(S,e=>{c()&&e(X)})}var Y=_(S,2);{var Z=e=>{var t=j(),s=I(t,!0);k(o=>m(s,o),[()=>u.desktop_consent_pending()]),v(e,t)};q(Y,e=>{g()&&!b()&&e(Z)})}$(f);var E=_(f,2),M=P(E);A(M,{size:"compact",variant:"primary",get disabled(){return g()},onclick:()=>i()("allow_once"),children:(e,t)=>{z();var s=N();k(o=>m(s,o),[()=>u.desktop_consent_once()]),v(e,s)},$$slots:{default:!0}});var R=_(M,2);A(R,{size:"compact",variant:"outline",get disabled(){return g()},onclick:()=>i()("allow_future"),children:(e,t)=>{z();var s=N();k(o=>m(s,o),[()=>u.desktop_consent_future()]),v(e,s)},$$slots:{default:!0}});var ee=_(R,2);{let e=ne(()=>g()&&!b());A(ee,{size:"compact",variant:"ghost",get disabled(){return ae(e)},onclick:()=>i()("deny"),children:(t,s)=>{z();var o=N();k(te=>m(o,te),[()=>u.desktop_consent_deny()]),v(t,o)},$$slots:{default:!0}})}return $(E),$(x),k((e,t,s,o)=>{W(x,"aria-label",e),W(f,"aria-label",t),m(U,s),m(n,o)},[()=>u.desktop_consent_title(),()=>u.desktop_consent_title(),()=>u.desktop_consent_request({agent:a().agentName,computer:a().computerName}),()=>u.desktop_consent_description()]),v(y,x),K(C)}function _e(y,r){if(new.target)return F({component:_e,...y});J(r,!0);const a=()=>re(C,"$entry",g),[g,b]=se();let c=l(r,"workspaceId",7),d=l(r,"agentId",7),i=l(r,"requestId",7);const C=de(T(()=>c()),T(()=>d()));var x={get workspaceId(){return c()},set workspaceId(n){c(n),p()},get agentId(){return d()},set agentId(n){d(n),p()},get requestId(){return i()},set requestId(n){i(n),p()},$set:G,$on:(n,h)=>H(r,n,h)},f=oe(),w=ie(f);{var U=n=>{L(n,{get request(){return a().pending},get pending(){return a().submitting},get settingUp(){return a().settingUp},get guidance(){return a().error},get checklist(){return a().osChecklist},onDecision:h=>ue.dispatch(le(c(),d(),i(),h))})};q(w,n=>{a()?.pending?.requestId===i()&&n(U)})}v(y,f);var D=K(x);return b(),D}export{_e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Se,bq as c,a_ as F,by as je,b as Te,br as Ee,bo as Z}from"./8obSPONn.js";import{bs as Be,a5 as H,bl as se,bS as R,bA as O,bf as Pe,b_ as $,aD as e,bO as ne,W as i,bn as ze,c9 as d,aA as u,aB as L,a7 as ae,ay as J,bo as He,bj as Ne,bH as P,bV as be,aC as Oe}from"./DYhIMPy1.js";import{j as ue,l as ie,u as E,v as ve,n as Ie,i as We}from"./Crq31h4w.js";import{s as Le}from"./CXgjAj37.js";import{s as qe}from"./CBoIo15V.js";import{S as Ge}from"./Bu8Z06IG.js";import{G as Re}from"./BcNmLUvA.js";import{I as Ae,F as Je,c as Ke}from"./DpFreuz_.js";import{bL as Ue,am as Xe,f as Ye}from"./CYnvHqAo.js";var Ze=L('<div class="max-w-full shrink-0"><!></div>'),$e=L('<p class="type-body max-w-2xl text-muted-foreground"> </p>'),et=L('<p class="type-body mt-2 text-danger" role="alert"> </p>'),tt=L('<section data-slot="settings-section"><header class="space-y-1"><div class="flex min-w-0 flex-wrap items-center justify-between gap-3 sm:flex-nowrap"><h2 class="type-title min-w-0 break-words text-foreground"> </h2> <!></div> <!></header> <!> <div data-slot="settings-section-content" class="mt-4 min-w-0 divide-y divide-border rounded-(--radius-medium) bg-card"><!></div></section>');function Fe(l,n){if(new.target)return Se({component:Fe,...l});Be(n,!0);let p=c(n,"id",7),S=c(n,"title",7),j=c(n,"description",7),A=c(n,"busy",7,!1),T=c(n,"error",7),D=c(n,"actions",7),_=c(n,"children",7),x=c(n,"class",7);const w=d(()=>p()?`${p()}-title`:void 0),N=d(()=>p()&&j()?`${p()}-description`:void 0),M=d(()=>p()&&T()?`${p()}-error`:void 0),ee=d(()=>[e(N),e(M)].filter(Boolean).join(" ")||void 0);var te={get id(){return p()},set id(s){p(s),u()},get title(){return S()},set title(s){S(s),u()},get description(){return j()},set description(s){j(s),u()},get busy(){return A()},set busy(s=!1){A(s),u()},get error(){return T()},set error(s){T(s),u()},get actions(){return D()},set actions(s){D(s),u()},get children(){return _()},set children(s){_(s),u()},get class(){return x()},set class(s){x(s),u()},$set:je,$on:(s,g)=>Te(n,s,g)},m=tt(),a=H(m),v=H(a),f=H(v),h=se(f,!0),Q=R(f,2);{var r=s=>{var g=Ze(),W=H(g);Le(W,D),O(g),i(s,g)};F(Q,s=>{D()&&s(r)})}O(v);var K=R(v,2);{var V=s=>{var g=$e(),W=se(g,!0);$(()=>{E(g,"id",e(N)),ne(W,j())}),i(s,g)};F(K,s=>{j()&&s(V)})}O(a);var B=R(a,2);{var C=s=>{var g=et(),W=se(g,!0);$(()=>{E(g,"id",e(M)),ne(W,T())}),i(s,g)};F(B,s=>{T()&&s(C)})}var U=R(B,2),le=H(U);return Le(le,()=>_()??Pe),O(U),O(m),$(s=>{E(m,"id",p()),E(m,"data-highlight-id",p()),ve(m,1,s),E(m,"aria-labelledby",e(w)),E(m,"aria-label",e(w)?void 0:S()),E(m,"aria-describedby",e(ee)),E(m,"aria-busy",A()||void 0),E(f,"id",e(w)),ne(h,S())},[()=>ue(ie("min-w-0 scroll-mt-20",x()))]),i(l,m),ze(te)}function Lt(l){return l}function St(l){return l}function _e(l,n){return l===void 0?n:typeof l=="function"?l():l}function rt(l,n){const p=n.trim().toLocaleLowerCase();return p?[l.label,l.description,l.featureCode,l.id].filter(Boolean).some(S=>S.toLocaleLowerCase().includes(p)):!0}var at=L('<div data-slot="settings-form" class="@container/settings-form min-w-0 divide-y divide-border"></div>'),st=L('<div data-slot="settings-form" class="@container/settings-form min-w-0 space-y-10"></div>');function nt(l,n){if(new.target)return Se({component:nt,...l});Be(n,!0);const p=(a,v=Pe)=>{var f=ae(),h=J(f);Ie(h,17,v,Q=>Q.id,(Q,r)=>{const K=d(()=>`setting-${e(r).id}`),V=d(()=>_e(e(r).disabled,!1)),B=d(()=>_e(e(r).busy,!1)),C=d(()=>_e(e(r).error,void 0)),U=d(()=>_e(e(r).status,void 0));{const le=(he,de)=>{let ye=()=>(de?.()).labelId,xe=()=>(de?.()).descriptionId,we=()=>(de?.()).errorId;const fe=d(()=>({entry:e(r),controlId:e(K),labelId:ye(),descriptionId:xe(),errorId:we(),disabled:e(V),busy:e(B)}));var re=ae(),ge=J(re);{var Ce=X=>{var me=ae(),t=J(me);{var o=y=>{var k=ae(),b=J(k);Le(b,()=>A()[e(r).id],()=>e(fe)),i(y,k)};F(t,y=>{A()[e(r).id]&&y(o)})}i(X,me)},ke=X=>{Ge(X,{get entry(){return e(r)},get context(){return e(fe)},get compact(){return _()}})};F(ge,X=>{e(r).kind==="custom"?X(Ce):X(ke,-1)})}i(he,re)};let s=d(()=>e(r).kind==="custom"&&e(r).layout==="full-width"),g=d(()=>w(e(r).kind)?e(K):void 0),W=d(()=>e(r).kind==="select"),pe=d(()=>[e(r).label,e(r).description,e(r).featureCode].filter(Boolean).join(" "));qe(Q,{get compact(){return _()},get id(){return e(r).id},get label(){return e(r).label},get description(){return e(r).description},get descriptionContent(){return T()[e(r).id]},get controlOnly(){return e(s)},get htmlFor(){return e(g)},get activateLabel(){return e(W)},get disabled(){return e(V)},get busy(){return e(B)},get error(){return e(C)},get status(){return e(U)},get statusTone(){return e(r).statusTone},get danger(){return e(r).danger},get experimental(){return e(r).experimental},get featureCode(){return e(r).featureCode},get searchText(){return e(pe)},get class(){return e(r).class},control:le,$$slots:{control:!0}})}}),i(a,f)};let S=c(n,"schema",7),j=c(n,"searchQuery",7,""),A=c(n,"custom",23,()=>({})),T=c(n,"descriptions",23,()=>({})),D=c(n,"embedded",7,!1),_=c(n,"compact",7,!0);const x=d(()=>S().sections.filter(a=>a.when?.()??!0).map(a=>({...a,entries:a.entries.filter(v=>(v.when?.()??!0)&&rt(v,j()))})).filter(a=>a.entries.length>0)),w=a=>["select","input","number","path","keybinding"].includes(a);var N={get schema(){return S()},set schema(a){S(a),u()},get searchQuery(){return j()},set searchQuery(a=""){j(a),u()},get custom(){return A()},set custom(a={}){A(a),u()},get descriptions(){return T()},set descriptions(a={}){T(a),u()},get embedded(){return D()},set embedded(a=!1){D(a),u()},get compact(){return _()},set compact(a=!0){_(a),u()},$set:je,$on:(a,v)=>Te(n,a,v)},M=ae(),ee=J(M);{var te=a=>{var v=at();Ie(v,21,()=>e(x),f=>f.id,(f,h)=>{p(f,()=>e(h).entries)}),O(v),i(a,v)},m=a=>{var v=st();Ie(v,21,()=>e(x),f=>f.id,(f,h)=>{Fe(f,{get id(){return e(h).id},get title(){return e(h).title},get description(){return e(h).description},children:(Q,r)=>{p(Q,()=>e(h).entries)},$$slots:{default:!0}})}),O(v),i(a,v)};F(ee,a=>{D()?a(te):a(m,-1)})}return i(l,M),ze(N)}var ot=new Set(["$$slots","$$events","$$legacy","value","label","disabled","variant","align","size","onCopy","class"]),it=Oe('<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true"><rect x="4.5" y="4.5" width="7" height="7" rx="1.5"></rect><path d="M9.5 4.5V3.25A1.75 1.75 0 0 0 7.75 1.5h-4.5A1.75 1.75 0 0 0 1.5 3.25v4.5A1.75 1.75 0 0 0 3.25 9.5H4.5"></path></svg>'),lt=Oe('<svg width="14" height="14" viewBox="2 4 20 16" fill="none" aria-hidden="true"><path class="copy-input-draw svelte-jlvoto" pathLength="1" stroke-dasharray="1" d="M6 12L10 16L18 8"></path></svg>'),dt=Oe('<svg width="14" height="14" viewBox="2 4 20 16" fill="none" aria-hidden="true"><path class="copy-input-draw svelte-jlvoto" pathLength="1" stroke-dasharray="1" d="M9 9L15 15M15 9L9 15"></path></svg>'),ct=L('<span class="inline-grid select-none text-left"><span class="invisible col-start-1 row-start-1" aria-hidden="true"> </span> <span data-slot="copy-input-action-label" class="col-start-1 row-start-1"> </span></span>'),ut=L('<span data-slot="copy-input-feedback"><!> <!></span>'),vt=L('<span data-slot="copy-input-action"><!></span>'),pt=L('<span data-slot="copy-input-value"><mark class="bg-transparent text-foreground transition-colors duration-spring-fast ease-spring-fast group-hover:bg-focus-ring/20 group-hover:text-foreground motion-reduce:transition-none"> </mark></span>'),Me=L("<!> <!>",1),ft=L('<span data-slot="copy-input-label"> </span>'),gt=L("<div><!> <!></div>");function mt(l,n){const p=He();if(new.target)return Se({component:mt,...l});Be(n,!0);const S=t=>{var o=ae(),y=J(o);{var k=I=>{var q=it();i(I,q)},b=I=>{var q=lt();i(I,q)},oe=I=>{var q=dt();i(I,q)};F(y,I=>{e(r)==="idle"?I(k):e(r)==="copied"?I(b,1):I(oe,-1)})}i(t,o)},j=t=>{var o=vt(),y=H(o);Re(y,()=>`${e(r)}-${e(K)}`,k=>{var b=ut(),oe=H(b);S(oe);var I=R(oe,2);{var q=z=>{var G=ct(),Y=H(G),ce=se(Y,!0),De=R(Y,2),Qe=se(De,!0);O(G),$(Ve=>{ne(ce,Ve),ne(Qe,e(g))},[()=>Z.ui_copyInput_copied_label()]),i(z,G)};F(I,z=>{N()==="button"&&z(q)})}O(b),$(z=>ve(b,1,z,"svelte-jlvoto"),[()=>ue(ie("flex items-center justify-center gap-1.5 [&_svg]:shrink-0 [&_svg]:stroke-current [&_svg]:stroke-[1.5] [&_svg]:[stroke-linecap:round] [&_svg]:[stroke-linejoin:round] [&_svg]:transition-[stroke-width] [&_svg]:duration-spring-fast group-hover:[&_svg]:stroke-2 motion-reduce:[&_svg]:transition-none",e(r)==="error"&&"text-danger"))]),Ae(1,b,()=>Je,()=>({tier:"fast",y:0,scale:e(r)==="idle"?.8:.6})),Ae(2,b,()=>Ke,()=>({tier:"fast",scale:.8})),i(k,b)}),O(o),$(k=>ve(o,1,k,"svelte-jlvoto"),[()=>ue(ie("flex shrink-0 items-center px-1.5 text-muted-foreground transition-colors duration-spring-fast ease-spring-fast group-hover:text-foreground motion-reduce:transition-none",e(Q)))]),i(t,o)},A=t=>{var o=pt(),y=H(o),k=se(y,!0);O(o),$(b=>{ve(o,1,b,"svelte-jlvoto"),ne(k,_())},[()=>ue(ie("min-w-0 flex-1 select-none truncate text-left text-foreground",e(Q),M()==="left"?"pl-1":"pl-0"))]),i(t,o)},T=t=>{{let o=d(()=>x()?`${v} ${f}`:void 0);Ye(t,{get id(){return v},type:"button",variant:"plain",get size(){return e(h)},truncateLabel:!1,labelClass:"flex! w-full items-center","data-slot":"copy-input-button",get"data-size"(){return e(h)},style:"line-height: 1.25rem",class:"group h-auto! w-full justify-start rounded-(--radius-medium) border-0 bg-transparent p-0 text-sm font-normal leading-5 transition-colors duration-spring-fast ease-spring-fast motion-reduce:transition-none",get disabled(){return w()},get"aria-label"(){return e(s)},get"aria-labelledby"(){return e(o)},onpointerdown:de,onclick:he,children:(y,k)=>{var b=ae(),oe=J(b);{var I=z=>{var G=Me(),Y=J(G);j(Y);var ce=R(Y,2);A(ce),i(z,G)},q=z=>{var G=Me(),Y=J(G);A(Y);var ce=R(Y,2);j(ce),i(z,G)};F(oe,z=>{M()==="left"?z(I):z(q,-1)})}i(y,b)},$$slots:{default:!0}})}},D=Ue();let _=c(n,"value",7),x=c(n,"label",7),w=c(n,"disabled",7,!1),N=c(n,"variant",7,"icon"),M=c(n,"align",7,"right"),ee=c(n,"size",7),te=c(n,"onCopy",7),m=c(n,"class",7),a=Ee(n,ot);const v=`${p}-button`,f=`${p}-label`,h=d(()=>ee()??D),Q=d(()=>e(h)==="compact"?"py-1":"py-2");let r=be("idle"),K=be(0),V=null,B=be(!1),C=be("idle"),U=!1;const le=d(()=>x()?Z.ui_copyButton_label():Z.ui_copyInput_copyToClipboard_ariaLabel()),s=d(()=>e(r)==="copied"?Z.ui_copyInput_copied_label():e(r)==="error"?Z.ui_copyInput_copyFailed_ariaLabel():e(le)),g=d(()=>e(r)==="copied"?Z.ui_copyInput_copied_label():e(r)==="error"?Z.ui_copyInput_failed_label():Z.ui_copyButton_label()),W=d(()=>e(C)==="copied"?!0:e(C)==="suppressed"?!1:e(B));function pe(){const t=document.createElement("textarea");t.value=_(),t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let o=!1;try{o=document.execCommand("copy")}catch{o=!1}return t.remove(),o}async function he(){if(w())return;let t=!0;try{navigator.clipboard?.writeText?await navigator.clipboard.writeText(_()):t=pe()}catch{t=pe()}P(r,t?"copied":"error",!0),P(K,e(K)+1),P(C,U?"copied":"suppressed",!0),P(B,U,!0),t&&te()?.(),V&&clearTimeout(V),V=setTimeout(()=>{P(r,"idle"),P(C,"suppressed"),P(B,!1)},2e3)}function de(){U=e(B)}function ye(t){e(C)==="idle"&&P(B,t,!0)}function xe(){e(C)==="suppressed"&&P(C,"idle")}function we(){e(C)==="copied"&&P(C,"suppressed"),P(B,!1)}Ne(()=>{V&&clearTimeout(V)});var fe={get value(){return _()},set value(t){_(t),u()},get label(){return x()},set label(t){x(t),u()},get disabled(){return w()},set disabled(t=!1){w(t),u()},get variant(){return N()},set variant(t="icon"){N(t),u()},get align(){return M()},set align(t="right"){M(t),u()},get size(){return ee()},set size(t){ee(t),u()},get onCopy(){return te()},set onCopy(t){te(t),u()},get class(){return m()},set class(t){m(t),u()},$set:je,$on:(t,o)=>Te(n,t,o)},re=gt();We(re,t=>({"data-slot":"copy-input-field","data-disabled":w()||void 0,class:t,onmouseenter:xe,onmouseleave:we,...a}),[()=>ie("flex flex-col gap-0.5",w()&&"pointer-events-none opacity-50",m())],void 0,void 0,"svelte-jlvoto");var ge=H(re);{var Ce=t=>{var o=ft(),y=se(o,!0);$(k=>{E(o,"id",f),ve(o,1,k,"svelte-jlvoto"),ne(y,x())},[()=>ue(ie("type-caption text-muted-foreground",M()==="left"?"pl-1":"pl-0"))]),i(t,o)};F(ge,t=>{x()&&t(Ce)})}var ke=R(ge,2);{var X=t=>{Xe(t,{get content(){return e(s)},delayDuration:500,sideOffset:2,get disabled(){return w()},get open(){return e(W)},onOpenChange:ye,class:"w-full",children:(o,y)=>{T(o)},$$slots:{default:!0}})},me=t=>{T(t)};F(ke,t=>{N()==="icon"?t(X):t(me,-1)})}return O(re),i(l,re),ze(fe)}export{mt as C,nt as S,Fe as a,St as b,Lt as d};
|
|
1
|
+
import{t as Se,bq as c,a_ as F,by as je,b as Te,br as Ee,bo as Z}from"./8obSPONn.js";import{bs as Be,a5 as H,bl as se,bS as R,bA as O,bf as Pe,b_ as $,aD as e,bO as ne,W as i,bn as ze,c9 as d,aA as u,aB as L,a7 as ae,ay as J,bo as He,bj as Ne,bH as P,bV as be,aC as Oe}from"./DYhIMPy1.js";import{j as ue,l as ie,u as E,v as ve,n as Ie,i as We}from"./Crq31h4w.js";import{s as Le}from"./CXgjAj37.js";import{s as qe}from"./CBoIo15V.js";import{S as Ge}from"./CEA4WprY.js";import{G as Re}from"./BcNmLUvA.js";import{I as Ae,F as Je,c as Ke}from"./DpFreuz_.js";import{bL as Ue,am as Xe,f as Ye}from"./CYnvHqAo.js";var Ze=L('<div class="max-w-full shrink-0"><!></div>'),$e=L('<p class="type-body max-w-2xl text-muted-foreground"> </p>'),et=L('<p class="type-body mt-2 text-danger" role="alert"> </p>'),tt=L('<section data-slot="settings-section"><header class="space-y-1"><div class="flex min-w-0 flex-wrap items-center justify-between gap-3 sm:flex-nowrap"><h2 class="type-title min-w-0 break-words text-foreground"> </h2> <!></div> <!></header> <!> <div data-slot="settings-section-content" class="mt-4 min-w-0 divide-y divide-border rounded-(--radius-medium) bg-card"><!></div></section>');function Fe(l,n){if(new.target)return Se({component:Fe,...l});Be(n,!0);let p=c(n,"id",7),S=c(n,"title",7),j=c(n,"description",7),A=c(n,"busy",7,!1),T=c(n,"error",7),D=c(n,"actions",7),_=c(n,"children",7),x=c(n,"class",7);const w=d(()=>p()?`${p()}-title`:void 0),N=d(()=>p()&&j()?`${p()}-description`:void 0),M=d(()=>p()&&T()?`${p()}-error`:void 0),ee=d(()=>[e(N),e(M)].filter(Boolean).join(" ")||void 0);var te={get id(){return p()},set id(s){p(s),u()},get title(){return S()},set title(s){S(s),u()},get description(){return j()},set description(s){j(s),u()},get busy(){return A()},set busy(s=!1){A(s),u()},get error(){return T()},set error(s){T(s),u()},get actions(){return D()},set actions(s){D(s),u()},get children(){return _()},set children(s){_(s),u()},get class(){return x()},set class(s){x(s),u()},$set:je,$on:(s,g)=>Te(n,s,g)},m=tt(),a=H(m),v=H(a),f=H(v),h=se(f,!0),Q=R(f,2);{var r=s=>{var g=Ze(),W=H(g);Le(W,D),O(g),i(s,g)};F(Q,s=>{D()&&s(r)})}O(v);var K=R(v,2);{var V=s=>{var g=$e(),W=se(g,!0);$(()=>{E(g,"id",e(N)),ne(W,j())}),i(s,g)};F(K,s=>{j()&&s(V)})}O(a);var B=R(a,2);{var C=s=>{var g=et(),W=se(g,!0);$(()=>{E(g,"id",e(M)),ne(W,T())}),i(s,g)};F(B,s=>{T()&&s(C)})}var U=R(B,2),le=H(U);return Le(le,()=>_()??Pe),O(U),O(m),$(s=>{E(m,"id",p()),E(m,"data-highlight-id",p()),ve(m,1,s),E(m,"aria-labelledby",e(w)),E(m,"aria-label",e(w)?void 0:S()),E(m,"aria-describedby",e(ee)),E(m,"aria-busy",A()||void 0),E(f,"id",e(w)),ne(h,S())},[()=>ue(ie("min-w-0 scroll-mt-20",x()))]),i(l,m),ze(te)}function Lt(l){return l}function St(l){return l}function _e(l,n){return l===void 0?n:typeof l=="function"?l():l}function rt(l,n){const p=n.trim().toLocaleLowerCase();return p?[l.label,l.description,l.featureCode,l.id].filter(Boolean).some(S=>S.toLocaleLowerCase().includes(p)):!0}var at=L('<div data-slot="settings-form" class="@container/settings-form min-w-0 divide-y divide-border"></div>'),st=L('<div data-slot="settings-form" class="@container/settings-form min-w-0 space-y-10"></div>');function nt(l,n){if(new.target)return Se({component:nt,...l});Be(n,!0);const p=(a,v=Pe)=>{var f=ae(),h=J(f);Ie(h,17,v,Q=>Q.id,(Q,r)=>{const K=d(()=>`setting-${e(r).id}`),V=d(()=>_e(e(r).disabled,!1)),B=d(()=>_e(e(r).busy,!1)),C=d(()=>_e(e(r).error,void 0)),U=d(()=>_e(e(r).status,void 0));{const le=(he,de)=>{let ye=()=>(de?.()).labelId,xe=()=>(de?.()).descriptionId,we=()=>(de?.()).errorId;const fe=d(()=>({entry:e(r),controlId:e(K),labelId:ye(),descriptionId:xe(),errorId:we(),disabled:e(V),busy:e(B)}));var re=ae(),ge=J(re);{var Ce=X=>{var me=ae(),t=J(me);{var o=y=>{var k=ae(),b=J(k);Le(b,()=>A()[e(r).id],()=>e(fe)),i(y,k)};F(t,y=>{A()[e(r).id]&&y(o)})}i(X,me)},ke=X=>{Ge(X,{get entry(){return e(r)},get context(){return e(fe)},get compact(){return _()}})};F(ge,X=>{e(r).kind==="custom"?X(Ce):X(ke,-1)})}i(he,re)};let s=d(()=>e(r).kind==="custom"&&e(r).layout==="full-width"),g=d(()=>w(e(r).kind)?e(K):void 0),W=d(()=>e(r).kind==="select"),pe=d(()=>[e(r).label,e(r).description,e(r).featureCode].filter(Boolean).join(" "));qe(Q,{get compact(){return _()},get id(){return e(r).id},get label(){return e(r).label},get description(){return e(r).description},get descriptionContent(){return T()[e(r).id]},get controlOnly(){return e(s)},get htmlFor(){return e(g)},get activateLabel(){return e(W)},get disabled(){return e(V)},get busy(){return e(B)},get error(){return e(C)},get status(){return e(U)},get statusTone(){return e(r).statusTone},get danger(){return e(r).danger},get experimental(){return e(r).experimental},get featureCode(){return e(r).featureCode},get searchText(){return e(pe)},get class(){return e(r).class},control:le,$$slots:{control:!0}})}}),i(a,f)};let S=c(n,"schema",7),j=c(n,"searchQuery",7,""),A=c(n,"custom",23,()=>({})),T=c(n,"descriptions",23,()=>({})),D=c(n,"embedded",7,!1),_=c(n,"compact",7,!0);const x=d(()=>S().sections.filter(a=>a.when?.()??!0).map(a=>({...a,entries:a.entries.filter(v=>(v.when?.()??!0)&&rt(v,j()))})).filter(a=>a.entries.length>0)),w=a=>["select","input","number","path","keybinding"].includes(a);var N={get schema(){return S()},set schema(a){S(a),u()},get searchQuery(){return j()},set searchQuery(a=""){j(a),u()},get custom(){return A()},set custom(a={}){A(a),u()},get descriptions(){return T()},set descriptions(a={}){T(a),u()},get embedded(){return D()},set embedded(a=!1){D(a),u()},get compact(){return _()},set compact(a=!0){_(a),u()},$set:je,$on:(a,v)=>Te(n,a,v)},M=ae(),ee=J(M);{var te=a=>{var v=at();Ie(v,21,()=>e(x),f=>f.id,(f,h)=>{p(f,()=>e(h).entries)}),O(v),i(a,v)},m=a=>{var v=st();Ie(v,21,()=>e(x),f=>f.id,(f,h)=>{Fe(f,{get id(){return e(h).id},get title(){return e(h).title},get description(){return e(h).description},children:(Q,r)=>{p(Q,()=>e(h).entries)},$$slots:{default:!0}})}),O(v),i(a,v)};F(ee,a=>{D()?a(te):a(m,-1)})}return i(l,M),ze(N)}var ot=new Set(["$$slots","$$events","$$legacy","value","label","disabled","variant","align","size","onCopy","class"]),it=Oe('<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true"><rect x="4.5" y="4.5" width="7" height="7" rx="1.5"></rect><path d="M9.5 4.5V3.25A1.75 1.75 0 0 0 7.75 1.5h-4.5A1.75 1.75 0 0 0 1.5 3.25v4.5A1.75 1.75 0 0 0 3.25 9.5H4.5"></path></svg>'),lt=Oe('<svg width="14" height="14" viewBox="2 4 20 16" fill="none" aria-hidden="true"><path class="copy-input-draw svelte-jlvoto" pathLength="1" stroke-dasharray="1" d="M6 12L10 16L18 8"></path></svg>'),dt=Oe('<svg width="14" height="14" viewBox="2 4 20 16" fill="none" aria-hidden="true"><path class="copy-input-draw svelte-jlvoto" pathLength="1" stroke-dasharray="1" d="M9 9L15 15M15 9L9 15"></path></svg>'),ct=L('<span class="inline-grid select-none text-left"><span class="invisible col-start-1 row-start-1" aria-hidden="true"> </span> <span data-slot="copy-input-action-label" class="col-start-1 row-start-1"> </span></span>'),ut=L('<span data-slot="copy-input-feedback"><!> <!></span>'),vt=L('<span data-slot="copy-input-action"><!></span>'),pt=L('<span data-slot="copy-input-value"><mark class="bg-transparent text-foreground transition-colors duration-spring-fast ease-spring-fast group-hover:bg-focus-ring/20 group-hover:text-foreground motion-reduce:transition-none"> </mark></span>'),Me=L("<!> <!>",1),ft=L('<span data-slot="copy-input-label"> </span>'),gt=L("<div><!> <!></div>");function mt(l,n){const p=He();if(new.target)return Se({component:mt,...l});Be(n,!0);const S=t=>{var o=ae(),y=J(o);{var k=I=>{var q=it();i(I,q)},b=I=>{var q=lt();i(I,q)},oe=I=>{var q=dt();i(I,q)};F(y,I=>{e(r)==="idle"?I(k):e(r)==="copied"?I(b,1):I(oe,-1)})}i(t,o)},j=t=>{var o=vt(),y=H(o);Re(y,()=>`${e(r)}-${e(K)}`,k=>{var b=ut(),oe=H(b);S(oe);var I=R(oe,2);{var q=z=>{var G=ct(),Y=H(G),ce=se(Y,!0),De=R(Y,2),Qe=se(De,!0);O(G),$(Ve=>{ne(ce,Ve),ne(Qe,e(g))},[()=>Z.ui_copyInput_copied_label()]),i(z,G)};F(I,z=>{N()==="button"&&z(q)})}O(b),$(z=>ve(b,1,z,"svelte-jlvoto"),[()=>ue(ie("flex items-center justify-center gap-1.5 [&_svg]:shrink-0 [&_svg]:stroke-current [&_svg]:stroke-[1.5] [&_svg]:[stroke-linecap:round] [&_svg]:[stroke-linejoin:round] [&_svg]:transition-[stroke-width] [&_svg]:duration-spring-fast group-hover:[&_svg]:stroke-2 motion-reduce:[&_svg]:transition-none",e(r)==="error"&&"text-danger"))]),Ae(1,b,()=>Je,()=>({tier:"fast",y:0,scale:e(r)==="idle"?.8:.6})),Ae(2,b,()=>Ke,()=>({tier:"fast",scale:.8})),i(k,b)}),O(o),$(k=>ve(o,1,k,"svelte-jlvoto"),[()=>ue(ie("flex shrink-0 items-center px-1.5 text-muted-foreground transition-colors duration-spring-fast ease-spring-fast group-hover:text-foreground motion-reduce:transition-none",e(Q)))]),i(t,o)},A=t=>{var o=pt(),y=H(o),k=se(y,!0);O(o),$(b=>{ve(o,1,b,"svelte-jlvoto"),ne(k,_())},[()=>ue(ie("min-w-0 flex-1 select-none truncate text-left text-foreground",e(Q),M()==="left"?"pl-1":"pl-0"))]),i(t,o)},T=t=>{{let o=d(()=>x()?`${v} ${f}`:void 0);Ye(t,{get id(){return v},type:"button",variant:"plain",get size(){return e(h)},truncateLabel:!1,labelClass:"flex! w-full items-center","data-slot":"copy-input-button",get"data-size"(){return e(h)},style:"line-height: 1.25rem",class:"group h-auto! w-full justify-start rounded-(--radius-medium) border-0 bg-transparent p-0 text-sm font-normal leading-5 transition-colors duration-spring-fast ease-spring-fast motion-reduce:transition-none",get disabled(){return w()},get"aria-label"(){return e(s)},get"aria-labelledby"(){return e(o)},onpointerdown:de,onclick:he,children:(y,k)=>{var b=ae(),oe=J(b);{var I=z=>{var G=Me(),Y=J(G);j(Y);var ce=R(Y,2);A(ce),i(z,G)},q=z=>{var G=Me(),Y=J(G);A(Y);var ce=R(Y,2);j(ce),i(z,G)};F(oe,z=>{M()==="left"?z(I):z(q,-1)})}i(y,b)},$$slots:{default:!0}})}},D=Ue();let _=c(n,"value",7),x=c(n,"label",7),w=c(n,"disabled",7,!1),N=c(n,"variant",7,"icon"),M=c(n,"align",7,"right"),ee=c(n,"size",7),te=c(n,"onCopy",7),m=c(n,"class",7),a=Ee(n,ot);const v=`${p}-button`,f=`${p}-label`,h=d(()=>ee()??D),Q=d(()=>e(h)==="compact"?"py-1":"py-2");let r=be("idle"),K=be(0),V=null,B=be(!1),C=be("idle"),U=!1;const le=d(()=>x()?Z.ui_copyButton_label():Z.ui_copyInput_copyToClipboard_ariaLabel()),s=d(()=>e(r)==="copied"?Z.ui_copyInput_copied_label():e(r)==="error"?Z.ui_copyInput_copyFailed_ariaLabel():e(le)),g=d(()=>e(r)==="copied"?Z.ui_copyInput_copied_label():e(r)==="error"?Z.ui_copyInput_failed_label():Z.ui_copyButton_label()),W=d(()=>e(C)==="copied"?!0:e(C)==="suppressed"?!1:e(B));function pe(){const t=document.createElement("textarea");t.value=_(),t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let o=!1;try{o=document.execCommand("copy")}catch{o=!1}return t.remove(),o}async function he(){if(w())return;let t=!0;try{navigator.clipboard?.writeText?await navigator.clipboard.writeText(_()):t=pe()}catch{t=pe()}P(r,t?"copied":"error",!0),P(K,e(K)+1),P(C,U?"copied":"suppressed",!0),P(B,U,!0),t&&te()?.(),V&&clearTimeout(V),V=setTimeout(()=>{P(r,"idle"),P(C,"suppressed"),P(B,!1)},2e3)}function de(){U=e(B)}function ye(t){e(C)==="idle"&&P(B,t,!0)}function xe(){e(C)==="suppressed"&&P(C,"idle")}function we(){e(C)==="copied"&&P(C,"suppressed"),P(B,!1)}Ne(()=>{V&&clearTimeout(V)});var fe={get value(){return _()},set value(t){_(t),u()},get label(){return x()},set label(t){x(t),u()},get disabled(){return w()},set disabled(t=!1){w(t),u()},get variant(){return N()},set variant(t="icon"){N(t),u()},get align(){return M()},set align(t="right"){M(t),u()},get size(){return ee()},set size(t){ee(t),u()},get onCopy(){return te()},set onCopy(t){te(t),u()},get class(){return m()},set class(t){m(t),u()},$set:je,$on:(t,o)=>Te(n,t,o)},re=gt();We(re,t=>({"data-slot":"copy-input-field","data-disabled":w()||void 0,class:t,onmouseenter:xe,onmouseleave:we,...a}),[()=>ie("flex flex-col gap-0.5",w()&&"pointer-events-none opacity-50",m())],void 0,void 0,"svelte-jlvoto");var ge=H(re);{var Ce=t=>{var o=ft(),y=se(o,!0);$(k=>{E(o,"id",f),ve(o,1,k,"svelte-jlvoto"),ne(y,x())},[()=>ue(ie("type-caption text-muted-foreground",M()==="left"?"pl-1":"pl-0"))]),i(t,o)};F(ge,t=>{x()&&t(Ce)})}var ke=R(ge,2);{var X=t=>{Xe(t,{get content(){return e(s)},delayDuration:500,sideOffset:2,get disabled(){return w()},get open(){return e(W)},onOpenChange:ye,class:"w-full",children:(o,y)=>{T(o)},$$slots:{default:!0}})},me=t=>{T(t)};F(ke,t=>{N()==="icon"?t(X):t(me,-1)})}return O(re),i(l,re),ze(fe)}export{mt as C,nt as S,Fe as a,St as b,Lt as d};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/YSPfcYKn.js","/app/immutable/chunks/BLYi9_ai.js","/app/immutable/chunks/BcNmLUvA.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/8obSPONn.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Crq31h4w.js","/app/immutable/chunks/CXgjAj37.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CYnvHqAo.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/Mne-RwlA.js","/app/immutable/chunks/C_nJgshO.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DpFreuz_.js","/app/immutable/chunks/CFP6h_yj.js","/app/immutable/chunks/DomfbKVx.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BFeR9qbJ.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/CAmF3PXk.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/
|
|
2
|
-
import{bo as b,_ as x}from"./8obSPONn.js";import{g as f,Ii as a,db as P,GG as S,yl as q,ES as N,v0 as R,qu as W,uA as H,Kl as U}from"./DomfbKVx.js";import{d as I}from"./DC8fssXE.js";import{bb as V}from"./CYnvHqAo.js";import{parseIntentLink as j}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/YSPfcYKn.js","/app/immutable/chunks/BLYi9_ai.js","/app/immutable/chunks/BcNmLUvA.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/8obSPONn.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Crq31h4w.js","/app/immutable/chunks/CXgjAj37.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CYnvHqAo.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/Mne-RwlA.js","/app/immutable/chunks/C_nJgshO.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DpFreuz_.js","/app/immutable/chunks/CFP6h_yj.js","/app/immutable/chunks/DomfbKVx.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BFeR9qbJ.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/CAmF3PXk.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BGq45CP4.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/DC8fssXE.js","/app/immutable/chunks/C376IId1.js","/app/immutable/chunks/743JVs4Q.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/B4nCDPQA.js","/app/immutable/chunks/DkXjvKmg.js","/app/immutable/chunks/ClUsr6sz.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DUJSEf2g.js","/app/immutable/chunks/P80wVyai.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bo as b,_ as x}from"./8obSPONn.js";import{g as f,Ii as a,db as P,GG as S,yl as q,ES as N,v0 as R,qu as W,uA as H,Kl as U}from"./DomfbKVx.js";import{d as I}from"./DC8fssXE.js";import{bb as V}from"./CYnvHqAo.js";import{parseIntentLink as j}from"./BlCPsgO4.js";import{k as y}from"./BLYi9_ai.js";import"./DYhIMPy1.js";import"./Crq31h4w.js";import"./CXgjAj37.js";import"./ChTqQfQN.js";import"./CFP6h_yj.js";import{I as B,q as C,H as L}from"./cYR0zuXX.js";import{dp as D}from"./DkXjvKmg.js";import{p as E,o as G,h as K}from"./z4RHZh7P.js";const p="assistant-content",$=a.createSelector(t=>{const r=E.select(t),s=G.select(t),e=K.select(t).find(i=>i.agentId===s)??r.find(i=>i.isActive)??r.find(i=>i.messageCount>0)??r[0];return P(e?.agentId??null)}),O=new Map;function z(t,r=!1){const s=O.get(t)??{explicit:0,background:0},e={explicit:s.explicit+(r?0:1),background:s.background+(r?1:0)};return O.set(t,e),r?e:{explicit:e.explicit}}function m(t,r){const s=O.get(t);return s!==void 0&&r.explicit===s.explicit&&(r.background===void 0||r.background===s.background)}async function J(t){a.dispatch(R(t)),L.select(a.state,t).restoreStatus==="pending"&&await new Promise(r=>{const s=L.withStore(a)(t).subscribe(e=>{e.restoreStatus!=="pending"&&(r(),queueMicrotask(()=>s()))})})}function _(t,r,s){const e=L.select(a.state,s);if(!e.panels[p]||Object.keys(e.panels).some(i=>i!==p)){const i=e.panels[p],d=Object.values(e.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(W(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:e.focusedPanelId===p?p:null,hiddenTabs:C.select(a.state,s)}))}a.dispatch(H(s,t,p,void 0,!0,void 0,!1,r.background||r.preserveFocus,void 0,r.background))}async function de(t,r={}){try{return await Q(t,r)}catch(s){return y.error(b.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Q(t,r){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(t),e=t.startsWith("intent://")?j(t):null,i=e?.valid&&e.type==="workspace"?[t,e.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(t),d=/^https?:\/\//.test(t)&&!V(t);if(!i&&!s&&!d&&!(e?.valid&&["file","message","note","task"].includes(e.type))||i&&[f,"new"].includes(i[1]))return!1;const c=E.select(a.state),n=r.agentId?P(r.agentId):r.background?c.length===1?P(c[0].agentId):null:r.layoutId??$.select(a.state);if(!n)return!0;const o=z(n,r.background);if(await J(n),!m(n,o))return!0;if(i){const u=i[1],g=await I.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),_({type:"workspace",title:g.title,workspaceId:u,closable:!0},r,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],r,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await x(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./YSPfcYKn.js").then(w=>w.b);return{resolveBrowserLinkForOpen:v}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]),import.meta.url),g=await u(t);return m(n,o)&&_({type:"browser",title:new URL(t).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},r,n),!0}if(!e?.valid)return!1;const h=e.workspaceId??f;if(e.type==="file"){const u=await I.workspaces.get(h);return m(n,o)?u?(a.dispatch(S(u)),_({type:"file",title:e.resourceId.split("/").at(-1)??e.resourceId,filePath:e.resourceId,workspaceId:h,closable:!0,data:{line:e.line,filePathIsLiteral:!0}},r,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(e.type==="message"&&e.agentId)return T(h,e.agentId,r,n,o,e.resourceId);if(e.type!=="note"&&e.type!=="task")return!1;const l=e.workspaceId??f,[k,A]=await Promise.all([a.dispatch(q(l,e.resourceId)),Promise.resolve(D.select(a.state,l)??I.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!k||String(k.workspaceId)!==l)return y.error(b.ui_linkHandler_notFound_title(),{description:b.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const M=Object.entries(B.select(a.state)).some(([u,g])=>{const v=w=>w.type==="note"&&w.noteId===String(k.id)&&(w.workspaceId??u)===l;return Object.values(g.panels).some(w=>w.tabs.some(v))||C.select(a.state,u).some(v)}),F=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(k.id)];return!M&&(!r.background||F===void 0)&&a.dispatch(N(l,String(k.id),"editor")),_({type:"note",title:k.title,noteId:String(k.id),workspaceId:l,closable:!0},r,n),!0}async function T(t,r,s,e,i,d){const c=await I.agents.get(r,t===f?void 0:t);t===f&&c&&(t=String(c.workspaceId));const n=t===f?null:await I.workspaces.get(t);if(!m(e,i))return!0;if(!n&&t!==f||!c||String(c.workspaceId)!==t)return y.error(b.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),_({type:"agent",title:c.name??r,agentId:r,workspaceId:t,closable:!0},s,e),d&&!s.background){const{openMessage:o}=await x(async()=>{const{openMessage:h}=await import("./BGq45CP4.js");return{openMessage:h}},__vite__mapDeps([27,28,29,30,4,3,17,18,19,20,5,7,21,13,2,9,6,8,10,11,12,14,31,32,33,34,35,23,36,15,37,38,39]),import.meta.url);o({workspaceId:t,agentId:r,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,$ as selectAssistantPanelLayoutId,de as showAssistantContent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as I}from"./
|
|
1
|
+
import{p as I}from"./BBGX-ci7.js";import{aZ as _,U as E,Y as F,b0 as D,V as P,a_ as z,b as c,aX as G,r as B,q as w,W as C,O as W,ay as b,a6 as V,B as H}from"./D3VNRPKq.js";import{p as U}from"./Bvvd2zh3.js";var m={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:m},x=structuredClone(A),X=W.radar,j=c(()=>w({...X,...C().radar}),"getConfig"),M=c(()=>x.axes,"getAxes"),Y=c(()=>x.curves,"getCurves"),Z=c(()=>x.options,"getOptions"),q=c(a=>{x.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),K=c(a=>{x.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:N(t.entries)}))},"setCurves"),N=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});x.options={showLegend:t.showLegend?.value??m.showLegend,ticks:t.ticks?.value??m.ticks,max:t.max?.value??m.max,min:t.min?.value??m.min,graticule:t.graticule?.value??m.graticule},x.options.ticks>y&&(b.warn(`Radar diagram ticks (${x.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),x.options.ticks=y)},"setOptions"),Q=c(()=>{B(),x=structuredClone(A)},"clear"),$={getAxes:M,getCurves:Y,getOptions:Z,setAxes:q,setCurves:K,setOptions:J,getConfig:j,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:D,getDiagramTitle:F,getAccDescription:E,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await U("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=G(t),u=rt(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(u,i,v,n.ticks,n.graticule),nt(u,i,v,o),L(u,i,l,h,g,n.graticule,o),k(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,p)=>{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(g,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},p={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
|
|
2
2
|
.radarCurve-${r} {
|
|
3
3
|
color: ${s};
|
|
4
4
|
fill: ${s};
|