whistle.mock-plugins
Version:
Whistle 插件,用于快速创建 API 模拟数据
2 lines • 1.71 MB
JavaScript
/*! For license information please see index.js.LICENSE.txt */
(()=>{var e,t,n={246:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}n.r(t),n.d(t,{MultiDrag:()=>xt,Sortable:()=>He,Swap:()=>st,default:()=>Ct});var u=s(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=s(/Edge/i),f=s(/firefox/i),p=s(/safari/i)&&!s(/chrome/i)&&!s(/android/i),m=s(/iP(ad|od|hone)/i),h=s(/chrome/i)&&s(/android/i),g={capture:!1,passive:!1};function v(e,t,n){e.addEventListener(t,n,!u&&g)}function b(e,t,n){e.removeEventListener(t,n,!u&&g)}function y(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function x(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function w(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&y(e,t):y(e,t))||r&&e===n)return e;if(e===n)break}while(e=x(e))}return null}var E,C=/\s+/g;function k(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(C," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(C," ")}}function S(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function $(e,t){var n="";if("string"==typeof e)n=e;else do{var r=S(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function O(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,a=r.length;if(n)for(;o<a;o++)n(r[o],o);return r}return[]}function I(){return document.scrollingElement||document.documentElement}function N(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var a,i,l,c,s,d,f;if(e!==window&&e.parentNode&&e!==I()?(i=(a=e.getBoundingClientRect()).top,l=a.left,c=a.bottom,s=a.right,d=a.height,f=a.width):(i=0,l=0,c=window.innerHeight,s=window.innerWidth,d=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!u))do{if(o&&o.getBoundingClientRect&&("none"!==S(o,"transform")||n&&"static"!==S(o,"position"))){var p=o.getBoundingClientRect();i-=p.top+parseInt(S(o,"border-top-width")),l-=p.left+parseInt(S(o,"border-left-width")),c=i+a.height,s=l+a.width;break}}while(o=o.parentNode);if(r&&e!==window){var m=$(o||e),h=m&&m.a,g=m&&m.d;m&&(c=(i/=g)+(d/=g),s=(l/=h)+(f/=h))}return{top:i,left:l,bottom:c,right:s,width:f,height:d}}}function P(e,t,n){for(var r=z(e,!0),o=N(e)[t];r;){var a=N(r)[n];if(!("top"===n||"left"===n?o>=a:o<=a))return r;if(r===I())break;r=z(r,!1)}return!1}function M(e,t,n,r){for(var o=0,a=0,i=e.children;a<i.length;){if("none"!==i[a].style.display&&i[a]!==He.ghost&&(r||i[a]!==He.dragged)&&w(i[a],n.draggable,e,!1)){if(o===t)return i[a];o++}a++}return null}function j(e,t){for(var n=e.lastElementChild;n&&(n===He.ghost||"none"===S(n,"display")||t&&!y(n,t));)n=n.previousElementSibling;return n||null}function T(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===He.clone||t&&!y(e,t)||n++;return n}function R(e){var t=0,n=0,r=I();if(e)do{var o=$(e),a=o.a,i=o.d;t+=e.scrollLeft*a,n+=e.scrollTop*i}while(e!==r&&(e=e.parentNode));return[t,n]}function z(e,t){if(!e||!e.getBoundingClientRect)return I();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=S(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return I();if(r||t)return n;r=!0}}}while(n=n.parentNode);return I()}function A(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function L(e,t){return function(){if(!E){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),E=setTimeout((function(){E=void 0}),t)}}}function D(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function B(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function F(e,t){S(e,"position","absolute"),S(e,"top",t.top),S(e,"left",t.left),S(e,"width",t.width),S(e,"height",t.height)}function H(e){S(e,"position",""),S(e,"top",""),S(e,"left",""),S(e,"width",""),S(e,"height","")}function _(e,t,n){var r={};return Array.from(e.children).forEach((function(o){var a,i,l,c;if(w(o,t.draggable,e,!1)&&!o.animated&&o!==n){var s=N(o);r.left=Math.min(null!==(a=r.left)&&void 0!==a?a:1/0,s.left),r.top=Math.min(null!==(i=r.top)&&void 0!==i?i:1/0,s.top),r.right=Math.max(null!==(l=r.right)&&void 0!==l?l:-1/0,s.right),r.bottom=Math.max(null!==(c=r.bottom)&&void 0!==c?c:-1/0,s.bottom)}})),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var W="Sortable"+(new Date).getTime();var V=[],K={initializeByDefault:!0},U={mount:function(e){for(var t in K)K.hasOwnProperty(t)&&!(t in e)&&(e[t]=K[t]);V.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),V.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var a=e+"Global";V.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][a]&&t[r.pluginName][a](o({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](o({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var o in V.forEach((function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[o]=a,l(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var a=this.modifyOption(e,o,e.options[o]);void 0!==a&&(e.options[o]=a)}},getEventProperties:function(e,t){var n={};return V.forEach((function(r){"function"==typeof r.eventProperties&&l(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return V.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};function q(e){var t=e.sortable,n=e.rootEl,r=e.name,a=e.targetEl,i=e.cloneEl,l=e.toEl,c=e.fromEl,s=e.oldIndex,f=e.newIndex,p=e.oldDraggableIndex,m=e.newDraggableIndex,h=e.originalEvent,g=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[W]){var b,y=t.options,x="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||u||d?(b=document.createEvent("Event")).initEvent(r,!0,!0):b=new CustomEvent(r,{bubbles:!0,cancelable:!0}),b.to=l||n,b.from=c||n,b.item=a||n,b.clone=i,b.oldIndex=s,b.newIndex=f,b.oldDraggableIndex=p,b.newDraggableIndex=m,b.originalEvent=h,b.pullMode=g?g.lastPutMode:void 0;var w=o(o({},v),U.getEventProperties(r,t));for(var E in w)b[E]=w[E];n&&n.dispatchEvent(b),y[x]&&y[x].call(t,b)}}var X=["evt"],G=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,X);U.pluginEvent.bind(He)(e,t,o({dragEl:Q,parentEl:J,ghostEl:Z,rootEl:ee,nextEl:te,lastDownEl:ne,cloneEl:re,cloneHidden:oe,dragStarted:ve,putSortable:ue,activeSortable:He.active,originalEvent:r,oldIndex:ae,oldDraggableIndex:le,newIndex:ie,newDraggableIndex:ce,hideGhostForTarget:Le,unhideGhostForTarget:De,cloneNowHidden:function(){oe=!0},cloneNowShown:function(){oe=!1},dispatchSortableEvent:function(e){Y({sortable:t,name:e,originalEvent:r})}},a))};function Y(e){q(o({putSortable:ue,cloneEl:re,targetEl:Q,rootEl:ee,oldIndex:ae,oldDraggableIndex:le,newIndex:ie,newDraggableIndex:ce},e))}var Q,J,Z,ee,te,ne,re,oe,ae,ie,le,ce,se,ue,de,fe,pe,me,he,ge,ve,be,ye,xe,we,Ee=!1,Ce=!1,ke=[],Se=!1,$e=!1,Oe=[],Ie=!1,Ne=[],Pe="undefined"!=typeof document,Me=m,je=d||u?"cssFloat":"float",Te=Pe&&!h&&!m&&"draggable"in document.createElement("div"),Re=function(){if(Pe){if(u)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),ze=function(e,t){var n=S(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=M(e,0,t),a=M(e,1,t),i=o&&S(o),l=a&&S(a),c=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+N(o).width,s=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+N(a).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&i.float&&"none"!==i.float){var u="left"===i.float?"left":"right";return!a||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return o&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||c>=r&&"none"===n[je]||a&&"none"===n[je]&&c+s>r)?"vertical":"horizontal"},Ae=function(e){function t(e,n){return function(r,o,a,i){var l=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,a,i),n)(r,o,a,i);var c=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===c||e.join&&e.indexOf(c)>-1}}var n={},r=e.group;r&&"object"==a(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Le=function(){!Re&&Z&&S(Z,"display","none")},De=function(){!Re&&Z&&S(Z,"display","")};Pe&&!h&&document.addEventListener("click",(function(e){if(Ce)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ce=!1,!1}),!0);var Be=function(e){if(Q){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,a=e.clientY,ke.some((function(e){var t=e[W].options.emptyInsertThreshold;if(t&&!j(e)){var n=N(e),r=o>=n.left-t&&o<=n.right+t,l=a>=n.top-t&&a<=n.bottom+t;return r&&l?i=e:void 0}})),i);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[W]._onDragOver(n)}}var o,a,i},Fe=function(e){Q&&Q.parentNode[W]._isOutsideThisEl(e.target)};function He(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=l({},t),e[W]=this;var n,r,a={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ze(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==He.supportPointer&&"PointerEvent"in window&&(!p||m),emptyInsertThreshold:5};for(var i in U.initializePlugins(this,e,a),a)!(i in t)&&(t[i]=a[i]);for(var c in Ae(t),this)"_"===c.charAt(0)&&"function"==typeof this[c]&&(this[c]=this[c].bind(this));this.nativeDraggable=!t.forceFallback&&Te,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?v(e,"pointerdown",this._onTapStart):(v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),ke.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),l(this,(r=[],{captureAnimationState:function(){r=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==S(e,"display")&&e!==He.ghost){r.push({target:e,rect:N(e)});var t=o({},r[r.length-1].rect);if(e.thisAnimationDuration){var n=$(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){r.push(e)},removeAnimationState:function(e){r.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(r,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var o=!1,a=0;r.forEach((function(e){var n=0,r=e.target,i=r.fromRect,l=N(r),c=r.prevFromRect,s=r.prevToRect,u=e.rect,d=$(r,!0);d&&(l.top-=d.f,l.left-=d.e),r.toRect=l,r.thisAnimationDuration&&A(c,l)&&!A(i,l)&&(u.top-l.top)/(u.left-l.left)==(i.top-l.top)/(i.left-l.left)&&(n=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,c,s,t.options)),A(l,i)||(r.prevFromRect=i,r.prevToRect=l,n||(n=t.options.animation),t.animate(r,u,l,n)),n&&(o=!0,a=Math.max(a,n),clearTimeout(r.animationResetTimer),r.animationResetTimer=setTimeout((function(){r.animationTime=0,r.prevFromRect=null,r.fromRect=null,r.prevToRect=null,r.thisAnimationDuration=null}),n),r.thisAnimationDuration=n)})),clearTimeout(n),o?n=setTimeout((function(){"function"==typeof e&&e()}),a):"function"==typeof e&&e(),r=[]},animate:function(e,t,n,r){if(r){S(e,"transition",""),S(e,"transform","");var o=$(this.el),a=o&&o.a,i=o&&o.d,l=(t.left-n.left)/(a||1),c=(t.top-n.top)/(i||1);e.animatingX=!!l,e.animatingY=!!c,S(e,"transform","translate3d("+l+"px,"+c+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),S(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),S(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){S(e,"transition",""),S(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}))}function _e(e,t,n,r,o,a,i,l){var c,s,f=e[W],p=f.options.onMove;return!window.CustomEvent||u||d?(c=document.createEvent("Event")).initEvent("move",!0,!0):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=o||t,c.relatedRect=a||N(t),c.willInsertAfter=l,c.originalEvent=i,e.dispatchEvent(c),p&&(s=p.call(f,c,i)),s}function We(e){e.draggable=!1}function Ve(){Ie=!1}function Ke(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Ue(e){return setTimeout(e,0)}function qe(e){return clearTimeout(e)}He.prototype={constructor:He,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(be=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Q):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,a=e.type,i=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(i||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,s=r.filter;if(function(e){Ne.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&Ne.push(r)}}(n),!Q&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||r.disabled)&&!c.isContentEditable&&(this.nativeDraggable||!p||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=w(l,r.draggable,n,!1))&&l.animated||ne===l)){if(ae=T(l),le=T(l,r.draggable),"function"==typeof s){if(s.call(this,e,l,this))return Y({sortable:t,rootEl:c,name:"filter",targetEl:l,toEl:n,fromEl:n}),G("filter",t,{evt:e}),void(o&&e.preventDefault())}else if(s&&(s=s.split(",").some((function(r){if(r=w(c,r.trim(),n,!1))return Y({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),G("filter",t,{evt:e}),!0}))))return void(o&&e.preventDefault());r.handle&&!w(c,r.handle,n,!1)||this._prepareDragStart(e,i,l)}}},_prepareDragStart:function(e,t,n){var r,o=this,a=o.el,i=o.options,l=a.ownerDocument;if(n&&!Q&&n.parentNode===a){var c=N(n);if(ee=a,J=(Q=n).parentNode,te=Q.nextSibling,ne=n,se=i.group,He.dragged=Q,de={target:Q,clientX:(t||e).clientX,clientY:(t||e).clientY},he=de.clientX-c.left,ge=de.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Q.style["will-change"]="all",r=function(){G("delayEnded",o,{evt:e}),He.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!f&&o.nativeDraggable&&(Q.draggable=!0),o._triggerDragStart(e,t),Y({sortable:o,name:"choose",originalEvent:e}),k(Q,i.chosenClass,!0))},i.ignore.split(",").forEach((function(e){O(Q,e.trim(),We)})),v(l,"dragover",Be),v(l,"mousemove",Be),v(l,"touchmove",Be),i.supportPointer?(v(l,"pointerup",o._onDrop),!this.nativeDraggable&&v(l,"pointercancel",o._onDrop)):(v(l,"mouseup",o._onDrop),v(l,"touchend",o._onDrop),v(l,"touchcancel",o._onDrop)),f&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Q.draggable=!0),G("delayStart",this,{evt:e}),!i.delay||i.delayOnTouchOnly&&!t||this.nativeDraggable&&(d||u))r();else{if(He.eventCanceled)return void this._onDrop();i.supportPointer?(v(l,"pointerup",o._disableDelayedDrag),v(l,"pointercancel",o._disableDelayedDrag)):(v(l,"mouseup",o._disableDelayedDrag),v(l,"touchend",o._disableDelayedDrag),v(l,"touchcancel",o._disableDelayedDrag)),v(l,"mousemove",o._delayedDragTouchMoveHandler),v(l,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&v(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,i.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Q&&We(Q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._disableDelayedDrag),b(e,"touchend",this._disableDelayedDrag),b(e,"touchcancel",this._disableDelayedDrag),b(e,"pointerup",this._disableDelayedDrag),b(e,"pointercancel",this._disableDelayedDrag),b(e,"mousemove",this._delayedDragTouchMoveHandler),b(e,"touchmove",this._delayedDragTouchMoveHandler),b(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?v(document,"pointermove",this._onTouchMove):v(document,t?"touchmove":"mousemove",this._onTouchMove):(v(Q,"dragend",this),v(ee,"dragstart",this._onDragStart));try{document.selection?Ue((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Ee=!1,ee&&Q){G("dragStarted",this,{evt:t}),this.nativeDraggable&&v(document,"dragover",Fe);var n=this.options;!e&&k(Q,n.dragClass,!1),k(Q,n.ghostClass,!0),He.active=this,e&&this._appendGhost(),Y({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(fe){this._lastX=fe.clientX,this._lastY=fe.clientY,Le();for(var e=document.elementFromPoint(fe.clientX,fe.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(fe.clientX,fe.clientY))!==t;)t=e;if(Q.parentNode[W]._isOutsideThisEl(e),t)do{if(t[W]&&t[W]._onDragOver({clientX:fe.clientX,clientY:fe.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=x(t));De()}},_onTouchMove:function(e){if(de){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,a=Z&&$(Z,!0),i=Z&&a&&a.a,l=Z&&a&&a.d,c=Me&&we&&R(we),s=(o.clientX-de.clientX+r.x)/(i||1)+(c?c[0]-Oe[0]:0)/(i||1),u=(o.clientY-de.clientY+r.y)/(l||1)+(c?c[1]-Oe[1]:0)/(l||1);if(!He.active&&!Ee){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(Z){a?(a.e+=s-(pe||0),a.f+=u-(me||0)):a={a:1,b:0,c:0,d:1,e:s,f:u};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");S(Z,"webkitTransform",d),S(Z,"mozTransform",d),S(Z,"msTransform",d),S(Z,"transform",d),pe=s,me=u,fe=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Z){var e=this.options.fallbackOnBody?document.body:ee,t=N(Q,!0,Me,!0,e),n=this.options;if(Me){for(we=e;"static"===S(we,"position")&&"none"===S(we,"transform")&&we!==document;)we=we.parentNode;we!==document.body&&we!==document.documentElement?(we===document&&(we=I()),t.top+=we.scrollTop,t.left+=we.scrollLeft):we=I(),Oe=R(we)}k(Z=Q.cloneNode(!0),n.ghostClass,!1),k(Z,n.fallbackClass,!0),k(Z,n.dragClass,!0),S(Z,"transition",""),S(Z,"transform",""),S(Z,"box-sizing","border-box"),S(Z,"margin",0),S(Z,"top",t.top),S(Z,"left",t.left),S(Z,"width",t.width),S(Z,"height",t.height),S(Z,"opacity","0.8"),S(Z,"position",Me?"absolute":"fixed"),S(Z,"zIndex","100000"),S(Z,"pointerEvents","none"),He.ghost=Z,e.appendChild(Z),S(Z,"transform-origin",he/parseInt(Z.style.width)*100+"% "+ge/parseInt(Z.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;G("dragStart",this,{evt:e}),He.eventCanceled?this._onDrop():(G("setupClone",this),He.eventCanceled||((re=B(Q)).removeAttribute("id"),re.draggable=!1,re.style["will-change"]="",this._hideClone(),k(re,this.options.chosenClass,!1),He.clone=re),n.cloneId=Ue((function(){G("clone",n),He.eventCanceled||(n.options.removeCloneOnHide||ee.insertBefore(re,Q),n._hideClone(),Y({sortable:n,name:"clone"}))})),!t&&k(Q,o.dragClass,!0),t?(Ce=!0,n._loopId=setInterval(n._emulateDragOver,50)):(b(document,"mouseup",n._onDrop),b(document,"touchend",n._onDrop),b(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,Q)),v(document,"drop",n),S(Q,"transform","translateZ(0)")),Ee=!0,n._dragStartId=Ue(n._dragStarted.bind(n,t,e)),v(document,"selectstart",n),ve=!0,window.getSelection().removeAllRanges(),p&&S(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,a,i=this.el,l=e.target,c=this.options,s=c.group,u=He.active,d=se===s,f=c.sort,p=ue||u,m=this,h=!1;if(!Ie){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),l=w(l,c.draggable,i,!0),B("dragOver"),He.eventCanceled)return h;if(Q.contains(e.target)||l.animated&&l.animatingX&&l.animatingY||m._ignoreWhileAnimating===l)return H(!1);if(Ce=!1,u&&!c.disabled&&(d?f||(r=J!==ee):ue===this||(this.lastPutMode=se.checkPull(this,u,Q,e))&&s.checkPut(this,u,Q,e))){if(a="vertical"===this._getDirection(e,l),t=N(Q),B("dragOverValid"),He.eventCanceled)return h;if(r)return J=ee,F(),this._hideClone(),B("revert"),He.eventCanceled||(te?ee.insertBefore(Q,te):ee.appendChild(Q)),H(!0);var g=j(i,c.draggable);if(!g||function(e,t,n){var r=N(j(n.el,n.options.draggable)),o=_(n.el,n.options,Z);return t?e.clientX>o.right+10||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>o.bottom+10||e.clientX>r.right&&e.clientY>r.top}(e,a,this)&&!g.animated){if(g===Q)return H(!1);if(g&&i===e.target&&(l=g),l&&(n=N(l)),!1!==_e(ee,i,Q,t,l,n,e,!!l))return F(),g&&g.nextSibling?i.insertBefore(Q,g.nextSibling):i.appendChild(Q),J=i,V(),H(!0)}else if(g&&function(e,t,n){var r=N(M(n.el,0,n.options,!0)),o=_(n.el,n.options,Z);return t?e.clientX<o.left-10||e.clientY<r.top&&e.clientX<r.right:e.clientY<o.top-10||e.clientY<r.bottom&&e.clientX<r.left}(e,a,this)){var v=M(i,0,c,!0);if(v===Q)return H(!1);if(n=N(l=v),!1!==_e(ee,i,Q,t,l,n,e,!1))return F(),i.insertBefore(Q,v),J=i,V(),H(!0)}else if(l.parentNode===i){n=N(l);var b,y,x,E=Q.parentNode!==i,C=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,a=n?e.width:e.height,i=n?t.left:t.top,l=n?t.right:t.bottom,c=n?t.width:t.height;return r===i||o===l||r+a/2===i+c/2}(Q.animated&&Q.toRect||t,l.animated&&l.toRect||n,a),$=a?"top":"left",O=P(l,"top","top")||P(Q,"top","top"),I=O?O.scrollTop:void 0;if(be!==l&&(y=n[$],Se=!1,$e=!C&&c.invertSwap||E),b=function(e,t,n,r,o,a,i,l){var c=r?e.clientY:e.clientX,s=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!i)if(l&&xe<s*o){if(!Se&&(1===ye?c>u+s*a/2:c<d-s*a/2)&&(Se=!0),Se)f=!0;else if(1===ye?c<u+xe:c>d-xe)return-ye}else if(c>u+s*(1-o)/2&&c<d-s*(1-o)/2)return function(e){return T(Q)<T(e)?1:-1}(t);return(f=f||i)&&(c<u+s*a/2||c>d-s*a/2)?c>u+s/2?1:-1:0}(e,l,n,a,C?1:c.swapThreshold,null==c.invertedSwapThreshold?c.swapThreshold:c.invertedSwapThreshold,$e,be===l),0!==b){var R=T(Q);do{R-=b,x=J.children[R]}while(x&&("none"===S(x,"display")||x===Z))}if(0===b||x===l)return H(!1);be=l,ye=b;var z=l.nextElementSibling,A=!1,L=_e(ee,i,Q,t,l,n,e,A=1===b);if(!1!==L)return 1!==L&&-1!==L||(A=1===L),Ie=!0,setTimeout(Ve,30),F(),A&&!z?i.appendChild(Q):l.parentNode.insertBefore(Q,A?z:l),O&&D(O,0,I-O.scrollTop),J=Q.parentNode,void 0===y||$e||(xe=Math.abs(y-N(l)[$])),V(),H(!0)}if(i.contains(Q))return H(!1)}return!1}function B(c,s){G(c,m,o({evt:e,isOwner:d,axis:a?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:f,fromSortable:p,target:l,completed:H,onMove:function(n,r){return _e(ee,i,Q,t,n,N(n),e,r)},changed:V},s))}function F(){B("dragOverAnimationCapture"),m.captureAnimationState(),m!==p&&p.captureAnimationState()}function H(t){return B("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(m),m!==p&&(k(Q,ue?ue.options.ghostClass:u.options.ghostClass,!1),k(Q,c.ghostClass,!0)),ue!==m&&m!==He.active?ue=m:m===He.active&&ue&&(ue=null),p===m&&(m._ignoreWhileAnimating=l),m.animateAll((function(){B("dragOverAnimationComplete"),m._ignoreWhileAnimating=null})),m!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(l===Q&&!Q.animated||l===i&&!l.animated)&&(be=null),c.dragoverBubble||e.rootEl||l===document||(Q.parentNode[W]._isOutsideThisEl(e.target),!t&&Be(e)),!c.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function V(){ie=T(Q),ce=T(Q,c.draggable),Y({sortable:m,name:"change",toEl:i,newIndex:ie,newDraggableIndex:ce,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",Be),b(document,"mousemove",Be),b(document,"touchmove",Be)},_offUpEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._onDrop),b(e,"touchend",this._onDrop),b(e,"pointerup",this._onDrop),b(e,"pointercancel",this._onDrop),b(e,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ie=T(Q),ce=T(Q,n.draggable),G("drop",this,{evt:e}),J=Q&&Q.parentNode,ie=T(Q),ce=T(Q,n.draggable),He.eventCanceled||(Ee=!1,$e=!1,Se=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),qe(this.cloneId),qe(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),p&&S(document.body,"user-select",""),S(Q,"transform",""),e&&(ve&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Z&&Z.parentNode&&Z.parentNode.removeChild(Z),(ee===J||ue&&"clone"!==ue.lastPutMode)&&re&&re.parentNode&&re.parentNode.removeChild(re),Q&&(this.nativeDraggable&&b(Q,"dragend",this),We(Q),Q.style["will-change"]="",ve&&!Ee&&k(Q,ue?ue.options.ghostClass:this.options.ghostClass,!1),k(Q,this.options.chosenClass,!1),Y({sortable:this,name:"unchoose",toEl:J,newIndex:null,newDraggableIndex:null,originalEvent:e}),ee!==J?(ie>=0&&(Y({rootEl:J,name:"add",toEl:J,fromEl:ee,originalEvent:e}),Y({sortable:this,name:"remove",toEl:J,originalEvent:e}),Y({rootEl:J,name:"sort",toEl:J,fromEl:ee,originalEvent:e}),Y({sortable:this,name:"sort",toEl:J,originalEvent:e})),ue&&ue.save()):ie!==ae&&ie>=0&&(Y({sortable:this,name:"update",toEl:J,originalEvent:e}),Y({sortable:this,name:"sort",toEl:J,originalEvent:e})),He.active&&(null!=ie&&-1!==ie||(ie=ae,ce=le),Y({sortable:this,name:"end",toEl:J,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){G("nulling",this),ee=Q=J=Z=te=re=ne=oe=de=fe=ve=ie=ce=ae=le=be=ye=ue=se=He.dragged=He.ghost=He.clone=He.active=null,Ne.forEach((function(e){e.checked=!0})),Ne.length=pe=me=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Q&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,a=this.options;r<o;r++)w(e=n[r],a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||Ke(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var o=r.children[t];w(o,this.options.draggable,r,!1)&&(n[e]=o)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return w(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=U.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&Ae(n)},destroy:function(){G("destroy",this);var e=this.el;e[W]=null,b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart),b(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),ke.splice(ke.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!oe){if(G("hideClone",this),He.eventCanceled)return;S(re,"display","none"),this.options.removeCloneOnHide&&re.parentNode&&re.parentNode.removeChild(re),oe=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(oe){if(G("showClone",this),He.eventCanceled)return;Q.parentNode!=ee||this.options.group.revertClone?te?ee.insertBefore(re,te):ee.appendChild(re):ee.insertBefore(re,Q),this.options.group.revertClone&&this.animate(Q,re),S(re,"display",""),oe=!1}}else this._hideClone()}},Pe&&v(document,"touchmove",(function(e){(He.active||Ee)&&e.cancelable&&e.preventDefault()})),He.utils={on:v,off:b,css:S,find:O,is:function(e,t){return!!w(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:L,closest:w,toggleClass:k,clone:B,index:T,nextTick:Ue,cancelNextTick:qe,detectDirection:ze,getChild:M,expando:W},He.get=function(e){return e[W]},He.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(He.utils=o(o({},He.utils),e.utils)),U.mount(e)}))},He.create=function(e,t){return new He(e,t)},He.version="1.15.6";var Xe,Ge,Ye,Qe,Je,Ze,et=[],tt=!1;function nt(){et.forEach((function(e){clearInterval(e.pid)})),et=[]}function rt(){clearInterval(Ze)}var ot,at=L((function(e,t,n,r){if(t.scroll){var o,a=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,c=t.scrollSpeed,s=I(),u=!1;Ge!==n&&(Ge=n,nt(),Xe=t.scroll,o=t.scrollFn,!0===Xe&&(Xe=z(n,!0)));var d=0,f=Xe;do{var p=f,m=N(p),h=m.top,g=m.bottom,v=m.left,b=m.right,y=m.width,x=m.height,w=void 0,E=void 0,C=p.scrollWidth,k=p.scrollHeight,$=S(p),O=p.scrollLeft,P=p.scrollTop;p===s?(w=y<C&&("auto"===$.overflowX||"scroll"===$.overflowX||"visible"===$.overflowX),E=x<k&&("auto"===$.overflowY||"scroll"===$.overflowY||"visible"===$.overflowY)):(w=y<C&&("auto"===$.overflowX||"scroll"===$.overflowX),E=x<k&&("auto"===$.overflowY||"scroll"===$.overflowY));var M=w&&(Math.abs(b-a)<=l&&O+y<C)-(Math.abs(v-a)<=l&&!!O),j=E&&(Math.abs(g-i)<=l&&P+x<k)-(Math.abs(h-i)<=l&&!!P);if(!et[d])for(var T=0;T<=d;T++)et[T]||(et[T]={});et[d].vx==M&&et[d].vy==j&&et[d].el===p||(et[d].el=p,et[d].vx=M,et[d].vy=j,clearInterval(et[d].pid),0==M&&0==j||(u=!0,et[d].pid=setInterval(function(){r&&0===this.layer&&He.active._onTouchMove(Je);var t=et[this.layer].vy?et[this.layer].vy*c:0,n=et[this.layer].vx?et[this.layer].vx*c:0;"function"==typeof o&&"continue"!==o.call(He.dragged.parentNode[W],n,t,e,Je,et[this.layer].el)||D(et[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==s&&(f=z(f,!1)));tt=u}}),30),it=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,a=e.dispatchSortableEvent,i=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var c=n||o;i();var s=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(s.clientX,s.clientY);l(),c&&!c.el.contains(u)&&(a("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function lt(){}function ct(){}function st(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;ot=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,o=e.activeSortable,a=e.changed,i=e.cancel;if(o.options.swap){var l=this.sortable.el,c=this.options;if(n&&n!==l){var s=ot;!1!==r(n)?(k(n,c.swapClass,!0),ot=n):ot=null,s&&s!==ot&&k(s,c.swapClass,!1)}a(),t(!0),i()}},drop:function(e){var t,n,r,o,a,i,l=e.activeSortable,c=e.putSortable,s=e.dragEl,u=c||this.sortable,d=this.options;ot&&k(ot,d.swapClass,!1),ot&&(d.swap||c&&c.options.swap)&&s!==ot&&(u.captureAnimationState(),u!==l&&l.captureAnimationState(),n=ot,a=(t=s).parentNode,i=n.parentNode,a&&i&&!a.isEqualNode(n)&&!i.isEqualNode(t)&&(r=T(t),o=T(n),a.isEqualNode(i)&&r<o&&o++,a.insertBefore(n,a.children[r]),i.insertBefore(t,i.children[o])),u.animateAll(),u!==l&&l.animateAll())},nulling:function(){ot=null}},l(e,{pluginName:"swap",eventProperties:function(){return{swapItem:ot}}})}lt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=M(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:it},l(lt,{pluginName:"revertOnSpill"}),ct.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:it},l(ct,{pluginName:"removeOnSpill"});var ut,dt,ft,pt,mt,ht=[],gt=[],vt=!1,bt=!1,yt=!1;function xt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.avoidImplicitDeselect||(e.options.supportPointer?v(document,"pointerup",this._deselectMultiDrag):(v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag))),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(t,n){var r="";ht.length&&dt===e?ht.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;ft=t},delayEnded:function(){this.isMultiDrag=~ht.indexOf(ft)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<ht.length;r++)gt.push(B(ht[r])),gt[r].sortableIndex=ht[r].sortableIndex,gt[r].draggable=!1,gt[r].style["will-change"]="",k(gt[r],this.options.selectedClass,!1),ht[r]===ft&&k(gt[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,o=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||ht.length&&dt===t&&(wt(!0,n),r("clone"),o()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(wt(!1,n),gt.forEach((function(e){S(e,"display","")})),t(),mt=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(gt.forEach((function(e){S(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),mt=!0,r())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&dt&&dt.multiDrag._deselectMultiDrag(),ht.forEach((function(e){e.sortableIndex=T(e)})),ht=ht.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),yt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){ht.forEach((function(e){e!==ft&&S(e,"position","absolute")}));var r=N(ft,!1,!0,!0);ht.forEach((function(e){e!==ft&&F(e,r)})),bt=!0,vt=!0}n.animateAll((function(){bt=!1,vt=!1,t.options.animation&&ht.forEach((function(e){H(e)})),t.options.sort&&Et()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;bt&&~ht.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,o=e.dragRect;ht.length>1&&(ht.forEach((function(e){r.addAnimationState({target:e,rect:bt?N(e):o}),H(e),e.fromRect=o,t.removeAnimationState(e)})),bt=!1,function(e,t){ht.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,o=e.activeSortable,a=e.parentEl,i=e.putSortable,l=this.options;if(r){if(n&&o._hideClone(),vt=!1,l.animation&&ht.length>1&&(bt||!n&&!o.options.sort&&!i)){var c=N(ft,!1,!0,!0);ht.forEach((function(e){e!==ft&&(F(e,c),a.appendChild(e))})),bt=!0}if(!n)if(bt||Et(),ht.length>1){var s=mt;o._showClone(t),o.options.animation&&!mt&&s&>.forEach((function(e){o.addAnimationState({target:e,rect:pt}),e.fromRect=pt,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(ht.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){pt=l({},t);var o=$(ft,!0);pt.top-=o.f,pt.left-=o.e}},dragOverAnimationComplete:function(){bt&&(bt=!1,Et())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,a=e.dispatchSortableEvent,i=e.oldIndex,l=e.putSortable,c=l||this.sortable;if(t){var s=this.options,u=r.children;if(!yt)if(s.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),k(ft,s.selectedClass,!~ht.indexOf(ft)),~ht.indexOf(ft))ht.splice(ht.indexOf(ft),1),ut=null,q({sortable:o,rootEl:n,name:"deselect",targetEl:ft,originalEvent:t});else{if(ht.push(ft),q({sortable:o,rootEl:n,name:"select",targetEl:ft,originalEvent:t}),t.shiftKey&&ut&&o.el.contains(ut)){var d=T(ut),f=T(ft);~d&&~f&&d!==f&&function(){var e,a;f>d?(a=d,e=f):(a=f,e=d+1);for(var i=s.filter;a<e;a++)~ht.indexOf(u[a])||w(u[a],s.draggable,r,!1)&&(i&&("function"==typeof i?i.call(o,t,u[a],o):i.split(",").some((function(e){return w(u[a],e.trim(),r,!1)})))||(k(u[a],s.selectedClass,!0),ht.push(u[a]),q({sortable:o,rootEl:n,name:"select",targetEl:u[a],originalEvent:t})))}()}else ut=ft;dt=c}if(yt&&this.isMultiDrag){if(bt=!1,(r[W].options.sort||r!==n)&&ht.length>1){var p=N(ft),m=T(ft,":not(."+this.options.selectedClass+")");if(!vt&&s.animation&&(ft.thisAnimationDuration=null),c.captureAnimationState(),!vt&&(s.animation&&(ft.fromRect=p,ht.forEach((function(e){if(e.thisAnimationDuration=null,e!==ft){var t=bt?N(e):p;e.fromRect=t,c.addAnimationState({target:e,rect:t})}}))),Et(),ht.forEach((function(e){u[m]?r.insertBefore(e,u[m]):r.appendChild(e),m++})),i===T(ft))){var h=!1;ht.forEach((function(e){e.sortableIndex===T(e)||(h=!0)})),h&&(a("update"),a("sort"))}ht.forEach((function(e){H(e)})),c.animateAll()}dt=c}(n===r||l&&"clone"!==l.lastPutMode)&>.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=yt=!1,gt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),b(document,"pointerup",this._deselectMultiDrag),b(document,"mouseup",this._deselectMultiDrag),b(document,"touchend",this._deselectMultiDrag),b(document,"keydown",this._checkKeyDown),b(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==yt&&yt||dt!==this.sortable||e&&w(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;ht.length;){var t=ht[0];k(t,this.options.selectedClass,!1),ht.shift(),q({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvent:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},l(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[W];t&&t.options.multiDrag&&!~ht.indexOf(e)&&(dt&&dt!==t&&(dt.multiDrag._deselectMultiDrag(),dt=t),k(e,t.options.selectedClass,!0),ht.push(e))},deselect:function(e){var t=e.parentNode[W],n=ht.indexOf(e);t&&t.options.multiDrag&&~n&&(k(e,t.options.selectedClass,!1),ht.splice(n,1))}},eventProperties:function(){var e,t=this,n=[],r=[];return ht.forEach((function(e){var o;n.push({multiDragElement:e,index:e.sortableIndex}),o=bt&&e!==ft?-1:bt?T(e,":not(."+t.options.selectedClass+")"):T(e),r.push({multiDragElement:e,index:o})})),{items:(e=ht,function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),clones:[].concat(gt),oldIndicies:n,newIndicies:r}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function wt(e,t){gt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function Et(){ht.forEach((function(e){e!==ft&&e.parentNode&&e.parentNode.removeChild(e)}))}He.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):this.options.supportPointer?v(document,"pointermove",this._handleFallbackAutoScroll):t.touches?v(document,"touchmove",this._handleFallbackAutoScroll):v(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):(b(document,"pointermove",this._handleFallbackAutoScroll),b(document,"touchmove",this._handleFallbackAutoScroll),b(document,"mousemove",this._handleFallbackAutoScroll)),rt(),nt(),clearTimeout(E),E=void 0},nulling:function(){Je=Ge=Xe=tt=Ze=Ye=Qe=null,et.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,o);if(Je=e,t||this.options.forceAutoScrollFallback||d||u||p){at(e,this.options,a,t);var i=z(a,!0);!tt||Ze&&r===Ye&&o===Qe||(Ze&&rt(),Ze=setInterval((function(){var a=z(document.elementFromPoint(r,o),!0);a!==i&&(i=a,nt()),at(e,n.options,a,t)}),10),Ye=r,Qe=o)}else{if(!this.options.bubbleScroll||z(a,!0)===I())return void nt();at(e,this.options,z(a,!1),!1)}}},l(e,{pluginName:"scroll",initializeByDefault:!0})}),He.mount(ct,lt);const Ct=He},445:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,i={},l=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[r,c("day")],Do:[a,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,c("week")],ww:[r,c("week")],M:[o,c("month")],MM:[r,c("month")],MMM:[a,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[a,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(e){this.year=l(e)}],YYYY:[/\d{4}/,c("year")],Z:s,ZZ:s};function p(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||o[r]||e[r]||o[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),l=a.length,c=0;c<l;c+=1){var s=a[c],u=f[s],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:s.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,c=o.parser,s=e.slice(r),u=i.exec(s)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(l=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var l=a[1];if("string"==typeof l){var c=!0===a[2],s=!0===a[3],u=c||s,d=a[2];s&&(d=a[2]),i=this.$locale(),!c&&d&&(i=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=p(t)(e),a=o.year,i=o.month,l=o.day,c=o.hours,s=o.minutes,u=o.seconds,d=o.milliseconds,f=o.zone,m=o.week,h=new Date,g=l||(a||i?1:h.getDate()),v=a||h.getFullYear(),b=0;a&&!i||(b=i>0?i-1:h.getMonth());var y,x=c||0,w=s||0,E=u||0,C=d||0;return f?new Date(Date.UTC(v,b,g,x,w,E,C+60*f.offset*1e3)):n?new Date(Date.UTC(v,b,g,x,w,E,C)):(y=new Date(v,b,g,x,w,E,C),m&&(y=r(y).week(m).toDate()),y)}catch(e){return new Date("")}}(t,l,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(l)&&(this.$d=new Date("")),i={}}else if(l instanceof Array)for(var f=l.length,m=1;m<=f;m+=1){a[1]=l[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(""))}else o.call(this,e)}}}()},536:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(1601),o=n.n(r),a=n(6314),i=n.n(a)()(o());i.push([e.id,'.settings-container {\n width: 100%;\n max-width: 900px;\n margin: 0 auto;\n background-color: #fff;\n border-radius: 8px;\n box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);\n padding: 24px;\n}\n\n.settings-header {\n margin-bottom: 24px;\n padding-bottom: 16px;\n border-bottom: 1px solid #f0f0f0;\n}\n\n.settings-header h4 {\n margin-bottom: 8px;\n color: #1890ff;\n}\n\n.settings-card {\n margin-bottom: 20px;\n}\n\n.settings-card .ant-card-head {\n border-bottom: 1px solid #f0f0f0;\n padding-bottom: 0;\n}\n\n.settings-card .ant-card-head-title {\n font-size: 16px;\n font-weight: 500;\n}\n\n/* 设置项样式 */\n.setting