PNG IHDR x sBIT|d pHYs + tEXtSoftware www.inkscape.org< ,tEXtComment
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var o in n)("object"==typeof exports?exports:t)[o]=n[o]}}(window,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="./src/dual-listbox.js")}({"./node_modules/sortablejs/modular/sortable.esm.js":function(t,e,n){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){i(t,e,n[e])}))}return t}function l(t,e){if(null==t)return{};var n,o,i=function(t,e){if(null==t)return{};var n,o,i={},a=Object.keys(t);for(o=0;o<a.length;o++)n=a[o],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)n=a[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function s(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.r(e),n.d(e,"MultiDrag",(function(){return ye})),n.d(e,"Sortable",(function(){return Ht})),n.d(e,"Swap",(function(){return se}));function c(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var u=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=c(/Edge/i),h=c(/firefox/i),f=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),p=c(/iP(ad|od|hone)/i),v=c(/chrome/i)&&c(/android/i),m={capture:!1,passive:!1};function g(t,e,n){t.addEventListener(e,n,!u&&m)}function b(t,e,n){t.removeEventListener(e,n,!u&&m)}function y(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(t){return!1}return!1}}function _(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function E(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&y(t,e):y(t,e))||o&&t===n)return t;if(t===n)break}while(t=_(t))}return null}var w,D=/\s+/g;function S(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(D," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(D," ")}}function x(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in o||-1!==e.indexOf("webkit")||(e="-webkit-"+e),o[e]=n+("string"==typeof n?"":"px")}}function C(t,e){var n="";if("string"==typeof t)n=t;else do{var o=x(t,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix;return i&&new i(n)}function T(t,e,n){if(t){var o=t.getElementsByTagName(e),i=0,a=o.length;if(n)for(;i<a;i++)n(o[i],i);return o}return[]}function L(){return u?document.documentElement:document.scrollingElement}function A(t,e,n,o,i){if(t.getBoundingClientRect||t===window){var a,r,l,s,c,d,h;if(t!==window&&t!==L()?(r=(a=t.getBoundingClientRect()).top,l=a.left,s=a.bottom,c=a.right,d=a.height,h=a.width):(r=0,l=0,s=window.innerHeight,c=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!u))do{if(i&&i.getBoundingClientRect&&("none"!==x(i,"transform")||n&&"static"!==x(i,"position"))){var f=i.getBoundingClientRect();r-=f.top+parseInt(x(i,"border-top-width")),l-=f.left+parseInt(x(i,"border-left-width")),s=r+a.height,c=l+a.width;break}}while(i=i.parentNode);if(o&&t!==window){var p=C(i||t),v=p&&p.a,m=p&&p.d;p&&(s=(r/=m)+(d/=m),c=(l/=v)+(h/=v))}return{top:r,left:l,bottom:s,right:c,width:h,height:d}}}function O(t,e,n){for(var o=P(t,!0),i=A(t)[e];o;){var a=A(o)[n];if(!("top"===n||"left"===n?i>=a:i<=a))return o;if(o===L())break;o=P(o,!1)}return!1}function M(t,e,n){for(var o=0,i=0,a=t.children;i<a.length;){if("none"!==a[i].style.display&&a[i]!==Ht.ghost&&a[i]!==Ht.dragged&&E(a[i],n.draggable,t,!1)){if(o===e)return a[i];o++}i++}return null}function k(t,e){for(var n=t.lastElementChild;n&&(n===Ht.ghost||"none"===x(n,"display")||e&&!y(n,e));)n=n.previousElementSibling;return n||null}function I(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Ht.clone||e&&!y(t,e)||n++;return n}function N(t){var e=0,n=0,o=L();if(t)do{var i=C(t),a=i.a,r=i.d;e+=t.scrollLeft*a,n+=t.scrollTop*r}while(t!==o&&(t=t.parentNode));return[e,n]}function P(t,e){if(!t||!t.getBoundingClientRect)return L();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=x(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return L();if(o||e)return n;o=!0}}}while(n=n.parentNode);return L()}function B(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 R(t,e){return function(){if(!w){var n=arguments,o=this;1===n.length?t.call(o,n[0]):t.apply(o,n),w=setTimeout((function(){w=void 0}),e)}}}function X(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function j(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 H(t,e){x(t,"position","absolute"),x(t,"top",e.top),x(t,"left",e.left),x(t,"width",e.width),x(t,"height",e.height)}function Y(t){x(t,"position",""),x(t,"top",""),x(t,"left",""),x(t,"width",""),x(t,"height","")}var F="Sortable"+(new Date).getTime();function K(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==x(t,"display")&&t!==Ht.ghost){e.push({target:t,rect:A(t)});var n=r({},e[e.length-1].rect);if(t.thisAnimationDuration){var o=C(t,!0);o&&(n.top-=o.f,n.left-=o.e)}t.fromRect=n}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var i=!1,a=0;e.forEach((function(t){var e=0,n=t.target,r=n.fromRect,l=A(n),s=n.prevFromRect,c=n.prevToRect,u=t.rect,d=C(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&B(s,l)&&!B(r,l)&&(u.top-l.top)/(u.left-l.left)==(r.top-l.top)/(r.left-l.left)&&(e=function(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}(u,s,c,o.options)),B(l,r)||(n.prevFromRect=r,n.prevToRect=l,e||(e=o.options.animation),o.animate(n,u,l,e)),e&&(i=!0,a=Math.max(a,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),e),n.thisAnimationDuration=e)})),clearTimeout(t),i?t=setTimeout((function(){"function"==typeof n&&n()}),a):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,o){if(o){x(t,"transition",""),x(t,"transform","");var i=C(this.el),a=i&&i.a,r=i&&i.d,l=(e.left-n.left)/(a||1),s=(e.top-n.top)/(r||1);t.animatingX=!!l,t.animatingY=!!s,x(t,"transform","translate3d("+l+"px,"+s+"px,0)"),function(t){t.offsetWidth}(t),x(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),x(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){x(t,"transition",""),x(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),o)}}}}var W=[],z={initializeByDefault:!0},q={mount:function(t){for(var e in z)z.hasOwnProperty(e)&&!(e in t)&&(t[e]=z[e]);W.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var i=t+"Global";W.forEach((function(o){e[o.pluginName]&&(e[o.pluginName][i]&&e[o.pluginName][i](r({sortable:e},n)),e.options[o.pluginName]&&e[o.pluginName][t]&&e[o.pluginName][t](r({sortable:e},n)))}))},initializePlugins:function(t,e,n,o){for(var i in W.forEach((function(o){var i=o.pluginName;if(t.options[i]||o.initializeByDefault){var r=new o(t,e,t.options);r.sortable=t,r.options=t.options,t[i]=r,a(n,r.defaults)}})),t.options)if(t.options.hasOwnProperty(i)){var r=this.modifyOption(t,i,t.options[i]);void 0!==r&&(t.options[i]=r)}},getEventProperties:function(t,e){var n={};return W.forEach((function(o){"function"==typeof o.eventProperties&&a(n,o.eventProperties.call(e[o.pluginName],t))})),n},modifyOption:function(t,e,n){var o;return W.forEach((function(i){t[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[e]&&(o=i.optionListeners[e].call(t[i.pluginName],n))})),o}};function G(t){var e=t.sortable,n=t.rootEl,o=t.name,i=t.targetEl,a=t.cloneEl,l=t.toEl,s=t.fromEl,c=t.oldIndex,h=t.newIndex,f=t.oldDraggableIndex,p=t.newDraggableIndex,v=t.originalEvent,m=t.putSortable,g=t.extraEventProperties;if(e=e||n&&n[F]){var b,y=e.options,_="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||u||d?(b=document.createEvent("Event")).initEvent(o,!0,!0):b=new CustomEvent(o,{bubbles:!0,cancelable:!0}),b.to=l||n,b.from=s||n,b.item=i||n,b.clone=a,b.oldIndex=c,b.newIndex=h,b.oldDraggableIndex=f,b.newDraggableIndex=p,b.originalEvent=v,b.pullMode=m?m.lastPutMode:void 0;var E=r({},g,q.getEventProperties(o,e));for(var w in E)b[w]=E[w];n&&n.dispatchEvent(b),y[_]&&y[_].call(e,b)}}var U=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,i=l(n,["evt"]);q.pluginEvent.bind(Ht)(t,e,r({dragEl:Z,parentEl:Q,ghostEl:$,rootEl:J,nextEl:tt,lastDownEl:et,cloneEl:nt,cloneHidden:ot,dragStarted:mt,putSortable:ct,activeSortable:Ht.active,originalEvent:o,oldIndex:it,oldDraggableIndex:rt,newIndex:at,newDraggableIndex:lt,hideGhostForTarget:Bt,unhideGhostForTarget:Rt,cloneNowHidden:function(){ot=!0},cloneNowShown:function(){ot=!1},dispatchSortableEvent:function(t){V({sortable:e,name:t,originalEvent:o})}},i))};function V(t){G(r({putSortable:ct,cloneEl:nt,targetEl:Z,rootEl:J,oldIndex:it,oldDraggableIndex:rt,newIndex:at,newDraggableIndex:lt},t))}var Z,Q,$,J,tt,et,nt,ot,it,at,rt,lt,st,ct,ut,dt,ht,ft,pt,vt,mt,gt,bt,yt,_t,Et=!1,wt=!1,Dt=[],St=!1,xt=!1,Ct=[],Tt=!1,Lt=[],At="undefined"!=typeof document,Ot=p,Mt=d||u?"cssFloat":"float",kt=At&&!v&&!p&&"draggable"in document.createElement("div"),It=function(){if(At){if(u)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Nt=function(t,e){var n=x(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=M(t,0,e),a=M(t,1,e),r=i&&x(i),l=a&&x(a),s=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+A(i).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+A(a).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&r.float&&"none"!==r.float){var u="left"===r.float?"left":"right";return!a||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return i&&("block"===r.display||"flex"===r.display||"table"===r.display||"grid"===r.display||s>=o&&"none"===n[Mt]||a&&"none"===n[Mt]&&s+c>o)?"vertical":"horizontal"},Pt=function(t){function e(t,n){return function(o,i,a,r){var l=o.options.group.name&&i.options.group.name&&o.options.group.name===i.options.group.name;if(null==t&&(n||l))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(o,i,a,r),n)(o,i,a,r);var s=(n?o:i).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},i=t.group;i&&"object"==o(i)||(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},Bt=function(){!It&&$&&x($,"display","none")},Rt=function(){!It&&$&&x($,"display","")};At&&document.addEventListener("click",(function(t){if(wt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),wt=!1,!1}),!0);var Xt=function(t){if(Z){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,a=t.clientY,Dt.some((function(t){if(!k(t)){var e=A(t),n=t[F].options.emptyInsertThreshold,o=i>=e.left-n&&i<=e.right+n,l=a>=e.top-n&&a<=e.bottom+n;return n&&o&&l?r=t:void 0}})),r);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[F]._onDragOver(n)}}var i,a,r},jt=function(t){Z&&Z.parentNode[F]._isOutsideThisEl(t.target)};function Ht(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=a({},e),t[F]=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 Nt(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!==Ht.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var o in q.initializePlugins(this,t,n),n)!(o in e)&&(e[o]=n[o]);for(var i in Pt(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&kt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?g(t,"pointerdown",this._onTapStart):(g(t,"mousedown",this._onTapStart),g(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(g(t,"dragover",this),g(t,"dragenter",this)),Dt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),a(this,K())}function Yt(t,e,n,o,i,a,r,l){var s,c,h=t[F],f=h.options.onMove;return!window.CustomEvent||u||d?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=n,s.draggedRect=o,s.related=i||e,s.relatedRect=a||A(e),s.willInsertAfter=l,s.originalEvent=r,t.dispatchEvent(s),f&&(c=f.call(h,s,r)),c}function Ft(t){t.draggable=!1}function Kt(){Tt=!1}function Wt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;n--;)o+=e.charCodeAt(n);return o.toString(36)}function zt(t){return setTimeout(t,0)}function qt(t){return clearTimeout(t)}Ht.prototype={constructor:Ht,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(gt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,Z):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,i=o.preventOnFilter,a=t.type,r=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(r||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(function(t){Lt.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var o=e[n];o.checked&&Lt.push(o)}}(n),!Z&&!(/mousedown|pointerdown/.test(a)&&0!==t.button||o.disabled||s.isContentEditable||(l=E(l,o.draggable,n,!1))&&l.animated||et===l)){if(it=I(l),rt=I(l,o.draggable),"function"==typeof c){if(c.call(this,t,l,this))return V({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),U("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=E(s,o.trim(),n,!1))return V({sortable:e,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),U("filter",e,{evt:t}),!0}))))return void(i&&t.cancelable&&t.preventDefault());o.handle&&!E(s,o.handle,n,!1)||this._prepareDragStart(t,r,l)}}},_prepareDragStart:function(t,e,n){var o,i=this,a=i.el,r=i.options,l=a.ownerDocument;if(n&&!Z&&n.parentNode===a){var s=A(n);if(J=a,Q=(Z=n).parentNode,tt=Z.nextSibling,et=n,st=r.group,Ht.dragged=Z,ut={target:Z,clientX:(e||t).clientX,clientY:(e||t).clientY},pt=ut.clientX-s.left,vt=ut.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,Z.style["will-change"]="all",o=function(){U("delayEnded",i,{evt:t}),Ht.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!h&&i.nativeDraggable&&(Z.draggable=!0),i._triggerDragStart(t,e),V({sortable:i,name:"choose",originalEvent:t}),S(Z,r.chosenClass,!0))},r.ignore.split(",").forEach((function(t){T(Z,t.trim(),Ft)})),g(l,"dragover",Xt),g(l,"mousemove",Xt),g(l,"touchmove",Xt),g(l,"mouseup",i._onDrop),g(l,"touchend",i._onDrop),g(l,"touchcancel",i._onDrop),h&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Z.draggable=!0),U("delayStart",this,{evt:t}),!r.delay||r.delayOnTouchOnly&&!e||this.nativeDraggable&&(d||u))o();else{if(Ht.eventCanceled)return void this._onDrop();g(l,"mouseup",i._disableDelayedDrag),g(l,"touchend",i._disableDelayedDrag),g(l,"touchcancel",i._disableDelayedDrag),g(l,"mousemove",i._delayedDragTouchMoveHandler),g(l,"touchmove",i._delayedDragTouchMoveHandler),r.supportPointer&&g(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(o,r.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(){Z&&Ft(Z),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._disableDelayedDrag),b(t,"touchend",this._disableDelayedDrag),b(t,"touchcancel",this._disableDelayedDrag),b(t,"mousemove",this._delayedDragTouchMoveHandler),b(t,"touchmove",this._delayedDragTouchMoveHandler),b(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?g(document,"pointermove",this._onTouchMove):g(document,e?"touchmove":"mousemove",this._onTouchMove):(g(Z,"dragend",this),g(J,"dragstart",this._onDragStart));try{document.selection?zt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(Et=!1,J&&Z){U("dragStarted",this,{evt:e}),this.nativeDraggable&&g(document,"dragover",jt);var n=this.options;!t&&S(Z,n.dragClass,!1),S(Z,n.ghostClass,!0),Ht.active=this,t&&this._appendGhost(),V({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(dt){this._lastX=dt.clientX,this._lastY=dt.clientY,Bt();for(var t=document.elementFromPoint(dt.clientX,dt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(dt.clientX,dt.clientY))!==e;)e=t;if(Z.parentNode[F]._isOutsideThisEl(t),e)do{if(e[F]){if(e[F]._onDragOver({clientX:dt.clientX,clientY:dt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Rt()}},_onTouchMove:function(t){if(ut){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,i=t.touches?t.touches[0]:t,a=$&&C($),r=$&&a&&a.a,l=$&&a&&a.d,s=Ot&&_t&&N(_t),c=(i.clientX-ut.clientX+o.x)/(r||1)+(s?s[0]-Ct[0]:0)/(r||1),u=(i.clientY-ut.clientY+o.y)/(l||1)+(s?s[1]-Ct[1]:0)/(l||1);if(!Ht.active&&!Et){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if($){a?(a.e+=c-(ht||0),a.f+=u-(ft||0)):a={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");x($,"webkitTransform",d),x($,"mozTransform",d),x($,"msTransform",d),x($,"transform",d),ht=c,ft=u,dt=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!$){var t=this.options.fallbackOnBody?document.body:J,e=A(Z,!0,Ot,!0,t),n=this.options;if(Ot){for(_t=t;"static"===x(_t,"position")&&"none"===x(_t,"transform")&&_t!==document;)_t=_t.parentNode;_t!==document.body&&_t!==document.documentElement?(_t===document&&(_t=L()),e.top+=_t.scrollTop,e.left+=_t.scrollLeft):_t=L(),Ct=N(_t)}S($=Z.cloneNode(!0),n.ghostClass,!1),S($,n.fallbackClass,!0),S($,n.dragClass,!0),x($,"transition",""),x($,"transform",""),x($,"box-sizing","border-box"),x($,"margin",0),x($,"top",e.top),x($,"left",e.left),x($,"width",e.width),x($,"height",e.height),x($,"opacity","0.8"),x($,"position",Ot?"absolute":"fixed"),x($,"zIndex","100000"),x($,"pointerEvents","none"),Ht.ghost=$,t.appendChild($),x($,"transform-origin",pt/parseInt($.style.width)*100+"% "+vt/parseInt($.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,i=n.options;U("dragStart",this,{evt:t}),Ht.eventCanceled?this._onDrop():(U("setupClone",this),Ht.eventCanceled||((nt=j(Z)).draggable=!1,nt.style["will-change"]="",this._hideClone(),S(nt,this.options.chosenClass,!1),Ht.clone=nt),n.cloneId=zt((function(){U("clone",n),Ht.eventCanceled||(n.options.removeCloneOnHide||J.insertBefore(nt,Z),n._hideClone(),V({sortable:n,name:"clone"}))})),!e&&S(Z,i.dragClass,!0),e?(wt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(b(document,"mouseup",n._onDrop),b(document,"touchend",n._onDrop),b(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(n,o,Z)),g(document,"drop",n),x(Z,"transform","translateZ(0)")),Et=!0,n._dragStartId=zt(n._dragStarted.bind(n,e,t)),g(document,"selectstart",n),mt=!0,f&&x(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,o,i,a=this.el,l=t.target,s=this.options,c=s.group,u=Ht.active,d=st===c,h=s.sort,f=ct||u,p=this,v=!1;if(!Tt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),l=E(l,s.draggable,a,!0),B("dragOver"),Ht.eventCanceled)return v;if(Z.contains(t.target)||l.animated&&l.animatingX&&l.animatingY||p._ignoreWhileAnimating===l)return j(!1);if(wt=!1,u&&!s.disabled&&(d?h||(o=!J.contains(Z)):ct===this||(this.lastPutMode=st.checkPull(this,u,Z,t))&&c.checkPut(this,u,Z,t))){if(i="vertical"===this._getDirection(t,l),e=A(Z),B("dragOverValid"),Ht.eventCanceled)return v;if(o)return Q=J,R(),this._hideClone(),B("revert"),Ht.eventCanceled||(tt?J.insertBefore(Z,tt):J.appendChild(Z)),j(!0);var m=k(a,s.draggable);if(!m||function(t,e,n){var o=A(k(n.el,n.options.draggable));return e?t.clientX>o.right+10||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+10}(t,i,this)&&!m.animated){if(m===Z)return j(!1);if(m&&a===t.target&&(l=m),l&&(n=A(l)),!1!==Yt(J,a,Z,e,l,n,t,!!l))return R(),a.appendChild(Z),Q=a,H(),j(!0)}else if(l.parentNode===a){n=A(l);var g,b,y,_=Z.parentNode!==a,w=!function(t,e,n){var o=n?t.left:t.top,i=n?t.right:t.bottom,a=n?t.width:t.height,r=n?e.left:e.top,l=n?e.right:e.bottom,s=n?e.width:e.height;return o===r||i===l||o+a/2===r+s/2}(Z.animated&&Z.toRect||e,l.animated&&l.toRect||n,i),D=i?"top":"left",C=O(l,"top","top")||O(Z,"top","top"),T=C?C.scrollTop:void 0;if(gt!==l&&(b=n[D],St=!1,xt=!w&&s.invertSwap||_),0!==(g=function(t,e,n,o,i,a,r,l){var s=o?t.clientY:t.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,h=!1;if(!r)if(l&&yt<c*i){if(!St&&(1===bt?s>u+c*a/2:s<d-c*a/2)&&(St=!0),St)h=!0;else if(1===bt?s<u+yt:s>d-yt)return-bt}else if(s>u+c*(1-i)/2&&s<d-c*(1-i)/2)return function(t){return I(Z)<I(t)?1:-1}(e);if((h=h||r)&&(s<u+c*a/2||s>d-c*a/2))return s>u+c/2?1:-1;return 0}(t,l,n,i,w?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,xt,gt===l))){var L=I(Z);do{L-=g,y=Q.children[L]}while(y&&("none"===x(y,"display")||y===$))}if(0===g||y===l)return j(!1);gt=l,bt=g;var M=l.nextElementSibling,N=!1,P=Yt(J,a,Z,e,l,n,t,N=1===g);if(!1!==P)return 1!==P&&-1!==P||(N=1===P),Tt=!0,setTimeout(Kt,30),R(),N&&!M?a.appendChild(Z):l.parentNode.insertBefore(Z,N?M:l),C&&X(C,0,T-C.scrollTop),Q=Z.parentNode,void 0===b||xt||(yt=Math.abs(b-A(l)[D])),H(),j(!0)}if(a.contains(Z))return j(!1)}return!1}function B(s,c){U(s,p,r({evt:t,isOwner:d,axis:i?"vertical":"horizontal",revert:o,dragRect:e,targetRect:n,canSort:h,fromSortable:f,target:l,completed:j,onMove:function(n,o){return Yt(J,a,Z,e,n,A(n),t,o)},changed:H},c))}function R(){B("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function j(e){return B("dragOverCompleted",{insertion:e}),e&&(d?u._hideClone():u._showClone(p),p!==f&&(S(Z,ct?ct.options.ghostClass:u.options.ghostClass,!1),S(Z,s.ghostClass,!0)),ct!==p&&p!==Ht.active?ct=p:p===Ht.active&&ct&&(ct=null),f===p&&(p._ignoreWhileAnimating=l),p.animateAll((function(){B("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(l===Z&&!Z.animated||l===a&&!l.animated)&&(gt=null),s.dragoverBubble||t.rootEl||l===document||(Z.parentNode[F]._isOutsideThisEl(t.target),!e&&Xt(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function H(){at=I(Z),lt=I(Z,s.draggable),V({sortable:p,name:"change",toEl:a,newIndex:at,newDraggableIndex:lt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",Xt),b(document,"mousemove",Xt),b(document,"touchmove",Xt)},_offUpEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._onDrop),b(t,"touchend",this._onDrop),b(t,"pointerup",this._onDrop),b(t,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;at=I(Z),lt=I(Z,n.draggable),U("drop",this,{evt:t}),Q=Z&&Z.parentNode,at=I(Z),lt=I(Z,n.draggable),Ht.eventCanceled||(Et=!1,xt=!1,St=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),qt(this.cloneId),qt(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),f&&x(document.body,"user-select",""),t&&(mt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),$&&$.parentNode&&$.parentNode.removeChild($),(J===Q||ct&&"clone"!==ct.lastPutMode)&&nt&&nt.parentNode&&nt.parentNode.removeChild(nt),Z&&(this.nativeDraggable&&b(Z,"dragend",this),Ft(Z),Z.style["will-change"]="",mt&&!Et&&S(Z,ct?ct.options.ghostClass:this.options.ghostClass,!1),S(Z,this.options.chosenClass,!1),V({sortable:this,name:"unchoose",toEl:Q,newIndex:null,newDraggableIndex:null,originalEvent:t}),J!==Q?(at>=0&&(V({rootEl:Q,name:"add",toEl:Q,fromEl:J,originalEvent:t}),V({sortable:this,name:"remove",toEl:Q,originalEvent:t}),V({rootEl:Q,name:"sort",toEl:Q,fromEl:J,originalEvent:t}),V({sortable:this,name:"sort",toEl:Q,originalEvent:t})),ct&&ct.save()):at!==it&&at>=0&&(V({sortable:this,name:"update",toEl:Q,originalEvent:t}),V({sortable:this,name:"sort",toEl:Q,originalEvent:t})),Ht.active&&(null!=at&&-1!==at||(at=it,lt=rt),V({sortable:this,name:"end",toEl:Q,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){U("nulling",this),J=Z=Q=$=tt=nt=et=ot=ut=dt=mt=at=lt=it=rt=gt=bt=ct=st=Ht.dragged=Ht.ghost=Ht.clone=Ht.active=null,Lt.forEach((function(t){t.checked=!0})),Lt.length=ht=ft=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Z&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,i=n.length,a=this.options;o<i;o++)E(t=n[o],a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||Wt(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach((function(t,o){var i=n.children[o];E(i,this.options.draggable,n,!1)&&(e[t]=i)}),this),t.forEach((function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return E(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=q.modifyOption(this,t,e);n[t]=void 0!==o?o:e,"group"===t&&Pt(n)},destroy:function(){U("destroy",this);var t=this.el;t[F]=null,b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart),b(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),Dt.splice(Dt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ot){if(U("hideClone",this),Ht.eventCanceled)return;x(nt,"display","none"),this.options.removeCloneOnHide&&nt.parentNode&&nt.parentNode.removeChild(nt),ot=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(ot){if(U("showClone",this),Ht.eventCanceled)return;J.contains(Z)&&!this.options.group.revertClone?J.insertBefore(nt,Z):tt?J.insertBefore(nt,tt):J.appendChild(nt),this.options.group.revertClone&&this.animate(Z,nt),x(nt,"display",""),ot=!1}}else this._hideClone()}},At&&g(document,"touchmove",(function(t){(Ht.active||Et)&&t.cancelable&&t.preventDefault()})),Ht.utils={on:g,off:b,css:x,find:T,is:function(t,e){return!!E(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:R,closest:E,toggleClass:S,clone:j,index:I,nextTick:zt,cancelNextTick:qt,detectDirection:Nt,getChild:M},Ht.get=function(t){return t[F]},Ht.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&&(Ht.utils=r({},Ht.utils,t.utils)),q.mount(t)}))},Ht.create=function(t,e){return new Ht(t,e)},Ht.version="1.10.1";var Gt,Ut,Vt,Zt,Qt,$t,Jt=[],te=!1;function ee(){Jt.forEach((function(t){clearInterval(t.pid)})),Jt=[]}function ne(){clearInterval($t)}var oe,ie=R((function(t,e,n,o){if(e.scroll){var i,a=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,c=L(),u=!1;Ut!==n&&(Ut=n,ee(),Gt=e.scroll,i=e.scrollFn,!0===Gt&&(Gt=P(n,!0)));var d=0,h=Gt;do{var f=h,p=A(f),v=p.top,m=p.bottom,g=p.left,b=p.right,y=p.width,_=p.height,E=void 0,w=void 0,D=f.scrollWidth,S=f.scrollHeight,C=x(f),T=f.scrollLeft,O=f.scrollTop;f===c?(E=y<D&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),w=_<S&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(E=y<D&&("auto"===C.overflowX||"scroll"===C.overflowX),w=_<S&&("auto"===C.overflowY||"scroll"===C.overflowY));var M=E&&(Math.abs(b-a)<=l&&T+y<D)-(Math.abs(g-a)<=l&&!!T),k=w&&(Math.abs(m-r)<=l&&O+_<S)-(Math.abs(v-r)<=l&&!!O);if(!Jt[d])for(var I=0;I<=d;I++)Jt[I]||(Jt[I]={});Jt[d].vx==M&&Jt[d].vy==k&&Jt[d].el===f||(Jt[d].el=f,Jt[d].vx=M,Jt[d].vy=k,clearInterval(Jt[d].pid),0==M&&0==k||(u=!0,Jt[d].pid=setInterval(function(){o&&0===this.layer&&Ht.active._onTouchMove(Qt);var e=Jt[this.layer].vy?Jt[this.layer].vy*s:0,n=Jt[this.layer].vx?Jt[this.layer].vx*s:0;"function"==typeof i&&"continue"!==i.call(Ht.dragged.parentNode[F],n,e,t,Qt,Jt[this.layer].el)||X(Jt[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&h!==c&&(h=P(h,!1)));te=u}}),30),ae=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,i=t.activeSortable,a=t.dispatchSortableEvent,r=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var s=n||i;r();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(a("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function re(){}function le(){}function se(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;oe=e},dragOverValid:function(t){var e=t.completed,n=t.target,o=t.onMove,i=t.activeSortable,a=t.changed,r=t.cancel;if(i.options.swap){var l=this.sortable.el,s=this.options;if(n&&n!==l){var c=oe;!1!==o(n)?(S(n,s.swapClass,!0),oe=n):oe=null,c&&c!==oe&&S(c,s.swapClass,!1)}a(),e(!0),r()}},drop:function(t){var e=t.activeSortable,n=t.putSortable,o=t.dragEl,i=n||this.sortable,a=this.options;oe&&S(oe,a.swapClass,!1),oe&&(a.swap||n&&n.options.swap)&&o!==oe&&(i.captureAnimationState(),i!==e&&e.captureAnimationState(),function(t,e){var n,o,i=t.parentNode,a=e.parentNode;if(!i||!a||i.isEqualNode(e)||a.isEqualNode(t))return;n=I(t),o=I(e),i.isEqualNode(a)&&n<o&&o++;i.insertBefore(e,i.children[n]),a.insertBefore(t,a.children[o])}(o,oe),i.animateAll(),i!==e&&e.animateAll())},nulling:function(){oe=null}},a(t,{pluginName:"swap",eventProperties:function(){return{swapItem:oe}}})}re.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=M(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:ae},a(re,{pluginName:"revertOnSpill"}),le.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:ae},a(le,{pluginName:"removeOnSpill"});var ce,ue,de,he,fe,pe=[],ve=[],me=!1,ge=!1,be=!1;function ye(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?g(document,"pointerup",this._deselectMultiDrag):(g(document,"mouseup",this._deselectMultiDrag),g(document,"touchend",this._deselectMultiDrag)),g(document,"keydown",this._checkKeyDown),g(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,n){var o="";pe.length&&ue===t?pe.forEach((function(t,e){o+=(e?", ":"")+t.textContent})):o=n.textContent,e.setData("Text",o)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;de=e},delayEnded:function(){this.isMultiDrag=~pe.indexOf(de)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var o=0;o<pe.length;o++)ve.push(j(pe[o])),ve[o].sortableIndex=pe[o].sortableIndex,ve[o].draggable=!1,ve[o].style["will-change"]="",S(ve[o],this.options.selectedClass,!1),pe[o]===de&&S(ve[o],this.options.chosenClass,!1);e._hideClone(),n()}},clone:function(t){var e=t.sortable,n=t.rootEl,o=t.dispatchSortableEvent,i=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||pe.length&&ue===e&&(_e(!0,n),o("clone"),i()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,o=t.cancel;this.isMultiDrag&&(_e(!1,n),ve.forEach((function(t){x(t,"display","")})),e(),fe=!1,o())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),o=t.cancel;this.isMultiDrag&&(ve.forEach((function(t){x(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),n(),fe=!0,o())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&ue&&ue.multiDrag._deselectMultiDrag(),pe.forEach((function(t){t.sortableIndex=I(t)})),pe=pe.sort((function(t,e){return t.sortableIndex-e.sortableIndex})),be=!0},dragStarted:function(t){var e=this,n=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){pe.forEach((function(t){t!==de&&x(t,"position","absolute")}));var o=A(de,!1,!0,!0);pe.forEach((function(t){t!==de&&H(t,o)})),ge=!0,me=!0}n.animateAll((function(){ge=!1,me=!1,e.options.animation&&pe.forEach((function(t){Y(t)})),e.options.sort&&Ee()}))}},dragOver:function(t){var e=t.target,n=t.completed,o=t.cancel;ge&&~pe.indexOf(e)&&(n(!1),o())},revert:function(t){var e=t.fromSortable,n=t.rootEl,o=t.sortable,i=t.dragRect;pe.length>1&&(pe.forEach((function(t){o.addAnimationState({target:t,rect:ge?A(t):i}),Y(t),t.fromRect=i,e.removeAnimationState(t)})),ge=!1,function(t,e){pe.forEach((function(n,o){var i=e.children[n.sortableIndex+(t?Number(o):0)];i?e.insertBefore(n,i):e.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,o=t.insertion,i=t.activeSortable,a=t.parentEl,r=t.putSortable,l=this.options;if(o){if(n&&i._hideClone(),me=!1,l.animation&&pe.length>1&&(ge||!n&&!i.options.sort&&!r)){var s=A(de,!1,!0,!0);pe.forEach((function(t){t!==de&&(H(t,s),a.appendChild(t))})),ge=!0}if(!n)if(ge||Ee(),pe.length>1){var c=fe;i._showClone(e),i.options.animation&&!fe&&c&&ve.forEach((function(t){i.addAnimationState({target:t,rect:he}),t.fromRect=he,t.thisAnimationDuration=null}))}else i._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,o=t.activeSortable;if(pe.forEach((function(t){t.thisAnimationDuration=null})),o.options.animation&&!n&&o.multiDrag.isMultiDrag){he=a({},e);var i=C(de,!0);he.top-=i.f,he.left-=i.e}},dragOverAnimationComplete:function(){ge&&(ge=!1,Ee())},drop:function(t){var e=t.originalEvent,n=t.rootEl,o=t.parentEl,i=t.sortable,a=t.dispatchSortableEvent,r=t.oldIndex,l=t.putSortable,s=l||this.sortable;if(e){var c=this.options,u=o.children;if(!be)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),S(de,c.selectedClass,!~pe.indexOf(de)),~pe.indexOf(de))pe.splice(pe.indexOf(de),1),ce=null,G({sortable:i,rootEl:n,name:"deselect",targetEl:de,originalEvt:e});else{if(pe.push(de),G({sortable:i,rootEl:n,name:"select",targetEl:de,originalEvt:e}),e.shiftKey&&ce&&i.el.contains(ce)){var d,h,f=I(ce),p=I(de);if(~f&&~p&&f!==p)for(p>f?(h=f,d=p):(h=p,d=f+1);h<d;h++)~pe.indexOf(u[h])||(S(u[h],c.selectedClass,!0),pe.push(u[h]),G({sortable:i,rootEl:n,name:"select",targetEl:u[h],originalEvt:e}))}else ce=de;ue=s}if(be&&this.isMultiDrag){if((o[F].options.sort||o!==n)&&pe.length>1){var v=A(de),m=I(de,":not(."+this.options.selectedClass+")");if(!me&&c.animation&&(de.thisAnimationDuration=null),s.captureAnimationState(),!me&&(c.animation&&(de.fromRect=v,pe.forEach((function(t){if(t.thisAnimationDuration=null,t!==de){var e=ge?A(t):v;t.fromRect=e,s.addAnimationState({target:t,rect:e})}}))),Ee(),pe.forEach((function(t){u[m]?o.insertBefore(t,u[m]):o.appendChild(t),m++})),r===I(de))){var g=!1;pe.forEach((function(t){t.sortableIndex===I(t)||(g=!0)})),g&&a("update")}pe.forEach((function(t){Y(t)})),s.animateAll()}ue=s}(n===o||l&&"clone"!==l.lastPutMode)&&ve.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=be=!1,ve.length=0},destroyGlobal:function(){this._deselectMultiDrag(),b(document,"pointerup",this._deselectMultiDrag),b(document,"mouseup",this._deselectMultiDrag),b(document,"touchend",this._deselectMultiDrag),b(document,"keydown",this._checkKeyDown),b(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!be&&ue===this.sortable&&!(t&&E(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;pe.length;){var e=pe[0];S(e,this.options.selectedClass,!1),pe.shift(),G({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)}},a(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[F];e&&e.options.multiDrag&&!~pe.indexOf(t)&&(ue&&ue!==e&&(ue.multiDrag._deselectMultiDrag(),ue=e),S(t,e.options.selectedClass,!0),pe.push(t))},deselect:function(t){var e=t.parentNode[F],n=pe.indexOf(t);e&&e.options.multiDrag&&~n&&(S(t,e.options.selectedClass,!1),pe.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return pe.forEach((function(o){var i;e.push({multiDragElement:o,index:o.sortableIndex}),i=ge&&o!==de?-1:ge?I(o,":not(."+t.options.selectedClass+")"):I(o),n.push({multiDragElement:o,index:i})})),{items:s(pe),clones:[].concat(ve),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function _e(t,e){ve.forEach((function(n,o){var i=e.children[n.sortableIndex+(t?Number(o):0)];i?e.insertBefore(n,i):e.appendChild(n)}))}function Ee(){pe.forEach((function(t){t!==de&&t.parentNode&&t.parentNode.removeChild(t)}))}Ht.mount(new function(){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?g(document,"dragover",this._handleAutoScroll):this.options.supportPointer?g(document,"pointermove",this._handleFallbackAutoScroll):e.touches?g(document,"touchmove",this._handleFallbackAutoScroll):g(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):(b(document,"pointermove",this._handleFallbackAutoScroll),b(document,"touchmove",this._handleFallbackAutoScroll),b(document,"mousemove",this._handleFallbackAutoScroll)),ne(),ee(),clearTimeout(w),w=void 0},nulling:function(){Qt=Ut=Gt=te=$t=Vt=Zt=null,Jt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,o=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=document.elementFromPoint(o,i);if(Qt=t,e||d||u||f){ie(t,this.options,a,e);var r=P(a,!0);!te||$t&&o===Vt&&i===Zt||($t&&ne(),$t=setInterval((function(){var a=P(document.elementFromPoint(o,i),!0);a!==r&&(r=a,ee()),ie(t,n.options,a,e)}),10),Vt=o,Zt=i)}else{if(!this.options.bubbleScroll||P(a,!0)===L())return void ee();ie(t,this.options,P(a,!1),!1)}}},a(t,{pluginName:"scroll",initializeByDefault:!0})}),Ht.mount(le,re),e.default=Ht},"./src/dual-listbox.js":function(t,e,n){"use strict";n.r(e),n.d(e,"DualListbox",(function(){return s}));var o=n("./node_modules/sortablejs/modular/sortable.esm.js");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})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var l="dual-listbox__item--selected",s=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,t),this.setDefaults(),this.selected=[],this.available=[],t.isDomElement(e)?this.select=e:this.select=document.querySelector(e),this._initOptions(n),this._initReusableElements(),this._splitOptions(this.select.options),void 0!==n.options&&this._splitOptions(n.options),this._buildDualListbox(this.select.parentNode),this._addActions(),this.redraw()}var e,n,s;return e=t,s=[{key:"isDomElement",value:function(t){return"object"===("undefined"==typeof HTMLElement?"undefined":i(HTMLElement))?t instanceof HTMLElement:t&&"object"===i(t)&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName}}],(n=[{key:"setDefaults",value:function(){this.addEvent=null,this.removeEvent=null,this.availableTitle="Available options",this.selectedTitle="Selected options",this.showAddButton=!0,this.addButtonText="add",this.showRemoveButton=!0,this.removeButtonText="remove",this.showAddAllButton=!0,this.addAllButtonText="add all",this.showRemoveAllButton=!0,this.removeAllButtonText="remove all",this.searchPlaceholder="Search"}},{key:"addEventListener",value:function(t,e){this.dualListbox.addEventListener(t,e)}},{key:"addSelected",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.available.indexOf(t);i>-1&&(this.available.splice(i,1),null!==n?this.selected.splice(n,0,t):this.selected.push(t),this._selectOption(t.dataset.id),this.rebuildOrder(),o&&this.redraw(),setTimeout((function(){var n=document.createEvent("HTMLEvents");n.initEvent("added",!1,!0),n.addedElement=t,e.dualListbox.dispatchEvent(n)}),0))}},{key:"redraw",value:function(){this.updateAvailableListbox(),this.updateSelectedListbox()}},{key:"removeSelected",value:function(t){var e=this,n=this.selected.indexOf(t);n>-1&&(this.selected.splice(n,1),this.available.push(t),this._deselectOption(t.dataset.id),this.redraw(),setTimeout((function(){var n=document.createEvent("HTMLEvents");n.initEvent("removed",!1,!0),n.removedElement=t,e.dualListbox.dispatchEvent(n)}),0))}},{key:"searchLists",value:function(t,e){for(var n=e.querySelectorAll(".".concat("dual-listbox__item")),o=t.toLowerCase(),i=0;i<n.length;i++){var a=n[i];-1===a.textContent.toLowerCase().indexOf(o)?a.style.display="none":a.style.display="list-item"}}},{key:"updateAvailableListbox",value:function(){this._updateListbox(this.availableList,this.available)}},{key:"updateSelectedListbox",value:function(){this._updateListbox(this.selectedList,this.selected)}},{key:"_actionAllSelected",value:function(t){var e=this;t.preventDefault(),this.available.filter((function(t){return"none"!==t.style.display})).forEach((function(t){return e.addSelected(t)}))}},{key:"_updateListbox",value:function(t,e){for(e.sort((function(t,e){return parseInt(t.dataset.order)>parseInt(e.dataset.order)?1:-1}));t.firstChild;)t.removeChild(t.firstChild);for(var n=0;n<e.length;n++){var o=e[n];t.appendChild(o)}}},{key:"_actionItemSelected",value:function(t){t.preventDefault();var e=this.dualListbox.querySelector(".".concat(l));e&&this.addSelected(e)}},{key:"_actionAllDeselected",value:function(t){var e=this;t.preventDefault(),this.selected.filter((function(t){return"none"!==t.style.display})).forEach((function(t){return e.removeSelected(t)}))}},{key:"_actionItemDeselected",value:function(t){t.preventDefault();var e=this.dualListbox.querySelector(".".concat(l));e&&this.removeSelected(e)}},{key:"_actionItemDoubleClick",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e&&(e.preventDefault(),e.stopPropagation()),this.selected.indexOf(t)>-1?this.removeSelected(t):this.addSelected(t)}},{key:"_actionItemClick",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;n&&n.preventDefault();for(var o=e.querySelectorAll(".".concat("dual-listbox__item")),i=0;i<o.length;i++){var a=o[i];a!==t&&a.classList.remove(l)}t.classList.contains(l)?t.classList.remove(l):t.classList.add(l)}},{key:"_addActions",value:function(){this._addButtonActions(),this._addSearchActions()}},{key:"_addButtonActions",value:function(){var t=this;this.add_all_button.addEventListener("click",(function(e){return t._actionAllSelected(e)})),this.add_button.addEventListener("click",(function(e){return t._actionItemSelected(e)})),this.remove_button.addEventListener("click",(function(e){return t._actionItemDeselected(e)})),this.remove_all_button.addEventListener("click",(function(e){return t._actionAllDeselected(e)}))}},{key:"_addClickActions",value:function(t){var e=this;return t.addEventListener("dblclick",(function(n){return e._actionItemDoubleClick(t,n)})),t.addEventListener("click",(function(n){return e._actionItemClick(t,e.dualListbox,n)})),t}},{key:"_addSearchActions",value:function(){var t=this;this.search.addEventListener("change",(function(e){return t.searchLists(e.target.value,t.dualListbox)})),this.search.addEventListener("keyup",(function(e){return t.searchLists(e.target.value,t.dualListbox)}))}},{key:"_buildDualListbox",value:function(t){this.select.style.display="none",this.dualListBoxContainer.appendChild(this._createList(this.availableListTitle,this.availableList)),this.dualListBoxContainer.appendChild(this.buttons),this.dualListBoxContainer.appendChild(this._createList(this.selectedListTitle,this.selectedList)),this.dualListbox.appendChild(this.search),this.dualListbox.appendChild(this.dualListBoxContainer),t.insertBefore(this.dualListbox,this.select)}},{key:"_createList",value:function(t,e){var n=document.createElement("div");return n.appendChild(t),n.appendChild(e),n}},{key:"_createButtons",value:function(){this.buttons=document.createElement("div"),this.buttons.classList.add("dual-listbox__buttons"),this.add_all_button=document.createElement("button"),this.add_all_button.classList.add("dual-listbox__button"),this.add_all_button.innerHTML=this.addAllButtonText,this.add_all_button.setAttribute("type","button"),this.add_button=document.createElement("button"),this.add_button.classList.add("dual-listbox__button"),this.add_button.innerHTML=this.addButtonText,this.add_button.setAttribute("type","button"),this.remove_button=document.createElement("button"),this.remove_button.classList.add("dual-listbox__button"),this.remove_button.innerHTML=this.removeButtonText,this.remove_button.setAttribute("type","button"),this.remove_all_button=document.createElement("button"),this.remove_all_button.classList.add("dual-listbox__button"),this.remove_all_button.innerHTML=this.removeAllButtonText,this.remove_all_button.setAttribute("type","button"),this.showAddAllButton&&this.buttons.appendChild(this.add_all_button),this.showAddButton&&this.buttons.appendChild(this.add_button),this.showRemoveButton&&this.buttons.appendChild(this.remove_button),this.showRemoveAllButton&&this.buttons.appendChild(this.remove_all_button)}},{key:"_createListItem",value:function(t){var e=document.createElement("li");return e.classList.add("dual-listbox__item"),e.innerHTML=t.text,e.dataset.id=t.value,console.log(t.dataset.order),t.dataset.order&&(e.dataset.order=t.dataset.order),e.setAttribute("draggable","true"),this._addClickActions(e),e}},{key:"_createSearch",value:function(){this.search=document.createElement("input"),this.search.classList.add("dual-listbox__search"),this.search.placeholder=this.searchPlaceholder}},{key:"_deselectOption",value:function(t){for(var e=this.select.options,n=0;n<e.length;n++){var o=e[n];o.value===t&&(o.selected=!1,o.removeAttribute("selected"))}this.removeEvent&&this.removeEvent(t)}},{key:"_initOptions",value:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e])}},{key:"_initReusableElements",value:function(){var t=this;this.dualListbox=document.createElement("div"),this.dualListbox.classList.add("dual-listbox"),this.select.id&&this.dualListbox.classList.add(this.select.id),this.dualListBoxContainer=document.createElement("div"),this.dualListBoxContainer.classList.add("dual-listbox__container"),this.availableList=document.createElement("ul"),this.availableList.classList.add("dual-listbox__available"),o.default.create(this.availableList,{group:"test",sort:!1,animation:150}),this.availableList.addEventListener("end",(function(e){e.to===e.from&&t.reorder(t.available,e.item,e.oldIndex,e.newIndex,e.to===e.from)})),this.availableList.addEventListener("add",(function(e){t.removeSelected(e.item)})),this.selectedList=document.createElement("ul"),this.selectedList.classList.add("dual-listbox__selected"),o.default.create(this.selectedList,{group:"test",animation:150}),this.selectedList.addEventListener("end",(function(e){e.to===e.from&&t.reorder(t.selected,e.item,e.oldIndex,e.newIndex,e.to===e.from)})),this.selectedList.addEventListener("add",(function(e){t.addSelected(e.item,e.newIndex)})),this.availableListTitle=document.createElement("div"),this.availableListTitle.classList.add("dual-listbox__title"),this.availableListTitle.innerText=this.availableTitle,this.selectedListTitle=document.createElement("div"),this.selectedListTitle.classList.add("dual-listbox__title"),this.selectedListTitle.innerText=this.selectedTitle,this._createButtons(),this._createSearch()}},{key:"rebuildOrder",value:function(){this.available.forEach((function(t,e){t.dataset.order=e})),this.selected.forEach((function(t,e){t.dataset.order=e}))}},{key:"reorder",value:function(t,e,n,o,i){var a=this;i&&t.splice(n,1),t.splice(o,0,e),this.rebuildOrder(),this.redraw(),setTimeout((function(){var i=document.createEvent("HTMLEvents");i.initEvent("reorder",!1,!0),i.reorderedItem=e,i.reorderedList=t,i.reorderedOldValue=n,i.reorderedNewValue=o,a.dualListbox.dispatchEvent(i)}),0)}},{key:"_selectOption",value:function(t){for(var e=this.select.options,n=0;n<e.length;n++){var o=e[n];o.value===t&&(o.selected=!0,o.setAttribute("selected",""))}this.addEvent&&this.addEvent(t)}},{key:"_splitOptions",value:function(e){for(var n=0;n<e.length;n++){var o=e[n];t.isDomElement(o)?this._addOption({text:o.innerHTML,value:o.value,selected:o.attributes.selected,dataset:{order:o.dataset&&o.dataset.order?o.dataset.order:""}}):this._addOption(o)}}},{key:"_addOption",value:function(t){var e=this._createListItem(t);t.selected?this.selected.push(e):this.available.push(e)}}])&&r(e.prototype,n),s&&r(e,s),t}();e.default=s}})}));
b IDATxytVսϓ22 A@IR:hCiZ[v*E:WũZA ^dQeQ @ !jZ'>gsV仿$|?g)&x-E