react-luminus-components 2.0.3-beta.r19-6 → 2.0.3-beta.r19-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +26 -26
- package/dist/{FormDisabledProvider-lKlErIZV.js → FormDisabledProvider-D97cw4w8.js} +1 -1
- package/dist/{FormDisabledProvider-CmnU1xQA.cjs → FormDisabledProvider-DmcOvKn6.cjs} +1 -1
- package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +1 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +5 -5
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +3 -3
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +2 -2
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +4 -4
- package/dist/{nivo-bar-x25pkH7Y.js → nivo-bar-BOjrASSM.js} +88 -81
- package/dist/{nivo-bar-BoNqpopc.cjs → nivo-bar-DIm4VsOp.cjs} +1 -1
- package/dist/{useLocalStorageState-CgixnUsv.js → useLocalStorageState-DVcgyVda.js} +1 -1
- package/dist/{useLocalStorageState-8ZrFwaeC.cjs → useLocalStorageState-DrNytfl8.cjs} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +2 -2
- package/package.json +2 -2
|
@@ -276,7 +276,7 @@ Valid keys: `+JSON.stringify(Object.keys(I),null," "));var A=H(J,F,K,Z,ee+"."+F
|
|
|
276
276
|
To pick up a draggable item, press the space bar.
|
|
277
277
|
While dragging, use the arrow keys to move the item.
|
|
278
278
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
279
|
-
`},Uz={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Hz(e){let{announcements:t=Uz,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Wz}=e;const{announce:a,announcement:o}=Fz(),s=mu("DndLiveRegion"),[l,c]=h.useState(!1);if(h.useEffect(()=>{c(!0)},[]),Bz(h.useMemo(()=>({onDragStart(d){let{active:f}=d;a(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:p}=d;t.onDragMove&&a(t.onDragMove({active:f,over:p}))},onDragOver(d){let{active:f,over:p}=d;a(t.onDragOver({active:f,over:p}))},onDragEnd(d){let{active:f,over:p}=d;a(t.onDragEnd({active:f,over:p}))},onDragCancel(d){let{active:f,over:p}=d;a(t.onDragCancel({active:f,over:p}))}}),[a,t])),!l)return null;const u=h.createElement(h.Fragment,null,h.createElement(Pz,{id:r,value:i.draggable}),h.createElement(Lz,{id:s,announcement:o}));return n?hn.createPortal(u,n):u}var gn;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(gn||(gn={}));function lf(){}function Em(e,t){return h.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Vz(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Nr=Object.freeze({x:0,y:0});function qz(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Yz(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Gz(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Kz(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function ww(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const Zz=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=ww(t,t.left,t.top),a=[];for(const o of r){const{id:s}=o,l=n.get(s);if(l){const c=qz(ww(l),i);a.push({id:s,data:{droppableContainer:o,value:c}})}}return a.sort(Yz)};function Xz(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){const l=t.width*t.height,c=e.width*e.height,u=o*s,d=u/(l+c-u);return Number(d.toFixed(4))}return 0}const Qz=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const a of r){const{id:o}=a,s=n.get(o);if(s){const l=Xz(s,t);l>0&&i.push({id:o,data:{droppableContainer:a,value:l}})}}return i.sort(Gz)};function Jz(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function pk(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Nr}function eW(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((a,o)=>({...a,top:a.top+e*o.y,bottom:a.bottom+e*o.y,left:a.left+e*o.x,right:a.right+e*o.x}),{...t})}}const tW=eW(1);function nW(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function rW(e,t,n){const r=nW(t);if(!r)return e;const{scaleX:i,scaleY:a,x:o,y:s}=r,l=e.left-o-(1-i)*parseFloat(n),c=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}const iW={ignoreTransform:!1};function qs(e,t){t===void 0&&(t=iW);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=rr(e).getComputedStyle(e);c&&(n=rW(n,c,u))}const{top:r,left:i,width:a,height:o,bottom:s,right:l}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:l}}function _w(e){return qs(e,{ignoreTransform:!0})}function aW(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function oW(e,t){return t===void 0&&(t=rr(e).getComputedStyle(e)),t.position==="fixed"}function sW(e,t){t===void 0&&(t=rr(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const i=t[r];return typeof i=="string"?n.test(i):!1})}function fb(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(cb(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!hu(i)||dk(i)||n.includes(i))return n;const a=rr(e).getComputedStyle(i);return i!==e&&sW(i,a)&&n.push(i),oW(i,a)?n:r(i.parentNode)}return e?r(e):n}function mk(e){const[t]=fb(e,1);return t??null}function km(e){return!wh||!e?null:Hs(e)?e:lb(e)?cb(e)||e===Vs(e).scrollingElement?window:hu(e)?e:null:null}function gk(e){return Hs(e)?e.scrollX:e.scrollLeft}function vk(e){return Hs(e)?e.scrollY:e.scrollTop}function ev(e){return{x:gk(e),y:vk(e)}}var _n;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(_n||(_n={}));function bk(e){return!wh||!e?!1:e===document.scrollingElement}function yk(e){const t={x:0,y:0},n=bk(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,o=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:i,isLeft:a,isBottom:o,isRight:s,maxScroll:r,minScroll:t}}const lW={x:.2,y:.2};function cW(e,t,n,r,i){let{top:a,left:o,right:s,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=lW);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=yk(e),p={x:0,y:0},g={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!c&&a<=t.top+m.height?(p.y=_n.Backward,g.y=r*Math.abs((t.top+m.height-a)/m.height)):!u&&l>=t.bottom-m.height&&(p.y=_n.Forward,g.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!f&&s>=t.right-m.width?(p.x=_n.Forward,g.x=r*Math.abs((t.right-m.width-s)/m.width)):!d&&o<=t.left+m.width&&(p.x=_n.Backward,g.x=r*Math.abs((t.left+m.width-o)/m.width)),{direction:p,speed:g}}function uW(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:o}=window;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function xk(e){return e.reduce((t,n)=>ss(t,ev(n)),Nr)}function dW(e){return e.reduce((t,n)=>t+gk(n),0)}function fW(e){return e.reduce((t,n)=>t+vk(n),0)}function hW(e,t){if(t===void 0&&(t=qs),!e)return;const{top:n,left:r,bottom:i,right:a}=t(e);mk(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const pW=[["x",["left","right"],dW],["y",["top","bottom"],fW]];class hb{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=fb(n),i=xk(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,o,s]of pW)for(const l of o)Object.defineProperty(this,l,{get:()=>{const c=s(r),u=i[a]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}let Yl=class{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}};function mW(e){const{EventTarget:t}=rr(e);return e instanceof t?e:Vs(e)}function Tm(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var hr;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(hr||(hr={}));function Cw(e){e.preventDefault()}function gW(e){e.stopPropagation()}var Ot;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ot||(Ot={}));const wk={start:[Ot.Space,Ot.Enter],cancel:[Ot.Esc],end:[Ot.Space,Ot.Enter,Ot.Tab]},vW=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ot.Right:return{...n,x:n.x+25};case Ot.Left:return{...n,x:n.x-25};case Ot.Down:return{...n,y:n.y+25};case Ot.Up:return{...n,y:n.y-25}}};let pb=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Yl(Vs(n)),this.windowListeners=new Yl(rr(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(hr.Resize,this.handleCancel),this.windowListeners.add(hr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(hr.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&hW(r),n(Nr)}handleKeyDown(t){if(db(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:a=wk,coordinateGetter:o=vW,scrollBehavior:s="smooth"}=i,{code:l}=t;if(a.end.includes(l)){this.handleEnd(t);return}if(a.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:Nr;this.referenceCoordinates||(this.referenceCoordinates=u);const d=o(t,{active:n,context:r.current,currentCoordinates:u});if(d){const f=sf(d,u),p={x:0,y:0},{scrollableAncestors:g}=r.current;for(const m of g){const v=t.code,{isTop:x,isRight:_,isLeft:w,isBottom:C,maxScroll:y,minScroll:$}=yk(m),E=uW(m),M={x:Math.min(v===Ot.Right?E.right-E.width/2:E.right,Math.max(v===Ot.Right?E.left:E.left+E.width/2,d.x)),y:Math.min(v===Ot.Down?E.bottom-E.height/2:E.bottom,Math.max(v===Ot.Down?E.top:E.top+E.height/2,d.y))},k=v===Ot.Right&&!_||v===Ot.Left&&!w,R=v===Ot.Down&&!C||v===Ot.Up&&!x;if(k&&M.x!==d.x){const S=m.scrollLeft+f.x,T=v===Ot.Right&&S<=y.x||v===Ot.Left&&S>=$.x;if(T&&!f.y){m.scrollTo({left:S,behavior:s});return}T?p.x=m.scrollLeft-S:p.x=v===Ot.Right?m.scrollLeft-y.x:m.scrollLeft-$.x,p.x&&m.scrollBy({left:-p.x,behavior:s});break}else if(R&&M.y!==d.y){const S=m.scrollTop+f.y,T=v===Ot.Down&&S<=y.y||v===Ot.Up&&S>=$.y;if(T&&!f.x){m.scrollTo({top:S,behavior:s});return}T?p.y=m.scrollTop-S:p.y=v===Ot.Down?m.scrollTop-y.y:m.scrollTop-$.y,p.y&&m.scrollBy({top:-p.y,behavior:s});break}}this.handleMove(t,ss(sf(d,this.referenceCoordinates),p))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};pb.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=wk,onActivation:i}=t,{active:a}=n;const{code:o}=e.nativeEvent;if(r.start.includes(o)){const s=a.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function $w(e){return!!(e&&"distance"in e)}function Sw(e){return!!(e&&"delay"in e)}class mb{constructor(t,n,r){var i;r===void 0&&(r=mW(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:a}=t,{target:o}=a;this.props=t,this.events=n,this.document=Vs(o),this.documentListeners=new Yl(this.document),this.listeners=new Yl(r),this.windowListeners=new Yl(rr(o)),this.initialCoordinates=(i=Jg(a))!=null?i:Nr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(hr.Resize,this.handleCancel),this.windowListeners.add(hr.DragStart,Cw),this.windowListeners.add(hr.VisibilityChange,this.handleCancel),this.windowListeners.add(hr.ContextMenu,Cw),this.documentListeners.add(hr.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Sw(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if($w(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(hr.Click,gW,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(hr.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:a}=this,{onMove:o,options:{activationConstraint:s}}=a;if(!i)return;const l=(n=Jg(t))!=null?n:Nr,c=sf(i,l);if(!r&&s){if($w(s)){if(s.tolerance!=null&&Tm(c,s.tolerance))return this.handleCancel();if(Tm(c,s.distance))return this.handleStart()}if(Sw(s)&&Tm(c,s.tolerance))return this.handleCancel();this.handlePending(s,c);return}t.cancelable&&t.preventDefault(),o(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Ot.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const bW={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};let _k=class extends mb{constructor(t){const{event:n}=t,r=Vs(n.target);super(t,bW,r)}};_k.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const yW={move:{name:"mousemove"},end:{name:"mouseup"}};var tv;(function(e){e[e.RightClick=2]="RightClick"})(tv||(tv={}));let Ck=class extends mb{constructor(t){super(t,yW,Vs(t.event.target))}};Ck.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===tv.RightClick?!1:(r==null||r({event:n}),!0)}}];const Om={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};let $k=class extends mb{constructor(t){super(t,Om)}static setup(){return window.addEventListener(Om.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Om.move.name,t)};function t(){}}};$k.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var Gl;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Gl||(Gl={}));var cf;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(cf||(cf={}));function xW(e){let{acceleration:t,activator:n=Gl.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=cf.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:f}=e;const p=_W({delta:d,disabled:!a}),[g,m]=Rz(),v=h.useRef({x:0,y:0}),x=h.useRef({x:0,y:0}),_=h.useMemo(()=>{switch(n){case Gl.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Gl.DraggableRect:return i}},[n,i,l]),w=h.useRef(null),C=h.useCallback(()=>{const $=w.current;if(!$)return;const E=v.current.x*x.current.x,M=v.current.y*x.current.y;$.scrollBy(E,M)},[]),y=h.useMemo(()=>s===cf.TreeOrder?[...c].reverse():c,[s,c]);h.useEffect(()=>{if(!a||!c.length||!_){m();return}for(const $ of y){if((r==null?void 0:r($))===!1)continue;const E=c.indexOf($),M=u[E];if(!M)continue;const{direction:k,speed:R}=cW($,M,_,t,f);for(const S of["x","y"])p[S][k[S]]||(R[S]=0,k[S]=0);if(R.x>0||R.y>0){m(),w.current=$,g(C,o),v.current=R,x.current=k;return}}v.current={x:0,y:0},x.current={x:0,y:0},m()},[t,C,r,m,a,o,JSON.stringify(_),JSON.stringify(p),g,c,y,u,JSON.stringify(f)])}const wW={x:{[_n.Backward]:!1,[_n.Forward]:!1},y:{[_n.Backward]:!1,[_n.Forward]:!1}};function _W(e){let{delta:t,disabled:n}=e;const r=Qg(t);return pu(i=>{if(n||!r||!i)return wW;const a={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[_n.Backward]:i.x[_n.Backward]||a.x===-1,[_n.Forward]:i.x[_n.Forward]||a.x===1},y:{[_n.Backward]:i.y[_n.Backward]||a.y===-1,[_n.Forward]:i.y[_n.Forward]||a.y===1}}},[n,t,r])}function CW(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return pu(i=>{var a;return t==null?null:(a=r??i)!=null?a:null},[r,t])}function $W(e,t){return h.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,a=i.activators.map(o=>({eventName:o.eventName,handler:t(o.handler,r)}));return[...n,...a]},[]),[e,t])}var Sc;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Sc||(Sc={}));var nv;(function(e){e.Optimized="optimized"})(nv||(nv={}));const Ew=new Map;function SW(e,t){let{dragging:n,dependencies:r,config:i}=t;const[a,o]=h.useState(null),{frequency:s,measure:l,strategy:c}=i,u=h.useRef(e),d=v(),f=Cc(d),p=h.useCallback(function(x){x===void 0&&(x=[]),!f.current&&o(_=>_===null?x:_.concat(x.filter(w=>!_.includes(w))))},[f]),g=h.useRef(null),m=pu(x=>{if(d&&!n)return Ew;if(!x||x===Ew||u.current!==e||a!=null){const _=new Map;for(let w of e){if(!w)continue;if(a&&a.length>0&&!a.includes(w.id)&&w.rect.current){_.set(w.id,w.rect.current);continue}const C=w.node.current,y=C?new hb(l(C),C):null;w.rect.current=y,y&&_.set(w.id,y)}return _}return x},[e,a,n,d,l]);return h.useEffect(()=>{u.current=e},[e]),h.useEffect(()=>{d||p()},[n,d]),h.useEffect(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),h.useEffect(()=>{d||typeof s!="number"||g.current!==null||(g.current=setTimeout(()=>{p(),g.current=null},s))},[s,d,p,...r]),{droppableRects:m,measureDroppableContainers:p,measuringScheduled:a!=null};function v(){switch(c){case Sc.Always:return!1;case Sc.BeforeDragging:return n;default:return!n}}}function Sk(e,t){return pu(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function EW(e,t){return Sk(e,t)}function kW(e){let{callback:t,disabled:n}=e;const r=ub(t),i=h.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(r)},[r,n]);return h.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function _h(e){let{callback:t,disabled:n}=e;const r=ub(t),i=h.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(r)},[n]);return h.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function TW(e){return new hb(qs(e),e)}function kw(e,t,n){t===void 0&&(t=TW);const[r,i]=h.useState(null);function a(){i(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u})}const o=kW({callback(l){if(e)for(const c of l){const{type:u,target:d}=c;if(u==="childList"&&d instanceof HTMLElement&&d.contains(e)){a();break}}}}),s=_h({callback:a});return ti(()=>{a(),e?(s==null||s.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),o==null||o.disconnect())},[e]),r}function OW(e){const t=Sk(e);return pk(e,t)}const Tw=[];function MW(e){const t=h.useRef(e),n=pu(r=>e?r&&r!==Tw&&e&&t.current&&e.parentNode===t.current.parentNode?r:fb(e):Tw,[e]);return h.useEffect(()=>{t.current=e},[e]),n}function AW(e){const[t,n]=h.useState(null),r=h.useRef(e),i=h.useCallback(a=>{const o=km(a.target);o&&n(s=>s?(s.set(o,ev(o)),new Map(s)):null)},[]);return h.useEffect(()=>{const a=r.current;if(e!==a){o(a);const s=e.map(l=>{const c=km(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,ev(c)]):null}).filter(l=>l!=null);n(s.length?new Map(s):null),r.current=e}return()=>{o(e),o(a)};function o(s){s.forEach(l=>{const c=km(l);c==null||c.removeEventListener("scroll",i)})}},[i,e]),h.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,o)=>ss(a,o),Nr):xk(e):Nr,[e,t])}function Ow(e,t){t===void 0&&(t=[]);const n=h.useRef(null);return h.useEffect(()=>{n.current=null},t),h.useEffect(()=>{const r=e!==Nr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?sf(e,n.current):Nr}function RW(e){h.useEffect(()=>{if(!wh)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function jW(e,t){return h.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:a}=r;return n[i]=o=>{a(o,t)},n},{}),[e,t])}function Ek(e){return h.useMemo(()=>e?aW(e):null,[e])}const Mw=[];function DW(e,t){t===void 0&&(t=qs);const[n]=e,r=Ek(n?rr(n):null),[i,a]=h.useState(Mw);function o(){a(()=>e.length?e.map(l=>bk(l)?r:new hb(t(l),l)):Mw)}const s=_h({callback:o});return ti(()=>{s==null||s.disconnect(),o(),e.forEach(l=>s==null?void 0:s.observe(l))},[e]),i}function NW(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return hu(t)?t:e}function IW(e){let{measure:t}=e;const[n,r]=h.useState(null),i=h.useCallback(c=>{for(const{target:u}of c)if(hu(u)){r(d=>{const f=t(u);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),a=_h({callback:i}),o=h.useCallback(c=>{const u=NW(c);a==null||a.disconnect(),u&&(a==null||a.observe(u)),r(u?t(u):null)},[t,a]),[s,l]=of(o);return h.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const PW=[{sensor:_k,options:{}},{sensor:pb,options:{}}],LW={current:{}},$d={draggable:{measure:_w},droppable:{measure:_w,strategy:Sc.WhileDragging,frequency:nv.Optimized},dragOverlay:{measure:qs}};let Kl=class extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}};const FW={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Kl,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:lf},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:$d,measureDroppableContainers:lf,windowRect:null,measuringScheduled:!1},BW={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:lf,draggableNodes:new Map,over:null,measureDroppableContainers:lf},Ch=h.createContext(BW),kk=h.createContext(FW);function zW(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Kl}}}function WW(e,t){switch(t.type){case gn.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case gn.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case gn.DragEnd:case gn.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case gn.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Kl(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case gn.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const o=new Kl(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case gn.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Kl(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function UW(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=h.useContext(Ch),a=Qg(r),o=Qg(n==null?void 0:n.id);return h.useEffect(()=>{if(!t&&!r&&a&&o!=null){if(!db(a)||document.activeElement===a.target)return;const s=i.get(o);if(!s)return;const{activatorNode:l,node:c}=s;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const d=Nz(u);if(d){d.focus();break}}})}},[r,t,i,o,a]),null}function HW(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,a)=>a({transform:i,...r}),n):n}function VW(e){return h.useMemo(()=>({draggable:{...$d.draggable,...e==null?void 0:e.draggable},droppable:{...$d.droppable,...e==null?void 0:e.droppable},dragOverlay:{...$d.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function qW(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const a=h.useRef(!1),{x:o,y:s}=typeof i=="boolean"?{x:i,y:i}:i;ti(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;const l=t==null?void 0:t.node.current;if(!l||l.isConnected===!1)return;const c=n(l),u=pk(c,r);if(o||(u.x=0),s||(u.y=0),a.current=!0,Math.abs(u.x)>0||Math.abs(u.y)>0){const d=mk(l);d&&d.scrollBy({top:u.y,left:u.x})}},[t,o,s,r,n])}const Tk=h.createContext({...Nr,scaleX:1,scaleY:1});var Qi;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Qi||(Qi={}));const YW=h.memo(function(e){var t,n,r,i;let{id:a,accessibility:o,autoScroll:s=!0,children:l,sensors:c=PW,collisionDetection:u=Qz,measuring:d,modifiers:f,...p}=e;const g=h.useReducer(WW,void 0,zW),[m,v]=g,[x,_]=zz(),[w,C]=h.useState(Qi.Uninitialized),y=w===Qi.Initialized,{draggable:{active:$,nodes:E,translate:M},droppable:{containers:k}}=m,R=$!=null?E.get($):null,S=h.useRef({initial:null,translated:null}),T=h.useMemo(()=>{var Ge;return $!=null?{id:$,data:(Ge=R==null?void 0:R.data)!=null?Ge:LW,rect:S}:null},[$,R]),j=h.useRef(null),[D,N]=h.useState(null),[O,P]=h.useState(null),W=Cc(p,Object.values(p)),U=mu("DndDescribedBy",a),I=h.useMemo(()=>k.getEnabled(),[k]),z=VW(d),{droppableRects:Y,measureDroppableContainers:X,measuringScheduled:K}=SW(I,{dragging:y,dependencies:[M.x,M.y],config:z.droppable}),Z=CW(E,$),ee=h.useMemo(()=>O?Jg(O):null,[O]),J=Mt(),B=EW(Z,z.draggable.measure);qW({activeNode:$!=null?E.get($):null,config:J.layoutShiftCompensation,initialRect:B,measure:z.draggable.measure});const L=kw(Z,z.draggable.measure,B),F=kw(Z?Z.parentElement:null),H=h.useRef({activatorEvent:null,active:null,activeNode:Z,collisionRect:null,collisions:null,droppableRects:Y,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:k,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),A=k.getNodeFor((t=H.current.over)==null?void 0:t.id),Q=IW({measure:z.dragOverlay.measure}),q=(n=Q.nodeRef.current)!=null?n:Z,G=y?(r=Q.rect)!=null?r:L:null,oe=!!(Q.nodeRef.current&&Q.rect),re=OW(oe?null:L),ne=Ek(q?rr(q):null),se=MW(y?A??Z:null),fe=DW(se),_e=HW(f,{transform:{x:M.x-re.x,y:M.y-re.y,scaleX:1,scaleY:1},activatorEvent:O,active:T,activeNodeRect:L,containerNodeRect:F,draggingNodeRect:G,over:H.current.over,overlayNodeRect:Q.rect,scrollableAncestors:se,scrollableAncestorRects:fe,windowRect:ne}),xe=ee?ss(ee,M):null,ye=AW(se),de=Ow(ye),be=Ow(ye,[L]),le=ss(_e,de),Ee=G?tW(G,_e):null,Le=T&&Ee?u({active:T,collisionRect:Ee,droppableRects:Y,droppableContainers:I,pointerCoordinates:xe}):null,Ft=Kz(Le,"id"),[We,mt]=h.useState(null),wt=oe?_e:ss(_e,be),tn=Jz(wt,(i=We==null?void 0:We.rect)!=null?i:null,L),ke=h.useRef(null),Re=h.useCallback((Ge,De)=>{let{sensor:Be,options:Xe}=De;if(j.current==null)return;const Ne=E.get(j.current);if(!Ne)return;const Qe=Ge.nativeEvent,ft=new Be({active:j.current,activeNode:Ne,event:Qe,options:Xe,context:H,onAbort(je){if(!E.get(je))return;const{onDragAbort:Te}=W.current,Ue={id:je};Te==null||Te(Ue),x({type:"onDragAbort",event:Ue})},onPending(je,Te,Ue,bt){if(!E.get(je))return;const{onDragPending:Je}=W.current,ht={id:je,constraint:Te,initialCoordinates:Ue,offset:bt};Je==null||Je(ht),x({type:"onDragPending",event:ht})},onStart(je){const Te=j.current;if(Te==null)return;const Ue=E.get(Te);if(!Ue)return;const{onDragStart:bt}=W.current,Je={activatorEvent:Qe,active:{id:Te,data:Ue.data,rect:S}};hn.unstable_batchedUpdates(()=>{bt==null||bt(Je),C(Qi.Initializing),v({type:gn.DragStart,initialCoordinates:je,active:Te}),x({type:"onDragStart",event:Je}),N(ke.current),P(Qe)})},onMove(je){v({type:gn.DragMove,coordinates:je})},onEnd:tt(gn.DragEnd),onCancel:tt(gn.DragCancel)});ke.current=ft;function tt(je){return async function(){const{active:Te,collisions:Ue,over:bt,scrollAdjustedTranslate:Je}=H.current;let ht=null;if(Te&&Je){const{cancelDrop:en}=W.current;ht={activatorEvent:Qe,active:Te,collisions:Ue,delta:Je,over:bt},je===gn.DragEnd&&typeof en=="function"&&await Promise.resolve(en(ht))&&(je=gn.DragCancel)}j.current=null,hn.unstable_batchedUpdates(()=>{v({type:je}),C(Qi.Uninitialized),mt(null),N(null),P(null),ke.current=null;const en=je===gn.DragEnd?"onDragEnd":"onDragCancel";if(ht){const Bt=W.current[en];Bt==null||Bt(ht),x({type:en,event:ht})}})}}},[E]),gt=h.useCallback((Ge,De)=>(Be,Xe)=>{const Ne=Be.nativeEvent,Qe=E.get(Xe);if(j.current!==null||!Qe||Ne.dndKit||Ne.defaultPrevented)return;const ft={active:Qe};Ge(Be,De.options,ft)===!0&&(Ne.dndKit={capturedBy:De.sensor},j.current=Xe,Re(Be,De))},[E,Re]),Ve=$W(c,gt);RW(c),ti(()=>{L&&w===Qi.Initializing&&C(Qi.Initialized)},[L,w]),h.useEffect(()=>{const{onDragMove:Ge}=W.current,{active:De,activatorEvent:Be,collisions:Xe,over:Ne}=H.current;if(!De||!Be)return;const Qe={active:De,activatorEvent:Be,collisions:Xe,delta:{x:le.x,y:le.y},over:Ne};hn.unstable_batchedUpdates(()=>{Ge==null||Ge(Qe),x({type:"onDragMove",event:Qe})})},[le.x,le.y]),h.useEffect(()=>{const{active:Ge,activatorEvent:De,collisions:Be,droppableContainers:Xe,scrollAdjustedTranslate:Ne}=H.current;if(!Ge||j.current==null||!De||!Ne)return;const{onDragOver:Qe}=W.current,ft=Xe.get(Ft),tt=ft&&ft.rect.current?{id:ft.id,rect:ft.rect.current,data:ft.data,disabled:ft.disabled}:null,je={active:Ge,activatorEvent:De,collisions:Be,delta:{x:Ne.x,y:Ne.y},over:tt};hn.unstable_batchedUpdates(()=>{mt(tt),Qe==null||Qe(je),x({type:"onDragOver",event:je})})},[Ft]),ti(()=>{H.current={activatorEvent:O,active:T,activeNode:Z,collisionRect:Ee,collisions:Le,droppableRects:Y,draggableNodes:E,draggingNode:q,draggingNodeRect:G,droppableContainers:k,over:We,scrollableAncestors:se,scrollAdjustedTranslate:le},S.current={initial:G,translated:Ee}},[T,Z,Le,Ee,E,q,G,Y,k,We,se,le]),xW({...J,delta:M,draggingRect:Ee,pointerCoordinates:xe,scrollableAncestors:se,scrollableAncestorRects:fe});const vt=h.useMemo(()=>({active:T,activeNode:Z,activeNodeRect:L,activatorEvent:O,collisions:Le,containerNodeRect:F,dragOverlay:Q,draggableNodes:E,droppableContainers:k,droppableRects:Y,over:We,measureDroppableContainers:X,scrollableAncestors:se,scrollableAncestorRects:fe,measuringConfiguration:z,measuringScheduled:K,windowRect:ne}),[T,Z,L,O,Le,F,Q,E,k,Y,We,X,se,fe,z,K,ne]),at=h.useMemo(()=>({activatorEvent:O,activators:Ve,active:T,activeNodeRect:L,ariaDescribedById:{draggable:U},dispatch:v,draggableNodes:E,over:We,measureDroppableContainers:X}),[O,Ve,T,L,v,U,E,We,X]);return h.createElement(hk.Provider,{value:_},h.createElement(Ch.Provider,{value:at},h.createElement(kk.Provider,{value:vt},h.createElement(Tk.Provider,{value:tn},l)),h.createElement(UW,{disabled:(o==null?void 0:o.restoreFocus)===!1})),h.createElement(Hz,{...o,hiddenTextDescribedById:U}));function Mt(){const Ge=(D==null?void 0:D.autoScrollEnabled)===!1,De=typeof s=="object"?s.enabled===!1:s===!1,Be=y&&!Ge&&!De;return typeof s=="object"?{...s,enabled:Be}:{enabled:Be}}}),GW=h.createContext(null),Aw="button",KW="Draggable";function ZW(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const a=mu(KW),{activators:o,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:f}=h.useContext(Ch),{role:p=Aw,roleDescription:g="draggable",tabIndex:m=0}=i??{},v=(l==null?void 0:l.id)===t,x=h.useContext(v?Tk:GW),[_,w]=of(),[C,y]=of(),$=jW(o,t),E=Cc(n);ti(()=>(d.set(t,{id:t,key:a,node:_,activatorNode:C,data:E}),()=>{const k=d.get(t);k&&k.key===a&&d.delete(t)}),[d,t]);const M=h.useMemo(()=>({role:p,tabIndex:m,"aria-disabled":r,"aria-pressed":v&&p===Aw?!0:void 0,"aria-roledescription":g,"aria-describedby":u.draggable}),[r,p,m,v,g,u.draggable]);return{active:l,activatorEvent:s,activeNodeRect:c,attributes:M,isDragging:v,listeners:r?void 0:$,node:_,over:f,setNodeRef:w,setActivatorNodeRef:y,transform:x}}function XW(){return h.useContext(kk)}const QW="Droppable",JW={timeout:25};function eU(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const a=mu(QW),{active:o,dispatch:s,over:l,measureDroppableContainers:c}=h.useContext(Ch),u=h.useRef({disabled:n}),d=h.useRef(!1),f=h.useRef(null),p=h.useRef(null),{disabled:g,updateMeasurementsFor:m,timeout:v}={...JW,...i},x=Cc(m??r),_=h.useCallback(()=>{if(!d.current){d.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{c(Array.isArray(x.current)?x.current:[x.current]),p.current=null},v)},[v]),w=_h({callback:_,disabled:g||!o}),C=h.useCallback((M,k)=>{w&&(k&&(w.unobserve(k),d.current=!1),M&&w.observe(M))},[w]),[y,$]=of(C),E=Cc(t);return h.useEffect(()=>{!w||!y.current||(w.disconnect(),d.current=!1,w.observe(y.current))},[y,w]),h.useEffect(()=>(s({type:gn.RegisterDroppable,element:{id:r,key:a,disabled:n,node:y,rect:f,data:E}}),()=>s({type:gn.UnregisterDroppable,key:a,id:r})),[r]),h.useEffect(()=>{n!==u.current.disabled&&(s({type:gn.SetDroppableDisabled,id:r,key:a,disabled:n}),u.current.disabled=n)},[r,a,n,s]),{active:o,rect:f,isOver:(l==null?void 0:l.id)===r,node:y,over:l,setNodeRef:$}}function gb(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function tU(e,t){return e.reduce((n,r,i)=>{const a=t.get(r);return a&&(n[i]=a),n},Array(e.length))}function Xu(e){return e!==null&&e>=0}function nU(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function rU(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Qu={scaleX:1,scaleY:1},iU=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:i,overIndex:a,index:o}=e;const s=(t=n[i])!=null?t:r;if(!s)return null;const l=aU(n,o,i);if(o===i){const c=n[a];return c?{x:i<a?c.left+c.width-(s.left+s.width):c.left-s.left,y:0,...Qu}:null}return o>i&&o<=a?{x:-s.width-l,y:0,...Qu}:o<i&&o>=a?{x:s.width+l,y:0,...Qu}:{x:0,y:0,...Qu}};function aU(e,t,n){const r=e[t],i=e[t-1],a=e[t+1];return!r||!i&&!a?0:n<t?i?r.left-(i.left+i.width):a.left-(r.left+r.width):a?a.left-(r.left+r.width):r.left-(i.left+i.width)}const Ok=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const a=gb(t,r,n),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},Mk="Sortable",Ak=h.createContext({activeIndex:-1,containerId:Mk,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Ok,disabled:{draggable:!1,droppable:!1}});function oU(e){let{children:t,id:n,items:r,strategy:i=Ok,disabled:a=!1}=e;const{active:o,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=XW(),d=mu(Mk,n),f=s.rect!==null,p=h.useMemo(()=>r.map($=>typeof $=="object"&&"id"in $?$.id:$),[r]),g=o!=null,m=o?p.indexOf(o.id):-1,v=c?p.indexOf(c.id):-1,x=h.useRef(p),_=!nU(p,x.current),w=v!==-1&&m===-1||_,C=rU(a);ti(()=>{_&&g&&u(p)},[_,p,g,u]),h.useEffect(()=>{x.current=p},[p]);const y=h.useMemo(()=>({activeIndex:m,containerId:d,disabled:C,disableTransforms:w,items:p,overIndex:v,useDragOverlay:f,sortedRects:tU(p,l),strategy:i}),[m,d,C.draggable,C.droppable,w,p,v,l,f,i]);return h.createElement(Ak.Provider,{value:y},t)}const sU=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return gb(n,r,i).indexOf(t)},lU=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:l,transition:c}=e;return!c||!r||s!==a&&i===o?!1:n?!0:o!==i&&t===l},cU={duration:200,easing:"ease"},Rk="transform",uU=$c.Transition.toString({property:Rk,duration:0,easing:"linear"}),dU={roleDescription:"sortable"};function fU(e){let{disabled:t,index:n,node:r,rect:i}=e;const[a,o]=h.useState(null),s=h.useRef(n);return ti(()=>{if(!t&&n!==s.current&&r.current){const l=i.current;if(l){const c=qs(r.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&o(u)}}n!==s.current&&(s.current=n)},[t,n,r,i]),h.useEffect(()=>{a&&o(null)},[a]),a}function hU(e){let{animateLayoutChanges:t=lU,attributes:n,disabled:r,data:i,getNewIndex:a=sU,id:o,strategy:s,resizeObserverConfig:l,transition:c=cU}=e;const{items:u,containerId:d,activeIndex:f,disabled:p,disableTransforms:g,sortedRects:m,overIndex:v,useDragOverlay:x,strategy:_}=h.useContext(Ak),w=pU(r,p),C=u.indexOf(o),y=h.useMemo(()=>({sortable:{containerId:d,index:C,items:u},...i}),[d,i,C,u]),$=h.useMemo(()=>u.slice(u.indexOf(o)),[u,o]),{rect:E,node:M,isOver:k,setNodeRef:R}=eU({id:o,data:y,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:$,...l}}),{active:S,activatorEvent:T,activeNodeRect:j,attributes:D,setNodeRef:N,listeners:O,isDragging:P,over:W,setActivatorNodeRef:U,transform:I}=ZW({id:o,data:y,attributes:{...dU,...n},disabled:w.draggable}),z=Az(R,N),Y=!!S,X=Y&&!g&&Xu(f)&&Xu(v),K=!x&&P,Z=K&&X?I:null,ee=X?Z??(s??_)({rects:m,activeNodeRect:j,activeIndex:f,overIndex:v,index:C}):null,J=Xu(f)&&Xu(v)?a({id:o,items:u,activeIndex:f,overIndex:v}):C,B=S==null?void 0:S.id,L=h.useRef({activeId:B,items:u,newIndex:J,containerId:d}),F=u!==L.current.items,H=t({active:S,containerId:d,isDragging:P,isSorting:Y,id:o,index:C,items:u,newIndex:L.current.newIndex,previousItems:L.current.items,previousContainerId:L.current.containerId,transition:c,wasDragging:L.current.activeId!=null}),A=fU({disabled:!H,index:C,node:M,rect:E});return h.useEffect(()=>{Y&&L.current.newIndex!==J&&(L.current.newIndex=J),d!==L.current.containerId&&(L.current.containerId=d),u!==L.current.items&&(L.current.items=u)},[Y,J,d,u]),h.useEffect(()=>{if(B===L.current.activeId)return;if(B!=null&&L.current.activeId==null){L.current.activeId=B;return}const q=setTimeout(()=>{L.current.activeId=B},50);return()=>clearTimeout(q)},[B]),{active:S,activeIndex:f,attributes:D,data:y,rect:E,index:C,newIndex:J,items:u,isOver:k,isSorting:Y,isDragging:P,listeners:O,node:M,overIndex:v,over:W,setNodeRef:z,setActivatorNodeRef:U,setDroppableNodeRef:R,setDraggableNodeRef:N,transform:A??ee,transition:Q()};function Q(){if(A||F&&L.current.newIndex===C)return uU;if(!(K&&!db(T)||!c)&&(Y||H))return $c.Transition.toString({...c,property:Rk})}}function pU(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}Ot.Down,Ot.Right,Ot.Up,Ot.Left;const mU="_table-scroll-container_8x5tv_1",gU="_full-screen_8x5tv_8",vU="_table_8x5tv_1",bU="_thead_8x5tv_24",yU="_tbody_8x5tv_25",xU="_th_8x5tv_24",wU="_pinned_8x5tv_38",_U="_sorted_8x5tv_41",CU="_resizer_8x5tv_44",$U="_resizer-bar_8x5tv_58",SU="_reorder-handle_8x5tv_64",EU="_dragging_8x5tv_69",kU="_row-selection-info_8x5tv_73",TU="_tr_8x5tv_77",OU="_td_8x5tv_85",MU="_left_8x5tv_102",AU="_center_8x5tv_106",RU="_right_8x5tv_110",jU="_first-right_8x5tv_119",DU="_grouped_8x5tv_127",NU="_expanded_8x5tv_131",IU="_selected-cell_8x5tv_135",PU="_sm_8x5tv_139",LU="_lg_8x5tv_144",FU="_clickable_8x5tv_149",BU="_cell-selected-row_8x5tv_152",zU="_cell-selection-disabled_8x5tv_160",WU="_own-click_8x5tv_179",UU="_expander-button_8x5tv_185",HU="_empty-table-alert_8x5tv_190",VU="_remove-filters-button-wrapper_8x5tv_198",qU="_remove-filters-button_8x5tv_198",YU="_bottom-bar_8x5tv_228",GU="_left-items_8x5tv_244",KU="_pagination_8x5tv_250",ZU="_page-info-text_8x5tv_256",XU="_right-items_8x5tv_262",QU="_sizing-toggle_8x5tv_268",JU="_sizing-menu_8x5tv_283",eH="_sizing-menu-item_8x5tv_287",He={tableScrollContainer:mU,fullScreen:gU,table:vU,thead:bU,tbody:yU,th:xU,pinned:wU,sorted:_U,resizer:CU,resizerBar:$U,reorderHandle:SU,dragging:EU,rowSelectionInfo:kU,tr:TU,td:OU,left:MU,center:AU,right:RU,firstRight:jU,grouped:DU,expanded:NU,selectedCell:IU,sm:PU,lg:LU,clickable:FU,cellSelectedRow:BU,cellSelectionDisabled:zU,ownClick:WU,expanderButton:UU,emptyTableAlert:HU,removeFiltersButtonWrapper:VU,removeFiltersButton:qU,bottomBar:YU,leftItems:GU,pagination:KU,pageInfoText:ZU,rightItems:XU,sizingToggle:QU,sizingMenu:JU,sizingMenuItem:eH},tH="_column-menu_1r3rf_1",nH="_column-menu-item_1r3rf_5",Ju={columnMenu:tH,columnMenuItem:nH},rH=({header:e,table:t,className:n,IconComponent:r,texts:i,columnMenuPos:a,onColumnMenu:o,dragEnabled:s,style:l})=>{var M,k;const{attributes:c,listeners:u,setNodeRef:d,transform:f,isDragging:p}=hU({id:e.id,disabled:!s}),g={...l??{},flex:`${e.column.getSize()} 1 0`,minWidth:e.column.getSize(),...s?{transform:$c.Translate.toString(f)}:{}},m=R=>R.column.getCanSort()?"button":void 0,v=R=>{const S=R.column.getIsSorted(),T=R.column.getIsGrouped();return me("th",He.th,{sorted:S,[He.sorted]:S},{grouped:T,[He.grouped]:T})},x=R=>{const S=R.column.getCanSort();return me("d-flex flex-row align-items-center justify-content-between",{"cursor-pointer":S})},_=R=>{R.preventDefault(),o({id:e.id,x:R.clientX,y:R.clientY})},w=()=>o(null),C=(a==null?void 0:a.id)===e.id,y=e.column.getIsPinned(),$=e.column.getIsGrouped(),E=(k=(M=e.column.columnDef)==null?void 0:M.meta)==null?void 0:k.alwaysPinned;return b.jsxs("div",{className:me(n,v(e.getContext())),ref:d,style:g,onContextMenu:_,children:[b.jsx(Mn,{autoClose:!0,show:C,onToggle:R=>!R&&w(),children:hn.createPortal(b.jsxs(Mn.Menu,{show:!0,className:me("shadow-lg column-menu",Ju.columnMenu),style:{position:"fixed",top:C?a.y??0:0,left:C?a.x??0:0,zIndex:9999,display:C?"block":"none"},onClick:w,children:[y!=="right"&&e.column.getCanPin()&&!E?b.jsx(Mn.Item,{className:me(Ju.columnMenuItem,{"text-danger":y}),onClick:()=>e.column.pin(y==="left"?!1:"left"),children:y==="left"?i.columnUnpin:i.columnPinLeft}):null,y!=="left"&&e.column.getCanPin()&&!E?b.jsx(Mn.Item,{className:me(Ju.columnMenuItem,{"text-danger":y}),onClick:()=>e.column.pin(y==="right"?!1:"right"),children:y==="right"?i.columnUnpin:i.columnPinRight}):null,e.column.getCanGroup()?b.jsx(Mn.Item,{className:me(Ju.columnMenuItem,{"text-danger":$}),onClick:e.column.getToggleGroupingHandler(),children:$?i.columnUngroup:i.columnGroup}):null]}),document.body)}),e.isPlaceholder?null:b.jsxs("div",{children:[b.jsxs("div",{className:x(e.getContext()),role:m(e.getContext()),onClick:e.column.getToggleSortingHandler(),children:[b.jsxs("div",{className:"d-flex flex-row align-items-center gap-1",children:[s?b.jsx("div",{...u,...c,className:me("reorder-handle",He.reorderHandle,{dragging:p,[He.dragging]:p}),children:b.jsx(r,{icon:"drag-handle"})}):null,uk(e.column.columnDef.header,e.getContext())]}),e.column.getCanSort()&&e.column.getIsSorted()?b.jsx(r,{icon:`sort-${e.column.getIsSorted()||"asc"}`}):null]}),e.column.getCanFilter()?b.jsx(Ez,{column:e.column,IconComponent:r,texts:i}):e.column.id==="select-col"?b.jsx("div",{className:me("row-selection-info",He.rowSelectionInfo),children:`[${Object.values(t.getState().rowSelection).filter(Boolean).length}]`}):null]}),e.column.getCanResize()?b.jsx("div",{onDoubleClick:()=>e.column.resetSize(),onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),className:me("resizer",He.resizer,e.column.getIsResizing()?"isResizing":"",e.column.getIsResizing()?He.isResizing:""),style:{transform:t.options.columnResizeMode==="onEnd"&&e.column.getIsResizing()?`translateX(${(t.options.columnResizeDirection==="rtl"?-1:1)*(t.getState().columnSizingInfo.deltaOffset??0)}px)`:""},children:b.jsx("div",{className:me("resizer-bar",He.resizerBar)})}):null]})},iH="_icon-button_1nuxt_1",aH="_sm_1nuxt_34",oH="_lg_1nuxt_47",ed={"icon-button":"_icon-button_1nuxt_1",iconButton:iH,sm:aH,lg:oH},gi=({onClick:e,color:t="primary",disabled:n,children:r,size:i,className:a,...o})=>b.jsx("button",{"aria-disabled":n,className:me(a,"icon-button",ed.iconButton,ed[t],{"text-primary":!n&&t==="primary","text-secondary":n||t==="secondary","text-danger":!n&&t==="danger","text-success":!n&&t==="success"},{[ed.sm]:i==="sm",[ed.lg]:i==="lg"}),disabled:n,type:"button",onClick:e,...o,children:r}),sH=e=>{var n,r,i,a,o;const t=(n=e==null?void 0:e.columnDef)==null?void 0:n.header;if(!t)return e==null?void 0:e.id;if(typeof t=="string")return t;if(typeof t=="function"){const s=t({column:e});return typeof s=="string"?s:h.isValidElement(s)&&typeof((r=s.props)==null?void 0:r.children)=="string"?(i=s.props)==null?void 0:i.children:e==null?void 0:e.id}return h.isValidElement(t)&&typeof((a=t==null?void 0:t.props)==null?void 0:a.children)=="string"?(o=t==null?void 0:t.props)==null?void 0:o.children:e==null?void 0:e.id},Rw=({onClick:e,variant:t="primary",disabled:n,children:r,size:i,...a})=>b.jsx(Q0,{disabled:n,size:i,variant:t,onClick:e,...a,children:r});function rv(e,t){return rv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},rv(e,t)}function lH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,rv(e,t)}function cH(e){var t=lu(e);return t&&t.defaultView||window}function uH(e,t){return cH(e).getComputedStyle(e,t)}var dH=/([A-Z])/g;function fH(e){return e.replace(dH,"-$1").toLowerCase()}var hH=/^ms-/;function td(e){return fH(e).replace(hH,"-ms-")}var pH=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function mH(e){return!!(e&&pH.test(e))}function ki(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(td(t))||uH(e).getPropertyValue(td(t));Object.keys(t).forEach(function(i){var a=t[i];!a&&a!==0?e.style.removeProperty(td(i)):mH(i)?r+=i+"("+a+") ":n+=td(i)+": "+a+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}const jw={disabled:!1};var gH=process.env.NODE_ENV!=="production"?qe.oneOfType([qe.number,qe.shape({enter:qe.number,exit:qe.number,appear:qe.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&qe.oneOfType([qe.string,qe.shape({enter:qe.string,exit:qe.string,active:qe.string}),qe.shape({enter:qe.string,enterDone:qe.string,enterActive:qe.string,exit:qe.string,exitDone:qe.string,exitActive:qe.string})]);const jk=h.createContext(null);var vH=function(e){return e.scrollTop},Ll="unmounted",Ji="exited",_i="entering",ra="entered",uf="exiting",Bi=function(e){lH(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var o=i,s=o&&!o.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=Ji,a.appearStatus=_i):l=ra:r.unmountOnExit||r.mountOnEnter?l=Ll:l=Ji,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===Ll?{status:Ji}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var i=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==_i&&a!==ra&&(i=_i):(a===_i||a===ra)&&(i=uf)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,i,a,o;return i=a=o=r,r!=null&&typeof r!="number"&&(i=r.exit,a=r.enter,o=r.appear!==void 0?r.appear:a),{exit:i,enter:a,appear:o}},n.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===_i){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:hn.findDOMNode(this);a&&vH(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ji&&this.setState({status:Ll})},n.performEnter=function(r){var i=this,a=this.props.enter,o=this.context?this.context.isMounting:r,s=this.props.nodeRef?[o]:[hn.findDOMNode(this),o],l=s[0],c=s[1],u=this.getTimeouts(),d=o?u.appear:u.enter;if(!r&&!a||jw.disabled){this.safeSetState({status:ra},function(){i.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:_i},function(){i.props.onEntering(l,c),i.onTransitionEnd(d,function(){i.safeSetState({status:ra},function(){i.props.onEntered(l,c)})})})},n.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts(),o=this.props.nodeRef?void 0:hn.findDOMNode(this);if(!i||jw.disabled){this.safeSetState({status:Ji},function(){r.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:uf},function(){r.props.onExiting(o),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Ji},function(){r.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},n.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(o){a&&(a=!1,i.nextCallback=null,r(o))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:hn.findDOMNode(this),o=r==null&&!this.props.addEndListener;if(!a||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=s[0],c=s[1];this.props.addEndListener(l,c)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Ll)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var o=OE(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return h.createElement(jk.Provider,{value:null},typeof a=="function"?a(r,o):h.cloneElement(h.Children.only(a),o))},t}(h.Component);Bi.contextType=jk;Bi.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:qe.shape({current:typeof Element>"u"?qe.any:function(e,t,n,r,i,a){var o=e[t];return qe.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,a)}}),children:qe.oneOfType([qe.func.isRequired,qe.element.isRequired]).isRequired,in:qe.bool,mountOnEnter:qe.bool,unmountOnExit:qe.bool,appear:qe.bool,enter:qe.bool,exit:qe.bool,timeout:function(e){var t=gH;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,[e].concat(r))},addEndListener:qe.func,onEnter:qe.func,onEntering:qe.func,onEntered:qe.func,onExit:qe.func,onExiting:qe.func,onExited:qe.func}:{};function Bo(){}Bi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Bo,onEntering:Bo,onEntered:Bo,onExit:Bo,onExiting:Bo,onExited:Bo};Bi.UNMOUNTED=Ll;Bi.EXITED=Ji;Bi.ENTERING=_i;Bi.ENTERED=ra;Bi.EXITING=uf;function bH(e){return e.code==="Escape"||e.keyCode===27}function yH(){const e=ie.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function gu(e){if(!e||typeof e=="function")return null;const{major:t}=yH();return t>=19?e.props.ref:e.ref}function xH(e,t,n,r){if(r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function wH(e){var t=ki(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function _H(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||xH(e,"transitionend",!0)},t+n),a=ia(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),a()}}function Dk(e,t,n,r){n==null&&(n=wH(e)||0);var i=_H(e,n,r),a=ia(e,"transitionend",t);return function(){i(),a()}}function Dw(e,t){const n=ki(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function Nk(e,t){const n=Dw(e,"transitionDuration"),r=Dw(e,"transitionDelay"),i=Dk(e,a=>{a.target===e&&(i(),t(a))},n+r)}function _l(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...r){t.apply(this,r),n.apply(this,r)}},null)}function Ik(e){e.offsetHeight}function CH(e){return e&&"setState"in e?hn.findDOMNode(e):e??null}const vb=h.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:a,addEndListener:o,children:s,childRef:l,...c},u)=>{const d=h.useRef(null),f=cu(d,l),p=$=>{f(CH($))},g=$=>E=>{$&&d.current&&$(d.current,E)},m=h.useCallback(g(e),[e]),v=h.useCallback(g(t),[t]),x=h.useCallback(g(n),[n]),_=h.useCallback(g(r),[r]),w=h.useCallback(g(i),[i]),C=h.useCallback(g(a),[a]),y=h.useCallback(g(o),[o]);return b.jsx(Bi,{ref:u,...c,onEnter:m,onEntered:x,onEntering:v,onExit:_,onExited:C,onExiting:w,addEndListener:y,nodeRef:d,children:typeof s=="function"?($,E)=>s($,{...E,ref:p}):h.cloneElement(s,{ref:p})})});vb.displayName="TransitionWrapper";const $H={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function SH(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],i=$H[e];return r+parseInt(ki(t,i[0]),10)+parseInt(ki(t,i[1]),10)}const EH={[Ji]:"collapse",[uf]:"collapsing",[_i]:"collapsing",[ra]:"collapse show"},Pk=h.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,className:a,children:o,dimension:s="height",in:l=!1,timeout:c=300,mountOnEnter:u=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:p=SH,...g},m)=>{const v=typeof s=="function"?s():s,x=h.useMemo(()=>_l($=>{$.style[v]="0"},e),[v,e]),_=h.useMemo(()=>_l($=>{const E=`scroll${v[0].toUpperCase()}${v.slice(1)}`;$.style[v]=`${$[E]}px`},t),[v,t]),w=h.useMemo(()=>_l($=>{$.style[v]=null},n),[v,n]),C=h.useMemo(()=>_l($=>{$.style[v]=`${p(v,$)}px`,Ik($)},r),[r,p,v]),y=h.useMemo(()=>_l($=>{$.style[v]=null},i),[v,i]);return b.jsx(vb,{ref:m,addEndListener:Nk,...g,"aria-expanded":g.role?l:null,onEnter:x,onEntering:_,onEntered:w,onExit:C,onExiting:y,childRef:gu(o),in:l,timeout:c,mountOnEnter:u,unmountOnExit:d,appear:f,children:($,E)=>h.cloneElement(o,{...E,className:me(a,o.props.className,EH[$],v==="width"&&"collapse-horizontal")})})});Pk.displayName="Collapse";function Lk(e,t){return Array.isArray(e)?e.includes(t):e===t}const vu=ie.createContext({});vu.displayName="AccordionContext";const bb=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,children:r,eventKey:i,...a},o)=>{const{activeEventKey:s}=h.useContext(vu);return t=Et(t,"accordion-collapse"),b.jsx(Pk,{ref:o,in:Lk(s,i),...a,className:me(n,t),children:b.jsx(e,{children:ie.Children.only(r)})})});bb.displayName="AccordionCollapse";const $h=ie.createContext({eventKey:""});$h.displayName="AccordionItemContext";const Fk=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,onEnter:r,onEntering:i,onEntered:a,onExit:o,onExiting:s,onExited:l,...c},u)=>{t=Et(t,"accordion-body");const{eventKey:d}=h.useContext($h);return b.jsx(bb,{eventKey:d,onEnter:r,onEntering:i,onEntered:a,onExit:o,onExiting:s,onExited:l,children:b.jsx(e,{ref:u,...c,className:me(n,t)})})});Fk.displayName="AccordionBody";function kH(e,t){const{activeEventKey:n,onSelect:r,alwaysOpen:i}=h.useContext(vu);return a=>{let o=e===n?null:e;i&&(Array.isArray(n)?n.includes(e)?o=n.filter(s=>s!==e):o=[...n,e]:o=[e]),r==null||r(o,a),t==null||t(a)}}const yb=ie.forwardRef(({as:e="button",bsPrefix:t,className:n,onClick:r,...i},a)=>{t=Et(t,"accordion-button");const{eventKey:o}=h.useContext($h),s=kH(o,r),{activeEventKey:l}=h.useContext(vu);return e==="button"&&(i.type="button"),b.jsx(e,{ref:a,onClick:s,...i,"aria-expanded":Array.isArray(l)?l.includes(o):o===l,className:me(n,t,!Lk(l,o)&&"collapsed")})});yb.displayName="AccordionButton";const Bk=ie.forwardRef(({as:e="h2","aria-controls":t,bsPrefix:n,className:r,children:i,onClick:a,...o},s)=>(n=Et(n,"accordion-header"),b.jsx(e,{ref:s,...o,className:me(r,n),children:b.jsx(yb,{onClick:a,"aria-controls":t,children:i})})));Bk.displayName="AccordionHeader";const zk=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,eventKey:r,...i},a)=>{t=Et(t,"accordion-item");const o=h.useMemo(()=>({eventKey:r}),[r]);return b.jsx($h.Provider,{value:o,children:b.jsx(e,{ref:a,...i,className:me(n,t)})})});zk.displayName="AccordionItem";const Wk=ie.forwardRef((e,t)=>{const{as:n="div",activeKey:r,bsPrefix:i,className:a,onSelect:o,flush:s,alwaysOpen:l,...c}=ME(e,{activeKey:"onSelect"}),u=Et(i,"accordion"),d=h.useMemo(()=>({activeEventKey:r,onSelect:o,alwaysOpen:l}),[r,o,l]);return b.jsx(vu.Provider,{value:d,children:b.jsx(n,{ref:t,...c,className:me(a,u,s&&`${u}-flush`)})})});Wk.displayName="Accordion";const Na=Object.assign(Wk,{Button:yb,Collapse:bb,Item:zk,Header:Bk,Body:Fk}),TH=e=>ie.forwardRef((t,n)=>b.jsx("div",{...t,ref:n,className:me(t.className,e)})),OH=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",MH=typeof document<"u",Nw=MH||OH?h.useLayoutEffect:h.useEffect,AH={[_i]:"show",[ra]:"show"},xb=ie.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},a)=>{const o={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},s=h.useCallback((l,c)=>{Ik(l),r==null||r(l,c)},[r]);return b.jsx(vb,{ref:a,addEndListener:Nk,...o,onEnter:s,childRef:gu(t),children:(l,c)=>ie.cloneElement(t,{...c,className:me("fade",e,t.props.className,AH[l],n[l])})})});xb.displayName="Fade";const RH={"aria-label":qe.string,onClick:qe.func,variant:qe.oneOf(["white"])},wb=ie.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>b.jsx("button",{ref:i,type:"button",className:me("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));wb.displayName="CloseButton";wb.propTypes=RH;function jH(e){const t=h.useRef(e);return t.current=e,t}function DH(e){const t=jH(e);h.useEffect(()=>()=>t.current(),[])}const Iw=e=>!e||typeof e=="function"?e:t=>{e.current=t};function NH(e,t){const n=Iw(e),r=Iw(t);return i=>{n&&n(i),r&&r(i)}}function _b(e,t){return h.useMemo(()=>NH(e,t),[e,t])}var nd;function Pw(e){if((!nd&&nd!==0||e)&&Us){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),nd=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return nd}function IH(){return h.useState(null)}function Mm(e){e===void 0&&(e=lu());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function PH(e){const t=h.useRef(e);return t.current=e,t}function LH(e){const t=PH(e);h.useEffect(()=>()=>t.current(),[])}function FH(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Lw=Z0("modal-open");let Cb=class{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return FH(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(ki(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(Lw,""),ki(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Lw),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}};const Am=(e,t)=>Us?e==null?(t||lu()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function BH(e,t){const n=bh(),[r,i]=h.useState(()=>Am(e,n==null?void 0:n.document));if(!r){const a=Am(e);a&&i(a)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const a=Am(e);a!==r&&i(a)},[e,r]),r}function zH({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const a=h.useRef(null),o=h.useRef(t),s=zn(n);h.useEffect(()=>{t?o.current=!0:s(a.current)},[t,s]);const l=_b(a,gu(e)),c=h.cloneElement(e,{ref:l});return t?c:i||!o.current&&r?null:c}const WH=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function UH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function HH(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:a,onExited:o,addEndListener:s,children:l}=e,c=UH(e,WH);const u=h.useRef(null),d=_b(u,gu(l)),f=C=>y=>{C&&u.current&&C(u.current,y)},p=h.useCallback(f(t),[t]),g=h.useCallback(f(n),[n]),m=h.useCallback(f(r),[r]),v=h.useCallback(f(i),[i]),x=h.useCallback(f(a),[a]),_=h.useCallback(f(o),[o]),w=h.useCallback(f(s),[s]);return Object.assign({},c,{nodeRef:u},t&&{onEnter:p},n&&{onEntering:g},r&&{onEntered:m},i&&{onExit:v},a&&{onExiting:x},o&&{onExited:_},s&&{addEndListener:w},{children:typeof l=="function"?(C,y)=>l(C,Object.assign({},y,{ref:d})):h.cloneElement(l,{ref:d})})}const VH=["component"];function qH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const YH=ie.forwardRef((e,t)=>{let{component:n}=e,r=qH(e,VH);const i=HH(r);return b.jsx(n,Object.assign({ref:t},i))});function GH({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),i=zn(t);return Nw(()=>{if(!n.current)return;let a=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>a}),()=>{a=!0}},[e,i]),Nw(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function KH({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[a,o]=h.useState(!t);t&&a&&o(!1);const s=GH({in:!!t,onTransition:c=>{const u=()=>{c.isStale()||(c.in?r==null||r(c.element,c.initial):(o(!0),n==null||n(c.element)))};Promise.resolve(i(c)).then(u,d=>{throw c.in||o(!0),d})}}),l=_b(s,gu(e));return a&&!t?null:h.cloneElement(e,{ref:l})}function Fw(e,t,n){return e?b.jsx(YH,Object.assign({},n,{component:e})):t?b.jsx(KH,Object.assign({},n,{transition:t})):b.jsx(zH,Object.assign({},n))}const ZH=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function XH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let Rm;function QH(e){return Rm||(Rm=new Cb({ownerDocument:e==null?void 0:e.document})),Rm}function JH(e){const t=bh(),n=e||QH(t),r=h.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:h.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:h.useCallback(i=>{r.current.backdrop=i},[])})}const Uk=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:a,children:o,backdrop:s=!0,keyboard:l=!0,onBackdropClick:c,onEscapeKeyDown:u,transition:d,runTransition:f,backdropTransition:p,runBackdropTransition:g,autoFocus:m=!0,enforceFocus:v=!0,restoreFocus:x=!0,restoreFocusOptions:_,renderDialog:w,renderBackdrop:C=G=>b.jsx("div",Object.assign({},G)),manager:y,container:$,onShow:E,onHide:M=()=>{},onExit:k,onExited:R,onExiting:S,onEnter:T,onEntering:j,onEntered:D}=e,N=XH(e,ZH);const O=bh(),P=BH($),W=JH(y),U=AE(),I=RE(n),[z,Y]=h.useState(!n),X=h.useRef(null);h.useImperativeHandle(t,()=>W,[W]),Us&&!I&&n&&(X.current=Mm(O==null?void 0:O.document)),n&&z&&Y(!1);const K=zn(()=>{if(W.add(),F.current=ia(document,"keydown",B),L.current=ia(document,"focus",()=>setTimeout(ee),!0),E&&E(),m){var G,oe;const re=Mm((G=(oe=W.dialog)==null?void 0:oe.ownerDocument)!=null?G:O==null?void 0:O.document);W.dialog&&re&&!nf(W.dialog,re)&&(X.current=re,W.dialog.focus())}}),Z=zn(()=>{if(W.remove(),F.current==null||F.current(),L.current==null||L.current(),x){var G;(G=X.current)==null||G.focus==null||G.focus(_),X.current=null}});h.useEffect(()=>{!n||!P||K()},[n,P,K]),h.useEffect(()=>{z&&Z()},[z,Z]),LH(()=>{Z()});const ee=zn(()=>{if(!v||!U()||!W.isTopModal())return;const G=Mm(O==null?void 0:O.document);W.dialog&&G&&!nf(W.dialog,G)&&W.dialog.focus()}),J=zn(G=>{G.target===G.currentTarget&&(c==null||c(G),s===!0&&M())}),B=zn(G=>{l&&bH(G)&&W.isTopModal()&&(u==null||u(G),G.defaultPrevented||M())}),L=h.useRef(),F=h.useRef(),H=(...G)=>{Y(!0),R==null||R(...G)};if(!P)return null;const A=Object.assign({role:r,ref:W.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},N,{style:a,className:i,tabIndex:-1});let Q=w?w(A):b.jsx("div",Object.assign({},A,{children:ie.cloneElement(o,{role:"document"})}));Q=Fw(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:k,onExiting:S,onExited:H,onEnter:T,onEntering:j,onEntered:D,children:Q});let q=null;return s&&(q=C({ref:W.setBackdropRef,onClick:J}),q=Fw(p,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:q})),b.jsx(b.Fragment,{children:hn.createPortal(b.jsxs(b.Fragment,{children:[q,Q]}),P)})});Uk.displayName="Modal";const eV=Object.assign(Uk,{Manager:Cb});function tV(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function nV(e,t){e.classList?e.classList.add(t):tV(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Bw(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function rV(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Bw(e.className,t):e.setAttribute("class",Bw(e.className&&e.className.baseVal||"",t))}const zo={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class iV extends Cb{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,ki(n,{[t]:`${parseFloat(ki(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],ki(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(nV(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Xi(n,zo.FIXED_CONTENT).forEach(a=>this.adjustAndStore(r,a,t.scrollBarWidth)),Xi(n,zo.STICKY_CONTENT).forEach(a=>this.adjustAndStore(i,a,-t.scrollBarWidth)),Xi(n,zo.NAVBAR_TOGGLER).forEach(a=>this.adjustAndStore(i,a,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();rV(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Xi(n,zo.FIXED_CONTENT).forEach(a=>this.restore(r,a)),Xi(n,zo.STICKY_CONTENT).forEach(a=>this.restore(i,a)),Xi(n,zo.NAVBAR_TOGGLER).forEach(a=>this.restore(i,a))}}let jm;function aV(e){return jm||(jm=new iV(e)),jm}const Hk=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Et(t,"modal-body"),b.jsx(n,{ref:i,className:me(e,t),...r})));Hk.displayName="ModalBody";const Vk=ie.createContext({onHide(){}}),$b=ie.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:a,children:o,scrollable:s,...l},c)=>{e=Et(e,"modal");const u=`${e}-dialog`,d=typeof a=="string"?`${e}-fullscreen-${a}`:`${e}-fullscreen`;return b.jsx("div",{...l,ref:c,className:me(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,a&&d),children:b.jsx("div",{className:me(`${e}-content`,n),children:o})})});$b.displayName="ModalDialog";const qk=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Et(t,"modal-footer"),b.jsx(n,{ref:i,className:me(e,t),...r})));qk.displayName="ModalFooter";const Yk=ie.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...a},o)=>{const s=h.useContext(Vk),l=tf(()=>{s==null||s.onHide(),r==null||r()});return b.jsxs("div",{ref:o,...a,children:[i,n&&b.jsx(wb,{"aria-label":e,variant:t,onClick:l})]})});Yk.displayName="AbstractModalHeader";const Gk=ie.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},a)=>(e=Et(e,"modal-header"),b.jsx(Yk,{ref:a,...i,className:me(t,e),closeLabel:n,closeButton:r})));Gk.displayName="ModalHeader";const oV=TH("h4"),Kk=ie.forwardRef(({className:e,bsPrefix:t,as:n=oV,...r},i)=>(t=Et(t,"modal-title"),b.jsx(n,{ref:i,className:me(e,t),...r})));Kk.displayName="ModalTitle";function sV(e){return b.jsx(xb,{...e,timeout:null})}function lV(e){return b.jsx(xb,{...e,timeout:null})}const Zk=ie.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:a,dialogAs:o=$b,"data-bs-theme":s,"aria-labelledby":l,"aria-describedby":c,"aria-label":u,show:d=!1,animation:f=!0,backdrop:p=!0,keyboard:g=!0,onEscapeKeyDown:m,onShow:v,onHide:x,container:_,autoFocus:w=!0,enforceFocus:C=!0,restoreFocus:y=!0,restoreFocusOptions:$,onEntered:E,onExit:M,onExiting:k,onEnter:R,onEntering:S,onExited:T,backdropClassName:j,manager:D,...N},O)=>{const[P,W]=h.useState({}),[U,I]=h.useState(!1),z=h.useRef(!1),Y=h.useRef(!1),X=h.useRef(null),[K,Z]=IH(),ee=cu(O,Z),J=tf(x),B=gE();e=Et(e,"modal");const L=h.useMemo(()=>({onHide:J}),[J]);function F(){return D||aV({isRTL:B})}function H(le){if(!Us)return;const Ee=F().getScrollbarWidth()>0,Le=le.scrollHeight>lu(le).documentElement.clientHeight;W({paddingRight:Ee&&!Le?Pw():void 0,paddingLeft:!Ee&&Le?Pw():void 0})}const A=tf(()=>{K&&H(K.dialog)});DH(()=>{Gg(window,"resize",A),X.current==null||X.current()});const Q=()=>{z.current=!0},q=le=>{z.current&&K&&le.target===K.dialog&&(Y.current=!0),z.current=!1},G=()=>{I(!0),X.current=Dk(K.dialog,()=>{I(!1)})},oe=le=>{le.target===le.currentTarget&&G()},re=le=>{if(p==="static"){oe(le);return}if(Y.current||le.target!==le.currentTarget){Y.current=!1;return}x==null||x()},ne=le=>{g?m==null||m(le):(le.preventDefault(),p==="static"&&G())},se=(le,Ee)=>{le&&H(le),R==null||R(le,Ee)},fe=le=>{X.current==null||X.current(),M==null||M(le)},_e=(le,Ee)=>{S==null||S(le,Ee),K0(window,"resize",A)},xe=le=>{le&&(le.style.display=""),T==null||T(le),Gg(window,"resize",A)},ye=h.useCallback(le=>b.jsx("div",{...le,className:me(`${e}-backdrop`,j,!f&&"show")}),[f,j,e]),de={...n,...P};de.display="block";const be=le=>b.jsx("div",{role:"dialog",...le,style:de,className:me(t,e,U&&`${e}-static`,!f&&"show"),onClick:p?re:void 0,onMouseUp:q,"data-bs-theme":s,"aria-label":u,"aria-labelledby":l,"aria-describedby":c,children:b.jsx(o,{...N,onMouseDown:Q,className:r,contentClassName:i,children:a})});return b.jsx(Vk.Provider,{value:L,children:b.jsx(eV,{show:d,ref:ee,backdrop:p,container:_,keyboard:!0,autoFocus:w,enforceFocus:C,restoreFocus:y,restoreFocusOptions:$,onEscapeKeyDown:ne,onShow:v,onHide:x,onEnter:se,onEntering:_e,onEntered:E,onExit:fe,onExiting:k,onExited:xe,manager:F(),transition:f?sV:void 0,backdropTransition:f?lV:void 0,renderBackdrop:ye,renderDialog:be})})});Zk.displayName="Modal";const Cl=Object.assign(Zk,{Body:Hk,Header:Gk,Title:Kk,Footer:qk,Dialog:$b,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),cV="_modal_1sw52_1",uV="_settings-item_1sw52_1",dV="_label_1sw52_8",fV="_content_1sw52_11",hV="_column-item_1sw52_14",pV="_is-hidden_1sw52_20",Wo={modal:cV,settingsItem:uV,label:dV,content:fV,columnItem:hV,isHidden:pV},mV=({show:e,handleClose:t,texts:n,pageSize:r,columns:i,IconComponent:a,resetToDefault:o})=>{const[s,l]=h.useState(r.value?r.value.toString():"");h.useEffect(()=>{e&&l(r.value?r.value.toString():"")},[e,r.value]);const c=r.enabled;return b.jsxs(Cl,{className:me("settings-modal",Wo.modal),"data-testId":"settings-modal",show:e,onHide:t,children:[b.jsx(Cl.Header,{closeButton:!0,children:b.jsx(Cl.Title,{children:n==null?void 0:n.settingsModal.title})}),b.jsx(Cl.Body,{children:b.jsxs(Na,{children:[c?b.jsxs(Na.Item,{eventKey:"general-settings",children:[b.jsx(Na.Header,{children:n==null?void 0:n.settingsModal.generalSettings}),b.jsx(Na.Body,{className:"d-flex flex-column gap-1",children:r.enabled?b.jsxs("div",{className:Wo.settingsItem,children:[b.jsx("div",{className:me("text-nowrap",Wo.label),children:n==null?void 0:n.settingsModal.pageSize}),b.jsxs("div",{className:me("text-nowrap",Wo.content),children:[b.jsx(Jd.Control,{"data-testId":"page-size-input",list:"pageSizes",max:1e3,min:0,size:"sm",type:"number",value:s,onChange:u=>{l(u.target.value),u.target.value&&r.onChange(Number(u.target.value))}}),b.jsxs("datalist",{id:"pageSizes",children:[b.jsx("option",{value:"10"}),b.jsx("option",{value:"20"}),b.jsx("option",{value:"30"}),b.jsx("option",{value:"50"}),b.jsx("option",{value:"100"})]})]})]}):null})]}):null,b.jsxs(Na.Item,{eventKey:"column-settings",children:[b.jsx(Na.Header,{children:n==null?void 0:n.settingsModal.columnSettings}),b.jsx(Na.Body,{className:"d-flex flex-column gap-1",children:i.allColumns.filter(u=>{var d;return u.getCanHide()&&((d=u.columnDef.meta)==null?void 0:d.hidden)!==!0}).map(u=>b.jsxs("div",{className:me("column-item rounded border",Wo.columnItem,{[Wo.isHidden]:!u.getIsVisible()}),children:[sH(u),b.jsx(gi,{color:"secondary",onClick:()=>u.toggleVisibility(),children:b.jsx(a,{icon:u.getIsVisible()?"visibility":"visibility-off"})})]},u.id))})]})]})}),b.jsxs(Cl.Footer,{className:"d-flex justify-content-between align-items-center",children:[b.jsx(Rw,{variant:"outline-secondary",onClick:()=>{o(),t()},children:n==null?void 0:n.settingsModal.revertDefaultSettings}),b.jsx(Rw,{onClick:t,children:n==null?void 0:n.settingsModal.done})]})]})},gV=[["ArrowUp",[0,-1]],["ArrowDown",[0,1]],["ArrowLeft",[-1,0]],["ArrowRight",[1,0]]],zw=new Map(gV),vV=(e,t,n,r,i,a)=>{const o=h.useState([0,0]),[s,l]=(e==null?void 0:e.cellSelectionState)??o,[c,u]=h.useState(),[d,f]=h.useState(),p=h.useCallback(v=>{e!=null&&e.disabled||l(v)},[e==null?void 0:e.disabled,l]),g=({fieldName:v,dataIndex:x})=>{u(v),f(x)},m=h.useCallback(v=>{if(e!=null&&e.disabled)return;const x=v.target;if(!(["INPUT","TEXTAREA"].includes(x.tagName)||x.isContentEditable))switch(v.code){case"Space":case"Enter":{v.preventDefault();const _=t.get(s[0]);if(e!=null&&e.onlyRowSelection){n[s[1]].toggleSelected();break}if(!_)return;_==="selection"&&n[s[1]].toggleSelected();break}case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":{v.preventDefault(),p(_=>{const w=[Math.min(Math.max(_[0]+zw.get(v.code)[0],0),t.size-1),Math.min(Math.max(_[1]+zw.get(v.code)[1],0),n.length-1)];if(r!==void 0){const C=Math.floor(w[1]/r);i(C)}return w});break}case"Tab":if(v.preventDefault(),v.shiftKey)p(_=>_[0]<=0?_[1]<=0?_:[t.size-1,_[1]-1]:[_[0]-1,_[1]]);else{p(_=>_[0]>=t.size-1?_[1]>=n.length-1?_:[0,_[1]+1]:[_[0]+1,_[1]]);break}}},[e==null?void 0:e.disabled,e==null?void 0:e.onlyRowSelection,t,s,n,p,r,i]);return h.useEffect(()=>{if(c===void 0)return;u(void 0);const v=[...t.entries()].findIndex(x=>x[1]===c);l(x=>[v,x[1]])},[c,l,t]),h.useEffect(()=>{if(d===void 0)return;f(void 0);const v=n.findIndex(x=>x.index===d);if(l(x=>[x[0],v]),r!==void 0){const x=Math.floor(v/r);i(x)}},[i,r,d,n,l]),h.useEffect(()=>{if((e==null?void 0:e.onCellSelect)===void 0)return;const v=new AbortController;return window.addEventListener("keydown",m,{signal:v.signal}),()=>v.abort()},[m,e==null?void 0:e.onCellSelect]),h.useEffect(()=>{var v;(v=a.current)==null||v.scrollIntoView({behavior:"instant",block:"center",inline:"nearest"})},[a,s]),h.useEffect(()=>{var x;if((e==null?void 0:e.onCellSelect)===void 0)return;if(((x=n[s[1]])==null?void 0:x.index)===void 0){n.length>0&&p(_=>[_[0],0]);return}const v=t.get(s[0]);if(v===void 0){console.error(`Tried to access non-existing key ${s[0]} from following map: `,t);return}e==null||e.onCellSelect(n[s[1]].index,v)},[e,p,n,s,t]),{selectedCoords:s,changeSelectedCoords:p,setSelectedCellByFNDI:g}},bV=e=>e.type==="number"?"sum":"uniqueCount",yV=(e,t,n)=>{var i;const r=t.column.columnDef;return(i=r.meta)!=null&&i.customCellRender?r.meta.customCellRender(t):r.type==="boolean"?n.boolean(t):r.type==="date"?n.date(t):r.type==="datetime"?n.datetime(t):r.type==="number"?n.number(t):uk(e,t)},xV=(e,t,n)=>{var r;return(r=e.meta)!=null&&r.customAggregatedCellRender?e.meta.customAggregatedCellRender(t):(bV(e)==="sum"?n.aggregation.sum:n.aggregation.uniqueCount)(Number(t.getValue()))},wV=e=>{let{transform:t}=e;return{...t,y:0}},_V=h.forwardRef(({isLink:e,to:t,children:n,LinkComponent:r,onClick:i,onCellInteraction:a,...o},s)=>e&&t?b.jsx(r,{ref:s,to:t,onAuxClick:l=>{l.button===1&&(a==null||a())},onClick:()=>{i==null||i(),a==null||a()},onContextMenu:()=>{a==null||a()},...o,children:n}):b.jsx("div",{ref:s,onAuxClick:i?l=>{l.button===1&&(a==null||a())}:void 0,onClick:i?()=>{i==null||i(),a==null||a()}:void 0,onContextMenu:i?()=>{a==null||a()}:void 0,...o,children:n})),CV=({row:e,cell:t,className:n,rowClassName:r,style:i,IconComponent:a,texts:o,formatters:s,LinkComponent:l,onRowClick:c,rowNavigation:u,onCellInteraction:d},f)=>{var m,v,x;const p=t.column.columnDef,g=h.useMemo(()=>{var _,w,C,y,$;if(!((_=p.meta)!=null&&_.disableCellClick)&&!t.getIsGrouped()&&!t.getIsAggregated()){if((w=p.meta)!=null&&w.onCellClick)return["onClickOwn",()=>{var E,M;return(M=(E=p.meta)==null?void 0:E.onCellClick)==null?void 0:M.call(E,e.original)}];if((C=p.meta)!=null&&C.cellNavigation){const E=($=(y=p.meta)==null?void 0:y.cellNavigation)==null?void 0:$.call(y,e.original);if(E)return["navigateOwn",E]}if(c)return["onClick",()=>c==null?void 0:c(e.original)];if(u){const E=u==null?void 0:u(e.original);if(E)return["navigate",E]}}},[p,e,c,u,t]);return b.jsxs(_V,{className:me((_=>{var E,M,k,R,S,T;const w=((E=p==null?void 0:p.meta)==null?void 0:E.alignment)??"left",C=_.column.getIsSorted(),y=_.cell.getIsGrouped(),$=_.row.getIsExpanded();return me("td",He.td,{[He.left]:w==="left",[He.center]:w==="center",[He.right]:w==="right"||p.type==="number"&&((M=p.numericMeta)==null?void 0:M.noFormatting)!==!0},{sorted:C,[He.sorted]:C},{grouped:y,[He.grouped]:y},{expanded:$,[He.expanded]:$},{clickable:!!g,[He.clickable]:!!g},{"own-click":(k=g==null?void 0:g[0])==null?void 0:k.endsWith("Own"),[He.ownClick]:(R=g==null?void 0:g[0])==null?void 0:R.endsWith("Own")},r,(T=(S=p.meta)==null?void 0:S.className)==null?void 0:T.call(S,e.original))})(t.getContext()),n),isLink:!!((m=g==null?void 0:g[0])!=null&&m.startsWith("navigate")),LinkComponent:l,ref:f,style:{flex:`${t.column.getSize()} 1 0`,minWidth:t.column.getSize(),...i??{}},to:(v=g==null?void 0:g[0])!=null&&v.startsWith("navigate")?g[1]:void 0,onCellInteraction:d?()=>d==null?void 0:d(e.original):void 0,onClick:(x=g==null?void 0:g[0])!=null&&x.startsWith("onClick")?g[1]:void 0,children:[t.getIsGrouped()&&e.getCanExpand()?b.jsx(gi,{className:me("expander-button",He.expanderButton),size:"sm",onClick:e.getToggleExpandedHandler(),children:b.jsx(a,{icon:e.getIsExpanded()?"chevron-up":"chevron-down"})}):null,t.getIsAggregated()?xV(t.column.columnDef,t.getContext(),o):t.getIsPlaceholder()?null:yV(t.column.columnDef.cell,t.getContext(),s)," ",t.getIsGrouped()?`(${e.subRows.length})`:null]})},$V=h.forwardRef(CV),SV=({table:e,additionalOptions:t,IconComponent:n,texts:r,formatters:i,bottomBar:a,testId:o,LinkComponent:s,className:l,rowsClassName:c,onRowClick:u,rowNavigation:d,onCellInteraction:f,cellSelection:p,getRowProps:g},m)=>{var K,Z,ee,J,B,L,F,H,A;const v={boolean:Q=>ZL(Q,n),date:XL,datetime:QL,number:JL,...i},[x,_]=h.useState(!1),w=!!e.options.getPaginationRowModel,C=Vz(Em(Ck,{}),Em($k,{}),Em(pb,{})),y=e.getState().columnOrder,$=Q=>{const{active:q,over:G}=Q;q&&G&&q.id!==G.id&&e.setColumnOrder(oe=>{const re=oe.indexOf(q.id),ne=oe.indexOf(G.id);return re===-1||ne===-1?oe:gb(oe,re,ne)})},[E,M]=h.useState(null),k=Q=>{M(Q)},R=Q=>{if(!Q.getCanPin())return"";const q=Q.getIsPinned(),G=q==="right"&&Q.getIsFirstColumn("right"),oe=q==="left"&&Q.getIsLastColumn("left");return me({pinned:q,[He.pinned]:q,"first-right":G,[He.firstRight]:G,"last-left":oe,[He.lastLeft]:oe})},S=Q=>{if(!Q.getCanPin())return{};const q=Q.getIsPinned();return{left:q==="left"?`${Q.getStart("left")}px`:void 0,right:q==="right"?`${Q.getAfter("right")}px`:void 0}},T=e.getState().sorting;h.useEffect(()=>{var Q,q;if(T.length>0){const G=T[0];if((Q=document.activeElement)!=null&&Q.classList.contains("filter"))return;(q=document.getElementById(`filter-${G.id}`))==null||q.focus()}},[T]);const j=e.getRowModel().rows,D=new Map(e.getVisibleLeafColumns().map((Q,q)=>[q,Q.id])),N=h.useRef(null),{selectedCoords:O,changeSelectedCoords:P,setSelectedCellByFNDI:W}=vV(p,D,j,w?((K=e.getState().pagination)==null?void 0:K.pageSize)??0:void 0,e.setPageIndex,N);h.useImperativeHandle(m,()=>({setSelectedCell:W}));const U=Q=>{var q;return p!=null&&p.onlyRowSelection&&((q=j[O[1]])==null?void 0:q.index)===Q.index?me(He.cellSelectedRow,"cell-selected-row",{[He.cellSelectionDisabled]:p.disabled}):""},I=(Q,q)=>{var G;return(p==null?void 0:p.onCellSelect)===void 0||O[0]!==Q||((G=j[O[1]])==null?void 0:G.index)!==q||p.onlyRowSelection?"":p.disabled?"bg-primary-subtle":me("selected-cell",He.selectedCell)},z=t.fullScreen.canFullScreen?((Z=t.fullScreen)==null?void 0:Z.isFullScreen)??!1:!1,Y=(ee=t.sizing)!=null&&ee.canSize?((J=t.sizing)==null?void 0:J.size)??"md":"md",X=e.getState().columnFilters;return b.jsx(YW,{collisionDetection:Zz,modifiers:[wV],sensors:C,onDragEnd:$,children:b.jsxs("div",{className:me("tanstack-bnf-table-container",He.tableScrollContainer,{"full-screen":z,[He.fullScreen]:z}),children:[X&&X.length>0?b.jsx("div",{className:me("remove-filters-button-wrapper",He.removeFiltersButtonWrapper),children:b.jsxs("button",{className:me(He.removeFiltersButton,"remove-filters-button"),type:"button",onClick:()=>e.resetColumnFilters(),children:[b.jsx("div",{className:"d-flex align-items-center justify-content-center",children:b.jsx(n,{icon:"remove-filters"})}),(r==null?void 0:r.removeFilters)??"Zrušit filtry"]})}):null,b.jsxs("div",{className:me("tanstack-bnf-table",He.table,{sm:Y==="sm",lg:Y==="lg",[He.sm]:Y==="sm",[He.lg]:Y==="lg"},l),"data-testid":o,children:[b.jsx("div",{className:me("thead",He.thead),children:e.getHeaderGroups().map(Q=>b.jsx("div",{className:me("tr",He.tr),children:b.jsx(oU,{items:y,strategy:iU,children:Q.headers.map(q=>{var G,oe;return b.jsx(rH,{className:R(q.column),columnMenuPos:E,dragEnabled:t.enableReordering&&((oe=(G=q.column.columnDef)==null?void 0:G.meta)==null?void 0:oe.enableReordering)!==!1,header:q,IconComponent:n,style:S(q.column),table:e,texts:r,onColumnMenu:k},q.id)})})},Q.id))}),b.jsxs("div",{className:me("tbody",He.tbody),children:[(((L=(B=e.options)==null?void 0:B.data)==null?void 0:L.length)??0)===0?b.jsx("div",{className:me("alert alert-warning empty-table-alert",He.emptyTableAlert),children:r.emptyTable}):null,e.getRowModel().rows.map((Q,q)=>{var G;return b.jsx("div",{className:me("tr",He.tr,U(Q),g?(G=g(Q.original))==null?void 0:G.className:null),role:"data-row",...g?g(Q.original):{},children:Q.getVisibleCells().map((oe,re)=>{var ne;return b.jsx($V,{cell:oe,className:me(R(oe.column),I(re,Q.index)),formatters:v,IconComponent:n,LinkComponent:s,ref:(p==null?void 0:p.onCellSelect)!==void 0&&O[0]===re&&((ne=j[O[1]])==null?void 0:ne.index)===Q.index?N:null,row:Q,rowClassName:me(...(c==null?void 0:c.filter(se=>se.selector(Q.original)).map(se=>se.className))??[]),rowNavigation:d,style:S(oe.column),texts:r,onCellInteraction:(p==null?void 0:p.onCellSelect)===void 0?f:se=>{var fe,_e;P([re,((fe=e.getState().pagination)==null?void 0:fe.pageIndex)*((_e=e.getState().pagination)==null?void 0:_e.pageSize)+q]),f==null||f(se)},onRowClick:u},oe.id)})},Q.id)})]}),b.jsx(mV,{columns:{allColumns:e.getAllColumns()},handleClose:()=>_(!1),IconComponent:n,pageSize:{enabled:w,value:((F=e.getState().pagination)==null?void 0:F.pageSize)??0,onChange:Q=>e.setPageSize(Q)},resetToDefault:t.resetToInitialValues,show:x,texts:r})]}),a!=null&&a.hidden?null:b.jsxs("div",{className:me("bottom-bar",He.bottomBar),children:[b.jsxs("div",{className:me("left-items",He.leftItems),children:[w?b.jsxs("div",{className:me("pagination",He.pagination),children:[b.jsx(gi,{disabled:!e.getCanPreviousPage(),onClick:()=>e.firstPage(),children:b.jsx(n,{icon:"page-first"})}),b.jsx(gi,{disabled:!e.getCanPreviousPage(),onClick:()=>e.previousPage(),children:b.jsx(n,{icon:"page-previous"})}),b.jsx("div",{className:me("page-info-text",He.pageInfoText),children:r.pagination.infoText(e.getState().pagination.pageIndex+1,e.getPageCount())}),b.jsx(gi,{disabled:!e.getCanNextPage(),onClick:()=>e.nextPage(),children:b.jsx(n,{icon:"page-next"})}),b.jsx(gi,{disabled:!e.getCanNextPage(),onClick:()=>e.lastPage(),children:b.jsx(n,{icon:"page-last"})})]}):null,b.jsx("div",{className:me("row-count-text",He.rowCountText),children:r.rowCountText(e.getRowCount())})]}),b.jsxs("div",{className:me("right-items",He.rightItems),children:[(H=t.fullScreen)!=null&&H.canFullScreen?b.jsx(gi,{color:t.fullScreen.isFullScreen?"danger":"primary","data-testId":"table-fullscreen-button",onClick:()=>t.fullScreen.toggleFullScreen(),children:b.jsx(n,{icon:t.fullScreen.isFullScreen?"fullscreen-exit":"fullscreen"})}):null,(A=t.sizing)!=null&&A.canSize?b.jsxs(Mn,{drop:"up",children:[b.jsx(Mn.Toggle,{bsPrefix:"sizing-toggle",className:me("sizing-toggle",He.sizingToggle),id:"table-sizing-button",size:"sm",children:b.jsx(n,{icon:"density"})}),b.jsxs(Mn.Menu,{className:me("shadow-lg sizing-menu",He.sizingMenu),children:[b.jsxs(Mn.Item,{className:me("sizing-menu-item",He.sizingMenuItem),onClick:()=>t.sizing.setSize("sm"),children:[Y==="sm"?b.jsx(n,{icon:"boolean-yes"}):null," ",r.sizing.sm]}),b.jsxs(Mn.Item,{className:me("sizing-menu-item",He.sizingMenuItem),onClick:()=>t.sizing.setSize("md"),children:[Y==="md"?b.jsx(n,{icon:"boolean-yes"}):null," ",r.sizing.md]}),b.jsxs(Mn.Item,{className:me("sizing-menu-item",He.sizingMenuItem),onClick:()=>t.sizing.setSize("lg"),children:[Y==="lg"?b.jsx(n,{icon:"boolean-yes"}):null," ",r.sizing.lg]})]})]}):null,t.excelExport.canExport?b.jsx(gi,{"data-testId":"table-excel-export-button",onClick:()=>t.excelExport.onExport(r),children:b.jsx(n,{icon:"excel-export"})}):null,b.jsx(gi,{"data-testId":"table-settings-button",onClick:()=>_(!0),children:b.jsx(n,{icon:"settings"})})]})]})]})})};h.forwardRef(SV);const EV=(e,t)=>t.split(".").reduce((n,r)=>n&&typeof n=="object"?n[r]:void 0,e),Xk=()=>{const e=kz();return{accessor:(t,n)=>{const r=i=>EV(i,t)??"";return e.accessor(r,{...n,id:t})},display:t=>e.display(t),group:t=>e.group(t)}};function kV(e){return ut({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"},child:[]}]})(e)}function TV(e){return ut({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M448 80c8.8 0 16 7.2 16 16l0 319.8-5-6.5-136-176c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3L202 340.7l-30.5-42.7C167 291.7 159.8 288 152 288s-15 3.7-19.5 10.1l-80 112L48 416.3l0-.3L48 96c0-8.8 7.2-16 16-16l384 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm80 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"},child:[]}]})(e)}function OV(e){return ut({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M200,24H72A16,16,0,0,0,56,40V64H40A16,16,0,0,0,24,80v96a16,16,0,0,0,16,16H56v24a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM72,160a8,8,0,0,1-6.15-13.12L81.59,128,65.85,109.12a8,8,0,0,1,12.3-10.24L92,115.5l13.85-16.62a8,8,0,1,1,12.3,10.24L102.41,128l15.74,18.88a8,8,0,0,1-12.3,10.24L92,140.5,78.15,157.12A8,8,0,0,1,72,160Zm56,56H72V192h56Zm0-152H72V40h56Zm72,152H144V192a16,16,0,0,0,16-16v-8h40Zm0-64H160V104h40Zm0-64H160V80a16,16,0,0,0-16-16V40h56Z"},child:[]}]})(e)}function MV(e){return ut({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M200,24H72A16,16,0,0,0,56,40V64H40A16,16,0,0,0,24,80v96a16,16,0,0,0,16,16H56v24a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM68.24,153.94l-12-48a8,8,0,1,1,15.52-3.88l6.76,27,6.32-12.66a8,8,0,0,1,14.32,0l6.32,12.66,6.76-27a8,8,0,0,1,15.52,3.88l-12,48a8,8,0,0,1-6.89,6,8.46,8.46,0,0,1-.87.05,8,8,0,0,1-7.16-4.42L92,137.89l-8.84,17.69a8,8,0,0,1-14.92-1.64ZM200,216H72V192h72a16,16,0,0,0,16-16v-8h40Zm0-64H160V104h40Zm0-64H160V80a16,16,0,0,0-16-16H72V40H200Z"},child:[]}]})(e)}const AV="_excel_18ggp_1",RV="_word_18ggp_5",jV="_pdf_18ggp_9",DV="_image_18ggp_13",rd={excel:AV,word:RV,pdf:jV,image:DV},Qk=({fileExtension:e,className:t,...n})=>{switch(e==null?void 0:e.toUpperCase()){case"JPG":case"JPEG":case"BMP":case"PNG":return b.jsx("span",{className:ce(t,rd.image),children:b.jsx(TV,{...n})});case"XLS":case"XLSX":case"CSV":return b.jsx(OV,{className:ce(t,rd.excel),...n});case"DOC":case"DOCM":case"DOCX":return b.jsx(MV,{className:ce(t,rd.word),...n});case"PDF":return b.jsx(bI,{className:ce(t,rd.pdf),...n});default:return b.jsx(kV,{})}},NV=()=>{const{ProjectIconComponent:e,texts:{documents:t}}=h.useContext(sn),{apiActions:{downloadFile:n},reducer:[r]}=h.useContext(bn),i=h.useMemo(()=>r.activeFolder==="root",[r.activeFolder]),a=h.useCallback((l,c,u)=>l?ZS(c??"")&&localStorage.getItem("file-download-try-opening")!=="false"?b.jsx("span",{role:"button",className:"link link-primary d-flex align-items-center",onClick:f=>{f.stopPropagation(),n(u,!0)},children:l}):l:"",[n]),o=Xk();return{columns:h.useMemo(()=>[o.accessor("id",{header:"id",type:"number",meta:{hidden:!0}}),...i?[o.accessor("folderName",{header:t.folder,type:"string"})]:[],o.accessor("--icon",{header:"",type:"string",size:36,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:l=>{const c=l.row.getValue("fileExtension"),u=l.row.getValue("id");return a(b.jsx(Qk,{fileExtension:(c==null?void 0:c.toString())??"",className:Hg.extensionIcon,size:18}),(c==null?void 0:c.toString())??"",Number((u==null?void 0:u.toString())??""))}}}),o.accessor("name",{header:t.name,type:"string",meta:{customCellRender:l=>{const c=l.row.getValue("name"),u=l.row.getValue("fileExtension"),d=l.row.getValue("id");return a((c==null?void 0:c.toString())??"",(u==null?void 0:u.toString())??"",Number((d==null?void 0:d.toString())??""))}}}),o.accessor("description",{header:t.description,type:"string"}),o.accessor("fileExtension",{header:t.fileExtension,type:"string",size:50,meta:{filterVariant:"select"}}),o.accessor("--downloadButton",{header:"",type:"number",size:38,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:l=>{const c=l.row.getValue("id");return b.jsx(uh,{className:Hg.downloadButton,onClick:()=>n(Number((c==null?void 0:c.toString())??""),!1),children:b.jsx(e,{icon:"file-download",size:18})})}}}),o.accessor("documentTypeName",{header:t.documentType,type:"string",meta:{filterVariant:"select"}}),o.accessor("validToDate",{header:t.validSince,type:"date"}),o.accessor("size",{header:t.size,type:"number",meta:{filterVariant:"none",customCellRender:l=>{var u;const c=Number(((u=l.getValue())==null?void 0:u.toString())??"");return c!==void 0?xs(c*1024*1024):""}}}),o.accessor("archive",{header:t.archived,type:"boolean",meta:{filterVariant:"select",customCellRender:l=>l.getValue()?t.yes[0]:t.no[0]}})],[e,t.archived,t.description,t.documentType,t.fileExtension,t.folder,t.name,t.no,t.size,t.validSince,t.yes,n,i,a,o])}},IV=({BnfTableComponent:e,tableIdentifier:t,writePermissions:n})=>{const{reducer:[r,i]}=h.useContext(bn),{columns:a}=NV(),o=h.useCallback(p=>{i({type:"mark-files-by-action",setStateAction:p})},[i]),s=h.useMemo(()=>r.activeFolder==="root",[r.activeFolder]),l=h.useMemo(()=>{var p;return r.activeFolder==="root"?!1:((p=r.foldersMap.get(r.activeFolder))==null?void 0:p.onlyRead)??!1},[r.activeFolder,r.foldersMap]),c=h.useMemo(()=>({enabled:n&&!s,getRowId:p=>{var g;return((g=p.id)==null?void 0:g.toString())??""},selectedRows:Object.fromEntries(r.markedFiles.map(p=>[p.toString(),!0])),setSelectedRows:p=>{const g=Object.keys(p).filter(m=>p[m]).map(m=>Number(m));o(g)}}),[s,r.markedFiles,n,o]),u=h.useMemo(()=>r.activeFolder==="root"?r.filteredFiles:r.filteredFiles.filter(p=>p.folderId===r.activeFolder),[r.activeFolder,r.filteredFiles]),{getDraggableProps:d}=W0(),f=h.useCallback(p=>n===!1||l?{}:d(p.id),[d,l,n]);return b.jsx("div",{className:ce(Hg.wrapper),children:b.jsx(e,{data:u,columns:a,rowSelection:c,getRowProps:f,initState:{columnFilters:[{id:"archive",value:"false"}]},tableId:t,bottomBar:{hidden:!0}},r.activeFolder)})},PV="_wrapper_1q562_1",LV="_divButtons_1q562_10",Dm={wrapper:PV,divButtons:LV},FV="_wrapper_1bpdd_1",BV="_fileInput_1bpdd_5",Ww={wrapper:FV,fileInput:BV},zV=({entityId:e,entityType:t,children:n,disabled:r})=>{const i=h.useRef(null),[a,o]=h.useState(null),{reducer:[s]}=h.useContext(bn),l=f=>{var p;(((p=f.target.files)==null?void 0:p.length)??0)>0&&o(f.target.files)},c=h.useCallback(()=>{o(null),i.current&&(i.current.value="")},[]),u=h.useMemo(()=>`documents-upload-${t}-${e}`,[e,t]),d=h.useMemo(()=>r||s.activeFolder==="root",[r,s.activeFolder]);return b.jsxs("div",{className:Ww.wrapper,children:[b.jsx("label",{htmlFor:u,className:ce("btn btn-context luminus-context-button",d?"disabled":void 0),children:n}),b.jsx("input",{id:u,type:"file",multiple:!0,onChange:l,className:Ww.fileInput,ref:i,disabled:d}),a!==null?b.jsx(U0,{handleClose:c,files:a}):void 0]})},Wr=({children:e,onClick:t,className:n,disabled:r=!1})=>b.jsx(uh,{onClick:t,className:n,disabled:r,children:e}),WV=({className:e,entityId:t,entityType:n})=>{var E,M;const{texts:{documents:r}}=h.useContext(sn),{prompt:i}=TS(),{confirm:a}=R0(),{apiActions:o,reducer:[s,l]}=h.useContext(bn),{deleteFiles:c,renameFiles:u,downloadAsZip:d,archivateFiles:f,deleteDirectory:p}=o,{renameFolder:g}=Z4(),m=h.useMemo(()=>s.markedFiles.length===0,[s.markedFiles.length]),v=h.useMemo(()=>s.markedFiles.length===1,[s.markedFiles.length]),x=h.useCallback(async()=>{if(s.activeFolder==="root")return;const k=await i(r.enterNewFolderName,{input:"input"});k!==null&&g(s.activeFolder,k)},[r.enterNewFolderName,i,g,s.activeFolder]),_=h.useCallback(async()=>{if(s.activeFolder==="root")return;const k=await i(r.enterNewFileName,{input:"input"});k!==null&&u(k)},[r.enterNewFileName,i,u,s.activeFolder]),w=h.useMemo(()=>s.activeFolder==="root",[s.activeFolder]),C=h.useMemo(()=>{var k;return s.activeFolder==="root"?!1:((k=s.foldersMap.get(s.activeFolder))==null?void 0:k.onlyRead)??!1},[s.activeFolder,s.foldersMap]),y=h.useMemo(()=>s.markedFiles.every(k=>{var R;return((R=s.constantFiles.find(S=>S.id===k))==null?void 0:R.archive)===!1}),[s.constantFiles,s.markedFiles]),$=h.useMemo(()=>s.markedFiles.every(k=>{var R;return((R=s.constantFiles.find(S=>S.id===k))==null?void 0:R.archive)===!0}),[s.constantFiles,s.markedFiles]);return b.jsx("div",{className:ce(e,Dm.wrapper,s.state==="folder-choosing"?"ignore-dim":void 0,"d-flex justify-content-between"),children:s.state!=="folder-choosing"?b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:Dm.divButtons,children:[b.jsx(zV,{entityId:t,entityType:n,disabled:C,children:r.uploadFiles}),b.jsx(Wr,{onClick:()=>{l({type:"open-modal",modalType:"create-folder",chosenFolderId:s.activeFolder??"root"})},disabled:C,children:r.createFolder}),b.jsx(Wr,{disabled:s.activeFolder==="root"||((E=s.foldersMap.get(s.activeFolder))==null?void 0:E.isDefault),onClick:async()=>{var R;await a(`${r.deleteFolder} ${(R=s.foldersMap.get(s.activeFolder))==null?void 0:R.name}?`)&&p(s.activeFolder)},children:r.deleteFolder}),b.jsx(Wr,{disabled:s.activeFolder==="root"||((M=s.foldersMap.get(s.activeFolder))==null?void 0:M.isDefault),onClick:x,children:r.renameFolder})]}),!w&&!C?b.jsxs("div",{className:Dm.divButtons,children:[b.jsx(Wr,{onClick:()=>{l({type:"open-modal",modalType:"edit-file-properties"})},disabled:!v,children:r.editFileProperties}),b.jsx(Wr,{onClick:async()=>{await a(r.confirmDeleteFile(s.markedFiles.length))&&c(s.markedFiles)},disabled:m,children:r.delete}),$?b.jsx(Wr,{onClick:async()=>{await a(r.confirmDearchiveFile(s.markedFiles.length))&&await f(!0)},disabled:m,children:r.dearchivate}):b.jsx(Wr,{onClick:async()=>{await a(r.confirmArchiveFile(s.markedFiles.length))&&await f()},disabled:m||!y,children:r.archivate}),b.jsx(Wr,{onClick:_,disabled:m,children:r.rename}),b.jsx(Wr,{onClick:d,disabled:m,children:r.downloadZip})]}):null]}):s.state==="folder-choosing"?b.jsx(b.Fragment,{children:b.jsx(Wr,{onClick:()=>l({type:"return-from-folder-choosing"}),className:ce("ignore-dim","body-background-color"),children:r.back})}):void 0})},UV=({file:e})=>{const{confirm:t}=R0(),{reducer:[n],apiActions:{downloadFile:r}}=h.useContext(bn),{texts:{documents:i}}=h.useContext(sn),a=h.useCallback(async()=>{await t(i.confirmFileDownload(e.name,e.size==null?void 0:xs(e.size*1024*1024)))&&r(e.id)},[t,i,r,e.id,e.name,e.size]);return b.jsxs(Gf,{action:!0,onClick:a,children:[b.jsx(Bn,{variant:"body",className:"text-muted",children:eE(e.folderId,n.foldersMap)}),b.jsxs("div",{className:"d-flex justify-content-between gap-2",children:[b.jsx(Bn,{variant:"body",children:e.name}),b.jsx(Bn,{variant:"body",children:e.size==null?null:xs(e.size*1024*1024)})]})]})},HV="_typeSelect_m3myk_1",VV={typeSelect:HV},qV=()=>{const{reducer:[e]}=h.useContext(bn),{texts:{documents:t}}=h.useContext(sn),[n,r]=h.useState(""),[i,a]=h.useState(null),o=h.useMemo(()=>{const l=new Map;return e.filteredFiles.forEach(u=>{l.get(u.documentTypeId)===void 0&&l.set(u.documentTypeId,u.documentTypeName)}),[{id:null,name:t.all},...Array.from(l).map(u=>({id:u[0],name:u[1]}))]},[t.all,e.filteredFiles]),s=h.useMemo(()=>e.filteredFiles.filter(l=>k0(l.name,n)&&(i===null||l.documentTypeId===i)),[n,i,e.filteredFiles]);return b.jsxs("div",{className:"d-flex h-100 flex-column",children:[b.jsxs("div",{className:"d-flex gap-1 mb-1",children:[b.jsx(q4,{options:o,label:t.documentType,value:i,onChange:a,isNumber:!0,size:"sm",className:VV.typeSelect}),b.jsx(H4,{label:t.search,type:"text",value:n,onChange:l=>r(l===null?"":l),className:"flex-grow-1",size:"sm"})]}),b.jsx(nS,{className:"overflow-y-auto",children:s.map(l=>b.jsx(UV,{file:l},l.id))})]})};function YV(e){return{name:e.name,defaultDocType:e.defaultDocType,childrenIds:[],parentId:e.parentId??null,isDefault:e.isDefault,onlyRead:e.onlyRead}}function GV(e){const t=[],n=new Map,r=new Map;return e.forEach(i=>{n.set(i.id,YV(i)),i.parentId===null?t.push(i.id):r.set(i.id,i.parentId)}),r.forEach((i,a)=>{const o=n.get(i);if(o===void 0)throw new Error(`Did not get folder with ID ${i}, which is supposed to be parent directory of folder with ID ${a}`);o.childrenIds.push(a)}),{dirsMap:n,rootIds:t}}function Uw(e,t){const n=t.toUpperCase();return e.filter(r=>{var a;const i=(a=r.name)==null?void 0:a.toUpperCase();return i==null?void 0:i.includes(n)})}function KV(e,t){return e.map(n=>{var r;return{...n,folderName:((r=t.get(n.folderId))==null?void 0:r.name)??""}})}const ZV=([e,t],n,r)=>{const{texts:{documents:i}}=h.useContext(sn),{startLoading:a,stopLoading:o}=h.useContext(Xf),{addNotification:s}=ah(),l=oh(),c=h.useCallback(async w=>{a("documentList");try{const y=(await l.get(`/documents/${n}/${r}`)).data,{dirsMap:$,rootIds:E}=GV(y.folders),M=KV(y.documents,$);t({type:"load-data",files:M,foldersMap:$,rootFolderIds:E,setActiveFolder:w})}finally{o("documentList")}},[l,t,r,n,a,o]);h.useEffect(()=>{c(!0)},[c]);const u=h.useCallback(async()=>{a("documents-types");try{const w=await l.get(`/documents/types/${n}`);if(w.status!==200)throw new Error(`Unexpected status code: ${w.status}`);t({type:"load-document-types",documentTypes:w.data})}finally{o("documents-types")}},[l,t,n,a,o]);h.useEffect(()=>{u()},[u]);const d=h.useCallback(async(w,C)=>{const y=C??e.markedFiles;a("documentsMove");try{await l.put(`/documents/move-to-folder?folderId=${w}`,y),t({type:"update-files",fileIds:y,newProperties:{folderId:w}}),s(i.fileMoveSuccessful(y.length,e.foldersMap.get(w).name),"success")}finally{o("documentsMove")}},[e.markedFiles,e.foldersMap,a,l,t,s,i,o]),f=h.useCallback(async w=>{const C=w??e.markedFiles;a("documentsFilesDelete");try{const y=await l.delete(`/documents/delete?${Ag(C,"documentIds")}`);if(y.status!==200)throw new Error(`Unexpected status code: ${y.status}`);t({type:"delete-files",fileIds:C}),s(i.fileDeleteSuccessful(C.length),"success")}finally{o("documentsFilesDelete")}},[e.markedFiles,a,l,t,s,i,o]),p=h.useCallback(async w=>{var C;if(!(w==="root"||(C=e.foldersMap.get(w))!=null&&C.isDefault)){a("documentsFolderDelete");try{const y=await l.delete(`/documents/folder/${w}`);if(y.status!==200)throw new Error(`Unexpected status code: ${y.status}`);t({type:"delete-folder",folderId:w}),s(i.folderDeleteSuccessful(e.foldersMap.get(w).name),"success")}finally{o("documentsFolderDelete")}}},[e.foldersMap,a,l,t,s,i,o]),g=h.useCallback(async w=>{a("documentsRename");try{const C=await l.put("/documents/update-name",{documentIds:e.markedFiles,name:w});if(C.status!==200)throw new Error(`Unexpected status code: ${C.status}`);c()}finally{o("documentsRename")}},[a,l,e.markedFiles,c,o]),m=h.useCallback(async w=>{a("documents-archivate");try{const C=await l.put(`/documents/${w?"dearchive":"archive"}`,e.markedFiles);if(C.status!==200)throw new Error(`Unexpected status code: ${C.status}`);t({type:"update-files",fileIds:e.markedFiles,newProperties:{archive:!w}}),s((w?i.dearchivateSuccessful:i.archivateSuccessful)(e.markedFiles.length),"success")}finally{o("documents-archivate")}},[a,l,e.markedFiles,t,s,i.archivateSuccessful,i.dearchivateSuccessful,o]),v=h.useCallback(async()=>{var C;if(e.activeFolder==="root")return;const w=e.markedFiles.length;s(i.downloadAsZip(w),"info"),a("documents-ZIP_download");try{const y=await l.get(`/documents/download-zip?${Ag(e.markedFiles,"documentIds")}`,{responseType:"blob"});zd(y.data,(((C=e.foldersMap.get(e.activeFolder))==null?void 0:C.name)??"")+"_files")}finally{o("documents-ZIP_download")}},[e.activeFolder,e.markedFiles,e.foldersMap,s,i,a,l,o]),x=h.useCallback(async(w,C)=>{s(i.downloadingFile,"info"),a("documents-downloading_file");try{const y=await l.get(`/documents/${w}?isSmall=true`,{responseType:"blob"}),$=e.constantFiles.find(M=>M.id===w),E=`${($==null?void 0:$.name)??w.toString()}.${$!=null&&$.fileExtension?$==null?void 0:$.fileExtension.toLowerCase():"unknown"}`;zd(y.data,E,C)}finally{o("documents-downloading_file")}},[s,i.downloadingFile,a,l,e.constantFiles,o]),_=h.useCallback(async(w,C)=>{a("documents-upload"),s(i.uploadingDocuments,"info");try{await l.postForm("/documents/upload",{files:w,...C}),await c()}finally{o("documents-upload")}},[a,s,i.uploadingDocuments,l,c,o]);return{loadDocuments:c,moveDocuments:d,deleteFiles:f,deleteDirectory:p,renameFiles:g,archivateFiles:m,downloadAsZip:v,downloadFile:x,uploadFiles:_}},XV=(e,t)=>{var n,r;switch(t.type){case"load-data":{const i={...e,constantFiles:t.files,filteredFiles:Uw(t.files,e.searchString),foldersMap:t.foldersMap,rootFolderIds:t.rootFolderIds};if(t.setActiveFolder){const a=t.rootFolderIds.find(o=>t.files.some(s=>s.archive===!1&&s.folderId===o))??"root";i.activeFolder=a}return i}case"load-document-types":return{...e,documentTypes:t.documentTypes};case"select-folder":return{...e,activeFolder:t.folderId,markedFiles:[]};case"mark-file":{const i=e.markedFiles.includes(t.fileId)?[...e.markedFiles.filter(a=>a!==t.fileId)]:[...e.markedFiles,t.fileId];return{...e,state:i.length>0?"selection-file":"explorer",markedFiles:i}}case"mark-files-by-action":{const i=typeof t.setStateAction=="function"?t.setStateAction(e.markedFiles):t.setStateAction;return{...e,state:i.length>0?"selection-file":"explorer",markedFiles:i}}case"mark-all-files":return e.markedFiles.length<e.filteredFiles.filter(i=>i.folderId===e.activeFolder).length?{...e,markedFiles:e.filteredFiles.filter(i=>i.folderId===e.activeFolder).map(i=>i.id),state:"explorer"}:{...e,markedFiles:[],state:"explorer"};case"enter-folder-choosing":return e.state==="folder-choosing"||e.state==="openned-modal"?e:{...e,state:"folder-choosing",canTargetRoot:t.canTargetRoot??!1,previousState:e.state,choosingType:t.choosingType};case"return-from-folder-choosing":return e.state!=="folder-choosing"?e:{...e,state:e.previousState};case"update-files":return{...e,filteredFiles:[...e.filteredFiles.map(i=>t.fileIds.includes(i.id)?{...i,...t.newProperties}:i)],constantFiles:[...e.constantFiles.map(i=>t.fileIds.includes(i.id)?{...i,...t.newProperties}:i)],markedFiles:[],state:"explorer"};case"update-folders":{const i=new Map(e.foldersMap);return t.folderIds.forEach(a=>{i.set(a,{...e.foldersMap.get(a),...t.newProperties})}),{...e,foldersMap:i}}case"delete-files":return{...e,filteredFiles:[...e.filteredFiles.filter(i=>!t.fileIds.includes(i.id))],constantFiles:[...e.constantFiles.filter(i=>!t.fileIds.includes(i.id))],markedFiles:e.markedFiles.filter(i=>!t.fileIds.includes(i)),state:"explorer"};case"open-modal":switch(t.modalType){case"create-folder":return{...e,state:"openned-modal",modalType:t.modalType,chosenFolderId:t.chosenFolderId};default:return{...e,state:"openned-modal",modalType:t.modalType}}case"close-modal":return{...e,state:"explorer"};case"delete-folder":{const i=new Map(e.foldersMap),a=(n=i.get(t.folderId))==null?void 0:n.parentId;let o=[...e.rootFolderIds];if(a){const s=JSON.parse(JSON.stringify(i.get(a)));s.childrenIds=s.childrenIds.filter(l=>l!==t.folderId),i.set(a,s)}else o=o.filter(s=>s!==t.folderId);return i.delete(t.folderId),{...e,rootFolderIds:o,foldersMap:i,activeFolder:"root"}}case"create-folder":{const i=new Map(e.foldersMap);i.set(t.folderId,{name:t.folderData.name,defaultDocType:(r=e.documentTypes.find(o=>o.id===t.folderData.documentTypeId))==null?void 0:r.name,childrenIds:[],parentId:t.folderData.parentFolderId,isDefault:!1,onlyRead:t.isOnlyRead});const a=[...e.rootFolderIds];if(t.folderData.parentFolderId===null)a.push(t.folderId);else{const o=i.get(t.folderData.parentFolderId),s=JSON.parse(JSON.stringify(o));s.childrenIds.push(t.folderId),i.set(t.folderData.parentFolderId,s)}return{...e,state:"explorer",rootFolderIds:a,foldersMap:i}}case"search-files":{const i=Uw(e.constantFiles,t.searchString);return{...e,searchString:t.searchString,filteredFiles:i,markedFiles:e.markedFiles.filter(a=>i.map(o=>o.id).includes(a))}}default:throw new Error("Wrong action.type specified.")}},QV=()=>{const e={state:"explorer",activeFolder:"root",searchString:"",filteredFiles:[],constantFiles:[],foldersMap:new Map,rootFolderIds:[],markedFiles:[],documentTypes:[]},[t,n]=h.useReducer(XV,e);return[t,n]},JV=h.memo(({entityType:e,entityId:t,className:n,BnfTableComponent:r,tableIdentifier:i,customRootFolderName:a,writePermissions:o=!0,...s})=>{const{isMobile:l}=iu(),{ProjectIconComponent:c,texts:{documents:u}}=h.useContext(sn),[d,f]=QV(),[p,g]=h.useState(null),{loadDocuments:m,...v}=ZV([d,f],e,t),x=h.useMemo(()=>({entityId:t,entityType:e,apiActions:v,loadDocuments:m,reducer:[d,f]}),[t,e,v,m,d,f]),{getDropProps:_}=W0();return l?b.jsx(bn.Provider,{value:x,children:b.jsx(qV,{})}):b.jsx("div",{...s,className:ce(ja.wrapper,n),onDragOver:w=>{w.dataTransfer.dropEffect="none",w.stopPropagation(),w.preventDefault()},onDragEnter:w=>{w.dataTransfer.dropEffect="none",w.stopPropagation(),w.preventDefault()},children:b.jsxs(bn.Provider,{value:x,children:[b.jsx("div",{className:ce(d.state==="folder-choosing"?"dim-others":void 0,ja.explorerWindow),children:b.jsxs("ul",{className:ja.folderList,children:[b.jsx(NI,{customText:a??e}),d.rootFolderIds.map(w=>b.jsx(tE,{dirId:w,writePermissions:o},w))]})}),b.jsxs("div",{className:ce(ja.explorerWindow,ja.fileList),...o&&YI(d)?_(d.activeFolder,{onFilesDrop:w=>g(w),ignoreInner:!0}):{},children:[b.jsxs("div",{className:ja.dndText,children:[b.jsx(c,{icon:"file-upload",iconProps:{style:{marginRight:0}}}),b.jsx("span",{children:u.dropToUpload})]}),b.jsx(IV,{tableIdentifier:i,BnfTableComponent:r,writePermissions:o},(d.activeFolder==="root").toString())]}),o?b.jsx(WV,{className:ja.controls,entityType:e,entityId:t}):null,b.jsx(VI,{}),p!==null?b.jsx(U0,{files:p,handleClose:()=>g(null),targetFolderId:d.activeFolder==="root"?void 0:d.activeFolder}):null]})})}),eq="Left",tq="Right",nq="Up",rq="Down",Jo={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},iv={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},Hw="mousemove",Vw="mouseup",iq="touchend",aq="touchmove",oq="touchstart";function sq(e,t,n,r){return e>t?n>0?tq:eq:r>0?rq:nq}function qw(e,t){if(t===0)return e;const n=Math.PI/180*t,r=e[0]*Math.cos(n)+e[1]*Math.sin(n),i=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[r,i]}function lq(e,t){const n=u=>{const d="touches"in u;d&&u.touches.length>1||e((f,p)=>{p.trackMouse&&!d&&(document.addEventListener(Hw,r),document.addEventListener(Vw,o));const{clientX:g,clientY:m}=d?u.touches[0]:u,v=qw([g,m],p.rotationAngle);return p.onTouchStartOrOnMouseDown&&p.onTouchStartOrOnMouseDown({event:u}),Object.assign(Object.assign(Object.assign({},f),iv),{initial:v.slice(),xy:v,start:u.timeStamp||0})})},r=u=>{e((d,f)=>{const p="touches"in u;if(p&&u.touches.length>1)return d;if(u.timeStamp-d.start>f.swipeDuration)return d.swiping?Object.assign(Object.assign({},d),{swiping:!1}):d;const{clientX:g,clientY:m}=p?u.touches[0]:u,[v,x]=qw([g,m],f.rotationAngle),_=v-d.xy[0],w=x-d.xy[1],C=Math.abs(_),y=Math.abs(w),$=(u.timeStamp||0)-d.start,E=Math.sqrt(C*C+y*y)/($||1),M=[_/($||1),w/($||1)],k=sq(C,y,_,w),R=typeof f.delta=="number"?f.delta:f.delta[k.toLowerCase()]||Jo.delta;if(C<R&&y<R&&!d.swiping)return d;const S={absX:C,absY:y,deltaX:_,deltaY:w,dir:k,event:u,first:d.first,initial:d.initial,velocity:E,vxvy:M};S.first&&f.onSwipeStart&&f.onSwipeStart(S),f.onSwiping&&f.onSwiping(S);let T=!1;return(f.onSwiping||f.onSwiped||f[`onSwiped${k}`])&&(T=!0),T&&f.preventScrollOnSwipe&&f.trackTouch&&u.cancelable&&u.preventDefault(),Object.assign(Object.assign({},d),{first:!1,eventData:S,swiping:!0})})},i=u=>{e((d,f)=>{let p;if(d.swiping&&d.eventData){if(u.timeStamp-d.start<f.swipeDuration){p=Object.assign(Object.assign({},d.eventData),{event:u}),f.onSwiped&&f.onSwiped(p);const g=f[`onSwiped${p.dir}`];g&&g(p)}}else f.onTap&&f.onTap({event:u});return f.onTouchEndOrOnMouseUp&&f.onTouchEndOrOnMouseUp({event:u}),Object.assign(Object.assign(Object.assign({},d),iv),{eventData:p})})},a=()=>{document.removeEventListener(Hw,r),document.removeEventListener(Vw,o)},o=u=>{a(),i(u)},s=(u,d)=>{let f=()=>{};if(u&&u.addEventListener){const p=Object.assign(Object.assign({},Jo.touchEventOptions),d.touchEventOptions),g=[[oq,n,p],[aq,r,Object.assign(Object.assign({},p),d.preventScrollOnSwipe?{passive:!1}:{})],[iq,i,p]];g.forEach(([m,v,x])=>u.addEventListener(m,v,x)),f=()=>g.forEach(([m,v])=>u.removeEventListener(m,v))}return f},c={ref:u=>{u!==null&&e((d,f)=>{if(d.el===u)return d;const p={};return d.el&&d.el!==u&&d.cleanUpTouch&&(d.cleanUpTouch(),p.cleanUpTouch=void 0),f.trackTouch&&u&&(p.cleanUpTouch=s(u,f)),Object.assign(Object.assign(Object.assign({},d),{el:u}),p)})}};return t.trackMouse&&(c.onMouseDown=n),[c,s]}function cq(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function Sb(e){const{trackMouse:t}=e,n=ie.useRef(Object.assign({},iv)),r=ie.useRef(Object.assign({},Jo)),i=ie.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Jo),e);let a;for(a in Jo)r.current[a]===void 0&&(r.current[a]=Jo[a]);const[o,s]=ie.useMemo(()=>lq(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=cq(n.current,r.current,i.current,s),o}const uq="_side-content-bar_16o0s_1",dq="_mobile_16o0s_12",fq="_expanded_16o0s_20",hq="_content-container_16o0s_23",pq="_resizer_16o0s_31",mq="_expander_16o0s_46",gq="_icon_16o0s_65",pi={sideContentBar:uq,mobile:dq,expanded:fq,contentContainer:hq,resizer:pq,expander:mq,icon:gq},Jk=({width:e,children:t,isExpandedOnMobileState:[n,r],resizeable:i=!0,onResize:a})=>{const{ProjectIconComponent:o}=h.useContext(sn),{isMobile:s}=iu(),l=Sb({onSwipedRight:d=>{d.velocity>.8&&r(!1)},delta:100}),[c,u]=h.useState(null);return b.jsxs(b.Fragment,{children:[b.jsxs("section",{className:ce("luminus-side-content-bar shadow",pi.sideContentBar,{[pi.mobile]:s},{[pi.expanded]:n}),style:{width:`${e}px`},...l,children:[i&&!s?b.jsx("div",{role:"button",className:ce(pi.resizer,"luminus-side-content-bar-resizer","shadow"),draggable:!0,onDragStart:d=>u({startX:d.clientX,widthStart:e}),onDrag:d=>a(((c==null?void 0:c.widthStart)??0)+(((c==null?void 0:c.startX)??0)-d.clientX)),onDragEnd:()=>u(null),children:b.jsx(o,{className:pi.icon,icon:"resizer-horizontal"})}):null,b.jsx("div",{className:pi.contentContainer,children:t})]}),s?b.jsx("div",{role:"button",onClick:()=>r(!n),className:ce(pi.expander,{[pi.expanded]:n},"luminus-side-content-bar-expander","shadow"),children:b.jsx(o,{className:pi.icon,icon:"chevron-left"})}):null]})},vq=({title:e})=>b.jsx("div",{className:"mb-3",children:typeof e=="string"?b.jsx(Bn,{variant:"h3",children:e}):e}),bq="_full-screen-container_1rm4r_1",eT={fullScreenContainer:bq},yq=ce("overflow-hidden luminus-full-screen-container",eT.fullScreenContainer),xq="container-fluid",wq=({title:e,children:t,sideContent:n,sideContentWidth:r=250,sideContentResizeable:i=!0,noPadding:a,className:o,variant:s="main",helmet:l,unavailableOnMobile:c})=>{const{addHelmet:u,removeHelmet:d}=h.useContext(F4),{texts:{container:f}}=h.useContext(sn),[p,g]=h.useState(r),[m,v]=h.useState(!1),x=h.useMemo(()=>{switch(s){case"fullScreen":return yq;case"main":return xq;default:throw new Error(`PageContainer got incorrect variant type: ${s}`)}},[s]);h.useEffect(()=>(l?u(l):typeof e=="string"&&e&&u(e),()=>d()),[l,u,d,e]);const _=Sb({onSwipedLeft:y=>{y.velocity>.8&&v(!0)},delta:100}),{isMobile:w}=iu(),C=h.useMemo(()=>w&&c,[w,c]);return h.useEffect(()=>{g(r)},[r]),b.jsxs(b.Fragment,{children:[b.jsx("div",{className:ce(x,a?"p-0":"p-3",o),style:s==="fullScreen"?{width:n?`calc(100% - ${p}px)`:"100%"}:void 0,..._,children:b.jsx("div",{className:s==="fullScreen"?eT.fullScreenContainer:void 0,style:s==="main"?{paddingRight:n?`${p}px`:void 0}:{height:"100%",width:"100%"},children:C?b.jsx(Ab,{variant:"warning",children:f.unavailableOnMobile}):b.jsxs(b.Fragment,{children:[e?b.jsx(vq,{title:e}):null,t]})})}),n&&!C?b.jsx(Jk,{width:p,isExpandedOnMobileState:[m,v],resizeable:i,onResize:y=>i?g(y):{},children:n}):null]})};var Eb={};Eb.match=kq;Eb.parse=tT;var _q=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,Cq=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,$q=/^(?:(min|max)-)?(.+)/,Sq=/(em|rem|px|cm|mm|in|pt|pc)?$/,Eq=/(dpi|dpcm|dppx)?$/;function kq(e,t){return tT(e).some(function(n){var r=n.inverse,i=n.type==="all"||t.type===n.type;if(i&&r||!(i||r))return!1;var a=n.expressions.every(function(o){var s=o.feature,l=o.modifier,c=o.value,u=t[s];if(!u)return!1;switch(s){case"orientation":case"scan":return u.toLowerCase()===c.toLowerCase();case"width":case"height":case"device-width":case"device-height":c=Kw(c),u=Kw(u);break;case"resolution":c=Gw(c),u=Gw(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":c=Yw(c),u=Yw(u);break;case"grid":case"color":case"color-index":case"monochrome":c=parseInt(c,10)||1,u=parseInt(u,10)||0;break}switch(l){case"min":return u>=c;case"max":return u<=c;default:return u===c}});return a&&!r||!a&&r})}function tT(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(_q),r=n[1],i=n[2],a=n[3]||"",o={};return o.inverse=!!r&&r.toLowerCase()==="not",o.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],o.expressions=a.map(function(s){var l=s.match(Cq),c=l[1].toLowerCase().match($q);return{modifier:c[1],feature:c[2],value:l[2]}}),o})}function Yw(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function Gw(e){var t=parseFloat(e),n=String(e).match(Eq)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function Kw(e){var t=parseFloat(e),n=String(e).match(Sq)[1];switch(n){case"em":return t*16;case"rem":return t*16;case"cm":return t*96/2.54;case"mm":return t*96/2.54/10;case"in":return t*96;case"pt":return t*72;case"pc":return t*72/12;default:return t}}var Tq=Eb.match,Zw=typeof window<"u"?window.matchMedia:null;function Oq(e,t,n){var r=this,i;Zw&&!n&&(i=Zw.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(s)):(this.matches=Tq(e,t),this.media=e),this.addListener=a,this.removeListener=o,this.dispose=l;function a(c){i&&i.addListener(c)}function o(c){i&&i.removeListener(c)}function s(c){r.matches=c.matches,r.media=c.media}function l(){i&&i.removeListener(s)}}function Mq(e,t,n){return new Oq(e,t,n)}var Aq=Mq;const Rq=on(Aq);var jq=/[A-Z]/g,Dq=/^ms-/,Nm={};function Nq(e){return"-"+e.toLowerCase()}function nT(e){if(Nm.hasOwnProperty(e))return Nm[e];var t=e.replace(jq,Nq);return Nm[e]=Dq.test(t)?"-"+t:t}function Iq(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(let a=0;a<i;a++){const o=n[a];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}const Fn=ve.oneOfType([ve.string,ve.number]),rT={all:ve.bool,grid:ve.bool,aural:ve.bool,braille:ve.bool,handheld:ve.bool,print:ve.bool,projection:ve.bool,screen:ve.bool,tty:ve.bool,tv:ve.bool,embossed:ve.bool},Pq={orientation:ve.oneOf(["portrait","landscape"]),scan:ve.oneOf(["progressive","interlace"]),aspectRatio:ve.string,deviceAspectRatio:ve.string,height:Fn,deviceHeight:Fn,width:Fn,deviceWidth:Fn,color:ve.bool,colorIndex:ve.bool,monochrome:ve.bool,resolution:Fn,type:Object.keys(rT)},{type:eye,...Lq}=Pq,Fq={minAspectRatio:ve.string,maxAspectRatio:ve.string,minDeviceAspectRatio:ve.string,maxDeviceAspectRatio:ve.string,minHeight:Fn,maxHeight:Fn,minDeviceHeight:Fn,maxDeviceHeight:Fn,minWidth:Fn,maxWidth:Fn,minDeviceWidth:Fn,maxDeviceWidth:Fn,minColor:ve.number,maxColor:ve.number,minColorIndex:ve.number,maxColorIndex:ve.number,minMonochrome:ve.number,maxMonochrome:ve.number,minResolution:Fn,maxResolution:Fn,...Lq},Bq={...rT,...Fq};var zq={all:Bq};const Wq=e=>`not ${e}`,Uq=(e,t)=>{const n=nT(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?Wq(n):`(${n}: ${t})`},Hq=e=>e.join(" and "),Vq=e=>{const t=[];return Object.keys(zq.all).forEach(n=>{const r=e[n];r!=null&&t.push(Uq(n,r))}),Hq(t)},qq=h.createContext(void 0),Yq=e=>e.query||Vq(e),Xw=e=>e?Object.keys(e).reduce((n,r)=>(n[nT(r)]=e[r],n),{}):void 0,iT=()=>{const e=h.useRef(!1);return h.useEffect(()=>{e.current=!0},[]),e.current},Gq=e=>{const t=h.useContext(qq),n=()=>Xw(e)||Xw(t),[r,i]=h.useState(n);return h.useEffect(()=>{const a=n();Iq(r,a)||i(a)},[e,t]),r},Kq=e=>{const t=()=>Yq(e),[n,r]=h.useState(t);return h.useEffect(()=>{const i=t();n!==i&&r(i)},[e]),n},Zq=(e,t)=>{const n=()=>Rq(e,t||{},!!t),[r,i]=h.useState(n),a=iT();return h.useEffect(()=>{if(a){const o=n();return i(o),()=>{o&&o.dispose()}}},[e,t]),r},Xq=e=>{const[t,n]=h.useState(e.matches);return h.useEffect(()=>{const r=i=>{n(i.matches)};return e.addListener(r),n(e.matches),()=>{e.removeListener(r)}},[e]),t},Im=(e,t,n)=>{const r=Gq(t),i=Kq(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const a=Zq(i,r),o=Xq(a);return iT(),h.useEffect(()=>{},[o]),h.useEffect(()=>()=>{a&&a.dispose()},[]),o},Qq=["sm","md","lg","always"],aT="ResponsiveContextDropdownItem",Jq=e=>e.type.displayName===aT,kb=e=>({});kb.displayName=aT;function eY(e){return e.type&&e.type===h.Fragment}const oT=e=>{const t=[];Array.isArray(e)?t.push(...e):t.push(e);const n=[];return t.forEach(r=>{if(r){if(eY(r)){n.push(...oT(r.props.children));return}n.push(r)}}),n},tY=(e,t)=>{if(t===void 0)return e;const{searchQueryString:n,...r}=t;return Is.generatePath(e,r)+"?"+n},nY="_disabled_9mp5v_1",rY={disabled:nY},iY=()=>{const{ProjectIconComponent:e}=h.useContext(sn),{checkUserHasPermissions:t}=I4();return{getProcessedChildren:h.useCallback((r,i)=>{const a=[],o=[];let s=null;const l=u=>{const{hideOn:d,children:f,cKey:p,to:g,toRoute:m,disabled:v,icon:x,pathParams:_,...w}=u.props,C=(m==null?void 0:m.permissions)!=null,y=(m==null?void 0:m.permissions)!=null&&t(m==null?void 0:m.permissions),$=(v??!1)||C&&!y,E=g??(m==null?void 0:tY(m==null?void 0:m.route,_)),M=f??(m==null?void 0:m.name),k=x??(m!=null?b.jsx(e,{icon:"link"}):void 0);if(d==="always"||Qq.indexOf(d)>=i){s&&o.length>0&&o.push(s),s=null;const R=ce(w.className,{[rY.disabled]:$});E!=null?o.push(b.jsx(as,{...w,as:"link",to:E,disabled:$,icon:k,className:R,children:M},p)):o.push(b.jsx(as,{...w,icon:k,className:R,children:M},p))}else{const R=E!=null?{as:"link",href:E}:{};a.push(b.jsx(uh,{...w,...R,icon:k,className:ce($?"disabled":void 0,w.className),children:M},p))}};return oT(r).forEach(u=>{u&&h.isValidElement(u)&&(Jq(u)?l(u):s=u)}),{buttons:a,dropdownItems:o}},[e,t])}},sT=({children:e})=>{const{getProcessedChildren:t}=iY(),n=Im({maxWidth:768}),r=Im({minWidth:769,maxWidth:1200}),i=Im({minWidth:1201}),a=[n,r,i].indexOf(!0),{buttons:o,dropdownItems:s}=t(e,a);return b.jsxs("div",{className:"d-flex gap-1",children:[b.jsx(b.Fragment,{children:o}),s.length>0?b.jsx(z0,{toggle:b.jsx(B0,{as:F0}),children:s}):null]})};sT.Item=kb;const aY=h.createContext(void 0);function oY(e,t,n,r){var i=this,a=h.useRef(null),o=h.useRef(0),s=h.useRef(0),l=h.useRef(null),c=h.useRef([]),u=h.useRef(),d=h.useRef(),f=h.useRef(e),p=h.useRef(!0);f.current=e;var g=typeof window<"u",m=!t&&t!==0&&g;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var v=!!(n=n||{}).leading,x=!("trailing"in n)||!!n.trailing,_="maxWait"in n,w="debounceOnServer"in n&&!!n.debounceOnServer,C=_?Math.max(+n.maxWait||0,t):null;h.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]);var y=h.useMemo(function(){var $=function(j){var D=c.current,N=u.current;return c.current=u.current=null,o.current=j,s.current=s.current||j,d.current=f.current.apply(N,D)},E=function(j,D){m&&cancelAnimationFrame(l.current),l.current=m?requestAnimationFrame(j):setTimeout(j,D)},M=function(j){if(!p.current)return!1;var D=j-a.current;return!a.current||D>=t||D<0||_&&j-o.current>=C},k=function(j){return l.current=null,x&&c.current?$(j):(c.current=u.current=null,d.current)},R=function j(){var D=Date.now();if(v&&s.current===o.current&&S(),M(D))return k(D);if(p.current){var N=t-(D-a.current),O=_?Math.min(N,C-(D-o.current)):N;E(j,O)}},S=function(){r&&r({})},T=function(){if(g||w){var j=Date.now(),D=M(j);if(c.current=[].slice.call(arguments),u.current=i,a.current=j,D){if(!l.current&&p.current)return o.current=a.current,E(R,t),v?$(a.current):d.current;if(_)return E(R,t),$(a.current)}return l.current||E(R,t),d.current}};return T.cancel=function(){var j=l.current;j&&(m?cancelAnimationFrame(l.current):clearTimeout(l.current)),o.current=0,c.current=a.current=u.current=l.current=null,j&&r&&r({})},T.isPending=function(){return!!l.current},T.flush=function(){return l.current?k(Date.now()):d.current},T},[v,_,t,C,x,m,g,w,r]);return y}function sY(e,t){return e===t}function Tb(e,t,n){var r=n&&n.equalityFn||sY,i=h.useRef(e),a=h.useState({})[1],o=oY(h.useCallback(function(l){i.current=l,a({})},[a]),t,n,a),s=h.useRef(e);return r(s.current,e)||(o(e),s.current=e),[i.current,o]}const lY="_feedback_esh1j_1",cY="_feedback-spacer_esh1j_8",Qw={feedback:lY,feedbackSpacer:cY},Sh=({message:e})=>b.jsxs(b.Fragment,{children:[b.jsx("div",{className:ce("invalid-feedback luminus-invalid-feedback",Qw.feedback),children:e}),b.jsx("div",{className:ce("invalid-feedback-spacer",Qw.feedbackSpacer),children:e})]}),uY="_wrapper_1mvyk_1",dY="_open_1mvyk_9",fY="_dropdown_1mvyk_13",hY="_search-input-container_1mvyk_19",pY="_search-input_1mvyk_19",mY="_loading-container_1mvyk_25",gY="_items-container_1mvyk_32",vY="_header-row_1mvyk_38",bY="_name_1mvyk_49",yY="_item_1mvyk_32",xY="_column-item_1mvyk_65",wY="_action-buttons-container_1mvyk_89",_Y="_reverse_1mvyk_97",CY="_action-button_1mvyk_89",$Y="_actions-dropdown_1mvyk_110",wn={wrapper:uY,open:dY,dropdown:fY,searchInputContainer:hY,searchInput:pY,loadingContainer:mY,itemsContainer:gY,headerRow:vY,name:bY,item:yY,columnItem:xY,actionButtonsContainer:wY,reverse:_Y,actionButton:CY,actionsDropdown:$Y},lT=({show:e,onCancel:t,items:n,suggestedItems:r,suggestedItemsTitle:i,currentSelection:a,onSelectionChange:o,onSearchQueryChange:s,texts:l,itemsNameWidth:c,additionalColumns:u,displayIdAsName:d=!1,autoHideSearch:f=!1,allItemsLength:p,disabled:g,isLoading:m=!1,inputRef:v,archiveColumn:x="archive",addNewOptionPath:_,refreshOptions:w,noRemoveButton:C=!1})=>{var ye;const{texts:{customSelect:y}}=h.useContext(sn),$=h.useRef(null),E=h.useRef(null),M=h.useRef(null),k=h.useRef(null),R=h.useRef(null),[S,T]=h.useState(""),[j]=Tb(S,500),[,D]=h.useState(!1),{copyToClipboard:N}=L4(),O=(ye=v.current)==null?void 0:ye.getBoundingClientRect(),P=(O==null?void 0:O.x)??0,W=((O==null?void 0:O.x)??0)+((O==null?void 0:O.width)??0),U=(O==null?void 0:O.y)??0,I=((O==null?void 0:O.y)??0)+((O==null?void 0:O.height)??0),z=(O==null?void 0:O.width)??0,Y=(O==null?void 0:O.height)??0,X=5,{isMobile:K}=iu(),Z=8,ee=h.useMemo(()=>P?P>window.innerWidth/2-Z:!1,[P]),J=h.useMemo(()=>U?U>window.innerHeight/2-Z:!1,[U]);h.useEffect(()=>{var de;e&&((de=M.current)==null||de.focus())},[M,e]),h.useEffect(()=>{e||T("")},[e]),h.useEffect(()=>{s&&s(j)},[j,s]);const[B,L]=h.useState(null);h.useEffect(()=>{e&&n.length>0?L(0):L(null)},[n,e]);const F=h.useMemo(()=>B!==null?n.at(B)??null:null,[B,n]),H=h.useCallback((de,be)=>{var Ee,Le;const le=document.getElementById(`item-${de}`);if(le){const Ft=le.clientHeight??0;be==="down"?(Ee=k.current)==null||Ee.scrollBy({left:0,top:Ft,behavior:"smooth"}):(Le=k.current)==null||Le.scrollBy({left:0,top:-Ft,behavior:"smooth"})}},[]),A=h.useCallback(de=>{if(B===null||g)return;const be=B+de;be<0||be>=n.length||L(le=>(le!==null&&H(le,de>0?"down":"up"),be))},[B,n,g,H]),Q=h.useCallback(de=>{if(e)switch(de.key){case"Escape":de.stopPropagation(),de.preventDefault(),t();break;case"Enter":de.stopPropagation(),de.preventDefault(),g||o(F);break;case"ArrowUp":de.stopPropagation(),de.preventDefault(),A(-1);break;case"ArrowDown":de.stopPropagation(),de.preventDefault(),A(1);break}},[t,e,A,F,g,o]),q=h.useCallback(()=>{D(de=>!de)},[]);h.useEffect(()=>(window.addEventListener("scroll",q),()=>{window.removeEventListener("scroll",q)}),[q]),h.useEffect(()=>(window.addEventListener("resize",q),()=>{window.removeEventListener("resize",q)}),[q]),P4(Q),N4([$,E,R],t);const G=c??(u&&u.length>0?250:0),oe=(u==null?void 0:u.reduce((de,be)=>de+(be.width??100),0))??0,re=h.useMemo(()=>(a&&e&&!g&&!C)??!1,[a,e,g,C]),ne=h.useMemo(()=>(a&&e)??!1,[a,e]),se=h.useMemo(()=>e&&(ne||_!==void 0||w!==void 0),[e,ne,_,w]),fe=32,_e=K?`calc(100vw - ${fe}px)`:`calc(max(${z}px, calc(${G}px + ${oe}px)))`,xe=h.useMemo(()=>(S.length<1&&r&&r.length>0?r:n).map(de=>{var be,le;return d?((be=de.id)==null?void 0:be.toString())??"":((le=de.name)==null?void 0:le.toString())??""}).reduce((de,be)=>de.length>be.length?de:be,""),[S,r,n,d]);return b.jsxs(b.Fragment,{children:[b.jsx(cT,{show:e,onClick:t}),b.jsxs("div",{className:ce("luminus-dropdown-picker-actions",wn.actionButtonsContainer,{[wn.reverse]:ee}),style:{top:`calc(${U}px + ${Y/2}px - 12px)`,left:ee?re&&ne?`calc(${P}px - 24px - 8px - 24px - 4px)`:`calc(${P}px - 24px - 8px)`:`calc(${W}px + 8px)`},children:[re&&b.jsx("button",{ref:E,type:"button",className:ce("luminus-dropdown-picker-clear-button",wn.actionButton),onClick:()=>!g&&o(null),children:b.jsx(Bn,{variant:"caption",className:"text-danger",children:b.jsx(CS,{size:16})})}),se?b.jsx("div",{ref:R,children:b.jsxs(z0,{toggle:b.jsx(B0,{as:F0,className:ce("luminus-dropdown-picker-actions-dropdown",wn.actionsDropdown),icon:b.jsx(Bn,{variant:"caption",className:"text-primary",children:b.jsx(SS,{size:16})})}),children:[ne?b.jsx(as,{icon:b.jsx(vj,{}),onClick:()=>{var de,be;N(d?((de=a==null?void 0:a.id)==null?void 0:de.toString())??"":((be=a==null?void 0:a.name)==null?void 0:be.toString())??"")},children:y.copySelection}):null,ne&&(_||w)?b.jsx(G4,{}):null,_?b.jsx(as,{icon:b.jsx(gj,{}),onClick:()=>{window.open(_,"_blank")},children:y.addNewOption}):null,w?b.jsx(as,{icon:b.jsx(Tj,{}),onClick:()=>{w()},children:y.refreshOptions}):null]})}):null]}),b.jsx("div",{className:ce("luminus-dropdown-picker",wn.wrapper,{[wn.open]:e}),style:{top:J?`calc(${U}px - 50vh - 8px)`:`calc(${I}px + 8px)`,left:K?`${fe/2}px`:ee?`calc(${W}px - ${_e})`:P,right:K?`${fe/2}px`:ee?`${W}px`:`calc(${P}px + ${_e})`,width:_e,justifyContent:J?"flex-end":"flex-start"},children:b.jsx("div",{ref:$,className:ce("shadow rounded",wn.dropdown),children:!g&&b.jsxs(b.Fragment,{children:[!s||f&&(p??n.length)<=X?null:b.jsx("div",{className:ce("search-input-container border-bottom",wn.searchInputContainer),children:b.jsx(oi.Control,{ref:M,type:"search",size:"sm",className:wn.searchInput,placeholder:l.searchPlaceholder,value:S,onChange:de=>{var be;return T(((be=de.target)==null?void 0:be.value)??"")}})}),S.length<1&&r&&r.length>0?b.jsx(Ab,{variant:"info",size:"sm",children:i??y.suggestedItemsTitle}):null,m?b.jsx("div",{className:wn.loadingContainer,children:b.jsx(_0,{animation:"border",variant:"primary"})}):(S.length<1&&r&&(r==null?void 0:r.length)>0||n.length>0)&&b.jsxs("div",{ref:k,className:ce("items",wn.itemsContainer),children:[u&&u.length>0&&b.jsxs("div",{className:ce("header-row border-bottom",wn.headerRow),children:[b.jsx("div",{className:wn.name,children:b.jsx(Bn,{variant:"body2",children:xe})}),u==null?void 0:u.filter(de=>de.key!==x).map(de=>b.jsx("div",{className:wn.columnItem,style:{width:`${de.width??100}px`,minWidth:`${de.width??100}px`,maxWidth:`${de.width??100}px`},children:b.jsx(Bn,{variant:"caption",children:de.name})},de.key))]}),(S.length<1&&r&&r.length>0?r:n).map((de,be)=>b.jsxs("button",{id:`item-${be}`,type:"button",className:ce("item cursor-pointer",wn.item,{[wn.focused]:B===be},{focused:B===be},{archive:de.additionalColumns?de.additionalColumns[x]:!1}),onClick:()=>!g&&o(de),onMouseEnter:()=>L(be),children:[b.jsx("div",{className:wn.name,children:b.jsx(Bn,{variant:"body2",children:d?de.id:de.name})}),u==null?void 0:u.filter(le=>le.key!==x).map(le=>b.jsx("div",{className:wn.columnItem,style:{width:`${le.width??100}px`,minWidth:`${le.width??100}px`,maxWidth:`${le.width??100}px`},children:b.jsx(Bn,{variant:"caption",className:ce("text-muted"),children:de.additionalColumns&&de.additionalColumns[le.key]})},le.key))]},de.id))]})]})})})]})},SY="_backdrop_3huvf_1",EY="_show_3huvf_11",Jw={backdrop:SY,show:EY},cT=({show:e,onClick:t})=>b.jsx("div",{className:ce("luminus-backdrop",Jw.backdrop,{[Jw.show]:e}),onClick:()=>t&&t()});var Ob={},bu={};Object.defineProperty(bu,"__esModule",{value:!0});bu.bind=void 0;function kY(e,t){var n=t.type,r=t.listener,i=t.options;return e.addEventListener(n,r,i),function(){e.removeEventListener(n,r,i)}}bu.bind=kY;var Eh={},es=Kn&&Kn.__assign||function(){return es=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},es.apply(this,arguments)};Object.defineProperty(Eh,"__esModule",{value:!0});Eh.bindAll=void 0;var TY=bu;function e2(e){if(!(typeof e>"u"))return typeof e=="boolean"?{capture:e}:e}function OY(e,t){if(t==null)return e;var n=es(es({},e),{options:es(es({},e2(t)),e2(e.options))});return n}function MY(e,t,n){var r=t.map(function(i){var a=OY(i,n);return(0,TY.bind)(e,a)});return function(){r.forEach(function(a){return a()})}}Eh.bindAll=MY;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.bindAll=e.bind=void 0;var t=bu;Object.defineProperty(e,"bind",{enumerable:!0,get:function(){return t.bind}});var n=Eh;Object.defineProperty(e,"bindAll",{enumerable:!0,get:function(){return n.bindAll}})})(Ob);function uT(e){var t=null;return function(){if(!t){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=e.apply(this,i);t={result:o}}return t.result}}var Mb=uT(function(){if(process.env.NODE_ENV==="test")return!1;var t=navigator,n=t.userAgent;return n.includes("AppleWebKit")&&!n.includes("Chrome")}),av={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};function AY(e){var t=e.dragLeave;return Mb()?t.hasOwnProperty(av.isLeavingWindow):!1}(function(){if(typeof window>"u"||process.env.NODE_ENV==="test"||!Mb())return;function t(){return{enterCount:0,isOverWindow:!1}}var n=t();function r(){n=t()}Ob.bindAll(window,[{type:"dragstart",listener:function(){n.enterCount=0,n.isOverWindow=!0}},{type:"drop",listener:r},{type:"dragend",listener:r},{type:"dragenter",listener:function(a){!n.isOverWindow&&n.enterCount===0&&(a[av.isEnteringWindow]=!0),n.isOverWindow=!0,n.enterCount++}},{type:"dragleave",listener:function(a){n.enterCount--,n.isOverWindow&&n.enterCount===0&&(a[av.isLeavingWindow]=!0,n.isOverWindow=!1)}}],{capture:!0})})();var RY=function(t){var n=[],r=null,i=function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];n=s,!r&&(r=requestAnimationFrame(function(){r=null,t.apply(void 0,n)}))};return i.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},i},Pm=RY(function(e){return e()}),id=function(){var e=null;function t(r){var i=requestAnimationFrame(function(){e=null,r()});e={frameId:i,fn:r}}function n(){e&&(cancelAnimationFrame(e.frameId),e.fn(),e=null)}return{schedule:t,flush:n}}();function jY(e){var t=e.source,n=e.initial,r=e.dispatchEvent,i={dropTargets:[]};function a(s){r(s),i={dropTargets:s.payload.location.current.dropTargets}}var o={start:function(l){var c=l.nativeSetDragImage,u={current:n,previous:i,initial:n};a({eventName:"onGenerateDragPreview",payload:{source:t,location:u,nativeSetDragImage:c}}),id.schedule(function(){a({eventName:"onDragStart",payload:{source:t,location:u}})})},dragUpdate:function(l){var c=l.current;id.flush(),Pm.cancel(),a({eventName:"onDropTargetChange",payload:{source:t,location:{initial:n,previous:i,current:c}}})},drag:function(l){var c=l.current;Pm(function(){id.flush();var u={initial:n,previous:i,current:c};a({eventName:"onDrag",payload:{source:t,location:u}})})},drop:function(l){var c=l.current,u=l.updatedSourcePayload;id.flush(),Pm.cancel(),a({eventName:"onDrop",payload:{source:u??t,location:{current:c,previous:i,initial:n}}})}};return o}const Ab=e=>{const{variant:t,children:n,className:r,size:i="md",typographyVariant:a=i==="sm"?"body2":"body",...o}={...e};return b.jsx(EA,{variant:t,className:`text-center ${i==="sm"?"p-1":i==="md"?"p-3":"p-4"} bg-${t} bg-opacity-10 border-none ${r??""}`,...o,children:b.jsx(Bn,{variant:a,children:n})})};var Rb=xu(),et=e=>yu(e,Rb),jb=xu();et.write=e=>yu(e,jb);var kh=xu();et.onStart=e=>yu(e,kh);var Db=xu();et.onFrame=e=>yu(e,Db);var Nb=xu();et.onFinish=e=>yu(e,Nb);var ls=[];et.setTimeout=(e,t)=>{const n=et.now()+t,r=()=>{const a=ls.findIndex(o=>o.cancel==r);~a&&ls.splice(a,1),oa-=~a?1:0},i={time:n,handler:e,cancel:r};return ls.splice(dT(n),0,i),oa+=1,fT(),i};var dT=e=>~(~ls.findIndex(t=>t.time>e)||~ls.length);et.cancel=e=>{kh.delete(e),Db.delete(e),Nb.delete(e),Rb.delete(e),jb.delete(e)};et.sync=e=>{ov=!0,et.batchedUpdates(e),ov=!1};et.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,et.onStart(n)}return r.handler=e,r.cancel=()=>{kh.delete(n),t=null},r};var Ib=typeof window<"u"?window.requestAnimationFrame:()=>{};et.use=e=>Ib=e;et.now=typeof performance<"u"?()=>performance.now():Date.now;et.batchedUpdates=e=>e();et.catch=console.error;et.frameLoop="always";et.advance=()=>{et.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):pT()};var aa=-1,oa=0,ov=!1;function yu(e,t){ov?(t.delete(e),e(0)):(t.add(e),fT())}function fT(){aa<0&&(aa=0,et.frameLoop!=="demand"&&Ib(hT))}function DY(){aa=-1}function hT(){~aa&&(Ib(hT),et.batchedUpdates(pT))}function pT(){const e=aa;aa=et.now();const t=dT(aa);if(t&&(mT(ls.splice(0,t),n=>n.handler()),oa-=t),!oa){DY();return}kh.flush(),Rb.flush(e?Math.min(64,aa-e):16.667),Db.flush(),jb.flush(),Nb.flush()}function xu(){let e=new Set,t=e;return{add(n){oa+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return oa-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,oa-=t.size,mT(t,r=>r(n)&&e.add(r)),oa+=e.size,t=e)}}}function mT(e,t){e.forEach(n=>{try{t(n)}catch(r){et.catch(r)}})}var NY=Object.defineProperty,IY=(e,t)=>{for(var n in t)NY(e,n,{get:t[n],enumerable:!0})},Ir={};IY(Ir,{assign:()=>LY,colors:()=>ca,createStringInterpolator:()=>Lb,skipAnimation:()=>vT,to:()=>gT,willAdvance:()=>Fb});function sv(){}var PY=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),pe={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function vi(e,t){if(pe.arr(e)){if(!pe.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Ye=(e,t)=>e.forEach(t);function ni(e,t,n){if(pe.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Wn=e=>pe.und(e)?[]:pe.arr(e)?e:[e];function Zl(e,t){if(e.size){const n=Array.from(e);e.clear(),Ye(n,t)}}var Fl=(e,...t)=>Zl(e,n=>n(...t)),Pb=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Lb,gT,ca=null,vT=!1,Fb=sv,LY=e=>{e.to&&(gT=e.to),e.now&&(et.now=e.now),e.colors!==void 0&&(ca=e.colors),e.skipAnimation!=null&&(vT=e.skipAnimation),e.createStringInterpolator&&(Lb=e.createStringInterpolator),e.requestAnimationFrame&&et.use(e.requestAnimationFrame),e.batchedUpdates&&(et.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Fb=e.willAdvance),e.frameLoop&&(et.frameLoop=e.frameLoop)},Xl=new Set,mr=[],Lm=[],df=0,Th={get idle(){return!Xl.size&&!mr.length},start(e){df>e.priority?(Xl.add(e),et.onStart(FY)):(bT(e),et(lv))},advance:lv,sort(e){if(df)et.onFrame(()=>Th.sort(e));else{const t=mr.indexOf(e);~t&&(mr.splice(t,1),yT(e))}},clear(){mr=[],Xl.clear()}};function FY(){Xl.forEach(bT),Xl.clear(),et(lv)}function bT(e){mr.includes(e)||yT(e)}function yT(e){mr.splice(BY(mr,t=>t.priority>e.priority),0,e)}function lv(e){const t=Lm;for(let n=0;n<mr.length;n++){const r=mr[n];df=r.priority,r.idle||(Fb(r),r.advance(e),r.idle||t.push(r))}return df=0,Lm=mr,Lm.length=0,mr=t,mr.length>0}function BY(e,t){const n=e.findIndex(t);return n<0?e.length:n}var zY={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Rr="[-+]?\\d*\\.?\\d+",ff=Rr+"%";function Oh(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var WY=new RegExp("rgb"+Oh(Rr,Rr,Rr)),UY=new RegExp("rgba"+Oh(Rr,Rr,Rr,Rr)),HY=new RegExp("hsl"+Oh(Rr,ff,ff)),VY=new RegExp("hsla"+Oh(Rr,ff,ff,Rr)),qY=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,YY=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,GY=/^#([0-9a-fA-F]{6})$/,KY=/^#([0-9a-fA-F]{8})$/;function ZY(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=GY.exec(e))?parseInt(t[1]+"ff",16)>>>0:ca&&ca[e]!==void 0?ca[e]:(t=WY.exec(e))?(Uo(t[1])<<24|Uo(t[2])<<16|Uo(t[3])<<8|255)>>>0:(t=UY.exec(e))?(Uo(t[1])<<24|Uo(t[2])<<16|Uo(t[3])<<8|r2(t[4]))>>>0:(t=qY.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=KY.exec(e))?parseInt(t[1],16)>>>0:(t=YY.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=HY.exec(e))?(t2(n2(t[1]),ad(t[2]),ad(t[3]))|255)>>>0:(t=VY.exec(e))?(t2(n2(t[1]),ad(t[2]),ad(t[3]))|r2(t[4]))>>>0:null}function Fm(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function t2(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=Fm(i,r,e+1/3),o=Fm(i,r,e),s=Fm(i,r,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function Uo(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function n2(e){return(parseFloat(e)%360+360)%360/360}function r2(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function ad(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function i2(e){let t=ZY(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,a=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${a})`}var Ec=(e,t,n)=>{if(pe.fun(e))return e;if(pe.arr(e))return Ec({range:e,output:t,extrapolate:n});if(pe.str(e.output[0]))return Lb(e);const r=e,i=r.output,a=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(c=>c);return c=>{const u=QY(c,a);return XY(c,a[u],a[u+1],i[u],i[u+1],l,o,s,r.map)}};function XY(e,t,n,r,i,a,o,s,l){let c=l?l(e):e;if(c<t){if(o==="identity")return c;o==="clamp"&&(c=t)}if(c>n){if(s==="identity")return c;s==="clamp"&&(c=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=a(c),r===-1/0?c=-c:i===1/0?c=c+r:c=c*(i-r)+r,c)}function QY(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var JY={linear:e=>e},kc=Symbol.for("FluidValue.get"),As=Symbol.for("FluidValue.observers"),pr=e=>!!(e&&e[kc]),qn=e=>e&&e[kc]?e[kc]():e,a2=e=>e[As]||null;function eG(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Tc(e,t){const n=e[As];n&&n.forEach(r=>{eG(r,t)})}var xT=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");tG(this,e)}},tG=(e,t)=>wT(e,kc,t);function Ys(e,t){if(e[kc]){let n=e[As];n||wT(e,As,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Oc(e,t){const n=e[As];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[As]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var wT=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Sd=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,nG=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,o2=new RegExp(`(${Sd.source})(%|[a-z]+)`,"i"),rG=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Mh=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,_T=e=>{const[t,n]=iG(e);if(!t||Pb())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&Mh.test(n))return _T(n);if(n)return n}return e},iG=e=>{const t=Mh.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Bm,aG=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,CT=e=>{Bm||(Bm=ca?new RegExp(`(${Object.keys(ca).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>qn(a).replace(Mh,_T).replace(nG,i2).replace(Bm,i2)),n=t.map(a=>a.match(Sd).map(Number)),i=n[0].map((a,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(a=>Ec({...e,output:a}));return a=>{var l;const o=!o2.test(t[0])&&((l=t.find(c=>o2.test(c)))==null?void 0:l.replace(Sd,""));let s=0;return t[0].replace(Sd,()=>`${i[s++](a)}${o||""}`).replace(rG,aG)}},Bb="react-spring: ",$T=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Bb}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},oG=$T(console.warn);function sG(){oG(`${Bb}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var lG=$T(console.warn);function cG(){lG(`${Bb}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Ah(e){return pe.str(e)&&(e[0]=="#"||/\d/.test(e)||!Pb()&&Mh.test(e)||e in(ca||{}))}var Va=Pb()?h.useEffect:h.useLayoutEffect,uG=()=>{const e=h.useRef(!1);return Va(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function zb(){const e=h.useState()[1],t=uG();return()=>{t.current&&e(Math.random())}}var Wb=e=>h.useEffect(e,dG),dG=[];function cv(e){const t=h.useRef(void 0);return h.useEffect(()=>{t.current=e}),t.current}var Mc=Symbol.for("Animated:node"),fG=e=>!!e&&e[Mc]===e,Hr=e=>e&&e[Mc],Ub=(e,t)=>PY(e,Mc,t),Rh=e=>e&&e[Mc]&&e[Mc].getPayload(),ST=class{constructor(){Ub(this,this)}getPayload(){return this.payload||[]}},jh=class ET extends ST{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,pe.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new ET(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return pe.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,pe.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},hf=class kT extends jh{constructor(t){super(0),this._string=null,this._toString=Ec({output:[t,t]})}static create(t){return new kT(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(pe.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Ec({output:[this.getValue(),t]})),this._value=0,super.reset()}},pf={dependencies:null},Dh=class extends ST{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return ni(this.source,(n,r)=>{fG(n)?t[r]=n.getValue(e):pr(n)?t[r]=qn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ye(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return ni(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){pf.dependencies&&pr(e)&&pf.dependencies.add(e);const t=Rh(e);t&&Ye(t,n=>this.add(n))}},hG=class TT extends Dh{constructor(t){super(t)}static create(t){return new TT(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((r,i)=>r.setValue(t[i])).some(Boolean):(super.setValue(t.map(pG)),!0)}};function pG(e){return(Ah(e)?hf:jh).create(e)}function uv(e){const t=Hr(e);return t?t.constructor:pe.arr(e)?hG:Ah(e)?hf:jh}var s2=(e,t)=>{const n=!pe.fun(e)||e.prototype&&e.prototype.isReactComponent;return h.forwardRef((r,i)=>{const a=h.useRef(null),o=n&&h.useCallback(g=>{a.current=vG(i,g)},[i]),[s,l]=gG(r,t),c=zb(),u=()=>{const g=a.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,s.getValue(!0)):!1)===!1&&c()},d=new mG(u,l),f=h.useRef(void 0);Va(()=>(f.current=d,Ye(l,g=>Ys(g,d)),()=>{f.current&&(Ye(f.current.deps,g=>Oc(g,f.current)),et.cancel(f.current.update))})),h.useEffect(u,[]),Wb(()=>()=>{const g=f.current;Ye(g.deps,m=>Oc(m,g))});const p=t.getComponentProps(s.getValue());return ie.createElement(e,{...p,ref:o})})},mG=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&et.write(this.update)}};function gG(e,t){const n=new Set;return pf.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Dh(e),pf.dependencies=null,[e,n]}function vG(e,t){return e&&(pe.fun(e)?e(t):e.current=t),t}var l2=Symbol.for("AnimatedComponent"),bG=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new Dh(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=o=>{const s=c2(o)||"Anonymous";return pe.str(o)?o=a[o]||(a[o]=s2(o,i)):o=o[l2]||(o[l2]=s2(o,i)),o.displayName=`Animated(${s})`,o};return ni(e,(o,s)=>{pe.arr(e)&&(s=c2(o)),a[s]=a(o)}),{animated:a}},c2=e=>pe.str(e)?e:e&&pe.str(e.displayName)?e.displayName:pe.fun(e)&&e.name||null;function Yn(e,...t){return pe.fun(e)?e(...t):e}var Ql=(e,t)=>e===!0||!!(t&&e&&(pe.fun(e)?e(t):Wn(e).includes(t))),OT=(e,t)=>pe.obj(e)?t&&e[t]:e,MT=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,yG=e=>e,Nh=(e,t=yG)=>{let n=xG;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const a=t(e[i],i);pe.und(a)||(r[i]=a)}return r},xG=["config","onProps","onStart","onChange","onPause","onResume","onRest"],wG={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function _G(e){const t={};let n=0;if(ni(e,(r,i)=>{wG[i]||(t[i]=r,n++)}),n)return t}function Hb(e){const t=_G(e);if(t){const n={to:t};return ni(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Ac(e){return e=qn(e),pe.arr(e)?e.map(Ac):Ah(e)?Ir.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function AT(e){for(const t in e)return!0;return!1}function dv(e){return pe.fun(e)||pe.arr(e)&&pe.obj(e[0])}function fv(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function RT(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var jT={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},hv={...jT.default,mass:1,damping:1,easing:JY.linear,clamp:!1},CG=class{constructor(){this.velocity=0,Object.assign(this,hv)}};function $G(e,t,n){n&&(n={...n},u2(n,t),t={...n,...t}),u2(e,t),Object.assign(e,t);for(const o in hv)e[o]==null&&(e[o]=hv[o]);let{frequency:r,damping:i}=e;const{mass:a}=e;return pe.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r),e}function u2(e,t){if(!pe.und(t.decay))e.duration=void 0;else{const n=!pe.und(t.tension)||!pe.und(t.friction);(n||!pe.und(t.frequency)||!pe.und(t.damping)||!pe.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var d2=[],SG=class{constructor(){this.changed=!1,this.values=d2,this.toValues=null,this.fromValues=d2,this.config=new CG,this.immediate=!1}};function DT(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let l,c,u=Ql(n.cancel??(r==null?void 0:r.cancel),t);if(u)p();else{pe.und(n.pause)||(i.paused=Ql(n.pause,t));let g=r==null?void 0:r.pause;g!==!0&&(g=i.paused||Ql(g,t)),l=Yn(n.delay||0,t),g?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(c),c.cancel(),l=c.time-et.now()}function f(){l>0&&!Ir.skipAnimation?(i.delayed=!0,c=et.setTimeout(p,l),i.pauseQueue.add(d),i.timeouts.add(c)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(c),e<=(i.cancelId||0)&&(u=!0);try{a.start({...n,callId:e,cancel:u},o)}catch(g){s(g)}}})}var Vb=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?cs(e.get()):t.every(n=>n.noop)?NT(e.get()):Or(e.get(),t.every(n=>n.finished)),NT=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Or=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),cs=e=>({value:e,cancelled:!0,finished:!1});function IT(e,t,n,r){const{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:l}=n;return!a&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=Nh(t,(v,x)=>x==="onRest"?void 0:v);let u,d;const f=new Promise((v,x)=>(u=v,d=x)),p=v=>{const x=i<=(n.cancelId||0)&&cs(r)||i!==n.asyncId&&Or(r,!1);if(x)throw v.result=x,d(v),v},g=(v,x)=>{const _=new f2,w=new h2;return(async()=>{if(Ir.skipAnimation)throw Rc(n),w.result=Or(r,!1),d(w),w;p(_);const C=pe.obj(v)?{...v}:{...x,to:v};C.parentId=i,ni(c,($,E)=>{pe.und(C[E])&&(C[E]=$)});const y=await r.start(C);return p(_),n.paused&&await new Promise($=>{n.resumeQueue.add($)}),y})()};let m;if(Ir.skipAnimation)return Rc(n),Or(r,!1);try{let v;pe.arr(e)?v=(async x=>{for(const _ of x)await g(_)})(e):v=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([v.then(u),f]),m=Or(r.get(),!0,!1)}catch(v){if(v instanceof f2)m=v.result;else if(v instanceof h2)m=v.result;else throw v}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?l:void 0)}return pe.fun(o)&&et.batchedUpdates(()=>{o(m,r,r.item)}),m})()}function Rc(e,t){Zl(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var f2=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},h2=class extends Error{constructor(){super("SkipAnimationSignal")}},pv=e=>e instanceof qb,EG=1,qb=class extends xT{constructor(){super(...arguments),this.id=EG++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Hr(this);return e&&e.getValue()}to(...e){return Ir.to(this,e)}interpolate(...e){return sG(),Ir.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Tc(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Th.sort(this),Tc(this,{type:"priority",parent:this,priority:e})}},uo=Symbol.for("SpringPhase"),PT=1,mv=2,gv=4,zm=e=>(e[uo]&PT)>0,Ki=e=>(e[uo]&mv)>0,$l=e=>(e[uo]&gv)>0,p2=(e,t)=>t?e[uo]|=mv|PT:e[uo]&=~mv,m2=(e,t)=>t?e[uo]|=gv:e[uo]&=~gv,kG=class extends qb{constructor(e,t){if(super(),this.animation=new SG,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!pe.und(e)||!pe.und(t)){const n=pe.obj(e)?{...e}:{...t,from:e};pe.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Ki(this)||this._state.asyncTo)||$l(this)}get goal(){return qn(this.animation.to)}get velocity(){const e=Hr(this);return e instanceof jh?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return zm(this)}get isAnimating(){return Ki(this)}get isPaused(){return $l(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:a}=r,o=Rh(r.to);!o&&pr(r.to)&&(i=Wn(qn(r.to))),r.values.forEach((c,u)=>{if(c.done)return;const d=c.constructor==hf?1:o?o[u].lastPosition:i[u];let f=r.immediate,p=d;if(!f){if(p=c.lastPosition,a.tension<=0){c.done=!0;return}let g=c.elapsedTime+=e;const m=r.fromValues[u],v=c.v0!=null?c.v0:c.v0=pe.arr(a.velocity)?a.velocity[u]:a.velocity;let x;const _=a.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if(pe.und(a.duration))if(a.decay){const w=a.decay===!0?.998:a.decay,C=Math.exp(-(1-w)*g);p=m+v/(1-w)*(1-C),f=Math.abs(c.lastPosition-p)<=_,x=v*C}else{x=c.lastVelocity==null?v:c.lastVelocity;const w=a.restVelocity||_/10,C=a.clamp?0:a.bounce,y=!pe.und(C),$=m==d?c.v0>0:m<d;let E,M=!1;const k=1,R=Math.ceil(e/k);for(let S=0;S<R&&(E=Math.abs(x)>w,!(!E&&(f=Math.abs(d-p)<=_,f)));++S){y&&(M=p==d||p>d==$,M&&(x=-x*C,p=d));const T=-a.tension*1e-6*(p-d),j=-a.friction*.001*x,D=(T+j)/a.mass;x=x+D*k,p=p+x*k}}else{let w=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,c.durationProgress>0&&(c.elapsedTime=a.duration*c.durationProgress,g=c.elapsedTime+=e)),w=(a.progress||0)+g/this._memoizedDuration,w=w>1?1:w<0?0:w,c.durationProgress=w),p=m+a.easing(w)*(d-m),x=(p-c.lastPosition)/e,f=w==1}c.lastVelocity=x,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[u].done&&(f=!1),f?c.done=!0:t=!1,c.setValue(p,a.round)&&(n=!0)});const s=Hr(this),l=s.getValue();if(t){const c=qn(r.to);(l!==c||n)&&!a.decay?(s.setValue(c),this._onChange(c)):n&&a.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return et.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ki(this)){const{to:e,config:t}=this.animation;et.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return pe.und(e)?(n=this.queue||[],this.queue=[]):n=[pe.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Vb(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Rc(this._state,e&&this._lastCallId),et.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=pe.obj(n)?n[t]:n,(n==null||dv(n))&&(n=void 0),r=pe.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return zm(this)||(e.reverse&&([n,r]=[r,n]),r=qn(r),pe.und(r)?Hr(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Nh(e,(o,s)=>/^on/.test(s)?OT(o,n):o)),v2(this,e,"onProps"),El(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return DT(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{$l(this)||(m2(this,!0),Fl(a.pauseQueue),El(this,"onPause",Or(this,Sl(this,this.animation.to)),this))},resume:()=>{$l(this)&&(m2(this,!1),Ki(this)&&this._resume(),Fl(a.resumeQueue),El(this,"onResume",Or(this,Sl(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=LT(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(cs(this));const r=!pe.und(e.to),i=!pe.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(cs(this));const{key:a,defaultProps:o,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;i&&!r&&(!t.default||pe.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);const f=!vi(d,c);f&&(s.from=d),d=qn(d);const p=!vi(u,l);p&&this._focus(u);const g=dv(t.to),{config:m}=s,{decay:v,velocity:x}=m;(r||i)&&(m.velocity=0),t.config&&!g&&$G(m,Yn(t.config,a),t.config!==o.config?Yn(o.config,a):void 0);let _=Hr(this);if(!_||pe.und(u))return n(Or(this,!0));const w=pe.und(t.reset)?i&&!t.default:!pe.und(d)&&Ql(t.reset,a),C=w?d:this.get(),y=Ac(u),$=pe.num(y)||pe.arr(y)||Ah(y),E=!g&&(!$||Ql(o.immediate||t.immediate,a));if(p){const S=uv(u);if(S!==_.constructor)if(E)_=this._set(y);else throw Error(`Cannot animate between ${_.constructor.name} and ${S.name}, as the "to" prop suggests`)}const M=_.constructor;let k=pr(u),R=!1;if(!k){const S=w||!zm(this)&&f;(p||S)&&(R=vi(Ac(C),y),k=!R),(!vi(s.immediate,E)&&!E||!vi(m.decay,v)||!vi(m.velocity,x))&&(k=!0)}if(R&&Ki(this)&&(s.changed&&!w?k=!0:k||this._stop(l)),!g&&((k||pr(l))&&(s.values=_.getPayload(),s.toValues=pr(u)?null:M==hf?[1]:Wn(y)),s.immediate!=E&&(s.immediate=E,!E&&!w&&this._set(l)),k)){const{onRest:S}=s;Ye(OG,j=>v2(this,t,j));const T=Or(this,Sl(this,l));Fl(this._pendingCalls,T),this._pendingCalls.add(n),s.changed&&et.batchedUpdates(()=>{var j;s.changed=!w,S==null||S(T,this),w?Yn(o.onRest,T):(j=s.onStart)==null||j.call(s,T,this)})}w&&this._set(C),g?n(IT(t.to,t,this._state,this)):k?this._start():Ki(this)&&!p?this._pendingCalls.add(n):n(NT(C))}_focus(e){const t=this.animation;e!==t.to&&(a2(this)&&this._detach(),t.to=e,a2(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;pr(t)&&(Ys(t,this),pv(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;pr(e)&&Oc(e,this)}_set(e,t=!0){const n=qn(e);if(!pe.und(n)){const r=Hr(this);if(!r||!vi(n,r.getValue())){const i=uv(n);!r||r.constructor!=i?Ub(this,i.create(n)):r.setValue(n),r&&et.batchedUpdates(()=>{this._onChange(n,t)})}}return Hr(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,El(this,"onStart",Or(this,Sl(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Yn(this.animation.onChange,e,this)),Yn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Hr(this).reset(qn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Ki(this)||(p2(this,!0),$l(this)||this._resume())}_resume(){Ir.skipAnimation?this.finish():Th.start(this)}_stop(e,t){if(Ki(this)){p2(this,!1);const n=this.animation;Ye(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Tc(this,{type:"idle",parent:this});const r=t?cs(this.get()):Or(this.get(),Sl(this,e??n.to));Fl(this._pendingCalls,r),n.changed&&(n.changed=!1,El(this,"onRest",r,this))}}};function Sl(e,t){const n=Ac(t),r=Ac(e.get());return vi(r,n)}function LT(e,t=e.loop,n=e.to){const r=Yn(t);if(r){const i=r!==!0&&Hb(r),a=(i||e).reverse,o=!i||i.reset;return jc({...e,loop:t,default:!1,pause:void 0,to:!a||dv(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function jc(e){const{to:t,from:n}=e=Hb(e),r=new Set;return pe.obj(t)&&g2(t,r),pe.obj(n)&&g2(n,r),e.keys=r.size?Array.from(r):null,e}function TG(e){const t=jc(e);return pe.und(t.default)&&(t.default=Nh(t)),t}function g2(e,t){ni(e,(n,r)=>n!=null&&t.add(r))}var OG=["onStart","onRest","onChange","onPause","onResume"];function v2(e,t,n){e.animation[n]=t[n]!==MT(t,n)?OT(t[n],e.key):void 0}function El(e,t,...n){var r,i,a,o;(i=(r=e.animation)[t])==null||i.call(r,...n),(o=(a=e.defaultProps)[t])==null||o.call(a,...n)}var MG=["onStart","onChange","onRest"],AG=1,FT=class{constructor(e,t){this.id=AG++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];pe.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(jc(e)),this}start(e){let{queue:t}=this;return e?t=Wn(e).map(jc):this.queue=[],this._flush?this._flush(this,t):(HT(this,t),vv(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ye(Wn(t),r=>n[r].stop(!!e))}else Rc(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(pe.und(e))this.start({pause:!0});else{const t=this.springs;Ye(Wn(e),n=>t[n].pause())}return this}resume(e){if(pe.und(e))this.start({pause:!1});else{const t=this.springs;Ye(Wn(e),n=>t[n].resume())}return this}each(e){ni(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Zl(e,([s,l])=>{l.value=this.get(),s(l,this,this._item)}));const a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&Zl(t,([s,l])=>{l.value=o,s(l,this,this._item)}),a&&(this._started=!1,Zl(n,([s,l])=>{l.value=o,s(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;et.onFrame(this._onFrame)}};function vv(e,t){return Promise.all(t.map(n=>BT(e,n))).then(n=>Vb(e,n))}async function BT(e,t,n){const{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:l}=t,c=pe.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),a===!1&&(t.from=null);const u=pe.arr(i)||pe.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Ye(MG,m=>{const v=t[m];if(pe.fun(v)){const x=e._events[m];t[m]=({finished:_,cancelled:w})=>{const C=x.get(v);C?(_||(C.finished=!1),w&&(C.cancelled=!0)):x.set(v,{value:null,finished:_||!1,cancelled:w||!1})},c&&(c[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Fl(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),p=t.cancel===!0||MT(t,"cancel")===!0;(u||p&&d.asyncId)&&f.push(DT(++e._lastAsyncId,{props:t,state:d,actions:{pause:sv,resume:sv,start(m,v){p?(Rc(d,e._lastAsyncId),v(cs(e))):(m.onRest=s,v(IT(u,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const g=Vb(e,await Promise.all(f));if(o&&g.finished&&!(n&&g.noop)){const m=LT(t,o,i);if(m)return HT(e,[m]),BT(e,m,!0)}return l&&et.batchedUpdates(()=>l(g,e,e.item)),g}function bv(e,t){const n={...e.springs};return t&&Ye(Wn(t),r=>{pe.und(r.keys)&&(r=jc(r)),pe.obj(r.to)||(r={...r,to:void 0}),UT(n,r,i=>WT(i))}),zT(e,n),n}function zT(e,t){ni(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Ys(n,e))})}function WT(e,t){const n=new kG;return n.key=e,t&&Ys(n,t),n}function UT(e,t,n){t.keys&&Ye(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function HT(e,t){Ye(t,n=>{UT(e.springs,n,r=>WT(r,e))})}var VT=ie.createContext({pause:!1,immediate:!1}),qT=()=>{const e=[],t=function(r){cG();const i=[];return Ye(e,(a,o)=>{if(pe.und(r))i.push(a.start());else{const s=n(r,a,o);s&&i.push(a.start(s))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return Ye(e,r=>r.pause(...arguments)),this},t.resume=function(){return Ye(e,r=>r.resume(...arguments)),this},t.set=function(r){Ye(e,(i,a)=>{const o=pe.fun(r)?r(a,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return Ye(e,(a,o)=>{if(pe.und(r))i.push(a.start());else{const s=this._getProps(r,a,o);s&&i.push(a.start(s))}}),i},t.stop=function(){return Ye(e,r=>r.stop(...arguments)),this},t.update=function(r){return Ye(e,(i,a)=>i.update(this._getProps(r,i,a))),this};const n=function(r,i,a){return pe.fun(r)?r(a,i):r};return t._getProps=n,t};function RG(e,t,n){const r=pe.fun(t)&&t;r&&!n&&(n=[]);const i=h.useMemo(()=>r||arguments.length==3?qT():void 0,[]),a=h.useRef(0),o=zb(),s=h.useMemo(()=>({ctrls:[],queue:[],flush(x,_){const w=bv(x,_);return a.current>0&&!s.queue.length&&!Object.keys(w).some(y=>!x.springs[y])?vv(x,_):new Promise(y=>{zT(x,w),s.queue.push(()=>{y(vv(x,_))}),o()})}}),[]),l=h.useRef([...s.ctrls]),c=h.useRef([]),u=cv(e)||0;h.useMemo(()=>{Ye(l.current.slice(e,u),x=>{fv(x,i),x.stop(!0)}),l.current.length=e,d(u,e)},[e]),h.useMemo(()=>{d(0,Math.min(u,e))},n);function d(x,_){for(let w=x;w<_;w++){const C=l.current[w]||(l.current[w]=new FT(null,s.flush)),y=r?r(w,C):t[w];y&&(c.current[w]=TG(y))}}const f=l.current.map((x,_)=>bv(x,c.current[_])),p=h.useContext(VT),g=cv(p),m=p!==g&&AT(p);Va(()=>{a.current++,s.ctrls=l.current;const{queue:x}=s;x.length&&(s.queue=[],Ye(x,_=>_())),Ye(l.current,(_,w)=>{i==null||i.add(_),m&&_.start({default:p});const C=c.current[w];C&&(RT(_,C.ref),_.ref?_.queue.push(C):_.start(C))})}),Wb(()=>()=>{Ye(s.ctrls,x=>x.stop(!0))});const v=f.map(x=>({...x}));return i?[v,i]:v}function si(e,t){const n=pe.fun(e),[[r],i]=RG(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}function wo(e,t,n){const r=pe.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:c,ref:u,config:d}=r?r():t,f=h.useMemo(()=>r||arguments.length==3?qT():void 0,[]),p=Wn(e),g=[],m=h.useRef(null),v=i?null:m.current;Va(()=>{m.current=g}),Wb(()=>(Ye(g,D=>{f==null||f.add(D.ctrl),D.ctrl.ref=f}),()=>{Ye(m.current,D=>{D.expired&&clearTimeout(D.expirationId),fv(D.ctrl,f),D.ctrl.stop(!0)})}));const x=DG(p,r?r():t,v),_=i&&m.current||[];Va(()=>Ye(_,({ctrl:D,item:N,key:O})=>{fv(D,f),Yn(c,N,O)}));const w=[];if(v&&Ye(v,(D,N)=>{D.expired?(clearTimeout(D.expirationId),_.push(D)):(N=w[N]=x.indexOf(D.key),~N&&(g[N]=D))}),Ye(p,(D,N)=>{g[N]||(g[N]={key:x[N],item:D,phase:"mount",ctrl:new FT},g[N].ctrl.item=D)}),w.length){let D=-1;const{leave:N}=r?r():t;Ye(w,(O,P)=>{const W=v[P];~O?(D=g.indexOf(W),g[D]={...W,item:p[O]}):N&&g.splice(++D,0,W)})}pe.fun(a)&&g.sort((D,N)=>a(D.item,N.item));let C=-o;const y=zb(),$=Nh(t),E=new Map,M=h.useRef(new Map),k=h.useRef(!1);Ye(g,(D,N)=>{const O=D.key,P=D.phase,W=r?r():t;let U,I;const z=Yn(W.delay||0,O);if(P=="mount")U=W.enter,I="enter";else{const Z=x.indexOf(O)<0;if(P!="leave")if(Z)U=W.leave,I="leave";else if(U=W.update)I="update";else return;else if(!Z)U=W.enter,I="enter";else return}if(U=Yn(U,D.item,N),U=pe.obj(U)?Hb(U):{to:U},!U.config){const Z=d||$.config;U.config=Yn(Z,D.item,N,I)}C+=o;const Y={...$,delay:z+C,ref:u,immediate:W.immediate,reset:!1,...U};if(I=="enter"&&pe.und(Y.from)){const Z=r?r():t,ee=pe.und(Z.initial)||v?Z.from:Z.initial;Y.from=Yn(ee,D.item,N)}const{onResolve:X}=Y;Y.onResolve=Z=>{Yn(X,Z);const ee=m.current,J=ee.find(B=>B.key===O);if(J&&!(Z.cancelled&&J.phase!="update")&&J.ctrl.idle){const B=ee.every(L=>L.ctrl.idle);if(J.phase=="leave"){const L=Yn(s,J.item);if(L!==!1){const F=L===!0?0:L;if(J.expired=!0,!B&&F>0){F<=2147483647&&(J.expirationId=setTimeout(y,F));return}}}B&&ee.some(L=>L.expired)&&(M.current.delete(J),l&&(k.current=!0),y())}};const K=bv(D.ctrl,Y);I==="leave"&&l?M.current.set(D,{phase:I,springs:K,payload:Y}):E.set(D,{phase:I,springs:K,payload:Y})});const R=h.useContext(VT),S=cv(R),T=R!==S&&AT(R);Va(()=>{T&&Ye(g,D=>{D.ctrl.start({default:R})})},[R]),Ye(E,(D,N)=>{if(M.current.size){const O=g.findIndex(P=>P.key===N.key);g.splice(O,1)}}),Va(()=>{Ye(M.current.size?M.current:E,({phase:D,payload:N},O)=>{const{ctrl:P}=O;O.phase=D,f==null||f.add(P),T&&D=="enter"&&P.start({default:R}),N&&(RT(P,N.ref),(P.ref||f)&&!k.current?P.update(N):(P.start(N),k.current&&(k.current=!1)))})},i?void 0:n);const j=D=>ie.createElement(ie.Fragment,null,g.map((N,O)=>{const{springs:P}=E.get(N)||N.ctrl,W=D({...P},N.item,N,O),U=pe.str(N.key)||pe.num(N.key)?N.key:N.ctrl.id,I=ie.version<"19.0.0",z=(W==null?void 0:W.props)??{},Y=I?W==null?void 0:W.ref:z==null?void 0:z.ref;return W&&W.type?ie.createElement(W.type,{...z,key:U,ref:Y}):W}));return f?[j,f]:j}var jG=1;function DG(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(a=>{const o=r&&r.find(s=>s.item===a&&s.phase!=="leave"&&!i.has(s));return o?(i.add(o),o.key):jG++})}return pe.und(n)?e:pe.fun(n)?e.map(n):Wn(n)}var YT=class extends qb{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ec(...t);const n=this._get(),r=uv(n);Ub(this,r.create(n))}advance(e){const t=this._get(),n=this.get();vi(t,n)||(Hr(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&b2(this._active)&&Wm(this)}_get(){const e=pe.arr(this.source)?this.source.map(qn):Wn(qn(this.source));return this.calc(...e)}_start(){this.idle&&!b2(this._active)&&(this.idle=!1,Ye(Rh(this),e=>{e.done=!1}),Ir.skipAnimation?(et.batchedUpdates(()=>this.advance()),Wm(this)):Th.start(this))}_attach(){let e=1;Ye(Wn(this.source),t=>{pr(t)&&Ys(t,this),pv(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Ye(Wn(this.source),e=>{pr(e)&&Oc(e,this)}),this._active.clear(),Wm(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Wn(this.source).reduce((t,n)=>Math.max(t,(pv(n)?n.priority:0)+1),0))}};function NG(e){return e.idle!==!1}function b2(e){return!e.size||Array.from(e).every(NG)}function Wm(e){e.idle||(e.idle=!0,Ye(Rh(e),t=>{t.done=!0}),Tc(e,{type:"idle",parent:e}))}var ba=(e,...t)=>new YT(e,t);Ir.assign({createStringInterpolator:CT,to:(e,t)=>new YT(e,t)});var GT=/^--/;function IG(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!GT.test(e)&&!(Jl.hasOwnProperty(e)&&Jl[e])?t+"px":(""+t).trim()}var y2={};function PG(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:i,children:a,scrollTop:o,scrollLeft:s,viewBox:l,...c}=t,u=Object.values(c),d=Object.keys(c).map(f=>n||e.hasAttribute(f)?f:y2[f]||(y2[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));a!==void 0&&(e.textContent=a);for(const f in i)if(i.hasOwnProperty(f)){const p=IG(f,i[f]);GT.test(f)?e.style.setProperty(f,p):e.style[f]=p}d.forEach((f,p)=>{e.setAttribute(f,u[p])}),r!==void 0&&(e.className=r),o!==void 0&&(e.scrollTop=o),s!==void 0&&(e.scrollLeft=s),l!==void 0&&e.setAttribute("viewBox",l)}var Jl={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},LG=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),FG=["Webkit","Ms","Moz","O"];Jl=Object.keys(Jl).reduce((e,t)=>(FG.forEach(n=>e[LG(n,t)]=e[t]),e),Jl);var BG=/^(matrix|translate|scale|rotate|skew)/,zG=/^(translate)/,WG=/^(rotate|skew)/,Um=(e,t)=>pe.num(e)&&e!==0?e+t:e,Ed=(e,t)=>pe.arr(e)?e.every(n=>Ed(n,t)):pe.num(e)?e===t:parseFloat(e)===t,UG=class extends Dh{constructor({x:e,y:t,z:n,...r}){const i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(o=>[`translate3d(${o.map(s=>Um(s,"px")).join(",")})`,Ed(o,0)])),ni(r,(o,s)=>{if(s==="transform")i.push([o||""]),a.push(l=>[l,l===""]);else if(BG.test(s)){if(delete r[s],pe.und(o))return;const l=zG.test(s)?"px":WG.test(s)?"deg":"";i.push(Wn(o)),a.push(s==="rotate3d"?([c,u,d,f])=>[`rotate3d(${c},${u},${d},${Um(f,l)})`,Ed(f,0)]:c=>[`${s}(${c.map(u=>Um(u,l)).join(",")})`,Ed(c,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new HG(i,a)),super(r)}},HG=class extends xT{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ye(this.inputs,(n,r)=>{const i=qn(n[0]),[a,o]=this.transforms[r](pe.arr(i)?i:n.map(qn));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){e==1&&Ye(this.inputs,t=>Ye(t,n=>pr(n)&&Ys(n,this)))}observerRemoved(e){e==0&&Ye(this.inputs,t=>Ye(t,n=>pr(n)&&Oc(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Tc(this,e)}},VG=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Ir.assign({batchedUpdates:hn.unstable_batchedUpdates,createStringInterpolator:CT,colors:zY});var qG=bG(VG,{applyAnimatedValues:PG,createAnimatedStyle:e=>new UG(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),qt=qG.animated;function YG(){this.__data__=[],this.size=0}var GG=YG;function KG(e,t){return e===t||e!==e&&t!==t}var wu=KG,ZG=wu;function XG(e,t){for(var n=e.length;n--;)if(ZG(e[n][0],t))return n;return-1}var Ih=XG,QG=Ih,JG=Array.prototype,eK=JG.splice;function tK(e){var t=this.__data__,n=QG(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():eK.call(t,n,1),--this.size,!0}var nK=tK,rK=Ih;function iK(e){var t=this.__data__,n=rK(t,e);return n<0?void 0:t[n][1]}var aK=iK,oK=Ih;function sK(e){return oK(this.__data__,e)>-1}var lK=sK,cK=Ih;function uK(e,t){var n=this.__data__,r=cK(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var dK=uK,fK=GG,hK=nK,pK=aK,mK=lK,gK=dK;function Gs(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])}}Gs.prototype.clear=fK;Gs.prototype.delete=hK;Gs.prototype.get=pK;Gs.prototype.has=mK;Gs.prototype.set=gK;var Ph=Gs,vK=Ph;function bK(){this.__data__=new vK,this.size=0}var yK=bK;function xK(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var wK=xK;function _K(e){return this.__data__.get(e)}var CK=_K;function $K(e){return this.__data__.has(e)}var SK=$K,EK=typeof Kn=="object"&&Kn&&Kn.Object===Object&&Kn,KT=EK,kK=KT,TK=typeof self=="object"&&self&&self.Object===Object&&self,OK=kK||TK||Function("return this")(),li=OK,MK=li,AK=MK.Symbol,Ks=AK,x2=Ks,ZT=Object.prototype,RK=ZT.hasOwnProperty,jK=ZT.toString,kl=x2?x2.toStringTag:void 0;function DK(e){var t=RK.call(e,kl),n=e[kl];try{e[kl]=void 0;var r=!0}catch{}var i=jK.call(e);return r&&(t?e[kl]=n:delete e[kl]),i}var NK=DK,IK=Object.prototype,PK=IK.toString;function LK(e){return PK.call(e)}var FK=LK,w2=Ks,BK=NK,zK=FK,WK="[object Null]",UK="[object Undefined]",_2=w2?w2.toStringTag:void 0;function HK(e){return e==null?e===void 0?UK:WK:_2&&_2 in Object(e)?BK(e):zK(e)}var zi=HK;function VK(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ci=VK,qK=zi,YK=ci,GK="[object AsyncFunction]",KK="[object Function]",ZK="[object GeneratorFunction]",XK="[object Proxy]";function QK(e){if(!YK(e))return!1;var t=qK(e);return t==KK||t==ZK||t==GK||t==XK}var Lh=QK;const Yb=on(Lh);var JK=li,eZ=JK["__core-js_shared__"],tZ=eZ,Hm=tZ,C2=function(){var e=/[^.]+$/.exec(Hm&&Hm.keys&&Hm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function nZ(e){return!!C2&&C2 in e}var rZ=nZ,iZ=Function.prototype,aZ=iZ.toString;function oZ(e){if(e!=null){try{return aZ.call(e)}catch{}try{return e+""}catch{}}return""}var XT=oZ,sZ=Lh,lZ=rZ,cZ=ci,uZ=XT,dZ=/[\\^$.*+?()[\]{}|]/g,fZ=/^\[object .+?Constructor\]$/,hZ=Function.prototype,pZ=Object.prototype,mZ=hZ.toString,gZ=pZ.hasOwnProperty,vZ=RegExp("^"+mZ.call(gZ).replace(dZ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function bZ(e){if(!cZ(e)||lZ(e))return!1;var t=sZ(e)?vZ:fZ;return t.test(uZ(e))}var yZ=bZ;function xZ(e,t){return e==null?void 0:e[t]}var wZ=xZ,_Z=yZ,CZ=wZ;function $Z(e,t){var n=CZ(e,t);return _Z(n)?n:void 0}var _o=$Z,SZ=_o,EZ=li,kZ=SZ(EZ,"Map"),Gb=kZ,TZ=_o,OZ=TZ(Object,"create"),Fh=OZ,$2=Fh;function MZ(){this.__data__=$2?$2(null):{},this.size=0}var AZ=MZ;function RZ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jZ=RZ,DZ=Fh,NZ="__lodash_hash_undefined__",IZ=Object.prototype,PZ=IZ.hasOwnProperty;function LZ(e){var t=this.__data__;if(DZ){var n=t[e];return n===NZ?void 0:n}return PZ.call(t,e)?t[e]:void 0}var FZ=LZ,BZ=Fh,zZ=Object.prototype,WZ=zZ.hasOwnProperty;function UZ(e){var t=this.__data__;return BZ?t[e]!==void 0:WZ.call(t,e)}var HZ=UZ,VZ=Fh,qZ="__lodash_hash_undefined__";function YZ(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=VZ&&t===void 0?qZ:t,this}var GZ=YZ,KZ=AZ,ZZ=jZ,XZ=FZ,QZ=HZ,JZ=GZ;function Zs(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])}}Zs.prototype.clear=KZ;Zs.prototype.delete=ZZ;Zs.prototype.get=XZ;Zs.prototype.has=QZ;Zs.prototype.set=JZ;var eX=Zs,S2=eX,tX=Ph,nX=Gb;function rX(){this.size=0,this.__data__={hash:new S2,map:new(nX||tX),string:new S2}}var iX=rX;function aX(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var oX=aX,sX=oX;function lX(e,t){var n=e.__data__;return sX(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Bh=lX,cX=Bh;function uX(e){var t=cX(this,e).delete(e);return this.size-=t?1:0,t}var dX=uX,fX=Bh;function hX(e){return fX(this,e).get(e)}var pX=hX,mX=Bh;function gX(e){return mX(this,e).has(e)}var vX=gX,bX=Bh;function yX(e,t){var n=bX(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var xX=yX,wX=iX,_X=dX,CX=pX,$X=vX,SX=xX;function Xs(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])}}Xs.prototype.clear=wX;Xs.prototype.delete=_X;Xs.prototype.get=CX;Xs.prototype.has=$X;Xs.prototype.set=SX;var Kb=Xs,EX=Ph,kX=Gb,TX=Kb,OX=200;function MX(e,t){var n=this.__data__;if(n instanceof EX){var r=n.__data__;if(!kX||r.length<OX-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new TX(r)}return n.set(e,t),this.size=n.size,this}var AX=MX,RX=Ph,jX=yK,DX=wK,NX=CK,IX=SK,PX=AX;function Qs(e){var t=this.__data__=new RX(e);this.size=t.size}Qs.prototype.clear=jX;Qs.prototype.delete=DX;Qs.prototype.get=NX;Qs.prototype.has=IX;Qs.prototype.set=PX;var zh=Qs,LX=_o,FX=function(){try{var e=LX(Object,"defineProperty");return e({},"",{}),e}catch{}}(),QT=FX,E2=QT;function BX(e,t,n){t=="__proto__"&&E2?E2(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Zb=BX,zX=Zb,WX=wu;function UX(e,t,n){(n!==void 0&&!WX(e[t],n)||n===void 0&&!(t in e))&&zX(e,t,n)}var JT=UX;function HX(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(n(a[l],l,a)===!1)break}return t}}var VX=HX,qX=VX,YX=qX(),eO=YX,mf={exports:{}};mf.exports;(function(e,t){var n=li,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=l})(mf,mf.exports);var tO=mf.exports,GX=li,KX=GX.Uint8Array,nO=KX,k2=nO;function ZX(e){var t=new e.constructor(e.byteLength);return new k2(t).set(new k2(e)),t}var Xb=ZX,XX=Xb;function QX(e,t){var n=t?XX(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var rO=QX;function JX(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var iO=JX,eQ=ci,T2=Object.create,tQ=function(){function e(){}return function(t){if(!eQ(t))return{};if(T2)return T2(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),nQ=tQ;function rQ(e,t){return function(n){return e(t(n))}}var aO=rQ,iQ=aO,aQ=iQ(Object.getPrototypeOf,Object),Qb=aQ,oQ=Object.prototype;function sQ(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||oQ;return e===n}var Jb=sQ,lQ=nQ,cQ=Qb,uQ=Jb;function dQ(e){return typeof e.constructor=="function"&&!uQ(e)?lQ(cQ(e)):{}}var oO=dQ;function fQ(e){return e!=null&&typeof e=="object"}var Er=fQ,hQ=zi,pQ=Er,mQ="[object Arguments]";function gQ(e){return pQ(e)&&hQ(e)==mQ}var vQ=gQ,O2=vQ,bQ=Er,sO=Object.prototype,yQ=sO.hasOwnProperty,xQ=sO.propertyIsEnumerable,wQ=O2(function(){return arguments}())?O2:function(e){return bQ(e)&&yQ.call(e,"callee")&&!xQ.call(e,"callee")},Wh=wQ,_Q=Array.isArray,ir=_Q,CQ=9007199254740991;function $Q(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=CQ}var ey=$Q,SQ=Lh,EQ=ey;function kQ(e){return e!=null&&EQ(e.length)&&!SQ(e)}var Js=kQ,TQ=Js,OQ=Er;function MQ(e){return OQ(e)&&TQ(e)}var lO=MQ,gf={exports:{}};function AQ(){return!1}var RQ=AQ;gf.exports;(function(e,t){var n=li,r=RQ,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(gf,gf.exports);var Uh=gf.exports,jQ=zi,DQ=Qb,NQ=Er,IQ="[object Object]",PQ=Function.prototype,LQ=Object.prototype,cO=PQ.toString,FQ=LQ.hasOwnProperty,BQ=cO.call(Object);function zQ(e){if(!NQ(e)||jQ(e)!=IQ)return!1;var t=DQ(e);if(t===null)return!0;var n=FQ.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&cO.call(n)==BQ}var ty=zQ;const ny=on(ty);var WQ=zi,UQ=ey,HQ=Er,VQ="[object Arguments]",qQ="[object Array]",YQ="[object Boolean]",GQ="[object Date]",KQ="[object Error]",ZQ="[object Function]",XQ="[object Map]",QQ="[object Number]",JQ="[object Object]",eJ="[object RegExp]",tJ="[object Set]",nJ="[object String]",rJ="[object WeakMap]",iJ="[object ArrayBuffer]",aJ="[object DataView]",oJ="[object Float32Array]",sJ="[object Float64Array]",lJ="[object Int8Array]",cJ="[object Int16Array]",uJ="[object Int32Array]",dJ="[object Uint8Array]",fJ="[object Uint8ClampedArray]",hJ="[object Uint16Array]",pJ="[object Uint32Array]",Jt={};Jt[oJ]=Jt[sJ]=Jt[lJ]=Jt[cJ]=Jt[uJ]=Jt[dJ]=Jt[fJ]=Jt[hJ]=Jt[pJ]=!0;Jt[VQ]=Jt[qQ]=Jt[iJ]=Jt[YQ]=Jt[aJ]=Jt[GQ]=Jt[KQ]=Jt[ZQ]=Jt[XQ]=Jt[QQ]=Jt[JQ]=Jt[eJ]=Jt[tJ]=Jt[nJ]=Jt[rJ]=!1;function mJ(e){return HQ(e)&&UQ(e.length)&&!!Jt[WQ(e)]}var gJ=mJ;function vJ(e){return function(t){return e(t)}}var el=vJ,vf={exports:{}};vf.exports;(function(e,t){var n=KT,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(vf,vf.exports);var Hh=vf.exports,bJ=gJ,yJ=el,M2=Hh,A2=M2&&M2.isTypedArray,xJ=A2?yJ(A2):bJ,ry=xJ;function wJ(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var uO=wJ,_J=Zb,CJ=wu,$J=Object.prototype,SJ=$J.hasOwnProperty;function EJ(e,t,n){var r=e[t];(!(SJ.call(e,t)&&CJ(r,n))||n===void 0&&!(t in e))&&_J(e,t,n)}var iy=EJ,kJ=iy,TJ=Zb;function OJ(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?TJ(n,s,l):kJ(n,s,l)}return n}var tl=OJ;function MJ(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var AJ=MJ,RJ=9007199254740991,jJ=/^(?:0|[1-9]\d*)$/;function DJ(e,t){var n=typeof e;return t=t??RJ,!!t&&(n=="number"||n!="symbol"&&jJ.test(e))&&e>-1&&e%1==0&&e<t}var Vh=DJ,NJ=AJ,IJ=Wh,PJ=ir,LJ=Uh,FJ=Vh,BJ=ry,zJ=Object.prototype,WJ=zJ.hasOwnProperty;function UJ(e,t){var n=PJ(e),r=!n&&IJ(e),i=!n&&!r&&LJ(e),a=!n&&!r&&!i&&BJ(e),o=n||r||i||a,s=o?NJ(e.length,String):[],l=s.length;for(var c in e)(t||WJ.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||FJ(c,l)))&&s.push(c);return s}var dO=UJ;function HJ(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var VJ=HJ,qJ=ci,YJ=Jb,GJ=VJ,KJ=Object.prototype,ZJ=KJ.hasOwnProperty;function XJ(e){if(!qJ(e))return GJ(e);var t=YJ(e),n=[];for(var r in e)r=="constructor"&&(t||!ZJ.call(e,r))||n.push(r);return n}var QJ=XJ,JJ=dO,eee=QJ,tee=Js;function nee(e){return tee(e)?JJ(e,!0):eee(e)}var _u=nee,ree=tl,iee=_u;function aee(e){return ree(e,iee(e))}var oee=aee,R2=JT,see=tO,lee=rO,cee=iO,uee=oO,j2=Wh,D2=ir,dee=lO,fee=Uh,hee=Lh,pee=ci,mee=ty,gee=ry,N2=uO,vee=oee;function bee(e,t,n,r,i,a,o){var s=N2(e,n),l=N2(t,n),c=o.get(l);if(c){R2(e,n,c);return}var u=a?a(s,l,n+"",e,t,o):void 0,d=u===void 0;if(d){var f=D2(l),p=!f&&fee(l),g=!f&&!p&&gee(l);u=l,f||p||g?D2(s)?u=s:dee(s)?u=cee(s):p?(d=!1,u=see(l,!0)):g?(d=!1,u=lee(l,!0)):u=[]:mee(l)||j2(l)?(u=s,j2(s)?u=vee(s):(!pee(s)||hee(s))&&(u=uee(l))):d=!1}d&&(o.set(l,u),i(u,l,r,a,o),o.delete(l)),R2(e,n,u)}var yee=bee,xee=zh,wee=JT,_ee=eO,Cee=yee,$ee=ci,See=_u,Eee=uO;function fO(e,t,n,r,i){e!==t&&_ee(t,function(a,o){if(i||(i=new xee),$ee(a))Cee(e,t,o,n,fO,r,i);else{var s=r?r(Eee(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),wee(e,o,s)}},See)}var kee=fO;function Tee(e){return e}var qh=Tee;function Oee(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Mee=Oee,Aee=Mee,I2=Math.max;function Ree(e,t,n){return t=I2(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=I2(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Aee(e,this,s)}}var hO=Ree;function jee(e){return function(){return e}}var Dee=jee,Nee=Dee,P2=QT,Iee=qh,Pee=P2?function(e,t){return P2(e,"toString",{configurable:!0,enumerable:!1,value:Nee(t),writable:!0})}:Iee,Lee=Pee,Fee=800,Bee=16,zee=Date.now;function Wee(e){var t=0,n=0;return function(){var r=zee(),i=Bee-(r-n);if(n=r,i>0){if(++t>=Fee)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Uee=Wee,Hee=Lee,Vee=Uee,qee=Vee(Hee),pO=qee,Yee=qh,Gee=hO,Kee=pO;function Zee(e,t){return Kee(Gee(e,t,Yee),e+"")}var ay=Zee,Xee=wu,Qee=Js,Jee=Vh,ete=ci;function tte(e,t,n){if(!ete(n))return!1;var r=typeof t;return(r=="number"?Qee(n)&&Jee(t,n.length):r=="string"&&t in n)?Xee(n[t],e):!1}var mO=tte,nte=ay,rte=mO;function ite(e){return nte(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&rte(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var ate=ite,ote=kee,ste=ate,lte=ste(function(e,t,n){ote(e,t,n)}),cte=lte;const gO=on(cte);var ute=zi,dte=Er,fte="[object Symbol]";function hte(e){return typeof e=="symbol"||dte(e)&&ute(e)==fte}var Yh=hte,pte=ir,mte=Yh,gte=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vte=/^\w*$/;function bte(e,t){if(pte(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||mte(e)?!0:vte.test(e)||!gte.test(e)||t!=null&&e in Object(t)}var oy=bte,vO=Kb,yte="Expected a function";function sy(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(yte);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(sy.Cache||vO),n}sy.Cache=vO;var xte=sy,wte=xte,_te=500;function Cte(e){var t=wte(e,function(r){return n.size===_te&&n.clear(),r}),n=t.cache;return t}var $te=Cte,Ste=$te,Ete=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kte=/\\(\\)?/g,Tte=Ste(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ete,function(n,r,i,a){t.push(i?a.replace(kte,"$1"):r||n)}),t}),Ote=Tte;function Mte(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Gh=Mte,L2=Ks,Ate=Gh,Rte=ir,jte=Yh,F2=L2?L2.prototype:void 0,B2=F2?F2.toString:void 0;function bO(e){if(typeof e=="string")return e;if(Rte(e))return Ate(e,bO)+"";if(jte(e))return B2?B2.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Dte=bO,Nte=Dte;function Ite(e){return e==null?"":Nte(e)}var yO=Ite,Pte=ir,Lte=oy,Fte=Ote,Bte=yO;function zte(e,t){return Pte(e)?e:Lte(e,t)?[e]:Fte(Bte(e))}var nl=zte,Wte=Yh;function Ute(e){if(typeof e=="string"||Wte(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var rl=Ute,Hte=nl,Vte=rl;function qte(e,t){t=Hte(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Vte(t[n++])];return n&&n==r?e:void 0}var Cu=qte,Yte=Cu;function Gte(e,t,n){var r=e==null?void 0:Yte(e,t);return r===void 0?n:r}var xO=Gte;const ri=on(xO);var Kte=iy,Zte=nl,Xte=Vh,z2=ci,Qte=rl;function Jte(e,t,n,r){if(!z2(e))return e;t=Zte(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=Qte(t[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=o){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=z2(u)?u:Xte(t[i+1])?[]:{})}Kte(s,l,c),s=s[l]}return e}var wO=Jte,ene=wO;function tne(e,t,n){return e==null?e:ene(e,t,n)}var nne=tne;const Bl=on(nne);function yv(){return yv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yv.apply(null,arguments)}function rne(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ine=["outlineWidth","outlineColor","outlineOpacity"],ane=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,rne(e,ine)},one=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],sne=function(e,t){return yv({},t,e)},lne=function(e,t){var n=gO({},e,t);return one.forEach(function(r){Bl(n,r,sne(ri(n,r),n.text))}),n},_O=function(e,t){return t?gO({},e,t):e},cne={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"#ffffff",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}},une=function(e){return h.useMemo(function(){return lne(cne,e)},[e])},dne=function(e,t){return h.useMemo(function(){return _O(e,t)},[e,t])},CO=h.createContext(null),fne={},hne=function(e){var t=e.theme,n=t===void 0?fne:t,r=e.children,i=une(n);return b.jsx(CO.Provider,{value:i,children:r})},Lt=function(){var e=h.useContext(CO);if(e===null)throw new Error("Unable to find the theme, did you forget to wrap your component with ThemeProvider?");return e};function fo(){return fo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fo.apply(null,arguments)}var pne=["basic","chip","container","table","tableCell","tableCellValue"],mne={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},W2=function(e,t){return"translate("+e+"px, "+t+"px)"},$O=h.memo(function(e){var t,n=e.position,r=e.anchor,i=e.children,a=Lt(),o=Vn(),s=o.animate,l=o.config,c=bue(),u=c[0],d=c[1],f=h.useRef(!1),p=void 0,g=!1,m=d.width>0&&d.height>0,v=Math.round(n[0]),x=Math.round(n[1]);m&&(r==="top"?(v-=d.width/2,x-=d.height+14):r==="right"?(v+=14,x-=d.height/2):r==="bottom"?(v-=d.width/2,x+=14):r==="left"?(v-=d.width+14,x-=d.height/2):r==="center"&&(v-=d.width/2,x-=d.height/2),p={transform:W2(v,x)},f.current||(g=!0),f.current=[v,x]);var _=si({to:p,config:l,immediate:!s||g}),w=a.tooltip;w.basic,w.chip,w.container,w.table,w.tableCell,w.tableCellValue;var C=function($,E){if($==null)return{};var M={};for(var k in $)if({}.hasOwnProperty.call($,k)){if(E.indexOf(k)!==-1)continue;M[k]=$[k]}return M}(w,pne),y=fo({},mne,C,{transform:(t=_.transform)!=null?t:W2(v,x),opacity:_.transform?1:0});return b.jsx(qt.div,{ref:u,style:y,children:i})});$O.displayName="TooltipWrapper";var SO=h.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return b.jsx("span",{style:fo({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),ly=h.memo(function(e){var t,n=e.id,r=e.value,i=e.format,a=e.enableChip,o=a!==void 0&&a,s=e.color,l=e.renderContent,c=Lt(),u=Ns(i);if(typeof l=="function")t=l();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=b.jsxs("div",{style:c.tooltip.basic,children:[o&&b.jsx(SO,{color:s,style:c.tooltip.chip}),d!==void 0?b.jsxs("span",{children:[n,": ",b.jsx("strong",{children:""+d})]}):n]})}return b.jsx("div",{style:c.tooltip.container,role:"tooltip",children:t})}),gne={width:"100%",borderCollapse:"collapse"},EO=h.memo(function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,a=e.renderContent,o=Lt();return i.length?(t=typeof a=="function"?a():b.jsxs("div",{children:[n&&n,b.jsx("table",{style:fo({},gne,o.tooltip.table),children:b.jsx("tbody",{children:i.map(function(s,l){return b.jsx("tr",{children:s.map(function(c,u){return b.jsx("td",{style:o.tooltip.tableCell,children:c},u)})},l)})})})]}),b.jsx("div",{style:o.tooltip.container,children:t})):null});EO.displayName="TableTooltip";var xv=h.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,a=Lt(),o=Vn(),s=o.animate,l=o.config,c=h.useMemo(function(){return fo({},a.crosshair.line,{pointerEvents:"none"})},[a.crosshair.line]),u=si({x1:t,x2:n,y1:r,y2:i,config:l,immediate:!s});return b.jsx(qt.line,fo({},u,{fill:"none",style:c}))});xv.displayName="CrosshairLine";var wv=h.memo(function(e){var t,n,r=e.width,i=e.height,a=e.type,o=e.x,s=e.y;return a==="cross"?(t={x0:o,x1:o,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):a==="top-left"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):a==="top"?t={x0:o,x1:o,y0:0,y1:s}:a==="top-right"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):a==="right"?n={x0:o,x1:r,y0:s,y1:s}:a==="bottom-right"?(t={x0:o,x1:o,y0:s,y1:i},n={x0:o,x1:r,y0:s,y1:s}):a==="bottom"?t={x0:o,x1:o,y0:s,y1:i}:a==="bottom-left"?(t={x0:o,x1:o,y0:s,y1:i},n={x0:0,x1:o,y0:s,y1:s}):a==="left"?n={x0:0,x1:o,y0:s,y1:s}:a==="x"?t={x0:o,x1:o,y0:0,y1:i}:a==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),b.jsxs(b.Fragment,{children:[t&&b.jsx(xv,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&b.jsx(xv,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});wv.displayName="Crosshair";var kO=h.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),_v={isVisible:!1,position:[null,null],content:null,anchor:null},TO=h.createContext(_v),vne=function(e){var t=h.useState(_v),n=t[0],r=t[1],i=h.useCallback(function(s,l,c){var u=l[0],d=l[1];c===void 0&&(c="top"),r({isVisible:!0,position:[u,d],anchor:c,content:s})},[r]),a=h.useCallback(function(s,l,c){c===void 0&&(c="top");var u=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===u.width?1:d/u.width,p="touches"in l?l.touches[0]:l,g=p.clientX,m=p.clientY,v=(g-u.left)*f,x=(m-u.top)*f;c!=="left"&&c!=="right"||(c=v<u.width/2?"right":"left"),r({isVisible:!0,position:[v,x],anchor:c,content:s})},[e,r]),o=h.useCallback(function(){r(_v)},[r]);return{actions:h.useMemo(function(){return{showTooltipAt:i,showTooltipFromEvent:a,hideTooltip:o}},[i,a,o]),state:n}},Wi=function(){var e=h.useContext(kO);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},bne=function(){var e=h.useContext(TO);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},yne=function(e){return e.isVisible},xne=function(){var e=bne();return yne(e)?b.jsx($O,{position:e.position,anchor:e.anchor,children:e.content}):null},wne=function(e){var t=e.container,n=e.children,r=vne(t),i=r.actions,a=r.state;return b.jsx(kO.Provider,{value:i,children:b.jsx(TO.Provider,{value:a,children:n})})},_ne=zi,Cne=ir,$ne=Er,Sne="[object String]";function Ene(e){return typeof e=="string"||!Cne(e)&&$ne(e)&&_ne(e)==Sne}var kne=Ene;const Tne=on(kne);let br;typeof window<"u"?br=window:typeof self<"u"?br=self:br=global;let Cv=null,$v=null;const U2=20,Vm=br.clearTimeout,H2=br.setTimeout,qm=br.cancelAnimationFrame||br.mozCancelAnimationFrame||br.webkitCancelAnimationFrame,V2=br.requestAnimationFrame||br.mozRequestAnimationFrame||br.webkitRequestAnimationFrame;qm==null||V2==null?(Cv=Vm,$v=function(t){return H2(t,U2)}):(Cv=function([t,n]){qm(t),Vm(n)},$v=function(t){const n=V2(function(){Vm(r),t()}),r=H2(function(){qm(n),t()},U2);return[n,r]});function One(e){let t,n,r,i,a,o,s;const l=typeof document<"u"&&document.attachEvent;if(!l){o=function(x){const _=x.__resizeTriggers__,w=_.firstElementChild,C=_.lastElementChild,y=w.firstElementChild;C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight,y.style.width=w.offsetWidth+1+"px",y.style.height=w.offsetHeight+1+"px",w.scrollLeft=w.scrollWidth,w.scrollTop=w.scrollHeight},a=function(x){return x.offsetWidth!==x.__resizeLast__.width||x.offsetHeight!==x.__resizeLast__.height},s=function(x){if(x.target.className&&typeof x.target.className.indexOf=="function"&&x.target.className.indexOf("contract-trigger")<0&&x.target.className.indexOf("expand-trigger")<0)return;const _=this;o(this),this.__resizeRAF__&&Cv(this.__resizeRAF__),this.__resizeRAF__=$v(function(){a(_)&&(_.__resizeLast__.width=_.offsetWidth,_.__resizeLast__.height=_.offsetHeight,_.__resizeListeners__.forEach(function(y){y.call(_,x)}))})};let f=!1,p="";r="animationstart";const g="Webkit Moz O ms".split(" ");let m="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),v="";{const x=document.createElement("fakeelement");if(x.style.animationName!==void 0&&(f=!0),f===!1){for(let _=0;_<g.length;_++)if(x.style[g[_]+"AnimationName"]!==void 0){v=g[_],p="-"+v.toLowerCase()+"-",r=m[_],f=!0;break}}}n="resizeanim",t="@"+p+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=p+"animation: 1ms "+n+"; "}const c=function(f){if(!f.getElementById("detectElementResize")){const p=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',g=f.head||f.getElementsByTagName("head")[0],m=f.createElement("style");m.id="detectElementResize",m.type="text/css",e!=null&&m.setAttribute("nonce",e),m.styleSheet?m.styleSheet.cssText=p:m.appendChild(f.createTextNode(p)),g.appendChild(m)}};return{addResizeListener:function(f,p){if(l)f.attachEvent("onresize",p);else{if(!f.__resizeTriggers__){const g=f.ownerDocument,m=br.getComputedStyle(f);m&&m.position==="static"&&(f.style.position="relative"),c(g),f.__resizeLast__={},f.__resizeListeners__=[],(f.__resizeTriggers__=g.createElement("div")).className="resize-triggers";const v=g.createElement("div");v.className="expand-trigger",v.appendChild(g.createElement("div"));const x=g.createElement("div");x.className="contract-trigger",f.__resizeTriggers__.appendChild(v),f.__resizeTriggers__.appendChild(x),f.appendChild(f.__resizeTriggers__),o(f),f.addEventListener("scroll",s,!0),r&&(f.__resizeTriggers__.__animationListener__=function(w){w.animationName===n&&o(f)},f.__resizeTriggers__.addEventListener(r,f.__resizeTriggers__.__animationListener__))}f.__resizeListeners__.push(p)}},removeResizeListener:function(f,p){if(l)f.detachEvent("onresize",p);else if(f.__resizeListeners__.splice(f.__resizeListeners__.indexOf(p),1),!f.__resizeListeners__.length){f.removeEventListener("scroll",s,!0),f.__resizeTriggers__.__animationListener__&&(f.__resizeTriggers__.removeEventListener(r,f.__resizeTriggers__.__animationListener__),f.__resizeTriggers__.__animationListener__=null);try{f.__resizeTriggers__=!f.removeChild(f.__resizeTriggers__)}catch{}}}}}class Mne extends h.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){const a=window.getComputedStyle(this._parentNode)||{},o=parseFloat(a.paddingLeft||"0"),s=parseFloat(a.paddingRight||"0"),l=parseFloat(a.paddingTop||"0"),c=parseFloat(a.paddingBottom||"0"),u=this._parentNode.getBoundingClientRect(),d=u.height-l-c,f=u.width-o-s;if(!n&&this.state.height!==d||!r&&this.state.width!==f){this.setState({height:d,width:f});const p=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};typeof i=="function"&&i({height:d,width:f,get scaledHeight(){return p(),d},get scaledWidth(){return p(),f}})}}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const r=n.ownerDocument.defaultView.ResizeObserver;r!=null?(this._resizeObserver=new r(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=One(t),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:a=!1,doNotBailOutOnEmptyChildren:o=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,width:p}=this.state,g={overflow:"visible"},m={};let v=!1;return i||(f===0&&(v=!0),g.height=0,m.height=f,m.scaledHeight=f),a||(p===0&&(v=!0),g.width=0,m.width=p,m.scaledWidth=p),o&&(v=!1),h.createElement(u,{ref:this._setRef,style:{...g,...c},...d},!v&&t(m))}}function Kh(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function cy(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function il(){}var ho=.7,Rs=1/ho,us="\\s*([+-]?\\d+)\\s*",Dc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ane=/^#([0-9a-f]{3,8})$/,Rne=new RegExp(`^rgb\\(${us},${us},${us}\\)$`),jne=new RegExp(`^rgb\\(${Xr},${Xr},${Xr}\\)$`),Dne=new RegExp(`^rgba\\(${us},${us},${us},${Dc}\\)$`),Nne=new RegExp(`^rgba\\(${Xr},${Xr},${Xr},${Dc}\\)$`),Ine=new RegExp(`^hsl\\(${Dc},${Xr},${Xr}\\)$`),Pne=new RegExp(`^hsla\\(${Dc},${Xr},${Xr},${Dc}\\)$`),q2={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};Kh(il,Nc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Y2,formatHex:Y2,formatHex8:Lne,formatHsl:Fne,formatRgb:G2,toString:G2});function Y2(){return this.rgb().formatHex()}function Lne(){return this.rgb().formatHex8()}function Fne(){return MO(this).formatHsl()}function G2(){return this.rgb().formatRgb()}function Nc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ane.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?K2(t):n===3?new jn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?od(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?od(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=Rne.exec(e))?new jn(t[1],t[2],t[3],1):(t=jne.exec(e))?new jn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Dne.exec(e))?od(t[1],t[2],t[3],t[4]):(t=Nne.exec(e))?od(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Ine.exec(e))?Q2(t[1],t[2]/100,t[3]/100,1):(t=Pne.exec(e))?Q2(t[1],t[2]/100,t[3]/100,t[4]):q2.hasOwnProperty(e)?K2(q2[e]):e==="transparent"?new jn(NaN,NaN,NaN,0):null}function K2(e){return new jn(e>>16&255,e>>8&255,e&255,1)}function od(e,t,n,r){return r<=0&&(e=t=n=NaN),new jn(e,t,n,r)}function OO(e){return e instanceof il||(e=Nc(e)),e?(e=e.rgb(),new jn(e.r,e.g,e.b,e.opacity)):new jn}function js(e,t,n,r){return arguments.length===1?OO(e):new jn(e,t,n,r??1)}function jn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Kh(jn,js,cy(il,{brighter(e){return e=e==null?Rs:Math.pow(Rs,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ho:Math.pow(ho,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jn(eo(this.r),eo(this.g),eo(this.b),bf(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:Z2,formatHex:Z2,formatHex8:Bne,formatRgb:X2,toString:X2}));function Z2(){return`#${qa(this.r)}${qa(this.g)}${qa(this.b)}`}function Bne(){return`#${qa(this.r)}${qa(this.g)}${qa(this.b)}${qa((isNaN(this.opacity)?1:this.opacity)*255)}`}function X2(){const e=bf(this.opacity);return`${e===1?"rgb(":"rgba("}${eo(this.r)}, ${eo(this.g)}, ${eo(this.b)}${e===1?")":`, ${e})`}`}function bf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function eo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function qa(e){return e=eo(e),(e<16?"0":"")+e.toString(16)}function Q2(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mr(e,t,n,r)}function MO(e){if(e instanceof Mr)return new Mr(e.h,e.s,e.l,e.opacity);if(e instanceof il||(e=Nc(e)),!e)return new Mr;if(e instanceof Mr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new Mr(o,s,l,e.opacity)}function zne(e,t,n,r){return arguments.length===1?MO(e):new Mr(e,t,n,r??1)}function Mr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Kh(Mr,zne,cy(il,{brighter(e){return e=e==null?Rs:Math.pow(Rs,e),new Mr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ho:Math.pow(ho,e),new Mr(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,i=2*n-r;return new jn(Ym(e>=240?e-240:e+120,i,r),Ym(e,i,r),Ym(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Mr(J2(this.h),sd(this.s),sd(this.l),bf(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=bf(this.opacity);return`${e===1?"hsl(":"hsla("}${J2(this.h)}, ${sd(this.s)*100}%, ${sd(this.l)*100}%${e===1?")":`, ${e})`}`}}));function J2(e){return e=(e||0)%360,e<0?e+360:e}function sd(e){return Math.max(0,Math.min(1,e||0))}function Ym(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 Wne=Math.PI/180,Une=180/Math.PI;var AO=-.14861,uy=1.78277,dy=-.29227,Zh=-.90649,Ic=1.97294,e_=Ic*Zh,t_=Ic*uy,n_=uy*dy-Zh*AO;function Hne(e){if(e instanceof to)return new to(e.h,e.s,e.l,e.opacity);e instanceof jn||(e=OO(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(n_*r+e_*t-t_*n)/(n_+e_-t_),a=r-i,o=(Ic*(n-i)-dy*a)/Zh,s=Math.sqrt(o*o+a*a)/(Ic*i*(1-i)),l=s?Math.atan2(o,a)*Une-120:NaN;return new to(l<0?l+360:l,s,i,e.opacity)}function ii(e,t,n,r){return arguments.length===1?Hne(e):new to(e,t,n,r??1)}function to(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Kh(to,ii,cy(il,{brighter(e){return e=e==null?Rs:Math.pow(Rs,e),new to(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ho:Math.pow(ho,e),new to(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Wne,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new jn(255*(t+n*(AO*r+uy*i)),255*(t+n*(dy*r+Zh*i)),255*(t+n*(Ic*r)),this.opacity)}}));function Vne(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function qne(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),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return Vne((n-r/t)*t,o,i,a,s)}}const Xh=e=>()=>e;function RO(e,t){return function(n){return e+n*t}}function Yne(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 Gne(e,t){var n=t-e;return n?RO(e,n>180||n<-180?n-360*Math.round(n/360):n):Xh(isNaN(e)?t:e)}function Kne(e){return(e=+e)==1?ds:function(t,n){return n-t?Yne(t,n,e):Xh(isNaN(t)?n:t)}}function ds(e,t){var n=t-e;return n?RO(e,n):Xh(isNaN(e)?t:e)}const r_=function e(t){var n=Kne(t);function r(i,a){var o=n((i=js(i)).r,(a=js(a)).r),s=n(i.g,a.g),l=n(i.b,a.b),c=ds(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function Zne(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;o<n;++o)s=js(t[o]),r[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return r=e(r),i=e(i),a=e(a),s.opacity=1,function(l){return s.r=r(l),s.g=i(l),s.b=a(l),s+""}}}var Xne=Zne(qne);function Qne(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function Jne(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ere(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=fy(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(s){for(o=0;o<r;++o)a[o]=i[o](s);return a}}function tre(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Pc(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function nre(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=fy(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var Sv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gm=new RegExp(Sv.source,"g");function rre(e){return function(){return e}}function ire(e){return function(t){return e(t)+""}}function jO(e,t){var n=Sv.lastIndex=Gm.lastIndex=0,r,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Sv.exec(e))&&(i=Gm.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Pc(r,i)})),n=Gm.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?ire(l[0].x):rre(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function fy(e,t){var n=typeof t,r;return t==null||n==="boolean"?Xh(t):(n==="number"?Pc:n==="string"?(r=Nc(t))?(t=r,r_):jO:t instanceof Nc?r_:t instanceof Date?tre:Jne(t)?Qne:Array.isArray(t)?ere:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?nre:Pc)(e,t)}function DO(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function NO(e){return function t(n){n=+n;function r(i,a){var o=e((i=ii(i)).h,(a=ii(a)).h),s=ds(i.s,a.s),l=ds(i.l,a.l),c=ds(i.opacity,a.opacity);return function(u){return i.h=o(u),i.s=s(u),i.l=l(Math.pow(u,n)),i.opacity=c(u),i+""}}return r.gamma=t,r}(1)}NO(Gne);var hy=NO(ds),are="__lodash_hash_undefined__";function ore(e){return this.__data__.set(e,are),this}var sre=ore;function lre(e){return this.__data__.has(e)}var cre=lre,ure=Kb,dre=sre,fre=cre;function yf(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ure;++t<n;)this.add(e[t])}yf.prototype.add=yf.prototype.push=dre;yf.prototype.has=fre;var py=yf;function hre(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var pre=hre;function mre(e){return e!==e}var gre=mre;function vre(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var bre=vre,yre=pre,xre=gre,wre=bre;function _re(e,t,n){return t===t?wre(e,t,n):yre(e,xre,n)}var Cre=_re,$re=Cre;function Sre(e,t){var n=e==null?0:e.length;return!!n&&$re(e,t,0)>-1}var IO=Sre;function Ere(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var PO=Ere;function kre(e,t){return e.has(t)}var my=kre,Tre=py,Ore=IO,Mre=PO,Are=Gh,Rre=el,jre=my,Dre=200;function Nre(e,t,n,r){var i=-1,a=Ore,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Are(t,Rre(n))),r?(a=Mre,o=!1):t.length>=Dre&&(a=jre,o=!1,t=new Tre(t));e:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else a(t,d,r)||l.push(u)}return l}var Ire=Nre,Pre=Ire,Lre=ay,Fre=lO,Bre=Lre(function(e,t){return Fre(e)?Pre(e,t):[]}),zre=Bre;const LO=on(zre);function pt(e){return function(){return e}}const i_=Math.abs,kn=Math.atan2,Ia=Math.cos,Wre=Math.max,Km=Math.min,Ur=Math.sin,ts=Math.sqrt,On=1e-12,Lc=Math.PI,xf=Lc/2,kd=2*Lc;function Ure(e){return e>1?0:e<-1?Lc:Math.acos(e)}function a_(e){return e>=1?xf:e<=-1?-xf:Math.asin(e)}const Ev=Math.PI,kv=2*Ev,Ba=1e-6,Hre=kv-Ba;function FO(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Vre(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return FO;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let qre=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?FO:Vre(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=r-t,c=i-n,u=o-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Ba)if(!(Math.abs(d*l-c*u)>Ba)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-o,g=i-s,m=l*l+c*c,v=p*p+g*g,x=Math.sqrt(m),_=Math.sqrt(f),w=a*Math.tan((Ev-Math.acos((m+f-v)/(2*x*_)))/2),C=w/_,y=w/x;Math.abs(C-1)>Ba&&this._append`L${t+C*u},${n+C*d}`,this._append`A${a},${a},0,0,${+(d*p>u*g)},${this._x1=t+y*l},${this._y1=n+y*c}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,d=1^o,f=o?i-a:a-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Ba||Math.abs(this._y1-u)>Ba)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%kv+kv),f>Hre?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:f>Ba&&this._append`A${r},${r},0,${+(f>=Ev)},${d},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function gy(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new qre(t)}function Yre(e){return e.innerRadius}function Gre(e){return e.outerRadius}function Kre(e){return e.startAngle}function Zre(e){return e.endAngle}function Xre(e){return e&&e.padAngle}function Qre(e,t,n,r,i,a,o,s){var l=n-e,c=r-t,u=o-i,d=s-a,f=d*l-u*c;if(!(f*f<On))return f=(u*(t-a)-d*(e-i))/f,[e+f*l,t+f*c]}function ld(e,t,n,r,i,a,o){var s=e-n,l=t-r,c=(o?a:-a)/ts(s*s+l*l),u=c*l,d=-c*s,f=e+u,p=t+d,g=n+u,m=r+d,v=(f+g)/2,x=(p+m)/2,_=g-f,w=m-p,C=_*_+w*w,y=i-a,$=f*m-g*p,E=(w<0?-1:1)*ts(Wre(0,y*y*C-$*$)),M=($*w-_*E)/C,k=(-$*_-w*E)/C,R=($*w+_*E)/C,S=(-$*_+w*E)/C,T=M-v,j=k-x,D=R-v,N=S-x;return T*T+j*j>D*D+N*N&&(M=R,k=S),{cx:M,cy:k,x01:-u,y01:-d,x11:M*(i/y-1),y11:k*(i/y-1)}}function Jre(){var e=Yre,t=Gre,n=pt(0),r=null,i=Kre,a=Zre,o=Xre,s=null,l=gy(c);function c(){var u,d,f=+e.apply(this,arguments),p=+t.apply(this,arguments),g=i.apply(this,arguments)-xf,m=a.apply(this,arguments)-xf,v=i_(m-g),x=m>g;if(s||(s=u=l()),p<f&&(d=p,p=f,f=d),!(p>On))s.moveTo(0,0);else if(v>kd-On)s.moveTo(p*Ia(g),p*Ur(g)),s.arc(0,0,p,g,m,!x),f>On&&(s.moveTo(f*Ia(m),f*Ur(m)),s.arc(0,0,f,m,g,x));else{var _=g,w=m,C=g,y=m,$=v,E=v,M=o.apply(this,arguments)/2,k=M>On&&(r?+r.apply(this,arguments):ts(f*f+p*p)),R=Km(i_(p-f)/2,+n.apply(this,arguments)),S=R,T=R,j,D;if(k>On){var N=a_(k/f*Ur(M)),O=a_(k/p*Ur(M));($-=N*2)>On?(N*=x?1:-1,C+=N,y-=N):($=0,C=y=(g+m)/2),(E-=O*2)>On?(O*=x?1:-1,_+=O,w-=O):(E=0,_=w=(g+m)/2)}var P=p*Ia(_),W=p*Ur(_),U=f*Ia(y),I=f*Ur(y);if(R>On){var z=p*Ia(w),Y=p*Ur(w),X=f*Ia(C),K=f*Ur(C),Z;if(v<Lc)if(Z=Qre(P,W,X,K,z,Y,U,I)){var ee=P-Z[0],J=W-Z[1],B=z-Z[0],L=Y-Z[1],F=1/Ur(Ure((ee*B+J*L)/(ts(ee*ee+J*J)*ts(B*B+L*L)))/2),H=ts(Z[0]*Z[0]+Z[1]*Z[1]);S=Km(R,(f-H)/(F-1)),T=Km(R,(p-H)/(F+1))}else S=T=0}E>On?T>On?(j=ld(X,K,P,W,p,T,x),D=ld(z,Y,U,I,p,T,x),s.moveTo(j.cx+j.x01,j.cy+j.y01),T<R?s.arc(j.cx,j.cy,T,kn(j.y01,j.x01),kn(D.y01,D.x01),!x):(s.arc(j.cx,j.cy,T,kn(j.y01,j.x01),kn(j.y11,j.x11),!x),s.arc(0,0,p,kn(j.cy+j.y11,j.cx+j.x11),kn(D.cy+D.y11,D.cx+D.x11),!x),s.arc(D.cx,D.cy,T,kn(D.y11,D.x11),kn(D.y01,D.x01),!x))):(s.moveTo(P,W),s.arc(0,0,p,_,w,!x)):s.moveTo(P,W),!(f>On)||!($>On)?s.lineTo(U,I):S>On?(j=ld(U,I,z,Y,f,-S,x),D=ld(P,W,X,K,f,-S,x),s.lineTo(j.cx+j.x01,j.cy+j.y01),S<R?s.arc(j.cx,j.cy,S,kn(j.y01,j.x01),kn(D.y01,D.x01),!x):(s.arc(j.cx,j.cy,S,kn(j.y01,j.x01),kn(j.y11,j.x11),!x),s.arc(0,0,f,kn(j.cy+j.y11,j.cx+j.x11),kn(D.cy+D.y11,D.cx+D.x11),x),s.arc(D.cx,D.cy,S,kn(D.y11,D.x11),kn(D.y01,D.x01),!x))):s.arc(0,0,f,y,C,x)}if(s.closePath(),u)return s=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Lc/2;return[Ia(d)*u,Ur(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:pt(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:pt(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:pt(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:pt(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:pt(+u),c):i},c.endAngle=function(u){return arguments.length?(a=typeof u=="function"?u:pt(+u),c):a},c.padAngle=function(u){return arguments.length?(o=typeof u=="function"?u:pt(+u),c):o},c.context=function(u){return arguments.length?(s=u??null,c):s},c}function Qh(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function BO(e){this._context=e}BO.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 vy(e){return new BO(e)}function zO(e){return e[0]}function WO(e){return e[1]}function by(e,t){var n=pt(!0),r=null,i=vy,a=null,o=gy(s);e=typeof e=="function"?e:e===void 0?zO:pt(e),t=typeof t=="function"?t:t===void 0?WO:pt(t);function s(l){var c,u=(l=Qh(l)).length,d,f=!1,p;for(r==null&&(a=i(p=o())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(d,c,l),+t(d,c,l));if(p)return a=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:pt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:pt(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:pt(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(a=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=a=null:a=i(r=l),s):r},s}function eie(e,t,n){var r=null,i=pt(!0),a=null,o=vy,s=null,l=gy(c);e=typeof e=="function"?e:e===void 0?zO:pt(+e),t=typeof t=="function"?t:pt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?WO:pt(+n);function c(d){var f,p,g,m=(d=Qh(d)).length,v,x=!1,_,w=new Array(m),C=new Array(m);for(a==null&&(s=o(_=l())),f=0;f<=m;++f){if(!(f<m&&i(v=d[f],f,d))===x)if(x=!x)p=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=f-1;g>=p;--g)s.point(w[g],C[g]);s.lineEnd(),s.areaEnd()}x&&(w[f]=+e(v,f,d),C[f]=+t(v,f,d),s.point(r?+r(v,f,d):w[f],n?+n(v,f,d):C[f]))}if(_)return s=null,_+""||null}function u(){return by().defined(i).curve(o).context(a)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:pt(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:pt(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:pt(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:pt(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:pt(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:pt(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:pt(!!d),c):i},c.curve=function(d){return arguments.length?(o=d,a!=null&&(s=o(a)),c):o},c.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),c):a},c}function tie(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function nie(e){return e}function rie(){var e=nie,t=tie,n=null,r=pt(0),i=pt(kd),a=pt(0);function o(s){var l,c=(s=Qh(s)).length,u,d,f=0,p=new Array(c),g=new Array(c),m=+r.apply(this,arguments),v=Math.min(kd,Math.max(-kd,i.apply(this,arguments)-m)),x,_=Math.min(Math.abs(v)/c,a.apply(this,arguments)),w=_*(v<0?-1:1),C;for(l=0;l<c;++l)(C=g[p[l]=l]=+e(s[l],l,s))>0&&(f+=C);for(t!=null?p.sort(function(y,$){return t(g[y],g[$])}):n!=null&&p.sort(function(y,$){return n(s[y],s[$])}),l=0,d=f?(v-c*w)/f:0;l<c;++l,m=x)u=p[l],C=g[u],x=m+(C>0?C*d:0)+w,g[u]={data:s[u],index:l,value:C,startAngle:m,endAngle:x,padAngle:_};return g}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:pt(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:pt(+s),o):r},o.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:pt(+s),o):i},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:pt(+s),o):a},o}function ya(){}function wf(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Jh(e){this._context=e}Jh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:wf(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:wf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function iie(e){return new Jh(e)}function UO(e){this._context=e}UO.prototype={areaStart:ya,areaEnd:ya,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:wf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function aie(e){return new UO(e)}function HO(e){this._context=e}HO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:wf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function oie(e){return new HO(e)}function VO(e,t){this._basis=new Jh(e),this._beta=t}VO.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*a),this._beta*t[s]+(1-this._beta)*(i+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const sie=function e(t){function n(r){return t===1?new Jh(r):new VO(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function _f(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function yy(e,t){this._context=e,this._k=(1-t)/6}yy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:_f(this,this._x1,this._y1);break}(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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:_f(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const lie=function e(t){function n(r){return new yy(r,t)}return n.tension=function(r){return e(+r)},n}(0);function xy(e,t){this._context=e,this._k=(1-t)/6}xy.prototype={areaStart:ya,areaEnd:ya,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:_f(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const cie=function e(t){function n(r){return new xy(r,t)}return n.tension=function(r){return e(+r)},n}(0);function wy(e,t){this._context=e,this._k=(1-t)/6}wy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_f(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const uie=function e(t){function n(r){return new wy(r,t)}return n.tension=function(r){return e(+r)},n}(0);function _y(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>On){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>On){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function qO(e,t){this._context=e,this._alpha=t}qO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(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;break;case 2:this._point=3;default:_y(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const die=function e(t){function n(r){return t?new qO(r,t):new yy(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function YO(e,t){this._context=e,this._alpha=t}YO.prototype={areaStart:ya,areaEnd:ya,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:_y(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const fie=function e(t){function n(r){return t?new YO(r,t):new xy(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function GO(e,t){this._context=e,this._alpha=t}GO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_y(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const hie=function e(t){function n(r){return t?new GO(r,t):new wy(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function KO(e){this._context=e}KO.prototype={areaStart:ya,areaEnd:ya,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function pie(e){return new KO(e)}function o_(e){return e<0?-1:1}function s_(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(o_(a)+o_(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function l_(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Zm(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Cf(e){this._context=e}Cf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Zm(this,this._t0,l_(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(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;break;case 2:this._point=3,Zm(this,l_(this,n=s_(this,e,t)),n);break;default:Zm(this,this._t0,n=s_(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function ZO(e){this._context=new XO(e)}(ZO.prototype=Object.create(Cf.prototype)).point=function(e,t){Cf.prototype.point.call(this,t,e)};function XO(e){this._context=e}XO.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function mie(e){return new Cf(e)}function gie(e){return new ZO(e)}function QO(e){this._context=e}QO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=c_(e),i=c_(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function c_(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function vie(e){return new QO(e)}function ep(e,t){this._context=e,this._t=t}ep.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,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:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function bie(e){return new ep(e,.5)}function yie(e){return new ep(e,0)}function xie(e){return new ep(e,1)}function u_(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function d_(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function wie(e,t){return e[t]}function _ie(e){const t=[];return t.key=e,t}function Cie(){var e=pt([]),t=d_,n=u_,r=wie;function i(a){var o=Array.from(e.apply(this,arguments),_ie),s,l=o.length,c=-1,u;for(const d of a)for(s=0,++c;s<l;++s)(o[s][c]=[0,+r(d,o[s].key,c,a)]).data=d;for(s=0,u=Qh(t(o));s<l;++s)o[u[s]].index=s;return n(o,u),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:pt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:pt(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?d_:typeof a=="function"?a:pt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??u_,i):n},i}function $ie(e,t){if((l=e.length)>0)for(var n,r=0,i,a,o,s,l,c=e[t[0]].length;r<c;++r)for(o=s=0,n=0;n<l;++n)(a=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=s,i[0]=s+=a):(i[0]=0,i[1]=a)}function Td(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Sie(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Cy(e){let t,n,r;e.length!==2?(t=Td,n=(s,l)=>Td(e(s),l),r=(s,l)=>e(s)-l):(t=e===Td||e===Sie?e:Eie,n=e,r=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function o(s,l,c=0,u=s.length){const d=i(s,l,c,u-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:o,right:a}}function Eie(){return 0}function kie(e){return e===null?NaN:+e}const Tie=Cy(Td),Oie=Tie.right;Cy(kie).center;class f_ extends Map{constructor(t,n=Rie){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(h_(this,t))}has(t){return super.has(h_(this,t))}set(t,n){return super.set(Mie(this,t),n)}delete(t){return super.delete(Aie(this,t))}}function h_({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Mie({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Aie({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Rie(e){return e!==null&&typeof e=="object"?e.valueOf():e}const jie=Math.sqrt(50),Die=Math.sqrt(10),Nie=Math.sqrt(2);function $f(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=jie?10:a>=Die?5:a>=Nie?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?$f(e,t,n*2):[s,l,c]}function Tv(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?$f(t,e,n):$f(e,t,n);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(r)if(o<0)for(let c=0;c<s;++c)l[c]=(a-c)/-o;else for(let c=0;c<s;++c)l[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)l[c]=(i+c)/-o;else for(let c=0;c<s;++c)l[c]=(i+c)*o;return l}function Ov(e,t,n){return t=+t,e=+e,n=+n,$f(e,t,n)[2]}function Mv(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Ov(t,e,n):Ov(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Iie(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function Co(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const p_=Symbol("implicit");function Ya(){var e=new f_,t=[],n=[],r=p_;function i(a){let o=e.get(a);if(o===void 0){if(r!==p_)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new f_;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Ya(t,n).unknown(r)},Co.apply(i,arguments),i}function $y(){var e=Ya().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var f=t().length,p=i<r,g=p?i:r,m=p?r:i;a=(m-g)/Math.max(1,f-l+c*2),s&&(a=Math.floor(a)),g+=(m-g-a*(f-l))*u,o=a*(1-l),s&&(g=Math.round(g),o=Math.round(o));var v=Iie(f).map(function(x){return g+a*x});return n(p?v.reverse():v)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return $y(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},Co.apply(d(),arguments)}function JO(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return JO(t())},e}function Pie(){return JO($y.apply(null,arguments).paddingInner(1))}function Lie(e){return function(){return e}}function Fie(e){return+e}var m_=[0,1];function ns(e){return e}function Av(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Lie(isNaN(t)?NaN:.5)}function Bie(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function zie(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Av(i,r),a=n(o,a)):(r=Av(r,i),a=n(a,o)),function(s){return a(r(s))}}function Wie(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Av(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(s){var l=Oie(e,s,1,r)-1;return a[l](i[l](s))}}function tp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Sy(){var e=m_,t=m_,n=fy,r,i,a,o=ns,s,l,c;function u(){var f=Math.min(e.length,t.length);return o!==ns&&(o=Bie(e[0],e[f-1])),s=f>2?Wie:zie,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?a:(l||(l=s(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(i((c||(c=s(t,e.map(r),Pc)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,Fie),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=DO,u()},d.clamp=function(f){return arguments.length?(o=f?!0:ns,u()):o!==ns},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(a=f,d):a},function(f,p){return r=f,i=p,u()}}function e3(){return Sy()(ns,ns)}function Uie(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Sf(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 Ds(e){return e=Sf(Math.abs(e)),e?e[1]:NaN}function Hie(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Vie(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var qie=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fc(e){if(!(t=qie.exec(e)))throw new Error("invalid format: "+e);var t;return new Ey({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]})}Fc.prototype=Ey.prototype;function Ey(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+""}Ey.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 Yie(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var t3;function Gie(e,t){var n=Sf(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(t3=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Sf(e,Math.max(0,t+a-1))[0]}function g_(e,t){var n=Sf(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const v_={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:Uie,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return g_(e*100,t)},r:g_,s:Gie,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function b_(e){return e}var y_=Array.prototype.map,x_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Kie(e){var t=e.grouping===void 0||e.thousands===void 0?b_:Hie(y_.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal+"",a=e.numerals===void 0?b_:Vie(y_.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=Fc(d);var f=d.fill,p=d.align,g=d.sign,m=d.symbol,v=d.zero,x=d.width,_=d.comma,w=d.precision,C=d.trim,y=d.type;y==="n"?(_=!0,y="g"):v_[y]||(w===void 0&&(w=12),C=!0,y="g"),(v||f==="0"&&p==="=")&&(v=!0,f="0",p="=");var $=m==="$"?n:m==="#"&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",E=m==="$"?r:/[%p]/.test(y)?o:"",M=v_[y],k=/[defgprs%]/.test(y);w=w===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function R(S){var T=$,j=E,D,N,O;if(y==="c")j=M(S)+j,S="";else{S=+S;var P=S<0||1/S<0;if(S=isNaN(S)?l:M(Math.abs(S),w),C&&(S=Yie(S)),P&&+S==0&&g!=="+"&&(P=!1),T=(P?g==="("?g:s:g==="-"||g==="("?"":g)+T,j=(y==="s"?x_[8+t3/3]:"")+j+(P&&g==="("?")":""),k){for(D=-1,N=S.length;++D<N;)if(O=S.charCodeAt(D),48>O||O>57){j=(O===46?i+S.slice(D+1):S.slice(D))+j,S=S.slice(0,D);break}}}_&&!v&&(S=t(S,1/0));var W=T.length+S.length+j.length,U=W<x?new Array(x-W+1).join(f):"";switch(_&&v&&(S=t(U+S,U.length?x-j.length:1/0),U=""),p){case"<":S=T+S+j+U;break;case"=":S=T+U+S+j;break;case"^":S=U.slice(0,W=U.length>>1)+T+S+j+U.slice(W);break;default:S=U+T+S+j;break}return a(S)}return R.toString=function(){return d+""},R}function u(d,f){var p=c((d=Fc(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(Ds(f)/3)))*3,m=Math.pow(10,-g),v=x_[8+g/3];return function(x){return p(m*x)+v}}return{format:c,formatPrefix:u}}var cd,$u,n3;Zie({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Zie(e){return cd=Kie(e),$u=cd.format,n3=cd.formatPrefix,cd}function Xie(e){return Math.max(0,-Ds(Math.abs(e)))}function Qie(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ds(t)/3)))*3-Ds(Math.abs(e)))}function Jie(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ds(t)-Ds(e))+1}function eae(e,t,n,r){var i=Mv(e,t,n),a;switch(r=Fc(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Qie(i,o))&&(r.precision=a),n3(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=Jie(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=Xie(i))&&(r.precision=a-(r.type==="%")*2);break}}return $u(r)}function r3(e){var t=e.domain;return e.ticks=function(n){var r=t();return Tv(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return eae(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],l,c,u=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);u-- >0;){if(c=Ov(o,s,n),c===l)return r[i]=o,r[a]=s,t(r);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function Ef(){var e=e3();return e.copy=function(){return tp(e,Ef())},Co.apply(e,arguments),r3(e)}function i3(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function w_(e){return Math.log(e)}function __(e){return Math.exp(e)}function tae(e){return-Math.log(-e)}function nae(e){return-Math.exp(-e)}function rae(e){return isFinite(e)?+("1e"+e):e<0?0:e}function iae(e){return e===10?rae:e===Math.E?Math.exp:t=>Math.pow(e,t)}function aae(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 C_(e){return(t,n)=>-e(-t,n)}function oae(e){const t=e(w_,__),n=t.domain;let r=10,i,a;function o(){return i=aae(r),a=iae(r),n()[0]<0?(i=C_(i),a=C_(a),e(tae,nae)):e(w_,__),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let f=i(c),p=i(u),g,m;const v=s==null?10:+s;let x=[];if(!(r%1)&&p-f<v){if(f=Math.floor(f),p=Math.ceil(p),c>0){for(;f<=p;++f)for(g=1;g<r;++g)if(m=f<0?g/a(-f):g*a(f),!(m<c)){if(m>u)break;x.push(m)}}else for(;f<=p;++f)for(g=r-1;g>=1;--g)if(m=f>0?g/a(-f):g*a(f),!(m<c)){if(m>u)break;x.push(m)}x.length*2<v&&(x=Tv(c,u,v))}else x=Tv(f,p,Math.min(p-f,v)).map(a);return d?x.reverse():x},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Fc(l)).precision==null&&(l.trim=!0),l=$u(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/a(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(i3(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function a3(){const e=oae(Sy()).domain([1,10]);return e.copy=()=>tp(e,a3()).base(e.base()),Co.apply(e,arguments),e}function $_(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function S_(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function sae(e){var t=1,n=e($_(t),S_(t));return n.constant=function(r){return arguments.length?e($_(t=+r),S_(t)):t},r3(n)}function o3(){var e=sae(Sy());return e.copy=function(){return tp(e,o3()).constant(e.constant())},Co.apply(e,arguments)}const Xm=new Date,Qm=new Date;function yn(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let c;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},i.filter=a=>yn(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(Xm.setTime(+a),Qm.setTime(+o),e(Xm),e(Qm),Math.floor(n(Xm,Qm))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const kf=yn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);kf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?yn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):kf);kf.range;const Si=1e3,vr=Si*60,Ei=vr*60,Li=Ei*24,ky=Li*7,E_=Li*30,Jm=Li*365,Ga=yn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Si)},(e,t)=>(t-e)/Si,e=>e.getUTCSeconds());Ga.range;const Ty=yn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Si)},(e,t)=>{e.setTime(+e+t*vr)},(e,t)=>(t-e)/vr,e=>e.getMinutes());Ty.range;const Oy=yn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*vr)},(e,t)=>(t-e)/vr,e=>e.getUTCMinutes());Oy.range;const My=yn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Si-e.getMinutes()*vr)},(e,t)=>{e.setTime(+e+t*Ei)},(e,t)=>(t-e)/Ei,e=>e.getHours());My.range;const Ay=yn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ei)},(e,t)=>(t-e)/Ei,e=>e.getUTCHours());Ay.range;const Ry=yn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*vr)/Li,e=>e.getDate()-1);Ry.range;const s3=yn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Li,e=>e.getUTCDate()-1);s3.range;const l3=yn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Li,e=>Math.floor(e/Li));l3.range;function $o(e){return yn(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())*vr)/ky)}const jy=$o(0),lae=$o(1),cae=$o(2),uae=$o(3),dae=$o(4),fae=$o(5),hae=$o(6);jy.range;lae.range;cae.range;uae.range;dae.range;fae.range;hae.range;function So(e){return yn(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)/ky)}const Dy=So(0),pae=So(1),mae=So(2),gae=So(3),vae=So(4),bae=So(5),yae=So(6);Dy.range;pae.range;mae.range;gae.range;vae.range;bae.range;yae.range;const Ny=yn(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());Ny.range;const Iy=yn(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());Iy.range;const np=yn(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());np.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:yn(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)});np.range;const rp=yn(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());rp.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:yn(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)});rp.range;function c3(e,t,n,r,i,a){const o=[[Ga,1,Si],[Ga,5,5*Si],[Ga,15,15*Si],[Ga,30,30*Si],[a,1,vr],[a,5,5*vr],[a,15,15*vr],[a,30,30*vr],[i,1,Ei],[i,3,3*Ei],[i,6,6*Ei],[i,12,12*Ei],[r,1,Li],[r,2,2*Li],[n,1,ky],[t,1,E_],[t,3,3*E_],[e,1,Jm]];function s(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const p=d&&typeof d.range=="function"?d:l(c,u,d),g=p?p.range(c,+u+1):[];return f?g.reverse():g}function l(c,u,d){const f=Math.abs(u-c)/d,p=Cy(([,,v])=>v).right(o,f);if(p===o.length)return e.every(Mv(c/Jm,u/Jm,d));if(p===0)return kf.every(Math.max(Mv(c,u,d),1));const[g,m]=o[f/o[p-1][2]<o[p][2]/f?p-1:p];return g.every(m)}return[s,l]}const[xae,wae]=c3(rp,Iy,Dy,l3,Ay,Oy),[_ae,Cae]=c3(np,Ny,jy,Ry,My,Ty);var eg=new Date,tg=new Date;function pn(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,s){var l=[],c;if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},i.filter=function(a){return pn(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););})},n&&(i.count=function(a,o){return eg.setTime(+a),tg.setTime(+o),e(eg),e(tg),Math.floor(n(eg,tg))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?function(o){return r(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var Bc=pn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Bc.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?pn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Bc};Bc.range;var Tf=1e3,po=6e4,Of=36e5,u3=864e5,d3=6048e5,Rv=pn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Tf)},function(e,t){return(t-e)/Tf},function(e){return e.getUTCSeconds()});Rv.range;var f3=pn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Tf)},function(e,t){e.setTime(+e+t*po)},function(e,t){return(t-e)/po},function(e){return e.getMinutes()});f3.range;var h3=pn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Tf-e.getMinutes()*po)},function(e,t){e.setTime(+e+t*Of)},function(e,t){return(t-e)/Of},function(e){return e.getHours()});h3.range;var Py=pn(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*po)/u3},function(e){return e.getDate()-1});Py.range;function Eo(e){return pn(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*po)/d3})}var Mf=Eo(0),zc=Eo(1),p3=Eo(2),m3=Eo(3),mo=Eo(4),g3=Eo(5),v3=Eo(6);Mf.range;zc.range;p3.range;m3.range;mo.range;g3.range;v3.range;var b3=pn(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});b3.range;var xa=pn(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});xa.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:pn(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};xa.range;var y3=pn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*po)},function(e,t){return(t-e)/po},function(e){return e.getUTCMinutes()});y3.range;var x3=pn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Of)},function(e,t){return(t-e)/Of},function(e){return e.getUTCHours()});x3.range;var Ly=pn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/u3},function(e){return e.getUTCDate()-1});Ly.range;function ko(e){return pn(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/d3})}var Af=ko(0),Wc=ko(1),w3=ko(2),_3=ko(3),go=ko(4),C3=ko(5),$3=ko(6);Af.range;Wc.range;w3.range;_3.range;go.range;C3.range;$3.range;var S3=pn(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});S3.range;var wa=pn(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});wa.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:pn(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};wa.range;function ng(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 rg(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 Tl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function $ae(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=Ol(i),u=Ml(i),d=Ol(a),f=Ml(a),p=Ol(o),g=Ml(o),m=Ol(s),v=Ml(s),x=Ol(l),_=Ml(l),w={a:P,A:W,b:U,B:I,c:null,d:R_,e:R_,f:Yae,g:roe,G:aoe,H:Hae,I:Vae,j:qae,L:E3,m:Gae,M:Kae,p:z,q:Y,Q:N_,s:I_,S:Zae,u:Xae,U:Qae,V:Jae,w:eoe,W:toe,x:null,X:null,y:noe,Y:ioe,Z:ooe,"%":D_},C={a:X,A:K,b:Z,B:ee,c:null,d:j_,e:j_,f:uoe,g:xoe,G:_oe,H:soe,I:loe,j:coe,L:T3,m:doe,M:foe,p:J,q:B,Q:N_,s:I_,S:hoe,u:poe,U:moe,V:goe,w:voe,W:boe,x:null,X:null,y:yoe,Y:woe,Z:Coe,"%":D_},y={a:R,A:S,b:T,B:j,c:D,d:M_,e:M_,f:Bae,g:O_,G:T_,H:A_,I:A_,j:Iae,L:Fae,m:Nae,M:Pae,p:k,q:Dae,Q:Wae,s:Uae,S:Lae,u:Oae,U:Mae,V:Aae,w:Tae,W:Rae,x:N,X:O,y:O_,Y:T_,Z:jae,"%":zae};w.x=$(n,w),w.X=$(r,w),w.c=$(t,w),C.x=$(n,C),C.X=$(r,C),C.c=$(t,C);function $(L,F){return function(H){var A=[],Q=-1,q=0,G=L.length,oe,re,ne;for(H instanceof Date||(H=new Date(+H));++Q<G;)L.charCodeAt(Q)===37&&(A.push(L.slice(q,Q)),(re=k_[oe=L.charAt(++Q)])!=null?oe=L.charAt(++Q):re=oe==="e"?" ":"0",(ne=F[oe])&&(oe=ne(H,re)),A.push(oe),q=Q+1);return A.push(L.slice(q,Q)),A.join("")}}function E(L,F){return function(H){var A=Tl(1900,void 0,1),Q=M(A,L,H+="",0),q,G;if(Q!=H.length)return null;if("Q"in A)return new Date(A.Q);if("s"in A)return new Date(A.s*1e3+("L"in A?A.L:0));if(F&&!("Z"in A)&&(A.Z=0),"p"in A&&(A.H=A.H%12+A.p*12),A.m===void 0&&(A.m="q"in A?A.q:0),"V"in A){if(A.V<1||A.V>53)return null;"w"in A||(A.w=1),"Z"in A?(q=rg(Tl(A.y,0,1)),G=q.getUTCDay(),q=G>4||G===0?Wc.ceil(q):Wc(q),q=Ly.offset(q,(A.V-1)*7),A.y=q.getUTCFullYear(),A.m=q.getUTCMonth(),A.d=q.getUTCDate()+(A.w+6)%7):(q=ng(Tl(A.y,0,1)),G=q.getDay(),q=G>4||G===0?zc.ceil(q):zc(q),q=Py.offset(q,(A.V-1)*7),A.y=q.getFullYear(),A.m=q.getMonth(),A.d=q.getDate()+(A.w+6)%7)}else("W"in A||"U"in A)&&("w"in A||(A.w="u"in A?A.u%7:"W"in A?1:0),G="Z"in A?rg(Tl(A.y,0,1)).getUTCDay():ng(Tl(A.y,0,1)).getDay(),A.m=0,A.d="W"in A?(A.w+6)%7+A.W*7-(G+5)%7:A.w+A.U*7-(G+6)%7);return"Z"in A?(A.H+=A.Z/100|0,A.M+=A.Z%100,rg(A)):ng(A)}}function M(L,F,H,A){for(var Q=0,q=F.length,G=H.length,oe,re;Q<q;){if(A>=G)return-1;if(oe=F.charCodeAt(Q++),oe===37){if(oe=F.charAt(Q++),re=y[oe in k_?F.charAt(Q++):oe],!re||(A=re(L,H,A))<0)return-1}else if(oe!=H.charCodeAt(A++))return-1}return A}function k(L,F,H){var A=c.exec(F.slice(H));return A?(L.p=u.get(A[0].toLowerCase()),H+A[0].length):-1}function R(L,F,H){var A=p.exec(F.slice(H));return A?(L.w=g.get(A[0].toLowerCase()),H+A[0].length):-1}function S(L,F,H){var A=d.exec(F.slice(H));return A?(L.w=f.get(A[0].toLowerCase()),H+A[0].length):-1}function T(L,F,H){var A=x.exec(F.slice(H));return A?(L.m=_.get(A[0].toLowerCase()),H+A[0].length):-1}function j(L,F,H){var A=m.exec(F.slice(H));return A?(L.m=v.get(A[0].toLowerCase()),H+A[0].length):-1}function D(L,F,H){return M(L,t,F,H)}function N(L,F,H){return M(L,n,F,H)}function O(L,F,H){return M(L,r,F,H)}function P(L){return o[L.getDay()]}function W(L){return a[L.getDay()]}function U(L){return l[L.getMonth()]}function I(L){return s[L.getMonth()]}function z(L){return i[+(L.getHours()>=12)]}function Y(L){return 1+~~(L.getMonth()/3)}function X(L){return o[L.getUTCDay()]}function K(L){return a[L.getUTCDay()]}function Z(L){return l[L.getUTCMonth()]}function ee(L){return s[L.getUTCMonth()]}function J(L){return i[+(L.getUTCHours()>=12)]}function B(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var F=$(L+="",w);return F.toString=function(){return L},F},parse:function(L){var F=E(L+="",!1);return F.toString=function(){return L},F},utcFormat:function(L){var F=$(L+="",C);return F.toString=function(){return L},F},utcParse:function(L){var F=E(L+="",!0);return F.toString=function(){return L},F}}}var k_={"-":"",_:" ",0:"0"},Cn=/^\s*\d+/,Sae=/^%/,Eae=/[\\^$*+?|[\]().{}]/g;function kt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function kae(e){return e.replace(Eae,"\\$&")}function Ol(e){return new RegExp("^(?:"+e.map(kae).join("|")+")","i")}function Ml(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Tae(e,t,n){var r=Cn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Oae(e,t,n){var r=Cn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Mae(e,t,n){var r=Cn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Aae(e,t,n){var r=Cn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Rae(e,t,n){var r=Cn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function T_(e,t,n){var r=Cn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function O_(e,t,n){var r=Cn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function jae(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 Dae(e,t,n){var r=Cn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Nae(e,t,n){var r=Cn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function M_(e,t,n){var r=Cn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Iae(e,t,n){var r=Cn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function A_(e,t,n){var r=Cn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Pae(e,t,n){var r=Cn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Lae(e,t,n){var r=Cn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Fae(e,t,n){var r=Cn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Bae(e,t,n){var r=Cn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zae(e,t,n){var r=Sae.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Wae(e,t,n){var r=Cn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Uae(e,t,n){var r=Cn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function R_(e,t){return kt(e.getDate(),t,2)}function Hae(e,t){return kt(e.getHours(),t,2)}function Vae(e,t){return kt(e.getHours()%12||12,t,2)}function qae(e,t){return kt(1+Py.count(xa(e),e),t,3)}function E3(e,t){return kt(e.getMilliseconds(),t,3)}function Yae(e,t){return E3(e,t)+"000"}function Gae(e,t){return kt(e.getMonth()+1,t,2)}function Kae(e,t){return kt(e.getMinutes(),t,2)}function Zae(e,t){return kt(e.getSeconds(),t,2)}function Xae(e){var t=e.getDay();return t===0?7:t}function Qae(e,t){return kt(Mf.count(xa(e)-1,e),t,2)}function k3(e){var t=e.getDay();return t>=4||t===0?mo(e):mo.ceil(e)}function Jae(e,t){return e=k3(e),kt(mo.count(xa(e),e)+(xa(e).getDay()===4),t,2)}function eoe(e){return e.getDay()}function toe(e,t){return kt(zc.count(xa(e)-1,e),t,2)}function noe(e,t){return kt(e.getFullYear()%100,t,2)}function roe(e,t){return e=k3(e),kt(e.getFullYear()%100,t,2)}function ioe(e,t){return kt(e.getFullYear()%1e4,t,4)}function aoe(e,t){var n=e.getDay();return e=n>=4||n===0?mo(e):mo.ceil(e),kt(e.getFullYear()%1e4,t,4)}function ooe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+kt(t/60|0,"0",2)+kt(t%60,"0",2)}function j_(e,t){return kt(e.getUTCDate(),t,2)}function soe(e,t){return kt(e.getUTCHours(),t,2)}function loe(e,t){return kt(e.getUTCHours()%12||12,t,2)}function coe(e,t){return kt(1+Ly.count(wa(e),e),t,3)}function T3(e,t){return kt(e.getUTCMilliseconds(),t,3)}function uoe(e,t){return T3(e,t)+"000"}function doe(e,t){return kt(e.getUTCMonth()+1,t,2)}function foe(e,t){return kt(e.getUTCMinutes(),t,2)}function hoe(e,t){return kt(e.getUTCSeconds(),t,2)}function poe(e){var t=e.getUTCDay();return t===0?7:t}function moe(e,t){return kt(Af.count(wa(e)-1,e),t,2)}function O3(e){var t=e.getUTCDay();return t>=4||t===0?go(e):go.ceil(e)}function goe(e,t){return e=O3(e),kt(go.count(wa(e),e)+(wa(e).getUTCDay()===4),t,2)}function voe(e){return e.getUTCDay()}function boe(e,t){return kt(Wc.count(wa(e)-1,e),t,2)}function yoe(e,t){return kt(e.getUTCFullYear()%100,t,2)}function xoe(e,t){return e=O3(e),kt(e.getUTCFullYear()%100,t,2)}function woe(e,t){return kt(e.getUTCFullYear()%1e4,t,4)}function _oe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?go(e):go.ceil(e),kt(e.getUTCFullYear()%1e4,t,4)}function Coe(){return"+0000"}function D_(){return"%"}function N_(e){return+e}function I_(e){return Math.floor(+e/1e3)}var Ho,ip,M3,A3,R3;$oe({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 $oe(e){return Ho=$ae(e),ip=Ho.format,M3=Ho.parse,A3=Ho.utcFormat,R3=Ho.utcParse,Ho}function Soe(e){return new Date(e)}function Eoe(e){return e instanceof Date?+e:+new Date(+e)}function Fy(e,t,n,r,i,a,o,s,l,c){var u=e3(),d=u.invert,f=u.domain,p=c(".%L"),g=c(":%S"),m=c("%I:%M"),v=c("%I %p"),x=c("%a %d"),_=c("%b %d"),w=c("%B"),C=c("%Y");function y($){return(l($)<$?p:s($)<$?g:o($)<$?m:a($)<$?v:r($)<$?i($)<$?x:_:n($)<$?w:C)($)}return u.invert=function($){return new Date(d($))},u.domain=function($){return arguments.length?f(Array.from($,Eoe)):f().map(Soe)},u.ticks=function($){var E=f();return e(E[0],E[E.length-1],$??10)},u.tickFormat=function($,E){return E==null?y:c(E)},u.nice=function($){var E=f();return(!$||typeof $.range!="function")&&($=t(E[0],E[E.length-1],$??10)),$?f(i3(E,$)):u},u.copy=function(){return tp(u,Fy(e,t,n,r,i,a,o,s,l,c))},u}function koe(){return Co.apply(Fy(_ae,Cae,np,Ny,jy,Ry,My,Ty,Ga,ip).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Toe(){return Co.apply(Fy(xae,wae,rp,Iy,Dy,s3,Ay,Oy,Ga,A3).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function st(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const Ooe=st("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Moe=st("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Aoe=st("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Roe=st("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),joe=st("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Doe=st("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Noe=st("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Ioe=st("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),j3=st("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Poe=st("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Yt=e=>Xne(e[e.length-1]);var ap=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(st);const Loe=Yt(ap);var op=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(st);const Foe=Yt(op);var sp=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(st);const Boe=Yt(sp);var lp=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(st);const zoe=Yt(lp);var cp=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(st);const Woe=Yt(cp);var up=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(st);const Uoe=Yt(up);var dp=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(st);const Hoe=Yt(dp);var fp=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(st);const Voe=Yt(fp);var hp=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(st);const qoe=Yt(hp);var pp=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(st);const Yoe=Yt(pp);var mp=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(st);const Goe=Yt(mp);var gp=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(st);const Koe=Yt(gp);var vp=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(st);const Zoe=Yt(vp);var bp=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(st);const Xoe=Yt(bp);var yp=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(st);const Qoe=Yt(yp);var xp=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(st);const Joe=Yt(xp);var wp=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(st);const ese=Yt(wp);var _p=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(st);const tse=Yt(_p);var Cp=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(st);const nse=Yt(Cp);var $p=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(st);const rse=Yt($p);var Sp=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(st);const ise=Yt(Sp);var Ep=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(st);const ase=Yt(Ep);var kp=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(st);const ose=Yt(kp);var Tp=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(st);const sse=Yt(Tp);var Op=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(st);const lse=Yt(Op);var Mp=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(st);const cse=Yt(Mp);var Ap=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(st);const use=Yt(Ap);function dse(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const fse=hy(ii(300,.5,0),ii(-240,.5,1));var hse=hy(ii(-100,.75,.35),ii(80,1.5,.8)),pse=hy(ii(260,.75,.35),ii(80,1.5,.8)),ud=ii();function mse(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return ud.h=360*e-100,ud.s=1.5-1.5*t,ud.l=.8-.9*t,ud+""}var dd=js(),gse=Math.PI/3,vse=Math.PI*2/3;function bse(e){var t;return e=(.5-e)*Math.PI,dd.r=255*(t=Math.sin(e))*t,dd.g=255*(t=Math.sin(e+gse))*t,dd.b=255*(t=Math.sin(e+vse))*t,dd+""}function yse(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function Rp(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const xse=Rp(st("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var wse=Rp(st("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),_se=Rp(st("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Cse=Rp(st("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function $se(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var D3=$se;const Ae=on(D3);var Sse=Cu,Ese=wO,kse=nl;function Tse(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Sse(e,o);n(s,o)&&Ese(a,kse(o,e),s)}return a}var Ose=Tse;function Mse(e,t){return e!=null&&t in Object(e)}var Ase=Mse,Rse=nl,jse=Wh,Dse=ir,Nse=Vh,Ise=ey,Pse=rl;function Lse(e,t,n){t=Rse(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=Pse(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&Ise(i)&&Nse(o,i)&&(Dse(e)||jse(e)))}var Fse=Lse,Bse=Ase,zse=Fse;function Wse(e,t){return e!=null&&zse(e,t,Bse)}var N3=Wse,Use=Ose,Hse=N3;function Vse(e,t){return Use(e,t,function(n,r){return Hse(e,r)})}var qse=Vse;function Yse(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var By=Yse,P_=Ks,Gse=Wh,Kse=ir,L_=P_?P_.isConcatSpreadable:void 0;function Zse(e){return Kse(e)||Gse(e)||!!(L_&&e&&e[L_])}var Xse=Zse,Qse=By,Jse=Xse;function I3(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=Jse),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?I3(s,t-1,n,r,i):Qse(i,s):r||(i[i.length]=s)}return i}var P3=I3,ele=P3;function tle(e){var t=e==null?0:e.length;return t?ele(e,1):[]}var nle=tle,rle=nle,ile=hO,ale=pO;function ole(e){return ale(ile(e,void 0,rle),e+"")}var L3=ole,sle=qse,lle=L3,cle=lle(function(e,t){return e==null?{}:sle(e,t)}),ule=cle;const dle=on(ule);function fle(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var hle=fle,ple=py,mle=hle,gle=my,vle=1,ble=2;function yle(e,t,n,r,i,a){var o=n&vle,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=n&ble?new ple:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var g=e[d],m=t[d];if(r)var v=o?r(m,g,d,t,e,a):r(g,m,d,e,t,a);if(v!==void 0){if(v)continue;f=!1;break}if(p){if(!mle(t,function(x,_){if(!gle(p,_)&&(g===x||i(g,x,n,r,a)))return p.push(_)})){f=!1;break}}else if(!(g===m||i(g,m,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var F3=yle;function xle(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var wle=xle;function _le(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var zy=_le,F_=Ks,B_=nO,Cle=wu,$le=F3,Sle=wle,Ele=zy,kle=1,Tle=2,Ole="[object Boolean]",Mle="[object Date]",Ale="[object Error]",Rle="[object Map]",jle="[object Number]",Dle="[object RegExp]",Nle="[object Set]",Ile="[object String]",Ple="[object Symbol]",Lle="[object ArrayBuffer]",Fle="[object DataView]",z_=F_?F_.prototype:void 0,ig=z_?z_.valueOf:void 0;function Ble(e,t,n,r,i,a,o){switch(n){case Fle:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Lle:return!(e.byteLength!=t.byteLength||!a(new B_(e),new B_(t)));case Ole:case Mle:case jle:return Cle(+e,+t);case Ale:return e.name==t.name&&e.message==t.message;case Dle:case Ile:return e==t+"";case Rle:var s=Sle;case Nle:var l=r&kle;if(s||(s=Ele),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=Tle,o.set(e,t);var u=$le(s(e),s(t),r,i,a,o);return o.delete(e),u;case Ple:if(ig)return ig.call(e)==ig.call(t)}return!1}var zle=Ble,Wle=By,Ule=ir;function Hle(e,t,n){var r=t(e);return Ule(e)?r:Wle(r,n(e))}var B3=Hle;function Vle(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var z3=Vle;function qle(){return[]}var W3=qle,Yle=z3,Gle=W3,Kle=Object.prototype,Zle=Kle.propertyIsEnumerable,W_=Object.getOwnPropertySymbols,Xle=W_?function(e){return e==null?[]:(e=Object(e),Yle(W_(e),function(t){return Zle.call(e,t)}))}:Gle,Wy=Xle,Qle=aO,Jle=Qle(Object.keys,Object),ece=Jle,tce=Jb,nce=ece,rce=Object.prototype,ice=rce.hasOwnProperty;function ace(e){if(!tce(e))return nce(e);var t=[];for(var n in Object(e))ice.call(e,n)&&n!="constructor"&&t.push(n);return t}var oce=ace,sce=dO,lce=oce,cce=Js;function uce(e){return cce(e)?sce(e):lce(e)}var Su=uce,dce=B3,fce=Wy,hce=Su;function pce(e){return dce(e,hce,fce)}var U3=pce,U_=U3,mce=1,gce=Object.prototype,vce=gce.hasOwnProperty;function bce(e,t,n,r,i,a){var o=n&mce,s=U_(e),l=s.length,c=U_(t),u=c.length;if(l!=u&&!o)return!1;for(var d=l;d--;){var f=s[d];if(!(o?f in t:vce.call(t,f)))return!1}var p=a.get(e),g=a.get(t);if(p&&g)return p==t&&g==e;var m=!0;a.set(e,t),a.set(t,e);for(var v=o;++d<l;){f=s[d];var x=e[f],_=t[f];if(r)var w=o?r(_,x,f,t,e,a):r(x,_,f,e,t,a);if(!(w===void 0?x===_||i(x,_,n,r,a):w)){m=!1;break}v||(v=f=="constructor")}if(m&&!v){var C=e.constructor,y=t.constructor;C!=y&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof y=="function"&&y instanceof y)&&(m=!1)}return a.delete(e),a.delete(t),m}var yce=bce,xce=_o,wce=li,_ce=xce(wce,"DataView"),Cce=_ce,$ce=_o,Sce=li,Ece=$ce(Sce,"Promise"),kce=Ece,Tce=_o,Oce=li,Mce=Tce(Oce,"Set"),H3=Mce,Ace=_o,Rce=li,jce=Ace(Rce,"WeakMap"),Dce=jce,jv=Cce,Dv=Gb,Nv=kce,Iv=H3,Pv=Dce,V3=zi,al=XT,H_="[object Map]",Nce="[object Object]",V_="[object Promise]",q_="[object Set]",Y_="[object WeakMap]",G_="[object DataView]",Ice=al(jv),Pce=al(Dv),Lce=al(Nv),Fce=al(Iv),Bce=al(Pv),za=V3;(jv&&za(new jv(new ArrayBuffer(1)))!=G_||Dv&&za(new Dv)!=H_||Nv&&za(Nv.resolve())!=V_||Iv&&za(new Iv)!=q_||Pv&&za(new Pv)!=Y_)&&(za=function(e){var t=V3(e),n=t==Nce?e.constructor:void 0,r=n?al(n):"";if(r)switch(r){case Ice:return G_;case Pce:return H_;case Lce:return V_;case Fce:return q_;case Bce:return Y_}return t});var jp=za,ag=zh,zce=F3,Wce=zle,Uce=yce,K_=jp,Z_=ir,X_=Uh,Hce=ry,Vce=1,Q_="[object Arguments]",J_="[object Array]",fd="[object Object]",qce=Object.prototype,eC=qce.hasOwnProperty;function Yce(e,t,n,r,i,a){var o=Z_(e),s=Z_(t),l=o?J_:K_(e),c=s?J_:K_(t);l=l==Q_?fd:l,c=c==Q_?fd:c;var u=l==fd,d=c==fd,f=l==c;if(f&&X_(e)){if(!X_(t))return!1;o=!0,u=!1}if(f&&!u)return a||(a=new ag),o||Hce(e)?zce(e,t,n,r,i,a):Wce(e,t,l,n,r,i,a);if(!(n&Vce)){var p=u&&eC.call(e,"__wrapped__"),g=d&&eC.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,v=g?t.value():t;return a||(a=new ag),i(m,v,n,r,a)}}return f?(a||(a=new ag),Uce(e,t,n,r,i,a)):!1}var Gce=Yce,Kce=Gce,tC=Er;function q3(e,t,n,r,i){return e===t?!0:e==null||t==null||!tC(e)&&!tC(t)?e!==e&&t!==t:Kce(e,t,n,r,q3,i)}var Uy=q3,Zce=Uy;function Xce(e,t){return Zce(e,t)}var Qce=Xce;const Jce=on(Qce);var Y3=h.createContext(),eue=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,a=i===void 0?"default":i,o=h.useMemo(function(){var s=Tne(a)?jT[a]:a;return{animate:r,config:s}},[r,a]);return b.jsx(Y3.Provider,{value:o,children:t})},Vn=function(){return h.useContext(Y3)},tue=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?h.cloneElement(r,{},t):t},nue={position:"relative"},To=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,a=e.isInteractive,o=a===void 0||a,s=e.animate,l=e.motionConfig,c=h.useRef(null);return b.jsx(hne,{theme:n,children:b.jsx(eue,{animate:s,config:l,children:b.jsx(wne,{container:c,children:b.jsxs(tue,{condition:i,wrapper:b.jsx("div",{style:nue,ref:c}),children:[t,o&&b.jsx(xne,{})]})})})})},rue=function(e,t){return e.width===t.width&&e.height===t.height},iue=function(e){var t=e.children,n=e.width,r=e.height,i=e.onResize,a=e.debounceResize,o=Tb({width:n,height:r},a,{equalityFn:rue})[0];return h.useEffect(function(){i==null||i(o)},[o,i]),b.jsx(b.Fragment,{children:t(o)})},Oo=function(e){var t=e.children,n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=a===void 0?0:a;return b.jsx(Mne,{defaultWidth:n,defaultHeight:r,children:function(s){var l=s.width,c=s.height;return b.jsx(iue,{width:l,height:c,onResize:i,debounceResize:o,children:t})}})};function nC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function aue(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(i,a){if(i){if(typeof i=="string")return nC(i,a);var o={}.toString.call(i).slice(8,-1);return o==="Object"&&i.constructor&&(o=i.constructor.name),o==="Map"||o==="Set"?Array.from(i):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?nC(i,a):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
279
|
+
`},Uz={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Hz(e){let{announcements:t=Uz,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Wz}=e;const{announce:a,announcement:o}=Fz(),s=mu("DndLiveRegion"),[l,c]=h.useState(!1);if(h.useEffect(()=>{c(!0)},[]),Bz(h.useMemo(()=>({onDragStart(d){let{active:f}=d;a(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:p}=d;t.onDragMove&&a(t.onDragMove({active:f,over:p}))},onDragOver(d){let{active:f,over:p}=d;a(t.onDragOver({active:f,over:p}))},onDragEnd(d){let{active:f,over:p}=d;a(t.onDragEnd({active:f,over:p}))},onDragCancel(d){let{active:f,over:p}=d;a(t.onDragCancel({active:f,over:p}))}}),[a,t])),!l)return null;const u=h.createElement(h.Fragment,null,h.createElement(Pz,{id:r,value:i.draggable}),h.createElement(Lz,{id:s,announcement:o}));return n?hn.createPortal(u,n):u}var gn;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(gn||(gn={}));function lf(){}function Em(e,t){return h.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Vz(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Nr=Object.freeze({x:0,y:0});function qz(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Yz(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Gz(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Kz(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function ww(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const Zz=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=ww(t,t.left,t.top),a=[];for(const o of r){const{id:s}=o,l=n.get(s);if(l){const c=qz(ww(l),i);a.push({id:s,data:{droppableContainer:o,value:c}})}}return a.sort(Yz)};function Xz(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){const l=t.width*t.height,c=e.width*e.height,u=o*s,d=u/(l+c-u);return Number(d.toFixed(4))}return 0}const Qz=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const a of r){const{id:o}=a,s=n.get(o);if(s){const l=Xz(s,t);l>0&&i.push({id:o,data:{droppableContainer:a,value:l}})}}return i.sort(Gz)};function Jz(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function pk(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Nr}function eW(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((a,o)=>({...a,top:a.top+e*o.y,bottom:a.bottom+e*o.y,left:a.left+e*o.x,right:a.right+e*o.x}),{...t})}}const tW=eW(1);function nW(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function rW(e,t,n){const r=nW(t);if(!r)return e;const{scaleX:i,scaleY:a,x:o,y:s}=r,l=e.left-o-(1-i)*parseFloat(n),c=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}const iW={ignoreTransform:!1};function qs(e,t){t===void 0&&(t=iW);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=rr(e).getComputedStyle(e);c&&(n=rW(n,c,u))}const{top:r,left:i,width:a,height:o,bottom:s,right:l}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:l}}function _w(e){return qs(e,{ignoreTransform:!0})}function aW(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function oW(e,t){return t===void 0&&(t=rr(e).getComputedStyle(e)),t.position==="fixed"}function sW(e,t){t===void 0&&(t=rr(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const i=t[r];return typeof i=="string"?n.test(i):!1})}function fb(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(cb(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!hu(i)||dk(i)||n.includes(i))return n;const a=rr(e).getComputedStyle(i);return i!==e&&sW(i,a)&&n.push(i),oW(i,a)?n:r(i.parentNode)}return e?r(e):n}function mk(e){const[t]=fb(e,1);return t??null}function km(e){return!wh||!e?null:Hs(e)?e:lb(e)?cb(e)||e===Vs(e).scrollingElement?window:hu(e)?e:null:null}function gk(e){return Hs(e)?e.scrollX:e.scrollLeft}function vk(e){return Hs(e)?e.scrollY:e.scrollTop}function ev(e){return{x:gk(e),y:vk(e)}}var _n;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(_n||(_n={}));function bk(e){return!wh||!e?!1:e===document.scrollingElement}function yk(e){const t={x:0,y:0},n=bk(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,o=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:i,isLeft:a,isBottom:o,isRight:s,maxScroll:r,minScroll:t}}const lW={x:.2,y:.2};function cW(e,t,n,r,i){let{top:a,left:o,right:s,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=lW);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=yk(e),p={x:0,y:0},g={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!c&&a<=t.top+m.height?(p.y=_n.Backward,g.y=r*Math.abs((t.top+m.height-a)/m.height)):!u&&l>=t.bottom-m.height&&(p.y=_n.Forward,g.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!f&&s>=t.right-m.width?(p.x=_n.Forward,g.x=r*Math.abs((t.right-m.width-s)/m.width)):!d&&o<=t.left+m.width&&(p.x=_n.Backward,g.x=r*Math.abs((t.left+m.width-o)/m.width)),{direction:p,speed:g}}function uW(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:o}=window;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function xk(e){return e.reduce((t,n)=>ss(t,ev(n)),Nr)}function dW(e){return e.reduce((t,n)=>t+gk(n),0)}function fW(e){return e.reduce((t,n)=>t+vk(n),0)}function hW(e,t){if(t===void 0&&(t=qs),!e)return;const{top:n,left:r,bottom:i,right:a}=t(e);mk(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const pW=[["x",["left","right"],dW],["y",["top","bottom"],fW]];class hb{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=fb(n),i=xk(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,o,s]of pW)for(const l of o)Object.defineProperty(this,l,{get:()=>{const c=s(r),u=i[a]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}let Yl=class{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}};function mW(e){const{EventTarget:t}=rr(e);return e instanceof t?e:Vs(e)}function Tm(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var hr;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(hr||(hr={}));function Cw(e){e.preventDefault()}function gW(e){e.stopPropagation()}var Ot;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ot||(Ot={}));const wk={start:[Ot.Space,Ot.Enter],cancel:[Ot.Esc],end:[Ot.Space,Ot.Enter,Ot.Tab]},vW=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ot.Right:return{...n,x:n.x+25};case Ot.Left:return{...n,x:n.x-25};case Ot.Down:return{...n,y:n.y+25};case Ot.Up:return{...n,y:n.y-25}}};let pb=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Yl(Vs(n)),this.windowListeners=new Yl(rr(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(hr.Resize,this.handleCancel),this.windowListeners.add(hr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(hr.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&hW(r),n(Nr)}handleKeyDown(t){if(db(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:a=wk,coordinateGetter:o=vW,scrollBehavior:s="smooth"}=i,{code:l}=t;if(a.end.includes(l)){this.handleEnd(t);return}if(a.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:Nr;this.referenceCoordinates||(this.referenceCoordinates=u);const d=o(t,{active:n,context:r.current,currentCoordinates:u});if(d){const f=sf(d,u),p={x:0,y:0},{scrollableAncestors:g}=r.current;for(const m of g){const v=t.code,{isTop:x,isRight:_,isLeft:w,isBottom:C,maxScroll:y,minScroll:$}=yk(m),E=uW(m),M={x:Math.min(v===Ot.Right?E.right-E.width/2:E.right,Math.max(v===Ot.Right?E.left:E.left+E.width/2,d.x)),y:Math.min(v===Ot.Down?E.bottom-E.height/2:E.bottom,Math.max(v===Ot.Down?E.top:E.top+E.height/2,d.y))},k=v===Ot.Right&&!_||v===Ot.Left&&!w,R=v===Ot.Down&&!C||v===Ot.Up&&!x;if(k&&M.x!==d.x){const S=m.scrollLeft+f.x,T=v===Ot.Right&&S<=y.x||v===Ot.Left&&S>=$.x;if(T&&!f.y){m.scrollTo({left:S,behavior:s});return}T?p.x=m.scrollLeft-S:p.x=v===Ot.Right?m.scrollLeft-y.x:m.scrollLeft-$.x,p.x&&m.scrollBy({left:-p.x,behavior:s});break}else if(R&&M.y!==d.y){const S=m.scrollTop+f.y,T=v===Ot.Down&&S<=y.y||v===Ot.Up&&S>=$.y;if(T&&!f.x){m.scrollTo({top:S,behavior:s});return}T?p.y=m.scrollTop-S:p.y=v===Ot.Down?m.scrollTop-y.y:m.scrollTop-$.y,p.y&&m.scrollBy({top:-p.y,behavior:s});break}}this.handleMove(t,ss(sf(d,this.referenceCoordinates),p))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};pb.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=wk,onActivation:i}=t,{active:a}=n;const{code:o}=e.nativeEvent;if(r.start.includes(o)){const s=a.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function $w(e){return!!(e&&"distance"in e)}function Sw(e){return!!(e&&"delay"in e)}class mb{constructor(t,n,r){var i;r===void 0&&(r=mW(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:a}=t,{target:o}=a;this.props=t,this.events=n,this.document=Vs(o),this.documentListeners=new Yl(this.document),this.listeners=new Yl(r),this.windowListeners=new Yl(rr(o)),this.initialCoordinates=(i=Jg(a))!=null?i:Nr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(hr.Resize,this.handleCancel),this.windowListeners.add(hr.DragStart,Cw),this.windowListeners.add(hr.VisibilityChange,this.handleCancel),this.windowListeners.add(hr.ContextMenu,Cw),this.documentListeners.add(hr.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Sw(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if($w(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(hr.Click,gW,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(hr.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:a}=this,{onMove:o,options:{activationConstraint:s}}=a;if(!i)return;const l=(n=Jg(t))!=null?n:Nr,c=sf(i,l);if(!r&&s){if($w(s)){if(s.tolerance!=null&&Tm(c,s.tolerance))return this.handleCancel();if(Tm(c,s.distance))return this.handleStart()}if(Sw(s)&&Tm(c,s.tolerance))return this.handleCancel();this.handlePending(s,c);return}t.cancelable&&t.preventDefault(),o(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Ot.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const bW={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};let _k=class extends mb{constructor(t){const{event:n}=t,r=Vs(n.target);super(t,bW,r)}};_k.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const yW={move:{name:"mousemove"},end:{name:"mouseup"}};var tv;(function(e){e[e.RightClick=2]="RightClick"})(tv||(tv={}));let Ck=class extends mb{constructor(t){super(t,yW,Vs(t.event.target))}};Ck.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===tv.RightClick?!1:(r==null||r({event:n}),!0)}}];const Om={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};let $k=class extends mb{constructor(t){super(t,Om)}static setup(){return window.addEventListener(Om.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Om.move.name,t)};function t(){}}};$k.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var Gl;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Gl||(Gl={}));var cf;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(cf||(cf={}));function xW(e){let{acceleration:t,activator:n=Gl.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=cf.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:f}=e;const p=_W({delta:d,disabled:!a}),[g,m]=Rz(),v=h.useRef({x:0,y:0}),x=h.useRef({x:0,y:0}),_=h.useMemo(()=>{switch(n){case Gl.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Gl.DraggableRect:return i}},[n,i,l]),w=h.useRef(null),C=h.useCallback(()=>{const $=w.current;if(!$)return;const E=v.current.x*x.current.x,M=v.current.y*x.current.y;$.scrollBy(E,M)},[]),y=h.useMemo(()=>s===cf.TreeOrder?[...c].reverse():c,[s,c]);h.useEffect(()=>{if(!a||!c.length||!_){m();return}for(const $ of y){if((r==null?void 0:r($))===!1)continue;const E=c.indexOf($),M=u[E];if(!M)continue;const{direction:k,speed:R}=cW($,M,_,t,f);for(const S of["x","y"])p[S][k[S]]||(R[S]=0,k[S]=0);if(R.x>0||R.y>0){m(),w.current=$,g(C,o),v.current=R,x.current=k;return}}v.current={x:0,y:0},x.current={x:0,y:0},m()},[t,C,r,m,a,o,JSON.stringify(_),JSON.stringify(p),g,c,y,u,JSON.stringify(f)])}const wW={x:{[_n.Backward]:!1,[_n.Forward]:!1},y:{[_n.Backward]:!1,[_n.Forward]:!1}};function _W(e){let{delta:t,disabled:n}=e;const r=Qg(t);return pu(i=>{if(n||!r||!i)return wW;const a={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[_n.Backward]:i.x[_n.Backward]||a.x===-1,[_n.Forward]:i.x[_n.Forward]||a.x===1},y:{[_n.Backward]:i.y[_n.Backward]||a.y===-1,[_n.Forward]:i.y[_n.Forward]||a.y===1}}},[n,t,r])}function CW(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return pu(i=>{var a;return t==null?null:(a=r??i)!=null?a:null},[r,t])}function $W(e,t){return h.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,a=i.activators.map(o=>({eventName:o.eventName,handler:t(o.handler,r)}));return[...n,...a]},[]),[e,t])}var Sc;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Sc||(Sc={}));var nv;(function(e){e.Optimized="optimized"})(nv||(nv={}));const Ew=new Map;function SW(e,t){let{dragging:n,dependencies:r,config:i}=t;const[a,o]=h.useState(null),{frequency:s,measure:l,strategy:c}=i,u=h.useRef(e),d=v(),f=Cc(d),p=h.useCallback(function(x){x===void 0&&(x=[]),!f.current&&o(_=>_===null?x:_.concat(x.filter(w=>!_.includes(w))))},[f]),g=h.useRef(null),m=pu(x=>{if(d&&!n)return Ew;if(!x||x===Ew||u.current!==e||a!=null){const _=new Map;for(let w of e){if(!w)continue;if(a&&a.length>0&&!a.includes(w.id)&&w.rect.current){_.set(w.id,w.rect.current);continue}const C=w.node.current,y=C?new hb(l(C),C):null;w.rect.current=y,y&&_.set(w.id,y)}return _}return x},[e,a,n,d,l]);return h.useEffect(()=>{u.current=e},[e]),h.useEffect(()=>{d||p()},[n,d]),h.useEffect(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),h.useEffect(()=>{d||typeof s!="number"||g.current!==null||(g.current=setTimeout(()=>{p(),g.current=null},s))},[s,d,p,...r]),{droppableRects:m,measureDroppableContainers:p,measuringScheduled:a!=null};function v(){switch(c){case Sc.Always:return!1;case Sc.BeforeDragging:return n;default:return!n}}}function Sk(e,t){return pu(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function EW(e,t){return Sk(e,t)}function kW(e){let{callback:t,disabled:n}=e;const r=ub(t),i=h.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(r)},[r,n]);return h.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function _h(e){let{callback:t,disabled:n}=e;const r=ub(t),i=h.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(r)},[n]);return h.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function TW(e){return new hb(qs(e),e)}function kw(e,t,n){t===void 0&&(t=TW);const[r,i]=h.useState(null);function a(){i(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u})}const o=kW({callback(l){if(e)for(const c of l){const{type:u,target:d}=c;if(u==="childList"&&d instanceof HTMLElement&&d.contains(e)){a();break}}}}),s=_h({callback:a});return ti(()=>{a(),e?(s==null||s.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),o==null||o.disconnect())},[e]),r}function OW(e){const t=Sk(e);return pk(e,t)}const Tw=[];function MW(e){const t=h.useRef(e),n=pu(r=>e?r&&r!==Tw&&e&&t.current&&e.parentNode===t.current.parentNode?r:fb(e):Tw,[e]);return h.useEffect(()=>{t.current=e},[e]),n}function AW(e){const[t,n]=h.useState(null),r=h.useRef(e),i=h.useCallback(a=>{const o=km(a.target);o&&n(s=>s?(s.set(o,ev(o)),new Map(s)):null)},[]);return h.useEffect(()=>{const a=r.current;if(e!==a){o(a);const s=e.map(l=>{const c=km(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,ev(c)]):null}).filter(l=>l!=null);n(s.length?new Map(s):null),r.current=e}return()=>{o(e),o(a)};function o(s){s.forEach(l=>{const c=km(l);c==null||c.removeEventListener("scroll",i)})}},[i,e]),h.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,o)=>ss(a,o),Nr):xk(e):Nr,[e,t])}function Ow(e,t){t===void 0&&(t=[]);const n=h.useRef(null);return h.useEffect(()=>{n.current=null},t),h.useEffect(()=>{const r=e!==Nr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?sf(e,n.current):Nr}function RW(e){h.useEffect(()=>{if(!wh)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function jW(e,t){return h.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:a}=r;return n[i]=o=>{a(o,t)},n},{}),[e,t])}function Ek(e){return h.useMemo(()=>e?aW(e):null,[e])}const Mw=[];function DW(e,t){t===void 0&&(t=qs);const[n]=e,r=Ek(n?rr(n):null),[i,a]=h.useState(Mw);function o(){a(()=>e.length?e.map(l=>bk(l)?r:new hb(t(l),l)):Mw)}const s=_h({callback:o});return ti(()=>{s==null||s.disconnect(),o(),e.forEach(l=>s==null?void 0:s.observe(l))},[e]),i}function NW(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return hu(t)?t:e}function IW(e){let{measure:t}=e;const[n,r]=h.useState(null),i=h.useCallback(c=>{for(const{target:u}of c)if(hu(u)){r(d=>{const f=t(u);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),a=_h({callback:i}),o=h.useCallback(c=>{const u=NW(c);a==null||a.disconnect(),u&&(a==null||a.observe(u)),r(u?t(u):null)},[t,a]),[s,l]=of(o);return h.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const PW=[{sensor:_k,options:{}},{sensor:pb,options:{}}],LW={current:{}},$d={draggable:{measure:_w},droppable:{measure:_w,strategy:Sc.WhileDragging,frequency:nv.Optimized},dragOverlay:{measure:qs}};let Kl=class extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}};const FW={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Kl,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:lf},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:$d,measureDroppableContainers:lf,windowRect:null,measuringScheduled:!1},BW={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:lf,draggableNodes:new Map,over:null,measureDroppableContainers:lf},Ch=h.createContext(BW),kk=h.createContext(FW);function zW(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Kl}}}function WW(e,t){switch(t.type){case gn.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case gn.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case gn.DragEnd:case gn.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case gn.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Kl(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case gn.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const o=new Kl(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case gn.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Kl(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function UW(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=h.useContext(Ch),a=Qg(r),o=Qg(n==null?void 0:n.id);return h.useEffect(()=>{if(!t&&!r&&a&&o!=null){if(!db(a)||document.activeElement===a.target)return;const s=i.get(o);if(!s)return;const{activatorNode:l,node:c}=s;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const d=Nz(u);if(d){d.focus();break}}})}},[r,t,i,o,a]),null}function HW(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,a)=>a({transform:i,...r}),n):n}function VW(e){return h.useMemo(()=>({draggable:{...$d.draggable,...e==null?void 0:e.draggable},droppable:{...$d.droppable,...e==null?void 0:e.droppable},dragOverlay:{...$d.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function qW(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const a=h.useRef(!1),{x:o,y:s}=typeof i=="boolean"?{x:i,y:i}:i;ti(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;const l=t==null?void 0:t.node.current;if(!l||l.isConnected===!1)return;const c=n(l),u=pk(c,r);if(o||(u.x=0),s||(u.y=0),a.current=!0,Math.abs(u.x)>0||Math.abs(u.y)>0){const d=mk(l);d&&d.scrollBy({top:u.y,left:u.x})}},[t,o,s,r,n])}const Tk=h.createContext({...Nr,scaleX:1,scaleY:1});var Qi;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Qi||(Qi={}));const YW=h.memo(function(e){var t,n,r,i;let{id:a,accessibility:o,autoScroll:s=!0,children:l,sensors:c=PW,collisionDetection:u=Qz,measuring:d,modifiers:f,...p}=e;const g=h.useReducer(WW,void 0,zW),[m,v]=g,[x,_]=zz(),[w,C]=h.useState(Qi.Uninitialized),y=w===Qi.Initialized,{draggable:{active:$,nodes:E,translate:M},droppable:{containers:k}}=m,R=$!=null?E.get($):null,S=h.useRef({initial:null,translated:null}),T=h.useMemo(()=>{var Ge;return $!=null?{id:$,data:(Ge=R==null?void 0:R.data)!=null?Ge:LW,rect:S}:null},[$,R]),j=h.useRef(null),[D,N]=h.useState(null),[O,P]=h.useState(null),W=Cc(p,Object.values(p)),U=mu("DndDescribedBy",a),I=h.useMemo(()=>k.getEnabled(),[k]),z=VW(d),{droppableRects:Y,measureDroppableContainers:X,measuringScheduled:K}=SW(I,{dragging:y,dependencies:[M.x,M.y],config:z.droppable}),Z=CW(E,$),ee=h.useMemo(()=>O?Jg(O):null,[O]),J=Mt(),B=EW(Z,z.draggable.measure);qW({activeNode:$!=null?E.get($):null,config:J.layoutShiftCompensation,initialRect:B,measure:z.draggable.measure});const L=kw(Z,z.draggable.measure,B),F=kw(Z?Z.parentElement:null),H=h.useRef({activatorEvent:null,active:null,activeNode:Z,collisionRect:null,collisions:null,droppableRects:Y,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:k,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),A=k.getNodeFor((t=H.current.over)==null?void 0:t.id),Q=IW({measure:z.dragOverlay.measure}),q=(n=Q.nodeRef.current)!=null?n:Z,G=y?(r=Q.rect)!=null?r:L:null,oe=!!(Q.nodeRef.current&&Q.rect),re=OW(oe?null:L),ne=Ek(q?rr(q):null),se=MW(y?A??Z:null),fe=DW(se),_e=HW(f,{transform:{x:M.x-re.x,y:M.y-re.y,scaleX:1,scaleY:1},activatorEvent:O,active:T,activeNodeRect:L,containerNodeRect:F,draggingNodeRect:G,over:H.current.over,overlayNodeRect:Q.rect,scrollableAncestors:se,scrollableAncestorRects:fe,windowRect:ne}),xe=ee?ss(ee,M):null,ye=AW(se),de=Ow(ye),be=Ow(ye,[L]),le=ss(_e,de),Ee=G?tW(G,_e):null,Le=T&&Ee?u({active:T,collisionRect:Ee,droppableRects:Y,droppableContainers:I,pointerCoordinates:xe}):null,Ft=Kz(Le,"id"),[We,mt]=h.useState(null),wt=oe?_e:ss(_e,be),tn=Jz(wt,(i=We==null?void 0:We.rect)!=null?i:null,L),ke=h.useRef(null),Re=h.useCallback((Ge,De)=>{let{sensor:Be,options:Xe}=De;if(j.current==null)return;const Ne=E.get(j.current);if(!Ne)return;const Qe=Ge.nativeEvent,ft=new Be({active:j.current,activeNode:Ne,event:Qe,options:Xe,context:H,onAbort(je){if(!E.get(je))return;const{onDragAbort:Te}=W.current,Ue={id:je};Te==null||Te(Ue),x({type:"onDragAbort",event:Ue})},onPending(je,Te,Ue,bt){if(!E.get(je))return;const{onDragPending:Je}=W.current,ht={id:je,constraint:Te,initialCoordinates:Ue,offset:bt};Je==null||Je(ht),x({type:"onDragPending",event:ht})},onStart(je){const Te=j.current;if(Te==null)return;const Ue=E.get(Te);if(!Ue)return;const{onDragStart:bt}=W.current,Je={activatorEvent:Qe,active:{id:Te,data:Ue.data,rect:S}};hn.unstable_batchedUpdates(()=>{bt==null||bt(Je),C(Qi.Initializing),v({type:gn.DragStart,initialCoordinates:je,active:Te}),x({type:"onDragStart",event:Je}),N(ke.current),P(Qe)})},onMove(je){v({type:gn.DragMove,coordinates:je})},onEnd:tt(gn.DragEnd),onCancel:tt(gn.DragCancel)});ke.current=ft;function tt(je){return async function(){const{active:Te,collisions:Ue,over:bt,scrollAdjustedTranslate:Je}=H.current;let ht=null;if(Te&&Je){const{cancelDrop:en}=W.current;ht={activatorEvent:Qe,active:Te,collisions:Ue,delta:Je,over:bt},je===gn.DragEnd&&typeof en=="function"&&await Promise.resolve(en(ht))&&(je=gn.DragCancel)}j.current=null,hn.unstable_batchedUpdates(()=>{v({type:je}),C(Qi.Uninitialized),mt(null),N(null),P(null),ke.current=null;const en=je===gn.DragEnd?"onDragEnd":"onDragCancel";if(ht){const Bt=W.current[en];Bt==null||Bt(ht),x({type:en,event:ht})}})}}},[E]),gt=h.useCallback((Ge,De)=>(Be,Xe)=>{const Ne=Be.nativeEvent,Qe=E.get(Xe);if(j.current!==null||!Qe||Ne.dndKit||Ne.defaultPrevented)return;const ft={active:Qe};Ge(Be,De.options,ft)===!0&&(Ne.dndKit={capturedBy:De.sensor},j.current=Xe,Re(Be,De))},[E,Re]),Ve=$W(c,gt);RW(c),ti(()=>{L&&w===Qi.Initializing&&C(Qi.Initialized)},[L,w]),h.useEffect(()=>{const{onDragMove:Ge}=W.current,{active:De,activatorEvent:Be,collisions:Xe,over:Ne}=H.current;if(!De||!Be)return;const Qe={active:De,activatorEvent:Be,collisions:Xe,delta:{x:le.x,y:le.y},over:Ne};hn.unstable_batchedUpdates(()=>{Ge==null||Ge(Qe),x({type:"onDragMove",event:Qe})})},[le.x,le.y]),h.useEffect(()=>{const{active:Ge,activatorEvent:De,collisions:Be,droppableContainers:Xe,scrollAdjustedTranslate:Ne}=H.current;if(!Ge||j.current==null||!De||!Ne)return;const{onDragOver:Qe}=W.current,ft=Xe.get(Ft),tt=ft&&ft.rect.current?{id:ft.id,rect:ft.rect.current,data:ft.data,disabled:ft.disabled}:null,je={active:Ge,activatorEvent:De,collisions:Be,delta:{x:Ne.x,y:Ne.y},over:tt};hn.unstable_batchedUpdates(()=>{mt(tt),Qe==null||Qe(je),x({type:"onDragOver",event:je})})},[Ft]),ti(()=>{H.current={activatorEvent:O,active:T,activeNode:Z,collisionRect:Ee,collisions:Le,droppableRects:Y,draggableNodes:E,draggingNode:q,draggingNodeRect:G,droppableContainers:k,over:We,scrollableAncestors:se,scrollAdjustedTranslate:le},S.current={initial:G,translated:Ee}},[T,Z,Le,Ee,E,q,G,Y,k,We,se,le]),xW({...J,delta:M,draggingRect:Ee,pointerCoordinates:xe,scrollableAncestors:se,scrollableAncestorRects:fe});const vt=h.useMemo(()=>({active:T,activeNode:Z,activeNodeRect:L,activatorEvent:O,collisions:Le,containerNodeRect:F,dragOverlay:Q,draggableNodes:E,droppableContainers:k,droppableRects:Y,over:We,measureDroppableContainers:X,scrollableAncestors:se,scrollableAncestorRects:fe,measuringConfiguration:z,measuringScheduled:K,windowRect:ne}),[T,Z,L,O,Le,F,Q,E,k,Y,We,X,se,fe,z,K,ne]),at=h.useMemo(()=>({activatorEvent:O,activators:Ve,active:T,activeNodeRect:L,ariaDescribedById:{draggable:U},dispatch:v,draggableNodes:E,over:We,measureDroppableContainers:X}),[O,Ve,T,L,v,U,E,We,X]);return h.createElement(hk.Provider,{value:_},h.createElement(Ch.Provider,{value:at},h.createElement(kk.Provider,{value:vt},h.createElement(Tk.Provider,{value:tn},l)),h.createElement(UW,{disabled:(o==null?void 0:o.restoreFocus)===!1})),h.createElement(Hz,{...o,hiddenTextDescribedById:U}));function Mt(){const Ge=(D==null?void 0:D.autoScrollEnabled)===!1,De=typeof s=="object"?s.enabled===!1:s===!1,Be=y&&!Ge&&!De;return typeof s=="object"?{...s,enabled:Be}:{enabled:Be}}}),GW=h.createContext(null),Aw="button",KW="Draggable";function ZW(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const a=mu(KW),{activators:o,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:f}=h.useContext(Ch),{role:p=Aw,roleDescription:g="draggable",tabIndex:m=0}=i??{},v=(l==null?void 0:l.id)===t,x=h.useContext(v?Tk:GW),[_,w]=of(),[C,y]=of(),$=jW(o,t),E=Cc(n);ti(()=>(d.set(t,{id:t,key:a,node:_,activatorNode:C,data:E}),()=>{const k=d.get(t);k&&k.key===a&&d.delete(t)}),[d,t]);const M=h.useMemo(()=>({role:p,tabIndex:m,"aria-disabled":r,"aria-pressed":v&&p===Aw?!0:void 0,"aria-roledescription":g,"aria-describedby":u.draggable}),[r,p,m,v,g,u.draggable]);return{active:l,activatorEvent:s,activeNodeRect:c,attributes:M,isDragging:v,listeners:r?void 0:$,node:_,over:f,setNodeRef:w,setActivatorNodeRef:y,transform:x}}function XW(){return h.useContext(kk)}const QW="Droppable",JW={timeout:25};function eU(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const a=mu(QW),{active:o,dispatch:s,over:l,measureDroppableContainers:c}=h.useContext(Ch),u=h.useRef({disabled:n}),d=h.useRef(!1),f=h.useRef(null),p=h.useRef(null),{disabled:g,updateMeasurementsFor:m,timeout:v}={...JW,...i},x=Cc(m??r),_=h.useCallback(()=>{if(!d.current){d.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{c(Array.isArray(x.current)?x.current:[x.current]),p.current=null},v)},[v]),w=_h({callback:_,disabled:g||!o}),C=h.useCallback((M,k)=>{w&&(k&&(w.unobserve(k),d.current=!1),M&&w.observe(M))},[w]),[y,$]=of(C),E=Cc(t);return h.useEffect(()=>{!w||!y.current||(w.disconnect(),d.current=!1,w.observe(y.current))},[y,w]),h.useEffect(()=>(s({type:gn.RegisterDroppable,element:{id:r,key:a,disabled:n,node:y,rect:f,data:E}}),()=>s({type:gn.UnregisterDroppable,key:a,id:r})),[r]),h.useEffect(()=>{n!==u.current.disabled&&(s({type:gn.SetDroppableDisabled,id:r,key:a,disabled:n}),u.current.disabled=n)},[r,a,n,s]),{active:o,rect:f,isOver:(l==null?void 0:l.id)===r,node:y,over:l,setNodeRef:$}}function gb(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function tU(e,t){return e.reduce((n,r,i)=>{const a=t.get(r);return a&&(n[i]=a),n},Array(e.length))}function Xu(e){return e!==null&&e>=0}function nU(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function rU(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Qu={scaleX:1,scaleY:1},iU=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:i,overIndex:a,index:o}=e;const s=(t=n[i])!=null?t:r;if(!s)return null;const l=aU(n,o,i);if(o===i){const c=n[a];return c?{x:i<a?c.left+c.width-(s.left+s.width):c.left-s.left,y:0,...Qu}:null}return o>i&&o<=a?{x:-s.width-l,y:0,...Qu}:o<i&&o>=a?{x:s.width+l,y:0,...Qu}:{x:0,y:0,...Qu}};function aU(e,t,n){const r=e[t],i=e[t-1],a=e[t+1];return!r||!i&&!a?0:n<t?i?r.left-(i.left+i.width):a.left-(r.left+r.width):a?a.left-(r.left+r.width):r.left-(i.left+i.width)}const Ok=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const a=gb(t,r,n),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},Mk="Sortable",Ak=h.createContext({activeIndex:-1,containerId:Mk,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Ok,disabled:{draggable:!1,droppable:!1}});function oU(e){let{children:t,id:n,items:r,strategy:i=Ok,disabled:a=!1}=e;const{active:o,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=XW(),d=mu(Mk,n),f=s.rect!==null,p=h.useMemo(()=>r.map($=>typeof $=="object"&&"id"in $?$.id:$),[r]),g=o!=null,m=o?p.indexOf(o.id):-1,v=c?p.indexOf(c.id):-1,x=h.useRef(p),_=!nU(p,x.current),w=v!==-1&&m===-1||_,C=rU(a);ti(()=>{_&&g&&u(p)},[_,p,g,u]),h.useEffect(()=>{x.current=p},[p]);const y=h.useMemo(()=>({activeIndex:m,containerId:d,disabled:C,disableTransforms:w,items:p,overIndex:v,useDragOverlay:f,sortedRects:tU(p,l),strategy:i}),[m,d,C.draggable,C.droppable,w,p,v,l,f,i]);return h.createElement(Ak.Provider,{value:y},t)}const sU=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return gb(n,r,i).indexOf(t)},lU=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:l,transition:c}=e;return!c||!r||s!==a&&i===o?!1:n?!0:o!==i&&t===l},cU={duration:200,easing:"ease"},Rk="transform",uU=$c.Transition.toString({property:Rk,duration:0,easing:"linear"}),dU={roleDescription:"sortable"};function fU(e){let{disabled:t,index:n,node:r,rect:i}=e;const[a,o]=h.useState(null),s=h.useRef(n);return ti(()=>{if(!t&&n!==s.current&&r.current){const l=i.current;if(l){const c=qs(r.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&o(u)}}n!==s.current&&(s.current=n)},[t,n,r,i]),h.useEffect(()=>{a&&o(null)},[a]),a}function hU(e){let{animateLayoutChanges:t=lU,attributes:n,disabled:r,data:i,getNewIndex:a=sU,id:o,strategy:s,resizeObserverConfig:l,transition:c=cU}=e;const{items:u,containerId:d,activeIndex:f,disabled:p,disableTransforms:g,sortedRects:m,overIndex:v,useDragOverlay:x,strategy:_}=h.useContext(Ak),w=pU(r,p),C=u.indexOf(o),y=h.useMemo(()=>({sortable:{containerId:d,index:C,items:u},...i}),[d,i,C,u]),$=h.useMemo(()=>u.slice(u.indexOf(o)),[u,o]),{rect:E,node:M,isOver:k,setNodeRef:R}=eU({id:o,data:y,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:$,...l}}),{active:S,activatorEvent:T,activeNodeRect:j,attributes:D,setNodeRef:N,listeners:O,isDragging:P,over:W,setActivatorNodeRef:U,transform:I}=ZW({id:o,data:y,attributes:{...dU,...n},disabled:w.draggable}),z=Az(R,N),Y=!!S,X=Y&&!g&&Xu(f)&&Xu(v),K=!x&&P,Z=K&&X?I:null,ee=X?Z??(s??_)({rects:m,activeNodeRect:j,activeIndex:f,overIndex:v,index:C}):null,J=Xu(f)&&Xu(v)?a({id:o,items:u,activeIndex:f,overIndex:v}):C,B=S==null?void 0:S.id,L=h.useRef({activeId:B,items:u,newIndex:J,containerId:d}),F=u!==L.current.items,H=t({active:S,containerId:d,isDragging:P,isSorting:Y,id:o,index:C,items:u,newIndex:L.current.newIndex,previousItems:L.current.items,previousContainerId:L.current.containerId,transition:c,wasDragging:L.current.activeId!=null}),A=fU({disabled:!H,index:C,node:M,rect:E});return h.useEffect(()=>{Y&&L.current.newIndex!==J&&(L.current.newIndex=J),d!==L.current.containerId&&(L.current.containerId=d),u!==L.current.items&&(L.current.items=u)},[Y,J,d,u]),h.useEffect(()=>{if(B===L.current.activeId)return;if(B!=null&&L.current.activeId==null){L.current.activeId=B;return}const q=setTimeout(()=>{L.current.activeId=B},50);return()=>clearTimeout(q)},[B]),{active:S,activeIndex:f,attributes:D,data:y,rect:E,index:C,newIndex:J,items:u,isOver:k,isSorting:Y,isDragging:P,listeners:O,node:M,overIndex:v,over:W,setNodeRef:z,setActivatorNodeRef:U,setDroppableNodeRef:R,setDraggableNodeRef:N,transform:A??ee,transition:Q()};function Q(){if(A||F&&L.current.newIndex===C)return uU;if(!(K&&!db(T)||!c)&&(Y||H))return $c.Transition.toString({...c,property:Rk})}}function pU(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}Ot.Down,Ot.Right,Ot.Up,Ot.Left;const mU="_table-scroll-container_8x5tv_1",gU="_full-screen_8x5tv_8",vU="_table_8x5tv_1",bU="_thead_8x5tv_24",yU="_tbody_8x5tv_25",xU="_th_8x5tv_24",wU="_pinned_8x5tv_38",_U="_sorted_8x5tv_41",CU="_resizer_8x5tv_44",$U="_resizer-bar_8x5tv_58",SU="_reorder-handle_8x5tv_64",EU="_dragging_8x5tv_69",kU="_row-selection-info_8x5tv_73",TU="_tr_8x5tv_77",OU="_td_8x5tv_85",MU="_left_8x5tv_102",AU="_center_8x5tv_106",RU="_right_8x5tv_110",jU="_first-right_8x5tv_119",DU="_grouped_8x5tv_127",NU="_expanded_8x5tv_131",IU="_selected-cell_8x5tv_135",PU="_sm_8x5tv_139",LU="_lg_8x5tv_144",FU="_clickable_8x5tv_149",BU="_cell-selected-row_8x5tv_152",zU="_cell-selection-disabled_8x5tv_160",WU="_own-click_8x5tv_179",UU="_expander-button_8x5tv_185",HU="_empty-table-alert_8x5tv_190",VU="_remove-filters-button-wrapper_8x5tv_198",qU="_remove-filters-button_8x5tv_198",YU="_bottom-bar_8x5tv_228",GU="_left-items_8x5tv_244",KU="_pagination_8x5tv_250",ZU="_page-info-text_8x5tv_256",XU="_right-items_8x5tv_262",QU="_sizing-toggle_8x5tv_268",JU="_sizing-menu_8x5tv_283",eH="_sizing-menu-item_8x5tv_287",He={tableScrollContainer:mU,fullScreen:gU,table:vU,thead:bU,tbody:yU,th:xU,pinned:wU,sorted:_U,resizer:CU,resizerBar:$U,reorderHandle:SU,dragging:EU,rowSelectionInfo:kU,tr:TU,td:OU,left:MU,center:AU,right:RU,firstRight:jU,grouped:DU,expanded:NU,selectedCell:IU,sm:PU,lg:LU,clickable:FU,cellSelectedRow:BU,cellSelectionDisabled:zU,ownClick:WU,expanderButton:UU,emptyTableAlert:HU,removeFiltersButtonWrapper:VU,removeFiltersButton:qU,bottomBar:YU,leftItems:GU,pagination:KU,pageInfoText:ZU,rightItems:XU,sizingToggle:QU,sizingMenu:JU,sizingMenuItem:eH},tH="_column-menu_1r3rf_1",nH="_column-menu-item_1r3rf_5",Ju={columnMenu:tH,columnMenuItem:nH},rH=({header:e,table:t,className:n,IconComponent:r,texts:i,columnMenuPos:a,onColumnMenu:o,dragEnabled:s,style:l})=>{var M,k;const{attributes:c,listeners:u,setNodeRef:d,transform:f,isDragging:p}=hU({id:e.id,disabled:!s}),g={...l??{},flex:`${e.column.getSize()} 1 0`,minWidth:e.column.getSize(),...s?{transform:$c.Translate.toString(f)}:{}},m=R=>R.column.getCanSort()?"button":void 0,v=R=>{const S=R.column.getIsSorted(),T=R.column.getIsGrouped();return me("th",He.th,{sorted:S,[He.sorted]:S},{grouped:T,[He.grouped]:T})},x=R=>{const S=R.column.getCanSort();return me("d-flex flex-row align-items-center justify-content-between",{"cursor-pointer":S})},_=R=>{R.preventDefault(),o({id:e.id,x:R.clientX,y:R.clientY})},w=()=>o(null),C=(a==null?void 0:a.id)===e.id,y=e.column.getIsPinned(),$=e.column.getIsGrouped(),E=(k=(M=e.column.columnDef)==null?void 0:M.meta)==null?void 0:k.alwaysPinned;return b.jsxs("div",{className:me(n,v(e.getContext())),ref:d,style:g,onContextMenu:_,children:[b.jsx(Mn,{autoClose:!0,show:C,onToggle:R=>!R&&w(),children:hn.createPortal(b.jsxs(Mn.Menu,{show:!0,className:me("shadow-lg column-menu",Ju.columnMenu),style:{position:"fixed",top:C?a.y??0:0,left:C?a.x??0:0,zIndex:9999,display:C?"block":"none"},onClick:w,children:[y!=="right"&&e.column.getCanPin()&&!E?b.jsx(Mn.Item,{className:me(Ju.columnMenuItem,{"text-danger":y}),onClick:()=>e.column.pin(y==="left"?!1:"left"),children:y==="left"?i.columnUnpin:i.columnPinLeft}):null,y!=="left"&&e.column.getCanPin()&&!E?b.jsx(Mn.Item,{className:me(Ju.columnMenuItem,{"text-danger":y}),onClick:()=>e.column.pin(y==="right"?!1:"right"),children:y==="right"?i.columnUnpin:i.columnPinRight}):null,e.column.getCanGroup()?b.jsx(Mn.Item,{className:me(Ju.columnMenuItem,{"text-danger":$}),onClick:e.column.getToggleGroupingHandler(),children:$?i.columnUngroup:i.columnGroup}):null]}),document.body)}),e.isPlaceholder?null:b.jsxs("div",{children:[b.jsxs("div",{className:x(e.getContext()),role:m(e.getContext()),onClick:e.column.getToggleSortingHandler(),children:[b.jsxs("div",{className:"d-flex flex-row align-items-center gap-1",children:[s?b.jsx("div",{...u,...c,className:me("reorder-handle",He.reorderHandle,{dragging:p,[He.dragging]:p}),children:b.jsx(r,{icon:"drag-handle"})}):null,uk(e.column.columnDef.header,e.getContext())]}),e.column.getCanSort()&&e.column.getIsSorted()?b.jsx(r,{icon:`sort-${e.column.getIsSorted()||"asc"}`}):null]}),e.column.getCanFilter()?b.jsx(Ez,{column:e.column,IconComponent:r,texts:i}):e.column.id==="select-col"?b.jsx("div",{className:me("row-selection-info",He.rowSelectionInfo),children:`[${Object.values(t.getState().rowSelection).filter(Boolean).length}]`}):null]}),e.column.getCanResize()?b.jsx("div",{onDoubleClick:()=>e.column.resetSize(),onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),className:me("resizer",He.resizer,e.column.getIsResizing()?"isResizing":"",e.column.getIsResizing()?He.isResizing:""),style:{transform:t.options.columnResizeMode==="onEnd"&&e.column.getIsResizing()?`translateX(${(t.options.columnResizeDirection==="rtl"?-1:1)*(t.getState().columnSizingInfo.deltaOffset??0)}px)`:""},children:b.jsx("div",{className:me("resizer-bar",He.resizerBar)})}):null]})},iH="_icon-button_1nuxt_1",aH="_sm_1nuxt_34",oH="_lg_1nuxt_47",ed={"icon-button":"_icon-button_1nuxt_1",iconButton:iH,sm:aH,lg:oH},gi=({onClick:e,color:t="primary",disabled:n,children:r,size:i,className:a,...o})=>b.jsx("button",{"aria-disabled":n,className:me(a,"icon-button",ed.iconButton,ed[t],{"text-primary":!n&&t==="primary","text-secondary":n||t==="secondary","text-danger":!n&&t==="danger","text-success":!n&&t==="success"},{[ed.sm]:i==="sm",[ed.lg]:i==="lg"}),disabled:n,type:"button",onClick:e,...o,children:r}),sH=e=>{var n,r,i,a,o;const t=(n=e==null?void 0:e.columnDef)==null?void 0:n.header;if(!t)return e==null?void 0:e.id;if(typeof t=="string")return t;if(typeof t=="function"){const s=t({column:e});return typeof s=="string"?s:h.isValidElement(s)&&typeof((r=s.props)==null?void 0:r.children)=="string"?(i=s.props)==null?void 0:i.children:e==null?void 0:e.id}return h.isValidElement(t)&&typeof((a=t==null?void 0:t.props)==null?void 0:a.children)=="string"?(o=t==null?void 0:t.props)==null?void 0:o.children:e==null?void 0:e.id},Rw=({onClick:e,variant:t="primary",disabled:n,children:r,size:i,...a})=>b.jsx(Q0,{disabled:n,size:i,variant:t,onClick:e,...a,children:r});function rv(e,t){return rv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},rv(e,t)}function lH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,rv(e,t)}function cH(e){var t=lu(e);return t&&t.defaultView||window}function uH(e,t){return cH(e).getComputedStyle(e,t)}var dH=/([A-Z])/g;function fH(e){return e.replace(dH,"-$1").toLowerCase()}var hH=/^ms-/;function td(e){return fH(e).replace(hH,"-ms-")}var pH=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function mH(e){return!!(e&&pH.test(e))}function ki(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(td(t))||uH(e).getPropertyValue(td(t));Object.keys(t).forEach(function(i){var a=t[i];!a&&a!==0?e.style.removeProperty(td(i)):mH(i)?r+=i+"("+a+") ":n+=td(i)+": "+a+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}const jw={disabled:!1};var gH=process.env.NODE_ENV!=="production"?qe.oneOfType([qe.number,qe.shape({enter:qe.number,exit:qe.number,appear:qe.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&qe.oneOfType([qe.string,qe.shape({enter:qe.string,exit:qe.string,active:qe.string}),qe.shape({enter:qe.string,enterDone:qe.string,enterActive:qe.string,exit:qe.string,exitDone:qe.string,exitActive:qe.string})]);const jk=h.createContext(null);var vH=function(e){return e.scrollTop},Ll="unmounted",Ji="exited",_i="entering",ra="entered",uf="exiting",Bi=function(e){lH(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var o=i,s=o&&!o.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=Ji,a.appearStatus=_i):l=ra:r.unmountOnExit||r.mountOnEnter?l=Ll:l=Ji,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===Ll?{status:Ji}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var i=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==_i&&a!==ra&&(i=_i):(a===_i||a===ra)&&(i=uf)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,i,a,o;return i=a=o=r,r!=null&&typeof r!="number"&&(i=r.exit,a=r.enter,o=r.appear!==void 0?r.appear:a),{exit:i,enter:a,appear:o}},n.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===_i){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:hn.findDOMNode(this);a&&vH(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ji&&this.setState({status:Ll})},n.performEnter=function(r){var i=this,a=this.props.enter,o=this.context?this.context.isMounting:r,s=this.props.nodeRef?[o]:[hn.findDOMNode(this),o],l=s[0],c=s[1],u=this.getTimeouts(),d=o?u.appear:u.enter;if(!r&&!a||jw.disabled){this.safeSetState({status:ra},function(){i.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:_i},function(){i.props.onEntering(l,c),i.onTransitionEnd(d,function(){i.safeSetState({status:ra},function(){i.props.onEntered(l,c)})})})},n.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts(),o=this.props.nodeRef?void 0:hn.findDOMNode(this);if(!i||jw.disabled){this.safeSetState({status:Ji},function(){r.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:uf},function(){r.props.onExiting(o),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Ji},function(){r.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},n.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(o){a&&(a=!1,i.nextCallback=null,r(o))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:hn.findDOMNode(this),o=r==null&&!this.props.addEndListener;if(!a||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=s[0],c=s[1];this.props.addEndListener(l,c)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Ll)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var o=OE(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return h.createElement(jk.Provider,{value:null},typeof a=="function"?a(r,o):h.cloneElement(h.Children.only(a),o))},t}(h.Component);Bi.contextType=jk;Bi.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:qe.shape({current:typeof Element>"u"?qe.any:function(e,t,n,r,i,a){var o=e[t];return qe.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,a)}}),children:qe.oneOfType([qe.func.isRequired,qe.element.isRequired]).isRequired,in:qe.bool,mountOnEnter:qe.bool,unmountOnExit:qe.bool,appear:qe.bool,enter:qe.bool,exit:qe.bool,timeout:function(e){var t=gH;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,[e].concat(r))},addEndListener:qe.func,onEnter:qe.func,onEntering:qe.func,onEntered:qe.func,onExit:qe.func,onExiting:qe.func,onExited:qe.func}:{};function Bo(){}Bi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Bo,onEntering:Bo,onEntered:Bo,onExit:Bo,onExiting:Bo,onExited:Bo};Bi.UNMOUNTED=Ll;Bi.EXITED=Ji;Bi.ENTERING=_i;Bi.ENTERED=ra;Bi.EXITING=uf;function bH(e){return e.code==="Escape"||e.keyCode===27}function yH(){const e=ie.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function gu(e){if(!e||typeof e=="function")return null;const{major:t}=yH();return t>=19?e.props.ref:e.ref}function xH(e,t,n,r){if(r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function wH(e){var t=ki(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function _H(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||xH(e,"transitionend",!0)},t+n),a=ia(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),a()}}function Dk(e,t,n,r){n==null&&(n=wH(e)||0);var i=_H(e,n,r),a=ia(e,"transitionend",t);return function(){i(),a()}}function Dw(e,t){const n=ki(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function Nk(e,t){const n=Dw(e,"transitionDuration"),r=Dw(e,"transitionDelay"),i=Dk(e,a=>{a.target===e&&(i(),t(a))},n+r)}function _l(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...r){t.apply(this,r),n.apply(this,r)}},null)}function Ik(e){e.offsetHeight}function CH(e){return e&&"setState"in e?hn.findDOMNode(e):e??null}const vb=h.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:a,addEndListener:o,children:s,childRef:l,...c},u)=>{const d=h.useRef(null),f=cu(d,l),p=$=>{f(CH($))},g=$=>E=>{$&&d.current&&$(d.current,E)},m=h.useCallback(g(e),[e]),v=h.useCallback(g(t),[t]),x=h.useCallback(g(n),[n]),_=h.useCallback(g(r),[r]),w=h.useCallback(g(i),[i]),C=h.useCallback(g(a),[a]),y=h.useCallback(g(o),[o]);return b.jsx(Bi,{ref:u,...c,onEnter:m,onEntered:x,onEntering:v,onExit:_,onExited:C,onExiting:w,addEndListener:y,nodeRef:d,children:typeof s=="function"?($,E)=>s($,{...E,ref:p}):h.cloneElement(s,{ref:p})})});vb.displayName="TransitionWrapper";const $H={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function SH(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],i=$H[e];return r+parseInt(ki(t,i[0]),10)+parseInt(ki(t,i[1]),10)}const EH={[Ji]:"collapse",[uf]:"collapsing",[_i]:"collapsing",[ra]:"collapse show"},Pk=h.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,className:a,children:o,dimension:s="height",in:l=!1,timeout:c=300,mountOnEnter:u=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:p=SH,...g},m)=>{const v=typeof s=="function"?s():s,x=h.useMemo(()=>_l($=>{$.style[v]="0"},e),[v,e]),_=h.useMemo(()=>_l($=>{const E=`scroll${v[0].toUpperCase()}${v.slice(1)}`;$.style[v]=`${$[E]}px`},t),[v,t]),w=h.useMemo(()=>_l($=>{$.style[v]=null},n),[v,n]),C=h.useMemo(()=>_l($=>{$.style[v]=`${p(v,$)}px`,Ik($)},r),[r,p,v]),y=h.useMemo(()=>_l($=>{$.style[v]=null},i),[v,i]);return b.jsx(vb,{ref:m,addEndListener:Nk,...g,"aria-expanded":g.role?l:null,onEnter:x,onEntering:_,onEntered:w,onExit:C,onExiting:y,childRef:gu(o),in:l,timeout:c,mountOnEnter:u,unmountOnExit:d,appear:f,children:($,E)=>h.cloneElement(o,{...E,className:me(a,o.props.className,EH[$],v==="width"&&"collapse-horizontal")})})});Pk.displayName="Collapse";function Lk(e,t){return Array.isArray(e)?e.includes(t):e===t}const vu=ie.createContext({});vu.displayName="AccordionContext";const bb=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,children:r,eventKey:i,...a},o)=>{const{activeEventKey:s}=h.useContext(vu);return t=Et(t,"accordion-collapse"),b.jsx(Pk,{ref:o,in:Lk(s,i),...a,className:me(n,t),children:b.jsx(e,{children:ie.Children.only(r)})})});bb.displayName="AccordionCollapse";const $h=ie.createContext({eventKey:""});$h.displayName="AccordionItemContext";const Fk=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,onEnter:r,onEntering:i,onEntered:a,onExit:o,onExiting:s,onExited:l,...c},u)=>{t=Et(t,"accordion-body");const{eventKey:d}=h.useContext($h);return b.jsx(bb,{eventKey:d,onEnter:r,onEntering:i,onEntered:a,onExit:o,onExiting:s,onExited:l,children:b.jsx(e,{ref:u,...c,className:me(n,t)})})});Fk.displayName="AccordionBody";function kH(e,t){const{activeEventKey:n,onSelect:r,alwaysOpen:i}=h.useContext(vu);return a=>{let o=e===n?null:e;i&&(Array.isArray(n)?n.includes(e)?o=n.filter(s=>s!==e):o=[...n,e]:o=[e]),r==null||r(o,a),t==null||t(a)}}const yb=ie.forwardRef(({as:e="button",bsPrefix:t,className:n,onClick:r,...i},a)=>{t=Et(t,"accordion-button");const{eventKey:o}=h.useContext($h),s=kH(o,r),{activeEventKey:l}=h.useContext(vu);return e==="button"&&(i.type="button"),b.jsx(e,{ref:a,onClick:s,...i,"aria-expanded":Array.isArray(l)?l.includes(o):o===l,className:me(n,t,!Lk(l,o)&&"collapsed")})});yb.displayName="AccordionButton";const Bk=ie.forwardRef(({as:e="h2","aria-controls":t,bsPrefix:n,className:r,children:i,onClick:a,...o},s)=>(n=Et(n,"accordion-header"),b.jsx(e,{ref:s,...o,className:me(r,n),children:b.jsx(yb,{onClick:a,"aria-controls":t,children:i})})));Bk.displayName="AccordionHeader";const zk=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,eventKey:r,...i},a)=>{t=Et(t,"accordion-item");const o=h.useMemo(()=>({eventKey:r}),[r]);return b.jsx($h.Provider,{value:o,children:b.jsx(e,{ref:a,...i,className:me(n,t)})})});zk.displayName="AccordionItem";const Wk=ie.forwardRef((e,t)=>{const{as:n="div",activeKey:r,bsPrefix:i,className:a,onSelect:o,flush:s,alwaysOpen:l,...c}=ME(e,{activeKey:"onSelect"}),u=Et(i,"accordion"),d=h.useMemo(()=>({activeEventKey:r,onSelect:o,alwaysOpen:l}),[r,o,l]);return b.jsx(vu.Provider,{value:d,children:b.jsx(n,{ref:t,...c,className:me(a,u,s&&`${u}-flush`)})})});Wk.displayName="Accordion";const Na=Object.assign(Wk,{Button:yb,Collapse:bb,Item:zk,Header:Bk,Body:Fk}),TH=e=>ie.forwardRef((t,n)=>b.jsx("div",{...t,ref:n,className:me(t.className,e)})),OH=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",MH=typeof document<"u",Nw=MH||OH?h.useLayoutEffect:h.useEffect,AH={[_i]:"show",[ra]:"show"},xb=ie.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},a)=>{const o={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},s=h.useCallback((l,c)=>{Ik(l),r==null||r(l,c)},[r]);return b.jsx(vb,{ref:a,addEndListener:Nk,...o,onEnter:s,childRef:gu(t),children:(l,c)=>ie.cloneElement(t,{...c,className:me("fade",e,t.props.className,AH[l],n[l])})})});xb.displayName="Fade";const RH={"aria-label":qe.string,onClick:qe.func,variant:qe.oneOf(["white"])},wb=ie.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>b.jsx("button",{ref:i,type:"button",className:me("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));wb.displayName="CloseButton";wb.propTypes=RH;function jH(e){const t=h.useRef(e);return t.current=e,t}function DH(e){const t=jH(e);h.useEffect(()=>()=>t.current(),[])}const Iw=e=>!e||typeof e=="function"?e:t=>{e.current=t};function NH(e,t){const n=Iw(e),r=Iw(t);return i=>{n&&n(i),r&&r(i)}}function _b(e,t){return h.useMemo(()=>NH(e,t),[e,t])}var nd;function Pw(e){if((!nd&&nd!==0||e)&&Us){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),nd=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return nd}function IH(){return h.useState(null)}function Mm(e){e===void 0&&(e=lu());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function PH(e){const t=h.useRef(e);return t.current=e,t}function LH(e){const t=PH(e);h.useEffect(()=>()=>t.current(),[])}function FH(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Lw=Z0("modal-open");let Cb=class{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return FH(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(ki(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(Lw,""),ki(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Lw),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}};const Am=(e,t)=>Us?e==null?(t||lu()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function BH(e,t){const n=bh(),[r,i]=h.useState(()=>Am(e,n==null?void 0:n.document));if(!r){const a=Am(e);a&&i(a)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const a=Am(e);a!==r&&i(a)},[e,r]),r}function zH({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const a=h.useRef(null),o=h.useRef(t),s=zn(n);h.useEffect(()=>{t?o.current=!0:s(a.current)},[t,s]);const l=_b(a,gu(e)),c=h.cloneElement(e,{ref:l});return t?c:i||!o.current&&r?null:c}const WH=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function UH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function HH(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:a,onExited:o,addEndListener:s,children:l}=e,c=UH(e,WH);const u=h.useRef(null),d=_b(u,gu(l)),f=C=>y=>{C&&u.current&&C(u.current,y)},p=h.useCallback(f(t),[t]),g=h.useCallback(f(n),[n]),m=h.useCallback(f(r),[r]),v=h.useCallback(f(i),[i]),x=h.useCallback(f(a),[a]),_=h.useCallback(f(o),[o]),w=h.useCallback(f(s),[s]);return Object.assign({},c,{nodeRef:u},t&&{onEnter:p},n&&{onEntering:g},r&&{onEntered:m},i&&{onExit:v},a&&{onExiting:x},o&&{onExited:_},s&&{addEndListener:w},{children:typeof l=="function"?(C,y)=>l(C,Object.assign({},y,{ref:d})):h.cloneElement(l,{ref:d})})}const VH=["component"];function qH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const YH=ie.forwardRef((e,t)=>{let{component:n}=e,r=qH(e,VH);const i=HH(r);return b.jsx(n,Object.assign({ref:t},i))});function GH({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),i=zn(t);return Nw(()=>{if(!n.current)return;let a=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>a}),()=>{a=!0}},[e,i]),Nw(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function KH({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[a,o]=h.useState(!t);t&&a&&o(!1);const s=GH({in:!!t,onTransition:c=>{const u=()=>{c.isStale()||(c.in?r==null||r(c.element,c.initial):(o(!0),n==null||n(c.element)))};Promise.resolve(i(c)).then(u,d=>{throw c.in||o(!0),d})}}),l=_b(s,gu(e));return a&&!t?null:h.cloneElement(e,{ref:l})}function Fw(e,t,n){return e?b.jsx(YH,Object.assign({},n,{component:e})):t?b.jsx(KH,Object.assign({},n,{transition:t})):b.jsx(zH,Object.assign({},n))}const ZH=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function XH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let Rm;function QH(e){return Rm||(Rm=new Cb({ownerDocument:e==null?void 0:e.document})),Rm}function JH(e){const t=bh(),n=e||QH(t),r=h.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:h.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:h.useCallback(i=>{r.current.backdrop=i},[])})}const Uk=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:a,children:o,backdrop:s=!0,keyboard:l=!0,onBackdropClick:c,onEscapeKeyDown:u,transition:d,runTransition:f,backdropTransition:p,runBackdropTransition:g,autoFocus:m=!0,enforceFocus:v=!0,restoreFocus:x=!0,restoreFocusOptions:_,renderDialog:w,renderBackdrop:C=G=>b.jsx("div",Object.assign({},G)),manager:y,container:$,onShow:E,onHide:M=()=>{},onExit:k,onExited:R,onExiting:S,onEnter:T,onEntering:j,onEntered:D}=e,N=XH(e,ZH);const O=bh(),P=BH($),W=JH(y),U=AE(),I=RE(n),[z,Y]=h.useState(!n),X=h.useRef(null);h.useImperativeHandle(t,()=>W,[W]),Us&&!I&&n&&(X.current=Mm(O==null?void 0:O.document)),n&&z&&Y(!1);const K=zn(()=>{if(W.add(),F.current=ia(document,"keydown",B),L.current=ia(document,"focus",()=>setTimeout(ee),!0),E&&E(),m){var G,oe;const re=Mm((G=(oe=W.dialog)==null?void 0:oe.ownerDocument)!=null?G:O==null?void 0:O.document);W.dialog&&re&&!nf(W.dialog,re)&&(X.current=re,W.dialog.focus())}}),Z=zn(()=>{if(W.remove(),F.current==null||F.current(),L.current==null||L.current(),x){var G;(G=X.current)==null||G.focus==null||G.focus(_),X.current=null}});h.useEffect(()=>{!n||!P||K()},[n,P,K]),h.useEffect(()=>{z&&Z()},[z,Z]),LH(()=>{Z()});const ee=zn(()=>{if(!v||!U()||!W.isTopModal())return;const G=Mm(O==null?void 0:O.document);W.dialog&&G&&!nf(W.dialog,G)&&W.dialog.focus()}),J=zn(G=>{G.target===G.currentTarget&&(c==null||c(G),s===!0&&M())}),B=zn(G=>{l&&bH(G)&&W.isTopModal()&&(u==null||u(G),G.defaultPrevented||M())}),L=h.useRef(),F=h.useRef(),H=(...G)=>{Y(!0),R==null||R(...G)};if(!P)return null;const A=Object.assign({role:r,ref:W.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},N,{style:a,className:i,tabIndex:-1});let Q=w?w(A):b.jsx("div",Object.assign({},A,{children:ie.cloneElement(o,{role:"document"})}));Q=Fw(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:k,onExiting:S,onExited:H,onEnter:T,onEntering:j,onEntered:D,children:Q});let q=null;return s&&(q=C({ref:W.setBackdropRef,onClick:J}),q=Fw(p,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:q})),b.jsx(b.Fragment,{children:hn.createPortal(b.jsxs(b.Fragment,{children:[q,Q]}),P)})});Uk.displayName="Modal";const eV=Object.assign(Uk,{Manager:Cb});function tV(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function nV(e,t){e.classList?e.classList.add(t):tV(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Bw(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function rV(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Bw(e.className,t):e.setAttribute("class",Bw(e.className&&e.className.baseVal||"",t))}const zo={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class iV extends Cb{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,ki(n,{[t]:`${parseFloat(ki(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],ki(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(nV(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Xi(n,zo.FIXED_CONTENT).forEach(a=>this.adjustAndStore(r,a,t.scrollBarWidth)),Xi(n,zo.STICKY_CONTENT).forEach(a=>this.adjustAndStore(i,a,-t.scrollBarWidth)),Xi(n,zo.NAVBAR_TOGGLER).forEach(a=>this.adjustAndStore(i,a,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();rV(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Xi(n,zo.FIXED_CONTENT).forEach(a=>this.restore(r,a)),Xi(n,zo.STICKY_CONTENT).forEach(a=>this.restore(i,a)),Xi(n,zo.NAVBAR_TOGGLER).forEach(a=>this.restore(i,a))}}let jm;function aV(e){return jm||(jm=new iV(e)),jm}const Hk=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Et(t,"modal-body"),b.jsx(n,{ref:i,className:me(e,t),...r})));Hk.displayName="ModalBody";const Vk=ie.createContext({onHide(){}}),$b=ie.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:a,children:o,scrollable:s,...l},c)=>{e=Et(e,"modal");const u=`${e}-dialog`,d=typeof a=="string"?`${e}-fullscreen-${a}`:`${e}-fullscreen`;return b.jsx("div",{...l,ref:c,className:me(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,a&&d),children:b.jsx("div",{className:me(`${e}-content`,n),children:o})})});$b.displayName="ModalDialog";const qk=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Et(t,"modal-footer"),b.jsx(n,{ref:i,className:me(e,t),...r})));qk.displayName="ModalFooter";const Yk=ie.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...a},o)=>{const s=h.useContext(Vk),l=tf(()=>{s==null||s.onHide(),r==null||r()});return b.jsxs("div",{ref:o,...a,children:[i,n&&b.jsx(wb,{"aria-label":e,variant:t,onClick:l})]})});Yk.displayName="AbstractModalHeader";const Gk=ie.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},a)=>(e=Et(e,"modal-header"),b.jsx(Yk,{ref:a,...i,className:me(t,e),closeLabel:n,closeButton:r})));Gk.displayName="ModalHeader";const oV=TH("h4"),Kk=ie.forwardRef(({className:e,bsPrefix:t,as:n=oV,...r},i)=>(t=Et(t,"modal-title"),b.jsx(n,{ref:i,className:me(e,t),...r})));Kk.displayName="ModalTitle";function sV(e){return b.jsx(xb,{...e,timeout:null})}function lV(e){return b.jsx(xb,{...e,timeout:null})}const Zk=ie.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:a,dialogAs:o=$b,"data-bs-theme":s,"aria-labelledby":l,"aria-describedby":c,"aria-label":u,show:d=!1,animation:f=!0,backdrop:p=!0,keyboard:g=!0,onEscapeKeyDown:m,onShow:v,onHide:x,container:_,autoFocus:w=!0,enforceFocus:C=!0,restoreFocus:y=!0,restoreFocusOptions:$,onEntered:E,onExit:M,onExiting:k,onEnter:R,onEntering:S,onExited:T,backdropClassName:j,manager:D,...N},O)=>{const[P,W]=h.useState({}),[U,I]=h.useState(!1),z=h.useRef(!1),Y=h.useRef(!1),X=h.useRef(null),[K,Z]=IH(),ee=cu(O,Z),J=tf(x),B=gE();e=Et(e,"modal");const L=h.useMemo(()=>({onHide:J}),[J]);function F(){return D||aV({isRTL:B})}function H(le){if(!Us)return;const Ee=F().getScrollbarWidth()>0,Le=le.scrollHeight>lu(le).documentElement.clientHeight;W({paddingRight:Ee&&!Le?Pw():void 0,paddingLeft:!Ee&&Le?Pw():void 0})}const A=tf(()=>{K&&H(K.dialog)});DH(()=>{Gg(window,"resize",A),X.current==null||X.current()});const Q=()=>{z.current=!0},q=le=>{z.current&&K&&le.target===K.dialog&&(Y.current=!0),z.current=!1},G=()=>{I(!0),X.current=Dk(K.dialog,()=>{I(!1)})},oe=le=>{le.target===le.currentTarget&&G()},re=le=>{if(p==="static"){oe(le);return}if(Y.current||le.target!==le.currentTarget){Y.current=!1;return}x==null||x()},ne=le=>{g?m==null||m(le):(le.preventDefault(),p==="static"&&G())},se=(le,Ee)=>{le&&H(le),R==null||R(le,Ee)},fe=le=>{X.current==null||X.current(),M==null||M(le)},_e=(le,Ee)=>{S==null||S(le,Ee),K0(window,"resize",A)},xe=le=>{le&&(le.style.display=""),T==null||T(le),Gg(window,"resize",A)},ye=h.useCallback(le=>b.jsx("div",{...le,className:me(`${e}-backdrop`,j,!f&&"show")}),[f,j,e]),de={...n,...P};de.display="block";const be=le=>b.jsx("div",{role:"dialog",...le,style:de,className:me(t,e,U&&`${e}-static`,!f&&"show"),onClick:p?re:void 0,onMouseUp:q,"data-bs-theme":s,"aria-label":u,"aria-labelledby":l,"aria-describedby":c,children:b.jsx(o,{...N,onMouseDown:Q,className:r,contentClassName:i,children:a})});return b.jsx(Vk.Provider,{value:L,children:b.jsx(eV,{show:d,ref:ee,backdrop:p,container:_,keyboard:!0,autoFocus:w,enforceFocus:C,restoreFocus:y,restoreFocusOptions:$,onEscapeKeyDown:ne,onShow:v,onHide:x,onEnter:se,onEntering:_e,onEntered:E,onExit:fe,onExiting:k,onExited:xe,manager:F(),transition:f?sV:void 0,backdropTransition:f?lV:void 0,renderBackdrop:ye,renderDialog:be})})});Zk.displayName="Modal";const Cl=Object.assign(Zk,{Body:Hk,Header:Gk,Title:Kk,Footer:qk,Dialog:$b,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),cV="_modal_1sw52_1",uV="_settings-item_1sw52_1",dV="_label_1sw52_8",fV="_content_1sw52_11",hV="_column-item_1sw52_14",pV="_is-hidden_1sw52_20",Wo={modal:cV,settingsItem:uV,label:dV,content:fV,columnItem:hV,isHidden:pV},mV=({show:e,handleClose:t,texts:n,pageSize:r,columns:i,IconComponent:a,resetToDefault:o})=>{const[s,l]=h.useState(r.value?r.value.toString():"");h.useEffect(()=>{e&&l(r.value?r.value.toString():"")},[e,r.value]);const c=r.enabled;return b.jsxs(Cl,{className:me("settings-modal",Wo.modal),"data-testId":"settings-modal",show:e,onHide:t,children:[b.jsx(Cl.Header,{closeButton:!0,children:b.jsx(Cl.Title,{children:n==null?void 0:n.settingsModal.title})}),b.jsx(Cl.Body,{children:b.jsxs(Na,{children:[c?b.jsxs(Na.Item,{eventKey:"general-settings",children:[b.jsx(Na.Header,{children:n==null?void 0:n.settingsModal.generalSettings}),b.jsx(Na.Body,{className:"d-flex flex-column gap-1",children:r.enabled?b.jsxs("div",{className:Wo.settingsItem,children:[b.jsx("div",{className:me("text-nowrap",Wo.label),children:n==null?void 0:n.settingsModal.pageSize}),b.jsxs("div",{className:me("text-nowrap",Wo.content),children:[b.jsx(Jd.Control,{"data-testId":"page-size-input",list:"pageSizes",max:1e3,min:0,size:"sm",type:"number",value:s,onChange:u=>{l(u.target.value),u.target.value&&r.onChange(Number(u.target.value))}}),b.jsxs("datalist",{id:"pageSizes",children:[b.jsx("option",{value:"10"}),b.jsx("option",{value:"20"}),b.jsx("option",{value:"30"}),b.jsx("option",{value:"50"}),b.jsx("option",{value:"100"})]})]})]}):null})]}):null,b.jsxs(Na.Item,{eventKey:"column-settings",children:[b.jsx(Na.Header,{children:n==null?void 0:n.settingsModal.columnSettings}),b.jsx(Na.Body,{className:"d-flex flex-column gap-1",children:i.allColumns.filter(u=>{var d;return u.getCanHide()&&((d=u.columnDef.meta)==null?void 0:d.hidden)!==!0}).map(u=>b.jsxs("div",{className:me("column-item rounded border",Wo.columnItem,{[Wo.isHidden]:!u.getIsVisible()}),children:[sH(u),b.jsx(gi,{color:"secondary",onClick:()=>u.toggleVisibility(),children:b.jsx(a,{icon:u.getIsVisible()?"visibility":"visibility-off"})})]},u.id))})]})]})}),b.jsxs(Cl.Footer,{className:"d-flex justify-content-between align-items-center",children:[b.jsx(Rw,{variant:"outline-secondary",onClick:()=>{o(),t()},children:n==null?void 0:n.settingsModal.revertDefaultSettings}),b.jsx(Rw,{onClick:t,children:n==null?void 0:n.settingsModal.done})]})]})},gV=[["ArrowUp",[0,-1]],["ArrowDown",[0,1]],["ArrowLeft",[-1,0]],["ArrowRight",[1,0]]],zw=new Map(gV),vV=(e,t,n,r,i,a)=>{const o=h.useState([0,0]),[s,l]=(e==null?void 0:e.cellSelectionState)??o,[c,u]=h.useState(),[d,f]=h.useState(),p=h.useCallback(v=>{e!=null&&e.disabled||l(v)},[e==null?void 0:e.disabled,l]),g=({fieldName:v,dataIndex:x})=>{u(v),f(x)},m=h.useCallback(v=>{if(e!=null&&e.disabled)return;const x=v.target;if(!(["INPUT","TEXTAREA"].includes(x.tagName)||x.isContentEditable))switch(v.code){case"Space":case"Enter":{v.preventDefault();const _=t.get(s[0]);if(e!=null&&e.onlyRowSelection){n[s[1]].toggleSelected();break}if(!_)return;_==="selection"&&n[s[1]].toggleSelected();break}case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":{v.preventDefault(),p(_=>{const w=[Math.min(Math.max(_[0]+zw.get(v.code)[0],0),t.size-1),Math.min(Math.max(_[1]+zw.get(v.code)[1],0),n.length-1)];if(r!==void 0){const C=Math.floor(w[1]/r);i(C)}return w});break}case"Tab":if(v.preventDefault(),v.shiftKey)p(_=>_[0]<=0?_[1]<=0?_:[t.size-1,_[1]-1]:[_[0]-1,_[1]]);else{p(_=>_[0]>=t.size-1?_[1]>=n.length-1?_:[0,_[1]+1]:[_[0]+1,_[1]]);break}}},[e==null?void 0:e.disabled,e==null?void 0:e.onlyRowSelection,t,s,n,p,r,i]);return h.useEffect(()=>{if(c===void 0)return;u(void 0);const v=[...t.entries()].findIndex(x=>x[1]===c);l(x=>[v,x[1]])},[c,l,t]),h.useEffect(()=>{if(d===void 0)return;f(void 0);const v=n.findIndex(x=>x.index===d);if(l(x=>[x[0],v]),r!==void 0){const x=Math.floor(v/r);i(x)}},[i,r,d,n,l]),h.useEffect(()=>{if((e==null?void 0:e.onCellSelect)===void 0)return;const v=new AbortController;return window.addEventListener("keydown",m,{signal:v.signal}),()=>v.abort()},[m,e==null?void 0:e.onCellSelect]),h.useEffect(()=>{var v;(v=a.current)==null||v.scrollIntoView({behavior:"instant",block:"center",inline:"nearest"})},[a,s]),h.useEffect(()=>{var x;if((e==null?void 0:e.onCellSelect)===void 0)return;if(((x=n[s[1]])==null?void 0:x.index)===void 0){n.length>0&&p(_=>[_[0],0]);return}const v=t.get(s[0]);if(v===void 0){console.error(`Tried to access non-existing key ${s[0]} from following map: `,t);return}e==null||e.onCellSelect(n[s[1]].index,v)},[e,p,n,s,t]),{selectedCoords:s,changeSelectedCoords:p,setSelectedCellByFNDI:g}},bV=e=>e.type==="number"?"sum":"uniqueCount",yV=(e,t,n)=>{var i;const r=t.column.columnDef;return(i=r.meta)!=null&&i.customCellRender?r.meta.customCellRender(t):r.type==="boolean"?n.boolean(t):r.type==="date"?n.date(t):r.type==="datetime"?n.datetime(t):r.type==="number"?n.number(t):uk(e,t)},xV=(e,t,n)=>{var r;return(r=e.meta)!=null&&r.customAggregatedCellRender?e.meta.customAggregatedCellRender(t):(bV(e)==="sum"?n.aggregation.sum:n.aggregation.uniqueCount)(Number(t.getValue()))},wV=e=>{let{transform:t}=e;return{...t,y:0}},_V=({ref:e,isLink:t,to:n,children:r,LinkComponent:i,onClick:a,onCellInteraction:o,...s})=>t&&n?b.jsx(i,{ref:e,to:n,onAuxClick:l=>{l.button===1&&(o==null||o())},onClick:()=>{a==null||a(),o==null||o()},onContextMenu:()=>{o==null||o()},...s,children:r}):b.jsx("div",{ref:e,onAuxClick:a||o?l=>{l.button===1&&(o==null||o())}:void 0,onClick:a||o?()=>{a==null||a(),o==null||o()}:void 0,onContextMenu:a||o?()=>{o==null||o()}:void 0,...s,children:r}),CV=({row:e,cell:t,className:n,rowClassName:r,style:i,IconComponent:a,texts:o,formatters:s,LinkComponent:l,onRowClick:c,rowNavigation:u,onCellInteraction:d},f)=>{var m,v,x;const p=t.column.columnDef,g=h.useMemo(()=>{var _,w,C,y,$;if(!((_=p.meta)!=null&&_.disableCellClick)&&!t.getIsGrouped()&&!t.getIsAggregated()){if((w=p.meta)!=null&&w.onCellClick)return["onClickOwn",()=>{var E,M;return(M=(E=p.meta)==null?void 0:E.onCellClick)==null?void 0:M.call(E,e.original)}];if((C=p.meta)!=null&&C.cellNavigation){const E=($=(y=p.meta)==null?void 0:y.cellNavigation)==null?void 0:$.call(y,e.original);if(E)return["navigateOwn",E]}if(c)return["onClick",()=>c==null?void 0:c(e.original)];if(u){const E=u==null?void 0:u(e.original);if(E)return["navigate",E]}}},[p,e,c,u,t]);return b.jsxs(_V,{className:me((_=>{var E,M,k,R,S,T;const w=((E=p==null?void 0:p.meta)==null?void 0:E.alignment)??"left",C=_.column.getIsSorted(),y=_.cell.getIsGrouped(),$=_.row.getIsExpanded();return me("td",He.td,{[He.left]:w==="left",[He.center]:w==="center",[He.right]:w==="right"||p.type==="number"&&((M=p.numericMeta)==null?void 0:M.noFormatting)!==!0},{sorted:C,[He.sorted]:C},{grouped:y,[He.grouped]:y},{expanded:$,[He.expanded]:$},{clickable:!!g,[He.clickable]:!!g},{"own-click":(k=g==null?void 0:g[0])==null?void 0:k.endsWith("Own"),[He.ownClick]:(R=g==null?void 0:g[0])==null?void 0:R.endsWith("Own")},r,(T=(S=p.meta)==null?void 0:S.className)==null?void 0:T.call(S,e.original))})(t.getContext()),n),isLink:!!((m=g==null?void 0:g[0])!=null&&m.startsWith("navigate")),LinkComponent:l,ref:f,style:{flex:`${t.column.getSize()} 1 0`,minWidth:t.column.getSize(),...i??{}},to:(v=g==null?void 0:g[0])!=null&&v.startsWith("navigate")?g[1]:void 0,onCellInteraction:d?()=>d==null?void 0:d(e.original):void 0,onClick:(x=g==null?void 0:g[0])!=null&&x.startsWith("onClick")?g[1]:void 0,children:[t.getIsGrouped()&&e.getCanExpand()?b.jsx(gi,{className:me("expander-button",He.expanderButton),size:"sm",onClick:e.getToggleExpandedHandler(),children:b.jsx(a,{icon:e.getIsExpanded()?"chevron-up":"chevron-down"})}):null,t.getIsAggregated()?xV(t.column.columnDef,t.getContext(),o):t.getIsPlaceholder()?null:yV(t.column.columnDef.cell,t.getContext(),s)," ",t.getIsGrouped()?`(${e.subRows.length})`:null]})},$V=h.forwardRef(CV),SV=({table:e,additionalOptions:t,IconComponent:n,texts:r,formatters:i,bottomBar:a,testId:o,LinkComponent:s,className:l,rowsClassName:c,onRowClick:u,rowNavigation:d,onCellInteraction:f,cellSelection:p,getRowProps:g},m)=>{var K,Z,ee,J,B,L,F,H,A;const v={boolean:Q=>ZL(Q,n),date:XL,datetime:QL,number:JL,...i},[x,_]=h.useState(!1),w=!!e.options.getPaginationRowModel,C=Vz(Em(Ck,{}),Em($k,{}),Em(pb,{})),y=e.getState().columnOrder,$=Q=>{const{active:q,over:G}=Q;q&&G&&q.id!==G.id&&e.setColumnOrder(oe=>{const re=oe.indexOf(q.id),ne=oe.indexOf(G.id);return re===-1||ne===-1?oe:gb(oe,re,ne)})},[E,M]=h.useState(null),k=Q=>{M(Q)},R=Q=>{if(!Q.getCanPin())return"";const q=Q.getIsPinned(),G=q==="right"&&Q.getIsFirstColumn("right"),oe=q==="left"&&Q.getIsLastColumn("left");return me({pinned:q,[He.pinned]:q,"first-right":G,[He.firstRight]:G,"last-left":oe,[He.lastLeft]:oe})},S=Q=>{if(!Q.getCanPin())return{};const q=Q.getIsPinned();return{left:q==="left"?`${Q.getStart("left")}px`:void 0,right:q==="right"?`${Q.getAfter("right")}px`:void 0}},T=e.getState().sorting;h.useEffect(()=>{var Q,q;if(T.length>0){const G=T[0];if((Q=document.activeElement)!=null&&Q.classList.contains("filter"))return;(q=document.getElementById(`filter-${G.id}`))==null||q.focus()}},[T]);const j=e.getPrePaginationRowModel().rows,D=new Map(e.getVisibleLeafColumns().map((Q,q)=>[q,Q.id])),N=h.useRef(null),{selectedCoords:O,changeSelectedCoords:P,setSelectedCellByFNDI:W}=vV(p,D,j,w?((K=e.getState().pagination)==null?void 0:K.pageSize)??0:void 0,e.setPageIndex,N);h.useImperativeHandle(m,()=>({setSelectedCell:W}));const U=Q=>{var q;return p!=null&&p.onlyRowSelection&&((q=j[O[1]])==null?void 0:q.index)===Q.index?me(He.cellSelectedRow,"cell-selected-row",{[He.cellSelectionDisabled]:p.disabled}):""},I=(Q,q)=>{var G;return(p==null?void 0:p.onCellSelect)===void 0||O[0]!==Q||((G=j[O[1]])==null?void 0:G.index)!==q||p.onlyRowSelection?"":p.disabled?"bg-primary-subtle":me("selected-cell",He.selectedCell)},z=t.fullScreen.canFullScreen?((Z=t.fullScreen)==null?void 0:Z.isFullScreen)??!1:!1,Y=(ee=t.sizing)!=null&&ee.canSize?((J=t.sizing)==null?void 0:J.size)??"md":"md",X=e.getState().columnFilters;return b.jsx(YW,{collisionDetection:Zz,modifiers:[wV],sensors:C,onDragEnd:$,children:b.jsxs("div",{className:me("tanstack-bnf-table-container",He.tableScrollContainer,{"full-screen":z,[He.fullScreen]:z}),children:[X&&X.length>0?b.jsx("div",{className:me("remove-filters-button-wrapper",He.removeFiltersButtonWrapper),children:b.jsxs("button",{className:me(He.removeFiltersButton,"remove-filters-button"),type:"button",onClick:()=>e.resetColumnFilters(),children:[b.jsx("div",{className:"d-flex align-items-center justify-content-center",children:b.jsx(n,{icon:"remove-filters"})}),(r==null?void 0:r.removeFilters)??"Zrušit filtry"]})}):null,b.jsxs("div",{className:me("tanstack-bnf-table",He.table,{sm:Y==="sm",lg:Y==="lg",[He.sm]:Y==="sm",[He.lg]:Y==="lg"},l),"data-testid":o,children:[b.jsx("div",{className:me("thead",He.thead),children:e.getHeaderGroups().map(Q=>b.jsx("div",{className:me("tr",He.tr),children:b.jsx(oU,{items:y,strategy:iU,children:Q.headers.map(q=>{var G,oe;return b.jsx(rH,{className:R(q.column),columnMenuPos:E,dragEnabled:t.enableReordering&&((oe=(G=q.column.columnDef)==null?void 0:G.meta)==null?void 0:oe.enableReordering)!==!1,header:q,IconComponent:n,style:S(q.column),table:e,texts:r,onColumnMenu:k},q.id)})})},Q.id))}),b.jsxs("div",{className:me("tbody",He.tbody),children:[(((L=(B=e.options)==null?void 0:B.data)==null?void 0:L.length)??0)===0?b.jsx("div",{className:me("alert alert-warning empty-table-alert",He.emptyTableAlert),children:r.emptyTable}):null,e.getRowModel().rows.map((Q,q)=>{var G;return b.jsx("div",{className:me("tr",He.tr,U(Q),g?(G=g(Q.original))==null?void 0:G.className:null),role:"data-row",...g?g(Q.original):{},children:Q.getVisibleCells().map((oe,re)=>{var ne;return b.jsx($V,{cell:oe,className:me(R(oe.column),I(re,Q.index)),formatters:v,IconComponent:n,LinkComponent:s,ref:(p==null?void 0:p.onCellSelect)!==void 0&&O[0]===re&&((ne=j[O[1]])==null?void 0:ne.index)===Q.index?N:null,row:Q,rowClassName:me(...(c==null?void 0:c.filter(se=>se.selector(Q.original)).map(se=>se.className))??[]),rowNavigation:d,style:S(oe.column),texts:r,onCellInteraction:(p==null?void 0:p.onCellSelect)===void 0?f:se=>{var fe,_e;P([re,((fe=e.getState().pagination)==null?void 0:fe.pageIndex)*((_e=e.getState().pagination)==null?void 0:_e.pageSize)+q]),f==null||f(se)},onRowClick:u},oe.id)})},Q.id)})]}),b.jsx(mV,{columns:{allColumns:e.getAllColumns()},handleClose:()=>_(!1),IconComponent:n,pageSize:{enabled:w,value:((F=e.getState().pagination)==null?void 0:F.pageSize)??0,onChange:Q=>e.setPageSize(Q)},resetToDefault:t.resetToInitialValues,show:x,texts:r})]}),a!=null&&a.hidden?null:b.jsxs("div",{className:me("bottom-bar",He.bottomBar),children:[b.jsxs("div",{className:me("left-items",He.leftItems),children:[w?b.jsxs("div",{className:me("pagination",He.pagination),children:[b.jsx(gi,{disabled:!e.getCanPreviousPage(),onClick:()=>e.firstPage(),children:b.jsx(n,{icon:"page-first"})}),b.jsx(gi,{disabled:!e.getCanPreviousPage(),onClick:()=>e.previousPage(),children:b.jsx(n,{icon:"page-previous"})}),b.jsx("div",{className:me("page-info-text",He.pageInfoText),children:r.pagination.infoText(e.getState().pagination.pageIndex+1,e.getPageCount())}),b.jsx(gi,{disabled:!e.getCanNextPage(),onClick:()=>e.nextPage(),children:b.jsx(n,{icon:"page-next"})}),b.jsx(gi,{disabled:!e.getCanNextPage(),onClick:()=>e.lastPage(),children:b.jsx(n,{icon:"page-last"})})]}):null,b.jsx("div",{className:me("row-count-text",He.rowCountText),children:r.rowCountText(e.getRowCount())})]}),b.jsxs("div",{className:me("right-items",He.rightItems),children:[(H=t.fullScreen)!=null&&H.canFullScreen?b.jsx(gi,{color:t.fullScreen.isFullScreen?"danger":"primary","data-testId":"table-fullscreen-button",onClick:()=>t.fullScreen.toggleFullScreen(),children:b.jsx(n,{icon:t.fullScreen.isFullScreen?"fullscreen-exit":"fullscreen"})}):null,(A=t.sizing)!=null&&A.canSize?b.jsxs(Mn,{drop:"up",children:[b.jsx(Mn.Toggle,{bsPrefix:"sizing-toggle",className:me("sizing-toggle",He.sizingToggle),id:"table-sizing-button",size:"sm",children:b.jsx(n,{icon:"density"})}),b.jsxs(Mn.Menu,{className:me("shadow-lg sizing-menu",He.sizingMenu),children:[b.jsxs(Mn.Item,{className:me("sizing-menu-item",He.sizingMenuItem),onClick:()=>t.sizing.setSize("sm"),children:[Y==="sm"?b.jsx(n,{icon:"boolean-yes"}):null," ",r.sizing.sm]}),b.jsxs(Mn.Item,{className:me("sizing-menu-item",He.sizingMenuItem),onClick:()=>t.sizing.setSize("md"),children:[Y==="md"?b.jsx(n,{icon:"boolean-yes"}):null," ",r.sizing.md]}),b.jsxs(Mn.Item,{className:me("sizing-menu-item",He.sizingMenuItem),onClick:()=>t.sizing.setSize("lg"),children:[Y==="lg"?b.jsx(n,{icon:"boolean-yes"}):null," ",r.sizing.lg]})]})]}):null,t.excelExport.canExport?b.jsx(gi,{"data-testId":"table-excel-export-button",onClick:()=>t.excelExport.onExport(r),children:b.jsx(n,{icon:"excel-export"})}):null,b.jsx(gi,{"data-testId":"table-settings-button",onClick:()=>_(!0),children:b.jsx(n,{icon:"settings"})})]})]})]})})};h.forwardRef(SV);const EV=(e,t)=>t.split(".").reduce((n,r)=>n&&typeof n=="object"?n[r]:void 0,e),Xk=()=>{const e=kz();return{accessor:(t,n)=>{const r=i=>EV(i,t)??"";return e.accessor(r,{...n,id:t})},display:t=>e.display(t),group:t=>e.group(t)}};function kV(e){return ut({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"},child:[]}]})(e)}function TV(e){return ut({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M448 80c8.8 0 16 7.2 16 16l0 319.8-5-6.5-136-176c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3L202 340.7l-30.5-42.7C167 291.7 159.8 288 152 288s-15 3.7-19.5 10.1l-80 112L48 416.3l0-.3L48 96c0-8.8 7.2-16 16-16l384 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm80 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"},child:[]}]})(e)}function OV(e){return ut({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M200,24H72A16,16,0,0,0,56,40V64H40A16,16,0,0,0,24,80v96a16,16,0,0,0,16,16H56v24a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM72,160a8,8,0,0,1-6.15-13.12L81.59,128,65.85,109.12a8,8,0,0,1,12.3-10.24L92,115.5l13.85-16.62a8,8,0,1,1,12.3,10.24L102.41,128l15.74,18.88a8,8,0,0,1-12.3,10.24L92,140.5,78.15,157.12A8,8,0,0,1,72,160Zm56,56H72V192h56Zm0-152H72V40h56Zm72,152H144V192a16,16,0,0,0,16-16v-8h40Zm0-64H160V104h40Zm0-64H160V80a16,16,0,0,0-16-16V40h56Z"},child:[]}]})(e)}function MV(e){return ut({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M200,24H72A16,16,0,0,0,56,40V64H40A16,16,0,0,0,24,80v96a16,16,0,0,0,16,16H56v24a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM68.24,153.94l-12-48a8,8,0,1,1,15.52-3.88l6.76,27,6.32-12.66a8,8,0,0,1,14.32,0l6.32,12.66,6.76-27a8,8,0,0,1,15.52,3.88l-12,48a8,8,0,0,1-6.89,6,8.46,8.46,0,0,1-.87.05,8,8,0,0,1-7.16-4.42L92,137.89l-8.84,17.69a8,8,0,0,1-14.92-1.64ZM200,216H72V192h72a16,16,0,0,0,16-16v-8h40Zm0-64H160V104h40Zm0-64H160V80a16,16,0,0,0-16-16H72V40H200Z"},child:[]}]})(e)}const AV="_excel_18ggp_1",RV="_word_18ggp_5",jV="_pdf_18ggp_9",DV="_image_18ggp_13",rd={excel:AV,word:RV,pdf:jV,image:DV},Qk=({fileExtension:e,className:t,...n})=>{switch(e==null?void 0:e.toUpperCase()){case"JPG":case"JPEG":case"BMP":case"PNG":return b.jsx("span",{className:ce(t,rd.image),children:b.jsx(TV,{...n})});case"XLS":case"XLSX":case"CSV":return b.jsx(OV,{className:ce(t,rd.excel),...n});case"DOC":case"DOCM":case"DOCX":return b.jsx(MV,{className:ce(t,rd.word),...n});case"PDF":return b.jsx(bI,{className:ce(t,rd.pdf),...n});default:return b.jsx(kV,{})}},NV=()=>{const{ProjectIconComponent:e,texts:{documents:t}}=h.useContext(sn),{apiActions:{downloadFile:n},reducer:[r]}=h.useContext(bn),i=h.useMemo(()=>r.activeFolder==="root",[r.activeFolder]),a=h.useCallback((l,c,u)=>l?ZS(c??"")&&localStorage.getItem("file-download-try-opening")!=="false"?b.jsx("span",{role:"button",className:"link link-primary d-flex align-items-center",onClick:f=>{f.stopPropagation(),n(u,!0)},children:l}):l:"",[n]),o=Xk();return{columns:h.useMemo(()=>[o.accessor("id",{header:"id",type:"number",meta:{hidden:!0}}),...i?[o.accessor("folderName",{header:t.folder,type:"string"})]:[],o.accessor("--icon",{header:"",type:"string",size:36,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:l=>{const c=l.row.getValue("fileExtension"),u=l.row.getValue("id");return a(b.jsx(Qk,{fileExtension:(c==null?void 0:c.toString())??"",className:Hg.extensionIcon,size:18}),(c==null?void 0:c.toString())??"",Number((u==null?void 0:u.toString())??""))}}}),o.accessor("name",{header:t.name,type:"string",meta:{customCellRender:l=>{const c=l.row.getValue("name"),u=l.row.getValue("fileExtension"),d=l.row.getValue("id");return a((c==null?void 0:c.toString())??"",(u==null?void 0:u.toString())??"",Number((d==null?void 0:d.toString())??""))}}}),o.accessor("description",{header:t.description,type:"string"}),o.accessor("fileExtension",{header:t.fileExtension,type:"string",size:50,meta:{filterVariant:"select"}}),o.accessor("--downloadButton",{header:"",type:"number",size:38,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:l=>{const c=l.row.getValue("id");return b.jsx(uh,{className:Hg.downloadButton,onClick:()=>n(Number((c==null?void 0:c.toString())??""),!1),children:b.jsx(e,{icon:"file-download",size:18})})}}}),o.accessor("documentTypeName",{header:t.documentType,type:"string",meta:{filterVariant:"select"}}),o.accessor("validToDate",{header:t.validSince,type:"date"}),o.accessor("size",{header:t.size,type:"number",meta:{filterVariant:"none",customCellRender:l=>{var u;const c=Number(((u=l.getValue())==null?void 0:u.toString())??"");return c!==void 0?xs(c*1024*1024):""}}}),o.accessor("archive",{header:t.archived,type:"boolean",meta:{filterVariant:"select",customCellRender:l=>l.getValue()?t.yes[0]:t.no[0]}})],[e,t.archived,t.description,t.documentType,t.fileExtension,t.folder,t.name,t.no,t.size,t.validSince,t.yes,n,i,a,o])}},IV=({BnfTableComponent:e,tableIdentifier:t,writePermissions:n})=>{const{reducer:[r,i]}=h.useContext(bn),{columns:a}=NV(),o=h.useCallback(p=>{i({type:"mark-files-by-action",setStateAction:p})},[i]),s=h.useMemo(()=>r.activeFolder==="root",[r.activeFolder]),l=h.useMemo(()=>{var p;return r.activeFolder==="root"?!1:((p=r.foldersMap.get(r.activeFolder))==null?void 0:p.onlyRead)??!1},[r.activeFolder,r.foldersMap]),c=h.useMemo(()=>({enabled:n&&!s,getRowId:p=>{var g;return((g=p.id)==null?void 0:g.toString())??""},selectedRows:Object.fromEntries(r.markedFiles.map(p=>[p.toString(),!0])),setSelectedRows:p=>{const g=Object.keys(p).filter(m=>p[m]).map(m=>Number(m));o(g)}}),[s,r.markedFiles,n,o]),u=h.useMemo(()=>r.activeFolder==="root"?r.filteredFiles:r.filteredFiles.filter(p=>p.folderId===r.activeFolder),[r.activeFolder,r.filteredFiles]),{getDraggableProps:d}=W0(),f=h.useCallback(p=>n===!1||l?{}:d(p.id),[d,l,n]);return b.jsx("div",{className:ce(Hg.wrapper),children:b.jsx(e,{data:u,columns:a,rowSelection:c,getRowProps:f,initState:{columnFilters:[{id:"archive",value:"false"}]},tableId:t,bottomBar:{hidden:!0}},r.activeFolder)})},PV="_wrapper_1q562_1",LV="_divButtons_1q562_10",Dm={wrapper:PV,divButtons:LV},FV="_wrapper_1bpdd_1",BV="_fileInput_1bpdd_5",Ww={wrapper:FV,fileInput:BV},zV=({entityId:e,entityType:t,children:n,disabled:r})=>{const i=h.useRef(null),[a,o]=h.useState(null),{reducer:[s]}=h.useContext(bn),l=f=>{var p;(((p=f.target.files)==null?void 0:p.length)??0)>0&&o(f.target.files)},c=h.useCallback(()=>{o(null),i.current&&(i.current.value="")},[]),u=h.useMemo(()=>`documents-upload-${t}-${e}`,[e,t]),d=h.useMemo(()=>r||s.activeFolder==="root",[r,s.activeFolder]);return b.jsxs("div",{className:Ww.wrapper,children:[b.jsx("label",{htmlFor:u,className:ce("btn btn-context luminus-context-button",d?"disabled":void 0),children:n}),b.jsx("input",{id:u,type:"file",multiple:!0,onChange:l,className:Ww.fileInput,ref:i,disabled:d}),a!==null?b.jsx(U0,{handleClose:c,files:a}):void 0]})},Wr=({children:e,onClick:t,className:n,disabled:r=!1})=>b.jsx(uh,{onClick:t,className:n,disabled:r,children:e}),WV=({className:e,entityId:t,entityType:n})=>{var E,M;const{texts:{documents:r}}=h.useContext(sn),{prompt:i}=TS(),{confirm:a}=R0(),{apiActions:o,reducer:[s,l]}=h.useContext(bn),{deleteFiles:c,renameFiles:u,downloadAsZip:d,archivateFiles:f,deleteDirectory:p}=o,{renameFolder:g}=Z4(),m=h.useMemo(()=>s.markedFiles.length===0,[s.markedFiles.length]),v=h.useMemo(()=>s.markedFiles.length===1,[s.markedFiles.length]),x=h.useCallback(async()=>{if(s.activeFolder==="root")return;const k=await i(r.enterNewFolderName,{input:"input"});k!==null&&g(s.activeFolder,k)},[r.enterNewFolderName,i,g,s.activeFolder]),_=h.useCallback(async()=>{if(s.activeFolder==="root")return;const k=await i(r.enterNewFileName,{input:"input"});k!==null&&u(k)},[r.enterNewFileName,i,u,s.activeFolder]),w=h.useMemo(()=>s.activeFolder==="root",[s.activeFolder]),C=h.useMemo(()=>{var k;return s.activeFolder==="root"?!1:((k=s.foldersMap.get(s.activeFolder))==null?void 0:k.onlyRead)??!1},[s.activeFolder,s.foldersMap]),y=h.useMemo(()=>s.markedFiles.every(k=>{var R;return((R=s.constantFiles.find(S=>S.id===k))==null?void 0:R.archive)===!1}),[s.constantFiles,s.markedFiles]),$=h.useMemo(()=>s.markedFiles.every(k=>{var R;return((R=s.constantFiles.find(S=>S.id===k))==null?void 0:R.archive)===!0}),[s.constantFiles,s.markedFiles]);return b.jsx("div",{className:ce(e,Dm.wrapper,s.state==="folder-choosing"?"ignore-dim":void 0,"d-flex justify-content-between"),children:s.state!=="folder-choosing"?b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:Dm.divButtons,children:[b.jsx(zV,{entityId:t,entityType:n,disabled:C,children:r.uploadFiles}),b.jsx(Wr,{onClick:()=>{l({type:"open-modal",modalType:"create-folder",chosenFolderId:s.activeFolder??"root"})},disabled:C,children:r.createFolder}),b.jsx(Wr,{disabled:s.activeFolder==="root"||((E=s.foldersMap.get(s.activeFolder))==null?void 0:E.isDefault),onClick:async()=>{var R;await a(`${r.deleteFolder} ${(R=s.foldersMap.get(s.activeFolder))==null?void 0:R.name}?`)&&p(s.activeFolder)},children:r.deleteFolder}),b.jsx(Wr,{disabled:s.activeFolder==="root"||((M=s.foldersMap.get(s.activeFolder))==null?void 0:M.isDefault),onClick:x,children:r.renameFolder})]}),!w&&!C?b.jsxs("div",{className:Dm.divButtons,children:[b.jsx(Wr,{onClick:()=>{l({type:"open-modal",modalType:"edit-file-properties"})},disabled:!v,children:r.editFileProperties}),b.jsx(Wr,{onClick:async()=>{await a(r.confirmDeleteFile(s.markedFiles.length))&&c(s.markedFiles)},disabled:m,children:r.delete}),$?b.jsx(Wr,{onClick:async()=>{await a(r.confirmDearchiveFile(s.markedFiles.length))&&await f(!0)},disabled:m,children:r.dearchivate}):b.jsx(Wr,{onClick:async()=>{await a(r.confirmArchiveFile(s.markedFiles.length))&&await f()},disabled:m||!y,children:r.archivate}),b.jsx(Wr,{onClick:_,disabled:m,children:r.rename}),b.jsx(Wr,{onClick:d,disabled:m,children:r.downloadZip})]}):null]}):s.state==="folder-choosing"?b.jsx(b.Fragment,{children:b.jsx(Wr,{onClick:()=>l({type:"return-from-folder-choosing"}),className:ce("ignore-dim","body-background-color"),children:r.back})}):void 0})},UV=({file:e})=>{const{confirm:t}=R0(),{reducer:[n],apiActions:{downloadFile:r}}=h.useContext(bn),{texts:{documents:i}}=h.useContext(sn),a=h.useCallback(async()=>{await t(i.confirmFileDownload(e.name,e.size==null?void 0:xs(e.size*1024*1024)))&&r(e.id)},[t,i,r,e.id,e.name,e.size]);return b.jsxs(Gf,{action:!0,onClick:a,children:[b.jsx(Bn,{variant:"body",className:"text-muted",children:eE(e.folderId,n.foldersMap)}),b.jsxs("div",{className:"d-flex justify-content-between gap-2",children:[b.jsx(Bn,{variant:"body",children:e.name}),b.jsx(Bn,{variant:"body",children:e.size==null?null:xs(e.size*1024*1024)})]})]})},HV="_typeSelect_m3myk_1",VV={typeSelect:HV},qV=()=>{const{reducer:[e]}=h.useContext(bn),{texts:{documents:t}}=h.useContext(sn),[n,r]=h.useState(""),[i,a]=h.useState(null),o=h.useMemo(()=>{const l=new Map;return e.filteredFiles.forEach(u=>{l.get(u.documentTypeId)===void 0&&l.set(u.documentTypeId,u.documentTypeName)}),[{id:null,name:t.all},...Array.from(l).map(u=>({id:u[0],name:u[1]}))]},[t.all,e.filteredFiles]),s=h.useMemo(()=>e.filteredFiles.filter(l=>k0(l.name,n)&&(i===null||l.documentTypeId===i)),[n,i,e.filteredFiles]);return b.jsxs("div",{className:"d-flex h-100 flex-column",children:[b.jsxs("div",{className:"d-flex gap-1 mb-1",children:[b.jsx(q4,{options:o,label:t.documentType,value:i,onChange:a,isNumber:!0,size:"sm",className:VV.typeSelect}),b.jsx(H4,{label:t.search,type:"text",value:n,onChange:l=>r(l===null?"":l),className:"flex-grow-1",size:"sm"})]}),b.jsx(nS,{className:"overflow-y-auto",children:s.map(l=>b.jsx(UV,{file:l},l.id))})]})};function YV(e){return{name:e.name,defaultDocType:e.defaultDocType,childrenIds:[],parentId:e.parentId??null,isDefault:e.isDefault,onlyRead:e.onlyRead}}function GV(e){const t=[],n=new Map,r=new Map;return e.forEach(i=>{n.set(i.id,YV(i)),i.parentId===null?t.push(i.id):r.set(i.id,i.parentId)}),r.forEach((i,a)=>{const o=n.get(i);if(o===void 0)throw new Error(`Did not get folder with ID ${i}, which is supposed to be parent directory of folder with ID ${a}`);o.childrenIds.push(a)}),{dirsMap:n,rootIds:t}}function Uw(e,t){const n=t.toUpperCase();return e.filter(r=>{var a;const i=(a=r.name)==null?void 0:a.toUpperCase();return i==null?void 0:i.includes(n)})}function KV(e,t){return e.map(n=>{var r;return{...n,folderName:((r=t.get(n.folderId))==null?void 0:r.name)??""}})}const ZV=([e,t],n,r)=>{const{texts:{documents:i}}=h.useContext(sn),{startLoading:a,stopLoading:o}=h.useContext(Xf),{addNotification:s}=ah(),l=oh(),c=h.useCallback(async w=>{a("documentList");try{const y=(await l.get(`/documents/${n}/${r}`)).data,{dirsMap:$,rootIds:E}=GV(y.folders),M=KV(y.documents,$);t({type:"load-data",files:M,foldersMap:$,rootFolderIds:E,setActiveFolder:w})}finally{o("documentList")}},[l,t,r,n,a,o]);h.useEffect(()=>{c(!0)},[c]);const u=h.useCallback(async()=>{a("documents-types");try{const w=await l.get(`/documents/types/${n}`);if(w.status!==200)throw new Error(`Unexpected status code: ${w.status}`);t({type:"load-document-types",documentTypes:w.data})}finally{o("documents-types")}},[l,t,n,a,o]);h.useEffect(()=>{u()},[u]);const d=h.useCallback(async(w,C)=>{const y=C??e.markedFiles;a("documentsMove");try{await l.put(`/documents/move-to-folder?folderId=${w}`,y),t({type:"update-files",fileIds:y,newProperties:{folderId:w}}),s(i.fileMoveSuccessful(y.length,e.foldersMap.get(w).name),"success")}finally{o("documentsMove")}},[e.markedFiles,e.foldersMap,a,l,t,s,i,o]),f=h.useCallback(async w=>{const C=w??e.markedFiles;a("documentsFilesDelete");try{const y=await l.delete(`/documents/delete?${Ag(C,"documentIds")}`);if(y.status!==200)throw new Error(`Unexpected status code: ${y.status}`);t({type:"delete-files",fileIds:C}),s(i.fileDeleteSuccessful(C.length),"success")}finally{o("documentsFilesDelete")}},[e.markedFiles,a,l,t,s,i,o]),p=h.useCallback(async w=>{var C;if(!(w==="root"||(C=e.foldersMap.get(w))!=null&&C.isDefault)){a("documentsFolderDelete");try{const y=await l.delete(`/documents/folder/${w}`);if(y.status!==200)throw new Error(`Unexpected status code: ${y.status}`);t({type:"delete-folder",folderId:w}),s(i.folderDeleteSuccessful(e.foldersMap.get(w).name),"success")}finally{o("documentsFolderDelete")}}},[e.foldersMap,a,l,t,s,i,o]),g=h.useCallback(async w=>{a("documentsRename");try{const C=await l.put("/documents/update-name",{documentIds:e.markedFiles,name:w});if(C.status!==200)throw new Error(`Unexpected status code: ${C.status}`);c()}finally{o("documentsRename")}},[a,l,e.markedFiles,c,o]),m=h.useCallback(async w=>{a("documents-archivate");try{const C=await l.put(`/documents/${w?"dearchive":"archive"}`,e.markedFiles);if(C.status!==200)throw new Error(`Unexpected status code: ${C.status}`);t({type:"update-files",fileIds:e.markedFiles,newProperties:{archive:!w}}),s((w?i.dearchivateSuccessful:i.archivateSuccessful)(e.markedFiles.length),"success")}finally{o("documents-archivate")}},[a,l,e.markedFiles,t,s,i.archivateSuccessful,i.dearchivateSuccessful,o]),v=h.useCallback(async()=>{var C;if(e.activeFolder==="root")return;const w=e.markedFiles.length;s(i.downloadAsZip(w),"info"),a("documents-ZIP_download");try{const y=await l.get(`/documents/download-zip?${Ag(e.markedFiles,"documentIds")}`,{responseType:"blob"});zd(y.data,(((C=e.foldersMap.get(e.activeFolder))==null?void 0:C.name)??"")+"_files")}finally{o("documents-ZIP_download")}},[e.activeFolder,e.markedFiles,e.foldersMap,s,i,a,l,o]),x=h.useCallback(async(w,C)=>{s(i.downloadingFile,"info"),a("documents-downloading_file");try{const y=await l.get(`/documents/${w}?isSmall=true`,{responseType:"blob"}),$=e.constantFiles.find(M=>M.id===w),E=`${($==null?void 0:$.name)??w.toString()}.${$!=null&&$.fileExtension?$==null?void 0:$.fileExtension.toLowerCase():"unknown"}`;zd(y.data,E,C)}finally{o("documents-downloading_file")}},[s,i.downloadingFile,a,l,e.constantFiles,o]),_=h.useCallback(async(w,C)=>{a("documents-upload"),s(i.uploadingDocuments,"info");try{await l.postForm("/documents/upload",{files:w,...C}),await c()}finally{o("documents-upload")}},[a,s,i.uploadingDocuments,l,c,o]);return{loadDocuments:c,moveDocuments:d,deleteFiles:f,deleteDirectory:p,renameFiles:g,archivateFiles:m,downloadAsZip:v,downloadFile:x,uploadFiles:_}},XV=(e,t)=>{var n,r;switch(t.type){case"load-data":{const i={...e,constantFiles:t.files,filteredFiles:Uw(t.files,e.searchString),foldersMap:t.foldersMap,rootFolderIds:t.rootFolderIds};if(t.setActiveFolder){const a=t.rootFolderIds.find(o=>t.files.some(s=>s.archive===!1&&s.folderId===o))??"root";i.activeFolder=a}return i}case"load-document-types":return{...e,documentTypes:t.documentTypes};case"select-folder":return{...e,activeFolder:t.folderId,markedFiles:[]};case"mark-file":{const i=e.markedFiles.includes(t.fileId)?[...e.markedFiles.filter(a=>a!==t.fileId)]:[...e.markedFiles,t.fileId];return{...e,state:i.length>0?"selection-file":"explorer",markedFiles:i}}case"mark-files-by-action":{const i=typeof t.setStateAction=="function"?t.setStateAction(e.markedFiles):t.setStateAction;return{...e,state:i.length>0?"selection-file":"explorer",markedFiles:i}}case"mark-all-files":return e.markedFiles.length<e.filteredFiles.filter(i=>i.folderId===e.activeFolder).length?{...e,markedFiles:e.filteredFiles.filter(i=>i.folderId===e.activeFolder).map(i=>i.id),state:"explorer"}:{...e,markedFiles:[],state:"explorer"};case"enter-folder-choosing":return e.state==="folder-choosing"||e.state==="openned-modal"?e:{...e,state:"folder-choosing",canTargetRoot:t.canTargetRoot??!1,previousState:e.state,choosingType:t.choosingType};case"return-from-folder-choosing":return e.state!=="folder-choosing"?e:{...e,state:e.previousState};case"update-files":return{...e,filteredFiles:[...e.filteredFiles.map(i=>t.fileIds.includes(i.id)?{...i,...t.newProperties}:i)],constantFiles:[...e.constantFiles.map(i=>t.fileIds.includes(i.id)?{...i,...t.newProperties}:i)],markedFiles:[],state:"explorer"};case"update-folders":{const i=new Map(e.foldersMap);return t.folderIds.forEach(a=>{i.set(a,{...e.foldersMap.get(a),...t.newProperties})}),{...e,foldersMap:i}}case"delete-files":return{...e,filteredFiles:[...e.filteredFiles.filter(i=>!t.fileIds.includes(i.id))],constantFiles:[...e.constantFiles.filter(i=>!t.fileIds.includes(i.id))],markedFiles:e.markedFiles.filter(i=>!t.fileIds.includes(i)),state:"explorer"};case"open-modal":switch(t.modalType){case"create-folder":return{...e,state:"openned-modal",modalType:t.modalType,chosenFolderId:t.chosenFolderId};default:return{...e,state:"openned-modal",modalType:t.modalType}}case"close-modal":return{...e,state:"explorer"};case"delete-folder":{const i=new Map(e.foldersMap),a=(n=i.get(t.folderId))==null?void 0:n.parentId;let o=[...e.rootFolderIds];if(a){const s=JSON.parse(JSON.stringify(i.get(a)));s.childrenIds=s.childrenIds.filter(l=>l!==t.folderId),i.set(a,s)}else o=o.filter(s=>s!==t.folderId);return i.delete(t.folderId),{...e,rootFolderIds:o,foldersMap:i,activeFolder:"root"}}case"create-folder":{const i=new Map(e.foldersMap);i.set(t.folderId,{name:t.folderData.name,defaultDocType:(r=e.documentTypes.find(o=>o.id===t.folderData.documentTypeId))==null?void 0:r.name,childrenIds:[],parentId:t.folderData.parentFolderId,isDefault:!1,onlyRead:t.isOnlyRead});const a=[...e.rootFolderIds];if(t.folderData.parentFolderId===null)a.push(t.folderId);else{const o=i.get(t.folderData.parentFolderId),s=JSON.parse(JSON.stringify(o));s.childrenIds.push(t.folderId),i.set(t.folderData.parentFolderId,s)}return{...e,state:"explorer",rootFolderIds:a,foldersMap:i}}case"search-files":{const i=Uw(e.constantFiles,t.searchString);return{...e,searchString:t.searchString,filteredFiles:i,markedFiles:e.markedFiles.filter(a=>i.map(o=>o.id).includes(a))}}default:throw new Error("Wrong action.type specified.")}},QV=()=>{const e={state:"explorer",activeFolder:"root",searchString:"",filteredFiles:[],constantFiles:[],foldersMap:new Map,rootFolderIds:[],markedFiles:[],documentTypes:[]},[t,n]=h.useReducer(XV,e);return[t,n]},JV=h.memo(({entityType:e,entityId:t,className:n,BnfTableComponent:r,tableIdentifier:i,customRootFolderName:a,writePermissions:o=!0,...s})=>{const{isMobile:l}=iu(),{ProjectIconComponent:c,texts:{documents:u}}=h.useContext(sn),[d,f]=QV(),[p,g]=h.useState(null),{loadDocuments:m,...v}=ZV([d,f],e,t),x=h.useMemo(()=>({entityId:t,entityType:e,apiActions:v,loadDocuments:m,reducer:[d,f]}),[t,e,v,m,d,f]),{getDropProps:_}=W0();return l?b.jsx(bn.Provider,{value:x,children:b.jsx(qV,{})}):b.jsx("div",{...s,className:ce(ja.wrapper,n),onDragOver:w=>{w.dataTransfer.dropEffect="none",w.stopPropagation(),w.preventDefault()},onDragEnter:w=>{w.dataTransfer.dropEffect="none",w.stopPropagation(),w.preventDefault()},children:b.jsxs(bn.Provider,{value:x,children:[b.jsx("div",{className:ce(d.state==="folder-choosing"?"dim-others":void 0,ja.explorerWindow),children:b.jsxs("ul",{className:ja.folderList,children:[b.jsx(NI,{customText:a??e}),d.rootFolderIds.map(w=>b.jsx(tE,{dirId:w,writePermissions:o},w))]})}),b.jsxs("div",{className:ce(ja.explorerWindow,ja.fileList),...o&&YI(d)?_(d.activeFolder,{onFilesDrop:w=>g(w),ignoreInner:!0}):{},children:[b.jsxs("div",{className:ja.dndText,children:[b.jsx(c,{icon:"file-upload",iconProps:{style:{marginRight:0}}}),b.jsx("span",{children:u.dropToUpload})]}),b.jsx(IV,{tableIdentifier:i,BnfTableComponent:r,writePermissions:o},(d.activeFolder==="root").toString())]}),o?b.jsx(WV,{className:ja.controls,entityType:e,entityId:t}):null,b.jsx(VI,{}),p!==null?b.jsx(U0,{files:p,handleClose:()=>g(null),targetFolderId:d.activeFolder==="root"?void 0:d.activeFolder}):null]})})}),eq="Left",tq="Right",nq="Up",rq="Down",Jo={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},iv={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},Hw="mousemove",Vw="mouseup",iq="touchend",aq="touchmove",oq="touchstart";function sq(e,t,n,r){return e>t?n>0?tq:eq:r>0?rq:nq}function qw(e,t){if(t===0)return e;const n=Math.PI/180*t,r=e[0]*Math.cos(n)+e[1]*Math.sin(n),i=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[r,i]}function lq(e,t){const n=u=>{const d="touches"in u;d&&u.touches.length>1||e((f,p)=>{p.trackMouse&&!d&&(document.addEventListener(Hw,r),document.addEventListener(Vw,o));const{clientX:g,clientY:m}=d?u.touches[0]:u,v=qw([g,m],p.rotationAngle);return p.onTouchStartOrOnMouseDown&&p.onTouchStartOrOnMouseDown({event:u}),Object.assign(Object.assign(Object.assign({},f),iv),{initial:v.slice(),xy:v,start:u.timeStamp||0})})},r=u=>{e((d,f)=>{const p="touches"in u;if(p&&u.touches.length>1)return d;if(u.timeStamp-d.start>f.swipeDuration)return d.swiping?Object.assign(Object.assign({},d),{swiping:!1}):d;const{clientX:g,clientY:m}=p?u.touches[0]:u,[v,x]=qw([g,m],f.rotationAngle),_=v-d.xy[0],w=x-d.xy[1],C=Math.abs(_),y=Math.abs(w),$=(u.timeStamp||0)-d.start,E=Math.sqrt(C*C+y*y)/($||1),M=[_/($||1),w/($||1)],k=sq(C,y,_,w),R=typeof f.delta=="number"?f.delta:f.delta[k.toLowerCase()]||Jo.delta;if(C<R&&y<R&&!d.swiping)return d;const S={absX:C,absY:y,deltaX:_,deltaY:w,dir:k,event:u,first:d.first,initial:d.initial,velocity:E,vxvy:M};S.first&&f.onSwipeStart&&f.onSwipeStart(S),f.onSwiping&&f.onSwiping(S);let T=!1;return(f.onSwiping||f.onSwiped||f[`onSwiped${k}`])&&(T=!0),T&&f.preventScrollOnSwipe&&f.trackTouch&&u.cancelable&&u.preventDefault(),Object.assign(Object.assign({},d),{first:!1,eventData:S,swiping:!0})})},i=u=>{e((d,f)=>{let p;if(d.swiping&&d.eventData){if(u.timeStamp-d.start<f.swipeDuration){p=Object.assign(Object.assign({},d.eventData),{event:u}),f.onSwiped&&f.onSwiped(p);const g=f[`onSwiped${p.dir}`];g&&g(p)}}else f.onTap&&f.onTap({event:u});return f.onTouchEndOrOnMouseUp&&f.onTouchEndOrOnMouseUp({event:u}),Object.assign(Object.assign(Object.assign({},d),iv),{eventData:p})})},a=()=>{document.removeEventListener(Hw,r),document.removeEventListener(Vw,o)},o=u=>{a(),i(u)},s=(u,d)=>{let f=()=>{};if(u&&u.addEventListener){const p=Object.assign(Object.assign({},Jo.touchEventOptions),d.touchEventOptions),g=[[oq,n,p],[aq,r,Object.assign(Object.assign({},p),d.preventScrollOnSwipe?{passive:!1}:{})],[iq,i,p]];g.forEach(([m,v,x])=>u.addEventListener(m,v,x)),f=()=>g.forEach(([m,v])=>u.removeEventListener(m,v))}return f},c={ref:u=>{u!==null&&e((d,f)=>{if(d.el===u)return d;const p={};return d.el&&d.el!==u&&d.cleanUpTouch&&(d.cleanUpTouch(),p.cleanUpTouch=void 0),f.trackTouch&&u&&(p.cleanUpTouch=s(u,f)),Object.assign(Object.assign(Object.assign({},d),{el:u}),p)})}};return t.trackMouse&&(c.onMouseDown=n),[c,s]}function cq(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function Sb(e){const{trackMouse:t}=e,n=ie.useRef(Object.assign({},iv)),r=ie.useRef(Object.assign({},Jo)),i=ie.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Jo),e);let a;for(a in Jo)r.current[a]===void 0&&(r.current[a]=Jo[a]);const[o,s]=ie.useMemo(()=>lq(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=cq(n.current,r.current,i.current,s),o}const uq="_side-content-bar_16o0s_1",dq="_mobile_16o0s_12",fq="_expanded_16o0s_20",hq="_content-container_16o0s_23",pq="_resizer_16o0s_31",mq="_expander_16o0s_46",gq="_icon_16o0s_65",pi={sideContentBar:uq,mobile:dq,expanded:fq,contentContainer:hq,resizer:pq,expander:mq,icon:gq},Jk=({width:e,children:t,isExpandedOnMobileState:[n,r],resizeable:i=!0,onResize:a})=>{const{ProjectIconComponent:o}=h.useContext(sn),{isMobile:s}=iu(),l=Sb({onSwipedRight:d=>{d.velocity>.8&&r(!1)},delta:100}),[c,u]=h.useState(null);return b.jsxs(b.Fragment,{children:[b.jsxs("section",{className:ce("luminus-side-content-bar shadow",pi.sideContentBar,{[pi.mobile]:s},{[pi.expanded]:n}),style:{width:`${e}px`},...l,children:[i&&!s?b.jsx("div",{role:"button",className:ce(pi.resizer,"luminus-side-content-bar-resizer","shadow"),draggable:!0,onDragStart:d=>u({startX:d.clientX,widthStart:e}),onDrag:d=>a(((c==null?void 0:c.widthStart)??0)+(((c==null?void 0:c.startX)??0)-d.clientX)),onDragEnd:()=>u(null),children:b.jsx(o,{className:pi.icon,icon:"resizer-horizontal"})}):null,b.jsx("div",{className:pi.contentContainer,children:t})]}),s?b.jsx("div",{role:"button",onClick:()=>r(!n),className:ce(pi.expander,{[pi.expanded]:n},"luminus-side-content-bar-expander","shadow"),children:b.jsx(o,{className:pi.icon,icon:"chevron-left"})}):null]})},vq=({title:e})=>b.jsx("div",{className:"mb-3",children:typeof e=="string"?b.jsx(Bn,{variant:"h3",children:e}):e}),bq="_full-screen-container_1rm4r_1",eT={fullScreenContainer:bq},yq=ce("overflow-hidden luminus-full-screen-container",eT.fullScreenContainer),xq="container-fluid",wq=({title:e,children:t,sideContent:n,sideContentWidth:r=250,sideContentResizeable:i=!0,noPadding:a,className:o,variant:s="main",helmet:l,unavailableOnMobile:c})=>{const{addHelmet:u,removeHelmet:d}=h.useContext(F4),{texts:{container:f}}=h.useContext(sn),[p,g]=h.useState(r),[m,v]=h.useState(!1),x=h.useMemo(()=>{switch(s){case"fullScreen":return yq;case"main":return xq;default:throw new Error(`PageContainer got incorrect variant type: ${s}`)}},[s]);h.useEffect(()=>(l?u(l):typeof e=="string"&&e&&u(e),()=>d()),[l,u,d,e]);const _=Sb({onSwipedLeft:y=>{y.velocity>.8&&v(!0)},delta:100}),{isMobile:w}=iu(),C=h.useMemo(()=>w&&c,[w,c]);return h.useEffect(()=>{g(r)},[r]),b.jsxs(b.Fragment,{children:[b.jsx("div",{className:ce(x,a?"p-0":"p-3",o),style:s==="fullScreen"?{width:n?`calc(100% - ${p}px)`:"100%"}:void 0,..._,children:b.jsx("div",{className:s==="fullScreen"?eT.fullScreenContainer:void 0,style:s==="main"?{paddingRight:n?`${p}px`:void 0}:{height:"100%",width:"100%"},children:C?b.jsx(Ab,{variant:"warning",children:f.unavailableOnMobile}):b.jsxs(b.Fragment,{children:[e?b.jsx(vq,{title:e}):null,t]})})}),n&&!C?b.jsx(Jk,{width:p,isExpandedOnMobileState:[m,v],resizeable:i,onResize:y=>i?g(y):{},children:n}):null]})};var Eb={};Eb.match=kq;Eb.parse=tT;var _q=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,Cq=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,$q=/^(?:(min|max)-)?(.+)/,Sq=/(em|rem|px|cm|mm|in|pt|pc)?$/,Eq=/(dpi|dpcm|dppx)?$/;function kq(e,t){return tT(e).some(function(n){var r=n.inverse,i=n.type==="all"||t.type===n.type;if(i&&r||!(i||r))return!1;var a=n.expressions.every(function(o){var s=o.feature,l=o.modifier,c=o.value,u=t[s];if(!u)return!1;switch(s){case"orientation":case"scan":return u.toLowerCase()===c.toLowerCase();case"width":case"height":case"device-width":case"device-height":c=Kw(c),u=Kw(u);break;case"resolution":c=Gw(c),u=Gw(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":c=Yw(c),u=Yw(u);break;case"grid":case"color":case"color-index":case"monochrome":c=parseInt(c,10)||1,u=parseInt(u,10)||0;break}switch(l){case"min":return u>=c;case"max":return u<=c;default:return u===c}});return a&&!r||!a&&r})}function tT(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(_q),r=n[1],i=n[2],a=n[3]||"",o={};return o.inverse=!!r&&r.toLowerCase()==="not",o.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],o.expressions=a.map(function(s){var l=s.match(Cq),c=l[1].toLowerCase().match($q);return{modifier:c[1],feature:c[2],value:l[2]}}),o})}function Yw(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function Gw(e){var t=parseFloat(e),n=String(e).match(Eq)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function Kw(e){var t=parseFloat(e),n=String(e).match(Sq)[1];switch(n){case"em":return t*16;case"rem":return t*16;case"cm":return t*96/2.54;case"mm":return t*96/2.54/10;case"in":return t*96;case"pt":return t*72;case"pc":return t*72/12;default:return t}}var Tq=Eb.match,Zw=typeof window<"u"?window.matchMedia:null;function Oq(e,t,n){var r=this,i;Zw&&!n&&(i=Zw.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(s)):(this.matches=Tq(e,t),this.media=e),this.addListener=a,this.removeListener=o,this.dispose=l;function a(c){i&&i.addListener(c)}function o(c){i&&i.removeListener(c)}function s(c){r.matches=c.matches,r.media=c.media}function l(){i&&i.removeListener(s)}}function Mq(e,t,n){return new Oq(e,t,n)}var Aq=Mq;const Rq=on(Aq);var jq=/[A-Z]/g,Dq=/^ms-/,Nm={};function Nq(e){return"-"+e.toLowerCase()}function nT(e){if(Nm.hasOwnProperty(e))return Nm[e];var t=e.replace(jq,Nq);return Nm[e]=Dq.test(t)?"-"+t:t}function Iq(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(let a=0;a<i;a++){const o=n[a];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}const Fn=ve.oneOfType([ve.string,ve.number]),rT={all:ve.bool,grid:ve.bool,aural:ve.bool,braille:ve.bool,handheld:ve.bool,print:ve.bool,projection:ve.bool,screen:ve.bool,tty:ve.bool,tv:ve.bool,embossed:ve.bool},Pq={orientation:ve.oneOf(["portrait","landscape"]),scan:ve.oneOf(["progressive","interlace"]),aspectRatio:ve.string,deviceAspectRatio:ve.string,height:Fn,deviceHeight:Fn,width:Fn,deviceWidth:Fn,color:ve.bool,colorIndex:ve.bool,monochrome:ve.bool,resolution:Fn,type:Object.keys(rT)},{type:eye,...Lq}=Pq,Fq={minAspectRatio:ve.string,maxAspectRatio:ve.string,minDeviceAspectRatio:ve.string,maxDeviceAspectRatio:ve.string,minHeight:Fn,maxHeight:Fn,minDeviceHeight:Fn,maxDeviceHeight:Fn,minWidth:Fn,maxWidth:Fn,minDeviceWidth:Fn,maxDeviceWidth:Fn,minColor:ve.number,maxColor:ve.number,minColorIndex:ve.number,maxColorIndex:ve.number,minMonochrome:ve.number,maxMonochrome:ve.number,minResolution:Fn,maxResolution:Fn,...Lq},Bq={...rT,...Fq};var zq={all:Bq};const Wq=e=>`not ${e}`,Uq=(e,t)=>{const n=nT(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?Wq(n):`(${n}: ${t})`},Hq=e=>e.join(" and "),Vq=e=>{const t=[];return Object.keys(zq.all).forEach(n=>{const r=e[n];r!=null&&t.push(Uq(n,r))}),Hq(t)},qq=h.createContext(void 0),Yq=e=>e.query||Vq(e),Xw=e=>e?Object.keys(e).reduce((n,r)=>(n[nT(r)]=e[r],n),{}):void 0,iT=()=>{const e=h.useRef(!1);return h.useEffect(()=>{e.current=!0},[]),e.current},Gq=e=>{const t=h.useContext(qq),n=()=>Xw(e)||Xw(t),[r,i]=h.useState(n);return h.useEffect(()=>{const a=n();Iq(r,a)||i(a)},[e,t]),r},Kq=e=>{const t=()=>Yq(e),[n,r]=h.useState(t);return h.useEffect(()=>{const i=t();n!==i&&r(i)},[e]),n},Zq=(e,t)=>{const n=()=>Rq(e,t||{},!!t),[r,i]=h.useState(n),a=iT();return h.useEffect(()=>{if(a){const o=n();return i(o),()=>{o&&o.dispose()}}},[e,t]),r},Xq=e=>{const[t,n]=h.useState(e.matches);return h.useEffect(()=>{const r=i=>{n(i.matches)};return e.addListener(r),n(e.matches),()=>{e.removeListener(r)}},[e]),t},Im=(e,t,n)=>{const r=Gq(t),i=Kq(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const a=Zq(i,r),o=Xq(a);return iT(),h.useEffect(()=>{},[o]),h.useEffect(()=>()=>{a&&a.dispose()},[]),o},Qq=["sm","md","lg","always"],aT="ResponsiveContextDropdownItem",Jq=e=>e.type.displayName===aT,kb=e=>({});kb.displayName=aT;function eY(e){return e.type&&e.type===h.Fragment}const oT=e=>{const t=[];Array.isArray(e)?t.push(...e):t.push(e);const n=[];return t.forEach(r=>{if(r){if(eY(r)){n.push(...oT(r.props.children));return}n.push(r)}}),n},tY=(e,t)=>{if(t===void 0)return e;const{searchQueryString:n,...r}=t;return Is.generatePath(e,r)+"?"+n},nY="_disabled_9mp5v_1",rY={disabled:nY},iY=()=>{const{ProjectIconComponent:e}=h.useContext(sn),{checkUserHasPermissions:t}=I4();return{getProcessedChildren:h.useCallback((r,i)=>{const a=[],o=[];let s=null;const l=u=>{const{hideOn:d,children:f,cKey:p,to:g,toRoute:m,disabled:v,icon:x,pathParams:_,...w}=u.props,C=(m==null?void 0:m.permissions)!=null,y=(m==null?void 0:m.permissions)!=null&&t(m==null?void 0:m.permissions),$=(v??!1)||C&&!y,E=g??(m==null?void 0:tY(m==null?void 0:m.route,_)),M=f??(m==null?void 0:m.name),k=x??(m!=null?b.jsx(e,{icon:"link"}):void 0);if(d==="always"||Qq.indexOf(d)>=i){s&&o.length>0&&o.push(s),s=null;const R=ce(w.className,{[rY.disabled]:$});E!=null?o.push(b.jsx(as,{...w,as:"link",to:E,disabled:$,icon:k,className:R,children:M},p)):o.push(b.jsx(as,{...w,icon:k,className:R,children:M},p))}else{const R=E!=null?{as:"link",href:E}:{};a.push(b.jsx(uh,{...w,...R,icon:k,className:ce($?"disabled":void 0,w.className),children:M},p))}};return oT(r).forEach(u=>{u&&h.isValidElement(u)&&(Jq(u)?l(u):s=u)}),{buttons:a,dropdownItems:o}},[e,t])}},sT=({children:e})=>{const{getProcessedChildren:t}=iY(),n=Im({maxWidth:768}),r=Im({minWidth:769,maxWidth:1200}),i=Im({minWidth:1201}),a=[n,r,i].indexOf(!0),{buttons:o,dropdownItems:s}=t(e,a);return b.jsxs("div",{className:"d-flex gap-1",children:[b.jsx(b.Fragment,{children:o}),s.length>0?b.jsx(z0,{toggle:b.jsx(B0,{as:F0}),children:s}):null]})};sT.Item=kb;const aY=h.createContext(void 0);function oY(e,t,n,r){var i=this,a=h.useRef(null),o=h.useRef(0),s=h.useRef(0),l=h.useRef(null),c=h.useRef([]),u=h.useRef(),d=h.useRef(),f=h.useRef(e),p=h.useRef(!0);f.current=e;var g=typeof window<"u",m=!t&&t!==0&&g;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var v=!!(n=n||{}).leading,x=!("trailing"in n)||!!n.trailing,_="maxWait"in n,w="debounceOnServer"in n&&!!n.debounceOnServer,C=_?Math.max(+n.maxWait||0,t):null;h.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]);var y=h.useMemo(function(){var $=function(j){var D=c.current,N=u.current;return c.current=u.current=null,o.current=j,s.current=s.current||j,d.current=f.current.apply(N,D)},E=function(j,D){m&&cancelAnimationFrame(l.current),l.current=m?requestAnimationFrame(j):setTimeout(j,D)},M=function(j){if(!p.current)return!1;var D=j-a.current;return!a.current||D>=t||D<0||_&&j-o.current>=C},k=function(j){return l.current=null,x&&c.current?$(j):(c.current=u.current=null,d.current)},R=function j(){var D=Date.now();if(v&&s.current===o.current&&S(),M(D))return k(D);if(p.current){var N=t-(D-a.current),O=_?Math.min(N,C-(D-o.current)):N;E(j,O)}},S=function(){r&&r({})},T=function(){if(g||w){var j=Date.now(),D=M(j);if(c.current=[].slice.call(arguments),u.current=i,a.current=j,D){if(!l.current&&p.current)return o.current=a.current,E(R,t),v?$(a.current):d.current;if(_)return E(R,t),$(a.current)}return l.current||E(R,t),d.current}};return T.cancel=function(){var j=l.current;j&&(m?cancelAnimationFrame(l.current):clearTimeout(l.current)),o.current=0,c.current=a.current=u.current=l.current=null,j&&r&&r({})},T.isPending=function(){return!!l.current},T.flush=function(){return l.current?k(Date.now()):d.current},T},[v,_,t,C,x,m,g,w,r]);return y}function sY(e,t){return e===t}function Tb(e,t,n){var r=n&&n.equalityFn||sY,i=h.useRef(e),a=h.useState({})[1],o=oY(h.useCallback(function(l){i.current=l,a({})},[a]),t,n,a),s=h.useRef(e);return r(s.current,e)||(o(e),s.current=e),[i.current,o]}const lY="_feedback_esh1j_1",cY="_feedback-spacer_esh1j_8",Qw={feedback:lY,feedbackSpacer:cY},Sh=({message:e})=>b.jsxs(b.Fragment,{children:[b.jsx("div",{className:ce("invalid-feedback luminus-invalid-feedback",Qw.feedback),children:e}),b.jsx("div",{className:ce("invalid-feedback-spacer",Qw.feedbackSpacer),children:e})]}),uY="_wrapper_1mvyk_1",dY="_open_1mvyk_9",fY="_dropdown_1mvyk_13",hY="_search-input-container_1mvyk_19",pY="_search-input_1mvyk_19",mY="_loading-container_1mvyk_25",gY="_items-container_1mvyk_32",vY="_header-row_1mvyk_38",bY="_name_1mvyk_49",yY="_item_1mvyk_32",xY="_column-item_1mvyk_65",wY="_action-buttons-container_1mvyk_89",_Y="_reverse_1mvyk_97",CY="_action-button_1mvyk_89",$Y="_actions-dropdown_1mvyk_110",wn={wrapper:uY,open:dY,dropdown:fY,searchInputContainer:hY,searchInput:pY,loadingContainer:mY,itemsContainer:gY,headerRow:vY,name:bY,item:yY,columnItem:xY,actionButtonsContainer:wY,reverse:_Y,actionButton:CY,actionsDropdown:$Y},lT=({show:e,onCancel:t,items:n,suggestedItems:r,suggestedItemsTitle:i,currentSelection:a,onSelectionChange:o,onSearchQueryChange:s,texts:l,itemsNameWidth:c,additionalColumns:u,displayIdAsName:d=!1,autoHideSearch:f=!1,allItemsLength:p,disabled:g,isLoading:m=!1,inputRef:v,archiveColumn:x="archive",addNewOptionPath:_,refreshOptions:w,noRemoveButton:C=!1})=>{var ye;const{texts:{customSelect:y}}=h.useContext(sn),$=h.useRef(null),E=h.useRef(null),M=h.useRef(null),k=h.useRef(null),R=h.useRef(null),[S,T]=h.useState(""),[j]=Tb(S,500),[,D]=h.useState(!1),{copyToClipboard:N}=L4(),O=(ye=v.current)==null?void 0:ye.getBoundingClientRect(),P=(O==null?void 0:O.x)??0,W=((O==null?void 0:O.x)??0)+((O==null?void 0:O.width)??0),U=(O==null?void 0:O.y)??0,I=((O==null?void 0:O.y)??0)+((O==null?void 0:O.height)??0),z=(O==null?void 0:O.width)??0,Y=(O==null?void 0:O.height)??0,X=5,{isMobile:K}=iu(),Z=8,ee=h.useMemo(()=>P?P>window.innerWidth/2-Z:!1,[P]),J=h.useMemo(()=>U?U>window.innerHeight/2-Z:!1,[U]);h.useEffect(()=>{var de;e&&((de=M.current)==null||de.focus())},[M,e]),h.useEffect(()=>{e||T("")},[e]),h.useEffect(()=>{s&&s(j)},[j,s]);const[B,L]=h.useState(null);h.useEffect(()=>{e&&n.length>0?L(0):L(null)},[n,e]);const F=h.useMemo(()=>B!==null?n.at(B)??null:null,[B,n]),H=h.useCallback((de,be)=>{var Ee,Le;const le=document.getElementById(`item-${de}`);if(le){const Ft=le.clientHeight??0;be==="down"?(Ee=k.current)==null||Ee.scrollBy({left:0,top:Ft,behavior:"smooth"}):(Le=k.current)==null||Le.scrollBy({left:0,top:-Ft,behavior:"smooth"})}},[]),A=h.useCallback(de=>{if(B===null||g)return;const be=B+de;be<0||be>=n.length||L(le=>(le!==null&&H(le,de>0?"down":"up"),be))},[B,n,g,H]),Q=h.useCallback(de=>{if(e)switch(de.key){case"Escape":de.stopPropagation(),de.preventDefault(),t();break;case"Enter":de.stopPropagation(),de.preventDefault(),g||o(F);break;case"ArrowUp":de.stopPropagation(),de.preventDefault(),A(-1);break;case"ArrowDown":de.stopPropagation(),de.preventDefault(),A(1);break}},[t,e,A,F,g,o]),q=h.useCallback(()=>{D(de=>!de)},[]);h.useEffect(()=>(window.addEventListener("scroll",q),()=>{window.removeEventListener("scroll",q)}),[q]),h.useEffect(()=>(window.addEventListener("resize",q),()=>{window.removeEventListener("resize",q)}),[q]),P4(Q),N4([$,E,R],t);const G=c??(u&&u.length>0?250:0),oe=(u==null?void 0:u.reduce((de,be)=>de+(be.width??100),0))??0,re=h.useMemo(()=>(a&&e&&!g&&!C)??!1,[a,e,g,C]),ne=h.useMemo(()=>(a&&e)??!1,[a,e]),se=h.useMemo(()=>e&&(ne||_!==void 0||w!==void 0),[e,ne,_,w]),fe=32,_e=K?`calc(100vw - ${fe}px)`:`calc(max(${z}px, calc(${G}px + ${oe}px)))`,xe=h.useMemo(()=>(S.length<1&&r&&r.length>0?r:n).map(de=>{var be,le;return d?((be=de.id)==null?void 0:be.toString())??"":((le=de.name)==null?void 0:le.toString())??""}).reduce((de,be)=>de.length>be.length?de:be,""),[S,r,n,d]);return b.jsxs(b.Fragment,{children:[b.jsx(cT,{show:e,onClick:t}),b.jsxs("div",{className:ce("luminus-dropdown-picker-actions",wn.actionButtonsContainer,{[wn.reverse]:ee}),style:{top:`calc(${U}px + ${Y/2}px - 12px)`,left:ee?re&&ne?`calc(${P}px - 24px - 8px - 24px - 4px)`:`calc(${P}px - 24px - 8px)`:`calc(${W}px + 8px)`},children:[re&&b.jsx("button",{ref:E,type:"button",className:ce("luminus-dropdown-picker-clear-button",wn.actionButton),onClick:()=>!g&&o(null),children:b.jsx(Bn,{variant:"caption",className:"text-danger",children:b.jsx(CS,{size:16})})}),se?b.jsx("div",{ref:R,children:b.jsxs(z0,{toggle:b.jsx(B0,{as:F0,className:ce("luminus-dropdown-picker-actions-dropdown",wn.actionsDropdown),icon:b.jsx(Bn,{variant:"caption",className:"text-primary",children:b.jsx(SS,{size:16})})}),children:[ne?b.jsx(as,{icon:b.jsx(vj,{}),onClick:()=>{var de,be;N(d?((de=a==null?void 0:a.id)==null?void 0:de.toString())??"":((be=a==null?void 0:a.name)==null?void 0:be.toString())??"")},children:y.copySelection}):null,ne&&(_||w)?b.jsx(G4,{}):null,_?b.jsx(as,{icon:b.jsx(gj,{}),onClick:()=>{window.open(_,"_blank")},children:y.addNewOption}):null,w?b.jsx(as,{icon:b.jsx(Tj,{}),onClick:()=>{w()},children:y.refreshOptions}):null]})}):null]}),b.jsx("div",{className:ce("luminus-dropdown-picker",wn.wrapper,{[wn.open]:e}),style:{top:J?`calc(${U}px - 50vh - 8px)`:`calc(${I}px + 8px)`,left:K?`${fe/2}px`:ee?`calc(${W}px - ${_e})`:P,right:K?`${fe/2}px`:ee?`${W}px`:`calc(${P}px + ${_e})`,width:_e,justifyContent:J?"flex-end":"flex-start"},children:b.jsx("div",{ref:$,className:ce("shadow rounded",wn.dropdown),children:!g&&b.jsxs(b.Fragment,{children:[!s||f&&(p??n.length)<=X?null:b.jsx("div",{className:ce("search-input-container border-bottom",wn.searchInputContainer),children:b.jsx(oi.Control,{ref:M,type:"search",size:"sm",className:wn.searchInput,placeholder:l.searchPlaceholder,value:S,onChange:de=>{var be;return T(((be=de.target)==null?void 0:be.value)??"")}})}),S.length<1&&r&&r.length>0?b.jsx(Ab,{variant:"info",size:"sm",children:i??y.suggestedItemsTitle}):null,m?b.jsx("div",{className:wn.loadingContainer,children:b.jsx(_0,{animation:"border",variant:"primary"})}):(S.length<1&&r&&(r==null?void 0:r.length)>0||n.length>0)&&b.jsxs("div",{ref:k,className:ce("items",wn.itemsContainer),children:[u&&u.length>0&&b.jsxs("div",{className:ce("header-row border-bottom",wn.headerRow),children:[b.jsx("div",{className:wn.name,children:b.jsx(Bn,{variant:"body2",children:xe})}),u==null?void 0:u.filter(de=>de.key!==x).map(de=>b.jsx("div",{className:wn.columnItem,style:{width:`${de.width??100}px`,minWidth:`${de.width??100}px`,maxWidth:`${de.width??100}px`},children:b.jsx(Bn,{variant:"caption",children:de.name})},de.key))]}),(S.length<1&&r&&r.length>0?r:n).map((de,be)=>b.jsxs("button",{id:`item-${be}`,type:"button",className:ce("item cursor-pointer",wn.item,{[wn.focused]:B===be},{focused:B===be},{archive:de.additionalColumns?de.additionalColumns[x]:!1}),onClick:()=>!g&&o(de),onMouseEnter:()=>L(be),children:[b.jsx("div",{className:wn.name,children:b.jsx(Bn,{variant:"body2",children:d?de.id:de.name})}),u==null?void 0:u.filter(le=>le.key!==x).map(le=>b.jsx("div",{className:wn.columnItem,style:{width:`${le.width??100}px`,minWidth:`${le.width??100}px`,maxWidth:`${le.width??100}px`},children:b.jsx(Bn,{variant:"caption",className:ce("text-muted"),children:de.additionalColumns&&de.additionalColumns[le.key]})},le.key))]},de.id))]})]})})})]})},SY="_backdrop_3huvf_1",EY="_show_3huvf_11",Jw={backdrop:SY,show:EY},cT=({show:e,onClick:t})=>b.jsx("div",{className:ce("luminus-backdrop",Jw.backdrop,{[Jw.show]:e}),onClick:()=>t&&t()});var Ob={},bu={};Object.defineProperty(bu,"__esModule",{value:!0});bu.bind=void 0;function kY(e,t){var n=t.type,r=t.listener,i=t.options;return e.addEventListener(n,r,i),function(){e.removeEventListener(n,r,i)}}bu.bind=kY;var Eh={},es=Kn&&Kn.__assign||function(){return es=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},es.apply(this,arguments)};Object.defineProperty(Eh,"__esModule",{value:!0});Eh.bindAll=void 0;var TY=bu;function e2(e){if(!(typeof e>"u"))return typeof e=="boolean"?{capture:e}:e}function OY(e,t){if(t==null)return e;var n=es(es({},e),{options:es(es({},e2(t)),e2(e.options))});return n}function MY(e,t,n){var r=t.map(function(i){var a=OY(i,n);return(0,TY.bind)(e,a)});return function(){r.forEach(function(a){return a()})}}Eh.bindAll=MY;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.bindAll=e.bind=void 0;var t=bu;Object.defineProperty(e,"bind",{enumerable:!0,get:function(){return t.bind}});var n=Eh;Object.defineProperty(e,"bindAll",{enumerable:!0,get:function(){return n.bindAll}})})(Ob);function uT(e){var t=null;return function(){if(!t){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=e.apply(this,i);t={result:o}}return t.result}}var Mb=uT(function(){if(process.env.NODE_ENV==="test")return!1;var t=navigator,n=t.userAgent;return n.includes("AppleWebKit")&&!n.includes("Chrome")}),av={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};function AY(e){var t=e.dragLeave;return Mb()?t.hasOwnProperty(av.isLeavingWindow):!1}(function(){if(typeof window>"u"||process.env.NODE_ENV==="test"||!Mb())return;function t(){return{enterCount:0,isOverWindow:!1}}var n=t();function r(){n=t()}Ob.bindAll(window,[{type:"dragstart",listener:function(){n.enterCount=0,n.isOverWindow=!0}},{type:"drop",listener:r},{type:"dragend",listener:r},{type:"dragenter",listener:function(a){!n.isOverWindow&&n.enterCount===0&&(a[av.isEnteringWindow]=!0),n.isOverWindow=!0,n.enterCount++}},{type:"dragleave",listener:function(a){n.enterCount--,n.isOverWindow&&n.enterCount===0&&(a[av.isLeavingWindow]=!0,n.isOverWindow=!1)}}],{capture:!0})})();var RY=function(t){var n=[],r=null,i=function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];n=s,!r&&(r=requestAnimationFrame(function(){r=null,t.apply(void 0,n)}))};return i.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},i},Pm=RY(function(e){return e()}),id=function(){var e=null;function t(r){var i=requestAnimationFrame(function(){e=null,r()});e={frameId:i,fn:r}}function n(){e&&(cancelAnimationFrame(e.frameId),e.fn(),e=null)}return{schedule:t,flush:n}}();function jY(e){var t=e.source,n=e.initial,r=e.dispatchEvent,i={dropTargets:[]};function a(s){r(s),i={dropTargets:s.payload.location.current.dropTargets}}var o={start:function(l){var c=l.nativeSetDragImage,u={current:n,previous:i,initial:n};a({eventName:"onGenerateDragPreview",payload:{source:t,location:u,nativeSetDragImage:c}}),id.schedule(function(){a({eventName:"onDragStart",payload:{source:t,location:u}})})},dragUpdate:function(l){var c=l.current;id.flush(),Pm.cancel(),a({eventName:"onDropTargetChange",payload:{source:t,location:{initial:n,previous:i,current:c}}})},drag:function(l){var c=l.current;Pm(function(){id.flush();var u={initial:n,previous:i,current:c};a({eventName:"onDrag",payload:{source:t,location:u}})})},drop:function(l){var c=l.current,u=l.updatedSourcePayload;id.flush(),Pm.cancel(),a({eventName:"onDrop",payload:{source:u??t,location:{current:c,previous:i,initial:n}}})}};return o}const Ab=e=>{const{variant:t,children:n,className:r,size:i="md",typographyVariant:a=i==="sm"?"body2":"body",...o}={...e};return b.jsx(EA,{variant:t,className:`text-center ${i==="sm"?"p-1":i==="md"?"p-3":"p-4"} bg-${t} bg-opacity-10 border-none ${r??""}`,...o,children:b.jsx(Bn,{variant:a,children:n})})};var Rb=xu(),et=e=>yu(e,Rb),jb=xu();et.write=e=>yu(e,jb);var kh=xu();et.onStart=e=>yu(e,kh);var Db=xu();et.onFrame=e=>yu(e,Db);var Nb=xu();et.onFinish=e=>yu(e,Nb);var ls=[];et.setTimeout=(e,t)=>{const n=et.now()+t,r=()=>{const a=ls.findIndex(o=>o.cancel==r);~a&&ls.splice(a,1),oa-=~a?1:0},i={time:n,handler:e,cancel:r};return ls.splice(dT(n),0,i),oa+=1,fT(),i};var dT=e=>~(~ls.findIndex(t=>t.time>e)||~ls.length);et.cancel=e=>{kh.delete(e),Db.delete(e),Nb.delete(e),Rb.delete(e),jb.delete(e)};et.sync=e=>{ov=!0,et.batchedUpdates(e),ov=!1};et.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,et.onStart(n)}return r.handler=e,r.cancel=()=>{kh.delete(n),t=null},r};var Ib=typeof window<"u"?window.requestAnimationFrame:()=>{};et.use=e=>Ib=e;et.now=typeof performance<"u"?()=>performance.now():Date.now;et.batchedUpdates=e=>e();et.catch=console.error;et.frameLoop="always";et.advance=()=>{et.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):pT()};var aa=-1,oa=0,ov=!1;function yu(e,t){ov?(t.delete(e),e(0)):(t.add(e),fT())}function fT(){aa<0&&(aa=0,et.frameLoop!=="demand"&&Ib(hT))}function DY(){aa=-1}function hT(){~aa&&(Ib(hT),et.batchedUpdates(pT))}function pT(){const e=aa;aa=et.now();const t=dT(aa);if(t&&(mT(ls.splice(0,t),n=>n.handler()),oa-=t),!oa){DY();return}kh.flush(),Rb.flush(e?Math.min(64,aa-e):16.667),Db.flush(),jb.flush(),Nb.flush()}function xu(){let e=new Set,t=e;return{add(n){oa+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return oa-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,oa-=t.size,mT(t,r=>r(n)&&e.add(r)),oa+=e.size,t=e)}}}function mT(e,t){e.forEach(n=>{try{t(n)}catch(r){et.catch(r)}})}var NY=Object.defineProperty,IY=(e,t)=>{for(var n in t)NY(e,n,{get:t[n],enumerable:!0})},Ir={};IY(Ir,{assign:()=>LY,colors:()=>ca,createStringInterpolator:()=>Lb,skipAnimation:()=>vT,to:()=>gT,willAdvance:()=>Fb});function sv(){}var PY=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),pe={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function vi(e,t){if(pe.arr(e)){if(!pe.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Ye=(e,t)=>e.forEach(t);function ni(e,t,n){if(pe.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Wn=e=>pe.und(e)?[]:pe.arr(e)?e:[e];function Zl(e,t){if(e.size){const n=Array.from(e);e.clear(),Ye(n,t)}}var Fl=(e,...t)=>Zl(e,n=>n(...t)),Pb=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Lb,gT,ca=null,vT=!1,Fb=sv,LY=e=>{e.to&&(gT=e.to),e.now&&(et.now=e.now),e.colors!==void 0&&(ca=e.colors),e.skipAnimation!=null&&(vT=e.skipAnimation),e.createStringInterpolator&&(Lb=e.createStringInterpolator),e.requestAnimationFrame&&et.use(e.requestAnimationFrame),e.batchedUpdates&&(et.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Fb=e.willAdvance),e.frameLoop&&(et.frameLoop=e.frameLoop)},Xl=new Set,mr=[],Lm=[],df=0,Th={get idle(){return!Xl.size&&!mr.length},start(e){df>e.priority?(Xl.add(e),et.onStart(FY)):(bT(e),et(lv))},advance:lv,sort(e){if(df)et.onFrame(()=>Th.sort(e));else{const t=mr.indexOf(e);~t&&(mr.splice(t,1),yT(e))}},clear(){mr=[],Xl.clear()}};function FY(){Xl.forEach(bT),Xl.clear(),et(lv)}function bT(e){mr.includes(e)||yT(e)}function yT(e){mr.splice(BY(mr,t=>t.priority>e.priority),0,e)}function lv(e){const t=Lm;for(let n=0;n<mr.length;n++){const r=mr[n];df=r.priority,r.idle||(Fb(r),r.advance(e),r.idle||t.push(r))}return df=0,Lm=mr,Lm.length=0,mr=t,mr.length>0}function BY(e,t){const n=e.findIndex(t);return n<0?e.length:n}var zY={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Rr="[-+]?\\d*\\.?\\d+",ff=Rr+"%";function Oh(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var WY=new RegExp("rgb"+Oh(Rr,Rr,Rr)),UY=new RegExp("rgba"+Oh(Rr,Rr,Rr,Rr)),HY=new RegExp("hsl"+Oh(Rr,ff,ff)),VY=new RegExp("hsla"+Oh(Rr,ff,ff,Rr)),qY=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,YY=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,GY=/^#([0-9a-fA-F]{6})$/,KY=/^#([0-9a-fA-F]{8})$/;function ZY(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=GY.exec(e))?parseInt(t[1]+"ff",16)>>>0:ca&&ca[e]!==void 0?ca[e]:(t=WY.exec(e))?(Uo(t[1])<<24|Uo(t[2])<<16|Uo(t[3])<<8|255)>>>0:(t=UY.exec(e))?(Uo(t[1])<<24|Uo(t[2])<<16|Uo(t[3])<<8|r2(t[4]))>>>0:(t=qY.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=KY.exec(e))?parseInt(t[1],16)>>>0:(t=YY.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=HY.exec(e))?(t2(n2(t[1]),ad(t[2]),ad(t[3]))|255)>>>0:(t=VY.exec(e))?(t2(n2(t[1]),ad(t[2]),ad(t[3]))|r2(t[4]))>>>0:null}function Fm(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function t2(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=Fm(i,r,e+1/3),o=Fm(i,r,e),s=Fm(i,r,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function Uo(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function n2(e){return(parseFloat(e)%360+360)%360/360}function r2(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function ad(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function i2(e){let t=ZY(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,a=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${a})`}var Ec=(e,t,n)=>{if(pe.fun(e))return e;if(pe.arr(e))return Ec({range:e,output:t,extrapolate:n});if(pe.str(e.output[0]))return Lb(e);const r=e,i=r.output,a=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(c=>c);return c=>{const u=QY(c,a);return XY(c,a[u],a[u+1],i[u],i[u+1],l,o,s,r.map)}};function XY(e,t,n,r,i,a,o,s,l){let c=l?l(e):e;if(c<t){if(o==="identity")return c;o==="clamp"&&(c=t)}if(c>n){if(s==="identity")return c;s==="clamp"&&(c=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=a(c),r===-1/0?c=-c:i===1/0?c=c+r:c=c*(i-r)+r,c)}function QY(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var JY={linear:e=>e},kc=Symbol.for("FluidValue.get"),As=Symbol.for("FluidValue.observers"),pr=e=>!!(e&&e[kc]),qn=e=>e&&e[kc]?e[kc]():e,a2=e=>e[As]||null;function eG(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Tc(e,t){const n=e[As];n&&n.forEach(r=>{eG(r,t)})}var xT=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");tG(this,e)}},tG=(e,t)=>wT(e,kc,t);function Ys(e,t){if(e[kc]){let n=e[As];n||wT(e,As,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Oc(e,t){const n=e[As];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[As]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var wT=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Sd=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,nG=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,o2=new RegExp(`(${Sd.source})(%|[a-z]+)`,"i"),rG=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Mh=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,_T=e=>{const[t,n]=iG(e);if(!t||Pb())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&Mh.test(n))return _T(n);if(n)return n}return e},iG=e=>{const t=Mh.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Bm,aG=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,CT=e=>{Bm||(Bm=ca?new RegExp(`(${Object.keys(ca).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>qn(a).replace(Mh,_T).replace(nG,i2).replace(Bm,i2)),n=t.map(a=>a.match(Sd).map(Number)),i=n[0].map((a,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(a=>Ec({...e,output:a}));return a=>{var l;const o=!o2.test(t[0])&&((l=t.find(c=>o2.test(c)))==null?void 0:l.replace(Sd,""));let s=0;return t[0].replace(Sd,()=>`${i[s++](a)}${o||""}`).replace(rG,aG)}},Bb="react-spring: ",$T=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Bb}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},oG=$T(console.warn);function sG(){oG(`${Bb}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var lG=$T(console.warn);function cG(){lG(`${Bb}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Ah(e){return pe.str(e)&&(e[0]=="#"||/\d/.test(e)||!Pb()&&Mh.test(e)||e in(ca||{}))}var Va=Pb()?h.useEffect:h.useLayoutEffect,uG=()=>{const e=h.useRef(!1);return Va(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function zb(){const e=h.useState()[1],t=uG();return()=>{t.current&&e(Math.random())}}var Wb=e=>h.useEffect(e,dG),dG=[];function cv(e){const t=h.useRef(void 0);return h.useEffect(()=>{t.current=e}),t.current}var Mc=Symbol.for("Animated:node"),fG=e=>!!e&&e[Mc]===e,Hr=e=>e&&e[Mc],Ub=(e,t)=>PY(e,Mc,t),Rh=e=>e&&e[Mc]&&e[Mc].getPayload(),ST=class{constructor(){Ub(this,this)}getPayload(){return this.payload||[]}},jh=class ET extends ST{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,pe.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new ET(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return pe.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,pe.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},hf=class kT extends jh{constructor(t){super(0),this._string=null,this._toString=Ec({output:[t,t]})}static create(t){return new kT(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(pe.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Ec({output:[this.getValue(),t]})),this._value=0,super.reset()}},pf={dependencies:null},Dh=class extends ST{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return ni(this.source,(n,r)=>{fG(n)?t[r]=n.getValue(e):pr(n)?t[r]=qn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ye(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return ni(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){pf.dependencies&&pr(e)&&pf.dependencies.add(e);const t=Rh(e);t&&Ye(t,n=>this.add(n))}},hG=class TT extends Dh{constructor(t){super(t)}static create(t){return new TT(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((r,i)=>r.setValue(t[i])).some(Boolean):(super.setValue(t.map(pG)),!0)}};function pG(e){return(Ah(e)?hf:jh).create(e)}function uv(e){const t=Hr(e);return t?t.constructor:pe.arr(e)?hG:Ah(e)?hf:jh}var s2=(e,t)=>{const n=!pe.fun(e)||e.prototype&&e.prototype.isReactComponent;return h.forwardRef((r,i)=>{const a=h.useRef(null),o=n&&h.useCallback(g=>{a.current=vG(i,g)},[i]),[s,l]=gG(r,t),c=zb(),u=()=>{const g=a.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,s.getValue(!0)):!1)===!1&&c()},d=new mG(u,l),f=h.useRef(void 0);Va(()=>(f.current=d,Ye(l,g=>Ys(g,d)),()=>{f.current&&(Ye(f.current.deps,g=>Oc(g,f.current)),et.cancel(f.current.update))})),h.useEffect(u,[]),Wb(()=>()=>{const g=f.current;Ye(g.deps,m=>Oc(m,g))});const p=t.getComponentProps(s.getValue());return ie.createElement(e,{...p,ref:o})})},mG=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&et.write(this.update)}};function gG(e,t){const n=new Set;return pf.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Dh(e),pf.dependencies=null,[e,n]}function vG(e,t){return e&&(pe.fun(e)?e(t):e.current=t),t}var l2=Symbol.for("AnimatedComponent"),bG=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new Dh(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=o=>{const s=c2(o)||"Anonymous";return pe.str(o)?o=a[o]||(a[o]=s2(o,i)):o=o[l2]||(o[l2]=s2(o,i)),o.displayName=`Animated(${s})`,o};return ni(e,(o,s)=>{pe.arr(e)&&(s=c2(o)),a[s]=a(o)}),{animated:a}},c2=e=>pe.str(e)?e:e&&pe.str(e.displayName)?e.displayName:pe.fun(e)&&e.name||null;function Yn(e,...t){return pe.fun(e)?e(...t):e}var Ql=(e,t)=>e===!0||!!(t&&e&&(pe.fun(e)?e(t):Wn(e).includes(t))),OT=(e,t)=>pe.obj(e)?t&&e[t]:e,MT=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,yG=e=>e,Nh=(e,t=yG)=>{let n=xG;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const a=t(e[i],i);pe.und(a)||(r[i]=a)}return r},xG=["config","onProps","onStart","onChange","onPause","onResume","onRest"],wG={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function _G(e){const t={};let n=0;if(ni(e,(r,i)=>{wG[i]||(t[i]=r,n++)}),n)return t}function Hb(e){const t=_G(e);if(t){const n={to:t};return ni(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Ac(e){return e=qn(e),pe.arr(e)?e.map(Ac):Ah(e)?Ir.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function AT(e){for(const t in e)return!0;return!1}function dv(e){return pe.fun(e)||pe.arr(e)&&pe.obj(e[0])}function fv(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function RT(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var jT={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},hv={...jT.default,mass:1,damping:1,easing:JY.linear,clamp:!1},CG=class{constructor(){this.velocity=0,Object.assign(this,hv)}};function $G(e,t,n){n&&(n={...n},u2(n,t),t={...n,...t}),u2(e,t),Object.assign(e,t);for(const o in hv)e[o]==null&&(e[o]=hv[o]);let{frequency:r,damping:i}=e;const{mass:a}=e;return pe.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r),e}function u2(e,t){if(!pe.und(t.decay))e.duration=void 0;else{const n=!pe.und(t.tension)||!pe.und(t.friction);(n||!pe.und(t.frequency)||!pe.und(t.damping)||!pe.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var d2=[],SG=class{constructor(){this.changed=!1,this.values=d2,this.toValues=null,this.fromValues=d2,this.config=new CG,this.immediate=!1}};function DT(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let l,c,u=Ql(n.cancel??(r==null?void 0:r.cancel),t);if(u)p();else{pe.und(n.pause)||(i.paused=Ql(n.pause,t));let g=r==null?void 0:r.pause;g!==!0&&(g=i.paused||Ql(g,t)),l=Yn(n.delay||0,t),g?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(c),c.cancel(),l=c.time-et.now()}function f(){l>0&&!Ir.skipAnimation?(i.delayed=!0,c=et.setTimeout(p,l),i.pauseQueue.add(d),i.timeouts.add(c)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(c),e<=(i.cancelId||0)&&(u=!0);try{a.start({...n,callId:e,cancel:u},o)}catch(g){s(g)}}})}var Vb=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?cs(e.get()):t.every(n=>n.noop)?NT(e.get()):Or(e.get(),t.every(n=>n.finished)),NT=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Or=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),cs=e=>({value:e,cancelled:!0,finished:!1});function IT(e,t,n,r){const{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:l}=n;return!a&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=Nh(t,(v,x)=>x==="onRest"?void 0:v);let u,d;const f=new Promise((v,x)=>(u=v,d=x)),p=v=>{const x=i<=(n.cancelId||0)&&cs(r)||i!==n.asyncId&&Or(r,!1);if(x)throw v.result=x,d(v),v},g=(v,x)=>{const _=new f2,w=new h2;return(async()=>{if(Ir.skipAnimation)throw Rc(n),w.result=Or(r,!1),d(w),w;p(_);const C=pe.obj(v)?{...v}:{...x,to:v};C.parentId=i,ni(c,($,E)=>{pe.und(C[E])&&(C[E]=$)});const y=await r.start(C);return p(_),n.paused&&await new Promise($=>{n.resumeQueue.add($)}),y})()};let m;if(Ir.skipAnimation)return Rc(n),Or(r,!1);try{let v;pe.arr(e)?v=(async x=>{for(const _ of x)await g(_)})(e):v=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([v.then(u),f]),m=Or(r.get(),!0,!1)}catch(v){if(v instanceof f2)m=v.result;else if(v instanceof h2)m=v.result;else throw v}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?l:void 0)}return pe.fun(o)&&et.batchedUpdates(()=>{o(m,r,r.item)}),m})()}function Rc(e,t){Zl(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var f2=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},h2=class extends Error{constructor(){super("SkipAnimationSignal")}},pv=e=>e instanceof qb,EG=1,qb=class extends xT{constructor(){super(...arguments),this.id=EG++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Hr(this);return e&&e.getValue()}to(...e){return Ir.to(this,e)}interpolate(...e){return sG(),Ir.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Tc(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Th.sort(this),Tc(this,{type:"priority",parent:this,priority:e})}},uo=Symbol.for("SpringPhase"),PT=1,mv=2,gv=4,zm=e=>(e[uo]&PT)>0,Ki=e=>(e[uo]&mv)>0,$l=e=>(e[uo]&gv)>0,p2=(e,t)=>t?e[uo]|=mv|PT:e[uo]&=~mv,m2=(e,t)=>t?e[uo]|=gv:e[uo]&=~gv,kG=class extends qb{constructor(e,t){if(super(),this.animation=new SG,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!pe.und(e)||!pe.und(t)){const n=pe.obj(e)?{...e}:{...t,from:e};pe.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Ki(this)||this._state.asyncTo)||$l(this)}get goal(){return qn(this.animation.to)}get velocity(){const e=Hr(this);return e instanceof jh?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return zm(this)}get isAnimating(){return Ki(this)}get isPaused(){return $l(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:a}=r,o=Rh(r.to);!o&&pr(r.to)&&(i=Wn(qn(r.to))),r.values.forEach((c,u)=>{if(c.done)return;const d=c.constructor==hf?1:o?o[u].lastPosition:i[u];let f=r.immediate,p=d;if(!f){if(p=c.lastPosition,a.tension<=0){c.done=!0;return}let g=c.elapsedTime+=e;const m=r.fromValues[u],v=c.v0!=null?c.v0:c.v0=pe.arr(a.velocity)?a.velocity[u]:a.velocity;let x;const _=a.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if(pe.und(a.duration))if(a.decay){const w=a.decay===!0?.998:a.decay,C=Math.exp(-(1-w)*g);p=m+v/(1-w)*(1-C),f=Math.abs(c.lastPosition-p)<=_,x=v*C}else{x=c.lastVelocity==null?v:c.lastVelocity;const w=a.restVelocity||_/10,C=a.clamp?0:a.bounce,y=!pe.und(C),$=m==d?c.v0>0:m<d;let E,M=!1;const k=1,R=Math.ceil(e/k);for(let S=0;S<R&&(E=Math.abs(x)>w,!(!E&&(f=Math.abs(d-p)<=_,f)));++S){y&&(M=p==d||p>d==$,M&&(x=-x*C,p=d));const T=-a.tension*1e-6*(p-d),j=-a.friction*.001*x,D=(T+j)/a.mass;x=x+D*k,p=p+x*k}}else{let w=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,c.durationProgress>0&&(c.elapsedTime=a.duration*c.durationProgress,g=c.elapsedTime+=e)),w=(a.progress||0)+g/this._memoizedDuration,w=w>1?1:w<0?0:w,c.durationProgress=w),p=m+a.easing(w)*(d-m),x=(p-c.lastPosition)/e,f=w==1}c.lastVelocity=x,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[u].done&&(f=!1),f?c.done=!0:t=!1,c.setValue(p,a.round)&&(n=!0)});const s=Hr(this),l=s.getValue();if(t){const c=qn(r.to);(l!==c||n)&&!a.decay?(s.setValue(c),this._onChange(c)):n&&a.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return et.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ki(this)){const{to:e,config:t}=this.animation;et.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return pe.und(e)?(n=this.queue||[],this.queue=[]):n=[pe.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Vb(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Rc(this._state,e&&this._lastCallId),et.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=pe.obj(n)?n[t]:n,(n==null||dv(n))&&(n=void 0),r=pe.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return zm(this)||(e.reverse&&([n,r]=[r,n]),r=qn(r),pe.und(r)?Hr(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Nh(e,(o,s)=>/^on/.test(s)?OT(o,n):o)),v2(this,e,"onProps"),El(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return DT(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{$l(this)||(m2(this,!0),Fl(a.pauseQueue),El(this,"onPause",Or(this,Sl(this,this.animation.to)),this))},resume:()=>{$l(this)&&(m2(this,!1),Ki(this)&&this._resume(),Fl(a.resumeQueue),El(this,"onResume",Or(this,Sl(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=LT(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(cs(this));const r=!pe.und(e.to),i=!pe.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(cs(this));const{key:a,defaultProps:o,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;i&&!r&&(!t.default||pe.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);const f=!vi(d,c);f&&(s.from=d),d=qn(d);const p=!vi(u,l);p&&this._focus(u);const g=dv(t.to),{config:m}=s,{decay:v,velocity:x}=m;(r||i)&&(m.velocity=0),t.config&&!g&&$G(m,Yn(t.config,a),t.config!==o.config?Yn(o.config,a):void 0);let _=Hr(this);if(!_||pe.und(u))return n(Or(this,!0));const w=pe.und(t.reset)?i&&!t.default:!pe.und(d)&&Ql(t.reset,a),C=w?d:this.get(),y=Ac(u),$=pe.num(y)||pe.arr(y)||Ah(y),E=!g&&(!$||Ql(o.immediate||t.immediate,a));if(p){const S=uv(u);if(S!==_.constructor)if(E)_=this._set(y);else throw Error(`Cannot animate between ${_.constructor.name} and ${S.name}, as the "to" prop suggests`)}const M=_.constructor;let k=pr(u),R=!1;if(!k){const S=w||!zm(this)&&f;(p||S)&&(R=vi(Ac(C),y),k=!R),(!vi(s.immediate,E)&&!E||!vi(m.decay,v)||!vi(m.velocity,x))&&(k=!0)}if(R&&Ki(this)&&(s.changed&&!w?k=!0:k||this._stop(l)),!g&&((k||pr(l))&&(s.values=_.getPayload(),s.toValues=pr(u)?null:M==hf?[1]:Wn(y)),s.immediate!=E&&(s.immediate=E,!E&&!w&&this._set(l)),k)){const{onRest:S}=s;Ye(OG,j=>v2(this,t,j));const T=Or(this,Sl(this,l));Fl(this._pendingCalls,T),this._pendingCalls.add(n),s.changed&&et.batchedUpdates(()=>{var j;s.changed=!w,S==null||S(T,this),w?Yn(o.onRest,T):(j=s.onStart)==null||j.call(s,T,this)})}w&&this._set(C),g?n(IT(t.to,t,this._state,this)):k?this._start():Ki(this)&&!p?this._pendingCalls.add(n):n(NT(C))}_focus(e){const t=this.animation;e!==t.to&&(a2(this)&&this._detach(),t.to=e,a2(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;pr(t)&&(Ys(t,this),pv(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;pr(e)&&Oc(e,this)}_set(e,t=!0){const n=qn(e);if(!pe.und(n)){const r=Hr(this);if(!r||!vi(n,r.getValue())){const i=uv(n);!r||r.constructor!=i?Ub(this,i.create(n)):r.setValue(n),r&&et.batchedUpdates(()=>{this._onChange(n,t)})}}return Hr(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,El(this,"onStart",Or(this,Sl(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Yn(this.animation.onChange,e,this)),Yn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Hr(this).reset(qn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Ki(this)||(p2(this,!0),$l(this)||this._resume())}_resume(){Ir.skipAnimation?this.finish():Th.start(this)}_stop(e,t){if(Ki(this)){p2(this,!1);const n=this.animation;Ye(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Tc(this,{type:"idle",parent:this});const r=t?cs(this.get()):Or(this.get(),Sl(this,e??n.to));Fl(this._pendingCalls,r),n.changed&&(n.changed=!1,El(this,"onRest",r,this))}}};function Sl(e,t){const n=Ac(t),r=Ac(e.get());return vi(r,n)}function LT(e,t=e.loop,n=e.to){const r=Yn(t);if(r){const i=r!==!0&&Hb(r),a=(i||e).reverse,o=!i||i.reset;return jc({...e,loop:t,default:!1,pause:void 0,to:!a||dv(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function jc(e){const{to:t,from:n}=e=Hb(e),r=new Set;return pe.obj(t)&&g2(t,r),pe.obj(n)&&g2(n,r),e.keys=r.size?Array.from(r):null,e}function TG(e){const t=jc(e);return pe.und(t.default)&&(t.default=Nh(t)),t}function g2(e,t){ni(e,(n,r)=>n!=null&&t.add(r))}var OG=["onStart","onRest","onChange","onPause","onResume"];function v2(e,t,n){e.animation[n]=t[n]!==MT(t,n)?OT(t[n],e.key):void 0}function El(e,t,...n){var r,i,a,o;(i=(r=e.animation)[t])==null||i.call(r,...n),(o=(a=e.defaultProps)[t])==null||o.call(a,...n)}var MG=["onStart","onChange","onRest"],AG=1,FT=class{constructor(e,t){this.id=AG++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];pe.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(jc(e)),this}start(e){let{queue:t}=this;return e?t=Wn(e).map(jc):this.queue=[],this._flush?this._flush(this,t):(HT(this,t),vv(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ye(Wn(t),r=>n[r].stop(!!e))}else Rc(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(pe.und(e))this.start({pause:!0});else{const t=this.springs;Ye(Wn(e),n=>t[n].pause())}return this}resume(e){if(pe.und(e))this.start({pause:!1});else{const t=this.springs;Ye(Wn(e),n=>t[n].resume())}return this}each(e){ni(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Zl(e,([s,l])=>{l.value=this.get(),s(l,this,this._item)}));const a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&Zl(t,([s,l])=>{l.value=o,s(l,this,this._item)}),a&&(this._started=!1,Zl(n,([s,l])=>{l.value=o,s(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;et.onFrame(this._onFrame)}};function vv(e,t){return Promise.all(t.map(n=>BT(e,n))).then(n=>Vb(e,n))}async function BT(e,t,n){const{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:l}=t,c=pe.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),a===!1&&(t.from=null);const u=pe.arr(i)||pe.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Ye(MG,m=>{const v=t[m];if(pe.fun(v)){const x=e._events[m];t[m]=({finished:_,cancelled:w})=>{const C=x.get(v);C?(_||(C.finished=!1),w&&(C.cancelled=!0)):x.set(v,{value:null,finished:_||!1,cancelled:w||!1})},c&&(c[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Fl(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),p=t.cancel===!0||MT(t,"cancel")===!0;(u||p&&d.asyncId)&&f.push(DT(++e._lastAsyncId,{props:t,state:d,actions:{pause:sv,resume:sv,start(m,v){p?(Rc(d,e._lastAsyncId),v(cs(e))):(m.onRest=s,v(IT(u,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const g=Vb(e,await Promise.all(f));if(o&&g.finished&&!(n&&g.noop)){const m=LT(t,o,i);if(m)return HT(e,[m]),BT(e,m,!0)}return l&&et.batchedUpdates(()=>l(g,e,e.item)),g}function bv(e,t){const n={...e.springs};return t&&Ye(Wn(t),r=>{pe.und(r.keys)&&(r=jc(r)),pe.obj(r.to)||(r={...r,to:void 0}),UT(n,r,i=>WT(i))}),zT(e,n),n}function zT(e,t){ni(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Ys(n,e))})}function WT(e,t){const n=new kG;return n.key=e,t&&Ys(n,t),n}function UT(e,t,n){t.keys&&Ye(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function HT(e,t){Ye(t,n=>{UT(e.springs,n,r=>WT(r,e))})}var VT=ie.createContext({pause:!1,immediate:!1}),qT=()=>{const e=[],t=function(r){cG();const i=[];return Ye(e,(a,o)=>{if(pe.und(r))i.push(a.start());else{const s=n(r,a,o);s&&i.push(a.start(s))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return Ye(e,r=>r.pause(...arguments)),this},t.resume=function(){return Ye(e,r=>r.resume(...arguments)),this},t.set=function(r){Ye(e,(i,a)=>{const o=pe.fun(r)?r(a,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return Ye(e,(a,o)=>{if(pe.und(r))i.push(a.start());else{const s=this._getProps(r,a,o);s&&i.push(a.start(s))}}),i},t.stop=function(){return Ye(e,r=>r.stop(...arguments)),this},t.update=function(r){return Ye(e,(i,a)=>i.update(this._getProps(r,i,a))),this};const n=function(r,i,a){return pe.fun(r)?r(a,i):r};return t._getProps=n,t};function RG(e,t,n){const r=pe.fun(t)&&t;r&&!n&&(n=[]);const i=h.useMemo(()=>r||arguments.length==3?qT():void 0,[]),a=h.useRef(0),o=zb(),s=h.useMemo(()=>({ctrls:[],queue:[],flush(x,_){const w=bv(x,_);return a.current>0&&!s.queue.length&&!Object.keys(w).some(y=>!x.springs[y])?vv(x,_):new Promise(y=>{zT(x,w),s.queue.push(()=>{y(vv(x,_))}),o()})}}),[]),l=h.useRef([...s.ctrls]),c=h.useRef([]),u=cv(e)||0;h.useMemo(()=>{Ye(l.current.slice(e,u),x=>{fv(x,i),x.stop(!0)}),l.current.length=e,d(u,e)},[e]),h.useMemo(()=>{d(0,Math.min(u,e))},n);function d(x,_){for(let w=x;w<_;w++){const C=l.current[w]||(l.current[w]=new FT(null,s.flush)),y=r?r(w,C):t[w];y&&(c.current[w]=TG(y))}}const f=l.current.map((x,_)=>bv(x,c.current[_])),p=h.useContext(VT),g=cv(p),m=p!==g&&AT(p);Va(()=>{a.current++,s.ctrls=l.current;const{queue:x}=s;x.length&&(s.queue=[],Ye(x,_=>_())),Ye(l.current,(_,w)=>{i==null||i.add(_),m&&_.start({default:p});const C=c.current[w];C&&(RT(_,C.ref),_.ref?_.queue.push(C):_.start(C))})}),Wb(()=>()=>{Ye(s.ctrls,x=>x.stop(!0))});const v=f.map(x=>({...x}));return i?[v,i]:v}function si(e,t){const n=pe.fun(e),[[r],i]=RG(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}function wo(e,t,n){const r=pe.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:c,ref:u,config:d}=r?r():t,f=h.useMemo(()=>r||arguments.length==3?qT():void 0,[]),p=Wn(e),g=[],m=h.useRef(null),v=i?null:m.current;Va(()=>{m.current=g}),Wb(()=>(Ye(g,D=>{f==null||f.add(D.ctrl),D.ctrl.ref=f}),()=>{Ye(m.current,D=>{D.expired&&clearTimeout(D.expirationId),fv(D.ctrl,f),D.ctrl.stop(!0)})}));const x=DG(p,r?r():t,v),_=i&&m.current||[];Va(()=>Ye(_,({ctrl:D,item:N,key:O})=>{fv(D,f),Yn(c,N,O)}));const w=[];if(v&&Ye(v,(D,N)=>{D.expired?(clearTimeout(D.expirationId),_.push(D)):(N=w[N]=x.indexOf(D.key),~N&&(g[N]=D))}),Ye(p,(D,N)=>{g[N]||(g[N]={key:x[N],item:D,phase:"mount",ctrl:new FT},g[N].ctrl.item=D)}),w.length){let D=-1;const{leave:N}=r?r():t;Ye(w,(O,P)=>{const W=v[P];~O?(D=g.indexOf(W),g[D]={...W,item:p[O]}):N&&g.splice(++D,0,W)})}pe.fun(a)&&g.sort((D,N)=>a(D.item,N.item));let C=-o;const y=zb(),$=Nh(t),E=new Map,M=h.useRef(new Map),k=h.useRef(!1);Ye(g,(D,N)=>{const O=D.key,P=D.phase,W=r?r():t;let U,I;const z=Yn(W.delay||0,O);if(P=="mount")U=W.enter,I="enter";else{const Z=x.indexOf(O)<0;if(P!="leave")if(Z)U=W.leave,I="leave";else if(U=W.update)I="update";else return;else if(!Z)U=W.enter,I="enter";else return}if(U=Yn(U,D.item,N),U=pe.obj(U)?Hb(U):{to:U},!U.config){const Z=d||$.config;U.config=Yn(Z,D.item,N,I)}C+=o;const Y={...$,delay:z+C,ref:u,immediate:W.immediate,reset:!1,...U};if(I=="enter"&&pe.und(Y.from)){const Z=r?r():t,ee=pe.und(Z.initial)||v?Z.from:Z.initial;Y.from=Yn(ee,D.item,N)}const{onResolve:X}=Y;Y.onResolve=Z=>{Yn(X,Z);const ee=m.current,J=ee.find(B=>B.key===O);if(J&&!(Z.cancelled&&J.phase!="update")&&J.ctrl.idle){const B=ee.every(L=>L.ctrl.idle);if(J.phase=="leave"){const L=Yn(s,J.item);if(L!==!1){const F=L===!0?0:L;if(J.expired=!0,!B&&F>0){F<=2147483647&&(J.expirationId=setTimeout(y,F));return}}}B&&ee.some(L=>L.expired)&&(M.current.delete(J),l&&(k.current=!0),y())}};const K=bv(D.ctrl,Y);I==="leave"&&l?M.current.set(D,{phase:I,springs:K,payload:Y}):E.set(D,{phase:I,springs:K,payload:Y})});const R=h.useContext(VT),S=cv(R),T=R!==S&&AT(R);Va(()=>{T&&Ye(g,D=>{D.ctrl.start({default:R})})},[R]),Ye(E,(D,N)=>{if(M.current.size){const O=g.findIndex(P=>P.key===N.key);g.splice(O,1)}}),Va(()=>{Ye(M.current.size?M.current:E,({phase:D,payload:N},O)=>{const{ctrl:P}=O;O.phase=D,f==null||f.add(P),T&&D=="enter"&&P.start({default:R}),N&&(RT(P,N.ref),(P.ref||f)&&!k.current?P.update(N):(P.start(N),k.current&&(k.current=!1)))})},i?void 0:n);const j=D=>ie.createElement(ie.Fragment,null,g.map((N,O)=>{const{springs:P}=E.get(N)||N.ctrl,W=D({...P},N.item,N,O),U=pe.str(N.key)||pe.num(N.key)?N.key:N.ctrl.id,I=ie.version<"19.0.0",z=(W==null?void 0:W.props)??{},Y=I?W==null?void 0:W.ref:z==null?void 0:z.ref;return W&&W.type?ie.createElement(W.type,{...z,key:U,ref:Y}):W}));return f?[j,f]:j}var jG=1;function DG(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(a=>{const o=r&&r.find(s=>s.item===a&&s.phase!=="leave"&&!i.has(s));return o?(i.add(o),o.key):jG++})}return pe.und(n)?e:pe.fun(n)?e.map(n):Wn(n)}var YT=class extends qb{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ec(...t);const n=this._get(),r=uv(n);Ub(this,r.create(n))}advance(e){const t=this._get(),n=this.get();vi(t,n)||(Hr(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&b2(this._active)&&Wm(this)}_get(){const e=pe.arr(this.source)?this.source.map(qn):Wn(qn(this.source));return this.calc(...e)}_start(){this.idle&&!b2(this._active)&&(this.idle=!1,Ye(Rh(this),e=>{e.done=!1}),Ir.skipAnimation?(et.batchedUpdates(()=>this.advance()),Wm(this)):Th.start(this))}_attach(){let e=1;Ye(Wn(this.source),t=>{pr(t)&&Ys(t,this),pv(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Ye(Wn(this.source),e=>{pr(e)&&Oc(e,this)}),this._active.clear(),Wm(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Wn(this.source).reduce((t,n)=>Math.max(t,(pv(n)?n.priority:0)+1),0))}};function NG(e){return e.idle!==!1}function b2(e){return!e.size||Array.from(e).every(NG)}function Wm(e){e.idle||(e.idle=!0,Ye(Rh(e),t=>{t.done=!0}),Tc(e,{type:"idle",parent:e}))}var ba=(e,...t)=>new YT(e,t);Ir.assign({createStringInterpolator:CT,to:(e,t)=>new YT(e,t)});var GT=/^--/;function IG(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!GT.test(e)&&!(Jl.hasOwnProperty(e)&&Jl[e])?t+"px":(""+t).trim()}var y2={};function PG(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:i,children:a,scrollTop:o,scrollLeft:s,viewBox:l,...c}=t,u=Object.values(c),d=Object.keys(c).map(f=>n||e.hasAttribute(f)?f:y2[f]||(y2[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));a!==void 0&&(e.textContent=a);for(const f in i)if(i.hasOwnProperty(f)){const p=IG(f,i[f]);GT.test(f)?e.style.setProperty(f,p):e.style[f]=p}d.forEach((f,p)=>{e.setAttribute(f,u[p])}),r!==void 0&&(e.className=r),o!==void 0&&(e.scrollTop=o),s!==void 0&&(e.scrollLeft=s),l!==void 0&&e.setAttribute("viewBox",l)}var Jl={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},LG=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),FG=["Webkit","Ms","Moz","O"];Jl=Object.keys(Jl).reduce((e,t)=>(FG.forEach(n=>e[LG(n,t)]=e[t]),e),Jl);var BG=/^(matrix|translate|scale|rotate|skew)/,zG=/^(translate)/,WG=/^(rotate|skew)/,Um=(e,t)=>pe.num(e)&&e!==0?e+t:e,Ed=(e,t)=>pe.arr(e)?e.every(n=>Ed(n,t)):pe.num(e)?e===t:parseFloat(e)===t,UG=class extends Dh{constructor({x:e,y:t,z:n,...r}){const i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(o=>[`translate3d(${o.map(s=>Um(s,"px")).join(",")})`,Ed(o,0)])),ni(r,(o,s)=>{if(s==="transform")i.push([o||""]),a.push(l=>[l,l===""]);else if(BG.test(s)){if(delete r[s],pe.und(o))return;const l=zG.test(s)?"px":WG.test(s)?"deg":"";i.push(Wn(o)),a.push(s==="rotate3d"?([c,u,d,f])=>[`rotate3d(${c},${u},${d},${Um(f,l)})`,Ed(f,0)]:c=>[`${s}(${c.map(u=>Um(u,l)).join(",")})`,Ed(c,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new HG(i,a)),super(r)}},HG=class extends xT{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ye(this.inputs,(n,r)=>{const i=qn(n[0]),[a,o]=this.transforms[r](pe.arr(i)?i:n.map(qn));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){e==1&&Ye(this.inputs,t=>Ye(t,n=>pr(n)&&Ys(n,this)))}observerRemoved(e){e==0&&Ye(this.inputs,t=>Ye(t,n=>pr(n)&&Oc(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Tc(this,e)}},VG=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Ir.assign({batchedUpdates:hn.unstable_batchedUpdates,createStringInterpolator:CT,colors:zY});var qG=bG(VG,{applyAnimatedValues:PG,createAnimatedStyle:e=>new UG(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),qt=qG.animated;function YG(){this.__data__=[],this.size=0}var GG=YG;function KG(e,t){return e===t||e!==e&&t!==t}var wu=KG,ZG=wu;function XG(e,t){for(var n=e.length;n--;)if(ZG(e[n][0],t))return n;return-1}var Ih=XG,QG=Ih,JG=Array.prototype,eK=JG.splice;function tK(e){var t=this.__data__,n=QG(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():eK.call(t,n,1),--this.size,!0}var nK=tK,rK=Ih;function iK(e){var t=this.__data__,n=rK(t,e);return n<0?void 0:t[n][1]}var aK=iK,oK=Ih;function sK(e){return oK(this.__data__,e)>-1}var lK=sK,cK=Ih;function uK(e,t){var n=this.__data__,r=cK(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var dK=uK,fK=GG,hK=nK,pK=aK,mK=lK,gK=dK;function Gs(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])}}Gs.prototype.clear=fK;Gs.prototype.delete=hK;Gs.prototype.get=pK;Gs.prototype.has=mK;Gs.prototype.set=gK;var Ph=Gs,vK=Ph;function bK(){this.__data__=new vK,this.size=0}var yK=bK;function xK(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var wK=xK;function _K(e){return this.__data__.get(e)}var CK=_K;function $K(e){return this.__data__.has(e)}var SK=$K,EK=typeof Kn=="object"&&Kn&&Kn.Object===Object&&Kn,KT=EK,kK=KT,TK=typeof self=="object"&&self&&self.Object===Object&&self,OK=kK||TK||Function("return this")(),li=OK,MK=li,AK=MK.Symbol,Ks=AK,x2=Ks,ZT=Object.prototype,RK=ZT.hasOwnProperty,jK=ZT.toString,kl=x2?x2.toStringTag:void 0;function DK(e){var t=RK.call(e,kl),n=e[kl];try{e[kl]=void 0;var r=!0}catch{}var i=jK.call(e);return r&&(t?e[kl]=n:delete e[kl]),i}var NK=DK,IK=Object.prototype,PK=IK.toString;function LK(e){return PK.call(e)}var FK=LK,w2=Ks,BK=NK,zK=FK,WK="[object Null]",UK="[object Undefined]",_2=w2?w2.toStringTag:void 0;function HK(e){return e==null?e===void 0?UK:WK:_2&&_2 in Object(e)?BK(e):zK(e)}var zi=HK;function VK(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ci=VK,qK=zi,YK=ci,GK="[object AsyncFunction]",KK="[object Function]",ZK="[object GeneratorFunction]",XK="[object Proxy]";function QK(e){if(!YK(e))return!1;var t=qK(e);return t==KK||t==ZK||t==GK||t==XK}var Lh=QK;const Yb=on(Lh);var JK=li,eZ=JK["__core-js_shared__"],tZ=eZ,Hm=tZ,C2=function(){var e=/[^.]+$/.exec(Hm&&Hm.keys&&Hm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function nZ(e){return!!C2&&C2 in e}var rZ=nZ,iZ=Function.prototype,aZ=iZ.toString;function oZ(e){if(e!=null){try{return aZ.call(e)}catch{}try{return e+""}catch{}}return""}var XT=oZ,sZ=Lh,lZ=rZ,cZ=ci,uZ=XT,dZ=/[\\^$.*+?()[\]{}|]/g,fZ=/^\[object .+?Constructor\]$/,hZ=Function.prototype,pZ=Object.prototype,mZ=hZ.toString,gZ=pZ.hasOwnProperty,vZ=RegExp("^"+mZ.call(gZ).replace(dZ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function bZ(e){if(!cZ(e)||lZ(e))return!1;var t=sZ(e)?vZ:fZ;return t.test(uZ(e))}var yZ=bZ;function xZ(e,t){return e==null?void 0:e[t]}var wZ=xZ,_Z=yZ,CZ=wZ;function $Z(e,t){var n=CZ(e,t);return _Z(n)?n:void 0}var _o=$Z,SZ=_o,EZ=li,kZ=SZ(EZ,"Map"),Gb=kZ,TZ=_o,OZ=TZ(Object,"create"),Fh=OZ,$2=Fh;function MZ(){this.__data__=$2?$2(null):{},this.size=0}var AZ=MZ;function RZ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jZ=RZ,DZ=Fh,NZ="__lodash_hash_undefined__",IZ=Object.prototype,PZ=IZ.hasOwnProperty;function LZ(e){var t=this.__data__;if(DZ){var n=t[e];return n===NZ?void 0:n}return PZ.call(t,e)?t[e]:void 0}var FZ=LZ,BZ=Fh,zZ=Object.prototype,WZ=zZ.hasOwnProperty;function UZ(e){var t=this.__data__;return BZ?t[e]!==void 0:WZ.call(t,e)}var HZ=UZ,VZ=Fh,qZ="__lodash_hash_undefined__";function YZ(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=VZ&&t===void 0?qZ:t,this}var GZ=YZ,KZ=AZ,ZZ=jZ,XZ=FZ,QZ=HZ,JZ=GZ;function Zs(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])}}Zs.prototype.clear=KZ;Zs.prototype.delete=ZZ;Zs.prototype.get=XZ;Zs.prototype.has=QZ;Zs.prototype.set=JZ;var eX=Zs,S2=eX,tX=Ph,nX=Gb;function rX(){this.size=0,this.__data__={hash:new S2,map:new(nX||tX),string:new S2}}var iX=rX;function aX(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var oX=aX,sX=oX;function lX(e,t){var n=e.__data__;return sX(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Bh=lX,cX=Bh;function uX(e){var t=cX(this,e).delete(e);return this.size-=t?1:0,t}var dX=uX,fX=Bh;function hX(e){return fX(this,e).get(e)}var pX=hX,mX=Bh;function gX(e){return mX(this,e).has(e)}var vX=gX,bX=Bh;function yX(e,t){var n=bX(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var xX=yX,wX=iX,_X=dX,CX=pX,$X=vX,SX=xX;function Xs(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])}}Xs.prototype.clear=wX;Xs.prototype.delete=_X;Xs.prototype.get=CX;Xs.prototype.has=$X;Xs.prototype.set=SX;var Kb=Xs,EX=Ph,kX=Gb,TX=Kb,OX=200;function MX(e,t){var n=this.__data__;if(n instanceof EX){var r=n.__data__;if(!kX||r.length<OX-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new TX(r)}return n.set(e,t),this.size=n.size,this}var AX=MX,RX=Ph,jX=yK,DX=wK,NX=CK,IX=SK,PX=AX;function Qs(e){var t=this.__data__=new RX(e);this.size=t.size}Qs.prototype.clear=jX;Qs.prototype.delete=DX;Qs.prototype.get=NX;Qs.prototype.has=IX;Qs.prototype.set=PX;var zh=Qs,LX=_o,FX=function(){try{var e=LX(Object,"defineProperty");return e({},"",{}),e}catch{}}(),QT=FX,E2=QT;function BX(e,t,n){t=="__proto__"&&E2?E2(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Zb=BX,zX=Zb,WX=wu;function UX(e,t,n){(n!==void 0&&!WX(e[t],n)||n===void 0&&!(t in e))&&zX(e,t,n)}var JT=UX;function HX(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(n(a[l],l,a)===!1)break}return t}}var VX=HX,qX=VX,YX=qX(),eO=YX,mf={exports:{}};mf.exports;(function(e,t){var n=li,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=l})(mf,mf.exports);var tO=mf.exports,GX=li,KX=GX.Uint8Array,nO=KX,k2=nO;function ZX(e){var t=new e.constructor(e.byteLength);return new k2(t).set(new k2(e)),t}var Xb=ZX,XX=Xb;function QX(e,t){var n=t?XX(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var rO=QX;function JX(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var iO=JX,eQ=ci,T2=Object.create,tQ=function(){function e(){}return function(t){if(!eQ(t))return{};if(T2)return T2(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),nQ=tQ;function rQ(e,t){return function(n){return e(t(n))}}var aO=rQ,iQ=aO,aQ=iQ(Object.getPrototypeOf,Object),Qb=aQ,oQ=Object.prototype;function sQ(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||oQ;return e===n}var Jb=sQ,lQ=nQ,cQ=Qb,uQ=Jb;function dQ(e){return typeof e.constructor=="function"&&!uQ(e)?lQ(cQ(e)):{}}var oO=dQ;function fQ(e){return e!=null&&typeof e=="object"}var Er=fQ,hQ=zi,pQ=Er,mQ="[object Arguments]";function gQ(e){return pQ(e)&&hQ(e)==mQ}var vQ=gQ,O2=vQ,bQ=Er,sO=Object.prototype,yQ=sO.hasOwnProperty,xQ=sO.propertyIsEnumerable,wQ=O2(function(){return arguments}())?O2:function(e){return bQ(e)&&yQ.call(e,"callee")&&!xQ.call(e,"callee")},Wh=wQ,_Q=Array.isArray,ir=_Q,CQ=9007199254740991;function $Q(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=CQ}var ey=$Q,SQ=Lh,EQ=ey;function kQ(e){return e!=null&&EQ(e.length)&&!SQ(e)}var Js=kQ,TQ=Js,OQ=Er;function MQ(e){return OQ(e)&&TQ(e)}var lO=MQ,gf={exports:{}};function AQ(){return!1}var RQ=AQ;gf.exports;(function(e,t){var n=li,r=RQ,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(gf,gf.exports);var Uh=gf.exports,jQ=zi,DQ=Qb,NQ=Er,IQ="[object Object]",PQ=Function.prototype,LQ=Object.prototype,cO=PQ.toString,FQ=LQ.hasOwnProperty,BQ=cO.call(Object);function zQ(e){if(!NQ(e)||jQ(e)!=IQ)return!1;var t=DQ(e);if(t===null)return!0;var n=FQ.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&cO.call(n)==BQ}var ty=zQ;const ny=on(ty);var WQ=zi,UQ=ey,HQ=Er,VQ="[object Arguments]",qQ="[object Array]",YQ="[object Boolean]",GQ="[object Date]",KQ="[object Error]",ZQ="[object Function]",XQ="[object Map]",QQ="[object Number]",JQ="[object Object]",eJ="[object RegExp]",tJ="[object Set]",nJ="[object String]",rJ="[object WeakMap]",iJ="[object ArrayBuffer]",aJ="[object DataView]",oJ="[object Float32Array]",sJ="[object Float64Array]",lJ="[object Int8Array]",cJ="[object Int16Array]",uJ="[object Int32Array]",dJ="[object Uint8Array]",fJ="[object Uint8ClampedArray]",hJ="[object Uint16Array]",pJ="[object Uint32Array]",Jt={};Jt[oJ]=Jt[sJ]=Jt[lJ]=Jt[cJ]=Jt[uJ]=Jt[dJ]=Jt[fJ]=Jt[hJ]=Jt[pJ]=!0;Jt[VQ]=Jt[qQ]=Jt[iJ]=Jt[YQ]=Jt[aJ]=Jt[GQ]=Jt[KQ]=Jt[ZQ]=Jt[XQ]=Jt[QQ]=Jt[JQ]=Jt[eJ]=Jt[tJ]=Jt[nJ]=Jt[rJ]=!1;function mJ(e){return HQ(e)&&UQ(e.length)&&!!Jt[WQ(e)]}var gJ=mJ;function vJ(e){return function(t){return e(t)}}var el=vJ,vf={exports:{}};vf.exports;(function(e,t){var n=KT,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(vf,vf.exports);var Hh=vf.exports,bJ=gJ,yJ=el,M2=Hh,A2=M2&&M2.isTypedArray,xJ=A2?yJ(A2):bJ,ry=xJ;function wJ(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var uO=wJ,_J=Zb,CJ=wu,$J=Object.prototype,SJ=$J.hasOwnProperty;function EJ(e,t,n){var r=e[t];(!(SJ.call(e,t)&&CJ(r,n))||n===void 0&&!(t in e))&&_J(e,t,n)}var iy=EJ,kJ=iy,TJ=Zb;function OJ(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?TJ(n,s,l):kJ(n,s,l)}return n}var tl=OJ;function MJ(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var AJ=MJ,RJ=9007199254740991,jJ=/^(?:0|[1-9]\d*)$/;function DJ(e,t){var n=typeof e;return t=t??RJ,!!t&&(n=="number"||n!="symbol"&&jJ.test(e))&&e>-1&&e%1==0&&e<t}var Vh=DJ,NJ=AJ,IJ=Wh,PJ=ir,LJ=Uh,FJ=Vh,BJ=ry,zJ=Object.prototype,WJ=zJ.hasOwnProperty;function UJ(e,t){var n=PJ(e),r=!n&&IJ(e),i=!n&&!r&&LJ(e),a=!n&&!r&&!i&&BJ(e),o=n||r||i||a,s=o?NJ(e.length,String):[],l=s.length;for(var c in e)(t||WJ.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||FJ(c,l)))&&s.push(c);return s}var dO=UJ;function HJ(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var VJ=HJ,qJ=ci,YJ=Jb,GJ=VJ,KJ=Object.prototype,ZJ=KJ.hasOwnProperty;function XJ(e){if(!qJ(e))return GJ(e);var t=YJ(e),n=[];for(var r in e)r=="constructor"&&(t||!ZJ.call(e,r))||n.push(r);return n}var QJ=XJ,JJ=dO,eee=QJ,tee=Js;function nee(e){return tee(e)?JJ(e,!0):eee(e)}var _u=nee,ree=tl,iee=_u;function aee(e){return ree(e,iee(e))}var oee=aee,R2=JT,see=tO,lee=rO,cee=iO,uee=oO,j2=Wh,D2=ir,dee=lO,fee=Uh,hee=Lh,pee=ci,mee=ty,gee=ry,N2=uO,vee=oee;function bee(e,t,n,r,i,a,o){var s=N2(e,n),l=N2(t,n),c=o.get(l);if(c){R2(e,n,c);return}var u=a?a(s,l,n+"",e,t,o):void 0,d=u===void 0;if(d){var f=D2(l),p=!f&&fee(l),g=!f&&!p&&gee(l);u=l,f||p||g?D2(s)?u=s:dee(s)?u=cee(s):p?(d=!1,u=see(l,!0)):g?(d=!1,u=lee(l,!0)):u=[]:mee(l)||j2(l)?(u=s,j2(s)?u=vee(s):(!pee(s)||hee(s))&&(u=uee(l))):d=!1}d&&(o.set(l,u),i(u,l,r,a,o),o.delete(l)),R2(e,n,u)}var yee=bee,xee=zh,wee=JT,_ee=eO,Cee=yee,$ee=ci,See=_u,Eee=uO;function fO(e,t,n,r,i){e!==t&&_ee(t,function(a,o){if(i||(i=new xee),$ee(a))Cee(e,t,o,n,fO,r,i);else{var s=r?r(Eee(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),wee(e,o,s)}},See)}var kee=fO;function Tee(e){return e}var qh=Tee;function Oee(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Mee=Oee,Aee=Mee,I2=Math.max;function Ree(e,t,n){return t=I2(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=I2(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Aee(e,this,s)}}var hO=Ree;function jee(e){return function(){return e}}var Dee=jee,Nee=Dee,P2=QT,Iee=qh,Pee=P2?function(e,t){return P2(e,"toString",{configurable:!0,enumerable:!1,value:Nee(t),writable:!0})}:Iee,Lee=Pee,Fee=800,Bee=16,zee=Date.now;function Wee(e){var t=0,n=0;return function(){var r=zee(),i=Bee-(r-n);if(n=r,i>0){if(++t>=Fee)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Uee=Wee,Hee=Lee,Vee=Uee,qee=Vee(Hee),pO=qee,Yee=qh,Gee=hO,Kee=pO;function Zee(e,t){return Kee(Gee(e,t,Yee),e+"")}var ay=Zee,Xee=wu,Qee=Js,Jee=Vh,ete=ci;function tte(e,t,n){if(!ete(n))return!1;var r=typeof t;return(r=="number"?Qee(n)&&Jee(t,n.length):r=="string"&&t in n)?Xee(n[t],e):!1}var mO=tte,nte=ay,rte=mO;function ite(e){return nte(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&rte(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var ate=ite,ote=kee,ste=ate,lte=ste(function(e,t,n){ote(e,t,n)}),cte=lte;const gO=on(cte);var ute=zi,dte=Er,fte="[object Symbol]";function hte(e){return typeof e=="symbol"||dte(e)&&ute(e)==fte}var Yh=hte,pte=ir,mte=Yh,gte=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vte=/^\w*$/;function bte(e,t){if(pte(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||mte(e)?!0:vte.test(e)||!gte.test(e)||t!=null&&e in Object(t)}var oy=bte,vO=Kb,yte="Expected a function";function sy(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(yte);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(sy.Cache||vO),n}sy.Cache=vO;var xte=sy,wte=xte,_te=500;function Cte(e){var t=wte(e,function(r){return n.size===_te&&n.clear(),r}),n=t.cache;return t}var $te=Cte,Ste=$te,Ete=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kte=/\\(\\)?/g,Tte=Ste(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ete,function(n,r,i,a){t.push(i?a.replace(kte,"$1"):r||n)}),t}),Ote=Tte;function Mte(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Gh=Mte,L2=Ks,Ate=Gh,Rte=ir,jte=Yh,F2=L2?L2.prototype:void 0,B2=F2?F2.toString:void 0;function bO(e){if(typeof e=="string")return e;if(Rte(e))return Ate(e,bO)+"";if(jte(e))return B2?B2.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Dte=bO,Nte=Dte;function Ite(e){return e==null?"":Nte(e)}var yO=Ite,Pte=ir,Lte=oy,Fte=Ote,Bte=yO;function zte(e,t){return Pte(e)?e:Lte(e,t)?[e]:Fte(Bte(e))}var nl=zte,Wte=Yh;function Ute(e){if(typeof e=="string"||Wte(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var rl=Ute,Hte=nl,Vte=rl;function qte(e,t){t=Hte(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Vte(t[n++])];return n&&n==r?e:void 0}var Cu=qte,Yte=Cu;function Gte(e,t,n){var r=e==null?void 0:Yte(e,t);return r===void 0?n:r}var xO=Gte;const ri=on(xO);var Kte=iy,Zte=nl,Xte=Vh,z2=ci,Qte=rl;function Jte(e,t,n,r){if(!z2(e))return e;t=Zte(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=Qte(t[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=o){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=z2(u)?u:Xte(t[i+1])?[]:{})}Kte(s,l,c),s=s[l]}return e}var wO=Jte,ene=wO;function tne(e,t,n){return e==null?e:ene(e,t,n)}var nne=tne;const Bl=on(nne);function yv(){return yv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yv.apply(null,arguments)}function rne(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ine=["outlineWidth","outlineColor","outlineOpacity"],ane=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,rne(e,ine)},one=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],sne=function(e,t){return yv({},t,e)},lne=function(e,t){var n=gO({},e,t);return one.forEach(function(r){Bl(n,r,sne(ri(n,r),n.text))}),n},_O=function(e,t){return t?gO({},e,t):e},cne={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"#ffffff",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}},une=function(e){return h.useMemo(function(){return lne(cne,e)},[e])},dne=function(e,t){return h.useMemo(function(){return _O(e,t)},[e,t])},CO=h.createContext(null),fne={},hne=function(e){var t=e.theme,n=t===void 0?fne:t,r=e.children,i=une(n);return b.jsx(CO.Provider,{value:i,children:r})},Lt=function(){var e=h.useContext(CO);if(e===null)throw new Error("Unable to find the theme, did you forget to wrap your component with ThemeProvider?");return e};function fo(){return fo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fo.apply(null,arguments)}var pne=["basic","chip","container","table","tableCell","tableCellValue"],mne={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},W2=function(e,t){return"translate("+e+"px, "+t+"px)"},$O=h.memo(function(e){var t,n=e.position,r=e.anchor,i=e.children,a=Lt(),o=Vn(),s=o.animate,l=o.config,c=bue(),u=c[0],d=c[1],f=h.useRef(!1),p=void 0,g=!1,m=d.width>0&&d.height>0,v=Math.round(n[0]),x=Math.round(n[1]);m&&(r==="top"?(v-=d.width/2,x-=d.height+14):r==="right"?(v+=14,x-=d.height/2):r==="bottom"?(v-=d.width/2,x+=14):r==="left"?(v-=d.width+14,x-=d.height/2):r==="center"&&(v-=d.width/2,x-=d.height/2),p={transform:W2(v,x)},f.current||(g=!0),f.current=[v,x]);var _=si({to:p,config:l,immediate:!s||g}),w=a.tooltip;w.basic,w.chip,w.container,w.table,w.tableCell,w.tableCellValue;var C=function($,E){if($==null)return{};var M={};for(var k in $)if({}.hasOwnProperty.call($,k)){if(E.indexOf(k)!==-1)continue;M[k]=$[k]}return M}(w,pne),y=fo({},mne,C,{transform:(t=_.transform)!=null?t:W2(v,x),opacity:_.transform?1:0});return b.jsx(qt.div,{ref:u,style:y,children:i})});$O.displayName="TooltipWrapper";var SO=h.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return b.jsx("span",{style:fo({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),ly=h.memo(function(e){var t,n=e.id,r=e.value,i=e.format,a=e.enableChip,o=a!==void 0&&a,s=e.color,l=e.renderContent,c=Lt(),u=Ns(i);if(typeof l=="function")t=l();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=b.jsxs("div",{style:c.tooltip.basic,children:[o&&b.jsx(SO,{color:s,style:c.tooltip.chip}),d!==void 0?b.jsxs("span",{children:[n,": ",b.jsx("strong",{children:""+d})]}):n]})}return b.jsx("div",{style:c.tooltip.container,role:"tooltip",children:t})}),gne={width:"100%",borderCollapse:"collapse"},EO=h.memo(function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,a=e.renderContent,o=Lt();return i.length?(t=typeof a=="function"?a():b.jsxs("div",{children:[n&&n,b.jsx("table",{style:fo({},gne,o.tooltip.table),children:b.jsx("tbody",{children:i.map(function(s,l){return b.jsx("tr",{children:s.map(function(c,u){return b.jsx("td",{style:o.tooltip.tableCell,children:c},u)})},l)})})})]}),b.jsx("div",{style:o.tooltip.container,children:t})):null});EO.displayName="TableTooltip";var xv=h.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,a=Lt(),o=Vn(),s=o.animate,l=o.config,c=h.useMemo(function(){return fo({},a.crosshair.line,{pointerEvents:"none"})},[a.crosshair.line]),u=si({x1:t,x2:n,y1:r,y2:i,config:l,immediate:!s});return b.jsx(qt.line,fo({},u,{fill:"none",style:c}))});xv.displayName="CrosshairLine";var wv=h.memo(function(e){var t,n,r=e.width,i=e.height,a=e.type,o=e.x,s=e.y;return a==="cross"?(t={x0:o,x1:o,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):a==="top-left"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):a==="top"?t={x0:o,x1:o,y0:0,y1:s}:a==="top-right"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):a==="right"?n={x0:o,x1:r,y0:s,y1:s}:a==="bottom-right"?(t={x0:o,x1:o,y0:s,y1:i},n={x0:o,x1:r,y0:s,y1:s}):a==="bottom"?t={x0:o,x1:o,y0:s,y1:i}:a==="bottom-left"?(t={x0:o,x1:o,y0:s,y1:i},n={x0:0,x1:o,y0:s,y1:s}):a==="left"?n={x0:0,x1:o,y0:s,y1:s}:a==="x"?t={x0:o,x1:o,y0:0,y1:i}:a==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),b.jsxs(b.Fragment,{children:[t&&b.jsx(xv,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&b.jsx(xv,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});wv.displayName="Crosshair";var kO=h.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),_v={isVisible:!1,position:[null,null],content:null,anchor:null},TO=h.createContext(_v),vne=function(e){var t=h.useState(_v),n=t[0],r=t[1],i=h.useCallback(function(s,l,c){var u=l[0],d=l[1];c===void 0&&(c="top"),r({isVisible:!0,position:[u,d],anchor:c,content:s})},[r]),a=h.useCallback(function(s,l,c){c===void 0&&(c="top");var u=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===u.width?1:d/u.width,p="touches"in l?l.touches[0]:l,g=p.clientX,m=p.clientY,v=(g-u.left)*f,x=(m-u.top)*f;c!=="left"&&c!=="right"||(c=v<u.width/2?"right":"left"),r({isVisible:!0,position:[v,x],anchor:c,content:s})},[e,r]),o=h.useCallback(function(){r(_v)},[r]);return{actions:h.useMemo(function(){return{showTooltipAt:i,showTooltipFromEvent:a,hideTooltip:o}},[i,a,o]),state:n}},Wi=function(){var e=h.useContext(kO);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},bne=function(){var e=h.useContext(TO);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},yne=function(e){return e.isVisible},xne=function(){var e=bne();return yne(e)?b.jsx($O,{position:e.position,anchor:e.anchor,children:e.content}):null},wne=function(e){var t=e.container,n=e.children,r=vne(t),i=r.actions,a=r.state;return b.jsx(kO.Provider,{value:i,children:b.jsx(TO.Provider,{value:a,children:n})})},_ne=zi,Cne=ir,$ne=Er,Sne="[object String]";function Ene(e){return typeof e=="string"||!Cne(e)&&$ne(e)&&_ne(e)==Sne}var kne=Ene;const Tne=on(kne);let br;typeof window<"u"?br=window:typeof self<"u"?br=self:br=global;let Cv=null,$v=null;const U2=20,Vm=br.clearTimeout,H2=br.setTimeout,qm=br.cancelAnimationFrame||br.mozCancelAnimationFrame||br.webkitCancelAnimationFrame,V2=br.requestAnimationFrame||br.mozRequestAnimationFrame||br.webkitRequestAnimationFrame;qm==null||V2==null?(Cv=Vm,$v=function(t){return H2(t,U2)}):(Cv=function([t,n]){qm(t),Vm(n)},$v=function(t){const n=V2(function(){Vm(r),t()}),r=H2(function(){qm(n),t()},U2);return[n,r]});function One(e){let t,n,r,i,a,o,s;const l=typeof document<"u"&&document.attachEvent;if(!l){o=function(x){const _=x.__resizeTriggers__,w=_.firstElementChild,C=_.lastElementChild,y=w.firstElementChild;C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight,y.style.width=w.offsetWidth+1+"px",y.style.height=w.offsetHeight+1+"px",w.scrollLeft=w.scrollWidth,w.scrollTop=w.scrollHeight},a=function(x){return x.offsetWidth!==x.__resizeLast__.width||x.offsetHeight!==x.__resizeLast__.height},s=function(x){if(x.target.className&&typeof x.target.className.indexOf=="function"&&x.target.className.indexOf("contract-trigger")<0&&x.target.className.indexOf("expand-trigger")<0)return;const _=this;o(this),this.__resizeRAF__&&Cv(this.__resizeRAF__),this.__resizeRAF__=$v(function(){a(_)&&(_.__resizeLast__.width=_.offsetWidth,_.__resizeLast__.height=_.offsetHeight,_.__resizeListeners__.forEach(function(y){y.call(_,x)}))})};let f=!1,p="";r="animationstart";const g="Webkit Moz O ms".split(" ");let m="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),v="";{const x=document.createElement("fakeelement");if(x.style.animationName!==void 0&&(f=!0),f===!1){for(let _=0;_<g.length;_++)if(x.style[g[_]+"AnimationName"]!==void 0){v=g[_],p="-"+v.toLowerCase()+"-",r=m[_],f=!0;break}}}n="resizeanim",t="@"+p+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=p+"animation: 1ms "+n+"; "}const c=function(f){if(!f.getElementById("detectElementResize")){const p=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',g=f.head||f.getElementsByTagName("head")[0],m=f.createElement("style");m.id="detectElementResize",m.type="text/css",e!=null&&m.setAttribute("nonce",e),m.styleSheet?m.styleSheet.cssText=p:m.appendChild(f.createTextNode(p)),g.appendChild(m)}};return{addResizeListener:function(f,p){if(l)f.attachEvent("onresize",p);else{if(!f.__resizeTriggers__){const g=f.ownerDocument,m=br.getComputedStyle(f);m&&m.position==="static"&&(f.style.position="relative"),c(g),f.__resizeLast__={},f.__resizeListeners__=[],(f.__resizeTriggers__=g.createElement("div")).className="resize-triggers";const v=g.createElement("div");v.className="expand-trigger",v.appendChild(g.createElement("div"));const x=g.createElement("div");x.className="contract-trigger",f.__resizeTriggers__.appendChild(v),f.__resizeTriggers__.appendChild(x),f.appendChild(f.__resizeTriggers__),o(f),f.addEventListener("scroll",s,!0),r&&(f.__resizeTriggers__.__animationListener__=function(w){w.animationName===n&&o(f)},f.__resizeTriggers__.addEventListener(r,f.__resizeTriggers__.__animationListener__))}f.__resizeListeners__.push(p)}},removeResizeListener:function(f,p){if(l)f.detachEvent("onresize",p);else if(f.__resizeListeners__.splice(f.__resizeListeners__.indexOf(p),1),!f.__resizeListeners__.length){f.removeEventListener("scroll",s,!0),f.__resizeTriggers__.__animationListener__&&(f.__resizeTriggers__.removeEventListener(r,f.__resizeTriggers__.__animationListener__),f.__resizeTriggers__.__animationListener__=null);try{f.__resizeTriggers__=!f.removeChild(f.__resizeTriggers__)}catch{}}}}}class Mne extends h.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){const a=window.getComputedStyle(this._parentNode)||{},o=parseFloat(a.paddingLeft||"0"),s=parseFloat(a.paddingRight||"0"),l=parseFloat(a.paddingTop||"0"),c=parseFloat(a.paddingBottom||"0"),u=this._parentNode.getBoundingClientRect(),d=u.height-l-c,f=u.width-o-s;if(!n&&this.state.height!==d||!r&&this.state.width!==f){this.setState({height:d,width:f});const p=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};typeof i=="function"&&i({height:d,width:f,get scaledHeight(){return p(),d},get scaledWidth(){return p(),f}})}}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const r=n.ownerDocument.defaultView.ResizeObserver;r!=null?(this._resizeObserver=new r(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=One(t),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:a=!1,doNotBailOutOnEmptyChildren:o=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,width:p}=this.state,g={overflow:"visible"},m={};let v=!1;return i||(f===0&&(v=!0),g.height=0,m.height=f,m.scaledHeight=f),a||(p===0&&(v=!0),g.width=0,m.width=p,m.scaledWidth=p),o&&(v=!1),h.createElement(u,{ref:this._setRef,style:{...g,...c},...d},!v&&t(m))}}function Kh(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function cy(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function il(){}var ho=.7,Rs=1/ho,us="\\s*([+-]?\\d+)\\s*",Dc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ane=/^#([0-9a-f]{3,8})$/,Rne=new RegExp(`^rgb\\(${us},${us},${us}\\)$`),jne=new RegExp(`^rgb\\(${Xr},${Xr},${Xr}\\)$`),Dne=new RegExp(`^rgba\\(${us},${us},${us},${Dc}\\)$`),Nne=new RegExp(`^rgba\\(${Xr},${Xr},${Xr},${Dc}\\)$`),Ine=new RegExp(`^hsl\\(${Dc},${Xr},${Xr}\\)$`),Pne=new RegExp(`^hsla\\(${Dc},${Xr},${Xr},${Dc}\\)$`),q2={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};Kh(il,Nc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Y2,formatHex:Y2,formatHex8:Lne,formatHsl:Fne,formatRgb:G2,toString:G2});function Y2(){return this.rgb().formatHex()}function Lne(){return this.rgb().formatHex8()}function Fne(){return MO(this).formatHsl()}function G2(){return this.rgb().formatRgb()}function Nc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ane.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?K2(t):n===3?new jn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?od(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?od(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=Rne.exec(e))?new jn(t[1],t[2],t[3],1):(t=jne.exec(e))?new jn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Dne.exec(e))?od(t[1],t[2],t[3],t[4]):(t=Nne.exec(e))?od(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Ine.exec(e))?Q2(t[1],t[2]/100,t[3]/100,1):(t=Pne.exec(e))?Q2(t[1],t[2]/100,t[3]/100,t[4]):q2.hasOwnProperty(e)?K2(q2[e]):e==="transparent"?new jn(NaN,NaN,NaN,0):null}function K2(e){return new jn(e>>16&255,e>>8&255,e&255,1)}function od(e,t,n,r){return r<=0&&(e=t=n=NaN),new jn(e,t,n,r)}function OO(e){return e instanceof il||(e=Nc(e)),e?(e=e.rgb(),new jn(e.r,e.g,e.b,e.opacity)):new jn}function js(e,t,n,r){return arguments.length===1?OO(e):new jn(e,t,n,r??1)}function jn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Kh(jn,js,cy(il,{brighter(e){return e=e==null?Rs:Math.pow(Rs,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ho:Math.pow(ho,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jn(eo(this.r),eo(this.g),eo(this.b),bf(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:Z2,formatHex:Z2,formatHex8:Bne,formatRgb:X2,toString:X2}));function Z2(){return`#${qa(this.r)}${qa(this.g)}${qa(this.b)}`}function Bne(){return`#${qa(this.r)}${qa(this.g)}${qa(this.b)}${qa((isNaN(this.opacity)?1:this.opacity)*255)}`}function X2(){const e=bf(this.opacity);return`${e===1?"rgb(":"rgba("}${eo(this.r)}, ${eo(this.g)}, ${eo(this.b)}${e===1?")":`, ${e})`}`}function bf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function eo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function qa(e){return e=eo(e),(e<16?"0":"")+e.toString(16)}function Q2(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mr(e,t,n,r)}function MO(e){if(e instanceof Mr)return new Mr(e.h,e.s,e.l,e.opacity);if(e instanceof il||(e=Nc(e)),!e)return new Mr;if(e instanceof Mr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new Mr(o,s,l,e.opacity)}function zne(e,t,n,r){return arguments.length===1?MO(e):new Mr(e,t,n,r??1)}function Mr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Kh(Mr,zne,cy(il,{brighter(e){return e=e==null?Rs:Math.pow(Rs,e),new Mr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ho:Math.pow(ho,e),new Mr(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,i=2*n-r;return new jn(Ym(e>=240?e-240:e+120,i,r),Ym(e,i,r),Ym(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Mr(J2(this.h),sd(this.s),sd(this.l),bf(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=bf(this.opacity);return`${e===1?"hsl(":"hsla("}${J2(this.h)}, ${sd(this.s)*100}%, ${sd(this.l)*100}%${e===1?")":`, ${e})`}`}}));function J2(e){return e=(e||0)%360,e<0?e+360:e}function sd(e){return Math.max(0,Math.min(1,e||0))}function Ym(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 Wne=Math.PI/180,Une=180/Math.PI;var AO=-.14861,uy=1.78277,dy=-.29227,Zh=-.90649,Ic=1.97294,e_=Ic*Zh,t_=Ic*uy,n_=uy*dy-Zh*AO;function Hne(e){if(e instanceof to)return new to(e.h,e.s,e.l,e.opacity);e instanceof jn||(e=OO(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(n_*r+e_*t-t_*n)/(n_+e_-t_),a=r-i,o=(Ic*(n-i)-dy*a)/Zh,s=Math.sqrt(o*o+a*a)/(Ic*i*(1-i)),l=s?Math.atan2(o,a)*Une-120:NaN;return new to(l<0?l+360:l,s,i,e.opacity)}function ii(e,t,n,r){return arguments.length===1?Hne(e):new to(e,t,n,r??1)}function to(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Kh(to,ii,cy(il,{brighter(e){return e=e==null?Rs:Math.pow(Rs,e),new to(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ho:Math.pow(ho,e),new to(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Wne,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new jn(255*(t+n*(AO*r+uy*i)),255*(t+n*(dy*r+Zh*i)),255*(t+n*(Ic*r)),this.opacity)}}));function Vne(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function qne(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),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return Vne((n-r/t)*t,o,i,a,s)}}const Xh=e=>()=>e;function RO(e,t){return function(n){return e+n*t}}function Yne(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 Gne(e,t){var n=t-e;return n?RO(e,n>180||n<-180?n-360*Math.round(n/360):n):Xh(isNaN(e)?t:e)}function Kne(e){return(e=+e)==1?ds:function(t,n){return n-t?Yne(t,n,e):Xh(isNaN(t)?n:t)}}function ds(e,t){var n=t-e;return n?RO(e,n):Xh(isNaN(e)?t:e)}const r_=function e(t){var n=Kne(t);function r(i,a){var o=n((i=js(i)).r,(a=js(a)).r),s=n(i.g,a.g),l=n(i.b,a.b),c=ds(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function Zne(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;o<n;++o)s=js(t[o]),r[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return r=e(r),i=e(i),a=e(a),s.opacity=1,function(l){return s.r=r(l),s.g=i(l),s.b=a(l),s+""}}}var Xne=Zne(qne);function Qne(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function Jne(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ere(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=fy(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(s){for(o=0;o<r;++o)a[o]=i[o](s);return a}}function tre(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Pc(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function nre(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=fy(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var Sv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gm=new RegExp(Sv.source,"g");function rre(e){return function(){return e}}function ire(e){return function(t){return e(t)+""}}function jO(e,t){var n=Sv.lastIndex=Gm.lastIndex=0,r,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Sv.exec(e))&&(i=Gm.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Pc(r,i)})),n=Gm.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?ire(l[0].x):rre(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function fy(e,t){var n=typeof t,r;return t==null||n==="boolean"?Xh(t):(n==="number"?Pc:n==="string"?(r=Nc(t))?(t=r,r_):jO:t instanceof Nc?r_:t instanceof Date?tre:Jne(t)?Qne:Array.isArray(t)?ere:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?nre:Pc)(e,t)}function DO(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function NO(e){return function t(n){n=+n;function r(i,a){var o=e((i=ii(i)).h,(a=ii(a)).h),s=ds(i.s,a.s),l=ds(i.l,a.l),c=ds(i.opacity,a.opacity);return function(u){return i.h=o(u),i.s=s(u),i.l=l(Math.pow(u,n)),i.opacity=c(u),i+""}}return r.gamma=t,r}(1)}NO(Gne);var hy=NO(ds),are="__lodash_hash_undefined__";function ore(e){return this.__data__.set(e,are),this}var sre=ore;function lre(e){return this.__data__.has(e)}var cre=lre,ure=Kb,dre=sre,fre=cre;function yf(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ure;++t<n;)this.add(e[t])}yf.prototype.add=yf.prototype.push=dre;yf.prototype.has=fre;var py=yf;function hre(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var pre=hre;function mre(e){return e!==e}var gre=mre;function vre(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var bre=vre,yre=pre,xre=gre,wre=bre;function _re(e,t,n){return t===t?wre(e,t,n):yre(e,xre,n)}var Cre=_re,$re=Cre;function Sre(e,t){var n=e==null?0:e.length;return!!n&&$re(e,t,0)>-1}var IO=Sre;function Ere(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var PO=Ere;function kre(e,t){return e.has(t)}var my=kre,Tre=py,Ore=IO,Mre=PO,Are=Gh,Rre=el,jre=my,Dre=200;function Nre(e,t,n,r){var i=-1,a=Ore,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Are(t,Rre(n))),r?(a=Mre,o=!1):t.length>=Dre&&(a=jre,o=!1,t=new Tre(t));e:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else a(t,d,r)||l.push(u)}return l}var Ire=Nre,Pre=Ire,Lre=ay,Fre=lO,Bre=Lre(function(e,t){return Fre(e)?Pre(e,t):[]}),zre=Bre;const LO=on(zre);function pt(e){return function(){return e}}const i_=Math.abs,kn=Math.atan2,Ia=Math.cos,Wre=Math.max,Km=Math.min,Ur=Math.sin,ts=Math.sqrt,On=1e-12,Lc=Math.PI,xf=Lc/2,kd=2*Lc;function Ure(e){return e>1?0:e<-1?Lc:Math.acos(e)}function a_(e){return e>=1?xf:e<=-1?-xf:Math.asin(e)}const Ev=Math.PI,kv=2*Ev,Ba=1e-6,Hre=kv-Ba;function FO(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Vre(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return FO;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let qre=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?FO:Vre(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=r-t,c=i-n,u=o-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Ba)if(!(Math.abs(d*l-c*u)>Ba)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-o,g=i-s,m=l*l+c*c,v=p*p+g*g,x=Math.sqrt(m),_=Math.sqrt(f),w=a*Math.tan((Ev-Math.acos((m+f-v)/(2*x*_)))/2),C=w/_,y=w/x;Math.abs(C-1)>Ba&&this._append`L${t+C*u},${n+C*d}`,this._append`A${a},${a},0,0,${+(d*p>u*g)},${this._x1=t+y*l},${this._y1=n+y*c}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,d=1^o,f=o?i-a:a-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Ba||Math.abs(this._y1-u)>Ba)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%kv+kv),f>Hre?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:f>Ba&&this._append`A${r},${r},0,${+(f>=Ev)},${d},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function gy(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new qre(t)}function Yre(e){return e.innerRadius}function Gre(e){return e.outerRadius}function Kre(e){return e.startAngle}function Zre(e){return e.endAngle}function Xre(e){return e&&e.padAngle}function Qre(e,t,n,r,i,a,o,s){var l=n-e,c=r-t,u=o-i,d=s-a,f=d*l-u*c;if(!(f*f<On))return f=(u*(t-a)-d*(e-i))/f,[e+f*l,t+f*c]}function ld(e,t,n,r,i,a,o){var s=e-n,l=t-r,c=(o?a:-a)/ts(s*s+l*l),u=c*l,d=-c*s,f=e+u,p=t+d,g=n+u,m=r+d,v=(f+g)/2,x=(p+m)/2,_=g-f,w=m-p,C=_*_+w*w,y=i-a,$=f*m-g*p,E=(w<0?-1:1)*ts(Wre(0,y*y*C-$*$)),M=($*w-_*E)/C,k=(-$*_-w*E)/C,R=($*w+_*E)/C,S=(-$*_+w*E)/C,T=M-v,j=k-x,D=R-v,N=S-x;return T*T+j*j>D*D+N*N&&(M=R,k=S),{cx:M,cy:k,x01:-u,y01:-d,x11:M*(i/y-1),y11:k*(i/y-1)}}function Jre(){var e=Yre,t=Gre,n=pt(0),r=null,i=Kre,a=Zre,o=Xre,s=null,l=gy(c);function c(){var u,d,f=+e.apply(this,arguments),p=+t.apply(this,arguments),g=i.apply(this,arguments)-xf,m=a.apply(this,arguments)-xf,v=i_(m-g),x=m>g;if(s||(s=u=l()),p<f&&(d=p,p=f,f=d),!(p>On))s.moveTo(0,0);else if(v>kd-On)s.moveTo(p*Ia(g),p*Ur(g)),s.arc(0,0,p,g,m,!x),f>On&&(s.moveTo(f*Ia(m),f*Ur(m)),s.arc(0,0,f,m,g,x));else{var _=g,w=m,C=g,y=m,$=v,E=v,M=o.apply(this,arguments)/2,k=M>On&&(r?+r.apply(this,arguments):ts(f*f+p*p)),R=Km(i_(p-f)/2,+n.apply(this,arguments)),S=R,T=R,j,D;if(k>On){var N=a_(k/f*Ur(M)),O=a_(k/p*Ur(M));($-=N*2)>On?(N*=x?1:-1,C+=N,y-=N):($=0,C=y=(g+m)/2),(E-=O*2)>On?(O*=x?1:-1,_+=O,w-=O):(E=0,_=w=(g+m)/2)}var P=p*Ia(_),W=p*Ur(_),U=f*Ia(y),I=f*Ur(y);if(R>On){var z=p*Ia(w),Y=p*Ur(w),X=f*Ia(C),K=f*Ur(C),Z;if(v<Lc)if(Z=Qre(P,W,X,K,z,Y,U,I)){var ee=P-Z[0],J=W-Z[1],B=z-Z[0],L=Y-Z[1],F=1/Ur(Ure((ee*B+J*L)/(ts(ee*ee+J*J)*ts(B*B+L*L)))/2),H=ts(Z[0]*Z[0]+Z[1]*Z[1]);S=Km(R,(f-H)/(F-1)),T=Km(R,(p-H)/(F+1))}else S=T=0}E>On?T>On?(j=ld(X,K,P,W,p,T,x),D=ld(z,Y,U,I,p,T,x),s.moveTo(j.cx+j.x01,j.cy+j.y01),T<R?s.arc(j.cx,j.cy,T,kn(j.y01,j.x01),kn(D.y01,D.x01),!x):(s.arc(j.cx,j.cy,T,kn(j.y01,j.x01),kn(j.y11,j.x11),!x),s.arc(0,0,p,kn(j.cy+j.y11,j.cx+j.x11),kn(D.cy+D.y11,D.cx+D.x11),!x),s.arc(D.cx,D.cy,T,kn(D.y11,D.x11),kn(D.y01,D.x01),!x))):(s.moveTo(P,W),s.arc(0,0,p,_,w,!x)):s.moveTo(P,W),!(f>On)||!($>On)?s.lineTo(U,I):S>On?(j=ld(U,I,z,Y,f,-S,x),D=ld(P,W,X,K,f,-S,x),s.lineTo(j.cx+j.x01,j.cy+j.y01),S<R?s.arc(j.cx,j.cy,S,kn(j.y01,j.x01),kn(D.y01,D.x01),!x):(s.arc(j.cx,j.cy,S,kn(j.y01,j.x01),kn(j.y11,j.x11),!x),s.arc(0,0,f,kn(j.cy+j.y11,j.cx+j.x11),kn(D.cy+D.y11,D.cx+D.x11),x),s.arc(D.cx,D.cy,S,kn(D.y11,D.x11),kn(D.y01,D.x01),!x))):s.arc(0,0,f,y,C,x)}if(s.closePath(),u)return s=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Lc/2;return[Ia(d)*u,Ur(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:pt(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:pt(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:pt(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:pt(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:pt(+u),c):i},c.endAngle=function(u){return arguments.length?(a=typeof u=="function"?u:pt(+u),c):a},c.padAngle=function(u){return arguments.length?(o=typeof u=="function"?u:pt(+u),c):o},c.context=function(u){return arguments.length?(s=u??null,c):s},c}function Qh(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function BO(e){this._context=e}BO.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 vy(e){return new BO(e)}function zO(e){return e[0]}function WO(e){return e[1]}function by(e,t){var n=pt(!0),r=null,i=vy,a=null,o=gy(s);e=typeof e=="function"?e:e===void 0?zO:pt(e),t=typeof t=="function"?t:t===void 0?WO:pt(t);function s(l){var c,u=(l=Qh(l)).length,d,f=!1,p;for(r==null&&(a=i(p=o())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(d,c,l),+t(d,c,l));if(p)return a=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:pt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:pt(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:pt(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(a=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=a=null:a=i(r=l),s):r},s}function eie(e,t,n){var r=null,i=pt(!0),a=null,o=vy,s=null,l=gy(c);e=typeof e=="function"?e:e===void 0?zO:pt(+e),t=typeof t=="function"?t:pt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?WO:pt(+n);function c(d){var f,p,g,m=(d=Qh(d)).length,v,x=!1,_,w=new Array(m),C=new Array(m);for(a==null&&(s=o(_=l())),f=0;f<=m;++f){if(!(f<m&&i(v=d[f],f,d))===x)if(x=!x)p=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=f-1;g>=p;--g)s.point(w[g],C[g]);s.lineEnd(),s.areaEnd()}x&&(w[f]=+e(v,f,d),C[f]=+t(v,f,d),s.point(r?+r(v,f,d):w[f],n?+n(v,f,d):C[f]))}if(_)return s=null,_+""||null}function u(){return by().defined(i).curve(o).context(a)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:pt(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:pt(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:pt(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:pt(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:pt(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:pt(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:pt(!!d),c):i},c.curve=function(d){return arguments.length?(o=d,a!=null&&(s=o(a)),c):o},c.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),c):a},c}function tie(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function nie(e){return e}function rie(){var e=nie,t=tie,n=null,r=pt(0),i=pt(kd),a=pt(0);function o(s){var l,c=(s=Qh(s)).length,u,d,f=0,p=new Array(c),g=new Array(c),m=+r.apply(this,arguments),v=Math.min(kd,Math.max(-kd,i.apply(this,arguments)-m)),x,_=Math.min(Math.abs(v)/c,a.apply(this,arguments)),w=_*(v<0?-1:1),C;for(l=0;l<c;++l)(C=g[p[l]=l]=+e(s[l],l,s))>0&&(f+=C);for(t!=null?p.sort(function(y,$){return t(g[y],g[$])}):n!=null&&p.sort(function(y,$){return n(s[y],s[$])}),l=0,d=f?(v-c*w)/f:0;l<c;++l,m=x)u=p[l],C=g[u],x=m+(C>0?C*d:0)+w,g[u]={data:s[u],index:l,value:C,startAngle:m,endAngle:x,padAngle:_};return g}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:pt(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:pt(+s),o):r},o.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:pt(+s),o):i},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:pt(+s),o):a},o}function ya(){}function wf(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Jh(e){this._context=e}Jh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:wf(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:wf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function iie(e){return new Jh(e)}function UO(e){this._context=e}UO.prototype={areaStart:ya,areaEnd:ya,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:wf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function aie(e){return new UO(e)}function HO(e){this._context=e}HO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:wf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function oie(e){return new HO(e)}function VO(e,t){this._basis=new Jh(e),this._beta=t}VO.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*a),this._beta*t[s]+(1-this._beta)*(i+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const sie=function e(t){function n(r){return t===1?new Jh(r):new VO(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function _f(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function yy(e,t){this._context=e,this._k=(1-t)/6}yy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:_f(this,this._x1,this._y1);break}(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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:_f(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const lie=function e(t){function n(r){return new yy(r,t)}return n.tension=function(r){return e(+r)},n}(0);function xy(e,t){this._context=e,this._k=(1-t)/6}xy.prototype={areaStart:ya,areaEnd:ya,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:_f(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const cie=function e(t){function n(r){return new xy(r,t)}return n.tension=function(r){return e(+r)},n}(0);function wy(e,t){this._context=e,this._k=(1-t)/6}wy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_f(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const uie=function e(t){function n(r){return new wy(r,t)}return n.tension=function(r){return e(+r)},n}(0);function _y(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>On){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>On){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function qO(e,t){this._context=e,this._alpha=t}qO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(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;break;case 2:this._point=3;default:_y(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const die=function e(t){function n(r){return t?new qO(r,t):new yy(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function YO(e,t){this._context=e,this._alpha=t}YO.prototype={areaStart:ya,areaEnd:ya,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:_y(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const fie=function e(t){function n(r){return t?new YO(r,t):new xy(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function GO(e,t){this._context=e,this._alpha=t}GO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_y(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const hie=function e(t){function n(r){return t?new GO(r,t):new wy(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function KO(e){this._context=e}KO.prototype={areaStart:ya,areaEnd:ya,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function pie(e){return new KO(e)}function o_(e){return e<0?-1:1}function s_(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(o_(a)+o_(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function l_(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Zm(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Cf(e){this._context=e}Cf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Zm(this,this._t0,l_(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(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;break;case 2:this._point=3,Zm(this,l_(this,n=s_(this,e,t)),n);break;default:Zm(this,this._t0,n=s_(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function ZO(e){this._context=new XO(e)}(ZO.prototype=Object.create(Cf.prototype)).point=function(e,t){Cf.prototype.point.call(this,t,e)};function XO(e){this._context=e}XO.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function mie(e){return new Cf(e)}function gie(e){return new ZO(e)}function QO(e){this._context=e}QO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=c_(e),i=c_(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function c_(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function vie(e){return new QO(e)}function ep(e,t){this._context=e,this._t=t}ep.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,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:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function bie(e){return new ep(e,.5)}function yie(e){return new ep(e,0)}function xie(e){return new ep(e,1)}function u_(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function d_(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function wie(e,t){return e[t]}function _ie(e){const t=[];return t.key=e,t}function Cie(){var e=pt([]),t=d_,n=u_,r=wie;function i(a){var o=Array.from(e.apply(this,arguments),_ie),s,l=o.length,c=-1,u;for(const d of a)for(s=0,++c;s<l;++s)(o[s][c]=[0,+r(d,o[s].key,c,a)]).data=d;for(s=0,u=Qh(t(o));s<l;++s)o[u[s]].index=s;return n(o,u),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:pt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:pt(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?d_:typeof a=="function"?a:pt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??u_,i):n},i}function $ie(e,t){if((l=e.length)>0)for(var n,r=0,i,a,o,s,l,c=e[t[0]].length;r<c;++r)for(o=s=0,n=0;n<l;++n)(a=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=s,i[0]=s+=a):(i[0]=0,i[1]=a)}function Td(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Sie(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Cy(e){let t,n,r;e.length!==2?(t=Td,n=(s,l)=>Td(e(s),l),r=(s,l)=>e(s)-l):(t=e===Td||e===Sie?e:Eie,n=e,r=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function o(s,l,c=0,u=s.length){const d=i(s,l,c,u-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:o,right:a}}function Eie(){return 0}function kie(e){return e===null?NaN:+e}const Tie=Cy(Td),Oie=Tie.right;Cy(kie).center;class f_ extends Map{constructor(t,n=Rie){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(h_(this,t))}has(t){return super.has(h_(this,t))}set(t,n){return super.set(Mie(this,t),n)}delete(t){return super.delete(Aie(this,t))}}function h_({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Mie({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Aie({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Rie(e){return e!==null&&typeof e=="object"?e.valueOf():e}const jie=Math.sqrt(50),Die=Math.sqrt(10),Nie=Math.sqrt(2);function $f(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=jie?10:a>=Die?5:a>=Nie?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?$f(e,t,n*2):[s,l,c]}function Tv(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?$f(t,e,n):$f(e,t,n);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(r)if(o<0)for(let c=0;c<s;++c)l[c]=(a-c)/-o;else for(let c=0;c<s;++c)l[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)l[c]=(i+c)/-o;else for(let c=0;c<s;++c)l[c]=(i+c)*o;return l}function Ov(e,t,n){return t=+t,e=+e,n=+n,$f(e,t,n)[2]}function Mv(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Ov(t,e,n):Ov(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Iie(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function Co(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const p_=Symbol("implicit");function Ya(){var e=new f_,t=[],n=[],r=p_;function i(a){let o=e.get(a);if(o===void 0){if(r!==p_)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new f_;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Ya(t,n).unknown(r)},Co.apply(i,arguments),i}function $y(){var e=Ya().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var f=t().length,p=i<r,g=p?i:r,m=p?r:i;a=(m-g)/Math.max(1,f-l+c*2),s&&(a=Math.floor(a)),g+=(m-g-a*(f-l))*u,o=a*(1-l),s&&(g=Math.round(g),o=Math.round(o));var v=Iie(f).map(function(x){return g+a*x});return n(p?v.reverse():v)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return $y(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},Co.apply(d(),arguments)}function JO(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return JO(t())},e}function Pie(){return JO($y.apply(null,arguments).paddingInner(1))}function Lie(e){return function(){return e}}function Fie(e){return+e}var m_=[0,1];function ns(e){return e}function Av(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Lie(isNaN(t)?NaN:.5)}function Bie(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function zie(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Av(i,r),a=n(o,a)):(r=Av(r,i),a=n(a,o)),function(s){return a(r(s))}}function Wie(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Av(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(s){var l=Oie(e,s,1,r)-1;return a[l](i[l](s))}}function tp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Sy(){var e=m_,t=m_,n=fy,r,i,a,o=ns,s,l,c;function u(){var f=Math.min(e.length,t.length);return o!==ns&&(o=Bie(e[0],e[f-1])),s=f>2?Wie:zie,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?a:(l||(l=s(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(i((c||(c=s(t,e.map(r),Pc)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,Fie),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=DO,u()},d.clamp=function(f){return arguments.length?(o=f?!0:ns,u()):o!==ns},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(a=f,d):a},function(f,p){return r=f,i=p,u()}}function e3(){return Sy()(ns,ns)}function Uie(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Sf(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 Ds(e){return e=Sf(Math.abs(e)),e?e[1]:NaN}function Hie(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Vie(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var qie=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fc(e){if(!(t=qie.exec(e)))throw new Error("invalid format: "+e);var t;return new Ey({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]})}Fc.prototype=Ey.prototype;function Ey(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+""}Ey.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 Yie(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var t3;function Gie(e,t){var n=Sf(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(t3=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Sf(e,Math.max(0,t+a-1))[0]}function g_(e,t){var n=Sf(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const v_={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:Uie,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return g_(e*100,t)},r:g_,s:Gie,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function b_(e){return e}var y_=Array.prototype.map,x_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Kie(e){var t=e.grouping===void 0||e.thousands===void 0?b_:Hie(y_.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal+"",a=e.numerals===void 0?b_:Vie(y_.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=Fc(d);var f=d.fill,p=d.align,g=d.sign,m=d.symbol,v=d.zero,x=d.width,_=d.comma,w=d.precision,C=d.trim,y=d.type;y==="n"?(_=!0,y="g"):v_[y]||(w===void 0&&(w=12),C=!0,y="g"),(v||f==="0"&&p==="=")&&(v=!0,f="0",p="=");var $=m==="$"?n:m==="#"&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",E=m==="$"?r:/[%p]/.test(y)?o:"",M=v_[y],k=/[defgprs%]/.test(y);w=w===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function R(S){var T=$,j=E,D,N,O;if(y==="c")j=M(S)+j,S="";else{S=+S;var P=S<0||1/S<0;if(S=isNaN(S)?l:M(Math.abs(S),w),C&&(S=Yie(S)),P&&+S==0&&g!=="+"&&(P=!1),T=(P?g==="("?g:s:g==="-"||g==="("?"":g)+T,j=(y==="s"?x_[8+t3/3]:"")+j+(P&&g==="("?")":""),k){for(D=-1,N=S.length;++D<N;)if(O=S.charCodeAt(D),48>O||O>57){j=(O===46?i+S.slice(D+1):S.slice(D))+j,S=S.slice(0,D);break}}}_&&!v&&(S=t(S,1/0));var W=T.length+S.length+j.length,U=W<x?new Array(x-W+1).join(f):"";switch(_&&v&&(S=t(U+S,U.length?x-j.length:1/0),U=""),p){case"<":S=T+S+j+U;break;case"=":S=T+U+S+j;break;case"^":S=U.slice(0,W=U.length>>1)+T+S+j+U.slice(W);break;default:S=U+T+S+j;break}return a(S)}return R.toString=function(){return d+""},R}function u(d,f){var p=c((d=Fc(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(Ds(f)/3)))*3,m=Math.pow(10,-g),v=x_[8+g/3];return function(x){return p(m*x)+v}}return{format:c,formatPrefix:u}}var cd,$u,n3;Zie({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Zie(e){return cd=Kie(e),$u=cd.format,n3=cd.formatPrefix,cd}function Xie(e){return Math.max(0,-Ds(Math.abs(e)))}function Qie(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ds(t)/3)))*3-Ds(Math.abs(e)))}function Jie(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ds(t)-Ds(e))+1}function eae(e,t,n,r){var i=Mv(e,t,n),a;switch(r=Fc(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Qie(i,o))&&(r.precision=a),n3(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=Jie(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=Xie(i))&&(r.precision=a-(r.type==="%")*2);break}}return $u(r)}function r3(e){var t=e.domain;return e.ticks=function(n){var r=t();return Tv(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return eae(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],l,c,u=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);u-- >0;){if(c=Ov(o,s,n),c===l)return r[i]=o,r[a]=s,t(r);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function Ef(){var e=e3();return e.copy=function(){return tp(e,Ef())},Co.apply(e,arguments),r3(e)}function i3(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function w_(e){return Math.log(e)}function __(e){return Math.exp(e)}function tae(e){return-Math.log(-e)}function nae(e){return-Math.exp(-e)}function rae(e){return isFinite(e)?+("1e"+e):e<0?0:e}function iae(e){return e===10?rae:e===Math.E?Math.exp:t=>Math.pow(e,t)}function aae(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 C_(e){return(t,n)=>-e(-t,n)}function oae(e){const t=e(w_,__),n=t.domain;let r=10,i,a;function o(){return i=aae(r),a=iae(r),n()[0]<0?(i=C_(i),a=C_(a),e(tae,nae)):e(w_,__),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let f=i(c),p=i(u),g,m;const v=s==null?10:+s;let x=[];if(!(r%1)&&p-f<v){if(f=Math.floor(f),p=Math.ceil(p),c>0){for(;f<=p;++f)for(g=1;g<r;++g)if(m=f<0?g/a(-f):g*a(f),!(m<c)){if(m>u)break;x.push(m)}}else for(;f<=p;++f)for(g=r-1;g>=1;--g)if(m=f>0?g/a(-f):g*a(f),!(m<c)){if(m>u)break;x.push(m)}x.length*2<v&&(x=Tv(c,u,v))}else x=Tv(f,p,Math.min(p-f,v)).map(a);return d?x.reverse():x},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Fc(l)).precision==null&&(l.trim=!0),l=$u(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/a(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(i3(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function a3(){const e=oae(Sy()).domain([1,10]);return e.copy=()=>tp(e,a3()).base(e.base()),Co.apply(e,arguments),e}function $_(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function S_(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function sae(e){var t=1,n=e($_(t),S_(t));return n.constant=function(r){return arguments.length?e($_(t=+r),S_(t)):t},r3(n)}function o3(){var e=sae(Sy());return e.copy=function(){return tp(e,o3()).constant(e.constant())},Co.apply(e,arguments)}const Xm=new Date,Qm=new Date;function yn(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let c;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},i.filter=a=>yn(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(Xm.setTime(+a),Qm.setTime(+o),e(Xm),e(Qm),Math.floor(n(Xm,Qm))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const kf=yn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);kf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?yn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):kf);kf.range;const Si=1e3,vr=Si*60,Ei=vr*60,Li=Ei*24,ky=Li*7,E_=Li*30,Jm=Li*365,Ga=yn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Si)},(e,t)=>(t-e)/Si,e=>e.getUTCSeconds());Ga.range;const Ty=yn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Si)},(e,t)=>{e.setTime(+e+t*vr)},(e,t)=>(t-e)/vr,e=>e.getMinutes());Ty.range;const Oy=yn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*vr)},(e,t)=>(t-e)/vr,e=>e.getUTCMinutes());Oy.range;const My=yn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Si-e.getMinutes()*vr)},(e,t)=>{e.setTime(+e+t*Ei)},(e,t)=>(t-e)/Ei,e=>e.getHours());My.range;const Ay=yn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ei)},(e,t)=>(t-e)/Ei,e=>e.getUTCHours());Ay.range;const Ry=yn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*vr)/Li,e=>e.getDate()-1);Ry.range;const s3=yn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Li,e=>e.getUTCDate()-1);s3.range;const l3=yn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Li,e=>Math.floor(e/Li));l3.range;function $o(e){return yn(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())*vr)/ky)}const jy=$o(0),lae=$o(1),cae=$o(2),uae=$o(3),dae=$o(4),fae=$o(5),hae=$o(6);jy.range;lae.range;cae.range;uae.range;dae.range;fae.range;hae.range;function So(e){return yn(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)/ky)}const Dy=So(0),pae=So(1),mae=So(2),gae=So(3),vae=So(4),bae=So(5),yae=So(6);Dy.range;pae.range;mae.range;gae.range;vae.range;bae.range;yae.range;const Ny=yn(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());Ny.range;const Iy=yn(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());Iy.range;const np=yn(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());np.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:yn(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)});np.range;const rp=yn(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());rp.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:yn(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)});rp.range;function c3(e,t,n,r,i,a){const o=[[Ga,1,Si],[Ga,5,5*Si],[Ga,15,15*Si],[Ga,30,30*Si],[a,1,vr],[a,5,5*vr],[a,15,15*vr],[a,30,30*vr],[i,1,Ei],[i,3,3*Ei],[i,6,6*Ei],[i,12,12*Ei],[r,1,Li],[r,2,2*Li],[n,1,ky],[t,1,E_],[t,3,3*E_],[e,1,Jm]];function s(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const p=d&&typeof d.range=="function"?d:l(c,u,d),g=p?p.range(c,+u+1):[];return f?g.reverse():g}function l(c,u,d){const f=Math.abs(u-c)/d,p=Cy(([,,v])=>v).right(o,f);if(p===o.length)return e.every(Mv(c/Jm,u/Jm,d));if(p===0)return kf.every(Math.max(Mv(c,u,d),1));const[g,m]=o[f/o[p-1][2]<o[p][2]/f?p-1:p];return g.every(m)}return[s,l]}const[xae,wae]=c3(rp,Iy,Dy,l3,Ay,Oy),[_ae,Cae]=c3(np,Ny,jy,Ry,My,Ty);var eg=new Date,tg=new Date;function pn(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,s){var l=[],c;if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},i.filter=function(a){return pn(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););})},n&&(i.count=function(a,o){return eg.setTime(+a),tg.setTime(+o),e(eg),e(tg),Math.floor(n(eg,tg))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?function(o){return r(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var Bc=pn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Bc.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?pn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Bc};Bc.range;var Tf=1e3,po=6e4,Of=36e5,u3=864e5,d3=6048e5,Rv=pn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Tf)},function(e,t){return(t-e)/Tf},function(e){return e.getUTCSeconds()});Rv.range;var f3=pn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Tf)},function(e,t){e.setTime(+e+t*po)},function(e,t){return(t-e)/po},function(e){return e.getMinutes()});f3.range;var h3=pn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Tf-e.getMinutes()*po)},function(e,t){e.setTime(+e+t*Of)},function(e,t){return(t-e)/Of},function(e){return e.getHours()});h3.range;var Py=pn(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*po)/u3},function(e){return e.getDate()-1});Py.range;function Eo(e){return pn(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*po)/d3})}var Mf=Eo(0),zc=Eo(1),p3=Eo(2),m3=Eo(3),mo=Eo(4),g3=Eo(5),v3=Eo(6);Mf.range;zc.range;p3.range;m3.range;mo.range;g3.range;v3.range;var b3=pn(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});b3.range;var xa=pn(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});xa.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:pn(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};xa.range;var y3=pn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*po)},function(e,t){return(t-e)/po},function(e){return e.getUTCMinutes()});y3.range;var x3=pn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Of)},function(e,t){return(t-e)/Of},function(e){return e.getUTCHours()});x3.range;var Ly=pn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/u3},function(e){return e.getUTCDate()-1});Ly.range;function ko(e){return pn(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/d3})}var Af=ko(0),Wc=ko(1),w3=ko(2),_3=ko(3),go=ko(4),C3=ko(5),$3=ko(6);Af.range;Wc.range;w3.range;_3.range;go.range;C3.range;$3.range;var S3=pn(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});S3.range;var wa=pn(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});wa.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:pn(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};wa.range;function ng(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 rg(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 Tl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function $ae(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=Ol(i),u=Ml(i),d=Ol(a),f=Ml(a),p=Ol(o),g=Ml(o),m=Ol(s),v=Ml(s),x=Ol(l),_=Ml(l),w={a:P,A:W,b:U,B:I,c:null,d:R_,e:R_,f:Yae,g:roe,G:aoe,H:Hae,I:Vae,j:qae,L:E3,m:Gae,M:Kae,p:z,q:Y,Q:N_,s:I_,S:Zae,u:Xae,U:Qae,V:Jae,w:eoe,W:toe,x:null,X:null,y:noe,Y:ioe,Z:ooe,"%":D_},C={a:X,A:K,b:Z,B:ee,c:null,d:j_,e:j_,f:uoe,g:xoe,G:_oe,H:soe,I:loe,j:coe,L:T3,m:doe,M:foe,p:J,q:B,Q:N_,s:I_,S:hoe,u:poe,U:moe,V:goe,w:voe,W:boe,x:null,X:null,y:yoe,Y:woe,Z:Coe,"%":D_},y={a:R,A:S,b:T,B:j,c:D,d:M_,e:M_,f:Bae,g:O_,G:T_,H:A_,I:A_,j:Iae,L:Fae,m:Nae,M:Pae,p:k,q:Dae,Q:Wae,s:Uae,S:Lae,u:Oae,U:Mae,V:Aae,w:Tae,W:Rae,x:N,X:O,y:O_,Y:T_,Z:jae,"%":zae};w.x=$(n,w),w.X=$(r,w),w.c=$(t,w),C.x=$(n,C),C.X=$(r,C),C.c=$(t,C);function $(L,F){return function(H){var A=[],Q=-1,q=0,G=L.length,oe,re,ne;for(H instanceof Date||(H=new Date(+H));++Q<G;)L.charCodeAt(Q)===37&&(A.push(L.slice(q,Q)),(re=k_[oe=L.charAt(++Q)])!=null?oe=L.charAt(++Q):re=oe==="e"?" ":"0",(ne=F[oe])&&(oe=ne(H,re)),A.push(oe),q=Q+1);return A.push(L.slice(q,Q)),A.join("")}}function E(L,F){return function(H){var A=Tl(1900,void 0,1),Q=M(A,L,H+="",0),q,G;if(Q!=H.length)return null;if("Q"in A)return new Date(A.Q);if("s"in A)return new Date(A.s*1e3+("L"in A?A.L:0));if(F&&!("Z"in A)&&(A.Z=0),"p"in A&&(A.H=A.H%12+A.p*12),A.m===void 0&&(A.m="q"in A?A.q:0),"V"in A){if(A.V<1||A.V>53)return null;"w"in A||(A.w=1),"Z"in A?(q=rg(Tl(A.y,0,1)),G=q.getUTCDay(),q=G>4||G===0?Wc.ceil(q):Wc(q),q=Ly.offset(q,(A.V-1)*7),A.y=q.getUTCFullYear(),A.m=q.getUTCMonth(),A.d=q.getUTCDate()+(A.w+6)%7):(q=ng(Tl(A.y,0,1)),G=q.getDay(),q=G>4||G===0?zc.ceil(q):zc(q),q=Py.offset(q,(A.V-1)*7),A.y=q.getFullYear(),A.m=q.getMonth(),A.d=q.getDate()+(A.w+6)%7)}else("W"in A||"U"in A)&&("w"in A||(A.w="u"in A?A.u%7:"W"in A?1:0),G="Z"in A?rg(Tl(A.y,0,1)).getUTCDay():ng(Tl(A.y,0,1)).getDay(),A.m=0,A.d="W"in A?(A.w+6)%7+A.W*7-(G+5)%7:A.w+A.U*7-(G+6)%7);return"Z"in A?(A.H+=A.Z/100|0,A.M+=A.Z%100,rg(A)):ng(A)}}function M(L,F,H,A){for(var Q=0,q=F.length,G=H.length,oe,re;Q<q;){if(A>=G)return-1;if(oe=F.charCodeAt(Q++),oe===37){if(oe=F.charAt(Q++),re=y[oe in k_?F.charAt(Q++):oe],!re||(A=re(L,H,A))<0)return-1}else if(oe!=H.charCodeAt(A++))return-1}return A}function k(L,F,H){var A=c.exec(F.slice(H));return A?(L.p=u.get(A[0].toLowerCase()),H+A[0].length):-1}function R(L,F,H){var A=p.exec(F.slice(H));return A?(L.w=g.get(A[0].toLowerCase()),H+A[0].length):-1}function S(L,F,H){var A=d.exec(F.slice(H));return A?(L.w=f.get(A[0].toLowerCase()),H+A[0].length):-1}function T(L,F,H){var A=x.exec(F.slice(H));return A?(L.m=_.get(A[0].toLowerCase()),H+A[0].length):-1}function j(L,F,H){var A=m.exec(F.slice(H));return A?(L.m=v.get(A[0].toLowerCase()),H+A[0].length):-1}function D(L,F,H){return M(L,t,F,H)}function N(L,F,H){return M(L,n,F,H)}function O(L,F,H){return M(L,r,F,H)}function P(L){return o[L.getDay()]}function W(L){return a[L.getDay()]}function U(L){return l[L.getMonth()]}function I(L){return s[L.getMonth()]}function z(L){return i[+(L.getHours()>=12)]}function Y(L){return 1+~~(L.getMonth()/3)}function X(L){return o[L.getUTCDay()]}function K(L){return a[L.getUTCDay()]}function Z(L){return l[L.getUTCMonth()]}function ee(L){return s[L.getUTCMonth()]}function J(L){return i[+(L.getUTCHours()>=12)]}function B(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var F=$(L+="",w);return F.toString=function(){return L},F},parse:function(L){var F=E(L+="",!1);return F.toString=function(){return L},F},utcFormat:function(L){var F=$(L+="",C);return F.toString=function(){return L},F},utcParse:function(L){var F=E(L+="",!0);return F.toString=function(){return L},F}}}var k_={"-":"",_:" ",0:"0"},Cn=/^\s*\d+/,Sae=/^%/,Eae=/[\\^$*+?|[\]().{}]/g;function kt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function kae(e){return e.replace(Eae,"\\$&")}function Ol(e){return new RegExp("^(?:"+e.map(kae).join("|")+")","i")}function Ml(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Tae(e,t,n){var r=Cn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Oae(e,t,n){var r=Cn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Mae(e,t,n){var r=Cn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Aae(e,t,n){var r=Cn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Rae(e,t,n){var r=Cn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function T_(e,t,n){var r=Cn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function O_(e,t,n){var r=Cn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function jae(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 Dae(e,t,n){var r=Cn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Nae(e,t,n){var r=Cn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function M_(e,t,n){var r=Cn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Iae(e,t,n){var r=Cn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function A_(e,t,n){var r=Cn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Pae(e,t,n){var r=Cn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Lae(e,t,n){var r=Cn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Fae(e,t,n){var r=Cn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Bae(e,t,n){var r=Cn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zae(e,t,n){var r=Sae.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Wae(e,t,n){var r=Cn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Uae(e,t,n){var r=Cn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function R_(e,t){return kt(e.getDate(),t,2)}function Hae(e,t){return kt(e.getHours(),t,2)}function Vae(e,t){return kt(e.getHours()%12||12,t,2)}function qae(e,t){return kt(1+Py.count(xa(e),e),t,3)}function E3(e,t){return kt(e.getMilliseconds(),t,3)}function Yae(e,t){return E3(e,t)+"000"}function Gae(e,t){return kt(e.getMonth()+1,t,2)}function Kae(e,t){return kt(e.getMinutes(),t,2)}function Zae(e,t){return kt(e.getSeconds(),t,2)}function Xae(e){var t=e.getDay();return t===0?7:t}function Qae(e,t){return kt(Mf.count(xa(e)-1,e),t,2)}function k3(e){var t=e.getDay();return t>=4||t===0?mo(e):mo.ceil(e)}function Jae(e,t){return e=k3(e),kt(mo.count(xa(e),e)+(xa(e).getDay()===4),t,2)}function eoe(e){return e.getDay()}function toe(e,t){return kt(zc.count(xa(e)-1,e),t,2)}function noe(e,t){return kt(e.getFullYear()%100,t,2)}function roe(e,t){return e=k3(e),kt(e.getFullYear()%100,t,2)}function ioe(e,t){return kt(e.getFullYear()%1e4,t,4)}function aoe(e,t){var n=e.getDay();return e=n>=4||n===0?mo(e):mo.ceil(e),kt(e.getFullYear()%1e4,t,4)}function ooe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+kt(t/60|0,"0",2)+kt(t%60,"0",2)}function j_(e,t){return kt(e.getUTCDate(),t,2)}function soe(e,t){return kt(e.getUTCHours(),t,2)}function loe(e,t){return kt(e.getUTCHours()%12||12,t,2)}function coe(e,t){return kt(1+Ly.count(wa(e),e),t,3)}function T3(e,t){return kt(e.getUTCMilliseconds(),t,3)}function uoe(e,t){return T3(e,t)+"000"}function doe(e,t){return kt(e.getUTCMonth()+1,t,2)}function foe(e,t){return kt(e.getUTCMinutes(),t,2)}function hoe(e,t){return kt(e.getUTCSeconds(),t,2)}function poe(e){var t=e.getUTCDay();return t===0?7:t}function moe(e,t){return kt(Af.count(wa(e)-1,e),t,2)}function O3(e){var t=e.getUTCDay();return t>=4||t===0?go(e):go.ceil(e)}function goe(e,t){return e=O3(e),kt(go.count(wa(e),e)+(wa(e).getUTCDay()===4),t,2)}function voe(e){return e.getUTCDay()}function boe(e,t){return kt(Wc.count(wa(e)-1,e),t,2)}function yoe(e,t){return kt(e.getUTCFullYear()%100,t,2)}function xoe(e,t){return e=O3(e),kt(e.getUTCFullYear()%100,t,2)}function woe(e,t){return kt(e.getUTCFullYear()%1e4,t,4)}function _oe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?go(e):go.ceil(e),kt(e.getUTCFullYear()%1e4,t,4)}function Coe(){return"+0000"}function D_(){return"%"}function N_(e){return+e}function I_(e){return Math.floor(+e/1e3)}var Ho,ip,M3,A3,R3;$oe({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 $oe(e){return Ho=$ae(e),ip=Ho.format,M3=Ho.parse,A3=Ho.utcFormat,R3=Ho.utcParse,Ho}function Soe(e){return new Date(e)}function Eoe(e){return e instanceof Date?+e:+new Date(+e)}function Fy(e,t,n,r,i,a,o,s,l,c){var u=e3(),d=u.invert,f=u.domain,p=c(".%L"),g=c(":%S"),m=c("%I:%M"),v=c("%I %p"),x=c("%a %d"),_=c("%b %d"),w=c("%B"),C=c("%Y");function y($){return(l($)<$?p:s($)<$?g:o($)<$?m:a($)<$?v:r($)<$?i($)<$?x:_:n($)<$?w:C)($)}return u.invert=function($){return new Date(d($))},u.domain=function($){return arguments.length?f(Array.from($,Eoe)):f().map(Soe)},u.ticks=function($){var E=f();return e(E[0],E[E.length-1],$??10)},u.tickFormat=function($,E){return E==null?y:c(E)},u.nice=function($){var E=f();return(!$||typeof $.range!="function")&&($=t(E[0],E[E.length-1],$??10)),$?f(i3(E,$)):u},u.copy=function(){return tp(u,Fy(e,t,n,r,i,a,o,s,l,c))},u}function koe(){return Co.apply(Fy(_ae,Cae,np,Ny,jy,Ry,My,Ty,Ga,ip).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Toe(){return Co.apply(Fy(xae,wae,rp,Iy,Dy,s3,Ay,Oy,Ga,A3).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function st(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const Ooe=st("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Moe=st("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Aoe=st("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Roe=st("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),joe=st("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Doe=st("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Noe=st("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Ioe=st("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),j3=st("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Poe=st("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Yt=e=>Xne(e[e.length-1]);var ap=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(st);const Loe=Yt(ap);var op=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(st);const Foe=Yt(op);var sp=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(st);const Boe=Yt(sp);var lp=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(st);const zoe=Yt(lp);var cp=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(st);const Woe=Yt(cp);var up=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(st);const Uoe=Yt(up);var dp=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(st);const Hoe=Yt(dp);var fp=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(st);const Voe=Yt(fp);var hp=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(st);const qoe=Yt(hp);var pp=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(st);const Yoe=Yt(pp);var mp=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(st);const Goe=Yt(mp);var gp=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(st);const Koe=Yt(gp);var vp=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(st);const Zoe=Yt(vp);var bp=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(st);const Xoe=Yt(bp);var yp=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(st);const Qoe=Yt(yp);var xp=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(st);const Joe=Yt(xp);var wp=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(st);const ese=Yt(wp);var _p=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(st);const tse=Yt(_p);var Cp=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(st);const nse=Yt(Cp);var $p=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(st);const rse=Yt($p);var Sp=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(st);const ise=Yt(Sp);var Ep=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(st);const ase=Yt(Ep);var kp=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(st);const ose=Yt(kp);var Tp=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(st);const sse=Yt(Tp);var Op=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(st);const lse=Yt(Op);var Mp=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(st);const cse=Yt(Mp);var Ap=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(st);const use=Yt(Ap);function dse(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const fse=hy(ii(300,.5,0),ii(-240,.5,1));var hse=hy(ii(-100,.75,.35),ii(80,1.5,.8)),pse=hy(ii(260,.75,.35),ii(80,1.5,.8)),ud=ii();function mse(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return ud.h=360*e-100,ud.s=1.5-1.5*t,ud.l=.8-.9*t,ud+""}var dd=js(),gse=Math.PI/3,vse=Math.PI*2/3;function bse(e){var t;return e=(.5-e)*Math.PI,dd.r=255*(t=Math.sin(e))*t,dd.g=255*(t=Math.sin(e+gse))*t,dd.b=255*(t=Math.sin(e+vse))*t,dd+""}function yse(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function Rp(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const xse=Rp(st("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var wse=Rp(st("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),_se=Rp(st("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Cse=Rp(st("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function $se(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var D3=$se;const Ae=on(D3);var Sse=Cu,Ese=wO,kse=nl;function Tse(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Sse(e,o);n(s,o)&&Ese(a,kse(o,e),s)}return a}var Ose=Tse;function Mse(e,t){return e!=null&&t in Object(e)}var Ase=Mse,Rse=nl,jse=Wh,Dse=ir,Nse=Vh,Ise=ey,Pse=rl;function Lse(e,t,n){t=Rse(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=Pse(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&Ise(i)&&Nse(o,i)&&(Dse(e)||jse(e)))}var Fse=Lse,Bse=Ase,zse=Fse;function Wse(e,t){return e!=null&&zse(e,t,Bse)}var N3=Wse,Use=Ose,Hse=N3;function Vse(e,t){return Use(e,t,function(n,r){return Hse(e,r)})}var qse=Vse;function Yse(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var By=Yse,P_=Ks,Gse=Wh,Kse=ir,L_=P_?P_.isConcatSpreadable:void 0;function Zse(e){return Kse(e)||Gse(e)||!!(L_&&e&&e[L_])}var Xse=Zse,Qse=By,Jse=Xse;function I3(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=Jse),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?I3(s,t-1,n,r,i):Qse(i,s):r||(i[i.length]=s)}return i}var P3=I3,ele=P3;function tle(e){var t=e==null?0:e.length;return t?ele(e,1):[]}var nle=tle,rle=nle,ile=hO,ale=pO;function ole(e){return ale(ile(e,void 0,rle),e+"")}var L3=ole,sle=qse,lle=L3,cle=lle(function(e,t){return e==null?{}:sle(e,t)}),ule=cle;const dle=on(ule);function fle(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var hle=fle,ple=py,mle=hle,gle=my,vle=1,ble=2;function yle(e,t,n,r,i,a){var o=n&vle,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=n&ble?new ple:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var g=e[d],m=t[d];if(r)var v=o?r(m,g,d,t,e,a):r(g,m,d,e,t,a);if(v!==void 0){if(v)continue;f=!1;break}if(p){if(!mle(t,function(x,_){if(!gle(p,_)&&(g===x||i(g,x,n,r,a)))return p.push(_)})){f=!1;break}}else if(!(g===m||i(g,m,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var F3=yle;function xle(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var wle=xle;function _le(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var zy=_le,F_=Ks,B_=nO,Cle=wu,$le=F3,Sle=wle,Ele=zy,kle=1,Tle=2,Ole="[object Boolean]",Mle="[object Date]",Ale="[object Error]",Rle="[object Map]",jle="[object Number]",Dle="[object RegExp]",Nle="[object Set]",Ile="[object String]",Ple="[object Symbol]",Lle="[object ArrayBuffer]",Fle="[object DataView]",z_=F_?F_.prototype:void 0,ig=z_?z_.valueOf:void 0;function Ble(e,t,n,r,i,a,o){switch(n){case Fle:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Lle:return!(e.byteLength!=t.byteLength||!a(new B_(e),new B_(t)));case Ole:case Mle:case jle:return Cle(+e,+t);case Ale:return e.name==t.name&&e.message==t.message;case Dle:case Ile:return e==t+"";case Rle:var s=Sle;case Nle:var l=r&kle;if(s||(s=Ele),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=Tle,o.set(e,t);var u=$le(s(e),s(t),r,i,a,o);return o.delete(e),u;case Ple:if(ig)return ig.call(e)==ig.call(t)}return!1}var zle=Ble,Wle=By,Ule=ir;function Hle(e,t,n){var r=t(e);return Ule(e)?r:Wle(r,n(e))}var B3=Hle;function Vle(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var z3=Vle;function qle(){return[]}var W3=qle,Yle=z3,Gle=W3,Kle=Object.prototype,Zle=Kle.propertyIsEnumerable,W_=Object.getOwnPropertySymbols,Xle=W_?function(e){return e==null?[]:(e=Object(e),Yle(W_(e),function(t){return Zle.call(e,t)}))}:Gle,Wy=Xle,Qle=aO,Jle=Qle(Object.keys,Object),ece=Jle,tce=Jb,nce=ece,rce=Object.prototype,ice=rce.hasOwnProperty;function ace(e){if(!tce(e))return nce(e);var t=[];for(var n in Object(e))ice.call(e,n)&&n!="constructor"&&t.push(n);return t}var oce=ace,sce=dO,lce=oce,cce=Js;function uce(e){return cce(e)?sce(e):lce(e)}var Su=uce,dce=B3,fce=Wy,hce=Su;function pce(e){return dce(e,hce,fce)}var U3=pce,U_=U3,mce=1,gce=Object.prototype,vce=gce.hasOwnProperty;function bce(e,t,n,r,i,a){var o=n&mce,s=U_(e),l=s.length,c=U_(t),u=c.length;if(l!=u&&!o)return!1;for(var d=l;d--;){var f=s[d];if(!(o?f in t:vce.call(t,f)))return!1}var p=a.get(e),g=a.get(t);if(p&&g)return p==t&&g==e;var m=!0;a.set(e,t),a.set(t,e);for(var v=o;++d<l;){f=s[d];var x=e[f],_=t[f];if(r)var w=o?r(_,x,f,t,e,a):r(x,_,f,e,t,a);if(!(w===void 0?x===_||i(x,_,n,r,a):w)){m=!1;break}v||(v=f=="constructor")}if(m&&!v){var C=e.constructor,y=t.constructor;C!=y&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof y=="function"&&y instanceof y)&&(m=!1)}return a.delete(e),a.delete(t),m}var yce=bce,xce=_o,wce=li,_ce=xce(wce,"DataView"),Cce=_ce,$ce=_o,Sce=li,Ece=$ce(Sce,"Promise"),kce=Ece,Tce=_o,Oce=li,Mce=Tce(Oce,"Set"),H3=Mce,Ace=_o,Rce=li,jce=Ace(Rce,"WeakMap"),Dce=jce,jv=Cce,Dv=Gb,Nv=kce,Iv=H3,Pv=Dce,V3=zi,al=XT,H_="[object Map]",Nce="[object Object]",V_="[object Promise]",q_="[object Set]",Y_="[object WeakMap]",G_="[object DataView]",Ice=al(jv),Pce=al(Dv),Lce=al(Nv),Fce=al(Iv),Bce=al(Pv),za=V3;(jv&&za(new jv(new ArrayBuffer(1)))!=G_||Dv&&za(new Dv)!=H_||Nv&&za(Nv.resolve())!=V_||Iv&&za(new Iv)!=q_||Pv&&za(new Pv)!=Y_)&&(za=function(e){var t=V3(e),n=t==Nce?e.constructor:void 0,r=n?al(n):"";if(r)switch(r){case Ice:return G_;case Pce:return H_;case Lce:return V_;case Fce:return q_;case Bce:return Y_}return t});var jp=za,ag=zh,zce=F3,Wce=zle,Uce=yce,K_=jp,Z_=ir,X_=Uh,Hce=ry,Vce=1,Q_="[object Arguments]",J_="[object Array]",fd="[object Object]",qce=Object.prototype,eC=qce.hasOwnProperty;function Yce(e,t,n,r,i,a){var o=Z_(e),s=Z_(t),l=o?J_:K_(e),c=s?J_:K_(t);l=l==Q_?fd:l,c=c==Q_?fd:c;var u=l==fd,d=c==fd,f=l==c;if(f&&X_(e)){if(!X_(t))return!1;o=!0,u=!1}if(f&&!u)return a||(a=new ag),o||Hce(e)?zce(e,t,n,r,i,a):Wce(e,t,l,n,r,i,a);if(!(n&Vce)){var p=u&&eC.call(e,"__wrapped__"),g=d&&eC.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,v=g?t.value():t;return a||(a=new ag),i(m,v,n,r,a)}}return f?(a||(a=new ag),Uce(e,t,n,r,i,a)):!1}var Gce=Yce,Kce=Gce,tC=Er;function q3(e,t,n,r,i){return e===t?!0:e==null||t==null||!tC(e)&&!tC(t)?e!==e&&t!==t:Kce(e,t,n,r,q3,i)}var Uy=q3,Zce=Uy;function Xce(e,t){return Zce(e,t)}var Qce=Xce;const Jce=on(Qce);var Y3=h.createContext(),eue=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,a=i===void 0?"default":i,o=h.useMemo(function(){var s=Tne(a)?jT[a]:a;return{animate:r,config:s}},[r,a]);return b.jsx(Y3.Provider,{value:o,children:t})},Vn=function(){return h.useContext(Y3)},tue=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?h.cloneElement(r,{},t):t},nue={position:"relative"},To=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,a=e.isInteractive,o=a===void 0||a,s=e.animate,l=e.motionConfig,c=h.useRef(null);return b.jsx(hne,{theme:n,children:b.jsx(eue,{animate:s,config:l,children:b.jsx(wne,{container:c,children:b.jsxs(tue,{condition:i,wrapper:b.jsx("div",{style:nue,ref:c}),children:[t,o&&b.jsx(xne,{})]})})})})},rue=function(e,t){return e.width===t.width&&e.height===t.height},iue=function(e){var t=e.children,n=e.width,r=e.height,i=e.onResize,a=e.debounceResize,o=Tb({width:n,height:r},a,{equalityFn:rue})[0];return h.useEffect(function(){i==null||i(o)},[o,i]),b.jsx(b.Fragment,{children:t(o)})},Oo=function(e){var t=e.children,n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=a===void 0?0:a;return b.jsx(Mne,{defaultWidth:n,defaultHeight:r,children:function(s){var l=s.width,c=s.height;return b.jsx(iue,{width:l,height:c,onResize:i,debounceResize:o,children:t})}})};function nC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function aue(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(i,a){if(i){if(typeof i=="string")return nC(i,a);var o={}.toString.call(i).slice(8,-1);return o==="Object"&&i.constructor&&(o=i.constructor.name),o==="Map"||o==="Set"?Array.from(i):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?nC(i,a):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
280
280
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qr.apply(null,arguments)}function G3(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var oue=["id","colors"],sue=function(e){var t=e.id,n=e.colors,r=G3(e,oue);return b.jsx("linearGradient",Qr({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(i){var a=i.offset,o=i.color,s=i.opacity;return b.jsx("stop",{offset:a+"%",stopColor:o,stopOpacity:s!==void 0?s:1},a)})}))},K3={linearGradient:sue},Al={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},lue=h.memo(function(e){var t=e.id,n=e.background,r=n===void 0?Al.background:n,i=e.color,a=i===void 0?Al.color:i,o=e.size,s=o===void 0?Al.size:o,l=e.padding,c=l===void 0?Al.padding:l,u=e.stagger,d=u===void 0?Al.stagger:u,f=s+c,p=s/2,g=c/2;return d===!0&&(f=2*s+2*c),b.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[b.jsx("rect",{width:f,height:f,fill:r}),b.jsx("circle",{cx:g+p,cy:g+p,r:p,fill:a}),d&&b.jsx("circle",{cx:1.5*c+s+p,cy:1.5*c+s+p,r:p,fill:a})]})}),yr=function(e){return e*Math.PI/180},Eu=function(e){return 180*e/Math.PI},cue=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},no=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},uue=function(e){var t=e%360;return t<0&&(t+=360),t},Z3={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Rl={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},due=h.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Rl.spacing:n,i=e.rotation,a=i===void 0?Rl.rotation:i,o=e.background,s=o===void 0?Rl.background:o,l=e.color,c=l===void 0?Rl.color:l,u=e.lineWidth,d=u===void 0?Rl.lineWidth:u,f=Math.round(a)%360,p=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var g,m=p,v=p;return f===0?g=`
|
|
281
281
|
M 0 0 L `+m+` 0
|
|
282
282
|
M 0 `+v+" L "+m+" "+v+`
|