@sc-guode/yzl-components 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -1878,7 +1878,8 @@ const jv = {
1878
1878
  isAllSelected: !1,
1879
1879
  selectedColumnLabels: [],
1880
1880
  isIndeterminate: !0,
1881
- visibleColumns: []
1881
+ visibleColumns: [],
1882
+ appendToBody: !0
1882
1883
  }),
1883
1884
  computed: {
1884
1885
  blacklistColumns() {
@@ -1917,6 +1918,11 @@ const jv = {
1917
1918
  immediate: !0
1918
1919
  }
1919
1920
  },
1921
+ created() {
1922
+ this.appendToBody = !document.fullscreenElement, document.addEventListener("fullscreenchange", () => {
1923
+ this.appendToBody = !document.fullscreenElement;
1924
+ });
1925
+ },
1920
1926
  methods: {
1921
1927
  handleTagClose(g) {
1922
1928
  this.selectedColumnLabels = this.selectedColumnLabels.filter((c) => c !== g.label);
@@ -1948,7 +1954,7 @@ const jv = {
1948
1954
  };
1949
1955
  var Zv = function() {
1950
1956
  var c = this, o = c._self._c;
1951
- return o("el-dialog", { staticClass: "table-columns-manager", attrs: { visible: c.localVisible, title: "\u8868\u5934\u8BBE\u7F6E", width: "60%", "modal-append-to-body": !1, "destroy-on-close": "" }, on: { "update:visible": function(u) {
1957
+ return o("el-dialog", { staticClass: "table-columns-manager", attrs: { visible: c.localVisible, title: "\u8868\u5934\u8BBE\u7F6E", width: "60%", "append-to-body": c.appendToBody, "modal-append-to-body": !1, "destroy-on-close": "" }, on: { "update:visible": function(u) {
1952
1958
  c.localVisible = u;
1953
1959
  } } }, [o("span", [c._v("\u663E\u793A\u5217")]), o("hr"), o("div", { ref: "tagsContainer", staticClass: "tags-wrapper" }, [c._l(c.visibleColumns, function(u) {
1954
1960
  return [u.label ? o("el-tag", { key: u.label, staticClass: "draggable-tag", attrs: { closable: "" }, on: { close: function(r) {
package/index.umd.js CHANGED
@@ -9,7 +9,7 @@
9
9
  * @author RubaXa <trash@rubaxa.org>
10
10
  * @author owenm <owen23355@gmail.com>
11
11
  * @license MIT
12
- */function S2(g,c){var o=Object.keys(g);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(g);c&&(u=u.filter(function(r){return Object.getOwnPropertyDescriptor(g,r).enumerable})),o.push.apply(o,u)}return o}function bi(g){for(var c=1;c<arguments.length;c++){var o=arguments[c]!=null?arguments[c]:{};c%2?S2(Object(o),!0).forEach(function(u){Dm(g,u,o[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(o)):S2(Object(o)).forEach(function(u){Object.defineProperty(g,u,Object.getOwnPropertyDescriptor(o,u))})}return g}function Pl(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pl=function(c){return typeof c}:Pl=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},Pl(g)}function Dm(g,c,o){return c in g?Object.defineProperty(g,c,{value:o,enumerable:!0,configurable:!0,writable:!0}):g[c]=o,g}function Gi(){return Gi=Object.assign||function(g){for(var c=1;c<arguments.length;c++){var o=arguments[c];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(g[u]=o[u])}return g},Gi.apply(this,arguments)}function Bm(g,c){if(g==null)return{};var o={},u=Object.keys(g),r,e;for(e=0;e<u.length;e++)r=u[e],!(c.indexOf(r)>=0)&&(o[r]=g[r]);return o}function bm(g,c){if(g==null)return{};var o=Bm(g,c),u,r;if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(g);for(r=0;r<e.length;r++)u=e[r],!(c.indexOf(u)>=0)&&(!Object.prototype.propertyIsEnumerable.call(g,u)||(o[u]=g[u]))}return o}var ym="1.15.6";function Ki(g){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(g)}var Yi=Ki(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Yo=Ki(/Edge/i),A2=Ki(/firefox/i),jo=Ki(/safari/i)&&!Ki(/chrome/i)&&!Ki(/android/i),Th=Ki(/iP(ad|od|hone)/i),D2=Ki(/chrome/i)&&Ki(/android/i),B2={capture:!1,passive:!1};function Lr(g,c,o){g.addEventListener(c,o,!Yi&&B2)}function Or(g,c,o){g.removeEventListener(c,o,!Yi&&B2)}function Nl(g,c){if(!!c){if(c[0]===">"&&(c=c.substring(1)),g)try{if(g.matches)return g.matches(c);if(g.msMatchesSelector)return g.msMatchesSelector(c);if(g.webkitMatchesSelector)return g.webkitMatchesSelector(c)}catch{return!1}return!1}}function b2(g){return g.host&&g!==document&&g.host.nodeType?g.host:g.parentNode}function hi(g,c,o,u){if(g){o=o||document;do{if(c!=null&&(c[0]===">"?g.parentNode===o&&Nl(g,c):Nl(g,c))||u&&g===o)return g;if(g===o)break}while(g=b2(g))}return null}var y2=/\s+/g;function Va(g,c,o){if(g&&c)if(g.classList)g.classList[o?"add":"remove"](c);else{var u=(" "+g.className+" ").replace(y2," ").replace(" "+c+" "," ");g.className=(u+(o?" "+c:"")).replace(y2," ")}}function ur(g,c,o){var u=g&&g.style;if(u){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(g,""):g.currentStyle&&(o=g.currentStyle),c===void 0?o:o[c];!(c in u)&&c.indexOf("webkit")===-1&&(c="-webkit-"+c),u[c]=o+(typeof o=="string"?"":"px")}}function Ls(g,c){var o="";if(typeof g=="string")o=g;else do{var u=ur(g,"transform");u&&u!=="none"&&(o=u+" "+o)}while(!c&&(g=g.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(o)}function k2(g,c,o){if(g){var u=g.getElementsByTagName(c),r=0,e=u.length;if(o)for(;r<e;r++)o(u[r],r);return u}return[]}function yi(){var g=document.scrollingElement;return g||document.documentElement}function Rn(g,c,o,u,r){if(!(!g.getBoundingClientRect&&g!==window)){var e,D,I,k,M,H,X;if(g!==window&&g.parentNode&&g!==yi()?(e=g.getBoundingClientRect(),D=e.top,I=e.left,k=e.bottom,M=e.right,H=e.height,X=e.width):(D=0,I=0,k=window.innerHeight,M=window.innerWidth,H=window.innerHeight,X=window.innerWidth),(c||o)&&g!==window&&(r=r||g.parentNode,!Yi))do if(r&&r.getBoundingClientRect&&(ur(r,"transform")!=="none"||o&&ur(r,"position")!=="static")){var ie=r.getBoundingClientRect();D-=ie.top+parseInt(ur(r,"border-top-width")),I-=ie.left+parseInt(ur(r,"border-left-width")),k=D+e.height,M=I+e.width;break}while(r=r.parentNode);if(u&&g!==window){var R=Ls(r||g),Y=R&&R.a,re=R&&R.d;R&&(D/=re,I/=Y,X/=Y,H/=re,k=D+H,M=I+X)}return{top:D,left:I,bottom:k,right:M,width:X,height:H}}}function T2(g,c,o){for(var u=u0(g,!0),r=Rn(g)[c];u;){var e=Rn(u)[o],D=void 0;if(o==="top"||o==="left"?D=r>=e:D=r<=e,!D)return u;if(u===yi())break;u=u0(u,!1)}return!1}function Ms(g,c,o,u){for(var r=0,e=0,D=g.children;e<D.length;){if(D[e].style.display!=="none"&&D[e]!==hr.ghost&&(u||D[e]!==hr.dragged)&&hi(D[e],o.draggable,g,!1)){if(r===c)return D[e];r++}e++}return null}function Ih(g,c){for(var o=g.lastElementChild;o&&(o===hr.ghost||ur(o,"display")==="none"||c&&!Nl(o,c));)o=o.previousElementSibling;return o||null}function ti(g,c){var o=0;if(!g||!g.parentNode)return-1;for(;g=g.previousElementSibling;)g.nodeName.toUpperCase()!=="TEMPLATE"&&g!==hr.clone&&(!c||Nl(g,c))&&o++;return o}function I2(g){var c=0,o=0,u=yi();if(g)do{var r=Ls(g),e=r.a,D=r.d;c+=g.scrollLeft*e,o+=g.scrollTop*D}while(g!==u&&(g=g.parentNode));return[c,o]}function km(g,c){for(var o in g)if(!!g.hasOwnProperty(o)){for(var u in c)if(c.hasOwnProperty(u)&&c[u]===g[o][u])return Number(o)}return-1}function u0(g,c){if(!g||!g.getBoundingClientRect)return yi();var o=g,u=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var r=ur(o);if(o.clientWidth<o.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return yi();if(u||c)return o;u=!0}}while(o=o.parentNode);return yi()}function Tm(g,c){if(g&&c)for(var o in c)c.hasOwnProperty(o)&&(g[o]=c[o]);return g}function Rh(g,c){return Math.round(g.top)===Math.round(c.top)&&Math.round(g.left)===Math.round(c.left)&&Math.round(g.height)===Math.round(c.height)&&Math.round(g.width)===Math.round(c.width)}var Zo;function R2(g,c){return function(){if(!Zo){var o=arguments,u=this;o.length===1?g.call(u,o[0]):g.apply(u,o),Zo=setTimeout(function(){Zo=void 0},c)}}}function Im(){clearTimeout(Zo),Zo=void 0}function O2(g,c,o){g.scrollLeft+=c,g.scrollTop+=o}function P2(g){var c=window.Polymer,o=window.jQuery||window.Zepto;return c&&c.dom?c.dom(g).cloneNode(!0):o?o(g).clone(!0)[0]:g.cloneNode(!0)}function N2(g,c,o){var u={};return Array.from(g.children).forEach(function(r){var e,D,I,k;if(!(!hi(r,c.draggable,g,!1)||r.animated||r===o)){var M=Rn(r);u.left=Math.min((e=u.left)!==null&&e!==void 0?e:1/0,M.left),u.top=Math.min((D=u.top)!==null&&D!==void 0?D:1/0,M.top),u.right=Math.max((I=u.right)!==null&&I!==void 0?I:-1/0,M.right),u.bottom=Math.max((k=u.bottom)!==null&&k!==void 0?k:-1/0,M.bottom)}}),u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}var ba="Sortable"+new Date().getTime();function Rm(){var g=[],c;return{captureAnimationState:function(){if(g=[],!!this.options.animation){var u=[].slice.call(this.el.children);u.forEach(function(r){if(!(ur(r,"display")==="none"||r===hr.ghost)){g.push({target:r,rect:Rn(r)});var e=bi({},g[g.length-1].rect);if(r.thisAnimationDuration){var D=Ls(r,!0);D&&(e.top-=D.f,e.left-=D.e)}r.fromRect=e}})}},addAnimationState:function(u){g.push(u)},removeAnimationState:function(u){g.splice(km(g,{target:u}),1)},animateAll:function(u){var r=this;if(!this.options.animation){clearTimeout(c),typeof u=="function"&&u();return}var e=!1,D=0;g.forEach(function(I){var k=0,M=I.target,H=M.fromRect,X=Rn(M),ie=M.prevFromRect,R=M.prevToRect,Y=I.rect,re=Ls(M,!0);re&&(X.top-=re.f,X.left-=re.e),M.toRect=X,M.thisAnimationDuration&&Rh(ie,X)&&!Rh(H,X)&&(Y.top-X.top)/(Y.left-X.left)===(H.top-X.top)/(H.left-X.left)&&(k=Pm(Y,ie,R,r.options)),Rh(X,H)||(M.prevFromRect=H,M.prevToRect=X,k||(k=r.options.animation),r.animate(M,Y,X,k)),k&&(e=!0,D=Math.max(D,k),clearTimeout(M.animationResetTimer),M.animationResetTimer=setTimeout(function(){M.animationTime=0,M.prevFromRect=null,M.fromRect=null,M.prevToRect=null,M.thisAnimationDuration=null},k),M.thisAnimationDuration=k)}),clearTimeout(c),e?c=setTimeout(function(){typeof u=="function"&&u()},D):typeof u=="function"&&u(),g=[]},animate:function(u,r,e,D){if(D){ur(u,"transition",""),ur(u,"transform","");var I=Ls(this.el),k=I&&I.a,M=I&&I.d,H=(r.left-e.left)/(k||1),X=(r.top-e.top)/(M||1);u.animatingX=!!H,u.animatingY=!!X,ur(u,"transform","translate3d("+H+"px,"+X+"px,0)"),this.forRepaintDummy=Om(u),ur(u,"transition","transform "+D+"ms"+(this.options.easing?" "+this.options.easing:"")),ur(u,"transform","translate3d(0,0,0)"),typeof u.animated=="number"&&clearTimeout(u.animated),u.animated=setTimeout(function(){ur(u,"transition",""),ur(u,"transform",""),u.animated=!1,u.animatingX=!1,u.animatingY=!1},D)}}}}function Om(g){return g.offsetWidth}function Pm(g,c,o,u){return Math.sqrt(Math.pow(c.top-g.top,2)+Math.pow(c.left-g.left,2))/Math.sqrt(Math.pow(c.top-o.top,2)+Math.pow(c.left-o.left,2))*u.animation}var Us=[],Oh={initializeByDefault:!0},Jo={mount:function(c){for(var o in Oh)Oh.hasOwnProperty(o)&&!(o in c)&&(c[o]=Oh[o]);Us.forEach(function(u){if(u.pluginName===c.pluginName)throw"Sortable: Cannot mount plugin ".concat(c.pluginName," more than once")}),Us.push(c)},pluginEvent:function(c,o,u){var r=this;this.eventCanceled=!1,u.cancel=function(){r.eventCanceled=!0};var e=c+"Global";Us.forEach(function(D){!o[D.pluginName]||(o[D.pluginName][e]&&o[D.pluginName][e](bi({sortable:o},u)),o.options[D.pluginName]&&o[D.pluginName][c]&&o[D.pluginName][c](bi({sortable:o},u)))})},initializePlugins:function(c,o,u,r){Us.forEach(function(I){var k=I.pluginName;if(!(!c.options[k]&&!I.initializeByDefault)){var M=new I(c,o,c.options);M.sortable=c,M.options=c.options,c[k]=M,Gi(u,M.defaults)}});for(var e in c.options)if(!!c.options.hasOwnProperty(e)){var D=this.modifyOption(c,e,c.options[e]);typeof D<"u"&&(c.options[e]=D)}},getEventProperties:function(c,o){var u={};return Us.forEach(function(r){typeof r.eventProperties=="function"&&Gi(u,r.eventProperties.call(o[r.pluginName],c))}),u},modifyOption:function(c,o,u){var r;return Us.forEach(function(e){!c[e.pluginName]||e.optionListeners&&typeof e.optionListeners[o]=="function"&&(r=e.optionListeners[o].call(c[e.pluginName],u))}),r}};function Nm(g){var c=g.sortable,o=g.rootEl,u=g.name,r=g.targetEl,e=g.cloneEl,D=g.toEl,I=g.fromEl,k=g.oldIndex,M=g.newIndex,H=g.oldDraggableIndex,X=g.newDraggableIndex,ie=g.originalEvent,R=g.putSortable,Y=g.extraEventProperties;if(c=c||o&&o[ba],!!c){var re,we=c.options,De="on"+u.charAt(0).toUpperCase()+u.substr(1);window.CustomEvent&&!Yi&&!Yo?re=new CustomEvent(u,{bubbles:!0,cancelable:!0}):(re=document.createEvent("Event"),re.initEvent(u,!0,!0)),re.to=D||o,re.from=I||o,re.item=r||o,re.clone=e,re.oldIndex=k,re.newIndex=M,re.oldDraggableIndex=H,re.newDraggableIndex=X,re.originalEvent=ie,re.pullMode=R?R.lastPutMode:void 0;var ft=bi(bi({},Y),Jo.getEventProperties(u,c));for(var $e in ft)re[$e]=ft[$e];o&&o.dispatchEvent(re),we[De]&&we[De].call(c,re)}}var Lm=["evt"],ya=function(c,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u.evt,e=bm(u,Lm);Jo.pluginEvent.bind(hr)(c,o,bi({dragEl:St,parentEl:_n,ghostEl:pr,rootEl:fn,nextEl:G0,lastDownEl:Ll,cloneEl:hn,cloneHidden:h0,dragStarted:qo,putSortable:qn,activeSortable:hr.active,originalEvent:r,oldIndex:Ws,oldDraggableIndex:Qo,newIndex:$a,newDraggableIndex:d0,hideGhostForTarget:$2,unhideGhostForTarget:z2,cloneNowHidden:function(){h0=!0},cloneNowShown:function(){h0=!1},dispatchSortableEvent:function(I){_a({sortable:o,name:I,originalEvent:r})}},e))};function _a(g){Nm(bi({putSortable:qn,cloneEl:hn,targetEl:St,rootEl:fn,oldIndex:Ws,oldDraggableIndex:Qo,newIndex:$a,newDraggableIndex:d0},g))}var St,_n,pr,fn,G0,Ll,hn,h0,Ws,$a,Qo,d0,Ml,qn,Hs=!1,Ul=!1,Wl=[],K0,di,Ph,Nh,L2,M2,qo,Vs,ef,tf=!1,Hl=!1,Vl,da,Lh=[],Mh=!1,$l=[],zl=typeof document<"u",Xl=Th,U2=Yo||Yi?"cssFloat":"float",Mm=zl&&!D2&&!Th&&"draggable"in document.createElement("div"),W2=function(){if(!!zl){if(Yi)return!1;var g=document.createElement("x");return g.style.cssText="pointer-events:auto",g.style.pointerEvents==="auto"}}(),H2=function(c,o){var u=ur(c),r=parseInt(u.width)-parseInt(u.paddingLeft)-parseInt(u.paddingRight)-parseInt(u.borderLeftWidth)-parseInt(u.borderRightWidth),e=Ms(c,0,o),D=Ms(c,1,o),I=e&&ur(e),k=D&&ur(D),M=I&&parseInt(I.marginLeft)+parseInt(I.marginRight)+Rn(e).width,H=k&&parseInt(k.marginLeft)+parseInt(k.marginRight)+Rn(D).width;if(u.display==="flex")return u.flexDirection==="column"||u.flexDirection==="column-reverse"?"vertical":"horizontal";if(u.display==="grid")return u.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(e&&I.float&&I.float!=="none"){var X=I.float==="left"?"left":"right";return D&&(k.clear==="both"||k.clear===X)?"vertical":"horizontal"}return e&&(I.display==="block"||I.display==="flex"||I.display==="table"||I.display==="grid"||M>=r&&u[U2]==="none"||D&&u[U2]==="none"&&M+H>r)?"vertical":"horizontal"},Um=function(c,o,u){var r=u?c.left:c.top,e=u?c.right:c.bottom,D=u?c.width:c.height,I=u?o.left:o.top,k=u?o.right:o.bottom,M=u?o.width:o.height;return r===I||e===k||r+D/2===I+M/2},Wm=function(c,o){var u;return Wl.some(function(r){var e=r[ba].options.emptyInsertThreshold;if(!(!e||Ih(r))){var D=Rn(r),I=c>=D.left-e&&c<=D.right+e,k=o>=D.top-e&&o<=D.bottom+e;if(I&&k)return u=r}}),u},V2=function(c){function o(e,D){return function(I,k,M,H){var X=I.options.group.name&&k.options.group.name&&I.options.group.name===k.options.group.name;if(e==null&&(D||X))return!0;if(e==null||e===!1)return!1;if(D&&e==="clone")return e;if(typeof e=="function")return o(e(I,k,M,H),D)(I,k,M,H);var ie=(D?I:k).options.group.name;return e===!0||typeof e=="string"&&e===ie||e.join&&e.indexOf(ie)>-1}}var u={},r=c.group;(!r||Pl(r)!="object")&&(r={name:r}),u.name=r.name,u.checkPull=o(r.pull,!0),u.checkPut=o(r.put),u.revertClone=r.revertClone,c.group=u},$2=function(){!W2&&pr&&ur(pr,"display","none")},z2=function(){!W2&&pr&&ur(pr,"display","")};zl&&!D2&&document.addEventListener("click",function(g){if(Ul)return g.preventDefault(),g.stopPropagation&&g.stopPropagation(),g.stopImmediatePropagation&&g.stopImmediatePropagation(),Ul=!1,!1},!0);var Y0=function(c){if(St){c=c.touches?c.touches[0]:c;var o=Wm(c.clientX,c.clientY);if(o){var u={};for(var r in c)c.hasOwnProperty(r)&&(u[r]=c[r]);u.target=u.rootEl=o,u.preventDefault=void 0,u.stopPropagation=void 0,o[ba]._onDragOver(u)}}},Hm=function(c){St&&St.parentNode[ba]._isOutsideThisEl(c.target)};function hr(g,c){if(!(g&&g.nodeType&&g.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(g));this.el=g,this.options=c=Gi({},c),g[ba]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(g.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return H2(g,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(D,I){D.setData("Text",I.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:hr.supportPointer!==!1&&"PointerEvent"in window&&(!jo||Th),emptyInsertThreshold:5};Jo.initializePlugins(this,g,o);for(var u in o)!(u in c)&&(c[u]=o[u]);V2(c);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=c.forceFallback?!1:Mm,this.nativeDraggable&&(this.options.touchStartThreshold=1),c.supportPointer?Lr(g,"pointerdown",this._onTapStart):(Lr(g,"mousedown",this._onTapStart),Lr(g,"touchstart",this._onTapStart)),this.nativeDraggable&&(Lr(g,"dragover",this),Lr(g,"dragenter",this)),Wl.push(this.el),c.store&&c.store.get&&this.sort(c.store.get(this)||[]),Gi(this,Rm())}hr.prototype={constructor:hr,_isOutsideThisEl:function(c){!this.el.contains(c)&&c!==this.el&&(Vs=null)},_getDirection:function(c,o){return typeof this.options.direction=="function"?this.options.direction.call(this,c,o,St):this.options.direction},_onTapStart:function(c){if(!!c.cancelable){var o=this,u=this.el,r=this.options,e=r.preventOnFilter,D=c.type,I=c.touches&&c.touches[0]||c.pointerType&&c.pointerType==="touch"&&c,k=(I||c).target,M=c.target.shadowRoot&&(c.path&&c.path[0]||c.composedPath&&c.composedPath()[0])||k,H=r.filter;if(jm(u),!St&&!(/mousedown|pointerdown/.test(D)&&c.button!==0||r.disabled)&&!M.isContentEditable&&!(!this.nativeDraggable&&jo&&k&&k.tagName.toUpperCase()==="SELECT")&&(k=hi(k,r.draggable,u,!1),!(k&&k.animated)&&Ll!==k)){if(Ws=ti(k),Qo=ti(k,r.draggable),typeof H=="function"){if(H.call(this,c,k,this)){_a({sortable:o,rootEl:M,name:"filter",targetEl:k,toEl:u,fromEl:u}),ya("filter",o,{evt:c}),e&&c.preventDefault();return}}else if(H&&(H=H.split(",").some(function(X){if(X=hi(M,X.trim(),u,!1),X)return _a({sortable:o,rootEl:X,name:"filter",targetEl:k,fromEl:u,toEl:u}),ya("filter",o,{evt:c}),!0}),H)){e&&c.preventDefault();return}r.handle&&!hi(M,r.handle,u,!1)||this._prepareDragStart(c,I,k)}}},_prepareDragStart:function(c,o,u){var r=this,e=r.el,D=r.options,I=e.ownerDocument,k;if(u&&!St&&u.parentNode===e){var M=Rn(u);if(fn=e,St=u,_n=St.parentNode,G0=St.nextSibling,Ll=u,Ml=D.group,hr.dragged=St,K0={target:St,clientX:(o||c).clientX,clientY:(o||c).clientY},L2=K0.clientX-M.left,M2=K0.clientY-M.top,this._lastX=(o||c).clientX,this._lastY=(o||c).clientY,St.style["will-change"]="all",k=function(){if(ya("delayEnded",r,{evt:c}),hr.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!A2&&r.nativeDraggable&&(St.draggable=!0),r._triggerDragStart(c,o),_a({sortable:r,name:"choose",originalEvent:c}),Va(St,D.chosenClass,!0)},D.ignore.split(",").forEach(function(H){k2(St,H.trim(),Uh)}),Lr(I,"dragover",Y0),Lr(I,"mousemove",Y0),Lr(I,"touchmove",Y0),D.supportPointer?(Lr(I,"pointerup",r._onDrop),!this.nativeDraggable&&Lr(I,"pointercancel",r._onDrop)):(Lr(I,"mouseup",r._onDrop),Lr(I,"touchend",r._onDrop),Lr(I,"touchcancel",r._onDrop)),A2&&this.nativeDraggable&&(this.options.touchStartThreshold=4,St.draggable=!0),ya("delayStart",this,{evt:c}),D.delay&&(!D.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(Yo||Yi))){if(hr.eventCanceled){this._onDrop();return}D.supportPointer?(Lr(I,"pointerup",r._disableDelayedDrag),Lr(I,"pointercancel",r._disableDelayedDrag)):(Lr(I,"mouseup",r._disableDelayedDrag),Lr(I,"touchend",r._disableDelayedDrag),Lr(I,"touchcancel",r._disableDelayedDrag)),Lr(I,"mousemove",r._delayedDragTouchMoveHandler),Lr(I,"touchmove",r._delayedDragTouchMoveHandler),D.supportPointer&&Lr(I,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(k,D.delay)}else k()}},_delayedDragTouchMoveHandler:function(c){var o=c.touches?c.touches[0]:c;Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){St&&Uh(St),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var c=this.el.ownerDocument;Or(c,"mouseup",this._disableDelayedDrag),Or(c,"touchend",this._disableDelayedDrag),Or(c,"touchcancel",this._disableDelayedDrag),Or(c,"pointerup",this._disableDelayedDrag),Or(c,"pointercancel",this._disableDelayedDrag),Or(c,"mousemove",this._delayedDragTouchMoveHandler),Or(c,"touchmove",this._delayedDragTouchMoveHandler),Or(c,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(c,o){o=o||c.pointerType=="touch"&&c,!this.nativeDraggable||o?this.options.supportPointer?Lr(document,"pointermove",this._onTouchMove):o?Lr(document,"touchmove",this._onTouchMove):Lr(document,"mousemove",this._onTouchMove):(Lr(St,"dragend",this),Lr(fn,"dragstart",this._onDragStart));try{document.selection?Kl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(c,o){if(Hs=!1,fn&&St){ya("dragStarted",this,{evt:o}),this.nativeDraggable&&Lr(document,"dragover",Hm);var u=this.options;!c&&Va(St,u.dragClass,!1),Va(St,u.ghostClass,!0),hr.active=this,c&&this._appendGhost(),_a({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(di){this._lastX=di.clientX,this._lastY=di.clientY,$2();for(var c=document.elementFromPoint(di.clientX,di.clientY),o=c;c&&c.shadowRoot&&(c=c.shadowRoot.elementFromPoint(di.clientX,di.clientY),c!==o);)o=c;if(St.parentNode[ba]._isOutsideThisEl(c),o)do{if(o[ba]){var u=void 0;if(u=o[ba]._onDragOver({clientX:di.clientX,clientY:di.clientY,target:c,rootEl:o}),u&&!this.options.dragoverBubble)break}c=o}while(o=b2(o));z2()}},_onTouchMove:function(c){if(K0){var o=this.options,u=o.fallbackTolerance,r=o.fallbackOffset,e=c.touches?c.touches[0]:c,D=pr&&Ls(pr,!0),I=pr&&D&&D.a,k=pr&&D&&D.d,M=Xl&&da&&I2(da),H=(e.clientX-K0.clientX+r.x)/(I||1)+(M?M[0]-Lh[0]:0)/(I||1),X=(e.clientY-K0.clientY+r.y)/(k||1)+(M?M[1]-Lh[1]:0)/(k||1);if(!hr.active&&!Hs){if(u&&Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))<u)return;this._onDragStart(c,!0)}if(pr){D?(D.e+=H-(Ph||0),D.f+=X-(Nh||0)):D={a:1,b:0,c:0,d:1,e:H,f:X};var ie="matrix(".concat(D.a,",").concat(D.b,",").concat(D.c,",").concat(D.d,",").concat(D.e,",").concat(D.f,")");ur(pr,"webkitTransform",ie),ur(pr,"mozTransform",ie),ur(pr,"msTransform",ie),ur(pr,"transform",ie),Ph=H,Nh=X,di=e}c.cancelable&&c.preventDefault()}},_appendGhost:function(){if(!pr){var c=this.options.fallbackOnBody?document.body:fn,o=Rn(St,!0,Xl,!0,c),u=this.options;if(Xl){for(da=c;ur(da,"position")==="static"&&ur(da,"transform")==="none"&&da!==document;)da=da.parentNode;da!==document.body&&da!==document.documentElement?(da===document&&(da=yi()),o.top+=da.scrollTop,o.left+=da.scrollLeft):da=yi(),Lh=I2(da)}pr=St.cloneNode(!0),Va(pr,u.ghostClass,!1),Va(pr,u.fallbackClass,!0),Va(pr,u.dragClass,!0),ur(pr,"transition",""),ur(pr,"transform",""),ur(pr,"box-sizing","border-box"),ur(pr,"margin",0),ur(pr,"top",o.top),ur(pr,"left",o.left),ur(pr,"width",o.width),ur(pr,"height",o.height),ur(pr,"opacity","0.8"),ur(pr,"position",Xl?"absolute":"fixed"),ur(pr,"zIndex","100000"),ur(pr,"pointerEvents","none"),hr.ghost=pr,c.appendChild(pr),ur(pr,"transform-origin",L2/parseInt(pr.style.width)*100+"% "+M2/parseInt(pr.style.height)*100+"%")}},_onDragStart:function(c,o){var u=this,r=c.dataTransfer,e=u.options;if(ya("dragStart",this,{evt:c}),hr.eventCanceled){this._onDrop();return}ya("setupClone",this),hr.eventCanceled||(hn=P2(St),hn.removeAttribute("id"),hn.draggable=!1,hn.style["will-change"]="",this._hideClone(),Va(hn,this.options.chosenClass,!1),hr.clone=hn),u.cloneId=Kl(function(){ya("clone",u),!hr.eventCanceled&&(u.options.removeCloneOnHide||fn.insertBefore(hn,St),u._hideClone(),_a({sortable:u,name:"clone"}))}),!o&&Va(St,e.dragClass,!0),o?(Ul=!0,u._loopId=setInterval(u._emulateDragOver,50)):(Or(document,"mouseup",u._onDrop),Or(document,"touchend",u._onDrop),Or(document,"touchcancel",u._onDrop),r&&(r.effectAllowed="move",e.setData&&e.setData.call(u,r,St)),Lr(document,"drop",u),ur(St,"transform","translateZ(0)")),Hs=!0,u._dragStartId=Kl(u._dragStarted.bind(u,o,c)),Lr(document,"selectstart",u),qo=!0,window.getSelection().removeAllRanges(),jo&&ur(document.body,"user-select","none")},_onDragOver:function(c){var o=this.el,u=c.target,r,e,D,I=this.options,k=I.group,M=hr.active,H=Ml===k,X=I.sort,ie=qn||M,R,Y=this,re=!1;if(Mh)return;function we(Be,Me){ya(Be,Y,bi({evt:c,isOwner:H,axis:R?"vertical":"horizontal",revert:D,dragRect:r,targetRect:e,canSort:X,fromSortable:ie,target:u,completed:ft,onMove:function(Q,be){return Gl(fn,o,St,r,Q,Rn(Q),c,be)},changed:$e},Me))}function De(){we("dragOverAnimationCapture"),Y.captureAnimationState(),Y!==ie&&ie.captureAnimationState()}function ft(Be){return we("dragOverCompleted",{insertion:Be}),Be&&(H?M._hideClone():M._showClone(Y),Y!==ie&&(Va(St,qn?qn.options.ghostClass:M.options.ghostClass,!1),Va(St,I.ghostClass,!0)),qn!==Y&&Y!==hr.active?qn=Y:Y===hr.active&&qn&&(qn=null),ie===Y&&(Y._ignoreWhileAnimating=u),Y.animateAll(function(){we("dragOverAnimationComplete"),Y._ignoreWhileAnimating=null}),Y!==ie&&(ie.animateAll(),ie._ignoreWhileAnimating=null)),(u===St&&!St.animated||u===o&&!u.animated)&&(Vs=null),!I.dragoverBubble&&!c.rootEl&&u!==document&&(St.parentNode[ba]._isOutsideThisEl(c.target),!Be&&Y0(c)),!I.dragoverBubble&&c.stopPropagation&&c.stopPropagation(),re=!0}function $e(){$a=ti(St),d0=ti(St,I.draggable),_a({sortable:Y,name:"change",toEl:o,newIndex:$a,newDraggableIndex:d0,originalEvent:c})}if(c.preventDefault!==void 0&&c.cancelable&&c.preventDefault(),u=hi(u,I.draggable,o,!0),we("dragOver"),hr.eventCanceled)return re;if(St.contains(c.target)||u.animated&&u.animatingX&&u.animatingY||Y._ignoreWhileAnimating===u)return ft(!1);if(Ul=!1,M&&!I.disabled&&(H?X||(D=_n!==fn):qn===this||(this.lastPutMode=Ml.checkPull(this,M,St,c))&&k.checkPut(this,M,St,c))){if(R=this._getDirection(c,u)==="vertical",r=Rn(St),we("dragOverValid"),hr.eventCanceled)return re;if(D)return _n=fn,De(),this._hideClone(),we("revert"),hr.eventCanceled||(G0?fn.insertBefore(St,G0):fn.appendChild(St)),ft(!0);var Et=Ih(o,I.draggable);if(!Et||Xm(c,R,this)&&!Et.animated){if(Et===St)return ft(!1);if(Et&&o===c.target&&(u=Et),u&&(e=Rn(u)),Gl(fn,o,St,r,u,e,c,!!u)!==!1)return De(),Et&&Et.nextSibling?o.insertBefore(St,Et.nextSibling):o.appendChild(St),_n=o,$e(),ft(!0)}else if(Et&&zm(c,R,this)){var Qe=Ms(o,0,I,!0);if(Qe===St)return ft(!1);if(u=Qe,e=Rn(u),Gl(fn,o,St,r,u,e,c,!1)!==!1)return De(),o.insertBefore(St,Qe),_n=o,$e(),ft(!0)}else if(u.parentNode===o){e=Rn(u);var Xe=0,wt,vr=St.parentNode!==o,Gt=!Um(St.animated&&St.toRect||r,u.animated&&u.toRect||e,R),Tt=R?"top":"left",gt=T2(u,"top","top")||T2(St,"top","top"),pt=gt?gt.scrollTop:void 0;Vs!==u&&(wt=e[Tt],tf=!1,Hl=!Gt&&I.invertSwap||vr),Xe=Gm(c,u,e,R,Gt?1:I.swapThreshold,I.invertedSwapThreshold==null?I.swapThreshold:I.invertedSwapThreshold,Hl,Vs===u);var Ut;if(Xe!==0){var ne=ti(St);do ne-=Xe,Ut=_n.children[ne];while(Ut&&(ur(Ut,"display")==="none"||Ut===pr))}if(Xe===0||Ut===u)return ft(!1);Vs=u,ef=Xe;var q=u.nextElementSibling,xe=!1;xe=Xe===1;var ee=Gl(fn,o,St,r,u,e,c,xe);if(ee!==!1)return(ee===1||ee===-1)&&(xe=ee===1),Mh=!0,setTimeout($m,30),De(),xe&&!q?o.appendChild(St):u.parentNode.insertBefore(St,xe?q:u),gt&&O2(gt,0,pt-gt.scrollTop),_n=St.parentNode,wt!==void 0&&!Hl&&(Vl=Math.abs(wt-Rn(u)[Tt])),$e(),ft(!0)}if(o.contains(St))return ft(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Or(document,"mousemove",this._onTouchMove),Or(document,"touchmove",this._onTouchMove),Or(document,"pointermove",this._onTouchMove),Or(document,"dragover",Y0),Or(document,"mousemove",Y0),Or(document,"touchmove",Y0)},_offUpEvents:function(){var c=this.el.ownerDocument;Or(c,"mouseup",this._onDrop),Or(c,"touchend",this._onDrop),Or(c,"pointerup",this._onDrop),Or(c,"pointercancel",this._onDrop),Or(c,"touchcancel",this._onDrop),Or(document,"selectstart",this)},_onDrop:function(c){var o=this.el,u=this.options;if($a=ti(St),d0=ti(St,u.draggable),ya("drop",this,{evt:c}),_n=St&&St.parentNode,$a=ti(St),d0=ti(St,u.draggable),hr.eventCanceled){this._nulling();return}Hs=!1,Hl=!1,tf=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Wh(this.cloneId),Wh(this._dragStartId),this.nativeDraggable&&(Or(document,"drop",this),Or(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),jo&&ur(document.body,"user-select",""),ur(St,"transform",""),c&&(qo&&(c.cancelable&&c.preventDefault(),!u.dropBubble&&c.stopPropagation()),pr&&pr.parentNode&&pr.parentNode.removeChild(pr),(fn===_n||qn&&qn.lastPutMode!=="clone")&&hn&&hn.parentNode&&hn.parentNode.removeChild(hn),St&&(this.nativeDraggable&&Or(St,"dragend",this),Uh(St),St.style["will-change"]="",qo&&!Hs&&Va(St,qn?qn.options.ghostClass:this.options.ghostClass,!1),Va(St,this.options.chosenClass,!1),_a({sortable:this,name:"unchoose",toEl:_n,newIndex:null,newDraggableIndex:null,originalEvent:c}),fn!==_n?($a>=0&&(_a({rootEl:_n,name:"add",toEl:_n,fromEl:fn,originalEvent:c}),_a({sortable:this,name:"remove",toEl:_n,originalEvent:c}),_a({rootEl:_n,name:"sort",toEl:_n,fromEl:fn,originalEvent:c}),_a({sortable:this,name:"sort",toEl:_n,originalEvent:c})),qn&&qn.save()):$a!==Ws&&$a>=0&&(_a({sortable:this,name:"update",toEl:_n,originalEvent:c}),_a({sortable:this,name:"sort",toEl:_n,originalEvent:c})),hr.active&&(($a==null||$a===-1)&&($a=Ws,d0=Qo),_a({sortable:this,name:"end",toEl:_n,originalEvent:c}),this.save()))),this._nulling()},_nulling:function(){ya("nulling",this),fn=St=_n=pr=G0=hn=Ll=h0=K0=di=qo=$a=d0=Ws=Qo=Vs=ef=qn=Ml=hr.dragged=hr.ghost=hr.clone=hr.active=null,$l.forEach(function(c){c.checked=!0}),$l.length=Ph=Nh=0},handleEvent:function(c){switch(c.type){case"drop":case"dragend":this._onDrop(c);break;case"dragenter":case"dragover":St&&(this._onDragOver(c),Vm(c));break;case"selectstart":c.preventDefault();break}},toArray:function(){for(var c=[],o,u=this.el.children,r=0,e=u.length,D=this.options;r<e;r++)o=u[r],hi(o,D.draggable,this.el,!1)&&c.push(o.getAttribute(D.dataIdAttr)||Ym(o));return c},sort:function(c,o){var u={},r=this.el;this.toArray().forEach(function(e,D){var I=r.children[D];hi(I,this.options.draggable,r,!1)&&(u[e]=I)},this),o&&this.captureAnimationState(),c.forEach(function(e){u[e]&&(r.removeChild(u[e]),r.appendChild(u[e]))}),o&&this.animateAll()},save:function(){var c=this.options.store;c&&c.set&&c.set(this)},closest:function(c,o){return hi(c,o||this.options.draggable,this.el,!1)},option:function(c,o){var u=this.options;if(o===void 0)return u[c];var r=Jo.modifyOption(this,c,o);typeof r<"u"?u[c]=r:u[c]=o,c==="group"&&V2(u)},destroy:function(){ya("destroy",this);var c=this.el;c[ba]=null,Or(c,"mousedown",this._onTapStart),Or(c,"touchstart",this._onTapStart),Or(c,"pointerdown",this._onTapStart),this.nativeDraggable&&(Or(c,"dragover",this),Or(c,"dragenter",this)),Array.prototype.forEach.call(c.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Wl.splice(Wl.indexOf(this.el),1),this.el=c=null},_hideClone:function(){if(!h0){if(ya("hideClone",this),hr.eventCanceled)return;ur(hn,"display","none"),this.options.removeCloneOnHide&&hn.parentNode&&hn.parentNode.removeChild(hn),h0=!0}},_showClone:function(c){if(c.lastPutMode!=="clone"){this._hideClone();return}if(h0){if(ya("showClone",this),hr.eventCanceled)return;St.parentNode==fn&&!this.options.group.revertClone?fn.insertBefore(hn,St):G0?fn.insertBefore(hn,G0):fn.appendChild(hn),this.options.group.revertClone&&this.animate(St,hn),ur(hn,"display",""),h0=!1}}};function Vm(g){g.dataTransfer&&(g.dataTransfer.dropEffect="move"),g.cancelable&&g.preventDefault()}function Gl(g,c,o,u,r,e,D,I){var k,M=g[ba],H=M.options.onMove,X;return window.CustomEvent&&!Yi&&!Yo?k=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(k=document.createEvent("Event"),k.initEvent("move",!0,!0)),k.to=c,k.from=g,k.dragged=o,k.draggedRect=u,k.related=r||c,k.relatedRect=e||Rn(c),k.willInsertAfter=I,k.originalEvent=D,g.dispatchEvent(k),H&&(X=H.call(M,k,D)),X}function Uh(g){g.draggable=!1}function $m(){Mh=!1}function zm(g,c,o){var u=Rn(Ms(o.el,0,o.options,!0)),r=N2(o.el,o.options,pr),e=10;return c?g.clientX<r.left-e||g.clientY<u.top&&g.clientX<u.right:g.clientY<r.top-e||g.clientY<u.bottom&&g.clientX<u.left}function Xm(g,c,o){var u=Rn(Ih(o.el,o.options.draggable)),r=N2(o.el,o.options,pr),e=10;return c?g.clientX>r.right+e||g.clientY>u.bottom&&g.clientX>u.left:g.clientY>r.bottom+e||g.clientX>u.right&&g.clientY>u.top}function Gm(g,c,o,u,r,e,D,I){var k=u?g.clientY:g.clientX,M=u?o.height:o.width,H=u?o.top:o.left,X=u?o.bottom:o.right,ie=!1;if(!D){if(I&&Vl<M*r){if(!tf&&(ef===1?k>H+M*e/2:k<X-M*e/2)&&(tf=!0),tf)ie=!0;else if(ef===1?k<H+Vl:k>X-Vl)return-ef}else if(k>H+M*(1-r)/2&&k<X-M*(1-r)/2)return Km(c)}return ie=ie||D,ie&&(k<H+M*e/2||k>X-M*e/2)?k>H+M/2?1:-1:0}function Km(g){return ti(St)<ti(g)?1:-1}function Ym(g){for(var c=g.tagName+g.className+g.src+g.href+g.textContent,o=c.length,u=0;o--;)u+=c.charCodeAt(o);return u.toString(36)}function jm(g){$l.length=0;for(var c=g.getElementsByTagName("input"),o=c.length;o--;){var u=c[o];u.checked&&$l.push(u)}}function Kl(g){return setTimeout(g,0)}function Wh(g){return clearTimeout(g)}zl&&Lr(document,"touchmove",function(g){(hr.active||Hs)&&g.cancelable&&g.preventDefault()}),hr.utils={on:Lr,off:Or,css:ur,find:k2,is:function(c,o){return!!hi(c,o,c,!1)},extend:Tm,throttle:R2,closest:hi,toggleClass:Va,clone:P2,index:ti,nextTick:Kl,cancelNextTick:Wh,detectDirection:H2,getChild:Ms,expando:ba},hr.get=function(g){return g[ba]},hr.mount=function(){for(var g=arguments.length,c=new Array(g),o=0;o<g;o++)c[o]=arguments[o];c[0].constructor===Array&&(c=c[0]),c.forEach(function(u){if(!u.prototype||!u.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(u));u.utils&&(hr.utils=bi(bi({},hr.utils),u.utils)),Jo.mount(u)})},hr.create=function(g,c){return new hr(g,c)},hr.version=ym;var On=[],rf,Hh,Vh=!1,$h,zh,Yl,nf;function Zm(){function g(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var c in this)c.charAt(0)==="_"&&typeof this[c]=="function"&&(this[c]=this[c].bind(this))}return g.prototype={dragStarted:function(o){var u=o.originalEvent;this.sortable.nativeDraggable?Lr(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Lr(document,"pointermove",this._handleFallbackAutoScroll):u.touches?Lr(document,"touchmove",this._handleFallbackAutoScroll):Lr(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var u=o.originalEvent;!this.options.dragOverBubble&&!u.rootEl&&this._handleAutoScroll(u)},drop:function(){this.sortable.nativeDraggable?Or(document,"dragover",this._handleAutoScroll):(Or(document,"pointermove",this._handleFallbackAutoScroll),Or(document,"touchmove",this._handleFallbackAutoScroll),Or(document,"mousemove",this._handleFallbackAutoScroll)),X2(),jl(),Im()},nulling:function(){Yl=Hh=rf=Vh=nf=$h=zh=null,On.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,u){var r=this,e=(o.touches?o.touches[0]:o).clientX,D=(o.touches?o.touches[0]:o).clientY,I=document.elementFromPoint(e,D);if(Yl=o,u||this.options.forceAutoScrollFallback||Yo||Yi||jo){Xh(o,this.options,I,u);var k=u0(I,!0);Vh&&(!nf||e!==$h||D!==zh)&&(nf&&X2(),nf=setInterval(function(){var M=u0(document.elementFromPoint(e,D),!0);M!==k&&(k=M,jl()),Xh(o,r.options,M,u)},10),$h=e,zh=D)}else{if(!this.options.bubbleScroll||u0(I,!0)===yi()){jl();return}Xh(o,this.options,u0(I,!1),!1)}}},Gi(g,{pluginName:"scroll",initializeByDefault:!0})}function jl(){On.forEach(function(g){clearInterval(g.pid)}),On=[]}function X2(){clearInterval(nf)}var Xh=R2(function(g,c,o,u){if(!!c.scroll){var r=(g.touches?g.touches[0]:g).clientX,e=(g.touches?g.touches[0]:g).clientY,D=c.scrollSensitivity,I=c.scrollSpeed,k=yi(),M=!1,H;Hh!==o&&(Hh=o,jl(),rf=c.scroll,H=c.scrollFn,rf===!0&&(rf=u0(o,!0)));var X=0,ie=rf;do{var R=ie,Y=Rn(R),re=Y.top,we=Y.bottom,De=Y.left,ft=Y.right,$e=Y.width,Et=Y.height,Qe=void 0,Xe=void 0,wt=R.scrollWidth,vr=R.scrollHeight,Gt=ur(R),Tt=R.scrollLeft,gt=R.scrollTop;R===k?(Qe=$e<wt&&(Gt.overflowX==="auto"||Gt.overflowX==="scroll"||Gt.overflowX==="visible"),Xe=Et<vr&&(Gt.overflowY==="auto"||Gt.overflowY==="scroll"||Gt.overflowY==="visible")):(Qe=$e<wt&&(Gt.overflowX==="auto"||Gt.overflowX==="scroll"),Xe=Et<vr&&(Gt.overflowY==="auto"||Gt.overflowY==="scroll"));var pt=Qe&&(Math.abs(ft-r)<=D&&Tt+$e<wt)-(Math.abs(De-r)<=D&&!!Tt),Ut=Xe&&(Math.abs(we-e)<=D&&gt+Et<vr)-(Math.abs(re-e)<=D&&!!gt);if(!On[X])for(var ne=0;ne<=X;ne++)On[ne]||(On[ne]={});(On[X].vx!=pt||On[X].vy!=Ut||On[X].el!==R)&&(On[X].el=R,On[X].vx=pt,On[X].vy=Ut,clearInterval(On[X].pid),(pt!=0||Ut!=0)&&(M=!0,On[X].pid=setInterval(function(){u&&this.layer===0&&hr.active._onTouchMove(Yl);var q=On[this.layer].vy?On[this.layer].vy*I:0,xe=On[this.layer].vx?On[this.layer].vx*I:0;typeof H=="function"&&H.call(hr.dragged.parentNode[ba],xe,q,g,Yl,On[this.layer].el)!=="continue"||O2(On[this.layer].el,xe,q)}.bind({layer:X}),24))),X++}while(c.bubbleScroll&&ie!==k&&(ie=u0(ie,!1)));Vh=M}},30),G2=function(c){var o=c.originalEvent,u=c.putSortable,r=c.dragEl,e=c.activeSortable,D=c.dispatchSortableEvent,I=c.hideGhostForTarget,k=c.unhideGhostForTarget;if(!!o){var M=u||e;I();var H=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,X=document.elementFromPoint(H.clientX,H.clientY);k(),M&&!M.el.contains(X)&&(D("spill"),this.onSpill({dragEl:r,putSortable:u}))}};function Gh(){}Gh.prototype={startIndex:null,dragStart:function(c){var o=c.oldDraggableIndex;this.startIndex=o},onSpill:function(c){var o=c.dragEl,u=c.putSortable;this.sortable.captureAnimationState(),u&&u.captureAnimationState();var r=Ms(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(o,r):this.sortable.el.appendChild(o),this.sortable.animateAll(),u&&u.animateAll()},drop:G2},Gi(Gh,{pluginName:"revertOnSpill"});function Kh(){}Kh.prototype={onSpill:function(c){var o=c.dragEl,u=c.putSortable,r=u||this.sortable;r.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),r.animateAll()},drop:G2},Gi(Kh,{pluginName:"removeOnSpill"}),hr.mount(new Zm),hr.mount(Kh,Gh);const SF="";function Zn(g,c,o,u,r,e,D,I){var k=typeof g=="function"?g.options:g;c&&(k.render=c,k.staticRenderFns=o,k._compiled=!0),u&&(k.functional=!0),e&&(k._scopeId="data-v-"+e);var M;if(D?(M=function(ie){ie=ie||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!ie&&typeof __VUE_SSR_CONTEXT__<"u"&&(ie=__VUE_SSR_CONTEXT__),r&&r.call(this,ie),ie&&ie._registeredComponents&&ie._registeredComponents.add(D)},k._ssrRegister=M):r&&(M=I?function(){r.call(this,(k.functional?this.parent:this).$root.$options.shadowRoot)}:r),M)if(k.functional){k._injectStyles=M;var H=k.render;k.render=function(R,Y){return M.call(Y),H(R,Y)}}else{var X=k.beforeCreate;k.beforeCreate=X?[].concat(X,M):[M]}return{exports:g,options:k}}const Jm={name:"TableColumnsManager",props:{visible:{type:Boolean,required:!1},tableId:{type:String,required:!0},serverColumns:{type:Array,default:()=>[]},localColumns:{type:Array,default:()=>[]}},data:()=>({isAllSelected:!1,selectedColumnLabels:[],isIndeterminate:!0,visibleColumns:[]}),computed:{blacklistColumns(){return this.localColumns.filter(g=>g.fixed==="right"||g.label==="\u64CD\u4F5C")},operableColumns(){return this.localColumns.filter(g=>!this.blacklistColumns.includes(g))},localVisible:{get(){return this.visible&&(this.selectedColumnLabels=this.serverColumns.filter(g=>{var c;return((c=this.localColumns)==null?void 0:c.some(o=>o.label===g.label))&&g.label!=="\u64CD\u4F5C"}).map(g=>g.label)),this.visible},set(g){this.$emit("update:visible",g)}}},watch:{localVisible:{handler(g){g&&this.$nextTick(()=>{this.initSortable()})},immediate:!0},selectedColumnLabels:{handler(g){console.log("selectedColumnLabels changed:",g),this.visibleColumns=g.filter(Boolean).map(u=>this.operableColumns.find(r=>r.label===u)).filter(Boolean);const c=this.operableColumns.length,o=g.length;this.isAllSelected=o===c&&c!==0,this.isIndeterminate=o>0&&o<c},immediate:!0}},methods:{handleTagClose(g){this.selectedColumnLabels=this.selectedColumnLabels.filter(c=>c!==g.label)},handleCheckAllChange(g){this.selectedColumnLabels=g?this.operableColumns.map(c=>c.label):[],this.isIndeterminate=!1},closeDialog(){this.localVisible=!1},saveColumns(){const g=[...this.visibleColumns,...this.blacklistColumns];this.$emit("columns-updated",g),this.closeDialog()},initSortable(){const g=this.$refs.tagsContainer;this.sortable=hr.create(g,{animation:150,ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",onEnd:({oldIndex:c,newIndex:o})=>{const u=[...this.visibleColumns],[r]=u.splice(c,1);u.splice(o,0,r),this.selectedColumnLabels=u.map(e=>e.label)}})}}};var Qm=function(){var c=this,o=c._self._c;return o("el-dialog",{staticClass:"table-columns-manager",attrs:{visible:c.localVisible,title:"\u8868\u5934\u8BBE\u7F6E",width:"60%","modal-append-to-body":!1,"destroy-on-close":""},on:{"update:visible":function(u){c.localVisible=u}}},[o("span",[c._v("\u663E\u793A\u5217")]),o("hr"),o("div",{ref:"tagsContainer",staticClass:"tags-wrapper"},[c._l(c.visibleColumns,function(u){return[u.label?o("el-tag",{key:u.label,staticClass:"draggable-tag",attrs:{closable:""},on:{close:function(r){return c.handleTagClose(u)}}},[c._v(" "+c._s(u.label)+" ")]):c._e()]})],2),o("span",[c._v("\u5168\u90E8\u5217")]),o("hr"),o("el-checkbox",{attrs:{indeterminate:c.isIndeterminate},on:{change:c.handleCheckAllChange},model:{value:c.isAllSelected,callback:function(u){c.isAllSelected=u},expression:"isAllSelected"}},[c._v("\u5168\u9009")]),o("el-checkbox-group",{model:{value:c.selectedColumnLabels,callback:function(u){c.selectedColumnLabels=u},expression:"selectedColumnLabels"}},[c._l(c.operableColumns,function(u,r){return[u.label?o("el-checkbox",{key:u.label,attrs:{label:u.label}},[c._v(c._s(u.label))]):c._e()]})],2),o("div",{attrs:{slot:"footer"},slot:"footer"},[o("el-button",{attrs:{type:"primary"},on:{click:c.saveColumns}},[c._v("\u4FDD\u5B58\u914D\u7F6E")]),o("el-button",{on:{click:c.closeDialog}},[c._v("\u53D6\u6D88")])],1)],1)},qm=[],ev=Zn(Jm,Qm,qm,!1,null,null,null,null);const tv=ev.exports;var af={exports:{}};/**
12
+ */function S2(g,c){var o=Object.keys(g);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(g);c&&(u=u.filter(function(r){return Object.getOwnPropertyDescriptor(g,r).enumerable})),o.push.apply(o,u)}return o}function bi(g){for(var c=1;c<arguments.length;c++){var o=arguments[c]!=null?arguments[c]:{};c%2?S2(Object(o),!0).forEach(function(u){Dm(g,u,o[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(o)):S2(Object(o)).forEach(function(u){Object.defineProperty(g,u,Object.getOwnPropertyDescriptor(o,u))})}return g}function Pl(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pl=function(c){return typeof c}:Pl=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},Pl(g)}function Dm(g,c,o){return c in g?Object.defineProperty(g,c,{value:o,enumerable:!0,configurable:!0,writable:!0}):g[c]=o,g}function Gi(){return Gi=Object.assign||function(g){for(var c=1;c<arguments.length;c++){var o=arguments[c];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(g[u]=o[u])}return g},Gi.apply(this,arguments)}function Bm(g,c){if(g==null)return{};var o={},u=Object.keys(g),r,e;for(e=0;e<u.length;e++)r=u[e],!(c.indexOf(r)>=0)&&(o[r]=g[r]);return o}function bm(g,c){if(g==null)return{};var o=Bm(g,c),u,r;if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(g);for(r=0;r<e.length;r++)u=e[r],!(c.indexOf(u)>=0)&&(!Object.prototype.propertyIsEnumerable.call(g,u)||(o[u]=g[u]))}return o}var ym="1.15.6";function Ki(g){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(g)}var Yi=Ki(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Yo=Ki(/Edge/i),A2=Ki(/firefox/i),jo=Ki(/safari/i)&&!Ki(/chrome/i)&&!Ki(/android/i),Th=Ki(/iP(ad|od|hone)/i),D2=Ki(/chrome/i)&&Ki(/android/i),B2={capture:!1,passive:!1};function Lr(g,c,o){g.addEventListener(c,o,!Yi&&B2)}function Or(g,c,o){g.removeEventListener(c,o,!Yi&&B2)}function Nl(g,c){if(!!c){if(c[0]===">"&&(c=c.substring(1)),g)try{if(g.matches)return g.matches(c);if(g.msMatchesSelector)return g.msMatchesSelector(c);if(g.webkitMatchesSelector)return g.webkitMatchesSelector(c)}catch{return!1}return!1}}function b2(g){return g.host&&g!==document&&g.host.nodeType?g.host:g.parentNode}function hi(g,c,o,u){if(g){o=o||document;do{if(c!=null&&(c[0]===">"?g.parentNode===o&&Nl(g,c):Nl(g,c))||u&&g===o)return g;if(g===o)break}while(g=b2(g))}return null}var y2=/\s+/g;function Va(g,c,o){if(g&&c)if(g.classList)g.classList[o?"add":"remove"](c);else{var u=(" "+g.className+" ").replace(y2," ").replace(" "+c+" "," ");g.className=(u+(o?" "+c:"")).replace(y2," ")}}function ur(g,c,o){var u=g&&g.style;if(u){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(g,""):g.currentStyle&&(o=g.currentStyle),c===void 0?o:o[c];!(c in u)&&c.indexOf("webkit")===-1&&(c="-webkit-"+c),u[c]=o+(typeof o=="string"?"":"px")}}function Ls(g,c){var o="";if(typeof g=="string")o=g;else do{var u=ur(g,"transform");u&&u!=="none"&&(o=u+" "+o)}while(!c&&(g=g.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(o)}function k2(g,c,o){if(g){var u=g.getElementsByTagName(c),r=0,e=u.length;if(o)for(;r<e;r++)o(u[r],r);return u}return[]}function yi(){var g=document.scrollingElement;return g||document.documentElement}function Rn(g,c,o,u,r){if(!(!g.getBoundingClientRect&&g!==window)){var e,D,I,k,M,H,X;if(g!==window&&g.parentNode&&g!==yi()?(e=g.getBoundingClientRect(),D=e.top,I=e.left,k=e.bottom,M=e.right,H=e.height,X=e.width):(D=0,I=0,k=window.innerHeight,M=window.innerWidth,H=window.innerHeight,X=window.innerWidth),(c||o)&&g!==window&&(r=r||g.parentNode,!Yi))do if(r&&r.getBoundingClientRect&&(ur(r,"transform")!=="none"||o&&ur(r,"position")!=="static")){var ie=r.getBoundingClientRect();D-=ie.top+parseInt(ur(r,"border-top-width")),I-=ie.left+parseInt(ur(r,"border-left-width")),k=D+e.height,M=I+e.width;break}while(r=r.parentNode);if(u&&g!==window){var R=Ls(r||g),Y=R&&R.a,re=R&&R.d;R&&(D/=re,I/=Y,X/=Y,H/=re,k=D+H,M=I+X)}return{top:D,left:I,bottom:k,right:M,width:X,height:H}}}function T2(g,c,o){for(var u=u0(g,!0),r=Rn(g)[c];u;){var e=Rn(u)[o],D=void 0;if(o==="top"||o==="left"?D=r>=e:D=r<=e,!D)return u;if(u===yi())break;u=u0(u,!1)}return!1}function Ms(g,c,o,u){for(var r=0,e=0,D=g.children;e<D.length;){if(D[e].style.display!=="none"&&D[e]!==hr.ghost&&(u||D[e]!==hr.dragged)&&hi(D[e],o.draggable,g,!1)){if(r===c)return D[e];r++}e++}return null}function Ih(g,c){for(var o=g.lastElementChild;o&&(o===hr.ghost||ur(o,"display")==="none"||c&&!Nl(o,c));)o=o.previousElementSibling;return o||null}function ti(g,c){var o=0;if(!g||!g.parentNode)return-1;for(;g=g.previousElementSibling;)g.nodeName.toUpperCase()!=="TEMPLATE"&&g!==hr.clone&&(!c||Nl(g,c))&&o++;return o}function I2(g){var c=0,o=0,u=yi();if(g)do{var r=Ls(g),e=r.a,D=r.d;c+=g.scrollLeft*e,o+=g.scrollTop*D}while(g!==u&&(g=g.parentNode));return[c,o]}function km(g,c){for(var o in g)if(!!g.hasOwnProperty(o)){for(var u in c)if(c.hasOwnProperty(u)&&c[u]===g[o][u])return Number(o)}return-1}function u0(g,c){if(!g||!g.getBoundingClientRect)return yi();var o=g,u=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var r=ur(o);if(o.clientWidth<o.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return yi();if(u||c)return o;u=!0}}while(o=o.parentNode);return yi()}function Tm(g,c){if(g&&c)for(var o in c)c.hasOwnProperty(o)&&(g[o]=c[o]);return g}function Rh(g,c){return Math.round(g.top)===Math.round(c.top)&&Math.round(g.left)===Math.round(c.left)&&Math.round(g.height)===Math.round(c.height)&&Math.round(g.width)===Math.round(c.width)}var Zo;function R2(g,c){return function(){if(!Zo){var o=arguments,u=this;o.length===1?g.call(u,o[0]):g.apply(u,o),Zo=setTimeout(function(){Zo=void 0},c)}}}function Im(){clearTimeout(Zo),Zo=void 0}function O2(g,c,o){g.scrollLeft+=c,g.scrollTop+=o}function P2(g){var c=window.Polymer,o=window.jQuery||window.Zepto;return c&&c.dom?c.dom(g).cloneNode(!0):o?o(g).clone(!0)[0]:g.cloneNode(!0)}function N2(g,c,o){var u={};return Array.from(g.children).forEach(function(r){var e,D,I,k;if(!(!hi(r,c.draggable,g,!1)||r.animated||r===o)){var M=Rn(r);u.left=Math.min((e=u.left)!==null&&e!==void 0?e:1/0,M.left),u.top=Math.min((D=u.top)!==null&&D!==void 0?D:1/0,M.top),u.right=Math.max((I=u.right)!==null&&I!==void 0?I:-1/0,M.right),u.bottom=Math.max((k=u.bottom)!==null&&k!==void 0?k:-1/0,M.bottom)}}),u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}var ba="Sortable"+new Date().getTime();function Rm(){var g=[],c;return{captureAnimationState:function(){if(g=[],!!this.options.animation){var u=[].slice.call(this.el.children);u.forEach(function(r){if(!(ur(r,"display")==="none"||r===hr.ghost)){g.push({target:r,rect:Rn(r)});var e=bi({},g[g.length-1].rect);if(r.thisAnimationDuration){var D=Ls(r,!0);D&&(e.top-=D.f,e.left-=D.e)}r.fromRect=e}})}},addAnimationState:function(u){g.push(u)},removeAnimationState:function(u){g.splice(km(g,{target:u}),1)},animateAll:function(u){var r=this;if(!this.options.animation){clearTimeout(c),typeof u=="function"&&u();return}var e=!1,D=0;g.forEach(function(I){var k=0,M=I.target,H=M.fromRect,X=Rn(M),ie=M.prevFromRect,R=M.prevToRect,Y=I.rect,re=Ls(M,!0);re&&(X.top-=re.f,X.left-=re.e),M.toRect=X,M.thisAnimationDuration&&Rh(ie,X)&&!Rh(H,X)&&(Y.top-X.top)/(Y.left-X.left)===(H.top-X.top)/(H.left-X.left)&&(k=Pm(Y,ie,R,r.options)),Rh(X,H)||(M.prevFromRect=H,M.prevToRect=X,k||(k=r.options.animation),r.animate(M,Y,X,k)),k&&(e=!0,D=Math.max(D,k),clearTimeout(M.animationResetTimer),M.animationResetTimer=setTimeout(function(){M.animationTime=0,M.prevFromRect=null,M.fromRect=null,M.prevToRect=null,M.thisAnimationDuration=null},k),M.thisAnimationDuration=k)}),clearTimeout(c),e?c=setTimeout(function(){typeof u=="function"&&u()},D):typeof u=="function"&&u(),g=[]},animate:function(u,r,e,D){if(D){ur(u,"transition",""),ur(u,"transform","");var I=Ls(this.el),k=I&&I.a,M=I&&I.d,H=(r.left-e.left)/(k||1),X=(r.top-e.top)/(M||1);u.animatingX=!!H,u.animatingY=!!X,ur(u,"transform","translate3d("+H+"px,"+X+"px,0)"),this.forRepaintDummy=Om(u),ur(u,"transition","transform "+D+"ms"+(this.options.easing?" "+this.options.easing:"")),ur(u,"transform","translate3d(0,0,0)"),typeof u.animated=="number"&&clearTimeout(u.animated),u.animated=setTimeout(function(){ur(u,"transition",""),ur(u,"transform",""),u.animated=!1,u.animatingX=!1,u.animatingY=!1},D)}}}}function Om(g){return g.offsetWidth}function Pm(g,c,o,u){return Math.sqrt(Math.pow(c.top-g.top,2)+Math.pow(c.left-g.left,2))/Math.sqrt(Math.pow(c.top-o.top,2)+Math.pow(c.left-o.left,2))*u.animation}var Us=[],Oh={initializeByDefault:!0},Jo={mount:function(c){for(var o in Oh)Oh.hasOwnProperty(o)&&!(o in c)&&(c[o]=Oh[o]);Us.forEach(function(u){if(u.pluginName===c.pluginName)throw"Sortable: Cannot mount plugin ".concat(c.pluginName," more than once")}),Us.push(c)},pluginEvent:function(c,o,u){var r=this;this.eventCanceled=!1,u.cancel=function(){r.eventCanceled=!0};var e=c+"Global";Us.forEach(function(D){!o[D.pluginName]||(o[D.pluginName][e]&&o[D.pluginName][e](bi({sortable:o},u)),o.options[D.pluginName]&&o[D.pluginName][c]&&o[D.pluginName][c](bi({sortable:o},u)))})},initializePlugins:function(c,o,u,r){Us.forEach(function(I){var k=I.pluginName;if(!(!c.options[k]&&!I.initializeByDefault)){var M=new I(c,o,c.options);M.sortable=c,M.options=c.options,c[k]=M,Gi(u,M.defaults)}});for(var e in c.options)if(!!c.options.hasOwnProperty(e)){var D=this.modifyOption(c,e,c.options[e]);typeof D<"u"&&(c.options[e]=D)}},getEventProperties:function(c,o){var u={};return Us.forEach(function(r){typeof r.eventProperties=="function"&&Gi(u,r.eventProperties.call(o[r.pluginName],c))}),u},modifyOption:function(c,o,u){var r;return Us.forEach(function(e){!c[e.pluginName]||e.optionListeners&&typeof e.optionListeners[o]=="function"&&(r=e.optionListeners[o].call(c[e.pluginName],u))}),r}};function Nm(g){var c=g.sortable,o=g.rootEl,u=g.name,r=g.targetEl,e=g.cloneEl,D=g.toEl,I=g.fromEl,k=g.oldIndex,M=g.newIndex,H=g.oldDraggableIndex,X=g.newDraggableIndex,ie=g.originalEvent,R=g.putSortable,Y=g.extraEventProperties;if(c=c||o&&o[ba],!!c){var re,we=c.options,De="on"+u.charAt(0).toUpperCase()+u.substr(1);window.CustomEvent&&!Yi&&!Yo?re=new CustomEvent(u,{bubbles:!0,cancelable:!0}):(re=document.createEvent("Event"),re.initEvent(u,!0,!0)),re.to=D||o,re.from=I||o,re.item=r||o,re.clone=e,re.oldIndex=k,re.newIndex=M,re.oldDraggableIndex=H,re.newDraggableIndex=X,re.originalEvent=ie,re.pullMode=R?R.lastPutMode:void 0;var ft=bi(bi({},Y),Jo.getEventProperties(u,c));for(var $e in ft)re[$e]=ft[$e];o&&o.dispatchEvent(re),we[De]&&we[De].call(c,re)}}var Lm=["evt"],ya=function(c,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u.evt,e=bm(u,Lm);Jo.pluginEvent.bind(hr)(c,o,bi({dragEl:St,parentEl:_n,ghostEl:pr,rootEl:fn,nextEl:G0,lastDownEl:Ll,cloneEl:hn,cloneHidden:h0,dragStarted:qo,putSortable:qn,activeSortable:hr.active,originalEvent:r,oldIndex:Ws,oldDraggableIndex:Qo,newIndex:$a,newDraggableIndex:d0,hideGhostForTarget:$2,unhideGhostForTarget:z2,cloneNowHidden:function(){h0=!0},cloneNowShown:function(){h0=!1},dispatchSortableEvent:function(I){_a({sortable:o,name:I,originalEvent:r})}},e))};function _a(g){Nm(bi({putSortable:qn,cloneEl:hn,targetEl:St,rootEl:fn,oldIndex:Ws,oldDraggableIndex:Qo,newIndex:$a,newDraggableIndex:d0},g))}var St,_n,pr,fn,G0,Ll,hn,h0,Ws,$a,Qo,d0,Ml,qn,Hs=!1,Ul=!1,Wl=[],K0,di,Ph,Nh,L2,M2,qo,Vs,ef,tf=!1,Hl=!1,Vl,da,Lh=[],Mh=!1,$l=[],zl=typeof document<"u",Xl=Th,U2=Yo||Yi?"cssFloat":"float",Mm=zl&&!D2&&!Th&&"draggable"in document.createElement("div"),W2=function(){if(!!zl){if(Yi)return!1;var g=document.createElement("x");return g.style.cssText="pointer-events:auto",g.style.pointerEvents==="auto"}}(),H2=function(c,o){var u=ur(c),r=parseInt(u.width)-parseInt(u.paddingLeft)-parseInt(u.paddingRight)-parseInt(u.borderLeftWidth)-parseInt(u.borderRightWidth),e=Ms(c,0,o),D=Ms(c,1,o),I=e&&ur(e),k=D&&ur(D),M=I&&parseInt(I.marginLeft)+parseInt(I.marginRight)+Rn(e).width,H=k&&parseInt(k.marginLeft)+parseInt(k.marginRight)+Rn(D).width;if(u.display==="flex")return u.flexDirection==="column"||u.flexDirection==="column-reverse"?"vertical":"horizontal";if(u.display==="grid")return u.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(e&&I.float&&I.float!=="none"){var X=I.float==="left"?"left":"right";return D&&(k.clear==="both"||k.clear===X)?"vertical":"horizontal"}return e&&(I.display==="block"||I.display==="flex"||I.display==="table"||I.display==="grid"||M>=r&&u[U2]==="none"||D&&u[U2]==="none"&&M+H>r)?"vertical":"horizontal"},Um=function(c,o,u){var r=u?c.left:c.top,e=u?c.right:c.bottom,D=u?c.width:c.height,I=u?o.left:o.top,k=u?o.right:o.bottom,M=u?o.width:o.height;return r===I||e===k||r+D/2===I+M/2},Wm=function(c,o){var u;return Wl.some(function(r){var e=r[ba].options.emptyInsertThreshold;if(!(!e||Ih(r))){var D=Rn(r),I=c>=D.left-e&&c<=D.right+e,k=o>=D.top-e&&o<=D.bottom+e;if(I&&k)return u=r}}),u},V2=function(c){function o(e,D){return function(I,k,M,H){var X=I.options.group.name&&k.options.group.name&&I.options.group.name===k.options.group.name;if(e==null&&(D||X))return!0;if(e==null||e===!1)return!1;if(D&&e==="clone")return e;if(typeof e=="function")return o(e(I,k,M,H),D)(I,k,M,H);var ie=(D?I:k).options.group.name;return e===!0||typeof e=="string"&&e===ie||e.join&&e.indexOf(ie)>-1}}var u={},r=c.group;(!r||Pl(r)!="object")&&(r={name:r}),u.name=r.name,u.checkPull=o(r.pull,!0),u.checkPut=o(r.put),u.revertClone=r.revertClone,c.group=u},$2=function(){!W2&&pr&&ur(pr,"display","none")},z2=function(){!W2&&pr&&ur(pr,"display","")};zl&&!D2&&document.addEventListener("click",function(g){if(Ul)return g.preventDefault(),g.stopPropagation&&g.stopPropagation(),g.stopImmediatePropagation&&g.stopImmediatePropagation(),Ul=!1,!1},!0);var Y0=function(c){if(St){c=c.touches?c.touches[0]:c;var o=Wm(c.clientX,c.clientY);if(o){var u={};for(var r in c)c.hasOwnProperty(r)&&(u[r]=c[r]);u.target=u.rootEl=o,u.preventDefault=void 0,u.stopPropagation=void 0,o[ba]._onDragOver(u)}}},Hm=function(c){St&&St.parentNode[ba]._isOutsideThisEl(c.target)};function hr(g,c){if(!(g&&g.nodeType&&g.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(g));this.el=g,this.options=c=Gi({},c),g[ba]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(g.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return H2(g,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(D,I){D.setData("Text",I.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:hr.supportPointer!==!1&&"PointerEvent"in window&&(!jo||Th),emptyInsertThreshold:5};Jo.initializePlugins(this,g,o);for(var u in o)!(u in c)&&(c[u]=o[u]);V2(c);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=c.forceFallback?!1:Mm,this.nativeDraggable&&(this.options.touchStartThreshold=1),c.supportPointer?Lr(g,"pointerdown",this._onTapStart):(Lr(g,"mousedown",this._onTapStart),Lr(g,"touchstart",this._onTapStart)),this.nativeDraggable&&(Lr(g,"dragover",this),Lr(g,"dragenter",this)),Wl.push(this.el),c.store&&c.store.get&&this.sort(c.store.get(this)||[]),Gi(this,Rm())}hr.prototype={constructor:hr,_isOutsideThisEl:function(c){!this.el.contains(c)&&c!==this.el&&(Vs=null)},_getDirection:function(c,o){return typeof this.options.direction=="function"?this.options.direction.call(this,c,o,St):this.options.direction},_onTapStart:function(c){if(!!c.cancelable){var o=this,u=this.el,r=this.options,e=r.preventOnFilter,D=c.type,I=c.touches&&c.touches[0]||c.pointerType&&c.pointerType==="touch"&&c,k=(I||c).target,M=c.target.shadowRoot&&(c.path&&c.path[0]||c.composedPath&&c.composedPath()[0])||k,H=r.filter;if(jm(u),!St&&!(/mousedown|pointerdown/.test(D)&&c.button!==0||r.disabled)&&!M.isContentEditable&&!(!this.nativeDraggable&&jo&&k&&k.tagName.toUpperCase()==="SELECT")&&(k=hi(k,r.draggable,u,!1),!(k&&k.animated)&&Ll!==k)){if(Ws=ti(k),Qo=ti(k,r.draggable),typeof H=="function"){if(H.call(this,c,k,this)){_a({sortable:o,rootEl:M,name:"filter",targetEl:k,toEl:u,fromEl:u}),ya("filter",o,{evt:c}),e&&c.preventDefault();return}}else if(H&&(H=H.split(",").some(function(X){if(X=hi(M,X.trim(),u,!1),X)return _a({sortable:o,rootEl:X,name:"filter",targetEl:k,fromEl:u,toEl:u}),ya("filter",o,{evt:c}),!0}),H)){e&&c.preventDefault();return}r.handle&&!hi(M,r.handle,u,!1)||this._prepareDragStart(c,I,k)}}},_prepareDragStart:function(c,o,u){var r=this,e=r.el,D=r.options,I=e.ownerDocument,k;if(u&&!St&&u.parentNode===e){var M=Rn(u);if(fn=e,St=u,_n=St.parentNode,G0=St.nextSibling,Ll=u,Ml=D.group,hr.dragged=St,K0={target:St,clientX:(o||c).clientX,clientY:(o||c).clientY},L2=K0.clientX-M.left,M2=K0.clientY-M.top,this._lastX=(o||c).clientX,this._lastY=(o||c).clientY,St.style["will-change"]="all",k=function(){if(ya("delayEnded",r,{evt:c}),hr.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!A2&&r.nativeDraggable&&(St.draggable=!0),r._triggerDragStart(c,o),_a({sortable:r,name:"choose",originalEvent:c}),Va(St,D.chosenClass,!0)},D.ignore.split(",").forEach(function(H){k2(St,H.trim(),Uh)}),Lr(I,"dragover",Y0),Lr(I,"mousemove",Y0),Lr(I,"touchmove",Y0),D.supportPointer?(Lr(I,"pointerup",r._onDrop),!this.nativeDraggable&&Lr(I,"pointercancel",r._onDrop)):(Lr(I,"mouseup",r._onDrop),Lr(I,"touchend",r._onDrop),Lr(I,"touchcancel",r._onDrop)),A2&&this.nativeDraggable&&(this.options.touchStartThreshold=4,St.draggable=!0),ya("delayStart",this,{evt:c}),D.delay&&(!D.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(Yo||Yi))){if(hr.eventCanceled){this._onDrop();return}D.supportPointer?(Lr(I,"pointerup",r._disableDelayedDrag),Lr(I,"pointercancel",r._disableDelayedDrag)):(Lr(I,"mouseup",r._disableDelayedDrag),Lr(I,"touchend",r._disableDelayedDrag),Lr(I,"touchcancel",r._disableDelayedDrag)),Lr(I,"mousemove",r._delayedDragTouchMoveHandler),Lr(I,"touchmove",r._delayedDragTouchMoveHandler),D.supportPointer&&Lr(I,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(k,D.delay)}else k()}},_delayedDragTouchMoveHandler:function(c){var o=c.touches?c.touches[0]:c;Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){St&&Uh(St),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var c=this.el.ownerDocument;Or(c,"mouseup",this._disableDelayedDrag),Or(c,"touchend",this._disableDelayedDrag),Or(c,"touchcancel",this._disableDelayedDrag),Or(c,"pointerup",this._disableDelayedDrag),Or(c,"pointercancel",this._disableDelayedDrag),Or(c,"mousemove",this._delayedDragTouchMoveHandler),Or(c,"touchmove",this._delayedDragTouchMoveHandler),Or(c,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(c,o){o=o||c.pointerType=="touch"&&c,!this.nativeDraggable||o?this.options.supportPointer?Lr(document,"pointermove",this._onTouchMove):o?Lr(document,"touchmove",this._onTouchMove):Lr(document,"mousemove",this._onTouchMove):(Lr(St,"dragend",this),Lr(fn,"dragstart",this._onDragStart));try{document.selection?Kl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(c,o){if(Hs=!1,fn&&St){ya("dragStarted",this,{evt:o}),this.nativeDraggable&&Lr(document,"dragover",Hm);var u=this.options;!c&&Va(St,u.dragClass,!1),Va(St,u.ghostClass,!0),hr.active=this,c&&this._appendGhost(),_a({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(di){this._lastX=di.clientX,this._lastY=di.clientY,$2();for(var c=document.elementFromPoint(di.clientX,di.clientY),o=c;c&&c.shadowRoot&&(c=c.shadowRoot.elementFromPoint(di.clientX,di.clientY),c!==o);)o=c;if(St.parentNode[ba]._isOutsideThisEl(c),o)do{if(o[ba]){var u=void 0;if(u=o[ba]._onDragOver({clientX:di.clientX,clientY:di.clientY,target:c,rootEl:o}),u&&!this.options.dragoverBubble)break}c=o}while(o=b2(o));z2()}},_onTouchMove:function(c){if(K0){var o=this.options,u=o.fallbackTolerance,r=o.fallbackOffset,e=c.touches?c.touches[0]:c,D=pr&&Ls(pr,!0),I=pr&&D&&D.a,k=pr&&D&&D.d,M=Xl&&da&&I2(da),H=(e.clientX-K0.clientX+r.x)/(I||1)+(M?M[0]-Lh[0]:0)/(I||1),X=(e.clientY-K0.clientY+r.y)/(k||1)+(M?M[1]-Lh[1]:0)/(k||1);if(!hr.active&&!Hs){if(u&&Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))<u)return;this._onDragStart(c,!0)}if(pr){D?(D.e+=H-(Ph||0),D.f+=X-(Nh||0)):D={a:1,b:0,c:0,d:1,e:H,f:X};var ie="matrix(".concat(D.a,",").concat(D.b,",").concat(D.c,",").concat(D.d,",").concat(D.e,",").concat(D.f,")");ur(pr,"webkitTransform",ie),ur(pr,"mozTransform",ie),ur(pr,"msTransform",ie),ur(pr,"transform",ie),Ph=H,Nh=X,di=e}c.cancelable&&c.preventDefault()}},_appendGhost:function(){if(!pr){var c=this.options.fallbackOnBody?document.body:fn,o=Rn(St,!0,Xl,!0,c),u=this.options;if(Xl){for(da=c;ur(da,"position")==="static"&&ur(da,"transform")==="none"&&da!==document;)da=da.parentNode;da!==document.body&&da!==document.documentElement?(da===document&&(da=yi()),o.top+=da.scrollTop,o.left+=da.scrollLeft):da=yi(),Lh=I2(da)}pr=St.cloneNode(!0),Va(pr,u.ghostClass,!1),Va(pr,u.fallbackClass,!0),Va(pr,u.dragClass,!0),ur(pr,"transition",""),ur(pr,"transform",""),ur(pr,"box-sizing","border-box"),ur(pr,"margin",0),ur(pr,"top",o.top),ur(pr,"left",o.left),ur(pr,"width",o.width),ur(pr,"height",o.height),ur(pr,"opacity","0.8"),ur(pr,"position",Xl?"absolute":"fixed"),ur(pr,"zIndex","100000"),ur(pr,"pointerEvents","none"),hr.ghost=pr,c.appendChild(pr),ur(pr,"transform-origin",L2/parseInt(pr.style.width)*100+"% "+M2/parseInt(pr.style.height)*100+"%")}},_onDragStart:function(c,o){var u=this,r=c.dataTransfer,e=u.options;if(ya("dragStart",this,{evt:c}),hr.eventCanceled){this._onDrop();return}ya("setupClone",this),hr.eventCanceled||(hn=P2(St),hn.removeAttribute("id"),hn.draggable=!1,hn.style["will-change"]="",this._hideClone(),Va(hn,this.options.chosenClass,!1),hr.clone=hn),u.cloneId=Kl(function(){ya("clone",u),!hr.eventCanceled&&(u.options.removeCloneOnHide||fn.insertBefore(hn,St),u._hideClone(),_a({sortable:u,name:"clone"}))}),!o&&Va(St,e.dragClass,!0),o?(Ul=!0,u._loopId=setInterval(u._emulateDragOver,50)):(Or(document,"mouseup",u._onDrop),Or(document,"touchend",u._onDrop),Or(document,"touchcancel",u._onDrop),r&&(r.effectAllowed="move",e.setData&&e.setData.call(u,r,St)),Lr(document,"drop",u),ur(St,"transform","translateZ(0)")),Hs=!0,u._dragStartId=Kl(u._dragStarted.bind(u,o,c)),Lr(document,"selectstart",u),qo=!0,window.getSelection().removeAllRanges(),jo&&ur(document.body,"user-select","none")},_onDragOver:function(c){var o=this.el,u=c.target,r,e,D,I=this.options,k=I.group,M=hr.active,H=Ml===k,X=I.sort,ie=qn||M,R,Y=this,re=!1;if(Mh)return;function we(Be,Me){ya(Be,Y,bi({evt:c,isOwner:H,axis:R?"vertical":"horizontal",revert:D,dragRect:r,targetRect:e,canSort:X,fromSortable:ie,target:u,completed:ft,onMove:function(Q,be){return Gl(fn,o,St,r,Q,Rn(Q),c,be)},changed:$e},Me))}function De(){we("dragOverAnimationCapture"),Y.captureAnimationState(),Y!==ie&&ie.captureAnimationState()}function ft(Be){return we("dragOverCompleted",{insertion:Be}),Be&&(H?M._hideClone():M._showClone(Y),Y!==ie&&(Va(St,qn?qn.options.ghostClass:M.options.ghostClass,!1),Va(St,I.ghostClass,!0)),qn!==Y&&Y!==hr.active?qn=Y:Y===hr.active&&qn&&(qn=null),ie===Y&&(Y._ignoreWhileAnimating=u),Y.animateAll(function(){we("dragOverAnimationComplete"),Y._ignoreWhileAnimating=null}),Y!==ie&&(ie.animateAll(),ie._ignoreWhileAnimating=null)),(u===St&&!St.animated||u===o&&!u.animated)&&(Vs=null),!I.dragoverBubble&&!c.rootEl&&u!==document&&(St.parentNode[ba]._isOutsideThisEl(c.target),!Be&&Y0(c)),!I.dragoverBubble&&c.stopPropagation&&c.stopPropagation(),re=!0}function $e(){$a=ti(St),d0=ti(St,I.draggable),_a({sortable:Y,name:"change",toEl:o,newIndex:$a,newDraggableIndex:d0,originalEvent:c})}if(c.preventDefault!==void 0&&c.cancelable&&c.preventDefault(),u=hi(u,I.draggable,o,!0),we("dragOver"),hr.eventCanceled)return re;if(St.contains(c.target)||u.animated&&u.animatingX&&u.animatingY||Y._ignoreWhileAnimating===u)return ft(!1);if(Ul=!1,M&&!I.disabled&&(H?X||(D=_n!==fn):qn===this||(this.lastPutMode=Ml.checkPull(this,M,St,c))&&k.checkPut(this,M,St,c))){if(R=this._getDirection(c,u)==="vertical",r=Rn(St),we("dragOverValid"),hr.eventCanceled)return re;if(D)return _n=fn,De(),this._hideClone(),we("revert"),hr.eventCanceled||(G0?fn.insertBefore(St,G0):fn.appendChild(St)),ft(!0);var Et=Ih(o,I.draggable);if(!Et||Xm(c,R,this)&&!Et.animated){if(Et===St)return ft(!1);if(Et&&o===c.target&&(u=Et),u&&(e=Rn(u)),Gl(fn,o,St,r,u,e,c,!!u)!==!1)return De(),Et&&Et.nextSibling?o.insertBefore(St,Et.nextSibling):o.appendChild(St),_n=o,$e(),ft(!0)}else if(Et&&zm(c,R,this)){var Qe=Ms(o,0,I,!0);if(Qe===St)return ft(!1);if(u=Qe,e=Rn(u),Gl(fn,o,St,r,u,e,c,!1)!==!1)return De(),o.insertBefore(St,Qe),_n=o,$e(),ft(!0)}else if(u.parentNode===o){e=Rn(u);var Xe=0,wt,vr=St.parentNode!==o,Gt=!Um(St.animated&&St.toRect||r,u.animated&&u.toRect||e,R),Tt=R?"top":"left",gt=T2(u,"top","top")||T2(St,"top","top"),pt=gt?gt.scrollTop:void 0;Vs!==u&&(wt=e[Tt],tf=!1,Hl=!Gt&&I.invertSwap||vr),Xe=Gm(c,u,e,R,Gt?1:I.swapThreshold,I.invertedSwapThreshold==null?I.swapThreshold:I.invertedSwapThreshold,Hl,Vs===u);var Ut;if(Xe!==0){var ne=ti(St);do ne-=Xe,Ut=_n.children[ne];while(Ut&&(ur(Ut,"display")==="none"||Ut===pr))}if(Xe===0||Ut===u)return ft(!1);Vs=u,ef=Xe;var q=u.nextElementSibling,xe=!1;xe=Xe===1;var ee=Gl(fn,o,St,r,u,e,c,xe);if(ee!==!1)return(ee===1||ee===-1)&&(xe=ee===1),Mh=!0,setTimeout($m,30),De(),xe&&!q?o.appendChild(St):u.parentNode.insertBefore(St,xe?q:u),gt&&O2(gt,0,pt-gt.scrollTop),_n=St.parentNode,wt!==void 0&&!Hl&&(Vl=Math.abs(wt-Rn(u)[Tt])),$e(),ft(!0)}if(o.contains(St))return ft(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Or(document,"mousemove",this._onTouchMove),Or(document,"touchmove",this._onTouchMove),Or(document,"pointermove",this._onTouchMove),Or(document,"dragover",Y0),Or(document,"mousemove",Y0),Or(document,"touchmove",Y0)},_offUpEvents:function(){var c=this.el.ownerDocument;Or(c,"mouseup",this._onDrop),Or(c,"touchend",this._onDrop),Or(c,"pointerup",this._onDrop),Or(c,"pointercancel",this._onDrop),Or(c,"touchcancel",this._onDrop),Or(document,"selectstart",this)},_onDrop:function(c){var o=this.el,u=this.options;if($a=ti(St),d0=ti(St,u.draggable),ya("drop",this,{evt:c}),_n=St&&St.parentNode,$a=ti(St),d0=ti(St,u.draggable),hr.eventCanceled){this._nulling();return}Hs=!1,Hl=!1,tf=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Wh(this.cloneId),Wh(this._dragStartId),this.nativeDraggable&&(Or(document,"drop",this),Or(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),jo&&ur(document.body,"user-select",""),ur(St,"transform",""),c&&(qo&&(c.cancelable&&c.preventDefault(),!u.dropBubble&&c.stopPropagation()),pr&&pr.parentNode&&pr.parentNode.removeChild(pr),(fn===_n||qn&&qn.lastPutMode!=="clone")&&hn&&hn.parentNode&&hn.parentNode.removeChild(hn),St&&(this.nativeDraggable&&Or(St,"dragend",this),Uh(St),St.style["will-change"]="",qo&&!Hs&&Va(St,qn?qn.options.ghostClass:this.options.ghostClass,!1),Va(St,this.options.chosenClass,!1),_a({sortable:this,name:"unchoose",toEl:_n,newIndex:null,newDraggableIndex:null,originalEvent:c}),fn!==_n?($a>=0&&(_a({rootEl:_n,name:"add",toEl:_n,fromEl:fn,originalEvent:c}),_a({sortable:this,name:"remove",toEl:_n,originalEvent:c}),_a({rootEl:_n,name:"sort",toEl:_n,fromEl:fn,originalEvent:c}),_a({sortable:this,name:"sort",toEl:_n,originalEvent:c})),qn&&qn.save()):$a!==Ws&&$a>=0&&(_a({sortable:this,name:"update",toEl:_n,originalEvent:c}),_a({sortable:this,name:"sort",toEl:_n,originalEvent:c})),hr.active&&(($a==null||$a===-1)&&($a=Ws,d0=Qo),_a({sortable:this,name:"end",toEl:_n,originalEvent:c}),this.save()))),this._nulling()},_nulling:function(){ya("nulling",this),fn=St=_n=pr=G0=hn=Ll=h0=K0=di=qo=$a=d0=Ws=Qo=Vs=ef=qn=Ml=hr.dragged=hr.ghost=hr.clone=hr.active=null,$l.forEach(function(c){c.checked=!0}),$l.length=Ph=Nh=0},handleEvent:function(c){switch(c.type){case"drop":case"dragend":this._onDrop(c);break;case"dragenter":case"dragover":St&&(this._onDragOver(c),Vm(c));break;case"selectstart":c.preventDefault();break}},toArray:function(){for(var c=[],o,u=this.el.children,r=0,e=u.length,D=this.options;r<e;r++)o=u[r],hi(o,D.draggable,this.el,!1)&&c.push(o.getAttribute(D.dataIdAttr)||Ym(o));return c},sort:function(c,o){var u={},r=this.el;this.toArray().forEach(function(e,D){var I=r.children[D];hi(I,this.options.draggable,r,!1)&&(u[e]=I)},this),o&&this.captureAnimationState(),c.forEach(function(e){u[e]&&(r.removeChild(u[e]),r.appendChild(u[e]))}),o&&this.animateAll()},save:function(){var c=this.options.store;c&&c.set&&c.set(this)},closest:function(c,o){return hi(c,o||this.options.draggable,this.el,!1)},option:function(c,o){var u=this.options;if(o===void 0)return u[c];var r=Jo.modifyOption(this,c,o);typeof r<"u"?u[c]=r:u[c]=o,c==="group"&&V2(u)},destroy:function(){ya("destroy",this);var c=this.el;c[ba]=null,Or(c,"mousedown",this._onTapStart),Or(c,"touchstart",this._onTapStart),Or(c,"pointerdown",this._onTapStart),this.nativeDraggable&&(Or(c,"dragover",this),Or(c,"dragenter",this)),Array.prototype.forEach.call(c.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Wl.splice(Wl.indexOf(this.el),1),this.el=c=null},_hideClone:function(){if(!h0){if(ya("hideClone",this),hr.eventCanceled)return;ur(hn,"display","none"),this.options.removeCloneOnHide&&hn.parentNode&&hn.parentNode.removeChild(hn),h0=!0}},_showClone:function(c){if(c.lastPutMode!=="clone"){this._hideClone();return}if(h0){if(ya("showClone",this),hr.eventCanceled)return;St.parentNode==fn&&!this.options.group.revertClone?fn.insertBefore(hn,St):G0?fn.insertBefore(hn,G0):fn.appendChild(hn),this.options.group.revertClone&&this.animate(St,hn),ur(hn,"display",""),h0=!1}}};function Vm(g){g.dataTransfer&&(g.dataTransfer.dropEffect="move"),g.cancelable&&g.preventDefault()}function Gl(g,c,o,u,r,e,D,I){var k,M=g[ba],H=M.options.onMove,X;return window.CustomEvent&&!Yi&&!Yo?k=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(k=document.createEvent("Event"),k.initEvent("move",!0,!0)),k.to=c,k.from=g,k.dragged=o,k.draggedRect=u,k.related=r||c,k.relatedRect=e||Rn(c),k.willInsertAfter=I,k.originalEvent=D,g.dispatchEvent(k),H&&(X=H.call(M,k,D)),X}function Uh(g){g.draggable=!1}function $m(){Mh=!1}function zm(g,c,o){var u=Rn(Ms(o.el,0,o.options,!0)),r=N2(o.el,o.options,pr),e=10;return c?g.clientX<r.left-e||g.clientY<u.top&&g.clientX<u.right:g.clientY<r.top-e||g.clientY<u.bottom&&g.clientX<u.left}function Xm(g,c,o){var u=Rn(Ih(o.el,o.options.draggable)),r=N2(o.el,o.options,pr),e=10;return c?g.clientX>r.right+e||g.clientY>u.bottom&&g.clientX>u.left:g.clientY>r.bottom+e||g.clientX>u.right&&g.clientY>u.top}function Gm(g,c,o,u,r,e,D,I){var k=u?g.clientY:g.clientX,M=u?o.height:o.width,H=u?o.top:o.left,X=u?o.bottom:o.right,ie=!1;if(!D){if(I&&Vl<M*r){if(!tf&&(ef===1?k>H+M*e/2:k<X-M*e/2)&&(tf=!0),tf)ie=!0;else if(ef===1?k<H+Vl:k>X-Vl)return-ef}else if(k>H+M*(1-r)/2&&k<X-M*(1-r)/2)return Km(c)}return ie=ie||D,ie&&(k<H+M*e/2||k>X-M*e/2)?k>H+M/2?1:-1:0}function Km(g){return ti(St)<ti(g)?1:-1}function Ym(g){for(var c=g.tagName+g.className+g.src+g.href+g.textContent,o=c.length,u=0;o--;)u+=c.charCodeAt(o);return u.toString(36)}function jm(g){$l.length=0;for(var c=g.getElementsByTagName("input"),o=c.length;o--;){var u=c[o];u.checked&&$l.push(u)}}function Kl(g){return setTimeout(g,0)}function Wh(g){return clearTimeout(g)}zl&&Lr(document,"touchmove",function(g){(hr.active||Hs)&&g.cancelable&&g.preventDefault()}),hr.utils={on:Lr,off:Or,css:ur,find:k2,is:function(c,o){return!!hi(c,o,c,!1)},extend:Tm,throttle:R2,closest:hi,toggleClass:Va,clone:P2,index:ti,nextTick:Kl,cancelNextTick:Wh,detectDirection:H2,getChild:Ms,expando:ba},hr.get=function(g){return g[ba]},hr.mount=function(){for(var g=arguments.length,c=new Array(g),o=0;o<g;o++)c[o]=arguments[o];c[0].constructor===Array&&(c=c[0]),c.forEach(function(u){if(!u.prototype||!u.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(u));u.utils&&(hr.utils=bi(bi({},hr.utils),u.utils)),Jo.mount(u)})},hr.create=function(g,c){return new hr(g,c)},hr.version=ym;var On=[],rf,Hh,Vh=!1,$h,zh,Yl,nf;function Zm(){function g(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var c in this)c.charAt(0)==="_"&&typeof this[c]=="function"&&(this[c]=this[c].bind(this))}return g.prototype={dragStarted:function(o){var u=o.originalEvent;this.sortable.nativeDraggable?Lr(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Lr(document,"pointermove",this._handleFallbackAutoScroll):u.touches?Lr(document,"touchmove",this._handleFallbackAutoScroll):Lr(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var u=o.originalEvent;!this.options.dragOverBubble&&!u.rootEl&&this._handleAutoScroll(u)},drop:function(){this.sortable.nativeDraggable?Or(document,"dragover",this._handleAutoScroll):(Or(document,"pointermove",this._handleFallbackAutoScroll),Or(document,"touchmove",this._handleFallbackAutoScroll),Or(document,"mousemove",this._handleFallbackAutoScroll)),X2(),jl(),Im()},nulling:function(){Yl=Hh=rf=Vh=nf=$h=zh=null,On.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,u){var r=this,e=(o.touches?o.touches[0]:o).clientX,D=(o.touches?o.touches[0]:o).clientY,I=document.elementFromPoint(e,D);if(Yl=o,u||this.options.forceAutoScrollFallback||Yo||Yi||jo){Xh(o,this.options,I,u);var k=u0(I,!0);Vh&&(!nf||e!==$h||D!==zh)&&(nf&&X2(),nf=setInterval(function(){var M=u0(document.elementFromPoint(e,D),!0);M!==k&&(k=M,jl()),Xh(o,r.options,M,u)},10),$h=e,zh=D)}else{if(!this.options.bubbleScroll||u0(I,!0)===yi()){jl();return}Xh(o,this.options,u0(I,!1),!1)}}},Gi(g,{pluginName:"scroll",initializeByDefault:!0})}function jl(){On.forEach(function(g){clearInterval(g.pid)}),On=[]}function X2(){clearInterval(nf)}var Xh=R2(function(g,c,o,u){if(!!c.scroll){var r=(g.touches?g.touches[0]:g).clientX,e=(g.touches?g.touches[0]:g).clientY,D=c.scrollSensitivity,I=c.scrollSpeed,k=yi(),M=!1,H;Hh!==o&&(Hh=o,jl(),rf=c.scroll,H=c.scrollFn,rf===!0&&(rf=u0(o,!0)));var X=0,ie=rf;do{var R=ie,Y=Rn(R),re=Y.top,we=Y.bottom,De=Y.left,ft=Y.right,$e=Y.width,Et=Y.height,Qe=void 0,Xe=void 0,wt=R.scrollWidth,vr=R.scrollHeight,Gt=ur(R),Tt=R.scrollLeft,gt=R.scrollTop;R===k?(Qe=$e<wt&&(Gt.overflowX==="auto"||Gt.overflowX==="scroll"||Gt.overflowX==="visible"),Xe=Et<vr&&(Gt.overflowY==="auto"||Gt.overflowY==="scroll"||Gt.overflowY==="visible")):(Qe=$e<wt&&(Gt.overflowX==="auto"||Gt.overflowX==="scroll"),Xe=Et<vr&&(Gt.overflowY==="auto"||Gt.overflowY==="scroll"));var pt=Qe&&(Math.abs(ft-r)<=D&&Tt+$e<wt)-(Math.abs(De-r)<=D&&!!Tt),Ut=Xe&&(Math.abs(we-e)<=D&&gt+Et<vr)-(Math.abs(re-e)<=D&&!!gt);if(!On[X])for(var ne=0;ne<=X;ne++)On[ne]||(On[ne]={});(On[X].vx!=pt||On[X].vy!=Ut||On[X].el!==R)&&(On[X].el=R,On[X].vx=pt,On[X].vy=Ut,clearInterval(On[X].pid),(pt!=0||Ut!=0)&&(M=!0,On[X].pid=setInterval(function(){u&&this.layer===0&&hr.active._onTouchMove(Yl);var q=On[this.layer].vy?On[this.layer].vy*I:0,xe=On[this.layer].vx?On[this.layer].vx*I:0;typeof H=="function"&&H.call(hr.dragged.parentNode[ba],xe,q,g,Yl,On[this.layer].el)!=="continue"||O2(On[this.layer].el,xe,q)}.bind({layer:X}),24))),X++}while(c.bubbleScroll&&ie!==k&&(ie=u0(ie,!1)));Vh=M}},30),G2=function(c){var o=c.originalEvent,u=c.putSortable,r=c.dragEl,e=c.activeSortable,D=c.dispatchSortableEvent,I=c.hideGhostForTarget,k=c.unhideGhostForTarget;if(!!o){var M=u||e;I();var H=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,X=document.elementFromPoint(H.clientX,H.clientY);k(),M&&!M.el.contains(X)&&(D("spill"),this.onSpill({dragEl:r,putSortable:u}))}};function Gh(){}Gh.prototype={startIndex:null,dragStart:function(c){var o=c.oldDraggableIndex;this.startIndex=o},onSpill:function(c){var o=c.dragEl,u=c.putSortable;this.sortable.captureAnimationState(),u&&u.captureAnimationState();var r=Ms(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(o,r):this.sortable.el.appendChild(o),this.sortable.animateAll(),u&&u.animateAll()},drop:G2},Gi(Gh,{pluginName:"revertOnSpill"});function Kh(){}Kh.prototype={onSpill:function(c){var o=c.dragEl,u=c.putSortable,r=u||this.sortable;r.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),r.animateAll()},drop:G2},Gi(Kh,{pluginName:"removeOnSpill"}),hr.mount(new Zm),hr.mount(Kh,Gh);const SF="";function Zn(g,c,o,u,r,e,D,I){var k=typeof g=="function"?g.options:g;c&&(k.render=c,k.staticRenderFns=o,k._compiled=!0),u&&(k.functional=!0),e&&(k._scopeId="data-v-"+e);var M;if(D?(M=function(ie){ie=ie||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!ie&&typeof __VUE_SSR_CONTEXT__<"u"&&(ie=__VUE_SSR_CONTEXT__),r&&r.call(this,ie),ie&&ie._registeredComponents&&ie._registeredComponents.add(D)},k._ssrRegister=M):r&&(M=I?function(){r.call(this,(k.functional?this.parent:this).$root.$options.shadowRoot)}:r),M)if(k.functional){k._injectStyles=M;var H=k.render;k.render=function(R,Y){return M.call(Y),H(R,Y)}}else{var X=k.beforeCreate;k.beforeCreate=X?[].concat(X,M):[M]}return{exports:g,options:k}}const Jm={name:"TableColumnsManager",props:{visible:{type:Boolean,required:!1},tableId:{type:String,required:!0},serverColumns:{type:Array,default:()=>[]},localColumns:{type:Array,default:()=>[]}},data:()=>({isAllSelected:!1,selectedColumnLabels:[],isIndeterminate:!0,visibleColumns:[],appendToBody:!0}),computed:{blacklistColumns(){return this.localColumns.filter(g=>g.fixed==="right"||g.label==="\u64CD\u4F5C")},operableColumns(){return this.localColumns.filter(g=>!this.blacklistColumns.includes(g))},localVisible:{get(){return this.visible&&(this.selectedColumnLabels=this.serverColumns.filter(g=>{var c;return((c=this.localColumns)==null?void 0:c.some(o=>o.label===g.label))&&g.label!=="\u64CD\u4F5C"}).map(g=>g.label)),this.visible},set(g){this.$emit("update:visible",g)}}},watch:{localVisible:{handler(g){g&&this.$nextTick(()=>{this.initSortable()})},immediate:!0},selectedColumnLabels:{handler(g){console.log("selectedColumnLabels changed:",g),this.visibleColumns=g.filter(Boolean).map(u=>this.operableColumns.find(r=>r.label===u)).filter(Boolean);const c=this.operableColumns.length,o=g.length;this.isAllSelected=o===c&&c!==0,this.isIndeterminate=o>0&&o<c},immediate:!0}},created(){this.appendToBody=!document.fullscreenElement,document.addEventListener("fullscreenchange",()=>{this.appendToBody=!document.fullscreenElement})},methods:{handleTagClose(g){this.selectedColumnLabels=this.selectedColumnLabels.filter(c=>c!==g.label)},handleCheckAllChange(g){this.selectedColumnLabels=g?this.operableColumns.map(c=>c.label):[],this.isIndeterminate=!1},closeDialog(){this.localVisible=!1},saveColumns(){const g=[...this.visibleColumns,...this.blacklistColumns];this.$emit("columns-updated",g),this.closeDialog()},initSortable(){const g=this.$refs.tagsContainer;this.sortable=hr.create(g,{animation:150,ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",onEnd:({oldIndex:c,newIndex:o})=>{const u=[...this.visibleColumns],[r]=u.splice(c,1);u.splice(o,0,r),this.selectedColumnLabels=u.map(e=>e.label)}})}}};var Qm=function(){var c=this,o=c._self._c;return o("el-dialog",{staticClass:"table-columns-manager",attrs:{visible:c.localVisible,title:"\u8868\u5934\u8BBE\u7F6E",width:"60%","append-to-body":c.appendToBody,"modal-append-to-body":!1,"destroy-on-close":""},on:{"update:visible":function(u){c.localVisible=u}}},[o("span",[c._v("\u663E\u793A\u5217")]),o("hr"),o("div",{ref:"tagsContainer",staticClass:"tags-wrapper"},[c._l(c.visibleColumns,function(u){return[u.label?o("el-tag",{key:u.label,staticClass:"draggable-tag",attrs:{closable:""},on:{close:function(r){return c.handleTagClose(u)}}},[c._v(" "+c._s(u.label)+" ")]):c._e()]})],2),o("span",[c._v("\u5168\u90E8\u5217")]),o("hr"),o("el-checkbox",{attrs:{indeterminate:c.isIndeterminate},on:{change:c.handleCheckAllChange},model:{value:c.isAllSelected,callback:function(u){c.isAllSelected=u},expression:"isAllSelected"}},[c._v("\u5168\u9009")]),o("el-checkbox-group",{model:{value:c.selectedColumnLabels,callback:function(u){c.selectedColumnLabels=u},expression:"selectedColumnLabels"}},[c._l(c.operableColumns,function(u,r){return[u.label?o("el-checkbox",{key:u.label,attrs:{label:u.label}},[c._v(c._s(u.label))]):c._e()]})],2),o("div",{attrs:{slot:"footer"},slot:"footer"},[o("el-button",{attrs:{type:"primary"},on:{click:c.saveColumns}},[c._v("\u4FDD\u5B58\u914D\u7F6E")]),o("el-button",{on:{click:c.closeDialog}},[c._v("\u53D6\u6D88")])],1)],1)},qm=[],ev=Zn(Jm,Qm,qm,!1,null,null,null,null);const tv=ev.exports;var af={exports:{}};/**
13
13
  * @license
14
14
  * Lodash <https://lodash.com/>
15
15
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-guode/yzl-components",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "基于vue,vite搭建的三川国德云智联组件库",
5
5
  "main": "index.umd.js",
6
6
  "module": "index.mjs",