| 123456 |
- import{cQ as tn,fL as en,dN as nn,fM as on,dp as de,gN as V,gZ as rn,fr as an,fa as Pe,fs as ln,c9 as ge,gD as sn,ez as qt}from"./builder-DygomDiV.js";const eo="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1744092984968'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1250'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M384%20768a64%2064%200%201%200%200%20128%2064%2064%200%200%200%200-128z%20m0-320a64%2064%200%201%200%200%20128%2064%2064%200%200%200%200-128z%20m0-320a64%2064%200%201%200%200%20128%2064%2064%200%200%200%200-128z%20m256%20640a64%2064%200%201%200%200%20128%2064%2064%200%200%200%200-128z%20m0-320a64%2064%200%201%200%200%20128%2064%2064%200%200%200%200-128z%20m0-320a64%2064%200%201%200%200%20128%2064%2064%200%200%200%200-128z'%20p-id='1251'%3e%3c/path%3e%3c/svg%3e";var un=Object.defineProperty,Ht=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,ve=(t,n,e)=>n in t?un(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,bt=(t,n)=>{for(var e in n||(n={}))ke.call(n,e)&&ve(t,e,n[e]);if(Ht)for(var e of Ht(n))Re.call(n,e)&&ve(t,e,n[e]);return t},Ye=(t,n)=>{var e={};for(var o in t)ke.call(t,o)&&n.indexOf(o)<0&&(e[o]=t[o]);if(t!=null&&Ht)for(var o of Ht(t))n.indexOf(o)<0&&Re.call(t,o)&&(e[o]=t[o]);return e};const Xe="[vue-draggable-plus]: ";function cn(t){console.warn(Xe+t)}function dn(t){console.error(Xe+t)}function me(t,n,e){return e>=0&&e<t.length&&t.splice(e,0,t.splice(n,1)[0]),t}function fn(t){return t.replace(/-(\w)/g,(n,e)=>e?e.toUpperCase():"")}function hn(t){return Object.keys(t).reduce((n,e)=>(typeof t[e]<"u"&&(n[fn(e)]=t[e]),n),{})}function be(t,n){return Array.isArray(t)&&t.splice(n,1),t}function ye(t,n,e){return Array.isArray(t)&&t.splice(n,0,e),t}function pn(t){return typeof t>"u"}function gn(t){return typeof t=="string"}function we(t,n,e){const o=t.children[e];t.insertBefore(n,o)}function Zt(t){t.parentNode&&t.parentNode.removeChild(t)}function vn(t,n=document){var e;let o=null;return typeof n?.querySelector=="function"?o=(e=n?.querySelector)==null?void 0:e.call(n,t):o=document.querySelector(t),o||cn(`Element not found: ${t}`),o}function mn(t,n,e=null){return function(...o){return t.apply(e,o),n.apply(e,o)}}function bn(t,n){const e=bt({},t);return Object.keys(n).forEach(o=>{e[o]?e[o]=mn(t[o],n[o]):e[o]=n[o]}),e}function yn(t){return t instanceof HTMLElement}function Ee(t,n){Object.keys(t).forEach(e=>{n(e,t[e])})}function wn(t){return t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97)}const En=Object.assign;/**!
- * Sortable 1.15.2
- * @author RubaXa <trash@rubaxa.org>
- * @author owenm <owen23355@gmail.com>
- * @license MIT
- */function Se(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,o)}return e}function et(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?Se(Object(e),!0).forEach(function(o){Sn(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Se(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function Yt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yt=function(n){return typeof n}:Yt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Yt(t)}function Sn(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function rt(){return rt=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},rt.apply(this,arguments)}function Dn(t,n){if(t==null)return{};var e={},o=Object.keys(t),r,i;for(i=0;i<o.length;i++)r=o[i],!(n.indexOf(r)>=0)&&(e[r]=t[r]);return e}function _n(t,n){if(t==null)return{};var e=Dn(t,n),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)o=i[r],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(e[o]=t[o])}return e}var Tn="1.15.2";function ot(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var it=ot(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Nt=ot(/Edge/i),De=ot(/firefox/i),Tt=ot(/safari/i)&&!ot(/chrome/i)&&!ot(/android/i),Fe=ot(/iP(ad|od|hone)/i),je=ot(/chrome/i)&&ot(/android/i),Be={capture:!1,passive:!1};function w(t,n,e){t.addEventListener(n,e,!it&&Be)}function b(t,n,e){t.removeEventListener(n,e,!it&&Be)}function Lt(t,n){if(n){if(n[0]===">"&&(n=n.substring(1)),t)try{if(t.matches)return t.matches(n);if(t.msMatchesSelector)return t.msMatchesSelector(n);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(n)}catch{return!1}return!1}}function Cn(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Q(t,n,e,o){if(t){e=e||document;do{if(n!=null&&(n[0]===">"?t.parentNode===e&&Lt(t,n):Lt(t,n))||o&&t===e)return t;if(t===e)break}while(t=Cn(t))}return null}var _e=/\s+/g;function U(t,n,e){if(t&&n)if(t.classList)t.classList[e?"add":"remove"](n);else{var o=(" "+t.className+" ").replace(_e," ").replace(" "+n+" "," ");t.className=(o+(e?" "+n:"")).replace(_e," ")}}function p(t,n,e){var o=t&&t.style;if(o){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(e=t.currentStyle),n===void 0?e:e[n];!(n in o)&&n.indexOf("webkit")===-1&&(n="-webkit-"+n),o[n]=e+(typeof e=="string"?"":"px")}}function wt(t,n){var e="";if(typeof t=="string")e=t;else do{var o=p(t,"transform");o&&o!=="none"&&(e=o+" "+e)}while(!n&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(e)}function He(t,n,e){if(t){var o=t.getElementsByTagName(n),r=0,i=o.length;if(e)for(;r<i;r++)e(o[r],r);return o}return[]}function tt(){var t=document.scrollingElement;return t||document.documentElement}function M(t,n,e,o,r){if(!(!t.getBoundingClientRect&&t!==window)){var i,a,s,l,d,c,f;if(t!==window&&t.parentNode&&t!==tt()?(i=t.getBoundingClientRect(),a=i.top,s=i.left,l=i.bottom,d=i.right,c=i.height,f=i.width):(a=0,s=0,l=window.innerHeight,d=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(n||e)&&t!==window&&(r=r||t.parentNode,!it))do if(r&&r.getBoundingClientRect&&(p(r,"transform")!=="none"||e&&p(r,"position")!=="static")){var E=r.getBoundingClientRect();a-=E.top+parseInt(p(r,"border-top-width")),s-=E.left+parseInt(p(r,"border-left-width")),l=a+i.height,d=s+i.width;break}while(r=r.parentNode);if(o&&t!==window){var h=wt(r||t),_=h&&h.a,y=h&&h.d;h&&(a/=y,s/=_,f/=_,c/=y,l=a+c,d=s+f)}return{top:a,left:s,bottom:l,right:d,width:f,height:c}}}function Te(t,n,e){for(var o=ut(t,!0),r=M(t)[n];o;){var i=M(o)[e],a=void 0;if(a=r>=i,!a)return o;if(o===tt())break;o=ut(o,!1)}return!1}function Et(t,n,e,o){for(var r=0,i=0,a=t.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==g.ghost&&(o||a[i]!==g.dragged)&&Q(a[i],e.draggable,t,!1)){if(r===n)return a[i];r++}i++}return null}function fe(t,n){for(var e=t.lastElementChild;e&&(e===g.ghost||p(e,"display")==="none"||n&&!Lt(e,n));)e=e.previousElementSibling;return e||null}function q(t,n){var e=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==g.clone&&(!n||Lt(t,n))&&e++;return e}function Ce(t){var n=0,e=0,o=tt();if(t)do{var r=wt(t),i=r.a,a=r.d;n+=t.scrollLeft*i,e+=t.scrollTop*a}while(t!==o&&(t=t.parentNode));return[n,e]}function xn(t,n){for(var e in t)if(t.hasOwnProperty(e)){for(var o in n)if(n.hasOwnProperty(o)&&n[o]===t[e][o])return Number(e)}return-1}function ut(t,n){if(!t||!t.getBoundingClientRect)return tt();var e=t,o=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var r=p(e);if(e.clientWidth<e.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return tt();if(o||n)return e;o=!0}}while(e=e.parentNode);return tt()}function On(t,n){if(t&&n)for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function Jt(t,n){return Math.round(t.top)===Math.round(n.top)&&Math.round(t.left)===Math.round(n.left)&&Math.round(t.height)===Math.round(n.height)&&Math.round(t.width)===Math.round(n.width)}var Ct;function Le(t,n){return function(){if(!Ct){var e=arguments,o=this;e.length===1?t.call(o,e[0]):t.apply(o,e),Ct=setTimeout(function(){Ct=void 0},n)}}}function An(){clearTimeout(Ct),Ct=void 0}function ze(t,n,e){t.scrollLeft+=n,t.scrollTop+=e}function We(t){var n=window.Polymer,e=window.jQuery||window.Zepto;return n&&n.dom?n.dom(t).cloneNode(!0):e?e(t).clone(!0)[0]:t.cloneNode(!0)}function Ve(t,n,e){var o={};return Array.from(t.children).forEach(function(r){var i,a,s,l;if(!(!Q(r,n.draggable,t,!1)||r.animated||r===e)){var d=M(r);o.left=Math.min((i=o.left)!==null&&i!==void 0?i:1/0,d.left),o.top=Math.min((a=o.top)!==null&&a!==void 0?a:1/0,d.top),o.right=Math.max((s=o.right)!==null&&s!==void 0?s:-1/0,d.right),o.bottom=Math.max((l=o.bottom)!==null&&l!==void 0?l:-1/0,d.bottom)}}),o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}var $="Sortable"+new Date().getTime();function Nn(){var t=[],n;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var e=[].slice.call(this.el.children);e.forEach(function(o){if(!(p(o,"display")==="none"||o===g.ghost)){t.push({target:o,rect:M(o)});var r=et({},t[t.length-1].rect);if(o.thisAnimationDuration){var i=wt(o,!0);i&&(r.top-=i.f,r.left-=i.e)}o.fromRect=r}})}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(xn(t,{target:e}),1)},animateAll:function(e){var o=this;if(!this.options.animation){clearTimeout(n),typeof e=="function"&&e();return}var r=!1,i=0;t.forEach(function(a){var s=0,l=a.target,d=l.fromRect,c=M(l),f=l.prevFromRect,E=l.prevToRect,h=a.rect,_=wt(l,!0);_&&(c.top-=_.f,c.left-=_.e),l.toRect=c,l.thisAnimationDuration&&Jt(f,c)&&!Jt(d,c)&&(h.top-c.top)/(h.left-c.left)===(d.top-c.top)/(d.left-c.left)&&(s=Mn(h,f,E,o.options)),Jt(c,d)||(l.prevFromRect=d,l.prevToRect=c,s||(s=o.options.animation),o.animate(l,h,c,s)),s&&(r=!0,i=Math.max(i,s),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},s),l.thisAnimationDuration=s)}),clearTimeout(n),r?n=setTimeout(function(){typeof e=="function"&&e()},i):typeof e=="function"&&e(),t=[]},animate:function(e,o,r,i){if(i){p(e,"transition",""),p(e,"transform","");var a=wt(this.el),s=a&&a.a,l=a&&a.d,d=(o.left-r.left)/(s||1),c=(o.top-r.top)/(l||1);e.animatingX=!!d,e.animatingY=!!c,p(e,"transform","translate3d("+d+"px,"+c+"px,0)"),this.forRepaintDummy=In(e),p(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),p(e,"transform","translate3d(0,0,0)"),typeof e.animated=="number"&&clearTimeout(e.animated),e.animated=setTimeout(function(){p(e,"transition",""),p(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},i)}}}}function In(t){return t.offsetWidth}function Mn(t,n,e,o){return Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))/Math.sqrt(Math.pow(n.top-e.top,2)+Math.pow(n.left-e.left,2))*o.animation}var gt=[],Qt={initializeByDefault:!0},It={mount:function(t){for(var n in Qt)Qt.hasOwnProperty(n)&&!(n in t)&&(t[n]=Qt[n]);gt.forEach(function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),gt.push(t)},pluginEvent:function(t,n,e){var o=this;this.eventCanceled=!1,e.cancel=function(){o.eventCanceled=!0};var r=t+"Global";gt.forEach(function(i){n[i.pluginName]&&(n[i.pluginName][r]&&n[i.pluginName][r](et({sortable:n},e)),n.options[i.pluginName]&&n[i.pluginName][t]&&n[i.pluginName][t](et({sortable:n},e)))})},initializePlugins:function(t,n,e,o){gt.forEach(function(a){var s=a.pluginName;if(!(!t.options[s]&&!a.initializeByDefault)){var l=new a(t,n,t.options);l.sortable=t,l.options=t.options,t[s]=l,rt(e,l.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var i=this.modifyOption(t,r,t.options[r]);typeof i<"u"&&(t.options[r]=i)}},getEventProperties:function(t,n){var e={};return gt.forEach(function(o){typeof o.eventProperties=="function"&&rt(e,o.eventProperties.call(n[o.pluginName],t))}),e},modifyOption:function(t,n,e){var o;return gt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[n]=="function"&&(o=r.optionListeners[n].call(t[r.pluginName],e))}),o}};function Pn(t){var n=t.sortable,e=t.rootEl,o=t.name,r=t.targetEl,i=t.cloneEl,a=t.toEl,s=t.fromEl,l=t.oldIndex,d=t.newIndex,c=t.oldDraggableIndex,f=t.newDraggableIndex,E=t.originalEvent,h=t.putSortable,_=t.extraEventProperties;if(n=n||e&&e[$],!!n){var y,L=n.options,N="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!it&&!Nt?y=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(o,!0,!0)),y.to=a||e,y.from=s||e,y.item=r||e,y.clone=i,y.oldIndex=l,y.newIndex=d,y.oldDraggableIndex=c,y.newDraggableIndex=f,y.originalEvent=E,y.pullMode=h?h.lastPutMode:void 0;var Z=et(et({},_),It.getEventProperties(o,n));for(var k in Z)y[k]=Z[k];e&&e.dispatchEvent(y),L[N]&&L[N].call(n,y)}}var kn=["evt"],H=function(t,n){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=e.evt,r=_n(e,kn);It.pluginEvent.bind(g)(t,n,et({dragEl:u,parentEl:O,ghostEl:m,rootEl:T,nextEl:ft,lastDownEl:Xt,cloneEl:x,cloneHidden:st,dragStarted:St,putSortable:Y,activeSortable:g.active,originalEvent:o,oldIndex:yt,oldDraggableIndex:xt,newIndex:G,newDraggableIndex:lt,hideGhostForTarget:qe,unhideGhostForTarget:Ze,cloneNowHidden:function(){st=!0},cloneNowShown:function(){st=!1},dispatchSortableEvent:function(i){B({sortable:n,name:i,originalEvent:o})}},r))};function B(t){Pn(et({putSortable:Y,cloneEl:x,targetEl:u,rootEl:T,oldIndex:yt,oldDraggableIndex:xt,newIndex:G,newDraggableIndex:lt},t))}var u,O,m,T,ft,Xt,x,st,yt,G,xt,lt,Mt,Y,mt=!1,zt=!1,Wt=[],ct,J,Kt,te,xe,Oe,St,vt,Ot,At=!1,Pt=!1,Ft,F,ee=[],ae=!1,Vt=[],Gt=typeof document<"u",kt=Fe,Ae=Nt||it?"cssFloat":"float",Rn=Gt&&!je&&!Fe&&"draggable"in document.createElement("div"),Ue=(function(){if(Gt){if(it)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}})(),Ge=function(t,n){var e=p(t),o=parseInt(e.width)-parseInt(e.paddingLeft)-parseInt(e.paddingRight)-parseInt(e.borderLeftWidth)-parseInt(e.borderRightWidth),r=Et(t,0,n),i=Et(t,1,n),a=r&&p(r),s=i&&p(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+M(r).width,d=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+M(i).width;if(e.display==="flex")return e.flexDirection==="column"||e.flexDirection==="column-reverse"?"vertical":"horizontal";if(e.display==="grid")return e.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var c=a.float==="left"?"left":"right";return i&&(s.clear==="both"||s.clear===c)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=o&&e[Ae]==="none"||i&&e[Ae]==="none"&&l+d>o)?"vertical":"horizontal"},Yn=function(t,n,e){var o=e?t.left:t.top,r=e?t.right:t.bottom,i=e?t.width:t.height,a=e?n.left:n.top,s=e?n.right:n.bottom,l=e?n.width:n.height;return o===a||r===s||o+i/2===a+l/2},Xn=function(t,n){var e;return Wt.some(function(o){var r=o[$].options.emptyInsertThreshold;if(!(!r||fe(o))){var i=M(o),a=t>=i.left-r&&t<=i.right+r,s=n>=i.top-r&&n<=i.bottom+r;if(a&&s)return e=o}}),e},$e=function(t){function n(r,i){return function(a,s,l,d){var c=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(r==null&&(i||c))return!0;if(r==null||r===!1)return!1;if(i&&r==="clone")return r;if(typeof r=="function")return n(r(a,s,l,d),i)(a,s,l,d);var f=(i?a:s).options.group.name;return r===!0||typeof r=="string"&&r===f||r.join&&r.indexOf(f)>-1}}var e={},o=t.group;(!o||Yt(o)!="object")&&(o={name:o}),e.name=o.name,e.checkPull=n(o.pull,!0),e.checkPut=n(o.put),e.revertClone=o.revertClone,t.group=e},qe=function(){!Ue&&m&&p(m,"display","none")},Ze=function(){!Ue&&m&&p(m,"display","")};Gt&&!je&&document.addEventListener("click",function(t){if(zt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),zt=!1,!1},!0);var dt=function(t){if(u){t=t.touches?t.touches[0]:t;var n=Xn(t.clientX,t.clientY);if(n){var e={};for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);e.target=e.rootEl=n,e.preventDefault=void 0,e.stopPropagation=void 0,n[$]._onDragOver(e)}}},Fn=function(t){u&&u.parentNode[$]._isOutsideThisEl(t.target)};function g(t,n){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=n=rt({},n),t[$]=this;var e={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 Ge(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(i,a){i.setData("Text",a.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:g.supportPointer!==!1&&"PointerEvent"in window&&!Tt,emptyInsertThreshold:5};It.initializePlugins(this,t,e);for(var o in e)!(o in n)&&(n[o]=e[o]);$e(n);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=n.forceFallback?!1:Rn,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?w(t,"pointerdown",this._onTapStart):(w(t,"mousedown",this._onTapStart),w(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(w(t,"dragover",this),w(t,"dragenter",this)),Wt.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),rt(this,Nn())}g.prototype={constructor:g,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(vt=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,u):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,e=this.el,o=this.options,r=o.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,d=o.filter;if(Un(e),!u&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||o.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Tt&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=Q(s,o.draggable,e,!1),!(s&&s.animated)&&Xt!==s)){if(yt=q(s),xt=q(s,o.draggable),typeof d=="function"){if(d.call(this,t,s,this)){B({sortable:n,rootEl:l,name:"filter",targetEl:s,toEl:e,fromEl:e}),H("filter",n,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(d&&(d=d.split(",").some(function(c){if(c=Q(l,c.trim(),e,!1),c)return B({sortable:n,rootEl:c,name:"filter",targetEl:s,fromEl:e,toEl:e}),H("filter",n,{evt:t}),!0}),d)){r&&t.cancelable&&t.preventDefault();return}o.handle&&!Q(l,o.handle,e,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,n,e){var o=this,r=o.el,i=o.options,a=r.ownerDocument,s;if(e&&!u&&e.parentNode===r){var l=M(e);if(T=r,u=e,O=u.parentNode,ft=u.nextSibling,Xt=e,Mt=i.group,g.dragged=u,ct={target:u,clientX:(n||t).clientX,clientY:(n||t).clientY},xe=ct.clientX-l.left,Oe=ct.clientY-l.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,u.style["will-change"]="all",s=function(){if(H("delayEnded",o,{evt:t}),g.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!De&&o.nativeDraggable&&(u.draggable=!0),o._triggerDragStart(t,n),B({sortable:o,name:"choose",originalEvent:t}),U(u,i.chosenClass,!0)},i.ignore.split(",").forEach(function(d){He(u,d.trim(),ne)}),w(a,"dragover",dt),w(a,"mousemove",dt),w(a,"touchmove",dt),w(a,"mouseup",o._onDrop),w(a,"touchend",o._onDrop),w(a,"touchcancel",o._onDrop),De&&this.nativeDraggable&&(this.options.touchStartThreshold=4,u.draggable=!0),H("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Nt||it))){if(g.eventCanceled){this._onDrop();return}w(a,"mouseup",o._disableDelayedDrag),w(a,"touchend",o._disableDelayedDrag),w(a,"touchcancel",o._disableDelayedDrag),w(a,"mousemove",o._delayedDragTouchMoveHandler),w(a,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&w(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(s,i.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){u&&ne(u),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._disableDelayedDrag),b(t,"touchend",this._disableDelayedDrag),b(t,"touchcancel",this._disableDelayedDrag),b(t,"mousemove",this._delayedDragTouchMoveHandler),b(t,"touchmove",this._delayedDragTouchMoveHandler),b(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?w(document,"pointermove",this._onTouchMove):n?w(document,"touchmove",this._onTouchMove):w(document,"mousemove",this._onTouchMove):(w(u,"dragend",this),w(T,"dragstart",this._onDragStart));try{document.selection?jt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(mt=!1,T&&u){H("dragStarted",this,{evt:n}),this.nativeDraggable&&w(document,"dragover",Fn);var e=this.options;!t&&U(u,e.dragClass,!1),U(u,e.ghostClass,!0),g.active=this,t&&this._appendGhost(),B({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(J){this._lastX=J.clientX,this._lastY=J.clientY,qe();for(var t=document.elementFromPoint(J.clientX,J.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(J.clientX,J.clientY),t!==n);)n=t;if(u.parentNode[$]._isOutsideThisEl(t),n)do{if(n[$]){var e=void 0;if(e=n[$]._onDragOver({clientX:J.clientX,clientY:J.clientY,target:t,rootEl:n}),e&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Ze()}},_onTouchMove:function(t){if(ct){var n=this.options,e=n.fallbackTolerance,o=n.fallbackOffset,r=t.touches?t.touches[0]:t,i=m&&wt(m,!0),a=m&&i&&i.a,s=m&&i&&i.d,l=kt&&F&&Ce(F),d=(r.clientX-ct.clientX+o.x)/(a||1)+(l?l[0]-ee[0]:0)/(a||1),c=(r.clientY-ct.clientY+o.y)/(s||1)+(l?l[1]-ee[1]:0)/(s||1);if(!g.active&&!mt){if(e&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<e)return;this._onDragStart(t,!0)}if(m){i?(i.e+=d-(Kt||0),i.f+=c-(te||0)):i={a:1,b:0,c:0,d:1,e:d,f:c};var f="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");p(m,"webkitTransform",f),p(m,"mozTransform",f),p(m,"msTransform",f),p(m,"transform",f),Kt=d,te=c,J=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!m){var t=this.options.fallbackOnBody?document.body:T,n=M(u,!0,kt,!0,t),e=this.options;if(kt){for(F=t;p(F,"position")==="static"&&p(F,"transform")==="none"&&F!==document;)F=F.parentNode;F!==document.body&&F!==document.documentElement?(F===document&&(F=tt()),n.top+=F.scrollTop,n.left+=F.scrollLeft):F=tt(),ee=Ce(F)}m=u.cloneNode(!0),U(m,e.ghostClass,!1),U(m,e.fallbackClass,!0),U(m,e.dragClass,!0),p(m,"transition",""),p(m,"transform",""),p(m,"box-sizing","border-box"),p(m,"margin",0),p(m,"top",n.top),p(m,"left",n.left),p(m,"width",n.width),p(m,"height",n.height),p(m,"opacity","0.8"),p(m,"position",kt?"absolute":"fixed"),p(m,"zIndex","100000"),p(m,"pointerEvents","none"),g.ghost=m,t.appendChild(m),p(m,"transform-origin",xe/parseInt(m.style.width)*100+"% "+Oe/parseInt(m.style.height)*100+"%")}},_onDragStart:function(t,n){var e=this,o=t.dataTransfer,r=e.options;if(H("dragStart",this,{evt:t}),g.eventCanceled){this._onDrop();return}H("setupClone",this),g.eventCanceled||(x=We(u),x.removeAttribute("id"),x.draggable=!1,x.style["will-change"]="",this._hideClone(),U(x,this.options.chosenClass,!1),g.clone=x),e.cloneId=jt(function(){H("clone",e),!g.eventCanceled&&(e.options.removeCloneOnHide||T.insertBefore(x,u),e._hideClone(),B({sortable:e,name:"clone"}))}),!n&&U(u,r.dragClass,!0),n?(zt=!0,e._loopId=setInterval(e._emulateDragOver,50)):(b(document,"mouseup",e._onDrop),b(document,"touchend",e._onDrop),b(document,"touchcancel",e._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(e,o,u)),w(document,"drop",e),p(u,"transform","translateZ(0)")),mt=!0,e._dragStartId=jt(e._dragStarted.bind(e,n,t)),w(document,"selectstart",e),St=!0,Tt&&p(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,e=t.target,o,r,i,a=this.options,s=a.group,l=g.active,d=Mt===s,c=a.sort,f=Y||l,E,h=this,_=!1;if(ae)return;function y(P,ht){H(P,h,et({evt:t,isOwner:d,axis:E?"vertical":"horizontal",revert:i,dragRect:o,targetRect:r,canSort:c,fromSortable:f,target:e,completed:N,onMove:function(pt,$t){return Rt(T,n,u,o,pt,M(pt),t,$t)},changed:Z},ht))}function L(){y("dragOverAnimationCapture"),h.captureAnimationState(),h!==f&&f.captureAnimationState()}function N(P){return y("dragOverCompleted",{insertion:P}),P&&(d?l._hideClone():l._showClone(h),h!==f&&(U(u,Y?Y.options.ghostClass:l.options.ghostClass,!1),U(u,a.ghostClass,!0)),Y!==h&&h!==g.active?Y=h:h===g.active&&Y&&(Y=null),f===h&&(h._ignoreWhileAnimating=e),h.animateAll(function(){y("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(e===u&&!u.animated||e===n&&!e.animated)&&(vt=null),!a.dragoverBubble&&!t.rootEl&&e!==document&&(u.parentNode[$]._isOutsideThisEl(t.target),!P&&dt(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),_=!0}function Z(){G=q(u),lt=q(u,a.draggable),B({sortable:h,name:"change",toEl:n,newIndex:G,newDraggableIndex:lt,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),e=Q(e,a.draggable,n,!0),y("dragOver"),g.eventCanceled)return _;if(u.contains(t.target)||e.animated&&e.animatingX&&e.animatingY||h._ignoreWhileAnimating===e)return N(!1);if(zt=!1,l&&!a.disabled&&(d?c||(i=O!==T):Y===this||(this.lastPutMode=Mt.checkPull(this,l,u,t))&&s.checkPut(this,l,u,t))){if(E=this._getDirection(t,e)==="vertical",o=M(u),y("dragOverValid"),g.eventCanceled)return _;if(i)return O=T,L(),this._hideClone(),y("revert"),g.eventCanceled||(ft?T.insertBefore(u,ft):T.appendChild(u)),N(!0);var k=fe(n,a.draggable);if(!k||Ln(t,E,this)&&!k.animated){if(k===u)return N(!1);if(k&&n===t.target&&(e=k),e&&(r=M(e)),Rt(T,n,u,o,e,r,t,!!e)!==!1)return L(),k&&k.nextSibling?n.insertBefore(u,k.nextSibling):n.appendChild(u),O=n,Z(),N(!0)}else if(k&&Hn(t,E,this)){var nt=Et(n,0,a,!0);if(nt===u)return N(!1);if(e=nt,r=M(e),Rt(T,n,u,o,e,r,t,!1)!==!1)return L(),n.insertBefore(u,nt),O=n,Z(),N(!0)}else if(e.parentNode===n){r=M(e);var z=0,K,W=u.parentNode!==n,at=!Yn(u.animated&&u.toRect||o,e.animated&&e.toRect||r,E),j=E?"top":"left",v=Te(e,"top","top")||Te(u,"top","top"),S=v?v.scrollTop:void 0;vt!==e&&(K=r[j],At=!1,Pt=!at&&a.invertSwap||W),z=zn(t,e,r,E,at?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Pt,vt===e);var A;if(z!==0){var X=q(u);do X-=z,A=O.children[X];while(A&&(p(A,"display")==="none"||A===m))}if(z===0||A===e)return N(!1);vt=e,Ot=z;var D=e.nextElementSibling,C=!1;C=z===1;var R=Rt(T,n,u,o,e,r,t,C);if(R!==!1)return(R===1||R===-1)&&(C=R===1),ae=!0,setTimeout(Bn,30),L(),C&&!D?n.appendChild(u):e.parentNode.insertBefore(u,C?D:e),v&&ze(v,0,S-v.scrollTop),O=u.parentNode,K!==void 0&&!Pt&&(Ft=Math.abs(K-M(e)[j])),Z(),N(!0)}if(n.contains(u))return N(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",dt),b(document,"mousemove",dt),b(document,"touchmove",dt)},_offUpEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._onDrop),b(t,"touchend",this._onDrop),b(t,"pointerup",this._onDrop),b(t,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(t){var n=this.el,e=this.options;if(G=q(u),lt=q(u,e.draggable),H("drop",this,{evt:t}),O=u&&u.parentNode,G=q(u),lt=q(u,e.draggable),g.eventCanceled){this._nulling();return}mt=!1,Pt=!1,At=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),le(this.cloneId),le(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Tt&&p(document.body,"user-select",""),p(u,"transform",""),t&&(St&&(t.cancelable&&t.preventDefault(),!e.dropBubble&&t.stopPropagation()),m&&m.parentNode&&m.parentNode.removeChild(m),(T===O||Y&&Y.lastPutMode!=="clone")&&x&&x.parentNode&&x.parentNode.removeChild(x),u&&(this.nativeDraggable&&b(u,"dragend",this),ne(u),u.style["will-change"]="",St&&!mt&&U(u,Y?Y.options.ghostClass:this.options.ghostClass,!1),U(u,this.options.chosenClass,!1),B({sortable:this,name:"unchoose",toEl:O,newIndex:null,newDraggableIndex:null,originalEvent:t}),T!==O?(G>=0&&(B({rootEl:O,name:"add",toEl:O,fromEl:T,originalEvent:t}),B({sortable:this,name:"remove",toEl:O,originalEvent:t}),B({rootEl:O,name:"sort",toEl:O,fromEl:T,originalEvent:t}),B({sortable:this,name:"sort",toEl:O,originalEvent:t})),Y&&Y.save()):G!==yt&&G>=0&&(B({sortable:this,name:"update",toEl:O,originalEvent:t}),B({sortable:this,name:"sort",toEl:O,originalEvent:t})),g.active&&((G==null||G===-1)&&(G=yt,lt=xt),B({sortable:this,name:"end",toEl:O,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){H("nulling",this),T=u=O=m=ft=x=Xt=st=ct=J=St=G=lt=yt=xt=vt=Ot=Y=Mt=g.dragged=g.ghost=g.clone=g.active=null,Vt.forEach(function(t){t.checked=!0}),Vt.length=Kt=te=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":u&&(this._onDragOver(t),jn(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,e=this.el.children,o=0,r=e.length,i=this.options;o<r;o++)n=e[o],Q(n,i.draggable,this.el,!1)&&t.push(n.getAttribute(i.dataIdAttr)||Vn(n));return t},sort:function(t,n){var e={},o=this.el;this.toArray().forEach(function(r,i){var a=o.children[i];Q(a,this.options.draggable,o,!1)&&(e[r]=a)},this),n&&this.captureAnimationState(),t.forEach(function(r){e[r]&&(o.removeChild(e[r]),o.appendChild(e[r]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return Q(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var e=this.options;if(n===void 0)return e[t];var o=It.modifyOption(this,t,n);typeof o<"u"?e[t]=o:e[t]=n,t==="group"&&$e(e)},destroy:function(){H("destroy",this);var t=this.el;t[$]=null,b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart),b(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Wt.splice(Wt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!st){if(H("hideClone",this),g.eventCanceled)return;p(x,"display","none"),this.options.removeCloneOnHide&&x.parentNode&&x.parentNode.removeChild(x),st=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(st){if(H("showClone",this),g.eventCanceled)return;u.parentNode==T&&!this.options.group.revertClone?T.insertBefore(x,u):ft?T.insertBefore(x,ft):T.appendChild(x),this.options.group.revertClone&&this.animate(u,x),p(x,"display",""),st=!1}}};function jn(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Rt(t,n,e,o,r,i,a,s){var l,d=t[$],c=d.options.onMove,f;return window.CustomEvent&&!it&&!Nt?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=n,l.from=t,l.dragged=e,l.draggedRect=o,l.related=r||n,l.relatedRect=i||M(n),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),c&&(f=c.call(d,l,a)),f}function ne(t){t.draggable=!1}function Bn(){ae=!1}function Hn(t,n,e){var o=M(Et(e.el,0,e.options,!0)),r=Ve(e.el,e.options,m),i=10;return n?t.clientX<r.left-i||t.clientY<o.top&&t.clientX<o.right:t.clientY<r.top-i||t.clientY<o.bottom&&t.clientX<o.left}function Ln(t,n,e){var o=M(fe(e.el,e.options.draggable)),r=Ve(e.el,e.options,m),i=10;return n?t.clientX>r.right+i||t.clientY>o.bottom&&t.clientX>o.left:t.clientY>r.bottom+i||t.clientX>o.right&&t.clientY>o.top}function zn(t,n,e,o,r,i,a,s){var l=o?t.clientY:t.clientX,d=o?e.height:e.width,c=o?e.top:e.left,f=o?e.bottom:e.right,E=!1;if(!a){if(s&&Ft<d*r){if(!At&&(Ot===1?l>c+d*i/2:l<f-d*i/2)&&(At=!0),At)E=!0;else if(Ot===1?l<c+Ft:l>f-Ft)return-Ot}else if(l>c+d*(1-r)/2&&l<f-d*(1-r)/2)return Wn(n)}return E=E||a,E&&(l<c+d*i/2||l>f-d*i/2)?l>c+d/2?1:-1:0}function Wn(t){return q(u)<q(t)?1:-1}function Vn(t){for(var n=t.tagName+t.className+t.src+t.href+t.textContent,e=n.length,o=0;e--;)o+=n.charCodeAt(e);return o.toString(36)}function Un(t){Vt.length=0;for(var n=t.getElementsByTagName("input"),e=n.length;e--;){var o=n[e];o.checked&&Vt.push(o)}}function jt(t){return setTimeout(t,0)}function le(t){return clearTimeout(t)}Gt&&w(document,"touchmove",function(t){(g.active||mt)&&t.cancelable&&t.preventDefault()});g.utils={on:w,off:b,css:p,find:He,is:function(t,n){return!!Q(t,n,t,!1)},extend:On,throttle:Le,closest:Q,toggleClass:U,clone:We,index:q,nextTick:jt,cancelNextTick:le,detectDirection:Ge,getChild:Et};g.get=function(t){return t[$]};g.mount=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];n[0].constructor===Array&&(n=n[0]),n.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(g.utils=et(et({},g.utils),o.utils)),It.mount(o)})};g.create=function(t,n){return new g(t,n)};g.version=Tn;var I=[],Dt,se,ue=!1,oe,re,Ut,_t;function Gn(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this))}return t.prototype={dragStarted:function(n){var e=n.originalEvent;this.sortable.nativeDraggable?w(document,"dragover",this._handleAutoScroll):this.options.supportPointer?w(document,"pointermove",this._handleFallbackAutoScroll):e.touches?w(document,"touchmove",this._handleFallbackAutoScroll):w(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var e=n.originalEvent;!this.options.dragOverBubble&&!e.rootEl&&this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):(b(document,"pointermove",this._handleFallbackAutoScroll),b(document,"touchmove",this._handleFallbackAutoScroll),b(document,"mousemove",this._handleFallbackAutoScroll)),Ne(),Bt(),An()},nulling:function(){Ut=se=Dt=ue=_t=oe=re=null,I.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,e){var o=this,r=(n.touches?n.touches[0]:n).clientX,i=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(r,i);if(Ut=n,e||this.options.forceAutoScrollFallback||Nt||it||Tt){ie(n,this.options,a,e);var s=ut(a,!0);ue&&(!_t||r!==oe||i!==re)&&(_t&&Ne(),_t=setInterval(function(){var l=ut(document.elementFromPoint(r,i),!0);l!==s&&(s=l,Bt()),ie(n,o.options,l,e)},10),oe=r,re=i)}else{if(!this.options.bubbleScroll||ut(a,!0)===tt()){Bt();return}ie(n,this.options,ut(a,!1),!1)}}},rt(t,{pluginName:"scroll",initializeByDefault:!0})}function Bt(){I.forEach(function(t){clearInterval(t.pid)}),I=[]}function Ne(){clearInterval(_t)}var ie=Le(function(t,n,e,o){if(n.scroll){var r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=n.scrollSensitivity,s=n.scrollSpeed,l=tt(),d=!1,c;se!==e&&(se=e,Bt(),Dt=n.scroll,c=n.scrollFn,Dt===!0&&(Dt=ut(e,!0)));var f=0,E=Dt;do{var h=E,_=M(h),y=_.top,L=_.bottom,N=_.left,Z=_.right,k=_.width,nt=_.height,z=void 0,K=void 0,W=h.scrollWidth,at=h.scrollHeight,j=p(h),v=h.scrollLeft,S=h.scrollTop;h===l?(z=k<W&&(j.overflowX==="auto"||j.overflowX==="scroll"||j.overflowX==="visible"),K=nt<at&&(j.overflowY==="auto"||j.overflowY==="scroll"||j.overflowY==="visible")):(z=k<W&&(j.overflowX==="auto"||j.overflowX==="scroll"),K=nt<at&&(j.overflowY==="auto"||j.overflowY==="scroll"));var A=z&&(Math.abs(Z-r)<=a&&v+k<W)-(Math.abs(N-r)<=a&&!!v),X=K&&(Math.abs(L-i)<=a&&S+nt<at)-(Math.abs(y-i)<=a&&!!S);if(!I[f])for(var D=0;D<=f;D++)I[D]||(I[D]={});(I[f].vx!=A||I[f].vy!=X||I[f].el!==h)&&(I[f].el=h,I[f].vx=A,I[f].vy=X,clearInterval(I[f].pid),(A!=0||X!=0)&&(d=!0,I[f].pid=setInterval(function(){o&&this.layer===0&&g.active._onTouchMove(Ut);var C=I[this.layer].vy?I[this.layer].vy*s:0,R=I[this.layer].vx?I[this.layer].vx*s:0;typeof c=="function"&&c.call(g.dragged.parentNode[$],R,C,t,Ut,I[this.layer].el)!=="continue"||ze(I[this.layer].el,R,C)}.bind({layer:f}),24))),f++}while(n.bubbleScroll&&E!==l&&(E=ut(E,!1)));ue=d}},30),Je=function(t){var n=t.originalEvent,e=t.putSortable,o=t.dragEl,r=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(n){var l=e||r;a();var d=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,c=document.elementFromPoint(d.clientX,d.clientY);s(),l&&!l.el.contains(c)&&(i("spill"),this.onSpill({dragEl:o,putSortable:e}))}};function he(){}he.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,e=t.putSortable;this.sortable.captureAnimationState(),e&&e.captureAnimationState();var o=Et(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),e&&e.animateAll()},drop:Je};rt(he,{pluginName:"revertOnSpill"});function pe(){}pe.prototype={onSpill:function(t){var n=t.dragEl,e=t.putSortable,o=e||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:Je};rt(pe,{pluginName:"removeOnSpill"});g.mount(new Gn);g.mount(pe,he);function $n(t){return t==null?t:JSON.parse(JSON.stringify(t))}function qn(t){de()&&ln(t)}function Zn(t){de()?an(t):Pe(t)}let Qe=null,Ke=null;function Ie(t=null,n=null){Qe=t,Ke=n}function Jn(){return{data:Qe,clonedData:Ke}}const Me=Symbol("cloneElement");function Qn(...t){var n,e;const o=(n=de())==null?void 0:n.proxy;let r=null;const i=t[0];let[,a,s]=t;Array.isArray(V(a))||(s=a,a=null);let l=null;const{immediate:d=!0,clone:c=$n,forceFallback:f,fallbackOnBody:E,customUpdate:h}=(e=V(s))!=null?e:{};function _(v){var S;const{from:A,oldIndex:X,item:D}=v,C=Array.from(A.childNodes);r=f&&!E?C.slice(0,-1):C;const R=V((S=V(a))==null?void 0:S[X]),P=c(R);Ie(R,P),D[Me]=P}function y(v){const S=v.item[Me];if(!pn(S)){if(Zt(v.item),qt(a)){const A=[...V(a)];a.value=ye(A,v.newDraggableIndex,S);return}ye(V(a),v.newDraggableIndex,S)}}function L(v){const{from:S,item:A,oldIndex:X,oldDraggableIndex:D,pullMode:C,clone:R}=v;if(we(S,A,X),C==="clone"){Zt(R);return}if(qt(a)){const P=[...V(a)];a.value=be(P,D);return}be(V(a),D)}function N(v){if(h){h(v);return}const{from:S,item:A,oldIndex:X,oldDraggableIndex:D,newDraggableIndex:C}=v;if(Zt(A),we(S,A,X),qt(a)){const R=[...V(a)];a.value=me(R,D,C);return}me(V(a),D,C)}function Z(v){const{newIndex:S,oldIndex:A,from:X,to:D}=v;let C=null;const R=S===A&&X===D;try{if(R){let P=null;r?.some((ht,pt)=>{if(P&&r?.length!==D.childNodes.length)return X.insertBefore(P,ht.nextSibling),!0;const $t=D.childNodes[pt];P=D?.replaceChild(ht,$t)})}}catch(P){C=P}finally{r=null}Pe(()=>{if(Ie(),C)throw C})}const k={onUpdate:N,onStart:_,onAdd:y,onRemove:L,onEnd:Z};function nt(v){const S=V(i);return v||(v=gn(S)?vn(S,o?.$el):S),v&&!yn(v)&&(v=v.$el),v||dn("Root element not found"),v}function z(){var v;const S=(v=V(s))!=null?v:{},{immediate:A,clone:X}=S,D=Ye(S,["immediate","clone"]);return Ee(D,(C,R)=>{wn(C)&&(D[C]=(P,...ht)=>{const pt=Jn();return En(P,pt),R(P,...ht)})}),bn(a===null?{}:k,D)}const K=v=>{v=nt(v),l&&W.destroy(),l=new g(v,z())};rn(()=>s,()=>{l&&Ee(z(),(v,S)=>{l?.option(v,S)})},{deep:!0});const W={option:(v,S)=>l?.option(v,S),destroy:()=>{l?.destroy(),l=null},save:()=>l?.save(),toArray:()=>l?.toArray(),closest:(...v)=>l?.closest(...v)},at=()=>W?.option("disabled",!0),j=()=>W?.option("disabled",!1);return Zn(()=>{d&&K()}),qn(W.destroy),bt({start:K,pause:at,resume:j},W)}const ce=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],Kn=["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",...ce.map(t=>`on${t.replace(/^\S/,n=>n.toUpperCase())}`)],no=tn({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:Kn,emits:["update:modelValue",...ce],setup(t,{slots:n,emit:e,expose:o,attrs:r}){const i=ce.reduce((c,f)=>{const E=`on${f.replace(/^\S/,h=>h.toUpperCase())}`;return c[E]=(...h)=>e(f,...h),c},{}),a=ge(()=>{const c=sn(t),{modelValue:f}=c,E=Ye(c,["modelValue"]),h=Object.entries(E).reduce((_,[y,L])=>{const N=V(L);return N!==void 0&&(_[y]=N),_},{});return bt(bt({},i),hn(bt(bt({},r),h)))}),s=ge({get:()=>t.modelValue,set:c=>e("update:modelValue",c)}),l=on(),d=en(Qn(t.target||l,s,a));return o(d),()=>{var c;return nn(t.tag||"div",{ref:l},(c=n?.default)==null?void 0:c.call(n,d))}}});export{eo as _,no as l};
|