Files
aiot-platform-ui/apps/web-antd/dist/js/vuedraggable.umd-DkAkfkoq.js

6 lines
94 KiB
JavaScript
Raw Normal View History

2026-01-26 16:16:37 +08:00
import{dC as Kr,bV as Br}from"../jse/index-index-muiiV4cL.js";import{r as Hr}from"./index-DKgL29_l.js";var we={exports:{}};function gr(l,r){var n=Object.keys(l);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(l);r&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(l,e).enumerable})),n.push.apply(n,i)}return n}function Bt(l){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?gr(Object(n),!0).forEach(function(i){Wr(l,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(n)):gr(Object(n)).forEach(function(i){Object.defineProperty(l,i,Object.getOwnPropertyDescriptor(n,i))})}return l}function Ue(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ue=function(r){return typeof r}:Ue=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ue(l)}function Wr(l,r,n){return r in l?Object.defineProperty(l,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):l[r]=n,l}function Mt(){return Mt=Object.assign||function(l){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(l[i]=n[i])}return l},Mt.apply(this,arguments)}function Xr(l,r){if(l==null)return{};var n={},i=Object.keys(l),e,f;for(f=0;f<i.length;f++)e=i[f],!(r.indexOf(e)>=0)&&(n[e]=l[e]);return n}function Vr(l,r){if(l==null)return{};var n=Xr(l,r),i,e;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(l);for(e=0;e<f.length;e++)i=f[e],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(l,i)&&(n[i]=l[i])}return n}function Yr(l){return zr(l)||Jr(l)||Qr(l)||Zr()}function zr(l){if(Array.isArray(l))return lr(l)}function Jr(l){if(typeof Symbol!="undefined"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function Qr(l,r){if(l){if(typeof l=="string")return lr(l,r);var n=Object.prototype.toString.call(l).slice(8,-1);if(n==="Object"&&l.constructor&&(n=l.constructor.name),n==="Map"||n==="Set")return Array.from(l);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lr(l,r)}}function lr(l,r){(r==null||r>l.length)&&(r=l.length);for(var n=0,i=new Array(r);n<r;n++)i[n]=l[n];return i}function Zr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2026-01-14 14:09:12 +08:00
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var kr="1.14.0";function Ht(l){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(l)}var Wt=Ht(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),De=Ht(/Edge/i),mr=Ht(/firefox/i),xe=Ht(/safari/i)&&!Ht(/chrome/i)&&!Ht(/android/i),Cr=Ht(/iP(ad|od|hone)/i),qr=Ht(/chrome/i)&&Ht(/android/i),Ar={capture:!1,passive:!1};function Z(l,r,n){l.addEventListener(r,n,!Wt&&Ar)}function Q(l,r,n){l.removeEventListener(r,n,!Wt&&Ar)}function We(l,r){if(r){if(r[0]===">"&&(r=r.substring(1)),l)try{if(l.matches)return l.matches(r);if(l.msMatchesSelector)return l.msMatchesSelector(r);if(l.webkitMatchesSelector)return l.webkitMatchesSelector(r)}catch(n){return!1}return!1}}function _r(l){return l.host&&l!==document&&l.host.nodeType?l.host:l.parentNode}function wt(l,r,n,i){if(l){n=n||document;do{if(r!=null&&(r[0]===">"?l.parentNode===n&&We(l,r):We(l,r))||i&&l===n)return l;if(l===n)break}while(l=_r(l))}return null}var yr=/\s+/g;function lt(l,r,n){if(l&&r)if(l.classList)l.classList[n?"add":"remove"](r);else{var i=(" "+l.className+" ").replace(yr," ").replace(" "+r+" "," ");l.className=(i+(n?" "+r:"")).replace(yr," ")}}function L(l,r,n){var i=l&&l.style;if(i){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(l,""):l.currentStyle&&(n=l.currentStyle),r===void 0?n:n[r];!(r in i)&&r.indexOf("webkit")===-1&&(r="-webkit-"+r),i[r]=n+(typeof n=="string"?"":"px")}}function ee(l,r){var n="";if(typeof l=="string")n=l;else do{var i=L(l,"transform");i&&i!=="none"&&(n=i+" "+n)}while(!r&&(l=l.parentNode));var e=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return e&&new e(n)}function Rr(l,r,n){if(l){var i=l.getElementsByTagName(r),e=0,f=i.length;if(n)for(;e<f;e++)n(i[e],e);return i}return[]}function Kt(){var l=document.scrollingElement;return l||document.documentElement}function at(l,r,n,i,e){if(!(!l.getBoundingClientRect&&l!==window)){var f,t,o,a,s,c,u;if(l!==window&&l.parentNode&&l!==Kt()?(f=l.getBoundingClientRect(),t=f.top,o=f.left,a=f.bottom,s=f.right,c=f.height,u=f.width):(t=0,o=0,a=window.innerHeight,s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(r||n)&&l!==window&&(e=e||l.parentNode,!Wt))do if(e&&e.getBoundingClientRect&&(L(e,"transform")!=="none"||n&&L(e,"position")!=="static")){var d=e.getBoundingClientRect();t-=d.top+parseInt(L(e,"border-top-width")),o-=d.left+parseInt(L(e,"border-left-width")),a=t+f.height,s=o+f.width;break}while(e=e.parentNode);if(i&&l!==window){var v=ee(e||l),h=v&&v.a,p=v&&v.d;v&&(t/=p,o/=h,u/=h,c/=p,a=t+c,s=o+u)}return{top:t,left:o,bottom:a,right:s,width:u,height:c}}}function Sr(l,r,n){for(var i=Qt(l,!0),e=at(l)[r];i;){var f=at(i)[n],t=void 0;if(t=e>=f,!t)return i;if(i===Kt())break;i=Qt(i,!1)}return!1}function se(l,r,n,i){for(var e=0,f=0,t=l.children;f<t.length;){if(t[f].style.display!=="none"&&t[f]!==B.ghost&&(i||t[f]!==B.dragged)&&wt(t[f],n.draggable,l,!1)){if(e===r)return t[f];e++}f++}return null}function dr(l,r){for(var n=l.lastElementChild;n&&(n===B.ghost||L(n,"display")==="none"||r&&!We(n,r));)n=n.previousElementSibling;return n||null}function dt(l,r){var n=0;if(!l||!l.parentNode)return-1;for(;l=l.previousElementSibling;)l.nodeName.toUpperCase()!=="TEMPLATE"&&l!==B.clone&&(!r||We(l,r))&&n++;return n}function br(l){var r=0,n=0,i=Kt();if(l)do{var e=ee(l),f=e.a,t=e.d;r+=l.scrollLeft*f,n+=l.scrollTop*t}while(l!==i&&(l=l.parentNode));return[r,n]}function tn(l,r){for(var n in l)if(l.hasOwnProperty(n)){for(var i in r)if(r.hasOwnProperty(i)&&r[i]===l[n][i])return Number(n)}return-1}function Qt(l,r){if(!l||!l.getBoundingClientRect)return Kt();var n=l,i=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var e=L(n);if(n.clientWidth<n.scrollWidth&&(e.overflowX=="auto"||e.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(e.overflowY=="auto"||e.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Kt();if(i||r)return n;i=!0}}while(n=n.parentNode);return Kt()}fu
`)&&(T="(?: "+T+")",M=" "+M,$++),x=new RegExp("^(?:"+T+")",w)),h&&(x=new RegExp("^"+T+"$(?!\\s)",w)),d&&(I=b.lastIndex),P=s.call(F?x:b,M),F?P?(P.input=P.input.slice($),P[0]=P[0].slice($),P.index=b.lastIndex,b.lastIndex+=P[0].length):b.lastIndex=0:d&&P&&(b.lastIndex=b.global?P.index+P[0].length:I),h&&P&&P.length>1&&c.call(P[0],x,function(){for(O=1;O<arguments.length-2;O++)arguments[O]===void 0&&(P[O]=void 0)}),P}),e.exports=u},"94ca":function(e,f,t){var o=t("d039"),a=/#|\.prototype\./,s=function(h,p){var g=u[c(h)];return g==v?!0:g==d?!1:typeof p=="function"?o(p):!!p},c=s.normalize=function(h){return String(h).replace(a,".").toLowerCase()},u=s.data={},d=s.NATIVE="N",v=s.POLYFILL="P";e.exports=s},"99af":function(e,f,t){var o=t("23e7"),a=t("d039"),s=t("e8b5"),c=t("861d"),u=t("7b0b"),d=t("50c4"),v=t("8418"),h=t("65f0"),p=t("1dde"),g=t("b622"),S=t("2d00"),b=g("isConcatSpreadable"),I=9007199254740991,x="Maximum allowed index exceeded",P=S>=51||!a(function(){var T=[];return T[b]=!1,T.concat()[0]!==T}),O=p("concat"),F=function(T){if(!c(T))return!1;var $=T[b];return $!==void 0?!!$:s(T)},w=!P||!O;o({target:"Array",proto:!0,forced:w},{concat:function($){var M=u(this),V=h(M,0),C=0,R,X,N,G,_;for(R=-1,N=arguments.length;R<N;R++)if(_=R===-1?M:arguments[R],F(_)){if(G=d(_.length),C+G>I)throw TypeError(x);for(X=0;X<G;X++,C++)X in _&&v(V,C,_[X])}else{if(C>=I)throw TypeError(x);v(V,C++,_)}return V.length=C,V}})},"9bdd":function(e,f,t){var o=t("825a");e.exports=function(a,s,c,u){try{return u?s(o(c)[0],c[1]):s(c)}catch(v){var d=a.return;throw d!==void 0&&o(d.call(a)),v}}},"9bf2":function(e,f,t){var o=t("83ab"),a=t("0cfb"),s=t("825a"),c=t("c04e"),u=Object.defineProperty;f.f=o?u:function(v,h,p){if(s(v),h=c(h,!0),s(p),a)try{return u(v,h,p)}catch(g){}if("get"in p||"set"in p)throw TypeError("Accessors not supported");return"value"in p&&(v[h]=p.value),v}},"9ed3":function(e,f,t){var o=t("ae93").IteratorPrototype,a=t("7c73"),s=t("5c6c"),c=t("d44e"),u=t("3f8c"),d=function(){return this};e.exports=function(v,h,p){var g=h+" Iterator";return v.prototype=a(o,{next:s(1,p)}),c(v,g,!1,!0),u[g]=d,v}},"9f7f":function(e,f,t){var o=t("d039");function a(s,c){return RegExp(s,c)}f.UNSUPPORTED_Y=o(function(){var s=a("a","y");return s.lastIndex=2,s.exec("abcd")!=null}),f.BROKEN_CARET=o(function(){var s=a("^r","gy");return s.lastIndex=2,s.exec("str")!=null})},a2bf:function(e,f,t){var o=t("e8b5"),a=t("50c4"),s=t("0366"),c=function(u,d,v,h,p,g,S,b){for(var I=p,x=0,P=S?s(S,b,3):!1,O;x<h;){if(x in v){if(O=P?P(v[x],x,d):v[x],g>0&&o(O))I=c(u,d,O,a(O.length),I,g-1)-1;else{if(I>=9007199254740991)throw TypeError("Exceed the acceptable array length");u[I]=O}I++}x++}return I};e.exports=c},a352:function(e,f){e.exports=i},a434:function(e,f,t){var o=t("23e7"),a=t("23cb"),s=t("a691"),c=t("50c4"),u=t("7b0b"),d=t("65f0"),v=t("8418"),h=t("1dde"),p=t("ae40"),g=h("splice"),S=p("splice",{ACCESSORS:!0,0:0,1:2}),b=Math.max,I=Math.min,x=9007199254740991,P="Maximum allowed length exceeded";o({target:"Array",proto:!0,forced:!g||!S},{splice:function(F,w){var T=u(this),$=c(T.length),M=a(F,$),V=arguments.length,C,R,X,N,G,_;if(V===0?C=R=0:V===1?(C=0,R=$-M):(C=V-2,R=I(b(s(w),0),$-M)),$+C-R>x)throw TypeError(P);for(X=d(T,R),N=0;N<R;N++)G=M+N,G in T&&v(X,N,T[G]);if(X.length=R,C<R){for(N=M;N<$-R;N++)G=N+R,_=N+C,G in T?T[_]=T[G]:delete T[_];for(N=$;N>$-R+C;N--)delete T[N-1]}else if(C>R)for(N=$-R;N>M;N--)G=N+R-1,_=N+C-1,G in T?T[_]=T[G]:delete T[_];for(N=0;N<C;N++)T[N+M]=arguments[N+2];return T.length=$-R+C,X}})},a4d3:function(e,f,t){var o=t("23e7"),a=t("da84"),s=t("d066"),c=t("c430"),u=t("83ab"),d=t("4930"),v=t("fdbf"),h=t("d039"),p=t("5135"),g=t("e8b5"),S=t("861d"),b=t("825a"),I=t("7b0b"),x=t("fc6a"),P=t("c04e"),O=t("5c6c"),F=t("7c73"),w=t("df75"),T=t("241c"),$=t("057f"),M=t("7418"),V=t("06cf"),C=t("9bf2"),R=t("d1e7"),X=t("9112"),N=t("6eeb"),G=t("5692"),_=t("f772"),rt=t("d012"),yt=t("90e3"),st=t("b622"),ft=t("e538"),gt=t("746f"),mt=t("d44e"),ht=t("69f3"),nt=t("b727").forEach,it=_("hidden"),At="Symbol",Tt="prototype",Xt=st("toPrimitive"),Zt=ht.set,Vt=ht.getterFor(At),St=Object[Tt],bt=a.Symbol,kt=s("JSO
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(y,m){return v(y)||h(y,m)||g(y,m)||S()}function I(y){if(Array.isArray(y))return p(y)}function x(y){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(y))return Array.from(y)}function P(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2026-01-14 14:09:12 +08:00
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O(y){return I(y)||x(y)||g(y)||P()}var F=t("a352"),w=t.n(F);function T(y){y.parentElement!==null&&y.parentElement.removeChild(y)}function $(y,m,E){var D=E===0?y.children[0]:y.children[E-1].nextSibling;y.insertBefore(m,D)}var M=t("dbf1");t("13d5"),t("4fad"),t("ac1f"),t("5319");function V(y){var m=Object.create(null);return function(D){var j=m[D];return j||(m[D]=y(D))}}var C=/-(\w)/g,R=V(function(y){return y.replace(C,function(m,E){return E.toUpperCase()})});t("5db7"),t("73d9");var X=["Start","Add","Remove","Update","End"],N=["Choose","Unchoose","Sort","Filter","Clone"],G=["Move"],_=[G,X,N].flatMap(function(y){return y}).map(function(y){return"on".concat(y)}),rt={manage:G,manageAndEmit:X,emit:N};function yt(y){return _.indexOf(y)!==-1}t("caad"),t("2ca0");var st=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function ft(y){return st.includes(y)}function gt(y){return["transition-group","TransitionGroup"].includes(y)}function mt(y){return["id","class","role","style"].includes(y)||y.startsWith("data-")||y.startsWith("aria-")||y.startsWith("on")}function ht(y){return y.reduce(function(m,E){var D=b(E,2),j=D[0],H=D[1];return m[j]=H,m},{})}function nt(y){var m=y.$attrs,E=y.componentData,D=E===void 0?{}:E,j=ht(Object.entries(m).filter(function(H){var J=b(H,2),tt=J[0];return J[1],mt(tt)}));return d(d({},j),D)}function it(y){var m=y.$attrs,E=y.callBackBuilder,D=ht(At(m));Object.entries(E).forEach(function(H){var J=b(H,2),tt=J[0],vt=J[1];rt[tt].forEach(function(W){D["on".concat(W)]=vt(W)})});var j="[data-draggable]".concat(D.draggable||"");return d(d({},D),{},{draggable:j})}function At(y){return Object.entries(y).filter(function(m){var E=b(m,2),D=E[0];return E[1],!mt(D)}).map(function(m){var E=b(m,2),D=E[0],j=E[1];return[R(D),j]}).filter(function(m){var E=b(m,2),D=E[0];return E[1],!yt(D)})}t("c740");function Tt(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function Xt(y,m){for(var E=0;E<m.length;E++){var D=m[E];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(y,D.key,D)}}function Zt(y,m,E){return m&&Xt(y.prototype,m),y}var Vt=function(m){var E=m.el;return E},St=function(m,E){return m.__draggable_context=E},bt=function(m){return m.__draggable_context},kt=function(){function y(m){var E=m.nodes,D=E.header,j=E.default,H=E.footer,J=m.root,tt=m.realList;Tt(this,y),this.defaultNodes=j,this.children=[].concat(O(D),O(j),O(H)),this.externalComponent=J.externalComponent,this.rootTransition=J.transition,this.tag=J.tag,this.realList=tt}return Zt(y,[{key:"render",value:function(E,D){var j=this.tag,H=this.children,J=this._isRootComponent,tt=J?{default:function(){return H}}:H;return E(j,D,tt)}},{key:"updated",value:function(){var E=this.defaultNodes,D=this.realList;E.forEach(function(j,H){St(Vt(j),{element:D[H],index:H})})}},{key:"getUnderlyingVm",value:function(E){return bt(E)}},{key:"getVmIndexFromDomIndex",value:function(E,D){var j=this.defaultNodes,H=j.length,J=D.children,tt=J.item(E);if(tt===null)return H;var vt=bt(tt);if(vt)return vt.index;if(H===0)return 0;var W=Vt(j[0]),U=O(J).findIndex(function(K){return K===W});return E<U?0:H}},{key:"_isRootComponent",get:function(){re