1"use strict";(globalThis.webpackChunkfrontend||=[]).push([[1648],{23585(e,t,n){n.d(t,{Mp:()=>Ue,Hd:()=>st,vL:()=>ee,AN:()=>ue,fp:()=>R,y$:()=>D,Sj:()=>A,fF:()=>He,PM:()=>qe,zM:()=>Qe,MS:()=>h,FR:()=>p});var r=n(65043),o=n(97950),i=n(41024);const a={display:"none"};function l(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:a},n)}function s(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return r.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,"aria-atomic":!0},n)}const c=(0,r.createContext)(null);const u={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},d={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 f(e){let{announcements:t=d,container:n,hiddenTextDescribedById:a,screenReaderInstructions:f=u}=e;const{announce:v,announcement:g}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),h=(0,i.YG)("DndLiveRegion"),[p,b]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{b(!0)},[]),function(e){const t=(0,r.useContext)(c);(0,r.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}((0,r.useMemo)(()=>({onDragStart(e){let{active:n}=e;v(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&v(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;v(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;v(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;v(t.onDragCancel({active:n,over:r}))}}),[v,t])),!p)return null;const m=r.createElement(r.Fragment,null,r.createElement(l,{id:a,value:f.draggable}),r.createElement(s,{id:h,announcement:g}));return n?(0,o.createPortal)(m,n):m}var v;function g(){}function h(e,t){return(0,r.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}!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"}(v||(v={}));const b=Object.freeze({x:0,y:0});function m(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function y(e,t){const n=(0,i.e_)(e);if(!n)return"0 0";return(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%"}function w(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function x(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function C(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function E(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const R=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=E(t,t.left,t.top),i=[];for(const a of r){const{id:e}=a,t=n.get(e);if(t){const n=m(E(t),o);i.push({id:e,data:{droppableContainer:a,value:n}})}}return i.sort(w)},D=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=C(t),i=[];for(const a of r){const{id:e}=a,t=n.get(e);if(t){const n=C(t),r=o.reduce((e,t,r)=>e+m(n[r],t),0),l=Number((r/4).toFixed(4));i.push({id:e,data:{droppableContainer:a,value:l}})}}return i.sort(w)};function S(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,l=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*l;return Number((o/(n+r-o)).toFixed(4))}return 0}const N=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:e}=i,r=n.get(e);if(r){const n=S(r,t);
1n>0&&o.push({id:e,data:{droppableContainer:i,value:n}})}}return o.sort(x)};function M(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:b}function k(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}const T=k(1);function O(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]}}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}const I={ignoreTransform:!1};function A(e,t){void 0===t&&(t=I);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=(0,i.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=O(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,s=e.left-a-(1-o)*parseFloat(n),c=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s}}(n,t,r))}const{top:r,left:o,width:a,height:l,bottom:s,right:c}=n;return{top:r,left:o,width:a,height:l,bottom:s,right:c}}function L(e){return A(e,{ignoreTransform:!0})}function z(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if((0,i.wz)(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!(0,i.sb)(o)||(0,i.xZ)(o))return n;if(n.includes(o))return n;const a=(0,i.zk)(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=(0,i.zk)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"===typeof r&&n.test(r)})}(o,a)&&n.push(o),function(e,t){return void 0===t&&(t=(0,i.zk)(e).getComputedStyle(e)),"fixed"===t.position}(o,a)?n:r(o.parentNode)}(e):n}function P(e){const[t]=z(e,1);return null!=t?t:null}function B(e){return i.Sw&&e?(0,i.l6)(e)?e:(0,i.Ll)(e)?(0,i.wz)(e)||e===(0,i.TW)(e).scrollingElement?window:(0,i.sb)(e)?e:null:null:null}function Y(e){return(0,i.l6)(e)?e.scrollX:e.scrollLeft}function W(e){return(0,i.l6)(e)?e.scrollY:e.scrollTop}function j(e){return{x:Y(e),y:W(e)}}var K;function F(e){return!(!i.Sw||!e)&&e===document.scrollingElement}function X(e){const t={x:0,y:0},n=F(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(K||(K={}));const U={x:.2,y:.2};function G(e,t,n,r,o){let{top:i,left:a,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===o&&(o=U);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=X(e),v={x:0,y:0},g={x:0,y:0},h=t.height*o.y,p=t.width*o.x;return!c&&i<=t.top+h?(v.y=K.Backward,g.y=r*Math.abs((t.top+h-i)/h)):!u&&s>=t.bottom-h&&(v.y=K.Forward,g.y=r*Math.abs((t.bottom-h-s)/h)),!f&&l>=t.right-p?(v.x=K.Forward,g.x=r*Math.abs((t.right-p-l)/p)):!d&&a<=t.left+p&&(v.x=K.Backward,g.x=r*Math.abs((t.left+p-a)/p)),{direction:v,speed:g}}function _(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function q(e){return e.reduce((e,t)=>(0,i.WQ)(e,j(t)),b)}function H(e,t){if(void 0===t&&(t=A),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);P(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const J=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+Y(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+W(t),0)}]];class Q{constructor(e,t){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 n=z(t),r=q(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[o,i,a]of J)for(const e of i)Object.defineProperty(this,e,{get:()=>{const t=a(n),i=r[o]-t;return this.rect[e]+i},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class V{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>
1{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function Z(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"===typeof t?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}var $,ee;function te(e){e.preventDefault()}function ne(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}($||($={})),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"}(ee||(ee={}));const re={start:[ee.Space,ee.Enter],cancel:[ee.Esc],end:[ee.Space,ee.Enter,ee.Tab]},oe=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case ee.Right:return{...n,x:n.x+25};case ee.Left:return{...n,x:n.x-25};case ee.Down:return{...n,y:n.y+25};case ee.Up:return{...n,y:n.y-25}}};class ie{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new V((0,i.TW)(t)),this.windowListeners=new V((0,i.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add($.Resize,this.handleCancel),this.windowListeners.add($.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add($.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&H(n),t(b)}handleKeyDown(e){if((0,i.kx)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=re,coordinateGetter:a=oe,scrollBehavior:l="smooth"}=r,{code:s}=e;if(o.end.includes(s))return void this.handleEnd(e);if(o.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:c}=n.current,u=c?{x:c.left,y:c.top}:b;this.referenceCoordinates||(this.referenceCoordinates=u);const d=a(e,{active:t,context:n.current,currentCoordinates:u});if(d){const t=(0,i.Re)(d,u),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:a,isLeft:s,isBottom:c,maxScroll:u,minScroll:f}=X(n),v=_(n),g={x:Math.min(o===ee.Right?v.right-v.width/2:v.right,Math.max(o===ee.Right?v.left:v.left+v.width/2,d.x)),y:Math.min(o===ee.Down?v.bottom-v.height/2:v.bottom,Math.max(o===ee.Down?v.top:v.top+v.height/2,d.y))},h=o===ee.Right&&!a||o===ee.Left&&!s,p=o===ee.Down&&!c||o===ee.Up&&!i;if(h&&g.x!==d.x){const e=n.scrollLeft+t.x,i=o===ee.Right&&e<=u.x||o===ee.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:l});
1r.x=i?n.scrollLeft-e:o===ee.Right?n.scrollLeft-u.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:l});break}if(p&&g.y!==d.y){const e=n.scrollTop+t.y,i=o===ee.Down&&e<=u.y||o===ee.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:l});r.y=i?n.scrollTop-e:o===ee.Down?n.scrollTop-u.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:l});break}}this.handleMove(e,(0,i.WQ)((0,i.Re)(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function ae(e){return Boolean(e&&"distance"in e)}function le(e){return Boolean(e&&"delay"in e)}ie.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=re,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==o||o({event:e.nativeEvent}),!0)}return!1}}];class se{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,i.zk)(e);return e instanceof t?e:(0,i.TW)(e)}(e.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=e,this.events=t;const{event:o}=e,{target:a}=o;this.props=e,this.events=t,this.document=(0,i.TW)(a),this.documentListeners=new V(this.document),this.listeners=new V(n),this.windowListeners=new V((0,i.zk)(a)),this.initialCoordinates=null!=(r=(0,i.e_)(o))?r:b,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:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add($.Resize,this.handleCancel),this.windowListeners.add($.DragStart,te),this.windowListeners.add($.VisibilityChange,this.handleCancel),this.windowListeners.add($.ContextMenu,te),this.documentListeners.add($.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(le(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(ae(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add($.Click,ne,{capture:!0}),this.removeTextSelection(),this.documentListeners.add($.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:a,options:{activationConstraint:l}}=o;if(!r)return;const s=null!=(t=(0,i.e_)(e))?t:b,c=(0,i.Re)(r,s);if(!n&&l){if(ae(l)){if(null!=l.tolerance&&Z(c,l.tolerance))return this.handleCancel();if(Z(c,l.distance))return this.handleStart()}return le(l)&&Z(c,l.tolerance)?this.handleCancel():void this.handlePending(l,c)}e.cancelable&&e.preventDefault(),a(s)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===ee.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const ce={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ue extends se{constructor(e){const{event:t}=e,n=(0,i.TW)(t.target);super(e,ce,n)}}ue.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const de={move:{name:"mousemove"},end:{name:"mouseup"}};var fe;!function(e){e[e.RightClick=2]="RightClick"}(fe||(fe={}));(class extends se{constructor(e){super(e,de,(0,i.TW)(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==fe.RightClick&&(null==r||r({event:n}),!0)}}];const ve={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var ge,he;function pe(e){let{acceleration:t,activator:n=ge.Pointer,canScroll:o,draggingRect:a,enabled:l,interval:s=5,order:c=he.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:f,delta:v,threshold:g}=e;const h=function(e){let{delta:t,disabled:n}=e;const r=(0,i.ZC)(t);return(0,i.KG)(e=>{if(n||!r||!e)return be;
1const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[K.Backward]:e.x[K.Backward]||-1===o.x,[K.Forward]:e.x[K.Forward]||1===o.x},y:{[K.Backward]:e.y[K.Backward]||-1===o.y,[K.Forward]:e.y[K.Forward]||1===o.y}}},[n,t,r])}({delta:v,disabled:!l}),[p,b]=(0,i.$$)(),m=(0,r.useRef)({x:0,y:0}),y=(0,r.useRef)({x:0,y:0}),w=(0,r.useMemo)(()=>{switch(n){case ge.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case ge.DraggableRect:return a}},[n,a,u]),x=(0,r.useRef)(null),C=(0,r.useCallback)(()=>{const e=x.current;if(!e)return;const t=m.current.x*y.current.x,n=m.current.y*y.current.y;e.scrollBy(t,n)},[]),E=(0,r.useMemo)(()=>c===he.TreeOrder?[...d].reverse():d,[c,d]);(0,r.useEffect)(()=>{if(l&&d.length&&w){for(const e of E){if(!1===(null==o?void 0:o(e)))continue;const n=d.indexOf(e),r=f[n];if(!r)continue;const{direction:i,speed:a}=G(e,r,w,t,g);for(const e of["x","y"])h[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return b(),x.current=e,p(C,s),m.current=a,void(y.current=i)}m.current={x:0,y:0},y.current={x:0,y:0},b()}else b()},[t,C,o,b,l,s,JSON.stringify(w),JSON.stringify(h),p,d,E,f,JSON.stringify(g)])}(class extends se{constructor(e){super(e,ve)}static setup(){return window.addEventListener(ve.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ve.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(ge||(ge={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(he||(he={}));const be={x:{[K.Backward]:!1,[K.Forward]:!1},y:{[K.Backward]:!1,[K.Forward]:!1}};var me,ye;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(me||(me={})),function(e){e.Optimized="optimized"}(ye||(ye={}));const we=new Map;function xe(e,t){return(0,i.KG)(n=>e?n||("function"===typeof t?t(e):e):null,[t,e])}function Ce(e){let{callback:t,disabled:n}=e;const o=(0,i._q)(t),a=(0,r.useMemo)(()=>{if(n||"undefined"===typeof window||"undefined"===typeof window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)},[n]);return(0,r.useEffect)(()=>()=>null==a?void 0:a.disconnect(),[a]),a}function Ee(e){return new Q(A(e),e)}function Re(e,t,n){void 0===t&&(t=Ee);const[o,a]=(0,r.useState)(null);function l(){a(r=>{if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}const s=function(e){let{callback:t,disabled:n}=e;const o=(0,i._q)(t),a=(0,r.useMemo)(()=>{if(n||"undefined"===typeof window||"undefined"===typeof window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)},[o,n]);return(0,r.useEffect)(()=>()=>null==a?void 0:a.disconnect(),[a]),a}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){l();break}}}}),c=Ce({callback:l});return(0,i.Es)(()=>{l(),e?(null==c||c.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==c||c.disconnect(),null==s||s.disconnect())},[e]),o}const De=[];function Se(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{n.current=null},t),(0,r.useEffect)(()=>{const t=e!==b;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,i.Re)(e,n.current):b}function Ne(e){return(0,r.useMemo)(()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}const Me=[];function ke(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,i.sb)(t)?t:e}const Te=[{sensor:ue,options:{}},{sensor:ie,options:{}}],Oe={current:{}},Ie={draggable:{measure:L},droppable:{measure:L,strategy:me.WhileDragging,frequency:ye.Optimized},dragOverlay:{measure:A}};class Ae extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Le={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ae,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:g},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ie,measureDroppableContainers:g,windowRect:null,measuringScheduled:!1},ze={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:g,draggableNodes:new Map,over:null,measureDroppableContainers:g},Pe=(0,r.createContext)(ze),Be=(0,r.createContext)(Le);function Ye(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ae}}}function We(e,t){switch(t.type){case v.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case v.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case v.DragEnd:case v.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case v.RegisterDroppable:{const{element:n}=t,{id:r}
1=n,o=new Ae(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case v.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Ae(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case v.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Ae(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function je(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:a}=(0,r.useContext)(Pe),l=(0,i.ZC)(o),s=(0,i.ZC)(null==n?void 0:n.id);return(0,r.useEffect)(()=>{if(!t&&!o&&l&&null!=s){if(!(0,i.kx)(l))return;if(document.activeElement===l.target)return;const e=a.get(s);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=(0,i.ag)(e);if(t){t.focus();break}}})}},[o,t,a,s,l]),null}function Ke(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}const Fe=(0,r.createContext)({...b,scaleX:1,scaleY:1});var Xe;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Xe||(Xe={}));const Ue=(0,r.memo)(function(e){var t,n,a,l;let{id:s,accessibility:u,autoScroll:d=!0,children:g,sensors:h=Te,collisionDetection:p=N,measuring:m,modifiers:y,...w}=e;const x=(0,r.useReducer)(We,void 0,Ye),[C,E]=x,[R,D]=function(){const[e]=(0,r.useState)(()=>new Set),t=(0,r.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,r.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[S,k]=(0,r.useState)(Xe.Uninitialized),O=S===Xe.Initialized,{draggable:{active:I,nodes:L,translate:Y},droppable:{containers:W}}=C,K=null!=I?L.get(I):null,X=(0,r.useRef)({initial:null,translated:null}),U=(0,r.useMemo)(()=>{var e;return null!=I?{id:I,data:null!=(e=null==K?void 0:K.data)?e:Oe,rect:X}:null},[I,K]),G=(0,r.useRef)(null),[_,H]=(0,r.useState)(null),[J,V]=(0,r.useState)(null),Z=(0,i.YN)(w,Object.values(w)),$=(0,i.YG)("DndDescribedBy",s),ee=(0,r.useMemo)(()=>W.getEnabled(),[W]),te=(ne=m,(0,r.useMemo)(()=>({draggable:{...Ie.draggable,...null==ne?void 0:ne.draggable},droppable:{...Ie.droppable,...null==ne?void 0:ne.droppable},dragOverlay:{...Ie.dragOverlay,...null==ne?void 0:ne.dragOverlay}}),[null==ne?void 0:ne.draggable,null==ne?void 0:ne.droppable,null==ne?void 0:ne.dragOverlay]));var ne;const{droppableRects:re,measureDroppableContainers:oe,measuringScheduled:ie}=function(e,t){let{dragging:n,dependencies:o,config:a}=t;const[l,s]=(0,r.useState)(null),{frequency:c,measure:u,strategy:d}=a,f=(0,r.useRef)(e),v=function(){switch(d){case me.Always:return!1;case me.BeforeDragging:return n;default:return!n}}(),g=(0,i.YN)(v),h=(0,r.useCallback)(function(e){void 0===e&&(e=[]),g.current||s(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[g]),p=(0,r.useRef)(null),b=(0,i.KG)(t=>{if(v&&!n)return we;if(!t||t===we||f.current!==e||null!=l){const t=new Map;for(let n of e){if(!n)continue;if(l&&l.length>0&&!l.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new Q(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,l,n,v,u]);return(0,r.useEffect)(()=>{f.current=e},[e]),(0,r.useEffect)(()=>{v||h()},[n,v]),(0,r.useEffect)(()=>{l&&l.length>0&&s(null)},[JSON.stringify(l)]),(0,r.useEffect)(()=>{v||"number"!==typeof c||null!==p.current||(p.current=setTimeout(()=>{h(),p.current=null},c))},[c,v,h,...o]),{droppableRects:b,measureDroppableContainers:h,measuringScheduled:null!=l}}(ee,{dragging:O,dependencies:[Y.x,Y.y],config:te.droppable}),ae=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return(0,i.KG)(e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(L,I),le=(0,r.useMemo)(()=>J?(0,i.e_)(J):null,[J]),se=function(){const e=!1===(null==_?void 0:_.autoScrollEnabled),t="object"===typeof d?!1===d.enabled:!1===d,n=O&&!e&&!t;if("object"===typeof d)return{...d,enabled:n};return{enabled:n}}(),ce=function(e,t){return xe(e,t)}(ae,te.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:a=!0}=e;const l=(0,r.useRef)(!1),{x:s,y:c}="boolean"===typeof a?{x:a,y:a}:a;(0,i.Es)(()=>
1{if(!s&&!c||!t)return void(l.current=!1);if(l.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=M(n(e),o);if(s||(r.x=0),c||(r.y=0),l.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=P(e);t&&t.scrollBy({top:r.y,left:r.x})}},[t,s,c,o,n])}({activeNode:null!=I?L.get(I):null,config:se.layoutShiftCompensation,initialRect:ce,measure:te.draggable.measure});const ue=Re(ae,te.draggable.measure,ce),de=Re(ae?ae.parentElement:null),fe=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ae,collisionRect:null,collisions:null,droppableRects:re,draggableNodes:L,draggingNode:null,draggingNodeRect:null,droppableContainers:W,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ve=W.getNodeFor(null==(t=fe.current.over)?void 0:t.id),ge=function(e){let{measure:t}=e;const[n,o]=(0,r.useState)(null),a=Ce({callback:(0,r.useCallback)(e=>{for(const{target:n}of e)if((0,i.sb)(n)){o(e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),l=(0,r.useCallback)(e=>{const n=ke(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),o(n?t(n):null)},[t,a]),[s,c]=(0,i.lk)(l);return(0,r.useMemo)(()=>({nodeRef:s,rect:n,setRef:c}),[n,s,c])}({measure:te.dragOverlay.measure}),he=null!=(n=ge.nodeRef.current)?n:ae,be=O?null!=(a=ge.rect)?a:ue:null,ye=Boolean(ge.nodeRef.current&&ge.rect),Ee=M(Ae=ye?null:ue,xe(Ae));var Ae;const Le=Ne(he?(0,i.zk)(he):null),ze=function(e){const t=(0,r.useRef)(e),n=(0,i.KG)(n=>e?n&&n!==De&&e&&t.current&&e.parentNode===t.current.parentNode?n:z(e):De,[e]);return(0,r.useEffect)(()=>{t.current=e},[e]),n}(O?null!=ve?ve:ae:null),Ue=function(e,t){void 0===t&&(t=A);const[n]=e,o=Ne(n?(0,i.zk)(n):null),[a,l]=(0,r.useState)(Me);function s(){l(()=>e.length?e.map(e=>F(e)?o:new Q(t(e),e)):Me)}const c=Ce({callback:s});return(0,i.Es)(()=>{null==c||c.disconnect(),s(),e.forEach(e=>null==c?void 0:c.observe(e))},[e]),a}(ze),Ge=Ke(y,{transform:{x:Y.x-Ee.x,y:Y.y-Ee.y,scaleX:1,scaleY:1},activatorEvent:J,active:U,activeNodeRect:ue,containerNodeRect:de,draggingNodeRect:be,over:fe.current.over,overlayNodeRect:ge.rect,scrollableAncestors:ze,scrollableAncestorRects:Ue,windowRect:Le}),_e=le?(0,i.WQ)(le,Y):null,qe=function(e){const[t,n]=(0,r.useState)(null),o=(0,r.useRef)(e),a=(0,r.useCallback)(e=>{const t=B(e.target);t&&n(e=>e?(e.set(t,j(t)),new Map(e)):null)},[]);return(0,r.useEffect)(()=>{const t=o.current;if(e!==t){r(t);const i=e.map(e=>{const t=B(e);return t?(t.addEventListener("scroll",a,{passive:!0}),[t,j(t)]):null}).filter(e=>null!=e);n(i.length?new Map(i):null),o.current=e}return()=>{r(e),r(t)};function r(e){e.forEach(e=>{const t=B(e);null==t||t.removeEventListener("scroll",a)})}},[a,e]),(0,r.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,i.WQ)(e,t),b):q(e):b,[e,t])}(ze),He=Se(qe),Je=Se(qe,[ue]),Qe=(0,i.WQ)(Ge,He),Ve=be?T(be,Ge):null,Ze=U&&Ve?p({active:U,collisionRect:Ve,droppableRects:re,droppableContainers:ee,pointerCoordinates:_e}):null,$e=function(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}(Ze,"id"),[et,tt]=(0,r.useState)(null),nt=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(ye?Ge:(0,i.WQ)(Ge,Je),null!=(l=null==et?void 0:et.rect)?l:null,ue),rt=(0,r.useRef)(null),ot=(0,r.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==G.current)return;const i=L.get(G.current);if(!i)return;const a=e.nativeEvent,l=new n({active:G.current,activeNode:i,event:a,options:r,context:fe,onAbort(e){if(!L.get(e))return;const{onDragAbort:t}=Z.current,n={id:e};null==t||t(n),R({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!L.get(e))return;const{onDragPending:o}=Z.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};null==o||o(i),R({type:"onDragPending",event:i})},onStart(e){const t=G.current;if(null==t)return;const n=L.get(t);if(!n)return;const{onDragStart:r}=Z.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:X}};(0,o.unstable_batchedUpdates)(()=>{null==r||r(i),k(Xe.Initializing),E({type:v.DragStart,initialCoordinates:e,active:t}),R({type:"onDragStart",event:i}),H(rt.current),V(a)})},onMove(e){E({type:v.DragMove,coordinates:e})},onEnd:s(v.DragEnd),onCancel:s(v.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=fe.current;let l=null;if(t&&i){const{cancelDrop:o}=Z.current;if(l={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===v.DragEnd&&"function"===typeof o){await Promise.resolve(o(l))&&(e=v.DragCancel)}}G.current=null,(0,o.unstable_batchedUpdates)(()=>{E({type:e}),k(Xe.Uninitialized),tt(null),H(null),V(null),rt.current=null;const t=e===v.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=Z.current[t];null==e||e(l),R({type:t,event:l})}})}}rt.current=l},[L]),it=(0,r.useCallback)((e,t)=>(n,r)=>{const o=n.nativeEvent,i=L.get(r);if(null!==G.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},G.current=r,ot(n,t))},[L,ot]),at=function(e,t){return(0,r.useMemo)(()=>e.reduce((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))]},[]),[e,t])}(h,it);!function(e){(0,r.useEffect)(()=>
1{if(!i.Sw)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}(h),(0,i.Es)(()=>{ue&&S===Xe.Initializing&&k(Xe.Initialized)},[ue,S]),(0,r.useEffect)(()=>{const{onDragMove:e}=Z.current,{active:t,activatorEvent:n,collisions:r,over:i}=fe.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:Qe.x,y:Qe.y},over:i};(0,o.unstable_batchedUpdates)(()=>{null==e||e(a),R({type:"onDragMove",event:a})})},[Qe.x,Qe.y]),(0,r.useEffect)(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=fe.current;if(!e||null==G.current||!t||!i)return;const{onDragOver:a}=Z.current,l=r.get($e),s=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,o.unstable_batchedUpdates)(()=>{tt(s),null==a||a(c),R({type:"onDragOver",event:c})})},[$e]),(0,i.Es)(()=>{fe.current={activatorEvent:J,active:U,activeNode:ae,collisionRect:Ve,collisions:Ze,droppableRects:re,draggableNodes:L,draggingNode:he,draggingNodeRect:be,droppableContainers:W,over:et,scrollableAncestors:ze,scrollAdjustedTranslate:Qe},X.current={initial:be,translated:Ve}},[U,ae,Ze,Ve,L,he,be,re,W,et,ze,Qe]),pe({...se,delta:Y,draggingRect:Ve,pointerCoordinates:_e,scrollableAncestors:ze,scrollableAncestorRects:Ue});const lt=(0,r.useMemo)(()=>({active:U,activeNode:ae,activeNodeRect:ue,activatorEvent:J,collisions:Ze,containerNodeRect:de,dragOverlay:ge,draggableNodes:L,droppableContainers:W,droppableRects:re,over:et,measureDroppableContainers:oe,scrollableAncestors:ze,scrollableAncestorRects:Ue,measuringConfiguration:te,measuringScheduled:ie,windowRect:Le}),[U,ae,ue,J,Ze,de,ge,L,W,re,et,oe,ze,Ue,te,ie,Le]),st=(0,r.useMemo)(()=>({activatorEvent:J,activators:at,active:U,activeNodeRect:ue,ariaDescribedById:{draggable:$},dispatch:E,draggableNodes:L,over:et,measureDroppableContainers:oe}),[J,at,U,ue,E,$,L,et,oe]);return r.createElement(c.Provider,{value:D},r.createElement(Pe.Provider,{value:st},r.createElement(Be.Provider,{value:lt},r.createElement(Fe.Provider,{value:nt},g)),r.createElement(je,{disabled:!1===(null==u?void 0:u.restoreFocus)})),r.createElement(f,{...u,hiddenTextDescribedById:$}))}),Ge=(0,r.createContext)(null),_e="button";function qe(e){let{id:t,data:n,disabled:o=!1,attributes:a}=e;const l=(0,i.YG)("Draggable"),{activators:s,activatorEvent:c,active:u,activeNodeRect:d,ariaDescribedById:f,draggableNodes:v,over:g}=(0,r.useContext)(Pe),{role:h=_e,roleDescription:p="draggable",tabIndex:b=0}=null!=a?a:{},m=(null==u?void 0:u.id)===t,y=(0,r.useContext)(m?Fe:Ge),[w,x]=(0,i.lk)(),[C,E]=(0,i.lk)(),R=function(e,t){return(0,r.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e},{}),[e,t])}(s,t),D=(0,i.YN)(n);(0,i.Es)(()=>(v.set(t,{id:t,key:l,node:w,activatorNode:C,data:D}),()=>{const e=v.get(t);e&&e.key===l&&v.delete(t)}),[v,t]);return{active:u,activatorEvent:c,activeNodeRect:d,attributes:(0,r.useMemo)(()=>({role:h,tabIndex:b,"aria-disabled":o,"aria-pressed":!(!m||h!==_e)||void 0,"aria-roledescription":p,"aria-describedby":f.draggable}),[o,h,b,m,p,f.draggable]),isDragging:m,listeners:o?void 0:R,node:w,over:g,setNodeRef:x,setActivatorNodeRef:E,transform:y}}function He(){return(0,r.useContext)(Be)}const Je={timeout:25};function Qe(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:a}=e;const l=(0,i.YG)("Droppable"),{active:s,dispatch:c,over:u,measureDroppableContainers:d}=(0,r.useContext)(Pe),f=(0,r.useRef)({disabled:n}),g=(0,r.useRef)(!1),h=(0,r.useRef)(null),p=(0,r.useRef)(null),{disabled:b,updateMeasurementsFor:m,timeout:y}={...Je,...a},w=(0,i.YN)(null!=m?m:o),x=Ce({callback:(0,r.useCallback)(()=>{g.current?(null!=p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{d(Array.isArray(w.current)?w.current:[w.current]),p.current=null},y)):g.current=!0},[y]),disabled:b||!s}),C=(0,r.useCallback)((e,t)=>{x&&(t&&(x.unobserve(t),g.current=!1),e&&x.observe(e))},[x]),[E,R]=(0,i.lk)(C),D=(0,i.YN)(t);return(0,r.useEffect)(()=>{x&&E.current&&(x.disconnect(),g.current=!1,x.observe(E.current))},[E,x]),(0,r.useEffect)(()=>(c({type:v.RegisterDroppable,element:{id:o,key:l,disabled:n,node:E,rect:h,data:D}}),()=>c({type:v.UnregisterDroppable,key:l,id:o})),[o]),(0,r.useEffect)(()=>{n!==f.current.disabled&&(c({type:v.SetDroppableDisabled,id:o,key:l,disabled:n}),f.current.disabled=n)},[o,l,n,c]),{active:s,rect:h,isOver:(null==u?void 0:u.id)===o,node:E,over:u,setNodeRef:R}}function Ve(e){let{animation:t,children:n}=e;const[o,a]=(0,r.useState)(null),[l,s]=(0,r.useState)(null),c=(0,i.ZC)(n);return n||o||!c||a(c),(0,i.Es)(()=>
1{if(!l)return;const e=null==o?void 0:o.key,n=null==o?void 0:o.props.id;null!=e&&null!=n?Promise.resolve(t(n,l)).then(()=>{a(null)}):a(null)},[t,o,l]),r.createElement(r.Fragment,null,n,o?(0,r.cloneElement)(o,{ref:s}):null)}const Ze={x:0,y:0,scaleX:1,scaleY:1};function $e(e){let{children:t}=e;return r.createElement(Pe.Provider,{value:ze},r.createElement(Fe.Provider,{value:Ze},t))}const et={position:"fixed",touchAction:"none"},tt=e=>(0,i.kx)(e)?"transform 250ms ease":void 0,nt=(0,r.forwardRef)((e,t)=>{let{as:n,activatorEvent:o,adjustScale:a,children:l,className:s,rect:c,style:u,transform:d,transition:f=tt}=e;if(!c)return null;const v=a?d:{...d,scaleX:1,scaleY:1},g={...et,width:c.width,height:c.height,top:c.top,left:c.left,transform:i.Ks.Transform.toString(v),transformOrigin:a&&o?y(o,c):void 0,transition:"function"===typeof f?f(o):f,...u};return r.createElement(n,{className:s,style:g,ref:t},l)}),rt=e=>t=>{let{active:n,dragOverlay:r}=t;const o={},{styles:i,className:a}=e;if(null!=i&&i.active)for(const[e,l]of Object.entries(i.active))void 0!==l&&(o[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,l));if(null!=i&&i.dragOverlay)for(const[e,l]of Object.entries(i.dragOverlay))void 0!==l&&r.node.style.setProperty(e,l);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(o))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},ot={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:i.Ks.Transform.toString(t)},{transform:i.Ks.Transform.toString(n)}]},sideEffects:rt({styles:{active:{opacity:"0"}}})};
1function it(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return(0,i._q)((e,a)=>{if(null===t)return;const l=n.get(e);if(!l)return;const s=l.node.current;if(!s)return;const c=ke(a);if(!c)return;const{transform:u}=(0,i.zk)(a).getComputedStyle(a),d=O(u);if(!d)return;const f="function"===typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...ot,...e};return e=>{let{active:i,dragOverlay:a,transform:l,...s}=e;if(!t)return;const c={x:a.rect.left-i.rect.left,y:a.rect.top-i.rect.top},u={scaleX:1!==l.scaleX?i.rect.width*l.scaleX/a.rect.width:1,scaleY:1!==l.scaleY?i.rect.height*l.scaleY/a.rect.height:1},d={x:l.x-c.x,y:l.y-c.y,...u},f=o({...s,active:i,dragOverlay:a,transform:{initial:l,final:d}}),[v]=f,g=f[f.length-1];if(JSON.stringify(v)===JSON.stringify(g))return;const h=null==r?void 0:r({active:i,dragOverlay:a,...s}),p=a.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{p.onfinish=()=>{null==h||h(),e()}})}}(t);return H(s,o.draggable.measure),f({active:{id:e,data:l.data,node:s,rect:o.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:a,rect:o.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:o,transform:d})})}let at=0;function lt(e){return(0,r.useMemo)(()=>{if(null!=e)return at++,at},[e])}const st=r.memo(e=>
1{let{adjustScale:t=!1,children:n,dropAnimation:o,style:i,transition:a,modifiers:l,wrapperElement:s="div",className:c,zIndex:u=999}=e;const{activatorEvent:d,active:f,activeNodeRect:v,containerNodeRect:g,draggableNodes:h,droppableContainers:p,dragOverlay:b,over:m,measuringConfiguration:y,scrollableAncestors:w,scrollableAncestorRects:x,windowRect:C}=He(),E=(0,r.useContext)(Fe),R=lt(null==f?void 0:f.id),D=Ke(l,{activatorEvent:d,active:f,activeNodeRect:v,containerNodeRect:g,draggingNodeRect:b.rect,over:m,overlayNodeRect:b.rect,scrollableAncestors:w,scrollableAncestorRects:x,transform:E,windowRect:C}),S=xe(v),N=it({config:o,draggableNodes:h,droppableContainers:p,measuringConfiguration:y}),M=S?b.setRef:void 0;return r.createElement($e,null,r.createElement(Ve,{animation:N},f&&R?r.createElement(nt,{key:R,id:f.id,ref:M,as:s,activatorEvent:d,adjustScale:t,className:c,transition:a,rect:S,style:{zIndex:u,...i},transform:D},n):null))})},1648(e,t,n){n.d(t,{be:()=>a,gB:()=>v,gl:()=>w});var r=n(65043),o=n(23585),i=n(41024);function a(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function l(e,t){return e.reduce((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e},Array(e.length))}function s(e){return null!==e&&e>=0}const c=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=a(t,r,n),l=t[o],s=i[o];return s&&l?{x:s.left-l.left,y:s.top-l.top,scaleX:s.width/l.width,scaleY:s.height/l.height}:null},u={scaleX:1,scaleY:1};const d="Sortable",f=r.createContext({activeIndex:-1,containerId:d,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:c,disabled:{draggable:!1,droppable:!1}});function v(e){let{children:t,id:n,items:a,strategy:s=c,disabled:u=!1}=e;const{active:v,dragOverlay:g,droppableRects:h,over:p,measureDroppableContainers:b}=(0,o.fF)(),m=(0,i.YG)(d,n),y=Boolean(null!==g.rect),w=(0,r.useMemo)(()=>a.map(e=>"object"===typeof e&&"id"in e?e.id:e),[a]),x=null!=v,C=v?w.indexOf(v.id):-1,E=p?w.indexOf(p.id):-1,R=(0,r.useRef)(w),D=!function(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}(w,R.current),S=-1!==E&&-1===C||D,N=function(e){return"boolean"===typeof e?{draggable:e,droppable:e}:e}(u);(0,i.Es)(()=>{D&&x&&b(w)},[D,w,x,b]),(0,r.useEffect)(()=>{R.current=w},[w]);const M=(0,r.useMemo)(()=>({activeIndex:C,containerId:m,disabled:N,disableTransforms:S,items:w,overIndex:E,useDragOverlay:y,sortedRects:l(w,h),strategy:s}),[C,m,N.draggable,N.droppable,S,w,E,h,y,s]);return r.createElement(f.Provider,{value:M},t)}const g=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return a(n,r,o).indexOf(t)},h=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:l,previousContainerId:s,transition:c}=e;return!(!c||!r)&&((l===i||o!==a)&&(!!n||a!==o&&t===s))},p={duration:200,easing:"ease"},b="transform",m=i.Ks.Transition.toString({property:b,duration:0,easing:"linear"}),y={roleDescription:"sortable"};function w(e){let{animateLayoutChanges:t=h,attributes:n,disabled:a,data:l,getNewIndex:c=g,id:u,strategy:d,resizeObserverConfig:v,transition:w=p}=e;const{items:x,containerId:C,activeIndex:E,disabled:R,disableTransforms:D,sortedRects:S,overIndex:N,useDragOverlay:M,strategy:k}=(0,r.useContext)(f),T=function(e,t){var n,r;if("boolean"===typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(a,R),O=x.indexOf(u),I=(0,r.useMemo)(()=>({sortable:{containerId:C,index:O,items:x},...l}),[C,l,O,x]),A=(0,r.useMemo)(()=>x.slice(x.indexOf(u)),[x,u]),{rect:L,node:z,isOver:P,setNodeRef:B}=(0,o.zM)({id:u,data:I,disabled:T.droppable,resizeObserverConfig:{updateMeasurementsFor:A,...v}}),{active:Y,activatorEvent:W,activeNodeRect:j,attributes:K,setNodeRef:F,listeners:X,isDragging:U,over:G,setActivatorNodeRef:_,transform:q}=(0,o.PM)({id:u,data:I,attributes:{...y,...n},disabled:T.draggable}),H=(0,i.jn)(B,F),J=Boolean(Y),Q=J&&!D&&s(E)&&s(N),V=!M&&U,Z=V&&Q?q:null,$=Q?null!=Z?Z:(null!=d?d:k)({rects:S,activeNodeRect:j,activeIndex:E,overIndex:N,index:O}):null,ee=s(E)&&s(N)?c({id:u,items:x,activeIndex:E,overIndex:N}):O,te=null==Y?void 0:Y.id,ne=(0,r.useRef)({activeId:te,items:x,newIndex:ee,containerId:C}),re=x!==ne.current.items,oe=t({active:Y,containerId:C,isDragging:U,isSorting:J,id:u,index:O,items:x,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:w,wasDragging:null!=ne.current.activeId}),ie=function(e){let{disabled:t,index:n,node:a,rect:l}=e;const[s,c]=(0,r.useState)(null),u=(0,r.useRef)(n);return(0,i.Es)(()=>
1{if(!t&&n!==u.current&&a.current){const e=l.current;if(e){const t=(0,o.Sj)(a.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&c(n)}}n!==u.current&&(u.current=n)},[t,n,a,l]),(0,r.useEffect)(()=>{s&&c(null)},[s]),s}({disabled:!oe,index:O,node:z,rect:L});return(0,r.useEffect)(()=>{J&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),C!==ne.current.containerId&&(ne.current.containerId=C),x!==ne.current.items&&(ne.current.items=x)},[J,ee,C,x]),(0,r.useEffect)(()=>{if(te===ne.current.activeId)return;if(te&&!ne.current.activeId)return void(ne.current.activeId=te);const e=setTimeout(()=>{ne.current.activeId=te},50);return()=>clearTimeout(e)},[te]),{active:Y,activeIndex:E,attributes:K,data:I,rect:L,index:O,newIndex:ee,items:x,isOver:P,isSorting:J,isDragging:U,listeners:X,node:z,overIndex:N,over:G,setNodeRef:H,setActivatorNodeRef:_,setDroppableNodeRef:B,setDraggableNodeRef:F,transform:null!=ie?ie:$,transition:function(){if(ie||re&&ne.current.newIndex===O)return m;if(V&&!(0,i.kx)(W)||!w)return;if(J||oe)return i.Ks.Transition.toString({...w,property:b});return}()}}o.vL.Down,o.vL.Right,o.vL.Up,o.vL.Left;n.d(t,["_G",0,e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const l=null!=(t=i[n])?t:r;if(!l)return null;if(o===n){const e=i[a];return e?{x:0,y:n<a?e.top+e.height-(l.top+l.height):e.top-l.top,...u}:null}const s=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];if(!r)return 0;if(n<t)return o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0;return i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0}(i,o,n);return o>n&&o<=a?{x:0,y:-l.height-s,...u}:o<n&&o>=a?{x:0,y:l.height+s,...u}:{x:0,y:0,...u}}])},41024(e,t,n){n.d(t,{$$:()=>h,KG:()=>b,Ll:()=>l,TW:()=>f,YG:()=>x,YN:()=>p,ZC:()=>y,_q:()=>g,ag:()=>k,e_:()=>S,jn:()=>o,kx:()=>D,l6:()=>a,lk:()=>m,sb:()=>u,wz:()=>c,xZ:()=>d,zk:()=>s});var r=n(65043);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}const i="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;function a(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function l(e){return"nodeType"in e}function s(e){var t,n;return e?a(e)?e:l(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function c(e){const{Document:t}=s(e);return e instanceof t}function u(e){return!a(e)&&e instanceof s(e).HTMLElement}function d(e){return e instanceof s(e).SVGElement}function f(e){return e?a(e)?e.document:l(e)?c(e)?e:u(e)||d(e)?e.ownerDocument:document:document:document}const v=i?r.useLayoutEffect:r.useEffect;function g(e){const t=(0,r.useRef)(e);return v(()=>{t.current=e}),(0,r.useCallback)(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function h(){const e=(0,r.useRef)(null);return[(0,r.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,r.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function p(e,t){void 0===t&&(t=[e]);const n=(0,r.useRef)(e);return v(()=>{n.current!==e&&(n.current=e)},t),n}function b(e,t){const n=(0,r.useRef)();return(0,r.useMemo)(()=>{const t=e(n.current);return n.current=t,t},[...t])}function m(e){const t=g(e),n=(0,r.useRef)(null),o=(0,r.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,o]}function y(e){const t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}let w={};function x(e,t){return(0,r.useMemo)(()=>{if(t)return t;const n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n},[e,t])}function C(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((t,n)=>{const r=Object.entries(n);for(const[o,i]of r){const n=t[o];null!=n&&(t[o]=n+e*i)}return t},{...t})}}const E=C(1),R=C(-1);function D(e){if(!e)return!1;const{KeyboardEvent:t}=s(e.target);return t&&e instanceof t}function S(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=s(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const N=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[N.Translate.toString(e),N.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),M="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function k(e){return e.matches(M)?e:e.querySelector(M)}n.d(t,["Es",0,v,"Ks",0,N,"Re",0,R,"Sw",0,i,"WQ",0,E])}}]); 2//# sourceMappingURL=1648.57ef8f93.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.