UNPKG

question-ltt

Version:

This template should help get you started developing with Vue 3 in Vite.

1,156 lines 1.24 MB
import M_, { defineComponent as DN, ref as Dn, shallowRef as CN, onMounted as AN, watch as t6, watchEffect as z_, toRaw as $_, openBlock as cr, createElementBlock as Eo, createElementVNode as te, withModifiers as Cb, createTextVNode as Xr, pushScopeId as ON, popScopeId as TN, useSlots as H_, onBeforeUnmount as U_, resolveComponent as vi, normalizeStyle as __, unref as mr, withDirectives as l4, createVNode as gn, vShow as c4, renderSlot as f4, isRef as pc, withCtx as Jn, createBlock as X0, toDisplayString as Z0, inject as V_, Fragment as PN, renderList as FN, reactive as G_, useCssVars as W_, normalizeClass as K_, createSlots as Y_, createCommentVNode as EA } from "vue"; const X_ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAMLSURBVGiB7Zu9ktMwEMf/m+GuYY5n4JIGkjH3CDhPwlBACTVVnOrqUELB8CQxj3Bo7NDE4RnC0NzNZCnOd5M4li3FK+UD/6qMo2j19+pjtVKAlpaWFkvUbBHuy3bHt0GVzCMwT1WasUrmkW/75MuQmi1CMI8AhBtfMI+DQS/y1Q4vglUyj0A0qizkSbhzwSrNpih6VYcH0c4E5114utOPHQp3Mmk9TEw7V0A0cjWhiXpYOzE1QdjbT6QqAoBGXtVB9FqyOmnB47oiRPSGgecAQMBvZv5e+YNOJxZp24N9ycpMKMzacdDvDn3a9x5p7ZtW8KnTCq5CzRbhvnY5mrZMbdti5+H7oOIwWK1CAGHtpqSAseD8TYZWjSqD+cfjZ6LaddsEGy8bCVazhfWb1BEMehGIhmAeBy8vY4k6bWJvs0hLOGTMhcaSdeYOieqK1Xo4j4yOAhMvVwoWG7e+MOjaWsGS49YrNW3We9jREqSSbKLSbKnSbKmSbOLGht7Lpbslg6SbIiKl+3LF/Jfvbq+vrl4sNuvNJiB82CjM+BwMuh/XH93c/Lqks/NPHaKnOhvMHAAIt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r5L+yaxBC1fkTj9JWNVS9ByiXaBfOYhiOo/0gbWHk9hhUDmbJ8kTMV7H8q0w7RKNtGXP0tTCatLOHRWkDIwblJZwmTCCtAlWXdpkLlhZqKPHWBPlDxMllGMhpQKUkEyRS0T5J6ipVKFc8uVLVWqjUwGCmuXLd2ESNVVWttgszEihWmpIOHAM0HN0sNi8sxy4+lLD10UVNEaALHCUoATXRE46a3lw2ORrI0sQxWXV/cTgDv5d3A+Abj0fahKIRHM+ZHHihXfDP8B0I7LC5GdGSoAAAAASUVORK5CYII="; var Q_ = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function q_(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } function tV(t) { var e = t.default; if (typeof e == "function") { var n = function() { return e.apply(this, arguments); }; n.prototype = e.prototype; } else n = {}; return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(t).forEach(function(r) { var o = Object.getOwnPropertyDescriptor(t, r); Object.defineProperty(n, r, o.get ? o : { enumerable: !0, get: function() { return t[r]; } }); }), n; } var BN = { exports: {} }; /**! * Sortable 1.14.0 * @author RubaXa <trash@rubaxa.org> * @author owenm <owen23355@gmail.com> * @license MIT */ function SA(t, e) { var n = Object.keys(t); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(t); e && (r = r.filter(function(o) { return Object.getOwnPropertyDescriptor(t, o).enumerable; })), n.push.apply(n, r); } return n; } function Ei(t) { for (var e = 1; e < arguments.length; e++) { var n = arguments[e] != null ? arguments[e] : {}; e % 2 ? SA(Object(n), !0).forEach(function(r) { eV(t, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : SA(Object(n)).forEach(function(r) { Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r)); }); } return t; } function l0(t) { return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? l0 = function(e) { return typeof e; } : l0 = function(e) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, l0(t); } function eV(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; } function Ao() { return Ao = Object.assign || function(t) { for (var e = 1; e < arguments.length; e++) { var n = arguments[e]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); } return t; }, Ao.apply(this, arguments); } function nV(t, e) { if (t == null) return {}; var n = {}, r = Object.keys(t), o, a; for (a = 0; a < r.length; a++) o = r[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]); return n; } function rV(t, e) { if (t == null) return {}; var n = nV(t, e), r, o; if (Object.getOwnPropertySymbols) { var a = Object.getOwnPropertySymbols(t); for (o = 0; o < a.length; o++) r = a[o], !(e.indexOf(r) >= 0) && (!Object.prototype.propertyIsEnumerable.call(t, r) || (n[r] = t[r])); } return n; } function oV(t) { return iV(t) || aV(t) || uV(t) || sV(); } function iV(t) { if (Array.isArray(t)) return d4(t); } function aV(t) { if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t); } function uV(t, e) { if (!!t) { if (typeof t == "string") return d4(t, e); var n = Object.prototype.toString.call(t).slice(8, -1); if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set") return Array.from(t); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return d4(t, e); } } function d4(t, e) { (e == null || e > t.length) && (e = t.length); for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n]; return r; } function sV() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } var lV = "1.14.0"; function Ki(t) { if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(t); } var na = Ki(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), _h = Ki(/Edge/i), xA = Ki(/firefox/i), pp = Ki(/safari/i) && !Ki(/chrome/i) && !Ki(/android/i), kN = Ki(/iP(ad|od|hone)/i), cV = Ki(/chrome/i) && Ki(/android/i), IN = { capture: !1, passive: !1 }; function se(t, e, n) { t.addEventListener(e, n, !na && IN); } function ae(t, e, n) { t.removeEventListener(e, n, !na && IN); } function J0(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 fV(t) { return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode; } function Ro(t, e, n, r) { if (t) { n = n || document; do { if (e != null && (e[0] === ">" ? t.parentNode === n && J0(t, e) : J0(t, e)) || r && t === n) return t; if (t === n) break; } while (t = fV(t)); } return null; } var DA = /\s+/g; function qe(t, e, n) { if (t && e) if (t.classList) t.classList[n ? "add" : "remove"](e); else { var r = (" " + t.className + " ").replace(DA, " ").replace(" " + e + " ", " "); t.className = (r + (n ? " " + e : "")).replace(DA, " "); } } function Ct(t, e, n) { var r = t && t.style; if (r) { 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 r) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), r[e] = n + (typeof n == "string" ? "" : "px"); } } function ys(t, e) { var n = ""; if (typeof t == "string") n = t; else do { var r = Ct(t, "transform"); r && r !== "none" && (n = r + " " + n); } while (!e && (t = t.parentNode)); var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix; return o && new o(n); } function jN(t, e, n) { if (t) { var r = t.getElementsByTagName(e), o = 0, a = r.length; if (n) for (; o < a; o++) n(r[o], o); return r; } return []; } function mi() { var t = document.scrollingElement; return t || document.documentElement; } function Ye(t, e, n, r, o) { if (!(!t.getBoundingClientRect && t !== window)) { var a, i, u, s, l, c, f; if (t !== window && t.parentNode && t !== mi() ? (a = t.getBoundingClientRect(), i = a.top, u = a.left, s = a.bottom, l = a.right, c = a.height, f = a.width) : (i = 0, u = 0, s = window.innerHeight, l = window.innerWidth, c = window.innerHeight, f = window.innerWidth), (e || n) && t !== window && (o = o || t.parentNode, !na)) do if (o && o.getBoundingClientRect && (Ct(o, "transform") !== "none" || n && Ct(o, "position") !== "static")) { var p = o.getBoundingClientRect(); i -= p.top + parseInt(Ct(o, "border-top-width")), u -= p.left + parseInt(Ct(o, "border-left-width")), s = i + a.height, l = u + a.width; break; } while (o = o.parentNode); if (r && t !== window) { var d = ys(o || t), v = d && d.a, g = d && d.d; d && (i /= g, u /= v, f /= v, c /= g, s = i + c, l = u + f); } return { top: i, left: u, bottom: s, right: l, width: f, height: c }; } } function CA(t, e, n) { for (var r = _a(t, !0), o = Ye(t)[e]; r; ) { var a = Ye(r)[n], i = void 0; if (n === "top" || n === "left" ? i = o >= a : i = o <= a, !i) return r; if (r === mi()) break; r = _a(r, !1); } return !1; } function Oc(t, e, n, r) { for (var o = 0, a = 0, i = t.children; a < i.length; ) { if (i[a].style.display !== "none" && i[a] !== jt.ghost && (r || i[a] !== jt.dragged) && Ro(i[a], n.draggable, t, !1)) { if (o === e) return i[a]; o++; } a++; } return null; } function e6(t, e) { for (var n = t.lastElementChild; n && (n === jt.ghost || Ct(n, "display") === "none" || e && !J0(n, e)); ) n = n.previousElementSibling; return n || null; } function sn(t, e) { var n = 0; if (!t || !t.parentNode) return -1; for (; t = t.previousElementSibling; ) t.nodeName.toUpperCase() !== "TEMPLATE" && t !== jt.clone && (!e || J0(t, e)) && n++; return n; } function AA(t) { var e = 0, n = 0, r = mi(); if (t) do { var o = ys(t), a = o.a, i = o.d; e += t.scrollLeft * a, n += t.scrollTop * i; } while (t !== r && (t = t.parentNode)); return [e, n]; } function dV(t, e) { for (var n in t) if (!!t.hasOwnProperty(n)) { for (var r in e) if (e.hasOwnProperty(r) && e[r] === t[n][r]) return Number(n); } return -1; } function _a(t, e) { if (!t || !t.getBoundingClientRect) return mi(); var n = t, r = !1; do if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) { var o = Ct(n); if (n.clientWidth < n.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) { if (!n.getBoundingClientRect || n === document.body) return mi(); if (r || e) return n; r = !0; } } while (n = n.parentNode); return mi(); } function pV(t, e) { if (t && e) for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]); return t; } function Ab(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 hp; function NN(t, e) { return function() { if (!hp) { var n = arguments, r = this; n.length === 1 ? t.call(r, n[0]) : t.apply(r, n), hp = setTimeout(function() { hp = void 0; }, e); } }; } function hV() { clearTimeout(hp), hp = void 0; } function RN(t, e, n) { t.scrollLeft += e, t.scrollTop += n; } function n6(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 OA(t, e) { Ct(t, "position", "absolute"), Ct(t, "top", e.top), Ct(t, "left", e.left), Ct(t, "width", e.width), Ct(t, "height", e.height); } function Ob(t) { Ct(t, "position", ""), Ct(t, "top", ""), Ct(t, "left", ""), Ct(t, "width", ""), Ct(t, "height", ""); } var fr = "Sortable" + new Date().getTime(); function gV() { var t = [], e; return { captureAnimationState: function() { if (t = [], !!this.options.animation) { var r = [].slice.call(this.el.children); r.forEach(function(o) { if (!(Ct(o, "display") === "none" || o === jt.ghost)) { t.push({ target: o, rect: Ye(o) }); var a = Ei({}, t[t.length - 1].rect); if (o.thisAnimationDuration) { var i = ys(o, !0); i && (a.top -= i.f, a.left -= i.e); } o.fromRect = a; } }); } }, addAnimationState: function(r) { t.push(r); }, removeAnimationState: function(r) { t.splice(dV(t, { target: r }), 1); }, animateAll: function(r) { var o = this; if (!this.options.animation) { clearTimeout(e), typeof r == "function" && r(); return; } var a = !1, i = 0; t.forEach(function(u) { var s = 0, l = u.target, c = l.fromRect, f = Ye(l), p = l.prevFromRect, d = l.prevToRect, v = u.rect, g = ys(l, !0); g && (f.top -= g.f, f.left -= g.e), l.toRect = f, l.thisAnimationDuration && Ab(p, f) && !Ab(c, f) && (v.top - f.top) / (v.left - f.left) === (c.top - f.top) / (c.left - f.left) && (s = mV(v, p, d, o.options)), Ab(f, c) || (l.prevFromRect = c, l.prevToRect = f, s || (s = o.options.animation), o.animate(l, v, f, s)), s && (a = !0, i = Math.max(i, s), clearTimeout(l.animationResetTimer), l.animationResetTimer = setTimeout(function() { l.animationTime = 0, l.prevFromRect = null, l.fromRect = null, l.prevToRect = null, l.thisAnimationDuration = null; }, s), l.thisAnimationDuration = s); }), clearTimeout(e), a ? e = setTimeout(function() { typeof r == "function" && r(); }, i) : typeof r == "function" && r(), t = []; }, animate: function(r, o, a, i) { if (i) { Ct(r, "transition", ""), Ct(r, "transform", ""); var u = ys(this.el), s = u && u.a, l = u && u.d, c = (o.left - a.left) / (s || 1), f = (o.top - a.top) / (l || 1); r.animatingX = !!c, r.animatingY = !!f, Ct(r, "transform", "translate3d(" + c + "px," + f + "px,0)"), this.forRepaintDummy = vV(r), Ct(r, "transition", "transform " + i + "ms" + (this.options.easing ? " " + this.options.easing : "")), Ct(r, "transform", "translate3d(0,0,0)"), typeof r.animated == "number" && clearTimeout(r.animated), r.animated = setTimeout(function() { Ct(r, "transition", ""), Ct(r, "transform", ""), r.animated = !1, r.animatingX = !1, r.animatingY = !1; }, i); } } }; } function vV(t) { return t.offsetWidth; } function mV(t, e, n, r) { 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)) * r.animation; } var yl = [], Tb = { initializeByDefault: !0 }, Vh = { mount: function(e) { for (var n in Tb) Tb.hasOwnProperty(n) && !(n in e) && (e[n] = Tb[n]); yl.forEach(function(r) { if (r.pluginName === e.pluginName) throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once"); }), yl.push(e); }, pluginEvent: function(e, n, r) { var o = this; this.eventCanceled = !1, r.cancel = function() { o.eventCanceled = !0; }; var a = e + "Global"; yl.forEach(function(i) { !n[i.pluginName] || (n[i.pluginName][a] && n[i.pluginName][a](Ei({ sortable: n }, r)), n.options[i.pluginName] && n[i.pluginName][e] && n[i.pluginName][e](Ei({ sortable: n }, r))); }); }, initializePlugins: function(e, n, r, o) { yl.forEach(function(u) { var s = u.pluginName; if (!(!e.options[s] && !u.initializeByDefault)) { var l = new u(e, n, e.options); l.sortable = e, l.options = e.options, e[s] = l, Ao(r, l.defaults); } }); for (var a in e.options) if (!!e.options.hasOwnProperty(a)) { var i = this.modifyOption(e, a, e.options[a]); typeof i < "u" && (e.options[a] = i); } }, getEventProperties: function(e, n) { var r = {}; return yl.forEach(function(o) { typeof o.eventProperties == "function" && Ao(r, o.eventProperties.call(n[o.pluginName], e)); }), r; }, modifyOption: function(e, n, r) { var o; return yl.forEach(function(a) { !e[a.pluginName] || a.optionListeners && typeof a.optionListeners[n] == "function" && (o = a.optionListeners[n].call(e[a.pluginName], r)); }), o; } }; function qd(t) { var e = t.sortable, n = t.rootEl, r = t.name, o = t.targetEl, a = t.cloneEl, i = t.toEl, u = t.fromEl, s = t.oldIndex, l = t.newIndex, c = t.oldDraggableIndex, f = t.newDraggableIndex, p = t.originalEvent, d = t.putSortable, v = t.extraEventProperties; if (e = e || n && n[fr], !!e) { var g, m = e.options, y = "on" + r.charAt(0).toUpperCase() + r.substr(1); window.CustomEvent && !na && !_h ? g = new CustomEvent(r, { bubbles: !0, cancelable: !0 }) : (g = document.createEvent("Event"), g.initEvent(r, !0, !0)), g.to = i || n, g.from = u || n, g.item = o || n, g.clone = a, g.oldIndex = s, g.newIndex = l, g.oldDraggableIndex = c, g.newDraggableIndex = f, g.originalEvent = p, g.pullMode = d ? d.lastPutMode : void 0; var h = Ei(Ei({}, v), Vh.getEventProperties(r, e)); for (var b in h) g[b] = h[b]; n && n.dispatchEvent(g), m[y] && m[y].call(e, g); } } var yV = ["evt"], xr = function(e, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = r.evt, a = rV(r, yV); Vh.pluginEvent.bind(jt)(e, n, Ei({ dragEl: dt, parentEl: an, ghostEl: Yt, rootEl: Ke, nextEl: es, lastDownEl: c0, cloneEl: un, cloneHidden: Ma, dragStarted: tp, putSortable: Zn, activeSortable: jt.active, originalEvent: o, oldIndex: ac, oldDraggableIndex: gp, newIndex: _r, newDraggableIndex: Ra, hideGhostForTarget: $N, unhideGhostForTarget: HN, cloneNowHidden: function() { Ma = !0; }, cloneNowShown: function() { Ma = !1; }, dispatchSortableEvent: function(u) { vr({ sortable: n, name: u, originalEvent: o }); } }, a)); }; function vr(t) { qd(Ei({ putSortable: Zn, cloneEl: un, targetEl: dt, rootEl: Ke, oldIndex: ac, oldDraggableIndex: gp, newIndex: _r, newDraggableIndex: Ra }, t)); } var dt, an, Yt, Ke, es, c0, un, Ma, ac, _r, gp, Ra, Wg, Zn, ql = !1, Q0 = !1, q0 = [], $u, jo, Pb, Fb, TA, PA, tp, bl, vp, mp = !1, Kg = !1, f0, ir, Bb = [], p4 = !1, tm = [], h1 = typeof document < "u", Yg = kN, FA = _h || na ? "cssFloat" : "float", bV = h1 && !cV && !kN && "draggable" in document.createElement("div"), LN = function() { if (!!h1) { if (na) return !1; var t = document.createElement("x"); return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto"; } }(), MN = function(e, n) { var r = Ct(e), o = parseInt(r.width) - parseInt(r.paddingLeft) - parseInt(r.paddingRight) - parseInt(r.borderLeftWidth) - parseInt(r.borderRightWidth), a = Oc(e, 0, n), i = Oc(e, 1, n), u = a && Ct(a), s = i && Ct(i), l = u && parseInt(u.marginLeft) + parseInt(u.marginRight) + Ye(a).width, c = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + Ye(i).width; if (r.display === "flex") return r.flexDirection === "column" || r.flexDirection === "column-reverse" ? "vertical" : "horizontal"; if (r.display === "grid") return r.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal"; if (a && u.float && u.float !== "none") { var f = u.float === "left" ? "left" : "right"; return i && (s.clear === "both" || s.clear === f) ? "vertical" : "horizontal"; } return a && (u.display === "block" || u.display === "flex" || u.display === "table" || u.display === "grid" || l >= o && r[FA] === "none" || i && r[FA] === "none" && l + c > o) ? "vertical" : "horizontal"; }, wV = function(e, n, r) { var o = r ? e.left : e.top, a = r ? e.right : e.bottom, i = r ? e.width : e.height, u = r ? n.left : n.top, s = r ? n.right : n.bottom, l = r ? n.width : n.height; return o === u || a === s || o + i / 2 === u + l / 2; }, EV = function(e, n) { var r; return q0.some(function(o) { var a = o[fr].options.emptyInsertThreshold; if (!(!a || e6(o))) { var i = Ye(o), u = e >= i.left - a && e <= i.right + a, s = n >= i.top - a && n <= i.bottom + a; if (u && s) return r = o; } }), r; }, zN = function(e) { function n(a, i) { return function(u, s, l, c) { var f = u.options.group.name && s.options.group.name && u.options.group.name === s.options.group.name; if (a == null && (i || f)) return !0; if (a == null || a === !1) return !1; if (i && a === "clone") return a; if (typeof a == "function") return n(a(u, s, l, c), i)(u, s, l, c); var p = (i ? u : s).options.group.name; return a === !0 || typeof a == "string" && a === p || a.join && a.indexOf(p) > -1; }; } var r = {}, o = e.group; (!o || l0(o) != "object") && (o = { name: o }), r.name = o.name, r.checkPull = n(o.pull, !0), r.checkPut = n(o.put), r.revertClone = o.revertClone, e.group = r; }, $N = function() { !LN && Yt && Ct(Yt, "display", "none"); }, HN = function() { !LN && Yt && Ct(Yt, "display", ""); }; h1 && document.addEventListener("click", function(t) { if (Q0) return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), Q0 = !1, !1; }, !0); var Hu = function(e) { if (dt) { e = e.touches ? e.touches[0] : e; var n = EV(e.clientX, e.clientY); if (n) { var r = {}; for (var o in e) e.hasOwnProperty(o) && (r[o] = e[o]); r.target = r.rootEl = n, r.preventDefault = void 0, r.stopPropagation = void 0, n[fr]._onDragOver(r); } } }, SV = function(e) { dt && dt.parentNode[fr]._isOutsideThisEl(e.target); }; function jt(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 = Ao({}, e), t[fr] = 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 MN(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(i, u) { i.setData("Text", u.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: jt.supportPointer !== !1 && "PointerEvent" in window && !pp, emptyInsertThreshold: 5 }; Vh.initializePlugins(this, t, n); for (var r in n) !(r in e) && (e[r] = n[r]); zN(e); for (var o in this) o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this)); this.nativeDraggable = e.forceFallback ? !1 : bV, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? se(t, "pointerdown", this._onTapStart) : (se(t, "mousedown", this._onTapStart), se(t, "touchstart", this._onTapStart)), this.nativeDraggable && (se(t, "dragover", this), se(t, "dragenter", this)), q0.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), Ao(this, gV()); } jt.prototype = { constructor: jt, _isOutsideThisEl: function(e) { !this.el.contains(e) && e !== this.el && (bl = null); }, _getDirection: function(e, n) { return typeof this.options.direction == "function" ? this.options.direction.call(this, e, n, dt) : this.options.direction; }, _onTapStart: function(e) { if (!!e.cancelable) { var n = this, r = this.el, o = this.options, a = o.preventOnFilter, i = e.type, u = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (u || e).target, l = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, c = o.filter; if (FV(r), !dt && !(/mousedown|pointerdown/.test(i) && e.button !== 0 || o.disabled) && !l.isContentEditable && !(!this.nativeDraggable && pp && s && s.tagName.toUpperCase() === "SELECT") && (s = Ro(s, o.draggable, r, !1), !(s && s.animated) && c0 !== s)) { if (ac = sn(s), gp = sn(s, o.draggable), typeof c == "function") { if (c.call(this, e, s, this)) { vr({ sortable: n, rootEl: l, name: "filter", targetEl: s, toEl: r, fromEl: r }), xr("filter", n, { evt: e }), a && e.cancelable && e.preventDefault(); return; } } else if (c && (c = c.split(",").some(function(f) { if (f = Ro(l, f.trim(), r, !1), f) return vr({ sortable: n, rootEl: f, name: "filter", targetEl: s, fromEl: r, toEl: r }), xr("filter", n, { evt: e }), !0; }), c)) { a && e.cancelable && e.preventDefault(); return; } o.handle && !Ro(l, o.handle, r, !1) || this._prepareDragStart(e, u, s); } } }, _prepareDragStart: function(e, n, r) { var o = this, a = o.el, i = o.options, u = a.ownerDocument, s; if (r && !dt && r.parentNode === a) { var l = Ye(r); if (Ke = a, dt = r, an = dt.parentNode, es = dt.nextSibling, c0 = r, Wg = i.group, jt.dragged = dt, $u = { target: dt, clientX: (n || e).clientX, clientY: (n || e).clientY }, TA = $u.clientX - l.left, PA = $u.clientY - l.top, this._lastX = (n || e).clientX, this._lastY = (n || e).clientY, dt.style["will-change"] = "all", s = function() { if (xr("delayEnded", o, { evt: e }), jt.eventCanceled) { o._onDrop(); return; } o._disableDelayedDragEvents(), !xA && o.nativeDraggable && (dt.draggable = !0), o._triggerDragStart(e, n), vr({ sortable: o, name: "choose", originalEvent: e }), qe(dt, i.chosenClass, !0); }, i.ignore.split(",").forEach(function(c) { jN(dt, c.trim(), kb); }), se(u, "dragover", Hu), se(u, "mousemove", Hu), se(u, "touchmove", Hu), se(u, "mouseup", o._onDrop), se(u, "touchend", o._onDrop), se(u, "touchcancel", o._onDrop), xA && this.nativeDraggable && (this.options.touchStartThreshold = 4, dt.draggable = !0), xr("delayStart", this, { evt: e }), i.delay && (!i.delayOnTouchOnly || n) && (!this.nativeDraggable || !(_h || na))) { if (jt.eventCanceled) { this._onDrop(); return; } se(u, "mouseup", o._disableDelayedDrag), se(u, "touchend", o._disableDelayedDrag), se(u, "touchcancel", o._disableDelayedDrag), se(u, "mousemove", o._delayedDragTouchMoveHandler), se(u, "touchmove", o._delayedDragTouchMoveHandler), i.supportPointer && se(u, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(s, i.delay); } else s(); } }, _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() { dt && kb(dt), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents(); }, _disableDelayedDragEvents: function() { var e = this.el.ownerDocument; ae(e, "mouseup", this._disableDelayedDrag), ae(e, "touchend", this._disableDelayedDrag), ae(e, "touchcancel", this._disableDelayedDrag), ae(e, "mousemove", this._delayedDragTouchMoveHandler), ae(e, "touchmove", this._delayedDragTouchMoveHandler), ae(e, "pointermove", this._delayedDragTouchMoveHandler); }, _triggerDragStart: function(e, n) { n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? se(document, "pointermove", this._onTouchMove) : n ? se(document, "touchmove", this._onTouchMove) : se(document, "mousemove", this._onTouchMove) : (se(dt, "dragend", this), se(Ke, "dragstart", this._onDragStart)); try { document.selection ? d0(function() { document.selection.empty(); }) : window.getSelection().removeAllRanges(); } catch { } }, _dragStarted: function(e, n) { if (ql = !1, Ke && dt) { xr("dragStarted", this, { evt: n }), this.nativeDraggable && se(document, "dragover", SV); var r = this.options; !e && qe(dt, r.dragClass, !1), qe(dt, r.ghostClass, !0), jt.active = this, e && this._appendGhost(), vr({ sortable: this, name: "start", originalEvent: n }); } else this._nulling(); }, _emulateDragOver: function() { if (jo) { this._lastX = jo.clientX, this._lastY = jo.clientY, $N(); for (var e = document.elementFromPoint(jo.clientX, jo.clientY), n = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(jo.clientX, jo.clientY), e !== n); ) n = e; if (dt.parentNode[fr]._isOutsideThisEl(e), n) do { if (n[fr]) { var r = void 0; if (r = n[fr]._onDragOver({ clientX: jo.clientX, clientY: jo.clientY, target: e, rootEl: n }), r && !this.options.dragoverBubble) break; } e = n; } while (n = n.parentNode); HN(); } }, _onTouchMove: function(e) { if ($u) { var n = this.options, r = n.fallbackTolerance, o = n.fallbackOffset, a = e.touches ? e.touches[0] : e, i = Yt && ys(Yt, !0), u = Yt && i && i.a, s = Yt && i && i.d, l = Yg && ir && AA(ir), c = (a.clientX - $u.clientX + o.x) / (u || 1) + (l ? l[0] - Bb[0] : 0) / (u || 1), f = (a.clientY - $u.clientY + o.y) / (s || 1) + (l ? l[1] - Bb[1] : 0) / (s || 1); if (!jt.active && !ql) { if (r && Math.max(Math.abs(a.clientX - this._lastX), Math.abs(a.clientY - this._lastY)) < r) return; this._onDragStart(e, !0); } if (Yt) { i ? (i.e += c - (Pb || 0), i.f += f - (Fb || 0)) : i = { a: 1, b: 0, c: 0, d: 1, e: c, f }; var p = "matrix(".concat(i.a, ",").concat(i.b, ",").concat(i.c, ",").concat(i.d, ",").concat(i.e, ",").concat(i.f, ")"); Ct(Yt, "webkitTransform", p), Ct(Yt, "mozTransform", p), Ct(Yt, "msTransform", p), Ct(Yt, "transform", p), Pb = c, Fb = f, jo = a; } e.cancelable && e.preventDefault(); } }, _appendGhost: function() { if (!Yt) { var e = this.options.fallbackOnBody ? document.body : Ke, n = Ye(dt, !0, Yg, !0, e), r = this.options; if (Yg) { for (ir = e; Ct(ir, "position") === "static" && Ct(ir, "transform") === "none" && ir !== document; ) ir = ir.parentNode; ir !== document.body && ir !== document.documentElement ? (ir === document && (ir = mi()), n.top += ir.scrollTop, n.left += ir.scrollLeft) : ir = mi(), Bb = AA(ir); } Yt = dt.cloneNode(!0), qe(Yt, r.ghostClass, !1), qe(Yt, r.fallbackClass, !0), qe(Yt, r.dragClass, !0), Ct(Yt, "transition", ""), Ct(Yt, "transform", ""), Ct(Yt, "box-sizing", "border-box"), Ct(Yt, "margin", 0), Ct(Yt, "top", n.top), Ct(Yt, "left", n.left), Ct(Yt, "width", n.width), Ct(Yt, "height", n.height), Ct(Yt, "opacity", "0.8"), Ct(Yt, "position", Yg ? "absolute" : "fixed"), Ct(Yt, "zIndex", "100000"), Ct(Yt, "pointerEvents", "none"), jt.ghost = Yt, e.appendChild(Yt), Ct(Yt, "transform-origin", TA / parseInt(Yt.style.width) * 100 + "% " + PA / parseInt(Yt.style.height) * 100 + "%"); } }, _onDragStart: function(e, n) { var r = this, o = e.dataTransfer, a = r.options; if (xr("dragStart", this, { evt: e }), jt.eventCanceled) { this._onDrop(); return; } xr("setupClone", this), jt.eventCanceled || (un = n6(dt), un.draggable = !1, un.style["will-change"] = "", this._hideClone(), qe(un, this.options.chosenClass, !1), jt.clone = un), r.cloneId = d0(function() { xr("clone", r), !jt.eventCanceled && (r.options.removeCloneOnHide || Ke.insertBefore(un, dt), r._hideClone(), vr({ sortable: r, name: "clone" })); }), !n && qe(dt, a.dragClass, !0), n ? (Q0 = !0, r._loopId = setInterval(r._emulateDragOver, 50)) : (ae(document, "mouseup", r._onDrop), ae(document, "touchend", r._onDrop), ae(document, "touchcancel", r._onDrop), o && (o.effectAllowed = "move", a.setData && a.setData.call(r, o, dt)), se(document, "drop", r), Ct(dt, "transform", "translateZ(0)")), ql = !0, r._dragStartId = d0(r._dragStarted.bind(r, n, e)), se(document, "selectstart", r), tp = !0, pp && Ct(document.body, "user-select", "none"); }, _onDragOver: function(e) { var n = this.el, r = e.target, o, a, i, u = this.options, s = u.group, l = jt.active, c = Wg === s, f = u.sort, p = Zn || l, d, v = this, g = !1; if (p4) return; function m(et, rt) { xr(et, v, Ei({ evt: e, isOwner: c, axis: d ? "vertical" : "horizontal", revert: i, dragRect: o, targetRect: a, canSort: f, fromSortable: p, target: r, completed: h, onMove: function(T, O) { return Xg(Ke, n, dt, o, T, Ye(T), e, O); }, changed: b }, rt)); } function y() { m("dragOverAnimationCapture"), v.captureAnimationState(), v !== p && p.captureAnimationState(); } function h(et) { return m("dragOverCompleted", { insertion: et }), et && (c ? l._hideClone() : l._showClone(v), v !== p && (qe(dt, Zn ? Zn.options.ghostClass : l.options.ghostClass, !1), qe(dt, u.ghostClass, !0)), Zn !== v && v !== jt.active ? Zn = v : v === jt.active && Zn && (Zn = null), p === v && (v._ignoreWhileAnimating = r), v.animateAll(function() { m("dragOverAnimationComplete"), v._ignoreWhileAnimating = null; }), v !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (r === dt && !dt.animated || r === n && !r.animated) && (bl = null), !u.dragoverBubble && !e.rootEl && r !== document && (dt.parentNode[fr]._isOutsideThisEl(e.target), !et && Hu(e)), !u.dragoverBubble && e.stopPropagation && e.stopPropagation(), g = !0; } function b() { _r = sn(dt), Ra = sn(dt, u.draggable), vr({ sortable: v, name: "change", toEl: n, newIndex: _r, newDraggableIndex: Ra, originalEvent: e }); } if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), r = Ro(r, u.draggable, n, !0), m("dragOver"), jt.eventCanceled) return g; if (dt.contains(e.target) || r.animated && r.animatingX && r.animatingY || v._ignoreWhileAnimating === r) return h(!1); if (Q0 = !1, l && !u.disabled && (c ? f || (i = an !== Ke) : Zn === this || (this.lastPutMode = Wg.checkPull(this, l, dt, e)) && s.checkPut(this, l, dt, e))) { if (d = this._getDirection(e, r) === "vertical", o = Ye(dt), m("dragOverValid"), jt.eventCanceled) return g; if (i) return an = Ke, y(), this._hideClone(), m("revert"), jt.eventCanceled || (es ? Ke.insertBefore(dt, es) : Ke.appendChild(dt)), h(!0); var w = e6(n, u.draggable); if (!w || AV(e, d, this) && !w.animated) { if (w === dt) return h(!1); if (w && n === e.target && (r = w), r && (a = Ye(r)), Xg(Ke, n, dt, o, r, a, e, !!r) !== !1) return y(), n.appendChild(dt), an = n, b(), h(!0); } else if (w && CV(e, d, this)) { var E = Oc(n, 0, u, !0); if (E === dt) return h(!1); if (r = E, a = Ye(r), Xg(Ke, n, dt, o, r, a, e, !1) !== !1) return y(), n.insertBefore(dt, E), an = n, b(), h(!0); } else if (r.parentNode === n) { a = Ye(r); var S = 0, x, A = dt.parentNode !== n, C = !wV(dt.animated && dt.toRect || o, r.animated && r.toRect || a, d), k = d ? "top" : "left", L = CA(r, "top", "top") || CA(dt, "top", "top"), $ = L ? L.scrollTop : void 0; bl !== r && (x = a[k], mp = !1, Kg = !C && u.invertSwap || A), S = OV(e, r, a, d, C ? 1 : u.swapThreshold, u.invertedSwapThreshold == null ? u.swapThreshold : u.invertedSwapThreshold, Kg, bl === r); var N; if (S !== 0) { var j = sn(dt); do j -= S, N = an.children[j]; while (N && (Ct(N, "display") === "none" || N === Yt)); } if (S === 0 || N === r) return h(!1); bl = r, vp = S; var _ = r.nextElementSibling, z = !1; z = S === 1; var Z = Xg(Ke, n, dt, o, r, a, e, z); if (Z !== !1) return (Z === 1 || Z === -1) && (z = Z === 1), p4 = !0, setTimeout(DV, 30), y(), z && !_ ? n.appendChild(dt) : r.parentNode.insertBefore(dt, z ? _ : r), L && RN(L, 0, $ - L.scrollTop), an = dt.parentNode, x !== void 0 && !Kg && (f0 = Math.abs(x - Ye(r)[k])), b(), h(!0); } if (n.contains(dt)) return h(!1); } return !1; }, _ignoreWhileAnimating: null, _offMoveEvents: function() { ae(document, "mousemove", this._onTouchMove), ae(document, "touchmove", this._onTouchMove), ae(document, "pointermove", this._onTouchMove), ae(document, "dragover", Hu), ae(document, "mousemove", Hu), ae(document, "touchmove", Hu); }, _offUpEvents: function() { var e = this.el.ownerDocument; ae(e, "mouseup", this._onDrop), ae(e, "touchend", this._onDrop), ae(e, "pointerup", this._onDrop), ae(e, "touchcancel", this._onDrop), ae(document, "selectstart", this); }, _onDrop: function(e) { var n = this.el, r = this.options; if (_r = sn(dt), Ra = sn(dt, r.draggable), xr("drop", this, { evt: e }), an = dt && dt.parentNode, _r = sn(dt), Ra = sn(dt, r.draggable), jt.eventCanceled) { this._nulling(); return; } ql = !1, Kg = !1, mp = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), h4(this.cloneId), h4(this._dragStartId), this.nativeDraggable && (ae(document, "drop", this), ae(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), pp && Ct(document.body, "user-select", ""), Ct(dt, "transform", ""), e && (tp && (e.cancelable && e.preventDefault(), !r.dropBubble && e.stopPropagation()), Yt && Yt.parentNode && Yt.parentNode.removeChild(Yt), (Ke === an || Zn && Zn.lastPutMode !== "clone") && un && un.parentNode && un.parentNode.removeChild(un), dt && (this.nativeDraggable && ae(dt, "dragend", this), kb(dt), dt.style["will-change"] = "", tp && !ql && qe(dt, Zn ? Zn.options.ghostClass : this.options.ghostClass, !1), qe(dt, this.options.chosenClass, !1), vr({ sortable: this, name: "unchoose", toEl: an, newIndex: null, newDraggableIndex: null, originalEvent: e }), Ke !== an ? (_r >= 0 && (vr({ rootEl: an, name: "add", toEl: an, fromEl: Ke, originalEvent: e }), vr({ sortable: this, name: "remove", toEl: an, originalEvent: e }), vr({ rootEl: an, name: "sort", toEl: an, fromEl: Ke, originalEvent: e }), vr({ sortable: this, name: "sort", toEl: an, originalEvent: e })), Zn && Zn.save()) : _r !== ac && _r >= 0 && (vr({ sortable: this, name: "update", toEl: an, originalEvent: e }), vr({ sortable: this, name: "sort", toEl: an, originalEvent: e })), jt.active && ((_r == null || _r === -1) && (_r = ac, Ra = gp), vr({ sortable: this, name: "end", toEl: an, originalEvent: e }), this.save()))), this._nulling(); }, _nulling: function() { xr("nulling", this), Ke = dt = an = Yt = es = un = c0 = Ma = $u = jo = tp = _r = Ra = ac = gp = bl = vp = Zn = Wg = jt.dragged = jt.ghost = jt.clone = jt.active = null, tm.forEach(function(e) { e.checked = !0; }), tm.length = Pb = Fb = 0; }, handleEvent: function(e) { switch (e.type) { case "drop": case "dragend": this._onDrop(e); break; case "dragenter": case "dragover": dt && (this._onDragOver(e), xV(e)); break; case "selectstart": e.preventDefault(); break; } }, toArray: function() { for (var e = [], n, r = this.el.children, o = 0, a = r.length, i = this.options; o < a; o++) n = r[o], Ro(n, i.draggable, this.el, !1) && e.push(n.getAttribute(i.dataIdAttr) || PV(n)); return e; }, sort: function(e, n) { var r = {}, o = this.el; this.toArray().forEach(function(a, i) { var u = o.children[i]; Ro(u, this.options.draggable, o, !1) && (r[a] = u); }, this), n && this.captureAnimationState(), e.forEach(function(a) { r[a] && (o.removeChild(r[a]), o.appendChild(r[a])); }), n && this.animateAll(); }, save: function() { var e = this.options.store; e && e.set && e.set(this); }, closest: function(e, n) { return Ro(e, n || this.options.draggable, this.el, !1); }, option: function(e, n) { var r = this.options; if (n === void 0) return r[e]; var o = Vh.modifyOption(this, e, n); typeof o < "u" ? r[e] = o : r[e] = n, e === "group" && zN(r); }, destroy: function() { xr("destroy", this); var e = this.el; e[fr] = null, ae(e, "mousedown", this._onTapStart), ae(e, "touchstart", this._onTapStart), ae(e, "pointerdown", this._onTapStart), this.nativeDraggable && (ae(e, "dragover", this), ae(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(n) { n.removeAttribute("draggable"); }), this._onDrop(), this._disableDelayedDragEvents(), q0.splice(q0.indexOf(this.el), 1), this.el = e = null; }, _hideClone: function() { if (!Ma) { if (xr("hideClone", this), jt.eventCanceled) return; Ct(un, "display", "none"), this.options.removeCloneOnHide && un.parentNode && un.parentNode.removeChild(un), Ma = !0; } }, _showClone: function(e) { if (e.lastPutMode !== "clone") { this._hideClone(); return; } if (Ma) { if (xr("showClone", this), jt.eventCanceled) return; dt.parentNode == Ke && !this.options.group.revertClone ? Ke.insertBefore(un, dt) : es ? Ke.insertBefore(un, es) : Ke.appendChild(un), this.options.group.revertClone && this.animate(dt, un), Ct(un, "display", ""), Ma = !1; } } }; function xV(t) { t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault(); } function Xg(t, e, n, r, o, a, i, u) { var s, l = t[fr], c = l.options.onMove, f; return window.CustomEvent && !na && !_h ? s = new CustomEvent("move", { bubbles: !0, cancelable: !0 }) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = t, s.dragged = n, s.draggedRect = r, s.related = o || e, s.relatedRect = a || Ye(e), s.willInsertAfter = u, s.originalEvent = i, t.dispatchEvent(s), c && (f = c.call(l, s, i)), f; } function kb(t) { t.draggable = !1; } function DV() { p4 = !1; } function CV(t, e, n) { var r = Ye(Oc(n.el, 0, n.options, !0)), o = 10; return e ? t.clientX < r.left - o || t.clientY < r.top && t.clientX < r.right : t.clientY < r.top - o || t.clientY < r.bottom && t.clientX < r.left; } function AV(t, e, n) { var r = Ye(e6(n.el, n.options.draggable)), o = 10; return e ? t.clientX > r.right + o || t.clientX <= r.right && t.clientY > r.bottom && t.clientX >= r.left : t.clientX > r.right && t.clientY > r.top || t.clientX <= r.right && t.clientY > r.bottom + o; } function OV(t, e, n, r, o, a, i, u) { var s = r ? t.clientY : t.clientX, l = r ? n.height : n.width, c = r ? n.top : n.left, f = r ? n.bottom : n.right, p = !1; if (!i) { if (u && f0 < l * o) { if (!mp && (vp === 1 ? s > c + l * a / 2 : s < f - l * a / 2) && (mp = !0), mp) p = !0; else if (vp === 1 ? s < c + f0 : s > f - f0) return -vp; } else if (s > c + l * (1 - o) / 2 && s < f - l * (1 - o) / 2) return TV(e); } return p = p || i, p && (s < c + l * a / 2 || s > f - l * a / 2) ? s > c + l / 2 ? 1 : -1 : 0; } function TV(t) { return sn(dt) < sn(t) ? 1 : -1; } function PV(t) { for (var e = t.tagName + t.className + t.src + t.href + t.textContent, n = e.length, r = 0; n--; ) r += e.charCodeAt(n); return r.toString(36); } function FV(t) { tm.length = 0; for (var e = t.getElementsByTagName("input"), n = e.length; n--; ) { var r = e[n]; r.checked && tm.push(r); } } function d0(t) { return setTimeout(t, 0); } function h4(t) { return clearTimeout(t); } h1 && se(document, "touchmove", function(t) { (jt.active || ql) && t.cancelable && t.preventDefault(); }); jt.utils = { on: se, off: ae, css: Ct, find: jN, is: function(e, n) { return !!Ro(e, n, e, !1); }, extend: pV, throttle: NN, closest: Ro, toggleClass: qe, clone: n6, index: sn, nextTick: d0, cancelNextTick: h4, detectDirection: MN, getChild: Oc }; jt.get = function(t) { return t[fr]; }; jt.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(r) { if (!r.prototype || !r.prototype.constructor) throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r)); r.utils && (jt.utils = Ei(Ei({}, jt.utils), r.utils)), Vh.mount