import{k as t,c as e,N as n,u as o,r,M as i,l as a,e as l,w as s,d as c,n as u,p as d,i as h}from"./vendor-CgKklJ4r.js";var f=Object.defineProperty,p=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,m=(t,e,n)=>e in t?f(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,b=(t,e)=>{for(var n in e||(e={}))g.call(e,n)&&m(t,n,e[n]);if(p)for(var n of p(e))v.call(e,n)&&m(t,n,e[n]);return t},y=(t,e)=>{var n={};for(var o in t)g.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&p)for(var o of p(t))e.indexOf(o)<0&&v.call(t,o)&&(n[o]=t[o]);return n};function w(t,e,n){return n>=0&&n{e(n,t[n])}))}const C=Object.assign; /**! * Sortable 1.15.2 * @author RubaXa * @author owenm * @license MIT */function O(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function x(t){for(var e=1;e=0)&&(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function P(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var k=P(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),X=P(/Edge/i),Y=P(/firefox/i),R=P(/safari/i)&&!P(/chrome/i)&&!P(/android/i),B=P(/iP(ad|od|hone)/i),j=P(/chrome/i)&&P(/android/i),F={capture:!1,passive:!1};function H(t,e,n){t.addEventListener(e,n,!k&&F)}function L(t,e,n){t.removeEventListener(e,n,!k&&F)}function W(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(n){return!1}return!1}}function z(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function V(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&W(t,e):W(t,e))||o&&t===n)return t;if(t===n)break}while(t=z(t))}return null}var U,G=/\s+/g;function q(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(G," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(G," ")}}function $(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];!(e in o)&&-1===e.indexOf("webkit")&&(e="-webkit-"+e),o[e]=n+("string"==typeof n?"":"px")}}function J(t,e){var n="";if("string"==typeof t)n=t;else do{var o=$(t,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function Z(t,e,n){if(t){var o=t.getElementsByTagName(e),r=0,i=o.length;if(n)for(;r=Q(o)[n]))return o;if(o===K())break;o=it(o,!1)}return!1}function et(t,e,n,o){for(var r=0,i=0,a=t.children;i2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,r=M(n,vt);gt.pluginEvent.bind(ce)(t,e,x({dragEl:yt,parentEl:wt,ghostEl:Et,rootEl:St,nextEl:Dt,lastDownEl:_t,cloneEl:Tt,cloneHidden:Ct,dragStarted:jt,putSortable:Mt,activeSortable:ce.active,originalEvent:o,oldIndex:Ot,oldDraggableIndex:At,newIndex:xt,newDraggableIndex:It,hideGhostForTarget:ie,unhideGhostForTarget:ae,cloneNowHidden:function(){Ct=!0},cloneNowShown:function(){Ct=!1},dispatchSortableEvent:function(t){bt({sortable:e,name:t,originalEvent:o})}},r))};function bt(t){!function(t){var e=t.sortable,n=t.rootEl,o=t.name,r=t.targetEl,i=t.cloneEl,a=t.toEl,l=t.fromEl,s=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,d=t.newDraggableIndex,h=t.originalEvent,f=t.putSortable,p=t.extraEventProperties;if(e=e||n&&n[dt]){var g,v=e.options,m="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||k||X?(g=document.createEvent("Event")).initEvent(o,!0,!0):g=new CustomEvent(o,{bubbles:!0,cancelable:!0}),g.to=a||n,g.from=l||n,g.item=r||n,g.clone=i,g.oldIndex=s,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=d,g.originalEvent=h,g.pullMode=f?f.lastPutMode:void 0;var b=x(x({},p),gt.getEventProperties(o,e));for(var y in b)g[y]=b[y];n&&n.dispatchEvent(g),v[m]&&v[m].call(e,g)}}(x({putSortable:Mt,cloneEl:Tt,targetEl:yt,rootEl:St,oldIndex:Ot,oldDraggableIndex:At,newIndex:xt,newDraggableIndex:It},t))}var yt,wt,Et,St,Dt,_t,Tt,Ct,Ot,xt,At,It,Nt,Mt,Pt,kt,Xt,Yt,Rt,Bt,jt,Ft,Ht,Lt,Wt,zt=!1,Vt=!1,Ut=[],Gt=!1,qt=!1,$t=[],Jt=!1,Zt=[],Kt="undefined"!=typeof document,Qt=B,te=X||k?"cssFloat":"float",ee=Kt&&!j&&!B&&"draggable"in document.createElement("div"),ne=function(){if(Kt){if(k)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),oe=function(t,e){var n=$(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=et(t,0,e),i=et(t,1,e),a=r&&$(r),l=i&&$(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Q(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Q(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=o&&"none"===n[te]||i&&"none"===n[te]&&s+c>o)?"vertical":"horizontal"},re=function(t){function e(t,n){return function(o,r,i,a){var l=o.options.group.name&&r.options.group.name&&o.options.group.name===r.options.group.name;if(null==t&&(n||l))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(o,r,i,a),n)(o,r,i,a);var s=(n?o:r).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},o=t.group;(!o||"object"!=A(o))&&(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},ie=function(){!ne&&Et&&$(Et,"display","none")},ae=function(){!ne&&Et&&$(Et,"display","")};Kt&&!j&&document.addEventListener("click",(function(t){if(Vt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Vt=!1,!1}),!0);var le=function(t){if(yt){var e=function(t,e){var n;return Ut.some((function(o){var r=o[dt].options.emptyInsertThreshold;if(r&&!nt(o)){var i=Q(o),a=t>=i.left-r&&t<=i.right+r,l=e>=i.top-r&&e<=i.bottom+r;if(a&&l)return n=o}})),n}((t=t.touches?t.touches[0]:t).clientX,t.clientY);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[dt]._onDragOver(n)}}},se=function(t){yt&&yt.parentNode[dt]._isOutsideThisEl(t.target)};function ce(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=N({},e),t[dt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return oe(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==ce.supportPointer&&"PointerEvent"in window&&!R,emptyInsertThreshold:5};for(var o in gt.initializePlugins(this,t,n),n)!(o in e)&&(e[o]=n[o]);for(var r in re(e),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!e.forceFallback&&ee,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?H(t,"pointerdown",this._onTapStart):(H(t,"mousedown",this._onTapStart),H(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(H(t,"dragover",this),H(t,"dragenter",this)),Ut.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),N(this,ht())}function ue(t,e,n,o,r,i,a,l){var s,c,u=t[dt],d=u.options.onMove;return!window.CustomEvent||k||X?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=n,s.draggedRect=o,s.related=r||e,s.relatedRect=i||Q(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),d&&(c=d.call(u,s,a)),c}function de(t){t.draggable=!1}function he(){Jt=!1}function fe(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;n--;)o+=e.charCodeAt(n);return o.toString(36)}function pe(t){return setTimeout(t,0)}function ge(t){return clearTimeout(t)}ce.prototype={constructor:ce,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Ft=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,yt):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,r=o.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(a||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(function(t){Zt.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var o=e[n];o.checked&&Zt.push(o)}}(n),!yt&&!(/mousedown|pointerdown/.test(i)&&0!==t.button||o.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!R||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=V(l,o.draggable,n,!1))&&l.animated||_t===l)){if(Ot=ot(l),At=ot(l,o.draggable),"function"==typeof c){if(c.call(this,t,l,this))return bt({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),mt("filter",e,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=V(s,o.trim(),n,!1))return bt({sortable:e,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),mt("filter",e,{evt:t}),!0}))))return void(r&&t.cancelable&&t.preventDefault());o.handle&&!V(s,o.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var o,r=this,i=r.el,a=r.options,l=i.ownerDocument;if(n&&!yt&&n.parentNode===i){var s=Q(n);if(St=i,wt=(yt=n).parentNode,Dt=yt.nextSibling,_t=n,Nt=a.group,ce.dragged=yt,Pt={target:yt,clientX:(e||t).clientX,clientY:(e||t).clientY},Rt=Pt.clientX-s.left,Bt=Pt.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,yt.style["will-change"]="all",o=function(){mt("delayEnded",r,{evt:t}),ce.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!Y&&r.nativeDraggable&&(yt.draggable=!0),r._triggerDragStart(t,e),bt({sortable:r,name:"choose",originalEvent:t}),q(yt,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){Z(yt,t.trim(),de)})),H(l,"dragover",le),H(l,"mousemove",le),H(l,"touchmove",le),H(l,"mouseup",r._onDrop),H(l,"touchend",r._onDrop),H(l,"touchcancel",r._onDrop),Y&&this.nativeDraggable&&(this.options.touchStartThreshold=4,yt.draggable=!0),mt("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(X||k))o();else{if(ce.eventCanceled)return void this._onDrop();H(l,"mouseup",r._disableDelayedDrag),H(l,"touchend",r._disableDelayedDrag),H(l,"touchcancel",r._disableDelayedDrag),H(l,"mousemove",r._delayedDragTouchMoveHandler),H(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&H(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){yt&&de(yt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;L(t,"mouseup",this._disableDelayedDrag),L(t,"touchend",this._disableDelayedDrag),L(t,"touchcancel",this._disableDelayedDrag),L(t,"mousemove",this._delayedDragTouchMoveHandler),L(t,"touchmove",this._delayedDragTouchMoveHandler),L(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?H(document,"pointermove",this._onTouchMove):H(document,e?"touchmove":"mousemove",this._onTouchMove):(H(yt,"dragend",this),H(St,"dragstart",this._onDragStart));try{document.selection?pe((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(t,e){if(zt=!1,St&&yt){mt("dragStarted",this,{evt:e}),this.nativeDraggable&&H(document,"dragover",se);var n=this.options;!t&&q(yt,n.dragClass,!1),q(yt,n.ghostClass,!0),ce.active=this,t&&this._appendGhost(),bt({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(kt){this._lastX=kt.clientX,this._lastY=kt.clientY,ie();for(var t=document.elementFromPoint(kt.clientX,kt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(kt.clientX,kt.clientY))!==e;)e=t;if(yt.parentNode[dt]._isOutsideThisEl(t),e)do{if(e[dt]){if(e[dt]._onDragOver({clientX:kt.clientX,clientY:kt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);ae()}},_onTouchMove:function(t){if(Pt){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,i=Et&&J(Et,!0),a=Et&&i&&i.a,l=Et&&i&&i.d,s=Qt&&Wt&&rt(Wt),c=(r.clientX-Pt.clientX+o.x)/(a||1)+(s?s[0]-$t[0]:0)/(a||1),u=(r.clientY-Pt.clientY+o.y)/(l||1)+(s?s[1]-$t[1]:0)/(l||1);if(!ce.active&&!zt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))r.right+i||t.clientY>o.bottom&&t.clientX>o.left:t.clientY>r.bottom+i||t.clientX>o.right&&t.clientY>o.top}(t,r,this)&&!g.animated){if(g===yt)return M(!1);if(g&&i===t.target&&(a=g),a&&(n=Q(a)),!1!==ue(St,i,yt,e,a,n,t,!!a))return N(),g&&g.nextSibling?i.insertBefore(yt,g.nextSibling):i.appendChild(yt),wt=i,P(),M(!0)}else if(g&&function(t,e,n){var o=Q(et(n.el,0,n.options,!0)),r=ut(n.el,n.options,Et),i=10;return e?t.clientXu+c*i/2:sd-Lt)return-Ht}else if(s>u+c*(1-r)/2&&sd-c*i/2)?s>u+c/2?1:-1:0}(t,a,n,r,E?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,qt,Ft===a),0!==m){var T=ot(yt);do{T-=m,y=wt.children[T]}while(y&&("none"===$(y,"display")||y===Et))}if(0===m||y===a)return M(!1);Ft=a,Ht=m;var C=a.nextElementSibling,O=!1,A=ue(St,i,yt,e,a,n,t,O=1===m);if(!1!==A)return(1===A||-1===A)&&(O=1===A),Jt=!0,setTimeout(he,30),N(),O&&!C?i.appendChild(yt):a.parentNode.insertBefore(yt,O?C:a),D&&st(D,0,_-D.scrollTop),wt=yt.parentNode,void 0!==b&&!qt&&(Lt=Math.abs(b-Q(a)[S])),P(),M(!0)}if(i.contains(yt))return M(!1)}return!1}function I(l,s){mt(l,f,x({evt:t,isOwner:u,axis:r?"vertical":"horizontal",revert:o,dragRect:e,targetRect:n,canSort:d,fromSortable:h,target:a,completed:M,onMove:function(n,o){return ue(St,i,yt,e,n,Q(n),t,o)},changed:P},s))}function N(){I("dragOverAnimationCapture"),f.captureAnimationState(),f!==h&&h.captureAnimationState()}function M(e){return I("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(f),f!==h&&(q(yt,Mt?Mt.options.ghostClass:c.options.ghostClass,!1),q(yt,l.ghostClass,!0)),Mt!==f&&f!==ce.active?Mt=f:f===ce.active&&Mt&&(Mt=null),h===f&&(f._ignoreWhileAnimating=a),f.animateAll((function(){I("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(a===yt&&!yt.animated||a===i&&!a.animated)&&(Ft=null),!l.dragoverBubble&&!t.rootEl&&a!==document&&(yt.parentNode[dt]._isOutsideThisEl(t.target),!e&&le(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),p=!0}function P(){xt=ot(yt),It=ot(yt,l.draggable),bt({sortable:f,name:"change",toEl:i,newIndex:xt,newDraggableIndex:It,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){L(document,"mousemove",this._onTouchMove),L(document,"touchmove",this._onTouchMove),L(document,"pointermove",this._onTouchMove),L(document,"dragover",le),L(document,"mousemove",le),L(document,"touchmove",le)},_offUpEvents:function(){var t=this.el.ownerDocument;L(t,"mouseup",this._onDrop),L(t,"touchend",this._onDrop),L(t,"pointerup",this._onDrop),L(t,"touchcancel",this._onDrop),L(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;xt=ot(yt),It=ot(yt,n.draggable),mt("drop",this,{evt:t}),wt=yt&&yt.parentNode,xt=ot(yt),It=ot(yt,n.draggable),ce.eventCanceled||(zt=!1,qt=!1,Gt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ge(this.cloneId),ge(this._dragStartId),this.nativeDraggable&&(L(document,"drop",this),L(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),R&&$(document.body,"user-select",""),$(yt,"transform",""),t&&(jt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),Et&&Et.parentNode&&Et.parentNode.removeChild(Et),(St===wt||Mt&&"clone"!==Mt.lastPutMode)&&Tt&&Tt.parentNode&&Tt.parentNode.removeChild(Tt),yt&&(this.nativeDraggable&&L(yt,"dragend",this),de(yt),yt.style["will-change"]="",jt&&!zt&&q(yt,Mt?Mt.options.ghostClass:this.options.ghostClass,!1),q(yt,this.options.chosenClass,!1),bt({sortable:this,name:"unchoose",toEl:wt,newIndex:null,newDraggableIndex:null,originalEvent:t}),St!==wt?(xt>=0&&(bt({rootEl:wt,name:"add",toEl:wt,fromEl:St,originalEvent:t}),bt({sortable:this,name:"remove",toEl:wt,originalEvent:t}),bt({rootEl:wt,name:"sort",toEl:wt,fromEl:St,originalEvent:t}),bt({sortable:this,name:"sort",toEl:wt,originalEvent:t})),Mt&&Mt.save()):xt!==Ot&&xt>=0&&(bt({sortable:this,name:"update",toEl:wt,originalEvent:t}),bt({sortable:this,name:"sort",toEl:wt,originalEvent:t})),ce.active&&((null==xt||-1===xt)&&(xt=Ot,It=At),bt({sortable:this,name:"end",toEl:wt,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){mt("nulling",this),St=yt=wt=Et=Dt=Tt=_t=Ct=Pt=kt=jt=xt=It=Ot=At=Ft=Ht=Mt=Nt=ce.dragged=ce.ghost=ce.clone=ce.active=null,Zt.forEach((function(t){t.checked=!0})),Zt.length=Xt=Yt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":yt&&(this._onDragOver(t),(e=t).dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault());break;case"selectstart":t.preventDefault()}var e},toArray:function(){for(var t,e=[],n=this.el.children,o=0,r=n.length,i=this.options;o{if(t&&(null==i?void 0:i.length)!==r.childNodes.length)return o.insertBefore(t,e.nextSibling),!0;const a=r.childNodes[n];t=null==r?void 0:r.replaceChild(e,a)}))}}catch(s){a=s}finally{i=null}u((()=>{if(Pe(),a)throw a}))}};function A(t){const e=o(a);return t||(t=function(t){return"string"==typeof t}(e)?function(t,e=document){var n;let o=null;return o="function"==typeof(null==e?void 0:e.querySelector)?null==(n=null==e?void 0:e.querySelector)?void 0:n.call(e,t):document.querySelector(t),o}(e,null==r?void 0:r.$el):e),t&&!function(t){return t instanceof HTMLElement}(t)&&(t=t.$el),t}function I(){var t;const e=null!=(t=o(p))?t:{},{immediate:n,clone:r}=e,i=y(e,["immediate","clone"]);return T(i,((t,e)=>{(function(t){return 111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97)})(t)&&(i[t]=(t,...n)=>(C(t,{data:Ne,clonedData:Me}),e(t,...n)))})),function(t,e){const n=b({},t);return Object.keys(e).forEach((o=>{n[o]?n[o]=function(t,e,n=null){return function(...o){return t.apply(n,o),e.apply(n,o)}}(t[o],e[o]):n[o]=e[o]})),n}(null===f?{}:x,i)}const N=t=>{t=A(t),g&&M.destroy(),g=new ce(t,I())};s((()=>p),(()=>{g&&T(I(),((t,e)=>{null==g||g.option(t,e)}))}),{deep:!0});const M={option:(t,e)=>null==g?void 0:g.option(t,e),destroy:()=>{null==g||g.destroy(),g=null},save:()=>null==g?void 0:g.save(),toArray:()=>null==g?void 0:g.toArray(),closest:(...t)=>null==g?void 0:g.closest(...t)};return function(t){l()?c(t):u(t)}((()=>{v&&N()})),function(t){l()&&d(t)}(M.destroy),b({start:N,pause:()=>null==M?void 0:M.option("disabled",!0),resume:()=>null==M?void 0:M.option("disabled",!1)},M)}const Ye=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],Re=t({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:["clone","animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...Ye.map((t=>`on${t.replace(/^\S/,(t=>t.toUpperCase()))}`))],emits:["update:modelValue",...Ye],setup(t,{slots:l,emit:s,expose:c,attrs:u}){const d=Ye.reduce(((t,e)=>(t[`on${e.replace(/^\S/,(t=>t.toUpperCase()))}`]=(...t)=>s(e,...t),t)),{}),h=e((()=>{const e=n(t),{modelValue:r}=e,i=y(e,["modelValue"]),a=Object.entries(i).reduce(((t,[e,n])=>{const r=o(n);return void 0!==r&&(t[e]=r),t}),{});return b(b({},d),function(t){return Object.keys(t).reduce(((e,n)=>(void 0!==t[n]&&(e[function(t){return t.replace(/-(\w)/g,((t,e)=>e?e.toUpperCase():""))}(n)]=t[n]),e)),{})}(b(b({},u),a)))})),f=e({get:()=>t.modelValue,set:t=>s("update:modelValue",t)}),p=r(),g=i(Xe(t.target||p,f,h));return c(g),()=>{var e;return a(t.tag||"div",{ref:p},null==(e=null==l?void 0:l.default)?void 0:e.call(l,g))}}});export{Re as l};