PageSourceSearch

https://answerly.space/static/js/1648.6ed94514.chunk.js

js answerly.space collected 2026-10-02 02:09:39 UTC 52,959 bytes, 2 lines download raw bytes

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