UNPKG

supcon-draw

Version:

梯形图编程

8 lines 120 kB
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["landscape-components"]=e():t["landscape-components"]=e()})("undefined"!==typeof self?self:this,(function(){return function(){var t={258:function(t,e,n){"use strict";n.r(e);var i=n(81),o=n.n(i),r=n(645),a=n.n(r),s=a()(o());s.push([t.id,".function-container{text-align:center;display:flex;margin-top:46px}.function-hr{width:68px}.function-img{width:96px;height:60px}.function-img-one-container{margin-top:-28px}",""]),e["default"]=s},498:function(t,e,n){"use strict";n.r(e);var i=n(81),o=n.n(i),r=n(645),a=n.n(r),s=a()(o());s.push([t.id,".function-container{text-align:center;display:flex;margin-top:46px}.function-hr{width:68px}.function-img{width:96px;height:60px}.function-img-container{margin-top:-18px}",""]),e["default"]=s},416:function(t,e,n){"use strict";n.r(e);var i=n(81),o=n.n(i),r=n(645),a=n.n(r),s=a()(o());s.push([t.id,".create-st-container{margin-top:20px}.st-btn{text-align:right}.st-container{width:1000px;min-height:200px;border:1px solid #d1d0d0;padding:10px;line-height:30px}.retraction{text-indent:20px}",""]),e["default"]=s},881:function(t,e,n){"use strict";n.r(e);var i=n(81),o=n.n(i),r=n(645),a=n.n(r),s=a()(o());s.push([t.id,".label{font-size:16px;margin-left:20px}.ladder-container{display:flex;align-items:flex-start;border:1px solid #d3d0d0;min-height:100px;position:relative;overflow:hidden}.index-container{margin:10px;border-radius:50%;background:#409eff;width:20px;height:20px;line-height:20px;text-align:center;font-size:14px;color:#fff}.arrow-container{width:50px}.line{border:1px solid #767474;padding-bottom:9999px;margin-bottom:-9850px}.caret-bottom:hover,.caret-top:hover{color:#409eff}.ne_right{min-height:80px;margin-top:10px}.name{padding:20px;font-size:14px}.context-menu{width:200px;position:fixed;display:none;background:#fff;box-shadow:0 0 4px #000}.menu-item-container{display:flex;padding:0 10px;align-items:center;justify-content:flex-start;line-height:10px;vertical-align:middle;border-bottom:1px solid #d8d5d5}.del-section{font-size:14px;cursor:pointer;margin-right:30px}",""]),e["default"]=s},965:function(t,e,n){"use strict";n.r(e);var i=n(81),o=n.n(i),r=n(645),a=n.n(r),s=a()(o());s.push([t.id,".label{font-size:16px;margin-left:20px}.img-container{text-align:center;margin-top:10px;display:flex}.hr{width:50px}.ne-img{width:16px;height:16px}.function-img{width:96px;height:60px}.function-add{width:96px;height:80px}.function-add-third{width:96px;height:120px;margin-top:-7px}.function-img-container{margin-top:-18px}.function-hr{width:68px}.ne-container{display:flex;flex:1;overflow:auto;min-height:100px}.ne-content{margin:6px 0;font-size:14px;text-align:center;min-height:100px}.ele-item{background:rgba(194,215,246,.354)}.del-icon{margin:20px;cursor:pointer}.name{padding:20px;font-size:14px}.branch-close{width:1px;background:gray;margin-top:-57px;min-height:112px;position:absolute}.space-hr{width:116px;background:gray;height:1px;margin-top:53px}.drageable-in{min-height:100px;text-align:left;margin-top:46px;display:flex}.drageable-list{min-height:82px;margin-top:-52px;min-width:100px}.branch-line{width:1px;background:gray;margin:8px 0 52px 4px}.branch-right{min-width:100px;min-height:100px}.function-container{text-align:center;display:flex;margin-top:46px}.second-input{margin-top:2px}",""]),e["default"]=s},375:function(t,e,n){"use strict";n.r(e);var i=n(81),o=n.n(i),r=n(645),a=n.n(r),s=a()(o());s.push([t.id,".tab-pane-container[data-v-b67de4c0]{height:800px;overflow:auto}.tree[data-v-b67de4c0]{width:300px;margin-left:20px}.title[data-v-b67de4c0]{font-size:16px;font-weight:800}.ne_left>div[data-v-b67de4c0]{line-height:30px;margin-top:6px;cursor:move;margin:10px 20px}.ne_left>div[data-v-b67de4c0]:hover{box-shadow:1px 2px 4px #ccc}.name[data-v-b67de4c0]{padding:20px;font-size:14px}.item-img[data-v-b67de4c0]{width:16px;height:16px}",""]),e["default"]=s},625:function(t,e,n){"use strict";n.r(e);var i=n(81),o=n.n(i),r=n(645),a=n.n(r),s=a()(o());s.push([t.id,".ne_draggle[data-v-26709e1d]{display:flex;padding-top:10px}.ne_con[data-v-26709e1d]{width:80%}.tree-right[data-v-26709e1d]{flex:1}",""]),e["default"]=s},645:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i="undefined"!==typeof e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,o,r){"string"===typeof t&&(t=[[null,t,void 0]]);var a={};if(i)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);i&&a[u[0]]||("undefined"!==typeof r&&("undefined"===typeof u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),e.push(u))}},e}},81:function(t){"use strict";t.exports=function(t){return t[1]}},474:function(t,e,n){"use strict"; /**! * Sortable 1.10.2 * @author RubaXa <trash@rubaxa.org> * @author owenm <owen23355@gmail.com> * @license MIT */ function i(t){return i="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},i(t)}function o(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 i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},r.apply(this,arguments)}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){o(t,e,n[e])}))}return t}function s(t,e){if(null==t)return{};var n,i,o={},r=Object.keys(t);for(i=0;i<r.length;i++)n=r[i],e.indexOf(n)>=0||(o[n]=t[n]);return o}function l(t,e){if(null==t)return{};var n,i,o=s(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++)n=r[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function c(t){return u(t)||d(t)||f()}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 f(){throw new TypeError("Invalid attempt to spread non-iterable instance")}n.r(e),n.d(e,{MultiDrag:function(){return Le},Sortable:function(){return qt},Swap:function(){return Ie}});var p="1.10.2";function h(t){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var g=h(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),m=h(/Edge/i),v=h(/firefox/i),A=h(/safari/i)&&!h(/chrome/i)&&!h(/android/i),b=h(/iP(ad|od|hone)/i),y=h(/chrome/i)&&h(/android/i),x={capture:!1,passive:!1};function w(t,e,n){t.addEventListener(e,n,!g&&x)}function E(t,e,n){t.removeEventListener(e,n,!g&&x)}function C(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 S(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function I(t,e,n,i){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&C(t,e):C(t,e))||i&&t===n)return t;if(t===n)break}while(t=S(t))}return null}var O,T=/\s+/g;function D(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var i=(" "+t.className+" ").replace(T," ").replace(" "+e+" "," ");t.className=(i+(n?" "+e:"")).replace(T," ")}}function k(t,e,n){var i=t&&t.style;if(i){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 i||-1!==e.indexOf("webkit")||(e="-webkit-"+e),i[e]=n+("string"===typeof n?"":"px")}}function M(t,e){var n="";if("string"===typeof t)n=t;else do{var i=k(t,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function _(t,e,n){if(t){var i=t.getElementsByTagName(e),o=0,r=i.length;if(n)for(;o<r;o++)n(i[o],o);return i}return[]}function N(){var t=document.scrollingElement;return t||document.documentElement}function B(t,e,n,i,o){if(t.getBoundingClientRect||t===window){var r,a,s,l,c,u,d;if(t!==window&&t!==N()?(r=t.getBoundingClientRect(),a=r.top,s=r.left,l=r.bottom,c=r.right,u=r.height,d=r.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!g))do{if(o&&o.getBoundingClientRect&&("none"!==k(o,"transform")||n&&"static"!==k(o,"position"))){var f=o.getBoundingClientRect();a-=f.top+parseInt(k(o,"border-top-width")),s-=f.left+parseInt(k(o,"border-left-width")),l=a+r.height,c=s+r.width;break}}while(o=o.parentNode);if(i&&t!==window){var p=M(o||t),h=p&&p.a,m=p&&p.d;p&&(a/=m,s/=h,d/=h,u/=m,l=a+u,c=s+d)}return{top:a,left:s,bottom:l,right:c,width:d,height:u}}}function U(t,e,n){var i=V(t,!0),o=B(t)[e];while(i){var r=B(i)[n],a=void 0;if(a="top"===n||"left"===n?o>=r:o<=r,!a)return i;if(i===N())break;i=V(i,!1)}return!1}function R(t,e,n){var i=0,o=0,r=t.children;while(o<r.length){if("none"!==r[o].style.display&&r[o]!==qt.ghost&&r[o]!==qt.dragged&&I(r[o],n.draggable,t,!1)){if(i===e)return r[o];i++}o++}return null}function F(t,e){var n=t.lastElementChild;while(n&&(n===qt.ghost||"none"===k(n,"display")||e&&!C(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===qt.clone||e&&!C(t,e)||n++;return n}function j(t){var e=0,n=0,i=N();if(t)do{var o=M(t),r=o.a,a=o.d;e+=t.scrollLeft*r,n+=t.scrollTop*a}while(t!==i&&(t=t.parentNode));return[e,n]}function P(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var i in e)if(e.hasOwnProperty(i)&&e[i]===t[n][i])return Number(n);return-1}function V(t,e){if(!t||!t.getBoundingClientRect)return N();var n=t,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=k(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return N();if(i||e)return n;i=!0}}}while(n=n.parentNode);return N()}function J(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function K(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 Q(t,e){return function(){if(!O){var n=arguments,i=this;1===n.length?t.call(i,n[0]):t.apply(i,n),O=setTimeout((function(){O=void 0}),e)}}}function Y(){clearTimeout(O),O=void 0}function G(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function X(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){k(t,"position","absolute"),k(t,"top",e.top),k(t,"left",e.left),k(t,"width",e.width),k(t,"height",e.height)}function Z(t){k(t,"position",""),k(t,"top",""),k(t,"left",""),k(t,"width",""),k(t,"height","")}var W="Sortable"+(new Date).getTime();function H(){var t,e=[];return{captureAnimationState:function(){if(e=[],this.options.animation){var t=[].slice.call(this.el.children);t.forEach((function(t){if("none"!==k(t,"display")&&t!==qt.ghost){e.push({target:t,rect:B(t)});var n=a({},e[e.length-1].rect);if(t.thisAnimationDuration){var i=M(t,!0);i&&(n.top-=i.f,n.left-=i.e)}t.fromRect=n}}))}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(P(e,{target:t}),1)},animateAll:function(n){var i=this;if(!this.options.animation)return clearTimeout(t),void("function"===typeof n&&n());var o=!1,r=0;e.forEach((function(t){var e=0,n=t.target,a=n.fromRect,s=B(n),l=n.prevFromRect,c=n.prevToRect,u=t.rect,d=M(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&K(l,s)&&!K(a,s)&&(u.top-s.top)/(u.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(e=$(u,l,c,i.options)),K(s,a)||(n.prevFromRect=a,n.prevToRect=s,e||(e=i.options.animation),i.animate(n,u,s,e)),e&&(o=!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),o?t=setTimeout((function(){"function"===typeof n&&n()}),r):"function"===typeof n&&n(),e=[]},animate:function(t,e,n,i){if(i){k(t,"transition",""),k(t,"transform","");var o=M(this.el),r=o&&o.a,a=o&&o.d,s=(e.left-n.left)/(r||1),l=(e.top-n.top)/(a||1);t.animatingX=!!s,t.animatingY=!!l,k(t,"transform","translate3d("+s+"px,"+l+"px,0)"),q(t),k(t,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),k(t,"transform","translate3d(0,0,0)"),"number"===typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){k(t,"transition",""),k(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),i)}}}}function q(t){return t.offsetWidth}function $(t,e,n,i){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))*i.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 i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var o=t+"Global";tt.forEach((function(i){e[i.pluginName]&&(e[i.pluginName][o]&&e[i.pluginName][o](a({sortable:e},n)),e.options[i.pluginName]&&e[i.pluginName][t]&&e[i.pluginName][t](a({sortable:e},n)))}))},initializePlugins:function(t,e,n,i){for(var o in tt.forEach((function(i){var o=i.pluginName;if(t.options[o]||i.initializeByDefault){var a=new i(t,e,t.options);a.sortable=t,a.options=t.options,t[o]=a,r(n,a.defaults)}})),t.options)if(t.options.hasOwnProperty(o)){var a=this.modifyOption(t,o,t.options[o]);"undefined"!==typeof a&&(t.options[o]=a)}},getEventProperties:function(t,e){var n={};return tt.forEach((function(i){"function"===typeof i.eventProperties&&r(n,i.eventProperties.call(e[i.pluginName],t))})),n},modifyOption:function(t,e,n){var i;return tt.forEach((function(o){t[o.pluginName]&&o.optionListeners&&"function"===typeof o.optionListeners[e]&&(i=o.optionListeners[e].call(t[o.pluginName],n))})),i}};function it(t){var e=t.sortable,n=t.rootEl,i=t.name,o=t.targetEl,r=t.cloneEl,s=t.toEl,l=t.fromEl,c=t.oldIndex,u=t.newIndex,d=t.oldDraggableIndex,f=t.newDraggableIndex,p=t.originalEvent,h=t.putSortable,v=t.extraEventProperties;if(e=e||n&&n[W],e){var A,b=e.options,y="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||g||m?(A=document.createEvent("Event"),A.initEvent(i,!0,!0)):A=new CustomEvent(i,{bubbles:!0,cancelable:!0}),A.to=s||n,A.from=l||n,A.item=o||n,A.clone=r,A.oldIndex=c,A.newIndex=u,A.oldDraggableIndex=d,A.newDraggableIndex=f,A.originalEvent=p,A.pullMode=h?h.lastPutMode:void 0;var x=a({},v,nt.getEventProperties(i,e));for(var w in x)A[w]=x[w];n&&n.dispatchEvent(A),b[y]&&b[y].call(e,A)}}var ot=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,o=l(n,["evt"]);nt.pluginEvent.bind(qt)(t,e,a({dragEl:at,parentEl:st,ghostEl:lt,rootEl:ct,nextEl:ut,lastDownEl:dt,cloneEl:ft,cloneHidden:pt,dragStarted:It,putSortable:bt,activeSortable:qt.active,originalEvent:i,oldIndex:ht,oldDraggableIndex:mt,newIndex:gt,newDraggableIndex:vt,hideGhostForTarget:zt,unhideGhostForTarget:Zt,cloneNowHidden:function(){pt=!0},cloneNowShown:function(){pt=!1},dispatchSortableEvent:function(t){rt({sortable:e,name:t,originalEvent:i})}},o))};function rt(t){it(a({putSortable:bt,cloneEl:ft,targetEl:at,rootEl:ct,oldIndex:ht,oldDraggableIndex:mt,newIndex:gt,newDraggableIndex:vt},t))}var at,st,lt,ct,ut,dt,ft,pt,ht,gt,mt,vt,At,bt,yt,xt,wt,Et,Ct,St,It,Ot,Tt,Dt,kt,Mt=!1,_t=!1,Nt=[],Bt=!1,Ut=!1,Rt=[],Ft=!1,Lt=[],jt="undefined"!==typeof document,Pt=b,Vt=m||g?"cssFloat":"float",Jt=jt&&!y&&!b&&"draggable"in document.createElement("div"),Kt=function(){if(jt){if(g)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Qt=function(t,e){var n=k(t),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=R(t,0,e),r=R(t,1,e),a=o&&k(o),s=r&&k(r),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+B(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+B(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(o&&a["float"]&&"none"!==a["float"]){var u="left"===a["float"]?"left":"right";return!r||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=i&&"none"===n[Vt]||r&&"none"===n[Vt]&&l+c>i)?"vertical":"horizontal"},Yt=function(t,e,n){var i=n?t.left:t.top,o=n?t.right:t.bottom,r=n?t.width:t.height,a=n?e.left:e.top,s=n?e.right:e.bottom,l=n?e.width:e.height;return i===a||o===s||i+r/2===a+l/2},Gt=function(t,e){var n;return Nt.some((function(i){if(!F(i)){var o=B(i),r=i[W].options.emptyInsertThreshold,a=t>=o.left-r&&t<=o.right+r,s=e>=o.top-r&&e<=o.bottom+r;return r&&a&&s?n=i:void 0}})),n},Xt=function(t){function e(t,n){return function(i,o,r,a){var s=i.options.group.name&&o.options.group.name&&i.options.group.name===o.options.group.name;if(null==t&&(n||s))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"===typeof t)return e(t(i,o,r,a),n)(i,o,r,a);var l=(n?i:o).options.group.name;return!0===t||"string"===typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var n={},o=t.group;o&&"object"==i(o)||(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},zt=function(){!Kt&&lt&&k(lt,"display","none")},Zt=function(){!Kt&&lt&&k(lt,"display","")};jt&&document.addEventListener("click",(function(t){if(_t)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),_t=!1,!1}),!0);var Wt=function(t){if(at){t=t.touches?t.touches[0]:t;var e=Gt(t.clientX,t.clientY);if(e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[W]._onDragOver(n)}}},Ht=function(t){at&&at.parentNode[W]._isOutsideThisEl(t.target)};function qt(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[W]=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 Qt(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!==qt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var i in nt.initializePlugins(this,t,n),n)!(i in e)&&(e[i]=n[i]);for(var o in Xt(e),this)"_"===o.charAt(0)&&"function"===typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&Jt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?w(t,"pointerdown",this._onTapStart):(w(t,"mousedown",this._onTapStart),w(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(w(t,"dragover",this),w(t,"dragenter",this)),Nt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),r(this,H())}function $t(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function te(t,e,n,i,o,r,a,s){var l,c,u=t[W],d=u.options.onMove;return!window.CustomEvent||g||m?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=n,l.draggedRect=i,l.related=o||e,l.relatedRect=r||B(e),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),d&&(c=d.call(u,l,a)),c}function ee(t){t.draggable=!1}function ne(){Ft=!1}function ie(t,e,n){var i=B(F(n.el,n.options.draggable)),o=10;return e?t.clientX>i.right+o||t.clientX<=i.right&&t.clientY>i.bottom&&t.clientX>=i.left:t.clientX>i.right&&t.clientY>i.top||t.clientX<=i.right&&t.clientY>i.bottom+o}function oe(t,e,n,i,o,r,a,s){var l=i?t.clientY:t.clientX,c=i?n.height:n.width,u=i?n.top:n.left,d=i?n.bottom:n.right,f=!1;if(!a)if(s&&Dt<c*o){if(!Bt&&(1===Tt?l>u+c*r/2:l<d-c*r/2)&&(Bt=!0),Bt)f=!0;else if(1===Tt?l<u+Dt:l>d-Dt)return-Tt}else if(l>u+c*(1-o)/2&&l<d-c*(1-o)/2)return re(e);return f=f||a,f&&(l<u+c*r/2||l>d-c*r/2)?l>u+c/2?1:-1:0}function re(t){return L(at)<L(t)?1:-1}function ae(t){var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,i=0;while(n--)i+=e.charCodeAt(n);return i.toString(36)}function se(t){Lt.length=0;var e=t.getElementsByTagName("input"),n=e.length;while(n--){var i=e[n];i.checked&&Lt.push(i)}}function le(t){return setTimeout(t,0)}function ce(t){return clearTimeout(t)}qt.prototype={constructor:qt,_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,i=this.options,o=i.preventOnFilter,r=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=i.filter;if(se(n),!at&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||i.disabled)&&!l.isContentEditable&&(s=I(s,i.draggable,n,!1),(!s||!s.animated)&&dt!==s)){if(ht=L(s),mt=L(s,i.draggable),"function"===typeof c){if(c.call(this,t,s,this))return rt({sortable:e,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),ot("filter",e,{evt:t}),void(o&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(i){if(i=I(l,i.trim(),n,!1),i)return rt({sortable:e,rootEl:i,name:"filter",targetEl:s,fromEl:n,toEl:n}),ot("filter",e,{evt:t}),!0})),c))return void(o&&t.cancelable&&t.preventDefault());i.handle&&!I(l,i.handle,n,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,e,n){var i,o=this,r=o.el,a=o.options,s=r.ownerDocument;if(n&&!at&&n.parentNode===r){var l=B(n);if(ct=r,at=n,st=at.parentNode,ut=at.nextSibling,dt=n,At=a.group,qt.dragged=at,yt={target:at,clientX:(e||t).clientX,clientY:(e||t).clientY},Ct=yt.clientX-l.left,St=yt.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,at.style["will-change"]="all",i=function(){ot("delayEnded",o,{evt:t}),qt.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!v&&o.nativeDraggable&&(at.draggable=!0),o._triggerDragStart(t,e),rt({sortable:o,name:"choose",originalEvent:t}),D(at,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){_(at,t.trim(),ee)})),w(s,"dragover",Wt),w(s,"mousemove",Wt),w(s,"touchmove",Wt),w(s,"mouseup",o._onDrop),w(s,"touchend",o._onDrop),w(s,"touchcancel",o._onDrop),v&&this.nativeDraggable&&(this.options.touchStartThreshold=4,at.draggable=!0),ot("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(m||g))i();else{if(qt.eventCanceled)return void this._onDrop();w(s,"mouseup",o._disableDelayedDrag),w(s,"touchend",o._disableDelayedDrag),w(s,"touchcancel",o._disableDelayedDrag),w(s,"mousemove",o._delayedDragTouchMoveHandler),w(s,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&w(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(i,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&&ee(at),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;E(t,"mouseup",this._disableDelayedDrag),E(t,"touchend",this._disableDelayedDrag),E(t,"touchcancel",this._disableDelayedDrag),E(t,"mousemove",this._delayedDragTouchMoveHandler),E(t,"touchmove",this._delayedDragTouchMoveHandler),E(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?w(document,"pointermove",this._onTouchMove):w(document,e?"touchmove":"mousemove",this._onTouchMove):(w(at,"dragend",this),w(ct,"dragstart",this._onDragStart));try{document.selection?le((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(t,e){if(Mt=!1,ct&&at){ot("dragStarted",this,{evt:e}),this.nativeDraggable&&w(document,"dragover",Ht);var n=this.options;!t&&D(at,n.dragClass,!1),D(at,n.ghostClass,!0),qt.active=this,t&&this._appendGhost(),rt({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(xt){this._lastX=xt.clientX,this._lastY=xt.clientY,zt();var t=document.elementFromPoint(xt.clientX,xt.clientY),e=t;while(t&&t.shadowRoot){if(t=t.shadowRoot.elementFromPoint(xt.clientX,xt.clientY),t===e)break;e=t}if(at.parentNode[W]._isOutsideThisEl(t),e)do{if(e[W]){var n=void 0;if(n=e[W]._onDragOver({clientX:xt.clientX,clientY:xt.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Zt()}},_onTouchMove:function(t){if(yt){var e=this.options,n=e.fallbackTolerance,i=e.fallbackOffset,o=t.touches?t.touches[0]:t,r=lt&&M(lt,!0),a=lt&&r&&r.a,s=lt&&r&&r.d,l=Pt&&kt&&j(kt),c=(o.clientX-yt.clientX+i.x)/(a||1)+(l?l[0]-Rt[0]:0)/(a||1),u=(o.clientY-yt.clientY+i.y)/(s||1)+(l?l[1]-Rt[1]:0)/(s||1);if(!qt.active&&!Mt){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(lt){r?(r.e+=c-(wt||0),r.f+=u-(Et||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,")");k(lt,"webkitTransform",d),k(lt,"mozTransform",d),k(lt,"msTransform",d),k(lt,"transform",d),wt=c,Et=u,xt=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!lt){var t=this.options.fallbackOnBody?document.body:ct,e=B(at,!0,Pt,!0,t),n=this.options;if(Pt){kt=t;while("static"===k(kt,"position")&&"none"===k(kt,"transform")&&kt!==document)kt=kt.parentNode;kt!==document.body&&kt!==document.documentElement?(kt===document&&(kt=N()),e.top+=kt.scrollTop,e.left+=kt.scrollLeft):kt=N(),Rt=j(kt)}lt=at.cloneNode(!0),D(lt,n.ghostClass,!1),D(lt,n.fallbackClass,!0),D(lt,n.dragClass,!0),k(lt,"transition",""),k(lt,"transform",""),k(lt,"box-sizing","border-box"),k(lt,"margin",0),k(lt,"top",e.top),k(lt,"left",e.left),k(lt,"width",e.width),k(lt,"height",e.height),k(lt,"opacity","0.8"),k(lt,"position",Pt?"absolute":"fixed"),k(lt,"zIndex","100000"),k(lt,"pointerEvents","none"),qt.ghost=lt,t.appendChild(lt),k(lt,"transform-origin",Ct/parseInt(lt.style.width)*100+"% "+St/parseInt(lt.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,i=t.dataTransfer,o=n.options;ot("dragStart",this,{evt:t}),qt.eventCanceled?this._onDrop():(ot("setupClone",this),qt.eventCanceled||(ft=X(at),ft.draggable=!1,ft.style["will-change"]="",this._hideClone(),D(ft,this.options.chosenClass,!1),qt.clone=ft),n.cloneId=le((function(){ot("clone",n),qt.eventCanceled||(n.options.removeCloneOnHide||ct.insertBefore(ft,at),n._hideClone(),rt({sortable:n,name:"clone"}))})),!e&&D(at,o.dragClass,!0),e?(_t=!0,n._loopId=setInterval(n._emulateDragOver,50)):(E(document,"mouseup",n._onDrop),E(document,"touchend",n._onDrop),E(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(n,i,at)),w(document,"drop",n),k(at,"transform","translateZ(0)")),Mt=!0,n._dragStartId=le(n._dragStarted.bind(n,e,t)),w(document,"selectstart",n),It=!0,A&&k(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,i,o,r=this.el,s=t.target,l=this.options,c=l.group,u=qt.active,d=At===c,f=l.sort,p=bt||u,h=this,g=!1;if(!Ft){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),s=I(s,l.draggable,r,!0),_("dragOver"),qt.eventCanceled)return g;if(at.contains(t.target)||s.animated&&s.animatingX&&s.animatingY||h._ignoreWhileAnimating===s)return R(!1);if(_t=!1,u&&!l.disabled&&(d?f||(i=!ct.contains(at)):bt===this||(this.lastPutMode=At.checkPull(this,u,at,t))&&c.checkPut(this,u,at,t))){if(o="vertical"===this._getDirection(t,s),e=B(at),_("dragOverValid"),qt.eventCanceled)return g;if(i)return st=ct,N(),this._hideClone(),_("revert"),qt.eventCanceled||(ut?ct.insertBefore(at,ut):ct.appendChild(at)),R(!0);var m=F(r,l.draggable);if(!m||ie(t,o,this)&&!m.animated){if(m===at)return R(!1);if(m&&r===t.target&&(s=m),s&&(n=B(s)),!1!==te(ct,r,at,e,s,n,t,!!s))return N(),r.appendChild(at),st=r,j(),R(!0)}else if(s.parentNode===r){n=B(s);var v,A,b=0,y=at.parentNode!==r,x=!Yt(at.animated&&at.toRect||e,s.animated&&s.toRect||n,o),w=o?"top":"left",E=U(s,"top","top")||U(at,"top","top"),C=E?E.scrollTop:void 0;if(Ot!==s&&(v=n[w],Bt=!1,Ut=!x&&l.invertSwap||y),b=oe(t,s,n,o,x?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Ut,Ot===s),0!==b){var S=L(at);do{S-=b,A=st.children[S]}while(A&&("none"===k(A,"display")||A===lt))}if(0===b||A===s)return R(!1);Ot=s,Tt=b;var O=s.nextElementSibling,T=!1;T=1===b;var M=te(ct,r,at,e,s,n,t,T);if(!1!==M)return 1!==M&&-1!==M||(T=1===M),Ft=!0,setTimeout(ne,30),N(),T&&!O?r.appendChild(at):s.parentNode.insertBefore(at,T?O:s),E&&G(E,0,C-E.scrollTop),st=at.parentNode,void 0===v||Ut||(Dt=Math.abs(v-B(s)[w])),j(),R(!0)}if(r.contains(at))return R(!1)}return!1}function _(l,c){ot(l,h,a({evt:t,isOwner:d,axis:o?"vertical":"horizontal",revert:i,dragRect:e,targetRect:n,canSort:f,fromSortable:p,target:s,completed:R,onMove:function(n,i){return te(ct,r,at,e,n,B(n),t,i)},changed:j},c))}function N(){_("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function R(e){return _("dragOverCompleted",{insertion:e}),e&&(d?u._hideClone():u._showClone(h),h!==p&&(D(at,bt?bt.options.ghostClass:u.options.ghostClass,!1),D(at,l.ghostClass,!0)),bt!==h&&h!==qt.active?bt=h:h===qt.active&&bt&&(bt=null),p===h&&(h._ignoreWhileAnimating=s),h.animateAll((function(){_("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(s===at&&!at.animated||s===r&&!s.animated)&&(Ot=null),l.dragoverBubble||t.rootEl||s===document||(at.parentNode[W]._isOutsideThisEl(t.target),!e&&Wt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),g=!0}function j(){gt=L(at),vt=L(at,l.draggable),rt({sortable:h,name:"change",toEl:r,newIndex:gt,newDraggableIndex:vt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){E(document,"mousemove",this._onTouchMove),E(document,"touchmove",this._onTouchMove),E(document,"pointermove",this._onTouchMove),E(document,"dragover",Wt),E(document,"mousemove",Wt),E(document,"touchmove",Wt)},_offUpEvents:function(){var t=this.el.ownerDocument;E(t,"mouseup",this._onDrop),E(t,"touchend",this._onDrop),E(t,"pointerup",this._onDrop),E(t,"touchcancel",this._onDrop),E(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;gt=L(at),vt=L(at,n.draggable),ot("drop",this,{evt:t}),st=at&&at.parentNode,gt=L(at),vt=L(at,n.draggable),qt.eventCanceled||(Mt=!1,Ut=!1,Bt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ce(this.cloneId),ce(this._dragStartId),this.nativeDraggable&&(E(document,"drop",this),E(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),A&&k(document.body,"user-select",""),k(at,"transform",""),t&&(It&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),lt&&lt.parentNode&&lt.parentNode.removeChild(lt),(ct===st||bt&&"clone"!==bt.lastPutMode)&&ft&&ft.parentNode&&ft.parentNode.removeChild(ft),at&&(this.nativeDraggable&&E(at,"dragend",this),ee(at),at.style["will-change"]="",It&&!Mt&&D(at,bt?bt.options.ghostClass:this.options.ghostClass,!1),D(at,this.options.chosenClass,!1),rt({sortable:this,name:"unchoose",toEl:st,newIndex:null,newDraggableIndex:null,originalEvent:t}),ct!==st?(gt>=0&&(rt({rootEl:st,name:"add",toEl:st,fromEl:ct,originalEvent:t}),rt({sortable:this,name:"remove",toEl:st,originalEvent:t}),rt({rootEl:st,name:"sort",toEl:st,fromEl:ct,originalEvent:t}),rt({sortable:this,name:"sort",toEl:st,originalEvent:t})),bt&&bt.save()):gt!==ht&&gt>=0&&(rt({sortable:this,name:"update",toEl:st,originalEvent:t}),rt({sortable:this,name:"sort",toEl:st,originalEvent:t})),qt.active&&(null!=gt&&-1!==gt||(gt=ht,vt=mt),rt({sortable:this,name:"end",toEl:st,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){ot("nulling",this),ct=at=st=lt=ut=ft=dt=pt=yt=xt=It=gt=vt=ht=mt=Ot=Tt=bt=At=qt.dragged=qt.ghost=qt.clone=qt.active=null,Lt.forEach((function(t){t.checked=!0})),Lt.length=wt=Et=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":at&&(this._onDragOver(t),$t(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t,e=[],n=this.el.children,i=0,o=n.length,r=this.options;i<o;i++)t=n[i],I(t,r.draggable,this.el,!1)&&e.push(t.getAttribute(r.dataIdAttr)||ae(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach((function(t,i){var o=n.children[i];I(o,this.options.draggable,n,!1)&&(e[t]=o)}),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 I(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var i=nt.modifyOption(this,t,e);n[t]="undefined"!==typeof i?i:e,"group"===t&&Xt(n)},destroy:function(){ot("destroy",this);var t=this.el;t[W]=null,E(t,"mousedown",this._onTapStart),E(t,"touchstart",this._onTapStart),E(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(E(t,"dragover",this),E(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Nt.splice(Nt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!pt){if(ot("hideClone",this),qt.eventCanceled)return;k(ft,"display","none"),this.options.removeCloneOnHide&&ft.parentNode&&ft.parentNode.removeChild(ft),pt=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(pt){if(ot("showClone",this),qt.eventCanceled)return;ct.contains(at)&&!this.options.group.revertClone?ct.insertBefore(ft,at):ut?ct.insertBefore(ft,ut):ct.appendChild(ft),this.options.group.revertClone&&this.animate(at,ft),k(ft,"display",""),pt=!1}}else this._hideClone()}},jt&&w(document,"touchmove",(function(t){(qt.active||Mt)&&t.cancelable&&t.preventDefault()})),qt.utils={on:w,off:E,css:k,find:_,is:function(t,e){return!!I(t,e,t,!1)},extend:J,throttle:Q,closest:I,toggleClass:D,clone:X,index:L,nextTick:le,cancelNextTick:ce,detectDirection:Qt,getChild:R},qt.get=function(t){return t[W]},qt.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&&(qt.utils=a({},qt.utils,t.utils)),nt.mount(t)}))},qt.create=function(t,e){return new qt(t,e)},qt.version=p;var ue,de,fe,pe,he,ge,me=[],ve=!1;function Ae(){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?w(document,"dragover",this._handleAutoScroll):this.options.supportPointer?w(document,"pointermove",this._handleFallbackAutoScroll):e.touches?w(document,"touchmove",this._handleFallbackAutoScroll):w(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?E(document,"dragover",this._handleAutoScroll):(E(document,"pointermove",this._handleFallbackAutoScroll),E(document,"touchmove",this._handleFallbackAutoScroll),E(document,"mousemove",this._handleFallbackAutoScroll)),ye(),be(),Y()},nulling:function(){he=de=ue=ve=ge=fe=pe=null,me.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,i=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(i,o);if(he=t,e||m||g||A){we(t,this.options,r,e);var a=V(r,!0);!ve||ge&&i===fe&&o===pe||(ge&&ye(),ge=setInterval((function(){var r=V(document.elementFromPoint(i,o),!0);r!==a&&(a=r,be()),we(t,n.options,r,e)}),10),fe=i,pe=o)}else{if(!this.options.bubbleScroll||V(r,!0)===N())return void be();we(t,this.options,V(r,!1),!1)}}},r(t,{pluginName:"scroll",initializeByDefault:!0})}function be(){me.forEach((function(t){clearInterval(t.pid)})),me=[]}function ye(){clearInterval(ge)}var xe,we=Q((function(t,e,n,i){if(e.scroll){var o,r=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,l=e.scrollSpeed,c=N(),u=!1;de!==n&&(de=n,be(),ue=e.scroll,o=e.scrollFn,!0===ue&&(ue=V(n,!0)));var d=0,f=ue;do{var p=f,h=B(p),g=h.top,m=h.bottom,v=h.left,A=h.right,b=h.width,y=h.height,x=void 0,w=void 0,E=p.scrollWidth,C=p.scrollHeight,S=k(p),I=p.scrollLeft,O=p.scrollTop;p===c?(x=b<E&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),w=y<C&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(x=b<E&&("auto"===S.overflowX||"scroll"===S.overflowX),w=y<C&&("auto"===S.overflowY||"scroll"===S.overflowY));var T=x&&(Math.abs(A-r)<=s&&I+b<E)-(Math.abs(v-r)<=s&&!!I),D=w&&(Math.abs(m-a)<=s&&O+y<C)-(Math.abs(g-a)<=s&&!!O);if(!me[d])for(var M=0;M<=d;M++)me[M]||(me[M]={});me[d].vx==T&&me[d].vy==D&&me[d].el===p||(me[d].el=p,me[d].vx=T,me[d].vy=D,clearInterval(me[d].pid),0==T&&0==D||(u=!0,me[d].pid=setInterval(function(){i&&0===this.layer&&qt.active._onTouchMove(he);var e=me[this.layer].vy?me[this.layer].vy*l:0,n=me[this.layer].vx?me[this.layer].vx*l:0;"function"===typeof o&&"continue"!==o.call(qt.dragged.parentNode[W],n,e,t,he,me[this.layer].el)||G(me[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&f!==c&&(f=V(f,!1)));ve=u}}),30),Ee=function(t){var e=t.originalEvent,n=t.putSortable,i=t.dragEl,o=t.activeSortable,r=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var l=n||o;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(r("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function Ce(){}function Se(){}function Ie(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;xe=e},dragOverValid:function(t){var e=t.completed,n=t.target,i=t.onMove,o=t.activeSortable,r=t.changed,a=t.cancel;if(o.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var c=xe;!1!==i(n)?(D(n,l.swapClass,!0),xe=n):xe=null,c&&c!==xe&&D(c,l.swapClass,!1)}r(),e(!0),a()}},drop:function(t){var e=t.activeSortable,n=t.putSortable,i=t.dragEl,o=n||this.sortable,r=this.options;xe&&D(xe,r.swapClass,!1),xe&&(r.swap||n&&n.options.swap)&&i!==xe&&(o.captureAnimationState(),o!==e&&e.captureAnimationState(),Oe(i,xe),o.animateAll(),o!==e&&e.animateAll())},nulling:function(){xe=null}},r(t,{pluginName:"swap",eventProperties:function(){return{swapItem:xe}}})}function Oe(t,e){var n,i,o=t.parentNode,r=e.parentNode;o&&r&&!o.isEqualNode(e)&&!r.isEqualNode(t)&&(n=L(t),i=L(e),o.isEqualNode(r)&&n<i&&i++,o.insertBefore(e,o.children[n]),r.insertBefore(t,r.children[i]))}Ce.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 i=R(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(e,i):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:Ee},r(Ce,{pluginName:"revertOnSpill"}),Se.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,i=n||this.sortable;i.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),i.animateAll()},drop:Ee},r(Se,{pluginName:"removeOnSpill"});var Te,De,ke,Me,_e,Ne=[],Be=[],Ue=!1,Re=!1,Fe=!1;function Le(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?w(document,"pointerup",this._deselectMultiDrag):(w(document,"mouseup",this._deselectMultiDrag),w(document,"touchend",this._deselectMultiDrag)),w(document,"keydown",this._checkKeyDown),w(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,n){var i="";Ne.length&&De===t?Ne.forEach((function(t,e){i+=(e?", ":"")+t.textContent})):i=n.textContent,e.setData("Text",i)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;ke=e},delayEnded:function(){this.isMultiDrag=~Ne.indexOf(ke)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var i=0;i<Ne.length;i++)Be.push(X(Ne[i])),Be[i].sortableIndex=Ne[i].sortableIndex,Be[i].draggable=!1,Be[i].style["will-change"]="",D(Be[i],this.options.selectedClass,!1),Ne[i]===ke&&D(Be[i],this.options.chosenClass,!1);e._hideClone(),n()}},clone:function(t){var e=t.sortable,n=t.rootEl,i=t.dispatchSortableEvent,o=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Ne.length&&De===e&&(Pe(!0,n),i("clone"),o()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,i=t.cancel;this.isMultiDrag&&(Pe(!1,n),Be.forEach((function(t){k(t,"display","")})),e(),_e=!1,i())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),i=t.cancel;this.isMultiDrag&&(Be.forEach((function(t){k(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),n(),_e=!0,i())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&De&&De.multiDrag._deselectMultiDrag(),Ne.forEach((function(t){t.sortableIndex=L(t)})),Ne=Ne.sort((function(t,e){return t.sortableIndex-e.sortableIndex})),Fe=!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!==ke&&k(t,"position","absolute")}));var i=B(ke,!1,!0,!0);Ne.forEach((function(t){t!==ke&&z(t,i)})),Re=!0,Ue=!0}n.animateAll((function(){Re=!1,Ue=!1,e.options.animation&&Ne.forEach((function(t){Z(t)})),e.options.sort&&Ve()}))}},dragOver:function(t){var e=t.target,n=t.completed,i=t.cancel;Re&&~Ne.indexOf(e)&&(n(!1),i())},revert:function(t){var e=t.fromSortable,n=t.rootEl,i=t.sortable,o=t.dragRect;Ne.length>1&&(Ne.forEach((function(t){i.addAnimationState({target:t,rect:Re?B(t):o}),Z(t),t.fromRect=o,e.removeAnimationState(t)})),Re=!1,je(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,i=t.insertion,o=t.activeSortable,r=t.parentEl,a=t.putSortable,s=this.options;if(i){if(n&&o._hideClone(),Ue=!1,s.animation&&Ne.length>1&&(Re||!n&&!o.options.sort&&!a)){var l=B(ke,!1,!0,!0);Ne.forEach((function(t){t!==ke&&(z(t,l),r.appendChild(t))})),Re=!0}if(!n)if(Re||Ve(),Ne.length>1){var c=_e;o._showClone(e),o.options.animation&&!_e&&c&&Be.forEach((function(t){o.addAnimationState({target:t,rect:Me}),t.fromRect=Me,t.thisAnimationDuration=null}))}else o._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,i=t.activeSortable;if(Ne.forEach((function(t){t.thisAnimationDuration=null})),i.options.animation&&!n&&i.multiDrag.isMultiDrag){Me=r({},e);var o=M(ke,!0);Me.top-=o.f,Me.left-=o.e}},dragOverAnimationComplete:function(){Re&&(Re=!1,Ve())},drop:function(t){var e=t.originalEvent,n=t.rootEl,i=t.parentEl,o=t.sortable,r=t.dispatchSortableEvent,a=t.oldIndex,s=t.putSortable,l=s||this.sortable;if(e){var c=this.options,u=i.children;if(!Fe)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),D(ke,c.selectedClass,!~Ne.indexOf(ke)),~Ne.indexOf(ke))Ne.splice(Ne.indexOf(ke),1),Te=null,it({sortable:o,rootEl:n,name:"deselect",targetEl:ke,originalEvt:e});else{if(Ne.push(ke),it({sortable:o,rootEl:n,name:"select",targetEl:ke,originalEvt:e}),e.shiftKey&&Te&&o.el.contains(Te)){var d,f,p=L(Te),h=L(ke);if(~p&&~h&&p!==h)for(h>p?(f=p,d=h):(f=h,d=p+1);f<d;f++)~Ne.indexOf(u[f])||(D(u[f],c.selectedClass,!0),Ne.push(u[f]),it({sortable:o,rootEl:n,name:"select",targetEl:u[f],originalEvt:e}))}else Te=ke;De=l}if(Fe&&this.isMultiDrag){if((i[W].options.sort||i!==n)&&Ne.length>1){var g=B(ke),m=L(ke,":not(."+this.options.selectedClass+")");if(!Ue&&c.animation&&(ke.thisAnimationDuration=null),l.captureAnimationState(),!Ue&&(c.animation&&(ke.fromRect=g,Ne.forEach((function(t){if(t.thisAnimationDuration=null,t!==ke){var e=Re?B(t):g;t.fromRect=e,l.addAnimationState({target:t,rect:e})}}))),Ve(),Ne.forEach((function(t){u[m]?i.insertBefore(t,u[m]):i.appendChild(t),m++})),a===L(ke))){var v=!1;Ne.forEach((function(t){t.sortableIndex===L(t)||(v=!0)})),v&&r("update")}Ne.forEach((function(t){Z(t)})),l.animateAll()}De=l}(n===i||s&&"clone"!==s.lastPutMode)&&Be.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=Fe=!1,Be.length=0},destroyGlobal:function(){this._deselectMultiDrag(),E(document,"pointerup",this._deselectMultiDrag),E(document,"mouseup",this._deselectMultiDrag),E(document,"touchend",this._deselectMultiDrag),E(document,"keydown",this._checkKeyDown),E(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(("undefined"===typeof Fe||!Fe)&&De===this.sortable&&(!t||!I(t.target,this.options.draggable,this.sortable.el,!1))&&(!t||0===t.button))while(Ne.length){var e=Ne[0];D(e,this.options.selectedClass,!1),Ne.shift(),it({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[W];e&&e.options.multiDrag&&!~Ne.indexOf(t)&&(De&&De!==e&&(De.multiDrag._deselectMultiDrag(),De=e),D(t,e.options.selectedClass,!0),Ne.push(t))},deselect:function(t){var e=t.parentNode[W],n=Ne.indexOf(t);e&&e.options.multiDrag&&~n&&(D(t,e.options.selectedClass,!1),Ne.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return Ne.forEach((function(i){var o;e.push({multiDragElement:i,index:i.sortableIndex}),o=Re&&i!==ke?-1:Re?L(i,":not(."+t.options.selectedClass+")"):L(i),n.push({multiDragElement:i,index:o})})),{items:c(Ne),clones:[].concat(Be),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 je(t,e){Ne.forEach((function(n,i){var o=e.children[n.sortableIndex+(t?Number(i):0)];o?e.insertBefore(n,o):e.appendChild(n)}))}function Pe(t,e){Be.forEach((function(n,i){var o=e.children[n.sortableIndex+(t?Number(i):0)];o?e.insertBefore(n,o):e.appendChild(n)}))}function Ve(){Ne.forEach((function(t){t!==ke&&t.parentNode&&t.parentNode.removeChild(t)}))}qt.mount(new Ae),qt.mount(Se,Ce),e["default"]=qt},485:function(t,e,n){var i=n(258);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var o=n(402).Z;o("34762487",i,!0,{sourceMap:!1,shadowMode:!1})},518:function(t,e,n){var i=n(498);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var o=n(402).Z;o("52c65a02",i,!0,{sourceMap:!1,shadowMode:!1})},139:function(t,e,n){var i=n(416);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var o=n(402).Z;o("1be27fc8",i,!0,{sourceMap:!1,shadowMode:!1})},968:function(t,e,n){var i=n(881);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var o=n(402).Z;o("9047bb54",i,!0,{sourceMap:!1,shadowMode:!1})},636:function(t,e,n){var i=n(965);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var o=n(402).Z;o("0c5b4be2",i,!0,{sourceMap:!1,shadowMode:!1})},762:function(t,e,n){var i=n(375);i.__esModule&&(i=i.default),"string