!function(t){"use strict";"function"==typeofdefine&&define.amd?define(t):"undefined"!=typeofmodule&&void0!==module.exports?module.exports=t():window.Sortable=t()}(function(){"use strict";if("undefined"==typeofwindow||!window.document)returnfunction(){thrownewError("Sortable.js requires a window with a document")};vart,e,n,o,i,r,a,l,s,c,d,h,u,f,p,g,v,m,_,b,D,y={},w=/\s+/g,T=/left|right|inline/,S="Sortable"+(newDate).getTime(),E=window,C=E.document,x=E.parseInt,N=E.setTimeout,k=E.jQuery||E.Zepto,P=E.Polymer,Y=!1,X="draggable"inC.createElement("div"),M=!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie)/i)&&((D=C.createElement("x")).style.cssText="pointer-events:auto","auto"===D.style.pointerEvents),I=!1,O=Math.abs,A=Math.min,B=[],H=[],L=function(){return!1},R=ot(function(t,e,n){if(n&&e.scroll){varo,i,r,a,d,h,u=n[S],f=e.scrollSensitivity,p=e.scrollSpeed,g=t.clientX,v=t.clientY,m=window.innerWidth,b=window.innerHeight;if(s!==n&&(l=e.scroll,s=n,c=e.scrollFn,!0===l)){l=n;do{if(l.offsetWidth<l.scrollWidth||l.offsetHeight<l.scrollHeight)break}while(l=l.parentNode)}l&&(o=l,i=st(l),r=(O(i.right-g)<=f)-(O(i.left-g)<=f),a=(O(i.bottom-v)<=f)-(O(i.top-v)<=f)),r||a||(a=(b-v<=f)-(v<=f),((r=(m-g<=f)-(g<=f))||a)&&(o=E)),y.vx===r&&y.vy===a&&y.el===o||(y.el=o,y.vx=r,y.vy=a,clearInterval(y.pid),o&&(y.pid=setInterval(function(){h=a?a*p:0,d=r?r*p:0,"function"==typeofc&&"continue"!==c.call(u,d,h,t,_,o)||(o===E?E.scrollTo(E.pageXOffset+d,E.pageYOffset+h):(o.scrollTop+=h,o.scrollLeft+=d))},24)))}},30),F=function(t){functione(t,e){returnnull!=t&&!0!==t||null!=(t=n.name)?"function"==typeoft?t:function(n,o){vari=o.options.group.name;returne?t:t&&(t.join?t.indexOf(i)>-1:i==t)}:L}varn={},o=t.group;o&&"object"==typeofo||(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n};try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){Y={capture:!1,passive:!1}}}))}catch(t){}functionq(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(t);this.el=t,this.options=e=it({},e),t[S]=this;varn={group:null,sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,swap:!1,draggable:/[uo]l/i.test(t.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",swapClass:"sortable-swap-highlight",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,touchStartThreshold:x(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==q.supportPointer};for(varoinn)!(oine)&&(e[o]=n[o]);F(e);for(variinthis)"_"===i.charAt(0)&&"function"==typeofthis[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&X,U(t,"mousedown",this._onTapStart),U(t,"touchstart",this._onTapStart),e.supportPointer&&U(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(U(t,"dragover",this),U(t,"dragenter",this)),H.push(this._onDragOver),e.store&&this.sort(e.store.get(this))}functionW(e,n){"clone"!==e.lastPullMode&&(n=!0),o&&o.state!==n&&(G(o,"display",n?"none":""),n||o.state&&(e.options.group.revertClone?(ct(i,o,r),e._animate(t,o)):ct(i,o,t)),o.state=n)}functionj(t,e,n){if(t){n=n||C;do{if(">*"===e&&t.parentNode===n||nt(t,e))returnt}while(void0,t=(i=(o=t).host)&&i.nodeType?i:o.parentNode)}varo,i;returnnull}functionU(t,e,n){t.addEventListener(e,n,Y)}functionV(t,e,n){t.removeEventListener(e,n,Y)}functionz(t,e,n){if(t)if(t.classList)t.classList[n?"add":"remove"](e);else{varo=(" "+t.className+" ").replace(w," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(w," ")}}functionG(t,e,n){varo=t&&t.style;if(o){if(void0===n)returnC.defaultView&&C.defaultView.getComputedStyle?n=C.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void0===e?n:n[e];eino||(e="-webkit-"+e),o[e]