Files
go-tracker/web/dist/assets/IssuesRootView-D0D4goRo.js
2025-11-12 09:57:22 +03:00

11 lines
52 KiB
JavaScript

import{d as se,r as m,q as Nt,v as zt,x as at,y as Ct,z as Ce,h as q,o as C,w as p,b as f,e as O,t as K,a as bt,l as ye,c as W,F as Te,A as Oe,p as Ve,i as ee,g as we,B as sn,C as ln,D as un,_ as Xe,E as yt,f as cn}from"./index-KpQc9ZlS.js";import{_ as dn}from"./DynamicMenu.vue_vue_type_script_setup_true_lang-nOliheZx.js";/*!
* vue-draggable-next v2.2.0
* (c) 2023 Anish George
* @license MIT
*//**!
* Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function oe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kt(Object(n),!0).forEach(function(o){fn(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Ke(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ke=function(e){return typeof e}:Ke=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ke(t)}function fn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ae(){return ae=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},ae.apply(this,arguments)}function hn(t,e){if(t==null)return{};var n={},o=Object.keys(t),i,r;for(r=0;r<o.length;r++)i=o[r],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function pn(t,e){if(t==null)return{};var n=hn(t,e),o,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}var mn="1.14.0";function re(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var le=re(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ye=re(/Edge/i),Mt=re(/firefox/i),$e=re(/safari/i)&&!re(/chrome/i)&&!re(/android/i),Ht=re(/iP(ad|od|hone)/i),gn=re(/chrome/i)&&re(/android/i),Gt={capture:!1,passive:!1};function D(t,e,n){t.addEventListener(e,n,!le&&Gt)}function x(t,e,n){t.removeEventListener(e,n,!le&&Gt)}function tt(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{return!1}return!1}}function vn(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function te(t,e,n,o){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&tt(t,e):tt(t,e))||o&&t===n)return t;if(t===n)break}while(t=vn(t))}return null}var Ft=/\s+/g;function H(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(Ft," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(Ft," ")}}function v(t,e,n){var o=t&&t.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in o)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),o[e]=n+(typeof n=="string"?"":"px")}}function Ie(t,e){var n="";if(typeof t=="string")n=t;else do{var o=v(t,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Ut(t,e,n){if(t){var o=t.getElementsByTagName(e),i=0,r=o.length;if(n)for(;i<r;i++)n(o[i],i);return o}return[]}function ne(){var t=document.scrollingElement;return t||document.documentElement}function L(t,e,n,o,i){if(!(!t.getBoundingClientRect&&t!==window)){var r,a,s,l,u,h,c;if(t!==window&&t.parentNode&&t!==ne()?(r=t.getBoundingClientRect(),a=r.top,s=r.left,l=r.bottom,u=r.right,h=r.height,c=r.width):(a=0,s=0,l=window.innerHeight,u=window.innerWidth,h=window.innerHeight,c=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!le))do if(i&&i.getBoundingClientRect&&(v(i,"transform")!=="none"||n&&v(i,"position")!=="static")){var b=i.getBoundingClientRect();a-=b.top+parseInt(v(i,"border-top-width")),s-=b.left+parseInt(v(i,"border-left-width")),l=a+r.height,u=s+r.width;break}while(i=i.parentNode);if(o&&t!==window){var y=Ie(i||t),g=y&&y.a,w=y&&y.d;y&&(a/=w,s/=g,c/=g,h/=w,l=a+h,u=s+c)}return{top:a,left:s,bottom:l,right:u,width:c,height:h}}}function $t(t,e,n){for(var o=he(t,!0),i=L(t)[e];o;){var r=L(o)[n],a=void 0;if(a=i>=r,!a)return o;if(o===ne())break;o=he(o,!1)}return!1}function Ae(t,e,n,o){for(var i=0,r=0,a=t.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==_.ghost&&(o||a[r]!==_.dragged)&&te(a[r],n.draggable,t,!1)){if(i===e)return a[r];i++}r++}return null}function Tt(t,e){for(var n=t.lastElementChild;n&&(n===_.ghost||v(n,"display")==="none"||e&&!tt(n,e));)n=n.previousElementSibling;return n||null}function Q(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==_.clone&&(!e||tt(t,e))&&n++;return n}function Lt(t){var e=0,n=0,o=ne();if(t)do{var i=Ie(t),r=i.a,a=i.d;e+=t.scrollLeft*r,n+=t.scrollTop*a}while(t!==o&&(t=t.parentNode));return[e,n]}function _n(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}function he(t,e){if(!t||!t.getBoundingClientRect)return ne();var n=t,o=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=v(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return ne();if(o||e)return n;o=!0}}while(n=n.parentNode);return ne()}function bn(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function lt(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)}var Le;function Wt(t,e){return function(){if(!Le){var n=arguments,o=this;n.length===1?t.call(o,n[0]):t.apply(o,n),Le=setTimeout(function(){Le=void 0},e)}}}function yn(){clearTimeout(Le),Le=void 0}function qt(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function Kt(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)}var U="Sortable"+new Date().getTime();function wn(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(i){if(!(v(i,"display")==="none"||i===_.ghost)){t.push({target:i,rect:L(i)});var r=oe({},t[t.length-1].rect);if(i.thisAnimationDuration){var a=Ie(i,!0);a&&(r.top-=a.f,r.left-=a.e)}i.fromRect=r}})}},addAnimationState:function(o){t.push(o)},removeAnimationState:function(o){t.splice(_n(t,{target:o}),1)},animateAll:function(o){var i=this;if(!this.options.animation){clearTimeout(e),typeof o=="function"&&o();return}var r=!1,a=0;t.forEach(function(s){var l=0,u=s.target,h=u.fromRect,c=L(u),b=u.prevFromRect,y=u.prevToRect,g=s.rect,w=Ie(u,!0);w&&(c.top-=w.f,c.left-=w.e),u.toRect=c,u.thisAnimationDuration&&lt(b,c)&&!lt(h,c)&&(g.top-c.top)/(g.left-c.left)===(h.top-c.top)/(h.left-c.left)&&(l=xn(g,b,y,i.options)),lt(c,h)||(u.prevFromRect=h,u.prevToRect=c,l||(l=i.options.animation),i.animate(u,g,c,l)),l&&(r=!0,a=Math.max(a,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(e),r?e=setTimeout(function(){typeof o=="function"&&o()},a):typeof o=="function"&&o(),t=[]},animate:function(o,i,r,a){if(a){v(o,"transition",""),v(o,"transform","");var s=Ie(this.el),l=s&&s.a,u=s&&s.d,h=(i.left-r.left)/(l||1),c=(i.top-r.top)/(u||1);o.animatingX=!!h,o.animatingY=!!c,v(o,"transform","translate3d("+h+"px,"+c+"px,0)"),this.forRepaintDummy=En(o),v(o,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),v(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){v(o,"transition",""),v(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},a)}}}}function En(t){return t.offsetWidth}function xn(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}var Ee=[],ut={initializeByDefault:!0},ze={mount:function(e){for(var n in ut)ut.hasOwnProperty(n)&&!(n in e)&&(e[n]=ut[n]);Ee.forEach(function(o){if(o.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Ee.push(e)},pluginEvent:function(e,n,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var r=e+"Global";Ee.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][r]&&n[a.pluginName][r](oe({sortable:n},o)),n.options[a.pluginName]&&n[a.pluginName][e]&&n[a.pluginName][e](oe({sortable:n},o)))})},initializePlugins:function(e,n,o,i){Ee.forEach(function(s){var l=s.pluginName;if(!(!e.options[l]&&!s.initializeByDefault)){var u=new s(e,n,e.options);u.sortable=e,u.options=e.options,e[l]=u,ae(o,u.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var a=this.modifyOption(e,r,e.options[r]);typeof a<"u"&&(e.options[r]=a)}},getEventProperties:function(e,n){var o={};return Ee.forEach(function(i){typeof i.eventProperties=="function"&&ae(o,i.eventProperties.call(n[i.pluginName],e))}),o},modifyOption:function(e,n,o){var i;return Ee.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[n]=="function"&&(i=r.optionListeners[n].call(e[r.pluginName],o))}),i}};function Dn(t){var e=t.sortable,n=t.rootEl,o=t.name,i=t.targetEl,r=t.cloneEl,a=t.toEl,s=t.fromEl,l=t.oldIndex,u=t.newIndex,h=t.oldDraggableIndex,c=t.newDraggableIndex,b=t.originalEvent,y=t.putSortable,g=t.extraEventProperties;if(e=e||n&&n[U],!!e){var w,S=e.options,k="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!le&&!Ye?w=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(w=document.createEvent("Event"),w.initEvent(o,!0,!0)),w.to=a||n,w.from=s||n,w.item=i||n,w.clone=r,w.oldIndex=l,w.newIndex=u,w.oldDraggableIndex=h,w.newDraggableIndex=c,w.originalEvent=b,w.pullMode=y?y.lastPutMode:void 0;var I=oe(oe({},g),ze.getEventProperties(o,e));for(var A in I)w[A]=I[A];n&&n.dispatchEvent(w),S[k]&&S[k].call(e,w)}}var Sn=["evt"],z=function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.evt,r=pn(o,Sn);ze.pluginEvent.bind(_)(e,n,oe({dragEl:d,parentEl:P,ghostEl:E,rootEl:T,nextEl:be,lastDownEl:Ze,cloneEl:N,cloneHidden:fe,dragStarted:ke,putSortable:R,activeSortable:_.active,originalEvent:i,oldIndex:Se,oldDraggableIndex:je,newIndex:G,newDraggableIndex:de,hideGhostForTarget:en,unhideGhostForTarget:tn,cloneNowHidden:function(){fe=!0},cloneNowShown:function(){fe=!1},dispatchSortableEvent:function(s){Y({sortable:n,name:s,originalEvent:i})}},r))};function Y(t){Dn(oe({putSortable:R,cloneEl:N,targetEl:d,rootEl:T,oldIndex:Se,oldDraggableIndex:je,newIndex:G,newDraggableIndex:de},t))}var d,P,E,T,be,Ze,N,fe,Se,G,je,de,Ge,R,De=!1,nt=!1,ot=[],ve,J,ct,dt,jt,Rt,ke,xe,Re,Be=!1,Ue=!1,Qe,V,ft=[],wt=!1,it=[],st=typeof document<"u",We=Ht,Bt=Ye||le?"cssFloat":"float",In=st&&!gn&&!Ht&&"draggable"in document.createElement("div"),Zt=function(){if(st){if(le)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),Qt=function(e,n){var o=v(e),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=Ae(e,0,n),a=Ae(e,1,n),s=r&&v(r),l=a&&v(a),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+L(r).width,h=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+L(a).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&s.float&&s.float!=="none"){var c=s.float==="left"?"left":"right";return a&&(l.clear==="both"||l.clear===c)?"vertical":"horizontal"}return r&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||u>=i&&o[Bt]==="none"||a&&o[Bt]==="none"&&u+h>i)?"vertical":"horizontal"},Cn=function(e,n,o){var i=o?e.left:e.top,r=o?e.right:e.bottom,a=o?e.width:e.height,s=o?n.left:n.top,l=o?n.right:n.bottom,u=o?n.width:n.height;return i===s||r===l||i+a/2===s+u/2},Tn=function(e,n){var o;return ot.some(function(i){var r=i[U].options.emptyInsertThreshold;if(!(!r||Tt(i))){var a=L(i),s=e>=a.left-r&&e<=a.right+r,l=n>=a.top-r&&n<=a.bottom+r;if(s&&l)return o=i}}),o},Jt=function(e){function n(r,a){return function(s,l,u,h){var c=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(r==null&&(a||c))return!0;if(r==null||r===!1)return!1;if(a&&r==="clone")return r;if(typeof r=="function")return n(r(s,l,u,h),a)(s,l,u,h);var b=(a?s:l).options.group.name;return r===!0||typeof r=="string"&&r===b||r.join&&r.indexOf(b)>-1}}var o={},i=e.group;(!i||Ke(i)!="object")&&(i={name:i}),o.name=i.name,o.checkPull=n(i.pull,!0),o.checkPut=n(i.put),o.revertClone=i.revertClone,e.group=o},en=function(){!Zt&&E&&v(E,"display","none")},tn=function(){!Zt&&E&&v(E,"display","")};st&&document.addEventListener("click",function(t){if(nt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),nt=!1,!1},!0);var _e=function(e){if(d){e=e.touches?e.touches[0]:e;var n=Tn(e.clientX,e.clientY);if(n){var o={};for(var i in e)e.hasOwnProperty(i)&&(o[i]=e[i]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[U]._onDragOver(o)}}},On=function(e){d&&d.parentNode[U]._isOutsideThisEl(e.target)};function _(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=ae({},e),t[U]=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(a,s){a.setData("Text",s.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:_.supportPointer!==!1&&"PointerEvent"in window&&!$e,emptyInsertThreshold:5};ze.initializePlugins(this,t,n);for(var o in n)!(o in e)&&(e[o]=n[o]);Jt(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:In,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?D(t,"pointerdown",this._onTapStart):(D(t,"mousedown",this._onTapStart),D(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(D(t,"dragover",this),D(t,"dragenter",this)),ot.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),ae(this,wn())}_.prototype={constructor:_,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(xe=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,d):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,o=this.el,i=this.options,r=i.preventOnFilter,a=e.type,s=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,l=(s||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,h=i.filter;if(Ln(o),!d&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&$e&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=te(l,i.draggable,o,!1),!(l&&l.animated)&&Ze!==l)){if(Se=Q(l),je=Q(l,i.draggable),typeof h=="function"){if(h.call(this,e,l,this)){Y({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:o,fromEl:o}),z("filter",n,{evt:e}),r&&e.cancelable&&e.preventDefault();return}}else if(h&&(h=h.split(",").some(function(c){if(c=te(u,c.trim(),o,!1),c)return Y({sortable:n,rootEl:c,name:"filter",targetEl:l,fromEl:o,toEl:o}),z("filter",n,{evt:e}),!0}),h)){r&&e.cancelable&&e.preventDefault();return}i.handle&&!te(u,i.handle,o,!1)||this._prepareDragStart(e,s,l)}}},_prepareDragStart:function(e,n,o){var i=this,r=i.el,a=i.options,s=r.ownerDocument,l;if(o&&!d&&o.parentNode===r){var u=L(o);if(T=r,d=o,P=d.parentNode,be=d.nextSibling,Ze=o,Ge=a.group,_.dragged=d,ve={target:d,clientX:(n||e).clientX,clientY:(n||e).clientY},jt=ve.clientX-u.left,Rt=ve.clientY-u.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,d.style["will-change"]="all",l=function(){if(z("delayEnded",i,{evt:e}),_.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!Mt&&i.nativeDraggable&&(d.draggable=!0),i._triggerDragStart(e,n),Y({sortable:i,name:"choose",originalEvent:e}),H(d,a.chosenClass,!0)},a.ignore.split(",").forEach(function(h){Ut(d,h.trim(),ht)}),D(s,"dragover",_e),D(s,"mousemove",_e),D(s,"touchmove",_e),D(s,"mouseup",i._onDrop),D(s,"touchend",i._onDrop),D(s,"touchcancel",i._onDrop),Mt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,d.draggable=!0),z("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ye||le))){if(_.eventCanceled){this._onDrop();return}D(s,"mouseup",i._disableDelayedDrag),D(s,"touchend",i._disableDelayedDrag),D(s,"touchcancel",i._disableDelayedDrag),D(s,"mousemove",i._delayedDragTouchMoveHandler),D(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&D(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,a.delay)}else l()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){d&&ht(d),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;x(e,"mouseup",this._disableDelayedDrag),x(e,"touchend",this._disableDelayedDrag),x(e,"touchcancel",this._disableDelayedDrag),x(e,"mousemove",this._delayedDragTouchMoveHandler),x(e,"touchmove",this._delayedDragTouchMoveHandler),x(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?D(document,"pointermove",this._onTouchMove):n?D(document,"touchmove",this._onTouchMove):D(document,"mousemove",this._onTouchMove):(D(d,"dragend",this),D(T,"dragstart",this._onDragStart));try{document.selection?Je(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(De=!1,T&&d){z("dragStarted",this,{evt:n}),this.nativeDraggable&&D(document,"dragover",On);var o=this.options;!e&&H(d,o.dragClass,!1),H(d,o.ghostClass,!0),_.active=this,e&&this._appendGhost(),Y({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(J){this._lastX=J.clientX,this._lastY=J.clientY,en();for(var e=document.elementFromPoint(J.clientX,J.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(J.clientX,J.clientY),e!==n);)n=e;if(d.parentNode[U]._isOutsideThisEl(e),n)do{if(n[U]){var o=void 0;if(o=n[U]._onDragOver({clientX:J.clientX,clientY:J.clientY,target:e,rootEl:n}),o&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);tn()}},_onTouchMove:function(e){if(ve){var n=this.options,o=n.fallbackTolerance,i=n.fallbackOffset,r=e.touches?e.touches[0]:e,a=E&&Ie(E,!0),s=E&&a&&a.a,l=E&&a&&a.d,u=We&&V&&Lt(V),h=(r.clientX-ve.clientX+i.x)/(s||1)+(u?u[0]-ft[0]:0)/(s||1),c=(r.clientY-ve.clientY+i.y)/(l||1)+(u?u[1]-ft[1]:0)/(l||1);if(!_.active&&!De){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(E){a?(a.e+=h-(ct||0),a.f+=c-(dt||0)):a={a:1,b:0,c:0,d:1,e:h,f:c};var b="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");v(E,"webkitTransform",b),v(E,"mozTransform",b),v(E,"msTransform",b),v(E,"transform",b),ct=h,dt=c,J=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!E){var e=this.options.fallbackOnBody?document.body:T,n=L(d,!0,We,!0,e),o=this.options;if(We){for(V=e;v(V,"position")==="static"&&v(V,"transform")==="none"&&V!==document;)V=V.parentNode;V!==document.body&&V!==document.documentElement?(V===document&&(V=ne()),n.top+=V.scrollTop,n.left+=V.scrollLeft):V=ne(),ft=Lt(V)}E=d.cloneNode(!0),H(E,o.ghostClass,!1),H(E,o.fallbackClass,!0),H(E,o.dragClass,!0),v(E,"transition",""),v(E,"transform",""),v(E,"box-sizing","border-box"),v(E,"margin",0),v(E,"top",n.top),v(E,"left",n.left),v(E,"width",n.width),v(E,"height",n.height),v(E,"opacity","0.8"),v(E,"position",We?"absolute":"fixed"),v(E,"zIndex","100000"),v(E,"pointerEvents","none"),_.ghost=E,e.appendChild(E),v(E,"transform-origin",jt/parseInt(E.style.width)*100+"% "+Rt/parseInt(E.style.height)*100+"%")}},_onDragStart:function(e,n){var o=this,i=e.dataTransfer,r=o.options;if(z("dragStart",this,{evt:e}),_.eventCanceled){this._onDrop();return}z("setupClone",this),_.eventCanceled||(N=Kt(d),N.draggable=!1,N.style["will-change"]="",this._hideClone(),H(N,this.options.chosenClass,!1),_.clone=N),o.cloneId=Je(function(){z("clone",o),!_.eventCanceled&&(o.options.removeCloneOnHide||T.insertBefore(N,d),o._hideClone(),Y({sortable:o,name:"clone"}))}),!n&&H(d,r.dragClass,!0),n?(nt=!0,o._loopId=setInterval(o._emulateDragOver,50)):(x(document,"mouseup",o._onDrop),x(document,"touchend",o._onDrop),x(document,"touchcancel",o._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(o,i,d)),D(document,"drop",o),v(d,"transform","translateZ(0)")),De=!0,o._dragStartId=Je(o._dragStarted.bind(o,n,e)),D(document,"selectstart",o),ke=!0,$e&&v(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,o=e.target,i,r,a,s=this.options,l=s.group,u=_.active,h=Ge===l,c=s.sort,b=R||u,y,g=this,w=!1;if(wt)return;function S(Ne,rn){z(Ne,g,oe({evt:e,isOwner:h,axis:y?"vertical":"horizontal",revert:a,dragRect:i,targetRect:r,canSort:c,fromSortable:b,target:o,completed:I,onMove:function(Pt,an){return qe(T,n,d,i,Pt,L(Pt),e,an)},changed:A},rn))}function k(){S("dragOverAnimationCapture"),g.captureAnimationState(),g!==b&&b.captureAnimationState()}function I(Ne){return S("dragOverCompleted",{insertion:Ne}),Ne&&(h?u._hideClone():u._showClone(g),g!==b&&(H(d,R?R.options.ghostClass:u.options.ghostClass,!1),H(d,s.ghostClass,!0)),R!==g&&g!==_.active?R=g:g===_.active&&R&&(R=null),b===g&&(g._ignoreWhileAnimating=o),g.animateAll(function(){S("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==b&&(b.animateAll(),b._ignoreWhileAnimating=null)),(o===d&&!d.animated||o===n&&!o.animated)&&(xe=null),!s.dragoverBubble&&!e.rootEl&&o!==document&&(d.parentNode[U]._isOutsideThisEl(e.target),!Ne&&_e(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),w=!0}function A(){G=Q(d),de=Q(d,s.draggable),Y({sortable:g,name:"change",toEl:n,newIndex:G,newDraggableIndex:de,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),o=te(o,s.draggable,n,!0),S("dragOver"),_.eventCanceled)return w;if(d.contains(e.target)||o.animated&&o.animatingX&&o.animatingY||g._ignoreWhileAnimating===o)return I(!1);if(nt=!1,u&&!s.disabled&&(h?c||(a=P!==T):R===this||(this.lastPutMode=Ge.checkPull(this,u,d,e))&&l.checkPut(this,u,d,e))){if(y=this._getDirection(e,o)==="vertical",i=L(d),S("dragOverValid"),_.eventCanceled)return w;if(a)return P=T,k(),this._hideClone(),S("revert"),_.eventCanceled||(be?T.insertBefore(d,be):T.appendChild(d)),I(!0);var j=Tt(n,s.draggable);if(!j||kn(e,y,this)&&!j.animated){if(j===d)return I(!1);if(j&&n===e.target&&(o=j),o&&(r=L(o)),qe(T,n,d,i,o,r,e,!!o)!==!1)return k(),n.appendChild(d),P=n,A(),I(!0)}else if(j&&Nn(e,y,this)){var F=Ae(n,0,s,!0);if(F===d)return I(!1);if(o=F,r=L(o),qe(T,n,d,i,o,r,e,!1)!==!1)return k(),n.insertBefore(d,F),P=n,A(),I(!0)}else if(o.parentNode===n){r=L(o);var $=0,ie,pe=d.parentNode!==n,X=!Cn(d.animated&&d.toRect||i,o.animated&&o.toRect||r,y),me=y?"top":"left",B=$t(o,"top","top")||$t(d,"top","top"),ue=B?B.scrollTop:void 0;xe!==o&&(ie=r[me],Be=!1,Ue=!X&&s.invertSwap||pe),$=Mn(e,o,r,y,X?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,Ue,xe===o);var Z;if($!==0){var ge=Q(d);do ge-=$,Z=P.children[ge];while(Z&&(v(Z,"display")==="none"||Z===E))}if($===0||Z===o)return I(!1);xe=o,Re=$;var Pe=o.nextElementSibling,ce=!1;ce=$===1;var He=qe(T,n,d,i,o,r,e,ce);if(He!==!1)return(He===1||He===-1)&&(ce=He===1),wt=!0,setTimeout(Pn,30),k(),ce&&!Pe?n.appendChild(d):o.parentNode.insertBefore(d,ce?Pe:o),B&&qt(B,0,ue-B.scrollTop),P=d.parentNode,ie!==void 0&&!Ue&&(Qe=Math.abs(ie-L(o)[me])),A(),I(!0)}if(n.contains(d))return I(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){x(document,"mousemove",this._onTouchMove),x(document,"touchmove",this._onTouchMove),x(document,"pointermove",this._onTouchMove),x(document,"dragover",_e),x(document,"mousemove",_e),x(document,"touchmove",_e)},_offUpEvents:function(){var e=this.el.ownerDocument;x(e,"mouseup",this._onDrop),x(e,"touchend",this._onDrop),x(e,"pointerup",this._onDrop),x(e,"touchcancel",this._onDrop),x(document,"selectstart",this)},_onDrop:function(e){var n=this.el,o=this.options;if(G=Q(d),de=Q(d,o.draggable),z("drop",this,{evt:e}),P=d&&d.parentNode,G=Q(d),de=Q(d,o.draggable),_.eventCanceled){this._nulling();return}De=!1,Ue=!1,Be=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Et(this.cloneId),Et(this._dragStartId),this.nativeDraggable&&(x(document,"drop",this),x(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),$e&&v(document.body,"user-select",""),v(d,"transform",""),e&&(ke&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),E&&E.parentNode&&E.parentNode.removeChild(E),(T===P||R&&R.lastPutMode!=="clone")&&N&&N.parentNode&&N.parentNode.removeChild(N),d&&(this.nativeDraggable&&x(d,"dragend",this),ht(d),d.style["will-change"]="",ke&&!De&&H(d,R?R.options.ghostClass:this.options.ghostClass,!1),H(d,this.options.chosenClass,!1),Y({sortable:this,name:"unchoose",toEl:P,newIndex:null,newDraggableIndex:null,originalEvent:e}),T!==P?(G>=0&&(Y({rootEl:P,name:"add",toEl:P,fromEl:T,originalEvent:e}),Y({sortable:this,name:"remove",toEl:P,originalEvent:e}),Y({rootEl:P,name:"sort",toEl:P,fromEl:T,originalEvent:e}),Y({sortable:this,name:"sort",toEl:P,originalEvent:e})),R&&R.save()):G!==Se&&G>=0&&(Y({sortable:this,name:"update",toEl:P,originalEvent:e}),Y({sortable:this,name:"sort",toEl:P,originalEvent:e})),_.active&&((G==null||G===-1)&&(G=Se,de=je),Y({sortable:this,name:"end",toEl:P,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){z("nulling",this),T=d=P=E=be=N=Ze=fe=ve=J=ke=G=de=Se=je=xe=Re=R=Ge=_.dragged=_.ghost=_.clone=_.active=null,it.forEach(function(e){e.checked=!0}),it.length=ct=dt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":d&&(this._onDragOver(e),An(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,o=this.el.children,i=0,r=o.length,a=this.options;i<r;i++)n=o[i],te(n,a.draggable,this.el,!1)&&e.push(n.getAttribute(a.dataIdAttr)||$n(n));return e},sort:function(e,n){var o={},i=this.el;this.toArray().forEach(function(r,a){var s=i.children[a];te(s,this.options.draggable,i,!1)&&(o[r]=s)},this),n&&this.captureAnimationState(),e.forEach(function(r){o[r]&&(i.removeChild(o[r]),i.appendChild(o[r]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return te(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var o=this.options;if(n===void 0)return o[e];var i=ze.modifyOption(this,e,n);typeof i<"u"?o[e]=i:o[e]=n,e==="group"&&Jt(o)},destroy:function(){z("destroy",this);var e=this.el;e[U]=null,x(e,"mousedown",this._onTapStart),x(e,"touchstart",this._onTapStart),x(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(x(e,"dragover",this),x(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),ot.splice(ot.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!fe){if(z("hideClone",this),_.eventCanceled)return;v(N,"display","none"),this.options.removeCloneOnHide&&N.parentNode&&N.parentNode.removeChild(N),fe=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(fe){if(z("showClone",this),_.eventCanceled)return;d.parentNode==T&&!this.options.group.revertClone?T.insertBefore(N,d):be?T.insertBefore(N,be):T.appendChild(N),this.options.group.revertClone&&this.animate(d,N),v(N,"display",""),fe=!1}}};function An(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function qe(t,e,n,o,i,r,a,s){var l,u=t[U],h=u.options.onMove,c;return window.CustomEvent&&!le&&!Ye?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=e,l.from=t,l.dragged=n,l.draggedRect=o,l.related=i||e,l.relatedRect=r||L(e),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),h&&(c=h.call(u,l,a)),c}function ht(t){t.draggable=!1}function Pn(){wt=!1}function Nn(t,e,n){var o=L(Ae(n.el,0,n.options,!0)),i=10;return e?t.clientX<o.left-i||t.clientY<o.top&&t.clientX<o.right:t.clientY<o.top-i||t.clientY<o.bottom&&t.clientX<o.left}function kn(t,e,n){var o=L(Tt(n.el,n.options.draggable)),i=10;return e?t.clientX>o.right+i||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+i}function Mn(t,e,n,o,i,r,a,s){var l=o?t.clientY:t.clientX,u=o?n.height:n.width,h=o?n.top:n.left,c=o?n.bottom:n.right,b=!1;if(!a){if(s&&Qe<u*i){if(!Be&&(Re===1?l>h+u*r/2:l<c-u*r/2)&&(Be=!0),Be)b=!0;else if(Re===1?l<h+Qe:l>c-Qe)return-Re}else if(l>h+u*(1-i)/2&&l<c-u*(1-i)/2)return Fn(e)}return b=b||a,b&&(l<h+u*r/2||l>c-u*r/2)?l>h+u/2?1:-1:0}function Fn(t){return Q(d)<Q(t)?1:-1}function $n(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 Ln(t){it.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var o=e[n];o.checked&&it.push(o)}}function Je(t){return setTimeout(t,0)}function Et(t){return clearTimeout(t)}st&&D(document,"touchmove",function(t){(_.active||De)&&t.cancelable&&t.preventDefault()});_.utils={on:D,off:x,css:v,find:Ut,is:function(e,n){return!!te(e,n,e,!1)},extend:bn,throttle:Wt,closest:te,toggleClass:H,clone:Kt,index:Q,nextTick:Je,cancelNextTick:Et,detectDirection:Qt,getChild:Ae};_.get=function(t){return t[U]};_.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(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(_.utils=oe(oe({},_.utils),o.utils)),ze.mount(o)})};_.create=function(t,e){return new _(t,e)};_.version=mn;var M=[],Me,xt,Dt=!1,pt,mt,rt,Fe;function jn(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var o=n.originalEvent;this.sortable.nativeDraggable?D(document,"dragover",this._handleAutoScroll):this.options.supportPointer?D(document,"pointermove",this._handleFallbackAutoScroll):o.touches?D(document,"touchmove",this._handleFallbackAutoScroll):D(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var o=n.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?x(document,"dragover",this._handleAutoScroll):(x(document,"pointermove",this._handleFallbackAutoScroll),x(document,"touchmove",this._handleFallbackAutoScroll),x(document,"mousemove",this._handleFallbackAutoScroll)),Vt(),et(),yn()},nulling:function(){rt=xt=Me=Dt=Fe=pt=mt=null,M.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,o){var i=this,r=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,s=document.elementFromPoint(r,a);if(rt=n,o||this.options.forceAutoScrollFallback||Ye||le||$e){gt(n,this.options,s,o);var l=he(s,!0);Dt&&(!Fe||r!==pt||a!==mt)&&(Fe&&Vt(),Fe=setInterval(function(){var u=he(document.elementFromPoint(r,a),!0);u!==l&&(l=u,et()),gt(n,i.options,u,o)},10),pt=r,mt=a)}else{if(!this.options.bubbleScroll||he(s,!0)===ne()){et();return}gt(n,this.options,he(s,!1),!1)}}},ae(t,{pluginName:"scroll",initializeByDefault:!0})}function et(){M.forEach(function(t){clearInterval(t.pid)}),M=[]}function Vt(){clearInterval(Fe)}var gt=Wt(function(t,e,n,o){if(e.scroll){var i=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,s=e.scrollSpeed,l=ne(),u=!1,h;xt!==n&&(xt=n,et(),Me=e.scroll,h=e.scrollFn,Me===!0&&(Me=he(n,!0)));var c=0,b=Me;do{var y=b,g=L(y),w=g.top,S=g.bottom,k=g.left,I=g.right,A=g.width,j=g.height,F=void 0,$=void 0,ie=y.scrollWidth,pe=y.scrollHeight,X=v(y),me=y.scrollLeft,B=y.scrollTop;y===l?(F=A<ie&&(X.overflowX==="auto"||X.overflowX==="scroll"||X.overflowX==="visible"),$=j<pe&&(X.overflowY==="auto"||X.overflowY==="scroll"||X.overflowY==="visible")):(F=A<ie&&(X.overflowX==="auto"||X.overflowX==="scroll"),$=j<pe&&(X.overflowY==="auto"||X.overflowY==="scroll"));var ue=F&&(Math.abs(I-i)<=a&&me+A<ie)-(Math.abs(k-i)<=a&&!!me),Z=$&&(Math.abs(S-r)<=a&&B+j<pe)-(Math.abs(w-r)<=a&&!!B);if(!M[c])for(var ge=0;ge<=c;ge++)M[ge]||(M[ge]={});(M[c].vx!=ue||M[c].vy!=Z||M[c].el!==y)&&(M[c].el=y,M[c].vx=ue,M[c].vy=Z,clearInterval(M[c].pid),(ue!=0||Z!=0)&&(u=!0,M[c].pid=setInterval((function(){o&&this.layer===0&&_.active._onTouchMove(rt);var Pe=M[this.layer].vy?M[this.layer].vy*s:0,ce=M[this.layer].vx?M[this.layer].vx*s:0;typeof h=="function"&&h.call(_.dragged.parentNode[U],ce,Pe,t,rt,M[this.layer].el)!=="continue"||qt(M[this.layer].el,ce,Pe)}).bind({layer:c}),24))),c++}while(e.bubbleScroll&&b!==l&&(b=he(b,!1)));Dt=u}},30),nn=function(e){var n=e.originalEvent,o=e.putSortable,i=e.dragEl,r=e.activeSortable,a=e.dispatchSortableEvent,s=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(n){var u=o||r;s();var h=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,c=document.elementFromPoint(h.clientX,h.clientY);l(),u&&!u.el.contains(c)&&(a("spill"),this.onSpill({dragEl:i,putSortable:o}))}};function Ot(){}Ot.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,o=e.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var i=Ae(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),o&&o.animateAll()},drop:nn};ae(Ot,{pluginName:"revertOnSpill"});function At(){}At.prototype={onSpill:function(e){var n=e.dragEl,o=e.putSortable,i=o||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:nn};ae(At,{pluginName:"removeOnSpill"});_.mount(new jn);_.mount(At,Ot);function Rn(){return typeof window<"u"?window.console:global.console}const Bn=Rn();function Vn(t){const e=Object.create(null);return function(o){return e[o]||(e[o]=t(o))}}const Xn=/-(\w)/g,Xt=Vn(t=>t.replace(Xn,(e,n)=>n?n.toUpperCase():""));function vt(t){t.parentElement!==null&&t.parentElement.removeChild(t)}function Yt(t,e,n){const o=n===0?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,o)}function Yn(t,e){return Object.values(t).indexOf(e)}function zn(t,e,n,o){if(!t)return[];const i=Object.values(t),r=e.length-o;return[...e].map((s,l)=>l>=r?i.length:i.indexOf(s))}function on(t,e){this.$nextTick(()=>this.$emit(t.toLowerCase(),e))}function Hn(t){return e=>{this.realList!==null&&this["onDrag"+t](e),on.call(this,t,e)}}function Gn(t){return["transition-group","TransitionGroup"].includes(t)}function Un(t){if(!t||t.length!==1)return!1;const[{type:e}]=t;return e?Gn(e.name):!1}function Wn(t,e){return e?{...e.props,...e.attrs}:t}const St=["Start","Add","Remove","Update","End"],It=["Choose","Unchoose","Sort","Filter","Clone"],qn=["Move",...St,...It].map(t=>"on"+t);let _t=null;const Kn={options:Object,list:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:t=>t},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null},component:{type:String,default:null},modelValue:{type:Array,required:!1,default:null}},Zn=se({name:"VueDraggableNext",inheritAttrs:!1,emits:["update:modelValue","move","change",...St.map(t=>t.toLowerCase()),...It.map(t=>t.toLowerCase())],props:Kn,data(){return{transitionMode:!1,noneFunctionalComponentMode:!1,headerOffset:0,footerOffset:0,_sortable:{},visibleIndexes:[],context:{}}},render(){const t=this.$slots.default?this.$slots.default():null,e=Wn(this.$attrs,this.componentData);return t?(this.transitionMode=Un(t),Nt(this.getTag(),e,t)):Nt(this.getTag(),e,[])},created(){this.list!==null&&this.modelValue!==null&&Bn.error("list props are mutually exclusive! Please set one.")},mounted(){const t={};St.forEach(i=>{t["on"+i]=Hn.call(this,i)}),It.forEach(i=>{t["on"+i]=on.bind(this,i)});const e=Object.keys(this.$attrs).reduce((i,r)=>(i[Xt(r)]=this.$attrs[r],i),{}),n=Object.assign({},e,t,{onMove:(i,r)=>this.onDragMove(i,r)});!("draggable"in n)&&(n.draggable=">*");const o=this.$el.nodeType===1?this.$el:this.$el.parentElement;this._sortable=new _(o,n),o.__draggable_component__=this,this.computeIndexes()},beforeUnmount(){try{this._sortable!==void 0&&this._sortable.destroy()}catch{}},computed:{realList(){return this.list?this.list:this.modelValue}},watch:{$attrs:{handler(t){this.updateOptions(t)},deep:!0},realList(){this.computeIndexes()}},methods:{getTag(){return this.component?m(this.component):this.tag},updateOptions(t){for(var e in t){const n=Xt(e);qn.indexOf(n)===-1&&this._sortable.option(n,t[e])}},getChildrenNodes(){return this.$el.children},computeIndexes(){this.$nextTick(()=>{this.visibleIndexes=zn(this.getChildrenNodes(),this.$el.children,this.transitionMode,this.footerOffset)})},getUnderlyingVm(t){const e=Yn(this.getChildrenNodes()||[],t);if(e===-1)return null;const n=this.realList[e];return{index:e,element:n}},emitChanges(t){this.$nextTick(()=>{this.$emit("change",t)})},alterList(t){if(this.list){t(this.list);return}const e=[...this.modelValue];t(e),this.$emit("update:modelValue",e)},spliceList(){const t=e=>e.splice(...arguments);this.alterList(t)},updatePosition(t,e){const n=o=>o.splice(e,0,o.splice(t,1)[0]);this.alterList(n)},getVmIndex(t){const e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent(){return this.$slots.default?this.$slots.default()[0].componentInstance:null},resetTransitionData(t){if(!this.noTransitionOnDrag||!this.transitionMode)return;var e=this.getChildrenNodes();e[t].data=null;const n=this.getComponent();n.children=[],n.kept=void 0},onDragStart(t){this.computeIndexes(),this.context=this.getUnderlyingVm(t.item),this.context&&(t.item._underlying_vm_=this.clone(this.context.element),_t=t.item)},onDragAdd(t){const e=t.item._underlying_vm_;if(e===void 0)return;vt(t.item);const n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();const o={element:e,newIndex:n};this.emitChanges({added:o})},onDragRemove(t){if(Yt(this.$el,t.item,t.oldIndex),t.pullMode==="clone"){vt(t.clone);return}if(!this.context)return;const e=this.context.index;this.spliceList(e,1);const n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})},onDragUpdate(t){vt(t.item),Yt(t.from,t.item,t.oldIndex);const e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);const o={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:o})},updateProperty(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},onDragMove(t,e){const n=this.move;if(!n||!this.realList)return!0;const o=this.getRelatedContextFromMoveEvent(t),i=this.context,r=this.computeFutureIndex(o,t);Object.assign(i,{futureIndex:r});const a=Object.assign({},t,{relatedContext:o,draggedContext:i});return n(a,e)},onDragEnd(){this.computeIndexes(),_t=null},getTrargetedComponent(t){return t.__draggable_component__},getRelatedContextFromMoveEvent({to:t,related:e}){const n=this.getTrargetedComponent(t);if(!n)return{component:n};const o=n.realList,i={list:o,component:n};if(t!==e&&o&&n.getUnderlyingVm){const r=n.getUnderlyingVm(e);if(r)return Object.assign(r,i)}return i},computeFutureIndex(t,e){const n=[...e.to.children].filter(a=>a.style.display!=="none");if(n.length===0)return 0;const o=n.indexOf(e.related),i=t.component.getVmIndex(o);return n.indexOf(_t)!==-1||!e.willInsertAfter?i:i+1}}}),Qn={class:"text-caption"},Jn={class:"d-flex ga-2 align-center"},eo={class:"text-body-2 text-wrap"},to={class:"d-flex ga-2 align-center"},no=se({__name:"IssueListItem",props:{issue:{}},setup(t){const e=t,n=zt(),o=at(),i=Ct(),r=Ce(()=>e.issue.project.key),a=async u=>await o.remove(u);function s(u){console.log("on change status",u)}function l(u){console.log("on click",u),n.push({name:"issues",query:{selectedIssue:`${r.value}-${u}`}})}return(u,h)=>{const c=m("v-icon"),b=m("v-list-item-subtitle"),y=m("v-list-item-title"),g=m("v-avatar"),w=m("v-btn"),S=m("v-list-item"),k=m("v-list"),I=m("v-menu"),A=m("v-divider"),j=m("v-list-item-action");return C(),q(S,{rounded:"",border:"",class:"mb-1 pl-2",onClick:h[1]||(h[1]=F=>l(e.issue.id))},{prepend:p(()=>[f(c,{class:"handle cursor-move",icon:"mdi-drag"})]),append:p(()=>[f(j,{class:"ga-2"},{default:p(()=>[f(g,{color:"blue",size:"28"}),f(I,null,{activator:p(({props:F})=>[f(w,Ve({icon:"",rounded:"",variant:"text"},F),{default:p(()=>[f(c,{size:"small"},{default:p(()=>h[2]||(h[2]=[ee("mdi-menu")])),_:1})]),_:2},1040)]),default:p(()=>[f(k,{density:"compact",class:"mt-1"},{default:p(()=>[f(S,{link:""},{default:p(()=>[f(y,null,{default:p(()=>[O("div",to,[h[3]||(h[3]=O("div",null,"Change status",-1)),f(c,{icon:"mdi-menu-right"})])]),_:1}),ye(i).statuses?(C(),q(I,{key:0,"open-on-focus":!1,activator:"parent","open-on-hover":"",submenu:""},{default:p(()=>[f(k,null,{default:p(()=>[(C(!0),W(Te,null,Oe(ye(i).statuses,F=>(C(),q(S,{key:F.id,link:"",onClick:$=>s(F.id),title:F.name},null,8,["onClick","title"]))),128))]),_:1})]),_:1})):bt("",!0)]),_:1}),f(A,{class:"my-1"}),f(S,{link:"",onClick:h[0]||(h[0]=F=>a(e.issue.id)),title:"Delete"})]),_:1})]),_:1})]),_:1})]),default:p(()=>[f(b,null,{default:p(()=>[O("div",Qn,K(e.issue.description),1)]),_:1}),f(y,null,{default:p(()=>[O("div",Jn,[O("div",eo,K(e.issue.name),1)])]),_:1})]),_:1})}}}),oo=se({__name:"IssueCreateForm",props:{status:{}},setup(t){const e=at(),n=t,o=we({name:void 0,description:void 0,status_id:n.status.id,project_id:1,position:0}),i=we(!1),r=[{id:1,title:"bug"}],a=we(r[0]),s=Ce(()=>!o.value.name),l=async()=>{const h=await e.create(o.value);i.value=!h,o.value={name:void 0,description:void 0,status_id:n.status.id,project_id:1,position:0}};function u(){}return(h,c)=>{const b=m("v-text-field"),y=m("v-select"),g=m("v-col"),w=m("v-spacer"),S=m("v-icon"),k=m("v-btn"),I=m("v-row"),A=m("v-list-item-title"),j=m("v-list-item"),F=sn("click-outside");return C(),q(j,{rounded:"",border:i.value},{default:p(()=>[i.value?ln((C(),q(A,{key:0},{default:p(()=>[f(b,{"hide-details":"",placeholder:"title",variant:"plain",onKeydown:un(l,["enter"]),"model-value":o.value.name,"onUpdate:modelValue":c[0]||(c[0]=$=>o.value.name=$)},null,8,["model-value"]),f(I,{align:"end"},{default:p(()=>[f(g,{cols:"auto"},{default:p(()=>[f(y,{"hide-details":"","model-value":a.value,"onUpdate:modelValue":c[1]||(c[1]=$=>a.value=$),width:"70",items:r,variant:"plain"},null,8,["model-value"])]),_:1}),f(w),f(g,{cols:"auto"},{default:p(()=>[f(k,{variant:"text",icon:"",rounded:"",class:"mr-1",disabled:s.value,onClick:l},{default:p(()=>[f(S,{icon:"mdi-check"})]),_:1},8,["disabled"]),f(k,{variant:"text",icon:"",rounded:"",onClick:c[2]||(c[2]=$=>i.value=!1)},{default:p(()=>[f(S,{icon:"mdi-cancel"})]),_:1})]),_:1})]),_:1})]),_:1})),[[F,u]]):(C(),q(A,{key:1},{default:p(()=>[f(k,{block:"",onClick:c[3]||(c[3]=$=>i.value=!0)},{default:p(()=>c[4]||(c[4]=[ee("create new")])),_:1})]),_:1}))]),_:1},8,["border"])}}}),io={class:"d-flex align-center ga-2"},ro={class:"text-uppercase text-body-2"},ao=600,so=se({__name:"IssuesByStatusList",props:{issues:{},status:{}},setup(t){const e=t,n=at(),o=we();async function i(a){var l;o.value=(l=a.moved)==null?void 0:l.element.id;const s={status_id:e.status.id,positions:e.issues.map(u=>u.id)};(a.moved||a.added)&&await n.updatePositions(s)}function r(){o.value=void 0}return(a,s)=>{const l=m("v-chip"),u=m("v-toolbar-title"),h=m("v-icon"),c=m("v-btn"),b=m("v-list-item-title"),y=m("v-list-item"),g=m("v-list"),w=m("v-menu"),S=m("v-toolbar"),k=m("v-sheet");return C(),q(k,{border:"",width:"18rem"},{default:p(()=>[f(S,{rounded:"",color:"transparent",density:"compact"},{append:p(()=>[f(w,null,{activator:p(({props:I})=>[f(c,Ve({icon:"",rounded:"",density:"compact",variant:"text"},I),{default:p(()=>[f(h,{icon:"mdi-dots-horizontal"})]),_:2},1040)]),default:p(()=>[f(g,{density:"compact",class:"mt-1"},{default:p(()=>[(C(),W(Te,null,Oe(3,(I,A)=>f(y,{key:A,value:A},{default:p(()=>[f(b,null,{default:p(()=>[ee(K(I)+" - menu",1)]),_:2},1024)]),_:2},1032,["value"])),64))]),_:1})]),_:1})]),default:p(()=>[f(u,null,{default:p(()=>[O("div",io,[O("div",ro,K(e.status.name),1),f(l,{variant:"tonal",text:e.issues.length,class:"mr-2"},null,8,["text"])])]),_:1})]),_:1}),f(g,{lines:"two",rounded:"",height:ao,slim:"",class:"mx-2"},{default:p(()=>[f(ye(Zn),{list:e.issues,animation:0,handle:".handle",group:"issues",ghostClass:"sortable-ghost",dragClass:"sortable-drag",onChange:i,onChoose:r},{default:p(()=>[(C(!0),W(Te,null,Oe(e.issues,I=>(C(),q(no,{key:I.id,issue:I},null,8,["issue"]))),128))]),_:1},8,["list"]),f(oo,{status:e.status},null,8,["status"])]),_:1})]),_:1})}}}),lo=Xe(so,[["__scopeId","data-v-1c47e356"]]),uo=se({__name:"StatusMenu",props:{status:{}},setup(t){const e=Ct(),n=t,o=we();yt(()=>n.status&&i(n.status));function i(a){o.value=a}function r(a){console.log(a),o.value=a}return(a,s)=>{const l=m("v-btn"),u=m("v-list-item-title"),h=m("v-list-item"),c=m("v-list"),b=m("v-menu");return C(),q(b,{width:"200"},{activator:p(({props:y})=>[f(l,Ve(y,{color:"blue","append-icon":"mdi-menu-down"}),{default:p(()=>{var g;return[ee(K((g=o.value)==null?void 0:g.name),1)]}),_:2},1040)]),default:p(()=>[f(c,{density:"compact",class:"mt-1"},{default:p(()=>[(C(!0),W(Te,null,Oe(ye(e).statuses,y=>(C(),q(h,{key:y.id,onClick:g=>r(y)},{default:p(()=>[f(u,null,{default:p(()=>[O("span",null,K(y.name),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1})}}}),co=se({__name:"EditableText",props:{text:{}},setup(t){const e=t,n=Ce(()=>!!e.text);return(o,i)=>(C(),W("div",null,K(n.value)+" - "+K(e.text),1))}}),fo={},ho={class:"d-flex flex-column ga-2"};function po(t,e){const n=m("v-textarea"),o=m("v-btn");return C(),W("div",ho,[f(n,{rows:"3"}),O("div",null,[f(o,null,{default:p(()=>e[0]||(e[0]=[ee("add")])),_:1}),f(o,{variant:"text"},{default:p(()=>e[1]||(e[1]=[ee("cancel")])),_:1})])])}const mo=Xe(fo,[["render",po]]),go={};function vo(t,e){return C(),W("div",null,[(C(),W(Te,null,Oe(3,n=>O("div",{key:n},"comment "+K(n),1)),64))])}const _o=Xe(go,[["render",vo]]),bo={};function yo(t,e){return C(),W("div",null,"history")}const wo=Xe(bo,[["render",yo]]),Eo={class:"my-2 d-flex flex-column ga-2"},xo={class:"my-2"},Do=se({__name:"IssueItemAddons",setup(t){const e=we("one");return(n,o)=>{const i=m("v-tab"),r=m("v-tabs"),a=m("v-tabs-window-item"),s=m("v-tabs-window"),l=m("v-sheet");return C(),q(l,null,{default:p(()=>[f(r,{density:"compact",class:"border rounded",modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=u=>e.value=u)},{default:p(()=>[f(i,{color:"blue",slim:"",value:"one"},{default:p(()=>o[2]||(o[2]=[ee("Comments")])),_:1}),f(i,{color:"blue",slim:"",value:"two"},{default:p(()=>o[3]||(o[3]=[ee("History")])),_:1})]),_:1},8,["modelValue"]),O("div",null,[f(s,{modelValue:e.value,"onUpdate:modelValue":o[1]||(o[1]=u=>e.value=u)},{default:p(()=>[f(a,{value:"one"},{default:p(()=>[O("div",Eo,[f(mo),f(_o)])]),_:1}),f(a,{value:"two"},{default:p(()=>[O("div",xo,[f(wo)])]),_:1})]),_:1},8,["modelValue"])])]),_:1})}}}),So=Xe(Do,[["__scopeId","data-v-93eecf16"]]),Io={class:"d-flex ga-2"},Co={class:"text-body-1"},To={class:"text-h5"},Oo={class:"text-caption"},Ao=se({__name:"IssueItemDetails",props:{selectedIssue:{}},emits:["onCancel"],setup(t,{emit:e}){const n=t,o=e,i=Ce(()=>n.selectedIssue.created?new Date(n.selectedIssue.created).toLocaleString("ru-RU"):void 0),r=Ce(()=>n.selectedIssue.project.key+"-"+n.selectedIssue.id);return(a,s)=>{const l=m("v-btn"),u=m("v-col"),h=m("v-avatar"),c=m("v-sheet"),b=m("v-row"),y=m("v-card-text"),g=m("v-card");return C(),q(g,{width:800},{append:p(()=>[O("div",Io,[f(l,{class:"border rounded",onClick:s[0]||(s[0]=w=>o("onCancel")),icon:"mdi-dots-horizontal"}),f(l,{class:"border rounded",onClick:s[1]||(s[1]=w=>o("onCancel")),icon:"mdi-close"})])]),title:p(()=>[O("div",Co,K(r.value),1)]),default:p(()=>[f(y,null,{default:p(()=>[f(b,null,{default:p(()=>[f(u,{class:"d-flex flex-column ga-4"},{default:p(()=>[O("div",To,K(n.selectedIssue.name),1),O("div",null,[s[2]||(s[2]=O("div",null,"description",-1)),f(co,{text:n.selectedIssue.description},null,8,["text"])]),f(So)]),_:1}),f(u,{class:"d-flex flex-column ga-4 align-start"},{default:p(()=>[f(uo,{class:"",status:n.selectedIssue.status},null,8,["status"]),f(c,{border:"",class:"pa-4 w-100"},{default:p(()=>[O("div",null,[s[3]||(s[3]=ee(" assignee:x ")),f(h,{size:"x-small",text:"M",color:"success"})])]),_:1}),O("div",Oo,"created: "+K(i.value),1)]),_:1})]),_:1})]),_:1})]),_:1})}}}),Po={class:"text-h5 text-capitalize"},No={class:"d-flex ga-2 mb-4"},ko={key:0,class:"d-flex ga-2 my-2 overflow-x-auto"},Lo=se({__name:"IssuesRootView",props:{selectedIssue:{}},setup(t){const e=at(),n=Ct(),o=cn(),i=zt(),r=Ce(()=>n.statuses),a=t;function s(w){return e.issuesObj.get(w)??[]}const l=we(!1),u=[{id:1,title:"bla"}],h=[{id:1,title:"Add people",icon:"mdi-account",disabled:!0,click:y},{id:2,title:"Settings",icon:"mdi-cog",click:y},{id:3,type:"divider"},{id:4,title:"Delete",icon:"mdi-trash-can",color:"error",click:b}];async function c(w){if(!w)return;const S=+w.split("-")[1];await e.findById(S),e.selectedIssue&&(l.value=!0)}function b(){console.log("blat")}function y(){console.log("blat2")}function g(){i.push({name:"issues"}),l.value=!1}return yt(async()=>await c(a.selectedIssue)),yt(()=>e.genIssuesObj(r.value)),(w,S)=>{const k=m("router-link"),I=m("v-col"),A=m("v-row"),j=m("v-avatar"),F=m("v-hover"),$=m("v-text-field"),ie=m("v-select"),pe=m("v-icon"),X=m("v-btn"),me=m("v-dialog");return C(),W("div",null,[f(A,null,{default:p(()=>[f(I,{cols:"auto"},{default:p(()=>[f(k,{to:"/projects",class:"text-black text-decoration-underline text-body-1 cursor-pointer"},{default:p(()=>S[1]||(S[1]=[ee(" Projects ")])),_:1})]),_:1})]),_:1}),f(A,null,{default:p(()=>[f(I,{cols:"auto"},{default:p(()=>[f(F,null,{default:p(({isHovering:B,props:ue})=>{var Z;return[O("div",Ve(ue,{class:"d-flex ga-2 align-center mb-4"}),[f(j,{size:"28",color:"blue",border:"",rounded:""}),O("div",Po,K((Z=ye(o).projects[0])==null?void 0:Z.name),1),f(dn,Ve(ue,{isHovering:B,menu:h}),null,16,["isHovering"])],16)]}),_:1})]),_:1})]),_:1}),O("div",No,[f($,{"max-width":"15rem","hide-details":"",label:"search","prepend-inner-icon":"mdi-magnify"}),f(ie,{"max-width":"10rem","hide-details":"",items:u}),f(j,{icon:"mdi-account-outline",color:"grey-lighten-4"})]),r.value.length?(C(),W("div",ko,[(C(!0),W(Te,null,Oe(r.value,B=>(C(),W("div",{key:B.id},[f(lo,{status:B,issues:s(B.id)},null,8,["status","issues"])]))),128)),f(X,{icon:"",rounded:"",size:"small",density:"default"},{default:p(()=>[f(pe,{size:"default"},{default:p(()=>S[2]||(S[2]=[ee("mdi-plus")])),_:1})]),_:1})])):bt("",!0),f(me,{modelValue:l.value,"onUpdate:modelValue":S[0]||(S[0]=B=>l.value=B),width:"auto",onAfterLeave:g},{default:p(()=>[ye(e).selectedIssue?(C(),q(Ao,{key:0,onOnCancel:g,"selected-issue":ye(e).selectedIssue},null,8,["selected-issue"])):bt("",!0)]),_:1},8,["modelValue"])])}}});export{Lo as default};