@wyltils/ems-editor 1.0.45 → 1.0.46

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/dist/index.umd.js CHANGED
@@ -892,17 +892,30 @@ echarts.use([`+I+"]);":"Unknown series "+T))}return}if(d==="tooltip"){if(b){proc
892
892
  `,"Illegal config:",h,`.
893
893
  `)),Hi(i)),s.push({dimIdx:v.index,parser:_,comparator:new Fwe(u,g)})});var o=e.sourceFormat;o!==xa&&o!==Bh&&(process.env.NODE_ENV!=="production"&&(i='sourceFormat "'+o+'" is not supported yet'),Hi(i));for(var a=[],l=0,c=e.count();l<c;l++)a.push(e.getRawDataItem(l));return a.sort(function(h,d){for(var u=0;u<s.length;u++){var f=s[u],g=e.retrieveValueFromItem(h,f.dimIdx),p=e.retrieveValueFromItem(d,f.dimIdx);f.parser&&(g=f.parser(g),p=f.parser(p));var m=f.comparator.evaluate(g,p);if(m!==0)return m}return 0}),{data:a}}};function LSt(n){n.registerTransform(SSt),n.registerTransform(xSt)}var DSt=function(n){de(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,i,r){n.prototype.init.call(this,t,i,r),this._sourceManager=new Uwe(this),Gwe(this)},e.prototype.mergeOption=function(t,i){n.prototype.mergeOption.call(this,t,i),Gwe(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:df},e}(ei),ESt=function(n){de(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(ur);function kSt(n){n.registerComponentModel(DSt),n.registerComponentView(ESt)}var yf=lf.CMD;function fL(n,e){return Math.abs(n-e)<1e-5}function RZ(n){var e=n.data,t=n.len(),i=[],r,s=0,o=0,a=0,l=0;function c(N,M){r&&r.length>2&&i.push(r),r=[N,M]}function h(N,M,P,R){fL(N,P)&&fL(M,R)||r.push(N,M,P,R,P,R)}function d(N,M,P,R,W,$){var z=Math.abs(M-N),K=Math.tan(z/4)*4/3,Y=M<N?-1:1,q=Math.cos(N),Z=Math.sin(N),ee=Math.cos(M),he=Math.sin(M),Re=q*W+P,Ge=Z*$+R,ke=ee*W+P,ce=he*$+R,we=W*K*Y,ye=$*K*Y;r.push(Re-we*Z,Ge+ye*q,ke+we*he,ce-ye*ee,ke,ce)}for(var u,f,g,p,m=0;m<t;){var v=e[m++],_=m===1;switch(_&&(s=e[m],o=e[m+1],a=s,l=o,(v===yf.L||v===yf.C||v===yf.Q)&&(r=[a,l])),v){case yf.M:s=a=e[m++],o=l=e[m++],c(a,l);break;case yf.L:u=e[m++],f=e[m++],h(s,o,u,f),s=u,o=f;break;case yf.C:r.push(e[m++],e[m++],e[m++],e[m++],s=e[m++],o=e[m++]);break;case yf.Q:u=e[m++],f=e[m++],g=e[m++],p=e[m++],r.push(s+2/3*(u-s),o+2/3*(f-o),g+2/3*(u-g),p+2/3*(f-p),g,p),s=g,o=p;break;case yf.A:var b=e[m++],y=e[m++],C=e[m++],x=e[m++],L=e[m++],D=e[m++]+L;m+=1;var E=!e[m++];u=Math.cos(L)*C+b,f=Math.sin(L)*x+y,_?(a=u,l=f,c(a,l)):h(s,o,u,f),s=Math.cos(D)*C+b,o=Math.sin(D)*x+y;for(var k=(E?-1:1)*Math.PI/2,T=L;E?T>D:T<D;T+=k){var I=E?Math.max(T+k,D):Math.min(T+k,D);d(T,I,b,y,C,x)}break;case yf.R:a=s=e[m++],l=o=e[m++],u=a+e[m++],f=l+e[m++],c(u,l),h(u,l,u,f),h(u,f,a,f),h(a,f,a,l),h(a,l,u,l);break;case yf.Z:r&&h(s,o,a,l),s=a,o=l;break}}return r&&r.length>2&&i.push(r),i}function PZ(n,e,t,i,r,s,o,a,l,c){if(fL(n,t)&&fL(e,i)&&fL(r,o)&&fL(s,a)){l.push(o,a);return}var h=2/c,d=h*h,u=o-n,f=a-e,g=Math.sqrt(u*u+f*f);u/=g,f/=g;var p=t-n,m=i-e,v=r-o,_=s-a,b=p*p+m*m,y=v*v+_*_;if(b<d&&y<d){l.push(o,a);return}var C=u*p+f*m,x=-u*v-f*_,L=b-C*C,D=y-x*x;if(L<d&&C>=0&&D<d&&x>=0){l.push(o,a);return}var E=[],k=[];Av(n,t,r,o,.5,E),Av(e,i,s,a,.5,k),PZ(E[0],k[0],E[1],k[1],E[2],k[2],E[3],k[3],l,c),PZ(E[4],k[4],E[5],k[5],E[6],k[6],E[7],k[7],l,c)}function TSt(n,e){var t=RZ(n),i=[];e=e||1;for(var r=0;r<t.length;r++){var s=t[r],o=[],a=s[0],l=s[1];o.push(a,l);for(var c=2;c<s.length;){var h=s[c++],d=s[c++],u=s[c++],f=s[c++],g=s[c++],p=s[c++];PZ(a,l,h,d,u,f,g,p,o,e),a=g,l=p}i.push(o)}return i}function oIe(n,e,t){var i=n[e],r=n[1-e],s=Math.abs(i/r),o=Math.ceil(Math.sqrt(s*t)),a=Math.floor(t/o);a===0&&(a=1,o=t);for(var l=[],c=0;c<o;c++)l.push(a);var h=o*a,d=t-h;if(d>0)for(var c=0;c<d;c++)l[c%o]+=1;return l}function aIe(n,e,t){for(var i=n.r0,r=n.r,s=n.startAngle,o=n.endAngle,a=Math.abs(o-s),l=a*r,c=r-i,h=l>Math.abs(c),d=oIe([l,c],h?0:1,e),u=(h?a:c)/d.length,f=0;f<d.length;f++)for(var g=(h?c:a)/d[f],p=0;p<d[f];p++){var m={};h?(m.startAngle=s+u*f,m.endAngle=s+u*(f+1),m.r0=i+g*p,m.r=i+g*(p+1)):(m.startAngle=s+g*p,m.endAngle=s+g*(p+1),m.r0=i+u*f,m.r=i+u*(f+1)),m.clockwise=n.clockwise,m.cx=n.cx,m.cy=n.cy,t.push(m)}}function ISt(n,e,t){for(var i=n.width,r=n.height,s=i>r,o=oIe([i,r],s?0:1,e),a=s?"width":"height",l=s?"height":"width",c=s?"x":"y",h=s?"y":"x",d=n[a]/o.length,u=0;u<o.length;u++)for(var f=n[l]/o[u],g=0;g<o[u];g++){var p={};p[c]=u*d,p[h]=g*f,p[a]=d,p[l]=f,p.x+=n.x,p.y+=n.y,t.push(p)}}function lIe(n,e,t,i){return n*i-t*e}function NSt(n,e,t,i,r,s,o,a){var l=t-n,c=i-e,h=o-r,d=a-s,u=lIe(h,d,l,c);if(Math.abs(u)<1e-6)return null;var f=n-r,g=e-s,p=lIe(f,g,h,d)/u;return p<0||p>1?null:new Vt(p*l+n,p*c+e)}function MSt(n,e,t){var i=new Vt;Vt.sub(i,t,e),i.normalize();var r=new Vt;Vt.sub(r,n,e);var s=r.dot(i);return s}function gL(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function ASt(n,e,t){for(var i=n.length,r=[],s=0;s<i;s++){var o=n[s],a=n[(s+1)%i],l=NSt(o[0],o[1],a[0],a[1],e.x,e.y,t.x,t.y);l&&r.push({projPt:MSt(l,e,t),pt:l,idx:s})}if(r.length<2)return[{points:n},{points:n}];r.sort(function(m,v){return m.projPt-v.projPt});var c=r[0],h=r[r.length-1];if(h.idx<c.idx){var d=c;c=h,h=d}for(var u=[c.pt.x,c.pt.y],f=[h.pt.x,h.pt.y],g=[u],p=[f],s=c.idx+1;s<=h.idx;s++)gL(g,n[s].slice());gL(g,f),gL(g,u);for(var s=h.idx+1;s<=c.idx+i;s++)gL(p,n[s%i].slice());return gL(p,u),gL(p,f),[{points:g},{points:p}]}function cIe(n){var e=n.points,t=[],i=[];S4(e,t,i);var r=new Bt(t[0],t[1],i[0]-t[0],i[1]-t[1]),s=r.width,o=r.height,a=r.x,l=r.y,c=new Vt,h=new Vt;return s>o?(c.x=h.x=a+s/2,c.y=l,h.y=l+o):(c.y=h.y=l+o/2,c.x=a,h.x=a+s),ASt(e,c,h)}function W6(n,e,t,i){if(t===1)i.push(e);else{var r=Math.floor(t/2),s=n(e);W6(n,s[0],r,i),W6(n,s[1],t-r,i)}return i}function RSt(n,e){for(var t=[],i=0;i<e;i++)t.push(rq(n));return t}function PSt(n,e){e.setStyle(n.style),e.z=n.z,e.z2=n.z2,e.zlevel=n.zlevel}function OSt(n){for(var e=[],t=0;t<n.length;)e.push([n[t++],n[t++]]);return e}function VSt(n,e){var t=[],i=n.shape,r;switch(n.type){case"rect":ISt(i,e,t),r=_i;break;case"sector":aIe(i,e,t),r=ol;break;case"circle":aIe({r0:0,r:i.r,startAngle:0,endAngle:Math.PI*2,cx:i.cx,cy:i.cy},e,t),r=ol;break;default:var s=n.getComputedTransform(),o=s?Math.sqrt(Math.max(s[0]*s[0]+s[1]*s[1],s[2]*s[2]+s[3]*s[3])):1,a=Le(TSt(n.getUpdatedPathProxy(),o),function(v){return OSt(v)}),l=a.length;if(l===0)W6(cIe,{points:a[0]},e,t);else if(l===e)for(var c=0;c<l;c++)t.push({points:a[c]});else{var h=0,d=Le(a,function(v){var _=[],b=[];S4(v,_,b);var y=(b[1]-_[1])*(b[0]-_[0]);return h+=y,{poly:v,area:y}});d.sort(function(v,_){return _.area-v.area});for(var u=e,c=0;c<l;c++){var f=d[c];if(u<=0)break;var g=c===l-1?u:Math.ceil(f.area/h*e);g<0||(W6(cIe,{points:f.poly},g,t),u-=g)}}r=al;break}if(!r)return RSt(n,e);for(var p=[],c=0;c<t.length;c++){var m=new r;m.setShape(t[c]),PSt(n,m),p.push(m)}return p}function FSt(n,e){var t=n.length,i=e.length;if(t===i)return[n,e];for(var r=[],s=[],o=t<i?n:e,a=Math.min(t,i),l=Math.abs(i-t)/6,c=(a-2)/6,h=Math.ceil(l/c)+1,d=[o[0],o[1]],u=l,f=2;f<a;){var g=o[f-2],p=o[f-1],m=o[f++],v=o[f++],_=o[f++],b=o[f++],y=o[f++],C=o[f++];if(u<=0){d.push(m,v,_,b,y,C);continue}for(var x=Math.min(u,h-1)+1,L=1;L<=x;L++){var D=L/x;Av(g,m,_,y,D,r),Av(p,v,b,C,D,s),g=r[3],p=s[3],d.push(r[1],s[1],r[2],s[2],g,p),m=r[5],v=s[5],_=r[6],b=s[6]}u-=x-1}return o===n?[d,e]:[n,d]}function hIe(n,e){for(var t=n.length,i=n[t-2],r=n[t-1],s=[],o=0;o<e.length;)s[o++]=i,s[o++]=r;return s}function BSt(n,e){for(var t,i,r,s=[],o=[],a=0;a<Math.max(n.length,e.length);a++){var l=n[a],c=e[a],h=void 0,d=void 0;l?c?(t=FSt(l,c),h=t[0],d=t[1],i=h,r=d):(d=hIe(r||l,l),h=l):(h=hIe(i||c,c),d=c),s.push(h),o.push(d)}return[s,o]}function dIe(n){for(var e=0,t=0,i=0,r=n.length,s=0,o=r-2;s<r;o=s,s+=2){var a=n[o],l=n[o+1],c=n[s],h=n[s+1],d=a*h-c*l;e+=d,t+=(a+c)*d,i+=(l+h)*d}return e===0?[n[0]||0,n[1]||0]:[t/e/3,i/e/3,e]}function WSt(n,e,t,i){for(var r=(n.length-2)/6,s=1/0,o=0,a=n.length,l=a-2,c=0;c<r;c++){for(var h=c*6,d=0,u=0;u<a;u+=2){var f=u===0?h:(h+u-2)%l+2,g=n[f]-t[0],p=n[f+1]-t[1],m=e[u]-i[0],v=e[u+1]-i[1],_=m-g,b=v-p;d+=_*_+b*b}d<s&&(s=d,o=c)}return o}function HSt(n){for(var e=[],t=n.length,i=0;i<t;i+=2)e[i]=n[t-i-2],e[i+1]=n[t-i-1];return e}function zSt(n,e,t,i){for(var r=[],s,o=0;o<n.length;o++){var a=n[o],l=e[o],c=dIe(a),h=dIe(l);s==null&&(s=c[2]<0!=h[2]<0);var d=[],u=[],f=0,g=1/0,p=[],m=a.length;s&&(a=HSt(a));for(var v=WSt(a,l,c,h)*6,_=m-2,b=0;b<_;b+=2){var y=(v+b)%_+2;d[b+2]=a[y]-c[0],d[b+3]=a[y+1]-c[1]}d[0]=a[v]-c[0],d[1]=a[v+1]-c[1];for(var C=i/t,x=-i/2;x<=i/2;x+=C){for(var L=Math.sin(x),D=Math.cos(x),E=0,b=0;b<a.length;b+=2){var k=d[b],T=d[b+1],I=l[b]-h[0],N=l[b+1]-h[1],M=I*D-N*L,P=I*L+N*D;p[b]=M,p[b+1]=P;var R=M-k,W=P-T;E+=R*R+W*W}if(E<g){g=E,f=x;for(var $=0;$<p.length;$++)u[$]=p[$]}}r.push({from:d,to:u,fromCp:c,toCp:h,rotation:-f})}return r}function H6(n){return n.__isCombineMorphing}var uIe="__mOriginal_";function z6(n,e,t){var i=uIe+e,r=n[i]||n[e];n[i]||(n[i]=n[e]);var s=t.replace,o=t.after,a=t.before;n[e]=function(){var l=arguments,c;return a&&a.apply(this,l),s?c=s.apply(this,l):c=r.apply(this,l),o&&o.apply(this,l),c}}function rN(n,e){var t=uIe+e;n[t]&&(n[e]=n[t],n[t]=null)}function fIe(n,e){for(var t=0;t<n.length;t++)for(var i=n[t],r=0;r<i.length;){var s=i[r],o=i[r+1];i[r++]=e[0]*s+e[2]*o+e[4],i[r++]=e[1]*s+e[3]*o+e[5]}}function gIe(n,e){var t=n.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),r=BSt(RZ(t),RZ(i)),s=r[0],o=r[1],a=n.getComputedTransform(),l=e.getComputedTransform();function c(){this.transform=null}a&&fIe(s,a),l&&fIe(o,l),z6(e,"updateTransform",{replace:c}),e.transform=null;var h=zSt(s,o,10,Math.PI),d=[];z6(e,"buildPath",{replace:function(u){for(var f=e.__morphT,g=1-f,p=[],m=0;m<h.length;m++){var v=h[m],_=v.from,b=v.to,y=v.rotation*f,C=v.fromCp,x=v.toCp,L=Math.sin(y),D=Math.cos(y);$3(p,C,x,f);for(var E=0;E<_.length;E+=2){var k=_[E],T=_[E+1],I=b[E],N=b[E+1],M=k*g+I*f,P=T*g+N*f;d[E]=M*D-P*L+p[0],d[E+1]=M*L+P*D+p[1]}var R=d[0],W=d[1];u.moveTo(R,W);for(var E=2;E<_.length;){var I=d[E++],N=d[E++],$=d[E++],z=d[E++],K=d[E++],Y=d[E++];R===I&&W===N&&$===K&&z===Y?u.lineTo(K,Y):u.bezierCurveTo(I,N,$,z,K,Y),R=K,W=Y}}}})}function OZ(n,e,t){if(!n||!e)return e;var i=t.done,r=t.during;gIe(n,e),e.__morphT=0;function s(){rN(e,"buildPath"),rN(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},dt({during:function(o){e.dirtyShape(),r&&r(o)},done:function(){s(),i&&i()}},t)),e}function $St(n,e,t,i,r,s){var o=16;n=r===t?0:Math.round(32767*(n-t)/(r-t)),e=s===i?0:Math.round(32767*(e-i)/(s-i));for(var a=0,l,c=(1<<o)/2;c>0;c/=2){var h=0,d=0;(n&c)>0&&(h=1),(e&c)>0&&(d=1),a+=c*c*(3*h^d),d===0&&(h===1&&(n=c-1-n,e=c-1-e),l=n,n=e,e=l)}return a}function $6(n){var e=1/0,t=1/0,i=-1/0,r=-1/0,s=Le(n,function(a){var l=a.getBoundingRect(),c=a.getComputedTransform(),h=l.x+l.width/2+(c?c[4]:0),d=l.y+l.height/2+(c?c[5]:0);return e=Math.min(h,e),t=Math.min(d,t),i=Math.max(h,i),r=Math.max(d,r),[h,d]}),o=Le(s,function(a,l){return{cp:a,z:$St(a[0],a[1],e,t,i,r),path:n[l]}});return o.sort(function(a,l){return a.z-l.z}).map(function(a){return a.path})}function pIe(n){return VSt(n.path,n.count)}function VZ(){return{fromIndividuals:[],toIndividuals:[],count:0}}function USt(n,e,t){var i=[];function r(C){for(var x=0;x<C.length;x++){var L=C[x];H6(L)?r(L.childrenRef()):L instanceof Jt&&i.push(L)}}r(n);var s=i.length;if(!s)return VZ();var o=t.dividePath||pIe,a=o({path:e,count:s});if(a.length!==s)return console.error("Invalid morphing: unmatched splitted path"),VZ();i=$6(i),a=$6(a);for(var l=t.done,c=t.during,h=t.individualDelay,d=new ep,u=0;u<s;u++){var f=i[u],g=a[u];g.parent=e,g.copyTransform(d),h||gIe(f,g)}e.__isCombineMorphing=!0,e.childrenRef=function(){return a};function p(C){for(var x=0;x<a.length;x++)a[x].addSelfToZr(C)}z6(e,"addSelfToZr",{after:function(C){p(C)}}),z6(e,"removeSelfFromZr",{after:function(C){for(var x=0;x<a.length;x++)a[x].removeSelfFromZr(C)}});function m(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,rN(e,"addSelfToZr"),rN(e,"removeSelfFromZr")}var v=a.length;if(h)for(var _=v,b=function(){_--,_===0&&(m(),l&&l())},u=0;u<v;u++){var y=h?dt({delay:(t.delay||0)+h(u,v,i[u],a[u]),done:b},t):t;OZ(i[u],a[u],y)}else e.__morphT=0,e.animateTo({__morphT:1},dt({during:function(C){for(var x=0;x<v;x++){var L=a[x];L.__morphT=e.__morphT,L.dirtyShape()}c&&c(C)},done:function(){m();for(var C=0;C<n.length;C++)rN(n[C],"updateTransform");l&&l()}},t));return e.__zr&&p(e.__zr),{fromIndividuals:i,toIndividuals:a,count:v}}function GSt(n,e,t){var i=e.length,r=[],s=t.dividePath||pIe;function o(f){for(var g=0;g<f.length;g++){var p=f[g];H6(p)?o(p.childrenRef()):p instanceof Jt&&r.push(p)}}if(H6(n)){o(n.childrenRef());var a=r.length;if(a<i)for(var l=0,c=a;c<i;c++)r.push(rq(r[l++%a]));r.length=i}else{r=s({path:n,count:i});for(var h=n.getComputedTransform(),c=0;c<r.length;c++)r[c].setLocalTransform(h);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),VZ()}r=$6(r),e=$6(e);for(var d=t.individualDelay,c=0;c<i;c++){var u=d?dt({delay:(t.delay||0)+d(c,i,r[c],e[c])},t):t;OZ(r[c],e[c],u)}return{fromIndividuals:r,toIndividuals:e,count:e.length}}function mIe(n){return xe(n[0])}function vIe(n,e){for(var t=[],i=n.length,r=0;r<i;r++)t.push({one:n[r],many:[]});for(var r=0;r<e.length;r++){var s=e[r].length,o=void 0;for(o=0;o<s;o++)t[o%i].many.push(e[r][o])}for(var a=0,r=i-1;r>=0;r--)if(!t[r].many.length){var l=t[a].many;if(l.length<=1)if(a)a=0;else return t;var s=l.length,c=Math.ceil(s/2);t[r].many=l.slice(c,s),t[a].many=l.slice(0,c),a++}return t}var jSt={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),i=0;i<n.count;i++){var r=rq(n.path);r.setStyle("opacity",t),e.push(r)}return e},split:null};function FZ(n,e,t,i,r,s){if(!n.length||!e.length)return;var o=Cx("update",i,r);if(!(o&&o.duration>0))return;var a=i.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),c,h;mIe(n)&&(c=n,h=e),mIe(e)&&(c=e,h=n);function d(v,_,b,y,C){var x=v.many,L=v.one;if(x.length===1&&!C){var D=_?x[0]:L,E=_?L:x[0];if(H6(D))d({many:[D],one:E},!0,b,y,!0);else{var k=a?dt({delay:a(b,y)},l):l;OZ(D,E,k),s(D,E,D,E,k)}}else for(var T=dt({dividePath:jSt[t],individualDelay:a&&function(W,$,z,K){return a(W+b,y)}},l),I=_?USt(x,L,T):GSt(L,x,T),N=I.fromIndividuals,M=I.toIndividuals,P=N.length,R=0;R<P;R++){var k=a?dt({delay:a(R,P)},l):l;s(N[R],M[R],_?x[R]:v.one,_?v.one:x[R],k)}}for(var u=c?c===n:n.length>e.length,f=c?vIe(h,c):vIe(u?e:n,[u?n:e]),g=0,p=0;p<f.length;p++)g+=f[p].many.length;for(var m=0,p=0;p<f.length;p++)d(f[p],u,m,g),m+=f[p].many.length}function R1(n){if(!n)return[];if(xe(n)){for(var e=[],t=0;t<n.length;t++)e.push(R1(n[t]));return e}var i=[];return n.traverse(function(r){r instanceof Jt&&!r.disableMorphing&&!r.invisible&&!r.ignore&&i.push(r)}),i}var _Ie=1e4,qSt=0,bIe=1,yIe=2,KSt=vi();function YSt(n,e){for(var t=n.dimensions,i=0;i<t.length;i++){var r=n.getDimensionInfo(t[i]);if(r&&r.otherDims[e]===0)return t[i]}}function XSt(n,e,t){var i=n.getDimensionInfo(t),r=i&&i.ordinalMeta;if(i){var s=n.get(i.name,e);return r&&r.categories[s]||s+""}}function wIe(n,e,t,i){var r=i?"itemChildGroupId":"itemGroupId",s=YSt(n,r);if(s){var o=XSt(n,e,s);return o}var a=n.getRawDataItem(e),l=i?"childGroupId":"groupId";if(a&&a[l])return a[l]+"";if(!i)return t||n.getId(e)}function CIe(n){var e=[];return V(n,function(t){var i=t.data,r=t.dataGroupId;if(i.count()>_Ie){process.env.NODE_ENV!=="production"&&yr("Universal transition is disabled on large data > 10k.");return}for(var s=i.getIndices(),o=0;o<s.length;o++)e.push({data:i,groupId:wIe(i,o,r,!1),childGroupId:wIe(i,o,r,!0),divide:t.divide,dataIndex:o})}),e}function BZ(n,e,t){n.traverse(function(i){i instanceof Jt&&nr(i,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function WZ(n){if(n.parent){var e=n.getComputedTransform();n.setLocalTransform(e),n.parent.remove(n)}}function pL(n){n.stopAnimation(),n.isGroup&&n.traverse(function(e){e.stopAnimation()})}function ZSt(n,e,t){var i=Cx("update",t,e);i&&n.traverse(function(r){if(r instanceof Rh){var s=zat(r);s&&r.animateFrom({style:s},i)}})}function JSt(n,e){var t=n.length;if(t!==e.length)return!1;for(var i=0;i<t;i++){var r=n[i],s=e[i];if(r.data.getId(r.dataIndex)!==s.data.getId(s.dataIndex))return!1}return!0}function SIe(n,e,t){var i=CIe(n),r=CIe(e);function s(b,y,C,x,L){(C||b)&&y.animateFrom({style:C&&C!==b?_e(_e({},C.style),b.style):b.style},L)}var o=!1,a=qSt,l=Qe(),c=Qe();i.forEach(function(b){b.groupId&&l.set(b.groupId,!0),b.childGroupId&&c.set(b.childGroupId,!0)});for(var h=0;h<r.length;h++){var d=r[h].groupId;if(c.get(d)){a=bIe;break}var u=r[h].childGroupId;if(u&&l.get(u)){a=yIe;break}}function f(b,y){return function(C){var x=C.data,L=C.dataIndex;return y?x.getId(L):b?a===bIe?C.childGroupId:C.groupId:a===yIe?C.childGroupId:C.groupId}}var g=JSt(i,r),p={};if(!g)for(var h=0;h<r.length;h++){var m=r[h],v=m.data.getItemGraphicEl(m.dataIndex);v&&(p[v.id]=!0)}function _(b,y){var C=i[y],x=r[b],L=x.data.hostModel,D=C.data.getItemGraphicEl(C.dataIndex),E=x.data.getItemGraphicEl(x.dataIndex);if(D===E){E&&ZSt(E,x.dataIndex,L);return}D&&p[D.id]||E&&(pL(E),D?(pL(D),WZ(D),o=!0,FZ(R1(D),R1(E),x.divide,L,b,s)):BZ(E,L,b))}new hp(i,r,f(!0,g),f(!1,g),null,"multiple").update(_).updateManyToOne(function(b,y){var C=r[b],x=C.data,L=x.hostModel,D=x.getItemGraphicEl(C.dataIndex),E=Wi(Le(y,function(k){return i[k].data.getItemGraphicEl(i[k].dataIndex)}),function(k){return k&&k!==D&&!p[k.id]});D&&(pL(D),E.length?(V(E,function(k){pL(k),WZ(k)}),o=!0,FZ(R1(E),R1(D),C.divide,L,b,s)):BZ(D,L,C.dataIndex))}).updateOneToMany(function(b,y){var C=i[y],x=C.data.getItemGraphicEl(C.dataIndex);if(!(x&&p[x.id])){var L=Wi(Le(b,function(E){return r[E].data.getItemGraphicEl(r[E].dataIndex)}),function(E){return E&&E!==x}),D=r[b[0]].data.hostModel;L.length&&(V(L,function(E){return pL(E)}),x?(pL(x),WZ(x),o=!0,FZ(R1(x),R1(L),C.divide,D,b[0],s)):V(L,function(E){return BZ(E,D,b[0])}))}}).updateManyToMany(function(b,y){new hp(y,b,function(C){return i[C].data.getId(i[C].dataIndex)},function(C){return r[C].data.getId(r[C].dataIndex)}).update(function(C,x){_(b[C],y[x])}).execute()}).execute(),o&&V(e,function(b){var y=b.data,C=y.hostModel,x=C&&t.getViewOfSeriesModel(C),L=Cx("update",C,0);x&&C.isAnimationEnabled()&&L&&L.duration>0&&x.group.traverse(function(D){D instanceof Jt&&!D.animators.length&&D.animateFrom({style:{opacity:0}},L)})})}function xIe(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function LIe(n){return xe(n)?n.sort().join(","):n}function a_(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function QSt(n,e){var t=Qe(),i=Qe(),r=Qe();V(n.oldSeries,function(o,a){var l=n.oldDataGroupIds[a],c=n.oldData[a],h=xIe(o),d=LIe(h);i.set(d,{dataGroupId:l,data:c}),xe(h)&&V(h,function(u){r.set(u,{key:d,dataGroupId:l,data:c})})});function s(o){t.get(o)&&yr("Duplicated seriesKey in universalTransition "+o)}return V(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var a=o.get("dataGroupId"),l=o.getData(),c=xIe(o),h=LIe(c),d=i.get(h);if(d)process.env.NODE_ENV!=="production"&&s(h),t.set(h,{oldSeries:[{dataGroupId:d.dataGroupId,divide:a_(d.data),data:d.data}],newSeries:[{dataGroupId:a,divide:a_(l),data:l}]});else if(xe(c)){process.env.NODE_ENV!=="production"&&s(h);var u=[];V(c,function(p){var m=i.get(p);m.data&&u.push({dataGroupId:m.dataGroupId,divide:a_(m.data),data:m.data})}),u.length&&t.set(h,{oldSeries:u,newSeries:[{dataGroupId:a,data:l,divide:a_(l)}]})}else{var f=r.get(c);if(f){var g=t.get(f.key);g||(g={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:a_(f.data)}],newSeries:[]},t.set(f.key,g)),g.newSeries.push({dataGroupId:a,data:l,divide:a_(l)})}}}}),t}function DIe(n,e){for(var t=0;t<n.length;t++){var i=e.seriesIndex!=null&&e.seriesIndex===n[t].seriesIndex||e.seriesId!=null&&e.seriesId===n[t].id;if(i)return t}}function ext(n,e,t,i){var r=[],s=[];V(un(n.from),function(o){var a=DIe(e.oldSeries,o);a>=0&&r.push({dataGroupId:e.oldDataGroupIds[a],data:e.oldData[a],divide:a_(e.oldData[a]),groupIdDim:o.dimension})}),V(un(n.to),function(o){var a=DIe(t.updatedSeries,o);if(a>=0){var l=t.updatedSeries[a].getData();s.push({dataGroupId:e.oldDataGroupIds[a],data:l,divide:a_(l),groupIdDim:o.dimension})}}),r.length>0&&s.length>0&&SIe(r,s,i)}function txt(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){V(un(i.seriesTransition),function(r){V(un(r.to),function(s){for(var o=i.updatedSeries,a=0;a<o.length;a++)(s.seriesIndex!=null&&s.seriesIndex===o[a].seriesIndex||s.seriesId!=null&&s.seriesId===o[a].id)&&(o[a][l5]=!0)})})}),n.registerUpdateLifecycle("series:transition",function(e,t,i){var r=KSt(t);if(r.oldSeries&&i.updatedSeries&&i.optionChanged){var s=i.seriesTransition;if(s)V(un(s),function(f){ext(f,r,i,t)});else{var o=QSt(r,i);V(o.keys(),function(f){var g=o.get(f);SIe(g.oldSeries,g.newSeries,t)})}V(i.updatedSeries,function(f){f[l5]&&(f[l5]=!1)})}for(var a=e.getSeries(),l=r.oldSeries=[],c=r.oldDataGroupIds=[],h=r.oldData=[],d=0;d<a.length;d++){var u=a[d].getData();u.count()<_Ie&&(l.push(a[d]),c.push(a[d].get("dataGroupId")),h.push(u))}})}Kt([uft]),Kt([aft]),Kt([Mft,qft,ngt,Ogt,qgt,Apt,amt,Umt,uvt,_vt,Evt,w_t,j_t,n0t,b0t,S0t,A0t,W0t,Z0t,nbt,fbt,Ybt]),Kt(g1t),Kt(W1t),Kt(_2e),Kt(Q1t),Kt(BDe),Kt(nyt),Kt(uyt),Kt(Qyt),Kt(_wt),Kt(YI),Kt(Pwt),Kt(Fwt),Kt(Kwt),Kt(tCt),Kt(aCt),Kt(fCt),Kt(SCt),Kt(HCt),Kt(ATe),Kt(VTe),Kt(aSt),Kt(QTe),Kt(tIe),Kt(uSt),Kt(LSt),Kt(kSt),Kt(txt),Kt(Eut);const ixt=Yn({__name:"echartsNode",setup(n){const e=w.inject("width"),t=w.inject("height"),i=w.inject("x6NodeData"),r=w.ref(null);let s=null,o=null;const a=w.computed(()=>{var d,u;return(u=(d=i.value)==null?void 0:d.chart)==null?void 0:u.option}),l=w.computed(()=>{var d,u;return(u=(d=i.value)==null?void 0:d.chart)==null?void 0:u.data}),c=d=>{if(!(!s||!d)&&Array.isArray(l.value.x)&&Array.isArray(l.value.y)){if(d.xAxis&&d.yAxis){d.xAxis.data=l.value.x??[],l.value.y[0]&&Array.isArray(l.value.y[0])?d.series.forEach((u,f)=>{d.series[f].data=l.value.y[f]??[]}):d.series.length>0&&(d.series[0].data=l.value.y),s.setOption(d,!0);return}else if(d.series[0]){const u=[];let f=(l.value.x??[]).length;for(let g=0;g<f;g++)u.push({value:l.value.y[g],name:l.value.x[g]});d.series[0].data=u,s.setOption(d,!0)}}},h=O0e(()=>{s&&s.resize()},200);return w.onMounted(()=>{a.value&&setTimeout(()=>{s=Yht(r.value),c(a.value)},200),r.value&&(o=new ResizeObserver(()=>{h()}),o.observe(r.value))}),w.watch(a,()=>{c(JSON.parse(JSON.stringify(a.value)))},{deep:!0}),w.watch(l,()=>{c(JSON.parse(JSON.stringify(a.value)))},{deep:!0}),w.onBeforeUnmount(()=>{o&&(o.disconnect(),o=null),s&&(s.dispose(),s=null)}),(d,u)=>(w.openBlock(),w.createElementBlock("div",{ref_key:"chartEl",ref:r,class:"echartsNode",style:w.normalizeStyle({width:w.unref(e)+"px",height:w.unref(t)+"px"})},null,4))}},[["__scopeId","data-v-cdd874b3"]]),nxt={name:"",visible:!0,borderStyle:"none",borderRadius:0,borderWidth:0,borderColor:"#5F95FF",opacity:1,backgroundImage:"none",backgroundColor:"transparent",color:"#ffffff",toFix:2,dataSource:{bindNode:[],type:"none",path:"",point:{},httpType:"GET",httpUrl:"",params:[],httpTimer:-1,parse:null,fields:{文本:"text",字体颜色:"color",背景颜色:"backgroundColor",绑定值:"model.modelValue",选项值:"model.option",是否可见:"visible",层级:"zIndex"}},model:{modelValue:null,option:[],buttonConfirmTips:"确认要执行此操作吗?"},status:[]},HZ={"image-node":Jnt,"svg-node":Unt,"text-node":jnt,"form-node":Ynt,"table-node":rrt,"echart-node":ixt},zZ=()=>{Object.keys(HZ).forEach(n=>{Ont({shape:n,width:50,height:50,data:{...nxt},component:{render(){return w.h(Bnt,null,{default:()=>w.h(HZ[n])})}}})})},EIe={Blank:"blank"},mL=Fg.defineStore("property",{state:()=>({targetType:EIe.Blank,cellId:null,tabs:["画布"],activeTab:0,globalVars:[]}),getters:{},actions:{setTarget(n,e){this.targetType=n,n===EIe.Blank?this.tabs=["画布"]:this.tabs=["外观","数据"],this.activeTab=0,this.cellId=e}}}),$Z={backgroundColor:"#6b6b6b26",backgroundImage:null},Ds=Fg.defineStore("editor-graph",{state:()=>({el:null,graph:null,dnd:null,style:{...$Z,width:1920,height:1080},name:"",id:"",zoom:100}),getters:{hasGraph:n=>!!n.graph},actions:{init(){if(this.el===null)return;this.graph&&this.graph.dispose(),this.graph=new be({container:this.el,autoResize:!0,mousewheel:{enabled:!0,factor:.1},panning:!1,scaling:{min:.5,max:2},background:{color:"#000000"},grid:{size:5,visible:!0,type:"mesh",args:{color:"rgba(100, 100, 100, 0.6)",thickness:1}},translating:{restrict:!0},connecting:{router:"orth",connector:{name:"normal"},args:{padding:0,direction:"H"},anchor:"center",connectionPoint:"anchor",allowBlank:!0,allowLoop:!1,allowMulti:!1,snap:{radius:20},validateConnection({targetMagnet:e}){return!!e}},highlighting:{magnetAdsorbed:{name:"stroke",args:{attrs:{fill:"#5F95FF",stroke:"#5F95FF"}}}}}),this.graph.use(new T0e({enabled:!0}));const n=new D0e({pageWidth:this.style.width,pageHeight:this.style.height,enabled:!0,pannable:!0,autoResize:!1});this.graph.use(n),this.dnd=new fG({target:this.graph,validateNode(){return!0}}),this.graph.use(new M0e({resizing:!0,rotating:!0})),this.graph.use(new W_e({enabled:!0})),this.graph.use(new v0e({enabled:!0,global:!1})).use(new y0e({rubberband:!0,showNodeSelectionBox:!0,showEdgeSelectionBox:!1,modifiers:["meta","shift","ctrl"]})).use(new u0e),zZ(),this.initEvent()},loadMenu({name:n,id:e,value:t,style:i}){if(!this.graph)return;this.name=n,this.id=e,this.graph.fromJSON(t||{}),i?this.style={...this.style,...$Z,...i}:this.style={...this.style,...$Z};const r=Math.min(1280/this.style.width,840/this.style.height);this.graph.zoomTo(r),setTimeout(()=>{this.graph.center(),mL().setTarget("blank",null)},100)},setZoom(n){this.zoom=Number(n),this.graph.zoomTo(n)},updateSize(n,e,t){this.style.width=n,this.style.height=e,this.init(),setTimeout(()=>{t&&t()},100)},syncDataToAttrs(n){if(!n||Object.keys(HZ).includes(n.shape))return;const e=n.getData?n.getData()||{}:{};e.type==="line"&&(n.attr("line/stroke",e.color),e.flow?n.attr("line1/style/animation","ant-line1 30s infinite linear"):n.attr("line1/style/animation","ant-line 30s infinite linear"))},groupSelectedNodes(){if(!this.graph)return null;const n=this.graph.getSelectedCells(),e=n.filter(a=>a.isNode()&&!a.id.includes("group"));if(e.length<2)return null;const t=n.filter(a=>a.isNode()&&a.id.includes("group"));t.length>0&&this.graph.removeCells(t);const i=e.reduce((a,l)=>{const c=l.getBBox();return a.minX=Math.min(a.minX,c.x),a.minY=Math.min(a.minY,c.y),a.maxX=Math.max(a.maxX,c.x+c.width),a.maxY=Math.max(a.maxY,c.y+c.height),a},{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}),r=10,s=this.graph.addNode({id:`group-${Date.now()}`,shape:"rect",x:i.minX-r,y:i.minY-r,width:i.maxX-i.minX+r*2,height:i.maxY-i.minY+r*2,attrs:{body:{fill:"rgba(69, 131, 255, 0.08)",stroke:"#4583ff",strokeWidth:1,strokeDasharray:"6 4"}},data:{type:"group",name:"组合",opacity:1,borderStyle:"dashed",borderRadius:0,borderWidth:1,borderColor:"#4583ff",backgroundColor:"rgba(69, 131, 255, 0.08)"},zIndex:1e3});return e.forEach(a=>{s.addChild(a)}),this.graph.cleanSelection(),this.graph.select(s),mL().setTarget("node",s.id),s},initEvent(){this.graph.on("node:moving",r=>{}),this.graph.on("scale",({sx:r,sy:s})=>{this.zoom=Number((r*100).toFixed(0))});const n=mL();this.graph.on("blank:click",({e:r,x:s,y:o})=>{n.setTarget("blank",null)}),this.graph.on("edge:click",({e:r,x:s,y:o,edge:a})=>{n.setTarget("edge",a.id),this.graph.select([a.getSourceNode(),a.getTargetNode()])}),this.graph.on("node:click",({e:r,x:s,y:o,node:a})=>{var l;if((l=a.id)!=null&&l.includes("line")){this.graph.clearTransformWidgets(),r.stopPropagation();return}n.setTarget("node",a.id)}),this.graph.on("edge:change:data",({edge:r})=>{this.syncDataToAttrs(r)}),this.graph.on("node:added",({node:r})=>{this.syncDataToAttrs(r)}),this.graph.on("edge:mouseenter",({cell:r})=>{r.addTools([{name:"vertices",args:{attrs:{fill:"#666"},modifiers:["meta","shift","ctrl"]}}])}),this.graph.on("edge:mouseleave",({cell:r})=>{r.hasTool("vertices")&&r.removeTool("vertices"),r.hasTool("source-arrowhead")&&r.removeTool("source-arrowhead"),r.hasTool("target-arrowhead")&&r.removeTool("target-arrowhead")}),this.graph.bindKey(["meta+c","ctrl+c"],()=>{const r=this.graph.getSelectedCells();if(!r.length)return!1;const o=r.filter(u=>u.isNode()&&u.id.includes("group")).flatMap(u=>u.getChildren?u.getChildren()||[]:[]),a=r.filter(u=>u.isNode()),l=r.filter(u=>u.isEdge()),c=[...a,...o],h=this.graph.getEdges().filter(u=>{const f=u.getSourceCell&&u.getSourceCell(),g=u.getTargetCell&&u.getTargetCell();return c.includes(f)||c.includes(g)}),d=[...r,...c,...l,...h].reduce((u,f)=>(u.set(f.id,f),u),new Map);return this.graph.copy([...d.values()]),!1}),this.graph.bindKey(["meta+x","ctrl+x"],()=>{const r=this.graph.getSelectedCells();return r.length&&this.graph.cut(r),!1}),this.graph.bindKey(["meta+v","ctrl+v"],()=>{if(!this.graph.isClipboardEmpty()){const r=this.graph.paste({offset:32});this.graph.cleanSelection(),this.graph.select(r)}return!1}),this.graph.bindKey(["meta+z","ctrl+z"],()=>(this.graph.canUndo()&&this.graph.undo(),!1)),this.graph.bindKey(["meta+shift+z","ctrl+shift+z"],()=>(this.graph.canRedo()&&this.graph.redo(),!1)),this.graph.bindKey(["meta+a","ctrl+alt+a"],()=>{const r=this.graph.getNodes();r&&this.graph.select(r)}),this.graph.bindKey("backspace",()=>{const r=this.graph.getSelectedCells();r.length&&(this.graph.removeCells(r),n.setTarget("blank",null))});const e=(r=0,s=0)=>{const o=this.graph.getSelectedCells().filter(a=>a.isNode());if(o.length)return o.forEach(a=>{const{x:l,y:c}=a.getPosition();a.position(l+r,c+s)}),!1},t=5;this.graph.bindKey(["meta+up","ctrl+up"],()=>e(0,-t)),this.graph.bindKey(["meta+down","ctrl+down"],()=>e(0,t)),this.graph.bindKey(["meta+left","ctrl+left"],()=>e(-t,0)),this.graph.bindKey(["meta+right","ctrl+right"],()=>e(t,0));const i=(r,s)=>{for(let o=0,a=r.length;o<a;o+=1)r[o].style.visibility=s?"visible":"hidden"};this.graph.on("node:mouseenter",()=>{const r=this.el.querySelectorAll(".x6-port-body");i(r,!0)}),this.graph.on("node:mouseleave",()=>{const r=this.el.querySelectorAll(".x6-port-body");i(r,!1)})}}}),vL=Fg.defineStore("menus",{state:()=>({menus:[],current:[],services:{}}),getters:{currentMenu:n=>{var e;return(e=n.menus.find(t=>t.id===n.current[0]))==null?void 0:e.children.find(t=>t.id===n.current[1])}},actions:{async setCurrentMenu(n,e=!1){const t=Ds();if(JSON.stringify(n)===JSON.stringify(this.current)&&e===!1)return!1;this.current=n,t.loadMenu(await this.services.getMenu(n[1]))},async loadAllMenus(n=!1){var e;this.menus=await((e=this.services)==null?void 0:e.getAllMenus()),n&&this.menus[0]&&this.menus[0].children[0]&&this.setCurrentMenu([this.menus[0].id,this.menus[0].children[0].id])},async addMenu(n,e){var i;const t=await((i=this.services)==null?void 0:i.addMenu(n));this.loadAllMenus(),this.setCurrentMenu([t.parentId,t.id]),e&&e()},async saveMenu(n){const e=Ds(),t={name:e.name,id:this.current[1],parentId:this.current[0],style:e.style,value:e.graph.toJSON()};await this.services.saveMenus(t),n&&n()},clearMenu(n){const e=Ds(),t={name:e.name,id:this.current[1],parentId:this.current[0],style:e.style,value:{}};this.services.saveMenus(t),e.graph.clearCells(),n&&n()},async removeMenu(n){if(await this.services.removeMenu(this.current[1]),await this.loadAllMenus(),this.menus[0]&&this.menus[0].children[0])this.setCurrentMenu([this.menus[0].id,this.menus[0].children[0].id]);else{const e=Ds();e.graph.clearCells(),e.name="",e.id=""}n&&n()}}}),rxt={class:"dialog-footer"},sxt={__name:"addMenu",emits:["close"],setup(n,{emit:e}){const t=vL(),{menus:i}=Fg.storeToRefs(t),r=e,s=w.ref(!1);function o(){s.value=!1,r("close")}const a=w.ref(null),l=w.ref({parent:null,parentNameNew:"",name:""}),c=w.ref({parent:[{required:!0,message:"请选择上级目录",trigger:"change"}],parentNameNew:{required:!0,message:"请输入一级目录名称",trigger:"blur"},name:[{required:!0,message:"请输入二级目录名称",trigger:"blur"}]}),h=w.ref(!1),d=async()=>{if(a.value){h.value=!0;try{await a.value.validate((u,f)=>{u&&t.addMenu(l.value,()=>{o()})})}catch{}finally{h.value=!1}}};return w.onMounted(()=>{s.value=!0}),(u,f)=>{const g=w.resolveComponent("el-option"),p=w.resolveComponent("el-select"),m=w.resolveComponent("el-form-item"),v=w.resolveComponent("el-input"),_=w.resolveComponent("el-form"),b=w.resolveComponent("el-button"),y=w.resolveComponent("el-dialog");return w.openBlock(),w.createBlock(y,{modelValue:s.value,"onUpdate:modelValue":f[3]||(f[3]=C=>s.value=C),title:"新增目录",width:"500"},{footer:w.withCtx(()=>[w.createElementVNode("div",rxt,[w.createVNode(b,{onClick:o},{default:w.withCtx(()=>[...f[4]||(f[4]=[w.createTextVNode("取消",-1)])]),_:1}),w.createVNode(b,{type:"primary",onClick:d},{default:w.withCtx(()=>[...f[5]||(f[5]=[w.createTextVNode("确定",-1)])]),_:1})])]),default:w.withCtx(()=>[w.createVNode(_,{ref_key:"formRef",ref:a,model:l.value,"label-width":"auto",style:{padding:"10px 20px"},rules:c.value},{default:w.withCtx(()=>[w.createVNode(m,{label:"上级目录",prop:"parent"},{default:w.withCtx(()=>[w.createVNode(p,{modelValue:l.value.parent,"onUpdate:modelValue":f[0]||(f[0]=C=>l.value.parent=C),placeholder:"请选择上级目录"},{default:w.withCtx(()=>[w.createVNode(g,{value:"0",label:"根目录"}),(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(w.unref(i),C=>(w.openBlock(),w.createBlock(g,{key:C.id,label:C.name,value:C.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l.value.parent=="0"?(w.openBlock(),w.createBlock(m,{key:0,label:"一级目录名称",prop:"parentNameNew"},{default:w.withCtx(()=>[w.createVNode(v,{modelValue:l.value.parentNameNew,"onUpdate:modelValue":f[1]||(f[1]=C=>l.value.parentNameNew=C)},null,8,["modelValue"])]),_:1})):w.createCommentVNode("",!0),w.createVNode(m,{label:"二级目录名称",prop:"name"},{default:w.withCtx(()=>[w.createVNode(v,{modelValue:l.value.name,"onUpdate:modelValue":f[2]||(f[2]=C=>l.value.name=C)},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])}}},oxt=Yn({__name:"previewBox",emits:["close"],setup(n,{emit:e}){const t=Ds(),i=w.ref(null);zZ();const r=mG(),s=e;function o(){s("close")}let a=null;return w.onMounted(()=>{const{width:l,height:c}=t.style;a=new be({container:i.value,width:l,height:c,interacting:{nodeMovable:!1,edgeMovable:!1,magnetConnectable:!1,arrowheadMovable:!1,vertexMovable:!1},selecting:!1,keyboard:!1,mousewheel:!1,panning:!1});const h=t.graph.toJSON();a.fromJSON(h),a.drawBackground({color:t.style.backgroundColor,image:t.style.backgroundImage,size:"cover"})}),w.onBeforeUnmount(()=>{a&&a.dispose()}),(l,c)=>(w.openBlock(),w.createElementBlock("div",{class:"previewBox",onClick:w.withModifiers(o,["self"])},[w.createElementVNode("div",{ref_key:"container",ref:i,class:"ems-preview"},null,512),w.createVNode(w.unref(r))]))}},[["__scopeId","data-v-2dc9daa6"]]),axt={class:"toolBox"},lxt={class:"left"},cxt={class:"right"},hxt={key:0,class:"iconfont icon-suoding1",style:{color:"#4583ff"}},dxt={key:1,class:"iconfont icon-jiesuo1"},uxt=Yn({__name:"index",setup(n){const e=vL(),t=Ds(),{zoom:i}=Fg.storeToRefs(t),r=w.ref(!1),s=()=>{r.value=!0},o=()=>{e.saveMenu(()=>{vn.ElMessage.success("保存成功!"),e.loadAllMenus()})};function a(b){const y=/Mac|iPod|iPhone|iPad/.test(navigator.platform);(y&&b.metaKey&&b.key==="s"||!y&&b.ctrlKey&&b.key==="s")&&(b.preventDefault(),o())}const l=()=>{vn.ElMessageBox.confirm("确认清空画布吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{e.clearMenu(()=>{vn.ElMessage.success("清空成功!")})})},c=()=>{if(!t.groupSelectedNodes()){vn.ElMessage.warning("请先框选至少两个节点后再组合");return}vn.ElMessage.success("组合完成")},h=()=>{vn.ElMessageBox.confirm("确认删除画布吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{e.removeMenu(()=>{vn.ElMessage.success("删除成功!")})})},d=w.ref(!1),u=()=>{d.value=!0},f=b=>{t.setZoom(+b*.1)},g=t.graph;g.on("blank:click",({x:b,y})=>{}),g.on("mousemove",({x:b,y})=>{}),g.on("blank:contextmenu",({e:b})=>{});const p=w.ref(!1),m=()=>{g.isMouseWheelEnabled()?(p.value=!0,g.disablePanning(),g.disableMouseWheel()):(p.value=!1,g.enablePanning(),g.enableMouseWheel())},v=()=>{console.info(g.toJSON())},_=b=>{const y=t.graph;if(!y)return;const C=y.getSelectedCells().filter(k=>{var T;return k.isNode&&k.isNode()&&!((T=k.id)!=null&&T.includes("line"))});if(C.length<2){vn.ElMessage.warning("请先框选至少两个节点");return}const x=C.reduce((k,T)=>{const I=T.getBBox();return k.minX=Math.min(k.minX,I.x),k.minY=Math.min(k.minY,I.y),k.maxX=Math.max(k.maxX,I.x+I.width),k.maxY=Math.max(k.maxY,I.y+I.height),k},{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}),L=String(b),D=(x.minY+x.maxY)/2,E=(x.minX+x.maxX)/2;C.forEach(k=>{const T=k.getBBox(),{x:I,y:N}=k.getPosition();let M=I,P=N;L==="1"?P=x.minY:L==="2"?P=D-T.height/2:L==="3"?P=x.maxY-T.height:L==="4"?M=x.minX:L==="5"?M=E-T.width/2:L==="6"&&(M=x.maxX-T.width),k.position(M,P)})};return w.onMounted(()=>{window.addEventListener("keydown",a)}),w.onBeforeUnmount(()=>{window.removeEventListener("keydown",a)}),(b,y)=>{const C=w.resolveComponent("el-tooltip"),x=w.resolveComponent("el-dropdown-item"),L=w.resolveComponent("el-dropdown-menu"),D=w.resolveComponent("el-dropdown"),E=w.resolveComponent("el-button");return w.openBlock(),w.createElementBlock(w.Fragment,null,[w.createElementVNode("div",axt,[w.createElementVNode("div",lxt,[w.createElementVNode("a",{onClick:s},[w.createVNode(C,{effect:"light",content:"新增",placement:"bottom","popper-class":"tooltipcolor"},{default:w.withCtx(()=>[...y[2]||(y[2]=[w.createElementVNode("i",{class:"iconfont icon-xinjian"},null,-1)])]),_:1})]),w.createElementVNode("a",{onClick:o},[w.createVNode(C,{effect:"light",content:"保存",placement:"bottom","popper-class":"tooltipcolor"},{default:w.withCtx(()=>[...y[3]||(y[3]=[w.createElementVNode("i",{class:"iconfont icon-baocun"},null,-1)])]),_:1})]),w.createElementVNode("a",{onClick:l},[w.createVNode(C,{effect:"light",content:"清空",placement:"bottom","popper-class":"tooltipcolor"},{default:w.withCtx(()=>[...y[4]||(y[4]=[w.createElementVNode("i",{class:"iconfont icon-qingkong"},null,-1)])]),_:1})]),w.createElementVNode("a",{onClick:c},[w.createVNode(C,{effect:"light",content:"组合",placement:"bottom","popper-class":"tooltipcolor"},{default:w.withCtx(()=>[...y[5]||(y[5]=[w.createElementVNode("i",{class:"iconfont icon-jianlizuhe1"},null,-1)])]),_:1})]),w.createElementVNode("a",{onClick:h},[w.createVNode(C,{effect:"light",content:"删除",placement:"bottom","popper-class":"tooltipcolor"},{default:w.withCtx(()=>[...y[6]||(y[6]=[w.createElementVNode("i",{class:"iconfont icon-shanchu"},null,-1)])]),_:1})])]),y[17]||(y[17]=w.createElementVNode("div",{style:{flex:"1"}},null,-1)),w.createElementVNode("div",null,[w.createVNode(D,{onCommand:f,"split-button":"",type:"primary",plain:"",size:"small",style:{"line-height":"40px",width:"100px"}},{dropdown:w.withCtx(()=>[w.createVNode(L,null,{default:w.withCtx(()=>[(w.openBlock(),w.createElementBlock(w.Fragment,null,w.renderList(20,k=>(w.openBlock(),w.createElementBlock(w.Fragment,null,[k>=5&&k<=20?(w.openBlock(),w.createBlock(x,{key:0,command:k},{default:w.withCtx(()=>[w.createTextVNode(w.toDisplayString(k)+"0%",1)]),_:2},1032,["command"])):w.createCommentVNode("",!0)],64))),64))]),_:1})]),default:w.withCtx(()=>[w.createTextVNode(w.toDisplayString(w.unref(i))+"% ",1)]),_:1}),w.createVNode(D,{placement:"top-start",onCommand:_},{dropdown:w.withCtx(()=>[w.createVNode(L,null,{default:w.withCtx(()=>[w.createVNode(x,{command:"1"},{default:w.withCtx(()=>[...y[8]||(y[8]=[w.createTextVNode("水平居上对齐",-1)])]),_:1}),w.createVNode(x,{command:"2"},{default:w.withCtx(()=>[...y[9]||(y[9]=[w.createTextVNode("水平居中对齐",-1)])]),_:1}),w.createVNode(x,{command:"3"},{default:w.withCtx(()=>[...y[10]||(y[10]=[w.createTextVNode("水平居下对齐",-1)])]),_:1}),w.createVNode(x,{command:"4"},{default:w.withCtx(()=>[...y[11]||(y[11]=[w.createTextVNode("垂直居左对齐",-1)])]),_:1}),w.createVNode(x,{command:"5"},{default:w.withCtx(()=>[...y[12]||(y[12]=[w.createTextVNode("垂直居中对齐",-1)])]),_:1}),w.createVNode(x,{command:"6"},{default:w.withCtx(()=>[...y[13]||(y[13]=[w.createTextVNode("垂直居右对齐",-1)])]),_:1})]),_:1})]),default:w.withCtx(()=>[w.createVNode(E,{size:"small",style:{height:"26px"}},{default:w.withCtx(()=>[...y[7]||(y[7]=[w.createTextVNode(" 对齐 ",-1)])]),_:1})]),_:1})]),y[18]||(y[18]=w.createElementVNode("div",{style:{flex:"1"}},null,-1)),w.createElementVNode("div",cxt,[w.createElementVNode("a",{onClick:m},[w.createVNode(C,{effect:"light",content:"锁定/解锁画布",placement:"bottom","popper-class":"tooltipcolor"},{default:w.withCtx(()=>[p.value?(w.openBlock(),w.createElementBlock("i",hxt)):(w.openBlock(),w.createElementBlock("i",dxt))]),_:1})]),w.createElementVNode("a",{onClick:u},[w.createVNode(C,{effect:"light",content:"预览",placement:"bottom","popper-class":"tooltipcolor"},{default:w.withCtx(()=>[...y[14]||(y[14]=[w.createElementVNode("i",{class:"iconfont icon-yulan"},null,-1)])]),_:1})]),w.createElementVNode("a",{onClick:v},[w.createVNode(C,{effect:"light",content:"导出",placement:"bottom","popper-class":"tooltipcolor"},{default:w.withCtx(()=>[...y[15]||(y[15]=[w.createElementVNode("i",{class:"iconfont icon-daochu"},null,-1)])]),_:1})]),w.createElementVNode("a",null,[w.createVNode(C,{effect:"light",content:"导入",placement:"bottom","popper-class":"tooltipcolor"},{default:w.withCtx(()=>[...y[16]||(y[16]=[w.createElementVNode("i",{class:"iconfont icon-daoru"},null,-1)])]),_:1})])])]),r.value?(w.openBlock(),w.createBlock(sxt,{key:0,onClose:y[0]||(y[0]=k=>r.value=!1)})):w.createCommentVNode("",!0),d.value?(w.openBlock(),w.createBlock(oxt,{key:1,onClose:y[1]||(y[1]=k=>d.value=!1)})):w.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-4ec2aff8"]]),fxt={class:"editorArea"},gxt={class:"drawBox"},pxt={style:{width:"100%",height:"100%"}},mxt=Yn({__name:"editorArea",props:["width","height"],setup(n){const e=vL(),t=Ds(),{style:i}=Fg.storeToRefs(t),r=n,s=w.ref(null),o=mG(),a=w.inject("topoApi");return w.provide("graph",()=>t.graph),w.onMounted(()=>{t.el=s.value,t.style.height=r.height||1080,t.style.width=r.width||1920,t.init(),e.services=a,e.loadAllMenus(!0)}),w.onBeforeUnmount(()=>{t.graph&&t.graph.dispose()}),(l,c)=>(w.openBlock(),w.createElementBlock("div",fxt,[w.unref(t).graph?(w.openBlock(),w.createBlock(uxt,{key:0})):w.createCommentVNode("",!0),w.createElementVNode("div",gxt,[w.createElementVNode("div",pxt,[w.createElementVNode("div",{ref_key:"container",ref:s,class:"editor-container",style:w.normalizeStyle({backgroundColor:w.unref(i).backgroundColor,backgroundImage:w.unref(i).backgroundImage?`url(${w.unref(i).backgroundImage})`:"none"})},null,4),w.createVNode(w.unref(o))])])]))}},[["__scopeId","data-v-2cac8846"]]),vxt={class:"groups-menus"},_xt=Yn({__name:"menus",setup(n){const e=vL(),{menus:t,current:i}=Fg.storeToRefs(e),r=(s,o)=>{e.setCurrentMenu(o)};return w.onMounted(()=>{}),(s,o)=>{const a=w.resolveComponent("el-icon"),l=w.resolveComponent("el-menu-item"),c=w.resolveComponent("el-sub-menu"),h=w.resolveComponent("el-menu");return w.openBlock(),w.createElementBlock("div",vxt,[w.createVNode(h,{"default-active":w.unref(i)[1],onSelect:r,"background-color":"transparent"},{default:w.withCtx(()=>[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(w.unref(t),d=>(w.openBlock(),w.createBlock(c,{key:d.id,index:d.id,"popper-offset":100},{title:w.withCtx(()=>[w.createVNode(a,null,{default:w.withCtx(()=>[w.createVNode(w.unref(h$e))]),_:1}),w.createElementVNode("span",null,w.toDisplayString(d.name),1)]),default:w.withCtx(()=>[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(d.children,u=>(w.openBlock(),w.createBlock(l,{key:u.id,index:u.id},{title:w.withCtx(()=>[w.createTextVNode(w.toDisplayString(u.name),1)]),default:w.withCtx(()=>[w.createVNode(a,null,{default:w.withCtx(()=>[w.createVNode(w.unref(Xfe))]),_:1})]),_:2},1032,["index"]))),128))]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"])])}}},[["__scopeId","data-v-65d960c6"]]),bxt=Object.assign({"../../../assets/iconfont/svg/A相手车刀闸合.svg":'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M511.9872 921.5232l-0.0896 0.0768-31.6736-31.68 0.0768-0.0768-76.864-76.864 31.6736-31.68 76.8768 76.864 76.864-76.864 31.6736 31.68-76.864 76.864 0.0768 0.0768L512.064 921.6z m0-102.4l-0.0896 0.0768-31.6736-31.68 0.0768-0.0768-76.864-76.864 31.6736-31.68 54.4896 54.4832V290.6176l-54.4896 54.464-31.6736-31.68 76.864-76.8384-0.0768-0.0704 31.6736-31.68 0.0896 0.0768 0.0768-0.0768 31.6736 31.68-0.0768 0.0704 76.864 76.8384-31.6736 31.68-54.4512-54.432v442.7008l54.4512-54.4512 31.6736 31.68-76.864 76.864 0.0768 0.0768L512.064 819.2z m0-653.2864L435.1104 242.6816l-31.6736-31.68 76.864-76.8384-0.0768-0.0704 31.6736-31.68 0.0896 0.0768 0.0768-0.0768 31.6736 31.68-0.0768 0.0704 76.864 76.8384-31.6736 31.68z" fill="#EF5317" /></svg>',"../../../assets/iconfont/svg/三绕组变压器.svg":'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M544 64v268.256a192.064 192.064 0 0 1 147.84 256.704A192 192 0 1 1 512 904.608a192 192 0 1 1-179.84-315.68A192.064 192.064 0 0 1 480 332.256V64h64z m-197.44 555.072l-5.856 0.832A160.032 160.032 0 0 0 368 937.6a159.68 159.68 0 0 0 124.48-59.456 190.72 190.72 0 0 1-28.48-100.544c0-23.68 4.288-46.4 12.16-67.36a192 192 0 0 1-125.12-83.904l-4.48-7.264z m330.88-0.064l-0.8 1.44a192.192 192.192 0 0 1-128.832 89.824A190.72 190.72 0 0 1 560 777.6a191.104 191.104 0 0 1-28.384 100.544 160 160 0 1 0 145.824-259.104zM509.344 713.6l-2.016 4.8A159.584 159.584 0 0 0 496 777.6c0 25.024 5.76 48.672 16 69.76a158.72 158.72 0 0 0 16-69.76c0-22.784-4.768-44.448-13.344-64.064l-5.312 0.032z m-124.608-95.104l1.28 1.76a159.84 159.84 0 0 0 104.544 59.968l1.824-3.136a159.456 159.456 0 0 0-107.648-58.592z m254.56 0.064l-3.872 0.384a159.808 159.808 0 0 0-103.872 58.144l1.92 3.072a159.488 159.488 0 0 0 100.96-55.52l4.864-6.08zM512 361.6a160 160 0 0 0-146.656 224.064l2.656-0.064c57.344 0 108.8 25.152 144 64.992a191.552 191.552 0 0 1 144-64.992h2.688a160 160 0 0 0-146.688-224z" /></svg>',"../../../assets/iconfont/svg/变压器_1.svg":'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M533.0944 534.3232c-82.1248 0-148.8896-66.7648-148.8896-148.8896s66.7648-148.8896 148.8896-148.8896 148.8896 66.7648 148.8896 148.8896-66.7648 148.8896-148.8896 148.8896z m0-277.504c-70.8608 0-128.4096 57.5488-128.4096 128.4096s57.5488 128.4096 128.4096 128.4096c70.8608 0 128.4096-57.5488 128.4096-128.4096s-57.5488-128.4096-128.4096-128.4096z" fill="#E60012" /><path d="M633.6512 459.9808h-200.704l98.7136-158.1056 101.9904 158.1056z m-163.84-20.48h126.1568l-64.1024-99.5328-62.0544 99.5328z" fill="#E60012" /><path d="M533.0944 694.272c-82.1248 0-148.8896-66.7648-148.8896-148.8896s66.7648-148.8896 148.8896-148.8896 148.8896 66.7648 148.8896 148.8896c0 81.92-66.7648 148.8896-148.8896 148.8896z m0-277.504c-70.8608 0-128.4096 57.5488-128.4096 128.4096s57.5488 128.4096 128.4096 128.4096c70.8608 0 128.4096-57.5488 128.4096-128.4096s-57.5488-128.4096-128.4096-128.4096z" fill="#EF7C1B" /><path d="M522.8544 611.9424h20.48v317.0304h-20.48z" fill="#EF7C1B" /><path d="M522.8544 57.9584h20.48v192.512h-20.48z" fill="#E60012" /><path d="M534.7328 632.832l-90.9312-101.9904 15.1552-13.5168 75.3664 84.3776 72.704-84.3776 15.5648 13.5168z" fill="#EF7C1B" /></svg>',"../../../assets/iconfont/svg/变压器_2.svg":'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M512 170.666667c-117.824 0-213.333333 95.509333-213.333333 213.333333s95.509333 213.333333 213.333333 213.333333 213.333333-95.509333 213.333333-213.333333S629.824 170.666667 512 170.666667zM256 384c0-141.376 114.624-256 256-256s256 114.624 256 256-114.624 256-256 256-256-114.624-256-256z" fill="#000000" /><path d="M512 426.666667c-117.824 0-213.333333 95.509333-213.333333 213.333333s95.509333 213.333333 213.333333 213.333333 213.333333-95.509333 213.333333-213.333333-95.509333-213.333333-213.333333-213.333333zM256 640c0-141.376 114.624-256 256-256s256 114.624 256 256-114.624 256-256 256-256-114.624-256-256z" fill="#000000" /><path d="M490.666667 981.333333v-106.666666h42.666666v106.666666h-42.666666zM490.666667 149.333333V42.666667h42.666666v106.666666h-42.666666z" fill="#000000" /></svg>',"../../../assets/iconfont/svg/手持开关盒.svg":'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M431.431671 299.041479h159.572225v426.308151H431.431671z" fill="#d81e06" /><path d="M609.777099 744.122832H412.658468v-463.854556h197.118631v463.854556z m-159.572225-37.546405h122.025819v-388.761745H450.204874v388.761745z" fill="#d81e06" /><path d="M492.44458 131.568864h37.546406v186.167596h-37.546406zM492.44458 707.280422h37.546406v186.167596h-37.546406z" fill="#d81e06" /><path d="M594.993201 252.656023L511.06134 145.414101 427.129478 252.656023l-29.567794-23.153617L511.06134 84.479413l113.499656 145.022993z" fill="#d81e06" /><path d="M594.993201 168.17661L511.06134 60.934688 427.129478 168.17661l-29.567794-23.153617 113.499656-145.022993L624.560996 145.022993z" fill="#d81e06" /><path d="M511.06134 939.520587L397.561684 794.497594l29.567794-23.075396 83.931862 107.241922L594.993201 771.422198l29.567795 23.075396z" fill="#d81e06" /><path d="M511.06134 1024L397.561684 878.977007l29.567794-23.075395 83.931862 107.241922L594.993201 855.901612l29.567795 23.075395z" fill="#d81e06" /></svg>',"../../../assets/iconfont/svg/手持断路器.svg":'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M494.481834 206.967196l-8.668783-7.223986 71.51746-87.410229c1.083598-1.444797 2.889594-2.167196 4.695591-2.167196s3.611993 0.722399 4.695591 2.167196l71.51746 87.410229-8.668783 7.223986-67.544268-82.714639-67.544268 82.714639zM566.360494 119.195767c0 0.361199 0 0.361199 0 0z" fill="#FF0000" /><path d="M494.481834 148.091711l-8.668783-7.223986 71.51746-87.410229c1.083598-1.444797 2.889594-2.167196 4.695591-2.167196s3.611993 0.722399 4.695591 2.167196L638.600353 140.867725l-8.668783 7.223986-67.544268-82.714639L494.481834 148.091711z m71.87866-87.771429c0 0.361199 0 0.361199 0 0zM562.026102 913.834215c-1.805996 0-3.250794-0.722399-4.334391-2.167196l-71.87866-87.771428 8.668783-7.223986 67.544268 82.714638 67.544268-82.714638 8.668783 7.223986-71.878659 87.771428c-1.083598 1.444797-2.528395 2.167196-4.334392 2.167196z" fill="#FF0000" /><path d="M562.026102 972.7097c-1.805996 0-3.250794-0.722399-4.334391-2.167196l-71.87866-87.771428 8.668783-7.223986 67.544268 82.714638 67.544268-82.714638 8.668783 7.223986-71.878659 87.771428c-1.083598 1.444797-2.528395 2.167196-4.334392 2.167196zM567.805291 849.179541h-11.197178V617.650794l-171.208466-252.839507 9.391182-6.140388 171.930864 254.284304c0.722399 1.083598 1.083598 2.167196 1.083598 3.250793v232.973545zM556.608113 178.071252h11.197178v183.489242h-11.197178z" fill="#FF0000" /><path d="M510.898342 402.654138l94.446392-90.429856 7.740501 8.087252-94.44278 90.429856z" fill="#FF0000" /><path d="M511.158406 320.35849l7.744113-8.087252 94.457227 90.415408-7.744113 8.090864zM556.608113 849.179541h11.197178v58.875485h-11.197178zM556.608113 119.195767h11.197178v58.875485h-11.197178z" fill="#FF0000" /></svg>',"../../../assets/iconfont/svg/抽屉式断路器断开.svg":'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M85.18656007 375.38588444l-13.9264 0 0-387.28817777 13.9264 0z" fill="#EF1616" /><path d="M12.7726934 188.10538666l-9.84746666-9.84746666 72.41500444-72.41500444 9.84746666 9.84746666z" fill="#EF1616" /><path d="M71.25674674 115.69038222l9.84746666-9.84746665 72.41500443 72.41500443-9.84746665 9.84746667zM12.77496896 261.79811556l-9.84746667-9.84746667 72.41500445-72.41500445 9.84746666 9.84746667z" fill="#EF1616" /><path d="M71.25447117 189.38311111l9.84746667-9.84746667 72.41500445 72.41500445-9.84746667 9.84746667zM85.1797334 1037.94346667l-13.9264 0 0-387.28817778 13.9264 0z" fill="#EF1616" /><path d="M85.18769784 910.336l-9.84746665 9.84746667-72.41500445-72.41500445 9.84746666-9.84746666z" fill="#EF1616" /><path d="M143.67175118 837.92099556l9.84746666 9.84746665-72.41500444 72.41500446-9.84746666-9.84746667z" fill="#EF1616" /><path d="M85.18542229 836.64668444l-9.84746667 9.84746667-72.41500444-72.41500444 9.84746666-9.84746667z" fill="#EF1616" /><path d="M143.67402674 764.23168l9.84746666 9.84746667-72.41614222 72.41500444-9.84632889-9.84746667z" fill="#EF1616" /><path d="M19.62666674 375.38702222l118.32888888 0L137.95555561 650.33102222l-118.32888886 0-1e-8-274.944z m104.41386666 13.91502222l-90.48746666 0L33.55306674 636.40462222l90.48746666 0 0-247.10257778z" fill="#EF1616" /></svg>',"../../../assets/iconfont/svg/接地_1.svg":'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M531.791456 701.961295a17.407498 17.407498 0 0 1-15.824998-16.616247v-316.499956a15.824998 15.824998 0 0 1 15.824998-15.824998 17.407498 17.407498 0 0 1 15.824998 16.616248v320.456205a15.824998 15.824998 0 0 1-15.824998 11.868748zM533.373956 377.548841a18.989997 18.989997 0 0 1-11.077499 0L172.564006 27.02514a15.033748 15.033748 0 0 1 0-22.154997 15.033748 15.033748 0 0 1 22.154997 0l349.732451 345.776202a15.033748 15.033748 0 0 1 0 22.154996 14.242498 14.242498 0 0 1-11.077498 4.7475zM609.333945 1024H455.040217a15.824998 15.824998 0 0 1 0-31.649996h158.249977a15.824998 15.824998 0 0 1 0 31.649996zM762.836423 870.497522H300.746488a15.824998 15.824998 0 0 1 0-31.649996h462.089935a15.824998 15.824998 0 1 1 0 31.649996zM840.378913 716.203793H223.995249a15.824998 15.824998 0 0 1-15.824998-15.824998 15.824998 15.824998 0 0 1 15.824998-16.616247H840.378913a15.824998 15.824998 0 0 1 15.824997 16.616247 15.824998 15.824998 0 0 1-15.824997 15.824998z" /></svg>',"../../../assets/iconfont/svg/接地_2.svg":'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M810.666667 704H213.333333v-42.666667h597.333334v42.666667zM725.333333 810.666667H298.666667v-42.666667h426.666666v42.666667zM640 917.333333H384v-42.666666h256v42.666666z" fill="#000000" /><path d="M490.666667 704V106.666667h42.666666v597.333333h-42.666666z" fill="#000000" /></svg>',"../../../assets/iconfont/svg/断路器-he.svg":'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M640 176H528V0h-32v176H384v672h112v176h32V848h112z" fill="#D81E06" /></svg>',"../../../assets/iconfont/svg/断路器.svg":'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M700.16 341.333333l55.04-55.04a42.666667 42.666667 0 0 0-60.16-60.16l-12.373333 12.373334V42.666667a42.666667 42.666667 0 0 0-85.333334 0v195.84l-12.373333-12.373334a42.666667 42.666667 0 0 0-60.16 60.16L579.84 341.333333l-55.466667 55.04a42.666667 42.666667 0 1 0 60.16 60.16L640 401.493333l55.04 55.04a42.666667 42.666667 0 1 0 60.16-60.16zM333.226667 230.826667a42.666667 42.666667 0 0 0-69.12 50.346666L597.333333 739.413333V981.333333a42.666667 42.666667 0 0 0 85.333334 0v-256a42.666667 42.666667 0 0 0-8.106667-25.173333z" /></svg>',"../../../assets/iconfont/svg/母线.svg":'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="98.08px" viewBox="0 0 2088 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M2088.44 442.576H5.726v138.848H2088.44V442.576z" fill="#FF0000" /></svg>',"../../../assets/iconfont/svg/电池.svg":'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="100.64px" viewBox="0 0 2035 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M2538.89999992 217.3c2.9-0.1 5.7-0.1 8.6-0.1" /><path d="M1344.19999992 960.2H703.99999992V130.3h640.1v829.9z m-567.5-70.1h494.8V200.4H776.69999992v689.7z" fill="#03E086" /><path d="M896.09999992 61h254.4v70H896.09999992zM1064.99999992 755.9l-80.7-39.7 63.6-129.1H855.49999992l128.3-255.3 80.4 40.5-62.7 124.8h191z" fill="#03E086" /></svg>',"../../../assets/iconfont/svg/直流逆变器.svg":'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M207.36 359.936l58.624-58.624c9.216-9.216 21.418667-14.250667 34.389333-14.250667s25.173333 5.034667 34.389334 14.250667l41.557333 41.557333c17.749333 17.749333 40.96 26.88 64.341333 26.88 18.773333 0 37.632-5.802667 53.930667-17.749333l45.909333-33.621333c9.472-6.912 11.52-20.224 4.608-29.696a21.265067 21.265067 0 0 0-29.696-4.608l-45.909333 33.621333a48.452267 48.452267 0 0 1-63.146667-4.864l-41.557333-41.557333c-17.237333-17.237333-40.106667-26.709333-64.426667-26.709334-24.32 0-47.274667 9.472-64.426666 26.709334l-58.624 58.624c-8.277333 8.277333-8.277333 21.76 0 30.037333 8.277333 8.277333 21.76 8.277333 30.037333 0zM119.466667 119.466667v785.066666h785.066666V119.466667H119.466667z m706.645333 42.496L161.962667 826.112V161.962667h664.149333z m-640 700.074666l675.925333-675.925333v675.925333H186.112zM490.837333 685.568h339.882667v42.496H490.837333zM736.682667 790.101333h94.122666v42.496H736.682667zM613.717333 790.101333h94.122667v42.496H613.717333zM490.837333 790.101333h94.122667v42.496H490.837333z" /></svg>'});function yxt(n){return n?(n=n.replace(/fill="(?!none)[^"]*"/gi,'fill="currentColor"').replace(/stroke="(?!none)[^"]*"/gi,'stroke="currentColor"'),n=n.replace(/<([a-z]+)([^>]*?)\/?>/gi,(e,t,i)=>{const r=e.endsWith("/>")?"/>":">";return!/(fill=)/i.test(i)&&/^(path|circle|rect|polygon|polyline)$/i.test(t)?`<${t}${i} fill="currentColor"${r}`:e}),n):""}const kIe="__node_panel_svg_sprite__";function wxt(){if(typeof document>"u")return null;let n=document.getElementById(kIe);n||(n=document.createElementNS("http://www.w3.org/2000/svg","svg"),n.setAttribute("aria-hidden","true"),n.style.position="absolute",n.style.width="0",n.style.height="0",n.style.overflow="hidden",n.id=kIe,document.body.prepend(n));let e=n.querySelector("defs");return e||(e=document.createElementNS("http://www.w3.org/2000/svg","defs"),n.appendChild(e)),e}function Cxt(n){const e=n.match(/viewBox="([^"]+)"/i),t=n.match(/<svg[^>]*>([\s\S]*?)<\/svg>/i);return{viewBox:e?e[1]:"",content:t?t[1]:n}}function Sxt(n,e){const t=wxt();if(!t||t.querySelector(`#${n}`))return n;const{viewBox:i,content:r}=Cxt(yxt(e)),s=document.createElementNS("http://www.w3.org/2000/svg","symbol");return s.setAttribute("id",n),i&&s.setAttribute("viewBox",i),s.innerHTML=r,t.appendChild(s),n}const xxt=Object.entries(bxt).map(([n,e])=>({name:n.split("/").pop().replace(".svg",""),id:Sxt(`node-icon-${n.split("/").pop().replace(".svg","")}`,e)})),sN={title:{show:!1},tooltip:{trigger:"axis",backgroundColor:"rgba(59,59,59,0.8)",textStyle:{color:"#fff"},borderWidth:0},legend:{show:!0,left:"center",top:20,textStyle:{color:"#ffffff"},itemGap:10,itemWidth:25,itemHeight:14,orient:"horizontal"},yAxis:{name:"电压(V)",type:"value",axisLine:{show:"true",lineStyle:{color:"#ffffff",width:1,type:"solid"}},axisTick:{show:"auto"},show:!0,axisLabel:{show:!0,fontSize:12,color:"#ffffff"},splitLine:{show:!0,lineStyle:{color:"rgb(79, 79, 79)",width:1,type:"solid"}}},xAxis:{type:"category",axisPointer:{type:"line"},data:[],boundaryGap:!0,splitLine:{show:!1,lineStyle:{color:"rgb(79, 79, 79)",width:1,type:"solid"}},axisTick:{show:!0},axisLabel:{show:!0,fontSize:12,color:"#ffffff"},show:!0,axisLine:{show:!0,lineStyle:{color:"#FFFFFF",width:1,type:"solid"}}},grid:{left:20,top:50,right:20,bottom:10,containLabel:!0},series:[],dataZoom:!1},TIe={tabTitle:"系列1",name:"电压",type:"bar",showBackground:!1,areaStyle:{color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"rgba(0, 0, 0, 0)"},{offset:1,color:"rgba(0, 0, 0, 0)"}]}},itemStyle:{color:"#1AF2FFaa"},emphasis:{focus:"series"},data:[]},oN={tabTitle:"系列1",lineStyle:{width:2},name:"电压",smooth:!1,symbolSize:0,type:"line",areaStyle:{color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"rgba(0, 0, 0, 0)"},{offset:1,color:"rgba(0, 0, 0, 0)"}]}},symbol:null,itemStyle:{color:"#1AF2FFaa"},showSymbol:!1,emphasis:{focus:"series"},edgeLabel:{show:!1},step:!1,data:[]},IIe={darkMode:!0,tooltip:{trigger:"item",backgroundColor:"rgba(59,59,59,0.8)",textStyle:{color:"#fff"},borderWidth:0},legend:{show:!0,left:"center",top:20,textStyle:{color:"#ffffff"},itemGap:10,itemWidth:25,itemHeight:14,orient:"horizontal"},series:[{tabTitle:"系列1",name:"Access From",type:"pie",center:["50%","55%"],radius:[0,"60%"],label:{show:!0,position:"outside",textBorderWidth:0},itemStyle:{borderWidth:0,shadowColor:"rgba(0, 0, 0, 0)"},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}]}]},Lxt={echart_1:()=>{const n=JSON.parse(JSON.stringify(sN));n.xAxis.data=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];const e=JSON.parse(JSON.stringify(oN));return e.data=[150,230,224,218,135,147,260],n.series.push(e),n},echart_2:()=>{let n=+new Date(1968,9,3),e=24*3600*1e3,t=[],i=[Math.random()*300];for(let a=1;a<2e3;a++){var r=new Date(n+=e);t.push([r.getFullYear(),r.getMonth()+1,r.getDate()].join("/")),i.push(Math.round((Math.random()-.5)*20+i[a-1]))}const s=JSON.parse(JSON.stringify(sN));s.xAxis.data=t;const o=JSON.parse(JSON.stringify(oN));return o.data=i,o.itemStyle={color:"rgb(255, 70, 131)"},o.areaStyle={color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#ff4d4f"},{offset:1,color:"#ffa940"}]}},s.series.push(o),s},echart_3:()=>{let n=+new Date(2026,1,1),e=24*3600*1e3,t=[],i=[Math.random()*200],r=[Math.random()*10];for(let h=1;h<2e3;h++){var s=new Date(n+=e);t.push([s.getFullYear(),s.getMonth()+1,s.getDate()].join("/")),i.push(Math.round((Math.random()-.5)*20+i[h-1])),r.push(Math.round((Math.random()-.5)*20+r[h-1]*100)/100)}const o=JSON.parse(JSON.stringify(sN));o.xAxis.data=t;const a=JSON.parse(JSON.stringify(o.yAxis));a.name="电流(A)",a.splitLine.show=!1,o.yAxis=[o.yAxis,a];const l=JSON.parse(JSON.stringify(oN));l.data=i,l.yAxisIndex=0;const c=JSON.parse(JSON.stringify(oN));return c.data=r,c.tabTitle="系列2",c.name="电流",c.itemStyle={color:"rgb(255, 70, 131)"},c.yAxisIndex=1,o.series.push(l),o.series.push(c),o},echart_4:()=>{const n=JSON.parse(JSON.stringify(sN));n.xAxis.data=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],n.xAxis.axisPointer={type:"shadow"};const e=JSON.parse(JSON.stringify(TIe));return e.data=[10,52,200,334,390,330,220],n.series.push(e),n},echart_5:()=>{const n=[{name:"Direct",type:"bar",emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Email",type:"bar",stack:"Ad",emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"bar",stack:"Ad",emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"bar",stack:"Ad",emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Search Engine",type:"bar",data:[862,1018,964,1026,1679,1600,1570],emphasis:{focus:"series"},markLine:{lineStyle:{type:"dashed"},data:[[{type:"min"},{type:"max"}]]}},{name:"Baidu",type:"bar",barWidth:5,stack:"Search Engine",emphasis:{focus:"series"},data:[620,732,701,734,1090,1130,1120]},{name:"Google",type:"bar",stack:"Search Engine",emphasis:{focus:"series"},data:[120,132,101,134,290,230,220]},{name:"Bing",type:"bar",stack:"Search Engine",emphasis:{focus:"series"},data:[60,72,71,74,190,130,110]},{name:"Others",type:"bar",stack:"Search Engine",emphasis:{focus:"series"},data:[62,82,91,84,109,110,120]}],e=JSON.parse(JSON.stringify(sN));return e.xAxis.data=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],e.xAxis.axisPointer={type:"shadow"},n.forEach((t,i)=>{const r=JSON.parse(JSON.stringify(TIe));r.name=t.name,r.tabTitle=`系列${i}`,r.stack=t.stack,r.data=t.data,r.barWidth=t.barWidth,r.itemStyle.color="",e.series.push(r)}),e.grid.top=60,e.yAxis.name="",e.legend.top=10,e},echart_6:()=>JSON.parse(JSON.stringify(IIe)),echart_7:()=>{const n=JSON.parse(JSON.stringify(IIe)),e=n.series[0];return e.radius=["40%","70%"],n},echart_8:()=>({tooltip:{formatter:"{a} <br/>{b} : {c}%"},series:[{name:"Pressure",type:"gauge",detail:{formatter:"{value}"},data:[{value:50,name:"SCORE"}]}]}),echart_9:()=>({series:[{type:"gauge",progress:{show:!0,width:18},axisLine:{lineStyle:{width:18}},axisTick:{show:!1},splitLine:{length:15,lineStyle:{width:2,color:"#999"}},axisLabel:{distance:25,color:"#999",fontSize:20},anchor:{show:!0,showAbove:!0,size:25,itemStyle:{borderWidth:10}},title:{show:!1},detail:{valueAnimation:!0,fontSize:80,offsetCenter:[0,"70%"]},data:[{value:70}]}]}),echart_10:()=>({series:[{type:"gauge",axisLine:{lineStyle:{width:30,color:[[.3,"#67e0e3"],[.7,"#37a2da"],[1,"#fd666d"]]}},pointer:{itemStyle:{color:"auto"}},axisTick:{distance:-30,length:8,lineStyle:{color:"#fff",width:2}},splitLine:{distance:-30,length:30,lineStyle:{color:"#fff",width:4}},axisLabel:{color:"inherit",distance:40,fontSize:20},detail:{valueAnimation:!0,formatter:"{value} km/h",color:"inherit"},data:[{value:70}]}]}),echart_11:()=>({series:[{type:"gauge",center:["50%","60%"],startAngle:200,endAngle:-20,min:0,max:60,splitNumber:12,itemStyle:{color:"#FFAB91"},progress:{show:!0,width:30},pointer:{show:!1},axisLine:{lineStyle:{width:30}},axisTick:{distance:-45,splitNumber:5,lineStyle:{width:2,color:"#999"}},splitLine:{distance:-52,length:14,lineStyle:{width:3,color:"#999"}},axisLabel:{distance:-20,color:"#999",fontSize:20},anchor:{show:!1},title:{show:!1},detail:{valueAnimation:!0,width:"60%",lineHeight:40,borderRadius:8,offsetCenter:[0,"-15%"],fontSize:60,fontWeight:"bolder",formatter:"{value} °C",color:"inherit"},data:[{value:20}]},{type:"gauge",center:["50%","60%"],startAngle:200,endAngle:-20,min:0,max:60,itemStyle:{color:"#FD7347"},progress:{show:!0,width:8},pointer:{show:!1},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},detail:{show:!1},data:[{value:20}]}]})},Dxt={class:"nodes"},Ext={class:"groups"},kxt=["onClick"],Txt={class:"list"},Ixt={style:{width:"100%",display:"flex","justify-content":"space-between","align-items":"center",padding:"20px 10px 10px 10px"}},Nxt={style:{padding:"10px"}},Mxt=["onMousedown","title"],Axt={key:1,class:"svg-icon"},Rxt={"aria-hidden":"true"},Pxt=["xlink:href"],Oxt=Yn({__name:"nodes",setup(n){const e=Ds(),t={IMG:"img"},i=w.ref(0),r=w.ref([{name:"控件",icon:"iconfont icon-icon-relativity",active:[],children:[{name:"基础",layout:"1fr 1fr 1fr",list:[{name:"线段",renderType:"svg",icon:"icon-xianduan",data:{type:"line"}},{name:"文本",renderType:"text",icon:"icon-wenzi",data:{type:"text",text:"测试"}},{name:"图标",renderType:"svg",icon:"icon-tubiao",data:{type:"svg"}},{name:"图片",renderType:"image",icon:"icon-tupian",data:{type:"img",imgData:V0e,imgWidth:48,imgHeight:48}},{name:"矩形",renderType:"text",icon:"icon-xingzhuang-juxing",data:{type:"text",text:"",borderWidth:1,borderStyle:"solid"}},{name:"圆形",renderType:"text",icon:"icon-radio-on-full",data:{type:"text",text:"",borderRadius:25,backgroundColor:"rgb(242, 255, 0)"}}]},{name:"表单",layout:"1fr 1fr 1fr",list:[{name:"按钮",renderType:"form",icon:"icon-biaodanzujian-anniu",data:{type:"button"}},{name:"文本输入框",renderType:"form",icon:"icon-biaodanzujian-shurukuang",data:{type:"input"}},{name:"数字输入框",renderType:"form",icon:"icon-shuzhi",data:{type:"number"}},{name:"单选框",renderType:"form",icon:"icon-biaodanzujian-xialakuang",data:{type:"select"}},{name:"多选框",renderType:"form",icon:"icon-biaodanzujian-xialakuang",data:{type:"selectMore"}},{name:"日期框",renderType:"form",icon:"icon-riqikuang",data:{type:"date"}},{name:"日期范围",renderType:"form",icon:"icon-riqifanwei",data:{type:"dateRange"}}]},{name:"表格",layout:"1fr 1fr 1fr",list:[{name:"列表",renderType:"table",icon:"icon-biaodanzujian-biaoge",data:{type:"table-1"}}]}]},{name:"图表",icon:"iconfont icon-icon_chart",active:[],children:[{name:"折线图",layout:"1fr 1fr 1fr",list:[{name:"折线图",renderType:"echart",icon:"icon-tubiao-zhexiantu",data:{type:"echart_1"}},{name:"面积图",renderType:"echart",icon:"icon-tubiao-zhexiantu",data:{type:"echart_2"}},{name:"双Y轴折线图",renderType:"echart",icon:"icon-tubiao-zhexiantu",data:{type:"echart_3"}}]},{name:"柱状图",layout:"1fr 1fr 1fr",list:[{name:"柱状图",renderType:"echart",icon:"icon-icon_chart",data:{type:"echart_4"}},{name:"堆叠柱状图",renderType:"echart",icon:"icon-icon_chart",data:{type:"echart_5"}}]},{name:"饼图",layout:"1fr 1fr 1fr",list:[{name:"基础饼图",renderType:"echart",icon:"icon-bingtu",data:{type:"echart_6"}},{name:"环状图",renderType:"echart",icon:"icon-bingtu",data:{type:"echart_7"}}]}]},{name:"素材",icon:"iconfont icon-icon_image",children:[{name:"电器svg",layout:"1fr 1fr 1fr",list:xxt.map(h=>({name:h.name,renderType:"svg",icon:h.id,data:{type:"svg"}}))}],active:[]}]),s=w.ref(""),o=h=>{i.value=h},a=()=>{if(r.value[i.value].active.length>0)r.value[i.value].active=[];else{const h=[];r.value[i.value].children.forEach((d,u)=>{h.push(u)}),r.value[i.value].active=h}},l=(h,d)=>{let u=e.graph.createNode({shape:d.renderType+"-node"});u.setData({icon:d.icon,name:vG(d.name),...d.data}),e.dnd.start(u,h)},c=({node:h})=>{var d,u,f,g,p,m,v,_,b,y,C,x,L,D,E;if(((d=h.data)==null?void 0:d.type)==="line"){const k=h.position();h.remove();const T=e.graph.addNode({id:"line"+crypto.randomUUID(),x:k.x-50,y:k.y,width:5,height:5,attrs:{body:{fill:"transparent",stroke:"transparent"}},zIndex:1}),I=e.graph.addNode({id:"line"+crypto.randomUUID(),x:k.x+50,y:k.y,width:5,height:5,attrs:{body:{fill:"transparent",stroke:"transparent"}},zIndex:1}),N=e.graph.addEdge({source:T,target:I,router:"normal",markup:[{tagName:"path",selector:"line"},{tagName:"path",selector:"line1"}],attrs:{line:{stroke:"#1bc8de80",strokeWidth:2,connection:!0,sourceMarker:"",targetMarker:""},line1:{display:"none",connection:!0,x:0,y:0,strokeWidth:4,stroke:"#91f4ffff",fill:"none",strokeDasharray:"8 8",pointerEvents:"none",style:{animation:"ant-line1 30s infinite linear"}}},zIndex:0,data:{name:vG("line"),type:"line",color:"#1bc8de80",flow:!0,dataSource:{bindNode:[],type:"none",path:"",point:{},httpType:"GET",httpUrl:"",params:[],httpTimer:-1,parse:null,fields:{动画流向:"flow",颜色:"color"}}}});e.graph.select(N)}if(["button","input","number","select","date","selectMore","dateRange"].includes((u=h.data)==null?void 0:u.type)&&(h.prop("size",{width:150,height:30}),((f=h.data)==null?void 0:f.type)==="button"&&h.setData({model:{modelValue:"按钮",size:"default",buttonType:"request"}}),((g=h.data)==null?void 0:g.type)==="input"&&h.setData({model:{modelValue:"",placeholder:"请输入",inputType:"input"}}),((p=h.data)==null?void 0:p.type)==="number"&&h.setData({model:{modelValue:"",placeholder:"请输入"}}),((m=h.data)==null?void 0:m.type)==="select"&&h.setData({model:{modelValue:"",size:"default",placeholder:"请输入",option:[{label:"选项一",value:1},{label:"选项二",value:2}]}}),((v=h.data)==null?void 0:v.type)==="selectMore"&&h.setData({model:{modelValue:[],size:"default",placeholder:"请输入",option:[{label:"选项一",value:1},{label:"选项二",value:2}]}}),((_=h.data)==null?void 0:_.type)==="date"&&h.setData({model:{modelValue:"",size:"default",placeholder:"请输入",dateType:"date"}}),((b=h.data)==null?void 0:b.type)==="dateRange"&&h.setData({model:{modelValue:[],size:"default",placeholder:"请输入",dateType:"daterange"}})),["table-1"].includes((y=h.data)==null?void 0:y.type)){h.resize(600,200);const k={rows:4,cols:3,rowHeight:32,colWidth:120,rowHeights:[36,32,32,32],colWidths:[140,120,120],header:{enabled:!0,height:36,backgroundColor:"#1f2a3a",color:"#e5e7eb",fontSize:12,fontWeight:600,borderColor:"#303746",borderWidth:1,textAlign:"center"},cell:{backgroundColor:"#121924",color:"#cbd5f5",fontSize:12,borderColor:"#303746",borderWidth:1,textAlign:"center"},data:{header:["名称","数值","单位"],rows:[["温度","23.6","°C"],["湿度","45","%"],["压力","101.3","kPa"],["","",""]]}};h.setData({backgroundColor:"rgba(177, 191, 255, 0.2)",table:k,dataSource:{fields:{表头数据:"table.data.header",表格数据:"table.data.rows"}}})}if((C=h.data)!=null&&C.type.includes("echart")){h.resize(500,300);const k=Lxt[h.data.type]();if(["echart_1","echart_2","echart_3","echart_4","echart_5"].includes((x=h.data)==null?void 0:x.type)){const T={data:{x:k.xAxis.data??[],y:k.series.map(I=>I.data??[])},option:k};h.setData({backgroundColor:"rgba(0, 0, 0, 0.3)",chart:T,dataSource:{fields:{X轴数据:"chart.data.x",Y轴数据:"chart.data.y"}}})}if(["echart_6","echart_7"].includes((L=h.data)==null?void 0:L.type)){const T={data:{x:((D=k.series[0])==null?void 0:D.data.map(I=>I.name))||[],y:((E=k.series[0])==null?void 0:E.data.map(I=>I.value))||[]},option:k};h.setData({backgroundColor:"rgba(0, 0, 0, 0.3)",chart:T,dataSource:{fields:{X轴数据:"chart.data.x",Y轴数据:"chart.data.y"}}})}}};return w.onMounted(()=>{var h;(h=e.graph)==null||h.on("node:added",c)}),w.onBeforeUnmount(()=>{var h;(h=e.graph)==null||h.off("node:added",c)}),(h,d)=>{const u=w.resolveComponent("el-input"),f=w.resolveComponent("el-tooltip"),g=w.resolveComponent("el-image"),p=w.resolveComponent("el-collapse-item"),m=w.resolveComponent("el-collapse");return w.openBlock(),w.createElementBlock("div",Dxt,[w.createElementVNode("div",Ext,[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(r.value,(v,_)=>(w.openBlock(),w.createElementBlock("div",{key:v.index,class:w.normalizeClass(["group",{active:i.value===_}]),onClick:b=>o(_)},[w.createElementVNode("i",{class:w.normalizeClass(v.icon)},null,2),w.createElementVNode("span",null,w.toDisplayString(v.name),1)],10,kxt))),128))]),w.createElementVNode("div",Txt,[w.createElementVNode("div",Ixt,[w.createVNode(u,{modelValue:s.value,"onUpdate:modelValue":d[0]||(d[0]=v=>s.value=v),style:{width:"180px"},placeholder:"请输入过滤","prefix-icon":w.unref(Zfe),clearable:""},null,8,["modelValue","prefix-icon"]),w.createVNode(f,{effect:"light",content:"展开/折叠",placement:"top"},{default:w.withCtx(()=>[w.createElementVNode("div",{style:{cursor:"pointer","font-size":"20px"},onClick:a},[...d[2]||(d[2]=[w.createElementVNode("i",{class:"iconfont icon-menu-fold"},null,-1)])])]),_:1})]),w.createElementVNode("div",Nxt,[w.createVNode(m,{modelValue:r.value[i.value].active,"onUpdate:modelValue":d[1]||(d[1]=v=>r.value[i.value].active=v),"expand-icon-position":"left",style:{border:"none","background-color":"transparent"}},{default:w.withCtx(()=>[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(r.value[i.value].children,(v,_)=>(w.openBlock(),w.createBlock(p,{key:_,title:v.name,name:_},{default:w.withCtx(()=>[w.createElementVNode("div",{class:"expand-content",style:w.normalizeStyle({gridTemplateColumns:v.layout?v.layout:"1fr 1fr 1fr"})},[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(v.list.filter(b=>b.name.includes(s.value)),(b,y)=>(w.openBlock(),w.createElementBlock("div",{key:y,class:"graphic",onMousedown:C=>l(C,b),title:b.name},[b.renderType===t.IMG?(w.openBlock(),w.createBlock(g,{key:0,src:b.icon,style:{width:"100px",height:"60px",margin:"auto"}},null,8,["src"])):(w.openBlock(),w.createElementBlock("div",Axt,[(w.openBlock(),w.createElementBlock("svg",Rxt,[w.createElementVNode("use",{"xlink:href":"#"+b.icon},null,8,Pxt)]))])),w.createElementVNode("p",null,w.toDisplayString(b.name),1)],40,Mxt))),128))],4)]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])])])}}},[["__scopeId","data-v-6ea83620"]]),Vxt={class:"datas"},Fxt={class:"groups"},Bxt=["onClick"],Wxt={class:"list"},Hxt={style:{padding:"10px"}},zxt=["onMousedown","title"],$xt={key:1},Uxt=["onClick"],Gxt=Yn({__name:"datas",setup(n){const e=Ds(),t=w.inject("topoApi"),i=w.inject("storage"),r=w.ref([]);(async()=>{r.value=await t.getDeviceList()})();const o=w.ref([{name:"设备",icon:"iconfont icon-control-platform",children:[],active:[]}]),a=w.ref(0),l=v=>{a.value=v};w.ref({});const c=w.ref(""),h=w.ref(null),d={value:"id",label:"label",data:"data",children:"children"},u=()=>{h.value.filter(c.value)},f=(v,_,b)=>b.label.includes(v),g=(v,_)=>{var E;if(_.level===1)return!1;const b=((E=_.data)==null?void 0:E.data)||{},y=vG(_.label),C=`const description = data.pointTemp.description;
894
894
  const value = data.payload.value;
895
- if(!description) {
896
- $.${y}.文本 = value
897
- }
898
895
  const a = description.split(";").map(i => {
899
896
  return {
900
897
  label: i.split(':')[1], value: i.split(':')[0]
901
898
  }
902
- })
903
- a.length = a.length - 1
904
- $.${y}.文本 = a.find(i => i.value == value)?.label`,x=`const value = data.payload.value;
905
- $.${y}.文本 = value`,L={type:"text",text:"--",dataSource:{type:"opcua",path:b.nodeId,parse:b.description?C:x,point:{...b},bindNode:[]},name:y};let D=e.graph.createNode({shape:"text-node"});D.setData(L),e.dnd.start(D,v)},p=({node:v})=>{var _,b,y,C,x,L,D,E,k,T,I,N;if(((_=v.data)==null?void 0:_.type)!=="line"&&(b=v.data)!=null&&b.dataSource&&(C=(y=v.data)==null?void 0:y.dataSource)!=null&&C.type){const M=(L=(x=v.data)==null?void 0:x.dataSource)==null?void 0:L.type,P=(E=(D=v.data)==null?void 0:D.dataSource)==null?void 0:E.path,R=(T=(k=v.data)==null?void 0:k.dataSource)==null?void 0:T.parse,W=(N=(I=v.data)==null?void 0:I.dataSource)==null?void 0:N.point;if(M==="opcua"&&P){const $=[v.id];v.setData({dataSource:{bindNode:$}});const z=v.data.dataSource.fields;let K=Object.keys(z).reduce((q,Z)=>(q[Z]=null,q),{}),Y={};Y[v.data.name]=K,t.readPoints([P]).then(q=>{if(q&&q.length>0){let Z={};if(R)try{new Function("data","$",R)({payload:q[0],pointTemp:W},Y);const he=Y[v.data.name];Object.keys(he).forEach(Re=>{if(he[Re]!==null){const Ge=z[Re],ke=he[Re];v.setData(R3(v.getData(),Ge,ke),{deep:!1})}})}catch(ee){console.log(ee)}else Z[bindName]=q[0].value||"--";v.setData(Z)}})}}},m=v=>{var _;i.setItem("copyOpcuaNode",(_=v.data)==null?void 0:_.data),setTimeout(()=>{i.removeItem("copyOpcuaNode")},60*1e3)};return w.onMounted(()=>{var v;(v=e.graph)==null||v.on("node:added",p)}),w.onBeforeUnmount(()=>{var v;(v=e.graph)==null||v.off("node:added",p)}),(v,_)=>{const b=w.resolveComponent("el-button"),y=w.resolveComponent("el-input"),C=w.resolveComponent("el-icon"),x=w.resolveComponent("el-popover"),L=w.resolveComponent("el-tree-v2");return w.openBlock(),w.createElementBlock("div",Vxt,[w.createElementVNode("div",Fxt,[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(o.value,(D,E)=>(w.openBlock(),w.createElementBlock("div",{key:D.index,class:w.normalizeClass(["group",{active:a.value===E}]),onClick:k=>l(E)},[w.createElementVNode("i",{class:w.normalizeClass(D.icon)},null,2),w.createElementVNode("span",null,w.toDisplayString(D.name),1)],10,Bxt))),128))]),w.createElementVNode("div",Wxt,[a.value===0?(w.openBlock(),w.createElementBlock(w.Fragment,{key:0},[w.createElementVNode("div",Hxt,[w.createVNode(y,{modelValue:c.value,"onUpdate:modelValue":_[0]||(_[0]=D=>c.value=D),style:{height:"30px"},placeholder:"请输入名称过滤",size:"small"},{append:w.withCtx(()=>[w.createVNode(b,{icon:w.unref(Zfe),onClick:u},null,8,["icon"])]),_:1},8,["modelValue"])]),w.createVNode(L,{ref_key:"treeRef",ref:h,style:{width:"100%","user-select":"none"},data:r.value,props:d,height:800,"filter-method":f},{default:w.withCtx(({node:D})=>[w.createVNode(C,{class:"el-icon--left"},{default:w.withCtx(()=>[D.isLeaf?(w.openBlock(),w.createBlock(w.unref(Xfe),{key:0})):D.expanded?(w.openBlock(),w.createBlock(w.unref(o$e),{key:2})):(w.openBlock(),w.createBlock(w.unref(l$e),{key:1}))]),_:2},1024),D.level>1?(w.openBlock(),w.createBlock(x,{key:0,placement:"right"},{reference:w.withCtx(()=>{var E,k;return[w.createElementVNode("div",{onMousedown:T=>g(T,D),style:{flex:"1"},title:(k=(E=D==null?void 0:D.data)==null?void 0:E.data)==null?void 0:k.nodeId},w.toDisplayString(D.label),41,zxt)]}),default:w.withCtx(()=>[w.createVNode(b,{type:"primary",plain:"",size:"small",onClick:E=>m(D)},{default:w.withCtx(()=>[..._[2]||(_[2]=[w.createTextVNode("复制节点地址",-1)])]),_:1},8,["onClick"])]),_:2},1024)):(w.openBlock(),w.createElementBlock("div",$xt,w.toDisplayString(D.label),1))]),_:1},8,["data"])],64)):w.createCommentVNode("",!0),a.value===1?(w.openBlock(),w.createElementBlock(w.Fragment,{key:1},[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(v.httpData,(D,E)=>(w.openBlock(),w.createElementBlock("div",{class:"httpPanel",onClick:k=>v.handleOpen(D),key:E},null,8,Uxt))),128)),w.createVNode(b,{style:{width:"100%"},type:"primary",onClick:_[1]||(_[1]=D=>v.handleOpen({})),size:"small"},{default:w.withCtx(()=>[..._[3]||(_[3]=[w.createTextVNode("新增接口数据",-1)])]),_:1})],64)):w.createCommentVNode("",!0)])])}}},[["__scopeId","data-v-376c920b"]]),jxt={class:"graphics"},qxt={class:"menus"},Kxt=Yn({__name:"index",setup(n){const e=w.ref(0);return(t,i)=>(w.openBlock(),w.createElementBlock("div",jxt,[w.createElementVNode("div",qxt,[w.createElementVNode("div",{class:w.normalizeClass(["menu",{active:e.value===0}]),onClick:i[0]||(i[0]=r=>e.value=0)},"菜单目录",2),w.createElementVNode("div",{class:w.normalizeClass(["menu",{active:e.value===1}]),onClick:i[1]||(i[1]=r=>e.value=1)},"系统资源",2),w.createElementVNode("div",{class:w.normalizeClass(["menu",{active:e.value===2}]),onClick:i[2]||(i[2]=r=>e.value=2)},"我的资源",2),w.createElementVNode("div",{class:w.normalizeClass(["menu",{active:e.value===3}]),onClick:i[3]||(i[3]=r=>e.value=3)},"数据来源",2)]),e.value===0?(w.openBlock(),w.createBlock(_xt,{key:0})):w.createCommentVNode("",!0),e.value===1?(w.openBlock(),w.createBlock(Oxt,{key:1})):w.createCommentVNode("",!0),e.value===3?(w.openBlock(),w.createBlock(Gxt,{key:2})):w.createCommentVNode("",!0)]))}},[["__scopeId","data-v-9a0789ce"]]),Yxt=["src"],Xxt=Yn({__name:"graphProperty",setup(n){vL();const e=Ds(),{style:t,name:i}=Fg.storeToRefs(e),r=w.ref(["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgba(255, 69, 0, 0.68)","rgb(255, 120, 0)","hsv(51, 100, 98)","hsva(120, 40, 94, 0.5)","hsl(181, 100%, 37%)","hsla(209, 100%, 56%, 0.73)","#c7158577"]);function s(a){return new Promise((l,c)=>{const h=new FileReader;h.onload=()=>l(h.result),h.onerror=c,h.readAsDataURL(a)})}const o=async a=>{if(!a.type.startsWith("image/"))return vn.ElMessage.error("只能上传图片文件"),!1;if(!(a.size/1024/1024<2))return vn.ElMessage.error("图片大小不能超过 2MB"),!1;try{const c=await s(a);t.value.backgroundImage=c}catch{return vn.ElMessage.error("图片读取失败"),!1}return!1};return w.ref(1920),w.ref(1080),(a,l)=>{const c=w.resolveComponent("el-input"),h=w.resolveComponent("el-form-item");w.resolveComponent("el-input-number"),w.resolveComponent("el-button");const d=w.resolveComponent("el-color-picker"),u=w.resolveComponent("el-icon"),f=w.resolveComponent("el-upload"),g=w.resolveComponent("el-form");return w.openBlock(),w.createBlock(g,{class:"graphProperty",size:"small","label-width":"auto",onSubmit:l[4]||(l[4]=w.withModifiers(()=>{},["prevent"]))},{default:w.withCtx(()=>[w.createVNode(h,{label:"目录名称"},{default:w.withCtx(()=>[w.createVNode(c,{modelValue:w.unref(i),"onUpdate:modelValue":l[0]||(l[0]=p=>w.isRef(i)?i.value=p:null)},null,8,["modelValue"])]),_:1}),w.createCommentVNode("",!0),w.createVNode(h,{label:"背景颜色"},{default:w.withCtx(()=>[w.createVNode(d,{modelValue:w.unref(t).backgroundColor,"onUpdate:modelValue":l[3]||(l[3]=p=>w.unref(t).backgroundColor=p),"show-alpha":"",predefine:r.value,style:{width:"100%",height:"30px"}},null,8,["modelValue","predefine"])]),_:1}),w.createVNode(h,{label:"背景图片"},{default:w.withCtx(()=>[w.createVNode(f,{accept:"image/*","show-file-list":!1,"before-upload":o},{default:w.withCtx(()=>[w.unref(t).backgroundImage?(w.openBlock(),w.createElementBlock("img",{key:0,src:w.unref(t).backgroundImage,style:{width:"100%",height:"100%"}},null,8,Yxt)):(w.openBlock(),w.createBlock(u,{key:1,class:"avatar-uploader-icon"},{default:w.withCtx(()=>[w.createVNode(w.unref(D$))]),_:1}))]),_:1})]),_:1})]),_:1})}}},[["__scopeId","data-v-3a1238a6"]]),Zxt=Yn({__name:"nodePanel",setup(n){var s;const e=Ds();w.inject("cellId");const t=w.inject("getCurCell")(),i=t.getData()||{},r=w.ref({name:((s=t.getData())==null?void 0:s.name)||"",x:t.position().x,y:t.position().y,width:t.size().width,height:t.size().height,zIndex:t.prop("zIndex"),opacity:i.opacity||1,borderStyle:i.borderStyle,borderRadius:i.borderRadius,borderWidth:i.borderWidth,borderColor:i.borderColor,backgroundColor:i.backgroundColor,visible:i.visible===void 0?!0:i.visible});return w.watch(r.value,()=>{t.prop("position",{x:r.value.x,y:r.value.y}),t.prop("size",{width:r.value.width,height:r.value.height}),t.prop("zIndex",r.value.zIndex);const{name:o,opacity:a,borderStyle:l,borderRadius:c,borderWidth:h,borderColor:d,backgroundColor:u,backgroundImage:f,color:g,visible:p}=r.value;t.setData({name:o,opacity:a,borderStyle:l,borderRadius:c,borderWidth:h,borderColor:d,backgroundColor:u,visible:p})}),w.onMounted(()=>{t.on("change:size",({current:o})=>{r.value.width=o.width,r.value.height=o.height}),t.on("change:position",({current:o})=>{r.value.x=+o.x.toFixed(0),r.value.y=+o.y.toFixed(0)})}),w.onBeforeUnmount(()=>{var o,a;(o=e.graph)==null||o.off("node:resized"),(a=e.graph)==null||a.off("node:change:position")}),(o,a)=>{const l=w.resolveComponent("el-input"),c=w.resolveComponent("el-form-item"),h=w.resolveComponent("el-input-number"),d=w.resolveComponent("el-slider"),u=w.resolveComponent("el-option"),f=w.resolveComponent("el-select"),g=w.resolveComponent("el-color-picker"),p=w.resolveComponent("el-switch"),m=w.resolveComponent("el-form");return w.openBlock(),w.createBlock(m,{size:"small","label-width":"80px","label-position":"left",class:"nodePanel"},{default:w.withCtx(()=>[a[18]||(a[18]=w.createElementVNode("div",{class:"baseTitle"},"基础",-1)),w.createVNode(c,{label:"元素名称"},{default:w.withCtx(()=>[w.createVNode(l,{modelValue:r.value.name,"onUpdate:modelValue":a[0]||(a[0]=v=>r.value.name=v)},null,8,["modelValue"])]),_:1}),w.createVNode(c,{label:"位置"},{default:w.withCtx(()=>[w.createVNode(h,{modelValue:r.value.x,"onUpdate:modelValue":a[1]||(a[1]=v=>r.value.x=v),"controls-position":"right",min:0,step:5,style:{width:"90px","margin-right":"10px"}},{prefix:w.withCtx(()=>[...a[13]||(a[13]=[w.createElementVNode("span",null,"X",-1)])]),_:1},8,["modelValue"]),w.createVNode(h,{modelValue:r.value.y,"onUpdate:modelValue":a[2]||(a[2]=v=>r.value.y=v),"controls-position":"right",min:0,step:5,style:{width:"90px"}},{prefix:w.withCtx(()=>[...a[14]||(a[14]=[w.createElementVNode("span",null,"Y",-1)])]),_:1},8,["modelValue"])]),_:1}),w.createVNode(c,{label:"宽高"},{default:w.withCtx(()=>[a[17]||(a[17]=w.createElementVNode("span",null,null,-1)),w.createVNode(h,{modelValue:r.value.width,"onUpdate:modelValue":a[3]||(a[3]=v=>r.value.width=v),"controls-position":"right",min:0,step:5,style:{width:"90px","margin-right":"10px"}},{prefix:w.withCtx(()=>[...a[15]||(a[15]=[w.createElementVNode("span",null,"W",-1)])]),_:1},8,["modelValue"]),w.createVNode(h,{modelValue:r.value.height,"onUpdate:modelValue":a[4]||(a[4]=v=>r.value.height=v),"controls-position":"right",min:0,step:5,style:{width:"90px"}},{prefix:w.withCtx(()=>[...a[16]||(a[16]=[w.createElementVNode("span",null,"H",-1)])]),_:1},8,["modelValue"])]),_:1}),w.createVNode(c,{label:"层级"},{default:w.withCtx(()=>[w.createVNode(h,{modelValue:r.value.zIndex,"onUpdate:modelValue":a[5]||(a[5]=v=>r.value.zIndex=v),min:0,max:1e4,step:1,style:{width:"100px"}},null,8,["modelValue"])]),_:1}),w.createVNode(c,{label:"透明度"},{default:w.withCtx(()=>[w.createVNode(d,{modelValue:r.value.opacity,"onUpdate:modelValue":a[6]||(a[6]=v=>r.value.opacity=v),min:0,max:1,step:.01,style:{width:"160px"}},null,8,["modelValue"])]),_:1}),w.createVNode(c,{label:"边框"},{default:w.withCtx(()=>[w.createVNode(f,{modelValue:r.value.borderStyle,"onUpdate:modelValue":a[7]||(a[7]=v=>r.value.borderStyle=v),style:{width:"60px","margin-right":"10px"},placeholder:"样式"},{default:w.withCtx(()=>[w.createVNode(u,{label:"无",value:"none"}),w.createVNode(u,{label:"实线",value:"solid"}),w.createVNode(u,{label:"虚线",value:"dashed"}),w.createVNode(u,{label:"点线",value:"dotted"})]),_:1},8,["modelValue"]),w.createVNode(h,{modelValue:r.value.borderWidth,"onUpdate:modelValue":a[8]||(a[8]=v=>r.value.borderWidth=v),"controls-position":"right",min:0,step:1,style:{width:"60px","margin-right":"10px"},placeholder:"宽度"},null,8,["modelValue"]),w.createVNode(g,{modelValue:r.value.borderColor,"onUpdate:modelValue":a[9]||(a[9]=v=>r.value.borderColor=v),"show-alpha":"",placeholder:"颜色"},null,8,["modelValue"])]),_:1}),w.createVNode(c,{label:"圆角"},{default:w.withCtx(()=>[w.createVNode(h,{modelValue:r.value.borderRadius,"onUpdate:modelValue":a[10]||(a[10]=v=>r.value.borderRadius=v),min:0,max:100,step:1,style:{width:"100px"}},null,8,["modelValue"])]),_:1}),w.createVNode(c,{label:"背景颜色"},{default:w.withCtx(()=>[w.createVNode(g,{modelValue:r.value.backgroundColor,"onUpdate:modelValue":a[11]||(a[11]=v=>r.value.backgroundColor=v),"show-alpha":"",placeholder:"颜色",style:{width:"180px"}},null,8,["modelValue"])]),_:1}),w.createVNode(c,{label:"是否可见"},{default:w.withCtx(()=>[w.createVNode(p,{modelValue:r.value.visible,"onUpdate:modelValue":a[12]||(a[12]=v=>r.value.visible=v),"active-text":"显示","inactive-text":"隐藏"},null,8,["modelValue"])]),_:1})]),_:1})}}},[["__scopeId","data-v-d57fead1"]]),Jxt={class:"inline-row"},Qxt=Yn({__name:"linePanel",setup(n){var l,c;const e=w.inject("getCurCell")(),t=((l=e.getAttrs())==null?void 0:l.line)||{},i=((c=e.getAttrs())==null?void 0:c.line1)||{},r=h=>!h||h==="none"?"none":typeof h=="string"?h:h.name||"none",s=(h,d)=>!h||h==="none"?d:typeof h=="object"&&h.size?h.size:d,o=w.ref({name:e.getData().name,zIndex:e.zIndex,trackColor:t.stroke||"#754c3c",strokeWidth:t.strokeWidth??2,strokeOpacity:t.strokeOpacity??1,sourceMarker:r(t.sourceMarker)||"none",targetMarker:r(t.targetMarker)||"none",markerSize:s(t.targetMarker||t.sourceMarker,8),flowEnabled:i.display!=="none"}),a=()=>{const h=o.value;e.setData({...e.getData(),name:h.name}),e.prop("zIndex",h.zIndex),e.attr("line/stroke",h.trackColor),e.attr("line/strokeWidth",h.strokeWidth),e.attr("line/strokeOpacity",h.strokeOpacity),e.attr("line/fill","none"),e.attr("line/strokeDasharray",null),e.attr("line/strokeDashoffset",0);const d=u=>!u||u==="none"?"":{name:u,size:h.markerSize};e.attr("line/sourceMarker",d(h.sourceMarker)),e.attr("line/targetMarker",d(h.targetMarker)),h.flowEnabled?(e.attr("line/strokeWidth",8),e.attr("line1/display","inline")):e.attr("line1/display","none")};return w.watch(o,a,{deep:!0,immediate:!0}),(h,d)=>{const u=w.resolveComponent("el-input"),f=w.resolveComponent("el-form-item"),g=w.resolveComponent("el-input-number"),p=w.resolveComponent("el-color-picker"),m=w.resolveComponent("el-slider"),v=w.resolveComponent("el-option"),_=w.resolveComponent("el-select"),b=w.resolveComponent("el-switch"),y=w.resolveComponent("el-form");return w.openBlock(),w.createBlock(y,{size:"small","label-width":"90px","label-position":"left"},{default:w.withCtx(()=>[d[9]||(d[9]=w.createElementVNode("div",{class:"baseTitle"},"连线样式",-1)),w.createVNode(f,{label:"名称"},{default:w.withCtx(()=>[w.createVNode(u,{modelValue:o.value.name,"onUpdate:modelValue":d[0]||(d[0]=C=>o.value.name=C),placeholder:""},null,8,["modelValue"])]),_:1}),w.createVNode(f,{label:"层级"},{default:w.withCtx(()=>[w.createVNode(g,{modelValue:o.value.zIndex,"onUpdate:modelValue":d[1]||(d[1]=C=>o.value.zIndex=C),min:0,max:1e4,step:1,style:{width:"100px"}},null,8,["modelValue"])]),_:1}),w.createVNode(f,{label:"颜色"},{default:w.withCtx(()=>[w.createVNode(p,{modelValue:o.value.trackColor,"onUpdate:modelValue":d[2]||(d[2]=C=>o.value.trackColor=C),"show-alpha":"",style:{width:"200px",height:"30px"}},null,8,["modelValue"])]),_:1}),w.createVNode(f,{label:"粗细"},{default:w.withCtx(()=>[w.createVNode(g,{modelValue:o.value.strokeWidth,"onUpdate:modelValue":d[3]||(d[3]=C=>o.value.strokeWidth=C),min:1,step:1,"controls-position":"right",style:{width:"120px"}},null,8,["modelValue"])]),_:1}),w.createVNode(f,{label:"透明度"},{default:w.withCtx(()=>[w.createVNode(m,{modelValue:o.value.strokeOpacity,"onUpdate:modelValue":d[4]||(d[4]=C=>o.value.strokeOpacity=C),min:0,max:1,step:.01,style:{width:"180px"}},null,8,["modelValue"])]),_:1}),w.createVNode(f,{label:"箭头"},{default:w.withCtx(()=>[w.createElementVNode("div",Jxt,[w.createVNode(_,{modelValue:o.value.sourceMarker,"onUpdate:modelValue":d[5]||(d[5]=C=>o.value.sourceMarker=C),style:{width:"60px","margin-right":"3px"}},{default:w.withCtx(()=>[w.createVNode(v,{label:"无",value:"none"}),w.createVNode(v,{label:"箭头",value:"block"}),w.createVNode(v,{label:"三角",value:"classic"})]),_:1},8,["modelValue"]),w.createVNode(_,{modelValue:o.value.targetMarker,"onUpdate:modelValue":d[6]||(d[6]=C=>o.value.targetMarker=C),style:{width:"60px","margin-right":"3px"}},{default:w.withCtx(()=>[w.createVNode(v,{label:"无",value:"none"}),w.createVNode(v,{label:"箭头",value:"block"}),w.createVNode(v,{label:"三角",value:"classic"})]),_:1},8,["modelValue"]),w.createVNode(g,{modelValue:o.value.markerSize,"onUpdate:modelValue":d[7]||(d[7]=C=>o.value.markerSize=C),min:4,max:30,step:1,"controls-position":"right",style:{width:"60px"}},null,8,["modelValue"])])]),_:1}),w.createVNode(f,{label:"动画"},{default:w.withCtx(()=>[w.createVNode(b,{modelValue:o.value.flowEnabled,"onUpdate:modelValue":d[8]||(d[8]=C=>o.value.flowEnabled=C),"active-text":"开启","inactive-text":"关闭",style:{"margin-right":"8px"}},null,8,["modelValue"])]),_:1})]),_:1})}}},[["__scopeId","data-v-a8f21332"]]),_L={__name:"JsonEditor",props:{modelValue:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=w.ref(null);let s=null,o="";return w.onMounted(()=>{s=js.editor.create(r.value,{value:JSON.stringify(t.modelValue,null,2),language:"json",theme:"vs-dark",automaticLayout:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:12}),s.onDidChangeModelContent(()=>{try{const a=s.getValue(),l=JSON.parse(a);o=a,i("update:modelValue",l)}catch{}})}),w.watch(()=>t.modelValue,a=>{if(!s)return;const l=s.getValue(),c=JSON.stringify(a,null,2);l!==c&&c!==o&&s.setValue(c)},{deep:!0}),w.onBeforeUnmount(()=>{s==null||s.dispose()}),(a,l)=>(w.openBlock(),w.createElementBlock("div",{ref_key:"editorContainer",ref:r,class:"json-editor"},null,512))}},eLt=Yn({__name:"formNodePanel",setup(n){Ds(),w.inject("cellId");const e=w.inject("getCurCell")(),t=e.getData()||{},i=w.ref(t.model||{});w.watch(i.value,()=>{e.setData({model:i.value})});const r=w.ref(!1),s=w.ref({}),o=()=>{s.value=i.value.option,r.value=!0},a=()=>{i.value.option=s.value,r.value=!1};return w.onMounted(()=>{}),w.onBeforeUnmount(()=>{}),(l,c)=>{const h=w.resolveComponent("el-option"),d=w.resolveComponent("el-select"),u=w.resolveComponent("el-form-item"),f=w.resolveComponent("el-color-picker"),g=w.resolveComponent("el-input"),p=w.resolveComponent("el-button"),m=w.resolveComponent("el-drawer"),v=w.resolveComponent("el-form");return w.openBlock(),w.createBlock(v,{size:"small","label-width":"80px","label-position":"left",class:"nodePanel"},{default:w.withCtx(()=>[c[9]||(c[9]=w.createElementVNode("div",{class:"baseTitle"},"表单元素",-1)),w.unref(t).type==="button"?(w.openBlock(),w.createElementBlock(w.Fragment,{key:0},[w.createVNode(u,{label:"元素尺寸"},{default:w.withCtx(()=>[w.createVNode(d,{modelValue:i.value.size,"onUpdate:modelValue":c[0]||(c[0]=_=>i.value.size=_)},{default:w.withCtx(()=>[w.createVNode(h,{label:"大",value:"large"}),w.createVNode(h,{label:"正常",value:"default"}),w.createVNode(h,{label:"小",value:"small"})]),_:1},8,["modelValue"])]),_:1}),w.createVNode(u,{label:"按钮颜色"},{default:w.withCtx(()=>[w.createVNode(f,{modelValue:i.value.buttonColor,"onUpdate:modelValue":c[1]||(c[1]=_=>i.value.buttonColor=_),"show-alpha":"",placeholder:"颜色",style:{width:"180px",height:"30px"}},null,8,["modelValue"])]),_:1}),w.createVNode(u,{label:"按钮文本"},{default:w.withCtx(()=>[w.createVNode(g,{modelValue:i.value.modelValue,"onUpdate:modelValue":c[2]||(c[2]=_=>i.value.modelValue=_)},null,8,["modelValue"])]),_:1})],64)):w.createCommentVNode("",!0),w.unref(t).type==="input"?(w.openBlock(),w.createElementBlock(w.Fragment,{key:1},[w.createVNode(u,{label:"类型"},{default:w.withCtx(()=>[w.createVNode(d,{modelValue:i.value.inputType,"onUpdate:modelValue":c[3]||(c[3]=_=>i.value.inputType=_)},{default:w.withCtx(()=>[w.createVNode(h,{label:"输入框",value:"input"}),w.createVNode(h,{label:"文本域",value:"textarea"})]),_:1},8,["modelValue"])]),_:1}),w.createVNode(u,{label:"占位字符"},{default:w.withCtx(()=>[w.createVNode(g,{modelValue:i.value.placeholder,"onUpdate:modelValue":c[4]||(c[4]=_=>i.value.placeholder=_)},null,8,["modelValue"])]),_:1})],64)):w.createCommentVNode("",!0),w.unref(t).type==="select"||w.unref(t).type==="selectMore"?(w.openBlock(),w.createBlock(u,{key:2,label:"下拉列表"},{default:w.withCtx(()=>[w.createVNode(p,{type:"primary",icon:w.unref(L$),onClick:o},null,8,["icon"])]),_:1})):w.createCommentVNode("",!0),w.unref(t).type==="date"?(w.openBlock(),w.createBlock(u,{key:3,label:"日期类型"},{default:w.withCtx(()=>[w.createVNode(d,{modelValue:i.value.dateType,"onUpdate:modelValue":c[5]||(c[5]=_=>i.value.dateType=_)},{default:w.withCtx(()=>[w.createVNode(h,{label:"日",value:"date"}),w.createVNode(h,{label:"时间",value:"datetime"}),w.createVNode(h,{label:"周",value:"week"}),w.createVNode(h,{label:"月",value:"month"}),w.createVNode(h,{label:"年",value:"year"})]),_:1},8,["modelValue"])]),_:1})):w.createCommentVNode("",!0),w.unref(t).type==="dateRange"?(w.openBlock(),w.createBlock(u,{key:4,label:"日期类型"},{default:w.withCtx(()=>[w.createVNode(d,{modelValue:i.value.dateType,"onUpdate:modelValue":c[6]||(c[6]=_=>i.value.dateType=_)},{default:w.withCtx(()=>[w.createVNode(h,{label:"日",value:"daterange"}),w.createVNode(h,{label:"时间",value:"datetimerange"}),w.createVNode(h,{label:"月",value:"monthrange"}),w.createVNode(h,{label:"年",value:"yearrange"})]),_:1},8,["modelValue"])]),_:1})):w.createCommentVNode("",!0),w.createVNode(m,{modelValue:r.value,"onUpdate:modelValue":c[8]||(c[8]=_=>r.value=_),"with-header":!1,size:300,"before-close":a},{default:w.withCtx(()=>[w.createVNode(_L,{modelValue:s.value,"onUpdate:modelValue":c[7]||(c[7]=_=>s.value=_)},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})}}},[["__scopeId","data-v-c9d6c8d0"]]),tLt=Yn({__name:"textPanel",setup(n){Ds(),w.inject("cellId");const e=w.inject("getCurCell")(),t=e.getData()||{},i=w.ref({text:t.text||"",justifyContent:t.justifyContent||"center",alignItems:t.alignItems||"center",textAlign:t.textAlign||"center",color:t.color||"#ffffff",fontWeight:t.fontWeight??400,fontSize:t.fontSize??16,letterSpacing:t.letterSpacing??0,lineHeight:t.lineHeight??1.4,fontFamily:t.fontFamily||"",fontStyle:t.fontStyle||"normal",textDecoration:t.textDecoration||"none",whiteSpace:t.whiteSpace||"pre-wrap",wordBreak:t.wordBreak||"break-word",textOverflow:t.textOverflow||"clip",overflow:t.overflow||"hidden",display:t.display||"block",toFix:t.toFix??2});return w.watch(i,r=>{e.setData({...r})},{deep:!0}),(r,s)=>{const o=w.resolveComponent("el-option"),a=w.resolveComponent("el-select"),l=w.resolveComponent("el-form-item"),c=w.resolveComponent("el-input-number"),h=w.resolveComponent("el-color-picker"),d=w.resolveComponent("el-input"),u=w.resolveComponent("el-form");return w.openBlock(),w.createBlock(u,{size:"small","label-width":"80px","label-position":"left",class:"nodePanel"},{default:w.withCtx(()=>[s[15]||(s[15]=w.createElementVNode("div",{class:"baseTitle"},"文字",-1)),w.createVNode(l,{label:"文本对齐"},{default:w.withCtx(()=>[w.createVNode(a,{modelValue:i.value.textAlign,"onUpdate:modelValue":s[0]||(s[0]=f=>i.value.textAlign=f),style:{width:"190px"}},{default:w.withCtx(()=>[w.createVNode(o,{label:"左对齐",value:"left"}),w.createVNode(o,{label:"居中",value:"center"}),w.createVNode(o,{label:"右对齐",value:"right"})]),_:1},8,["modelValue"])]),_:1}),w.createVNode(l,{label:"字体"},{default:w.withCtx(()=>[w.createVNode(c,{modelValue:i.value.fontSize,"onUpdate:modelValue":s[1]||(s[1]=f=>i.value.fontSize=f),"controls-position":"right",min:8,step:1,style:{width:"90px","margin-right":"10px"}},{prefix:w.withCtx(()=>[...s[12]||(s[12]=[w.createElementVNode("span",null,"大小",-1)])]),_:1},8,["modelValue"]),w.createVNode(a,{modelValue:i.value.fontWeight,"onUpdate:modelValue":s[2]||(s[2]=f=>i.value.fontWeight=f),modelModifiers:{number:!0},style:{width:"90px"}},{default:w.withCtx(()=>[(w.openBlock(),w.createElementBlock(w.Fragment,null,w.renderList(7,f=>(w.openBlock(),w.createElementBlock(w.Fragment,null,[f>2?(w.openBlock(),w.createBlock(o,{key:f,label:f*100,value:f*100},null,8,["label","value"])):w.createCommentVNode("",!0)],64))),64))]),_:1},8,["modelValue"])]),_:1}),w.createVNode(l,{label:"行高/间距"},{default:w.withCtx(()=>[w.createVNode(c,{modelValue:i.value.lineHeight,"onUpdate:modelValue":s[3]||(s[3]=f=>i.value.lineHeight=f),"controls-position":"right",min:.5,step:.1,style:{width:"90px","margin-right":"10px"}},{prefix:w.withCtx(()=>[...s[13]||(s[13]=[w.createElementVNode("span",null,"行高",-1)])]),_:1},8,["modelValue"]),w.createVNode(c,{modelValue:i.value.letterSpacing,"onUpdate:modelValue":s[4]||(s[4]=f=>i.value.letterSpacing=f),"controls-position":"right",min:0,step:1,style:{width:"90px"}},{prefix:w.withCtx(()=>[...s[14]||(s[14]=[w.createElementVNode("span",null,"间距",-1)])]),_:1},8,["modelValue"])]),_:1}),w.createVNode(l,{label:"样式"},{default:w.withCtx(()=>[w.createVNode(a,{modelValue:i.value.fontStyle,"onUpdate:modelValue":s[5]||(s[5]=f=>i.value.fontStyle=f),style:{width:"90px","margin-right":"10px"}},{default:w.withCtx(()=>[w.createVNode(o,{label:"常规",value:"normal"}),w.createVNode(o,{label:"斜体",value:"italic"})]),_:1},8,["modelValue"]),w.createVNode(a,{modelValue:i.value.textDecoration,"onUpdate:modelValue":s[6]||(s[6]=f=>i.value.textDecoration=f),style:{width:"90px"}},{default:w.withCtx(()=>[w.createVNode(o,{label:"无",value:"none"}),w.createVNode(o,{label:"下划线",value:"underline"}),w.createVNode(o,{label:"删除线",value:"line-through"})]),_:1},8,["modelValue"])]),_:1}),w.createVNode(l,{label:"换行/溢出",style:{display:"flex"}},{default:w.withCtx(()=>[w.createVNode(a,{modelValue:i.value.whiteSpace,"onUpdate:modelValue":s[7]||(s[7]=f=>i.value.whiteSpace=f),style:{width:"90px","margin-right":"10px"}},{default:w.withCtx(()=>[w.createVNode(o,{label:"自动换行",value:"pre-wrap"}),w.createVNode(o,{label:"单行",value:"nowrap"}),w.createVNode(o,{label:"普通",value:"normal"})]),_:1},8,["modelValue"]),w.createVNode(a,{modelValue:i.value.textOverflow,"onUpdate:modelValue":s[8]||(s[8]=f=>i.value.textOverflow=f),style:{width:"90px"}},{default:w.withCtx(()=>[w.createVNode(o,{label:"裁剪",value:"clip"}),w.createVNode(o,{label:"省略号",value:"ellipsis"})]),_:1},8,["modelValue"])]),_:1}),w.createVNode(l,{label:"字体颜色"},{default:w.withCtx(()=>[w.createVNode(h,{modelValue:i.value.color,"onUpdate:modelValue":s[9]||(s[9]=f=>i.value.color=f),"show-alpha":"",placeholder:"颜色",style:{width:"200px",height:"30px"}},null,8,["modelValue"])]),_:1}),w.createVNode(l,{label:"位数保留"},{default:w.withCtx(()=>[w.createVNode(c,{modelValue:i.value.toFix,"onUpdate:modelValue":s[10]||(s[10]=f=>i.value.toFix=f),"controls-position":"right",min:0,step:1,style:{width:"200px"}},null,8,["modelValue"])]),_:1}),w.createVNode(l,{label:"文本内容"},{default:w.withCtx(()=>[w.createVNode(d,{modelValue:i.value.text,"onUpdate:modelValue":s[11]||(s[11]=f=>i.value.text=f),style:{width:"200px"},rows:3,type:"textarea",placeholder:"请输入文本"},null,8,["modelValue"])]),_:1})]),_:1})}}},[["__scopeId","data-v-d6f37865"]]),iLt=Yn({__name:"buttonPanel",setup(n){Ds(),w.inject("cellId");const e=w.inject("getCurCell")(),t=e.getData()||{},i=w.ref(t.model||{});return w.watch(i.value,()=>{e.setData({model:i.value})}),w.ref(!1),w.ref({}),w.onMounted(()=>{}),w.onBeforeUnmount(()=>{}),(r,s)=>{const o=w.resolveComponent("el-switch"),a=w.resolveComponent("el-input"),l=w.resolveComponent("el-form-item"),c=w.resolveComponent("el-form");return w.openBlock(),w.createBlock(c,{size:"small","label-width":"80px","label-position":"left",class:"nodePanel"},{default:w.withCtx(()=>[s[2]||(s[2]=w.createElementVNode("div",{class:"baseTitle"},"交互",-1)),w.createVNode(l,{label:"二次确认"},{default:w.withCtx(()=>[w.createVNode(o,{modelValue:i.value.buttonConfirm,"onUpdate:modelValue":s[0]||(s[0]=h=>i.value.buttonConfirm=h),"active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"]),i.value.buttonConfirm?(w.openBlock(),w.createBlock(a,{key:0,type:"textarea",modelValue:i.value.buttonConfirmTips,"onUpdate:modelValue":s[1]||(s[1]=h=>i.value.buttonConfirmTips=h),placeholder:"请输入文本"},null,8,["modelValue"])):w.createCommentVNode("",!0)]),_:1})]),_:1})}}},[["__scopeId","data-v-88c8c411"]]),nLt={style:{"margin-bottom":"10px"}},rLt={key:0,style:{width:"100%",height:"160px",overflow:"auto",display:"flex","align-items":"center","justify-content":"center"}},sLt=["src"],oLt=Yn({__name:"imgPanel",setup(n){Ds(),w.inject("cellId");const e=w.inject("getCurCell")(),t=e.getData()||{},i=w.ref({imgData:t.imgData??"",imgWidth:t.imgWidth??0,imgHeight:t.imgHeight??0});function r(a){return new Promise((l,c)=>{const h=new FileReader;h.onload=()=>l(h.result),h.onerror=c,h.readAsDataURL(a)})}function s(a){return new Promise((l,c)=>{const h=new Image;h.onload=()=>l({width:h.width,height:h.height}),h.onerror=c,h.src=a})}const o=async a=>{if(!a.type.startsWith("image/"))return ElMessage.error("只能上传图片文件"),!1;if(!(a.size/1024/1024<2))return ElMessage.error("图片大小不能超过 2MB"),!1;try{const c=await r(a),{width:h,height:d}=await s(c);i.value.imgData=c,i.value.imgWidth=h,i.value.imgHeight=d,e.resize(i.value.imgWidth,i.value.imgHeight)}catch{return ElMessage.error("图片读取失败"),!1}return!1};return w.watch(i,a=>{e.setData({...a})},{deep:!0}),(a,l)=>{const c=w.resolveComponent("el-icon"),h=w.resolveComponent("el-upload"),d=w.resolveComponent("el-input-number"),u=w.resolveComponent("el-form-item"),f=w.resolveComponent("el-form");return w.openBlock(),w.createBlock(f,{size:"small","label-width":"80px","label-position":"left",class:"imgPanel"},{default:w.withCtx(()=>[l[4]||(l[4]=w.createElementVNode("div",{class:"baseTitle"},"图片",-1)),w.createElementVNode("div",nLt,[w.createVNode(h,{accept:"image/*","show-file-list":!1,"before-upload":o},{default:w.withCtx(()=>[i.value.imgData?(w.openBlock(),w.createElementBlock("div",rLt,[w.createElementVNode("img",{src:i.value.imgData},null,8,sLt)])):(w.openBlock(),w.createBlock(c,{key:1,class:"avatar-uploader-icon"},{default:w.withCtx(()=>[w.createVNode(w.unref(D$))]),_:1}))]),_:1})]),w.createVNode(u,{label:"尺寸"},{default:w.withCtx(()=>[w.createVNode(d,{modelValue:i.value.imgWidth,"onUpdate:modelValue":l[0]||(l[0]=g=>i.value.imgWidth=g),"controls-position":"right",min:1,step:1,style:{width:"90px","margin-right":"10px"}},{prefix:w.withCtx(()=>[...l[2]||(l[2]=[w.createElementVNode("span",null,"宽",-1)])]),_:1},8,["modelValue"]),w.createVNode(d,{modelValue:i.value.imgHeight,"onUpdate:modelValue":l[1]||(l[1]=g=>i.value.imgHeight=g),"controls-position":"right",min:1,step:1,style:{width:"90px"}},{prefix:w.withCtx(()=>[...l[3]||(l[3]=[w.createElementVNode("span",null,"高",-1)])]),_:1},8,["modelValue"])]),_:1})]),_:1})}}},[["__scopeId","data-v-94c45b23"]]),aLt={style:{"margin-bottom":"10px"}},lLt={key:0,style:{width:"100%",height:"160px",overflow:"auto",display:"flex","align-items":"center","justify-content":"center"}},cLt=["src"],hLt=Yn({__name:"svgPanel",setup(n){Ds(),w.inject("cellId");const e=w.inject("getCurCell")(),t=e.getData()||{},i=w.ref({imgData:t.imgData??"",svgContent:t.svgContent??"",color:t.color??"#ffffff"});function r(a){return new Promise((l,c)=>{const h=new FileReader;h.onload=()=>l(h.result),h.onerror=c,h.readAsDataURL(a)})}function s(a){return new Promise((l,c)=>{const h=new FileReader;h.onload=()=>l(h.result),h.onerror=c,h.readAsText(a)})}const o=async a=>{var h;if(!(a.type==="image/svg+xml"||((h=a.name)==null?void 0:h.toLowerCase().endsWith(".svg"))))return ElMessage.error("只能上传 SVG 文件"),!1;if(!(a.size/1024/1024<2))return ElMessage.error("图片大小不能超过 2MB"),!1;try{const d=await s(a),u=await r(a);i.value.imgData=u,i.value.svgContent=d}catch{return ElMessage.error("图片读取失败"),!1}return!1};return w.watch(i,a=>{e.setData({...a})},{deep:!0}),(a,l)=>{const c=w.resolveComponent("el-icon"),h=w.resolveComponent("el-upload"),d=w.resolveComponent("el-color-picker"),u=w.resolveComponent("el-form-item"),f=w.resolveComponent("el-form");return w.openBlock(),w.createBlock(f,{size:"small","label-width":"80px","label-position":"left",class:"imgPanel"},{default:w.withCtx(()=>[l[1]||(l[1]=w.createElementVNode("div",{class:"baseTitle"},"svg图标",-1)),w.createElementVNode("div",aLt,[w.createVNode(h,{accept:"image/svg+xml","show-file-list":!1,"before-upload":o},{default:w.withCtx(()=>[i.value.imgData?(w.openBlock(),w.createElementBlock("div",lLt,[w.createElementVNode("img",{src:i.value.imgData},null,8,cLt)])):(w.openBlock(),w.createBlock(c,{key:1,class:"avatar-uploader-icon"},{default:w.withCtx(()=>[w.createVNode(w.unref(D$))]),_:1}))]),_:1})]),w.createVNode(u,{label:"颜色"},{default:w.withCtx(()=>[w.createVNode(d,{modelValue:i.value.color,"onUpdate:modelValue":l[0]||(l[0]=g=>i.value.color=g),"show-alpha":"",placeholder:"颜色",style:{width:"180px"}},null,8,["modelValue"])]),_:1})]),_:1})}}},[["__scopeId","data-v-1a7b7c3c"]]),dLt={class:"align-row"},uLt=Yn({__name:"tablePanel",setup(n){const e=w.inject("getCurCell")();let t=!1;const i=()=>(e.getData()||{}).table||{},r={rowHeight:32,header:{enabled:!0,height:36,backgroundColor:"#1f2a3a",color:"#e5e7eb",fontSize:12,fontWeight:600,borderColor:"#303746",borderWidth:1,textAlign:"center",aligns:[]},cell:{backgroundColor:"#121924",altBackgroundColor:"#101826",color:"#cbd5f5",fontSize:12,borderColor:"#303746",borderWidth:1}},s=w.ref({rowHeight:r.rowHeight,header:{...r.header},cell:{...r.cell}}),o=()=>{const p=i();t=!0,s.value={rowHeight:p.rowHeight??r.rowHeight,header:{...r.header,...p.header||{}},cell:{...r.cell,...p.cell||{}}},w.nextTick(()=>{t=!1})};o();const a=w.computed(()=>{var v,_;const m=(_=(v=(e.getData()||{}).table)==null?void 0:v.data)==null?void 0:_.header;return Array.isArray(m)&&m.length?m:[]}),l=w.ref(0),c=w.computed({get(){const p=s.value.header||{};return(Array.isArray(p.aligns)?p.aligns:[])[l.value]||p.textAlign},set(p){const m=s.value.header||{},v=Array.isArray(m.aligns)?m.aligns.slice():[];v[l.value]=p,s.value.header={...m,aligns:v}}}),h=()=>{const p=e.getData()||{},m=p.table||{},v=s.value.rowHeight!==m.rowHeight,_=Array.isArray(s.value.header.aligns)?s.value.header.aligns.slice():[],b={...m,rowHeight:s.value.rowHeight,rowHeights:v?[]:m.rowHeights,header:{...r.header,...s.value.header,aligns:_},cell:{...r.cell,...s.value.cell}};e.setData({...p,table:b})},d=w.ref({}),u=w.ref(!1),f=()=>{d.value=i().data||{},u.value=!0},g=()=>{if(console.log(d.value),d.value){const p=e.getData()||{},m=p.table||{};e.setData({...p,table:{...m,data:d.value}})}u.value=!1};return w.watch(s,()=>{t||h()},{deep:!0}),w.onMounted(()=>{var p;(p=e.on)==null||p.call(e,"change:data",o)}),w.onBeforeUnmount(()=>{var p;(p=e.off)==null||p.call(e,"change:data",o)}),(p,m)=>{const v=w.resolveComponent("el-input-number"),_=w.resolveComponent("el-form-item"),b=w.resolveComponent("el-button"),y=w.resolveComponent("el-divider"),C=w.resolveComponent("el-switch"),x=w.resolveComponent("el-color-picker"),L=w.resolveComponent("el-option"),D=w.resolveComponent("el-select"),E=w.resolveComponent("el-drawer"),k=w.resolveComponent("el-form");return w.openBlock(),w.createBlock(k,{size:"small","label-width":"80px","label-position":"left"},{default:w.withCtx(()=>[m[21]||(m[21]=w.createElementVNode("div",{class:"baseTitle"},"表格样式",-1)),w.createVNode(_,{label:"默认行高"},{default:w.withCtx(()=>[w.createVNode(v,{modelValue:s.value.rowHeight,"onUpdate:modelValue":m[0]||(m[0]=T=>s.value.rowHeight=T),min:16,step:1,"controls-position":"right",style:{width:"120px"}},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"初始数据"},{default:w.withCtx(()=>[w.createVNode(b,{type:"primary",icon:w.unref(L$),onClick:f},null,8,["icon"])]),_:1}),w.createVNode(y,{"content-position":"left"},{default:w.withCtx(()=>[...m[19]||(m[19]=[w.createTextVNode("表头",-1)])]),_:1}),w.createVNode(_,{label:"显示表头"},{default:w.withCtx(()=>[w.createVNode(C,{modelValue:s.value.header.enabled,"onUpdate:modelValue":m[1]||(m[1]=T=>s.value.header.enabled=T),"active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"表头高度"},{default:w.withCtx(()=>[w.createVNode(v,{modelValue:s.value.header.height,"onUpdate:modelValue":m[2]||(m[2]=T=>s.value.header.height=T),min:20,step:1,"controls-position":"right",style:{width:"120px"}},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"表头背景"},{default:w.withCtx(()=>[w.createVNode(x,{modelValue:s.value.header.backgroundColor,"onUpdate:modelValue":m[3]||(m[3]=T=>s.value.header.backgroundColor=T),"show-alpha":""},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"表头文字"},{default:w.withCtx(()=>[w.createVNode(x,{modelValue:s.value.header.color,"onUpdate:modelValue":m[4]||(m[4]=T=>s.value.header.color=T),"show-alpha":""},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"表头字号"},{default:w.withCtx(()=>[w.createVNode(v,{modelValue:s.value.header.fontSize,"onUpdate:modelValue":m[5]||(m[5]=T=>s.value.header.fontSize=T),min:10,step:1,"controls-position":"right",style:{width:"120px"}},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"表头粗细"},{default:w.withCtx(()=>[w.createVNode(D,{modelValue:s.value.header.fontWeight,"onUpdate:modelValue":m[6]||(m[6]=T=>s.value.header.fontWeight=T),style:{width:"120px"}},{default:w.withCtx(()=>[w.createVNode(L,{label:"400",value:400}),w.createVNode(L,{label:"500",value:500}),w.createVNode(L,{label:"600",value:600}),w.createVNode(L,{label:"700",value:700})]),_:1},8,["modelValue"])]),_:1}),w.createVNode(_,{label:"列对齐"},{default:w.withCtx(()=>[w.createElementVNode("div",dLt,[w.createVNode(D,{modelValue:l.value,"onUpdate:modelValue":m[7]||(m[7]=T=>l.value=T),style:{width:"100px","margin-right":"8px"}},{default:w.withCtx(()=>[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(a.value,(T,I)=>(w.openBlock(),w.createBlock(L,{key:I,label:T,value:I},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),w.createVNode(D,{modelValue:c.value,"onUpdate:modelValue":m[8]||(m[8]=T=>c.value=T),style:{width:"80px"}},{default:w.withCtx(()=>[w.createVNode(L,{label:"左对齐",value:"left"}),w.createVNode(L,{label:"居中",value:"center"}),w.createVNode(L,{label:"右对齐",value:"right"})]),_:1},8,["modelValue"])])]),_:1}),w.createVNode(_,{label:"表头边框"},{default:w.withCtx(()=>[w.createVNode(x,{modelValue:s.value.header.borderColor,"onUpdate:modelValue":m[9]||(m[9]=T=>s.value.header.borderColor=T),"show-alpha":""},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"边框宽度"},{default:w.withCtx(()=>[w.createVNode(v,{modelValue:s.value.header.borderWidth,"onUpdate:modelValue":m[10]||(m[10]=T=>s.value.header.borderWidth=T),min:0,step:1,"controls-position":"right",style:{width:"120px"}},null,8,["modelValue"])]),_:1}),w.createVNode(y,{"content-position":"left"},{default:w.withCtx(()=>[...m[20]||(m[20]=[w.createTextVNode("单元格",-1)])]),_:1}),w.createVNode(_,{label:"单元格背景"},{default:w.withCtx(()=>[w.createVNode(x,{modelValue:s.value.cell.backgroundColor,"onUpdate:modelValue":m[11]||(m[11]=T=>s.value.cell.backgroundColor=T),"show-alpha":""},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"交替行"},{default:w.withCtx(()=>[w.createVNode(x,{modelValue:s.value.cell.altBackgroundColor,"onUpdate:modelValue":m[12]||(m[12]=T=>s.value.cell.altBackgroundColor=T),"show-alpha":""},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"单元格文字"},{default:w.withCtx(()=>[w.createVNode(x,{modelValue:s.value.cell.color,"onUpdate:modelValue":m[13]||(m[13]=T=>s.value.cell.color=T),"show-alpha":""},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"单元格字号"},{default:w.withCtx(()=>[w.createVNode(v,{modelValue:s.value.cell.fontSize,"onUpdate:modelValue":m[14]||(m[14]=T=>s.value.cell.fontSize=T),min:10,step:1,"controls-position":"right",style:{width:"120px"}},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"单元格边框"},{default:w.withCtx(()=>[w.createVNode(x,{modelValue:s.value.cell.borderColor,"onUpdate:modelValue":m[15]||(m[15]=T=>s.value.cell.borderColor=T),"show-alpha":""},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"边框宽度"},{default:w.withCtx(()=>[w.createVNode(v,{modelValue:s.value.cell.borderWidth,"onUpdate:modelValue":m[16]||(m[16]=T=>s.value.cell.borderWidth=T),min:0,step:1,"controls-position":"right",style:{width:"120px"}},null,8,["modelValue"])]),_:1}),w.createVNode(E,{modelValue:u.value,"onUpdate:modelValue":m[18]||(m[18]=T=>u.value=T),"with-header":!1,size:300,"before-close":g},{default:w.withCtx(()=>[w.createVNode(_L,{modelValue:d.value,"onUpdate:modelValue":m[17]||(m[17]=T=>d.value=T)},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})}}},[["__scopeId","data-v-5d1db4b7"]]);function NIe(n){return w.getCurrentScope()?(w.onScopeDispose(n),!0):!1}function P1(n){return typeof n=="function"?n():w.unref(n)}const U6=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const fLt=Object.prototype.toString,gLt=n=>fLt.call(n)==="[object Object]",bL=()=>{},pLt=mLt();function mLt(){var n,e;return U6&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function MIe(n,e){function t(...i){return new Promise((r,s)=>{Promise.resolve(n(()=>e.apply(this,i),{fn:e,thisArg:this,args:i})).then(r).catch(s)})}return t}const AIe=n=>n();function vLt(n,e={}){let t,i,r=bL;const s=a=>{clearTimeout(a),r(),r=bL};return a=>{const l=P1(n),c=P1(e.maxWait);return t&&s(t),l<=0||c!==void 0&&c<=0?(i&&(s(i),i=null),Promise.resolve(a())):new Promise((h,d)=>{r=e.rejectOnCancel?d:h,c&&!i&&(i=setTimeout(()=>{t&&s(t),i=null,h(a())},c)),t=setTimeout(()=>{i&&s(i),i=null,h(a())},l)})}}function _Lt(n=AIe){const e=w.ref(!0);function t(){e.value=!1}function i(){e.value=!0}const r=(...s)=>{e.value&&n(...s)};return{isActive:w.readonly(e),pause:t,resume:i,eventFilter:r}}function bLt(n){let e;function t(){return e||(e=n()),e}return t.reset=async()=>{const i=e;e=void 0,i&&await i},t}function yLt(n){return w.getCurrentInstance()}function bp(n,e=200,t={}){return MIe(vLt(e,t),n)}function wLt(n,e,t={}){const{eventFilter:i=AIe,...r}=t;return w.watch(n,MIe(i,e),r)}function CLt(n,e,t={}){const{eventFilter:i,...r}=t,{eventFilter:s,pause:o,resume:a,isActive:l}=_Lt(i);return{stop:wLt(n,e,{...r,eventFilter:s}),pause:o,resume:a,isActive:l}}function O1(n,e=!0,t){yLt()?w.onMounted(n,t):e?n():w.nextTick(n)}function SLt(n,e,t={}){const{immediate:i=!0}=t,r=w.ref(!1);let s=null;function o(){s&&(clearTimeout(s),s=null)}function a(){r.value=!1,o()}function l(...c){o(),r.value=!0,s=setTimeout(()=>{r.value=!1,s=null,n(...c)},P1(e))}return i&&(r.value=!0,U6&&l()),NIe(a),{isPending:w.readonly(r),start:l,stop:a}}function ka(n,e,t){const i=w.watch(n,(r,s,o)=>{r&&(t!=null&&t.once&&w.nextTick(()=>i()),e(r,s,o))},{...t,once:!1});return i}function aN(n){var e;const t=P1(n);return(e=t==null?void 0:t.$el)!=null?e:t}const lN=U6?window:void 0,RIe=U6?window.navigator:void 0;function V1(...n){let e,t,i,r;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,i,r]=n,e=lN):[e,t,i,r]=n,!e)return bL;Array.isArray(t)||(t=[t]),Array.isArray(i)||(i=[i]);const s=[],o=()=>{s.forEach(h=>h()),s.length=0},a=(h,d,u,f)=>(h.addEventListener(d,u,f),()=>h.removeEventListener(d,u,f)),l=w.watch(()=>[aN(e),P1(r)],([h,d])=>{if(o(),!h)return;const u=gLt(d)?{...d}:d;s.push(...t.flatMap(f=>i.map(g=>a(h,f,g,u))))},{immediate:!0,flush:"post"}),c=()=>{l(),o()};return NIe(c),c}let PIe=!1;function xLt(n,e,t={}){const{window:i=lN,ignore:r=[],capture:s=!0,detectIframe:o=!1}=t;if(!i)return bL;pLt&&!PIe&&(PIe=!0,Array.from(i.document.body.children).forEach(u=>u.addEventListener("click",bL)),i.document.documentElement.addEventListener("click",bL));let a=!0;const l=u=>r.some(f=>{if(typeof f=="string")return Array.from(i.document.querySelectorAll(f)).some(g=>g===u.target||u.composedPath().includes(g));{const g=aN(f);return g&&(u.target===g||u.composedPath().includes(g))}}),h=[V1(i,"click",u=>{const f=aN(n);if(!(!f||f===u.target||u.composedPath().includes(f))){if(u.detail===0&&(a=!l(u)),!a){a=!0;return}e(u)}},{passive:!0,capture:s}),V1(i,"pointerdown",u=>{const f=aN(n);a=!l(u)&&!!(f&&!u.composedPath().includes(f))},{passive:!0}),o&&V1(i,"blur",u=>{setTimeout(()=>{var f;const g=aN(n);((f=i.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(g!=null&&g.contains(i.document.activeElement))&&e(u)},0)})].filter(Boolean);return()=>h.forEach(u=>u())}function LLt(){const n=w.ref(!1),e=w.getCurrentInstance();return e&&w.onMounted(()=>{n.value=!0},e),n}function OIe(n){const e=LLt();return w.computed(()=>(e.value,!!n()))}function VIe(n,e={}){const{controls:t=!1,navigator:i=RIe}=e,r=OIe(()=>i&&"permissions"in i);let s;const o=typeof n=="string"?{name:n}:n,a=w.ref(),l=()=>{s&&(a.value=s.state)},c=bLt(async()=>{if(r.value){if(!s)try{s=await i.permissions.query(o),V1(s,"change",l),l()}catch{a.value="prompt"}return s}});return c(),t?{state:a,isSupported:r,query:c}:a}function DLt(n={}){const{navigator:e=RIe,read:t=!1,source:i,copiedDuring:r=1500,legacy:s=!1}=n,o=OIe(()=>e&&"clipboard"in e),a=VIe("clipboard-read"),l=VIe("clipboard-write"),c=w.computed(()=>o.value||s),h=w.ref(""),d=w.ref(!1),u=SLt(()=>d.value=!1,r);function f(){o.value&&v(a.value)?e.clipboard.readText().then(_=>{h.value=_}):h.value=m()}c.value&&t&&V1(["copy","cut"],f);async function g(_=P1(i)){c.value&&_!=null&&(o.value&&v(l.value)?await e.clipboard.writeText(_):p(_),h.value=_,d.value=!0,u.start())}function p(_){const b=document.createElement("textarea");b.value=_??"",b.style.position="absolute",b.style.opacity="0",document.body.appendChild(b),b.select(),document.execCommand("copy"),b.remove()}function m(){var _,b,y;return(y=(b=(_=document==null?void 0:document.getSelection)==null?void 0:_.call(document))==null?void 0:b.toString())!=null?y:""}function v(_){return _==="granted"||_==="prompt"}return{isSupported:c,text:h,copied:d,copy:g}}const G6=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},j6="__vueuse_ssr_handlers__",ELt=kLt();function kLt(){return j6 in G6||(G6[j6]=G6[j6]||{}),G6[j6]}function TLt(n,e){return ELt[n]||e}function ILt(n){return n==null?"any":n instanceof Set?"set":n instanceof Map?"map":n instanceof Date?"date":typeof n=="boolean"?"boolean":typeof n=="string"?"string":typeof n=="object"?"object":Number.isNaN(n)?"any":"number"}const NLt={boolean:{read:n=>n==="true",write:n=>String(n)},object:{read:n=>JSON.parse(n),write:n=>JSON.stringify(n)},number:{read:n=>Number.parseFloat(n),write:n=>String(n)},any:{read:n=>n,write:n=>String(n)},string:{read:n=>n,write:n=>String(n)},map:{read:n=>new Map(JSON.parse(n)),write:n=>JSON.stringify(Array.from(n.entries()))},set:{read:n=>new Set(JSON.parse(n)),write:n=>JSON.stringify(Array.from(n))},date:{read:n=>new Date(n),write:n=>n.toISOString()}},FIe="vueuse-storage";function MLt(n,e,t,i={}){var r;const{flush:s="pre",deep:o=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:h,window:d=lN,eventFilter:u,onError:f=k=>{console.error(k)},initOnMounted:g}=i,p=(h?w.shallowRef:w.ref)(typeof e=="function"?e():e);if(!t)try{t=TLt("getDefaultStorage",()=>{var k;return(k=lN)==null?void 0:k.localStorage})()}catch(k){f(k)}if(!t)return p;const m=P1(e),v=ILt(m),_=(r=i.serializer)!=null?r:NLt[v],{pause:b,resume:y}=CLt(p,()=>x(p.value),{flush:s,deep:o,eventFilter:u});d&&a&&O1(()=>{V1(d,"storage",D),V1(d,FIe,E),g&&D()}),g||D();function C(k,T){d&&d.dispatchEvent(new CustomEvent(FIe,{detail:{key:n,oldValue:k,newValue:T,storageArea:t}}))}function x(k){try{const T=t.getItem(n);if(k==null)C(T,null),t.removeItem(n);else{const I=_.write(k);T!==I&&(t.setItem(n,I),C(T,I))}}catch(T){f(T)}}function L(k){const T=k?k.newValue:t.getItem(n);if(T==null)return l&&m!=null&&t.setItem(n,_.write(m)),m;if(!k&&c){const I=_.read(T);return typeof c=="function"?c(I,m):v==="object"&&!Array.isArray(I)?{...m,...I}:I}else return typeof T!="string"?T:_.read(T)}function D(k){if(!(k&&k.storageArea!==t)){if(k&&k.key==null){p.value=m;return}if(!(k&&k.key!==n)){b();try{(k==null?void 0:k.newValue)!==_.write(p.value)&&(p.value=L(k))}catch(T){f(T)}finally{k?w.nextTick(y):y()}}}}function E(k){D(k.detail)}return p}function UZ(n,e,t={}){const{window:i=lN}=t;return MLt(n,e,i==null?void 0:i.localStorage,t)}function q6(n){"@babel/helpers - typeof";return q6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q6(n)}var ALt=/^\s+/,RLt=/\s+$/;function et(n,e){if(n=n||"",e=e||{},n instanceof et)return n;if(!(this instanceof et))return new et(n,e);var t=PLt(n);this._originalInput=n,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||t.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=t.ok}et.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),t,i,r,s,o,a;return t=e.r/255,i=e.g/255,r=e.b/255,t<=.03928?s=t/12.92:s=Math.pow((t+.055)/1.055,2.4),i<=.03928?o=i/12.92:o=Math.pow((i+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),.2126*s+.7152*o+.0722*a},setAlpha:function(e){return this._a=UIe(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=WIe(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=WIe(this._r,this._g,this._b),t=Math.round(e.h*360),i=Math.round(e.s*100),r=Math.round(e.v*100);return this._a==1?"hsv("+t+", "+i+"%, "+r+"%)":"hsva("+t+", "+i+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=BIe(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=BIe(this._r,this._g,this._b),t=Math.round(e.h*360),i=Math.round(e.s*100),r=Math.round(e.l*100);return this._a==1?"hsl("+t+", "+i+"%, "+r+"%)":"hsla("+t+", "+i+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return HIe(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return BLt(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Dr(this._r,255)*100)+"%",g:Math.round(Dr(this._g,255)*100)+"%",b:Math.round(Dr(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Dr(this._r,255)*100)+"%, "+Math.round(Dr(this._g,255)*100)+"%, "+Math.round(Dr(this._b,255)*100)+"%)":"rgba("+Math.round(Dr(this._r,255)*100)+"%, "+Math.round(Dr(this._g,255)*100)+"%, "+Math.round(Dr(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ZLt[HIe(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t="#"+zIe(this._r,this._g,this._b,this._a),i=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var s=et(e);i="#"+zIe(s._r,s._g,s._b,s._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+i+")"},toString:function(e){var t=!!e;e=e||this._format;var i=!1,r=this._a<1&&this._a>=0,s=!t&&r&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return s?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(i=this.toRgbString()),e==="prgb"&&(i=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(i=this.toHexString()),e==="hex3"&&(i=this.toHexString(!0)),e==="hex4"&&(i=this.toHex8String(!0)),e==="hex8"&&(i=this.toHex8String()),e==="name"&&(i=this.toName()),e==="hsl"&&(i=this.toHslString()),e==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},clone:function(){return et(this.toString())},_applyModification:function(e,t){var i=e.apply(null,[this].concat([].slice.call(t)));return this._r=i._r,this._g=i._g,this._b=i._b,this.setAlpha(i._a),this},lighten:function(){return this._applyModification($Lt,arguments)},brighten:function(){return this._applyModification(ULt,arguments)},darken:function(){return this._applyModification(GLt,arguments)},desaturate:function(){return this._applyModification(WLt,arguments)},saturate:function(){return this._applyModification(HLt,arguments)},greyscale:function(){return this._applyModification(zLt,arguments)},spin:function(){return this._applyModification(jLt,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(YLt,arguments)},complement:function(){return this._applyCombination(qLt,arguments)},monochromatic:function(){return this._applyCombination(XLt,arguments)},splitcomplement:function(){return this._applyCombination(KLt,arguments)},triad:function(){return this._applyCombination($Ie,[3])},tetrad:function(){return this._applyCombination($Ie,[4])}},et.fromRatio=function(n,e){if(q6(n)=="object"){var t={};for(var i in n)n.hasOwnProperty(i)&&(i==="a"?t[i]=n[i]:t[i]=cN(n[i]));n=t}return et(n,e)};function PLt(n){var e={r:0,g:0,b:0},t=1,i=null,r=null,s=null,o=!1,a=!1;return typeof n=="string"&&(n=t2t(n)),q6(n)=="object"&&(yp(n.r)&&yp(n.g)&&yp(n.b)?(e=OLt(n.r,n.g,n.b),o=!0,a=String(n.r).substr(-1)==="%"?"prgb":"rgb"):yp(n.h)&&yp(n.s)&&yp(n.v)?(i=cN(n.s),r=cN(n.v),e=FLt(n.h,i,r),o=!0,a="hsv"):yp(n.h)&&yp(n.s)&&yp(n.l)&&(i=cN(n.s),s=cN(n.l),e=VLt(n.h,i,s),o=!0,a="hsl"),n.hasOwnProperty("a")&&(t=n.a)),t=UIe(t),{ok:o,format:n.format||a,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}function OLt(n,e,t){return{r:Dr(n,255)*255,g:Dr(e,255)*255,b:Dr(t,255)*255}}function BIe(n,e,t){n=Dr(n,255),e=Dr(e,255),t=Dr(t,255);var i=Math.max(n,e,t),r=Math.min(n,e,t),s,o,a=(i+r)/2;if(i==r)s=o=0;else{var l=i-r;switch(o=a>.5?l/(2-i-r):l/(i+r),i){case n:s=(e-t)/l+(e<t?6:0);break;case e:s=(t-n)/l+2;break;case t:s=(n-e)/l+4;break}s/=6}return{h:s,s:o,l:a}}function VLt(n,e,t){var i,r,s;n=Dr(n,360),e=Dr(e,100),t=Dr(t,100);function o(c,h,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?c+(h-c)*6*d:d<1/2?h:d<2/3?c+(h-c)*(2/3-d)*6:c}if(e===0)i=r=s=t;else{var a=t<.5?t*(1+e):t+e-t*e,l=2*t-a;i=o(l,a,n+1/3),r=o(l,a,n),s=o(l,a,n-1/3)}return{r:i*255,g:r*255,b:s*255}}function WIe(n,e,t){n=Dr(n,255),e=Dr(e,255),t=Dr(t,255);var i=Math.max(n,e,t),r=Math.min(n,e,t),s,o,a=i,l=i-r;if(o=i===0?0:l/i,i==r)s=0;else{switch(i){case n:s=(e-t)/l+(e<t?6:0);break;case e:s=(t-n)/l+2;break;case t:s=(n-e)/l+4;break}s/=6}return{h:s,s:o,v:a}}function FLt(n,e,t){n=Dr(n,360)*6,e=Dr(e,100),t=Dr(t,100);var i=Math.floor(n),r=n-i,s=t*(1-e),o=t*(1-r*e),a=t*(1-(1-r)*e),l=i%6,c=[t,o,s,s,a,t][l],h=[a,t,t,o,s,s][l],d=[s,s,a,t,t,o][l];return{r:c*255,g:h*255,b:d*255}}function HIe(n,e,t,i){var r=[Qd(Math.round(n).toString(16)),Qd(Math.round(e).toString(16)),Qd(Math.round(t).toString(16))];return i&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function BLt(n,e,t,i,r){var s=[Qd(Math.round(n).toString(16)),Qd(Math.round(e).toString(16)),Qd(Math.round(t).toString(16)),Qd(GIe(i))];return r&&s[0].charAt(0)==s[0].charAt(1)&&s[1].charAt(0)==s[1].charAt(1)&&s[2].charAt(0)==s[2].charAt(1)&&s[3].charAt(0)==s[3].charAt(1)?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}function zIe(n,e,t,i){var r=[Qd(GIe(i)),Qd(Math.round(n).toString(16)),Qd(Math.round(e).toString(16)),Qd(Math.round(t).toString(16))];return r.join("")}et.equals=function(n,e){return!n||!e?!1:et(n).toRgbString()==et(e).toRgbString()},et.random=function(){return et.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function WLt(n,e){e=e===0?0:e||10;var t=et(n).toHsl();return t.s-=e/100,t.s=K6(t.s),et(t)}function HLt(n,e){e=e===0?0:e||10;var t=et(n).toHsl();return t.s+=e/100,t.s=K6(t.s),et(t)}function zLt(n){return et(n).desaturate(100)}function $Lt(n,e){e=e===0?0:e||10;var t=et(n).toHsl();return t.l+=e/100,t.l=K6(t.l),et(t)}function ULt(n,e){e=e===0?0:e||10;var t=et(n).toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(e/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(e/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(e/100)))),et(t)}function GLt(n,e){e=e===0?0:e||10;var t=et(n).toHsl();return t.l-=e/100,t.l=K6(t.l),et(t)}function jLt(n,e){var t=et(n).toHsl(),i=(t.h+e)%360;return t.h=i<0?360+i:i,et(t)}function qLt(n){var e=et(n).toHsl();return e.h=(e.h+180)%360,et(e)}function $Ie(n,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var t=et(n).toHsl(),i=[et(n)],r=360/e,s=1;s<e;s++)i.push(et({h:(t.h+s*r)%360,s:t.s,l:t.l}));return i}function KLt(n){var e=et(n).toHsl(),t=e.h;return[et(n),et({h:(t+72)%360,s:e.s,l:e.l}),et({h:(t+216)%360,s:e.s,l:e.l})]}function YLt(n,e,t){e=e||6,t=t||30;var i=et(n).toHsl(),r=360/t,s=[et(n)];for(i.h=(i.h-(r*e>>1)+720)%360;--e;)i.h=(i.h+r)%360,s.push(et(i));return s}function XLt(n,e){e=e||6;for(var t=et(n).toHsv(),i=t.h,r=t.s,s=t.v,o=[],a=1/e;e--;)o.push(et({h:i,s:r,v:s})),s=(s+a)%1;return o}et.mix=function(n,e,t){t=t===0?0:t||50;var i=et(n).toRgb(),r=et(e).toRgb(),s=t/100,o={r:(r.r-i.r)*s+i.r,g:(r.g-i.g)*s+i.g,b:(r.b-i.b)*s+i.b,a:(r.a-i.a)*s+i.a};return et(o)},et.readability=function(n,e){var t=et(n),i=et(e);return(Math.max(t.getLuminance(),i.getLuminance())+.05)/(Math.min(t.getLuminance(),i.getLuminance())+.05)},et.isReadable=function(n,e,t){var i=et.readability(n,e),r,s;switch(s=!1,r=i2t(t),r.level+r.size){case"AAsmall":case"AAAlarge":s=i>=4.5;break;case"AAlarge":s=i>=3;break;case"AAAsmall":s=i>=7;break}return s},et.mostReadable=function(n,e,t){var i=null,r=0,s,o,a,l;t=t||{},o=t.includeFallbackColors,a=t.level,l=t.size;for(var c=0;c<e.length;c++)s=et.readability(n,e[c]),s>r&&(r=s,i=et(e[c]));return et.isReadable(n,i,{level:a,size:l})||!o?i:(t.includeFallbackColors=!1,et.mostReadable(n,["#fff","#000"],t))};var GZ=et.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ZLt=et.hexNames=JLt(GZ);function JLt(n){var e={};for(var t in n)n.hasOwnProperty(t)&&(e[n[t]]=t);return e}function UIe(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function Dr(n,e){QLt(n)&&(n="100%");var t=e2t(n);return n=Math.min(e,Math.max(0,parseFloat(n))),t&&(n=parseInt(n*e,10)/100),Math.abs(n-e)<1e-6?1:n%e/parseFloat(e)}function K6(n){return Math.min(1,Math.max(0,n))}function Pc(n){return parseInt(n,16)}function QLt(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1}function e2t(n){return typeof n=="string"&&n.indexOf("%")!=-1}function Qd(n){return n.length==1?"0"+n:""+n}function cN(n){return n<=1&&(n=n*100+"%"),n}function GIe(n){return Math.round(parseFloat(n)*255).toString(16)}function jIe(n){return Pc(n)/255}var eu=function(){var n="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",t="(?:"+e+")|(?:"+n+")",i="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",r="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+i),rgba:new RegExp("rgba"+r),hsl:new RegExp("hsl"+i),hsla:new RegExp("hsla"+r),hsv:new RegExp("hsv"+i),hsva:new RegExp("hsva"+r),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function yp(n){return!!eu.CSS_UNIT.exec(n)}function t2t(n){n=n.replace(ALt,"").replace(RLt,"").toLowerCase();var e=!1;if(GZ[n])n=GZ[n],e=!0;else if(n=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=eu.rgb.exec(n))?{r:t[1],g:t[2],b:t[3]}:(t=eu.rgba.exec(n))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=eu.hsl.exec(n))?{h:t[1],s:t[2],l:t[3]}:(t=eu.hsla.exec(n))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=eu.hsv.exec(n))?{h:t[1],s:t[2],v:t[3]}:(t=eu.hsva.exec(n))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=eu.hex8.exec(n))?{r:Pc(t[1]),g:Pc(t[2]),b:Pc(t[3]),a:jIe(t[4]),format:e?"name":"hex8"}:(t=eu.hex6.exec(n))?{r:Pc(t[1]),g:Pc(t[2]),b:Pc(t[3]),format:e?"name":"hex"}:(t=eu.hex4.exec(n))?{r:Pc(t[1]+""+t[1]),g:Pc(t[2]+""+t[2]),b:Pc(t[3]+""+t[3]),a:jIe(t[4]+""+t[4]),format:e?"name":"hex8"}:(t=eu.hex3.exec(n))?{r:Pc(t[1]+""+t[1]),g:Pc(t[2]+""+t[2]),b:Pc(t[3]+""+t[3]),format:e?"name":"hex"}:!1}function i2t(n){var e,t;return n=n||{level:"AA",size:"small"},e=(n.level||"AA").toUpperCase(),t=(n.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:e,size:t}}var F1=F1||{};F1.stringify=function(){var n={"visit_linear-gradient":function(e){return n.visit_gradient(e)},"visit_repeating-linear-gradient":function(e){return n.visit_gradient(e)},"visit_radial-gradient":function(e){return n.visit_gradient(e)},"visit_repeating-radial-gradient":function(e){return n.visit_gradient(e)},visit_gradient:function(e){var t=n.visit(e.orientation);return t&&(t+=", "),e.type+"("+t+n.visit(e.colorStops)+")"},visit_shape:function(e){var t=e.value,i=n.visit(e.at),r=n.visit(e.style);return r&&(t+=" "+r),i&&(t+=" at "+i),t},"visit_default-radial":function(e){var t="",i=n.visit(e.at);return i&&(t+=i),t},"visit_extent-keyword":function(e){var t=e.value,i=n.visit(e.at);return i&&(t+=" at "+i),t},"visit_position-keyword":function(e){return e.value},visit_position:function(e){return n.visit(e.value.x)+" "+n.visit(e.value.y)},"visit_%":function(e){return e.value+"%"},visit_em:function(e){return e.value+"em"},visit_px:function(e){return e.value+"px"},visit_calc:function(e){return"calc("+e.value+")"},visit_literal:function(e){return n.visit_color(e.value,e)},visit_hex:function(e){return n.visit_color("#"+e.value,e)},visit_rgb:function(e){return n.visit_color("rgb("+e.value.join(", ")+")",e)},visit_rgba:function(e){return n.visit_color("rgba("+e.value.join(", ")+")",e)},visit_hsl:function(e){return n.visit_color("hsl("+e.value[0]+", "+e.value[1]+"%, "+e.value[2]+"%)",e)},visit_hsla:function(e){return n.visit_color("hsla("+e.value[0]+", "+e.value[1]+"%, "+e.value[2]+"%, "+e.value[3]+")",e)},visit_var:function(e){return n.visit_color("var("+e.value+")",e)},visit_color:function(e,t){var i=e,r=n.visit(t.length);return r&&(i+=" "+r),i},visit_angular:function(e){return e.value+"deg"},visit_directional:function(e){return"to "+e.value},visit_array:function(e){var t="",i=e.length;return e.forEach(function(r,s){t+=n.visit(r),s<i-1&&(t+=", ")}),t},visit_object:function(e){return e.width&&e.height?n.visit(e.width)+" "+n.visit(e.height):""},visit:function(e){if(!e)return"";if(e instanceof Array)return n.visit_array(e);if(typeof e=="object"&&!e.type)return n.visit_object(e);if(e.type){var t=n["visit_"+e.type];if(t)return t(e);throw Error("Missing visitor visit_"+e.type)}else throw Error("Invalid node.")}};return function(e){return n.visit(e)}}();var F1=F1||{};F1.parse=function(){var n={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,radianValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))rad/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,varColor:/^var/i,calcValue:/^calc/i,variableName:/^(--[a-zA-Z0-9-,\s\#]+)/,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/,hslColor:/^hsl/i,hslaColor:/^hsla/i},e="";function t(q){var Z=new Error(e+": "+q);throw Z.source=e,Z}function i(){var q=r();return e.length>0&&t("Invalid input not EOF"),q}function r(){return b(s)}function s(){return o("linear-gradient",n.linearGradient,l)||o("repeating-linear-gradient",n.repeatingLinearGradient,l)||o("radial-gradient",n.radialGradient,d)||o("repeating-radial-gradient",n.repeatingRadialGradient,d)}function o(q,Z,ee){return a(Z,function(he){var Re=ee();return Re&&(K(n.comma)||t("Missing comma before color stops")),{type:q,orientation:Re,colorStops:b(y)}})}function a(q,Z){var ee=K(q);if(ee){K(n.startCall)||t("Missing (");var he=Z(ee);return K(n.endCall)||t("Missing )"),he}}function l(){var q=c();if(q)return q;var Z=z("position-keyword",n.positionKeywords,1);return Z?{type:"directional",value:Z.value}:h()}function c(){return z("directional",n.sideOrCorner,1)}function h(){return z("angular",n.angleValue,1)||z("angular",n.radianValue,1)}function d(){var q,Z=u(),ee;return Z&&(q=[],q.push(Z),ee=e,K(n.comma)&&(Z=u(),Z?q.push(Z):e=ee)),q}function u(){var q=f()||g();if(q)q.at=m();else{var Z=p();if(Z){q=Z;var ee=m();ee&&(q.at=ee)}else{var he=m();if(he)q={type:"default-radial",at:he};else{var Re=v();Re&&(q={type:"default-radial",at:Re})}}}return q}function f(){var q=z("shape",/^(circle)/i,0);return q&&(q.style=$()||p()),q}function g(){var q=z("shape",/^(ellipse)/i,0);return q&&(q.style=v()||P()||p()),q}function p(){return z("extent-keyword",n.extentKeywords,1)}function m(){if(z("position",/^at/,0)){var q=v();return q||t("Missing positioning value"),q}}function v(){var q=_();if(q.x||q.y)return{type:"position",value:q}}function _(){return{x:P(),y:P()}}function b(q){var Z=q(),ee=[];if(Z)for(ee.push(Z);K(n.comma);)Z=q(),Z?ee.push(Z):t("One extra comma");return ee}function y(){var q=C();return q||t("Expected color definition"),q.length=P(),q}function C(){return L()||I()||T()||E()||D()||k()||x()}function x(){return z("literal",n.literalColor,0)}function L(){return z("hex",n.hexColor,1)}function D(){return a(n.rgbColor,function(){return{type:"rgb",value:b(M)}})}function E(){return a(n.rgbaColor,function(){return{type:"rgba",value:b(M)}})}function k(){return a(n.varColor,function(){return{type:"var",value:N()}})}function T(){return a(n.hslColor,function(){var q=K(n.percentageValue);q&&t("HSL hue value must be a number in degrees (0-360) or normalized (-360 to 360), not a percentage");var Z=M();K(n.comma);var ee=K(n.percentageValue),he=ee?ee[1]:null;K(n.comma),ee=K(n.percentageValue);var Re=ee?ee[1]:null;return(!he||!Re)&&t("Expected percentage value for saturation and lightness in HSL"),{type:"hsl",value:[Z,he,Re]}})}function I(){return a(n.hslaColor,function(){var q=M();K(n.comma);var Z=K(n.percentageValue),ee=Z?Z[1]:null;K(n.comma),Z=K(n.percentageValue);var he=Z?Z[1]:null;K(n.comma);var Re=M();return(!ee||!he)&&t("Expected percentage value for saturation and lightness in HSLA"),{type:"hsla",value:[q,ee,he,Re]}})}function N(){return K(n.variableName)[1]}function M(){return K(n.number)[1]}function P(){return z("%",n.percentageValue,1)||R()||W()||$()}function R(){return z("position-keyword",n.positionKeywords,1)}function W(){return a(n.calcValue,function(){for(var q=1,Z=0;q>0&&Z<e.length;){var ee=e.charAt(Z);ee==="("?q++:ee===")"&&q--,Z++}q>0&&t("Missing closing parenthesis in calc() expression");var he=e.substring(0,Z-1);return Y(Z-1),{type:"calc",value:he}})}function $(){return z("px",n.pixelValue,1)||z("em",n.emValue,1)}function z(q,Z,ee){var he=K(Z);if(he)return{type:q,value:he[ee]}}function K(q){var Z,ee;return ee=/^[\n\r\t\s]+/.exec(e),ee&&Y(ee[0].length),Z=q.exec(e),Z&&Y(Z[0].length),Z}function Y(q){e=e.substr(q)}return function(q){return e=q.toString().trim(),e.endsWith(";")&&(e=e.slice(0,-1)),i()}}();var n2t=F1.parse,r2t=F1.stringify,jl="top",Yh="bottom",Xh="right",ql="left",jZ="auto",hN=[jl,Yh,Xh,ql],yL="start",dN="end",s2t="clippingParents",qIe="viewport",uN="popper",o2t="reference",KIe=hN.reduce(function(n,e){return n.concat([e+"-"+yL,e+"-"+dN])},[]),YIe=[].concat(hN,[jZ]).reduce(function(n,e){return n.concat([e,e+"-"+yL,e+"-"+dN])},[]),a2t="beforeRead",l2t="read",c2t="afterRead",h2t="beforeMain",d2t="main",u2t="afterMain",f2t="beforeWrite",g2t="write",p2t="afterWrite",m2t=[a2t,l2t,c2t,h2t,d2t,u2t,f2t,g2t,p2t];function wf(n){return n?(n.nodeName||"").toLowerCase():null}function Oc(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function B1(n){var e=Oc(n).Element;return n instanceof e||n instanceof Element}function Zh(n){var e=Oc(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function qZ(n){if(typeof ShadowRoot>"u")return!1;var e=Oc(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function v2t(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},r=e.attributes[t]||{},s=e.elements[t];!Zh(s)||!wf(s)||(Object.assign(s.style,i),Object.keys(r).forEach(function(o){var a=r[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function _2t(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var r=e.elements[i],s=e.attributes[i]||{},o=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),a=o.reduce(function(l,c){return l[c]="",l},{});!Zh(r)||!wf(r)||(Object.assign(r.style,a),Object.keys(s).forEach(function(l){r.removeAttribute(l)}))})}}const b2t={name:"applyStyles",enabled:!0,phase:"write",fn:v2t,effect:_2t,requires:["computeStyles"]};function Cf(n){return n.split("-")[0]}var W1=Math.max,Y6=Math.min,wL=Math.round;function KZ(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function XIe(){return!/^((?!chrome|android).)*safari/i.test(KZ())}function CL(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=n.getBoundingClientRect(),r=1,s=1;e&&Zh(n)&&(r=n.offsetWidth>0&&wL(i.width)/n.offsetWidth||1,s=n.offsetHeight>0&&wL(i.height)/n.offsetHeight||1);var o=B1(n)?Oc(n):window,a=o.visualViewport,l=!XIe()&&t,c=(i.left+(l&&a?a.offsetLeft:0))/r,h=(i.top+(l&&a?a.offsetTop:0))/s,d=i.width/r,u=i.height/s;return{width:d,height:u,top:h,right:c+d,bottom:h+u,left:c,x:c,y:h}}function YZ(n){var e=CL(n),t=n.offsetWidth,i=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:i}}function ZIe(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&qZ(t)){var i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function wp(n){return Oc(n).getComputedStyle(n)}function y2t(n){return["table","td","th"].indexOf(wf(n))>=0}function l_(n){return((B1(n)?n.ownerDocument:n.document)||window.document).documentElement}function X6(n){return wf(n)==="html"?n:n.assignedSlot||n.parentNode||(qZ(n)?n.host:null)||l_(n)}function JIe(n){return!Zh(n)||wp(n).position==="fixed"?null:n.offsetParent}function w2t(n){var e=/firefox/i.test(KZ()),t=/Trident/i.test(KZ());if(t&&Zh(n)){var i=wp(n);if(i.position==="fixed")return null}var r=X6(n);for(qZ(r)&&(r=r.host);Zh(r)&&["html","body"].indexOf(wf(r))<0;){var s=wp(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function fN(n){for(var e=Oc(n),t=JIe(n);t&&y2t(t)&&wp(t).position==="static";)t=JIe(t);return t&&(wf(t)==="html"||wf(t)==="body"&&wp(t).position==="static")?e:t||w2t(n)||e}function XZ(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function gN(n,e,t){return W1(n,Y6(e,t))}function C2t(n,e,t){var i=gN(n,e,t);return i>t?t:i}function QIe(){return{top:0,right:0,bottom:0,left:0}}function eNe(n){return Object.assign({},QIe(),n)}function tNe(n,e){return e.reduce(function(t,i){return t[i]=n,t},{})}var S2t=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,eNe(typeof e!="number"?e:tNe(e,hN))};function x2t(n){var e,t=n.state,i=n.name,r=n.options,s=t.elements.arrow,o=t.modifiersData.popperOffsets,a=Cf(t.placement),l=XZ(a),c=[ql,Xh].indexOf(a)>=0,h=c?"height":"width";if(!(!s||!o)){var d=S2t(r.padding,t),u=YZ(s),f=l==="y"?jl:ql,g=l==="y"?Yh:Xh,p=t.rects.reference[h]+t.rects.reference[l]-o[l]-t.rects.popper[h],m=o[l]-t.rects.reference[l],v=fN(s),_=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,b=p/2-m/2,y=d[f],C=_-u[h]-d[g],x=_/2-u[h]/2+b,L=gN(y,x,C),D=l;t.modifiersData[i]=(e={},e[D]=L,e.centerOffset=L-x,e)}}function L2t(n){var e=n.state,t=n.options,i=t.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||ZIe(e.elements.popper,r)&&(e.elements.arrow=r))}const D2t={name:"arrow",enabled:!0,phase:"main",fn:x2t,effect:L2t,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function SL(n){return n.split("-")[1]}var E2t={top:"auto",right:"auto",bottom:"auto",left:"auto"};function k2t(n,e){var t=n.x,i=n.y,r=e.devicePixelRatio||1;return{x:wL(t*r)/r||0,y:wL(i*r)/r||0}}function iNe(n){var e,t=n.popper,i=n.popperRect,r=n.placement,s=n.variation,o=n.offsets,a=n.position,l=n.gpuAcceleration,c=n.adaptive,h=n.roundOffsets,d=n.isFixed,u=o.x,f=u===void 0?0:u,g=o.y,p=g===void 0?0:g,m=typeof h=="function"?h({x:f,y:p}):{x:f,y:p};f=m.x,p=m.y;var v=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),b=ql,y=jl,C=window;if(c){var x=fN(t),L="clientHeight",D="clientWidth";if(x===Oc(t)&&(x=l_(t),wp(x).position!=="static"&&a==="absolute"&&(L="scrollHeight",D="scrollWidth")),x=x,r===jl||(r===ql||r===Xh)&&s===dN){y=Yh;var E=d&&x===C&&C.visualViewport?C.visualViewport.height:x[L];p-=E-i.height,p*=l?1:-1}if(r===ql||(r===jl||r===Yh)&&s===dN){b=Xh;var k=d&&x===C&&C.visualViewport?C.visualViewport.width:x[D];f-=k-i.width,f*=l?1:-1}}var T=Object.assign({position:a},c&&E2t),I=h===!0?k2t({x:f,y:p},Oc(t)):{x:f,y:p};if(f=I.x,p=I.y,l){var N;return Object.assign({},T,(N={},N[y]=_?"0":"",N[b]=v?"0":"",N.transform=(C.devicePixelRatio||1)<=1?"translate("+f+"px, "+p+"px)":"translate3d("+f+"px, "+p+"px, 0)",N))}return Object.assign({},T,(e={},e[y]=_?p+"px":"",e[b]=v?f+"px":"",e.transform="",e))}function T2t(n){var e=n.state,t=n.options,i=t.gpuAcceleration,r=i===void 0?!0:i,s=t.adaptive,o=s===void 0?!0:s,a=t.roundOffsets,l=a===void 0?!0:a,c={placement:Cf(e.placement),variation:SL(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,iNe(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,iNe(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const I2t={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:T2t,data:{}};var Z6={passive:!0};function N2t(n){var e=n.state,t=n.instance,i=n.options,r=i.scroll,s=r===void 0?!0:r,o=i.resize,a=o===void 0?!0:o,l=Oc(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(h){h.addEventListener("scroll",t.update,Z6)}),a&&l.addEventListener("resize",t.update,Z6),function(){s&&c.forEach(function(h){h.removeEventListener("scroll",t.update,Z6)}),a&&l.removeEventListener("resize",t.update,Z6)}}const M2t={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:N2t,data:{}};var A2t={left:"right",right:"left",bottom:"top",top:"bottom"};function J6(n){return n.replace(/left|right|bottom|top/g,function(e){return A2t[e]})}var R2t={start:"end",end:"start"};function nNe(n){return n.replace(/start|end/g,function(e){return R2t[e]})}function ZZ(n){var e=Oc(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function JZ(n){return CL(l_(n)).left+ZZ(n).scrollLeft}function P2t(n,e){var t=Oc(n),i=l_(n),r=t.visualViewport,s=i.clientWidth,o=i.clientHeight,a=0,l=0;if(r){s=r.width,o=r.height;var c=XIe();(c||!c&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:o,x:a+JZ(n),y:l}}function O2t(n){var e,t=l_(n),i=ZZ(n),r=(e=n.ownerDocument)==null?void 0:e.body,s=W1(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=W1(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+JZ(n),l=-i.scrollTop;return wp(r||t).direction==="rtl"&&(a+=W1(t.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function QZ(n){var e=wp(n),t=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+i)}function rNe(n){return["html","body","#document"].indexOf(wf(n))>=0?n.ownerDocument.body:Zh(n)&&QZ(n)?n:rNe(X6(n))}function pN(n,e){var t;e===void 0&&(e=[]);var i=rNe(n),r=i===((t=n.ownerDocument)==null?void 0:t.body),s=Oc(i),o=r?[s].concat(s.visualViewport||[],QZ(i)?i:[]):i,a=e.concat(o);return r?a:a.concat(pN(X6(o)))}function eJ(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function V2t(n,e){var t=CL(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function sNe(n,e,t){return e===qIe?eJ(P2t(n,t)):B1(e)?V2t(e,t):eJ(O2t(l_(n)))}function F2t(n){var e=pN(X6(n)),t=["absolute","fixed"].indexOf(wp(n).position)>=0,i=t&&Zh(n)?fN(n):n;return B1(i)?e.filter(function(r){return B1(r)&&ZIe(r,i)&&wf(r)!=="body"}):[]}function B2t(n,e,t,i){var r=e==="clippingParents"?F2t(n):[].concat(e),s=[].concat(r,[t]),o=s[0],a=s.reduce(function(l,c){var h=sNe(n,c,i);return l.top=W1(h.top,l.top),l.right=Y6(h.right,l.right),l.bottom=Y6(h.bottom,l.bottom),l.left=W1(h.left,l.left),l},sNe(n,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function oNe(n){var e=n.reference,t=n.element,i=n.placement,r=i?Cf(i):null,s=i?SL(i):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(r){case jl:l={x:o,y:e.y-t.height};break;case Yh:l={x:o,y:e.y+e.height};break;case Xh:l={x:e.x+e.width,y:a};break;case ql:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var c=r?XZ(r):null;if(c!=null){var h=c==="y"?"height":"width";switch(s){case yL:l[c]=l[c]-(e[h]/2-t[h]/2);break;case dN:l[c]=l[c]+(e[h]/2-t[h]/2);break}}return l}function mN(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=i===void 0?n.placement:i,s=t.strategy,o=s===void 0?n.strategy:s,a=t.boundary,l=a===void 0?s2t:a,c=t.rootBoundary,h=c===void 0?qIe:c,d=t.elementContext,u=d===void 0?uN:d,f=t.altBoundary,g=f===void 0?!1:f,p=t.padding,m=p===void 0?0:p,v=eNe(typeof m!="number"?m:tNe(m,hN)),_=u===uN?o2t:uN,b=n.rects.popper,y=n.elements[g?_:u],C=B2t(B1(y)?y:y.contextElement||l_(n.elements.popper),l,h,o),x=CL(n.elements.reference),L=oNe({reference:x,element:b,placement:r}),D=eJ(Object.assign({},b,L)),E=u===uN?D:x,k={top:C.top-E.top+v.top,bottom:E.bottom-C.bottom+v.bottom,left:C.left-E.left+v.left,right:E.right-C.right+v.right},T=n.modifiersData.offset;if(u===uN&&T){var I=T[r];Object.keys(k).forEach(function(N){var M=[Xh,Yh].indexOf(N)>=0?1:-1,P=[jl,Yh].indexOf(N)>=0?"y":"x";k[N]+=I[P]*M})}return k}function W2t(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=t.boundary,s=t.rootBoundary,o=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,c=l===void 0?YIe:l,h=SL(i),d=h?a?KIe:KIe.filter(function(g){return SL(g)===h}):hN,u=d.filter(function(g){return c.indexOf(g)>=0});u.length===0&&(u=d);var f=u.reduce(function(g,p){return g[p]=mN(n,{placement:p,boundary:r,rootBoundary:s,padding:o})[Cf(p)],g},{});return Object.keys(f).sort(function(g,p){return f[g]-f[p]})}function H2t(n){if(Cf(n)===jZ)return[];var e=J6(n);return[nNe(n),e,nNe(e)]}function z2t(n){var e=n.state,t=n.options,i=n.name;if(!e.modifiersData[i]._skip){for(var r=t.mainAxis,s=r===void 0?!0:r,o=t.altAxis,a=o===void 0?!0:o,l=t.fallbackPlacements,c=t.padding,h=t.boundary,d=t.rootBoundary,u=t.altBoundary,f=t.flipVariations,g=f===void 0?!0:f,p=t.allowedAutoPlacements,m=e.options.placement,v=Cf(m),_=v===m,b=l||(_||!g?[J6(m)]:H2t(m)),y=[m].concat(b).reduce(function(ee,he){return ee.concat(Cf(he)===jZ?W2t(e,{placement:he,boundary:h,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:p}):he)},[]),C=e.rects.reference,x=e.rects.popper,L=new Map,D=!0,E=y[0],k=0;k<y.length;k++){var T=y[k],I=Cf(T),N=SL(T)===yL,M=[jl,Yh].indexOf(I)>=0,P=M?"width":"height",R=mN(e,{placement:T,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),W=M?N?Xh:ql:N?Yh:jl;C[P]>x[P]&&(W=J6(W));var $=J6(W),z=[];if(s&&z.push(R[I]<=0),a&&z.push(R[W]<=0,R[$]<=0),z.every(function(ee){return ee})){E=T,D=!1;break}L.set(T,z)}if(D)for(var K=g?3:1,Y=function(he){var Re=y.find(function(Ge){var ke=L.get(Ge);if(ke)return ke.slice(0,he).every(function(ce){return ce})});if(Re)return E=Re,"break"},q=K;q>0;q--){var Z=Y(q);if(Z==="break")break}e.placement!==E&&(e.modifiersData[i]._skip=!0,e.placement=E,e.reset=!0)}}const $2t={name:"flip",enabled:!0,phase:"main",fn:z2t,requiresIfExists:["offset"],data:{_skip:!1}};function aNe(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function lNe(n){return[jl,Xh,Yh,ql].some(function(e){return n[e]>=0})}function U2t(n){var e=n.state,t=n.name,i=e.rects.reference,r=e.rects.popper,s=e.modifiersData.preventOverflow,o=mN(e,{elementContext:"reference"}),a=mN(e,{altBoundary:!0}),l=aNe(o,i),c=aNe(a,r,s),h=lNe(l),d=lNe(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}const G2t={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:U2t};function j2t(n,e,t){var i=Cf(n),r=[ql,jl].indexOf(i)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,o=s[0],a=s[1];return o=o||0,a=(a||0)*r,[ql,Xh].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function q2t(n){var e=n.state,t=n.options,i=n.name,r=t.offset,s=r===void 0?[0,0]:r,o=YIe.reduce(function(h,d){return h[d]=j2t(d,e.rects,s),h},{}),a=o[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=o}const K2t={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:q2t};function Y2t(n){var e=n.state,t=n.name;e.modifiersData[t]=oNe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const X2t={name:"popperOffsets",enabled:!0,phase:"read",fn:Y2t,data:{}};function Z2t(n){return n==="x"?"y":"x"}function J2t(n){var e=n.state,t=n.options,i=n.name,r=t.mainAxis,s=r===void 0?!0:r,o=t.altAxis,a=o===void 0?!1:o,l=t.boundary,c=t.rootBoundary,h=t.altBoundary,d=t.padding,u=t.tether,f=u===void 0?!0:u,g=t.tetherOffset,p=g===void 0?0:g,m=mN(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),v=Cf(e.placement),_=SL(e.placement),b=!_,y=XZ(v),C=Z2t(y),x=e.modifiersData.popperOffsets,L=e.rects.reference,D=e.rects.popper,E=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,k=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,I={x:0,y:0};if(x){if(s){var N,M=y==="y"?jl:ql,P=y==="y"?Yh:Xh,R=y==="y"?"height":"width",W=x[y],$=W+m[M],z=W-m[P],K=f?-D[R]/2:0,Y=_===yL?L[R]:D[R],q=_===yL?-D[R]:-L[R],Z=e.elements.arrow,ee=f&&Z?YZ(Z):{width:0,height:0},he=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:QIe(),Re=he[M],Ge=he[P],ke=gN(0,L[R],ee[R]),ce=b?L[R]/2-K-ke-Re-k.mainAxis:Y-ke-Re-k.mainAxis,we=b?-L[R]/2+K+ke+Ge+k.mainAxis:q+ke+Ge+k.mainAxis,ye=e.elements.arrow&&fN(e.elements.arrow),Pe=ye?y==="y"?ye.clientTop||0:ye.clientLeft||0:0,Ft=(N=T==null?void 0:T[y])!=null?N:0,Pt=W+ce-Ft-Pe,di=W+we-Ft,Ai=gN(f?Y6($,Pt):$,W,f?W1(z,di):z);x[y]=Ai,I[y]=Ai-W}if(a){var hn,Pr=y==="x"?jl:ql,jn=y==="x"?Yh:Xh,Lr=x[C],Us=C==="y"?"height":"width",sb=Lr+m[Pr],Bl=Lr-m[jn],av=[jl,ql].indexOf(v)!==-1,lv=(hn=T==null?void 0:T[C])!=null?hn:0,cv=av?sb:Lr-L[Us]-D[Us]-lv+k.altAxis,CO=av?Lr+L[Us]+D[Us]-lv-k.altAxis:Bl,SO=f&&av?C2t(cv,Lr,CO):gN(f?cv:sb,Lr,f?CO:Bl);x[C]=SO,I[C]=SO-Lr}e.modifiersData[i]=I}}const Q2t={name:"preventOverflow",enabled:!0,phase:"main",fn:J2t,requiresIfExists:["offset"]};function eDt(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function tDt(n){return n===Oc(n)||!Zh(n)?ZZ(n):eDt(n)}function iDt(n){var e=n.getBoundingClientRect(),t=wL(e.width)/n.offsetWidth||1,i=wL(e.height)/n.offsetHeight||1;return t!==1||i!==1}function nDt(n,e,t){t===void 0&&(t=!1);var i=Zh(e),r=Zh(e)&&iDt(e),s=l_(e),o=CL(n,r,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&((wf(e)!=="body"||QZ(s))&&(a=tDt(e)),Zh(e)?(l=CL(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=JZ(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function rDt(n){var e=new Map,t=new Set,i=[];n.forEach(function(s){e.set(s.name,s)});function r(s){t.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&r(l)}}),i.push(s)}return n.forEach(function(s){t.has(s.name)||r(s)}),i}function sDt(n){var e=rDt(n);return m2t.reduce(function(t,i){return t.concat(e.filter(function(r){return r.phase===i}))},[])}function oDt(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function aDt(n){var e=n.reduce(function(t,i){var r=t[i.name];return t[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var cNe={placement:"bottom",modifiers:[],strategy:"absolute"};function hNe(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function lDt(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,i=t===void 0?[]:t,r=e.defaultOptions,s=r===void 0?cNe:r;return function(a,l,c){c===void 0&&(c=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},cNe,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],u=!1,f={state:h,setOptions:function(v){var _=typeof v=="function"?v(h.options):v;p(),h.options=Object.assign({},s,h.options,_),h.scrollParents={reference:B1(a)?pN(a):a.contextElement?pN(a.contextElement):[],popper:pN(l)};var b=sDt(aDt([].concat(i,h.options.modifiers)));return h.orderedModifiers=b.filter(function(y){return y.enabled}),g(),f.update()},forceUpdate:function(){if(!u){var v=h.elements,_=v.reference,b=v.popper;if(hNe(_,b)){h.rects={reference:nDt(_,fN(b),h.options.strategy==="fixed"),popper:YZ(b)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(k){return h.modifiersData[k.name]=Object.assign({},k.data)});for(var y=0;y<h.orderedModifiers.length;y++){if(h.reset===!0){h.reset=!1,y=-1;continue}var C=h.orderedModifiers[y],x=C.fn,L=C.options,D=L===void 0?{}:L,E=C.name;typeof x=="function"&&(h=x({state:h,options:D,name:E,instance:f})||h)}}}},update:oDt(function(){return new Promise(function(m){f.forceUpdate(),m(h)})}),destroy:function(){p(),u=!0}};if(!hNe(a,l))return f;f.setOptions(c).then(function(m){!u&&c.onFirstUpdate&&c.onFirstUpdate(m)});function g(){h.orderedModifiers.forEach(function(m){var v=m.name,_=m.options,b=_===void 0?{}:_,y=m.effect;if(typeof y=="function"){var C=y({state:h,name:v,instance:f,options:b}),x=function(){};d.push(C||x)}})}function p(){d.forEach(function(m){return m()}),d=[]}return f}}var cDt=[M2t,X2t,I2t,b2t,K2t,$2t,Q2t,D2t,G2t],hDt=lDt({defaultModifiers:cDt});/*!
899
+ });
900
+ a.length = a.length - 1;
901
+ $.${y}.文本 = a.find(i => i.value == value)?.label;
902
+
903
+ const statusCode = data.payload.statusCode;
904
+ const colorMap = {
905
+ Good: '#fff',
906
+ Uncertain: '#999',
907
+ Bad: '#f00'
908
+ };
909
+ $.${y}.字体颜色 = colorMap[statusCode] || '#fff';`,x=`const value = data.payload.value;
910
+ $.${y}.文本 = value;
911
+
912
+ const statusCode = data.payload.statusCode;
913
+ const colorMap = {
914
+ Good: '#fff',
915
+ Uncertain: '#999',
916
+ Bad: '#f00'
917
+ };
918
+ $.${y}.字体颜色 = colorMap[statusCode] || '#fff';`,L={type:"text",text:"--",dataSource:{type:"opcua",path:b.nodeId,parse:b.description?C:x,point:{...b},bindNode:[]},name:y};let D=e.graph.createNode({shape:"text-node"});D.setData(L),e.dnd.start(D,v)},p=({node:v})=>{var _,b,y,C,x,L,D,E,k,T,I,N;if(((_=v.data)==null?void 0:_.type)!=="line"&&(b=v.data)!=null&&b.dataSource&&(C=(y=v.data)==null?void 0:y.dataSource)!=null&&C.type){const M=(L=(x=v.data)==null?void 0:x.dataSource)==null?void 0:L.type,P=(E=(D=v.data)==null?void 0:D.dataSource)==null?void 0:E.path,R=(T=(k=v.data)==null?void 0:k.dataSource)==null?void 0:T.parse,W=(N=(I=v.data)==null?void 0:I.dataSource)==null?void 0:N.point;if(M==="opcua"&&P){const $=[v.id];v.setData({dataSource:{bindNode:$}});const z=v.data.dataSource.fields;let K=Object.keys(z).reduce((q,Z)=>(q[Z]=null,q),{}),Y={};Y[v.data.name]=K,t.readPoints([P]).then(q=>{if(q&&q.length>0){let Z={};if(R)try{new Function("data","$",R)({payload:q[0],pointTemp:W},Y);const he=Y[v.data.name];Object.keys(he).forEach(Re=>{if(he[Re]!==null){const Ge=z[Re],ke=he[Re];v.setData(R3(v.getData(),Ge,ke),{deep:!1})}})}catch(ee){console.log(ee)}else Z[bindName]=q[0].value||"--";v.setData(Z)}})}}},m=v=>{var _;i.setItem("copyOpcuaNode",(_=v.data)==null?void 0:_.data),setTimeout(()=>{i.removeItem("copyOpcuaNode")},60*1e3)};return w.onMounted(()=>{var v;(v=e.graph)==null||v.on("node:added",p)}),w.onBeforeUnmount(()=>{var v;(v=e.graph)==null||v.off("node:added",p)}),(v,_)=>{const b=w.resolveComponent("el-button"),y=w.resolveComponent("el-input"),C=w.resolveComponent("el-icon"),x=w.resolveComponent("el-popover"),L=w.resolveComponent("el-tree-v2");return w.openBlock(),w.createElementBlock("div",Vxt,[w.createElementVNode("div",Fxt,[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(o.value,(D,E)=>(w.openBlock(),w.createElementBlock("div",{key:D.index,class:w.normalizeClass(["group",{active:a.value===E}]),onClick:k=>l(E)},[w.createElementVNode("i",{class:w.normalizeClass(D.icon)},null,2),w.createElementVNode("span",null,w.toDisplayString(D.name),1)],10,Bxt))),128))]),w.createElementVNode("div",Wxt,[a.value===0?(w.openBlock(),w.createElementBlock(w.Fragment,{key:0},[w.createElementVNode("div",Hxt,[w.createVNode(y,{modelValue:c.value,"onUpdate:modelValue":_[0]||(_[0]=D=>c.value=D),style:{height:"30px"},placeholder:"请输入名称过滤",size:"small"},{append:w.withCtx(()=>[w.createVNode(b,{icon:w.unref(Zfe),onClick:u},null,8,["icon"])]),_:1},8,["modelValue"])]),w.createVNode(L,{ref_key:"treeRef",ref:h,style:{width:"100%","user-select":"none"},data:r.value,props:d,height:800,"filter-method":f},{default:w.withCtx(({node:D})=>[w.createVNode(C,{class:"el-icon--left"},{default:w.withCtx(()=>[D.isLeaf?(w.openBlock(),w.createBlock(w.unref(Xfe),{key:0})):D.expanded?(w.openBlock(),w.createBlock(w.unref(o$e),{key:2})):(w.openBlock(),w.createBlock(w.unref(l$e),{key:1}))]),_:2},1024),D.level>1?(w.openBlock(),w.createBlock(x,{key:0,placement:"right"},{reference:w.withCtx(()=>{var E,k;return[w.createElementVNode("div",{onMousedown:T=>g(T,D),style:{flex:"1"},title:(k=(E=D==null?void 0:D.data)==null?void 0:E.data)==null?void 0:k.nodeId},w.toDisplayString(D.label),41,zxt)]}),default:w.withCtx(()=>[w.createVNode(b,{type:"primary",plain:"",size:"small",onClick:E=>m(D)},{default:w.withCtx(()=>[..._[2]||(_[2]=[w.createTextVNode("复制节点地址",-1)])]),_:1},8,["onClick"])]),_:2},1024)):(w.openBlock(),w.createElementBlock("div",$xt,w.toDisplayString(D.label),1))]),_:1},8,["data"])],64)):w.createCommentVNode("",!0),a.value===1?(w.openBlock(),w.createElementBlock(w.Fragment,{key:1},[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(v.httpData,(D,E)=>(w.openBlock(),w.createElementBlock("div",{class:"httpPanel",onClick:k=>v.handleOpen(D),key:E},null,8,Uxt))),128)),w.createVNode(b,{style:{width:"100%"},type:"primary",onClick:_[1]||(_[1]=D=>v.handleOpen({})),size:"small"},{default:w.withCtx(()=>[..._[3]||(_[3]=[w.createTextVNode("新增接口数据",-1)])]),_:1})],64)):w.createCommentVNode("",!0)])])}}},[["__scopeId","data-v-d4e9dc5b"]]),jxt={class:"graphics"},qxt={class:"menus"},Kxt=Yn({__name:"index",setup(n){const e=w.ref(0);return(t,i)=>(w.openBlock(),w.createElementBlock("div",jxt,[w.createElementVNode("div",qxt,[w.createElementVNode("div",{class:w.normalizeClass(["menu",{active:e.value===0}]),onClick:i[0]||(i[0]=r=>e.value=0)},"菜单目录",2),w.createElementVNode("div",{class:w.normalizeClass(["menu",{active:e.value===1}]),onClick:i[1]||(i[1]=r=>e.value=1)},"系统资源",2),w.createElementVNode("div",{class:w.normalizeClass(["menu",{active:e.value===2}]),onClick:i[2]||(i[2]=r=>e.value=2)},"我的资源",2),w.createElementVNode("div",{class:w.normalizeClass(["menu",{active:e.value===3}]),onClick:i[3]||(i[3]=r=>e.value=3)},"数据来源",2)]),e.value===0?(w.openBlock(),w.createBlock(_xt,{key:0})):w.createCommentVNode("",!0),e.value===1?(w.openBlock(),w.createBlock(Oxt,{key:1})):w.createCommentVNode("",!0),e.value===3?(w.openBlock(),w.createBlock(Gxt,{key:2})):w.createCommentVNode("",!0)]))}},[["__scopeId","data-v-9a0789ce"]]),Yxt=["src"],Xxt=Yn({__name:"graphProperty",setup(n){vL();const e=Ds(),{style:t,name:i}=Fg.storeToRefs(e),r=w.ref(["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgba(255, 69, 0, 0.68)","rgb(255, 120, 0)","hsv(51, 100, 98)","hsva(120, 40, 94, 0.5)","hsl(181, 100%, 37%)","hsla(209, 100%, 56%, 0.73)","#c7158577"]);function s(a){return new Promise((l,c)=>{const h=new FileReader;h.onload=()=>l(h.result),h.onerror=c,h.readAsDataURL(a)})}const o=async a=>{if(!a.type.startsWith("image/"))return vn.ElMessage.error("只能上传图片文件"),!1;if(!(a.size/1024/1024<2))return vn.ElMessage.error("图片大小不能超过 2MB"),!1;try{const c=await s(a);t.value.backgroundImage=c}catch{return vn.ElMessage.error("图片读取失败"),!1}return!1};return w.ref(1920),w.ref(1080),(a,l)=>{const c=w.resolveComponent("el-input"),h=w.resolveComponent("el-form-item");w.resolveComponent("el-input-number"),w.resolveComponent("el-button");const d=w.resolveComponent("el-color-picker"),u=w.resolveComponent("el-icon"),f=w.resolveComponent("el-upload"),g=w.resolveComponent("el-form");return w.openBlock(),w.createBlock(g,{class:"graphProperty",size:"small","label-width":"auto",onSubmit:l[4]||(l[4]=w.withModifiers(()=>{},["prevent"]))},{default:w.withCtx(()=>[w.createVNode(h,{label:"目录名称"},{default:w.withCtx(()=>[w.createVNode(c,{modelValue:w.unref(i),"onUpdate:modelValue":l[0]||(l[0]=p=>w.isRef(i)?i.value=p:null)},null,8,["modelValue"])]),_:1}),w.createCommentVNode("",!0),w.createVNode(h,{label:"背景颜色"},{default:w.withCtx(()=>[w.createVNode(d,{modelValue:w.unref(t).backgroundColor,"onUpdate:modelValue":l[3]||(l[3]=p=>w.unref(t).backgroundColor=p),"show-alpha":"",predefine:r.value,style:{width:"100%",height:"30px"}},null,8,["modelValue","predefine"])]),_:1}),w.createVNode(h,{label:"背景图片"},{default:w.withCtx(()=>[w.createVNode(f,{accept:"image/*","show-file-list":!1,"before-upload":o},{default:w.withCtx(()=>[w.unref(t).backgroundImage?(w.openBlock(),w.createElementBlock("img",{key:0,src:w.unref(t).backgroundImage,style:{width:"100%",height:"100%"}},null,8,Yxt)):(w.openBlock(),w.createBlock(u,{key:1,class:"avatar-uploader-icon"},{default:w.withCtx(()=>[w.createVNode(w.unref(D$))]),_:1}))]),_:1})]),_:1})]),_:1})}}},[["__scopeId","data-v-3a1238a6"]]),Zxt=Yn({__name:"nodePanel",setup(n){var s;const e=Ds();w.inject("cellId");const t=w.inject("getCurCell")(),i=t.getData()||{},r=w.ref({name:((s=t.getData())==null?void 0:s.name)||"",x:t.position().x,y:t.position().y,width:t.size().width,height:t.size().height,zIndex:t.prop("zIndex"),opacity:i.opacity||1,borderStyle:i.borderStyle,borderRadius:i.borderRadius,borderWidth:i.borderWidth,borderColor:i.borderColor,backgroundColor:i.backgroundColor,visible:i.visible===void 0?!0:i.visible});return w.watch(r.value,()=>{t.prop("position",{x:r.value.x,y:r.value.y}),t.prop("size",{width:r.value.width,height:r.value.height}),t.prop("zIndex",r.value.zIndex);const{name:o,opacity:a,borderStyle:l,borderRadius:c,borderWidth:h,borderColor:d,backgroundColor:u,backgroundImage:f,color:g,visible:p}=r.value;t.setData({name:o,opacity:a,borderStyle:l,borderRadius:c,borderWidth:h,borderColor:d,backgroundColor:u,visible:p})}),w.onMounted(()=>{t.on("change:size",({current:o})=>{r.value.width=o.width,r.value.height=o.height}),t.on("change:position",({current:o})=>{r.value.x=+o.x.toFixed(0),r.value.y=+o.y.toFixed(0)})}),w.onBeforeUnmount(()=>{var o,a;(o=e.graph)==null||o.off("node:resized"),(a=e.graph)==null||a.off("node:change:position")}),(o,a)=>{const l=w.resolveComponent("el-input"),c=w.resolveComponent("el-form-item"),h=w.resolveComponent("el-input-number"),d=w.resolveComponent("el-slider"),u=w.resolveComponent("el-option"),f=w.resolveComponent("el-select"),g=w.resolveComponent("el-color-picker"),p=w.resolveComponent("el-switch"),m=w.resolveComponent("el-form");return w.openBlock(),w.createBlock(m,{size:"small","label-width":"80px","label-position":"left",class:"nodePanel"},{default:w.withCtx(()=>[a[18]||(a[18]=w.createElementVNode("div",{class:"baseTitle"},"基础",-1)),w.createVNode(c,{label:"元素名称"},{default:w.withCtx(()=>[w.createVNode(l,{modelValue:r.value.name,"onUpdate:modelValue":a[0]||(a[0]=v=>r.value.name=v)},null,8,["modelValue"])]),_:1}),w.createVNode(c,{label:"位置"},{default:w.withCtx(()=>[w.createVNode(h,{modelValue:r.value.x,"onUpdate:modelValue":a[1]||(a[1]=v=>r.value.x=v),"controls-position":"right",min:0,step:5,style:{width:"90px","margin-right":"10px"}},{prefix:w.withCtx(()=>[...a[13]||(a[13]=[w.createElementVNode("span",null,"X",-1)])]),_:1},8,["modelValue"]),w.createVNode(h,{modelValue:r.value.y,"onUpdate:modelValue":a[2]||(a[2]=v=>r.value.y=v),"controls-position":"right",min:0,step:5,style:{width:"90px"}},{prefix:w.withCtx(()=>[...a[14]||(a[14]=[w.createElementVNode("span",null,"Y",-1)])]),_:1},8,["modelValue"])]),_:1}),w.createVNode(c,{label:"宽高"},{default:w.withCtx(()=>[a[17]||(a[17]=w.createElementVNode("span",null,null,-1)),w.createVNode(h,{modelValue:r.value.width,"onUpdate:modelValue":a[3]||(a[3]=v=>r.value.width=v),"controls-position":"right",min:0,step:5,style:{width:"90px","margin-right":"10px"}},{prefix:w.withCtx(()=>[...a[15]||(a[15]=[w.createElementVNode("span",null,"W",-1)])]),_:1},8,["modelValue"]),w.createVNode(h,{modelValue:r.value.height,"onUpdate:modelValue":a[4]||(a[4]=v=>r.value.height=v),"controls-position":"right",min:0,step:5,style:{width:"90px"}},{prefix:w.withCtx(()=>[...a[16]||(a[16]=[w.createElementVNode("span",null,"H",-1)])]),_:1},8,["modelValue"])]),_:1}),w.createVNode(c,{label:"层级"},{default:w.withCtx(()=>[w.createVNode(h,{modelValue:r.value.zIndex,"onUpdate:modelValue":a[5]||(a[5]=v=>r.value.zIndex=v),min:0,max:1e4,step:1,style:{width:"100px"}},null,8,["modelValue"])]),_:1}),w.createVNode(c,{label:"透明度"},{default:w.withCtx(()=>[w.createVNode(d,{modelValue:r.value.opacity,"onUpdate:modelValue":a[6]||(a[6]=v=>r.value.opacity=v),min:0,max:1,step:.01,style:{width:"160px"}},null,8,["modelValue"])]),_:1}),w.createVNode(c,{label:"边框"},{default:w.withCtx(()=>[w.createVNode(f,{modelValue:r.value.borderStyle,"onUpdate:modelValue":a[7]||(a[7]=v=>r.value.borderStyle=v),style:{width:"60px","margin-right":"10px"},placeholder:"样式"},{default:w.withCtx(()=>[w.createVNode(u,{label:"无",value:"none"}),w.createVNode(u,{label:"实线",value:"solid"}),w.createVNode(u,{label:"虚线",value:"dashed"}),w.createVNode(u,{label:"点线",value:"dotted"})]),_:1},8,["modelValue"]),w.createVNode(h,{modelValue:r.value.borderWidth,"onUpdate:modelValue":a[8]||(a[8]=v=>r.value.borderWidth=v),"controls-position":"right",min:0,step:1,style:{width:"60px","margin-right":"10px"},placeholder:"宽度"},null,8,["modelValue"]),w.createVNode(g,{modelValue:r.value.borderColor,"onUpdate:modelValue":a[9]||(a[9]=v=>r.value.borderColor=v),"show-alpha":"",placeholder:"颜色"},null,8,["modelValue"])]),_:1}),w.createVNode(c,{label:"圆角"},{default:w.withCtx(()=>[w.createVNode(h,{modelValue:r.value.borderRadius,"onUpdate:modelValue":a[10]||(a[10]=v=>r.value.borderRadius=v),min:0,max:100,step:1,style:{width:"100px"}},null,8,["modelValue"])]),_:1}),w.createVNode(c,{label:"背景颜色"},{default:w.withCtx(()=>[w.createVNode(g,{modelValue:r.value.backgroundColor,"onUpdate:modelValue":a[11]||(a[11]=v=>r.value.backgroundColor=v),"show-alpha":"",placeholder:"颜色",style:{width:"180px"}},null,8,["modelValue"])]),_:1}),w.createVNode(c,{label:"是否可见"},{default:w.withCtx(()=>[w.createVNode(p,{modelValue:r.value.visible,"onUpdate:modelValue":a[12]||(a[12]=v=>r.value.visible=v),"active-text":"显示","inactive-text":"隐藏"},null,8,["modelValue"])]),_:1})]),_:1})}}},[["__scopeId","data-v-d57fead1"]]),Jxt={class:"inline-row"},Qxt=Yn({__name:"linePanel",setup(n){var l,c;const e=w.inject("getCurCell")(),t=((l=e.getAttrs())==null?void 0:l.line)||{},i=((c=e.getAttrs())==null?void 0:c.line1)||{},r=h=>!h||h==="none"?"none":typeof h=="string"?h:h.name||"none",s=(h,d)=>!h||h==="none"?d:typeof h=="object"&&h.size?h.size:d,o=w.ref({name:e.getData().name,zIndex:e.zIndex,trackColor:t.stroke||"#754c3c",strokeWidth:t.strokeWidth??2,strokeOpacity:t.strokeOpacity??1,sourceMarker:r(t.sourceMarker)||"none",targetMarker:r(t.targetMarker)||"none",markerSize:s(t.targetMarker||t.sourceMarker,8),flowEnabled:i.display!=="none"}),a=()=>{const h=o.value;e.setData({...e.getData(),name:h.name}),e.prop("zIndex",h.zIndex),e.attr("line/stroke",h.trackColor),e.attr("line/strokeWidth",h.strokeWidth),e.attr("line/strokeOpacity",h.strokeOpacity),e.attr("line/fill","none"),e.attr("line/strokeDasharray",null),e.attr("line/strokeDashoffset",0);const d=u=>!u||u==="none"?"":{name:u,size:h.markerSize};e.attr("line/sourceMarker",d(h.sourceMarker)),e.attr("line/targetMarker",d(h.targetMarker)),h.flowEnabled?(e.attr("line/strokeWidth",8),e.attr("line1/display","inline")):e.attr("line1/display","none")};return w.watch(o,a,{deep:!0,immediate:!0}),(h,d)=>{const u=w.resolveComponent("el-input"),f=w.resolveComponent("el-form-item"),g=w.resolveComponent("el-input-number"),p=w.resolveComponent("el-color-picker"),m=w.resolveComponent("el-slider"),v=w.resolveComponent("el-option"),_=w.resolveComponent("el-select"),b=w.resolveComponent("el-switch"),y=w.resolveComponent("el-form");return w.openBlock(),w.createBlock(y,{size:"small","label-width":"90px","label-position":"left"},{default:w.withCtx(()=>[d[9]||(d[9]=w.createElementVNode("div",{class:"baseTitle"},"连线样式",-1)),w.createVNode(f,{label:"名称"},{default:w.withCtx(()=>[w.createVNode(u,{modelValue:o.value.name,"onUpdate:modelValue":d[0]||(d[0]=C=>o.value.name=C),placeholder:""},null,8,["modelValue"])]),_:1}),w.createVNode(f,{label:"层级"},{default:w.withCtx(()=>[w.createVNode(g,{modelValue:o.value.zIndex,"onUpdate:modelValue":d[1]||(d[1]=C=>o.value.zIndex=C),min:0,max:1e4,step:1,style:{width:"100px"}},null,8,["modelValue"])]),_:1}),w.createVNode(f,{label:"颜色"},{default:w.withCtx(()=>[w.createVNode(p,{modelValue:o.value.trackColor,"onUpdate:modelValue":d[2]||(d[2]=C=>o.value.trackColor=C),"show-alpha":"",style:{width:"200px",height:"30px"}},null,8,["modelValue"])]),_:1}),w.createVNode(f,{label:"粗细"},{default:w.withCtx(()=>[w.createVNode(g,{modelValue:o.value.strokeWidth,"onUpdate:modelValue":d[3]||(d[3]=C=>o.value.strokeWidth=C),min:1,step:1,"controls-position":"right",style:{width:"120px"}},null,8,["modelValue"])]),_:1}),w.createVNode(f,{label:"透明度"},{default:w.withCtx(()=>[w.createVNode(m,{modelValue:o.value.strokeOpacity,"onUpdate:modelValue":d[4]||(d[4]=C=>o.value.strokeOpacity=C),min:0,max:1,step:.01,style:{width:"180px"}},null,8,["modelValue"])]),_:1}),w.createVNode(f,{label:"箭头"},{default:w.withCtx(()=>[w.createElementVNode("div",Jxt,[w.createVNode(_,{modelValue:o.value.sourceMarker,"onUpdate:modelValue":d[5]||(d[5]=C=>o.value.sourceMarker=C),style:{width:"60px","margin-right":"3px"}},{default:w.withCtx(()=>[w.createVNode(v,{label:"无",value:"none"}),w.createVNode(v,{label:"箭头",value:"block"}),w.createVNode(v,{label:"三角",value:"classic"})]),_:1},8,["modelValue"]),w.createVNode(_,{modelValue:o.value.targetMarker,"onUpdate:modelValue":d[6]||(d[6]=C=>o.value.targetMarker=C),style:{width:"60px","margin-right":"3px"}},{default:w.withCtx(()=>[w.createVNode(v,{label:"无",value:"none"}),w.createVNode(v,{label:"箭头",value:"block"}),w.createVNode(v,{label:"三角",value:"classic"})]),_:1},8,["modelValue"]),w.createVNode(g,{modelValue:o.value.markerSize,"onUpdate:modelValue":d[7]||(d[7]=C=>o.value.markerSize=C),min:4,max:30,step:1,"controls-position":"right",style:{width:"60px"}},null,8,["modelValue"])])]),_:1}),w.createVNode(f,{label:"动画"},{default:w.withCtx(()=>[w.createVNode(b,{modelValue:o.value.flowEnabled,"onUpdate:modelValue":d[8]||(d[8]=C=>o.value.flowEnabled=C),"active-text":"开启","inactive-text":"关闭",style:{"margin-right":"8px"}},null,8,["modelValue"])]),_:1})]),_:1})}}},[["__scopeId","data-v-a8f21332"]]),_L={__name:"JsonEditor",props:{modelValue:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=w.ref(null);let s=null,o="";return w.onMounted(()=>{s=js.editor.create(r.value,{value:JSON.stringify(t.modelValue,null,2),language:"json",theme:"vs-dark",automaticLayout:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:12}),s.onDidChangeModelContent(()=>{try{const a=s.getValue(),l=JSON.parse(a);o=a,i("update:modelValue",l)}catch{}})}),w.watch(()=>t.modelValue,a=>{if(!s)return;const l=s.getValue(),c=JSON.stringify(a,null,2);l!==c&&c!==o&&s.setValue(c)},{deep:!0}),w.onBeforeUnmount(()=>{s==null||s.dispose()}),(a,l)=>(w.openBlock(),w.createElementBlock("div",{ref_key:"editorContainer",ref:r,class:"json-editor"},null,512))}},eLt=Yn({__name:"formNodePanel",setup(n){Ds(),w.inject("cellId");const e=w.inject("getCurCell")(),t=e.getData()||{},i=w.ref(t.model||{});w.watch(i.value,()=>{e.setData({model:i.value})});const r=w.ref(!1),s=w.ref({}),o=()=>{s.value=i.value.option,r.value=!0},a=()=>{i.value.option=s.value,r.value=!1};return w.onMounted(()=>{}),w.onBeforeUnmount(()=>{}),(l,c)=>{const h=w.resolveComponent("el-option"),d=w.resolveComponent("el-select"),u=w.resolveComponent("el-form-item"),f=w.resolveComponent("el-color-picker"),g=w.resolveComponent("el-input"),p=w.resolveComponent("el-button"),m=w.resolveComponent("el-drawer"),v=w.resolveComponent("el-form");return w.openBlock(),w.createBlock(v,{size:"small","label-width":"80px","label-position":"left",class:"nodePanel"},{default:w.withCtx(()=>[c[9]||(c[9]=w.createElementVNode("div",{class:"baseTitle"},"表单元素",-1)),w.unref(t).type==="button"?(w.openBlock(),w.createElementBlock(w.Fragment,{key:0},[w.createVNode(u,{label:"元素尺寸"},{default:w.withCtx(()=>[w.createVNode(d,{modelValue:i.value.size,"onUpdate:modelValue":c[0]||(c[0]=_=>i.value.size=_)},{default:w.withCtx(()=>[w.createVNode(h,{label:"大",value:"large"}),w.createVNode(h,{label:"正常",value:"default"}),w.createVNode(h,{label:"小",value:"small"})]),_:1},8,["modelValue"])]),_:1}),w.createVNode(u,{label:"按钮颜色"},{default:w.withCtx(()=>[w.createVNode(f,{modelValue:i.value.buttonColor,"onUpdate:modelValue":c[1]||(c[1]=_=>i.value.buttonColor=_),"show-alpha":"",placeholder:"颜色",style:{width:"180px",height:"30px"}},null,8,["modelValue"])]),_:1}),w.createVNode(u,{label:"按钮文本"},{default:w.withCtx(()=>[w.createVNode(g,{modelValue:i.value.modelValue,"onUpdate:modelValue":c[2]||(c[2]=_=>i.value.modelValue=_)},null,8,["modelValue"])]),_:1})],64)):w.createCommentVNode("",!0),w.unref(t).type==="input"?(w.openBlock(),w.createElementBlock(w.Fragment,{key:1},[w.createVNode(u,{label:"类型"},{default:w.withCtx(()=>[w.createVNode(d,{modelValue:i.value.inputType,"onUpdate:modelValue":c[3]||(c[3]=_=>i.value.inputType=_)},{default:w.withCtx(()=>[w.createVNode(h,{label:"输入框",value:"input"}),w.createVNode(h,{label:"文本域",value:"textarea"})]),_:1},8,["modelValue"])]),_:1}),w.createVNode(u,{label:"占位字符"},{default:w.withCtx(()=>[w.createVNode(g,{modelValue:i.value.placeholder,"onUpdate:modelValue":c[4]||(c[4]=_=>i.value.placeholder=_)},null,8,["modelValue"])]),_:1})],64)):w.createCommentVNode("",!0),w.unref(t).type==="select"||w.unref(t).type==="selectMore"?(w.openBlock(),w.createBlock(u,{key:2,label:"下拉列表"},{default:w.withCtx(()=>[w.createVNode(p,{type:"primary",icon:w.unref(L$),onClick:o},null,8,["icon"])]),_:1})):w.createCommentVNode("",!0),w.unref(t).type==="date"?(w.openBlock(),w.createBlock(u,{key:3,label:"日期类型"},{default:w.withCtx(()=>[w.createVNode(d,{modelValue:i.value.dateType,"onUpdate:modelValue":c[5]||(c[5]=_=>i.value.dateType=_)},{default:w.withCtx(()=>[w.createVNode(h,{label:"日",value:"date"}),w.createVNode(h,{label:"时间",value:"datetime"}),w.createVNode(h,{label:"周",value:"week"}),w.createVNode(h,{label:"月",value:"month"}),w.createVNode(h,{label:"年",value:"year"})]),_:1},8,["modelValue"])]),_:1})):w.createCommentVNode("",!0),w.unref(t).type==="dateRange"?(w.openBlock(),w.createBlock(u,{key:4,label:"日期类型"},{default:w.withCtx(()=>[w.createVNode(d,{modelValue:i.value.dateType,"onUpdate:modelValue":c[6]||(c[6]=_=>i.value.dateType=_)},{default:w.withCtx(()=>[w.createVNode(h,{label:"日",value:"daterange"}),w.createVNode(h,{label:"时间",value:"datetimerange"}),w.createVNode(h,{label:"月",value:"monthrange"}),w.createVNode(h,{label:"年",value:"yearrange"})]),_:1},8,["modelValue"])]),_:1})):w.createCommentVNode("",!0),w.createVNode(m,{modelValue:r.value,"onUpdate:modelValue":c[8]||(c[8]=_=>r.value=_),"with-header":!1,size:300,"before-close":a},{default:w.withCtx(()=>[w.createVNode(_L,{modelValue:s.value,"onUpdate:modelValue":c[7]||(c[7]=_=>s.value=_)},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})}}},[["__scopeId","data-v-c9d6c8d0"]]),tLt=Yn({__name:"textPanel",setup(n){Ds(),w.inject("cellId");const e=w.inject("getCurCell")(),t=e.getData()||{},i=w.ref({text:t.text||"",justifyContent:t.justifyContent||"center",alignItems:t.alignItems||"center",textAlign:t.textAlign||"center",color:t.color||"#ffffff",fontWeight:t.fontWeight??400,fontSize:t.fontSize??16,letterSpacing:t.letterSpacing??0,lineHeight:t.lineHeight??1.4,fontFamily:t.fontFamily||"",fontStyle:t.fontStyle||"normal",textDecoration:t.textDecoration||"none",whiteSpace:t.whiteSpace||"pre-wrap",wordBreak:t.wordBreak||"break-word",textOverflow:t.textOverflow||"clip",overflow:t.overflow||"hidden",display:t.display||"block",toFix:t.toFix??2});return w.watch(i,r=>{e.setData({...r})},{deep:!0}),(r,s)=>{const o=w.resolveComponent("el-option"),a=w.resolveComponent("el-select"),l=w.resolveComponent("el-form-item"),c=w.resolveComponent("el-input-number"),h=w.resolveComponent("el-color-picker"),d=w.resolveComponent("el-input"),u=w.resolveComponent("el-form");return w.openBlock(),w.createBlock(u,{size:"small","label-width":"80px","label-position":"left",class:"nodePanel"},{default:w.withCtx(()=>[s[15]||(s[15]=w.createElementVNode("div",{class:"baseTitle"},"文字",-1)),w.createVNode(l,{label:"文本对齐"},{default:w.withCtx(()=>[w.createVNode(a,{modelValue:i.value.textAlign,"onUpdate:modelValue":s[0]||(s[0]=f=>i.value.textAlign=f),style:{width:"190px"}},{default:w.withCtx(()=>[w.createVNode(o,{label:"左对齐",value:"left"}),w.createVNode(o,{label:"居中",value:"center"}),w.createVNode(o,{label:"右对齐",value:"right"})]),_:1},8,["modelValue"])]),_:1}),w.createVNode(l,{label:"字体"},{default:w.withCtx(()=>[w.createVNode(c,{modelValue:i.value.fontSize,"onUpdate:modelValue":s[1]||(s[1]=f=>i.value.fontSize=f),"controls-position":"right",min:8,step:1,style:{width:"90px","margin-right":"10px"}},{prefix:w.withCtx(()=>[...s[12]||(s[12]=[w.createElementVNode("span",null,"大小",-1)])]),_:1},8,["modelValue"]),w.createVNode(a,{modelValue:i.value.fontWeight,"onUpdate:modelValue":s[2]||(s[2]=f=>i.value.fontWeight=f),modelModifiers:{number:!0},style:{width:"90px"}},{default:w.withCtx(()=>[(w.openBlock(),w.createElementBlock(w.Fragment,null,w.renderList(7,f=>(w.openBlock(),w.createElementBlock(w.Fragment,null,[f>2?(w.openBlock(),w.createBlock(o,{key:f,label:f*100,value:f*100},null,8,["label","value"])):w.createCommentVNode("",!0)],64))),64))]),_:1},8,["modelValue"])]),_:1}),w.createVNode(l,{label:"行高/间距"},{default:w.withCtx(()=>[w.createVNode(c,{modelValue:i.value.lineHeight,"onUpdate:modelValue":s[3]||(s[3]=f=>i.value.lineHeight=f),"controls-position":"right",min:.5,step:.1,style:{width:"90px","margin-right":"10px"}},{prefix:w.withCtx(()=>[...s[13]||(s[13]=[w.createElementVNode("span",null,"行高",-1)])]),_:1},8,["modelValue"]),w.createVNode(c,{modelValue:i.value.letterSpacing,"onUpdate:modelValue":s[4]||(s[4]=f=>i.value.letterSpacing=f),"controls-position":"right",min:0,step:1,style:{width:"90px"}},{prefix:w.withCtx(()=>[...s[14]||(s[14]=[w.createElementVNode("span",null,"间距",-1)])]),_:1},8,["modelValue"])]),_:1}),w.createVNode(l,{label:"样式"},{default:w.withCtx(()=>[w.createVNode(a,{modelValue:i.value.fontStyle,"onUpdate:modelValue":s[5]||(s[5]=f=>i.value.fontStyle=f),style:{width:"90px","margin-right":"10px"}},{default:w.withCtx(()=>[w.createVNode(o,{label:"常规",value:"normal"}),w.createVNode(o,{label:"斜体",value:"italic"})]),_:1},8,["modelValue"]),w.createVNode(a,{modelValue:i.value.textDecoration,"onUpdate:modelValue":s[6]||(s[6]=f=>i.value.textDecoration=f),style:{width:"90px"}},{default:w.withCtx(()=>[w.createVNode(o,{label:"无",value:"none"}),w.createVNode(o,{label:"下划线",value:"underline"}),w.createVNode(o,{label:"删除线",value:"line-through"})]),_:1},8,["modelValue"])]),_:1}),w.createVNode(l,{label:"换行/溢出",style:{display:"flex"}},{default:w.withCtx(()=>[w.createVNode(a,{modelValue:i.value.whiteSpace,"onUpdate:modelValue":s[7]||(s[7]=f=>i.value.whiteSpace=f),style:{width:"90px","margin-right":"10px"}},{default:w.withCtx(()=>[w.createVNode(o,{label:"自动换行",value:"pre-wrap"}),w.createVNode(o,{label:"单行",value:"nowrap"}),w.createVNode(o,{label:"普通",value:"normal"})]),_:1},8,["modelValue"]),w.createVNode(a,{modelValue:i.value.textOverflow,"onUpdate:modelValue":s[8]||(s[8]=f=>i.value.textOverflow=f),style:{width:"90px"}},{default:w.withCtx(()=>[w.createVNode(o,{label:"裁剪",value:"clip"}),w.createVNode(o,{label:"省略号",value:"ellipsis"})]),_:1},8,["modelValue"])]),_:1}),w.createVNode(l,{label:"字体颜色"},{default:w.withCtx(()=>[w.createVNode(h,{modelValue:i.value.color,"onUpdate:modelValue":s[9]||(s[9]=f=>i.value.color=f),"show-alpha":"",placeholder:"颜色",style:{width:"200px",height:"30px"}},null,8,["modelValue"])]),_:1}),w.createVNode(l,{label:"位数保留"},{default:w.withCtx(()=>[w.createVNode(c,{modelValue:i.value.toFix,"onUpdate:modelValue":s[10]||(s[10]=f=>i.value.toFix=f),"controls-position":"right",min:0,step:1,style:{width:"200px"}},null,8,["modelValue"])]),_:1}),w.createVNode(l,{label:"文本内容"},{default:w.withCtx(()=>[w.createVNode(d,{modelValue:i.value.text,"onUpdate:modelValue":s[11]||(s[11]=f=>i.value.text=f),style:{width:"200px"},rows:3,type:"textarea",placeholder:"请输入文本"},null,8,["modelValue"])]),_:1})]),_:1})}}},[["__scopeId","data-v-d6f37865"]]),iLt=Yn({__name:"buttonPanel",setup(n){Ds(),w.inject("cellId");const e=w.inject("getCurCell")(),t=e.getData()||{},i=w.ref(t.model||{});return w.watch(i.value,()=>{e.setData({model:i.value})}),w.ref(!1),w.ref({}),w.onMounted(()=>{}),w.onBeforeUnmount(()=>{}),(r,s)=>{const o=w.resolveComponent("el-switch"),a=w.resolveComponent("el-input"),l=w.resolveComponent("el-form-item"),c=w.resolveComponent("el-form");return w.openBlock(),w.createBlock(c,{size:"small","label-width":"80px","label-position":"left",class:"nodePanel"},{default:w.withCtx(()=>[s[2]||(s[2]=w.createElementVNode("div",{class:"baseTitle"},"交互",-1)),w.createVNode(l,{label:"二次确认"},{default:w.withCtx(()=>[w.createVNode(o,{modelValue:i.value.buttonConfirm,"onUpdate:modelValue":s[0]||(s[0]=h=>i.value.buttonConfirm=h),"active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"]),i.value.buttonConfirm?(w.openBlock(),w.createBlock(a,{key:0,type:"textarea",modelValue:i.value.buttonConfirmTips,"onUpdate:modelValue":s[1]||(s[1]=h=>i.value.buttonConfirmTips=h),placeholder:"请输入文本"},null,8,["modelValue"])):w.createCommentVNode("",!0)]),_:1})]),_:1})}}},[["__scopeId","data-v-88c8c411"]]),nLt={style:{"margin-bottom":"10px"}},rLt={key:0,style:{width:"100%",height:"160px",overflow:"auto",display:"flex","align-items":"center","justify-content":"center"}},sLt=["src"],oLt=Yn({__name:"imgPanel",setup(n){Ds(),w.inject("cellId");const e=w.inject("getCurCell")(),t=e.getData()||{},i=w.ref({imgData:t.imgData??"",imgWidth:t.imgWidth??0,imgHeight:t.imgHeight??0});function r(a){return new Promise((l,c)=>{const h=new FileReader;h.onload=()=>l(h.result),h.onerror=c,h.readAsDataURL(a)})}function s(a){return new Promise((l,c)=>{const h=new Image;h.onload=()=>l({width:h.width,height:h.height}),h.onerror=c,h.src=a})}const o=async a=>{if(!a.type.startsWith("image/"))return ElMessage.error("只能上传图片文件"),!1;if(!(a.size/1024/1024<2))return ElMessage.error("图片大小不能超过 2MB"),!1;try{const c=await r(a),{width:h,height:d}=await s(c);i.value.imgData=c,i.value.imgWidth=h,i.value.imgHeight=d,e.resize(i.value.imgWidth,i.value.imgHeight)}catch{return ElMessage.error("图片读取失败"),!1}return!1};return w.watch(i,a=>{e.setData({...a})},{deep:!0}),(a,l)=>{const c=w.resolveComponent("el-icon"),h=w.resolveComponent("el-upload"),d=w.resolveComponent("el-input-number"),u=w.resolveComponent("el-form-item"),f=w.resolveComponent("el-form");return w.openBlock(),w.createBlock(f,{size:"small","label-width":"80px","label-position":"left",class:"imgPanel"},{default:w.withCtx(()=>[l[4]||(l[4]=w.createElementVNode("div",{class:"baseTitle"},"图片",-1)),w.createElementVNode("div",nLt,[w.createVNode(h,{accept:"image/*","show-file-list":!1,"before-upload":o},{default:w.withCtx(()=>[i.value.imgData?(w.openBlock(),w.createElementBlock("div",rLt,[w.createElementVNode("img",{src:i.value.imgData},null,8,sLt)])):(w.openBlock(),w.createBlock(c,{key:1,class:"avatar-uploader-icon"},{default:w.withCtx(()=>[w.createVNode(w.unref(D$))]),_:1}))]),_:1})]),w.createVNode(u,{label:"尺寸"},{default:w.withCtx(()=>[w.createVNode(d,{modelValue:i.value.imgWidth,"onUpdate:modelValue":l[0]||(l[0]=g=>i.value.imgWidth=g),"controls-position":"right",min:1,step:1,style:{width:"90px","margin-right":"10px"}},{prefix:w.withCtx(()=>[...l[2]||(l[2]=[w.createElementVNode("span",null,"宽",-1)])]),_:1},8,["modelValue"]),w.createVNode(d,{modelValue:i.value.imgHeight,"onUpdate:modelValue":l[1]||(l[1]=g=>i.value.imgHeight=g),"controls-position":"right",min:1,step:1,style:{width:"90px"}},{prefix:w.withCtx(()=>[...l[3]||(l[3]=[w.createElementVNode("span",null,"高",-1)])]),_:1},8,["modelValue"])]),_:1})]),_:1})}}},[["__scopeId","data-v-94c45b23"]]),aLt={style:{"margin-bottom":"10px"}},lLt={key:0,style:{width:"100%",height:"160px",overflow:"auto",display:"flex","align-items":"center","justify-content":"center"}},cLt=["src"],hLt=Yn({__name:"svgPanel",setup(n){Ds(),w.inject("cellId");const e=w.inject("getCurCell")(),t=e.getData()||{},i=w.ref({imgData:t.imgData??"",svgContent:t.svgContent??"",color:t.color??"#ffffff"});function r(a){return new Promise((l,c)=>{const h=new FileReader;h.onload=()=>l(h.result),h.onerror=c,h.readAsDataURL(a)})}function s(a){return new Promise((l,c)=>{const h=new FileReader;h.onload=()=>l(h.result),h.onerror=c,h.readAsText(a)})}const o=async a=>{var h;if(!(a.type==="image/svg+xml"||((h=a.name)==null?void 0:h.toLowerCase().endsWith(".svg"))))return ElMessage.error("只能上传 SVG 文件"),!1;if(!(a.size/1024/1024<2))return ElMessage.error("图片大小不能超过 2MB"),!1;try{const d=await s(a),u=await r(a);i.value.imgData=u,i.value.svgContent=d}catch{return ElMessage.error("图片读取失败"),!1}return!1};return w.watch(i,a=>{e.setData({...a})},{deep:!0}),(a,l)=>{const c=w.resolveComponent("el-icon"),h=w.resolveComponent("el-upload"),d=w.resolveComponent("el-color-picker"),u=w.resolveComponent("el-form-item"),f=w.resolveComponent("el-form");return w.openBlock(),w.createBlock(f,{size:"small","label-width":"80px","label-position":"left",class:"imgPanel"},{default:w.withCtx(()=>[l[1]||(l[1]=w.createElementVNode("div",{class:"baseTitle"},"svg图标",-1)),w.createElementVNode("div",aLt,[w.createVNode(h,{accept:"image/svg+xml","show-file-list":!1,"before-upload":o},{default:w.withCtx(()=>[i.value.imgData?(w.openBlock(),w.createElementBlock("div",lLt,[w.createElementVNode("img",{src:i.value.imgData},null,8,cLt)])):(w.openBlock(),w.createBlock(c,{key:1,class:"avatar-uploader-icon"},{default:w.withCtx(()=>[w.createVNode(w.unref(D$))]),_:1}))]),_:1})]),w.createVNode(u,{label:"颜色"},{default:w.withCtx(()=>[w.createVNode(d,{modelValue:i.value.color,"onUpdate:modelValue":l[0]||(l[0]=g=>i.value.color=g),"show-alpha":"",placeholder:"颜色",style:{width:"180px"}},null,8,["modelValue"])]),_:1})]),_:1})}}},[["__scopeId","data-v-1a7b7c3c"]]),dLt={class:"align-row"},uLt=Yn({__name:"tablePanel",setup(n){const e=w.inject("getCurCell")();let t=!1;const i=()=>(e.getData()||{}).table||{},r={rowHeight:32,header:{enabled:!0,height:36,backgroundColor:"#1f2a3a",color:"#e5e7eb",fontSize:12,fontWeight:600,borderColor:"#303746",borderWidth:1,textAlign:"center",aligns:[]},cell:{backgroundColor:"#121924",altBackgroundColor:"#101826",color:"#cbd5f5",fontSize:12,borderColor:"#303746",borderWidth:1}},s=w.ref({rowHeight:r.rowHeight,header:{...r.header},cell:{...r.cell}}),o=()=>{const p=i();t=!0,s.value={rowHeight:p.rowHeight??r.rowHeight,header:{...r.header,...p.header||{}},cell:{...r.cell,...p.cell||{}}},w.nextTick(()=>{t=!1})};o();const a=w.computed(()=>{var v,_;const m=(_=(v=(e.getData()||{}).table)==null?void 0:v.data)==null?void 0:_.header;return Array.isArray(m)&&m.length?m:[]}),l=w.ref(0),c=w.computed({get(){const p=s.value.header||{};return(Array.isArray(p.aligns)?p.aligns:[])[l.value]||p.textAlign},set(p){const m=s.value.header||{},v=Array.isArray(m.aligns)?m.aligns.slice():[];v[l.value]=p,s.value.header={...m,aligns:v}}}),h=()=>{const p=e.getData()||{},m=p.table||{},v=s.value.rowHeight!==m.rowHeight,_=Array.isArray(s.value.header.aligns)?s.value.header.aligns.slice():[],b={...m,rowHeight:s.value.rowHeight,rowHeights:v?[]:m.rowHeights,header:{...r.header,...s.value.header,aligns:_},cell:{...r.cell,...s.value.cell}};e.setData({...p,table:b})},d=w.ref({}),u=w.ref(!1),f=()=>{d.value=i().data||{},u.value=!0},g=()=>{if(console.log(d.value),d.value){const p=e.getData()||{},m=p.table||{};e.setData({...p,table:{...m,data:d.value}})}u.value=!1};return w.watch(s,()=>{t||h()},{deep:!0}),w.onMounted(()=>{var p;(p=e.on)==null||p.call(e,"change:data",o)}),w.onBeforeUnmount(()=>{var p;(p=e.off)==null||p.call(e,"change:data",o)}),(p,m)=>{const v=w.resolveComponent("el-input-number"),_=w.resolveComponent("el-form-item"),b=w.resolveComponent("el-button"),y=w.resolveComponent("el-divider"),C=w.resolveComponent("el-switch"),x=w.resolveComponent("el-color-picker"),L=w.resolveComponent("el-option"),D=w.resolveComponent("el-select"),E=w.resolveComponent("el-drawer"),k=w.resolveComponent("el-form");return w.openBlock(),w.createBlock(k,{size:"small","label-width":"80px","label-position":"left"},{default:w.withCtx(()=>[m[21]||(m[21]=w.createElementVNode("div",{class:"baseTitle"},"表格样式",-1)),w.createVNode(_,{label:"默认行高"},{default:w.withCtx(()=>[w.createVNode(v,{modelValue:s.value.rowHeight,"onUpdate:modelValue":m[0]||(m[0]=T=>s.value.rowHeight=T),min:16,step:1,"controls-position":"right",style:{width:"120px"}},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"初始数据"},{default:w.withCtx(()=>[w.createVNode(b,{type:"primary",icon:w.unref(L$),onClick:f},null,8,["icon"])]),_:1}),w.createVNode(y,{"content-position":"left"},{default:w.withCtx(()=>[...m[19]||(m[19]=[w.createTextVNode("表头",-1)])]),_:1}),w.createVNode(_,{label:"显示表头"},{default:w.withCtx(()=>[w.createVNode(C,{modelValue:s.value.header.enabled,"onUpdate:modelValue":m[1]||(m[1]=T=>s.value.header.enabled=T),"active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"表头高度"},{default:w.withCtx(()=>[w.createVNode(v,{modelValue:s.value.header.height,"onUpdate:modelValue":m[2]||(m[2]=T=>s.value.header.height=T),min:20,step:1,"controls-position":"right",style:{width:"120px"}},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"表头背景"},{default:w.withCtx(()=>[w.createVNode(x,{modelValue:s.value.header.backgroundColor,"onUpdate:modelValue":m[3]||(m[3]=T=>s.value.header.backgroundColor=T),"show-alpha":""},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"表头文字"},{default:w.withCtx(()=>[w.createVNode(x,{modelValue:s.value.header.color,"onUpdate:modelValue":m[4]||(m[4]=T=>s.value.header.color=T),"show-alpha":""},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"表头字号"},{default:w.withCtx(()=>[w.createVNode(v,{modelValue:s.value.header.fontSize,"onUpdate:modelValue":m[5]||(m[5]=T=>s.value.header.fontSize=T),min:10,step:1,"controls-position":"right",style:{width:"120px"}},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"表头粗细"},{default:w.withCtx(()=>[w.createVNode(D,{modelValue:s.value.header.fontWeight,"onUpdate:modelValue":m[6]||(m[6]=T=>s.value.header.fontWeight=T),style:{width:"120px"}},{default:w.withCtx(()=>[w.createVNode(L,{label:"400",value:400}),w.createVNode(L,{label:"500",value:500}),w.createVNode(L,{label:"600",value:600}),w.createVNode(L,{label:"700",value:700})]),_:1},8,["modelValue"])]),_:1}),w.createVNode(_,{label:"列对齐"},{default:w.withCtx(()=>[w.createElementVNode("div",dLt,[w.createVNode(D,{modelValue:l.value,"onUpdate:modelValue":m[7]||(m[7]=T=>l.value=T),style:{width:"100px","margin-right":"8px"}},{default:w.withCtx(()=>[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(a.value,(T,I)=>(w.openBlock(),w.createBlock(L,{key:I,label:T,value:I},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),w.createVNode(D,{modelValue:c.value,"onUpdate:modelValue":m[8]||(m[8]=T=>c.value=T),style:{width:"80px"}},{default:w.withCtx(()=>[w.createVNode(L,{label:"左对齐",value:"left"}),w.createVNode(L,{label:"居中",value:"center"}),w.createVNode(L,{label:"右对齐",value:"right"})]),_:1},8,["modelValue"])])]),_:1}),w.createVNode(_,{label:"表头边框"},{default:w.withCtx(()=>[w.createVNode(x,{modelValue:s.value.header.borderColor,"onUpdate:modelValue":m[9]||(m[9]=T=>s.value.header.borderColor=T),"show-alpha":""},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"边框宽度"},{default:w.withCtx(()=>[w.createVNode(v,{modelValue:s.value.header.borderWidth,"onUpdate:modelValue":m[10]||(m[10]=T=>s.value.header.borderWidth=T),min:0,step:1,"controls-position":"right",style:{width:"120px"}},null,8,["modelValue"])]),_:1}),w.createVNode(y,{"content-position":"left"},{default:w.withCtx(()=>[...m[20]||(m[20]=[w.createTextVNode("单元格",-1)])]),_:1}),w.createVNode(_,{label:"单元格背景"},{default:w.withCtx(()=>[w.createVNode(x,{modelValue:s.value.cell.backgroundColor,"onUpdate:modelValue":m[11]||(m[11]=T=>s.value.cell.backgroundColor=T),"show-alpha":""},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"交替行"},{default:w.withCtx(()=>[w.createVNode(x,{modelValue:s.value.cell.altBackgroundColor,"onUpdate:modelValue":m[12]||(m[12]=T=>s.value.cell.altBackgroundColor=T),"show-alpha":""},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"单元格文字"},{default:w.withCtx(()=>[w.createVNode(x,{modelValue:s.value.cell.color,"onUpdate:modelValue":m[13]||(m[13]=T=>s.value.cell.color=T),"show-alpha":""},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"单元格字号"},{default:w.withCtx(()=>[w.createVNode(v,{modelValue:s.value.cell.fontSize,"onUpdate:modelValue":m[14]||(m[14]=T=>s.value.cell.fontSize=T),min:10,step:1,"controls-position":"right",style:{width:"120px"}},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"单元格边框"},{default:w.withCtx(()=>[w.createVNode(x,{modelValue:s.value.cell.borderColor,"onUpdate:modelValue":m[15]||(m[15]=T=>s.value.cell.borderColor=T),"show-alpha":""},null,8,["modelValue"])]),_:1}),w.createVNode(_,{label:"边框宽度"},{default:w.withCtx(()=>[w.createVNode(v,{modelValue:s.value.cell.borderWidth,"onUpdate:modelValue":m[16]||(m[16]=T=>s.value.cell.borderWidth=T),min:0,step:1,"controls-position":"right",style:{width:"120px"}},null,8,["modelValue"])]),_:1}),w.createVNode(E,{modelValue:u.value,"onUpdate:modelValue":m[18]||(m[18]=T=>u.value=T),"with-header":!1,size:300,"before-close":g},{default:w.withCtx(()=>[w.createVNode(_L,{modelValue:d.value,"onUpdate:modelValue":m[17]||(m[17]=T=>d.value=T)},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})}}},[["__scopeId","data-v-5d1db4b7"]]);function NIe(n){return w.getCurrentScope()?(w.onScopeDispose(n),!0):!1}function P1(n){return typeof n=="function"?n():w.unref(n)}const U6=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const fLt=Object.prototype.toString,gLt=n=>fLt.call(n)==="[object Object]",bL=()=>{},pLt=mLt();function mLt(){var n,e;return U6&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function MIe(n,e){function t(...i){return new Promise((r,s)=>{Promise.resolve(n(()=>e.apply(this,i),{fn:e,thisArg:this,args:i})).then(r).catch(s)})}return t}const AIe=n=>n();function vLt(n,e={}){let t,i,r=bL;const s=a=>{clearTimeout(a),r(),r=bL};return a=>{const l=P1(n),c=P1(e.maxWait);return t&&s(t),l<=0||c!==void 0&&c<=0?(i&&(s(i),i=null),Promise.resolve(a())):new Promise((h,d)=>{r=e.rejectOnCancel?d:h,c&&!i&&(i=setTimeout(()=>{t&&s(t),i=null,h(a())},c)),t=setTimeout(()=>{i&&s(i),i=null,h(a())},l)})}}function _Lt(n=AIe){const e=w.ref(!0);function t(){e.value=!1}function i(){e.value=!0}const r=(...s)=>{e.value&&n(...s)};return{isActive:w.readonly(e),pause:t,resume:i,eventFilter:r}}function bLt(n){let e;function t(){return e||(e=n()),e}return t.reset=async()=>{const i=e;e=void 0,i&&await i},t}function yLt(n){return w.getCurrentInstance()}function bp(n,e=200,t={}){return MIe(vLt(e,t),n)}function wLt(n,e,t={}){const{eventFilter:i=AIe,...r}=t;return w.watch(n,MIe(i,e),r)}function CLt(n,e,t={}){const{eventFilter:i,...r}=t,{eventFilter:s,pause:o,resume:a,isActive:l}=_Lt(i);return{stop:wLt(n,e,{...r,eventFilter:s}),pause:o,resume:a,isActive:l}}function O1(n,e=!0,t){yLt()?w.onMounted(n,t):e?n():w.nextTick(n)}function SLt(n,e,t={}){const{immediate:i=!0}=t,r=w.ref(!1);let s=null;function o(){s&&(clearTimeout(s),s=null)}function a(){r.value=!1,o()}function l(...c){o(),r.value=!0,s=setTimeout(()=>{r.value=!1,s=null,n(...c)},P1(e))}return i&&(r.value=!0,U6&&l()),NIe(a),{isPending:w.readonly(r),start:l,stop:a}}function ka(n,e,t){const i=w.watch(n,(r,s,o)=>{r&&(t!=null&&t.once&&w.nextTick(()=>i()),e(r,s,o))},{...t,once:!1});return i}function aN(n){var e;const t=P1(n);return(e=t==null?void 0:t.$el)!=null?e:t}const lN=U6?window:void 0,RIe=U6?window.navigator:void 0;function V1(...n){let e,t,i,r;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,i,r]=n,e=lN):[e,t,i,r]=n,!e)return bL;Array.isArray(t)||(t=[t]),Array.isArray(i)||(i=[i]);const s=[],o=()=>{s.forEach(h=>h()),s.length=0},a=(h,d,u,f)=>(h.addEventListener(d,u,f),()=>h.removeEventListener(d,u,f)),l=w.watch(()=>[aN(e),P1(r)],([h,d])=>{if(o(),!h)return;const u=gLt(d)?{...d}:d;s.push(...t.flatMap(f=>i.map(g=>a(h,f,g,u))))},{immediate:!0,flush:"post"}),c=()=>{l(),o()};return NIe(c),c}let PIe=!1;function xLt(n,e,t={}){const{window:i=lN,ignore:r=[],capture:s=!0,detectIframe:o=!1}=t;if(!i)return bL;pLt&&!PIe&&(PIe=!0,Array.from(i.document.body.children).forEach(u=>u.addEventListener("click",bL)),i.document.documentElement.addEventListener("click",bL));let a=!0;const l=u=>r.some(f=>{if(typeof f=="string")return Array.from(i.document.querySelectorAll(f)).some(g=>g===u.target||u.composedPath().includes(g));{const g=aN(f);return g&&(u.target===g||u.composedPath().includes(g))}}),h=[V1(i,"click",u=>{const f=aN(n);if(!(!f||f===u.target||u.composedPath().includes(f))){if(u.detail===0&&(a=!l(u)),!a){a=!0;return}e(u)}},{passive:!0,capture:s}),V1(i,"pointerdown",u=>{const f=aN(n);a=!l(u)&&!!(f&&!u.composedPath().includes(f))},{passive:!0}),o&&V1(i,"blur",u=>{setTimeout(()=>{var f;const g=aN(n);((f=i.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(g!=null&&g.contains(i.document.activeElement))&&e(u)},0)})].filter(Boolean);return()=>h.forEach(u=>u())}function LLt(){const n=w.ref(!1),e=w.getCurrentInstance();return e&&w.onMounted(()=>{n.value=!0},e),n}function OIe(n){const e=LLt();return w.computed(()=>(e.value,!!n()))}function VIe(n,e={}){const{controls:t=!1,navigator:i=RIe}=e,r=OIe(()=>i&&"permissions"in i);let s;const o=typeof n=="string"?{name:n}:n,a=w.ref(),l=()=>{s&&(a.value=s.state)},c=bLt(async()=>{if(r.value){if(!s)try{s=await i.permissions.query(o),V1(s,"change",l),l()}catch{a.value="prompt"}return s}});return c(),t?{state:a,isSupported:r,query:c}:a}function DLt(n={}){const{navigator:e=RIe,read:t=!1,source:i,copiedDuring:r=1500,legacy:s=!1}=n,o=OIe(()=>e&&"clipboard"in e),a=VIe("clipboard-read"),l=VIe("clipboard-write"),c=w.computed(()=>o.value||s),h=w.ref(""),d=w.ref(!1),u=SLt(()=>d.value=!1,r);function f(){o.value&&v(a.value)?e.clipboard.readText().then(_=>{h.value=_}):h.value=m()}c.value&&t&&V1(["copy","cut"],f);async function g(_=P1(i)){c.value&&_!=null&&(o.value&&v(l.value)?await e.clipboard.writeText(_):p(_),h.value=_,d.value=!0,u.start())}function p(_){const b=document.createElement("textarea");b.value=_??"",b.style.position="absolute",b.style.opacity="0",document.body.appendChild(b),b.select(),document.execCommand("copy"),b.remove()}function m(){var _,b,y;return(y=(b=(_=document==null?void 0:document.getSelection)==null?void 0:_.call(document))==null?void 0:b.toString())!=null?y:""}function v(_){return _==="granted"||_==="prompt"}return{isSupported:c,text:h,copied:d,copy:g}}const G6=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},j6="__vueuse_ssr_handlers__",ELt=kLt();function kLt(){return j6 in G6||(G6[j6]=G6[j6]||{}),G6[j6]}function TLt(n,e){return ELt[n]||e}function ILt(n){return n==null?"any":n instanceof Set?"set":n instanceof Map?"map":n instanceof Date?"date":typeof n=="boolean"?"boolean":typeof n=="string"?"string":typeof n=="object"?"object":Number.isNaN(n)?"any":"number"}const NLt={boolean:{read:n=>n==="true",write:n=>String(n)},object:{read:n=>JSON.parse(n),write:n=>JSON.stringify(n)},number:{read:n=>Number.parseFloat(n),write:n=>String(n)},any:{read:n=>n,write:n=>String(n)},string:{read:n=>n,write:n=>String(n)},map:{read:n=>new Map(JSON.parse(n)),write:n=>JSON.stringify(Array.from(n.entries()))},set:{read:n=>new Set(JSON.parse(n)),write:n=>JSON.stringify(Array.from(n))},date:{read:n=>new Date(n),write:n=>n.toISOString()}},FIe="vueuse-storage";function MLt(n,e,t,i={}){var r;const{flush:s="pre",deep:o=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:h,window:d=lN,eventFilter:u,onError:f=k=>{console.error(k)},initOnMounted:g}=i,p=(h?w.shallowRef:w.ref)(typeof e=="function"?e():e);if(!t)try{t=TLt("getDefaultStorage",()=>{var k;return(k=lN)==null?void 0:k.localStorage})()}catch(k){f(k)}if(!t)return p;const m=P1(e),v=ILt(m),_=(r=i.serializer)!=null?r:NLt[v],{pause:b,resume:y}=CLt(p,()=>x(p.value),{flush:s,deep:o,eventFilter:u});d&&a&&O1(()=>{V1(d,"storage",D),V1(d,FIe,E),g&&D()}),g||D();function C(k,T){d&&d.dispatchEvent(new CustomEvent(FIe,{detail:{key:n,oldValue:k,newValue:T,storageArea:t}}))}function x(k){try{const T=t.getItem(n);if(k==null)C(T,null),t.removeItem(n);else{const I=_.write(k);T!==I&&(t.setItem(n,I),C(T,I))}}catch(T){f(T)}}function L(k){const T=k?k.newValue:t.getItem(n);if(T==null)return l&&m!=null&&t.setItem(n,_.write(m)),m;if(!k&&c){const I=_.read(T);return typeof c=="function"?c(I,m):v==="object"&&!Array.isArray(I)?{...m,...I}:I}else return typeof T!="string"?T:_.read(T)}function D(k){if(!(k&&k.storageArea!==t)){if(k&&k.key==null){p.value=m;return}if(!(k&&k.key!==n)){b();try{(k==null?void 0:k.newValue)!==_.write(p.value)&&(p.value=L(k))}catch(T){f(T)}finally{k?w.nextTick(y):y()}}}}function E(k){D(k.detail)}return p}function UZ(n,e,t={}){const{window:i=lN}=t;return MLt(n,e,i==null?void 0:i.localStorage,t)}function q6(n){"@babel/helpers - typeof";return q6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q6(n)}var ALt=/^\s+/,RLt=/\s+$/;function et(n,e){if(n=n||"",e=e||{},n instanceof et)return n;if(!(this instanceof et))return new et(n,e);var t=PLt(n);this._originalInput=n,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||t.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=t.ok}et.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),t,i,r,s,o,a;return t=e.r/255,i=e.g/255,r=e.b/255,t<=.03928?s=t/12.92:s=Math.pow((t+.055)/1.055,2.4),i<=.03928?o=i/12.92:o=Math.pow((i+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),.2126*s+.7152*o+.0722*a},setAlpha:function(e){return this._a=UIe(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=WIe(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=WIe(this._r,this._g,this._b),t=Math.round(e.h*360),i=Math.round(e.s*100),r=Math.round(e.v*100);return this._a==1?"hsv("+t+", "+i+"%, "+r+"%)":"hsva("+t+", "+i+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=BIe(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=BIe(this._r,this._g,this._b),t=Math.round(e.h*360),i=Math.round(e.s*100),r=Math.round(e.l*100);return this._a==1?"hsl("+t+", "+i+"%, "+r+"%)":"hsla("+t+", "+i+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return HIe(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return BLt(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Dr(this._r,255)*100)+"%",g:Math.round(Dr(this._g,255)*100)+"%",b:Math.round(Dr(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Dr(this._r,255)*100)+"%, "+Math.round(Dr(this._g,255)*100)+"%, "+Math.round(Dr(this._b,255)*100)+"%)":"rgba("+Math.round(Dr(this._r,255)*100)+"%, "+Math.round(Dr(this._g,255)*100)+"%, "+Math.round(Dr(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ZLt[HIe(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t="#"+zIe(this._r,this._g,this._b,this._a),i=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var s=et(e);i="#"+zIe(s._r,s._g,s._b,s._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+i+")"},toString:function(e){var t=!!e;e=e||this._format;var i=!1,r=this._a<1&&this._a>=0,s=!t&&r&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return s?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(i=this.toRgbString()),e==="prgb"&&(i=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(i=this.toHexString()),e==="hex3"&&(i=this.toHexString(!0)),e==="hex4"&&(i=this.toHex8String(!0)),e==="hex8"&&(i=this.toHex8String()),e==="name"&&(i=this.toName()),e==="hsl"&&(i=this.toHslString()),e==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},clone:function(){return et(this.toString())},_applyModification:function(e,t){var i=e.apply(null,[this].concat([].slice.call(t)));return this._r=i._r,this._g=i._g,this._b=i._b,this.setAlpha(i._a),this},lighten:function(){return this._applyModification($Lt,arguments)},brighten:function(){return this._applyModification(ULt,arguments)},darken:function(){return this._applyModification(GLt,arguments)},desaturate:function(){return this._applyModification(WLt,arguments)},saturate:function(){return this._applyModification(HLt,arguments)},greyscale:function(){return this._applyModification(zLt,arguments)},spin:function(){return this._applyModification(jLt,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(YLt,arguments)},complement:function(){return this._applyCombination(qLt,arguments)},monochromatic:function(){return this._applyCombination(XLt,arguments)},splitcomplement:function(){return this._applyCombination(KLt,arguments)},triad:function(){return this._applyCombination($Ie,[3])},tetrad:function(){return this._applyCombination($Ie,[4])}},et.fromRatio=function(n,e){if(q6(n)=="object"){var t={};for(var i in n)n.hasOwnProperty(i)&&(i==="a"?t[i]=n[i]:t[i]=cN(n[i]));n=t}return et(n,e)};function PLt(n){var e={r:0,g:0,b:0},t=1,i=null,r=null,s=null,o=!1,a=!1;return typeof n=="string"&&(n=t2t(n)),q6(n)=="object"&&(yp(n.r)&&yp(n.g)&&yp(n.b)?(e=OLt(n.r,n.g,n.b),o=!0,a=String(n.r).substr(-1)==="%"?"prgb":"rgb"):yp(n.h)&&yp(n.s)&&yp(n.v)?(i=cN(n.s),r=cN(n.v),e=FLt(n.h,i,r),o=!0,a="hsv"):yp(n.h)&&yp(n.s)&&yp(n.l)&&(i=cN(n.s),s=cN(n.l),e=VLt(n.h,i,s),o=!0,a="hsl"),n.hasOwnProperty("a")&&(t=n.a)),t=UIe(t),{ok:o,format:n.format||a,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}function OLt(n,e,t){return{r:Dr(n,255)*255,g:Dr(e,255)*255,b:Dr(t,255)*255}}function BIe(n,e,t){n=Dr(n,255),e=Dr(e,255),t=Dr(t,255);var i=Math.max(n,e,t),r=Math.min(n,e,t),s,o,a=(i+r)/2;if(i==r)s=o=0;else{var l=i-r;switch(o=a>.5?l/(2-i-r):l/(i+r),i){case n:s=(e-t)/l+(e<t?6:0);break;case e:s=(t-n)/l+2;break;case t:s=(n-e)/l+4;break}s/=6}return{h:s,s:o,l:a}}function VLt(n,e,t){var i,r,s;n=Dr(n,360),e=Dr(e,100),t=Dr(t,100);function o(c,h,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?c+(h-c)*6*d:d<1/2?h:d<2/3?c+(h-c)*(2/3-d)*6:c}if(e===0)i=r=s=t;else{var a=t<.5?t*(1+e):t+e-t*e,l=2*t-a;i=o(l,a,n+1/3),r=o(l,a,n),s=o(l,a,n-1/3)}return{r:i*255,g:r*255,b:s*255}}function WIe(n,e,t){n=Dr(n,255),e=Dr(e,255),t=Dr(t,255);var i=Math.max(n,e,t),r=Math.min(n,e,t),s,o,a=i,l=i-r;if(o=i===0?0:l/i,i==r)s=0;else{switch(i){case n:s=(e-t)/l+(e<t?6:0);break;case e:s=(t-n)/l+2;break;case t:s=(n-e)/l+4;break}s/=6}return{h:s,s:o,v:a}}function FLt(n,e,t){n=Dr(n,360)*6,e=Dr(e,100),t=Dr(t,100);var i=Math.floor(n),r=n-i,s=t*(1-e),o=t*(1-r*e),a=t*(1-(1-r)*e),l=i%6,c=[t,o,s,s,a,t][l],h=[a,t,t,o,s,s][l],d=[s,s,a,t,t,o][l];return{r:c*255,g:h*255,b:d*255}}function HIe(n,e,t,i){var r=[Qd(Math.round(n).toString(16)),Qd(Math.round(e).toString(16)),Qd(Math.round(t).toString(16))];return i&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function BLt(n,e,t,i,r){var s=[Qd(Math.round(n).toString(16)),Qd(Math.round(e).toString(16)),Qd(Math.round(t).toString(16)),Qd(GIe(i))];return r&&s[0].charAt(0)==s[0].charAt(1)&&s[1].charAt(0)==s[1].charAt(1)&&s[2].charAt(0)==s[2].charAt(1)&&s[3].charAt(0)==s[3].charAt(1)?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}function zIe(n,e,t,i){var r=[Qd(GIe(i)),Qd(Math.round(n).toString(16)),Qd(Math.round(e).toString(16)),Qd(Math.round(t).toString(16))];return r.join("")}et.equals=function(n,e){return!n||!e?!1:et(n).toRgbString()==et(e).toRgbString()},et.random=function(){return et.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function WLt(n,e){e=e===0?0:e||10;var t=et(n).toHsl();return t.s-=e/100,t.s=K6(t.s),et(t)}function HLt(n,e){e=e===0?0:e||10;var t=et(n).toHsl();return t.s+=e/100,t.s=K6(t.s),et(t)}function zLt(n){return et(n).desaturate(100)}function $Lt(n,e){e=e===0?0:e||10;var t=et(n).toHsl();return t.l+=e/100,t.l=K6(t.l),et(t)}function ULt(n,e){e=e===0?0:e||10;var t=et(n).toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(e/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(e/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(e/100)))),et(t)}function GLt(n,e){e=e===0?0:e||10;var t=et(n).toHsl();return t.l-=e/100,t.l=K6(t.l),et(t)}function jLt(n,e){var t=et(n).toHsl(),i=(t.h+e)%360;return t.h=i<0?360+i:i,et(t)}function qLt(n){var e=et(n).toHsl();return e.h=(e.h+180)%360,et(e)}function $Ie(n,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var t=et(n).toHsl(),i=[et(n)],r=360/e,s=1;s<e;s++)i.push(et({h:(t.h+s*r)%360,s:t.s,l:t.l}));return i}function KLt(n){var e=et(n).toHsl(),t=e.h;return[et(n),et({h:(t+72)%360,s:e.s,l:e.l}),et({h:(t+216)%360,s:e.s,l:e.l})]}function YLt(n,e,t){e=e||6,t=t||30;var i=et(n).toHsl(),r=360/t,s=[et(n)];for(i.h=(i.h-(r*e>>1)+720)%360;--e;)i.h=(i.h+r)%360,s.push(et(i));return s}function XLt(n,e){e=e||6;for(var t=et(n).toHsv(),i=t.h,r=t.s,s=t.v,o=[],a=1/e;e--;)o.push(et({h:i,s:r,v:s})),s=(s+a)%1;return o}et.mix=function(n,e,t){t=t===0?0:t||50;var i=et(n).toRgb(),r=et(e).toRgb(),s=t/100,o={r:(r.r-i.r)*s+i.r,g:(r.g-i.g)*s+i.g,b:(r.b-i.b)*s+i.b,a:(r.a-i.a)*s+i.a};return et(o)},et.readability=function(n,e){var t=et(n),i=et(e);return(Math.max(t.getLuminance(),i.getLuminance())+.05)/(Math.min(t.getLuminance(),i.getLuminance())+.05)},et.isReadable=function(n,e,t){var i=et.readability(n,e),r,s;switch(s=!1,r=i2t(t),r.level+r.size){case"AAsmall":case"AAAlarge":s=i>=4.5;break;case"AAlarge":s=i>=3;break;case"AAAsmall":s=i>=7;break}return s},et.mostReadable=function(n,e,t){var i=null,r=0,s,o,a,l;t=t||{},o=t.includeFallbackColors,a=t.level,l=t.size;for(var c=0;c<e.length;c++)s=et.readability(n,e[c]),s>r&&(r=s,i=et(e[c]));return et.isReadable(n,i,{level:a,size:l})||!o?i:(t.includeFallbackColors=!1,et.mostReadable(n,["#fff","#000"],t))};var GZ=et.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ZLt=et.hexNames=JLt(GZ);function JLt(n){var e={};for(var t in n)n.hasOwnProperty(t)&&(e[n[t]]=t);return e}function UIe(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function Dr(n,e){QLt(n)&&(n="100%");var t=e2t(n);return n=Math.min(e,Math.max(0,parseFloat(n))),t&&(n=parseInt(n*e,10)/100),Math.abs(n-e)<1e-6?1:n%e/parseFloat(e)}function K6(n){return Math.min(1,Math.max(0,n))}function Pc(n){return parseInt(n,16)}function QLt(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1}function e2t(n){return typeof n=="string"&&n.indexOf("%")!=-1}function Qd(n){return n.length==1?"0"+n:""+n}function cN(n){return n<=1&&(n=n*100+"%"),n}function GIe(n){return Math.round(parseFloat(n)*255).toString(16)}function jIe(n){return Pc(n)/255}var eu=function(){var n="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",t="(?:"+e+")|(?:"+n+")",i="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",r="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+i),rgba:new RegExp("rgba"+r),hsl:new RegExp("hsl"+i),hsla:new RegExp("hsla"+r),hsv:new RegExp("hsv"+i),hsva:new RegExp("hsva"+r),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function yp(n){return!!eu.CSS_UNIT.exec(n)}function t2t(n){n=n.replace(ALt,"").replace(RLt,"").toLowerCase();var e=!1;if(GZ[n])n=GZ[n],e=!0;else if(n=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=eu.rgb.exec(n))?{r:t[1],g:t[2],b:t[3]}:(t=eu.rgba.exec(n))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=eu.hsl.exec(n))?{h:t[1],s:t[2],l:t[3]}:(t=eu.hsla.exec(n))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=eu.hsv.exec(n))?{h:t[1],s:t[2],v:t[3]}:(t=eu.hsva.exec(n))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=eu.hex8.exec(n))?{r:Pc(t[1]),g:Pc(t[2]),b:Pc(t[3]),a:jIe(t[4]),format:e?"name":"hex8"}:(t=eu.hex6.exec(n))?{r:Pc(t[1]),g:Pc(t[2]),b:Pc(t[3]),format:e?"name":"hex"}:(t=eu.hex4.exec(n))?{r:Pc(t[1]+""+t[1]),g:Pc(t[2]+""+t[2]),b:Pc(t[3]+""+t[3]),a:jIe(t[4]+""+t[4]),format:e?"name":"hex8"}:(t=eu.hex3.exec(n))?{r:Pc(t[1]+""+t[1]),g:Pc(t[2]+""+t[2]),b:Pc(t[3]+""+t[3]),format:e?"name":"hex"}:!1}function i2t(n){var e,t;return n=n||{level:"AA",size:"small"},e=(n.level||"AA").toUpperCase(),t=(n.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:e,size:t}}var F1=F1||{};F1.stringify=function(){var n={"visit_linear-gradient":function(e){return n.visit_gradient(e)},"visit_repeating-linear-gradient":function(e){return n.visit_gradient(e)},"visit_radial-gradient":function(e){return n.visit_gradient(e)},"visit_repeating-radial-gradient":function(e){return n.visit_gradient(e)},visit_gradient:function(e){var t=n.visit(e.orientation);return t&&(t+=", "),e.type+"("+t+n.visit(e.colorStops)+")"},visit_shape:function(e){var t=e.value,i=n.visit(e.at),r=n.visit(e.style);return r&&(t+=" "+r),i&&(t+=" at "+i),t},"visit_default-radial":function(e){var t="",i=n.visit(e.at);return i&&(t+=i),t},"visit_extent-keyword":function(e){var t=e.value,i=n.visit(e.at);return i&&(t+=" at "+i),t},"visit_position-keyword":function(e){return e.value},visit_position:function(e){return n.visit(e.value.x)+" "+n.visit(e.value.y)},"visit_%":function(e){return e.value+"%"},visit_em:function(e){return e.value+"em"},visit_px:function(e){return e.value+"px"},visit_calc:function(e){return"calc("+e.value+")"},visit_literal:function(e){return n.visit_color(e.value,e)},visit_hex:function(e){return n.visit_color("#"+e.value,e)},visit_rgb:function(e){return n.visit_color("rgb("+e.value.join(", ")+")",e)},visit_rgba:function(e){return n.visit_color("rgba("+e.value.join(", ")+")",e)},visit_hsl:function(e){return n.visit_color("hsl("+e.value[0]+", "+e.value[1]+"%, "+e.value[2]+"%)",e)},visit_hsla:function(e){return n.visit_color("hsla("+e.value[0]+", "+e.value[1]+"%, "+e.value[2]+"%, "+e.value[3]+")",e)},visit_var:function(e){return n.visit_color("var("+e.value+")",e)},visit_color:function(e,t){var i=e,r=n.visit(t.length);return r&&(i+=" "+r),i},visit_angular:function(e){return e.value+"deg"},visit_directional:function(e){return"to "+e.value},visit_array:function(e){var t="",i=e.length;return e.forEach(function(r,s){t+=n.visit(r),s<i-1&&(t+=", ")}),t},visit_object:function(e){return e.width&&e.height?n.visit(e.width)+" "+n.visit(e.height):""},visit:function(e){if(!e)return"";if(e instanceof Array)return n.visit_array(e);if(typeof e=="object"&&!e.type)return n.visit_object(e);if(e.type){var t=n["visit_"+e.type];if(t)return t(e);throw Error("Missing visitor visit_"+e.type)}else throw Error("Invalid node.")}};return function(e){return n.visit(e)}}();var F1=F1||{};F1.parse=function(){var n={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,radianValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))rad/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,varColor:/^var/i,calcValue:/^calc/i,variableName:/^(--[a-zA-Z0-9-,\s\#]+)/,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/,hslColor:/^hsl/i,hslaColor:/^hsla/i},e="";function t(q){var Z=new Error(e+": "+q);throw Z.source=e,Z}function i(){var q=r();return e.length>0&&t("Invalid input not EOF"),q}function r(){return b(s)}function s(){return o("linear-gradient",n.linearGradient,l)||o("repeating-linear-gradient",n.repeatingLinearGradient,l)||o("radial-gradient",n.radialGradient,d)||o("repeating-radial-gradient",n.repeatingRadialGradient,d)}function o(q,Z,ee){return a(Z,function(he){var Re=ee();return Re&&(K(n.comma)||t("Missing comma before color stops")),{type:q,orientation:Re,colorStops:b(y)}})}function a(q,Z){var ee=K(q);if(ee){K(n.startCall)||t("Missing (");var he=Z(ee);return K(n.endCall)||t("Missing )"),he}}function l(){var q=c();if(q)return q;var Z=z("position-keyword",n.positionKeywords,1);return Z?{type:"directional",value:Z.value}:h()}function c(){return z("directional",n.sideOrCorner,1)}function h(){return z("angular",n.angleValue,1)||z("angular",n.radianValue,1)}function d(){var q,Z=u(),ee;return Z&&(q=[],q.push(Z),ee=e,K(n.comma)&&(Z=u(),Z?q.push(Z):e=ee)),q}function u(){var q=f()||g();if(q)q.at=m();else{var Z=p();if(Z){q=Z;var ee=m();ee&&(q.at=ee)}else{var he=m();if(he)q={type:"default-radial",at:he};else{var Re=v();Re&&(q={type:"default-radial",at:Re})}}}return q}function f(){var q=z("shape",/^(circle)/i,0);return q&&(q.style=$()||p()),q}function g(){var q=z("shape",/^(ellipse)/i,0);return q&&(q.style=v()||P()||p()),q}function p(){return z("extent-keyword",n.extentKeywords,1)}function m(){if(z("position",/^at/,0)){var q=v();return q||t("Missing positioning value"),q}}function v(){var q=_();if(q.x||q.y)return{type:"position",value:q}}function _(){return{x:P(),y:P()}}function b(q){var Z=q(),ee=[];if(Z)for(ee.push(Z);K(n.comma);)Z=q(),Z?ee.push(Z):t("One extra comma");return ee}function y(){var q=C();return q||t("Expected color definition"),q.length=P(),q}function C(){return L()||I()||T()||E()||D()||k()||x()}function x(){return z("literal",n.literalColor,0)}function L(){return z("hex",n.hexColor,1)}function D(){return a(n.rgbColor,function(){return{type:"rgb",value:b(M)}})}function E(){return a(n.rgbaColor,function(){return{type:"rgba",value:b(M)}})}function k(){return a(n.varColor,function(){return{type:"var",value:N()}})}function T(){return a(n.hslColor,function(){var q=K(n.percentageValue);q&&t("HSL hue value must be a number in degrees (0-360) or normalized (-360 to 360), not a percentage");var Z=M();K(n.comma);var ee=K(n.percentageValue),he=ee?ee[1]:null;K(n.comma),ee=K(n.percentageValue);var Re=ee?ee[1]:null;return(!he||!Re)&&t("Expected percentage value for saturation and lightness in HSL"),{type:"hsl",value:[Z,he,Re]}})}function I(){return a(n.hslaColor,function(){var q=M();K(n.comma);var Z=K(n.percentageValue),ee=Z?Z[1]:null;K(n.comma),Z=K(n.percentageValue);var he=Z?Z[1]:null;K(n.comma);var Re=M();return(!ee||!he)&&t("Expected percentage value for saturation and lightness in HSLA"),{type:"hsla",value:[q,ee,he,Re]}})}function N(){return K(n.variableName)[1]}function M(){return K(n.number)[1]}function P(){return z("%",n.percentageValue,1)||R()||W()||$()}function R(){return z("position-keyword",n.positionKeywords,1)}function W(){return a(n.calcValue,function(){for(var q=1,Z=0;q>0&&Z<e.length;){var ee=e.charAt(Z);ee==="("?q++:ee===")"&&q--,Z++}q>0&&t("Missing closing parenthesis in calc() expression");var he=e.substring(0,Z-1);return Y(Z-1),{type:"calc",value:he}})}function $(){return z("px",n.pixelValue,1)||z("em",n.emValue,1)}function z(q,Z,ee){var he=K(Z);if(he)return{type:q,value:he[ee]}}function K(q){var Z,ee;return ee=/^[\n\r\t\s]+/.exec(e),ee&&Y(ee[0].length),Z=q.exec(e),Z&&Y(Z[0].length),Z}function Y(q){e=e.substr(q)}return function(q){return e=q.toString().trim(),e.endsWith(";")&&(e=e.slice(0,-1)),i()}}();var n2t=F1.parse,r2t=F1.stringify,jl="top",Yh="bottom",Xh="right",ql="left",jZ="auto",hN=[jl,Yh,Xh,ql],yL="start",dN="end",s2t="clippingParents",qIe="viewport",uN="popper",o2t="reference",KIe=hN.reduce(function(n,e){return n.concat([e+"-"+yL,e+"-"+dN])},[]),YIe=[].concat(hN,[jZ]).reduce(function(n,e){return n.concat([e,e+"-"+yL,e+"-"+dN])},[]),a2t="beforeRead",l2t="read",c2t="afterRead",h2t="beforeMain",d2t="main",u2t="afterMain",f2t="beforeWrite",g2t="write",p2t="afterWrite",m2t=[a2t,l2t,c2t,h2t,d2t,u2t,f2t,g2t,p2t];function wf(n){return n?(n.nodeName||"").toLowerCase():null}function Oc(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function B1(n){var e=Oc(n).Element;return n instanceof e||n instanceof Element}function Zh(n){var e=Oc(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function qZ(n){if(typeof ShadowRoot>"u")return!1;var e=Oc(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function v2t(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},r=e.attributes[t]||{},s=e.elements[t];!Zh(s)||!wf(s)||(Object.assign(s.style,i),Object.keys(r).forEach(function(o){var a=r[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function _2t(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var r=e.elements[i],s=e.attributes[i]||{},o=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),a=o.reduce(function(l,c){return l[c]="",l},{});!Zh(r)||!wf(r)||(Object.assign(r.style,a),Object.keys(s).forEach(function(l){r.removeAttribute(l)}))})}}const b2t={name:"applyStyles",enabled:!0,phase:"write",fn:v2t,effect:_2t,requires:["computeStyles"]};function Cf(n){return n.split("-")[0]}var W1=Math.max,Y6=Math.min,wL=Math.round;function KZ(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function XIe(){return!/^((?!chrome|android).)*safari/i.test(KZ())}function CL(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=n.getBoundingClientRect(),r=1,s=1;e&&Zh(n)&&(r=n.offsetWidth>0&&wL(i.width)/n.offsetWidth||1,s=n.offsetHeight>0&&wL(i.height)/n.offsetHeight||1);var o=B1(n)?Oc(n):window,a=o.visualViewport,l=!XIe()&&t,c=(i.left+(l&&a?a.offsetLeft:0))/r,h=(i.top+(l&&a?a.offsetTop:0))/s,d=i.width/r,u=i.height/s;return{width:d,height:u,top:h,right:c+d,bottom:h+u,left:c,x:c,y:h}}function YZ(n){var e=CL(n),t=n.offsetWidth,i=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:i}}function ZIe(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&qZ(t)){var i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function wp(n){return Oc(n).getComputedStyle(n)}function y2t(n){return["table","td","th"].indexOf(wf(n))>=0}function l_(n){return((B1(n)?n.ownerDocument:n.document)||window.document).documentElement}function X6(n){return wf(n)==="html"?n:n.assignedSlot||n.parentNode||(qZ(n)?n.host:null)||l_(n)}function JIe(n){return!Zh(n)||wp(n).position==="fixed"?null:n.offsetParent}function w2t(n){var e=/firefox/i.test(KZ()),t=/Trident/i.test(KZ());if(t&&Zh(n)){var i=wp(n);if(i.position==="fixed")return null}var r=X6(n);for(qZ(r)&&(r=r.host);Zh(r)&&["html","body"].indexOf(wf(r))<0;){var s=wp(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function fN(n){for(var e=Oc(n),t=JIe(n);t&&y2t(t)&&wp(t).position==="static";)t=JIe(t);return t&&(wf(t)==="html"||wf(t)==="body"&&wp(t).position==="static")?e:t||w2t(n)||e}function XZ(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function gN(n,e,t){return W1(n,Y6(e,t))}function C2t(n,e,t){var i=gN(n,e,t);return i>t?t:i}function QIe(){return{top:0,right:0,bottom:0,left:0}}function eNe(n){return Object.assign({},QIe(),n)}function tNe(n,e){return e.reduce(function(t,i){return t[i]=n,t},{})}var S2t=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,eNe(typeof e!="number"?e:tNe(e,hN))};function x2t(n){var e,t=n.state,i=n.name,r=n.options,s=t.elements.arrow,o=t.modifiersData.popperOffsets,a=Cf(t.placement),l=XZ(a),c=[ql,Xh].indexOf(a)>=0,h=c?"height":"width";if(!(!s||!o)){var d=S2t(r.padding,t),u=YZ(s),f=l==="y"?jl:ql,g=l==="y"?Yh:Xh,p=t.rects.reference[h]+t.rects.reference[l]-o[l]-t.rects.popper[h],m=o[l]-t.rects.reference[l],v=fN(s),_=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,b=p/2-m/2,y=d[f],C=_-u[h]-d[g],x=_/2-u[h]/2+b,L=gN(y,x,C),D=l;t.modifiersData[i]=(e={},e[D]=L,e.centerOffset=L-x,e)}}function L2t(n){var e=n.state,t=n.options,i=t.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||ZIe(e.elements.popper,r)&&(e.elements.arrow=r))}const D2t={name:"arrow",enabled:!0,phase:"main",fn:x2t,effect:L2t,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function SL(n){return n.split("-")[1]}var E2t={top:"auto",right:"auto",bottom:"auto",left:"auto"};function k2t(n,e){var t=n.x,i=n.y,r=e.devicePixelRatio||1;return{x:wL(t*r)/r||0,y:wL(i*r)/r||0}}function iNe(n){var e,t=n.popper,i=n.popperRect,r=n.placement,s=n.variation,o=n.offsets,a=n.position,l=n.gpuAcceleration,c=n.adaptive,h=n.roundOffsets,d=n.isFixed,u=o.x,f=u===void 0?0:u,g=o.y,p=g===void 0?0:g,m=typeof h=="function"?h({x:f,y:p}):{x:f,y:p};f=m.x,p=m.y;var v=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),b=ql,y=jl,C=window;if(c){var x=fN(t),L="clientHeight",D="clientWidth";if(x===Oc(t)&&(x=l_(t),wp(x).position!=="static"&&a==="absolute"&&(L="scrollHeight",D="scrollWidth")),x=x,r===jl||(r===ql||r===Xh)&&s===dN){y=Yh;var E=d&&x===C&&C.visualViewport?C.visualViewport.height:x[L];p-=E-i.height,p*=l?1:-1}if(r===ql||(r===jl||r===Yh)&&s===dN){b=Xh;var k=d&&x===C&&C.visualViewport?C.visualViewport.width:x[D];f-=k-i.width,f*=l?1:-1}}var T=Object.assign({position:a},c&&E2t),I=h===!0?k2t({x:f,y:p},Oc(t)):{x:f,y:p};if(f=I.x,p=I.y,l){var N;return Object.assign({},T,(N={},N[y]=_?"0":"",N[b]=v?"0":"",N.transform=(C.devicePixelRatio||1)<=1?"translate("+f+"px, "+p+"px)":"translate3d("+f+"px, "+p+"px, 0)",N))}return Object.assign({},T,(e={},e[y]=_?p+"px":"",e[b]=v?f+"px":"",e.transform="",e))}function T2t(n){var e=n.state,t=n.options,i=t.gpuAcceleration,r=i===void 0?!0:i,s=t.adaptive,o=s===void 0?!0:s,a=t.roundOffsets,l=a===void 0?!0:a,c={placement:Cf(e.placement),variation:SL(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,iNe(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,iNe(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const I2t={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:T2t,data:{}};var Z6={passive:!0};function N2t(n){var e=n.state,t=n.instance,i=n.options,r=i.scroll,s=r===void 0?!0:r,o=i.resize,a=o===void 0?!0:o,l=Oc(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(h){h.addEventListener("scroll",t.update,Z6)}),a&&l.addEventListener("resize",t.update,Z6),function(){s&&c.forEach(function(h){h.removeEventListener("scroll",t.update,Z6)}),a&&l.removeEventListener("resize",t.update,Z6)}}const M2t={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:N2t,data:{}};var A2t={left:"right",right:"left",bottom:"top",top:"bottom"};function J6(n){return n.replace(/left|right|bottom|top/g,function(e){return A2t[e]})}var R2t={start:"end",end:"start"};function nNe(n){return n.replace(/start|end/g,function(e){return R2t[e]})}function ZZ(n){var e=Oc(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function JZ(n){return CL(l_(n)).left+ZZ(n).scrollLeft}function P2t(n,e){var t=Oc(n),i=l_(n),r=t.visualViewport,s=i.clientWidth,o=i.clientHeight,a=0,l=0;if(r){s=r.width,o=r.height;var c=XIe();(c||!c&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:o,x:a+JZ(n),y:l}}function O2t(n){var e,t=l_(n),i=ZZ(n),r=(e=n.ownerDocument)==null?void 0:e.body,s=W1(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=W1(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+JZ(n),l=-i.scrollTop;return wp(r||t).direction==="rtl"&&(a+=W1(t.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function QZ(n){var e=wp(n),t=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+i)}function rNe(n){return["html","body","#document"].indexOf(wf(n))>=0?n.ownerDocument.body:Zh(n)&&QZ(n)?n:rNe(X6(n))}function pN(n,e){var t;e===void 0&&(e=[]);var i=rNe(n),r=i===((t=n.ownerDocument)==null?void 0:t.body),s=Oc(i),o=r?[s].concat(s.visualViewport||[],QZ(i)?i:[]):i,a=e.concat(o);return r?a:a.concat(pN(X6(o)))}function eJ(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function V2t(n,e){var t=CL(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function sNe(n,e,t){return e===qIe?eJ(P2t(n,t)):B1(e)?V2t(e,t):eJ(O2t(l_(n)))}function F2t(n){var e=pN(X6(n)),t=["absolute","fixed"].indexOf(wp(n).position)>=0,i=t&&Zh(n)?fN(n):n;return B1(i)?e.filter(function(r){return B1(r)&&ZIe(r,i)&&wf(r)!=="body"}):[]}function B2t(n,e,t,i){var r=e==="clippingParents"?F2t(n):[].concat(e),s=[].concat(r,[t]),o=s[0],a=s.reduce(function(l,c){var h=sNe(n,c,i);return l.top=W1(h.top,l.top),l.right=Y6(h.right,l.right),l.bottom=Y6(h.bottom,l.bottom),l.left=W1(h.left,l.left),l},sNe(n,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function oNe(n){var e=n.reference,t=n.element,i=n.placement,r=i?Cf(i):null,s=i?SL(i):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(r){case jl:l={x:o,y:e.y-t.height};break;case Yh:l={x:o,y:e.y+e.height};break;case Xh:l={x:e.x+e.width,y:a};break;case ql:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var c=r?XZ(r):null;if(c!=null){var h=c==="y"?"height":"width";switch(s){case yL:l[c]=l[c]-(e[h]/2-t[h]/2);break;case dN:l[c]=l[c]+(e[h]/2-t[h]/2);break}}return l}function mN(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=i===void 0?n.placement:i,s=t.strategy,o=s===void 0?n.strategy:s,a=t.boundary,l=a===void 0?s2t:a,c=t.rootBoundary,h=c===void 0?qIe:c,d=t.elementContext,u=d===void 0?uN:d,f=t.altBoundary,g=f===void 0?!1:f,p=t.padding,m=p===void 0?0:p,v=eNe(typeof m!="number"?m:tNe(m,hN)),_=u===uN?o2t:uN,b=n.rects.popper,y=n.elements[g?_:u],C=B2t(B1(y)?y:y.contextElement||l_(n.elements.popper),l,h,o),x=CL(n.elements.reference),L=oNe({reference:x,element:b,placement:r}),D=eJ(Object.assign({},b,L)),E=u===uN?D:x,k={top:C.top-E.top+v.top,bottom:E.bottom-C.bottom+v.bottom,left:C.left-E.left+v.left,right:E.right-C.right+v.right},T=n.modifiersData.offset;if(u===uN&&T){var I=T[r];Object.keys(k).forEach(function(N){var M=[Xh,Yh].indexOf(N)>=0?1:-1,P=[jl,Yh].indexOf(N)>=0?"y":"x";k[N]+=I[P]*M})}return k}function W2t(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=t.boundary,s=t.rootBoundary,o=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,c=l===void 0?YIe:l,h=SL(i),d=h?a?KIe:KIe.filter(function(g){return SL(g)===h}):hN,u=d.filter(function(g){return c.indexOf(g)>=0});u.length===0&&(u=d);var f=u.reduce(function(g,p){return g[p]=mN(n,{placement:p,boundary:r,rootBoundary:s,padding:o})[Cf(p)],g},{});return Object.keys(f).sort(function(g,p){return f[g]-f[p]})}function H2t(n){if(Cf(n)===jZ)return[];var e=J6(n);return[nNe(n),e,nNe(e)]}function z2t(n){var e=n.state,t=n.options,i=n.name;if(!e.modifiersData[i]._skip){for(var r=t.mainAxis,s=r===void 0?!0:r,o=t.altAxis,a=o===void 0?!0:o,l=t.fallbackPlacements,c=t.padding,h=t.boundary,d=t.rootBoundary,u=t.altBoundary,f=t.flipVariations,g=f===void 0?!0:f,p=t.allowedAutoPlacements,m=e.options.placement,v=Cf(m),_=v===m,b=l||(_||!g?[J6(m)]:H2t(m)),y=[m].concat(b).reduce(function(ee,he){return ee.concat(Cf(he)===jZ?W2t(e,{placement:he,boundary:h,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:p}):he)},[]),C=e.rects.reference,x=e.rects.popper,L=new Map,D=!0,E=y[0],k=0;k<y.length;k++){var T=y[k],I=Cf(T),N=SL(T)===yL,M=[jl,Yh].indexOf(I)>=0,P=M?"width":"height",R=mN(e,{placement:T,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),W=M?N?Xh:ql:N?Yh:jl;C[P]>x[P]&&(W=J6(W));var $=J6(W),z=[];if(s&&z.push(R[I]<=0),a&&z.push(R[W]<=0,R[$]<=0),z.every(function(ee){return ee})){E=T,D=!1;break}L.set(T,z)}if(D)for(var K=g?3:1,Y=function(he){var Re=y.find(function(Ge){var ke=L.get(Ge);if(ke)return ke.slice(0,he).every(function(ce){return ce})});if(Re)return E=Re,"break"},q=K;q>0;q--){var Z=Y(q);if(Z==="break")break}e.placement!==E&&(e.modifiersData[i]._skip=!0,e.placement=E,e.reset=!0)}}const $2t={name:"flip",enabled:!0,phase:"main",fn:z2t,requiresIfExists:["offset"],data:{_skip:!1}};function aNe(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function lNe(n){return[jl,Xh,Yh,ql].some(function(e){return n[e]>=0})}function U2t(n){var e=n.state,t=n.name,i=e.rects.reference,r=e.rects.popper,s=e.modifiersData.preventOverflow,o=mN(e,{elementContext:"reference"}),a=mN(e,{altBoundary:!0}),l=aNe(o,i),c=aNe(a,r,s),h=lNe(l),d=lNe(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}const G2t={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:U2t};function j2t(n,e,t){var i=Cf(n),r=[ql,jl].indexOf(i)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,o=s[0],a=s[1];return o=o||0,a=(a||0)*r,[ql,Xh].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function q2t(n){var e=n.state,t=n.options,i=n.name,r=t.offset,s=r===void 0?[0,0]:r,o=YIe.reduce(function(h,d){return h[d]=j2t(d,e.rects,s),h},{}),a=o[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=o}const K2t={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:q2t};function Y2t(n){var e=n.state,t=n.name;e.modifiersData[t]=oNe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const X2t={name:"popperOffsets",enabled:!0,phase:"read",fn:Y2t,data:{}};function Z2t(n){return n==="x"?"y":"x"}function J2t(n){var e=n.state,t=n.options,i=n.name,r=t.mainAxis,s=r===void 0?!0:r,o=t.altAxis,a=o===void 0?!1:o,l=t.boundary,c=t.rootBoundary,h=t.altBoundary,d=t.padding,u=t.tether,f=u===void 0?!0:u,g=t.tetherOffset,p=g===void 0?0:g,m=mN(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),v=Cf(e.placement),_=SL(e.placement),b=!_,y=XZ(v),C=Z2t(y),x=e.modifiersData.popperOffsets,L=e.rects.reference,D=e.rects.popper,E=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,k=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,I={x:0,y:0};if(x){if(s){var N,M=y==="y"?jl:ql,P=y==="y"?Yh:Xh,R=y==="y"?"height":"width",W=x[y],$=W+m[M],z=W-m[P],K=f?-D[R]/2:0,Y=_===yL?L[R]:D[R],q=_===yL?-D[R]:-L[R],Z=e.elements.arrow,ee=f&&Z?YZ(Z):{width:0,height:0},he=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:QIe(),Re=he[M],Ge=he[P],ke=gN(0,L[R],ee[R]),ce=b?L[R]/2-K-ke-Re-k.mainAxis:Y-ke-Re-k.mainAxis,we=b?-L[R]/2+K+ke+Ge+k.mainAxis:q+ke+Ge+k.mainAxis,ye=e.elements.arrow&&fN(e.elements.arrow),Pe=ye?y==="y"?ye.clientTop||0:ye.clientLeft||0:0,Ft=(N=T==null?void 0:T[y])!=null?N:0,Pt=W+ce-Ft-Pe,di=W+we-Ft,Ai=gN(f?Y6($,Pt):$,W,f?W1(z,di):z);x[y]=Ai,I[y]=Ai-W}if(a){var hn,Pr=y==="x"?jl:ql,jn=y==="x"?Yh:Xh,Lr=x[C],Us=C==="y"?"height":"width",sb=Lr+m[Pr],Bl=Lr-m[jn],av=[jl,ql].indexOf(v)!==-1,lv=(hn=T==null?void 0:T[C])!=null?hn:0,cv=av?sb:Lr-L[Us]-D[Us]-lv+k.altAxis,CO=av?Lr+L[Us]+D[Us]-lv-k.altAxis:Bl,SO=f&&av?C2t(cv,Lr,CO):gN(f?cv:sb,Lr,f?CO:Bl);x[C]=SO,I[C]=SO-Lr}e.modifiersData[i]=I}}const Q2t={name:"preventOverflow",enabled:!0,phase:"main",fn:J2t,requiresIfExists:["offset"]};function eDt(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function tDt(n){return n===Oc(n)||!Zh(n)?ZZ(n):eDt(n)}function iDt(n){var e=n.getBoundingClientRect(),t=wL(e.width)/n.offsetWidth||1,i=wL(e.height)/n.offsetHeight||1;return t!==1||i!==1}function nDt(n,e,t){t===void 0&&(t=!1);var i=Zh(e),r=Zh(e)&&iDt(e),s=l_(e),o=CL(n,r,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&((wf(e)!=="body"||QZ(s))&&(a=tDt(e)),Zh(e)?(l=CL(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=JZ(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function rDt(n){var e=new Map,t=new Set,i=[];n.forEach(function(s){e.set(s.name,s)});function r(s){t.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&r(l)}}),i.push(s)}return n.forEach(function(s){t.has(s.name)||r(s)}),i}function sDt(n){var e=rDt(n);return m2t.reduce(function(t,i){return t.concat(e.filter(function(r){return r.phase===i}))},[])}function oDt(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function aDt(n){var e=n.reduce(function(t,i){var r=t[i.name];return t[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var cNe={placement:"bottom",modifiers:[],strategy:"absolute"};function hNe(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function lDt(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,i=t===void 0?[]:t,r=e.defaultOptions,s=r===void 0?cNe:r;return function(a,l,c){c===void 0&&(c=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},cNe,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],u=!1,f={state:h,setOptions:function(v){var _=typeof v=="function"?v(h.options):v;p(),h.options=Object.assign({},s,h.options,_),h.scrollParents={reference:B1(a)?pN(a):a.contextElement?pN(a.contextElement):[],popper:pN(l)};var b=sDt(aDt([].concat(i,h.options.modifiers)));return h.orderedModifiers=b.filter(function(y){return y.enabled}),g(),f.update()},forceUpdate:function(){if(!u){var v=h.elements,_=v.reference,b=v.popper;if(hNe(_,b)){h.rects={reference:nDt(_,fN(b),h.options.strategy==="fixed"),popper:YZ(b)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(k){return h.modifiersData[k.name]=Object.assign({},k.data)});for(var y=0;y<h.orderedModifiers.length;y++){if(h.reset===!0){h.reset=!1,y=-1;continue}var C=h.orderedModifiers[y],x=C.fn,L=C.options,D=L===void 0?{}:L,E=C.name;typeof x=="function"&&(h=x({state:h,options:D,name:E,instance:f})||h)}}}},update:oDt(function(){return new Promise(function(m){f.forceUpdate(),m(h)})}),destroy:function(){p(),u=!0}};if(!hNe(a,l))return f;f.setOptions(c).then(function(m){!u&&c.onFirstUpdate&&c.onFirstUpdate(m)});function g(){h.orderedModifiers.forEach(function(m){var v=m.name,_=m.options,b=_===void 0?{}:_,y=m.effect;if(typeof y=="function"){var C=y({state:h,name:v,instance:f,options:b}),x=function(){};d.push(C||x)}})}function p(){d.forEach(function(m){return m()}),d=[]}return f}}var cDt=[M2t,X2t,I2t,b2t,K2t,$2t,Q2t,D2t,G2t],hDt=lDt({defaultModifiers:cDt});/*!
906
919
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
907
920
  *
908
921
  * Copyright (c) 2014-2017, Jon Schlinkert.
@@ -1827,4 +1840,4 @@ ${e.toString()}`}}class DH{constructor(e=new J2,t=!1,i,r=Lai){this._services=e,t
1827
1840
  `+" ".repeat(e));var Dfe;(function(n){n.DEFAULT={allowTrailingComma:!1}})(Dfe||(Dfe={}));function Tci(n,e){const t=[],i=new Object;let r;const s={value:{},offset:0,length:0,type:"object",parent:void 0};let o=!1;function a(l,c,h,d){s.value=l,s.offset=c,s.length=h,s.type=d,s.colonOffset=void 0,r=s}try{Ici(n,{onObjectBegin:(l,c)=>{if(e<=l)throw i;r=void 0,o=e>l,t.push("")},onObjectProperty:(l,c,h)=>{if(e<c||(a(l,c,h,"property"),t[t.length-1]=l,e<=c+h))throw i},onObjectEnd:(l,c)=>{if(e<=l)throw i;r=void 0,t.pop()},onArrayBegin:(l,c)=>{if(e<=l)throw i;r=void 0,t.push(0)},onArrayEnd:(l,c)=>{if(e<=l)throw i;r=void 0,t.pop()},onLiteralValue:(l,c,h)=>{if(e<c||(a(l,c,h,Nci(l)),e<=c+h))throw i},onSeparator:(l,c,h)=>{if(e<=c)throw i;if(l===":"&&r&&r.type==="property")r.colonOffset=c,o=!1,r=void 0;else if(l===","){const d=t[t.length-1];typeof d=="number"?t[t.length-1]=d+1:(o=!0,t[t.length-1]=""),r=void 0}}})}catch(l){if(l!==i)throw l}return{path:t,previousNode:r,isAtPropertyKey:o,matches:l=>{let c=0;for(let h=0;c<l.length&&h<t.length;h++)if(l[c]===t[h]||l[c]==="*")c++;else if(l[c]!=="**")return!1;return c===l.length}}}function Ici(n,e,t=Dfe.DEFAULT){const i=kci(n,!1),r=[];let s=0;function o(M){return M?()=>s===0&&M(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter()):()=>!0}function a(M){return M?P=>s===0&&M(P,i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter()):()=>!0}function l(M){return M?P=>s===0&&M(P,i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter(),()=>r.slice()):()=>!0}function c(M){return M?()=>{s>0?s++:M(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter(),()=>r.slice())===!1&&(s=1)}:()=>!0}function h(M){return M?()=>{s>0&&s--,s===0&&M(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter())}:()=>!0}const d=c(e.onObjectBegin),u=l(e.onObjectProperty),f=h(e.onObjectEnd),g=c(e.onArrayBegin),p=h(e.onArrayEnd),m=l(e.onLiteralValue),v=a(e.onSeparator),_=o(e.onComment),b=a(e.onError),y=t&&t.disallowComments,C=t&&t.allowTrailingComma;function x(){for(;;){const M=i.scan();switch(i.getTokenError()){case 4:L(14);break;case 5:L(15);break;case 3:L(13);break;case 1:y||L(11);break;case 2:L(12);break;case 6:L(16);break}switch(M){case 12:case 13:y?L(10):_();break;case 16:L(1);break;case 15:case 14:break;default:return M}}}function L(M,P=[],R=[]){if(b(M),P.length+R.length>0){let W=i.getToken();for(;W!==17;){if(P.indexOf(W)!==-1){x();break}else if(R.indexOf(W)!==-1)break;W=x()}}}function D(M){const P=i.getTokenValue();return M?m(P):(u(P),r.push(P)),x(),!0}function E(){switch(i.getToken()){case 11:const M=i.getTokenValue();let P=Number(M);isNaN(P)&&(L(2),P=0),m(P);break;case 7:m(null);break;case 8:m(!0);break;case 9:m(!1);break;default:return!1}return x(),!0}function k(){return i.getToken()!==10?(L(3,[],[2,5]),!1):(D(!1),i.getToken()===6?(v(":"),x(),N()||L(4,[],[2,5])):L(5,[],[2,5]),r.pop(),!0)}function T(){d(),x();let M=!1;for(;i.getToken()!==2&&i.getToken()!==17;){if(i.getToken()===5){if(M||L(4,[],[]),v(","),x(),i.getToken()===2&&C)break}else M&&L(6,[],[]);k()||L(4,[],[2,5]),M=!0}return f(),i.getToken()!==2?L(7,[2],[]):x(),!0}function I(){g(),x();let M=!0,P=!1;for(;i.getToken()!==4&&i.getToken()!==17;){if(i.getToken()===5){if(P||L(4,[],[]),v(","),x(),i.getToken()===4&&C)break}else P&&L(6,[],[]);M?(r.push(0),M=!1):r[r.length-1]++,N()||L(4,[],[4,5]),P=!0}return p(),M||r.pop(),i.getToken()!==4?L(8,[4],[]):x(),!0}function N(){switch(i.getToken()){case 3:return I();case 1:return T();case 10:return D(!0);default:return E()}}return x(),i.getToken()===17?t.allowEmptyContent?!0:(L(4,[],[]),!1):N()?(i.getToken()!==17&&L(9,[],[]),!0):(L(4,[],[]),!1)}function Nci(n){switch(typeof n){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(n){if(Array.isArray(n))return"array"}else return"null";return"object"}default:return"null"}}var Nze;(function(n){n[n.None=0]="None",n[n.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",n[n.UnexpectedEndOfString=2]="UnexpectedEndOfString",n[n.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",n[n.InvalidUnicode=4]="InvalidUnicode",n[n.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",n[n.InvalidCharacter=6]="InvalidCharacter"})(Nze||(Nze={}));var Mze;(function(n){n[n.OpenBraceToken=1]="OpenBraceToken",n[n.CloseBraceToken=2]="CloseBraceToken",n[n.OpenBracketToken=3]="OpenBracketToken",n[n.CloseBracketToken=4]="CloseBracketToken",n[n.CommaToken=5]="CommaToken",n[n.ColonToken=6]="ColonToken",n[n.NullKeyword=7]="NullKeyword",n[n.TrueKeyword=8]="TrueKeyword",n[n.FalseKeyword=9]="FalseKeyword",n[n.StringLiteral=10]="StringLiteral",n[n.NumericLiteral=11]="NumericLiteral",n[n.LineCommentTrivia=12]="LineCommentTrivia",n[n.BlockCommentTrivia=13]="BlockCommentTrivia",n[n.LineBreakTrivia=14]="LineBreakTrivia",n[n.Trivia=15]="Trivia",n[n.Unknown=16]="Unknown",n[n.EOF=17]="EOF"})(Mze||(Mze={}));const Mci=Tci;var Aze;(function(n){n[n.InvalidSymbol=1]="InvalidSymbol",n[n.InvalidNumberFormat=2]="InvalidNumberFormat",n[n.PropertyNameExpected=3]="PropertyNameExpected",n[n.ValueExpected=4]="ValueExpected",n[n.ColonExpected=5]="ColonExpected",n[n.CommaExpected=6]="CommaExpected",n[n.CloseBraceExpected=7]="CloseBraceExpected",n[n.CloseBracketExpected=8]="CloseBracketExpected",n[n.EndOfFileExpected=9]="EndOfFileExpected",n[n.InvalidCommentToken=10]="InvalidCommentToken",n[n.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",n[n.UnexpectedEndOfString=12]="UnexpectedEndOfString",n[n.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",n[n.InvalidUnicode=14]="InvalidUnicode",n[n.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",n[n.InvalidCharacter=16]="InvalidCharacter"})(Aze||(Aze={}));const Aci={style:{display:"flex","justify-content":"space-between"}},Rci={class:"preview-output"},Pci={key:0,class:"muted"},iO="json-rule-js",Oci="",Vci=Yn({__name:"JsonRuleEditor",props:{modelValue:{type:Object,default:()=>({})},rule:{type:String,default:""},globals:{type:Object,default:()=>({})}},emits:["update:rule","close"],setup(n,{emit:e}){const t=n,i=e,r=w.ref(null),s=w.ref(null),o=w.ref(null);let a=null,l=null,c=null,h=null,d=!1;const u=()=>{d||(js.languages.register({id:iO}),js.languages.setMonarchTokensProvider(iO,Eci),js.languages.setLanguageConfiguration(iO,Dci),d=!0)};let f=null;const g=w.ref({visible:!1,x:0,y:0}),p=w.ref(""),m=w.ref(""),v=w.ref(""),_=w.ref({visible:!1,x:0,y:0,path:"",pathParts:[],key:"",value:void 0}),b=w.computed(()=>t.modelValue||{}),y=w.computed(()=>t.globals||{}),C=w.computed(()=>{if(!p.value)return"selected";const ce=p.value.split(".").filter(Boolean);return ce[ce.length-1]||"selected"}),x=(ce,we)=>(Array.isArray(we)?we:String(we||"").split(".")).filter(Pe=>Pe!=="").reduce((Pe,Ft)=>{if(Pe==null)return;const Pt=Number(Ft);return!Number.isNaN(Pt)&&String(Pt)===String(Ft)?Pe[Pt]:Pe[Ft]},ce),L=()=>{if(m.value="",!a)return"";try{return new Function("data","$",a.getValue())(b.value,y.value),!0}catch(ce){return m.value=ce.message,""}},D=ce=>{try{return JSON.stringify(ce??{},null,2)}catch{return""}},E=()=>{_.value.visible=!1},k=()=>{g.value.visible=!1},T=()=>{var ce;if(!((ce=_.value.pathParts)!=null&&ce.length)){E();return}p.value=_.value.path,$(C.value,_.value.pathParts),E()},I=(ce,we=!1)=>{var Ft;if(!ce&&ce!==0)return;const ye=String(ce),Pe=()=>{!N(ye)&&we&&M(ye)};(Ft=navigator==null?void 0:navigator.clipboard)!=null&&Ft.writeText?navigator.clipboard.writeText(ye).catch(()=>{Pe()}).finally(()=>{we&&M(ye)}):(Pe(),we&&M(ye))},N=ce=>{try{const we=document.createElement("textarea");we.value=ce,document.body.appendChild(we),we.select();const ye=document.execCommand("copy");return document.body.removeChild(we),ye}catch{return!1}},M=ce=>{if(!a)return;const we=a.getModel();if(!we)return;const ye=a.getPosition();we.pushEditOperations([],[{range:new js.Range(ye.lineNumber,ye.column,ye.lineNumber,ye.column),text:ce,forceMoveMarkers:!0}],()=>null),a.focus()},P=()=>{if(!_.value.key)return E();I(_.value.key,!0),E()},R=()=>{if(_.value.value===void 0)return E();const ce=typeof _.value.value=="object"?JSON.stringify(_.value.value):_.value.value;I(ce,!0),E()},W=()=>{if(!_.value.path)return E();const ce=_.value.path.startsWith("data.")?_.value.path:`data.${_.value.path}`;I(ce,!0),E()},$=(ce,we)=>{if(!a)return;const ye=a.getModel();if(!ye)return;const Pe=a.getPosition(),Ft=Re(we),Pt=`
1828
1841
  // ${Ft}
1829
1842
  const ${ce} = ${Ft};
1830
- `;ye.pushEditOperations([],[{range:new js.Range(Pe.lineNumber,Pe.column,Pe.lineNumber,Pe.column),text:Pt,forceMoveMarkers:!0}],()=>null),a.focus()},z=ce=>{var Lr,Us;if(!l)return;const we=l.getModel();if(!we)return;const ye=((Lr=ce.target)==null?void 0:Lr.position)||ce.position;if(!ye)return;const Pe=we.getOffsetAt(ye),Ft=we.getValue(),di=Mci(Ft,Pe).path||[];if(!di.length)return;const Ai=he(di),hn=x(b.value,di),Pr=di.length?String(di[di.length-1]):"",jn=(Us=r.value)==null?void 0:Us.getBoundingClientRect();_.value={visible:!0,x:jn?ce.event.browserEvent.clientX-jn.left:0,y:jn?ce.event.browserEvent.clientY-jn.top:0,path:Ai,pathParts:di,key:Pr,value:hn}},K=ce=>{var ye;ce.event.preventDefault(),ce.event.stopPropagation();const we=(ye=r.value)==null?void 0:ye.getBoundingClientRect();g.value={visible:!0,x:we?ce.event.browserEvent.clientX-we.left:0,y:we?ce.event.browserEvent.clientY-we.top:0}},Y=async()=>{if(!a)return k();const ce=a.getModel().getValueInRange(a.getSelection());if(!ce)return k();try{await navigator.clipboard.writeText(ce)}catch{}k()},q=async()=>{if(!a)return k();const ce=a.getSelection(),we=a.getModel().getValueInRange(ce);if(!we)return k();try{await navigator.clipboard.writeText(we),a.executeEdits("custom-cut",[{range:ce,text:"",forceMoveMarkers:!0}])}catch{}k()},Z=async()=>{if(!a)return k();try{const ce=await navigator.clipboard.readText();if(!ce)return k();a.executeEdits("custom-paste",[{range:a.getSelection(),text:ce,forceMoveMarkers:!0}])}catch{}k()},ee=async()=>{if(!a)return k();try{const ce=a.getAction("editor.action.formatDocument");ce&&await ce.run()}catch{}k()},he=ce=>["data",...Array.isArray(ce)?ce:String(ce||"").split(".").filter(Boolean)].map(ye=>String(ye)).join("."),Re=ce=>["data",...Array.isArray(ce)?ce:String(ce||"").split(".").filter(Boolean)].map((ye,Pe)=>{if(Pe===0)return"data";const Ft=Number(ye);return!Number.isNaN(Ft)&&String(Ft)===String(ye)?`[${Ft}]`:`.${ye}`}).join(""),Ge=()=>{i("close")};w.onMounted(()=>{u(),a=js.editor.create(s.value,{value:t.rule||Oci,language:iO,theme:"vs-dark",automaticLayout:!0,minimap:{enabled:!1},fontSize:14,wordBasedSuggestions:"off",quickSuggestions:!1,suggestOnTriggerCharacters:!1,parameterHints:{enabled:!1},suggest:{showWords:!1,showText:!1,showSnippets:!1,showMethods:!1,showFunctions:!1,showClasses:!1,showVariables:!1,showModules:!1,showProperties:!1,showFields:!1,showValues:!0,showKeywords:!1}}),a.updateOptions({contextmenu:!1}),a.onContextMenu(ce=>K(ce)),a.onMouseDown(()=>k()),a.onKeyDown(()=>k()),h=a.addAction({id:"custom-paste",label:"粘贴",contextMenuGroupId:"9_cutcopypaste",run:async ce=>{try{const we=await navigator.clipboard.readText();if(!we)return;ce.executeEdits("custom-paste",[{range:ce.getSelection(),text:we,forceMoveMarkers:!0}])}catch(we){console.warn("Clipboard read blocked",we)}}}),c=js.languages.registerCompletionItemProvider(iO,{triggerCharacters:["$","."],provideCompletionItems(ce,we,ye){const Pe=ce.getValueInRange(new js.Range(we.lineNumber,1,we.lineNumber,we.column)),Pt=((ye==null?void 0:ye.triggerCharacter)==="."&&!Pe.endsWith(".")?`${Pe}.`:Pe).match(/\$\.(?:[^.\s]+\.)*[^.\s]*$/);if(!Pt)return{suggestions:[]};const Ai=Pt[0].split("."),hn=Ai.pop()||"",Pr=new js.Range(we.lineNumber,we.column-hn.length,we.lineNumber,we.column),jn=Ai.slice(1),Lr=jn.length?x(y.value||{},jn):y.value||{};return!Lr||typeof Lr!="object"?{suggestions:[]}:{suggestions:Object.keys(Lr).filter(Bl=>Bl!=="$").map(Bl=>({label:Bl,kind:js.languages.CompletionItemKind.Value,insertText:Bl,range:Pr}))}}}),l=js.editor.create(o.value,{value:D(b.value),language:"json",theme:"vs-dark",automaticLayout:!0,minimap:{enabled:!1},fontSize:13,readOnly:!0,contextmenu:!1}),l.onContextMenu(ce=>{ce.event.preventDefault(),ce.event.stopPropagation(),z(ce)}),a.updateOptions({contextmenu:!1}),a.onContextMenu(ce=>{K(ce)}),a.addCommand(js.KeyMod.CtrlCmd|js.KeyCode.KeyC,()=>Y()),a.addCommand(js.KeyMod.CtrlCmd|js.KeyCode.KeyX,()=>q()),a.addCommand(js.KeyMod.CtrlCmd|js.KeyCode.KeyV,()=>Z()),f=a.onDidType(ce=>{if(ce!==".")return;const we=a.getModel();if(!we)return;const ye=a.getPosition();if(!ye)return;const Pe=we.getValueInRange(new js.Range(ye.lineNumber,1,ye.lineNumber,ye.column));/\$\.(?:[^.\s]+\.)*[^.\s]*$/.test(Pe)&&(a.trigger("globals-suggest","editor.action.hideSuggestWidget",{}),a.trigger("globals-suggest","editor.action.triggerSuggest",{}))}),a.onDidChangeModelContent(()=>{try{const ce=a.getValue();i("update:rule",ce)}catch{}}),document.addEventListener("click",E),document.addEventListener("click",k),ke()}),w.watch(()=>t.rule,ce=>{if(!a)return;const we=ce||"";a.getValue()!==we&&a.setValue(we)}),w.watch(b,ce=>{l&&l.setValue(D(ce)),ke()}),w.onBeforeUnmount(()=>{a==null||a.dispose(),l==null||l.dispose(),c==null||c.dispose(),h==null||h.dispose(),f==null||f.dispose(),g.value.visible=!1,document.removeEventListener("click",E),document.removeEventListener("click",k)});const ke=()=>{v.value=L()};return(ce,we)=>(w.openBlock(),w.createElementBlock("div",{class:"json-rule-editor",ref_key:"rootRef",ref:r},[we[1]||(we[1]=w.createElementVNode("div",{class:"editor-header"},[w.createElementVNode("span",null,"数据 JSON(右键选取字段为变量)")],-1)),w.createElementVNode("div",{ref_key:"dataEditorContainer",ref:o,class:"monaco-pane slim"},null,512),_.value.visible?(w.openBlock(),w.createElementBlock("div",{key:0,class:"context-menu",style:w.normalizeStyle({left:_.value.x+"px",top:_.value.y+"px"})},[w.createElementVNode("div",{class:"menu-item",onClick:P},"复制属性"),w.createElementVNode("div",{class:"menu-item",onClick:R},"复制值"),w.createElementVNode("div",{class:"menu-item",onClick:W},"复制属性路径"),w.createElementVNode("div",{class:"menu-item",onClick:T},"设置为变量(并插入解析函数)"),we[0]||(we[0]=w.createElementVNode("div",{class:"menu-item disabled"},"设置为全局变量(待实现)",-1))],4)):w.createCommentVNode("",!0),we[2]||(we[2]=w.createElementVNode("div",{class:"editor-header",style:{"margin-top":"8px"}},[w.createElementVNode("span",null,"解析函数")],-1)),w.createElementVNode("div",{ref_key:"editorContainer",ref:s,class:"monaco-pane"},null,512),g.value.visible?(w.openBlock(),w.createElementBlock("div",{key:1,class:"context-menu",style:w.normalizeStyle({left:g.value.x+"px",top:g.value.y+"px"})},[w.createElementVNode("div",{class:"menu-item",onClick:q},"剪切"),w.createElementVNode("div",{class:"menu-item",onClick:Y},"复制"),w.createElementVNode("div",{class:"menu-item",onClick:Z},"粘贴"),w.createElementVNode("div",{class:"menu-item",onClick:ee},"格式化")],4)):w.createCommentVNode("",!0),w.createElementVNode("div",Aci,[w.createElementVNode("div",null,[w.createElementVNode("button",{class:"ghost-btn",type:"button",onClick:ke},"运行测试"),w.createElementVNode("span",Rci,w.toDisplayString(v.value),1),m.value?(w.openBlock(),w.createElementBlock("span",Pci,"错误:"+w.toDisplayString(m.value),1)):w.createCommentVNode("",!0)]),w.createElementVNode("button",{class:"ghost-btn",type:"button",onClick:Ge},"确认生效")]),we[3]||(we[3]=w.createElementVNode("div",{class:"helper"},[w.createElementVNode("div",{class:"helper-title"},"使用方式"),w.createElementVNode("p",null,"data 为当前JSON数据,$ 为全局变量对象;在下方函数里对$.提示的节点选项赋值。")],-1))],512))}},[["__scopeId","data-v-f13c4235"]]),Fci={class:"dataBox"},Bci={style:{padding:"10px 0","margin-bottom":"10px"}},Wci={style:{padding:"10px 0","margin-bottom":"10px"}},Hci={class:"param-table"},zci={class:"param-table__toolbar"},$ci={style:{padding:"10px 0"}},Uci={style:{padding:"10px 0","margin-bottom":"10px"}},Gci={key:3,style:{padding:"10px 0","margin-bottom":"10px"}},jci=Yn({__name:"data",setup(n){const e=Ds(),t=w.inject("getCurCell")(),i=w.inject("topoApi"),r=w.inject("storage"),s=w.ref(t.getData()),o=w.ref(s.value.dataSource.parse||""),a=w.ref(!1),l=w.ref(s.value.dataSource);Array.isArray(l.value.params)||(l.value.params=[]);const c=w.ref([]),h=w.computed(()=>{const x={};return c.value.forEach(L=>{if(l.value.bindNode.includes(L.value)){let D=e.graph.getCellById(L.value);const E={};Object.keys(D.getData().dataSource.fields).forEach(T=>{E[T]=null}),x[L.label]=E}}),x});(()=>{const x=[];e.graph.toJSON().cells.forEach(D=>{D.data&&D.data.name&&x.push({value:D.id,label:D.data.name})}),c.value=x})();const u=w.ref(null),f=w.ref({}),g=async()=>{if(u.value===null&&(l.value.type==="opcua"||l.value.type==="http"))return vn.ElMessage.error("请获取数据!"),!1;l.value.type==="opcua"&&(f.value={payload:u.value,pointTemp:s.value.dataSource.point}),l.value.type==="http"&&(f.value=u.value),l.value.type==="node"&&(f.value={}),a.value=!0},p=()=>{u.value=null},m=async()=>{if(!l.value.path)return vn.ElMessage.error("请输入点位地址!"),!1;const x=await i.readPoints([l.value.path]);console.log(x),u.value=x[0]||{error:"未找到数据"}},v=()=>{let x=r.getItem("copyOpcuaNode");x?(console.log("copyOpcuaNode",x),l.value.path=x.nodeId,l.value.point={...x}):vn.ElMessage.warning("请在左侧数据来源中复制"),r.removeItem("copyOpcuaNode")},_=()=>{l.value.params.push({key:"",value:""})},b=x=>{l.value.params.splice(x,1)},y=async()=>{var E,k;if(!l.value.httpUrl)return vn.ElMessage.error("请输入请求地址"),!1;let x=JSON.parse(JSON.stringify(l.value));delete x.params;const L={};for(let T of l.value.params)if(T.key)T.value&&e.graph.getCellById(T.value)?L[T.key]=(k=(E=e.graph.getCellById(T.value).getData())==null?void 0:E.model)==null?void 0:k.modelValue:L[T.key]=T.value;else return vn.ElMessage.error("请完善请求参数"),!1;x.params=L;let D;try{D=await i.httpRequest({...l.value,params:L})}catch{D={error:"数据获取失败"}}u.value=D},C=()=>{var x;if(((x=l.value.bindNode)==null?void 0:x.length)==0)return vn.ElMessage.error("请选择数据关联!"),!1;if(u.value===null&&(l.value.type==="opcua"||l.value.type==="http"))return vn.ElMessage.error("请获取数据!"),!1;if(o.value)try{const L=new Function("data","$",o.value);l.value.type=="opcua"?L({payload:u.value,pointTemp:s.value.dataSource.point},h.value):l.value.type=="http"?L(u.value,h.value):l.value.type=="node"&&L({},h.value);const D=e.graph.toJSON().cells;for(let E in h.value){let k=D.find(T=>T.data.name===E);if(k){k=e.graph.getCellById(k.id);const T=h.value[E],I=k.data.dataSource.fields;Object.keys(T).forEach(N=>{if(T[N]!==null){const M=I[N],P=T[N];k.setData(R3(k.getData(),M,P),{deep:!1})}})}}t.setData({dataSource:{parse:o.value}}),a.value=!1,vn.ElMessage.success("解析成功!")}catch(L){vn.ElMessage.error("解析失败!"),console.error(L)}else vn.ElMessage.error("请填写解析函数!")};return(x,L)=>{const D=w.resolveComponent("el-option"),E=w.resolveComponent("el-select"),k=w.resolveComponent("el-form-item"),T=w.resolveComponent("el-input"),I=w.resolveComponent("el-button"),N=w.resolveComponent("el-radio"),M=w.resolveComponent("el-radio-group"),P=w.resolveComponent("el-table-column"),R=w.resolveComponent("el-table"),W=w.resolveComponent("el-form"),$=w.resolveComponent("el-dialog");return w.openBlock(),w.createElementBlock("div",Fci,[w.createVNode(W,{class:"panelList",size:"small"},{default:w.withCtx(()=>[w.createVNode(k,{label:"数据类型"},{default:w.withCtx(()=>[w.createVNode(E,{modelValue:l.value.type,"onUpdate:modelValue":L[0]||(L[0]=z=>l.value.type=z),onChange:p},{default:w.withCtx(()=>[w.createVNode(D,{value:"none",label:"无"}),w.createVNode(D,{value:"opcua",label:"OPCUA点位"}),w.createVNode(D,{value:"http",label:"HTTP接口"}),w.createVNode(D,{value:"node",label:"修改节点"}),w.createVNode(D,{value:"mock",label:"Mock模拟"})]),_:1},8,["modelValue"])]),_:1}),l.value.type!=="none"?(w.openBlock(),w.createBlock(k,{key:0,label:"修改节点"},{default:w.withCtx(()=>[w.createVNode(E,{modelValue:l.value.bindNode,"onUpdate:modelValue":L[1]||(L[1]=z=>l.value.bindNode=z),multiple:"","collapse-tags":"",filterable:"",placeholder:"请选择节点关联"},{default:w.withCtx(()=>[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(c.value,(z,K)=>(w.openBlock(),w.createBlock(D,{value:z.value,label:z.label,key:K},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1})):w.createCommentVNode("",!0),l.value.type==="opcua"?(w.openBlock(),w.createElementBlock(w.Fragment,{key:1},[w.createVNode(k,{label:"点位地址",style:{display:"flex"}},{default:w.withCtx(()=>[w.createVNode(T,{modelValue:l.value.path,"onUpdate:modelValue":L[2]||(L[2]=z=>l.value.path=z),style:{width:"140px","margin-right":"10px"}},null,8,["modelValue"]),w.createVNode(I,{type:"primary",onClick:v},{default:w.withCtx(()=>[...L[11]||(L[11]=[w.createTextVNode("填充",-1)])]),_:1})]),_:1}),w.createElementVNode("div",Bci,[w.createVNode(I,{type:"primary",style:{width:"100%"},onClick:m},{default:w.withCtx(()=>[...L[12]||(L[12]=[w.createTextVNode("获取数据",-1)])]),_:1})]),w.createVNode(_L,{modelValue:u.value,"onUpdate:modelValue":L[3]||(L[3]=z=>u.value=z),style:{height:"400px"}},null,8,["modelValue"]),w.createElementVNode("div",Wci,[w.createVNode(I,{type:"primary",style:{width:"100%"},onClick:g},{default:w.withCtx(()=>[...L[13]||(L[13]=[w.createTextVNode("数据解析",-1)])]),_:1})])],64)):w.createCommentVNode("",!0),l.value.type==="http"?(w.openBlock(),w.createElementBlock(w.Fragment,{key:2},[w.createVNode(k,{label:"接口类型"},{default:w.withCtx(()=>[w.createVNode(M,{modelValue:l.value.httpType,"onUpdate:modelValue":L[4]||(L[4]=z=>l.value.httpType=z)},{default:w.withCtx(()=>[w.createVNode(N,{value:"GET"},{default:w.withCtx(()=>[...L[14]||(L[14]=[w.createTextVNode("GET",-1)])]),_:1}),w.createVNode(N,{value:"POST"},{default:w.withCtx(()=>[...L[15]||(L[15]=[w.createTextVNode("POST",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),w.createVNode(k,{label:"接口地址"},{default:w.withCtx(()=>[w.createVNode(T,{modelValue:l.value.httpUrl,"onUpdate:modelValue":L[5]||(L[5]=z=>l.value.httpUrl=z),autosize:{minRows:2,maxRows:4},type:"textarea"},null,8,["modelValue"])]),_:1}),w.createVNode(k,{label:"请求频率"},{default:w.withCtx(()=>[w.createVNode(E,{modelValue:l.value.httpTimer,"onUpdate:modelValue":L[6]||(L[6]=z=>l.value.httpTimer=z)},{default:w.withCtx(()=>[w.createVNode(D,{value:-1,label:"不触发"}),w.createVNode(D,{value:0,label:"加载时触发一次"}),w.createVNode(D,{value:5,label:"5秒"}),w.createVNode(D,{value:10,label:"10秒"}),w.createVNode(D,{value:20,label:"20秒"}),w.createVNode(D,{value:30,label:"30秒"}),w.createVNode(D,{value:60,label:"1分钟"}),w.createVNode(D,{value:900,label:"15分钟"}),w.createVNode(D,{value:1800,label:"30分钟"})]),_:1},8,["modelValue"])]),_:1}),w.createElementVNode("div",Hci,[w.createElementVNode("div",zci,[L[17]||(L[17]=w.createElementVNode("div",null,"请求参数",-1)),w.createVNode(I,{size:"small",type:"primary",plain:"",onClick:_},{default:w.withCtx(()=>[...L[16]||(L[16]=[w.createTextVNode("新增参数",-1)])]),_:1})]),w.createVNode(R,{data:l.value.params,size:"small",border:"",height:"180"},{default:w.withCtx(()=>[w.createVNode(P,{prop:"key",label:"字段名"},{default:w.withCtx(({row:z})=>[w.createVNode(T,{modelValue:z.key,"onUpdate:modelValue":K=>z.key=K,placeholder:"字段名"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),w.createVNode(P,{prop:"value",label:"值"},{default:w.withCtx(({row:z})=>[w.createVNode(E,{modelValue:z.value,"onUpdate:modelValue":K=>z.value=K,modelModifiers:{trim:!0},filterable:"","allow-create":"","default-first-option":"",placeholder:"值"},{default:w.withCtx(()=>[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(c.value,(K,Y)=>(w.openBlock(),w.createBlock(D,{value:K.value,label:K.label,key:Y},null,8,["value","label"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue"])]),_:1}),w.createVNode(P,{label:"操作",width:"60"},{default:w.withCtx(({$index:z})=>[w.createVNode(I,{link:"",type:"danger",onClick:K=>b(z)},{default:w.withCtx(()=>[...L[18]||(L[18]=[w.createTextVNode("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])]),w.createElementVNode("div",$ci,[w.createVNode(I,{type:"primary",style:{width:"100%"},onClick:y},{default:w.withCtx(()=>[...L[19]||(L[19]=[w.createTextVNode("获取数据",-1)])]),_:1})]),w.createVNode(_L,{modelValue:u.value,"onUpdate:modelValue":L[7]||(L[7]=z=>u.value=z),style:{height:"300px"}},null,8,["modelValue"]),w.createElementVNode("div",Uci,[w.createVNode(I,{type:"primary",style:{width:"100%"},onClick:g},{default:w.withCtx(()=>[...L[20]||(L[20]=[w.createTextVNode("数据解析",-1)])]),_:1})])],64)):w.createCommentVNode("",!0),l.value.type==="node"?(w.openBlock(),w.createElementBlock("div",Gci,[w.createVNode(I,{type:"primary",style:{width:"100%"},onClick:g},{default:w.withCtx(()=>[...L[21]||(L[21]=[w.createTextVNode("数据解析",-1)])]),_:1})])):w.createCommentVNode("",!0),l.value.type==="mock"?(w.openBlock(),w.createBlock(_L,{key:4,modelValue:s.value,"onUpdate:modelValue":L[8]||(L[8]=z=>s.value=z),style:{height:"600px"}},null,8,["modelValue"])):w.createCommentVNode("",!0)]),_:1}),w.createVNode($,{modelValue:a.value,"onUpdate:modelValue":L[10]||(L[10]=z=>a.value=z),title:"实时数据解析",width:"800","align-center":""},{default:w.withCtx(()=>[w.createVNode(Vci,{"model-value":f.value,rule:o.value,"onUpdate:rule":L[9]||(L[9]=z=>o.value=z),globals:h.value,onClose:C},null,8,["model-value","rule","globals"])]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-aad025ed"]]),qci={class:"prop"},Kci={class:"tabContainer"},Yci=["onClick"],Xci={class:"activeLine"},Zci={key:0,class:"main"},Jci=Yn({__name:"index",setup(n){const e=Ds(),t=mL(),{targetType:i,tabs:r,activeTab:s,cellId:o}=Fg.storeToRefs(t),a=h=>{s.value=h};let l=o.value?e.graph.getCellById(o.value):null;w.provide("getCurCell",()=>l),w.provide("cellId",o);const c=w.ref(!0);return w.watch(o,()=>{l=e.graph.getCellById(o.value),c.value=!1,w.nextTick(()=>{c.value=!0})}),(h,d)=>(w.openBlock(),w.createElementBlock("div",qci,[w.createElementVNode("div",Kci,[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(w.unref(r),(u,f)=>(w.openBlock(),w.createElementBlock("div",{key:f,class:w.normalizeClass(["tabItem",{active:w.unref(s)===f}]),onClick:g=>a(f)},[w.createTextVNode(w.toDisplayString(u)+" ",1),w.withDirectives(w.createElementVNode("div",Xci,null,512),[[w.vShow,w.unref(s)===f]])],10,Yci))),128))]),c.value?(w.openBlock(),w.createElementBlock("div",Zci,[w.unref(i)==="blank"?(w.openBlock(),w.createElementBlock(w.Fragment,{key:0},[w.unref(s)===0?(w.openBlock(),w.createBlock(Xxt,{key:0})):w.createCommentVNode("",!0)],64)):(w.openBlock(),w.createElementBlock(w.Fragment,{key:1},[w.unref(s)===0?(w.openBlock(),w.createBlock($It,{key:0})):w.unref(s)===1?(w.openBlock(),w.createBlock(jci,{key:1})):w.createCommentVNode("",!0)],64))])):w.createCommentVNode("",!0)]))}},[["__scopeId","data-v-8ea97b3c"]]),Qci={class:"ems-editor"},ehi={class:"ems-editor__workspace"},Efe=Object.assign({name:"EmsEditor"},{__name:"index",props:{services:{type:Object,default:()=>({})},width:{type:Number,default:1920},height:{type:Number,default:1080}},emits:["ready","exit"],setup(n,{emit:e}){const t=vL(),i=mL(),r=Ds(),s=n,o={setItem(l,c){c!==void 0&&window.localStorage.setItem(l,JSON.stringify(c))},getItem(l){let c=window.localStorage.getItem(l);return JSON.parse(c)},removeItem(l){window.localStorage.removeItem(l)},clear(){window.localStorage.clear()}},a={async getAllMenus(){var c;let l=[];return(c=s.services)!=null&&c.getAllMenus?l=await s.services.getAllMenus()||[]:l=o.getItem("menus")||[{id:"1",parentId:"0",name:"首页",children:[{id:crypto.randomUUID(),parentId:"1",name:"首页概览",style:{},value:{}}]}],o.setItem("menus",l),l},async getMenu(l){var c;if((c=s.services)!=null&&c.getMenu)return await s.services.getMenu(l)||{};{let h=o.getItem("menus")||[];for(let d of h)if(d.children){for(let u of d.children)if(u.id===l)return u}return{}}},async addMenu({parent:l,parentNameNew:c,name:h}){var d;if((d=s.services)!=null&&d.addMenu)return await s.services.addMenu({parent:l,parentNameNew:c,name:h});{let u=o.getItem("menus")||[],f=null,g=crypto.randomUUID(),p="";if(l==="0")p=crypto.randomUUID(),f={name:h,id:g,parentId:p,style:{},value:{}},u.push({name:c,id:p,parentId:"0",children:[f]});else{const m=u.find(v=>v.id===l);m&&(p=m.id,m.children.push({name:h,id:g,parentId:p,style:{},value:{}}),f={name:h,id:g,parentId:p,style:{},value:{}})}return o.setItem(g,f),o.setItem("menus",u),f}},async saveMenus(l){var h;const c=await this.getMenu(l.id);if(c&&(c.name=l.name,c.style=l.style,c.value=l.value),(h=s.services)!=null&&h.saveMenus)await s.services.saveMenus(l);else{let d=o.getItem("menus")||[];for(let u of d){const f=u.children.findIndex(g=>g.id===l.id);f>-1&&(u.children[f]=l)}o.setItem("menus",d),o.setItem(l.id,l)}},async removeMenu(l){var c;if((c=s.services)!=null&&c.removeMenu)await s.services.removeMenu(l);else{let h=o.getItem("menus")||[];if(this.getMenu(l)){const u=h.find(f=>{var g;return(g=f.children)==null?void 0:g.some(p=>p.id===l)});u&&(u.children=u.children.filter(f=>f.id!==l),u.children.length===0&&(h=h.filter(f=>f.id!==u.id))),o.setItem("menus",h)}o.removeItem(l)}},async getDeviceList(){var c;let l=[];if((c=s.services)!=null&&c.getDeviceList)l=await s.services.getDeviceList();else{const h=[{id:"2010960121314734082",deviceName:"干接点",deviceType:"OTHERS",deviceNo:"DIDO",templateName:"DIDO_test.json",templateId:"2010957702564474882",pointList:[{id:"2010957702568669185",templateId:"2010957702564474882",tag:"en_sts",name:"122",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0001, uint, AB]",description:"0:失能;1:启动使能;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863489",templateId:"2010957702564474882",tag:"connect_statu",name:"电网闸",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0002, uint, AB]",description:"0:断开;1:闭合;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863490",templateId:"2010957702564474882",tag:"icb_sign",name:"外源断路器反馈信号",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0003, uint, AB]",description:"0:断开;1:合闸;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863491",templateId:"2010957702564474882",tag:"icb_ctrl",name:"外源断路器合闸控制",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0004, uint, AB]",description:"0:断开;1:合闸;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863492",templateId:"2010957702564474882",tag:"lcb_sign",name:"负载断路器反馈信号",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0005, uint, AB]",description:"0:断开;1:合闸;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863493",templateId:"2010957702564474882",tag:"lcb_ctrl",name:"负载断路器合闸控制",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0006, uint, AB]",description:"0:断开;1:合闸;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863494",templateId:"2010957702564474882",tag:"dg_sign",name:"发动机启停状态",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0007, uint, AB]",description:"0:停止;1:启动;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863495",templateId:"2010957702564474882",tag:"dg_ctrl",name:"发动机控制",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0008, uint, AB]",description:"0:停止;1:启动;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863496",templateId:"2010957702564474882",tag:"ats",name:"ATS反馈信号",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0009, uint, AB]",description:"0:合闸柴发;1:合闸电网;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null}]}];for(const d of h){const u=d.pointList;u&&Array.isArray(u)&&u.length>0&&l.push({id:d.id,label:d.deviceName,data:d,children:u.map(f=>({id:f.id,label:f.name,data:{...f,nodeId:`ns=1;s=${d.deviceType}.${f.tag}`}}))})}}return l},async readPoints(l){var c,h;return(c=s.services)!=null&&c.readPoints?await((h=s.services)==null?void 0:h.readPoints(l)):[{nodeId:"ns=1;s=PV.RatReActivePowerPer",value:1,statusCode:"Good",sourceTimestamp:"2026-01-16T02:26:37.533Z",serverTimestamp:"2026-01-16T02:26:37.533Z",aa:[{vv:1},{vv1:1}]}]},async httpRequest(l){var c,h;return(c=s.services)!=null&&c.httpRequest?await((h=s.services)==null?void 0:h.httpRequest(l)):{}}};return w.provide("topoApi",a),w.provide("storage",o),w.onMounted(()=>{}),w.onBeforeUnmount(()=>{t.$reset(),i.$reset(),r.$reset()}),(l,c)=>(w.openBlock(),w.createElementBlock("div",Qci,[w.createElementVNode("div",ehi,[w.createVNode(Kxt),w.createVNode(mxt,{width:s.width,height:s.height},null,8,["width","height"]),w.createVNode(Jci)])]))}}),thi={class:"previewBox"},Rze=Yn({__name:"preview",props:{menu:{type:Object,required:!0},service:{type:Object,required:!0}},setup(n){const e=n,t=e.service,i={setItem(u,f){f!==void 0&&window.localStorage.setItem(u,JSON.stringify(f))},getItem(u){let f=window.localStorage.getItem(u);return JSON.parse(f)},removeItem(u){window.localStorage.removeItem(u)},clear(){window.localStorage.clear()}},r=w.ref(null);let s=null;const o=mG();let a=[],l=[];const c=(u,f)=>{var m;const g=s.getCellById(f);if(!g)return console.warn(f,s.toJSON()),!1;const p=g.getData();if(g&&p)if(p.dataSource.parse){let v={};(m=p.dataSource.bindNode)==null||m.forEach(y=>{const x=s.getCellById(y).getData().dataSource.fields;v[s.getCellById(y).getData().name]=Object.keys(x).reduce((L,D)=>(L[D]=null,L),{})});const _=new Function("data","$",p.dataSource.parse);p.dataSource.type=="opcua"?_({payload:u,pointTemp:p.dataSource.point},v):p.dataSource.type=="http"&&_(u,v);const b=s.toJSON().cells;for(let y in v){let C=b.find(x=>{var L;return((L=x==null?void 0:x.data)==null?void 0:L.name)===y});if(C){C=s.getCellById(C.id);const x=C.data.dataSource.fields,L=v[y];Object.keys(L).forEach(D=>{if(L[D]!==null){const E=x[D],k=L[D];C.setData(R3(C.getData(),E,k),{deep:!1})}})}}}else g.setData({text:u.value+""||"--"})},h=u=>{var f,g;if(u.params&&Array.isArray(u.params)&&u.params.length>0){let p=JSON.parse(JSON.stringify(u));delete p.params;const m={};for(let v of u.params)v.key&&(v.value&&s.getCellById(v.value)?m[v.key]=(g=(f=s.getCellById(v.value).getData())==null?void 0:f.model)==null?void 0:g.modelValue:m[v.key]=v.value);return p.params=m,p}return u},d=u=>{if(!u.cells)return!1;a.length>0&&(t.unsubscribe(a.map(g=>g.nodeId)),a=[]),l.length>0&&(l.forEach(g=>{clearInterval(g.timer),g.timer=null}),l=[]);for(let g of u.cells)if(g.data&&g.data.dataSource&&g.data.dataSource.type!=="none"){const p=h(g.data.dataSource);if(p.type=="opcua"&&p.path&&p.parse)try{t.readPoints([p.path]).then(m=>{m&&m.length>0&&c(m[0],g.id)}),a.push({nodeId:p.path,cellId:g.id,callBack:(m,v)=>c(m,v)})}catch(m){ElMessage.error("解析失败!"),console.error(m)}if(p.type=="http"&&p.httpUrl)try{p.httpTimer>-1&&(t.httpRequest(p).then(m=>{m&&p.parse&&c(m,g.id)}),p.httpTimer>0&&l.push({nodeId:g.id,dataSource:p,timer:null}))}catch(m){ElMessage.error("解析失败!"),console.log(m)}}const f=a.map(g=>g.nodeId);f.length!==0&&(t.subscribe(f),t.onEvent(g=>{g.event==="data-changed"&&g.payload&&g.payload.nodeId&&a.forEach((p,m)=>{p.nodeId==g.payload.nodeId&&a[m].callBack(g.payload,p.cellId)})})),l.forEach(g=>{const p=setInterval(()=>{t.httpRequest(g.dataSource).then(m=>{m&&g.dataSource.parse&&c(m,g.nodeId)})},g.dataSource.httpTimer*1e3);g.timer=p})};return w.provide("topoApi",t),w.provide("storage",i),w.provide("graph",()=>s),w.watch(()=>e.menu,u=>{s&&(s.clearCells(),s.resize(u.style.width,u.style.height),s.fromJSON(u.value),s.drawBackground({color:u.style.backgroundColor,image:u.style.backgroundImage,size:"cover"}),d(u.value))},{deep:!0}),w.onMounted(()=>{const{width:u,height:f}=e.menu.style;s=new be({container:r.value,width:u,height:f,interacting:!1,selecting:!1,keyboard:!1,mousewheel:!1,panning:!1}),zZ(),s.fromJSON(e.menu.value),s.drawBackground({color:e.menu.style.backgroundColor,image:e.menu.style.backgroundImage,size:"cover"})}),w.onBeforeUnmount(()=>{a.length>0&&(t.unsubscribe(a.map(u=>u.path)),a=[]),l.length>0&&(l.forEach(u=>{clearInterval(u.timer),u.timer=null}),l=[]),s&&s.dispose()}),(u,f)=>(w.openBlock(),w.createElementBlock("div",thi,[w.createElementVNode("div",{ref_key:"container",ref:r,class:"ems-preview"},null,512),w.createVNode(w.unref(o))]))}},[["__scopeId","data-v-2f75cf45"]]);window._iconfont_svg_string_5087053='<svg><symbol id="icon-radio-on-full" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" ></path></symbol><symbol id="icon-bingtu" viewBox="0 0 1024 1024"><path d="M912.8 311.2C943.2 372 960 440 960 512c0 247.2-200.8 448-448 448S64 759.2 64 512 264 64 512 64v478.4l400.8-231.2zM576 62.4v363.2l304-175.2c-69.6-99.2-178.4-169.6-304-188z" ></path></symbol><symbol id="icon-zhexiantu" viewBox="0 0 1024 1024"><path d="M56.888889 938.666667V56.888889h56.888889v853.333333h853.333333v56.888889H56.888889z" fill="#333333" ></path><path d="M193.422222 648.533333l-45.511111-45.511111L398.222222 358.4l199.111111 199.111111 347.022223-352.711111 45.511111 45.511111-392.533334 386.844445L398.222222 438.044444z" fill="#333333" ></path></symbol><symbol id="icon-biaodanzujian-shurukuang" viewBox="0 0 1024 1024"><path d="M635.328 736a32 32 0 0 0-32-32H96V352h507.2a32 32 0 1 0 0-64H64a32 32 0 0 0-32 32v416a32 32 0 0 0 32 32h539.328a32 32 0 0 0 32-32zM960 288h-92.928a32 32 0 1 0 0 64H928v352h-60.288a32 32 0 1 0 0 64H960a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32z" ></path><path d="M832.672 848H768v-640h64.288a32 32 0 1 0 0-64H639.36a32 32 0 1 0 0 64H704v640h-64.64a32 32 0 1 0 0 64h193.28a32 32 0 1 0 0.032-64z" ></path></symbol><symbol id="icon-biaodanzujian-biaoge" viewBox="0 0 1024 1024"><path d="M96 160v704h832V160H96z m309.344 400.192v-160h192v160h-192z m192 64V800h-192v-175.808h192zM160 400.192h181.344v160H160v-160z m501.344 0H864v160h-202.656v-160zM864 224v112.192H160V224h704zM160 624.192h181.344V800H160v-175.808zM661.344 800v-175.808H864V800h-202.656z" ></path></symbol><symbol id="icon-biaodanzujian-xialakuang" viewBox="0 0 1024 1024"><path d="M960 128H64a32 32 0 0 0-32 32v416a32 32 0 0 0 32 32h896a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32z m-32 416H96V192h832v352zM896 647.264a32 32 0 0 0-32 32V832H160v-152.736a32 32 0 1 0-64 0V864a32 32 0 0 0 32 32h768a32 32 0 0 0 32-32v-184.736a32 32 0 0 0-32-32z" ></path><path d="M685.92 470.368a31.904 31.904 0 0 0 45.728 0l123.232-126.016a31.968 31.968 0 1 0-45.76-44.736l-100.352 102.624-100.384-102.624a32 32 0 0 0-45.76 44.736l123.296 126.016z" ></path></symbol><symbol id="icon-biaodanzujian-anniu" viewBox="0 0 1024 1024"><path d="M960 128H64a32 32 0 0 0-32 32v576a32 32 0 0 0 32 32h265.792a32 32 0 1 0 0-64H96V192h832v512h-68.192a32 32 0 1 0 0 64H960a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32z" ></path><path d="M600.704 624.128a32 32 0 0 0-44.416-1.6l-61.792 55.392-12.576-239.84 237.408 28.288-48.352 45.088a32 32 0 1 0 43.616 46.816l98.784-92.128a32 32 0 0 0-18.016-55.2l-343.616-40.928a32 32 0 0 0-35.712 33.44l18.048 344.576a32 32 0 0 0 53.312 22.112l88.64-79.424 192.544 199.648a31.968 31.968 0 1 0 46.048-44.416l-213.92-221.824z" ></path></symbol><symbol id="icon-gongyezujian-yibiaopan" viewBox="0 0 1024 1024"><path d="M512 128C264.96 128 64 328.96 64 576c0 100.544 32.544 195.52 94.08 274.688a31.968 31.968 0 1 0 50.528-39.232A380.384 380.384 0 0 1 128 576C128 364.256 300.256 192 512 192s384 172.256 384 384c0 86.144-27.872 167.584-80.64 235.456a31.904 31.904 0 0 0 5.632 44.864 31.84 31.84 0 0 0 44.864-5.632A443.264 443.264 0 0 0 960 576c0-247.04-200.96-448-448-448z" ></path><path d="M512 352a32 32 0 0 0 32-32V256a32 32 0 1 0-64 0v64a32 32 0 0 0 32 32zM241.888 421.472a32 32 0 1 0-35.776 53.056l53.056 35.776a31.936 31.936 0 0 0 44.416-8.64 32 32 0 0 0-8.64-44.416l-53.056-35.776zM810.848 423.936a32 32 0 0 0-45.152-3.168l-48.32 41.984a32 32 0 0 0 41.984 48.32l48.32-41.984a32 32 0 0 0 3.168-45.152zM607.392 736c0-2.592 0.288-5.12-0.352-7.744l-64-256c-0.352-1.44-1.28-2.496-1.824-3.84-0.864-2.144-1.632-4.256-2.944-6.176-1.12-1.664-2.528-2.944-3.904-4.352-1.504-1.536-2.912-3.008-4.704-4.224-1.76-1.184-3.712-1.888-5.664-2.688-1.44-0.608-2.624-1.6-4.224-1.984-0.512-0.128-0.992 0.032-1.504-0.064-2.048-0.416-4.128-0.288-6.272-0.288-2.112 0-4.192-0.128-6.24 0.288-0.512 0.096-1.024-0.064-1.536 0.064-1.632 0.416-2.848 1.44-4.352 2.08-1.888 0.8-3.744 1.472-5.472 2.592-1.888 1.248-3.36 2.816-4.928 4.384-1.344 1.344-2.656 2.592-3.744 4.192-1.312 1.92-2.08 4-2.944 6.144-0.544 1.344-1.472 2.432-1.856 3.872l-64 256c-0.672 2.624-0.352 5.184-0.352 7.744H416c0 1.408 0.352 2.688 0.416 4.096l0.128 1.312C419.424 791.776 460.928 832 512 832s92.576-40.224 95.456-90.592l0.128-1.312c0.064-1.376 0.416-2.688 0.416-4.096h-0.608zM512 768a31.808 31.808 0 0 1-31.552-29.824L512 611.904l31.552 126.24A31.776 31.776 0 0 1 512 768z" ></path></symbol><symbol id="icon-tubiao-qiapian" viewBox="0 0 1024 1024"><path d="M928 160H96a32 32 0 0 0-32 32v672a32 32 0 0 0 32 32h832a32 32 0 0 0 32-32V192a32 32 0 0 0-32-32z m-32 672H128V224h768v608z" ></path><path d="M230.592 448.096H544a32 32 0 1 0 0-64H230.592a32 32 0 0 0 0 64zM230.592 640.096H544a32 32 0 1 0 0-64H230.592a32 32 0 1 0 0 64zM768 704a32 32 0 0 0 32-32V350.016a32 32 0 1 0-64 0V672a32 32 0 0 0 32 32z" ></path></symbol><symbol id="icon-tubiao-zhexiantu" viewBox="0 0 1024 1024"><path d="M896 896H96a32 32 0 0 1-32-32V224a32 32 0 0 1 64 0v608h768a32 32 0 1 1 0 64z" ></path><path d="M247.008 640a32 32 0 0 1-20.992-56.192l200.992-174.24a32 32 0 0 1 42.272 0.288l172.128 153.44 229.088-246.304a32 32 0 0 1 46.88 43.616l-250.432 269.216a31.936 31.936 0 0 1-44.704 2.08l-174.56-155.52-179.744 155.84a31.872 31.872 0 0 1-20.928 7.776z" ></path></symbol><symbol id="icon-tubiao-zhuzhuangtu" viewBox="0 0 1024 1024"><path d="M896 896H96a32 32 0 0 1-32-32V224a32 32 0 0 1 64 0v608h768a32 32 0 1 1 0 64z" ></path><path d="M512 752.16a32 32 0 0 1-32-32V350.624a32 32 0 0 1 64 0v369.536a32 32 0 0 1-32 32zM320 752.576a32 32 0 0 1-32-32V512a32 32 0 0 1 64 0v208.576a32 32 0 0 1-32 32zM896 752.672a32 32 0 0 1-32-32V163.488a32 32 0 1 1 64 0v557.184a32 32 0 0 1-32 32zM704 752.736a32 32 0 0 1-32-32V224a32 32 0 1 1 64 0v496.736a32 32 0 0 1-32 32z" ></path></symbol><symbol id="icon-riqifanwei" viewBox="0 0 1024 1024"><path d="M213.333333 138.666667V213.333333h-21.333333a52.565333 52.565333 0 0 0-53.333333 51.712v568.576c0 28.586667 23.893333 51.712 53.333333 51.712h640a52.565333 52.565333 0 0 0 53.333333-51.712V265.045333A52.565333 52.565333 0 0 0 832 213.333333H810.666667v-74.666666h37.376c61.781333 0 111.957333 49.066667 111.957333 109.482666v602.368c0 60.416-50.176 109.482667-112.042667 109.482667H176.128c-61.866667 0-112.042667-49.066667-112.042667-109.482667V248.149333c0-60.416 50.176-109.482667 112.042667-109.482666H213.333333zM363.690667 362.666667v307.797333h73.642666v65.536h-221.866666v-65.536h74.069333V446.293333l-76.202667 19.114667v-67.584l150.357334-35.157333z m373.333333 0v307.797333H810.666667v65.536H588.8v-65.536h74.069333V446.293333l-76.202666 19.114667v-67.584l150.357333-35.157333zM586.666667 512v74.666667h-149.333334V512h149.333334zM736 64v224H661.333333V64h74.666667zM362.666667 64v224h-74.666667V64h74.666667z m224 74.666667V213.333333h-149.333334v-74.666666h149.333334z" fill="#5271FF" ></path></symbol><symbol id="icon-riqikuang" viewBox="0 0 1024 1024"><path d="M597 597h255v255H597z" ></path><path d="M937 87h-85V2H724.5v85h-425V2H172v85H87c-46.9 0-85 38.1-85 85v765c0 46.9 38.1 85 85 85h850c46.9 0 85-38.1 85-85V172c0-46.9-38.1-85-85-85z m0 850H87V342h850v595z" ></path></symbol><symbol id="icon-jiesuo1" viewBox="0 0 1024 1024"><path d="M768.25422 0q48.810328 0 94.061569 18.303873t80.333664 50.33565 56.436941 74.740814 21.354518 91.519364l0 150.49851-123.042701 0 0-122.025819q0-64.063555-36.099305-99.654419t-97.112214-35.590864q-54.911619 0-88.468719 35.590864t-33.5571 99.654419l0 124.059583-128.12711 0 0-152.532274q0-48.810328 19.320755-91.519364t53.386296-74.740814 80.333664-50.33565 101.179742-18.303873zM766.220457 693.513406l0 87.451837 0 47.793446q0 27.455809-9.660377 51.860973t-26.438928 41.692155-39.658391 27.455809-50.33565 10.168818l-514.542205 0q-27.455809 0-49.82721-9.660377t-38.641509-26.438928-24.913605-39.14995-8.643496-47.793446l0-323.368421q0-28.472691 19.829196-47.793446t46.268123-19.320755l629.449851 0q28.472691 0 47.793446 19.320755t19.320755 47.793446l0 179.988083z" ></path></symbol><symbol id="icon-jianlizuhe1" viewBox="0 0 1024 1024"><path d="M891.8 65h-632c-35.5 0-64.4 28.8-64.4 64.4v125.3h-66.3c-35.5 0-64.4 28.8-64.4 64.4v575.6c0 35.5 28.8 64.4 64.4 64.4h572.6c35.5 0 64.4-28.8 64.4-64.4v-65.3h125.6c35.5 0 64.4-28.8 64.4-64.4V129.4c0.1-35.6-28.7-64.4-64.3-64.4zM702.2 894.6v0.1c0 0.1-0.2 0.2-0.2 0.2H129.1c-0.1 0-0.2-0.2-0.2-0.2V319v-0.1c0-0.1 0.2-0.2 0.2-0.2h0.1l66.3 0.1S194 794.1 194 797.4c0 17.7 14.3 32 32 32h476.2v65.2zM259.5 129.2c0-0.1 0.2-0.2 0.2-0.2h632.2c0.1 0 0.2 0.2 0.2 0.2V765.1c0 0.1-0.2 0.2-0.2 0.2H259.5V129.2z" ></path></symbol><symbol id="icon-suoding1" viewBox="0 0 1024 1024"><path d="M860.069521 429.487623h-73.242947v-170.422692C786.826574 116.337371 670.888872 0.272064 528.240764 0.272064c-142.650515 0-258.720638 116.065307-258.720638 258.792867v170.422692H196.339779c-35.281619 0-63.879618 28.612445-63.879618 63.91814v466.606275c0 35.368294 28.597999 63.983146 63.879618 63.983147h663.79234c35.29125 0 63.821834-28.614852 63.821835-63.983147V493.405763c-0.004815-35.310511-28.590776-63.91814-63.884433-63.91814zM564.114664 738.867504v101.889098c0 4.552855-3.765556 8.388233-8.385825 8.388233h-54.91355c-4.678053 0-8.446016-3.837785-8.446017-8.388233v-101.889098c-25.800316-13.201114-43.672259-39.665939-43.672259-70.68362 0-43.888947 35.613874-79.584681 79.481153-79.584682 43.932285 0 79.548567 35.695734 79.548566 79.584682 0.062599 31.020089-17.811752 57.482507-43.612068 70.68362z m123.476036-309.379881H368.883605v-166.202091c0-87.912723 71.55278-159.501618 159.417351-159.501618s159.287337 71.588895 159.287337 159.501618l0.002407 166.202091z" ></path></symbol><symbol id="icon-xingzhuang-juxing" viewBox="0 0 1024 1024"><path d="M864 896H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h704a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zM192 832h640V192H192v640z" ></path></symbol><symbol id="icon-shuzhi" viewBox="0 0 1024 1024"><path d="M921.6 21.162667H102.4c-37.546667 0-68.266667 30.788267-68.266667 68.4032v819.950933c0 37.546667 30.72 68.334933 68.266667 68.334933h819.2c37.546667 0 68.266667-30.72 68.266667-68.266666V89.4976c0-37.546667-30.72-68.334933-68.266667-68.334933z m0 854.2208c0 20.48-13.653333 34.133333-34.133333 34.133333h-750.933334c-20.48 0-34.133333-13.653333-34.133333-34.133333V123.767467c0-20.548267 13.653333-34.2016 34.133333-34.2016h750.933334c20.48 0 34.133333 13.653333 34.133333 34.133333v751.616z" ></path><path d="M274.568533 365.704533h36.0448V658.090667h-47.9232V423.458133a165.546667 165.546667 0 0 1-66.7648 35.6352v-47.5136c13.1072-3.2768 27.0336-9.0112 41.7792-17.2032 14.7456-9.0112 27.0336-18.432 36.864-28.672z m200.2944-5.7344c28.2624 0 51.6096 8.192 70.0416 24.576 18.0224 16.384 27.0336 37.2736 27.0336 63.488 0 25.3952-9.8304 48.3328-28.672 69.2224-11.4688 12.288-31.9488 27.8528-60.6208 47.104-29.9008 19.6608-47.9232 36.864-54.4768 51.6096h144.1792v42.1888H368.366933c0-29.9008 9.4208-55.7056 29.0816-77.824 10.6496-12.288 33.1776-30.3104 67.1744-53.6576 18.8416-13.1072 31.9488-24.1664 40.1408-32.768 12.6976-14.336 19.2512-29.9008 19.2512-46.2848 0-15.9744-4.5056-27.8528-12.6976-35.6352-8.6016-7.7824-21.2992-11.4688-38.0928-11.4688-18.0224 0-31.5392 6.144-40.5504 18.432-9.0112 11.4688-13.9264 29.0816-14.7456 52.0192H370.005333c0.4096-32.768 9.8304-58.9824 28.672-79.0528 19.2512-21.2992 44.6464-31.9488 76.1856-31.9488z m244.1216 0c29.4912 0 53.6576 6.9632 71.68 21.2992 17.6128 14.336 26.624 33.9968 26.624 59.392 0 31.9488-16.384 53.248-48.7424 63.8976 17.2032 5.3248 30.72 13.1072 39.7312 23.7568a61.986133 61.986133 0 0 1 14.7456 42.5984c0 27.0336-9.4208 49.152-28.2624 66.3552-19.6608 17.6128-45.4656 26.624-77.4144 26.624-30.3104 0-54.8864-7.7824-73.3184-23.3472-20.48-17.2032-31.9488-42.5984-34.4064-75.3664h48.7424c0.8192 18.8416 6.5536 33.5872 18.0224 43.8272 10.24 9.4208 23.7568 14.336 40.5504 14.336 18.432 0 33.1776-5.3248 43.8272-15.5648a47.240533 47.240533 0 0 0 14.336-34.816c0-16.7936-5.3248-29.0816-15.1552-36.864-9.8304-8.192-24.1664-11.8784-43.008-11.8784h-20.48V488.106667h20.48c17.2032 0 30.3104-3.6864 39.3216-11.0592 8.6016-7.3728 13.1072-18.432 13.1072-32.768 0-14.336-4.096-24.9856-11.8784-32.3584-8.6016-7.3728-21.2992-11.0592-38.0928-11.0592-17.2032 0-30.3104 4.096-39.7312 12.6976-9.8304 8.6016-15.5648 21.7088-17.2032 39.3216h-47.104c2.4576-29.4912 13.1072-52.4288 32.768-68.8128 18.432-16.384 42.1888-24.1664 70.8608-24.1664z" ></path></symbol><symbol id="icon-xianduan" viewBox="0 0 1024 1024"><path d="M0.034239 975.503207L976.222236 0l48.400922 48.435162L48.435162 1023.945217z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M512.122 272.146c-247.216 0-412.027 247.216-412.027 247.216s164.811 247.216 412.027 247.216c247.216 0 412.027-247.216 412.027-247.216S759.217 272.146 512.122 272.146z m0 410.207c-90.537 0-163.962-73.424-163.962-163.962s73.424-163.962 163.962-163.962c90.537 0 163.962 73.424 163.962 163.962-0.122 90.658-73.424 163.962-163.962 163.962z m-82.406-163.476c0 21.482 8.86 42.841 24.03 58.012s36.53 24.03 58.012 24.03 42.841-8.86 58.012-24.03c15.17-15.17 24.03-36.53 24.03-58.012s-8.86-42.841-24.03-58.012c-15.17-15.17-36.53-24.03-58.012-24.03s-42.841 8.86-58.012 24.03c-15.17 15.292-24.03 36.53-24.03 58.012z" ></path></symbol><symbol id="icon-tubiao" viewBox="0 0 1024 1024"><path d="M437.996 697.519V586.722H327.195c-61.187 0-110.797 49.61-110.797 110.797 0 61.195 49.61 110.797 110.797 110.797 61.192 0 110.801-49.602 110.801-110.797z m55.399 0c0 91.789-74.411 166.195-166.2 166.195C235.41 863.714 161 789.308 161 697.519c0-91.789 74.41-166.195 166.195-166.195h166.2v166.195z m92.328 0V586.722H696.52c61.195 0 110.796 49.61 110.796 110.797 0 61.195-49.601 110.797-110.796 110.797-61.188 0-110.797-49.602-110.797-110.797z m-55.399 0c0 91.789 74.41 166.195 166.196 166.195 91.789 0 166.199-74.406 166.199-166.195 0-91.789-74.41-166.195-166.199-166.195H530.324v166.195z m-92.328-369.324v110.801H327.195c-61.187 0-110.797-49.61-110.797-110.801 0-61.188 49.61-110.797 110.797-110.797 61.192 0 110.801 49.609 110.801 110.797z m55.399 0c0-91.785-74.411-166.195-166.2-166.195C235.41 162 161 236.41 161 328.195c0 91.789 74.41 166.199 166.195 166.199h166.2V328.195z m92.328 0v110.801H696.52c61.195 0 110.796-49.61 110.796-110.801 0-61.188-49.601-110.797-110.796-110.797-61.188 0-110.797 49.609-110.797 110.797z m-55.399 0C530.324 236.41 604.734 162 696.52 162c91.789 0 166.199 74.41 166.199 166.195 0 91.789-74.41 166.199-166.199 166.199H530.324V328.195z m0 0" ></path></symbol><symbol id="icon-tupian" viewBox="0 0 1024 1024"><path d="M335.36 440.32c38.4 0 71.68-30.72 71.68-71.68 0-38.4-30.72-71.68-71.68-71.68-38.4 0-71.68 30.72-71.68 71.68 2.56 40.96 33.28 71.68 71.68 71.68z m0 0M652.8 396.8L445.44 691.2 337.92 540.16 158.72 793.6h704L652.8 396.8z m0 0" ></path><path d="M934.4 107.52H89.6c-20.48 0-35.84 15.36-35.84 35.84V883.2c0 20.48 15.36 35.84 35.84 35.84h844.8c20.48 0 35.84-15.36 35.84-35.84V143.36c0-20.48-15.36-35.84-35.84-35.84z m-35.84 739.84H125.44V176.64h775.68v670.72h-2.56z m0 0" ></path></symbol><symbol id="icon-wenzi" viewBox="0 0 1024 1024"><path d="M64.1 66v303.7l39.5-1.3c13.6-110.8 102.6-186.4 153.2-199 50.7-12.6 148.3 1.1 148.3 1.1s-1.3 625.2-1.3 669.2c0 44.1-59.3 63-59.3 63l-79 1.3-1.2 55.4h493.1v-54.1h-90.2c-40.8-3.8-65.4-56.7-65.4-56.7l1.1-684.5s61.8-11.3 150.8 5.1c89 16.4 164.3 204.1 164.3 204.1h39.5V66H64.1z" ></path></symbol><symbol id="icon-xinjian" viewBox="0 0 1024 1024"><path d="M618 958.5H202c-44.8 0-81.3-34.1-81.3-76v-740c0-41.9 36.5-76 81.3-76h610.5c44.8 0 81.3 34.1 81.3 76v521.9c0 12.8-10.4 23.1-23.1 23.1s-23.1-10.4-23.1-23.1V142.5c0-16.4-15.7-29.7-35-29.7H202c-19.3 0-35 13.3-35 29.7v740c0 16.4 15.7 29.7 35 29.7h416c12.8 0 23.1 10.4 23.1 23.1 0.1 12.8-10.3 23.2-23.1 23.2z" ></path><path d="M738.4 360.5H276c-12.8 0-23.1-10.4-23.1-23.1 0-12.8 10.4-23.1 23.1-23.1h462.5c12.8 0 23.1 10.4 23.1 23.1 0 12.8-10.4 23.1-23.2 23.1zM584.3 595.1H276c-12.8 0-23.1-10.4-23.1-23.1 0-12.8 10.4-23.1 23.1-23.1h308.3c12.8 0 23.1 10.4 23.1 23.1 0 12.7-10.3 23.1-23.1 23.1zM878.8 826.3H614.6c-12.8 0-23.1-10.4-23.1-23.1 0-12.8 10.4-23.1 23.1-23.1h264.3c12.8 0 23.1 10.4 23.1 23.1 0 12.8-10.4 23.1-23.2 23.1z" ></path><path d="M746.7 958.5c-12.8 0-23.1-10.4-23.1-23.1V671.1c0-12.8 10.4-23.1 23.1-23.1 12.8 0 23.1 10.4 23.1 23.1v264.3c0 12.7-10.3 23.1-23.1 23.1z" ></path></symbol><symbol id="icon-qingkong" viewBox="0 0 1024 1024"><path d="M274.56 798.997333l19.434667-25.130666-33.792 68.565333a18.133333 18.133333 0 0 0 11.562666 25.536l59.733334 16a18.133333 18.133333 0 0 0 17.28-4.48c20.522667-19.818667 35.626667-35.989333 45.290666-48.469333l19.456-25.130667-33.813333 68.565333a18.133333 18.133333 0 0 0 11.562667 25.536l84.48 22.634667a18.133333 18.133333 0 0 0 17.28-4.48c20.522667-19.84 35.626667-35.989333 45.269333-48.469333l19.456-25.130667-33.813333 68.565333A18.133333 18.133333 0 0 0 535.530667 938.666667l72.106666 19.328a18.133333 18.133333 0 0 0 17.28-4.48c20.522667-19.84 35.626667-36.010667 45.269334-48.490667l19.456-25.130667-33.813334 68.586667a18.133333 18.133333 0 0 0 11.584 25.514667l86.421334 23.338666 3.84-0.213333c13.269333-0.704 29.056-5.034667 43.84-12.8 29.781333-15.701333 48.170667-43.2 52.181333-78.250667 2.133333-18.517333 4.778667-38.549333 8.405333-63.530666 1.642667-11.221333 2.944-20.010667 6.229334-41.834667 11.050667-73.322667 14.634667-101.034667 17.130666-133.674667l0.938667-12.373333 2.837333-2.922667 12.330667-1.344a41.813333 41.813333 0 0 0 24.810667-11.221333c10.730667-10.24 14.805333-25.386667 11.093333-42.197333l-37.546667-171.584c-3.029333-13.696-11.264-27.946667-23.146666-39.829334-11.648-11.626667-25.92-20.138667-39.893334-23.893333L723.626667 331.306667l-2.261334-3.925334L774.250667 130.133333c8.32-31.061333-11.754667-63.744-44.970667-72.64l-79.509333-21.312c-33.194667-8.896-66.922667 9.365333-75.264 40.426667l-52.842667 197.269333-3.925333 2.261334-118.101334-31.637334c-13.994667-3.754667-30.634667-3.498667-46.506666 0.746667-16.256 4.352-30.506667 12.586667-39.957334 22.933333l-118.314666 129.792c-11.605333 12.714667-15.658667 27.84-11.52 42.090667 4.16 14.229333 15.850667 25.194667 32.896 30.528l13.610666 4.266667 2.133334 3.882666-3.626667 13.802667c-21.12 79.850667-52.885333 136.917333-85.717333 150.890667-47.530667 20.202667-72.938667 49.429333-78.421334 85.034666-5.034667 32.682667 9.28 67.114667 37.589334 91.541334l22.037333 8.341333 74.666667 20.010667a42.666667 42.666667 0 0 0 41.216-11.050667c15.274667-15.274667 26.88-28.032 34.837333-38.293333z m551.381333-396.565333c14.144 3.797333 29.952 19.2 32.768 32l34.56 157.781333a10.666667 10.666667 0 0 1-13.184 12.586667L240.64 433.493333a10.666667 10.666667 0 0 1-5.12-17.493333l108.8-119.36c8.832-9.685333 30.229333-15.146667 44.373333-11.349333l141.333334 37.866666a21.333333 21.333333 0 0 0 26.133333-15.082666l58.304-217.642667a21.333333 21.333333 0 0 1 26.133333-15.082667l77.056 20.650667a21.333333 21.333333 0 0 1 15.082667 26.133333l-58.325333 217.642667a21.333333 21.333333 0 0 0 15.082666 26.112l136.448 36.565333zM315.456 701.568c-33.664 45.141333-64.597333 79.082667-92.8 101.802667l-5.909333 4.778666-2.837334 0.597334-88.106666-24.106667-2.922667-3.2c-13.034667-14.165333-19.370667-31.04-16.981333-46.592 3.285333-21.333333 22.058667-39.338667 53.205333-52.586667 31.722667-13.482667 59.818667-47.104 82.922667-99.904 10.026667-22.954667 18.88-48.725333 26.389333-76.586666l3.882667-14.4 3.904-2.261334 566.165333 151.701334 2.346667 3.306666-0.789334 12.224c-1.984 30.592-30.336 229.397333-32.128 244.906667-2.346667 20.416-11.306667 34.986667-27.605333 44.394667a73.237333 73.237333 0 0 1-21.397333 8.106666l-5.013334 0.725334-60.373333-16.170667 11.242667-20.288c8.277333-14.976 22.656-43.84 43.093333-86.613333a21.12 21.12 0 0 0-9.962667-28.16l-3.136-1.493334a21.333333 21.333333 0 0 0-26.261333 6.485334c-33.642667 45.056-64.533333 78.912-92.672 101.546666l-5.909333 4.757334-2.837334 0.597333-52.544-14.08 11.114667-20.266667c3.562667-6.485333 7.04-13.013333 10.453333-19.626666 7.04-13.504 17.898667-35.797333 32.597334-66.816a21.290667 21.290667 0 0 0-9.984-28.309334l-3.029334-1.450666a21.333333 21.333333 0 0 0-26.368 6.442666c-33.6 45.013333-64.469333 78.826667-92.608 101.482667l-5.909333 4.757333-2.837333 0.597334-52.138667-13.973334 11.114667-20.266666c3.242667-5.888 6.72-12.416 10.453333-19.626667 6.997333-13.461333 17.962667-35.946667 32.896-67.434667a20.970667 20.970667 0 0 0-10.112-28.010666l-3.328-1.536a21.333333 21.333333 0 0 0-26.069333 6.613333c-33.642667 45.056-64.554667 78.976-92.778667 101.696l-5.909333 4.757333-2.837334 0.597334-32.64-8.746667 11.093334-20.245333c3.541333-6.506667 7.04-13.034667 10.453333-19.626667 6.976-13.482667 17.941333-35.968 32.874667-67.456a21.056 21.056 0 0 0-10.069334-28.074667l-3.242666-1.514666a21.333333 21.333333 0 0 0-26.154667 6.549333z" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M202.666667 256h-42.666667a32 32 0 0 1 0-64h704a32 32 0 0 1 0 64H266.666667v565.333333a53.333333 53.333333 0 0 0 53.333333 53.333334h384a53.333333 53.333333 0 0 0 53.333333-53.333334V352a32 32 0 0 1 64 0v469.333333c0 64.8-52.533333 117.333333-117.333333 117.333334H320c-64.8 0-117.333333-52.533333-117.333333-117.333334V256z m224-106.666667a32 32 0 0 1 0-64h170.666666a32 32 0 0 1 0 64H426.666667z m-32 288a32 32 0 0 1 64 0v256a32 32 0 0 1-64 0V437.333333z m170.666666 0a32 32 0 0 1 64 0v256a32 32 0 0 1-64 0V437.333333z" ></path></symbol><symbol id="icon-jia" viewBox="0 0 1024 1024"><path d="M580.722174 437.990403 580.722174 78.171384 436.794158 78.171384 436.794158 437.990403 76.975139 437.990403 76.975139 581.918419 436.794158 581.918419 436.794158 941.737438 580.722174 941.737438 580.722174 581.918419 940.542216 581.918419 940.542216 437.990403Z" ></path></symbol><symbol id="icon-baocun" viewBox="0 0 1024 1024"><path d="M814.805 128a51.179 51.179 0 0 1 51.179 51.179V844.01a51.179 51.179 0 0 1-51.179 51.157H201.173a51.179 51.179 0 0 1-51.178-51.157V179.179A51.179 51.179 0 0 1 201.173 128h613.654zM329.024 434.837a51.093 51.093 0 0 1-51.179-51.093V179.157h-76.672v664.854h613.76V179.179H738.22v204.48a51.179 51.179 0 0 1-51.179 51.178H329.024z m0-51.093h357.995V179.157H329.024v204.587z m357.91 204.501a25.557 25.557 0 1 1 0.085 51.072H329.024a25.536 25.536 0 1 1 0-51.072h357.91z" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M293.632 645.248c91.456-86.784 183.552-220.544 346.88-211.584a20.8 20.8 0 0 1 20.224 20.8v59.392a21.376 21.376 0 0 0 34.432 16.64l211.2-171.2a21.376 21.376 0 0 0 0-33.28l-210.24-192a21.952 21.952 0 0 0-35.648 16.64v60.096a20.8 20.8 0 0 1-17.856 20.8c-280.704 61.76-351.36 391.104-348.992 413.696zM192 960a138.176 138.176 0 0 1-129.984-152.512L64 832V192a116.48 116.48 0 0 1 128-128c-108.8 1.024 256 0 256 0a28.224 28.224 0 0 1 29.76 27.84A35.968 35.968 0 0 1 448 128H192a53.12 53.12 0 0 0-64 64c1.536-37.504 0 640 0 640a52.8 52.8 0 0 0 64 64c49.536-0.448 640 0 640 0a52.48 52.48 0 0 0 64-64c-0.64 105.152 0-256 0-256a36.48 36.48 0 0 1 27.264-38.4A33.216 33.216 0 0 1 960 576v256a116.48 116.48 0 0 1-128 128c-50.56-0.448-640 0-640 0z" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M512 384a42.666667 42.666667 0 0 1 42.666667 42.666667v341.333333h130.986666a21.333333 21.333333 0 0 1 14.250667 5.504l2.688 2.901333a21.333333 21.333333 0 0 1-4.010667 29.866667l-165.717333 126.464a32 32 0 0 1-38.912-0.042667l-164.48-126.464A21.333333 21.333333 0 0 1 342.442667 768H469.333333v-341.333333a42.666667 42.666667 0 0 1 42.666667-42.666667z m229.674667 298.368A42.666667 42.666667 0 0 1 746.666667 597.333333H853.333333V170.666667H170.666667v426.666666h106.666666a42.666667 42.666667 0 0 1 0 85.333334H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333334V170.666667a85.333333 85.333333 0 0 1 85.333334-85.333334h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333334v426.666666a85.333333 85.333333 0 0 1-85.333334 85.333334h-106.666666z" ></path></symbol><symbol id="icon-huanyuan" viewBox="0 0 1024 1024"><path d="M909.637 478.524c-15.444-189.946-167.065-345.049-356.655-364.38-99.805-10.176-193.011 16.474-267.901 67.887l18.467-68.842c5.725-21.337-6.933-43.274-28.27-48.998s-43.274 6.934-48.998 28.271l-41.455 154.536c-5.724 21.337 6.933 43.273 28.271 48.998l154.536 41.455c21.337 5.724 43.273-6.934 48.998-28.271 5.724-21.337-6.934-43.274-28.271-48.998l-54.194-14.538c58.917-39.301 131.457-59.686 208.999-52.061 147.885 14.543 268.327 132.461 285.589 280.053 23.02 196.82-133.879 363.973-327.45 358.219-135.107-4.017-252.98-96.111-294.938-224.602-17.513-53.632-18.92-105.027-9.92-152.849 3.188-16.946-4.238-34.086-19.172-42.707l-0.049-0.028c-23.737-13.705-54.358-0.164-59.404 26.777-7.724 41.233-9.128 84.686-2.965 129.403 25.571 185.535 181.03 330.336 367.878 343.176C727.656 927.857 929.6 724.049 909.637 478.524z" ></path></symbol><symbol id="icon-menu-fold" viewBox="0 0 1024 1024"><path d="M85.312 170.688h853.376V256H85.312V170.688z m0 179.328L266.752 512l-181.44 162.048V349.952zM384 469.312h554.688v85.376H384V469.248zM85.312 768h853.376v85.312H85.312V768z" ></path></symbol><symbol id="icon-icon_image" viewBox="0 0 1024 1024"><path d="M85.333333 852.992V213.333333a42.666667 42.666667 0 0 1 42.666667-42.666666h768a42.666667 42.666667 0 0 1 42.666667 42.666666v640a42.666667 42.666667 0 0 1-42.666667 42.666667H128a42.666667 42.666667 0 0 1-42.666667-42.666667v-0.341333z m768-157.610667V256H170.666667v493.994667l127.744-127.744a42.666667 42.666667 0 0 1 47.018666-9.045334l126.293334 54.314667 184.789333-146.346667a42.666667 42.666667 0 0 1 59.52 6.485334L853.333333 695.381333zM837.418667 810.666667l-160.853334-196.48-171.818666 136.021333a42.666667 42.666667 0 0 1-43.349334 5.76l-123.093333-52.906667L230.656 810.666667h606.762667zM341.333333 512a85.333333 85.333333 0 1 1 0-170.666667 85.333333 85.333333 0 0 1 0 170.666667z" ></path></symbol><symbol id="icon-icon_chart" viewBox="0 0 1024 1024"><path d="M128 864V128H96v768h896v-32H128z" ></path><path d="M225.6 352h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128V385.6a33.6 33.6 0 0 1 33.6-33.6z" ></path><path d="M417.6 128h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128V161.6A33.6 33.6 0 0 1 417.6 128z" ></path><path d="M609.6 544h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128V577.6a33.6 33.6 0 0 1 33.6-33.6z" ></path><path d="M801.6 704h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128v-62.4a33.6 33.6 0 0 1 33.6-33.6z" ></path></symbol><symbol id="icon-jichukongjian" viewBox="0 0 1024 1024"><path d="M912 662.016l-352.256 211.392c-10.752 5.952-22.912 8.96-35.2 8.768-12.8 0-25.6-2.944-35.264-8.768L136.96 662.016c-19.456-11.712-19.456-30.656 0-42.24l59.712-35.84 271.872 163.072c15.616 9.344 35.456 14.464 55.936 14.464 20.48 0 40.32-5.12 55.936-14.464l271.872-163.136 59.712 35.84c19.456 11.712 19.456 30.592 0 42.24z" ></path><path d="M912 501.12l-352.256 211.392c-10.752 5.952-22.912 8.96-35.2 8.768-12.8 0-25.6-2.944-35.264-8.768L136.96 501.12c-19.456-11.712-19.456-30.656 0-42.24l59.712-35.904 271.872 163.136c15.616 9.344 35.456 14.464 55.936 14.464 20.48 0 40.32-5.12 55.936-14.464l271.936-163.2 59.712 35.904c19.392 11.712 19.392 30.656 0 42.24z" ></path><path d="M912 340.224L559.744 551.68c-10.752 5.952-22.912 8.96-35.2 8.768-12.8 0-25.6-2.944-35.264-8.768L136.96 340.224c-19.456-11.584-19.456-30.592 0-42.24l352.32-211.456c9.728-5.76 22.528-8.704 35.2-8.704 12.736 0 25.472 2.88 35.2 8.704l352.32 211.456c19.456 11.648 19.456 30.656 0 42.24z" ></path></symbol><symbol id="icon-icon-relativity" viewBox="0 0 1024 1024"><path d="M352 352v-192a64 64 0 0 1 64-64h448a64 64 0 0 1 64 64v448a64 64 0 0 1-64 64h-192v192a64 64 0 0 1-64 64h-448a64 64 0 0 1-64-64v-448a64 64 0 0 1 64-64h192z m64-192v192h192a64 64 0 0 1 64 64v192h192v-448h-448z m192 512h-192a64 64 0 0 1-64-64v-192h-192v448h448v-192z m0-64v-192h-192v192h192z" ></path></symbol><symbol id="icon-root-list" viewBox="0 0 1024 1024"><path d="M85.333333 85.333333h853.333334v853.333334H85.333333V85.333333z m85.333334 85.333334v682.666666h682.666666V170.666667H170.666667z m85.333333 149.333333h512v85.333333H256v-85.333333z m0 170.666667h341.333333v85.333333H256v-85.333333z" ></path></symbol><symbol id="icon-control-platform" viewBox="0 0 1024 1024"><path d="M512 36.48l426.688 237.056v476.928L512 987.456l-426.688-236.992V273.536L512 36.544zM170.688 379.52v320.704l298.624 165.952V537.6l-298.624-158.08z m384 486.656l298.624-165.952v-320.64L554.688 537.6v328.512zM512 463.744l303.744-160.832L512 134.144 208.256 302.912 512 463.744z" ></path></symbol><symbol id="icon-icon-yonghu" viewBox="0 0 1024 1024"><path d="M511.744 96a253.184 253.184 0 0 1 252.8 252.928c0 91.904-49.216 172.544-122.688 216.832 146.24 50.24 253.632 181.824 253.632 331.584a32 32 0 0 1-64 0c0-156.864-146.432-289.408-319.744-289.408C338.432 607.936 192 740.48 192 897.344a32 32 0 0 1-64 0c0-149.76 107.328-281.28 253.568-331.648a252.992 252.992 0 0 1-122.752-216.768A253.184 253.184 0 0 1 511.744 96z m0 64a189.12 189.12 0 0 0-188.928 188.928 189.12 189.12 0 0 0 188.928 188.928 189.12 189.12 0 0 0 188.8-188.928A189.12 189.12 0 0 0 511.808 160z" ></path></symbol><symbol id="icon-a-shezhi" viewBox="0 0 1024 1024"><path d="M933.868272 511.691752a140.807706 140.807706 0 0 1 90.131728-131.067068 525.562914 525.562914 0 0 0-57.334136-138.64997 139.882962 139.882962 0 0 1-184.948826-184.948826A525.562914 525.562914 0 0 0 643.067068 0a140.376159 140.376159 0 0 1-262.134136 0A525.562914 525.562914 0 0 0 242.282962 57.334136a139.882962 139.882962 0 0 1-184.948826 184.948826A506.698134 506.698134 0 0 0 0 380.932932a140.376159 140.376159 0 0 1 0 262.134136 525.562914 525.562914 0 0 0 57.334136 138.64997 139.882962 139.882962 0 0 1 184.948826 184.948826 525.562914 525.562914 0 0 0 138.64997 57.334136 140.376159 140.376159 0 0 1 262.134136 0 525.562914 525.562914 0 0 0 138.64997-57.334136 139.882962 139.882962 0 0 1 184.948826-184.948826 506.698134 506.698134 0 0 0 57.334136-138.64997A140.807706 140.807706 0 0 1 933.868272 511.691752zM511.691752 652.437809A140.437809 140.437809 0 1 1 652.437809 511.691752 140.499458 140.499458 0 0 1 511.691752 652.437809z" ></path></symbol></svg>',(n=>{var e=(t=(t=document.getElementsByTagName("script"))[t.length-1]).getAttribute("data-injectcss"),t=t.getAttribute("data-disable-injectsvg");if(!t){var i,r,s,o,a,l=function(d,u){u.parentNode.insertBefore(d,u)};if(e&&!n.__iconfont__svg__cssinject__){n.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(d){console&&console.log(d)}}i=function(){var d,u=document.createElement("div");u.innerHTML=n._iconfont_svg_string_5087053,(u=u.getElementsByTagName("svg")[0])&&(u.setAttribute("aria-hidden","true"),u.style.position="absolute",u.style.width=0,u.style.height=0,u.style.overflow="hidden",u=u,(d=document.body).firstChild?l(u,d.firstChild):d.appendChild(u))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(i,0):(r=function(){document.removeEventListener("DOMContentLoaded",r,!1),i()},document.addEventListener("DOMContentLoaded",r,!1)):document.attachEvent&&(s=i,o=n.document,a=!1,h(),o.onreadystatechange=function(){o.readyState=="complete"&&(o.onreadystatechange=null,c())})}function c(){a||(a=!0,s())}function h(){try{o.documentElement.doScroll("left")}catch{return void setTimeout(h,50)}c()}})(window);const ihi=[Efe],AH=n=>{!n||AH.installed||(n.use(vn),ihi.forEach(e=>{const t=e.name||e.__name;t&&n.component(t,e)}),AH.installed=!0)},nhi={install:AH,EmsEditor:Efe,EmsPreview:Rze};mn.EmsEditor=Efe,mn.EmsPreview=Rze,mn.default=nhi,mn.install=AH,Object.defineProperties(mn,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1843
+ `;ye.pushEditOperations([],[{range:new js.Range(Pe.lineNumber,Pe.column,Pe.lineNumber,Pe.column),text:Pt,forceMoveMarkers:!0}],()=>null),a.focus()},z=ce=>{var Lr,Us;if(!l)return;const we=l.getModel();if(!we)return;const ye=((Lr=ce.target)==null?void 0:Lr.position)||ce.position;if(!ye)return;const Pe=we.getOffsetAt(ye),Ft=we.getValue(),di=Mci(Ft,Pe).path||[];if(!di.length)return;const Ai=he(di),hn=x(b.value,di),Pr=di.length?String(di[di.length-1]):"",jn=(Us=r.value)==null?void 0:Us.getBoundingClientRect();_.value={visible:!0,x:jn?ce.event.browserEvent.clientX-jn.left:0,y:jn?ce.event.browserEvent.clientY-jn.top:0,path:Ai,pathParts:di,key:Pr,value:hn}},K=ce=>{var ye;ce.event.preventDefault(),ce.event.stopPropagation();const we=(ye=r.value)==null?void 0:ye.getBoundingClientRect();g.value={visible:!0,x:we?ce.event.browserEvent.clientX-we.left:0,y:we?ce.event.browserEvent.clientY-we.top:0}},Y=async()=>{if(!a)return k();const ce=a.getModel().getValueInRange(a.getSelection());if(!ce)return k();try{await navigator.clipboard.writeText(ce)}catch{}k()},q=async()=>{if(!a)return k();const ce=a.getSelection(),we=a.getModel().getValueInRange(ce);if(!we)return k();try{await navigator.clipboard.writeText(we),a.executeEdits("custom-cut",[{range:ce,text:"",forceMoveMarkers:!0}])}catch{}k()},Z=async()=>{if(!a)return k();try{const ce=await navigator.clipboard.readText();if(!ce)return k();a.executeEdits("custom-paste",[{range:a.getSelection(),text:ce,forceMoveMarkers:!0}])}catch{}k()},ee=async()=>{if(!a)return k();try{const ce=a.getAction("editor.action.formatDocument");ce&&await ce.run()}catch{}k()},he=ce=>["data",...Array.isArray(ce)?ce:String(ce||"").split(".").filter(Boolean)].map(ye=>String(ye)).join("."),Re=ce=>["data",...Array.isArray(ce)?ce:String(ce||"").split(".").filter(Boolean)].map((ye,Pe)=>{if(Pe===0)return"data";const Ft=Number(ye);return!Number.isNaN(Ft)&&String(Ft)===String(ye)?`[${Ft}]`:`.${ye}`}).join(""),Ge=()=>{i("close")};w.onMounted(()=>{u(),a=js.editor.create(s.value,{value:t.rule||Oci,language:iO,theme:"vs-dark",automaticLayout:!0,minimap:{enabled:!1},fontSize:14,wordBasedSuggestions:"off",quickSuggestions:!1,suggestOnTriggerCharacters:!1,parameterHints:{enabled:!1},suggest:{showWords:!1,showText:!1,showSnippets:!1,showMethods:!1,showFunctions:!1,showClasses:!1,showVariables:!1,showModules:!1,showProperties:!1,showFields:!1,showValues:!0,showKeywords:!1}}),a.updateOptions({contextmenu:!1}),a.onContextMenu(ce=>K(ce)),a.onMouseDown(()=>k()),a.onKeyDown(()=>k()),h=a.addAction({id:"custom-paste",label:"粘贴",contextMenuGroupId:"9_cutcopypaste",run:async ce=>{try{const we=await navigator.clipboard.readText();if(!we)return;ce.executeEdits("custom-paste",[{range:ce.getSelection(),text:we,forceMoveMarkers:!0}])}catch(we){console.warn("Clipboard read blocked",we)}}}),c=js.languages.registerCompletionItemProvider(iO,{triggerCharacters:["$","."],provideCompletionItems(ce,we,ye){const Pe=ce.getValueInRange(new js.Range(we.lineNumber,1,we.lineNumber,we.column)),Pt=((ye==null?void 0:ye.triggerCharacter)==="."&&!Pe.endsWith(".")?`${Pe}.`:Pe).match(/\$\.(?:[^.\s]+\.)*[^.\s]*$/);if(!Pt)return{suggestions:[]};const Ai=Pt[0].split("."),hn=Ai.pop()||"",Pr=new js.Range(we.lineNumber,we.column-hn.length,we.lineNumber,we.column),jn=Ai.slice(1),Lr=jn.length?x(y.value||{},jn):y.value||{};return!Lr||typeof Lr!="object"?{suggestions:[]}:{suggestions:Object.keys(Lr).filter(Bl=>Bl!=="$").map(Bl=>({label:Bl,kind:js.languages.CompletionItemKind.Value,insertText:Bl,range:Pr}))}}}),l=js.editor.create(o.value,{value:D(b.value),language:"json",theme:"vs-dark",automaticLayout:!0,minimap:{enabled:!1},fontSize:13,readOnly:!0,contextmenu:!1}),l.onContextMenu(ce=>{ce.event.preventDefault(),ce.event.stopPropagation(),z(ce)}),a.updateOptions({contextmenu:!1}),a.onContextMenu(ce=>{K(ce)}),a.addCommand(js.KeyMod.CtrlCmd|js.KeyCode.KeyC,()=>Y()),a.addCommand(js.KeyMod.CtrlCmd|js.KeyCode.KeyX,()=>q()),a.addCommand(js.KeyMod.CtrlCmd|js.KeyCode.KeyV,()=>Z()),f=a.onDidType(ce=>{if(ce!==".")return;const we=a.getModel();if(!we)return;const ye=a.getPosition();if(!ye)return;const Pe=we.getValueInRange(new js.Range(ye.lineNumber,1,ye.lineNumber,ye.column));/\$\.(?:[^.\s]+\.)*[^.\s]*$/.test(Pe)&&(a.trigger("globals-suggest","editor.action.hideSuggestWidget",{}),a.trigger("globals-suggest","editor.action.triggerSuggest",{}))}),a.onDidChangeModelContent(()=>{try{const ce=a.getValue();i("update:rule",ce)}catch{}}),document.addEventListener("click",E),document.addEventListener("click",k),ke()}),w.watch(()=>t.rule,ce=>{if(!a)return;const we=ce||"";a.getValue()!==we&&a.setValue(we)}),w.watch(b,ce=>{l&&l.setValue(D(ce)),ke()}),w.onBeforeUnmount(()=>{a==null||a.dispose(),l==null||l.dispose(),c==null||c.dispose(),h==null||h.dispose(),f==null||f.dispose(),g.value.visible=!1,document.removeEventListener("click",E),document.removeEventListener("click",k)});const ke=()=>{v.value=L()};return(ce,we)=>(w.openBlock(),w.createElementBlock("div",{class:"json-rule-editor",ref_key:"rootRef",ref:r},[we[1]||(we[1]=w.createElementVNode("div",{class:"editor-header"},[w.createElementVNode("span",null,"数据 JSON(右键选取字段为变量)")],-1)),w.createElementVNode("div",{ref_key:"dataEditorContainer",ref:o,class:"monaco-pane slim"},null,512),_.value.visible?(w.openBlock(),w.createElementBlock("div",{key:0,class:"context-menu",style:w.normalizeStyle({left:_.value.x+"px",top:_.value.y+"px"})},[w.createElementVNode("div",{class:"menu-item",onClick:P},"复制属性"),w.createElementVNode("div",{class:"menu-item",onClick:R},"复制值"),w.createElementVNode("div",{class:"menu-item",onClick:W},"复制属性路径"),w.createElementVNode("div",{class:"menu-item",onClick:T},"设置为变量(并插入解析函数)"),we[0]||(we[0]=w.createElementVNode("div",{class:"menu-item disabled"},"设置为全局变量(待实现)",-1))],4)):w.createCommentVNode("",!0),we[2]||(we[2]=w.createElementVNode("div",{class:"editor-header",style:{"margin-top":"8px"}},[w.createElementVNode("span",null,"解析函数")],-1)),w.createElementVNode("div",{ref_key:"editorContainer",ref:s,class:"monaco-pane"},null,512),g.value.visible?(w.openBlock(),w.createElementBlock("div",{key:1,class:"context-menu",style:w.normalizeStyle({left:g.value.x+"px",top:g.value.y+"px"})},[w.createElementVNode("div",{class:"menu-item",onClick:q},"剪切"),w.createElementVNode("div",{class:"menu-item",onClick:Y},"复制"),w.createElementVNode("div",{class:"menu-item",onClick:Z},"粘贴"),w.createElementVNode("div",{class:"menu-item",onClick:ee},"格式化")],4)):w.createCommentVNode("",!0),w.createElementVNode("div",Aci,[w.createElementVNode("div",null,[w.createElementVNode("button",{class:"ghost-btn",type:"button",onClick:ke},"运行测试"),w.createElementVNode("span",Rci,w.toDisplayString(v.value),1),m.value?(w.openBlock(),w.createElementBlock("span",Pci,"错误:"+w.toDisplayString(m.value),1)):w.createCommentVNode("",!0)]),w.createElementVNode("button",{class:"ghost-btn",type:"button",onClick:Ge},"确认生效")]),we[3]||(we[3]=w.createElementVNode("div",{class:"helper"},[w.createElementVNode("div",{class:"helper-title"},"使用方式"),w.createElementVNode("p",null,"data 为当前JSON数据,$ 为全局变量对象;在下方函数里对$.提示的节点选项赋值。")],-1))],512))}},[["__scopeId","data-v-f13c4235"]]),Fci={class:"dataBox"},Bci={style:{padding:"10px 0","margin-bottom":"10px"}},Wci={style:{padding:"10px 0","margin-bottom":"10px"}},Hci={class:"param-table"},zci={class:"param-table__toolbar"},$ci={style:{padding:"10px 0"}},Uci={style:{padding:"10px 0","margin-bottom":"10px"}},Gci={key:3,style:{padding:"10px 0","margin-bottom":"10px"}},jci=Yn({__name:"data",setup(n){const e=Ds(),t=w.inject("getCurCell")(),i=w.inject("topoApi"),r=w.inject("storage"),s=w.ref(t.getData()),o=w.ref(s.value.dataSource.parse||""),a=w.ref(!1),l=w.ref(s.value.dataSource);Array.isArray(l.value.params)||(l.value.params=[]);const c=w.ref([]),h=w.computed(()=>{const x={};return c.value.forEach(L=>{if(l.value.bindNode.includes(L.value)){let D=e.graph.getCellById(L.value);const E={};Object.keys(D.getData().dataSource.fields).forEach(T=>{E[T]=null}),x[L.label]=E}}),x});(()=>{const x=[];e.graph.toJSON().cells.forEach(D=>{D.data&&D.data.name&&x.push({value:D.id,label:D.data.name})}),c.value=x})();const u=w.ref(null),f=w.ref({}),g=async()=>{if(u.value===null&&(l.value.type==="opcua"||l.value.type==="http"))return vn.ElMessage.error("请获取数据!"),!1;l.value.type==="opcua"&&(f.value={payload:u.value,pointTemp:s.value.dataSource.point}),l.value.type==="http"&&(f.value=u.value),l.value.type==="node"&&(f.value={}),a.value=!0},p=()=>{u.value=null},m=async()=>{if(!l.value.path)return vn.ElMessage.error("请输入点位地址!"),!1;const x=await i.readPoints([l.value.path]);console.log(x),u.value=x[0]||{error:"未找到数据"}},v=()=>{let x=r.getItem("copyOpcuaNode");x?(console.log("copyOpcuaNode",x),l.value.path=x.nodeId,l.value.point={...x}):vn.ElMessage.warning("请在左侧数据来源中复制"),r.removeItem("copyOpcuaNode")},_=()=>{l.value.params.push({key:"",value:""})},b=x=>{l.value.params.splice(x,1)},y=async()=>{var E,k;if(!l.value.httpUrl)return vn.ElMessage.error("请输入请求地址"),!1;let x=JSON.parse(JSON.stringify(l.value));delete x.params;const L={};for(let T of l.value.params)if(T.key)T.value&&e.graph.getCellById(T.value)?L[T.key]=(k=(E=e.graph.getCellById(T.value).getData())==null?void 0:E.model)==null?void 0:k.modelValue:L[T.key]=T.value;else return vn.ElMessage.error("请完善请求参数"),!1;x.params=L;let D;try{D=await i.httpRequest({...l.value,params:L})}catch{D={error:"数据获取失败"}}u.value=D},C=()=>{var x;if(((x=l.value.bindNode)==null?void 0:x.length)==0)return vn.ElMessage.error("请选择数据关联!"),!1;if(u.value===null&&(l.value.type==="opcua"||l.value.type==="http"))return vn.ElMessage.error("请获取数据!"),!1;if(o.value)try{const L=new Function("data","$",o.value);l.value.type=="opcua"?L({payload:u.value,pointTemp:s.value.dataSource.point},h.value):l.value.type=="http"?L(u.value,h.value):l.value.type=="node"&&L({},h.value);const D=e.graph.toJSON().cells;for(let E in h.value){let k=D.find(T=>{var I;return((I=T.data)==null?void 0:I.name)===E});if(k){k=e.graph.getCellById(k.id);const T=h.value[E],I=k.data.dataSource.fields;Object.keys(T).forEach(N=>{if(T[N]!==null){const M=I[N],P=T[N];k.setData(R3(k.getData(),M,P),{deep:!1})}})}}t.setData({dataSource:{parse:o.value}}),a.value=!1,vn.ElMessage.success("解析成功!")}catch(L){vn.ElMessage.error("解析失败!"),console.error(L)}else vn.ElMessage.error("请填写解析函数!")};return(x,L)=>{const D=w.resolveComponent("el-option"),E=w.resolveComponent("el-select"),k=w.resolveComponent("el-form-item"),T=w.resolveComponent("el-input"),I=w.resolveComponent("el-button"),N=w.resolveComponent("el-radio"),M=w.resolveComponent("el-radio-group"),P=w.resolveComponent("el-table-column"),R=w.resolveComponent("el-table"),W=w.resolveComponent("el-form"),$=w.resolveComponent("el-dialog");return w.openBlock(),w.createElementBlock("div",Fci,[w.createVNode(W,{class:"panelList",size:"small"},{default:w.withCtx(()=>[w.createVNode(k,{label:"数据类型"},{default:w.withCtx(()=>[w.createVNode(E,{modelValue:l.value.type,"onUpdate:modelValue":L[0]||(L[0]=z=>l.value.type=z),onChange:p},{default:w.withCtx(()=>[w.createVNode(D,{value:"none",label:"无"}),w.createVNode(D,{value:"opcua",label:"OPCUA点位"}),w.createVNode(D,{value:"http",label:"HTTP接口"}),w.createVNode(D,{value:"node",label:"修改节点"}),w.createVNode(D,{value:"mock",label:"Mock模拟"})]),_:1},8,["modelValue"])]),_:1}),l.value.type!=="none"?(w.openBlock(),w.createBlock(k,{key:0,label:"修改节点"},{default:w.withCtx(()=>[w.createVNode(E,{modelValue:l.value.bindNode,"onUpdate:modelValue":L[1]||(L[1]=z=>l.value.bindNode=z),multiple:"","collapse-tags":"",filterable:"",placeholder:"请选择节点关联"},{default:w.withCtx(()=>[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(c.value,(z,K)=>(w.openBlock(),w.createBlock(D,{value:z.value,label:z.label,key:K},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1})):w.createCommentVNode("",!0),l.value.type==="opcua"?(w.openBlock(),w.createElementBlock(w.Fragment,{key:1},[w.createVNode(k,{label:"点位地址",style:{display:"flex"}},{default:w.withCtx(()=>[w.createVNode(T,{modelValue:l.value.path,"onUpdate:modelValue":L[2]||(L[2]=z=>l.value.path=z),style:{width:"140px","margin-right":"10px"}},null,8,["modelValue"]),w.createVNode(I,{type:"primary",onClick:v},{default:w.withCtx(()=>[...L[11]||(L[11]=[w.createTextVNode("填充",-1)])]),_:1})]),_:1}),w.createElementVNode("div",Bci,[w.createVNode(I,{type:"primary",style:{width:"100%"},onClick:m},{default:w.withCtx(()=>[...L[12]||(L[12]=[w.createTextVNode("获取数据",-1)])]),_:1})]),w.createVNode(_L,{modelValue:u.value,"onUpdate:modelValue":L[3]||(L[3]=z=>u.value=z),style:{height:"400px"}},null,8,["modelValue"]),w.createElementVNode("div",Wci,[w.createVNode(I,{type:"primary",style:{width:"100%"},onClick:g},{default:w.withCtx(()=>[...L[13]||(L[13]=[w.createTextVNode("数据解析",-1)])]),_:1})])],64)):w.createCommentVNode("",!0),l.value.type==="http"?(w.openBlock(),w.createElementBlock(w.Fragment,{key:2},[w.createVNode(k,{label:"接口类型"},{default:w.withCtx(()=>[w.createVNode(M,{modelValue:l.value.httpType,"onUpdate:modelValue":L[4]||(L[4]=z=>l.value.httpType=z)},{default:w.withCtx(()=>[w.createVNode(N,{value:"GET"},{default:w.withCtx(()=>[...L[14]||(L[14]=[w.createTextVNode("GET",-1)])]),_:1}),w.createVNode(N,{value:"POST"},{default:w.withCtx(()=>[...L[15]||(L[15]=[w.createTextVNode("POST",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),w.createVNode(k,{label:"接口地址"},{default:w.withCtx(()=>[w.createVNode(T,{modelValue:l.value.httpUrl,"onUpdate:modelValue":L[5]||(L[5]=z=>l.value.httpUrl=z),autosize:{minRows:2,maxRows:4},type:"textarea"},null,8,["modelValue"])]),_:1}),w.createVNode(k,{label:"请求频率"},{default:w.withCtx(()=>[w.createVNode(E,{modelValue:l.value.httpTimer,"onUpdate:modelValue":L[6]||(L[6]=z=>l.value.httpTimer=z)},{default:w.withCtx(()=>[w.createVNode(D,{value:-1,label:"不触发"}),w.createVNode(D,{value:0,label:"加载时触发一次"}),w.createVNode(D,{value:5,label:"5秒"}),w.createVNode(D,{value:10,label:"10秒"}),w.createVNode(D,{value:20,label:"20秒"}),w.createVNode(D,{value:30,label:"30秒"}),w.createVNode(D,{value:60,label:"1分钟"}),w.createVNode(D,{value:900,label:"15分钟"}),w.createVNode(D,{value:1800,label:"30分钟"})]),_:1},8,["modelValue"])]),_:1}),w.createElementVNode("div",Hci,[w.createElementVNode("div",zci,[L[17]||(L[17]=w.createElementVNode("div",null,"请求参数",-1)),w.createVNode(I,{size:"small",type:"primary",plain:"",onClick:_},{default:w.withCtx(()=>[...L[16]||(L[16]=[w.createTextVNode("新增参数",-1)])]),_:1})]),w.createVNode(R,{data:l.value.params,size:"small",border:"",height:"180"},{default:w.withCtx(()=>[w.createVNode(P,{prop:"key",label:"字段名"},{default:w.withCtx(({row:z})=>[w.createVNode(T,{modelValue:z.key,"onUpdate:modelValue":K=>z.key=K,placeholder:"字段名"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),w.createVNode(P,{prop:"value",label:"值"},{default:w.withCtx(({row:z})=>[w.createVNode(E,{modelValue:z.value,"onUpdate:modelValue":K=>z.value=K,modelModifiers:{trim:!0},filterable:"","allow-create":"","default-first-option":"",placeholder:"值"},{default:w.withCtx(()=>[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(c.value,(K,Y)=>(w.openBlock(),w.createBlock(D,{value:K.value,label:K.label,key:Y},null,8,["value","label"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue"])]),_:1}),w.createVNode(P,{label:"操作",width:"60"},{default:w.withCtx(({$index:z})=>[w.createVNode(I,{link:"",type:"danger",onClick:K=>b(z)},{default:w.withCtx(()=>[...L[18]||(L[18]=[w.createTextVNode("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])]),w.createElementVNode("div",$ci,[w.createVNode(I,{type:"primary",style:{width:"100%"},onClick:y},{default:w.withCtx(()=>[...L[19]||(L[19]=[w.createTextVNode("获取数据",-1)])]),_:1})]),w.createVNode(_L,{modelValue:u.value,"onUpdate:modelValue":L[7]||(L[7]=z=>u.value=z),style:{height:"300px"}},null,8,["modelValue"]),w.createElementVNode("div",Uci,[w.createVNode(I,{type:"primary",style:{width:"100%"},onClick:g},{default:w.withCtx(()=>[...L[20]||(L[20]=[w.createTextVNode("数据解析",-1)])]),_:1})])],64)):w.createCommentVNode("",!0),l.value.type==="node"?(w.openBlock(),w.createElementBlock("div",Gci,[w.createVNode(I,{type:"primary",style:{width:"100%"},onClick:g},{default:w.withCtx(()=>[...L[21]||(L[21]=[w.createTextVNode("数据解析",-1)])]),_:1})])):w.createCommentVNode("",!0),l.value.type==="mock"?(w.openBlock(),w.createBlock(_L,{key:4,modelValue:s.value,"onUpdate:modelValue":L[8]||(L[8]=z=>s.value=z),style:{height:"600px"}},null,8,["modelValue"])):w.createCommentVNode("",!0)]),_:1}),w.createVNode($,{modelValue:a.value,"onUpdate:modelValue":L[10]||(L[10]=z=>a.value=z),title:"实时数据解析",width:"800","align-center":""},{default:w.withCtx(()=>[w.createVNode(Vci,{"model-value":f.value,rule:o.value,"onUpdate:rule":L[9]||(L[9]=z=>o.value=z),globals:h.value,onClose:C},null,8,["model-value","rule","globals"])]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-237a4d1d"]]),qci={class:"prop"},Kci={class:"tabContainer"},Yci=["onClick"],Xci={class:"activeLine"},Zci={key:0,class:"main"},Jci=Yn({__name:"index",setup(n){const e=Ds(),t=mL(),{targetType:i,tabs:r,activeTab:s,cellId:o}=Fg.storeToRefs(t),a=h=>{s.value=h};let l=o.value?e.graph.getCellById(o.value):null;w.provide("getCurCell",()=>l),w.provide("cellId",o);const c=w.ref(!0);return w.watch(o,()=>{l=e.graph.getCellById(o.value),c.value=!1,w.nextTick(()=>{c.value=!0})}),(h,d)=>(w.openBlock(),w.createElementBlock("div",qci,[w.createElementVNode("div",Kci,[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(w.unref(r),(u,f)=>(w.openBlock(),w.createElementBlock("div",{key:f,class:w.normalizeClass(["tabItem",{active:w.unref(s)===f}]),onClick:g=>a(f)},[w.createTextVNode(w.toDisplayString(u)+" ",1),w.withDirectives(w.createElementVNode("div",Xci,null,512),[[w.vShow,w.unref(s)===f]])],10,Yci))),128))]),c.value?(w.openBlock(),w.createElementBlock("div",Zci,[w.unref(i)==="blank"?(w.openBlock(),w.createElementBlock(w.Fragment,{key:0},[w.unref(s)===0?(w.openBlock(),w.createBlock(Xxt,{key:0})):w.createCommentVNode("",!0)],64)):(w.openBlock(),w.createElementBlock(w.Fragment,{key:1},[w.unref(s)===0?(w.openBlock(),w.createBlock($It,{key:0})):w.unref(s)===1?(w.openBlock(),w.createBlock(jci,{key:1})):w.createCommentVNode("",!0)],64))])):w.createCommentVNode("",!0)]))}},[["__scopeId","data-v-8ea97b3c"]]),Qci={class:"ems-editor"},ehi={class:"ems-editor__workspace"},Efe=Object.assign({name:"EmsEditor"},{__name:"index",props:{services:{type:Object,default:()=>({})},width:{type:Number,default:1920},height:{type:Number,default:1080}},emits:["ready","exit"],setup(n,{emit:e}){const t=vL(),i=mL(),r=Ds(),s=n,o={setItem(l,c){c!==void 0&&window.localStorage.setItem(l,JSON.stringify(c))},getItem(l){let c=window.localStorage.getItem(l);return JSON.parse(c)},removeItem(l){window.localStorage.removeItem(l)},clear(){window.localStorage.clear()}},a={async getAllMenus(){var c;let l=[];return(c=s.services)!=null&&c.getAllMenus?l=await s.services.getAllMenus()||[]:l=o.getItem("menus")||[{id:"1",parentId:"0",name:"首页",children:[{id:crypto.randomUUID(),parentId:"1",name:"首页概览",style:{},value:{}}]}],o.setItem("menus",l),l},async getMenu(l){var c;if((c=s.services)!=null&&c.getMenu)return await s.services.getMenu(l)||{};{let h=o.getItem("menus")||[];for(let d of h)if(d.children){for(let u of d.children)if(u.id===l)return u}return{}}},async addMenu({parent:l,parentNameNew:c,name:h}){var d;if((d=s.services)!=null&&d.addMenu)return await s.services.addMenu({parent:l,parentNameNew:c,name:h});{let u=o.getItem("menus")||[],f=null,g=crypto.randomUUID(),p="";if(l==="0")p=crypto.randomUUID(),f={name:h,id:g,parentId:p,style:{},value:{}},u.push({name:c,id:p,parentId:"0",children:[f]});else{const m=u.find(v=>v.id===l);m&&(p=m.id,m.children.push({name:h,id:g,parentId:p,style:{},value:{}}),f={name:h,id:g,parentId:p,style:{},value:{}})}return o.setItem(g,f),o.setItem("menus",u),f}},async saveMenus(l){var h;const c=await this.getMenu(l.id);if(c&&(c.name=l.name,c.style=l.style,c.value=l.value),(h=s.services)!=null&&h.saveMenus)await s.services.saveMenus(l);else{let d=o.getItem("menus")||[];for(let u of d){const f=u.children.findIndex(g=>g.id===l.id);f>-1&&(u.children[f]=l)}o.setItem("menus",d),o.setItem(l.id,l)}},async removeMenu(l){var c;if((c=s.services)!=null&&c.removeMenu)await s.services.removeMenu(l);else{let h=o.getItem("menus")||[];if(this.getMenu(l)){const u=h.find(f=>{var g;return(g=f.children)==null?void 0:g.some(p=>p.id===l)});u&&(u.children=u.children.filter(f=>f.id!==l),u.children.length===0&&(h=h.filter(f=>f.id!==u.id))),o.setItem("menus",h)}o.removeItem(l)}},async getDeviceList(){var c;let l=[];if((c=s.services)!=null&&c.getDeviceList)l=await s.services.getDeviceList();else{const h=[{id:"2010960121314734082",deviceName:"干接点",deviceType:"OTHERS",deviceNo:"DIDO",templateName:"DIDO_test.json",templateId:"2010957702564474882",pointList:[{id:"2010957702568669185",templateId:"2010957702564474882",tag:"en_sts",name:"122",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0001, uint, AB]",description:null,uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863489",templateId:"2010957702564474882",tag:"connect_statu",name:"电网闸",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0002, uint, AB]",description:"0:断开;1:闭合;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863490",templateId:"2010957702564474882",tag:"icb_sign",name:"外源断路器反馈信号",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0003, uint, AB]",description:"0:断开;1:合闸;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863491",templateId:"2010957702564474882",tag:"icb_ctrl",name:"外源断路器合闸控制",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0004, uint, AB]",description:"0:断开;1:合闸;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863492",templateId:"2010957702564474882",tag:"lcb_sign",name:"负载断路器反馈信号",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0005, uint, AB]",description:"0:断开;1:合闸;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863493",templateId:"2010957702564474882",tag:"lcb_ctrl",name:"负载断路器合闸控制",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0006, uint, AB]",description:"0:断开;1:合闸;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863494",templateId:"2010957702564474882",tag:"dg_sign",name:"发动机启停状态",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0007, uint, AB]",description:"0:停止;1:启动;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863495",templateId:"2010957702564474882",tag:"dg_ctrl",name:"发动机控制",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0008, uint, AB]",description:"0:停止;1:启动;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null},{id:"2010957702572863496",templateId:"2010957702564474882",tag:"ats",name:"ATS反馈信号",property:"realdata",history:"change",type:"int",offsetValue:null,scale:null,prot:"[3, 0x0009, uint, AB]",description:"0:合闸柴发;1:合闸电网;",uniqueIdentifier:null,accessType:1,isAlarm:0,createTime:null,updateTime:null}]}];for(const d of h){const u=d.pointList;u&&Array.isArray(u)&&u.length>0&&l.push({id:d.id,label:d.deviceName,data:d,children:u.map(f=>({id:f.id,label:f.name,data:{...f,nodeId:`ns=1;s=${d.deviceType}.${f.tag}`}}))})}}return l},async readPoints(l){var c,h;return(c=s.services)!=null&&c.readPoints?await((h=s.services)==null?void 0:h.readPoints(l)):[{nodeId:"ns=1;s=PV.RatReActivePowerPer",value:1,statusCode:"Good",sourceTimestamp:"2026-01-16T02:26:37.533Z",serverTimestamp:"2026-01-16T02:26:37.533Z",aa:[{vv:1},{vv1:1}]}]},async httpRequest(l){var c,h;return(c=s.services)!=null&&c.httpRequest?await((h=s.services)==null?void 0:h.httpRequest(l)):{}}};return w.provide("topoApi",a),w.provide("storage",o),w.onMounted(()=>{}),w.onBeforeUnmount(()=>{t.$reset(),i.$reset(),r.$reset()}),(l,c)=>(w.openBlock(),w.createElementBlock("div",Qci,[w.createElementVNode("div",ehi,[w.createVNode(Kxt),w.createVNode(mxt,{width:s.width,height:s.height},null,8,["width","height"]),w.createVNode(Jci)])]))}}),thi={class:"previewBox"},Rze=Yn({__name:"preview",props:{menu:{type:Object,required:!0},service:{type:Object,required:!0}},setup(n){const e=n,t=e.service,i={setItem(u,f){f!==void 0&&window.localStorage.setItem(u,JSON.stringify(f))},getItem(u){let f=window.localStorage.getItem(u);return JSON.parse(f)},removeItem(u){window.localStorage.removeItem(u)},clear(){window.localStorage.clear()}},r=w.ref(null);let s=null;const o=mG();let a=[],l=[];const c=(u,f)=>{var m;const g=s.getCellById(f);if(!g)return console.warn(f,s.toJSON()),!1;const p=g.getData();if(g&&p)if(p.dataSource.parse){let v={};(m=p.dataSource.bindNode)==null||m.forEach(y=>{const x=s.getCellById(y).getData().dataSource.fields;v[s.getCellById(y).getData().name]=Object.keys(x).reduce((L,D)=>(L[D]=null,L),{})});const _=new Function("data","$",p.dataSource.parse);p.dataSource.type=="opcua"?_({payload:u,pointTemp:p.dataSource.point},v):p.dataSource.type=="http"&&_(u,v);const b=s.toJSON().cells;for(let y in v){let C=b.find(x=>{var L;return((L=x==null?void 0:x.data)==null?void 0:L.name)===y});if(C){C=s.getCellById(C.id);const x=C.data.dataSource.fields,L=v[y];Object.keys(L).forEach(D=>{if(L[D]!==null){const E=x[D],k=L[D];C.setData(R3(C.getData(),E,k),{deep:!1})}})}}}else g.setData({text:u.value+""||"--"})},h=u=>{var f,g;if(u.params&&Array.isArray(u.params)&&u.params.length>0){let p=JSON.parse(JSON.stringify(u));delete p.params;const m={};for(let v of u.params)v.key&&(v.value&&s.getCellById(v.value)?m[v.key]=(g=(f=s.getCellById(v.value).getData())==null?void 0:f.model)==null?void 0:g.modelValue:m[v.key]=v.value);return p.params=m,p}return u},d=u=>{if(!u.cells)return!1;a.length>0&&(t.unsubscribe(a.map(g=>g.nodeId)),a=[]),l.length>0&&(l.forEach(g=>{clearInterval(g.timer),g.timer=null}),l=[]);for(let g of u.cells)if(g.data&&g.data.dataSource&&g.data.dataSource.type!=="none"){const p=h(g.data.dataSource);if(p.type=="opcua"&&p.path&&p.parse)try{t.readPoints([p.path]).then(m=>{m&&m.length>0&&c(m[0],g.id)}),a.push({nodeId:p.path,cellId:g.id,callBack:(m,v)=>c(m,v)})}catch(m){ElMessage.error("解析失败!"),console.error(m)}if(p.type=="http"&&p.httpUrl)try{p.httpTimer>-1&&(t.httpRequest(p).then(m=>{m&&p.parse&&c(m,g.id)}),p.httpTimer>0&&l.push({nodeId:g.id,dataSource:p,timer:null}))}catch(m){ElMessage.error("解析失败!"),console.log(m)}}const f=a.map(g=>g.nodeId);f.length!==0&&(t.subscribe(f),t.onEvent(g=>{g.event==="data-changed"&&g.payload&&g.payload.nodeId&&a.forEach((p,m)=>{p.nodeId==g.payload.nodeId&&a[m].callBack(g.payload,p.cellId)})})),l.forEach(g=>{const p=setInterval(()=>{t.httpRequest(g.dataSource).then(m=>{m&&g.dataSource.parse&&c(m,g.nodeId)})},g.dataSource.httpTimer*1e3);g.timer=p})};return w.provide("topoApi",t),w.provide("storage",i),w.provide("graph",()=>s),w.watch(()=>e.menu,u=>{s&&(s.clearCells(),s.resize(u.style.width,u.style.height),s.fromJSON(u.value),s.drawBackground({color:u.style.backgroundColor,image:u.style.backgroundImage,size:"cover"}),d(u.value))},{deep:!0}),w.onMounted(()=>{const{width:u,height:f}=e.menu.style;s=new be({container:r.value,width:u,height:f,interacting:!1,selecting:!1,keyboard:!1,mousewheel:!1,panning:!1}),zZ(),s.fromJSON(e.menu.value),s.drawBackground({color:e.menu.style.backgroundColor,image:e.menu.style.backgroundImage,size:"cover"})}),w.onBeforeUnmount(()=>{a.length>0&&(t.unsubscribe(a.map(u=>u.path)),a=[]),l.length>0&&(l.forEach(u=>{clearInterval(u.timer),u.timer=null}),l=[]),s&&s.dispose()}),(u,f)=>(w.openBlock(),w.createElementBlock("div",thi,[w.createElementVNode("div",{ref_key:"container",ref:r,class:"ems-preview"},null,512),w.createVNode(w.unref(o))]))}},[["__scopeId","data-v-2f75cf45"]]);window._iconfont_svg_string_5087053='<svg><symbol id="icon-radio-on-full" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" ></path></symbol><symbol id="icon-bingtu" viewBox="0 0 1024 1024"><path d="M912.8 311.2C943.2 372 960 440 960 512c0 247.2-200.8 448-448 448S64 759.2 64 512 264 64 512 64v478.4l400.8-231.2zM576 62.4v363.2l304-175.2c-69.6-99.2-178.4-169.6-304-188z" ></path></symbol><symbol id="icon-zhexiantu" viewBox="0 0 1024 1024"><path d="M56.888889 938.666667V56.888889h56.888889v853.333333h853.333333v56.888889H56.888889z" fill="#333333" ></path><path d="M193.422222 648.533333l-45.511111-45.511111L398.222222 358.4l199.111111 199.111111 347.022223-352.711111 45.511111 45.511111-392.533334 386.844445L398.222222 438.044444z" fill="#333333" ></path></symbol><symbol id="icon-biaodanzujian-shurukuang" viewBox="0 0 1024 1024"><path d="M635.328 736a32 32 0 0 0-32-32H96V352h507.2a32 32 0 1 0 0-64H64a32 32 0 0 0-32 32v416a32 32 0 0 0 32 32h539.328a32 32 0 0 0 32-32zM960 288h-92.928a32 32 0 1 0 0 64H928v352h-60.288a32 32 0 1 0 0 64H960a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32z" ></path><path d="M832.672 848H768v-640h64.288a32 32 0 1 0 0-64H639.36a32 32 0 1 0 0 64H704v640h-64.64a32 32 0 1 0 0 64h193.28a32 32 0 1 0 0.032-64z" ></path></symbol><symbol id="icon-biaodanzujian-biaoge" viewBox="0 0 1024 1024"><path d="M96 160v704h832V160H96z m309.344 400.192v-160h192v160h-192z m192 64V800h-192v-175.808h192zM160 400.192h181.344v160H160v-160z m501.344 0H864v160h-202.656v-160zM864 224v112.192H160V224h704zM160 624.192h181.344V800H160v-175.808zM661.344 800v-175.808H864V800h-202.656z" ></path></symbol><symbol id="icon-biaodanzujian-xialakuang" viewBox="0 0 1024 1024"><path d="M960 128H64a32 32 0 0 0-32 32v416a32 32 0 0 0 32 32h896a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32z m-32 416H96V192h832v352zM896 647.264a32 32 0 0 0-32 32V832H160v-152.736a32 32 0 1 0-64 0V864a32 32 0 0 0 32 32h768a32 32 0 0 0 32-32v-184.736a32 32 0 0 0-32-32z" ></path><path d="M685.92 470.368a31.904 31.904 0 0 0 45.728 0l123.232-126.016a31.968 31.968 0 1 0-45.76-44.736l-100.352 102.624-100.384-102.624a32 32 0 0 0-45.76 44.736l123.296 126.016z" ></path></symbol><symbol id="icon-biaodanzujian-anniu" viewBox="0 0 1024 1024"><path d="M960 128H64a32 32 0 0 0-32 32v576a32 32 0 0 0 32 32h265.792a32 32 0 1 0 0-64H96V192h832v512h-68.192a32 32 0 1 0 0 64H960a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32z" ></path><path d="M600.704 624.128a32 32 0 0 0-44.416-1.6l-61.792 55.392-12.576-239.84 237.408 28.288-48.352 45.088a32 32 0 1 0 43.616 46.816l98.784-92.128a32 32 0 0 0-18.016-55.2l-343.616-40.928a32 32 0 0 0-35.712 33.44l18.048 344.576a32 32 0 0 0 53.312 22.112l88.64-79.424 192.544 199.648a31.968 31.968 0 1 0 46.048-44.416l-213.92-221.824z" ></path></symbol><symbol id="icon-gongyezujian-yibiaopan" viewBox="0 0 1024 1024"><path d="M512 128C264.96 128 64 328.96 64 576c0 100.544 32.544 195.52 94.08 274.688a31.968 31.968 0 1 0 50.528-39.232A380.384 380.384 0 0 1 128 576C128 364.256 300.256 192 512 192s384 172.256 384 384c0 86.144-27.872 167.584-80.64 235.456a31.904 31.904 0 0 0 5.632 44.864 31.84 31.84 0 0 0 44.864-5.632A443.264 443.264 0 0 0 960 576c0-247.04-200.96-448-448-448z" ></path><path d="M512 352a32 32 0 0 0 32-32V256a32 32 0 1 0-64 0v64a32 32 0 0 0 32 32zM241.888 421.472a32 32 0 1 0-35.776 53.056l53.056 35.776a31.936 31.936 0 0 0 44.416-8.64 32 32 0 0 0-8.64-44.416l-53.056-35.776zM810.848 423.936a32 32 0 0 0-45.152-3.168l-48.32 41.984a32 32 0 0 0 41.984 48.32l48.32-41.984a32 32 0 0 0 3.168-45.152zM607.392 736c0-2.592 0.288-5.12-0.352-7.744l-64-256c-0.352-1.44-1.28-2.496-1.824-3.84-0.864-2.144-1.632-4.256-2.944-6.176-1.12-1.664-2.528-2.944-3.904-4.352-1.504-1.536-2.912-3.008-4.704-4.224-1.76-1.184-3.712-1.888-5.664-2.688-1.44-0.608-2.624-1.6-4.224-1.984-0.512-0.128-0.992 0.032-1.504-0.064-2.048-0.416-4.128-0.288-6.272-0.288-2.112 0-4.192-0.128-6.24 0.288-0.512 0.096-1.024-0.064-1.536 0.064-1.632 0.416-2.848 1.44-4.352 2.08-1.888 0.8-3.744 1.472-5.472 2.592-1.888 1.248-3.36 2.816-4.928 4.384-1.344 1.344-2.656 2.592-3.744 4.192-1.312 1.92-2.08 4-2.944 6.144-0.544 1.344-1.472 2.432-1.856 3.872l-64 256c-0.672 2.624-0.352 5.184-0.352 7.744H416c0 1.408 0.352 2.688 0.416 4.096l0.128 1.312C419.424 791.776 460.928 832 512 832s92.576-40.224 95.456-90.592l0.128-1.312c0.064-1.376 0.416-2.688 0.416-4.096h-0.608zM512 768a31.808 31.808 0 0 1-31.552-29.824L512 611.904l31.552 126.24A31.776 31.776 0 0 1 512 768z" ></path></symbol><symbol id="icon-tubiao-qiapian" viewBox="0 0 1024 1024"><path d="M928 160H96a32 32 0 0 0-32 32v672a32 32 0 0 0 32 32h832a32 32 0 0 0 32-32V192a32 32 0 0 0-32-32z m-32 672H128V224h768v608z" ></path><path d="M230.592 448.096H544a32 32 0 1 0 0-64H230.592a32 32 0 0 0 0 64zM230.592 640.096H544a32 32 0 1 0 0-64H230.592a32 32 0 1 0 0 64zM768 704a32 32 0 0 0 32-32V350.016a32 32 0 1 0-64 0V672a32 32 0 0 0 32 32z" ></path></symbol><symbol id="icon-tubiao-zhexiantu" viewBox="0 0 1024 1024"><path d="M896 896H96a32 32 0 0 1-32-32V224a32 32 0 0 1 64 0v608h768a32 32 0 1 1 0 64z" ></path><path d="M247.008 640a32 32 0 0 1-20.992-56.192l200.992-174.24a32 32 0 0 1 42.272 0.288l172.128 153.44 229.088-246.304a32 32 0 0 1 46.88 43.616l-250.432 269.216a31.936 31.936 0 0 1-44.704 2.08l-174.56-155.52-179.744 155.84a31.872 31.872 0 0 1-20.928 7.776z" ></path></symbol><symbol id="icon-tubiao-zhuzhuangtu" viewBox="0 0 1024 1024"><path d="M896 896H96a32 32 0 0 1-32-32V224a32 32 0 0 1 64 0v608h768a32 32 0 1 1 0 64z" ></path><path d="M512 752.16a32 32 0 0 1-32-32V350.624a32 32 0 0 1 64 0v369.536a32 32 0 0 1-32 32zM320 752.576a32 32 0 0 1-32-32V512a32 32 0 0 1 64 0v208.576a32 32 0 0 1-32 32zM896 752.672a32 32 0 0 1-32-32V163.488a32 32 0 1 1 64 0v557.184a32 32 0 0 1-32 32zM704 752.736a32 32 0 0 1-32-32V224a32 32 0 1 1 64 0v496.736a32 32 0 0 1-32 32z" ></path></symbol><symbol id="icon-riqifanwei" viewBox="0 0 1024 1024"><path d="M213.333333 138.666667V213.333333h-21.333333a52.565333 52.565333 0 0 0-53.333333 51.712v568.576c0 28.586667 23.893333 51.712 53.333333 51.712h640a52.565333 52.565333 0 0 0 53.333333-51.712V265.045333A52.565333 52.565333 0 0 0 832 213.333333H810.666667v-74.666666h37.376c61.781333 0 111.957333 49.066667 111.957333 109.482666v602.368c0 60.416-50.176 109.482667-112.042667 109.482667H176.128c-61.866667 0-112.042667-49.066667-112.042667-109.482667V248.149333c0-60.416 50.176-109.482667 112.042667-109.482666H213.333333zM363.690667 362.666667v307.797333h73.642666v65.536h-221.866666v-65.536h74.069333V446.293333l-76.202667 19.114667v-67.584l150.357334-35.157333z m373.333333 0v307.797333H810.666667v65.536H588.8v-65.536h74.069333V446.293333l-76.202666 19.114667v-67.584l150.357333-35.157333zM586.666667 512v74.666667h-149.333334V512h149.333334zM736 64v224H661.333333V64h74.666667zM362.666667 64v224h-74.666667V64h74.666667z m224 74.666667V213.333333h-149.333334v-74.666666h149.333334z" fill="#5271FF" ></path></symbol><symbol id="icon-riqikuang" viewBox="0 0 1024 1024"><path d="M597 597h255v255H597z" ></path><path d="M937 87h-85V2H724.5v85h-425V2H172v85H87c-46.9 0-85 38.1-85 85v765c0 46.9 38.1 85 85 85h850c46.9 0 85-38.1 85-85V172c0-46.9-38.1-85-85-85z m0 850H87V342h850v595z" ></path></symbol><symbol id="icon-jiesuo1" viewBox="0 0 1024 1024"><path d="M768.25422 0q48.810328 0 94.061569 18.303873t80.333664 50.33565 56.436941 74.740814 21.354518 91.519364l0 150.49851-123.042701 0 0-122.025819q0-64.063555-36.099305-99.654419t-97.112214-35.590864q-54.911619 0-88.468719 35.590864t-33.5571 99.654419l0 124.059583-128.12711 0 0-152.532274q0-48.810328 19.320755-91.519364t53.386296-74.740814 80.333664-50.33565 101.179742-18.303873zM766.220457 693.513406l0 87.451837 0 47.793446q0 27.455809-9.660377 51.860973t-26.438928 41.692155-39.658391 27.455809-50.33565 10.168818l-514.542205 0q-27.455809 0-49.82721-9.660377t-38.641509-26.438928-24.913605-39.14995-8.643496-47.793446l0-323.368421q0-28.472691 19.829196-47.793446t46.268123-19.320755l629.449851 0q28.472691 0 47.793446 19.320755t19.320755 47.793446l0 179.988083z" ></path></symbol><symbol id="icon-jianlizuhe1" viewBox="0 0 1024 1024"><path d="M891.8 65h-632c-35.5 0-64.4 28.8-64.4 64.4v125.3h-66.3c-35.5 0-64.4 28.8-64.4 64.4v575.6c0 35.5 28.8 64.4 64.4 64.4h572.6c35.5 0 64.4-28.8 64.4-64.4v-65.3h125.6c35.5 0 64.4-28.8 64.4-64.4V129.4c0.1-35.6-28.7-64.4-64.3-64.4zM702.2 894.6v0.1c0 0.1-0.2 0.2-0.2 0.2H129.1c-0.1 0-0.2-0.2-0.2-0.2V319v-0.1c0-0.1 0.2-0.2 0.2-0.2h0.1l66.3 0.1S194 794.1 194 797.4c0 17.7 14.3 32 32 32h476.2v65.2zM259.5 129.2c0-0.1 0.2-0.2 0.2-0.2h632.2c0.1 0 0.2 0.2 0.2 0.2V765.1c0 0.1-0.2 0.2-0.2 0.2H259.5V129.2z" ></path></symbol><symbol id="icon-suoding1" viewBox="0 0 1024 1024"><path d="M860.069521 429.487623h-73.242947v-170.422692C786.826574 116.337371 670.888872 0.272064 528.240764 0.272064c-142.650515 0-258.720638 116.065307-258.720638 258.792867v170.422692H196.339779c-35.281619 0-63.879618 28.612445-63.879618 63.91814v466.606275c0 35.368294 28.597999 63.983146 63.879618 63.983147h663.79234c35.29125 0 63.821834-28.614852 63.821835-63.983147V493.405763c-0.004815-35.310511-28.590776-63.91814-63.884433-63.91814zM564.114664 738.867504v101.889098c0 4.552855-3.765556 8.388233-8.385825 8.388233h-54.91355c-4.678053 0-8.446016-3.837785-8.446017-8.388233v-101.889098c-25.800316-13.201114-43.672259-39.665939-43.672259-70.68362 0-43.888947 35.613874-79.584681 79.481153-79.584682 43.932285 0 79.548567 35.695734 79.548566 79.584682 0.062599 31.020089-17.811752 57.482507-43.612068 70.68362z m123.476036-309.379881H368.883605v-166.202091c0-87.912723 71.55278-159.501618 159.417351-159.501618s159.287337 71.588895 159.287337 159.501618l0.002407 166.202091z" ></path></symbol><symbol id="icon-xingzhuang-juxing" viewBox="0 0 1024 1024"><path d="M864 896H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h704a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zM192 832h640V192H192v640z" ></path></symbol><symbol id="icon-shuzhi" viewBox="0 0 1024 1024"><path d="M921.6 21.162667H102.4c-37.546667 0-68.266667 30.788267-68.266667 68.4032v819.950933c0 37.546667 30.72 68.334933 68.266667 68.334933h819.2c37.546667 0 68.266667-30.72 68.266667-68.266666V89.4976c0-37.546667-30.72-68.334933-68.266667-68.334933z m0 854.2208c0 20.48-13.653333 34.133333-34.133333 34.133333h-750.933334c-20.48 0-34.133333-13.653333-34.133333-34.133333V123.767467c0-20.548267 13.653333-34.2016 34.133333-34.2016h750.933334c20.48 0 34.133333 13.653333 34.133333 34.133333v751.616z" ></path><path d="M274.568533 365.704533h36.0448V658.090667h-47.9232V423.458133a165.546667 165.546667 0 0 1-66.7648 35.6352v-47.5136c13.1072-3.2768 27.0336-9.0112 41.7792-17.2032 14.7456-9.0112 27.0336-18.432 36.864-28.672z m200.2944-5.7344c28.2624 0 51.6096 8.192 70.0416 24.576 18.0224 16.384 27.0336 37.2736 27.0336 63.488 0 25.3952-9.8304 48.3328-28.672 69.2224-11.4688 12.288-31.9488 27.8528-60.6208 47.104-29.9008 19.6608-47.9232 36.864-54.4768 51.6096h144.1792v42.1888H368.366933c0-29.9008 9.4208-55.7056 29.0816-77.824 10.6496-12.288 33.1776-30.3104 67.1744-53.6576 18.8416-13.1072 31.9488-24.1664 40.1408-32.768 12.6976-14.336 19.2512-29.9008 19.2512-46.2848 0-15.9744-4.5056-27.8528-12.6976-35.6352-8.6016-7.7824-21.2992-11.4688-38.0928-11.4688-18.0224 0-31.5392 6.144-40.5504 18.432-9.0112 11.4688-13.9264 29.0816-14.7456 52.0192H370.005333c0.4096-32.768 9.8304-58.9824 28.672-79.0528 19.2512-21.2992 44.6464-31.9488 76.1856-31.9488z m244.1216 0c29.4912 0 53.6576 6.9632 71.68 21.2992 17.6128 14.336 26.624 33.9968 26.624 59.392 0 31.9488-16.384 53.248-48.7424 63.8976 17.2032 5.3248 30.72 13.1072 39.7312 23.7568a61.986133 61.986133 0 0 1 14.7456 42.5984c0 27.0336-9.4208 49.152-28.2624 66.3552-19.6608 17.6128-45.4656 26.624-77.4144 26.624-30.3104 0-54.8864-7.7824-73.3184-23.3472-20.48-17.2032-31.9488-42.5984-34.4064-75.3664h48.7424c0.8192 18.8416 6.5536 33.5872 18.0224 43.8272 10.24 9.4208 23.7568 14.336 40.5504 14.336 18.432 0 33.1776-5.3248 43.8272-15.5648a47.240533 47.240533 0 0 0 14.336-34.816c0-16.7936-5.3248-29.0816-15.1552-36.864-9.8304-8.192-24.1664-11.8784-43.008-11.8784h-20.48V488.106667h20.48c17.2032 0 30.3104-3.6864 39.3216-11.0592 8.6016-7.3728 13.1072-18.432 13.1072-32.768 0-14.336-4.096-24.9856-11.8784-32.3584-8.6016-7.3728-21.2992-11.0592-38.0928-11.0592-17.2032 0-30.3104 4.096-39.7312 12.6976-9.8304 8.6016-15.5648 21.7088-17.2032 39.3216h-47.104c2.4576-29.4912 13.1072-52.4288 32.768-68.8128 18.432-16.384 42.1888-24.1664 70.8608-24.1664z" ></path></symbol><symbol id="icon-xianduan" viewBox="0 0 1024 1024"><path d="M0.034239 975.503207L976.222236 0l48.400922 48.435162L48.435162 1023.945217z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M512.122 272.146c-247.216 0-412.027 247.216-412.027 247.216s164.811 247.216 412.027 247.216c247.216 0 412.027-247.216 412.027-247.216S759.217 272.146 512.122 272.146z m0 410.207c-90.537 0-163.962-73.424-163.962-163.962s73.424-163.962 163.962-163.962c90.537 0 163.962 73.424 163.962 163.962-0.122 90.658-73.424 163.962-163.962 163.962z m-82.406-163.476c0 21.482 8.86 42.841 24.03 58.012s36.53 24.03 58.012 24.03 42.841-8.86 58.012-24.03c15.17-15.17 24.03-36.53 24.03-58.012s-8.86-42.841-24.03-58.012c-15.17-15.17-36.53-24.03-58.012-24.03s-42.841 8.86-58.012 24.03c-15.17 15.292-24.03 36.53-24.03 58.012z" ></path></symbol><symbol id="icon-tubiao" viewBox="0 0 1024 1024"><path d="M437.996 697.519V586.722H327.195c-61.187 0-110.797 49.61-110.797 110.797 0 61.195 49.61 110.797 110.797 110.797 61.192 0 110.801-49.602 110.801-110.797z m55.399 0c0 91.789-74.411 166.195-166.2 166.195C235.41 863.714 161 789.308 161 697.519c0-91.789 74.41-166.195 166.195-166.195h166.2v166.195z m92.328 0V586.722H696.52c61.195 0 110.796 49.61 110.796 110.797 0 61.195-49.601 110.797-110.796 110.797-61.188 0-110.797-49.602-110.797-110.797z m-55.399 0c0 91.789 74.41 166.195 166.196 166.195 91.789 0 166.199-74.406 166.199-166.195 0-91.789-74.41-166.195-166.199-166.195H530.324v166.195z m-92.328-369.324v110.801H327.195c-61.187 0-110.797-49.61-110.797-110.801 0-61.188 49.61-110.797 110.797-110.797 61.192 0 110.801 49.609 110.801 110.797z m55.399 0c0-91.785-74.411-166.195-166.2-166.195C235.41 162 161 236.41 161 328.195c0 91.789 74.41 166.199 166.195 166.199h166.2V328.195z m92.328 0v110.801H696.52c61.195 0 110.796-49.61 110.796-110.801 0-61.188-49.601-110.797-110.796-110.797-61.188 0-110.797 49.609-110.797 110.797z m-55.399 0C530.324 236.41 604.734 162 696.52 162c91.789 0 166.199 74.41 166.199 166.195 0 91.789-74.41 166.199-166.199 166.199H530.324V328.195z m0 0" ></path></symbol><symbol id="icon-tupian" viewBox="0 0 1024 1024"><path d="M335.36 440.32c38.4 0 71.68-30.72 71.68-71.68 0-38.4-30.72-71.68-71.68-71.68-38.4 0-71.68 30.72-71.68 71.68 2.56 40.96 33.28 71.68 71.68 71.68z m0 0M652.8 396.8L445.44 691.2 337.92 540.16 158.72 793.6h704L652.8 396.8z m0 0" ></path><path d="M934.4 107.52H89.6c-20.48 0-35.84 15.36-35.84 35.84V883.2c0 20.48 15.36 35.84 35.84 35.84h844.8c20.48 0 35.84-15.36 35.84-35.84V143.36c0-20.48-15.36-35.84-35.84-35.84z m-35.84 739.84H125.44V176.64h775.68v670.72h-2.56z m0 0" ></path></symbol><symbol id="icon-wenzi" viewBox="0 0 1024 1024"><path d="M64.1 66v303.7l39.5-1.3c13.6-110.8 102.6-186.4 153.2-199 50.7-12.6 148.3 1.1 148.3 1.1s-1.3 625.2-1.3 669.2c0 44.1-59.3 63-59.3 63l-79 1.3-1.2 55.4h493.1v-54.1h-90.2c-40.8-3.8-65.4-56.7-65.4-56.7l1.1-684.5s61.8-11.3 150.8 5.1c89 16.4 164.3 204.1 164.3 204.1h39.5V66H64.1z" ></path></symbol><symbol id="icon-xinjian" viewBox="0 0 1024 1024"><path d="M618 958.5H202c-44.8 0-81.3-34.1-81.3-76v-740c0-41.9 36.5-76 81.3-76h610.5c44.8 0 81.3 34.1 81.3 76v521.9c0 12.8-10.4 23.1-23.1 23.1s-23.1-10.4-23.1-23.1V142.5c0-16.4-15.7-29.7-35-29.7H202c-19.3 0-35 13.3-35 29.7v740c0 16.4 15.7 29.7 35 29.7h416c12.8 0 23.1 10.4 23.1 23.1 0.1 12.8-10.3 23.2-23.1 23.2z" ></path><path d="M738.4 360.5H276c-12.8 0-23.1-10.4-23.1-23.1 0-12.8 10.4-23.1 23.1-23.1h462.5c12.8 0 23.1 10.4 23.1 23.1 0 12.8-10.4 23.1-23.2 23.1zM584.3 595.1H276c-12.8 0-23.1-10.4-23.1-23.1 0-12.8 10.4-23.1 23.1-23.1h308.3c12.8 0 23.1 10.4 23.1 23.1 0 12.7-10.3 23.1-23.1 23.1zM878.8 826.3H614.6c-12.8 0-23.1-10.4-23.1-23.1 0-12.8 10.4-23.1 23.1-23.1h264.3c12.8 0 23.1 10.4 23.1 23.1 0 12.8-10.4 23.1-23.2 23.1z" ></path><path d="M746.7 958.5c-12.8 0-23.1-10.4-23.1-23.1V671.1c0-12.8 10.4-23.1 23.1-23.1 12.8 0 23.1 10.4 23.1 23.1v264.3c0 12.7-10.3 23.1-23.1 23.1z" ></path></symbol><symbol id="icon-qingkong" viewBox="0 0 1024 1024"><path d="M274.56 798.997333l19.434667-25.130666-33.792 68.565333a18.133333 18.133333 0 0 0 11.562666 25.536l59.733334 16a18.133333 18.133333 0 0 0 17.28-4.48c20.522667-19.818667 35.626667-35.989333 45.290666-48.469333l19.456-25.130667-33.813333 68.565333a18.133333 18.133333 0 0 0 11.562667 25.536l84.48 22.634667a18.133333 18.133333 0 0 0 17.28-4.48c20.522667-19.84 35.626667-35.989333 45.269333-48.469333l19.456-25.130667-33.813333 68.565333A18.133333 18.133333 0 0 0 535.530667 938.666667l72.106666 19.328a18.133333 18.133333 0 0 0 17.28-4.48c20.522667-19.84 35.626667-36.010667 45.269334-48.490667l19.456-25.130667-33.813334 68.586667a18.133333 18.133333 0 0 0 11.584 25.514667l86.421334 23.338666 3.84-0.213333c13.269333-0.704 29.056-5.034667 43.84-12.8 29.781333-15.701333 48.170667-43.2 52.181333-78.250667 2.133333-18.517333 4.778667-38.549333 8.405333-63.530666 1.642667-11.221333 2.944-20.010667 6.229334-41.834667 11.050667-73.322667 14.634667-101.034667 17.130666-133.674667l0.938667-12.373333 2.837333-2.922667 12.330667-1.344a41.813333 41.813333 0 0 0 24.810667-11.221333c10.730667-10.24 14.805333-25.386667 11.093333-42.197333l-37.546667-171.584c-3.029333-13.696-11.264-27.946667-23.146666-39.829334-11.648-11.626667-25.92-20.138667-39.893334-23.893333L723.626667 331.306667l-2.261334-3.925334L774.250667 130.133333c8.32-31.061333-11.754667-63.744-44.970667-72.64l-79.509333-21.312c-33.194667-8.896-66.922667 9.365333-75.264 40.426667l-52.842667 197.269333-3.925333 2.261334-118.101334-31.637334c-13.994667-3.754667-30.634667-3.498667-46.506666 0.746667-16.256 4.352-30.506667 12.586667-39.957334 22.933333l-118.314666 129.792c-11.605333 12.714667-15.658667 27.84-11.52 42.090667 4.16 14.229333 15.850667 25.194667 32.896 30.528l13.610666 4.266667 2.133334 3.882666-3.626667 13.802667c-21.12 79.850667-52.885333 136.917333-85.717333 150.890667-47.530667 20.202667-72.938667 49.429333-78.421334 85.034666-5.034667 32.682667 9.28 67.114667 37.589334 91.541334l22.037333 8.341333 74.666667 20.010667a42.666667 42.666667 0 0 0 41.216-11.050667c15.274667-15.274667 26.88-28.032 34.837333-38.293333z m551.381333-396.565333c14.144 3.797333 29.952 19.2 32.768 32l34.56 157.781333a10.666667 10.666667 0 0 1-13.184 12.586667L240.64 433.493333a10.666667 10.666667 0 0 1-5.12-17.493333l108.8-119.36c8.832-9.685333 30.229333-15.146667 44.373333-11.349333l141.333334 37.866666a21.333333 21.333333 0 0 0 26.133333-15.082666l58.304-217.642667a21.333333 21.333333 0 0 1 26.133333-15.082667l77.056 20.650667a21.333333 21.333333 0 0 1 15.082667 26.133333l-58.325333 217.642667a21.333333 21.333333 0 0 0 15.082666 26.112l136.448 36.565333zM315.456 701.568c-33.664 45.141333-64.597333 79.082667-92.8 101.802667l-5.909333 4.778666-2.837334 0.597334-88.106666-24.106667-2.922667-3.2c-13.034667-14.165333-19.370667-31.04-16.981333-46.592 3.285333-21.333333 22.058667-39.338667 53.205333-52.586667 31.722667-13.482667 59.818667-47.104 82.922667-99.904 10.026667-22.954667 18.88-48.725333 26.389333-76.586666l3.882667-14.4 3.904-2.261334 566.165333 151.701334 2.346667 3.306666-0.789334 12.224c-1.984 30.592-30.336 229.397333-32.128 244.906667-2.346667 20.416-11.306667 34.986667-27.605333 44.394667a73.237333 73.237333 0 0 1-21.397333 8.106666l-5.013334 0.725334-60.373333-16.170667 11.242667-20.288c8.277333-14.976 22.656-43.84 43.093333-86.613333a21.12 21.12 0 0 0-9.962667-28.16l-3.136-1.493334a21.333333 21.333333 0 0 0-26.261333 6.485334c-33.642667 45.056-64.533333 78.912-92.672 101.546666l-5.909333 4.757334-2.837334 0.597333-52.544-14.08 11.114667-20.266667c3.562667-6.485333 7.04-13.013333 10.453333-19.626666 7.04-13.504 17.898667-35.797333 32.597334-66.816a21.290667 21.290667 0 0 0-9.984-28.309334l-3.029334-1.450666a21.333333 21.333333 0 0 0-26.368 6.442666c-33.6 45.013333-64.469333 78.826667-92.608 101.482667l-5.909333 4.757333-2.837333 0.597334-52.138667-13.973334 11.114667-20.266666c3.242667-5.888 6.72-12.416 10.453333-19.626667 6.997333-13.461333 17.962667-35.946667 32.896-67.434667a20.970667 20.970667 0 0 0-10.112-28.010666l-3.328-1.536a21.333333 21.333333 0 0 0-26.069333 6.613333c-33.642667 45.056-64.554667 78.976-92.778667 101.696l-5.909333 4.757333-2.837334 0.597334-32.64-8.746667 11.093334-20.245333c3.541333-6.506667 7.04-13.034667 10.453333-19.626667 6.976-13.482667 17.941333-35.968 32.874667-67.456a21.056 21.056 0 0 0-10.069334-28.074667l-3.242666-1.514666a21.333333 21.333333 0 0 0-26.154667 6.549333z" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M202.666667 256h-42.666667a32 32 0 0 1 0-64h704a32 32 0 0 1 0 64H266.666667v565.333333a53.333333 53.333333 0 0 0 53.333333 53.333334h384a53.333333 53.333333 0 0 0 53.333333-53.333334V352a32 32 0 0 1 64 0v469.333333c0 64.8-52.533333 117.333333-117.333333 117.333334H320c-64.8 0-117.333333-52.533333-117.333333-117.333334V256z m224-106.666667a32 32 0 0 1 0-64h170.666666a32 32 0 0 1 0 64H426.666667z m-32 288a32 32 0 0 1 64 0v256a32 32 0 0 1-64 0V437.333333z m170.666666 0a32 32 0 0 1 64 0v256a32 32 0 0 1-64 0V437.333333z" ></path></symbol><symbol id="icon-jia" viewBox="0 0 1024 1024"><path d="M580.722174 437.990403 580.722174 78.171384 436.794158 78.171384 436.794158 437.990403 76.975139 437.990403 76.975139 581.918419 436.794158 581.918419 436.794158 941.737438 580.722174 941.737438 580.722174 581.918419 940.542216 581.918419 940.542216 437.990403Z" ></path></symbol><symbol id="icon-baocun" viewBox="0 0 1024 1024"><path d="M814.805 128a51.179 51.179 0 0 1 51.179 51.179V844.01a51.179 51.179 0 0 1-51.179 51.157H201.173a51.179 51.179 0 0 1-51.178-51.157V179.179A51.179 51.179 0 0 1 201.173 128h613.654zM329.024 434.837a51.093 51.093 0 0 1-51.179-51.093V179.157h-76.672v664.854h613.76V179.179H738.22v204.48a51.179 51.179 0 0 1-51.179 51.178H329.024z m0-51.093h357.995V179.157H329.024v204.587z m357.91 204.501a25.557 25.557 0 1 1 0.085 51.072H329.024a25.536 25.536 0 1 1 0-51.072h357.91z" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M293.632 645.248c91.456-86.784 183.552-220.544 346.88-211.584a20.8 20.8 0 0 1 20.224 20.8v59.392a21.376 21.376 0 0 0 34.432 16.64l211.2-171.2a21.376 21.376 0 0 0 0-33.28l-210.24-192a21.952 21.952 0 0 0-35.648 16.64v60.096a20.8 20.8 0 0 1-17.856 20.8c-280.704 61.76-351.36 391.104-348.992 413.696zM192 960a138.176 138.176 0 0 1-129.984-152.512L64 832V192a116.48 116.48 0 0 1 128-128c-108.8 1.024 256 0 256 0a28.224 28.224 0 0 1 29.76 27.84A35.968 35.968 0 0 1 448 128H192a53.12 53.12 0 0 0-64 64c1.536-37.504 0 640 0 640a52.8 52.8 0 0 0 64 64c49.536-0.448 640 0 640 0a52.48 52.48 0 0 0 64-64c-0.64 105.152 0-256 0-256a36.48 36.48 0 0 1 27.264-38.4A33.216 33.216 0 0 1 960 576v256a116.48 116.48 0 0 1-128 128c-50.56-0.448-640 0-640 0z" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M512 384a42.666667 42.666667 0 0 1 42.666667 42.666667v341.333333h130.986666a21.333333 21.333333 0 0 1 14.250667 5.504l2.688 2.901333a21.333333 21.333333 0 0 1-4.010667 29.866667l-165.717333 126.464a32 32 0 0 1-38.912-0.042667l-164.48-126.464A21.333333 21.333333 0 0 1 342.442667 768H469.333333v-341.333333a42.666667 42.666667 0 0 1 42.666667-42.666667z m229.674667 298.368A42.666667 42.666667 0 0 1 746.666667 597.333333H853.333333V170.666667H170.666667v426.666666h106.666666a42.666667 42.666667 0 0 1 0 85.333334H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333334V170.666667a85.333333 85.333333 0 0 1 85.333334-85.333334h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333334v426.666666a85.333333 85.333333 0 0 1-85.333334 85.333334h-106.666666z" ></path></symbol><symbol id="icon-huanyuan" viewBox="0 0 1024 1024"><path d="M909.637 478.524c-15.444-189.946-167.065-345.049-356.655-364.38-99.805-10.176-193.011 16.474-267.901 67.887l18.467-68.842c5.725-21.337-6.933-43.274-28.27-48.998s-43.274 6.934-48.998 28.271l-41.455 154.536c-5.724 21.337 6.933 43.273 28.271 48.998l154.536 41.455c21.337 5.724 43.273-6.934 48.998-28.271 5.724-21.337-6.934-43.274-28.271-48.998l-54.194-14.538c58.917-39.301 131.457-59.686 208.999-52.061 147.885 14.543 268.327 132.461 285.589 280.053 23.02 196.82-133.879 363.973-327.45 358.219-135.107-4.017-252.98-96.111-294.938-224.602-17.513-53.632-18.92-105.027-9.92-152.849 3.188-16.946-4.238-34.086-19.172-42.707l-0.049-0.028c-23.737-13.705-54.358-0.164-59.404 26.777-7.724 41.233-9.128 84.686-2.965 129.403 25.571 185.535 181.03 330.336 367.878 343.176C727.656 927.857 929.6 724.049 909.637 478.524z" ></path></symbol><symbol id="icon-menu-fold" viewBox="0 0 1024 1024"><path d="M85.312 170.688h853.376V256H85.312V170.688z m0 179.328L266.752 512l-181.44 162.048V349.952zM384 469.312h554.688v85.376H384V469.248zM85.312 768h853.376v85.312H85.312V768z" ></path></symbol><symbol id="icon-icon_image" viewBox="0 0 1024 1024"><path d="M85.333333 852.992V213.333333a42.666667 42.666667 0 0 1 42.666667-42.666666h768a42.666667 42.666667 0 0 1 42.666667 42.666666v640a42.666667 42.666667 0 0 1-42.666667 42.666667H128a42.666667 42.666667 0 0 1-42.666667-42.666667v-0.341333z m768-157.610667V256H170.666667v493.994667l127.744-127.744a42.666667 42.666667 0 0 1 47.018666-9.045334l126.293334 54.314667 184.789333-146.346667a42.666667 42.666667 0 0 1 59.52 6.485334L853.333333 695.381333zM837.418667 810.666667l-160.853334-196.48-171.818666 136.021333a42.666667 42.666667 0 0 1-43.349334 5.76l-123.093333-52.906667L230.656 810.666667h606.762667zM341.333333 512a85.333333 85.333333 0 1 1 0-170.666667 85.333333 85.333333 0 0 1 0 170.666667z" ></path></symbol><symbol id="icon-icon_chart" viewBox="0 0 1024 1024"><path d="M128 864V128H96v768h896v-32H128z" ></path><path d="M225.6 352h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128V385.6a33.6 33.6 0 0 1 33.6-33.6z" ></path><path d="M417.6 128h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128V161.6A33.6 33.6 0 0 1 417.6 128z" ></path><path d="M609.6 544h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128V577.6a33.6 33.6 0 0 1 33.6-33.6z" ></path><path d="M801.6 704h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128v-62.4a33.6 33.6 0 0 1 33.6-33.6z" ></path></symbol><symbol id="icon-jichukongjian" viewBox="0 0 1024 1024"><path d="M912 662.016l-352.256 211.392c-10.752 5.952-22.912 8.96-35.2 8.768-12.8 0-25.6-2.944-35.264-8.768L136.96 662.016c-19.456-11.712-19.456-30.656 0-42.24l59.712-35.84 271.872 163.072c15.616 9.344 35.456 14.464 55.936 14.464 20.48 0 40.32-5.12 55.936-14.464l271.872-163.136 59.712 35.84c19.456 11.712 19.456 30.592 0 42.24z" ></path><path d="M912 501.12l-352.256 211.392c-10.752 5.952-22.912 8.96-35.2 8.768-12.8 0-25.6-2.944-35.264-8.768L136.96 501.12c-19.456-11.712-19.456-30.656 0-42.24l59.712-35.904 271.872 163.136c15.616 9.344 35.456 14.464 55.936 14.464 20.48 0 40.32-5.12 55.936-14.464l271.936-163.2 59.712 35.904c19.392 11.712 19.392 30.656 0 42.24z" ></path><path d="M912 340.224L559.744 551.68c-10.752 5.952-22.912 8.96-35.2 8.768-12.8 0-25.6-2.944-35.264-8.768L136.96 340.224c-19.456-11.584-19.456-30.592 0-42.24l352.32-211.456c9.728-5.76 22.528-8.704 35.2-8.704 12.736 0 25.472 2.88 35.2 8.704l352.32 211.456c19.456 11.648 19.456 30.656 0 42.24z" ></path></symbol><symbol id="icon-icon-relativity" viewBox="0 0 1024 1024"><path d="M352 352v-192a64 64 0 0 1 64-64h448a64 64 0 0 1 64 64v448a64 64 0 0 1-64 64h-192v192a64 64 0 0 1-64 64h-448a64 64 0 0 1-64-64v-448a64 64 0 0 1 64-64h192z m64-192v192h192a64 64 0 0 1 64 64v192h192v-448h-448z m192 512h-192a64 64 0 0 1-64-64v-192h-192v448h448v-192z m0-64v-192h-192v192h192z" ></path></symbol><symbol id="icon-root-list" viewBox="0 0 1024 1024"><path d="M85.333333 85.333333h853.333334v853.333334H85.333333V85.333333z m85.333334 85.333334v682.666666h682.666666V170.666667H170.666667z m85.333333 149.333333h512v85.333333H256v-85.333333z m0 170.666667h341.333333v85.333333H256v-85.333333z" ></path></symbol><symbol id="icon-control-platform" viewBox="0 0 1024 1024"><path d="M512 36.48l426.688 237.056v476.928L512 987.456l-426.688-236.992V273.536L512 36.544zM170.688 379.52v320.704l298.624 165.952V537.6l-298.624-158.08z m384 486.656l298.624-165.952v-320.64L554.688 537.6v328.512zM512 463.744l303.744-160.832L512 134.144 208.256 302.912 512 463.744z" ></path></symbol><symbol id="icon-icon-yonghu" viewBox="0 0 1024 1024"><path d="M511.744 96a253.184 253.184 0 0 1 252.8 252.928c0 91.904-49.216 172.544-122.688 216.832 146.24 50.24 253.632 181.824 253.632 331.584a32 32 0 0 1-64 0c0-156.864-146.432-289.408-319.744-289.408C338.432 607.936 192 740.48 192 897.344a32 32 0 0 1-64 0c0-149.76 107.328-281.28 253.568-331.648a252.992 252.992 0 0 1-122.752-216.768A253.184 253.184 0 0 1 511.744 96z m0 64a189.12 189.12 0 0 0-188.928 188.928 189.12 189.12 0 0 0 188.928 188.928 189.12 189.12 0 0 0 188.8-188.928A189.12 189.12 0 0 0 511.808 160z" ></path></symbol><symbol id="icon-a-shezhi" viewBox="0 0 1024 1024"><path d="M933.868272 511.691752a140.807706 140.807706 0 0 1 90.131728-131.067068 525.562914 525.562914 0 0 0-57.334136-138.64997 139.882962 139.882962 0 0 1-184.948826-184.948826A525.562914 525.562914 0 0 0 643.067068 0a140.376159 140.376159 0 0 1-262.134136 0A525.562914 525.562914 0 0 0 242.282962 57.334136a139.882962 139.882962 0 0 1-184.948826 184.948826A506.698134 506.698134 0 0 0 0 380.932932a140.376159 140.376159 0 0 1 0 262.134136 525.562914 525.562914 0 0 0 57.334136 138.64997 139.882962 139.882962 0 0 1 184.948826 184.948826 525.562914 525.562914 0 0 0 138.64997 57.334136 140.376159 140.376159 0 0 1 262.134136 0 525.562914 525.562914 0 0 0 138.64997-57.334136 139.882962 139.882962 0 0 1 184.948826-184.948826 506.698134 506.698134 0 0 0 57.334136-138.64997A140.807706 140.807706 0 0 1 933.868272 511.691752zM511.691752 652.437809A140.437809 140.437809 0 1 1 652.437809 511.691752 140.499458 140.499458 0 0 1 511.691752 652.437809z" ></path></symbol></svg>',(n=>{var e=(t=(t=document.getElementsByTagName("script"))[t.length-1]).getAttribute("data-injectcss"),t=t.getAttribute("data-disable-injectsvg");if(!t){var i,r,s,o,a,l=function(d,u){u.parentNode.insertBefore(d,u)};if(e&&!n.__iconfont__svg__cssinject__){n.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(d){console&&console.log(d)}}i=function(){var d,u=document.createElement("div");u.innerHTML=n._iconfont_svg_string_5087053,(u=u.getElementsByTagName("svg")[0])&&(u.setAttribute("aria-hidden","true"),u.style.position="absolute",u.style.width=0,u.style.height=0,u.style.overflow="hidden",u=u,(d=document.body).firstChild?l(u,d.firstChild):d.appendChild(u))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(i,0):(r=function(){document.removeEventListener("DOMContentLoaded",r,!1),i()},document.addEventListener("DOMContentLoaded",r,!1)):document.attachEvent&&(s=i,o=n.document,a=!1,h(),o.onreadystatechange=function(){o.readyState=="complete"&&(o.onreadystatechange=null,c())})}function c(){a||(a=!0,s())}function h(){try{o.documentElement.doScroll("left")}catch{return void setTimeout(h,50)}c()}})(window);const ihi=[Efe],AH=n=>{!n||AH.installed||(n.use(vn),ihi.forEach(e=>{const t=e.name||e.__name;t&&n.component(t,e)}),AH.installed=!0)},nhi={install:AH,EmsEditor:Efe,EmsPreview:Rze};mn.EmsEditor=Efe,mn.EmsPreview=Rze,mn.default=nhi,mn.install=AH,Object.defineProperties(mn,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});