@mesh.ai/rabbit 0.0.66 → 0.0.67

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.
@@ -1,10 +1,10 @@
1
- (function(K,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],y):(K=typeof globalThis<"u"?globalThis:K||self,y((K["@mesh"]=K["@mesh"]||{},K["@mesh"]["ai/rabbit"]={}),K["react/jsx-runtime"],K.React,K.ReactDOM))})(this,function(K,y,u,pn){"use strict";function od(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const be=od(u),rb=od(pn),d_="";function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J.apply(this,arguments)}function ob(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function aa(...e){return t=>e.forEach(n=>ob(n,t))}function Oe(...e){return u.useCallback(aa(...e),e)}function ht(e,t=[]){let n=[];function r(a,i){const s=u.createContext(i),l=n.length;n=[...n,i];function c(d){const{scope:h,children:g,...p}=d,m=(h==null?void 0:h[e][l])||s,x=u.useMemo(()=>p,Object.values(p));return u.createElement(m.Provider,{value:x},g)}function f(d,h){const g=(h==null?void 0:h[e][l])||s,p=u.useContext(g);if(p)return p;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,f]}const o=()=>{const a=n.map(i=>u.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return u.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,ab(o,...t)]}function ab(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...s,...d}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function pe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function lt(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function wt({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=ib({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=lt(n),l=u.useCallback(c=>{if(a){const d=typeof c=="function"?c(e):c;d!==e&&s(d)}else o(c)},[a,e,o,s]);return[i,l]}function ib({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),a=lt(t);return u.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function ds(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const pt=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{};function fs(e){const[t,n]=u.useState(void 0);return pt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,s=c.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function sb(e,t){return u.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Xt=e=>{const{present:t,children:n}=e,r=lb(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),a=Oe(r.ref,o.ref);return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:a}):null};Xt.displayName="Presence";function lb(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),a=u.useRef("none"),i=e?"mounted":"unmounted",[s,l]=sb(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const c=ia(r.current);a.current=s==="mounted"?c:"none"},[s]),pt(()=>{const c=r.current,f=o.current;if(f!==e){const h=a.current,g=ia(c);e?l("MOUNT"):g==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(f&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),pt(()=>{if(t){const c=d=>{const g=ia(r.current).includes(d.animationName);d.target===t&&g&&pn.flushSync(()=>l("ANIMATION_END"))},f=d=>{d.target===t&&(a.current=ia(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:u.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function ia(e){return(e==null?void 0:e.animationName)||"none"}const Zt=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),a=o.find(cb);if(a){const i=a.props.children,s=o.map(l=>l===a?u.Children.count(i)>1?u.Children.only(null):u.isValidElement(i)?i.props.children:null:l);return u.createElement(hs,J({},r,{ref:t}),u.isValidElement(i)?u.cloneElement(i,void 0,s):null)}return u.createElement(hs,J({},r,{ref:t}),n)});Zt.displayName="Slot";const hs=u.forwardRef((e,t)=>{const{children:n,...r}=e;return u.isValidElement(n)?u.cloneElement(n,{...ub(r,n.props),ref:t?aa(t,n.ref):n.ref}):u.Children.count(n)>1?u.Children.only(null):null});hs.displayName="SlotClone";const ad=({children:e})=>u.createElement(u.Fragment,null,e);function cb(e){return u.isValidElement(e)&&e.type===ad}function ub(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const we=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?Zt:t;return u.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),u.createElement(s,J({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function id(e,t){e&&pn.flushSync(()=>e.dispatchEvent(t))}const sd="Checkbox",[db,h_]=ht(sd),[fb,hb]=db(sd),pb=u.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:l="on",onCheckedChange:c,...f}=e,[d,h]=u.useState(null),g=Oe(t,w=>h(w)),p=u.useRef(!1),m=d?!!d.closest("form"):!0,[x=!1,b]=wt({prop:o,defaultProp:a,onChange:c}),v=u.useRef(x);return u.useEffect(()=>{const w=d==null?void 0:d.form;if(w){const E=()=>b(v.current);return w.addEventListener("reset",E),()=>w.removeEventListener("reset",E)}},[d,b]),u.createElement(fb,{scope:n,state:x,disabled:s},u.createElement(we.button,J({type:"button",role:"checkbox","aria-checked":Ln(x)?"mixed":x,"aria-required":i,"data-state":ld(x),"data-disabled":s?"":void 0,disabled:s,value:l},f,{ref:g,onKeyDown:pe(e.onKeyDown,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:pe(e.onClick,w=>{b(E=>Ln(E)?!0:!E),m&&(p.current=w.isPropagationStopped(),p.current||w.stopPropagation())})})),m&&u.createElement(vb,{control:d,bubbles:!p.current,name:r,value:l,checked:x,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))}),mb="CheckboxIndicator",gb=u.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=hb(mb,n);return u.createElement(Xt,{present:r||Ln(a.state)||a.state===!0},u.createElement(we.span,J({"data-state":ld(a.state),"data-disabled":a.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}),vb=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=u.useRef(null),i=ds(n),s=fs(t);return u.useEffect(()=>{const l=a.current,c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==n&&d){const h=new Event("click",{bubbles:r});l.indeterminate=Ln(n),d.call(l,Ln(n)?!1:n),l.dispatchEvent(h)}},[i,n,r]),u.createElement("input",J({type:"checkbox","aria-hidden":!0,defaultChecked:Ln(n)?!1:n},o,{tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Ln(e){return e==="indeterminate"}function ld(e){return Ln(e)?"indeterminate":e?"checked":"unchecked"}const cd=pb,bb=gb;var yb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const wb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Fn=(e,t)=>{const n=u.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:i,children:s,...l},c)=>u.createElement("svg",{ref:c,...yb,width:o,height:o,stroke:r,strokeWidth:i?Number(a)*24/Number(o):a,className:`lucide lucide-${wb(e)}`,...l},[...t.map(([f,d])=>u.createElement(f,d)),...(Array.isArray(s)?s:[s])||[]]));return n.displayName=`${e}`,n},sa=Fn("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]]),ps=Fn("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),xb=Fn("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),$b=Fn("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Sb=Fn("ChevronsLeftRight",[["path",{d:"m9 7-5 5 5 5",key:"j5w590"}],["path",{d:"m15 7 5 5-5 5",key:"1bl6da"}]]),Cb=Fn("MoreVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),Eb=Fn("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);function ud(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ud(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function dd(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ud(e))&&(r&&(r+=" "),r+=t);return r}function Tb(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=fd(t))&&(r&&(r+=" "),r+=n);return r}function fd(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=fd(e[r]))&&(n&&(n+=" "),n+=t);return n}var ms="-";function Mb(e){var t=kb(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function a(s){var l=s.split(ms);return l[0]===""&&l.length!==1&&l.shift(),hd(l,t)||Pb(s)}function i(s,l){var c=n[s]||[];return l&&o[s]?[].concat(c,o[s]):c}return{getClassGroupId:a,getConflictingClassGroupIds:i}}function hd(e,t){var i;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?hd(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var a=e.join(ms);return(i=t.validators.find(function(s){var l=s.validator;return l(a)}))==null?void 0:i.classGroupId}}var pd=/^\[(.+)\]$/;function Pb(e){if(pd.test(e)){var t=pd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function kb(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=Nb(Object.entries(e.classGroups),n);return o.forEach(function(a){var i=a[0],s=a[1];gs(s,r,i,t)}),r}function gs(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var a=o===""?t:md(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(Ob(o)){gs(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(function(i){var s=i[0],l=i[1];gs(l,md(t,s),n,r)})})}function md(e,t){var n=e;return t.split(ms).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Ob(e){return e.isThemeGetter}function Nb(e,t){return t?e.map(function(n){var r=n[0],o=n[1],a=o.map(function(i){return typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(function(s){var l=s[0],c=s[1];return[t+l,c]})):i});return[r,a]}):e}function _b(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(a,i){n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get:function(i){var s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set:function(i,s){n.has(i)?n.set(i,s):o(i,s)}}}var gd="!";function Db(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var s=[],l=0,c=0,f,d=0;d<i.length;d++){var h=i[d];if(l===0){if(h===r&&(n||i.slice(d,d+o)===t)){s.push(i.slice(c,d)),c=d+o;continue}if(h==="/"){f=d;continue}}h==="["?l++:h==="]"&&l--}var g=s.length===0?i:i.substring(c),p=g.startsWith(gd),m=p?g.substring(1):g,x=f&&f>c?f-c:void 0;return{modifiers:s,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:x}}}function Ab(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function Ib(e){return{cache:_b(e.cacheSize),splitModifiers:Db(e),...Mb(e)}}var Lb=/\s+/;function Fb(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(Lb).map(function(i){var s=n(i),l=s.modifiers,c=s.hasImportantModifier,f=s.baseClassName,d=s.maybePostfixModifierPosition,h=r(d?f.substring(0,d):f),g=!!d;if(!h){if(!d)return{isTailwindClass:!1,originalClassName:i};if(h=r(f),!h)return{isTailwindClass:!1,originalClassName:i};g=!1}var p=Ab(l).join(":"),m=c?p+gd:p;return{isTailwindClass:!0,modifierId:m,classGroupId:h,originalClassName:i,hasPostfixModifier:g}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var s=i.modifierId,l=i.classGroupId,c=i.hasPostfixModifier,f=s+l;return a.has(f)?!1:(a.add(f),o(l,c).forEach(function(d){return a.add(s+d)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function jb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,a,i=s;function s(c){var f=t[0],d=t.slice(1),h=d.reduce(function(g,p){return p(g)},f());return r=Ib(h),o=r.cache.get,a=r.cache.set,i=l,l(c)}function l(c){var f=o(c);if(f)return f;var d=Fb(c,r);return a(c,d),d}return function(){return i(Tb.apply(null,arguments))}}function Le(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var vd=/^\[(?:([a-z-]+):)?(.+)\]$/i,zb=/^\d+\/\d+$/,Bb=new Set(["px","full","screen"]),Wb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Vb=/\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$/,Hb=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Mt(e){return jn(e)||Bb.has(e)||zb.test(e)||vs(e)}function vs(e){return zn(e,"length",Xb)}function Gb(e){return zn(e,"size",bd)}function Ub(e){return zn(e,"position",bd)}function Yb(e){return zn(e,"url",Zb)}function la(e){return zn(e,"number",jn)}function jn(e){return!Number.isNaN(Number(e))}function qb(e){return e.endsWith("%")&&jn(e.slice(0,-1))}function oo(e){return yd(e)||zn(e,"number",yd)}function Ce(e){return vd.test(e)}function ao(){return!0}function mn(e){return Wb.test(e)}function Kb(e){return zn(e,"",Qb)}function zn(e,t,n){var r=vd.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function Xb(e){return Vb.test(e)}function bd(){return!1}function Zb(e){return e.startsWith("url(")}function yd(e){return Number.isInteger(Number(e))}function Qb(e){return Hb.test(e)}function Jb(){var e=Le("colors"),t=Le("spacing"),n=Le("blur"),r=Le("brightness"),o=Le("borderColor"),a=Le("borderRadius"),i=Le("borderSpacing"),s=Le("borderWidth"),l=Le("contrast"),c=Le("grayscale"),f=Le("hueRotate"),d=Le("invert"),h=Le("gap"),g=Le("gradientColorStops"),p=Le("gradientColorStopPositions"),m=Le("inset"),x=Le("margin"),b=Le("opacity"),v=Le("padding"),w=Le("saturate"),E=Le("scale"),S=Le("sepia"),M=Le("skew"),N=Le("space"),T=Le("translate"),O=function(){return["auto","contain","none"]},F=function(){return["auto","hidden","clip","visible","scroll"]},j=function(){return["auto",Ce,t]},H=function(){return[Ce,t]},G=function(){return["",Mt]},L=function(){return["auto",jn,Ce]},C=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},_=function(){return["solid","dashed","dotted","double","none"]},B=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},V=function(){return["start","end","center","between","around","evenly","stretch"]},D=function(){return["","0",Ce]},A=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},W=function(){return[jn,la]},ne=function(){return[jn,Ce]};return{cacheSize:500,theme:{colors:[ao],spacing:[Mt],blur:["none","",mn,Ce],brightness:W(),borderColor:[e],borderRadius:["none","","full",mn,Ce],borderSpacing:H(),borderWidth:G(),contrast:W(),grayscale:D(),hueRotate:ne(),invert:D(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[qb,vs],inset:j(),margin:j(),opacity:W(),padding:H(),saturate:W(),scale:W(),sepia:D(),skew:ne(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",Ce]}],container:["container"],columns:[{columns:[mn]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(C(),[Ce])}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",oo]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ce]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",oo]}],"grid-cols":[{"grid-cols":[ao]}],"col-start-end":[{col:["auto",{span:["full",oo]},Ce]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[ao]}],"row-start-end":[{row:["auto",{span:[oo]},Ce]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ce]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal"].concat(V())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(V(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(V(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",Ce,t]}],"min-w":[{"min-w":["min","max","fit",Ce,Mt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[mn]},mn,Ce]}],h:[{h:[Ce,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Ce,Mt]}],"max-h":[{"max-h":[Ce,t,"min","max","fit"]}],"font-size":[{text:["base",mn,vs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",la]}],"font-family":[{font:[ao]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ce]}],"line-clamp":[{"line-clamp":["none",jn,la]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ce,Mt]}],"list-image":[{"list-image":["none",Ce]}],"list-style-type":[{list:["none","disc","decimal",Ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(_(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Mt]}],"underline-offset":[{"underline-offset":["auto",Ce,Mt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(C(),[Ub])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Gb]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Yb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[].concat(_(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:_()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(_())}],"outline-offset":[{"outline-offset":[Ce,Mt]}],"outline-w":[{outline:[Mt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Mt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",mn,Kb]}],"shadow-color":[{shadow:[ao]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":B()}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",mn,Ce]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ce]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",Ce]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[oo,Ce]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ce]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],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",Ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Mt,la]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},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"],"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"],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-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-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"],"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"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var Rb=jb(Jb);function ge(...e){return Rb(dd(e))}const ey=e=>e.charAt(0).toUpperCase()+e.slice(1),wd=u.forwardRef(({className:e,...t},n)=>y.jsx("span",{className:"rabbit-ds",children:y.jsx(cd,{ref:n,className:ge("h-4 w-4 shrink-0 rounded-sm border-2 border-[#104F95] ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-[#104F95] data-[state=checked]:text-white",e,"rabbit-ds"),...t,children:y.jsx(bb,{className:ge("flex items-center justify-center text-current rabbit-ds"),children:y.jsx(sa,{className:"h-3 w-3"})})})}));wd.displayName=cd.displayName;const xd=wd,$d=u.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,s]=wt({prop:n,onChange:o,defaultProp:r});return u.createElement(we.button,J({type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:pe(e.onClick,()=>{e.disabled||s(!i)})}))}),ty=$d;function ny({icon:e,count:t,label:n,selected:r=!1,onSelectedChange:o}){return y.jsx("div",{className:"rabbit-ds h-7 flex-col w-auto p-0 rounded-full border-0 justify-center items-center inline-flex hover:cursor-pointer focus:outline-1 focus:outline-offset-2",children:y.jsx(ty,{defaultPressed:r,asChild:!0,onPressedChange:o,className:ge("px-4 py-1 rounded-full border flex-row justify-start items-center gap-2.5 flex","data-[state=off]:border-gray-100 data-[state=off]:bg-gray-100 data-[state=off]:text-dove-gray-500","data-[state=on]:border-sky-800 data-[state=on]:bg-sky-100 data-[state=on]:text-sky-800"),children:y.jsxs("div",{children:[e?y.jsx("div",{className:"w-4 h-4 justify-center items-center flex",children:e}):null,y.jsxs("div",{className:"text-sm leading-tight font-semibold",children:[n?y.jsx("span",{children:n}):null," ",t?y.jsxs("span",{children:["(",t,")"]}):null]})]})})})}const bs=u.forwardRef(({className:e,type:t,...n},r)=>y.jsxs("div",{className:"rabbit-ds relative font-sans",children:[t==="search"?y.jsx("div",{className:"absolute text-neutral-400 inset-y-0 left-0 mx-2 pointer-events-none w-5 h-5 my-auto p-0.5 justify-center items-center flex",children:y.jsx(Eb,{})}):null,y.jsx("input",{type:t,className:ge("text-sm min-w-[224px] w-full h-10 px-3 py-2.5 bg-white rounded border border-neutral-400 gap-2.5 focus:outline-none hover:outline-none focus:border-sky-700 hover:border-sky-700 disabled:pointer-events-none disabled:bg-neutral-50 disabled:border-neutral-100 disable:text-neutral-400",e,t==="search"?"pl-8":""),ref:r,...n})]}));bs.displayName="Input",bs.defaultProps={className:""};const ry=bs,Sd="Progress",ca=100,[oy,p_]=ht(Sd),[ay,iy]=oy(Sd),Cd=u.forwardRef((e,t)=>{const{__scopeProgress:n,value:r,max:o,getValueLabel:a=cy,...i}=e,s=ys(o)?o:ca,l=Td(r,s)?r:null,c=ua(l)?a(l,s):void 0;return u.createElement(ay,{scope:n,value:l,max:s},u.createElement(we.div,J({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":ua(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":Ed(l,s),"data-value":l??void 0,"data-max":s},i,{ref:t})))});Cd.propTypes={max(e,t,n){const r=e[t],o=String(r);return r&&!ys(r)?new Error(uy(o,n)):null},value(e,t,n){const r=e[t],o=String(r),a=ys(e.max)?e.max:ca;return r!=null&&!Td(r,a)?new Error(dy(o,n)):null}};const sy="ProgressIndicator",ly=u.forwardRef((e,t)=>{var n;const{__scopeProgress:r,...o}=e,a=iy(sy,r);return u.createElement(we.div,J({"data-state":Ed(a.value,a.max),"data-value":(n=a.value)!==null&&n!==void 0?n:void 0,"data-max":a.max},o,{ref:t}))});function cy(e,t){return`${Math.round(e/t*100)}%`}function Ed(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function ua(e){return typeof e=="number"}function ys(e){return ua(e)&&!isNaN(e)&&e>0}function Td(e,t){return ua(e)&&!isNaN(e)&&e<=t&&e>=0}function uy(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ca}\`.`}function dy(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
1
+ (function(K,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],v):(K=typeof globalThis<"u"?globalThis:K||self,v((K["@mesh"]=K["@mesh"]||{},K["@mesh"]["ai/rabbit"]={}),K["react/jsx-runtime"],K.React,K.ReactDOM))})(this,function(K,v,u,pn){"use strict";function ld(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ve=ld(u),lb=ld(pn),x_="";function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J.apply(this,arguments)}function cb(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function la(...e){return t=>e.forEach(n=>cb(n,t))}function Oe(...e){return u.useCallback(la(...e),e)}function ht(e,t=[]){let n=[];function r(a,i){const s=u.createContext(i),l=n.length;n=[...n,i];function c(d){const{scope:h,children:g,...p}=d,m=(h==null?void 0:h[e][l])||s,x=u.useMemo(()=>p,Object.values(p));return u.createElement(m.Provider,{value:x},g)}function f(d,h){const g=(h==null?void 0:h[e][l])||s,p=u.useContext(g);if(p)return p;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,f]}const o=()=>{const a=n.map(i=>u.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return u.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,ub(o,...t)]}function ub(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...s,...d}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function pe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function lt(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function wt({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=db({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=lt(n),l=u.useCallback(c=>{if(a){const d=typeof c=="function"?c(e):c;d!==e&&s(d)}else o(c)},[a,e,o,s]);return[i,l]}function db({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),a=lt(t);return u.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function ms(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const pt=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{};function gs(e){const[t,n]=u.useState(void 0);return pt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,s=c.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function fb(e,t){return u.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Zt=e=>{const{present:t,children:n}=e,r=hb(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),a=Oe(r.ref,o.ref);return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:a}):null};Zt.displayName="Presence";function hb(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),a=u.useRef("none"),i=e?"mounted":"unmounted",[s,l]=fb(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const c=ca(r.current);a.current=s==="mounted"?c:"none"},[s]),pt(()=>{const c=r.current,f=o.current;if(f!==e){const h=a.current,g=ca(c);e?l("MOUNT"):g==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(f&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),pt(()=>{if(t){const c=d=>{const g=ca(r.current).includes(d.animationName);d.target===t&&g&&pn.flushSync(()=>l("ANIMATION_END"))},f=d=>{d.target===t&&(a.current=ca(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:u.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function ca(e){return(e==null?void 0:e.animationName)||"none"}const Qt=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),a=o.find(pb);if(a){const i=a.props.children,s=o.map(l=>l===a?u.Children.count(i)>1?u.Children.only(null):u.isValidElement(i)?i.props.children:null:l);return u.createElement(vs,J({},r,{ref:t}),u.isValidElement(i)?u.cloneElement(i,void 0,s):null)}return u.createElement(vs,J({},r,{ref:t}),n)});Qt.displayName="Slot";const vs=u.forwardRef((e,t)=>{const{children:n,...r}=e;return u.isValidElement(n)?u.cloneElement(n,{...mb(r,n.props),ref:t?la(t,n.ref):n.ref}):u.Children.count(n)>1?u.Children.only(null):null});vs.displayName="SlotClone";const cd=({children:e})=>u.createElement(u.Fragment,null,e);function pb(e){return u.isValidElement(e)&&e.type===cd}function mb(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const ye=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?Qt:t;return u.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),u.createElement(s,J({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ud(e,t){e&&pn.flushSync(()=>e.dispatchEvent(t))}const dd="Checkbox",[gb,S_]=ht(dd),[vb,bb]=gb(dd),yb=u.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:l="on",onCheckedChange:c,...f}=e,[d,h]=u.useState(null),g=Oe(t,w=>h(w)),p=u.useRef(!1),m=d?!!d.closest("form"):!0,[x=!1,y]=wt({prop:o,defaultProp:a,onChange:c}),b=u.useRef(x);return u.useEffect(()=>{const w=d==null?void 0:d.form;if(w){const E=()=>y(b.current);return w.addEventListener("reset",E),()=>w.removeEventListener("reset",E)}},[d,y]),u.createElement(vb,{scope:n,state:x,disabled:s},u.createElement(ye.button,J({type:"button",role:"checkbox","aria-checked":Fn(x)?"mixed":x,"aria-required":i,"data-state":fd(x),"data-disabled":s?"":void 0,disabled:s,value:l},f,{ref:g,onKeyDown:pe(e.onKeyDown,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:pe(e.onClick,w=>{y(E=>Fn(E)?!0:!E),m&&(p.current=w.isPropagationStopped(),p.current||w.stopPropagation())})})),m&&u.createElement($b,{control:d,bubbles:!p.current,name:r,value:l,checked:x,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))}),wb="CheckboxIndicator",xb=u.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=bb(wb,n);return u.createElement(Zt,{present:r||Fn(a.state)||a.state===!0},u.createElement(ye.span,J({"data-state":fd(a.state),"data-disabled":a.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}),$b=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=u.useRef(null),i=ms(n),s=gs(t);return u.useEffect(()=>{const l=a.current,c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==n&&d){const h=new Event("click",{bubbles:r});l.indeterminate=Fn(n),d.call(l,Fn(n)?!1:n),l.dispatchEvent(h)}},[i,n,r]),u.createElement("input",J({type:"checkbox","aria-hidden":!0,defaultChecked:Fn(n)?!1:n},o,{tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Fn(e){return e==="indeterminate"}function fd(e){return Fn(e)?"indeterminate":e?"checked":"unchecked"}const hd=yb,Sb=xb;var Cb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Eb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),jn=(e,t)=>{const n=u.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:i,children:s,...l},c)=>u.createElement("svg",{ref:c,...Cb,width:o,height:o,stroke:r,strokeWidth:i?Number(a)*24/Number(o):a,className:`lucide lucide-${Eb(e)}`,...l},[...t.map(([f,d])=>u.createElement(f,d)),...(Array.isArray(s)?s:[s])||[]]));return n.displayName=`${e}`,n},ua=jn("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]]),bs=jn("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Mb=jn("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Tb=jn("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Pb=jn("ChevronsLeftRight",[["path",{d:"m9 7-5 5 5 5",key:"j5w590"}],["path",{d:"m15 7 5 5-5 5",key:"1bl6da"}]]),kb=jn("MoreVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),Ob=jn("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);function pd(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=pd(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function md(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=pd(e))&&(r&&(r+=" "),r+=t);return r}function Nb(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=gd(t))&&(r&&(r+=" "),r+=n);return r}function gd(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=gd(e[r]))&&(n&&(n+=" "),n+=t);return n}var ys="-";function _b(e){var t=Ab(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function a(s){var l=s.split(ys);return l[0]===""&&l.length!==1&&l.shift(),vd(l,t)||Db(s)}function i(s,l){var c=n[s]||[];return l&&o[s]?[].concat(c,o[s]):c}return{getClassGroupId:a,getConflictingClassGroupIds:i}}function vd(e,t){var i;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?vd(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var a=e.join(ys);return(i=t.validators.find(function(s){var l=s.validator;return l(a)}))==null?void 0:i.classGroupId}}var bd=/^\[(.+)\]$/;function Db(e){if(bd.test(e)){var t=bd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function Ab(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=Lb(Object.entries(e.classGroups),n);return o.forEach(function(a){var i=a[0],s=a[1];ws(s,r,i,t)}),r}function ws(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var a=o===""?t:yd(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(Ib(o)){ws(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(function(i){var s=i[0],l=i[1];ws(l,yd(t,s),n,r)})})}function yd(e,t){var n=e;return t.split(ys).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Ib(e){return e.isThemeGetter}function Lb(e,t){return t?e.map(function(n){var r=n[0],o=n[1],a=o.map(function(i){return typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(function(s){var l=s[0],c=s[1];return[t+l,c]})):i});return[r,a]}):e}function Fb(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(a,i){n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get:function(i){var s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set:function(i,s){n.has(i)?n.set(i,s):o(i,s)}}}var wd="!";function jb(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var s=[],l=0,c=0,f,d=0;d<i.length;d++){var h=i[d];if(l===0){if(h===r&&(n||i.slice(d,d+o)===t)){s.push(i.slice(c,d)),c=d+o;continue}if(h==="/"){f=d;continue}}h==="["?l++:h==="]"&&l--}var g=s.length===0?i:i.substring(c),p=g.startsWith(wd),m=p?g.substring(1):g,x=f&&f>c?f-c:void 0;return{modifiers:s,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:x}}}function zb(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function Bb(e){return{cache:Fb(e.cacheSize),splitModifiers:jb(e),..._b(e)}}var Wb=/\s+/;function Vb(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(Wb).map(function(i){var s=n(i),l=s.modifiers,c=s.hasImportantModifier,f=s.baseClassName,d=s.maybePostfixModifierPosition,h=r(d?f.substring(0,d):f),g=!!d;if(!h){if(!d)return{isTailwindClass:!1,originalClassName:i};if(h=r(f),!h)return{isTailwindClass:!1,originalClassName:i};g=!1}var p=zb(l).join(":"),m=c?p+wd:p;return{isTailwindClass:!0,modifierId:m,classGroupId:h,originalClassName:i,hasPostfixModifier:g}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var s=i.modifierId,l=i.classGroupId,c=i.hasPostfixModifier,f=s+l;return a.has(f)?!1:(a.add(f),o(l,c).forEach(function(d){return a.add(s+d)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function Hb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,a,i=s;function s(c){var f=t[0],d=t.slice(1),h=d.reduce(function(g,p){return p(g)},f());return r=Bb(h),o=r.cache.get,a=r.cache.set,i=l,l(c)}function l(c){var f=o(c);if(f)return f;var d=Vb(c,r);return a(c,d),d}return function(){return i(Nb.apply(null,arguments))}}function Le(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var xd=/^\[(?:([a-z-]+):)?(.+)\]$/i,Gb=/^\d+\/\d+$/,Ub=new Set(["px","full","screen"]),Yb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qb=/\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$/,Kb=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Tt(e){return zn(e)||Ub.has(e)||Gb.test(e)||xs(e)}function xs(e){return Bn(e,"length",ey)}function Xb(e){return Bn(e,"size",$d)}function Zb(e){return Bn(e,"position",$d)}function Qb(e){return Bn(e,"url",ty)}function da(e){return Bn(e,"number",zn)}function zn(e){return!Number.isNaN(Number(e))}function Jb(e){return e.endsWith("%")&&zn(e.slice(0,-1))}function ao(e){return Sd(e)||Bn(e,"number",Sd)}function Ce(e){return xd.test(e)}function io(){return!0}function mn(e){return Yb.test(e)}function Rb(e){return Bn(e,"",ny)}function Bn(e,t,n){var r=xd.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function ey(e){return qb.test(e)}function $d(){return!1}function ty(e){return e.startsWith("url(")}function Sd(e){return Number.isInteger(Number(e))}function ny(e){return Kb.test(e)}function ry(){var e=Le("colors"),t=Le("spacing"),n=Le("blur"),r=Le("brightness"),o=Le("borderColor"),a=Le("borderRadius"),i=Le("borderSpacing"),s=Le("borderWidth"),l=Le("contrast"),c=Le("grayscale"),f=Le("hueRotate"),d=Le("invert"),h=Le("gap"),g=Le("gradientColorStops"),p=Le("gradientColorStopPositions"),m=Le("inset"),x=Le("margin"),y=Le("opacity"),b=Le("padding"),w=Le("saturate"),E=Le("scale"),S=Le("sepia"),T=Le("skew"),N=Le("space"),M=Le("translate"),O=function(){return["auto","contain","none"]},F=function(){return["auto","hidden","clip","visible","scroll"]},j=function(){return["auto",Ce,t]},H=function(){return[Ce,t]},G=function(){return["",Tt]},L=function(){return["auto",zn,Ce]},C=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},_=function(){return["solid","dashed","dotted","double","none"]},B=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},V=function(){return["start","end","center","between","around","evenly","stretch"]},D=function(){return["","0",Ce]},A=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},W=function(){return[zn,da]},ne=function(){return[zn,Ce]};return{cacheSize:500,theme:{colors:[io],spacing:[Tt],blur:["none","",mn,Ce],brightness:W(),borderColor:[e],borderRadius:["none","","full",mn,Ce],borderSpacing:H(),borderWidth:G(),contrast:W(),grayscale:D(),hueRotate:ne(),invert:D(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[Jb,xs],inset:j(),margin:j(),opacity:W(),padding:H(),saturate:W(),scale:W(),sepia:D(),skew:ne(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",Ce]}],container:["container"],columns:[{columns:[mn]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(C(),[Ce])}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ao]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ce]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",ao]}],"grid-cols":[{"grid-cols":[io]}],"col-start-end":[{col:["auto",{span:["full",ao]},Ce]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[io]}],"row-start-end":[{row:["auto",{span:[ao]},Ce]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ce]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal"].concat(V())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(V(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(V(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",Ce,t]}],"min-w":[{"min-w":["min","max","fit",Ce,Tt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[mn]},mn,Ce]}],h:[{h:[Ce,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Ce,Tt]}],"max-h":[{"max-h":[Ce,t,"min","max","fit"]}],"font-size":[{text:["base",mn,xs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",da]}],"font-family":[{font:[io]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ce]}],"line-clamp":[{"line-clamp":["none",zn,da]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ce,Tt]}],"list-image":[{"list-image":["none",Ce]}],"list-style-type":[{list:["none","disc","decimal",Ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(_(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Tt]}],"underline-offset":[{"underline-offset":["auto",Ce,Tt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(C(),[Zb])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Xb]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Qb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[].concat(_(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:_()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(_())}],"outline-offset":[{"outline-offset":[Ce,Tt]}],"outline-w":[{outline:[Tt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Tt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",mn,Rb]}],"shadow-color":[{shadow:[io]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":B()}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",mn,Ce]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ce]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",Ce]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[ao,Ce]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ce]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],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",Ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Tt,da]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},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"],"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"],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-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-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"],"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"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var oy=Hb(ry);function me(...e){return oy(md(e))}const ay=e=>e.charAt(0).toUpperCase()+e.slice(1),Cd=u.forwardRef(({className:e,...t},n)=>v.jsx("span",{className:"rabbit-ds",children:v.jsx(hd,{ref:n,className:me("h-4 w-4 shrink-0 rounded-sm border-2 border-[#104F95] ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-[#104F95] data-[state=checked]:text-white",e,"rabbit-ds"),...t,children:v.jsx(Sb,{className:me("flex items-center justify-center text-current rabbit-ds"),children:v.jsx(ua,{className:"h-3 w-3"})})})}));Cd.displayName=hd.displayName;const Ed=Cd,Md=u.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,s]=wt({prop:n,onChange:o,defaultProp:r});return u.createElement(ye.button,J({type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:pe(e.onClick,()=>{e.disabled||s(!i)})}))}),iy=Md;function sy({icon:e,count:t,label:n,selected:r=!1,onSelectedChange:o}){return v.jsx("div",{className:"rabbit-ds h-7 flex-col w-auto p-0 rounded-full border-0 justify-center items-center inline-flex hover:cursor-pointer focus:outline-1 focus:outline-offset-2",children:v.jsx(iy,{defaultPressed:r,asChild:!0,onPressedChange:o,className:me("px-4 py-1 rounded-full border flex-row justify-start items-center gap-2.5 flex","data-[state=off]:border-gray-100 data-[state=off]:bg-gray-100 data-[state=off]:text-dove-gray-500","data-[state=on]:border-sky-800 data-[state=on]:bg-sky-100 data-[state=on]:text-sky-800"),children:v.jsxs("div",{children:[e?v.jsx("div",{className:"w-4 h-4 justify-center items-center flex",children:e}):null,v.jsxs("div",{className:"text-sm leading-tight font-semibold",children:[n?v.jsx("span",{children:n}):null," ",t?v.jsxs("span",{children:["(",t,")"]}):null]})]})})})}const $s=u.forwardRef(({className:e,type:t,...n},r)=>v.jsxs("div",{className:"rabbit-ds relative font-sans",children:[t==="search"?v.jsx("div",{className:"absolute text-neutral-400 inset-y-0 left-0 mx-2 pointer-events-none w-5 h-5 my-auto p-0.5 justify-center items-center flex",children:v.jsx(Ob,{})}):null,v.jsx("input",{type:t,className:me("text-sm min-w-[224px] w-full h-10 px-3 py-2.5 bg-white rounded border border-neutral-400 gap-2.5 focus:outline-none hover:outline-none focus:border-sky-700 hover:border-sky-700 disabled:pointer-events-none disabled:bg-neutral-50 disabled:border-neutral-100 disable:text-neutral-400",e,t==="search"?"pl-8":""),ref:r,...n})]}));$s.displayName="Input",$s.defaultProps={className:""};const Td=$s,Pd="Progress",fa=100,[ly,C_]=ht(Pd),[cy,uy]=ly(Pd),kd=u.forwardRef((e,t)=>{const{__scopeProgress:n,value:r,max:o,getValueLabel:a=hy,...i}=e,s=Ss(o)?o:fa,l=Nd(r,s)?r:null,c=ha(l)?a(l,s):void 0;return u.createElement(cy,{scope:n,value:l,max:s},u.createElement(ye.div,J({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":ha(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":Od(l,s),"data-value":l??void 0,"data-max":s},i,{ref:t})))});kd.propTypes={max(e,t,n){const r=e[t],o=String(r);return r&&!Ss(r)?new Error(py(o,n)):null},value(e,t,n){const r=e[t],o=String(r),a=Ss(e.max)?e.max:fa;return r!=null&&!Nd(r,a)?new Error(my(o,n)):null}};const dy="ProgressIndicator",fy=u.forwardRef((e,t)=>{var n;const{__scopeProgress:r,...o}=e,a=uy(dy,r);return u.createElement(ye.div,J({"data-state":Od(a.value,a.max),"data-value":(n=a.value)!==null&&n!==void 0?n:void 0,"data-max":a.max},o,{ref:t}))});function hy(e,t){return`${Math.round(e/t*100)}%`}function Od(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function ha(e){return typeof e=="number"}function Ss(e){return ha(e)&&!isNaN(e)&&e>0}function Nd(e,t){return ha(e)&&!isNaN(e)&&e<=t&&e>=0}function py(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${fa}\`.`}function my(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
2
2
  - a positive number
3
- - less than the value passed to \`max\` (or ${ca} if no \`max\` prop is set)
3
+ - less than the value passed to \`max\` (or ${fa} if no \`max\` prop is set)
4
4
  - \`null\` if the progress is indeterminate.
5
5
 
6
- Defaulting to \`null\`.`}const fy=Cd,hy=ly;var io=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var da={},fa={};Object.defineProperty(fa,"__esModule",{value:!0}),fa.defaultOptions=void 0,fa.defaultOptions={lowercase:!1,precision:1,space:!1,units:["","K","M","B","T","P","E"]};var Bt={};Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.getLocales=Bt.getFractionDigits=Bt.roundTo=Bt.parseValue=void 0;function py(e){const t=parseFloat(e==null?void 0:e.toString());if(isNaN(t))throw new Error("Input value is not a number");if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)throw new RangeError("Input value is outside of safe integer range");return t}Bt.parseValue=py;function my(e,t){if(!Number.isFinite(e))throw new Error("Input value is not a finite number");if(!Number.isInteger(t)||t<0)throw new Error("Precision is not a positive integer");return Number.isInteger(e)?e:parseFloat(e.toFixed(t))}Bt.roundTo=my;function gy(e){var t;if(Number.isInteger(e))return 0;const n=e.toString().split(".")[1];return(t=n==null?void 0:n.length)!==null&&t!==void 0?t:0}Bt.getFractionDigits=gy;function vy(){var e;return typeof navigator>"u"?[]:Array.from((e=navigator.languages)!==null&&e!==void 0?e:[])}Bt.getLocales=vy,Object.defineProperty(da,"__esModule",{value:!0}),da.millify=void 0;const Md=fa,ha=Bt,Pd=1e3;function*kd(e){let t=Pd;for(;;){const n=e/t;if(n<1)return;yield n,t*=Pd}}function Od(e,t){var n,r;const o=t?{...Md.defaultOptions,...t}:Md.defaultOptions;if(!Array.isArray(o.units)||!o.units.length)throw new Error("Option `units` must be a non-empty array");let a;try{a=ha.parseValue(e)}catch(p){return p instanceof Error&&console.warn(`WARN: ${p.message} (millify)`),String(e)}const i=a<0?"-":"";a=Math.abs(a);let s=0;for(const p of kd(a))a=p,s+=1;if(s>=o.units.length)return e.toString();let c=ha.roundTo(a,o.precision);for(const p of kd(c))c=p,s+=1;const f=(n=o.units[s])!==null&&n!==void 0?n:"",d=o.lowercase?f.toLowerCase():f,h=o.space?" ":"",g=c.toLocaleString((r=o.locales)!==null&&r!==void 0?r:ha.getLocales(),{minimumFractionDigits:ha.getFractionDigits(c)});return`${i}${g}${h}${d}`}da.millify=Od;var pa=da.default=Od,Ve=(e=>(e.CLOSED_ACHIEVED="CLOSED_ACHIEVED",e.CLOSED_DROPPED="CLOSED_DROPPED",e.CLOSED_NOT_ACHIEVED="CLOSED_NOT_ACHIEVED",e.ON_TRACK="ON_TRACK",e.OFF_TRACK="OFF_TRACK",e.AT_RISK="AT_RISK",e))(Ve||{});const gr={[Ve.ON_TRACK]:{backgroundColor:"#EAEAEA",indicatorColor:"#EFFFEA",textColor:"#44812F"},[Ve.OFF_TRACK]:{backgroundColor:"#EAEAEA",indicatorColor:"#FFF6D3",textColor:"#8C6A00"},[Ve.AT_RISK]:{backgroundColor:"#EAEAEA",indicatorColor:"#FFF1E4",textColor:"#C62C02"},[Ve.CLOSED_ACHIEVED]:{backgroundColor:"#EAEAEA",indicatorColor:"#DBF2D3",textColor:"#1A5724"},[Ve.CLOSED_DROPPED]:{backgroundColor:"#EAEAEA",indicatorColor:"#CCCCCC",textColor:"#666666"},[Ve.CLOSED_NOT_ACHIEVED]:{backgroundColor:"#EAEAEA",indicatorColor:"#FFE1D9",textColor:"#A12402"}},ws={[Ve.ON_TRACK]:"On-track",[Ve.OFF_TRACK]:"Off-track",[Ve.AT_RISK]:"At-risk",[Ve.CLOSED_ACHIEVED]:"Closed & achieved",[Ve.CLOSED_DROPPED]:"Closed & dropped",[Ve.CLOSED_NOT_ACHIEVED]:"Closed & not achieved"};function Nd({progressInPercentage:e=0,status:t=Ve.ON_TRACK}){const{backgroundColor:n,indicatorColor:r,textColor:o}=gr[t]?gr[t]:gr[Ve.ON_TRACK];return y.jsxs(fy,{className:"rabbit-ds relative overflow-hidden w-full h-5 justify-start items-start inline-flex rounded-md min-w-[210px] box-border",style:{transform:"translateZ(0)",backgroundColor:n},value:e,children:[y.jsx(hy,{className:" w-full h-full transition-transform duration-[660ms] ease-[cubic-bezier(0.65, 0, 0.35, 1)]",style:{transform:`translateX(-${100-e>100?100:100-e}%)`,backgroundColor:r}}),y.jsx("div",{className:"left-0 top-0 absolute justify-start items-center inline-flex",children:y.jsx("div",{className:"px-1 py-0.5 justify-start items-center inline-flex",children:y.jsx("div",{className:"text-xs font-semibold leading-2",style:{color:o},children:ws[t]?ws[t]:ws[Ve.ON_TRACK]})})}),y.jsx("div",{className:"px-1 py-0.5 justify-start items-center inline-flex absolute right-0 top-0",children:y.jsxs("div",{className:"text-right text-xs font-semibold leading-2",style:{color:o},children:[pa(e),"%"]})})]})}function ma(e,[t,n]){return Math.min(n,Math.max(t,e))}const by=u.createContext(void 0);function vr(e){const t=u.useContext(by);return e||t||"ltr"}function ga(e){const t=e+"CollectionProvider",[n,r]=ht(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:p,children:m}=g,x=u.useRef(null),b=u.useRef(new Map).current;return u.createElement(o,{scope:p,itemMap:b,collectionRef:x},m)},s=e+"CollectionSlot",l=u.forwardRef((g,p)=>{const{scope:m,children:x}=g,b=a(s,m),v=Oe(p,b.collectionRef);return u.createElement(Zt,{ref:v},x)}),c=e+"CollectionItemSlot",f="data-radix-collection-item",d=u.forwardRef((g,p)=>{const{scope:m,children:x,...b}=g,v=u.useRef(null),w=Oe(p,v),E=a(c,m);return u.useEffect(()=>(E.itemMap.set(v,{ref:v,...b}),()=>void E.itemMap.delete(v))),u.createElement(Zt,{[f]:"",ref:w},x)});function h(g){const p=a(e+"CollectionConsumer",g);return u.useCallback(()=>{const x=p.collectionRef.current;if(!x)return[];const b=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(p.itemMap.values()).sort((E,S)=>b.indexOf(E.ref.current)-b.indexOf(S.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:i,Slot:l,ItemSlot:d},h,r]}const _d=["PageUp","PageDown"],Dd=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ad={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},so="Slider",[xs,yy,wy]=ga(so),[Id,m_]=ht(so,[wy]),[xy,va]=Id(so),$y=u.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:f,onValueChange:d=()=>{},onValueCommit:h=()=>{},inverted:g=!1,...p}=e,[m,x]=u.useState(null),b=Oe(t,L=>x(L)),v=u.useRef(new Set),w=u.useRef(0),E=i==="horizontal",S=m?!!m.closest("form"):!0,M=E?Sy:Cy,[N=[],T]=wt({prop:f,defaultProp:c,onChange:L=>{var C;(C=[...v.current][w.current])===null||C===void 0||C.focus(),d(L)}}),O=u.useRef(N);function F(L){const C=Dy(N,L);G(L,C)}function j(L){G(L,w.current)}function H(){const L=O.current[w.current];N[w.current]!==L&&h(N)}function G(L,C,{commit:_}={commit:!1}){const B=Fy(a),V=jy(Math.round((L-r)/a)*a+r,B),D=ma(V,[r,o]);T((A=[])=>{const W=Ny(A,D,C);if(Ly(W,l*a)){w.current=W.indexOf(D);const ne=String(W)!==String(A);return ne&&_&&h(W),ne?W:A}else return A})}return u.createElement(xy,{scope:e.__scopeSlider,disabled:s,min:r,max:o,valueIndexToChangeRef:w,thumbs:v.current,values:N,orientation:i},u.createElement(xs.Provider,{scope:e.__scopeSlider},u.createElement(xs.Slot,{scope:e.__scopeSlider},u.createElement(M,J({"aria-disabled":s,"data-disabled":s?"":void 0},p,{ref:b,onPointerDown:pe(p.onPointerDown,()=>{s||(O.current=N)}),min:r,max:o,inverted:g,onSlideStart:s?void 0:F,onSlideMove:s?void 0:j,onSlideEnd:s?void 0:H,onHomeKeyDown:()=>!s&&G(r,0,{commit:!0}),onEndKeyDown:()=>!s&&G(o,N.length-1,{commit:!0}),onStepKeyDown:({event:L,direction:C})=>{if(!s){const V=_d.includes(L.key)||L.shiftKey&&Dd.includes(L.key)?10:1,D=w.current,A=N[D],W=a*V*C;G(A+W,D,{commit:!0})}}})))),S&&N.map((L,C)=>u.createElement(Oy,{key:C,name:n?n+(N.length>1?"[]":""):void 0,value:L})))}),[Ld,Fd]=Id(so,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Sy=u.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:i,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...f}=e,[d,h]=u.useState(null),g=Oe(t,w=>h(w)),p=u.useRef(),m=vr(o),x=m==="ltr",b=x&&!a||!x&&a;function v(w){const E=p.current||d.getBoundingClientRect(),S=[0,E.width],N=$s(S,b?[n,r]:[r,n]);return p.current=E,N(w-E.left)}return u.createElement(Ld,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width"},u.createElement(jd,J({dir:m,"data-orientation":"horizontal"},f,{ref:g,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const E=v(w.clientX);i==null||i(E)},onSlideMove:w=>{const E=v(w.clientX);s==null||s(E)},onSlideEnd:()=>{p.current=void 0,l==null||l()},onStepKeyDown:w=>{const S=Ad[b?"from-left":"from-right"].includes(w.key);c==null||c({event:w,direction:S?-1:1})}})))}),Cy=u.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:s,onStepKeyDown:l,...c}=e,f=u.useRef(null),d=Oe(t,f),h=u.useRef(),g=!o;function p(m){const x=h.current||f.current.getBoundingClientRect(),b=[0,x.height],w=$s(b,g?[r,n]:[n,r]);return h.current=x,w(m-x.top)}return u.createElement(Ld,{scope:e.__scopeSlider,startEdge:g?"bottom":"top",endEdge:g?"top":"bottom",size:"height",direction:g?1:-1},u.createElement(jd,J({"data-orientation":"vertical"},c,{ref:d,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const x=p(m.clientY);a==null||a(x)},onSlideMove:m=>{const x=p(m.clientY);i==null||i(x)},onSlideEnd:()=>{h.current=void 0,s==null||s()},onStepKeyDown:m=>{const b=Ad[g?"from-bottom":"from-top"].includes(m.key);l==null||l({event:m,direction:b?-1:1})}})))}),jd=u.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:l,...c}=e,f=va(so,n);return u.createElement(we.span,J({},c,{ref:t,onKeyDown:pe(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):_d.concat(Dd).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:pe(e.onPointerDown,d=>{const h=d.target;h.setPointerCapture(d.pointerId),d.preventDefault(),f.thumbs.has(h)?h.focus():r(d)}),onPointerMove:pe(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:pe(e.onPointerUp,d=>{const h=d.target;h.hasPointerCapture(d.pointerId)&&(h.releasePointerCapture(d.pointerId),a(d))})}))}),Ey="SliderTrack",Ty=u.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=va(Ey,n);return u.createElement(we.span,J({"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation},r,{ref:t}))}),zd="SliderRange",My=u.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=va(zd,n),a=Fd(zd,n),i=u.useRef(null),s=Oe(t,i),l=o.values.length,c=o.values.map(h=>Wd(h,o.min,o.max)),f=l>1?Math.min(...c):0,d=100-Math.max(...c);return u.createElement(we.span,J({"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0},r,{ref:s,style:{...e.style,[a.startEdge]:f+"%",[a.endEdge]:d+"%"}}))}),Bd="SliderThumb",Py=u.forwardRef((e,t)=>{const n=yy(e.__scopeSlider),[r,o]=u.useState(null),a=Oe(t,s=>o(s)),i=u.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return u.createElement(ky,J({},e,{ref:a,index:i}))}),ky=u.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,...o}=e,a=va(Bd,n),i=Fd(Bd,n),[s,l]=u.useState(null),c=Oe(t,x=>l(x)),f=fs(s),d=a.values[r],h=d===void 0?0:Wd(d,a.min,a.max),g=_y(r,a.values.length),p=f==null?void 0:f[i.size],m=p?Ay(p,h,i.direction):0;return u.useEffect(()=>{if(s)return a.thumbs.add(s),()=>{a.thumbs.delete(s)}},[s,a.thumbs]),u.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[i.startEdge]:`calc(${h}% + ${m}px)`}},u.createElement(xs.ItemSlot,{scope:e.__scopeSlider},u.createElement(we.span,J({role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":a.min,"aria-valuenow":d,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0},o,{ref:c,style:d===void 0?{display:"none"}:e.style,onFocus:pe(e.onFocus,()=>{a.valueIndexToChangeRef.current=r})}))))}),Oy=e=>{const{value:t,...n}=e,r=u.useRef(null),o=ds(t);return u.useEffect(()=>{const a=r.current,i=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(i,"value").set;if(o!==t&&l){const c=new Event("input",{bubbles:!0});l.call(a,t),a.dispatchEvent(c)}},[o,t]),u.createElement("input",J({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function Ny(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function Wd(e,t,n){const a=100/(n-t)*(e-t);return ma(a,[0,100])}function _y(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Dy(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function Ay(e,t,n){const r=e/2,a=$s([0,50],[0,r]);return(r-a(t)*n)*n}function Iy(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function Ly(e,t){if(t>0){const n=Iy(e);return Math.min(...n)>=t}return!0}function $s(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Fy(e){return(String(e).split(".")[1]||"").length}function jy(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}const zy=$y,By=Ty,Wy=My,Vy=Py;function Hy({startValue:e=0,targetValue:t=100,achievedValue:n=0,isReadOnly:r=!1,status:o=Ve.ON_TRACK,onChangeEnd:a=()=>{},onChange:i=()=>{},onThumbClick:s=()=>{}}){const[l,c]=u.useState(n),[f,d]=u.useState(n),h=u.useRef(!0),g=e>t,p=g?t:e,m=g?e:t,x=g?-1:1;u.useEffect(()=>{n!==l&&c(n)},[n]),u.useEffect(()=>{h.current?h.current=!1:a(f)},[f]),u.useEffect(()=>{i(l)},[l]);const b=E=>{c(g?t+e-E:E)},v=E=>{d(g?t+e-E:E)},w=gr[o]?gr[o]:gr[Ve.ON_TRACK];return y.jsxs(zy,{className:"rabbit-ds relative flex items-center select-none touch-none min-w-[200px] w-full box-border",value:[g?t+e-l:l],min:p,max:m,step:x,inverted:p>m,disabled:r,onValueCommit:E=>v(E[0]),onValueChange:E=>b(E[0]),onLostPointerCapture:()=>{f!==l&&d(l)},children:[y.jsx(By,{className:"relative grow h-7 bg-[#EAEAEA] rounded",children:y.jsx(Wy,{className:"absolute bg-white rounded-l h-full",style:{backgroundColor:w.indicatorColor}})}),y.jsxs(Vy,{className:"block w-7 h-7 p-0.5 rounded-2xl focus:outline-none bg-[#1565BC] ","aria-label":"Volume",style:{pointerEvents:r?"none":"auto"},onClick:s,children:[" ",y.jsx(Sb,{color:"white"})]})]})}const Vd=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Hd=dd,qe=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Hd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(c=>{const f=n==null?void 0:n[c],d=a==null?void 0:a[c];if(f===null)return null;const h=Vd(f)||Vd(d);return o[c][h]}),s=n&&Object.entries(n).reduce((c,f)=>{let[d,h]=f;return h===void 0||(c[d]=h),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,f)=>{let{class:d,className:h,...g}=f;return Object.entries(g).every(p=>{let[m,x]=p;return Array.isArray(x)?x.includes({...a,...s}[m]):{...a,...s}[m]===x})?[...c,d,h]:c},[]);return Hd(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)},Gy=qe("rabbit-ds font-sans px-4 py-2 rounded text-sm font-semibold justify-center items-center gap-1 inline-flex transition-colors focus:outline-1 focus:outline-offset-2 disabled:pointer-events-none",{variants:{variant:{filled:"",outline:"",text:""},status:{default:"",error:""},size:{normal:"h-10",small:"h-7",icon:"h-10 w-10 p-2",smallIcon:"h-7 w-7 p-1"}},compoundVariants:[{variant:"filled",status:"default",className:"bg-[#1565BC] text-white hover:bg-[#125AA9] focus:bg-[#104F95] disabled:bg-[#99D2F9]"},{variant:"filled",status:"error",className:"bg-[#C62C02] text-white hover:bg-[#AA2602] focus:bg-[#A12402] disabled:bg-[#F6B9B9]"},{variant:"outline",status:"default",className:"bg-white text-[#1565BC] border border-[#1565BC] hover:text-[#125AA9] hover:border-[#125AA9] focus:border-[#104F95] focus:text-[#104F95] disabled:border-[#104F95] disabled:text-[#104F95]"},{variant:"outline",status:"error",className:"bg-white text-[#C62C02] border border-[#C62C02] hover:text-[#AA2602] hover:border-[#AA2602] focus:border-[#A12402] focus:text-[#A12402] disabled:border-[#F6B9B9] disabled:text-[#F6B9B9]"},{variant:"text",status:"default",className:"bg-white text-[#1565BC] border-0 hover:text-[#125AA9] focus:text-[#104F95] disabled:text-[#104F95]"},{variant:"text",status:"error",className:"bg-white text-[#C62C02] border-0 hover:text-[#AA2602] focus:text-[#A12402] disabled:text-[#F6B9B9]"}],defaultVariants:{variant:"filled",status:"default",size:"normal"}}),Gd=qe("",{variants:{size:{normal:"h-4 w-4",small:"h-3 w-3",icon:"h4 w-4",smallIcon:"h3 w-3"}},defaultVariants:{size:"normal"}}),Qt=u.forwardRef(({className:e,variant:t,iconLeft:n=void 0,iconRight:r=void 0,status:o,size:a,asChild:i=!1,children:s,...l},c)=>{const f=i?Zt:"button";return y.jsx("div",{className:"rabbit-ds",children:y.jsxs(f,{className:ge(Gy({variant:t,className:e,size:a,status:o})),ref:c,...l,children:[n?y.jsx("div",{className:ge(Gd({size:a})),children:n}):null,s,r?y.jsx("div",{className:ge(Gd({size:a})),children:r}):null]})})});Qt.displayName="Button";function Uy(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Ss="dismissableLayer.update",Yy="dismissableLayer.pointerDownOutside",qy="dismissableLayer.focusOutside";let Ud;const Ky=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Cs=u.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,f=u.useContext(Ky),[d,h]=u.useState(null),g=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,p]=u.useState({}),m=Oe(t,T=>h(T)),x=Array.from(f.layers),[b]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),v=x.indexOf(b),w=d?x.indexOf(d):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,S=w>=v,M=Xy(T=>{const O=T.target,F=[...f.branches].some(j=>j.contains(O));!S||F||(a==null||a(T),s==null||s(T),T.defaultPrevented||l==null||l())},g),N=Zy(T=>{const O=T.target;[...f.branches].some(j=>j.contains(O))||(i==null||i(T),s==null||s(T),T.defaultPrevented||l==null||l())},g);return Uy(T=>{w===f.layers.size-1&&(o==null||o(T),!T.defaultPrevented&&l&&(T.preventDefault(),l()))},g),u.useEffect(()=>{if(d)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Ud=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),Yd(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Ud)}},[d,g,r,f]),u.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),Yd())},[d,f]),u.useEffect(()=>{const T=()=>p({});return document.addEventListener(Ss,T),()=>document.removeEventListener(Ss,T)},[]),u.createElement(we.div,J({},c,{ref:m,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,N.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,M.onPointerDownCapture)}))});function Xy(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let c=function(){qd(Yy,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Zy(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e),r=u.useRef(!1);return u.useEffect(()=>{const o=a=>{a.target&&!r.current&&qd(qy,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Yd(){const e=new CustomEvent(Ss);document.dispatchEvent(e)}function qd(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?id(o,a):o.dispatchEvent(a)}let Es=0;function Kd(){u.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Xd()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Xd()),Es++,()=>{Es===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Es--}},[])}function Xd(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Ts="focusScope.autoFocusOnMount",Ms="focusScope.autoFocusOnUnmount",Zd={bubbles:!1,cancelable:!0},Qd=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=u.useState(null),c=lt(o),f=lt(a),d=u.useRef(null),h=Oe(t,m=>l(m)),g=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let m=function(w){if(g.paused||!s)return;const E=w.target;s.contains(E)?d.current=E:gn(d.current,{select:!0})},x=function(w){if(g.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||gn(d.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&gn(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const v=new MutationObserver(b);return s&&v.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),v.disconnect()}}},[r,s,g.paused]),u.useEffect(()=>{if(s){ef.add(g);const m=document.activeElement;if(!s.contains(m)){const b=new CustomEvent(Ts,Zd);s.addEventListener(Ts,c),s.dispatchEvent(b),b.defaultPrevented||(Qy(nw(Jd(s)),{select:!0}),document.activeElement===m&&gn(s))}return()=>{s.removeEventListener(Ts,c),setTimeout(()=>{const b=new CustomEvent(Ms,Zd);s.addEventListener(Ms,f),s.dispatchEvent(b),b.defaultPrevented||gn(m??document.body,{select:!0}),s.removeEventListener(Ms,f),ef.remove(g)},0)}}},[s,c,f,g]);const p=u.useCallback(m=>{if(!n&&!r||g.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(x&&b){const v=m.currentTarget,[w,E]=Jy(v);w&&E?!m.shiftKey&&b===E?(m.preventDefault(),n&&gn(w,{select:!0})):m.shiftKey&&b===w&&(m.preventDefault(),n&&gn(E,{select:!0})):b===v&&m.preventDefault()}},[n,r,g.paused]);return u.createElement(we.div,J({tabIndex:-1},i,{ref:h,onKeyDown:p}))});function Qy(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(gn(r,{select:t}),document.activeElement!==n)return}function Jy(e){const t=Jd(e),n=Rd(t,e),r=Rd(t.reverse(),e);return[n,r]}function Jd(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Rd(e,t){for(const n of e)if(!Ry(n,{upTo:t}))return n}function Ry(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ew(e){return e instanceof HTMLInputElement&&"select"in e}function gn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ew(e)&&t&&e.select()}}const ef=tw();function tw(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=tf(e,t),e.unshift(t)},remove(t){var n;e=tf(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function tf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function nw(e){return e.filter(t=>t.tagName!=="A")}const rw=be["useId".toString()]||(()=>{});let ow=0;function Wt(e){const[t,n]=be.useState(rw());return pt(()=>{e||n(r=>r??String(ow++))},[e]),e||(t?`radix-${t}`:"")}const aw=["top","right","bottom","left"],vn=Math.min,mt=Math.max,ba=Math.round,ya=Math.floor,bn=e=>({x:e,y:e}),iw={left:"right",right:"left",bottom:"top",top:"bottom"},sw={start:"end",end:"start"};function Ps(e,t,n){return mt(e,vn(t,n))}function Jt(e,t){return typeof e=="function"?e(t):e}function Rt(e){return e.split("-")[0]}function br(e){return e.split("-")[1]}function ks(e){return e==="x"?"y":"x"}function Os(e){return e==="y"?"height":"width"}function yr(e){return["top","bottom"].includes(Rt(e))?"y":"x"}function Ns(e){return ks(yr(e))}function lw(e,t,n){n===void 0&&(n=!1);const r=br(e),o=Ns(e),a=Os(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=wa(i)),[i,wa(i)]}function cw(e){const t=wa(e);return[_s(e),t,_s(t)]}function _s(e){return e.replace(/start|end/g,t=>sw[t])}function uw(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function dw(e,t,n,r){const o=br(e);let a=uw(Rt(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(_s)))),a}function wa(e){return e.replace(/left|right|bottom|top/g,t=>iw[t])}function fw(e){return{top:0,right:0,bottom:0,left:0,...e}}function nf(e){return typeof e!="number"?fw(e):{top:e,right:e,bottom:e,left:e}}function xa(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function rf(e,t,n){let{reference:r,floating:o}=e;const a=yr(t),i=Ns(t),s=Os(i),l=Rt(t),c=a==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let g;switch(l){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-o.width,y:d};break;default:g={x:r.x,y:r.y}}switch(br(t)){case"start":g[i]-=h*(n&&c?-1:1);break;case"end":g[i]+=h*(n&&c?-1:1);break}return g}const hw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=rf(c,r,l),h=r,g={},p=0;for(let m=0;m<s.length;m++){const{name:x,fn:b}=s[m],{x:v,y:w,data:E,reset:S}=await b({x:f,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:c,platform:i,elements:{reference:e,floating:t}});if(f=v??f,d=w??d,g={...g,[x]:{...g[x],...E}},S&&p<=50){p++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:f,y:d}=rf(c,h,l)),m=-1;continue}}return{x:f,y:d,placement:h,strategy:o,middlewareData:g}};async function lo(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:g=0}=Jt(t,e),p=nf(g),x=s[h?d==="floating"?"reference":"floating":d],b=xa(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),v=d==="floating"?{...i.floating,x:r,y:o}:i.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),E=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},S=xa(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:w,strategy:l}):v);return{top:(b.top-S.top+p.top)/E.y,bottom:(S.bottom-b.bottom+p.bottom)/E.y,left:(b.left-S.left+p.left)/E.x,right:(S.right-b.right+p.right)/E.x}}const of=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:f=0}=Jt(e,t)||{};if(c==null)return{};const d=nf(f),h={x:n,y:r},g=Ns(o),p=Os(g),m=await i.getDimensions(c),x=g==="y",b=x?"top":"left",v=x?"bottom":"right",w=x?"clientHeight":"clientWidth",E=a.reference[p]+a.reference[g]-h[g]-a.floating[p],S=h[g]-a.reference[g],M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let N=M?M[w]:0;(!N||!await(i.isElement==null?void 0:i.isElement(M)))&&(N=s.floating[w]||a.floating[p]);const T=E/2-S/2,O=N/2-m[p]/2-1,F=vn(d[b],O),j=vn(d[v],O),H=F,G=N-m[p]-j,L=N/2-m[p]/2+T,C=Ps(H,L,G),_=!l.arrow&&br(o)!=null&&L!=C&&a.reference[p]/2-(L<H?F:j)-m[p]/2<0,B=_?L<H?L-H:L-G:0;return{[g]:h[g]+B,data:{[g]:C,centerOffset:L-C-B,..._&&{alignmentOffset:B}},reset:_}}}),pw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...x}=Jt(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const b=Rt(o),v=Rt(s)===s,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=h||(v||!m?[wa(s)]:cw(s));!h&&p!=="none"&&E.push(...dw(s,m,p,w));const S=[s,...E],M=await lo(t,x),N=[];let T=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&N.push(M[b]),d){const H=lw(o,i,w);N.push(M[H[0]],M[H[1]])}if(T=[...T,{placement:o,overflows:N}],!N.every(H=>H<=0)){var O,F;const H=(((O=a.flip)==null?void 0:O.index)||0)+1,G=S[H];if(G)return{data:{index:H,overflows:T},reset:{placement:G}};let L=(F=T.filter(C=>C.overflows[0]<=0).sort((C,_)=>C.overflows[1]-_.overflows[1])[0])==null?void 0:F.placement;if(!L)switch(g){case"bestFit":{var j;const C=(j=T.map(_=>[_.placement,_.overflows.filter(B=>B>0).reduce((B,V)=>B+V,0)]).sort((_,B)=>_[1]-B[1])[0])==null?void 0:j[0];C&&(L=C);break}case"initialPlacement":L=s;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function af(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sf(e){return aw.some(t=>e[t]>=0)}const mw=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Jt(e,t);switch(r){case"referenceHidden":{const a=await lo(t,{...o,elementContext:"reference"}),i=af(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:sf(i)}}}case"escaped":{const a=await lo(t,{...o,altBoundary:!0}),i=af(a,n.floating);return{data:{escapedOffsets:i,escaped:sf(i)}}}default:return{}}}}};async function gw(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Rt(n),s=br(n),l=yr(n)==="y",c=["left","top"].includes(i)?-1:1,f=a&&l?-1:1,d=Jt(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof p=="number"&&(g=s==="end"?p*-1:p),l?{x:g*f,y:h*c}:{x:h*c,y:g*f}}const vw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await gw(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},bw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:x=>{let{x:b,y:v}=x;return{x:b,y:v}}},...l}=Jt(e,t),c={x:n,y:r},f=await lo(t,l),d=yr(Rt(o)),h=ks(d);let g=c[h],p=c[d];if(a){const x=h==="y"?"top":"left",b=h==="y"?"bottom":"right",v=g+f[x],w=g-f[b];g=Ps(v,g,w)}if(i){const x=d==="y"?"top":"left",b=d==="y"?"bottom":"right",v=p+f[x],w=p-f[b];p=Ps(v,p,w)}const m=s.fn({...t,[h]:g,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},yw=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Jt(e,t),f={x:n,y:r},d=yr(o),h=ks(d);let g=f[h],p=f[d];const m=Jt(s,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=h==="y"?"height":"width",E=a.reference[h]-a.floating[w]+x.mainAxis,S=a.reference[h]+a.reference[w]-x.mainAxis;g<E?g=E:g>S&&(g=S)}if(c){var b,v;const w=h==="y"?"width":"height",E=["top","left"].includes(Rt(o)),S=a.reference[d]-a.floating[w]+(E&&((b=i.offset)==null?void 0:b[d])||0)+(E?0:x.crossAxis),M=a.reference[d]+a.reference[w]+(E?0:((v=i.offset)==null?void 0:v[d])||0)-(E?x.crossAxis:0);p<S?p=S:p>M&&(p=M)}return{[h]:g,[d]:p}}}},ww=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:i=()=>{},...s}=Jt(e,t),l=await lo(t,s),c=Rt(n),f=br(n),d=yr(n)==="y",{width:h,height:g}=r.floating;let p,m;c==="top"||c==="bottom"?(p=c,m=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(m=c,p=f==="end"?"top":"bottom");const x=g-l[p],b=h-l[m],v=!t.middlewareData.shift;let w=x,E=b;if(d){const M=h-l.left-l.right;E=f||v?vn(b,M):M}else{const M=g-l.top-l.bottom;w=f||v?vn(x,M):M}if(v&&!f){const M=mt(l.left,0),N=mt(l.right,0),T=mt(l.top,0),O=mt(l.bottom,0);d?E=h-2*(M!==0||N!==0?M+N:mt(l.left,l.right)):w=g-2*(T!==0||O!==0?T+O:mt(l.top,l.bottom))}await i({...t,availableWidth:E,availableHeight:w});const S=await o.getDimensions(a.floating);return h!==S.width||g!==S.height?{reset:{rects:!0}}:{}}}};function yn(e){return lf(e)?(e.nodeName||"").toLowerCase():"#document"}function gt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function en(e){var t;return(t=(lf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lf(e){return e instanceof Node||e instanceof gt(e).Node}function tn(e){return e instanceof Element||e instanceof gt(e).Element}function Vt(e){return e instanceof HTMLElement||e instanceof gt(e).HTMLElement}function cf(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof gt(e).ShadowRoot}function co(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=xt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function xw(e){return["table","td","th"].includes(yn(e))}function Ds(e){const t=As(),n=xt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function $w(e){let t=wr(e);for(;Vt(t)&&!$a(t);){if(Ds(t))return t;t=wr(t)}return null}function As(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $a(e){return["html","body","#document"].includes(yn(e))}function xt(e){return gt(e).getComputedStyle(e)}function Sa(e){return tn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function wr(e){if(yn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cf(e)&&e.host||en(e);return cf(t)?t.host:t}function uf(e){const t=wr(e);return $a(t)?e.ownerDocument?e.ownerDocument.body:e.body:Vt(t)&&co(t)?t:uf(t)}function uo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=uf(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=gt(o);return a?t.concat(i,i.visualViewport||[],co(o)?o:[],i.frameElement&&n?uo(i.frameElement):[]):t.concat(o,uo(o,[],n))}function df(e){const t=xt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Vt(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=ba(n)!==a||ba(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Is(e){return tn(e)?e:e.contextElement}function xr(e){const t=Is(e);if(!Vt(t))return bn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=df(t);let i=(a?ba(n.width):n.width)/r,s=(a?ba(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Sw=bn(0);function ff(e){const t=gt(e);return!As()||!t.visualViewport?Sw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Cw(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==gt(e)?!1:t}function Bn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Is(e);let i=bn(1);t&&(r?tn(r)&&(i=xr(r)):i=xr(e));const s=Cw(a,n,r)?ff(a):bn(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,f=o.width/i.x,d=o.height/i.y;if(a){const h=gt(a),g=r&&tn(r)?gt(r):r;let p=h.frameElement;for(;p&&r&&g!==h;){const m=xr(p),x=p.getBoundingClientRect(),b=xt(p),v=x.left+(p.clientLeft+parseFloat(b.paddingLeft))*m.x,w=x.top+(p.clientTop+parseFloat(b.paddingTop))*m.y;l*=m.x,c*=m.y,f*=m.x,d*=m.y,l+=v,c+=w,p=gt(p).frameElement}}return xa({width:f,height:d,x:l,y:c})}function Ew(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Vt(n),a=en(n);if(n===a)return t;let i={scrollLeft:0,scrollTop:0},s=bn(1);const l=bn(0);if((o||!o&&r!=="fixed")&&((yn(n)!=="body"||co(a))&&(i=Sa(n)),Vt(n))){const c=Bn(n);s=xr(n),l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-i.scrollLeft*s.x+l.x,y:t.y*s.y-i.scrollTop*s.y+l.y}}function Tw(e){return Array.from(e.getClientRects())}function hf(e){return Bn(en(e)).left+Sa(e).scrollLeft}function Mw(e){const t=en(e),n=Sa(e),r=e.ownerDocument.body,o=mt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=mt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+hf(e);const s=-n.scrollTop;return xt(r).direction==="rtl"&&(i+=mt(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}function Pw(e,t){const n=gt(e),r=en(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const c=As();(!c||c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}function kw(e,t){const n=Bn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Vt(e)?xr(e):bn(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,l=o*a.x,c=r*a.y;return{width:i,height:s,x:l,y:c}}function pf(e,t,n){let r;if(t==="viewport")r=Pw(e,n);else if(t==="document")r=Mw(en(e));else if(tn(t))r=kw(t,n);else{const o=ff(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return xa(r)}function mf(e,t){const n=wr(e);return n===t||!tn(n)||$a(n)?!1:xt(n).position==="fixed"||mf(n,t)}function Ow(e,t){const n=t.get(e);if(n)return n;let r=uo(e,[],!1).filter(s=>tn(s)&&yn(s)!=="body"),o=null;const a=xt(e).position==="fixed";let i=a?wr(e):e;for(;tn(i)&&!$a(i);){const s=xt(i),l=Ds(i);!l&&s.position==="fixed"&&(o=null),(a?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||co(i)&&!l&&mf(e,i))?r=r.filter(f=>f!==i):o=s,i=wr(i)}return t.set(e,r),r}function Nw(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Ow(t,this._c):[].concat(n),r],s=i[0],l=i.reduce((c,f)=>{const d=pf(t,f,o);return c.top=mt(d.top,c.top),c.right=vn(d.right,c.right),c.bottom=vn(d.bottom,c.bottom),c.left=mt(d.left,c.left),c},pf(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function _w(e){return df(e)}function Dw(e,t,n){const r=Vt(t),o=en(t),a=n==="fixed",i=Bn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=bn(0);if(r||!r&&!a)if((yn(t)!=="body"||co(o))&&(s=Sa(t)),r){const c=Bn(t,!0,a,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else o&&(l.x=hf(o));return{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function gf(e,t){return!Vt(e)||xt(e).position==="fixed"?null:t?t(e):e.offsetParent}function vf(e,t){const n=gt(e);if(!Vt(e))return n;let r=gf(e,t);for(;r&&xw(r)&&xt(r).position==="static";)r=gf(r,t);return r&&(yn(r)==="html"||yn(r)==="body"&&xt(r).position==="static"&&!Ds(r))?n:r||$w(e)||n}const Aw=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||vf,a=this.getDimensions;return{reference:Dw(t,await o(n),r),floating:{x:0,y:0,...await a(n)}}};function Iw(e){return xt(e).direction==="rtl"}const Lw={convertOffsetParentRelativeRectToViewportRelativeRect:Ew,getDocumentElement:en,getClippingRect:Nw,getOffsetParent:vf,getElementRects:Aw,getClientRects:Tw,getDimensions:_w,getScale:xr,isElement:tn,isRTL:Iw};function Fw(e,t){let n=null,r;const o=en(e);function a(){clearTimeout(r),n&&n.disconnect(),n=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const{left:c,top:f,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const g=ya(f),p=ya(o.clientWidth-(c+d)),m=ya(o.clientHeight-(f+h)),x=ya(c),v={rootMargin:-g+"px "+-p+"px "+-m+"px "+-x+"px",threshold:mt(0,vn(1,l))||1};let w=!0;function E(S){const M=S[0].intersectionRatio;if(M!==l){if(!w)return i();M?i(!1,M):r=setTimeout(()=>{i(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(E,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,v)}n.observe(e)}return i(!0),a}function jw(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Is(e),f=o||a?[...c?uo(c):[],...uo(t)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),a&&b.addEventListener("resize",n)});const d=c&&s?Fw(c,n):null;let h=-1,g=null;i&&(g=new ResizeObserver(b=>{let[v]=b;v&&v.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),c&&!l&&g.observe(c),g.observe(t));let p,m=l?Bn(e):null;l&&x();function x(){const b=Bn(e);m&&(b.x!==m.x||b.y!==m.y||b.width!==m.width||b.height!==m.height)&&n(),m=b,p=requestAnimationFrame(x)}return n(),()=>{f.forEach(b=>{o&&b.removeEventListener("scroll",n),a&&b.removeEventListener("resize",n)}),d&&d(),g&&g.disconnect(),g=null,l&&cancelAnimationFrame(p)}}const zw=(e,t,n)=>{const r=new Map,o={platform:Lw,...n},a={...o.platform,_c:r};return hw(e,t,{...o,platform:a})},Bw=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?of({element:r.current,padding:o}).fn(n):{}:r?of({element:r,padding:o}).fn(n):{}}}};var Ca=typeof document<"u"?u.useLayoutEffect:u.useEffect;function Ea(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ea(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Ea(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function bf(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yf(e,t){const n=bf(e);return Math.round(t*n)/n}function wf(e){const t=be.useRef(e);return Ca(()=>{t.current=e}),t}function Ww(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[f,d]=be.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=be.useState(r);Ea(h,r)||g(r);const[p,m]=be.useState(null),[x,b]=be.useState(null),v=be.useCallback(_=>{_!=M.current&&(M.current=_,m(_))},[m]),w=be.useCallback(_=>{_!==N.current&&(N.current=_,b(_))},[b]),E=a||p,S=i||x,M=be.useRef(null),N=be.useRef(null),T=be.useRef(f),O=wf(l),F=wf(o),j=be.useCallback(()=>{if(!M.current||!N.current)return;const _={placement:t,strategy:n,middleware:h};F.current&&(_.platform=F.current),zw(M.current,N.current,_).then(B=>{const V={...B,isPositioned:!0};H.current&&!Ea(T.current,V)&&(T.current=V,rb.flushSync(()=>{d(V)}))})},[h,t,n,F]);Ca(()=>{c===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(_=>({..._,isPositioned:!1})))},[c]);const H=be.useRef(!1);Ca(()=>(H.current=!0,()=>{H.current=!1}),[]),Ca(()=>{if(E&&(M.current=E),S&&(N.current=S),E&&S){if(O.current)return O.current(E,S,j);j()}},[E,S,j,O]);const G=be.useMemo(()=>({reference:M,floating:N,setReference:v,setFloating:w}),[v,w]),L=be.useMemo(()=>({reference:E,floating:S}),[E,S]),C=be.useMemo(()=>{const _={position:n,left:0,top:0};if(!L.floating)return _;const B=yf(L.floating,f.x),V=yf(L.floating,f.y);return s?{..._,transform:"translate("+B+"px, "+V+"px)",...bf(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:V}},[n,s,L.floating,f.x,f.y]);return be.useMemo(()=>({...f,update:j,refs:G,elements:L,floatingStyles:C}),[f,j,G,L,C])}const xf="Popper",[$f,$r]=ht(xf),[Vw,Sf]=$f(xf),Hw=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return u.createElement(Vw,{scope:t,anchor:r,onAnchorChange:o},n)},Gw="PopperAnchor",Uw=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Sf(Gw,n),i=u.useRef(null),s=Oe(t,i);return u.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:u.createElement(we.div,J({},o,{ref:s}))}),Cf="PopperContent",[Yw,g_]=$f(Cf),qw=u.forwardRef((e,t)=>{var n,r,o,a,i,s,l,c;const{__scopePopper:f,side:d="bottom",sideOffset:h=0,align:g="center",alignOffset:p=0,arrowPadding:m=0,avoidCollisions:x=!0,collisionBoundary:b=[],collisionPadding:v=0,sticky:w="partial",hideWhenDetached:E=!1,updatePositionStrategy:S="optimized",onPlaced:M,...N}=e,T=Sf(Cf,f),[O,F]=u.useState(null),j=Oe(t,me=>F(me)),[H,G]=u.useState(null),L=fs(H),C=(n=L==null?void 0:L.width)!==null&&n!==void 0?n:0,_=(r=L==null?void 0:L.height)!==null&&r!==void 0?r:0,B=d+(g!=="center"?"-"+g:""),V=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},D=Array.isArray(b)?b:[b],A=D.length>0,W={padding:V,boundary:D.filter(Kw),altBoundary:A},{refs:ne,floatingStyles:Q,placement:re,isPositioned:oe,middlewareData:ue}=Ww({strategy:"fixed",placement:B,whileElementsMounted:(...me)=>jw(...me,{animationFrame:S==="always"}),elements:{reference:T.anchor},middleware:[vw({mainAxis:h+_,alignmentAxis:p}),x&&bw({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?yw():void 0,...W}),x&&pw({...W}),ww({...W,apply:({elements:me,rects:ye,availableWidth:Ee,availableHeight:Ke})=>{const{width:Xe,height:ot}=ye.reference,vt=me.floating.style;vt.setProperty("--radix-popper-available-width",`${Ee}px`),vt.setProperty("--radix-popper-available-height",`${Ke}px`),vt.setProperty("--radix-popper-anchor-width",`${Xe}px`),vt.setProperty("--radix-popper-anchor-height",`${ot}px`)}}),H&&Bw({element:H,padding:m}),Xw({arrowWidth:C,arrowHeight:_}),E&&mw({strategy:"referenceHidden",...W})]}),[X,le]=Ef(re),U=lt(M);pt(()=>{oe&&(U==null||U())},[oe,U]);const Z=(o=ue.arrow)===null||o===void 0?void 0:o.x,ie=(a=ue.arrow)===null||a===void 0?void 0:a.y,k=((i=ue.arrow)===null||i===void 0?void 0:i.centerOffset)!==0,[te,ae]=u.useState();return pt(()=>{O&&ae(window.getComputedStyle(O).zIndex)},[O]),u.createElement("div",{ref:ne.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:oe?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(s=ue.transformOrigin)===null||s===void 0?void 0:s.x,(l=ue.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},u.createElement(Yw,{scope:f,placedSide:X,onArrowChange:G,arrowX:Z,arrowY:ie,shouldHideArrow:k},u.createElement(we.div,J({"data-side":X,"data-align":le},N,{ref:j,style:{...N.style,animation:oe?void 0:"none",opacity:(c=ue.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function Kw(e){return e!==null}const Xw=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;const{placement:s,rects:l,middlewareData:c}=t,d=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=d?0:e.arrowWidth,g=d?0:e.arrowHeight,[p,m]=Ef(s),x={start:"0%",center:"50%",end:"100%"}[m],b=((r=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+h/2,v=((a=(i=c.arrow)===null||i===void 0?void 0:i.y)!==null&&a!==void 0?a:0)+g/2;let w="",E="";return p==="bottom"?(w=d?x:`${b}px`,E=`${-g}px`):p==="top"?(w=d?x:`${b}px`,E=`${l.floating.height+g}px`):p==="right"?(w=`${-g}px`,E=d?x:`${v}px`):p==="left"&&(w=`${l.floating.width+g}px`,E=d?x:`${v}px`),{data:{x:w,y:E}}}});function Ef(e){const[t,n="center"]=e.split("-");return[t,n]}const Ta=Hw,Ls=Uw,Fs=qw,js=u.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?pn.createPortal(u.createElement(we.div,J({},o,{ref:t})),r):null}),zs="rovingFocusGroup.onEntryFocus",Zw={bubbles:!1,cancelable:!0},Bs="RovingFocusGroup",[Ws,Tf,Qw]=ga(Bs),[Jw,Sr]=ht(Bs,[Qw]),[Rw,ex]=Jw(Bs),tx=u.forwardRef((e,t)=>u.createElement(Ws.Provider,{scope:e.__scopeRovingFocusGroup},u.createElement(Ws.Slot,{scope:e.__scopeRovingFocusGroup},u.createElement(nx,J({},e,{ref:t}))))),nx=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...f}=e,d=u.useRef(null),h=Oe(t,d),g=vr(a),[p=null,m]=wt({prop:i,defaultProp:s,onChange:l}),[x,b]=u.useState(!1),v=lt(c),w=Tf(n),E=u.useRef(!1),[S,M]=u.useState(0);return u.useEffect(()=>{const N=d.current;if(N)return N.addEventListener(zs,v),()=>N.removeEventListener(zs,v)},[v]),u.createElement(Rw,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:p,onItemFocus:u.useCallback(N=>m(N),[m]),onItemShiftTab:u.useCallback(()=>b(!0),[]),onFocusableItemAdd:u.useCallback(()=>M(N=>N+1),[]),onFocusableItemRemove:u.useCallback(()=>M(N=>N-1),[])},u.createElement(we.div,J({tabIndex:x||S===0?-1:0,"data-orientation":r},f,{ref:h,style:{outline:"none",...e.style},onMouseDown:pe(e.onMouseDown,()=>{E.current=!0}),onFocus:pe(e.onFocus,N=>{const T=!E.current;if(N.target===N.currentTarget&&T&&!x){const O=new CustomEvent(zs,Zw);if(N.currentTarget.dispatchEvent(O),!O.defaultPrevented){const F=w().filter(C=>C.focusable),j=F.find(C=>C.active),H=F.find(C=>C.id===p),L=[j,H,...F].filter(Boolean).map(C=>C.ref.current);Mf(L)}}E.current=!1}),onBlur:pe(e.onBlur,()=>b(!1))})))}),rx="RovingFocusGroupItem",ox=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=Wt(),l=a||s,c=ex(rx,n),f=c.currentTabStopId===l,d=Tf(n),{onFocusableItemAdd:h,onFocusableItemRemove:g}=c;return u.useEffect(()=>{if(r)return h(),()=>g()},[r,h,g]),u.createElement(Ws.ItemSlot,{scope:n,id:l,focusable:r,active:o},u.createElement(we.span,J({tabIndex:f?0:-1,"data-orientation":c.orientation},i,{ref:t,onMouseDown:pe(e.onMouseDown,p=>{r?c.onItemFocus(l):p.preventDefault()}),onFocus:pe(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:pe(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){c.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const m=sx(p,c.orientation,c.dir);if(m!==void 0){p.preventDefault();let b=d().filter(v=>v.focusable).map(v=>v.ref.current);if(m==="last")b.reverse();else if(m==="prev"||m==="next"){m==="prev"&&b.reverse();const v=b.indexOf(p.currentTarget);b=c.loop?lx(b,v+1):b.slice(v+1)}setTimeout(()=>Mf(b))}})})))}),ax={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ix(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function sx(e,t,n){const r=ix(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return ax[r]}function Mf(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function lx(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Vs=tx,Hs=ox;var cx=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Cr=new WeakMap,Ma=new WeakMap,Pa={},Gs=0,Pf=function(e){return e&&(e.host||Pf(e.parentNode))},ux=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Pf(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},dx=function(e,t,n,r){var o=ux(t,Array.isArray(e)?e:[e]);Pa[n]||(Pa[n]=new WeakMap);var a=Pa[n],i=[],s=new Set,l=new Set(o),c=function(d){!d||s.has(d)||(s.add(d),c(d.parentNode))};o.forEach(c);var f=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(s.has(h))f(h);else{var g=h.getAttribute(r),p=g!==null&&g!=="false",m=(Cr.get(h)||0)+1,x=(a.get(h)||0)+1;Cr.set(h,m),a.set(h,x),i.push(h),m===1&&p&&Ma.set(h,!0),x===1&&h.setAttribute(n,"true"),p||h.setAttribute(r,"true")}})};return f(t),s.clear(),Gs++,function(){i.forEach(function(d){var h=Cr.get(d)-1,g=a.get(d)-1;Cr.set(d,h),a.set(d,g),h||(Ma.has(d)||d.removeAttribute(r),Ma.delete(d)),g||d.removeAttribute(n)}),Gs--,Gs||(Cr=new WeakMap,Cr=new WeakMap,Ma=new WeakMap,Pa={})}},kf=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||cx(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),dx(r,o,n,"aria-hidden")):function(){return null}},Ht=function(){return Ht=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Ht.apply(this,arguments)};function Of(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function fx(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var ka="right-scroll-bar-position",Oa="width-before-scroll-bar",hx="with-scroll-bars-hidden",px="--removed-body-scroll-bar-size";function mx(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function gx(e,t){var n=u.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function vx(e,t){return gx(t||null,function(n){return e.forEach(function(r){return mx(r,n)})})}function bx(e){return e}function yx(e,t){t===void 0&&(t=bx);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var l=function(){var f=i;i=[],f.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(f){i.push(f),c()},filter:function(f){return i=i.filter(f),n}}}};return o}function wx(e){e===void 0&&(e={});var t=yx(null);return t.options=Ht({async:!0,ssr:!1},e),t}var Nf=function(e){var t=e.sideCar,n=Of(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return be.createElement(r,Ht({},n))};Nf.isSideCarExport=!0;function xx(e,t){return e.useMedium(t),Nf}var _f=wx(),Us=function(){},Na=be.forwardRef(function(e,t){var n=be.useRef(null),r=be.useState({onScrollCapture:Us,onWheelCapture:Us,onTouchMoveCapture:Us}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,f=e.enabled,d=e.shards,h=e.sideCar,g=e.noIsolation,p=e.inert,m=e.allowPinchZoom,x=e.as,b=x===void 0?"div":x,v=Of(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=h,E=vx([n,t]),S=Ht(Ht({},v),o);return be.createElement(be.Fragment,null,f&&be.createElement(w,{sideCar:_f,removeScrollBar:c,shards:d,noIsolation:g,inert:p,setCallbacks:a,allowPinchZoom:!!m,lockRef:n}),i?be.cloneElement(be.Children.only(s),Ht(Ht({},S),{ref:E})):be.createElement(b,Ht({},S,{className:l,ref:E}),s))});Na.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Na.classNames={fullWidth:Oa,zeroRight:ka};var Df,$x=function(){if(Df)return Df;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Sx(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=$x();return t&&e.setAttribute("nonce",t),e}function Cx(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ex(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Tx=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Sx())&&(Cx(t,n),Ex(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Mx=function(){var e=Tx();return function(t,n){be.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Af=function(){var e=Mx(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Px={left:0,top:0,right:0,gap:0},Ys=function(e){return parseInt(e||"",10)||0},kx=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ys(n),Ys(r),Ys(o)]},Ox=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Px;var t=kx(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Nx=Af(),_x=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
7
- .`.concat(hx,` {
6
+ Defaulting to \`null\`.`}const gy=kd,vy=fy;var so=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var pa={},ma={};Object.defineProperty(ma,"__esModule",{value:!0}),ma.defaultOptions=void 0,ma.defaultOptions={lowercase:!1,precision:1,space:!1,units:["","K","M","B","T","P","E"]};var Wt={};Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.getLocales=Wt.getFractionDigits=Wt.roundTo=Wt.parseValue=void 0;function by(e){const t=parseFloat(e==null?void 0:e.toString());if(isNaN(t))throw new Error("Input value is not a number");if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)throw new RangeError("Input value is outside of safe integer range");return t}Wt.parseValue=by;function yy(e,t){if(!Number.isFinite(e))throw new Error("Input value is not a finite number");if(!Number.isInteger(t)||t<0)throw new Error("Precision is not a positive integer");return Number.isInteger(e)?e:parseFloat(e.toFixed(t))}Wt.roundTo=yy;function wy(e){var t;if(Number.isInteger(e))return 0;const n=e.toString().split(".")[1];return(t=n==null?void 0:n.length)!==null&&t!==void 0?t:0}Wt.getFractionDigits=wy;function xy(){var e;return typeof navigator>"u"?[]:Array.from((e=navigator.languages)!==null&&e!==void 0?e:[])}Wt.getLocales=xy,Object.defineProperty(pa,"__esModule",{value:!0}),pa.millify=void 0;const _d=ma,ga=Wt,Dd=1e3;function*Ad(e){let t=Dd;for(;;){const n=e/t;if(n<1)return;yield n,t*=Dd}}function Id(e,t){var n,r;const o=t?{..._d.defaultOptions,...t}:_d.defaultOptions;if(!Array.isArray(o.units)||!o.units.length)throw new Error("Option `units` must be a non-empty array");let a;try{a=ga.parseValue(e)}catch(p){return p instanceof Error&&console.warn(`WARN: ${p.message} (millify)`),String(e)}const i=a<0?"-":"";a=Math.abs(a);let s=0;for(const p of Ad(a))a=p,s+=1;if(s>=o.units.length)return e.toString();let c=ga.roundTo(a,o.precision);for(const p of Ad(c))c=p,s+=1;const f=(n=o.units[s])!==null&&n!==void 0?n:"",d=o.lowercase?f.toLowerCase():f,h=o.space?" ":"",g=c.toLocaleString((r=o.locales)!==null&&r!==void 0?r:ga.getLocales(),{minimumFractionDigits:ga.getFractionDigits(c)});return`${i}${g}${h}${d}`}pa.millify=Id;var va=pa.default=Id,Ve=(e=>(e.CLOSED_ACHIEVED="CLOSED_ACHIEVED",e.CLOSED_DROPPED="CLOSED_DROPPED",e.CLOSED_NOT_ACHIEVED="CLOSED_NOT_ACHIEVED",e.ON_TRACK="ON_TRACK",e.OFF_TRACK="OFF_TRACK",e.AT_RISK="AT_RISK",e))(Ve||{});const vr={[Ve.ON_TRACK]:{backgroundColor:"#EAEAEA",indicatorColor:"#EFFFEA",textColor:"#44812F"},[Ve.OFF_TRACK]:{backgroundColor:"#EAEAEA",indicatorColor:"#FFF6D3",textColor:"#8C6A00"},[Ve.AT_RISK]:{backgroundColor:"#EAEAEA",indicatorColor:"#FFF1E4",textColor:"#C62C02"},[Ve.CLOSED_ACHIEVED]:{backgroundColor:"#EAEAEA",indicatorColor:"#DBF2D3",textColor:"#1A5724"},[Ve.CLOSED_DROPPED]:{backgroundColor:"#EAEAEA",indicatorColor:"#CCCCCC",textColor:"#666666"},[Ve.CLOSED_NOT_ACHIEVED]:{backgroundColor:"#EAEAEA",indicatorColor:"#FFE1D9",textColor:"#A12402"}},Cs={[Ve.ON_TRACK]:"On-track",[Ve.OFF_TRACK]:"Off-track",[Ve.AT_RISK]:"At-risk",[Ve.CLOSED_ACHIEVED]:"Closed & achieved",[Ve.CLOSED_DROPPED]:"Closed & dropped",[Ve.CLOSED_NOT_ACHIEVED]:"Closed & not achieved"};function Ld({progressInPercentage:e=0,status:t=Ve.ON_TRACK}){const{backgroundColor:n,indicatorColor:r,textColor:o}=vr[t]?vr[t]:vr[Ve.ON_TRACK];return v.jsxs(gy,{className:"rabbit-ds relative overflow-hidden w-full h-5 justify-start items-start inline-flex rounded-md min-w-[210px] box-border",style:{transform:"translateZ(0)",backgroundColor:n},value:e,children:[v.jsx(vy,{className:" w-full h-full transition-transform duration-[660ms] ease-[cubic-bezier(0.65, 0, 0.35, 1)]",style:{transform:`translateX(-${100-e>100?100:100-e}%)`,backgroundColor:r}}),v.jsx("div",{className:"left-0 top-0 absolute justify-start items-center inline-flex",children:v.jsx("div",{className:"px-1 py-0.5 justify-start items-center inline-flex",children:v.jsx("div",{className:"text-xs font-semibold leading-2",style:{color:o},children:Cs[t]?Cs[t]:Cs[Ve.ON_TRACK]})})}),v.jsx("div",{className:"px-1 py-0.5 justify-start items-center inline-flex absolute right-0 top-0",children:v.jsxs("div",{className:"text-right text-xs font-semibold leading-2",style:{color:o},children:[va(e),"%"]})})]})}function ba(e,[t,n]){return Math.min(n,Math.max(t,e))}const $y=u.createContext(void 0);function br(e){const t=u.useContext($y);return e||t||"ltr"}function ya(e){const t=e+"CollectionProvider",[n,r]=ht(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:p,children:m}=g,x=u.useRef(null),y=u.useRef(new Map).current;return u.createElement(o,{scope:p,itemMap:y,collectionRef:x},m)},s=e+"CollectionSlot",l=u.forwardRef((g,p)=>{const{scope:m,children:x}=g,y=a(s,m),b=Oe(p,y.collectionRef);return u.createElement(Qt,{ref:b},x)}),c=e+"CollectionItemSlot",f="data-radix-collection-item",d=u.forwardRef((g,p)=>{const{scope:m,children:x,...y}=g,b=u.useRef(null),w=Oe(p,b),E=a(c,m);return u.useEffect(()=>(E.itemMap.set(b,{ref:b,...y}),()=>void E.itemMap.delete(b))),u.createElement(Qt,{[f]:"",ref:w},x)});function h(g){const p=a(e+"CollectionConsumer",g);return u.useCallback(()=>{const x=p.collectionRef.current;if(!x)return[];const y=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(p.itemMap.values()).sort((E,S)=>y.indexOf(E.ref.current)-y.indexOf(S.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:i,Slot:l,ItemSlot:d},h,r]}const Fd=["PageUp","PageDown"],jd=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],zd={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},lo="Slider",[Es,Sy,Cy]=ya(lo),[Bd,E_]=ht(lo,[Cy]),[Ey,wa]=Bd(lo),My=u.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:f,onValueChange:d=()=>{},onValueCommit:h=()=>{},inverted:g=!1,...p}=e,[m,x]=u.useState(null),y=Oe(t,L=>x(L)),b=u.useRef(new Set),w=u.useRef(0),E=i==="horizontal",S=m?!!m.closest("form"):!0,T=E?Ty:Py,[N=[],M]=wt({prop:f,defaultProp:c,onChange:L=>{var C;(C=[...b.current][w.current])===null||C===void 0||C.focus(),d(L)}}),O=u.useRef(N);function F(L){const C=Fy(N,L);G(L,C)}function j(L){G(L,w.current)}function H(){const L=O.current[w.current];N[w.current]!==L&&h(N)}function G(L,C,{commit:_}={commit:!1}){const B=Wy(a),V=Vy(Math.round((L-r)/a)*a+r,B),D=ba(V,[r,o]);M((A=[])=>{const W=Iy(A,D,C);if(By(W,l*a)){w.current=W.indexOf(D);const ne=String(W)!==String(A);return ne&&_&&h(W),ne?W:A}else return A})}return u.createElement(Ey,{scope:e.__scopeSlider,disabled:s,min:r,max:o,valueIndexToChangeRef:w,thumbs:b.current,values:N,orientation:i},u.createElement(Es.Provider,{scope:e.__scopeSlider},u.createElement(Es.Slot,{scope:e.__scopeSlider},u.createElement(T,J({"aria-disabled":s,"data-disabled":s?"":void 0},p,{ref:y,onPointerDown:pe(p.onPointerDown,()=>{s||(O.current=N)}),min:r,max:o,inverted:g,onSlideStart:s?void 0:F,onSlideMove:s?void 0:j,onSlideEnd:s?void 0:H,onHomeKeyDown:()=>!s&&G(r,0,{commit:!0}),onEndKeyDown:()=>!s&&G(o,N.length-1,{commit:!0}),onStepKeyDown:({event:L,direction:C})=>{if(!s){const V=Fd.includes(L.key)||L.shiftKey&&jd.includes(L.key)?10:1,D=w.current,A=N[D],W=a*V*C;G(A+W,D,{commit:!0})}}})))),S&&N.map((L,C)=>u.createElement(Ay,{key:C,name:n?n+(N.length>1?"[]":""):void 0,value:L})))}),[Wd,Vd]=Bd(lo,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Ty=u.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:i,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...f}=e,[d,h]=u.useState(null),g=Oe(t,w=>h(w)),p=u.useRef(),m=br(o),x=m==="ltr",y=x&&!a||!x&&a;function b(w){const E=p.current||d.getBoundingClientRect(),S=[0,E.width],N=Ms(S,y?[n,r]:[r,n]);return p.current=E,N(w-E.left)}return u.createElement(Wd,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width"},u.createElement(Hd,J({dir:m,"data-orientation":"horizontal"},f,{ref:g,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const E=b(w.clientX);i==null||i(E)},onSlideMove:w=>{const E=b(w.clientX);s==null||s(E)},onSlideEnd:()=>{p.current=void 0,l==null||l()},onStepKeyDown:w=>{const S=zd[y?"from-left":"from-right"].includes(w.key);c==null||c({event:w,direction:S?-1:1})}})))}),Py=u.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:s,onStepKeyDown:l,...c}=e,f=u.useRef(null),d=Oe(t,f),h=u.useRef(),g=!o;function p(m){const x=h.current||f.current.getBoundingClientRect(),y=[0,x.height],w=Ms(y,g?[r,n]:[n,r]);return h.current=x,w(m-x.top)}return u.createElement(Wd,{scope:e.__scopeSlider,startEdge:g?"bottom":"top",endEdge:g?"top":"bottom",size:"height",direction:g?1:-1},u.createElement(Hd,J({"data-orientation":"vertical"},c,{ref:d,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const x=p(m.clientY);a==null||a(x)},onSlideMove:m=>{const x=p(m.clientY);i==null||i(x)},onSlideEnd:()=>{h.current=void 0,s==null||s()},onStepKeyDown:m=>{const y=zd[g?"from-bottom":"from-top"].includes(m.key);l==null||l({event:m,direction:y?-1:1})}})))}),Hd=u.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:l,...c}=e,f=wa(lo,n);return u.createElement(ye.span,J({},c,{ref:t,onKeyDown:pe(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):Fd.concat(jd).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:pe(e.onPointerDown,d=>{const h=d.target;h.setPointerCapture(d.pointerId),d.preventDefault(),f.thumbs.has(h)?h.focus():r(d)}),onPointerMove:pe(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:pe(e.onPointerUp,d=>{const h=d.target;h.hasPointerCapture(d.pointerId)&&(h.releasePointerCapture(d.pointerId),a(d))})}))}),ky="SliderTrack",Oy=u.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=wa(ky,n);return u.createElement(ye.span,J({"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation},r,{ref:t}))}),Gd="SliderRange",Ny=u.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=wa(Gd,n),a=Vd(Gd,n),i=u.useRef(null),s=Oe(t,i),l=o.values.length,c=o.values.map(h=>Yd(h,o.min,o.max)),f=l>1?Math.min(...c):0,d=100-Math.max(...c);return u.createElement(ye.span,J({"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0},r,{ref:s,style:{...e.style,[a.startEdge]:f+"%",[a.endEdge]:d+"%"}}))}),Ud="SliderThumb",_y=u.forwardRef((e,t)=>{const n=Sy(e.__scopeSlider),[r,o]=u.useState(null),a=Oe(t,s=>o(s)),i=u.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return u.createElement(Dy,J({},e,{ref:a,index:i}))}),Dy=u.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,...o}=e,a=wa(Ud,n),i=Vd(Ud,n),[s,l]=u.useState(null),c=Oe(t,x=>l(x)),f=gs(s),d=a.values[r],h=d===void 0?0:Yd(d,a.min,a.max),g=Ly(r,a.values.length),p=f==null?void 0:f[i.size],m=p?jy(p,h,i.direction):0;return u.useEffect(()=>{if(s)return a.thumbs.add(s),()=>{a.thumbs.delete(s)}},[s,a.thumbs]),u.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[i.startEdge]:`calc(${h}% + ${m}px)`}},u.createElement(Es.ItemSlot,{scope:e.__scopeSlider},u.createElement(ye.span,J({role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":a.min,"aria-valuenow":d,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0},o,{ref:c,style:d===void 0?{display:"none"}:e.style,onFocus:pe(e.onFocus,()=>{a.valueIndexToChangeRef.current=r})}))))}),Ay=e=>{const{value:t,...n}=e,r=u.useRef(null),o=ms(t);return u.useEffect(()=>{const a=r.current,i=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(i,"value").set;if(o!==t&&l){const c=new Event("input",{bubbles:!0});l.call(a,t),a.dispatchEvent(c)}},[o,t]),u.createElement("input",J({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function Iy(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function Yd(e,t,n){const a=100/(n-t)*(e-t);return ba(a,[0,100])}function Ly(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Fy(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function jy(e,t,n){const r=e/2,a=Ms([0,50],[0,r]);return(r-a(t)*n)*n}function zy(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function By(e,t){if(t>0){const n=zy(e);return Math.min(...n)>=t}return!0}function Ms(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Wy(e){return(String(e).split(".")[1]||"").length}function Vy(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}const Hy=My,Gy=Oy,Uy=Ny,Yy=_y;function qy({startValue:e=0,targetValue:t=100,achievedValue:n=0,isReadOnly:r=!1,status:o=Ve.ON_TRACK,onChangeEnd:a=()=>{},onChange:i=()=>{},onThumbClick:s=()=>{}}){const[l,c]=u.useState(n),[f,d]=u.useState(n),h=u.useRef(!0),g=e>t,p=g?t:e,m=g?e:t,x=g?-1:1;u.useEffect(()=>{n!==l&&c(n)},[n]),u.useEffect(()=>{h.current?h.current=!1:a(f)},[f]),u.useEffect(()=>{i(l)},[l]);const y=E=>{c(g?t+e-E:E)},b=E=>{d(g?t+e-E:E)},w=vr[o]?vr[o]:vr[Ve.ON_TRACK];return v.jsxs(Hy,{className:"rabbit-ds relative flex items-center select-none touch-none min-w-[200px] w-full box-border",value:[g?t+e-l:l],min:p,max:m,step:x,inverted:p>m,disabled:r,onValueCommit:E=>b(E[0]),onValueChange:E=>y(E[0]),onLostPointerCapture:()=>{f!==l&&d(l)},children:[v.jsx(Gy,{className:"relative grow h-7 bg-[#EAEAEA] rounded",children:v.jsx(Uy,{className:"absolute bg-white rounded-l h-full",style:{backgroundColor:w.indicatorColor}})}),v.jsxs(Yy,{className:"block w-7 h-7 p-0.5 rounded-2xl focus:outline-none bg-[#1565BC] ","aria-label":"Volume",style:{pointerEvents:r?"none":"auto"},onClick:s,children:[" ",v.jsx(Pb,{color:"white"})]})]})}const qd=u.forwardRef((e,t)=>u.createElement(ye.label,J({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),Kd=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Xd=md,Ye=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Xd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(c=>{const f=n==null?void 0:n[c],d=a==null?void 0:a[c];if(f===null)return null;const h=Kd(f)||Kd(d);return o[c][h]}),s=n&&Object.entries(n).reduce((c,f)=>{let[d,h]=f;return h===void 0||(c[d]=h),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,f)=>{let{class:d,className:h,...g}=f;return Object.entries(g).every(p=>{let[m,x]=p;return Array.isArray(x)?x.includes({...a,...s}[m]):{...a,...s}[m]===x})?[...c,d,h]:c},[]);return Xd(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)},Ky=Ye("text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Zd=ve.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:"rabbit-ds",children:v.jsx(qd,{ref:n,className:me(Ky(),e),...t})}));Zd.displayName=qd.displayName;const Qd=Zd,Xy=Ye("rabbit-ds font-sans px-4 py-2 rounded text-sm font-semibold justify-center items-center gap-1 inline-flex transition-colors focus:outline-1 focus:outline-offset-2 disabled:pointer-events-none",{variants:{variant:{filled:"",outline:"",text:""},status:{default:"",error:""},size:{normal:"h-10",small:"h-7",icon:"h-10 w-10 p-2",smallIcon:"h-7 w-7 p-1"}},compoundVariants:[{variant:"filled",status:"default",className:"bg-[#1565BC] text-white hover:bg-[#125AA9] focus:bg-[#104F95] disabled:bg-[#99D2F9]"},{variant:"filled",status:"error",className:"bg-[#C62C02] text-white hover:bg-[#AA2602] focus:bg-[#A12402] disabled:bg-[#F6B9B9]"},{variant:"outline",status:"default",className:"bg-white text-[#1565BC] border border-[#1565BC] hover:text-[#125AA9] hover:border-[#125AA9] focus:border-[#104F95] focus:text-[#104F95] disabled:border-[#104F95] disabled:text-[#104F95]"},{variant:"outline",status:"error",className:"bg-white text-[#C62C02] border border-[#C62C02] hover:text-[#AA2602] hover:border-[#AA2602] focus:border-[#A12402] focus:text-[#A12402] disabled:border-[#F6B9B9] disabled:text-[#F6B9B9]"},{variant:"text",status:"default",className:"bg-white text-[#1565BC] border-0 hover:text-[#125AA9] focus:text-[#104F95] disabled:text-[#104F95]"},{variant:"text",status:"error",className:"bg-white text-[#C62C02] border-0 hover:text-[#AA2602] focus:text-[#A12402] disabled:text-[#F6B9B9]"}],defaultVariants:{variant:"filled",status:"default",size:"normal"}}),Jd=Ye("",{variants:{size:{normal:"h-4 w-4",small:"h-3 w-3",icon:"h4 w-4",smallIcon:"h3 w-3"}},defaultVariants:{size:"normal"}}),Pt=u.forwardRef(({className:e,variant:t,iconLeft:n=void 0,iconRight:r=void 0,status:o,size:a,asChild:i=!1,children:s,...l},c)=>{const f=i?Qt:"button";return v.jsx("div",{className:"rabbit-ds",children:v.jsxs(f,{className:me(Xy({variant:t,className:e,size:a,status:o})),ref:c,...l,children:[n?v.jsx("div",{className:me(Jd({size:a})),children:n}):null,s,r?v.jsx("div",{className:me(Jd({size:a})),children:r}):null]})})});Pt.displayName="Button";function Zy(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Ts="dismissableLayer.update",Qy="dismissableLayer.pointerDownOutside",Jy="dismissableLayer.focusOutside";let Rd;const Ry=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ps=u.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,f=u.useContext(Ry),[d,h]=u.useState(null),g=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,p]=u.useState({}),m=Oe(t,M=>h(M)),x=Array.from(f.layers),[y]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=x.indexOf(y),w=d?x.indexOf(d):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,S=w>=b,T=ew(M=>{const O=M.target,F=[...f.branches].some(j=>j.contains(O));!S||F||(a==null||a(M),s==null||s(M),M.defaultPrevented||l==null||l())},g),N=tw(M=>{const O=M.target;[...f.branches].some(j=>j.contains(O))||(i==null||i(M),s==null||s(M),M.defaultPrevented||l==null||l())},g);return Zy(M=>{w===f.layers.size-1&&(o==null||o(M),!M.defaultPrevented&&l&&(M.preventDefault(),l()))},g),u.useEffect(()=>{if(d)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Rd=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),ef(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Rd)}},[d,g,r,f]),u.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),ef())},[d,f]),u.useEffect(()=>{const M=()=>p({});return document.addEventListener(Ts,M),()=>document.removeEventListener(Ts,M)},[]),u.createElement(ye.div,J({},c,{ref:m,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,N.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,T.onPointerDownCapture)}))});function ew(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let c=function(){tf(Qy,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function tw(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e),r=u.useRef(!1);return u.useEffect(()=>{const o=a=>{a.target&&!r.current&&tf(Jy,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ef(){const e=new CustomEvent(Ts);document.dispatchEvent(e)}function tf(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ud(o,a):o.dispatchEvent(a)}let ks=0;function nf(){u.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:rf()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:rf()),ks++,()=>{ks===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),ks--}},[])}function rf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Os="focusScope.autoFocusOnMount",Ns="focusScope.autoFocusOnUnmount",of={bubbles:!1,cancelable:!0},af=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=u.useState(null),c=lt(o),f=lt(a),d=u.useRef(null),h=Oe(t,m=>l(m)),g=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let m=function(w){if(g.paused||!s)return;const E=w.target;s.contains(E)?d.current=E:gn(d.current,{select:!0})},x=function(w){if(g.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||gn(d.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&gn(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),b.disconnect()}}},[r,s,g.paused]),u.useEffect(()=>{if(s){cf.add(g);const m=document.activeElement;if(!s.contains(m)){const y=new CustomEvent(Os,of);s.addEventListener(Os,c),s.dispatchEvent(y),y.defaultPrevented||(nw(sw(sf(s)),{select:!0}),document.activeElement===m&&gn(s))}return()=>{s.removeEventListener(Os,c),setTimeout(()=>{const y=new CustomEvent(Ns,of);s.addEventListener(Ns,f),s.dispatchEvent(y),y.defaultPrevented||gn(m??document.body,{select:!0}),s.removeEventListener(Ns,f),cf.remove(g)},0)}}},[s,c,f,g]);const p=u.useCallback(m=>{if(!n&&!r||g.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(x&&y){const b=m.currentTarget,[w,E]=rw(b);w&&E?!m.shiftKey&&y===E?(m.preventDefault(),n&&gn(w,{select:!0})):m.shiftKey&&y===w&&(m.preventDefault(),n&&gn(E,{select:!0})):y===b&&m.preventDefault()}},[n,r,g.paused]);return u.createElement(ye.div,J({tabIndex:-1},i,{ref:h,onKeyDown:p}))});function nw(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(gn(r,{select:t}),document.activeElement!==n)return}function rw(e){const t=sf(e),n=lf(t,e),r=lf(t.reverse(),e);return[n,r]}function sf(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function lf(e,t){for(const n of e)if(!ow(n,{upTo:t}))return n}function ow(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function aw(e){return e instanceof HTMLInputElement&&"select"in e}function gn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&aw(e)&&t&&e.select()}}const cf=iw();function iw(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=uf(e,t),e.unshift(t)},remove(t){var n;e=uf(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function uf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function sw(e){return e.filter(t=>t.tagName!=="A")}const lw=ve["useId".toString()]||(()=>{});let cw=0;function Vt(e){const[t,n]=ve.useState(lw());return pt(()=>{e||n(r=>r??String(cw++))},[e]),e||(t?`radix-${t}`:"")}const uw=["top","right","bottom","left"],vn=Math.min,mt=Math.max,xa=Math.round,$a=Math.floor,bn=e=>({x:e,y:e}),dw={left:"right",right:"left",bottom:"top",top:"bottom"},fw={start:"end",end:"start"};function _s(e,t,n){return mt(e,vn(t,n))}function Jt(e,t){return typeof e=="function"?e(t):e}function Rt(e){return e.split("-")[0]}function yr(e){return e.split("-")[1]}function Ds(e){return e==="x"?"y":"x"}function As(e){return e==="y"?"height":"width"}function wr(e){return["top","bottom"].includes(Rt(e))?"y":"x"}function Is(e){return Ds(wr(e))}function hw(e,t,n){n===void 0&&(n=!1);const r=yr(e),o=Is(e),a=As(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Sa(i)),[i,Sa(i)]}function pw(e){const t=Sa(e);return[Ls(e),t,Ls(t)]}function Ls(e){return e.replace(/start|end/g,t=>fw[t])}function mw(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function gw(e,t,n,r){const o=yr(e);let a=mw(Rt(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Ls)))),a}function Sa(e){return e.replace(/left|right|bottom|top/g,t=>dw[t])}function vw(e){return{top:0,right:0,bottom:0,left:0,...e}}function df(e){return typeof e!="number"?vw(e):{top:e,right:e,bottom:e,left:e}}function Ca(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ff(e,t,n){let{reference:r,floating:o}=e;const a=wr(t),i=Is(t),s=As(i),l=Rt(t),c=a==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let g;switch(l){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-o.width,y:d};break;default:g={x:r.x,y:r.y}}switch(yr(t)){case"start":g[i]-=h*(n&&c?-1:1);break;case"end":g[i]+=h*(n&&c?-1:1);break}return g}const bw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=ff(c,r,l),h=r,g={},p=0;for(let m=0;m<s.length;m++){const{name:x,fn:y}=s[m],{x:b,y:w,data:E,reset:S}=await y({x:f,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:c,platform:i,elements:{reference:e,floating:t}});if(f=b??f,d=w??d,g={...g,[x]:{...g[x],...E}},S&&p<=50){p++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:f,y:d}=ff(c,h,l)),m=-1;continue}}return{x:f,y:d,placement:h,strategy:o,middlewareData:g}};async function co(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:g=0}=Jt(t,e),p=df(g),x=s[h?d==="floating"?"reference":"floating":d],y=Ca(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b=d==="floating"?{...i.floating,x:r,y:o}:i.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),E=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},S=Ca(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:w,strategy:l}):b);return{top:(y.top-S.top+p.top)/E.y,bottom:(S.bottom-y.bottom+p.bottom)/E.y,left:(y.left-S.left+p.left)/E.x,right:(S.right-y.right+p.right)/E.x}}const hf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:f=0}=Jt(e,t)||{};if(c==null)return{};const d=df(f),h={x:n,y:r},g=Is(o),p=As(g),m=await i.getDimensions(c),x=g==="y",y=x?"top":"left",b=x?"bottom":"right",w=x?"clientHeight":"clientWidth",E=a.reference[p]+a.reference[g]-h[g]-a.floating[p],S=h[g]-a.reference[g],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let N=T?T[w]:0;(!N||!await(i.isElement==null?void 0:i.isElement(T)))&&(N=s.floating[w]||a.floating[p]);const M=E/2-S/2,O=N/2-m[p]/2-1,F=vn(d[y],O),j=vn(d[b],O),H=F,G=N-m[p]-j,L=N/2-m[p]/2+M,C=_s(H,L,G),_=!l.arrow&&yr(o)!=null&&L!=C&&a.reference[p]/2-(L<H?F:j)-m[p]/2<0,B=_?L<H?L-H:L-G:0;return{[g]:h[g]+B,data:{[g]:C,centerOffset:L-C-B,..._&&{alignmentOffset:B}},reset:_}}}),yw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...x}=Jt(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Rt(o),b=Rt(s)===s,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=h||(b||!m?[Sa(s)]:pw(s));!h&&p!=="none"&&E.push(...gw(s,m,p,w));const S=[s,...E],T=await co(t,x),N=[];let M=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&N.push(T[y]),d){const H=hw(o,i,w);N.push(T[H[0]],T[H[1]])}if(M=[...M,{placement:o,overflows:N}],!N.every(H=>H<=0)){var O,F;const H=(((O=a.flip)==null?void 0:O.index)||0)+1,G=S[H];if(G)return{data:{index:H,overflows:M},reset:{placement:G}};let L=(F=M.filter(C=>C.overflows[0]<=0).sort((C,_)=>C.overflows[1]-_.overflows[1])[0])==null?void 0:F.placement;if(!L)switch(g){case"bestFit":{var j;const C=(j=M.map(_=>[_.placement,_.overflows.filter(B=>B>0).reduce((B,V)=>B+V,0)]).sort((_,B)=>_[1]-B[1])[0])==null?void 0:j[0];C&&(L=C);break}case"initialPlacement":L=s;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function pf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function mf(e){return uw.some(t=>e[t]>=0)}const ww=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Jt(e,t);switch(r){case"referenceHidden":{const a=await co(t,{...o,elementContext:"reference"}),i=pf(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:mf(i)}}}case"escaped":{const a=await co(t,{...o,altBoundary:!0}),i=pf(a,n.floating);return{data:{escapedOffsets:i,escaped:mf(i)}}}default:return{}}}}};async function xw(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Rt(n),s=yr(n),l=wr(n)==="y",c=["left","top"].includes(i)?-1:1,f=a&&l?-1:1,d=Jt(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof p=="number"&&(g=s==="end"?p*-1:p),l?{x:g*f,y:h*c}:{x:h*c,y:g*f}}const $w=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await xw(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},Sw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:x=>{let{x:y,y:b}=x;return{x:y,y:b}}},...l}=Jt(e,t),c={x:n,y:r},f=await co(t,l),d=wr(Rt(o)),h=Ds(d);let g=c[h],p=c[d];if(a){const x=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=g+f[x],w=g-f[y];g=_s(b,g,w)}if(i){const x=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=p+f[x],w=p-f[y];p=_s(b,p,w)}const m=s.fn({...t,[h]:g,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},Cw=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Jt(e,t),f={x:n,y:r},d=wr(o),h=Ds(d);let g=f[h],p=f[d];const m=Jt(s,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=h==="y"?"height":"width",E=a.reference[h]-a.floating[w]+x.mainAxis,S=a.reference[h]+a.reference[w]-x.mainAxis;g<E?g=E:g>S&&(g=S)}if(c){var y,b;const w=h==="y"?"width":"height",E=["top","left"].includes(Rt(o)),S=a.reference[d]-a.floating[w]+(E&&((y=i.offset)==null?void 0:y[d])||0)+(E?0:x.crossAxis),T=a.reference[d]+a.reference[w]+(E?0:((b=i.offset)==null?void 0:b[d])||0)-(E?x.crossAxis:0);p<S?p=S:p>T&&(p=T)}return{[h]:g,[d]:p}}}},Ew=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:i=()=>{},...s}=Jt(e,t),l=await co(t,s),c=Rt(n),f=yr(n),d=wr(n)==="y",{width:h,height:g}=r.floating;let p,m;c==="top"||c==="bottom"?(p=c,m=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(m=c,p=f==="end"?"top":"bottom");const x=g-l[p],y=h-l[m],b=!t.middlewareData.shift;let w=x,E=y;if(d){const T=h-l.left-l.right;E=f||b?vn(y,T):T}else{const T=g-l.top-l.bottom;w=f||b?vn(x,T):T}if(b&&!f){const T=mt(l.left,0),N=mt(l.right,0),M=mt(l.top,0),O=mt(l.bottom,0);d?E=h-2*(T!==0||N!==0?T+N:mt(l.left,l.right)):w=g-2*(M!==0||O!==0?M+O:mt(l.top,l.bottom))}await i({...t,availableWidth:E,availableHeight:w});const S=await o.getDimensions(a.floating);return h!==S.width||g!==S.height?{reset:{rects:!0}}:{}}}};function yn(e){return gf(e)?(e.nodeName||"").toLowerCase():"#document"}function gt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function en(e){var t;return(t=(gf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gf(e){return e instanceof Node||e instanceof gt(e).Node}function tn(e){return e instanceof Element||e instanceof gt(e).Element}function Ht(e){return e instanceof HTMLElement||e instanceof gt(e).HTMLElement}function vf(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof gt(e).ShadowRoot}function uo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=xt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Mw(e){return["table","td","th"].includes(yn(e))}function Fs(e){const t=js(),n=xt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Tw(e){let t=xr(e);for(;Ht(t)&&!Ea(t);){if(Fs(t))return t;t=xr(t)}return null}function js(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ea(e){return["html","body","#document"].includes(yn(e))}function xt(e){return gt(e).getComputedStyle(e)}function Ma(e){return tn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function xr(e){if(yn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vf(e)&&e.host||en(e);return vf(t)?t.host:t}function bf(e){const t=xr(e);return Ea(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ht(t)&&uo(t)?t:bf(t)}function fo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=bf(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=gt(o);return a?t.concat(i,i.visualViewport||[],uo(o)?o:[],i.frameElement&&n?fo(i.frameElement):[]):t.concat(o,fo(o,[],n))}function yf(e){const t=xt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ht(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=xa(n)!==a||xa(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function zs(e){return tn(e)?e:e.contextElement}function $r(e){const t=zs(e);if(!Ht(t))return bn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=yf(t);let i=(a?xa(n.width):n.width)/r,s=(a?xa(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Pw=bn(0);function wf(e){const t=gt(e);return!js()||!t.visualViewport?Pw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kw(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==gt(e)?!1:t}function Wn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=zs(e);let i=bn(1);t&&(r?tn(r)&&(i=$r(r)):i=$r(e));const s=kw(a,n,r)?wf(a):bn(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,f=o.width/i.x,d=o.height/i.y;if(a){const h=gt(a),g=r&&tn(r)?gt(r):r;let p=h.frameElement;for(;p&&r&&g!==h;){const m=$r(p),x=p.getBoundingClientRect(),y=xt(p),b=x.left+(p.clientLeft+parseFloat(y.paddingLeft))*m.x,w=x.top+(p.clientTop+parseFloat(y.paddingTop))*m.y;l*=m.x,c*=m.y,f*=m.x,d*=m.y,l+=b,c+=w,p=gt(p).frameElement}}return Ca({width:f,height:d,x:l,y:c})}function Ow(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Ht(n),a=en(n);if(n===a)return t;let i={scrollLeft:0,scrollTop:0},s=bn(1);const l=bn(0);if((o||!o&&r!=="fixed")&&((yn(n)!=="body"||uo(a))&&(i=Ma(n)),Ht(n))){const c=Wn(n);s=$r(n),l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-i.scrollLeft*s.x+l.x,y:t.y*s.y-i.scrollTop*s.y+l.y}}function Nw(e){return Array.from(e.getClientRects())}function xf(e){return Wn(en(e)).left+Ma(e).scrollLeft}function _w(e){const t=en(e),n=Ma(e),r=e.ownerDocument.body,o=mt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=mt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+xf(e);const s=-n.scrollTop;return xt(r).direction==="rtl"&&(i+=mt(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}function Dw(e,t){const n=gt(e),r=en(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const c=js();(!c||c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}function Aw(e,t){const n=Wn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Ht(e)?$r(e):bn(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,l=o*a.x,c=r*a.y;return{width:i,height:s,x:l,y:c}}function $f(e,t,n){let r;if(t==="viewport")r=Dw(e,n);else if(t==="document")r=_w(en(e));else if(tn(t))r=Aw(t,n);else{const o=wf(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ca(r)}function Sf(e,t){const n=xr(e);return n===t||!tn(n)||Ea(n)?!1:xt(n).position==="fixed"||Sf(n,t)}function Iw(e,t){const n=t.get(e);if(n)return n;let r=fo(e,[],!1).filter(s=>tn(s)&&yn(s)!=="body"),o=null;const a=xt(e).position==="fixed";let i=a?xr(e):e;for(;tn(i)&&!Ea(i);){const s=xt(i),l=Fs(i);!l&&s.position==="fixed"&&(o=null),(a?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||uo(i)&&!l&&Sf(e,i))?r=r.filter(f=>f!==i):o=s,i=xr(i)}return t.set(e,r),r}function Lw(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Iw(t,this._c):[].concat(n),r],s=i[0],l=i.reduce((c,f)=>{const d=$f(t,f,o);return c.top=mt(d.top,c.top),c.right=vn(d.right,c.right),c.bottom=vn(d.bottom,c.bottom),c.left=mt(d.left,c.left),c},$f(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Fw(e){return yf(e)}function jw(e,t,n){const r=Ht(t),o=en(t),a=n==="fixed",i=Wn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=bn(0);if(r||!r&&!a)if((yn(t)!=="body"||uo(o))&&(s=Ma(t)),r){const c=Wn(t,!0,a,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else o&&(l.x=xf(o));return{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Cf(e,t){return!Ht(e)||xt(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ef(e,t){const n=gt(e);if(!Ht(e))return n;let r=Cf(e,t);for(;r&&Mw(r)&&xt(r).position==="static";)r=Cf(r,t);return r&&(yn(r)==="html"||yn(r)==="body"&&xt(r).position==="static"&&!Fs(r))?n:r||Tw(e)||n}const zw=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Ef,a=this.getDimensions;return{reference:jw(t,await o(n),r),floating:{x:0,y:0,...await a(n)}}};function Bw(e){return xt(e).direction==="rtl"}const Ww={convertOffsetParentRelativeRectToViewportRelativeRect:Ow,getDocumentElement:en,getClippingRect:Lw,getOffsetParent:Ef,getElementRects:zw,getClientRects:Nw,getDimensions:Fw,getScale:$r,isElement:tn,isRTL:Bw};function Vw(e,t){let n=null,r;const o=en(e);function a(){clearTimeout(r),n&&n.disconnect(),n=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const{left:c,top:f,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const g=$a(f),p=$a(o.clientWidth-(c+d)),m=$a(o.clientHeight-(f+h)),x=$a(c),b={rootMargin:-g+"px "+-p+"px "+-m+"px "+-x+"px",threshold:mt(0,vn(1,l))||1};let w=!0;function E(S){const T=S[0].intersectionRatio;if(T!==l){if(!w)return i();T?i(!1,T):r=setTimeout(()=>{i(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(E,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,b)}n.observe(e)}return i(!0),a}function Hw(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=zs(e),f=o||a?[...c?fo(c):[],...fo(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const d=c&&s?Vw(c,n):null;let h=-1,g=null;i&&(g=new ResizeObserver(y=>{let[b]=y;b&&b.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),c&&!l&&g.observe(c),g.observe(t));let p,m=l?Wn(e):null;l&&x();function x(){const y=Wn(e);m&&(y.x!==m.x||y.y!==m.y||y.width!==m.width||y.height!==m.height)&&n(),m=y,p=requestAnimationFrame(x)}return n(),()=>{f.forEach(y=>{o&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),d&&d(),g&&g.disconnect(),g=null,l&&cancelAnimationFrame(p)}}const Gw=(e,t,n)=>{const r=new Map,o={platform:Ww,...n},a={...o.platform,_c:r};return bw(e,t,{...o,platform:a})},Uw=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?hf({element:r.current,padding:o}).fn(n):{}:r?hf({element:r,padding:o}).fn(n):{}}}};var Ta=typeof document<"u"?u.useLayoutEffect:u.useEffect;function Pa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Pa(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Pa(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Mf(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Tf(e,t){const n=Mf(e);return Math.round(t*n)/n}function Pf(e){const t=ve.useRef(e);return Ta(()=>{t.current=e}),t}function Yw(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[f,d]=ve.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=ve.useState(r);Pa(h,r)||g(r);const[p,m]=ve.useState(null),[x,y]=ve.useState(null),b=ve.useCallback(_=>{_!=T.current&&(T.current=_,m(_))},[m]),w=ve.useCallback(_=>{_!==N.current&&(N.current=_,y(_))},[y]),E=a||p,S=i||x,T=ve.useRef(null),N=ve.useRef(null),M=ve.useRef(f),O=Pf(l),F=Pf(o),j=ve.useCallback(()=>{if(!T.current||!N.current)return;const _={placement:t,strategy:n,middleware:h};F.current&&(_.platform=F.current),Gw(T.current,N.current,_).then(B=>{const V={...B,isPositioned:!0};H.current&&!Pa(M.current,V)&&(M.current=V,lb.flushSync(()=>{d(V)}))})},[h,t,n,F]);Ta(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,d(_=>({..._,isPositioned:!1})))},[c]);const H=ve.useRef(!1);Ta(()=>(H.current=!0,()=>{H.current=!1}),[]),Ta(()=>{if(E&&(T.current=E),S&&(N.current=S),E&&S){if(O.current)return O.current(E,S,j);j()}},[E,S,j,O]);const G=ve.useMemo(()=>({reference:T,floating:N,setReference:b,setFloating:w}),[b,w]),L=ve.useMemo(()=>({reference:E,floating:S}),[E,S]),C=ve.useMemo(()=>{const _={position:n,left:0,top:0};if(!L.floating)return _;const B=Tf(L.floating,f.x),V=Tf(L.floating,f.y);return s?{..._,transform:"translate("+B+"px, "+V+"px)",...Mf(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:V}},[n,s,L.floating,f.x,f.y]);return ve.useMemo(()=>({...f,update:j,refs:G,elements:L,floatingStyles:C}),[f,j,G,L,C])}const kf="Popper",[Of,Sr]=ht(kf),[qw,Nf]=Of(kf),Kw=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return u.createElement(qw,{scope:t,anchor:r,onAnchorChange:o},n)},Xw="PopperAnchor",Zw=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Nf(Xw,n),i=u.useRef(null),s=Oe(t,i);return u.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:u.createElement(ye.div,J({},o,{ref:s}))}),_f="PopperContent",[Qw,T_]=Of(_f),Jw=u.forwardRef((e,t)=>{var n,r,o,a,i,s,l,c;const{__scopePopper:f,side:d="bottom",sideOffset:h=0,align:g="center",alignOffset:p=0,arrowPadding:m=0,avoidCollisions:x=!0,collisionBoundary:y=[],collisionPadding:b=0,sticky:w="partial",hideWhenDetached:E=!1,updatePositionStrategy:S="optimized",onPlaced:T,...N}=e,M=Nf(_f,f),[O,F]=u.useState(null),j=Oe(t,ge=>F(ge)),[H,G]=u.useState(null),L=gs(H),C=(n=L==null?void 0:L.width)!==null&&n!==void 0?n:0,_=(r=L==null?void 0:L.height)!==null&&r!==void 0?r:0,B=d+(g!=="center"?"-"+g:""),V=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},D=Array.isArray(y)?y:[y],A=D.length>0,W={padding:V,boundary:D.filter(Rw),altBoundary:A},{refs:ne,floatingStyles:Q,placement:re,isPositioned:oe,middlewareData:ue}=Yw({strategy:"fixed",placement:B,whileElementsMounted:(...ge)=>Hw(...ge,{animationFrame:S==="always"}),elements:{reference:M.anchor},middleware:[$w({mainAxis:h+_,alignmentAxis:p}),x&&Sw({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?Cw():void 0,...W}),x&&yw({...W}),Ew({...W,apply:({elements:ge,rects:we,availableWidth:Ee,availableHeight:Ke})=>{const{width:Xe,height:ot}=we.reference,vt=ge.floating.style;vt.setProperty("--radix-popper-available-width",`${Ee}px`),vt.setProperty("--radix-popper-available-height",`${Ke}px`),vt.setProperty("--radix-popper-anchor-width",`${Xe}px`),vt.setProperty("--radix-popper-anchor-height",`${ot}px`)}}),H&&Uw({element:H,padding:m}),ex({arrowWidth:C,arrowHeight:_}),E&&ww({strategy:"referenceHidden",...W})]}),[X,le]=Df(re),U=lt(T);pt(()=>{oe&&(U==null||U())},[oe,U]);const Z=(o=ue.arrow)===null||o===void 0?void 0:o.x,ie=(a=ue.arrow)===null||a===void 0?void 0:a.y,k=((i=ue.arrow)===null||i===void 0?void 0:i.centerOffset)!==0,[te,ae]=u.useState();return pt(()=>{O&&ae(window.getComputedStyle(O).zIndex)},[O]),u.createElement("div",{ref:ne.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:oe?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(s=ue.transformOrigin)===null||s===void 0?void 0:s.x,(l=ue.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},u.createElement(Qw,{scope:f,placedSide:X,onArrowChange:G,arrowX:Z,arrowY:ie,shouldHideArrow:k},u.createElement(ye.div,J({"data-side":X,"data-align":le},N,{ref:j,style:{...N.style,animation:oe?void 0:"none",opacity:(c=ue.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function Rw(e){return e!==null}const ex=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;const{placement:s,rects:l,middlewareData:c}=t,d=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=d?0:e.arrowWidth,g=d?0:e.arrowHeight,[p,m]=Df(s),x={start:"0%",center:"50%",end:"100%"}[m],y=((r=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+h/2,b=((a=(i=c.arrow)===null||i===void 0?void 0:i.y)!==null&&a!==void 0?a:0)+g/2;let w="",E="";return p==="bottom"?(w=d?x:`${y}px`,E=`${-g}px`):p==="top"?(w=d?x:`${y}px`,E=`${l.floating.height+g}px`):p==="right"?(w=`${-g}px`,E=d?x:`${b}px`):p==="left"&&(w=`${l.floating.width+g}px`,E=d?x:`${b}px`),{data:{x:w,y:E}}}});function Df(e){const[t,n="center"]=e.split("-");return[t,n]}const ka=Kw,Bs=Zw,Ws=Jw,Vs=u.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?pn.createPortal(u.createElement(ye.div,J({},o,{ref:t})),r):null}),Hs="rovingFocusGroup.onEntryFocus",tx={bubbles:!1,cancelable:!0},Gs="RovingFocusGroup",[Us,Af,nx]=ya(Gs),[rx,Cr]=ht(Gs,[nx]),[ox,ax]=rx(Gs),ix=u.forwardRef((e,t)=>u.createElement(Us.Provider,{scope:e.__scopeRovingFocusGroup},u.createElement(Us.Slot,{scope:e.__scopeRovingFocusGroup},u.createElement(sx,J({},e,{ref:t}))))),sx=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...f}=e,d=u.useRef(null),h=Oe(t,d),g=br(a),[p=null,m]=wt({prop:i,defaultProp:s,onChange:l}),[x,y]=u.useState(!1),b=lt(c),w=Af(n),E=u.useRef(!1),[S,T]=u.useState(0);return u.useEffect(()=>{const N=d.current;if(N)return N.addEventListener(Hs,b),()=>N.removeEventListener(Hs,b)},[b]),u.createElement(ox,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:p,onItemFocus:u.useCallback(N=>m(N),[m]),onItemShiftTab:u.useCallback(()=>y(!0),[]),onFocusableItemAdd:u.useCallback(()=>T(N=>N+1),[]),onFocusableItemRemove:u.useCallback(()=>T(N=>N-1),[])},u.createElement(ye.div,J({tabIndex:x||S===0?-1:0,"data-orientation":r},f,{ref:h,style:{outline:"none",...e.style},onMouseDown:pe(e.onMouseDown,()=>{E.current=!0}),onFocus:pe(e.onFocus,N=>{const M=!E.current;if(N.target===N.currentTarget&&M&&!x){const O=new CustomEvent(Hs,tx);if(N.currentTarget.dispatchEvent(O),!O.defaultPrevented){const F=w().filter(C=>C.focusable),j=F.find(C=>C.active),H=F.find(C=>C.id===p),L=[j,H,...F].filter(Boolean).map(C=>C.ref.current);If(L)}}E.current=!1}),onBlur:pe(e.onBlur,()=>y(!1))})))}),lx="RovingFocusGroupItem",cx=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=Vt(),l=a||s,c=ax(lx,n),f=c.currentTabStopId===l,d=Af(n),{onFocusableItemAdd:h,onFocusableItemRemove:g}=c;return u.useEffect(()=>{if(r)return h(),()=>g()},[r,h,g]),u.createElement(Us.ItemSlot,{scope:n,id:l,focusable:r,active:o},u.createElement(ye.span,J({tabIndex:f?0:-1,"data-orientation":c.orientation},i,{ref:t,onMouseDown:pe(e.onMouseDown,p=>{r?c.onItemFocus(l):p.preventDefault()}),onFocus:pe(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:pe(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){c.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const m=fx(p,c.orientation,c.dir);if(m!==void 0){p.preventDefault();let y=d().filter(b=>b.focusable).map(b=>b.ref.current);if(m==="last")y.reverse();else if(m==="prev"||m==="next"){m==="prev"&&y.reverse();const b=y.indexOf(p.currentTarget);y=c.loop?hx(y,b+1):y.slice(b+1)}setTimeout(()=>If(y))}})})))}),ux={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dx(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function fx(e,t,n){const r=dx(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return ux[r]}function If(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function hx(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Ys=ix,qs=cx;var px=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Er=new WeakMap,Oa=new WeakMap,Na={},Ks=0,Lf=function(e){return e&&(e.host||Lf(e.parentNode))},mx=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Lf(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},gx=function(e,t,n,r){var o=mx(t,Array.isArray(e)?e:[e]);Na[n]||(Na[n]=new WeakMap);var a=Na[n],i=[],s=new Set,l=new Set(o),c=function(d){!d||s.has(d)||(s.add(d),c(d.parentNode))};o.forEach(c);var f=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(s.has(h))f(h);else{var g=h.getAttribute(r),p=g!==null&&g!=="false",m=(Er.get(h)||0)+1,x=(a.get(h)||0)+1;Er.set(h,m),a.set(h,x),i.push(h),m===1&&p&&Oa.set(h,!0),x===1&&h.setAttribute(n,"true"),p||h.setAttribute(r,"true")}})};return f(t),s.clear(),Ks++,function(){i.forEach(function(d){var h=Er.get(d)-1,g=a.get(d)-1;Er.set(d,h),a.set(d,g),h||(Oa.has(d)||d.removeAttribute(r),Oa.delete(d)),g||d.removeAttribute(n)}),Ks--,Ks||(Er=new WeakMap,Er=new WeakMap,Oa=new WeakMap,Na={})}},Ff=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||px(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),gx(r,o,n,"aria-hidden")):function(){return null}},Gt=function(){return Gt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Gt.apply(this,arguments)};function jf(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function vx(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var _a="right-scroll-bar-position",Da="width-before-scroll-bar",bx="with-scroll-bars-hidden",yx="--removed-body-scroll-bar-size";function wx(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function xx(e,t){var n=u.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function $x(e,t){return xx(t||null,function(n){return e.forEach(function(r){return wx(r,n)})})}function Sx(e){return e}function Cx(e,t){t===void 0&&(t=Sx);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var l=function(){var f=i;i=[],f.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(f){i.push(f),c()},filter:function(f){return i=i.filter(f),n}}}};return o}function Ex(e){e===void 0&&(e={});var t=Cx(null);return t.options=Gt({async:!0,ssr:!1},e),t}var zf=function(e){var t=e.sideCar,n=jf(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return ve.createElement(r,Gt({},n))};zf.isSideCarExport=!0;function Mx(e,t){return e.useMedium(t),zf}var Bf=Ex(),Xs=function(){},Aa=ve.forwardRef(function(e,t){var n=ve.useRef(null),r=ve.useState({onScrollCapture:Xs,onWheelCapture:Xs,onTouchMoveCapture:Xs}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,f=e.enabled,d=e.shards,h=e.sideCar,g=e.noIsolation,p=e.inert,m=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,b=jf(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=h,E=$x([n,t]),S=Gt(Gt({},b),o);return ve.createElement(ve.Fragment,null,f&&ve.createElement(w,{sideCar:Bf,removeScrollBar:c,shards:d,noIsolation:g,inert:p,setCallbacks:a,allowPinchZoom:!!m,lockRef:n}),i?ve.cloneElement(ve.Children.only(s),Gt(Gt({},S),{ref:E})):ve.createElement(y,Gt({},S,{className:l,ref:E}),s))});Aa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Aa.classNames={fullWidth:Da,zeroRight:_a};var Wf,Tx=function(){if(Wf)return Wf;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Px(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Tx();return t&&e.setAttribute("nonce",t),e}function kx(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ox(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Nx=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Px())&&(kx(t,n),Ox(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_x=function(){var e=Nx();return function(t,n){ve.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Vf=function(){var e=_x(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Dx={left:0,top:0,right:0,gap:0},Zs=function(e){return parseInt(e||"",10)||0},Ax=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Zs(n),Zs(r),Zs(o)]},Ix=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Dx;var t=Ax(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Lx=Vf(),Fx=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
7
+ .`.concat(bx,` {
8
8
  overflow: hidden `).concat(r,`;
9
9
  padding-right: `).concat(s,"px ").concat(r,`;
10
10
  }
@@ -21,52 +21,52 @@ Defaulting to \`null\`.`}const fy=Cd,hy=ly;var io=typeof globalThis<"u"?globalTh
21
21
  `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
22
22
  }
23
23
 
24
- .`).concat(ka,` {
24
+ .`).concat(_a,` {
25
25
  right: `).concat(s,"px ").concat(r,`;
26
26
  }
27
27
 
28
- .`).concat(Oa,` {
28
+ .`).concat(Da,` {
29
29
  margin-right: `).concat(s,"px ").concat(r,`;
30
30
  }
31
31
 
32
- .`).concat(ka," .").concat(ka,` {
32
+ .`).concat(_a," .").concat(_a,` {
33
33
  right: 0 `).concat(r,`;
34
34
  }
35
35
 
36
- .`).concat(Oa," .").concat(Oa,` {
36
+ .`).concat(Da," .").concat(Da,` {
37
37
  margin-right: 0 `).concat(r,`;
38
38
  }
39
39
 
40
40
  body {
41
- `).concat(px,": ").concat(s,`px;
41
+ `).concat(yx,": ").concat(s,`px;
42
42
  }
43
- `)},Dx=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=be.useMemo(function(){return Ox(o)},[o]);return be.createElement(Nx,{styles:_x(a,!t,o,n?"":"!important")})},qs=!1;if(typeof window<"u")try{var _a=Object.defineProperty({},"passive",{get:function(){return qs=!0,!0}});window.addEventListener("test",_a,_a),window.removeEventListener("test",_a,_a)}catch{qs=!1}var Er=qs?{passive:!1}:!1,Ax=function(e){return e.tagName==="TEXTAREA"},If=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ax(e)&&n[t]==="visible")},Ix=function(e){return If(e,"overflowY")},Lx=function(e){return If(e,"overflowX")},Lf=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Ff(e,n);if(r){var o=jf(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Fx=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},jx=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ff=function(e,t){return e==="v"?Ix(t):Lx(t)},jf=function(e,t){return e==="v"?Fx(t):jx(t)},zx=function(e,t){return e==="h"&&t==="rtl"?-1:1},Bx=function(e,t,n,r,o){var a=zx(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,f=i>0,d=0,h=0;do{var g=jf(e,s),p=g[0],m=g[1],x=g[2],b=m-x-a*p;(p||b)&&Ff(e,s)&&(d+=b,h+=p),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(f&&(o&&d===0||!o&&i>d)||!f&&(o&&h===0||!o&&-i>h))&&(c=!0),c},Da=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},zf=function(e){return[e.deltaX,e.deltaY]},Bf=function(e){return e&&"current"in e?e.current:e},Wx=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Vx=function(e){return`
43
+ `)},jx=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=ve.useMemo(function(){return Ix(o)},[o]);return ve.createElement(Lx,{styles:Fx(a,!t,o,n?"":"!important")})},Qs=!1;if(typeof window<"u")try{var Ia=Object.defineProperty({},"passive",{get:function(){return Qs=!0,!0}});window.addEventListener("test",Ia,Ia),window.removeEventListener("test",Ia,Ia)}catch{Qs=!1}var Mr=Qs?{passive:!1}:!1,zx=function(e){return e.tagName==="TEXTAREA"},Hf=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!zx(e)&&n[t]==="visible")},Bx=function(e){return Hf(e,"overflowY")},Wx=function(e){return Hf(e,"overflowX")},Gf=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Uf(e,n);if(r){var o=Yf(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Vx=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Hx=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Uf=function(e,t){return e==="v"?Bx(t):Wx(t)},Yf=function(e,t){return e==="v"?Vx(t):Hx(t)},Gx=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ux=function(e,t,n,r,o){var a=Gx(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,f=i>0,d=0,h=0;do{var g=Yf(e,s),p=g[0],m=g[1],x=g[2],y=m-x-a*p;(p||y)&&Uf(e,s)&&(d+=y,h+=p),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(f&&(o&&d===0||!o&&i>d)||!f&&(o&&h===0||!o&&-i>h))&&(c=!0),c},La=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qf=function(e){return[e.deltaX,e.deltaY]},Kf=function(e){return e&&"current"in e?e.current:e},Yx=function(e,t){return e[0]===t[0]&&e[1]===t[1]},qx=function(e){return`
44
44
  .block-interactivity-`.concat(e,` {pointer-events: none;}
45
45
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
46
- `)},Hx=0,Tr=[];function Gx(e){var t=be.useRef([]),n=be.useRef([0,0]),r=be.useRef(),o=be.useState(Hx++)[0],a=be.useState(function(){return Af()})[0],i=be.useRef(e);be.useEffect(function(){i.current=e},[e]),be.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=fx([e.lockRef.current],(e.shards||[]).map(Bf),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=be.useCallback(function(m,x){if("touches"in m&&m.touches.length===2)return!i.current.allowPinchZoom;var b=Da(m),v=n.current,w="deltaX"in m?m.deltaX:v[0]-b[0],E="deltaY"in m?m.deltaY:v[1]-b[1],S,M=m.target,N=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in m&&N==="h"&&M.type==="range")return!1;var T=Lf(N,M);if(!T)return!0;if(T?S=N:(S=N==="v"?"h":"v",T=Lf(N,M)),!T)return!1;if(!r.current&&"changedTouches"in m&&(w||E)&&(r.current=S),!S)return!0;var O=r.current||S;return Bx(O,x,m,O==="h"?w:E,!0)},[]),l=be.useCallback(function(m){var x=m;if(!(!Tr.length||Tr[Tr.length-1]!==a)){var b="deltaY"in x?zf(x):Da(x),v=t.current.filter(function(S){return S.name===x.type&&S.target===x.target&&Wx(S.delta,b)})[0];if(v&&v.should){x.cancelable&&x.preventDefault();return}if(!v){var w=(i.current.shards||[]).map(Bf).filter(Boolean).filter(function(S){return S.contains(x.target)}),E=w.length>0?s(x,w[0]):!i.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),c=be.useCallback(function(m,x,b,v){var w={name:m,delta:x,target:b,should:v};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),f=be.useCallback(function(m){n.current=Da(m),r.current=void 0},[]),d=be.useCallback(function(m){c(m.type,zf(m),m.target,s(m,e.lockRef.current))},[]),h=be.useCallback(function(m){c(m.type,Da(m),m.target,s(m,e.lockRef.current))},[]);be.useEffect(function(){return Tr.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Er),document.addEventListener("touchmove",l,Er),document.addEventListener("touchstart",f,Er),function(){Tr=Tr.filter(function(m){return m!==a}),document.removeEventListener("wheel",l,Er),document.removeEventListener("touchmove",l,Er),document.removeEventListener("touchstart",f,Er)}},[]);var g=e.removeScrollBar,p=e.inert;return be.createElement(be.Fragment,null,p?be.createElement(a,{styles:Vx(o)}):null,g?be.createElement(Dx,{gapMode:"margin"}):null)}const Ux=xx(_f,Gx);var Wf=be.forwardRef(function(e,t){return be.createElement(Na,Ht({},e,{ref:t,sideCar:Ux}))});Wf.classNames=Na.classNames;const Vf=Wf,Ks=["Enter"," "],Yx=["ArrowDown","PageUp","Home"],Hf=["ArrowUp","PageDown","End"],qx=[...Yx,...Hf],Kx={ltr:[...Ks,"ArrowRight"],rtl:[...Ks,"ArrowLeft"]},Xx={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Aa="Menu",[fo,Zx,Qx]=ga(Aa),[Wn,Gf]=ht(Aa,[Qx,$r,Sr]),Ia=$r(),Uf=Sr(),[Yf,wn]=Wn(Aa),[Jx,ho]=Wn(Aa),Rx=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=Ia(t),[l,c]=u.useState(null),f=u.useRef(!1),d=lt(a),h=vr(o);return u.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",p,{capture:!0,once:!0}),document.addEventListener("pointermove",p,{capture:!0,once:!0})},p=()=>f.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",p,{capture:!0}),document.removeEventListener("pointermove",p,{capture:!0})}},[]),u.createElement(Ta,s,u.createElement(Yf,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c},u.createElement(Jx,{scope:t,onClose:u.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:h,modal:i},r)))},qf=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ia(n);return u.createElement(Ls,J({},o,r,{ref:t}))}),Kf="MenuPortal",[e2,Xf]=Wn(Kf,{forceMount:void 0}),t2=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=wn(Kf,t);return u.createElement(e2,{scope:t,forceMount:n},u.createElement(Xt,{present:n||a.open},u.createElement(js,{asChild:!0,container:o},r)))},Pt="MenuContent",[n2,Xs]=Wn(Pt),r2=u.forwardRef((e,t)=>{const n=Xf(Pt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=wn(Pt,e.__scopeMenu),i=ho(Pt,e.__scopeMenu);return u.createElement(fo.Provider,{scope:e.__scopeMenu},u.createElement(Xt,{present:r||a.open},u.createElement(fo.Slot,{scope:e.__scopeMenu},i.modal?u.createElement(o2,J({},o,{ref:t})):u.createElement(a2,J({},o,{ref:t})))))}),o2=u.forwardRef((e,t)=>{const n=wn(Pt,e.__scopeMenu),r=u.useRef(null),o=Oe(t,r);return u.useEffect(()=>{const a=r.current;if(a)return kf(a)},[]),u.createElement(Zs,J({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:pe(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),a2=u.forwardRef((e,t)=>{const n=wn(Pt,e.__scopeMenu);return u.createElement(Zs,J({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Zs=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,onDismiss:g,disableOutsideScroll:p,...m}=e,x=wn(Pt,n),b=ho(Pt,n),v=Ia(n),w=Uf(n),E=Zx(n),[S,M]=u.useState(null),N=u.useRef(null),T=Oe(t,N,x.onContentChange),O=u.useRef(0),F=u.useRef(""),j=u.useRef(0),H=u.useRef(null),G=u.useRef("right"),L=u.useRef(0),C=p?Vf:u.Fragment,_=p?{as:Zt,allowPinchZoom:!0}:void 0,B=D=>{var A,W;const ne=F.current+D,Q=E().filter(U=>!U.disabled),re=document.activeElement,oe=(A=Q.find(U=>U.ref.current===re))===null||A===void 0?void 0:A.textValue,ue=Q.map(U=>U.textValue),X=C2(ue,ne,oe),le=(W=Q.find(U=>U.textValue===X))===null||W===void 0?void 0:W.ref.current;(function U(Z){F.current=Z,window.clearTimeout(O.current),Z!==""&&(O.current=window.setTimeout(()=>U(""),1e3))})(ne),le&&setTimeout(()=>le.focus())};u.useEffect(()=>()=>window.clearTimeout(O.current),[]),Kd();const V=u.useCallback(D=>{var A,W;return G.current===((A=H.current)===null||A===void 0?void 0:A.side)&&T2(D,(W=H.current)===null||W===void 0?void 0:W.area)},[]);return u.createElement(n2,{scope:n,searchRef:F,onItemEnter:u.useCallback(D=>{V(D)&&D.preventDefault()},[V]),onItemLeave:u.useCallback(D=>{var A;V(D)||((A=N.current)===null||A===void 0||A.focus(),M(null))},[V]),onTriggerLeave:u.useCallback(D=>{V(D)&&D.preventDefault()},[V]),pointerGraceTimerRef:j,onPointerGraceIntentChange:u.useCallback(D=>{H.current=D},[])},u.createElement(C,_,u.createElement(Qd,{asChild:!0,trapped:o,onMountAutoFocus:pe(a,D=>{var A;D.preventDefault(),(A=N.current)===null||A===void 0||A.focus()}),onUnmountAutoFocus:i},u.createElement(Cs,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,onDismiss:g},u.createElement(Vs,J({asChild:!0},w,{dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:M,onEntryFocus:pe(l,D=>{b.isUsingKeyboardRef.current||D.preventDefault()})}),u.createElement(Fs,J({role:"menu","aria-orientation":"vertical","data-state":rh(x.open),"data-radix-menu-content":"",dir:b.dir},v,m,{ref:T,style:{outline:"none",...m.style},onKeyDown:pe(m.onKeyDown,D=>{const W=D.target.closest("[data-radix-menu-content]")===D.currentTarget,ne=D.ctrlKey||D.altKey||D.metaKey,Q=D.key.length===1;W&&(D.key==="Tab"&&D.preventDefault(),!ne&&Q&&B(D.key));const re=N.current;if(D.target!==re||!qx.includes(D.key))return;D.preventDefault();const ue=E().filter(X=>!X.disabled).map(X=>X.ref.current);Hf.includes(D.key)&&ue.reverse(),$2(ue)}),onBlur:pe(e.onBlur,D=>{D.currentTarget.contains(D.target)||(window.clearTimeout(O.current),F.current="")}),onPointerMove:pe(e.onPointerMove,po(D=>{const A=D.target,W=L.current!==D.clientX;if(D.currentTarget.contains(A)&&W){const ne=D.clientX>L.current?"right":"left";G.current=ne,L.current=D.clientX}}))})))))))}),Zf=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(we.div,J({role:"group"},r,{ref:t}))}),i2=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(we.div,J({},r,{ref:t}))}),Qs="MenuItem",Qf="menu.itemSelect",Js=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=u.useRef(null),i=ho(Qs,e.__scopeMenu),s=Xs(Qs,e.__scopeMenu),l=Oe(t,a),c=u.useRef(!1),f=()=>{const d=a.current;if(!n&&d){const h=new CustomEvent(Qf,{bubbles:!0,cancelable:!0});d.addEventListener(Qf,g=>r==null?void 0:r(g),{once:!0}),id(d,h),h.defaultPrevented?c.current=!1:i.onClose()}};return u.createElement(Jf,J({},o,{ref:l,disabled:n,onClick:pe(e.onClick,f),onPointerDown:d=>{var h;(h=e.onPointerDown)===null||h===void 0||h.call(e,d),c.current=!0},onPointerUp:pe(e.onPointerUp,d=>{var h;c.current||(h=d.currentTarget)===null||h===void 0||h.click()}),onKeyDown:pe(e.onKeyDown,d=>{const h=s.searchRef.current!=="";n||h&&d.key===" "||Ks.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})}))}),Jf=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=Xs(Qs,n),s=Uf(n),l=u.useRef(null),c=Oe(t,l),[f,d]=u.useState(!1),[h,g]=u.useState("");return u.useEffect(()=>{const p=l.current;if(p){var m;g(((m=p.textContent)!==null&&m!==void 0?m:"").trim())}},[a.children]),u.createElement(fo.ItemSlot,{scope:n,disabled:r,textValue:o??h},u.createElement(Hs,J({asChild:!0},s,{focusable:!r}),u.createElement(we.div,J({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:c,onPointerMove:pe(e.onPointerMove,po(p=>{r?i.onItemLeave(p):(i.onItemEnter(p),p.defaultPrevented||p.currentTarget.focus())})),onPointerLeave:pe(e.onPointerLeave,po(p=>i.onItemLeave(p))),onFocus:pe(e.onFocus,()=>d(!0)),onBlur:pe(e.onBlur,()=>d(!1))}))))}),s2=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return u.createElement(eh,{scope:e.__scopeMenu,checked:n},u.createElement(Js,J({role:"menuitemcheckbox","aria-checked":Fa(n)?"mixed":n},o,{ref:t,"data-state":Rs(n),onSelect:pe(o.onSelect,()=>r==null?void 0:r(Fa(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),l2="MenuRadioGroup",[c2,u2]=Wn(l2,{value:void 0,onValueChange:()=>{}}),d2=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=lt(r);return u.createElement(c2,{scope:e.__scopeMenu,value:n,onValueChange:a},u.createElement(Zf,J({},o,{ref:t})))}),f2="MenuRadioItem",h2=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=u2(f2,e.__scopeMenu),a=n===o.value;return u.createElement(eh,{scope:e.__scopeMenu,checked:a},u.createElement(Js,J({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":Rs(a),onSelect:pe(r.onSelect,()=>{var i;return(i=o.onValueChange)===null||i===void 0?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})))}),Rf="MenuItemIndicator",[eh,p2]=Wn(Rf,{checked:!1}),m2=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=p2(Rf,n);return u.createElement(Xt,{present:r||Fa(a.checked)||a.checked===!0},u.createElement(we.span,J({},o,{ref:t,"data-state":Rs(a.checked)})))}),g2=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(we.div,J({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),th="MenuSub",[v2,nh]=Wn(th),b2=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=wn(th,t),i=Ia(t),[s,l]=u.useState(null),[c,f]=u.useState(null),d=lt(o);return u.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),u.createElement(Ta,i,u.createElement(Yf,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:f},u.createElement(v2,{scope:t,contentId:Wt(),triggerId:Wt(),trigger:s,onTriggerChange:l},n)))},La="MenuSubTrigger",y2=u.forwardRef((e,t)=>{const n=wn(La,e.__scopeMenu),r=ho(La,e.__scopeMenu),o=nh(La,e.__scopeMenu),a=Xs(La,e.__scopeMenu),i=u.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,c={__scopeMenu:e.__scopeMenu},f=u.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return u.useEffect(()=>f,[f]),u.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),l(null)}},[s,l]),u.createElement(qf,J({asChild:!0},c),u.createElement(Jf,J({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":rh(n.open)},e,{ref:aa(t,o.onTriggerChange),onClick:d=>{var h;(h=e.onClick)===null||h===void 0||h.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:pe(e.onPointerMove,po(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:pe(e.onPointerLeave,po(d=>{var h;f();const g=(h=n.content)===null||h===void 0?void 0:h.getBoundingClientRect();if(g){var p;const m=(p=n.content)===null||p===void 0?void 0:p.dataset.side,x=m==="right",b=x?-5:5,v=g[x?"left":"right"],w=g[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+b,y:d.clientY},{x:v,y:g.top},{x:w,y:g.top},{x:w,y:g.bottom},{x:v,y:g.bottom}],side:m}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:pe(e.onKeyDown,d=>{const h=a.searchRef.current!=="";if(!(e.disabled||h&&d.key===" ")&&Kx[r.dir].includes(d.key)){var g;n.onOpenChange(!0),(g=n.content)===null||g===void 0||g.focus(),d.preventDefault()}})})))}),w2="MenuSubContent",x2=u.forwardRef((e,t)=>{const n=Xf(Pt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=wn(Pt,e.__scopeMenu),i=ho(Pt,e.__scopeMenu),s=nh(w2,e.__scopeMenu),l=u.useRef(null),c=Oe(t,l);return u.createElement(fo.Provider,{scope:e.__scopeMenu},u.createElement(Xt,{present:r||a.open},u.createElement(fo.Slot,{scope:e.__scopeMenu},u.createElement(Zs,J({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:c,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var d;i.isUsingKeyboardRef.current&&((d=l.current)===null||d===void 0||d.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:pe(e.onFocusOutside,f=>{f.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:pe(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:pe(e.onKeyDown,f=>{const d=f.currentTarget.contains(f.target),h=Xx[i.dir].includes(f.key);if(d&&h){var g;a.onOpenChange(!1),(g=s.trigger)===null||g===void 0||g.focus(),f.preventDefault()}})})))))});function rh(e){return e?"open":"closed"}function Fa(e){return e==="indeterminate"}function Rs(e){return Fa(e)?"indeterminate":e?"checked":"unchecked"}function $2(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function S2(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function C2(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=S2(e,Math.max(a,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function E2(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,l=t[a].y,c=t[i].x,f=t[i].y;l>r!=f>r&&n<(c-s)*(r-l)/(f-l)+s&&(o=!o)}return o}function T2(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return E2(n,t)}function po(e){return t=>t.pointerType==="mouse"?e(t):void 0}const M2=Rx,P2=qf,k2=t2,O2=r2,N2=Zf,_2=i2,D2=Js,A2=s2,I2=d2,L2=h2,F2=m2,j2=g2,z2=b2,B2=y2,W2=x2,oh="DropdownMenu",[V2,v_]=ht(oh,[Gf]),Qe=Gf(),[H2,ah]=V2(oh),G2=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,l=Qe(t),c=u.useRef(null),[f=!1,d]=wt({prop:o,defaultProp:a,onChange:i});return u.createElement(H2,{scope:t,triggerId:Wt(),triggerRef:c,contentId:Wt(),open:f,onOpenChange:d,onOpenToggle:u.useCallback(()=>d(h=>!h),[d]),modal:s},u.createElement(M2,J({},l,{open:f,onOpenChange:d,dir:r,modal:s}),n))},U2="DropdownMenuTrigger",Y2=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=ah(U2,n),i=Qe(n);return u.createElement(P2,J({asChild:!0},i),u.createElement(we.button,J({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:aa(t,a.triggerRef),onPointerDown:pe(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:pe(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})))}),q2=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Qe(t);return u.createElement(k2,J({},r,n))},K2="DropdownMenuContent",X2=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ah(K2,n),a=Qe(n),i=u.useRef(!1);return u.createElement(O2,J({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:pe(e.onCloseAutoFocus,s=>{var l;i.current||(l=o.triggerRef.current)===null||l===void 0||l.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:pe(e.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,f=l.button===2||c;(!o.modal||f)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Z2=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(N2,J({},o,r,{ref:t}))}),Q2=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(_2,J({},o,r,{ref:t}))}),J2=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(D2,J({},o,r,{ref:t}))}),R2=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(A2,J({},o,r,{ref:t}))}),e$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(I2,J({},o,r,{ref:t}))}),t$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(L2,J({},o,r,{ref:t}))}),n$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(F2,J({},o,r,{ref:t}))}),r$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(j2,J({},o,r,{ref:t}))}),o$=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=Qe(t),[s=!1,l]=wt({prop:r,defaultProp:a,onChange:o});return u.createElement(z2,J({},i,{open:s,onOpenChange:l}),n)},a$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(B2,J({},o,r,{ref:t}))}),i$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(W2,J({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),s$=G2,l$=Y2,ih=q2,sh=X2,lh=Z2,ch=Q2,uh=J2,dh=R2,fh=e$,hh=t$,ph=n$,mh=r$,c$=o$,gh=a$,vh=i$,el=s$,tl=l$,bh=ih,yh=c$,ja=u.forwardRef(({className:e,...t},n)=>y.jsx(fh,{ref:n,className:ge("w-full",e),...t}));ja.displayName=fh.displayName;const za=u.forwardRef(({className:e,...t},n)=>y.jsx(lh,{ref:n,className:ge("w-full",e),...t}));za.displayName=lh.displayName;const nl=u.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(gh,{ref:r,className:ge("flex cursor-default select-none px-2 py-1.5 bg-white rounded hover:bg-sky-100 hover:text-sky-800 hover:cursor-pointer justify-start items-start text-zinc-800 text-sm font-normal leading-tight focus:bg-sky-100 focus:text-sky-800 data-[state=checked]:bg-sky-100 data-[state=checked]:text-sky-800 focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[t,y.jsx(xb,{className:"ml-auto h-4 w-4"})]}));nl.displayName=gh.displayName;const rl=u.forwardRef(({className:e,...t},n)=>y.jsx(vh,{ref:n,className:ge("rabbit-ds z-[1510] relative min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex flex-col justify-start items-start gap-1 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));rl.displayName=vh.displayName;const Ba=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(ih,{children:y.jsx("div",{className:"rabbit-ds ",children:y.jsx(sh,{ref:r,sideOffset:t,className:ge("z-[1500] relative min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex flex-col justify-start items-start gap-1 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})})}));Ba.displayName=sh.displayName;const Wa=u.forwardRef(({className:e,...t},n)=>y.jsx(uh,{ref:n,className:ge("relative flex flex-row w-full my-1 cursor-default select-none p-2 bg-white rounded hover:bg-sky-100 hover:text-sky-800 hover:cursor-pointer justify-start items-start text-zinc-800 text-sm font-normal leading-tight focus:bg-sky-100 focus:text-sky-800 data-[state=checked]:bg-sky-100 data-[state=checked]:text-sky-800 focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t}));Wa.displayName=uh.displayName;const Va=u.forwardRef(({className:e,children:t,checked:n,...r},o)=>y.jsxs(dh,{ref:o,className:ge("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(ph,{children:y.jsx(sa,{className:"h-4 w-4 text-sky-800"})})}),t]}));Va.displayName=dh.displayName;const Ha=u.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(hh,{ref:r,className:ge("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","data-[state=checked]:bg-card-bg-focus data-[state=checked]:text-card-text-focus",e),...n,children:[y.jsx("span",{className:"absolute right-2 flex h-4 w-4 items-center justify-center",children:y.jsx(ph,{children:y.jsx(sa,{className:"h-4 w-4"})})}),t]}));Ha.displayName=hh.displayName;const Ga=u.forwardRef(({className:e,...t},n)=>y.jsx(ch,{ref:n,className:ge("px-2 py-1.5 text-sm font-semibold",e),...t}));Ga.displayName=ch.displayName;const ol=u.forwardRef(({className:e,...t},n)=>y.jsx(mh,{ref:n,className:ge("h-px w-full bg-athens-gray-100",e),...t}));ol.displayName=mh.displayName;const wh=u.forwardRef((e,t)=>u.createElement(we.span,J({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),u$=wh,d$=[" ","Enter","ArrowUp","ArrowDown"],f$=[" ","Enter"],Ua="Select",[Ya,al,h$]=ga(Ua),[Mr,b_]=ht(Ua,[h$,$r]),il=$r(),[p$,Vn]=Mr(Ua),[m$,g$]=Mr(Ua),v$=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:l,dir:c,name:f,autoComplete:d,disabled:h,required:g}=e,p=il(t),[m,x]=u.useState(null),[b,v]=u.useState(null),[w,E]=u.useState(!1),S=vr(c),[M=!1,N]=wt({prop:r,defaultProp:o,onChange:a}),[T,O]=wt({prop:i,defaultProp:s,onChange:l}),F=u.useRef(null),j=m?!!m.closest("form"):!0,[H,G]=u.useState(new Set),L=Array.from(H).map(C=>C.props.value).join(";");return u.createElement(Ta,p,u.createElement(p$,{required:g,scope:t,trigger:m,onTriggerChange:x,valueNode:b,onValueNodeChange:v,valueNodeHasChildren:w,onValueNodeHasChildrenChange:E,contentId:Wt(),value:T,onValueChange:O,open:M,onOpenChange:N,dir:S,triggerPointerDownPosRef:F,disabled:h},u.createElement(Ya.Provider,{scope:t},u.createElement(m$,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(C=>{G(_=>new Set(_).add(C))},[]),onNativeOptionRemove:u.useCallback(C=>{G(_=>{const B=new Set(_);return B.delete(C),B})},[])},n)),j?u.createElement(Th,{key:L,"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:d,value:T,onChange:C=>O(C.target.value),disabled:h},T===void 0?u.createElement("option",{value:""}):null,Array.from(H)):null))},b$="SelectTrigger",y$=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=il(n),i=Vn(b$,n),s=i.disabled||r,l=Oe(t,i.onTriggerChange),c=al(n),[f,d,h]=Mh(p=>{const m=c().filter(v=>!v.disabled),x=m.find(v=>v.value===i.value),b=Ph(m,p,x);b!==void 0&&i.onValueChange(b.value)}),g=()=>{s||(i.onOpenChange(!0),h())};return u.createElement(Ls,J({asChild:!0},a),u.createElement(we.button,J({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Eh(i.value)?"":void 0},o,{ref:l,onClick:pe(o.onClick,p=>{p.currentTarget.focus()}),onPointerDown:pe(o.onPointerDown,p=>{const m=p.target;m.hasPointerCapture(p.pointerId)&&m.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&(g(),i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)},p.preventDefault())}),onKeyDown:pe(o.onKeyDown,p=>{const m=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&d(p.key),!(m&&p.key===" ")&&d$.includes(p.key)&&(g(),p.preventDefault())})})))}),w$="SelectValue",x$=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,l=Vn(w$,n),{onValueNodeHasChildrenChange:c}=l,f=a!==void 0,d=Oe(t,l.onValueNodeChange);return pt(()=>{c(f)},[c,f]),u.createElement(we.span,J({},s,{ref:d,style:{pointerEvents:"none"}}),Eh(l.value)?u.createElement(u.Fragment,null,i):a)}),$$=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return u.createElement(we.span,J({"aria-hidden":!0},o,{ref:t}),r||"▼")}),S$=e=>u.createElement(js,J({asChild:!0},e)),Pr="SelectContent",C$=u.forwardRef((e,t)=>{const n=Vn(Pr,e.__scopeSelect),[r,o]=u.useState();if(pt(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?pn.createPortal(u.createElement(xh,{scope:e.__scopeSelect},u.createElement(Ya.Slot,{scope:e.__scopeSelect},u.createElement("div",null,e.children))),a):null}return u.createElement(E$,J({},e,{ref:t}))}),nn=10,[xh,qa]=Mr(Pr),E$=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:l,align:c,alignOffset:f,arrowPadding:d,collisionBoundary:h,collisionPadding:g,sticky:p,hideWhenDetached:m,avoidCollisions:x,...b}=e,v=Vn(Pr,n),[w,E]=u.useState(null),[S,M]=u.useState(null),N=Oe(t,X=>E(X)),[T,O]=u.useState(null),[F,j]=u.useState(null),H=al(n),[G,L]=u.useState(!1),C=u.useRef(!1);u.useEffect(()=>{if(w)return kf(w)},[w]),Kd();const _=u.useCallback(X=>{const[le,...U]=H().map(k=>k.ref.current),[Z]=U.slice(-1),ie=document.activeElement;for(const k of X)if(k===ie||(k==null||k.scrollIntoView({block:"nearest"}),k===le&&S&&(S.scrollTop=0),k===Z&&S&&(S.scrollTop=S.scrollHeight),k==null||k.focus(),document.activeElement!==ie))return},[H,S]),B=u.useCallback(()=>_([T,w]),[_,T,w]);u.useEffect(()=>{G&&B()},[G,B]);const{onOpenChange:V,triggerPointerDownPosRef:D}=v;u.useEffect(()=>{if(w){let X={x:0,y:0};const le=Z=>{var ie,k,te,ae;X={x:Math.abs(Math.round(Z.pageX)-((ie=(k=D.current)===null||k===void 0?void 0:k.x)!==null&&ie!==void 0?ie:0)),y:Math.abs(Math.round(Z.pageY)-((te=(ae=D.current)===null||ae===void 0?void 0:ae.y)!==null&&te!==void 0?te:0))}},U=Z=>{X.x<=10&&X.y<=10?Z.preventDefault():w.contains(Z.target)||V(!1),document.removeEventListener("pointermove",le),D.current=null};return D.current!==null&&(document.addEventListener("pointermove",le),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",le),document.removeEventListener("pointerup",U,{capture:!0})}}},[w,V,D]),u.useEffect(()=>{const X=()=>V(!1);return window.addEventListener("blur",X),window.addEventListener("resize",X),()=>{window.removeEventListener("blur",X),window.removeEventListener("resize",X)}},[V]);const[A,W]=Mh(X=>{const le=H().filter(ie=>!ie.disabled),U=le.find(ie=>ie.ref.current===document.activeElement),Z=Ph(le,X,U);Z&&setTimeout(()=>Z.ref.current.focus())}),ne=u.useCallback((X,le,U)=>{const Z=!C.current&&!U;(v.value!==void 0&&v.value===le||Z)&&(O(X),Z&&(C.current=!0))},[v.value]),Q=u.useCallback(()=>w==null?void 0:w.focus(),[w]),re=u.useCallback((X,le,U)=>{const Z=!C.current&&!U;(v.value!==void 0&&v.value===le||Z)&&j(X)},[v.value]),oe=r==="popper"?$h:T$,ue=oe===$h?{side:s,sideOffset:l,align:c,alignOffset:f,arrowPadding:d,collisionBoundary:h,collisionPadding:g,sticky:p,hideWhenDetached:m,avoidCollisions:x}:{};return u.createElement(xh,{scope:n,content:w,viewport:S,onViewportChange:M,itemRefCallback:ne,selectedItem:T,onItemLeave:Q,itemTextRefCallback:re,focusSelectedItem:B,selectedItemText:F,position:r,isPositioned:G,searchRef:A},u.createElement(Vf,{as:Zt,allowPinchZoom:!0},u.createElement(Qd,{asChild:!0,trapped:v.open,onMountAutoFocus:X=>{X.preventDefault()},onUnmountAutoFocus:pe(o,X=>{var le;(le=v.trigger)===null||le===void 0||le.focus({preventScroll:!0}),X.preventDefault()})},u.createElement(Cs,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:X=>X.preventDefault(),onDismiss:()=>v.onOpenChange(!1)},u.createElement(oe,J({role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:X=>X.preventDefault()},b,ue,{onPlaced:()=>L(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:pe(b.onKeyDown,X=>{const le=X.ctrlKey||X.altKey||X.metaKey;if(X.key==="Tab"&&X.preventDefault(),!le&&X.key.length===1&&W(X.key),["ArrowUp","ArrowDown","Home","End"].includes(X.key)){let Z=H().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);if(["ArrowUp","End"].includes(X.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(X.key)){const ie=X.target,k=Z.indexOf(ie);Z=Z.slice(k+1)}setTimeout(()=>_(Z)),X.preventDefault()}})}))))))}),T$=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Vn(Pr,n),i=qa(Pr,n),[s,l]=u.useState(null),[c,f]=u.useState(null),d=Oe(t,N=>f(N)),h=al(n),g=u.useRef(!1),p=u.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:b,focusSelectedItem:v}=i,w=u.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&c&&m&&x&&b){const N=a.trigger.getBoundingClientRect(),T=c.getBoundingClientRect(),O=a.valueNode.getBoundingClientRect(),F=b.getBoundingClientRect();if(a.dir!=="rtl"){const ie=F.left-T.left,k=O.left-ie,te=N.left-k,ae=N.width+te,me=Math.max(ae,T.width),ye=window.innerWidth-nn,Ee=ma(k,[nn,ye-me]);s.style.minWidth=ae+"px",s.style.left=Ee+"px"}else{const ie=T.right-F.right,k=window.innerWidth-O.right-ie,te=window.innerWidth-N.right-k,ae=N.width+te,me=Math.max(ae,T.width),ye=window.innerWidth-nn,Ee=ma(k,[nn,ye-me]);s.style.minWidth=ae+"px",s.style.right=Ee+"px"}const j=h(),H=window.innerHeight-nn*2,G=m.scrollHeight,L=window.getComputedStyle(c),C=parseInt(L.borderTopWidth,10),_=parseInt(L.paddingTop,10),B=parseInt(L.borderBottomWidth,10),V=parseInt(L.paddingBottom,10),D=C+_+G+V+B,A=Math.min(x.offsetHeight*5,D),W=window.getComputedStyle(m),ne=parseInt(W.paddingTop,10),Q=parseInt(W.paddingBottom,10),re=N.top+N.height/2-nn,oe=H-re,ue=x.offsetHeight/2,X=x.offsetTop+ue,le=C+_+X,U=D-le;if(le<=re){const ie=x===j[j.length-1].ref.current;s.style.bottom="0px";const k=c.clientHeight-m.offsetTop-m.offsetHeight,te=Math.max(oe,ue+(ie?Q:0)+k+B),ae=le+te;s.style.height=ae+"px"}else{const ie=x===j[0].ref.current;s.style.top="0px";const te=Math.max(re,C+m.offsetTop+(ie?ne:0)+ue)+U;s.style.height=te+"px",m.scrollTop=le-re+m.offsetTop}s.style.margin=`${nn}px 0`,s.style.minHeight=A+"px",s.style.maxHeight=H+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[h,a.trigger,a.valueNode,s,c,m,x,b,a.dir,r]);pt(()=>w(),[w]);const[E,S]=u.useState();pt(()=>{c&&S(window.getComputedStyle(c).zIndex)},[c]);const M=u.useCallback(N=>{N&&p.current===!0&&(w(),v==null||v(),p.current=!1)},[w,v]);return u.createElement(M$,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:g,onScrollButtonChange:M},u.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E}},u.createElement(we.div,J({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),$h=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=nn,...a}=e,i=il(n);return u.createElement(Fs,J({},i,a,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[M$,P$]=Mr(Pr,{}),Sh="SelectViewport",k$=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=qa(Sh,n),a=P$(Sh,n),i=Oe(t,o.onViewportChange),s=u.useRef(0);return u.createElement(u.Fragment,null,u.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),u.createElement(Ya.Slot,{scope:n},u.createElement(we.div,J({"data-radix-select-viewport":"",role:"presentation"},r,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:pe(r.onScroll,l=>{const c=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=a;if(d!=null&&d.current&&f){const h=Math.abs(s.current-c.scrollTop);if(h>0){const g=window.innerHeight-nn*2,p=parseFloat(f.style.minHeight),m=parseFloat(f.style.height),x=Math.max(p,m);if(x<g){const b=x+h,v=Math.min(g,b),w=b-v;f.style.height=v+"px",f.style.bottom==="0px"&&(c.scrollTop=w>0?w:0,f.style.justifyContent="flex-end")}}}s.current=c.scrollTop})}))))}),O$="SelectGroup",[N$,_$]=Mr(O$),D$=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Wt();return u.createElement(N$,{scope:n,id:o},u.createElement(we.div,J({role:"group","aria-labelledby":o},r,{ref:t})))}),A$="SelectLabel",I$=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=_$(A$,n);return u.createElement(we.div,J({id:o.id},r,{ref:t}))}),sl="SelectItem",[L$,Ch]=Mr(sl),F$=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=Vn(sl,n),l=qa(sl,n),c=s.value===r,[f,d]=u.useState(a??""),[h,g]=u.useState(!1),p=Oe(t,b=>{var v;return(v=l.itemRefCallback)===null||v===void 0?void 0:v.call(l,b,r,o)}),m=Wt(),x=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.createElement(L$,{scope:n,value:r,disabled:o,textId:m,isSelected:c,onItemTextChange:u.useCallback(b=>{d(v=>{var w;return v||((w=b==null?void 0:b.textContent)!==null&&w!==void 0?w:"").trim()})},[])},u.createElement(Ya.ItemSlot,{scope:n,value:r,disabled:o,textValue:f},u.createElement(we.div,J({role:"option","aria-labelledby":m,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},i,{ref:p,onFocus:pe(i.onFocus,()=>g(!0)),onBlur:pe(i.onBlur,()=>g(!1)),onPointerUp:pe(i.onPointerUp,x),onPointerMove:pe(i.onPointerMove,b=>{if(o){var v;(v=l.onItemLeave)===null||v===void 0||v.call(l)}else b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:pe(i.onPointerLeave,b=>{if(b.currentTarget===document.activeElement){var v;(v=l.onItemLeave)===null||v===void 0||v.call(l)}}),onKeyDown:pe(i.onKeyDown,b=>{var v;((v=l.searchRef)===null||v===void 0?void 0:v.current)!==""&&b.key===" "||(f$.includes(b.key)&&x(),b.key===" "&&b.preventDefault())})}))))}),Ka="SelectItemText",j$=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=Vn(Ka,n),s=qa(Ka,n),l=Ch(Ka,n),c=g$(Ka,n),[f,d]=u.useState(null),h=Oe(t,b=>d(b),l.onItemTextChange,b=>{var v;return(v=s.itemTextRefCallback)===null||v===void 0?void 0:v.call(s,b,l.value,l.disabled)}),g=f==null?void 0:f.textContent,p=u.useMemo(()=>u.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},g),[l.disabled,l.value,g]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=c;return pt(()=>(m(p),()=>x(p)),[m,x,p]),u.createElement(u.Fragment,null,u.createElement(we.span,J({id:l.textId},a,{ref:h})),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?pn.createPortal(a.children,i.valueNode):null)}),z$="SelectItemIndicator",B$=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Ch(z$,n).isSelected?u.createElement(we.span,J({"aria-hidden":!0},r,{ref:t})):null}),W$=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return u.createElement(we.div,J({"aria-hidden":!0},r,{ref:t}))});function Eh(e){return e===""||e===void 0}const Th=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=u.useRef(null),a=Oe(t,o),i=ds(n);return u.useEffect(()=>{const s=o.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==n&&f){const d=new Event("change",{bubbles:!0});f.call(s,n),s.dispatchEvent(d)}},[i,n]),u.createElement(wh,{asChild:!0},u.createElement("select",J({},r,{ref:a,defaultValue:n})))});Th.displayName="BubbleSelect";function Mh(e){const t=lt(e),n=u.useRef(""),r=u.useRef(0),o=u.useCallback(i=>{const s=n.current+i;t(s),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),a=u.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Ph(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=V$(e,Math.max(a,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function V$(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const H$=v$,kh=y$,G$=x$,U$=$$,Y$=S$,Oh=C$,q$=k$,K$=D$,Nh=I$,_h=F$,X$=j$,Z$=B$,Dh=W$,Q$=H$,J$=K$,R$=G$,Ah=u.forwardRef(({className:e,children:t,...n},r)=>y.jsx("div",{className:"rabbit-ds",children:y.jsxs(kh,{ref:r,className:ge("rabbit-ds h-10 pr-3 py-2.5 rounded-tl text-sm rounded-tr border-b border-dashed hover:border-solid border-zinc-800 justify-between items-center gap-2 inline-flex focus:outline-none focus:border-solid disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:[t,y.jsx(U$,{asChild:!0,children:y.jsx(ps,{className:"h-4 w-4"})})]})}));Ah.displayName=kh.displayName;const Ih=u.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>y.jsx(Y$,{children:y.jsx(Oh,{ref:o,className:ge("relative z-[1500] rabbit-ds min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex-col justify-start items-start gap-1 inline-flex data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:y.jsx(q$,{className:ge("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));Ih.displayName=Oh.displayName;const Lh=u.forwardRef(({className:e,...t},n)=>y.jsx(Nh,{ref:n,className:ge("py-1.5 px-2 text-sm font-semibold",e),...t}));Lh.displayName=Nh.displayName;const Fh=u.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(_h,{ref:r,className:ge("relative flex w-full my-1 cursor-default select-none p-2 bg-white rounded flex-col hover:bg-sky-100 hover:text-sky-800 hover:cursor-pointer justify-start items-start text-zinc-800 text-sm font-normal leading-tight focus:bg-sky-100 focus:text-sky-800 data-[state=checked]:bg-sky-100 data-[state=checked]:text-sky-800 focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[y.jsx("span",{className:"absolute right-2 flex h-4 w-4 items-center justify-center",children:y.jsx(Z$,{children:y.jsx(sa,{className:"h-4 w-4 text-sky-800"})})}),y.jsx(X$,{children:t})]}));Fh.displayName=_h.displayName;const jh=u.forwardRef(({className:e,...t},n)=>y.jsx(Dh,{ref:n,className:ge("-mx-1 my-1 h-px bg-muted",e),...t}));jh.displayName=Dh.displayName;const[Xa,y_]=ht("Tooltip",[$r]),ll=$r(),eS="TooltipProvider",tS=700,cl="tooltip.open",[nS,ul]=Xa(eS),rS=e=>{const{__scopeTooltip:t,delayDuration:n=tS,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[i,s]=u.useState(!0),l=u.useRef(!1),c=u.useRef(0);return u.useEffect(()=>{const f=c.current;return()=>window.clearTimeout(f)},[]),u.createElement(nS,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(c.current),s(!1)},[]),onClose:u.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:u.useCallback(f=>{l.current=f},[]),disableHoverableContent:o},a)},dl="Tooltip",[oS,mo]=Xa(dl),aS=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,l=ul(dl,e.__scopeTooltip),c=ll(t),[f,d]=u.useState(null),h=Wt(),g=u.useRef(0),p=i??l.disableHoverableContent,m=s??l.delayDuration,x=u.useRef(!1),[b=!1,v]=wt({prop:r,defaultProp:o,onChange:N=>{N?(l.onOpen(),document.dispatchEvent(new CustomEvent(cl))):l.onClose(),a==null||a(N)}}),w=u.useMemo(()=>b?x.current?"delayed-open":"instant-open":"closed",[b]),E=u.useCallback(()=>{window.clearTimeout(g.current),x.current=!1,v(!0)},[v]),S=u.useCallback(()=>{window.clearTimeout(g.current),v(!1)},[v]),M=u.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{x.current=!0,v(!0)},m)},[m,v]);return u.useEffect(()=>()=>window.clearTimeout(g.current),[]),u.createElement(Ta,c,u.createElement(oS,{scope:t,contentId:h,open:b,stateAttribute:w,trigger:f,onTriggerChange:d,onTriggerEnter:u.useCallback(()=>{l.isOpenDelayed?M():E()},[l.isOpenDelayed,M,E]),onTriggerLeave:u.useCallback(()=>{p?S():window.clearTimeout(g.current)},[S,p]),onOpen:E,onClose:S,disableHoverableContent:p},n))},zh="TooltipTrigger",iS=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=mo(zh,n),a=ul(zh,n),i=ll(n),s=u.useRef(null),l=Oe(t,s,o.onTriggerChange),c=u.useRef(!1),f=u.useRef(!1),d=u.useCallback(()=>c.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),u.createElement(Ls,J({asChild:!0},i),u.createElement(we.button,J({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:l,onPointerMove:pe(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:pe(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:pe(e.onBlur,o.onClose),onClick:pe(e.onClick,o.onClose)})))}),Bh="TooltipPortal",[sS,lS]=Xa(Bh,{forceMount:void 0}),cS=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=mo(Bh,t);return u.createElement(sS,{scope:t,forceMount:n},u.createElement(Xt,{present:n||a.open},u.createElement(js,{asChild:!0,container:o},r)))},go="TooltipContent",uS=u.forwardRef((e,t)=>{const n=lS(go,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=mo(go,e.__scopeTooltip);return u.createElement(Xt,{present:r||i.open},i.disableHoverableContent?u.createElement(Wh,J({side:o},a,{ref:t})):u.createElement(dS,J({side:o},a,{ref:t})))}),dS=u.forwardRef((e,t)=>{const n=mo(go,e.__scopeTooltip),r=ul(go,e.__scopeTooltip),o=u.useRef(null),a=Oe(t,o),[i,s]=u.useState(null),{trigger:l,onClose:c}=n,f=o.current,{onPointerInTransitChange:d}=r,h=u.useCallback(()=>{s(null),d(!1)},[d]),g=u.useCallback((p,m)=>{const x=p.currentTarget,b={x:p.clientX,y:p.clientY},v=hS(b,x.getBoundingClientRect()),w=pS(b,v),E=mS(m.getBoundingClientRect()),S=vS([...w,...E]);s(S),d(!0)},[d]);return u.useEffect(()=>()=>h(),[h]),u.useEffect(()=>{if(l&&f){const p=x=>g(x,f),m=x=>g(x,l);return l.addEventListener("pointerleave",p),f.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",p),f.removeEventListener("pointerleave",m)}}},[l,f,g,h]),u.useEffect(()=>{if(i){const p=m=>{const x=m.target,b={x:m.clientX,y:m.clientY},v=(l==null?void 0:l.contains(x))||(f==null?void 0:f.contains(x)),w=!gS(b,i);v?h():w&&(h(),c())};return document.addEventListener("pointermove",p),()=>document.removeEventListener("pointermove",p)}},[l,f,i,c,h]),u.createElement(Wh,J({},e,{ref:a}))}),[fS,w_]=Xa(dl,{isInside:!1}),Wh=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,l=mo(go,n),c=ll(n),{onClose:f}=l;return u.useEffect(()=>(document.addEventListener(cl,f),()=>document.removeEventListener(cl,f)),[f]),u.useEffect(()=>{if(l.trigger){const d=h=>{const g=h.target;g!=null&&g.contains(l.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,f]),u.createElement(Cs,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:f},u.createElement(Fs,J({"data-state":l.stateAttribute},c,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),u.createElement(ad,null,r),u.createElement(fS,{scope:n,isInside:!0},u.createElement(u$,{id:l.contentId,role:"tooltip"},o||r))))});function hS(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function pS(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function mS(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function gS(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,l=t[a].y,c=t[i].x,f=t[i].y;l>r!=f>r&&n<(c-s)*(r-l)/(f-l)+s&&(o=!o)}return o}function vS(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),bS(t)}function bS(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const yS=rS,wS=aS,xS=iS,$S=cS,Vh=uS,Hh=yS,Gh=wS,Uh=xS,Yh=$S,fl=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(Vh,{ref:r,sideOffset:t,className:ge("z-[1500] overflow-hidden p-2 bg-gray-600 max-w-xs rounded transition-opacity justify-start items-start inline-flex text-center text-white text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e,"rabbit-ds"),...n}));fl.displayName=Vh.displayName;function SS(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[y.jsx("path",{fill:"currentColor",d:"M10.667 5.333a1.333 1.333 0 1 1 2.666 0v13.334a1.333 1.333 0 0 1-2.666 0z"}),y.jsx("path",{fill:"currentColor",d:"M5.333 13.333a1.333 1.333 0 1 1 0-2.666h13.334a1.333 1.333 0 0 1 0 2.666z"})]})}function qh(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 28 28",...e,children:[y.jsx("rect",{width:27,height:27,x:-.5,y:.5,stroke:"currentColor",rx:13.5,transform:"matrix(-1 0 0 1 27 0)"}),y.jsx("path",{fill:"currentColor",d:"M11.5 13.99c0 .212.088.416.244.566l3.326 3.2a.847.847 0 0 0 .591.244.85.85 0 0 0 .595-.234.785.785 0 0 0 .244-.573.787.787 0 0 0-.254-.569l-3.326-3.2a.848.848 0 0 0-.588-.234.849.849 0 0 0-.588.235.785.785 0 0 0-.244.565"}),y.jsx("path",{fill:"currentColor",d:"M11.5 13.99c0 .212.088.416.243.566.156.15.368.234.588.234.221 0 .433-.084.588-.234l3.327-3.2a.779.779 0 0 0 .204-.768.816.816 0 0 0-.582-.56.855.855 0 0 0-.798.197l-3.326 3.2a.785.785 0 0 0-.244.565"})]})}function Kh(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 28 28",...e,children:[y.jsx("rect",{width:27,height:27,x:.5,y:.5,stroke:"currentColor",rx:13.5}),y.jsx("path",{fill:"currentColor",d:"M16.5 13.99a.785.785 0 0 1-.244.566l-3.326 3.2a.847.847 0 0 1-.591.244.85.85 0 0 1-.596-.234.785.785 0 0 1-.243-.573.787.787 0 0 1 .254-.569l3.326-3.2a.848.848 0 0 1 .588-.234c.22 0 .432.085.588.235.156.15.244.353.244.565"}),y.jsx("path",{fill:"currentColor",d:"M16.5 13.99a.785.785 0 0 1-.244.566.849.849 0 0 1-.588.234.848.848 0 0 1-.587-.234l-3.327-3.2a.779.779 0 0 1-.204-.768.817.817 0 0 1 .582-.56.855.855 0 0 1 .798.197l3.326 3.2c.156.15.244.353.244.565"})]})}function Xh(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[y.jsx("path",{fill:"currentColor",d:"M5.235 12.012c0-.265.115-.52.318-.707l4.345-4c.202-.193.48-.303.772-.305.291-.002.571.103.777.293.206.19.32.447.318.716a.964.964 0 0 1-.331.71l-4.345 4c-.203.188-.48.293-.768.293-.288 0-.564-.105-.768-.293a.961.961 0 0 1-.318-.707"}),y.jsx("path",{fill:"currentColor",d:"M5.235 12.012c0-.265.115-.52.318-.707.204-.187.48-.292.768-.292.288 0 .564.105.768.293l4.345 4a.945.945 0 0 1 .266.959c-.102.34-.39.606-.76.7-.37.093-.766 0-1.042-.246l-4.345-4a.961.961 0 0 1-.318-.707M12.235 12.012c0-.265.114-.52.318-.707l4.345-4c.202-.193.48-.303.771-.305.292-.002.572.103.778.293a.96.96 0 0 1 .318.716.964.964 0 0 1-.331.71l-4.345 4c-.204.188-.48.293-.768.293-.288 0-.564-.105-.768-.293a.962.962 0 0 1-.318-.707"}),y.jsx("path",{fill:"currentColor",d:"M12.235 12.012c0-.265.114-.52.318-.707.204-.187.48-.292.768-.292.288 0 .564.105.768.293l4.344 4c.267.253.368.618.267.959-.102.34-.39.606-.76.7-.37.093-.767 0-1.042-.246l-4.345-4a.962.962 0 0 1-.318-.707"})]})}function CS(e){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 25",...e,children:y.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.002 6.209a1.44 1.44 0 0 1 1.131-.55h3.734c.527 0 .91.274 1.13.55.196.244.336.575.336.916v.09h3.2c.31 0 .726.077 1.057.409.332.331.41.747.41 1.057v9.867H4V8.68c0-.31.078-.726.41-1.057.331-.332.747-.41 1.057-.41h3.2v-.089c0-.34.14-.672.335-.916m-.335 3.005H6v2.667h2.667zm2 2.667V9.214h2.666v2.667zm-2 2H6v2.667h2.667zm2 2.667V13.88h2.666v2.667zm4.666 0H18V13.88h-2.667zm0-4.667H18V9.214h-2.667z",clipRule:"evenodd"})})}function ES(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 25",...e,children:[y.jsx("path",{stroke:"currentColor",strokeWidth:2,d:"M18.366 9.542c.392.266.634.72.634 1.214v7.294c0 .391-.152.762-.417 1.033-.265.27-.618.417-.983.417H6.4c-.364 0-.718-.148-.983-.417A1.477 1.477 0 0 1 5 18.05v-7.293c0-.496.243-.95.633-1.215h.001l5.6-3.805a1.365 1.365 0 0 1 1.533 0z"}),y.jsx("path",{stroke:"currentColor",strokeWidth:2,d:"M10 15.5a2 2 0 1 1 4 0v4h-4z"})]})}function TS(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 36 36",...e,children:[y.jsxs("g",{filter:"url(#a)",children:[y.jsx("path",{fill:"currentColor",d:"M26.464 18.342a1.54 1.54 0 0 1-1.539 1.543 1.54 1.54 0 0 1-1.538-1.543 1.54 1.54 0 0 1 1.538-1.542c.85 0 1.54.69 1.54 1.542M15.919 10.404a2.311 2.311 0 0 1-3.303-2.088 2.311 2.311 0 0 1 2.307-2.314 2.311 2.311 0 0 1 2.083 3.311l2.904 2.911a1.54 1.54 0 0 1 1.937 1.49 1.54 1.54 0 0 1-1.538 1.543 1.54 1.54 0 0 1-1.487-1.942z"}),y.jsx("path",{fill:"currentColor",d:"M12.606 13.708a1.54 1.54 0 0 1-1.539 1.542 1.54 1.54 0 0 1-1.538-1.542 1.54 1.54 0 0 1 1.538-1.543c.85 0 1.54.69 1.54 1.543M16.323 19.777a1.54 1.54 0 0 1-1.937-1.49 1.54 1.54 0 0 1 1.538-1.543 1.54 1.54 0 0 1 1.487 1.943l2.904 2.91a2.311 2.311 0 0 1 3.303 2.088 2.311 2.311 0 0 1-2.308 2.315 2.311 2.311 0 0 1-2.308-2.314c0-.357.08-.696.225-.998z"}),y.jsx("path",{fill:"currentColor",d:"M17.234 22.967a1.54 1.54 0 0 1-1.54 1.543 1.54 1.54 0 0 1-1.538-1.543 1.54 1.54 0 0 1 1.539-1.542c.85 0 1.538.69 1.538 1.542M28.005 12.94a2.311 2.311 0 0 1-3.296 2.092l-2.91 2.916a1.54 1.54 0 0 1-1.489 1.934 1.54 1.54 0 0 1-1.538-1.542 1.54 1.54 0 0 1 1.946-1.488l2.899-2.907a2.31 2.31 0 0 1-.229-1.005 2.311 2.311 0 0 1 2.309-2.313 2.311 2.311 0 0 1 2.308 2.313"}),y.jsx("path",{fill:"currentColor",d:"M21.844 9.083a1.54 1.54 0 0 1-1.539 1.542 1.54 1.54 0 0 1-1.538-1.542 1.54 1.54 0 0 1 1.538-1.543c.85 0 1.54.69 1.54 1.543M17.228 13.71a1.54 1.54 0 0 1-1.929 1.493L12.39 18.12c.142.3.221.636.221.99a2.311 2.311 0 0 1-2.308 2.314 2.311 2.311 0 0 1-2.308-2.314 2.311 2.311 0 0 1 3.31-2.084l2.9-2.906a1.54 1.54 0 0 1 1.484-1.95c.85-.001 1.539.69 1.539 1.541"})]}),y.jsx("defs",{children:y.jsxs("filter",{id:"a",width:40,height:40,x:-2,y:-2,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[y.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),y.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),y.jsx("feOffset",{dy:2}),y.jsx("feGaussianBlur",{stdDeviation:4}),y.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),y.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),y.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_864_105"}),y.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_864_105",result:"shape"})]})})]})}function MS(e){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:y.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 10.125c.775 0 1.625-.719 1.625-1.875 0-1.156-.85-1.875-1.625-1.875s-1.625.719-1.625 1.875c0 1.156.85 1.875 1.625 1.875m-5.107 7.438c-.018.037-.018.052-.018.062h10.25c0-.01 0-.025-.018-.062a.945.945 0 0 0-.19-.244c-.247-.245-.673-.522-1.279-.782-1.221-.524-2.72-.787-3.638-.787-.919 0-2.417.263-3.638.787-.607.26-1.032.537-1.278.782a.947.947 0 0 0-.19.244M5 19.5v-1.875c0-2.496 4.66-3.75 7-3.75s7 1.254 7 3.75V19.5zM15.5 8.25c0 2.068-1.57 3.75-3.5 3.75s-3.5-1.682-3.5-3.75S10.07 4.5 12 4.5s3.5 1.682 3.5 3.75",clipRule:"evenodd"})})}function PS(e){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:y.jsx("path",{fill:"currentColor",d:"m19.783 18.616-2.986-2.955c2.266-2.822 2.053-6.976-.533-9.558A7.103 7.103 0 0 0 11.198 4c-1.92 0-3.732.745-5.092 2.103A7.099 7.099 0 0 0 4 11.188c0 1.943.747 3.727 2.106 5.085 1.36 1.331 3.146 2.103 5.092 2.103 1.627 0 3.226-.56 4.48-1.57l2.959 2.954c.16.16.346.24.56.24.213 0 .426-.08.56-.24.32-.32.32-.825.026-1.144m-2.986-7.428a5.47 5.47 0 0 1-1.653 3.94c-1.066 1.038-2.453 1.65-3.946 1.65a5.486 5.486 0 0 1-3.945-1.65c-1.04-1.065-1.653-2.45-1.653-3.94a5.47 5.47 0 0 1 1.652-3.94c1.067-1.039 2.427-1.65 3.946-1.65 1.493 0 2.906.585 3.946 1.65s1.653 2.422 1.653 3.94"})})}function Zh(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[y.jsx("rect",{width:15,height:15,x:4.5,y:4.041,stroke:"currentColor",rx:1.5}),y.jsx("path",{stroke:"currentColor",strokeLinecap:"round",d:"M9 16v-6M12 16V8M15 15.541v-3"})]})}function kS(e){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:y.jsx("path",{stroke:"currentColor",strokeWidth:2,d:"M17.8 16.5c0-.461-.066-.889-.185-1.284.095.043.188.088.278.135.876.455 1.107.88 1.107 1.149v.5h-1.2zM11.4 9c0 1.168-.872 2-1.8 2s-1.8-.832-1.8-2c0-1.168.872-2 1.8-2s1.8.832 1.8 2ZM5 16.5c0-.158.066-.354.315-.6.258-.256.66-.508 1.177-.73 1.04-.446 2.306-.67 3.108-.67s2.068.224 3.108.67c.517.222.919.474 1.177.73.249.246.315.442.315.6v.5H5zM16.2 9c0 1.056-.712 1.837-1.535 1.977A5.972 5.972 0 0 0 15 9c0-.692-.118-1.36-.335-1.977.823.14 1.535.921 1.535 1.977Z"})})}const Qh=qe("",{variants:{size:{default:24,small:16,"x-small":12,large:32,"x-large":48}},defaultVariants:{size:"default"}});function kr({size:e,IconSVG:t,className:n}){return y.jsx("div",{className:"rabbit-ds",children:y.jsx(t,{width:Qh({size:e}),height:Qh({size:e}),className:ge(n)})})}const OS=qe(["rabbit-ds relative h-14 w-14 font-sans rounded-lg text-3xs text-dark-medium font-base justify-center items-center flex transition-colors disabled:pointer-events-none","hover:bg-card-bg-hover hover:text-card-text-hover hover:font-medium","focus:outline-1 focus:outline-offset-2 focus:bg-card-bg-focus focus:text-card-text-focus focus:font-medium","active:bg-card-bg-focus active:text-card-text-focus active:font-medium","is-active:bg-card-bg-focus is-active:text-card-text-focus "],{variants:{variant:{default:"",withNotification:"",withMenu:"",gradient:""}},defaultVariants:{variant:"default"}}),NS=qe("",{variants:{variant:{default:"",gradient:"bg-[linear-gradient(90deg,#038EEF_9.05%,#ED3C65_86.39%)] text-transparent [background-clip:text] [-webkit-background-clip:text]"}},defaultVariants:{variant:"default"}}),Jh=u.forwardRef(({className:e,variant:t,badgeText:n,icon:r,iconSize:o,asChild:a=!1,isActive:i=!1,children:s,...l},c)=>{const f=a?Zt:"button";return y.jsx("div",{className:"rabbit-ds",children:y.jsxs(f,{className:ge(OS({variant:t,className:e})),ref:c,"data-active":i,...l,children:[y.jsxs("div",{className:"flex flex-col items-center",children:[y.jsxs("div",{className:"relative flex items-center justify-center",children:[y.jsx(kr,{IconSVG:r}),t==="withNotification"&&y.jsxs("div",{className:"bg-functional-warn flex items-center justify-center h-5 w-6 text-xs rounded-xl absolute left-3 text-white px-2",children:[y.jsx("span",{className:"sr-only",children:"Notification"}),n]})]}),y.jsx("div",{className:ge(NS({variant:t==="gradient"?t:"default"})),children:s})]}),t==="withMenu"&&y.jsx("div",{className:"flex items-center justify-center absolute right-0 w-3 h-14",children:y.jsx(Cb,{height:"14px",width:"14px"})})]})})});Jh.displayName="NavButton";const Rh=u.createContext({}),_S=()=>u.useContext(Rh);function ep({isActive:e,isDisabled:t,className:n,children:r,...o}){const a=u.useMemo(()=>({isActive:e,isDisabled:t}),[e,t]);return y.jsx(Rh.Provider,{value:a,children:y.jsx("div",{className:"rabbit-ds",children:y.jsx("button",{className:ge("flex items-center px-3 py-1 gap-2 text-dark-medium w-full cursor-pointer rounded-lg","hover:text-card-text-hover","is-active:bg-card-bg-focus is-active:text-card-text-focus","is-disabled:opacity-50 is-disabled:pointer-events-none",n),type:"button","data-active":e,"data-disabled":t,...o,children:r})})})}function DS({title:e,subTitle:t}){const{isActive:n}=_S();return y.jsxs("div",{className:"flex flex-col items-start",children:[y.jsx("span",{className:"text-sm is-active:font-semibold","data-active":n,children:e}),y.jsx("span",{className:"text-xs",children:t})]})}const AS=qe("",{variants:{shape:{default:"",round:"rounded-full overflow-hidden"},iconSize:{normal:"w-6 h-6",large:"w-8 h-8"}},defaultVariants:{iconSize:"normal"}});function IS({icon:e,iconSize:t,className:n,shape:r}){const o=e==="string"?()=>y.jsx("img",{src:e,alt:""}):e;return y.jsx("div",{className:ge(AS({iconSize:t,shape:r}),n),children:y.jsx(o,{})})}const LS=qe("ml-auto",{variants:{shape:{default:"",round:"rounded-full overflow-hidden"},iconSize:{normal:"w-6 h-6",large:"w-8 h-8"}},defaultVariants:{iconSize:"normal"}});function FS({icon:e,iconSize:t,className:n,shape:r}){const o=e==="string"?()=>y.jsx("img",{src:e,alt:"right icon"}):e;return y.jsx("div",{className:ge(LS({iconSize:t,shape:r}),n),children:y.jsx(o,{})})}const tp="Tabs",[jS,x_]=ht(tp,[Sr]),np=Sr(),[zS,hl]=jS(tp),BS=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:s,activationMode:l="automatic",...c}=e,f=vr(s),[d,h]=wt({prop:r,onChange:o,defaultProp:a});return u.createElement(zS,{scope:n,baseId:Wt(),value:d,onValueChange:h,orientation:i,dir:f,activationMode:l},u.createElement(we.div,J({dir:f,"data-orientation":i},c,{ref:t})))}),WS="TabsList",VS=u.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=hl(WS,n),i=np(n);return u.createElement(Vs,J({asChild:!0},i,{orientation:a.orientation,dir:a.dir,loop:r}),u.createElement(we.div,J({role:"tablist","aria-orientation":a.orientation},o,{ref:t})))}),HS="TabsTrigger",GS=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=hl(HS,n),s=np(n),l=rp(i.baseId,r),c=op(i.baseId,r),f=r===i.value;return u.createElement(Hs,J({asChild:!0},s,{focusable:!o,active:f}),u.createElement(we.button,J({type:"button",role:"tab","aria-selected":f,"aria-controls":c,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l},a,{ref:t,onMouseDown:pe(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?i.onValueChange(r):d.preventDefault()}),onKeyDown:pe(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&i.onValueChange(r)}),onFocus:pe(e.onFocus,()=>{const d=i.activationMode!=="manual";!f&&!o&&d&&i.onValueChange(r)})})))}),US="TabsContent",YS=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,s=hl(US,n),l=rp(s.baseId,r),c=op(s.baseId,r),f=r===s.value,d=u.useRef(f);return u.useEffect(()=>{const h=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(h)},[]),u.createElement(Xt,{present:o||f},({present:h})=>u.createElement(we.div,J({"data-state":f?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0},i,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),h&&a))});function rp(e,t){return`${e}-trigger-${t}`}function op(e,t){return`${e}-content-${t}`}const ap=BS,ip=VS,sp=GS,lp=YS,cp=u.forwardRef(({children:e,...t},n)=>y.jsx(ap,{ref:n,...t,className:ge("rabbit-ds",t.className),children:e})),up=u.forwardRef(({children:e,...t},n)=>y.jsx(ip,{ref:n,...t,className:ge("rabbit-ds flex gap-2",t.className),children:e})),dp=u.forwardRef(({children:e,...t},n)=>y.jsx(sp,{ref:n,className:ge("rabbit-ds text-sm text-[#666666] px-4 py-3 font-semibold","data-[state=inactive]:text-[#666666] data-[state=inactive]:border-b-2 data-[state=inactive]:border-transparent","data-[state=active]:text-[#104F95] data-[state=active]:border-b-2 data-[state=active]:border-[#104F95]"),...t,children:e})),fp=u.forwardRef(({children:e,...t},n)=>y.jsx(lp,{ref:n,...t,className:ge("rabbit-ds",t.className),children:e}));cp.displayName=ap.displayName,up.displayName=ip.displayName,dp.displayName=sp.displayName,fp.displayName=lp.displayName;const hp=u.forwardRef(({src:e,title:t,alt:n,className:r,...o},a)=>y.jsxs("div",{className:"rabbit-ds relative",children:[y.jsx("img",{className:ge("h-10 w-10 rounded-full",r),src:e,alt:n??t,ref:a,...o}),y.jsx("div",{className:"text-3xs text-white bg-orange-primary px-0.5 absolute bottom-0 left-1/2 -translate-x-1/2 rounded-sm leading-3 mx-auto",children:t})]}));hp.displayName="NavProfilePhoto";const qS=qe("px-2 py-1 rounded flex items-center justify-center",{variants:{variant:{default:"font-semibold text-xs",outlined:"shadow-[0px_0px_1px_0px_rgba(0,0,0,0.25)] bg-[#F2F2F2] text-dark-high text-sm"}}});function Za({children:e,colorScheme:t="tag-yellow",variant:n="default",className:r}){return y.jsx("div",{className:"rabbit-ds",children:y.jsx("div",{className:ge(n==="outlined"?"":t,qS({variant:n}),r),children:e})})}const pp="Avatar",[KS,$_]=ht(pp),[XS,mp]=KS(pp),ZS=u.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=u.useState("idle");return u.createElement(XS,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a},u.createElement(we.span,J({},r,{ref:t})))}),QS="AvatarImage",JS=u.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=mp(QS,n),s=tC(r),l=lt(c=>{o(c),i.onImageLoadingStatusChange(c)});return pt(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?u.createElement(we.img,J({},a,{ref:t,src:r})):null}),RS="AvatarFallback",eC=u.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=mp(RS,n),[i,s]=u.useState(r===void 0);return u.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(l)}},[r]),i&&a.imageLoadingStatus!=="loaded"?u.createElement(we.span,J({},o,{ref:t})):null});function tC(e){const[t,n]=u.useState("idle");return pt(()=>{if(!e){n("error");return}let r=!0;const o=new window.Image,a=i=>()=>{r&&n(i)};return n("loading"),o.onload=a("loaded"),o.onerror=a("error"),o.src=e,()=>{r=!1}},[e]),t}const gp=ZS,vp=JS,bp=eC,nC=qe("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{xs:"h-3 w-3",sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-10 w-10"}},defaultVariants:{size:"md"}}),Hn=be.forwardRef(({className:e,size:t,...n},r)=>y.jsx(gp,{ref:r,className:ge(nC({size:t}),"relative flex shrink-0 overflow-hidden rounded-full",e),...n}));Hn.displayName=gp.displayName;const Gn=be.forwardRef(({className:e,...t},n)=>y.jsx(vp,{ref:n,className:ge("aspect-square h-full w-full",e),...t}));Gn.displayName=vp.displayName;const yp=be.forwardRef(({className:e,...t},n)=>y.jsx(bp,{ref:n,className:ge("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));yp.displayName=bp.displayName;function Ae(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Un(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const wp=6048e5,rC=864e5,Qa=43200,xp=1440;let oC={};function vo(){return oC}function bo(e,t){var s,l,c,f;const n=vo(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((f=(c=n.locale)==null?void 0:c.options)==null?void 0:f.weekStartsOn)??0,o=Ae(e),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function Ja(e){return bo(e,{weekStartsOn:1})}function $p(e){const t=Ae(e),n=t.getFullYear(),r=Un(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=Ja(r),a=Un(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const i=Ja(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Ra(e){const t=Ae(e);return t.setHours(0,0,0,0),t}function ei(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function aC(e,t){const n=Ra(e),r=Ra(t),o=n.getTime()-ei(n),a=r.getTime()-ei(r);return Math.round((o-a)/rC)}function iC(e){const t=$p(e),n=Un(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ja(n)}function ti(e,t){const n=Ae(e),r=Ae(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function sC(e,t){const n=Ra(e),r=Ra(t);return+n==+r}function lC(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function cC(e){if(!lC(e)&&typeof e!="number")return!1;const t=Ae(e);return!isNaN(Number(t))}function uC(e,t){const n=Ae(e),r=Ae(t),o=n.getFullYear()-r.getFullYear(),a=n.getMonth()-r.getMonth();return o*12+a}function dC(e,t){return Ae(e).getTime()-Ae(t).getTime()}function fC(e){return e?Math[e]:Math.trunc}function hC(e){const t=Ae(e);return t.setHours(23,59,59,999),t}function pC(e){const t=Ae(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function mC(e){const t=Ae(e);return+hC(t)==+pC(t)}function gC(e,t){const n=Ae(e),r=Ae(t),o=ti(n,r),a=Math.abs(uC(n,r));let i;if(a<1)i=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*a);let s=ti(n,r)===-o;mC(Ae(e))&&a===1&&ti(e,r)===1&&(s=!1),i=o*(a-Number(s))}return i===0?0:i}function vC(e,t,n){const r=dC(e,t)/1e3;return fC(n==null?void 0:n.roundingMethod)(r)}function bC(e){const t=Ae(e),n=Un(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const yC={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},wC=(e,t,n)=>{let r;const o=yC[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function pl(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const xC={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},$C={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},SC={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},CC={date:pl({formats:xC,defaultWidth:"full"}),time:pl({formats:$C,defaultWidth:"full"}),dateTime:pl({formats:SC,defaultWidth:"full"})},EC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},TC=(e,t,n,r)=>EC[e];function yo(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{const i=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[i]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const MC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},PC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},kC={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},OC={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},NC={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_C={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},DC={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:yo({values:MC,defaultWidth:"wide"}),quarter:yo({values:PC,defaultWidth:"wide",argumentCallback:e=>e-1}),month:yo({values:kC,defaultWidth:"wide"}),day:yo({values:OC,defaultWidth:"wide"}),dayPeriod:yo({values:NC,defaultWidth:"wide",formattingValues:_C,defaultFormattingWidth:"wide"})};function wo(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?IC(s,d=>d.test(i)):AC(s,d=>d.test(i));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const f=t.slice(i.length);return{value:c,rest:f}}}function AC(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function IC(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function LC(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;const s=t.slice(o.length);return{value:i,rest:s}}}const FC=/^(\d+)(th|st|nd|rd)?/i,jC=/\d+/i,zC={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},BC={any:[/^b/i,/^(a|c)/i]},WC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},VC={any:[/1/i,/2/i,/3/i,/4/i]},HC={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},GC={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},UC={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},YC={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},qC={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},KC={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},XC={ordinalNumber:LC({matchPattern:FC,parsePattern:jC,valueCallback:e=>parseInt(e,10)}),era:wo({matchPatterns:zC,defaultMatchWidth:"wide",parsePatterns:BC,defaultParseWidth:"any"}),quarter:wo({matchPatterns:WC,defaultMatchWidth:"wide",parsePatterns:VC,defaultParseWidth:"any",valueCallback:e=>e+1}),month:wo({matchPatterns:HC,defaultMatchWidth:"wide",parsePatterns:GC,defaultParseWidth:"any"}),day:wo({matchPatterns:UC,defaultMatchWidth:"wide",parsePatterns:YC,defaultParseWidth:"any"}),dayPeriod:wo({matchPatterns:qC,defaultMatchWidth:"any",parsePatterns:KC,defaultParseWidth:"any"})},Sp={code:"en-US",formatDistance:wC,formatLong:CC,formatRelative:TC,localize:DC,match:XC,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ZC(e){const t=Ae(e);return aC(t,bC(t))+1}function QC(e){const t=Ae(e),n=Ja(t).getTime()-iC(t).getTime();return Math.round(n/wp)+1}function Cp(e,t){var f,d,h,g;const n=Ae(e),r=n.getFullYear(),o=vo(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??o.firstWeekContainsDate??((g=(h=o.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,i=Un(e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=bo(i,t),l=Un(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=bo(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function JC(e,t){var s,l,c,f;const n=vo(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(c=n.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??1,o=Cp(e,t),a=Un(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),bo(a,t)}function RC(e,t){const n=Ae(e),r=bo(n,t).getTime()-JC(n,t).getTime();return Math.round(r/wp)+1}function De(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const xn={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return De(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):De(n+1,2)},d(e,t){return De(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return De(e.getHours()%12||12,t.length)},H(e,t){return De(e.getHours(),t.length)},m(e,t){return De(e.getMinutes(),t.length)},s(e,t){return De(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.floor(r*Math.pow(10,n-3));return De(o,t.length)}},Or={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},e3={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return xn.y(e,t)},Y:function(e,t,n,r){const o=Cp(e,r),a=o>0?o:1-o;if(t==="YY"){const i=a%100;return De(i,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):De(a,t.length)},R:function(e,t){const n=$p(e);return De(n,t.length)},u:function(e,t){const n=e.getFullYear();return De(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return De(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return De(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return xn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return De(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=RC(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):De(o,t.length)},I:function(e,t,n){const r=QC(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):De(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):xn.d(e,t)},D:function(e,t,n){const r=ZC(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):De(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return De(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return De(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return De(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Or.noon:r===0?o=Or.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Or.evening:r>=12?o=Or.afternoon:r>=4?o=Or.morning:o=Or.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return xn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):xn.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):De(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):De(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):xn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):xn.s(e,t)},S:function(e,t){return xn.S(e,t)},X:function(e,t,n,r){const a=(r._originalDate||e).getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return Tp(a);case"XXXX":case"XX":return Yn(a);case"XXXXX":case"XXX":default:return Yn(a,":")}},x:function(e,t,n,r){const a=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return Tp(a);case"xxxx":case"xx":return Yn(a);case"xxxxx":case"xxx":default:return Yn(a,":")}},O:function(e,t,n,r){const a=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ep(a,":");case"OOOO":default:return"GMT"+Yn(a,":")}},z:function(e,t,n,r){const a=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ep(a,":");case"zzzz":default:return"GMT"+Yn(a,":")}},t:function(e,t,n,r){const o=r._originalDate||e,a=Math.floor(o.getTime()/1e3);return De(a,t.length)},T:function(e,t,n,r){const a=(r._originalDate||e).getTime();return De(a,t.length)}};function Ep(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+De(a,2)}function Tp(e,t){return e%60===0?(e>0?"-":"+")+De(Math.abs(e)/60,2):Yn(e,t)}function Yn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=De(Math.floor(r/60),2),a=De(r%60,2);return n+o+t+a}const Mp=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Pp=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},t3={p:Pp,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Mp(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Mp(r,t)).replace("{{time}}",Pp(o,t))}},n3=["D","DD"],r3=["YY","YYYY"];function o3(e){return n3.indexOf(e)!==-1}function a3(e){return r3.indexOf(e)!==-1}function kp(e,t,n){if(e==="YYYY")throw new RangeError(`Use \`yyyy\` instead of \`YYYY\` (in \`${t}\`) for formatting years to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e==="YY")throw new RangeError(`Use \`yy\` instead of \`YY\` (in \`${t}\`) for formatting years to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e==="D")throw new RangeError(`Use \`d\` instead of \`D\` (in \`${t}\`) for formatting days of the month to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e==="DD")throw new RangeError(`Use \`dd\` instead of \`DD\` (in \`${t}\`) for formatting days of the month to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`)}const i3=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,s3=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,l3=/^'([^]*?)'?$/,c3=/''/g,u3=/[a-zA-Z]/;function Op(e,t,n){var f,d,h,g,p,m,x,b;const r=vo(),o=(n==null?void 0:n.locale)??r.locale??Sp,a=(n==null?void 0:n.firstWeekContainsDate)??((d=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,i=(n==null?void 0:n.weekStartsOn)??((m=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((b=(x=r.locale)==null?void 0:x.options)==null?void 0:b.weekStartsOn)??0,s=Ae(e);if(!cC(s))throw new RangeError("Invalid time value");const l={firstWeekContainsDate:a,weekStartsOn:i,locale:o,_originalDate:s};return t.match(s3).map(function(v){const w=v[0];if(w==="p"||w==="P"){const E=t3[w];return E(v,o.formatLong)}return v}).join("").match(i3).map(function(v){if(v==="''")return"'";const w=v[0];if(w==="'")return d3(v);const E=e3[w];if(E)return!(n!=null&&n.useAdditionalWeekYearTokens)&&a3(v)&&kp(v,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&o3(v)&&kp(v,t,String(e)),E(s,v,o.localize,l);if(w.match(u3))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return v}).join("")}function d3(e){const t=e.match(l3);return t?t[1].replace(c3,"'"):e}function f3(e,t,n){const r=vo(),o=(n==null?void 0:n.locale)??r.locale??Sp,a=2520,i=ti(e,t);if(isNaN(i))throw new RangeError("Invalid time value");const s=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:i});let l,c;i>0?(l=Ae(t),c=Ae(e)):(l=Ae(e),c=Ae(t));const f=vC(c,l),d=(ei(c)-ei(l))/1e3,h=Math.round((f-d)/60);let g;if(h<2)return n!=null&&n.includeSeconds?f<5?o.formatDistance("lessThanXSeconds",5,s):f<10?o.formatDistance("lessThanXSeconds",10,s):f<20?o.formatDistance("lessThanXSeconds",20,s):f<40?o.formatDistance("halfAMinute",0,s):f<60?o.formatDistance("lessThanXMinutes",1,s):o.formatDistance("xMinutes",1,s):h===0?o.formatDistance("lessThanXMinutes",1,s):o.formatDistance("xMinutes",h,s);if(h<45)return o.formatDistance("xMinutes",h,s);if(h<90)return o.formatDistance("aboutXHours",1,s);if(h<xp){const p=Math.round(h/60);return o.formatDistance("aboutXHours",p,s)}else{if(h<a)return o.formatDistance("xDays",1,s);if(h<Qa){const p=Math.round(h/xp);return o.formatDistance("xDays",p,s)}else if(h<Qa*2)return g=Math.round(h/Qa),o.formatDistance("aboutXMonths",g,s)}if(g=gC(c,l),g<12){const p=Math.round(h/Qa);return o.formatDistance("xMonths",p,s)}else{const p=g%12,m=Math.floor(g/12);return p<3?o.formatDistance("aboutXYears",m,s):p<9?o.formatDistance("overXYears",m,s):o.formatDistance("almostXYears",m+1,s)}}function h3(e,t){return f3(e,Date.now(),t)}function p3(e,t){const n=Ae(e),r=Ae(t);return n.getTime()>r.getTime()}function Np({date:e,showRelativeTime:t=!1,showTime:n=!1,dateFormat:r="MMM dd, yyyy",timeFormat:o="HH:mm",highlightDate:a=t}){const i=new Date,s=sC(e,i)||p3(e,i);let l="";t?(l=h3(e,{addSuffix:!0}),l=ey(l)):l=Op(e,r);const c=s?"text-functional-warn font-semibold":"";return y.jsx("div",{className:"rabbit-ds",children:y.jsxs("span",{className:ge("text-sm",a&&c),children:[l,n&&" • ",n&&Op(e,o)]})})}var ml={exports:{}},ni={exports:{}},Ne={};/** @license React v16.13.1
46
+ `)},Kx=0,Tr=[];function Xx(e){var t=ve.useRef([]),n=ve.useRef([0,0]),r=ve.useRef(),o=ve.useState(Kx++)[0],a=ve.useState(function(){return Vf()})[0],i=ve.useRef(e);ve.useEffect(function(){i.current=e},[e]),ve.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=vx([e.lockRef.current],(e.shards||[]).map(Kf),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=ve.useCallback(function(m,x){if("touches"in m&&m.touches.length===2)return!i.current.allowPinchZoom;var y=La(m),b=n.current,w="deltaX"in m?m.deltaX:b[0]-y[0],E="deltaY"in m?m.deltaY:b[1]-y[1],S,T=m.target,N=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in m&&N==="h"&&T.type==="range")return!1;var M=Gf(N,T);if(!M)return!0;if(M?S=N:(S=N==="v"?"h":"v",M=Gf(N,T)),!M)return!1;if(!r.current&&"changedTouches"in m&&(w||E)&&(r.current=S),!S)return!0;var O=r.current||S;return Ux(O,x,m,O==="h"?w:E,!0)},[]),l=ve.useCallback(function(m){var x=m;if(!(!Tr.length||Tr[Tr.length-1]!==a)){var y="deltaY"in x?qf(x):La(x),b=t.current.filter(function(S){return S.name===x.type&&S.target===x.target&&Yx(S.delta,y)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var w=(i.current.shards||[]).map(Kf).filter(Boolean).filter(function(S){return S.contains(x.target)}),E=w.length>0?s(x,w[0]):!i.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),c=ve.useCallback(function(m,x,y,b){var w={name:m,delta:x,target:y,should:b};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),f=ve.useCallback(function(m){n.current=La(m),r.current=void 0},[]),d=ve.useCallback(function(m){c(m.type,qf(m),m.target,s(m,e.lockRef.current))},[]),h=ve.useCallback(function(m){c(m.type,La(m),m.target,s(m,e.lockRef.current))},[]);ve.useEffect(function(){return Tr.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Mr),document.addEventListener("touchmove",l,Mr),document.addEventListener("touchstart",f,Mr),function(){Tr=Tr.filter(function(m){return m!==a}),document.removeEventListener("wheel",l,Mr),document.removeEventListener("touchmove",l,Mr),document.removeEventListener("touchstart",f,Mr)}},[]);var g=e.removeScrollBar,p=e.inert;return ve.createElement(ve.Fragment,null,p?ve.createElement(a,{styles:qx(o)}):null,g?ve.createElement(jx,{gapMode:"margin"}):null)}const Zx=Mx(Bf,Xx);var Xf=ve.forwardRef(function(e,t){return ve.createElement(Aa,Gt({},e,{ref:t,sideCar:Zx}))});Xf.classNames=Aa.classNames;const Zf=Xf,Js=["Enter"," "],Qx=["ArrowDown","PageUp","Home"],Qf=["ArrowUp","PageDown","End"],Jx=[...Qx,...Qf],Rx={ltr:[...Js,"ArrowRight"],rtl:[...Js,"ArrowLeft"]},e2={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Fa="Menu",[ho,t2,n2]=ya(Fa),[Vn,Jf]=ht(Fa,[n2,Sr,Cr]),ja=Sr(),Rf=Cr(),[eh,wn]=Vn(Fa),[r2,po]=Vn(Fa),o2=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=ja(t),[l,c]=u.useState(null),f=u.useRef(!1),d=lt(a),h=br(o);return u.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",p,{capture:!0,once:!0}),document.addEventListener("pointermove",p,{capture:!0,once:!0})},p=()=>f.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",p,{capture:!0}),document.removeEventListener("pointermove",p,{capture:!0})}},[]),u.createElement(ka,s,u.createElement(eh,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c},u.createElement(r2,{scope:t,onClose:u.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:h,modal:i},r)))},th=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=ja(n);return u.createElement(Bs,J({},o,r,{ref:t}))}),nh="MenuPortal",[a2,rh]=Vn(nh,{forceMount:void 0}),i2=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=wn(nh,t);return u.createElement(a2,{scope:t,forceMount:n},u.createElement(Zt,{present:n||a.open},u.createElement(Vs,{asChild:!0,container:o},r)))},kt="MenuContent",[s2,Rs]=Vn(kt),l2=u.forwardRef((e,t)=>{const n=rh(kt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=wn(kt,e.__scopeMenu),i=po(kt,e.__scopeMenu);return u.createElement(ho.Provider,{scope:e.__scopeMenu},u.createElement(Zt,{present:r||a.open},u.createElement(ho.Slot,{scope:e.__scopeMenu},i.modal?u.createElement(c2,J({},o,{ref:t})):u.createElement(u2,J({},o,{ref:t})))))}),c2=u.forwardRef((e,t)=>{const n=wn(kt,e.__scopeMenu),r=u.useRef(null),o=Oe(t,r);return u.useEffect(()=>{const a=r.current;if(a)return Ff(a)},[]),u.createElement(el,J({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:pe(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),u2=u.forwardRef((e,t)=>{const n=wn(kt,e.__scopeMenu);return u.createElement(el,J({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),el=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,onDismiss:g,disableOutsideScroll:p,...m}=e,x=wn(kt,n),y=po(kt,n),b=ja(n),w=Rf(n),E=t2(n),[S,T]=u.useState(null),N=u.useRef(null),M=Oe(t,N,x.onContentChange),O=u.useRef(0),F=u.useRef(""),j=u.useRef(0),H=u.useRef(null),G=u.useRef("right"),L=u.useRef(0),C=p?Zf:u.Fragment,_=p?{as:Qt,allowPinchZoom:!0}:void 0,B=D=>{var A,W;const ne=F.current+D,Q=E().filter(U=>!U.disabled),re=document.activeElement,oe=(A=Q.find(U=>U.ref.current===re))===null||A===void 0?void 0:A.textValue,ue=Q.map(U=>U.textValue),X=k2(ue,ne,oe),le=(W=Q.find(U=>U.textValue===X))===null||W===void 0?void 0:W.ref.current;(function U(Z){F.current=Z,window.clearTimeout(O.current),Z!==""&&(O.current=window.setTimeout(()=>U(""),1e3))})(ne),le&&setTimeout(()=>le.focus())};u.useEffect(()=>()=>window.clearTimeout(O.current),[]),nf();const V=u.useCallback(D=>{var A,W;return G.current===((A=H.current)===null||A===void 0?void 0:A.side)&&N2(D,(W=H.current)===null||W===void 0?void 0:W.area)},[]);return u.createElement(s2,{scope:n,searchRef:F,onItemEnter:u.useCallback(D=>{V(D)&&D.preventDefault()},[V]),onItemLeave:u.useCallback(D=>{var A;V(D)||((A=N.current)===null||A===void 0||A.focus(),T(null))},[V]),onTriggerLeave:u.useCallback(D=>{V(D)&&D.preventDefault()},[V]),pointerGraceTimerRef:j,onPointerGraceIntentChange:u.useCallback(D=>{H.current=D},[])},u.createElement(C,_,u.createElement(af,{asChild:!0,trapped:o,onMountAutoFocus:pe(a,D=>{var A;D.preventDefault(),(A=N.current)===null||A===void 0||A.focus()}),onUnmountAutoFocus:i},u.createElement(Ps,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,onDismiss:g},u.createElement(Ys,J({asChild:!0},w,{dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:T,onEntryFocus:pe(l,D=>{y.isUsingKeyboardRef.current||D.preventDefault()})}),u.createElement(Ws,J({role:"menu","aria-orientation":"vertical","data-state":dh(x.open),"data-radix-menu-content":"",dir:y.dir},b,m,{ref:M,style:{outline:"none",...m.style},onKeyDown:pe(m.onKeyDown,D=>{const W=D.target.closest("[data-radix-menu-content]")===D.currentTarget,ne=D.ctrlKey||D.altKey||D.metaKey,Q=D.key.length===1;W&&(D.key==="Tab"&&D.preventDefault(),!ne&&Q&&B(D.key));const re=N.current;if(D.target!==re||!Jx.includes(D.key))return;D.preventDefault();const ue=E().filter(X=>!X.disabled).map(X=>X.ref.current);Qf.includes(D.key)&&ue.reverse(),T2(ue)}),onBlur:pe(e.onBlur,D=>{D.currentTarget.contains(D.target)||(window.clearTimeout(O.current),F.current="")}),onPointerMove:pe(e.onPointerMove,mo(D=>{const A=D.target,W=L.current!==D.clientX;if(D.currentTarget.contains(A)&&W){const ne=D.clientX>L.current?"right":"left";G.current=ne,L.current=D.clientX}}))})))))))}),oh=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(ye.div,J({role:"group"},r,{ref:t}))}),d2=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(ye.div,J({},r,{ref:t}))}),tl="MenuItem",ah="menu.itemSelect",nl=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=u.useRef(null),i=po(tl,e.__scopeMenu),s=Rs(tl,e.__scopeMenu),l=Oe(t,a),c=u.useRef(!1),f=()=>{const d=a.current;if(!n&&d){const h=new CustomEvent(ah,{bubbles:!0,cancelable:!0});d.addEventListener(ah,g=>r==null?void 0:r(g),{once:!0}),ud(d,h),h.defaultPrevented?c.current=!1:i.onClose()}};return u.createElement(ih,J({},o,{ref:l,disabled:n,onClick:pe(e.onClick,f),onPointerDown:d=>{var h;(h=e.onPointerDown)===null||h===void 0||h.call(e,d),c.current=!0},onPointerUp:pe(e.onPointerUp,d=>{var h;c.current||(h=d.currentTarget)===null||h===void 0||h.click()}),onKeyDown:pe(e.onKeyDown,d=>{const h=s.searchRef.current!=="";n||h&&d.key===" "||Js.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})}))}),ih=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=Rs(tl,n),s=Rf(n),l=u.useRef(null),c=Oe(t,l),[f,d]=u.useState(!1),[h,g]=u.useState("");return u.useEffect(()=>{const p=l.current;if(p){var m;g(((m=p.textContent)!==null&&m!==void 0?m:"").trim())}},[a.children]),u.createElement(ho.ItemSlot,{scope:n,disabled:r,textValue:o??h},u.createElement(qs,J({asChild:!0},s,{focusable:!r}),u.createElement(ye.div,J({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:c,onPointerMove:pe(e.onPointerMove,mo(p=>{r?i.onItemLeave(p):(i.onItemEnter(p),p.defaultPrevented||p.currentTarget.focus())})),onPointerLeave:pe(e.onPointerLeave,mo(p=>i.onItemLeave(p))),onFocus:pe(e.onFocus,()=>d(!0)),onBlur:pe(e.onBlur,()=>d(!1))}))))}),f2=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return u.createElement(lh,{scope:e.__scopeMenu,checked:n},u.createElement(nl,J({role:"menuitemcheckbox","aria-checked":Ba(n)?"mixed":n},o,{ref:t,"data-state":rl(n),onSelect:pe(o.onSelect,()=>r==null?void 0:r(Ba(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),h2="MenuRadioGroup",[p2,m2]=Vn(h2,{value:void 0,onValueChange:()=>{}}),g2=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=lt(r);return u.createElement(p2,{scope:e.__scopeMenu,value:n,onValueChange:a},u.createElement(oh,J({},o,{ref:t})))}),v2="MenuRadioItem",b2=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=m2(v2,e.__scopeMenu),a=n===o.value;return u.createElement(lh,{scope:e.__scopeMenu,checked:a},u.createElement(nl,J({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":rl(a),onSelect:pe(r.onSelect,()=>{var i;return(i=o.onValueChange)===null||i===void 0?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})))}),sh="MenuItemIndicator",[lh,y2]=Vn(sh,{checked:!1}),w2=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=y2(sh,n);return u.createElement(Zt,{present:r||Ba(a.checked)||a.checked===!0},u.createElement(ye.span,J({},o,{ref:t,"data-state":rl(a.checked)})))}),x2=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(ye.div,J({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),ch="MenuSub",[$2,uh]=Vn(ch),S2=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=wn(ch,t),i=ja(t),[s,l]=u.useState(null),[c,f]=u.useState(null),d=lt(o);return u.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),u.createElement(ka,i,u.createElement(eh,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:f},u.createElement($2,{scope:t,contentId:Vt(),triggerId:Vt(),trigger:s,onTriggerChange:l},n)))},za="MenuSubTrigger",C2=u.forwardRef((e,t)=>{const n=wn(za,e.__scopeMenu),r=po(za,e.__scopeMenu),o=uh(za,e.__scopeMenu),a=Rs(za,e.__scopeMenu),i=u.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,c={__scopeMenu:e.__scopeMenu},f=u.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return u.useEffect(()=>f,[f]),u.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),l(null)}},[s,l]),u.createElement(th,J({asChild:!0},c),u.createElement(ih,J({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":dh(n.open)},e,{ref:la(t,o.onTriggerChange),onClick:d=>{var h;(h=e.onClick)===null||h===void 0||h.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:pe(e.onPointerMove,mo(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:pe(e.onPointerLeave,mo(d=>{var h;f();const g=(h=n.content)===null||h===void 0?void 0:h.getBoundingClientRect();if(g){var p;const m=(p=n.content)===null||p===void 0?void 0:p.dataset.side,x=m==="right",y=x?-5:5,b=g[x?"left":"right"],w=g[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+y,y:d.clientY},{x:b,y:g.top},{x:w,y:g.top},{x:w,y:g.bottom},{x:b,y:g.bottom}],side:m}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:pe(e.onKeyDown,d=>{const h=a.searchRef.current!=="";if(!(e.disabled||h&&d.key===" ")&&Rx[r.dir].includes(d.key)){var g;n.onOpenChange(!0),(g=n.content)===null||g===void 0||g.focus(),d.preventDefault()}})})))}),E2="MenuSubContent",M2=u.forwardRef((e,t)=>{const n=rh(kt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=wn(kt,e.__scopeMenu),i=po(kt,e.__scopeMenu),s=uh(E2,e.__scopeMenu),l=u.useRef(null),c=Oe(t,l);return u.createElement(ho.Provider,{scope:e.__scopeMenu},u.createElement(Zt,{present:r||a.open},u.createElement(ho.Slot,{scope:e.__scopeMenu},u.createElement(el,J({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:c,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var d;i.isUsingKeyboardRef.current&&((d=l.current)===null||d===void 0||d.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:pe(e.onFocusOutside,f=>{f.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:pe(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:pe(e.onKeyDown,f=>{const d=f.currentTarget.contains(f.target),h=e2[i.dir].includes(f.key);if(d&&h){var g;a.onOpenChange(!1),(g=s.trigger)===null||g===void 0||g.focus(),f.preventDefault()}})})))))});function dh(e){return e?"open":"closed"}function Ba(e){return e==="indeterminate"}function rl(e){return Ba(e)?"indeterminate":e?"checked":"unchecked"}function T2(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function P2(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function k2(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=P2(e,Math.max(a,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function O2(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,l=t[a].y,c=t[i].x,f=t[i].y;l>r!=f>r&&n<(c-s)*(r-l)/(f-l)+s&&(o=!o)}return o}function N2(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return O2(n,t)}function mo(e){return t=>t.pointerType==="mouse"?e(t):void 0}const _2=o2,D2=th,A2=i2,I2=l2,L2=oh,F2=d2,j2=nl,z2=f2,B2=g2,W2=b2,V2=w2,H2=x2,G2=S2,U2=C2,Y2=M2,fh="DropdownMenu",[q2,P_]=ht(fh,[Jf]),Qe=Jf(),[K2,hh]=q2(fh),X2=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,l=Qe(t),c=u.useRef(null),[f=!1,d]=wt({prop:o,defaultProp:a,onChange:i});return u.createElement(K2,{scope:t,triggerId:Vt(),triggerRef:c,contentId:Vt(),open:f,onOpenChange:d,onOpenToggle:u.useCallback(()=>d(h=>!h),[d]),modal:s},u.createElement(_2,J({},l,{open:f,onOpenChange:d,dir:r,modal:s}),n))},Z2="DropdownMenuTrigger",Q2=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=hh(Z2,n),i=Qe(n);return u.createElement(D2,J({asChild:!0},i),u.createElement(ye.button,J({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:la(t,a.triggerRef),onPointerDown:pe(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:pe(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})))}),J2=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Qe(t);return u.createElement(A2,J({},r,n))},R2="DropdownMenuContent",e$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hh(R2,n),a=Qe(n),i=u.useRef(!1);return u.createElement(I2,J({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:pe(e.onCloseAutoFocus,s=>{var l;i.current||(l=o.triggerRef.current)===null||l===void 0||l.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:pe(e.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,f=l.button===2||c;(!o.modal||f)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),t$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(L2,J({},o,r,{ref:t}))}),n$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(F2,J({},o,r,{ref:t}))}),r$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(j2,J({},o,r,{ref:t}))}),o$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(z2,J({},o,r,{ref:t}))}),a$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(B2,J({},o,r,{ref:t}))}),i$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(W2,J({},o,r,{ref:t}))}),s$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(V2,J({},o,r,{ref:t}))}),l$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(H2,J({},o,r,{ref:t}))}),c$=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=Qe(t),[s=!1,l]=wt({prop:r,defaultProp:a,onChange:o});return u.createElement(G2,J({},i,{open:s,onOpenChange:l}),n)},u$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(U2,J({},o,r,{ref:t}))}),d$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(Y2,J({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),f$=X2,h$=Q2,ph=J2,mh=e$,gh=t$,vh=n$,bh=r$,yh=o$,wh=a$,xh=i$,$h=s$,Sh=l$,p$=c$,Ch=u$,Eh=d$,Wa=f$,Va=h$,ol=ph,al=p$,Ha=u.forwardRef(({className:e,...t},n)=>v.jsx(wh,{ref:n,className:me("w-full",e),...t}));Ha.displayName=wh.displayName;const Pr=u.forwardRef(({className:e,...t},n)=>v.jsx(gh,{ref:n,className:me("w-full",e),...t}));Pr.displayName=gh.displayName;const Ga=u.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(Ch,{ref:r,className:me("flex cursor-default select-none px-2 py-1.5 bg-white rounded hover:bg-sky-100 hover:text-sky-800 hover:cursor-pointer justify-start items-start text-zinc-800 text-sm font-normal leading-tight focus:bg-sky-100 focus:text-sky-800 data-[state=checked]:bg-sky-100 data-[state=checked]:text-sky-800 focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[t,v.jsx(Mb,{className:"ml-auto h-4 w-4"})]}));Ga.displayName=Ch.displayName;const Ua=u.forwardRef(({className:e,...t},n)=>v.jsx(Eh,{ref:n,className:me("rabbit-ds z-[1510] relative min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex flex-col justify-start items-start gap-1 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Ua.displayName=Eh.displayName;const go=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>v.jsx(ph,{children:v.jsx("div",{className:"rabbit-ds ",children:v.jsx(mh,{ref:r,sideOffset:t,className:me("z-[1500] relative min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex flex-col justify-start items-start gap-1 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})})}));go.displayName=mh.displayName;const vo=u.forwardRef(({className:e,...t},n)=>v.jsx(bh,{ref:n,className:me("relative flex flex-row w-full my-1 cursor-default select-none p-2 bg-white rounded hover:bg-sky-100 hover:text-sky-800 hover:cursor-pointer justify-start items-start text-zinc-800 text-sm font-normal leading-tight focus:bg-sky-100 focus:text-sky-800 data-[state=checked]:bg-sky-100 data-[state=checked]:text-sky-800 focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t}));vo.displayName=bh.displayName;const Ya=u.forwardRef(({className:e,children:t,checked:n,...r},o)=>v.jsxs(yh,{ref:o,className:me("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[v.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:v.jsx($h,{children:v.jsx(ua,{className:"h-4 w-4 text-sky-800"})})}),t]}));Ya.displayName=yh.displayName;const qa=u.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(xh,{ref:r,className:me("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","data-[state=checked]:bg-card-bg-focus data-[state=checked]:text-card-text-focus",e),...n,children:[v.jsx("span",{className:"absolute right-2 flex h-4 w-4 items-center justify-center",children:v.jsx($h,{children:v.jsx(ua,{className:"h-4 w-4"})})}),t]}));qa.displayName=xh.displayName;const Ka=u.forwardRef(({className:e,...t},n)=>v.jsx(vh,{ref:n,className:me("px-2 py-1.5 text-sm font-semibold",e),...t}));Ka.displayName=vh.displayName;const il=u.forwardRef(({className:e,...t},n)=>v.jsx(Sh,{ref:n,className:me("h-px w-full bg-athens-gray-100",e),...t}));il.displayName=Sh.displayName;const Mh=u.forwardRef((e,t)=>u.createElement(ye.span,J({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),m$=Mh,g$=[" ","Enter","ArrowUp","ArrowDown"],v$=[" ","Enter"],Xa="Select",[Za,sl,b$]=ya(Xa),[kr,k_]=ht(Xa,[b$,Sr]),ll=Sr(),[y$,Hn]=kr(Xa),[w$,x$]=kr(Xa),$$=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:l,dir:c,name:f,autoComplete:d,disabled:h,required:g}=e,p=ll(t),[m,x]=u.useState(null),[y,b]=u.useState(null),[w,E]=u.useState(!1),S=br(c),[T=!1,N]=wt({prop:r,defaultProp:o,onChange:a}),[M,O]=wt({prop:i,defaultProp:s,onChange:l}),F=u.useRef(null),j=m?!!m.closest("form"):!0,[H,G]=u.useState(new Set),L=Array.from(H).map(C=>C.props.value).join(";");return u.createElement(ka,p,u.createElement(y$,{required:g,scope:t,trigger:m,onTriggerChange:x,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:w,onValueNodeHasChildrenChange:E,contentId:Vt(),value:M,onValueChange:O,open:T,onOpenChange:N,dir:S,triggerPointerDownPosRef:F,disabled:h},u.createElement(Za.Provider,{scope:t},u.createElement(w$,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(C=>{G(_=>new Set(_).add(C))},[]),onNativeOptionRemove:u.useCallback(C=>{G(_=>{const B=new Set(_);return B.delete(C),B})},[])},n)),j?u.createElement(_h,{key:L,"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:d,value:M,onChange:C=>O(C.target.value),disabled:h},M===void 0?u.createElement("option",{value:""}):null,Array.from(H)):null))},S$="SelectTrigger",C$=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=ll(n),i=Hn(S$,n),s=i.disabled||r,l=Oe(t,i.onTriggerChange),c=sl(n),[f,d,h]=Dh(p=>{const m=c().filter(b=>!b.disabled),x=m.find(b=>b.value===i.value),y=Ah(m,p,x);y!==void 0&&i.onValueChange(y.value)}),g=()=>{s||(i.onOpenChange(!0),h())};return u.createElement(Bs,J({asChild:!0},a),u.createElement(ye.button,J({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Nh(i.value)?"":void 0},o,{ref:l,onClick:pe(o.onClick,p=>{p.currentTarget.focus()}),onPointerDown:pe(o.onPointerDown,p=>{const m=p.target;m.hasPointerCapture(p.pointerId)&&m.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&(g(),i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)},p.preventDefault())}),onKeyDown:pe(o.onKeyDown,p=>{const m=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&d(p.key),!(m&&p.key===" ")&&g$.includes(p.key)&&(g(),p.preventDefault())})})))}),E$="SelectValue",M$=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,l=Hn(E$,n),{onValueNodeHasChildrenChange:c}=l,f=a!==void 0,d=Oe(t,l.onValueNodeChange);return pt(()=>{c(f)},[c,f]),u.createElement(ye.span,J({},s,{ref:d,style:{pointerEvents:"none"}}),Nh(l.value)?u.createElement(u.Fragment,null,i):a)}),T$=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return u.createElement(ye.span,J({"aria-hidden":!0},o,{ref:t}),r||"▼")}),P$=e=>u.createElement(Vs,J({asChild:!0},e)),Or="SelectContent",k$=u.forwardRef((e,t)=>{const n=Hn(Or,e.__scopeSelect),[r,o]=u.useState();if(pt(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?pn.createPortal(u.createElement(Th,{scope:e.__scopeSelect},u.createElement(Za.Slot,{scope:e.__scopeSelect},u.createElement("div",null,e.children))),a):null}return u.createElement(O$,J({},e,{ref:t}))}),nn=10,[Th,Qa]=kr(Or),O$=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:l,align:c,alignOffset:f,arrowPadding:d,collisionBoundary:h,collisionPadding:g,sticky:p,hideWhenDetached:m,avoidCollisions:x,...y}=e,b=Hn(Or,n),[w,E]=u.useState(null),[S,T]=u.useState(null),N=Oe(t,X=>E(X)),[M,O]=u.useState(null),[F,j]=u.useState(null),H=sl(n),[G,L]=u.useState(!1),C=u.useRef(!1);u.useEffect(()=>{if(w)return Ff(w)},[w]),nf();const _=u.useCallback(X=>{const[le,...U]=H().map(k=>k.ref.current),[Z]=U.slice(-1),ie=document.activeElement;for(const k of X)if(k===ie||(k==null||k.scrollIntoView({block:"nearest"}),k===le&&S&&(S.scrollTop=0),k===Z&&S&&(S.scrollTop=S.scrollHeight),k==null||k.focus(),document.activeElement!==ie))return},[H,S]),B=u.useCallback(()=>_([M,w]),[_,M,w]);u.useEffect(()=>{G&&B()},[G,B]);const{onOpenChange:V,triggerPointerDownPosRef:D}=b;u.useEffect(()=>{if(w){let X={x:0,y:0};const le=Z=>{var ie,k,te,ae;X={x:Math.abs(Math.round(Z.pageX)-((ie=(k=D.current)===null||k===void 0?void 0:k.x)!==null&&ie!==void 0?ie:0)),y:Math.abs(Math.round(Z.pageY)-((te=(ae=D.current)===null||ae===void 0?void 0:ae.y)!==null&&te!==void 0?te:0))}},U=Z=>{X.x<=10&&X.y<=10?Z.preventDefault():w.contains(Z.target)||V(!1),document.removeEventListener("pointermove",le),D.current=null};return D.current!==null&&(document.addEventListener("pointermove",le),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",le),document.removeEventListener("pointerup",U,{capture:!0})}}},[w,V,D]),u.useEffect(()=>{const X=()=>V(!1);return window.addEventListener("blur",X),window.addEventListener("resize",X),()=>{window.removeEventListener("blur",X),window.removeEventListener("resize",X)}},[V]);const[A,W]=Dh(X=>{const le=H().filter(ie=>!ie.disabled),U=le.find(ie=>ie.ref.current===document.activeElement),Z=Ah(le,X,U);Z&&setTimeout(()=>Z.ref.current.focus())}),ne=u.useCallback((X,le,U)=>{const Z=!C.current&&!U;(b.value!==void 0&&b.value===le||Z)&&(O(X),Z&&(C.current=!0))},[b.value]),Q=u.useCallback(()=>w==null?void 0:w.focus(),[w]),re=u.useCallback((X,le,U)=>{const Z=!C.current&&!U;(b.value!==void 0&&b.value===le||Z)&&j(X)},[b.value]),oe=r==="popper"?Ph:N$,ue=oe===Ph?{side:s,sideOffset:l,align:c,alignOffset:f,arrowPadding:d,collisionBoundary:h,collisionPadding:g,sticky:p,hideWhenDetached:m,avoidCollisions:x}:{};return u.createElement(Th,{scope:n,content:w,viewport:S,onViewportChange:T,itemRefCallback:ne,selectedItem:M,onItemLeave:Q,itemTextRefCallback:re,focusSelectedItem:B,selectedItemText:F,position:r,isPositioned:G,searchRef:A},u.createElement(Zf,{as:Qt,allowPinchZoom:!0},u.createElement(af,{asChild:!0,trapped:b.open,onMountAutoFocus:X=>{X.preventDefault()},onUnmountAutoFocus:pe(o,X=>{var le;(le=b.trigger)===null||le===void 0||le.focus({preventScroll:!0}),X.preventDefault()})},u.createElement(Ps,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:X=>X.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},u.createElement(oe,J({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:X=>X.preventDefault()},y,ue,{onPlaced:()=>L(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:pe(y.onKeyDown,X=>{const le=X.ctrlKey||X.altKey||X.metaKey;if(X.key==="Tab"&&X.preventDefault(),!le&&X.key.length===1&&W(X.key),["ArrowUp","ArrowDown","Home","End"].includes(X.key)){let Z=H().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);if(["ArrowUp","End"].includes(X.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(X.key)){const ie=X.target,k=Z.indexOf(ie);Z=Z.slice(k+1)}setTimeout(()=>_(Z)),X.preventDefault()}})}))))))}),N$=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Hn(Or,n),i=Qa(Or,n),[s,l]=u.useState(null),[c,f]=u.useState(null),d=Oe(t,N=>f(N)),h=sl(n),g=u.useRef(!1),p=u.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:y,focusSelectedItem:b}=i,w=u.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&c&&m&&x&&y){const N=a.trigger.getBoundingClientRect(),M=c.getBoundingClientRect(),O=a.valueNode.getBoundingClientRect(),F=y.getBoundingClientRect();if(a.dir!=="rtl"){const ie=F.left-M.left,k=O.left-ie,te=N.left-k,ae=N.width+te,ge=Math.max(ae,M.width),we=window.innerWidth-nn,Ee=ba(k,[nn,we-ge]);s.style.minWidth=ae+"px",s.style.left=Ee+"px"}else{const ie=M.right-F.right,k=window.innerWidth-O.right-ie,te=window.innerWidth-N.right-k,ae=N.width+te,ge=Math.max(ae,M.width),we=window.innerWidth-nn,Ee=ba(k,[nn,we-ge]);s.style.minWidth=ae+"px",s.style.right=Ee+"px"}const j=h(),H=window.innerHeight-nn*2,G=m.scrollHeight,L=window.getComputedStyle(c),C=parseInt(L.borderTopWidth,10),_=parseInt(L.paddingTop,10),B=parseInt(L.borderBottomWidth,10),V=parseInt(L.paddingBottom,10),D=C+_+G+V+B,A=Math.min(x.offsetHeight*5,D),W=window.getComputedStyle(m),ne=parseInt(W.paddingTop,10),Q=parseInt(W.paddingBottom,10),re=N.top+N.height/2-nn,oe=H-re,ue=x.offsetHeight/2,X=x.offsetTop+ue,le=C+_+X,U=D-le;if(le<=re){const ie=x===j[j.length-1].ref.current;s.style.bottom="0px";const k=c.clientHeight-m.offsetTop-m.offsetHeight,te=Math.max(oe,ue+(ie?Q:0)+k+B),ae=le+te;s.style.height=ae+"px"}else{const ie=x===j[0].ref.current;s.style.top="0px";const te=Math.max(re,C+m.offsetTop+(ie?ne:0)+ue)+U;s.style.height=te+"px",m.scrollTop=le-re+m.offsetTop}s.style.margin=`${nn}px 0`,s.style.minHeight=A+"px",s.style.maxHeight=H+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[h,a.trigger,a.valueNode,s,c,m,x,y,a.dir,r]);pt(()=>w(),[w]);const[E,S]=u.useState();pt(()=>{c&&S(window.getComputedStyle(c).zIndex)},[c]);const T=u.useCallback(N=>{N&&p.current===!0&&(w(),b==null||b(),p.current=!1)},[w,b]);return u.createElement(_$,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:g,onScrollButtonChange:T},u.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E}},u.createElement(ye.div,J({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),Ph=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=nn,...a}=e,i=ll(n);return u.createElement(Ws,J({},i,a,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[_$,D$]=kr(Or,{}),kh="SelectViewport",A$=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Qa(kh,n),a=D$(kh,n),i=Oe(t,o.onViewportChange),s=u.useRef(0);return u.createElement(u.Fragment,null,u.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),u.createElement(Za.Slot,{scope:n},u.createElement(ye.div,J({"data-radix-select-viewport":"",role:"presentation"},r,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:pe(r.onScroll,l=>{const c=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=a;if(d!=null&&d.current&&f){const h=Math.abs(s.current-c.scrollTop);if(h>0){const g=window.innerHeight-nn*2,p=parseFloat(f.style.minHeight),m=parseFloat(f.style.height),x=Math.max(p,m);if(x<g){const y=x+h,b=Math.min(g,y),w=y-b;f.style.height=b+"px",f.style.bottom==="0px"&&(c.scrollTop=w>0?w:0,f.style.justifyContent="flex-end")}}}s.current=c.scrollTop})}))))}),I$="SelectGroup",[L$,F$]=kr(I$),j$=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Vt();return u.createElement(L$,{scope:n,id:o},u.createElement(ye.div,J({role:"group","aria-labelledby":o},r,{ref:t})))}),z$="SelectLabel",B$=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=F$(z$,n);return u.createElement(ye.div,J({id:o.id},r,{ref:t}))}),cl="SelectItem",[W$,Oh]=kr(cl),V$=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=Hn(cl,n),l=Qa(cl,n),c=s.value===r,[f,d]=u.useState(a??""),[h,g]=u.useState(!1),p=Oe(t,y=>{var b;return(b=l.itemRefCallback)===null||b===void 0?void 0:b.call(l,y,r,o)}),m=Vt(),x=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.createElement(W$,{scope:n,value:r,disabled:o,textId:m,isSelected:c,onItemTextChange:u.useCallback(y=>{d(b=>{var w;return b||((w=y==null?void 0:y.textContent)!==null&&w!==void 0?w:"").trim()})},[])},u.createElement(Za.ItemSlot,{scope:n,value:r,disabled:o,textValue:f},u.createElement(ye.div,J({role:"option","aria-labelledby":m,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},i,{ref:p,onFocus:pe(i.onFocus,()=>g(!0)),onBlur:pe(i.onBlur,()=>g(!1)),onPointerUp:pe(i.onPointerUp,x),onPointerMove:pe(i.onPointerMove,y=>{if(o){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}else y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:pe(i.onPointerLeave,y=>{if(y.currentTarget===document.activeElement){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}}),onKeyDown:pe(i.onKeyDown,y=>{var b;((b=l.searchRef)===null||b===void 0?void 0:b.current)!==""&&y.key===" "||(v$.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})}))))}),Ja="SelectItemText",H$=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=Hn(Ja,n),s=Qa(Ja,n),l=Oh(Ja,n),c=x$(Ja,n),[f,d]=u.useState(null),h=Oe(t,y=>d(y),l.onItemTextChange,y=>{var b;return(b=s.itemTextRefCallback)===null||b===void 0?void 0:b.call(s,y,l.value,l.disabled)}),g=f==null?void 0:f.textContent,p=u.useMemo(()=>u.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},g),[l.disabled,l.value,g]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=c;return pt(()=>(m(p),()=>x(p)),[m,x,p]),u.createElement(u.Fragment,null,u.createElement(ye.span,J({id:l.textId},a,{ref:h})),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?pn.createPortal(a.children,i.valueNode):null)}),G$="SelectItemIndicator",U$=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Oh(G$,n).isSelected?u.createElement(ye.span,J({"aria-hidden":!0},r,{ref:t})):null}),Y$=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return u.createElement(ye.div,J({"aria-hidden":!0},r,{ref:t}))});function Nh(e){return e===""||e===void 0}const _h=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=u.useRef(null),a=Oe(t,o),i=ms(n);return u.useEffect(()=>{const s=o.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==n&&f){const d=new Event("change",{bubbles:!0});f.call(s,n),s.dispatchEvent(d)}},[i,n]),u.createElement(Mh,{asChild:!0},u.createElement("select",J({},r,{ref:a,defaultValue:n})))});_h.displayName="BubbleSelect";function Dh(e){const t=lt(e),n=u.useRef(""),r=u.useRef(0),o=u.useCallback(i=>{const s=n.current+i;t(s),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),a=u.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Ah(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=q$(e,Math.max(a,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function q$(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const K$=$$,Ih=C$,X$=M$,Z$=T$,Q$=P$,Lh=k$,J$=A$,R$=j$,Fh=B$,jh=V$,eS=H$,tS=U$,zh=Y$,nS=K$,rS=R$,oS=X$,Bh=u.forwardRef(({className:e,children:t,...n},r)=>v.jsx("div",{className:"rabbit-ds",children:v.jsxs(Ih,{ref:r,className:me("rabbit-ds h-10 pr-3 py-2.5 rounded-tl text-sm rounded-tr border-b border-dashed hover:border-solid border-zinc-800 justify-between items-center gap-2 inline-flex focus:outline-none focus:border-solid disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:[t,v.jsx(Z$,{asChild:!0,children:v.jsx(bs,{className:"h-4 w-4"})})]})}));Bh.displayName=Ih.displayName;const Wh=u.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>v.jsx(Q$,{children:v.jsx(Lh,{ref:o,className:me("relative z-[1500] rabbit-ds min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex-col justify-start items-start gap-1 inline-flex data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:v.jsx(J$,{className:me("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));Wh.displayName=Lh.displayName;const Vh=u.forwardRef(({className:e,...t},n)=>v.jsx(Fh,{ref:n,className:me("py-1.5 px-2 text-sm font-semibold",e),...t}));Vh.displayName=Fh.displayName;const Hh=u.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(jh,{ref:r,className:me("relative flex w-full my-1 cursor-default select-none p-2 bg-white rounded flex-col hover:bg-sky-100 hover:text-sky-800 hover:cursor-pointer justify-start items-start text-zinc-800 text-sm font-normal leading-tight focus:bg-sky-100 focus:text-sky-800 data-[state=checked]:bg-sky-100 data-[state=checked]:text-sky-800 focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[v.jsx("span",{className:"absolute right-2 flex h-4 w-4 items-center justify-center",children:v.jsx(tS,{children:v.jsx(ua,{className:"h-4 w-4 text-sky-800"})})}),v.jsx(eS,{children:t})]}));Hh.displayName=jh.displayName;const Gh=u.forwardRef(({className:e,...t},n)=>v.jsx(zh,{ref:n,className:me("-mx-1 my-1 h-px bg-muted",e),...t}));Gh.displayName=zh.displayName;const[Ra,O_]=ht("Tooltip",[Sr]),ul=Sr(),aS="TooltipProvider",iS=700,dl="tooltip.open",[sS,fl]=Ra(aS),lS=e=>{const{__scopeTooltip:t,delayDuration:n=iS,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[i,s]=u.useState(!0),l=u.useRef(!1),c=u.useRef(0);return u.useEffect(()=>{const f=c.current;return()=>window.clearTimeout(f)},[]),u.createElement(sS,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(c.current),s(!1)},[]),onClose:u.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:u.useCallback(f=>{l.current=f},[]),disableHoverableContent:o},a)},hl="Tooltip",[cS,bo]=Ra(hl),uS=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,l=fl(hl,e.__scopeTooltip),c=ul(t),[f,d]=u.useState(null),h=Vt(),g=u.useRef(0),p=i??l.disableHoverableContent,m=s??l.delayDuration,x=u.useRef(!1),[y=!1,b]=wt({prop:r,defaultProp:o,onChange:N=>{N?(l.onOpen(),document.dispatchEvent(new CustomEvent(dl))):l.onClose(),a==null||a(N)}}),w=u.useMemo(()=>y?x.current?"delayed-open":"instant-open":"closed",[y]),E=u.useCallback(()=>{window.clearTimeout(g.current),x.current=!1,b(!0)},[b]),S=u.useCallback(()=>{window.clearTimeout(g.current),b(!1)},[b]),T=u.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{x.current=!0,b(!0)},m)},[m,b]);return u.useEffect(()=>()=>window.clearTimeout(g.current),[]),u.createElement(ka,c,u.createElement(cS,{scope:t,contentId:h,open:y,stateAttribute:w,trigger:f,onTriggerChange:d,onTriggerEnter:u.useCallback(()=>{l.isOpenDelayed?T():E()},[l.isOpenDelayed,T,E]),onTriggerLeave:u.useCallback(()=>{p?S():window.clearTimeout(g.current)},[S,p]),onOpen:E,onClose:S,disableHoverableContent:p},n))},Uh="TooltipTrigger",dS=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=bo(Uh,n),a=fl(Uh,n),i=ul(n),s=u.useRef(null),l=Oe(t,s,o.onTriggerChange),c=u.useRef(!1),f=u.useRef(!1),d=u.useCallback(()=>c.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),u.createElement(Bs,J({asChild:!0},i),u.createElement(ye.button,J({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:l,onPointerMove:pe(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:pe(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:pe(e.onBlur,o.onClose),onClick:pe(e.onClick,o.onClose)})))}),Yh="TooltipPortal",[fS,hS]=Ra(Yh,{forceMount:void 0}),pS=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=bo(Yh,t);return u.createElement(fS,{scope:t,forceMount:n},u.createElement(Zt,{present:n||a.open},u.createElement(Vs,{asChild:!0,container:o},r)))},yo="TooltipContent",mS=u.forwardRef((e,t)=>{const n=hS(yo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=bo(yo,e.__scopeTooltip);return u.createElement(Zt,{present:r||i.open},i.disableHoverableContent?u.createElement(qh,J({side:o},a,{ref:t})):u.createElement(gS,J({side:o},a,{ref:t})))}),gS=u.forwardRef((e,t)=>{const n=bo(yo,e.__scopeTooltip),r=fl(yo,e.__scopeTooltip),o=u.useRef(null),a=Oe(t,o),[i,s]=u.useState(null),{trigger:l,onClose:c}=n,f=o.current,{onPointerInTransitChange:d}=r,h=u.useCallback(()=>{s(null),d(!1)},[d]),g=u.useCallback((p,m)=>{const x=p.currentTarget,y={x:p.clientX,y:p.clientY},b=bS(y,x.getBoundingClientRect()),w=yS(y,b),E=wS(m.getBoundingClientRect()),S=$S([...w,...E]);s(S),d(!0)},[d]);return u.useEffect(()=>()=>h(),[h]),u.useEffect(()=>{if(l&&f){const p=x=>g(x,f),m=x=>g(x,l);return l.addEventListener("pointerleave",p),f.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",p),f.removeEventListener("pointerleave",m)}}},[l,f,g,h]),u.useEffect(()=>{if(i){const p=m=>{const x=m.target,y={x:m.clientX,y:m.clientY},b=(l==null?void 0:l.contains(x))||(f==null?void 0:f.contains(x)),w=!xS(y,i);b?h():w&&(h(),c())};return document.addEventListener("pointermove",p),()=>document.removeEventListener("pointermove",p)}},[l,f,i,c,h]),u.createElement(qh,J({},e,{ref:a}))}),[vS,N_]=Ra(hl,{isInside:!1}),qh=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,l=bo(yo,n),c=ul(n),{onClose:f}=l;return u.useEffect(()=>(document.addEventListener(dl,f),()=>document.removeEventListener(dl,f)),[f]),u.useEffect(()=>{if(l.trigger){const d=h=>{const g=h.target;g!=null&&g.contains(l.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,f]),u.createElement(Ps,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:f},u.createElement(Ws,J({"data-state":l.stateAttribute},c,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),u.createElement(cd,null,r),u.createElement(vS,{scope:n,isInside:!0},u.createElement(m$,{id:l.contentId,role:"tooltip"},o||r))))});function bS(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function yS(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function wS(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function xS(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,l=t[a].y,c=t[i].x,f=t[i].y;l>r!=f>r&&n<(c-s)*(r-l)/(f-l)+s&&(o=!o)}return o}function $S(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),SS(t)}function SS(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const CS=lS,ES=uS,MS=dS,TS=pS,Kh=mS,Xh=CS,Zh=ES,Qh=MS,Jh=TS,pl=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>v.jsx(Kh,{ref:r,sideOffset:t,className:me("z-[1500] overflow-hidden p-2 bg-gray-600 max-w-xs rounded transition-opacity justify-start items-start inline-flex text-center text-white text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e,"rabbit-ds"),...n}));pl.displayName=Kh.displayName;function PS(e){return v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[v.jsx("path",{fill:"currentColor",d:"M10.667 5.333a1.333 1.333 0 1 1 2.666 0v13.334a1.333 1.333 0 0 1-2.666 0z"}),v.jsx("path",{fill:"currentColor",d:"M5.333 13.333a1.333 1.333 0 1 1 0-2.666h13.334a1.333 1.333 0 0 1 0 2.666z"})]})}function Rh(e){return v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 28 28",...e,children:[v.jsx("rect",{width:27,height:27,x:-.5,y:.5,stroke:"currentColor",rx:13.5,transform:"matrix(-1 0 0 1 27 0)"}),v.jsx("path",{fill:"currentColor",d:"M11.5 13.99c0 .212.088.416.244.566l3.326 3.2a.847.847 0 0 0 .591.244.85.85 0 0 0 .595-.234.785.785 0 0 0 .244-.573.787.787 0 0 0-.254-.569l-3.326-3.2a.848.848 0 0 0-.588-.234.849.849 0 0 0-.588.235.785.785 0 0 0-.244.565"}),v.jsx("path",{fill:"currentColor",d:"M11.5 13.99c0 .212.088.416.243.566.156.15.368.234.588.234.221 0 .433-.084.588-.234l3.327-3.2a.779.779 0 0 0 .204-.768.816.816 0 0 0-.582-.56.855.855 0 0 0-.798.197l-3.326 3.2a.785.785 0 0 0-.244.565"})]})}function ep(e){return v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 28 28",...e,children:[v.jsx("rect",{width:27,height:27,x:.5,y:.5,stroke:"currentColor",rx:13.5}),v.jsx("path",{fill:"currentColor",d:"M16.5 13.99a.785.785 0 0 1-.244.566l-3.326 3.2a.847.847 0 0 1-.591.244.85.85 0 0 1-.596-.234.785.785 0 0 1-.243-.573.787.787 0 0 1 .254-.569l3.326-3.2a.848.848 0 0 1 .588-.234c.22 0 .432.085.588.235.156.15.244.353.244.565"}),v.jsx("path",{fill:"currentColor",d:"M16.5 13.99a.785.785 0 0 1-.244.566.849.849 0 0 1-.588.234.848.848 0 0 1-.587-.234l-3.327-3.2a.779.779 0 0 1-.204-.768.817.817 0 0 1 .582-.56.855.855 0 0 1 .798.197l3.326 3.2c.156.15.244.353.244.565"})]})}function tp(e){return v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[v.jsx("path",{fill:"currentColor",d:"M5.235 12.012c0-.265.115-.52.318-.707l4.345-4c.202-.193.48-.303.772-.305.291-.002.571.103.777.293.206.19.32.447.318.716a.964.964 0 0 1-.331.71l-4.345 4c-.203.188-.48.293-.768.293-.288 0-.564-.105-.768-.293a.961.961 0 0 1-.318-.707"}),v.jsx("path",{fill:"currentColor",d:"M5.235 12.012c0-.265.115-.52.318-.707.204-.187.48-.292.768-.292.288 0 .564.105.768.293l4.345 4a.945.945 0 0 1 .266.959c-.102.34-.39.606-.76.7-.37.093-.766 0-1.042-.246l-4.345-4a.961.961 0 0 1-.318-.707M12.235 12.012c0-.265.114-.52.318-.707l4.345-4c.202-.193.48-.303.771-.305.292-.002.572.103.778.293a.96.96 0 0 1 .318.716.964.964 0 0 1-.331.71l-4.345 4c-.204.188-.48.293-.768.293-.288 0-.564-.105-.768-.293a.962.962 0 0 1-.318-.707"}),v.jsx("path",{fill:"currentColor",d:"M12.235 12.012c0-.265.114-.52.318-.707.204-.187.48-.292.768-.292.288 0 .564.105.768.293l4.344 4c.267.253.368.618.267.959-.102.34-.39.606-.76.7-.37.093-.767 0-1.042-.246l-4.345-4a.962.962 0 0 1-.318-.707"})]})}function kS(e){return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 25",...e,children:v.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.002 6.209a1.44 1.44 0 0 1 1.131-.55h3.734c.527 0 .91.274 1.13.55.196.244.336.575.336.916v.09h3.2c.31 0 .726.077 1.057.409.332.331.41.747.41 1.057v9.867H4V8.68c0-.31.078-.726.41-1.057.331-.332.747-.41 1.057-.41h3.2v-.089c0-.34.14-.672.335-.916m-.335 3.005H6v2.667h2.667zm2 2.667V9.214h2.666v2.667zm-2 2H6v2.667h2.667zm2 2.667V13.88h2.666v2.667zm4.666 0H18V13.88h-2.667zm0-4.667H18V9.214h-2.667z",clipRule:"evenodd"})})}function OS(e){return v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeWidth:2,d:"M18.366 9.542c.392.266.634.72.634 1.214v7.294c0 .391-.152.762-.417 1.033-.265.27-.618.417-.983.417H6.4c-.364 0-.718-.148-.983-.417A1.477 1.477 0 0 1 5 18.05v-7.293c0-.496.243-.95.633-1.215h.001l5.6-3.805a1.365 1.365 0 0 1 1.533 0z"}),v.jsx("path",{stroke:"currentColor",strokeWidth:2,d:"M10 15.5a2 2 0 1 1 4 0v4h-4z"})]})}function np(e){return v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[v.jsx("g",{fill:"currentColor",clipPath:"url(#a)",children:v.jsx("path",{d:"M12 8.5c.825 0 1.5-.675 1.5-1.5s-.675-1.5-1.5-1.5-1.5.675-1.5 1.5.675 1.5 1.5 1.5M12 13.5c.825 0 1.5-.675 1.5-1.5s-.675-1.5-1.5-1.5-1.5.675-1.5 1.5.675 1.5 1.5 1.5M12 18.5c.825 0 1.5-.675 1.5-1.5s-.675-1.5-1.5-1.5-1.5.675-1.5 1.5.675 1.5 1.5 1.5"})}),v.jsx("defs",{children:v.jsx("clipPath",{id:"a",children:v.jsx("path",{fill:"currentColor",d:"M10.5 5.5h3v13h-3z"})})})]})}function NS(e){return v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 36 36",...e,children:[v.jsxs("g",{filter:"url(#a)",children:[v.jsx("path",{fill:"currentColor",d:"M26.464 18.342a1.54 1.54 0 0 1-1.539 1.543 1.54 1.54 0 0 1-1.538-1.543 1.54 1.54 0 0 1 1.538-1.542c.85 0 1.54.69 1.54 1.542M15.919 10.404a2.311 2.311 0 0 1-3.303-2.088 2.311 2.311 0 0 1 2.307-2.314 2.311 2.311 0 0 1 2.083 3.311l2.904 2.911a1.54 1.54 0 0 1 1.937 1.49 1.54 1.54 0 0 1-1.538 1.543 1.54 1.54 0 0 1-1.487-1.942z"}),v.jsx("path",{fill:"currentColor",d:"M12.606 13.708a1.54 1.54 0 0 1-1.539 1.542 1.54 1.54 0 0 1-1.538-1.542 1.54 1.54 0 0 1 1.538-1.543c.85 0 1.54.69 1.54 1.543M16.323 19.777a1.54 1.54 0 0 1-1.937-1.49 1.54 1.54 0 0 1 1.538-1.543 1.54 1.54 0 0 1 1.487 1.943l2.904 2.91a2.311 2.311 0 0 1 3.303 2.088 2.311 2.311 0 0 1-2.308 2.315 2.311 2.311 0 0 1-2.308-2.314c0-.357.08-.696.225-.998z"}),v.jsx("path",{fill:"currentColor",d:"M17.234 22.967a1.54 1.54 0 0 1-1.54 1.543 1.54 1.54 0 0 1-1.538-1.543 1.54 1.54 0 0 1 1.539-1.542c.85 0 1.538.69 1.538 1.542M28.005 12.94a2.311 2.311 0 0 1-3.296 2.092l-2.91 2.916a1.54 1.54 0 0 1-1.489 1.934 1.54 1.54 0 0 1-1.538-1.542 1.54 1.54 0 0 1 1.946-1.488l2.899-2.907a2.31 2.31 0 0 1-.229-1.005 2.311 2.311 0 0 1 2.309-2.313 2.311 2.311 0 0 1 2.308 2.313"}),v.jsx("path",{fill:"currentColor",d:"M21.844 9.083a1.54 1.54 0 0 1-1.539 1.542 1.54 1.54 0 0 1-1.538-1.542 1.54 1.54 0 0 1 1.538-1.543c.85 0 1.54.69 1.54 1.543M17.228 13.71a1.54 1.54 0 0 1-1.929 1.493L12.39 18.12c.142.3.221.636.221.99a2.311 2.311 0 0 1-2.308 2.314 2.311 2.311 0 0 1-2.308-2.314 2.311 2.311 0 0 1 3.31-2.084l2.9-2.906a1.54 1.54 0 0 1 1.484-1.95c.85-.001 1.539.69 1.539 1.541"})]}),v.jsx("defs",{children:v.jsxs("filter",{id:"a",width:40,height:40,x:-2,y:-2,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[v.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),v.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),v.jsx("feOffset",{dy:2}),v.jsx("feGaussianBlur",{stdDeviation:4}),v.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),v.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),v.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_864_105"}),v.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_864_105",result:"shape"})]})})]})}function _S(e){return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:v.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 10.125c.775 0 1.625-.719 1.625-1.875 0-1.156-.85-1.875-1.625-1.875s-1.625.719-1.625 1.875c0 1.156.85 1.875 1.625 1.875m-5.107 7.438c-.018.037-.018.052-.018.062h10.25c0-.01 0-.025-.018-.062a.945.945 0 0 0-.19-.244c-.247-.245-.673-.522-1.279-.782-1.221-.524-2.72-.787-3.638-.787-.919 0-2.417.263-3.638.787-.607.26-1.032.537-1.278.782a.947.947 0 0 0-.19.244M5 19.5v-1.875c0-2.496 4.66-3.75 7-3.75s7 1.254 7 3.75V19.5zM15.5 8.25c0 2.068-1.57 3.75-3.5 3.75s-3.5-1.682-3.5-3.75S10.07 4.5 12 4.5s3.5 1.682 3.5 3.75",clipRule:"evenodd"})})}function DS(e){return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:v.jsx("path",{fill:"currentColor",d:"m19.783 18.616-2.986-2.955c2.266-2.822 2.053-6.976-.533-9.558A7.103 7.103 0 0 0 11.198 4c-1.92 0-3.732.745-5.092 2.103A7.099 7.099 0 0 0 4 11.188c0 1.943.747 3.727 2.106 5.085 1.36 1.331 3.146 2.103 5.092 2.103 1.627 0 3.226-.56 4.48-1.57l2.959 2.954c.16.16.346.24.56.24.213 0 .426-.08.56-.24.32-.32.32-.825.026-1.144m-2.986-7.428a5.47 5.47 0 0 1-1.653 3.94c-1.066 1.038-2.453 1.65-3.946 1.65a5.486 5.486 0 0 1-3.945-1.65c-1.04-1.065-1.653-2.45-1.653-3.94a5.47 5.47 0 0 1 1.652-3.94c1.067-1.039 2.427-1.65 3.946-1.65 1.493 0 2.906.585 3.946 1.65s1.653 2.422 1.653 3.94"})})}function rp(e){return v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[v.jsx("rect",{width:15,height:15,x:4.5,y:4.041,stroke:"currentColor",rx:1.5}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",d:"M9 16v-6M12 16V8M15 15.541v-3"})]})}function AS(e){return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:v.jsx("path",{stroke:"currentColor",strokeWidth:2,d:"M17.8 16.5c0-.461-.066-.889-.185-1.284.095.043.188.088.278.135.876.455 1.107.88 1.107 1.149v.5h-1.2zM11.4 9c0 1.168-.872 2-1.8 2s-1.8-.832-1.8-2c0-1.168.872-2 1.8-2s1.8.832 1.8 2ZM5 16.5c0-.158.066-.354.315-.6.258-.256.66-.508 1.177-.73 1.04-.446 2.306-.67 3.108-.67s2.068.224 3.108.67c.517.222.919.474 1.177.73.249.246.315.442.315.6v.5H5zM16.2 9c0 1.056-.712 1.837-1.535 1.977A5.972 5.972 0 0 0 15 9c0-.692-.118-1.36-.335-1.977.823.14 1.535.921 1.535 1.977Z"})})}const op=Ye("",{variants:{size:{default:24,small:16,"x-small":12,large:32,"x-large":48}},defaultVariants:{size:"default"}});function Gn({size:e,IconSVG:t,className:n}){return v.jsx("div",{className:"rabbit-ds",children:v.jsx(t,{width:op({size:e}),height:op({size:e}),className:me(n)})})}const IS=Ye(["rabbit-ds relative h-14 w-14 font-sans rounded-lg text-3xs text-dark-medium font-base justify-center items-center flex transition-colors disabled:pointer-events-none","hover:bg-card-bg-hover hover:text-card-text-hover hover:font-medium","focus:outline-1 focus:outline-offset-2 focus:bg-card-bg-focus focus:text-card-text-focus focus:font-medium","active:bg-card-bg-focus active:text-card-text-focus active:font-medium","is-active:bg-card-bg-focus is-active:text-card-text-focus "],{variants:{variant:{default:"",withNotification:"",withMenu:"",gradient:""}},defaultVariants:{variant:"default"}}),LS=Ye("",{variants:{variant:{default:"",gradient:"bg-[linear-gradient(90deg,#038EEF_9.05%,#ED3C65_86.39%)] text-transparent [background-clip:text] [-webkit-background-clip:text]"}},defaultVariants:{variant:"default"}}),ap=u.forwardRef(({className:e,variant:t,badgeText:n,icon:r,iconSize:o,asChild:a=!1,isActive:i=!1,children:s,...l},c)=>{const f=a?Qt:"button";return v.jsx("div",{className:"rabbit-ds",children:v.jsxs(f,{className:me(IS({variant:t,className:e})),ref:c,"data-active":i,...l,children:[v.jsxs("div",{className:"flex flex-col items-center",children:[v.jsxs("div",{className:"relative flex items-center justify-center",children:[v.jsx(Gn,{IconSVG:r}),t==="withNotification"&&v.jsxs("div",{className:"bg-functional-warn flex items-center justify-center h-5 w-6 text-xs rounded-xl absolute left-3 text-white px-2",children:[v.jsx("span",{className:"sr-only",children:"Notification"}),n]})]}),v.jsx("div",{className:me(LS({variant:t==="gradient"?t:"default"})),children:s})]}),t==="withMenu"&&v.jsx("div",{className:"flex items-center justify-center absolute right-0 w-3 h-14",children:v.jsx(kb,{height:"14px",width:"14px"})})]})})});ap.displayName="NavButton";const ip=u.createContext({}),FS=()=>u.useContext(ip);function sp({isActive:e,isDisabled:t,className:n,children:r,...o}){const a=u.useMemo(()=>({isActive:e,isDisabled:t}),[e,t]);return v.jsx(ip.Provider,{value:a,children:v.jsx("div",{className:"rabbit-ds",children:v.jsx("button",{className:me("flex items-center px-3 py-1 gap-2 text-dark-medium w-full cursor-pointer rounded-lg","hover:text-card-text-hover","is-active:bg-card-bg-focus is-active:text-card-text-focus","is-disabled:opacity-50 is-disabled:pointer-events-none",n),type:"button","data-active":e,"data-disabled":t,...o,children:r})})})}function jS({title:e,subTitle:t}){const{isActive:n}=FS();return v.jsxs("div",{className:"flex flex-col items-start",children:[v.jsx("span",{className:"text-sm is-active:font-semibold","data-active":n,children:e}),v.jsx("span",{className:"text-xs",children:t})]})}const zS=Ye("",{variants:{shape:{default:"",round:"rounded-full overflow-hidden"},iconSize:{normal:"w-6 h-6",large:"w-8 h-8"}},defaultVariants:{iconSize:"normal"}});function BS({icon:e,iconSize:t,className:n,shape:r}){const o=e==="string"?()=>v.jsx("img",{src:e,alt:""}):e;return v.jsx("div",{className:me(zS({iconSize:t,shape:r}),n),children:v.jsx(o,{})})}const WS=Ye("ml-auto",{variants:{shape:{default:"",round:"rounded-full overflow-hidden"},iconSize:{normal:"w-6 h-6",large:"w-8 h-8"}},defaultVariants:{iconSize:"normal"}});function VS({icon:e,iconSize:t,className:n,shape:r}){const o=e==="string"?()=>v.jsx("img",{src:e,alt:"right icon"}):e;return v.jsx("div",{className:me(WS({iconSize:t,shape:r}),n),children:v.jsx(o,{})})}const lp="Tabs",[HS,__]=ht(lp,[Cr]),cp=Cr(),[GS,ml]=HS(lp),US=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:s,activationMode:l="automatic",...c}=e,f=br(s),[d,h]=wt({prop:r,onChange:o,defaultProp:a});return u.createElement(GS,{scope:n,baseId:Vt(),value:d,onValueChange:h,orientation:i,dir:f,activationMode:l},u.createElement(ye.div,J({dir:f,"data-orientation":i},c,{ref:t})))}),YS="TabsList",qS=u.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=ml(YS,n),i=cp(n);return u.createElement(Ys,J({asChild:!0},i,{orientation:a.orientation,dir:a.dir,loop:r}),u.createElement(ye.div,J({role:"tablist","aria-orientation":a.orientation},o,{ref:t})))}),KS="TabsTrigger",XS=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=ml(KS,n),s=cp(n),l=up(i.baseId,r),c=dp(i.baseId,r),f=r===i.value;return u.createElement(qs,J({asChild:!0},s,{focusable:!o,active:f}),u.createElement(ye.button,J({type:"button",role:"tab","aria-selected":f,"aria-controls":c,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l},a,{ref:t,onMouseDown:pe(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?i.onValueChange(r):d.preventDefault()}),onKeyDown:pe(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&i.onValueChange(r)}),onFocus:pe(e.onFocus,()=>{const d=i.activationMode!=="manual";!f&&!o&&d&&i.onValueChange(r)})})))}),ZS="TabsContent",QS=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,s=ml(ZS,n),l=up(s.baseId,r),c=dp(s.baseId,r),f=r===s.value,d=u.useRef(f);return u.useEffect(()=>{const h=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(h)},[]),u.createElement(Zt,{present:o||f},({present:h})=>u.createElement(ye.div,J({"data-state":f?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0},i,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),h&&a))});function up(e,t){return`${e}-trigger-${t}`}function dp(e,t){return`${e}-content-${t}`}const fp=US,hp=qS,pp=XS,mp=QS,gp=u.forwardRef(({children:e,...t},n)=>v.jsx(fp,{ref:n,...t,className:me("rabbit-ds",t.className),children:e})),vp=u.forwardRef(({children:e,...t},n)=>v.jsx(hp,{ref:n,...t,className:me("rabbit-ds flex gap-2",t.className),children:e})),bp=u.forwardRef(({children:e,...t},n)=>v.jsx(pp,{ref:n,className:me("rabbit-ds text-sm text-[#666666] px-4 py-3 font-semibold","data-[state=inactive]:text-[#666666] data-[state=inactive]:border-b-2 data-[state=inactive]:border-transparent","data-[state=active]:text-[#104F95] data-[state=active]:border-b-2 data-[state=active]:border-[#104F95]"),...t,children:e})),yp=u.forwardRef(({children:e,...t},n)=>v.jsx(mp,{ref:n,...t,className:me("rabbit-ds",t.className),children:e}));gp.displayName=fp.displayName,vp.displayName=hp.displayName,bp.displayName=pp.displayName,yp.displayName=mp.displayName;const wp=u.forwardRef(({src:e,title:t,alt:n,className:r,...o},a)=>v.jsxs("div",{className:"rabbit-ds relative",children:[v.jsx("img",{className:me("h-10 w-10 rounded-full",r),src:e,alt:n??t,ref:a,...o}),v.jsx("div",{className:"text-3xs text-white bg-orange-primary px-0.5 absolute bottom-0 left-1/2 -translate-x-1/2 rounded-sm leading-3 mx-auto",children:t})]}));wp.displayName="NavProfilePhoto";const JS=Ye("px-2 py-1 rounded flex items-center justify-center",{variants:{variant:{default:"font-semibold text-xs",outlined:"shadow-[0px_0px_1px_0px_rgba(0,0,0,0.25)] bg-[#F2F2F2] text-dark-high text-sm"}}});function ei({children:e,colorScheme:t="tag-yellow",variant:n="default",className:r}){return v.jsx("div",{className:"rabbit-ds",children:v.jsx("div",{className:me(n==="outlined"?"":t,JS({variant:n}),r),children:e})})}const xp="Avatar",[RS,D_]=ht(xp),[eC,$p]=RS(xp),tC=u.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=u.useState("idle");return u.createElement(eC,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a},u.createElement(ye.span,J({},r,{ref:t})))}),nC="AvatarImage",rC=u.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=$p(nC,n),s=iC(r),l=lt(c=>{o(c),i.onImageLoadingStatusChange(c)});return pt(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?u.createElement(ye.img,J({},a,{ref:t,src:r})):null}),oC="AvatarFallback",aC=u.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=$p(oC,n),[i,s]=u.useState(r===void 0);return u.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(l)}},[r]),i&&a.imageLoadingStatus!=="loaded"?u.createElement(ye.span,J({},o,{ref:t})):null});function iC(e){const[t,n]=u.useState("idle");return pt(()=>{if(!e){n("error");return}let r=!0;const o=new window.Image,a=i=>()=>{r&&n(i)};return n("loading"),o.onload=a("loaded"),o.onerror=a("error"),o.src=e,()=>{r=!1}},[e]),t}const Sp=tC,Cp=rC,Ep=aC,sC=Ye("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{xs:"h-3 w-3",sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-10 w-10"}},defaultVariants:{size:"md"}}),Un=ve.forwardRef(({className:e,size:t,...n},r)=>v.jsx(Sp,{ref:r,className:me(sC({size:t}),"relative flex shrink-0 overflow-hidden rounded-full",e),...n}));Un.displayName=Sp.displayName;const Yn=ve.forwardRef(({className:e,...t},n)=>v.jsx(Cp,{ref:n,className:me("aspect-square h-full w-full",e),...t}));Yn.displayName=Cp.displayName;const Mp=ve.forwardRef(({className:e,...t},n)=>v.jsx(Ep,{ref:n,className:me("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Mp.displayName=Ep.displayName;function De(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function xn(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function lC(e,t){const n=+De(e);return xn(e,n+t)}const Tp=6048e5,cC=864e5,uC=6e4,ti=43200,Pp=1440;let dC={};function wo(){return dC}function xo(e,t){var s,l,c,f;const n=wo(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((f=(c=n.locale)==null?void 0:c.options)==null?void 0:f.weekStartsOn)??0,o=De(e),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function ni(e){return xo(e,{weekStartsOn:1})}function kp(e){const t=De(e),n=t.getFullYear(),r=xn(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=ni(r),a=xn(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const i=ni(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function ri(e){const t=De(e);return t.setHours(0,0,0,0),t}function oi(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function fC(e,t){const n=ri(e),r=ri(t),o=n.getTime()-oi(n),a=r.getTime()-oi(r);return Math.round((o-a)/cC)}function hC(e){const t=kp(e),n=xn(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),ni(n)}function pC(e,t){return lC(e,t*uC)}function ai(e,t){const n=De(e),r=De(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function mC(e,t){const n=ri(e),r=ri(t);return+n==+r}function gC(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function vC(e){if(!gC(e)&&typeof e!="number")return!1;const t=De(e);return!isNaN(Number(t))}function bC(e,t){const n=De(e),r=De(t),o=n.getFullYear()-r.getFullYear(),a=n.getMonth()-r.getMonth();return o*12+a}function yC(e,t){return De(e).getTime()-De(t).getTime()}function wC(e){return e?Math[e]:Math.trunc}function xC(e){const t=De(e);return t.setHours(23,59,59,999),t}function $C(e){const t=De(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function SC(e){const t=De(e);return+xC(t)==+$C(t)}function CC(e,t){const n=De(e),r=De(t),o=ai(n,r),a=Math.abs(bC(n,r));let i;if(a<1)i=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*a);let s=ai(n,r)===-o;SC(De(e))&&a===1&&ai(e,r)===1&&(s=!1),i=o*(a-Number(s))}return i===0?0:i}function EC(e,t,n){const r=yC(e,t)/1e3;return wC(n==null?void 0:n.roundingMethod)(r)}function MC(e){const t=De(e),n=xn(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const TC={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},PC=(e,t,n)=>{let r;const o=TC[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function gl(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const kC={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},OC={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},NC={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},_C={date:gl({formats:kC,defaultWidth:"full"}),time:gl({formats:OC,defaultWidth:"full"}),dateTime:gl({formats:NC,defaultWidth:"full"})},DC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},AC=(e,t,n,r)=>DC[e];function $o(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{const i=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[i]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const IC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},LC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},FC={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},jC={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},zC={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},BC={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},WC={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:$o({values:IC,defaultWidth:"wide"}),quarter:$o({values:LC,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$o({values:FC,defaultWidth:"wide"}),day:$o({values:jC,defaultWidth:"wide"}),dayPeriod:$o({values:zC,defaultWidth:"wide",formattingValues:BC,defaultFormattingWidth:"wide"})};function So(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?HC(s,d=>d.test(i)):VC(s,d=>d.test(i));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const f=t.slice(i.length);return{value:c,rest:f}}}function VC(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function HC(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function GC(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;const s=t.slice(o.length);return{value:i,rest:s}}}const UC=/^(\d+)(th|st|nd|rd)?/i,YC=/\d+/i,qC={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},KC={any:[/^b/i,/^(a|c)/i]},XC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ZC={any:[/1/i,/2/i,/3/i,/4/i]},QC={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},JC={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},RC={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},e3={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},t3={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},n3={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},r3={ordinalNumber:GC({matchPattern:UC,parsePattern:YC,valueCallback:e=>parseInt(e,10)}),era:So({matchPatterns:qC,defaultMatchWidth:"wide",parsePatterns:KC,defaultParseWidth:"any"}),quarter:So({matchPatterns:XC,defaultMatchWidth:"wide",parsePatterns:ZC,defaultParseWidth:"any",valueCallback:e=>e+1}),month:So({matchPatterns:QC,defaultMatchWidth:"wide",parsePatterns:JC,defaultParseWidth:"any"}),day:So({matchPatterns:RC,defaultMatchWidth:"wide",parsePatterns:e3,defaultParseWidth:"any"}),dayPeriod:So({matchPatterns:t3,defaultMatchWidth:"any",parsePatterns:n3,defaultParseWidth:"any"})},Op={code:"en-US",formatDistance:PC,formatLong:_C,formatRelative:AC,localize:WC,match:r3,options:{weekStartsOn:0,firstWeekContainsDate:1}};function o3(e){const t=De(e);return fC(t,MC(t))+1}function a3(e){const t=De(e),n=ni(t).getTime()-hC(t).getTime();return Math.round(n/Tp)+1}function Np(e,t){var f,d,h,g;const n=De(e),r=n.getFullYear(),o=wo(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??o.firstWeekContainsDate??((g=(h=o.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,i=xn(e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=xo(i,t),l=xn(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=xo(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function i3(e,t){var s,l,c,f;const n=wo(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(c=n.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??1,o=Np(e,t),a=xn(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),xo(a,t)}function s3(e,t){const n=De(e),r=xo(n,t).getTime()-i3(n,t).getTime();return Math.round(r/Tp)+1}function Ae(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const $n={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ae(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ae(n+1,2)},d(e,t){return Ae(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Ae(e.getHours()%12||12,t.length)},H(e,t){return Ae(e.getHours(),t.length)},m(e,t){return Ae(e.getMinutes(),t.length)},s(e,t){return Ae(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.floor(r*Math.pow(10,n-3));return Ae(o,t.length)}},Nr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},l3={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return $n.y(e,t)},Y:function(e,t,n,r){const o=Np(e,r),a=o>0?o:1-o;if(t==="YY"){const i=a%100;return Ae(i,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Ae(a,t.length)},R:function(e,t){const n=kp(e);return Ae(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ae(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ae(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ae(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return $n.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ae(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=s3(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):Ae(o,t.length)},I:function(e,t,n){const r=a3(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ae(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):$n.d(e,t)},D:function(e,t,n){const r=o3(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ae(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Ae(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Ae(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return Ae(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Nr.noon:r===0?o=Nr.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Nr.evening:r>=12?o=Nr.afternoon:r>=4?o=Nr.morning:o=Nr.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return $n.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):$n.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ae(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ae(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):$n.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):$n.s(e,t)},S:function(e,t){return $n.S(e,t)},X:function(e,t,n,r){const a=(r._originalDate||e).getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return Dp(a);case"XXXX":case"XX":return qn(a);case"XXXXX":case"XXX":default:return qn(a,":")}},x:function(e,t,n,r){const a=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return Dp(a);case"xxxx":case"xx":return qn(a);case"xxxxx":case"xxx":default:return qn(a,":")}},O:function(e,t,n,r){const a=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+_p(a,":");case"OOOO":default:return"GMT"+qn(a,":")}},z:function(e,t,n,r){const a=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+_p(a,":");case"zzzz":default:return"GMT"+qn(a,":")}},t:function(e,t,n,r){const o=r._originalDate||e,a=Math.floor(o.getTime()/1e3);return Ae(a,t.length)},T:function(e,t,n,r){const a=(r._originalDate||e).getTime();return Ae(a,t.length)}};function _p(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+Ae(a,2)}function Dp(e,t){return e%60===0?(e>0?"-":"+")+Ae(Math.abs(e)/60,2):qn(e,t)}function qn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Ae(Math.floor(r/60),2),a=Ae(r%60,2);return n+o+t+a}const Ap=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Ip=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},c3={p:Ip,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Ap(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Ap(r,t)).replace("{{time}}",Ip(o,t))}},u3=["D","DD"],d3=["YY","YYYY"];function f3(e){return u3.indexOf(e)!==-1}function h3(e){return d3.indexOf(e)!==-1}function Lp(e,t,n){if(e==="YYYY")throw new RangeError(`Use \`yyyy\` instead of \`YYYY\` (in \`${t}\`) for formatting years to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e==="YY")throw new RangeError(`Use \`yy\` instead of \`YY\` (in \`${t}\`) for formatting years to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e==="D")throw new RangeError(`Use \`d\` instead of \`D\` (in \`${t}\`) for formatting days of the month to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e==="DD")throw new RangeError(`Use \`dd\` instead of \`DD\` (in \`${t}\`) for formatting days of the month to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`)}const p3=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,m3=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,g3=/^'([^]*?)'?$/,v3=/''/g,b3=/[a-zA-Z]/;function vl(e,t,n){var f,d,h,g,p,m,x,y;const r=wo(),o=(n==null?void 0:n.locale)??r.locale??Op,a=(n==null?void 0:n.firstWeekContainsDate)??((d=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,i=(n==null?void 0:n.weekStartsOn)??((m=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((y=(x=r.locale)==null?void 0:x.options)==null?void 0:y.weekStartsOn)??0,s=De(e);if(!vC(s))throw new RangeError("Invalid time value");const l={firstWeekContainsDate:a,weekStartsOn:i,locale:o,_originalDate:s};return t.match(m3).map(function(b){const w=b[0];if(w==="p"||w==="P"){const E=c3[w];return E(b,o.formatLong)}return b}).join("").match(p3).map(function(b){if(b==="''")return"'";const w=b[0];if(w==="'")return y3(b);const E=l3[w];if(E)return!(n!=null&&n.useAdditionalWeekYearTokens)&&h3(b)&&Lp(b,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&f3(b)&&Lp(b,t,String(e)),E(s,b,o.localize,l);if(w.match(b3))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return b}).join("")}function y3(e){const t=e.match(g3);return t?t[1].replace(v3,"'"):e}function w3(e,t,n){const r=wo(),o=(n==null?void 0:n.locale)??r.locale??Op,a=2520,i=ai(e,t);if(isNaN(i))throw new RangeError("Invalid time value");const s=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:i});let l,c;i>0?(l=De(t),c=De(e)):(l=De(e),c=De(t));const f=EC(c,l),d=(oi(c)-oi(l))/1e3,h=Math.round((f-d)/60);let g;if(h<2)return n!=null&&n.includeSeconds?f<5?o.formatDistance("lessThanXSeconds",5,s):f<10?o.formatDistance("lessThanXSeconds",10,s):f<20?o.formatDistance("lessThanXSeconds",20,s):f<40?o.formatDistance("halfAMinute",0,s):f<60?o.formatDistance("lessThanXMinutes",1,s):o.formatDistance("xMinutes",1,s):h===0?o.formatDistance("lessThanXMinutes",1,s):o.formatDistance("xMinutes",h,s);if(h<45)return o.formatDistance("xMinutes",h,s);if(h<90)return o.formatDistance("aboutXHours",1,s);if(h<Pp){const p=Math.round(h/60);return o.formatDistance("aboutXHours",p,s)}else{if(h<a)return o.formatDistance("xDays",1,s);if(h<ti){const p=Math.round(h/Pp);return o.formatDistance("xDays",p,s)}else if(h<ti*2)return g=Math.round(h/ti),o.formatDistance("aboutXMonths",g,s)}if(g=CC(c,l),g<12){const p=Math.round(h/ti);return o.formatDistance("xMonths",p,s)}else{const p=g%12,m=Math.floor(g/12);return p<3?o.formatDistance("aboutXYears",m,s):p<9?o.formatDistance("overXYears",m,s):o.formatDistance("almostXYears",m+1,s)}}function x3(e,t){return w3(e,Date.now(),t)}function $3(e,t){const n=De(e),r=De(t);return n.getTime()>r.getTime()}function bl({date:e,duration:t,showRelativeTime:n=!1,showTime:r=!1,dateFormat:o="MMM dd, yyyy",timeFormat:a="HH:mm",highlightDate:i=n}){const s=new Date,l=mC(e,s)||$3(e,s);let c="";n?(c=x3(e,{addSuffix:!0}),c=ay(c)):c=vl(e,o);const f=l?"text-functional-warn font-semibold":"";return v.jsx("div",{className:"rabbit-ds",children:v.jsxs("span",{className:me("text-sm",i&&f),children:[c,r&&" • ",r&&vl(e,a),r&&t&&` - ${vl(pC(e,t),a)}`]})})}var yl={exports:{}},ii={exports:{}},Ne={};/** @license React v16.13.1
47
47
  * react-is.production.min.js
48
48
  *
49
49
  * Copyright (c) Facebook, Inc. and its affiliates.
50
50
  *
51
51
  * This source code is licensed under the MIT license found in the
52
52
  * LICENSE file in the root directory of this source tree.
53
- */var _p;function m3(){if(_p)return Ne;_p=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function w(S){if(typeof S=="object"&&S!==null){var M=S.$$typeof;switch(M){case t:switch(S=S.type,S){case l:case c:case r:case a:case o:case d:return S;default:switch(S=S&&S.$$typeof,S){case s:case f:case p:case g:case i:return S;default:return M}}case n:return M}}}function E(S){return w(S)===c}return Ne.AsyncMode=l,Ne.ConcurrentMode=c,Ne.ContextConsumer=s,Ne.ContextProvider=i,Ne.Element=t,Ne.ForwardRef=f,Ne.Fragment=r,Ne.Lazy=p,Ne.Memo=g,Ne.Portal=n,Ne.Profiler=a,Ne.StrictMode=o,Ne.Suspense=d,Ne.isAsyncMode=function(S){return E(S)||w(S)===l},Ne.isConcurrentMode=E,Ne.isContextConsumer=function(S){return w(S)===s},Ne.isContextProvider=function(S){return w(S)===i},Ne.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Ne.isForwardRef=function(S){return w(S)===f},Ne.isFragment=function(S){return w(S)===r},Ne.isLazy=function(S){return w(S)===p},Ne.isMemo=function(S){return w(S)===g},Ne.isPortal=function(S){return w(S)===n},Ne.isProfiler=function(S){return w(S)===a},Ne.isStrictMode=function(S){return w(S)===o},Ne.isSuspense=function(S){return w(S)===d},Ne.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===c||S===a||S===o||S===d||S===h||typeof S=="object"&&S!==null&&(S.$$typeof===p||S.$$typeof===g||S.$$typeof===i||S.$$typeof===s||S.$$typeof===f||S.$$typeof===x||S.$$typeof===b||S.$$typeof===v||S.$$typeof===m)},Ne.typeOf=w,Ne}var _e={};/** @license React v16.13.1
53
+ */var Fp;function S3(){if(Fp)return Ne;Fp=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(S){if(typeof S=="object"&&S!==null){var T=S.$$typeof;switch(T){case t:switch(S=S.type,S){case l:case c:case r:case a:case o:case d:return S;default:switch(S=S&&S.$$typeof,S){case s:case f:case p:case g:case i:return S;default:return T}}case n:return T}}}function E(S){return w(S)===c}return Ne.AsyncMode=l,Ne.ConcurrentMode=c,Ne.ContextConsumer=s,Ne.ContextProvider=i,Ne.Element=t,Ne.ForwardRef=f,Ne.Fragment=r,Ne.Lazy=p,Ne.Memo=g,Ne.Portal=n,Ne.Profiler=a,Ne.StrictMode=o,Ne.Suspense=d,Ne.isAsyncMode=function(S){return E(S)||w(S)===l},Ne.isConcurrentMode=E,Ne.isContextConsumer=function(S){return w(S)===s},Ne.isContextProvider=function(S){return w(S)===i},Ne.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Ne.isForwardRef=function(S){return w(S)===f},Ne.isFragment=function(S){return w(S)===r},Ne.isLazy=function(S){return w(S)===p},Ne.isMemo=function(S){return w(S)===g},Ne.isPortal=function(S){return w(S)===n},Ne.isProfiler=function(S){return w(S)===a},Ne.isStrictMode=function(S){return w(S)===o},Ne.isSuspense=function(S){return w(S)===d},Ne.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===c||S===a||S===o||S===d||S===h||typeof S=="object"&&S!==null&&(S.$$typeof===p||S.$$typeof===g||S.$$typeof===i||S.$$typeof===s||S.$$typeof===f||S.$$typeof===x||S.$$typeof===y||S.$$typeof===b||S.$$typeof===m)},Ne.typeOf=w,Ne}var _e={};/** @license React v16.13.1
54
54
  * react-is.development.js
55
55
  *
56
56
  * Copyright (c) Facebook, Inc. and its affiliates.
57
57
  *
58
58
  * This source code is licensed under the MIT license found in the
59
59
  * LICENSE file in the root directory of this source tree.
60
- */var Dp;function g3(){return Dp||(Dp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function w(k){return typeof k=="string"||typeof k=="function"||k===r||k===c||k===a||k===o||k===d||k===h||typeof k=="object"&&k!==null&&(k.$$typeof===p||k.$$typeof===g||k.$$typeof===i||k.$$typeof===s||k.$$typeof===f||k.$$typeof===x||k.$$typeof===b||k.$$typeof===v||k.$$typeof===m)}function E(k){if(typeof k=="object"&&k!==null){var te=k.$$typeof;switch(te){case t:var ae=k.type;switch(ae){case l:case c:case r:case a:case o:case d:return ae;default:var me=ae&&ae.$$typeof;switch(me){case s:case f:case p:case g:case i:return me;default:return te}}case n:return te}}}var S=l,M=c,N=s,T=i,O=t,F=f,j=r,H=p,G=g,L=n,C=a,_=o,B=d,V=!1;function D(k){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(k)||E(k)===l}function A(k){return E(k)===c}function W(k){return E(k)===s}function ne(k){return E(k)===i}function Q(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function re(k){return E(k)===f}function oe(k){return E(k)===r}function ue(k){return E(k)===p}function X(k){return E(k)===g}function le(k){return E(k)===n}function U(k){return E(k)===a}function Z(k){return E(k)===o}function ie(k){return E(k)===d}_e.AsyncMode=S,_e.ConcurrentMode=M,_e.ContextConsumer=N,_e.ContextProvider=T,_e.Element=O,_e.ForwardRef=F,_e.Fragment=j,_e.Lazy=H,_e.Memo=G,_e.Portal=L,_e.Profiler=C,_e.StrictMode=_,_e.Suspense=B,_e.isAsyncMode=D,_e.isConcurrentMode=A,_e.isContextConsumer=W,_e.isContextProvider=ne,_e.isElement=Q,_e.isForwardRef=re,_e.isFragment=oe,_e.isLazy=ue,_e.isMemo=X,_e.isPortal=le,_e.isProfiler=U,_e.isStrictMode=Z,_e.isSuspense=ie,_e.isValidElementType=w,_e.typeOf=E}()),_e}var Ap;function Ip(){return Ap||(Ap=1,process.env.NODE_ENV==="production"?ni.exports=m3():ni.exports=g3()),ni.exports}/*
60
+ */var jp;function C3(){return jp||(jp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(k){return typeof k=="string"||typeof k=="function"||k===r||k===c||k===a||k===o||k===d||k===h||typeof k=="object"&&k!==null&&(k.$$typeof===p||k.$$typeof===g||k.$$typeof===i||k.$$typeof===s||k.$$typeof===f||k.$$typeof===x||k.$$typeof===y||k.$$typeof===b||k.$$typeof===m)}function E(k){if(typeof k=="object"&&k!==null){var te=k.$$typeof;switch(te){case t:var ae=k.type;switch(ae){case l:case c:case r:case a:case o:case d:return ae;default:var ge=ae&&ae.$$typeof;switch(ge){case s:case f:case p:case g:case i:return ge;default:return te}}case n:return te}}}var S=l,T=c,N=s,M=i,O=t,F=f,j=r,H=p,G=g,L=n,C=a,_=o,B=d,V=!1;function D(k){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(k)||E(k)===l}function A(k){return E(k)===c}function W(k){return E(k)===s}function ne(k){return E(k)===i}function Q(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function re(k){return E(k)===f}function oe(k){return E(k)===r}function ue(k){return E(k)===p}function X(k){return E(k)===g}function le(k){return E(k)===n}function U(k){return E(k)===a}function Z(k){return E(k)===o}function ie(k){return E(k)===d}_e.AsyncMode=S,_e.ConcurrentMode=T,_e.ContextConsumer=N,_e.ContextProvider=M,_e.Element=O,_e.ForwardRef=F,_e.Fragment=j,_e.Lazy=H,_e.Memo=G,_e.Portal=L,_e.Profiler=C,_e.StrictMode=_,_e.Suspense=B,_e.isAsyncMode=D,_e.isConcurrentMode=A,_e.isContextConsumer=W,_e.isContextProvider=ne,_e.isElement=Q,_e.isForwardRef=re,_e.isFragment=oe,_e.isLazy=ue,_e.isMemo=X,_e.isPortal=le,_e.isProfiler=U,_e.isStrictMode=Z,_e.isSuspense=ie,_e.isValidElementType=w,_e.typeOf=E}()),_e}var zp;function Bp(){return zp||(zp=1,process.env.NODE_ENV==="production"?ii.exports=S3():ii.exports=C3()),ii.exports}/*
61
61
  object-assign
62
62
  (c) Sindre Sorhus
63
63
  @license MIT
64
- */var gl,Lp;function v3(){if(Lp)return gl;Lp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},s=0;s<10;s++)i["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(i).map(function(f){return i[f]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(f){c[f]=f}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return gl=o()?Object.assign:function(a,i){for(var s,l=r(a),c,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var d in s)t.call(s,d)&&(l[d]=s[d]);if(e){c=e(s);for(var h=0;h<c.length;h++)n.call(s,c[h])&&(l[c[h]]=s[c[h]])}}return l},gl}var vl,Fp;function bl(){if(Fp)return vl;Fp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return vl=e,vl}var yl,jp;function zp(){return jp||(jp=1,yl=Function.call.bind(Object.prototype.hasOwnProperty)),yl}var wl,Bp;function b3(){if(Bp)return wl;Bp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=bl(),n={},r=zp();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,s,l,c){if(process.env.NODE_ENV!=="production"){for(var f in a)if(r(a,f)){var d;try{if(typeof a[f]!="function"){var h=Error((l||"React class")+": "+s+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}d=a[f](i,f,l,s,null,t)}catch(p){d=p}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var g=c?c():"";e("Failed "+s+" type: "+d.message+(g??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},wl=o,wl}var xl,Wp;function y3(){if(Wp)return xl;Wp=1;var e=Ip(),t=v3(),n=bl(),r=zp(),o=b3(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function i(){return null}return xl=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function d(A){var W=A&&(c&&A[c]||A[f]);if(typeof W=="function")return W}var h="<<anonymous>>",g={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:v(),arrayOf:w,element:E(),elementType:S(),instanceOf:M,node:F(),objectOf:T,oneOf:N,oneOfType:O,shape:H,exact:G};function p(A,W){return A===W?A!==0||1/A===1/W:A!==A&&W!==W}function m(A,W){this.message=A,this.data=W&&typeof W=="object"?W:{},this.stack=""}m.prototype=Error.prototype;function x(A){if(process.env.NODE_ENV!=="production")var W={},ne=0;function Q(oe,ue,X,le,U,Z,ie){if(le=le||h,Z=Z||X,ie!==n){if(l){var k=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw k.name="Invariant Violation",k}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var te=le+":"+X;!W[te]&&ne<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Z+"` prop on `"+le+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),W[te]=!0,ne++)}}return ue[X]==null?oe?ue[X]===null?new m("The "+U+" `"+Z+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new m("The "+U+" `"+Z+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:A(ue,X,le,U,Z)}var re=Q.bind(null,!1);return re.isRequired=Q.bind(null,!0),re}function b(A){function W(ne,Q,re,oe,ue,X){var le=ne[Q],U=_(le);if(U!==A){var Z=B(le);return new m("Invalid "+oe+" `"+ue+"` of type "+("`"+Z+"` supplied to `"+re+"`, expected ")+("`"+A+"`."),{expectedType:A})}return null}return x(W)}function v(){return x(i)}function w(A){function W(ne,Q,re,oe,ue){if(typeof A!="function")return new m("Property `"+ue+"` of component `"+re+"` has invalid PropType notation inside arrayOf.");var X=ne[Q];if(!Array.isArray(X)){var le=_(X);return new m("Invalid "+oe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+re+"`, expected an array."))}for(var U=0;U<X.length;U++){var Z=A(X,U,re,oe,ue+"["+U+"]",n);if(Z instanceof Error)return Z}return null}return x(W)}function E(){function A(W,ne,Q,re,oe){var ue=W[ne];if(!s(ue)){var X=_(ue);return new m("Invalid "+re+" `"+oe+"` of type "+("`"+X+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return x(A)}function S(){function A(W,ne,Q,re,oe){var ue=W[ne];if(!e.isValidElementType(ue)){var X=_(ue);return new m("Invalid "+re+" `"+oe+"` of type "+("`"+X+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return x(A)}function M(A){function W(ne,Q,re,oe,ue){if(!(ne[Q]instanceof A)){var X=A.name||h,le=D(ne[Q]);return new m("Invalid "+oe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+re+"`, expected ")+("instance of `"+X+"`."))}return null}return x(W)}function N(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function W(ne,Q,re,oe,ue){for(var X=ne[Q],le=0;le<A.length;le++)if(p(X,A[le]))return null;var U=JSON.stringify(A,function(ie,k){var te=B(k);return te==="symbol"?String(k):k});return new m("Invalid "+oe+" `"+ue+"` of value `"+String(X)+"` "+("supplied to `"+re+"`, expected one of "+U+"."))}return x(W)}function T(A){function W(ne,Q,re,oe,ue){if(typeof A!="function")return new m("Property `"+ue+"` of component `"+re+"` has invalid PropType notation inside objectOf.");var X=ne[Q],le=_(X);if(le!=="object")return new m("Invalid "+oe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+re+"`, expected an object."));for(var U in X)if(r(X,U)){var Z=A(X,U,re,oe,ue+"."+U,n);if(Z instanceof Error)return Z}return null}return x(W)}function O(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var W=0;W<A.length;W++){var ne=A[W];if(typeof ne!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(ne)+" at index "+W+"."),i}function Q(re,oe,ue,X,le){for(var U=[],Z=0;Z<A.length;Z++){var ie=A[Z],k=ie(re,oe,ue,X,le,n);if(k==null)return null;k.data&&r(k.data,"expectedType")&&U.push(k.data.expectedType)}var te=U.length>0?", expected one of type ["+U.join(", ")+"]":"";return new m("Invalid "+X+" `"+le+"` supplied to "+("`"+ue+"`"+te+"."))}return x(Q)}function F(){function A(W,ne,Q,re,oe){return L(W[ne])?null:new m("Invalid "+re+" `"+oe+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return x(A)}function j(A,W,ne,Q,re){return new m((A||"React class")+": "+W+" type `"+ne+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+re+"`.")}function H(A){function W(ne,Q,re,oe,ue){var X=ne[Q],le=_(X);if(le!=="object")return new m("Invalid "+oe+" `"+ue+"` of type `"+le+"` "+("supplied to `"+re+"`, expected `object`."));for(var U in A){var Z=A[U];if(typeof Z!="function")return j(re,oe,ue,U,B(Z));var ie=Z(X,U,re,oe,ue+"."+U,n);if(ie)return ie}return null}return x(W)}function G(A){function W(ne,Q,re,oe,ue){var X=ne[Q],le=_(X);if(le!=="object")return new m("Invalid "+oe+" `"+ue+"` of type `"+le+"` "+("supplied to `"+re+"`, expected `object`."));var U=t({},ne[Q],A);for(var Z in U){var ie=A[Z];if(r(A,Z)&&typeof ie!="function")return j(re,oe,ue,Z,B(ie));if(!ie)return new m("Invalid "+oe+" `"+ue+"` key `"+Z+"` supplied to `"+re+"`.\nBad object: "+JSON.stringify(ne[Q],null," ")+`
65
- Valid keys: `+JSON.stringify(Object.keys(A),null," "));var k=ie(X,Z,re,oe,ue+"."+Z,n);if(k)return k}return null}return x(W)}function L(A){switch(typeof A){case"number":case"string":case"undefined":return!0;case"boolean":return!A;case"object":if(Array.isArray(A))return A.every(L);if(A===null||s(A))return!0;var W=d(A);if(W){var ne=W.call(A),Q;if(W!==A.entries){for(;!(Q=ne.next()).done;)if(!L(Q.value))return!1}else for(;!(Q=ne.next()).done;){var re=Q.value;if(re&&!L(re[1]))return!1}}else return!1;return!0;default:return!1}}function C(A,W){return A==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function _(A){var W=typeof A;return Array.isArray(A)?"array":A instanceof RegExp?"object":C(W,A)?"symbol":W}function B(A){if(typeof A>"u"||A===null)return""+A;var W=_(A);if(W==="object"){if(A instanceof Date)return"date";if(A instanceof RegExp)return"regexp"}return W}function V(A){var W=B(A);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function D(A){return!A.constructor||!A.constructor.name?h:A.constructor.name}return g.checkPropTypes=o,g.resetWarningCache=o.resetWarningCache,g.PropTypes=g,g},xl}var $l,Vp;function w3(){if(Vp)return $l;Vp=1;var e=bl();function t(){}function n(){}return n.resetWarningCache=t,$l=function(){function r(i,s,l,c,f,d){if(d!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},$l}if(process.env.NODE_ENV!=="production"){var x3=Ip(),$3=!0;ml.exports=y3()(x3.isElement,$3)}else ml.exports=w3()();var ri=ml.exports;const se=pr(ri);var Hp={exports:{}};/*!
64
+ */var wl,Wp;function E3(){if(Wp)return wl;Wp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},s=0;s<10;s++)i["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(i).map(function(f){return i[f]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(f){c[f]=f}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return wl=o()?Object.assign:function(a,i){for(var s,l=r(a),c,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var d in s)t.call(s,d)&&(l[d]=s[d]);if(e){c=e(s);for(var h=0;h<c.length;h++)n.call(s,c[h])&&(l[c[h]]=s[c[h]])}}return l},wl}var xl,Vp;function $l(){if(Vp)return xl;Vp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return xl=e,xl}var Sl,Hp;function Gp(){return Hp||(Hp=1,Sl=Function.call.bind(Object.prototype.hasOwnProperty)),Sl}var Cl,Up;function M3(){if(Up)return Cl;Up=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=$l(),n={},r=Gp();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,s,l,c){if(process.env.NODE_ENV!=="production"){for(var f in a)if(r(a,f)){var d;try{if(typeof a[f]!="function"){var h=Error((l||"React class")+": "+s+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}d=a[f](i,f,l,s,null,t)}catch(p){d=p}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var g=c?c():"";e("Failed "+s+" type: "+d.message+(g??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Cl=o,Cl}var El,Yp;function T3(){if(Yp)return El;Yp=1;var e=Bp(),t=E3(),n=$l(),r=Gp(),o=M3(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function i(){return null}return El=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function d(A){var W=A&&(c&&A[c]||A[f]);if(typeof W=="function")return W}var h="<<anonymous>>",g={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:b(),arrayOf:w,element:E(),elementType:S(),instanceOf:T,node:F(),objectOf:M,oneOf:N,oneOfType:O,shape:H,exact:G};function p(A,W){return A===W?A!==0||1/A===1/W:A!==A&&W!==W}function m(A,W){this.message=A,this.data=W&&typeof W=="object"?W:{},this.stack=""}m.prototype=Error.prototype;function x(A){if(process.env.NODE_ENV!=="production")var W={},ne=0;function Q(oe,ue,X,le,U,Z,ie){if(le=le||h,Z=Z||X,ie!==n){if(l){var k=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw k.name="Invariant Violation",k}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var te=le+":"+X;!W[te]&&ne<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Z+"` prop on `"+le+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),W[te]=!0,ne++)}}return ue[X]==null?oe?ue[X]===null?new m("The "+U+" `"+Z+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new m("The "+U+" `"+Z+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:A(ue,X,le,U,Z)}var re=Q.bind(null,!1);return re.isRequired=Q.bind(null,!0),re}function y(A){function W(ne,Q,re,oe,ue,X){var le=ne[Q],U=_(le);if(U!==A){var Z=B(le);return new m("Invalid "+oe+" `"+ue+"` of type "+("`"+Z+"` supplied to `"+re+"`, expected ")+("`"+A+"`."),{expectedType:A})}return null}return x(W)}function b(){return x(i)}function w(A){function W(ne,Q,re,oe,ue){if(typeof A!="function")return new m("Property `"+ue+"` of component `"+re+"` has invalid PropType notation inside arrayOf.");var X=ne[Q];if(!Array.isArray(X)){var le=_(X);return new m("Invalid "+oe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+re+"`, expected an array."))}for(var U=0;U<X.length;U++){var Z=A(X,U,re,oe,ue+"["+U+"]",n);if(Z instanceof Error)return Z}return null}return x(W)}function E(){function A(W,ne,Q,re,oe){var ue=W[ne];if(!s(ue)){var X=_(ue);return new m("Invalid "+re+" `"+oe+"` of type "+("`"+X+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return x(A)}function S(){function A(W,ne,Q,re,oe){var ue=W[ne];if(!e.isValidElementType(ue)){var X=_(ue);return new m("Invalid "+re+" `"+oe+"` of type "+("`"+X+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return x(A)}function T(A){function W(ne,Q,re,oe,ue){if(!(ne[Q]instanceof A)){var X=A.name||h,le=D(ne[Q]);return new m("Invalid "+oe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+re+"`, expected ")+("instance of `"+X+"`."))}return null}return x(W)}function N(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function W(ne,Q,re,oe,ue){for(var X=ne[Q],le=0;le<A.length;le++)if(p(X,A[le]))return null;var U=JSON.stringify(A,function(ie,k){var te=B(k);return te==="symbol"?String(k):k});return new m("Invalid "+oe+" `"+ue+"` of value `"+String(X)+"` "+("supplied to `"+re+"`, expected one of "+U+"."))}return x(W)}function M(A){function W(ne,Q,re,oe,ue){if(typeof A!="function")return new m("Property `"+ue+"` of component `"+re+"` has invalid PropType notation inside objectOf.");var X=ne[Q],le=_(X);if(le!=="object")return new m("Invalid "+oe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+re+"`, expected an object."));for(var U in X)if(r(X,U)){var Z=A(X,U,re,oe,ue+"."+U,n);if(Z instanceof Error)return Z}return null}return x(W)}function O(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var W=0;W<A.length;W++){var ne=A[W];if(typeof ne!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(ne)+" at index "+W+"."),i}function Q(re,oe,ue,X,le){for(var U=[],Z=0;Z<A.length;Z++){var ie=A[Z],k=ie(re,oe,ue,X,le,n);if(k==null)return null;k.data&&r(k.data,"expectedType")&&U.push(k.data.expectedType)}var te=U.length>0?", expected one of type ["+U.join(", ")+"]":"";return new m("Invalid "+X+" `"+le+"` supplied to "+("`"+ue+"`"+te+"."))}return x(Q)}function F(){function A(W,ne,Q,re,oe){return L(W[ne])?null:new m("Invalid "+re+" `"+oe+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return x(A)}function j(A,W,ne,Q,re){return new m((A||"React class")+": "+W+" type `"+ne+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+re+"`.")}function H(A){function W(ne,Q,re,oe,ue){var X=ne[Q],le=_(X);if(le!=="object")return new m("Invalid "+oe+" `"+ue+"` of type `"+le+"` "+("supplied to `"+re+"`, expected `object`."));for(var U in A){var Z=A[U];if(typeof Z!="function")return j(re,oe,ue,U,B(Z));var ie=Z(X,U,re,oe,ue+"."+U,n);if(ie)return ie}return null}return x(W)}function G(A){function W(ne,Q,re,oe,ue){var X=ne[Q],le=_(X);if(le!=="object")return new m("Invalid "+oe+" `"+ue+"` of type `"+le+"` "+("supplied to `"+re+"`, expected `object`."));var U=t({},ne[Q],A);for(var Z in U){var ie=A[Z];if(r(A,Z)&&typeof ie!="function")return j(re,oe,ue,Z,B(ie));if(!ie)return new m("Invalid "+oe+" `"+ue+"` key `"+Z+"` supplied to `"+re+"`.\nBad object: "+JSON.stringify(ne[Q],null," ")+`
65
+ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var k=ie(X,Z,re,oe,ue+"."+Z,n);if(k)return k}return null}return x(W)}function L(A){switch(typeof A){case"number":case"string":case"undefined":return!0;case"boolean":return!A;case"object":if(Array.isArray(A))return A.every(L);if(A===null||s(A))return!0;var W=d(A);if(W){var ne=W.call(A),Q;if(W!==A.entries){for(;!(Q=ne.next()).done;)if(!L(Q.value))return!1}else for(;!(Q=ne.next()).done;){var re=Q.value;if(re&&!L(re[1]))return!1}}else return!1;return!0;default:return!1}}function C(A,W){return A==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function _(A){var W=typeof A;return Array.isArray(A)?"array":A instanceof RegExp?"object":C(W,A)?"symbol":W}function B(A){if(typeof A>"u"||A===null)return""+A;var W=_(A);if(W==="object"){if(A instanceof Date)return"date";if(A instanceof RegExp)return"regexp"}return W}function V(A){var W=B(A);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function D(A){return!A.constructor||!A.constructor.name?h:A.constructor.name}return g.checkPropTypes=o,g.resetWarningCache=o.resetWarningCache,g.PropTypes=g,g},El}var Ml,qp;function P3(){if(qp)return Ml;qp=1;var e=$l();function t(){}function n(){}return n.resetWarningCache=t,Ml=function(){function r(i,s,l,c,f,d){if(d!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Ml}if(process.env.NODE_ENV!=="production"){var k3=Bp(),O3=!0;yl.exports=T3()(k3.isElement,O3)}else yl.exports=P3()();var si=yl.exports;const se=mr(si);var Kp={exports:{}};/*!
66
66
  Copyright (c) 2018 Jed Watson.
67
67
  Licensed under the MIT License (MIT), see
68
68
  http://jedwatson.github.io/classnames
69
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var i=typeof a;if(i==="string"||i==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var s=n.apply(null,a);s&&r.push(s)}}else if(i==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var l in a)t.call(a,l)&&a[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Hp);var oi=Hp.exports;const ct=pr(oi);var S3=["top","left","transform","className","children","innerRef"];function Sl(){return Sl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sl.apply(this,arguments)}function C3(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function qn(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.transform,i=e.className,s=e.children,l=e.innerRef,c=C3(e,S3);return u.createElement("g",Sl({ref:l,className:ct("visx-group",i),transform:a||"translate("+o+", "+n+")"},c),s)}qn.propTypes={top:se.number,left:se.number,transform:se.string,className:se.string,children:se.node,innerRef:se.oneOfType([se.string,se.func,se.object])};const E3=Object.freeze(Object.defineProperty({__proto__:null,Group:qn},Symbol.toStringTag,{value:"Module"}));var T3=Gp;function Gp(e,t,n){e instanceof RegExp&&(e=Up(e,n)),t instanceof RegExp&&(t=Up(t,n));var r=Yp(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function Up(e,t){var n=t.match(e);return n?n[0]:null}Gp.range=Yp;function Yp(e,t,n){var r,o,a,i,s,l=n.indexOf(e),c=n.indexOf(t,l+1),f=l;if(l>=0&&c>0){for(r=[],a=n.length;f>=0&&!s;)f==l?(r.push(f),l=n.indexOf(e,f+1)):r.length==1?s=[r.pop(),c]:(o=r.pop(),o<a&&(a=o,i=c),c=n.indexOf(t,f+1)),f=l<c&&l>=0?l:c;r.length&&(s=[a,i])}return s}var M3=qp;function qp(e,t,n){e instanceof RegExp&&(e=Kp(e,n)),t instanceof RegExp&&(t=Kp(t,n));var r=Xp(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function Kp(e,t){var n=t.match(e);return n?n[0]:null}qp.range=Xp;function Xp(e,t,n){var r,o,a,i,s,l=n.indexOf(e),c=n.indexOf(t,l+1),f=l;if(l>=0&&c>0){if(e===t)return[l,c];for(r=[],a=n.length;f>=0&&!s;)f==l?(r.push(f),l=n.indexOf(e,f+1)):r.length==1?s=[r.pop(),c]:(o=r.pop(),o<a&&(a=o,i=c),c=n.indexOf(t,f+1)),f=l<c&&l>=0?l:c;r.length&&(s=[a,i])}return s}var P3=M3,k3=Zp;function Zp(e,t,n){var r=e;return O3(e,t).reduce(function(o,a){return o.replace(a.functionIdentifier+"("+a.matches.body+")",N3(a.matches.body,a.functionIdentifier,n,r,t))},e)}function O3(e,t){var n=[],r=typeof t=="string"?new RegExp("\\b("+t+")\\("):t;do{var o=r.exec(e);if(!o)return n;if(o[1]===void 0)throw new Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],i=o.index,s=P3("(",")",e.substring(i));if(!s||s.start!==o[0].length-1)throw new SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:s,functionIdentifier:a}),e=s.post}while(r.test(e));return n}function N3(e,t,n,r,o){return n(Zp(e,o,n),t,r)}var Je=function(e){this.value=e};Je.math={isDegree:!0,acos:function(e){return Je.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return Je.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return Je.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,t){var n=1,r=e-t,o=t;o<r&&(o=r,r=t);for(var a=o+1;a<=e;a++)n*=a;return n/Je.math.fact(r)},changeSign:function(e){return-e},cos:function(e){return Je.math.isDegree&&(e=Je.math.toRadian(e)),Math.cos(e)},cosh:function(e){return(Math.pow(Math.E,e)+Math.pow(Math.E,-1*e))/2},div:function(e,t){return e/t},fact:function(e){if(e%1!==0)return"NaN";for(var t=1,n=2;n<=e;n++)t*=n;return t},inverse:function(e){return 1/e},log:function(e){return Math.log(e)/Math.log(10)},mod:function(e,t){return e%t},mul:function(e,t){return e*t},P:function(e,t){for(var n=1,r=Math.floor(e)-Math.floor(t)+1;r<=Math.floor(e);r++)n*=r;return n},Pi:function(e,t,n){for(var r=1,o=e;o<=t;o++)r*=Number(n.postfixEval({n:o}));return r},pow10x:function(e){for(var t=1;e--;)t*=10;return t},sigma:function(e,t,n){for(var r=0,o=e;o<=t;o++)r+=Number(n.postfixEval({n:o}));return r},sin:function(e){return Je.math.isDegree&&(e=Je.math.toRadian(e)),Math.sin(e)},sinh:function(e){return(Math.pow(Math.E,e)-Math.pow(Math.E,-1*e))/2},sub:function(e,t){return e-t},tan:function(e){return Je.math.isDegree&&(e=Je.math.toRadian(e)),Math.tan(e)},tanh:function(e){return Je.sinha(e)/Je.cosha(e)},toRadian:function(e){return e*Math.PI/180},and:function(e,t){return e&t}},Je.Exception=function(e){this.message=e};var _3=Je,xe=_3;function Re(e,t){for(var n=0;n<e.length;n++)e[n]+=t;return e}for(var $n=[{token:"sin",show:"sin",type:0,value:xe.math.sin},{token:"cos",show:"cos",type:0,value:xe.math.cos},{token:"tan",show:"tan",type:0,value:xe.math.tan},{token:"pi",show:"&pi;",type:3,value:"PI"},{token:"(",show:"(",type:4,value:"("},{token:")",show:")",type:5,value:")"},{token:"P",show:"P",type:10,value:xe.math.P},{token:"C",show:"C",type:10,value:xe.math.C},{token:" ",show:" ",type:14,value:" ".anchor},{token:"asin",show:"asin",type:0,value:xe.math.asin},{token:"acos",show:"acos",type:0,value:xe.math.acos},{token:"atan",show:"atan",type:0,value:xe.math.atan},{token:"7",show:"7",type:1,value:"7"},{token:"8",show:"8",type:1,value:"8"},{token:"9",show:"9",type:1,value:"9"},{token:"int",show:"Int",type:0,value:Math.floor},{token:"cosh",show:"cosh",type:0,value:xe.math.cosh},{token:"acosh",show:"acosh",type:0,value:xe.math.acosh},{token:"ln",show:" ln",type:0,value:Math.log},{token:"^",show:"^",type:10,value:Math.pow},{token:"root",show:"root",type:0,value:Math.sqrt},{token:"4",show:"4",type:1,value:"4"},{token:"5",show:"5",type:1,value:"5"},{token:"6",show:"6",type:1,value:"6"},{token:"/",show:"&divide;",type:2,value:xe.math.div},{token:"!",show:"!",type:7,value:xe.math.fact},{token:"tanh",show:"tanh",type:0,value:xe.math.tanh},{token:"atanh",show:"atanh",type:0,value:xe.math.atanh},{token:"Mod",show:" Mod ",type:2,value:xe.math.mod},{token:"1",show:"1",type:1,value:"1"},{token:"2",show:"2",type:1,value:"2"},{token:"3",show:"3",type:1,value:"3"},{token:"*",show:"&times;",type:2,value:xe.math.mul},{token:"sinh",show:"sinh",type:0,value:xe.math.sinh},{token:"asinh",show:"asinh",type:0,value:xe.math.asinh},{token:"e",show:"e",type:3,value:"E"},{token:"log",show:" log",type:0,value:xe.math.log},{token:"0",show:"0",type:1,value:"0"},{token:".",show:".",type:6,value:"."},{token:"+",show:"+",type:9,value:xe.math.add},{token:"-",show:"-",type:9,value:xe.math.sub},{token:",",show:",",type:11,value:","},{token:"Sigma",show:"&Sigma;",type:12,value:xe.math.sigma},{token:"n",show:"n",type:13,value:"n"},{token:"Pi",show:"&Pi;",type:12,value:xe.math.Pi},{token:"pow",show:"pow",type:8,value:Math.pow,numberOfArguments:2},{token:"&",show:"&",type:9,value:xe.math.and}],Cl={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0,14:-1,15:11},ai=0;ai<$n.length;ai++)$n[ai].precedence=Cl[$n[ai].type];var Gt={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0,14:!0,15:!0},Nr={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0,15:!0},D3={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0,15:!0},kt={},xo={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0,15:!0},A3={1:!0},et=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"," ","&"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function I3(e,t,n,r){for(var o=0;o<r;o++)if(e[n+o]!==t[o])return!1;return!0}xe.tokenTypes={FUNCTION_WITH_ONE_ARG:0,NUMBER:1,BINARY_OPERATOR_HIGH_PRECENDENCE:2,CONSTANT:3,OPENING_PARENTHESIS:4,CLOSING_PARENTHESIS:5,DECIMAL:6,POSTFIX_FUNCTION_WITH_ONE_ARG:7,FUNCTION_WITH_N_ARGS:8,BINARY_OPERATOR_LOW_PRECENDENCE:9,BINARY_OPERATOR_PERMUTATION:10,COMMA:11,EVALUATED_FUNCTION:12,EVALUATED_FUNCTION_PARAMETER:13,SPACE:14},xe.addToken=function(e){for(var t=0;t<e.length;t++){var n=e[t].token.length,r=-1;e[t].type===xe.tokenTypes.FUNCTION_WITH_N_ARGS&&e[t].numberOfArguments===void 0&&(e[t].numberOfArguments=2),et[n]=et[n]||[];for(var o=0;o<et[n].length;o++)if(e[t].token===et[n][o]){r=Qp(et[n][o],$n);break}r===-1?($n.push(e[t]),e[t].precedence=Cl[e[t].type],et.length<=e[t].token.length&&(et[e[t].token.length]=[]),et[e[t].token.length].push(e[t].token)):($n[r]=e[t],e[t].precedence=Cl[e[t].type])}};function Qp(e,t){for(var n=0;n<t.length;n++)if(t[n].token===e)return n;return-1}function L3(e){for(var t=[],n=e.length,r,o,a,i=0;i<n;i++)if(!(i<n-1&&e[i]===" "&&e[i+1]===" ")){for(r="",o=e.length-i>et.length-2?et.length-1:e.length-i;o>0;o--)if(et[o]!==void 0)for(a=0;a<et[o].length;a++)I3(e,et[o][a],i,o)&&(r=et[o][a],a=et[o].length,o=0);if(i+=r.length-1,r==="")throw new xe.Exception("Can't understand after "+e.slice(i));t.push($n[Qp(r,$n)])}return t}var F3={value:xe.math.changeSign,type:0,pre:21,show:"-"},ii={value:")",show:")",type:5,pre:0},$o={value:"(",type:4,pre:0,show:"("};xe.lex=function(e,t){var n=[$o],r=[],o=e,a=Gt,i=0,s=kt,l="",c;typeof t<"u"&&xe.addToken(t);var f={},d=L3(o);for(c=0;c<d.length;c++){var h=d[c];if(h.type===14){if(c>0&&c<d.length-1&&d[c+1].type===1&&(d[c-1].type===1||d[c-1].type===6))throw new xe.Exception("Unexpected Space");continue}var g=h.token,p=h.type,m=h.value,x=h.precedence,b=h.show,v=n[n.length-1],w;for(w=r.length;w--&&r[w]===0;)if([0,2,3,4,5,9,11,12,13].indexOf(p)!==-1){if(a[p]!==!0)throw new xe.Exception(g+" is not allowed after "+l);n.push(ii),a=Nr,s=xo,r.pop()}if(a[p]!==!0)throw new xe.Exception(g+" is not allowed after "+l);if(s[p]===!0&&(p=2,m=xe.math.mul,b="&times;",x=3,c=c-1),f={value:m,type:p,pre:x,show:b,numberOfArguments:h.numberOfArguments},p===0)a=Gt,s=kt,Re(r,2),n.push(f),d[c+1].type!==4&&(n.push($o),r.push(2));else if(p===1)v.type===1?(v.value+=m,Re(r,1)):n.push(f),a=Nr,s=D3;else if(p===2)a=Gt,s=kt,Re(r,2),n.push(f);else if(p===3)n.push(f),a=Nr,s=xo;else if(p===4)Re(r,1),i++,a=Gt,s=kt,n.push(f);else if(p===5){if(!i)throw new xe.Exception("Closing parenthesis are more than opening one, wait What!!!");i--,a=Nr,s=xo,n.push(f),Re(r,1)}else if(p===6){if(v.hasDec)throw new xe.Exception("Two decimals are not allowed in one number");v.type!==1&&(v={value:0,type:1,pre:0},n.push(v)),a=A3,Re(r,1),s=kt,v.value+=m,v.hasDec=!0}else p===7&&(a=Nr,s=xo,Re(r,1),n.push(f));p===8?(a=Gt,s=kt,Re(r,h.numberOfArguments+2),n.push(f),d[c+1].type!==4&&(n.push($o),r.push(h.numberOfArguments+2))):p===9?(v.type===9?v.value===xe.math.add?(v.value=m,v.show=b,Re(r,1)):v.value===xe.math.sub&&b==="-"&&(v.value=xe.math.add,v.show="+",Re(r,1)):v.type!==5&&v.type!==7&&v.type!==1&&v.type!==3&&v.type!==13?g==="-"&&(a=Gt,s=kt,Re(r,2).push(2),n.push(F3),n.push($o)):(n.push(f),Re(r,2)),a=Gt,s=kt):p===10?(a=Gt,s=kt,Re(r,2),n.push(f)):p===11?(a=Gt,s=kt,n.push(f)):p===12?(a=Gt,s=kt,Re(r,6),n.push(f),d[c+1].type!==4&&(n.push($o),r.push(6))):p===13&&(a=Nr,s=xo,n.push(f)),Re(r,-1),l=g}for(w=r.length;w--;)n.push(ii);if(a[5]!==!0)throw new xe.Exception("complete the expression");for(;i--;)n.push(ii);return n.push(ii),new xe(n)};var j3=xe,El=j3;El.prototype.toPostfix=function(){for(var e=[],t,n,r,o,a,i=[{value:"(",type:4,pre:0}],s=this.value,l=1;l<s.length;l++)if(s[l].type===1||s[l].type===3||s[l].type===13)s[l].type===1&&(s[l].value=Number(s[l].value)),e.push(s[l]);else if(s[l].type===4)i.push(s[l]);else if(s[l].type===5)for(;(n=i.pop()).type!==4;)e.push(n);else if(s[l].type===11){for(;(n=i.pop()).type!==4;)e.push(n);i.push(n)}else{t=s[l],o=t.pre,a=i[i.length-1],r=a.pre;var c=a.value=="Math.pow"&&t.value=="Math.pow";if(o>r)i.push(t);else{for(;r>=o&&!c||c&&o<r;)n=i.pop(),a=i[i.length-1],e.push(n),r=a.pre,c=t.value=="Math.pow"&&a.value=="Math.pow";i.push(t)}}return new El(e)};var z3=El,So=z3;So.prototype.postfixEval=function(e){e=e||{},e.PI=Math.PI,e.E=Math.E;for(var t=[],n,r,o,a=this.value,i=typeof e.n<"u",s=0;s<a.length;s++)if(a[s].type===1)t.push({value:a[s].value,type:1});else if(a[s].type===3)t.push({value:e[a[s].value],type:1});else if(a[s].type===0)typeof t[t.length-1].type>"u"?t[t.length-1].value.push(a[s]):t[t.length-1].value=a[s].value(t[t.length-1].value);else if(a[s].type===7)typeof t[t.length-1].type>"u"?t[t.length-1].value.push(a[s]):t[t.length-1].value=a[s].value(t[t.length-1].value);else if(a[s].type===8){for(var l=[],c=0;c<a[s].numberOfArguments;c++)l.push(t.pop().value);t.push({type:1,value:a[s].value.apply(a[s],l.reverse())})}else a[s].type===10?(n=t.pop(),r=t.pop(),typeof r.type>"u"?(r.value=r.concat(n),r.value.push(a[s]),t.push(r)):typeof n.type>"u"?(n.unshift(r),n.push(a[s]),t.push(n)):t.push({type:1,value:a[s].value(r.value,n.value)})):a[s].type===2||a[s].type===9?(n=t.pop(),r=t.pop(),typeof r.type>"u"?(r=r.concat(n),r.push(a[s]),t.push(r)):typeof n.type>"u"?(n.unshift(r),n.push(a[s]),t.push(n)):t.push({type:1,value:a[s].value(r.value,n.value)})):a[s].type===12?(n=t.pop(),typeof n.type<"u"&&(n=[n]),r=t.pop(),o=t.pop(),t.push({type:1,value:a[s].value(o.value,r.value,new So(n))})):a[s].type===13&&(i?t.push({value:e[a[s].value],type:3}):t.push([a[s]]));if(t.length>1)throw new So.Exception("Uncaught Syntax error");return t[0].value>1e15?"Infinity":parseFloat(t[0].value.toFixed(15))},So.eval=function(e,t,n){return typeof t>"u"?this.lex(e).toPostfix().postfixEval():typeof n>"u"?typeof t.length<"u"?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t):this.lex(e,t).toPostfix().postfixEval(n)};var B3=So,Jp=B3;Jp.prototype.formulaEval=function(){for(var e,t,n,r=[],o=this.value,a=0;a<o.length;a++)o[a].type===1||o[a].type===3?r.push({value:o[a].type===3?o[a].show:o[a].value,type:1}):o[a].type===13?r.push({value:o[a].show,type:1}):o[a].type===0?r[r.length-1]={value:o[a].show+(o[a].show!="-"?"(":"")+r[r.length-1].value+(o[a].show!="-"?")":""),type:0}:o[a].type===7?r[r.length-1]={value:(r[r.length-1].type!=1?"(":"")+r[r.length-1].value+(r[r.length-1].type!=1?")":"")+o[a].show,type:7}:o[a].type===10?(e=r.pop(),t=r.pop(),o[a].show==="P"||o[a].show==="C"?r.push({value:"<sup>"+t.value+"</sup>"+o[a].show+"<sub>"+e.value+"</sub>",type:10}):r.push({value:(t.type!=1?"(":"")+t.value+(t.type!=1?")":"")+"<sup>"+e.value+"</sup>",type:1})):o[a].type===2||o[a].type===9?(e=r.pop(),t=r.pop(),r.push({value:(t.type!=1?"(":"")+t.value+(t.type!=1?")":"")+o[a].show+(e.type!=1?"(":"")+e.value+(e.type!=1?")":""),type:o[a].type})):o[a].type===12&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:o[a].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value};var W3=Jp,V3=T3,H3=k3,G3=W3,U3=100,Y3=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g,Tl,q3=K3;function K3(e,t){Tl=0,t=Math.pow(10,t===void 0?5:t),e=e.replace(/\n+/g," ");function n(o,a,i){if(Tl++>U3)throw Tl=0,new Error("Call stack overflow for "+i);if(o==="")throw new Error(a+"(): '"+i+"' must contain a non-whitespace string");o=r(o,i);var s=X3(o);if(s.length>1||o.indexOf("var(")>-1)return a+"("+o+")";var l=s[0]||"";l==="%"&&(o=o.replace(/\b[0-9\.]+%/g,function(d){return parseFloat(d.slice(0,-1))*.01}));var c=o.replace(new RegExp(l,"gi"),""),f;try{f=G3.eval(c)}catch{return a+"("+o+")"}return l==="%"&&(f*=100),(a.length||l==="%")&&(f=Math.round(f*t)/t),f+=l,f}function r(o,a){o=o.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var i="",s=o,l;l=Y3.exec(s);){l[0].index>0&&(i+=s.substring(0,l[0].index));var c=V3("(",")",s.substring([0].index));if(c.body==="")throw new Error("'"+o+"' must contain a non-whitespace string");var f=n(c.body,"",a);i+=c.pre+f,s=c.post}return i+s}return H3(e,/((?:\-[a-z]+\-)?calc)\(/,n)}function X3(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,o=r.exec(e);o;)!o||!o[1]||(n.indexOf(o[1].toLowerCase())===-1&&(t.push(o[1]),n.push(o[1].toLowerCase())),o=r.exec(e));return t}const Ml=pr(q3);var Z3=typeof io=="object"&&io&&io.Object===Object&&io,Q3=Z3,J3=Q3,R3=typeof self=="object"&&self&&self.Object===Object&&self,eE=J3||R3||Function("return this")(),si=eE,tE=si,nE=tE.Symbol,Rp=nE,em=Rp,tm=Object.prototype,rE=tm.hasOwnProperty,oE=tm.toString,Co=em?em.toStringTag:void 0;function aE(e){var t=rE.call(e,Co),n=e[Co];try{e[Co]=void 0;var r=!0}catch{}var o=oE.call(e);return r&&(t?e[Co]=n:delete e[Co]),o}var iE=aE,sE=Object.prototype,lE=sE.toString;function cE(e){return lE.call(e)}var uE=cE,nm=Rp,dE=iE,fE=uE,hE="[object Null]",pE="[object Undefined]",rm=nm?nm.toStringTag:void 0;function mE(e){return e==null?e===void 0?pE:hE:rm&&rm in Object(e)?dE(e):fE(e)}var om=mE;function gE(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var li=gE,vE=om,bE=li,yE="[object AsyncFunction]",wE="[object Function]",xE="[object GeneratorFunction]",$E="[object Proxy]";function SE(e){if(!bE(e))return!1;var t=vE(e);return t==wE||t==xE||t==yE||t==$E}var CE=SE,EE=si,TE=EE["__core-js_shared__"],ME=TE,Pl=ME,am=function(){var e=/[^.]+$/.exec(Pl&&Pl.keys&&Pl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function PE(e){return!!am&&am in e}var kE=PE,OE=Function.prototype,NE=OE.toString;function _E(e){if(e!=null){try{return NE.call(e)}catch{}try{return e+""}catch{}}return""}var DE=_E,AE=CE,IE=kE,LE=li,FE=DE,jE=/[\\^$.*+?()[\]{}|]/g,zE=/^\[object .+?Constructor\]$/,BE=Function.prototype,WE=Object.prototype,VE=BE.toString,HE=WE.hasOwnProperty,GE=RegExp("^"+VE.call(HE).replace(jE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function UE(e){if(!LE(e)||IE(e))return!1;var t=AE(e)?GE:zE;return t.test(FE(e))}var YE=UE;function qE(e,t){return e==null?void 0:e[t]}var KE=qE,XE=YE,ZE=KE;function QE(e,t){var n=ZE(e,t);return XE(n)?n:void 0}var im=QE,JE=im,RE=JE(Object,"create"),ci=RE,sm=ci;function e5(){this.__data__=sm?sm(null):{},this.size=0}var t5=e5;function n5(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var r5=n5,o5=ci,a5="__lodash_hash_undefined__",i5=Object.prototype,s5=i5.hasOwnProperty;function l5(e){var t=this.__data__;if(o5){var n=t[e];return n===a5?void 0:n}return s5.call(t,e)?t[e]:void 0}var c5=l5,u5=ci,d5=Object.prototype,f5=d5.hasOwnProperty;function h5(e){var t=this.__data__;return u5?t[e]!==void 0:f5.call(t,e)}var p5=h5,m5=ci,g5="__lodash_hash_undefined__";function v5(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=m5&&t===void 0?g5:t,this}var b5=v5,y5=t5,w5=r5,x5=c5,$5=p5,S5=b5;function _r(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_r.prototype.clear=y5,_r.prototype.delete=w5,_r.prototype.get=x5,_r.prototype.has=$5,_r.prototype.set=S5;var C5=_r;function E5(){this.__data__=[],this.size=0}var T5=E5;function M5(e,t){return e===t||e!==e&&t!==t}var P5=M5,k5=P5;function O5(e,t){for(var n=e.length;n--;)if(k5(e[n][0],t))return n;return-1}var ui=O5,N5=ui,_5=Array.prototype,D5=_5.splice;function A5(e){var t=this.__data__,n=N5(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():D5.call(t,n,1),--this.size,!0}var I5=A5,L5=ui;function F5(e){var t=this.__data__,n=L5(t,e);return n<0?void 0:t[n][1]}var j5=F5,z5=ui;function B5(e){return z5(this.__data__,e)>-1}var W5=B5,V5=ui;function H5(e,t){var n=this.__data__,r=V5(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var G5=H5,U5=T5,Y5=I5,q5=j5,K5=W5,X5=G5;function Dr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Dr.prototype.clear=U5,Dr.prototype.delete=Y5,Dr.prototype.get=q5,Dr.prototype.has=K5,Dr.prototype.set=X5;var Z5=Dr,Q5=im,J5=si,R5=Q5(J5,"Map"),e6=R5,lm=C5,t6=Z5,n6=e6;function r6(){this.size=0,this.__data__={hash:new lm,map:new(n6||t6),string:new lm}}var o6=r6;function a6(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var i6=a6,s6=i6;function l6(e,t){var n=e.__data__;return s6(t)?n[typeof t=="string"?"string":"hash"]:n.map}var di=l6,c6=di;function u6(e){var t=c6(this,e).delete(e);return this.size-=t?1:0,t}var d6=u6,f6=di;function h6(e){return f6(this,e).get(e)}var p6=h6,m6=di;function g6(e){return m6(this,e).has(e)}var v6=g6,b6=di;function y6(e,t){var n=b6(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var w6=y6,x6=o6,$6=d6,S6=p6,C6=v6,E6=w6;function Ar(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ar.prototype.clear=x6,Ar.prototype.delete=$6,Ar.prototype.get=S6,Ar.prototype.has=C6,Ar.prototype.set=E6;var T6=Ar,cm=T6,M6="Expected a function";function kl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(M6);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(kl.Cache||cm),n}kl.Cache=cm;var P6=kl;const k6=pr(P6);var um="__react_svg_text_measurement_id";function O6(e,t){try{var n=document.getElementById(um);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",n=document.createElementNS("http://www.w3.org/2000/svg","text"),n.setAttribute("id",um),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch{return null}}const dm=k6(O6,function(e,t){return e+"_"+JSON.stringify(t)});var N6=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function _6(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ol(e){return typeof e=="number"}function fm(e){return typeof e=="number"&&Number.isFinite(e)||typeof e=="string"}function D6(e){var t=e.verticalAnchor,n=t===void 0?"end":t,r=e.scaleToFit,o=r===void 0?!1:r,a=e.angle,i=e.width,s=e.lineHeight,l=s===void 0?"1em":s,c=e.capHeight,f=c===void 0?"0.71em":c,d=e.children,h=e.style,g=_6(e,N6),p=g.x,m=p===void 0?0:p,x=g.y,b=x===void 0?0:x,v=!fm(m)||!fm(b),w=u.useMemo(function(){var O=d==null?[]:d.toString().split(/(?:(?!\u00A0+)\s+)/);return{wordsWithWidth:O.map(function(F){return{word:F,wordWidth:dm(F,h)||0}}),spaceWidth:dm(" ",h)||0}},[d,h]),E=w.wordsWithWidth,S=w.spaceWidth,M=u.useMemo(function(){return v?[]:i||o?E.reduce(function(O,F){var j=F.word,H=F.wordWidth,G=O[O.length-1];if(G&&(i==null||o||(G.width||0)+H+S<i))G.words.push(j),G.width=G.width||0,G.width+=H+S;else{var L={words:[j],width:H};O.push(L)}return O},[]):[{words:d==null?[]:d.toString().split(/(?:(?!\u00A0+)\s+)/)}]},[v,i,o,d,E,S]),N=u.useMemo(function(){var O=v?"":Ml(n==="start"?"calc("+f+")":n==="middle"?"calc("+(M.length-1)/2+" * -"+l+" + ("+f+" / 2))":"calc("+(M.length-1)+" * -"+l+")");return O},[v,n,f,M.length,l]),T=u.useMemo(function(){var O=[];if(v)return"";if(Ol(m)&&Ol(b)&&Ol(i)&&o&&M.length>0){var F=M[0].width||1,j=o==="shrink-only"?Math.min(i/F,1):i/F,H=j,G=m-j*m,L=b-H*b;O.push("matrix("+j+", 0, 0, "+H+", "+G+", "+L+")")}return a&&O.push("rotate("+a+", "+m+", "+b+")"),O.length>0?O.join(" "):""},[v,m,b,i,o,M,a]);return{wordsByLines:M,startDy:N,transform:T}}var A6=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function Nl(){return Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nl.apply(this,arguments)}function I6(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var L6={overflow:"visible"};function _l(e){var t=e.dx,n=t===void 0?0:t,r=e.dy,o=r===void 0?0:r,a=e.textAnchor,i=a===void 0?"start":a,s=e.innerRef,l=e.innerTextRef;e.verticalAnchor,e.angle;var c=e.lineHeight,f=c===void 0?"1em":c;e.scaleToFit,e.capHeight,e.width;var d=I6(e,A6),h=d.x,g=h===void 0?0:h,p=d.fontSize,m=D6(e),x=m.wordsByLines,b=m.startDy,v=m.transform;return u.createElement("svg",{ref:s,x:n,y:o,fontSize:p,style:L6},x.length>0?u.createElement("text",Nl({ref:l,transform:v},d,{textAnchor:i}),x.map(function(w,E){return u.createElement("tspan",{key:E,x:g,dy:E===0?b:f},w.words.join(" "))})):null)}function Dl(e,t,n){var r,o,a,i,s;t==null&&(t=100);function l(){var f=Date.now()-i;f<t&&f>=0?r=setTimeout(l,t-f):(r=null,n||(s=e.apply(a,o),a=o=null))}var c=function(){a=this,o=arguments,i=Date.now();var f=n&&!r;return r||(r=setTimeout(l,t)),f&&(s=e.apply(a,o),a=o=null),s};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(s=e.apply(a,o),a=o=null,clearTimeout(r),r=null)},c}Dl.debounce=Dl;var F6=Dl;const hm=pr(F6);function j6(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:o}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e;const a=r||(typeof window>"u"?class{}:window.ResizeObserver);if(!a)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[i,s]=u.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),l=u.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:i}),c=t?typeof t=="number"?t:t.scroll:null,f=t?typeof t=="number"?t:t.resize:null,d=u.useRef(!1);u.useEffect(()=>(d.current=!0,()=>void(d.current=!1)));const[h,g,p]=u.useMemo(()=>{const v=()=>{if(!l.current.element)return;const{left:w,top:E,width:S,height:M,bottom:N,right:T,x:O,y:F}=l.current.element.getBoundingClientRect(),j={left:w,top:E,width:S,height:M,bottom:N,right:T,x:O,y:F};l.current.element instanceof HTMLElement&&o&&(j.height=l.current.element.offsetHeight,j.width=l.current.element.offsetWidth),Object.freeze(j),d.current&&!V6(l.current.lastBounds,j)&&s(l.current.lastBounds=j)};return[v,f?hm(v,f):v,c?hm(v,c):v]},[s,o,c,f]);function m(){l.current.scrollContainers&&(l.current.scrollContainers.forEach(v=>v.removeEventListener("scroll",p,!0)),l.current.scrollContainers=null),l.current.resizeObserver&&(l.current.resizeObserver.disconnect(),l.current.resizeObserver=null)}function x(){l.current.element&&(l.current.resizeObserver=new a(p),l.current.resizeObserver.observe(l.current.element),n&&l.current.scrollContainers&&l.current.scrollContainers.forEach(v=>v.addEventListener("scroll",p,{capture:!0,passive:!0})))}const b=v=>{!v||v===l.current.element||(m(),l.current.element=v,l.current.scrollContainers=pm(v),x())};return B6(p,!!n),z6(g),u.useEffect(()=>{m(),x()},[n,p,g]),u.useEffect(()=>m,[]),[b,i,h]}function z6(e){u.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function B6(e,t){u.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function pm(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:o}=window.getComputedStyle(e);return[n,r,o].some(a=>a==="auto"||a==="scroll")&&t.push(e),[...t,...pm(e.parentElement)]}const W6=["x","y","top","bottom","left","right","width","height"],V6=(e,t)=>W6.every(n=>e[n]===t[n]);var Sn=function(){function e(n){var r=n.x,o=r===void 0?0:r,a=n.y,i=a===void 0?0:a;this.x=0,this.y=0,this.x=o,this.y=i}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}();function H6(e,t){return new Sn({x:e.x+t.x,y:e.y+t.y})}function G6(e,t){return new Sn({x:e.x-t.x,y:e.y-t.y})}const mm=mr(Object.freeze(Object.defineProperty({__proto__:null,Point:Sn,subtractPoints:G6,sumPoints:H6},Symbol.toStringTag,{value:"Module"})));function U6(e){return!!e&&e instanceof Element}function Y6(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function q6(e){return!!e&&"createSVGPoint"in e}function K6(e){return!!e&&"getScreenCTM"in e}function X6(e){return!!e&&"changedTouches"in e}function Z6(e){return!!e&&"clientX"in e}function Q6(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}function Eo(){return Eo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eo.apply(this,arguments)}var Al={x:0,y:0};function J6(e){if(!e)return Eo({},Al);if(X6(e))return e.changedTouches.length>0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:Eo({},Al);if(Z6(e))return{x:e.clientX,y:e.clientY};var t=e==null?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:Eo({},Al)}function gm(e,t){if(!e||!t)return null;var n=J6(t),r=Y6(e)?e.ownerSVGElement:e,o=K6(r)?r.getScreenCTM():null;if(q6(r)&&o){var a=r.createSVGPoint();return a.x=n.x,a.y=n.y,a=a.matrixTransform(o.inverse()),new Sn({x:a.x,y:a.y})}var i=e.getBoundingClientRect();return new Sn({x:n.x-i.left-e.clientLeft,y:n.y-i.top-e.clientTop})}function R6(e,t){if(U6(e)&&t)return gm(e,t);if(Q6(e)){var n=e,r=n.target;if(r)return gm(r,n)}return null}function Cn(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function eT(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Il(e){let t,n,r;e.length!==2?(t=Cn,n=(s,l)=>Cn(e(s),l),r=(s,l)=>e(s)-l):(t=e===Cn||e===eT?e:tT,n=e,r=e);function o(s,l,c=0,f=s.length){if(c<f){if(t(l,l)!==0)return f;do{const d=c+f>>>1;n(s[d],l)<0?c=d+1:f=d}while(c<f)}return c}function a(s,l,c=0,f=s.length){if(c<f){if(t(l,l)!==0)return f;do{const d=c+f>>>1;n(s[d],l)<=0?c=d+1:f=d}while(c<f)}return c}function i(s,l,c=0,f=s.length){const d=o(s,l,c,f-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:o,center:i,right:a}}function tT(){return 0}function vm(e){return e===null?NaN:+e}function*nT(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const rT=Il(Cn).right;Il(vm).center;const Ir=rT;function oT(e,t){let n=0;if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(o=+o)>=o&&++n}return n}function fi(e,t){let n,r;if(t===void 0)for(const o of e)o!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)));else{let o=-1;for(let a of e)(a=t(a,++o,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}class bm extends Map{constructor(t,n=sT){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(ym(this,t))}has(t){return super.has(ym(this,t))}set(t,n){return super.set(aT(this,t),n)}delete(t){return super.delete(iT(this,t))}}function ym({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function aT({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function iT({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function sT(e){return e!==null&&typeof e=="object"?e.valueOf():e}function lT(e){return e}function cT(e=Cn){if(e===Cn)return wm;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function wm(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var uT=Array.prototype,dT=uT.slice;function Ll(e){return()=>e}const fT=Math.sqrt(50),hT=Math.sqrt(10),pT=Math.sqrt(2);function hi(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),a=r/Math.pow(10,o),i=a>=fT?10:a>=hT?5:a>=pT?2:1;let s,l,c;return o<0?(c=Math.pow(10,-o)/i,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*i,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?hi(e,t,n*2):[s,l,c]}function pi(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,a,i]=r?hi(t,e,n):hi(e,t,n);if(!(a>=o))return[];const s=a-o+1,l=new Array(s);if(r)if(i<0)for(let c=0;c<s;++c)l[c]=(a-c)/-i;else for(let c=0;c<s;++c)l[c]=(a-c)*i;else if(i<0)for(let c=0;c<s;++c)l[c]=(o+c)/-i;else for(let c=0;c<s;++c)l[c]=(o+c)*i;return l}function Lr(e,t,n){return t=+t,e=+e,n=+n,hi(e,t,n)[2]}function Fl(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?Lr(t,e,n):Lr(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function mT(e,t,n){let r;for(;;){const o=Lr(e,t,n);if(o===r||o===0||!isFinite(o))return[e,t];o>0?(e=Math.floor(e/o)*o,t=Math.ceil(t/o)*o):o<0&&(e=Math.ceil(e*o)/o,t=Math.floor(t*o)/o),r=o}}function gT(e){return Math.max(1,Math.ceil(Math.log(oT(e))/Math.LN2)+1)}function vT(){var e=lT,t=fi,n=gT;function r(o){Array.isArray(o)||(o=Array.from(o));var a,i=o.length,s,l,c=new Array(i);for(a=0;a<i;++a)c[a]=e(o[a],a,o);var f=t(c),d=f[0],h=f[1],g=n(c,d,h);if(!Array.isArray(g)){const w=h,E=+g;if(t===fi&&([d,h]=mT(d,h,E)),g=pi(d,h,E),g[0]<=d&&(l=Lr(d,h,E)),g[g.length-1]>=h)if(w>=h&&t===fi){const S=Lr(d,h,E);isFinite(S)&&(S>0?h=(Math.floor(h/S)+1)*S:S<0&&(h=(Math.ceil(h*-S)+1)/-S))}else g.pop()}for(var p=g.length,m=0,x=p;g[m]<=d;)++m;for(;g[x-1]>h;)--x;(m||x<p)&&(g=g.slice(m,x),p=x-m);var b=new Array(p+1),v;for(a=0;a<=p;++a)v=b[a]=[],v.x0=a>0?g[a-1]:d,v.x1=a<p?g[a]:h;if(isFinite(l)){if(l>0)for(a=0;a<i;++a)(s=c[a])!=null&&d<=s&&s<=h&&b[Math.min(p,Math.floor((s-d)/l))].push(o[a]);else if(l<0){for(a=0;a<i;++a)if((s=c[a])!=null&&d<=s&&s<=h){const w=Math.floor((d-s)*l);b[Math.min(p,w+(g[w]<=s))].push(o[a])}}}else for(a=0;a<i;++a)(s=c[a])!=null&&d<=s&&s<=h&&b[Ir(g,s,0,p)].push(o[a]);return b}return r.value=function(o){return arguments.length?(e=typeof o=="function"?o:Ll(o),r):e},r.domain=function(o){return arguments.length?(t=typeof o=="function"?o:Ll([o[0],o[1]]),r):t},r.thresholds=function(o){return arguments.length?(n=typeof o=="function"?o:Ll(Array.isArray(o)?dT.call(o):o),r):n},r}function jl(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}function xm(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}return n}function $m(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=o===void 0?wm:cT(o);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,f=Math.log(l),d=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*d*(l-d)/l)*(c-l/2<0?-1:1),g=Math.max(n,Math.floor(t-c*d/l+h)),p=Math.min(r,Math.floor(t+(l-c)*d/l+h));$m(e,t,g,p,o)}const a=e[t];let i=n,s=r;for(To(e,n,t),o(e[r],a)>0&&To(e,n,r);i<s;){for(To(e,i,s),++i,--s;o(e[i],a)<0;)++i;for(;o(e[s],a)>0;)--s}o(e[n],a)===0?To(e,n,s):(++s,To(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function To(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function bT(e,t,n){if(e=Float64Array.from(nT(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return xm(e);if(t>=1)return jl(e);var r,o=(r-1)*t,a=Math.floor(o),i=jl($m(e,a).subarray(0,a+1)),s=xm(e.subarray(a+1));return i+(s-i)*(o-a)}}function yT(e,t,n=vm){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,a=Math.floor(o),i=+n(e[a],a,e),s=+n(e[a+1],a+1,e);return i+(s-i)*(o-a)}}function wT(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(o);++r<o;)a[r]=e+r*n;return a}function $t(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function rn(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const zl=Symbol("implicit");function mi(){var e=new bm,t=[],n=[],r=zl;function o(a){let i=e.get(a);if(i===void 0){if(r!==zl)return r;e.set(a,i=t.push(a)-1)}return n[i%n.length]}return o.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new bm;for(const i of a)e.has(i)||e.set(i,t.push(i)-1);return o},o.range=function(a){return arguments.length?(n=Array.from(a),o):n.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.copy=function(){return mi(t,n).unknown(r)},$t.apply(o,arguments),o}function gi(){var e=mi().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,a,i,s=!1,l=0,c=0,f=.5;delete e.unknown;function d(){var h=t().length,g=o<r,p=g?o:r,m=g?r:o;a=(m-p)/Math.max(1,h-l+c*2),s&&(a=Math.floor(a)),p+=(m-p-a*(h-l))*f,i=a*(1-l),s&&(p=Math.round(p),i=Math.round(i));var x=wT(h).map(function(b){return p+a*b});return n(g?x.reverse():x)}return e.domain=function(h){return arguments.length?(t(h),d()):t()},e.range=function(h){return arguments.length?([r,o]=h,r=+r,o=+o,d()):[r,o]},e.rangeRound=function(h){return[r,o]=h,r=+r,o=+o,s=!0,d()},e.bandwidth=function(){return i},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,d()):s},e.padding=function(h){return arguments.length?(l=Math.min(1,c=+h),d()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),d()):l},e.paddingOuter=function(h){return arguments.length?(c=+h,d()):c},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),d()):f},e.copy=function(){return gi(t(),[r,o]).round(s).paddingInner(l).paddingOuter(c).align(f)},$t.apply(d(),arguments)}function Sm(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Sm(t())},e}function Cm(){return Sm(gi.apply(null,arguments).paddingInner(1))}function Fr(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Mo(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function En(){}var Kn=.7,jr=1/Kn,zr="\\s*([+-]?\\d+)\\s*",Po="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ut="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xT=/^#([0-9a-f]{3,8})$/,$T=new RegExp(`^rgb\\(${zr},${zr},${zr}\\)$`),ST=new RegExp(`^rgb\\(${Ut},${Ut},${Ut}\\)$`),CT=new RegExp(`^rgba\\(${zr},${zr},${zr},${Po}\\)$`),ET=new RegExp(`^rgba\\(${Ut},${Ut},${Ut},${Po}\\)$`),TT=new RegExp(`^hsl\\(${Po},${Ut},${Ut}\\)$`),MT=new RegExp(`^hsla\\(${Po},${Ut},${Ut},${Po}\\)$`),Em={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};Fr(En,ko,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Tm,formatHex:Tm,formatHex8:PT,formatHsl:kT,formatRgb:Mm,toString:Mm});function Tm(){return this.rgb().formatHex()}function PT(){return this.rgb().formatHex8()}function kT(){return _m(this).formatHsl()}function Mm(){return this.rgb().formatRgb()}function ko(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=xT.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Pm(t):n===3?new He(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?vi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?vi(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=$T.exec(e))?new He(t[1],t[2],t[3],1):(t=ST.exec(e))?new He(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=CT.exec(e))?vi(t[1],t[2],t[3],t[4]):(t=ET.exec(e))?vi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=TT.exec(e))?Nm(t[1],t[2]/100,t[3]/100,1):(t=MT.exec(e))?Nm(t[1],t[2]/100,t[3]/100,t[4]):Em.hasOwnProperty(e)?Pm(Em[e]):e==="transparent"?new He(NaN,NaN,NaN,0):null}function Pm(e){return new He(e>>16&255,e>>8&255,e&255,1)}function vi(e,t,n,r){return r<=0&&(e=t=n=NaN),new He(e,t,n,r)}function Bl(e){return e instanceof En||(e=ko(e)),e?(e=e.rgb(),new He(e.r,e.g,e.b,e.opacity)):new He}function bi(e,t,n,r){return arguments.length===1?Bl(e):new He(e,t,n,r??1)}function He(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Fr(He,bi,Mo(En,{brighter(e){return e=e==null?jr:Math.pow(jr,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Kn:Math.pow(Kn,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new He(Xn(this.r),Xn(this.g),Xn(this.b),yi(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:km,formatHex:km,formatHex8:OT,formatRgb:Om,toString:Om}));function km(){return`#${Zn(this.r)}${Zn(this.g)}${Zn(this.b)}`}function OT(){return`#${Zn(this.r)}${Zn(this.g)}${Zn(this.b)}${Zn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Om(){const e=yi(this.opacity);return`${e===1?"rgb(":"rgba("}${Xn(this.r)}, ${Xn(this.g)}, ${Xn(this.b)}${e===1?")":`, ${e})`}`}function yi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Xn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zn(e){return e=Xn(e),(e<16?"0":"")+e.toString(16)}function Nm(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ot(e,t,n,r)}function _m(e){if(e instanceof Ot)return new Ot(e.h,e.s,e.l,e.opacity);if(e instanceof En||(e=ko(e)),!e)return new Ot;if(e instanceof Ot)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,s=a-o,l=(a+o)/2;return s?(t===a?i=(n-r)/s+(n<r)*6:n===a?i=(r-t)/s+2:i=(t-n)/s+4,s/=l<.5?a+o:2-a-o,i*=60):s=l>0&&l<1?0:i,new Ot(i,s,l,e.opacity)}function Wl(e,t,n,r){return arguments.length===1?_m(e):new Ot(e,t,n,r??1)}function Ot(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Fr(Ot,Wl,Mo(En,{brighter(e){return e=e==null?jr:Math.pow(jr,e),new Ot(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Kn:Math.pow(Kn,e),new Ot(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new He(Vl(e>=240?e-240:e+120,o,r),Vl(e,o,r),Vl(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ot(Dm(this.h),wi(this.s),wi(this.l),yi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=yi(this.opacity);return`${e===1?"hsl(":"hsla("}${Dm(this.h)}, ${wi(this.s)*100}%, ${wi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Dm(e){return e=(e||0)%360,e<0?e+360:e}function wi(e){return Math.max(0,Math.min(1,e||0))}function Vl(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Am=Math.PI/180,Im=180/Math.PI,xi=18,Lm=.96422,Fm=1,jm=.82521,zm=4/29,Br=6/29,Bm=3*Br*Br,NT=Br*Br*Br;function Wm(e){if(e instanceof Yt)return new Yt(e.l,e.a,e.b,e.opacity);if(e instanceof on)return Vm(e);e instanceof He||(e=Bl(e));var t=ql(e.r),n=ql(e.g),r=ql(e.b),o=Gl((.2225045*t+.7168786*n+.0606169*r)/Fm),a,i;return t===n&&n===r?a=i=o:(a=Gl((.4360747*t+.3850649*n+.1430804*r)/Lm),i=Gl((.0139322*t+.0971045*n+.7141733*r)/jm)),new Yt(116*o-16,500*(a-o),200*(o-i),e.opacity)}function Hl(e,t,n,r){return arguments.length===1?Wm(e):new Yt(e,t,n,r??1)}function Yt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Fr(Yt,Hl,Mo(En,{brighter(e){return new Yt(this.l+xi*(e??1),this.a,this.b,this.opacity)},darker(e){return new Yt(this.l-xi*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Lm*Ul(t),e=Fm*Ul(e),n=jm*Ul(n),new He(Yl(3.1338561*t-1.6168667*e-.4906146*n),Yl(-.9787684*t+1.9161415*e+.033454*n),Yl(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function Gl(e){return e>NT?Math.pow(e,1/3):e/Bm+zm}function Ul(e){return e>Br?e*e*e:Bm*(e-zm)}function Yl(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ql(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function _T(e){if(e instanceof on)return new on(e.h,e.c,e.l,e.opacity);if(e instanceof Yt||(e=Wm(e)),e.a===0&&e.b===0)return new on(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Im;return new on(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Kl(e,t,n,r){return arguments.length===1?_T(e):new on(e,t,n,r??1)}function on(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Vm(e){if(isNaN(e.h))return new Yt(e.l,0,0,e.opacity);var t=e.h*Am;return new Yt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Fr(on,Kl,Mo(En,{brighter(e){return new on(this.h,this.c,this.l+xi*(e??1),this.opacity)},darker(e){return new on(this.h,this.c,this.l-xi*(e??1),this.opacity)},rgb(){return Vm(this).rgb()}}));var Hm=-.14861,Xl=1.78277,Zl=-.29227,$i=-.90649,Oo=1.97294,Gm=Oo*$i,Um=Oo*Xl,Ym=Xl*Zl-$i*Hm;function DT(e){if(e instanceof Qn)return new Qn(e.h,e.s,e.l,e.opacity);e instanceof He||(e=Bl(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Ym*r+Gm*t-Um*n)/(Ym+Gm-Um),a=r-o,i=(Oo*(n-o)-Zl*a)/$i,s=Math.sqrt(i*i+a*a)/(Oo*o*(1-o)),l=s?Math.atan2(i,a)*Im-120:NaN;return new Qn(l<0?l+360:l,s,o,e.opacity)}function Ql(e,t,n,r){return arguments.length===1?DT(e):new Qn(e,t,n,r??1)}function Qn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Fr(Qn,Ql,Mo(En,{brighter(e){return e=e==null?jr:Math.pow(jr,e),new Qn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Kn:Math.pow(Kn,e),new Qn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Am,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new He(255*(t+n*(Hm*r+Xl*o)),255*(t+n*(Zl*r+$i*o)),255*(t+n*(Oo*r)),this.opacity)}}));function qm(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}function Km(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,s=r<t-1?e[r+2]:2*a-o;return qm((n-r/t)*t,i,o,a,s)}}function Xm(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],a=e[r%t],i=e[(r+1)%t],s=e[(r+2)%t];return qm((n-r/t)*t,o,a,i,s)}}const Si=e=>()=>e;function Zm(e,t){return function(n){return e+n*t}}function AT(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Ci(e,t){var n=t-e;return n?Zm(e,n>180||n<-180?n-360*Math.round(n/360):n):Si(isNaN(e)?t:e)}function IT(e){return(e=+e)==1?Ge:function(t,n){return n-t?AT(t,n,e):Si(isNaN(t)?n:t)}}function Ge(e,t){var n=t-e;return n?Zm(e,n):Si(isNaN(e)?t:e)}const Ei=function e(t){var n=IT(t);function r(o,a){var i=n((o=bi(o)).r,(a=bi(a)).r),s=n(o.g,a.g),l=n(o.b,a.b),c=Ge(o.opacity,a.opacity);return function(f){return o.r=i(f),o.g=s(f),o.b=l(f),o.opacity=c(f),o+""}}return r.gamma=e,r}(1);function Qm(e){return function(t){var n=t.length,r=new Array(n),o=new Array(n),a=new Array(n),i,s;for(i=0;i<n;++i)s=bi(t[i]),r[i]=s.r||0,o[i]=s.g||0,a[i]=s.b||0;return r=e(r),o=e(o),a=e(a),s.opacity=1,function(l){return s.r=r(l),s.g=o(l),s.b=a(l),s+""}}}var LT=Qm(Km),FT=Qm(Xm);function Jl(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(a){for(o=0;o<n;++o)r[o]=e[o]*(1-a)+t[o]*a;return r}}function Jm(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function jT(e,t){return(Jm(t)?Jl:Rm)(e,t)}function Rm(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),a=new Array(n),i;for(i=0;i<r;++i)o[i]=Jn(e[i],t[i]);for(;i<n;++i)a[i]=t[i];return function(s){for(i=0;i<r;++i)a[i]=o[i](s);return a}}function e0(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Nt(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function t0(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=Jn(e[o],t[o]):r[o]=t[o];return function(a){for(o in n)r[o]=n[o](a);return r}}var Rl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ec=new RegExp(Rl.source,"g");function zT(e){return function(){return e}}function BT(e){return function(t){return e(t)+""}}function n0(e,t){var n=Rl.lastIndex=ec.lastIndex=0,r,o,a,i=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Rl.exec(e))&&(o=ec.exec(t));)(a=o.index)>n&&(a=t.slice(n,a),s[i]?s[i]+=a:s[++i]=a),(r=r[0])===(o=o[0])?s[i]?s[i]+=o:s[++i]=o:(s[++i]=null,l.push({i,x:Nt(r,o)})),n=ec.lastIndex;return n<t.length&&(a=t.slice(n),s[i]?s[i]+=a:s[++i]=a),s.length<2?l[0]?BT(l[0].x):zT(t):(t=l.length,function(c){for(var f=0,d;f<t;++f)s[(d=l[f]).i]=d.x(c);return s.join("")})}function Jn(e,t){var n=typeof t,r;return t==null||n==="boolean"?Si(t):(n==="number"?Nt:n==="string"?(r=ko(t))?(t=r,Ei):n0:t instanceof ko?Ei:t instanceof Date?e0:Jm(t)?Jl:Array.isArray(t)?Rm:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?t0:Nt)(e,t)}function WT(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}function VT(e,t){var n=Ci(+e,+t);return function(r){var o=n(r);return o-360*Math.floor(o/360)}}function No(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var r0=180/Math.PI,tc={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function o0(e,t,n,r,o,a){var i,s,l;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,i=-i),{translateX:o,translateY:a,rotate:Math.atan2(t,e)*r0,skewX:Math.atan(l)*r0,scaleX:i,scaleY:s}}var Ti;function HT(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?tc:o0(t.a,t.b,t.c,t.d,t.e,t.f)}function GT(e){return e==null||(Ti||(Ti=document.createElementNS("http://www.w3.org/2000/svg","g")),Ti.setAttribute("transform",e),!(e=Ti.transform.baseVal.consolidate()))?tc:(e=e.matrix,o0(e.a,e.b,e.c,e.d,e.e,e.f))}function a0(e,t,n,r){function o(c){return c.length?c.pop()+" ":""}function a(c,f,d,h,g,p){if(c!==d||f!==h){var m=g.push("translate(",null,t,null,n);p.push({i:m-4,x:Nt(c,d)},{i:m-2,x:Nt(f,h)})}else(d||h)&&g.push("translate("+d+t+h+n)}function i(c,f,d,h){c!==f?(c-f>180?f+=360:f-c>180&&(c+=360),h.push({i:d.push(o(d)+"rotate(",null,r)-2,x:Nt(c,f)})):f&&d.push(o(d)+"rotate("+f+r)}function s(c,f,d,h){c!==f?h.push({i:d.push(o(d)+"skewX(",null,r)-2,x:Nt(c,f)}):f&&d.push(o(d)+"skewX("+f+r)}function l(c,f,d,h,g,p){if(c!==d||f!==h){var m=g.push(o(g)+"scale(",null,",",null,")");p.push({i:m-4,x:Nt(c,d)},{i:m-2,x:Nt(f,h)})}else(d!==1||h!==1)&&g.push(o(g)+"scale("+d+","+h+")")}return function(c,f){var d=[],h=[];return c=e(c),f=e(f),a(c.translateX,c.translateY,f.translateX,f.translateY,d,h),i(c.rotate,f.rotate,d,h),s(c.skewX,f.skewX,d,h),l(c.scaleX,c.scaleY,f.scaleX,f.scaleY,d,h),c=f=null,function(g){for(var p=-1,m=h.length,x;++p<m;)d[(x=h[p]).i]=x.x(g);return d.join("")}}}var UT=a0(HT,"px, ","px)","deg)"),YT=a0(GT,", ",")",")"),qT=1e-12;function i0(e){return((e=Math.exp(e))+1/e)/2}function KT(e){return((e=Math.exp(e))-1/e)/2}function XT(e){return((e=Math.exp(2*e))-1)/(e+1)}const ZT=function e(t,n,r){function o(a,i){var s=a[0],l=a[1],c=a[2],f=i[0],d=i[1],h=i[2],g=f-s,p=d-l,m=g*g+p*p,x,b;if(m<qT)b=Math.log(h/c)/t,x=function(N){return[s+N*g,l+N*p,c*Math.exp(t*N*b)]};else{var v=Math.sqrt(m),w=(h*h-c*c+r*m)/(2*c*n*v),E=(h*h-c*c-r*m)/(2*h*n*v),S=Math.log(Math.sqrt(w*w+1)-w),M=Math.log(Math.sqrt(E*E+1)-E);b=(M-S)/t,x=function(N){var T=N*b,O=i0(S),F=c/(n*v)*(O*XT(t*T+S)-KT(S));return[s+F*g,l+F*p,c*O/i0(t*T+S)]}}return x.duration=b*1e3*t/Math.SQRT2,x}return o.rho=function(a){var i=Math.max(.001,+a),s=i*i,l=s*s;return e(i,s,l)},o}(Math.SQRT2,2,4);function s0(e){return function(t,n){var r=e((t=Wl(t)).h,(n=Wl(n)).h),o=Ge(t.s,n.s),a=Ge(t.l,n.l),i=Ge(t.opacity,n.opacity);return function(s){return t.h=r(s),t.s=o(s),t.l=a(s),t.opacity=i(s),t+""}}}const l0=s0(Ci);var c0=s0(Ge);function u0(e,t){var n=Ge((e=Hl(e)).l,(t=Hl(t)).l),r=Ge(e.a,t.a),o=Ge(e.b,t.b),a=Ge(e.opacity,t.opacity);return function(i){return e.l=n(i),e.a=r(i),e.b=o(i),e.opacity=a(i),e+""}}function d0(e){return function(t,n){var r=e((t=Kl(t)).h,(n=Kl(n)).h),o=Ge(t.c,n.c),a=Ge(t.l,n.l),i=Ge(t.opacity,n.opacity);return function(s){return t.h=r(s),t.c=o(s),t.l=a(s),t.opacity=i(s),t+""}}}const f0=d0(Ci);var h0=d0(Ge);function p0(e){return function t(n){n=+n;function r(o,a){var i=e((o=Ql(o)).h,(a=Ql(a)).h),s=Ge(o.s,a.s),l=Ge(o.l,a.l),c=Ge(o.opacity,a.opacity);return function(f){return o.h=i(f),o.s=s(f),o.l=l(Math.pow(f,n)),o.opacity=c(f),o+""}}return r.gamma=t,r}(1)}const m0=p0(Ci);var g0=p0(Ge);function v0(e,t){t===void 0&&(t=e,e=Jn);for(var n=0,r=t.length-1,o=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(o,o=t[++n]);return function(i){var s=Math.max(0,Math.min(r-1,Math.floor(i*=r)));return a[s](i-s)}}function QT(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}function JT(e){return function(){return e}}function Mi(e){return+e}var b0=[0,1];function tt(e){return e}function nc(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:JT(isNaN(t)?NaN:.5)}function RT(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function eM(e,t,n){var r=e[0],o=e[1],a=t[0],i=t[1];return o<r?(r=nc(o,r),a=n(i,a)):(r=nc(r,o),a=n(a,i)),function(s){return a(r(s))}}function tM(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),a=new Array(r),i=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<r;)o[i]=nc(e[i],e[i+1]),a[i]=n(t[i],t[i+1]);return function(s){var l=Ir(e,s,1,r)-1;return a[l](o[l](s))}}function _o(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Pi(){var e=b0,t=b0,n=Jn,r,o,a,i=tt,s,l,c;function f(){var h=Math.min(e.length,t.length);return i!==tt&&(i=RT(e[0],e[h-1])),s=h>2?tM:eM,l=c=null,d}function d(h){return h==null||isNaN(h=+h)?a:(l||(l=s(e.map(r),t,n)))(r(i(h)))}return d.invert=function(h){return i(o((c||(c=s(t,e.map(r),Nt)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,Mi),f()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=No,f()},d.clamp=function(h){return arguments.length?(i=h?!0:tt,f()):i!==tt},d.interpolate=function(h){return arguments.length?(n=h,f()):n},d.unknown=function(h){return arguments.length?(a=h,d):a},function(h,g){return r=h,o=g,f()}}function rc(){return Pi()(tt,tt)}function nM(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ki(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Wr(e){return e=ki(Math.abs(e)),e?e[1]:NaN}function rM(e,t){return function(n,r){for(var o=n.length,a=[],i=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[i=(i+1)%e.length];return a.reverse().join(t)}}function oM(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var aM=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Do(e){if(!(t=aM.exec(e)))throw new Error("invalid format: "+e);var t;return new oc({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Do.prototype=oc.prototype;function oc(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}oc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function iM(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var y0;function sM(e,t){var n=ki(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(y0=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+ki(e,Math.max(0,t+a-1))[0]}function w0(e,t){var n=ki(e,t);if(!n)return e+"";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")}const x0={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:nM,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>w0(e*100,t),r:w0,s:sM,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function $0(e){return e}var S0=Array.prototype.map,C0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function lM(e){var t=e.grouping===void 0||e.thousands===void 0?$0:rM(S0.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?$0:oM(S0.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=Do(d);var h=d.fill,g=d.align,p=d.sign,m=d.symbol,x=d.zero,b=d.width,v=d.comma,w=d.precision,E=d.trim,S=d.type;S==="n"?(v=!0,S="g"):x0[S]||(w===void 0&&(w=12),E=!0,S="g"),(x||h==="0"&&g==="=")&&(x=!0,h="0",g="=");var M=m==="$"?n:m==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",N=m==="$"?r:/[%p]/.test(S)?i:"",T=x0[S],O=/[defgprs%]/.test(S);w=w===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function F(j){var H=M,G=N,L,C,_;if(S==="c")G=T(j)+G,j="";else{j=+j;var B=j<0||1/j<0;if(j=isNaN(j)?l:T(Math.abs(j),w),E&&(j=iM(j)),B&&+j==0&&p!=="+"&&(B=!1),H=(B?p==="("?p:s:p==="-"||p==="("?"":p)+H,G=(S==="s"?C0[8+y0/3]:"")+G+(B&&p==="("?")":""),O){for(L=-1,C=j.length;++L<C;)if(_=j.charCodeAt(L),48>_||_>57){G=(_===46?o+j.slice(L+1):j.slice(L))+G,j=j.slice(0,L);break}}}v&&!x&&(j=t(j,1/0));var V=H.length+j.length+G.length,D=V<b?new Array(b-V+1).join(h):"";switch(v&&x&&(j=t(D+j,D.length?b-G.length:1/0),D=""),g){case"<":j=H+j+G+D;break;case"=":j=H+D+j+G;break;case"^":j=D.slice(0,V=D.length>>1)+H+j+G+D.slice(V);break;default:j=D+H+j+G;break}return a(j)}return F.toString=function(){return d+""},F}function f(d,h){var g=c((d=Do(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(Wr(h)/3)))*3,m=Math.pow(10,-p),x=C0[8+p/3];return function(b){return g(m*b)+x}}return{format:c,formatPrefix:f}}var Oi,Ni,E0;cM({thousands:",",grouping:[3],currency:["$",""]});function cM(e){return Oi=lM(e),Ni=Oi.format,E0=Oi.formatPrefix,Oi}function uM(e){return Math.max(0,-Wr(Math.abs(e)))}function dM(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Wr(t)/3)))*3-Wr(Math.abs(e)))}function fM(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Wr(t)-Wr(e))+1}function T0(e,t,n,r){var o=Fl(e,t,n),a;switch(r=Do(r??",f"),r.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=dM(o,i))&&(r.precision=a),E0(r,i)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=fM(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=uM(o))&&(r.precision=a-(r.type==="%")*2);break}}return Ni(r)}function Tn(e){var t=e.domain;return e.ticks=function(n){var r=t();return pi(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return T0(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,a=r.length-1,i=r[o],s=r[a],l,c,f=10;for(s<i&&(c=i,i=s,s=c,c=o,o=a,a=c);f-- >0;){if(c=Lr(i,s,n),c===l)return r[o]=i,r[a]=s,t(r);if(c>0)i=Math.floor(i/c)*c,s=Math.ceil(s/c)*c;else if(c<0)i=Math.ceil(i*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function ac(){var e=rc();return e.copy=function(){return _o(e,ac())},$t.apply(e,arguments),Tn(e)}function M0(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Mi),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return M0(e).unknown(t)},e=arguments.length?Array.from(e,Mi):[0,1],Tn(n)}function P0(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],a=e[r],i;return a<o&&(i=n,n=r,r=i,i=o,o=a,a=i),e[n]=t.floor(o),e[r]=t.ceil(a),e}function k0(e){return Math.log(e)}function O0(e){return Math.exp(e)}function hM(e){return-Math.log(-e)}function pM(e){return-Math.exp(-e)}function mM(e){return isFinite(e)?+("1e"+e):e<0?0:e}function gM(e){return e===10?mM:e===Math.E?Math.exp:t=>Math.pow(e,t)}function vM(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function N0(e){return(t,n)=>-e(-t,n)}function ic(e){const t=e(k0,O0),n=t.domain;let r=10,o,a;function i(){return o=vM(r),a=gM(r),n()[0]<0?(o=N0(o),a=N0(a),e(hM,pM)):e(k0,O0),t}return t.base=function(s){return arguments.length?(r=+s,i()):r},t.domain=function(s){return arguments.length?(n(s),i()):n()},t.ticks=s=>{const l=n();let c=l[0],f=l[l.length-1];const d=f<c;d&&([c,f]=[f,c]);let h=o(c),g=o(f),p,m;const x=s==null?10:+s;let b=[];if(!(r%1)&&g-h<x){if(h=Math.floor(h),g=Math.ceil(g),c>0){for(;h<=g;++h)for(p=1;p<r;++p)if(m=h<0?p/a(-h):p*a(h),!(m<c)){if(m>f)break;b.push(m)}}else for(;h<=g;++h)for(p=r-1;p>=1;--p)if(m=h>0?p/a(-h):p*a(h),!(m<c)){if(m>f)break;b.push(m)}b.length*2<x&&(b=pi(c,f,x))}else b=pi(h,g,Math.min(g-h,x)).map(a);return d?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Do(l)).precision==null&&(l.trim=!0),l=Ni(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return f=>{let d=f/a(Math.round(o(f)));return d*r<r-.5&&(d*=r),d<=c?l(f):""}},t.nice=()=>n(P0(n(),{floor:s=>a(Math.floor(o(s))),ceil:s=>a(Math.ceil(o(s)))})),t}function sc(){const e=ic(Pi()).domain([1,10]);return e.copy=()=>_o(e,sc()).base(e.base()),$t.apply(e,arguments),e}function _0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function D0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function lc(e){var t=1,n=e(_0(t),D0(t));return n.constant=function(r){return arguments.length?e(_0(t=+r),D0(t)):t},Tn(n)}function cc(){var e=lc(Pi());return e.copy=function(){return _o(e,cc()).constant(e.constant())},$t.apply(e,arguments)}function A0(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function bM(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function yM(e){return e<0?-e*e:e*e}function uc(e){var t=e(tt,tt),n=1;function r(){return n===1?e(tt,tt):n===.5?e(bM,yM):e(A0(n),A0(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},Tn(t)}function _i(){var e=uc(Pi());return e.copy=function(){return _o(e,_i()).exponent(e.exponent())},$t.apply(e,arguments),e}function I0(){return _i.apply(null,arguments).exponent(.5)}function L0(e){return Math.sign(e)*e*e}function wM(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function dc(){var e=rc(),t=[0,1],n=!1,r;function o(a){var i=wM(e(a));return isNaN(i)?r:n?Math.round(i):i}return o.invert=function(a){return e.invert(L0(a))},o.domain=function(a){return arguments.length?(e.domain(a),o):e.domain()},o.range=function(a){return arguments.length?(e.range((t=Array.from(a,Mi)).map(L0)),o):t.slice()},o.rangeRound=function(a){return o.range(a).round(!0)},o.round=function(a){return arguments.length?(n=!!a,o):n},o.clamp=function(a){return arguments.length?(e.clamp(a),o):e.clamp()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.copy=function(){return dc(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},$t.apply(o,arguments),Tn(o)}function fc(){var e=[],t=[],n=[],r;function o(){var i=0,s=Math.max(1,t.length);for(n=new Array(s-1);++i<s;)n[i-1]=yT(e,i/s);return a}function a(i){return i==null||isNaN(i=+i)?r:t[Ir(n,i)]}return a.invertExtent=function(i){var s=t.indexOf(i);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},a.domain=function(i){if(!arguments.length)return e.slice();e=[];for(let s of i)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Cn),o()},a.range=function(i){return arguments.length?(t=Array.from(i),o()):t.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return fc().domain(e).range(t).unknown(r)},$t.apply(a,arguments)}function hc(){var e=0,t=1,n=1,r=[.5],o=[0,1],a;function i(l){return l!=null&&l<=l?o[Ir(r,l,0,n)]:a}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return i}return i.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},i.range=function(l){return arguments.length?(n=(o=Array.from(l)).length-1,s()):o.slice()},i.invertExtent=function(l){var c=o.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},i.unknown=function(l){return arguments.length&&(a=l),i},i.thresholds=function(){return r.slice()},i.copy=function(){return hc().domain([e,t]).range(o).unknown(a)},$t.apply(Tn(i),arguments)}function pc(){var e=[.5],t=[0,1],n,r=1;function o(a){return a!=null&&a<=a?t[Ir(e,a,0,r)]:n}return o.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(a){var i=t.indexOf(a);return[e[i-1],e[i]]},o.unknown=function(a){return arguments.length?(n=a,o):n},o.copy=function(){return pc().domain(e).range(t).unknown(n)},$t.apply(o,arguments)}const mc=new Date,gc=new Date;function We(e,t,n,r){function o(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return o.floor=a=>(e(a=new Date(+a)),a),o.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),o.round=a=>{const i=o(a),s=o.ceil(a);return a-i<s-a?i:s},o.offset=(a,i)=>(t(a=new Date(+a),i==null?1:Math.floor(i)),a),o.range=(a,i,s)=>{const l=[];if(a=o.ceil(a),s=s==null?1:Math.floor(s),!(a<i)||!(s>0))return l;let c;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<i);return l},o.filter=a=>We(i=>{if(i>=i)for(;e(i),!a(i);)i.setTime(i-1)},(i,s)=>{if(i>=i)if(s<0)for(;++s<=0;)for(;t(i,-1),!a(i););else for(;--s>=0;)for(;t(i,1),!a(i););}),n&&(o.count=(a,i)=>(mc.setTime(+a),gc.setTime(+i),e(mc),e(gc),Math.floor(n(mc,gc))),o.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?o.filter(r?i=>r(i)%a===0:i=>o.count(0,i)%a===0):o)),o}const Vr=We(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Vr.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?We(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Vr);const F0=Vr.range,an=1e3,St=an*60,sn=St*60,ln=sn*24,vc=ln*7,j0=ln*30,bc=ln*365,_t=We(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*an)},(e,t)=>(t-e)/an,e=>e.getUTCSeconds()),z0=_t.range,Ao=We(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*an)},(e,t)=>{e.setTime(+e+t*St)},(e,t)=>(t-e)/St,e=>e.getMinutes()),xM=Ao.range,Io=We(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*St)},(e,t)=>(t-e)/St,e=>e.getUTCMinutes()),$M=Io.range,Lo=We(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*an-e.getMinutes()*St)},(e,t)=>{e.setTime(+e+t*sn)},(e,t)=>(t-e)/sn,e=>e.getHours()),SM=Lo.range,Fo=We(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*sn)},(e,t)=>(t-e)/sn,e=>e.getUTCHours()),CM=Fo.range,Rn=We(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*St)/ln,e=>e.getDate()-1),EM=Rn.range,Hr=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ln,e=>e.getUTCDate()-1),TM=Hr.range,yc=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ln,e=>Math.floor(e/ln)),MM=yc.range;function er(e){return We(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*St)/vc)}const tr=er(0),jo=er(1),B0=er(2),W0=er(3),nr=er(4),V0=er(5),H0=er(6),G0=tr.range,PM=jo.range,kM=B0.range,OM=W0.range,NM=nr.range,_M=V0.range,DM=H0.range;function rr(e){return We(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/vc)}const or=rr(0),zo=rr(1),U0=rr(2),Y0=rr(3),ar=rr(4),q0=rr(5),K0=rr(6),X0=or.range,AM=zo.range,IM=U0.range,LM=Y0.range,FM=ar.range,jM=q0.range,zM=K0.range,Bo=We(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),BM=Bo.range,Wo=We(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),WM=Wo.range,Dt=We(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Dt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:We(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});const VM=Dt.range,At=We(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());At.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:We(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});const HM=At.range;function Z0(e,t,n,r,o,a){const i=[[_t,1,an],[_t,5,5*an],[_t,15,15*an],[_t,30,30*an],[a,1,St],[a,5,5*St],[a,15,15*St],[a,30,30*St],[o,1,sn],[o,3,3*sn],[o,6,6*sn],[o,12,12*sn],[r,1,ln],[r,2,2*ln],[n,1,vc],[t,1,j0],[t,3,3*j0],[e,1,bc]];function s(c,f,d){const h=f<c;h&&([c,f]=[f,c]);const g=d&&typeof d.range=="function"?d:l(c,f,d),p=g?g.range(c,+f+1):[];return h?p.reverse():p}function l(c,f,d){const h=Math.abs(f-c)/d,g=Il(([,,x])=>x).right(i,h);if(g===i.length)return e.every(Fl(c/bc,f/bc,d));if(g===0)return Vr.every(Math.max(Fl(c,f,d),1));const[p,m]=i[h/i[g-1][2]<i[g][2]/h?g-1:g];return p.every(m)}return[s,l]}const[Q0,J0]=Z0(At,Wo,or,yc,Fo,Io),[R0,eg]=Z0(Dt,Bo,tr,Rn,Lo,Ao);function wc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function xc(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Vo(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function GM(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,s=e.months,l=e.shortMonths,c=Ho(o),f=Go(o),d=Ho(a),h=Go(a),g=Ho(i),p=Go(i),m=Ho(s),x=Go(s),b=Ho(l),v=Go(l),w={a:B,A:V,b:D,B:A,c:null,d:ig,e:ig,f:h7,g:S7,G:E7,H:u7,I:d7,j:f7,L:sg,m:p7,M:m7,p:W,q:ne,Q:hg,s:pg,S:g7,u:v7,U:b7,V:y7,w:w7,W:x7,x:null,X:null,y:$7,Y:C7,Z:T7,"%":fg},E={a:Q,A:re,b:oe,B:ue,c:null,d:cg,e:cg,f:O7,g:B7,G:V7,H:M7,I:P7,j:k7,L:ug,m:N7,M:_7,p:X,q:le,Q:hg,s:pg,S:D7,u:A7,U:I7,V:L7,w:F7,W:j7,x:null,X:null,y:z7,Y:W7,Z:H7,"%":fg},S={a:F,A:j,b:H,B:G,c:L,d:og,e:og,f:i7,g:rg,G:ng,H:ag,I:ag,j:n7,L:a7,m:t7,M:r7,p:O,q:e7,Q:l7,s:c7,S:o7,u:XM,U:ZM,V:QM,w:KM,W:JM,x:C,X:_,y:rg,Y:ng,Z:RM,"%":s7};w.x=M(n,w),w.X=M(r,w),w.c=M(t,w),E.x=M(n,E),E.X=M(r,E),E.c=M(t,E);function M(U,Z){return function(ie){var k=[],te=-1,ae=0,me=U.length,ye,Ee,Ke;for(ie instanceof Date||(ie=new Date(+ie));++te<me;)U.charCodeAt(te)===37&&(k.push(U.slice(ae,te)),(Ee=tg[ye=U.charAt(++te)])!=null?ye=U.charAt(++te):Ee=ye==="e"?" ":"0",(Ke=Z[ye])&&(ye=Ke(ie,Ee)),k.push(ye),ae=te+1);return k.push(U.slice(ae,te)),k.join("")}}function N(U,Z){return function(ie){var k=Vo(1900,void 0,1),te=T(k,U,ie+="",0),ae,me;if(te!=ie.length)return null;if("Q"in k)return new Date(k.Q);if("s"in k)return new Date(k.s*1e3+("L"in k?k.L:0));if(Z&&!("Z"in k)&&(k.Z=0),"p"in k&&(k.H=k.H%12+k.p*12),k.m===void 0&&(k.m="q"in k?k.q:0),"V"in k){if(k.V<1||k.V>53)return null;"w"in k||(k.w=1),"Z"in k?(ae=xc(Vo(k.y,0,1)),me=ae.getUTCDay(),ae=me>4||me===0?zo.ceil(ae):zo(ae),ae=Hr.offset(ae,(k.V-1)*7),k.y=ae.getUTCFullYear(),k.m=ae.getUTCMonth(),k.d=ae.getUTCDate()+(k.w+6)%7):(ae=wc(Vo(k.y,0,1)),me=ae.getDay(),ae=me>4||me===0?jo.ceil(ae):jo(ae),ae=Rn.offset(ae,(k.V-1)*7),k.y=ae.getFullYear(),k.m=ae.getMonth(),k.d=ae.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),me="Z"in k?xc(Vo(k.y,0,1)).getUTCDay():wc(Vo(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(me+5)%7:k.w+k.U*7-(me+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,xc(k)):wc(k)}}function T(U,Z,ie,k){for(var te=0,ae=Z.length,me=ie.length,ye,Ee;te<ae;){if(k>=me)return-1;if(ye=Z.charCodeAt(te++),ye===37){if(ye=Z.charAt(te++),Ee=S[ye in tg?Z.charAt(te++):ye],!Ee||(k=Ee(U,ie,k))<0)return-1}else if(ye!=ie.charCodeAt(k++))return-1}return k}function O(U,Z,ie){var k=c.exec(Z.slice(ie));return k?(U.p=f.get(k[0].toLowerCase()),ie+k[0].length):-1}function F(U,Z,ie){var k=g.exec(Z.slice(ie));return k?(U.w=p.get(k[0].toLowerCase()),ie+k[0].length):-1}function j(U,Z,ie){var k=d.exec(Z.slice(ie));return k?(U.w=h.get(k[0].toLowerCase()),ie+k[0].length):-1}function H(U,Z,ie){var k=b.exec(Z.slice(ie));return k?(U.m=v.get(k[0].toLowerCase()),ie+k[0].length):-1}function G(U,Z,ie){var k=m.exec(Z.slice(ie));return k?(U.m=x.get(k[0].toLowerCase()),ie+k[0].length):-1}function L(U,Z,ie){return T(U,t,Z,ie)}function C(U,Z,ie){return T(U,n,Z,ie)}function _(U,Z,ie){return T(U,r,Z,ie)}function B(U){return i[U.getDay()]}function V(U){return a[U.getDay()]}function D(U){return l[U.getMonth()]}function A(U){return s[U.getMonth()]}function W(U){return o[+(U.getHours()>=12)]}function ne(U){return 1+~~(U.getMonth()/3)}function Q(U){return i[U.getUTCDay()]}function re(U){return a[U.getUTCDay()]}function oe(U){return l[U.getUTCMonth()]}function ue(U){return s[U.getUTCMonth()]}function X(U){return o[+(U.getUTCHours()>=12)]}function le(U){return 1+~~(U.getUTCMonth()/3)}return{format:function(U){var Z=M(U+="",w);return Z.toString=function(){return U},Z},parse:function(U){var Z=N(U+="",!1);return Z.toString=function(){return U},Z},utcFormat:function(U){var Z=M(U+="",E);return Z.toString=function(){return U},Z},utcParse:function(U){var Z=N(U+="",!0);return Z.toString=function(){return U},Z}}}var tg={"-":"",_:" ",0:"0"},Ue=/^\s*\d+/,UM=/^%/,YM=/[\\^$*+?|[\]().{}]/g;function Me(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a<n?new Array(n-a+1).join(t)+o:o)}function qM(e){return e.replace(YM,"\\$&")}function Ho(e){return new RegExp("^(?:"+e.map(qM).join("|")+")","i")}function Go(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function KM(e,t,n){var r=Ue.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function XM(e,t,n){var r=Ue.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ZM(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function QM(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function JM(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ng(e,t,n){var r=Ue.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function rg(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function RM(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function e7(e,t,n){var r=Ue.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function t7(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function og(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function n7(e,t,n){var r=Ue.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ag(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function r7(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function o7(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function a7(e,t,n){var r=Ue.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function i7(e,t,n){var r=Ue.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function s7(e,t,n){var r=UM.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function l7(e,t,n){var r=Ue.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function c7(e,t,n){var r=Ue.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ig(e,t){return Me(e.getDate(),t,2)}function u7(e,t){return Me(e.getHours(),t,2)}function d7(e,t){return Me(e.getHours()%12||12,t,2)}function f7(e,t){return Me(1+Rn.count(Dt(e),e),t,3)}function sg(e,t){return Me(e.getMilliseconds(),t,3)}function h7(e,t){return sg(e,t)+"000"}function p7(e,t){return Me(e.getMonth()+1,t,2)}function m7(e,t){return Me(e.getMinutes(),t,2)}function g7(e,t){return Me(e.getSeconds(),t,2)}function v7(e){var t=e.getDay();return t===0?7:t}function b7(e,t){return Me(tr.count(Dt(e)-1,e),t,2)}function lg(e){var t=e.getDay();return t>=4||t===0?nr(e):nr.ceil(e)}function y7(e,t){return e=lg(e),Me(nr.count(Dt(e),e)+(Dt(e).getDay()===4),t,2)}function w7(e){return e.getDay()}function x7(e,t){return Me(jo.count(Dt(e)-1,e),t,2)}function $7(e,t){return Me(e.getFullYear()%100,t,2)}function S7(e,t){return e=lg(e),Me(e.getFullYear()%100,t,2)}function C7(e,t){return Me(e.getFullYear()%1e4,t,4)}function E7(e,t){var n=e.getDay();return e=n>=4||n===0?nr(e):nr.ceil(e),Me(e.getFullYear()%1e4,t,4)}function T7(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Me(t/60|0,"0",2)+Me(t%60,"0",2)}function cg(e,t){return Me(e.getUTCDate(),t,2)}function M7(e,t){return Me(e.getUTCHours(),t,2)}function P7(e,t){return Me(e.getUTCHours()%12||12,t,2)}function k7(e,t){return Me(1+Hr.count(At(e),e),t,3)}function ug(e,t){return Me(e.getUTCMilliseconds(),t,3)}function O7(e,t){return ug(e,t)+"000"}function N7(e,t){return Me(e.getUTCMonth()+1,t,2)}function _7(e,t){return Me(e.getUTCMinutes(),t,2)}function D7(e,t){return Me(e.getUTCSeconds(),t,2)}function A7(e){var t=e.getUTCDay();return t===0?7:t}function I7(e,t){return Me(or.count(At(e)-1,e),t,2)}function dg(e){var t=e.getUTCDay();return t>=4||t===0?ar(e):ar.ceil(e)}function L7(e,t){return e=dg(e),Me(ar.count(At(e),e)+(At(e).getUTCDay()===4),t,2)}function F7(e){return e.getUTCDay()}function j7(e,t){return Me(zo.count(At(e)-1,e),t,2)}function z7(e,t){return Me(e.getUTCFullYear()%100,t,2)}function B7(e,t){return e=dg(e),Me(e.getUTCFullYear()%100,t,2)}function W7(e,t){return Me(e.getUTCFullYear()%1e4,t,4)}function V7(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ar(e):ar.ceil(e),Me(e.getUTCFullYear()%1e4,t,4)}function H7(){return"+0000"}function fg(){return"%"}function hg(e){return+e}function pg(e){return Math.floor(+e/1e3)}var Gr,mg,gg;G7({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"]});function G7(e){return Gr=GM(e),mg=Gr.format,Gr.parse,gg=Gr.utcFormat,Gr.utcParse,Gr}function U7(e){return new Date(e)}function Y7(e){return e instanceof Date?+e:+new Date(+e)}function $c(e,t,n,r,o,a,i,s,l,c){var f=rc(),d=f.invert,h=f.domain,g=c(".%L"),p=c(":%S"),m=c("%I:%M"),x=c("%I %p"),b=c("%a %d"),v=c("%b %d"),w=c("%B"),E=c("%Y");function S(M){return(l(M)<M?g:s(M)<M?p:i(M)<M?m:a(M)<M?x:r(M)<M?o(M)<M?b:v:n(M)<M?w:E)(M)}return f.invert=function(M){return new Date(d(M))},f.domain=function(M){return arguments.length?h(Array.from(M,Y7)):h().map(U7)},f.ticks=function(M){var N=h();return e(N[0],N[N.length-1],M??10)},f.tickFormat=function(M,N){return N==null?S:c(N)},f.nice=function(M){var N=h();return(!M||typeof M.range!="function")&&(M=t(N[0],N[N.length-1],M??10)),M?h(P0(N,M)):f},f.copy=function(){return _o(f,$c(e,t,n,r,o,a,i,s,l,c))},f}function vg(){return $t.apply($c(R0,eg,Dt,Bo,tr,Rn,Lo,Ao,_t,mg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function bg(){return $t.apply($c(Q0,J0,At,Wo,or,Hr,Fo,Io,_t,gg).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Di(){var e=0,t=1,n,r,o,a,i=tt,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:i(o===0?.5:(d=(a(d)-n)*o,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,n=a(e=+e),r=a(t=+t),o=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(i=d,c):i};function f(d){return function(h){var g,p;return arguments.length?([g,p]=h,i=d(g,p),c):[i(0),i(1)]}}return c.range=f(Jn),c.rangeRound=f(No),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return a=d,n=d(e),r=d(t),o=n===r?0:1/(r-n),c}}function Mn(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function yg(){var e=Tn(Di()(tt));return e.copy=function(){return Mn(e,yg())},rn.apply(e,arguments)}function wg(){var e=ic(Di()).domain([1,10]);return e.copy=function(){return Mn(e,wg()).base(e.base())},rn.apply(e,arguments)}function xg(){var e=lc(Di());return e.copy=function(){return Mn(e,xg()).constant(e.constant())},rn.apply(e,arguments)}function Sc(){var e=uc(Di());return e.copy=function(){return Mn(e,Sc()).exponent(e.exponent())},rn.apply(e,arguments)}function q7(){return Sc.apply(null,arguments).exponent(.5)}function $g(){var e=[],t=tt;function n(r){if(r!=null&&!isNaN(r=+r))return t((Ir(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let o of r)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Cn),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,o)=>t(o/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(o,a)=>bT(e,a/r))},n.copy=function(){return $g(t).domain(e)},rn.apply(n,arguments)}function Ai(){var e=0,t=.5,n=1,r=1,o,a,i,s,l,c=tt,f,d=!1,h;function g(m){return isNaN(m=+m)?h:(m=.5+((m=+f(m))-a)*(r*m<r*a?s:l),c(d?Math.max(0,Math.min(1,m)):m))}g.domain=function(m){return arguments.length?([e,t,n]=m,o=f(e=+e),a=f(t=+t),i=f(n=+n),s=o===a?0:.5/(a-o),l=a===i?0:.5/(i-a),r=a<o?-1:1,g):[e,t,n]},g.clamp=function(m){return arguments.length?(d=!!m,g):d},g.interpolator=function(m){return arguments.length?(c=m,g):c};function p(m){return function(x){var b,v,w;return arguments.length?([b,v,w]=x,c=v0(m,[b,v,w]),g):[c(0),c(.5),c(1)]}}return g.range=p(Jn),g.rangeRound=p(No),g.unknown=function(m){return arguments.length?(h=m,g):h},function(m){return f=m,o=m(e),a=m(t),i=m(n),s=o===a?0:.5/(a-o),l=a===i?0:.5/(i-a),r=a<o?-1:1,g}}function Sg(){var e=Tn(Ai()(tt));return e.copy=function(){return Mn(e,Sg())},rn.apply(e,arguments)}function Cg(){var e=ic(Ai()).domain([.1,1,10]);return e.copy=function(){return Mn(e,Cg()).base(e.base())},rn.apply(e,arguments)}function Eg(){var e=lc(Ai());return e.copy=function(){return Mn(e,Eg()).constant(e.constant())},rn.apply(e,arguments)}function Cc(){var e=uc(Ai());return e.copy=function(){return Mn(e,Cc()).exponent(e.exponent())},rn.apply(e,arguments)}function K7(){return Cc.apply(null,arguments).exponent(.5)}const X7=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:gi,scaleDiverging:Sg,scaleDivergingLog:Cg,scaleDivergingPow:Cc,scaleDivergingSqrt:K7,scaleDivergingSymlog:Eg,scaleIdentity:M0,scaleImplicit:zl,scaleLinear:ac,scaleLog:sc,scaleOrdinal:mi,scalePoint:Cm,scalePow:_i,scaleQuantile:fc,scaleQuantize:hc,scaleRadial:dc,scaleSequential:yg,scaleSequentialLog:wg,scaleSequentialPow:Sc,scaleSequentialQuantile:$g,scaleSequentialSqrt:q7,scaleSequentialSymlog:xg,scaleSqrt:I0,scaleSymlog:cc,scaleThreshold:pc,scaleTime:vg,scaleUtc:bg,tickFormat:T0},Symbol.toStringTag,{value:"Module"}));function Z7(e,t){t.domain&&("nice"in e||"quantiles"in e||"padding"in e,e.domain(t.domain))}function Q7(e,t){t.range&&("padding"in e,e.range(t.range))}function J7(e,t){"align"in e&&"align"in t&&typeof t.align<"u"&&e.align(t.align)}function R7(e,t){"base"in e&&"base"in t&&typeof t.base<"u"&&e.base(t.base)}function eP(e,t){"clamp"in e&&"clamp"in t&&typeof t.clamp<"u"&&e.clamp(t.clamp)}function tP(e,t){"constant"in e&&"constant"in t&&typeof t.constant<"u"&&e.constant(t.constant)}function nP(e,t){"exponent"in e&&"exponent"in t&&typeof t.exponent<"u"&&e.exponent(t.exponent)}const rP=Object.freeze(Object.defineProperty({__proto__:null,interpolate:Jn,interpolateArray:jT,interpolateBasis:Km,interpolateBasisClosed:Xm,interpolateCubehelix:m0,interpolateCubehelixLong:g0,interpolateDate:e0,interpolateDiscrete:WT,interpolateHcl:f0,interpolateHclLong:h0,interpolateHsl:l0,interpolateHslLong:c0,interpolateHue:VT,interpolateLab:u0,interpolateNumber:Nt,interpolateNumberArray:Jl,interpolateObject:t0,interpolateRgb:Ei,interpolateRgbBasis:LT,interpolateRgbBasisClosed:FT,interpolateRound:No,interpolateString:n0,interpolateTransformCss:UT,interpolateTransformSvg:YT,interpolateZoom:ZT,piecewise:v0,quantize:QT},Symbol.toStringTag,{value:"Module"}));var Tg={lab:u0,hcl:f0,"hcl-long":h0,hsl:l0,"hsl-long":c0,cubehelix:m0,"cubehelix-long":g0,rgb:Ei};function oP(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return Tg[e]}var t=e.type,n=e.gamma,r=Tg[t];return typeof n>"u"?r:r.gamma(n)}function aP(e,t){if("interpolate"in t&&"interpolate"in e&&typeof t.interpolate<"u"){var n=oP(t.interpolate);e.interpolate(n)}}const iP=Object.freeze(Object.defineProperty({__proto__:null,timeDay:Rn,timeDays:EM,timeFriday:V0,timeFridays:_M,timeHour:Lo,timeHours:SM,timeInterval:We,timeMillisecond:Vr,timeMilliseconds:F0,timeMinute:Ao,timeMinutes:xM,timeMonday:jo,timeMondays:PM,timeMonth:Bo,timeMonths:BM,timeSaturday:H0,timeSaturdays:DM,timeSecond:_t,timeSeconds:z0,timeSunday:tr,timeSundays:G0,timeThursday:nr,timeThursdays:NM,timeTickInterval:eg,timeTicks:R0,timeTuesday:B0,timeTuesdays:kM,timeWednesday:W0,timeWednesdays:OM,timeWeek:tr,timeWeeks:G0,timeYear:Dt,timeYears:VM,unixDay:yc,unixDays:MM,utcDay:Hr,utcDays:TM,utcFriday:q0,utcFridays:jM,utcHour:Fo,utcHours:CM,utcMillisecond:Vr,utcMilliseconds:F0,utcMinute:Io,utcMinutes:$M,utcMonday:zo,utcMondays:AM,utcMonth:Wo,utcMonths:WM,utcSaturday:K0,utcSaturdays:zM,utcSecond:_t,utcSeconds:z0,utcSunday:or,utcSundays:X0,utcThursday:ar,utcThursdays:FM,utcTickInterval:J0,utcTicks:Q0,utcTuesday:U0,utcTuesdays:IM,utcWednesday:Y0,utcWednesdays:LM,utcWeek:or,utcWeeks:X0,utcYear:At,utcYears:HM},Symbol.toStringTag,{value:"Module"}));var sP=new Date(Date.UTC(2020,1,2,3,4,5)),lP="%Y-%m-%d %H:%M";function Mg(e){var t=e.tickFormat(1,lP)(sP);return t==="2020-02-02 03:04"}var Pg={day:Rn,hour:Lo,minute:Ao,month:Bo,second:_t,week:tr,year:Dt},kg={day:Hr,hour:Fo,minute:Io,month:Wo,second:_t,week:or,year:At};function cP(e,t){if("nice"in t&&typeof t.nice<"u"&&"nice"in e){var n=t.nice;if(typeof n=="boolean")n&&e.nice();else if(typeof n=="number")e.nice(n);else{var r=e,o=Mg(r);if(typeof n=="string")r.nice(o?kg[n]:Pg[n]);else{var a=n.interval,i=n.step,s=(o?kg[a]:Pg[a]).every(i);s!=null&&r.nice(s)}}}}function uP(e,t){"padding"in e&&"padding"in t&&typeof t.padding<"u"&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&typeof t.paddingInner<"u"&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&typeof t.paddingOuter<"u"&&e.paddingOuter(t.paddingOuter)}function dP(e,t){if(t.reverse){var n=e.range().slice().reverse();"padding"in e,e.range(n)}}function fP(e,t){"round"in t&&typeof t.round<"u"&&(t.round&&"interpolate"in t&&typeof t.interpolate<"u"?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(No))}function hP(e,t){"unknown"in e&&"unknown"in t&&typeof t.unknown<"u"&&e.unknown(t.unknown)}function pP(e,t){if("zero"in t&&t.zero===!0){var n=e.domain(),r=n[0],o=n[1],a=o<r,i=a?[o,r]:[r,o],s=i[0],l=i[1],c=[Math.min(0,s),Math.max(0,l)];e.domain(a?c.reverse():c)}}var Og=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],mP={domain:Z7,nice:cP,zero:pP,interpolate:aP,round:fP,align:J7,base:R7,clamp:eP,constant:tP,exponent:nP,padding:uP,range:Q7,reverse:dP,unknown:hP};function nt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set(t),o=Og.filter(function(a){return r.has(a)});return function(i,s){return typeof s<"u"&&o.forEach(function(l){mP[l](i,s)}),i}}var gP=nt("domain","range","reverse","align","padding","round");function Ng(e){return gP(gi(),e)}var vP=nt("domain","range","reverse","align","padding","round");function _g(e){return vP(Cm(),e)}var bP=nt("domain","range","reverse","clamp","interpolate","nice","round","zero");function Uo(e){return bP(ac(),e)}var yP=nt("domain","range","clamp","nice","round","unknown");function wP(e){return yP(dc(),e)}var xP=nt("domain","range","reverse","clamp","interpolate","nice","round");function Dg(e){return xP(vg(),e)}var $P=nt("domain","range","reverse","clamp","interpolate","nice","round");function Ag(e){return $P(bg(),e)}var SP=nt("domain","range","reverse","base","clamp","interpolate","nice","round");function Ig(e){return SP(sc(),e)}var CP=nt("domain","range","reverse","clamp","exponent","interpolate","nice","round","zero");function Lg(e){return CP(_i(),e)}var EP=nt("domain","range","reverse","unknown");function Fg(e){return EP(mi(),e)}var TP=nt("domain","range","reverse","nice","zero");function jg(e){return TP(hc(),e)}var MP=nt("domain","range","reverse");function zg(e){return MP(fc(),e)}var PP=nt("domain","range","reverse","clamp","constant","nice","zero","round");function Bg(e){return PP(cc(),e)}var kP=nt("domain","range","reverse");function Wg(e){return kP(pc(),e)}var OP=nt("domain","range","reverse","clamp","interpolate","nice","round","zero");function Vg(e){return OP(I0(),e)}function Yo(e){if(typeof e<"u"&&"type"in e)switch(e.type){case"linear":return Uo(e);case"log":return Ig(e);case"pow":return Lg(e);case"sqrt":return Vg(e);case"symlog":return Bg(e);case"time":return Dg(e);case"utc":return Ag(e);case"quantile":return zg(e);case"quantize":return jg(e);case"threshold":return Wg(e);case"ordinal":return Fg(e);case"point":return _g(e);case"band":return Ng(e)}return Uo(e)}var NP=nt.apply(void 0,Og);function _P(e,t){return NP(e.copy(),t)}function DP(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?e.exponent()===.5?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?Mg(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}function Ec(e){if((typeof e=="function"||typeof e=="object"&&e)&&"valueOf"in e){var t=e.valueOf();if(typeof t=="number")return t}return e}function Tc(e,t){var n=e;return"ticks"in n?n.ticks(t):n.domain().filter(function(r,o,a){return t==null||a.length<=t||o%Math.round((a.length-1)/t)===0})}function Hg(e){return e==null?void 0:e.toString()}var AP=new Set(["linear","pow","quantize","sqrt","symlog"]);function Mc(e){return AP.has(e.type)}const IP=Object.freeze(Object.defineProperty({__proto__:null,coerceNumber:Ec,createScale:Yo,getTicks:Tc,inferScaleType:DP,scaleBand:Ng,scaleCanBeZeroed:Mc,scaleLinear:Uo,scaleLog:Ig,scaleOrdinal:Fg,scalePoint:_g,scalePower:Lg,scaleQuantile:zg,scaleQuantize:jg,scaleRadial:wP,scaleSqrt:Vg,scaleSymlog:Bg,scaleThreshold:Wg,scaleTime:Dg,scaleUtc:Ag,toString:Hg,updateScale:_P},Symbol.toStringTag,{value:"Module"}));var LP=u.createContext({});const qt=LP;function Pc(e){var t,n=e;return n&&"bandwidth"in n&&(t=n==null?void 0:n.bandwidth())!=null?t:0}function Ct(e){return e!=null&&typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e)}const Gg=mr(E3),Ug=mr(IP);var kc=Math.PI,Oc=2*kc,ir=1e-6,FP=Oc-ir;function Nc(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function _c(){return new Nc}Nc.prototype=_c.prototype={constructor:Nc,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,a){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+a)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var a=this._x1,i=this._y1,s=n-e,l=r-t,c=a-e,f=i-t,d=c*c+f*f;if(o<0)throw new Error("negative radius: "+o);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>ir)if(!(Math.abs(f*s-l*c)>ir)||!o)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var h=n-a,g=r-i,p=s*s+l*l,m=h*h+g*g,x=Math.sqrt(p),b=Math.sqrt(d),v=o*Math.tan((kc-Math.acos((p+d-m)/(2*x*b)))/2),w=v/b,E=v/x;Math.abs(w-1)>ir&&(this._+="L"+(e+w*c)+","+(t+w*f)),this._+="A"+o+","+o+",0,0,"+ +(f*h>c*g)+","+(this._x1=e+E*s)+","+(this._y1=t+E*l)}},arc:function(e,t,n,r,o,a){e=+e,t=+t,n=+n,a=!!a;var i=n*Math.cos(r),s=n*Math.sin(r),l=e+i,c=t+s,f=1^a,d=a?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+l+","+c:(Math.abs(this._x1-l)>ir||Math.abs(this._y1-c)>ir)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%Oc+Oc),d>FP?this._+="A"+n+","+n+",0,1,"+f+","+(e-i)+","+(t-s)+"A"+n+","+n+",0,1,"+f+","+(this._x1=l)+","+(this._y1=c):d>ir&&(this._+="A"+n+","+n+",0,"+ +(d>=kc)+","+f+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function Ur(e){return function(){return e}}function Yg(e){this._context=e}Yg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function jP(e){return new Yg(e)}function qg(e){return e[0]}function Kg(e){return e[1]}function zP(){var e=qg,t=Kg,n=Ur(!0),r=null,o=jP,a=null;function i(s){var l,c=s.length,f,d=!1,h;for(r==null&&(a=o(h=_c())),l=0;l<=c;++l)!(l<c&&n(f=s[l],l,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,l,s),+t(f,l,s));if(h)return a=null,h+""||null}return i.x=function(s){return arguments.length?(e=typeof s=="function"?s:Ur(+s),i):e},i.y=function(s){return arguments.length?(t=typeof s=="function"?s:Ur(+s),i):t},i.defined=function(s){return arguments.length?(n=typeof s=="function"?s:Ur(!!s),i):n},i.curve=function(s){return arguments.length?(o=s,r!=null&&(a=o(r)),i):o},i.context=function(s){return arguments.length?(s==null?r=a=null:a=o(r=s),i):r},i}var BP=Array.prototype.slice;function WP(e){return e.source}function VP(e){return e.target}function HP(e){var t=WP,n=VP,r=qg,o=Kg,a=null;function i(){var s,l=BP.call(arguments),c=t.apply(this,l),f=n.apply(this,l);if(a||(a=s=_c()),e(a,+r.apply(this,(l[0]=c,l)),+o.apply(this,l),+r.apply(this,(l[0]=f,l)),+o.apply(this,l)),s)return a=null,s+""||null}return i.source=function(s){return arguments.length?(t=s,i):t},i.target=function(s){return arguments.length?(n=s,i):n},i.x=function(s){return arguments.length?(r=typeof s=="function"?s:Ur(+s),i):r},i.y=function(s){return arguments.length?(o=typeof s=="function"?s:Ur(+s),i):o},i.context=function(s){return arguments.length?(a=s??null,i):a},i}function GP(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function UP(){return HP(GP)}function Xg(e,t){e(t)}function YP(e){var t=e===void 0?{}:e,n=t.x,r=t.y,o=t.defined,a=t.curve,i=zP();return n&&Xg(i.x,n),r&&Xg(i.y,r),o&&i.defined(o),a&&i.curve(a),i}var qP=["from","to","fill","className","innerRef"];function Dc(){return Dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dc.apply(this,arguments)}function KP(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Zg(e){var t=e.from,n=t===void 0?{x:0,y:0}:t,r=e.to,o=r===void 0?{x:1,y:1}:r,a=e.fill,i=a===void 0?"transparent":a,s=e.className,l=e.innerRef,c=KP(e,qP),f=n.x===o.x||n.y===o.y;return u.createElement("line",Dc({ref:l,className:ct("visx-line",s),x1:n.x,y1:n.y,x2:o.x,y2:o.y,fill:i,shapeRendering:f?"crispEdges":"auto"},c))}var XP=["children","data","x","y","fill","className","curve","innerRef","defined"];function Ac(){return Ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ac.apply(this,arguments)}function ZP(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function QP(e){var t=e.children,n=e.data,r=n===void 0?[]:n,o=e.x,a=e.y,i=e.fill,s=i===void 0?"transparent":i,l=e.className,c=e.curve,f=e.innerRef,d=e.defined,h=d===void 0?function(){return!0}:d,g=ZP(e,XP),p=YP({x:o,y:a,defined:h,curve:c});return t?u.createElement(u.Fragment,null,t({path:p})):u.createElement("path",Ac({ref:f,className:ct("visx-linepath",l),d:p(r)||"",fill:s,strokeLinecap:"round"},g))}var JP=["className","innerRef"];function Ic(){return Ic=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ic.apply(this,arguments)}function RP(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function e4(e){var t=e.className,n=e.innerRef,r=RP(e,JP);return u.createElement("rect",Ic({ref:n,className:ct("visx-bar",t)},r))}var t4=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function Lc(){return Lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lc.apply(this,arguments)}function n4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function r4(e){var t=e.all,n=e.bottom,r=e.bottomLeft,o=e.bottomRight,a=e.height,i=e.left,s=e.radius,l=e.right,c=e.top,f=e.topLeft,d=e.topRight,h=e.width,g=e.x,p=e.y;d=t||c||l||d,o=t||n||l||o,r=t||n||i||r,f=t||c||i||f,s=Math.max(1,Math.min(s,Math.min(h,a)/2));var m=2*s,x=("M"+(g+s)+","+p+" h"+(h-m)+`
69
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var i=typeof a;if(i==="string"||i==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var s=n.apply(null,a);s&&r.push(s)}}else if(i==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var l in a)t.call(a,l)&&a[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Kp);var li=Kp.exports;const ct=mr(li);var N3=["top","left","transform","className","children","innerRef"];function Tl(){return Tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tl.apply(this,arguments)}function _3(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Kn(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.transform,i=e.className,s=e.children,l=e.innerRef,c=_3(e,N3);return u.createElement("g",Tl({ref:l,className:ct("visx-group",i),transform:a||"translate("+o+", "+n+")"},c),s)}Kn.propTypes={top:se.number,left:se.number,transform:se.string,className:se.string,children:se.node,innerRef:se.oneOfType([se.string,se.func,se.object])};const D3=Object.freeze(Object.defineProperty({__proto__:null,Group:Kn},Symbol.toStringTag,{value:"Module"}));var A3=Xp;function Xp(e,t,n){e instanceof RegExp&&(e=Zp(e,n)),t instanceof RegExp&&(t=Zp(t,n));var r=Qp(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function Zp(e,t){var n=t.match(e);return n?n[0]:null}Xp.range=Qp;function Qp(e,t,n){var r,o,a,i,s,l=n.indexOf(e),c=n.indexOf(t,l+1),f=l;if(l>=0&&c>0){for(r=[],a=n.length;f>=0&&!s;)f==l?(r.push(f),l=n.indexOf(e,f+1)):r.length==1?s=[r.pop(),c]:(o=r.pop(),o<a&&(a=o,i=c),c=n.indexOf(t,f+1)),f=l<c&&l>=0?l:c;r.length&&(s=[a,i])}return s}var I3=Jp;function Jp(e,t,n){e instanceof RegExp&&(e=Rp(e,n)),t instanceof RegExp&&(t=Rp(t,n));var r=em(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function Rp(e,t){var n=t.match(e);return n?n[0]:null}Jp.range=em;function em(e,t,n){var r,o,a,i,s,l=n.indexOf(e),c=n.indexOf(t,l+1),f=l;if(l>=0&&c>0){if(e===t)return[l,c];for(r=[],a=n.length;f>=0&&!s;)f==l?(r.push(f),l=n.indexOf(e,f+1)):r.length==1?s=[r.pop(),c]:(o=r.pop(),o<a&&(a=o,i=c),c=n.indexOf(t,f+1)),f=l<c&&l>=0?l:c;r.length&&(s=[a,i])}return s}var L3=I3,F3=tm;function tm(e,t,n){var r=e;return j3(e,t).reduce(function(o,a){return o.replace(a.functionIdentifier+"("+a.matches.body+")",z3(a.matches.body,a.functionIdentifier,n,r,t))},e)}function j3(e,t){var n=[],r=typeof t=="string"?new RegExp("\\b("+t+")\\("):t;do{var o=r.exec(e);if(!o)return n;if(o[1]===void 0)throw new Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],i=o.index,s=L3("(",")",e.substring(i));if(!s||s.start!==o[0].length-1)throw new SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:s,functionIdentifier:a}),e=s.post}while(r.test(e));return n}function z3(e,t,n,r,o){return n(tm(e,o,n),t,r)}var Je=function(e){this.value=e};Je.math={isDegree:!0,acos:function(e){return Je.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return Je.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return Je.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,t){var n=1,r=e-t,o=t;o<r&&(o=r,r=t);for(var a=o+1;a<=e;a++)n*=a;return n/Je.math.fact(r)},changeSign:function(e){return-e},cos:function(e){return Je.math.isDegree&&(e=Je.math.toRadian(e)),Math.cos(e)},cosh:function(e){return(Math.pow(Math.E,e)+Math.pow(Math.E,-1*e))/2},div:function(e,t){return e/t},fact:function(e){if(e%1!==0)return"NaN";for(var t=1,n=2;n<=e;n++)t*=n;return t},inverse:function(e){return 1/e},log:function(e){return Math.log(e)/Math.log(10)},mod:function(e,t){return e%t},mul:function(e,t){return e*t},P:function(e,t){for(var n=1,r=Math.floor(e)-Math.floor(t)+1;r<=Math.floor(e);r++)n*=r;return n},Pi:function(e,t,n){for(var r=1,o=e;o<=t;o++)r*=Number(n.postfixEval({n:o}));return r},pow10x:function(e){for(var t=1;e--;)t*=10;return t},sigma:function(e,t,n){for(var r=0,o=e;o<=t;o++)r+=Number(n.postfixEval({n:o}));return r},sin:function(e){return Je.math.isDegree&&(e=Je.math.toRadian(e)),Math.sin(e)},sinh:function(e){return(Math.pow(Math.E,e)-Math.pow(Math.E,-1*e))/2},sub:function(e,t){return e-t},tan:function(e){return Je.math.isDegree&&(e=Je.math.toRadian(e)),Math.tan(e)},tanh:function(e){return Je.sinha(e)/Je.cosha(e)},toRadian:function(e){return e*Math.PI/180},and:function(e,t){return e&t}},Je.Exception=function(e){this.message=e};var B3=Je,xe=B3;function Re(e,t){for(var n=0;n<e.length;n++)e[n]+=t;return e}for(var Sn=[{token:"sin",show:"sin",type:0,value:xe.math.sin},{token:"cos",show:"cos",type:0,value:xe.math.cos},{token:"tan",show:"tan",type:0,value:xe.math.tan},{token:"pi",show:"&pi;",type:3,value:"PI"},{token:"(",show:"(",type:4,value:"("},{token:")",show:")",type:5,value:")"},{token:"P",show:"P",type:10,value:xe.math.P},{token:"C",show:"C",type:10,value:xe.math.C},{token:" ",show:" ",type:14,value:" ".anchor},{token:"asin",show:"asin",type:0,value:xe.math.asin},{token:"acos",show:"acos",type:0,value:xe.math.acos},{token:"atan",show:"atan",type:0,value:xe.math.atan},{token:"7",show:"7",type:1,value:"7"},{token:"8",show:"8",type:1,value:"8"},{token:"9",show:"9",type:1,value:"9"},{token:"int",show:"Int",type:0,value:Math.floor},{token:"cosh",show:"cosh",type:0,value:xe.math.cosh},{token:"acosh",show:"acosh",type:0,value:xe.math.acosh},{token:"ln",show:" ln",type:0,value:Math.log},{token:"^",show:"^",type:10,value:Math.pow},{token:"root",show:"root",type:0,value:Math.sqrt},{token:"4",show:"4",type:1,value:"4"},{token:"5",show:"5",type:1,value:"5"},{token:"6",show:"6",type:1,value:"6"},{token:"/",show:"&divide;",type:2,value:xe.math.div},{token:"!",show:"!",type:7,value:xe.math.fact},{token:"tanh",show:"tanh",type:0,value:xe.math.tanh},{token:"atanh",show:"atanh",type:0,value:xe.math.atanh},{token:"Mod",show:" Mod ",type:2,value:xe.math.mod},{token:"1",show:"1",type:1,value:"1"},{token:"2",show:"2",type:1,value:"2"},{token:"3",show:"3",type:1,value:"3"},{token:"*",show:"&times;",type:2,value:xe.math.mul},{token:"sinh",show:"sinh",type:0,value:xe.math.sinh},{token:"asinh",show:"asinh",type:0,value:xe.math.asinh},{token:"e",show:"e",type:3,value:"E"},{token:"log",show:" log",type:0,value:xe.math.log},{token:"0",show:"0",type:1,value:"0"},{token:".",show:".",type:6,value:"."},{token:"+",show:"+",type:9,value:xe.math.add},{token:"-",show:"-",type:9,value:xe.math.sub},{token:",",show:",",type:11,value:","},{token:"Sigma",show:"&Sigma;",type:12,value:xe.math.sigma},{token:"n",show:"n",type:13,value:"n"},{token:"Pi",show:"&Pi;",type:12,value:xe.math.Pi},{token:"pow",show:"pow",type:8,value:Math.pow,numberOfArguments:2},{token:"&",show:"&",type:9,value:xe.math.and}],Pl={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0,14:-1,15:11},ci=0;ci<Sn.length;ci++)Sn[ci].precedence=Pl[Sn[ci].type];var Ut={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0,14:!0,15:!0},_r={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0,15:!0},W3={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0,15:!0},Ot={},Co={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0,15:!0},V3={1:!0},et=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"," ","&"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function H3(e,t,n,r){for(var o=0;o<r;o++)if(e[n+o]!==t[o])return!1;return!0}xe.tokenTypes={FUNCTION_WITH_ONE_ARG:0,NUMBER:1,BINARY_OPERATOR_HIGH_PRECENDENCE:2,CONSTANT:3,OPENING_PARENTHESIS:4,CLOSING_PARENTHESIS:5,DECIMAL:6,POSTFIX_FUNCTION_WITH_ONE_ARG:7,FUNCTION_WITH_N_ARGS:8,BINARY_OPERATOR_LOW_PRECENDENCE:9,BINARY_OPERATOR_PERMUTATION:10,COMMA:11,EVALUATED_FUNCTION:12,EVALUATED_FUNCTION_PARAMETER:13,SPACE:14},xe.addToken=function(e){for(var t=0;t<e.length;t++){var n=e[t].token.length,r=-1;e[t].type===xe.tokenTypes.FUNCTION_WITH_N_ARGS&&e[t].numberOfArguments===void 0&&(e[t].numberOfArguments=2),et[n]=et[n]||[];for(var o=0;o<et[n].length;o++)if(e[t].token===et[n][o]){r=nm(et[n][o],Sn);break}r===-1?(Sn.push(e[t]),e[t].precedence=Pl[e[t].type],et.length<=e[t].token.length&&(et[e[t].token.length]=[]),et[e[t].token.length].push(e[t].token)):(Sn[r]=e[t],e[t].precedence=Pl[e[t].type])}};function nm(e,t){for(var n=0;n<t.length;n++)if(t[n].token===e)return n;return-1}function G3(e){for(var t=[],n=e.length,r,o,a,i=0;i<n;i++)if(!(i<n-1&&e[i]===" "&&e[i+1]===" ")){for(r="",o=e.length-i>et.length-2?et.length-1:e.length-i;o>0;o--)if(et[o]!==void 0)for(a=0;a<et[o].length;a++)H3(e,et[o][a],i,o)&&(r=et[o][a],a=et[o].length,o=0);if(i+=r.length-1,r==="")throw new xe.Exception("Can't understand after "+e.slice(i));t.push(Sn[nm(r,Sn)])}return t}var U3={value:xe.math.changeSign,type:0,pre:21,show:"-"},ui={value:")",show:")",type:5,pre:0},Eo={value:"(",type:4,pre:0,show:"("};xe.lex=function(e,t){var n=[Eo],r=[],o=e,a=Ut,i=0,s=Ot,l="",c;typeof t<"u"&&xe.addToken(t);var f={},d=G3(o);for(c=0;c<d.length;c++){var h=d[c];if(h.type===14){if(c>0&&c<d.length-1&&d[c+1].type===1&&(d[c-1].type===1||d[c-1].type===6))throw new xe.Exception("Unexpected Space");continue}var g=h.token,p=h.type,m=h.value,x=h.precedence,y=h.show,b=n[n.length-1],w;for(w=r.length;w--&&r[w]===0;)if([0,2,3,4,5,9,11,12,13].indexOf(p)!==-1){if(a[p]!==!0)throw new xe.Exception(g+" is not allowed after "+l);n.push(ui),a=_r,s=Co,r.pop()}if(a[p]!==!0)throw new xe.Exception(g+" is not allowed after "+l);if(s[p]===!0&&(p=2,m=xe.math.mul,y="&times;",x=3,c=c-1),f={value:m,type:p,pre:x,show:y,numberOfArguments:h.numberOfArguments},p===0)a=Ut,s=Ot,Re(r,2),n.push(f),d[c+1].type!==4&&(n.push(Eo),r.push(2));else if(p===1)b.type===1?(b.value+=m,Re(r,1)):n.push(f),a=_r,s=W3;else if(p===2)a=Ut,s=Ot,Re(r,2),n.push(f);else if(p===3)n.push(f),a=_r,s=Co;else if(p===4)Re(r,1),i++,a=Ut,s=Ot,n.push(f);else if(p===5){if(!i)throw new xe.Exception("Closing parenthesis are more than opening one, wait What!!!");i--,a=_r,s=Co,n.push(f),Re(r,1)}else if(p===6){if(b.hasDec)throw new xe.Exception("Two decimals are not allowed in one number");b.type!==1&&(b={value:0,type:1,pre:0},n.push(b)),a=V3,Re(r,1),s=Ot,b.value+=m,b.hasDec=!0}else p===7&&(a=_r,s=Co,Re(r,1),n.push(f));p===8?(a=Ut,s=Ot,Re(r,h.numberOfArguments+2),n.push(f),d[c+1].type!==4&&(n.push(Eo),r.push(h.numberOfArguments+2))):p===9?(b.type===9?b.value===xe.math.add?(b.value=m,b.show=y,Re(r,1)):b.value===xe.math.sub&&y==="-"&&(b.value=xe.math.add,b.show="+",Re(r,1)):b.type!==5&&b.type!==7&&b.type!==1&&b.type!==3&&b.type!==13?g==="-"&&(a=Ut,s=Ot,Re(r,2).push(2),n.push(U3),n.push(Eo)):(n.push(f),Re(r,2)),a=Ut,s=Ot):p===10?(a=Ut,s=Ot,Re(r,2),n.push(f)):p===11?(a=Ut,s=Ot,n.push(f)):p===12?(a=Ut,s=Ot,Re(r,6),n.push(f),d[c+1].type!==4&&(n.push(Eo),r.push(6))):p===13&&(a=_r,s=Co,n.push(f)),Re(r,-1),l=g}for(w=r.length;w--;)n.push(ui);if(a[5]!==!0)throw new xe.Exception("complete the expression");for(;i--;)n.push(ui);return n.push(ui),new xe(n)};var Y3=xe,kl=Y3;kl.prototype.toPostfix=function(){for(var e=[],t,n,r,o,a,i=[{value:"(",type:4,pre:0}],s=this.value,l=1;l<s.length;l++)if(s[l].type===1||s[l].type===3||s[l].type===13)s[l].type===1&&(s[l].value=Number(s[l].value)),e.push(s[l]);else if(s[l].type===4)i.push(s[l]);else if(s[l].type===5)for(;(n=i.pop()).type!==4;)e.push(n);else if(s[l].type===11){for(;(n=i.pop()).type!==4;)e.push(n);i.push(n)}else{t=s[l],o=t.pre,a=i[i.length-1],r=a.pre;var c=a.value=="Math.pow"&&t.value=="Math.pow";if(o>r)i.push(t);else{for(;r>=o&&!c||c&&o<r;)n=i.pop(),a=i[i.length-1],e.push(n),r=a.pre,c=t.value=="Math.pow"&&a.value=="Math.pow";i.push(t)}}return new kl(e)};var q3=kl,Mo=q3;Mo.prototype.postfixEval=function(e){e=e||{},e.PI=Math.PI,e.E=Math.E;for(var t=[],n,r,o,a=this.value,i=typeof e.n<"u",s=0;s<a.length;s++)if(a[s].type===1)t.push({value:a[s].value,type:1});else if(a[s].type===3)t.push({value:e[a[s].value],type:1});else if(a[s].type===0)typeof t[t.length-1].type>"u"?t[t.length-1].value.push(a[s]):t[t.length-1].value=a[s].value(t[t.length-1].value);else if(a[s].type===7)typeof t[t.length-1].type>"u"?t[t.length-1].value.push(a[s]):t[t.length-1].value=a[s].value(t[t.length-1].value);else if(a[s].type===8){for(var l=[],c=0;c<a[s].numberOfArguments;c++)l.push(t.pop().value);t.push({type:1,value:a[s].value.apply(a[s],l.reverse())})}else a[s].type===10?(n=t.pop(),r=t.pop(),typeof r.type>"u"?(r.value=r.concat(n),r.value.push(a[s]),t.push(r)):typeof n.type>"u"?(n.unshift(r),n.push(a[s]),t.push(n)):t.push({type:1,value:a[s].value(r.value,n.value)})):a[s].type===2||a[s].type===9?(n=t.pop(),r=t.pop(),typeof r.type>"u"?(r=r.concat(n),r.push(a[s]),t.push(r)):typeof n.type>"u"?(n.unshift(r),n.push(a[s]),t.push(n)):t.push({type:1,value:a[s].value(r.value,n.value)})):a[s].type===12?(n=t.pop(),typeof n.type<"u"&&(n=[n]),r=t.pop(),o=t.pop(),t.push({type:1,value:a[s].value(o.value,r.value,new Mo(n))})):a[s].type===13&&(i?t.push({value:e[a[s].value],type:3}):t.push([a[s]]));if(t.length>1)throw new Mo.Exception("Uncaught Syntax error");return t[0].value>1e15?"Infinity":parseFloat(t[0].value.toFixed(15))},Mo.eval=function(e,t,n){return typeof t>"u"?this.lex(e).toPostfix().postfixEval():typeof n>"u"?typeof t.length<"u"?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t):this.lex(e,t).toPostfix().postfixEval(n)};var K3=Mo,rm=K3;rm.prototype.formulaEval=function(){for(var e,t,n,r=[],o=this.value,a=0;a<o.length;a++)o[a].type===1||o[a].type===3?r.push({value:o[a].type===3?o[a].show:o[a].value,type:1}):o[a].type===13?r.push({value:o[a].show,type:1}):o[a].type===0?r[r.length-1]={value:o[a].show+(o[a].show!="-"?"(":"")+r[r.length-1].value+(o[a].show!="-"?")":""),type:0}:o[a].type===7?r[r.length-1]={value:(r[r.length-1].type!=1?"(":"")+r[r.length-1].value+(r[r.length-1].type!=1?")":"")+o[a].show,type:7}:o[a].type===10?(e=r.pop(),t=r.pop(),o[a].show==="P"||o[a].show==="C"?r.push({value:"<sup>"+t.value+"</sup>"+o[a].show+"<sub>"+e.value+"</sub>",type:10}):r.push({value:(t.type!=1?"(":"")+t.value+(t.type!=1?")":"")+"<sup>"+e.value+"</sup>",type:1})):o[a].type===2||o[a].type===9?(e=r.pop(),t=r.pop(),r.push({value:(t.type!=1?"(":"")+t.value+(t.type!=1?")":"")+o[a].show+(e.type!=1?"(":"")+e.value+(e.type!=1?")":""),type:o[a].type})):o[a].type===12&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:o[a].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value};var X3=rm,Z3=A3,Q3=F3,J3=X3,R3=100,eE=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g,Ol,tE=nE;function nE(e,t){Ol=0,t=Math.pow(10,t===void 0?5:t),e=e.replace(/\n+/g," ");function n(o,a,i){if(Ol++>R3)throw Ol=0,new Error("Call stack overflow for "+i);if(o==="")throw new Error(a+"(): '"+i+"' must contain a non-whitespace string");o=r(o,i);var s=rE(o);if(s.length>1||o.indexOf("var(")>-1)return a+"("+o+")";var l=s[0]||"";l==="%"&&(o=o.replace(/\b[0-9\.]+%/g,function(d){return parseFloat(d.slice(0,-1))*.01}));var c=o.replace(new RegExp(l,"gi"),""),f;try{f=J3.eval(c)}catch{return a+"("+o+")"}return l==="%"&&(f*=100),(a.length||l==="%")&&(f=Math.round(f*t)/t),f+=l,f}function r(o,a){o=o.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var i="",s=o,l;l=eE.exec(s);){l[0].index>0&&(i+=s.substring(0,l[0].index));var c=Z3("(",")",s.substring([0].index));if(c.body==="")throw new Error("'"+o+"' must contain a non-whitespace string");var f=n(c.body,"",a);i+=c.pre+f,s=c.post}return i+s}return Q3(e,/((?:\-[a-z]+\-)?calc)\(/,n)}function rE(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,o=r.exec(e);o;)!o||!o[1]||(n.indexOf(o[1].toLowerCase())===-1&&(t.push(o[1]),n.push(o[1].toLowerCase())),o=r.exec(e));return t}const Nl=mr(tE);var oE=typeof so=="object"&&so&&so.Object===Object&&so,aE=oE,iE=aE,sE=typeof self=="object"&&self&&self.Object===Object&&self,lE=iE||sE||Function("return this")(),di=lE,cE=di,uE=cE.Symbol,om=uE,am=om,im=Object.prototype,dE=im.hasOwnProperty,fE=im.toString,To=am?am.toStringTag:void 0;function hE(e){var t=dE.call(e,To),n=e[To];try{e[To]=void 0;var r=!0}catch{}var o=fE.call(e);return r&&(t?e[To]=n:delete e[To]),o}var pE=hE,mE=Object.prototype,gE=mE.toString;function vE(e){return gE.call(e)}var bE=vE,sm=om,yE=pE,wE=bE,xE="[object Null]",$E="[object Undefined]",lm=sm?sm.toStringTag:void 0;function SE(e){return e==null?e===void 0?$E:xE:lm&&lm in Object(e)?yE(e):wE(e)}var cm=SE;function CE(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var fi=CE,EE=cm,ME=fi,TE="[object AsyncFunction]",PE="[object Function]",kE="[object GeneratorFunction]",OE="[object Proxy]";function NE(e){if(!ME(e))return!1;var t=EE(e);return t==PE||t==kE||t==TE||t==OE}var _E=NE,DE=di,AE=DE["__core-js_shared__"],IE=AE,_l=IE,um=function(){var e=/[^.]+$/.exec(_l&&_l.keys&&_l.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function LE(e){return!!um&&um in e}var FE=LE,jE=Function.prototype,zE=jE.toString;function BE(e){if(e!=null){try{return zE.call(e)}catch{}try{return e+""}catch{}}return""}var WE=BE,VE=_E,HE=FE,GE=fi,UE=WE,YE=/[\\^$.*+?()[\]{}|]/g,qE=/^\[object .+?Constructor\]$/,KE=Function.prototype,XE=Object.prototype,ZE=KE.toString,QE=XE.hasOwnProperty,JE=RegExp("^"+ZE.call(QE).replace(YE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function RE(e){if(!GE(e)||HE(e))return!1;var t=VE(e)?JE:qE;return t.test(UE(e))}var e5=RE;function t5(e,t){return e==null?void 0:e[t]}var n5=t5,r5=e5,o5=n5;function a5(e,t){var n=o5(e,t);return r5(n)?n:void 0}var dm=a5,i5=dm,s5=i5(Object,"create"),hi=s5,fm=hi;function l5(){this.__data__=fm?fm(null):{},this.size=0}var c5=l5;function u5(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var d5=u5,f5=hi,h5="__lodash_hash_undefined__",p5=Object.prototype,m5=p5.hasOwnProperty;function g5(e){var t=this.__data__;if(f5){var n=t[e];return n===h5?void 0:n}return m5.call(t,e)?t[e]:void 0}var v5=g5,b5=hi,y5=Object.prototype,w5=y5.hasOwnProperty;function x5(e){var t=this.__data__;return b5?t[e]!==void 0:w5.call(t,e)}var $5=x5,S5=hi,C5="__lodash_hash_undefined__";function E5(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=S5&&t===void 0?C5:t,this}var M5=E5,T5=c5,P5=d5,k5=v5,O5=$5,N5=M5;function Dr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Dr.prototype.clear=T5,Dr.prototype.delete=P5,Dr.prototype.get=k5,Dr.prototype.has=O5,Dr.prototype.set=N5;var _5=Dr;function D5(){this.__data__=[],this.size=0}var A5=D5;function I5(e,t){return e===t||e!==e&&t!==t}var L5=I5,F5=L5;function j5(e,t){for(var n=e.length;n--;)if(F5(e[n][0],t))return n;return-1}var pi=j5,z5=pi,B5=Array.prototype,W5=B5.splice;function V5(e){var t=this.__data__,n=z5(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():W5.call(t,n,1),--this.size,!0}var H5=V5,G5=pi;function U5(e){var t=this.__data__,n=G5(t,e);return n<0?void 0:t[n][1]}var Y5=U5,q5=pi;function K5(e){return q5(this.__data__,e)>-1}var X5=K5,Z5=pi;function Q5(e,t){var n=this.__data__,r=Z5(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var J5=Q5,R5=A5,e6=H5,t6=Y5,n6=X5,r6=J5;function Ar(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ar.prototype.clear=R5,Ar.prototype.delete=e6,Ar.prototype.get=t6,Ar.prototype.has=n6,Ar.prototype.set=r6;var o6=Ar,a6=dm,i6=di,s6=a6(i6,"Map"),l6=s6,hm=_5,c6=o6,u6=l6;function d6(){this.size=0,this.__data__={hash:new hm,map:new(u6||c6),string:new hm}}var f6=d6;function h6(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var p6=h6,m6=p6;function g6(e,t){var n=e.__data__;return m6(t)?n[typeof t=="string"?"string":"hash"]:n.map}var mi=g6,v6=mi;function b6(e){var t=v6(this,e).delete(e);return this.size-=t?1:0,t}var y6=b6,w6=mi;function x6(e){return w6(this,e).get(e)}var $6=x6,S6=mi;function C6(e){return S6(this,e).has(e)}var E6=C6,M6=mi;function T6(e,t){var n=M6(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var P6=T6,k6=f6,O6=y6,N6=$6,_6=E6,D6=P6;function Ir(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ir.prototype.clear=k6,Ir.prototype.delete=O6,Ir.prototype.get=N6,Ir.prototype.has=_6,Ir.prototype.set=D6;var A6=Ir,pm=A6,I6="Expected a function";function Dl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(I6);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Dl.Cache||pm),n}Dl.Cache=pm;var L6=Dl;const F6=mr(L6);var mm="__react_svg_text_measurement_id";function j6(e,t){try{var n=document.getElementById(mm);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",n=document.createElementNS("http://www.w3.org/2000/svg","text"),n.setAttribute("id",mm),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch{return null}}const gm=F6(j6,function(e,t){return e+"_"+JSON.stringify(t)});var z6=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function B6(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Al(e){return typeof e=="number"}function vm(e){return typeof e=="number"&&Number.isFinite(e)||typeof e=="string"}function W6(e){var t=e.verticalAnchor,n=t===void 0?"end":t,r=e.scaleToFit,o=r===void 0?!1:r,a=e.angle,i=e.width,s=e.lineHeight,l=s===void 0?"1em":s,c=e.capHeight,f=c===void 0?"0.71em":c,d=e.children,h=e.style,g=B6(e,z6),p=g.x,m=p===void 0?0:p,x=g.y,y=x===void 0?0:x,b=!vm(m)||!vm(y),w=u.useMemo(function(){var O=d==null?[]:d.toString().split(/(?:(?!\u00A0+)\s+)/);return{wordsWithWidth:O.map(function(F){return{word:F,wordWidth:gm(F,h)||0}}),spaceWidth:gm(" ",h)||0}},[d,h]),E=w.wordsWithWidth,S=w.spaceWidth,T=u.useMemo(function(){return b?[]:i||o?E.reduce(function(O,F){var j=F.word,H=F.wordWidth,G=O[O.length-1];if(G&&(i==null||o||(G.width||0)+H+S<i))G.words.push(j),G.width=G.width||0,G.width+=H+S;else{var L={words:[j],width:H};O.push(L)}return O},[]):[{words:d==null?[]:d.toString().split(/(?:(?!\u00A0+)\s+)/)}]},[b,i,o,d,E,S]),N=u.useMemo(function(){var O=b?"":Nl(n==="start"?"calc("+f+")":n==="middle"?"calc("+(T.length-1)/2+" * -"+l+" + ("+f+" / 2))":"calc("+(T.length-1)+" * -"+l+")");return O},[b,n,f,T.length,l]),M=u.useMemo(function(){var O=[];if(b)return"";if(Al(m)&&Al(y)&&Al(i)&&o&&T.length>0){var F=T[0].width||1,j=o==="shrink-only"?Math.min(i/F,1):i/F,H=j,G=m-j*m,L=y-H*y;O.push("matrix("+j+", 0, 0, "+H+", "+G+", "+L+")")}return a&&O.push("rotate("+a+", "+m+", "+y+")"),O.length>0?O.join(" "):""},[b,m,y,i,o,T,a]);return{wordsByLines:T,startDy:N,transform:M}}var V6=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Il.apply(this,arguments)}function H6(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var G6={overflow:"visible"};function Ll(e){var t=e.dx,n=t===void 0?0:t,r=e.dy,o=r===void 0?0:r,a=e.textAnchor,i=a===void 0?"start":a,s=e.innerRef,l=e.innerTextRef;e.verticalAnchor,e.angle;var c=e.lineHeight,f=c===void 0?"1em":c;e.scaleToFit,e.capHeight,e.width;var d=H6(e,V6),h=d.x,g=h===void 0?0:h,p=d.fontSize,m=W6(e),x=m.wordsByLines,y=m.startDy,b=m.transform;return u.createElement("svg",{ref:s,x:n,y:o,fontSize:p,style:G6},x.length>0?u.createElement("text",Il({ref:l,transform:b},d,{textAnchor:i}),x.map(function(w,E){return u.createElement("tspan",{key:E,x:g,dy:E===0?y:f},w.words.join(" "))})):null)}function Fl(e,t,n){var r,o,a,i,s;t==null&&(t=100);function l(){var f=Date.now()-i;f<t&&f>=0?r=setTimeout(l,t-f):(r=null,n||(s=e.apply(a,o),a=o=null))}var c=function(){a=this,o=arguments,i=Date.now();var f=n&&!r;return r||(r=setTimeout(l,t)),f&&(s=e.apply(a,o),a=o=null),s};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(s=e.apply(a,o),a=o=null,clearTimeout(r),r=null)},c}Fl.debounce=Fl;var U6=Fl;const bm=mr(U6);function Y6(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:o}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e;const a=r||(typeof window>"u"?class{}:window.ResizeObserver);if(!a)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[i,s]=u.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),l=u.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:i}),c=t?typeof t=="number"?t:t.scroll:null,f=t?typeof t=="number"?t:t.resize:null,d=u.useRef(!1);u.useEffect(()=>(d.current=!0,()=>void(d.current=!1)));const[h,g,p]=u.useMemo(()=>{const b=()=>{if(!l.current.element)return;const{left:w,top:E,width:S,height:T,bottom:N,right:M,x:O,y:F}=l.current.element.getBoundingClientRect(),j={left:w,top:E,width:S,height:T,bottom:N,right:M,x:O,y:F};l.current.element instanceof HTMLElement&&o&&(j.height=l.current.element.offsetHeight,j.width=l.current.element.offsetWidth),Object.freeze(j),d.current&&!Z6(l.current.lastBounds,j)&&s(l.current.lastBounds=j)};return[b,f?bm(b,f):b,c?bm(b,c):b]},[s,o,c,f]);function m(){l.current.scrollContainers&&(l.current.scrollContainers.forEach(b=>b.removeEventListener("scroll",p,!0)),l.current.scrollContainers=null),l.current.resizeObserver&&(l.current.resizeObserver.disconnect(),l.current.resizeObserver=null)}function x(){l.current.element&&(l.current.resizeObserver=new a(p),l.current.resizeObserver.observe(l.current.element),n&&l.current.scrollContainers&&l.current.scrollContainers.forEach(b=>b.addEventListener("scroll",p,{capture:!0,passive:!0})))}const y=b=>{!b||b===l.current.element||(m(),l.current.element=b,l.current.scrollContainers=ym(b),x())};return K6(p,!!n),q6(g),u.useEffect(()=>{m(),x()},[n,p,g]),u.useEffect(()=>m,[]),[y,i,h]}function q6(e){u.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function K6(e,t){u.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function ym(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:o}=window.getComputedStyle(e);return[n,r,o].some(a=>a==="auto"||a==="scroll")&&t.push(e),[...t,...ym(e.parentElement)]}const X6=["x","y","top","bottom","left","right","width","height"],Z6=(e,t)=>X6.every(n=>e[n]===t[n]);var Cn=function(){function e(n){var r=n.x,o=r===void 0?0:r,a=n.y,i=a===void 0?0:a;this.x=0,this.y=0,this.x=o,this.y=i}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}();function Q6(e,t){return new Cn({x:e.x+t.x,y:e.y+t.y})}function J6(e,t){return new Cn({x:e.x-t.x,y:e.y-t.y})}const wm=gr(Object.freeze(Object.defineProperty({__proto__:null,Point:Cn,subtractPoints:J6,sumPoints:Q6},Symbol.toStringTag,{value:"Module"})));function R6(e){return!!e&&e instanceof Element}function eM(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function tM(e){return!!e&&"createSVGPoint"in e}function nM(e){return!!e&&"getScreenCTM"in e}function rM(e){return!!e&&"changedTouches"in e}function oM(e){return!!e&&"clientX"in e}function aM(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}function Po(){return Po=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Po.apply(this,arguments)}var jl={x:0,y:0};function iM(e){if(!e)return Po({},jl);if(rM(e))return e.changedTouches.length>0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:Po({},jl);if(oM(e))return{x:e.clientX,y:e.clientY};var t=e==null?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:Po({},jl)}function xm(e,t){if(!e||!t)return null;var n=iM(t),r=eM(e)?e.ownerSVGElement:e,o=nM(r)?r.getScreenCTM():null;if(tM(r)&&o){var a=r.createSVGPoint();return a.x=n.x,a.y=n.y,a=a.matrixTransform(o.inverse()),new Cn({x:a.x,y:a.y})}var i=e.getBoundingClientRect();return new Cn({x:n.x-i.left-e.clientLeft,y:n.y-i.top-e.clientTop})}function sM(e,t){if(R6(e)&&t)return xm(e,t);if(aM(e)){var n=e,r=n.target;if(r)return xm(r,n)}return null}function En(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function lM(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function zl(e){let t,n,r;e.length!==2?(t=En,n=(s,l)=>En(e(s),l),r=(s,l)=>e(s)-l):(t=e===En||e===lM?e:cM,n=e,r=e);function o(s,l,c=0,f=s.length){if(c<f){if(t(l,l)!==0)return f;do{const d=c+f>>>1;n(s[d],l)<0?c=d+1:f=d}while(c<f)}return c}function a(s,l,c=0,f=s.length){if(c<f){if(t(l,l)!==0)return f;do{const d=c+f>>>1;n(s[d],l)<=0?c=d+1:f=d}while(c<f)}return c}function i(s,l,c=0,f=s.length){const d=o(s,l,c,f-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:o,center:i,right:a}}function cM(){return 0}function $m(e){return e===null?NaN:+e}function*uM(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const dM=zl(En).right;zl($m).center;const Lr=dM;function fM(e,t){let n=0;if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(o=+o)>=o&&++n}return n}function gi(e,t){let n,r;if(t===void 0)for(const o of e)o!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)));else{let o=-1;for(let a of e)(a=t(a,++o,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}class Sm extends Map{constructor(t,n=mM){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(Cm(this,t))}has(t){return super.has(Cm(this,t))}set(t,n){return super.set(hM(this,t),n)}delete(t){return super.delete(pM(this,t))}}function Cm({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function hM({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function pM({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function mM(e){return e!==null&&typeof e=="object"?e.valueOf():e}function gM(e){return e}function vM(e=En){if(e===En)return Em;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Em(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var bM=Array.prototype,yM=bM.slice;function Bl(e){return()=>e}const wM=Math.sqrt(50),xM=Math.sqrt(10),$M=Math.sqrt(2);function vi(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),a=r/Math.pow(10,o),i=a>=wM?10:a>=xM?5:a>=$M?2:1;let s,l,c;return o<0?(c=Math.pow(10,-o)/i,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*i,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?vi(e,t,n*2):[s,l,c]}function bi(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,a,i]=r?vi(t,e,n):vi(e,t,n);if(!(a>=o))return[];const s=a-o+1,l=new Array(s);if(r)if(i<0)for(let c=0;c<s;++c)l[c]=(a-c)/-i;else for(let c=0;c<s;++c)l[c]=(a-c)*i;else if(i<0)for(let c=0;c<s;++c)l[c]=(o+c)/-i;else for(let c=0;c<s;++c)l[c]=(o+c)*i;return l}function Fr(e,t,n){return t=+t,e=+e,n=+n,vi(e,t,n)[2]}function Wl(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?Fr(t,e,n):Fr(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function SM(e,t,n){let r;for(;;){const o=Fr(e,t,n);if(o===r||o===0||!isFinite(o))return[e,t];o>0?(e=Math.floor(e/o)*o,t=Math.ceil(t/o)*o):o<0&&(e=Math.ceil(e*o)/o,t=Math.floor(t*o)/o),r=o}}function CM(e){return Math.max(1,Math.ceil(Math.log(fM(e))/Math.LN2)+1)}function EM(){var e=gM,t=gi,n=CM;function r(o){Array.isArray(o)||(o=Array.from(o));var a,i=o.length,s,l,c=new Array(i);for(a=0;a<i;++a)c[a]=e(o[a],a,o);var f=t(c),d=f[0],h=f[1],g=n(c,d,h);if(!Array.isArray(g)){const w=h,E=+g;if(t===gi&&([d,h]=SM(d,h,E)),g=bi(d,h,E),g[0]<=d&&(l=Fr(d,h,E)),g[g.length-1]>=h)if(w>=h&&t===gi){const S=Fr(d,h,E);isFinite(S)&&(S>0?h=(Math.floor(h/S)+1)*S:S<0&&(h=(Math.ceil(h*-S)+1)/-S))}else g.pop()}for(var p=g.length,m=0,x=p;g[m]<=d;)++m;for(;g[x-1]>h;)--x;(m||x<p)&&(g=g.slice(m,x),p=x-m);var y=new Array(p+1),b;for(a=0;a<=p;++a)b=y[a]=[],b.x0=a>0?g[a-1]:d,b.x1=a<p?g[a]:h;if(isFinite(l)){if(l>0)for(a=0;a<i;++a)(s=c[a])!=null&&d<=s&&s<=h&&y[Math.min(p,Math.floor((s-d)/l))].push(o[a]);else if(l<0){for(a=0;a<i;++a)if((s=c[a])!=null&&d<=s&&s<=h){const w=Math.floor((d-s)*l);y[Math.min(p,w+(g[w]<=s))].push(o[a])}}}else for(a=0;a<i;++a)(s=c[a])!=null&&d<=s&&s<=h&&y[Lr(g,s,0,p)].push(o[a]);return y}return r.value=function(o){return arguments.length?(e=typeof o=="function"?o:Bl(o),r):e},r.domain=function(o){return arguments.length?(t=typeof o=="function"?o:Bl([o[0],o[1]]),r):t},r.thresholds=function(o){return arguments.length?(n=typeof o=="function"?o:Bl(Array.isArray(o)?yM.call(o):o),r):n},r}function Vl(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}function Mm(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}return n}function Tm(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=o===void 0?Em:vM(o);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,f=Math.log(l),d=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*d*(l-d)/l)*(c-l/2<0?-1:1),g=Math.max(n,Math.floor(t-c*d/l+h)),p=Math.min(r,Math.floor(t+(l-c)*d/l+h));Tm(e,t,g,p,o)}const a=e[t];let i=n,s=r;for(ko(e,n,t),o(e[r],a)>0&&ko(e,n,r);i<s;){for(ko(e,i,s),++i,--s;o(e[i],a)<0;)++i;for(;o(e[s],a)>0;)--s}o(e[n],a)===0?ko(e,n,s):(++s,ko(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function ko(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function MM(e,t,n){if(e=Float64Array.from(uM(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Mm(e);if(t>=1)return Vl(e);var r,o=(r-1)*t,a=Math.floor(o),i=Vl(Tm(e,a).subarray(0,a+1)),s=Mm(e.subarray(a+1));return i+(s-i)*(o-a)}}function TM(e,t,n=$m){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,a=Math.floor(o),i=+n(e[a],a,e),s=+n(e[a+1],a+1,e);return i+(s-i)*(o-a)}}function PM(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(o);++r<o;)a[r]=e+r*n;return a}function $t(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function rn(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Hl=Symbol("implicit");function yi(){var e=new Sm,t=[],n=[],r=Hl;function o(a){let i=e.get(a);if(i===void 0){if(r!==Hl)return r;e.set(a,i=t.push(a)-1)}return n[i%n.length]}return o.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Sm;for(const i of a)e.has(i)||e.set(i,t.push(i)-1);return o},o.range=function(a){return arguments.length?(n=Array.from(a),o):n.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.copy=function(){return yi(t,n).unknown(r)},$t.apply(o,arguments),o}function wi(){var e=yi().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,a,i,s=!1,l=0,c=0,f=.5;delete e.unknown;function d(){var h=t().length,g=o<r,p=g?o:r,m=g?r:o;a=(m-p)/Math.max(1,h-l+c*2),s&&(a=Math.floor(a)),p+=(m-p-a*(h-l))*f,i=a*(1-l),s&&(p=Math.round(p),i=Math.round(i));var x=PM(h).map(function(y){return p+a*y});return n(g?x.reverse():x)}return e.domain=function(h){return arguments.length?(t(h),d()):t()},e.range=function(h){return arguments.length?([r,o]=h,r=+r,o=+o,d()):[r,o]},e.rangeRound=function(h){return[r,o]=h,r=+r,o=+o,s=!0,d()},e.bandwidth=function(){return i},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,d()):s},e.padding=function(h){return arguments.length?(l=Math.min(1,c=+h),d()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),d()):l},e.paddingOuter=function(h){return arguments.length?(c=+h,d()):c},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),d()):f},e.copy=function(){return wi(t(),[r,o]).round(s).paddingInner(l).paddingOuter(c).align(f)},$t.apply(d(),arguments)}function Pm(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Pm(t())},e}function km(){return Pm(wi.apply(null,arguments).paddingInner(1))}function jr(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Oo(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Mn(){}var Xn=.7,zr=1/Xn,Br="\\s*([+-]?\\d+)\\s*",No="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kM=/^#([0-9a-f]{3,8})$/,OM=new RegExp(`^rgb\\(${Br},${Br},${Br}\\)$`),NM=new RegExp(`^rgb\\(${Yt},${Yt},${Yt}\\)$`),_M=new RegExp(`^rgba\\(${Br},${Br},${Br},${No}\\)$`),DM=new RegExp(`^rgba\\(${Yt},${Yt},${Yt},${No}\\)$`),AM=new RegExp(`^hsl\\(${No},${Yt},${Yt}\\)$`),IM=new RegExp(`^hsla\\(${No},${Yt},${Yt},${No}\\)$`),Om={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};jr(Mn,_o,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Nm,formatHex:Nm,formatHex8:LM,formatHsl:FM,formatRgb:_m,toString:_m});function Nm(){return this.rgb().formatHex()}function LM(){return this.rgb().formatHex8()}function FM(){return Fm(this).formatHsl()}function _m(){return this.rgb().formatRgb()}function _o(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=kM.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Dm(t):n===3?new He(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?xi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?xi(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=OM.exec(e))?new He(t[1],t[2],t[3],1):(t=NM.exec(e))?new He(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=_M.exec(e))?xi(t[1],t[2],t[3],t[4]):(t=DM.exec(e))?xi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=AM.exec(e))?Lm(t[1],t[2]/100,t[3]/100,1):(t=IM.exec(e))?Lm(t[1],t[2]/100,t[3]/100,t[4]):Om.hasOwnProperty(e)?Dm(Om[e]):e==="transparent"?new He(NaN,NaN,NaN,0):null}function Dm(e){return new He(e>>16&255,e>>8&255,e&255,1)}function xi(e,t,n,r){return r<=0&&(e=t=n=NaN),new He(e,t,n,r)}function Gl(e){return e instanceof Mn||(e=_o(e)),e?(e=e.rgb(),new He(e.r,e.g,e.b,e.opacity)):new He}function $i(e,t,n,r){return arguments.length===1?Gl(e):new He(e,t,n,r??1)}function He(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}jr(He,$i,Oo(Mn,{brighter(e){return e=e==null?zr:Math.pow(zr,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Xn:Math.pow(Xn,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new He(Zn(this.r),Zn(this.g),Zn(this.b),Si(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:Am,formatHex:Am,formatHex8:jM,formatRgb:Im,toString:Im}));function Am(){return`#${Qn(this.r)}${Qn(this.g)}${Qn(this.b)}`}function jM(){return`#${Qn(this.r)}${Qn(this.g)}${Qn(this.b)}${Qn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Im(){const e=Si(this.opacity);return`${e===1?"rgb(":"rgba("}${Zn(this.r)}, ${Zn(this.g)}, ${Zn(this.b)}${e===1?")":`, ${e})`}`}function Si(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Qn(e){return e=Zn(e),(e<16?"0":"")+e.toString(16)}function Lm(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Nt(e,t,n,r)}function Fm(e){if(e instanceof Nt)return new Nt(e.h,e.s,e.l,e.opacity);if(e instanceof Mn||(e=_o(e)),!e)return new Nt;if(e instanceof Nt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,s=a-o,l=(a+o)/2;return s?(t===a?i=(n-r)/s+(n<r)*6:n===a?i=(r-t)/s+2:i=(t-n)/s+4,s/=l<.5?a+o:2-a-o,i*=60):s=l>0&&l<1?0:i,new Nt(i,s,l,e.opacity)}function Ul(e,t,n,r){return arguments.length===1?Fm(e):new Nt(e,t,n,r??1)}function Nt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}jr(Nt,Ul,Oo(Mn,{brighter(e){return e=e==null?zr:Math.pow(zr,e),new Nt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Xn:Math.pow(Xn,e),new Nt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new He(Yl(e>=240?e-240:e+120,o,r),Yl(e,o,r),Yl(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Nt(jm(this.h),Ci(this.s),Ci(this.l),Si(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Si(this.opacity);return`${e===1?"hsl(":"hsla("}${jm(this.h)}, ${Ci(this.s)*100}%, ${Ci(this.l)*100}%${e===1?")":`, ${e})`}`}}));function jm(e){return e=(e||0)%360,e<0?e+360:e}function Ci(e){return Math.max(0,Math.min(1,e||0))}function Yl(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const zm=Math.PI/180,Bm=180/Math.PI,Ei=18,Wm=.96422,Vm=1,Hm=.82521,Gm=4/29,Wr=6/29,Um=3*Wr*Wr,zM=Wr*Wr*Wr;function Ym(e){if(e instanceof qt)return new qt(e.l,e.a,e.b,e.opacity);if(e instanceof on)return qm(e);e instanceof He||(e=Gl(e));var t=Ql(e.r),n=Ql(e.g),r=Ql(e.b),o=Kl((.2225045*t+.7168786*n+.0606169*r)/Vm),a,i;return t===n&&n===r?a=i=o:(a=Kl((.4360747*t+.3850649*n+.1430804*r)/Wm),i=Kl((.0139322*t+.0971045*n+.7141733*r)/Hm)),new qt(116*o-16,500*(a-o),200*(o-i),e.opacity)}function ql(e,t,n,r){return arguments.length===1?Ym(e):new qt(e,t,n,r??1)}function qt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}jr(qt,ql,Oo(Mn,{brighter(e){return new qt(this.l+Ei*(e??1),this.a,this.b,this.opacity)},darker(e){return new qt(this.l-Ei*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Wm*Xl(t),e=Vm*Xl(e),n=Hm*Xl(n),new He(Zl(3.1338561*t-1.6168667*e-.4906146*n),Zl(-.9787684*t+1.9161415*e+.033454*n),Zl(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function Kl(e){return e>zM?Math.pow(e,1/3):e/Um+Gm}function Xl(e){return e>Wr?e*e*e:Um*(e-Gm)}function Zl(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ql(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function BM(e){if(e instanceof on)return new on(e.h,e.c,e.l,e.opacity);if(e instanceof qt||(e=Ym(e)),e.a===0&&e.b===0)return new on(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Bm;return new on(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Jl(e,t,n,r){return arguments.length===1?BM(e):new on(e,t,n,r??1)}function on(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function qm(e){if(isNaN(e.h))return new qt(e.l,0,0,e.opacity);var t=e.h*zm;return new qt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}jr(on,Jl,Oo(Mn,{brighter(e){return new on(this.h,this.c,this.l+Ei*(e??1),this.opacity)},darker(e){return new on(this.h,this.c,this.l-Ei*(e??1),this.opacity)},rgb(){return qm(this).rgb()}}));var Km=-.14861,Rl=1.78277,ec=-.29227,Mi=-.90649,Do=1.97294,Xm=Do*Mi,Zm=Do*Rl,Qm=Rl*ec-Mi*Km;function WM(e){if(e instanceof Jn)return new Jn(e.h,e.s,e.l,e.opacity);e instanceof He||(e=Gl(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Qm*r+Xm*t-Zm*n)/(Qm+Xm-Zm),a=r-o,i=(Do*(n-o)-ec*a)/Mi,s=Math.sqrt(i*i+a*a)/(Do*o*(1-o)),l=s?Math.atan2(i,a)*Bm-120:NaN;return new Jn(l<0?l+360:l,s,o,e.opacity)}function tc(e,t,n,r){return arguments.length===1?WM(e):new Jn(e,t,n,r??1)}function Jn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}jr(Jn,tc,Oo(Mn,{brighter(e){return e=e==null?zr:Math.pow(zr,e),new Jn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Xn:Math.pow(Xn,e),new Jn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*zm,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new He(255*(t+n*(Km*r+Rl*o)),255*(t+n*(ec*r+Mi*o)),255*(t+n*(Do*r)),this.opacity)}}));function Jm(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}function Rm(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,s=r<t-1?e[r+2]:2*a-o;return Jm((n-r/t)*t,i,o,a,s)}}function e0(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],a=e[r%t],i=e[(r+1)%t],s=e[(r+2)%t];return Jm((n-r/t)*t,o,a,i,s)}}const Ti=e=>()=>e;function t0(e,t){return function(n){return e+n*t}}function VM(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Pi(e,t){var n=t-e;return n?t0(e,n>180||n<-180?n-360*Math.round(n/360):n):Ti(isNaN(e)?t:e)}function HM(e){return(e=+e)==1?Ge:function(t,n){return n-t?VM(t,n,e):Ti(isNaN(t)?n:t)}}function Ge(e,t){var n=t-e;return n?t0(e,n):Ti(isNaN(e)?t:e)}const ki=function e(t){var n=HM(t);function r(o,a){var i=n((o=$i(o)).r,(a=$i(a)).r),s=n(o.g,a.g),l=n(o.b,a.b),c=Ge(o.opacity,a.opacity);return function(f){return o.r=i(f),o.g=s(f),o.b=l(f),o.opacity=c(f),o+""}}return r.gamma=e,r}(1);function n0(e){return function(t){var n=t.length,r=new Array(n),o=new Array(n),a=new Array(n),i,s;for(i=0;i<n;++i)s=$i(t[i]),r[i]=s.r||0,o[i]=s.g||0,a[i]=s.b||0;return r=e(r),o=e(o),a=e(a),s.opacity=1,function(l){return s.r=r(l),s.g=o(l),s.b=a(l),s+""}}}var GM=n0(Rm),UM=n0(e0);function nc(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(a){for(o=0;o<n;++o)r[o]=e[o]*(1-a)+t[o]*a;return r}}function r0(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function YM(e,t){return(r0(t)?nc:o0)(e,t)}function o0(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),a=new Array(n),i;for(i=0;i<r;++i)o[i]=Rn(e[i],t[i]);for(;i<n;++i)a[i]=t[i];return function(s){for(i=0;i<r;++i)a[i]=o[i](s);return a}}function a0(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function _t(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function i0(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=Rn(e[o],t[o]):r[o]=t[o];return function(a){for(o in n)r[o]=n[o](a);return r}}var rc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,oc=new RegExp(rc.source,"g");function qM(e){return function(){return e}}function KM(e){return function(t){return e(t)+""}}function s0(e,t){var n=rc.lastIndex=oc.lastIndex=0,r,o,a,i=-1,s=[],l=[];for(e=e+"",t=t+"";(r=rc.exec(e))&&(o=oc.exec(t));)(a=o.index)>n&&(a=t.slice(n,a),s[i]?s[i]+=a:s[++i]=a),(r=r[0])===(o=o[0])?s[i]?s[i]+=o:s[++i]=o:(s[++i]=null,l.push({i,x:_t(r,o)})),n=oc.lastIndex;return n<t.length&&(a=t.slice(n),s[i]?s[i]+=a:s[++i]=a),s.length<2?l[0]?KM(l[0].x):qM(t):(t=l.length,function(c){for(var f=0,d;f<t;++f)s[(d=l[f]).i]=d.x(c);return s.join("")})}function Rn(e,t){var n=typeof t,r;return t==null||n==="boolean"?Ti(t):(n==="number"?_t:n==="string"?(r=_o(t))?(t=r,ki):s0:t instanceof _o?ki:t instanceof Date?a0:r0(t)?nc:Array.isArray(t)?o0:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?i0:_t)(e,t)}function XM(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}function ZM(e,t){var n=Pi(+e,+t);return function(r){var o=n(r);return o-360*Math.floor(o/360)}}function Ao(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var l0=180/Math.PI,ac={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function c0(e,t,n,r,o,a){var i,s,l;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,i=-i),{translateX:o,translateY:a,rotate:Math.atan2(t,e)*l0,skewX:Math.atan(l)*l0,scaleX:i,scaleY:s}}var Oi;function QM(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?ac:c0(t.a,t.b,t.c,t.d,t.e,t.f)}function JM(e){return e==null||(Oi||(Oi=document.createElementNS("http://www.w3.org/2000/svg","g")),Oi.setAttribute("transform",e),!(e=Oi.transform.baseVal.consolidate()))?ac:(e=e.matrix,c0(e.a,e.b,e.c,e.d,e.e,e.f))}function u0(e,t,n,r){function o(c){return c.length?c.pop()+" ":""}function a(c,f,d,h,g,p){if(c!==d||f!==h){var m=g.push("translate(",null,t,null,n);p.push({i:m-4,x:_t(c,d)},{i:m-2,x:_t(f,h)})}else(d||h)&&g.push("translate("+d+t+h+n)}function i(c,f,d,h){c!==f?(c-f>180?f+=360:f-c>180&&(c+=360),h.push({i:d.push(o(d)+"rotate(",null,r)-2,x:_t(c,f)})):f&&d.push(o(d)+"rotate("+f+r)}function s(c,f,d,h){c!==f?h.push({i:d.push(o(d)+"skewX(",null,r)-2,x:_t(c,f)}):f&&d.push(o(d)+"skewX("+f+r)}function l(c,f,d,h,g,p){if(c!==d||f!==h){var m=g.push(o(g)+"scale(",null,",",null,")");p.push({i:m-4,x:_t(c,d)},{i:m-2,x:_t(f,h)})}else(d!==1||h!==1)&&g.push(o(g)+"scale("+d+","+h+")")}return function(c,f){var d=[],h=[];return c=e(c),f=e(f),a(c.translateX,c.translateY,f.translateX,f.translateY,d,h),i(c.rotate,f.rotate,d,h),s(c.skewX,f.skewX,d,h),l(c.scaleX,c.scaleY,f.scaleX,f.scaleY,d,h),c=f=null,function(g){for(var p=-1,m=h.length,x;++p<m;)d[(x=h[p]).i]=x.x(g);return d.join("")}}}var RM=u0(QM,"px, ","px)","deg)"),eT=u0(JM,", ",")",")"),tT=1e-12;function d0(e){return((e=Math.exp(e))+1/e)/2}function nT(e){return((e=Math.exp(e))-1/e)/2}function rT(e){return((e=Math.exp(2*e))-1)/(e+1)}const oT=function e(t,n,r){function o(a,i){var s=a[0],l=a[1],c=a[2],f=i[0],d=i[1],h=i[2],g=f-s,p=d-l,m=g*g+p*p,x,y;if(m<tT)y=Math.log(h/c)/t,x=function(N){return[s+N*g,l+N*p,c*Math.exp(t*N*y)]};else{var b=Math.sqrt(m),w=(h*h-c*c+r*m)/(2*c*n*b),E=(h*h-c*c-r*m)/(2*h*n*b),S=Math.log(Math.sqrt(w*w+1)-w),T=Math.log(Math.sqrt(E*E+1)-E);y=(T-S)/t,x=function(N){var M=N*y,O=d0(S),F=c/(n*b)*(O*rT(t*M+S)-nT(S));return[s+F*g,l+F*p,c*O/d0(t*M+S)]}}return x.duration=y*1e3*t/Math.SQRT2,x}return o.rho=function(a){var i=Math.max(.001,+a),s=i*i,l=s*s;return e(i,s,l)},o}(Math.SQRT2,2,4);function f0(e){return function(t,n){var r=e((t=Ul(t)).h,(n=Ul(n)).h),o=Ge(t.s,n.s),a=Ge(t.l,n.l),i=Ge(t.opacity,n.opacity);return function(s){return t.h=r(s),t.s=o(s),t.l=a(s),t.opacity=i(s),t+""}}}const h0=f0(Pi);var p0=f0(Ge);function m0(e,t){var n=Ge((e=ql(e)).l,(t=ql(t)).l),r=Ge(e.a,t.a),o=Ge(e.b,t.b),a=Ge(e.opacity,t.opacity);return function(i){return e.l=n(i),e.a=r(i),e.b=o(i),e.opacity=a(i),e+""}}function g0(e){return function(t,n){var r=e((t=Jl(t)).h,(n=Jl(n)).h),o=Ge(t.c,n.c),a=Ge(t.l,n.l),i=Ge(t.opacity,n.opacity);return function(s){return t.h=r(s),t.c=o(s),t.l=a(s),t.opacity=i(s),t+""}}}const v0=g0(Pi);var b0=g0(Ge);function y0(e){return function t(n){n=+n;function r(o,a){var i=e((o=tc(o)).h,(a=tc(a)).h),s=Ge(o.s,a.s),l=Ge(o.l,a.l),c=Ge(o.opacity,a.opacity);return function(f){return o.h=i(f),o.s=s(f),o.l=l(Math.pow(f,n)),o.opacity=c(f),o+""}}return r.gamma=t,r}(1)}const w0=y0(Pi);var x0=y0(Ge);function $0(e,t){t===void 0&&(t=e,e=Rn);for(var n=0,r=t.length-1,o=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(o,o=t[++n]);return function(i){var s=Math.max(0,Math.min(r-1,Math.floor(i*=r)));return a[s](i-s)}}function aT(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}function iT(e){return function(){return e}}function Ni(e){return+e}var S0=[0,1];function tt(e){return e}function ic(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:iT(isNaN(t)?NaN:.5)}function sT(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function lT(e,t,n){var r=e[0],o=e[1],a=t[0],i=t[1];return o<r?(r=ic(o,r),a=n(i,a)):(r=ic(r,o),a=n(a,i)),function(s){return a(r(s))}}function cT(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),a=new Array(r),i=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<r;)o[i]=ic(e[i],e[i+1]),a[i]=n(t[i],t[i+1]);return function(s){var l=Lr(e,s,1,r)-1;return a[l](o[l](s))}}function Io(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function _i(){var e=S0,t=S0,n=Rn,r,o,a,i=tt,s,l,c;function f(){var h=Math.min(e.length,t.length);return i!==tt&&(i=sT(e[0],e[h-1])),s=h>2?cT:lT,l=c=null,d}function d(h){return h==null||isNaN(h=+h)?a:(l||(l=s(e.map(r),t,n)))(r(i(h)))}return d.invert=function(h){return i(o((c||(c=s(t,e.map(r),_t)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,Ni),f()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=Ao,f()},d.clamp=function(h){return arguments.length?(i=h?!0:tt,f()):i!==tt},d.interpolate=function(h){return arguments.length?(n=h,f()):n},d.unknown=function(h){return arguments.length?(a=h,d):a},function(h,g){return r=h,o=g,f()}}function sc(){return _i()(tt,tt)}function uT(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Di(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Vr(e){return e=Di(Math.abs(e)),e?e[1]:NaN}function dT(e,t){return function(n,r){for(var o=n.length,a=[],i=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[i=(i+1)%e.length];return a.reverse().join(t)}}function fT(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var hT=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Lo(e){if(!(t=hT.exec(e)))throw new Error("invalid format: "+e);var t;return new lc({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Lo.prototype=lc.prototype;function lc(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}lc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function pT(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var C0;function mT(e,t){var n=Di(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(C0=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Di(e,Math.max(0,t+a-1))[0]}function E0(e,t){var n=Di(e,t);if(!n)return e+"";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")}const M0={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:uT,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>E0(e*100,t),r:E0,s:mT,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function T0(e){return e}var P0=Array.prototype.map,k0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function gT(e){var t=e.grouping===void 0||e.thousands===void 0?T0:dT(P0.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?T0:fT(P0.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=Lo(d);var h=d.fill,g=d.align,p=d.sign,m=d.symbol,x=d.zero,y=d.width,b=d.comma,w=d.precision,E=d.trim,S=d.type;S==="n"?(b=!0,S="g"):M0[S]||(w===void 0&&(w=12),E=!0,S="g"),(x||h==="0"&&g==="=")&&(x=!0,h="0",g="=");var T=m==="$"?n:m==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",N=m==="$"?r:/[%p]/.test(S)?i:"",M=M0[S],O=/[defgprs%]/.test(S);w=w===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function F(j){var H=T,G=N,L,C,_;if(S==="c")G=M(j)+G,j="";else{j=+j;var B=j<0||1/j<0;if(j=isNaN(j)?l:M(Math.abs(j),w),E&&(j=pT(j)),B&&+j==0&&p!=="+"&&(B=!1),H=(B?p==="("?p:s:p==="-"||p==="("?"":p)+H,G=(S==="s"?k0[8+C0/3]:"")+G+(B&&p==="("?")":""),O){for(L=-1,C=j.length;++L<C;)if(_=j.charCodeAt(L),48>_||_>57){G=(_===46?o+j.slice(L+1):j.slice(L))+G,j=j.slice(0,L);break}}}b&&!x&&(j=t(j,1/0));var V=H.length+j.length+G.length,D=V<y?new Array(y-V+1).join(h):"";switch(b&&x&&(j=t(D+j,D.length?y-G.length:1/0),D=""),g){case"<":j=H+j+G+D;break;case"=":j=H+D+j+G;break;case"^":j=D.slice(0,V=D.length>>1)+H+j+G+D.slice(V);break;default:j=D+H+j+G;break}return a(j)}return F.toString=function(){return d+""},F}function f(d,h){var g=c((d=Lo(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(Vr(h)/3)))*3,m=Math.pow(10,-p),x=k0[8+p/3];return function(y){return g(m*y)+x}}return{format:c,formatPrefix:f}}var Ai,Ii,O0;vT({thousands:",",grouping:[3],currency:["$",""]});function vT(e){return Ai=gT(e),Ii=Ai.format,O0=Ai.formatPrefix,Ai}function bT(e){return Math.max(0,-Vr(Math.abs(e)))}function yT(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Vr(t)/3)))*3-Vr(Math.abs(e)))}function wT(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Vr(t)-Vr(e))+1}function N0(e,t,n,r){var o=Wl(e,t,n),a;switch(r=Lo(r??",f"),r.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=yT(o,i))&&(r.precision=a),O0(r,i)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=wT(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=bT(o))&&(r.precision=a-(r.type==="%")*2);break}}return Ii(r)}function Tn(e){var t=e.domain;return e.ticks=function(n){var r=t();return bi(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return N0(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,a=r.length-1,i=r[o],s=r[a],l,c,f=10;for(s<i&&(c=i,i=s,s=c,c=o,o=a,a=c);f-- >0;){if(c=Fr(i,s,n),c===l)return r[o]=i,r[a]=s,t(r);if(c>0)i=Math.floor(i/c)*c,s=Math.ceil(s/c)*c;else if(c<0)i=Math.ceil(i*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function cc(){var e=sc();return e.copy=function(){return Io(e,cc())},$t.apply(e,arguments),Tn(e)}function _0(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Ni),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return _0(e).unknown(t)},e=arguments.length?Array.from(e,Ni):[0,1],Tn(n)}function D0(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],a=e[r],i;return a<o&&(i=n,n=r,r=i,i=o,o=a,a=i),e[n]=t.floor(o),e[r]=t.ceil(a),e}function A0(e){return Math.log(e)}function I0(e){return Math.exp(e)}function xT(e){return-Math.log(-e)}function $T(e){return-Math.exp(-e)}function ST(e){return isFinite(e)?+("1e"+e):e<0?0:e}function CT(e){return e===10?ST:e===Math.E?Math.exp:t=>Math.pow(e,t)}function ET(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function L0(e){return(t,n)=>-e(-t,n)}function uc(e){const t=e(A0,I0),n=t.domain;let r=10,o,a;function i(){return o=ET(r),a=CT(r),n()[0]<0?(o=L0(o),a=L0(a),e(xT,$T)):e(A0,I0),t}return t.base=function(s){return arguments.length?(r=+s,i()):r},t.domain=function(s){return arguments.length?(n(s),i()):n()},t.ticks=s=>{const l=n();let c=l[0],f=l[l.length-1];const d=f<c;d&&([c,f]=[f,c]);let h=o(c),g=o(f),p,m;const x=s==null?10:+s;let y=[];if(!(r%1)&&g-h<x){if(h=Math.floor(h),g=Math.ceil(g),c>0){for(;h<=g;++h)for(p=1;p<r;++p)if(m=h<0?p/a(-h):p*a(h),!(m<c)){if(m>f)break;y.push(m)}}else for(;h<=g;++h)for(p=r-1;p>=1;--p)if(m=h>0?p/a(-h):p*a(h),!(m<c)){if(m>f)break;y.push(m)}y.length*2<x&&(y=bi(c,f,x))}else y=bi(h,g,Math.min(g-h,x)).map(a);return d?y.reverse():y},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Lo(l)).precision==null&&(l.trim=!0),l=Ii(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return f=>{let d=f/a(Math.round(o(f)));return d*r<r-.5&&(d*=r),d<=c?l(f):""}},t.nice=()=>n(D0(n(),{floor:s=>a(Math.floor(o(s))),ceil:s=>a(Math.ceil(o(s)))})),t}function dc(){const e=uc(_i()).domain([1,10]);return e.copy=()=>Io(e,dc()).base(e.base()),$t.apply(e,arguments),e}function F0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function j0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function fc(e){var t=1,n=e(F0(t),j0(t));return n.constant=function(r){return arguments.length?e(F0(t=+r),j0(t)):t},Tn(n)}function hc(){var e=fc(_i());return e.copy=function(){return Io(e,hc()).constant(e.constant())},$t.apply(e,arguments)}function z0(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function MT(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function TT(e){return e<0?-e*e:e*e}function pc(e){var t=e(tt,tt),n=1;function r(){return n===1?e(tt,tt):n===.5?e(MT,TT):e(z0(n),z0(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},Tn(t)}function Li(){var e=pc(_i());return e.copy=function(){return Io(e,Li()).exponent(e.exponent())},$t.apply(e,arguments),e}function B0(){return Li.apply(null,arguments).exponent(.5)}function W0(e){return Math.sign(e)*e*e}function PT(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function mc(){var e=sc(),t=[0,1],n=!1,r;function o(a){var i=PT(e(a));return isNaN(i)?r:n?Math.round(i):i}return o.invert=function(a){return e.invert(W0(a))},o.domain=function(a){return arguments.length?(e.domain(a),o):e.domain()},o.range=function(a){return arguments.length?(e.range((t=Array.from(a,Ni)).map(W0)),o):t.slice()},o.rangeRound=function(a){return o.range(a).round(!0)},o.round=function(a){return arguments.length?(n=!!a,o):n},o.clamp=function(a){return arguments.length?(e.clamp(a),o):e.clamp()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.copy=function(){return mc(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},$t.apply(o,arguments),Tn(o)}function gc(){var e=[],t=[],n=[],r;function o(){var i=0,s=Math.max(1,t.length);for(n=new Array(s-1);++i<s;)n[i-1]=TM(e,i/s);return a}function a(i){return i==null||isNaN(i=+i)?r:t[Lr(n,i)]}return a.invertExtent=function(i){var s=t.indexOf(i);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},a.domain=function(i){if(!arguments.length)return e.slice();e=[];for(let s of i)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(En),o()},a.range=function(i){return arguments.length?(t=Array.from(i),o()):t.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return gc().domain(e).range(t).unknown(r)},$t.apply(a,arguments)}function vc(){var e=0,t=1,n=1,r=[.5],o=[0,1],a;function i(l){return l!=null&&l<=l?o[Lr(r,l,0,n)]:a}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return i}return i.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},i.range=function(l){return arguments.length?(n=(o=Array.from(l)).length-1,s()):o.slice()},i.invertExtent=function(l){var c=o.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},i.unknown=function(l){return arguments.length&&(a=l),i},i.thresholds=function(){return r.slice()},i.copy=function(){return vc().domain([e,t]).range(o).unknown(a)},$t.apply(Tn(i),arguments)}function bc(){var e=[.5],t=[0,1],n,r=1;function o(a){return a!=null&&a<=a?t[Lr(e,a,0,r)]:n}return o.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(a){var i=t.indexOf(a);return[e[i-1],e[i]]},o.unknown=function(a){return arguments.length?(n=a,o):n},o.copy=function(){return bc().domain(e).range(t).unknown(n)},$t.apply(o,arguments)}const yc=new Date,wc=new Date;function We(e,t,n,r){function o(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return o.floor=a=>(e(a=new Date(+a)),a),o.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),o.round=a=>{const i=o(a),s=o.ceil(a);return a-i<s-a?i:s},o.offset=(a,i)=>(t(a=new Date(+a),i==null?1:Math.floor(i)),a),o.range=(a,i,s)=>{const l=[];if(a=o.ceil(a),s=s==null?1:Math.floor(s),!(a<i)||!(s>0))return l;let c;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<i);return l},o.filter=a=>We(i=>{if(i>=i)for(;e(i),!a(i);)i.setTime(i-1)},(i,s)=>{if(i>=i)if(s<0)for(;++s<=0;)for(;t(i,-1),!a(i););else for(;--s>=0;)for(;t(i,1),!a(i););}),n&&(o.count=(a,i)=>(yc.setTime(+a),wc.setTime(+i),e(yc),e(wc),Math.floor(n(yc,wc))),o.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?o.filter(r?i=>r(i)%a===0:i=>o.count(0,i)%a===0):o)),o}const Hr=We(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Hr.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?We(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Hr);const V0=Hr.range,an=1e3,St=an*60,sn=St*60,ln=sn*24,xc=ln*7,H0=ln*30,$c=ln*365,Dt=We(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*an)},(e,t)=>(t-e)/an,e=>e.getUTCSeconds()),G0=Dt.range,Fo=We(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*an)},(e,t)=>{e.setTime(+e+t*St)},(e,t)=>(t-e)/St,e=>e.getMinutes()),kT=Fo.range,jo=We(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*St)},(e,t)=>(t-e)/St,e=>e.getUTCMinutes()),OT=jo.range,zo=We(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*an-e.getMinutes()*St)},(e,t)=>{e.setTime(+e+t*sn)},(e,t)=>(t-e)/sn,e=>e.getHours()),NT=zo.range,Bo=We(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*sn)},(e,t)=>(t-e)/sn,e=>e.getUTCHours()),_T=Bo.range,er=We(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*St)/ln,e=>e.getDate()-1),DT=er.range,Gr=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ln,e=>e.getUTCDate()-1),AT=Gr.range,Sc=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ln,e=>Math.floor(e/ln)),IT=Sc.range;function tr(e){return We(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*St)/xc)}const nr=tr(0),Wo=tr(1),U0=tr(2),Y0=tr(3),rr=tr(4),q0=tr(5),K0=tr(6),X0=nr.range,LT=Wo.range,FT=U0.range,jT=Y0.range,zT=rr.range,BT=q0.range,WT=K0.range;function or(e){return We(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/xc)}const ar=or(0),Vo=or(1),Z0=or(2),Q0=or(3),ir=or(4),J0=or(5),R0=or(6),eg=ar.range,VT=Vo.range,HT=Z0.range,GT=Q0.range,UT=ir.range,YT=J0.range,qT=R0.range,Ho=We(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),KT=Ho.range,Go=We(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),XT=Go.range,At=We(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());At.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:We(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});const ZT=At.range,It=We(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());It.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:We(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});const QT=It.range;function tg(e,t,n,r,o,a){const i=[[Dt,1,an],[Dt,5,5*an],[Dt,15,15*an],[Dt,30,30*an],[a,1,St],[a,5,5*St],[a,15,15*St],[a,30,30*St],[o,1,sn],[o,3,3*sn],[o,6,6*sn],[o,12,12*sn],[r,1,ln],[r,2,2*ln],[n,1,xc],[t,1,H0],[t,3,3*H0],[e,1,$c]];function s(c,f,d){const h=f<c;h&&([c,f]=[f,c]);const g=d&&typeof d.range=="function"?d:l(c,f,d),p=g?g.range(c,+f+1):[];return h?p.reverse():p}function l(c,f,d){const h=Math.abs(f-c)/d,g=zl(([,,x])=>x).right(i,h);if(g===i.length)return e.every(Wl(c/$c,f/$c,d));if(g===0)return Hr.every(Math.max(Wl(c,f,d),1));const[p,m]=i[h/i[g-1][2]<i[g][2]/h?g-1:g];return p.every(m)}return[s,l]}const[ng,rg]=tg(It,Go,ar,Sc,Bo,jo),[og,ag]=tg(At,Ho,nr,er,zo,Fo);function Cc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Ec(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Uo(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function JT(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,s=e.months,l=e.shortMonths,c=Yo(o),f=qo(o),d=Yo(a),h=qo(a),g=Yo(i),p=qo(i),m=Yo(s),x=qo(s),y=Yo(l),b=qo(l),w={a:B,A:V,b:D,B:A,c:null,d:dg,e:dg,f:x7,g:N7,G:D7,H:b7,I:y7,j:w7,L:fg,m:$7,M:S7,p:W,q:ne,Q:bg,s:yg,S:C7,u:E7,U:M7,V:T7,w:P7,W:k7,x:null,X:null,y:O7,Y:_7,Z:A7,"%":vg},E={a:Q,A:re,b:oe,B:ue,c:null,d:pg,e:pg,f:j7,g:K7,G:Z7,H:I7,I:L7,j:F7,L:mg,m:z7,M:B7,p:X,q:le,Q:bg,s:yg,S:W7,u:V7,U:H7,V:G7,w:U7,W:Y7,x:null,X:null,y:q7,Y:X7,Z:Q7,"%":vg},S={a:F,A:j,b:H,B:G,c:L,d:cg,e:cg,f:p7,g:lg,G:sg,H:ug,I:ug,j:u7,L:h7,m:c7,M:d7,p:O,q:l7,Q:g7,s:v7,S:f7,u:r7,U:o7,V:a7,w:n7,W:i7,x:C,X:_,y:lg,Y:sg,Z:s7,"%":m7};w.x=T(n,w),w.X=T(r,w),w.c=T(t,w),E.x=T(n,E),E.X=T(r,E),E.c=T(t,E);function T(U,Z){return function(ie){var k=[],te=-1,ae=0,ge=U.length,we,Ee,Ke;for(ie instanceof Date||(ie=new Date(+ie));++te<ge;)U.charCodeAt(te)===37&&(k.push(U.slice(ae,te)),(Ee=ig[we=U.charAt(++te)])!=null?we=U.charAt(++te):Ee=we==="e"?" ":"0",(Ke=Z[we])&&(we=Ke(ie,Ee)),k.push(we),ae=te+1);return k.push(U.slice(ae,te)),k.join("")}}function N(U,Z){return function(ie){var k=Uo(1900,void 0,1),te=M(k,U,ie+="",0),ae,ge;if(te!=ie.length)return null;if("Q"in k)return new Date(k.Q);if("s"in k)return new Date(k.s*1e3+("L"in k?k.L:0));if(Z&&!("Z"in k)&&(k.Z=0),"p"in k&&(k.H=k.H%12+k.p*12),k.m===void 0&&(k.m="q"in k?k.q:0),"V"in k){if(k.V<1||k.V>53)return null;"w"in k||(k.w=1),"Z"in k?(ae=Ec(Uo(k.y,0,1)),ge=ae.getUTCDay(),ae=ge>4||ge===0?Vo.ceil(ae):Vo(ae),ae=Gr.offset(ae,(k.V-1)*7),k.y=ae.getUTCFullYear(),k.m=ae.getUTCMonth(),k.d=ae.getUTCDate()+(k.w+6)%7):(ae=Cc(Uo(k.y,0,1)),ge=ae.getDay(),ae=ge>4||ge===0?Wo.ceil(ae):Wo(ae),ae=er.offset(ae,(k.V-1)*7),k.y=ae.getFullYear(),k.m=ae.getMonth(),k.d=ae.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),ge="Z"in k?Ec(Uo(k.y,0,1)).getUTCDay():Cc(Uo(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(ge+5)%7:k.w+k.U*7-(ge+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,Ec(k)):Cc(k)}}function M(U,Z,ie,k){for(var te=0,ae=Z.length,ge=ie.length,we,Ee;te<ae;){if(k>=ge)return-1;if(we=Z.charCodeAt(te++),we===37){if(we=Z.charAt(te++),Ee=S[we in ig?Z.charAt(te++):we],!Ee||(k=Ee(U,ie,k))<0)return-1}else if(we!=ie.charCodeAt(k++))return-1}return k}function O(U,Z,ie){var k=c.exec(Z.slice(ie));return k?(U.p=f.get(k[0].toLowerCase()),ie+k[0].length):-1}function F(U,Z,ie){var k=g.exec(Z.slice(ie));return k?(U.w=p.get(k[0].toLowerCase()),ie+k[0].length):-1}function j(U,Z,ie){var k=d.exec(Z.slice(ie));return k?(U.w=h.get(k[0].toLowerCase()),ie+k[0].length):-1}function H(U,Z,ie){var k=y.exec(Z.slice(ie));return k?(U.m=b.get(k[0].toLowerCase()),ie+k[0].length):-1}function G(U,Z,ie){var k=m.exec(Z.slice(ie));return k?(U.m=x.get(k[0].toLowerCase()),ie+k[0].length):-1}function L(U,Z,ie){return M(U,t,Z,ie)}function C(U,Z,ie){return M(U,n,Z,ie)}function _(U,Z,ie){return M(U,r,Z,ie)}function B(U){return i[U.getDay()]}function V(U){return a[U.getDay()]}function D(U){return l[U.getMonth()]}function A(U){return s[U.getMonth()]}function W(U){return o[+(U.getHours()>=12)]}function ne(U){return 1+~~(U.getMonth()/3)}function Q(U){return i[U.getUTCDay()]}function re(U){return a[U.getUTCDay()]}function oe(U){return l[U.getUTCMonth()]}function ue(U){return s[U.getUTCMonth()]}function X(U){return o[+(U.getUTCHours()>=12)]}function le(U){return 1+~~(U.getUTCMonth()/3)}return{format:function(U){var Z=T(U+="",w);return Z.toString=function(){return U},Z},parse:function(U){var Z=N(U+="",!1);return Z.toString=function(){return U},Z},utcFormat:function(U){var Z=T(U+="",E);return Z.toString=function(){return U},Z},utcParse:function(U){var Z=N(U+="",!0);return Z.toString=function(){return U},Z}}}var ig={"-":"",_:" ",0:"0"},Ue=/^\s*\d+/,RT=/^%/,e7=/[\\^$*+?|[\]().{}]/g;function Te(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a<n?new Array(n-a+1).join(t)+o:o)}function t7(e){return e.replace(e7,"\\$&")}function Yo(e){return new RegExp("^(?:"+e.map(t7).join("|")+")","i")}function qo(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function n7(e,t,n){var r=Ue.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function r7(e,t,n){var r=Ue.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function o7(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function a7(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function i7(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function sg(e,t,n){var r=Ue.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function lg(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function s7(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function l7(e,t,n){var r=Ue.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function c7(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function cg(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function u7(e,t,n){var r=Ue.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ug(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function d7(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function f7(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function h7(e,t,n){var r=Ue.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function p7(e,t,n){var r=Ue.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function m7(e,t,n){var r=RT.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function g7(e,t,n){var r=Ue.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function v7(e,t,n){var r=Ue.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function dg(e,t){return Te(e.getDate(),t,2)}function b7(e,t){return Te(e.getHours(),t,2)}function y7(e,t){return Te(e.getHours()%12||12,t,2)}function w7(e,t){return Te(1+er.count(At(e),e),t,3)}function fg(e,t){return Te(e.getMilliseconds(),t,3)}function x7(e,t){return fg(e,t)+"000"}function $7(e,t){return Te(e.getMonth()+1,t,2)}function S7(e,t){return Te(e.getMinutes(),t,2)}function C7(e,t){return Te(e.getSeconds(),t,2)}function E7(e){var t=e.getDay();return t===0?7:t}function M7(e,t){return Te(nr.count(At(e)-1,e),t,2)}function hg(e){var t=e.getDay();return t>=4||t===0?rr(e):rr.ceil(e)}function T7(e,t){return e=hg(e),Te(rr.count(At(e),e)+(At(e).getDay()===4),t,2)}function P7(e){return e.getDay()}function k7(e,t){return Te(Wo.count(At(e)-1,e),t,2)}function O7(e,t){return Te(e.getFullYear()%100,t,2)}function N7(e,t){return e=hg(e),Te(e.getFullYear()%100,t,2)}function _7(e,t){return Te(e.getFullYear()%1e4,t,4)}function D7(e,t){var n=e.getDay();return e=n>=4||n===0?rr(e):rr.ceil(e),Te(e.getFullYear()%1e4,t,4)}function A7(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Te(t/60|0,"0",2)+Te(t%60,"0",2)}function pg(e,t){return Te(e.getUTCDate(),t,2)}function I7(e,t){return Te(e.getUTCHours(),t,2)}function L7(e,t){return Te(e.getUTCHours()%12||12,t,2)}function F7(e,t){return Te(1+Gr.count(It(e),e),t,3)}function mg(e,t){return Te(e.getUTCMilliseconds(),t,3)}function j7(e,t){return mg(e,t)+"000"}function z7(e,t){return Te(e.getUTCMonth()+1,t,2)}function B7(e,t){return Te(e.getUTCMinutes(),t,2)}function W7(e,t){return Te(e.getUTCSeconds(),t,2)}function V7(e){var t=e.getUTCDay();return t===0?7:t}function H7(e,t){return Te(ar.count(It(e)-1,e),t,2)}function gg(e){var t=e.getUTCDay();return t>=4||t===0?ir(e):ir.ceil(e)}function G7(e,t){return e=gg(e),Te(ir.count(It(e),e)+(It(e).getUTCDay()===4),t,2)}function U7(e){return e.getUTCDay()}function Y7(e,t){return Te(Vo.count(It(e)-1,e),t,2)}function q7(e,t){return Te(e.getUTCFullYear()%100,t,2)}function K7(e,t){return e=gg(e),Te(e.getUTCFullYear()%100,t,2)}function X7(e,t){return Te(e.getUTCFullYear()%1e4,t,4)}function Z7(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ir(e):ir.ceil(e),Te(e.getUTCFullYear()%1e4,t,4)}function Q7(){return"+0000"}function vg(){return"%"}function bg(e){return+e}function yg(e){return Math.floor(+e/1e3)}var Ur,wg,xg;J7({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"]});function J7(e){return Ur=JT(e),wg=Ur.format,Ur.parse,xg=Ur.utcFormat,Ur.utcParse,Ur}function R7(e){return new Date(e)}function eP(e){return e instanceof Date?+e:+new Date(+e)}function Mc(e,t,n,r,o,a,i,s,l,c){var f=sc(),d=f.invert,h=f.domain,g=c(".%L"),p=c(":%S"),m=c("%I:%M"),x=c("%I %p"),y=c("%a %d"),b=c("%b %d"),w=c("%B"),E=c("%Y");function S(T){return(l(T)<T?g:s(T)<T?p:i(T)<T?m:a(T)<T?x:r(T)<T?o(T)<T?y:b:n(T)<T?w:E)(T)}return f.invert=function(T){return new Date(d(T))},f.domain=function(T){return arguments.length?h(Array.from(T,eP)):h().map(R7)},f.ticks=function(T){var N=h();return e(N[0],N[N.length-1],T??10)},f.tickFormat=function(T,N){return N==null?S:c(N)},f.nice=function(T){var N=h();return(!T||typeof T.range!="function")&&(T=t(N[0],N[N.length-1],T??10)),T?h(D0(N,T)):f},f.copy=function(){return Io(f,Mc(e,t,n,r,o,a,i,s,l,c))},f}function $g(){return $t.apply(Mc(og,ag,At,Ho,nr,er,zo,Fo,Dt,wg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Sg(){return $t.apply(Mc(ng,rg,It,Go,ar,Gr,Bo,jo,Dt,xg).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Fi(){var e=0,t=1,n,r,o,a,i=tt,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:i(o===0?.5:(d=(a(d)-n)*o,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,n=a(e=+e),r=a(t=+t),o=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(i=d,c):i};function f(d){return function(h){var g,p;return arguments.length?([g,p]=h,i=d(g,p),c):[i(0),i(1)]}}return c.range=f(Rn),c.rangeRound=f(Ao),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return a=d,n=d(e),r=d(t),o=n===r?0:1/(r-n),c}}function Pn(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Cg(){var e=Tn(Fi()(tt));return e.copy=function(){return Pn(e,Cg())},rn.apply(e,arguments)}function Eg(){var e=uc(Fi()).domain([1,10]);return e.copy=function(){return Pn(e,Eg()).base(e.base())},rn.apply(e,arguments)}function Mg(){var e=fc(Fi());return e.copy=function(){return Pn(e,Mg()).constant(e.constant())},rn.apply(e,arguments)}function Tc(){var e=pc(Fi());return e.copy=function(){return Pn(e,Tc()).exponent(e.exponent())},rn.apply(e,arguments)}function tP(){return Tc.apply(null,arguments).exponent(.5)}function Tg(){var e=[],t=tt;function n(r){if(r!=null&&!isNaN(r=+r))return t((Lr(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let o of r)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(En),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,o)=>t(o/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(o,a)=>MM(e,a/r))},n.copy=function(){return Tg(t).domain(e)},rn.apply(n,arguments)}function ji(){var e=0,t=.5,n=1,r=1,o,a,i,s,l,c=tt,f,d=!1,h;function g(m){return isNaN(m=+m)?h:(m=.5+((m=+f(m))-a)*(r*m<r*a?s:l),c(d?Math.max(0,Math.min(1,m)):m))}g.domain=function(m){return arguments.length?([e,t,n]=m,o=f(e=+e),a=f(t=+t),i=f(n=+n),s=o===a?0:.5/(a-o),l=a===i?0:.5/(i-a),r=a<o?-1:1,g):[e,t,n]},g.clamp=function(m){return arguments.length?(d=!!m,g):d},g.interpolator=function(m){return arguments.length?(c=m,g):c};function p(m){return function(x){var y,b,w;return arguments.length?([y,b,w]=x,c=$0(m,[y,b,w]),g):[c(0),c(.5),c(1)]}}return g.range=p(Rn),g.rangeRound=p(Ao),g.unknown=function(m){return arguments.length?(h=m,g):h},function(m){return f=m,o=m(e),a=m(t),i=m(n),s=o===a?0:.5/(a-o),l=a===i?0:.5/(i-a),r=a<o?-1:1,g}}function Pg(){var e=Tn(ji()(tt));return e.copy=function(){return Pn(e,Pg())},rn.apply(e,arguments)}function kg(){var e=uc(ji()).domain([.1,1,10]);return e.copy=function(){return Pn(e,kg()).base(e.base())},rn.apply(e,arguments)}function Og(){var e=fc(ji());return e.copy=function(){return Pn(e,Og()).constant(e.constant())},rn.apply(e,arguments)}function Pc(){var e=pc(ji());return e.copy=function(){return Pn(e,Pc()).exponent(e.exponent())},rn.apply(e,arguments)}function nP(){return Pc.apply(null,arguments).exponent(.5)}const rP=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:wi,scaleDiverging:Pg,scaleDivergingLog:kg,scaleDivergingPow:Pc,scaleDivergingSqrt:nP,scaleDivergingSymlog:Og,scaleIdentity:_0,scaleImplicit:Hl,scaleLinear:cc,scaleLog:dc,scaleOrdinal:yi,scalePoint:km,scalePow:Li,scaleQuantile:gc,scaleQuantize:vc,scaleRadial:mc,scaleSequential:Cg,scaleSequentialLog:Eg,scaleSequentialPow:Tc,scaleSequentialQuantile:Tg,scaleSequentialSqrt:tP,scaleSequentialSymlog:Mg,scaleSqrt:B0,scaleSymlog:hc,scaleThreshold:bc,scaleTime:$g,scaleUtc:Sg,tickFormat:N0},Symbol.toStringTag,{value:"Module"}));function oP(e,t){t.domain&&("nice"in e||"quantiles"in e||"padding"in e,e.domain(t.domain))}function aP(e,t){t.range&&("padding"in e,e.range(t.range))}function iP(e,t){"align"in e&&"align"in t&&typeof t.align<"u"&&e.align(t.align)}function sP(e,t){"base"in e&&"base"in t&&typeof t.base<"u"&&e.base(t.base)}function lP(e,t){"clamp"in e&&"clamp"in t&&typeof t.clamp<"u"&&e.clamp(t.clamp)}function cP(e,t){"constant"in e&&"constant"in t&&typeof t.constant<"u"&&e.constant(t.constant)}function uP(e,t){"exponent"in e&&"exponent"in t&&typeof t.exponent<"u"&&e.exponent(t.exponent)}const dP=Object.freeze(Object.defineProperty({__proto__:null,interpolate:Rn,interpolateArray:YM,interpolateBasis:Rm,interpolateBasisClosed:e0,interpolateCubehelix:w0,interpolateCubehelixLong:x0,interpolateDate:a0,interpolateDiscrete:XM,interpolateHcl:v0,interpolateHclLong:b0,interpolateHsl:h0,interpolateHslLong:p0,interpolateHue:ZM,interpolateLab:m0,interpolateNumber:_t,interpolateNumberArray:nc,interpolateObject:i0,interpolateRgb:ki,interpolateRgbBasis:GM,interpolateRgbBasisClosed:UM,interpolateRound:Ao,interpolateString:s0,interpolateTransformCss:RM,interpolateTransformSvg:eT,interpolateZoom:oT,piecewise:$0,quantize:aT},Symbol.toStringTag,{value:"Module"}));var Ng={lab:m0,hcl:v0,"hcl-long":b0,hsl:h0,"hsl-long":p0,cubehelix:w0,"cubehelix-long":x0,rgb:ki};function fP(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return Ng[e]}var t=e.type,n=e.gamma,r=Ng[t];return typeof n>"u"?r:r.gamma(n)}function hP(e,t){if("interpolate"in t&&"interpolate"in e&&typeof t.interpolate<"u"){var n=fP(t.interpolate);e.interpolate(n)}}const pP=Object.freeze(Object.defineProperty({__proto__:null,timeDay:er,timeDays:DT,timeFriday:q0,timeFridays:BT,timeHour:zo,timeHours:NT,timeInterval:We,timeMillisecond:Hr,timeMilliseconds:V0,timeMinute:Fo,timeMinutes:kT,timeMonday:Wo,timeMondays:LT,timeMonth:Ho,timeMonths:KT,timeSaturday:K0,timeSaturdays:WT,timeSecond:Dt,timeSeconds:G0,timeSunday:nr,timeSundays:X0,timeThursday:rr,timeThursdays:zT,timeTickInterval:ag,timeTicks:og,timeTuesday:U0,timeTuesdays:FT,timeWednesday:Y0,timeWednesdays:jT,timeWeek:nr,timeWeeks:X0,timeYear:At,timeYears:ZT,unixDay:Sc,unixDays:IT,utcDay:Gr,utcDays:AT,utcFriday:J0,utcFridays:YT,utcHour:Bo,utcHours:_T,utcMillisecond:Hr,utcMilliseconds:V0,utcMinute:jo,utcMinutes:OT,utcMonday:Vo,utcMondays:VT,utcMonth:Go,utcMonths:XT,utcSaturday:R0,utcSaturdays:qT,utcSecond:Dt,utcSeconds:G0,utcSunday:ar,utcSundays:eg,utcThursday:ir,utcThursdays:UT,utcTickInterval:rg,utcTicks:ng,utcTuesday:Z0,utcTuesdays:HT,utcWednesday:Q0,utcWednesdays:GT,utcWeek:ar,utcWeeks:eg,utcYear:It,utcYears:QT},Symbol.toStringTag,{value:"Module"}));var mP=new Date(Date.UTC(2020,1,2,3,4,5)),gP="%Y-%m-%d %H:%M";function _g(e){var t=e.tickFormat(1,gP)(mP);return t==="2020-02-02 03:04"}var Dg={day:er,hour:zo,minute:Fo,month:Ho,second:Dt,week:nr,year:At},Ag={day:Gr,hour:Bo,minute:jo,month:Go,second:Dt,week:ar,year:It};function vP(e,t){if("nice"in t&&typeof t.nice<"u"&&"nice"in e){var n=t.nice;if(typeof n=="boolean")n&&e.nice();else if(typeof n=="number")e.nice(n);else{var r=e,o=_g(r);if(typeof n=="string")r.nice(o?Ag[n]:Dg[n]);else{var a=n.interval,i=n.step,s=(o?Ag[a]:Dg[a]).every(i);s!=null&&r.nice(s)}}}}function bP(e,t){"padding"in e&&"padding"in t&&typeof t.padding<"u"&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&typeof t.paddingInner<"u"&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&typeof t.paddingOuter<"u"&&e.paddingOuter(t.paddingOuter)}function yP(e,t){if(t.reverse){var n=e.range().slice().reverse();"padding"in e,e.range(n)}}function wP(e,t){"round"in t&&typeof t.round<"u"&&(t.round&&"interpolate"in t&&typeof t.interpolate<"u"?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(Ao))}function xP(e,t){"unknown"in e&&"unknown"in t&&typeof t.unknown<"u"&&e.unknown(t.unknown)}function $P(e,t){if("zero"in t&&t.zero===!0){var n=e.domain(),r=n[0],o=n[1],a=o<r,i=a?[o,r]:[r,o],s=i[0],l=i[1],c=[Math.min(0,s),Math.max(0,l)];e.domain(a?c.reverse():c)}}var Ig=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],SP={domain:oP,nice:vP,zero:$P,interpolate:hP,round:wP,align:iP,base:sP,clamp:lP,constant:cP,exponent:uP,padding:bP,range:aP,reverse:yP,unknown:xP};function nt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set(t),o=Ig.filter(function(a){return r.has(a)});return function(i,s){return typeof s<"u"&&o.forEach(function(l){SP[l](i,s)}),i}}var CP=nt("domain","range","reverse","align","padding","round");function Lg(e){return CP(wi(),e)}var EP=nt("domain","range","reverse","align","padding","round");function Fg(e){return EP(km(),e)}var MP=nt("domain","range","reverse","clamp","interpolate","nice","round","zero");function Ko(e){return MP(cc(),e)}var TP=nt("domain","range","clamp","nice","round","unknown");function PP(e){return TP(mc(),e)}var kP=nt("domain","range","reverse","clamp","interpolate","nice","round");function jg(e){return kP($g(),e)}var OP=nt("domain","range","reverse","clamp","interpolate","nice","round");function zg(e){return OP(Sg(),e)}var NP=nt("domain","range","reverse","base","clamp","interpolate","nice","round");function Bg(e){return NP(dc(),e)}var _P=nt("domain","range","reverse","clamp","exponent","interpolate","nice","round","zero");function Wg(e){return _P(Li(),e)}var DP=nt("domain","range","reverse","unknown");function Vg(e){return DP(yi(),e)}var AP=nt("domain","range","reverse","nice","zero");function Hg(e){return AP(vc(),e)}var IP=nt("domain","range","reverse");function Gg(e){return IP(gc(),e)}var LP=nt("domain","range","reverse","clamp","constant","nice","zero","round");function Ug(e){return LP(hc(),e)}var FP=nt("domain","range","reverse");function Yg(e){return FP(bc(),e)}var jP=nt("domain","range","reverse","clamp","interpolate","nice","round","zero");function qg(e){return jP(B0(),e)}function Xo(e){if(typeof e<"u"&&"type"in e)switch(e.type){case"linear":return Ko(e);case"log":return Bg(e);case"pow":return Wg(e);case"sqrt":return qg(e);case"symlog":return Ug(e);case"time":return jg(e);case"utc":return zg(e);case"quantile":return Gg(e);case"quantize":return Hg(e);case"threshold":return Yg(e);case"ordinal":return Vg(e);case"point":return Fg(e);case"band":return Lg(e)}return Ko(e)}var zP=nt.apply(void 0,Ig);function BP(e,t){return zP(e.copy(),t)}function WP(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?e.exponent()===.5?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?_g(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}function kc(e){if((typeof e=="function"||typeof e=="object"&&e)&&"valueOf"in e){var t=e.valueOf();if(typeof t=="number")return t}return e}function Oc(e,t){var n=e;return"ticks"in n?n.ticks(t):n.domain().filter(function(r,o,a){return t==null||a.length<=t||o%Math.round((a.length-1)/t)===0})}function Kg(e){return e==null?void 0:e.toString()}var VP=new Set(["linear","pow","quantize","sqrt","symlog"]);function Nc(e){return VP.has(e.type)}const HP=Object.freeze(Object.defineProperty({__proto__:null,coerceNumber:kc,createScale:Xo,getTicks:Oc,inferScaleType:WP,scaleBand:Lg,scaleCanBeZeroed:Nc,scaleLinear:Ko,scaleLog:Bg,scaleOrdinal:Vg,scalePoint:Fg,scalePower:Wg,scaleQuantile:Gg,scaleQuantize:Hg,scaleRadial:PP,scaleSqrt:qg,scaleSymlog:Ug,scaleThreshold:Yg,scaleTime:jg,scaleUtc:zg,toString:Kg,updateScale:BP},Symbol.toStringTag,{value:"Module"}));var GP=u.createContext({});const Kt=GP;function _c(e){var t,n=e;return n&&"bandwidth"in n&&(t=n==null?void 0:n.bandwidth())!=null?t:0}function Ct(e){return e!=null&&typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e)}const Xg=gr(D3),Zg=gr(HP);var Dc=Math.PI,Ac=2*Dc,sr=1e-6,UP=Ac-sr;function Ic(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Lc(){return new Ic}Ic.prototype=Lc.prototype={constructor:Ic,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,a){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+a)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var a=this._x1,i=this._y1,s=n-e,l=r-t,c=a-e,f=i-t,d=c*c+f*f;if(o<0)throw new Error("negative radius: "+o);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>sr)if(!(Math.abs(f*s-l*c)>sr)||!o)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var h=n-a,g=r-i,p=s*s+l*l,m=h*h+g*g,x=Math.sqrt(p),y=Math.sqrt(d),b=o*Math.tan((Dc-Math.acos((p+d-m)/(2*x*y)))/2),w=b/y,E=b/x;Math.abs(w-1)>sr&&(this._+="L"+(e+w*c)+","+(t+w*f)),this._+="A"+o+","+o+",0,0,"+ +(f*h>c*g)+","+(this._x1=e+E*s)+","+(this._y1=t+E*l)}},arc:function(e,t,n,r,o,a){e=+e,t=+t,n=+n,a=!!a;var i=n*Math.cos(r),s=n*Math.sin(r),l=e+i,c=t+s,f=1^a,d=a?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+l+","+c:(Math.abs(this._x1-l)>sr||Math.abs(this._y1-c)>sr)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%Ac+Ac),d>UP?this._+="A"+n+","+n+",0,1,"+f+","+(e-i)+","+(t-s)+"A"+n+","+n+",0,1,"+f+","+(this._x1=l)+","+(this._y1=c):d>sr&&(this._+="A"+n+","+n+",0,"+ +(d>=Dc)+","+f+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function Yr(e){return function(){return e}}function Qg(e){this._context=e}Qg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function YP(e){return new Qg(e)}function Jg(e){return e[0]}function Rg(e){return e[1]}function qP(){var e=Jg,t=Rg,n=Yr(!0),r=null,o=YP,a=null;function i(s){var l,c=s.length,f,d=!1,h;for(r==null&&(a=o(h=Lc())),l=0;l<=c;++l)!(l<c&&n(f=s[l],l,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,l,s),+t(f,l,s));if(h)return a=null,h+""||null}return i.x=function(s){return arguments.length?(e=typeof s=="function"?s:Yr(+s),i):e},i.y=function(s){return arguments.length?(t=typeof s=="function"?s:Yr(+s),i):t},i.defined=function(s){return arguments.length?(n=typeof s=="function"?s:Yr(!!s),i):n},i.curve=function(s){return arguments.length?(o=s,r!=null&&(a=o(r)),i):o},i.context=function(s){return arguments.length?(s==null?r=a=null:a=o(r=s),i):r},i}var KP=Array.prototype.slice;function XP(e){return e.source}function ZP(e){return e.target}function QP(e){var t=XP,n=ZP,r=Jg,o=Rg,a=null;function i(){var s,l=KP.call(arguments),c=t.apply(this,l),f=n.apply(this,l);if(a||(a=s=Lc()),e(a,+r.apply(this,(l[0]=c,l)),+o.apply(this,l),+r.apply(this,(l[0]=f,l)),+o.apply(this,l)),s)return a=null,s+""||null}return i.source=function(s){return arguments.length?(t=s,i):t},i.target=function(s){return arguments.length?(n=s,i):n},i.x=function(s){return arguments.length?(r=typeof s=="function"?s:Yr(+s),i):r},i.y=function(s){return arguments.length?(o=typeof s=="function"?s:Yr(+s),i):o},i.context=function(s){return arguments.length?(a=s??null,i):a},i}function JP(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function RP(){return QP(JP)}function ev(e,t){e(t)}function e4(e){var t=e===void 0?{}:e,n=t.x,r=t.y,o=t.defined,a=t.curve,i=qP();return n&&ev(i.x,n),r&&ev(i.y,r),o&&i.defined(o),a&&i.curve(a),i}var t4=["from","to","fill","className","innerRef"];function Fc(){return Fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fc.apply(this,arguments)}function n4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function tv(e){var t=e.from,n=t===void 0?{x:0,y:0}:t,r=e.to,o=r===void 0?{x:1,y:1}:r,a=e.fill,i=a===void 0?"transparent":a,s=e.className,l=e.innerRef,c=n4(e,t4),f=n.x===o.x||n.y===o.y;return u.createElement("line",Fc({ref:l,className:ct("visx-line",s),x1:n.x,y1:n.y,x2:o.x,y2:o.y,fill:i,shapeRendering:f?"crispEdges":"auto"},c))}var r4=["children","data","x","y","fill","className","curve","innerRef","defined"];function jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jc.apply(this,arguments)}function o4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function a4(e){var t=e.children,n=e.data,r=n===void 0?[]:n,o=e.x,a=e.y,i=e.fill,s=i===void 0?"transparent":i,l=e.className,c=e.curve,f=e.innerRef,d=e.defined,h=d===void 0?function(){return!0}:d,g=o4(e,r4),p=e4({x:o,y:a,defined:h,curve:c});return t?u.createElement(u.Fragment,null,t({path:p})):u.createElement("path",jc({ref:f,className:ct("visx-linepath",l),d:p(r)||"",fill:s,strokeLinecap:"round"},g))}var i4=["className","innerRef"];function zc(){return zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zc.apply(this,arguments)}function s4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function l4(e){var t=e.className,n=e.innerRef,r=s4(e,i4);return u.createElement("rect",zc({ref:n,className:ct("visx-bar",t)},r))}var c4=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function Bc(){return Bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bc.apply(this,arguments)}function u4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function d4(e){var t=e.all,n=e.bottom,r=e.bottomLeft,o=e.bottomRight,a=e.height,i=e.left,s=e.radius,l=e.right,c=e.top,f=e.topLeft,d=e.topRight,h=e.width,g=e.x,p=e.y;d=t||c||l||d,o=t||n||l||o,r=t||n||i||r,f=t||c||i||f,s=Math.max(1,Math.min(s,Math.min(h,a)/2));var m=2*s,x=("M"+(g+s)+","+p+" h"+(h-m)+`
70
70
  `+(d?"a"+s+","+s+" 0 0 1 "+s+","+s:"h"+s+"v"+s)+`
71
71
  v`+(a-m)+`
72
72
  `+(o?"a"+s+","+s+" 0 0 1 "+-s+","+s:"v"+s+"h"+-s)+`
@@ -75,17 +75,17 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var k=ie(X,Z,re,oe,ue+".
75
75
  v`+(m-a)+`
76
76
  `+(f?"a"+s+","+s+" 0 0 1 "+s+","+-s:"v"+-s+"h"+s)+`
77
77
  z`).split(`
78
- `).join("");return x}function o4(e){var t=e.children,n=e.className,r=e.innerRef,o=e.x,a=e.y,i=e.width,s=e.height,l=e.radius,c=e.all,f=c===void 0?!1:c,d=e.top,h=d===void 0?!1:d,g=e.bottom,p=g===void 0?!1:g,m=e.left,x=m===void 0?!1:m,b=e.right,v=b===void 0?!1:b,w=e.topLeft,E=w===void 0?!1:w,S=e.topRight,M=S===void 0?!1:S,N=e.bottomLeft,T=N===void 0?!1:N,O=e.bottomRight,F=O===void 0?!1:O,j=n4(e,t4),H=r4({x:o,y:a,width:i,height:s,radius:l,all:f,top:h,bottom:p,left:x,right:v,topLeft:E,topRight:M,bottomLeft:T,bottomRight:F});return t?u.createElement(u.Fragment,null,t({path:H})):u.createElement("path",Lc({ref:r,className:ct("visx-bar-rounded",n),d:H},j))}function a4(e){return typeof(e==null?void 0:e.x)=="number"?e==null?void 0:e.x:0}function i4(e){return typeof(e==null?void 0:e.y)=="number"?e==null?void 0:e.y:0}function s4(e){return e==null?void 0:e.source}function l4(e){return e==null?void 0:e.target}var c4=["className","children","data","innerRef","path","x","y","source","target"];function Fc(){return Fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fc.apply(this,arguments)}function u4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function d4(e){var t=e.source,n=e.target,r=e.x,o=e.y;return function(a){var i=UP();return i.x(r),i.y(o),i.source(t),i.target(n),i(a)}}function f4(e){var t=e.className,n=e.children,r=e.data,o=e.innerRef,a=e.path,i=e.x,s=i===void 0?i4:i,l=e.y,c=l===void 0?a4:l,f=e.source,d=f===void 0?s4:f,h=e.target,g=h===void 0?l4:h,p=u4(e,c4),m=a||d4({source:d,target:g,x:s,y:c});return n?u.createElement(u.Fragment,null,n({path:m})):u.createElement("path",Fc({ref:o,className:ct("visx-link visx-link-horizontal-diagonal",t),d:m(r)||""},p))}var h4=["AxisComponent"];function Ii(){return Ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ii.apply(this,arguments)}function p4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function m4(e){var t,n,r,o,a,i,s,l=e.AxisComponent,c=p4(e,h4),f=u.useContext(qt),d=f.theme,h=f.xScale,g=f.yScale,p=f.margin,m=f.width,x=f.height,b=c.orientation,v=u.useMemo(function(){var T,O,F,j;return b==="left"||b==="right"?d==null||(T=d.axisStyles)==null||(O=T.y)==null?void 0:O[b]:d==null||(F=d.axisStyles)==null||(j=F.x)==null?void 0:j[b]},[d,b]),w=c.tickLabelProps,E=u.useMemo(function(){return w||v?function(T,O,F){return Ii({},v==null?void 0:v.tickLabel,{width:b==="left"||b==="right"?p==null?void 0:p[b]:void 0},typeof w=="function"?w(T,O,F):w)}:void 0},[w,v,b,p]),S=b==="bottom"?(x??0)-((t=p==null?void 0:p.bottom)!=null?t:0):b==="top"&&(n=p==null?void 0:p.top)!=null?n:0,M=b==="left"?(r=p==null?void 0:p.left)!=null?r:0:b==="right"?(m??0)-((o=p==null?void 0:p.right)!=null?o:0):0,N=b==="left"||b==="right"?g:h;return N?u.createElement(l,Ii({top:S,left:M,labelProps:v==null?void 0:v.axisLabel,stroke:v==null||(a=v.axisLine)==null?void 0:a.stroke,strokeWidth:v==null||(i=v.axisLine)==null?void 0:i.strokeWidth,tickLength:v==null?void 0:v.tickLength,tickStroke:v==null||(s=v.tickLine)==null?void 0:s.stroke},c,{tickLabelProps:E,scale:N})):null}var Li={};Li.__esModule=!0;var g4=Li.default=x4,v4=Qg(u),b4=Qg(oi),y4=["from","to","fill","className","innerRef"];function Qg(e){return e&&e.__esModule?e:{default:e}}function jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jc.apply(this,arguments)}function w4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function x4(e){var t=e.from,n=t===void 0?{x:0,y:0}:t,r=e.to,o=r===void 0?{x:1,y:1}:r,a=e.fill,i=a===void 0?"transparent":a,s=e.className,l=e.innerRef,c=w4(e,y4),f=n.x===o.x||n.y===o.y;return v4.default.createElement("line",jc({ref:l,className:(0,b4.default)("visx-line",s),x1:n.x,y1:n.y,x2:o.x,y2:o.y,fill:i,shapeRendering:f?"crispEdges":"auto"},c))}var Fi={};Fi.__esModule=!0,Fi.default=$4;function $4(e){return"bandwidth"in e?e.bandwidth():0}var S4=nv,Jg=qo(ri),Rg=qo(u),C4=qo(oi),E4=qo(Li),T4=Gg,ev=mm,tv=Ug,M4=qo(Fi),P4=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function qo(e){return e&&e.__esModule?e:{default:e}}function zc(){return zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zc.apply(this,arguments)}function k4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function nv(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.scale,i=e.width,s=e.stroke,l=s===void 0?"#eaf0f6":s,c=e.strokeWidth,f=c===void 0?1:c,d=e.strokeDasharray,h=e.className,g=e.children,p=e.numTicks,m=p===void 0?10:p,x=e.lineStyle,b=e.offset,v=e.tickValues,w=k4(e,P4),E=v??(0,tv.getTicks)(a,m),S=(b??0)+(0,M4.default)(a)/2,M=E.map(function(N,T){var O,F=((O=(0,tv.coerceNumber)(a(N)))!=null?O:0)+S;return{index:T,from:new ev.Point({x:0,y:F}),to:new ev.Point({x:i,y:F})}});return Rg.default.createElement(T4.Group,{className:(0,C4.default)("visx-rows",h),top:n,left:o},g?g({lines:M}):M.map(function(N){var T=N.from,O=N.to,F=N.index;return Rg.default.createElement(E4.default,zc({key:"row-line-"+F,from:T,to:O,stroke:l,strokeWidth:f,strokeDasharray:d,style:x},w))}))}nv.propTypes={tickValues:Jg.default.array,width:Jg.default.number.isRequired};var O4=sv,rv=Ko(ri),ov=Ko(u),N4=Ko(oi),_4=Ko(Li),D4=Gg,av=mm,iv=Ug,A4=Ko(Fi),I4=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function Ko(e){return e&&e.__esModule?e:{default:e}}function Bc(){return Bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bc.apply(this,arguments)}function L4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function sv(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.scale,i=e.height,s=e.stroke,l=s===void 0?"#eaf0f6":s,c=e.strokeWidth,f=c===void 0?1:c,d=e.strokeDasharray,h=e.className,g=e.numTicks,p=g===void 0?10:g,m=e.lineStyle,x=e.offset,b=e.tickValues,v=e.children,w=L4(e,I4),E=b??(0,iv.getTicks)(a,p),S=(x??0)+(0,A4.default)(a)/2,M=E.map(function(N,T){var O,F=((O=(0,iv.coerceNumber)(a(N)))!=null?O:0)+S;return{index:T,from:new av.Point({x:F,y:0}),to:new av.Point({x:F,y:i})}});return ov.default.createElement(D4.Group,{className:(0,N4.default)("visx-columns",h),top:n,left:o},v?v({lines:M}):M.map(function(N){var T=N.from,O=N.to,F=N.index;return ov.default.createElement(_4.default,Bc({key:"column-line-"+F,from:T,to:O,stroke:l,strokeWidth:f,strokeDasharray:d,style:m},w))}))}sv.propTypes={tickValues:rv.default.array,height:rv.default.number.isRequired};var F4=["rows","columns","GridRowsComponent","GridColumnsComponent"];function ji(){return ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ji.apply(this,arguments)}function j4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function lv(e){var t=e.rows,n=t===void 0?!0:t,r=e.columns,o=r===void 0?!0:r,a=e.GridRowsComponent,i=e.GridColumnsComponent,s=j4(e,F4),l=u.useContext(qt),c=l.theme,f=l.xScale,d=l.yScale,h=l.margin,g=l.innerWidth,p=l.innerHeight,m=c==null?void 0:c.gridStyles;return u.createElement(u.Fragment,null,n&&d&&g!=null&&u.createElement(a,ji({left:h==null?void 0:h.left,lineStyle:m,width:g,scale:d},s)),o&&f&&p!=null&&u.createElement(i,ji({top:h==null?void 0:h.top,lineStyle:m,height:p,scale:f},s)))}lv.propTypes={rows:se.bool,columns:se.bool};var z4={top:"top",left:"left",right:"right",bottom:"bottom"};const It=z4;function B4(e){var t=e.labelOffset,n=e.labelProps,r=e.orientation,o=e.range,a=e.tickLabelFontSize,i=e.tickLength,s=r===It.left||r===It.top?-1:1,l,c,f;if(r===It.top||r===It.bottom){var d=r===It.bottom&&typeof n.fontSize=="number"?n.fontSize:0;l=(Number(o[0])+Number(o[o.length-1]))/2,c=s*(i+t+a+d)}else l=s*((Number(o[0])+Number(o[o.length-1]))/2),c=-(i+t),f="rotate("+s*90+")";return{x:l,y:c,transform:f}}function Xo(){return Xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xo.apply(this,arguments)}function W4(e){var t=e.hideTicks,n=e.horizontal,r=e.orientation,o=e.tickClassName,a=e.tickComponent,i=e.tickLabelProps,s=e.tickStroke,l=s===void 0?"#222":s,c=e.tickTransform,f=e.ticks,d=e.strokeWidth,h=e.tickLineProps;return f.map(function(g){var p,m=g.value,x=g.index,b=g.from,v=g.to,w=g.formattedValue,E=(p=i[x])!=null?p:{},S=Math.max(10,typeof E.fontSize=="number"&&E.fontSize||0),M=v.y+(n&&r!==It.top?S:0);return u.createElement(qn,{key:"visx-tick-"+m+"-"+x,className:ct("visx-axis-tick",o),transform:c},!t&&u.createElement(Zg,Xo({from:b,to:v,stroke:l,strokeWidth:d,strokeLinecap:"square"},h)),a?a(Xo({},E,{x:v.x,y:M,formattedValue:w})):u.createElement(_l,Xo({x:v.x,y:M},E),w))})}function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zi.apply(this,arguments)}var cv={textAnchor:"middle",fontFamily:"Arial",fontSize:10,fill:"#222"};function V4(e){var t=e.axisFromPoint,n=e.axisLineClassName,r=e.axisToPoint,o=e.hideAxisLine,a=e.hideTicks,i=e.horizontal,s=e.label,l=s===void 0?"":s,c=e.labelClassName,f=e.labelOffset,d=f===void 0?14:f,h=e.labelProps,g=h===void 0?cv:h,p=e.orientation,m=p===void 0?It.bottom:p,x=e.scale,b=e.stroke,v=b===void 0?"#222":b,w=e.strokeDasharray,E=e.strokeWidth,S=E===void 0?1:E,M=e.tickClassName,N=e.tickComponent,T=e.tickLineProps,O=e.tickLabelProps,F=e.tickLength,j=F===void 0?8:F,H=e.tickStroke,G=H===void 0?"#222":H,L=e.tickTransform,C=e.ticks,_=e.ticksComponent,B=_===void 0?W4:_,V=zi({},cv,typeof O=="object"?O:null),D=C.map(function(W){var ne=W.value,Q=W.index;return typeof O=="function"?O(ne,Q,C):V}),A=Math.max.apply(Math,[10].concat(D.map(function(W){return typeof W.fontSize=="number"?W.fontSize:0})));return u.createElement(u.Fragment,null,B({hideTicks:a,horizontal:i,orientation:m,scale:x,tickClassName:M,tickComponent:N,tickLabelProps:D,tickStroke:G,tickTransform:L,ticks:C,strokeWidth:S,tickLineProps:T}),!o&&u.createElement(Zg,{className:ct("visx-axis-line",n),from:t,to:r,stroke:v,strokeWidth:S,strokeDasharray:w}),l&&u.createElement(_l,zi({className:ct("visx-axis-label",c)},B4({labelOffset:d,labelProps:g,orientation:m,range:x.range(),tickLabelFontSize:A,tickLength:j}),g),l))}function H4(e,t){t===void 0&&(t="center");var n=e;if(t!=="start"&&"bandwidth"in n){var r=n.bandwidth();return t==="center"&&(r/=2),n.round()&&(r=Math.round(r)),function(o){var a=n(o);return typeof a=="number"?a+r:a}}return e}function G4(e){var t=e;return"tickFormat"in t?t.tickFormat():Hg}function Bi(e,t){var n=e.x,r=e.y;return new Sn(t?{x:n,y:r}:{x:r,y:n})}function Wc(){return Wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wc.apply(this,arguments)}var Vc=0;function U4(e){return e===void 0&&(e=Vc),typeof e=="number"?{start:e,end:e}:Wc({start:Vc,end:Vc},e)}var Y4=["children","axisClassName","hideAxisLine","hideTicks","hideZero","innerRef","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function Hc(){return Hc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hc.apply(this,arguments)}function q4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Gc(e){var t=e.children,n=t===void 0?V4:t,r=e.axisClassName,o=e.hideAxisLine,a=o===void 0?!1:o,i=e.hideTicks,s=i===void 0?!1:i,l=e.hideZero,c=l===void 0?!1:l,f=e.innerRef,d=e.left,h=d===void 0?0:d,g=e.numTicks,p=g===void 0?10:g,m=e.orientation,x=m===void 0?It.bottom:m,b=e.rangePadding,v=b===void 0?0:b,w=e.scale,E=e.tickFormat,S=e.tickLength,M=S===void 0?8:S,N=e.tickValues,T=e.top,O=T===void 0?0:T,F=q4(e,Y4),j=E??G4(w),H=x===It.left,G=x===It.top,L=G||x===It.bottom,C=H4(w),_=H||G?-1:1,B=w.range(),V=U4(v),D=Bi({x:Number(B[0])+.5-V.start,y:0},L),A=Bi({x:Number(B[B.length-1])+.5+V.end,y:0},L),W=(N??Tc(w,p)).filter(function(Q){return!c||Q!==0&&Q!=="0"}).map(function(Q,re){return{value:Q,index:re}}),ne=W.map(function(Q){var re=Q.value,oe=Q.index,ue=Ec(C(re));return{value:re,index:oe,from:Bi({x:ue,y:0},L),to:Bi({x:ue,y:M*_},L),formattedValue:j(re,oe,W)}});return u.createElement(qn,{className:ct("visx-axis",r),innerRef:f,top:O,left:h},n(Hc({},F,{axisFromPoint:D,axisToPoint:A,hideAxisLine:a,hideTicks:s,hideZero:c,horizontal:L,numTicks:p,orientation:x,rangePadding:v,scale:w,tickFormat:j,tickLength:M,tickPosition:C,tickSign:_,ticks:ne})))}function Uc(){return Uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uc.apply(this,arguments)}function uv(e){return u.createElement(m4,Uc({AxisComponent:Gc},e))}function Yc(){return Yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yc.apply(this,arguments)}function K4(e){return u.createElement(lv,Yc({GridRowsComponent:S4,GridColumnsComponent:O4},e))}var X4=["tooltipOpen"];function Z4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Wi(){return Wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wi.apply(this,arguments)}function qc(e){var t=u.useState(Wi({tooltipOpen:!1},e)),n=t[0],r=t[1],o=u.useCallback(function(i){return r(typeof i=="function"?function(s){s.tooltipOpen;var l=Z4(s,X4);return Wi({},i(l),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:i.tooltipLeft,tooltipTop:i.tooltipTop,tooltipData:i.tooltipData})},[r]),a=u.useCallback(function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[r]);return{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:o,hideTooltip:a}}function Q4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Kc(e,t)}function Kc(e,t){return Kc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Kc(e,t)}var dv=function(e){Q4(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},n.render=function(){return!this.node&&typeof document<"u"&&(this.node=document.createElement("div"),this.props.zIndex!=null&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node?pn.createPortal(this.props.children,this.node):null},t}(u.PureComponent);dv.propTypes={zIndex:se.oneOfType([se.number,se.string])};var J4=["className","top","left","offsetLeft","offsetTop","style","children","unstyled","applyPositionStyle"];function Vi(){return Vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vi.apply(this,arguments)}function R4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Xc={position:"absolute",backgroundColor:"white",color:"#666666",padding:".3rem .5rem",borderRadius:"3px",fontSize:"14px",boxShadow:"0 1px 2px rgba(33,33,33,0.2)",lineHeight:"1em",pointerEvents:"none"},Zc=u.forwardRef(function(e,t){var n=e.className,r=e.top,o=e.left,a=e.offsetLeft,i=a===void 0?10:a,s=e.offsetTop,l=s===void 0?10:s,c=e.style,f=c===void 0?Xc:c,d=e.children,h=e.unstyled,g=h===void 0?!1:h,p=e.applyPositionStyle,m=p===void 0?!1:p,x=R4(e,J4);return u.createElement("div",Vi({ref:t,className:ct("visx-tooltip",n),style:Vi({top:r==null||l==null?r:r+l,left:o==null||i==null?o:o+i},m&&{position:"absolute"},!g&&f)},x),d)});Zc.propTypes={children:se.node,className:se.string,left:se.number,offsetLeft:se.number,offsetTop:se.number,top:se.number,applyPositionStyle:se.bool,unstyled:se.bool},Zc.displayName="Tooltip";const fv=Zc;function Qc(){return Qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qc.apply(this,arguments)}function ek(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jc(e,t)}function Jc(e,t){return Jc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Jc(e,t)}var hv={top:0,right:0,bottom:0,left:0,width:0,height:0};function nk(e){var t;return t=function(n){tk(r,n);function r(a){var i;return i=n.call(this,a)||this,i.state={rect:void 0,parentRect:void 0},i.nodeRef=u.createRef(),i.getRects=i.getRects.bind(ek(i)),i}var o=r.prototype;return o.componentDidMount=function(){var i,s=this;this.node=(i=this.nodeRef)!=null&&i.current?this.nodeRef.current:pn.findDOMNode(this),this.setState(function(){return s.getRects()})},o.getRects=function(){if(!this.node)return this.state;var i=this.node,s=i.parentNode,l=i.getBoundingClientRect?i.getBoundingClientRect():hv,c=s!=null&&s.getBoundingClientRect?s.getBoundingClientRect():hv;return{rect:l,parentRect:c}},o.render=function(){return u.createElement(e,Qc({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},r}(u.PureComponent),t.displayName="withBoundingRects("+(e.displayName||"")+")",t}var pv=u.createContext({isFlippedVertically:!1,isFlippedHorizontally:!1}),rk=pv.Provider;pv.Consumer;var ok=["children","getRects","left","offsetLeft","offsetTop","parentRect","rect","style","top","unstyled","nodeRef"];function Hi(){return Hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hi.apply(this,arguments)}function ak(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function mv(e){var t=e.children;e.getRects;var n=e.left,r=n===void 0?0:n,o=e.offsetLeft,a=o===void 0?10:o,i=e.offsetTop,s=i===void 0?10:i,l=e.parentRect,c=e.rect,f=e.style,d=f===void 0?Xc:f,h=e.top,g=h===void 0?0:h,p=e.unstyled,m=p===void 0?!1:p,x=e.nodeRef,b=ak(e,ok),v,w=!1,E=!1;if(c&&l){var S=r,M=g;if(l.width){var N=S+a+c.width-l.width,T=c.width-S-a;w=N>0&&N>T}else{var O=S+a+c.width-window.innerWidth,F=c.width-S-a;w=O>0&&O>F}if(l.height){var j=M+s+c.height-l.height,H=c.height-M-s;E=j>0&&j>H}else E=M+s+c.height>window.innerHeight;S=w?S-c.width-a:S+a,M=E?M-c.height-s:M+s,S=Math.round(S),M=Math.round(M),v="translate("+S+"px, "+M+"px)"}return u.createElement(fv,Hi({ref:x,style:Hi({left:0,top:0,transform:v},!m&&d)},b),u.createElement(rk,{value:{isFlippedVertically:!E,isFlippedHorizontally:!w}},t))}mv.propTypes={nodeRef:se.oneOfType([se.string,se.func,se.object])};const ik=nk(mv);var sk=["detectBounds","zIndex"],lk=["left","top","detectBounds","zIndex"];function Rc(){return Rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rc.apply(this,arguments)}function gv(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function eu(e){var t=e===void 0?{}:e,n=t.detectBounds,r=n===void 0?!0:n,o=t.zIndex,a=gv(t,sk),i=j6(a),s=i[0],l=i[1],c=i[2],f=u.useState(!1),d=f[0],h=f[1];u.useEffect(function(){h(!1)},[]);var g=u.useMemo(function(){return function(p){var m=p.left,x=m===void 0?0:m,b=p.top,v=b===void 0?0:b,w=p.detectBounds,E=p.zIndex,S=gv(p,lk),M=w??r,N=E??o,T=M?ik:fv,O=d?0:window.scrollX,F=d?0:window.scrollY,j=x+(l.left||0)+O,H=v+(l.top||0)+F;return u.createElement(dv,{zIndex:N},u.createElement(T,Rc({left:j,top:H},S)))}},[r,o,l.left,l.top,d]);return{containerRef:s,containerBounds:l,forceRefreshBounds:c,TooltipInPortal:g}}var ck=u.createContext(null);const Zo=ck;var uk=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],dk=["x","y"];function vv(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cn.apply(this,arguments)}var tu={position:"absolute",pointerEvents:"none",fontSize:0,lineHeight:0},fk={position:"absolute",left:0,top:0,opacity:0,width:0,height:0,pointerEvents:"none"};function bv(e){var t=u.useContext(qt)||{},n=t.theme;return u.createElement("circle",cn({cx:e.x,cy:e.y,r:e.size,fill:e.color,stroke:n==null?void 0:n.backgroundColor,strokeWidth:1.5,paintOrder:"fill"},e.glyphStyle))}bv.propTypes={isNearestDatum:se.bool.isRequired};function hk(e){return u.createElement(bv,e)}function yv(e){var t,n,r,o,a,i,s,l,c,f,d,h,g,p=e.debounce,m=e.detectBounds,x=e.horizontalCrosshairStyle,b=e.glyphStyle,v=e.renderTooltip,w=e.renderGlyph,E=w===void 0?hk:w,S=e.resizeObserverPolyfill,M=e.scroll,N=M===void 0?!0:M,T=e.showDatumGlyph,O=T===void 0?!1:T,F=e.showHorizontalCrosshair,j=F===void 0?!1:F,H=e.showSeriesGlyphs,G=H===void 0?!1:H,L=e.showVerticalCrosshair,C=L===void 0?!1:L,_=e.snapTooltipToDatumX,B=_===void 0?!1:_,V=e.snapTooltipToDatumY,D=V===void 0?!1:V,A=e.verticalCrosshairStyle,W=e.zIndex,ne=vv(e,uk),Q=u.useContext(qt)||{},re=Q.colorScale,oe=Q.theme,ue=Q.innerHeight,X=Q.innerWidth,le=Q.margin,U=Q.xScale,Z=Q.yScale,ie=Q.dataRegistry,k=Q.resizeObserverPolyfill,te=u.useContext(Zo),ae=eu({debounce:p,detectBounds:m,polyfill:k||S,scroll:N,zIndex:W}),me=ae.containerRef,ye=ae.TooltipInPortal,Ee=ae.forceRefreshBounds,Ke=u.useCallback(function(it){var Tt;me((Tt=it==null?void 0:it.parentElement)!=null?Tt:null)},[me]),Xe=te!=null&&te.tooltipOpen?v(cn({},te,{colorScale:re})):null,ot=(te==null?void 0:te.tooltipOpen)&&Xe!=null,vt=u.useRef(!1);u.useEffect(function(){ot&&!vt.current&&Ee(),vt.current=ot},[ot,Ee]);var Kt=te==null?void 0:te.tooltipLeft,je=te==null?void 0:te.tooltipTop,cr=U?Pc(U):0,Qr=Z?Pc(Z):0,_n=u.useCallback(function(it,Tt){var dn,fn,yt=ie==null?void 0:ie.get(it),fr=yt==null?void 0:yt.xAccessor,hr=yt==null?void 0:yt.yAccessor,to=U&&fr?(dn=Number(U(fr(Tt)))+cr/2)!=null?dn:0:void 0,no=Z&&hr?(fn=Number(Z(hr(Tt)))+Qr/2)!=null?fn:0:void 0;return{left:to,top:no}},[ie,cr,Qr,U,Z]),Ze=te==null||(t=te.tooltipData)==null?void 0:t.nearestDatum,ft=(n=Ze==null?void 0:Ze.key)!=null?n:"";if(ot&&Ze&&(B||D)){var at=_n(ft,Ze.datum),Ft=at.left,un=at.top;Kt=B&&Ct(Ft)?Ft:Kt,je=D&&Ct(un)?un:je}var jt=[];if(ot&&(O||G)){var Jr,Rr=Number((Jr=b==null?void 0:b.radius)!=null?Jr:4);if(G){var ur,eo;Object.values((ur=te==null||(eo=te.tooltipData)==null?void 0:eo.datumByKey)!=null?ur:{}).forEach(function(it){var Tt,dn,fn,yt=it.key,fr=it.datum,hr=it.index,to=(Tt=(dn=re==null?void 0:re(yt))!=null?dn:oe==null||(fn=oe.htmlLabel)==null?void 0:fn.color)!=null?Tt:"#222",no=_n(yt,fr),ss=no.left,ls=no.top;!Ct(ss)||!Ct(ls)||jt.push({key:yt,color:to,datum:fr,index:hr,size:Rr,x:ss,y:ls,glyphStyle:b,isNearestDatum:Ze?Ze.key===yt:!1})})}else if(Ze){var dr=_n(ft,Ze.datum),Et=dr.left,zt=dr.top;if(Ct(Et)&&Ct(zt)){var Dn,An,ra,os,as,bt,is=(Dn=(An=(ra=(os=ft&&(re==null?void 0:re(ft)))!=null?os:null)!=null?ra:oe==null||(as=oe.gridStyles)==null?void 0:as.stroke)!=null?An:oe==null||(bt=oe.htmlLabel)==null?void 0:bt.color)!=null?Dn:"#222";jt.push({key:ft,color:is,datum:Ze.datum,index:Ze.index,size:Rr,x:Et,y:zt,glyphStyle:b,isNearestDatum:!0})}}}return u.createElement(u.Fragment,null,u.createElement("svg",{ref:Ke,style:fk}),ot&&u.createElement(u.Fragment,null,C&&u.createElement(ye,{className:"visx-crosshair visx-crosshair-vertical",left:Kt,top:le==null?void 0:le.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:tu},u.createElement("svg",{width:"1",height:ue,overflow:"visible"},u.createElement("line",cn({x1:0,x2:0,y1:0,y2:ue,strokeWidth:1.5,stroke:(r=(o=oe==null||(a=oe.gridStyles)==null?void 0:a.stroke)!=null?o:oe==null||(i=oe.htmlLabel)==null?void 0:i.color)!=null?r:"#222"},A)))),j&&u.createElement(ye,{className:"visx-crosshair visx-crosshair-horizontal",left:le==null?void 0:le.left,top:je,offsetLeft:0,offsetTop:0,detectBounds:!1,style:tu},u.createElement("svg",{width:X,height:"1",overflow:"visible"},u.createElement("line",cn({x1:0,x2:X,y1:0,y2:0,strokeWidth:1.5,stroke:(s=(l=oe==null||(c=oe.gridStyles)==null?void 0:c.stroke)!=null?l:oe==null||(f=oe.htmlLabel)==null?void 0:f.color)!=null?s:"#222"},x)))),jt.map(function(it,Tt){var dn=it.x,fn=it.y,yt=vv(it,dk);return u.createElement(ye,{key:Tt,className:"visx-tooltip-glyph",left:dn,top:fn,offsetLeft:0,offsetTop:0,detectBounds:!1,style:tu},u.createElement("svg",{overflow:"visible"},E(cn({x:0,y:0},yt))))}),u.createElement(ye,cn({left:Kt,top:je,style:cn({},Xc,{background:(d=oe==null?void 0:oe.backgroundColor)!=null?d:"white",boxShadow:"0 1px 2px "+(oe!=null&&(h=oe.htmlLabel)!=null&&h.color?(oe==null||(g=oe.htmlLabel)==null?void 0:g.color)+"55":"#22222255")},oe==null?void 0:oe.htmlLabel)},ne),Xe)))}yv.propTypes={renderTooltip:se.func.isRequired,renderGlyph:se.func,snapTooltipToDatumX:se.bool,snapTooltipToDatumY:se.bool,showVerticalCrosshair:se.bool,showHorizontalCrosshair:se.bool,showDatumGlyph:se.bool,showSeriesGlyphs:se.bool};function wv(e){var t=u.useContext(Zo);return t!=null&&t.tooltipOpen?u.createElement(yv,e):null}wv.propTypes={renderTooltip:se.func.isRequired,renderGlyph:se.func,snapTooltipToDatumX:se.bool,snapTooltipToDatumY:se.bool,showVerticalCrosshair:se.bool,showHorizontalCrosshair:se.bool,showDatumGlyph:se.bool,showSeriesGlyphs:se.bool};var pk=si,mk=function(){return pk.Date.now()},gk=mk,vk=/\s/;function bk(e){for(var t=e.length;t--&&vk.test(e.charAt(t)););return t}var yk=bk,wk=yk,xk=/^\s+/;function $k(e){return e&&e.slice(0,wk(e)+1).replace(xk,"")}var Sk=$k;function Ck(e){return e!=null&&typeof e=="object"}var Ek=Ck,Tk=om,Mk=Ek,Pk="[object Symbol]";function kk(e){return typeof e=="symbol"||Mk(e)&&Tk(e)==Pk}var Ok=kk,Nk=Sk,xv=li,_k=Ok,$v=0/0,Dk=/^[-+]0x[0-9a-f]+$/i,Ak=/^0b[01]+$/i,Ik=/^0o[0-7]+$/i,Lk=parseInt;function Fk(e){if(typeof e=="number")return e;if(_k(e))return $v;if(xv(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=xv(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Nk(e);var n=Ak.test(e);return n||Ik.test(e)?Lk(e.slice(2),n?2:8):Dk.test(e)?$v:+e}var jk=Fk,zk=li,nu=gk,Sv=jk,Bk="Expected a function",Wk=Math.max,Vk=Math.min;function Hk(e,t,n){var r,o,a,i,s,l,c=0,f=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(Bk);t=Sv(t)||0,zk(n)&&(f=!!n.leading,d="maxWait"in n,a=d?Wk(Sv(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h);function g(M){var N=r,T=o;return r=o=void 0,c=M,i=e.apply(T,N),i}function p(M){return c=M,s=setTimeout(b,t),f?g(M):i}function m(M){var N=M-l,T=M-c,O=t-N;return d?Vk(O,a-T):O}function x(M){var N=M-l,T=M-c;return l===void 0||N>=t||N<0||d&&T>=a}function b(){var M=nu();if(x(M))return v(M);s=setTimeout(b,m(M))}function v(M){return s=void 0,h&&r?g(M):(r=o=void 0,i)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function E(){return s===void 0?i:v(nu())}function S(){var M=nu(),N=x(M);if(r=arguments,o=this,l=M,N){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(b,t),g(l)}return s===void 0&&(s=setTimeout(b,t)),i}return S.cancel=w,S.flush=E,S}var Cv=Hk;const Ev=pr(Cv);var Gk=Pv,Pn=Mv(ri),Uk=Mv(Cv),Yr=qk(u),Yk=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall","resizeObserverPolyfill"];function Tv(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Tv=function(o){return o?n:t})(e)}function qk(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Tv(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function Mv(e){return e&&e.__esModule?e:{default:e}}function Gi(){return Gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gi.apply(this,arguments)}function Kk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Xk=[],Zk={width:"100%",height:"100%"};function Pv(e){var t=e.className,n=e.children,r=e.debounceTime,o=r===void 0?300:r,a=e.ignoreDimensions,i=a===void 0?Xk:a,s=e.parentSizeStyles,l=s===void 0?Zk:s,c=e.enableDebounceLeadingCall,f=c===void 0?!0:c,d=e.resizeObserverPolyfill,h=Kk(e,Yk),g=(0,Yr.useRef)(null),p=(0,Yr.useRef)(0),m=(0,Yr.useState)({width:0,height:0,top:0,left:0}),x=m[0],b=m[1],v=(0,Yr.useMemo)(function(){var w=Array.isArray(i)?i:[i];return(0,Uk.default)(function(E){b(function(S){var M=Object.keys(S),N=M.filter(function(O){return S[O]!==E[O]}),T=N.every(function(O){return w.includes(O)});return T?S:E})},o,{leading:f})},[o,f,i]);return(0,Yr.useEffect)(function(){var w=d||window.ResizeObserver,E=new w(function(S){S.forEach(function(M){var N,T=(N=M==null?void 0:M.contentRect)!=null?N:{},O=T.left,F=T.top,j=T.width,H=T.height;p.current=window.requestAnimationFrame(function(){v({width:j,height:H,top:F,left:O})})})});return g.current&&E.observe(g.current),function(){window.cancelAnimationFrame(p.current),E.disconnect(),v.cancel()}},[v,d]),Yr.default.createElement("div",Gi({style:l,ref:g,className:t},h),n(Gi({},x,{ref:g.current,resize:v})))}Pv.propTypes={className:Pn.default.string,debounceTime:Pn.default.number,enableDebounceLeadingCall:Pn.default.bool,ignoreDimensions:Pn.default.oneOfType([Pn.default.any,Pn.default.arrayOf(Pn.default.any)]),children:Pn.default.func.isRequired};var Qk=u.createContext(null);const kv=Qk;function kn(e,t,n){var r=u.useContext(kv),o=u.useRef();o.current=n;var a=u.useCallback(function(i,s,l){r&&r.emit(i,{event:s,svgPoint:R6(s),source:l})},[r]);return u.useEffect(function(){if(r&&e&&t){var i=function(l){var c;(!o.current||l!=null&&l.source&&(c=o.current)!=null&&c.includes(l.source))&&t(l)};return r.on(e,i),function(){return r==null?void 0:r.off(e,i)}}},[r,e,t]),r?a:null}function Jk(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(r){r(n)}),(e.get("*")||[]).slice().map(function(r){r(t,n)})}}}function Rk(e){var t=e.children,n=u.useMemo(function(){return Jk()},[]);return u.createElement(kv.Provider,{value:n},t)}function ru(){return ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ru.apply(this,arguments)}function Ov(e){var t=e.hideTooltipDebounceMs,n=t===void 0?400:t,r=e.children,o=qc(void 0),a=o.tooltipOpen,i=o.tooltipLeft,s=o.tooltipTop,l=o.tooltipData,c=o.updateTooltip,f=o.hideTooltip,d=u.useRef(null);function h(){d.current&&(d.current.cancel(),d.current=null)}u.useEffect(function(){return h},[]);var g=u.useRef(function(x){var b=x.svgPoint,v=x.index,w=x.key,E=x.datum,S=x.distanceX,M=x.distanceY;h();var N=Ct(S)?S:1/0,T=Ct(M)?M:1/0,O=Math.sqrt(Math.pow(N,2)+Math.pow(T,2));c(function(F){var j,H,G,L=F.tooltipData,C=L!=null&&L.nearestDatum&&Ct(L.nearestDatum.distance)?L.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:b==null?void 0:b.x,tooltipTop:b==null?void 0:b.y,tooltipData:{nearestDatum:((j=L==null||(H=L.nearestDatum)==null?void 0:H.key)!=null?j:"")!==w&&C<O?L==null?void 0:L.nearestDatum:{key:w,index:v,datum:E,distance:O},datumByKey:ru({},L==null?void 0:L.datumByKey,(G={},G[w]={datum:E,index:v,key:w},G))}}})}),p=u.useCallback(function(){d.current=Ev(f,n),d.current()},[f,n]),m=u.useMemo(function(){return{tooltipOpen:a,tooltipLeft:i,tooltipTop:s,tooltipData:l,updateTooltip:c,showTooltip:g.current,hideTooltip:p}},[p,l,i,a,s,c]);return u.createElement(Zo.Provider,{value:m},r)}Ov.propTypes={hideTooltipDebounceMs:se.number,children:se.node.isRequired};const eO=mr(X7);var Qo={},ou={};ou.__esModule=!0,ou.default=tO;function tO(e,t){t.domain&&("nice"in e||"quantiles"in e||"padding"in e,e.domain(t.domain))}var au={};au.__esModule=!0,au.default=nO;function nO(e,t){t.range&&("padding"in e,e.range(t.range))}var iu={};iu.__esModule=!0,iu.default=rO;function rO(e,t){"align"in e&&"align"in t&&typeof t.align<"u"&&e.align(t.align)}var su={};su.__esModule=!0,su.default=oO;function oO(e,t){"base"in e&&"base"in t&&typeof t.base<"u"&&e.base(t.base)}var lu={};lu.__esModule=!0,lu.default=aO;function aO(e,t){"clamp"in e&&"clamp"in t&&typeof t.clamp<"u"&&e.clamp(t.clamp)}var cu={};cu.__esModule=!0,cu.default=iO;function iO(e,t){"constant"in e&&"constant"in t&&typeof t.constant<"u"&&e.constant(t.constant)}var uu={};uu.__esModule=!0,uu.default=sO;function sO(e,t){"exponent"in e&&"exponent"in t&&typeof t.exponent<"u"&&e.exponent(t.exponent)}var du={},fu={};const Nv=mr(rP);fu.__esModule=!0,fu.default=lO;var On=Nv,_v={lab:On.interpolateLab,hcl:On.interpolateHcl,"hcl-long":On.interpolateHclLong,hsl:On.interpolateHsl,"hsl-long":On.interpolateHslLong,cubehelix:On.interpolateCubehelix,"cubehelix-long":On.interpolateCubehelixLong,rgb:On.interpolateRgb};function lO(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return _v[e]}var t=e.type,n=e.gamma,r=_v[t];return typeof n>"u"?r:r.gamma(n)}du.__esModule=!0,du.default=dO;var cO=uO(fu);function uO(e){return e&&e.__esModule?e:{default:e}}function dO(e,t){if("interpolate"in t&&"interpolate"in e&&typeof t.interpolate<"u"){var n=(0,cO.default)(t.interpolate);e.interpolate(n)}}var hu={};const fO=mr(iP);var pu={};pu.__esModule=!0,pu.default=mO;var hO=new Date(Date.UTC(2020,1,2,3,4,5)),pO="%Y-%m-%d %H:%M";function mO(e){var t=e.tickFormat(1,pO)(hO);return t==="2020-02-02 03:04"}hu.__esModule=!0,hu.default=bO;var ut=fO,gO=vO(pu);function vO(e){return e&&e.__esModule?e:{default:e}}var Dv={day:ut.timeDay,hour:ut.timeHour,minute:ut.timeMinute,month:ut.timeMonth,second:ut.timeSecond,week:ut.timeWeek,year:ut.timeYear},Av={day:ut.utcDay,hour:ut.utcHour,minute:ut.utcMinute,month:ut.utcMonth,second:ut.utcSecond,week:ut.utcWeek,year:ut.utcYear};function bO(e,t){if("nice"in t&&typeof t.nice<"u"&&"nice"in e){var n=t.nice;if(typeof n=="boolean")n&&e.nice();else if(typeof n=="number")e.nice(n);else{var r=e,o=(0,gO.default)(r);if(typeof n=="string")r.nice(o?Av[n]:Dv[n]);else{var a=n.interval,i=n.step,s=(o?Av[a]:Dv[a]).every(i);s!=null&&r.nice(s)}}}}var mu={};mu.__esModule=!0,mu.default=yO;function yO(e,t){"padding"in e&&"padding"in t&&typeof t.padding<"u"&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&typeof t.paddingInner<"u"&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&typeof t.paddingOuter<"u"&&e.paddingOuter(t.paddingOuter)}var gu={};gu.__esModule=!0,gu.default=wO;function wO(e,t){if(t.reverse){var n=e.range().slice().reverse();"padding"in e,e.range(n)}}var vu={};vu.__esModule=!0,vu.default=$O;var xO=Nv;function $O(e,t){"round"in t&&typeof t.round<"u"&&(t.round&&"interpolate"in t&&typeof t.interpolate<"u"?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(xO.interpolateRound))}var bu={};bu.__esModule=!0,bu.default=SO;function SO(e,t){"unknown"in e&&"unknown"in t&&typeof t.unknown<"u"&&e.unknown(t.unknown)}var yu={};yu.__esModule=!0,yu.default=CO;function CO(e,t){if("zero"in t&&t.zero===!0){var n=e.domain(),r=n[0],o=n[1],a=o<r,i=a?[o,r]:[r,o],s=i[0],l=i[1],c=[Math.min(0,s),Math.max(0,l)];e.domain(a?c.reverse():c)}}Qo.__esModule=!0,Qo.ALL_OPERATORS=void 0,Qo.default=BO;var EO=dt(ou),TO=dt(au),MO=dt(iu),PO=dt(su),kO=dt(lu),OO=dt(cu),NO=dt(uu),_O=dt(du),DO=dt(hu),AO=dt(mu),IO=dt(gu),LO=dt(vu),FO=dt(bu),jO=dt(yu);function dt(e){return e&&e.__esModule?e:{default:e}}var Iv=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"];Qo.ALL_OPERATORS=Iv;var zO={domain:EO.default,nice:DO.default,zero:jO.default,interpolate:_O.default,round:LO.default,align:MO.default,base:PO.default,clamp:kO.default,constant:OO.default,exponent:NO.default,padding:AO.default,range:TO.default,reverse:IO.default,unknown:FO.default};function BO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set(t),o=Iv.filter(function(a){return r.has(a)});return function(i,s){return typeof s<"u"&&o.forEach(function(l){zO[l](i,s)}),i}}var WO=YO,VO=eO,HO=GO(Qo);function GO(e){return e&&e.__esModule?e:{default:e}}var UO=(0,HO.default)("domain","range","reverse","unknown");function YO(e){return UO((0,VO.scaleOrdinal)(),e)}var Nn={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e8f7ff","#ccedff","#a3daff","#72c3fc","#4dadf7","#329af0","#228ae6","#1c7cd6","#1b6ec2","#1862ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},Jo=Nn.gray,wu=Jo[7],qO=[Nn.cyan[9],Nn.cyan[3],Nn.yellow[5],Nn.red[4],Nn.grape[8],Nn.grape[5],Nn.pink[9]];function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fe.apply(this,arguments)}var xu={fontFamily:"-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif",fontWeight:700,fontSize:12,textAnchor:"middle",pointerEvents:"none",letterSpacing:.4};function KO(e){var t,n,r,o,a,i,s=Fe({},xu,{fill:wu,stroke:"none"},e.svgLabelBig),l=Fe({},xu,{fontWeight:200,fontSize:11,fill:wu,stroke:"none"},e.svgLabelSmall),c=Fe({color:(t=(n=(r=(o=e.htmlLabel)==null?void 0:o.color)!=null?r:(a=e.svgLabelBig)==null?void 0:a.fill)!=null?n:(i=e.svgLabelSmall)==null?void 0:i.fill)!=null?t:wu},xu,e.htmlLabel);return{backgroundColor:e.backgroundColor,colors:[].concat(e.colors),htmlLabel:Fe({},c),svgLabelSmall:Fe({},l),svgLabelBig:Fe({},s),gridStyles:Fe({stroke:e.gridColor,strokeWidth:1},e.gridStyles),axisStyles:{x:{top:{axisLabel:Fe({},s,{dy:"-0.25em"}),axisLine:Fe({stroke:e.gridColorDark,strokeWidth:2},e.xAxisLineStyles),tickLabel:Fe({},l,{dy:"-0.25em"}),tickLength:e.tickLength,tickLine:Fe({strokeWidth:1,stroke:e.gridColor},e.xTickLineStyles)},bottom:{axisLabel:Fe({},s,{dy:"-0.25em"}),axisLine:Fe({stroke:e.gridColorDark,strokeWidth:2},e.xAxisLineStyles),tickLabel:Fe({},l,{dy:"0.125em"}),tickLength:e.tickLength,tickLine:Fe({strokeWidth:1,stroke:e.gridColor},e.xTickLineStyles)}},y:{left:{axisLabel:Fe({},s,{dx:"-1.25em"}),axisLine:Fe({stroke:e.gridColor,strokeWidth:1},e.yAxisLineStyles),tickLabel:Fe({},l,{textAnchor:"end",dx:"-0.25em",dy:"0.25em"}),tickLength:e.tickLength,tickLine:Fe({strokeWidth:1,stroke:e.gridColor},e.yTickLineStyles)},right:{axisLabel:Fe({},s,{dx:"1.25em"}),axisLine:Fe({stroke:e.gridColor,strokeWidth:1},e.yAxisLineStyles),tickLabel:Fe({},l,{textAnchor:"start",dx:"0.25em",dy:"0.25em"}),tickLength:e.tickLength,tickLine:Fe({strokeWidth:1,stroke:e.gridColor},e.yTickLineStyles)}}}}}const XO=KO({backgroundColor:"#fff",colors:qO,tickLength:4,svgLabelSmall:{fill:Jo[7]},svgLabelBig:{fill:Jo[9]},gridColor:Jo[5],gridColorDark:Jo[9]});var ZO=u.createContext(XO);const QO=ZO;var JO=function(){function e(){this.registry={},this.registryKeys=[]}var t=e.prototype;return t.registerData=function(r){var o=this,a=Array.isArray(r)?r:[r];a.forEach(function(i){i.key in o.registry&&o.registry[i.key]!=null&&console.debug("Overriding data registry key",i.key),o.registry[i.key]=i,o.registryKeys=Object.keys(o.registry)})},t.unregisterData=function(r){var o=this,a=Array.isArray(r)?r:[r];a.forEach(function(i){delete o.registry[i],o.registryKeys=Object.keys(o.registry)})},t.entries=function(){return Object.values(this.registry)},t.get=function(r){return this.registry[r]},t.keys=function(){return this.registryKeys},e}();function RO(){var e=u.useState(Math.random()),t=e[1],n=u.useMemo(function(){return new JO},[]);return u.useMemo(function(){return{registerData:function(){n.registerData.apply(n,arguments),t(Math.random())},unregisterData:function(){n.unregisterData.apply(n,arguments),t(Math.random())},entries:function(){return n.entries()},get:function(o){return n.get(o)},keys:function(){return n.keys()}}},[n])}var $u={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}};function e9(e){var t=u.useState({width:(e==null?void 0:e.width)==null?$u.width:e.width,height:(e==null?void 0:e.height)==null?$u.height:e.height,margin:(e==null?void 0:e.margin)==null?$u.margin:e.margin}),n=t[0],r=t[1],o=u.useCallback(function(a){(a.width!==n.width||a.height!==n.height||a.margin.left!==n.margin.left||a.margin.right!==n.margin.right||a.margin.top!==n.margin.top||a.margin.bottom!==n.margin.bottom)&&r(a)},[n.width,n.height,n.margin.left,n.margin.right,n.margin.bottom,n.margin.top]);return[n,o]}function Ui(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function t9(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Su(e){let t,n,r;e.length!==2?(t=Ui,n=(s,l)=>Ui(e(s),l),r=(s,l)=>e(s)-l):(t=e===Ui||e===t9?e:n9,n=e,r=e);function o(s,l,c=0,f=s.length){if(c<f){if(t(l,l)!==0)return f;do{const d=c+f>>>1;n(s[d],l)<0?c=d+1:f=d}while(c<f)}return c}function a(s,l,c=0,f=s.length){if(c<f){if(t(l,l)!==0)return f;do{const d=c+f>>>1;n(s[d],l)<=0?c=d+1:f=d}while(c<f)}return c}function i(s,l,c=0,f=s.length){const d=o(s,l,c,f-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:o,center:i,right:a}}function n9(){return 0}function r9(e){return e===null?NaN:+e}const o9=Su(Ui).left;Su(r9).center;function Lv(e,t){let n,r;if(t===void 0)for(const o of e)o!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)));else{let o=-1;for(let a of e)(a=t(a,++o,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}function a9(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(o);++r<o;)a[r]=e+r*n;return a}function Cu(e){return(e==null?void 0:e.type)==="band"||(e==null?void 0:e.type)==="ordinal"||(e==null?void 0:e.type)==="point"}function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qr.apply(this,arguments)}function i9(e){var t=e.dataRegistry,n=e.xRange,r=e.xScaleConfig,o=e.yRange,a=e.yScaleConfig,i=t.keys(),s=n[0],l=n[1],c=o[0],f=o[1],d=u.useMemo(function(){var g=i.map(function(b){return t.get(b)}),p=g.reduce(function(b,v){return v?b.concat(v.data.map(function(w){return v.xAccessor(w)})):b},[]);if(p.length!==0){var m=Cu(r)?p:Lv(p),x=Mc(r)?Yo(qr({range:[s,l],domain:m,zero:!0},r)):Yo(qr({range:[s,l],domain:m},r));return g.forEach(function(b){b!=null&&b.xScale&&(x=b.xScale(x))}),x}},[t,r,i,s,l]),h=u.useMemo(function(){var g=i.map(function(b){return t.get(b)}),p=g.reduce(function(b,v){return v?b.concat(v.data.map(function(w){return v.yAccessor(w)})):b},[]);if(p.length!==0){var m=Cu(a)?p:Lv(p),x=Mc(a)?Yo(qr({range:[c,f],domain:m,zero:!0},a)):Yo(qr({range:[c,f],domain:m},a));return g.forEach(function(b){b!=null&&b.yScale&&(x=b.yScale(x))}),x}},[t,a,i,c,f]);return{xScale:d,yScale:h}}function Fv(e){var t=e.initialDimensions,n=e.theme,r=e.xScale,o=e.yScale,a=e.children,i=e.horizontal,s=i===void 0?"auto":i,l=e.resizeObserverPolyfill,c=u.useContext(QO),f=n||c,d=e9(t),h=d[0],g=h.width,p=h.height,m=h.margin,x=d[1],b=Math.max(0,g-m.left-m.right),v=Math.max(0,p-m.top-m.bottom),w=RO(),E=i9({dataRegistry:w,xScaleConfig:r,yScaleConfig:o,xRange:[m.left,Math.max(0,g-m.right)],yRange:[Math.max(0,p-m.bottom),m.top]}),S=E.xScale,M=E.yScale,N=w.keys(),T=u.useMemo(function(){return WO({domain:N,range:f.colors})},[N,f.colors]),O=s==="auto"?Cu(o)||o.type==="time"||o.type==="utc":s,F=u.useMemo(function(){return{dataRegistry:w,registerData:w.registerData,unregisterData:w.unregisterData,xScale:S,yScale:M,colorScale:T,theme:f,width:g,height:p,margin:m,innerWidth:b,innerHeight:v,setDimensions:x,horizontal:O,resizeObserverPolyfill:l}},[T,w,p,O,v,b,m,x,f,g,S,M,l]);return u.createElement(qt.Provider,{value:F},a)}Fv.propTypes={children:se.node.isRequired,horizontal:se.oneOfType([se.bool,se.oneOf(["auto"])])};function jv(e){var t=e.source,n=e.onPointerOut,r=n===void 0?!0:n,o=e.onPointerMove,a=o===void 0?!0:o,i=e.onPointerUp,s=i===void 0?!0:i,l=e.onPointerDown,c=l===void 0?!0:l,f=e.onFocus,d=f===void 0?!1:f,h=e.onBlur,g=h===void 0?!1:h,p=kn(),m=u.useCallback(function(S){return p==null?void 0:p("pointermove",S,t)},[p,t]),x=u.useCallback(function(S){return p==null?void 0:p("pointerout",S,t)},[p,t]),b=u.useCallback(function(S){return p==null?void 0:p("pointerup",S,t)},[p,t]),v=u.useCallback(function(S){return p==null?void 0:p("pointerdown",S,t)},[p,t]),w=u.useCallback(function(S){return p==null?void 0:p("focus",S,t)},[p,t]),E=u.useCallback(function(S){return p==null?void 0:p("blur",S,t)},[p,t]);return{onPointerMove:a?m:void 0,onFocus:d?w:void 0,onBlur:g?E:void 0,onPointerOut:r?x:void 0,onPointerUp:s?b:void 0,onPointerDown:c?v:void 0}}var s9="GLYPHSERIES_EVENT_SOURCE",Eu="XYCHART_EVENT_SOURCE";function zv(e){return!!e&&("clientX"in e||"changedTouches"in e)}function l9(e){return!!e&&!zv(e)}function Bv(e){var t=e.scale,n=e.accessor,r=e.scaledValue,o=e.data,a=t,i,s;if("invert"in a&&typeof a.invert=="function"){var l=Su(n).left,c=Number(a.invert(r)),f=l(o,c),d=o[f-1],h=o[f];i=!d||Math.abs(c-n(d))>Math.abs(c-n(h))?h:d,s=i===d?f-1:f}else if("step"in a&&typeof a.step<"u"){var g=t.domain(),p=t.range().map(Number),m=[].concat(p).sort(function(M,N){return M-N}),x=a9(m[0],m[1],a.step()),b=o9(x,r),v=p[0]<p[1]?g:g.reverse(),w=v[b-1],E=o.findIndex(function(M){return String(n(M))===String(w)});i=o[E],s=E}else return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;if(i==null||s==null)return null;var S=Math.abs(Number(a(n(i)))-r);return{datum:i,index:s,distance:S}}function c9(e){var t=e.xScale,n=e.xAccessor,r=e.yScale,o=e.yAccessor,a=e.point,i=e.data;if(!a)return null;var s=Bv({scale:t,accessor:n,scaledValue:a.x,data:i});return s?{datum:s.datum,index:s.index,distanceX:s.distance,distanceY:Math.abs(Number(r(o(s.datum)))-a.y)}:null}function u9(e){var t=e.yScale,n=e.yAccessor,r=e.xScale,o=e.xAccessor,a=e.point,i=e.data;if(!a)return null;var s=Bv({scale:t,accessor:n,scaledValue:a.y,data:i});return s?{datum:s.datum,index:s.index,distanceY:s.distance,distanceX:Math.abs(Number(r(o(s.datum)))-a.x)}:null}function Tu(){return Tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tu.apply(this,arguments)}var Mu="__POINTER_EVENTS_ALL",Yi="__POINTER_EVENTS_NEAREST";function Wv(e){var t=e.dataKey,n=e.findNearestDatum,r=e.onBlur,o=e.onFocus,a=e.onPointerMove,i=e.onPointerOut,s=e.onPointerUp,l=e.onPointerDown,c=e.allowedSources,f=u.useContext(qt),d=f.width,h=f.height,g=f.horizontal,p=f.dataRegistry,m=f.xScale,x=f.yScale,b=n||(g?u9:c9),v=u.useCallback(function(O){var F=O||{},j=F.svgPoint,H=F.event,G={},L=null,C=1/0;if(O&&H&&j&&d&&h&&m&&x){var _,B=t===Yi||t===Mu,V=B?(_=p==null?void 0:p.keys())!=null?_:[]:Array.isArray(t)?t:[t];V.forEach(function(A){var W=p==null?void 0:p.get(A);if(W){var ne=b({dataKey:A,data:W.data,height:h,point:j,width:d,xAccessor:W.xAccessor,xScale:m,yAccessor:W.yAccessor,yScale:x});if(ne&&(G[A]=Tu({key:A,svgPoint:j,event:H},ne),t===Yi)){var Q,re,oe=Math.sqrt(((Q=ne.distanceX)!=null?Q:Math.pow(1/0,2))+((re=ne.distanceY)!=null?re:Math.pow(1/0,2)));L=oe<C?G[A]:L,C=Math.min(C,oe)}}});var D=t===Yi?[L]:t===Mu||Array.isArray(t)?Object.values(G):[G[t]];return D.filter(function(A){return A})}return[]},[t,p,m,x,d,h,b]),w=u.useCallback(function(O){a&&v(O).forEach(function(F){return a(F)})},[v,a]),E=u.useCallback(function(O){s&&v(O).forEach(function(F){return s(F)})},[v,s]),S=u.useCallback(function(O){l&&v(O).forEach(function(F){return l(F)})},[v,l]),M=u.useCallback(function(O){o&&v(O).forEach(function(F){return o(F)})},[v,o]),N=u.useCallback(function(O){var F=O==null?void 0:O.event;F&&zv(F)&&i&&i(F)},[i]),T=u.useCallback(function(O){var F=O==null?void 0:O.event;F&&l9(F)&&r&&r(F)},[r]);kn("pointermove",a?w:void 0,c),kn("pointerout",i?N:void 0,c),kn("pointerup",s?E:void 0,c),kn("pointerdown",l?S:void 0,c),kn("focus",o?M:void 0,c),kn("blur",r?T:void 0,c)}function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qi.apply(this,arguments)}var d9={top:50,right:50,bottom:50,left:50},f9=[Eu];function Kr(e){var t=e.accessibilityLabel,n=t===void 0?"XYChart":t,r=e.captureEvents,o=r===void 0?!0:r,a=e.children,i=e.height,s=e.horizontal,l=e.margin,c=l===void 0?d9:l,f=e.onPointerMove,d=e.onPointerOut,h=e.onPointerUp,g=e.onPointerDown,p=e.pointerEventsDataKey,m=p===void 0?"nearest":p,x=e.theme,b=e.width,v=e.xScale,w=e.yScale,E=e.resizeObserverPolyfill,S=u.useContext(qt),M=S.setDimensions,N=S.resizeObserverPolyfill,T=u.useContext(Zo),O=kn();u.useEffect(function(){M&&b!=null&&i!=null&&b>0&&i>0&&M({width:b,height:i,margin:c})},[M,b,i,c]);var F=jv({source:Eu});return Wv({dataKey:m==="nearest"?Yi:Mu,onPointerMove:f,onPointerOut:d,onPointerUp:h,onPointerDown:g,allowedSources:f9}),M?b==null||i==null?u.createElement(Gk,{resizeObserverPolyfill:N},function(j){return u.createElement(Kr,qi({},e,{width:e.width==null?j.width:e.width,height:e.height==null?j.height:e.height}))}):T==null?u.createElement(Ov,null,u.createElement(Kr,e)):O==null?u.createElement(Rk,null,u.createElement(Kr,e)):b<=0||i<=0?(console.info("XYChart has a zero width or height, bailing",{width:b,height:i}),null):u.createElement("svg",{width:b,height:i,"aria-label":n},a,o&&u.createElement("rect",qi({x:c.left,y:c.top,width:b-c.left-c.right,height:i-c.top-c.bottom,fill:"transparent"},F))):!v||!w?(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null):u.createElement(Fv,{xScale:v,yScale:w,theme:x,initialDimensions:{width:b,height:i,margin:c},horizontal:s,resizeObserverPolyfill:E},u.createElement(Kr,e))}Kr.propTypes={accessibilityLabel:se.string,captureEvents:se.bool,width:se.number,height:se.number,children:se.node.isRequired,horizontal:se.oneOfType([se.bool,se.oneOf(["auto"])]),onPointerMove:se.func,onPointerOut:se.func,onPointerUp:se.func,onPointerDown:se.func,pointerEventsDataKey:se.oneOf(["all","nearest"])};function Pu(){return Pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pu.apply(this,arguments)}function h9(e){function t(n){var r=n.dataKey,o=n.data,a=n.xAccessor,i=n.yAccessor,s=u.useContext(qt),l=s.xScale,c=s.yScale,f=s.dataRegistry;u.useEffect(function(){return f&&f.registerData({key:r,data:o,xAccessor:a,yAccessor:i}),function(){return f==null?void 0:f.unregisterData(r)}},[f,r,o,a,i]);var d=f==null?void 0:f.get(r);if(!l||!c||!d)return null;var h=e;return u.createElement(h,Pu({},n,{xScale:l,yScale:c,data:d.data,xAccessor:d.xAccessor,yAccessor:d.yAccessor}))}return t}function Vv(e,t,n){return n===void 0&&(n="center"),function(r){var o=e(t(r));if(Ct(o)){var a=(n==="start"?0:Pc(e))/(n==="center"?2:1);return o+a}return NaN}}function p9(e){var t,n=e.dataKey,r=e.enableEvents,o=e.findNearestDatum,a=e.onBlur,i=e.onFocus,s=e.onPointerMove,l=e.onPointerOut,c=e.onPointerUp,f=e.onPointerDown,d=e.source,h=e.allowedSources,g=(t=u.useContext(Zo))!=null?t:{},p=g.showTooltip,m=g.hideTooltip,x=u.useCallback(function(S){p(S),s&&s(S)},[p,s]),b=u.useCallback(function(S){p(S),i&&i(S)},[p,i]),v=u.useCallback(function(S){m(),S&&l&&l(S)},[m,l]),w=u.useCallback(function(S){m(),S&&a&&a(S)},[m,a]),E=u.useCallback(function(S){p(S),f&&f(S)},[p,f]);return Wv({dataKey:n,findNearestDatum:o,onBlur:r?w:void 0,onFocus:r?b:void 0,onPointerMove:r?x:void 0,onPointerOut:r?v:void 0,onPointerUp:r?c:void 0,onPointerDown:r?E:void 0,allowedSources:h}),jv({source:d,onBlur:!!a&&r,onFocus:!!i&&r,onPointerMove:!!s&&r,onPointerOut:!!l&&r,onPointerUp:!!c&&r,onPointerDown:!!f&&r})}function ku(){return ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ku.apply(this,arguments)}function Hv(e){var t,n,r,o=e.colorAccessor,a=e.data,i=e.dataKey,s=e.onBlur,l=e.onFocus,c=e.onPointerMove,f=e.onPointerOut,d=e.onPointerUp,h=e.onPointerDown,g=e.enableEvents,p=g===void 0?!0:g,m=e.renderGlyphs,x=e.size,b=x===void 0?8:x,v=e.xAccessor,w=e.xScale,E=e.yAccessor,S=e.yScale,M=u.useContext(qt),N=M.colorScale,T=M.theme,O=M.horizontal,F=u.useMemo(function(){return Vv(w,v)},[w,v]),j=u.useMemo(function(){return Vv(S,E)},[S,E]),H=(t=(n=N==null?void 0:N(i))!=null?n:T==null||(r=T.colors)==null?void 0:r[0])!=null?t:"#222",G=s9+"-"+i,L=p9({dataKey:i,enableEvents:p,onBlur:s,onFocus:l,onPointerMove:c,onPointerOut:f,onPointerUp:d,onPointerDown:h,source:G,allowedSources:[Eu,G]}),C=u.useMemo(function(){return a.map(function(_,B){var V,D=F(_);if(!Ct(D))return null;var A=j(_);return Ct(A)?{key:""+B,x:D,y:A,color:(V=o==null?void 0:o(_,B))!=null?V:H,size:typeof b=="function"?b(_):b,datum:_}:null}).filter(function(_){return _})},[H,o,a,F,j,b]);return u.createElement(u.Fragment,null,m(ku({glyphs:C,xScale:w,yScale:S,horizontal:O},L)))}Hv.propTypes={colorAccessor:se.func,size:se.oneOfType([se.number,se.func]),renderGlyphs:se.func.isRequired};const m9=h9(Hv);function g9(e){var t=e.key,n=e.color,r=e.x,o=e.y,a=e.size,i=e.onBlur,s=e.onFocus,l=e.onPointerMove,c=e.onPointerOut,f=e.onPointerUp;return u.createElement("circle",{className:"visx-circle-glyph",key:t,tabIndex:i||s?0:void 0,fill:n,r:a/2,cx:r,cy:o,onBlur:i,onFocus:s,onPointerMove:l,onPointerOut:c,onPointerUp:f})}var v9=["renderGlyph"];function Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ki.apply(this,arguments)}function b9(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function y9(e){var t=e.renderGlyph,n=t===void 0?g9:t,r=b9(e,v9),o=u.useCallback(function(a){var i=a.glyphs,s=a.onPointerMove,l=a.onPointerOut,c=a.onPointerUp,f=a.onFocus,d=a.onBlur;return i.map(function(h){return u.createElement(u.Fragment,{key:h.key},n(Ki({},h,{onPointerMove:s,onPointerOut:l,onPointerUp:c,onFocus:f,onBlur:d})))})},[n]);return u.createElement(m9,Ki({},r,{renderGlyphs:o}))}function Gv(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.className,i=e.children;return u.createElement(qn,{className:ct("visx-glyph",a),top:n,left:o},i)}Gv.propTypes={top:se.number,left:se.number,className:se.string,children:se.node};var w9=["top","left","className"];function Ou(){return Ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ou.apply(this,arguments)}function x9(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Nu(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.className,i=x9(e,w9);return u.createElement(Gv,{top:n,left:o},u.createElement("circle",Ou({className:ct("visx-glyph-dot",a)},i)))}Nu.propTypes={className:se.string,top:se.number,left:se.number,r:se.number,cx:se.number,cy:se.number};var $9=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall","resizeObserverPolyfill"];function Xi(){return Xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xi.apply(this,arguments)}function S9(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var C9=[],E9={width:"100%",height:"100%"};function Zi(e){var t=e.className,n=e.children,r=e.debounceTime,o=r===void 0?300:r,a=e.ignoreDimensions,i=a===void 0?C9:a,s=e.parentSizeStyles,l=s===void 0?E9:s,c=e.enableDebounceLeadingCall,f=c===void 0?!0:c,d=e.resizeObserverPolyfill,h=S9(e,$9),g=u.useRef(null),p=u.useRef(0),m=u.useState({width:0,height:0,top:0,left:0}),x=m[0],b=m[1],v=u.useMemo(function(){var w=Array.isArray(i)?i:[i];return Ev(function(E){b(function(S){var M=Object.keys(S),N=M.filter(function(O){return S[O]!==E[O]}),T=N.every(function(O){return w.includes(O)});return T?S:E})},o,{leading:f})},[o,f,i]);return u.useEffect(function(){var w=d||window.ResizeObserver,E=new w(function(S){S.forEach(function(M){var N,T=(N=M==null?void 0:M.contentRect)!=null?N:{},O=T.left,F=T.top,j=T.width,H=T.height;p.current=window.requestAnimationFrame(function(){v({width:j,height:H,top:F,left:O})})})});return g.current&&E.observe(g.current),function(){window.cancelAnimationFrame(p.current),E.disconnect(),v.cancel()}},[v,d]),u.createElement("div",Xi({style:l,ref:g,className:t},h),n(Xi({},x,{ref:g.current,resize:v})))}Zi.propTypes={className:se.string,debounceTime:se.number,enableDebounceLeadingCall:se.bool,ignoreDimensions:se.oneOfType([se.any,se.arrayOf(se.any)]),children:se.func.isRequired};const Uv=[{name:"default",dark:"#1565BC",light:"#99D2F9"},{name:"yellow",dark:"#8C6A00",light:"#FFDE88"},{name:"plum",dark:"#7D1779",light:"#E1AADD"},{name:"purple",dark:"#7651BC",light:"#E7DAFF"},{name:"pink",dark:"#C01443",light:"#FAD4D4"},{name:"green",dark:"#44812F",light:"#B1E39F"},{name:"orange",dark:"#B96400",light:"#FFE7C5"},{name:"teal",dark:"#237C73",light:"#A1DFD5"},{name:"red",dark:"#C62C02",light:"#FFE1D9"}];function rt(e){return Uv[e%Uv.length]}function _u({textLabel:e,axisCharLimit:t,x:n,y:r,textStyles:o}){return y.jsx(Hh,{children:y.jsxs(Gh,{children:[y.jsx(Uh,{asChild:!0,children:y.jsx("text",{className:"pointer-events-auto cursor-pointer",...o,x:n,y:r,children:e&&(e==null?void 0:e.length)>t?`${e==null?void 0:e.substring(0,t)}...`:e})}),y.jsx(Yh,{children:y.jsx(fl,{className:"rabbit-ds",children:y.jsx("p",{children:e})})})]})})}const Yv=(e,t)=>u.Children.map(e,n=>u.isValidElement(n)&&typeof n.type=="function"&&n.type.displayName===t.displayName?n:null);function Du({value:e,darkColor:t,lightColor:n}){return y.jsxs("div",{className:"px-2 py-1 justify-start items-center gap-2 inline-flex",children:[y.jsx("div",{style:{backgroundColor:n,borderColor:t},className:"w-3 h-3 relative rounded-3xl border"}),y.jsx("div",{className:"justify-start items-start flex",children:y.jsx("div",{className:"text-zinc-800 text-xs font-normal leading-none",children:e})})]})}function Au({label:e,value:t}){return y.jsxs("div",{className:"px-1 py-0.5 flex-col justify-start items-start inline-flex max-w-sm",children:[y.jsx("div",{className:" text-stone-500 text-[10px] font-normal leading-none",children:e}),y.jsx("div",{className:"justify-start items-start text-sm flex font-medium",children:t||"-"})]})}function Ye({children:e,showSideBySide:t,tooltipTitle:n}){const r=Yv(e,Du),o=Yv(e,Au);return y.jsxs("div",{className:"rabbit-ds z-[1500] relative h-auto w-auto min-w-[200px] max-w-[400px] p-2 bg-white rounded-lg shadow flex-col justify-start items-start gap-2 inline-flex",children:[y.jsx("div",{className:"px-3 py-1 text-zinc-800 font-medium text-xs leading-none",children:n}),y.jsxs("div",{className:"w-full p-2 rounded-lg flex-col justify-start items-start flex",children:[t&&y.jsxs("div",{className:ge("w-full flex"),children:[o&&o[0],y.jsx("div",{className:"w-0 border-r mx-3"}),o&&o[1]]}),!t&&y.jsx("div",{className:ge("w-full grid gap-3 auto-rows-auto"),children:o})]}),r&&r.length>0?y.jsx("div",{className:"h-px px-2 w-full border-top bg-gray-100"}):null,r]})}Du.displayName="Legend",Au.displayName="Item",Ye.Legend=Du,Ye.Item=Au,Ye.defaultProps={showSideBySide:!1};function qv({xValue:e,yValue:t,tooltipTitle:n,xAxisLabel:r,yAxisLabel:o,showSideBySide:a,legendValue:i,legendDarkColor:s,legendLightColor:l}){const c=e==null?void 0:e.toString(),f=t==null?void 0:t.toString();return y.jsxs(Ye,{tooltipTitle:n,showSideBySide:a,children:[y.jsx(Ye.Item,{label:r,value:c}),y.jsx(Ye.Item,{label:o,value:f}),y.jsx(Ye.Legend,{value:i,darkColor:s,lightColor:l})]})}qv.defaultProps={xValue:void 0,yValue:void 0};function T9({data:e,xAccessor:t,yAccessor:n,connectNulls:r=!1}){const o=u.useContext(qt),a=r?e.filter(i=>i.y!==null):e;return y.jsx(QP,{data:a,stroke:a[0].color.dark,strokeWidth:1,x:i=>{var s,l;return((s=o==null?void 0:o.xScale)==null?void 0:s.call(o,t(i)))+((l=o==null?void 0:o.xScale)==null?void 0:l.bandwidth())/2},y:i=>{var s;return(s=o==null?void 0:o.yScale)==null?void 0:s.call(o,n(i))}})}var Iu={exports:{}};(function(e,t){(function(n,r){r(t)})(io,function(n){var r,o=Object.defineProperty,a=Object.defineProperties,i=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,f=Math.pow,d=($,P,I)=>P in $?o($,P,{enumerable:!0,configurable:!0,writable:!0,value:I}):$[P]=I,h=($,P)=>{for(var I in P||(P={}))l.call(P,I)&&d($,I,P[I]);if(s)for(var I of s(P))c.call(P,I)&&d($,I,P[I]);return $},g=($,P)=>a($,i(P)),p=($,P)=>{var I={};for(var z in $)l.call($,z)&&P.indexOf(z)<0&&(I[z]=$[z]);if($!=null&&s)for(var z of s($))P.indexOf(z)<0&&c.call($,z)&&(I[z]=$[z]);return I},m=($,P,I)=>new Promise((z,q)=>{var ee=ce=>{try{R(I.next(ce))}catch(de){q(de)}},Y=ce=>{try{R(I.throw(ce))}catch(de){q(de)}},R=ce=>ce.done?z(ce.value):Promise.resolve(ce.value).then(ee,Y);R((I=I.apply($,P)).next())});function x($,P){return $[13]=1,$[14]=P>>8,$[15]=P&255,$[16]=P>>8,$[17]=P&255,$}const b="p".charCodeAt(0),v="H".charCodeAt(0),w="Y".charCodeAt(0),E="s".charCodeAt(0);let S;function M(){const $=new Int32Array(256);for(let P=0;P<256;P++){let I=P;for(let z=0;z<8;z++)I=I&1?3988292384^I>>>1:I>>>1;$[P]=I}return $}function N($){let P=-1;S||(S=M());for(let I=0;I<$.length;I++)P=S[(P^$[I])&255]^P>>>8;return P^-1}function T($){const P=$.length-1;for(let I=P;I>=4;I--)if($[I-4]===9&&$[I-3]===b&&$[I-2]===v&&$[I-1]===w&&$[I]===E)return I-3;return 0}function O($,P,I=!1){const z=new Uint8Array(13);P*=39.3701,z[0]=b,z[1]=v,z[2]=w,z[3]=E,z[4]=P>>>24,z[5]=P>>>16,z[6]=P>>>8,z[7]=P&255,z[8]=z[4],z[9]=z[5],z[10]=z[6],z[11]=z[7],z[12]=1;const q=N(z),ee=new Uint8Array(4);if(ee[0]=q>>>24,ee[1]=q>>>16,ee[2]=q>>>8,ee[3]=q&255,I){const Y=T($);return $.set(z,Y),$.set(ee,Y+13),$}else{const Y=new Uint8Array(4);Y[0]=0,Y[1]=0,Y[2]=0,Y[3]=9;const R=new Uint8Array(54);return R.set($,0),R.set(Y,33),R.set(z,37),R.set(ee,50),R}}const F="AAlwSFlz",j="AAAJcEhZ",H="AAAACXBI";function G($){let P=$.indexOf(F);return P===-1&&(P=$.indexOf(j)),P===-1&&(P=$.indexOf(H)),P}const L="[modern-screenshot]",C=typeof window<"u",_=C&&"Worker"in window,B=C&&"atob"in window,V=C&&"btoa"in window,D=C?(r=window.navigator)==null?void 0:r.userAgent:"",A=D.includes("Chrome"),W=D.includes("AppleWebKit")&&!A,ne=D.includes("Firefox"),Q=$=>$&&"__CONTEXT__"in $,re=$=>$.constructor.name==="CSSFontFaceRule",oe=$=>$.constructor.name==="CSSImportRule",ue=$=>$.nodeType===1,X=$=>typeof $.className=="object",le=$=>$.tagName==="image",U=$=>$.tagName==="use",Z=$=>ue($)&&typeof $.style<"u"&&!X($),ie=$=>$.nodeType===8,k=$=>$.nodeType===3,te=$=>$.tagName==="IMG",ae=$=>$.tagName==="VIDEO",me=$=>$.tagName==="CANVAS",ye=$=>$.tagName==="TEXTAREA",Ee=$=>$.tagName==="INPUT",Ke=$=>$.tagName==="STYLE",Xe=$=>$.tagName==="SCRIPT",ot=$=>$.tagName==="SELECT",vt=$=>$.tagName==="SLOT",Kt=$=>$.tagName==="IFRAME",je=(...$)=>console.warn(L,...$),cr=$=>console.time(`${L} ${$}`),Qr=$=>console.timeEnd(`${L} ${$}`),_n=$=>{var P;const I=(P=$==null?void 0:$.createElement)==null?void 0:P.call($,"canvas");return I&&(I.height=I.width=1),I&&"toDataURL"in I&&!!I.toDataURL("image/webp").includes("image/webp")},Ze=$=>$.startsWith("data:");function ft($,P){if($.match(/^[a-z]+:\/\//i))return $;if(C&&$.match(/^\/\//))return window.location.protocol+$;if($.match(/^[a-z]+:/i)||!C)return $;const I=at().implementation.createHTMLDocument(),z=I.createElement("base"),q=I.createElement("a");return I.head.appendChild(z),I.body.appendChild(q),P&&(z.href=P),q.href=$,q.href}function at($){var P;return(P=$&&ue($)?$==null?void 0:$.ownerDocument:$)!=null?P:window.document}const Ft="http://www.w3.org/2000/svg";function un($,P,I){const z=at(I).createElementNS(Ft,"svg");return z.setAttributeNS(null,"width",$.toString()),z.setAttributeNS(null,"height",P.toString()),z.setAttributeNS(null,"viewBox",`0 0 ${$} ${P}`),z}function jt($,P){let I=new XMLSerializer().serializeToString($);return P&&(I=I.replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/ug,"")),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(I)}`}function Jr($,P="image/png",I=1){return m(this,null,function*(){try{return yield new Promise((z,q)=>{$.toBlob(ee=>{ee?z(ee):q(new Error("Blob is null"))},P,I)})}catch(z){if(B)return je("Failed canvas to blob",{type:P,quality:I},z),Rr($.toDataURL(P,I));throw z}})}function Rr($){var P,I;const[z,q]=$.split(","),ee=(I=(P=z.match(/data:(.+);/))==null?void 0:P[1])!=null?I:void 0,Y=window.atob(q),R=Y.length,ce=new Uint8Array(R);for(let de=0;de<R;de+=1)ce[de]=Y.charCodeAt(de);return new Blob([ce],{type:ee})}function ur($,P){return new Promise((I,z)=>{const q=new FileReader;q.onload=()=>I(q.result),q.onerror=()=>z(q.error),q.onabort=()=>z(new Error(`Failed read blob to ${P}`)),P==="dataUrl"?q.readAsDataURL($):P==="arrayBuffer"&&q.readAsArrayBuffer($)})}const eo=$=>ur($,"dataUrl"),dr=$=>ur($,"arrayBuffer");function Et($,P){const I=at(P).createElement("img");return I.decoding="sync",I.loading="eager",I.src=$,I}function zt($,P){return new Promise(I=>{const{timeout:z,ownerDocument:q,onError:ee}=P??{},Y=typeof $=="string"?Et($,at(q)):$;let R=null,ce=null;function de(){I(Y),R&&clearTimeout(R),ce==null||ce()}if(z&&(R=setTimeout(de,z)),ae(Y)){const fe=Y.currentSrc||Y.src;if(!fe)return Y.poster?zt(Y.poster,P).then(I):de();if(Y.readyState>=2)return de();const ve=de,he=Se=>{je("Failed video load",fe,Se),ee==null||ee(Se),de()};ce=()=>{Y.removeEventListener("loadeddata",ve),Y.removeEventListener("error",he)},Y.addEventListener("loadeddata",ve,{once:!0}),Y.addEventListener("error",he,{once:!0})}else{const fe=le(Y)?Y.href.baseVal:Y.currentSrc||Y.src;if(!fe)return de();const ve=()=>m(this,null,function*(){if(te(Y)&&"decode"in Y)try{yield Y.decode()}catch(Se){je("Failed to decode image, trying to render anyway",Y.dataset.originalSrc||fe,Se)}de()}),he=Se=>{je("Failed image load",Y.dataset.originalSrc||fe,Se),de()};if(te(Y)&&Y.complete)return ve();ce=()=>{Y.removeEventListener("load",ve),Y.removeEventListener("error",he)},Y.addEventListener("load",ve,{once:!0}),Y.addEventListener("error",he,{once:!0})}})}function Dn($,P){return m(this,null,function*(){Z($)&&(te($)||ae($)?yield zt($,{timeout:P}):yield Promise.all(["img","video"].flatMap(I=>Array.from($.querySelectorAll(I)).map(z=>zt(z,{timeout:P})))))})}const An=function(){let $=0;const P=()=>`0000${(Math.random()*f(36,4)<<0).toString(36)}`.slice(-4);return()=>($+=1,`u${P()}${$}`)}();function ra($){return $==null?void 0:$.split(",").map(P=>P.trim().replace(/"|'/g,"").toLowerCase()).filter(Boolean)}function os($){return{time:P=>$&&cr(P),timeEnd:P=>$&&Qr(P),warn:(...P)=>$&&je(...P)}}function as($){return{cache:$?"no-cache":"force-cache"}}function bt($,P){return m(this,null,function*(){return Q($)?$:is($,g(h({},P),{autoDestruct:!0}))})}function is($,P){return m(this,null,function*(){var I,z,q,ee,Y;const{scale:R=1,workerUrl:ce,workerNumber:de=1}=P||{},fe=!!(P!=null&&P.debug),ve=(I=P==null?void 0:P.features)!=null?I:!0,he=(z=$.ownerDocument)!=null?z:C?window.document:void 0,Se=(ee=(q=$.ownerDocument)==null?void 0:q.defaultView)!=null?ee:C?window:void 0,$e=new Map,Te=g(h({width:0,height:0,quality:1,type:"image/png",scale:R,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:3e4,progress:null,debug:fe,fetch:h({requestInit:as((Y=P==null?void 0:P.fetch)==null?void 0:Y.bypassingCache),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1},P==null?void 0:P.fetch),font:{},drawImageInterval:100,workerUrl:null,workerNumber:de,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,autoDestruct:!1},P),{__CONTEXT__:!0,log:os(fe),node:$,ownerDocument:he,ownerWindow:Se,dpi:R===1?null:96*R,svgStyleElement:it(he),svgDefsElement:he==null?void 0:he.createElementNS(Ft,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...new Array(_&&ce&&de?de:0)].map(()=>{try{const ze=new Worker(ce);return ze.onmessage=Ie=>m(this,null,function*(){var st,hn,In,tb;const{url:rd,result:nb}=Ie.data;nb?(hn=(st=$e.get(rd))==null?void 0:st.resolve)==null||hn.call(st,nb):(tb=(In=$e.get(rd))==null?void 0:In.reject)==null||tb.call(In,new Error(`Error receiving message from worker: ${rd}`))}),ze.onmessageerror=Ie=>{var st,hn;const{url:In}=Ie.data;(hn=(st=$e.get(In))==null?void 0:st.reject)==null||hn.call(st,new Error(`Error receiving message from worker: ${In}`))},ze}catch(ze){return je("Failed to new Worker",ze),null}}).filter(Boolean),fontFamilies:new Set,fontCssTexts:new Map,acceptOfImage:`${[_n(he)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:$e,drawImageCount:0,tasks:[],features:ve,isEnable:ze=>{var Ie;return typeof ve=="boolean"?ve:(Ie=ve[ze])!=null?Ie:!0}});Te.log.time("wait until load"),yield Dn($,Te.timeout),Te.log.timeEnd("wait until load");const{width:Pe,height:ke}=Tt($,Te);return Te.width=Pe,Te.height=ke,Te})}function it($){if(!$)return;const P=$.createElement("style"),I=P.ownerDocument.createTextNode(`
78
+ `).join("");return x}function f4(e){var t=e.children,n=e.className,r=e.innerRef,o=e.x,a=e.y,i=e.width,s=e.height,l=e.radius,c=e.all,f=c===void 0?!1:c,d=e.top,h=d===void 0?!1:d,g=e.bottom,p=g===void 0?!1:g,m=e.left,x=m===void 0?!1:m,y=e.right,b=y===void 0?!1:y,w=e.topLeft,E=w===void 0?!1:w,S=e.topRight,T=S===void 0?!1:S,N=e.bottomLeft,M=N===void 0?!1:N,O=e.bottomRight,F=O===void 0?!1:O,j=u4(e,c4),H=d4({x:o,y:a,width:i,height:s,radius:l,all:f,top:h,bottom:p,left:x,right:b,topLeft:E,topRight:T,bottomLeft:M,bottomRight:F});return t?u.createElement(u.Fragment,null,t({path:H})):u.createElement("path",Bc({ref:r,className:ct("visx-bar-rounded",n),d:H},j))}function h4(e){return typeof(e==null?void 0:e.x)=="number"?e==null?void 0:e.x:0}function p4(e){return typeof(e==null?void 0:e.y)=="number"?e==null?void 0:e.y:0}function m4(e){return e==null?void 0:e.source}function g4(e){return e==null?void 0:e.target}var v4=["className","children","data","innerRef","path","x","y","source","target"];function Wc(){return Wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wc.apply(this,arguments)}function b4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function y4(e){var t=e.source,n=e.target,r=e.x,o=e.y;return function(a){var i=RP();return i.x(r),i.y(o),i.source(t),i.target(n),i(a)}}function w4(e){var t=e.className,n=e.children,r=e.data,o=e.innerRef,a=e.path,i=e.x,s=i===void 0?p4:i,l=e.y,c=l===void 0?h4:l,f=e.source,d=f===void 0?m4:f,h=e.target,g=h===void 0?g4:h,p=b4(e,v4),m=a||y4({source:d,target:g,x:s,y:c});return n?u.createElement(u.Fragment,null,n({path:m})):u.createElement("path",Wc({ref:o,className:ct("visx-link visx-link-horizontal-diagonal",t),d:m(r)||""},p))}var x4=["AxisComponent"];function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zi.apply(this,arguments)}function $4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function S4(e){var t,n,r,o,a,i,s,l=e.AxisComponent,c=$4(e,x4),f=u.useContext(Kt),d=f.theme,h=f.xScale,g=f.yScale,p=f.margin,m=f.width,x=f.height,y=c.orientation,b=u.useMemo(function(){var M,O,F,j;return y==="left"||y==="right"?d==null||(M=d.axisStyles)==null||(O=M.y)==null?void 0:O[y]:d==null||(F=d.axisStyles)==null||(j=F.x)==null?void 0:j[y]},[d,y]),w=c.tickLabelProps,E=u.useMemo(function(){return w||b?function(M,O,F){return zi({},b==null?void 0:b.tickLabel,{width:y==="left"||y==="right"?p==null?void 0:p[y]:void 0},typeof w=="function"?w(M,O,F):w)}:void 0},[w,b,y,p]),S=y==="bottom"?(x??0)-((t=p==null?void 0:p.bottom)!=null?t:0):y==="top"&&(n=p==null?void 0:p.top)!=null?n:0,T=y==="left"?(r=p==null?void 0:p.left)!=null?r:0:y==="right"?(m??0)-((o=p==null?void 0:p.right)!=null?o:0):0,N=y==="left"||y==="right"?g:h;return N?u.createElement(l,zi({top:S,left:T,labelProps:b==null?void 0:b.axisLabel,stroke:b==null||(a=b.axisLine)==null?void 0:a.stroke,strokeWidth:b==null||(i=b.axisLine)==null?void 0:i.strokeWidth,tickLength:b==null?void 0:b.tickLength,tickStroke:b==null||(s=b.tickLine)==null?void 0:s.stroke},c,{tickLabelProps:E,scale:N})):null}var Bi={};Bi.__esModule=!0;var C4=Bi.default=k4,E4=nv(u),M4=nv(li),T4=["from","to","fill","className","innerRef"];function nv(e){return e&&e.__esModule?e:{default:e}}function Vc(){return Vc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vc.apply(this,arguments)}function P4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function k4(e){var t=e.from,n=t===void 0?{x:0,y:0}:t,r=e.to,o=r===void 0?{x:1,y:1}:r,a=e.fill,i=a===void 0?"transparent":a,s=e.className,l=e.innerRef,c=P4(e,T4),f=n.x===o.x||n.y===o.y;return E4.default.createElement("line",Vc({ref:l,className:(0,M4.default)("visx-line",s),x1:n.x,y1:n.y,x2:o.x,y2:o.y,fill:i,shapeRendering:f?"crispEdges":"auto"},c))}var Wi={};Wi.__esModule=!0,Wi.default=O4;function O4(e){return"bandwidth"in e?e.bandwidth():0}var N4=sv,rv=Zo(si),ov=Zo(u),_4=Zo(li),D4=Zo(Bi),A4=Xg,av=wm,iv=Zg,I4=Zo(Wi),L4=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function Zo(e){return e&&e.__esModule?e:{default:e}}function Hc(){return Hc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hc.apply(this,arguments)}function F4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function sv(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.scale,i=e.width,s=e.stroke,l=s===void 0?"#eaf0f6":s,c=e.strokeWidth,f=c===void 0?1:c,d=e.strokeDasharray,h=e.className,g=e.children,p=e.numTicks,m=p===void 0?10:p,x=e.lineStyle,y=e.offset,b=e.tickValues,w=F4(e,L4),E=b??(0,iv.getTicks)(a,m),S=(y??0)+(0,I4.default)(a)/2,T=E.map(function(N,M){var O,F=((O=(0,iv.coerceNumber)(a(N)))!=null?O:0)+S;return{index:M,from:new av.Point({x:0,y:F}),to:new av.Point({x:i,y:F})}});return ov.default.createElement(A4.Group,{className:(0,_4.default)("visx-rows",h),top:n,left:o},g?g({lines:T}):T.map(function(N){var M=N.from,O=N.to,F=N.index;return ov.default.createElement(D4.default,Hc({key:"row-line-"+F,from:M,to:O,stroke:l,strokeWidth:f,strokeDasharray:d,style:x},w))}))}sv.propTypes={tickValues:rv.default.array,width:rv.default.number.isRequired};var j4=fv,lv=Qo(si),cv=Qo(u),z4=Qo(li),B4=Qo(Bi),W4=Xg,uv=wm,dv=Zg,V4=Qo(Wi),H4=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function Qo(e){return e&&e.__esModule?e:{default:e}}function Gc(){return Gc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gc.apply(this,arguments)}function G4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function fv(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.scale,i=e.height,s=e.stroke,l=s===void 0?"#eaf0f6":s,c=e.strokeWidth,f=c===void 0?1:c,d=e.strokeDasharray,h=e.className,g=e.numTicks,p=g===void 0?10:g,m=e.lineStyle,x=e.offset,y=e.tickValues,b=e.children,w=G4(e,H4),E=y??(0,dv.getTicks)(a,p),S=(x??0)+(0,V4.default)(a)/2,T=E.map(function(N,M){var O,F=((O=(0,dv.coerceNumber)(a(N)))!=null?O:0)+S;return{index:M,from:new uv.Point({x:F,y:0}),to:new uv.Point({x:F,y:i})}});return cv.default.createElement(W4.Group,{className:(0,z4.default)("visx-columns",h),top:n,left:o},b?b({lines:T}):T.map(function(N){var M=N.from,O=N.to,F=N.index;return cv.default.createElement(B4.default,Gc({key:"column-line-"+F,from:M,to:O,stroke:l,strokeWidth:f,strokeDasharray:d,style:m},w))}))}fv.propTypes={tickValues:lv.default.array,height:lv.default.number.isRequired};var U4=["rows","columns","GridRowsComponent","GridColumnsComponent"];function Vi(){return Vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vi.apply(this,arguments)}function Y4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function hv(e){var t=e.rows,n=t===void 0?!0:t,r=e.columns,o=r===void 0?!0:r,a=e.GridRowsComponent,i=e.GridColumnsComponent,s=Y4(e,U4),l=u.useContext(Kt),c=l.theme,f=l.xScale,d=l.yScale,h=l.margin,g=l.innerWidth,p=l.innerHeight,m=c==null?void 0:c.gridStyles;return u.createElement(u.Fragment,null,n&&d&&g!=null&&u.createElement(a,Vi({left:h==null?void 0:h.left,lineStyle:m,width:g,scale:d},s)),o&&f&&p!=null&&u.createElement(i,Vi({top:h==null?void 0:h.top,lineStyle:m,height:p,scale:f},s)))}hv.propTypes={rows:se.bool,columns:se.bool};var q4={top:"top",left:"left",right:"right",bottom:"bottom"};const Lt=q4;function K4(e){var t=e.labelOffset,n=e.labelProps,r=e.orientation,o=e.range,a=e.tickLabelFontSize,i=e.tickLength,s=r===Lt.left||r===Lt.top?-1:1,l,c,f;if(r===Lt.top||r===Lt.bottom){var d=r===Lt.bottom&&typeof n.fontSize=="number"?n.fontSize:0;l=(Number(o[0])+Number(o[o.length-1]))/2,c=s*(i+t+a+d)}else l=s*((Number(o[0])+Number(o[o.length-1]))/2),c=-(i+t),f="rotate("+s*90+")";return{x:l,y:c,transform:f}}function Jo(){return Jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jo.apply(this,arguments)}function X4(e){var t=e.hideTicks,n=e.horizontal,r=e.orientation,o=e.tickClassName,a=e.tickComponent,i=e.tickLabelProps,s=e.tickStroke,l=s===void 0?"#222":s,c=e.tickTransform,f=e.ticks,d=e.strokeWidth,h=e.tickLineProps;return f.map(function(g){var p,m=g.value,x=g.index,y=g.from,b=g.to,w=g.formattedValue,E=(p=i[x])!=null?p:{},S=Math.max(10,typeof E.fontSize=="number"&&E.fontSize||0),T=b.y+(n&&r!==Lt.top?S:0);return u.createElement(Kn,{key:"visx-tick-"+m+"-"+x,className:ct("visx-axis-tick",o),transform:c},!t&&u.createElement(tv,Jo({from:y,to:b,stroke:l,strokeWidth:d,strokeLinecap:"square"},h)),a?a(Jo({},E,{x:b.x,y:T,formattedValue:w})):u.createElement(Ll,Jo({x:b.x,y:T},E),w))})}function Hi(){return Hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hi.apply(this,arguments)}var pv={textAnchor:"middle",fontFamily:"Arial",fontSize:10,fill:"#222"};function Z4(e){var t=e.axisFromPoint,n=e.axisLineClassName,r=e.axisToPoint,o=e.hideAxisLine,a=e.hideTicks,i=e.horizontal,s=e.label,l=s===void 0?"":s,c=e.labelClassName,f=e.labelOffset,d=f===void 0?14:f,h=e.labelProps,g=h===void 0?pv:h,p=e.orientation,m=p===void 0?Lt.bottom:p,x=e.scale,y=e.stroke,b=y===void 0?"#222":y,w=e.strokeDasharray,E=e.strokeWidth,S=E===void 0?1:E,T=e.tickClassName,N=e.tickComponent,M=e.tickLineProps,O=e.tickLabelProps,F=e.tickLength,j=F===void 0?8:F,H=e.tickStroke,G=H===void 0?"#222":H,L=e.tickTransform,C=e.ticks,_=e.ticksComponent,B=_===void 0?X4:_,V=Hi({},pv,typeof O=="object"?O:null),D=C.map(function(W){var ne=W.value,Q=W.index;return typeof O=="function"?O(ne,Q,C):V}),A=Math.max.apply(Math,[10].concat(D.map(function(W){return typeof W.fontSize=="number"?W.fontSize:0})));return u.createElement(u.Fragment,null,B({hideTicks:a,horizontal:i,orientation:m,scale:x,tickClassName:T,tickComponent:N,tickLabelProps:D,tickStroke:G,tickTransform:L,ticks:C,strokeWidth:S,tickLineProps:M}),!o&&u.createElement(tv,{className:ct("visx-axis-line",n),from:t,to:r,stroke:b,strokeWidth:S,strokeDasharray:w}),l&&u.createElement(Ll,Hi({className:ct("visx-axis-label",c)},K4({labelOffset:d,labelProps:g,orientation:m,range:x.range(),tickLabelFontSize:A,tickLength:j}),g),l))}function Q4(e,t){t===void 0&&(t="center");var n=e;if(t!=="start"&&"bandwidth"in n){var r=n.bandwidth();return t==="center"&&(r/=2),n.round()&&(r=Math.round(r)),function(o){var a=n(o);return typeof a=="number"?a+r:a}}return e}function J4(e){var t=e;return"tickFormat"in t?t.tickFormat():Kg}function Gi(e,t){var n=e.x,r=e.y;return new Cn(t?{x:n,y:r}:{x:r,y:n})}function Uc(){return Uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uc.apply(this,arguments)}var Yc=0;function R4(e){return e===void 0&&(e=Yc),typeof e=="number"?{start:e,end:e}:Uc({start:Yc,end:Yc},e)}var ek=["children","axisClassName","hideAxisLine","hideTicks","hideZero","innerRef","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function qc(){return qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qc.apply(this,arguments)}function tk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Kc(e){var t=e.children,n=t===void 0?Z4:t,r=e.axisClassName,o=e.hideAxisLine,a=o===void 0?!1:o,i=e.hideTicks,s=i===void 0?!1:i,l=e.hideZero,c=l===void 0?!1:l,f=e.innerRef,d=e.left,h=d===void 0?0:d,g=e.numTicks,p=g===void 0?10:g,m=e.orientation,x=m===void 0?Lt.bottom:m,y=e.rangePadding,b=y===void 0?0:y,w=e.scale,E=e.tickFormat,S=e.tickLength,T=S===void 0?8:S,N=e.tickValues,M=e.top,O=M===void 0?0:M,F=tk(e,ek),j=E??J4(w),H=x===Lt.left,G=x===Lt.top,L=G||x===Lt.bottom,C=Q4(w),_=H||G?-1:1,B=w.range(),V=R4(b),D=Gi({x:Number(B[0])+.5-V.start,y:0},L),A=Gi({x:Number(B[B.length-1])+.5+V.end,y:0},L),W=(N??Oc(w,p)).filter(function(Q){return!c||Q!==0&&Q!=="0"}).map(function(Q,re){return{value:Q,index:re}}),ne=W.map(function(Q){var re=Q.value,oe=Q.index,ue=kc(C(re));return{value:re,index:oe,from:Gi({x:ue,y:0},L),to:Gi({x:ue,y:T*_},L),formattedValue:j(re,oe,W)}});return u.createElement(Kn,{className:ct("visx-axis",r),innerRef:f,top:O,left:h},n(qc({},F,{axisFromPoint:D,axisToPoint:A,hideAxisLine:a,hideTicks:s,hideZero:c,horizontal:L,numTicks:p,orientation:x,rangePadding:b,scale:w,tickFormat:j,tickLength:T,tickPosition:C,tickSign:_,ticks:ne})))}function Xc(){return Xc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xc.apply(this,arguments)}function mv(e){return u.createElement(S4,Xc({AxisComponent:Kc},e))}function Zc(){return Zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zc.apply(this,arguments)}function nk(e){return u.createElement(hv,Zc({GridRowsComponent:N4,GridColumnsComponent:j4},e))}var rk=["tooltipOpen"];function ok(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ui(){return Ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ui.apply(this,arguments)}function Qc(e){var t=u.useState(Ui({tooltipOpen:!1},e)),n=t[0],r=t[1],o=u.useCallback(function(i){return r(typeof i=="function"?function(s){s.tooltipOpen;var l=ok(s,rk);return Ui({},i(l),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:i.tooltipLeft,tooltipTop:i.tooltipTop,tooltipData:i.tooltipData})},[r]),a=u.useCallback(function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[r]);return{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:o,hideTooltip:a}}function ak(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jc(e,t)}function Jc(e,t){return Jc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Jc(e,t)}var gv=function(e){ak(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},n.render=function(){return!this.node&&typeof document<"u"&&(this.node=document.createElement("div"),this.props.zIndex!=null&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node?pn.createPortal(this.props.children,this.node):null},t}(u.PureComponent);gv.propTypes={zIndex:se.oneOfType([se.number,se.string])};var ik=["className","top","left","offsetLeft","offsetTop","style","children","unstyled","applyPositionStyle"];function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yi.apply(this,arguments)}function sk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Rc={position:"absolute",backgroundColor:"white",color:"#666666",padding:".3rem .5rem",borderRadius:"3px",fontSize:"14px",boxShadow:"0 1px 2px rgba(33,33,33,0.2)",lineHeight:"1em",pointerEvents:"none"},eu=u.forwardRef(function(e,t){var n=e.className,r=e.top,o=e.left,a=e.offsetLeft,i=a===void 0?10:a,s=e.offsetTop,l=s===void 0?10:s,c=e.style,f=c===void 0?Rc:c,d=e.children,h=e.unstyled,g=h===void 0?!1:h,p=e.applyPositionStyle,m=p===void 0?!1:p,x=sk(e,ik);return u.createElement("div",Yi({ref:t,className:ct("visx-tooltip",n),style:Yi({top:r==null||l==null?r:r+l,left:o==null||i==null?o:o+i},m&&{position:"absolute"},!g&&f)},x),d)});eu.propTypes={children:se.node,className:se.string,left:se.number,offsetLeft:se.number,offsetTop:se.number,top:se.number,applyPositionStyle:se.bool,unstyled:se.bool},eu.displayName="Tooltip";const vv=eu;function tu(){return tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tu.apply(this,arguments)}function lk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ck(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,nu(e,t)}function nu(e,t){return nu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},nu(e,t)}var bv={top:0,right:0,bottom:0,left:0,width:0,height:0};function uk(e){var t;return t=function(n){ck(r,n);function r(a){var i;return i=n.call(this,a)||this,i.state={rect:void 0,parentRect:void 0},i.nodeRef=u.createRef(),i.getRects=i.getRects.bind(lk(i)),i}var o=r.prototype;return o.componentDidMount=function(){var i,s=this;this.node=(i=this.nodeRef)!=null&&i.current?this.nodeRef.current:pn.findDOMNode(this),this.setState(function(){return s.getRects()})},o.getRects=function(){if(!this.node)return this.state;var i=this.node,s=i.parentNode,l=i.getBoundingClientRect?i.getBoundingClientRect():bv,c=s!=null&&s.getBoundingClientRect?s.getBoundingClientRect():bv;return{rect:l,parentRect:c}},o.render=function(){return u.createElement(e,tu({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},r}(u.PureComponent),t.displayName="withBoundingRects("+(e.displayName||"")+")",t}var yv=u.createContext({isFlippedVertically:!1,isFlippedHorizontally:!1}),dk=yv.Provider;yv.Consumer;var fk=["children","getRects","left","offsetLeft","offsetTop","parentRect","rect","style","top","unstyled","nodeRef"];function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qi.apply(this,arguments)}function hk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function wv(e){var t=e.children;e.getRects;var n=e.left,r=n===void 0?0:n,o=e.offsetLeft,a=o===void 0?10:o,i=e.offsetTop,s=i===void 0?10:i,l=e.parentRect,c=e.rect,f=e.style,d=f===void 0?Rc:f,h=e.top,g=h===void 0?0:h,p=e.unstyled,m=p===void 0?!1:p,x=e.nodeRef,y=hk(e,fk),b,w=!1,E=!1;if(c&&l){var S=r,T=g;if(l.width){var N=S+a+c.width-l.width,M=c.width-S-a;w=N>0&&N>M}else{var O=S+a+c.width-window.innerWidth,F=c.width-S-a;w=O>0&&O>F}if(l.height){var j=T+s+c.height-l.height,H=c.height-T-s;E=j>0&&j>H}else E=T+s+c.height>window.innerHeight;S=w?S-c.width-a:S+a,T=E?T-c.height-s:T+s,S=Math.round(S),T=Math.round(T),b="translate("+S+"px, "+T+"px)"}return u.createElement(vv,qi({ref:x,style:qi({left:0,top:0,transform:b},!m&&d)},y),u.createElement(dk,{value:{isFlippedVertically:!E,isFlippedHorizontally:!w}},t))}wv.propTypes={nodeRef:se.oneOfType([se.string,se.func,se.object])};const pk=uk(wv);var mk=["detectBounds","zIndex"],gk=["left","top","detectBounds","zIndex"];function ru(){return ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ru.apply(this,arguments)}function xv(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function ou(e){var t=e===void 0?{}:e,n=t.detectBounds,r=n===void 0?!0:n,o=t.zIndex,a=xv(t,mk),i=Y6(a),s=i[0],l=i[1],c=i[2],f=u.useState(!1),d=f[0],h=f[1];u.useEffect(function(){h(!1)},[]);var g=u.useMemo(function(){return function(p){var m=p.left,x=m===void 0?0:m,y=p.top,b=y===void 0?0:y,w=p.detectBounds,E=p.zIndex,S=xv(p,gk),T=w??r,N=E??o,M=T?pk:vv,O=d?0:window.scrollX,F=d?0:window.scrollY,j=x+(l.left||0)+O,H=b+(l.top||0)+F;return u.createElement(gv,{zIndex:N},u.createElement(M,ru({left:j,top:H},S)))}},[r,o,l.left,l.top,d]);return{containerRef:s,containerBounds:l,forceRefreshBounds:c,TooltipInPortal:g}}var vk=u.createContext(null);const Ro=vk;var bk=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],yk=["x","y"];function $v(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cn.apply(this,arguments)}var au={position:"absolute",pointerEvents:"none",fontSize:0,lineHeight:0},wk={position:"absolute",left:0,top:0,opacity:0,width:0,height:0,pointerEvents:"none"};function Sv(e){var t=u.useContext(Kt)||{},n=t.theme;return u.createElement("circle",cn({cx:e.x,cy:e.y,r:e.size,fill:e.color,stroke:n==null?void 0:n.backgroundColor,strokeWidth:1.5,paintOrder:"fill"},e.glyphStyle))}Sv.propTypes={isNearestDatum:se.bool.isRequired};function xk(e){return u.createElement(Sv,e)}function Cv(e){var t,n,r,o,a,i,s,l,c,f,d,h,g,p=e.debounce,m=e.detectBounds,x=e.horizontalCrosshairStyle,y=e.glyphStyle,b=e.renderTooltip,w=e.renderGlyph,E=w===void 0?xk:w,S=e.resizeObserverPolyfill,T=e.scroll,N=T===void 0?!0:T,M=e.showDatumGlyph,O=M===void 0?!1:M,F=e.showHorizontalCrosshair,j=F===void 0?!1:F,H=e.showSeriesGlyphs,G=H===void 0?!1:H,L=e.showVerticalCrosshair,C=L===void 0?!1:L,_=e.snapTooltipToDatumX,B=_===void 0?!1:_,V=e.snapTooltipToDatumY,D=V===void 0?!1:V,A=e.verticalCrosshairStyle,W=e.zIndex,ne=$v(e,bk),Q=u.useContext(Kt)||{},re=Q.colorScale,oe=Q.theme,ue=Q.innerHeight,X=Q.innerWidth,le=Q.margin,U=Q.xScale,Z=Q.yScale,ie=Q.dataRegistry,k=Q.resizeObserverPolyfill,te=u.useContext(Ro),ae=ou({debounce:p,detectBounds:m,polyfill:k||S,scroll:N,zIndex:W}),ge=ae.containerRef,we=ae.TooltipInPortal,Ee=ae.forceRefreshBounds,Ke=u.useCallback(function(it){var Mt;ge((Mt=it==null?void 0:it.parentElement)!=null?Mt:null)},[ge]),Xe=te!=null&&te.tooltipOpen?b(cn({},te,{colorScale:re})):null,ot=(te==null?void 0:te.tooltipOpen)&&Xe!=null,vt=u.useRef(!1);u.useEffect(function(){ot&&!vt.current&&Ee(),vt.current=ot},[ot,Ee]);var Xt=te==null?void 0:te.tooltipLeft,je=te==null?void 0:te.tooltipTop,ur=U?_c(U):0,Jr=Z?_c(Z):0,Dn=u.useCallback(function(it,Mt){var dn,fn,yt=ie==null?void 0:ie.get(it),hr=yt==null?void 0:yt.xAccessor,pr=yt==null?void 0:yt.yAccessor,no=U&&hr?(dn=Number(U(hr(Mt)))+ur/2)!=null?dn:0:void 0,ro=Z&&pr?(fn=Number(Z(pr(Mt)))+Jr/2)!=null?fn:0:void 0;return{left:no,top:ro}},[ie,ur,Jr,U,Z]),Ze=te==null||(t=te.tooltipData)==null?void 0:t.nearestDatum,ft=(n=Ze==null?void 0:Ze.key)!=null?n:"";if(ot&&Ze&&(B||D)){var at=Dn(ft,Ze.datum),jt=at.left,un=at.top;Xt=B&&Ct(jt)?jt:Xt,je=D&&Ct(un)?un:je}var zt=[];if(ot&&(O||G)){var Rr,eo=Number((Rr=y==null?void 0:y.radius)!=null?Rr:4);if(G){var dr,to;Object.values((dr=te==null||(to=te.tooltipData)==null?void 0:to.datumByKey)!=null?dr:{}).forEach(function(it){var Mt,dn,fn,yt=it.key,hr=it.datum,pr=it.index,no=(Mt=(dn=re==null?void 0:re(yt))!=null?dn:oe==null||(fn=oe.htmlLabel)==null?void 0:fn.color)!=null?Mt:"#222",ro=Dn(yt,hr),ds=ro.left,fs=ro.top;!Ct(ds)||!Ct(fs)||zt.push({key:yt,color:no,datum:hr,index:pr,size:eo,x:ds,y:fs,glyphStyle:y,isNearestDatum:Ze?Ze.key===yt:!1})})}else if(Ze){var fr=Dn(ft,Ze.datum),Et=fr.left,Bt=fr.top;if(Ct(Et)&&Ct(Bt)){var An,In,ia,ls,cs,bt,us=(An=(In=(ia=(ls=ft&&(re==null?void 0:re(ft)))!=null?ls:null)!=null?ia:oe==null||(cs=oe.gridStyles)==null?void 0:cs.stroke)!=null?In:oe==null||(bt=oe.htmlLabel)==null?void 0:bt.color)!=null?An:"#222";zt.push({key:ft,color:us,datum:Ze.datum,index:Ze.index,size:eo,x:Et,y:Bt,glyphStyle:y,isNearestDatum:!0})}}}return u.createElement(u.Fragment,null,u.createElement("svg",{ref:Ke,style:wk}),ot&&u.createElement(u.Fragment,null,C&&u.createElement(we,{className:"visx-crosshair visx-crosshair-vertical",left:Xt,top:le==null?void 0:le.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:au},u.createElement("svg",{width:"1",height:ue,overflow:"visible"},u.createElement("line",cn({x1:0,x2:0,y1:0,y2:ue,strokeWidth:1.5,stroke:(r=(o=oe==null||(a=oe.gridStyles)==null?void 0:a.stroke)!=null?o:oe==null||(i=oe.htmlLabel)==null?void 0:i.color)!=null?r:"#222"},A)))),j&&u.createElement(we,{className:"visx-crosshair visx-crosshair-horizontal",left:le==null?void 0:le.left,top:je,offsetLeft:0,offsetTop:0,detectBounds:!1,style:au},u.createElement("svg",{width:X,height:"1",overflow:"visible"},u.createElement("line",cn({x1:0,x2:X,y1:0,y2:0,strokeWidth:1.5,stroke:(s=(l=oe==null||(c=oe.gridStyles)==null?void 0:c.stroke)!=null?l:oe==null||(f=oe.htmlLabel)==null?void 0:f.color)!=null?s:"#222"},x)))),zt.map(function(it,Mt){var dn=it.x,fn=it.y,yt=$v(it,yk);return u.createElement(we,{key:Mt,className:"visx-tooltip-glyph",left:dn,top:fn,offsetLeft:0,offsetTop:0,detectBounds:!1,style:au},u.createElement("svg",{overflow:"visible"},E(cn({x:0,y:0},yt))))}),u.createElement(we,cn({left:Xt,top:je,style:cn({},Rc,{background:(d=oe==null?void 0:oe.backgroundColor)!=null?d:"white",boxShadow:"0 1px 2px "+(oe!=null&&(h=oe.htmlLabel)!=null&&h.color?(oe==null||(g=oe.htmlLabel)==null?void 0:g.color)+"55":"#22222255")},oe==null?void 0:oe.htmlLabel)},ne),Xe)))}Cv.propTypes={renderTooltip:se.func.isRequired,renderGlyph:se.func,snapTooltipToDatumX:se.bool,snapTooltipToDatumY:se.bool,showVerticalCrosshair:se.bool,showHorizontalCrosshair:se.bool,showDatumGlyph:se.bool,showSeriesGlyphs:se.bool};function Ev(e){var t=u.useContext(Ro);return t!=null&&t.tooltipOpen?u.createElement(Cv,e):null}Ev.propTypes={renderTooltip:se.func.isRequired,renderGlyph:se.func,snapTooltipToDatumX:se.bool,snapTooltipToDatumY:se.bool,showVerticalCrosshair:se.bool,showHorizontalCrosshair:se.bool,showDatumGlyph:se.bool,showSeriesGlyphs:se.bool};var $k=di,Sk=function(){return $k.Date.now()},Ck=Sk,Ek=/\s/;function Mk(e){for(var t=e.length;t--&&Ek.test(e.charAt(t)););return t}var Tk=Mk,Pk=Tk,kk=/^\s+/;function Ok(e){return e&&e.slice(0,Pk(e)+1).replace(kk,"")}var Nk=Ok;function _k(e){return e!=null&&typeof e=="object"}var Dk=_k,Ak=cm,Ik=Dk,Lk="[object Symbol]";function Fk(e){return typeof e=="symbol"||Ik(e)&&Ak(e)==Lk}var jk=Fk,zk=Nk,Mv=fi,Bk=jk,Tv=0/0,Wk=/^[-+]0x[0-9a-f]+$/i,Vk=/^0b[01]+$/i,Hk=/^0o[0-7]+$/i,Gk=parseInt;function Uk(e){if(typeof e=="number")return e;if(Bk(e))return Tv;if(Mv(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Mv(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=zk(e);var n=Vk.test(e);return n||Hk.test(e)?Gk(e.slice(2),n?2:8):Wk.test(e)?Tv:+e}var Yk=Uk,qk=fi,iu=Ck,Pv=Yk,Kk="Expected a function",Xk=Math.max,Zk=Math.min;function Qk(e,t,n){var r,o,a,i,s,l,c=0,f=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(Kk);t=Pv(t)||0,qk(n)&&(f=!!n.leading,d="maxWait"in n,a=d?Xk(Pv(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h);function g(T){var N=r,M=o;return r=o=void 0,c=T,i=e.apply(M,N),i}function p(T){return c=T,s=setTimeout(y,t),f?g(T):i}function m(T){var N=T-l,M=T-c,O=t-N;return d?Zk(O,a-M):O}function x(T){var N=T-l,M=T-c;return l===void 0||N>=t||N<0||d&&M>=a}function y(){var T=iu();if(x(T))return b(T);s=setTimeout(y,m(T))}function b(T){return s=void 0,h&&r?g(T):(r=o=void 0,i)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function E(){return s===void 0?i:b(iu())}function S(){var T=iu(),N=x(T);if(r=arguments,o=this,l=T,N){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(y,t),g(l)}return s===void 0&&(s=setTimeout(y,t)),i}return S.cancel=w,S.flush=E,S}var kv=Qk;const Ov=mr(kv);var Jk=Dv,kn=_v(si),Rk=_v(kv),qr=tO(u),eO=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall","resizeObserverPolyfill"];function Nv(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Nv=function(o){return o?n:t})(e)}function tO(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Nv(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function _v(e){return e&&e.__esModule?e:{default:e}}function Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ki.apply(this,arguments)}function nO(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var rO=[],oO={width:"100%",height:"100%"};function Dv(e){var t=e.className,n=e.children,r=e.debounceTime,o=r===void 0?300:r,a=e.ignoreDimensions,i=a===void 0?rO:a,s=e.parentSizeStyles,l=s===void 0?oO:s,c=e.enableDebounceLeadingCall,f=c===void 0?!0:c,d=e.resizeObserverPolyfill,h=nO(e,eO),g=(0,qr.useRef)(null),p=(0,qr.useRef)(0),m=(0,qr.useState)({width:0,height:0,top:0,left:0}),x=m[0],y=m[1],b=(0,qr.useMemo)(function(){var w=Array.isArray(i)?i:[i];return(0,Rk.default)(function(E){y(function(S){var T=Object.keys(S),N=T.filter(function(O){return S[O]!==E[O]}),M=N.every(function(O){return w.includes(O)});return M?S:E})},o,{leading:f})},[o,f,i]);return(0,qr.useEffect)(function(){var w=d||window.ResizeObserver,E=new w(function(S){S.forEach(function(T){var N,M=(N=T==null?void 0:T.contentRect)!=null?N:{},O=M.left,F=M.top,j=M.width,H=M.height;p.current=window.requestAnimationFrame(function(){b({width:j,height:H,top:F,left:O})})})});return g.current&&E.observe(g.current),function(){window.cancelAnimationFrame(p.current),E.disconnect(),b.cancel()}},[b,d]),qr.default.createElement("div",Ki({style:l,ref:g,className:t},h),n(Ki({},x,{ref:g.current,resize:b})))}Dv.propTypes={className:kn.default.string,debounceTime:kn.default.number,enableDebounceLeadingCall:kn.default.bool,ignoreDimensions:kn.default.oneOfType([kn.default.any,kn.default.arrayOf(kn.default.any)]),children:kn.default.func.isRequired};var aO=u.createContext(null);const Av=aO;function On(e,t,n){var r=u.useContext(Av),o=u.useRef();o.current=n;var a=u.useCallback(function(i,s,l){r&&r.emit(i,{event:s,svgPoint:sM(s),source:l})},[r]);return u.useEffect(function(){if(r&&e&&t){var i=function(l){var c;(!o.current||l!=null&&l.source&&(c=o.current)!=null&&c.includes(l.source))&&t(l)};return r.on(e,i),function(){return r==null?void 0:r.off(e,i)}}},[r,e,t]),r?a:null}function iO(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(r){r(n)}),(e.get("*")||[]).slice().map(function(r){r(t,n)})}}}function sO(e){var t=e.children,n=u.useMemo(function(){return iO()},[]);return u.createElement(Av.Provider,{value:n},t)}function su(){return su=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},su.apply(this,arguments)}function Iv(e){var t=e.hideTooltipDebounceMs,n=t===void 0?400:t,r=e.children,o=Qc(void 0),a=o.tooltipOpen,i=o.tooltipLeft,s=o.tooltipTop,l=o.tooltipData,c=o.updateTooltip,f=o.hideTooltip,d=u.useRef(null);function h(){d.current&&(d.current.cancel(),d.current=null)}u.useEffect(function(){return h},[]);var g=u.useRef(function(x){var y=x.svgPoint,b=x.index,w=x.key,E=x.datum,S=x.distanceX,T=x.distanceY;h();var N=Ct(S)?S:1/0,M=Ct(T)?T:1/0,O=Math.sqrt(Math.pow(N,2)+Math.pow(M,2));c(function(F){var j,H,G,L=F.tooltipData,C=L!=null&&L.nearestDatum&&Ct(L.nearestDatum.distance)?L.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:y==null?void 0:y.x,tooltipTop:y==null?void 0:y.y,tooltipData:{nearestDatum:((j=L==null||(H=L.nearestDatum)==null?void 0:H.key)!=null?j:"")!==w&&C<O?L==null?void 0:L.nearestDatum:{key:w,index:b,datum:E,distance:O},datumByKey:su({},L==null?void 0:L.datumByKey,(G={},G[w]={datum:E,index:b,key:w},G))}}})}),p=u.useCallback(function(){d.current=Ov(f,n),d.current()},[f,n]),m=u.useMemo(function(){return{tooltipOpen:a,tooltipLeft:i,tooltipTop:s,tooltipData:l,updateTooltip:c,showTooltip:g.current,hideTooltip:p}},[p,l,i,a,s,c]);return u.createElement(Ro.Provider,{value:m},r)}Iv.propTypes={hideTooltipDebounceMs:se.number,children:se.node.isRequired};const lO=gr(rP);var ea={},lu={};lu.__esModule=!0,lu.default=cO;function cO(e,t){t.domain&&("nice"in e||"quantiles"in e||"padding"in e,e.domain(t.domain))}var cu={};cu.__esModule=!0,cu.default=uO;function uO(e,t){t.range&&("padding"in e,e.range(t.range))}var uu={};uu.__esModule=!0,uu.default=dO;function dO(e,t){"align"in e&&"align"in t&&typeof t.align<"u"&&e.align(t.align)}var du={};du.__esModule=!0,du.default=fO;function fO(e,t){"base"in e&&"base"in t&&typeof t.base<"u"&&e.base(t.base)}var fu={};fu.__esModule=!0,fu.default=hO;function hO(e,t){"clamp"in e&&"clamp"in t&&typeof t.clamp<"u"&&e.clamp(t.clamp)}var hu={};hu.__esModule=!0,hu.default=pO;function pO(e,t){"constant"in e&&"constant"in t&&typeof t.constant<"u"&&e.constant(t.constant)}var pu={};pu.__esModule=!0,pu.default=mO;function mO(e,t){"exponent"in e&&"exponent"in t&&typeof t.exponent<"u"&&e.exponent(t.exponent)}var mu={},gu={};const Lv=gr(dP);gu.__esModule=!0,gu.default=gO;var Nn=Lv,Fv={lab:Nn.interpolateLab,hcl:Nn.interpolateHcl,"hcl-long":Nn.interpolateHclLong,hsl:Nn.interpolateHsl,"hsl-long":Nn.interpolateHslLong,cubehelix:Nn.interpolateCubehelix,"cubehelix-long":Nn.interpolateCubehelixLong,rgb:Nn.interpolateRgb};function gO(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return Fv[e]}var t=e.type,n=e.gamma,r=Fv[t];return typeof n>"u"?r:r.gamma(n)}mu.__esModule=!0,mu.default=yO;var vO=bO(gu);function bO(e){return e&&e.__esModule?e:{default:e}}function yO(e,t){if("interpolate"in t&&"interpolate"in e&&typeof t.interpolate<"u"){var n=(0,vO.default)(t.interpolate);e.interpolate(n)}}var vu={};const wO=gr(pP);var bu={};bu.__esModule=!0,bu.default=SO;var xO=new Date(Date.UTC(2020,1,2,3,4,5)),$O="%Y-%m-%d %H:%M";function SO(e){var t=e.tickFormat(1,$O)(xO);return t==="2020-02-02 03:04"}vu.__esModule=!0,vu.default=MO;var ut=wO,CO=EO(bu);function EO(e){return e&&e.__esModule?e:{default:e}}var jv={day:ut.timeDay,hour:ut.timeHour,minute:ut.timeMinute,month:ut.timeMonth,second:ut.timeSecond,week:ut.timeWeek,year:ut.timeYear},zv={day:ut.utcDay,hour:ut.utcHour,minute:ut.utcMinute,month:ut.utcMonth,second:ut.utcSecond,week:ut.utcWeek,year:ut.utcYear};function MO(e,t){if("nice"in t&&typeof t.nice<"u"&&"nice"in e){var n=t.nice;if(typeof n=="boolean")n&&e.nice();else if(typeof n=="number")e.nice(n);else{var r=e,o=(0,CO.default)(r);if(typeof n=="string")r.nice(o?zv[n]:jv[n]);else{var a=n.interval,i=n.step,s=(o?zv[a]:jv[a]).every(i);s!=null&&r.nice(s)}}}}var yu={};yu.__esModule=!0,yu.default=TO;function TO(e,t){"padding"in e&&"padding"in t&&typeof t.padding<"u"&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&typeof t.paddingInner<"u"&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&typeof t.paddingOuter<"u"&&e.paddingOuter(t.paddingOuter)}var wu={};wu.__esModule=!0,wu.default=PO;function PO(e,t){if(t.reverse){var n=e.range().slice().reverse();"padding"in e,e.range(n)}}var xu={};xu.__esModule=!0,xu.default=OO;var kO=Lv;function OO(e,t){"round"in t&&typeof t.round<"u"&&(t.round&&"interpolate"in t&&typeof t.interpolate<"u"?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(kO.interpolateRound))}var $u={};$u.__esModule=!0,$u.default=NO;function NO(e,t){"unknown"in e&&"unknown"in t&&typeof t.unknown<"u"&&e.unknown(t.unknown)}var Su={};Su.__esModule=!0,Su.default=_O;function _O(e,t){if("zero"in t&&t.zero===!0){var n=e.domain(),r=n[0],o=n[1],a=o<r,i=a?[o,r]:[r,o],s=i[0],l=i[1],c=[Math.min(0,s),Math.max(0,l)];e.domain(a?c.reverse():c)}}ea.__esModule=!0,ea.ALL_OPERATORS=void 0,ea.default=KO;var DO=dt(lu),AO=dt(cu),IO=dt(uu),LO=dt(du),FO=dt(fu),jO=dt(hu),zO=dt(pu),BO=dt(mu),WO=dt(vu),VO=dt(yu),HO=dt(wu),GO=dt(xu),UO=dt($u),YO=dt(Su);function dt(e){return e&&e.__esModule?e:{default:e}}var Bv=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"];ea.ALL_OPERATORS=Bv;var qO={domain:DO.default,nice:WO.default,zero:YO.default,interpolate:BO.default,round:GO.default,align:IO.default,base:LO.default,clamp:FO.default,constant:jO.default,exponent:zO.default,padding:VO.default,range:AO.default,reverse:HO.default,unknown:UO.default};function KO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set(t),o=Bv.filter(function(a){return r.has(a)});return function(i,s){return typeof s<"u"&&o.forEach(function(l){qO[l](i,s)}),i}}var XO=e8,ZO=lO,QO=JO(ea);function JO(e){return e&&e.__esModule?e:{default:e}}var RO=(0,QO.default)("domain","range","reverse","unknown");function e8(e){return RO((0,ZO.scaleOrdinal)(),e)}var _n={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e8f7ff","#ccedff","#a3daff","#72c3fc","#4dadf7","#329af0","#228ae6","#1c7cd6","#1b6ec2","#1862ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},ta=_n.gray,Cu=ta[7],t8=[_n.cyan[9],_n.cyan[3],_n.yellow[5],_n.red[4],_n.grape[8],_n.grape[5],_n.pink[9]];function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fe.apply(this,arguments)}var Eu={fontFamily:"-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif",fontWeight:700,fontSize:12,textAnchor:"middle",pointerEvents:"none",letterSpacing:.4};function n8(e){var t,n,r,o,a,i,s=Fe({},Eu,{fill:Cu,stroke:"none"},e.svgLabelBig),l=Fe({},Eu,{fontWeight:200,fontSize:11,fill:Cu,stroke:"none"},e.svgLabelSmall),c=Fe({color:(t=(n=(r=(o=e.htmlLabel)==null?void 0:o.color)!=null?r:(a=e.svgLabelBig)==null?void 0:a.fill)!=null?n:(i=e.svgLabelSmall)==null?void 0:i.fill)!=null?t:Cu},Eu,e.htmlLabel);return{backgroundColor:e.backgroundColor,colors:[].concat(e.colors),htmlLabel:Fe({},c),svgLabelSmall:Fe({},l),svgLabelBig:Fe({},s),gridStyles:Fe({stroke:e.gridColor,strokeWidth:1},e.gridStyles),axisStyles:{x:{top:{axisLabel:Fe({},s,{dy:"-0.25em"}),axisLine:Fe({stroke:e.gridColorDark,strokeWidth:2},e.xAxisLineStyles),tickLabel:Fe({},l,{dy:"-0.25em"}),tickLength:e.tickLength,tickLine:Fe({strokeWidth:1,stroke:e.gridColor},e.xTickLineStyles)},bottom:{axisLabel:Fe({},s,{dy:"-0.25em"}),axisLine:Fe({stroke:e.gridColorDark,strokeWidth:2},e.xAxisLineStyles),tickLabel:Fe({},l,{dy:"0.125em"}),tickLength:e.tickLength,tickLine:Fe({strokeWidth:1,stroke:e.gridColor},e.xTickLineStyles)}},y:{left:{axisLabel:Fe({},s,{dx:"-1.25em"}),axisLine:Fe({stroke:e.gridColor,strokeWidth:1},e.yAxisLineStyles),tickLabel:Fe({},l,{textAnchor:"end",dx:"-0.25em",dy:"0.25em"}),tickLength:e.tickLength,tickLine:Fe({strokeWidth:1,stroke:e.gridColor},e.yTickLineStyles)},right:{axisLabel:Fe({},s,{dx:"1.25em"}),axisLine:Fe({stroke:e.gridColor,strokeWidth:1},e.yAxisLineStyles),tickLabel:Fe({},l,{textAnchor:"start",dx:"0.25em",dy:"0.25em"}),tickLength:e.tickLength,tickLine:Fe({strokeWidth:1,stroke:e.gridColor},e.yTickLineStyles)}}}}}const r8=n8({backgroundColor:"#fff",colors:t8,tickLength:4,svgLabelSmall:{fill:ta[7]},svgLabelBig:{fill:ta[9]},gridColor:ta[5],gridColorDark:ta[9]});var o8=u.createContext(r8);const a8=o8;var i8=function(){function e(){this.registry={},this.registryKeys=[]}var t=e.prototype;return t.registerData=function(r){var o=this,a=Array.isArray(r)?r:[r];a.forEach(function(i){i.key in o.registry&&o.registry[i.key]!=null&&console.debug("Overriding data registry key",i.key),o.registry[i.key]=i,o.registryKeys=Object.keys(o.registry)})},t.unregisterData=function(r){var o=this,a=Array.isArray(r)?r:[r];a.forEach(function(i){delete o.registry[i],o.registryKeys=Object.keys(o.registry)})},t.entries=function(){return Object.values(this.registry)},t.get=function(r){return this.registry[r]},t.keys=function(){return this.registryKeys},e}();function s8(){var e=u.useState(Math.random()),t=e[1],n=u.useMemo(function(){return new i8},[]);return u.useMemo(function(){return{registerData:function(){n.registerData.apply(n,arguments),t(Math.random())},unregisterData:function(){n.unregisterData.apply(n,arguments),t(Math.random())},entries:function(){return n.entries()},get:function(o){return n.get(o)},keys:function(){return n.keys()}}},[n])}var Mu={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}};function l8(e){var t=u.useState({width:(e==null?void 0:e.width)==null?Mu.width:e.width,height:(e==null?void 0:e.height)==null?Mu.height:e.height,margin:(e==null?void 0:e.margin)==null?Mu.margin:e.margin}),n=t[0],r=t[1],o=u.useCallback(function(a){(a.width!==n.width||a.height!==n.height||a.margin.left!==n.margin.left||a.margin.right!==n.margin.right||a.margin.top!==n.margin.top||a.margin.bottom!==n.margin.bottom)&&r(a)},[n.width,n.height,n.margin.left,n.margin.right,n.margin.bottom,n.margin.top]);return[n,o]}function Xi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function c8(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Tu(e){let t,n,r;e.length!==2?(t=Xi,n=(s,l)=>Xi(e(s),l),r=(s,l)=>e(s)-l):(t=e===Xi||e===c8?e:u8,n=e,r=e);function o(s,l,c=0,f=s.length){if(c<f){if(t(l,l)!==0)return f;do{const d=c+f>>>1;n(s[d],l)<0?c=d+1:f=d}while(c<f)}return c}function a(s,l,c=0,f=s.length){if(c<f){if(t(l,l)!==0)return f;do{const d=c+f>>>1;n(s[d],l)<=0?c=d+1:f=d}while(c<f)}return c}function i(s,l,c=0,f=s.length){const d=o(s,l,c,f-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:o,center:i,right:a}}function u8(){return 0}function d8(e){return e===null?NaN:+e}const f8=Tu(Xi).left;Tu(d8).center;function Wv(e,t){let n,r;if(t===void 0)for(const o of e)o!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)));else{let o=-1;for(let a of e)(a=t(a,++o,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}function h8(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(o);++r<o;)a[r]=e+r*n;return a}function Pu(e){return(e==null?void 0:e.type)==="band"||(e==null?void 0:e.type)==="ordinal"||(e==null?void 0:e.type)==="point"}function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kr.apply(this,arguments)}function p8(e){var t=e.dataRegistry,n=e.xRange,r=e.xScaleConfig,o=e.yRange,a=e.yScaleConfig,i=t.keys(),s=n[0],l=n[1],c=o[0],f=o[1],d=u.useMemo(function(){var g=i.map(function(y){return t.get(y)}),p=g.reduce(function(y,b){return b?y.concat(b.data.map(function(w){return b.xAccessor(w)})):y},[]);if(p.length!==0){var m=Pu(r)?p:Wv(p),x=Nc(r)?Xo(Kr({range:[s,l],domain:m,zero:!0},r)):Xo(Kr({range:[s,l],domain:m},r));return g.forEach(function(y){y!=null&&y.xScale&&(x=y.xScale(x))}),x}},[t,r,i,s,l]),h=u.useMemo(function(){var g=i.map(function(y){return t.get(y)}),p=g.reduce(function(y,b){return b?y.concat(b.data.map(function(w){return b.yAccessor(w)})):y},[]);if(p.length!==0){var m=Pu(a)?p:Wv(p),x=Nc(a)?Xo(Kr({range:[c,f],domain:m,zero:!0},a)):Xo(Kr({range:[c,f],domain:m},a));return g.forEach(function(y){y!=null&&y.yScale&&(x=y.yScale(x))}),x}},[t,a,i,c,f]);return{xScale:d,yScale:h}}function Vv(e){var t=e.initialDimensions,n=e.theme,r=e.xScale,o=e.yScale,a=e.children,i=e.horizontal,s=i===void 0?"auto":i,l=e.resizeObserverPolyfill,c=u.useContext(a8),f=n||c,d=l8(t),h=d[0],g=h.width,p=h.height,m=h.margin,x=d[1],y=Math.max(0,g-m.left-m.right),b=Math.max(0,p-m.top-m.bottom),w=s8(),E=p8({dataRegistry:w,xScaleConfig:r,yScaleConfig:o,xRange:[m.left,Math.max(0,g-m.right)],yRange:[Math.max(0,p-m.bottom),m.top]}),S=E.xScale,T=E.yScale,N=w.keys(),M=u.useMemo(function(){return XO({domain:N,range:f.colors})},[N,f.colors]),O=s==="auto"?Pu(o)||o.type==="time"||o.type==="utc":s,F=u.useMemo(function(){return{dataRegistry:w,registerData:w.registerData,unregisterData:w.unregisterData,xScale:S,yScale:T,colorScale:M,theme:f,width:g,height:p,margin:m,innerWidth:y,innerHeight:b,setDimensions:x,horizontal:O,resizeObserverPolyfill:l}},[M,w,p,O,b,y,m,x,f,g,S,T,l]);return u.createElement(Kt.Provider,{value:F},a)}Vv.propTypes={children:se.node.isRequired,horizontal:se.oneOfType([se.bool,se.oneOf(["auto"])])};function Hv(e){var t=e.source,n=e.onPointerOut,r=n===void 0?!0:n,o=e.onPointerMove,a=o===void 0?!0:o,i=e.onPointerUp,s=i===void 0?!0:i,l=e.onPointerDown,c=l===void 0?!0:l,f=e.onFocus,d=f===void 0?!1:f,h=e.onBlur,g=h===void 0?!1:h,p=On(),m=u.useCallback(function(S){return p==null?void 0:p("pointermove",S,t)},[p,t]),x=u.useCallback(function(S){return p==null?void 0:p("pointerout",S,t)},[p,t]),y=u.useCallback(function(S){return p==null?void 0:p("pointerup",S,t)},[p,t]),b=u.useCallback(function(S){return p==null?void 0:p("pointerdown",S,t)},[p,t]),w=u.useCallback(function(S){return p==null?void 0:p("focus",S,t)},[p,t]),E=u.useCallback(function(S){return p==null?void 0:p("blur",S,t)},[p,t]);return{onPointerMove:a?m:void 0,onFocus:d?w:void 0,onBlur:g?E:void 0,onPointerOut:r?x:void 0,onPointerUp:s?y:void 0,onPointerDown:c?b:void 0}}var m8="GLYPHSERIES_EVENT_SOURCE",ku="XYCHART_EVENT_SOURCE";function Gv(e){return!!e&&("clientX"in e||"changedTouches"in e)}function g8(e){return!!e&&!Gv(e)}function Uv(e){var t=e.scale,n=e.accessor,r=e.scaledValue,o=e.data,a=t,i,s;if("invert"in a&&typeof a.invert=="function"){var l=Tu(n).left,c=Number(a.invert(r)),f=l(o,c),d=o[f-1],h=o[f];i=!d||Math.abs(c-n(d))>Math.abs(c-n(h))?h:d,s=i===d?f-1:f}else if("step"in a&&typeof a.step<"u"){var g=t.domain(),p=t.range().map(Number),m=[].concat(p).sort(function(T,N){return T-N}),x=h8(m[0],m[1],a.step()),y=f8(x,r),b=p[0]<p[1]?g:g.reverse(),w=b[y-1],E=o.findIndex(function(T){return String(n(T))===String(w)});i=o[E],s=E}else return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;if(i==null||s==null)return null;var S=Math.abs(Number(a(n(i)))-r);return{datum:i,index:s,distance:S}}function v8(e){var t=e.xScale,n=e.xAccessor,r=e.yScale,o=e.yAccessor,a=e.point,i=e.data;if(!a)return null;var s=Uv({scale:t,accessor:n,scaledValue:a.x,data:i});return s?{datum:s.datum,index:s.index,distanceX:s.distance,distanceY:Math.abs(Number(r(o(s.datum)))-a.y)}:null}function b8(e){var t=e.yScale,n=e.yAccessor,r=e.xScale,o=e.xAccessor,a=e.point,i=e.data;if(!a)return null;var s=Uv({scale:t,accessor:n,scaledValue:a.y,data:i});return s?{datum:s.datum,index:s.index,distanceY:s.distance,distanceX:Math.abs(Number(r(o(s.datum)))-a.x)}:null}function Ou(){return Ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ou.apply(this,arguments)}var Nu="__POINTER_EVENTS_ALL",Zi="__POINTER_EVENTS_NEAREST";function Yv(e){var t=e.dataKey,n=e.findNearestDatum,r=e.onBlur,o=e.onFocus,a=e.onPointerMove,i=e.onPointerOut,s=e.onPointerUp,l=e.onPointerDown,c=e.allowedSources,f=u.useContext(Kt),d=f.width,h=f.height,g=f.horizontal,p=f.dataRegistry,m=f.xScale,x=f.yScale,y=n||(g?b8:v8),b=u.useCallback(function(O){var F=O||{},j=F.svgPoint,H=F.event,G={},L=null,C=1/0;if(O&&H&&j&&d&&h&&m&&x){var _,B=t===Zi||t===Nu,V=B?(_=p==null?void 0:p.keys())!=null?_:[]:Array.isArray(t)?t:[t];V.forEach(function(A){var W=p==null?void 0:p.get(A);if(W){var ne=y({dataKey:A,data:W.data,height:h,point:j,width:d,xAccessor:W.xAccessor,xScale:m,yAccessor:W.yAccessor,yScale:x});if(ne&&(G[A]=Ou({key:A,svgPoint:j,event:H},ne),t===Zi)){var Q,re,oe=Math.sqrt(((Q=ne.distanceX)!=null?Q:Math.pow(1/0,2))+((re=ne.distanceY)!=null?re:Math.pow(1/0,2)));L=oe<C?G[A]:L,C=Math.min(C,oe)}}});var D=t===Zi?[L]:t===Nu||Array.isArray(t)?Object.values(G):[G[t]];return D.filter(function(A){return A})}return[]},[t,p,m,x,d,h,y]),w=u.useCallback(function(O){a&&b(O).forEach(function(F){return a(F)})},[b,a]),E=u.useCallback(function(O){s&&b(O).forEach(function(F){return s(F)})},[b,s]),S=u.useCallback(function(O){l&&b(O).forEach(function(F){return l(F)})},[b,l]),T=u.useCallback(function(O){o&&b(O).forEach(function(F){return o(F)})},[b,o]),N=u.useCallback(function(O){var F=O==null?void 0:O.event;F&&Gv(F)&&i&&i(F)},[i]),M=u.useCallback(function(O){var F=O==null?void 0:O.event;F&&g8(F)&&r&&r(F)},[r]);On("pointermove",a?w:void 0,c),On("pointerout",i?N:void 0,c),On("pointerup",s?E:void 0,c),On("pointerdown",l?S:void 0,c),On("focus",o?T:void 0,c),On("blur",r?M:void 0,c)}function Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qi.apply(this,arguments)}var y8={top:50,right:50,bottom:50,left:50},w8=[ku];function Xr(e){var t=e.accessibilityLabel,n=t===void 0?"XYChart":t,r=e.captureEvents,o=r===void 0?!0:r,a=e.children,i=e.height,s=e.horizontal,l=e.margin,c=l===void 0?y8:l,f=e.onPointerMove,d=e.onPointerOut,h=e.onPointerUp,g=e.onPointerDown,p=e.pointerEventsDataKey,m=p===void 0?"nearest":p,x=e.theme,y=e.width,b=e.xScale,w=e.yScale,E=e.resizeObserverPolyfill,S=u.useContext(Kt),T=S.setDimensions,N=S.resizeObserverPolyfill,M=u.useContext(Ro),O=On();u.useEffect(function(){T&&y!=null&&i!=null&&y>0&&i>0&&T({width:y,height:i,margin:c})},[T,y,i,c]);var F=Hv({source:ku});return Yv({dataKey:m==="nearest"?Zi:Nu,onPointerMove:f,onPointerOut:d,onPointerUp:h,onPointerDown:g,allowedSources:w8}),T?y==null||i==null?u.createElement(Jk,{resizeObserverPolyfill:N},function(j){return u.createElement(Xr,Qi({},e,{width:e.width==null?j.width:e.width,height:e.height==null?j.height:e.height}))}):M==null?u.createElement(Iv,null,u.createElement(Xr,e)):O==null?u.createElement(sO,null,u.createElement(Xr,e)):y<=0||i<=0?(console.info("XYChart has a zero width or height, bailing",{width:y,height:i}),null):u.createElement("svg",{width:y,height:i,"aria-label":n},a,o&&u.createElement("rect",Qi({x:c.left,y:c.top,width:y-c.left-c.right,height:i-c.top-c.bottom,fill:"transparent"},F))):!b||!w?(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null):u.createElement(Vv,{xScale:b,yScale:w,theme:x,initialDimensions:{width:y,height:i,margin:c},horizontal:s,resizeObserverPolyfill:E},u.createElement(Xr,e))}Xr.propTypes={accessibilityLabel:se.string,captureEvents:se.bool,width:se.number,height:se.number,children:se.node.isRequired,horizontal:se.oneOfType([se.bool,se.oneOf(["auto"])]),onPointerMove:se.func,onPointerOut:se.func,onPointerUp:se.func,onPointerDown:se.func,pointerEventsDataKey:se.oneOf(["all","nearest"])};function _u(){return _u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_u.apply(this,arguments)}function x8(e){function t(n){var r=n.dataKey,o=n.data,a=n.xAccessor,i=n.yAccessor,s=u.useContext(Kt),l=s.xScale,c=s.yScale,f=s.dataRegistry;u.useEffect(function(){return f&&f.registerData({key:r,data:o,xAccessor:a,yAccessor:i}),function(){return f==null?void 0:f.unregisterData(r)}},[f,r,o,a,i]);var d=f==null?void 0:f.get(r);if(!l||!c||!d)return null;var h=e;return u.createElement(h,_u({},n,{xScale:l,yScale:c,data:d.data,xAccessor:d.xAccessor,yAccessor:d.yAccessor}))}return t}function qv(e,t,n){return n===void 0&&(n="center"),function(r){var o=e(t(r));if(Ct(o)){var a=(n==="start"?0:_c(e))/(n==="center"?2:1);return o+a}return NaN}}function $8(e){var t,n=e.dataKey,r=e.enableEvents,o=e.findNearestDatum,a=e.onBlur,i=e.onFocus,s=e.onPointerMove,l=e.onPointerOut,c=e.onPointerUp,f=e.onPointerDown,d=e.source,h=e.allowedSources,g=(t=u.useContext(Ro))!=null?t:{},p=g.showTooltip,m=g.hideTooltip,x=u.useCallback(function(S){p(S),s&&s(S)},[p,s]),y=u.useCallback(function(S){p(S),i&&i(S)},[p,i]),b=u.useCallback(function(S){m(),S&&l&&l(S)},[m,l]),w=u.useCallback(function(S){m(),S&&a&&a(S)},[m,a]),E=u.useCallback(function(S){p(S),f&&f(S)},[p,f]);return Yv({dataKey:n,findNearestDatum:o,onBlur:r?w:void 0,onFocus:r?y:void 0,onPointerMove:r?x:void 0,onPointerOut:r?b:void 0,onPointerUp:r?c:void 0,onPointerDown:r?E:void 0,allowedSources:h}),Hv({source:d,onBlur:!!a&&r,onFocus:!!i&&r,onPointerMove:!!s&&r,onPointerOut:!!l&&r,onPointerUp:!!c&&r,onPointerDown:!!f&&r})}function Du(){return Du=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Du.apply(this,arguments)}function Kv(e){var t,n,r,o=e.colorAccessor,a=e.data,i=e.dataKey,s=e.onBlur,l=e.onFocus,c=e.onPointerMove,f=e.onPointerOut,d=e.onPointerUp,h=e.onPointerDown,g=e.enableEvents,p=g===void 0?!0:g,m=e.renderGlyphs,x=e.size,y=x===void 0?8:x,b=e.xAccessor,w=e.xScale,E=e.yAccessor,S=e.yScale,T=u.useContext(Kt),N=T.colorScale,M=T.theme,O=T.horizontal,F=u.useMemo(function(){return qv(w,b)},[w,b]),j=u.useMemo(function(){return qv(S,E)},[S,E]),H=(t=(n=N==null?void 0:N(i))!=null?n:M==null||(r=M.colors)==null?void 0:r[0])!=null?t:"#222",G=m8+"-"+i,L=$8({dataKey:i,enableEvents:p,onBlur:s,onFocus:l,onPointerMove:c,onPointerOut:f,onPointerUp:d,onPointerDown:h,source:G,allowedSources:[ku,G]}),C=u.useMemo(function(){return a.map(function(_,B){var V,D=F(_);if(!Ct(D))return null;var A=j(_);return Ct(A)?{key:""+B,x:D,y:A,color:(V=o==null?void 0:o(_,B))!=null?V:H,size:typeof y=="function"?y(_):y,datum:_}:null}).filter(function(_){return _})},[H,o,a,F,j,y]);return u.createElement(u.Fragment,null,m(Du({glyphs:C,xScale:w,yScale:S,horizontal:O},L)))}Kv.propTypes={colorAccessor:se.func,size:se.oneOfType([se.number,se.func]),renderGlyphs:se.func.isRequired};const S8=x8(Kv);function C8(e){var t=e.key,n=e.color,r=e.x,o=e.y,a=e.size,i=e.onBlur,s=e.onFocus,l=e.onPointerMove,c=e.onPointerOut,f=e.onPointerUp;return u.createElement("circle",{className:"visx-circle-glyph",key:t,tabIndex:i||s?0:void 0,fill:n,r:a/2,cx:r,cy:o,onBlur:i,onFocus:s,onPointerMove:l,onPointerOut:c,onPointerUp:f})}var E8=["renderGlyph"];function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ji.apply(this,arguments)}function M8(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function T8(e){var t=e.renderGlyph,n=t===void 0?C8:t,r=M8(e,E8),o=u.useCallback(function(a){var i=a.glyphs,s=a.onPointerMove,l=a.onPointerOut,c=a.onPointerUp,f=a.onFocus,d=a.onBlur;return i.map(function(h){return u.createElement(u.Fragment,{key:h.key},n(Ji({},h,{onPointerMove:s,onPointerOut:l,onPointerUp:c,onFocus:f,onBlur:d})))})},[n]);return u.createElement(S8,Ji({},r,{renderGlyphs:o}))}function Xv(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.className,i=e.children;return u.createElement(Kn,{className:ct("visx-glyph",a),top:n,left:o},i)}Xv.propTypes={top:se.number,left:se.number,className:se.string,children:se.node};var P8=["top","left","className"];function Au(){return Au=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Au.apply(this,arguments)}function k8(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Iu(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.className,i=k8(e,P8);return u.createElement(Xv,{top:n,left:o},u.createElement("circle",Au({className:ct("visx-glyph-dot",a)},i)))}Iu.propTypes={className:se.string,top:se.number,left:se.number,r:se.number,cx:se.number,cy:se.number};var O8=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall","resizeObserverPolyfill"];function Ri(){return Ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ri.apply(this,arguments)}function N8(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var _8=[],D8={width:"100%",height:"100%"};function es(e){var t=e.className,n=e.children,r=e.debounceTime,o=r===void 0?300:r,a=e.ignoreDimensions,i=a===void 0?_8:a,s=e.parentSizeStyles,l=s===void 0?D8:s,c=e.enableDebounceLeadingCall,f=c===void 0?!0:c,d=e.resizeObserverPolyfill,h=N8(e,O8),g=u.useRef(null),p=u.useRef(0),m=u.useState({width:0,height:0,top:0,left:0}),x=m[0],y=m[1],b=u.useMemo(function(){var w=Array.isArray(i)?i:[i];return Ov(function(E){y(function(S){var T=Object.keys(S),N=T.filter(function(O){return S[O]!==E[O]}),M=N.every(function(O){return w.includes(O)});return M?S:E})},o,{leading:f})},[o,f,i]);return u.useEffect(function(){var w=d||window.ResizeObserver,E=new w(function(S){S.forEach(function(T){var N,M=(N=T==null?void 0:T.contentRect)!=null?N:{},O=M.left,F=M.top,j=M.width,H=M.height;p.current=window.requestAnimationFrame(function(){b({width:j,height:H,top:F,left:O})})})});return g.current&&E.observe(g.current),function(){window.cancelAnimationFrame(p.current),E.disconnect(),b.cancel()}},[b,d]),u.createElement("div",Ri({style:l,ref:g,className:t},h),n(Ri({},x,{ref:g.current,resize:b})))}es.propTypes={className:se.string,debounceTime:se.number,enableDebounceLeadingCall:se.bool,ignoreDimensions:se.oneOfType([se.any,se.arrayOf(se.any)]),children:se.func.isRequired};const Zv=[{name:"default",dark:"#1565BC",light:"#99D2F9"},{name:"yellow",dark:"#8C6A00",light:"#FFDE88"},{name:"plum",dark:"#7D1779",light:"#E1AADD"},{name:"purple",dark:"#7651BC",light:"#E7DAFF"},{name:"pink",dark:"#C01443",light:"#FAD4D4"},{name:"green",dark:"#44812F",light:"#B1E39F"},{name:"orange",dark:"#B96400",light:"#FFE7C5"},{name:"teal",dark:"#237C73",light:"#A1DFD5"},{name:"red",dark:"#C62C02",light:"#FFE1D9"}];function rt(e){return Zv[e%Zv.length]}function Lu({textLabel:e,axisCharLimit:t,x:n,y:r,textStyles:o}){return v.jsx(Xh,{children:v.jsxs(Zh,{children:[v.jsx(Qh,{asChild:!0,children:v.jsx("text",{className:"pointer-events-auto cursor-pointer",...o,x:n,y:r,children:e&&(e==null?void 0:e.length)>t?`${e==null?void 0:e.substring(0,t)}...`:e})}),v.jsx(Jh,{children:v.jsx(pl,{className:"rabbit-ds",children:v.jsx("p",{children:e})})})]})})}const Qv=(e,t)=>u.Children.map(e,n=>u.isValidElement(n)&&typeof n.type=="function"&&n.type.displayName===t.displayName?n:null);function Fu({value:e,darkColor:t,lightColor:n}){return v.jsxs("div",{className:"px-2 py-1 justify-start items-center gap-2 inline-flex",children:[v.jsx("div",{style:{backgroundColor:n,borderColor:t},className:"w-3 h-3 relative rounded-3xl border"}),v.jsx("div",{className:"justify-start items-start flex",children:v.jsx("div",{className:"text-zinc-800 text-xs font-normal leading-none",children:e})})]})}function ju({label:e,value:t}){return v.jsxs("div",{className:"px-1 py-0.5 flex-col justify-start items-start inline-flex max-w-sm",children:[v.jsx("div",{className:" text-stone-500 text-[10px] font-normal leading-none",children:e}),v.jsx("div",{className:"justify-start items-start text-sm flex font-medium",children:t||"-"})]})}function qe({children:e,showSideBySide:t,tooltipTitle:n}){const r=Qv(e,Fu),o=Qv(e,ju);return v.jsxs("div",{className:"rabbit-ds z-[1500] relative h-auto w-auto min-w-[200px] max-w-[400px] p-2 bg-white rounded-lg shadow flex-col justify-start items-start gap-2 inline-flex",children:[v.jsx("div",{className:"px-3 py-1 text-zinc-800 font-medium text-xs leading-none",children:n}),v.jsxs("div",{className:"w-full p-2 rounded-lg flex-col justify-start items-start flex",children:[t&&v.jsxs("div",{className:me("w-full flex"),children:[o&&o[0],v.jsx("div",{className:"w-0 border-r mx-3"}),o&&o[1]]}),!t&&v.jsx("div",{className:me("w-full grid gap-3 auto-rows-auto"),children:o})]}),r&&r.length>0?v.jsx("div",{className:"h-px px-2 w-full border-top bg-gray-100"}):null,r]})}Fu.displayName="Legend",ju.displayName="Item",qe.Legend=Fu,qe.Item=ju,qe.defaultProps={showSideBySide:!1};function Jv({xValue:e,yValue:t,tooltipTitle:n,xAxisLabel:r,yAxisLabel:o,showSideBySide:a,legendValue:i,legendDarkColor:s,legendLightColor:l}){const c=e==null?void 0:e.toString(),f=t==null?void 0:t.toString();return v.jsxs(qe,{tooltipTitle:n,showSideBySide:a,children:[v.jsx(qe.Item,{label:r,value:c}),v.jsx(qe.Item,{label:o,value:f}),v.jsx(qe.Legend,{value:i,darkColor:s,lightColor:l})]})}Jv.defaultProps={xValue:void 0,yValue:void 0};function A8({data:e,xAccessor:t,yAccessor:n,connectNulls:r=!1}){const o=u.useContext(Kt),a=r?e.filter(i=>i.y!==null):e;return v.jsx(a4,{data:a,stroke:a[0].color.dark,strokeWidth:1,x:i=>{var s,l;return((s=o==null?void 0:o.xScale)==null?void 0:s.call(o,t(i)))+((l=o==null?void 0:o.xScale)==null?void 0:l.bandwidth())/2},y:i=>{var s;return(s=o==null?void 0:o.yScale)==null?void 0:s.call(o,n(i))}})}var zu={exports:{}};(function(e,t){(function(n,r){r(t)})(so,function(n){var r,o=Object.defineProperty,a=Object.defineProperties,i=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,f=Math.pow,d=($,P,I)=>P in $?o($,P,{enumerable:!0,configurable:!0,writable:!0,value:I}):$[P]=I,h=($,P)=>{for(var I in P||(P={}))l.call(P,I)&&d($,I,P[I]);if(s)for(var I of s(P))c.call(P,I)&&d($,I,P[I]);return $},g=($,P)=>a($,i(P)),p=($,P)=>{var I={};for(var z in $)l.call($,z)&&P.indexOf(z)<0&&(I[z]=$[z]);if($!=null&&s)for(var z of s($))P.indexOf(z)<0&&c.call($,z)&&(I[z]=$[z]);return I},m=($,P,I)=>new Promise((z,q)=>{var ee=ce=>{try{R(I.next(ce))}catch(de){q(de)}},Y=ce=>{try{R(I.throw(ce))}catch(de){q(de)}},R=ce=>ce.done?z(ce.value):Promise.resolve(ce.value).then(ee,Y);R((I=I.apply($,P)).next())});function x($,P){return $[13]=1,$[14]=P>>8,$[15]=P&255,$[16]=P>>8,$[17]=P&255,$}const y="p".charCodeAt(0),b="H".charCodeAt(0),w="Y".charCodeAt(0),E="s".charCodeAt(0);let S;function T(){const $=new Int32Array(256);for(let P=0;P<256;P++){let I=P;for(let z=0;z<8;z++)I=I&1?3988292384^I>>>1:I>>>1;$[P]=I}return $}function N($){let P=-1;S||(S=T());for(let I=0;I<$.length;I++)P=S[(P^$[I])&255]^P>>>8;return P^-1}function M($){const P=$.length-1;for(let I=P;I>=4;I--)if($[I-4]===9&&$[I-3]===y&&$[I-2]===b&&$[I-1]===w&&$[I]===E)return I-3;return 0}function O($,P,I=!1){const z=new Uint8Array(13);P*=39.3701,z[0]=y,z[1]=b,z[2]=w,z[3]=E,z[4]=P>>>24,z[5]=P>>>16,z[6]=P>>>8,z[7]=P&255,z[8]=z[4],z[9]=z[5],z[10]=z[6],z[11]=z[7],z[12]=1;const q=N(z),ee=new Uint8Array(4);if(ee[0]=q>>>24,ee[1]=q>>>16,ee[2]=q>>>8,ee[3]=q&255,I){const Y=M($);return $.set(z,Y),$.set(ee,Y+13),$}else{const Y=new Uint8Array(4);Y[0]=0,Y[1]=0,Y[2]=0,Y[3]=9;const R=new Uint8Array(54);return R.set($,0),R.set(Y,33),R.set(z,37),R.set(ee,50),R}}const F="AAlwSFlz",j="AAAJcEhZ",H="AAAACXBI";function G($){let P=$.indexOf(F);return P===-1&&(P=$.indexOf(j)),P===-1&&(P=$.indexOf(H)),P}const L="[modern-screenshot]",C=typeof window<"u",_=C&&"Worker"in window,B=C&&"atob"in window,V=C&&"btoa"in window,D=C?(r=window.navigator)==null?void 0:r.userAgent:"",A=D.includes("Chrome"),W=D.includes("AppleWebKit")&&!A,ne=D.includes("Firefox"),Q=$=>$&&"__CONTEXT__"in $,re=$=>$.constructor.name==="CSSFontFaceRule",oe=$=>$.constructor.name==="CSSImportRule",ue=$=>$.nodeType===1,X=$=>typeof $.className=="object",le=$=>$.tagName==="image",U=$=>$.tagName==="use",Z=$=>ue($)&&typeof $.style<"u"&&!X($),ie=$=>$.nodeType===8,k=$=>$.nodeType===3,te=$=>$.tagName==="IMG",ae=$=>$.tagName==="VIDEO",ge=$=>$.tagName==="CANVAS",we=$=>$.tagName==="TEXTAREA",Ee=$=>$.tagName==="INPUT",Ke=$=>$.tagName==="STYLE",Xe=$=>$.tagName==="SCRIPT",ot=$=>$.tagName==="SELECT",vt=$=>$.tagName==="SLOT",Xt=$=>$.tagName==="IFRAME",je=(...$)=>console.warn(L,...$),ur=$=>console.time(`${L} ${$}`),Jr=$=>console.timeEnd(`${L} ${$}`),Dn=$=>{var P;const I=(P=$==null?void 0:$.createElement)==null?void 0:P.call($,"canvas");return I&&(I.height=I.width=1),I&&"toDataURL"in I&&!!I.toDataURL("image/webp").includes("image/webp")},Ze=$=>$.startsWith("data:");function ft($,P){if($.match(/^[a-z]+:\/\//i))return $;if(C&&$.match(/^\/\//))return window.location.protocol+$;if($.match(/^[a-z]+:/i)||!C)return $;const I=at().implementation.createHTMLDocument(),z=I.createElement("base"),q=I.createElement("a");return I.head.appendChild(z),I.body.appendChild(q),P&&(z.href=P),q.href=$,q.href}function at($){var P;return(P=$&&ue($)?$==null?void 0:$.ownerDocument:$)!=null?P:window.document}const jt="http://www.w3.org/2000/svg";function un($,P,I){const z=at(I).createElementNS(jt,"svg");return z.setAttributeNS(null,"width",$.toString()),z.setAttributeNS(null,"height",P.toString()),z.setAttributeNS(null,"viewBox",`0 0 ${$} ${P}`),z}function zt($,P){let I=new XMLSerializer().serializeToString($);return P&&(I=I.replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/ug,"")),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(I)}`}function Rr($,P="image/png",I=1){return m(this,null,function*(){try{return yield new Promise((z,q)=>{$.toBlob(ee=>{ee?z(ee):q(new Error("Blob is null"))},P,I)})}catch(z){if(B)return je("Failed canvas to blob",{type:P,quality:I},z),eo($.toDataURL(P,I));throw z}})}function eo($){var P,I;const[z,q]=$.split(","),ee=(I=(P=z.match(/data:(.+);/))==null?void 0:P[1])!=null?I:void 0,Y=window.atob(q),R=Y.length,ce=new Uint8Array(R);for(let de=0;de<R;de+=1)ce[de]=Y.charCodeAt(de);return new Blob([ce],{type:ee})}function dr($,P){return new Promise((I,z)=>{const q=new FileReader;q.onload=()=>I(q.result),q.onerror=()=>z(q.error),q.onabort=()=>z(new Error(`Failed read blob to ${P}`)),P==="dataUrl"?q.readAsDataURL($):P==="arrayBuffer"&&q.readAsArrayBuffer($)})}const to=$=>dr($,"dataUrl"),fr=$=>dr($,"arrayBuffer");function Et($,P){const I=at(P).createElement("img");return I.decoding="sync",I.loading="eager",I.src=$,I}function Bt($,P){return new Promise(I=>{const{timeout:z,ownerDocument:q,onError:ee}=P??{},Y=typeof $=="string"?Et($,at(q)):$;let R=null,ce=null;function de(){I(Y),R&&clearTimeout(R),ce==null||ce()}if(z&&(R=setTimeout(de,z)),ae(Y)){const fe=Y.currentSrc||Y.src;if(!fe)return Y.poster?Bt(Y.poster,P).then(I):de();if(Y.readyState>=2)return de();const be=de,he=Se=>{je("Failed video load",fe,Se),ee==null||ee(Se),de()};ce=()=>{Y.removeEventListener("loadeddata",be),Y.removeEventListener("error",he)},Y.addEventListener("loadeddata",be,{once:!0}),Y.addEventListener("error",he,{once:!0})}else{const fe=le(Y)?Y.href.baseVal:Y.currentSrc||Y.src;if(!fe)return de();const be=()=>m(this,null,function*(){if(te(Y)&&"decode"in Y)try{yield Y.decode()}catch(Se){je("Failed to decode image, trying to render anyway",Y.dataset.originalSrc||fe,Se)}de()}),he=Se=>{je("Failed image load",Y.dataset.originalSrc||fe,Se),de()};if(te(Y)&&Y.complete)return be();ce=()=>{Y.removeEventListener("load",be),Y.removeEventListener("error",he)},Y.addEventListener("load",be,{once:!0}),Y.addEventListener("error",he,{once:!0})}})}function An($,P){return m(this,null,function*(){Z($)&&(te($)||ae($)?yield Bt($,{timeout:P}):yield Promise.all(["img","video"].flatMap(I=>Array.from($.querySelectorAll(I)).map(z=>Bt(z,{timeout:P})))))})}const In=function(){let $=0;const P=()=>`0000${(Math.random()*f(36,4)<<0).toString(36)}`.slice(-4);return()=>($+=1,`u${P()}${$}`)}();function ia($){return $==null?void 0:$.split(",").map(P=>P.trim().replace(/"|'/g,"").toLowerCase()).filter(Boolean)}function ls($){return{time:P=>$&&ur(P),timeEnd:P=>$&&Jr(P),warn:(...P)=>$&&je(...P)}}function cs($){return{cache:$?"no-cache":"force-cache"}}function bt($,P){return m(this,null,function*(){return Q($)?$:us($,g(h({},P),{autoDestruct:!0}))})}function us($,P){return m(this,null,function*(){var I,z,q,ee,Y;const{scale:R=1,workerUrl:ce,workerNumber:de=1}=P||{},fe=!!(P!=null&&P.debug),be=(I=P==null?void 0:P.features)!=null?I:!0,he=(z=$.ownerDocument)!=null?z:C?window.document:void 0,Se=(ee=(q=$.ownerDocument)==null?void 0:q.defaultView)!=null?ee:C?window:void 0,$e=new Map,Me=g(h({width:0,height:0,quality:1,type:"image/png",scale:R,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:3e4,progress:null,debug:fe,fetch:h({requestInit:cs((Y=P==null?void 0:P.fetch)==null?void 0:Y.bypassingCache),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1},P==null?void 0:P.fetch),font:{},drawImageInterval:100,workerUrl:null,workerNumber:de,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,autoDestruct:!1},P),{__CONTEXT__:!0,log:ls(fe),node:$,ownerDocument:he,ownerWindow:Se,dpi:R===1?null:96*R,svgStyleElement:it(he),svgDefsElement:he==null?void 0:he.createElementNS(jt,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...new Array(_&&ce&&de?de:0)].map(()=>{try{const ze=new Worker(ce);return ze.onmessage=Ie=>m(this,null,function*(){var st,hn,Ln,ib;const{url:sd,result:sb}=Ie.data;sb?(hn=(st=$e.get(sd))==null?void 0:st.resolve)==null||hn.call(st,sb):(ib=(Ln=$e.get(sd))==null?void 0:Ln.reject)==null||ib.call(Ln,new Error(`Error receiving message from worker: ${sd}`))}),ze.onmessageerror=Ie=>{var st,hn;const{url:Ln}=Ie.data;(hn=(st=$e.get(Ln))==null?void 0:st.reject)==null||hn.call(st,new Error(`Error receiving message from worker: ${Ln}`))},ze}catch(ze){return je("Failed to new Worker",ze),null}}).filter(Boolean),fontFamilies:new Set,fontCssTexts:new Map,acceptOfImage:`${[Dn(he)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:$e,drawImageCount:0,tasks:[],features:be,isEnable:ze=>{var Ie;return typeof be=="boolean"?be:(Ie=be[ze])!=null?Ie:!0}});Me.log.time("wait until load"),yield An($,Me.timeout),Me.log.timeEnd("wait until load");const{width:Pe,height:ke}=Mt($,Me);return Me.width=Pe,Me.height=ke,Me})}function it($){if(!$)return;const P=$.createElement("style"),I=P.ownerDocument.createTextNode(`
79
79
  .______background-clip--text {
80
80
  background-clip: text;
81
81
  -webkit-background-clip: text;
82
82
  }
83
- `);return P.appendChild(I),P}function Tt($,P){let{width:I,height:z}=P;if(ue($)&&(!I||!z)){const q=$.getBoundingClientRect();I=I||q.width||Number($.getAttribute("width"))||0,z=z||q.height||Number($.getAttribute("height"))||0}return{width:I,height:z}}function dn($,P){return m(this,null,function*(){const{log:I,timeout:z,drawImageCount:q,drawImageInterval:ee}=P;I.time("image to canvas");const Y=yield zt($,{timeout:z}),{canvas:R,context2d:ce}=fn($.ownerDocument,P),de=()=>{try{ce==null||ce.drawImage(Y,0,0,R.width,R.height)}catch(fe){je("Failed to drawImage",fe)}};if(de(),P.isEnable("fixSvgXmlDecode"))for(let fe=0;fe<q;fe++)yield new Promise(ve=>{setTimeout(()=>{de(),ve()},fe+ee)});return P.drawImageCount=0,I.timeEnd("image to canvas"),R})}function fn($,P){const{width:I,height:z,scale:q,backgroundColor:ee,maximumCanvasSize:Y}=P,R=$.createElement("canvas");R.width=Math.floor(I*q),R.height=Math.floor(z*q),R.style.width=`${I}px`,R.style.height=`${z}px`,Y&&(R.width>Y||R.height>Y)&&(R.width>Y&&R.height>Y?R.width>R.height?(R.height*=Y/R.width,R.width=Y):(R.width*=Y/R.height,R.height=Y):R.width>Y?(R.height*=Y/R.width,R.width=Y):(R.width*=Y/R.height,R.height=Y));const ce=R.getContext("2d");return ce&&ee&&(ce.fillStyle=ee,ce.fillRect(0,0,R.width,R.height)),{canvas:R,context2d:ce}}const yt=["width","height"],fr=["stroke","fill"];function hr($,P,I){var z;const{defaultComputedStyles:q,ownerDocument:ee}=I,Y=$.nodeName.toLowerCase(),R=X($)&&Y!=="svg",ce=R?fr.map(ke=>[ke,$.getAttribute(ke)]).filter(([,ke])=>ke!==null):[],de=[R&&"svg",Y,ce.map((ke,ze)=>`${ke}=${ze}`).join(","),P].filter(Boolean).join(":");if(q.has(de))return q.get(de);let fe=I.sandbox;if(!fe)try{ee&&(fe=ee.createElement("iframe"),fe.id=`__SANDBOX__-${An()}`,fe.width="0",fe.height="0",fe.style.visibility="hidden",fe.style.position="fixed",ee.body.appendChild(fe),(z=fe.contentWindow)==null||z.document.write('<!DOCTYPE html><meta charset="UTF-8"><title></title><body>'),I.sandbox=fe)}catch(ke){je("Failed to create iframe sandbox",ke)}if(!fe)return new Map;const ve=fe.contentWindow;if(!ve)return new Map;const he=ve.document;let Se,$e;R?(Se=he.createElementNS(Ft,"svg"),$e=Se.ownerDocument.createElementNS(Se.namespaceURI,Y),ce.forEach(([ke,ze])=>{$e.setAttributeNS(null,ke,ze)}),Se.appendChild($e)):Se=$e=he.createElement(Y),$e.textContent=" ",he.body.appendChild(Se);const Te=ve.getComputedStyle($e,P),Pe=new Map;for(let ke=Te.length,ze=0;ze<ke;ze++){const Ie=Te.item(ze);yt.includes(Ie)||Pe.set(Ie,Te.getPropertyValue(Ie))}return he.body.removeChild(Se),q.set(de,Pe),Pe}function to($,P){var I;const z=new Map,q=[],ee=new Map;for(let Y=$.length,R=0;R<Y;R++){const ce=$.item(R),de=$.getPropertyValue(ce),fe=$.getPropertyPriority(ce),ve=ce.lastIndexOf("-"),he=ve>-1?ce.substring(0,ve):void 0;if(he){let Se=ee.get(he);Se||(Se=new Map,ee.set(he,Se)),Se.set(ce,[de,fe])}P.get(ce)===de&&!fe||(he?q.push(he):z.set(ce,[de,fe]))}for(let Y=q.length,R=0;R<Y;R++)(I=ee.get(q[R]))==null||I.forEach((ce,de)=>z.set(de,ce));return z}const no=[":before",":after"],ss=[":-webkit-scrollbar",":-webkit-scrollbar-button",":-webkit-scrollbar-thumb",":-webkit-scrollbar-track",":-webkit-scrollbar-track-piece",":-webkit-scrollbar-corner",":-webkit-resizer"];function ls($,P,I,z){const{ownerWindow:q,svgStyleElement:ee,svgStyles:Y}=z;if(!ee||!q)return;function R(ce){var de;const fe=q.getComputedStyle($,ce);let ve=fe.getPropertyValue("content");if(!ve||ve==="none")return;ve=ve.replace(/(')|(")|(counter\(.+\))/g,"");const he=[An()],Se=hr($,ce,z),$e=[`content: '${ve}';`],Te=to(fe,Se);if(Te.delete("content"),Te.delete("-webkit-locale"),((de=Te.get("background-clip"))==null?void 0:de[0])==="text"&&P.classList.add("______background-clip--text"),Te.forEach(([ze,Ie],st)=>{$e.push(`${st}: ${ze}${Ie?" !important":""};`)}),$e.length===1)return;try{P.className=[P.className,...he].join(" ")}catch{return}const Pe=$e.join(`
84
- `);let ke=Y.get(Pe);ke||(ke=[],Y.set(Pe,ke)),ke.push(`.${he[0]}:${ce}`)}no.forEach(R),I&&ss.forEach(R)}function jN($,P){ye($)&&(P.innerHTML=$.value),(ye($)||Ee($)||ot($))&&P.setAttribute("value",$.value)}function zN($,P,I,z){var q,ee,Y,R;const{ownerWindow:ce}=z,de=P.style,fe=ce.getComputedStyle($),ve=hr($,null,z),he=to(fe,ve);return he.delete("transition-property"),he.delete("all"),he.delete("d"),he.delete("content"),I&&(he.delete("margin-top"),he.delete("margin-right"),he.delete("margin-bottom"),he.delete("margin-left"),he.delete("margin-block-start"),he.delete("margin-block-end"),he.delete("margin-inline-start"),he.delete("margin-inline-end"),he.set("box-sizing",["border-box",""])),((q=he.get("background-clip"))==null?void 0:q[0])==="text"&&P.classList.add("______background-clip--text"),A&&(he.has("font-kerning")||he.set("font-kerning",["normal",""]),(((ee=he.get("overflow-x"))==null?void 0:ee[0])==="hidden"||((Y=he.get("overflow-y"))==null?void 0:Y[0])==="hidden")&&((R=he.get("text-overflow"))==null?void 0:R[0])==="ellipsis"&&$.scrollWidth===$.clientWidth&&he.set("text-overflow",["clip",""])),he.forEach(([Se,$e],Te)=>{de.setProperty(Te,Se,$e)}),he}function BN($,P){var I;try{if((I=$==null?void 0:$.contentDocument)!=null&&I.body)return cs($.contentDocument.body,P)}catch(z){je("Failed to clone iframe",z)}return $.cloneNode(!1)}function H1($){if($.ownerDocument)try{const q=$.toDataURL();if(q!=="data:,")return Et(q,$.ownerDocument)}catch{}const P=$.cloneNode(!1),I=$.getContext("2d"),z=P.getContext("2d");try{return I&&z&&z.putImageData(I.getImageData(0,0,$.width,$.height),0,0),P}catch(q){je("Failed to clone canvas",q)}return P}function WN($){return m(this,null,function*(){if($.ownerDocument&&!$.currentSrc&&$.poster)return Et($.poster,$.ownerDocument);const P=$.cloneNode(!1);P.crossOrigin="anonymous",$.currentSrc&&$.currentSrc!==$.src&&(P.src=$.currentSrc);const I=P.ownerDocument;if(I){let z=!0;if(yield zt(P,{onError:()=>z=!1}),!z)return $.poster?Et($.poster,$.ownerDocument):P;P.currentTime=$.currentTime,yield new Promise(ee=>{P.addEventListener("seeked",ee,{once:!0})});const q=I.createElement("canvas");q.width=$.offsetWidth,q.height=$.offsetHeight;try{const ee=q.getContext("2d");ee&&ee.drawImage(P,0,0,q.width,q.height)}catch(ee){return je("Failed to clone video",ee),$.poster?Et($.poster,$.ownerDocument):P}return H1(q)}return P})}function VN($){const P=$.cloneNode(!1);return $.currentSrc&&$.currentSrc!==$.src&&(P.src=$.currentSrc,P.srcset=""),P.loading==="lazy"&&(P.loading="eager"),P}function HN($,P){return me($)?H1($):Kt($)?BN($,P):te($)?VN($):ae($)?WN($):$.cloneNode(!1)}function G1($,P,I){return m(this,null,function*(){ue(P)&&(Ke(P)||Xe(P))||I.filter&&!I.filter(P)||$.appendChild(yield cs(P,I))})}function U1($,P,I){return m(this,null,function*(){var z,q;const ee=(q=ue($)?(z=$.shadowRoot)==null?void 0:z.firstChild:void 0)!=null?q:$.firstChild;for(let Y=ee;Y;Y=Y.nextSibling)if(!ie(Y))if(ue(Y)&&vt(Y)&&typeof Y.assignedNodes=="function"){const R=Y.assignedNodes();for(let ce=0;ce<R.length;ce++)yield G1(P,R[ce],I)}else yield G1(P,Y,I)})}function GN($,P){const{backgroundColor:I,width:z,height:q,style:ee}=P,Y=$.style;if(I&&Y.setProperty("background-color",I,"important"),z&&Y.setProperty("width",`${z}px`,"important"),q&&Y.setProperty("height",`${q}px`,"important"),ee)for(const R in ee)Y[R]=ee[R]}const UN=/^[\w-:]+$/;function cs($,P,I=!1){return m(this,null,function*(){var z,q,ee,Y;const{ownerDocument:R,ownerWindow:ce,fontFamilies:de}=P;if(R&&k($))return R.createTextNode($.data);if(R&&ce&&ue($)&&(Z($)||X($))){const ve=yield HN($,P);if(P.isEnable("removeAbnormalAttributes")){const $e=ve.getAttributeNames();for(let Te=$e.length,Pe=0;Pe<Te;Pe++){const ke=$e[Pe];UN.test(ke)||ve.removeAttribute(ke)}}const he=zN($,ve,I,P);I&&GN(ve,P);let Se=!1;if(P.isEnable("copyScrollbar")){const $e=[(z=he.get("overflow-x"))==null?void 0:z[0],(q=he.get("overflow-y"))==null?void 0:q[1]];Se=$e.includes("scroll")||($e.includes("auto")||$e.includes("overlay"))&&($.scrollHeight>$.clientHeight||$.scrollWidth>$.clientWidth)}return ls($,ve,Se,P),jN($,ve),(Y=ra((ee=he.get("font-family"))==null?void 0:ee[0]))==null||Y.forEach($e=>de.add($e)),ae($)||(yield U1($,ve,P)),ve}const fe=$.cloneNode(!1);return yield U1($,fe,P),fe})}function Y1($){if($.ownerDocument=void 0,$.ownerWindow=void 0,$.svgStyleElement=void 0,$.svgDefsElement=void 0,$.svgStyles.clear(),$.defaultComputedStyles.clear(),$.sandbox){try{$.sandbox.remove()}catch{}$.sandbox=void 0}$.workers=[],$.fontFamilies.clear(),$.fontCssTexts.clear(),$.requests.clear(),$.tasks=[]}function YN($){const P=$,{url:I,timeout:z,responseType:q}=P,ee=p(P,["url","timeout","responseType"]),Y=new AbortController,R=z?setTimeout(()=>Y.abort(),z):void 0;return fetch(I,h({signal:Y.signal},ee)).then(ce=>{if(!ce.ok)throw new Error("Failed fetch, not 2xx response",{cause:ce});switch(q){case"dataUrl":return ce.blob().then(eo);case"text":default:return ce.text()}}).finally(()=>clearTimeout(R))}function oa($,P){const{url:I,requestType:z="text",responseType:q="text",imageDom:ee}=P;let Y=I;const{timeout:R,acceptOfImage:ce,requests:de,fetch:{requestInit:fe,bypassingCache:ve,placeholderImage:he},workers:Se}=$;z==="image"&&(W||ne)&&$.drawImageCount++;let $e=de.get(I);if(!$e){ve&&ve instanceof RegExp&&ve.test(Y)&&(Y+=(/\?/.test(Y)?"&":"?")+new Date().getTime());const Te=h({url:Y,timeout:R,responseType:q,headers:z==="image"?{accept:ce}:void 0},fe);$e={type:z,resolve:void 0,reject:void 0,response:null},$e.response=(!W&&I.startsWith("http")&&Se.length?new Promise((Pe,ke)=>{Se[de.size&Se.length-1].postMessage(h({rawUrl:I},Te)),$e.resolve=Pe,$e.reject=ke}):YN(Te)).catch(Pe=>{if(de.delete(I),z==="image"&&he)return je("Failed to fetch image base64, trying to use placeholder image",Y),typeof he=="string"?he:he(ee);throw Pe}),de.set(I,$e)}return $e.response}function q1($,P,I,z){return m(this,null,function*(){if(!K1($))return $;for(const[q,ee]of qN($,P))try{const Y=yield oa(I,{url:ee,requestType:z?"image":"text",responseType:"dataUrl"});$=$.replace(KN(q),`$1${Y}$3`)}catch(Y){je("Failed to fetch css data url",q,Y)}return $})}function K1($){return/url\((['"]?)([^'"]+?)\1\)/.test($)}const X1=/url\((['"]?)([^'"]+?)\1\)/g;function qN($,P){const I=[];return $.replace(X1,(z,q,ee)=>(I.push([ee,ft(ee,P)]),z)),I.filter(([z])=>!Ze(z))}function KN($){const P=$.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${P})(['"]?\\))`,"g")}function XN($,P){return m(this,null,function*(){const{ownerDocument:I,svgStyleElement:z,fontFamilies:q,fontCssTexts:ee,tasks:Y,font:R}=P;if(!(!I||!z||!q.size))if(R&&R.cssText){const ce=Q1(R.cssText,P);z.appendChild(I.createTextNode(`${ce}
85
- `))}else{const ce=Array.from(I.styleSheets).filter(de=>{try{return"cssRules"in de&&!!de.cssRules.length}catch(fe){return je(`Error while reading CSS rules from ${de.href}`,fe),!1}});yield Promise.all(ce.flatMap(de=>Array.from(de.cssRules).map((fe,ve)=>m(this,null,function*(){if(oe(fe)){let he=ve+1;const Se=fe.href;let $e="";try{$e=yield oa(P,{url:Se,requestType:"text",responseType:"text"})}catch(Pe){je(`Error fetch remote css import from ${Se}`,Pe)}const Te=$e.replace(X1,(Pe,ke,ze)=>Pe.replace(ze,ft(ze,Se)));for(const Pe of QN(Te))try{de.insertRule(Pe,Pe.startsWith("@import")?he+=1:de.cssRules.length)}catch(ke){je("Error inserting rule from remote css import",{rule:Pe,error:ke})}}})))),ce.flatMap(de=>Array.from(de.cssRules)).filter(de=>{var fe;return re(de)&&K1(de.style.getPropertyValue("src"))&&((fe=ra(de.style.getPropertyValue("font-family")))==null?void 0:fe.some(ve=>q.has(ve)))}).forEach(de=>{const fe=de,ve=ee.get(fe.cssText);ve?z.appendChild(I.createTextNode(`${ve}
86
- `)):Y.push(q1(fe.cssText,fe.parentStyleSheet?fe.parentStyleSheet.href:null,P).then(he=>{he=Q1(he,P),ee.set(fe.cssText,he),z.appendChild(I.createTextNode(`${he}
87
- `))}))})}})}const ZN=/(\/\*[\s\S]*?\*\/)/gi,Z1=/((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi;function QN($){if($==null)return[];const P=[];let I=$.replace(ZN,"");for(;;){const ee=Z1.exec(I);if(!ee)break;P.push(ee[0])}I=I.replace(Z1,"");const z=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,q=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let ee=z.exec(I);if(ee)q.lastIndex=z.lastIndex;else if(ee=q.exec(I),ee)z.lastIndex=q.lastIndex;else break;P.push(ee[0])}return P}const JN=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,RN=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Q1($,P){const{font:I}=P,z=I?I==null?void 0:I.preferredFormat:void 0;return z?$.replace(RN,q=>{for(;;){const[ee,,Y]=JN.exec(q)||[];if(!Y)return"";if(Y===z)return`src: ${ee};`}}):$}function e_($,P){if(te($)){const I=$.currentSrc||$.src;if(!Ze(I))return[oa(P,{url:I,imageDom:$,requestType:"image",responseType:"dataUrl"}).then(z=>{z&&($.srcset="",$.dataset.originalSrc=I,$.src=z||"")})];(W||ne)&&P.drawImageCount++}else if(X($)&&!Ze($.href.baseVal)){const I=$.href.baseVal;return[oa(P,{url:I,imageDom:$,requestType:"image",responseType:"dataUrl"}).then(z=>{z&&($.dataset.originalSrc=I,$.href.baseVal=z||"")})]}return[]}const t_=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];function n_($,P){return t_.map(I=>{const z=$.getPropertyValue(I);return!z||z==="none"?null:((W||ne)&&P.drawImageCount++,q1(z,null,P,!0).then(q=>{!q||z===q||$.setProperty(I,q,$.getPropertyPriority(I))}))}).filter(Boolean)}function r_($,P){var I;const{ownerDocument:z,svgDefsElement:q}=P,ee=(I=$.getAttribute("href"))!=null?I:$.getAttribute("xlink:href");if(!ee)return[];const[Y,R]=ee.split("#");if(R){const ce=`#${R}`,de=z==null?void 0:z.querySelector(`svg ${ce}`);if(Y&&$.setAttribute("href",ce),q!=null&&q.querySelector(ce))return[];if(de)return[cs(de,P).then(fe=>{q!=null&&q.querySelector(ce)||q==null||q.appendChild(fe)})];if(Y)return[oa(P,{url:Y,responseType:"text"}).then(fe=>{q==null||q.insertAdjacentHTML("beforeend",fe)})]}return[]}function J1($,P){const{tasks:I}=P;ue($)&&((te($)||le($))&&I.push(...e_($,P)),U($)&&I.push(...r_($,P))),Z($)&&I.push(...n_($.style,P)),$.childNodes.forEach(z=>{J1(z,P)})}function R1($,P){return m(this,null,function*(){const I=yield bt($,P);if(ue(I.node)&&X(I.node))return I.node;const{ownerDocument:z,log:q,tasks:ee,svgStyleElement:Y,svgDefsElement:R,svgStyles:ce,font:de,progress:fe,autoDestruct:ve,onCloneNode:he,onEmbedNode:Se,onCreateForeignObjectSvg:$e}=I;q.time("clone node");const Te=yield cs(I.node,I,!0);if(Y&&z){let st="";ce.forEach((hn,In)=>{st+=`${hn.join(`,
83
+ `);return P.appendChild(I),P}function Mt($,P){let{width:I,height:z}=P;if(ue($)&&(!I||!z)){const q=$.getBoundingClientRect();I=I||q.width||Number($.getAttribute("width"))||0,z=z||q.height||Number($.getAttribute("height"))||0}return{width:I,height:z}}function dn($,P){return m(this,null,function*(){const{log:I,timeout:z,drawImageCount:q,drawImageInterval:ee}=P;I.time("image to canvas");const Y=yield Bt($,{timeout:z}),{canvas:R,context2d:ce}=fn($.ownerDocument,P),de=()=>{try{ce==null||ce.drawImage(Y,0,0,R.width,R.height)}catch(fe){je("Failed to drawImage",fe)}};if(de(),P.isEnable("fixSvgXmlDecode"))for(let fe=0;fe<q;fe++)yield new Promise(be=>{setTimeout(()=>{de(),be()},fe+ee)});return P.drawImageCount=0,I.timeEnd("image to canvas"),R})}function fn($,P){const{width:I,height:z,scale:q,backgroundColor:ee,maximumCanvasSize:Y}=P,R=$.createElement("canvas");R.width=Math.floor(I*q),R.height=Math.floor(z*q),R.style.width=`${I}px`,R.style.height=`${z}px`,Y&&(R.width>Y||R.height>Y)&&(R.width>Y&&R.height>Y?R.width>R.height?(R.height*=Y/R.width,R.width=Y):(R.width*=Y/R.height,R.height=Y):R.width>Y?(R.height*=Y/R.width,R.width=Y):(R.width*=Y/R.height,R.height=Y));const ce=R.getContext("2d");return ce&&ee&&(ce.fillStyle=ee,ce.fillRect(0,0,R.width,R.height)),{canvas:R,context2d:ce}}const yt=["width","height"],hr=["stroke","fill"];function pr($,P,I){var z;const{defaultComputedStyles:q,ownerDocument:ee}=I,Y=$.nodeName.toLowerCase(),R=X($)&&Y!=="svg",ce=R?hr.map(ke=>[ke,$.getAttribute(ke)]).filter(([,ke])=>ke!==null):[],de=[R&&"svg",Y,ce.map((ke,ze)=>`${ke}=${ze}`).join(","),P].filter(Boolean).join(":");if(q.has(de))return q.get(de);let fe=I.sandbox;if(!fe)try{ee&&(fe=ee.createElement("iframe"),fe.id=`__SANDBOX__-${In()}`,fe.width="0",fe.height="0",fe.style.visibility="hidden",fe.style.position="fixed",ee.body.appendChild(fe),(z=fe.contentWindow)==null||z.document.write('<!DOCTYPE html><meta charset="UTF-8"><title></title><body>'),I.sandbox=fe)}catch(ke){je("Failed to create iframe sandbox",ke)}if(!fe)return new Map;const be=fe.contentWindow;if(!be)return new Map;const he=be.document;let Se,$e;R?(Se=he.createElementNS(jt,"svg"),$e=Se.ownerDocument.createElementNS(Se.namespaceURI,Y),ce.forEach(([ke,ze])=>{$e.setAttributeNS(null,ke,ze)}),Se.appendChild($e)):Se=$e=he.createElement(Y),$e.textContent=" ",he.body.appendChild(Se);const Me=be.getComputedStyle($e,P),Pe=new Map;for(let ke=Me.length,ze=0;ze<ke;ze++){const Ie=Me.item(ze);yt.includes(Ie)||Pe.set(Ie,Me.getPropertyValue(Ie))}return he.body.removeChild(Se),q.set(de,Pe),Pe}function no($,P){var I;const z=new Map,q=[],ee=new Map;for(let Y=$.length,R=0;R<Y;R++){const ce=$.item(R),de=$.getPropertyValue(ce),fe=$.getPropertyPriority(ce),be=ce.lastIndexOf("-"),he=be>-1?ce.substring(0,be):void 0;if(he){let Se=ee.get(he);Se||(Se=new Map,ee.set(he,Se)),Se.set(ce,[de,fe])}P.get(ce)===de&&!fe||(he?q.push(he):z.set(ce,[de,fe]))}for(let Y=q.length,R=0;R<Y;R++)(I=ee.get(q[R]))==null||I.forEach((ce,de)=>z.set(de,ce));return z}const ro=[":before",":after"],ds=[":-webkit-scrollbar",":-webkit-scrollbar-button",":-webkit-scrollbar-thumb",":-webkit-scrollbar-track",":-webkit-scrollbar-track-piece",":-webkit-scrollbar-corner",":-webkit-resizer"];function fs($,P,I,z){const{ownerWindow:q,svgStyleElement:ee,svgStyles:Y}=z;if(!ee||!q)return;function R(ce){var de;const fe=q.getComputedStyle($,ce);let be=fe.getPropertyValue("content");if(!be||be==="none")return;be=be.replace(/(')|(")|(counter\(.+\))/g,"");const he=[In()],Se=pr($,ce,z),$e=[`content: '${be}';`],Me=no(fe,Se);if(Me.delete("content"),Me.delete("-webkit-locale"),((de=Me.get("background-clip"))==null?void 0:de[0])==="text"&&P.classList.add("______background-clip--text"),Me.forEach(([ze,Ie],st)=>{$e.push(`${st}: ${ze}${Ie?" !important":""};`)}),$e.length===1)return;try{P.className=[P.className,...he].join(" ")}catch{return}const Pe=$e.join(`
84
+ `);let ke=Y.get(Pe);ke||(ke=[],Y.set(Pe,ke)),ke.push(`.${he[0]}:${ce}`)}ro.forEach(R),I&&ds.forEach(R)}function KN($,P){we($)&&(P.innerHTML=$.value),(we($)||Ee($)||ot($))&&P.setAttribute("value",$.value)}function XN($,P,I,z){var q,ee,Y,R;const{ownerWindow:ce}=z,de=P.style,fe=ce.getComputedStyle($),be=pr($,null,z),he=no(fe,be);return he.delete("transition-property"),he.delete("all"),he.delete("d"),he.delete("content"),I&&(he.delete("margin-top"),he.delete("margin-right"),he.delete("margin-bottom"),he.delete("margin-left"),he.delete("margin-block-start"),he.delete("margin-block-end"),he.delete("margin-inline-start"),he.delete("margin-inline-end"),he.set("box-sizing",["border-box",""])),((q=he.get("background-clip"))==null?void 0:q[0])==="text"&&P.classList.add("______background-clip--text"),A&&(he.has("font-kerning")||he.set("font-kerning",["normal",""]),(((ee=he.get("overflow-x"))==null?void 0:ee[0])==="hidden"||((Y=he.get("overflow-y"))==null?void 0:Y[0])==="hidden")&&((R=he.get("text-overflow"))==null?void 0:R[0])==="ellipsis"&&$.scrollWidth===$.clientWidth&&he.set("text-overflow",["clip",""])),he.forEach(([Se,$e],Me)=>{de.setProperty(Me,Se,$e)}),he}function ZN($,P){var I;try{if((I=$==null?void 0:$.contentDocument)!=null&&I.body)return hs($.contentDocument.body,P)}catch(z){je("Failed to clone iframe",z)}return $.cloneNode(!1)}function K1($){if($.ownerDocument)try{const q=$.toDataURL();if(q!=="data:,")return Et(q,$.ownerDocument)}catch{}const P=$.cloneNode(!1),I=$.getContext("2d"),z=P.getContext("2d");try{return I&&z&&z.putImageData(I.getImageData(0,0,$.width,$.height),0,0),P}catch(q){je("Failed to clone canvas",q)}return P}function QN($){return m(this,null,function*(){if($.ownerDocument&&!$.currentSrc&&$.poster)return Et($.poster,$.ownerDocument);const P=$.cloneNode(!1);P.crossOrigin="anonymous",$.currentSrc&&$.currentSrc!==$.src&&(P.src=$.currentSrc);const I=P.ownerDocument;if(I){let z=!0;if(yield Bt(P,{onError:()=>z=!1}),!z)return $.poster?Et($.poster,$.ownerDocument):P;P.currentTime=$.currentTime,yield new Promise(ee=>{P.addEventListener("seeked",ee,{once:!0})});const q=I.createElement("canvas");q.width=$.offsetWidth,q.height=$.offsetHeight;try{const ee=q.getContext("2d");ee&&ee.drawImage(P,0,0,q.width,q.height)}catch(ee){return je("Failed to clone video",ee),$.poster?Et($.poster,$.ownerDocument):P}return K1(q)}return P})}function JN($){const P=$.cloneNode(!1);return $.currentSrc&&$.currentSrc!==$.src&&(P.src=$.currentSrc,P.srcset=""),P.loading==="lazy"&&(P.loading="eager"),P}function RN($,P){return ge($)?K1($):Xt($)?ZN($,P):te($)?JN($):ae($)?QN($):$.cloneNode(!1)}function X1($,P,I){return m(this,null,function*(){ue(P)&&(Ke(P)||Xe(P))||I.filter&&!I.filter(P)||$.appendChild(yield hs(P,I))})}function Z1($,P,I){return m(this,null,function*(){var z,q;const ee=(q=ue($)?(z=$.shadowRoot)==null?void 0:z.firstChild:void 0)!=null?q:$.firstChild;for(let Y=ee;Y;Y=Y.nextSibling)if(!ie(Y))if(ue(Y)&&vt(Y)&&typeof Y.assignedNodes=="function"){const R=Y.assignedNodes();for(let ce=0;ce<R.length;ce++)yield X1(P,R[ce],I)}else yield X1(P,Y,I)})}function e_($,P){const{backgroundColor:I,width:z,height:q,style:ee}=P,Y=$.style;if(I&&Y.setProperty("background-color",I,"important"),z&&Y.setProperty("width",`${z}px`,"important"),q&&Y.setProperty("height",`${q}px`,"important"),ee)for(const R in ee)Y[R]=ee[R]}const t_=/^[\w-:]+$/;function hs($,P,I=!1){return m(this,null,function*(){var z,q,ee,Y;const{ownerDocument:R,ownerWindow:ce,fontFamilies:de}=P;if(R&&k($))return R.createTextNode($.data);if(R&&ce&&ue($)&&(Z($)||X($))){const be=yield RN($,P);if(P.isEnable("removeAbnormalAttributes")){const $e=be.getAttributeNames();for(let Me=$e.length,Pe=0;Pe<Me;Pe++){const ke=$e[Pe];t_.test(ke)||be.removeAttribute(ke)}}const he=XN($,be,I,P);I&&e_(be,P);let Se=!1;if(P.isEnable("copyScrollbar")){const $e=[(z=he.get("overflow-x"))==null?void 0:z[0],(q=he.get("overflow-y"))==null?void 0:q[1]];Se=$e.includes("scroll")||($e.includes("auto")||$e.includes("overlay"))&&($.scrollHeight>$.clientHeight||$.scrollWidth>$.clientWidth)}return fs($,be,Se,P),KN($,be),(Y=ia((ee=he.get("font-family"))==null?void 0:ee[0]))==null||Y.forEach($e=>de.add($e)),ae($)||(yield Z1($,be,P)),be}const fe=$.cloneNode(!1);return yield Z1($,fe,P),fe})}function Q1($){if($.ownerDocument=void 0,$.ownerWindow=void 0,$.svgStyleElement=void 0,$.svgDefsElement=void 0,$.svgStyles.clear(),$.defaultComputedStyles.clear(),$.sandbox){try{$.sandbox.remove()}catch{}$.sandbox=void 0}$.workers=[],$.fontFamilies.clear(),$.fontCssTexts.clear(),$.requests.clear(),$.tasks=[]}function n_($){const P=$,{url:I,timeout:z,responseType:q}=P,ee=p(P,["url","timeout","responseType"]),Y=new AbortController,R=z?setTimeout(()=>Y.abort(),z):void 0;return fetch(I,h({signal:Y.signal},ee)).then(ce=>{if(!ce.ok)throw new Error("Failed fetch, not 2xx response",{cause:ce});switch(q){case"dataUrl":return ce.blob().then(to);case"text":default:return ce.text()}}).finally(()=>clearTimeout(R))}function sa($,P){const{url:I,requestType:z="text",responseType:q="text",imageDom:ee}=P;let Y=I;const{timeout:R,acceptOfImage:ce,requests:de,fetch:{requestInit:fe,bypassingCache:be,placeholderImage:he},workers:Se}=$;z==="image"&&(W||ne)&&$.drawImageCount++;let $e=de.get(I);if(!$e){be&&be instanceof RegExp&&be.test(Y)&&(Y+=(/\?/.test(Y)?"&":"?")+new Date().getTime());const Me=h({url:Y,timeout:R,responseType:q,headers:z==="image"?{accept:ce}:void 0},fe);$e={type:z,resolve:void 0,reject:void 0,response:null},$e.response=(!W&&I.startsWith("http")&&Se.length?new Promise((Pe,ke)=>{Se[de.size&Se.length-1].postMessage(h({rawUrl:I},Me)),$e.resolve=Pe,$e.reject=ke}):n_(Me)).catch(Pe=>{if(de.delete(I),z==="image"&&he)return je("Failed to fetch image base64, trying to use placeholder image",Y),typeof he=="string"?he:he(ee);throw Pe}),de.set(I,$e)}return $e.response}function J1($,P,I,z){return m(this,null,function*(){if(!R1($))return $;for(const[q,ee]of r_($,P))try{const Y=yield sa(I,{url:ee,requestType:z?"image":"text",responseType:"dataUrl"});$=$.replace(o_(q),`$1${Y}$3`)}catch(Y){je("Failed to fetch css data url",q,Y)}return $})}function R1($){return/url\((['"]?)([^'"]+?)\1\)/.test($)}const eb=/url\((['"]?)([^'"]+?)\1\)/g;function r_($,P){const I=[];return $.replace(eb,(z,q,ee)=>(I.push([ee,ft(ee,P)]),z)),I.filter(([z])=>!Ze(z))}function o_($){const P=$.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${P})(['"]?\\))`,"g")}function a_($,P){return m(this,null,function*(){const{ownerDocument:I,svgStyleElement:z,fontFamilies:q,fontCssTexts:ee,tasks:Y,font:R}=P;if(!(!I||!z||!q.size))if(R&&R.cssText){const ce=nb(R.cssText,P);z.appendChild(I.createTextNode(`${ce}
85
+ `))}else{const ce=Array.from(I.styleSheets).filter(de=>{try{return"cssRules"in de&&!!de.cssRules.length}catch(fe){return je(`Error while reading CSS rules from ${de.href}`,fe),!1}});yield Promise.all(ce.flatMap(de=>Array.from(de.cssRules).map((fe,be)=>m(this,null,function*(){if(oe(fe)){let he=be+1;const Se=fe.href;let $e="";try{$e=yield sa(P,{url:Se,requestType:"text",responseType:"text"})}catch(Pe){je(`Error fetch remote css import from ${Se}`,Pe)}const Me=$e.replace(eb,(Pe,ke,ze)=>Pe.replace(ze,ft(ze,Se)));for(const Pe of s_(Me))try{de.insertRule(Pe,Pe.startsWith("@import")?he+=1:de.cssRules.length)}catch(ke){je("Error inserting rule from remote css import",{rule:Pe,error:ke})}}})))),ce.flatMap(de=>Array.from(de.cssRules)).filter(de=>{var fe;return re(de)&&R1(de.style.getPropertyValue("src"))&&((fe=ia(de.style.getPropertyValue("font-family")))==null?void 0:fe.some(be=>q.has(be)))}).forEach(de=>{const fe=de,be=ee.get(fe.cssText);be?z.appendChild(I.createTextNode(`${be}
86
+ `)):Y.push(J1(fe.cssText,fe.parentStyleSheet?fe.parentStyleSheet.href:null,P).then(he=>{he=nb(he,P),ee.set(fe.cssText,he),z.appendChild(I.createTextNode(`${he}
87
+ `))}))})}})}const i_=/(\/\*[\s\S]*?\*\/)/gi,tb=/((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi;function s_($){if($==null)return[];const P=[];let I=$.replace(i_,"");for(;;){const ee=tb.exec(I);if(!ee)break;P.push(ee[0])}I=I.replace(tb,"");const z=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,q=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let ee=z.exec(I);if(ee)q.lastIndex=z.lastIndex;else if(ee=q.exec(I),ee)z.lastIndex=q.lastIndex;else break;P.push(ee[0])}return P}const l_=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,c_=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function nb($,P){const{font:I}=P,z=I?I==null?void 0:I.preferredFormat:void 0;return z?$.replace(c_,q=>{for(;;){const[ee,,Y]=l_.exec(q)||[];if(!Y)return"";if(Y===z)return`src: ${ee};`}}):$}function u_($,P){if(te($)){const I=$.currentSrc||$.src;if(!Ze(I))return[sa(P,{url:I,imageDom:$,requestType:"image",responseType:"dataUrl"}).then(z=>{z&&($.srcset="",$.dataset.originalSrc=I,$.src=z||"")})];(W||ne)&&P.drawImageCount++}else if(X($)&&!Ze($.href.baseVal)){const I=$.href.baseVal;return[sa(P,{url:I,imageDom:$,requestType:"image",responseType:"dataUrl"}).then(z=>{z&&($.dataset.originalSrc=I,$.href.baseVal=z||"")})]}return[]}const d_=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];function f_($,P){return d_.map(I=>{const z=$.getPropertyValue(I);return!z||z==="none"?null:((W||ne)&&P.drawImageCount++,J1(z,null,P,!0).then(q=>{!q||z===q||$.setProperty(I,q,$.getPropertyPriority(I))}))}).filter(Boolean)}function h_($,P){var I;const{ownerDocument:z,svgDefsElement:q}=P,ee=(I=$.getAttribute("href"))!=null?I:$.getAttribute("xlink:href");if(!ee)return[];const[Y,R]=ee.split("#");if(R){const ce=`#${R}`,de=z==null?void 0:z.querySelector(`svg ${ce}`);if(Y&&$.setAttribute("href",ce),q!=null&&q.querySelector(ce))return[];if(de)return[hs(de,P).then(fe=>{q!=null&&q.querySelector(ce)||q==null||q.appendChild(fe)})];if(Y)return[sa(P,{url:Y,responseType:"text"}).then(fe=>{q==null||q.insertAdjacentHTML("beforeend",fe)})]}return[]}function rb($,P){const{tasks:I}=P;ue($)&&((te($)||le($))&&I.push(...u_($,P)),U($)&&I.push(...h_($,P))),Z($)&&I.push(...f_($.style,P)),$.childNodes.forEach(z=>{rb(z,P)})}function ob($,P){return m(this,null,function*(){const I=yield bt($,P);if(ue(I.node)&&X(I.node))return I.node;const{ownerDocument:z,log:q,tasks:ee,svgStyleElement:Y,svgDefsElement:R,svgStyles:ce,font:de,progress:fe,autoDestruct:be,onCloneNode:he,onEmbedNode:Se,onCreateForeignObjectSvg:$e}=I;q.time("clone node");const Me=yield hs(I.node,I,!0);if(Y&&z){let st="";ce.forEach((hn,Ln)=>{st+=`${hn.join(`,
88
88
  `)} {
89
- ${In}
89
+ ${Ln}
90
90
  }
91
- `}),Y.appendChild(z.createTextNode(st))}q.timeEnd("clone node"),he==null||he(Te),de!==!1&&ue(Te)&&(q.time("embed web font"),yield XN(Te,I),q.timeEnd("embed web font")),q.time("embed node"),J1(Te,I);const Pe=ee.length;let ke=0;const ze=()=>m(this,null,function*(){for(;;){const st=ee.pop();if(!st)break;try{yield st}catch(hn){je("Failed to run task",hn)}fe==null||fe(++ke,Pe)}});fe==null||fe(ke,Pe),yield Promise.all([...Array(4)].map(ze)),q.timeEnd("embed node"),Se==null||Se(Te);const Ie=o_(Te,I);return R&&Ie.insertBefore(R,Ie.children[0]),Y&&Ie.insertBefore(Y,Ie.children[0]),ve&&Y1(I),$e==null||$e(Ie),Ie})}function o_($,P){const{width:I,height:z}=P,q=un(I,z,$.ownerDocument),ee=q.ownerDocument.createElementNS(q.namespaceURI,"foreignObject");return ee.setAttributeNS(null,"x","0%"),ee.setAttributeNS(null,"y","0%"),ee.setAttributeNS(null,"width","100%"),ee.setAttributeNS(null,"height","100%"),ee.append($),q.appendChild(ee),q}function us($,P){return m(this,null,function*(){var I;const z=yield bt($,P),q=yield R1(z),ee=jt(q,z.isEnable("removeControlCharacter"));z.autoDestruct||(z.svgStyleElement=it(z.ownerDocument),z.svgDefsElement=(I=z.ownerDocument)==null?void 0:I.createElementNS(Ft,"defs"),z.svgStyles.clear());const Y=Et(ee,q.ownerDocument);return yield dn(Y,z)})}function a_($,P){return m(this,null,function*(){const I=yield bt($,P),{log:z,type:q,quality:ee,dpi:Y}=I,R=yield us(I);z.time("canvas to blob");const ce=yield Jr(R,q,ee);if(["image/png","image/jpeg"].includes(q)&&Y){const de=yield dr(ce.slice(0,33));let fe=new Uint8Array(de);return q==="image/png"?fe=O(fe,Y):q==="image/jpeg"&&(fe=x(fe,Y)),z.timeEnd("canvas to blob"),new Blob([fe,ce.slice(33)],{type:q})}return z.timeEnd("canvas to blob"),ce})}function ro($,P){return m(this,null,function*(){const I=yield bt($,P),{log:z,quality:q,type:ee,dpi:Y}=I,R=yield us(I);z.time("canvas to data url");let ce=R.toDataURL(ee,q);if(["image/png","image/jpeg"].includes(ee)&&Y&&B&&V){const[de,fe]=ce.split(",");let ve=0,he=!1;if(ee==="image/png"){const Ie=G(fe);Ie>=0?(ve=Math.ceil((Ie+28)/3)*4,he=!0):ve=33/3*4}else ee==="image/jpeg"&&(ve=18/3*4);const Se=fe.substring(0,ve),$e=fe.substring(ve),Te=window.atob(Se),Pe=new Uint8Array(Te.length);for(let Ie=0;Ie<Pe.length;Ie++)Pe[Ie]=Te.charCodeAt(Ie);const ke=ee==="image/png"?O(Pe,Y,he):x(Pe,Y),ze=window.btoa(String.fromCharCode(...ke));ce=[de,",",ze,$e].join("")}return z.timeEnd("canvas to data url"),ce})}function eb($,P){return m(this,null,function*(){const I=yield bt($,P),{width:z,height:q,ownerDocument:ee}=I,Y=yield ro(I),R=un(z,q,ee),ce=R.ownerDocument.createElementNS(R.namespaceURI,"image");return ce.setAttributeNS(null,"href",Y),ce.setAttributeNS(null,"height","100%"),ce.setAttributeNS(null,"width","100%"),R.appendChild(ce),jt(R,I.isEnable("removeControlCharacter"))})}function i_($,P){return m(this,null,function*(){const I=yield bt($,P),{ownerDocument:z,width:q,height:ee,scale:Y,type:R}=I,ce=R==="image/svg+xml"?yield eb(I):yield ro(I),de=Et(ce,z);return de.width=Math.floor(q*Y),de.height=Math.floor(ee*Y),de.style.width=`${q}px`,de.style.height=`${ee}px`,de})}function s_($,P){return m(this,null,function*(){return ro(yield bt($,g(h({},P),{type:"image/jpeg"})))})}function l_($,P){return m(this,null,function*(){const I=yield bt($,P),z=yield us(I);return z.getContext("2d").getImageData(0,0,z.width,z.height).data})}function c_($,P){return m(this,null,function*(){return ro(yield bt($,g(h({},P),{type:"image/png"})))})}function u_($,P){return m(this,null,function*(){return ro(yield bt($,g(h({},P),{type:"image/webp"})))})}n.createContext=is,n.destroyContext=Y1,n.domToBlob=a_,n.domToCanvas=us,n.domToDataUrl=ro,n.domToForeignObjectSvg=R1,n.domToImage=i_,n.domToJpeg=s_,n.domToPixel=l_,n.domToPng=c_,n.domToSvg=eb,n.domToWebp=u_,n.loadMedia=zt,n.waitUntilLoad=Dn,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(Iu,Iu.exports);var M9=Iu.exports;const Lu=(e,t,n)=>{u.useImperativeHandle(t,()=>({download(){e.current&&M9.domToPng(e.current,{scale:5}).then(r=>{const o=document.createElement("a");o.download=`${n}.png`,o.href=r,o.click()})}}))},P9=({x:e,y:t,datum:n,size:r})=>y.jsx(Nu,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.light,r:r/2}),k9=({x:e,y:t,datum:n})=>y.jsx(Nu,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),Qi={xAccessor:e=>e.x,yAccessor:e=>e.y},Kv=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,Xv=10,O9=5,Fu=u.forwardRef(({nodes:e,height:t,width:n,xAxisValues:r,series:o,xAxisLabel:a,yAxisLabel:i,xAxisDomain:s,yAxisDomain:l,xAxisUnitSymbol:c,yAxisUnitSymbol:f,tooltipTitle:d,mode:h,xAxisCharLimit:g,connectNulls:p=!1,maxNodesInMiniMode:m=O9,tooltipStackCharLimit:x=Xv},b)=>{const[v,w]=u.useState(e.map(T=>T.id)),E=u.useRef(null);Lu(E,b,`${a}-${i}-LineChart`);const S=u.useMemo(()=>o.map((T,O)=>({points:T.data.map((F,j)=>({x:r[j],y:F,nodeId:T.id,color:rt(O)}))})).slice(0,h==="mini"?m:o.length),[r,o,h,m]),M=u.useMemo(()=>h==="full"?S.filter(T=>v.includes(T.points[0].nodeId)):S,[S,v,h]),N=u.useMemo(()=>Math.floor((n-(h==="mini"?0:150))/(r.length*8)),[n,r,h]);return y.jsxs("div",{ref:E,id:"line-chart",className:"bg-white flex flex-col rabbit-ds",style:{width:n,height:t},children:[y.jsxs("div",{className:"w-full min-w-0 min-h-0 h-full flex flex-row",children:[y.jsx("div",{className:"w-full min-w-0 min-h-0 h-full",children:y.jsxs(Kr,{margin:{top:10,left:50,right:50,bottom:50},xScale:{type:"band",nice:!0,...s&&{domain:s}},yScale:{type:"linear",nice:!0,...l&&{domain:l}},children:[y.jsx(K4,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),y.jsx(uv,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:6,tickFormat:T=>c?Kv(T,c.symbol,c.position):T,rangePadding:{end:10},tickComponent:T=>y.jsx(_u,{textLabel:T.formattedValue||"",x:T.x,y:T.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},axisCharLimit:g??N}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),y.jsx(uv,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:T=>f?Kv(T,f.symbol,f.position):T,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),M.map((T,O)=>y.jsxs(y.Fragment,{children:[y.jsx(T9,{data:T.points,xAccessor:Qi.xAccessor,yAccessor:Qi.yAccessor,connectNulls:p}),y.jsx(y9,{dataKey:`Performance Management ${O}`,data:T.points,size:8,renderGlyph:P9,xAccessor:Qi.xAccessor,yAccessor:Qi.yAccessor})]})),y.jsx(wv,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:k9,renderTooltip:({tooltipData:T})=>{var j,H,G,L,C,_;const O=e.find(B=>{var V;return B.id===((V=T==null?void 0:T.nearestDatum)==null?void 0:V.datum.nodeId)}),F=((j=T==null?void 0:T.nearestDatum)==null?void 0:j.datum)&&((H=T==null?void 0:T.nearestDatum)==null?void 0:H.datum.x.length)<x;return y.jsx(qv,{xValue:(G=T==null?void 0:T.nearestDatum)==null?void 0:G.datum.x,yValue:(L=T==null?void 0:T.nearestDatum)==null?void 0:L.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!F,tooltipTitle:d,legendValue:(O==null?void 0:O.name)||"",legendDarkColor:((C=T==null?void 0:T.nearestDatum)==null?void 0:C.datum.color.dark)||rt(0).dark,legendLightColor:((_=T==null?void 0:T.nearestDatum)==null?void 0:_.datum.color.light)||rt(0).light})}})]})}),h==="full"&&y.jsxs("div",{className:"w-64 p-4 bg-zinc-100 rounded-lg flex-col justify-start items-start gap-0.5 inline-flex text-xs grow-0 shrink-0 basis-auto",children:[y.jsxs("div",{className:"text-sm font-semibold pb-2",children:[y.jsx("span",{className:"pr-1",children:a}),"(",S.length,")"]}),S.map(T=>{const O=e.find(F=>F.id===T.points[0].nodeId);return O&&y.jsxs("div",{className:"flex justify-between items-center gap-1 py-1 w-full",children:[y.jsxs("div",{className:"flex justify-between items-center",children:[y.jsx("div",{style:{backgroundColor:T.points[0].color.light,borderColor:T.points[0].color.dark},className:"h-3 w-3 rounded-full border mr-1"}),O.name]}),y.jsx("div",{className:"flex items-center",children:y.jsx(xd,{checked:v.includes(O.id),onCheckedChange:F=>{let j=[...v];F?j=[...v,O.id]:j.splice(v.indexOf(O.id),1),w(j)}})})]},O.id)})]})]}),h==="mini"&&y.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] text-[#666666] font-semibold",children:S.map(T=>{const O=e.find(F=>F.id===T.points[0].nodeId);return y.jsxs("div",{className:"flex justify-center items-center gap-1",children:[y.jsx("div",{style:{backgroundColor:T.points[0].color.light,borderColor:T.points[0].color.dark},className:"h-3 w-3 rounded-full border"}),O==null?void 0:O.name]},O==null?void 0:O.id)})})]})}),N9={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:Xv,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};Fu.defaultProps=N9,Fu.displayName="LineBase";const Zv=u.forwardRef((e,t)=>y.jsx(Zi,{debounceTime:10,children:({width:n,height:r})=>y.jsx(Fu,{ref:t,width:n,height:r,...e})}));Zv.displayName="LineChart";const _9=Zv;function Qv(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}function D9(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}return n}function ju(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&(n+=o)}return n}function A9(e,t){return e.sourceLinks.length?e.depth:t-1}function Ji(e){return function(){return e}}function Jv(e,t){return Ri(e.source,t.source)||e.index-t.index}function Rv(e,t){return Ri(e.target,t.target)||e.index-t.index}function Ri(e,t){return e.y0-t.y0}function zu(e){return e.value}function I9(e){return e.index}function L9(e){return e.nodes}function F9(e){return e.links}function e1(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function t1({nodes:e}){for(const t of e){let n=t.y0,r=n;for(const o of t.sourceLinks)o.y0=n+o.width/2,n+=o.width;for(const o of t.targetLinks)o.y1=r+o.width/2,r+=o.width}}function j9(){let e=0,t=0,n=1,r=1,o=24,a=8,i,s=I9,l=A9,c,f,d=L9,h=F9,g=6;function p(){const C={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return m(C),x(C),b(C),v(C),S(C),t1(C),C}p.update=function(C){return t1(C),C},p.nodeId=function(C){return arguments.length?(s=typeof C=="function"?C:Ji(C),p):s},p.nodeAlign=function(C){return arguments.length?(l=typeof C=="function"?C:Ji(C),p):l},p.nodeSort=function(C){return arguments.length?(c=C,p):c},p.nodeWidth=function(C){return arguments.length?(o=+C,p):o},p.nodePadding=function(C){return arguments.length?(a=i=+C,p):a},p.nodes=function(C){return arguments.length?(d=typeof C=="function"?C:Ji(C),p):d},p.links=function(C){return arguments.length?(h=typeof C=="function"?C:Ji(C),p):h},p.linkSort=function(C){return arguments.length?(f=C,p):f},p.size=function(C){return arguments.length?(e=t=0,n=+C[0],r=+C[1],p):[n-e,r-t]},p.extent=function(C){return arguments.length?(e=+C[0][0],n=+C[1][0],t=+C[0][1],r=+C[1][1],p):[[e,t],[n,r]]},p.iterations=function(C){return arguments.length?(g=+C,p):g};function m({nodes:C,links:_}){for(const[V,D]of C.entries())D.index=V,D.sourceLinks=[],D.targetLinks=[];const B=new Map(C.map((V,D)=>[s(V,D,C),V]));for(const[V,D]of _.entries()){D.index=V;let{source:A,target:W}=D;typeof A!="object"&&(A=D.source=e1(B,A)),typeof W!="object"&&(W=D.target=e1(B,W)),A.sourceLinks.push(D),W.targetLinks.push(D)}if(f!=null)for(const{sourceLinks:V,targetLinks:D}of C)V.sort(f),D.sort(f)}function x({nodes:C}){for(const _ of C)_.value=_.fixedValue===void 0?Math.max(ju(_.sourceLinks,zu),ju(_.targetLinks,zu)):_.fixedValue}function b({nodes:C}){const _=C.length;let B=new Set(C),V=new Set,D=0;for(;B.size;){for(const A of B){A.depth=D;for(const{target:W}of A.sourceLinks)V.add(W)}if(++D>_)throw new Error("circular link");B=V,V=new Set}}function v({nodes:C}){const _=C.length;let B=new Set(C),V=new Set,D=0;for(;B.size;){for(const A of B){A.height=D;for(const{source:W}of A.targetLinks)V.add(W)}if(++D>_)throw new Error("circular link");B=V,V=new Set}}function w({nodes:C}){const _=Qv(C,D=>D.depth)+1,B=(n-e-o)/(_-1),V=new Array(_);for(const D of C){const A=Math.max(0,Math.min(_-1,Math.floor(l.call(null,D,_))));D.layer=A,D.x0=e+A*B,D.x1=D.x0+o,V[A]?V[A].push(D):V[A]=[D]}if(c)for(const D of V)D.sort(c);return V}function E(C){const _=D9(C,B=>(r-t-(B.length-1)*i)/ju(B,zu));for(const B of C){let V=t;for(const D of B){D.y0=V,D.y1=V+D.value*_,V=D.y1+i;for(const A of D.sourceLinks)A.width=A.value*_}V=(r-V+i)/(B.length+1);for(let D=0;D<B.length;++D){const A=B[D];A.y0+=V*(D+1),A.y1+=V*(D+1)}H(B)}}function S(C){const _=w(C);i=Math.min(a,(r-t)/(Qv(_,B=>B.length)-1)),E(_);for(let B=0;B<g;++B){const V=Math.pow(.99,B),D=Math.max(1-V,(B+1)/g);N(_,V,D),M(_,V,D)}}function M(C,_,B){for(let V=1,D=C.length;V<D;++V){const A=C[V];for(const W of A){let ne=0,Q=0;for(const{source:oe,value:ue}of W.targetLinks){let X=ue*(W.layer-oe.layer);ne+=G(oe,W)*X,Q+=X}if(!(Q>0))continue;let re=(ne/Q-W.y0)*_;W.y0+=re,W.y1+=re,j(W)}c===void 0&&A.sort(Ri),T(A,B)}}function N(C,_,B){for(let V=C.length,D=V-2;D>=0;--D){const A=C[D];for(const W of A){let ne=0,Q=0;for(const{target:oe,value:ue}of W.sourceLinks){let X=ue*(oe.layer-W.layer);ne+=L(W,oe)*X,Q+=X}if(!(Q>0))continue;let re=(ne/Q-W.y0)*_;W.y0+=re,W.y1+=re,j(W)}c===void 0&&A.sort(Ri),T(A,B)}}function T(C,_){const B=C.length>>1,V=C[B];F(C,V.y0-i,B-1,_),O(C,V.y1+i,B+1,_),F(C,r,C.length-1,_),O(C,t,0,_)}function O(C,_,B,V){for(;B<C.length;++B){const D=C[B],A=(_-D.y0)*V;A>1e-6&&(D.y0+=A,D.y1+=A),_=D.y1+i}}function F(C,_,B,V){for(;B>=0;--B){const D=C[B],A=(D.y1-_)*V;A>1e-6&&(D.y0-=A,D.y1-=A),_=D.y0-i}}function j({sourceLinks:C,targetLinks:_}){if(f===void 0){for(const{source:{sourceLinks:B}}of _)B.sort(Rv);for(const{target:{targetLinks:B}}of C)B.sort(Jv)}}function H(C){if(f===void 0)for(const{sourceLinks:_,targetLinks:B}of C)_.sort(Rv),B.sort(Jv)}function G(C,_){let B=C.y0-(C.sourceLinks.length-1)*i/2;for(const{target:V,width:D}of C.sourceLinks){if(V===_)break;B+=D+i}for(const{source:V,width:D}of _.targetLinks){if(V===C)break;B-=D}return B}function L(C,_){let B=_.y0-(_.targetLinks.length-1)*i/2;for(const{source:V,width:D}of _.targetLinks){if(V===C)break;B+=D+i}for(const{target:V,width:D}of C.sourceLinks){if(V===_)break;B-=D}return B}return p}function z9({tooltipData:e,fromLabel:t,toLabel:n,weightLabel:r,tooltipTitle:o}){var s,l,c,f;const a=e.source,i=e.target;return y.jsxs(Ye,{tooltipTitle:o,children:[y.jsx(Ye.Item,{label:t,value:a.name}),y.jsx(Ye.Item,{label:n,value:i.name}),y.jsx(Ye.Item,{label:r,value:e.weight.toString()}),y.jsx(Ye.Legend,{value:a.name,darkColor:(s=rt(a.index||0))==null?void 0:s.dark,lightColor:(l=rt(a.index||0))==null?void 0:l.light}),y.jsx(Ye.Legend,{value:i.name,darkColor:(c=rt(i.index||0))==null?void 0:c.dark,lightColor:(f=rt(i.index||0))==null?void 0:f.light})]})}const n1=80,r1=20,B9=30,W9=12,o1=u.forwardRef(({height:e,width:t,tooltipTitle:n,nodes:r,links:o,groups:a,weightLabel:i},s)=>{const l=u.useMemo(()=>j9().nodeId(C=>C.id).nodeWidth(W9).nodePadding(B9).nodeAlign(C=>C.group),[]),c=u.useRef(null);Lu(c,s,`${n}-SankeyChart`);const[f,d]=u.useState(""),[h,g]=u.useState(null),{tooltipData:p,tooltipLeft:m,tooltipTop:x,tooltipOpen:b,showTooltip:v,hideTooltip:w}=qc(),{containerBounds:E,containerRef:S,TooltipInPortal:M}=eu({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),N=u.useMemo(()=>l.extent([[n1,r1],[t-n1,e-r1-50]])({nodes:r,links:o.map(C=>({...C,value:Number(C.weight)}))}),[e,t,l,r,o]),T=u.useMemo(()=>Math.max(...N.nodes.map(C=>C.depth??0)),[N]),O=u.useMemo(()=>{const C={};let _=-1/0;return N.nodes.forEach(B=>{const{group:V}=B;C[V]?(C[V].x=Math.max(C[V].x??-1/0,B.x0??-1/0),C[V].y=Math.max(C[V].y??-1/0,B.y1??-1/0)):(C[V]={},C[V].x=B.x0,C[V].y=B.y1),_=Math.max(_,C[V].y??-1/0),C[V].y=_}),Object.keys(C).forEach(B=>{C[B].y=_}),C},[N]),F=u.useCallback(C=>{const _=l.nodeId()(C);d(f===_?"":_)},[f,l]),j=u.useCallback(()=>{d(""),g(null)},[]),H=u.useMemo(()=>f===""&&h===null?new Set:new Set(N.links.filter(C=>l.nodeId()(C.source)===f||l.nodeId()(C.target)===f||(h==null?void 0:h.source)===C.source&&(h==null?void 0:h.target)===C.target)),[f,N,h,l]),G=u.useCallback((C,_)=>{const B=("clientX"in C?C.clientX:0)-E.left,V=("clientY"in C?C.clientY:0)-E.top;g(_),B&&V&&v({tooltipLeft:B,tooltipTop:V,tooltipData:_})},[v,E]),L=u.useCallback(()=>{j(),w()},[j,w]);return y.jsxs("div",{ref:c,className:"bg-white w-min h-min rabbit-ds",id:"sankey-chart",children:[y.jsxs("svg",{height:e,width:t,ref:S,children:[y.jsx("g",{children:N.links.map(C=>y.jsx(f4,{data:C,source:_=>({x:_.source.x1,y:_.y0}),target:_=>({x:_.target.x0,y:_.y1}),x:_=>_.x??0,y:_=>_.y??0,fill:"none",pointerEvents:"stroke",onMouseLeave:()=>L(),onMouseMove:_=>G(_,C),stroke:rt(C.source.index||0).light,strokeWidth:C.width,strokeOpacity:H.has(C)?.7:.4},C.index))}),y.jsx("g",{children:N.nodes.map(C=>{var _,B,V;return y.jsx("g",{children:y.jsx(o4,{x:C.x0??0,height:(C.y1??0)-(C.y0??0)+10,width:(C.x1??0)-(C.x0??0),y:(C.y0??0)-5,onMouseEnter:()=>F(C),onMouseLeave:()=>j(),radius:2,fill:f===C.id?(_=rt(C.index||0))==null?void 0:_.dark:(B=rt(C.index||0))==null?void 0:B.light,stroke:(V=rt(C.index||0))==null?void 0:V.dark,all:!0})},C.index)})}),y.jsx("g",{children:a.map(C=>y.jsx(_u,{axisCharLimit:20,x:O[C.id].x??0,y:(O[C.id].y??0)+40,textLabel:C.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:"middle",fill:"#666666"}},C.id))}),y.jsxs("g",{children:[N.nodes.map(C=>y.jsx(_u,{axisCharLimit:8,x:C.depth===T?(C.x1??0)+10:(C.x0??0)-10,y:(C.y0??0)+((C.y1??0)-(C.y0??0))/2,textLabel:C.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:C.depth===T?"start":"end",fill:"#666666"}},C.index)),N.nodes.map(C=>C.value&&y.jsx(_l,{x:C.depth===T?(C.x1??0)+10:(C.x0??0)-10,y:(C.y0??0)+((C.y1??0)-(C.y0??0))/2+16,style:{fontSize:10,fontWeight:400,textAnchor:C.depth===T?"start":"end",fill:"#666666"},children:`(${C.value.toString()})`},C.index))]})]}),b&&p&&y.jsx(M,{top:x,left:m,unstyled:!0,applyPositionStyle:!0,children:y.jsx(z9,{tooltipData:p,fromLabel:`From: ${a[p.source.group].name}`,toLabel:`To: ${a[p.target.group].name}`,weightLabel:i,tooltipTitle:n})},Math.random())]})});o1.displayName="Sankey";const a1=u.forwardRef((e,t)=>y.jsx(Zi,{debounceTime:10,children:({width:n,height:r})=>n&&r&&y.jsx(o1,{ref:t,width:n,height:r,...e})}));a1.displayName="SankeyChart";const V9=a1;function H9(e){return"bandwidth"in e?e.bandwidth():0}var G9=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function Bu(){return Bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bu.apply(this,arguments)}function U9(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function i1(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.scale,i=e.width,s=e.stroke,l=s===void 0?"#eaf0f6":s,c=e.strokeWidth,f=c===void 0?1:c,d=e.strokeDasharray,h=e.className,g=e.children,p=e.numTicks,m=p===void 0?10:p,x=e.lineStyle,b=e.offset,v=e.tickValues,w=U9(e,G9),E=v??Tc(a,m),S=(b??0)+H9(a)/2,M=E.map(function(N,T){var O,F=((O=Ec(a(N)))!=null?O:0)+S;return{index:T,from:new Sn({x:0,y:F}),to:new Sn({x:i,y:F})}});return u.createElement(qn,{className:ct("visx-rows",h),top:n,left:o},g?g({lines:M}):M.map(function(N){var T=N.from,O=N.to,F=N.index;return u.createElement(g4,Bu({key:"row-line-"+F,from:T,to:O,stroke:l,strokeWidth:f,strokeDasharray:d,style:x},w))}))}i1.propTypes={tickValues:se.array,width:se.number.isRequired};function s1({xValue:e,yValue:t,tooltipTitle:n,xAxisLabel:r,yAxisLabel:o,legendValue:a,legendDarkColor:i,legendLightColor:s}){const l=e==null?void 0:e.toString(),c=t==null?void 0:t.toString();return y.jsxs(Ye,{tooltipTitle:n,showSideBySide:!0,children:[y.jsx(Ye.Item,{label:r,value:l}),y.jsx(Ye.Item,{label:o,value:c}),y.jsx(Ye.Legend,{value:a,darkColor:i,lightColor:s})]})}s1.defaultProps={xValue:void 0,yValue:void 0};const l1=20,c1=50,Wu=80,es=50,Y9=10,q9=25,Vu=u.forwardRef(({tooltipTitle:e,xAxisLabel:t,yAxisLabel:n,domain:r,binCount:o,data:a,width:i,height:s,maxBinCount:l=q9,minBinCount:c=Y9,integerBins:f=!1,integerYAxis:d=!1},h)=>{const g=u.useMemo(()=>fi(a),[a]),{histogramDomain:p,threshold:m,thresholdInteger:x}=u.useMemo(()=>{const D=g[0]??0,A=D===g[1]?c+D:g[1]??0,W=A-D>c?A:c+D,ne=Math.min(Math.max(A-D,c),l),Q=Math.floor(g[0]??0),re=Math.ceil(W);return{histogramDomain:r||(f?[Q,re]:[D,A]),threshold:ne,thresholdInteger:Math.ceil(ne)}},[g,r,f,l,c]),b=u.useMemo(()=>Uo({domain:p,range:[es,i-c1],round:!0,nice:!0}),[p,i]),v=u.useMemo(()=>vT().domain(b.domain()).thresholds(o||(f?x:m))(a),[b,o,a,m,x,f]),w=u.useMemo(()=>Uo({domain:[0,jl(v,D=>D.length)??0],range:[s-Wu,l1],round:!0,nice:!0}),[v,s]),E=u.useMemo(()=>w.ticks().filter(D=>d?Number.isInteger(D):D),[d,w]),S=u.useRef(null);Lu(S,h,`${t}-${n}-Histogram`);const{tooltipData:M,tooltipLeft:N,tooltipTop:T,tooltipOpen:O,showTooltip:F,hideTooltip:j}=qc(),{containerBounds:H,containerRef:G,TooltipInPortal:L}=eu({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),C=i-es-c1,_=s-l1-Wu-100,B=u.useCallback((D,A)=>{const W=("clientX"in D?D.clientX:0)-H.left,ne=("clientY"in D?D.clientY:0)-H.top;W&&ne&&F({tooltipLeft:W,tooltipTop:ne,tooltipData:A})},[F,H]),V=u.useCallback(()=>{j()},[j]);return y.jsxs("div",{className:"bg-white flex flex-col rabbit-ds",style:{width:i,height:s},ref:S,children:[y.jsxs("svg",{width:i,height:s,ref:G,children:[y.jsx(Gc,{orientation:"bottom",scale:b,top:s-Wu,hideTicks:!0,numTicks:6,stroke:"#CFD7DF",strokeWidth:1,rangePadding:{end:10},label:`${t} ➔`,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),y.jsx(Gc,{orientation:"left",scale:w,left:es,hideTicks:!0,strokeWidth:1,stroke:"#CFD7DF",tickFormat:d?Ni("d"):void 0,tickValues:E,label:`${n} ➔`,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"end"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),y.jsxs(qn,{children:[y.jsx(i1,{scale:w,width:C,height:_,left:es,top:0,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),v.map(D=>{const A=Math.abs(w(0)-w(D.length)),W=Math.abs(b(D.x1??0)-b(D.x0??0));return y.jsx("g",{children:y.jsx(e4,{x:b(D.x0??0),y:w(D.length),width:W,height:A&&A-1,fill:rt(0).light,stroke:rt(0).dark,strokeWidth:1,onMouseMove:ne=>B(ne,D),onMouseLeave:()=>V()})},Math.random())})]})]}),O&&M&&y.jsx(L,{top:T,left:N,unstyled:!0,applyPositionStyle:!0,children:y.jsx(s1,{xAxisLabel:t,xValue:`${M.x0} to ${M.x1}`,yAxisLabel:n,yValue:M.length,tooltipTitle:e,legendValue:n,legendDarkColor:rt(0).dark,legendLightColor:rt(0).light})},Math.random()),w.domain()[2]]})}),u1=u.forwardRef((e,t)=>y.jsx(Zi,{debounceTime:10,children:({width:n,height:r})=>y.jsx(Vu,{ref:t,width:n,height:r,...e})}));Vu.defaultProps={domain:void 0,binCount:void 0,integerBins:!1,integerYAxis:!1},Vu.displayName="HistogramBase",u1.displayName="HistogramChart";const K9=u1;function X9({count:e,totalCount:t,title:n,subTitle:r,className:o,unstyledDimension:a=!1,style:i}){const s="max-w-[336px] min-h-[96px] min-w-[200px]";return y.jsxs("div",{className:ge("rabbit-ds box-border px-2 py-4 bg-white rounded-lg shadow flex-col justify-center items-start gap-1 inline-flex",o,!a&&s),style:i,children:[y.jsxs("div",{className:"self-stretch px-3 py-1 flex items-baseline",children:[y.jsx("div",{className:"text-zinc-800 text-2xl font-semibold",children:e}),t&&t>0?y.jsxs("div",{className:"text-stone-500 text-xs font-normal",children:["/",t]}):null]}),y.jsx("div",{className:"self-stretch px-3 justify-start items-center gap-2 inline-flex",children:y.jsxs("div",{className:"grow shrink basis-0 flex-col justify-start items-start gap-0.5 inline-flex",children:[y.jsx("div",{className:"self-stretch justify-start items-start gap-2.5 inline-flex",children:y.jsx("div",{className:"grow shrink basis-0 text-zinc-800 text-xs font-semibold leading-none",children:n})}),r&&y.jsx("div",{className:"self-stretch justify-start py-2 items-center gap-1 inline-flex",children:y.jsx("div",{className:"grow shrink basis-0 text-stone-500 text-xs font-normal leading-none",children:r})})]})})]})}const ts="ToggleGroup",[d1,P_]=ht(ts,[Sr]),f1=Sr(),Z9=u.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return u.createElement(Q9,J({},o,{ref:t}))}if(n==="multiple"){const o=r;return u.createElement(J9,J({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${ts}\``)}),[h1,p1]=d1(ts),Q9=u.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=wt({prop:n,defaultProp:r,onChange:o});return u.createElement(h1,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:u.useCallback(()=>s(""),[s])},u.createElement(m1,J({},a,{ref:t})))}),J9=u.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=wt({prop:n,defaultProp:r,onChange:o}),l=u.useCallback(f=>s((d=[])=>[...d,f]),[s]),c=u.useCallback(f=>s((d=[])=>d.filter(h=>h!==f)),[s]);return u.createElement(h1,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c},u.createElement(m1,J({},a,{ref:t})))}),[R9,e8]=d1(ts),m1=u.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,c=f1(n),f=vr(i),d={role:"group",dir:f,...l};return u.createElement(R9,{scope:n,rovingFocus:o,disabled:r},o?u.createElement(Vs,J({asChild:!0},c,{orientation:a,dir:f,loop:s}),u.createElement(we.div,J({},d,{ref:t}))):u.createElement(we.div,J({},d,{ref:t})))}),Hu="ToggleGroupItem",t8=u.forwardRef((e,t)=>{const n=p1(Hu,e.__scopeToggleGroup),r=e8(Hu,e.__scopeToggleGroup),o=f1(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=u.useRef(null);return r.rovingFocus?u.createElement(Hs,J({asChild:!0},o,{focusable:!i,active:a,ref:l}),u.createElement(g1,J({},s,{ref:t}))):u.createElement(g1,J({},s,{ref:t}))}),g1=u.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=p1(Hu,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return u.createElement($d,J({},s,o,{ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),n8=Z9,r8=t8;function o8({children:e,...t}){return y.jsx(n8,{className:"flex gap-2",...t,children:e})}function a8({value:e,disabled:t,selected:n,icon:r,label:o,count:a,...i}){return y.jsx(r8,{asChild:!0,value:e,...i,children:y.jsx("button",{type:"button",className:ge("rabbit-ds h-7 flex-col w-auto p-0 border border-solid rounded-full justify-center items-center inline-flex hover:cursor-pointer focus:outline-1 focus:outline-offset-2","data-[state=off]:border-gray-100 data-[state=off]:bg-gray-100 data-[state=off]:text-dove-gray-500","data-[state=on]:border-sky-800 data-[state=on]:bg-sky-100 data-[state=on]:text-sky-800"),children:y.jsxs("div",{className:"px-4 py-1 rounded-full flex-row justify-start items-center gap-2.5 flex",children:[r?y.jsx("div",{className:"w-4 h-4 justify-center items-center flex",children:r}):null,y.jsxs("div",{className:"text-sm leading-tight font-semibold",children:[o?y.jsx("span",{children:o}):null," ",a?y.jsxs("span",{children:["(",a,")"]}):null]})]})})})}const v1=Wa,b1=za,y1=ja,w1=Ga,x1=Va,$1=Ha,S1=u.forwardRef(({className:e,children:t,align:n="end",...r},o)=>y.jsx(Ba,{ref:o,align:n,...r,children:t}));S1.displayName="SplitButtonDropdownContent";const i8=qe("",{variants:{size:{normal:"icon",small:"smallIcon",icon:"icon",smallIcon:"smallIcon"}},defaultVariants:{size:"normal"}});function s8({children:e,size:t,status:n,variant:r,...o}){return y.jsx("div",{className:"rabbit-ds flex flex-row",children:y.jsxs(el,{children:[y.jsx(Qt,{variant:r,status:n,size:t,...o,className:"rounded-r-none",children:e}),y.jsx(tl,{asChild:!0,children:y.jsx(Qt,{variant:r,status:n,className:"rounded-l-none border-l-0",size:i8({size:t}),children:y.jsx(ps,{})})})]})})}v1.displayName="SplitButtonDropdownItem",b1.displayName="SplitButtonDropdownGroup",y1.displayName="SplitButtonDropdownRadioGroup",w1.displayName="SplitButtonDropdownLabel",x1.displayName="SplitButtonDropdownCheckboxItem",$1.displayName="SplitButtonDropdownRadioItem";function l8({status:e=Ve.ON_TRACK,startValue:t=0,targetValue:n=100,achievedValue:r=0,percentageToDisplay:o=0,metricName:a="",measureBy:i={isPrefix:!1,symbol:""}}){const s=a.length>35?`${a.slice(0,35)}...`:a,l=pa(r),c=pa(t),f=pa(n);return y.jsxs("div",{className:"rabbit-ds w-full px-3 py-2 flex-col justify-center items-start inline-flex min-w-[304px] box-border",children:[y.jsx("div",{className:"w-full py-0.5 justify-start items-center gap-1 inline-flex h-4",children:y.jsx("div",{className:"text-right text-xs font-normal text-[#666666] leading-3",children:s})}),y.jsxs("div",{className:"w-full self-stretch justify-start items-start gap-1 inline-flex h-5",children:[y.jsx("div",{className:"w-9/12 h-5 justify-start items-start flex",children:y.jsx(Nd,{progressInPercentage:o,status:e})}),y.jsx("div",{className:"h-[20px] justify-start items-center gap-1 inline-flex grow",children:y.jsx("div",{className:" text-sm text-[#333333] leading-5 font-[590] w-full text-left ",children:i.isPrefix?i.symbol+l:l+i.symbol})})]}),y.jsxs("div",{className:"w-9/12 justify-between items-center inline-flex",children:[y.jsx("div",{className:"h-6 py-1 justify-start items-center gap-1 inline-flex box-border",children:y.jsx("div",{className:"grow shrink basis-0 h-4 justify-start items-start gap-2.5 inline-flex",children:y.jsx("div",{className:" text-[10px] leading-4 text-[#666666] font-[590] ",children:i.isPrefix?i.symbol+c:c+i.symbol})})}),y.jsx("div",{className:"h-6 py-1 justify-start items-center gap-1 inline-flex box-border",children:y.jsx("div",{className:"grow shrink basis-0 h-4 justify-end items-start gap-2.5 inline-flex",children:y.jsx("div",{className:"text-[10px] leading-4 text-[#666666] font-[590] ",children:i.isPrefix?i.symbol+f:f+i.symbol})})})]})]})}const c8=qe(["rabbit-ds w-full h-full py-2 px-3"],{variants:{variant:{default:""},defaultVariant:{variant:"default"}}});function u8(){return y.jsx("div",{className:"w-full h-full relative",children:y.jsxs("div",{className:"w-full h-full left-0 top-0 absolute bg-gradient-to-b from-[#E9F5F8] via-[#F7F7F7] to-[#A1E7FC] shadow-[-4px_0px_4px_0px_rgba(0, 0, 0, 0.05)_inset]",children:[y.jsx("div",{className:"absolute inset-0 w-full h-full",style:{background:"linear-gradient(180deg, rgba(231, 244, 247, 0.80) 0%, rgba(185, 239, 254, 0.80) 40%, rgba(136, 226, 252, 0.80) 100%)",boxShadow:"-2px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),y.jsx("div",{className:"absolute inset-0 w-full h-full mix-blend-darken",style:{background:"linear-gradient(180deg, #DEEAED 0%, #F6F6F6 40%, #F5F7F7 100%)",boxShadow:"-2px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),y.jsx("div",{className:"absolute inset-0 w-full h-full mix-blend-hard-light",style:{background:"linear-gradient(180deg, #DEEAED 0%, #F6F6F6 40%, #F5F7F7 100%)",boxShadow:"-4px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),y.jsx("div",{className:"absolute inset-0 w-full h-full opacity-60 mix-blend-multiply",style:{background:"linear-gradient(89deg, #A0E7FC 0%, #A4E8FC 19%, #F5F7F7 100%)",boxShadow:"-4px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),y.jsx("div",{className:"absolute inset-0 w-full h-full opacity-90 mix-blend-darken",style:{background:"linear-gradient(180deg, #AAE9FC 0%, #D7F1F8 40%, #F4FDFF 100%)",backdropFilter:"blur(4px)"}}),y.jsx("div",{className:"absolute inset-0 w-full h-full mix-blend-hard-light",style:{background:"linear-gradient(87deg, rgba(233, 245, 248, 0.60) 0%, rgba(247, 247, 247, 0.60) 19%, rgba(247, 247, 247, 0.60) 38%, rgba(161, 231, 252, 0.60) 100%)",boxShadow:"-4px 0px 4px rgba(0, 0, 0, 0.05) inset"}})]})})}const C1=u.forwardRef(({className:e,children:t,...n},r)=>y.jsxs("div",{className:"rabbit-ds w-20 h-screen relative",children:[y.jsx("div",{className:"w-full h-full absolute inset",children:y.jsx(u8,{})}),y.jsx("nav",{className:ge(c8({className:e})),ref:r,...n,children:t})]}));C1.displayName="LeftNav";const Gu=u.forwardRef(({children:e,asChild:t=!1,...n},r)=>{const o=t?Zt:"div";return y.jsx(o,{ref:r,className:"rabbit-ds",...n,children:e})});Gu.displayName="LeftNavItem",Gu.defaultProps={asChild:!1};const d8=qe(["w-full flex-col justify-start items-center gap-1 inline-flex"],{variants:{variant:{top:"order-1 mb-auto",bottom:"order-2 mt-auto"},defaultVariant:{variant:"top"}}}),E1=u.forwardRef(({children:e,align:t,...n},r)=>y.jsx("div",{ref:r,className:ge(d8({variant:t})),...n,children:e}));E1.displayName="LeftNavItem";const T1=u.forwardRef((e,t)=>y.jsx(Qt,{ref:t,className:"rabbit-ds w-14 h-14 z-20",variant:"outline",children:y.jsxs("svg",{className:"z-20 w-6 h-6",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("g",{clipPath:"url(#clip0_1397_29183)",children:y.jsxs("g",{clipPath:"url(#clip1_1397_29183)",filter:"url(#filter0_d_1397_29183)",children:[y.jsx("path",{d:"M22.1654 14.8101C22.1654 15.8326 21.3386 16.6614 20.3187 16.6614C19.2988 16.6614 18.472 15.8326 18.472 14.8101C18.472 13.7877 19.2988 12.9589 20.3187 12.9589C21.3386 12.9589 22.1654 13.7877 22.1654 14.8101Z",fill:"#008EF0"}),y.jsx("path",{d:"M9.50932 5.28316C9.14769 5.45665 8.74267 5.5538 8.315 5.5538C6.78513 5.5538 5.54492 4.31054 5.54492 2.7769C5.54492 1.24326 6.78513 0 8.315 0C9.84488 0 11.0851 1.24326 11.0851 2.7769C11.0851 3.20559 10.9882 3.6116 10.8151 3.9741L14.3002 7.46776C14.4528 7.42686 14.6131 7.40506 14.7785 7.40506C15.7984 7.40506 16.6253 8.2339 16.6253 9.25633C16.6253 10.2788 15.7984 11.1076 14.7785 11.1076C13.7586 11.1076 12.9318 10.2788 12.9318 9.25633C12.9318 9.09048 12.9536 8.92973 12.9944 8.77678L9.50932 5.28316Z",fill:"#008EF0"}),y.jsx("path",{d:"M5.53426 9.24775C5.53426 10.2702 4.70745 11.099 3.68754 11.099C2.66762 11.099 1.84082 10.2702 1.84082 9.24775C1.84082 8.22532 2.66762 7.39648 3.68754 7.39648C4.70745 7.39648 5.53426 8.22532 5.53426 9.24775Z",fill:"#FFC200"}),y.jsx("path",{d:"M9.99463 16.5323C9.84207 16.5732 9.68173 16.595 9.5163 16.595C8.49639 16.595 7.66958 15.7661 7.66958 14.7437C7.66958 13.7213 8.49639 12.8924 9.5163 12.8924C10.5362 12.8924 11.363 13.7213 11.363 14.7437C11.363 14.9095 11.3413 15.0703 11.3005 15.2232L14.7855 18.7169C15.1471 18.5434 15.5521 18.4462 15.9798 18.4462C17.5097 18.4462 18.7499 19.6895 18.7499 21.2231C18.7499 22.7568 17.5097 24 15.9798 24C14.4499 24 13.2097 22.7568 13.2097 21.2231C13.2097 20.7944 13.3066 20.3884 13.4797 20.0259L9.99463 16.5323Z",fill:"#FFC200"}),y.jsx("path",{d:"M11.087 20.3604C11.087 21.3828 10.2602 22.2117 9.24028 22.2117C8.22036 22.2117 7.39355 21.3828 7.39355 20.3604C7.39355 19.338 8.22036 18.5092 9.24028 18.5092C10.2602 18.5092 11.087 19.338 11.087 20.3604Z",fill:"#EC3B64"}),y.jsx("path",{d:"M24.014 8.32719C24.014 9.86083 22.7738 11.1041 21.2439 11.1041C20.8197 11.1041 20.4178 11.0085 20.0584 10.8377L16.5673 14.3374C16.6063 14.4873 16.6271 14.6445 16.6271 14.8066C16.6271 15.8291 15.8003 16.6579 14.7804 16.6579C13.7605 16.6579 12.9337 15.8291 12.9337 14.8066C12.9337 13.7842 13.7605 12.9554 14.7804 12.9554C14.9495 12.9554 15.1134 12.9782 15.269 13.0208L18.748 9.53324C18.5723 9.1685 18.4738 8.75938 18.4738 8.32719C18.4738 6.79355 19.714 5.55029 21.2439 5.55029C22.7738 5.55029 24.014 6.79355 24.014 8.32719Z",fill:"#EC3B64"}),y.jsx("path",{d:"M16.6205 3.69746C16.6205 4.71988 15.7937 5.54872 14.7737 5.54872C13.7538 5.54872 12.927 4.71988 12.927 3.69746C12.927 2.67503 13.7538 1.84619 14.7737 1.84619C15.7937 1.84619 16.6205 2.67503 16.6205 3.69746Z",fill:"#5CC461"}),y.jsx("path",{d:"M11.0803 9.25125C11.0803 10.2737 10.2535 11.1025 9.23361 11.1025C9.07191 11.1025 8.91506 11.0817 8.7656 11.0425L5.27441 14.5423C5.44482 14.9026 5.54016 15.3055 5.54016 15.7307C5.54016 17.2643 4.29995 18.5076 2.77008 18.5076C1.24021 18.5076 0 17.2643 0 15.7307C0 14.197 1.24021 12.9538 2.77008 12.9538C3.20121 12.9538 3.60934 13.0525 3.97319 13.2287L7.45222 9.74107C7.40963 9.58505 7.38689 9.42081 7.38689 9.25125C7.38689 8.22883 8.21369 7.39999 9.23361 7.39999C10.2535 7.39999 11.0803 8.22883 11.0803 9.25125Z",fill:"#5CC461"})]})}),y.jsxs("defs",{children:[y.jsxs("filter",{id:"filter0_d_1397_29183",x:"-8",y:"-6",width:"40",height:"40",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[y.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),y.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),y.jsx("feOffset",{dy:"2"}),y.jsx("feGaussianBlur",{stdDeviation:"4"}),y.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),y.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),y.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1397_29183"}),y.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1397_29183",result:"shape"})]}),y.jsx("clipPath",{id:"clip0_1397_29183",children:y.jsx("rect",{width:"24",height:"24",rx:"8",fill:"white"})}),y.jsx("clipPath",{id:"clip1_1397_29183",children:y.jsx("rect",{width:"24",height:"24",fill:"white"})})]})]})}));T1.displayName="LeftNavHome";const M1=u.createContext({isOpen:!1,toggleOpen:()=>{}}),f8=()=>u.useContext(M1),h8=qe("",{variants:{variant:{default:"transition-transform rotate-0",collapsed:"transition-transform rotate-180"}},defaultVariants:{variant:"default"}});function p8({className:e,isCollapsed:t,...n}){return y.jsx("button",{type:"button",className:ge(h8({variant:t?"collapsed":"default"}),"bg-[#EBEFF3] cursor-pointer text-[#104F95] rounded-tl-full rounded-bl-full border border-solid border-[#CFD7DF] px-2","hover:text-white hover:bg-[#125AA9] hover:border-[#125AA9]",e),...n,children:y.jsx(kr,{IconSVG:Xh})})}function P1({...e}){const{isOpen:t,toggleOpen:n}=f8();return y.jsx(p8,{className:`absolute top-5 right-0 ${t?"":"translate-x-full"}`,isCollapsed:!t,onClick:n,...e})}function m8(e){const{children:t,defaultOpen:n=!1}=e,r=e.open!==void 0,[o,a]=u.useState(n),i=u.useCallback(()=>{a(f=>!f)},[]),s=r?e.open:o,l=r?e.onToggle:i,c=u.useMemo(()=>({isOpen:s,toggleOpen:l}),[s,l]);return y.jsx(M1.Provider,{value:c,children:y.jsxs("div",{className:ge("rabbit-ds relative h-screen transition-all",s?"w-full":"w-0","shadow-[-8px_-2px_8px_0px_rgba(0,0,0,0.08)_inset]"),style:{background:"linear-gradient(273deg, #E7EFF1 0%, #EEF5F8 11%, #EFFAFE 100%)"},children:[y.jsx(P1,{}),y.jsx("div",{className:s?"p-5":"w-0 h-0 overflow-hidden scale-0 opacity-0 invisible",children:t})]})})}function g8({children:e}){return y.jsx("div",{className:ge("nav-group flex flex-col gap-1","after:h-[1px] after:bg-[#EBEFF3] after:w-full after:my-4 last:after:hidden"),children:e})}function v8({children:e}){return y.jsx("div",{className:"p-2 text-dark-medium font-semibold text-xs",children:e})}function b8({children:e,...t}){return y.jsx(ep,{...t,children:e})}const y8=qe("",{variants:{orientation:{horizontal:"ml-2",vertical:"mt-2 w-full [&>div]:w-full [&_button]:w-full"}},defaultVariants:{orientation:"horizontal"}});function w8({className:e,orientation:t,...n}){return y.jsx("div",{className:y8({orientation:t}),children:y.jsx(Qt,{className:e,...n})})}const x8={ON_TRACK:{label:"On-track",colorScheme:"tag-green"},OFF_TRACK:{label:"Off-track",colorScheme:"tag-yellow"},AT_RISK:{label:"At-risk",colorScheme:"tag-red"},CLOSED:{label:"Closed",colorScheme:"tag-darkGray"},NOT_STARTED:{label:"Not started",colorScheme:"tag-lightGray"}};function $8({title:e,achieved:t,status:n}){const r=x8[n];return y.jsx("div",{className:"rabbit-ds mr-auto",children:y.jsxs("div",{className:"flex flex-col p-2 gap-1",children:[y.jsx("div",{className:"text-sm font-semibold",children:e}),y.jsxs("div",{className:"flex items-end gap-3",children:[y.jsxs("div",{className:"flex flex-col",children:[y.jsx("span",{className:"text-xs text-dark-medium",children:"Achieved"}),y.jsxs("span",{className:ge(r.colorScheme,"font-semibold text-2xl !bg-transparent"),children:[t,"%"]})]}),y.jsx(Za,{colorScheme:r.colorScheme,className:"mb-1",children:r.label})]})]})})}function S8({employeeName:e,employeeProfilePhoto:t,reviewCycleName:n,reviewType:r,dueBy:o}){return y.jsx("div",{className:"rabbit-ds mr-auto",children:y.jsxs("div",{className:"flex gap-2",children:[y.jsx(Hn,{size:"xl",children:y.jsx(Gn,{src:t,alt:"Avatar"})}),y.jsxs("div",{className:"flex flex-col items-start text-sm",children:[y.jsx("span",{className:"font-semibold",children:e}),y.jsx(Za,{className:"mt-0.5",variant:"outlined",children:r}),y.jsx("span",{className:"text-dark-medium mt-2",children:n}),y.jsxs("span",{className:"text-dark-medium mt-0.5",children:["Due by ",o]})]})]})})}function C8({employeeName:e,employeeProfilePhoto:t,designation:n}){return y.jsx("div",{className:"rabbit-ds mr-auto",children:y.jsxs("div",{className:"flex gap-2",children:[y.jsx(Hn,{size:"xl",children:y.jsx(Gn,{src:t,alt:"Avatar"})}),y.jsxs("div",{className:"flex flex-col items-start text-sm",children:[y.jsx("span",{className:"font-semibold",children:e}),y.jsx("span",{className:"text-dark-medium",children:n})]})]})})}function E8({employeeName:e,employeeProfilePhoto:t,designation:n,requestReason:r}){return y.jsx("div",{className:"rabbit-ds mr-auto w-[60%]",children:y.jsxs("div",{className:"flex gap-2 w-full",children:[y.jsx(Hn,{size:"xl",children:y.jsx(Gn,{src:t,alt:"Avatar"})}),y.jsxs("div",{className:"flex flex-col items-start text-sm w-full",children:[y.jsx("span",{className:"font-semibold",children:e}),y.jsx(Za,{className:"mt-0.5",variant:"outlined",children:n}),y.jsx("span",{className:"text-dark-medium mt-2 w-full overflow-hidden whitespace-nowrap text-ellipsis",children:r})]})]})})}const T8=qe("",{variants:{orientation:{horizontal:"flex-row",vertical:"flex-col min-w-max"}},defaultVariants:{orientation:"horizontal"}});function M8({className:e,children:t,orientation:n}){return y.jsx("div",{className:ge("rabbit-ds","w-full flex items-center rounded-lg p-4 bg-[#FDFDFD] border border-solid border-[#F3F5F8]",T8({orientation:n}),e),children:t})}function P8({nudgeCardList:e,title:t,imgSrc:n,description:r,pageSize:o=3}){const[a,i]=u.useState(1),s=e.slice(0,o*a),l=e.length>o,c=e.length===s.length,f=()=>{i(d=>c?1:d+1)};return y.jsxs("div",{className:ge("rabbit-ds","w-full flex flex-col items-start rounded-lg px-4 py-3 gap-[7px] bg-white shadow-[0px_0px_2px_0px_rgba(0,0,0,0.24)]"),children:[y.jsx("span",{className:"text-lg font-semibold",children:t}),y.jsxs("div",{className:"flex items-center gap-4 mt-1",children:[y.jsx(Hn,{className:"h-24 w-24",children:y.jsx(Gn,{src:n,alt:t})}),y.jsx("span",{children:r})]}),s,l&&y.jsx("div",{className:"mx-auto",children:y.jsxs(Qt,{variant:"text",onClick:f,iconRight:c?y.jsx($b,{size:16}):y.jsx(ps,{size:16}),children:["View ",c?"less":"more"]})})]})}function k8({surveyName:e,date:t}){return y.jsx("div",{className:"rabbit-ds mr-auto",children:y.jsxs("div",{className:"flex gap-2",children:[y.jsx(kr,{IconSVG:Zh}),y.jsxs("div",{className:"flex flex-col items-start text-sm",children:[y.jsx("span",{className:"font-semibold",children:e}),y.jsx(Np,{date:t,showRelativeTime:!0})]})]})})}const O8=qe("",{variants:{variant:{single:"flex-row [&>div]:items-start",multiple:"flex-col"}},defaultVariants:{variant:"single"}});function N8({employeeName:e,employeeProfilePhoto:t,scheduleDate:n,scheduleTime:r,variant:o}){return y.jsx("div",{className:"rabbit-ds mr-auto",children:y.jsxs("div",{className:ge("flex items-center text-sm gap-2",O8({variant:o})),children:[y.jsx(Hn,{size:"xl",children:y.jsx(Gn,{src:t,alt:e})}),y.jsxs("div",{className:"flex flex-col gap-1 items-center",children:[y.jsx("span",{className:"font-semibold",children:e}),y.jsxs("span",{children:[n," • ",r]})]})]})})}function _8(e){return Object.prototype.toString.call(e)==="[object Object]"}function k1(e){return _8(e)||Array.isArray(e)}function D8(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Uu(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==a?!1:n.every(i=>{const s=e[i],l=t[i];return typeof s=="function"?`${s}`==`${l}`:!k1(s)||!k1(l)?s===l:Uu(s,l)})}function O1(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function A8(e,t){if(e.length!==t.length)return!1;const n=O1(e),r=O1(t);return n.every((o,a)=>{const i=r[a];return Uu(o,i)})}function Yu(e){return typeof e=="number"}function qu(e){return typeof e=="string"}function Ku(e){return typeof e=="boolean"}function N1(e){return Object.prototype.toString.call(e)==="[object Object]"}function Be(e){return Math.abs(e)}function Xu(e){return Math.sign(e)}function ns(e,t){return Be(e-t)}function I8(e,t){if(e===0||t===0||Be(e)<=Be(t))return 0;const n=ns(Be(e),Be(t));return Be(n/e)}function Ro(e){return ta(e).map(Number)}function Lt(e){return e[ea(e)]}function ea(e){return Math.max(0,e.length-1)}function Zu(e,t){return t===ea(e)}function _1(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function ta(e){return Object.keys(e)}function D1(e,t){return[e,t].reduce((n,r)=>(ta(r).forEach(o=>{const a=n[o],i=r[o],s=N1(a)&&N1(i);n[o]=s?D1(a,i):i}),n),{})}function A1(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function L8(e,t){const n={start:r,center:o,end:a};function r(){return 0}function o(l){return a(l)/2}function a(l){return t-l}function i(l,c){return qu(e)?n[e](l):e(t,l,c)}return{measure:i}}function F8(e,t){const n=e==="y"?"y":"x",r=e==="y"?"x":"y",o=s(),a=l();function i(f){const{width:d,height:h}=f;return n==="x"?d:h}function s(){return n==="y"?"top":t==="rtl"?"right":"left"}function l(){return n==="y"?"bottom":t==="rtl"?"left":"right"}return{scroll:n,cross:r,startEdge:o,endEdge:a,measureSize:i}}function sr(e,t){const n=Be(e-t);function r(c){return c<e}function o(c){return c>t}function a(c){return r(c)||o(c)}function i(c){return a(c)?r(c)?e:t:c}function s(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:i,reachedAny:a,reachedMax:o,reachedMin:r,removeOffset:s}}function I1(e,t,n){const{constrain:r}=sr(0,e),o=e+1;let a=i(t);function i(h){return n?Be((o+h)%o):r(h)}function s(){return a}function l(h){return a=i(h),d}function c(h){return f().set(s()+h)}function f(){return I1(e,s(),n)}const d={get:s,set:l,add:c,clone:f};return d}function j8(e){const t=e==="rtl"?-1:1;function n(o){return o*t}return{apply:n}}function na(){let e=[];function t(o,a,i,s={passive:!0}){let l;if("addEventListener"in o)o.addEventListener(a,i,s),l=()=>o.removeEventListener(a,i,s);else{const c=o;c.addListener(i),l=()=>c.removeListener(i)}return e.push(l),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function z8(e,t,n,r,o,a,i,s,l,c,f,d,h,g,p,m,x,b,v,w){const{cross:E}=e,S=["INPUT","SELECT","TEXTAREA"],M={passive:!1},N=na(),T=na(),O=sr(50,225).constrain(p.measure(20)),F={mouse:300,touch:400},j={mouse:500,touch:600},H=m?43:25;let G=!1,L=0,C=0,_=!1,B=!1,V=!1,D=!1;function A(k){if(!w)return;function te(me){(Ku(w)||w(k,me))&&ue(me)}const ae=n;N.add(ae,"dragstart",me=>me.preventDefault(),M).add(ae,"touchmove",()=>{},M).add(ae,"touchend",()=>{}).add(ae,"touchstart",te).add(ae,"mousedown",te).add(ae,"touchcancel",le).add(ae,"contextmenu",le).add(ae,"click",U,!0)}function W(){N.clear(),T.clear()}function ne(){const k=D?r:n;T.add(k,"touchmove",X,M).add(k,"touchend",le).add(k,"mousemove",X,M).add(k,"mouseup",le)}function Q(k){const te=k.nodeName||"";return S.includes(te)}function re(){return(m?j:F)[D?"mouse":"touch"]}function oe(k,te){const ae=h.add(Xu(k)*-1),me=d.byDistance(k,!m).distance;return m||Be(k)<O?me:b&&te?me*.5:d.byIndex(ae.get(),0).distance}function ue(k){const te=A1(k,o);D=te,!(te&&k.button!==0)&&(Q(k.target)||(V=m&&te&&!k.buttons&&G,G=ns(a.get(),s.get())>=2,_=!0,i.pointerDown(k),f.useFriction(0).useDuration(0),a.set(s),ne(),L=i.readPoint(k),C=i.readPoint(k,E),g.emit("pointerDown")))}function X(k){const te=i.readPoint(k),ae=i.readPoint(k,E),me=ns(te,L),ye=ns(ae,C);if(!B&&!D&&(!k.cancelable||(B=me>ye,!B)))return le(k);const Ee=i.pointerMove(k);me>x&&(V=!0),f.useFriction(.3).useDuration(1),l.start(),a.add(t.apply(Ee)),k.preventDefault()}function le(k){const ae=d.byDistance(0,!1).index!==h.get(),me=i.pointerUp(k)*re(),ye=oe(t.apply(me),ae),Ee=I8(me,ye),Ke=H-10*Ee,Xe=v+Ee/50;B=!1,_=!1,T.clear(),f.useDuration(Ke).useFriction(Xe),c.distance(ye,!m),D=!1,g.emit("pointerUp")}function U(k){V&&(k.stopPropagation(),k.preventDefault())}function Z(){return _}return{init:A,pointerDown:Z,destroy:W}}function B8(e,t){let r,o;function a(d){return d.timeStamp}function i(d,h){const p=`client${(h||e.scroll)==="x"?"X":"Y"}`;return(A1(d,t)?d:d.touches[0])[p]}function s(d){return r=d,o=d,i(d)}function l(d){const h=i(d)-i(o),g=a(d)-a(r)>170;return o=d,g&&(r=d),h}function c(d){if(!r||!o)return 0;const h=i(o)-i(r),g=a(d)-a(r),p=a(d)-a(o)>170,m=h/g;return g&&!p&&Be(m)>.1?m:0}return{pointerDown:s,pointerMove:l,pointerUp:c,readPoint:i}}function W8(){function e(n){const{offsetTop:r,offsetLeft:o,offsetWidth:a,offsetHeight:i}=n;return{top:r,right:o+a,bottom:r+i,left:o,width:a,height:i}}return{measure:e}}function V8(e){function t(r){return e*(r/100)}return{measure:t}}function H8(e,t,n,r,o,a,i){let s,l,c=[],f=!1;function d(m){return o.measureSize(i.measure(m))}function h(m){if(!a)return;l=d(e),c=r.map(d);function x(v){for(const w of v){const E=w.target===e,S=r.indexOf(w.target),M=E?l:c[S],N=d(E?e:r[S]);if(Be(N-M)>=.5){n.requestAnimationFrame(()=>{m.reInit(),t.emit("resize")});break}}}s=new ResizeObserver(v=>{f||(Ku(a)||a(m,v))&&x(v)}),[e].concat(r).forEach(v=>s.observe(v))}function g(){s&&s.disconnect(),f=!0}return{init:h,destroy:g}}function G8(e,t,n,r,o){let a=0,i=0,s=r,l=o,c=e.get(),f=0;function d(){const S=n.get()-e.get(),M=!s;let N=0;return M?(a=0,e.set(n),N=S):(a+=S/s,a*=l,c+=a,e.add(a),N=c-f),i=Xu(N),f=c,E}function h(){const S=n.get()-t.get();return Be(S)<.001}function g(){return s}function p(){return i}function m(){return a}function x(){return v(r)}function b(){return w(o)}function v(S){return s=S,E}function w(S){return l=S,E}const E={direction:p,duration:g,velocity:m,seek:d,settled:h,useBaseFriction:b,useBaseDuration:x,useFriction:w,useDuration:v};return E}function U8(e,t,n,r,o){const a=o.measure(10),i=o.measure(50),s=sr(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function f(g){if(!c())return;const p=e.reachedMin(t.get())?"min":"max",m=Be(e[p]-t.get()),x=n.get()-t.get(),b=s.constrain(m/i);n.subtract(x*b),!g&&Be(x)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(g){l=!g}return{constrain:f,toggleActive:d}}function Y8(e,t,n,r){const o=sr(-t+e,0),a=c(),i=l(),s=f();function l(){const h=a[0],g=Lt(a),p=a.lastIndexOf(h),m=a.indexOf(g)+1;return sr(p,m)}function c(){return n.map((h,g)=>{const p=!g,m=Zu(n,g);return p?o.max:m?o.min:o.constrain(h)}).map(h=>parseFloat(h.toFixed(3)))}function f(){if(t<=e)return[o.max];if(r==="keepSnaps")return a;const{min:h,max:g}=i;return a.slice(h,g)}return{snapsContained:s,scrollContainLimit:i}}function q8(e,t,n){const r=t[0],o=n?r-e:Lt(t);return{limit:sr(o,r)}}function K8(e,t,n,r){const a=t.min+.1,i=t.max+.1,{reachedMin:s,reachedMax:l}=sr(a,i);function c(h){return h===1?l(n.get()):h===-1?s(n.get()):!1}function f(h){if(!c(h))return;const g=e*(h*-1);r.forEach(p=>p.add(g))}return{loop:f}}function X8(e){const{max:t,length:n}=e;function r(a){const i=a-t;return n?i/-n:0}return{get:r}}function Z8(e,t,n,r,o){const{startEdge:a,endEdge:i}=e,{groupSlides:s}=o,l=d().map(t.measure),c=h(),f=g();function d(){return s(r).map(m=>Lt(m)[i]-m[0][a]).map(Be)}function h(){return r.map(m=>n[a]-m[a]).map(m=>-Be(m))}function g(){return s(c).map(m=>m[0]).map((m,x)=>m+l[x])}return{snaps:c,snapsAligned:f}}function Q8(e,t,n,r,o,a,i){const{groupSlides:s}=a,{min:l,max:c}=o,f=d();function d(){const g=s(i);return!n||r==="keepSnaps"||t<=e?g:g.slice(l,c).map((m,x,b)=>{const v=!x,w=Zu(b,x);if(v){const E=Lt(b[0])+1;return _1(E)}if(w){const E=ea(i)-Lt(b)[0]+1;return _1(E,Lt(b)[0])}return m})}return{slideRegistry:f}}function J8(e,t,n,r,o){const{reachedAny:a,removeOffset:i,constrain:s}=r;function l(p){return p.concat().sort((m,x)=>Be(m)-Be(x))[0]}function c(p){const m=e?i(p):s(p),x=t.map(v=>v-m).map(v=>f(v,0)).map((v,w)=>({diff:v,index:w})).sort((v,w)=>Be(v.diff)-Be(w.diff)),{index:b}=x[0];return{index:b,distance:m}}function f(p,m){const x=[p,p+n,p-n];if(!e)return x[0];if(!m)return l(x);const b=x.filter(v=>Xu(v)===m);return b.length?l(b):Lt(x)-n}function d(p,m){const x=t[p]-o.get(),b=f(x,m);return{index:p,distance:b}}function h(p,m){const x=o.get()+p,{index:b,distance:v}=c(x),w=!e&&a(x);if(!m||w)return{index:b,distance:p};const E=t[b]-v,S=p+f(E,0);return{index:b,distance:S}}return{byDistance:h,byIndex:d,shortcut:f}}function R8(e,t,n,r,o,a){function i(f){const d=f.distance,h=f.index!==t.get();o.add(d),d&&e.start(),h&&(n.set(t.get()),t.set(f.index),a.emit("select"))}function s(f,d){const h=r.byDistance(f,d);i(h)}function l(f,d){const h=t.clone().set(f),g=r.byIndex(h.get(),d);i(g)}return{distance:s,index:l}}function eN(e,t,n,r,o,a){let i=0;function s(){a.add(document,"keydown",l,!1),t.forEach(c)}function l(d){d.code==="Tab"&&(i=new Date().getTime())}function c(d){const h=()=>{if(new Date().getTime()-i>10)return;e.scrollLeft=0;const m=t.indexOf(d),x=n.findIndex(b=>b.includes(m));Yu(x)&&(o.useDuration(0),r.index(x,0))};a.add(d,"focus",h,{passive:!0,capture:!0})}return{init:s}}function rs(e){let t=e;function n(){return t}function r(l){t=i(l)}function o(l){t+=i(l)}function a(l){t-=i(l)}function i(l){return Yu(l)?l:l.get()}return{get:n,set:r,add:o,subtract:a}}function L1(e,t,n){const r=e.scroll==="x"?i:s,o=n.style;let a=!1;function i(h){return`translate3d(${h}px,0px,0px)`}function s(h){return`translate3d(0px,${h}px,0px)`}function l(h){a||(o.transform=r(t.apply(h)))}function c(h){a=!h}function f(){a||(o.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:f,to:l,toggleActive:c}}function tN(e,t,n,r,o,a,i,s,l,c){const d=Ro(a),h=Ro(a).reverse(),g=v().concat(w());function p(T,O){return T.reduce((F,j)=>F-a[j],O)}function m(T,O){return T.reduce((F,j)=>p(F,O)>0?F.concat([j]):F,[])}function x(T){return i.map((O,F)=>({start:O-o[F]+.5+T,end:O+n-.5+T}))}function b(T,O,F){const j=x(O);return T.map(H=>{const G=F?0:-r,L=F?r:0,C=F?"end":"start",_=j[H][C];return{index:H,loopPoint:_,slideLocation:rs(-1),translate:L1(e,t,c[H]),target:()=>l.get()>_?G:L}})}function v(){const T=s[0],O=m(h,T);return b(O,r,!1)}function w(){const T=n-s[0]-1,O=m(d,T);return b(O,-r,!0)}function E(){return g.every(({index:T})=>{const O=d.filter(F=>F!==T);return p(O,n)<=.1})}function S(){g.forEach(T=>{const{target:O,translate:F,slideLocation:j}=T,H=O();H!==j.get()&&(F.to(H),j.set(H))})}function M(){g.forEach(T=>T.translate.clear())}return{canLoop:E,clear:M,loop:S,loopPoints:g}}function nN(e,t,n){let r,o=!1;function a(l){if(!n)return;function c(f){for(const d of f)if(d.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(f=>{o||(Ku(n)||n(l,f))&&c(f)}),r.observe(e,{childList:!0})}function i(){r&&r.disconnect(),o=!0}return{init:a,destroy:i}}function rN(e,t,n,r){const o={};let a=null,i=null,s,l=!1;function c(){s=new IntersectionObserver(p=>{l||(p.forEach(m=>{const x=t.indexOf(m.target);o[x]=m}),a=null,i=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(p=>s.observe(p))}function f(){s&&s.disconnect(),l=!0}function d(p){return ta(o).reduce((m,x)=>{const b=parseInt(x),{isIntersecting:v}=o[b];return(p&&v||!p&&!v)&&m.push(b),m},[])}function h(p=!0){if(p&&a)return a;if(!p&&i)return i;const m=d(p);return p&&(a=m),p||(i=m),m}return{init:c,destroy:f,get:h}}function oN(e,t,n,r,o,a){const{measureSize:i,startEdge:s,endEdge:l}=e,c=n[0]&&o,f=p(),d=m(),h=n.map(i),g=x();function p(){if(!c)return 0;const v=n[0];return Be(t[s]-v[s])}function m(){if(!c)return 0;const v=a.getComputedStyle(Lt(r));return parseFloat(v.getPropertyValue(`margin-${l}`))}function x(){return n.map((v,w,E)=>{const S=!w,M=Zu(E,w);return S?h[w]+f:M?h[w]+d:E[w+1][s]-v[s]}).map(Be)}return{slideSizes:h,slideSizesWithGaps:g,startGap:f,endGap:d}}function aN(e,t,n,r,o,a,i,s,l){const{startEdge:c,endEdge:f}=e,d=Yu(r);function h(x,b){return Ro(x).filter(v=>v%b===0).map(v=>x.slice(v,v+b))}function g(x){return x.length?Ro(x).reduce((b,v)=>{const w=Lt(b)||0,E=w===0,S=v===ea(x),M=a[c]-i[w][c],N=a[c]-i[v][f],T=!o&&E?t.apply(s):0,O=!o&&S?t.apply(l):0;return Be(N-O-(M+T))>n&&b.push(v),S&&b.push(x.length),b},[]).map((b,v,w)=>{const E=Math.max(w[v-1]||0);return x.slice(E,b)}):[]}function p(x){return d?h(x,r):g(x)}return{groupSlides:p}}function iN(e,t,n,r,o,a,i,s){const{align:l,axis:c,direction:f,startIndex:d,loop:h,duration:g,dragFree:p,dragThreshold:m,inViewThreshold:x,slidesToScroll:b,skipSnaps:v,containScroll:w,watchResize:E,watchSlides:S,watchDrag:M}=a,N=W8(),T=N.measure(t),O=n.map(N.measure),F=j8(f),j=F8(c,f),H=j.measureSize(T),G=V8(H),L=L8(l,H),C=!h&&!!w,_=h||!!w,{slideSizes:B,slideSizesWithGaps:V,startGap:D,endGap:A}=oN(j,T,O,n,_,o),W=aN(j,F,H,b,h,T,O,D,A),{snaps:ne,snapsAligned:Q}=Z8(j,L,T,O,W),re=-Lt(ne)+Lt(V),{snapsContained:oe,scrollContainLimit:ue}=Y8(H,re,Q,w),X=C?oe:Q,{limit:le}=q8(re,X,h),U=I1(ea(X),d,h),Z=U.clone(),ie=Ro(n),k=({dragHandler:at,scrollBody:Ft,scrollBounds:un,options:{loop:jt}})=>{jt||un.constrain(at.pointerDown()),Ft.seek()},te=({scrollBody:at,translate:Ft,location:un,offsetLocation:jt,scrollLooper:Jr,slideLooper:Rr,dragHandler:ur,animation:eo,eventHandler:dr,options:{loop:Et}},zt)=>{const Dn=at.velocity(),An=at.settled();An&&!ur.pointerDown()&&(eo.stop(),dr.emit("settle")),An||dr.emit("scroll"),jt.set(un.get()-Dn+Dn*zt),Et&&(Jr.loop(at.direction()),Rr.loop()),Ft.to(jt.get())},ae={start:()=>s.start(ft),stop:()=>s.stop(ft),update:()=>k(ft),render:at=>te(ft,at)},me=.68,ye=X[U.get()],Ee=rs(ye),Ke=rs(ye),Xe=rs(ye),ot=G8(Ee,Ke,Xe,g,me),vt=J8(h,X,re,le,Xe),Kt=R8(ae,U,Z,vt,Xe,i),je=X8(le),cr=na(),Qr=rN(t,n,i,x),{slideRegistry:_n}=Q8(H,re,C,w,ue,W,ie),Ze=eN(e,n,_n,Kt,ot,cr),ft={ownerDocument:r,ownerWindow:o,eventHandler:i,containerRect:T,slideRects:O,animation:ae,axis:j,direction:F,dragHandler:z8(j,F,e,r,o,Xe,B8(j,o),Ee,ae,Kt,ot,vt,U,i,G,p,m,v,me,M),eventStore:cr,percentOfView:G,index:U,indexPrevious:Z,limit:le,location:Ee,offsetLocation:Ke,options:a,resizeHandler:H8(t,i,o,n,j,E,N),scrollBody:ot,scrollBounds:U8(le,Ee,Xe,ot,G),scrollLooper:K8(re,le,Ke,[Ee,Ke,Xe]),scrollProgress:je,scrollSnapList:X.map(je.get),scrollSnaps:X,scrollTarget:vt,scrollTo:Kt,slideLooper:tN(j,F,H,re,B,V,ne,X,Ke,n),slideFocus:Ze,slidesHandler:nN(t,i,S),slidesInView:Qr,slideIndexes:ie,slideRegistry:_n,slidesToScroll:W,target:Xe,translate:L1(j,F,t)};return ft}function sN(e){const t=16.666666666666668;let n=[],r=null,o=0,a=0;function i(d){r||(r=d);const h=d-r;for(r=d,o+=h;o>=t;)n.forEach(({animation:p})=>p.update()),o-=t;const g=Be(o/t);n.forEach(({animation:p})=>p.render(g)),a&&e.requestAnimationFrame(i)}function s(d){n.includes(d)||n.push(d),!a&&(a=e.requestAnimationFrame(i))}function l(d){n=n.filter(h=>h!==d),!n.length&&(e.cancelAnimationFrame(a),r=null,o=0,a=0)}function c(){r=null,o=0}return{start:s,stop:l,reset:c,window:e}}function lN(){const e={};let t;function n(l){t=l}function r(l){return e[l]||[]}function o(l){return r(l).forEach(c=>c(t,l)),s}function a(l,c){return e[l]=r(l).concat([c]),s}function i(l,c){return e[l]=r(l).filter(f=>f!==c),s}const s={init:n,emit:o,off:i,on:a};return s}const cN={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function uN(e){function t(a,i){return D1(a,i||{})}function n(a){const i=a.breakpoints||{},s=ta(i).filter(l=>e.matchMedia(l).matches).map(l=>i[l]).reduce((l,c)=>t(l,c),{});return t(a,s)}function r(a){return a.map(i=>ta(i.breakpoints||{})).reduce((i,s)=>i.concat(s),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function dN(e){let t=[];function n(a,i){return t=i.filter(({options:s})=>e.optionsAtMedia(s).active!==!1),t.forEach(s=>s.init(a,e)),i.reduce((s,l)=>Object.assign(s,{[l.name]:l}),{})}function r(){t=t.filter(a=>a.destroy())}return{init:n,destroy:r}}function Xr(e,t,n){const r=e.ownerDocument,o=r.defaultView,a=uN(o),i=dN(a),s=na(),l=na(),c=lN(),{animationRealms:f}=Xr,{mergeOptions:d,optionsAtMedia:h,optionsMediaQueries:g}=a,{on:p,off:m,emit:x}=c,b=G;let v=!1,w,E=d(cN,Xr.globalOptions),S=d(E),M=[],N,T,O;function F(){const{container:te,slides:ae}=S;T=(qu(te)?e.querySelector(te):te)||e.children[0];const ye=qu(ae)?T.querySelectorAll(ae):ae;O=[].slice.call(ye||T.children)}function j(te,ae){const me=iN(e,T,O,r,o,te,c,ae);if(te.loop&&!me.slideLooper.canLoop()){const ye=Object.assign({},te,{loop:!1});return j(ye,ae)}return me}function H(te,ae){if(v)return;const me=f.find(Ee=>Ee.window===o),ye=me||sN(o);me||f.push(ye),E=d(E,te),S=h(E),M=ae||M,F(),w=j(S,ye),g([E,...M.map(({options:Ee})=>Ee)]).forEach(Ee=>s.add(Ee,"change",G)),S.active&&(w.translate.to(w.location.get()),w.slidesInView.init(),w.slideFocus.init(),w.eventHandler.init(k),w.resizeHandler.init(k),w.slidesHandler.init(k),l.add(r,"visibilitychange",()=>{r.hidden&&ye.reset()}),w.options.loop&&w.slideLooper.loop(),T.offsetParent&&O.length&&w.dragHandler.init(k),N=i.init(k,M))}function G(te,ae){const me=Q();L(),H(d({startIndex:me},te),ae),c.emit("reInit")}function L(){w.dragHandler.destroy(),w.animation.stop(),w.eventStore.clear(),w.translate.clear(),w.slideLooper.clear(),w.resizeHandler.destroy(),w.slidesHandler.destroy(),w.slidesInView.destroy(),i.destroy(),s.clear(),l.clear()}function C(){v||(v=!0,s.clear(),L(),c.emit("destroy"))}function _(te,ae,me){!S.active||v||(w.scrollBody.useBaseFriction().useDuration(ae?0:S.duration),w.scrollTo.index(te,me||0))}function B(te){const ae=w.index.add(1).get();_(ae,te===!0,-1)}function V(te){const ae=w.index.add(-1).get();_(ae,te===!0,1)}function D(){return w.index.add(1).get()!==Q()}function A(){return w.index.add(-1).get()!==Q()}function W(){return w.scrollSnapList}function ne(){return w.scrollProgress.get(w.location.get())}function Q(){return w.index.get()}function re(){return w.indexPrevious.get()}function oe(){return w.slidesInView.get()}function ue(){return w.slidesInView.get(!1)}function X(){return N}function le(){return w}function U(){return e}function Z(){return T}function ie(){return O}const k={canScrollNext:D,canScrollPrev:A,containerNode:Z,internalEngine:le,destroy:C,off:m,on:p,emit:x,plugins:X,previousScrollSnap:re,reInit:b,rootNode:U,scrollNext:B,scrollPrev:V,scrollProgress:ne,scrollSnapList:W,scrollTo:_,selectedScrollSnap:Q,slideNodes:ie,slidesInView:oe,slidesNotInView:ue};return H(t,n),setTimeout(()=>c.emit("init"),0),k}Xr.animationRealms=[],Xr.globalOptions=void 0;function Qu(e={},t=[]){const n=u.useRef(e),r=u.useRef(t),[o,a]=u.useState(),[i,s]=u.useState(),l=u.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return u.useEffect(()=>{if(D8()&&i){Xr.globalOptions=Qu.globalOptions;const c=Xr(i,n.current,r.current);return a(c),()=>c.destroy()}else a(void 0)},[i,a]),u.useEffect(()=>{Uu(n.current,e)||(n.current=e,l())},[e,l]),u.useEffect(()=>{A8(r.current,t)||(r.current=t,l())},[t,l]),[s,o]}Qu.globalOptions=void 0;function lr(){return lr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lr.apply(this,arguments)}var fN=.996,hN=function(t,n){return n===void 0&&(n=fN),t*n/(1-n)};function pN(e){return e[e.length-1]}function mN(e){return e.reduce(function(t,n){return t+n})/e.length}var gN=function(t,n,r){return Math.min(Math.max(n,t),r)};function Ju(e,t){if(e.length!==t.length)throw new Error("vectors must be same length");return e.map(function(n,r){return n+t[r]})}function F1(e){return Math.max.apply(Math,e.map(Math.abs))}function Zr(e){return Object.freeze(e),Object.values(e).forEach(function(t){t!==null&&typeof t=="object"&&!Object.isFrozen(t)&&Zr(t)}),e}function vN(){var e={};function t(o,a){return e[o]=(e[o]||[]).concat(a),function(){return n(o,a)}}function n(o,a){e[o]=(e[o]||[]).filter(function(i){return i!==a})}function r(o,a){o in e&&e[o].forEach(function(i){return i(a)})}return Zr({on:t,off:n,dispatch:r})}function bN(e){var t=[],n=function(i){return i.addEventListener("wheel",e,{passive:!1}),t.push(i),function(){return r(i)}},r=function(i){i.removeEventListener("wheel",e),t=t.filter(function(s){return s!==i})},o=function(){t.forEach(r)};return Zr({observe:n,unobserve:r,disconnect:o})}var yN=16*1.125,wN=typeof window<"u"&&window.innerHeight||800,Ru=[1,yN,wN];function xN(e){var t=e.deltaX*Ru[e.deltaMode],n=e.deltaY*Ru[e.deltaMode],r=(e.deltaZ||0)*Ru[e.deltaMode];return{timeStamp:e.timeStamp,axisDelta:[t,n,r]}}var $N=[-1,-1,-1];function SN(e,t){if(!t)return e;var n=t===!0?$N:t.map(function(r){return r?-1:1});return lr({},e,{axisDelta:e.axisDelta.map(function(r,o){return r*n[o]})})}var j1=700,CN=function(t){return lr({},t,{axisDelta:t.axisDelta.map(function(n){return gN(n,-j1,j1)})})},ed=process.env.NODE_ENV!=="production",EN=.6,TN=.96,MN=2,z1=5,B1=Zr({preventWheelAction:!0,reverseSign:[!0,!0,!1]}),PN=400;function W1(){return{isStarted:!1,isStartPublished:!1,isMomentum:!1,startTime:0,lastAbsDelta:1/0,axisMovement:[0,0,0],axisVelocity:[0,0,0],accelerationFactors:[],scrollPoints:[],scrollPointsToMerge:[],willEndTimeout:PN}}function kN(e){e===void 0&&(e={});var t=vN(),n=t.on,r=t.off,o=t.dispatch,a=B1,i=W1(),s,l=!1,c,f=function(L){Array.isArray(L)?L.forEach(function(C){return p(C)}):p(L)},d=function(L){return L===void 0&&(L={}),Object.values(L).some(function(C){return C==null})?(ed&&console.error("updateOptions ignored! undefined & null options not allowed"),a):a=Zr(lr({},B1,a,L))},h=function(L){var C=lr({event:s,isStart:!1,isEnding:!1,isMomentumCancel:!1,isMomentum:i.isMomentum,axisDelta:[0,0,0],axisVelocity:i.axisVelocity,axisMovement:i.axisMovement,get axisMovementProjection(){return Ju(C.axisMovement,C.axisVelocity.map(function(_){return hN(_)}))}},L);o("wheel",lr({},C,{previous:c})),c=C},g=function(L,C){var _=a,B=_.preventWheelAction,V=C[0],D=C[1],A=C[2];if(typeof B=="boolean")return B;switch(B){case"x":return Math.abs(V)>=L;case"y":return Math.abs(D)>=L;case"z":return Math.abs(A)>=L;default:return ed&&console.warn("unsupported preventWheelAction value: "+B,"warn"),!1}},p=function(L){var C=CN(SN(xN(L),a.reverseSign)),_=C.axisDelta,B=C.timeStamp,V=F1(_);if(L.preventDefault&&g(V,_)&&L.preventDefault(),i.isStarted?i.isMomentum&&V>Math.max(2,i.lastAbsDelta*2)&&(T(!0),M()):M(),V===0&&Object.is&&Object.is(L.deltaX,-0)){l=!0;return}s=L,i.axisMovement=Ju(i.axisMovement,_),i.lastAbsDelta=V,i.scrollPointsToMerge.push({axisDelta:_,timeStamp:B}),m(),h({axisDelta:_,isStart:!i.isStartPublished}),i.isStartPublished=!0,N()},m=function(){i.scrollPointsToMerge.length===MN?(i.scrollPoints.unshift({axisDeltaSum:i.scrollPointsToMerge.map(function(L){return L.axisDelta}).reduce(Ju),timeStamp:mN(i.scrollPointsToMerge.map(function(L){return L.timeStamp}))}),b(),i.scrollPointsToMerge.length=0,i.scrollPoints.length=1,i.isMomentum||E()):i.isStartPublished||x()},x=function(){i.axisVelocity=pN(i.scrollPointsToMerge).axisDelta.map(function(L){return L/i.willEndTimeout})},b=function(){var L=i.scrollPoints,C=L[0],_=L[1];if(!(!_||!C)){var B=C.timeStamp-_.timeStamp;if(B<=0){ed&&console.warn("invalid deltaTime");return}var V=C.axisDeltaSum.map(function(A){return A/B}),D=V.map(function(A,W){return A/(i.axisVelocity[W]||1)});i.axisVelocity=V,i.accelerationFactors.push(D),v(B)}},v=function(L){var C=Math.ceil(L/10)*10*1.2;i.isMomentum||(C=Math.max(100,C*2)),i.willEndTimeout=Math.min(1e3,Math.round(C))},w=function(L){return L===0?!0:L<=TN&&L>=EN},E=function(){if(i.accelerationFactors.length>=z1){if(l&&(l=!1,F1(i.axisVelocity)>=.2)){S();return}var L=i.accelerationFactors.slice(z1*-1),C=L.every(function(_){var B=!!_.reduce(function(D,A){return D&&D<1&&D===A?1:0}),V=_.filter(w).length===_.length;return B||V});C&&S(),i.accelerationFactors=L}},S=function(){i.isMomentum=!0},M=function(){i=W1(),i.isStarted=!0,i.startTime=Date.now(),c=void 0,l=!1},N=function(){var G;return function(){clearTimeout(G),G=setTimeout(T,i.willEndTimeout)}}(),T=function(L){L===void 0&&(L=!1),i.isStarted&&(i.isMomentum&&L?h({isEnding:!0,isMomentumCancel:!0}):h({isEnding:!0}),i.isMomentum=!1,i.isStarted=!1)},O=bN(f),F=O.observe,j=O.unobserve,H=O.disconnect;return d(e),Zr({on:n,off:r,observe:F,unobserve:j,disconnect:H,feedWheel:f,updateOptions:d})}var ON={active:!0,breakpoints:{},wheelDraggingClass:"is-wheel-dragging",forceWheelAxis:void 0,target:void 0};td.globalOptions=void 0;var NN=process.env.NODE_ENV!=="production";function td(e){e===void 0&&(e={});var t,n=function(){};function r(a,i){var s,l,c=i.mergeOptions,f=i.optionsAtMedia,d=c(ON,td.globalOptions),h=c(d,e);t=f(h);var g=a.internalEngine(),p=(s=t.target)!=null?s:a.containerNode().parentNode,m=(l=t.forceWheelAxis)!=null?l:g.options.axis,x=kN({preventWheelAction:m,reverseSign:[!0,!0,!1]}),b=x.observe(p),v=x.on("wheel",H),w=!1,E;function S(G){try{E=new MouseEvent("mousedown",G.event),j(E)}catch{return NN&&console.warn("Legacy browser requires events-polyfill (https://github.com/xiel/embla-carousel-wheel-gestures#legacy-browsers)"),n()}w=!0,N(),t.wheelDraggingClass&&p.classList.add(t.wheelDraggingClass)}function M(G){w=!1,j(F("mouseup",G)),T(),t.wheelDraggingClass&&p.classList.remove(t.wheelDraggingClass)}function N(){document.documentElement.addEventListener("mousemove",O,!0),document.documentElement.addEventListener("mouseup",O,!0),document.documentElement.addEventListener("mousedown",O,!0)}function T(){document.documentElement.removeEventListener("mousemove",O,!0),document.documentElement.removeEventListener("mouseup",O,!0),document.documentElement.removeEventListener("mousedown",O,!0)}function O(G){w&&G.isTrusted&&G.stopImmediatePropagation()}function F(G,L){var C,_;if(m===g.options.axis){var B=L.axisMovement;C=B[0],_=B[1]}else{var V=L.axisMovement;_=V[0],C=V[1]}return new MouseEvent(G,{clientX:E.clientX+C,clientY:E.clientY+_,screenX:E.screenX+C,screenY:E.screenY+_,movementX:C,movementY:_,button:0,bubbles:!0,cancelable:!0,composed:!0})}function j(G){a.containerNode().dispatchEvent(G)}function H(G){var L=G.axisDelta,C=L[0],_=L[1],B=m==="x"?C:_,V=m==="x"?_:C,D=G.isMomentum&&G.previous&&!G.previous.isMomentum,A=G.isEnding&&!G.isMomentum||D,W=Math.abs(B)>Math.abs(V);W&&!w&&!G.isMomentum&&S(G),w&&(A?M(G):j(F("mousemove",G)))}n=function(){b(),v(),T()}}var o={name:"wheelGestures",options:e,init:r,destroy:function(){return n()}};return o}const V1=u.createContext({}),_N=e=>{const[t,n]=u.useState(!0),[r,o]=u.useState(!0),a=u.useCallback(()=>{e&&e.scrollPrev()},[e]),i=u.useCallback(()=>{e&&e.scrollNext()},[e]),s=u.useCallback(l=>{n(!l.canScrollPrev()),o(!l.canScrollNext())},[]);return u.useEffect(()=>{e&&(s(e),e.on("reInit",s),e.on("select",s))},[e,s]),{prevBtnDisabled:t,nextBtnDisabled:r,onPrevButtonClick:a,onNextButtonClick:i}};function DN({children:e,options:t}){const[n,r]=Qu({align:"center",dragFree:!0,...t},[td()]),{prevBtnDisabled:o,nextBtnDisabled:a,onPrevButtonClick:i,onNextButtonClick:s}=_N(r),l=u.useMemo(()=>({emblaRef:n,emblaApi:r,prevBtnDisabled:o,nextBtnDisabled:a,onPrevButtonClick:i,onNextButtonClick:s}),[n,r,o,a,i,s]);return y.jsx(V1.Provider,{value:l,children:e})}const nd=()=>u.useContext(V1);function AN({children:e,...t}){return y.jsx(DN,{options:t,children:e})}function IN({children:e,prevButton:t,nextButton:n,className:r}){const{emblaRef:o}=nd();return y.jsx("div",{className:"rabbit-ds",children:y.jsxs("div",{className:"relative",children:[y.jsx("div",{className:"overflow-hidden",ref:o,children:y.jsx("div",{className:ge("flex touch-pan-y gap-3",r),children:e})}),y.jsx("div",{className:"flex absolute h-full top-1/2 -translate-y-1/2",children:t}),y.jsx("div",{className:"flex absolute h-full top-1/2 right-0 -translate-y-1/2",children:n})]})})}function LN({children:e=y.jsx(kr,{IconSVG:qh}),className:t,containerClassName:n,...r}){const{prevBtnDisabled:o,onPrevButtonClick:a}=nd();return o?y.jsx("span",{}):y.jsx("div",{className:ge("w-[100px] flex items-center justify-start pl-2 bg-gradient-to-r from-white",n),children:y.jsx(Qt,{size:"icon",variant:"text",className:ge("bg-transparent",t),onClick:a,...r,children:e})})}function FN({children:e=y.jsx(kr,{IconSVG:Kh}),className:t,containerClassName:n,...r}){const{nextBtnDisabled:o,onNextButtonClick:a}=nd();return o?y.jsx("span",{}):y.jsx("div",{className:ge("w-[100px] flex items-center justify-end pr-2 bg-gradient-to-l from-white",n),children:y.jsx(Qt,{size:"icon",variant:"text",className:ge("bg-transparent",t),onClick:a,...r,children:e})})}K.Add=SS,K.Avatar=Hn,K.AvatarFallback=yp,K.AvatarImage=Gn,K.Button=Qt,K.CardKPI=X9,K.Carousel=AN,K.CarouselContainer=IN,K.CarouselNextButton=FN,K.CarouselPrevButton=LN,K.Checkbox=xd,K.ChevronLeftCircle=qh,K.ChevronRightCircle=Kh,K.Chip=ny,K.ChipGroup=o8,K.ChipGroupItem=a8,K.CollapseNavigation=Xh,K.Company=CS,K.DateTime=Np,K.Dropdown=el,K.DropdownCheckboxItem=Va,K.DropdownContent=Ba,K.DropdownGroup=za,K.DropdownItem=Wa,K.DropdownLabel=Ga,K.DropdownPortal=bh,K.DropdownRadioGroup=ja,K.DropdownRadioItem=Ha,K.DropdownSeparator=ol,K.DropdownSub=yh,K.DropdownSubContent=rl,K.DropdownSubTrigger=nl,K.DropdownTrigger=tl,K.EngagementNudgeData=k8,K.GoalsNudgeData=$8,K.HistogramChart=K9,K.Home=ES,K.Icon=kr,K.Input=ry,K.KnowTeamNudgeData=N8,K.LeftNav=C1,K.LeftNavGroup=E1,K.LeftNavHome=T1,K.LeftNavItem=Gu,K.LeftNavItemDropdown=el,K.LeftNavItemDropdownCheckboxItem=Va,K.LeftNavItemDropdownContent=Ba,K.LeftNavItemDropdownGroup=za,K.LeftNavItemDropdownItem=Wa,K.LeftNavItemDropdownLabel=Ga,K.LeftNavItemDropdownPortal=bh,K.LeftNavItemDropdownRadioGroup=ja,K.LeftNavItemDropdownRadioItem=Ha,K.LeftNavItemDropdownSeparator=ol,K.LeftNavItemDropdownSub=yh,K.LeftNavItemDropdownSubContent=rl,K.LeftNavItemDropdownSubTrigger=nl,K.LeftNavItemDropdownTrigger=tl,K.LineChart=_9,K.ListItem=ep,K.ListItemLeftIcon=IS,K.ListItemRightIcon=FS,K.ListItemText=DS,K.MeshLogo=TS,K.NavButton=Jh,K.NavCollapseButtonL2=P1,K.NavGroupL2=g8,K.NavGroupTitleL2=v8,K.NavItemL2=b8,K.NavL2=m8,K.NavProfilePhoto=hp,K.NudgeAction=w8,K.NudgeCard=P8,K.NudgeCardItem=M8,K.Person=MS,K.ProgressBar=Nd,K.ProgressInfo=l8,K.ProgressSlider=Hy,K.RequestedFeedbackNudgeData=E8,K.ReviewsNudgeData=S8,K.SankeyChart=V9,K.Search=PS,K.Select=Q$,K.SelectContent=Ih,K.SelectGroup=J$,K.SelectItem=Fh,K.SelectLabel=Lh,K.SelectSeparator=jh,K.SelectTrigger=Ah,K.SelectValue=R$,K.SharePraiseNudgeData=C8,K.SplitButton=s8,K.SplitButtonDropdownCheckboxItem=x1,K.SplitButtonDropdownContent=S1,K.SplitButtonDropdownGroup=b1,K.SplitButtonDropdownItem=v1,K.SplitButtonDropdownLabel=w1,K.SplitButtonDropdownRadioGroup=y1,K.SplitButtonDropdownRadioItem=$1,K.Survey=Zh,K.Tabs=cp,K.TabsContent=fp,K.TabsList=up,K.TabsTrigger=dp,K.Tag=Za,K.Team=kS,K.Tooltip=Gh,K.TooltipContent=fl,K.TooltipPortal=Yh,K.TooltipProvider=Hh,K.TooltipTrigger=Uh,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})});
91
+ `}),Y.appendChild(z.createTextNode(st))}q.timeEnd("clone node"),he==null||he(Me),de!==!1&&ue(Me)&&(q.time("embed web font"),yield a_(Me,I),q.timeEnd("embed web font")),q.time("embed node"),rb(Me,I);const Pe=ee.length;let ke=0;const ze=()=>m(this,null,function*(){for(;;){const st=ee.pop();if(!st)break;try{yield st}catch(hn){je("Failed to run task",hn)}fe==null||fe(++ke,Pe)}});fe==null||fe(ke,Pe),yield Promise.all([...Array(4)].map(ze)),q.timeEnd("embed node"),Se==null||Se(Me);const Ie=p_(Me,I);return R&&Ie.insertBefore(R,Ie.children[0]),Y&&Ie.insertBefore(Y,Ie.children[0]),be&&Q1(I),$e==null||$e(Ie),Ie})}function p_($,P){const{width:I,height:z}=P,q=un(I,z,$.ownerDocument),ee=q.ownerDocument.createElementNS(q.namespaceURI,"foreignObject");return ee.setAttributeNS(null,"x","0%"),ee.setAttributeNS(null,"y","0%"),ee.setAttributeNS(null,"width","100%"),ee.setAttributeNS(null,"height","100%"),ee.append($),q.appendChild(ee),q}function ps($,P){return m(this,null,function*(){var I;const z=yield bt($,P),q=yield ob(z),ee=zt(q,z.isEnable("removeControlCharacter"));z.autoDestruct||(z.svgStyleElement=it(z.ownerDocument),z.svgDefsElement=(I=z.ownerDocument)==null?void 0:I.createElementNS(jt,"defs"),z.svgStyles.clear());const Y=Et(ee,q.ownerDocument);return yield dn(Y,z)})}function m_($,P){return m(this,null,function*(){const I=yield bt($,P),{log:z,type:q,quality:ee,dpi:Y}=I,R=yield ps(I);z.time("canvas to blob");const ce=yield Rr(R,q,ee);if(["image/png","image/jpeg"].includes(q)&&Y){const de=yield fr(ce.slice(0,33));let fe=new Uint8Array(de);return q==="image/png"?fe=O(fe,Y):q==="image/jpeg"&&(fe=x(fe,Y)),z.timeEnd("canvas to blob"),new Blob([fe,ce.slice(33)],{type:q})}return z.timeEnd("canvas to blob"),ce})}function oo($,P){return m(this,null,function*(){const I=yield bt($,P),{log:z,quality:q,type:ee,dpi:Y}=I,R=yield ps(I);z.time("canvas to data url");let ce=R.toDataURL(ee,q);if(["image/png","image/jpeg"].includes(ee)&&Y&&B&&V){const[de,fe]=ce.split(",");let be=0,he=!1;if(ee==="image/png"){const Ie=G(fe);Ie>=0?(be=Math.ceil((Ie+28)/3)*4,he=!0):be=33/3*4}else ee==="image/jpeg"&&(be=18/3*4);const Se=fe.substring(0,be),$e=fe.substring(be),Me=window.atob(Se),Pe=new Uint8Array(Me.length);for(let Ie=0;Ie<Pe.length;Ie++)Pe[Ie]=Me.charCodeAt(Ie);const ke=ee==="image/png"?O(Pe,Y,he):x(Pe,Y),ze=window.btoa(String.fromCharCode(...ke));ce=[de,",",ze,$e].join("")}return z.timeEnd("canvas to data url"),ce})}function ab($,P){return m(this,null,function*(){const I=yield bt($,P),{width:z,height:q,ownerDocument:ee}=I,Y=yield oo(I),R=un(z,q,ee),ce=R.ownerDocument.createElementNS(R.namespaceURI,"image");return ce.setAttributeNS(null,"href",Y),ce.setAttributeNS(null,"height","100%"),ce.setAttributeNS(null,"width","100%"),R.appendChild(ce),zt(R,I.isEnable("removeControlCharacter"))})}function g_($,P){return m(this,null,function*(){const I=yield bt($,P),{ownerDocument:z,width:q,height:ee,scale:Y,type:R}=I,ce=R==="image/svg+xml"?yield ab(I):yield oo(I),de=Et(ce,z);return de.width=Math.floor(q*Y),de.height=Math.floor(ee*Y),de.style.width=`${q}px`,de.style.height=`${ee}px`,de})}function v_($,P){return m(this,null,function*(){return oo(yield bt($,g(h({},P),{type:"image/jpeg"})))})}function b_($,P){return m(this,null,function*(){const I=yield bt($,P),z=yield ps(I);return z.getContext("2d").getImageData(0,0,z.width,z.height).data})}function y_($,P){return m(this,null,function*(){return oo(yield bt($,g(h({},P),{type:"image/png"})))})}function w_($,P){return m(this,null,function*(){return oo(yield bt($,g(h({},P),{type:"image/webp"})))})}n.createContext=us,n.destroyContext=Q1,n.domToBlob=m_,n.domToCanvas=ps,n.domToDataUrl=oo,n.domToForeignObjectSvg=ob,n.domToImage=g_,n.domToJpeg=v_,n.domToPixel=b_,n.domToPng=y_,n.domToSvg=ab,n.domToWebp=w_,n.loadMedia=Bt,n.waitUntilLoad=An,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(zu,zu.exports);var I8=zu.exports;const Bu=(e,t,n)=>{u.useImperativeHandle(t,()=>({download(){e.current&&I8.domToPng(e.current,{scale:5}).then(r=>{const o=document.createElement("a");o.download=`${n}.png`,o.href=r,o.click()})}}))},L8=({x:e,y:t,datum:n,size:r})=>v.jsx(Iu,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.light,r:r/2}),F8=({x:e,y:t,datum:n})=>v.jsx(Iu,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),ts={xAccessor:e=>e.x,yAccessor:e=>e.y},Rv=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,e1=10,j8=5,Wu=u.forwardRef(({nodes:e,height:t,width:n,xAxisValues:r,series:o,xAxisLabel:a,yAxisLabel:i,xAxisDomain:s,yAxisDomain:l,xAxisUnitSymbol:c,yAxisUnitSymbol:f,tooltipTitle:d,mode:h,xAxisCharLimit:g,connectNulls:p=!1,maxNodesInMiniMode:m=j8,tooltipStackCharLimit:x=e1},y)=>{const[b,w]=u.useState(e.map(M=>M.id)),E=u.useRef(null);Bu(E,y,`${a}-${i}-LineChart`);const S=u.useMemo(()=>o.map((M,O)=>({points:M.data.map((F,j)=>({x:r[j],y:F,nodeId:M.id,color:rt(O)}))})).slice(0,h==="mini"?m:o.length),[r,o,h,m]),T=u.useMemo(()=>h==="full"?S.filter(M=>b.includes(M.points[0].nodeId)):S,[S,b,h]),N=u.useMemo(()=>Math.floor((n-(h==="mini"?0:150))/(r.length*8)),[n,r,h]);return v.jsxs("div",{ref:E,id:"line-chart",className:"bg-white flex flex-col rabbit-ds",style:{width:n,height:t},children:[v.jsxs("div",{className:"w-full min-w-0 min-h-0 h-full flex flex-row",children:[v.jsx("div",{className:"w-full min-w-0 min-h-0 h-full",children:v.jsxs(Xr,{margin:{top:10,left:50,right:50,bottom:50},xScale:{type:"band",nice:!0,...s&&{domain:s}},yScale:{type:"linear",nice:!0,...l&&{domain:l}},children:[v.jsx(nk,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),v.jsx(mv,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:6,tickFormat:M=>c?Rv(M,c.symbol,c.position):M,rangePadding:{end:10},tickComponent:M=>v.jsx(Lu,{textLabel:M.formattedValue||"",x:M.x,y:M.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},axisCharLimit:g??N}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),v.jsx(mv,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:M=>f?Rv(M,f.symbol,f.position):M,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),T.map((M,O)=>v.jsxs(v.Fragment,{children:[v.jsx(A8,{data:M.points,xAccessor:ts.xAccessor,yAccessor:ts.yAccessor,connectNulls:p}),v.jsx(T8,{dataKey:`Performance Management ${O}`,data:M.points,size:8,renderGlyph:L8,xAccessor:ts.xAccessor,yAccessor:ts.yAccessor})]})),v.jsx(Ev,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:F8,renderTooltip:({tooltipData:M})=>{var j,H,G,L,C,_;const O=e.find(B=>{var V;return B.id===((V=M==null?void 0:M.nearestDatum)==null?void 0:V.datum.nodeId)}),F=((j=M==null?void 0:M.nearestDatum)==null?void 0:j.datum)&&((H=M==null?void 0:M.nearestDatum)==null?void 0:H.datum.x.length)<x;return v.jsx(Jv,{xValue:(G=M==null?void 0:M.nearestDatum)==null?void 0:G.datum.x,yValue:(L=M==null?void 0:M.nearestDatum)==null?void 0:L.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!F,tooltipTitle:d,legendValue:(O==null?void 0:O.name)||"",legendDarkColor:((C=M==null?void 0:M.nearestDatum)==null?void 0:C.datum.color.dark)||rt(0).dark,legendLightColor:((_=M==null?void 0:M.nearestDatum)==null?void 0:_.datum.color.light)||rt(0).light})}})]})}),h==="full"&&v.jsxs("div",{className:"w-64 p-4 bg-zinc-100 rounded-lg flex-col justify-start items-start gap-0.5 inline-flex text-xs grow-0 shrink-0 basis-auto",children:[v.jsxs("div",{className:"text-sm font-semibold pb-2",children:[v.jsx("span",{className:"pr-1",children:a}),"(",S.length,")"]}),S.map(M=>{const O=e.find(F=>F.id===M.points[0].nodeId);return O&&v.jsxs("div",{className:"flex justify-between items-center gap-1 py-1 w-full",children:[v.jsxs("div",{className:"flex justify-between items-center",children:[v.jsx("div",{style:{backgroundColor:M.points[0].color.light,borderColor:M.points[0].color.dark},className:"h-3 w-3 rounded-full border mr-1"}),O.name]}),v.jsx("div",{className:"flex items-center",children:v.jsx(Ed,{checked:b.includes(O.id),onCheckedChange:F=>{let j=[...b];F?j=[...b,O.id]:j.splice(b.indexOf(O.id),1),w(j)}})})]},O.id)})]})]}),h==="mini"&&v.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] text-[#666666] font-semibold",children:S.map(M=>{const O=e.find(F=>F.id===M.points[0].nodeId);return v.jsxs("div",{className:"flex justify-center items-center gap-1",children:[v.jsx("div",{style:{backgroundColor:M.points[0].color.light,borderColor:M.points[0].color.dark},className:"h-3 w-3 rounded-full border"}),O==null?void 0:O.name]},O==null?void 0:O.id)})})]})}),z8={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:e1,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};Wu.defaultProps=z8,Wu.displayName="LineBase";const t1=u.forwardRef((e,t)=>v.jsx(es,{debounceTime:10,children:({width:n,height:r})=>v.jsx(Wu,{ref:t,width:n,height:r,...e})}));t1.displayName="LineChart";const B8=t1;function n1(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}function W8(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}return n}function Vu(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&(n+=o)}return n}function V8(e,t){return e.sourceLinks.length?e.depth:t-1}function ns(e){return function(){return e}}function r1(e,t){return rs(e.source,t.source)||e.index-t.index}function o1(e,t){return rs(e.target,t.target)||e.index-t.index}function rs(e,t){return e.y0-t.y0}function Hu(e){return e.value}function H8(e){return e.index}function G8(e){return e.nodes}function U8(e){return e.links}function a1(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function i1({nodes:e}){for(const t of e){let n=t.y0,r=n;for(const o of t.sourceLinks)o.y0=n+o.width/2,n+=o.width;for(const o of t.targetLinks)o.y1=r+o.width/2,r+=o.width}}function Y8(){let e=0,t=0,n=1,r=1,o=24,a=8,i,s=H8,l=V8,c,f,d=G8,h=U8,g=6;function p(){const C={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return m(C),x(C),y(C),b(C),S(C),i1(C),C}p.update=function(C){return i1(C),C},p.nodeId=function(C){return arguments.length?(s=typeof C=="function"?C:ns(C),p):s},p.nodeAlign=function(C){return arguments.length?(l=typeof C=="function"?C:ns(C),p):l},p.nodeSort=function(C){return arguments.length?(c=C,p):c},p.nodeWidth=function(C){return arguments.length?(o=+C,p):o},p.nodePadding=function(C){return arguments.length?(a=i=+C,p):a},p.nodes=function(C){return arguments.length?(d=typeof C=="function"?C:ns(C),p):d},p.links=function(C){return arguments.length?(h=typeof C=="function"?C:ns(C),p):h},p.linkSort=function(C){return arguments.length?(f=C,p):f},p.size=function(C){return arguments.length?(e=t=0,n=+C[0],r=+C[1],p):[n-e,r-t]},p.extent=function(C){return arguments.length?(e=+C[0][0],n=+C[1][0],t=+C[0][1],r=+C[1][1],p):[[e,t],[n,r]]},p.iterations=function(C){return arguments.length?(g=+C,p):g};function m({nodes:C,links:_}){for(const[V,D]of C.entries())D.index=V,D.sourceLinks=[],D.targetLinks=[];const B=new Map(C.map((V,D)=>[s(V,D,C),V]));for(const[V,D]of _.entries()){D.index=V;let{source:A,target:W}=D;typeof A!="object"&&(A=D.source=a1(B,A)),typeof W!="object"&&(W=D.target=a1(B,W)),A.sourceLinks.push(D),W.targetLinks.push(D)}if(f!=null)for(const{sourceLinks:V,targetLinks:D}of C)V.sort(f),D.sort(f)}function x({nodes:C}){for(const _ of C)_.value=_.fixedValue===void 0?Math.max(Vu(_.sourceLinks,Hu),Vu(_.targetLinks,Hu)):_.fixedValue}function y({nodes:C}){const _=C.length;let B=new Set(C),V=new Set,D=0;for(;B.size;){for(const A of B){A.depth=D;for(const{target:W}of A.sourceLinks)V.add(W)}if(++D>_)throw new Error("circular link");B=V,V=new Set}}function b({nodes:C}){const _=C.length;let B=new Set(C),V=new Set,D=0;for(;B.size;){for(const A of B){A.height=D;for(const{source:W}of A.targetLinks)V.add(W)}if(++D>_)throw new Error("circular link");B=V,V=new Set}}function w({nodes:C}){const _=n1(C,D=>D.depth)+1,B=(n-e-o)/(_-1),V=new Array(_);for(const D of C){const A=Math.max(0,Math.min(_-1,Math.floor(l.call(null,D,_))));D.layer=A,D.x0=e+A*B,D.x1=D.x0+o,V[A]?V[A].push(D):V[A]=[D]}if(c)for(const D of V)D.sort(c);return V}function E(C){const _=W8(C,B=>(r-t-(B.length-1)*i)/Vu(B,Hu));for(const B of C){let V=t;for(const D of B){D.y0=V,D.y1=V+D.value*_,V=D.y1+i;for(const A of D.sourceLinks)A.width=A.value*_}V=(r-V+i)/(B.length+1);for(let D=0;D<B.length;++D){const A=B[D];A.y0+=V*(D+1),A.y1+=V*(D+1)}H(B)}}function S(C){const _=w(C);i=Math.min(a,(r-t)/(n1(_,B=>B.length)-1)),E(_);for(let B=0;B<g;++B){const V=Math.pow(.99,B),D=Math.max(1-V,(B+1)/g);N(_,V,D),T(_,V,D)}}function T(C,_,B){for(let V=1,D=C.length;V<D;++V){const A=C[V];for(const W of A){let ne=0,Q=0;for(const{source:oe,value:ue}of W.targetLinks){let X=ue*(W.layer-oe.layer);ne+=G(oe,W)*X,Q+=X}if(!(Q>0))continue;let re=(ne/Q-W.y0)*_;W.y0+=re,W.y1+=re,j(W)}c===void 0&&A.sort(rs),M(A,B)}}function N(C,_,B){for(let V=C.length,D=V-2;D>=0;--D){const A=C[D];for(const W of A){let ne=0,Q=0;for(const{target:oe,value:ue}of W.sourceLinks){let X=ue*(oe.layer-W.layer);ne+=L(W,oe)*X,Q+=X}if(!(Q>0))continue;let re=(ne/Q-W.y0)*_;W.y0+=re,W.y1+=re,j(W)}c===void 0&&A.sort(rs),M(A,B)}}function M(C,_){const B=C.length>>1,V=C[B];F(C,V.y0-i,B-1,_),O(C,V.y1+i,B+1,_),F(C,r,C.length-1,_),O(C,t,0,_)}function O(C,_,B,V){for(;B<C.length;++B){const D=C[B],A=(_-D.y0)*V;A>1e-6&&(D.y0+=A,D.y1+=A),_=D.y1+i}}function F(C,_,B,V){for(;B>=0;--B){const D=C[B],A=(D.y1-_)*V;A>1e-6&&(D.y0-=A,D.y1-=A),_=D.y0-i}}function j({sourceLinks:C,targetLinks:_}){if(f===void 0){for(const{source:{sourceLinks:B}}of _)B.sort(o1);for(const{target:{targetLinks:B}}of C)B.sort(r1)}}function H(C){if(f===void 0)for(const{sourceLinks:_,targetLinks:B}of C)_.sort(o1),B.sort(r1)}function G(C,_){let B=C.y0-(C.sourceLinks.length-1)*i/2;for(const{target:V,width:D}of C.sourceLinks){if(V===_)break;B+=D+i}for(const{source:V,width:D}of _.targetLinks){if(V===C)break;B-=D}return B}function L(C,_){let B=_.y0-(_.targetLinks.length-1)*i/2;for(const{source:V,width:D}of _.targetLinks){if(V===C)break;B+=D+i}for(const{target:V,width:D}of C.sourceLinks){if(V===_)break;B-=D}return B}return p}function q8({tooltipData:e,fromLabel:t,toLabel:n,weightLabel:r,tooltipTitle:o}){var s,l,c,f;const a=e.source,i=e.target;return v.jsxs(qe,{tooltipTitle:o,children:[v.jsx(qe.Item,{label:t,value:a.name}),v.jsx(qe.Item,{label:n,value:i.name}),v.jsx(qe.Item,{label:r,value:e.weight.toString()}),v.jsx(qe.Legend,{value:a.name,darkColor:(s=rt(a.index||0))==null?void 0:s.dark,lightColor:(l=rt(a.index||0))==null?void 0:l.light}),v.jsx(qe.Legend,{value:i.name,darkColor:(c=rt(i.index||0))==null?void 0:c.dark,lightColor:(f=rt(i.index||0))==null?void 0:f.light})]})}const s1=80,l1=20,K8=30,X8=12,c1=u.forwardRef(({height:e,width:t,tooltipTitle:n,nodes:r,links:o,groups:a,weightLabel:i},s)=>{const l=u.useMemo(()=>Y8().nodeId(C=>C.id).nodeWidth(X8).nodePadding(K8).nodeAlign(C=>C.group),[]),c=u.useRef(null);Bu(c,s,`${n}-SankeyChart`);const[f,d]=u.useState(""),[h,g]=u.useState(null),{tooltipData:p,tooltipLeft:m,tooltipTop:x,tooltipOpen:y,showTooltip:b,hideTooltip:w}=Qc(),{containerBounds:E,containerRef:S,TooltipInPortal:T}=ou({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),N=u.useMemo(()=>l.extent([[s1,l1],[t-s1,e-l1-50]])({nodes:r,links:o.map(C=>({...C,value:Number(C.weight)}))}),[e,t,l,r,o]),M=u.useMemo(()=>Math.max(...N.nodes.map(C=>C.depth??0)),[N]),O=u.useMemo(()=>{const C={};let _=-1/0;return N.nodes.forEach(B=>{const{group:V}=B;C[V]?(C[V].x=Math.max(C[V].x??-1/0,B.x0??-1/0),C[V].y=Math.max(C[V].y??-1/0,B.y1??-1/0)):(C[V]={},C[V].x=B.x0,C[V].y=B.y1),_=Math.max(_,C[V].y??-1/0),C[V].y=_}),Object.keys(C).forEach(B=>{C[B].y=_}),C},[N]),F=u.useCallback(C=>{const _=l.nodeId()(C);d(f===_?"":_)},[f,l]),j=u.useCallback(()=>{d(""),g(null)},[]),H=u.useMemo(()=>f===""&&h===null?new Set:new Set(N.links.filter(C=>l.nodeId()(C.source)===f||l.nodeId()(C.target)===f||(h==null?void 0:h.source)===C.source&&(h==null?void 0:h.target)===C.target)),[f,N,h,l]),G=u.useCallback((C,_)=>{const B=("clientX"in C?C.clientX:0)-E.left,V=("clientY"in C?C.clientY:0)-E.top;g(_),B&&V&&b({tooltipLeft:B,tooltipTop:V,tooltipData:_})},[b,E]),L=u.useCallback(()=>{j(),w()},[j,w]);return v.jsxs("div",{ref:c,className:"bg-white w-min h-min rabbit-ds",id:"sankey-chart",children:[v.jsxs("svg",{height:e,width:t,ref:S,children:[v.jsx("g",{children:N.links.map(C=>v.jsx(w4,{data:C,source:_=>({x:_.source.x1,y:_.y0}),target:_=>({x:_.target.x0,y:_.y1}),x:_=>_.x??0,y:_=>_.y??0,fill:"none",pointerEvents:"stroke",onMouseLeave:()=>L(),onMouseMove:_=>G(_,C),stroke:rt(C.source.index||0).light,strokeWidth:C.width,strokeOpacity:H.has(C)?.7:.4},C.index))}),v.jsx("g",{children:N.nodes.map(C=>{var _,B,V;return v.jsx("g",{children:v.jsx(f4,{x:C.x0??0,height:(C.y1??0)-(C.y0??0)+10,width:(C.x1??0)-(C.x0??0),y:(C.y0??0)-5,onMouseEnter:()=>F(C),onMouseLeave:()=>j(),radius:2,fill:f===C.id?(_=rt(C.index||0))==null?void 0:_.dark:(B=rt(C.index||0))==null?void 0:B.light,stroke:(V=rt(C.index||0))==null?void 0:V.dark,all:!0})},C.index)})}),v.jsx("g",{children:a.map(C=>v.jsx(Lu,{axisCharLimit:20,x:O[C.id].x??0,y:(O[C.id].y??0)+40,textLabel:C.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:"middle",fill:"#666666"}},C.id))}),v.jsxs("g",{children:[N.nodes.map(C=>v.jsx(Lu,{axisCharLimit:8,x:C.depth===M?(C.x1??0)+10:(C.x0??0)-10,y:(C.y0??0)+((C.y1??0)-(C.y0??0))/2,textLabel:C.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:C.depth===M?"start":"end",fill:"#666666"}},C.index)),N.nodes.map(C=>C.value&&v.jsx(Ll,{x:C.depth===M?(C.x1??0)+10:(C.x0??0)-10,y:(C.y0??0)+((C.y1??0)-(C.y0??0))/2+16,style:{fontSize:10,fontWeight:400,textAnchor:C.depth===M?"start":"end",fill:"#666666"},children:`(${C.value.toString()})`},C.index))]})]}),y&&p&&v.jsx(T,{top:x,left:m,unstyled:!0,applyPositionStyle:!0,children:v.jsx(q8,{tooltipData:p,fromLabel:`From: ${a[p.source.group].name}`,toLabel:`To: ${a[p.target.group].name}`,weightLabel:i,tooltipTitle:n})},Math.random())]})});c1.displayName="Sankey";const u1=u.forwardRef((e,t)=>v.jsx(es,{debounceTime:10,children:({width:n,height:r})=>n&&r&&v.jsx(c1,{ref:t,width:n,height:r,...e})}));u1.displayName="SankeyChart";const Z8=u1;function Q8(e){return"bandwidth"in e?e.bandwidth():0}var J8=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function Gu(){return Gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gu.apply(this,arguments)}function R8(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function d1(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.scale,i=e.width,s=e.stroke,l=s===void 0?"#eaf0f6":s,c=e.strokeWidth,f=c===void 0?1:c,d=e.strokeDasharray,h=e.className,g=e.children,p=e.numTicks,m=p===void 0?10:p,x=e.lineStyle,y=e.offset,b=e.tickValues,w=R8(e,J8),E=b??Oc(a,m),S=(y??0)+Q8(a)/2,T=E.map(function(N,M){var O,F=((O=kc(a(N)))!=null?O:0)+S;return{index:M,from:new Cn({x:0,y:F}),to:new Cn({x:i,y:F})}});return u.createElement(Kn,{className:ct("visx-rows",h),top:n,left:o},g?g({lines:T}):T.map(function(N){var M=N.from,O=N.to,F=N.index;return u.createElement(C4,Gu({key:"row-line-"+F,from:M,to:O,stroke:l,strokeWidth:f,strokeDasharray:d,style:x},w))}))}d1.propTypes={tickValues:se.array,width:se.number.isRequired};function f1({xValue:e,yValue:t,tooltipTitle:n,xAxisLabel:r,yAxisLabel:o,legendValue:a,legendDarkColor:i,legendLightColor:s}){const l=e==null?void 0:e.toString(),c=t==null?void 0:t.toString();return v.jsxs(qe,{tooltipTitle:n,showSideBySide:!0,children:[v.jsx(qe.Item,{label:r,value:l}),v.jsx(qe.Item,{label:o,value:c}),v.jsx(qe.Legend,{value:a,darkColor:i,lightColor:s})]})}f1.defaultProps={xValue:void 0,yValue:void 0};const h1=20,p1=50,Uu=80,os=50,e9=10,t9=25,Yu=u.forwardRef(({tooltipTitle:e,xAxisLabel:t,yAxisLabel:n,domain:r,binCount:o,data:a,width:i,height:s,maxBinCount:l=t9,minBinCount:c=e9,integerBins:f=!1,integerYAxis:d=!1},h)=>{const g=u.useMemo(()=>gi(a),[a]),{histogramDomain:p,threshold:m,thresholdInteger:x}=u.useMemo(()=>{const D=g[0]??0,A=D===g[1]?c+D:g[1]??0,W=A-D>c?A:c+D,ne=Math.min(Math.max(A-D,c),l),Q=Math.floor(g[0]??0),re=Math.ceil(W);return{histogramDomain:r||(f?[Q,re]:[D,A]),threshold:ne,thresholdInteger:Math.ceil(ne)}},[g,r,f,l,c]),y=u.useMemo(()=>Ko({domain:p,range:[os,i-p1],round:!0,nice:!0}),[p,i]),b=u.useMemo(()=>EM().domain(y.domain()).thresholds(o||(f?x:m))(a),[y,o,a,m,x,f]),w=u.useMemo(()=>Ko({domain:[0,Vl(b,D=>D.length)??0],range:[s-Uu,h1],round:!0,nice:!0}),[b,s]),E=u.useMemo(()=>w.ticks().filter(D=>d?Number.isInteger(D):D),[d,w]),S=u.useRef(null);Bu(S,h,`${t}-${n}-Histogram`);const{tooltipData:T,tooltipLeft:N,tooltipTop:M,tooltipOpen:O,showTooltip:F,hideTooltip:j}=Qc(),{containerBounds:H,containerRef:G,TooltipInPortal:L}=ou({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),C=i-os-p1,_=s-h1-Uu-100,B=u.useCallback((D,A)=>{const W=("clientX"in D?D.clientX:0)-H.left,ne=("clientY"in D?D.clientY:0)-H.top;W&&ne&&F({tooltipLeft:W,tooltipTop:ne,tooltipData:A})},[F,H]),V=u.useCallback(()=>{j()},[j]);return v.jsxs("div",{className:"bg-white flex flex-col rabbit-ds",style:{width:i,height:s},ref:S,children:[v.jsxs("svg",{width:i,height:s,ref:G,children:[v.jsx(Kc,{orientation:"bottom",scale:y,top:s-Uu,hideTicks:!0,numTicks:6,stroke:"#CFD7DF",strokeWidth:1,rangePadding:{end:10},label:`${t} ➔`,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),v.jsx(Kc,{orientation:"left",scale:w,left:os,hideTicks:!0,strokeWidth:1,stroke:"#CFD7DF",tickFormat:d?Ii("d"):void 0,tickValues:E,label:`${n} ➔`,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"end"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),v.jsxs(Kn,{children:[v.jsx(d1,{scale:w,width:C,height:_,left:os,top:0,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),b.map(D=>{const A=Math.abs(w(0)-w(D.length)),W=Math.abs(y(D.x1??0)-y(D.x0??0));return v.jsx("g",{children:v.jsx(l4,{x:y(D.x0??0),y:w(D.length),width:W,height:A&&A-1,fill:rt(0).light,stroke:rt(0).dark,strokeWidth:1,onMouseMove:ne=>B(ne,D),onMouseLeave:()=>V()})},Math.random())})]})]}),O&&T&&v.jsx(L,{top:M,left:N,unstyled:!0,applyPositionStyle:!0,children:v.jsx(f1,{xAxisLabel:t,xValue:`${T.x0} to ${T.x1}`,yAxisLabel:n,yValue:T.length,tooltipTitle:e,legendValue:n,legendDarkColor:rt(0).dark,legendLightColor:rt(0).light})},Math.random()),w.domain()[2]]})}),m1=u.forwardRef((e,t)=>v.jsx(es,{debounceTime:10,children:({width:n,height:r})=>v.jsx(Yu,{ref:t,width:n,height:r,...e})}));Yu.defaultProps={domain:void 0,binCount:void 0,integerBins:!1,integerYAxis:!1},Yu.displayName="HistogramBase",m1.displayName="HistogramChart";const n9=m1;function r9({count:e,totalCount:t,title:n,subTitle:r,className:o,unstyledDimension:a=!1,style:i}){const s="max-w-[336px] min-h-[96px] min-w-[200px]";return v.jsxs("div",{className:me("rabbit-ds box-border px-2 py-4 bg-white rounded-lg shadow flex-col justify-center items-start gap-1 inline-flex",o,!a&&s),style:i,children:[v.jsxs("div",{className:"self-stretch px-3 py-1 flex items-baseline",children:[v.jsx("div",{className:"text-zinc-800 text-2xl font-semibold",children:e}),t&&t>0?v.jsxs("div",{className:"text-stone-500 text-xs font-normal",children:["/",t]}):null]}),v.jsx("div",{className:"self-stretch px-3 justify-start items-center gap-2 inline-flex",children:v.jsxs("div",{className:"grow shrink basis-0 flex-col justify-start items-start gap-0.5 inline-flex",children:[v.jsx("div",{className:"self-stretch justify-start items-start gap-2.5 inline-flex",children:v.jsx("div",{className:"grow shrink basis-0 text-zinc-800 text-xs font-semibold leading-none",children:n})}),r&&v.jsx("div",{className:"self-stretch justify-start py-2 items-center gap-1 inline-flex",children:v.jsx("div",{className:"grow shrink basis-0 text-stone-500 text-xs font-normal leading-none",children:r})})]})})]})}const as="ToggleGroup",[g1,z_]=ht(as,[Cr]),v1=Cr(),o9=u.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return u.createElement(a9,J({},o,{ref:t}))}if(n==="multiple"){const o=r;return u.createElement(i9,J({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${as}\``)}),[b1,y1]=g1(as),a9=u.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=wt({prop:n,defaultProp:r,onChange:o});return u.createElement(b1,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:u.useCallback(()=>s(""),[s])},u.createElement(w1,J({},a,{ref:t})))}),i9=u.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=wt({prop:n,defaultProp:r,onChange:o}),l=u.useCallback(f=>s((d=[])=>[...d,f]),[s]),c=u.useCallback(f=>s((d=[])=>d.filter(h=>h!==f)),[s]);return u.createElement(b1,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c},u.createElement(w1,J({},a,{ref:t})))}),[s9,l9]=g1(as),w1=u.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,c=v1(n),f=br(i),d={role:"group",dir:f,...l};return u.createElement(s9,{scope:n,rovingFocus:o,disabled:r},o?u.createElement(Ys,J({asChild:!0},c,{orientation:a,dir:f,loop:s}),u.createElement(ye.div,J({},d,{ref:t}))):u.createElement(ye.div,J({},d,{ref:t})))}),qu="ToggleGroupItem",c9=u.forwardRef((e,t)=>{const n=y1(qu,e.__scopeToggleGroup),r=l9(qu,e.__scopeToggleGroup),o=v1(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=u.useRef(null);return r.rovingFocus?u.createElement(qs,J({asChild:!0},o,{focusable:!i,active:a,ref:l}),u.createElement(x1,J({},s,{ref:t}))):u.createElement(x1,J({},s,{ref:t}))}),x1=u.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=y1(qu,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return u.createElement(Md,J({},s,o,{ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),u9=o9,d9=c9;function f9({children:e,...t}){return v.jsx(u9,{className:"flex gap-2",...t,children:e})}function h9({value:e,disabled:t,selected:n,icon:r,label:o,count:a,...i}){return v.jsx(d9,{asChild:!0,value:e,...i,children:v.jsx("button",{type:"button",className:me("rabbit-ds h-7 flex-col w-auto p-0 border border-solid rounded-full justify-center items-center inline-flex hover:cursor-pointer focus:outline-1 focus:outline-offset-2","data-[state=off]:border-gray-100 data-[state=off]:bg-gray-100 data-[state=off]:text-dove-gray-500","data-[state=on]:border-sky-800 data-[state=on]:bg-sky-100 data-[state=on]:text-sky-800"),children:v.jsxs("div",{className:"px-4 py-1 rounded-full flex-row justify-start items-center gap-2.5 flex",children:[r?v.jsx("div",{className:"w-4 h-4 justify-center items-center flex",children:r}):null,v.jsxs("div",{className:"text-sm leading-tight font-semibold",children:[o?v.jsx("span",{children:o}):null," ",a?v.jsxs("span",{children:["(",a,")"]}):null]})]})})})}const $1=vo,S1=Pr,C1=Ha,E1=Ka,M1=Ya,T1=qa,P1=u.forwardRef(({className:e,children:t,align:n="end",...r},o)=>v.jsx(go,{ref:o,align:n,...r,children:t}));P1.displayName="SplitButtonDropdownContent";const p9=Ye("",{variants:{size:{normal:"icon",small:"smallIcon",icon:"icon",smallIcon:"smallIcon"}},defaultVariants:{size:"normal"}});function m9({children:e,size:t,status:n,variant:r,...o}){return v.jsx("div",{className:"rabbit-ds flex flex-row",children:v.jsxs(Wa,{children:[v.jsx(Pt,{variant:r,status:n,size:t,...o,className:"rounded-r-none",children:e}),v.jsx(Va,{asChild:!0,children:v.jsx(Pt,{variant:r,status:n,className:"rounded-l-none border-l-0",size:p9({size:t}),children:v.jsx(bs,{})})})]})})}$1.displayName="SplitButtonDropdownItem",S1.displayName="SplitButtonDropdownGroup",C1.displayName="SplitButtonDropdownRadioGroup",E1.displayName="SplitButtonDropdownLabel",M1.displayName="SplitButtonDropdownCheckboxItem",T1.displayName="SplitButtonDropdownRadioItem";function g9({status:e=Ve.ON_TRACK,startValue:t=0,targetValue:n=100,achievedValue:r=0,percentageToDisplay:o=0,metricName:a="",measureBy:i={isPrefix:!1,symbol:""}}){const s=a.length>35?`${a.slice(0,35)}...`:a,l=va(r),c=va(t),f=va(n);return v.jsxs("div",{className:"rabbit-ds w-full px-3 py-2 flex-col justify-center items-start inline-flex min-w-[304px] box-border",children:[v.jsx("div",{className:"w-full py-0.5 justify-start items-center gap-1 inline-flex h-4",children:v.jsx("div",{className:"text-right text-xs font-normal text-[#666666] leading-3",children:s})}),v.jsxs("div",{className:"w-full self-stretch justify-start items-start gap-1 inline-flex h-5",children:[v.jsx("div",{className:"w-9/12 h-5 justify-start items-start flex",children:v.jsx(Ld,{progressInPercentage:o,status:e})}),v.jsx("div",{className:"h-[20px] justify-start items-center gap-1 inline-flex grow",children:v.jsx("div",{className:" text-sm text-[#333333] leading-5 font-[590] w-full text-left ",children:i.isPrefix?i.symbol+l:l+i.symbol})})]}),v.jsxs("div",{className:"w-9/12 justify-between items-center inline-flex",children:[v.jsx("div",{className:"h-6 py-1 justify-start items-center gap-1 inline-flex box-border",children:v.jsx("div",{className:"grow shrink basis-0 h-4 justify-start items-start gap-2.5 inline-flex",children:v.jsx("div",{className:" text-[10px] leading-4 text-[#666666] font-[590] ",children:i.isPrefix?i.symbol+c:c+i.symbol})})}),v.jsx("div",{className:"h-6 py-1 justify-start items-center gap-1 inline-flex box-border",children:v.jsx("div",{className:"grow shrink basis-0 h-4 justify-end items-start gap-2.5 inline-flex",children:v.jsx("div",{className:"text-[10px] leading-4 text-[#666666] font-[590] ",children:i.isPrefix?i.symbol+f:f+i.symbol})})})]})]})}const v9=Ye(["rabbit-ds w-full h-full py-2 px-3"],{variants:{variant:{default:""},defaultVariant:{variant:"default"}}});function b9(){return v.jsx("div",{className:"w-full h-full relative",children:v.jsxs("div",{className:"w-full h-full left-0 top-0 absolute bg-gradient-to-b from-[#E9F5F8] via-[#F7F7F7] to-[#A1E7FC] shadow-[-4px_0px_4px_0px_rgba(0, 0, 0, 0.05)_inset]",children:[v.jsx("div",{className:"absolute inset-0 w-full h-full",style:{background:"linear-gradient(180deg, rgba(231, 244, 247, 0.80) 0%, rgba(185, 239, 254, 0.80) 40%, rgba(136, 226, 252, 0.80) 100%)",boxShadow:"-2px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),v.jsx("div",{className:"absolute inset-0 w-full h-full mix-blend-darken",style:{background:"linear-gradient(180deg, #DEEAED 0%, #F6F6F6 40%, #F5F7F7 100%)",boxShadow:"-2px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),v.jsx("div",{className:"absolute inset-0 w-full h-full mix-blend-hard-light",style:{background:"linear-gradient(180deg, #DEEAED 0%, #F6F6F6 40%, #F5F7F7 100%)",boxShadow:"-4px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),v.jsx("div",{className:"absolute inset-0 w-full h-full opacity-60 mix-blend-multiply",style:{background:"linear-gradient(89deg, #A0E7FC 0%, #A4E8FC 19%, #F5F7F7 100%)",boxShadow:"-4px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),v.jsx("div",{className:"absolute inset-0 w-full h-full opacity-90 mix-blend-darken",style:{background:"linear-gradient(180deg, #AAE9FC 0%, #D7F1F8 40%, #F4FDFF 100%)",backdropFilter:"blur(4px)"}}),v.jsx("div",{className:"absolute inset-0 w-full h-full mix-blend-hard-light",style:{background:"linear-gradient(87deg, rgba(233, 245, 248, 0.60) 0%, rgba(247, 247, 247, 0.60) 19%, rgba(247, 247, 247, 0.60) 38%, rgba(161, 231, 252, 0.60) 100%)",boxShadow:"-4px 0px 4px rgba(0, 0, 0, 0.05) inset"}})]})})}const k1=u.forwardRef(({className:e,children:t,...n},r)=>v.jsxs("div",{className:"rabbit-ds w-20 h-screen relative",children:[v.jsx("div",{className:"w-full h-full absolute inset",children:v.jsx(b9,{})}),v.jsx("nav",{className:me(v9({className:e})),ref:r,...n,children:t})]}));k1.displayName="LeftNav";const Ku=u.forwardRef(({children:e,asChild:t=!1,...n},r)=>{const o=t?Qt:"div";return v.jsx(o,{ref:r,className:"rabbit-ds",...n,children:e})});Ku.displayName="LeftNavItem",Ku.defaultProps={asChild:!1};const y9=Ye(["w-full flex-col justify-start items-center gap-1 inline-flex"],{variants:{variant:{top:"order-1 mb-auto",bottom:"order-2 mt-auto"},defaultVariant:{variant:"top"}}}),O1=u.forwardRef(({children:e,align:t,...n},r)=>v.jsx("div",{ref:r,className:me(y9({variant:t})),...n,children:e}));O1.displayName="LeftNavItem";const N1=u.forwardRef((e,t)=>v.jsx(Pt,{ref:t,className:"rabbit-ds w-14 h-14 z-20",variant:"outline",children:v.jsxs("svg",{className:"z-20 w-6 h-6",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v.jsx("g",{clipPath:"url(#clip0_1397_29183)",children:v.jsxs("g",{clipPath:"url(#clip1_1397_29183)",filter:"url(#filter0_d_1397_29183)",children:[v.jsx("path",{d:"M22.1654 14.8101C22.1654 15.8326 21.3386 16.6614 20.3187 16.6614C19.2988 16.6614 18.472 15.8326 18.472 14.8101C18.472 13.7877 19.2988 12.9589 20.3187 12.9589C21.3386 12.9589 22.1654 13.7877 22.1654 14.8101Z",fill:"#008EF0"}),v.jsx("path",{d:"M9.50932 5.28316C9.14769 5.45665 8.74267 5.5538 8.315 5.5538C6.78513 5.5538 5.54492 4.31054 5.54492 2.7769C5.54492 1.24326 6.78513 0 8.315 0C9.84488 0 11.0851 1.24326 11.0851 2.7769C11.0851 3.20559 10.9882 3.6116 10.8151 3.9741L14.3002 7.46776C14.4528 7.42686 14.6131 7.40506 14.7785 7.40506C15.7984 7.40506 16.6253 8.2339 16.6253 9.25633C16.6253 10.2788 15.7984 11.1076 14.7785 11.1076C13.7586 11.1076 12.9318 10.2788 12.9318 9.25633C12.9318 9.09048 12.9536 8.92973 12.9944 8.77678L9.50932 5.28316Z",fill:"#008EF0"}),v.jsx("path",{d:"M5.53426 9.24775C5.53426 10.2702 4.70745 11.099 3.68754 11.099C2.66762 11.099 1.84082 10.2702 1.84082 9.24775C1.84082 8.22532 2.66762 7.39648 3.68754 7.39648C4.70745 7.39648 5.53426 8.22532 5.53426 9.24775Z",fill:"#FFC200"}),v.jsx("path",{d:"M9.99463 16.5323C9.84207 16.5732 9.68173 16.595 9.5163 16.595C8.49639 16.595 7.66958 15.7661 7.66958 14.7437C7.66958 13.7213 8.49639 12.8924 9.5163 12.8924C10.5362 12.8924 11.363 13.7213 11.363 14.7437C11.363 14.9095 11.3413 15.0703 11.3005 15.2232L14.7855 18.7169C15.1471 18.5434 15.5521 18.4462 15.9798 18.4462C17.5097 18.4462 18.7499 19.6895 18.7499 21.2231C18.7499 22.7568 17.5097 24 15.9798 24C14.4499 24 13.2097 22.7568 13.2097 21.2231C13.2097 20.7944 13.3066 20.3884 13.4797 20.0259L9.99463 16.5323Z",fill:"#FFC200"}),v.jsx("path",{d:"M11.087 20.3604C11.087 21.3828 10.2602 22.2117 9.24028 22.2117C8.22036 22.2117 7.39355 21.3828 7.39355 20.3604C7.39355 19.338 8.22036 18.5092 9.24028 18.5092C10.2602 18.5092 11.087 19.338 11.087 20.3604Z",fill:"#EC3B64"}),v.jsx("path",{d:"M24.014 8.32719C24.014 9.86083 22.7738 11.1041 21.2439 11.1041C20.8197 11.1041 20.4178 11.0085 20.0584 10.8377L16.5673 14.3374C16.6063 14.4873 16.6271 14.6445 16.6271 14.8066C16.6271 15.8291 15.8003 16.6579 14.7804 16.6579C13.7605 16.6579 12.9337 15.8291 12.9337 14.8066C12.9337 13.7842 13.7605 12.9554 14.7804 12.9554C14.9495 12.9554 15.1134 12.9782 15.269 13.0208L18.748 9.53324C18.5723 9.1685 18.4738 8.75938 18.4738 8.32719C18.4738 6.79355 19.714 5.55029 21.2439 5.55029C22.7738 5.55029 24.014 6.79355 24.014 8.32719Z",fill:"#EC3B64"}),v.jsx("path",{d:"M16.6205 3.69746C16.6205 4.71988 15.7937 5.54872 14.7737 5.54872C13.7538 5.54872 12.927 4.71988 12.927 3.69746C12.927 2.67503 13.7538 1.84619 14.7737 1.84619C15.7937 1.84619 16.6205 2.67503 16.6205 3.69746Z",fill:"#5CC461"}),v.jsx("path",{d:"M11.0803 9.25125C11.0803 10.2737 10.2535 11.1025 9.23361 11.1025C9.07191 11.1025 8.91506 11.0817 8.7656 11.0425L5.27441 14.5423C5.44482 14.9026 5.54016 15.3055 5.54016 15.7307C5.54016 17.2643 4.29995 18.5076 2.77008 18.5076C1.24021 18.5076 0 17.2643 0 15.7307C0 14.197 1.24021 12.9538 2.77008 12.9538C3.20121 12.9538 3.60934 13.0525 3.97319 13.2287L7.45222 9.74107C7.40963 9.58505 7.38689 9.42081 7.38689 9.25125C7.38689 8.22883 8.21369 7.39999 9.23361 7.39999C10.2535 7.39999 11.0803 8.22883 11.0803 9.25125Z",fill:"#5CC461"})]})}),v.jsxs("defs",{children:[v.jsxs("filter",{id:"filter0_d_1397_29183",x:"-8",y:"-6",width:"40",height:"40",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[v.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),v.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),v.jsx("feOffset",{dy:"2"}),v.jsx("feGaussianBlur",{stdDeviation:"4"}),v.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),v.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),v.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1397_29183"}),v.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1397_29183",result:"shape"})]}),v.jsx("clipPath",{id:"clip0_1397_29183",children:v.jsx("rect",{width:"24",height:"24",rx:"8",fill:"white"})}),v.jsx("clipPath",{id:"clip1_1397_29183",children:v.jsx("rect",{width:"24",height:"24",fill:"white"})})]})]})}));N1.displayName="LeftNavHome";const _1=u.createContext({isOpen:!1,toggleOpen:()=>{}}),w9=()=>u.useContext(_1),x9=Ye("",{variants:{variant:{default:"transition-transform rotate-0",collapsed:"transition-transform rotate-180"}},defaultVariants:{variant:"default"}});function $9({className:e,isCollapsed:t,...n}){return v.jsx("button",{type:"button",className:me(x9({variant:t?"collapsed":"default"}),"bg-[#EBEFF3] cursor-pointer text-[#104F95] rounded-tl-full rounded-bl-full border border-solid border-[#CFD7DF] px-2","hover:text-white hover:bg-[#125AA9] hover:border-[#125AA9]",e),...n,children:v.jsx(Gn,{IconSVG:tp})})}function D1({...e}){const{isOpen:t,toggleOpen:n}=w9();return v.jsx($9,{className:`absolute top-5 right-0 ${t?"":"translate-x-full"}`,isCollapsed:!t,onClick:n,...e})}function S9(e){const{children:t,defaultOpen:n=!1}=e,r=e.open!==void 0,[o,a]=u.useState(n),i=u.useCallback(()=>{a(f=>!f)},[]),s=r?e.open:o,l=r?e.onToggle:i,c=u.useMemo(()=>({isOpen:s,toggleOpen:l}),[s,l]);return v.jsx(_1.Provider,{value:c,children:v.jsxs("div",{className:me("rabbit-ds relative h-screen transition-all",s?"w-full":"w-0","shadow-[-8px_-2px_8px_0px_rgba(0,0,0,0.08)_inset]"),style:{background:"linear-gradient(273deg, #E7EFF1 0%, #EEF5F8 11%, #EFFAFE 100%)"},children:[v.jsx(D1,{}),v.jsx("div",{className:s?"p-5":"w-0 h-0 overflow-hidden scale-0 opacity-0 invisible",children:t})]})})}function C9({children:e}){return v.jsx("div",{className:me("nav-group flex flex-col gap-1","after:h-[1px] after:bg-[#EBEFF3] after:w-full after:my-4 last:after:hidden"),children:e})}function E9({children:e}){return v.jsx("div",{className:"p-2 text-dark-medium font-semibold text-xs",children:e})}function M9({children:e,...t}){return v.jsx(sp,{...t,children:e})}const T9=Ye("",{variants:{orientation:{horizontal:"ml-2",vertical:"mt-2 w-full [&>div]:w-full [&_button]:w-full"}},defaultVariants:{orientation:"horizontal"}});function P9({className:e,orientation:t,...n}){return v.jsx("div",{className:T9({orientation:t}),children:v.jsx(Pt,{className:e,...n})})}const k9={ON_TRACK:{label:"On-track",colorScheme:"tag-green"},OFF_TRACK:{label:"Off-track",colorScheme:"tag-yellow"},AT_RISK:{label:"At-risk",colorScheme:"tag-red"},CLOSED:{label:"Closed",colorScheme:"tag-darkGray"},NOT_STARTED:{label:"Not started",colorScheme:"tag-lightGray"}};function O9({title:e,achieved:t,status:n}){const r=k9[n];return v.jsx("div",{className:"rabbit-ds mr-auto",children:v.jsxs("div",{className:"flex flex-col p-2 gap-1",children:[v.jsx("div",{className:"text-sm font-semibold",children:e}),v.jsxs("div",{className:"flex items-end gap-3",children:[v.jsxs("div",{className:"flex flex-col",children:[v.jsx("span",{className:"text-xs text-dark-medium",children:"Achieved"}),v.jsxs("span",{className:me(r.colorScheme,"font-semibold text-2xl !bg-transparent"),children:[t,"%"]})]}),v.jsx(ei,{colorScheme:r.colorScheme,className:"mb-1",children:r.label})]})]})})}function N9({employeeName:e,employeeProfilePhoto:t,reviewCycleName:n,reviewType:r,dueBy:o}){return v.jsx("div",{className:"rabbit-ds mr-auto",children:v.jsxs("div",{className:"flex gap-2",children:[v.jsx(Un,{size:"xl",children:v.jsx(Yn,{src:t,alt:"Avatar"})}),v.jsxs("div",{className:"flex flex-col items-start text-sm",children:[v.jsx("span",{className:"font-semibold",children:e}),v.jsx(ei,{className:"mt-0.5",variant:"outlined",children:r}),v.jsx("span",{className:"text-dark-medium mt-2",children:n}),v.jsxs("span",{className:"text-dark-medium mt-0.5",children:["Due by ",o]})]})]})})}function _9({employeeName:e,employeeProfilePhoto:t,designation:n}){return v.jsx("div",{className:"rabbit-ds mr-auto",children:v.jsxs("div",{className:"flex gap-2",children:[v.jsx(Un,{size:"xl",children:v.jsx(Yn,{src:t,alt:"Avatar"})}),v.jsxs("div",{className:"flex flex-col items-start text-sm",children:[v.jsx("span",{className:"font-semibold",children:e}),v.jsx("span",{className:"text-dark-medium",children:n})]})]})})}function D9({employeeName:e,employeeProfilePhoto:t,designation:n,requestReason:r}){return v.jsx("div",{className:"rabbit-ds mr-auto w-[60%]",children:v.jsxs("div",{className:"flex gap-2 w-full",children:[v.jsx(Un,{size:"xl",children:v.jsx(Yn,{src:t,alt:"Avatar"})}),v.jsxs("div",{className:"flex flex-col items-start text-sm w-full",children:[v.jsx("span",{className:"font-semibold",children:e}),v.jsx(ei,{className:"mt-0.5",variant:"outlined",children:n}),v.jsx("span",{className:"text-dark-medium mt-2 w-full overflow-hidden whitespace-nowrap text-ellipsis",children:r})]})]})})}const A9=Ye("",{variants:{orientation:{horizontal:"flex-row",vertical:"flex-col min-w-max"}},defaultVariants:{orientation:"horizontal"}});function I9({className:e,children:t,orientation:n}){return v.jsx("div",{className:me("rabbit-ds","w-full flex items-center rounded-lg p-4 bg-[#FDFDFD] border border-solid border-[#F3F5F8]",A9({orientation:n}),e),children:t})}function L9({nudgeCardList:e,title:t,imgSrc:n,description:r,pageSize:o=3,kebabMenu:a}){const[i,s]=u.useState(1),l=e.slice(0,o*i),c=e.length>o,f=e.length===l.length,d=()=>{s(h=>f?1:h+1)};return v.jsxs("div",{className:me("rabbit-ds","w-full flex flex-col items-start rounded-lg px-4 py-3 gap-[7px] bg-white shadow-[0px_0px_2px_0px_rgba(0,0,0,0.24)]"),children:[v.jsxs("div",{className:"flex items-center justify-between w-full",children:[v.jsx("span",{className:"text-lg font-semibold",children:t}),a]}),v.jsxs("div",{className:"flex items-center gap-4 mt-1",children:[v.jsx(Un,{className:"h-24 w-24",children:v.jsx(Yn,{src:n,alt:t})}),v.jsx("span",{children:r})]}),l,c&&v.jsx("div",{className:"mx-auto",children:v.jsxs(Pt,{variant:"text",onClick:d,iconRight:f?v.jsx(Tb,{size:16}):v.jsx(bs,{size:16}),children:["View ",f?"less":"more"]})})]})}function F9({surveyName:e,date:t}){return v.jsx("div",{className:"rabbit-ds mr-auto",children:v.jsxs("div",{className:"flex gap-2",children:[v.jsx(Gn,{IconSVG:rp}),v.jsxs("div",{className:"flex flex-col items-start text-sm",children:[v.jsx("span",{className:"font-semibold",children:e}),v.jsx(bl,{date:t,showRelativeTime:!0})]})]})})}const j9=Ye("",{variants:{variant:{single:"flex-row [&>div]:items-start",multiple:"flex-col"}},defaultVariants:{variant:"single"}});function z9({employeeName:e,employeeProfilePhoto:t,scheduleDate:n,duration:r,variant:o}){return v.jsx("div",{className:"rabbit-ds mr-auto",children:v.jsxs("div",{className:me("flex items-center text-sm gap-2",j9({variant:o})),children:[v.jsx(Un,{size:"xl",children:v.jsx(Yn,{src:t,alt:e})}),v.jsxs("div",{className:"flex flex-col gap-1 items-center",children:[v.jsx("span",{className:"font-semibold",children:e}),v.jsx(bl,{date:n,duration:r,timeFormat:"HH:mm a",showTime:!0})]})]})})}function B9({label:e,onClick:t,customCompProps:n}){const[r,o]=u.useState(1);return v.jsxs(al,{children:[v.jsx(Ga,{children:v.jsx("span",{children:e})}),v.jsx(ol,{children:v.jsx(Ua,{children:v.jsx(Pr,{children:v.jsxs("div",{className:"flex flex-col p-2",children:[v.jsx(Qd,{htmlFor:n==null?void 0:n.label,className:"text-xs",children:n==null?void 0:n.label}),v.jsx(Td,{id:n==null?void 0:n.label,className:"mt-2 !min-w-[160px]",type:"number",value:r,onChange:a=>o(a.target.valueAsNumber),min:1}),v.jsx("div",{className:"flex justify-end",children:v.jsx(Pt,{className:"mt-2",onClick:()=>t(r),disabled:r<1||Number.isNaN(r),children:n==null?void 0:n.buttonText})})]})})})})]})}function W9({options:e}){const[t,n]=u.useState(!1),r=(o,a)=>{o(a),n(!1)};return v.jsxs(Wa,{open:t,children:[v.jsx(Va,{asChild:!0,onClick:()=>n(!0),children:v.jsx(Pt,{variant:"text",size:"smallIcon",children:v.jsx(Gn,{IconSVG:np})})}),v.jsx(go,{className:"w-56",onFocusOutside:()=>n(!1),onPointerDownOutside:()=>n(!1),children:v.jsx(Pr,{children:e.map(({type:o,onClick:a,label:i,customCompProps:s})=>!o||o==="default"?v.jsx(vo,{onClick:()=>r(a),children:v.jsx("span",{children:i})},i):v.jsx(B9,{onClick:l=>r(a,l),label:i,customCompProps:s},i))})})]})}function V9(e){return Object.prototype.toString.call(e)==="[object Object]"}function A1(e){return V9(e)||Array.isArray(e)}function H9(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Xu(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==a?!1:n.every(i=>{const s=e[i],l=t[i];return typeof s=="function"?`${s}`==`${l}`:!A1(s)||!A1(l)?s===l:Xu(s,l)})}function I1(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function G9(e,t){if(e.length!==t.length)return!1;const n=I1(e),r=I1(t);return n.every((o,a)=>{const i=r[a];return Xu(o,i)})}function Zu(e){return typeof e=="number"}function Qu(e){return typeof e=="string"}function Ju(e){return typeof e=="boolean"}function L1(e){return Object.prototype.toString.call(e)==="[object Object]"}function Be(e){return Math.abs(e)}function Ru(e){return Math.sign(e)}function is(e,t){return Be(e-t)}function U9(e,t){if(e===0||t===0||Be(e)<=Be(t))return 0;const n=is(Be(e),Be(t));return Be(n/e)}function na(e){return oa(e).map(Number)}function Ft(e){return e[ra(e)]}function ra(e){return Math.max(0,e.length-1)}function ed(e,t){return t===ra(e)}function F1(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function oa(e){return Object.keys(e)}function j1(e,t){return[e,t].reduce((n,r)=>(oa(r).forEach(o=>{const a=n[o],i=r[o],s=L1(a)&&L1(i);n[o]=s?j1(a,i):i}),n),{})}function z1(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function Y9(e,t){const n={start:r,center:o,end:a};function r(){return 0}function o(l){return a(l)/2}function a(l){return t-l}function i(l,c){return Qu(e)?n[e](l):e(t,l,c)}return{measure:i}}function q9(e,t){const n=e==="y"?"y":"x",r=e==="y"?"x":"y",o=s(),a=l();function i(f){const{width:d,height:h}=f;return n==="x"?d:h}function s(){return n==="y"?"top":t==="rtl"?"right":"left"}function l(){return n==="y"?"bottom":t==="rtl"?"left":"right"}return{scroll:n,cross:r,startEdge:o,endEdge:a,measureSize:i}}function lr(e,t){const n=Be(e-t);function r(c){return c<e}function o(c){return c>t}function a(c){return r(c)||o(c)}function i(c){return a(c)?r(c)?e:t:c}function s(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:i,reachedAny:a,reachedMax:o,reachedMin:r,removeOffset:s}}function B1(e,t,n){const{constrain:r}=lr(0,e),o=e+1;let a=i(t);function i(h){return n?Be((o+h)%o):r(h)}function s(){return a}function l(h){return a=i(h),d}function c(h){return f().set(s()+h)}function f(){return B1(e,s(),n)}const d={get:s,set:l,add:c,clone:f};return d}function K9(e){const t=e==="rtl"?-1:1;function n(o){return o*t}return{apply:n}}function aa(){let e=[];function t(o,a,i,s={passive:!0}){let l;if("addEventListener"in o)o.addEventListener(a,i,s),l=()=>o.removeEventListener(a,i,s);else{const c=o;c.addListener(i),l=()=>c.removeListener(i)}return e.push(l),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function X9(e,t,n,r,o,a,i,s,l,c,f,d,h,g,p,m,x,y,b,w){const{cross:E}=e,S=["INPUT","SELECT","TEXTAREA"],T={passive:!1},N=aa(),M=aa(),O=lr(50,225).constrain(p.measure(20)),F={mouse:300,touch:400},j={mouse:500,touch:600},H=m?43:25;let G=!1,L=0,C=0,_=!1,B=!1,V=!1,D=!1;function A(k){if(!w)return;function te(ge){(Ju(w)||w(k,ge))&&ue(ge)}const ae=n;N.add(ae,"dragstart",ge=>ge.preventDefault(),T).add(ae,"touchmove",()=>{},T).add(ae,"touchend",()=>{}).add(ae,"touchstart",te).add(ae,"mousedown",te).add(ae,"touchcancel",le).add(ae,"contextmenu",le).add(ae,"click",U,!0)}function W(){N.clear(),M.clear()}function ne(){const k=D?r:n;M.add(k,"touchmove",X,T).add(k,"touchend",le).add(k,"mousemove",X,T).add(k,"mouseup",le)}function Q(k){const te=k.nodeName||"";return S.includes(te)}function re(){return(m?j:F)[D?"mouse":"touch"]}function oe(k,te){const ae=h.add(Ru(k)*-1),ge=d.byDistance(k,!m).distance;return m||Be(k)<O?ge:y&&te?ge*.5:d.byIndex(ae.get(),0).distance}function ue(k){const te=z1(k,o);D=te,!(te&&k.button!==0)&&(Q(k.target)||(V=m&&te&&!k.buttons&&G,G=is(a.get(),s.get())>=2,_=!0,i.pointerDown(k),f.useFriction(0).useDuration(0),a.set(s),ne(),L=i.readPoint(k),C=i.readPoint(k,E),g.emit("pointerDown")))}function X(k){const te=i.readPoint(k),ae=i.readPoint(k,E),ge=is(te,L),we=is(ae,C);if(!B&&!D&&(!k.cancelable||(B=ge>we,!B)))return le(k);const Ee=i.pointerMove(k);ge>x&&(V=!0),f.useFriction(.3).useDuration(1),l.start(),a.add(t.apply(Ee)),k.preventDefault()}function le(k){const ae=d.byDistance(0,!1).index!==h.get(),ge=i.pointerUp(k)*re(),we=oe(t.apply(ge),ae),Ee=U9(ge,we),Ke=H-10*Ee,Xe=b+Ee/50;B=!1,_=!1,M.clear(),f.useDuration(Ke).useFriction(Xe),c.distance(we,!m),D=!1,g.emit("pointerUp")}function U(k){V&&(k.stopPropagation(),k.preventDefault())}function Z(){return _}return{init:A,pointerDown:Z,destroy:W}}function Z9(e,t){let r,o;function a(d){return d.timeStamp}function i(d,h){const p=`client${(h||e.scroll)==="x"?"X":"Y"}`;return(z1(d,t)?d:d.touches[0])[p]}function s(d){return r=d,o=d,i(d)}function l(d){const h=i(d)-i(o),g=a(d)-a(r)>170;return o=d,g&&(r=d),h}function c(d){if(!r||!o)return 0;const h=i(o)-i(r),g=a(d)-a(r),p=a(d)-a(o)>170,m=h/g;return g&&!p&&Be(m)>.1?m:0}return{pointerDown:s,pointerMove:l,pointerUp:c,readPoint:i}}function Q9(){function e(n){const{offsetTop:r,offsetLeft:o,offsetWidth:a,offsetHeight:i}=n;return{top:r,right:o+a,bottom:r+i,left:o,width:a,height:i}}return{measure:e}}function J9(e){function t(r){return e*(r/100)}return{measure:t}}function R9(e,t,n,r,o,a,i){let s,l,c=[],f=!1;function d(m){return o.measureSize(i.measure(m))}function h(m){if(!a)return;l=d(e),c=r.map(d);function x(b){for(const w of b){const E=w.target===e,S=r.indexOf(w.target),T=E?l:c[S],N=d(E?e:r[S]);if(Be(N-T)>=.5){n.requestAnimationFrame(()=>{m.reInit(),t.emit("resize")});break}}}s=new ResizeObserver(b=>{f||(Ju(a)||a(m,b))&&x(b)}),[e].concat(r).forEach(b=>s.observe(b))}function g(){s&&s.disconnect(),f=!0}return{init:h,destroy:g}}function eN(e,t,n,r,o){let a=0,i=0,s=r,l=o,c=e.get(),f=0;function d(){const S=n.get()-e.get(),T=!s;let N=0;return T?(a=0,e.set(n),N=S):(a+=S/s,a*=l,c+=a,e.add(a),N=c-f),i=Ru(N),f=c,E}function h(){const S=n.get()-t.get();return Be(S)<.001}function g(){return s}function p(){return i}function m(){return a}function x(){return b(r)}function y(){return w(o)}function b(S){return s=S,E}function w(S){return l=S,E}const E={direction:p,duration:g,velocity:m,seek:d,settled:h,useBaseFriction:y,useBaseDuration:x,useFriction:w,useDuration:b};return E}function tN(e,t,n,r,o){const a=o.measure(10),i=o.measure(50),s=lr(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function f(g){if(!c())return;const p=e.reachedMin(t.get())?"min":"max",m=Be(e[p]-t.get()),x=n.get()-t.get(),y=s.constrain(m/i);n.subtract(x*y),!g&&Be(x)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(g){l=!g}return{constrain:f,toggleActive:d}}function nN(e,t,n,r){const o=lr(-t+e,0),a=c(),i=l(),s=f();function l(){const h=a[0],g=Ft(a),p=a.lastIndexOf(h),m=a.indexOf(g)+1;return lr(p,m)}function c(){return n.map((h,g)=>{const p=!g,m=ed(n,g);return p?o.max:m?o.min:o.constrain(h)}).map(h=>parseFloat(h.toFixed(3)))}function f(){if(t<=e)return[o.max];if(r==="keepSnaps")return a;const{min:h,max:g}=i;return a.slice(h,g)}return{snapsContained:s,scrollContainLimit:i}}function rN(e,t,n){const r=t[0],o=n?r-e:Ft(t);return{limit:lr(o,r)}}function oN(e,t,n,r){const a=t.min+.1,i=t.max+.1,{reachedMin:s,reachedMax:l}=lr(a,i);function c(h){return h===1?l(n.get()):h===-1?s(n.get()):!1}function f(h){if(!c(h))return;const g=e*(h*-1);r.forEach(p=>p.add(g))}return{loop:f}}function aN(e){const{max:t,length:n}=e;function r(a){const i=a-t;return n?i/-n:0}return{get:r}}function iN(e,t,n,r,o){const{startEdge:a,endEdge:i}=e,{groupSlides:s}=o,l=d().map(t.measure),c=h(),f=g();function d(){return s(r).map(m=>Ft(m)[i]-m[0][a]).map(Be)}function h(){return r.map(m=>n[a]-m[a]).map(m=>-Be(m))}function g(){return s(c).map(m=>m[0]).map((m,x)=>m+l[x])}return{snaps:c,snapsAligned:f}}function sN(e,t,n,r,o,a,i){const{groupSlides:s}=a,{min:l,max:c}=o,f=d();function d(){const g=s(i);return!n||r==="keepSnaps"||t<=e?g:g.slice(l,c).map((m,x,y)=>{const b=!x,w=ed(y,x);if(b){const E=Ft(y[0])+1;return F1(E)}if(w){const E=ra(i)-Ft(y)[0]+1;return F1(E,Ft(y)[0])}return m})}return{slideRegistry:f}}function lN(e,t,n,r,o){const{reachedAny:a,removeOffset:i,constrain:s}=r;function l(p){return p.concat().sort((m,x)=>Be(m)-Be(x))[0]}function c(p){const m=e?i(p):s(p),x=t.map(b=>b-m).map(b=>f(b,0)).map((b,w)=>({diff:b,index:w})).sort((b,w)=>Be(b.diff)-Be(w.diff)),{index:y}=x[0];return{index:y,distance:m}}function f(p,m){const x=[p,p+n,p-n];if(!e)return x[0];if(!m)return l(x);const y=x.filter(b=>Ru(b)===m);return y.length?l(y):Ft(x)-n}function d(p,m){const x=t[p]-o.get(),y=f(x,m);return{index:p,distance:y}}function h(p,m){const x=o.get()+p,{index:y,distance:b}=c(x),w=!e&&a(x);if(!m||w)return{index:y,distance:p};const E=t[y]-b,S=p+f(E,0);return{index:y,distance:S}}return{byDistance:h,byIndex:d,shortcut:f}}function cN(e,t,n,r,o,a){function i(f){const d=f.distance,h=f.index!==t.get();o.add(d),d&&e.start(),h&&(n.set(t.get()),t.set(f.index),a.emit("select"))}function s(f,d){const h=r.byDistance(f,d);i(h)}function l(f,d){const h=t.clone().set(f),g=r.byIndex(h.get(),d);i(g)}return{distance:s,index:l}}function uN(e,t,n,r,o,a){let i=0;function s(){a.add(document,"keydown",l,!1),t.forEach(c)}function l(d){d.code==="Tab"&&(i=new Date().getTime())}function c(d){const h=()=>{if(new Date().getTime()-i>10)return;e.scrollLeft=0;const m=t.indexOf(d),x=n.findIndex(y=>y.includes(m));Zu(x)&&(o.useDuration(0),r.index(x,0))};a.add(d,"focus",h,{passive:!0,capture:!0})}return{init:s}}function ss(e){let t=e;function n(){return t}function r(l){t=i(l)}function o(l){t+=i(l)}function a(l){t-=i(l)}function i(l){return Zu(l)?l:l.get()}return{get:n,set:r,add:o,subtract:a}}function W1(e,t,n){const r=e.scroll==="x"?i:s,o=n.style;let a=!1;function i(h){return`translate3d(${h}px,0px,0px)`}function s(h){return`translate3d(0px,${h}px,0px)`}function l(h){a||(o.transform=r(t.apply(h)))}function c(h){a=!h}function f(){a||(o.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:f,to:l,toggleActive:c}}function dN(e,t,n,r,o,a,i,s,l,c){const d=na(a),h=na(a).reverse(),g=b().concat(w());function p(M,O){return M.reduce((F,j)=>F-a[j],O)}function m(M,O){return M.reduce((F,j)=>p(F,O)>0?F.concat([j]):F,[])}function x(M){return i.map((O,F)=>({start:O-o[F]+.5+M,end:O+n-.5+M}))}function y(M,O,F){const j=x(O);return M.map(H=>{const G=F?0:-r,L=F?r:0,C=F?"end":"start",_=j[H][C];return{index:H,loopPoint:_,slideLocation:ss(-1),translate:W1(e,t,c[H]),target:()=>l.get()>_?G:L}})}function b(){const M=s[0],O=m(h,M);return y(O,r,!1)}function w(){const M=n-s[0]-1,O=m(d,M);return y(O,-r,!0)}function E(){return g.every(({index:M})=>{const O=d.filter(F=>F!==M);return p(O,n)<=.1})}function S(){g.forEach(M=>{const{target:O,translate:F,slideLocation:j}=M,H=O();H!==j.get()&&(F.to(H),j.set(H))})}function T(){g.forEach(M=>M.translate.clear())}return{canLoop:E,clear:T,loop:S,loopPoints:g}}function fN(e,t,n){let r,o=!1;function a(l){if(!n)return;function c(f){for(const d of f)if(d.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(f=>{o||(Ju(n)||n(l,f))&&c(f)}),r.observe(e,{childList:!0})}function i(){r&&r.disconnect(),o=!0}return{init:a,destroy:i}}function hN(e,t,n,r){const o={};let a=null,i=null,s,l=!1;function c(){s=new IntersectionObserver(p=>{l||(p.forEach(m=>{const x=t.indexOf(m.target);o[x]=m}),a=null,i=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(p=>s.observe(p))}function f(){s&&s.disconnect(),l=!0}function d(p){return oa(o).reduce((m,x)=>{const y=parseInt(x),{isIntersecting:b}=o[y];return(p&&b||!p&&!b)&&m.push(y),m},[])}function h(p=!0){if(p&&a)return a;if(!p&&i)return i;const m=d(p);return p&&(a=m),p||(i=m),m}return{init:c,destroy:f,get:h}}function pN(e,t,n,r,o,a){const{measureSize:i,startEdge:s,endEdge:l}=e,c=n[0]&&o,f=p(),d=m(),h=n.map(i),g=x();function p(){if(!c)return 0;const b=n[0];return Be(t[s]-b[s])}function m(){if(!c)return 0;const b=a.getComputedStyle(Ft(r));return parseFloat(b.getPropertyValue(`margin-${l}`))}function x(){return n.map((b,w,E)=>{const S=!w,T=ed(E,w);return S?h[w]+f:T?h[w]+d:E[w+1][s]-b[s]}).map(Be)}return{slideSizes:h,slideSizesWithGaps:g,startGap:f,endGap:d}}function mN(e,t,n,r,o,a,i,s,l){const{startEdge:c,endEdge:f}=e,d=Zu(r);function h(x,y){return na(x).filter(b=>b%y===0).map(b=>x.slice(b,b+y))}function g(x){return x.length?na(x).reduce((y,b)=>{const w=Ft(y)||0,E=w===0,S=b===ra(x),T=a[c]-i[w][c],N=a[c]-i[b][f],M=!o&&E?t.apply(s):0,O=!o&&S?t.apply(l):0;return Be(N-O-(T+M))>n&&y.push(b),S&&y.push(x.length),y},[]).map((y,b,w)=>{const E=Math.max(w[b-1]||0);return x.slice(E,y)}):[]}function p(x){return d?h(x,r):g(x)}return{groupSlides:p}}function gN(e,t,n,r,o,a,i,s){const{align:l,axis:c,direction:f,startIndex:d,loop:h,duration:g,dragFree:p,dragThreshold:m,inViewThreshold:x,slidesToScroll:y,skipSnaps:b,containScroll:w,watchResize:E,watchSlides:S,watchDrag:T}=a,N=Q9(),M=N.measure(t),O=n.map(N.measure),F=K9(f),j=q9(c,f),H=j.measureSize(M),G=J9(H),L=Y9(l,H),C=!h&&!!w,_=h||!!w,{slideSizes:B,slideSizesWithGaps:V,startGap:D,endGap:A}=pN(j,M,O,n,_,o),W=mN(j,F,H,y,h,M,O,D,A),{snaps:ne,snapsAligned:Q}=iN(j,L,M,O,W),re=-Ft(ne)+Ft(V),{snapsContained:oe,scrollContainLimit:ue}=nN(H,re,Q,w),X=C?oe:Q,{limit:le}=rN(re,X,h),U=B1(ra(X),d,h),Z=U.clone(),ie=na(n),k=({dragHandler:at,scrollBody:jt,scrollBounds:un,options:{loop:zt}})=>{zt||un.constrain(at.pointerDown()),jt.seek()},te=({scrollBody:at,translate:jt,location:un,offsetLocation:zt,scrollLooper:Rr,slideLooper:eo,dragHandler:dr,animation:to,eventHandler:fr,options:{loop:Et}},Bt)=>{const An=at.velocity(),In=at.settled();In&&!dr.pointerDown()&&(to.stop(),fr.emit("settle")),In||fr.emit("scroll"),zt.set(un.get()-An+An*Bt),Et&&(Rr.loop(at.direction()),eo.loop()),jt.to(zt.get())},ae={start:()=>s.start(ft),stop:()=>s.stop(ft),update:()=>k(ft),render:at=>te(ft,at)},ge=.68,we=X[U.get()],Ee=ss(we),Ke=ss(we),Xe=ss(we),ot=eN(Ee,Ke,Xe,g,ge),vt=lN(h,X,re,le,Xe),Xt=cN(ae,U,Z,vt,Xe,i),je=aN(le),ur=aa(),Jr=hN(t,n,i,x),{slideRegistry:Dn}=sN(H,re,C,w,ue,W,ie),Ze=uN(e,n,Dn,Xt,ot,ur),ft={ownerDocument:r,ownerWindow:o,eventHandler:i,containerRect:M,slideRects:O,animation:ae,axis:j,direction:F,dragHandler:X9(j,F,e,r,o,Xe,Z9(j,o),Ee,ae,Xt,ot,vt,U,i,G,p,m,b,ge,T),eventStore:ur,percentOfView:G,index:U,indexPrevious:Z,limit:le,location:Ee,offsetLocation:Ke,options:a,resizeHandler:R9(t,i,o,n,j,E,N),scrollBody:ot,scrollBounds:tN(le,Ee,Xe,ot,G),scrollLooper:oN(re,le,Ke,[Ee,Ke,Xe]),scrollProgress:je,scrollSnapList:X.map(je.get),scrollSnaps:X,scrollTarget:vt,scrollTo:Xt,slideLooper:dN(j,F,H,re,B,V,ne,X,Ke,n),slideFocus:Ze,slidesHandler:fN(t,i,S),slidesInView:Jr,slideIndexes:ie,slideRegistry:Dn,slidesToScroll:W,target:Xe,translate:W1(j,F,t)};return ft}function vN(e){const t=16.666666666666668;let n=[],r=null,o=0,a=0;function i(d){r||(r=d);const h=d-r;for(r=d,o+=h;o>=t;)n.forEach(({animation:p})=>p.update()),o-=t;const g=Be(o/t);n.forEach(({animation:p})=>p.render(g)),a&&e.requestAnimationFrame(i)}function s(d){n.includes(d)||n.push(d),!a&&(a=e.requestAnimationFrame(i))}function l(d){n=n.filter(h=>h!==d),!n.length&&(e.cancelAnimationFrame(a),r=null,o=0,a=0)}function c(){r=null,o=0}return{start:s,stop:l,reset:c,window:e}}function bN(){const e={};let t;function n(l){t=l}function r(l){return e[l]||[]}function o(l){return r(l).forEach(c=>c(t,l)),s}function a(l,c){return e[l]=r(l).concat([c]),s}function i(l,c){return e[l]=r(l).filter(f=>f!==c),s}const s={init:n,emit:o,off:i,on:a};return s}const yN={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function wN(e){function t(a,i){return j1(a,i||{})}function n(a){const i=a.breakpoints||{},s=oa(i).filter(l=>e.matchMedia(l).matches).map(l=>i[l]).reduce((l,c)=>t(l,c),{});return t(a,s)}function r(a){return a.map(i=>oa(i.breakpoints||{})).reduce((i,s)=>i.concat(s),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function xN(e){let t=[];function n(a,i){return t=i.filter(({options:s})=>e.optionsAtMedia(s).active!==!1),t.forEach(s=>s.init(a,e)),i.reduce((s,l)=>Object.assign(s,{[l.name]:l}),{})}function r(){t=t.filter(a=>a.destroy())}return{init:n,destroy:r}}function Zr(e,t,n){const r=e.ownerDocument,o=r.defaultView,a=wN(o),i=xN(a),s=aa(),l=aa(),c=bN(),{animationRealms:f}=Zr,{mergeOptions:d,optionsAtMedia:h,optionsMediaQueries:g}=a,{on:p,off:m,emit:x}=c,y=G;let b=!1,w,E=d(yN,Zr.globalOptions),S=d(E),T=[],N,M,O;function F(){const{container:te,slides:ae}=S;M=(Qu(te)?e.querySelector(te):te)||e.children[0];const we=Qu(ae)?M.querySelectorAll(ae):ae;O=[].slice.call(we||M.children)}function j(te,ae){const ge=gN(e,M,O,r,o,te,c,ae);if(te.loop&&!ge.slideLooper.canLoop()){const we=Object.assign({},te,{loop:!1});return j(we,ae)}return ge}function H(te,ae){if(b)return;const ge=f.find(Ee=>Ee.window===o),we=ge||vN(o);ge||f.push(we),E=d(E,te),S=h(E),T=ae||T,F(),w=j(S,we),g([E,...T.map(({options:Ee})=>Ee)]).forEach(Ee=>s.add(Ee,"change",G)),S.active&&(w.translate.to(w.location.get()),w.slidesInView.init(),w.slideFocus.init(),w.eventHandler.init(k),w.resizeHandler.init(k),w.slidesHandler.init(k),l.add(r,"visibilitychange",()=>{r.hidden&&we.reset()}),w.options.loop&&w.slideLooper.loop(),M.offsetParent&&O.length&&w.dragHandler.init(k),N=i.init(k,T))}function G(te,ae){const ge=Q();L(),H(d({startIndex:ge},te),ae),c.emit("reInit")}function L(){w.dragHandler.destroy(),w.animation.stop(),w.eventStore.clear(),w.translate.clear(),w.slideLooper.clear(),w.resizeHandler.destroy(),w.slidesHandler.destroy(),w.slidesInView.destroy(),i.destroy(),s.clear(),l.clear()}function C(){b||(b=!0,s.clear(),L(),c.emit("destroy"))}function _(te,ae,ge){!S.active||b||(w.scrollBody.useBaseFriction().useDuration(ae?0:S.duration),w.scrollTo.index(te,ge||0))}function B(te){const ae=w.index.add(1).get();_(ae,te===!0,-1)}function V(te){const ae=w.index.add(-1).get();_(ae,te===!0,1)}function D(){return w.index.add(1).get()!==Q()}function A(){return w.index.add(-1).get()!==Q()}function W(){return w.scrollSnapList}function ne(){return w.scrollProgress.get(w.location.get())}function Q(){return w.index.get()}function re(){return w.indexPrevious.get()}function oe(){return w.slidesInView.get()}function ue(){return w.slidesInView.get(!1)}function X(){return N}function le(){return w}function U(){return e}function Z(){return M}function ie(){return O}const k={canScrollNext:D,canScrollPrev:A,containerNode:Z,internalEngine:le,destroy:C,off:m,on:p,emit:x,plugins:X,previousScrollSnap:re,reInit:y,rootNode:U,scrollNext:B,scrollPrev:V,scrollProgress:ne,scrollSnapList:W,scrollTo:_,selectedScrollSnap:Q,slideNodes:ie,slidesInView:oe,slidesNotInView:ue};return H(t,n),setTimeout(()=>c.emit("init"),0),k}Zr.animationRealms=[],Zr.globalOptions=void 0;function td(e={},t=[]){const n=u.useRef(e),r=u.useRef(t),[o,a]=u.useState(),[i,s]=u.useState(),l=u.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return u.useEffect(()=>{if(H9()&&i){Zr.globalOptions=td.globalOptions;const c=Zr(i,n.current,r.current);return a(c),()=>c.destroy()}else a(void 0)},[i,a]),u.useEffect(()=>{Xu(n.current,e)||(n.current=e,l())},[e,l]),u.useEffect(()=>{G9(r.current,t)||(r.current=t,l())},[t,l]),[s,o]}td.globalOptions=void 0;function cr(){return cr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cr.apply(this,arguments)}var $N=.996,SN=function(t,n){return n===void 0&&(n=$N),t*n/(1-n)};function CN(e){return e[e.length-1]}function EN(e){return e.reduce(function(t,n){return t+n})/e.length}var MN=function(t,n,r){return Math.min(Math.max(n,t),r)};function nd(e,t){if(e.length!==t.length)throw new Error("vectors must be same length");return e.map(function(n,r){return n+t[r]})}function V1(e){return Math.max.apply(Math,e.map(Math.abs))}function Qr(e){return Object.freeze(e),Object.values(e).forEach(function(t){t!==null&&typeof t=="object"&&!Object.isFrozen(t)&&Qr(t)}),e}function TN(){var e={};function t(o,a){return e[o]=(e[o]||[]).concat(a),function(){return n(o,a)}}function n(o,a){e[o]=(e[o]||[]).filter(function(i){return i!==a})}function r(o,a){o in e&&e[o].forEach(function(i){return i(a)})}return Qr({on:t,off:n,dispatch:r})}function PN(e){var t=[],n=function(i){return i.addEventListener("wheel",e,{passive:!1}),t.push(i),function(){return r(i)}},r=function(i){i.removeEventListener("wheel",e),t=t.filter(function(s){return s!==i})},o=function(){t.forEach(r)};return Qr({observe:n,unobserve:r,disconnect:o})}var kN=16*1.125,ON=typeof window<"u"&&window.innerHeight||800,rd=[1,kN,ON];function NN(e){var t=e.deltaX*rd[e.deltaMode],n=e.deltaY*rd[e.deltaMode],r=(e.deltaZ||0)*rd[e.deltaMode];return{timeStamp:e.timeStamp,axisDelta:[t,n,r]}}var _N=[-1,-1,-1];function DN(e,t){if(!t)return e;var n=t===!0?_N:t.map(function(r){return r?-1:1});return cr({},e,{axisDelta:e.axisDelta.map(function(r,o){return r*n[o]})})}var H1=700,AN=function(t){return cr({},t,{axisDelta:t.axisDelta.map(function(n){return MN(n,-H1,H1)})})},od=process.env.NODE_ENV!=="production",IN=.6,LN=.96,FN=2,G1=5,U1=Qr({preventWheelAction:!0,reverseSign:[!0,!0,!1]}),jN=400;function Y1(){return{isStarted:!1,isStartPublished:!1,isMomentum:!1,startTime:0,lastAbsDelta:1/0,axisMovement:[0,0,0],axisVelocity:[0,0,0],accelerationFactors:[],scrollPoints:[],scrollPointsToMerge:[],willEndTimeout:jN}}function zN(e){e===void 0&&(e={});var t=TN(),n=t.on,r=t.off,o=t.dispatch,a=U1,i=Y1(),s,l=!1,c,f=function(L){Array.isArray(L)?L.forEach(function(C){return p(C)}):p(L)},d=function(L){return L===void 0&&(L={}),Object.values(L).some(function(C){return C==null})?(od&&console.error("updateOptions ignored! undefined & null options not allowed"),a):a=Qr(cr({},U1,a,L))},h=function(L){var C=cr({event:s,isStart:!1,isEnding:!1,isMomentumCancel:!1,isMomentum:i.isMomentum,axisDelta:[0,0,0],axisVelocity:i.axisVelocity,axisMovement:i.axisMovement,get axisMovementProjection(){return nd(C.axisMovement,C.axisVelocity.map(function(_){return SN(_)}))}},L);o("wheel",cr({},C,{previous:c})),c=C},g=function(L,C){var _=a,B=_.preventWheelAction,V=C[0],D=C[1],A=C[2];if(typeof B=="boolean")return B;switch(B){case"x":return Math.abs(V)>=L;case"y":return Math.abs(D)>=L;case"z":return Math.abs(A)>=L;default:return od&&console.warn("unsupported preventWheelAction value: "+B,"warn"),!1}},p=function(L){var C=AN(DN(NN(L),a.reverseSign)),_=C.axisDelta,B=C.timeStamp,V=V1(_);if(L.preventDefault&&g(V,_)&&L.preventDefault(),i.isStarted?i.isMomentum&&V>Math.max(2,i.lastAbsDelta*2)&&(M(!0),T()):T(),V===0&&Object.is&&Object.is(L.deltaX,-0)){l=!0;return}s=L,i.axisMovement=nd(i.axisMovement,_),i.lastAbsDelta=V,i.scrollPointsToMerge.push({axisDelta:_,timeStamp:B}),m(),h({axisDelta:_,isStart:!i.isStartPublished}),i.isStartPublished=!0,N()},m=function(){i.scrollPointsToMerge.length===FN?(i.scrollPoints.unshift({axisDeltaSum:i.scrollPointsToMerge.map(function(L){return L.axisDelta}).reduce(nd),timeStamp:EN(i.scrollPointsToMerge.map(function(L){return L.timeStamp}))}),y(),i.scrollPointsToMerge.length=0,i.scrollPoints.length=1,i.isMomentum||E()):i.isStartPublished||x()},x=function(){i.axisVelocity=CN(i.scrollPointsToMerge).axisDelta.map(function(L){return L/i.willEndTimeout})},y=function(){var L=i.scrollPoints,C=L[0],_=L[1];if(!(!_||!C)){var B=C.timeStamp-_.timeStamp;if(B<=0){od&&console.warn("invalid deltaTime");return}var V=C.axisDeltaSum.map(function(A){return A/B}),D=V.map(function(A,W){return A/(i.axisVelocity[W]||1)});i.axisVelocity=V,i.accelerationFactors.push(D),b(B)}},b=function(L){var C=Math.ceil(L/10)*10*1.2;i.isMomentum||(C=Math.max(100,C*2)),i.willEndTimeout=Math.min(1e3,Math.round(C))},w=function(L){return L===0?!0:L<=LN&&L>=IN},E=function(){if(i.accelerationFactors.length>=G1){if(l&&(l=!1,V1(i.axisVelocity)>=.2)){S();return}var L=i.accelerationFactors.slice(G1*-1),C=L.every(function(_){var B=!!_.reduce(function(D,A){return D&&D<1&&D===A?1:0}),V=_.filter(w).length===_.length;return B||V});C&&S(),i.accelerationFactors=L}},S=function(){i.isMomentum=!0},T=function(){i=Y1(),i.isStarted=!0,i.startTime=Date.now(),c=void 0,l=!1},N=function(){var G;return function(){clearTimeout(G),G=setTimeout(M,i.willEndTimeout)}}(),M=function(L){L===void 0&&(L=!1),i.isStarted&&(i.isMomentum&&L?h({isEnding:!0,isMomentumCancel:!0}):h({isEnding:!0}),i.isMomentum=!1,i.isStarted=!1)},O=PN(f),F=O.observe,j=O.unobserve,H=O.disconnect;return d(e),Qr({on:n,off:r,observe:F,unobserve:j,disconnect:H,feedWheel:f,updateOptions:d})}var BN={active:!0,breakpoints:{},wheelDraggingClass:"is-wheel-dragging",forceWheelAxis:void 0,target:void 0};ad.globalOptions=void 0;var WN=process.env.NODE_ENV!=="production";function ad(e){e===void 0&&(e={});var t,n=function(){};function r(a,i){var s,l,c=i.mergeOptions,f=i.optionsAtMedia,d=c(BN,ad.globalOptions),h=c(d,e);t=f(h);var g=a.internalEngine(),p=(s=t.target)!=null?s:a.containerNode().parentNode,m=(l=t.forceWheelAxis)!=null?l:g.options.axis,x=zN({preventWheelAction:m,reverseSign:[!0,!0,!1]}),y=x.observe(p),b=x.on("wheel",H),w=!1,E;function S(G){try{E=new MouseEvent("mousedown",G.event),j(E)}catch{return WN&&console.warn("Legacy browser requires events-polyfill (https://github.com/xiel/embla-carousel-wheel-gestures#legacy-browsers)"),n()}w=!0,N(),t.wheelDraggingClass&&p.classList.add(t.wheelDraggingClass)}function T(G){w=!1,j(F("mouseup",G)),M(),t.wheelDraggingClass&&p.classList.remove(t.wheelDraggingClass)}function N(){document.documentElement.addEventListener("mousemove",O,!0),document.documentElement.addEventListener("mouseup",O,!0),document.documentElement.addEventListener("mousedown",O,!0)}function M(){document.documentElement.removeEventListener("mousemove",O,!0),document.documentElement.removeEventListener("mouseup",O,!0),document.documentElement.removeEventListener("mousedown",O,!0)}function O(G){w&&G.isTrusted&&G.stopImmediatePropagation()}function F(G,L){var C,_;if(m===g.options.axis){var B=L.axisMovement;C=B[0],_=B[1]}else{var V=L.axisMovement;_=V[0],C=V[1]}return new MouseEvent(G,{clientX:E.clientX+C,clientY:E.clientY+_,screenX:E.screenX+C,screenY:E.screenY+_,movementX:C,movementY:_,button:0,bubbles:!0,cancelable:!0,composed:!0})}function j(G){a.containerNode().dispatchEvent(G)}function H(G){var L=G.axisDelta,C=L[0],_=L[1],B=m==="x"?C:_,V=m==="x"?_:C,D=G.isMomentum&&G.previous&&!G.previous.isMomentum,A=G.isEnding&&!G.isMomentum||D,W=Math.abs(B)>Math.abs(V);W&&!w&&!G.isMomentum&&S(G),w&&(A?T(G):j(F("mousemove",G)))}n=function(){y(),b(),M()}}var o={name:"wheelGestures",options:e,init:r,destroy:function(){return n()}};return o}const q1=u.createContext({}),VN=e=>{const[t,n]=u.useState(!0),[r,o]=u.useState(!0),a=u.useCallback(()=>{e&&e.scrollPrev()},[e]),i=u.useCallback(()=>{e&&e.scrollNext()},[e]),s=u.useCallback(l=>{n(!l.canScrollPrev()),o(!l.canScrollNext())},[]);return u.useEffect(()=>{e&&(s(e),e.on("reInit",s),e.on("select",s))},[e,s]),{prevBtnDisabled:t,nextBtnDisabled:r,onPrevButtonClick:a,onNextButtonClick:i}};function HN({children:e,options:t}){const[n,r]=td({align:"center",dragFree:!0,...t},[ad()]),{prevBtnDisabled:o,nextBtnDisabled:a,onPrevButtonClick:i,onNextButtonClick:s}=VN(r),l=u.useMemo(()=>({emblaRef:n,emblaApi:r,prevBtnDisabled:o,nextBtnDisabled:a,onPrevButtonClick:i,onNextButtonClick:s}),[n,r,o,a,i,s]);return v.jsx(q1.Provider,{value:l,children:e})}const id=()=>u.useContext(q1);function GN({children:e,...t}){return v.jsx(HN,{options:t,children:e})}function UN({children:e,prevButton:t,nextButton:n,className:r}){const{emblaRef:o}=id();return v.jsx("div",{className:"rabbit-ds",children:v.jsxs("div",{className:"relative",children:[v.jsx("div",{className:"overflow-hidden",ref:o,children:v.jsx("div",{className:me("flex touch-pan-y gap-3",r),children:e})}),v.jsx("div",{className:"flex absolute h-full top-1/2 -translate-y-1/2",children:t}),v.jsx("div",{className:"flex absolute h-full top-1/2 right-0 -translate-y-1/2",children:n})]})})}function YN({children:e=v.jsx(Gn,{IconSVG:Rh}),className:t,containerClassName:n,...r}){const{prevBtnDisabled:o,onPrevButtonClick:a}=id();return o?v.jsx("span",{}):v.jsx("div",{className:me("w-[100px] flex items-center justify-start pl-2 bg-gradient-to-r from-white",n),children:v.jsx(Pt,{size:"icon",variant:"text",className:me("bg-transparent",t),onClick:a,...r,children:e})})}function qN({children:e=v.jsx(Gn,{IconSVG:ep}),className:t,containerClassName:n,...r}){const{nextBtnDisabled:o,onNextButtonClick:a}=id();return o?v.jsx("span",{}):v.jsx("div",{className:me("w-[100px] flex items-center justify-end pr-2 bg-gradient-to-l from-white",n),children:v.jsx(Pt,{size:"icon",variant:"text",className:me("bg-transparent",t),onClick:a,...r,children:e})})}K.Add=PS,K.Avatar=Un,K.AvatarFallback=Mp,K.AvatarImage=Yn,K.Button=Pt,K.CardKPI=r9,K.Carousel=GN,K.CarouselContainer=UN,K.CarouselNextButton=qN,K.CarouselPrevButton=YN,K.Checkbox=Ed,K.ChevronLeftCircle=Rh,K.ChevronRightCircle=ep,K.Chip=sy,K.ChipGroup=f9,K.ChipGroupItem=h9,K.CollapseNavigation=tp,K.Company=kS,K.DateTime=bl,K.Dropdown=Wa,K.DropdownCheckboxItem=Ya,K.DropdownContent=go,K.DropdownGroup=Pr,K.DropdownItem=vo,K.DropdownLabel=Ka,K.DropdownPortal=ol,K.DropdownRadioGroup=Ha,K.DropdownRadioItem=qa,K.DropdownSeparator=il,K.DropdownSub=al,K.DropdownSubContent=Ua,K.DropdownSubTrigger=Ga,K.DropdownTrigger=Va,K.EngagementNudgeData=F9,K.GoalsNudgeData=O9,K.HistogramChart=n9,K.Home=OS,K.Icon=Gn,K.Input=Td,K.KebabMenu=np,K.KnowTeamNudgeData=z9,K.Label=Qd,K.LeftNav=k1,K.LeftNavGroup=O1,K.LeftNavHome=N1,K.LeftNavItem=Ku,K.LeftNavItemDropdown=Wa,K.LeftNavItemDropdownCheckboxItem=Ya,K.LeftNavItemDropdownContent=go,K.LeftNavItemDropdownGroup=Pr,K.LeftNavItemDropdownItem=vo,K.LeftNavItemDropdownLabel=Ka,K.LeftNavItemDropdownPortal=ol,K.LeftNavItemDropdownRadioGroup=Ha,K.LeftNavItemDropdownRadioItem=qa,K.LeftNavItemDropdownSeparator=il,K.LeftNavItemDropdownSub=al,K.LeftNavItemDropdownSubContent=Ua,K.LeftNavItemDropdownSubTrigger=Ga,K.LeftNavItemDropdownTrigger=Va,K.LineChart=B8,K.ListItem=sp,K.ListItemLeftIcon=BS,K.ListItemRightIcon=VS,K.ListItemText=jS,K.MeshLogo=NS,K.NavButton=ap,K.NavCollapseButtonL2=D1,K.NavGroupL2=C9,K.NavGroupTitleL2=E9,K.NavItemL2=M9,K.NavL2=S9,K.NavProfilePhoto=wp,K.NudgeAction=P9,K.NudgeCard=L9,K.NudgeCardItem=I9,K.NudgeKebabMenu=W9,K.Person=_S,K.ProgressBar=Ld,K.ProgressInfo=g9,K.ProgressSlider=qy,K.RequestedFeedbackNudgeData=D9,K.ReviewsNudgeData=N9,K.SankeyChart=Z8,K.Search=DS,K.Select=nS,K.SelectContent=Wh,K.SelectGroup=rS,K.SelectItem=Hh,K.SelectLabel=Vh,K.SelectSeparator=Gh,K.SelectTrigger=Bh,K.SelectValue=oS,K.SharePraiseNudgeData=_9,K.SplitButton=m9,K.SplitButtonDropdownCheckboxItem=M1,K.SplitButtonDropdownContent=P1,K.SplitButtonDropdownGroup=S1,K.SplitButtonDropdownItem=$1,K.SplitButtonDropdownLabel=E1,K.SplitButtonDropdownRadioGroup=C1,K.SplitButtonDropdownRadioItem=T1,K.Survey=rp,K.Tabs=gp,K.TabsContent=yp,K.TabsList=vp,K.TabsTrigger=bp,K.Tag=ei,K.Team=AS,K.Tooltip=Zh,K.TooltipContent=pl,K.TooltipPortal=Jh,K.TooltipProvider=Xh,K.TooltipTrigger=Qh,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})});