@intent-hq/web 2.365.1 → 2.366.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/{CJYn86Zh.js → 0M6fbwP5.js} +1 -1
- package/web/app/immutable/chunks/{CKje4aJN.js → 21sFenOt.js} +1 -1
- package/web/app/immutable/chunks/{BVrp8JNX.js → 49lTJ3BE.js} +2 -2
- package/web/app/immutable/chunks/{lrmMeOQf.js → 4h0tfUCi.js} +3 -3
- package/web/app/immutable/chunks/{mCOr3gFd.js → 5E0QgiwD.js} +1 -1
- package/web/app/immutable/chunks/{RmJBfBVs.js → 6uErOUPb.js} +1 -1
- package/web/app/immutable/chunks/{zZJCq9G-.js → B1SzcYNV.js} +1 -1
- package/web/app/immutable/chunks/{CkBkXm1t.js → B3UM3noM.js} +1 -1
- package/web/app/immutable/chunks/{DIM_Vy_1.js → BBy28q2Z.js} +1 -1
- package/web/app/immutable/chunks/{BkoWIItN.js → BCO7QB9d.js} +2 -2
- package/web/app/immutable/chunks/{XZZBqDDU.js → BFcLC0z2.js} +1 -1
- package/web/app/immutable/chunks/{ChAjeelV.js → BJ-fbkKc.js} +1 -1
- package/web/app/immutable/chunks/{BhPnF9Tm.js → BJI544co.js} +1 -1
- package/web/app/immutable/chunks/{COSufLLe.js → BKmmpS_o.js} +1 -1
- package/web/app/immutable/chunks/{BKYUqADc.js → BM_VA785.js} +2 -2
- package/web/app/immutable/chunks/{HaIAX7Y7.js → BMfv2h4V.js} +4 -4
- package/web/app/immutable/chunks/{DBKSlWdm.js → BPrfv6mU.js} +6 -6
- package/web/app/immutable/chunks/{noaeKV0Q.js → BQ1ZZijd.js} +1 -1
- package/web/app/immutable/chunks/{hcNIFtJ6.js → BRYJbzW_.js} +1 -1
- package/web/app/immutable/chunks/{hScRAhOj.js → BUF9JqHS.js} +1 -1
- package/web/app/immutable/chunks/{C0XKBd5S.js → BVTzd6Hl.js} +1 -1
- package/web/app/immutable/chunks/{BmC4tEjN.js → BXVypBPm.js} +1 -1
- package/web/app/immutable/chunks/{DltL77xh.js → BZvRHZRX.js} +3 -3
- package/web/app/immutable/chunks/{B1BgnlCp.js → B_DnvXWy.js} +1 -1
- package/web/app/immutable/chunks/{C7l0Qi5K.js → BbS3ITS9.js} +3 -3
- package/web/app/immutable/chunks/{DNdoVC6a.js → Bbhq0zNP.js} +1 -1
- package/web/app/immutable/chunks/{DxbU9ouN.js → BcPqtSWG.js} +1 -1
- package/web/app/immutable/chunks/{BtfRwPt7.js → BcZXVFY0.js} +1 -1
- package/web/app/immutable/chunks/{Dg4msq0S.js → Bd1yJLuT.js} +3 -3
- package/web/app/immutable/chunks/{D52r2_SQ.js → Be6UkUHV.js} +1 -1
- package/web/app/immutable/chunks/{vmkeuBVe.js → BgeOjbIJ.js} +1 -1
- package/web/app/immutable/chunks/{DtygAQLZ.js → BhRggWJG.js} +1 -1
- package/web/app/immutable/chunks/{Dt4bX8KM.js → BhdS24nz.js} +1 -1
- package/web/app/immutable/chunks/{DXO8eQ8m.js → BiwwC2i_.js} +1 -1
- package/web/app/immutable/chunks/{CAvsAMG1.js → BkkQ86YU.js} +3 -3
- package/web/app/immutable/chunks/{C65VWWrO.js → Blze1yhO.js} +1 -1
- package/web/app/immutable/chunks/{nP0kFcGH.js → BmCjoY7z.js} +1 -1
- package/web/app/immutable/chunks/{bOJ0A0T0.js → BnWwgbQb.js} +2 -2
- package/web/app/immutable/chunks/{DHrWTFlr.js → BtvkhtJl.js} +3 -3
- package/web/app/immutable/chunks/{dFXYIobT.js → Bu9XbfVp.js} +1 -1
- package/web/app/immutable/chunks/{ChgmG2BO.js → BuKCKjfD.js} +1 -1
- package/web/app/immutable/chunks/{Cxj53KWB.js → BvXw5pjm.js} +1 -1
- package/web/app/immutable/chunks/{DdVKhlSE.js → BxV3tHc5.js} +1 -1
- package/web/app/immutable/chunks/{CTZj8P4K.js → BxZoDX0x.js} +1 -1
- package/web/app/immutable/chunks/{DHP7uaTl.js → BytTiswf.js} +46 -46
- package/web/app/immutable/chunks/{EXklmDak.js → C-VaINAh.js} +1 -1
- package/web/app/immutable/chunks/{BFrK5arF.js → C1kTqhrr.js} +1 -1
- package/web/app/immutable/chunks/{DkA8rA6d.js → C6h7jyQ0.js} +1 -1
- package/web/app/immutable/chunks/{6AoPTtLI.js → CA7EW4TZ.js} +1 -1
- package/web/app/immutable/chunks/{DKAYHp4B.js → CCo3qtBT.js} +1 -1
- package/web/app/immutable/chunks/{Cv3VPe8L.js → CHANO0NR.js} +1 -1
- package/web/app/immutable/chunks/{CBhc_pLy.js → CJJx_QIR.js} +1 -1
- package/web/app/immutable/chunks/{CYaSc2Q1.js → CLObTzYA.js} +1 -1
- package/web/app/immutable/chunks/{C2I2Ii1u.js → CLrh-ioU.js} +1 -1
- package/web/app/immutable/chunks/{Bh-jBfbM.js → CNot5Xcx.js} +1 -1
- package/web/app/immutable/chunks/{Bn5omuEb.js → CPj748Kb.js} +1 -1
- package/web/app/immutable/chunks/{idGIWvOH.js → CSTA4Rpp.js} +1 -1
- package/web/app/immutable/chunks/{DL0qyyOL.js → CXPDYmq9.js} +1 -1
- package/web/app/immutable/chunks/{DQ-MSxyp.js → CY6Tgnsl.js} +1 -1
- package/web/app/immutable/chunks/{CJXN40w9.js → C_xHqw3E.js} +3 -3
- package/web/app/immutable/chunks/{DkjvcUsP.js → CavHmsXI.js} +2 -2
- package/web/app/immutable/chunks/{M5LF5FKY.js → CbVQfloe.js} +1 -1
- package/web/app/immutable/chunks/{BX9yK5SR.js → CcN7mJ_U.js} +1 -1
- package/web/app/immutable/chunks/{CSHq_biu.js → CcOfQ1Gy.js} +2 -2
- package/web/app/immutable/chunks/{pQG9xktk.js → ChtQ627P.js} +1 -1
- package/web/app/immutable/chunks/{BbS5Qizt.js → CiD1dowc.js} +1 -1
- package/web/app/immutable/chunks/{cTDZw3QR.js → Crc_RZlw.js} +1 -1
- package/web/app/immutable/chunks/{BEOu6eQL.js → Crxrlr4k.js} +1 -1
- package/web/app/immutable/chunks/{apIeVE2H.js → Cs2yVMNS.js} +1 -1
- package/web/app/immutable/chunks/{VPexQKGs.js → Cv5uE2nr.js} +1 -1
- package/web/app/immutable/chunks/{CVkMmqXo.js → CvrktPas.js} +1 -1
- package/web/app/immutable/chunks/{DbGYKgXT.js → CwQ__QB6.js} +1 -1
- package/web/app/immutable/chunks/{pGhoz8FU.js → Cz8SK8lY.js} +1 -1
- package/web/app/immutable/chunks/{qgDYb1By.js → D-_X4rIZ.js} +2 -2
- package/web/app/immutable/chunks/{BpsufErm.js → D06l8Z7y.js} +1 -1
- package/web/app/immutable/chunks/{B4H4s5Rg.js → D07ilAuT.js} +1 -1
- package/web/app/immutable/chunks/{DePeY13v.js → D0GXE8-2.js} +2 -2
- package/web/app/immutable/chunks/{DwUTqa-t.js → D0dCVsGx.js} +1 -1
- package/web/app/immutable/chunks/{BDEbFHGY.js → D0g7LNHv.js} +3 -3
- package/web/app/immutable/chunks/{DD3t48QH.js → D27jN3Dg.js} +1 -1
- package/web/app/immutable/chunks/{BgOH0Zzl.js → D3Uccj5-.js} +1 -1
- package/web/app/immutable/chunks/{Dno6xKfG.js → D7BSEHxV.js} +1 -1
- package/web/app/immutable/chunks/{tPn0bGH7.js → D7NgsFtX.js} +4 -4
- package/web/app/immutable/chunks/{Dwcp9g5N.js → D7p6sqYu.js} +1 -1
- package/web/app/immutable/chunks/{CU5BHy1W.js → DAV1dgP_.js} +1 -1
- package/web/app/immutable/chunks/{y4eDAS8h.js → DEBzQhFj.js} +1 -1
- package/web/app/immutable/chunks/{D3VgLsjX.js → DJghC2cn.js} +1 -1
- package/web/app/immutable/chunks/{CPqT58jI.js → DP8R2A_9.js} +1 -1
- package/web/app/immutable/chunks/{BR-Ar56A.js → DVYKRap9.js} +1 -1
- package/web/app/immutable/chunks/{DcrFkbHp.js → DVxZwdBj.js} +1 -1
- package/web/app/immutable/chunks/{BbdYMVNx.js → DY9_t95j.js} +1 -1
- package/web/app/immutable/chunks/{ChXP1yTZ.js → D_ID4BWe.js} +1 -1
- package/web/app/immutable/chunks/{CikjWVQh.js → Dao2qcXJ.js} +1 -1
- package/web/app/immutable/chunks/{DGrWVJ0v.js → DaqnlEJR.js} +1 -1
- package/web/app/immutable/chunks/{GuF0uSZG.js → DboA1NeQ.js} +1 -1
- package/web/app/immutable/chunks/{DBRi5-39.js → DcdXOwGw.js} +1 -1
- package/web/app/immutable/chunks/{bfJbR-yE.js → Det4RbYN.js} +1 -1
- package/web/app/immutable/chunks/{pXldx06t.js → DlT8jbfO.js} +1 -1
- package/web/app/immutable/chunks/{D--zmlwp.js → DmNvVRRE.js} +1 -1
- package/web/app/immutable/chunks/{D-qAIzQP.js → DqAYbvOg.js} +2 -2
- package/web/app/immutable/chunks/{B-AmD-Nq.js → DrNuCzBC.js} +1 -1
- package/web/app/immutable/chunks/{BuZhTAVX.js → DsVuLeey.js} +1 -1
- package/web/app/immutable/chunks/{8NOm3iaU.js → Dsr7i_He.js} +1 -1
- package/web/app/immutable/chunks/{DqNieJFI.js → Exc8p1jd.js} +1 -1
- package/web/app/immutable/chunks/{BjW79gKz.js → FBvbrcZr.js} +1 -1
- package/web/app/immutable/chunks/{CWADgVJP.js → HL3zgzKn.js} +1 -1
- package/web/app/immutable/chunks/{BNUyltQZ.js → Km71QNzW.js} +1 -1
- package/web/app/immutable/chunks/{D6dBEmMZ.js → OZBmmXod.js} +3 -3
- package/web/app/immutable/chunks/{DHh2eCii.js → QSE3LueN.js} +1 -1
- package/web/app/immutable/chunks/{CibNXCBL.js → QisRq2Sw.js} +1 -1
- package/web/app/immutable/chunks/{CGs0vmiU.js → V9WvgRYX.js} +1 -1
- package/web/app/immutable/chunks/{Z3XtTxwQ.js → VFjJnRWQ.js} +2 -2
- package/web/app/immutable/chunks/{C2MLvspO.js → W11aBxPu.js} +1 -1
- package/web/app/immutable/chunks/{DyYcnOWN.js → Zfe2ndo2.js} +1 -1
- package/web/app/immutable/chunks/{DOkTuNnC.js → _Kd9GHXD.js} +1 -1
- package/web/app/immutable/chunks/{4Kf5TY5X.js → _vlUWDHN.js} +1 -1
- package/web/app/immutable/chunks/{DTJ583wE.js → aMfDxuvw.js} +1 -1
- package/web/app/immutable/chunks/{DcimsnLD.js → cOqLUCrx.js} +1 -1
- package/web/app/immutable/chunks/{C0ItZHN5.js → fVUImVux.js} +1 -1
- package/web/app/immutable/chunks/{Cu9L3sv4.js → gb92yXjT.js} +1 -1
- package/web/app/immutable/chunks/{B74l16-1.js → iSEs_vDT.js} +1 -1
- package/web/app/immutable/chunks/{DT3Hhppd.js → k1zcqeIU.js} +1 -1
- package/web/app/immutable/chunks/{2AhpRF3T.js → qiLHIFHW.js} +1 -1
- package/web/app/immutable/chunks/{CxIswu2X.js → sYqaWTP3.js} +1 -1
- package/web/app/immutable/chunks/{CwhN6crj.js → uqpkI3ja.js} +1 -1
- package/web/app/immutable/entry/{app.7G8GWQFV.js → app.D_4OTEkX.js} +2 -2
- package/web/app/immutable/entry/start.qUtaE6c2.js +1 -0
- package/web/app/immutable/nodes/{0.DRiM7T-G.js → 0.2VtZG26z.js} +1 -1
- package/web/app/immutable/nodes/{1.9vkn3vyy.js → 1.B0usVk87.js} +1 -1
- package/web/app/immutable/nodes/{10.DSYgbbT9.js → 10.BsWr1W3S.js} +4 -4
- package/web/app/immutable/nodes/{11.CIM80lhx.js → 11.BQtMkcf2.js} +1 -1
- package/web/app/immutable/nodes/{15.3l37Ve75.js → 15.BLJkehTM.js} +1 -1
- package/web/app/immutable/nodes/{19.CnXH3Iz_.js → 19.CM_o2Cvu.js} +2 -2
- package/web/app/immutable/nodes/{2.wGzWUUPc.js → 2.D3E2UrAW.js} +4 -4
- package/web/app/immutable/nodes/{3.CTWSQnPv.js → 3.DdcIH9ug.js} +1 -1
- package/web/app/immutable/nodes/{4.BSig_ApP.js → 4.PpqfkNsN.js} +1 -1
- package/web/app/immutable/nodes/{5.NR-bMbpi.js → 5.D-L3Wu1j.js} +1 -1
- package/web/app/immutable/nodes/{6.Xig6esy6.js → 6.BD1nMsC2.js} +1 -1
- package/web/app/immutable/nodes/{7.FpVTsVRc.js → 7.CpDR971O.js} +1 -1
- package/web/app/immutable/nodes/{8.CqRfRN2m.js → 8.C49Lx7aV.js} +1 -1
- package/web/app/immutable/nodes/{9.nHcDmWdB.js → 9.BoGpnsP3.js} +11 -11
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +8 -8
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.Cgrocrgj.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as xe}from"./nP0kFcGH.js";import{p as be}from"./CPqT58jI.js";import{b as C,a6 as Ce,W as ae,q as ee,aX as we,B as Te,ay as te,b8 as B,aW as Z,a_ as Le,V as $e,b0 as Ae,Y as Fe,U as _e,aZ as Ne,O as Me,ao as ke,r as Ve}from"./HaIAX7Y7.js";import{p as ze}from"./B6Lw5fq5.js";import{f as O,o as Q}from"./BX9yK5SR.js";function De(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function Pe(){return this.eachAfter(De)}function Be(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function We(t,a){for(var l=this,n=[l],s,r,h=-1;l=n.pop();)if(t.call(a,l,++h,this),s=l.children)for(r=s.length-1;r>=0;--r)n.push(s[r]);return this}function Ee(t,a){for(var l=this,n=[l],s=[],r,h,d,f=-1;l=n.pop();)if(s.push(l),r=l.children)for(h=0,d=r.length;h<d;++h)n.push(r[h]);for(;l=s.pop();)t.call(a,l,++f,this);return this}function Re(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function He(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,s=n&&n.length;--s>=0;)l+=n[s].value;a.value=l})}function Ie(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function Oe(t){for(var a=this,l=qe(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var s=n.length;t!==l;)n.splice(s,0,t),t=t.parent;return n}function qe(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),s=null;for(t=l.pop(),a=n.pop();t===a;)s=t,t=l.pop(),a=n.pop();return s}function Ge(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Xe(){return Array.from(this)}function Ye(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function je(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ue(){var t=this,a,l=[t],n,s,r;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(s=0,r=n.length;s<r;++s)l.push(n[s]);while(l.length)}function ne(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ke)):a===void 0&&(a=Je);for(var l=new Y(t),n,s=[l],r,h,d,f;n=s.pop();)if((h=a(n.data))&&(f=(h=Array.from(h)).length))for(n.children=h,d=f-1;d>=0;--d)s.push(r=h[d]=new Y(h[d])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(et)}function Ze(){return ne(this).eachBefore(Qe)}function Je(t){return t.children}function Ke(t){return Array.isArray(t)?t[1]:null}function Qe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function et(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=ne.prototype={constructor:Y,count:Pe,each:Be,eachAfter:Ee,eachBefore:We,find:Re,sum:He,sort:Ie,path:Oe,ancestors:Ge,descendants:Xe,leaves:Ye,links:je,copy:Ze,[Symbol.iterator]:Ue};function tt(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function at(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function oe(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(n-a)/t.value;++d<f;)h=r[d],h.y0=l,h.y1=s,h.x0=a,h.x1=a+=h.value*o}Object.create(Y.prototype);function ce(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(s-l)/t.value;++d<f;)h=r[d],h.x0=a,h.x1=n,h.y0=l,h.y1=l+=h.value*o}var he=(1+Math.sqrt(5))/2;function de(t,a,l,n,s,r){for(var h=[],d=a.children,f,o,u=0,S=0,i=d.length,v,x,g=a.value,p,b,_,$,z,R,N;u<i;){v=s-l,x=r-n;do p=d[S++].value;while(!p&&S<i);for(b=_=p,R=Math.max(x/v,v/x)/(g*t),N=p*p*R,z=Math.max(_/N,N/b);S<i;++S){if(p+=o=d[S].value,o<b&&(b=o),o>_&&(_=o),N=p*p*R,$=Math.max(_/N,N/b),$>z){p-=o;break}z=$}h.push(f={value:p,dice:v<x,children:d.slice(u,S)}),f.dice?oe(f,l,n,s,g?n+=x*p/g:r):ce(f,l,n,g?l+=v*p/g:s,r),g-=p,u=S}return h}var nt=(function t(a){function l(n,s,r,h,d){de(a,n,s,r,h,d)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);function lt(){var t=nt,a=!1,l=1,n=1,s=[0],r=q,h=q,d=q,f=q,o=q;function u(i){return i.x0=i.y0=0,i.x1=l,i.y1=n,i.eachBefore(S),s=[0],a&&i.eachBefore(at),i}function S(i){var v=s[i.depth],x=i.x0+v,g=i.y0+v,p=i.x1-v,b=i.y1-v;p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),i.x0=x,i.y0=g,i.x1=p,i.y1=b,i.children&&(v=s[i.depth+1]=r(i)/2,x+=o(i)-v,g+=h(i)-v,p-=d(i)-v,b-=f(i)-v,p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),t(i,x,g,p,b))}return u.round=function(i){return arguments.length?(a=!!i,u):a},u.size=function(i){return arguments.length?(l=+i[0],n=+i[1],u):[l,n]},u.tile=function(i){return arguments.length?(t=tt(i),u):t},u.padding=function(i){return arguments.length?u.paddingInner(i).paddingOuter(i):u.paddingInner()},u.paddingInner=function(i){return arguments.length?(r=typeof i=="function"?i:G(+i),u):r},u.paddingOuter=function(i){return arguments.length?u.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i):u.paddingTop()},u.paddingTop=function(i){return arguments.length?(h=typeof i=="function"?i:G(+i),u):h},u.paddingRight=function(i){return arguments.length?(d=typeof i=="function"?i:G(+i),u):d},u.paddingBottom=function(i){return arguments.length?(f=typeof i=="function"?i:G(+i),u):f},u.paddingLeft=function(i){return arguments.length?(o=typeof i=="function"?i:G(+i),u):o},u}(function t(a){function l(n,s,r,h,d){if((f=n._squarify)&&f.ratio===a)for(var f,o,u,S,i=-1,v,x=f.length,g=n.value;++i<x;){for(o=f[i],u=o.children,S=o.value=0,v=u.length;S<v;++S)o.value+=u[S].value;o.dice?oe(o,s,r,h,g?r+=(d-r)*o.value/g:d):ce(o,s,r,g?s+=(h-s)*o.value/g:h,d),g-=o.value}else n._squarify=f=de(a,n,s,r,h,d),f.ratio=a}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);var E,ue=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Le,this.getAccTitle=$e,this.setDiagramTitle=Ae,this.getDiagramTitle=Fe,this.getAccDescription=_e,this.setAccDescription=Ne}getNodes(){return this.nodes}getConfig(){const a=Me,l=ae();return ee({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},s=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s&&s.forEach(r=>{ke(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){Ve(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},C(E,"TreeMapDB"),E);function pe(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const s={name:n.name,children:n.type==="Leaf"?void 0:[]};for(s.classSelector=n?.classSelector,n?.cssCompiledStyles&&(s.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(s.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(s);else{const r=l[l.length-1].node;r.children?r.children.push(s):r.children=[s]}n.type!=="Leaf"&&l.push({node:s,level:n.level})}),a}C(pe,"buildHierarchy");var st=C((t,a)=>{be(t,a);const l=[];for(const r of t.TreemapRows??[])r.$type==="ClassDefStatement"&&a.addClass(r.className??"",r.styleText??"");for(const r of t.TreemapRows??[]){const h=r.item;if(!h)continue;const d=r.indent?parseInt(r.indent):0,f=rt(h),o=h.classSelector?a.getStylesForClass(h.classSelector):[],u=o.length>0?o:void 0,S={level:d,name:f,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:u};l.push(S)}const n=pe(l),s=C((r,h)=>{for(const d of r)a.addNode(d,h),d.children&&d.children.length>0&&s(d.children,h+1)},"addNodesRecursively");s(n,0)},"populate"),rt=C(t=>t.name?String(t.name):"","getItemName"),fe={parser:{yy:void 0},parse:C(async t=>{try{const l=await ze("treemap",t);te.debug("Treemap AST:",l);const n=fe.parser?.yy;if(!(n instanceof ue))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");st(l,n)}catch(a){throw te.error("Error parsing treemap:",a),a}},"parse")},it=10,W=10,X=25,ot=C((t,a,l,n)=>{const s=n.db,r=s.getConfig(),h=r.padding??it,d=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:o}=ae();if(!f)return;const u=d?30:0,S=we(a),i=r.nodeWidth?r.nodeWidth*W:960,v=r.nodeHeight?r.nodeHeight*W:500,x=i,g=v+u;S.attr("viewBox",`0 0 ${x} ${g}`),Te(S,g,x,r.useMaxWidth);let p;try{const e=r.valueFormat||",";if(e==="$0,0")p=C(c=>"$"+O(",")(c),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const c=/\.\d+/.exec(e),m=c?c[0]:"";p=C(w=>"$"+O(","+m)(w),"valueFormat")}else if(e.startsWith("$")){const c=e.substring(1);p=C(m=>"$"+O(c||"")(m),"valueFormat")}else p=O(e)}catch(e){te.error("Error creating format function:",e),p=O(",")}const b=Q().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),_=Q().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),$=Q().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);d&&S.append("text").attr("x",x/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const z=S.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=ne(f).sum(e=>e.value??0).sort((e,c)=>(c.value??0)-(e.value??0)),le=lt().size([i,v]).paddingTop(e=>e.children&&e.children.length>0?X+W:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?W:0).paddingRight(e=>e.children&&e.children.length>0?W:0).paddingBottom(e=>e.children&&e.children.length>0?W:0).round(!0)(R),me=le.descendants().filter(e=>e.children&&e.children.length>0),H=z.selectAll(".treemapSection").data(me).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),H.append("clipPath").attr("id",(e,c)=>`clip-section-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,c)=>`treemapSection section${c}`).attr("fill",e=>b(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>_(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const c=B({cssCompiledStyles:e.data.cssCompiledStyles});return c.nodeStyles+";"+c.borderStyles.join(";")}),H.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,c)=>`url(#clip-section-${a}-${c})`).attr("style",e=>{if(e.depth===0)return"display: none;";const c="dominant-baseline: middle; font-size: 12px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const c=Z(this),m=e.data.name;c.text(m);const w=e.x1-e.x0,L=6;let T;r.showValues!==!1&&e.value?T=w-10-30-10-L:T=w-L-6;const y=Math.max(15,T),M=c.node();if(M.getComputedTextLength()>y){let V=m;for(;V.length>0;){if(V=m.substring(0,V.length-1),V.length===0){c.text("..."),M.getComputedTextLength()>y&&c.text("");break}if(c.text(V+"..."),M.getComputedTextLength()<=y)break}}}),r.showValues!==!1&&H.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const c="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")});const se=le.leaves(),A=se.length>20,ge=A?16:38,j=A?14:28,D=A?4:8,I=A?4:6,J=A?2:4,re=A?8:10,K=A?1:2,U=z.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class",(e,c)=>`treemapNode treemapLeafGroup leaf${c}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);U.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("style",e=>B({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("stroke-width",3),U.append("clipPath").attr("id",(e,c)=>`clip-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),U.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const c=`text-anchor: middle; dominant-baseline: middle; font-size: ${ge}px;fill:`+$(e.data.name)+";",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,c)=>`url(#clip-${a}-${c})`).text(e=>e.data.name).each(function(e){const c=Z(this),m=e.x1-e.x0,w=e.y1-e.y0,L=c.node(),T=m-2*J,P=w-2*J;if(T<re||P<re){c.style("display","none");return}let y=parseInt(c.style("font-size"),10);const M=.6;for(;L.getComputedTextLength()>T&&y>D;)y--,c.style("font-size",`${y}px`);let F=Math.max(I,Math.min(j,Math.round(y*M))),k=y+K+F;for(;k>P&&y>D&&(y--,F=Math.max(I,Math.min(j,Math.round(y*M))),!(F<I&&y===D));)c.style("font-size",`${y}px`),k=y+K+F;c.style("font-size",`${y}px`),A?(y<D||P<D)&&c.style("display","none"):(L.getComputedTextLength()>T||y<D||P<y)&&c.style("display","none")}),r.showValues!==!1&&U.append("text").attr("class","treemapValue").attr("x",c=>(c.x1-c.x0)/2).attr("y",function(c){return(c.y1-c.y0)/2}).attr("style",c=>{const m=`text-anchor: middle; dominant-baseline: hanging; font-size: ${j}px;fill:`+$(c.data.name)+";",w=B({cssCompiledStyles:c.data.cssCompiledStyles});return m+w.labelStyles.replace("color:","fill:")}).attr("clip-path",(c,m)=>`url(#clip-${a}-${m})`).text(c=>c.value?p(c.value):"").each(function(c){const m=Z(this),w=this.parentNode;if(!w){m.style("display","none");return}const L=Z(w).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){m.style("display","none");return}const T=parseFloat(L.style("font-size")),y=Math.max(I,Math.min(j,Math.round(T*.6)));m.style("font-size",`${y}px`);const F=(c.y1-c.y0)/2+T/2+K;m.attr("y",F);const k=c.x1-c.x0,ie=c.y1-c.y0-4,ve=k-2*J;m.node().getComputedTextLength()>ve||F+y>ie||y<I?m.style("display","none"):m.style("display",null)});const ye=r.diagramPadding??8;xe(S,ye,"flowchart",r?.useMaxWidth||!1)},"draw"),ct=C(function(t,a){return a.db.getClasses()},"getClasses"),ht={draw:ot,getClasses:ct},dt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ut=C(({treemap:t}={})=>{const a=Ce(),l=ae(),n=ee(a,l.themeVariables),s=ee(dt,t),r=s.titleColor??n.titleColor,h=s.labelColor??n.textColor,d=s.valueColor??n.textColor;return`
|
|
1
|
+
import{s as xe}from"./BmCjoY7z.js";import{p as be}from"./DP8R2A_9.js";import{b as C,a6 as Ce,W as ae,q as ee,aX as we,B as Te,ay as te,b8 as B,aW as Z,a_ as Le,V as $e,b0 as Ae,Y as Fe,U as _e,aZ as Ne,O as Me,ao as ke,r as Ve}from"./BMfv2h4V.js";import{p as ze}from"./B6Lw5fq5.js";import{f as O,o as Q}from"./CcN7mJ_U.js";function De(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function Pe(){return this.eachAfter(De)}function Be(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function We(t,a){for(var l=this,n=[l],s,r,h=-1;l=n.pop();)if(t.call(a,l,++h,this),s=l.children)for(r=s.length-1;r>=0;--r)n.push(s[r]);return this}function Ee(t,a){for(var l=this,n=[l],s=[],r,h,d,f=-1;l=n.pop();)if(s.push(l),r=l.children)for(h=0,d=r.length;h<d;++h)n.push(r[h]);for(;l=s.pop();)t.call(a,l,++f,this);return this}function Re(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function He(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,s=n&&n.length;--s>=0;)l+=n[s].value;a.value=l})}function Ie(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function Oe(t){for(var a=this,l=qe(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var s=n.length;t!==l;)n.splice(s,0,t),t=t.parent;return n}function qe(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),s=null;for(t=l.pop(),a=n.pop();t===a;)s=t,t=l.pop(),a=n.pop();return s}function Ge(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Xe(){return Array.from(this)}function Ye(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function je(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ue(){var t=this,a,l=[t],n,s,r;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(s=0,r=n.length;s<r;++s)l.push(n[s]);while(l.length)}function ne(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ke)):a===void 0&&(a=Je);for(var l=new Y(t),n,s=[l],r,h,d,f;n=s.pop();)if((h=a(n.data))&&(f=(h=Array.from(h)).length))for(n.children=h,d=f-1;d>=0;--d)s.push(r=h[d]=new Y(h[d])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(et)}function Ze(){return ne(this).eachBefore(Qe)}function Je(t){return t.children}function Ke(t){return Array.isArray(t)?t[1]:null}function Qe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function et(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=ne.prototype={constructor:Y,count:Pe,each:Be,eachAfter:Ee,eachBefore:We,find:Re,sum:He,sort:Ie,path:Oe,ancestors:Ge,descendants:Xe,leaves:Ye,links:je,copy:Ze,[Symbol.iterator]:Ue};function tt(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function at(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function oe(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(n-a)/t.value;++d<f;)h=r[d],h.y0=l,h.y1=s,h.x0=a,h.x1=a+=h.value*o}Object.create(Y.prototype);function ce(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(s-l)/t.value;++d<f;)h=r[d],h.x0=a,h.x1=n,h.y0=l,h.y1=l+=h.value*o}var he=(1+Math.sqrt(5))/2;function de(t,a,l,n,s,r){for(var h=[],d=a.children,f,o,u=0,S=0,i=d.length,v,x,g=a.value,p,b,_,$,z,R,N;u<i;){v=s-l,x=r-n;do p=d[S++].value;while(!p&&S<i);for(b=_=p,R=Math.max(x/v,v/x)/(g*t),N=p*p*R,z=Math.max(_/N,N/b);S<i;++S){if(p+=o=d[S].value,o<b&&(b=o),o>_&&(_=o),N=p*p*R,$=Math.max(_/N,N/b),$>z){p-=o;break}z=$}h.push(f={value:p,dice:v<x,children:d.slice(u,S)}),f.dice?oe(f,l,n,s,g?n+=x*p/g:r):ce(f,l,n,g?l+=v*p/g:s,r),g-=p,u=S}return h}var nt=(function t(a){function l(n,s,r,h,d){de(a,n,s,r,h,d)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);function lt(){var t=nt,a=!1,l=1,n=1,s=[0],r=q,h=q,d=q,f=q,o=q;function u(i){return i.x0=i.y0=0,i.x1=l,i.y1=n,i.eachBefore(S),s=[0],a&&i.eachBefore(at),i}function S(i){var v=s[i.depth],x=i.x0+v,g=i.y0+v,p=i.x1-v,b=i.y1-v;p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),i.x0=x,i.y0=g,i.x1=p,i.y1=b,i.children&&(v=s[i.depth+1]=r(i)/2,x+=o(i)-v,g+=h(i)-v,p-=d(i)-v,b-=f(i)-v,p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),t(i,x,g,p,b))}return u.round=function(i){return arguments.length?(a=!!i,u):a},u.size=function(i){return arguments.length?(l=+i[0],n=+i[1],u):[l,n]},u.tile=function(i){return arguments.length?(t=tt(i),u):t},u.padding=function(i){return arguments.length?u.paddingInner(i).paddingOuter(i):u.paddingInner()},u.paddingInner=function(i){return arguments.length?(r=typeof i=="function"?i:G(+i),u):r},u.paddingOuter=function(i){return arguments.length?u.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i):u.paddingTop()},u.paddingTop=function(i){return arguments.length?(h=typeof i=="function"?i:G(+i),u):h},u.paddingRight=function(i){return arguments.length?(d=typeof i=="function"?i:G(+i),u):d},u.paddingBottom=function(i){return arguments.length?(f=typeof i=="function"?i:G(+i),u):f},u.paddingLeft=function(i){return arguments.length?(o=typeof i=="function"?i:G(+i),u):o},u}(function t(a){function l(n,s,r,h,d){if((f=n._squarify)&&f.ratio===a)for(var f,o,u,S,i=-1,v,x=f.length,g=n.value;++i<x;){for(o=f[i],u=o.children,S=o.value=0,v=u.length;S<v;++S)o.value+=u[S].value;o.dice?oe(o,s,r,h,g?r+=(d-r)*o.value/g:d):ce(o,s,r,g?s+=(h-s)*o.value/g:h,d),g-=o.value}else n._squarify=f=de(a,n,s,r,h,d),f.ratio=a}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);var E,ue=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Le,this.getAccTitle=$e,this.setDiagramTitle=Ae,this.getDiagramTitle=Fe,this.getAccDescription=_e,this.setAccDescription=Ne}getNodes(){return this.nodes}getConfig(){const a=Me,l=ae();return ee({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},s=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s&&s.forEach(r=>{ke(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){Ve(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},C(E,"TreeMapDB"),E);function pe(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const s={name:n.name,children:n.type==="Leaf"?void 0:[]};for(s.classSelector=n?.classSelector,n?.cssCompiledStyles&&(s.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(s.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(s);else{const r=l[l.length-1].node;r.children?r.children.push(s):r.children=[s]}n.type!=="Leaf"&&l.push({node:s,level:n.level})}),a}C(pe,"buildHierarchy");var st=C((t,a)=>{be(t,a);const l=[];for(const r of t.TreemapRows??[])r.$type==="ClassDefStatement"&&a.addClass(r.className??"",r.styleText??"");for(const r of t.TreemapRows??[]){const h=r.item;if(!h)continue;const d=r.indent?parseInt(r.indent):0,f=rt(h),o=h.classSelector?a.getStylesForClass(h.classSelector):[],u=o.length>0?o:void 0,S={level:d,name:f,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:u};l.push(S)}const n=pe(l),s=C((r,h)=>{for(const d of r)a.addNode(d,h),d.children&&d.children.length>0&&s(d.children,h+1)},"addNodesRecursively");s(n,0)},"populate"),rt=C(t=>t.name?String(t.name):"","getItemName"),fe={parser:{yy:void 0},parse:C(async t=>{try{const l=await ze("treemap",t);te.debug("Treemap AST:",l);const n=fe.parser?.yy;if(!(n instanceof ue))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");st(l,n)}catch(a){throw te.error("Error parsing treemap:",a),a}},"parse")},it=10,W=10,X=25,ot=C((t,a,l,n)=>{const s=n.db,r=s.getConfig(),h=r.padding??it,d=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:o}=ae();if(!f)return;const u=d?30:0,S=we(a),i=r.nodeWidth?r.nodeWidth*W:960,v=r.nodeHeight?r.nodeHeight*W:500,x=i,g=v+u;S.attr("viewBox",`0 0 ${x} ${g}`),Te(S,g,x,r.useMaxWidth);let p;try{const e=r.valueFormat||",";if(e==="$0,0")p=C(c=>"$"+O(",")(c),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const c=/\.\d+/.exec(e),m=c?c[0]:"";p=C(w=>"$"+O(","+m)(w),"valueFormat")}else if(e.startsWith("$")){const c=e.substring(1);p=C(m=>"$"+O(c||"")(m),"valueFormat")}else p=O(e)}catch(e){te.error("Error creating format function:",e),p=O(",")}const b=Q().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),_=Q().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),$=Q().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);d&&S.append("text").attr("x",x/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const z=S.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=ne(f).sum(e=>e.value??0).sort((e,c)=>(c.value??0)-(e.value??0)),le=lt().size([i,v]).paddingTop(e=>e.children&&e.children.length>0?X+W:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?W:0).paddingRight(e=>e.children&&e.children.length>0?W:0).paddingBottom(e=>e.children&&e.children.length>0?W:0).round(!0)(R),me=le.descendants().filter(e=>e.children&&e.children.length>0),H=z.selectAll(".treemapSection").data(me).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),H.append("clipPath").attr("id",(e,c)=>`clip-section-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,c)=>`treemapSection section${c}`).attr("fill",e=>b(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>_(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const c=B({cssCompiledStyles:e.data.cssCompiledStyles});return c.nodeStyles+";"+c.borderStyles.join(";")}),H.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,c)=>`url(#clip-section-${a}-${c})`).attr("style",e=>{if(e.depth===0)return"display: none;";const c="dominant-baseline: middle; font-size: 12px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const c=Z(this),m=e.data.name;c.text(m);const w=e.x1-e.x0,L=6;let T;r.showValues!==!1&&e.value?T=w-10-30-10-L:T=w-L-6;const y=Math.max(15,T),M=c.node();if(M.getComputedTextLength()>y){let V=m;for(;V.length>0;){if(V=m.substring(0,V.length-1),V.length===0){c.text("..."),M.getComputedTextLength()>y&&c.text("");break}if(c.text(V+"..."),M.getComputedTextLength()<=y)break}}}),r.showValues!==!1&&H.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const c="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")});const se=le.leaves(),A=se.length>20,ge=A?16:38,j=A?14:28,D=A?4:8,I=A?4:6,J=A?2:4,re=A?8:10,K=A?1:2,U=z.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class",(e,c)=>`treemapNode treemapLeafGroup leaf${c}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);U.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("style",e=>B({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("stroke-width",3),U.append("clipPath").attr("id",(e,c)=>`clip-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),U.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const c=`text-anchor: middle; dominant-baseline: middle; font-size: ${ge}px;fill:`+$(e.data.name)+";",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,c)=>`url(#clip-${a}-${c})`).text(e=>e.data.name).each(function(e){const c=Z(this),m=e.x1-e.x0,w=e.y1-e.y0,L=c.node(),T=m-2*J,P=w-2*J;if(T<re||P<re){c.style("display","none");return}let y=parseInt(c.style("font-size"),10);const M=.6;for(;L.getComputedTextLength()>T&&y>D;)y--,c.style("font-size",`${y}px`);let F=Math.max(I,Math.min(j,Math.round(y*M))),k=y+K+F;for(;k>P&&y>D&&(y--,F=Math.max(I,Math.min(j,Math.round(y*M))),!(F<I&&y===D));)c.style("font-size",`${y}px`),k=y+K+F;c.style("font-size",`${y}px`),A?(y<D||P<D)&&c.style("display","none"):(L.getComputedTextLength()>T||y<D||P<y)&&c.style("display","none")}),r.showValues!==!1&&U.append("text").attr("class","treemapValue").attr("x",c=>(c.x1-c.x0)/2).attr("y",function(c){return(c.y1-c.y0)/2}).attr("style",c=>{const m=`text-anchor: middle; dominant-baseline: hanging; font-size: ${j}px;fill:`+$(c.data.name)+";",w=B({cssCompiledStyles:c.data.cssCompiledStyles});return m+w.labelStyles.replace("color:","fill:")}).attr("clip-path",(c,m)=>`url(#clip-${a}-${m})`).text(c=>c.value?p(c.value):"").each(function(c){const m=Z(this),w=this.parentNode;if(!w){m.style("display","none");return}const L=Z(w).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){m.style("display","none");return}const T=parseFloat(L.style("font-size")),y=Math.max(I,Math.min(j,Math.round(T*.6)));m.style("font-size",`${y}px`);const F=(c.y1-c.y0)/2+T/2+K;m.attr("y",F);const k=c.x1-c.x0,ie=c.y1-c.y0-4,ve=k-2*J;m.node().getComputedTextLength()>ve||F+y>ie||y<I?m.style("display","none"):m.style("display",null)});const ye=r.diagramPadding??8;xe(S,ye,"flowchart",r?.useMaxWidth||!1)},"draw"),ct=C(function(t,a){return a.db.getClasses()},"getClasses"),ht={draw:ot,getClasses:ct},dt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ut=C(({treemap:t}={})=>{const a=Ce(),l=ae(),n=ee(a,l.themeVariables),s=ee(dt,t),r=s.titleColor??n.titleColor,h=s.labelColor??n.textColor,d=s.valueColor??n.textColor;return`
|
|
2
2
|
.treemapNode.section {
|
|
3
3
|
stroke: ${s.sectionStrokeColor};
|
|
4
4
|
stroke-width: ${s.sectionStrokeWidth};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as Xt,bo as v,bm as F,bw as Zt,bs as Ye,bq as Jt,b as Qt}from"./DUPdECze.js";import{bs as en,c5 as Xe,ca as xe,aD as t,bH as H,a5 as M,bA as R,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as j,bl as Ze,bO as X,aB as T,b$ as Pe,be as sn,a7 as an,ay as Je}from"./CJxGDkBm.js";import{i as me}from"./BxPVGrtc.js";import{g as on,i as rn}from"./CDDY7bU6.js";import{f as ln}from"./DYGZj8tM.js";import{f as cn}from"./Ddv73vDp.js";import{k as dn}from"./CuOzd6CB.js";import{I$ as Se,o7 as fn,zN as un,sq as bt,o9 as hn,a8 as kt}from"./Dou_hoaA.js";import{bY as gn,dD as vn}from"./R5qsERXh.js";import{c as mn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./
|
|
1
|
+
import{t as Xt,bo as v,bm as F,bw as Zt,bs as Ye,bq as Jt,b as Qt}from"./DUPdECze.js";import{bs as en,c5 as Xe,ca as xe,aD as t,bH as H,a5 as M,bA as R,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as j,bl as Ze,bO as X,aB as T,b$ as Pe,be as sn,a7 as an,ay as Je}from"./CJxGDkBm.js";import{i as me}from"./BxPVGrtc.js";import{g as on,i as rn}from"./CDDY7bU6.js";import{f as ln}from"./DYGZj8tM.js";import{f as cn}from"./Ddv73vDp.js";import{k as dn}from"./CuOzd6CB.js";import{I$ as Se,o7 as fn,zN as un,sq as bt,o9 as hn,a8 as kt}from"./Dou_hoaA.js";import{bY as gn,dD as vn}from"./R5qsERXh.js";import{c as mn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./DcdXOwGw.js";import{F as wt,ba as _t}from"./DWlZtz5u.js";import{f as Qe}from"./CdO4czEi.js";import"./DeOvWG_V.js";import{S as Re}from"./B5sCzlWo.js";import{l as bn}from"./CzTFPES1.js";import{g as kn}from"./rvnDEnqx.js";function wn(q,c,oe,Ie=1){const We=Lt(q,c,oe,"","",{context:3}),re=new Set,pe=new Set,Z=_n(Ie)-1,De=We.split(`
|
|
2
2
|
`);let s=0,I=0,le=!1;for(const $ of De)if($.startsWith("@@")){le=!0;const J=$.match(/@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);J&&(I=parseInt(J[1],10),s=parseInt(J[2],10))}else le&&($.startsWith("+")?(re.add(s+Z),s++):$.startsWith("-")?(pe.add(I+Z),I++):$.startsWith(" ")&&(s++,I++));return{additions:re,deletions:pe}}function _n(q){return Number.isFinite(q)&&q>1?Math.floor(q):1}var Ln=T("<div><!> <!></div>"),Cn=T('<div class="diff-skeleton svelte-1f4chm"><div class="diff-skeleton-header svelte-1f4chm"><!> <!></div> <div class="diff-skeleton-content svelte-1f4chm"></div></div>'),yn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-danger text-sm ml-2"> </span></div>'),xn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-subtle text-sm ml-2"> </span></div>'),Pn=T('<div class="empty-state svelte-1f4chm"><span class="text-subtle text-sm"><!></span></div>'),Sn=T('<span class="icon">+</span> ',1),Hn=T('<span class="icon">−</span> ',1),Rn=T('<div class="selection-action-bar svelte-1f4chm"><span class="selection-info"> </span> <!> <!></div>'),In=T('<div class="diff-wrapper svelte-1f4chm"><!> <div class="diff-content svelte-1f4chm"><!></div></div>'),Wn=T('<div class="tracked-change-diff-viewer svelte-1f4chm"><!></div>');function Dn(q,c){if(new.target)return Xt({component:Dn,...q});en(c,!0);const oe=()=>Ye(yt,"$read$",re),Ie=()=>Ye(Rt,"$workspace$",re),We=()=>Ye(It,"$workingTreeFileContentStore",re),[re,pe]=Jt(),Z=mn("TrackedChangeDiffViewer"),De=2*1024*1024;let s=v(c,"change",7),I=v(c,"active",7,!0),le=v(c,"workspaceId",7),$=v(c,"viewMode",7,"unified"),J=v(c,"showHeader",7,!1),Ne=v(c,"foldUnchanged",7,!0),Me=v(c,"lineWrapping",7,!1),U=v(c,"onStageHunk",7),A=v(c,"onUnstageHunk",7),et=v(c,"onOpenCommit",7),Ue=v(c,"refreshKey",7),Ae=v(c,"branchBaseRef",7),Ee=v(c,"branchBaseCommitSha",7),ge=v(c,"useProvidedContent",7,!1),ce=v(c,"allowHeadReads",7,!0),Fe=v(c,"canReadHeadFiles",7),W=v(c,"lineOffset",7,1),tt=v(c,"lineStageIndicators",7),Oe=v(c,"annotations",23,()=>[]),Te=v(c,"renderAnnotation",7),$e=v(c,"virtualizer",7),G=v(c,"gitRootId",7,void 0),be=v(c,"gitRootPath",7,void 0);const de=Xe(()=>le())??kn()?.workspaceId??"",Ct=Math.random().toString(36).substring(2,8),Be=`tracked-diff:${crypto.randomUUID()}`,yt=gn(de,Be),Q=d(()=>oe()?.result?.kind==="trackedDiff"?oe().result:void 0),ke=d(()=>oe()?.loading??!0),nt=d(()=>oe()?.error??null),ze=d(()=>(t(Q)?.oldContent.length??0)+(t(Q)?.newContent.length??0)>De),B=d(()=>t(ze)?"":t(Q)?.oldContent??""),V=d(()=>t(ze)?"":t(Q)?.newContent??""),ee=d(()=>ct(s()?.relativePath||s()?.file||"")),it=d(()=>t(Q)?.chunk?.chunks.length?At(t(Q).chunk,t(ee)):""),xt=d(()=>!t(B)&&!t(V)&&!t(it)),Pt=d(()=>!!s()?.gitlink||!!t(Q)?.gitlink),st=d(()=>W()>1?`
|
|
3
3
|
`.repeat(W()-1):""),St=d(()=>t(st)+t(B)),Ht=d(()=>t(st)+t(V));let w=ae(null),Ke=ae(null),we=null,_e=ae(!1);const Rt=vn(de),at=pt(void 0),ot=pt(""),It=dn(ot,at),rt=d(Ie),te=d(()=>be()||t(rt)?.worktreePath||t(rt)?.repositoryPath||""),Le=d(()=>s()?.relativePath||s()?.file||"file"),Wt=d(()=>Ut(t(Le)));let Ce=ae(null),lt=ae("");function ct(e){if(!e.startsWith("/")||!t(te))return e;const i=t(te).endsWith("/")?t(te).slice(0,-1):t(te);if(e.startsWith(i+"/"))return e.slice(i.length+1);if(e.startsWith(i)){const a=e.slice(i.length);return a.startsWith("/")?a.slice(1):a}return e}function Dt(e){return e?e.startsWith("/")?e:t(te)?`${t(te)}/${e}`:null:null}const dt=d(()=>W()>1),Nt=d(()=>t(dt)?`${t(Le)}:${He(t(B))}:off${W()}`:void 0),Mt=d(()=>t(dt)?`${t(Le)}:${He(t(V))}:off${W()}`:void 0);function Ut(e){const i=e.split(".").pop()?.toLowerCase();return i?{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",py:"python",rs:"rust",go:"go",rb:"ruby",java:"java",kt:"kotlin",swift:"swift",cs:"csharp",cpp:"cpp",c:"c",h:"c",hpp:"cpp",json:"json",yaml:"yaml",yml:"yaml",toml:"toml",md:"markdown",html:"html",css:"css",scss:"scss",sql:"sql",sh:"bash",bash:"bash",zsh:"bash",svelte:"svelte",vue:"vue"}[i]:void 0}function At(e,i){const a=`a/${i}`,o=`b/${i}`,u=[`diff --git ${a} ${o}`,`--- ${a}`,`+++ ${o}`];for(const r of e.chunks){u.push(`@@ -${r.oldStart},${r.oldLines} +${r.newStart},${r.newLines} @@`);for(const h of r.lines){const l=h.type===kt.Addition?"+":h.type===kt.Deletion?"-":" ",g=h.content.endsWith(`
|
|
4
4
|
`)?h.content.slice(0,-1):h.content;u.push(`${l}${g}`)}}return u.join(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as K,bo as g,bw as Q,b as T,bm as D}from"./DUPdECze.js";import{bs as U,b_ as P,W as m,bn as X,aA as b,aC as ae,a7 as j,ay as B,aD as t,a5 as Z,bS as $,bH as h,bA as E,be as ie,b$ as se,bO as G,c9 as f,aB as F,bV as V,bl as ee,bk as oe}from"./CJxGDkBm.js";import{s as le,f as ue,c as ce}from"./DYGZj8tM.js";import{i as R}from"./BxPVGrtc.js";import{k as fe}from"./Db6vgmuJ.js";import{g as me,i as de}from"./CDDY7bU6.js";import{I as pe}from"./Dlc9o8A3.js";import"./O8wCypGr.js";import{L as ge}from"./uaMLzsQ7.js";import"./Cez5l2e8.js";import{D as be}from"./UwuLSYhm.js";import{b as te}from"./D0Mixsx9.js";import{J as ve,H as O}from"./
|
|
1
|
+
import{t as K,bo as g,bw as Q,b as T,bm as D}from"./DUPdECze.js";import{bs as U,b_ as P,W as m,bn as X,aA as b,aC as ae,a7 as j,ay as B,aD as t,a5 as Z,bS as $,bH as h,bA as E,be as ie,b$ as se,bO as G,c9 as f,aB as F,bV as V,bl as ee,bk as oe}from"./CJxGDkBm.js";import{s as le,f as ue,c as ce}from"./DYGZj8tM.js";import{i as R}from"./BxPVGrtc.js";import{k as fe}from"./Db6vgmuJ.js";import{g as me,i as de}from"./CDDY7bU6.js";import{I as pe}from"./Dlc9o8A3.js";import"./O8wCypGr.js";import{L as ge}from"./uaMLzsQ7.js";import"./Cez5l2e8.js";import{D as be}from"./UwuLSYhm.js";import{b as te}from"./D0Mixsx9.js";import{J as ve,H as O}from"./D07ilAuT.js";var _e=ae('<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M12 15.82L12 23.76M4.44 21L8.35 16.35A1.96 1.96 0 0 0 6.4 12.99L0.42 14.04M1.82 6.12L7.08 9.16A1.96 1.96 0 0 0 10.06 6.66L7.98 0.95M16.02 0.95L13.94 6.66A1.96 1.96 0 0 0 16.92 9.16L22.18 6.12M23.58 14.04L17.6 12.99A1.96 1.96 0 0 0 15.65 16.35L19.56 21" stroke="currentColor" stroke-width="2.06" stroke-linecap="butt" stroke-linejoin="round"></path></svg>');function Ce(p,i){if(new.target)return K({component:Ce,...p});U(i,!0);let s=g(i,"width",7,24),e=g(i,"class",7,"");var a={get width(){return s()},set width(o=24){s(o),b()},get class(){return e()},set class(o=""){e(o),b()},$set:Q,$on:(o,u)=>T(i,o,u)},l=_e();return P(()=>{le(l,"width",s()),ue(l,0,ce(e()))}),m(p,l),X(a)}var he=F('<span class="min-w-0 shrink truncate text-subtle"> </span>'),we=F('<li class="flex min-w-0 items-baseline justify-between gap-3"><span class="min-w-0 truncate"> </span> <!></li>'),Le=F('<ul class="grid gap-1.5"></ul>'),ye=F('<div class="grid gap-2"><!> <!></div>');function re(p,i){if(new.target)return K({component:re,...p});U(i,!0);const s=r=>{var c=j(),x=B(c);{var A=_=>{var H=Le();me(H,21,()=>e().options.items??[],de,(q,w)=>{var M=we(),I=Z(M),C=ee(I,!0),S=$(I,2);{var L=y=>{var Y=he(),ne=ee(Y,!0);P(()=>G(ne,t(w).detail)),m(y,Y)};R(S,y=>{t(w).detail&&y(L)})}E(M),P(()=>G(C,t(w).label)),m(q,M)}),E(H),m(_,H)};R(x,_=>{e().kind==="confirm"&&_(A)})}m(r,c)};let e=g(i,"request",7),a=g(i,"value",15,""),l=g(i,"busy",7,!1),o=g(i,"static",7,!1),u=g(i,"onAccept",7),v=g(i,"onCancel",7),k=V(null);var J={get request(){return e()},set request(r){e(r),b()},get value(){return a()},set value(r=""){a(r),b()},get busy(){return l()},set busy(r=!1){l(r),b()},get static(){return o()},set static(r=!1){o(r),b()},get onAccept(){return u()},set onAccept(r){u(r),b()},get onCancel(){return v()},set onCancel(r){v(r),b()},$set:Q,$on:(r,c)=>T(i,r,c)},n=j(),d=B(n);{var N=r=>{{let c=f(()=>e().options.confirmLabel??D.modals_bulkActionConfirm_confirm_label()),x=f(()=>e().options.cancelLabel??D.modals_bulkActionConfirm_cancel_label()),A=f(()=>e().options.destructive??!1),_=f(()=>e().options.items?.length?s:void 0);be(r,{open:!0,get static(){return o()},get title(){return e().options.title},get description(){return e().options.description},get confirmLabel(){return t(c)},get cancelLabel(){return t(x)},get destructive(){return t(A)},get details(){return t(_)},get busy(){return l()},onConfirm:()=>u()(a()),get onCancel(){return v()}})}},W=r=>{{let c=f(()=>e().options.confirmLabel??D.modals_input_confirm_label()),x=f(()=>e().options.cancelLabel??D.modals_input_cancel_label()),A=f(()=>!e().options.field.required||a().trim().length>0);te(r,{open:!0,get static(){return o()},get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return t(c)},get cancelLabel(){return t(x)},get canSubmit(){return t(A)},get busy(){return l()},get initialFocus(){return t(k)},onSubmit:()=>u()(a()),get onCancel(){return v()},children:(_,H)=>{var q=ye(),w=Z(q);{var M=C=>{ge(C,{for:"confirm-prompt-field",children:(S,L)=>{ie();var y=se();P(()=>G(y,e().options.field.label)),m(S,y)},$$slots:{default:!0}})};R(w,C=>{e().options.field.label&&C(M)})}var I=$(w,2);{let C=f(()=>e().options.field.type??"text"),S=f(()=>e().options.field.label?void 0:e().options.title);pe(I,{id:"confirm-prompt-field",get type(){return t(C)},get placeholder(){return e().options.field.placeholder},get"aria-label"(){return t(S)},get ref(){return t(k)},set ref(L){h(k,L,!0)},get value(){return a()},set value(L){a(L)}})}E(q),m(_,q)},$$slots:{default:!0}})}},z=r=>{{let c=f(()=>e().options.confirmLabel??D.modals_input_confirm_label());te(r,{open:!0,get static(){return o()},role:"alertdialog",get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return t(c)},showCancel:!1,dismissOnInteractOutside:!1,get busy(){return l()},onSubmit:()=>u()(a()),onCancel:()=>u()(a())})}};R(d,r=>{e()?.kind==="confirm"?r(N):e()?.kind==="prompt"?r(W,1):e()?.kind==="alert"&&r(z,2)})}return m(p,n),X(J)}function ke(p,i){if(new.target)return K({component:ke,...p});U(i,!0);let s=V(null),e=V(""),a=V(!1);oe(()=>ve(n=>{h(s,n,!0),h(e,n?.kind==="prompt"?n.options.field.initialValue??"":"",!0),h(a,!1)}));function l(){!t(s)||t(a)||O(t(s).id,t(s).kind==="confirm"?!1:null)}async function o(){if(!t(s)||t(a))return;const n=t(s);h(a,!0);try{n.kind==="confirm"?(await n.options.onConfirm?.(),O(n.id,!0)):n.kind==="prompt"?(await n.options.onConfirm?.(t(e).trim()),O(n.id,t(e).trim())):O(n.id,void 0)}catch(d){throw console.error("Confirm action failed:",d),h(a,!1),d}}var u={$set:Q,$on:(n,d)=>T(i,n,d)},v=j(),k=B(v);{var J=n=>{var d=j(),N=B(d);fe(N,()=>t(s).id,W=>{re(W,{get request(){return t(s)},get busy(){return t(a)},onAccept:o,onCancel:l,get value(){return t(e)},set value(z){h(e,z,!0)}})}),m(n,d)};R(k,n=>{t(s)&&n(J)})}return m(p,v),X(u)}export{ke as C,Ce as L};
|