@oneclick.dev/cms-kit 0.0.78 → 0.0.80

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.
@@ -0,0 +1,82 @@
1
+ import{useId as t,Primitive as e,createContext as n}from"reka-ui";import{computed as r,onMounted as o,nextTick as i,watch as a,customRef as s,isRef as l,reactive as c,unref as u,getCurrentInstance as h,getCurrentScope as f,hasInjectionContext as d,inject as p,onScopeDispose as g,readonly as m,toRef as v,ref as y,toRefs as b,toValue as w,h as x,render as _,defineComponent as k,openBlock as C,createBlock as M,withCtx as S,createTextVNode as A,toDisplayString as T,createCommentVNode as N,createElementBlock as E,normalizeStyle as D,normalizeClass as $,renderSlot as O,createVNode as P,Fragment as z,renderList as j,resolveDynamicComponent as F,createElementVNode as U,camelize as H,onUnmounted as I}from"vue";function Y(t,e,n={}){let r,o,i,l=!0;const c=()=>{l=!0,i()};a(t,c,{flush:"sync",...n});const u="function"==typeof e?e:e.get,h="function"==typeof e?void 0:e.set,f=s((t,e)=>(o=t,i=e,{get:()=>(l&&(r=u(r),l=!1),o(),r),set(t){null==h||h(t)}}));return f.trigger=c,f}function L(t,e){return!!f()&&(g(t,e),!0)}const B=/* @__PURE__ */new WeakMap,R=(...t)=>{var e;const n=t[0],r=null===(e=h())||void 0===e?void 0:e.proxy,o=null!=r?r:f();if(null==o&&!d())throw new Error("injectLocal must be called in setup");return o&&B.has(o)&&n in B.get(o)?B.get(o)[n]:p(...t)},W="undefined"!=typeof window&&"undefined"!=typeof document;"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope);const G=t=>void 0!==t,q=Object.prototype.toString,X=t=>"[object Object]"===q.call(t),V=()=>{};const K=t=>t();function Z(t=K,e={}){const{initialState:n="active"}=e,r=function(...t){if(1!==t.length)return v(...t);const e=t[0];return"function"==typeof e?m(s(()=>({get:e,set:V}))):y(e)}("active"===n);return{isActive:m(r),pause:function(){r.value=!1},resume:function(){r.value=!0},eventFilter:(...e)=>{r.value&&t(...e)}}}function Q(t){return t.endsWith("rem")?16*Number.parseFloat(t):Number.parseFloat(t)}function J(t){return Array.isArray(t)?t:[t]}function tt(t){return e=r(t),l(e)?c(new Proxy({},{get:(t,n,r)=>u(Reflect.get(e.value,n,r)),set:(t,n,r)=>(l(e.value[n])&&!l(r)?e.value[n].value=r:e.value[n]=r,!0),deleteProperty:(t,n)=>Reflect.deleteProperty(e.value,n),has:(t,n)=>Reflect.has(e.value,n),ownKeys:()=>Object.keys(e.value),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})})):c(e);var e}function et(t,...e){const n=e.flat(),r=n[0];return tt(()=>"function"==typeof r?Object.fromEntries(Object.entries(b(t)).filter(([t,e])=>!r(w(e),t))):Object.fromEntries(Object.entries(b(t)).filter(t=>!n.includes(t[0]))))}function nt(t,e,n={}){const{eventFilter:r=K,...o}=n;return a(t,(i=r,s=e,function(...t){return new Promise((e,n)=>{Promise.resolve(i(()=>s.apply(this,t),{fn:s,thisArg:this,args:t})).then(e).catch(n)})}),o);var i,s}function rt(t,e,n={}){const{eventFilter:r,initialState:o="active",...i}=n,{eventFilter:a,pause:s,resume:l,isActive:c}=Z(r,{initialState:o});return{stop:nt(t,e,{...i,eventFilter:a}),pause:s,resume:l,isActive:c}}function ot(t,e=!0,n){h()?o(t,n):e?t():i(t)}function it(t,e,n){return a(t,e,{...n,immediate:!0})}const at=/* @__PURE__ */new Map;function st(e,n,r){if(!W)return;const o=t();return(t,i)=>{const a="data"in t?t.data:t,s=`${o}-${l=a,JSON.stringify(l,Object.keys(l).sort())}`;var l;const c=at.get(s);if(c)return c;const u=x(n,{...r,payload:a,config:e,x:i}),h=document.createElement("div");return _(u,h),at.set(s,h.innerHTML),h.innerHTML}}function lt(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=lt(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}const ct=(t=/* @__PURE__ */new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),ut="-",ht=[],ft=t=>{const e=gt(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:t=>{if(t.startsWith("[")&&t.endsWith("]"))return pt(t);const n=t.split(ut),r=""===n[0]&&n.length>1?1:0;return dt(n,r,e)},getConflictingClassGroupIds:(t,e)=>{if(e){const e=r[t],o=n[t];return e?o?((t,e)=>{const n=new Array(t.length+e.length);for(let r=0;r<t.length;r++)n[r]=t[r];for(let r=0;r<e.length;r++)n[t.length+r]=e[r];return n})(o,e):e:o||ht}return n[t]||ht}}},dt=(t,e,n)=>{if(0===t.length-e)return n.classGroupId;const r=t[e],o=n.nextPart.get(r);if(o){const n=dt(t,e+1,o);if(n)return n}const i=n.validators;if(null===i)return;const a=0===e?t.join(ut):t.slice(e).join(ut),s=i.length;for(let l=0;l<s;l++){const t=i[l];if(t.validator(a))return t.classGroupId}},pt=t=>-1===t.slice(1,-1).indexOf(":")?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),r=e.slice(0,n);return r?"arbitrary.."+r:void 0})(),gt=t=>{const{theme:e,classGroups:n}=t;return mt(n,e)},mt=(t,e)=>{const n=ct();for(const r in t){const o=t[r];vt(o,n,r,e)}return n},vt=(t,e,n,r)=>{const o=t.length;for(let i=0;i<o;i++){const o=t[i];yt(o,e,n,r)}},yt=(t,e,n,r)=>{"string"!=typeof t?"function"!=typeof t?xt(t,e,n,r):wt(t,e,n,r):bt(t,e,n)},bt=(t,e,n)=>{(""===t?e:_t(e,t)).classGroupId=n},wt=(t,e,n,r)=>{kt(t)?vt(t(r),e,n,r):(null===e.validators&&(e.validators=[]),e.validators.push(((t,e)=>({classGroupId:t,validator:e}))(n,t)))},xt=(t,e,n,r)=>{const o=Object.entries(t),i=o.length;for(let a=0;a<i;a++){const[t,i]=o[a];vt(i,_t(e,t),n,r)}},_t=(t,e)=>{let n=t;const r=e.split(ut),o=r.length;for(let i=0;i<o;i++){const t=r[i];let e=n.nextPart.get(t);e||(e=ct(),n.nextPart.set(t,e)),n=e}return n},kt=t=>"isThemeGetter"in t&&!0===t.isThemeGetter,Ct=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=/* @__PURE__ */Object.create(null),r=/* @__PURE__ */Object.create(null);const o=(o,i)=>{n[o]=i,e++,e>t&&(e=0,r=n,n=/* @__PURE__ */Object.create(null))};return{get(t){let e=n[t];return void 0!==e?e:void 0!==(e=r[t])?(o(t,e),e):void 0},set(t,e){t in n?n[t]=e:o(t,e)}}},Mt=[],St=(t,e,n,r,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),At=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=t=>{const e=[];let n,r=0,o=0,i=0;const a=t.length;for(let u=0;u<a;u++){const a=t[u];if(0===r&&0===o){if(":"===a){e.push(t.slice(i,u)),i=u+1;continue}if("/"===a){n=u;continue}}"["===a?r++:"]"===a?r--:"("===a?o++:")"===a&&o--}const s=0===e.length?t:t.slice(i);let l=s,c=!1;s.endsWith("!")?(l=s.slice(0,-1),c=!0):s.startsWith("!")&&(l=s.slice(1),c=!0);return St(e,c,l,n&&n>i?n-i:void 0)};if(e){const t=e+":",n=r;r=e=>e.startsWith(t)?n(e.slice(t.length)):St(Mt,!1,e,void 0,!0)}if(n){const t=r;r=e=>n({className:e,parseClassName:t})}return r},Tt=t=>{const e=/* @__PURE__ */new Map;return t.orderSensitiveModifiers.forEach((t,n)=>{e.set(t,1e6+n)}),t=>{const n=[];let r=[];for(let o=0;o<t.length;o++){const i=t[o],a="["===i[0],s=e.has(i);a||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(i)):r.push(i)}return r.length>0&&(r.sort(),n.push(...r)),n}},Nt=/\s+/,Et=t=>{if("string"==typeof t)return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=Et(t[r]))&&(n&&(n+=" "),n+=e);return n},Dt=[],$t=t=>{const e=e=>e[t]||Dt;return e.isThemeGetter=!0,e},Ot=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Pt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zt=/^\d+\/\d+$/,jt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ft=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ut=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ht=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,It=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yt=t=>zt.test(t),Lt=t=>!!t&&!Number.isNaN(Number(t)),Bt=t=>!!t&&Number.isInteger(Number(t)),Rt=t=>t.endsWith("%")&&Lt(t.slice(0,-1)),Wt=t=>jt.test(t),Gt=()=>!0,qt=t=>Ft.test(t)&&!Ut.test(t),Xt=()=>!1,Vt=t=>Ht.test(t),Kt=t=>It.test(t),Zt=t=>!Jt(t)&&!ie(t),Qt=t=>fe(t,me,Xt),Jt=t=>Ot.test(t),te=t=>fe(t,ve,qt),ee=t=>fe(t,ye,Lt),ne=t=>fe(t,pe,Xt),re=t=>fe(t,ge,Kt),oe=t=>fe(t,we,Vt),ie=t=>Pt.test(t),ae=t=>de(t,ve),se=t=>de(t,be),le=t=>de(t,pe),ce=t=>de(t,me),ue=t=>de(t,ge),he=t=>de(t,we,!0),fe=(t,e,n)=>{const r=Ot.exec(t);return!!r&&(r[1]?e(r[1]):n(r[2]))},de=(t,e,n=!1)=>{const r=Pt.exec(t);return!!r&&(r[1]?e(r[1]):n)},pe=t=>"position"===t||"percentage"===t,ge=t=>"image"===t||"url"===t,me=t=>"length"===t||"size"===t||"bg-size"===t,ve=t=>"length"===t,ye=t=>"number"===t,be=t=>"family-name"===t,we=t=>"shadow"===t,xe=/* @__PURE__ */((t,...e)=>{let n,r,o,i;const a=t=>{const e=r(t);if(e)return e;const i=((t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=e,a=[],s=t.trim().split(Nt);let l="";for(let c=s.length-1;c>=0;c-=1){const t=s[c],{isExternal:e,modifiers:u,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:d}=n(t);if(e){l=t+(l.length>0?" "+l:l);continue}let p=!!d,g=r(p?f.substring(0,d):f);if(!g){if(!p){l=t+(l.length>0?" "+l:l);continue}if(g=r(f),!g){l=t+(l.length>0?" "+l:l);continue}p=!1}const m=0===u.length?"":1===u.length?u[0]:i(u).join(":"),v=h?m+"!":m,y=v+g;if(a.indexOf(y)>-1)continue;a.push(y);const b=o(g,p);for(let n=0;n<b.length;++n){const t=b[n];a.push(v+t)}l=t+(l.length>0?" "+l:l)}return l})(t,n);return o(t,i),i};return i=s=>{const l=e.reduce((t,e)=>e(t),t());return n=(t=>({cache:Ct(t.cacheSize),parseClassName:At(t),sortModifiers:Tt(t),...ft(t)}))(l),r=n.cache.get,o=n.cache.set,i=a,a(s)},(...t)=>i(((...t)=>{let e,n,r=0,o="";for(;r<t.length;)(e=t[r++])&&(n=Et(e))&&(o&&(o+=" "),o+=n);return o})(...t))})(()=>{const t=$t("color"),e=$t("font"),n=$t("text"),r=$t("font-weight"),o=$t("tracking"),i=$t("leading"),a=$t("breakpoint"),s=$t("container"),l=$t("spacing"),c=$t("radius"),u=$t("shadow"),h=$t("inset-shadow"),f=$t("text-shadow"),d=$t("drop-shadow"),p=$t("blur"),g=$t("perspective"),m=$t("aspect"),v=$t("ease"),y=$t("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ie,Jt],w=()=>[ie,Jt,l],x=()=>[Yt,"full","auto",...w()],_=()=>[Bt,"none","subgrid",ie,Jt],k=()=>["auto",{span:["full",Bt,ie,Jt]},Bt,ie,Jt],C=()=>[Bt,"auto",ie,Jt],M=()=>["auto","min","max","fr",ie,Jt],S=()=>["auto",...w()],A=()=>[Yt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],T=()=>[t,ie,Jt],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",le,ne,{position:[ie,Jt]}],E=()=>["auto","cover","contain",ce,Qt,{size:[ie,Jt]}],D=()=>[Rt,ae,te],$=()=>["","none","full",c,ie,Jt],O=()=>["",Lt,ae,te],P=()=>[Lt,Rt,le,ne],z=()=>["","none",p,ie,Jt],j=()=>["none",Lt,ie,Jt],F=()=>["none",Lt,ie,Jt],U=()=>[Lt,ie,Jt],H=()=>[Yt,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Wt],breakpoint:[Wt],color:[Gt],container:[Wt],"drop-shadow":[Wt],ease:["in","out","in-out"],font:[Zt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Wt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Wt],shadow:[Wt],spacing:["px",Lt],text:[Wt],"text-shadow":[Wt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Yt,Jt,ie,m]}],container:["container"],columns:[{columns:[Lt,Jt,ie,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{start:x()}],end:[{end:x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[Bt,"auto",ie,Jt]}],basis:[{basis:[Yt,"full","auto",s,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Lt,Yt,"auto","initial","none",Jt]}],grow:[{grow:["",Lt,ie,Jt]}],shrink:[{shrink:["",Lt,ie,Jt]}],order:[{order:[Bt,"first","last","none",ie,Jt]}],"grid-cols":[{"grid-cols":_()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":_()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":M()}],"auto-rows":[{"auto-rows":M()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:A()}],w:[{w:[s,"screen",...A()]}],"min-w":[{"min-w":[s,"screen","none",...A()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...A()]}],h:[{h:["screen","lh",...A()]}],"min-h":[{"min-h":["screen","lh","none",...A()]}],"max-h":[{"max-h":["screen","lh",...A()]}],"font-size":[{text:["base",n,ae,te]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ie,ee]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Rt,Jt]}],"font-family":[{font:[se,Jt,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ie,Jt]}],"line-clamp":[{"line-clamp":[Lt,"none",ie,ee]}],leading:[{leading:[i,...w()]}],"list-image":[{"list-image":["none",ie,Jt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,Jt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Lt,"from-font","auto",ie,te]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[Lt,"auto",ie,Jt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,Jt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie,Jt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:E()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Bt,ie,Jt],radial:["",ie,Jt],conic:[Bt,ie,Jt]},ue,re]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:O()}],"border-w-x":[{"border-x":O()}],"border-w-y":[{"border-y":O()}],"border-w-s":[{"border-s":O()}],"border-w-e":[{"border-e":O()}],"border-w-t":[{"border-t":O()}],"border-w-r":[{"border-r":O()}],"border-w-b":[{"border-b":O()}],"border-w-l":[{"border-l":O()}],"divide-x":[{"divide-x":O()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":O()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Lt,ie,Jt]}],"outline-w":[{outline:["",Lt,ae,te]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",u,he,oe]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",h,he,oe]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[Lt,te]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":O()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",f,he,oe]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[Lt,ie,Jt]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Lt]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[ie,Jt]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Lt]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:E()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,Jt]}],filter:[{filter:["","none",ie,Jt]}],blur:[{blur:z()}],brightness:[{brightness:[Lt,ie,Jt]}],contrast:[{contrast:[Lt,ie,Jt]}],"drop-shadow":[{"drop-shadow":["","none",d,he,oe]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",Lt,ie,Jt]}],"hue-rotate":[{"hue-rotate":[Lt,ie,Jt]}],invert:[{invert:["",Lt,ie,Jt]}],saturate:[{saturate:[Lt,ie,Jt]}],sepia:[{sepia:["",Lt,ie,Jt]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,Jt]}],"backdrop-blur":[{"backdrop-blur":z()}],"backdrop-brightness":[{"backdrop-brightness":[Lt,ie,Jt]}],"backdrop-contrast":[{"backdrop-contrast":[Lt,ie,Jt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Lt,ie,Jt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Lt,ie,Jt]}],"backdrop-invert":[{"backdrop-invert":["",Lt,ie,Jt]}],"backdrop-opacity":[{"backdrop-opacity":[Lt,ie,Jt]}],"backdrop-saturate":[{"backdrop-saturate":[Lt,ie,Jt]}],"backdrop-sepia":[{"backdrop-sepia":["",Lt,ie,Jt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,Jt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Lt,"initial",ie,Jt]}],ease:[{ease:["linear","initial",v,ie,Jt]}],delay:[{delay:[Lt,ie,Jt]}],animate:[{animate:["none",y,ie,Jt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,ie,Jt]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:j()}],"rotate-x":[{"rotate-x":j()}],"rotate-y":[{"rotate-y":j()}],"rotate-z":[{"rotate-z":j()}],scale:[{scale:F()}],"scale-x":[{"scale-x":F()}],"scale-y":[{"scale-y":F()}],"scale-z":[{"scale-z":F()}],"scale-3d":["scale-3d"],skew:[{skew:U()}],"skew-x":[{"skew-x":U()}],"skew-y":[{"skew-y":U()}],transform:[{transform:[ie,Jt,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:H()}],"translate-x":[{"translate-x":H()}],"translate-y":[{"translate-y":H()}],"translate-z":[{"translate-z":H()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie,Jt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie,Jt]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[Lt,ae,te,ee]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function _e(...t){return xe(function(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=lt(t))&&(r&&(r+=" "),r+=e);return r}(t))}function ke(t){if(!t)return"0 B";t=Number(t),t=parseFloat(t.toString());const e=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let n=0;for(;t>=1024&&n<e.length-1;)t/=1024,n++;return`${t.toFixed(2)} ${e[n]}`}const Ce=/* @__PURE__ */k({__name:"ChartStyle",props:{id:{}},setup(t){const{config:n}=$h(),o=r(()=>Object.entries(n.value).filter(([,t])=>t.theme||t.color));return(n,r)=>o.value.length?(C(),M(u(e),{key:0,as:"style"},{default:S(()=>[A(T(Object.entries(u(Dh)).map(([e,n])=>`\n${n} [data-chart=${t.id}] {\n${o.value.map(([t,n])=>{const r=n.theme?.[e]||n.color;return r?` --color-${t}: ${r};`:null}).join("\n")}\n}\n`).join("\n")),1)]),_:1})):N("",!0)}}),Me=["data-chart"],Se=/* @__PURE__ */k({__name:"ChartContainer",props:{id:{},class:{},config:{},cursor:{type:Boolean}},setup(e){const n=e,{config:o}=b(n),i=t(),a=r(()=>`chart-${n.id||i.replace(/:/g,"")}`);return Oh({id:i,config:o}),(t,r)=>(C(),E("div",{"data-slot":"chart","data-chart":a.value,class:$(u(_e)("[&_.tick_text]:!fill-muted-foreground [&_.tick_line]:!stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex flex-col aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden [&_[data-vis-xy-container]]:h-full [&_[data-vis-single-container]]:h-full h-full [&_[data-vis-xy-container]]:w-full [&_[data-vis-single-container]]:w-full w-full ",n.class)),style:D({"--vis-tooltip-padding":"0px","--vis-tooltip-background-color":"transparent","--vis-tooltip-border-color":"transparent","--vis-tooltip-text-color":"none","--vis-tooltip-shadow-color":"none","--vis-tooltip-backdrop-filter":"none","--vis-crosshair-circle-stroke-color":"#0000","--vis-crosshair-line-stroke-width":e.cursor?"1px":"0px","--vis-font-family":"var(--font-sans)"})},[O(t.$slots,"default",{id:u(i),config:u(o)}),P(Ce,{id:a.value},null,8,["id"])],14,Me))}}),Ae=/* @__PURE__ */k({__name:"ChartLegendContent",props:{hideIcon:{type:Boolean},nameKey:{},verticalAlign:{default:"bottom"},class:{}},setup(t){const e=t,{id:n,config:i}=$h(),a=r(()=>Object.entries(i.value).map(([t,n])=>({key:e.nameKey||t,itemConfig:i.value[t]}))),s=y("");return o(()=>{s.value=`[data-chart="chart-${n}"]>[data-vis-xy-container]`}),(n,r)=>s.value?(C(),E("div",{key:0,class:$(u(_e)("flex items-center justify-center gap-4","top"===t.verticalAlign?"pb-3":"pt-3",e.class))},[(C(!0),E(z,null,j(a.value,({key:t,itemConfig:e})=>(C(),E("div",{key:t,class:$(u(_e)("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"))},[e?.icon?(C(),M(F(e.icon),{key:0})):(C(),E("div",{key:1,class:"h-2 w-2 shrink-0 rounded-[2px]",style:D({backgroundColor:e.color})},null,4)),A(" "+T(e?.label),1)],2))),128))],2)):N("",!0)}}),Te={key:0,class:"font-medium"},Ne={class:"grid gap-1.5"},Ee={class:"grid gap-1.5"},De={key:0,class:"font-medium"},$e={class:"text-muted-foreground"},Oe={key:0,class:"text-foreground font-mono font-medium tabular-nums"},Pe=/* @__PURE__ */k({__name:"ChartTooltipContent",props:{hideLabel:{type:Boolean},hideIndicator:{type:Boolean},indicator:{default:"dot"},nameKey:{},labelKey:{},labelFormatter:{},payload:{default:()=>({})},config:{default:()=>({})},class:{},color:{},x:{}},setup(t){const e=t,n=r(()=>Object.entries(e.payload).map(([t,n])=>({key:t,value:n,itemConfig:e.config[t],indicatorColor:e.config[t]?.color??e.payload.fill})).filter(t=>t.itemConfig)),o=r(()=>1===Object.keys(e.payload).length&&"dot"!==e.indicator),i=r(()=>e.hideLabel?null:e.labelFormatter&&void 0!==e.x?e.labelFormatter(e.x):e.labelKey?e.config[e.labelKey]?.label||e.payload[e.labelKey]:e.x);return(r,a)=>(C(),E("div",{class:$(u(_e)("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",e.class))},[O(r.$slots,"default",{},()=>[!o.value&&i.value?(C(),E("div",Te,T(i.value),1)):N("",!0),U("div",Ne,[(C(!0),E(z,null,j(n.value,({value:e,itemConfig:n,indicatorColor:r,key:a})=>(C(),E("div",{key:a,class:$(u(_e)("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5","dot"===t.indicator&&"items-center"))},[n?.icon?(C(),M(F(n.icon),{key:0})):t.hideIndicator?N("",!0):(C(),E("div",{key:1,class:$(u(_e)("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":"dot"===t.indicator,"w-1":"line"===t.indicator,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===t.indicator,"my-0.5":o.value&&"dashed"===t.indicator})),style:D({"--color-bg":r,"--color-border":r})},null,6)),U("div",{class:$(u(_e)("flex flex-1 justify-between leading-none",o.value?"items-end":"items-center"))},[U("div",Ee,[o.value?(C(),E("div",De,T(i.value),1)):N("",!0),U("span",$e,T(n?.label||e),1)]),e?(C(),E("span",Oe,T(e.toLocaleString()),1)):N("",!0)],2)],2))),128))])])],2))}});var ze="http://www.w3.org/1999/xhtml";const je={svg:"http://www.w3.org/2000/svg",xhtml:ze,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Fe(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),je.hasOwnProperty(e)?{space:je[e],local:t}:t}function Ue(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===ze&&e.documentElement.namespaceURI===ze?e.createElement(t):e.createElementNS(n,t)}}function He(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ie(t){var e=Fe(t);return(e.local?He:Ue)(e)}function Ye(){}function Le(t){return null==t?Ye:function(){return this.querySelector(t)}}function Be(){return[]}function Re(t){return null==t?Be:function(){return this.querySelectorAll(t)}}function We(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e);var e}}function Ge(t){return function(){return this.matches(t)}}function qe(t){return function(e){return e.matches(t)}}var Xe=Array.prototype.find;function Ve(){return this.firstElementChild}var Ke=Array.prototype.filter;function Ze(){return Array.from(this.children)}function Qe(t){return new Array(t.length)}function Je(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function tn(t,e,n,r,o,i){for(var a,s=0,l=e.length,c=i.length;s<c;++s)(a=e[s])?(a.__data__=i[s],r[s]=a):n[s]=new Je(t,i[s]);for(;s<l;++s)(a=e[s])&&(o[s]=a)}function en(t,e,n,r,o,i,a){var s,l,c,u=/* @__PURE__ */new Map,h=e.length,f=i.length,d=new Array(h);for(s=0;s<h;++s)(l=e[s])&&(d[s]=c=a.call(l,l.__data__,s,e)+"",u.has(c)?o[s]=l:u.set(c,l));for(s=0;s<f;++s)c=a.call(t,i[s],s,i)+"",(l=u.get(c))?(r[s]=l,l.__data__=i[s],u.delete(c)):n[s]=new Je(t,i[s]);for(s=0;s<h;++s)(l=e[s])&&u.get(d[s])===l&&(o[s]=l)}function nn(t){return t.__data__}function rn(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function on(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function an(t){return function(){this.removeAttribute(t)}}function sn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ln(t,e){return function(){this.setAttribute(t,e)}}function cn(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function un(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function hn(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function fn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function dn(t){return function(){this.style.removeProperty(t)}}function pn(t,e,n){return function(){this.style.setProperty(t,e,n)}}function gn(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function mn(t,e){return t.style.getPropertyValue(e)||fn(t).getComputedStyle(t,null).getPropertyValue(e)}function vn(t){return function(){delete this[t]}}function yn(t,e){return function(){this[t]=e}}function bn(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function wn(t){return t.trim().split(/^|\s+/)}function xn(t){return t.classList||new _n(t)}function _n(t){this._node=t,this._names=wn(t.getAttribute("class")||"")}function kn(t,e){for(var n=xn(t),r=-1,o=e.length;++r<o;)n.add(e[r])}function Cn(t,e){for(var n=xn(t),r=-1,o=e.length;++r<o;)n.remove(e[r])}function Mn(t){return function(){kn(this,t)}}function Sn(t){return function(){Cn(this,t)}}function An(t,e){return function(){(e.apply(this,arguments)?kn:Cn)(this,t)}}function Tn(){this.textContent=""}function Nn(t){return function(){this.textContent=t}}function En(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Dn(){this.innerHTML=""}function $n(t){return function(){this.innerHTML=t}}function On(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Pn(){this.nextSibling&&this.parentNode.appendChild(this)}function zn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function jn(){return null}function Fn(){var t=this.parentNode;t&&t.removeChild(this)}function Un(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Hn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function In(t){return function(){var e=this.__on;if(e){for(var n,r=0,o=-1,i=e.length;r<i;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?e.length=o:delete this.__on}}}function Yn(t,e,n){return function(){var r,o=this.__on,i=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(o)for(var a=0,s=o.length;a<s;++a)if((r=o[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),void(r.value=e);this.addEventListener(t.type,i,n),r={type:t.type,name:t.name,value:e,listener:i,options:n},o?o.push(r):this.__on=[r]}}function Ln(t,e,n){var r=fn(t),o=r.CustomEvent;"function"==typeof o?o=new o(e,n):(o=r.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function Bn(t,e){return function(){return Ln(this,t,e)}}function Rn(t,e){return function(){return Ln(this,t,e.apply(this,arguments))}}Je.prototype={constructor:Je,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},_n.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Wn,Gn,qn,Xn,Vn=[null];function Kn(t,e){this._groups=t,this._parents=e}function Zn(){return new Kn([[document.documentElement]],Vn)}function Qn(t){return"string"==typeof t?new Kn([[document.querySelector(t)]],[document.documentElement]):new Kn([[t]],Vn)}function Jn(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}function tr(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function er(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function nr(t){let e,n,r;function o(t,r,o=0,i=t.length){if(o<i){if(0!==e(r,r))return i;do{const e=o+i>>>1;n(t[e],r)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=tr,n=(e,n)=>tr(t(e),n),r=(e,n)=>t(e)-n):(e=t===tr||t===er?t:rr,n=t,r=t),{left:o,center:function(t,e,n=0,i=t.length){const a=o(t,e,n,i-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,o=0,i=t.length){if(o<i){if(0!==e(r,r))return i;do{const e=o+i>>>1;n(t[e],r)<=0?o=e+1:i=e}while(o<i)}return o}}}function rr(){return 0}function or(t){return null===t?NaN:+t}Kn.prototype=Zn.prototype={constructor:Kn,select:function(t){"function"!=typeof t&&(t=Le(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var i,a,s=e[o],l=s.length,c=r[o]=new Array(l),u=0;u<l;++u)(i=s[u])&&(a=t.call(i,i.__data__,u,s))&&("__data__"in i&&(a.__data__=i.__data__),c[u]=a);return new Kn(r,this._parents)},selectAll:function(t){t="function"==typeof t?We(t):Re(t);for(var e=this._groups,n=e.length,r=[],o=[],i=0;i<n;++i)for(var a,s=e[i],l=s.length,c=0;c<l;++c)(a=s[c])&&(r.push(t.call(a,a.__data__,c,s)),o.push(a));return new Kn(r,o)},selectChild:function(t){return this.select(null==t?Ve:function(t){return function(){return Xe.call(this.children,t)}}("function"==typeof t?t:qe(t)))},selectChildren:function(t){return this.selectAll(null==t?Ze:function(t){return function(){return Ke.call(this.children,t)}}("function"==typeof t?t:qe(t)))},filter:function(t){"function"!=typeof t&&(t=Ge(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var i,a=e[o],s=a.length,l=r[o]=[],c=0;c<s;++c)(i=a[c])&&t.call(i,i.__data__,c,a)&&l.push(i);return new Kn(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,nn);var n,r=e?en:tn,o=this._parents,i=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=i.length,s=new Array(a),l=new Array(a),c=new Array(a),u=0;u<a;++u){var h=o[u],f=i[u],d=f.length,p=rn(t.call(h,h&&h.__data__,u,o)),g=p.length,m=l[u]=new Array(g),v=s[u]=new Array(g);r(h,f,m,v,c[u]=new Array(d),p,e);for(var y,b,w=0,x=0;w<g;++w)if(y=m[w]){for(w>=x&&(x=w+1);!(b=v[x])&&++x<g;);y._next=b||null}}return(s=new Kn(s,o))._enter=l,s._exit=c,s},enter:function(){return new Kn(this._enter||this._groups.map(Qe),this._parents)},exit:function(){return new Kn(this._exit||this._groups.map(Qe),this._parents)},join:function(t,e,n){var r=this.enter(),o=this,i=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(o=e(o))&&(o=o.selection()),null==n?i.remove():n(i),r&&o?r.merge(o).order():o},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,o=n.length,i=r.length,a=Math.min(o,i),s=new Array(o),l=0;l<a;++l)for(var c,u=n[l],h=r[l],f=u.length,d=s[l]=new Array(f),p=0;p<f;++p)(c=u[p]||h[p])&&(d[p]=c);for(;l<o;++l)s[l]=n[l];return new Kn(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,o=t[e],i=o.length-1,a=o[i];--i>=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=on);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var a,s=n[i],l=s.length,c=o[i]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(e)}return new Kn(o,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],o=0,i=r.length;o<i;++o){var a=r[o];if(a)return a}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var o,i=e[n],a=0,s=i.length;a<s;++a)(o=i[a])&&t.call(o,o.__data__,a,i);return this},attr:function(t,e){var n=Fe(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?sn:an:"function"==typeof e?n.local?hn:un:n.local?cn:ln)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?dn:"function"==typeof e?gn:pn)(t,e,null==n?"":n)):mn(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?vn:"function"==typeof e?bn:yn)(t,e)):this.node()[t]},classed:function(t,e){var n=wn(t+"");if(arguments.length<2){for(var r=xn(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof e?An:e?Mn:Sn)(n,e))},text:function(t){return arguments.length?this.each(null==t?Tn:("function"==typeof t?En:Nn)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Dn:("function"==typeof t?On:$n)(t)):this.node().innerHTML},raise:function(){return this.each(Pn)},lower:function(){return this.each(zn)},append:function(t){var e="function"==typeof t?t:Ie(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:Ie(t),r=null==e?jn:"function"==typeof e?e:Le(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(Fn)},clone:function(t){return this.select(t?Hn:Un)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,o,i=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),a=i.length;if(!(arguments.length<2)){for(s=e?Yn:In,r=0;r<a;++r)this.each(s(i[r],e,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<a;++r)if((o=i[r]).type===l.type&&o.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Rn:Bn)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,o=t[e],i=0,a=o.length;i<a;++i)(r=o[i])&&(yield r)}},(Gn=Wn||(Wn={}))[Gn.SVG=0]="SVG",Gn[Gn.HTML=1]="HTML",(Xn=qn||(qn={})).Fit="fit",Xn.Extend="extend",Xn.FitWidth="fit_width";const ir=nr(tr),ar=ir.right,sr=ir.left;nr(or).center;class lr extends Map{constructor(t,e=ur){if(super(),Object.defineProperties(this,{_intern:{value:/* @__PURE__ */new Map},_key:{value:e}}),null!=t)for(const[n,r]of t)this.set(n,r)}get(t){return super.get(cr(this,t))}has(t){return super.has(cr(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const r=e(n);t.has(r)&&(n=t.get(r),t.delete(r));return n}(this,t))}}function cr({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function ur(t){return null!==t&&"object"==typeof t?t.valueOf():t}const hr=Math.sqrt(50),fr=Math.sqrt(10),dr=Math.sqrt(2);function pr(t,e,n){const r=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=hr?10:i>=fr?5:i>=dr?2:1;let s,l,c;return o<0?(c=Math.pow(10,-o)/a,s=Math.round(t*c),l=Math.round(e*c),s/c<t&&++s,l/c>e&&--l,c=-c):(c=Math.pow(10,o)*a,s=Math.round(t/c),l=Math.round(e/c),s*c<t&&++s,l*c>e&&--l),l<s&&.5<=n&&n<2?pr(t,e,2*n):[s,l,c]}function gr(t,e,n){if(!((n=+n)>0))return[];if((t=+t)===(e=+e))return[t];const r=e<t,[o,i,a]=r?pr(e,t,n):pr(t,e,n);if(!(i>=o))return[];const s=i-o+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(i-c)/-a;else for(let c=0;c<s;++c)l[c]=(i-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(o+c)/-a;else for(let c=0;c<s;++c)l[c]=(o+c)*a;return l}function mr(t,e,n){return pr(t=+t,e=+e,n=+n)[2]}function vr(t,e,n){n=+n;const r=(e=+e)<(t=+t),o=r?mr(e,t,n):mr(t,e,n);return(r?-1:1)*(o<0?1/-o:o)}function yr(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function br(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function wr(t,e,n=or){if((r=t.length)&&!isNaN(e=+e)){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,o=(r-1)*e,i=Math.floor(o),a=+n(t[i],i,t);return a+(+n(t[i+1],i+1,t)-a)*(o-i)}}function xr(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),i=new Array(o);++r<o;)i[r]=t+r*n;return i}var _r,kr;(kr=_r||(_r={})).Left="left",kr.Right="right",kr.Auto="auto";const Cr=t=>"number"==typeof t,Mr=t=>"function"==typeof t,Sr=t=>Array.isArray(t),Ar=t=>"Function"!==t.constructor.name&&"Object"!==t.constructor.name,Tr=t=>(t=>t instanceof Object)(t)&&!Sr(t)&&!Mr(t)&&!Ar(t),Nr=t=>[Object,Array].includes((t||{}).constructor)&&!Object.entries(t||{}).length,Er=(t,e,n=[],r=/* @__PURE__ */new Set)=>{if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;if(r.has(t))return!0;r.add(t);for(let o=0;o<t.length;o++)if(!Er(t[o],e[o],n,r))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if("object"==typeof t&&null!==t&&null!==e){if("object"!=typeof e)return!1;if(t===e)return!0;const o=Object.keys(t).filter(t=>!n.includes(t)),i=Object.keys(e).filter(t=>!n.includes(t));if(o.length!==i.length)return!1;if(r.has(t))return!0;r.add(t);for(const a of o)if(!Er(t[a],e[a],n,r))return!1;return!0}return t===e},Dr=t=>t.flat(),$r=(t,e=/* @__PURE__ */new Map)=>{if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){const n=[];e.set(t,n);for(const r of t)n.push(e.has(r)?e.get(r):$r(r,e));return n}if(Ar(t)){return t}if(t instanceof Object){const n={};e.set(t,n);const r=t;return Object.keys(t).reduce((t,n)=>(t[n]=e.has(r[n])?e.get(r[n]):$r(r[n],e),t),n),n}return t},Or=(t,e,n=/* @__PURE__ */new Map)=>{if(!t||!e)return t;if(t===e)return t;const r=Ar(t)?t:$r(t);return n.has(e)?n.get(e):(n.set(e,r),Object.keys(e).forEach(o=>{"__proto__"!==o&&"constructor"!==o&&(Tr(t[o])&&Tr(e[o])?r[o]=Or(t[o],e[o],n):Ar(e)?r[o]=e:r[o]=$r(e[o]))}),r)},Pr=(t,e,n)=>function(t,e){var n,r={},o=r.noTrailing,i=void 0!==o&&o,a=r.noLeading,s=void 0!==a&&a,l=r.debounceMode,c=void 0===l?void 0:l,u=!1,h=0;function f(){n&&clearTimeout(n)}function d(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var l=this,d=Date.now()-h;function p(){h=Date.now(),e.apply(l,o)}function g(){n=void 0}u||(s||!c||n||p(),f(),void 0===c&&d>t?s?(h=Date.now(),i||(n=setTimeout(c?g:p,t))):p():!0!==i&&(n=setTimeout(c?g:p,void 0===c?t-d:t)))}return d.cancel=function(t){var e=(t||{}).upcomingOnly,n=void 0!==e&&e;f(),u=!n},d}(e,t);function zr(t,e,n){return Mr(e)?e(t,n):e}function jr(t,e,n){return zr(t,e,n)}function Fr(t,e,n){return zr(t,e,n)}function Ur(t){return t.filter(t=>t&&!Cr(t))}function Hr(t,e,n){return Math.min(Math.max(t,e),n)}function Ir(t,...e){if(!t)return[void 0,void 0];if(Sr(e)){let n=0,r=0;return t.forEach((t,o)=>{let i=0,a=0;for(const n of e){const e=Fr(t,n,o)||0;e>=0?i+=e:a+=e}i>r&&(r=i),a<n&&(n=a)}),[n,r]}}function Yr(t,e,n,r){const o=t.map((t,n)=>Fr(t,e,n)||0),i=n.map((e,n)=>{const o=function(t,e){let n=0,r=0;if(void 0===e)for(let o of t)null!=o&&(o=+o)>=o&&(++n,r+=o);else{let o=-1;for(let i of t)null!=(i=e(i,++o,t))&&(i=+i)>=i&&(++n,r+=i)}if(n)return r/n}(t,(t,n)=>Fr(t,e,n)||0);return 0===o&&Array.isArray(r)?r[n]:o<0}),a=n.map(()=>[]);return t.forEach((t,e)=>{let r=o[e],i=o[e];n.forEach((n,o)=>{const s=Fr(t,n,e)||0;s>=0?a[o].push([r,r+=s]):a[o].push([i,i+=s])})}),a.forEach((t,e)=>{t.isMostlyNegative=i[e]}),a}function Lr(t,...e){if(!t)return;return br(t,(t,n)=>br(e,e=>Fr(t,e,n)))}function Br(t,...e){if(!t)return;return yr(t,(t,n)=>yr(e,e=>Fr(t,e,n)))}function Rr(t,...e){return[Lr(t,...e),Br(t,...e)]}function Wr(t,e,n,r=_r.Auto){if(t.length<=1)return t[0];const o=t.map((t,e)=>[t,e]).sort(([t,e],[r,o])=>Fr(t,n,e)-Fr(r,n,o)),i=o.map(([t,e])=>Fr(t,n,e)),a=r===_r.Right?sr(i,e,0,t.length-1):ar(i,e,1,t.length);return r===_r.Right?o[a][0]:r===_r.Left?o[a-1][0]:e-i[a-1]>i[a]-e?o[a][0]:o[a-1][0]}function Gr(t,e,n,r=!1){if(!n)return[];const o=t.filter((t,r)=>{const o=Fr(t,n,r);return o>=e[0]&&o<=e[1]});if(r){if(0===o.length){return[Wr(t,e[0],n,_r.Left),Wr(t,e[1],n,_r.Right)].filter(Boolean)}const r=o[0],i=o[o.length-1],a=t.findIndex(t=>t===r),s=t.findIndex(t=>t===i),l=Math.max(0,a-1),c=Math.min(t.length-1,s+1);return t.slice(l,c+1)}return o}var qr=/* @__PURE__ */function(){function t(t){var e=this;this._insertTag=function(t){var n;n=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,n),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(e);try{n.insertRule(t,n.cssRules.length)}catch(r){}}else e.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach(function(t){var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)}),this.tags=[],this.ctr=0},t}(),Xr="-ms-",Vr="-moz-",Kr="-webkit-",Zr="comm",Qr="rule",Jr="decl",to="@keyframes",eo=Math.abs,no=String.fromCharCode,ro=Object.assign;function oo(t){return t.trim()}function io(t,e,n){return t.replace(e,n)}function ao(t,e){return t.indexOf(e)}function so(t,e){return 0|t.charCodeAt(e)}function lo(t,e,n){return t.slice(e,n)}function co(t){return t.length}function uo(t){return t.length}function ho(t,e){return e.push(t),t}var fo=1,po=1,go=0,mo=0,vo=0,yo="";function bo(t,e,n,r,o,i,a){return{value:t,root:e,parent:n,type:r,props:o,children:i,line:fo,column:po,length:a,return:""}}function wo(t,e){return ro(bo("",null,null,"",null,null,0),t,{length:-t.length},e)}function xo(){return vo=mo>0?so(yo,--mo):0,po--,10===vo&&(po=1,fo--),vo}function _o(){return vo=mo<go?so(yo,mo++):0,po++,10===vo&&(po=1,fo++),vo}function ko(){return so(yo,mo)}function Co(){return mo}function Mo(t,e){return lo(yo,t,e)}function So(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ao(t){return fo=po=1,go=co(yo=t),mo=0,[]}function To(t){return yo="",t}function No(t){return oo(Mo(mo-1,$o(91===t?t+2:40===t?t+1:t)))}function Eo(t){for(;(vo=ko())&&vo<33;)_o();return So(t)>2||So(vo)>3?"":" "}function Do(t,e){for(;--e&&_o()&&!(vo<48||vo>102||vo>57&&vo<65||vo>70&&vo<97););return Mo(t,Co()+(e<6&&32==ko()&&32==_o()))}function $o(t){for(;_o();)switch(vo){case t:return mo;case 34:case 39:34!==t&&39!==t&&$o(vo);break;case 40:41===t&&$o(t);break;case 92:_o()}return mo}function Oo(t,e){for(;_o()&&t+vo!==57&&(t+vo!==84||47!==ko()););return"/*"+Mo(e,mo-1)+"*"+no(47===t?t:_o())}function Po(t){for(;!So(ko());)_o();return Mo(t,mo)}function zo(t){return To(jo("",null,null,null,[""],t=Ao(t),0,[0],t))}function jo(t,e,n,r,o,i,a,s,l){for(var c=0,u=0,h=a,f=0,d=0,p=0,g=1,m=1,v=1,y=0,b="",w=o,x=i,_=r,k=b;m;)switch(p=y,y=_o()){case 40:if(108!=p&&58==so(k,h-1)){-1!=ao(k+=io(No(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=No(y);break;case 9:case 10:case 13:case 32:k+=Eo(p);break;case 92:k+=Do(Co()-1,7);continue;case 47:switch(ko()){case 42:case 47:ho(Uo(Oo(_o(),Co()),e,n),l);break;default:k+="/"}break;case 123*g:s[c++]=co(k)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:-1==v&&(k=io(k,/\f/g,"")),d>0&&co(k)-h&&ho(d>32?Ho(k+";",r,n,h-1):Ho(io(k," ","")+";",r,n,h-2),l);break;case 59:k+=";";default:if(ho(_=Fo(k,e,n,c,u,o,s,b,w=[],x=[],h),i),123===y)if(0===u)jo(k,e,_,_,w,i,h,s,x);else switch(99===f&&110===so(k,3)?100:f){case 100:case 108:case 109:case 115:jo(t,_,_,r&&ho(Fo(t,_,_,0,0,o,s,b,o,w=[],h),x),o,x,h,s,r?w:x);break;default:jo(k,_,_,_,[""],x,0,s,x)}}c=u=d=0,g=v=1,b=k="",h=a;break;case 58:h=1+co(k),d=p;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==xo())continue;switch(k+=no(y),y*g){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(co(k)-1)*v,v=1;break;case 64:45===ko()&&(k+=No(_o())),f=ko(),u=h=co(b=k+=Po(Co())),y++;break;case 45:45===p&&2==co(k)&&(g=0)}}return i}function Fo(t,e,n,r,o,i,a,s,l,c,u){for(var h=o-1,f=0===o?i:[""],d=uo(f),p=0,g=0,m=0;p<r;++p)for(var v=0,y=lo(t,h+1,h=eo(g=a[p])),b=t;v<d;++v)(b=oo(g>0?f[v]+" "+y:io(y,/&\f/g,f[v])))&&(l[m++]=b);return bo(t,e,n,0===o?Qr:s,l,c,u)}function Uo(t,e,n){return bo(t,e,n,Zr,no(vo),lo(t,2,-2),0)}function Ho(t,e,n,r){return bo(t,e,n,Jr,lo(t,0,r),lo(t,r+1,-1),r)}function Io(t,e){for(var n="",r=uo(t),o=0;o<r;o++)n+=e(t[o],o,t,e)||"";return n}function Yo(t,e,n,r){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case Jr:return t.return=t.return||t.value;case Zr:return"";case to:return t.return=t.value+"{"+Io(t.children,r)+"}";case Qr:t.value=t.props.join(",")}return co(n=Io(t.children,r))?t.return=t.value+"{"+n+"}":""}function Lo(t){var e=/* @__PURE__ */Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var Bo=function(t,e,n){for(var r=0,o=0;r=o,o=ko(),38===r&&12===o&&(e[n]=1),!So(o);)_o();return Mo(t,mo)},Ro=function(t,e){return To(function(t,e){var n=-1,r=44;do{switch(So(r)){case 0:38===r&&12===ko()&&(e[n]=1),t[n]+=Bo(mo-1,e,n);break;case 2:t[n]+=No(r);break;case 4:if(44===r){t[++n]=58===ko()?"&\f":"",e[n]=t[n].length;break}default:t[n]+=no(r)}}while(r=_o());return t}(Ao(t),e))},Wo=/* @__PURE__ */new WeakMap,Go=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,n=t.parent,r=t.column===n.column&&t.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||Wo.get(n))&&!r){Wo.set(t,!0);for(var o=[],i=Ro(e,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)t.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},qo=function(t){if("decl"===t.type){var e=t.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(t.return="",t.value="")}};function Xo(t,e){switch(function(t,e){return 45^so(t,0)?(((e<<2^so(t,0))<<2^so(t,1))<<2^so(t,2))<<2^so(t,3):0}(t,e)){case 5103:return Kr+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Kr+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Kr+t+Vr+t+Xr+t+t;case 6828:case 4268:return Kr+t+Xr+t+t;case 6165:return Kr+t+Xr+"flex-"+t+t;case 5187:return Kr+t+io(t,/(\w+).+(:[^]+)/,Kr+"box-$1$2"+Xr+"flex-$1$2")+t;case 5443:return Kr+t+Xr+"flex-item-"+io(t,/flex-|-self/,"")+t;case 4675:return Kr+t+Xr+"flex-line-pack"+io(t,/align-content|flex-|-self/,"")+t;case 5548:return Kr+t+Xr+io(t,"shrink","negative")+t;case 5292:return Kr+t+Xr+io(t,"basis","preferred-size")+t;case 6060:return Kr+"box-"+io(t,"-grow","")+Kr+t+Xr+io(t,"grow","positive")+t;case 4554:return Kr+io(t,/([^-])(transform)/g,"$1"+Kr+"$2")+t;case 6187:return io(io(io(t,/(zoom-|grab)/,Kr+"$1"),/(image-set)/,Kr+"$1"),t,"")+t;case 5495:case 3959:return io(t,/(image-set\([^]*)/,Kr+"$1$`$1");case 4968:return io(io(t,/(.+:)(flex-)?(.*)/,Kr+"box-pack:$3"+Xr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Kr+t+t;case 4095:case 3583:case 4068:case 2532:return io(t,/(.+)-inline(.+)/,Kr+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(co(t)-1-e>6)switch(so(t,e+1)){case 109:if(45!==so(t,e+4))break;case 102:return io(t,/(.+:)(.+)-([^]+)/,"$1"+Kr+"$2-$3$1"+Vr+(108==so(t,e+3)?"$3":"$2-$3"))+t;case 115:return~ao(t,"stretch")?Xo(io(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==so(t,e+1))break;case 6444:switch(so(t,co(t)-3-(~ao(t,"!important")&&10))){case 107:return io(t,":",":"+Kr)+t;case 101:return io(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Kr+(45===so(t,14)?"inline-":"")+"box$3$1"+Kr+"$2$3$1"+Xr+"$2box$3")+t}break;case 5936:switch(so(t,e+11)){case 114:return Kr+t+Xr+io(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Kr+t+Xr+io(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Kr+t+Xr+io(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Kr+t+Xr+t+t}return t}var Vo=[function(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case Jr:t.return=Xo(t.value,t.length);break;case to:return Io([wo(t,{value:io(t.value,"@","@"+Kr)})],r);case Qr:if(t.length)return function(t,e){return t.map(e).join("")}(t.props,function(e){switch(function(t,e){return(t=e.exec(t))?t[0]:t}(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Io([wo(t,{props:[io(e,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Io([wo(t,{props:[io(e,/:(plac\w+)/,":"+Kr+"input-$1")]}),wo(t,{props:[io(e,/:(plac\w+)/,":-moz-$1")]}),wo(t,{props:[io(e,/:(plac\w+)/,Xr+"input-$1")]})],r)}return""})}}],Ko=function(t){var e=t.key;if("css"===e){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t),t.setAttribute("data-s",""))})}var r,o,i=t.stylisPlugins||Vo,a={},s=[];r=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),function(t){for(var e=t.getAttribute("data-emotion").split(" "),n=1;n<e.length;n++)a[e[n]]=!0;s.push(t)});var l,c,u,h,f=[Yo,(h=function(t){l.insert(t)},function(t){t.root||(t=t.return)&&h(t)})],d=(c=[Go,qo].concat(i,f),u=uo(c),function(t,e,n,r){for(var o="",i=0;i<u;i++)o+=c[i](t,e,n,r)||"";return o});o=function(t,e,n,r){l=n,Io(zo(t?t+"{"+e.styles+"}":e.styles),d),r&&(p.inserted[e.name]=!0)};var p={key:e,sheet:new qr({key:e,container:r,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p};var Zo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Qo=/[A-Z]|^ms/g,Jo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ti=function(t){return 45===t.charCodeAt(1)},ei=function(t){return null!=t&&"boolean"!=typeof t},ni=/* @__PURE__ */Lo(function(t){return ti(t)?t:t.replace(Qo,"-$&").toLowerCase()}),ri=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(Jo,function(t,e,n){return ii={name:e,styles:n,next:ii},e})}return 1===Zo[t]||ti(t)||"number"!=typeof e||0===e?e:e+"px"};function oi(t,e,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return ii={name:o.name,styles:o.styles,next:ii},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)ii={name:a.name,styles:a.styles,next:ii},a=a.next;return i.styles+";"}return function(t,e,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=oi(t,e,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=e&&void 0!==e[s]?r+=i+"{"+e[s]+"}":ei(s)&&(r+=ni(i)+":"+ri(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=e&&void 0!==e[a[0]]){var l=oi(t,e,a);switch(i){case"animation":case"animationName":r+=ni(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)ei(a[c])&&(r+=ni(i)+":"+ri(i,a[c])+";")}return r}(t,e,n)}var s=n;if(null==e)return s;var l=e[s];return void 0!==l?l:s}var ii,ai=/label:\s*([^\s;{]+)\s*(;|$)/g;function si(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var r=!0,o="";ii=void 0;var i=t[0];null==i||void 0===i.raw?(r=!1,o+=oi(n,e,i)):o+=i[0];for(var a=1;a<t.length;a++){if(o+=oi(n,e,t[a]),r)o+=i[a]}ai.lastIndex=0;for(var s,l="";null!==(s=ai.exec(o));)l+="-"+s[1];var c=function(t){for(var e,n=0,r=0,o=t.length;o>=4;++r,o-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:ii}}function li(t,e,n){var r="";return n.split(" ").forEach(function(n){void 0!==t[n]?e.push(t[n]+";"):n&&(r+=n+" ")}),r}function ci(t,e){if(void 0===t.inserted[e.name])return t.insert("",e,t.sheet,!0)}function ui(t,e,n){var r=[],o=li(t,r,n);return r.length<2?n:o+e(r)}var hi=function t(e){for(var n="",r=0;r<e.length;r++){var o=e[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=t(o);else for(var a in i="",o)o[a]&&a&&(i&&(i+=" "),i+=a);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},fi=function(t){var e=Ko(t);e.sheet.speedy=function(t){this.isSpeedy=t},e.compat=!0;var n=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=si(n,e.registered,void 0);return function(t,e){!function(t,e){var n=t.key+"-"+e.name;void 0===t.registered[n]&&(t.registered[n]=e.styles)}(t,e);var n=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var r=e;do{t.insert(e===r?"."+n:"",r,t.sheet,!0),r=r.next}while(void 0!==r)}}(e,o),e.key+"-"+o.name};return{css:n,cx:function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return ui(e.registered,n,hi(r))},injectGlobal:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=si(n,e.registered);ci(e,o)},keyframes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=si(n,e.registered),i="animation-"+o.name;return ci(e,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(t){t.forEach(function(t){e.inserted[t]=!0})},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:li.bind(null,e.registered),merge:ui.bind(null,e.registered,n)}}({key:"css"}),di=fi.injectGlobal,pi=fi.css;function gi(){const t=()=>Math.floor(65536*(1+crypto.getRandomValues(new Uint32Array(1))[0])).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}const mi=/* @__PURE__ */new WeakMap;function vi(t,e){const n=t.substr(4,t.length-5);let r=mi.get(e);if(r||(r=/* @__PURE__ */new Map,mi.set(e,r)),r.has(n))return r.get(n);const o=getComputedStyle(e).getPropertyValue(n);return r.set(n,o),o}function yi(t,e,n=0){const[r,o,i,a]=[t.x+n,t.y+t.height-2*n,t.x+t.width-2*n,t.y+n],[s,l,c,u]=[e.x+n,e.y+e.height-2*n,e.x+e.width-2*n,e.y+n];return!(o<u||l<a||i<s||c<r)}function bi(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function wi(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function xi(){}var _i=.7,ki=1/_i,Ci="\\s*([+-]?\\d+)\\s*",Mi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Si="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ai=/^#([0-9a-f]{3,8})$/,Ti=new RegExp(`^rgb\\(${Ci},${Ci},${Ci}\\)$`),Ni=new RegExp(`^rgb\\(${Si},${Si},${Si}\\)$`),Ei=new RegExp(`^rgba\\(${Ci},${Ci},${Ci},${Mi}\\)$`),Di=new RegExp(`^rgba\\(${Si},${Si},${Si},${Mi}\\)$`),$i=new RegExp(`^hsl\\(${Mi},${Si},${Si}\\)$`),Oi=new RegExp(`^hsla\\(${Mi},${Si},${Si},${Mi}\\)$`),Pi={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};function zi(){return this.rgb().formatHex()}function ji(){return this.rgb().formatRgb()}function Fi(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Ai.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Ui(e):3===n?new Yi(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Hi(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Hi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ti.exec(t))?new Yi(e[1],e[2],e[3],1):(e=Ni.exec(t))?new Yi(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ei.exec(t))?Hi(e[1],e[2],e[3],e[4]):(e=Di.exec(t))?Hi(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=$i.exec(t))?qi(e[1],e[2]/100,e[3]/100,1):(e=Oi.exec(t))?qi(e[1],e[2]/100,e[3]/100,e[4]):Pi.hasOwnProperty(t)?Ui(Pi[t]):"transparent"===t?new Yi(NaN,NaN,NaN,0):null}function Ui(t){return new Yi(t>>16&255,t>>8&255,255&t,1)}function Hi(t,e,n,r){return r<=0&&(t=e=n=NaN),new Yi(t,e,n,r)}function Ii(t,e,n,r){return 1===arguments.length?((o=t)instanceof xi||(o=Fi(o)),o?new Yi((o=o.rgb()).r,o.g,o.b,o.opacity):new Yi):new Yi(t,e,n,null==r?1:r);var o}function Yi(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Li(){return`#${Gi(this.r)}${Gi(this.g)}${Gi(this.b)}`}function Bi(){const t=Ri(this.opacity);return`${1===t?"rgb(":"rgba("}${Wi(this.r)}, ${Wi(this.g)}, ${Wi(this.b)}${1===t?")":`, ${t})`}`}function Ri(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Wi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Gi(t){return((t=Wi(t))<16?"0":"")+t.toString(16)}function qi(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ki(t,e,n,r)}function Xi(t){if(t instanceof Ki)return new Ki(t.h,t.s,t.l,t.opacity);if(t instanceof xi||(t=Fi(t)),!t)return new Ki;if(t instanceof Ki)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=e===i?(n-r)/s+6*(n<r):n===i?(r-e)/s+2:(e-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Ki(a,s,l,t.opacity)}function Vi(t,e,n,r){return 1===arguments.length?Xi(t):new Ki(t,e,n,null==r?1:r)}function Ki(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Zi(t){return(t=(t||0)%360)<0?t+360:t}function Qi(t){return Math.max(0,Math.min(1,t||0))}function Ji(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}bi(xi,Fi,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:zi,formatHex:zi,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xi(this).formatHsl()},formatRgb:ji,toString:ji}),bi(Yi,Ii,wi(xi,{brighter(t){return t=null==t?ki:Math.pow(ki,t),new Yi(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?_i:Math.pow(_i,t),new Yi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Yi(Wi(this.r),Wi(this.g),Wi(this.b),Ri(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:Li,formatHex:Li,formatHex8:function(){return`#${Gi(this.r)}${Gi(this.g)}${Gi(this.b)}${Gi(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Bi,toString:Bi})),bi(Ki,Vi,wi(xi,{brighter(t){return t=null==t?ki:Math.pow(ki,t),new Ki(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?_i:Math.pow(_i,t),new Ki(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new Yi(Ji(t>=240?t-240:t+120,o,r),Ji(t,o,r),Ji(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new Ki(Zi(this.h),Qi(this.s),Qi(this.l),Ri(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 t=Ri(this.opacity);return`${1===t?"hsl(":"hsla("}${Zi(this.h)}, ${100*Qi(this.s)}%, ${100*Qi(this.l)}%${1===t?")":`, ${t})`}`}}));const ta=(null===globalThis||void 0===globalThis?void 0:globalThis.UNOVIS_COLORS)||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],ea=(null===globalThis||void 0===globalThis?void 0:globalThis.UNOVIS_COLORS_DARK)||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],na=t=>`--vis-${Cr(t)?"color"+t%ta.length:t}`;function ra(t,e=.4){const n=Vi(t);return n.l=n.l*(1+e),n.formatHex()}function oa(t,e=.4,n=.6){const r=Vi(t);return r.s=r.s*(1-n),r.l=r.l*(1-e),r.formatHex()}var ia={value:()=>{}};function aa(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new sa(r)}function sa(t){this._=t}function la(t,e){for(var n,r=0,o=t.length;r<o;++r)if((n=t[r]).name===e)return n.value}function ca(t,e,n){for(var r=0,o=t.length;r<o;++r)if(t[r].name===e){t[r]=ia,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}sa.prototype=aa.prototype={constructor:sa,on:function(t,e){var n,r,o=this._,i=(r=o,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),a=-1,s=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<s;)if(n=(t=i[a]).type)o[n]=ca(o[n],t.name,e);else if(null==e)for(n in o)o[n]=ca(o[n],t.name,null);return this}for(;++a<s;)if((n=(t=i[a]).type)&&(n=la(o[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new sa(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,o=new Array(n),i=0;i<n;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=0,n=(r=this._[t]).length;i<n;++i)r[i].value.apply(e,o)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],o=0,i=r.length;o<i;++o)r[o].value.apply(e,n)}};var ua,ha,fa=0,da=0,pa=0,ga=0,ma=0,va=0,ya="object"==typeof performance&&performance.now?performance:Date,ba="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function wa(){return ma||(ba(xa),ma=ya.now()+va)}function xa(){ma=0}function _a(){this._call=this._time=this._next=null}function ka(t,e,n){var r=new _a;return r.restart(t,e,n),r}function Ca(){ma=(ga=ya.now())+va,fa=da=0;try{!function(){wa(),++fa;for(var t,e=ua;e;)(t=ma-e._time)>=0&&e._call.call(void 0,t),e=e._next;--fa}()}finally{fa=0,function(){var t,e,n=ua,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:ua=e);ha=t,Sa(r)}(),ma=0}}function Ma(){var t=ya.now(),e=t-ga;e>1e3&&(va-=e,ga=t)}function Sa(t){fa||(da&&(da=clearTimeout(da)),t-ma>24?(t<1/0&&(da=setTimeout(Ca,t-ya.now()-va)),pa&&(pa=clearInterval(pa))):(pa||(ga=ya.now(),pa=setInterval(Ma,1e3)),fa=1,ba(Ca)))}function Aa(t,e,n){var r=new _a;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}_a.prototype=ka.prototype={constructor:_a,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?wa():+n)+(null==e?0:+e),this._next||ha===this||(ha?ha._next=this:ua=this,ha=this),this._call=t,this._time=n,Sa()},stop:function(){this._call&&(this._call=null,this._time=1/0,Sa())}};var Ta=aa("start","end","cancel","interrupt"),Na=[];function Ea(t,e,n,r,o,i){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,o=t.__transition;function i(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(i){var c,u,h,f;if(1!==n.state)return l();for(c in o)if((f=o[c]).name===n.name){if(3===f.state)return Aa(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete o[c]):+c<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete o[c])}if(Aa(function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(i))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(h=n.tween.length),c=0,u=-1;c<h;++c)(f=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++u]=f);r.length=u+1}}function s(e){for(var o=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=5,1),i=-1,a=r.length;++i<a;)r[i].call(t,o);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){for(var r in n.state=6,n.timer.stop(),delete o[e],o)return;delete t.__transition}o[e]=n,n.timer=ka(i,0,n.time)}(t,n,{name:e,index:r,group:o,on:Ta,tween:Na,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:0})}function Da(t,e){var n=Oa(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function $a(t,e){var n=Oa(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Oa(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Pa(t,e){var n,r,o,i=t.__transition,a=!0;if(i){for(o in e=null==e?null:e+"",i)(n=i[o]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete i[o]):a=!1;a&&delete t.__transition}}const za=t=>()=>t;function ja(t){return 1===(t=+t)?Fa:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):za(isNaN(e)?n:e)}}function Fa(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):za(isNaN(t)?e:t)}const Ua=function t(e){var n=ja(e);function r(t,e){var r=n((t=Ii(t)).r,(e=Ii(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=Fa(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Ha(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(n=0;n<r;++n)o[n]=t[n]*(1-i)+e[n]*i;return o}}function Ia(t,e){var n,r=e?e.length:0,o=t?Math.min(r,t.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=qa(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<o;++n)a[n]=i[n](t);return a}}function Ya(t,e){var n=/* @__PURE__ */new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function La(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Ba(t,e){var n,r={},o={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=qa(t[n],e[n]):o[n]=e[n];return function(t){for(n in r)o[n]=r[n](t);return o}}var Ra=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wa=new RegExp(Ra.source,"g");function Ga(t,e){var n,r,o,i=Ra.lastIndex=Wa.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(n=Ra.exec(t))&&(r=Wa.exec(e));)(o=r.index)>i&&(o=e.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:La(n,r)})),i=Wa.lastIndex;return i<e.length&&(o=e.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function qa(t,e){var n,r,o=typeof e;return null==e||"boolean"===o?za(e):("number"===o?La:"string"===o?(n=Fi(e))?(e=n,Ua):Ga:e instanceof Fi?Ua:e instanceof Date?Ya:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?Ia:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Ba:La:Ha))(t,e)}function Xa(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Va,Ka=180/Math.PI,Za={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Qa(t,e,n,r,o,i){var a,s,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),t*r<e*n&&(t=-t,e=-e,l=-l,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(e,t)*Ka,skewX:Math.atan(l)*Ka,scaleX:a,scaleY:s}}function Ja(t,e,n,r){function o(t){return t.length?t.pop()+" ":""}return function(i,a){var s=[],l=[];return i=t(i),a=t(a),function(t,r,o,i,a,s){if(t!==o||r!==i){var l=a.push("translate(",null,e,null,n);s.push({i:l-4,x:La(t,o)},{i:l-2,x:La(r,i)})}else(o||i)&&a.push("translate("+o+e+i+n)}(i.translateX,i.translateY,a.translateX,a.translateY,s,l),function(t,e,n,i){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:La(t,e)})):e&&n.push(o(n)+"rotate("+e+r)}(i.rotate,a.rotate,s,l),function(t,e,n,i){t!==e?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:La(t,e)}):e&&n.push(o(n)+"skewX("+e+r)}(i.skewX,a.skewX,s,l),function(t,e,n,r,i,a){if(t!==n||e!==r){var s=i.push(o(i)+"scale(",null,",",null,")");a.push({i:s-4,x:La(t,n)},{i:s-2,x:La(e,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,s,l),i=a=null,function(t){for(var e,n=-1,r=l.length;++n<r;)s[(e=l[n]).i]=e.x(t);return s.join("")}}}var ts=Ja(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Za:Qa(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),es=Ja(function(t){return null==t?Za:(Va||(Va=document.createElementNS("http://www.w3.org/2000/svg","g")),Va.setAttribute("transform",t),(t=Va.transform.baseVal.consolidate())?Qa((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Za)},", ",")",")");function ns(t,e){var n,r;return function(){var o=$a(this,t),i=o.tween;if(i!==n)for(var a=0,s=(r=n=i).length;a<s;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}o.tween=r}}function rs(t,e,n){var r,o;if("function"!=typeof n)throw new Error;return function(){var i=$a(this,t),a=i.tween;if(a!==r){o=(r=a).slice();for(var s={name:e,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===e){o[l]=s;break}l===c&&o.push(s)}i.tween=o}}function os(t,e,n){var r=t._id;return t.each(function(){var t=$a(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return Oa(t,r).value[e]}}function is(t,e){var n;return("number"==typeof e?La:e instanceof Fi?Ua:(n=Fi(e))?(e=n,Ua):Ga)(t,e)}function as(t){return function(){this.removeAttribute(t)}}function ss(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ls(t,e,n){var r,o,i=n+"";return function(){var a=this.getAttribute(t);return a===i?null:a===r?o:o=e(r=a,n)}}function cs(t,e,n){var r,o,i=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===i?null:a===r?o:o=e(r=a,n)}}function us(t,e,n){var r,o,i;return function(){var a,s,l=n(this);if(null!=l)return(a=this.getAttribute(t))===(s=l+"")?null:a===r&&s===o?i:(o=s,i=e(r=a,l));this.removeAttribute(t)}}function hs(t,e,n){var r,o,i;return function(){var a,s,l=n(this);if(null!=l)return(a=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:a===r&&s===o?i:(o=s,i=e(r=a,l));this.removeAttributeNS(t.space,t.local)}}function fs(t,e){var n,r;function o(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,o)),n}return o._value=e,o}function ds(t,e){var n,r;function o(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,o)),n}return o._value=e,o}function ps(t,e){return function(){Da(this,t).delay=+e.apply(this,arguments)}}function gs(t,e){return e=+e,function(){Da(this,t).delay=e}}function ms(t,e){return function(){$a(this,t).duration=+e.apply(this,arguments)}}function vs(t,e){return e=+e,function(){$a(this,t).duration=e}}var ys=Zn.prototype.constructor;function bs(t){return function(){this.style.removeProperty(t)}}var ws=0;function xs(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function _s(){return++ws}var ks=Zn.prototype;xs.prototype={constructor:xs,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Le(t));for(var r=this._groups,o=r.length,i=new Array(o),a=0;a<o;++a)for(var s,l,c=r[a],u=c.length,h=i[a]=new Array(u),f=0;f<u;++f)(s=c[f])&&(l=t.call(s,s.__data__,f,c))&&("__data__"in s&&(l.__data__=s.__data__),h[f]=l,Ea(h[f],e,n,f,h,Oa(s,n)));return new xs(i,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Re(t));for(var r=this._groups,o=r.length,i=[],a=[],s=0;s<o;++s)for(var l,c=r[s],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var f,d=t.call(l,l.__data__,h,c),p=Oa(l,n),g=0,m=d.length;g<m;++g)(f=d[g])&&Ea(f,e,n,g,d,p);i.push(d),a.push(l)}return new xs(i,a,e,n)},selectChild:ks.selectChild,selectChildren:ks.selectChildren,filter:function(t){"function"!=typeof t&&(t=Ge(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var i,a=e[o],s=a.length,l=r[o]=[],c=0;c<s;++c)(i=a[c])&&t.call(i,i.__data__,c,a)&&l.push(i);return new xs(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,o=n.length,i=Math.min(r,o),a=new Array(r),s=0;s<i;++s)for(var l,c=e[s],u=n[s],h=c.length,f=a[s]=new Array(h),d=0;d<h;++d)(l=c[d]||u[d])&&(f[d]=l);for(;s<r;++s)a[s]=e[s];return new xs(a,this._parents,this._name,this._id)},selection:function(){return new ys(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=_s(),r=this._groups,o=r.length,i=0;i<o;++i)for(var a,s=r[i],l=s.length,c=0;c<l;++c)if(a=s[c]){var u=Oa(a,e);Ea(a,t,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new xs(r,this._parents,t,n)},call:ks.call,nodes:ks.nodes,node:ks.node,size:ks.size,empty:ks.empty,each:ks.each,on:function(t,e){var n=this._id;return arguments.length<2?Oa(this.node(),n).on.on(t):this.each(function(t,e,n){var r,o,i=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Da:$a;return function(){var a=i(this,t),s=a.on;s!==r&&(o=(r=s).copy()).on(e,n),a.on=o}}(n,t,e))},attr:function(t,e){var n=Fe(t),r="transform"===n?es:is;return this.attrTween(t,"function"==typeof e?(n.local?hs:us)(n,r,os(this,"attr."+t,e)):null==e?(n.local?ss:as)(n):(n.local?cs:ls)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=Fe(t);return this.tween(n,(r.local?fs:ds)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?ts:is;return null==e?this.styleTween(t,function(t,e){var n,r,o;return function(){var i=mn(this,t),a=(this.style.removeProperty(t),mn(this,t));return i===a?null:i===n&&a===r?o:o=e(n=i,r=a)}}(t,r)).on("end.style."+t,bs(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,o,i;return function(){var a=mn(this,t),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(t),l=s=mn(this,t)),a===l?null:a===r&&l===o?i:(o=l,i=e(r=a,s))}}(t,r,os(this,"style."+t,e))).each(function(t,e){var n,r,o,i,a="style."+e,s="end."+a;return function(){var l=$a(this,t),c=l.on,u=null==l.value[a]?i||(i=bs(e)):void 0;c===n&&o===u||(r=(n=c).copy()).on(s,o=u),l.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,o,i=n+"";return function(){var a=mn(this,t);return a===i?null:a===r?o:o=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){var r,o;function i(){var i=e.apply(this,arguments);return i!==o&&(r=(o=i)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,i,n)),r}return i._value=e,i}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(os(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,o=Oa(this.node(),n).tween,i=0,a=o.length;i<a;++i)if((r=o[i]).name===t)return r.value;return null}return this.each((null==e?ns:rs)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?ps:gs)(e,t)):Oa(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?ms:vs)(e,t)):Oa(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){$a(this,t).ease=e}}(e,t)):Oa(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;$a(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,o=n.size();return new Promise(function(i,a){var s={value:a},l={value:function(){0===--o&&i()}};n.each(function(){var n=$a(this,r),o=n.on;o!==t&&((e=(t=o).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),n.on=e}),0===o&&i()})},[Symbol.iterator]:ks[Symbol.iterator]};const Cs=t=>+t;var Ms={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Ss(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function As(t,e,n){if(t.nodes().forEach(t=>Pa(t)),e){const r=t.transition().duration(e);return n&&r.ease(n),r}return t}Zn.prototype.interrupt=function(t){return this.each(function(){Pa(this,t)})},Zn.prototype.transition=function(t){var e,n;t instanceof xs?(e=t._id,t=t._name):(e=_s(),(n=Ms).time=wa(),t=null==t?null:t+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var a,s=r[i],l=s.length,c=0;c<l;++c)(a=s[c])&&Ea(a,t,e,c,s,n||Ss(a,e));return new xs(r,this._parents,t,e)};class Ts{constructor(t){this.data=t}get data(){return this._data}set data(t){this._data=t}}function Ns(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Es(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}const Ds=/* @__PURE__ */Symbol("implicit");function $s(){var t=new lr,e=[],n=[],r=Ds;function o(o){let i=t.get(o);if(void 0===i){if(r!==Ds)return r;t.set(o,i=e.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new lr;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return $s(e,n).unknown(r)},Ns.apply(o,arguments),o}function Os(){var t,e,n=$s().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,l=0,c=0,u=.5;function h(){var n=r().length,h=a<i,f=h?a:i,d=h?i:a;t=(d-f)/Math.max(1,n-l+2*c),s&&(t=Math.floor(t)),f+=(d-f-t*(n-l))*u,e=t*(1-l),s&&(f=Math.round(f),e=Math.round(e));var p=xr(n).map(function(e){return f+t*e});return o(h?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),h()):r()},n.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,h()):[i,a]},n.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,s=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(s=!!t,h()):s},n.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),h()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),h()):u},n.copy=function(){return Os(r(),[i,a]).round(s).paddingInner(l).paddingOuter(c).align(u)},Ns.apply(h(),arguments)}function Ps(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Ps(e())},t}function zs(t){return+t}var js=[0,1];function Fs(t){return t}function Us(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function Hs(t,e,n){var r=t[0],o=t[1],i=e[0],a=e[1];return o<r?(r=Us(o,r),i=n(a,i)):(r=Us(r,o),i=n(i,a)),function(t){return i(r(t))}}function Is(t,e,n){var r=Math.min(t.length,e.length)-1,o=new Array(r),i=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)o[a]=Us(t[a],t[a+1]),i[a]=n(e[a],e[a+1]);return function(e){var n=ar(t,e,1,r)-1;return i[n](o[n](e))}}function Ys(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ls(){var t,e,n,r,o,i,a=js,s=js,l=qa,c=Fs;function u(){var t,e,n,l=Math.min(a.length,s.length);return c!==Fs&&(t=a[0],e=a[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=l>2?Is:Hs,o=i=null,h}function h(e){return null==e||isNaN(e=+e)?n:(o||(o=r(a.map(t),s,l)))(t(c(e)))}return h.invert=function(n){return c(e((i||(i=r(s,a.map(t),La)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,zs),u()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),l=Xa,u()},h.clamp=function(t){return arguments.length?(c=!!t||Fs,u()):c!==Fs},h.interpolate=function(t){return arguments.length?(l=t,u()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,u()}}function Bs(){return Ls()(Fs,Fs)}function Rs(t,e){if(!isFinite(t)||0===t)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Ws(t){return(t=Rs(Math.abs(t)))?t[1]:NaN}var Gs,qs=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Xs(t){if(!(e=qs.exec(t)))throw new Error("invalid format: "+t);var e;return new Vs({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Vs(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ks(t,e){var n=Rs(t,e);if(!n)return t+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}Xs.prototype=Vs.prototype,Vs.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Zs={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Ks(100*t,e),r:Ks,s:function(t,e){var n=Rs(t,e);if(!n)return Gs=void 0,t.toPrecision(e);var r=n[0],o=n[1],i=o-(Gs=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Rs(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Qs(t){return t}var Js,tl,el,nl=Array.prototype.map,rl=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ol(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Qs:(e=nl.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var o=t.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(t.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?Qs:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(nl.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function h(t,e){var n=(t=Xs(t)).fill,h=t.align,f=t.sign,d=t.symbol,p=t.zero,g=t.width,m=t.comma,v=t.precision,y=t.trim,b=t.type;"n"===b?(m=!0,b="g"):Zs[b]||(void 0===v&&(v=12),y=!0,b="g"),(p||"0"===n&&"="===h)&&(p=!0,n="0",h="=");var w=(e&&void 0!==e.prefix?e.prefix:"")+("$"===d?o:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),x=("$"===d?i:/[%p]/.test(b)?l:"")+(e&&void 0!==e.suffix?e.suffix:""),_=Zs[b],k=/[defgprs%]/.test(b);function C(t){var e,o,i,l=w,d=x;if("c"===b)d=_(t)+d,t="";else{var C=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:_(Math.abs(t),v),y&&(t=function(t){t:for(var e,n=t.length,r=1,o=-1;r<n;++r)switch(t[r]){case".":o=e=r;break;case"0":0===o&&(o=r),e=r;break;default:if(!+t[r])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),C&&0===+t&&"+"!==f&&(C=!1),l=(C?"("===f?f:c:"-"===f||"("===f?"":f)+l,d=("s"!==b||isNaN(t)||void 0===Gs?"":rl[8+Gs/3])+d+(C&&"("===f?")":""),k)for(e=-1,o=t.length;++e<o;)if(48>(i=t.charCodeAt(e))||i>57){d=(46===i?a+t.slice(e+1):t.slice(e))+d,t=t.slice(0,e);break}}m&&!p&&(t=r(t,1/0));var M=l.length+t.length+d.length,S=M<g?new Array(g-M+1).join(n):"";switch(m&&p&&(t=r(S+t,S.length?g-d.length:1/0),S=""),h){case"<":t=l+t+d+S;break;case"=":t=l+S+t+d;break;case"^":t=S.slice(0,M=S.length>>1)+l+t+d+S.slice(M);break;default:t=S+l+t+d}return s(t)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),C.toString=function(){return t+""},C}return{format:h,formatPrefix:function(t,e){var n=3*Math.max(-8,Math.min(8,Math.floor(Ws(e)/3))),r=Math.pow(10,-n),o=h(((t=Xs(t)).type="f",t),{suffix:rl[8+n/3]});return function(t){return o(r*t)}}}}function il(t,e,n,r){var o,i=vr(t,e,n);switch((r=Xs(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ws(e)/3)))-Ws(Math.abs(t)))}(i,a))||(r.precision=o),el(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ws(e)-Ws(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(t){return Math.max(0,-Ws(Math.abs(t)))}(i))||(r.precision=o-2*("%"===r.type))}return tl(r)}function al(t){var e=t.domain;return t.ticks=function(t){var n=e();return gr(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return il(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,o,i=e(),a=0,s=i.length-1,l=i[a],c=i[s],u=10;for(c<l&&(o=l,l=c,c=o,o=a,a=s,s=o);u-- >0;){if((o=mr(l,c,n))===r)return i[a]=l,i[s]=c,e(i);if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}r=o}return t},t}function sl(t,e){var n,r=0,o=(t=t.slice()).length-1,i=t[r],a=t[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),t[r]=e.floor(i),t[o]=e.ceil(a),t}function ll(t){return Math.log(t)}function cl(t){return Math.exp(t)}function ul(t){return-Math.log(-t)}function hl(t){return-Math.exp(-t)}function fl(t){return isFinite(t)?+("1e"+t):t<0?0:t}function dl(t){return(e,n)=>-t(-e,n)}function pl(t){const e=t(ll,cl),n=e.domain;let r,o,i=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(i),o=function(t){return 10===t?fl:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),n()[0]<0?(r=dl(r),o=dl(o),t(ul,hl)):t(ll,cl),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(n(t),a()):n()},e.ticks=t=>{const e=n();let a=e[0],s=e[e.length-1];const l=s<a;l&&([a,s]=[s,a]);let c,u,h=r(a),f=r(s);const d=null==t?10:+t;let p=[];if(!(i%1)&&f-h<d){if(h=Math.floor(h),f=Math.ceil(f),a>0){for(;h<=f;++h)for(c=1;c<i;++c)if(u=h<0?c/o(-h):c*o(h),!(u<a)){if(u>s)break;p.push(u)}}else for(;h<=f;++h)for(c=i-1;c>=1;--c)if(u=h>0?c/o(-h):c*o(h),!(u<a)){if(u>s)break;p.push(u)}2*p.length<d&&(p=gr(a,s,d))}else p=gr(h,f,Math.min(f-h,d)).map(o);return l?p.reverse():p},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=Xs(n)).precision||(n.trim=!0),n=tl(n)),t===1/0)return n;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(r(t)));return e*i<i-.5&&(e*=i),e<=a?n(t):""}},e.nice=()=>n(sl(n(),{floor:t=>o(Math.floor(r(t))),ceil:t=>o(Math.ceil(r(t)))})),e}function gl(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function ml(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function vl(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function yl(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function bl(t){return t<0?-t*t:t*t}function wl(t){var e=t(Fs,Fs),n=1;return e.exponent=function(e){return arguments.length?1===(n=+e)?t(Fs,Fs):.5===n?t(yl,bl):t(vl(n),vl(1/n)):n},al(e)}function xl(){var t=wl(Ls());return t.copy=function(){return Ys(t,xl()).exponent(t.exponent())},Ns.apply(t,arguments),t}Js=ol({thousands:",",grouping:[3],currency:["$",""]}),tl=Js.format,el=Js.formatPrefix;const _l=/* @__PURE__ */new Date,kl=/* @__PURE__ */new Date;function Cl(t,e,n,r){function o(e){return t(e=0===arguments.length?/* @__PURE__ */new Date:/* @__PURE__ */new Date(+e)),e}return o.floor=e=>(t(e=/* @__PURE__ */new Date(+e)),e),o.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),o.round=t=>{const e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=(t,n)=>(e(t=/* @__PURE__ */new Date(+t),null==n?1:Math.floor(n)),t),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=/* @__PURE__ */new Date(+n)),e(n,i),t(n)}while(s<n&&n<r);return a},o.filter=n=>Cl(e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},(t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}),n&&(o.count=(e,r)=>(_l.setTime(+e),kl.setTime(+r),t(_l),t(kl),Math.floor(n(_l,kl))),o.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?e=>r(e)%t===0:e=>o.count(0,e)%t===0):o:null)),o}const Ml=Cl(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ml.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Cl(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Ml:null),Ml.range;const Sl=1e3,Al=6e4,Tl=36e5,Nl=864e5,El=6048e5,Dl=2592e6,$l=31536e6,Ol=Cl(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Sl)},(t,e)=>(e-t)/Sl,t=>t.getUTCSeconds());Ol.range;const Pl=Cl(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Sl)},(t,e)=>{t.setTime(+t+e*Al)},(t,e)=>(e-t)/Al,t=>t.getMinutes());Pl.range;const zl=Cl(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Al)},(t,e)=>(e-t)/Al,t=>t.getUTCMinutes());zl.range;const jl=Cl(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Sl-t.getMinutes()*Al)},(t,e)=>{t.setTime(+t+e*Tl)},(t,e)=>(e-t)/Tl,t=>t.getHours());jl.range;const Fl=Cl(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Tl)},(t,e)=>(e-t)/Tl,t=>t.getUTCHours());Fl.range;const Ul=Cl(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Al)/Nl,t=>t.getDate()-1);Ul.range;const Hl=Cl(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Nl,t=>t.getUTCDate()-1);Hl.range;const Il=Cl(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Nl,t=>Math.floor(t/Nl));function Yl(t){return Cl(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Al)/El)}Il.range;const Ll=Yl(0),Bl=Yl(1),Rl=Yl(2),Wl=Yl(3),Gl=Yl(4),ql=Yl(5),Xl=Yl(6);function Vl(t){return Cl(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/El)}Ll.range,Bl.range,Rl.range,Wl.range,Gl.range,ql.range,Xl.range;const Kl=Vl(0),Zl=Vl(1),Ql=Vl(2),Jl=Vl(3),tc=Vl(4),ec=Vl(5),nc=Vl(6);Kl.range,Zl.range,Ql.range,Jl.range,tc.range,ec.range,nc.range;const rc=Cl(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear()),t=>t.getMonth());rc.range;const oc=Cl(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth());oc.range;const ic=Cl(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ic.every=t=>isFinite(t=Math.floor(t))&&t>0?Cl(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}):null,ic.range;const ac=Cl(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function sc(t,e,n,r,o,i){const a=[[Ol,1,Sl],[Ol,5,5e3],[Ol,15,15e3],[Ol,30,3e4],[i,1,Al],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Tl],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Nl],[r,2,1728e5],[n,1,El],[e,1,Dl],[e,3,7776e6],[t,1,$l]];function s(e,n,r){const o=Math.abs(n-e)/r,i=nr(([,,t])=>t).right(a,o);if(i===a.length)return t.every(vr(e/$l,n/$l,r));if(0===i)return Ml.every(Math.max(vr(e,n,r),1));const[s,l]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return s.every(l)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const o=n&&"function"==typeof n.range?n:s(t,e,n),i=o?o.range(t,+e+1):[];return r?i.reverse():i},s]}ac.every=t=>isFinite(t=Math.floor(t))&&t>0?Cl(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null,ac.range;const[lc,cc]=sc(ac,oc,Kl,Il,Fl,zl),[uc,hc]=sc(ic,rc,Ll,Ul,jl,Pl);function fc(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function dc(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function pc(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var gc,mc,vc,yc={"-":"",_:" ",0:"0"},bc=/^\s*\d+/,wc=/^%/,xc=/[\\^$*+?|[\]().{}]/g;function _c(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(e)+o:o)}function kc(t){return t.replace(xc,"\\$&")}function Cc(t){return new RegExp("^(?:"+t.map(kc).join("|")+")","i")}function Mc(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function Sc(t,e,n){var r=bc.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ac(t,e,n){var r=bc.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Tc(t,e,n){var r=bc.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Nc(t,e,n){var r=bc.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ec(t,e,n){var r=bc.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Dc(t,e,n){var r=bc.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function $c(t,e,n){var r=bc.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Oc(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Pc(t,e,n){var r=bc.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function zc(t,e,n){var r=bc.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function jc(t,e,n){var r=bc.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Fc(t,e,n){var r=bc.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Uc(t,e,n){var r=bc.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Hc(t,e,n){var r=bc.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Ic(t,e,n){var r=bc.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Yc(t,e,n){var r=bc.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Lc(t,e,n){var r=bc.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Bc(t,e,n){var r=wc.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Rc(t,e,n){var r=bc.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Wc(t,e,n){var r=bc.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Gc(t,e){return _c(t.getDate(),e,2)}function qc(t,e){return _c(t.getHours(),e,2)}function Xc(t,e){return _c(t.getHours()%12||12,e,2)}function Vc(t,e){return _c(1+Ul.count(ic(t),t),e,3)}function Kc(t,e){return _c(t.getMilliseconds(),e,3)}function Zc(t,e){return Kc(t,e)+"000"}function Qc(t,e){return _c(t.getMonth()+1,e,2)}function Jc(t,e){return _c(t.getMinutes(),e,2)}function tu(t,e){return _c(t.getSeconds(),e,2)}function eu(t){var e=t.getDay();return 0===e?7:e}function nu(t,e){return _c(Ll.count(ic(t)-1,t),e,2)}function ru(t){var e=t.getDay();return e>=4||0===e?Gl(t):Gl.ceil(t)}function ou(t,e){return t=ru(t),_c(Gl.count(ic(t),t)+(4===ic(t).getDay()),e,2)}function iu(t){return t.getDay()}function au(t,e){return _c(Bl.count(ic(t)-1,t),e,2)}function su(t,e){return _c(t.getFullYear()%100,e,2)}function lu(t,e){return _c((t=ru(t)).getFullYear()%100,e,2)}function cu(t,e){return _c(t.getFullYear()%1e4,e,4)}function uu(t,e){var n=t.getDay();return _c((t=n>=4||0===n?Gl(t):Gl.ceil(t)).getFullYear()%1e4,e,4)}function hu(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+_c(e/60|0,"0",2)+_c(e%60,"0",2)}function fu(t,e){return _c(t.getUTCDate(),e,2)}function du(t,e){return _c(t.getUTCHours(),e,2)}function pu(t,e){return _c(t.getUTCHours()%12||12,e,2)}function gu(t,e){return _c(1+Hl.count(ac(t),t),e,3)}function mu(t,e){return _c(t.getUTCMilliseconds(),e,3)}function vu(t,e){return mu(t,e)+"000"}function yu(t,e){return _c(t.getUTCMonth()+1,e,2)}function bu(t,e){return _c(t.getUTCMinutes(),e,2)}function wu(t,e){return _c(t.getUTCSeconds(),e,2)}function xu(t){var e=t.getUTCDay();return 0===e?7:e}function _u(t,e){return _c(Kl.count(ac(t)-1,t),e,2)}function ku(t){var e=t.getUTCDay();return e>=4||0===e?tc(t):tc.ceil(t)}function Cu(t,e){return t=ku(t),_c(tc.count(ac(t),t)+(4===ac(t).getUTCDay()),e,2)}function Mu(t){return t.getUTCDay()}function Su(t,e){return _c(Zl.count(ac(t)-1,t),e,2)}function Au(t,e){return _c(t.getUTCFullYear()%100,e,2)}function Tu(t,e){return _c((t=ku(t)).getUTCFullYear()%100,e,2)}function Nu(t,e){return _c(t.getUTCFullYear()%1e4,e,4)}function Eu(t,e){var n=t.getUTCDay();return _c((t=n>=4||0===n?tc(t):tc.ceil(t)).getUTCFullYear()%1e4,e,4)}function Du(){return"+0000"}function $u(){return"%"}function Ou(t){return+t}function Pu(t){return Math.floor(+t/1e3)}function zu(t){return new Date(t)}function ju(t){return t instanceof Date?+t:+/* @__PURE__ */new Date(+t)}function Fu(t,e,n,r,o,i,a,s,l,c){var u=Bs(),h=u.invert,f=u.domain,d=c(".%L"),p=c(":%S"),g=c("%I:%M"),m=c("%I %p"),v=c("%a %d"),y=c("%b %d"),b=c("%B"),w=c("%Y");function x(t){return(l(t)<t?d:s(t)<t?p:a(t)<t?g:i(t)<t?m:r(t)<t?o(t)<t?v:y:n(t)<t?b:w)(t)}return u.invert=function(t){return new Date(h(t))},u.domain=function(t){return arguments.length?f(Array.from(t,ju)):f().map(zu)},u.ticks=function(e){var n=f();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?x:c(e)},u.nice=function(t){var n=f();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?f(sl(n,t)):u},u.copy=function(){return Ys(u,Fu(t,e,n,r,o,i,a,s,l,c))},u}function Uu(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Hu(){var t,e,n,r,o,i,a,s=0,l=.5,c=1,u=1,h=Fs,f=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(u*t<u*e?r:o),h(f?Math.max(0,Math.min(1,t)):t))}function p(t){return function(e){var n,r,o;return arguments.length?([n,r,o]=e,h=function(t,e){void 0===e&&(e=t,t=qa);for(var n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);n<r;)i[n]=t(o,o=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return i[e](t-e)}}(t,[n,r,o]),d):[h(0),h(.5),h(1)]}}return d.domain=function(a){return arguments.length?([s,l,c]=a,t=i(s=+s),e=i(l=+l),n=i(c=+c),r=t===e?0:.5/(e-t),o=e===n?0:.5/(n-e),u=e<t?-1:1,d):[s,l,c]},d.clamp=function(t){return arguments.length?(f=!!t,d):f},d.interpolator=function(t){return arguments.length?(h=t,d):h},d.range=p(qa),d.rangeRound=p(Xa),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return i=a,t=a(s),e=a(l),n=a(c),r=t===e?0:.5/(e-t),o=e===n?0:.5/(n-e),u=e<t?-1:1,d}}!function(t){gc=function(t){var e=t.dateTime,n=t.date,r=t.time,o=t.periods,i=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,c=Cc(o),u=Mc(o),h=Cc(i),f=Mc(i),d=Cc(a),p=Mc(a),g=Cc(s),m=Mc(s),v=Cc(l),y=Mc(l),b={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Gc,e:Gc,f:Zc,g:lu,G:uu,H:qc,I:Xc,j:Vc,L:Kc,m:Qc,M:Jc,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Ou,s:Pu,S:tu,u:eu,U:nu,V:ou,w:iu,W:au,x:null,X:null,y:su,Y:cu,Z:hu,"%":$u},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:fu,e:fu,f:vu,g:Tu,G:Eu,H:du,I:pu,j:gu,L:mu,m:yu,M:bu,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Ou,s:Pu,S:wu,u:xu,U:_u,V:Cu,w:Mu,W:Su,x:null,X:null,y:Au,Y:Nu,Z:Du,"%":$u},x={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return C(t,e,n,r)},d:jc,e:jc,f:Lc,g:$c,G:Dc,H:Uc,I:Uc,j:Fc,L:Yc,m:zc,M:Hc,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:Pc,Q:Rc,s:Wc,S:Ic,u:Ac,U:Tc,V:Nc,w:Sc,W:Ec,x:function(t,e,r){return C(t,n,e,r)},X:function(t,e,n){return C(t,r,e,n)},y:$c,Y:Dc,Z:Oc,"%":Bc};function _(t,e){return function(n){var r,o,i,a=[],s=-1,l=0,c=t.length;for(n instanceof Date||(n=/* @__PURE__ */new Date(+n));++s<c;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(o=yc[r=t.charAt(++s)])?r=t.charAt(++s):o="e"===r?" ":"0",(i=e[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function k(t,e){return function(n){var r,o,i=pc(1900,void 0,1);if(C(i,t,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=dc(pc(i.y,0,1))).getUTCDay(),r=o>4||0===o?Zl.ceil(r):Zl(r),r=Hl.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=fc(pc(i.y,0,1))).getDay(),r=o>4||0===o?Bl.ceil(r):Bl(r),r=Ul.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?dc(pc(i.y,0,1)).getUTCDay():fc(pc(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,dc(i)):fc(i)}}function C(t,e,n,r){for(var o,i,a=0,s=e.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=x[o in yc?e.charAt(a++):o])||(r=i(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(e,b),w.x=_(n,w),w.X=_(r,w),w.c=_(e,w),{format:function(t){var e=_(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=_(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}(t),mc=gc.format,gc.parse,vc=gc.utcFormat,gc.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const Iu={scaleLinear:function t(){var e=Bs();return e.copy=function(){return Ys(e,t())},Ns.apply(e,arguments),al(e)},scalePow:xl,scaleSqrt:function(){return xl.apply(null,arguments).exponent(.5)},scaleLog:function t(){const e=pl(Ls()).domain([1,10]);return e.copy=()=>Ys(e,t()).base(e.base()),Ns.apply(e,arguments),e},scaleSymlog:function t(){var e=function(t){var e=1,n=t(gl(e),ml(e));return n.constant=function(n){return arguments.length?t(gl(e=+n),ml(e)):e},al(n)}(Ls());return e.copy=function(){return Ys(e,t()).constant(e.constant())},Ns.apply(e,arguments)},scaleIdentity:function t(e){var n;function r(t){return null==t||isNaN(t=+t)?n:t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=Array.from(t,zs),r):e.slice()},r.unknown=function(t){return arguments.length?(n=t,r):n},r.copy=function(){return t(e).unknown(n)},e=arguments.length?Array.from(e,zs):[0,1],al(r)},scaleTime:function(){return Ns.apply(Fu(uc,hc,ic,rc,Ll,Ul,jl,Pl,Ol,mc).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return Ns.apply(Fu(lc,cc,ac,oc,Kl,Hl,Fl,zl,Ol,vc).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},scaleSequential:function t(){var e=al(function(){var t,e,n,r,o,i=0,a=1,s=Fs,l=!1;function c(e){return null==e||isNaN(e=+e)?o:s(0===n?.5:(e=(r(e)-t)*n,l?Math.max(0,Math.min(1,e)):e))}function u(t){return function(e){var n,r;return arguments.length?([n,r]=e,s=t(n,r),c):[s(0),s(1)]}}return c.domain=function(o){return arguments.length?([i,a]=o,t=r(i=+i),e=r(a=+a),n=t===e?0:1/(e-t),c):[i,a]},c.clamp=function(t){return arguments.length?(l=!!t,c):l},c.interpolator=function(t){return arguments.length?(s=t,c):s},c.range=u(qa),c.rangeRound=u(Xa),c.unknown=function(t){return arguments.length?(o=t,c):o},function(o){return r=o,t=o(i),e=o(a),n=t===e?0:1/(e-t),c}}()(Fs));return e.copy=function(){return Uu(e,t())},Es.apply(e,arguments)},scaleDiverging:function t(){var e=al(Hu()(Fs));return e.copy=function(){return Uu(e,t())},Es.apply(e,arguments)},scaleQuantize:function t(){var e,n=0,r=1,o=1,i=[.5],a=[0,1];function s(t){return null!=t&&t<=t?a[ar(i,t,0,o)]:e}function l(){var t=-1;for(i=new Array(o);++t<o;)i[t]=((t+1)*r-(t-o)*n)/(o+1);return s}return s.domain=function(t){return arguments.length?([n,r]=t,n=+n,r=+r,l()):[n,r]},s.range=function(t){return arguments.length?(o=(a=Array.from(t)).length-1,l()):a.slice()},s.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:e<1?[n,i[0]]:e>=o?[i[o-1],r]:[i[e-1],i[e]]},s.unknown=function(t){return arguments.length?(e=t,s):s},s.thresholds=function(){return i.slice()},s.copy=function(){return t().domain([n,r]).range(a).unknown(e)},Ns.apply(al(s),arguments)},scaleQuantile:function t(){var e,n=[],r=[],o=[];function i(){var t=0,e=Math.max(1,r.length);for(o=new Array(e-1);++t<e;)o[t-1]=wr(n,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:r[ar(o,t)]}return a.invertExtent=function(t){var e=r.indexOf(t);return e<0?[NaN,NaN]:[e>0?o[e-1]:n[0],e<o.length?o[e]:n[n.length-1]]},a.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(tr),i()},a.range=function(t){return arguments.length?(r=Array.from(t),i()):r.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return o.slice()},a.copy=function(){return t().domain(n).range(r).unknown(e)},Ns.apply(a,arguments)},scaleThreshold:function t(){var e,n=[.5],r=[0,1],o=1;function i(t){return null!=t&&t<=t?r[ar(n,t,0,o)]:e}return i.domain=function(t){return arguments.length?(n=Array.from(t),o=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(t){return arguments.length?(r=Array.from(t),o=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(t){var e=r.indexOf(t);return[n[e-1],n[e]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t().domain(n).range(r).unknown(e)},Ns.apply(i,arguments)},scaleOrdinal:$s,scaleBand:Os,scalePoint:function(){return Ps(Os.apply(null,arguments).paddingInner(1))}};var Yu,Lu;(Lu=Yu||(Yu={})).X="x",Lu.Y="y";const Bu={duration:600,events:{},attributes:{}};class Ru{constructor(t=Wn.SVG){var e,n;this.type=Wn.SVG,this.datamodel=new Ts,this.sizing=qn.Fit,this.events={},this._defaultConfig=Bu,this._width=400,this._height=200,this._containerWidth=void 0,this._containerHeight=void 0,this._containerMargin={top:0,bottom:0,left:0,right:0},this._setUpComponentEventsThrottled=Pr(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=Pr(this._setCustomAttributes,500),t===Wn.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=gi(),this.g=Qn(this.element);const r=null===(n=null===(e=this.constructor)||void 0===e?void 0:e.selectors)||void 0===n?void 0:n.root;r&&this.g.attr("class",r)}setContainerMargin(t){this._containerMargin=t}setConfig(t){this.prevConfig=this.config,this.config=Or(this._defaultConfig,t)}setData(t){this.datamodel.data=t}setSize(t,e,n,r){isFinite(t)&&(this._width=t),isFinite(e)&&(this._height=e),isFinite(n)&&(this._containerWidth=n),isFinite(r)&&(this._containerHeight=r)}render(t=this.config.duration){this._render(t);const e="animating";if(t){this.g.attr(e,"");this.g.transition(e).duration(t).on("end interrupt",()=>{this.g.attr(e,null)})}this._setUpComponentEventsThrottled(),this._setCustomAttributesThrottled()}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(t=this.config.duration){}_setCustomAttributes(){const t=this.config.attributes;Object.keys(t).forEach(e=>{Object.keys(t[e]).forEach(n=>{this.g.selectAll(`.${e}`).attr(n,t[e][n])})})}_setUpComponentEvents(){this._bindEvents(this.events),this._bindEvents(this.config.events,".user")}_bindEvents(t=this.events,e=""){Object.keys(t).forEach(n=>{Object.keys(t[n]).forEach(r=>{const o=this.g.selectAll(`.${n}`);o.on(r+e,(e,i)=>{const a=o.nodes(),s=a.indexOf(e.currentTarget),l=t[n][r];return null==l?void 0:l(i,e,s,a)})})})}destroy(){var t;null===(t=this.g)||void 0===t||t.remove(),this.element=void 0}isDestroyed(){return!this.element}}class Wu extends Ts{constructor(t){super(t)}get data(){var t;return null!==(t=this._data)&&void 0!==t?t:[]}set data(t){Array.isArray(t)&&(this._data=t)}}const Gu=Object.assign(Object.assign({},Bu),{x:void 0,y:void 0,id:(t,e)=>{var n;return null!==(n=t.id)&&void 0!==n?n:`${e}`},color:t=>t.color,xScale:void 0,yScale:void 0,excludeFromDomainCalculation:!1});class qu extends Ru{constructor(){super(...arguments),this.datamodel=new Wu,this.clippable=!0,this.stacked=!1,this._defaultConfig=Gu,this._xScale=Iu.scaleLinear(),this._yScale=Iu.scaleLinear()}get xScale(){return this.config.xScale||this._xScale}get yScale(){return this.config.yScale||this._yScale}setConfig(t){var e,n;(null===(e=this.config)||void 0===e?void 0:e.xScale)&&(t.xScale=this.config.xScale),(null===(n=this.config)||void 0===n?void 0:n.yScale)&&(t.yScale=this.config.yScale),super.setConfig(t)}setScaleDomain(t,e){var n,r;t===Yu.X&&(null===(n=this._xScale)||void 0===n||n.domain(e)),t===Yu.Y&&(null===(r=this._yScale)||void 0===r||r.domain(e))}setScaleRange(t,e){var n,r;t===Yu.X&&(null===(n=this._xScale)||void 0===n||n.range(e)),t===Yu.Y&&(null===(r=this._yScale)||void 0===r||r.range(e))}setScale(t,e){e&&t===Yu.X&&(this._xScale=e),e&&t===Yu.Y&&(this._yScale=e)}getDataExtent(t,e){const{config:n,datamodel:r}=this;switch(t){case Yu.X:return this.getXDataExtent();case Yu.Y:return this.getYDataExtent(e);default:return Rr(r.data,n[t])}}getXDataExtent(){const{config:t,datamodel:e}=this;return Rr(e.data,t.x)}getYDataExtent(t){const{config:e,datamodel:n}=this,r=this.xScale.domain();return Rr(t?Gr(n.data,r,e.x,!0):n.data,...Sr(e.y)?e.y:[e.y])}}var Xu,Vu,Ku,Zu,Qu,Ju,th,eh;(Vu=Xu||(Xu={})).Top="top",Vu.Bottom="bottom",Vu.Left="left",Vu.Right="right",Vu.Center="center",Vu.Auto="auto",(Zu=Ku||(Ku={})).Absolute="absolute",Zu.Fixed="fixed",(Ju=Qu||(Qu={})).Inside="inside",Ju.Outside="outside",Ju.Center="center",(eh=th||(th={})).Horizontal="horizontal",eh.Vertical="vertical";const nh={components:[],container:void 0,followCursor:!0,allowHover:!1,horizontalPlacement:Xu.Auto,horizontalShift:0,verticalPlacement:Xu.Top,verticalShift:0,attributes:{},triggers:{},className:void 0,showDelay:void 0,hideDelay:void 0},rh=pi`
2
+ label: tooltip;
3
+ display: inline-block;
4
+ left: 0;
5
+ bottom: 0;
6
+ min-width: max-content;
7
+ position: absolute;
8
+ opacity: 0;
9
+ transition: opacity;
10
+ transition-duration: var(--vis-tooltip-transition-duration);
11
+ z-index: 999999;
12
+ padding: var(--vis-tooltip-padding);
13
+ color: var(--vis-tooltip-text-color);
14
+ border-radius: var(--vis-tooltip-border-radius);
15
+ box-shadow: var(--vis-tooltip-box-shadow);
16
+ border: solid 1px var(--vis-tooltip-border-color);
17
+ background-color: var(--vis-tooltip-background-color);
18
+ backdrop-filter: var(--vis-tooltip-backdrop-filter);
19
+ `,oh=rh,ih=di`
20
+ :root {
21
+ --vis-tooltip-background-color: rgba(255, 255, 255, 0.95);
22
+ --vis-tooltip-border-color: #e5e9f7;
23
+ --vis-tooltip-text-color: #000;
24
+ --vis-tooltip-shadow-color: rgba(172, 179, 184, 0.35);
25
+ --vis-tooltip-backdrop-filter: none;
26
+ --vis-tooltip-padding: 10px 15px;
27
+ --vis-tooltip-border-radius: 5px;
28
+ --vis-tooltip-transition-duration: 300ms;
29
+ --vis-tooltip-box-shadow: none;
30
+
31
+ --vis-dark-tooltip-background-color: rgba(30,30,30, 0.95);
32
+ --vis-dark-tooltip-text-color: #e5e9f7;
33
+ --vis-dark-tooltip-border-color: var(--vis-color-grey);
34
+ --vis-dark-tooltip-shadow-color: rgba(0,0,0, 0.95);
35
+ }
36
+
37
+ body.theme-dark ${`.${rh}`} {
38
+ --vis-tooltip-background-color: var(--vis-dark-tooltip-background-color);
39
+ --vis-tooltip-text-color: var(--vis-dark-tooltip-text-color);
40
+ --vis-tooltip-border-color: var(--vis-dark-tooltip-border-color);
41
+ --vis-tooltip-shadow-color: var(--vis-dark-tooltip-shadow-color);
42
+ }
43
+
44
+ body.theme-dark {
45
+ --vis-tooltip-background-color: rgba(30,30,30, 0.95);
46
+ --vis-tooltip-text-color: #e5e9f7;
47
+ --vis-tooltip-border-color: var(--vis-color-grey);
48
+ --vis-tooltip-shadow-color: rgba(0,0,0, 0.95);
49
+ }
50
+ `,ah=pi`
51
+ bottom: unset;
52
+ position: fixed;
53
+ `,sh=pi`
54
+ opacity: 1;
55
+ `,lh=pi`
56
+ display: none;
57
+ `,ch=pi`
58
+ label: non-interactive;
59
+ pointer-events: none;
60
+ user-select: none;
61
+ `,uh=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,hidden:lh,nonInteractive:ch,positionFixed:ah,root:rh,show:sh,tooltip:oh,variables:ih},Symbol.toStringTag,{value:"Module"}));class hh{constructor(t={}){this._defaultConfig=nh,this.config=this._defaultConfig,this._setUpEventsThrottled=Pr(this._setUpEvents,500),this._setContainerPositionThrottled=Pr(this._setContainerPosition,500),this._isShown=!1,this.element=document.createElement("div"),this.div=Qn(this.element).attr("class",rh).classed(sh,!1).classed(lh,!0),this.setConfig(t),this.components=this.config.components,this._mutationObserver=new MutationObserver(()=>{this._isShown&&(!this.config.followCursor&&this._hoveredElement?this.placeByElement(this._hoveredElement):this._position&&this.place({x:this._position[0],y:this._position[1]}))}),this._mutationObserver.observe(this.div.node(),{childList:!0,subtree:!0})}setConfig(t){var e;this.prevConfig=this.config,this.config=Or(this._defaultConfig,t),this.prevConfig.horizontalPlacement!==this.config.horizontalPlacement&&this.overrideHorizontalPlacement(void 0),this.config.container&&this.config.container!==(null===(e=this.prevConfig)||void 0===e?void 0:e.container)&&this.setContainer(this.config.container),this._setUpAttributes()}setContainer(t){var e;null===(e=this.element.parentNode)||void 0===e||e.removeChild(this.element),this._container=t,this._container.appendChild(this.element),this._setContainerPositionThrottled()}getContainer(){return this._container}hasContainer(){return!!this._container&&this._container.isConnected}setComponents(t){this.components=t}update(){this._container&&this._setUpEventsThrottled()}show(t,e){this.render(t),this.place(e)}_hide(){this.div.classed(sh,!1).on("transitionend",()=>{this.div.classed(lh,!this._isShown)}),this._isShown=!1}hide(){window.clearTimeout(this._showDelayTimeoutId),this.config.hideDelay?(window.clearTimeout(this._hideDelayTimeoutId),this._hideDelayTimeoutId=setTimeout(()=>this._hide(),this.config.hideDelay)):this._hide()}_display(){window.clearTimeout(this._hideDelayTimeoutId),this.div.classed(lh,!1).classed(sh,!0),this._isShown=!0}display(){this._isShown||(this.config.showDelay?(window.clearTimeout(this._showDelayTimeoutId),this._showDelayTimeoutId=setTimeout(()=>{this._display(),this.place({x:this._position[0],y:this._position[1]})},this.config.showDelay)):this._display())}place(t){if(this._position=[t.x,t.y],!this.hasContainer())return void console.warn("Unovis | Tooltip: Container was not set or is not initialized yet");const{config:e}=this,n=this.element.offsetWidth,r=this.element.offsetHeight,o=this._overriddenHorizontalPlacement||(e.horizontalPlacement===Xu.Auto?Xu.Center:e.horizontalPlacement),i=e.verticalPlacement===Xu.Auto?t.y-r<0?Xu.Bottom:Xu.Top:e.verticalPlacement,a=o===Xu.Left?-n-5-e.horizontalShift:o===Xu.Center?-n/2:5+e.horizontalShift,s=i===Xu.Bottom?5+e.verticalShift:i===Xu.Center?-r/2:-5-e.verticalShift-r,[l,c]=this._constraintPosToContainer(t.x+a,t.y+s,n,r);this._applyPosition(l,c,r)}placeByElement(t){const{config:e}=this;this._hoveredElement=t;const n=this.element.offsetWidth,r=this.element.offsetHeight,o=this.isContainerBody(),i=o?window.innerWidth:this._container.scrollWidth,a=t.getBoundingClientRect(),s=o?[a.x,a.y]:Jn({clientX:a.x,clientY:a.y,pageX:a.x,pageY:a.y},this._container),l=this._overriddenHorizontalPlacement||(e.horizontalPlacement===Xu.Auto?s[0]-n<0?Xu.Right:s[0]+n>i?Xu.Left:Xu.Center:e.horizontalPlacement);let c=0;switch(l){case Xu.Left:c=-n-5-e.horizontalShift;break;case Xu.Right:c=a.width+5+e.horizontalShift;break;case Xu.Center:default:c=(-n+a.width)/2}let u=-r;switch(e.verticalPlacement===Xu.Auto?l!==Xu.Center?Xu.Center:s[1]-r<0?Xu.Bottom:Xu.Top:e.verticalPlacement){case Xu.Center:u+=(r+a.height)/2;break;case Xu.Bottom:u+=r+a.height+5+e.verticalShift;break;case Xu.Top:default:u+=-5-e.verticalShift}const[h,f]=this._constraintPosToContainer(s[0]+c,s[1]+u,n,r);this._applyPosition(h,f,r)}isContainerBody(){return this._container===document.body}overrideHorizontalPlacement(t){this._overriddenHorizontalPlacement=t}render(t){var e;const{config:n,prevConfig:r}=this;if(t instanceof HTMLElement){this.div.select(":first-child").node()!==t&&this.div.html("").append(()=>t)}else null!==t&&this.div.html(t||"");this.div.classed(null!==(e=n.className)&&void 0!==e?e:"",Boolean(n.className)).classed(ch,!n.allowHover),(null==r?void 0:r.className)&&r.className!==n.className&&this.div.classed(r.className,!1),this.display()}_applyPosition(t,e,n){const r=this.isContainerBody(),o=r?window.innerHeight:this._container.scrollHeight;this.div.classed(ah,r).style("top",r?`${e}px`:"unset").style("bottom",r?"unset":o-e-n+"px").style("left",`${t}px`)}_constraintPosToContainer(t,e,n,r){const o=this.isContainerBody(),i=o?window.innerHeight:this._container.scrollHeight,a=o?window.innerWidth:this._container.scrollWidth;return[a<n?0:t>a-n-10?a-n-10:t<10?10:t,i<r?0:e>i-r-10?i-r-10:e<10?10:e]}_setContainerPosition(){var t;this._container!==document.body&&"static"===(null===(t=getComputedStyle(this._container))||void 0===t?void 0:t.position)&&(this._container.style.position="relative")}_setUpEvents(){const{config:t}=this;this.components.forEach(t=>{const e=Qn(t.element);e.on("mousemove.tooltip",t=>{const{config:n}=this,r=t.composedPath&&t.composedPath()||t.path||[t.target];for(const o of Object.keys(n.triggers)){const i=n.triggers[o];if(!i)continue;const a=e.selectAll(`.${o}`).nodes();for(const s of r){if(s===e.node())break;if(s.classList.contains(o)){const e=a.indexOf(s),r=i(Qn(s).datum(),e,a),[o,l]=this.isContainerBody()?[t.clientX,t.clientY]:Jn(t,this._container);return null===r?this.hide():(this.render(r),n.followCursor?this.place({x:o,y:l}):this.placeByElement(s)),void t.stopPropagation()}}}this._isShown&&this.hide()}).on("mouseleave.tooltip",t=>{t.stopPropagation(),this.hide()})}),t.allowHover?this.div.on("mouseenter.tooltip",this._display.bind(this)).on("mouseleave.tooltip",this.hide.bind(this)):this.div.on("mouseenter.tooltip",null).on("mouseleave.tooltip",null)}_setUpAttributes(){const t=this.config.attributes;t&&Object.keys(t).forEach(e=>{this.div.attr(e,t[e])})}destroy(){var t;this._mutationObserver.disconnect(),window.clearTimeout(this._hideDelayTimeoutId),window.clearTimeout(this._showDelayTimeoutId),null===(t=this.div)||void 0===t||t.remove()}}function fh(t,e,n,r){if(Array.isArray(e)&&isFinite(n))return e[n%e.length];return jr(t,e,n)||(Cr(n)?`var(${na(n)})`:null)}hh.selectors=uh;const dh=Object.assign(Object.assign({},Gu),{yStacked:void 0,baseline:null,duration:100,tooltip:void 0,template:(t,e,n,r)=>"",hideWhenFarFromPointer:!0,hideWhenFarFromPointerDistance:100,snapToData:!0,getCircles:void 0,color:void 0,strokeColor:void 0,strokeWidth:void 0,onCrosshairMove:void 0,forceShowAt:void 0,skipRangeCheck:!1}),ph=di`
62
+ :root {
63
+ --vis-crosshair-line-stroke-color: #888;
64
+ --vis-crosshair-line-stroke-width: 1px;
65
+ --vis-crosshair-line-stroke-opacity: 1;
66
+ --vis-crosshair-circle-stroke-color: #fff;
67
+ --vis-crosshair-circle-stroke-width: 1px;
68
+ --vis-crosshair-circle-stroke-opacity: 0.75;
69
+ }
70
+ `,gh=pi`
71
+ label: crosshair-component;
72
+ `,mh=pi`
73
+ stroke: var(--vis-crosshair-line-stroke-color);
74
+ stroke-width: var(--vis-crosshair-line-stroke-width);
75
+ stroke-opacity: var(--vis-crosshair-line-stroke-opacity);
76
+ pointer-events: none;
77
+ `,vh=pi`
78
+ stroke: var(--vis-crosshair-circle-stroke-color);
79
+ stroke-width: var(--vis-crosshair-circle-stroke-width);
80
+ stroke-opacity: var(--vis-crosshair-circle-stroke-opacity);
81
+ pointer-events: none;
82
+ `,yh=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,circle:vh,globalStyles:ph,line:mh,root:gh},Symbol.toStringTag,{value:"Module"}));class bh extends qu{constructor(t){super(),this.clippable=!0,this._defaultConfig=dh,this.config=this._defaultConfig,this._xPx=void 0,this._yPx=void 0,this._mouseEvent=void 0,this._animFrameId=null,this._accessors={x:void 0,y:void 0,yStacked:void 0,baseline:void 0},t&&this.setConfig(t),this.g.style("opacity",0),this.line=this.g.append("line").attr("class",mh)}set accessors(t){this._accessors=t}get accessors(){var t;const{config:e}=this,n=!!(e.x||e.y||e.yStacked),r=n?e.x:this._accessors.x,o=n?e.y:this._accessors.y;return{x:r,y:o?Sr(o)?o:[o]:void 0,yStacked:n?e.yStacked:this._accessors.yStacked,baseline:null!==(t=e.baseline)&&void 0!==t?t:this._accessors.baseline}}_isContainerInViewport(){var t;if(!(null===(t=this.container)||void 0===t?void 0:t.node()))return!1;const e=this.container.node().getBoundingClientRect(),n=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,o=Math.max(0,Math.min(e.right,n)-Math.max(e.left,0)),i=Math.max(0,Math.min(e.bottom,r)-Math.max(e.top,0)),a=e.width*e.height;return a>0&&o*i/a>=.35}setContainer(t){this.container!==t&&(this.container=t,this.container.on("mousemove.crosshair",this._onMouseMove.bind(this)),this.container.on("mouseout.crosshair",this._onMouseOut.bind(this)),this.container.on("wheel.crosshair",this._onWheel.bind(this)))}_render(t){var e,n,r,o,i;const{config:a,datamodel:s}=this,l=Cr(t)?t:a.duration,c=void 0!==a.forceShowAt,u=c?this.xScale(a.forceShowAt):this._xPx,h=this.xScale.invert(u),f=(null===(e=s.data)||void 0===e?void 0:e.length)&&this.accessors.x?s.data.indexOf(Wr(s.data,h,this.accessors.x,_r.Left)):void 0;let d,p;a.snapToData&&(this.accessors.y||this.accessors.yStacked||!(null===(n=s.data)||void 0===n?void 0:n.length)||console.warn("Unovis | Crosshair: Y accessors have not been configured. Please check if they're present in the configuration object"),!(null===(r=s.data)||void 0===r?void 0:r.length)&&this._mouseEvent&&console.warn("Unovis | Crosshair: No data to snap to. Make sure the data has been passed to the container or to the crosshair itself"),d=Wr(s.data,h,this.accessors.x),p=s.data.indexOf(d));const g=this.xScale.range(),m=this.yScale.range(),v=a.snapToData&&d?Hr(Math.round(this.xScale(Fr(d,this.accessors.x,p))),0,this._width):Hr(u,g[0],g[1]),y=u>=g[0]&&u<=g[1],b=this._yPx>=Math.min(m[0],m[1])&&this._yPx<=Math.max(m[0],m[1]);let w=a.skipRangeCheck?!!this._xPx:this._xPx?y&&b:y;a.hideWhenFarFromPointer&&Math.abs(v-+u)>=a.hideWhenFarFromPointerDistance&&(w=!1);const x=null!==(o=a.tooltip)&&void 0!==o?o:this.tooltip;if(w&&x&&this._isContainerInViewport()){const t=x.getContainer()||this.container.node(),e=x.isContainerBody(),n=this.accessors.x?Fr(d,this.accessors.x,p):void 0;if(c){const t=this.container.node().getBoundingClientRect(),r=[(e?u+t.left:u)+this._containerMargin.left,this._height/2+(e?t.top:0)];this._showTooltip(d,n,r,f)}else if(this._mouseEvent){const r=e?[this._mouseEvent.clientX,this._mouseEvent.clientY]:Jn(this._mouseEvent,t);this._showTooltip(d,n,r,f)}}else this._hideTooltip();if(this._mouseEvent&&(null===(i=a.onCrosshairMove)||void 0===i||i.call(a,w?this.xScale.invert(this._xPx):void 0,d,p,this._mouseEvent),this._mouseEvent=void 0),As(this.g,l).style("opacity",w?1:0),!isFinite(u))return;this.line.attr("y1",0).attr("y2",this._height),As(this.line,l,Cs).attr("x1",v).attr("x2",v);const _=Mr(a.getCircles)?a.getCircles(h,s.data,this.yScale,f):this.getCircleData(d,p),k=this.g.selectAll("circle").data(_,(t,e)=>{var n;return null!==(n=t.id)&&void 0!==n?n:e});As(k.enter().append("circle").attr("class",vh).attr("r",0).attr("cx",v).attr("cy",t=>t.y).style("fill",t=>t.color).style("stroke",t=>t.strokeColor).style("stroke-width",t=>t.strokeWidth).merge(k),l,Cs).attr("cx",v).attr("cy",t=>t.y).attr("r",4).style("opacity",t=>t.opacity).style("fill",t=>t.color).style("stroke",t=>t.strokeColor).style("stroke-width",t=>t.strokeWidth),k.exit().remove()}hide(t){window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{var e,n;this._xPx=void 0,this._yPx=void 0,this._mouseEvent=void 0,null===(n=(e=this.config).onCrosshairMove)||void 0===n||n.call(e,void 0,void 0,void 0,t),this._render()})}_onMouseMove(t){var e;const{datamodel:n,element:r}=this;!this.accessors.x&&(null===(e=n.data)||void 0===e?void 0:e.length)&&console.warn("Unovis | Crosshair: X accessor function has not been configured. Please check if it's present in the configuration object");const[o,i]=Jn(t,r);this._xPx=o,this._yPx=i,this._mouseEvent=t,window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{this._render()})}_onMouseOut(t){var e;t&&(null===(e=this.container)||void 0===e?void 0:e.node().contains(t.relatedTarget))||this.hide(t)}_onWheel(t){this.hide(t)}_showTooltip(t,e,n,r){var o;const{config:i,datamodel:a}=this,s=null!==(o=i.tooltip)&&void 0!==o?o:this.tooltip;if(!s||!n)return;const[l,c]=n,u=i.template(t,e,a.data,r);if(s.config.followCursor=!0,!s.config.horizontalPlacement||s.config.horizontalPlacement===Xu.Auto){const t=s.isContainerBody()?l-this.container.node().getBoundingClientRect().left:l;s.overrideHorizontalPlacement(t>this._containerWidth/2?Xu.Left:Xu.Right)}u&&s.show(u,{x:l,y:c})}_hideTooltip(){var t;const{config:e}=this,n=null!==(t=e.tooltip)&&void 0!==t?t:this.tooltip;null==n||n.hide()}getYDataExtent(){return[void 0,void 0]}getCircleData(t,e){var n,r;const{config:o}=this;if(o.snapToData&&t){const i=null!==(n=this.accessors.y)&&void 0!==n?n:[],a=null!==(r=this.accessors.yStacked)&&void 0!==r?r:[],s=Fr(t,this.accessors.baseline,e)||0,l=function(t,e,...n){const r=[];let o=0,i=0;for(const a of n){const n=Fr(t,a,e)||0;n>=0?r.push(o+=n):r.push(i+=n)}return r}(t,e,...a).map((e,n)=>({y:this.yScale(e+s),opacity:Cr(Fr(t,a[n],n))?1:0,color:fh(t,o.color,n),strokeColor:o.strokeColor?fh(t,o.strokeColor,n):void 0,strokeWidth:o.strokeWidth?Fr(t,o.strokeWidth,n):void 0})),c=i.map((n,r)=>{const i=Fr(t,n,e);return{y:this.yScale(i),opacity:Cr(i)?1:0,color:fh(t,o.color,l.length+r),strokeColor:o.strokeColor?fh(t,o.strokeColor,r):void 0,strokeWidth:o.strokeWidth?Fr(t,o.strokeWidth,r):void 0}});return l.concat(c)}return[]}}bh.selectors=yh;const wh=/* @__PURE__ */Symbol("componentAccessorKey"),xh=/* @__PURE__ */Symbol("tooltipAccessorKey"),_h=/* @__PURE__ */Symbol("crosshairAccessorKey"),kh=/* @__PURE__ */Symbol("axisAccessorKey"),Ch=/* @__PURE__ */Symbol("annotationsAccessorKey");function Mh(t,e){return Er(t,e)}function Sh(t){const e=h(),n=e.attrs;return r(()=>{const r={},o=(null==e?void 0:e.vnode.props)??{};return Object.keys(o).forEach(e=>{r[H(e)]=t[H(e)]}),{...r,...n}})}const Ah={"data-vis-crosshair":""},Th=/* @__PURE__ */k({__name:"index",props:{data:{}},setup(t,{expose:e}){const n=p(_h),s=t,l=r(()=>n.data.value??s.data),c=Sh(s),u=y();return o(()=>{i(()=>{var t;u.value=new bh(c.value),null==(t=u.value)||t.setData(l.value),n.update(u.value)})}),I(()=>{var t;null==(t=u.value)||t.destroy(),n.destroy()}),a(c,(t,e)=>{var n;Mh(t,e)||null==(n=u.value)||n.setConfig(c.value)}),a(l,()=>{var t;null==(t=u.value)||t.setData(l.value)}),e({component:u}),(t,e)=>(C(),E("div",Ah))}}),Nh={"data-vis-tooltip":""},Eh=/* @__PURE__ */k({__name:"index",props:{components:{},container:{},followCursor:{type:Boolean},allowHover:{type:Boolean},horizontalPlacement:{},horizontalShift:{},verticalPlacement:{},verticalShift:{},triggers:{},attributes:{},className:{},hideDelay:{},showDelay:{},data:{}},setup(t,{expose:e}){const n=p(xh),r=Sh(t),s=y();return o(()=>{i(()=>{s.value=new hh(r.value),n.update(s.value)})}),I(()=>{var t;null==(t=s.value)||t.destroy(),n.destroy()}),a(r,(t,e)=>{var n;Mh(t,e)||null==(n=s.value)||n.setConfig(r.value)}),e({component:s}),(t,e)=>(C(),E("div",Nh))}}),Dh={light:"",dark:".dark"},[$h,Oh]=n("Chart"),Ph=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,ChartContainer:Se,ChartCrosshair:Th,ChartLegendContent:Ae,ChartTooltip:Eh,ChartTooltipContent:Pe,THEMES:Dh,componentToString:st,provideChartContext:Oh,useChart:$h},Symbol.toStringTag,{value:"Module"}));export{Bu as $,Dr as A,Yu as B,Ts as C,qu as D,Cr as E,Sr as F,Fr as G,fh as H,jr as I,zr as J,br as K,yr as L,Os as M,xr as N,th as O,Nr as P,Lr as Q,Br as R,qn as S,Rr as T,Xu as U,Pa as V,yi as W,Gu as X,Yr as Y,Gr as Z,Ir as _,G as a,qa as a0,Ru as a1,Wu as a2,Sh as a3,wh as a4,kh as a5,_h as a6,xh as a7,Ch as a8,Mh as a9,et as aa,_e as ab,Se as ac,Eh as ad,Th as ae,st as af,Pe as ag,ke as ah,Ph as ai,R as b,Y as c,J as d,it as e,L as f,X as g,Hr as h,W as i,Er as j,na as k,vi as l,Or as m,ra as n,ta as o,Q as p,oa as q,ea as r,Qn as s,ot as t,di as u,As as v,rt as w,gi as x,pi as y,Ur as z};
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- .cm-editor{min-height:100%;max-height:200px;padding-block:calc(var(--spacing) * 1);padding-inline:calc(var(--spacing) * 3);border:1px solid var(--input);border-radius:calc(var(--radius) - 2px);background-color:var(--background);--tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / .05));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);color:inherit;transition:all .15s cubic-bezier(.4,0,.2,1)}.cm-editor.cm-focused{outline:3px solid color-mix(in oklab,var(--ring) 50%,transparent);border-style:var(--tw-border-style);border-width:1px;--tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / .05));border-color:var(--ring);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-ring-color: color-mix(in oklab, var(--ring) 50%, transparent)}.cm-line{padding:0!important}.cm-scroller{flex:1}.cm-interpolation{color:#235dff;background:#edf1ff;padding:4px 6px;border-radius:5px;font-weight:600}.dark .cm-editor{background-color:color-mix(in oklab,var(--input) 30%,transparent)}.dark .cm-interpolation{color:#bfbfff;background:#edf1ff26}.vue-flow{position:relative;width:100%;height:100%;overflow:hidden;z-index:0;direction:ltr}.vue-flow__container{position:absolute;height:100%;width:100%;left:0;top:0}.vue-flow__pane{z-index:1}.vue-flow__pane.draggable{cursor:grab}.vue-flow__pane.selection{cursor:pointer}.vue-flow__pane.dragging{cursor:grabbing}.vue-flow__transformationpane{transform-origin:0 0;z-index:2;pointer-events:none}.vue-flow__viewport{z-index:4;overflow:clip}.vue-flow__selection{z-index:6}.vue-flow__edge-labels{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible{outline:none}.vue-flow .vue-flow__edges{pointer-events:none;overflow:visible}.vue-flow__edge-path,.vue-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.vue-flow__edge{pointer-events:visibleStroke;cursor:pointer}.vue-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__edge.animated path.vue-flow__edge-interaction{stroke-dasharray:none;animation:none}.vue-flow__edge.inactive{pointer-events:none}.vue-flow__edge.selected,.vue-flow__edge:focus,.vue-flow__edge:focus-visible{outline:none}.vue-flow__edge.selected .vue-flow__edge-path,.vue-flow__edge:focus .vue-flow__edge-path,.vue-flow__edge:focus-visible .vue-flow__edge-path{stroke:#555}.vue-flow__edge-textwrapper{pointer-events:all}.vue-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__connection{pointer-events:none}.vue-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__connectionline{z-index:1001}.vue-flow__nodes{pointer-events:none;transform-origin:0 0}.vue-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.vue-flow__node.draggable{cursor:grab;pointer-events:all}.vue-flow__node.draggable.dragging{cursor:grabbing}.vue-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.vue-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.vue-flow__nodesselection-rect.dragging{cursor:grabbing}.vue-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px}.vue-flow__handle.connectable{pointer-events:all;cursor:crosshair}.vue-flow__handle-bottom{left:50%;bottom:0;transform:translate(-50%,50%)}.vue-flow__handle-top{left:50%;top:0;transform:translate(-50%,-50%)}.vue-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.vue-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.vue-flow__edgeupdater{cursor:move;pointer-events:all}.vue-flow__panel{position:absolute;z-index:5;margin:15px}.vue-flow__panel.top{top:0}.vue-flow__panel.bottom{bottom:0}.vue-flow__panel.left{left:0}.vue-flow__panel.right{right:0}.vue-flow__panel.center{left:50%;transform:translate(-50%)}@keyframes dashdraw{0%{stroke-dashoffset:10}}:root{--vf-node-bg: #fff;--vf-node-text: #222;--vf-connection-path: #b1b1b7;--vf-handle: #555}.vue-flow__edge.updating .vue-flow__edge-path{stroke:#777}.vue-flow__edge-text{font-size:10px}.vue-flow__edge-textbg{fill:#fff}.vue-flow__connection-path{stroke:var(--vf-connection-path)}.vue-flow__node{cursor:grab}.vue-flow__node.selectable:focus,.vue-flow__node.selectable:focus-visible{outline:none}.vue-flow__node-default,.vue-flow__node-input,.vue-flow__node-output{padding:10px;border-radius:3px;width:150px;font-size:12px;text-align:center;border-width:1px;border-style:solid;color:var(--vf-node-text);background-color:var(--vf-node-bg);border-color:var(--vf-node-color)}.vue-flow__node-default.selected,.vue-flow__node-default.selected:hover,.vue-flow__node-input.selected,.vue-flow__node-input.selected:hover,.vue-flow__node-output.selected,.vue-flow__node-output.selected:hover{box-shadow:0 0 0 .5px var(--vf-box-shadow)}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible,.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible,.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid #555}.vue-flow__node-default .vue-flow__handle,.vue-flow__node-input .vue-flow__handle,.vue-flow__node-output .vue-flow__handle{background:var(--vf-handle)}.vue-flow__node-default.selectable:hover,.vue-flow__node-input.selectable:hover,.vue-flow__node-output.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.vue-flow__node-input{--vf-node-color: var(--vf-node-color, #0041d0);--vf-handle: var(--vf-node-color, #0041d0);--vf-box-shadow: var(--vf-node-color, #0041d0);background:var(--vf-node-bg);border-color:var(--vf-node-color, #0041d0)}.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible{outline:none;border:1px solid var(--vf-node-color, #0041d0)}.vue-flow__node-default{--vf-handle: var(--vf-node-color, #1a192b);--vf-box-shadow: var(--vf-node-color, #1a192b);background:var(--vf-node-bg);border-color:var(--vf-node-color, #1a192b)}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible{outline:none;border:1px solid var(--vf-node-color, #1a192b)}.vue-flow__node-output{--vf-handle: var(--vf-node-color, #ff0072);--vf-box-shadow: var(--vf-node-color, #ff0072);background:var(--vf-node-bg);border-color:var(--vf-node-color, #ff0072)}.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid var(--vf-node-color, #ff0072)}.vue-flow__nodesselection-rect,.vue-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible,.vue-flow__selection:focus,.vue-flow__selection:focus-visible{outline:none}.vue-flow__handle{width:6px;height:6px;background:var(--vf-handle);border:1px solid #fff;border-radius:100%}.vue-flow__controls{box-shadow:0 0 2px 1px #00000014}.vue-flow__controls-button{background:#fefefe;border:none;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;user-select:none;padding:5px}.vue-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.vue-flow__controls-button:hover{background:#f4f4f4}.vue-flow__controls-button:disabled{pointer-events:none}.vue-flow__controls-button:disabled svg{fill-opacity:.4}.vue-flow__minimap{background-color:#fff}.vue-flow__minimap.pannable{cursor:grab}.vue-flow__minimap.dragging{cursor:grabbing}.vue-flow__minimap-mask.pannable{cursor:grab}.vue-flow__background.vue-flow__container pattern circle{fill:#d6d6d6}.vue-flow__node{background-color:#fff;border:1px solid #ececec;border-radius:.5rem;box-shadow:0 2px 5px #0000001a;padding:.5rem;--focus-border-color: #a16aff}.vue-flow__node.selected,.vue-flow__node:focus,.vue-flow__node:focus-visible{border:2px solid var(--focus-border-color)}.vue-flow__handle{height:15px;border-radius:5px}.vue-flow__edge-path,.vue-flow__connection-path{stroke:#7b7b7b;stroke-width:2}.vue-flow__edge.selected .vue-flow__edge-path{stroke:#efefef}.vue-flow__minimap{border-radius:16px;overflow:hidden;border:2px solid #d8d8d8}.vue-flow__minimap.vue-flow__panel{right:unset;left:0}.dark .vue-flow__minimap{background-color:#000000ba;border-color:#393939}.dark .vue-flow__minimap-mask{opacity:.2}.dark .vue-flow__background.vue-flow__container pattern circle{fill:#2b2b2b}.slide-fade-enter-active,.slide-fade-leave-active{transition:all .3s ease-out}.slide-fade-enter-from,.slide-fade-leave-to{transform:translate(20px);opacity:0}.control-menu{box-shadow:0 2px 4px #00000012}.control-menu .vue-flow__controls{position:relative;display:flex;margin:0}.control-menu .vue-flow__controls .vue-flow__controls-button{width:22px;height:22px;border-bottom:none}.control-menu .vue-flow__controls .vue-flow__controls-button:disabled{opacity:.2}.dark .control-menu .vue-flow__controls .vue-flow__controls-button{background:var(--muted)}.dark .control-menu .vue-flow__controls .vue-flow__controls-button:disabled{opacity:.4}.dark .control-menu .vue-flow__controls .vue-flow__controls-button svg{color:var(--muted-foreground)}.vue-flow__node{background:var(--card);border:1px solid var(--border)}.vue-flow__nodes .vue-flow__node-start{display:flex;align-items:center;justify-content:center;aspect-ratio:1;background-color:#4bdb76;color:#111827;border-radius:1000px;border-color:#1bae25;padding:1rem;font-weight:500;cursor:pointer;-webkit-user-select:none;user-select:none}.vue-flow__nodes .vue-flow__node-finish-flow,.vue-flow__nodes .vue-flow__node-confetti{display:flex;justify-content:center;align-items:center;border-radius:999px;aspect-ratio:1;width:85px}.vue-flow__nodes .vue-flow__node-start{background:linear-gradient(45deg,#059530,#5cf088)}.vue-flow__nodes .vue-flow__node-confetti{background:linear-gradient(45deg,#b61568,#f65ead)}.vue-flow__nodes .vue-flow__node-finish-flow{background:linear-gradient(45deg,#b61515,#f65e5e)}
1
+ .cm-editor{min-height:100%;max-height:200px;padding-block:calc(var(--spacing) * 1);padding-inline:calc(var(--spacing) * 3);border:1px solid var(--input);border-radius:calc(var(--radius) - 2px);background-color:var(--background);--tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / .05));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);color:inherit;transition:all .15s cubic-bezier(.4,0,.2,1)}.cm-editor.cm-focused{outline:3px solid color-mix(in oklab,var(--ring) 50%,transparent);border-style:var(--tw-border-style);border-width:1px;--tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / .05));border-color:var(--ring);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-ring-color: color-mix(in oklab, var(--ring) 50%, transparent)}.cm-line{padding:0!important}.cm-scroller{flex:1}.cm-interpolation{color:#235dff;background:#edf1ff;padding:4px 6px;border-radius:5px;font-weight:600}.dark .cm-editor{background-color:color-mix(in oklab,var(--input) 30%,transparent)}.dark .cm-interpolation{color:#bfbfff;background:#edf1ff26}.vue-flow{position:relative;width:100%;height:100%;overflow:hidden;z-index:0;direction:ltr}.vue-flow__container{position:absolute;height:100%;width:100%;left:0;top:0}.vue-flow__pane{z-index:1}.vue-flow__pane.draggable{cursor:grab}.vue-flow__pane.selection{cursor:pointer}.vue-flow__pane.dragging{cursor:grabbing}.vue-flow__transformationpane{transform-origin:0 0;z-index:2;pointer-events:none}.vue-flow__viewport{z-index:4;overflow:clip}.vue-flow__selection{z-index:6}.vue-flow__edge-labels{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible{outline:none}.vue-flow .vue-flow__edges{pointer-events:none;overflow:visible}.vue-flow__edge-path,.vue-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.vue-flow__edge{pointer-events:visibleStroke;cursor:pointer}.vue-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__edge.animated path.vue-flow__edge-interaction{stroke-dasharray:none;animation:none}.vue-flow__edge.inactive{pointer-events:none}.vue-flow__edge.selected,.vue-flow__edge:focus,.vue-flow__edge:focus-visible{outline:none}.vue-flow__edge.selected .vue-flow__edge-path,.vue-flow__edge:focus .vue-flow__edge-path,.vue-flow__edge:focus-visible .vue-flow__edge-path{stroke:#555}.vue-flow__edge-textwrapper{pointer-events:all}.vue-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__connection{pointer-events:none}.vue-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__connectionline{z-index:1001}.vue-flow__nodes{pointer-events:none;transform-origin:0 0}.vue-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.vue-flow__node.draggable{cursor:grab;pointer-events:all}.vue-flow__node.draggable.dragging{cursor:grabbing}.vue-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.vue-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.vue-flow__nodesselection-rect.dragging{cursor:grabbing}.vue-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px}.vue-flow__handle.connectable{pointer-events:all;cursor:crosshair}.vue-flow__handle-bottom{left:50%;bottom:0;transform:translate(-50%,50%)}.vue-flow__handle-top{left:50%;top:0;transform:translate(-50%,-50%)}.vue-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.vue-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.vue-flow__edgeupdater{cursor:move;pointer-events:all}.vue-flow__panel{position:absolute;z-index:5;margin:15px}.vue-flow__panel.top{top:0}.vue-flow__panel.bottom{bottom:0}.vue-flow__panel.left{left:0}.vue-flow__panel.right{right:0}.vue-flow__panel.center{left:50%;transform:translate(-50%)}@keyframes dashdraw{0%{stroke-dashoffset:10}}:root{--vf-node-bg: #fff;--vf-node-text: #222;--vf-connection-path: #b1b1b7;--vf-handle: #555}.vue-flow__edge.updating .vue-flow__edge-path{stroke:#777}.vue-flow__edge-text{font-size:10px}.vue-flow__edge-textbg{fill:#fff}.vue-flow__connection-path{stroke:var(--vf-connection-path)}.vue-flow__node{cursor:grab}.vue-flow__node.selectable:focus,.vue-flow__node.selectable:focus-visible{outline:none}.vue-flow__node-default,.vue-flow__node-input,.vue-flow__node-output{padding:10px;border-radius:3px;width:150px;font-size:12px;text-align:center;border-width:1px;border-style:solid;color:var(--vf-node-text);background-color:var(--vf-node-bg);border-color:var(--vf-node-color)}.vue-flow__node-default.selected,.vue-flow__node-default.selected:hover,.vue-flow__node-input.selected,.vue-flow__node-input.selected:hover,.vue-flow__node-output.selected,.vue-flow__node-output.selected:hover{box-shadow:0 0 0 .5px var(--vf-box-shadow)}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible,.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible,.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid #555}.vue-flow__node-default .vue-flow__handle,.vue-flow__node-input .vue-flow__handle,.vue-flow__node-output .vue-flow__handle{background:var(--vf-handle)}.vue-flow__node-default.selectable:hover,.vue-flow__node-input.selectable:hover,.vue-flow__node-output.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.vue-flow__node-input{--vf-node-color: var(--vf-node-color, #0041d0);--vf-handle: var(--vf-node-color, #0041d0);--vf-box-shadow: var(--vf-node-color, #0041d0);background:var(--vf-node-bg);border-color:var(--vf-node-color, #0041d0)}.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible{outline:none;border:1px solid var(--vf-node-color, #0041d0)}.vue-flow__node-default{--vf-handle: var(--vf-node-color, #1a192b);--vf-box-shadow: var(--vf-node-color, #1a192b);background:var(--vf-node-bg);border-color:var(--vf-node-color, #1a192b)}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible{outline:none;border:1px solid var(--vf-node-color, #1a192b)}.vue-flow__node-output{--vf-handle: var(--vf-node-color, #ff0072);--vf-box-shadow: var(--vf-node-color, #ff0072);background:var(--vf-node-bg);border-color:var(--vf-node-color, #ff0072)}.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid var(--vf-node-color, #ff0072)}.vue-flow__nodesselection-rect,.vue-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible,.vue-flow__selection:focus,.vue-flow__selection:focus-visible{outline:none}.vue-flow__handle{width:6px;height:6px;background:var(--vf-handle);border:1px solid #fff;border-radius:100%}.vue-flow__controls{box-shadow:0 0 2px 1px #00000014}.vue-flow__controls-button{background:#fefefe;border:none;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;user-select:none;padding:5px}.vue-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.vue-flow__controls-button:hover{background:#f4f4f4}.vue-flow__controls-button:disabled{pointer-events:none}.vue-flow__controls-button:disabled svg{fill-opacity:.4}.vue-flow__minimap{background-color:#fff}.vue-flow__minimap.pannable{cursor:grab}.vue-flow__minimap.dragging{cursor:grabbing}.vue-flow__minimap-mask.pannable{cursor:grab}.vue-flow__background.vue-flow__container pattern circle{fill:#d6d6d6}.vue-flow__node{background-color:#fff;border:1px solid #ececec;border-radius:.5rem;box-shadow:0 2px 5px #0000001a;padding:.5rem;--focus-border-color: #a16aff}.vue-flow__node.selected,.vue-flow__node:focus,.vue-flow__node:focus-visible{border:2px solid var(--focus-border-color)}.vue-flow__handle{height:15px;border-radius:5px}.vue-flow__edge-path,.vue-flow__connection-path{stroke:#7b7b7b;stroke-width:2}.vue-flow__edge.selected .vue-flow__edge-path{stroke:#efefef}.vue-flow__minimap{border-radius:16px;overflow:hidden;border:2px solid #d8d8d8}.vue-flow__minimap.vue-flow__panel{right:unset;left:0}.dark .vue-flow__minimap{background-color:#000000ba;border-color:#393939}.dark .vue-flow__minimap-mask{opacity:.2}.dark .vue-flow__background.vue-flow__container pattern circle{fill:#2b2b2b}.slide-fade-enter-active,.slide-fade-leave-active{transition:all .3s ease-out}.slide-fade-enter-from,.slide-fade-leave-to{transform:translate(20px);opacity:0}.control-menu{box-shadow:0 2px 4px #00000012}.control-menu .vue-flow__controls{position:relative;display:flex;margin:0}.control-menu .vue-flow__controls .vue-flow__controls-button{width:22px;height:22px;border-bottom:none}.control-menu .vue-flow__controls .vue-flow__controls-button:disabled{opacity:.2}.dark .control-menu .vue-flow__controls .vue-flow__controls-button{background:var(--muted)}.dark .control-menu .vue-flow__controls .vue-flow__controls-button:disabled{opacity:.4}.dark .control-menu .vue-flow__controls .vue-flow__controls-button svg{color:var(--muted-foreground)}.vue-flow__node{background:var(--card);border:1px solid var(--border)}.vue-flow__nodes .vue-flow__node-start{display:flex;align-items:center;justify-content:center;aspect-ratio:1;background-color:#4bdb76;color:#111827;border-radius:1000px;border-color:#1bae25;padding:1rem;font-weight:500;cursor:pointer;-webkit-user-select:none;user-select:none}.vue-flow__nodes .vue-flow__node-finish-flow,.vue-flow__nodes .vue-flow__node-confetti{display:flex;justify-content:center;align-items:center;border-radius:999px;aspect-ratio:1;width:85px}.vue-flow__nodes .vue-flow__node-start{background:linear-gradient(45deg,#059530,#5cf088)}.vue-flow__nodes .vue-flow__node-confetti{background:linear-gradient(45deg,#b61568,#f65ead)}.vue-flow__nodes .vue-flow__node-finish-flow{background:linear-gradient(45deg,#b61515,#f65e5e)}.rich-text-editor{display:flex;flex-direction:column;border:1px solid var(--input);border-radius:.5rem;background-color:var(--background);overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease;&--disabled{opacity:.6;pointer-events:none;background-color:var(--muted)}}.rich-text-editor:focus-within{border-color:var(--ring);box-shadow:0 0 0 3px color-mix(in oklab,var(--ring) 20%,transparent)}.rich-text-editor .rich-text-editor__toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;padding:.5rem;border-bottom:1px solid var(--border);background-color:var(--muted)}.rich-text-editor .toolbar-group{display:flex;gap:.125rem}.rich-text-editor .toolbar-divider{width:1px;height:1.5rem;background-color:var(--border);margin:0 .25rem}.rich-text-editor .toolbar-spacer{flex:1}.rich-text-editor .toolbar-btn{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border:none;border-radius:.375rem;background-color:transparent;color:var(--muted-foreground);cursor:pointer;transition:all .15s ease;&--active{background-color:var(--primary)!important;color:var(--primary-foreground)!important}}.rich-text-editor .toolbar-btn:hover:not(:disabled){background-color:var(--accent);color:var(--accent-foreground)}.rich-text-editor .toolbar-btn:active:not(:disabled){transform:scale(.95)}.rich-text-editor .toolbar-btn:disabled{opacity:.4;cursor:not-allowed}.rich-text-editor .rich-text-editor__content{flex:1;display:flex;flex-direction:column}.rich-text-editor .rich-text-editor__content .ProseMirror{flex:1;min-height:var(--min-height, 8rem);max-height:24rem;overflow-y:auto;padding:.75rem 1rem;outline:none;font-size:.9375rem;line-height:1.625}.rich-text-editor .rich-text-editor__content .ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:var(--muted-foreground);pointer-events:none;height:0}.rich-text-editor .rich-text-editor__content .ProseMirror>*+*{margin-top:.5em}.rich-text-editor .rich-text-editor__content .ProseMirror p{margin:0}.rich-text-editor .rich-text-editor__content .ProseMirror h1{font-size:1.75rem;font-weight:700;line-height:1.2;margin:1.5rem 0 .75rem}.rich-text-editor .rich-text-editor__content .ProseMirror h1:first-child{margin-top:0}.rich-text-editor .rich-text-editor__content .ProseMirror h2{font-size:1.375rem;font-weight:600;line-height:1.3;margin:1.25rem 0 .625rem}.rich-text-editor .rich-text-editor__content .ProseMirror h2:first-child{margin-top:0}.rich-text-editor .rich-text-editor__content .ProseMirror h3{font-size:1.125rem;font-weight:600;line-height:1.4;margin:1rem 0 .5rem}.rich-text-editor .rich-text-editor__content .ProseMirror h3:first-child{margin-top:0}.rich-text-editor .rich-text-editor__content .ProseMirror ul,.rich-text-editor .rich-text-editor__content .ProseMirror ol{padding-left:1.5rem;margin:.5rem 0}:is(.rich-text-editor .rich-text-editor__content .ProseMirror ul,.rich-text-editor .rich-text-editor__content .ProseMirror ol) li{margin:.25rem 0}:is(.rich-text-editor .rich-text-editor__content .ProseMirror ul,.rich-text-editor .rich-text-editor__content .ProseMirror ol) li p{margin:0}.rich-text-editor .rich-text-editor__content .ProseMirror ul{list-style-type:disc}.rich-text-editor .rich-text-editor__content .ProseMirror ul ul{list-style-type:circle}.rich-text-editor .rich-text-editor__content .ProseMirror ul ul ul{list-style-type:square}.rich-text-editor .rich-text-editor__content .ProseMirror ol{list-style-type:decimal}.rich-text-editor .rich-text-editor__content .ProseMirror blockquote{border-left:3px solid var(--primary);padding-left:1rem;margin:1rem 0;color:var(--muted-foreground);font-style:italic}.rich-text-editor .rich-text-editor__content .ProseMirror code{background-color:var(--muted);padding:.125rem .375rem;border-radius:.25rem;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:.875em;color:var(--primary)}.rich-text-editor .rich-text-editor__content .ProseMirror pre{background-color:var(--muted);padding:.75rem 1rem;border-radius:.5rem;overflow-x:auto;margin:.75rem 0}.rich-text-editor .rich-text-editor__content .ProseMirror pre code{background:none;padding:0;color:inherit}.rich-text-editor .rich-text-editor__content .ProseMirror hr{border:none;border-top:2px solid var(--border);margin:1.5rem 0}.rich-text-editor .rich-text-editor__content .ProseMirror a{color:var(--primary);text-decoration:underline;text-underline-offset:2px;cursor:pointer}.rich-text-editor .rich-text-editor__content .ProseMirror a:hover{opacity:.8}.rich-text-editor .rich-text-editor__content .ProseMirror mark{background-color:#fef08a;padding:.125rem .25rem;border-radius:.125rem}.rich-text-editor .rich-text-editor__content .ProseMirror .text-left{text-align:left}.rich-text-editor .rich-text-editor__content .ProseMirror .text-center{text-align:center}.rich-text-editor .rich-text-editor__content .ProseMirror .text-right{text-align:right}.rich-text-editor .rich-text-editor__content .ProseMirror .text-justify{text-align:justify}.rich-text-editor .rich-text-editor__content .ProseMirror ::selection{background-color:color-mix(in oklab,var(--primary) 30%,transparent)}.rich-text-editor .rich-text-editor__footer{display:flex;align-items:center;justify-content:flex-end;padding:.375rem .75rem;border-top:1px solid var(--border);background-color:var(--muted)}.rich-text-editor .link-modal-overlay{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background-color:#00000080;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.rich-text-editor .link-modal{background-color:var(--popover);border:1px solid var(--border);border-radius:.75rem;padding:1.25rem;min-width:320px;box-shadow:0 10px 40px #0003}.rich-text-editor .link-input{width:100%;padding:.625rem .875rem;border:1px solid var(--input);border-radius:.375rem;background-color:var(--background);font-size:.875rem;outline:none;transition:border-color .2s ease,box-shadow .2s ease}.rich-text-editor .link-input:focus{border-color:var(--ring);box-shadow:0 0 0 3px color-mix(in oklab,var(--ring) 20%,transparent)}.rich-text-editor .link-input::placeholder{color:var(--muted-foreground)}.rich-text-editor .link-modal-btn{padding:.5rem 1rem;border-radius:.375rem;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s ease;&--secondary{background-color:transparent;border:1px solid var(--border);color:var(--foreground);&:hover{background-color:var(--accent)}}&--primary{background-color:var(--primary);border:none;color:var(--primary-foreground);&:hover{opacity:.9}}}.rich-text-editor .fade-enter-active,.rich-text-editor .fade-leave-active{transition:opacity .2s ease}.rich-text-editor .fade-enter-from,.rich-text-editor .fade-leave-to{opacity:0}.rich-text-editor .scale-fade-enter-active,.rich-text-editor .scale-fade-leave-active{transition:all .2s ease}.rich-text-editor .scale-fade-enter-from,.rich-text-editor .scale-fade-leave-to{opacity:0;transform:scale(.95) translateY(-4px)}.rich-text-editor .toolbar-btn--ai{background:linear-gradient(135deg,color-mix(in oklab,var(--primary) 15%,transparent),color-mix(in oklab,var(--primary) 5%,transparent));border:1px solid color-mix(in oklab,var(--primary) 30%,transparent);padding-left:.5rem;padding-right:.5rem;width:auto}.rich-text-editor .toolbar-btn--ai:hover:not(:disabled){background:linear-gradient(135deg,color-mix(in oklab,var(--primary) 25%,transparent),color-mix(in oklab,var(--primary) 15%,transparent));border-color:color-mix(in oklab,var(--primary) 50%,transparent)}.rich-text-editor .toolbar-btn--ai.toolbar-btn--active{background:var(--primary);border-color:var(--primary)}.dark .rich-text-editor .rich-text-editor__content .ProseMirror mark{background-color:#854d0e}.dark .link-modal-overlay,.dark .ai-panel-overlay{background-color:#000000b3}.dark .rich-text-editor-ai-popover .ai-menu{box-shadow:0 10px 40px #0006,0 0 0 1px #ffffff0d}.dark .ai-panel{box-shadow:0 20px 60px #00000080}.rich-text-editor-ai-popover .ai-menu{position:absolute;top:calc(100% + .5rem);right:0;z-index:100;width:320px;max-height:480px;overflow-y:auto;background-color:var(--popover);border:1px solid var(--border);border-radius:.75rem;box-shadow:0 10px 40px #00000026,0 0 0 1px #0000000d;&__header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--border);background:linear-gradient(135deg,color-mix(in oklab,var(--primary) 8%,transparent),transparent)}&__close{display:flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;border:none;border-radius:.25rem;background:transparent;color:var(--muted-foreground);cursor:pointer;transition:all .15s ease;&:hover{background-color:var(--accent);color:var(--foreground)}}&__selection{padding:.75rem 1rem;background-color:var(--muted);border-bottom:1px solid var(--border);p{margin-top:.25rem;color:var(--foreground)}}&__custom{display:flex;gap:.5rem;padding:.75rem 1rem;border-bottom:1px solid var(--border)}&__input{flex:1;padding:.5rem .75rem;border:1px solid var(--input);border-radius:.375rem;background-color:var(--background);font-size:.8125rem;outline:none;transition:all .15s ease;&:focus{border-color:var(--ring);box-shadow:0 0 0 2px color-mix(in oklab,var(--ring) 20%,transparent)}&::placeholder{color:var(--muted-foreground)}}&__submit{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:none;border-radius:.375rem;background:var(--primary);color:var(--primary-foreground);cursor:pointer;transition:all .15s ease;&:hover:not(:disabled){opacity:.9}&:disabled{opacity:.5;cursor:not-allowed}}&__divider{height:1px;background-color:var(--border);margin:.25rem 0}&__section{padding:.5rem;&-title{display:block;padding:.25rem .5rem;font-size:.6875rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--muted-foreground)}}&__actions{display:flex;flex-direction:column;gap:.125rem}&__action{display:flex;align-items:center;gap:.75rem;width:100%;padding:.5rem;border:none;border-radius:.375rem;background:transparent;text-align:left;cursor:pointer;transition:all .15s ease;&:hover{background-color:var(--accent)}&-text{display:flex;flex-direction:column;gap:.125rem}&-label{font-size:.8125rem;font-weight:500;color:var(--foreground)}&-desc{font-size:.6875rem;color:var(--muted-foreground)}}&__translate{display:flex;gap:.5rem;padding:.25rem .5rem .5rem}&__language-selector{position:relative;flex:1}&__language-btn{display:flex;align-items:center;gap:.5rem;width:100%;padding:.5rem .75rem;border:1px solid var(--input);border-radius:.375rem;background-color:var(--background);font-size:.8125rem;cursor:pointer;transition:all .15s ease;span{flex:1;text-align:left}&:hover{border-color:var(--ring)}}&__language-dropdown{position:absolute;top:calc(100% + .25rem);left:0;right:0;z-index:10;max-height:200px;overflow-y:auto;background-color:var(--popover);border:1px solid var(--border);border-radius:.375rem;box-shadow:0 4px 12px #0000001a}&__language-option{display:block;width:100%;padding:.5rem .75rem;border:none;background:transparent;font-size:.8125rem;text-align:left;cursor:pointer;transition:background-color .15s ease;&:hover{background-color:var(--accent)}&--active{background-color:color-mix(in oklab,var(--primary) 15%,transparent);color:var(--primary);font-weight:500}}&__translate-btn{padding:.5rem 1rem;border:none;border-radius:.375rem;background:var(--primary);color:var(--primary-foreground);font-size:.8125rem;font-weight:500;cursor:pointer;transition:all .15s ease;&:hover{opacity:.9}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneclick.dev/cms-kit",
3
- "version": "0.0.78",
3
+ "version": "0.0.80",
4
4
  "type": "module",
5
5
  "main": "./dist/cms-kit.cjs",
6
6
  "module": "./dist/cms-kit.js",