Socket
Socket
Sign inDemoInstall

hlt-drag

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.23.9 to 2.24.0

2

dist/vuedraggable.umd.min.js

@@ -8,3 +8,3 @@ (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vuedraggable"]=e():t["vuedraggable"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="dc8c")}({"5dde":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(o){"object"===typeof window&&(n=window)}t.exports=n},a696:function(t,e,n){"use strict";

*/
function o(t){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},r.apply(this,arguments)}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){i(t,e,n[e])}))}return t}function l(t,e){if(null==t)return{};var n,o,i={},r=Object.keys(t);for(o=0;o<r.length;o++)n=r[o],e.indexOf(n)>=0||(i[n]=t[n]);return i}function s(t,e){if(null==t)return{};var n,o,i=l(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(o=0;o<r.length;o++)n=r[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function c(t){return u(t)||d(t)||h()}function u(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function d(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance")}n.r(e),n.d(e,"MultiDrag",(function(){return Fe})),n.d(e,"Sortable",(function(){return Jt})),n.d(e,"Swap",(function(){return Ce}));var f="1.10.0";function p(t){return!!navigator.userAgent.match(t)}var g=p(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),m=p(/Edge/i),v=p(/firefox/i),b=p(/safari/i)&&!p(/chrome/i)&&!p(/android/i),y=p(/iP(ad|od|hone)/i),w=p(/chrome/i)&&p(/android/i),E={capture:!1,passive:!1};function D(t,e,n){t.addEventListener(e,n,!g&&E)}function _(t,e,n){t.removeEventListener(e,n,!g&&E)}function S(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 C(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function x(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&S(t,e):S(t,e))||o&&t===n)return t;if(t===n)break}while(t=C(t))}return null}var O,T=/\s+/g;function M(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(T," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(T," ")}}function I(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 A(t,e){var n="";if("string"===typeof t)n=t;else do{var o=I(t,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix;return i&&new i(n)}function N(t,e,n){if(t){var o=t.getElementsByTagName(e),i=0,r=o.length;if(n)for(;i<r;i++)n(o[i],i);return o}return[]}function P(){return g?document.documentElement:document.scrollingElement}function k(t,e,n,o,i){if(t.getBoundingClientRect||t===window){var r,a,l,s,c,u,d;if(t!==window&&t!==P()?(r=t.getBoundingClientRect(),a=r.top,l=r.left,s=r.bottom,c=r.right,u=r.height,d=r.width):(a=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!g))do{if(i&&i.getBoundingClientRect&&("none"!==I(i,"transform")||n&&"static"!==I(i,"position"))){var h=i.getBoundingClientRect();a-=h.top+parseInt(I(i,"border-top-width")),l-=h.left+parseInt(I(i,"border-left-width")),s=a+r.height,c=l+r.width;break}}while(i=i.parentNode);if(o&&t!==window){var f=A(i||t),p=f&&f.a,m=f&&f.d;f&&(a/=m,l/=p,d/=p,u/=m,s=a+u,c=l+d)}return{top:a,left:l,bottom:s,right:c,width:d,height:u}}}function j(t,e,n){var o=B(t,!0),i=k(t)[e];while(o){var r=k(o)[n],a=void 0;if(a="top"===n||"left"===n?i>=r:i<=r,!a)return o;if(o===P())break;o=B(o,!1)}return!1}function R(t,e,n){var o=0,i=0,r=t.children;while(i<r.length){if("none"!==r[i].style.display&&r[i]!==Jt.ghost&&r[i]!==Jt.dragged&&x(r[i],n.draggable,t,!1)){if(o===e)return r[i];o++}i++}return null}function F(t,e){var n=t.lastElementChild;while(n&&(n===Jt.ghost||"none"===I(n,"display")||e&&!S(n,e)))n=n.previousElementSibling;return n||null}function L(t,e){var n=0;if(!t||!t.parentNode)return-1;while(t=t.previousElementSibling)"TEMPLATE"===t.nodeName.toUpperCase()||t===Jt.clone||e&&!S(t,e)||n++;return n}function X(t){var e=0,n=0,o=P();if(t)do{var i=A(t),r=i.a,a=i.d;e+=t.scrollLeft*r,n+=t.scrollTop*a}while(t!==o&&(t=t.parentNode));return[e,n]}function Y(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n);return-1}function B(t,e){if(!t||!t.getBoundingClientRect)return P();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=I(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return P();if(o||e)return n;o=!0}}}while(n=n.parentNode);return P()}function $(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function H(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function U(t,e){return function(){if(!O){var n=arguments,o=this;1===n.length?t.call(o,n[0]):t.apply(o,n),O=setTimeout((function(){O=void 0}),e)}}}function V(){clearTimeout(O),O=void 0}function W(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function K(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function z(t,e){I(t,"position","absolute"),I(t,"top",e.top),I(t,"left",e.left),I(t,"width",e.width),I(t,"height",e.height)}function G(t){I(t,"position",""),I(t,"top",""),I(t,"left",""),I(t,"width",""),I(t,"height","")}var q="Sortable"+(new Date).getTime();function J(){var t,e=[];return{captureAnimationState:function(){if(e=[],this.options.animation){var t=[].slice.call(this.el.children);t.forEach((function(t){if("none"!==I(t,"display")&&t!==Jt.ghost){e.push({target:t,rect:k(t)});var n=a({},e[e.length-1].rect);if(t.thisAnimationDuration){var o=A(t,!0);o&&(n.top-=o.f,n.left-=o.e)}t.fromRect=n}}))}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(Y(e,{target:t}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(t),void("function"===typeof n&&n());var i=!1,r=0;e.forEach((function(t){var e=0,n=t.target,a=n.fromRect,l=k(n),s=n.prevFromRect,c=n.prevToRect,u=t.rect,d=A(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&H(s,l)&&!H(a,l)&&(u.top-l.top)/(u.left-l.left)===(a.top-l.top)/(a.left-l.left)&&(e=Q(u,s,c,o.options)),H(l,a)||(n.prevFromRect=a,n.prevToRect=l,e||(e=o.options.animation),o.animate(n,u,l,e)),e&&(i=!0,r=Math.max(r,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),e),n.thisAnimationDuration=e)})),clearTimeout(t),i?t=setTimeout((function(){"function"===typeof n&&n()}),r):"function"===typeof n&&n(),e=[]},animate:function(t,e,n,o){if(o){I(t,"transition",""),I(t,"transform","");var i=A(this.el),r=i&&i.a,a=i&&i.d,l=(e.left-n.left)/(r||1),s=(e.top-n.top)/(a||1);t.animatingX=!!l,t.animatingY=!!s,I(t,"transform","translate3d("+l+"px,"+s+"px,0)"),Z(t),I(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),I(t,"transform","translate3d(0,0,0)"),"number"===typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){I(t,"transition",""),I(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),o)}}}}function Z(t){return t.offsetWidth}function Q(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}var tt=[],et={initializeByDefault:!0},nt={mount:function(t){for(var e in et)!et.hasOwnProperty(e)||e in t||(t[e]=et[e]);tt.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var i=t+"Global";tt.forEach((function(o){e[o.pluginName]&&(e[o.pluginName][i]&&e[o.pluginName][i](a({sortable:e},n)),e.options[o.pluginName]&&e[o.pluginName][t]&&e[o.pluginName][t](a({sortable:e},n)))}))},initializePlugins:function(t,e,n,o){for(var i in tt.forEach((function(o){var i=o.pluginName;if(t.options[i]||o.initializeByDefault){var a=new o(t,e,t.options);a.sortable=t,a.options=t.options,t[i]=a,r(n,a.defaults)}})),t.options)if(t.options.hasOwnProperty(i)){var a=this.modifyOption(t,i,t.options[i]);"undefined"!==typeof a&&(t.options[i]=a)}},getEventProperties:function(t,e){var n={};return tt.forEach((function(o){"function"===typeof o.eventProperties&&r(n,o.eventProperties.call(e[o.pluginName],t))})),n},modifyOption:function(t,e,n){var o;return tt.forEach((function(i){t[i.pluginName]&&i.optionListeners&&"function"===typeof i.optionListeners[e]&&(o=i.optionListeners[e].call(t[i.pluginName],n))})),o}};function ot(t){var e=t.sortable,n=t.rootEl,o=t.name,i=t.targetEl,r=t.cloneEl,l=t.toEl,s=t.fromEl,c=t.oldIndex,u=t.newIndex,d=t.oldDraggableIndex,h=t.newDraggableIndex,f=t.originalEvent,p=t.putSortable,v=t.extraEventProperties;if(e=e||n&&n[q],e){var b,y=e.options,w="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||g||m?(b=document.createEvent("Event"),b.initEvent(o,!0,!0)):b=new CustomEvent(o,{bubbles:!0,cancelable:!0}),b.to=l||n,b.from=s||n,b.item=i||n,b.clone=r,b.oldIndex=c,b.newIndex=u,b.oldDraggableIndex=d,b.newDraggableIndex=h,b.originalEvent=f,b.pullMode=p?p.lastPutMode:void 0;var E=a({},v,nt.getEventProperties(o,e));for(var D in E)b[D]=E[D];n&&n.dispatchEvent(b),y[w]&&y[w].call(e,b)}}var it=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,i=s(n,["evt"]);nt.pluginEvent.bind(Jt)(t,e,a({dragEl:at,parentEl:lt,ghostEl:st,rootEl:ct,nextEl:ut,lastDownEl:dt,cloneEl:ht,cloneHidden:ft,dragStarted:xt,putSortable:yt,activeSortable:Jt.active,originalEvent:o,oldIndex:pt,oldDraggableIndex:mt,newIndex:gt,newDraggableIndex:vt,hideGhostForTarget:Kt,unhideGhostForTarget:zt,cloneNowHidden:function(){ft=!0},cloneNowShown:function(){ft=!1},dispatchSortableEvent:function(t){rt({sortable:e,name:t,originalEvent:o})}},i))};function rt(t){ot(a({putSortable:yt,cloneEl:ht,targetEl:at,rootEl:ct,oldIndex:pt,oldDraggableIndex:mt,newIndex:gt,newDraggableIndex:vt},t))}if("undefined"===typeof window||!window.document)throw new Error("Sortable.js requires a window with a document");var at,lt,st,ct,ut,dt,ht,ft,pt,gt,mt,vt,bt,yt,wt,Et,Dt,_t,St,Ct,xt,Ot,Tt,Mt,It,At=!1,Nt=!1,Pt=[],kt=!1,jt=!1,Rt=[],Ft=!1,Lt=[],Xt=y,Yt=m||g?"cssFloat":"float",Bt=!w&&!y&&"draggable"in document.createElement("div"),$t=function(){if(g)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}(),Ht=function(t,e){var n=I(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=R(t,0,e),r=R(t,1,e),a=i&&I(i),l=r&&I(r),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+k(i).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+k(r).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(i&&a["float"]&&"none"!==a["float"]){var u="left"===a["float"]?"left":"right";return!r||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=o&&"none"===n[Yt]||r&&"none"===n[Yt]&&s+c>o)?"vertical":"horizontal"},Ut=function(t,e,n){var o=n?t.left:t.top,i=n?t.right:t.bottom,r=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,s=n?e.width:e.height;return o===a||i===l||o+r/2===a+s/2},Vt=function(t,e){var n;return Pt.some((function(o){if(!F(o)){var i=k(o),r=o[q].options.emptyInsertThreshold,a=t>=i.left-r&&t<=i.right+r,l=e>=i.top-r&&e<=i.bottom+r;return r&&a&&l?n=o:void 0}})),n},Wt=function(t){function e(t,n){return function(o,i,r,a){var l=o.options.group.name&&i.options.group.name&&o.options.group.name===i.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,i,r,a),n)(o,i,r,a);var s=(n?o:i).options.group.name;return!0===t||"string"===typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},i=t.group;i&&"object"==o(i)||(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},Kt=function(){!$t&&st&&I(st,"display","none")},zt=function(){!$t&&st&&I(st,"display","")};document.addEventListener("click",(function(t){if(Nt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Nt=!1,!1}),!0);var Gt=function(t){if(at){t=t.touches?t.touches[0]:t;var e=Vt(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[q]._onDragOver(n)}}},qt=function(t){at&&at.parentNode[q]._isOutsideThisEl(t.target)};function Jt(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=r({},e),t[q]=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 Ht(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!==Jt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var o in nt.initializePlugins(this,t,n),n)!(o in e)&&(e[o]=n[o]);for(var i in Wt(e),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&Bt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?D(t,"pointerdown",this._onTapStart):(D(t,"mousedown",this._onTapStart),D(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(D(t,"dragover",this),D(t,"dragenter",this)),Pt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),r(this,J())}function Zt(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Qt(t,e,n,o,i,r,a,l){var s,c,u=t[q],d=u.options.onMove;return!window.CustomEvent||g||m?(s=document.createEvent("Event"),s.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=i||e,s.relatedRect=r||k(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),d&&(c=d.call(u,s,a)),c}function te(t){t.draggable=!1}function ee(){Ft=!1}function ne(t,e,n){var o=k(F(n.el,n.options.draggable)),i=10;return e?t.clientX>o.right+i||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+i}function oe(t,e,n,o,i,r,a,l){var s=o?t.clientY:t.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,h=!1;if(!a)if(l&&Mt<c*i){if(!kt&&(1===Tt?s>u+c*r/2:s<d-c*r/2)&&(kt=!0),kt)h=!0;else if(1===Tt?s<u+Mt:s>d-Mt)return-Tt}else if(s>u+c*(1-i)/2&&s<d-c*(1-i)/2)return ie(e);return h=h||a,h&&(s<u+c*r/2||s>d-c*r/2)?s>u+c/2?1:-1:0}function ie(t){return L(at)<L(t)?1:-1}function re(t){var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;while(n--)o+=e.charCodeAt(n);return o.toString(36)}function ae(t){Lt.length=0;var e=t.getElementsByTagName("input"),n=e.length;while(n--){var o=e[n];o.checked&&Lt.push(o)}}function le(t){return setTimeout(t,0)}function se(t){return clearTimeout(t)}Jt.prototype={constructor:Jt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Ot=null)},_getDirection:function(t,e){return"function"===typeof this.options.direction?this.options.direction.call(this,t,e,at):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,i=o.preventOnFilter,r=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(ae(n),!at&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||o.disabled)&&!s.isContentEditable&&(l=x(l,o.draggable,n,!1),(!l||!l.animated)&&dt!==l)){if(pt=L(l),mt=L(l,o.draggable),"function"===typeof c){if(c.call(this,t,l,this))return rt({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),it("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=x(s,o.trim(),n,!1),o)return rt({sortable:e,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),it("filter",e,{evt:t}),!0})),c))return void(i&&t.cancelable&&t.preventDefault());o.handle&&!x(s,o.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var o,i=this,r=i.el,a=i.options,l=r.ownerDocument;if(n&&!at&&n.parentNode===r){var s=k(n);if(ct=r,at=n,lt=at.parentNode,ut=at.nextSibling,dt=n,bt=a.group,Jt.dragged=at,wt={target:at,clientX:(e||t).clientX,clientY:(e||t).clientY},St=wt.clientX-s.left,Ct=wt.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,at.style["will-change"]="all",o=function(){it("delayEnded",i,{evt:t}),Jt.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!v&&i.nativeDraggable&&(at.draggable=!0),i._triggerDragStart(t,e),rt({sortable:i,name:"choose",originalEvent:t}),M(at,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){N(at,t.trim(),te)})),D(l,"dragover",Gt),D(l,"mousemove",Gt),D(l,"touchmove",Gt),D(l,"mouseup",i._onDrop),D(l,"touchend",i._onDrop),D(l,"touchcancel",i._onDrop),v&&this.nativeDraggable&&(this.options.touchStartThreshold=4,at.draggable=!0),it("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(m||g))o();else{if(Jt.eventCanceled)return void this._onDrop();D(l,"mouseup",i._disableDelayedDrag),D(l,"touchend",i._disableDelayedDrag),D(l,"touchcancel",i._disableDelayedDrag),D(l,"mousemove",i._delayedDragTouchMoveHandler),D(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&D(l,"pointermove",i._delayedDragTouchMoveHandler),i._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(){at&&te(at),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._disableDelayedDrag),_(t,"touchend",this._disableDelayedDrag),_(t,"touchcancel",this._disableDelayedDrag),_(t,"mousemove",this._delayedDragTouchMoveHandler),_(t,"touchmove",this._delayedDragTouchMoveHandler),_(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?D(document,"pointermove",this._onTouchMove):D(document,e?"touchmove":"mousemove",this._onTouchMove):(D(at,"dragend",this),D(ct,"dragstart",this._onDragStart));try{document.selection?le((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(t,e){if(At=!1,ct&&at){it("dragStarted",this,{evt:e}),this.nativeDraggable&&D(document,"dragover",qt);var n=this.options;!t&&M(at,n.dragClass,!1),M(at,n.ghostClass,!0),Jt.active=this,t&&this._appendGhost(),rt({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(Et){this._lastX=Et.clientX,this._lastY=Et.clientY,Kt();var t=document.elementFromPoint(Et.clientX,Et.clientY),e=t;while(t&&t.shadowRoot){if(t=t.shadowRoot.elementFromPoint(Et.clientX,Et.clientY),t===e)break;e=t}if(at.parentNode[q]._isOutsideThisEl(t),e)do{if(e[q]){var n=void 0;if(n=e[q]._onDragOver({clientX:Et.clientX,clientY:Et.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);zt()}},_onTouchMove:function(t){if(wt){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,i=t.touches?t.touches[0]:t,r=st&&A(st),a=st&&r&&r.a,l=st&&r&&r.d,s=Xt&&It&&X(It),c=(i.clientX-wt.clientX+o.x)/(a||1)+(s?s[0]-Rt[0]:0)/(a||1),u=(i.clientY-wt.clientY+o.y)/(l||1)+(s?s[1]-Rt[1]:0)/(l||1);if(!Jt.active&&!At){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(st){r?(r.e+=c-(Dt||0),r.f+=u-(_t||0)):r={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");I(st,"webkitTransform",d),I(st,"mozTransform",d),I(st,"msTransform",d),I(st,"transform",d),Dt=c,_t=u,Et=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!st){var t=this.options.fallbackOnBody?document.body:ct,e=k(at,!0,Xt,!0,t),n=this.options;if(Xt){It=t;while("static"===I(It,"position")&&"none"===I(It,"transform")&&It!==document)It=It.parentNode;It!==document.body&&It!==document.documentElement?(It===document&&(It=P()),e.top+=It.scrollTop,e.left+=It.scrollLeft):It=P(),Rt=X(It)}st=at.cloneNode(!0),M(st,n.ghostClass,!1),M(st,n.fallbackClass,!0),M(st,n.dragClass,!0),I(st,"transition",""),I(st,"transform",""),I(st,"box-sizing","border-box"),I(st,"margin",0),I(st,"top",e.top),I(st,"left",e.left),I(st,"width",e.width),I(st,"height",e.height),I(st,"opacity","0.8"),I(st,"position",Xt?"absolute":"fixed"),I(st,"zIndex","100000"),I(st,"pointerEvents","none"),Jt.ghost=st,t.appendChild(st),I(st,"transform-origin",St/parseInt(st.style.width)*100+"% "+Ct/parseInt(st.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,i=n.options;it("dragStart",this,{evt:t}),Jt.eventCanceled?this._onDrop():(it("setupClone",this),Jt.eventCanceled||(ht=K(at),ht.draggable=!1,ht.style["will-change"]="",this._hideClone(),M(ht,this.options.chosenClass,!1),Jt.clone=ht),n.cloneId=le((function(){it("clone",n),Jt.eventCanceled||(n.options.removeCloneOnHide||ct.insertBefore(ht,at),n._hideClone(),rt({sortable:n,name:"clone"}))})),!e&&M(at,i.dragClass,!0),e?(Nt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(_(document,"mouseup",n._onDrop),_(document,"touchend",n._onDrop),_(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(n,o,at)),D(document,"drop",n),I(at,"transform","translateZ(0)")),At=!0,n._dragStartId=le(n._dragStarted.bind(n,e,t)),D(document,"selectstart",n),xt=!0,b&&I(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,o,i,r=this.el,l=t.target,s=this.options,c=s.group,u=Jt.active,d=bt===c,h=s.sort,f=yt||u,p=this,g=!1;if(!Ft){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),l=x(l,s.draggable,r,!0),N("dragOver"),Jt.eventCanceled)return g;if(at.contains(t.target)||l.animated&&l.animatingX&&l.animatingY||p._ignoreWhileAnimating===l)return R(!1);if(Nt=!1,u&&!s.disabled&&(d?h||(o=!ct.contains(at)):yt===this||(this.lastPutMode=bt.checkPull(this,u,at,t))&&c.checkPut(this,u,at,t))){if(i="vertical"===this._getDirection(t,l),e=k(at),N("dragOverValid"),Jt.eventCanceled)return g;if(o)return lt=ct,P(),this._hideClone(),N("revert"),Jt.eventCanceled||(ut?ct.insertBefore(at,ut):ct.appendChild(at)),R(!0);var m=F(r,s.draggable);if(!m||ne(t,i,this)&&!m.animated){if(m===at)return R(!1);if(m&&r===t.target&&(l=m),l&&(n=k(l)),!1!==Qt(ct,r,at,e,l,n,t,!!l))return P(),r.appendChild(at),lt=r,X(),R(!0)}else if(l.parentNode===r){n=k(l);var v,b,y=0,w=at.parentNode!==r,E=!Ut(at.animated&&at.toRect||e,l.animated&&l.toRect||n,i),D=i?"top":"left",_=j(l,"top","top")||j(at,"top","top"),S=_?_.scrollTop:void 0;if(Ot!==l&&(v=n[D],kt=!1,jt=!E&&s.invertSwap||w),y=oe(t,l,n,i,E?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,jt,Ot===l),0!==y){var C=L(at);do{C-=y,b=lt.children[C]}while(b&&("none"===I(b,"display")||b===st))}if(0===y||b===l)return R(!1);Ot=l,Tt=y;var O=l.nextElementSibling,T=!1;T=1===y;var A=Qt(ct,r,at,e,l,n,t,T);if(!1!==A)return 1!==A&&-1!==A||(T=1===A),Ft=!0,setTimeout(ee,30),P(),T&&!O?r.appendChild(at):l.parentNode.insertBefore(at,T?O:l),_&&W(_,0,S-_.scrollTop),lt=at.parentNode,void 0===v||jt||(Mt=Math.abs(v-k(l)[D])),X(),R(!0)}if(r.contains(at))return R(!1)}return!1}function N(s,c){it(s,p,a({evt:t,isOwner:d,axis:i?"vertical":"horizontal",revert:o,dragRect:e,targetRect:n,canSort:h,fromSortable:f,target:l,completed:R,onMove:function(n,o){return Qt(ct,r,at,e,n,k(n),t,o)},changed:X},c))}function P(){N("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function R(e){return N("dragOverCompleted",{insertion:e}),e&&(d?u._hideClone():u._showClone(p),p!==f&&(M(at,yt?yt.options.ghostClass:u.options.ghostClass,!1),M(at,s.ghostClass,!0)),yt!==p&&p!==Jt.active?yt=p:p===Jt.active&&yt&&(yt=null),f===p&&(p._ignoreWhileAnimating=l),p.animateAll((function(){N("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(l===at&&!at.animated||l===r&&!l.animated)&&(Ot=null),s.dragoverBubble||t.rootEl||l===document||(at.parentNode[q]._isOutsideThisEl(t.target),!e&&Gt(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),g=!0}function X(){gt=L(at),vt=L(at,s.draggable),rt({sortable:p,name:"change",toEl:r,newIndex:gt,newDraggableIndex:vt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){_(document,"mousemove",this._onTouchMove),_(document,"touchmove",this._onTouchMove),_(document,"pointermove",this._onTouchMove),_(document,"dragover",Gt),_(document,"mousemove",Gt),_(document,"touchmove",Gt)},_offUpEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._onDrop),_(t,"touchend",this._onDrop),_(t,"pointerup",this._onDrop),_(t,"touchcancel",this._onDrop),_(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;gt=L(at),vt=L(at,n.draggable),it("drop",this,{evt:t}),lt=at&&at.parentNode,gt=L(at),vt=L(at,n.draggable),Jt.eventCanceled?this._nulling():(At=!1,jt=!1,kt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),se(this.cloneId),se(this._dragStartId),this.nativeDraggable&&(_(document,"drop",this),_(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),b&&I(document.body,"user-select",""),t&&(xt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),st&&st.parentNode&&st.parentNode.removeChild(st),(ct===lt||yt&&"clone"!==yt.lastPutMode)&&ht&&ht.parentNode&&ht.parentNode.removeChild(ht),at&&(this.nativeDraggable&&_(at,"dragend",this),te(at),at.style["will-change"]="",xt&&!At&&M(at,yt?yt.options.ghostClass:this.options.ghostClass,!1),M(at,this.options.chosenClass,!1),rt({sortable:this,name:"unchoose",toEl:lt,newIndex:null,newDraggableIndex:null,originalEvent:t}),ct!==lt?(gt>=0&&(rt({rootEl:lt,name:"add",toEl:lt,fromEl:ct,originalEvent:t}),rt({sortable:this,name:"remove",toEl:lt,originalEvent:t}),rt({rootEl:lt,name:"sort",toEl:lt,fromEl:ct,originalEvent:t}),rt({sortable:this,name:"sort",toEl:lt,originalEvent:t})),yt&&yt.save()):gt!==pt&&gt>=0&&(rt({sortable:this,name:"update",toEl:lt,originalEvent:t}),rt({sortable:this,name:"sort",toEl:lt,originalEvent:t})),Jt.active&&(null!=gt&&-1!==gt||(gt=pt,vt=mt),rt({sortable:this,name:"end",toEl:lt,originalEvent:t}),this.save()))),this._nulling())},_nulling:function(){it("nulling",this),ct=at=lt=st=ut=ht=dt=ft=wt=Et=xt=gt=vt=pt=mt=Ot=Tt=yt=bt=Jt.dragged=Jt.ghost=Jt.clone=Jt.active=null,Lt.forEach((function(t){t.checked=!0})),Lt.length=Dt=_t=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":at&&(this._onDragOver(t),Zt(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,i=n.length,r=this.options;o<i;o++)t=n[o],x(t,r.draggable,this.el,!1)&&e.push(t.getAttribute(r.dataIdAttr)||re(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach((function(t,o){var i=n.children[o];x(i,this.options.draggable,n,!1)&&(e[t]=i)}),this),t.forEach((function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return x(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=nt.modifyOption(this,t,e);n[t]="undefined"!==typeof o?o:e,"group"===t&&Wt(n)},destroy:function(){it("destroy",this);var t=this.el;t[q]=null,_(t,"mousedown",this._onTapStart),_(t,"touchstart",this._onTapStart),_(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(_(t,"dragover",this),_(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),Pt.splice(Pt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ft){if(it("hideClone",this),Jt.eventCanceled)return;I(ht,"display","none"),this.options.removeCloneOnHide&&ht.parentNode&&ht.parentNode.removeChild(ht),ft=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(ft){if(it("showClone",this),Jt.eventCanceled)return;ct.contains(at)&&!this.options.group.revertClone?ct.insertBefore(ht,at):ut?ct.insertBefore(ht,ut):ct.appendChild(ht),this.options.group.revertClone&&this.animate(at,ht),I(ht,"display",""),ft=!1}}else this._hideClone()}},D(document,"touchmove",(function(t){(Jt.active||At)&&t.cancelable&&t.preventDefault()})),Jt.utils={on:D,off:_,css:I,find:N,is:function(t,e){return!!x(t,e,t,!1)},extend:$,throttle:U,closest:x,toggleClass:M,clone:K,index:L,nextTick:le,cancelNextTick:se,detectDirection:Ht,getChild:R},Jt.get=function(t){return t[q]},Jt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Jt.utils=a({},Jt.utils,t.utils)),nt.mount(t)}))},Jt.create=function(t,e){return new Jt(t,e)},Jt.version=f;var ce,ue,de,he,fe,pe,ge=[],me=!1;function ve(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?D(document,"dragover",this._handleAutoScroll):this.options.supportPointer?D(document,"pointermove",this._handleFallbackAutoScroll):e.touches?D(document,"touchmove",this._handleFallbackAutoScroll):D(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):(_(document,"pointermove",this._handleFallbackAutoScroll),_(document,"touchmove",this._handleFallbackAutoScroll),_(document,"mousemove",this._handleFallbackAutoScroll)),ye(),be(),V()},nulling:function(){fe=ue=ce=me=pe=de=he=null,ge.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,o=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(o,i);if(fe=t,e||m||g||b){Ee(t,this.options,r,e);var a=B(r,!0);!me||pe&&o===de&&i===he||(pe&&ye(),pe=setInterval((function(){var r=B(document.elementFromPoint(o,i),!0);r!==a&&(a=r,be()),Ee(t,n.options,r,e)}),10),de=o,he=i)}else{if(!this.options.bubbleScroll||B(r,!0)===P())return void be();Ee(t,this.options,B(r,!1),!1)}}},r(t,{pluginName:"scroll",initializeByDefault:!0})}function be(){ge.forEach((function(t){clearInterval(t.pid)})),ge=[]}function ye(){clearInterval(pe)}var we,Ee=U((function(t,e,n,o){if(e.scroll){var i,r=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,c=P(),u=!1;ue!==n&&(ue=n,be(),ce=e.scroll,i=e.scrollFn,!0===ce&&(ce=B(n,!0)));var d=0,h=ce;do{var f=h,p=k(f),g=p.top,m=p.bottom,v=p.left,b=p.right,y=p.width,w=p.height,E=void 0,D=void 0,_=f.scrollWidth,S=f.scrollHeight,C=I(f),x=f.scrollLeft,O=f.scrollTop;f===c?(E=y<_&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),D=w<S&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(E=y<_&&("auto"===C.overflowX||"scroll"===C.overflowX),D=w<S&&("auto"===C.overflowY||"scroll"===C.overflowY));var T=E&&(Math.abs(b-r)<=l&&x+y<_)-(Math.abs(v-r)<=l&&!!x),M=D&&(Math.abs(m-a)<=l&&O+w<S)-(Math.abs(g-a)<=l&&!!O);if(!ge[d])for(var A=0;A<=d;A++)ge[A]||(ge[A]={});ge[d].vx==T&&ge[d].vy==M&&ge[d].el===f||(ge[d].el=f,ge[d].vx=T,ge[d].vy=M,clearInterval(ge[d].pid),0==T&&0==M||(u=!0,ge[d].pid=setInterval(function(){o&&0===this.layer&&Jt.active._onTouchMove(fe);var e=ge[this.layer].vy?ge[this.layer].vy*s:0,n=ge[this.layer].vx?ge[this.layer].vx*s:0;"function"===typeof i&&"continue"!==i.call(Jt.dragged.parentNode[q],n,e,t,fe,ge[this.layer].el)||W(ge[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&h!==c&&(h=B(h,!1)));me=u}}),30),De=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,i=t.activeSortable,r=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget,s=n||i;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(r("spill"),this.onSpill({dragEl:o,putSortable:n}))};function _e(){}function Se(){}function Ce(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;we=e},dragOverValid:function(t){var e=t.completed,n=t.target,o=t.onMove,i=t.activeSortable,r=t.changed,a=t.cancel;if(i.options.swap){var l=this.sortable.el,s=this.options;if(n&&n!==l){var c=we;!1!==o(n)?(M(n,s.swapClass,!0),we=n):we=null,c&&c!==we&&M(c,s.swapClass,!1)}r(),e(!0),a()}},drop:function(t){var e=t.activeSortable,n=t.putSortable,o=t.dragEl,i=n||this.sortable,r=this.options;we&&M(we,r.swapClass,!1),we&&(r.swap||n&&n.options.swap)&&o!==we&&(i.captureAnimationState(),i!==e&&e.captureAnimationState(),xe(o,we),i.animateAll(),i!==e&&e.animateAll())},nulling:function(){we=null}},r(t,{pluginName:"swap",eventProperties:function(){return{swapItem:we}}})}function xe(t,e){var n,o,i=t.parentNode,r=e.parentNode;i&&r&&!i.isEqualNode(e)&&!r.isEqualNode(t)&&(n=L(t),o=L(e),i.isEqualNode(r)&&n<o&&o++,i.insertBefore(e,i.children[n]),r.insertBefore(t,r.children[o]))}_e.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=R(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:De},r(_e,{pluginName:"revertOnSpill"}),Se.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,o=n||this.sortable;o.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),o.animateAll()},drop:De},r(Se,{pluginName:"removeOnSpill"});var Oe,Te,Me,Ie,Ae,Ne=[],Pe=[],ke=!1,je=!1,Re=!1;function Fe(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?D(document,"pointerup",this._deselectMultiDrag):(D(document,"mouseup",this._deselectMultiDrag),D(document,"touchend",this._deselectMultiDrag)),D(document,"keydown",this._checkKeyDown),D(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,n){var o="";Ne.length&&Te===t?Ne.forEach((function(t,e){o+=(e?", ":"")+t.textContent})):o=n.textContent,e.setData("Text",o)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;Me=e},delayEnded:function(){this.isMultiDrag=~Ne.indexOf(Me)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var o=0;o<Ne.length;o++)Pe.push(K(Ne[o])),Pe[o].sortableIndex=Ne[o].sortableIndex,Pe[o].draggable=!1,Pe[o].style["will-change"]="",M(Pe[o],this.options.selectedClass,!1),Ne[o]===Me&&M(Pe[o],this.options.chosenClass,!1);e._hideClone(),n()}},clone:function(t){var e=t.sortable,n=t.rootEl,o=t.dispatchSortableEvent,i=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Ne.length&&Te===e&&(Xe(!0,n),o("clone"),i()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,o=t.cancel;this.isMultiDrag&&(Xe(!1,n),Pe.forEach((function(t){I(t,"display","")})),e(),Ae=!1,o())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),o=t.cancel;this.isMultiDrag&&(Pe.forEach((function(t){I(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),n(),Ae=!0,o())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&Te&&Te.multiDrag._deselectMultiDrag(),Ne.forEach((function(t){t.sortableIndex=L(t)})),Ne=Ne.sort((function(t,e){return t.sortableIndex-e.sortableIndex})),Re=!0},dragStarted:function(t){var e=this,n=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Ne.forEach((function(t){t!==Me&&I(t,"position","absolute")}));var o=k(Me,!1,!0,!0);Ne.forEach((function(t){t!==Me&&z(t,o)})),je=!0,ke=!0}n.animateAll((function(){je=!1,ke=!1,e.options.animation&&Ne.forEach((function(t){G(t)})),e.options.sort&&Ye()}))}},dragOver:function(t){var e=t.target,n=t.completed,o=t.cancel;je&&~Ne.indexOf(e)&&(n(!1),o())},revert:function(t){var e=t.fromSortable,n=t.rootEl,o=t.sortable,i=t.dragRect;Ne.length>1&&(Ne.forEach((function(t){o.addAnimationState({target:t,rect:je?k(t):i}),G(t),t.fromRect=i,e.removeAnimationState(t)})),je=!1,Le(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,o=t.insertion,i=t.activeSortable,r=t.parentEl,a=t.putSortable,l=this.options;if(o){if(n&&i._hideClone(),ke=!1,l.animation&&Ne.length>1&&(je||!n&&!i.options.sort&&!a)){var s=k(Me,!1,!0,!0);Ne.forEach((function(t){t!==Me&&(z(t,s),r.appendChild(t))})),je=!0}if(!n)if(je||Ye(),Ne.length>1){var c=Ae;i._showClone(e),i.options.animation&&!Ae&&c&&Pe.forEach((function(t){i.addAnimationState({target:t,rect:Ie}),t.fromRect=Ie,t.thisAnimationDuration=null}))}else i._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,o=t.activeSortable;if(Ne.forEach((function(t){t.thisAnimationDuration=null})),o.options.animation&&!n&&o.multiDrag.isMultiDrag){Ie=r({},e);var i=A(Me,!0);Ie.top-=i.f,Ie.left-=i.e}},dragOverAnimationComplete:function(){je&&(je=!1,Ye())},drop:function(t){var e=t.originalEvent,n=t.rootEl,o=t.parentEl,i=t.sortable,r=t.dispatchSortableEvent,a=t.oldIndex,l=t.putSortable,s=l||this.sortable;if(e){var c=this.options,u=o.children;if(!Re)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),M(Me,c.selectedClass,!~Ne.indexOf(Me)),~Ne.indexOf(Me))Ne.splice(Ne.indexOf(Me),1),Oe=null,ot({sortable:i,rootEl:n,name:"deselect",targetEl:Me,originalEvt:e});else{if(Ne.push(Me),ot({sortable:i,rootEl:n,name:"select",targetEl:Me,originalEvt:e}),e.shiftKey&&Oe&&i.el.contains(Oe)){var d,h,f=L(Oe),p=L(Me);if(~f&&~p&&f!==p)for(p>f?(h=f,d=p):(h=p,d=f+1);h<d;h++)~Ne.indexOf(u[h])||(M(u[h],c.selectedClass,!0),Ne.push(u[h]),ot({sortable:i,rootEl:n,name:"select",targetEl:u[h],originalEvt:e}))}else Oe=Me;Te=s}if(Re&&this.isMultiDrag){if((o[q].options.sort||o!==n)&&Ne.length>1){var g=k(Me),m=L(Me,":not(."+this.options.selectedClass+")");if(!ke&&c.animation&&(Me.thisAnimationDuration=null),s.captureAnimationState(),!ke&&(c.animation&&(Me.fromRect=g,Ne.forEach((function(t){if(t.thisAnimationDuration=null,t!==Me){var e=je?k(t):g;t.fromRect=e,s.addAnimationState({target:t,rect:e})}}))),Ye(),Ne.forEach((function(t){u[m]?o.insertBefore(t,u[m]):o.appendChild(t),m++})),a===L(Me))){var v=!1;Ne.forEach((function(t){t.sortableIndex===L(t)||(v=!0)})),v&&r("update")}Ne.forEach((function(t){G(t)})),s.animateAll()}Te=s}(n===o||l&&"clone"!==l.lastPutMode)&&Pe.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=Re=!1,Pe.length=0},destroyGlobal:function(){this._deselectMultiDrag(),_(document,"pointerup",this._deselectMultiDrag),_(document,"mouseup",this._deselectMultiDrag),_(document,"touchend",this._deselectMultiDrag),_(document,"keydown",this._checkKeyDown),_(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!Re&&Te===this.sortable&&(!t||!x(t.target,this.options.draggable,this.sortable.el,!1))&&(!t||0===t.button))while(Ne.length){var e=Ne[0];M(e,this.options.selectedClass,!1),Ne.shift(),ot({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},r(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[q];e&&e.options.multiDrag&&!~Ne.indexOf(t)&&(Te&&Te!==e&&(Te.multiDrag._deselectMultiDrag(),Te=e),M(t,e.options.selectedClass,!0),Ne.push(t))},deselect:function(t){var e=t.parentNode[q],n=Ne.indexOf(t);e&&e.options.multiDrag&&~n&&(M(t,e.options.selectedClass,!1),Ne.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return Ne.forEach((function(o){var i;e.push({multiDragElement:o,index:o.sortableIndex}),i=je&&o!==Me?-1:je?L(o,":not(."+t.options.selectedClass+")"):L(o),n.push({multiDragElement:o,index:i})})),{items:c(Ne),clones:[].concat(Pe),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return t=t.toLowerCase(),"ctrl"===t?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function Le(t,e){Ne.forEach((function(n,o){var i=e.children[n.sortableIndex+(t?Number(o):0)];i?e.insertBefore(n,i):e.appendChild(n)}))}function Xe(t,e){Pe.forEach((function(n,o){var i=e.children[n.sortableIndex+(t?Number(o):0)];i?e.insertBefore(n,i):e.appendChild(n)}))}function Ye(){Ne.forEach((function(t){t!==Me&&t.parentNode&&t.parentNode.removeChild(t)}))}Jt.mount(new ve),Jt.mount(Se,_e),e["default"]=Jt},c649:function(t,e,n){"use strict";(function(t){function o(){return"undefined"!==typeof window?window.console:t.console}n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return i})),n.d(e,"d",(function(){return s}));const i=o();function r(t){const e=Object.create(null);return function(n){const o=e[n];return o||(e[n]=t(n))}}const a=/-(\w)/g,l=r(t=>t.replace(a,(t,e)=>e?e.toUpperCase():""));function s(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function c(t,e,n){const o=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,o)}}).call(this,n("5dde"))},dc8c:function(t,e,n){"use strict";var o;(n.r(e),"undefined"!==typeof window)&&(n("e67d"),(o=window.document.currentScript)&&(o=o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=o[1]));var i=n("c649");function r(t,e,n){return void 0===n?t:(t=t||{},t[e]=n,t)}function a(t,e){return t.map(t=>t.elm).indexOf(e)}function l(t,e,n,o){if(!t)return[];const i=t.map(t=>t.elm),r=e.length-o,a=[...e].map((t,e)=>e>=r?i.length:i.indexOf(t));return n?a.filter(t=>-1!==t):a}function s(t,e){this.$nextTick(()=>this.$emit(t.toLowerCase(),e))}function c(t){return e=>{null!==this.realList&&(i["b"].log(t),this["onDrag"+t](e)),s.call(this,t,e)}}function u(t){return["transition-group","TransitionGroup"].includes(t)}function d(t){if(!t||1!==t.length)return!1;const[{componentOptions:e}]=t;return!!e&&u(e.tag)}function h(t,e,n){return t[n]||(e[n]?e[n]():void 0)}function f(t,e,n){let o=0,i=0;const r=h(e,n,"header");r&&(o=r.length,t=t?[...r,...t]:[...r]);const a=h(e,n,"footer");return a&&(i=a.length,t=t?[...t,...a]:[...a]),{children:t,headerOffset:o,footerOffset:i}}function p(t,e){let n=null;const o=(t,e)=>{n=r(n,t,e)},i=Object.keys(t).filter(t=>"id"===t||t.startsWith("data-")).reduce((e,n)=>{return e[n]=t[n],e},{});if(o("attrs",i),!e)return n;const{on:a,props:l,attrs:s}=e;return o("on",a),o("props",l),Object.assign(n.attrs,s),n}const g=["Start","Add","Remove","Update","End","Change","Drag"],m=["Choose","Unchoose","Sort","Filter","Clone"],v=["Move",...g,...m].map(t=>"on"+t);var b=null;const y={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:t=>{return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},w={name:"draggable",inheritAttrs:!1,props:y,data(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render(t){const e=this.$slots.default;this.transitionMode=d(e);const{children:n,headerOffset:o,footerOffset:i}=f(e,this.$slots,this.$scopedSlots);this.headerOffset=o,this.footerOffset=i;const r=p(this.$attrs,this.componentData);return t(this.getTag(),r,n)},created(){null!==this.list&&null!==this.value&&i["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&i["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&i["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted(){if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error(`Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ${this.getTag()}`);const t={};g.forEach(e=>{t["on"+e]=c.call(this,e)}),m.forEach(e=>{t["on"+e]=s.bind(this,e)});const e=Object.keys(this.$attrs).reduce((t,e)=>{return t[Object(i["a"])(e)]=this.$attrs[e],t},{}),o=Object.assign({},this.options,e,t,{onMove:(t,e)=>{return this.onDragMove(t,e)}});!("draggable"in o)&&(o.draggable=">*");const r=n("a696").default;this._sortable=new r(this.rootContainer,o),this.computeIndexes()},beforeDestroy(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer(){return this.transitionMode?this.$el.children[0]:this.$el},realList(){return this.list?this.list:this.value}},watch:{options:{handler(t){this.updateOptions(t)},deep:!0},$attrs:{handler(t){this.updateOptions(t)},deep:!0},realList(){this.computeIndexes()}},methods:{getIsFunctional(){const{fnOptions:t}=this._vnode;return t&&t.functional},getTag(){return this.tag||this.element},updateOptions(t){for(var e in t){const n=Object(i["a"])(e);-1===v.indexOf(n)&&this._sortable.option(n,t[e])}},getChildrenNodes(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;const t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes(){this.$nextTick(()=>{this.visibleIndexes=l(this.getChildrenNodes(),this.rootContainer.children,this.transitionMode,this.footerOffset)})},getUnderlyingVm(t){const e=a(this.getChildrenNodes()||[],t);if(-1===e)return null;const n=this.realList[e];return{index:e,element:n}},getUnderlyingPotencialDraggableComponent({__vue__:t}){return t&&t.$options&&u(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges(t){this.$nextTick(()=>{this.$emit("change",t)})},alterList(t){if(this.list)return void t(this.list);const e=[...this.value];t(e),this.$emit("input",e)},spliceList(){const t=t=>t.splice(...arguments);this.alterList(t)},updatePosition(t,e){const n=n=>n.splice(e,0,n.splice(t,1)[0]);this.alterList(n)},getRelatedContextFromMoveEvent({to:t,related:e}){const n=this.getUnderlyingPotencialDraggableComponent(t);if(!n)return{component:n};const o=n.realList,i={list:o,component:n};if(t!==e&&o&&n.getUnderlyingVm){const t=n.getUnderlyingVm(e);if(t)return Object.assign(t,i)}return i},getVmIndex(t){const e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent(){return this.$slots.default[0].componentInstance},resetTransitionData(t){if(!this.noTransitionOnDrag||!this.transitionMode)return;var e=this.getChildrenNodes();e[t].data=null;const n=this.getComponent();n.children=[],n.kept=void 0},onDragStart(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),b=t.item},onDragDrag(t){i["b"].log(t)},onDragAdd(t){const e=t.item._underlying_vm_;if(void 0===e)return;Object(i["d"])(t.item);const n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();const o={element:e,newIndex:n};this.emitChanges({added:o})},onDragRemove(t){if(Object(i["c"])(this.rootContainer,t.item,t.oldIndex),"clone"===t.pullMode)return void Object(i["d"])(t.clone);const e=this.context.index;this.spliceList(e,1);const n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})},onDragUpdate(t){Object(i["d"])(t.item),Object(i["c"])(t.from,t.item,t.oldIndex);const e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);const o={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:o})},updateProperty(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex(t,e){if(!t.element)return 0;const n=[...e.to.children].filter(t=>"none"!==t.style["display"]),o=n.indexOf(e.related),i=t.component.getVmIndex(o),r=-1!==n.indexOf(b);return r||!e.willInsertAfter?i:i+1},onDragMove(t,e){const n=this.move;if(!n||!this.realList)return!0;const o=this.getRelatedContextFromMoveEvent(t),i=this.context,r=this.computeFutureIndex(o,t);Object.assign(i,{futureIndex:r});const a=Object.assign({},t,{relatedContext:o,draggedContext:i});return n(a,e)},onDragEnd(){this.computeIndexes(),b=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("hltdraggable",w);var E=w;e["default"]=E},e67d:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(o){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(o.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)}})}));
function o(t){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},r.apply(this,arguments)}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){i(t,e,n[e])}))}return t}function l(t,e){if(null==t)return{};var n,o,i={},r=Object.keys(t);for(o=0;o<r.length;o++)n=r[o],e.indexOf(n)>=0||(i[n]=t[n]);return i}function s(t,e){if(null==t)return{};var n,o,i=l(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(o=0;o<r.length;o++)n=r[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function c(t){return u(t)||d(t)||h()}function u(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function d(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance")}n.r(e),n.d(e,"MultiDrag",(function(){return Fe})),n.d(e,"Sortable",(function(){return Jt})),n.d(e,"Swap",(function(){return Ce}));var f="1.10.0";function p(t){return!!navigator.userAgent.match(t)}var g=p(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),m=p(/Edge/i),v=p(/firefox/i),b=p(/safari/i)&&!p(/chrome/i)&&!p(/android/i),y=p(/iP(ad|od|hone)/i),w=p(/chrome/i)&&p(/android/i),E={capture:!1,passive:!1};function D(t,e,n){t.addEventListener(e,n,!g&&E)}function _(t,e,n){t.removeEventListener(e,n,!g&&E)}function S(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 C(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function x(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&S(t,e):S(t,e))||o&&t===n)return t;if(t===n)break}while(t=C(t))}return null}var O,T=/\s+/g;function M(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(T," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(T," ")}}function I(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 A(t,e){var n="";if("string"===typeof t)n=t;else do{var o=I(t,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix;return i&&new i(n)}function N(t,e,n){if(t){var o=t.getElementsByTagName(e),i=0,r=o.length;if(n)for(;i<r;i++)n(o[i],i);return o}return[]}function P(){return g?document.documentElement:document.scrollingElement}function k(t,e,n,o,i){if(t.getBoundingClientRect||t===window){var r,a,l,s,c,u,d;if(t!==window&&t!==P()?(r=t.getBoundingClientRect(),a=r.top,l=r.left,s=r.bottom,c=r.right,u=r.height,d=r.width):(a=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!g))do{if(i&&i.getBoundingClientRect&&("none"!==I(i,"transform")||n&&"static"!==I(i,"position"))){var h=i.getBoundingClientRect();a-=h.top+parseInt(I(i,"border-top-width")),l-=h.left+parseInt(I(i,"border-left-width")),s=a+r.height,c=l+r.width;break}}while(i=i.parentNode);if(o&&t!==window){var f=A(i||t),p=f&&f.a,m=f&&f.d;f&&(a/=m,l/=p,d/=p,u/=m,s=a+u,c=l+d)}return{top:a,left:l,bottom:s,right:c,width:d,height:u}}}function j(t,e,n){var o=B(t,!0),i=k(t)[e];while(o){var r=k(o)[n],a=void 0;if(a="top"===n||"left"===n?i>=r:i<=r,!a)return o;if(o===P())break;o=B(o,!1)}return!1}function R(t,e,n){var o=0,i=0,r=t.children;while(i<r.length){if("none"!==r[i].style.display&&r[i]!==Jt.ghost&&r[i]!==Jt.dragged&&x(r[i],n.draggable,t,!1)){if(o===e)return r[i];o++}i++}return null}function F(t,e){var n=t.lastElementChild;while(n&&(n===Jt.ghost||"none"===I(n,"display")||e&&!S(n,e)))n=n.previousElementSibling;return n||null}function L(t,e){var n=0;if(!t||!t.parentNode)return-1;while(t=t.previousElementSibling)"TEMPLATE"===t.nodeName.toUpperCase()||t===Jt.clone||e&&!S(t,e)||n++;return n}function X(t){var e=0,n=0,o=P();if(t)do{var i=A(t),r=i.a,a=i.d;e+=t.scrollLeft*r,n+=t.scrollTop*a}while(t!==o&&(t=t.parentNode));return[e,n]}function Y(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n);return-1}function B(t,e){if(!t||!t.getBoundingClientRect)return P();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=I(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return P();if(o||e)return n;o=!0}}}while(n=n.parentNode);return P()}function $(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function H(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function U(t,e){return function(){if(!O){var n=arguments,o=this;1===n.length?t.call(o,n[0]):t.apply(o,n),O=setTimeout((function(){O=void 0}),e)}}}function V(){clearTimeout(O),O=void 0}function W(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function K(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function z(t,e){I(t,"position","absolute"),I(t,"top",e.top),I(t,"left",e.left),I(t,"width",e.width),I(t,"height",e.height)}function G(t){I(t,"position",""),I(t,"top",""),I(t,"left",""),I(t,"width",""),I(t,"height","")}var q="Sortable"+(new Date).getTime();function J(){var t,e=[];return{captureAnimationState:function(){if(e=[],this.options.animation){var t=[].slice.call(this.el.children);t.forEach((function(t){if("none"!==I(t,"display")&&t!==Jt.ghost){e.push({target:t,rect:k(t)});var n=a({},e[e.length-1].rect);if(t.thisAnimationDuration){var o=A(t,!0);o&&(n.top-=o.f,n.left-=o.e)}t.fromRect=n}}))}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(Y(e,{target:t}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(t),void("function"===typeof n&&n());var i=!1,r=0;e.forEach((function(t){var e=0,n=t.target,a=n.fromRect,l=k(n),s=n.prevFromRect,c=n.prevToRect,u=t.rect,d=A(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&H(s,l)&&!H(a,l)&&(u.top-l.top)/(u.left-l.left)===(a.top-l.top)/(a.left-l.left)&&(e=Q(u,s,c,o.options)),H(l,a)||(n.prevFromRect=a,n.prevToRect=l,e||(e=o.options.animation),o.animate(n,u,l,e)),e&&(i=!0,r=Math.max(r,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),e),n.thisAnimationDuration=e)})),clearTimeout(t),i?t=setTimeout((function(){"function"===typeof n&&n()}),r):"function"===typeof n&&n(),e=[]},animate:function(t,e,n,o){if(o){I(t,"transition",""),I(t,"transform","");var i=A(this.el),r=i&&i.a,a=i&&i.d,l=(e.left-n.left)/(r||1),s=(e.top-n.top)/(a||1);t.animatingX=!!l,t.animatingY=!!s,I(t,"transform","translate3d("+l+"px,"+s+"px,0)"),Z(t),I(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),I(t,"transform","translate3d(0,0,0)"),"number"===typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){I(t,"transition",""),I(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),o)}}}}function Z(t){return t.offsetWidth}function Q(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}var tt=[],et={initializeByDefault:!0},nt={mount:function(t){for(var e in et)!et.hasOwnProperty(e)||e in t||(t[e]=et[e]);tt.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var i=t+"Global";tt.forEach((function(o){e[o.pluginName]&&(e[o.pluginName][i]&&e[o.pluginName][i](a({sortable:e},n)),e.options[o.pluginName]&&e[o.pluginName][t]&&e[o.pluginName][t](a({sortable:e},n)))}))},initializePlugins:function(t,e,n,o){for(var i in tt.forEach((function(o){var i=o.pluginName;if(t.options[i]||o.initializeByDefault){var a=new o(t,e,t.options);a.sortable=t,a.options=t.options,t[i]=a,r(n,a.defaults)}})),t.options)if(t.options.hasOwnProperty(i)){var a=this.modifyOption(t,i,t.options[i]);"undefined"!==typeof a&&(t.options[i]=a)}},getEventProperties:function(t,e){var n={};return tt.forEach((function(o){"function"===typeof o.eventProperties&&r(n,o.eventProperties.call(e[o.pluginName],t))})),n},modifyOption:function(t,e,n){var o;return tt.forEach((function(i){t[i.pluginName]&&i.optionListeners&&"function"===typeof i.optionListeners[e]&&(o=i.optionListeners[e].call(t[i.pluginName],n))})),o}};function ot(t){var e=t.sortable,n=t.rootEl,o=t.name,i=t.targetEl,r=t.cloneEl,l=t.toEl,s=t.fromEl,c=t.oldIndex,u=t.newIndex,d=t.oldDraggableIndex,h=t.newDraggableIndex,f=t.originalEvent,p=t.putSortable,v=t.extraEventProperties;if(e=e||n&&n[q],e){var b,y=e.options,w="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||g||m?(b=document.createEvent("Event"),b.initEvent(o,!0,!0)):b=new CustomEvent(o,{bubbles:!0,cancelable:!0}),b.to=l||n,b.from=s||n,b.item=i||n,b.clone=r,b.oldIndex=c,b.newIndex=u,b.oldDraggableIndex=d,b.newDraggableIndex=h,b.originalEvent=f,b.pullMode=p?p.lastPutMode:void 0;var E=a({},v,nt.getEventProperties(o,e));for(var D in E)b[D]=E[D];n&&n.dispatchEvent(b),y[w]&&y[w].call(e,b)}}var it=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,i=s(n,["evt"]);nt.pluginEvent.bind(Jt)(t,e,a({dragEl:at,parentEl:lt,ghostEl:st,rootEl:ct,nextEl:ut,lastDownEl:dt,cloneEl:ht,cloneHidden:ft,dragStarted:xt,putSortable:yt,activeSortable:Jt.active,originalEvent:o,oldIndex:pt,oldDraggableIndex:mt,newIndex:gt,newDraggableIndex:vt,hideGhostForTarget:Kt,unhideGhostForTarget:zt,cloneNowHidden:function(){ft=!0},cloneNowShown:function(){ft=!1},dispatchSortableEvent:function(t){rt({sortable:e,name:t,originalEvent:o})}},i))};function rt(t){ot(a({putSortable:yt,cloneEl:ht,targetEl:at,rootEl:ct,oldIndex:pt,oldDraggableIndex:mt,newIndex:gt,newDraggableIndex:vt},t))}if("undefined"===typeof window||!window.document)throw new Error("Sortable.js requires a window with a document");var at,lt,st,ct,ut,dt,ht,ft,pt,gt,mt,vt,bt,yt,wt,Et,Dt,_t,St,Ct,xt,Ot,Tt,Mt,It,At=!1,Nt=!1,Pt=[],kt=!1,jt=!1,Rt=[],Ft=!1,Lt=[],Xt=y,Yt=m||g?"cssFloat":"float",Bt=!w&&!y&&"draggable"in document.createElement("div"),$t=function(){if(g)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}(),Ht=function(t,e){var n=I(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=R(t,0,e),r=R(t,1,e),a=i&&I(i),l=r&&I(r),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+k(i).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+k(r).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(i&&a["float"]&&"none"!==a["float"]){var u="left"===a["float"]?"left":"right";return!r||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=o&&"none"===n[Yt]||r&&"none"===n[Yt]&&s+c>o)?"vertical":"horizontal"},Ut=function(t,e,n){var o=n?t.left:t.top,i=n?t.right:t.bottom,r=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,s=n?e.width:e.height;return o===a||i===l||o+r/2===a+s/2},Vt=function(t,e){var n;return Pt.some((function(o){if(!F(o)){var i=k(o),r=o[q].options.emptyInsertThreshold,a=t>=i.left-r&&t<=i.right+r,l=e>=i.top-r&&e<=i.bottom+r;return r&&a&&l?n=o:void 0}})),n},Wt=function(t){function e(t,n){return function(o,i,r,a){var l=o.options.group.name&&i.options.group.name&&o.options.group.name===i.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,i,r,a),n)(o,i,r,a);var s=(n?o:i).options.group.name;return!0===t||"string"===typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},i=t.group;i&&"object"==o(i)||(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},Kt=function(){!$t&&st&&I(st,"display","none")},zt=function(){!$t&&st&&I(st,"display","")};document.addEventListener("click",(function(t){if(Nt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Nt=!1,!1}),!0);var Gt=function(t){if(at){t=t.touches?t.touches[0]:t;var e=Vt(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[q]._onDragOver(n)}}},qt=function(t){at&&at.parentNode[q]._isOutsideThisEl(t.target)};function Jt(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=r({},e),t[q]=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 Ht(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!==Jt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var o in nt.initializePlugins(this,t,n),n)!(o in e)&&(e[o]=n[o]);for(var i in Wt(e),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&Bt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?D(t,"pointerdown",this._onTapStart):(D(t,"mousedown",this._onTapStart),D(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(D(t,"dragover",this),D(t,"dragenter",this)),Pt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),r(this,J())}function Zt(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Qt(t,e,n,o,i,r,a,l){var s,c,u=t[q],d=u.options.onMove;return!window.CustomEvent||g||m?(s=document.createEvent("Event"),s.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=i||e,s.relatedRect=r||k(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),d&&(c=d.call(u,s,a)),c}function te(t){t.draggable=!1}function ee(){Ft=!1}function ne(t,e,n){var o=k(F(n.el,n.options.draggable)),i=10;return e?t.clientX>o.right+i||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+i}function oe(t,e,n,o,i,r,a,l){var s=o?t.clientY:t.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,h=!1;if(!a)if(l&&Mt<c*i){if(!kt&&(1===Tt?s>u+c*r/2:s<d-c*r/2)&&(kt=!0),kt)h=!0;else if(1===Tt?s<u+Mt:s>d-Mt)return-Tt}else if(s>u+c*(1-i)/2&&s<d-c*(1-i)/2)return ie(e);return h=h||a,h&&(s<u+c*r/2||s>d-c*r/2)?s>u+c/2?1:-1:0}function ie(t){return L(at)<L(t)?1:-1}function re(t){var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;while(n--)o+=e.charCodeAt(n);return o.toString(36)}function ae(t){Lt.length=0;var e=t.getElementsByTagName("input"),n=e.length;while(n--){var o=e[n];o.checked&&Lt.push(o)}}function le(t){return setTimeout(t,0)}function se(t){return clearTimeout(t)}Jt.prototype={constructor:Jt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Ot=null)},_getDirection:function(t,e){return"function"===typeof this.options.direction?this.options.direction.call(this,t,e,at):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,i=o.preventOnFilter,r=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(ae(n),!at&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||o.disabled)&&!s.isContentEditable&&(l=x(l,o.draggable,n,!1),(!l||!l.animated)&&dt!==l)){if(pt=L(l),mt=L(l,o.draggable),"function"===typeof c){if(c.call(this,t,l,this))return rt({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),it("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=x(s,o.trim(),n,!1),o)return rt({sortable:e,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),it("filter",e,{evt:t}),!0})),c))return void(i&&t.cancelable&&t.preventDefault());o.handle&&!x(s,o.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var o,i=this,r=i.el,a=i.options,l=r.ownerDocument;if(n&&!at&&n.parentNode===r){var s=k(n);if(ct=r,at=n,lt=at.parentNode,ut=at.nextSibling,dt=n,bt=a.group,Jt.dragged=at,wt={target:at,clientX:(e||t).clientX,clientY:(e||t).clientY},St=wt.clientX-s.left,Ct=wt.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,at.style["will-change"]="all",o=function(){it("delayEnded",i,{evt:t}),Jt.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!v&&i.nativeDraggable&&(at.draggable=!0),i._triggerDragStart(t,e),rt({sortable:i,name:"choose",originalEvent:t}),M(at,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){N(at,t.trim(),te)})),D(l,"dragover",Gt),D(l,"mousemove",Gt),D(l,"touchmove",Gt),D(l,"mouseup",i._onDrop),D(l,"touchend",i._onDrop),D(l,"touchcancel",i._onDrop),v&&this.nativeDraggable&&(this.options.touchStartThreshold=4,at.draggable=!0),it("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(m||g))o();else{if(Jt.eventCanceled)return void this._onDrop();D(l,"mouseup",i._disableDelayedDrag),D(l,"touchend",i._disableDelayedDrag),D(l,"touchcancel",i._disableDelayedDrag),D(l,"mousemove",i._delayedDragTouchMoveHandler),D(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&D(l,"pointermove",i._delayedDragTouchMoveHandler),i._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(){at&&te(at),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._disableDelayedDrag),_(t,"touchend",this._disableDelayedDrag),_(t,"touchcancel",this._disableDelayedDrag),_(t,"mousemove",this._delayedDragTouchMoveHandler),_(t,"touchmove",this._delayedDragTouchMoveHandler),_(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?D(document,"pointermove",this._onTouchMove):D(document,e?"touchmove":"mousemove",this._onTouchMove):(D(at,"dragend",this),D(ct,"dragstart",this._onDragStart));try{document.selection?le((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(t,e){if(At=!1,ct&&at){it("dragStarted",this,{evt:e}),this.nativeDraggable&&D(document,"dragover",qt);var n=this.options;!t&&M(at,n.dragClass,!1),M(at,n.ghostClass,!0),Jt.active=this,t&&this._appendGhost(),rt({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(Et){this._lastX=Et.clientX,this._lastY=Et.clientY,Kt();var t=document.elementFromPoint(Et.clientX,Et.clientY),e=t;while(t&&t.shadowRoot){if(t=t.shadowRoot.elementFromPoint(Et.clientX,Et.clientY),t===e)break;e=t}if(at.parentNode[q]._isOutsideThisEl(t),e)do{if(e[q]){var n=void 0;if(n=e[q]._onDragOver({clientX:Et.clientX,clientY:Et.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);zt()}},_onTouchMove:function(t){if(wt){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,i=t.touches?t.touches[0]:t,r=st&&A(st),a=st&&r&&r.a,l=st&&r&&r.d,s=Xt&&It&&X(It),c=(i.clientX-wt.clientX+o.x)/(a||1)+(s?s[0]-Rt[0]:0)/(a||1),u=(i.clientY-wt.clientY+o.y)/(l||1)+(s?s[1]-Rt[1]:0)/(l||1);if(!Jt.active&&!At){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(st){r?(r.e+=c-(Dt||0),r.f+=u-(_t||0)):r={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");I(st,"webkitTransform",d),I(st,"mozTransform",d),I(st,"msTransform",d),I(st,"transform",d),Dt=c,_t=u,Et=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!st){var t=this.options.fallbackOnBody?document.body:ct,e=k(at,!0,Xt,!0,t),n=this.options;if(Xt){It=t;while("static"===I(It,"position")&&"none"===I(It,"transform")&&It!==document)It=It.parentNode;It!==document.body&&It!==document.documentElement?(It===document&&(It=P()),e.top+=It.scrollTop,e.left+=It.scrollLeft):It=P(),Rt=X(It)}st=at.cloneNode(!0),M(st,n.ghostClass,!1),M(st,n.fallbackClass,!0),M(st,n.dragClass,!0),I(st,"transition",""),I(st,"transform",""),I(st,"box-sizing","border-box"),I(st,"margin",0),I(st,"top",e.top),I(st,"left",e.left),I(st,"width",e.width),I(st,"height",e.height),I(st,"opacity","0.8"),I(st,"position",Xt?"absolute":"fixed"),I(st,"zIndex","100000"),I(st,"pointerEvents","none"),Jt.ghost=st,t.appendChild(st),I(st,"transform-origin",St/parseInt(st.style.width)*100+"% "+Ct/parseInt(st.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,i=n.options;it("dragStart",this,{evt:t}),Jt.eventCanceled?this._onDrop():(it("setupClone",this),Jt.eventCanceled||(ht=K(at),ht.draggable=!1,ht.style["will-change"]="",this._hideClone(),M(ht,this.options.chosenClass,!1),Jt.clone=ht),n.cloneId=le((function(){it("clone",n),Jt.eventCanceled||(n.options.removeCloneOnHide||ct.insertBefore(ht,at),n._hideClone(),rt({sortable:n,name:"clone"}))})),!e&&M(at,i.dragClass,!0),e?(Nt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(_(document,"mouseup",n._onDrop),_(document,"touchend",n._onDrop),_(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(n,o,at)),D(document,"drop",n),I(at,"transform","translateZ(0)")),At=!0,n._dragStartId=le(n._dragStarted.bind(n,e,t)),D(document,"selectstart",n),xt=!0,b&&I(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,o,i,r=this.el,l=t.target,s=this.options,c=s.group,u=Jt.active,d=bt===c,h=s.sort,f=yt||u,p=this,g=!1;if(!Ft){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),l=x(l,s.draggable,r,!0),N("dragOver"),Jt.eventCanceled)return g;if(at.contains(t.target)||l.animated&&l.animatingX&&l.animatingY||p._ignoreWhileAnimating===l)return R(!1);if(Nt=!1,u&&!s.disabled&&(d?h||(o=!ct.contains(at)):yt===this||(this.lastPutMode=bt.checkPull(this,u,at,t))&&c.checkPut(this,u,at,t))){if(i="vertical"===this._getDirection(t,l),e=k(at),N("dragOverValid"),Jt.eventCanceled)return g;if(o)return lt=ct,P(),this._hideClone(),N("revert"),Jt.eventCanceled||(ut?ct.insertBefore(at,ut):ct.appendChild(at)),R(!0);var m=F(r,s.draggable);if(!m||ne(t,i,this)&&!m.animated){if(m===at)return R(!1);if(m&&r===t.target&&(l=m),l&&(n=k(l)),!1!==Qt(ct,r,at,e,l,n,t,!!l))return P(),r.appendChild(at),lt=r,X(),R(!0)}else if(l.parentNode===r){n=k(l);var v,b,y=0,w=at.parentNode!==r,E=!Ut(at.animated&&at.toRect||e,l.animated&&l.toRect||n,i),D=i?"top":"left",_=j(l,"top","top")||j(at,"top","top"),S=_?_.scrollTop:void 0;if(Ot!==l&&(v=n[D],kt=!1,jt=!E&&s.invertSwap||w),y=oe(t,l,n,i,E?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,jt,Ot===l),0!==y){var C=L(at);do{C-=y,b=lt.children[C]}while(b&&("none"===I(b,"display")||b===st))}if(0===y||b===l)return R(!1);Ot=l,Tt=y;var O=l.nextElementSibling,T=!1;T=1===y;var A=Qt(ct,r,at,e,l,n,t,T);if(!1!==A)return 1!==A&&-1!==A||(T=1===A),Ft=!0,setTimeout(ee,30),P(),T&&!O?r.appendChild(at):l.parentNode.insertBefore(at,T?O:l),_&&W(_,0,S-_.scrollTop),lt=at.parentNode,void 0===v||jt||(Mt=Math.abs(v-k(l)[D])),X(),R(!0)}if(r.contains(at))return R(!1)}return!1}function N(s,c){it(s,p,a({evt:t,isOwner:d,axis:i?"vertical":"horizontal",revert:o,dragRect:e,targetRect:n,canSort:h,fromSortable:f,target:l,completed:R,onMove:function(n,o){return Qt(ct,r,at,e,n,k(n),t,o)},changed:X},c))}function P(){N("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function R(e){return N("dragOverCompleted",{insertion:e}),e&&(d?u._hideClone():u._showClone(p),p!==f&&(M(at,yt?yt.options.ghostClass:u.options.ghostClass,!1),M(at,s.ghostClass,!0)),yt!==p&&p!==Jt.active?yt=p:p===Jt.active&&yt&&(yt=null),f===p&&(p._ignoreWhileAnimating=l),p.animateAll((function(){N("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(l===at&&!at.animated||l===r&&!l.animated)&&(Ot=null),s.dragoverBubble||t.rootEl||l===document||(at.parentNode[q]._isOutsideThisEl(t.target),!e&&Gt(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),g=!0}function X(){gt=L(at),vt=L(at,s.draggable),rt({sortable:p,name:"change",toEl:r,newIndex:gt,newDraggableIndex:vt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){_(document,"mousemove",this._onTouchMove),_(document,"touchmove",this._onTouchMove),_(document,"pointermove",this._onTouchMove),_(document,"dragover",Gt),_(document,"mousemove",Gt),_(document,"touchmove",Gt)},_offUpEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._onDrop),_(t,"touchend",this._onDrop),_(t,"pointerup",this._onDrop),_(t,"touchcancel",this._onDrop),_(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;gt=L(at),vt=L(at,n.draggable),it("drop",this,{evt:t}),lt=at&&at.parentNode,gt=L(at),vt=L(at,n.draggable),Jt.eventCanceled?this._nulling():(At=!1,jt=!1,kt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),se(this.cloneId),se(this._dragStartId),this.nativeDraggable&&(_(document,"drop",this),_(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),b&&I(document.body,"user-select",""),t&&(xt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),st&&st.parentNode&&st.parentNode.removeChild(st),(ct===lt||yt&&"clone"!==yt.lastPutMode)&&ht&&ht.parentNode&&ht.parentNode.removeChild(ht),at&&(this.nativeDraggable&&_(at,"dragend",this),te(at),at.style["will-change"]="",xt&&!At&&M(at,yt?yt.options.ghostClass:this.options.ghostClass,!1),M(at,this.options.chosenClass,!1),rt({sortable:this,name:"unchoose",toEl:lt,newIndex:null,newDraggableIndex:null,originalEvent:t}),ct!==lt?(gt>=0&&(rt({rootEl:lt,name:"add",toEl:lt,fromEl:ct,originalEvent:t}),rt({sortable:this,name:"remove",toEl:lt,originalEvent:t}),rt({rootEl:lt,name:"sort",toEl:lt,fromEl:ct,originalEvent:t}),rt({sortable:this,name:"sort",toEl:lt,originalEvent:t})),yt&&yt.save()):gt!==pt&&gt>=0&&(rt({sortable:this,name:"update",toEl:lt,originalEvent:t}),rt({sortable:this,name:"sort",toEl:lt,originalEvent:t})),Jt.active&&(null!=gt&&-1!==gt||(gt=pt,vt=mt),rt({sortable:this,name:"end",toEl:lt,originalEvent:t}),this.save()))),this._nulling())},_nulling:function(){it("nulling",this),ct=at=lt=st=ut=ht=dt=ft=wt=Et=xt=gt=vt=pt=mt=Ot=Tt=yt=bt=Jt.dragged=Jt.ghost=Jt.clone=Jt.active=null,Lt.forEach((function(t){t.checked=!0})),Lt.length=Dt=_t=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":at&&(this._onDragOver(t),Zt(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,i=n.length,r=this.options;o<i;o++)t=n[o],x(t,r.draggable,this.el,!1)&&e.push(t.getAttribute(r.dataIdAttr)||re(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach((function(t,o){var i=n.children[o];x(i,this.options.draggable,n,!1)&&(e[t]=i)}),this),t.forEach((function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return x(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=nt.modifyOption(this,t,e);n[t]="undefined"!==typeof o?o:e,"group"===t&&Wt(n)},destroy:function(){it("destroy",this);var t=this.el;t[q]=null,_(t,"mousedown",this._onTapStart),_(t,"touchstart",this._onTapStart),_(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(_(t,"dragover",this),_(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),Pt.splice(Pt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ft){if(it("hideClone",this),Jt.eventCanceled)return;I(ht,"display","none"),this.options.removeCloneOnHide&&ht.parentNode&&ht.parentNode.removeChild(ht),ft=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(ft){if(it("showClone",this),Jt.eventCanceled)return;ct.contains(at)&&!this.options.group.revertClone?ct.insertBefore(ht,at):ut?ct.insertBefore(ht,ut):ct.appendChild(ht),this.options.group.revertClone&&this.animate(at,ht),I(ht,"display",""),ft=!1}}else this._hideClone()}},D(document,"touchmove",(function(t){(Jt.active||At)&&t.cancelable&&t.preventDefault()})),Jt.utils={on:D,off:_,css:I,find:N,is:function(t,e){return!!x(t,e,t,!1)},extend:$,throttle:U,closest:x,toggleClass:M,clone:K,index:L,nextTick:le,cancelNextTick:se,detectDirection:Ht,getChild:R},Jt.get=function(t){return t[q]},Jt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Jt.utils=a({},Jt.utils,t.utils)),nt.mount(t)}))},Jt.create=function(t,e){return new Jt(t,e)},Jt.version=f;var ce,ue,de,he,fe,pe,ge=[],me=!1;function ve(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?D(document,"dragover",this._handleAutoScroll):this.options.supportPointer?D(document,"pointermove",this._handleFallbackAutoScroll):e.touches?D(document,"touchmove",this._handleFallbackAutoScroll):D(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):(_(document,"pointermove",this._handleFallbackAutoScroll),_(document,"touchmove",this._handleFallbackAutoScroll),_(document,"mousemove",this._handleFallbackAutoScroll)),ye(),be(),V()},nulling:function(){fe=ue=ce=me=pe=de=he=null,ge.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,o=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(o,i);if(fe=t,e||m||g||b){Ee(t,this.options,r,e);var a=B(r,!0);!me||pe&&o===de&&i===he||(pe&&ye(),pe=setInterval((function(){var r=B(document.elementFromPoint(o,i),!0);r!==a&&(a=r,be()),Ee(t,n.options,r,e)}),10),de=o,he=i)}else{if(!this.options.bubbleScroll||B(r,!0)===P())return void be();Ee(t,this.options,B(r,!1),!1)}}},r(t,{pluginName:"scroll",initializeByDefault:!0})}function be(){ge.forEach((function(t){clearInterval(t.pid)})),ge=[]}function ye(){clearInterval(pe)}var we,Ee=U((function(t,e,n,o){if(e.scroll){var i,r=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,c=P(),u=!1;ue!==n&&(ue=n,be(),ce=e.scroll,i=e.scrollFn,!0===ce&&(ce=B(n,!0)));var d=0,h=ce;do{var f=h,p=k(f),g=p.top,m=p.bottom,v=p.left,b=p.right,y=p.width,w=p.height,E=void 0,D=void 0,_=f.scrollWidth,S=f.scrollHeight,C=I(f),x=f.scrollLeft,O=f.scrollTop;f===c?(E=y<_&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),D=w<S&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(E=y<_&&("auto"===C.overflowX||"scroll"===C.overflowX),D=w<S&&("auto"===C.overflowY||"scroll"===C.overflowY));var T=E&&(Math.abs(b-r)<=l&&x+y<_)-(Math.abs(v-r)<=l&&!!x),M=D&&(Math.abs(m-a)<=l&&O+w<S)-(Math.abs(g-a)<=l&&!!O);if(!ge[d])for(var A=0;A<=d;A++)ge[A]||(ge[A]={});ge[d].vx==T&&ge[d].vy==M&&ge[d].el===f||(ge[d].el=f,ge[d].vx=T,ge[d].vy=M,clearInterval(ge[d].pid),0==T&&0==M||(u=!0,ge[d].pid=setInterval(function(){o&&0===this.layer&&Jt.active._onTouchMove(fe);var e=ge[this.layer].vy?ge[this.layer].vy*s:0,n=ge[this.layer].vx?ge[this.layer].vx*s:0;"function"===typeof i&&"continue"!==i.call(Jt.dragged.parentNode[q],n,e,t,fe,ge[this.layer].el)||W(ge[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&h!==c&&(h=B(h,!1)));me=u}}),30),De=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,i=t.activeSortable,r=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget,s=n||i;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(r("spill"),this.onSpill({dragEl:o,putSortable:n}))};function _e(){}function Se(){}function Ce(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;we=e},dragOverValid:function(t){var e=t.completed,n=t.target,o=t.onMove,i=t.activeSortable,r=t.changed,a=t.cancel;if(i.options.swap){var l=this.sortable.el,s=this.options;if(n&&n!==l){var c=we;!1!==o(n)?(M(n,s.swapClass,!0),we=n):we=null,c&&c!==we&&M(c,s.swapClass,!1)}r(),e(!0),a()}},drop:function(t){var e=t.activeSortable,n=t.putSortable,o=t.dragEl,i=n||this.sortable,r=this.options;we&&M(we,r.swapClass,!1),we&&(r.swap||n&&n.options.swap)&&o!==we&&(i.captureAnimationState(),i!==e&&e.captureAnimationState(),xe(o,we),i.animateAll(),i!==e&&e.animateAll())},nulling:function(){we=null}},r(t,{pluginName:"swap",eventProperties:function(){return{swapItem:we}}})}function xe(t,e){var n,o,i=t.parentNode,r=e.parentNode;i&&r&&!i.isEqualNode(e)&&!r.isEqualNode(t)&&(n=L(t),o=L(e),i.isEqualNode(r)&&n<o&&o++,i.insertBefore(e,i.children[n]),r.insertBefore(t,r.children[o]))}_e.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=R(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:De},r(_e,{pluginName:"revertOnSpill"}),Se.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,o=n||this.sortable;o.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),o.animateAll()},drop:De},r(Se,{pluginName:"removeOnSpill"});var Oe,Te,Me,Ie,Ae,Ne=[],Pe=[],ke=!1,je=!1,Re=!1;function Fe(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?D(document,"pointerup",this._deselectMultiDrag):(D(document,"mouseup",this._deselectMultiDrag),D(document,"touchend",this._deselectMultiDrag)),D(document,"keydown",this._checkKeyDown),D(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,n){var o="";Ne.length&&Te===t?Ne.forEach((function(t,e){o+=(e?", ":"")+t.textContent})):o=n.textContent,e.setData("Text",o)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;Me=e},delayEnded:function(){this.isMultiDrag=~Ne.indexOf(Me)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var o=0;o<Ne.length;o++)Pe.push(K(Ne[o])),Pe[o].sortableIndex=Ne[o].sortableIndex,Pe[o].draggable=!1,Pe[o].style["will-change"]="",M(Pe[o],this.options.selectedClass,!1),Ne[o]===Me&&M(Pe[o],this.options.chosenClass,!1);e._hideClone(),n()}},clone:function(t){var e=t.sortable,n=t.rootEl,o=t.dispatchSortableEvent,i=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Ne.length&&Te===e&&(Xe(!0,n),o("clone"),i()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,o=t.cancel;this.isMultiDrag&&(Xe(!1,n),Pe.forEach((function(t){I(t,"display","")})),e(),Ae=!1,o())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),o=t.cancel;this.isMultiDrag&&(Pe.forEach((function(t){I(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),n(),Ae=!0,o())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&Te&&Te.multiDrag._deselectMultiDrag(),Ne.forEach((function(t){t.sortableIndex=L(t)})),Ne=Ne.sort((function(t,e){return t.sortableIndex-e.sortableIndex})),Re=!0},dragStarted:function(t){var e=this,n=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Ne.forEach((function(t){t!==Me&&I(t,"position","absolute")}));var o=k(Me,!1,!0,!0);Ne.forEach((function(t){t!==Me&&z(t,o)})),je=!0,ke=!0}n.animateAll((function(){je=!1,ke=!1,e.options.animation&&Ne.forEach((function(t){G(t)})),e.options.sort&&Ye()}))}},dragOver:function(t){var e=t.target,n=t.completed,o=t.cancel;je&&~Ne.indexOf(e)&&(n(!1),o())},revert:function(t){var e=t.fromSortable,n=t.rootEl,o=t.sortable,i=t.dragRect;Ne.length>1&&(Ne.forEach((function(t){o.addAnimationState({target:t,rect:je?k(t):i}),G(t),t.fromRect=i,e.removeAnimationState(t)})),je=!1,Le(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,o=t.insertion,i=t.activeSortable,r=t.parentEl,a=t.putSortable,l=this.options;if(o){if(n&&i._hideClone(),ke=!1,l.animation&&Ne.length>1&&(je||!n&&!i.options.sort&&!a)){var s=k(Me,!1,!0,!0);Ne.forEach((function(t){t!==Me&&(z(t,s),r.appendChild(t))})),je=!0}if(!n)if(je||Ye(),Ne.length>1){var c=Ae;i._showClone(e),i.options.animation&&!Ae&&c&&Pe.forEach((function(t){i.addAnimationState({target:t,rect:Ie}),t.fromRect=Ie,t.thisAnimationDuration=null}))}else i._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,o=t.activeSortable;if(Ne.forEach((function(t){t.thisAnimationDuration=null})),o.options.animation&&!n&&o.multiDrag.isMultiDrag){Ie=r({},e);var i=A(Me,!0);Ie.top-=i.f,Ie.left-=i.e}},dragOverAnimationComplete:function(){je&&(je=!1,Ye())},drop:function(t){var e=t.originalEvent,n=t.rootEl,o=t.parentEl,i=t.sortable,r=t.dispatchSortableEvent,a=t.oldIndex,l=t.putSortable,s=l||this.sortable;if(e){var c=this.options,u=o.children;if(!Re)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),M(Me,c.selectedClass,!~Ne.indexOf(Me)),~Ne.indexOf(Me))Ne.splice(Ne.indexOf(Me),1),Oe=null,ot({sortable:i,rootEl:n,name:"deselect",targetEl:Me,originalEvt:e});else{if(Ne.push(Me),ot({sortable:i,rootEl:n,name:"select",targetEl:Me,originalEvt:e}),e.shiftKey&&Oe&&i.el.contains(Oe)){var d,h,f=L(Oe),p=L(Me);if(~f&&~p&&f!==p)for(p>f?(h=f,d=p):(h=p,d=f+1);h<d;h++)~Ne.indexOf(u[h])||(M(u[h],c.selectedClass,!0),Ne.push(u[h]),ot({sortable:i,rootEl:n,name:"select",targetEl:u[h],originalEvt:e}))}else Oe=Me;Te=s}if(Re&&this.isMultiDrag){if((o[q].options.sort||o!==n)&&Ne.length>1){var g=k(Me),m=L(Me,":not(."+this.options.selectedClass+")");if(!ke&&c.animation&&(Me.thisAnimationDuration=null),s.captureAnimationState(),!ke&&(c.animation&&(Me.fromRect=g,Ne.forEach((function(t){if(t.thisAnimationDuration=null,t!==Me){var e=je?k(t):g;t.fromRect=e,s.addAnimationState({target:t,rect:e})}}))),Ye(),Ne.forEach((function(t){u[m]?o.insertBefore(t,u[m]):o.appendChild(t),m++})),a===L(Me))){var v=!1;Ne.forEach((function(t){t.sortableIndex===L(t)||(v=!0)})),v&&r("update")}Ne.forEach((function(t){G(t)})),s.animateAll()}Te=s}(n===o||l&&"clone"!==l.lastPutMode)&&Pe.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=Re=!1,Pe.length=0},destroyGlobal:function(){this._deselectMultiDrag(),_(document,"pointerup",this._deselectMultiDrag),_(document,"mouseup",this._deselectMultiDrag),_(document,"touchend",this._deselectMultiDrag),_(document,"keydown",this._checkKeyDown),_(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!Re&&Te===this.sortable&&(!t||!x(t.target,this.options.draggable,this.sortable.el,!1))&&(!t||0===t.button))while(Ne.length){var e=Ne[0];M(e,this.options.selectedClass,!1),Ne.shift(),ot({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},r(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[q];e&&e.options.multiDrag&&!~Ne.indexOf(t)&&(Te&&Te!==e&&(Te.multiDrag._deselectMultiDrag(),Te=e),M(t,e.options.selectedClass,!0),Ne.push(t))},deselect:function(t){var e=t.parentNode[q],n=Ne.indexOf(t);e&&e.options.multiDrag&&~n&&(M(t,e.options.selectedClass,!1),Ne.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return Ne.forEach((function(o){var i;e.push({multiDragElement:o,index:o.sortableIndex}),i=je&&o!==Me?-1:je?L(o,":not(."+t.options.selectedClass+")"):L(o),n.push({multiDragElement:o,index:i})})),{items:c(Ne),clones:[].concat(Pe),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return t=t.toLowerCase(),"ctrl"===t?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function Le(t,e){Ne.forEach((function(n,o){var i=e.children[n.sortableIndex+(t?Number(o):0)];i?e.insertBefore(n,i):e.appendChild(n)}))}function Xe(t,e){Pe.forEach((function(n,o){var i=e.children[n.sortableIndex+(t?Number(o):0)];i?e.insertBefore(n,i):e.appendChild(n)}))}function Ye(){Ne.forEach((function(t){t!==Me&&t.parentNode&&t.parentNode.removeChild(t)}))}Jt.mount(new ve),Jt.mount(Se,_e),e["default"]=Jt},c649:function(t,e,n){"use strict";(function(t){function o(){return"undefined"!==typeof window?window.console:t.console}n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return i})),n.d(e,"d",(function(){return s}));const i=o();function r(t){const e=Object.create(null);return function(n){const o=e[n];return o||(e[n]=t(n))}}const a=/-(\w)/g,l=r(t=>t.replace(a,(t,e)=>e?e.toUpperCase():""));function s(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function c(t,e,n){const o=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,o)}}).call(this,n("5dde"))},dc8c:function(t,e,n){"use strict";var o;(n.r(e),"undefined"!==typeof window)&&(n("e67d"),(o=window.document.currentScript)&&(o=o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=o[1]));var i=n("c649");function r(t,e,n){return void 0===n?t:(t=t||{},t[e]=n,t)}function a(t,e){return t.map(t=>t.elm).indexOf(e)}function l(t,e,n,o){if(!t)return[];const i=t.map(t=>t.elm),r=e.length-o,a=[...e].map((t,e)=>e>=r?i.length:i.indexOf(t));return n?a.filter(t=>-1!==t):a}function s(t,e){this.$nextTick(()=>this.$emit(t.toLowerCase(),e))}function c(t){return e=>{null!==this.realList&&(i["b"].log(t),this["onDrag"+t](e)),s.call(this,t,e)}}function u(t){return["transition-group","TransitionGroup"].includes(t)}function d(t){if(!t||1!==t.length)return!1;const[{componentOptions:e}]=t;return!!e&&u(e.tag)}function h(t,e,n){return t[n]||(e[n]?e[n]():void 0)}function f(t,e,n){let o=0,i=0;const r=h(e,n,"header");r&&(o=r.length,t=t?[...r,...t]:[...r]);const a=h(e,n,"footer");return a&&(i=a.length,t=t?[...t,...a]:[...a]),{children:t,headerOffset:o,footerOffset:i}}function p(t,e){let n=null;const o=(t,e)=>{n=r(n,t,e)},i=Object.keys(t).filter(t=>"id"===t||t.startsWith("data-")).reduce((e,n)=>{return e[n]=t[n],e},{});if(o("attrs",i),!e)return n;const{on:a,props:l,attrs:s}=e;return o("on",a),o("props",l),Object.assign(n.attrs,s),n}const g=["Start","Add","Remove","Update","End","Drag"],m=["Choose","Unchoose","Sort","Filter","Clone"],v=["Move",...g,...m].map(t=>"on"+t);var b=null;const y={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:t=>{return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},w={name:"draggable",inheritAttrs:!1,props:y,data(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render(t){const e=this.$slots.default;this.transitionMode=d(e);const{children:n,headerOffset:o,footerOffset:i}=f(e,this.$slots,this.$scopedSlots);this.headerOffset=o,this.footerOffset=i;const r=p(this.$attrs,this.componentData);return t(this.getTag(),r,n)},created(){null!==this.list&&null!==this.value&&i["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&i["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&i["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted(){if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error(`Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ${this.getTag()}`);const t={};g.forEach(e=>{t["on"+e]=c.call(this,e)}),m.forEach(e=>{t["on"+e]=s.bind(this,e)});const e=Object.keys(this.$attrs).reduce((t,e)=>{return t[Object(i["a"])(e)]=this.$attrs[e],t},{}),o=Object.assign({},this.options,e,t,{onMove:(t,e)=>{return this.onDragMove(t,e)}});!("draggable"in o)&&(o.draggable=">*");const r=n("a696").default;this._sortable=new r(this.rootContainer,o),this.computeIndexes()},beforeDestroy(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer(){return this.transitionMode?this.$el.children[0]:this.$el},realList(){return this.list?this.list:this.value}},watch:{options:{handler(t){this.updateOptions(t)},deep:!0},$attrs:{handler(t){this.updateOptions(t)},deep:!0},realList(){this.computeIndexes()}},methods:{getIsFunctional(){const{fnOptions:t}=this._vnode;return t&&t.functional},getTag(){return this.tag||this.element},updateOptions(t){for(var e in t){const n=Object(i["a"])(e);-1===v.indexOf(n)&&this._sortable.option(n,t[e])}},getChildrenNodes(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;const t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes(){this.$nextTick(()=>{this.visibleIndexes=l(this.getChildrenNodes(),this.rootContainer.children,this.transitionMode,this.footerOffset)})},getUnderlyingVm(t){const e=a(this.getChildrenNodes()||[],t);if(-1===e)return null;const n=this.realList[e];return{index:e,element:n}},getUnderlyingPotencialDraggableComponent({__vue__:t}){return t&&t.$options&&u(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges(t){this.$nextTick(()=>{this.$emit("change",t)})},alterList(t){if(this.list)return void t(this.list);const e=[...this.value];t(e),this.$emit("input",e)},spliceList(){const t=t=>t.splice(...arguments);this.alterList(t)},updatePosition(t,e){const n=n=>n.splice(e,0,n.splice(t,1)[0]);this.alterList(n)},getRelatedContextFromMoveEvent({to:t,related:e}){const n=this.getUnderlyingPotencialDraggableComponent(t);if(!n)return{component:n};const o=n.realList,i={list:o,component:n};if(t!==e&&o&&n.getUnderlyingVm){const t=n.getUnderlyingVm(e);if(t)return Object.assign(t,i)}return i},getVmIndex(t){const e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent(){return this.$slots.default[0].componentInstance},resetTransitionData(t){if(!this.noTransitionOnDrag||!this.transitionMode)return;var e=this.getChildrenNodes();e[t].data=null;const n=this.getComponent();n.children=[],n.kept=void 0},onDragStart(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),b=t.item},onDragDrag(t){i["b"].log(t)},onDragAdd(t){const e=t.item._underlying_vm_;if(void 0===e)return;Object(i["d"])(t.item);const n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();const o={element:e,newIndex:n};this.emitChanges({added:o})},onDragRemove(t){if(Object(i["c"])(this.rootContainer,t.item,t.oldIndex),"clone"===t.pullMode)return void Object(i["d"])(t.clone);const e=this.context.index;this.spliceList(e,1);const n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})},onDragUpdate(t){Object(i["d"])(t.item),Object(i["c"])(t.from,t.item,t.oldIndex);const e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);const o={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:o})},updateProperty(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex(t,e){if(!t.element)return 0;const n=[...e.to.children].filter(t=>"none"!==t.style["display"]),o=n.indexOf(e.related),i=t.component.getVmIndex(o),r=-1!==n.indexOf(b);return r||!e.willInsertAfter?i:i+1},onDragMove(t,e){const n=this.move;if(!n||!this.realList)return!0;const o=this.getRelatedContextFromMoveEvent(t),i=this.context,r=this.computeFutureIndex(o,t);Object.assign(i,{futureIndex:r});const a=Object.assign({},t,{relatedContext:o,draggedContext:i});return n(a,e)},onDragEnd(){this.computeIndexes(),b=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("hltdraggable",w);var E=w;e["default"]=E},e67d:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(o){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(o.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)}})}));
//# sourceMappingURL=vuedraggable.umd.min.js.map
{
"name": "hlt-drag",
"version": "2.23.9",
"version": "2.24.0",
"description": "draggable component for vue",

@@ -89,4 +89,4 @@ "license": "MIT",

"__npminstall_done": "Fri Sep 27 2019 11:27:40 GMT+0800 (中国标准时间)",
"_from": "vuedraggable@2.23.9",
"_resolved": "https://registry.npm.taobao.org/vuedraggable/download/vuedraggable-2.23.9.tgz"
"_from": "vuedraggable@2.24.0",
"_resolved": "https://registry.npm.taobao.org/vuedraggable/download/vuedraggable-2.24.0.tgz"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc