PageSourceSearch

https://nelsonalgren.org/_next/static/immutable/chunks/3e9zby7j2xqie.js

js nelsonalgren.org collected 2026-10-01 12:26:10 UTC 43,451 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="3a9f382f-129d-cc10-6e86-1f039b6209f9")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59295,146341,e=>{"use strict";let t;var n,r,l,i,a,o,u,s,c,d,f,h,g,v,p,m,b,y,w,x=e.i(191788),D=e.i(730943);let E="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function C(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function S(e){return"nodeType"in e}function M(e){var t,n;return e?C(e)?e:S(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function R(e){let{Document:t}=M(e);return e instanceof t}function O(e){return!C(e)&&e instanceof M(e).HTMLElement}function T(e){return e instanceof M(e).SVGElement}function k(e){return e?C(e)?e.document:S(e)?R(e)?e:O(e)||T(e)?e.ownerDocument:document:document:document}let L=E?x.useLayoutEffect:x.useEffect;function N(e){let t=(0,x.useRef)(e);return L(()=>{t.current=e}),(0,x.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function A(){let e=(0,x.useRef)(null);return[(0,x.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,x.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function P(e,t){void 0===t&&(t=[e]);let n=(0,x.useRef)(e);return L(()=>{n.current!==e&&(n.current=e)},t),n}function B(e,t){let n=(0,x.useRef)();return(0,x.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function z(e){let t=N(e),n=(0,x.useRef)(null),r=(0,x.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function F(e){let t=(0,x.useRef)();return(0,x.useEffect)(()=>{t.current=e},[e]),t.current}let I={};function U(e,t){return(0,x.useMemo)(()=>{if(t)return t;let n=null==I[e]?0:I[e]+1;return I[e]=n,e+"-"+n},[e,t])}function K(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),l=1;l<n;l++)r[l-1]=arguments[l];return r.reduce((t,n)=>{for(let[r,l]of Object.entries(n)){let n=t[r];null!=n&&(t[r]=n+e*l)}return t},{...t})}}let j=K(1),X=K(-1);function Y(e){if(!e)return!1;let{KeyboardEvent:t}=M(e.target);return t&&e instanceof t}function W(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=M(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let H=Object.freeze({Translate:{toString(e){if(!e)return;let{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;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[H.Translate.toString(e),H.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),V="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function J(e){return e.matches(V)?e:e.querySelector(V)}e.s(["CSS",0,H,"add",0,j,"canUseDOM",0,E,"findFirstFocusableNode",0,J,"getEventCoordinates",0,W,"getOwnerDocument",0,k,"getWindow",0,M,"isDocument",0,R,"isHTMLElement",0,O,"isKeyboardEvent",0,Y,"isNode",0,S,"isSVGElement",0,T,"isWindow",0,C,"subtract",0,X,"useCombinedRefs",0,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,x.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)},"useEvent",0,N,"useInterval",0,A,"useIsomorphicLayoutEffect",0,L,"useLatestValue",0,P,"useLazyMemo",0,B,"useNodeRef",0,z,"usePrevious",0,F,"useUniqueId",0,U],146341);let q={display:"none"};function _(e){let{id:t,value:n}=e;return x.default.createElement("div",{id:t,style:q},n)}function G(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return x.default.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)}let Q=(0,x.createContext)(null),Z={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  "},$={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 ee(e){var t;let n,{announcements:r=$,container:l,hiddenTextDescribedById:i,screenReaderInstructions:a=Z}=e,{announce:o,announcement:u}=function(){let[e,t]=(0,x.useState)("");return{announce:(0,x.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),s=U("DndLiveRegion"),[c,d]=(0,x.useState)(!1);if((0,x.useEffect)(()=>{d(!0)},[]),t=(0,x.useMemo)(()=>({onDragStart(e){let{active:t}=e;o(r.onDragStart({active:t}))},onDragMove(e){let{active:t,over:n}=e;r.onDragMove&&o(r.onDragMove({active:t,over:n}))},onDragOver(e){let{active:t,over:n}=e;o(r.onDragOver({active:t,over:n}))},onDragEnd(e){let{active:t,over:n}=e;o(r.onDragEnd({active:t,over:n}))},onDragCancel(e){let{active:t,over:n}=e;
2o(r.onDragCancel({active:t,over:n}))}}),[o,r]),n=(0,x.useContext)(Q),(0,x.useEffect)(()=>{if(!n)throw Error("useDndMonitor must be used within a children of <DndContext>");return n(t)},[t,n]),!c)return null;let f=x.default.createElement(x.default.Fragment,null,x.default.createElement(_,{id:i,value:a.draggable}),x.default.createElement(G,{id:s,announcement:u}));return l?(0,D.createPortal)(f,l):f}function et(){}(n=d||(d={})).DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable";let en=Object.freeze({x:0,y:0});function er(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function el(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function ei(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function ea(e){let{left:t,top:n,height:r,width:l}=e;return[{x:t,y:n},{x:t+l,y:n},{x:t,y:n+r},{x:t+l,y:n+r}]}function eo(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}function eu(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}}let es=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,l=[];for(let e of r){let{id:r}=e,i=n.get(r);if(i){let n=function(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),l=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height);if(r<l&&n<i){let a=t.width*t.height,o=e.width*e.height,u=(l-r)*(i-n);return Number((u/(a+o-u)).toFixed(4))}return 0}(i,t);n>0&&l.push({id:r,data:{droppableContainer:e,value:n}})}}return l.sort(ei)};function ec(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:en}let ed=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((e,t)=>({...e,top:e.top+ +t.y,bottom:e.bottom+ +t.y,left:e.left+ +t.x,right:e.right+ +t.x}),{...e})};function ef(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}let eh={ignoreTransform:!1};function eg(e,t){void 0===t&&(t=eh);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=M(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=ef(t);if(!r)return e;let{scaleX:l,scaleY:i,x:a,y:o}=r,u=e.left-a-(1-l)*parseFloat(n),s=e.top-o-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),c=l?e.width/l:e.width,d=i?e.height/i:e.height;return{width:c,height:d,top:s,right:u+c,bottom:s+d,left:u}}(n,t,r))}let{top:r,left:l,width:i,height:a,bottom:o,right:u}=n;return{top:r,left:l,width:i,height:a,bottom:o,right:u}}function ev(e){return eg(e,{ignoreTransform:!0})}function ep(e,t){let n=[];return e?function r(l){var i,a;let o;if(null!=t&&n.length>=t||!l)return n;if(R(l)&&null!=l.scrollingElement&&!n.includes(l.scrollingElement))return n.push(l.scrollingElement),n;if(!O(l)||T(l)||n.includes(l))return n;let u=M(e).getComputedStyle(l);return(l!==e&&(void 0===(i=u)&&(i=M(l).getComputedStyle(l)),o=/(auto|scroll|overlay)/,["overflow","overflowX","overflowY"].some(e=>{let t=i[e];return"string"==typeof t&&o.test(t)}))&&n.push(l),void 0===(a=u)&&(a=M(l).getComputedStyle(l)),"fixed"===a.position)?n:r(l.parentNode)}(e):n}function em(e){let[t]=ep(e,1);return null!=t?t:null}function eb(e){return E&&e?C(e)?e:S(e)?R(e)||e===k(e).scrollingElement?window:O(e)?e:null:null:null}function ey(e){return C(e)?e.scrollX:e.scrollLeft}function ew(e){return C(e)?e.scrollY:e.scrollTop}function ex(e){return{x:ey(e),y:ew(e)}}function eD(e){return!!E&&!!e&&e===document.scrollingElement}function eE(e){let t={x:0,y:0},n=eD(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},l=e.scrollTop<=t.y,i=e.scrollLeft<=t.x;return{isTop:l,isLeft:i,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}(r=f||(f={}))[r.Forward=1]="Forward",r[r.Backward=-1]="Backward";let eC={x:.2,y:.2};function eS(e){return e.reduce((e,t)=>
2j(e,ex(t)),en)}function eM(e,t){if(void 0===t&&(t=eg),!e)return;let{top:n,left:r,bottom:l,right:i}=t(e);em(e)&&(l<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let eR=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+ey(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+ew(t),0)}]];class eO{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=ep(t),r=eS(n);for(const[t,l,i]of(this.rect={...e},this.width=e.width,this.height=e.height,eR))for(const e of l)Object.defineProperty(this,e,{get:()=>{let l=i(n),a=r[t]-l;return this.rect[e]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class eT{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 ek(e,t){let 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}function eL(e){e.preventDefault()}function eN(e){e.stopPropagation()}(l=h||(h={})).Click="click",l.DragStart="dragstart",l.Keydown="keydown",l.ContextMenu="contextmenu",l.Resize="resize",l.SelectionChange="selectionchange",l.VisibilityChange="visibilitychange",(i=g||(g={})).Space="Space",i.Down="ArrowDown",i.Right="ArrowRight",i.Left="ArrowLeft",i.Up="ArrowUp",i.Esc="Escape",i.Enter="Enter",i.Tab="Tab";let eA={start:[g.Space,g.Enter],cancel:[g.Esc],end:[g.Space,g.Enter,g.Tab]},eP=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case g.Right:return{...n,x:n.x+25};case g.Left:return{...n,x:n.x-25};case g.Down:return{...n,y:n.y+25};case g.Up:return{...n,y:n.y-25}}};class eB{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 eT(k(t)),this.windowListeners=new eT(M(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(h.Resize,this.handleCancel),this.windowListeners.add(h.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(h.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&eM(n),t(en)}handleKeyDown(e){if(Y(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:l=eA,coordinateGetter:i=eP,scrollBehavior:a="smooth"}=r,{code:o}=e;if(l.end.includes(o))return void this.handleEnd(e);if(l.cancel.includes(o))return void this.handleCancel(e);let{collisionRect:u}=n.current,s=u?{x:u.left,y:u.top}:en;this.referenceCoordinates||(this.referenceCoordinates=s);let c=i(e,{active:t,context:n.current,currentCoordinates:s});if(c){let t=X(c,s),r={x:0,y:0},{scrollableAncestors:l}=n.current;for(let n of l){let l=e.code,{isTop:i,isRight:o,isLeft:u,isBottom:s,maxScroll:d,minScroll:f}=eE(n),h=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:l}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:l,width:e.clientWidth,height:e.clientHeight}}(n),v={x:Math.min(l===g.Right?h.right-h.width/2:h.right,Math.max(l===g.Right?h.left:h.left+h.width/2,c.x)),y:Math.min(l===g.Down?h.bottom-h.height/2:h.bottom,Math.max(l===g.Down?h.top:h.top+h.height/2,c.y))},p=l===g.Right&&!o||l===g.Left&&!u,m=l===g.Down&&!s||l===g.Up&&!i;if(p&&v.x!==c.x){let e=n.scrollLeft+t.x,i=l===g.Right&&e<=d.x||l===g.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:a});i?r.x=n.scrollLeft-e:r.x=l===g.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(m&&v.y!==c.y){let e=n.scrollTop+t.y,i=l===g.Down&&e<=d.y||l===g.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:a});i?r.y=n.scrollTop-e:r.y=l===g.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,j(X(c,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function ez(e){return!!(e&&"distance"in e)}function eF(e){return!!(e&&"delay"in e)}eB.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=eA,onActivation:l}=t,{active:i}=n,{code:a}=e.nativeEvent;if(r.start.includes(a)){let t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==l||l({event:e.nativeEvent}),!0)}return!1}}];class eI{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=M(e);return e instanceof t?e:k(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:l}=e,{target:i}=l;this.props=e,this.events=t,this.document=k(i),this.documentListeners=new eT(this.document),this.listeners=new eT(n),this.windowListeners=new eT(M(i)),this.initialCoordinates=null!=(r=W(l))?r:en,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(){let{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(h.Resize,this.handleCancel),this.windowListeners.add(h.DragStart,eL),this.windowListeners.add(h.VisibilityChange,this.handleCancel),this.windowListeners.add(h.ContextMenu,eL),this.documentListeners.add(h.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(eF(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(ez(t))return void this.handlePending(t)}
2this.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){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(h.Click,eN,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(h.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:l}=this,{onMove:i,options:{activationConstraint:a}}=l;if(!r)return;let o=null!=(t=W(e))?t:en,u=X(r,o);if(!n&&a){if(ez(a)){if(null!=a.tolerance&&ek(u,a.tolerance))return this.handleCancel();if(ek(u,a.distance))return this.handleStart()}return eF(a)&&ek(u,a.tolerance)?this.handleCancel():void this.handlePending(a,u)}e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===g.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let eU={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class eK extends eI{constructor(e){const{event:t}=e;super(e,eU,k(t.target))}}eK.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)}}];let ej={move:{name:"mousemove"},end:{name:"mouseup"}};(a=v||(v={}))[a.RightClick=2]="RightClick";class eX extends eI{constructor(e){super(e,ej,k(e.event.target))}}eX.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==v.RightClick&&(null==r||r({event:n}),!0)}}];(o=p||(p={}))[o.Pointer=0]="Pointer",o[o.DraggableRect=1]="DraggableRect",(u=m||(m={}))[u.TreeOrder=0]="TreeOrder",u[u.ReversedTreeOrder=1]="ReversedTreeOrder";let eY={x:{[f.Backward]:!1,[f.Forward]:!1},y:{[f.Backward]:!1,[f.Forward]:!1}};(s=b||(b={}))[s.Always=0]="Always",s[s.BeforeDragging=1]="BeforeDragging",s[s.WhileDragging=2]="WhileDragging",(y||(y={})).Optimized="optimized";let eW=new Map;function eH(e,t){return B(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function eV(e){let{callback:t,disabled:n}=e,r=N(t),l=(0,x.useMemo)(()=>{if(n||"u"<typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,x.useEffect)(()=>()=>null==l?void 0:l.disconnect(),[l]),l}function eJ(e){return new eO(eg(e),e)}function eq(e,t,n){void 0===t&&(t=eJ);let[r,l]=(0,x.useState)(null);function i(){l(r=>{if(!e)return null;if(!1===e.isConnected){var l;return null!=(l=null!=r?r:n)?l:null}let i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}let a=function(e){let{callback:t,disabled:n}=e,r=N(t),l=(0,x.useMemo)(()=>{if(n||"u"<typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,x.useEffect)(()=>()=>null==l?void 0:l.disconnect(),[l]),l}({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),o=eV({callback:i});return L(()=>{i(),e?(null==o||o.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==o||o.disconnect(),null==a||a.disconnect())},[e]),r}let e_=[];function eG(e,t){void 0===t&&(t=[]);let n=(0,x.useRef)(null);return(0,x.useEffect)(()=>{n.current=null},t),(0,x.useEffect)(()=>{let t=e!==en;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?X(e,n.current):en}function eQ(e){return(0,x.useMemo)(()=>{let t,n;return e?(t=e.innerWidth,{top:0,left:0,right:t,bottom:n=e.innerHeight,width:t,height:n}):null},[e])}let eZ=[];function e$(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return O(t)?t:e}let e0=[{sensor:eK,options:{}},{sensor:eB,options:{}}],e1={current:{}},e2={draggable:{measure:ev},droppable:{measure:ev,strategy:b.WhileDragging,frequency:y.Optimized},dragOverlay:{measure:eg}};class e5 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}}let e9={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new e5,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:et},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:e2,measureDroppableContainers:et,windowRect:null,measuringScheduled:!1},e4={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:et,draggableNodes:new Map,over:null,measureDroppableContainers:et},e3=(0,x.createContext)(e4),e7=(0,x.createContext)(e9);function e6(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new e5}}}function e8(e,t){switch(t.type){case d.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case d.DragMove:if(null==e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case d.DragEnd:case d.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case d.RegisterDroppable:{let{element:n}=t,{id:r}
2=n,l=new e5(e.droppable.containers);return l.set(r,n),{...e,droppable:{...e.droppable,containers:l}}}case d.SetDroppableDisabled:{let{id:n,key:r,disabled:l}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new e5(e.droppable.containers);return a.set(n,{...i,disabled:l}),{...e,droppable:{...e.droppable,containers:a}}}case d.UnregisterDroppable:{let{id:n,key:r}=t,l=e.droppable.containers.get(n);if(!l||r!==l.key)return e;let i=new e5(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function te(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:l}=(0,x.useContext)(e3),i=F(r),a=F(null==n?void 0:n.id);return(0,x.useEffect)(()=>{if(!t&&!r&&i&&null!=a){if(!Y(i)||document.activeElement===i.target)return;let e=l.get(a);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=J(e);if(t){t.focus();break}}})}},[r,t,l,a,i]),null}function tt(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}let tn=(0,x.createContext)({...en,scaleX:1,scaleY:1});(c=w||(w={}))[c.Uninitialized=0]="Uninitialized",c[c.Initializing=1]="Initializing",c[c.Initialized=2]="Initialized";let tr=(0,x.memo)(function(e){var t,n,r,l,i,a,o,u;let s,c,h,g,v,y,C,S,{id:R,accessibility:T,autoScroll:k=!0,children:N,sensors:I=e0,collisionDetection:K=es,measuring:X,modifiers:Y,...H}=e,[V,J]=(0,x.useReducer)(e8,void 0,e6),[q,_]=function(){let[e]=(0,x.useState)(()=>new Set),t=(0,x.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,x.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]}(),[G,Z]=(0,x.useState)(w.Uninitialized),$=G===w.Initialized,{draggable:{active:et,nodes:er,translate:el},droppable:{containers:ei}}=V,ea=null!=et?er.get(et):null,eu=(0,x.useRef)({initial:null,translated:null}),ef=(0,x.useMemo)(()=>{var e;return null!=et?{id:et,data:null!=(e=null==ea?void 0:ea.data)?e:e1,rect:eu}:null},[et,ea]),eh=(0,x.useRef)(null),[ev,ey]=(0,x.useState)(null),[ew,eM]=(0,x.useState)(null),eR=P(H,Object.values(H)),eT=U("DndDescribedBy",R),ek=(0,x.useMemo)(()=>ei.getEnabled(),[ei]),eL=(0,x.useMemo)(()=>({draggable:{...e2.draggable,...null==X?void 0:X.draggable},droppable:{...e2.droppable,...null==X?void 0:X.droppable},dragOverlay:{...e2.dragOverlay,...null==X?void 0:X.dragOverlay}}),[null==X?void 0:X.draggable,null==X?void 0:X.droppable,null==X?void 0:X.dragOverlay]),{droppableRects:eN,measureDroppableContainers:eA,measuringScheduled:eP}=function(e,t){let{dragging:n,dependencies:r,config:l}=t,[i,a]=(0,x.useState)(null),{frequency:o,measure:u,strategy:s}=l,c=(0,x.useRef)(e),d=function(){switch(s){case b.Always:return!1;case b.BeforeDragging:return n;default:return!n}}(),f=P(d),h=(0,x.useCallback)(function(e){void 0===e&&(e=[]),f.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),g=(0,x.useRef)(null),v=B(t=>{if(d&&!n)return eW;if(!t||t===eW||c.current!==e||null!=i){let t=new Map;for(let n of e){if(!n)continue;if(i&&i.length>0&&!i.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new eO(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,i,n,d,u]);return(0,x.useEffect)(()=>{c.current=e},[e]),(0,x.useEffect)(()=>{d||h()},[n,d]),(0,x.useEffect)(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),(0,x.useEffect)(()=>{d||"number"!=typeof o||null!==g.current||(g.current=setTimeout(()=>{h(),g.current=null},o))},[o,d,h,...r]),{droppableRects:v,measureDroppableContainers:h,measuringScheduled:null!=i}}(ek,{dragging:$,dependencies:[el.x,el.y],config:eL.droppable}),eB=B(e=>{var t;return null==et?null:null!=(t=null!=v?v:e)?t:null},[v=(g=null!=et?er.get(et):void 0)?g.node.current:null,et]),ez=(0,x.useMemo)(()=>ew?W(ew):null,[ew]),eF=(s=(null==ev?void 0:ev.autoScrollEnabled)===!1,c="object"==typeof k?!1===k.enabled:!1===k,h=$&&!s&&!c,"object"==typeof k?{...k,enabled:h}:{enabled:h}),eI=eH(eB,eL.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:l=!0}=e,i=(0,x.useRef)(!1),{x:a,y:o}="boolean"==typeof l?{x:l,y:l}:l;L(()=>
2{if(!a&&!o||!t){i.current=!1;return}if(i.current||!r)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let l=ec(n(e),r);if(a||(l.x=0),o||(l.y=0),i.current=!0,Math.abs(l.x)>0||Math.abs(l.y)>0){let t=em(e);t&&t.scrollBy({top:l.y,left:l.x})}},[t,a,o,r,n])}({activeNode:null!=et?er.get(et):null,config:eF.layoutShiftCompensation,initialRect:eI,measure:eL.draggable.measure});let eU=eq(eB,eL.draggable.measure,eI),eK=eq(eB?eB.parentElement:null),ej=(0,x.useRef)({activatorEvent:null,active:null,activeNode:eB,collisionRect:null,collisions:null,droppableRects:eN,draggableNodes:er,draggingNode:null,draggingNodeRect:null,droppableContainers:ei,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eX=ei.getNodeFor(null==(t=ej.current.over)?void 0:t.id),eJ=function(e){let{measure:t}=e,[n,r]=(0,x.useState)(null),l=eV({callback:(0,x.useCallback)(e=>{for(let{target:n}of e)if(O(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[i,a]=z((0,x.useCallback)(e=>{let n=e$(e);null==l||l.disconnect(),n&&(null==l||l.observe(n)),r(n?t(n):null)},[t,l]));return(0,x.useMemo)(()=>({nodeRef:i,rect:n,setRef:a}),[n,i,a])}({measure:eL.dragOverlay.measure}),e5=null!=(n=eJ.nodeRef.current)?n:eB,e9=$?null!=(r=eJ.rect)?r:eU:null,e4=!!(eJ.nodeRef.current&&eJ.rect),tr=(y=eH(i=e4?null:eU),ec(i,y)),tl=eQ(e5?M(e5):null),ti=(a=$?null!=eX?eX:eB:null,C=(0,x.useRef)(a),S=B(e=>a?e&&e!==e_&&a&&C.current&&a.parentNode===C.current.parentNode?e:ep(a):e_,[a]),(0,x.useEffect)(()=>{C.current=a},[a]),S),ta=function(e,t){void 0===t&&(t=eg);let[n]=e,r=eQ(n?M(n):null),[l,i]=(0,x.useState)(eZ);function a(){i(()=>e.length?e.map(e=>eD(e)?r:new eO(t(e),e)):eZ)}let o=eV({callback:a});return L(()=>{null==o||o.disconnect(),a(),e.forEach(e=>null==o?void 0:o.observe(e))},[e]),l}(ti),to=tt(Y,{transform:{x:el.x-tr.x,y:el.y-tr.y,scaleX:1,scaleY:1},activatorEvent:ew,active:ef,activeNodeRect:eU,containerNodeRect:eK,draggingNodeRect:e9,over:ej.current.over,overlayNodeRect:eJ.rect,scrollableAncestors:ti,scrollableAncestorRects:ta,windowRect:tl}),tu=ez?j(ez,el):null,ts=function(e){let[t,n]=(0,x.useState)(null),r=(0,x.useRef)(e),l=(0,x.useCallback)(e=>{let t=eb(e.target);t&&n(e=>e?(e.set(t,ex(t)),new Map(e)):null)},[]);return(0,x.useEffect)(()=>{let t=r.current;if(e!==t){i(t);let a=e.map(e=>{let t=eb(e);return t?(t.addEventListener("scroll",l,{passive:!0}),[t,ex(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=>{let t=eb(e);null==t||t.removeEventListener("scroll",l)})}},[l,e]),(0,x.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>j(e,t),en):eS(e):en,[e,t])}(ti),tc=eG(ts),td=eG(ts,[eU]),tf=j(to,tc),th=e9?ed(e9,to):null,tg=ef&&th?K({active:ef,collisionRect:th,droppableRects:eN,droppableContainers:ek,pointerCoordinates:tu}):null,tv=eo(tg,"id"),[tp,tm]=(0,x.useState)(null),tb=(o=e4?to:j(to,td),u=null!=(l=null==tp?void 0:tp.rect)?l:null,{...o,scaleX:u&&eU?u.width/eU.width:1,scaleY:u&&eU?u.height/eU.height:1}),ty=(0,x.useRef)(null),tw=(0,x.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==eh.current)return;let l=er.get(eh.current);if(!l)return;let i=e.nativeEvent,a=new n({active:eh.current,activeNode:l,event:i,options:r,context:ej,onAbort(e){if(!er.get(e))return;let{onDragAbort:t}=eR.current,n={id:e};null==t||t(n),q({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!er.get(e))return;let{onDragPending:l}=eR.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};null==l||l(i),q({type:"onDragPending",event:i})},onStart(e){let t=eh.current;if(null==t)return;let n=er.get(t);if(!n)return;let{onDragStart:r}=eR.current,l={activatorEvent:i,active:{id:t,data:n.data,rect:eu}};(0,D.unstable_batchedUpdates)(()=>{null==r||r(l),Z(w.Initializing),J({type:d.DragStart,initialCoordinates:e,active:t}),q({type:"onDragStart",event:l}),ey(ty.current),eM(i)})},onMove(e){J({type:d.DragMove,coordinates:e})},onEnd:o(d.DragEnd),onCancel:o(d.DragCancel)});function o(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:l}=ej.current,a=null;if(t&&l){let{cancelDrop:o}=eR.current;a={activatorEvent:i,active:t,collisions:n,delta:l,over:r},e===d.DragEnd&&"function"==typeof o&&await Promise.resolve(o(a))&&(e=d.DragCancel)}eh.current=null,(0,D.unstable_batchedUpdates)(()=>{J({type:e}),Z(w.Uninitialized),tm(null),ey(null),eM(null),ty.current=null;let t=e===d.DragEnd?"onDragEnd":"onDragCancel";if(a){let e=eR.current[t];null==e||e(a),q({type:t,event:a})}})}}ty.current=a},[er]),tx=(0,x.useCallback)((e,t)=>(n,r)=>{let l=n.nativeEvent,i=er.get(r);null!==eh.current||!i||l.dndKit||l.defaultPrevented||!0===e(n,t.options,{active:i})&&(l.dndKit={capturedBy:t.sensor},eh.current=r,tw(n,t))},[er,tw]),tD=(0,x.useMemo)(()=>I.reduce((e,t)=>
2{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:tx(e.handler,t)}))]},[]),[I,tx]);(0,x.useEffect)(()=>{if(!E)return;let e=I.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},I.map(e=>{let{sensor:t}=e;return t})),L(()=>{eU&&G===w.Initializing&&Z(w.Initialized)},[eU,G]),(0,x.useEffect)(()=>{let{onDragMove:e}=eR.current,{active:t,activatorEvent:n,collisions:r,over:l}=ej.current;if(!t||!n)return;let i={active:t,activatorEvent:n,collisions:r,delta:{x:tf.x,y:tf.y},over:l};(0,D.unstable_batchedUpdates)(()=>{null==e||e(i),q({type:"onDragMove",event:i})})},[tf.x,tf.y]),(0,x.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:l}=ej.current;if(!e||null==eh.current||!t||!l)return;let{onDragOver:i}=eR.current,a=r.get(tv),o=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,u={active:e,activatorEvent:t,collisions:n,delta:{x:l.x,y:l.y},over:o};(0,D.unstable_batchedUpdates)(()=>{tm(o),null==i||i(u),q({type:"onDragOver",event:u})})},[tv]),L(()=>{ej.current={activatorEvent:ew,active:ef,activeNode:eB,collisionRect:th,collisions:tg,droppableRects:eN,draggableNodes:er,draggingNode:e5,draggingNodeRect:e9,droppableContainers:ei,over:tp,scrollableAncestors:ti,scrollAdjustedTranslate:tf},eu.current={initial:e9,translated:th}},[ef,eB,tg,th,er,e5,e9,eN,ei,tp,ti,tf]),function(e){let{acceleration:t,activator:n=p.Pointer,canScroll:r,draggingRect:l,enabled:i,interval:a=5,order:o=m.TreeOrder,pointerCoordinates:u,scrollableAncestors:s,scrollableAncestorRects:c,delta:d,threshold:h}=e,g=function(e){let{delta:t,disabled:n}=e,r=F(t);return B(e=>{if(n||!r||!e)return eY;let l={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[f.Backward]:e.x[f.Backward]||-1===l.x,[f.Forward]:e.x[f.Forward]||1===l.x},y:{[f.Backward]:e.y[f.Backward]||-1===l.y,[f.Forward]:e.y[f.Forward]||1===l.y}}},[n,t,r])}({delta:d,disabled:!i}),[v,b]=A(),y=(0,x.useRef)({x:0,y:0}),w=(0,x.useRef)({x:0,y:0}),D=(0,x.useMemo)(()=>{switch(n){case p.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case p.DraggableRect:return l}},[n,l,u]),E=(0,x.useRef)(null),C=(0,x.useCallback)(()=>{let e=E.current;if(!e)return;let t=y.current.x*w.current.x,n=y.current.y*w.current.y;e.scrollBy(t,n)},[]),S=(0,x.useMemo)(()=>o===m.TreeOrder?[...s].reverse():s,[o,s]);(0,x.useEffect)(()=>{if(!i||!s.length||!D)return void b();for(let e of S){if((null==r?void 0:r(e))===!1)continue;let n=c[s.indexOf(e)];if(!n)continue;let{direction:l,speed:i}=function(e,t,n,r,l){let{top:i,left:a,right:o,bottom:u}=n;void 0===r&&(r=10),void 0===l&&(l=eC);let{isTop:s,isBottom:c,isLeft:d,isRight:h}=eE(e),g={x:0,y:0},v={x:0,y:0},p={height:t.height*l.y,width:t.width*l.x};return!s&&i<=t.top+p.height?(g.y=f.Backward,v.y=r*Math.abs((t.top+p.height-i)/p.height)):!c&&u>=t.bottom-p.height&&(g.y=f.Forward,v.y=r*Math.abs((t.bottom-p.height-u)/p.height)),!h&&o>=t.right-p.width?(g.x=f.Forward,v.x=r*Math.abs((t.right-p.width-o)/p.width)):!d&&a<=t.left+p.width&&(g.x=f.Backward,v.x=r*Math.abs((t.left+p.width-a)/p.width)),{direction:g,speed:v}}(e,n,D,t,h);for(let e of["x","y"])g[e][l[e]]||(i[e]=0,l[e]=0);if(i.x>0||i.y>0){b(),E.current=e,v(C,a),y.current=i,w.current=l;return}}y.current={x:0,y:0},w.current={x:0,y:0},b()},[t,C,r,b,i,a,JSON.stringify(D),JSON.stringify(g),v,s,S,c,JSON.stringify(h)])}({...eF,delta:el,draggingRect:th,pointerCoordinates:tu,scrollableAncestors:ti,scrollableAncestorRects:ta});let tE=(0,x.useMemo)(()=>({active:ef,activeNode:eB,activeNodeRect:eU,activatorEvent:ew,collisions:tg,containerNodeRect:eK,dragOverlay:eJ,draggableNodes:er,droppableContainers:ei,droppableRects:eN,over:tp,measureDroppableContainers:eA,scrollableAncestors:ti,scrollableAncestorRects:ta,measuringConfiguration:eL,measuringScheduled:eP,windowRect:tl}),[ef,eB,eU,ew,tg,eK,eJ,er,ei,eN,tp,eA,ti,ta,eL,eP,tl]),tC=(0,x.useMemo)(()=>({activatorEvent:ew,activators:tD,active:ef,activeNodeRect:eU,ariaDescribedById:{draggable:eT},dispatch:J,draggableNodes:er,over:tp,measureDroppableContainers:eA}),[ew,tD,ef,eU,J,eT,er,tp,eA]);return x.default.createElement(Q.Provider,{value:_},x.default.createElement(e3.Provider,{value:tC},x.default.createElement(e7.Provider,{value:tE},x.default.createElement(tn.Provider,{value:tb},N)),x.default.createElement(te,{disabled:(null==T?void 0:T.restoreFocus)===!1})),x.default.createElement(ee,{...T,hiddenTextDescribedById:eT}))}),tl=(0,x.createContext)(null),ti="button";function ta(){return(0,x.useContext)(e7)}let to={timeout:25};function tu(e){let{animation:t,children:n}=e,[r,l]=(0,x.useState)(null),[i,a]=(0,x.useState)(null),o=F(n);return n||r||!o||l(o),L(()=>
2{if(!i)return;let e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;null==e||null==n?l(null):Promise.resolve(t(n,i)).then(()=>{l(null)})},[t,r,i]),x.default.createElement(x.default.Fragment,null,n,r?(0,x.cloneElement)(r,{ref:a}):null)}let ts={x:0,y:0,scaleX:1,scaleY:1};function tc(e){let{children:t}=e;return x.default.createElement(e3.Provider,{value:e4},x.default.createElement(tn.Provider,{value:ts},t))}let td={position:"fixed",touchAction:"none"},tf=e=>Y(e)?"transform 250ms ease":void 0,th=(0,x.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:l,children:i,className:a,rect:o,style:u,transform:s,transition:c=tf}=e;if(!o)return null;let d=l?s:{...s,scaleX:1,scaleY:1},f={...td,width:o.width,height:o.height,top:o.top,left:o.left,transform:H.Transform.toString(d),transformOrigin:l&&r?function(e,t){let n=W(e);if(!n)return"0 0";let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}(r,o):void 0,transition:"function"==typeof c?c(r):c,...u};return x.default.createElement(n,{className:a,style:f,ref:t},i)}),tg={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:H.Transform.toString(t)},{transform:H.Transform.toString(n)}]},sideEffects:(t={styles:{active:{opacity:"0"}}},e=>{let{active:n,dragOverlay:r}=e,l={},{styles:i,className:a}=t;if(null!=i&&i.active)for(let[e,t]of Object.entries(i.active))void 0!==t&&(l[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=i&&i.dragOverlay)for(let[e,t]of Object.entries(i.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(let[e,t]of Object.entries(l))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}})},tv=0,tp=x.default.memo(e=>{var t;let{adjustScale:n=!1,children:r,dropAnimation:l,style:i,transition:a,modifiers:o,wrapperElement:u="div",className:s,zIndex:c=999}=e,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:g,draggableNodes:v,droppableContainers:p,dragOverlay:m,over:b,measuringConfiguration:y,scrollableAncestors:w,scrollableAncestorRects:D,windowRect:E}=ta(),C=(0,x.useContext)(tn),S=(t=null==f?void 0:f.id,(0,x.useMemo)(()=>{if(null!=t)return++tv},[t])),R=tt(o,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:g,draggingNodeRect:m.rect,over:b,overlayNodeRect:m.rect,scrollableAncestors:w,scrollableAncestorRects:D,transform:C,windowRect:E}),O=eH(h),T=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:l}=e;return N((e,i)=>{if(null===t)return;let a=n.get(e);if(!a)return;let o=a.node.current;if(!o)return;let u=e$(i);if(!u)return;let{transform:s}=M(i).getComputedStyle(i),c=ef(s);if(!c)return;let d="function"==typeof t?t:function(e){let{duration:t,easing:n,sideEffects:r,keyframes:l}={...tg,...e};return e=>{let{active:i,dragOverlay:a,transform:o,...u}=e;if(!t)return;let s={x:a.rect.left-i.rect.left,y:a.rect.top-i.rect.top},c={scaleX:1!==o.scaleX?i.rect.width*o.scaleX/a.rect.width:1,scaleY:1!==o.scaleY?i.rect.height*o.scaleY/a.rect.height:1},d={x:o.x-s.x,y:o.y-s.y,...c},f=l({...u,active:i,dragOverlay:a,transform:{initial:o,final:d}}),[h]=f,g=f[f.length-1];if(JSON.stringify(h)===JSON.stringify(g))return;let v=null==r?void 0:r({active:i,dragOverlay:a,...u}),p=a.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{p.onfinish=()=>{null==v||v(),e()}})}}(t);return eM(o,l.draggable.measure),d({active:{id:e,data:a.data,node:o,rect:l.draggable.measure(o)},draggableNodes:n,dragOverlay:{node:i,rect:l.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:l,transform:c})})}({config:l,draggableNodes:v,droppableContainers:p,measuringConfiguration:y}),k=O?m.setRef:void 0;return x.default.createElement(tc,null,x.default.createElement(tu,{animation:T},f&&S?x.default.createElement(th,{key:S,id:f.id,ref:k,as:u,activatorEvent:d,adjustScale:n,className:s,transition:a,rect:O,style:{zIndex:c,...i},transform:R},r):null))});e.s(["DndContext",0,tr,"DragOverlay",0,tp,"KeyboardCode",0,g,"KeyboardSensor",0,eB,"MouseSensor",0,eX,"closestCenter",0,e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,l=eu(t,t.left,t.top),i=[];for(let e of r){let{id:t}=e,r=n.get(t);
2if(r){let n=er(eu(r),l);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(el)},"closestCorners",0,e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,l=ea(t),i=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=ea(r),a=Number((l.reduce((e,t,r)=>e+er(n[r],t),0)/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:a}})}}return i.sort(el)},"getClientRect",0,eg,"getFirstCollision",0,eo,"getScrollableAncestors",0,ep,"useDndContext",0,ta,"useDraggable",0,function(e){let{id:t,data:n,disabled:r=!1,attributes:l}=e,i=U("Draggable"),{activators:a,activatorEvent:o,active:u,activeNodeRect:s,ariaDescribedById:c,draggableNodes:d,over:f}=(0,x.useContext)(e3),{role:h=ti,roleDescription:g="draggable",tabIndex:v=0}=null!=l?l:{},p=(null==u?void 0:u.id)===t,m=(0,x.useContext)(p?tn:tl),[b,y]=z(),[w,D]=z(),E=(0,x.useMemo)(()=>a.reduce((e,n)=>{let{eventName:r,handler:l}=n;return e[r]=e=>{l(e,t)},e},{}),[a,t]),C=P(n);return L(()=>(d.set(t,{id:t,key:i,node:b,activatorNode:w,data:C}),()=>{let e=d.get(t);e&&e.key===i&&d.delete(t)}),[d,t]),{active:u,activatorEvent:o,activeNodeRect:s,attributes:(0,x.useMemo)(()=>({role:h,tabIndex:v,"aria-disabled":r,"aria-pressed":!!p&&h===ti||void 0,"aria-roledescription":g,"aria-describedby":c.draggable}),[r,h,v,p,g,c.draggable]),isDragging:p,listeners:r?void 0:E,node:b,over:f,setNodeRef:y,setActivatorNodeRef:D,transform:m}},"useDroppable",0,function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:l}=e,i=U("Droppable"),{active:a,dispatch:o,over:u,measureDroppableContainers:s}=(0,x.useContext)(e3),c=(0,x.useRef)({disabled:n}),f=(0,x.useRef)(!1),h=(0,x.useRef)(null),g=(0,x.useRef)(null),{disabled:v,updateMeasurementsFor:p,timeout:m}={...to,...l},b=P(null!=p?p:r),y=eV({callback:(0,x.useCallback)(()=>{if(!f.current){f.current=!0;return}null!=g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{s(Array.isArray(b.current)?b.current:[b.current]),g.current=null},m)},[m]),disabled:v||!a}),[w,D]=z((0,x.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),f.current=!1),e&&y.observe(e))},[y])),E=P(t);return(0,x.useEffect)(()=>{y&&w.current&&(y.disconnect(),f.current=!1,y.observe(w.current))},[w,y]),(0,x.useEffect)(()=>(o({type:d.RegisterDroppable,element:{id:r,key:i,disabled:n,node:w,rect:h,data:E}}),()=>o({type:d.UnregisterDroppable,key:i,id:r})),[r]),(0,x.useEffect)(()=>{n!==c.current.disabled&&(o({type:d.SetDroppableDisabled,id:r,key:i,disabled:n}),c.current.disabled=n)},[r,i,n,o]),{active:a,rect:h,isOver:(null==u?void 0:u.id)===r,node:w,over:u,setNodeRef:D}},"useSensor",0,function(e,t){return(0,x.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])},"useSensors",0,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,x.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}],59295)}]);
3
4//# debugId=3a9f382f-129d-cc10-6e86-1f039b6209f9

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.