orcaq 1.1.3 → 1.1.4
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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{Co7e2XML.js → -sZwfgN3.js} +1 -1
- package/.output/public/_nuxt/1iqadsOZ.js +1 -0
- package/.output/public/_nuxt/2WkPV7Mp.js +22 -0
- package/.output/public/_nuxt/{CmjR7OTc.js → 2XEGje4L.js} +1 -1
- package/.output/public/_nuxt/{BYOPXIhP.js → 5cKDQgbQ.js} +1 -1
- package/.output/public/_nuxt/{Ckry8tuC.js → B8rT4ISg.js} +2 -2
- package/.output/public/_nuxt/{DVkCRFXi.js → B9Yq_mZo.js} +1 -1
- package/.output/public/_nuxt/{BCAMWuzu.js → BCFLQ_rL.js} +1 -1
- package/.output/public/_nuxt/{DChDHsIe.js → BIHJR--x.js} +1 -1
- package/.output/public/_nuxt/{DJBO_9pO.js → BN9sUptU.js} +1 -1
- package/.output/public/_nuxt/{DX8ecA59.js → BNkZeak0.js} +1 -1
- package/.output/public/_nuxt/{qRiDKEr7.js → BNqd1Zca.js} +1 -1
- package/.output/public/_nuxt/BOZgY48g.js +1 -0
- package/.output/public/_nuxt/{DA4Xn6lm.js → BQFJwqXj.js} +1 -1
- package/.output/public/_nuxt/{C-Pa1rIR.js → BSBcOKKj.js} +1 -1
- package/.output/public/_nuxt/{CtCx-4nJ.js → BVl8VKr5.js} +1 -1
- package/.output/public/_nuxt/{vaJvtND9.js → BWphy0Pi.js} +1 -1
- package/.output/public/_nuxt/{B_ERKujF.js → BXp87mMj.js} +4 -4
- package/.output/public/_nuxt/{j23gQsG7.js → BYY9MB0h.js} +1 -1
- package/.output/public/_nuxt/{g9ZMnTLJ.js → BYav_5oM.js} +1 -1
- package/.output/public/_nuxt/{BG-rJefG.js → B_J4rjuT.js} +1 -1
- package/.output/public/_nuxt/{BzzgEvr9.js → B_U4hCvn.js} +2 -2
- package/.output/public/_nuxt/{DgJOougY.js → BdCzQG_z.js} +1 -1
- package/.output/public/_nuxt/{CGq9Twnj.js → BdX6JvdH.js} +1 -1
- package/.output/public/_nuxt/{BigePTMZ.js → BdaSWOzD.js} +1 -1
- package/.output/public/_nuxt/{D0lW43G8.js → BfSmOVMj.js} +119 -119
- package/.output/public/_nuxt/{VNOocds9.js → BiMJOLHR.js} +1 -1
- package/.output/public/_nuxt/{5oARMrld.js → BlRPNODF.js} +1 -1
- package/.output/public/_nuxt/BmREJclf.js +1 -0
- package/.output/public/_nuxt/{DPq8O9CC.js → Bp1mKnR0.js} +1 -1
- package/.output/public/_nuxt/{hIbRoJ89.js → BqZGP9WI.js} +1 -1
- package/.output/public/_nuxt/{Ohrg3hU7.js → BqjMHuu8.js} +1 -1
- package/.output/public/_nuxt/{BzywwPw6.js → Brupmvos.js} +1 -1
- package/.output/public/_nuxt/{BcyZ-eCi.js → BsA8eQHh.js} +1 -1
- package/.output/public/_nuxt/Bwe8I9vL.js +1 -0
- package/.output/public/_nuxt/{DvWEWtFg.js → BxdkXfb_.js} +1 -1
- package/.output/public/_nuxt/{Db3rTgnd.js → C20WaARR.js} +1 -1
- package/.output/public/_nuxt/{Czr647QE.js → C2kyA9ZS.js} +1 -1
- package/.output/public/_nuxt/C4HRDaS8.js +1 -0
- package/.output/public/_nuxt/{eOeO5uM0.js → C5zTeLKh.js} +1 -1
- package/.output/public/_nuxt/{wodl4bLW.js → C6r_nDJz.js} +1 -1
- package/.output/public/_nuxt/{C0vscAQB.js → C6yADG7D.js} +1 -1
- package/.output/public/_nuxt/{bkzIFcLw.js → CBfQCVFf.js} +1 -1
- package/.output/public/_nuxt/{CqkctA6I.js → CDPrFhDR.js} +1 -1
- package/.output/public/_nuxt/{CbHZwHBV.js → CFOJLBf2.js} +1 -1
- package/.output/public/_nuxt/{BdZsZgcB.js → CJhlBUX_.js} +1 -1
- package/.output/public/_nuxt/{syq5mCJi.js → CLXbv9E5.js} +1 -1
- package/.output/public/_nuxt/{BseVuOZ1.js → CMT3TfI0.js} +1 -1
- package/.output/public/_nuxt/{BMLhg7hE.js → CRX1CszZ.js} +1 -1
- package/.output/public/_nuxt/{B-4cXhNx.js → CYaqLaPZ.js} +1 -1
- package/.output/public/_nuxt/{CHMlsxJw.js → Cih6uwf6.js} +1 -1
- package/.output/public/_nuxt/{BZ4ThSRp.js → CmzTcheK.js} +1 -1
- package/.output/public/_nuxt/{D28ykMUi.js → CrNrSEll.js} +1 -1
- package/.output/public/_nuxt/{DKLk0T0H.js → CwgI7YXL.js} +1 -1
- package/.output/public/_nuxt/{CtB2-SFY.js → CxSk31iP.js} +1 -1
- package/.output/public/_nuxt/CyEWn2V2.js +1 -0
- package/.output/public/_nuxt/{CtkhwZY7.js → D-pZQQ02.js} +1 -1
- package/.output/public/_nuxt/{BmAp-sfn.js → D0mrO5vS.js} +1 -1
- package/.output/public/_nuxt/{CfseWBL0.js → D3ujZRkc.js} +1 -1
- package/.output/public/_nuxt/{CvFjsYJZ.js → D4PtOV7Y.js} +1 -1
- package/.output/public/_nuxt/{CL_1HDtg.js → D65Keo_g.js} +1 -1
- package/.output/public/_nuxt/{DOAixkpJ.js → D6c_aTbv.js} +1 -1
- package/.output/public/_nuxt/{Du5Ka6uI.js → D9SUnmGh.js} +1 -1
- package/.output/public/_nuxt/{CkjXKCQH.js → DDIVwUV6.js} +1 -1
- package/.output/public/_nuxt/{C9kgALYc.js → DDS9xPxH.js} +1 -1
- package/.output/public/_nuxt/{CjpXgncp.js → DEsdpKnm.js} +1 -1
- package/.output/public/_nuxt/{C-pX1zRI.js → DHnV-0Qj.js} +1 -1
- package/.output/public/_nuxt/{v41yYOa9.js → DIoeBtoF.js} +3 -3
- package/.output/public/_nuxt/{CS4EJV3B.js → DKJfWiWm.js} +1 -1
- package/.output/public/_nuxt/{DJXB1Li8.js → DKhuBYhy.js} +1 -1
- package/.output/public/_nuxt/DLTvS7Vr.js +2 -0
- package/.output/public/_nuxt/{Cf460dGA.js → DNgNuAci.js} +1 -1
- package/.output/public/_nuxt/{Buh0pI3n.js → DNpk_jbU.js} +1 -1
- package/.output/public/_nuxt/{DLBsdU7G.js → DQCTvlJf.js} +1 -1
- package/.output/public/_nuxt/DQf3b-ld.js +1 -0
- package/.output/public/_nuxt/{BYxQJ0gE.js → DT4w6IwV.js} +1 -1
- package/.output/public/_nuxt/{Dtl3qje7.js → DUqYnCG7.js} +1 -1
- package/.output/public/_nuxt/{KynNdNgX.js → DYqNroD1.js} +1 -1
- package/.output/public/_nuxt/{DQdA5Twt.js → DZ9fd-xA.js} +1 -1
- package/.output/public/_nuxt/{Ch0I4juX.js → DaiufW99.js} +1 -1
- package/.output/public/_nuxt/{DpBeiFQV.js → DdRczQp2.js} +2 -2
- package/.output/public/_nuxt/{Nof0nVJ6.js → DdW7QNKl.js} +1 -1
- package/.output/public/_nuxt/{BtuY54_l.js → Ddtv9Dxp.js} +1 -1
- package/.output/public/_nuxt/Dfzgj0Oq.js +1 -0
- package/.output/public/_nuxt/DgRHzRny.js +1 -0
- package/.output/public/_nuxt/{BzVvHKKC.js → DijSUoYv.js} +1 -1
- package/.output/public/_nuxt/Dm-rJ5VH.js +1 -0
- package/.output/public/_nuxt/{DrdbRRXx.js → DmpCN34M.js} +1 -1
- package/.output/public/_nuxt/{Chx1IK9D.js → DoB1FFC2.js} +1 -1
- package/.output/public/_nuxt/Dp2UQPgO.js +1 -0
- package/.output/public/_nuxt/{BccuQbKA.js → DryPPXlb.js} +1 -1
- package/.output/public/_nuxt/{BqHKqsJ5.js → DyCQWd5B.js} +3 -3
- package/.output/public/_nuxt/{C-I81xfB.js → Ef-1UUMy.js} +1 -1
- package/.output/public/_nuxt/{Cbo6GmdE.js → HP3PGEjt.js} +1 -1
- package/.output/public/_nuxt/{Dunt8-TF.js → KK3goksi.js} +1 -1
- package/.output/public/_nuxt/{9sDqz0uT.js → MC96ynYQ.js} +1 -1
- package/.output/public/_nuxt/{BKFPmrcv.js → N6_KTIJr.js} +1 -1
- package/.output/public/_nuxt/{BZmDBfmV.js → TKeZJpIw.js} +1 -1
- package/.output/public/_nuxt/{CRqiHVA4.js → UHOKyE8O.js} +1 -1
- package/.output/public/_nuxt/{CLQzuV82.js → Z42SRPvO.js} +1 -1
- package/.output/public/_nuxt/{BC6CdfCG.js → _Od8x2z5.js} +1 -1
- package/.output/public/_nuxt/{NYpsF1lW.js → bpGjU0QQ.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/9b89410f-7683-420e-9dea-d15741f0e6ce.json +1 -0
- package/.output/public/_nuxt/{CmOZ0DCP.js → doR1dsEF.js} +1 -1
- package/.output/public/_nuxt/{DRh-06Hb.js → e04t7nee.js} +1 -1
- package/.output/public/_nuxt/entry.DEE2Ngsu.css +1 -0
- package/.output/public/_nuxt/{CCmd8DpQ.js → g4lEPr__.js} +1 -1
- package/.output/public/_nuxt/{C4zYnWdF.js → l12ZvGEh.js} +1 -1
- package/.output/public/_nuxt/{YdOCcCRS.js → u7qmw6wa.js} +1 -1
- package/.output/public/_nuxt/{CY_CG0AU.js → xoY3RXI7.js} +1 -1
- package/.output/public/_nuxt/{CSExCj8O.js → ziSTJBFH.js} +1 -1
- package/.output/server/chunks/build/client.manifest.mjs +650 -649
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +642 -642
- package/.output/server/package.json +1 -1
- package/package.json +1 -1
- package/.output/public/_nuxt/BkN-uAef.js +0 -1
- package/.output/public/_nuxt/C4FrpL8k.js +0 -1
- package/.output/public/_nuxt/Chvs1m1n.js +0 -1
- package/.output/public/_nuxt/Cty7uMrC.js +0 -1
- package/.output/public/_nuxt/DTvJImVU.js +0 -1
- package/.output/public/_nuxt/DakKehZj.js +0 -1
- package/.output/public/_nuxt/DfyynWBR.js +0 -1
- package/.output/public/_nuxt/DkQCknMw.js +0 -1
- package/.output/public/_nuxt/MWrJVKEf.js +0 -2
- package/.output/public/_nuxt/Rrce0BXL.js +0 -22
- package/.output/public/_nuxt/Y-MEKhtd.js +0 -1
- package/.output/public/_nuxt/bYQCSC5-.js +0 -1
- package/.output/public/_nuxt/builds/meta/ad11b978-8fdd-4bb2-9b38-1d6fe93f994e.json +0 -1
- package/.output/public/_nuxt/entry.DxCQuGXb.css +0 -1
- package/.output/public/_nuxt/klVlxnpt.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as y,k as d,o as u,w as i,D as v,ab as k,ac as D,g as e,ak as j,p as x,ar as Q,r as O,aK as le,aj as Z,cK as ue,bN as $,aa as B,at as H,f as w,dQ as ie,bk as U,ax as de,aL as pe,cZ as ce,d4 as G,dR as fe,ay as I,as as J,cW as _e,au as ye,a9 as ge,i as me,c as T,av as ve,e as R,F as z,ad as he,ae as V,j as A,dS as Ce,s as Y,l as F,z as L,t as E,A as xe,n as be}from"./D0lW43G8.js";import{i as W,p as Be,a as ee,b as Me,c as we,d as qe,e as te,f as Se,g as Pe,M as Oe,h as ke}from"./Dunt8-TF.js";import{_ as De}from"./C-I81xfB.js";var $e=y({__name:"MenuLabel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(a){const n=a;return(t,r)=>(u(),d(e(j),k(D(n)),{default:i(()=>[v(t.$slots,"default")]),_:3},16))}}),ae=$e,Te=y({__name:"MenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const n=a;return(t,r)=>(u(),d(e(j),x(n,{role:"separator","aria-orientation":"horizontal"}),{default:i(()=>[v(t.$slots,"default")]),_:3},16))}}),ne=Te;const[oe,Ae]=Z("MenuSub");var Fe=y({__name:"MenuSub",props:{open:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(a,{emit:n}){const t=a,o=Q(t,"open",n,{defaultValue:!1,passive:t.open===void 0}),s=W(),l=O(),p=O();return le(c=>{(s==null?void 0:s.open.value)===!1&&(o.value=!1),c(()=>o.value=!1)}),Be({open:o,onOpenChange:c=>{o.value=c},content:p,onContentChange:c=>{p.value=c}}),Ae({triggerId:"",contentId:"",trigger:l,onTriggerChange:c=>{l.value=c}}),(c,C)=>(u(),d(e(ue),null,{default:i(()=>[v(c.$slots,"default")]),_:3}))}}),Ee=Fe,Le=y({__name:"MenuSubContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1,default:!0},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(a,{emit:n}){const o=$(a,n),s=W(),l=ee(),p=oe(),{forwardRef:c,currentElement:C}=B();return p.contentId||(p.contentId=H(void 0,"reka-menu-sub-content")),(b,_)=>(u(),d(e(de),{present:b.forceMount||e(s).open.value},{default:i(()=>[w(Me,x(e(o),{id:e(p).contentId,ref:e(c),"aria-labelledby":e(p).triggerId,align:"start",side:e(l).dir.value==="rtl"?"left":"right","disable-outside-pointer-events":!1,"disable-outside-scroll":!1,"trap-focus":!1,onOpenAutoFocus:_[0]||(_[0]=U(f=>{var h;e(l).isUsingKeyboardRef.value&&((h=e(C))==null||h.focus())},["prevent"])),onCloseAutoFocus:_[1]||(_[1]=U(()=>{},["prevent"])),onFocusOutside:_[2]||(_[2]=f=>{f.defaultPrevented||f.target!==e(p).trigger.value&&e(s).onOpenChange(!1)}),onEscapeKeyDown:_[3]||(_[3]=f=>{e(l).onClose(),f.preventDefault()}),onKeydown:_[4]||(_[4]=f=>{var q,S;const h=(q=f.currentTarget)==null?void 0:q.contains(f.target),g=e(ie)[e(l).dir.value].includes(f.key);h&&g&&(e(s).onOpenChange(!1),(S=e(p).trigger.value)==null||S.focus(),f.preventDefault())})}),{default:i(()=>[v(b.$slots,"default")]),_:3},16,["id","aria-labelledby","side"])]),_:3},8,["present"]))}}),Re=Le,ze=y({__name:"MenuSubTrigger",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const n=a,t=W(),r=ee(),o=oe(),s=we(),l=O(null);o.triggerId||(o.triggerId=H(void 0,"reka-menu-sub-trigger"));function p(){l.value&&window.clearTimeout(l.value),l.value=null}pe(()=>{p()});function c(_){!G(_)||s.onItemEnter(_)||!n.disabled&&!t.open.value&&!l.value&&(s.onPointerGraceIntentChange(null),l.value=window.setTimeout(()=>{t.onOpenChange(!0),p()},100))}async function C(_){var h,g;if(!G(_))return;p();const f=(h=t.content.value)==null?void 0:h.getBoundingClientRect();if(f!=null&&f.width){const q=(g=t.content.value)==null?void 0:g.dataset.side,S=q==="right",K=S?-5:5,m=f[S?"left":"right"],N=f[S?"right":"left"];s.onPointerGraceIntentChange({area:[{x:_.clientX+K,y:_.clientY},{x:m,y:f.top},{x:N,y:f.top},{x:N,y:f.bottom},{x:m,y:f.bottom}],side:q}),window.clearTimeout(s.pointerGraceTimerRef.value),s.pointerGraceTimerRef.value=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(_))return;s.onPointerGraceIntentChange(null)}}async function b(_){var h;const f=s.searchRef.value!=="";n.disabled||f&&_.key===" "||fe[r.dir.value].includes(_.key)&&(t.onOpenChange(!0),await I(),(h=t.content.value)==null||h.focus(),_.preventDefault())}return(_,f)=>(u(),d(te,{"as-child":""},{default:i(()=>[w(qe,x(n,{id:e(o).triggerId,ref:h=>{var g;(g=e(o))==null||g.onTriggerChange(h==null?void 0:h.$el)},"aria-haspopup":"menu","aria-expanded":e(t).open.value,"aria-controls":e(o).contentId,"data-state":e(ce)(e(t).open.value),onClick:f[0]||(f[0]=async h=>{n.disabled||h.defaultPrevented||(h.currentTarget.focus(),e(t).open.value||e(t).onOpenChange(!0))}),onPointermove:c,onPointerleave:C,onKeydown:b}),{default:i(()=>[v(_.$slots,"default")]),_:3},16,["id","aria-expanded","aria-controls","data-state"])]),_:3}))}}),Ne=ze;const[se,Ie]=Z("ContextMenuRoot");var Ke=y({inheritAttrs:!1,__name:"ContextMenuRoot",props:{pressOpenDelay:{type:Number,required:!1,default:700},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(a,{emit:n}){const t=a,r=n,{dir:o,modal:s,pressOpenDelay:l}=J(t);B();const p=_e(o),c=O(!1),C=O();return Ie({open:c,onOpenChange:b=>{c.value=b},dir:p,modal:s,triggerElement:C,pressOpenDelay:l}),ye(c,b=>{r("update:open",b)}),(b,_)=>(u(),d(e(Se),{open:c.value,"onUpdate:open":_[0]||(_[0]=f=>c.value=f),dir:e(p),modal:e(s)},{default:i(()=>[v(b.$slots,"default")]),_:3},8,["open","dir","modal"]))}}),Ue=Ke,je=y({__name:"ContextMenuContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},sideFlip:{type:Boolean,required:!1},alignOffset:{type:Number,required:!1,default:0},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1,default:!0},collisionBoundary:{type:null,required:!1,default:()=>[]},collisionPadding:{type:[Number,Object],required:!1,default:0},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1,default:"partial"},hideWhenDetached:{type:Boolean,required:!1,default:!1},positionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(a,{emit:n}){const o=$(a,n);B();const s=se(),l=O(!1);return(p,c)=>(u(),d(e(Pe),x(e(o),{side:"right","side-offset":2,align:"start","update-position-strategy":"always",style:{"--reka-context-menu-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-context-menu-content-available-width":"var(--reka-popper-available-width)","--reka-context-menu-content-available-height":"var(--reka-popper-available-height)","--reka-context-menu-trigger-width":"var(--reka-popper-anchor-width)","--reka-context-menu-trigger-height":"var(--reka-popper-anchor-height)"},onCloseAutoFocus:c[0]||(c[0]=C=>{!C.defaultPrevented&&l.value&&C.preventDefault(),l.value=!1}),onInteractOutside:c[1]||(c[1]=C=>{C.detail.originalEvent.button===2&&C.target===e(s).triggerElement.value&&C.preventDefault(),!C.defaultPrevented&&!e(s).modal.value&&(l.value=!0)})}),{default:i(()=>[v(p.$slots,"default")]),_:3},16))}}),Ve=je,We=y({__name:"ContextMenuItem",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(a,{emit:n}){const t=a,o=ge(n);return B(),(s,l)=>(u(),d(e(Oe),k(D({...t,...e(o)})),{default:i(()=>[v(s.$slots,"default")]),_:3},16))}}),Ge=We,Ye=y({__name:"ContextMenuLabel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const n=a;return B(),(t,r)=>(u(),d(e(ae),k(D(n)),{default:i(()=>[v(t.$slots,"default")]),_:3},16))}}),Xe=Ye,Qe=y({__name:"ContextMenuPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(a){const n=a;return(t,r)=>(u(),d(e(ke),k(D(n)),{default:i(()=>[v(t.$slots,"default")]),_:3},16))}}),Ze=Qe,He=y({__name:"ContextMenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const n=a;return B(),(t,r)=>(u(),d(e(ne),k(D(n)),{default:i(()=>[v(t.$slots,"default")]),_:3},16))}}),Je=He,et=y({__name:"ContextMenuSub",props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(a,{emit:n}){const t=a,r=n;B();const o=Q(t,"open",r,{defaultValue:t.defaultOpen,passive:t.open===void 0});return(s,l)=>(u(),d(e(Ee),{open:e(o),"onUpdate:open":l[0]||(l[0]=p=>me(o)?o.value=p:null)},{default:i(()=>[v(s.$slots,"default",{open:e(o)})]),_:3},8,["open"]))}}),tt=et,at=y({__name:"ContextMenuSubContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(a,{emit:n}){const o=$(a,n);return B(),(s,l)=>(u(),d(e(Re),x(e(o),{style:{"--reka-context-menu-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-context-menu-content-available-width":"var(--reka-popper-available-width)","--reka-context-menu-content-available-height":"var(--reka-popper-available-height)","--reka-context-menu-trigger-width":"var(--reka-popper-anchor-width)","--reka-context-menu-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:i(()=>[v(s.$slots,"default")]),_:3},16))}}),nt=at,ot=y({__name:"ContextMenuSubTrigger",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const n=a;return B(),(t,r)=>(u(),d(e(Ne),k(D(n)),{default:i(()=>[v(t.$slots,"default")]),_:3},16))}}),st=ot;function X(a){return a.pointerType!=="mouse"}var rt=y({inheritAttrs:!1,__name:"ContextMenuTrigger",props:{disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(a){const n=a,{disabled:t}=J(n),{forwardRef:r,currentElement:o}=B(),s=se(),l=O({x:0,y:0}),p=T(()=>({getBoundingClientRect:()=>({width:0,height:0,left:l.value.x,right:l.value.x,top:l.value.y,bottom:l.value.y,...l.value})})),c=O(0);function C(){window.clearTimeout(c.value)}function b(g){l.value={x:g.clientX,y:g.clientY},s.onOpenChange(!0)}async function _(g){t.value||(await I(),g.defaultPrevented||(C(),b(g),g.preventDefault()))}async function f(g){t.value||(await I(),X(g)&&!g.defaultPrevented&&(C(),c.value=window.setTimeout(()=>b(g),s.pressOpenDelay.value)))}async function h(g){t.value||(await I(),X(g)&&!g.defaultPrevented&&C())}return ve(()=>{o.value&&(s.triggerElement.value=o.value)}),(g,q)=>(u(),R(z,null,[w(e(te),{as:"template",reference:p.value},null,8,["reference"]),w(e(j),x({ref:e(r),as:g.as,"as-child":g.asChild,"data-state":e(s).open.value?"open":"closed","data-disabled":e(t)?"":void 0,style:{WebkitTouchCallout:"none",pointerEvents:"auto"}},g.$attrs,{onContextmenu:_,onPointerdown:f,onPointermove:h,onPointercancel:h,onPointerup:h}),{default:i(()=>[v(g.$slots,"default")]),_:3},16,["as","as-child","data-state","data-disabled"])],64))}}),lt=rt,ut=y({__name:"DropdownMenuLabel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const n=a;return B(),(t,r)=>(u(),d(e(ae),k(D(n)),{default:i(()=>[v(t.$slots,"default")]),_:3},16))}}),it=ut,dt=y({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const n=a;return B(),(t,r)=>(u(),d(e(ne),k(D(n)),{default:i(()=>[v(t.$slots,"default")]),_:3},16))}}),pt=dt;const wt=y({__name:"DropdownMenuLabel",props:{asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},setup(a){const n=a,t=he(n,"class","inset"),r=V(t);return(o,s)=>(u(),d(e(it),x({"data-slot":"dropdown-menu-label","data-inset":o.inset?"":void 0},e(r),{class:e(A)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",n.class)}),{default:i(()=>[v(o.$slots,"default")]),_:3},16,["data-inset","class"]))}}),qt=y({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(a){const n=a,t=T(()=>{const{class:r,...o}=n;return o});return(r,o)=>(u(),d(e(pt),x({"data-slot":"dropdown-menu-separator"},t.value,{class:e(A)("bg-border -mx-1 my-1 h-px",n.class)}),null,16,["class"]))}}),ct=y({__name:"ContextMenu",props:{pressOpenDelay:{},dir:{},modal:{type:Boolean}},emits:["update:open"],setup(a,{emit:n}){const o=$(a,n);return(s,l)=>(u(),d(e(Ue),x({"data-slot":"context-menu"},e(o)),{default:i(()=>[v(s.$slots,"default")]),_:3},16))}}),ft=y({__name:"ContextMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideFlip:{type:Boolean},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{},restoreFocus:{type:Boolean,default:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(a,{emit:n}){const t=a,r=n,o=T(()=>{const{class:l,restoreFocus:p,...c}=t;return c}),s=$(o,r);return(l,p)=>(u(),d(e(Ze),null,{default:i(()=>[w(e(Ve),x({"data-slot":"context-menu-content"},e(s),{onCloseAutoFocus:p[0]||(p[0]=c=>!t.restoreFocus&&c.preventDefault()),class:e(A)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--reka-context-menu-content-available-height) min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t.class)}),{default:i(()=>[v(l.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_t=y({__name:"ContextMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean},variant:{default:"default"}},emits:["select"],setup(a,{emit:n}){const t=a,r=n,o=T(()=>{const{class:l,...p}=t;return p}),s=$(o,r);return(l,p)=>(u(),d(e(Ge),x({"data-slot":"context-menu-item","data-inset":l.inset?"":void 0,"data-variant":l.variant},e(s),{class:e(A)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 cursor-pointer",t.class)}),{default:i(()=>[v(l.$slots,"default")]),_:3},16,["data-inset","data-variant","class"]))}}),yt=y({__name:"ContextMenuLabel",props:{asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},setup(a){const n=a,t=T(()=>{const{class:r,...o}=n;return o});return(r,o)=>(u(),d(e(Xe),x({"data-slot":"context-menu-label","data-inset":r.inset?"":void 0},t.value,{class:e(A)("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",n.class)}),{default:i(()=>[v(r.$slots,"default")]),_:3},16,["data-inset","class"]))}}),gt=y({__name:"ContextMenuSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(a){const n=a,t=T(()=>{const{class:r,...o}=n;return o});return(r,o)=>(u(),d(e(Je),x({"data-slot":"context-menu-separator"},t.value,{class:e(A)("bg-border -mx-1 my-1 h-px",n.class)}),null,16,["class"]))}}),mt=y({__name:"ContextMenuSub",props:{defaultOpen:{type:Boolean},open:{type:Boolean}},emits:["update:open"],setup(a,{emit:n}){const o=$(a,n);return(s,l)=>(u(),d(e(tt),x({"data-slot":"context-menu-sub"},e(o)),{default:i(()=>[v(s.$slots,"default")]),_:3},16))}}),vt=y({__name:"ContextMenuSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},sideFlip:{type:Boolean},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(a,{emit:n}){const t=a,r=n,o=T(()=>{const{class:l,...p}=t;return p}),s=$(o,r);return(l,p)=>(u(),d(e(nt),x({"data-slot":"context-menu-sub-content"},e(s),{class:e(A)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--reka-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",t.class)}),{default:i(()=>[v(l.$slots,"default")]),_:3},16,["class"]))}}),ht=y({__name:"ContextMenuSubTrigger",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},setup(a){const n=a,t=T(()=>{const{class:o,...s}=n;return s}),r=V(t);return(o,s)=>(u(),d(e(st),x({"data-slot":"context-menu-sub-trigger","data-inset":o.inset?"":void 0},e(r),{class:e(A)("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n.class)}),{default:i(()=>[v(o.$slots,"default"),w(e(Ce),{class:"ml-auto"})]),_:3},16,["data-inset","class"]))}}),Ct=y({__name:"ContextMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(a){const t=V(a);return(r,o)=>(u(),d(e(lt),x({"data-slot":"context-menu-trigger"},e(t)),{default:i(()=>[v(r.$slots,"default")]),_:3},16))}});var P=(a=>(a.ACTION="action",a.LABEL="label",a.SEPARATOR="separator",a.SUBMENU="submenu",a))(P||{});const xt={key:1,class:"text-xs text-muted-foreground ml-2"},St=y({__name:"BaseContextMenu",props:{contextMenuItems:{}},emits:["onClearContextMenu"],setup(a,{emit:n}){const t=n,r=s=>typeof s>"u"?!0:!!s,o=s=>{s||t("onClearContextMenu")};return(s,l)=>{const p=Ct,c=yt,C=xe,b=De,_=_t,f=gt,h=ht,g=vt,q=mt,S=ft,K=ct;return u(),d(K,{"onUpdate:open":o},{default:i(()=>[w(p,{"as-child":""},{default:i(()=>[v(s.$slots,"default")]),_:3}),w(S,{class:"min-w-56",onCloseAutoFocus:l[0]||(l[0]=U(()=>{},["prevent"]))},{default:i(()=>[(u(!0),R(z,null,Y(s.contextMenuItems,(m,N)=>(u(),R(z,{key:N},[m.type===e(P).LABEL&&r(m.condition)?(u(),d(c,{key:0,class:"font-medium text-xs text-muted-foreground"},{default:i(()=>[L(E(m.title),1)]),_:2},1024)):m.type===e(P).ACTION&&r(m.condition)?(u(),d(_,{key:1,onSelect:m.select,disabled:m.disabled},{default:i(()=>[m.icon?(u(),d(C,{key:0,name:m.icon,class:"size-4! min-w-4 text-muted-foreground"},null,8,["name"])):F("",!0),L(" "+E(m.title)+" ",1),m.shortcut?(u(),d(b,{key:1},{default:i(()=>[L(E(m.shortcut),1)]),_:2},1024)):F("",!0)]),_:2},1032,["onSelect","disabled"])):m.type===e(P).SEPARATOR&&r(m.condition)?(u(),d(f,{key:2})):m.type===e(P).SUBMENU&&r(m.condition)?(u(),d(q,{key:3,disabled:!m.items||m.items.length===0},{default:i(()=>[w(h,null,{default:i(()=>[m.icon?(u(),d(C,{key:0,name:m.icon,class:"size-4! min-w-4 text-muted-foreground mr-2"},null,8,["name"])):F("",!0),L(" "+E(m.title)+" ",1),m.desc?(u(),R("span",xt,E(m.desc),1)):F("",!0)]),_:2},1024),w(g,{class:be("min-w-52")},{default:i(()=>[(u(!0),R(z,null,Y(m.items,(M,re)=>(u(),R(z,{key:re},[M.type===e(P).ACTION&&r(M.condition)?(u(),d(_,{key:0,onSelect:M.select},{default:i(()=>[M.icon?(u(),d(C,{key:0,name:M.icon,class:"size-4! min-w-4 text-muted-foreground"},null,8,["name"])):F("",!0),L(" "+E(M.title),1)]),_:2},1032,["onSelect"])):M.type===e(P).LABEL&&r(M.condition)?(u(),d(c,{key:1,class:"font-medium text-xs text-muted-foreground"},{default:i(()=>[L(E(M.title),1)]),_:2},1024)):M.type===e(P).SEPARATOR&&r(M.condition)?(u(),d(f,{key:2})):F("",!0)],64))),128))]),_:2},1024)]),_:2},1032,["disabled"])):F("",!0)],64))),128))]),_:1})]),_:3})}}});export{P as C,wt as _,qt as a,St as b,ct as c,Ct as d,ft as e,yt as f,_t as g,gt as h,mt as i,ht as j,vt as k};
|
|
1
|
+
import{d as y,k as d,o as u,w as i,D as v,ab as k,ac as D,g as e,ak as j,p as x,ar as J,r as O,aK as le,aj as Q,cJ as ue,bM as $,aa as M,at as H,f as w,dP as ie,bj as K,ax as de,aL as pe,cY as ce,d3 as W,dQ as fe,ay as I,as as Z,cV as _e,au as ye,a9 as ge,i as me,c as T,av as ve,e as R,F as z,ad as he,ae as V,j as A,dR as Ce,s as Y,l as F,z as L,t as E,A as xe,n as be}from"./BfSmOVMj.js";import{i as G,p as Me,a as ee,b as Be,c as we,d as qe,e as te,f as Se,g as Pe,M as Oe,h as ke}from"./KK3goksi.js";import{_ as De}from"./Ef-1UUMy.js";var $e=y({__name:"MenuLabel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(a){const n=a;return(t,r)=>(u(),d(e(j),k(D(n)),{default:i(()=>[v(t.$slots,"default")]),_:3},16))}}),ae=$e,Te=y({__name:"MenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const n=a;return(t,r)=>(u(),d(e(j),x(n,{role:"separator","aria-orientation":"horizontal"}),{default:i(()=>[v(t.$slots,"default")]),_:3},16))}}),ne=Te;const[oe,Ae]=Q("MenuSub");var Fe=y({__name:"MenuSub",props:{open:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(a,{emit:n}){const t=a,o=J(t,"open",n,{defaultValue:!1,passive:t.open===void 0}),s=G(),l=O(),p=O();return le(c=>{(s==null?void 0:s.open.value)===!1&&(o.value=!1),c(()=>o.value=!1)}),Me({open:o,onOpenChange:c=>{o.value=c},content:p,onContentChange:c=>{p.value=c}}),Ae({triggerId:"",contentId:"",trigger:l,onTriggerChange:c=>{l.value=c}}),(c,C)=>(u(),d(e(ue),null,{default:i(()=>[v(c.$slots,"default")]),_:3}))}}),Ee=Fe,Le=y({__name:"MenuSubContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1,default:!0},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(a,{emit:n}){const o=$(a,n),s=G(),l=ee(),p=oe(),{forwardRef:c,currentElement:C}=M();return p.contentId||(p.contentId=H(void 0,"reka-menu-sub-content")),(b,_)=>(u(),d(e(de),{present:b.forceMount||e(s).open.value},{default:i(()=>[w(Be,x(e(o),{id:e(p).contentId,ref:e(c),"aria-labelledby":e(p).triggerId,align:"start",side:e(l).dir.value==="rtl"?"left":"right","disable-outside-pointer-events":!1,"disable-outside-scroll":!1,"trap-focus":!1,onOpenAutoFocus:_[0]||(_[0]=K(f=>{var h;e(l).isUsingKeyboardRef.value&&((h=e(C))==null||h.focus())},["prevent"])),onCloseAutoFocus:_[1]||(_[1]=K(()=>{},["prevent"])),onFocusOutside:_[2]||(_[2]=f=>{f.defaultPrevented||f.target!==e(p).trigger.value&&e(s).onOpenChange(!1)}),onEscapeKeyDown:_[3]||(_[3]=f=>{e(l).onClose(),f.preventDefault()}),onKeydown:_[4]||(_[4]=f=>{var q,S;const h=(q=f.currentTarget)==null?void 0:q.contains(f.target),g=e(ie)[e(l).dir.value].includes(f.key);h&&g&&(e(s).onOpenChange(!1),(S=e(p).trigger.value)==null||S.focus(),f.preventDefault())})}),{default:i(()=>[v(b.$slots,"default")]),_:3},16,["id","aria-labelledby","side"])]),_:3},8,["present"]))}}),Re=Le,ze=y({__name:"MenuSubTrigger",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const n=a,t=G(),r=ee(),o=oe(),s=we(),l=O(null);o.triggerId||(o.triggerId=H(void 0,"reka-menu-sub-trigger"));function p(){l.value&&window.clearTimeout(l.value),l.value=null}pe(()=>{p()});function c(_){!W(_)||s.onItemEnter(_)||!n.disabled&&!t.open.value&&!l.value&&(s.onPointerGraceIntentChange(null),l.value=window.setTimeout(()=>{t.onOpenChange(!0),p()},100))}async function C(_){var h,g;if(!W(_))return;p();const f=(h=t.content.value)==null?void 0:h.getBoundingClientRect();if(f!=null&&f.width){const q=(g=t.content.value)==null?void 0:g.dataset.side,S=q==="right",U=S?-5:5,m=f[S?"left":"right"],N=f[S?"right":"left"];s.onPointerGraceIntentChange({area:[{x:_.clientX+U,y:_.clientY},{x:m,y:f.top},{x:N,y:f.top},{x:N,y:f.bottom},{x:m,y:f.bottom}],side:q}),window.clearTimeout(s.pointerGraceTimerRef.value),s.pointerGraceTimerRef.value=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(_))return;s.onPointerGraceIntentChange(null)}}async function b(_){var h;const f=s.searchRef.value!=="";n.disabled||f&&_.key===" "||fe[r.dir.value].includes(_.key)&&(t.onOpenChange(!0),await I(),(h=t.content.value)==null||h.focus(),_.preventDefault())}return(_,f)=>(u(),d(te,{"as-child":""},{default:i(()=>[w(qe,x(n,{id:e(o).triggerId,ref:h=>{var g;(g=e(o))==null||g.onTriggerChange(h==null?void 0:h.$el)},"aria-haspopup":"menu","aria-expanded":e(t).open.value,"aria-controls":e(o).contentId,"data-state":e(ce)(e(t).open.value),onClick:f[0]||(f[0]=async h=>{n.disabled||h.defaultPrevented||(h.currentTarget.focus(),e(t).open.value||e(t).onOpenChange(!0))}),onPointermove:c,onPointerleave:C,onKeydown:b}),{default:i(()=>[v(_.$slots,"default")]),_:3},16,["id","aria-expanded","aria-controls","data-state"])]),_:3}))}}),Ne=ze;const[se,Ie]=Q("ContextMenuRoot");var Ue=y({inheritAttrs:!1,__name:"ContextMenuRoot",props:{pressOpenDelay:{type:Number,required:!1,default:700},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(a,{emit:n}){const t=a,r=n,{dir:o,modal:s,pressOpenDelay:l}=Z(t);M();const p=_e(o),c=O(!1),C=O();return Ie({open:c,onOpenChange:b=>{c.value=b},dir:p,modal:s,triggerElement:C,pressOpenDelay:l}),ye(c,b=>{r("update:open",b)}),(b,_)=>(u(),d(e(Se),{open:c.value,"onUpdate:open":_[0]||(_[0]=f=>c.value=f),dir:e(p),modal:e(s)},{default:i(()=>[v(b.$slots,"default")]),_:3},8,["open","dir","modal"]))}}),Ke=Ue,je=y({__name:"ContextMenuContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},sideFlip:{type:Boolean,required:!1},alignOffset:{type:Number,required:!1,default:0},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1,default:!0},collisionBoundary:{type:null,required:!1,default:()=>[]},collisionPadding:{type:[Number,Object],required:!1,default:0},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1,default:"partial"},hideWhenDetached:{type:Boolean,required:!1,default:!1},positionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(a,{emit:n}){const o=$(a,n);M();const s=se(),l=O(!1);return(p,c)=>(u(),d(e(Pe),x(e(o),{side:"right","side-offset":2,align:"start","update-position-strategy":"always",style:{"--reka-context-menu-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-context-menu-content-available-width":"var(--reka-popper-available-width)","--reka-context-menu-content-available-height":"var(--reka-popper-available-height)","--reka-context-menu-trigger-width":"var(--reka-popper-anchor-width)","--reka-context-menu-trigger-height":"var(--reka-popper-anchor-height)"},onCloseAutoFocus:c[0]||(c[0]=C=>{!C.defaultPrevented&&l.value&&C.preventDefault(),l.value=!1}),onInteractOutside:c[1]||(c[1]=C=>{C.detail.originalEvent.button===2&&C.target===e(s).triggerElement.value&&C.preventDefault(),!C.defaultPrevented&&!e(s).modal.value&&(l.value=!0)})}),{default:i(()=>[v(p.$slots,"default")]),_:3},16))}}),Ve=je,Ge=y({__name:"ContextMenuItem",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(a,{emit:n}){const t=a,o=ge(n);return M(),(s,l)=>(u(),d(e(Oe),k(D({...t,...e(o)})),{default:i(()=>[v(s.$slots,"default")]),_:3},16))}}),We=Ge,Ye=y({__name:"ContextMenuLabel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const n=a;return M(),(t,r)=>(u(),d(e(ae),k(D(n)),{default:i(()=>[v(t.$slots,"default")]),_:3},16))}}),Xe=Ye,Je=y({__name:"ContextMenuPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(a){const n=a;return(t,r)=>(u(),d(e(ke),k(D(n)),{default:i(()=>[v(t.$slots,"default")]),_:3},16))}}),Qe=Je,He=y({__name:"ContextMenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const n=a;return M(),(t,r)=>(u(),d(e(ne),k(D(n)),{default:i(()=>[v(t.$slots,"default")]),_:3},16))}}),Ze=He,et=y({__name:"ContextMenuSub",props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(a,{emit:n}){const t=a,r=n;M();const o=J(t,"open",r,{defaultValue:t.defaultOpen,passive:t.open===void 0});return(s,l)=>(u(),d(e(Ee),{open:e(o),"onUpdate:open":l[0]||(l[0]=p=>me(o)?o.value=p:null)},{default:i(()=>[v(s.$slots,"default",{open:e(o)})]),_:3},8,["open"]))}}),tt=et,at=y({__name:"ContextMenuSubContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(a,{emit:n}){const o=$(a,n);return M(),(s,l)=>(u(),d(e(Re),x(e(o),{style:{"--reka-context-menu-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-context-menu-content-available-width":"var(--reka-popper-available-width)","--reka-context-menu-content-available-height":"var(--reka-popper-available-height)","--reka-context-menu-trigger-width":"var(--reka-popper-anchor-width)","--reka-context-menu-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:i(()=>[v(s.$slots,"default")]),_:3},16))}}),nt=at,ot=y({__name:"ContextMenuSubTrigger",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const n=a;return M(),(t,r)=>(u(),d(e(Ne),k(D(n)),{default:i(()=>[v(t.$slots,"default")]),_:3},16))}}),st=ot;function X(a){return a.pointerType!=="mouse"}var rt=y({inheritAttrs:!1,__name:"ContextMenuTrigger",props:{disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(a){const n=a,{disabled:t}=Z(n),{forwardRef:r,currentElement:o}=M(),s=se(),l=O({x:0,y:0}),p=T(()=>({getBoundingClientRect:()=>({width:0,height:0,left:l.value.x,right:l.value.x,top:l.value.y,bottom:l.value.y,...l.value})})),c=O(0);function C(){window.clearTimeout(c.value)}function b(g){l.value={x:g.clientX,y:g.clientY},s.onOpenChange(!0)}async function _(g){t.value||(await I(),g.defaultPrevented||(C(),b(g),g.preventDefault()))}async function f(g){t.value||(await I(),X(g)&&!g.defaultPrevented&&(C(),c.value=window.setTimeout(()=>b(g),s.pressOpenDelay.value)))}async function h(g){t.value||(await I(),X(g)&&!g.defaultPrevented&&C())}return ve(()=>{o.value&&(s.triggerElement.value=o.value)}),(g,q)=>(u(),R(z,null,[w(e(te),{as:"template",reference:p.value},null,8,["reference"]),w(e(j),x({ref:e(r),as:g.as,"as-child":g.asChild,"data-state":e(s).open.value?"open":"closed","data-disabled":e(t)?"":void 0,style:{WebkitTouchCallout:"none",pointerEvents:"auto"}},g.$attrs,{onContextmenu:_,onPointerdown:f,onPointermove:h,onPointercancel:h,onPointerup:h}),{default:i(()=>[v(g.$slots,"default")]),_:3},16,["as","as-child","data-state","data-disabled"])],64))}}),lt=rt,ut=y({__name:"DropdownMenuLabel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const n=a;return M(),(t,r)=>(u(),d(e(ae),k(D(n)),{default:i(()=>[v(t.$slots,"default")]),_:3},16))}}),it=ut,dt=y({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const n=a;return M(),(t,r)=>(u(),d(e(ne),k(D(n)),{default:i(()=>[v(t.$slots,"default")]),_:3},16))}}),pt=dt;const wt=y({__name:"DropdownMenuLabel",props:{asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},setup(a){const n=a,t=he(n,"class","inset"),r=V(t);return(o,s)=>(u(),d(e(it),x({"data-slot":"dropdown-menu-label","data-inset":o.inset?"":void 0},e(r),{class:e(A)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",n.class)}),{default:i(()=>[v(o.$slots,"default")]),_:3},16,["data-inset","class"]))}}),qt=y({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(a){const n=a,t=T(()=>{const{class:r,...o}=n;return o});return(r,o)=>(u(),d(e(pt),x({"data-slot":"dropdown-menu-separator"},t.value,{class:e(A)("bg-border -mx-1 my-1 h-px",n.class)}),null,16,["class"]))}}),ct=y({__name:"ContextMenu",props:{pressOpenDelay:{},dir:{},modal:{type:Boolean}},emits:["update:open"],setup(a,{emit:n}){const o=$(a,n);return(s,l)=>(u(),d(e(Ke),x({"data-slot":"context-menu"},e(o)),{default:i(()=>[v(s.$slots,"default")]),_:3},16))}}),ft=y({__name:"ContextMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideFlip:{type:Boolean},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{},restoreFocus:{type:Boolean,default:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(a,{emit:n}){const t=a,r=n,o=T(()=>{const{class:l,restoreFocus:p,...c}=t;return c}),s=$(o,r);return(l,p)=>(u(),d(e(Qe),null,{default:i(()=>[w(e(Ve),x({"data-slot":"context-menu-content"},e(s),{onCloseAutoFocus:p[0]||(p[0]=c=>!t.restoreFocus&&c.preventDefault()),class:e(A)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--reka-context-menu-content-available-height) min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t.class)}),{default:i(()=>[v(l.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_t=y({__name:"ContextMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean},variant:{default:"default"}},emits:["select"],setup(a,{emit:n}){const t=a,r=n,o=T(()=>{const{class:l,...p}=t;return p}),s=$(o,r);return(l,p)=>(u(),d(e(We),x({"data-slot":"context-menu-item","data-inset":l.inset?"":void 0,"data-variant":l.variant},e(s),{class:e(A)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 cursor-pointer",t.class)}),{default:i(()=>[v(l.$slots,"default")]),_:3},16,["data-inset","data-variant","class"]))}}),yt=y({__name:"ContextMenuLabel",props:{asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},setup(a){const n=a,t=T(()=>{const{class:r,...o}=n;return o});return(r,o)=>(u(),d(e(Xe),x({"data-slot":"context-menu-label","data-inset":r.inset?"":void 0},t.value,{class:e(A)("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",n.class)}),{default:i(()=>[v(r.$slots,"default")]),_:3},16,["data-inset","class"]))}}),gt=y({__name:"ContextMenuSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(a){const n=a,t=T(()=>{const{class:r,...o}=n;return o});return(r,o)=>(u(),d(e(Ze),x({"data-slot":"context-menu-separator"},t.value,{class:e(A)("bg-border -mx-1 my-1 h-px",n.class)}),null,16,["class"]))}}),mt=y({__name:"ContextMenuSub",props:{defaultOpen:{type:Boolean},open:{type:Boolean}},emits:["update:open"],setup(a,{emit:n}){const o=$(a,n);return(s,l)=>(u(),d(e(tt),x({"data-slot":"context-menu-sub"},e(o)),{default:i(()=>[v(s.$slots,"default")]),_:3},16))}}),vt=y({__name:"ContextMenuSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},sideFlip:{type:Boolean},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(a,{emit:n}){const t=a,r=n,o=T(()=>{const{class:l,...p}=t;return p}),s=$(o,r);return(l,p)=>(u(),d(e(nt),x({"data-slot":"context-menu-sub-content"},e(s),{class:e(A)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--reka-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",t.class)}),{default:i(()=>[v(l.$slots,"default")]),_:3},16,["class"]))}}),ht=y({__name:"ContextMenuSubTrigger",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},setup(a){const n=a,t=T(()=>{const{class:o,...s}=n;return s}),r=V(t);return(o,s)=>(u(),d(e(st),x({"data-slot":"context-menu-sub-trigger","data-inset":o.inset?"":void 0},e(r),{class:e(A)("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n.class)}),{default:i(()=>[v(o.$slots,"default"),w(e(Ce),{class:"ml-auto"})]),_:3},16,["data-inset","class"]))}}),Ct=y({__name:"ContextMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(a){const t=V(a);return(r,o)=>(u(),d(e(lt),x({"data-slot":"context-menu-trigger"},e(t)),{default:i(()=>[v(r.$slots,"default")]),_:3},16))}});var P=(a=>(a.ACTION="action",a.LABEL="label",a.SEPARATOR="separator",a.SUBMENU="submenu",a))(P||{});const xt={key:1,class:"text-xs text-muted-foreground ml-2"},St=y({__name:"BaseContextMenu",props:{contextMenuItems:{}},emits:["onClearContextMenu"],setup(a,{emit:n}){const t=n,r=s=>typeof s>"u"?!0:!!s,o=s=>{s||t("onClearContextMenu")};return(s,l)=>{const p=Ct,c=yt,C=xe,b=De,_=_t,f=gt,h=ht,g=vt,q=mt,S=ft,U=ct;return u(),d(U,{"onUpdate:open":o},{default:i(()=>[w(p,{"as-child":""},{default:i(()=>[v(s.$slots,"default")]),_:3}),w(S,{class:"min-w-56",onCloseAutoFocus:l[0]||(l[0]=K(()=>{},["prevent"]))},{default:i(()=>[(u(!0),R(z,null,Y(s.contextMenuItems,(m,N)=>(u(),R(z,{key:N},[m.type===e(P).LABEL&&r(m.condition)?(u(),d(c,{key:0,class:"font-medium text-xs text-muted-foreground"},{default:i(()=>[L(E(m.title),1)]),_:2},1024)):m.type===e(P).ACTION&&r(m.condition)?(u(),d(_,{key:1,onSelect:m.select,disabled:m.disabled},{default:i(()=>[m.icon?(u(),d(C,{key:0,name:m.icon,class:"size-4! min-w-4 text-muted-foreground"},null,8,["name"])):F("",!0),L(" "+E(m.title)+" ",1),m.shortcut?(u(),d(b,{key:1},{default:i(()=>[L(E(m.shortcut),1)]),_:2},1024)):F("",!0)]),_:2},1032,["onSelect","disabled"])):m.type===e(P).SEPARATOR&&r(m.condition)?(u(),d(f,{key:2})):m.type===e(P).SUBMENU&&r(m.condition)?(u(),d(q,{key:3,disabled:!m.items||m.items.length===0},{default:i(()=>[w(h,null,{default:i(()=>[m.icon?(u(),d(C,{key:0,name:m.icon,class:"size-4! min-w-4 text-muted-foreground mr-2"},null,8,["name"])):F("",!0),L(" "+E(m.title)+" ",1),m.desc?(u(),R("span",xt,E(m.desc),1)):F("",!0)]),_:2},1024),w(g,{class:be("min-w-52")},{default:i(()=>[(u(!0),R(z,null,Y(m.items,(B,re)=>(u(),R(z,{key:re},[B.type===e(P).ACTION&&r(B.condition)?(u(),d(_,{key:0,onSelect:B.select},{default:i(()=>[B.icon?(u(),d(C,{key:0,name:B.icon,class:"size-4! min-w-4 text-muted-foreground"},null,8,["name"])):F("",!0),L(" "+E(B.title),1)]),_:2},1032,["onSelect"])):B.type===e(P).LABEL&&r(B.condition)?(u(),d(c,{key:1,class:"font-medium text-xs text-muted-foreground"},{default:i(()=>[L(E(B.title),1)]),_:2},1024)):B.type===e(P).SEPARATOR&&r(B.condition)?(u(),d(f,{key:2})):F("",!0)],64))),128))]),_:2},1024)]),_:2},1032,["disabled"])):F("",!0)],64))),128))]),_:1})]),_:3})}}});export{P as C,wt as _,qt as a,St as b,ct as c,Ct as d,ft as e,yt as f,_t as g,gt as h,mt as i,ht as j,vt as k};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aW as E,aX as H,r as S,d as O,c as b,e as w,m as C,f as $,t as v,g as i,aY as q,w as x,aZ as D,o as y,a_ as B,k as T,l as j,A as L,n as I,a0 as N,a$ as R}from"./
|
|
1
|
+
import{aW as E,aX as H,r as S,d as O,c as b,e as w,m as C,f as $,t as v,g as i,aY as q,w as x,aZ as D,o as y,a_ as B,k as T,l as j,A as L,n as I,a0 as N,a$ as R}from"./BfSmOVMj.js";import{H as V}from"./CS5akSNT.js";import{u as F}from"./C2kyA9ZS.js";const A=" ",J=`
|
|
2
2
|
`,h=async e=>{try{await navigator.clipboard.writeText(e),console.log("Copied successfully!")}catch(t){console.error("Copy failed:",t)}},m=(e,t=!1)=>e.map(n=>{const a={...n};return t&&Object.keys(a).forEach(r=>{const o=a[r];o!==null&&typeof o=="object"&&!(o instanceof Date)&&(a[r]=JSON.stringify(o))}),delete a[V],a}),z=e=>e==null?"NULL":typeof e=="boolean"?e?"TRUE":"FALSE":typeof e=="number"||typeof e=="bigint"?String(e):typeof e=="string"?`'${e.replace(/'/g,"''")}'`:e instanceof Date?`'${e.toISOString().slice(0,19).replace("T"," ")}'`:`'${JSON.stringify(e).replace(/'/g,"''")}'`,k=(e,t,n,a)=>{if(e.length===0)return"";const r=Object.keys(e[0]),o=a?`"${a}"."${t}"`:`"${t}"`,s=e.map(l=>`(${r.map(c=>z(l[c])).join(", ")})`);return`-- ${n} ${e.length} rows on ${new Date().toLocaleString()}
|
|
3
3
|
-- Table: ${a?`${a}.`:""}${t}
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as ge,di as Bo,d as fe,as as us,cX as ja,cW as el,ar as qi,c as W,aj as tl,dj as nl,k as we,o as X,w as re,f as q,D as Te,g as N,bL as Xn,bk as yt,ak as cs,cY as ol,dk as ds,ay as Ye,d0 as Lt,d5 as fs,p as Dt,bM as il,dl as Qi,dm as Ci,dn as rl,dp as sl,dq as al,dr as ll,ds as ul,e as oe,F as Ie,s as wt,q as ki,aZ as Ee,n as Ae,j as cl,aL as dl,m as he,bA as hs,aS as Ft,dt as gs,au as xe,aR as Nn,du as Mi,l as Ne,bx as fl,av as St,aQ as ps,dv as hl,aB as _e,t as Pe,aC as gl,by as Un,dw as pl,z as He,aT as Bt,dx as vs,az as be,aN as me,i as _t,dy as vl,aO as ml,c1 as dn,dz as bt,dA as ei,b3 as yl,b4 as wl,b6 as _l,dB as bl,aK as xl,ab as ms,b2 as gn,A as ze,dC as ys,a0 as Ke,dD as Ji,dE as ji,df as $l,aY as at,a_ as lt,a$ as ut,d9 as er,dF as tr,dG as Kn,bZ as El,dH as Sl,cq as Nl,dI as An,dJ as Oo,aP as Cl,dg as kl,dK as Ml,bo as Il,dL as Tl,dM as Al,dN as zl,dO as Pl,dP as Dl,ac as Bl}from"./D0lW43G8.js";function Ol(e,t){const n=ge(),o=(r,s)=>{if(t.multiple&&Array.isArray(e.value))if(t.selectionBehavior==="replace")e.value=[r],n.value=r;else{const a=e.value.findIndex(l=>s(l));a!==-1?e.value=e.value.filter((l,u)=>u!==a):e.value=[...e.value,r]}else t.selectionBehavior==="replace"?e.value={...r}:!Array.isArray(e.value)&&s(e.value)?e.value=void 0:e.value={...r};return e.value};function i(r,s,a,l){var f;if(!(n!=null&&n.value)||!t.multiple||!Array.isArray(e.value))return;const c=(f=a().filter(g=>g.ref.dataset.disabled!=="").find(g=>g.ref===s))==null?void 0:f.value;if(!c)return;let d=null;switch(r){case"prev":case"next":{d=Bo(l,n.value,c);break}case"first":{d=Bo(l,n.value,l==null?void 0:l[0]);break}case"last":{d=Bo(l,n.value,l==null?void 0:l[l.length-1]);break}}e.value=d}return{firstValue:n,onSelectItem:o,handleMultipleReplace:i}}function no(e){return e.reduce((t,n)=>(t.push(n),n.children&&t.push(...no(n.children)),t),[])}const[ws,Rl]=tl("TreeRoot");var Hl=fe({__name:"TreeRoot",props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},items:{type:Array,required:!1},expanded:{type:Array,required:!1},defaultExpanded:{type:Array,required:!1},getKey:{type:Function,required:!0},getChildren:{type:Function,required:!1,default:e=>e.children},selectionBehavior:{type:String,required:!1,default:"toggle"},multiple:{type:Boolean,required:!1,skipCheck:!0},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},propagateSelect:{type:Boolean,required:!1},bubbleSelect:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"ul"}},emits:["update:modelValue","update:expanded"],setup(e,{emit:t}){const n=e,o=t,{items:i,multiple:r,disabled:s,propagateSelect:a,dir:l,bubbleSelect:u}=us(n),{handleTypeaheadSearch:c}=ja(),d=el(l),f=ge(),g=ge(!1),$=nl(),y=qi(n,"modelValue",o,{defaultValue:n.defaultValue??(r.value?[]:void 0),passive:!0,deep:!0}),m=qi(n,"expanded",o,{defaultValue:n.defaultExpanded??[],passive:n.expanded===void 0,deep:!0}),{onSelectItem:p,handleMultipleReplace:b}=Ol(y,n),w=W(()=>r.value&&Array.isArray(y.value)?y.value.map(R=>n.getKey(R)):[n.getKey(y.value??{})]);function C(R,O=1,F){return R.reduce((k,G,h)=>{const M=n.getKey(G),v=n.getChildren(G),T=m.value.includes(M),I={_id:M,value:G,index:h,level:O,parentItem:F,hasChildren:!!v,bind:{value:G,level:O,"aria-setsize":R.length,"aria-posinset":h+1}};return k.push(I),v&&T&&k.push(...C(v,O+1,G)),k},[])}const P=W(()=>{const R=n.items;return m.value.map(O=>O),C(R??[])});function z(R){var O;if(g.value)$.trigger(R);else{const F=((O=f.value)==null?void 0:O.getItems())??[];c(R.key,F)}}function D(R){if(g.value)return;const O=ds[R.key];Ye(()=>{var F;b(O,Lt(),(F=f.value)==null?void 0:F.getItems,P.value.map(k=>k.value))})}function V(R){var O;if(R.parentItem!=null&&Array.isArray(y.value)&&n.multiple){const F=P.value.find(k=>R.parentItem!=null&&n.getKey(k.value)===n.getKey(R.parentItem));F!=null&&(((O=n.getChildren(F.value))==null?void 0:O.every(G=>y.value.find(h=>n.getKey(h)===n.getKey(G))))?y.value=[...y.value,F.value]:y.value=y.value.filter(G=>n.getKey(G)!==n.getKey(F.value)),V(F))}}return Rl({modelValue:y,selectedKeys:w,onSelect:R=>{var k;const O=G=>n.getKey(G??{})===n.getKey(R),F=n.multiple&&Array.isArray(y.value)?((k=y.value)==null?void 0:k.findIndex(O))!==-1:void 0;if(p(R,O),n.bubbleSelect&&n.multiple&&Array.isArray(y.value)){const G=P.value.find(h=>n.getKey(h.value)===n.getKey(R));G!=null&&V(G)}if(n.propagateSelect&&n.multiple&&Array.isArray(y.value)){const G=no(n.getChildren(R)??[]);F?y.value=[...y.value].filter(h=>!G.some(M=>n.getKey(h??{})===n.getKey(M))):y.value=[...y.value,...G]}},expanded:m,onToggle(R){if(!(R?n.getChildren(R):void 0))return;const F=n.getKey(R)??R;m.value.includes(F)?m.value=m.value.filter(k=>k!==F):m.value=[...m.value,F]},getKey:n.getKey,getChildren:n.getChildren,items:i,expandedItems:P,disabled:s,multiple:r,dir:d,propagateSelect:a,bubbleSelect:u,isVirtual:g,virtualKeydownHook:$,handleMultipleReplace:b}),(R,O)=>(X(),we(N(ol),{ref_key:"rovingFocusGroupRef",ref:f,"as-child":"",orientation:"vertical",dir:N(d)},{default:re(()=>[q(N(cs),{role:"tree",as:R.as,"as-child":R.asChild,"aria-multiselectable":N(r)?!0:void 0,onKeydown:[z,Xn(yt(D,["shift"]),["up","down"])]},{default:re(()=>[Te(R.$slots,"default",{flattenItems:P.value,modelValue:N(y),expanded:N(m)})]),_:3},8,["as","as-child","aria-multiselectable","onKeydown"])]),_:3},8,["dir"]))}}),Fl=Hl;const Vl="tree.select",Ll="tree.toggle";var Yl=fe({inheritAttrs:!1,__name:"TreeItem",props:{value:{type:null,required:!0},level:{type:Number,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"li"}},emits:["select","toggle"],setup(e,{expose:t,emit:n}){const o=e,i=n,r=ws(),{getItems:s}=fs(),a=W(()=>!!r.getChildren(o.value)),l=W(()=>{const p=r.getKey(o.value);return r.expanded.value.includes(p)}),u=W(()=>{const p=r.getKey(o.value);return r.selectedKeys.value.includes(p)}),c=W(()=>{if(r.bubbleSelect.value&&a.value&&Array.isArray(r.modelValue.value)){const p=no(r.getChildren(o.value)||[]);return p.some(b=>r.modelValue.value.find(w=>r.getKey(w)===r.getKey(b)))&&!p.every(b=>r.modelValue.value.find(w=>r.getKey(w)===r.getKey(b)))}else return r.propagateSelect.value&&u.value&&a.value&&Array.isArray(r.modelValue.value)?!no(r.getChildren(o.value)||[]).every(b=>r.modelValue.value.find(w=>r.getKey(w)===r.getKey(b))):void 0});function d(p){if(a.value)if(l.value){const b=s().map(D=>D.ref),w=Lt(),C=b.indexOf(w),z=[...b].slice(C).find(D=>Number(D.getAttribute("data-indent"))===o.level+1);z&&z.focus()}else m(p)}function f(p){if(l.value)m(p);else{const b=s().map(D=>D.ref),w=Lt(),C=b.indexOf(w),z=[...b].slice(0,C).reverse().find(D=>Number(D.getAttribute("data-indent"))===o.level-1);z&&z.focus()}}async function g(p){i("select",p),!(p!=null&&p.defaultPrevented)&&r.onSelect(o.value)}async function $(p){i("toggle",p),!(p!=null&&p.defaultPrevented)&&r.onToggle(o.value)}async function y(p){if(!p)return;const b={originalEvent:p,value:o.value,isExpanded:l.value,isSelected:u.value};Qi(Vl,g,b)}async function m(p){if(!p)return;const b={originalEvent:p,value:o.value,isExpanded:l.value,isSelected:u.value};Qi(Ll,$,b)}return t({isExpanded:l,isSelected:u,isIndeterminate:c,handleToggle:()=>r.onToggle(o.value),handleSelect:()=>r.onSelect(o.value)}),(p,b)=>(X(),we(N(il),{"as-child":"",value:p.value,"allow-shift-key":""},{default:re(()=>[q(N(cs),Dt(p.$attrs,{role:"treeitem",as:p.as,"as-child":p.asChild,"aria-selected":u.value,"aria-expanded":a.value?l.value:void 0,"aria-level":p.level,"data-indent":p.level,"data-selected":u.value?"":void 0,"data-expanded":l.value?"":void 0,onKeydown:[Xn(yt(y,["self","prevent"]),["enter","space"]),b[0]||(b[0]=Xn(yt(w=>N(r).dir.value==="ltr"?d(w):f(w),["prevent"]),["right"])),b[1]||(b[1]=Xn(yt(w=>N(r).dir.value==="ltr"?f(w):d(w),["prevent"]),["left"]))],onClick:b[2]||(b[2]=yt(w=>{y(w),m(w)},["stop"]))}),{default:re(()=>[Te(p.$slots,"default",{isExpanded:l.value,isSelected:u.value,isIndeterminate:c.value,handleSelect:()=>N(r).onSelect(p.value),handleToggle:()=>N(r).onToggle(p.value)})]),_:3},16,["as","as-child","aria-selected","aria-expanded","aria-level","data-indent","data-selected","data-expanded","onKeydown"])]),_:3},8,["value"]))}}),Gl=Yl,Xl=fe({__name:"TreeVirtualizer",props:{overscan:{type:Number,required:!1},estimateSize:{type:[Number,Function],required:!1},textContent:{type:Function,required:!1}},setup(e){const t=e,n=Ci(),o=ws(),i=rl(),{getItems:r}=fs(),s=sl("",1e3),a=W(()=>{const f=g=>t.textContent?t.textContent(g):g.toString().toLowerCase();return o.expandedItems.value.map((g,$)=>({index:$,textContent:f(g.value)}))});o.isVirtual.value=!0;const l=W(()=>{const f=i.value;if(f){const g=window.getComputedStyle(f);return{start:Number.parseFloat(g.paddingBlockStart||g.paddingTop),end:Number.parseFloat(g.paddingBlockEnd||g.paddingBottom)}}else return{start:0,end:0}}),u=al({get scrollPaddingStart(){return l.value.start},get scrollPaddingEnd(){return l.value.end},get count(){return o.expandedItems.value.length??0},get horizontal(){return!1},getItemKey(f){return f+o.getKey(o.expandedItems.value[f].value)},estimateSize(f){return typeof t.estimateSize=="function"?t.estimateSize(f):t.estimateSize??28},getScrollElement(){return i.value},overscan:t.overscan??12}),c=W(()=>u.value.getVirtualItems().map(f=>({item:f,is:ll(n.default({item:o.expandedItems.value[f.index],virtualizer:u.value,virtualItem:f})[0],{"data-index":f.index,style:{position:"absolute",top:0,left:0,transform:`translateY(${f.start}px)`,overflowAnchor:"none"}})})));function d(f){u.value.scrollToIndex(f,{align:"start"}),requestAnimationFrame(()=>{const g=i.value.querySelector(`[data-index="${f}"]`);g instanceof HTMLElement&&g.focus()})}return o.virtualKeydownHook.on(f=>{var m;const g=f.altKey||f.ctrlKey||f.metaKey;if(f.key==="Tab"&&!g)return;const y=ds[f.key];if(["first","last"].includes(y)){f.preventDefault();const p=y==="first"?0:o.expandedItems.value.length-1;u.value.scrollToIndex(p),requestAnimationFrame(()=>{const b=r();(y==="first"?b[0]:b[b.length-1]).ref.focus()})}else if(y==="prev"&&f.key!=="ArrowUp"){const p=Lt(),b=Number(p.getAttribute("data-index")),w=Number(p.getAttribute("data-indent")),P=o.expandedItems.value.slice(0,b).map((z,D)=>({...z,index:D})).reverse().find(z=>z.level===w-1);P&&d(P.index)}else if(!y&&!g){s.value+=f.key;const p=Number((m=Lt())==null?void 0:m.getAttribute("data-index")),b=a.value[p].textContent,w=a.value.map(z=>z.textContent),C=ul(w,s.value,b),P=a.value.find(z=>z.textContent===C);P&&d(P.index)}Ye(()=>{f.shiftKey&&y&&o.handleMultipleReplace(y,Lt(),r,o.expandedItems.value.map(p=>p.value))})}),(f,g)=>(X(),oe("div",{"data-reka-virtualizer":"",style:Ee({position:"relative",width:"100%",height:`${N(u).getTotalSize()}px`})},[(X(!0),oe(Ie,null,wt(c.value,({is:$,item:y})=>(X(),we(ki($),{key:y.key}))),128))],4))}}),Ul=Xl;const Kl=fe({__name:"KbdGroup",props:{class:{}},setup(e){const t=e;return(n,o)=>(X(),oe("kbd",{"data-slot":"kbd-group",class:Ae(N(cl)("inline-flex items-center gap-1",t.class))},[Te(n.$slots,"default")],2))}});function bo(e){return hs()?(Un(e),!0):!1}function tt(e){return typeof e=="function"?e():N(e)}const Wl=typeof window<"u"&&typeof document<"u",Zl=e=>typeof e<"u",ql=Object.prototype.toString,Ql=e=>ql.call(e)==="[object Object]",Jl=()=>{};function jl(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}const _s=e=>e();function eu(e=_s){const t=ge(!0);function n(){t.value=!1}function o(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:ml(t),pause:n,resume:o,eventFilter:i}}function nr(e,t=!1,n="Timeout"){return new Promise((o,i)=>{setTimeout(t?()=>i(n):o,e)})}function tu(e,t,n={}){const{eventFilter:o=_s,...i}=n;return xe(e,jl(o,t),i)}function Vt(e,t,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:s,resume:a,isActive:l}=eu(o);return{stop:tu(e,t,{...i,eventFilter:r}),pause:s,resume:a,isActive:l}}function nu(e,t={}){if(!_t(e))return us(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const o in e.value)n[o]=vl(()=>({get(){return e.value[o]},set(i){var r;if((r=tt(t.replaceRef))!=null?r:!0)if(Array.isArray(e.value)){const a=[...e.value];a[o]=i,e.value=a}else{const a={...e.value,[o]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(e.value)),e.value=a}else e.value[o]=i}}));return n}function ti(e,t=!1){function n(d,{flush:f="sync",deep:g=!1,timeout:$,throwOnTimeout:y}={}){let m=null;const b=[new Promise(w=>{m=xe(e,C=>{d(C)!==t&&(m==null||m(),w(C))},{flush:f,deep:g,immediate:!0})})];return $!=null&&b.push(nr($,y).then(()=>tt(e)).finally(()=>m==null?void 0:m())),Promise.race(b)}function o(d,f){if(!_t(d))return n(C=>C===d,f);const{flush:g="sync",deep:$=!1,timeout:y,throwOnTimeout:m}=f??{};let p=null;const w=[new Promise(C=>{p=xe([e,d],([P,z])=>{t!==(P===z)&&(p==null||p(),C(P))},{flush:g,deep:$,immediate:!0})})];return y!=null&&w.push(nr(y,m).then(()=>tt(e)).finally(()=>(p==null||p(),tt(e)))),Promise.race(w)}function i(d){return n(f=>!!f,d)}function r(d){return o(null,d)}function s(d){return o(void 0,d)}function a(d){return n(Number.isNaN,d)}function l(d,f){return n(g=>{const $=Array.from(g);return $.includes(d)||$.includes(tt(d))},f)}function u(d){return c(1,d)}function c(d=1,f){let g=-1;return n(()=>(g+=1,g>=d),f)}return Array.isArray(tt(e))?{toMatch:n,toContains:l,changed:u,changedTimes:c,get not(){return ti(e,!t)}}:{toMatch:n,toBe:o,toBeTruthy:i,toBeNull:r,toBeNaN:a,toBeUndefined:s,changed:u,changedTimes:c,get not(){return ti(e,!t)}}}function ni(e){return ti(e)}function ou(e){var t;const n=tt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const bs=Wl?window:void 0;function xs(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=bs):[t,n,o,i]=e,!t)return Jl;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(c=>c()),r.length=0},a=(c,d,f,g)=>(c.addEventListener(d,f,g),()=>c.removeEventListener(d,f,g)),l=xe(()=>[ou(t),tt(i)],([c,d])=>{if(s(),!c)return;const f=Ql(d)?{...d}:d;r.push(...n.flatMap(g=>o.map($=>a(c,g,$,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),s()};return bo(u),u}function iu(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function or(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=bs,eventName:r="keydown",passive:s=!1,dedupe:a=!1}=o,l=iu(t);return xs(i,r,c=>{c.repeat&&tt(a)||l(c)&&n(c)},s)}function ru(e){return JSON.parse(JSON.stringify(e))}function Ro(e,t,n,o={}){var i,r,s;const{clone:a=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:d,shouldEmit:f}=o,g=Nn(),$=n||(g==null?void 0:g.emit)||((i=g==null?void 0:g.$emit)==null?void 0:i.bind(g))||((s=(r=g==null?void 0:g.proxy)==null?void 0:r.$emit)==null?void 0:s.bind(g==null?void 0:g.proxy));let y=u;t||(t="modelValue"),y=y||`update:${t.toString()}`;const m=w=>a?typeof a=="function"?a(w):ru(w):w,p=()=>Zl(e[t])?m(e[t]):d,b=w=>{f?f(w)&&$(y,w):$(y,w)};if(l){const w=p(),C=ge(w);let P=!1;return xe(()=>e[t],z=>{P||(P=!0,C.value=m(z),Ye(()=>P=!1))}),xe(C,z=>{!P&&(z!==e[t]||c)&&b(z)},{deep:c}),C}else return W({get(){return p()},set(w){b(w)}})}var su={value:()=>{}};function xo(){for(var e=0,t=arguments.length,n={},o;e<t;++e){if(!(o=arguments[e]+"")||o in n||/[\s.]/.test(o))throw new Error("illegal type: "+o);n[o]=[]}return new Wn(n)}function Wn(e){this._=e}function au(e,t){return e.trim().split(/^|\s+/).map(function(n){var o="",i=n.indexOf(".");if(i>=0&&(o=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}Wn.prototype=xo.prototype={constructor:Wn,on:function(e,t){var n=this._,o=au(e+"",n),i,r=-1,s=o.length;if(arguments.length<2){for(;++r<s;)if((i=(e=o[r]).type)&&(i=lu(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++r<s;)if(i=(e=o[r]).type)n[i]=ir(n[i],e.name,t);else if(t==null)for(i in n)n[i]=ir(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Wn(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),o=0,i,r;o<i;++o)n[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],i=0,r=o.length;i<r;++i)o[i].value.apply(t,n)}};function lu(e,t){for(var n=0,o=e.length,i;n<o;++n)if((i=e[n]).name===t)return i.value}function ir(e,t,n){for(var o=0,i=e.length;o<i;++o)if(e[o].name===t){e[o]=su,e=e.slice(0,o).concat(e.slice(o+1));break}return n!=null&&e.push({name:t,value:n}),e}var oi="http://www.w3.org/1999/xhtml";const rr={svg:"http://www.w3.org/2000/svg",xhtml:oi,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $o(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),rr.hasOwnProperty(t)?{space:rr[t],local:e}:e}function uu(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===oi&&t.documentElement.namespaceURI===oi?t.createElement(e):t.createElementNS(n,e)}}function cu(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function $s(e){var t=$o(e);return(t.local?cu:uu)(t)}function du(){}function Ii(e){return e==null?du:function(){return this.querySelector(e)}}function fu(e){typeof e!="function"&&(e=Ii(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i<n;++i)for(var r=t[i],s=r.length,a=o[i]=new Array(s),l,u,c=0;c<s;++c)(l=r[c])&&(u=e.call(l,l.__data__,c,r))&&("__data__"in l&&(u.__data__=l.__data__),a[c]=u);return new Oe(o,this._parents)}function hu(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function gu(){return[]}function Es(e){return e==null?gu:function(){return this.querySelectorAll(e)}}function pu(e){return function(){return hu(e.apply(this,arguments))}}function vu(e){typeof e=="function"?e=pu(e):e=Es(e);for(var t=this._groups,n=t.length,o=[],i=[],r=0;r<n;++r)for(var s=t[r],a=s.length,l,u=0;u<a;++u)(l=s[u])&&(o.push(e.call(l,l.__data__,u,s)),i.push(l));return new Oe(o,i)}function Ss(e){return function(){return this.matches(e)}}function Ns(e){return function(t){return t.matches(e)}}var mu=Array.prototype.find;function yu(e){return function(){return mu.call(this.children,e)}}function wu(){return this.firstElementChild}function _u(e){return this.select(e==null?wu:yu(typeof e=="function"?e:Ns(e)))}var bu=Array.prototype.filter;function xu(){return Array.from(this.children)}function $u(e){return function(){return bu.call(this.children,e)}}function Eu(e){return this.selectAll(e==null?xu:$u(typeof e=="function"?e:Ns(e)))}function Su(e){typeof e!="function"&&(e=Ss(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i<n;++i)for(var r=t[i],s=r.length,a=o[i]=[],l,u=0;u<s;++u)(l=r[u])&&e.call(l,l.__data__,u,r)&&a.push(l);return new Oe(o,this._parents)}function Cs(e){return new Array(e.length)}function Nu(){return new Oe(this._enter||this._groups.map(Cs),this._parents)}function oo(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}oo.prototype={constructor:oo,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Cu(e){return function(){return e}}function ku(e,t,n,o,i,r){for(var s=0,a,l=t.length,u=r.length;s<u;++s)(a=t[s])?(a.__data__=r[s],o[s]=a):n[s]=new oo(e,r[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function Mu(e,t,n,o,i,r,s){var a,l,u=new Map,c=t.length,d=r.length,f=new Array(c),g;for(a=0;a<c;++a)(l=t[a])&&(f[a]=g=s.call(l,l.__data__,a,t)+"",u.has(g)?i[a]=l:u.set(g,l));for(a=0;a<d;++a)g=s.call(e,r[a],a,r)+"",(l=u.get(g))?(o[a]=l,l.__data__=r[a],u.delete(g)):n[a]=new oo(e,r[a]);for(a=0;a<c;++a)(l=t[a])&&u.get(f[a])===l&&(i[a]=l)}function Iu(e){return e.__data__}function Tu(e,t){if(!arguments.length)return Array.from(this,Iu);var n=t?Mu:ku,o=this._parents,i=this._groups;typeof e!="function"&&(e=Cu(e));for(var r=i.length,s=new Array(r),a=new Array(r),l=new Array(r),u=0;u<r;++u){var c=o[u],d=i[u],f=d.length,g=Au(e.call(c,c&&c.__data__,u,o)),$=g.length,y=a[u]=new Array($),m=s[u]=new Array($),p=l[u]=new Array(f);n(c,d,y,m,p,g,t);for(var b=0,w=0,C,P;b<$;++b)if(C=y[b]){for(b>=w&&(w=b+1);!(P=m[w])&&++w<$;);C._next=P||null}}return s=new Oe(s,o),s._enter=a,s._exit=l,s}function Au(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function zu(){return new Oe(this._exit||this._groups.map(Cs),this._parents)}function Pu(e,t,n){var o=this.enter(),i=this,r=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?r.remove():n(r),o&&i?o.merge(i).order():i}function Du(e){for(var t=e.selection?e.selection():e,n=this._groups,o=t._groups,i=n.length,r=o.length,s=Math.min(i,r),a=new Array(i),l=0;l<s;++l)for(var u=n[l],c=o[l],d=u.length,f=a[l]=new Array(d),g,$=0;$<d;++$)(g=u[$]||c[$])&&(f[$]=g);for(;l<i;++l)a[l]=n[l];return new Oe(a,this._parents)}function Bu(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var o=e[t],i=o.length-1,r=o[i],s;--i>=0;)(s=o[i])&&(r&&s.compareDocumentPosition(r)^4&&r.parentNode.insertBefore(s,r),r=s);return this}function Ou(e){e||(e=Ru);function t(d,f){return d&&f?e(d.__data__,f.__data__):!d-!f}for(var n=this._groups,o=n.length,i=new Array(o),r=0;r<o;++r){for(var s=n[r],a=s.length,l=i[r]=new Array(a),u,c=0;c<a;++c)(u=s[c])&&(l[c]=u);l.sort(t)}return new Oe(i,this._parents).order()}function Ru(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Hu(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Fu(){return Array.from(this)}function Vu(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var o=e[t],i=0,r=o.length;i<r;++i){var s=o[i];if(s)return s}return null}function Lu(){let e=0;for(const t of this)++e;return e}function Yu(){return!this.node()}function Gu(e){for(var t=this._groups,n=0,o=t.length;n<o;++n)for(var i=t[n],r=0,s=i.length,a;r<s;++r)(a=i[r])&&e.call(a,a.__data__,r,i);return this}function Xu(e){return function(){this.removeAttribute(e)}}function Uu(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ku(e,t){return function(){this.setAttribute(e,t)}}function Wu(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Zu(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function qu(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Qu(e,t){var n=$o(e);if(arguments.length<2){var o=this.node();return n.local?o.getAttributeNS(n.space,n.local):o.getAttribute(n)}return this.each((t==null?n.local?Uu:Xu:typeof t=="function"?n.local?qu:Zu:n.local?Wu:Ku)(n,t))}function ks(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Ju(e){return function(){this.style.removeProperty(e)}}function ju(e,t,n){return function(){this.style.setProperty(e,t,n)}}function ec(e,t,n){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,n)}}function tc(e,t,n){return arguments.length>1?this.each((t==null?Ju:typeof t=="function"?ec:ju)(e,t,n??"")):Kt(this.node(),e)}function Kt(e,t){return e.style.getPropertyValue(t)||ks(e).getComputedStyle(e,null).getPropertyValue(t)}function nc(e){return function(){delete this[e]}}function oc(e,t){return function(){this[e]=t}}function ic(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function rc(e,t){return arguments.length>1?this.each((t==null?nc:typeof t=="function"?ic:oc)(e,t)):this.node()[e]}function Ms(e){return e.trim().split(/^|\s+/)}function Ti(e){return e.classList||new Is(e)}function Is(e){this._node=e,this._names=Ms(e.getAttribute("class")||"")}Is.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ts(e,t){for(var n=Ti(e),o=-1,i=t.length;++o<i;)n.add(t[o])}function As(e,t){for(var n=Ti(e),o=-1,i=t.length;++o<i;)n.remove(t[o])}function sc(e){return function(){Ts(this,e)}}function ac(e){return function(){As(this,e)}}function lc(e,t){return function(){(t.apply(this,arguments)?Ts:As)(this,e)}}function uc(e,t){var n=Ms(e+"");if(arguments.length<2){for(var o=Ti(this.node()),i=-1,r=n.length;++i<r;)if(!o.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?lc:t?sc:ac)(n,t))}function cc(){this.textContent=""}function dc(e){return function(){this.textContent=e}}function fc(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function hc(e){return arguments.length?this.each(e==null?cc:(typeof e=="function"?fc:dc)(e)):this.node().textContent}function gc(){this.innerHTML=""}function pc(e){return function(){this.innerHTML=e}}function vc(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function mc(e){return arguments.length?this.each(e==null?gc:(typeof e=="function"?vc:pc)(e)):this.node().innerHTML}function yc(){this.nextSibling&&this.parentNode.appendChild(this)}function wc(){return this.each(yc)}function _c(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function bc(){return this.each(_c)}function xc(e){var t=typeof e=="function"?e:$s(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function $c(){return null}function Ec(e,t){var n=typeof e=="function"?e:$s(e),o=t==null?$c:typeof t=="function"?t:Ii(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),o.apply(this,arguments)||null)})}function Sc(){var e=this.parentNode;e&&e.removeChild(this)}function Nc(){return this.each(Sc)}function Cc(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function kc(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Mc(e){return this.select(e?kc:Cc)}function Ic(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Tc(e){return function(t){e.call(this,t,this.__data__)}}function Ac(e){return e.trim().split(/^|\s+/).map(function(t){var n="",o=t.indexOf(".");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{type:t,name:n}})}function zc(e){return function(){var t=this.__on;if(t){for(var n=0,o=-1,i=t.length,r;n<i;++n)r=t[n],(!e.type||r.type===e.type)&&r.name===e.name?this.removeEventListener(r.type,r.listener,r.options):t[++o]=r;++o?t.length=o:delete this.__on}}}function Pc(e,t,n){return function(){var o=this.__on,i,r=Tc(t);if(o){for(var s=0,a=o.length;s<a;++s)if((i=o[s]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=r,i.options=n),i.value=t;return}}this.addEventListener(e.type,r,n),i={type:e.type,name:e.name,value:t,listener:r,options:n},o?o.push(i):this.__on=[i]}}function Dc(e,t,n){var o=Ac(e+""),i,r=o.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,u=a.length,c;l<u;++l)for(i=0,c=a[l];i<r;++i)if((s=o[i]).type===c.type&&s.name===c.name)return c.value}return}for(a=t?Pc:zc,i=0;i<r;++i)this.each(a(o[i],t,n));return this}function zs(e,t,n){var o=ks(e),i=o.CustomEvent;typeof i=="function"?i=new i(t,n):(i=o.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Bc(e,t){return function(){return zs(this,e,t)}}function Oc(e,t){return function(){return zs(this,e,t.apply(this,arguments))}}function Rc(e,t){return this.each((typeof t=="function"?Oc:Bc)(e,t))}function*Hc(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var o=e[t],i=0,r=o.length,s;i<r;++i)(s=o[i])&&(yield s)}var Ps=[null];function Oe(e,t){this._groups=e,this._parents=t}function Cn(){return new Oe([[document.documentElement]],Ps)}function Fc(){return this}Oe.prototype=Cn.prototype={constructor:Oe,select:fu,selectAll:vu,selectChild:_u,selectChildren:Eu,filter:Su,data:Tu,enter:Nu,exit:zu,join:Pu,merge:Du,selection:Fc,order:Bu,sort:Ou,call:Hu,nodes:Fu,node:Vu,size:Lu,empty:Yu,each:Gu,attr:Qu,style:tc,property:rc,classed:uc,text:hc,html:mc,raise:wc,lower:bc,append:xc,insert:Ec,remove:Nc,clone:Mc,datum:Ic,on:Dc,dispatch:Rc,[Symbol.iterator]:Hc};function Fe(e){return typeof e=="string"?new Oe([[document.querySelector(e)]],[document.documentElement]):new Oe([[e]],Ps)}function Vc(e){let t;for(;t=e.sourceEvent;)e=t;return e}function We(e,t){if(e=Vc(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var o=n.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const Lc={passive:!1},pn={capture:!0,passive:!1};function Ho(e){e.stopImmediatePropagation()}function Yt(e){e.preventDefault(),e.stopImmediatePropagation()}function Ds(e){var t=e.document.documentElement,n=Fe(e).on("dragstart.drag",Yt,pn);"onselectstart"in t?n.on("selectstart.drag",Yt,pn):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Bs(e,t){var n=e.document.documentElement,o=Fe(e).on("dragstart.drag",null);t&&(o.on("click.drag",Yt,pn),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const zn=e=>()=>e;function ii(e,{sourceEvent:t,subject:n,target:o,identifier:i,active:r,x:s,y:a,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}ii.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Yc(e){return!e.ctrlKey&&!e.button}function Gc(){return this.parentNode}function Xc(e,t){return t??{x:e.x,y:e.y}}function Uc(){return navigator.maxTouchPoints||"ontouchstart"in this}function Kc(){var e=Yc,t=Gc,n=Xc,o=Uc,i={},r=xo("start","drag","end"),s=0,a,l,u,c,d=0;function f(C){C.on("mousedown.drag",g).filter(o).on("touchstart.drag",m).on("touchmove.drag",p,Lc).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(C,P){if(!(c||!e.call(this,C,P))){var z=w(this,t.call(this,C,P),C,P,"mouse");z&&(Fe(C.view).on("mousemove.drag",$,pn).on("mouseup.drag",y,pn),Ds(C.view),Ho(C),u=!1,a=C.clientX,l=C.clientY,z("start",C))}}function $(C){if(Yt(C),!u){var P=C.clientX-a,z=C.clientY-l;u=P*P+z*z>d}i.mouse("drag",C)}function y(C){Fe(C.view).on("mousemove.drag mouseup.drag",null),Bs(C.view,u),Yt(C),i.mouse("end",C)}function m(C,P){if(e.call(this,C,P)){var z=C.changedTouches,D=t.call(this,C,P),V=z.length,R,O;for(R=0;R<V;++R)(O=w(this,D,C,P,z[R].identifier,z[R]))&&(Ho(C),O("start",C,z[R]))}}function p(C){var P=C.changedTouches,z=P.length,D,V;for(D=0;D<z;++D)(V=i[P[D].identifier])&&(Yt(C),V("drag",C,P[D]))}function b(C){var P=C.changedTouches,z=P.length,D,V;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),D=0;D<z;++D)(V=i[P[D].identifier])&&(Ho(C),V("end",C,P[D]))}function w(C,P,z,D,V,R){var O=r.copy(),F=We(R||z,P),k,G,h;if((h=n.call(C,new ii("beforestart",{sourceEvent:z,target:f,identifier:V,active:s,x:F[0],y:F[1],dx:0,dy:0,dispatch:O}),D))!=null)return k=h.x-F[0]||0,G=h.y-F[1]||0,function M(v,T,I){var B=F,A;switch(v){case"start":i[V]=M,A=s++;break;case"end":delete i[V],--s;case"drag":F=We(I||T,P),A=s;break}O.call(v,C,new ii(v,{sourceEvent:T,subject:h,target:f,identifier:V,active:A,x:F[0]+k,y:F[1]+G,dx:F[0]-B[0],dy:F[1]-B[1],dispatch:O}),D)}}return f.filter=function(C){return arguments.length?(e=typeof C=="function"?C:zn(!!C),f):e},f.container=function(C){return arguments.length?(t=typeof C=="function"?C:zn(C),f):t},f.subject=function(C){return arguments.length?(n=typeof C=="function"?C:zn(C),f):n},f.touchable=function(C){return arguments.length?(o=typeof C=="function"?C:zn(!!C),f):o},f.on=function(){var C=r.on.apply(r,arguments);return C===r?f:C},f.clickDistance=function(C){return arguments.length?(d=(C=+C)*C,f):Math.sqrt(d)},f}function Ai(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Os(e,t){var n=Object.create(e.prototype);for(var o in t)n[o]=t[o];return n}function kn(){}var vn=.7,io=1/vn,Gt="\\s*([+-]?\\d+)\\s*",mn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ze="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wc=/^#([0-9a-f]{3,8})$/,Zc=new RegExp(`^rgb\\(${Gt},${Gt},${Gt}\\)$`),qc=new RegExp(`^rgb\\(${Ze},${Ze},${Ze}\\)$`),Qc=new RegExp(`^rgba\\(${Gt},${Gt},${Gt},${mn}\\)$`),Jc=new RegExp(`^rgba\\(${Ze},${Ze},${Ze},${mn}\\)$`),jc=new RegExp(`^hsl\\(${mn},${Ze},${Ze}\\)$`),ed=new RegExp(`^hsla\\(${mn},${Ze},${Ze},${mn}\\)$`),sr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ai(kn,yn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ar,formatHex:ar,formatHex8:td,formatHsl:nd,formatRgb:lr,toString:lr});function ar(){return this.rgb().formatHex()}function td(){return this.rgb().formatHex8()}function nd(){return Rs(this).formatHsl()}function lr(){return this.rgb().formatRgb()}function yn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Wc.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ur(t):n===3?new De(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Pn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Pn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Zc.exec(e))?new De(t[1],t[2],t[3],1):(t=qc.exec(e))?new De(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Qc.exec(e))?Pn(t[1],t[2],t[3],t[4]):(t=Jc.exec(e))?Pn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=jc.exec(e))?fr(t[1],t[2]/100,t[3]/100,1):(t=ed.exec(e))?fr(t[1],t[2]/100,t[3]/100,t[4]):sr.hasOwnProperty(e)?ur(sr[e]):e==="transparent"?new De(NaN,NaN,NaN,0):null}function ur(e){return new De(e>>16&255,e>>8&255,e&255,1)}function Pn(e,t,n,o){return o<=0&&(e=t=n=NaN),new De(e,t,n,o)}function od(e){return e instanceof kn||(e=yn(e)),e?(e=e.rgb(),new De(e.r,e.g,e.b,e.opacity)):new De}function ri(e,t,n,o){return arguments.length===1?od(e):new De(e,t,n,o??1)}function De(e,t,n,o){this.r=+e,this.g=+t,this.b=+n,this.opacity=+o}Ai(De,ri,Os(kn,{brighter(e){return e=e==null?io:Math.pow(io,e),new De(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?vn:Math.pow(vn,e),new De(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new De(At(this.r),At(this.g),At(this.b),ro(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cr,formatHex:cr,formatHex8:id,formatRgb:dr,toString:dr}));function cr(){return`#${It(this.r)}${It(this.g)}${It(this.b)}`}function id(){return`#${It(this.r)}${It(this.g)}${It(this.b)}${It((isNaN(this.opacity)?1:this.opacity)*255)}`}function dr(){const e=ro(this.opacity);return`${e===1?"rgb(":"rgba("}${At(this.r)}, ${At(this.g)}, ${At(this.b)}${e===1?")":`, ${e})`}`}function ro(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function At(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function It(e){return e=At(e),(e<16?"0":"")+e.toString(16)}function fr(e,t,n,o){return o<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ve(e,t,n,o)}function Rs(e){if(e instanceof Ve)return new Ve(e.h,e.s,e.l,e.opacity);if(e instanceof kn||(e=yn(e)),!e)return new Ve;if(e instanceof Ve)return e;e=e.rgb();var t=e.r/255,n=e.g/255,o=e.b/255,i=Math.min(t,n,o),r=Math.max(t,n,o),s=NaN,a=r-i,l=(r+i)/2;return a?(t===r?s=(n-o)/a+(n<o)*6:n===r?s=(o-t)/a+2:s=(t-n)/a+4,a/=l<.5?r+i:2-r-i,s*=60):a=l>0&&l<1?0:s,new Ve(s,a,l,e.opacity)}function rd(e,t,n,o){return arguments.length===1?Rs(e):new Ve(e,t,n,o??1)}function Ve(e,t,n,o){this.h=+e,this.s=+t,this.l=+n,this.opacity=+o}Ai(Ve,rd,Os(kn,{brighter(e){return e=e==null?io:Math.pow(io,e),new Ve(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?vn:Math.pow(vn,e),new Ve(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*t,i=2*n-o;return new De(Fo(e>=240?e-240:e+120,i,o),Fo(e,i,o),Fo(e<120?e+240:e-120,i,o),this.opacity)},clamp(){return new Ve(hr(this.h),Dn(this.s),Dn(this.l),ro(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ro(this.opacity);return`${e===1?"hsl(":"hsla("}${hr(this.h)}, ${Dn(this.s)*100}%, ${Dn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function hr(e){return e=(e||0)%360,e<0?e+360:e}function Dn(e){return Math.max(0,Math.min(1,e||0))}function Fo(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Hs=e=>()=>e;function sd(e,t){return function(n){return e+n*t}}function ad(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(o){return Math.pow(e+o*t,n)}}function ld(e){return(e=+e)==1?Fs:function(t,n){return n-t?ad(t,n,e):Hs(isNaN(t)?n:t)}}function Fs(e,t){var n=t-e;return n?sd(e,n):Hs(isNaN(e)?t:e)}const gr=function e(t){var n=ld(t);function o(i,r){var s=n((i=ri(i)).r,(r=ri(r)).r),a=n(i.g,r.g),l=n(i.b,r.b),u=Fs(i.opacity,r.opacity);return function(c){return i.r=s(c),i.g=a(c),i.b=l(c),i.opacity=u(c),i+""}}return o.gamma=e,o}(1);function ht(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var si=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vo=new RegExp(si.source,"g");function ud(e){return function(){return e}}function cd(e){return function(t){return e(t)+""}}function dd(e,t){var n=si.lastIndex=Vo.lastIndex=0,o,i,r,s=-1,a=[],l=[];for(e=e+"",t=t+"";(o=si.exec(e))&&(i=Vo.exec(t));)(r=i.index)>n&&(r=t.slice(n,r),a[s]?a[s]+=r:a[++s]=r),(o=o[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:ht(o,i)})),n=Vo.lastIndex;return n<t.length&&(r=t.slice(n),a[s]?a[s]+=r:a[++s]=r),a.length<2?l[0]?cd(l[0].x):ud(t):(t=l.length,function(u){for(var c=0,d;c<t;++c)a[(d=l[c]).i]=d.x(u);return a.join("")})}var pr=180/Math.PI,ai={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Vs(e,t,n,o,i,r){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*o)&&(n-=e*l,o-=t*l),(a=Math.sqrt(n*n+o*o))&&(n/=a,o/=a,l/=a),e*o<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:r,rotate:Math.atan2(t,e)*pr,skewX:Math.atan(l)*pr,scaleX:s,scaleY:a}}var Bn;function fd(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?ai:Vs(t.a,t.b,t.c,t.d,t.e,t.f)}function hd(e){return e==null||(Bn||(Bn=document.createElementNS("http://www.w3.org/2000/svg","g")),Bn.setAttribute("transform",e),!(e=Bn.transform.baseVal.consolidate()))?ai:(e=e.matrix,Vs(e.a,e.b,e.c,e.d,e.e,e.f))}function Ls(e,t,n,o){function i(u){return u.length?u.pop()+" ":""}function r(u,c,d,f,g,$){if(u!==d||c!==f){var y=g.push("translate(",null,t,null,n);$.push({i:y-4,x:ht(u,d)},{i:y-2,x:ht(c,f)})}else(d||f)&&g.push("translate("+d+t+f+n)}function s(u,c,d,f){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),f.push({i:d.push(i(d)+"rotate(",null,o)-2,x:ht(u,c)})):c&&d.push(i(d)+"rotate("+c+o)}function a(u,c,d,f){u!==c?f.push({i:d.push(i(d)+"skewX(",null,o)-2,x:ht(u,c)}):c&&d.push(i(d)+"skewX("+c+o)}function l(u,c,d,f,g,$){if(u!==d||c!==f){var y=g.push(i(g)+"scale(",null,",",null,")");$.push({i:y-4,x:ht(u,d)},{i:y-2,x:ht(c,f)})}else(d!==1||f!==1)&&g.push(i(g)+"scale("+d+","+f+")")}return function(u,c){var d=[],f=[];return u=e(u),c=e(c),r(u.translateX,u.translateY,c.translateX,c.translateY,d,f),s(u.rotate,c.rotate,d,f),a(u.skewX,c.skewX,d,f),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,d,f),u=c=null,function(g){for(var $=-1,y=f.length,m;++$<y;)d[(m=f[$]).i]=m.x(g);return d.join("")}}}var gd=Ls(fd,"px, ","px)","deg)"),pd=Ls(hd,", ",")",")"),vd=1e-12;function vr(e){return((e=Math.exp(e))+1/e)/2}function md(e){return((e=Math.exp(e))-1/e)/2}function yd(e){return((e=Math.exp(2*e))-1)/(e+1)}const wd=function e(t,n,o){function i(r,s){var a=r[0],l=r[1],u=r[2],c=s[0],d=s[1],f=s[2],g=c-a,$=d-l,y=g*g+$*$,m,p;if(y<vd)p=Math.log(f/u)/t,m=function(D){return[a+D*g,l+D*$,u*Math.exp(t*D*p)]};else{var b=Math.sqrt(y),w=(f*f-u*u+o*y)/(2*u*n*b),C=(f*f-u*u-o*y)/(2*f*n*b),P=Math.log(Math.sqrt(w*w+1)-w),z=Math.log(Math.sqrt(C*C+1)-C);p=(z-P)/t,m=function(D){var V=D*p,R=vr(P),O=u/(n*b)*(R*yd(t*V+P)-md(P));return[a+O*g,l+O*$,u*R/vr(t*V+P)]}}return m.duration=p*1e3*t/Math.SQRT2,m}return i.rho=function(r){var s=Math.max(.001,+r),a=s*s,l=a*a;return e(s,a,l)},i}(Math.SQRT2,2,4);var Wt=0,sn=0,tn=0,Ys=1e3,so,an,ao=0,Ot=0,Eo=0,wn=typeof performance=="object"&&performance.now?performance:Date,Gs=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function zi(){return Ot||(Gs(_d),Ot=wn.now()+Eo)}function _d(){Ot=0}function lo(){this._call=this._time=this._next=null}lo.prototype=Xs.prototype={constructor:lo,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?zi():+n)+(t==null?0:+t),!this._next&&an!==this&&(an?an._next=this:so=this,an=this),this._call=e,this._time=n,li()},stop:function(){this._call&&(this._call=null,this._time=1/0,li())}};function Xs(e,t,n){var o=new lo;return o.restart(e,t,n),o}function bd(){zi(),++Wt;for(var e=so,t;e;)(t=Ot-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Wt}function mr(){Ot=(ao=wn.now())+Eo,Wt=sn=0;try{bd()}finally{Wt=0,$d(),Ot=0}}function xd(){var e=wn.now(),t=e-ao;t>Ys&&(Eo-=t,ao=e)}function $d(){for(var e,t=so,n,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:so=n);an=e,li(o)}function li(e){if(!Wt){sn&&(sn=clearTimeout(sn));var t=e-Ot;t>24?(e<1/0&&(sn=setTimeout(mr,e-wn.now()-Eo)),tn&&(tn=clearInterval(tn))):(tn||(ao=wn.now(),tn=setInterval(xd,Ys)),Wt=1,Gs(mr))}}function yr(e,t,n){var o=new lo;return t=t==null?0:+t,o.restart(i=>{o.stop(),e(i+t)},t,n),o}var Ed=xo("start","end","cancel","interrupt"),Sd=[],Us=0,wr=1,ui=2,Zn=3,_r=4,ci=5,qn=6;function So(e,t,n,o,i,r){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;Nd(e,n,{name:t,index:o,group:i,on:Ed,tween:Sd,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:Us})}function Pi(e,t){var n=Ge(e,t);if(n.state>Us)throw new Error("too late; already scheduled");return n}function Qe(e,t){var n=Ge(e,t);if(n.state>Zn)throw new Error("too late; already running");return n}function Ge(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Nd(e,t,n){var o=e.__transition,i;o[t]=n,n.timer=Xs(r,0,n.time);function r(u){n.state=wr,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var c,d,f,g;if(n.state!==wr)return l();for(c in o)if(g=o[c],g.name===n.name){if(g.state===Zn)return yr(s);g.state===_r?(g.state=qn,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete o[c]):+c<t&&(g.state=qn,g.timer.stop(),g.on.call("cancel",e,e.__data__,g.index,g.group),delete o[c])}if(yr(function(){n.state===Zn&&(n.state=_r,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=ui,n.on.call("start",e,e.__data__,n.index,n.group),n.state===ui){for(n.state=Zn,i=new Array(f=n.tween.length),c=0,d=-1;c<f;++c)(g=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=g);i.length=d+1}}function a(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(l),n.state=ci,1),d=-1,f=i.length;++d<f;)i[d].call(e,c);n.state===ci&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=qn,n.timer.stop(),delete o[t];for(var u in o)return;delete e.__transition}}function Qn(e,t){var n=e.__transition,o,i,r=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((o=n[s]).name!==t){r=!1;continue}i=o.state>ui&&o.state<ci,o.state=qn,o.timer.stop(),o.on.call(i?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete n[s]}r&&delete e.__transition}}function Cd(e){return this.each(function(){Qn(this,e)})}function kd(e,t){var n,o;return function(){var i=Qe(this,e),r=i.tween;if(r!==n){o=n=r;for(var s=0,a=o.length;s<a;++s)if(o[s].name===t){o=o.slice(),o.splice(s,1);break}}i.tween=o}}function Md(e,t,n){var o,i;if(typeof n!="function")throw new Error;return function(){var r=Qe(this,e),s=r.tween;if(s!==o){i=(o=s).slice();for(var a={name:t,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=a;break}l===u&&i.push(a)}r.tween=i}}function Id(e,t){var n=this._id;if(e+="",arguments.length<2){for(var o=Ge(this.node(),n).tween,i=0,r=o.length,s;i<r;++i)if((s=o[i]).name===e)return s.value;return null}return this.each((t==null?kd:Md)(n,e,t))}function Di(e,t,n){var o=e._id;return e.each(function(){var i=Qe(this,o);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Ge(i,o).value[t]}}function Ks(e,t){var n;return(typeof t=="number"?ht:t instanceof yn?gr:(n=yn(t))?(t=n,gr):dd)(e,t)}function Td(e){return function(){this.removeAttribute(e)}}function Ad(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zd(e,t,n){var o,i=n+"",r;return function(){var s=this.getAttribute(e);return s===i?null:s===o?r:r=t(o=s,n)}}function Pd(e,t,n){var o,i=n+"",r;return function(){var s=this.getAttributeNS(e.space,e.local);return s===i?null:s===o?r:r=t(o=s,n)}}function Dd(e,t,n){var o,i,r;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=a+"",s===l?null:s===o&&l===i?r:(i=l,r=t(o=s,a)))}}function Bd(e,t,n){var o,i,r;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=a+"",s===l?null:s===o&&l===i?r:(i=l,r=t(o=s,a)))}}function Od(e,t){var n=$o(e),o=n==="transform"?pd:Ks;return this.attrTween(e,typeof t=="function"?(n.local?Bd:Dd)(n,o,Di(this,"attr."+e,t)):t==null?(n.local?Ad:Td)(n):(n.local?Pd:zd)(n,o,t))}function Rd(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Hd(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Fd(e,t){var n,o;function i(){var r=t.apply(this,arguments);return r!==o&&(n=(o=r)&&Hd(e,r)),n}return i._value=t,i}function Vd(e,t){var n,o;function i(){var r=t.apply(this,arguments);return r!==o&&(n=(o=r)&&Rd(e,r)),n}return i._value=t,i}function Ld(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var o=$o(e);return this.tween(n,(o.local?Fd:Vd)(o,t))}function Yd(e,t){return function(){Pi(this,e).delay=+t.apply(this,arguments)}}function Gd(e,t){return t=+t,function(){Pi(this,e).delay=t}}function Xd(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Yd:Gd)(t,e)):Ge(this.node(),t).delay}function Ud(e,t){return function(){Qe(this,e).duration=+t.apply(this,arguments)}}function Kd(e,t){return t=+t,function(){Qe(this,e).duration=t}}function Wd(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Ud:Kd)(t,e)):Ge(this.node(),t).duration}function Zd(e,t){if(typeof t!="function")throw new Error;return function(){Qe(this,e).ease=t}}function qd(e){var t=this._id;return arguments.length?this.each(Zd(t,e)):Ge(this.node(),t).ease}function Qd(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Qe(this,e).ease=n}}function Jd(e){if(typeof e!="function")throw new Error;return this.each(Qd(this._id,e))}function jd(e){typeof e!="function"&&(e=Ss(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i<n;++i)for(var r=t[i],s=r.length,a=o[i]=[],l,u=0;u<s;++u)(l=r[u])&&e.call(l,l.__data__,u,r)&&a.push(l);return new rt(o,this._parents,this._name,this._id)}function ef(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,o=t.length,i=n.length,r=Math.min(o,i),s=new Array(o),a=0;a<r;++a)for(var l=t[a],u=n[a],c=l.length,d=s[a]=new Array(c),f,g=0;g<c;++g)(f=l[g]||u[g])&&(d[g]=f);for(;a<o;++a)s[a]=t[a];return new rt(s,this._parents,this._name,this._id)}function tf(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function nf(e,t,n){var o,i,r=tf(t)?Pi:Qe;return function(){var s=r(this,e),a=s.on;a!==o&&(i=(o=a).copy()).on(t,n),s.on=i}}function of(e,t){var n=this._id;return arguments.length<2?Ge(this.node(),n).on.on(e):this.each(nf(n,e,t))}function rf(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function sf(){return this.on("end.remove",rf(this._id))}function af(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ii(e));for(var o=this._groups,i=o.length,r=new Array(i),s=0;s<i;++s)for(var a=o[s],l=a.length,u=r[s]=new Array(l),c,d,f=0;f<l;++f)(c=a[f])&&(d=e.call(c,c.__data__,f,a))&&("__data__"in c&&(d.__data__=c.__data__),u[f]=d,So(u[f],t,n,f,u,Ge(c,n)));return new rt(r,this._parents,t,n)}function lf(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Es(e));for(var o=this._groups,i=o.length,r=[],s=[],a=0;a<i;++a)for(var l=o[a],u=l.length,c,d=0;d<u;++d)if(c=l[d]){for(var f=e.call(c,c.__data__,d,l),g,$=Ge(c,n),y=0,m=f.length;y<m;++y)(g=f[y])&&So(g,t,n,y,f,$);r.push(f),s.push(c)}return new rt(r,s,t,n)}var uf=Cn.prototype.constructor;function cf(){return new uf(this._groups,this._parents)}function df(e,t){var n,o,i;return function(){var r=Kt(this,e),s=(this.style.removeProperty(e),Kt(this,e));return r===s?null:r===n&&s===o?i:i=t(n=r,o=s)}}function Ws(e){return function(){this.style.removeProperty(e)}}function ff(e,t,n){var o,i=n+"",r;return function(){var s=Kt(this,e);return s===i?null:s===o?r:r=t(o=s,n)}}function hf(e,t,n){var o,i,r;return function(){var s=Kt(this,e),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),Kt(this,e))),s===l?null:s===o&&l===i?r:(i=l,r=t(o=s,a))}}function gf(e,t){var n,o,i,r="style."+t,s="end."+r,a;return function(){var l=Qe(this,e),u=l.on,c=l.value[r]==null?a||(a=Ws(t)):void 0;(u!==n||i!==c)&&(o=(n=u).copy()).on(s,i=c),l.on=o}}function pf(e,t,n){var o=(e+="")=="transform"?gd:Ks;return t==null?this.styleTween(e,df(e,o)).on("end.style."+e,Ws(e)):typeof t=="function"?this.styleTween(e,hf(e,o,Di(this,"style."+e,t))).each(gf(this._id,e)):this.styleTween(e,ff(e,o,t),n).on("end.style."+e,null)}function vf(e,t,n){return function(o){this.style.setProperty(e,t.call(this,o),n)}}function mf(e,t,n){var o,i;function r(){var s=t.apply(this,arguments);return s!==i&&(o=(i=s)&&vf(e,s,n)),o}return r._value=t,r}function yf(e,t,n){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,mf(e,t,n??""))}function wf(e){return function(){this.textContent=e}}function _f(e){return function(){var t=e(this);this.textContent=t??""}}function bf(e){return this.tween("text",typeof e=="function"?_f(Di(this,"text",e)):wf(e==null?"":e+""))}function xf(e){return function(t){this.textContent=e.call(this,t)}}function $f(e){var t,n;function o(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&xf(i)),t}return o._value=e,o}function Ef(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,$f(e))}function Sf(){for(var e=this._name,t=this._id,n=Zs(),o=this._groups,i=o.length,r=0;r<i;++r)for(var s=o[r],a=s.length,l,u=0;u<a;++u)if(l=s[u]){var c=Ge(l,t);So(l,e,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new rt(o,this._parents,e,n)}function Nf(){var e,t,n=this,o=n._id,i=n.size();return new Promise(function(r,s){var a={value:s},l={value:function(){--i===0&&r()}};n.each(function(){var u=Qe(this,o),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),u.on=t}),i===0&&r()})}var Cf=0;function rt(e,t,n,o){this._groups=e,this._parents=t,this._name=n,this._id=o}function Zs(){return++Cf}var je=Cn.prototype;rt.prototype={constructor:rt,select:af,selectAll:lf,selectChild:je.selectChild,selectChildren:je.selectChildren,filter:jd,merge:ef,selection:cf,transition:Sf,call:je.call,nodes:je.nodes,node:je.node,size:je.size,empty:je.empty,each:je.each,on:of,attr:Od,attrTween:Ld,style:pf,styleTween:yf,text:bf,textTween:Ef,remove:sf,tween:Id,delay:Xd,duration:Wd,ease:qd,easeVarying:Jd,end:Nf,[Symbol.iterator]:je[Symbol.iterator]};function kf(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Mf={time:null,delay:0,duration:250,ease:kf};function If(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Tf(e){var t,n;e instanceof rt?(t=e._id,e=e._name):(t=Zs(),(n=Mf).time=zi(),e=e==null?null:e+"");for(var o=this._groups,i=o.length,r=0;r<i;++r)for(var s=o[r],a=s.length,l,u=0;u<a;++u)(l=s[u])&&So(l,e,t,u,s,n||If(l,t));return new rt(o,this._parents,e,t)}Cn.prototype.interrupt=Cd;Cn.prototype.transition=Tf;const On=e=>()=>e;function Af(e,{sourceEvent:t,target:n,transform:o,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:i}})}function nt(e,t,n){this.k=e,this.x=t,this.y=n}nt.prototype={constructor:nt,scale:function(e){return e===1?this:new nt(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new nt(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Zt=new nt(1,0,0);nt.prototype;function Lo(e){e.stopImmediatePropagation()}function nn(e){e.preventDefault(),e.stopImmediatePropagation()}function zf(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Pf(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function br(){return this.__zoom||Zt}function Df(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Bf(){return navigator.maxTouchPoints||"ontouchstart"in this}function Of(e,t,n){var o=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function Rf(){var e=zf,t=Pf,n=Of,o=Df,i=Bf,r=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,l=wd,u=xo("start","zoom","end"),c,d,f,g=500,$=150,y=0,m=10;function p(h){h.property("__zoom",br).on("wheel.zoom",V,{passive:!1}).on("mousedown.zoom",R).on("dblclick.zoom",O).filter(i).on("touchstart.zoom",F).on("touchmove.zoom",k).on("touchend.zoom touchcancel.zoom",G).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}p.transform=function(h,M,v,T){var I=h.selection?h.selection():h;I.property("__zoom",br),h!==I?P(h,M,v,T):I.interrupt().each(function(){z(this,arguments).event(T).start().zoom(null,typeof M=="function"?M.apply(this,arguments):M).end()})},p.scaleBy=function(h,M,v,T){p.scaleTo(h,function(){var I=this.__zoom.k,B=typeof M=="function"?M.apply(this,arguments):M;return I*B},v,T)},p.scaleTo=function(h,M,v,T){p.transform(h,function(){var I=t.apply(this,arguments),B=this.__zoom,A=v==null?C(I):typeof v=="function"?v.apply(this,arguments):v,L=B.invert(A),K=typeof M=="function"?M.apply(this,arguments):M;return n(w(b(B,K),A,L),I,s)},v,T)},p.translateBy=function(h,M,v,T){p.transform(h,function(){return n(this.__zoom.translate(typeof M=="function"?M.apply(this,arguments):M,typeof v=="function"?v.apply(this,arguments):v),t.apply(this,arguments),s)},null,T)},p.translateTo=function(h,M,v,T,I){p.transform(h,function(){var B=t.apply(this,arguments),A=this.__zoom,L=T==null?C(B):typeof T=="function"?T.apply(this,arguments):T;return n(Zt.translate(L[0],L[1]).scale(A.k).translate(typeof M=="function"?-M.apply(this,arguments):-M,typeof v=="function"?-v.apply(this,arguments):-v),B,s)},T,I)};function b(h,M){return M=Math.max(r[0],Math.min(r[1],M)),M===h.k?h:new nt(M,h.x,h.y)}function w(h,M,v){var T=M[0]-v[0]*h.k,I=M[1]-v[1]*h.k;return T===h.x&&I===h.y?h:new nt(h.k,T,I)}function C(h){return[(+h[0][0]+ +h[1][0])/2,(+h[0][1]+ +h[1][1])/2]}function P(h,M,v,T){h.on("start.zoom",function(){z(this,arguments).event(T).start()}).on("interrupt.zoom end.zoom",function(){z(this,arguments).event(T).end()}).tween("zoom",function(){var I=this,B=arguments,A=z(I,B).event(T),L=t.apply(I,B),K=v==null?C(L):typeof v=="function"?v.apply(I,B):v,ee=Math.max(L[1][0]-L[0][0],L[1][1]-L[0][1]),Y=I.__zoom,U=typeof M=="function"?M.apply(I,B):M,Q=l(Y.invert(K).concat(ee/Y.k),U.invert(K).concat(ee/U.k));return function(se){if(se===1)se=U;else{var ue=Q(se),ae=ee/ue[2];se=new nt(ae,K[0]-ue[0]*ae,K[1]-ue[1]*ae)}A.zoom(null,se)}})}function z(h,M,v){return!v&&h.__zooming||new D(h,M)}function D(h,M){this.that=h,this.args=M,this.active=0,this.sourceEvent=null,this.extent=t.apply(h,M),this.taps=0}D.prototype={event:function(h){return h&&(this.sourceEvent=h),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(h,M){return this.mouse&&h!=="mouse"&&(this.mouse[1]=M.invert(this.mouse[0])),this.touch0&&h!=="touch"&&(this.touch0[1]=M.invert(this.touch0[0])),this.touch1&&h!=="touch"&&(this.touch1[1]=M.invert(this.touch1[0])),this.that.__zoom=M,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(h){var M=Fe(this.that).datum();u.call(h,this.that,new Af(h,{sourceEvent:this.sourceEvent,target:p,transform:this.that.__zoom,dispatch:u}),M)}};function V(h,...M){if(!e.apply(this,arguments))return;var v=z(this,M).event(h),T=this.__zoom,I=Math.max(r[0],Math.min(r[1],T.k*Math.pow(2,o.apply(this,arguments)))),B=We(h);if(v.wheel)(v.mouse[0][0]!==B[0]||v.mouse[0][1]!==B[1])&&(v.mouse[1]=T.invert(v.mouse[0]=B)),clearTimeout(v.wheel);else{if(T.k===I)return;v.mouse=[B,T.invert(B)],Qn(this),v.start()}nn(h),v.wheel=setTimeout(A,$),v.zoom("mouse",n(w(b(T,I),v.mouse[0],v.mouse[1]),v.extent,s));function A(){v.wheel=null,v.end()}}function R(h,...M){if(f||!e.apply(this,arguments))return;var v=h.currentTarget,T=z(this,M,!0).event(h),I=Fe(h.view).on("mousemove.zoom",K,!0).on("mouseup.zoom",ee,!0),B=We(h,v),A=h.clientX,L=h.clientY;Ds(h.view),Lo(h),T.mouse=[B,this.__zoom.invert(B)],Qn(this),T.start();function K(Y){if(nn(Y),!T.moved){var U=Y.clientX-A,Q=Y.clientY-L;T.moved=U*U+Q*Q>y}T.event(Y).zoom("mouse",n(w(T.that.__zoom,T.mouse[0]=We(Y,v),T.mouse[1]),T.extent,s))}function ee(Y){I.on("mousemove.zoom mouseup.zoom",null),Bs(Y.view,T.moved),nn(Y),T.event(Y).end()}}function O(h,...M){if(e.apply(this,arguments)){var v=this.__zoom,T=We(h.changedTouches?h.changedTouches[0]:h,this),I=v.invert(T),B=v.k*(h.shiftKey?.5:2),A=n(w(b(v,B),T,I),t.apply(this,M),s);nn(h),a>0?Fe(this).transition().duration(a).call(P,A,T,h):Fe(this).call(p.transform,A,T,h)}}function F(h,...M){if(e.apply(this,arguments)){var v=h.touches,T=v.length,I=z(this,M,h.changedTouches.length===T).event(h),B,A,L,K;for(Lo(h),A=0;A<T;++A)L=v[A],K=We(L,this),K=[K,this.__zoom.invert(K),L.identifier],I.touch0?!I.touch1&&I.touch0[2]!==K[2]&&(I.touch1=K,I.taps=0):(I.touch0=K,B=!0,I.taps=1+!!c);c&&(c=clearTimeout(c)),B&&(I.taps<2&&(d=K[0],c=setTimeout(function(){c=null},g)),Qn(this),I.start())}}function k(h,...M){if(this.__zooming){var v=z(this,M).event(h),T=h.changedTouches,I=T.length,B,A,L,K;for(nn(h),B=0;B<I;++B)A=T[B],L=We(A,this),v.touch0&&v.touch0[2]===A.identifier?v.touch0[0]=L:v.touch1&&v.touch1[2]===A.identifier&&(v.touch1[0]=L);if(A=v.that.__zoom,v.touch1){var ee=v.touch0[0],Y=v.touch0[1],U=v.touch1[0],Q=v.touch1[1],se=(se=U[0]-ee[0])*se+(se=U[1]-ee[1])*se,ue=(ue=Q[0]-Y[0])*ue+(ue=Q[1]-Y[1])*ue;A=b(A,Math.sqrt(se/ue)),L=[(ee[0]+U[0])/2,(ee[1]+U[1])/2],K=[(Y[0]+Q[0])/2,(Y[1]+Q[1])/2]}else if(v.touch0)L=v.touch0[0],K=v.touch0[1];else return;v.zoom("touch",n(w(A,L,K),v.extent,s))}}function G(h,...M){if(this.__zooming){var v=z(this,M).event(h),T=h.changedTouches,I=T.length,B,A;for(Lo(h),f&&clearTimeout(f),f=setTimeout(function(){f=null},g),B=0;B<I;++B)A=T[B],v.touch0&&v.touch0[2]===A.identifier?delete v.touch0:v.touch1&&v.touch1[2]===A.identifier&&delete v.touch1;if(v.touch1&&!v.touch0&&(v.touch0=v.touch1,delete v.touch1),v.touch0)v.touch0[1]=this.__zoom.invert(v.touch0[0]);else if(v.end(),v.taps===2&&(A=We(A,this),Math.hypot(d[0]-A[0],d[1]-A[1])<m)){var L=Fe(this).on("dblclick.zoom");L&&L.apply(this,arguments)}}}return p.wheelDelta=function(h){return arguments.length?(o=typeof h=="function"?h:On(+h),p):o},p.filter=function(h){return arguments.length?(e=typeof h=="function"?h:On(!!h),p):e},p.touchable=function(h){return arguments.length?(i=typeof h=="function"?h:On(!!h),p):i},p.extent=function(h){return arguments.length?(t=typeof h=="function"?h:On([[+h[0][0],+h[0][1]],[+h[1][0],+h[1][1]]]),p):t},p.scaleExtent=function(h){return arguments.length?(r[0]=+h[0],r[1]=+h[1],p):[r[0],r[1]]},p.translateExtent=function(h){return arguments.length?(s[0][0]=+h[0][0],s[1][0]=+h[1][0],s[0][1]=+h[0][1],s[1][1]=+h[1][1],p):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},p.constrain=function(h){return arguments.length?(n=h,p):n},p.duration=function(h){return arguments.length?(a=+h,p):a},p.interpolate=function(h){return arguments.length?(l=h,p):l},p.on=function(){var h=u.on.apply(u,arguments);return h===u?p:h},p.clickDistance=function(h){return arguments.length?(y=(h=+h)*h,p):Math.sqrt(y)},p.tapDistance=function(h){return arguments.length?(m=+h,p):m},p}var te=(e=>(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(te||{}),Bi=(e=>(e.Partial="partial",e.Full="full",e))(Bi||{}),Ct=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(Ct||{}),$t=(e=>(e.Strict="strict",e.Loose="loose",e))($t||{}),di=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(di||{}),fn=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(fn||{});const Hf=["INPUT","SELECT","TEXTAREA"];function fi(e){var t,n;const o=((n=(t=e.composedPath)==null?void 0:t.call(e))==null?void 0:n[0])||e.target,i=typeof(o==null?void 0:o.hasAttribute)=="function"?o.hasAttribute("contenteditable"):!1,r=typeof(o==null?void 0:o.closest)=="function"?o.closest(".nokey"):null;return Hf.includes(o==null?void 0:o.nodeName)||i||!!r}function Ff(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function xr(e,t,n,o){const i=t.replace("+",`
|
|
1
|
+
import{r as ge,dh as Bo,d as fe,as as us,cW as ja,cV as el,ar as qi,c as W,aj as tl,di as nl,k as we,o as X,w as re,f as q,D as Te,g as N,bK as Xn,bj as yt,ak as cs,cX as ol,dj as ds,ay as Ye,c$ as Lt,d4 as fs,p as Dt,bL as il,dk as Qi,dl as Ci,dm as rl,dn as sl,dp as al,dq as ll,dr as ul,e as oe,F as Ie,s as wt,q as ki,aZ as Ee,n as Ae,j as cl,aL as dl,m as he,bz as hs,aS as Ft,ds as gs,au as xe,aR as Nn,dt as Mi,l as Ne,bw as fl,av as St,aQ as ps,du as hl,aB as _e,t as Pe,aC as gl,bx as Un,dv as pl,z as He,aT as Bt,dw as vs,az as be,aN as me,i as _t,dx as vl,aO as ml,c0 as dn,dy as bt,dz as ei,b3 as yl,b4 as wl,b6 as _l,dA as bl,aK as xl,ab as ms,b2 as gn,A as ze,dB as ys,a0 as Ke,dC as Ji,dD as ji,de as $l,aY as at,a_ as lt,a$ as ut,d8 as er,dE as tr,dF as Kn,bY as El,dG as Sl,cp as Nl,dH as An,dI as Oo,aP as Cl,df as kl,dJ as Ml,bn as Il,dK as Tl,dL as Al,dM as zl,dN as Pl,dO as Dl,ac as Bl}from"./BfSmOVMj.js";function Ol(e,t){const n=ge(),o=(r,s)=>{if(t.multiple&&Array.isArray(e.value))if(t.selectionBehavior==="replace")e.value=[r],n.value=r;else{const a=e.value.findIndex(l=>s(l));a!==-1?e.value=e.value.filter((l,u)=>u!==a):e.value=[...e.value,r]}else t.selectionBehavior==="replace"?e.value={...r}:!Array.isArray(e.value)&&s(e.value)?e.value=void 0:e.value={...r};return e.value};function i(r,s,a,l){var f;if(!(n!=null&&n.value)||!t.multiple||!Array.isArray(e.value))return;const c=(f=a().filter(g=>g.ref.dataset.disabled!=="").find(g=>g.ref===s))==null?void 0:f.value;if(!c)return;let d=null;switch(r){case"prev":case"next":{d=Bo(l,n.value,c);break}case"first":{d=Bo(l,n.value,l==null?void 0:l[0]);break}case"last":{d=Bo(l,n.value,l==null?void 0:l[l.length-1]);break}}e.value=d}return{firstValue:n,onSelectItem:o,handleMultipleReplace:i}}function no(e){return e.reduce((t,n)=>(t.push(n),n.children&&t.push(...no(n.children)),t),[])}const[ws,Rl]=tl("TreeRoot");var Hl=fe({__name:"TreeRoot",props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},items:{type:Array,required:!1},expanded:{type:Array,required:!1},defaultExpanded:{type:Array,required:!1},getKey:{type:Function,required:!0},getChildren:{type:Function,required:!1,default:e=>e.children},selectionBehavior:{type:String,required:!1,default:"toggle"},multiple:{type:Boolean,required:!1,skipCheck:!0},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},propagateSelect:{type:Boolean,required:!1},bubbleSelect:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"ul"}},emits:["update:modelValue","update:expanded"],setup(e,{emit:t}){const n=e,o=t,{items:i,multiple:r,disabled:s,propagateSelect:a,dir:l,bubbleSelect:u}=us(n),{handleTypeaheadSearch:c}=ja(),d=el(l),f=ge(),g=ge(!1),$=nl(),y=qi(n,"modelValue",o,{defaultValue:n.defaultValue??(r.value?[]:void 0),passive:!0,deep:!0}),m=qi(n,"expanded",o,{defaultValue:n.defaultExpanded??[],passive:n.expanded===void 0,deep:!0}),{onSelectItem:p,handleMultipleReplace:b}=Ol(y,n),w=W(()=>r.value&&Array.isArray(y.value)?y.value.map(R=>n.getKey(R)):[n.getKey(y.value??{})]);function C(R,O=1,F){return R.reduce((k,G,h)=>{const M=n.getKey(G),v=n.getChildren(G),T=m.value.includes(M),I={_id:M,value:G,index:h,level:O,parentItem:F,hasChildren:!!v,bind:{value:G,level:O,"aria-setsize":R.length,"aria-posinset":h+1}};return k.push(I),v&&T&&k.push(...C(v,O+1,G)),k},[])}const P=W(()=>{const R=n.items;return m.value.map(O=>O),C(R??[])});function z(R){var O;if(g.value)$.trigger(R);else{const F=((O=f.value)==null?void 0:O.getItems())??[];c(R.key,F)}}function D(R){if(g.value)return;const O=ds[R.key];Ye(()=>{var F;b(O,Lt(),(F=f.value)==null?void 0:F.getItems,P.value.map(k=>k.value))})}function V(R){var O;if(R.parentItem!=null&&Array.isArray(y.value)&&n.multiple){const F=P.value.find(k=>R.parentItem!=null&&n.getKey(k.value)===n.getKey(R.parentItem));F!=null&&(((O=n.getChildren(F.value))==null?void 0:O.every(G=>y.value.find(h=>n.getKey(h)===n.getKey(G))))?y.value=[...y.value,F.value]:y.value=y.value.filter(G=>n.getKey(G)!==n.getKey(F.value)),V(F))}}return Rl({modelValue:y,selectedKeys:w,onSelect:R=>{var k;const O=G=>n.getKey(G??{})===n.getKey(R),F=n.multiple&&Array.isArray(y.value)?((k=y.value)==null?void 0:k.findIndex(O))!==-1:void 0;if(p(R,O),n.bubbleSelect&&n.multiple&&Array.isArray(y.value)){const G=P.value.find(h=>n.getKey(h.value)===n.getKey(R));G!=null&&V(G)}if(n.propagateSelect&&n.multiple&&Array.isArray(y.value)){const G=no(n.getChildren(R)??[]);F?y.value=[...y.value].filter(h=>!G.some(M=>n.getKey(h??{})===n.getKey(M))):y.value=[...y.value,...G]}},expanded:m,onToggle(R){if(!(R?n.getChildren(R):void 0))return;const F=n.getKey(R)??R;m.value.includes(F)?m.value=m.value.filter(k=>k!==F):m.value=[...m.value,F]},getKey:n.getKey,getChildren:n.getChildren,items:i,expandedItems:P,disabled:s,multiple:r,dir:d,propagateSelect:a,bubbleSelect:u,isVirtual:g,virtualKeydownHook:$,handleMultipleReplace:b}),(R,O)=>(X(),we(N(ol),{ref_key:"rovingFocusGroupRef",ref:f,"as-child":"",orientation:"vertical",dir:N(d)},{default:re(()=>[q(N(cs),{role:"tree",as:R.as,"as-child":R.asChild,"aria-multiselectable":N(r)?!0:void 0,onKeydown:[z,Xn(yt(D,["shift"]),["up","down"])]},{default:re(()=>[Te(R.$slots,"default",{flattenItems:P.value,modelValue:N(y),expanded:N(m)})]),_:3},8,["as","as-child","aria-multiselectable","onKeydown"])]),_:3},8,["dir"]))}}),Fl=Hl;const Vl="tree.select",Ll="tree.toggle";var Yl=fe({inheritAttrs:!1,__name:"TreeItem",props:{value:{type:null,required:!0},level:{type:Number,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"li"}},emits:["select","toggle"],setup(e,{expose:t,emit:n}){const o=e,i=n,r=ws(),{getItems:s}=fs(),a=W(()=>!!r.getChildren(o.value)),l=W(()=>{const p=r.getKey(o.value);return r.expanded.value.includes(p)}),u=W(()=>{const p=r.getKey(o.value);return r.selectedKeys.value.includes(p)}),c=W(()=>{if(r.bubbleSelect.value&&a.value&&Array.isArray(r.modelValue.value)){const p=no(r.getChildren(o.value)||[]);return p.some(b=>r.modelValue.value.find(w=>r.getKey(w)===r.getKey(b)))&&!p.every(b=>r.modelValue.value.find(w=>r.getKey(w)===r.getKey(b)))}else return r.propagateSelect.value&&u.value&&a.value&&Array.isArray(r.modelValue.value)?!no(r.getChildren(o.value)||[]).every(b=>r.modelValue.value.find(w=>r.getKey(w)===r.getKey(b))):void 0});function d(p){if(a.value)if(l.value){const b=s().map(D=>D.ref),w=Lt(),C=b.indexOf(w),z=[...b].slice(C).find(D=>Number(D.getAttribute("data-indent"))===o.level+1);z&&z.focus()}else m(p)}function f(p){if(l.value)m(p);else{const b=s().map(D=>D.ref),w=Lt(),C=b.indexOf(w),z=[...b].slice(0,C).reverse().find(D=>Number(D.getAttribute("data-indent"))===o.level-1);z&&z.focus()}}async function g(p){i("select",p),!(p!=null&&p.defaultPrevented)&&r.onSelect(o.value)}async function $(p){i("toggle",p),!(p!=null&&p.defaultPrevented)&&r.onToggle(o.value)}async function y(p){if(!p)return;const b={originalEvent:p,value:o.value,isExpanded:l.value,isSelected:u.value};Qi(Vl,g,b)}async function m(p){if(!p)return;const b={originalEvent:p,value:o.value,isExpanded:l.value,isSelected:u.value};Qi(Ll,$,b)}return t({isExpanded:l,isSelected:u,isIndeterminate:c,handleToggle:()=>r.onToggle(o.value),handleSelect:()=>r.onSelect(o.value)}),(p,b)=>(X(),we(N(il),{"as-child":"",value:p.value,"allow-shift-key":""},{default:re(()=>[q(N(cs),Dt(p.$attrs,{role:"treeitem",as:p.as,"as-child":p.asChild,"aria-selected":u.value,"aria-expanded":a.value?l.value:void 0,"aria-level":p.level,"data-indent":p.level,"data-selected":u.value?"":void 0,"data-expanded":l.value?"":void 0,onKeydown:[Xn(yt(y,["self","prevent"]),["enter","space"]),b[0]||(b[0]=Xn(yt(w=>N(r).dir.value==="ltr"?d(w):f(w),["prevent"]),["right"])),b[1]||(b[1]=Xn(yt(w=>N(r).dir.value==="ltr"?f(w):d(w),["prevent"]),["left"]))],onClick:b[2]||(b[2]=yt(w=>{y(w),m(w)},["stop"]))}),{default:re(()=>[Te(p.$slots,"default",{isExpanded:l.value,isSelected:u.value,isIndeterminate:c.value,handleSelect:()=>N(r).onSelect(p.value),handleToggle:()=>N(r).onToggle(p.value)})]),_:3},16,["as","as-child","aria-selected","aria-expanded","aria-level","data-indent","data-selected","data-expanded","onKeydown"])]),_:3},8,["value"]))}}),Gl=Yl,Xl=fe({__name:"TreeVirtualizer",props:{overscan:{type:Number,required:!1},estimateSize:{type:[Number,Function],required:!1},textContent:{type:Function,required:!1}},setup(e){const t=e,n=Ci(),o=ws(),i=rl(),{getItems:r}=fs(),s=sl("",1e3),a=W(()=>{const f=g=>t.textContent?t.textContent(g):g.toString().toLowerCase();return o.expandedItems.value.map((g,$)=>({index:$,textContent:f(g.value)}))});o.isVirtual.value=!0;const l=W(()=>{const f=i.value;if(f){const g=window.getComputedStyle(f);return{start:Number.parseFloat(g.paddingBlockStart||g.paddingTop),end:Number.parseFloat(g.paddingBlockEnd||g.paddingBottom)}}else return{start:0,end:0}}),u=al({get scrollPaddingStart(){return l.value.start},get scrollPaddingEnd(){return l.value.end},get count(){return o.expandedItems.value.length??0},get horizontal(){return!1},getItemKey(f){return f+o.getKey(o.expandedItems.value[f].value)},estimateSize(f){return typeof t.estimateSize=="function"?t.estimateSize(f):t.estimateSize??28},getScrollElement(){return i.value},overscan:t.overscan??12}),c=W(()=>u.value.getVirtualItems().map(f=>({item:f,is:ll(n.default({item:o.expandedItems.value[f.index],virtualizer:u.value,virtualItem:f})[0],{"data-index":f.index,style:{position:"absolute",top:0,left:0,transform:`translateY(${f.start}px)`,overflowAnchor:"none"}})})));function d(f){u.value.scrollToIndex(f,{align:"start"}),requestAnimationFrame(()=>{const g=i.value.querySelector(`[data-index="${f}"]`);g instanceof HTMLElement&&g.focus()})}return o.virtualKeydownHook.on(f=>{var m;const g=f.altKey||f.ctrlKey||f.metaKey;if(f.key==="Tab"&&!g)return;const y=ds[f.key];if(["first","last"].includes(y)){f.preventDefault();const p=y==="first"?0:o.expandedItems.value.length-1;u.value.scrollToIndex(p),requestAnimationFrame(()=>{const b=r();(y==="first"?b[0]:b[b.length-1]).ref.focus()})}else if(y==="prev"&&f.key!=="ArrowUp"){const p=Lt(),b=Number(p.getAttribute("data-index")),w=Number(p.getAttribute("data-indent")),P=o.expandedItems.value.slice(0,b).map((z,D)=>({...z,index:D})).reverse().find(z=>z.level===w-1);P&&d(P.index)}else if(!y&&!g){s.value+=f.key;const p=Number((m=Lt())==null?void 0:m.getAttribute("data-index")),b=a.value[p].textContent,w=a.value.map(z=>z.textContent),C=ul(w,s.value,b),P=a.value.find(z=>z.textContent===C);P&&d(P.index)}Ye(()=>{f.shiftKey&&y&&o.handleMultipleReplace(y,Lt(),r,o.expandedItems.value.map(p=>p.value))})}),(f,g)=>(X(),oe("div",{"data-reka-virtualizer":"",style:Ee({position:"relative",width:"100%",height:`${N(u).getTotalSize()}px`})},[(X(!0),oe(Ie,null,wt(c.value,({is:$,item:y})=>(X(),we(ki($),{key:y.key}))),128))],4))}}),Ul=Xl;const Kl=fe({__name:"KbdGroup",props:{class:{}},setup(e){const t=e;return(n,o)=>(X(),oe("kbd",{"data-slot":"kbd-group",class:Ae(N(cl)("inline-flex items-center gap-1",t.class))},[Te(n.$slots,"default")],2))}});function bo(e){return hs()?(Un(e),!0):!1}function tt(e){return typeof e=="function"?e():N(e)}const Wl=typeof window<"u"&&typeof document<"u",Zl=e=>typeof e<"u",ql=Object.prototype.toString,Ql=e=>ql.call(e)==="[object Object]",Jl=()=>{};function jl(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}const _s=e=>e();function eu(e=_s){const t=ge(!0);function n(){t.value=!1}function o(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:ml(t),pause:n,resume:o,eventFilter:i}}function nr(e,t=!1,n="Timeout"){return new Promise((o,i)=>{setTimeout(t?()=>i(n):o,e)})}function tu(e,t,n={}){const{eventFilter:o=_s,...i}=n;return xe(e,jl(o,t),i)}function Vt(e,t,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:s,resume:a,isActive:l}=eu(o);return{stop:tu(e,t,{...i,eventFilter:r}),pause:s,resume:a,isActive:l}}function nu(e,t={}){if(!_t(e))return us(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const o in e.value)n[o]=vl(()=>({get(){return e.value[o]},set(i){var r;if((r=tt(t.replaceRef))!=null?r:!0)if(Array.isArray(e.value)){const a=[...e.value];a[o]=i,e.value=a}else{const a={...e.value,[o]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(e.value)),e.value=a}else e.value[o]=i}}));return n}function ti(e,t=!1){function n(d,{flush:f="sync",deep:g=!1,timeout:$,throwOnTimeout:y}={}){let m=null;const b=[new Promise(w=>{m=xe(e,C=>{d(C)!==t&&(m==null||m(),w(C))},{flush:f,deep:g,immediate:!0})})];return $!=null&&b.push(nr($,y).then(()=>tt(e)).finally(()=>m==null?void 0:m())),Promise.race(b)}function o(d,f){if(!_t(d))return n(C=>C===d,f);const{flush:g="sync",deep:$=!1,timeout:y,throwOnTimeout:m}=f??{};let p=null;const w=[new Promise(C=>{p=xe([e,d],([P,z])=>{t!==(P===z)&&(p==null||p(),C(P))},{flush:g,deep:$,immediate:!0})})];return y!=null&&w.push(nr(y,m).then(()=>tt(e)).finally(()=>(p==null||p(),tt(e)))),Promise.race(w)}function i(d){return n(f=>!!f,d)}function r(d){return o(null,d)}function s(d){return o(void 0,d)}function a(d){return n(Number.isNaN,d)}function l(d,f){return n(g=>{const $=Array.from(g);return $.includes(d)||$.includes(tt(d))},f)}function u(d){return c(1,d)}function c(d=1,f){let g=-1;return n(()=>(g+=1,g>=d),f)}return Array.isArray(tt(e))?{toMatch:n,toContains:l,changed:u,changedTimes:c,get not(){return ti(e,!t)}}:{toMatch:n,toBe:o,toBeTruthy:i,toBeNull:r,toBeNaN:a,toBeUndefined:s,changed:u,changedTimes:c,get not(){return ti(e,!t)}}}function ni(e){return ti(e)}function ou(e){var t;const n=tt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const bs=Wl?window:void 0;function xs(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=bs):[t,n,o,i]=e,!t)return Jl;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(c=>c()),r.length=0},a=(c,d,f,g)=>(c.addEventListener(d,f,g),()=>c.removeEventListener(d,f,g)),l=xe(()=>[ou(t),tt(i)],([c,d])=>{if(s(),!c)return;const f=Ql(d)?{...d}:d;r.push(...n.flatMap(g=>o.map($=>a(c,g,$,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),s()};return bo(u),u}function iu(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function or(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=bs,eventName:r="keydown",passive:s=!1,dedupe:a=!1}=o,l=iu(t);return xs(i,r,c=>{c.repeat&&tt(a)||l(c)&&n(c)},s)}function ru(e){return JSON.parse(JSON.stringify(e))}function Ro(e,t,n,o={}){var i,r,s;const{clone:a=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:d,shouldEmit:f}=o,g=Nn(),$=n||(g==null?void 0:g.emit)||((i=g==null?void 0:g.$emit)==null?void 0:i.bind(g))||((s=(r=g==null?void 0:g.proxy)==null?void 0:r.$emit)==null?void 0:s.bind(g==null?void 0:g.proxy));let y=u;t||(t="modelValue"),y=y||`update:${t.toString()}`;const m=w=>a?typeof a=="function"?a(w):ru(w):w,p=()=>Zl(e[t])?m(e[t]):d,b=w=>{f?f(w)&&$(y,w):$(y,w)};if(l){const w=p(),C=ge(w);let P=!1;return xe(()=>e[t],z=>{P||(P=!0,C.value=m(z),Ye(()=>P=!1))}),xe(C,z=>{!P&&(z!==e[t]||c)&&b(z)},{deep:c}),C}else return W({get(){return p()},set(w){b(w)}})}var su={value:()=>{}};function xo(){for(var e=0,t=arguments.length,n={},o;e<t;++e){if(!(o=arguments[e]+"")||o in n||/[\s.]/.test(o))throw new Error("illegal type: "+o);n[o]=[]}return new Wn(n)}function Wn(e){this._=e}function au(e,t){return e.trim().split(/^|\s+/).map(function(n){var o="",i=n.indexOf(".");if(i>=0&&(o=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}Wn.prototype=xo.prototype={constructor:Wn,on:function(e,t){var n=this._,o=au(e+"",n),i,r=-1,s=o.length;if(arguments.length<2){for(;++r<s;)if((i=(e=o[r]).type)&&(i=lu(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++r<s;)if(i=(e=o[r]).type)n[i]=ir(n[i],e.name,t);else if(t==null)for(i in n)n[i]=ir(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Wn(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),o=0,i,r;o<i;++o)n[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],i=0,r=o.length;i<r;++i)o[i].value.apply(t,n)}};function lu(e,t){for(var n=0,o=e.length,i;n<o;++n)if((i=e[n]).name===t)return i.value}function ir(e,t,n){for(var o=0,i=e.length;o<i;++o)if(e[o].name===t){e[o]=su,e=e.slice(0,o).concat(e.slice(o+1));break}return n!=null&&e.push({name:t,value:n}),e}var oi="http://www.w3.org/1999/xhtml";const rr={svg:"http://www.w3.org/2000/svg",xhtml:oi,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $o(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),rr.hasOwnProperty(t)?{space:rr[t],local:e}:e}function uu(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===oi&&t.documentElement.namespaceURI===oi?t.createElement(e):t.createElementNS(n,e)}}function cu(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function $s(e){var t=$o(e);return(t.local?cu:uu)(t)}function du(){}function Ii(e){return e==null?du:function(){return this.querySelector(e)}}function fu(e){typeof e!="function"&&(e=Ii(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i<n;++i)for(var r=t[i],s=r.length,a=o[i]=new Array(s),l,u,c=0;c<s;++c)(l=r[c])&&(u=e.call(l,l.__data__,c,r))&&("__data__"in l&&(u.__data__=l.__data__),a[c]=u);return new Oe(o,this._parents)}function hu(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function gu(){return[]}function Es(e){return e==null?gu:function(){return this.querySelectorAll(e)}}function pu(e){return function(){return hu(e.apply(this,arguments))}}function vu(e){typeof e=="function"?e=pu(e):e=Es(e);for(var t=this._groups,n=t.length,o=[],i=[],r=0;r<n;++r)for(var s=t[r],a=s.length,l,u=0;u<a;++u)(l=s[u])&&(o.push(e.call(l,l.__data__,u,s)),i.push(l));return new Oe(o,i)}function Ss(e){return function(){return this.matches(e)}}function Ns(e){return function(t){return t.matches(e)}}var mu=Array.prototype.find;function yu(e){return function(){return mu.call(this.children,e)}}function wu(){return this.firstElementChild}function _u(e){return this.select(e==null?wu:yu(typeof e=="function"?e:Ns(e)))}var bu=Array.prototype.filter;function xu(){return Array.from(this.children)}function $u(e){return function(){return bu.call(this.children,e)}}function Eu(e){return this.selectAll(e==null?xu:$u(typeof e=="function"?e:Ns(e)))}function Su(e){typeof e!="function"&&(e=Ss(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i<n;++i)for(var r=t[i],s=r.length,a=o[i]=[],l,u=0;u<s;++u)(l=r[u])&&e.call(l,l.__data__,u,r)&&a.push(l);return new Oe(o,this._parents)}function Cs(e){return new Array(e.length)}function Nu(){return new Oe(this._enter||this._groups.map(Cs),this._parents)}function oo(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}oo.prototype={constructor:oo,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Cu(e){return function(){return e}}function ku(e,t,n,o,i,r){for(var s=0,a,l=t.length,u=r.length;s<u;++s)(a=t[s])?(a.__data__=r[s],o[s]=a):n[s]=new oo(e,r[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function Mu(e,t,n,o,i,r,s){var a,l,u=new Map,c=t.length,d=r.length,f=new Array(c),g;for(a=0;a<c;++a)(l=t[a])&&(f[a]=g=s.call(l,l.__data__,a,t)+"",u.has(g)?i[a]=l:u.set(g,l));for(a=0;a<d;++a)g=s.call(e,r[a],a,r)+"",(l=u.get(g))?(o[a]=l,l.__data__=r[a],u.delete(g)):n[a]=new oo(e,r[a]);for(a=0;a<c;++a)(l=t[a])&&u.get(f[a])===l&&(i[a]=l)}function Iu(e){return e.__data__}function Tu(e,t){if(!arguments.length)return Array.from(this,Iu);var n=t?Mu:ku,o=this._parents,i=this._groups;typeof e!="function"&&(e=Cu(e));for(var r=i.length,s=new Array(r),a=new Array(r),l=new Array(r),u=0;u<r;++u){var c=o[u],d=i[u],f=d.length,g=Au(e.call(c,c&&c.__data__,u,o)),$=g.length,y=a[u]=new Array($),m=s[u]=new Array($),p=l[u]=new Array(f);n(c,d,y,m,p,g,t);for(var b=0,w=0,C,P;b<$;++b)if(C=y[b]){for(b>=w&&(w=b+1);!(P=m[w])&&++w<$;);C._next=P||null}}return s=new Oe(s,o),s._enter=a,s._exit=l,s}function Au(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function zu(){return new Oe(this._exit||this._groups.map(Cs),this._parents)}function Pu(e,t,n){var o=this.enter(),i=this,r=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?r.remove():n(r),o&&i?o.merge(i).order():i}function Du(e){for(var t=e.selection?e.selection():e,n=this._groups,o=t._groups,i=n.length,r=o.length,s=Math.min(i,r),a=new Array(i),l=0;l<s;++l)for(var u=n[l],c=o[l],d=u.length,f=a[l]=new Array(d),g,$=0;$<d;++$)(g=u[$]||c[$])&&(f[$]=g);for(;l<i;++l)a[l]=n[l];return new Oe(a,this._parents)}function Bu(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var o=e[t],i=o.length-1,r=o[i],s;--i>=0;)(s=o[i])&&(r&&s.compareDocumentPosition(r)^4&&r.parentNode.insertBefore(s,r),r=s);return this}function Ou(e){e||(e=Ru);function t(d,f){return d&&f?e(d.__data__,f.__data__):!d-!f}for(var n=this._groups,o=n.length,i=new Array(o),r=0;r<o;++r){for(var s=n[r],a=s.length,l=i[r]=new Array(a),u,c=0;c<a;++c)(u=s[c])&&(l[c]=u);l.sort(t)}return new Oe(i,this._parents).order()}function Ru(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Hu(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Fu(){return Array.from(this)}function Vu(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var o=e[t],i=0,r=o.length;i<r;++i){var s=o[i];if(s)return s}return null}function Lu(){let e=0;for(const t of this)++e;return e}function Yu(){return!this.node()}function Gu(e){for(var t=this._groups,n=0,o=t.length;n<o;++n)for(var i=t[n],r=0,s=i.length,a;r<s;++r)(a=i[r])&&e.call(a,a.__data__,r,i);return this}function Xu(e){return function(){this.removeAttribute(e)}}function Uu(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ku(e,t){return function(){this.setAttribute(e,t)}}function Wu(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Zu(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function qu(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Qu(e,t){var n=$o(e);if(arguments.length<2){var o=this.node();return n.local?o.getAttributeNS(n.space,n.local):o.getAttribute(n)}return this.each((t==null?n.local?Uu:Xu:typeof t=="function"?n.local?qu:Zu:n.local?Wu:Ku)(n,t))}function ks(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Ju(e){return function(){this.style.removeProperty(e)}}function ju(e,t,n){return function(){this.style.setProperty(e,t,n)}}function ec(e,t,n){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,n)}}function tc(e,t,n){return arguments.length>1?this.each((t==null?Ju:typeof t=="function"?ec:ju)(e,t,n??"")):Kt(this.node(),e)}function Kt(e,t){return e.style.getPropertyValue(t)||ks(e).getComputedStyle(e,null).getPropertyValue(t)}function nc(e){return function(){delete this[e]}}function oc(e,t){return function(){this[e]=t}}function ic(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function rc(e,t){return arguments.length>1?this.each((t==null?nc:typeof t=="function"?ic:oc)(e,t)):this.node()[e]}function Ms(e){return e.trim().split(/^|\s+/)}function Ti(e){return e.classList||new Is(e)}function Is(e){this._node=e,this._names=Ms(e.getAttribute("class")||"")}Is.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ts(e,t){for(var n=Ti(e),o=-1,i=t.length;++o<i;)n.add(t[o])}function As(e,t){for(var n=Ti(e),o=-1,i=t.length;++o<i;)n.remove(t[o])}function sc(e){return function(){Ts(this,e)}}function ac(e){return function(){As(this,e)}}function lc(e,t){return function(){(t.apply(this,arguments)?Ts:As)(this,e)}}function uc(e,t){var n=Ms(e+"");if(arguments.length<2){for(var o=Ti(this.node()),i=-1,r=n.length;++i<r;)if(!o.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?lc:t?sc:ac)(n,t))}function cc(){this.textContent=""}function dc(e){return function(){this.textContent=e}}function fc(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function hc(e){return arguments.length?this.each(e==null?cc:(typeof e=="function"?fc:dc)(e)):this.node().textContent}function gc(){this.innerHTML=""}function pc(e){return function(){this.innerHTML=e}}function vc(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function mc(e){return arguments.length?this.each(e==null?gc:(typeof e=="function"?vc:pc)(e)):this.node().innerHTML}function yc(){this.nextSibling&&this.parentNode.appendChild(this)}function wc(){return this.each(yc)}function _c(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function bc(){return this.each(_c)}function xc(e){var t=typeof e=="function"?e:$s(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function $c(){return null}function Ec(e,t){var n=typeof e=="function"?e:$s(e),o=t==null?$c:typeof t=="function"?t:Ii(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),o.apply(this,arguments)||null)})}function Sc(){var e=this.parentNode;e&&e.removeChild(this)}function Nc(){return this.each(Sc)}function Cc(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function kc(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Mc(e){return this.select(e?kc:Cc)}function Ic(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Tc(e){return function(t){e.call(this,t,this.__data__)}}function Ac(e){return e.trim().split(/^|\s+/).map(function(t){var n="",o=t.indexOf(".");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{type:t,name:n}})}function zc(e){return function(){var t=this.__on;if(t){for(var n=0,o=-1,i=t.length,r;n<i;++n)r=t[n],(!e.type||r.type===e.type)&&r.name===e.name?this.removeEventListener(r.type,r.listener,r.options):t[++o]=r;++o?t.length=o:delete this.__on}}}function Pc(e,t,n){return function(){var o=this.__on,i,r=Tc(t);if(o){for(var s=0,a=o.length;s<a;++s)if((i=o[s]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=r,i.options=n),i.value=t;return}}this.addEventListener(e.type,r,n),i={type:e.type,name:e.name,value:t,listener:r,options:n},o?o.push(i):this.__on=[i]}}function Dc(e,t,n){var o=Ac(e+""),i,r=o.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,u=a.length,c;l<u;++l)for(i=0,c=a[l];i<r;++i)if((s=o[i]).type===c.type&&s.name===c.name)return c.value}return}for(a=t?Pc:zc,i=0;i<r;++i)this.each(a(o[i],t,n));return this}function zs(e,t,n){var o=ks(e),i=o.CustomEvent;typeof i=="function"?i=new i(t,n):(i=o.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Bc(e,t){return function(){return zs(this,e,t)}}function Oc(e,t){return function(){return zs(this,e,t.apply(this,arguments))}}function Rc(e,t){return this.each((typeof t=="function"?Oc:Bc)(e,t))}function*Hc(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var o=e[t],i=0,r=o.length,s;i<r;++i)(s=o[i])&&(yield s)}var Ps=[null];function Oe(e,t){this._groups=e,this._parents=t}function Cn(){return new Oe([[document.documentElement]],Ps)}function Fc(){return this}Oe.prototype=Cn.prototype={constructor:Oe,select:fu,selectAll:vu,selectChild:_u,selectChildren:Eu,filter:Su,data:Tu,enter:Nu,exit:zu,join:Pu,merge:Du,selection:Fc,order:Bu,sort:Ou,call:Hu,nodes:Fu,node:Vu,size:Lu,empty:Yu,each:Gu,attr:Qu,style:tc,property:rc,classed:uc,text:hc,html:mc,raise:wc,lower:bc,append:xc,insert:Ec,remove:Nc,clone:Mc,datum:Ic,on:Dc,dispatch:Rc,[Symbol.iterator]:Hc};function Fe(e){return typeof e=="string"?new Oe([[document.querySelector(e)]],[document.documentElement]):new Oe([[e]],Ps)}function Vc(e){let t;for(;t=e.sourceEvent;)e=t;return e}function We(e,t){if(e=Vc(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var o=n.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const Lc={passive:!1},pn={capture:!0,passive:!1};function Ho(e){e.stopImmediatePropagation()}function Yt(e){e.preventDefault(),e.stopImmediatePropagation()}function Ds(e){var t=e.document.documentElement,n=Fe(e).on("dragstart.drag",Yt,pn);"onselectstart"in t?n.on("selectstart.drag",Yt,pn):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Bs(e,t){var n=e.document.documentElement,o=Fe(e).on("dragstart.drag",null);t&&(o.on("click.drag",Yt,pn),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const zn=e=>()=>e;function ii(e,{sourceEvent:t,subject:n,target:o,identifier:i,active:r,x:s,y:a,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}ii.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Yc(e){return!e.ctrlKey&&!e.button}function Gc(){return this.parentNode}function Xc(e,t){return t??{x:e.x,y:e.y}}function Uc(){return navigator.maxTouchPoints||"ontouchstart"in this}function Kc(){var e=Yc,t=Gc,n=Xc,o=Uc,i={},r=xo("start","drag","end"),s=0,a,l,u,c,d=0;function f(C){C.on("mousedown.drag",g).filter(o).on("touchstart.drag",m).on("touchmove.drag",p,Lc).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(C,P){if(!(c||!e.call(this,C,P))){var z=w(this,t.call(this,C,P),C,P,"mouse");z&&(Fe(C.view).on("mousemove.drag",$,pn).on("mouseup.drag",y,pn),Ds(C.view),Ho(C),u=!1,a=C.clientX,l=C.clientY,z("start",C))}}function $(C){if(Yt(C),!u){var P=C.clientX-a,z=C.clientY-l;u=P*P+z*z>d}i.mouse("drag",C)}function y(C){Fe(C.view).on("mousemove.drag mouseup.drag",null),Bs(C.view,u),Yt(C),i.mouse("end",C)}function m(C,P){if(e.call(this,C,P)){var z=C.changedTouches,D=t.call(this,C,P),V=z.length,R,O;for(R=0;R<V;++R)(O=w(this,D,C,P,z[R].identifier,z[R]))&&(Ho(C),O("start",C,z[R]))}}function p(C){var P=C.changedTouches,z=P.length,D,V;for(D=0;D<z;++D)(V=i[P[D].identifier])&&(Yt(C),V("drag",C,P[D]))}function b(C){var P=C.changedTouches,z=P.length,D,V;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),D=0;D<z;++D)(V=i[P[D].identifier])&&(Ho(C),V("end",C,P[D]))}function w(C,P,z,D,V,R){var O=r.copy(),F=We(R||z,P),k,G,h;if((h=n.call(C,new ii("beforestart",{sourceEvent:z,target:f,identifier:V,active:s,x:F[0],y:F[1],dx:0,dy:0,dispatch:O}),D))!=null)return k=h.x-F[0]||0,G=h.y-F[1]||0,function M(v,T,I){var B=F,A;switch(v){case"start":i[V]=M,A=s++;break;case"end":delete i[V],--s;case"drag":F=We(I||T,P),A=s;break}O.call(v,C,new ii(v,{sourceEvent:T,subject:h,target:f,identifier:V,active:A,x:F[0]+k,y:F[1]+G,dx:F[0]-B[0],dy:F[1]-B[1],dispatch:O}),D)}}return f.filter=function(C){return arguments.length?(e=typeof C=="function"?C:zn(!!C),f):e},f.container=function(C){return arguments.length?(t=typeof C=="function"?C:zn(C),f):t},f.subject=function(C){return arguments.length?(n=typeof C=="function"?C:zn(C),f):n},f.touchable=function(C){return arguments.length?(o=typeof C=="function"?C:zn(!!C),f):o},f.on=function(){var C=r.on.apply(r,arguments);return C===r?f:C},f.clickDistance=function(C){return arguments.length?(d=(C=+C)*C,f):Math.sqrt(d)},f}function Ai(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Os(e,t){var n=Object.create(e.prototype);for(var o in t)n[o]=t[o];return n}function kn(){}var vn=.7,io=1/vn,Gt="\\s*([+-]?\\d+)\\s*",mn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ze="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wc=/^#([0-9a-f]{3,8})$/,Zc=new RegExp(`^rgb\\(${Gt},${Gt},${Gt}\\)$`),qc=new RegExp(`^rgb\\(${Ze},${Ze},${Ze}\\)$`),Qc=new RegExp(`^rgba\\(${Gt},${Gt},${Gt},${mn}\\)$`),Jc=new RegExp(`^rgba\\(${Ze},${Ze},${Ze},${mn}\\)$`),jc=new RegExp(`^hsl\\(${mn},${Ze},${Ze}\\)$`),ed=new RegExp(`^hsla\\(${mn},${Ze},${Ze},${mn}\\)$`),sr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ai(kn,yn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ar,formatHex:ar,formatHex8:td,formatHsl:nd,formatRgb:lr,toString:lr});function ar(){return this.rgb().formatHex()}function td(){return this.rgb().formatHex8()}function nd(){return Rs(this).formatHsl()}function lr(){return this.rgb().formatRgb()}function yn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Wc.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ur(t):n===3?new De(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Pn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Pn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Zc.exec(e))?new De(t[1],t[2],t[3],1):(t=qc.exec(e))?new De(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Qc.exec(e))?Pn(t[1],t[2],t[3],t[4]):(t=Jc.exec(e))?Pn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=jc.exec(e))?fr(t[1],t[2]/100,t[3]/100,1):(t=ed.exec(e))?fr(t[1],t[2]/100,t[3]/100,t[4]):sr.hasOwnProperty(e)?ur(sr[e]):e==="transparent"?new De(NaN,NaN,NaN,0):null}function ur(e){return new De(e>>16&255,e>>8&255,e&255,1)}function Pn(e,t,n,o){return o<=0&&(e=t=n=NaN),new De(e,t,n,o)}function od(e){return e instanceof kn||(e=yn(e)),e?(e=e.rgb(),new De(e.r,e.g,e.b,e.opacity)):new De}function ri(e,t,n,o){return arguments.length===1?od(e):new De(e,t,n,o??1)}function De(e,t,n,o){this.r=+e,this.g=+t,this.b=+n,this.opacity=+o}Ai(De,ri,Os(kn,{brighter(e){return e=e==null?io:Math.pow(io,e),new De(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?vn:Math.pow(vn,e),new De(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new De(At(this.r),At(this.g),At(this.b),ro(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cr,formatHex:cr,formatHex8:id,formatRgb:dr,toString:dr}));function cr(){return`#${It(this.r)}${It(this.g)}${It(this.b)}`}function id(){return`#${It(this.r)}${It(this.g)}${It(this.b)}${It((isNaN(this.opacity)?1:this.opacity)*255)}`}function dr(){const e=ro(this.opacity);return`${e===1?"rgb(":"rgba("}${At(this.r)}, ${At(this.g)}, ${At(this.b)}${e===1?")":`, ${e})`}`}function ro(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function At(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function It(e){return e=At(e),(e<16?"0":"")+e.toString(16)}function fr(e,t,n,o){return o<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ve(e,t,n,o)}function Rs(e){if(e instanceof Ve)return new Ve(e.h,e.s,e.l,e.opacity);if(e instanceof kn||(e=yn(e)),!e)return new Ve;if(e instanceof Ve)return e;e=e.rgb();var t=e.r/255,n=e.g/255,o=e.b/255,i=Math.min(t,n,o),r=Math.max(t,n,o),s=NaN,a=r-i,l=(r+i)/2;return a?(t===r?s=(n-o)/a+(n<o)*6:n===r?s=(o-t)/a+2:s=(t-n)/a+4,a/=l<.5?r+i:2-r-i,s*=60):a=l>0&&l<1?0:s,new Ve(s,a,l,e.opacity)}function rd(e,t,n,o){return arguments.length===1?Rs(e):new Ve(e,t,n,o??1)}function Ve(e,t,n,o){this.h=+e,this.s=+t,this.l=+n,this.opacity=+o}Ai(Ve,rd,Os(kn,{brighter(e){return e=e==null?io:Math.pow(io,e),new Ve(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?vn:Math.pow(vn,e),new Ve(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*t,i=2*n-o;return new De(Fo(e>=240?e-240:e+120,i,o),Fo(e,i,o),Fo(e<120?e+240:e-120,i,o),this.opacity)},clamp(){return new Ve(hr(this.h),Dn(this.s),Dn(this.l),ro(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ro(this.opacity);return`${e===1?"hsl(":"hsla("}${hr(this.h)}, ${Dn(this.s)*100}%, ${Dn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function hr(e){return e=(e||0)%360,e<0?e+360:e}function Dn(e){return Math.max(0,Math.min(1,e||0))}function Fo(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Hs=e=>()=>e;function sd(e,t){return function(n){return e+n*t}}function ad(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(o){return Math.pow(e+o*t,n)}}function ld(e){return(e=+e)==1?Fs:function(t,n){return n-t?ad(t,n,e):Hs(isNaN(t)?n:t)}}function Fs(e,t){var n=t-e;return n?sd(e,n):Hs(isNaN(e)?t:e)}const gr=function e(t){var n=ld(t);function o(i,r){var s=n((i=ri(i)).r,(r=ri(r)).r),a=n(i.g,r.g),l=n(i.b,r.b),u=Fs(i.opacity,r.opacity);return function(c){return i.r=s(c),i.g=a(c),i.b=l(c),i.opacity=u(c),i+""}}return o.gamma=e,o}(1);function ht(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var si=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vo=new RegExp(si.source,"g");function ud(e){return function(){return e}}function cd(e){return function(t){return e(t)+""}}function dd(e,t){var n=si.lastIndex=Vo.lastIndex=0,o,i,r,s=-1,a=[],l=[];for(e=e+"",t=t+"";(o=si.exec(e))&&(i=Vo.exec(t));)(r=i.index)>n&&(r=t.slice(n,r),a[s]?a[s]+=r:a[++s]=r),(o=o[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:ht(o,i)})),n=Vo.lastIndex;return n<t.length&&(r=t.slice(n),a[s]?a[s]+=r:a[++s]=r),a.length<2?l[0]?cd(l[0].x):ud(t):(t=l.length,function(u){for(var c=0,d;c<t;++c)a[(d=l[c]).i]=d.x(u);return a.join("")})}var pr=180/Math.PI,ai={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Vs(e,t,n,o,i,r){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*o)&&(n-=e*l,o-=t*l),(a=Math.sqrt(n*n+o*o))&&(n/=a,o/=a,l/=a),e*o<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:r,rotate:Math.atan2(t,e)*pr,skewX:Math.atan(l)*pr,scaleX:s,scaleY:a}}var Bn;function fd(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?ai:Vs(t.a,t.b,t.c,t.d,t.e,t.f)}function hd(e){return e==null||(Bn||(Bn=document.createElementNS("http://www.w3.org/2000/svg","g")),Bn.setAttribute("transform",e),!(e=Bn.transform.baseVal.consolidate()))?ai:(e=e.matrix,Vs(e.a,e.b,e.c,e.d,e.e,e.f))}function Ls(e,t,n,o){function i(u){return u.length?u.pop()+" ":""}function r(u,c,d,f,g,$){if(u!==d||c!==f){var y=g.push("translate(",null,t,null,n);$.push({i:y-4,x:ht(u,d)},{i:y-2,x:ht(c,f)})}else(d||f)&&g.push("translate("+d+t+f+n)}function s(u,c,d,f){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),f.push({i:d.push(i(d)+"rotate(",null,o)-2,x:ht(u,c)})):c&&d.push(i(d)+"rotate("+c+o)}function a(u,c,d,f){u!==c?f.push({i:d.push(i(d)+"skewX(",null,o)-2,x:ht(u,c)}):c&&d.push(i(d)+"skewX("+c+o)}function l(u,c,d,f,g,$){if(u!==d||c!==f){var y=g.push(i(g)+"scale(",null,",",null,")");$.push({i:y-4,x:ht(u,d)},{i:y-2,x:ht(c,f)})}else(d!==1||f!==1)&&g.push(i(g)+"scale("+d+","+f+")")}return function(u,c){var d=[],f=[];return u=e(u),c=e(c),r(u.translateX,u.translateY,c.translateX,c.translateY,d,f),s(u.rotate,c.rotate,d,f),a(u.skewX,c.skewX,d,f),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,d,f),u=c=null,function(g){for(var $=-1,y=f.length,m;++$<y;)d[(m=f[$]).i]=m.x(g);return d.join("")}}}var gd=Ls(fd,"px, ","px)","deg)"),pd=Ls(hd,", ",")",")"),vd=1e-12;function vr(e){return((e=Math.exp(e))+1/e)/2}function md(e){return((e=Math.exp(e))-1/e)/2}function yd(e){return((e=Math.exp(2*e))-1)/(e+1)}const wd=function e(t,n,o){function i(r,s){var a=r[0],l=r[1],u=r[2],c=s[0],d=s[1],f=s[2],g=c-a,$=d-l,y=g*g+$*$,m,p;if(y<vd)p=Math.log(f/u)/t,m=function(D){return[a+D*g,l+D*$,u*Math.exp(t*D*p)]};else{var b=Math.sqrt(y),w=(f*f-u*u+o*y)/(2*u*n*b),C=(f*f-u*u-o*y)/(2*f*n*b),P=Math.log(Math.sqrt(w*w+1)-w),z=Math.log(Math.sqrt(C*C+1)-C);p=(z-P)/t,m=function(D){var V=D*p,R=vr(P),O=u/(n*b)*(R*yd(t*V+P)-md(P));return[a+O*g,l+O*$,u*R/vr(t*V+P)]}}return m.duration=p*1e3*t/Math.SQRT2,m}return i.rho=function(r){var s=Math.max(.001,+r),a=s*s,l=a*a;return e(s,a,l)},i}(Math.SQRT2,2,4);var Wt=0,sn=0,tn=0,Ys=1e3,so,an,ao=0,Ot=0,Eo=0,wn=typeof performance=="object"&&performance.now?performance:Date,Gs=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function zi(){return Ot||(Gs(_d),Ot=wn.now()+Eo)}function _d(){Ot=0}function lo(){this._call=this._time=this._next=null}lo.prototype=Xs.prototype={constructor:lo,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?zi():+n)+(t==null?0:+t),!this._next&&an!==this&&(an?an._next=this:so=this,an=this),this._call=e,this._time=n,li()},stop:function(){this._call&&(this._call=null,this._time=1/0,li())}};function Xs(e,t,n){var o=new lo;return o.restart(e,t,n),o}function bd(){zi(),++Wt;for(var e=so,t;e;)(t=Ot-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Wt}function mr(){Ot=(ao=wn.now())+Eo,Wt=sn=0;try{bd()}finally{Wt=0,$d(),Ot=0}}function xd(){var e=wn.now(),t=e-ao;t>Ys&&(Eo-=t,ao=e)}function $d(){for(var e,t=so,n,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:so=n);an=e,li(o)}function li(e){if(!Wt){sn&&(sn=clearTimeout(sn));var t=e-Ot;t>24?(e<1/0&&(sn=setTimeout(mr,e-wn.now()-Eo)),tn&&(tn=clearInterval(tn))):(tn||(ao=wn.now(),tn=setInterval(xd,Ys)),Wt=1,Gs(mr))}}function yr(e,t,n){var o=new lo;return t=t==null?0:+t,o.restart(i=>{o.stop(),e(i+t)},t,n),o}var Ed=xo("start","end","cancel","interrupt"),Sd=[],Us=0,wr=1,ui=2,Zn=3,_r=4,ci=5,qn=6;function So(e,t,n,o,i,r){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;Nd(e,n,{name:t,index:o,group:i,on:Ed,tween:Sd,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:Us})}function Pi(e,t){var n=Ge(e,t);if(n.state>Us)throw new Error("too late; already scheduled");return n}function Qe(e,t){var n=Ge(e,t);if(n.state>Zn)throw new Error("too late; already running");return n}function Ge(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Nd(e,t,n){var o=e.__transition,i;o[t]=n,n.timer=Xs(r,0,n.time);function r(u){n.state=wr,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var c,d,f,g;if(n.state!==wr)return l();for(c in o)if(g=o[c],g.name===n.name){if(g.state===Zn)return yr(s);g.state===_r?(g.state=qn,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete o[c]):+c<t&&(g.state=qn,g.timer.stop(),g.on.call("cancel",e,e.__data__,g.index,g.group),delete o[c])}if(yr(function(){n.state===Zn&&(n.state=_r,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=ui,n.on.call("start",e,e.__data__,n.index,n.group),n.state===ui){for(n.state=Zn,i=new Array(f=n.tween.length),c=0,d=-1;c<f;++c)(g=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=g);i.length=d+1}}function a(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(l),n.state=ci,1),d=-1,f=i.length;++d<f;)i[d].call(e,c);n.state===ci&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=qn,n.timer.stop(),delete o[t];for(var u in o)return;delete e.__transition}}function Qn(e,t){var n=e.__transition,o,i,r=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((o=n[s]).name!==t){r=!1;continue}i=o.state>ui&&o.state<ci,o.state=qn,o.timer.stop(),o.on.call(i?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete n[s]}r&&delete e.__transition}}function Cd(e){return this.each(function(){Qn(this,e)})}function kd(e,t){var n,o;return function(){var i=Qe(this,e),r=i.tween;if(r!==n){o=n=r;for(var s=0,a=o.length;s<a;++s)if(o[s].name===t){o=o.slice(),o.splice(s,1);break}}i.tween=o}}function Md(e,t,n){var o,i;if(typeof n!="function")throw new Error;return function(){var r=Qe(this,e),s=r.tween;if(s!==o){i=(o=s).slice();for(var a={name:t,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=a;break}l===u&&i.push(a)}r.tween=i}}function Id(e,t){var n=this._id;if(e+="",arguments.length<2){for(var o=Ge(this.node(),n).tween,i=0,r=o.length,s;i<r;++i)if((s=o[i]).name===e)return s.value;return null}return this.each((t==null?kd:Md)(n,e,t))}function Di(e,t,n){var o=e._id;return e.each(function(){var i=Qe(this,o);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Ge(i,o).value[t]}}function Ks(e,t){var n;return(typeof t=="number"?ht:t instanceof yn?gr:(n=yn(t))?(t=n,gr):dd)(e,t)}function Td(e){return function(){this.removeAttribute(e)}}function Ad(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zd(e,t,n){var o,i=n+"",r;return function(){var s=this.getAttribute(e);return s===i?null:s===o?r:r=t(o=s,n)}}function Pd(e,t,n){var o,i=n+"",r;return function(){var s=this.getAttributeNS(e.space,e.local);return s===i?null:s===o?r:r=t(o=s,n)}}function Dd(e,t,n){var o,i,r;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=a+"",s===l?null:s===o&&l===i?r:(i=l,r=t(o=s,a)))}}function Bd(e,t,n){var o,i,r;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=a+"",s===l?null:s===o&&l===i?r:(i=l,r=t(o=s,a)))}}function Od(e,t){var n=$o(e),o=n==="transform"?pd:Ks;return this.attrTween(e,typeof t=="function"?(n.local?Bd:Dd)(n,o,Di(this,"attr."+e,t)):t==null?(n.local?Ad:Td)(n):(n.local?Pd:zd)(n,o,t))}function Rd(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Hd(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Fd(e,t){var n,o;function i(){var r=t.apply(this,arguments);return r!==o&&(n=(o=r)&&Hd(e,r)),n}return i._value=t,i}function Vd(e,t){var n,o;function i(){var r=t.apply(this,arguments);return r!==o&&(n=(o=r)&&Rd(e,r)),n}return i._value=t,i}function Ld(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var o=$o(e);return this.tween(n,(o.local?Fd:Vd)(o,t))}function Yd(e,t){return function(){Pi(this,e).delay=+t.apply(this,arguments)}}function Gd(e,t){return t=+t,function(){Pi(this,e).delay=t}}function Xd(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Yd:Gd)(t,e)):Ge(this.node(),t).delay}function Ud(e,t){return function(){Qe(this,e).duration=+t.apply(this,arguments)}}function Kd(e,t){return t=+t,function(){Qe(this,e).duration=t}}function Wd(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Ud:Kd)(t,e)):Ge(this.node(),t).duration}function Zd(e,t){if(typeof t!="function")throw new Error;return function(){Qe(this,e).ease=t}}function qd(e){var t=this._id;return arguments.length?this.each(Zd(t,e)):Ge(this.node(),t).ease}function Qd(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Qe(this,e).ease=n}}function Jd(e){if(typeof e!="function")throw new Error;return this.each(Qd(this._id,e))}function jd(e){typeof e!="function"&&(e=Ss(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i<n;++i)for(var r=t[i],s=r.length,a=o[i]=[],l,u=0;u<s;++u)(l=r[u])&&e.call(l,l.__data__,u,r)&&a.push(l);return new rt(o,this._parents,this._name,this._id)}function ef(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,o=t.length,i=n.length,r=Math.min(o,i),s=new Array(o),a=0;a<r;++a)for(var l=t[a],u=n[a],c=l.length,d=s[a]=new Array(c),f,g=0;g<c;++g)(f=l[g]||u[g])&&(d[g]=f);for(;a<o;++a)s[a]=t[a];return new rt(s,this._parents,this._name,this._id)}function tf(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function nf(e,t,n){var o,i,r=tf(t)?Pi:Qe;return function(){var s=r(this,e),a=s.on;a!==o&&(i=(o=a).copy()).on(t,n),s.on=i}}function of(e,t){var n=this._id;return arguments.length<2?Ge(this.node(),n).on.on(e):this.each(nf(n,e,t))}function rf(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function sf(){return this.on("end.remove",rf(this._id))}function af(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ii(e));for(var o=this._groups,i=o.length,r=new Array(i),s=0;s<i;++s)for(var a=o[s],l=a.length,u=r[s]=new Array(l),c,d,f=0;f<l;++f)(c=a[f])&&(d=e.call(c,c.__data__,f,a))&&("__data__"in c&&(d.__data__=c.__data__),u[f]=d,So(u[f],t,n,f,u,Ge(c,n)));return new rt(r,this._parents,t,n)}function lf(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Es(e));for(var o=this._groups,i=o.length,r=[],s=[],a=0;a<i;++a)for(var l=o[a],u=l.length,c,d=0;d<u;++d)if(c=l[d]){for(var f=e.call(c,c.__data__,d,l),g,$=Ge(c,n),y=0,m=f.length;y<m;++y)(g=f[y])&&So(g,t,n,y,f,$);r.push(f),s.push(c)}return new rt(r,s,t,n)}var uf=Cn.prototype.constructor;function cf(){return new uf(this._groups,this._parents)}function df(e,t){var n,o,i;return function(){var r=Kt(this,e),s=(this.style.removeProperty(e),Kt(this,e));return r===s?null:r===n&&s===o?i:i=t(n=r,o=s)}}function Ws(e){return function(){this.style.removeProperty(e)}}function ff(e,t,n){var o,i=n+"",r;return function(){var s=Kt(this,e);return s===i?null:s===o?r:r=t(o=s,n)}}function hf(e,t,n){var o,i,r;return function(){var s=Kt(this,e),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),Kt(this,e))),s===l?null:s===o&&l===i?r:(i=l,r=t(o=s,a))}}function gf(e,t){var n,o,i,r="style."+t,s="end."+r,a;return function(){var l=Qe(this,e),u=l.on,c=l.value[r]==null?a||(a=Ws(t)):void 0;(u!==n||i!==c)&&(o=(n=u).copy()).on(s,i=c),l.on=o}}function pf(e,t,n){var o=(e+="")=="transform"?gd:Ks;return t==null?this.styleTween(e,df(e,o)).on("end.style."+e,Ws(e)):typeof t=="function"?this.styleTween(e,hf(e,o,Di(this,"style."+e,t))).each(gf(this._id,e)):this.styleTween(e,ff(e,o,t),n).on("end.style."+e,null)}function vf(e,t,n){return function(o){this.style.setProperty(e,t.call(this,o),n)}}function mf(e,t,n){var o,i;function r(){var s=t.apply(this,arguments);return s!==i&&(o=(i=s)&&vf(e,s,n)),o}return r._value=t,r}function yf(e,t,n){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,mf(e,t,n??""))}function wf(e){return function(){this.textContent=e}}function _f(e){return function(){var t=e(this);this.textContent=t??""}}function bf(e){return this.tween("text",typeof e=="function"?_f(Di(this,"text",e)):wf(e==null?"":e+""))}function xf(e){return function(t){this.textContent=e.call(this,t)}}function $f(e){var t,n;function o(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&xf(i)),t}return o._value=e,o}function Ef(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,$f(e))}function Sf(){for(var e=this._name,t=this._id,n=Zs(),o=this._groups,i=o.length,r=0;r<i;++r)for(var s=o[r],a=s.length,l,u=0;u<a;++u)if(l=s[u]){var c=Ge(l,t);So(l,e,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new rt(o,this._parents,e,n)}function Nf(){var e,t,n=this,o=n._id,i=n.size();return new Promise(function(r,s){var a={value:s},l={value:function(){--i===0&&r()}};n.each(function(){var u=Qe(this,o),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),u.on=t}),i===0&&r()})}var Cf=0;function rt(e,t,n,o){this._groups=e,this._parents=t,this._name=n,this._id=o}function Zs(){return++Cf}var je=Cn.prototype;rt.prototype={constructor:rt,select:af,selectAll:lf,selectChild:je.selectChild,selectChildren:je.selectChildren,filter:jd,merge:ef,selection:cf,transition:Sf,call:je.call,nodes:je.nodes,node:je.node,size:je.size,empty:je.empty,each:je.each,on:of,attr:Od,attrTween:Ld,style:pf,styleTween:yf,text:bf,textTween:Ef,remove:sf,tween:Id,delay:Xd,duration:Wd,ease:qd,easeVarying:Jd,end:Nf,[Symbol.iterator]:je[Symbol.iterator]};function kf(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Mf={time:null,delay:0,duration:250,ease:kf};function If(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Tf(e){var t,n;e instanceof rt?(t=e._id,e=e._name):(t=Zs(),(n=Mf).time=zi(),e=e==null?null:e+"");for(var o=this._groups,i=o.length,r=0;r<i;++r)for(var s=o[r],a=s.length,l,u=0;u<a;++u)(l=s[u])&&So(l,e,t,u,s,n||If(l,t));return new rt(o,this._parents,e,t)}Cn.prototype.interrupt=Cd;Cn.prototype.transition=Tf;const On=e=>()=>e;function Af(e,{sourceEvent:t,target:n,transform:o,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:i}})}function nt(e,t,n){this.k=e,this.x=t,this.y=n}nt.prototype={constructor:nt,scale:function(e){return e===1?this:new nt(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new nt(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Zt=new nt(1,0,0);nt.prototype;function Lo(e){e.stopImmediatePropagation()}function nn(e){e.preventDefault(),e.stopImmediatePropagation()}function zf(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Pf(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function br(){return this.__zoom||Zt}function Df(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Bf(){return navigator.maxTouchPoints||"ontouchstart"in this}function Of(e,t,n){var o=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function Rf(){var e=zf,t=Pf,n=Of,o=Df,i=Bf,r=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,l=wd,u=xo("start","zoom","end"),c,d,f,g=500,$=150,y=0,m=10;function p(h){h.property("__zoom",br).on("wheel.zoom",V,{passive:!1}).on("mousedown.zoom",R).on("dblclick.zoom",O).filter(i).on("touchstart.zoom",F).on("touchmove.zoom",k).on("touchend.zoom touchcancel.zoom",G).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}p.transform=function(h,M,v,T){var I=h.selection?h.selection():h;I.property("__zoom",br),h!==I?P(h,M,v,T):I.interrupt().each(function(){z(this,arguments).event(T).start().zoom(null,typeof M=="function"?M.apply(this,arguments):M).end()})},p.scaleBy=function(h,M,v,T){p.scaleTo(h,function(){var I=this.__zoom.k,B=typeof M=="function"?M.apply(this,arguments):M;return I*B},v,T)},p.scaleTo=function(h,M,v,T){p.transform(h,function(){var I=t.apply(this,arguments),B=this.__zoom,A=v==null?C(I):typeof v=="function"?v.apply(this,arguments):v,L=B.invert(A),K=typeof M=="function"?M.apply(this,arguments):M;return n(w(b(B,K),A,L),I,s)},v,T)},p.translateBy=function(h,M,v,T){p.transform(h,function(){return n(this.__zoom.translate(typeof M=="function"?M.apply(this,arguments):M,typeof v=="function"?v.apply(this,arguments):v),t.apply(this,arguments),s)},null,T)},p.translateTo=function(h,M,v,T,I){p.transform(h,function(){var B=t.apply(this,arguments),A=this.__zoom,L=T==null?C(B):typeof T=="function"?T.apply(this,arguments):T;return n(Zt.translate(L[0],L[1]).scale(A.k).translate(typeof M=="function"?-M.apply(this,arguments):-M,typeof v=="function"?-v.apply(this,arguments):-v),B,s)},T,I)};function b(h,M){return M=Math.max(r[0],Math.min(r[1],M)),M===h.k?h:new nt(M,h.x,h.y)}function w(h,M,v){var T=M[0]-v[0]*h.k,I=M[1]-v[1]*h.k;return T===h.x&&I===h.y?h:new nt(h.k,T,I)}function C(h){return[(+h[0][0]+ +h[1][0])/2,(+h[0][1]+ +h[1][1])/2]}function P(h,M,v,T){h.on("start.zoom",function(){z(this,arguments).event(T).start()}).on("interrupt.zoom end.zoom",function(){z(this,arguments).event(T).end()}).tween("zoom",function(){var I=this,B=arguments,A=z(I,B).event(T),L=t.apply(I,B),K=v==null?C(L):typeof v=="function"?v.apply(I,B):v,ee=Math.max(L[1][0]-L[0][0],L[1][1]-L[0][1]),Y=I.__zoom,U=typeof M=="function"?M.apply(I,B):M,Q=l(Y.invert(K).concat(ee/Y.k),U.invert(K).concat(ee/U.k));return function(se){if(se===1)se=U;else{var ue=Q(se),ae=ee/ue[2];se=new nt(ae,K[0]-ue[0]*ae,K[1]-ue[1]*ae)}A.zoom(null,se)}})}function z(h,M,v){return!v&&h.__zooming||new D(h,M)}function D(h,M){this.that=h,this.args=M,this.active=0,this.sourceEvent=null,this.extent=t.apply(h,M),this.taps=0}D.prototype={event:function(h){return h&&(this.sourceEvent=h),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(h,M){return this.mouse&&h!=="mouse"&&(this.mouse[1]=M.invert(this.mouse[0])),this.touch0&&h!=="touch"&&(this.touch0[1]=M.invert(this.touch0[0])),this.touch1&&h!=="touch"&&(this.touch1[1]=M.invert(this.touch1[0])),this.that.__zoom=M,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(h){var M=Fe(this.that).datum();u.call(h,this.that,new Af(h,{sourceEvent:this.sourceEvent,target:p,transform:this.that.__zoom,dispatch:u}),M)}};function V(h,...M){if(!e.apply(this,arguments))return;var v=z(this,M).event(h),T=this.__zoom,I=Math.max(r[0],Math.min(r[1],T.k*Math.pow(2,o.apply(this,arguments)))),B=We(h);if(v.wheel)(v.mouse[0][0]!==B[0]||v.mouse[0][1]!==B[1])&&(v.mouse[1]=T.invert(v.mouse[0]=B)),clearTimeout(v.wheel);else{if(T.k===I)return;v.mouse=[B,T.invert(B)],Qn(this),v.start()}nn(h),v.wheel=setTimeout(A,$),v.zoom("mouse",n(w(b(T,I),v.mouse[0],v.mouse[1]),v.extent,s));function A(){v.wheel=null,v.end()}}function R(h,...M){if(f||!e.apply(this,arguments))return;var v=h.currentTarget,T=z(this,M,!0).event(h),I=Fe(h.view).on("mousemove.zoom",K,!0).on("mouseup.zoom",ee,!0),B=We(h,v),A=h.clientX,L=h.clientY;Ds(h.view),Lo(h),T.mouse=[B,this.__zoom.invert(B)],Qn(this),T.start();function K(Y){if(nn(Y),!T.moved){var U=Y.clientX-A,Q=Y.clientY-L;T.moved=U*U+Q*Q>y}T.event(Y).zoom("mouse",n(w(T.that.__zoom,T.mouse[0]=We(Y,v),T.mouse[1]),T.extent,s))}function ee(Y){I.on("mousemove.zoom mouseup.zoom",null),Bs(Y.view,T.moved),nn(Y),T.event(Y).end()}}function O(h,...M){if(e.apply(this,arguments)){var v=this.__zoom,T=We(h.changedTouches?h.changedTouches[0]:h,this),I=v.invert(T),B=v.k*(h.shiftKey?.5:2),A=n(w(b(v,B),T,I),t.apply(this,M),s);nn(h),a>0?Fe(this).transition().duration(a).call(P,A,T,h):Fe(this).call(p.transform,A,T,h)}}function F(h,...M){if(e.apply(this,arguments)){var v=h.touches,T=v.length,I=z(this,M,h.changedTouches.length===T).event(h),B,A,L,K;for(Lo(h),A=0;A<T;++A)L=v[A],K=We(L,this),K=[K,this.__zoom.invert(K),L.identifier],I.touch0?!I.touch1&&I.touch0[2]!==K[2]&&(I.touch1=K,I.taps=0):(I.touch0=K,B=!0,I.taps=1+!!c);c&&(c=clearTimeout(c)),B&&(I.taps<2&&(d=K[0],c=setTimeout(function(){c=null},g)),Qn(this),I.start())}}function k(h,...M){if(this.__zooming){var v=z(this,M).event(h),T=h.changedTouches,I=T.length,B,A,L,K;for(nn(h),B=0;B<I;++B)A=T[B],L=We(A,this),v.touch0&&v.touch0[2]===A.identifier?v.touch0[0]=L:v.touch1&&v.touch1[2]===A.identifier&&(v.touch1[0]=L);if(A=v.that.__zoom,v.touch1){var ee=v.touch0[0],Y=v.touch0[1],U=v.touch1[0],Q=v.touch1[1],se=(se=U[0]-ee[0])*se+(se=U[1]-ee[1])*se,ue=(ue=Q[0]-Y[0])*ue+(ue=Q[1]-Y[1])*ue;A=b(A,Math.sqrt(se/ue)),L=[(ee[0]+U[0])/2,(ee[1]+U[1])/2],K=[(Y[0]+Q[0])/2,(Y[1]+Q[1])/2]}else if(v.touch0)L=v.touch0[0],K=v.touch0[1];else return;v.zoom("touch",n(w(A,L,K),v.extent,s))}}function G(h,...M){if(this.__zooming){var v=z(this,M).event(h),T=h.changedTouches,I=T.length,B,A;for(Lo(h),f&&clearTimeout(f),f=setTimeout(function(){f=null},g),B=0;B<I;++B)A=T[B],v.touch0&&v.touch0[2]===A.identifier?delete v.touch0:v.touch1&&v.touch1[2]===A.identifier&&delete v.touch1;if(v.touch1&&!v.touch0&&(v.touch0=v.touch1,delete v.touch1),v.touch0)v.touch0[1]=this.__zoom.invert(v.touch0[0]);else if(v.end(),v.taps===2&&(A=We(A,this),Math.hypot(d[0]-A[0],d[1]-A[1])<m)){var L=Fe(this).on("dblclick.zoom");L&&L.apply(this,arguments)}}}return p.wheelDelta=function(h){return arguments.length?(o=typeof h=="function"?h:On(+h),p):o},p.filter=function(h){return arguments.length?(e=typeof h=="function"?h:On(!!h),p):e},p.touchable=function(h){return arguments.length?(i=typeof h=="function"?h:On(!!h),p):i},p.extent=function(h){return arguments.length?(t=typeof h=="function"?h:On([[+h[0][0],+h[0][1]],[+h[1][0],+h[1][1]]]),p):t},p.scaleExtent=function(h){return arguments.length?(r[0]=+h[0],r[1]=+h[1],p):[r[0],r[1]]},p.translateExtent=function(h){return arguments.length?(s[0][0]=+h[0][0],s[1][0]=+h[1][0],s[0][1]=+h[0][1],s[1][1]=+h[1][1],p):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},p.constrain=function(h){return arguments.length?(n=h,p):n},p.duration=function(h){return arguments.length?(a=+h,p):a},p.interpolate=function(h){return arguments.length?(l=h,p):l},p.on=function(){var h=u.on.apply(u,arguments);return h===u?p:h},p.clickDistance=function(h){return arguments.length?(y=(h=+h)*h,p):Math.sqrt(y)},p.tapDistance=function(h){return arguments.length?(m=+h,p):m},p}var te=(e=>(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(te||{}),Bi=(e=>(e.Partial="partial",e.Full="full",e))(Bi||{}),Ct=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(Ct||{}),$t=(e=>(e.Strict="strict",e.Loose="loose",e))($t||{}),di=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(di||{}),fn=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(fn||{});const Hf=["INPUT","SELECT","TEXTAREA"];function fi(e){var t,n;const o=((n=(t=e.composedPath)==null?void 0:t.call(e))==null?void 0:n[0])||e.target,i=typeof(o==null?void 0:o.hasAttribute)=="function"?o.hasAttribute("contenteditable"):!1,r=typeof(o==null?void 0:o.closest)=="function"?o.closest(".nokey"):null;return Hf.includes(o==null?void 0:o.nodeName)||i||!!r}function Ff(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function xr(e,t,n,o){const i=t.replace("+",`
|
|
2
2
|
`).replace(`
|
|
3
3
|
|
|
4
4
|
`,`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ht}from"./
|
|
1
|
+
import{g as Ht}from"./BQFJwqXj.js";import{_ as m,o as Mt,l as t1,c as b1,d as O1,p as Xt,r as Qt,u as rt,b as Jt,s as Zt,q as $t,a as te,g as ee,t as se,k as ie,v as re,J as ae,x as ne,y as it,z as ue,A as oe,B as le,C as ce}from"./BXp87mMj.js";import{c as he}from"./B_J4rjuT.js";import{g as de}from"./MC96ynYQ.js";import{s as pe}from"./e04t7nee.js";import{c as fe}from"./BOZgY48g.js";import"./BfSmOVMj.js";var ge="flowchart-",G1,be=(G1=class{constructor(){this.vertexCounter=0,this.config=b1(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Jt,this.setAccDescription=Zt,this.setDiagramTitle=$t,this.getAccTitle=te,this.getAccDescription=ee,this.getDiagramTitle=se,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return ie.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}lookUpDomId(i){for(const n of this.vertices.values())if(n.id===i)return n.domId;return i}addVertex(i,n,a,u,o,f,c={},A){var L,C;if(!i||i.trim().length===0)return;let r;if(A!==void 0){let d;A.includes(`
|
|
2
2
|
`)?d=A+`
|
|
3
3
|
`:d=`{
|
|
4
4
|
`+A+`
|