UNPKG

quick-admin-vue3-core

Version:

以快(计算机执行效率、开发效率)为核心的后台管理系统开发模板

7 lines 97.4 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Rt=require("vue"),dr=require("./platform-Dl0zaSyI.cjs"),Kr=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");var Cr={exports:{}};/**! * Sortable 1.14.0 * @author RubaXa <trash@rubaxa.org> * @author owenm <owen23355@gmail.com> * @license MIT */function mr(l,r){var n=Object.keys(l);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(l);r&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(l,e).enumerable})),n.push.apply(n,i)}return n}function Ht(l){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?mr(Object(n),!0).forEach(function(i){Hr(l,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach(function(i){Object.defineProperty(l,i,Object.getOwnPropertyDescriptor(n,i))})}return l}function Ge(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ge=function(r){return typeof r}:Ge=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ge(l)}function Hr(l,r,n){return r in l?Object.defineProperty(l,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):l[r]=n,l}function Ft(){return Ft=Object.assign||function(l){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(l[i]=n[i])}return l},Ft.apply(this,arguments)}function Wr(l,r){if(l==null)return{};var n={},i=Object.keys(l),e,f;for(f=0;f<i.length;f++)e=i[f],!(r.indexOf(e)>=0)&&(n[e]=l[e]);return n}function Xr(l,r){if(l==null)return{};var n=Wr(l,r),i,e;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(l);for(e=0;e<f.length;e++)i=f[e],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(l,i)&&(n[i]=l[i])}return n}function Vr(l){return Yr(l)||zr(l)||Jr(l)||Qr()}function Yr(l){if(Array.isArray(l))return lr(l)}function zr(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function Jr(l,r){if(l){if(typeof l=="string")return lr(l,r);var n=Object.prototype.toString.call(l).slice(8,-1);if(n==="Object"&&l.constructor&&(n=l.constructor.name),n==="Map"||n==="Set")return Array.from(l);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lr(l,r)}}function lr(l,r){(r==null||r>l.length)&&(r=l.length);for(var n=0,i=new Array(r);n<r;n++)i[n]=l[n];return i}function Qr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Zr="1.14.0";function Wt(l){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(l)}var Xt=Wt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ce=Wt(/Edge/i),yr=Wt(/firefox/i),Oe=Wt(/safari/i)&&!Wt(/chrome/i)&&!Wt(/android/i),Ar=Wt(/iP(ad|od|hone)/i),kr=Wt(/chrome/i)&&Wt(/android/i),Rr={capture:!1,passive:!1};function Z(l,r,n){l.addEventListener(r,n,!Xt&&Rr)}function Q(l,r,n){l.removeEventListener(r,n,!Xt&&Rr)}function We(l,r){if(r){if(r[0]===">"&&(r=r.substring(1)),l)try{if(l.matches)return l.matches(r);if(l.msMatchesSelector)return l.msMatchesSelector(r);if(l.webkitMatchesSelector)return l.webkitMatchesSelector(r)}catch{return!1}return!1}}function qr(l){return l.host&&l!==document&&l.host.nodeType?l.host:l.parentNode}function Gt(l,r,n,i){if(l){n=n||document;do{if(r!=null&&(r[0]===">"?l.parentNode===n&&We(l,r):We(l,r))||i&&l===n)return l;if(l===n)break}while(l=qr(l))}return null}var Sr=/\s+/g;function lt(l,r,n){if(l&&r)if(l.classList)l.classList[n?"add":"remove"](r);else{var i=(" "+l.className+" ").replace(Sr," ").replace(" "+r+" "," ");l.className=(i+(n?" "+r:"")).replace(Sr," ")}}function w(l,r,n){var i=l&&l.style;if(i){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(l,""):l.currentStyle&&(n=l.currentStyle),r===void 0?n:n[r];!(r in i)&&r.indexOf("webkit")===-1&&(r="-webkit-"+r),i[r]=n+(typeof n=="string"?"":"px")}}function re(l,r){var n="";if(typeof l=="string")n=l;else do{var i=w(l,"transform");i&&i!=="none"&&(n=i+" "+n)}while(!r&&(l=l.parentNode));var e=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return e&&new e(n)}function Nr(l,r,n){if(l){var i=l.getElementsByTagName(r),e=0,f=i.length;if(n)for(;e<f;e++)n(i[e],e);return i}return[]}function Kt(){var l=document.scrollingElement;return l||document.documentElement}function at(l,r,n,i,e){if(!(!l.getBoundingClientRect&&l!==window)){var f,t,o,a,s,c,u;if(l!==window&&l.parentNode&&l!==Kt()?(f=l.getBoundingClientRect(),t=f.top,o=f.left,a=f.bottom,s=f.right,c=f.height,u=f.width):(t=0,o=0,a=window.innerHeight,s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(r||n)&&l!==window&&(e=e||l.parentNode,!Xt))do if(e&&e.getBoundingClientRect&&(w(e,"transform")!=="none"||n&&w(e,"position")!=="static")){var d=e.getBoundingClientRect();t-=d.top+parseInt(w(e,"border-top-width")),o-=d.left+parseInt(w(e,"border-left-width")),a=t+f.height,s=o+f.width;break}while(e=e.parentNode);if(i&&l!==window){var v=re(e||l),h=v&&v.a,p=v&&v.d;v&&(t/=p,o/=h,u/=h,c/=p,a=t+c,s=o+u)}return{top:t,left:o,bottom:a,right:s,width:u,height:c}}}function br(l,r,n){for(var i=Zt(l,!0),e=at(l)[r];i;){var f=at(i)[n],t=void 0;if(t=e>=f,!t)return i;if(i===Kt())break;i=Zt(i,!1)}return!1}function fe(l,r,n,i){for(var e=0,f=0,t=l.children;f<t.length;){if(t[f].style.display!=="none"&&t[f]!==K.ghost&&(i||t[f]!==K.dragged)&&Gt(t[f],n.draggable,l,!1)){if(e===r)return t[f];e++}f++}return null}function vr(l,r){for(var n=l.lastElementChild;n&&(n===K.ghost||w(n,"display")==="none"||r&&!We(n,r));)n=n.previousElementSibling;return n||null}function dt(l,r){var n=0;if(!l||!l.parentNode)return-1;for(;l=l.previousElementSibling;)l.nodeName.toUpperCase()!=="TEMPLATE"&&l!==K.clone&&(!r||We(l,r))&&n++;return n}function Er(l){var r=0,n=0,i=Kt();if(l)do{var e=re(l),f=e.a,t=e.d;r+=l.scrollLeft*f,n+=l.scrollTop*t}while(l!==i&&(l=l.parentNode));return[r,n]}function _r(l,r){for(var n in l)if(l.hasOwnProperty(n)){for(var i in r)if(r.hasOwnProperty(i)&&r[i]===l[n][i])return Number(n)}return-1}function Zt(l,r){if(!l||!l.getBoundingClientRect)return Kt();var n=l,i=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var e=w(n);if(n.clientWidth<n.scrollWidth&&(e.overflowX=="auto"||e.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(e.overflowY=="auto"||e.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Kt();if(i||r)return n;i=!0}}while(n=n.parentNode);return Kt()}function tn(l,r){if(l&&r)for(var n in r)r.hasOwnProperty(n)&&(l[n]=r[n]);return l}function ke(l,r){return Math.round(l.top)===Math.round(r.top)&&Math.round(l.left)===Math.round(r.left)&&Math.round(l.height)===Math.round(r.height)&&Math.round(l.width)===Math.round(r.width)}var Te;function Mr(l,r){return function(){if(!Te){var n=arguments,i=this;n.length===1?l.call(i,n[0]):l.apply(i,n),Te=setTimeout(function(){Te=void 0},r)}}}function en(){clearTimeout(Te),Te=void 0}function jr(l,r,n){l.scrollLeft+=r,l.scrollTop+=n}function hr(l){var r=window.Polymer,n=window.jQuery||window.Zepto;return r&&r.dom?r.dom(l).cloneNode(!0):n?n(l).clone(!0)[0]:l.cloneNode(!0)}function xr(l,r){w(l,"position","absolute"),w(l,"top",r.top),w(l,"left",r.left),w(l,"width",r.width),w(l,"height",r.height)}function qe(l){w(l,"position",""),w(l,"top",""),w(l,"left",""),w(l,"width",""),w(l,"height","")}var Ot="Sortable"+new Date().getTime();function rn(){var l=[],r;return{captureAnimationState:function(){if(l=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(e){if(!(w(e,"display")==="none"||e===K.ghost)){l.push({target:e,rect:at(e)});var f=Ht({},l[l.length-1].rect);if(e.thisAnimationDuration){var t=re(e,!0);t&&(f.top-=t.f,f.left-=t.e)}e.fromRect=f}})}},addAnimationState:function(i){l.push(i)},removeAnimationState:function(i){l.splice(_r(l,{target:i}),1)},animateAll:function(i){var e=this;if(!this.options.animation){clearTimeout(r),typeof i=="function"&&i();return}var f=!1,t=0;l.forEach(function(o){var a=0,s=o.target,c=s.fromRect,u=at(s),d=s.prevFromRect,v=s.prevToRect,h=o.rect,p=re(s,!0);p&&(u.top-=p.f,u.left-=p.e),s.toRect=u,s.thisAnimationDuration&&ke(d,u)&&!ke(c,u)&&(h.top-u.top)/(h.left-u.left)===(c.top-u.top)/(c.left-u.left)&&(a=on(h,d,v,e.options)),ke(u,c)||(s.prevFromRect=c,s.prevToRect=u,a||(a=e.options.animation),e.animate(s,h,u,a)),a&&(f=!0,t=Math.max(t,a),clearTimeout(s.animationResetTimer),s.animationResetTimer=setTimeout(function(){s.animationTime=0,s.prevFromRect=null,s.fromRect=null,s.prevToRect=null,s.thisAnimationDuration=null},a),s.thisAnimationDuration=a)}),clearTimeout(r),f?r=setTimeout(function(){typeof i=="function"&&i()},t):typeof i=="function"&&i(),l=[]},animate:function(i,e,f,t){if(t){w(i,"transition",""),w(i,"transform","");var o=re(this.el),a=o&&o.a,s=o&&o.d,c=(e.left-f.left)/(a||1),u=(e.top-f.top)/(s||1);i.animatingX=!!c,i.animatingY=!!u,w(i,"transform","translate3d("+c+"px,"+u+"px,0)"),this.forRepaintDummy=nn(i),w(i,"transition","transform "+t+"ms"+(this.options.easing?" "+this.options.easing:"")),w(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){w(i,"transition",""),w(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},t)}}}}function nn(l){return l.offsetWidth}function on(l,r,n,i){return Math.sqrt(Math.pow(r.top-l.top,2)+Math.pow(r.left-l.left,2))/Math.sqrt(Math.pow(r.top-n.top,2)+Math.pow(r.left-n.left,2))*i.animation}var oe=[],_e={initializeByDefault:!0},Ae={mount:function(r){for(var n in _e)_e.hasOwnProperty(n)&&!(n in r)&&(r[n]=_e[n]);oe.forEach(function(i){if(i.pluginName===r.pluginName)throw"Sortable: Cannot mount plugin ".concat(r.pluginName," more than once")}),oe.push(r)},pluginEvent:function(r,n,i){var e=this;this.eventCanceled=!1,i.cancel=function(){e.eventCanceled=!0};var f=r+"Global";oe.forEach(function(t){n[t.pluginName]&&(n[t.pluginName][f]&&n[t.pluginName][f](Ht({sortable:n},i)),n.options[t.pluginName]&&n[t.pluginName][r]&&n[t.pluginName][r](Ht({sortable:n},i)))})},initializePlugins:function(r,n,i,e){oe.forEach(function(o){var a=o.pluginName;if(!(!r.options[a]&&!o.initializeByDefault)){var s=new o(r,n,r.options);s.sortable=r,s.options=r.options,r[a]=s,Ft(i,s.defaults)}});for(var f in r.options)if(r.options.hasOwnProperty(f)){var t=this.modifyOption(r,f,r.options[f]);typeof t<"u"&&(r.options[f]=t)}},getEventProperties:function(r,n){var i={};return oe.forEach(function(e){typeof e.eventProperties=="function"&&Ft(i,e.eventProperties.call(n[e.pluginName],r))}),i},modifyOption:function(r,n,i){var e;return oe.forEach(function(f){r[f.pluginName]&&f.optionListeners&&typeof f.optionListeners[n]=="function"&&(e=f.optionListeners[n].call(r[f.pluginName],i))}),e}};function Se(l){var r=l.sortable,n=l.rootEl,i=l.name,e=l.targetEl,f=l.cloneEl,t=l.toEl,o=l.fromEl,a=l.oldIndex,s=l.newIndex,c=l.oldDraggableIndex,u=l.newDraggableIndex,d=l.originalEvent,v=l.putSortable,h=l.extraEventProperties;if(r=r||n&&n[Ot],!!r){var p,g=r.options,S="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!Xt&&!Ce?p=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(p=document.createEvent("Event"),p.initEvent(i,!0,!0)),p.to=t||n,p.from=o||n,p.item=e||n,p.clone=f,p.oldIndex=a,p.newIndex=s,p.oldDraggableIndex=c,p.newDraggableIndex=u,p.originalEvent=d,p.pullMode=v?v.lastPutMode:void 0;var b=Ht(Ht({},h),Ae.getEventProperties(i,r));for(var I in b)p[I]=b[I];n&&n.dispatchEvent(p),g[S]&&g[S].call(r,p)}}var an=["evt"],Dt=function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e=i.evt,f=Xr(i,an);Ae.pluginEvent.bind(K)(r,n,Ht({dragEl:A,parentEl:ut,ghostEl:z,rootEl:ot,nextEl:ee,lastDownEl:$e,cloneEl:ct,cloneHidden:Qt,dragStarted:be,putSortable:Et,activeSortable:K.active,originalEvent:e,oldIndex:se,oldDraggableIndex:Ie,newIndex:Mt,newDraggableIndex:Jt,hideGhostForTarget:Ur,unhideGhostForTarget:Gr,cloneNowHidden:function(){Qt=!0},cloneNowShown:function(){Qt=!1},dispatchSortableEvent:function(o){It({sortable:n,name:o,originalEvent:e})}},f))};function It(l){Se(Ht({putSortable:Et,cloneEl:ct,targetEl:A,rootEl:ot,oldIndex:se,oldDraggableIndex:Ie,newIndex:Mt,newDraggableIndex:Jt},l))}var A,ut,z,ot,ee,$e,ct,Qt,se,Mt,Ie,Jt,Me,Et,le=!1,Xe=!1,Ve=[],_t,wt,tr,er,Or,Tr,be,ae,Pe,De=!1,je=!1,Be,xt,rr=[],sr=!1,Ye=[],Je=typeof document<"u",Fe=Ar,Ir=Ce||Xt?"cssFloat":"float",ln=Je&&!kr&&!Ar&&"draggable"in document.createElement("div"),Fr=function(){if(Je){if(Xt)return!1;var l=document.createElement("x");return l.style.cssText="pointer-events:auto",l.style.pointerEvents==="auto"}}(),Lr=function(r,n){var i=w(r),e=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),f=fe(r,0,n),t=fe(r,1,n),o=f&&w(f),a=t&&w(t),s=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+at(f).width,c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+at(t).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(f&&o.float&&o.float!=="none"){var u=o.float==="left"?"left":"right";return t&&(a.clear==="both"||a.clear===u)?"vertical":"horizontal"}return f&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||s>=e&&i[Ir]==="none"||t&&i[Ir]==="none"&&s+c>e)?"vertical":"horizontal"},sn=function(r,n,i){var e=i?r.left:r.top,f=i?r.right:r.bottom,t=i?r.width:r.height,o=i?n.left:n.top,a=i?n.right:n.bottom,s=i?n.width:n.height;return e===o||f===a||e+t/2===o+s/2},fn=function(r,n){var i;return Ve.some(function(e){var f=e[Ot].options.emptyInsertThreshold;if(!(!f||vr(e))){var t=at(e),o=r>=t.left-f&&r<=t.right+f,a=n>=t.top-f&&n<=t.bottom+f;if(o&&a)return i=e}}),i},wr=function(r){function n(f,t){return function(o,a,s,c){var u=o.options.group.name&&a.options.group.name&&o.options.group.name===a.options.group.name;if(f==null&&(t||u))return!0;if(f==null||f===!1)return!1;if(t&&f==="clone")return f;if(typeof f=="function")return n(f(o,a,s,c),t)(o,a,s,c);var d=(t?o:a).options.group.name;return f===!0||typeof f=="string"&&f===d||f.join&&f.indexOf(d)>-1}}var i={},e=r.group;(!e||Ge(e)!="object")&&(e={name:e}),i.name=e.name,i.checkPull=n(e.pull,!0),i.checkPut=n(e.put),i.revertClone=e.revertClone,r.group=i},Ur=function(){!Fr&&z&&w(z,"display","none")},Gr=function(){!Fr&&z&&w(z,"display","")};Je&&document.addEventListener("click",function(l){if(Xe)return l.preventDefault(),l.stopPropagation&&l.stopPropagation(),l.stopImmediatePropagation&&l.stopImmediatePropagation(),Xe=!1,!1},!0);var te=function(r){if(A){r=r.touches?r.touches[0]:r;var n=fn(r.clientX,r.clientY);if(n){var i={};for(var e in r)r.hasOwnProperty(e)&&(i[e]=r[e]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[Ot]._onDragOver(i)}}},un=function(r){A&&A.parentNode[Ot]._isOutsideThisEl(r.target)};function K(l,r){if(!(l&&l.nodeType&&l.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(l));this.el=l,this.options=r=Ft({},r),l[Ot]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(l.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Lr(l,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,o){t.setData("Text",o.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:K.supportPointer!==!1&&"PointerEvent"in window&&!Oe,emptyInsertThreshold:5};Ae.initializePlugins(this,l,n);for(var i in n)!(i in r)&&(r[i]=n[i]);wr(r);for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this));this.nativeDraggable=r.forceFallback?!1:ln,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?Z(l,"pointerdown",this._onTapStart):(Z(l,"mousedown",this._onTapStart),Z(l,"touchstart",this._onTapStart)),this.nativeDraggable&&(Z(l,"dragover",this),Z(l,"dragenter",this)),Ve.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),Ft(this,rn())}K.prototype={constructor:K,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&(ae=null)},_getDirection:function(r,n){return typeof this.options.direction=="function"?this.options.direction.call(this,r,n,A):this.options.direction},_onTapStart:function(r){if(r.cancelable){var n=this,i=this.el,e=this.options,f=e.preventOnFilter,t=r.type,o=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,a=(o||r).target,s=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||a,c=e.filter;if(yn(i),!A&&!(/mousedown|pointerdown/.test(t)&&r.button!==0||e.disabled)&&!s.isContentEditable&&!(!this.nativeDraggable&&Oe&&a&&a.tagName.toUpperCase()==="SELECT")&&(a=Gt(a,e.draggable,i,!1),!(a&&a.animated)&&$e!==a)){if(se=dt(a),Ie=dt(a,e.draggable),typeof c=="function"){if(c.call(this,r,a,this)){It({sortable:n,rootEl:s,name:"filter",targetEl:a,toEl:i,fromEl:i}),Dt("filter",n,{evt:r}),f&&r.cancelable&&r.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=Gt(s,u.trim(),i,!1),u)return It({sortable:n,rootEl:u,name:"filter",targetEl:a,fromEl:i,toEl:i}),Dt("filter",n,{evt:r}),!0}),c)){f&&r.cancelable&&r.preventDefault();return}e.handle&&!Gt(s,e.handle,i,!1)||this._prepareDragStart(r,o,a)}}},_prepareDragStart:function(r,n,i){var e=this,f=e.el,t=e.options,o=f.ownerDocument,a;if(i&&!A&&i.parentNode===f){var s=at(i);if(ot=f,A=i,ut=A.parentNode,ee=A.nextSibling,$e=i,Me=t.group,K.dragged=A,_t={target:A,clientX:(n||r).clientX,clientY:(n||r).clientY},Or=_t.clientX-s.left,Tr=_t.clientY-s.top,this._lastX=(n||r).clientX,this._lastY=(n||r).clientY,A.style["will-change"]="all",a=function(){if(Dt("delayEnded",e,{evt:r}),K.eventCanceled){e._onDrop();return}e._disableDelayedDragEvents(),!yr&&e.nativeDraggable&&(A.draggable=!0),e._triggerDragStart(r,n),It({sortable:e,name:"choose",originalEvent:r}),lt(A,t.chosenClass,!0)},t.ignore.split(",").forEach(function(c){Nr(A,c.trim(),nr)}),Z(o,"dragover",te),Z(o,"mousemove",te),Z(o,"touchmove",te),Z(o,"mouseup",e._onDrop),Z(o,"touchend",e._onDrop),Z(o,"touchcancel",e._onDrop),yr&&this.nativeDraggable&&(this.options.touchStartThreshold=4,A.draggable=!0),Dt("delayStart",this,{evt:r}),t.delay&&(!t.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ce||Xt))){if(K.eventCanceled){this._onDrop();return}Z(o,"mouseup",e._disableDelayedDrag),Z(o,"touchend",e._disableDelayedDrag),Z(o,"touchcancel",e._disableDelayedDrag),Z(o,"mousemove",e._delayedDragTouchMoveHandler),Z(o,"touchmove",e._delayedDragTouchMoveHandler),t.supportPointer&&Z(o,"pointermove",e._delayedDragTouchMoveHandler),e._dragStartTimer=setTimeout(a,t.delay)}else a()}},_delayedDragTouchMoveHandler:function(r){var n=r.touches?r.touches[0]:r;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){A&&nr(A),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;Q(r,"mouseup",this._disableDelayedDrag),Q(r,"touchend",this._disableDelayedDrag),Q(r,"touchcancel",this._disableDelayedDrag),Q(r,"mousemove",this._delayedDragTouchMoveHandler),Q(r,"touchmove",this._delayedDragTouchMoveHandler),Q(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,n){n=n||r.pointerType=="touch"&&r,!this.nativeDraggable||n?this.options.supportPointer?Z(document,"pointermove",this._onTouchMove):n?Z(document,"touchmove",this._onTouchMove):Z(document,"mousemove",this._onTouchMove):(Z(A,"dragend",this),Z(ot,"dragstart",this._onDragStart));try{document.selection?Ke(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,n){if(le=!1,ot&&A){Dt("dragStarted",this,{evt:n}),this.nativeDraggable&&Z(document,"dragover",un);var i=this.options;!r&&lt(A,i.dragClass,!1),lt(A,i.ghostClass,!0),K.active=this,r&&this._appendGhost(),It({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(wt){this._lastX=wt.clientX,this._lastY=wt.clientY,Ur();for(var r=document.elementFromPoint(wt.clientX,wt.clientY),n=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(wt.clientX,wt.clientY),r!==n);)n=r;if(A.parentNode[Ot]._isOutsideThisEl(r),n)do{if(n[Ot]){var i=void 0;if(i=n[Ot]._onDragOver({clientX:wt.clientX,clientY:wt.clientY,target:r,rootEl:n}),i&&!this.options.dragoverBubble)break}r=n}while(n=n.parentNode);Gr()}},_onTouchMove:function(r){if(_t){var n=this.options,i=n.fallbackTolerance,e=n.fallbackOffset,f=r.touches?r.touches[0]:r,t=z&&re(z,!0),o=z&&t&&t.a,a=z&&t&&t.d,s=Fe&&xt&&Er(xt),c=(f.clientX-_t.clientX+e.x)/(o||1)+(s?s[0]-rr[0]:0)/(o||1),u=(f.clientY-_t.clientY+e.y)/(a||1)+(s?s[1]-rr[1]:0)/(a||1);if(!K.active&&!le){if(i&&Math.max(Math.abs(f.clientX-this._lastX),Math.abs(f.clientY-this._lastY))<i)return;this._onDragStart(r,!0)}if(z){t?(t.e+=c-(tr||0),t.f+=u-(er||0)):t={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(t.a,",").concat(t.b,",").concat(t.c,",").concat(t.d,",").concat(t.e,",").concat(t.f,")");w(z,"webkitTransform",d),w(z,"mozTransform",d),w(z,"msTransform",d),w(z,"transform",d),tr=c,er=u,wt=f}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!z){var r=this.options.fallbackOnBody?document.body:ot,n=at(A,!0,Fe,!0,r),i=this.options;if(Fe){for(xt=r;w(xt,"position")==="static"&&w(xt,"transform")==="none"&&xt!==document;)xt=xt.parentNode;xt!==document.body&&xt!==document.documentElement?(xt===document&&(xt=Kt()),n.top+=xt.scrollTop,n.left+=xt.scrollLeft):xt=Kt(),rr=Er(xt)}z=A.cloneNode(!0),lt(z,i.ghostClass,!1),lt(z,i.fallbackClass,!0),lt(z,i.dragClass,!0),w(z,"transition",""),w(z,"transform",""),w(z,"box-sizing","border-box"),w(z,"margin",0),w(z,"top",n.top),w(z,"left",n.left),w(z,"width",n.width),w(z,"height",n.height),w(z,"opacity","0.8"),w(z,"position",Fe?"absolute":"fixed"),w(z,"zIndex","100000"),w(z,"pointerEvents","none"),K.ghost=z,r.appendChild(z),w(z,"transform-origin",Or/parseInt(z.style.width)*100+"% "+Tr/parseInt(z.style.height)*100+"%")}},_onDragStart:function(r,n){var i=this,e=r.dataTransfer,f=i.options;if(Dt("dragStart",this,{evt:r}),K.eventCanceled){this._onDrop();return}Dt("setupClone",this),K.eventCanceled||(ct=hr(A),ct.draggable=!1,ct.style["will-change"]="",this._hideClone(),lt(ct,this.options.chosenClass,!1),K.clone=ct),i.cloneId=Ke(function(){Dt("clone",i),!K.eventCanceled&&(i.options.removeCloneOnHide||ot.insertBefore(ct,A),i._hideClone(),It({sortable:i,name:"clone"}))}),!n&&lt(A,f.dragClass,!0),n?(Xe=!0,i._loopId=setInterval(i._emulateDragOver,50)):(Q(document,"mouseup",i._onDrop),Q(document,"touchend",i._onDrop),Q(document,"touchcancel",i._onDrop),e&&(e.effectAllowed="move",f.setData&&f.setData.call(i,e,A)),Z(document,"drop",i),w(A,"transform","translateZ(0)")),le=!0,i._dragStartId=Ke(i._dragStarted.bind(i,n,r)),Z(document,"selectstart",i),be=!0,Oe&&w(document.body,"user-select","none")},_onDragOver:function(r){var n=this.el,i=r.target,e,f,t,o=this.options,a=o.group,s=K.active,c=Me===a,u=o.sort,d=Et||s,v,h=this,p=!1;if(sr)return;function g(_,rt){Dt(_,h,Ht({evt:r,isOwner:c,axis:v?"vertical":"horizontal",revert:t,dragRect:e,targetRect:f,canSort:u,fromSortable:d,target:i,completed:b,onMove:function(st,ft){return Le(ot,n,A,e,st,at(st),r,ft)},changed:I},rt))}function S(){g("dragOverAnimationCapture"),h.captureAnimationState(),h!==d&&d.captureAnimationState()}function b(_){return g("dragOverCompleted",{insertion:_}),_&&(c?s._hideClone():s._showClone(h),h!==d&&(lt(A,Et?Et.options.ghostClass:s.options.ghostClass,!1),lt(A,o.ghostClass,!0)),Et!==h&&h!==K.active?Et=h:h===K.active&&Et&&(Et=null),d===h&&(h._ignoreWhileAnimating=i),h.animateAll(function(){g("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(i===A&&!A.animated||i===n&&!i.animated)&&(ae=null),!o.dragoverBubble&&!r.rootEl&&i!==document&&(A.parentNode[Ot]._isOutsideThisEl(r.target),!_&&te(r)),!o.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),p=!0}function I(){Mt=dt(A),Jt=dt(A,o.draggable),It({sortable:h,name:"change",toEl:n,newIndex:Mt,newDraggableIndex:Jt,originalEvent:r})}if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),i=Gt(i,o.draggable,n,!0),g("dragOver"),K.eventCanceled)return p;if(A.contains(r.target)||i.animated&&i.animatingX&&i.animatingY||h._ignoreWhileAnimating===i)return b(!1);if(Xe=!1,s&&!o.disabled&&(c?u||(t=ut!==ot):Et===this||(this.lastPutMode=Me.checkPull(this,s,A,r))&&a.checkPut(this,s,A,r))){if(v=this._getDirection(r,i)==="vertical",e=at(A),g("dragOverValid"),K.eventCanceled)return p;if(t)return ut=ot,S(),this._hideClone(),g("revert"),K.eventCanceled||(ee?ot.insertBefore(A,ee):ot.appendChild(A)),b(!0);var x=vr(n,o.draggable);if(!x||hn(r,v,this)&&!x.animated){if(x===A)return b(!1);if(x&&n===r.target&&(i=x),i&&(f=at(i)),Le(ot,n,A,e,i,f,r,!!i)!==!1)return S(),n.appendChild(A),ut=n,I(),b(!0)}else if(x&&vn(r,v,this)){var P=fe(n,0,o,!0);if(P===A)return b(!1);if(i=P,f=at(i),Le(ot,n,A,e,i,f,r,!1)!==!1)return S(),n.insertBefore(A,P),ut=n,I(),b(!0)}else if(i.parentNode===n){f=at(i);var O=0,L,U=A.parentNode!==n,T=!sn(A.animated&&A.toRect||e,i.animated&&i.toRect||f,v),N=v?"top":"left",j=br(i,"top","top")||br(A,"top","top"),V=j?j.scrollTop:void 0;ae!==i&&(L=f[N],De=!1,je=!T&&o.invertSwap||U),O=pn(r,i,f,v,T?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,je,ae===i);var C;if(O!==0){var R=dt(A);do R-=O,C=ut.children[R];while(C&&(w(C,"display")==="none"||C===z))}if(O===0||C===i)return b(!1);ae=i,Pe=O;var X=i.nextElementSibling,M=!1;M=O===1;var $=Le(ot,n,A,e,i,f,r,M);if($!==!1)return($===1||$===-1)&&(M=$===1),sr=!0,setTimeout(dn,30),S(),M&&!X?n.appendChild(A):i.parentNode.insertBefore(A,M?X:i),j&&jr(j,0,V-j.scrollTop),ut=A.parentNode,L!==void 0&&!je&&(Be=Math.abs(L-at(i)[N])),I(),b(!0)}if(n.contains(A))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Q(document,"mousemove",this._onTouchMove),Q(document,"touchmove",this._onTouchMove),Q(document,"pointermove",this._onTouchMove),Q(document,"dragover",te),Q(document,"mousemove",te),Q(document,"touchmove",te)},_offUpEvents:function(){var r=this.el.ownerDocument;Q(r,"mouseup",this._onDrop),Q(r,"touchend",this._onDrop),Q(r,"pointerup",this._onDrop),Q(r,"touchcancel",this._onDrop),Q(document,"selectstart",this)},_onDrop:function(r){var n=this.el,i=this.options;if(Mt=dt(A),Jt=dt(A,i.draggable),Dt("drop",this,{evt:r}),ut=A&&A.parentNode,Mt=dt(A),Jt=dt(A,i.draggable),K.eventCanceled){this._nulling();return}le=!1,je=!1,De=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),fr(this.cloneId),fr(this._dragStartId),this.nativeDraggable&&(Q(document,"drop",this),Q(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Oe&&w(document.body,"user-select",""),w(A,"transform",""),r&&(be&&(r.cancelable&&r.preventDefault(),!i.dropBubble&&r.stopPropagation()),z&&z.parentNode&&z.parentNode.removeChild(z),(ot===ut||Et&&Et.lastPutMode!=="clone")&&ct&&ct.parentNode&&ct.parentNode.removeChild(ct),A&&(this.nativeDraggable&&Q(A,"dragend",this),nr(A),A.style["will-change"]="",be&&!le&&lt(A,Et?Et.options.ghostClass:this.options.ghostClass,!1),lt(A,this.options.chosenClass,!1),It({sortable:this,name:"unchoose",toEl:ut,newIndex:null,newDraggableIndex:null,originalEvent:r}),ot!==ut?(Mt>=0&&(It({rootEl:ut,name:"add",toEl:ut,fromEl:ot,originalEvent:r}),It({sortable:this,name:"remove",toEl:ut,originalEvent:r}),It({rootEl:ut,name:"sort",toEl:ut,fromEl:ot,originalEvent:r}),It({sortable:this,name:"sort",toEl:ut,originalEvent:r})),Et&&Et.save()):Mt!==se&&Mt>=0&&(It({sortable:this,name:"update",toEl:ut,originalEvent:r}),It({sortable:this,name:"sort",toEl:ut,originalEvent:r})),K.active&&((Mt==null||Mt===-1)&&(Mt=se,Jt=Ie),It({sortable:this,name:"end",toEl:ut,originalEvent:r}),this.save()))),this._nulling()},_nulling:function(){Dt("nulling",this),ot=A=ut=z=ee=ct=$e=Qt=_t=wt=be=Mt=Jt=se=Ie=ae=Pe=Et=Me=K.dragged=K.ghost=K.clone=K.active=null,Ye.forEach(function(r){r.checked=!0}),Ye.length=tr=er=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":A&&(this._onDragOver(r),cn(r));break;case"selectstart":r.preventDefault();break}},toArray:function(){for(var r=[],n,i=this.el.children,e=0,f=i.length,t=this.options;e<f;e++)n=i[e],Gt(n,t.draggable,this.el,!1)&&r.push(n.getAttribute(t.dataIdAttr)||mn(n));return r},sort:function(r,n){var i={},e=this.el;this.toArray().forEach(function(f,t){var o=e.children[t];Gt(o,this.options.draggable,e,!1)&&(i[f]=o)},this),n&&this.captureAnimationState(),r.forEach(function(f){i[f]&&(e.removeChild(i[f]),e.appendChild(i[f]))}),n&&this.animateAll()},save:function(){var r=this.options.store;r&&r.set&&r.set(this)},closest:function(r,n){return Gt(r,n||this.options.draggable,this.el,!1)},option:function(r,n){var i=this.options;if(n===void 0)return i[r];var e=Ae.modifyOption(this,r,n);typeof e<"u"?i[r]=e:i[r]=n,r==="group"&&wr(i)},destroy:function(){Dt("destroy",this);var r=this.el;r[Ot]=null,Q(r,"mousedown",this._onTapStart),Q(r,"touchstart",this._onTapStart),Q(r,"pointerdown",this._onTapStart),this.nativeDraggable&&(Q(r,"dragover",this),Q(r,"dragenter",this)),Array.prototype.forEach.call(r.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ve.splice(Ve.indexOf(this.el),1),this.el=r=null},_hideClone:function(){if(!Qt){if(Dt("hideClone",this),K.eventCanceled)return;w(ct,"display","none"),this.options.removeCloneOnHide&&ct.parentNode&&ct.parentNode.removeChild(ct),Qt=!0}},_showClone:function(r){if(r.lastPutMode!=="clone"){this._hideClone();return}if(Qt){if(Dt("showClone",this),K.eventCanceled)return;A.parentNode==ot&&!this.options.group.revertClone?ot.insertBefore(ct,A):ee?ot.insertBefore(ct,ee):ot.appendChild(ct),this.options.group.revertClone&&this.animate(A,ct),w(ct,"display",""),Qt=!1}}};function cn(l){l.dataTransfer&&(l.dataTransfer.dropEffect="move"),l.cancelable&&l.preventDefault()}function Le(l,r,n,i,e,f,t,o){var a,s=l[Ot],c=s.options.onMove,u;return window.CustomEvent&&!Xt&&!Ce?a=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(a=document.createEvent("Event"),a.initEvent("move",!0,!0)),a.to=r,a.from=l,a.dragged=n,a.draggedRect=i,a.related=e||r,a.relatedRect=f||at(r),a.willInsertAfter=o,a.originalEvent=t,l.dispatchEvent(a),c&&(u=c.call(s,a,t)),u}function nr(l){l.draggable=!1}function dn(){sr=!1}function vn(l,r,n){var i=at(fe(n.el,0,n.options,!0)),e=10;return r?l.clientX<i.left-e||l.clientY<i.top&&l.clientX<i.right:l.clientY<i.top-e||l.clientY<i.bottom&&l.clientX<i.left}function hn(l,r,n){var i=at(vr(n.el,n.options.draggable)),e=10;return r?l.clientX>i.right+e||l.clientX<=i.right&&l.clientY>i.bottom&&l.clientX>=i.left:l.clientX>i.right&&l.clientY>i.top||l.clientX<=i.right&&l.clientY>i.bottom+e}function pn(l,r,n,i,e,f,t,o){var a=i?l.clientY:l.clientX,s=i?n.height:n.width,c=i?n.top:n.left,u=i?n.bottom:n.right,d=!1;if(!t){if(o&&Be<s*e){if(!De&&(Pe===1?a>c+s*f/2:a<u-s*f/2)&&(De=!0),De)d=!0;else if(Pe===1?a<c+Be:a>u-Be)return-Pe}else if(a>c+s*(1-e)/2&&a<u-s*(1-e)/2)return gn(r)}return d=d||t,d&&(a<c+s*f/2||a>u-s*f/2)?a>c+s/2?1:-1:0}function gn(l){return dt(A)<dt(l)?1:-1}function mn(l){for(var r=l.tagName+l.className+l.src+l.href+l.textContent,n=r.length,i=0;n--;)i+=r.charCodeAt(n);return i.toString(36)}function yn(l){Ye.length=0;for(var r=l.getElementsByTagName("input"),n=r.length;n--;){var i=r[n];i.checked&&Ye.push(i)}}function Ke(l){return setTimeout(l,0)}function fr(l){return clearTimeout(l)}Je&&Z(document,"touchmove",function(l){(K.active||le)&&l.cancelable&&l.preventDefault()});K.utils={on:Z,off:Q,css:w,find:Nr,is:function(r,n){return!!Gt(r,n,r,!1)},extend:tn,throttle:Mr,closest:Gt,toggleClass:lt,clone:hr,index:dt,nextTick:Ke,cancelNextTick:fr,detectDirection:Lr,getChild:fe};K.get=function(l){return l[Ot]};K.mount=function(){for(var l=arguments.length,r=new Array(l),n=0;n<l;n++)r[n]=arguments[n];r[0].constructor===Array&&(r=r[0]),r.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(K.utils=Ht(Ht({},K.utils),i.utils)),Ae.mount(i)})};K.create=function(l,r){return new K(l,r)};K.version=Zr;var pt=[],Ee,ur,cr=!1,or,ar,ze,xe;function Sn(){function l(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this))}return l.prototype={dragStarted:function(n){var i=n.originalEvent;this.sortable.nativeDraggable?Z(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Z(document,"pointermove",this._handleFallbackAutoScroll):i.touches?Z(document,"touchmove",this._handleFallbackAutoScroll):Z(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var i=n.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?Q(document,"dragover",this._handleAutoScroll):(Q(document,"pointermove",this._handleFallbackAutoScroll),Q(document,"touchmove",this._handleFallbackAutoScroll),Q(document,"mousemove",this._handleFallbackAutoScroll)),Pr(),He(),en()},nulling:function(){ze=ur=Ee=cr=xe=or=ar=null,pt.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,i){var e=this,f=(n.touches?n.touches[0]:n).clientX,t=(n.touches?n.touches[0]:n).clientY,o=document.elementFromPoint(f,t);if(ze=n,i||this.options.forceAutoScrollFallback||Ce||Xt||Oe){ir(n,this.options,o,i);var a=Zt(o,!0);cr&&(!xe||f!==or||t!==ar)&&(xe&&Pr(),xe=setInterval(function(){var s=Zt(document.elementFromPoint(f,t),!0);s!==a&&(a=s,He()),ir(n,e.options,s,i)},10),or=f,ar=t)}else{if(!this.options.bubbleScroll||Zt(o,!0)===Kt()){He();return}ir(n,this.options,Zt(o,!1),!1)}}},Ft(l,{pluginName:"scroll",initializeByDefault:!0})}function He(){pt.forEach(function(l){clearInterval(l.pid)}),pt=[]}function Pr(){clearInterval(xe)}var ir=Mr(function(l,r,n,i){if(r.scroll){var e=(l.touches?l.touches[0]:l).clientX,f=(l.touches?l.touches[0]:l).clientY,t=r.scrollSensitivity,o=r.scrollSpeed,a=Kt(),s=!1,c;ur!==n&&(ur=n,He(),Ee=r.scroll,c=r.scrollFn,Ee===!0&&(Ee=Zt(n,!0)));var u=0,d=Ee;do{var v=d,h=at(v),p=h.top,g=h.bottom,S=h.left,b=h.right,I=h.width,x=h.height,P=void 0,O=void 0,L=v.scrollWidth,U=v.scrollHeight,T=w(v),N=v.scrollLeft,j=v.scrollTop;v===a?(P=I<L&&(T.overflowX==="auto"||T.overflowX==="scroll"||T.overflowX==="visible"),O=x<U&&(T.overflowY==="auto"||T.overflowY==="scroll"||T.overflowY==="visible")):(P=I<L&&(T.overflowX==="auto"||T.overflowX==="scroll"),O=x<U&&(T.overflowY==="auto"||T.overflowY==="scroll"));var V=P&&(Math.abs(b-e)<=t&&N+I<L)-(Math.abs(S-e)<=t&&!!N),C=O&&(Math.abs(g-f)<=t&&j+x<U)-(Math.abs(p-f)<=t&&!!j);if(!pt[u])for(var R=0;R<=u;R++)pt[R]||(pt[R]={});(pt[u].vx!=V||pt[u].vy!=C||pt[u].el!==v)&&(pt[u].el=v,pt[u].vx=V,pt[u].vy=C,clearInterval(pt[u].pid),(V!=0||C!=0)&&(s=!0,pt[u].pid=setInterval((function(){i&&this.layer===0&&K.active._onTouchMove(ze);var X=pt[this.layer].vy?pt[this.layer].vy*o:0,M=pt[this.layer].vx?pt[this.layer].vx*o:0;typeof c=="function"&&c.call(K.dragged.parentNode[Ot],M,X,l,ze,pt[this.layer].el)!=="continue"||jr(pt[this.layer].el,M,X)}).bind({layer:u}),24))),u++}while(r.bubbleScroll&&d!==a&&(d=Zt(d,!1)));cr=s}},30),$r=function(r){var n=r.originalEvent,i=r.putSortable,e=r.dragEl,f=r.activeSortable,t=r.dispatchSortableEvent,o=r.hideGhostForTarget,a=r.unhideGhostForTarget;if(n){var s=i||f;o();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,u=document.elementFromPoint(c.clientX,c.clientY);a(),s&&!s.el.contains(u)&&(t("spill"),this.onSpill({dragEl:e,putSortable:i}))}};function pr(){}pr.prototype={startIndex:null,dragStart:function(r){var n=r.oldDraggableIndex;this.startIndex=n},onSpill:function(r){var n=r.dragEl,i=r.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var e=fe(this.sortable.el,this.startIndex,this.options);e?this.sortable.el.insertBefore(n,e):this.sortable.el.appendChild(n),this.sortable.animateAll(),i&&i.animateAll()},drop:$r};Ft(pr,{pluginName:"revertOnSpill"});function gr(){}gr.prototype={onSpill:function(r){var n=r.dragEl,i=r.putSortable,e=i||this.sortable;e.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),e.animateAll()},drop:$r};Ft(gr,{pluginName:"removeOnSpill"});var jt;function bn(){function l(){this.defaults={swapClass:"sortable-swap-highlight"}}return l.prototype={dragStart:function(n){var i=n.dragEl;jt=i},dragOverValid:function(n){var i=n.completed,e=n.target,f=n.onMove,t=n.activeSortable,o=n.changed,a=n.cancel;if(t.options.swap){var s=this.sortable.el,c=this.options;if(e&&e!==s){var u=jt;f(e)!==!1?(lt(e,c.swapClass,!0),jt=e):jt=null,u&&u!==jt&&lt(u,c.swapClass,!1)}o(),i(!0),a()}},drop:function(n){var i=n.activeSortable,e=n.putSortable,f=n.dragEl,t=e||this.sortable,o=this.options;jt&&lt(jt,o.swapClass,!1),jt&&(o.swap||e&&e.options.swap)&&f!==jt&&(t.captureAnimationState(),t!==i&&i.captureAnimationState(),En(f,jt),t.animateAll(),t!==i&&i.animateAll())},nulling:function(){jt=null}},Ft(l,{pluginName:"swap",eventProperties:function(){return{swapItem:jt}}})}function En(l,r){var n=l.parentNode,i=r.parentNode,e,f;!n||!i||n.isEqualNode(r)||i.isEqualNode(l)||(e=dt(l),f=dt(r),n.isEqualNode(i)&&e<f&&f++,n.insertBefore(r,n.children[e]),i.insertBefore(l,i.children[f]))}var Y=[],Nt=[],ge,Ut,me=!1,Ct=!1,ie=!1,et,ye,we;function xn(){function l(r){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));r.options.supportPointer?Z(document,"pointerup",this._deselectMultiDrag):(Z(document,"mouseup",this._deselectMultiDrag),Z(document,"touchend",this._deselectMultiDrag)),Z(document,"keydown",this._checkKeyDown),Z(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,f){var t="";Y.length&&Ut===r?Y.forEach(function(o,a){t+=(a?", ":"")+o.textContent}):t=f.textContent,e.setData("Text",t)}}}return l.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var i=n.dragEl;et=i},delayEnded:function(){this.isMultiDrag=~Y.indexOf(et)},setupClone:function(n){var i=n.sortable,e=n.cancel;if(this.isMultiDrag){for(var f=0;f<Y.length;f++)Nt.push(hr(Y[f])),Nt[f].sortableIndex=Y[f].sortableIndex,Nt[f].draggable=!1,Nt[f].style["will-change"]="",lt(Nt[f],this.options.selectedClass,!1),Y[f]===et&&lt(Nt[f],this.options.chosenClass,!1);i._hideClone(),e()}},clone:function(n){var i=n.sortable,e=n.rootEl,f=n.dispatchSortableEvent,t=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Y.length&&Ut===i&&(Dr(!0,e),f("clone"),t()))},showClone:function(n){var i=n.cloneNowShown,e=n.rootEl,f=n.cancel;this.isMultiDrag&&(Dr(!1,e),Nt.forEach(function(t){w(t,"display","")}),i(),we=!1,f())},hideClone:function(n){var i=this;n.sortable;var e=n.cloneNowHidden,f=n.cancel;this.isMultiDrag&&(Nt.forEach(function(t){w(t,"display","none"),i.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),e(),we=!0,f())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Ut&&Ut.multiDrag._deselectMultiDrag(),Y.forEach(function(i){i.sortableIndex=dt(i)}),Y=Y.sort(function(i,e){return i.sortableIndex-e.sortableIndex}),ie=!0},dragStarted:function(n){var i=this,e=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(e.captureAnimationState(),this.options.animation)){Y.forEach(function(t){t!==et&&w(t,"position","absolute")});var f=at(et,!1,!0,!0);Y.forEach(function(t){t!==et&&xr(t,f)}),Ct=!0,me=!0}e.animateAll(function(){Ct=!1,me=!1,i.options.animation&&Y.forEach(function(t){qe(t)}),i.options.sort&&Ue()})}},dragOver:function(n){var i=n.target,e=n.completed,f=n.cancel;Ct&&~Y.indexOf(i)&&(e(!1),f())},revert:function(n){var i=n.fromSortable,e=n.rootEl,f=n.sortable,t=n.dragRect;Y.length>1&&(Y.forEach(function(o){f.addAnimationState({target:o,rect:Ct?at(o):t}),qe(o),o.fromRect=t,i.removeAnimationState(o)}),Ct=!1,On(!this.options.removeCloneOnHide,e))},dragOverCompleted:function(n){var i=n.sortable,e=n.isOwner,f=n.insertion,t=n.activeSortable,o=n.parentEl,a=n.putSortable,s=this.options;if(f){if(e&&t._hideClone(),me=!1,s.animation&&Y.length>1&&(Ct||!e&&!t.options.sort&&!a)){var c=at(et,!1,!0,!0);Y.forEach(function(d){d!==et&&(xr(d,c),o.appendChild(d))}),Ct=!0}if(!e)if(Ct||Ue(),Y.length>1){var u=we;t._showClone(i),t.options.animation&&!we&&u&&Nt.forEach(function(d){t.addAnimationState({target:d,rect:ye}),d.fromRect=ye,d.thisAnimationDuration=null})}else t._showClone(i)}},dragOverAnimationCapture:function(n){var i=n.dragRect,e=n.isOwner,f=n.activeSortable;if(Y.forEach(function(o){o.thisAnimationDuration=null}),f.options.animation&&!e&&f.multiDrag.isMultiDrag){ye=Ft({},i);var t=re(et,!0);ye.top-=t.f,ye.left-=t.e}},dragOverAnimationComplete:function(){Ct&&(Ct=!1,Ue())},drop:function(n){var i=n.originalEvent,e=n.rootEl,f=n.parentEl,t=n.sortable,o=n.dispatchSortableEvent,a=n.oldIndex,s=n.putSortable,c=s||this.sortable;if(i){var u=this.options,d=f.children;if(!ie)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),lt(et,u.selectedClass,!~Y.indexOf(et)),~Y.indexOf(et))Y.splice(Y.indexOf(et),1),ge=null,Se({sortable:t,rootEl:e,name:"deselect",targetEl:et});else{if(Y.push(et),Se({sortable:t,rootEl:e,name:"select",targetEl:et}),i.shiftKey&&ge&&t.el.contains(ge)){var v=dt(ge),h=dt(et);if(~v&&~h&&v!==h){var p,g;for(h>v?(g=v,p=h):(g=h,p=v+1);g<p;g++)~Y.indexOf(d[g])||(lt(d[g],u.selectedClass,!0),Y.push(d[g]),Se({sortable:t,rootEl:e,name:"select",targetEl:d[g]}))}}else ge=et;Ut=c}if(ie&&this.isMultiDrag){if(Ct=!1,(f[Ot].options.sort||f!==e)&&Y.length>1){var S=at(et),b=dt(et,":not(."+this.options.selectedClass+")");if(!me&&u.animation&&(et.thisAnimationDuration=null),c.captureAnimationState(),!me&&(u.animation&&(et.fromRect=S,Y.forEach(function(x){if(x.thisAnimationDuration=null,x!==et){var P=Ct?at(x):S;x.fromRect=P,c.addAnimationState({target:x,rect:P})}})),Ue(),Y.forEach(function(x){d[b]?f.insertBefore(x,d[b]):f.appendChild(x),b++}),a===dt(et))){var I=!1;Y.forEach(function(x){if(x.sortableIndex!==dt(x)){I=!0;return}}),I&&o("update")}Y.forEach(function(x){qe(x)}),c.animateAll()}Ut=c}(e===f||s&&s.lastPutMode!=="clone")&&Nt.forEach(function(x){x.parentNode&&x.parentNode.removeChild(x)})}},nullingGlobal:function(){this.isMultiDrag=ie=!1,Nt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Q(document,"pointerup",this._deselectMultiDrag),Q(document,"mouseup",this._deselectMultiDrag),Q(document,"touchend",this._deselectMultiDrag),Q(document,"keydown",this._checkKeyDown),Q(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof ie<"u"&&ie)&&Ut===this.sortable&&!(n&&Gt(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;Y.length;){var i=Y[0];lt(i,this.options.selectedClass,!1),Y.shift(),Se({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:i})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Ft(l,{pluginName:"multiDrag",utils:{select:function(n){var i=n.parentNode[Ot];!i||!i.options.multiDrag||~Y.indexOf(n)||(Ut&&Ut!==i&&(Ut.multiDrag._deselectMultiDrag(),Ut=i),lt(n,i.options.selectedClass,!0),Y.push(n))},deselect:function(n){var i=n.parentNode[Ot],e=Y.indexOf(n);!i||!i.options.multiDrag||!~e||(lt(n,i.options.selectedClass,!1),Y.splice(e,1))}},eventProperties:function(){var n=this,i=[],e=[];return Y.forEach(function(f){i.push({multiDragElement:f,index:f.sortableIndex});var t;Ct&&f!==et?t=-1:Ct?t=dt(f,":not(."+n.options.selectedClass+")"):t=dt(f),e.push({multiDragElement:f,index:t})}),{items:Vr(Y),clones:[].concat(Nt),oldIndicies:i,newIndicies:e}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function On(l,r){Y.forEach(function(n,i){var e=r.children[n.sortableIndex+(l?Number(i):0)];e?r.insertBefore(n,e):r.appendChild(n)})}function Dr(l,r){Nt.forEach(function(n,i){var e=r.children[n.sortableIndex+(l?Number(i):0)];e?r.insertBefore(n,e):r.appendChild(n)})}function Ue(){Y.forEach(function(l){l!==et&&l.parentNode&&l.parentNode.removeChild(l)})}K.mount(new Sn);K.mount(gr,pr);const Tn=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:xn,Sortable:K,Swap:bn,default:K},Symbol.toStringTag,{value:"Module"})),In=dr.getAugmentedNamespace(Tn);(function(l,r){(function(i,e){l.exports=e(Rt,In)})(typeof self<"u"?self:dr.commonjsGlobal,function(n,i){return function(e){var f={};function t(o){if(f[o])return f[o].exports;var a=f[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=e,t.c=f,t.d=function(o,a,s){t.o(o,a)||Object.defineProperty(o,a,{enumerable:!0,get:s})},t.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},t.t=function(o,a){if(a&1&&(o=t(o)),a&8||a&4&&typeof o=="object"&&o&&o.__esModule)return o;var s=Object.create(null);if(t.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:o}),a&2&&typeof o!="string")for(var c in o)t.d(s,c,(function(u){return o[u]}).bind(null,c));return s},t.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return t.d(a,"a",a),a},t.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},t.p="",t(t.s="fb15")}({"00ee":function(e,f,t){var o=t("b622"),a=o("toStringTag"),s={};s[a]="z",e.exports=String(s)==="[object z]"},"0366":function(e,f,t){var o=t("1c0b");e.exports=function(a,s,c){if(o(a),s===void 0)return a;switch(c){case 0:return function(){return a.call(s)};case 1:return function(u){return a.call(s,u)};case 2:return function(u,d){return a.call(s,u,d)};case 3:return function(u,d,v){return a.call(s,u,d,v)}}return function(){return a.apply(s,arguments)}}},"057f":function(e,f,t){var o=t("fc6a"),a=t("241c").f,s={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(d){try{return a(d)}catch{return c.slice()}};e.exports.f=function(v){return c&&s.call(v)=="[object Window]"?u(v):a(o(v))}},"06cf":function(e,f,t){var o=t("83ab"),a=t("d1e7"),s=t("5c6c"),c=t("fc6a"),u=t("c04e"),d=t("5135"),v=t("0cfb"),h=Object.getOwnPropertyDescriptor;f.f=o?h:function(g,S){if(g=c(g),S=u(S,!0),v)try{return h(g,S)}catch{}if(d(g,S))return s(!a.f.call(g,S),g[S])}},"0cfb":function(e,f,t){var o=t("83ab"),a=t("d039"),s=t("cc12");e.exports=!o&&!a(function(){return Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(e,f,t){var o=t("23e7"),a=t("d58f").left,s=t("a640"),c=t("ae40"),u=s("reduce"),d=c("reduce",{1:0});o({target:"Array",proto:!0,forced:!u||!d},{reduce:function(h){return a(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,f,t){var o=t("c6b6"),a=t("9263");e.exports=function(s,c){var u=s.exec;if(typeof u=="function"){var d=u.call(s,c);if(typeof d!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return d}if(o(s)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return a.call(s,c)}},"159b":function(e,f,t){var o=t("da84"),a=t("fdbc"),s=t("17c2"),c=t("9112");for(var u in a){var d=o[u],v=d&&d.prototype;if(v&&v.forEach!==s)try{c(v,"forEach",s)}catch{v.forEach=s}}},"17c2":function(e,f,t){var o=t("b727").forEach,a=t("a640"),s=t("ae40"),c=a("forEach"),u=s("forEach");e.exports=!c||!u?function(v){return o(this,v,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(e,f,t){var o=t("d066");e.exports=o("document","documentElement")},"1c0b":function(e,f){e.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(e,f,t){var o=t("b622"),a=o("iterator"),s=!1;try{var c=0,u={next:function(){return{done:!!c++}},return:function(){s=!0}};u[a]=function(){return this},Array.from(u,function(){throw 2})}catch{}e.exports=function(d,v){if(!v&&!s)return!1;var h=!1;try{var p={};p[a]=function(){return{next:function(){return{done:h=!0}}}},d(p)}catch{}return h}},"1d80":function(e,f){e.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"1dde":function(e,f,t){var o=t("d039"),a=t("b622"),s=t("2d00"),c=a("species");e.exports=function(u){return s>=51||!o(function(){var d=[],v=d.constructor={};return v[c]=function(){return{foo:1}},d[u](Boolean).foo!==1})}},"23cb":function(e,f,t){var o=t("a691"),a=Math.max,s=Math.min;e.exports=function(c,u){var d=o(c);return d<0?a(d+u,0):s(d,u)}},"23e7":function(e,f,t){var o=t("da84"),a=t("06cf").f,s=t("9112"),c=t("6eeb"),u=t("ce4e"),d=t("e893"),v=t("94ca");e.exports=function(h,p){var g=h.target,S=h.global,b=h.stat,I,x,P,O,L,U;if(S?x=o:b?x=o[g]||u(g,{}):x=(o[g]||{}).prototype,x)for(P in p){if(L=p[P],h.noTargetGet?(U=a(x,P),O=U&&U.value):O=x[P],I=v(S?P:g+(b?".":"#")+P,h.forced),!I&&O!==void 0){if(typeof L==typeof O)continue;d(L,O)}(h.sham||O&&O.sham)&&s(L,"sham",!0),c(x,P,L,h)}}},"241c":function(e,f,t){var o=t("ca84"),a=t("7839"