PageSourceSearch

https://www.boutiqueavivre.fr/_next/static/chunks/1ga74-jdrqtq_.js

js boutiqueavivre.fr collected 2026-10-09 02:55:45 UTC 50,554 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,527529,807311,477183,76590,e=>{"use strict";let t;var n,r,l,i,a,o,u,s,c,d,f,h,g,p,v,b,m,y,w,x=e.i(271645),E=e.i(174080);function D(){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)}let C="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function S(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function R(e){return"nodeType"in e}function M(e){var t,n;return e?S(e)?e:R(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function O(e){let{Document:t}=M(e);return e instanceof t}function T(e){return!S(e)&&e instanceof M(e).HTMLElement}function k(e){return e instanceof M(e).SVGElement}function L(e){return e?S(e)?e.document:R(e)?O(e)?e:T(e)||k(e)?e.ownerDocument:document:document:document}let N=C?x.useLayoutEffect:x.useEffect;function I(e){let t=(0,x.useRef)(e);return N(()=>{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 N(()=>{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=I(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 U={};function Y(e,t){return(0,x.useMemo)(()=>{if(t)return t;let n=null==U[e]?0:U[e]+1;return U[e]=n,e+"-"+n},[e,t])}function j(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 X=j(1),K=j(-1);function W(e){if(!e)return!1;let{KeyboardEvent:t}=M(e.target);return t&&e instanceof t}function H(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 V=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[V.Translate.toString(e),V.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),J="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function q(e){return e.matches(J)?e:e.querySelector(J)}e.s(["r",0,V,"s",0,X,"q",0,C,"H",0,q,"o",0,H,"p",0,L,"I",0,M,"W",0,O,"E",0,T,"U",0,W,"t",0,R,"c",0,k,"z",0,S,"M",0,K,"h",0,D,"V",0,I,"y",0,A,"u",0,N,"Y",0,P,"S",0,B,"v",0,z,"_",0,F,"k",0,Y],807311);let _={display:"none"};function G(e){let{id:t,value:n}=e;return x.default.createElement("div",{id:t,style:_},n)}function Q(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 Z=(0,x.createContext)(null),$={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  "},ee={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 et(e){var t;let n,{announcements:r=ee,container:l,hiddenTextDescribedById:i,screenReaderInstructions:a=$}=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=Y("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;
1o(r.onDragCancel({active:t,over:n}))}}),[o,r]),n=(0,x.useContext)(Z),(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(G,{id:i,value:a.draggable}),x.default.createElement(Q,{id:s,announcement:u}));return l?(0,E.createPortal)(f,l):f}function en(){}(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 er=Object.freeze({x:0,y:0});function el(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ei(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function ea(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function eo(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 eu(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}
1function es(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 ec=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,l=eo(t),i=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=eo(r),a=Number((l.reduce((e,t,r)=>e+el(n[r],t),0)/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:a}})}}return i.sort(ei)},ed=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(ea)};function ef(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:er}let eh=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 eg(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 ep={ignoreTransform:!1};function ev(e,t){void 0===t&&(t=ep);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=M(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=eg(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 eb(e){return ev(e,{ignoreTransform:!0})}function em(e,t){let n=[];return e?function r(l){var i,a;let o;if(null!=t&&n.length>=t||!l)return n;if(O(l)&&null!=l.scrollingElement&&!n.includes(l.scrollingElement))return n.push(l.scrollingElement),n;if(!T(l)||k(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 ey(e){let[t]=em(e,1);return null!=t?t:null}function ew(e){return C&&e?S(e)?e:R(e)?O(e)||e===L(e).scrollingElement?window:T(e)?e:null:null:null}function ex(e){return S(e)?e.scrollX:e.scrollLeft}function eE(e){return S(e)?e.scrollY:e.scrollTop}function eD(e){return{x:ex(e),y:eE(e)}}function eC(e){return!!C&&!!e&&e===document.scrollingElement}function eS(e){let t={x:0,y:0},n=eC(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 eR={x:.2,y:.2};function eM(e){return e.reduce((e,t)=>X(e,eD(t)),er)}function eO(e,t){if(void 0===t&&(t=ev),!e)return;let{top:n,left:r,bottom:l,right:i}=t(e);ey(e)&&(l<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let eT=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+ex(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+eE(t),0)}]];class ek{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;let n=em(t),r=eM(n);for(let[t,l,i]of(this.rect={...e},this.width=e.width,this.height=e.height,eT))for(let 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 eL{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>
1{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function eN(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 eI(e){e.preventDefault()}function eA(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 eP={start:[g.Space,g.Enter],cancel:[g.Esc],end:[g.Space,g.Enter,g.Tab]},eB=(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 ez{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new eL(L(t)),this.windowListeners=new eL(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&&eO(n),t(er)}handleKeyDown(e){if(W(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:l=eP,coordinateGetter:i=eB,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}:er;this.referenceCoordinates||(this.referenceCoordinates=s);let c=i(e,{active:t,context:n.current,currentCoordinates:s});if(c){let t=K(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}=eS(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),p={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))},v=l===g.Right&&!o||l===g.Left&&!u,b=l===g.Down&&!s||l===g.Up&&!i;if(v&&p.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(b&&p.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,X(K(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 eF(e){return!!(e&&"distance"in e)}function eU(e){return!!(e&&"delay"in e)}ez.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=eP,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 eY{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=M(e);return e instanceof t?e:L(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;let{event:l}=e,{target:i}=l;this.props=e,this.events=t,this.document=L(i),this.documentListeners=new eL(this.document),this.listeners=new eL(n),this.windowListeners=new eL(M(i)),this.initialCoordinates=null!=(r=H(l))?r:er,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,eI),this.windowListeners.add(h.VisibilityChange,this.handleCancel),this.windowListeners.add(h.ContextMenu,eI),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(eU(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(eF(t))return void this.handlePending(t)}
1this.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,eA,{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=H(e))?t:er,u=K(r,o);if(!n&&a){if(eF(a)){if(null!=a.tolerance&&eN(u,a.tolerance))return this.handleCancel();if(eN(u,a.distance))return this.handleStart()}return eU(a)&&eN(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 ej={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class eX extends eY{constructor(e){let{event:t}=e;super(e,ej,L(t.target))}}eX.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 eK={move:{name:"mousemove"},end:{name:"mouseup"}};(a=p||(p={}))[a.RightClick=2]="RightClick";class eW extends eY{constructor(e){super(e,eK,L(e.event.target))}}eW.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==p.RightClick&&(null==r||r({event:n}),!0)}}];let eH={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class eV extends eY{constructor(e){super(e,eH)}static setup(){return window.addEventListener(eH.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(eH.move.name,e)};function e(){}}}eV.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:l}=n;return!(l.length>1)&&(null==r||r({event:n}),!0)}}],(o=v||(v={}))[o.Pointer=0]="Pointer",o[o.DraggableRect=1]="DraggableRect",(u=b||(b={}))[u.TreeOrder=0]="TreeOrder",u[u.ReversedTreeOrder=1]="ReversedTreeOrder";let eJ={x:{[f.Backward]:!1,[f.Forward]:!1},y:{[f.Backward]:!1,[f.Forward]:!1}};(s=m||(m={}))[s.Always=0]="Always",s[s.BeforeDragging=1]="BeforeDragging",s[s.WhileDragging=2]="WhileDragging",(y||(y={})).Optimized="optimized";let eq=new Map;function e_(e,t){return B(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function eG(e){let{callback:t,disabled:n}=e,r=I(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 eQ(e){return new ek(ev(e),e)}function eZ(e,t,n){void 0===t&&(t=eQ);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=I(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=eG({callback:i});return N(()=>{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 e0(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!==er;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?K(e,n.current):er}function e1(e){return(0,x.useMemo)(()=>{let t,n;return e?(t=e.innerWidth,{top:0,left:0,right:t,bottom:n=e.innerHe
1ight,width:t,height:n}):null},[e])}let e2=[];function e5(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return T(t)?t:e}let e7=[{sensor:eX,options:{}},{sensor:ez,options:{}}],e4={current:{}},e3={draggable:{measure:eb},droppable:{measure:eb,strategy:m.WhileDragging,frequency:y.Optimized},dragOverlay:{measure:ev}};class e9 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 e8={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new e9,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:en},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:e3,measureDroppableContainers:en,windowRect:null,measuringScheduled:!1},e6={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:en,draggableNodes:new Map,over:null,measureDroppableContainers:en},te=(0,x.createContext)(e6),tt=(0,x.createContext)(e8);function tn(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new e9}}}function tr(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}=n,l=new e9(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 e9(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 e9(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function tl(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:l}=(0,x.useContext)(te),i=F(r),a=F(null==n?void 0:n.id);return(0,x.useEffect)(()=>{if(!t&&!r&&i&&null!=a){if(!W(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=q(e);if(t){t.focus();break}}})}},[r,t,l,a,i]),null}function ti(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}let ta=(0,x.createContext)({...er,scaleX:1,scaleY:1});(c=w||(w={}))[c.Uninitialized=0]="Uninitialized",c[c.Initializing=1]="Initializing",c[c.Initialized=2]="Initialized";let to=(0,x.memo)(function(e){var t,n,r,l,i,a,o,u;let s,c,h,g,p,y,D,S,{id:R,accessibility:O,autoScroll:k=!0,children:L,sensors:I=e7,collisionDetection:U=ed,measuring:j,modifiers:K,...W}=e,[V,J]=(0,x.useReducer)(tr,void 0,tn),[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,Q]=(0,x.useState)(w.Uninitialized),$=G===w.Initialized,{draggable:{active:ee,nodes:en,translate:el},droppable:{containers:ei}}=V,ea=null!=ee?en.get(ee):null,eo=(0,x.useRef)({initial:null,translated:null}),es=(0,x.useMemo)(()=>{var e;return null!=ee?{id:ee,data:null!=(e=null==ea?void 0:ea.data)?e:e4,rect:eo}:null},[ee,ea]),ec=(0,x.useRef)(null),[eg,ep]=(0,x.useState)(null),[eb,ex]=(0,x.useState)(null),eE=P(W,Object.values(W)),eO=Y("DndDescribedBy",R),eT=(0,x.useMemo)(()=>ei.getEnabled(),[ei]),eL=(0,x.useMemo)(()=>({draggable:{...e3.draggable,...null==j?void 0:j.draggable},droppable:{...e3.droppable,...null==j?void 0:j.droppable},dragOverlay:{...e3.dragOverlay,...null==j?void 0:j.dragOverlay}}),[null==j?void 0:j.draggable,null==j?void 0:j.droppable,null==j?void 0:j.dragOverlay]),{droppableRects:eN,measureDroppableContainers:eI,measuringScheduled:eA}=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 m.Always:return!1;case m.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),p=B(t=>{if(d&&!n)return eq;if(!t||t===eq||c.current!==e||null!=i){let t=new Map;for(let n of e){if(!n)continue;if(i&&i.length>
10&&!i.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new ek(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:p,measureDroppableContainers:h,measuringScheduled:null!=i}}(eT,{dragging:$,dependencies:[el.x,el.y],config:eL.droppable}),eP=B(e=>{var t;return null==ee?null:null!=(t=null!=p?p:e)?t:null},[p=(g=null!=ee?en.get(ee):void 0)?g.node.current:null,ee]),eB=(0,x.useMemo)(()=>eb?H(eb):null,[eb]),ez=(s=(null==eg?void 0:eg.autoScrollEnabled)===!1,c="object"==typeof k?!1===k.enabled:!1===k,h=$&&!s&&!c,"object"==typeof k?{...k,enabled:h}:{enabled:h}),eF=e_(eP,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;N(()=>{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=ef(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=ey(e);t&&t.scrollBy({top:l.y,left:l.x})}},[t,a,o,r,n])}({activeNode:null!=ee?en.get(ee):null,config:ez.layoutShiftCompensation,initialRect:eF,measure:eL.draggable.measure});let eU=eZ(eP,eL.draggable.measure,eF),eY=eZ(eP?eP.parentElement:null),ej=(0,x.useRef)({activatorEvent:null,active:null,activeNode:eP,collisionRect:null,collisions:null,droppableRects:eN,draggableNodes:en,draggingNode:null,draggingNodeRect:null,droppableContainers:ei,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eX=ei.getNodeFor(null==(t=ej.current.over)?void 0:t.id),eK=function(e){let{measure:t}=e,[n,r]=(0,x.useState)(null),l=eG({callback:(0,x.useCallback)(e=>{for(let{target:n}of e)if(T(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=e5(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}),eW=null!=(n=eK.nodeRef.current)?n:eP,eH=$?null!=(r=eK.rect)?r:eU:null,eV=!!(eK.nodeRef.current&&eK.rect),eQ=(y=e_(i=eV?null:eU),ef(i,y)),e9=e1(eW?M(eW):null),e8=(a=$?null!=eX?eX:eP:null,D=(0,x.useRef)(a),S=B(e=>a?e&&e!==e$&&a&&D.current&&a.parentNode===D.current.parentNode?e:em(a):e$,[a]),(0,x.useEffect)(()=>{D.current=a},[a]),S),e6=function(e,t){void 0===t&&(t=ev);let[n]=e,r=e1(n?M(n):null),[l,i]=(0,x.useState)(e2);function a(){i(()=>e.length?e.map(e=>eC(e)?r:new ek(t(e),e)):e2)}let o=eG({callback:a});return N(()=>{null==o||o.disconnect(),a(),e.forEach(e=>null==o?void 0:o.observe(e))},[e]),l}(e8),to=ti(K,{transform:{x:el.x-eQ.x,y:el.y-eQ.y,scaleX:1,scaleY:1},activatorEvent:eb,active:es,activeNodeRect:eU,containerNodeRect:eY,draggingNodeRect:eH,over:ej.current.over,overlayNodeRect:eK.rect,scrollableAncestors:e8,scrollableAncestorRects:e6,windowRect:e9}),tu=eB?X(eB,el):null,ts=function(e){let[t,n]=(0,x.useState)(null),r=(0,x.useRef)(e),l=(0,x.useCallback)(e=>{let t=ew(e.target);t&&n(e=>e?(e.set(t,eD(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=ew(e);return t?(t.addEventListener("scroll",l,{passive:!0}),[t,eD(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=ew(e);null==t||t.removeEventListener("scroll",l)})}},[l,e]),(0,x.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>X(e,t),er):eM(e):er,[e,t])}(e8),tc=e0(ts),td=e0(ts,[eU]),tf=X(to,tc),th=eH?eh(eH,to):null,tg=es&&th?U({active:es,collisionRect:th,droppableRects:eN,droppableContainers:eT,pointerCoordinates:tu}):null,tp=eu(tg,"id"),[tv,tb]=(0,x.useState)(null),tm=(o=eV?to:X(to,td),u=null!=(l=null==tv?void 0:tv.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==ec.current)return;let l=en.get(ec.current);if(!l)return;let i=e.nativeEvent,a=new n({active:ec.current,activeNode:l,event:i,options:r,context:ej,onAbort(e){if(!en.get(e))return;let{onDragAbort:t}=eE.current,n={id:e};null==t||t(n),q({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!en.get(e))return;let{onDragPending:l}
1=eE.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};null==l||l(i),q({type:"onDragPending",event:i})},onStart(e){let t=ec.current;if(null==t)return;let n=en.get(t);if(!n)return;let{onDragStart:r}=eE.current,l={activatorEvent:i,active:{id:t,data:n.data,rect:eo}};(0,E.unstable_batchedUpdates)(()=>{null==r||r(l),Q(w.Initializing),J({type:d.DragStart,initialCoordinates:e,active:t}),q({type:"onDragStart",event:l}),ep(ty.current),ex(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}=eE.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)}ec.current=null,(0,E.unstable_batchedUpdates)(()=>{J({type:e}),Q(w.Uninitialized),tb(null),ep(null),ex(null),ty.current=null;let t=e===d.DragEnd?"onDragEnd":"onDragCancel";if(a){let e=eE.current[t];null==e||e(a),q({type:t,event:a})}})}}ty.current=a},[en]),tx=(0,x.useCallback)((e,t)=>(n,r)=>{let l=n.nativeEvent,i=en.get(r);null!==ec.current||!i||l.dndKit||l.defaultPrevented||!0===e(n,t.options,{active:i})&&(l.dndKit={capturedBy:t.sensor},ec.current=r,tw(n,t))},[en,tw]),tE=(0,x.useMemo)(()=>I.reduce((e,t)=>{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:tx(e.handler,t)}))]},[]),[I,tx]);(0,x.useEffect)(()=>{if(!C)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})),N(()=>{eU&&G===w.Initializing&&Q(w.Initialized)},[eU,G]),(0,x.useEffect)(()=>{let{onDragMove:e}=eE.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,E.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==ec.current||!t||!l)return;let{onDragOver:i}=eE.current,a=r.get(tp),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,E.unstable_batchedUpdates)(()=>{tb(o),null==i||i(u),q({type:"onDragOver",event:u})})},[tp]),N(()=>{ej.current={activatorEvent:eb,active:es,activeNode:eP,collisionRect:th,collisions:tg,droppableRects:eN,draggableNodes:en,draggingNode:eW,draggingNodeRect:eH,droppableContainers:ei,over:tv,scrollableAncestors:e8,scrollAdjustedTranslate:tf},eo.current={initial:eH,translated:th}},[es,eP,tg,th,en,eW,eH,eN,ei,tv,e8,tf]),function(e){let{acceleration:t,activator:n=v.Pointer,canScroll:r,draggingRect:l,enabled:i,interval:a=5,order:o=b.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 eJ;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}),[p,m]=A(),y=(0,x.useRef)({x:0,y:0}),w=(0,x.useRef)({x:0,y:0}),E=(0,x.useMemo)(()=>{switch(n){case v.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case v.DraggableRect:return l}},[n,l,u]),D=(0,x.useRef)(null),C=(0,x.useCallback)(()=>{let e=D.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===b.TreeOrder?[...s].reverse():s,[o,s]);(0,x.useEffect)(()=>{if(!i||!s.length||!E)return void m();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=eR);let{isTop:s,isBottom:c,isLeft:d,isRight:h}=eS(e),g={x:0,y:0},p={x:0,y:0},v={height:t.height*l.y,width:t.width*l.x};return!s&&i<=t.top+v.height?(g.y=f.Backward,p.y=r*Math.abs((t.top+v.height-i)/v.height)):!c&&u>=t.bottom-v.height&&(g.y=f.Forward,p.y=r*Math.abs((t.bottom-v.height-u)/v.height)),!h&&o>=t.right-v.width?(g.x=f.Forward,p.x=r*Math.abs((t.right-v.width-o)/v.width)):!d&&a<=t.left+v.width&&(g.x=f.Backward,p.x=r*Math.abs((t.left+v.width-a)/v.width)),{direction:g,speed:p}}(e,n,E,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){m(),D.current=e,p(C,a),y.current=i,w.current=l;return}}y.current={x:0,y:0},w.current={x:0,y:0},m()},[t,C,r,m,i,a,JSON.stringify(E),JSON.stringify(g),p,s,S,c,JSON.stringify(h)])}({...ez,delta:el,draggingRect:th,pointerCoordinates:tu,scrollableAncestors:e8,scrollableAncestorRects:e6});let tD=(0,x.useMemo)(()=>({active:es,activeNode:eP,activeNodeRect:eU,activatorEvent:eb,collisions:tg,containerNodeRect:eY,dragOverlay:eK,draggableNodes:en,droppableContainers:ei,droppableRects:eN,over:tv,measureDroppableContainers:eI,scrollableAncestors:e8,scrollableAncestorRects:e6,measuringConfiguration:eL,measuringScheduled:eA,windowRect:e9}),[es,eP,eU,eb,tg,eY,eK,en,ei,eN,tv,eI,e8,e6,eL,eA,e9]),tC=(0,x.useMemo)(()=>({activatorEvent:eb,activators:tE,active:es,activeNodeRect:eU,ariaDescribedById:{draggable:eO},dispatch:J,draggableNodes:en,over:tv,measureDroppableContainers:eI}),[eb,tE,es,eU,J,eO,en,tv,eI]);return x.default.createElement(Z.Provider,{value:_},x.default.createElement(te.Provider,{value:tC},x.default.createElement(tt.Provider,{value:tD},x.default.createElement(ta.Provider,{value:tm},L)),x.default.createElement(tl,{disabled:(null==O?void 0:O.restoreFocus)===!1})),x.default.createElement(et,{...O,hiddenTextDescribedById:eO}))}),tu=(0,x.createContext)(null),ts="button";function tc(e){let{id:t,data:n,disabled:r=!1,attributes:l}=e,i=Y("Draggable"),{activators:a,activatorEvent:o,active:u,activeNodeRect:s,ariaDescribedById:c,draggableNodes:d,over:f}=(0,x.useContext)(te),{role:h=ts,roleDescription:g="draggable",tabIndex:p=0}=null!=l?l:{},v=(null==u?void 0:u.id)===t,b=(0,x.useContext)(v?ta:tu),[m,y]=z(),[w,E]=z(),D=(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 N(()=>(d.set(t,{id:t,key:i,node:m,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:p,"aria-disabled":r,"aria-pressed":!!v&&h===ts||void 0,"aria-roledescription":g,"aria-describedby":c.draggable}),[r,h,p,v,g,c.draggable]),isDragging:v,listeners:r?void 0:D,node:m,over:f,setNodeRef:y,setActivatorNodeRef:E,transform:b}}function td(){return(0,x.useContext)(tt)}let tf={timeout:25};function th(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:l}=e,i=Y("Droppable"),{active:a,dispatch:o,over:u,measureDroppableContainers:s}=(0,x.useContext)(te),c=(0,x.useRef)({disabled:n}),f=(0,x.useRef)(!1),h=(0,x.useRef)(null),g=(0,x.useRef)(null),{disabled:p,updateMeasurementsFor:v,timeout:b}={...tf,...l},m=P(null!=v?v:r),y=eG({callback:(0,x.useCallback)(()=>
1{if(!f.current){f.current=!0;return}null!=g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{s(Array.isArray(m.current)?m.current:[m.current]),g.current=null},b)},[b]),disabled:p||!a}),[w,E]=z((0,x.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),f.current=!1),e&&y.observe(e))},[y])),D=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:D}}),()=>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:E}}function tg(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),N(()=>{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 tp={x:0,y:0,scaleX:1,scaleY:1};function tv(e){let{children:t}=e;return x.default.createElement(te.Provider,{value:e6},x.default.createElement(ta.Provider,{value:tp},t))}let tb={position:"fixed",touchAction:"none"},tm=e=>W(e)?"transform 250ms ease":void 0,ty=(0,x.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:l,children:i,className:a,rect:o,style:u,transform:s,transition:c=tm}=e;if(!o)return null;let d=l?s:{...s,scaleX:1,scaleY:1},f={...tb,width:o.width,height:o.height,top:o.top,left:o.left,transform:V.Transform.toString(d),transformOrigin:l&&r?function(e,t){let n=H(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)}),tw={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:V.Transform.toString(t)},{transform:V.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)}})},tx=0,tE=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:p,droppableContainers:v,dragOverlay:b,over:m,measuringConfiguration:y,scrollableAncestors:w,scrollableAncestorRects:E,windowRect:D}=td(),C=(0,x.useContext)(ta),S=(t=null==f?void 0:f.id,(0,x.useMemo)(()=>{if(null!=t)return++tx},[t])),R=ti(o,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:g,draggingNodeRect:b.rect,over:m,overlayNodeRect:b.rect,scrollableAncestors:w,scrollableAncestorRects:E,transform:C,windowRect:D}),O=e_(h),T=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:l}=e;return I((e,i)=>{if(null===t)return;let a=n.get(e);if(!a)return;let o=a.node.current;if(!o)return;let u=e5(i);if(!u)return;let{transform:s}=M(i).getComputedStyle(i),c=eg(s);if(!c)return;let d="function"==typeof t?t:function(e){let{duration:t,easing:n,sideEffects:r,keyframes:l}={...tw,...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 p=null==r?void 0:r({active:i,dragOverlay:a,...u}),v=a.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{v.onfinish=()=>{null==p||p(),e()}})}}(t);return eO(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:p,droppableContainers:v,measuringConfiguration:y}),k=O?b.setRef:void 0;
1return x.default.createElement(tv,null,x.default.createElement(tg,{animation:T},f&&S?x.default.createElement(ty,{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))});function tD(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function tC(e){return null!==e&&e>=0}e.s(["H",0,to,"N",0,tE,"M",0,g,"y",0,ez,"U",0,eW,"k",0,eX,"O",0,eV,"P",0,e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,l=es(t,t.left,t.top),i=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=el(es(r),l);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(ei)},"Q",0,ec,"S",0,ev,"Z",0,eu,"l",0,em,"I",0,e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];let l=[];for(let e of t){let{id:t}=e,i=n.get(t);if(i&&function(e,t){let{top:n,left:r,bottom:l,right:i}=t;return n<=e.y&&e.y<=l&&r<=e.x&&e.x<=i}(r,i)){let n=Number((eo(i).reduce((e,t)=>e+el(r,t),0)/4).toFixed(4));l.push({id:t,data:{droppableContainer:e,value:n}})}}return l.sort(ei)},"R",0,td,"f",0,tc,"g",0,th,"J",0,function(e,t){return(0,x.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])},"n",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])}],477183);let tS={scaleX:1,scaleY:1},tR=e=>{let{rects:t,activeIndex:n,overIndex:r,index:l}=e,i=tD(t,r,n),a=t[l],o=i[l];return o&&a?{x:o.left-a.left,y:o.top-a.top,scaleX:o.width/a.width,scaleY:o.height/a.height}:null},tM={scaleX:1,scaleY:1},tO="Sortable",tT=x.default.createContext({activeIndex:-1,containerId:tO,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:tR,disabled:{draggable:!1,droppable:!1}});function tk(e){let{children:t,id:n,items:r,strategy:l=tR,disabled:i=!1}=e,{active:a,dragOverlay:o,droppableRects:u,over:s,measureDroppableContainers:c}=td(),d=Y(tO,n),f=null!==o.rect,h=(0,x.useMemo)(()=>r.map(e=>"object"==typeof e&&"id"in e?e.id:e),[r]),g=null!=a,p=a?h.indexOf(a.id):-1,v=s?h.indexOf(s.id):-1,b=(0,x.useRef)(h),m=!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}(h,b.current),y=-1!==v&&-1===p||m,w="boolean"==typeof i?{draggable:i,droppable:i}:i;N(()=>{m&&g&&c(h)},[m,h,g,c]),(0,x.useEffect)(()=>{b.current=h},[h]);let E=(0,x.useMemo)(()=>({activeIndex:p,containerId:d,disabled:w,disableTransforms:y,items:h,overIndex:v,useDragOverlay:f,sortedRects:h.reduce((e,t,n)=>{let r=u.get(t);return r&&(e[n]=r),e},Array(h.length)),strategy:l}),[p,d,w.draggable,w.droppable,y,h,v,u,f,l]);return x.default.createElement(tT.Provider,{value:E},t)}let tL=e=>{let{id:t,items:n,activeIndex:r,overIndex:l}=e;return tD(n,r,l).indexOf(t)},tN=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:l,items:i,newIndex:a,previousItems:o,previousContainerId:u,transition:s}=e;return!!s&&!!r&&(o===i||l!==a)&&(!!n||a!==l&&t===u)},tI={duration:200,easing:"ease"},tA="transform",tP=V.Transition.toString({property:tA,duration:0,easing:"linear"}),tB={roleDescription:"sortable"};function tz(e){if(!e)return!1;let 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}let tF=[g.Down,g.Right,g.Up,g.Left];function tU(e,t){return!!tz(e)&&!!tz(t)&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}e.s(["V",0,tk,"e",0,tD,"I",0,e=>{var t,n,r,l;let i,a,o,{rects:u,activeNodeRect:s,activeIndex:c,overIndex:d,index:f}=e,h=null!=(t=u[c])?t:s;if(!h)return null;let g=(n=u,r=f,l=c,i=n[r],a=n[r-1],o=n[r+1],i&&(a||o)?l<r?a?i.left-(a.left+a.width):o.left-(i.left+i.width):o?o.left-(i.left+i.width):i.left-(a.left+a.width):0);if(f===c){let e=u[d];return e?{x:c<d?e.left+e.width-(h.left+h.width):e.left-h.left,y:0,...tS}:null}return f>c&&f<=d?{x:-h.width-g,y:0,...tS}:f<c&&f>=d?{x:h.width+g,y:0,...tS}:{x:0,y:0,...tS}},"m",0,tR,"j",0,(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:l,droppableContainers:i,over:a,scrollableAncestors:o}}=t;if(tF.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];
1i.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;let i=l.get(n.id);if(i)switch(e.code){case g.Down:r.top<i.top&&t.push(n);break;case g.Up:r.top>i.top&&t.push(n);break;case g.Left:r.left>i.left&&t.push(n);break;case g.Right:r.left<i.left&&t.push(n)}});let c=ec({active:n,collisionRect:r,droppableRects:l,droppableContainers:t,pointerCoordinates:null}),d=eu(c,"id");if(d===(null==a?void 0:a.id)&&c.length>1&&(d=c[1].id),null!=d){let e=i.get(n.id),t=i.get(d),a=t?l.get(t.id):null,c=null==t?void 0:t.node.current;if(c&&a&&e&&t){var u,s;let n=em(c).some((e,t)=>o[t]!==e),l=tU(e,t),i=(u=e,s=t,!!tz(u)&&!!tz(s)&&!!tU(u,s)&&u.data.current.sortable.index<s.data.current.sortable.index),d=n||!l?{x:0,y:0}:{x:i?r.width-a.width:0,y:i?r.height-a.height:0},f={x:a.left,y:a.top};return d.x&&d.y?f:K(f,d)}}}},"s",0,function(e){var t,n,r,l;let{animateLayoutChanges:i=tN,attributes:a,disabled:o,data:u,getNewIndex:s=tL,id:c,strategy:d,resizeObserverConfig:f,transition:h=tI}=e,{items:g,containerId:p,activeIndex:v,disabled:b,disableTransforms:m,sortedRects:y,overIndex:w,useDragOverlay:E,strategy:C}=(0,x.useContext)(tT),S=(t=o,n=b,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(r=null==t?void 0:t.draggable)?r:n.draggable,droppable:null!=(l=null==t?void 0:t.droppable)?l:n.droppable}),R=g.indexOf(c),M=(0,x.useMemo)(()=>({sortable:{containerId:p,index:R,items:g},...u}),[p,u,R,g]),O=(0,x.useMemo)(()=>g.slice(g.indexOf(c)),[g,c]),{rect:T,node:k,isOver:L,setNodeRef:I}=th({id:c,data:M,disabled:S.droppable,resizeObserverConfig:{updateMeasurementsFor:O,...f}}),{active:A,activatorEvent:P,activeNodeRect:B,attributes:z,setNodeRef:F,listeners:U,isDragging:Y,over:j,setActivatorNodeRef:X,transform:K}=tc({id:c,data:M,attributes:{...tB,...a},disabled:S.draggable}),H=D(I,F),J=!!A,q=J&&!m&&tC(v)&&tC(w),_=!E&&Y,G=_&&q?K:null,Q=q?null!=G?G:(null!=d?d:C)({rects:y,activeNodeRect:B,activeIndex:v,overIndex:w,index:R}):null,Z=tC(v)&&tC(w)?s({id:c,items:g,activeIndex:v,overIndex:w}):R,$=null==A?void 0:A.id,ee=(0,x.useRef)({activeId:$,items:g,newIndex:Z,containerId:p}),et=g!==ee.current.items,en=i({active:A,containerId:p,isDragging:Y,isSorting:J,id:c,index:R,items:g,newIndex:ee.current.newIndex,previousItems:ee.current.items,previousContainerId:ee.current.containerId,transition:h,wasDragging:null!=ee.current.activeId}),er=function(e){let{disabled:t,index:n,node:r,rect:l}=e,[i,a]=(0,x.useState)(null),o=(0,x.useRef)(n);return N(()=>{if(!t&&n!==o.current&&r.current){let e=l.current;if(e){let t=ev(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)&&a(n)}}n!==o.current&&(o.current=n)},[t,n,r,l]),(0,x.useEffect)(()=>{i&&a(null)},[i]),i}({disabled:!en,index:R,node:k,rect:T});return(0,x.useEffect)(()=>{J&&ee.current.newIndex!==Z&&(ee.current.newIndex=Z),p!==ee.current.containerId&&(ee.current.containerId=p),g!==ee.current.items&&(ee.current.items=g)},[J,Z,p,g]),(0,x.useEffect)(()=>{if($===ee.current.activeId)return;if(null!=$&&null==ee.current.activeId){ee.current.activeId=$;return}let e=setTimeout(()=>{ee.current.activeId=$},50);return()=>clearTimeout(e)},[$]),{active:A,activeIndex:v,attributes:z,data:M,rect:T,index:R,newIndex:Z,items:g,isOver:L,isSorting:J,isDragging:Y,listeners:U,node:k,overIndex:w,over:j,setNodeRef:H,setActivatorNodeRef:X,setDroppableNodeRef:I,setDraggableNodeRef:F,transform:null!=er?er:Q,transition:er||et&&ee.current.newIndex===R?tP:(!_||W(P))&&h&&(J||en)?V.Transition.toString({...h,property:tA}):void 0}},"W",0,e=>{var t,n,r,l;let i,a,o,{activeIndex:u,activeNodeRect:s,index:c,rects:d,overIndex:f}=e,h=null!=(t=d[u])?t:s;if(!h)return null;if(c===u){let e=d[f];return e?{x:0,y:u<f?e.top+e.height-(h.top+h.height):e.top-h.top,...tM}:null}let g=(n=d,r=c,l=u,i=n[r],a=n[r-1],o=n[r+1],i?l<r?a?i.top-(a.top+a.height):o?o.top-(i.top+i.height):0:o?o.top-(i.top+i.height):a?i.top-(a.top+a.height):0:0);return c>u&&c<=f?{x:0,y:-h.height-g,...tM}:c<u&&c>=f?{x:0,y:h.height+g,...tM}:{x:0,y:0,...tM}}],76590),e.s(["H",0,to,"N",0,tE,"V",0,tk],527529)}]);

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.