!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,p,f,g,v,m,_,b,D,y={},w=/\s+/g,T=/left|right|inline/,C="Sortable"+(newDate).getTime(),S=window,E=S.document,x=S.parseInt,N=S.setTimeout,k=S.jQuery||S.Zepto,B=S.Polymer,P=!1,Y="draggable"inE.createElement("div"),X=!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie)/i)&&((D=E.createElement("x")).style.cssText="pointer-events:auto","auto"===D.style.pointerEvents),O=!1,I=Math.abs,R=Math.min,A=[],M=[],L=function(){return!1},F=ot(function(t,e,n){if(n&&e.scroll){varo,i,r,a,d,h,u=n[C],p=e.scrollSensitivity,f=e.scrollSpeed,g=t.clientX,v=t.clientY,m=window.innerWidth,_=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=l.getBoundingClientRect(),r=(I(i.right-g)<=p)-(I(i.left-g)<=p),a=(I(i.bottom-v)<=p)-(I(i.top-v)<=p)),r||a||(a=(_-v<=p)-(v<=p),((r=(m-g<=p)-(g<=p))||a)&&(o=S)),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(){if(h=a?a*f:0,d=r?r*f:0,"function"==typeofc)returnc.call(u,d,h,t);o===S?S.scrollTo(S.pageXOffset+d,S.pageYOffset+h):(o.scrollTop+=h,o.scrollLeft+=d)},24)))}},30),U=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(){P={capture:!1,passive:!1}}}))}catch(t){}functionj(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[C]=this;varn={group:null,sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(t.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",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,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==j.supportPointer};for(varoinn)!(oine)&&(e[o]=n[o]);U(e);for(variinthis)"_"===i.charAt(0)&&"function"==typeofthis[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&Y,V(t,"mousedown",this._onTapStart),V(t,"touchstart",this._onTapStart),e.supportPointer&&V(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(V(t,"dragover",this),V(t,"dragenter",this)),M.push(this._onDragOver),e.store&&this.sort(e.store.get(this))}functionH(e,n){"clone"!==e.lastPullMode&&(n=!0),o&&o.state!==n&&(G(o,"display",n?"none":""),n||o.state&&(e.options.group.revertClone?(i.insertBefore(o,r),e._animate(t,o)):i.insertBefore(o,t)),o.state=n)}functionW(t,e,n){if(t){n=n||E;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}functionV(t,e,n){t.addEventListener(e,n,P)}functionq(t,e,n){t.removeEventListener(e,n,P)}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)returnE.defaultView&&E.defaultView.getComputedStyle?n=E.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void0===e?n:n[e];eino||(e="-webkit-"+e),o[e]=n+("string"==typeofn?"":"px")}}functionQ(t,e,n){if(t){varo=t.get