"use strict";(self["webpackChunkscd_tools_ui"]=self["webpackChunkscd_tools_ui"]||[]).push([[290],{4290:function(e,t){
/*! LeaderLine v1.0.7 (c) anseki https://anseki.github.io/leader-line/ */
var n=function(){var e,t,n,a,i,o,l,r,s,u,h,p,c,d,f,y,m,S,g,_,v,E,b,x="leader-line",k=1,w=2,O=3,M=4,I={top:k,right:w,bottom:O,left:M},C=1,A=2,L=3,V=4,P=5,N={straight:C,arc:A,fluid:L,magnet:V,grid:P},T="behind",W=x+"-defs",B='',R={disc:{elmId:"leader-line-disc",noRotate:!0,bBox:{left:-5,top:-5,width:10,height:10,right:5,bottom:5},widthR:2.5,heightR:2.5,bCircle:5,sideLen:5,backLen:5,overhead:0,outlineBase:1,outlineMax:4},square:{elmId:"leader-line-square",noRotate:!0,bBox:{left:-5,top:-5,width:10,height:10,right:5,bottom:5},widthR:2.5,heightR:2.5,bCircle:5,sideLen:5,backLen:5,overhead:0,outlineBase:1,outlineMax:4},arrow1:{elmId:"leader-line-arrow1",bBox:{left:-8,top:-8,width:16,height:16,right:8,bottom:8},widthR:4,heightR:4,bCircle:8,sideLen:8,backLen:8,overhead:8,outlineBase:2,outlineMax:1.5},arrow2:{elmId:"leader-line-arrow2",bBox:{left:-7,top:-8,width:11,height:16,right:4,bottom:8},widthR:2.75,heightR:4,bCircle:8,sideLen:8,backLen:7,overhead:4,outlineBase:1,outlineMax:1.75},arrow3:{elmId:"leader-line-arrow3",bBox:{left:-4,top:-5,width:12,height:10,right:8,bottom:5},widthR:3,heightR:2.5,bCircle:8,sideLen:5,backLen:4,overhead:8,outlineBase:1,outlineMax:2.5},hand:{elmId:"leader-line-hand",bBox:{left:-3,top:-12,width:40,height:24,right:37,bottom:12},widthR:10,heightR:6,bCircle:37,sideLen:12,backLen:3,overhead:37},crosshair:{elmId:"leader-line-crosshair",noRotate:!0,bBox:{left:-96,top:-96,width:192,height:192,right:96,bottom:96},widthR:48,heightR:48,bCircle:96,sideLen:96,backLen:96,overhead:0}},F={behind:T,disc:"disc",square:"square",arrow1:"arrow1",arrow2:"arrow2",arrow3:"arrow3",hand:"hand",crosshair:"crosshair"},G={disc:"disc",square:"square",arrow1:"arrow1",arrow2:"arrow2",arrow3:"arrow3",hand:"hand",crosshair:"crosshair"},D=[k,w,O,M],z="auto",j={x:"left",y:"top",width:"width",height:"height"},H=80,U=4,Z=5,Y=120,X=8,q=3.75,Q=10,K=30,J=.5522847,$=.25*Math.PI,ee=/^\s*(\-?[\d\.]+)\s*(\%)?\s*$/,te="http://www.w3.org/2000/svg",ne="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style&&!window.navigator.msPointerEnabled,ae=!ne&&!!document.uniqueID,ie="MozAppearance"in document.documentElement.style,oe=!(ne||ie||!window.chrome||!window.CSS),le=!ne&&!ae&&!ie&&!oe&&!window.chrome&&"WebkitAppearance"in document.documentElement.style,re=ae||ne?.2:.1,se={path:L,lineColor:"coral",lineSize:4,plugSE:[T,"arrow1"],plugSizeSE:[1,1],lineOutlineEnabled:!1,lineOutlineColor:"indianred",lineOutlineSize:.25,plugOutlineEnabledSE:[!1,!1],plugOutlineSizeSE:[1,1]},ue=(v={}.toString,E={}.hasOwnProperty.toString,b=E.call(Object),function(e){return e&&"[object Object]"===v.call(e)&&(!(e=Object.getPrototypeOf(e))||(e=e.hasOwnProperty("constructor")&&e.constructor)&&"function"==typeof e&&E.call(e)===b)}),he=Number.isFinite||function(e){return"number"==typeof e&&window.isFinite(e)},pe=(d={ease:[.25,.1,.25,1],linear:[0,0,1,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},f=1e3/60/2,y=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,f)},m=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||function(e){clearTimeout(e)},S=Number.isFinite||function(e){return"number"==typeof e&&window.isFinite(e)},g=[],_=0,{add:function(e,t,n,a,i,o,l){var r,s,u,h,p,c,y,m,S,v,E=++_;function b(t,n){return{value:e(n),timeRatio:t,outputRatio:n}}if("string"==typeof i&&(i=d[i]),e=e||function(){},n=this._endIndex||this._string[this._currentIndex]<"0"||"9"=this._endIndex||this._string[this._currentIndex]<"0"||"9"=this._endIndex)return null;var e=null,t=this._string[this._currentIndex];if(this._currentIndex+=1,"0"===t)e=0;else{if("1"!==t)return null;e=1}return this._skipOptionalSpacesOrDelimiter(),e}};var r=e.SVGPathElement.prototype.setAttribute,s=e.SVGPathElement.prototype.removeAttribute,u=e.Symbol?e.Symbol():"__cachedPathData",h=e.Symbol?e.Symbol():"__cachedNormalizedPathData",p=function(e,t,n,a,i,o,l,r,s,u){function h(e,t,n){return{x:e*Math.cos(n)-t*Math.sin(n),y:e*Math.sin(n)+t*Math.cos(n)}}var c=Math.PI*l/180,d=[];u?(v=u[0],E=u[1],g=u[2],_=u[3]):(e=(S=h(e,t,-c)).x,t=S.y,1<(S=(m=(e-(n=(y=h(n,a,-c)).x))/2)*m/(i*i)+(f=(t-(a=y.y))/2)*f/(o*o))&&(i*=S=Math.sqrt(S),o*=S),y=i*i,S=o*o,g=(y=(r===s?-1:1)*Math.sqrt(Math.abs((y*S-y*f*f-S*m*m)/(y*f*f+S*m*m))))*i*f/o+(e+n)/2,_=y*-o*m/i+(t+a)/2,v=Math.asin(parseFloat(((t-_)/o).toFixed(9))),E=Math.asin(parseFloat(((a-_)/o).toFixed(9))),e120*Math.PI/180&&(f=E,y=n,m=a,E=s&&v=n.duration&&n.count&&n.loopsLeft<=1)return o=n.frames[n.lastFrame=n.reverse?0:n.frames.length-1],n.frameCallback(o.value,!0,o.timeRatio,o.outputRatio),void(n.framesStart=null);if(a>n.duration){if(i=Math.floor(a/n.duration),n.count){if(i>=n.loopsLeft)return o=n.frames[n.lastFrame=n.reverse?0:n.frames.length-1],n.frameCallback(o.value,!0,o.timeRatio,o.outputRatio),void(n.framesStart=null);n.loopsLeft-=i}n.framesStart+=n.duration*i,a=e-n.framesStart}n.reverse&&(a=n.duration-a),o=n.frames[n.lastFrame=Math.round(a/f)],!1!==n.frameCallback(o.value,!1,o.timeRatio,o.outputRatio)?t=!0:n.framesStart=null}})),t&&(c=y.call(window,be))}function xe(e,t){e.framesStart=Date.now(),null!=t&&(e.framesStart-=e.duration*(e.reverse?1-t:t)),e.loopsLeft=e.count,e.lastFrame=null,be()}function ke(e,t){var n,a;return typeof e!=typeof t||(n=ue(e)?"obj":Array.isArray(e)?"array":"")!=(ue(t)?"obj":Array.isArray(t)?"array":"")||("obj"===n?ke(a=Object.keys(e).sort(),Object.keys(t).sort())||a.some((function(n){return ke(e[n],t[n])})):"array"===n?e.length!==t.length||e.some((function(e,n){return ke(e,t[n])})):e!==t)}function we(e){return e&&(ue(e)?Object.keys(e).reduce((function(t,n){return t[n]=we(e[n]),t}),{}):Array.isArray(e)?e.map(we):e)}function Oe(e){var t,n,a,i=1,o=e=(e+"").trim();function l(e){var t=1;e=ee.exec(e);return e&&(t=parseFloat(e[1]),e[2]?t=0<=t&&t<=100?t/100:1:(t<0||1=Math.abs(a)?0<=t?w:M:0<=a?O:k))}))),m.position_path!==S.position_path||m.position_lineStrokeWidth!==S.position_lineStrokeWidth||[0,1].some((function(e){return m.position_plugOverheadSE[e]!==S.position_plugOverheadSE[e]||(n=g[e],a=S.position_socketXYSE[e],n.x!==a.x||n.y!==a.y||n.socketId!==a.socketId)||(n=t[e],a=S.position_socketGravitySE[e],(e=null==n?"auto":Array.isArray(n)?"array":"number")!=(null==a?"auto":Array.isArray(a)?"array":"number")||("array"==e?n[0]!==a[0]||n[1]!==a[1]:n!==a));var n,a}))){switch(e.pathList.baseVal=a=[],e.pathList.animVal=null,m.position_path){case C:a.push([E(g[0]),E(g[1])]);break;case A:c="number"==typeof t[0]&&0U?(m.position_lineStrokeWidth-U)*Z:0),e.socketId===k?{x:0,y:-(i=(i=(e.y-n.y)/2)=t.x:t.dirId===o?e.y>=t.y:e.x<=t.x}function d(e,t){return t.dirId===n||t.dirId===o?e.x===t.x:e.y===t.y}function f(e){return e[0]?{contain:0,notContain:1}:{contain:1,notContain:0}}function y(e,t,n){return Math.abs(t[n]-e[n])}function m(e,t,a){return"x"===a?e.x=K?m(s[t.notContain],s[t.contain],u[t.contain]):s[t.contain].dirId)):(a=[{x:s[0].x,y:s[0].y},{x:s[1].x,y:s[1].y}],r.forEach((function(e,t){var n=0===t?1:0,i=y(a[t],a[n],u[t]);iQ&&(s[o]-eQ&&(s[o]-en.outlineMax&&(t=n.outlineMax),t*=2*n.outlineBase,m=Xe(d,y.plugOutline_strokeWidthSE,e,t)||m,m=Xe(d,y.plugOutline_inStrokeWidthSE,e,y.plugOutline_colorTraSE[e]?t-re/(y.line_strokeWidth/se.lineSize)/f.plugSizeSE[e]*2:t/2)||m)})),m)),(n.faces||Q.line||Q.plug||Q.lineOutline||Q.plugOutline)&&(Q.faces=(_=(S=t).curStats,v=S.aplStats,E=S.events,b=!1,!_.line_altColor&&Xe(S,v,"line_color",g=_.line_color,E.apl_line_color)&&(S.lineFace.style.stroke=g,b=!0),Xe(S,v,"line_strokeWidth",g=_.line_strokeWidth,E.apl_line_strokeWidth)&&(S.lineShape.style.strokeWidth=g+"px",b=!0,(ie||ae)&&(je(S,S.lineShape),ae&&(je(S,S.lineFace),je(S,S.lineMaskCaps)))),Xe(S,v,"lineOutline_enabled",g=_.lineOutline_enabled,E.apl_lineOutline_enabled)&&(S.lineOutlineFace.style.display=g?"inline":"none",b=!0),_.lineOutline_enabled&&(Xe(S,v,"lineOutline_color",g=_.lineOutline_color,E.apl_lineOutline_color)&&(S.lineOutlineFace.style.stroke=g,b=!0),Xe(S,v,"lineOutline_strokeWidth",g=_.lineOutline_strokeWidth,E.apl_lineOutline_strokeWidth)&&(S.lineOutlineMaskShape.style.strokeWidth=g+"px",b=!0,ae&&(je(S,S.lineOutlineMaskCaps),je(S,S.lineOutlineFace))),Xe(S,v,"lineOutline_inStrokeWidth",g=_.lineOutline_inStrokeWidth,E.apl_lineOutline_inStrokeWidth)&&(S.lineMaskShape.style.strokeWidth=g+"px",b=!0,ae&&(je(S,S.lineOutlineMaskCaps),je(S,S.lineOutlineFace)))),Xe(S,v,"plug_enabled",g=_.plug_enabled,E.apl_plug_enabled)&&(S.plugsFace.style.display=g?"inline":"none",b=!0),_.plug_enabled&&[0,1].forEach((function(e){var t=_.plug_plugSE[e],n=t!==T?R[G[t]]:null,a=Ze(e,n);Xe(S,v.plug_enabledSE,e,g=_.plug_enabledSE[e],E.apl_plug_enabledSE)&&(S.plugsFace.style[a.prop]=g?"url(#"+S.plugMarkerIdSE[e]+")":"none",b=!0),_.plug_enabledSE[e]&&(Xe(S,v.plug_plugSE,e,t,E.apl_plug_plugSE)&&(S.plugFaceSE[e].href.baseVal="#"+n.elmId,Ue(S,S.plugMarkerSE[e],a.orient,n.bBox,S.svg,S.plugMarkerShapeSE[e],S.plugsFace),b=!0,ie&&je(S,S.plugsFace)),Xe(S,v.plug_colorSE,e,g=_.plug_colorSE[e],E.apl_plug_colorSE)&&(S.plugFaceSE[e].style.fill=g,b=!0,(oe||le||ae)&&!_.line_colorTra&&je(S,ae?S.lineMaskCaps:S.capsMaskLine)),["markerWidth","markerHeight"].forEach((function(t){var n="plug_"+t+"SE";Xe(S,v[n],e,g=_[n][e],E["apl_"+n])&&(S.plugMarkerSE[e][t].baseVal.value=g,b=!0)})),Xe(S,v.plugOutline_enabledSE,e,g=_.plugOutline_enabledSE[e],E.apl_plugOutline_enabledSE)&&(g?(S.plugFaceSE[e].style.mask="url(#"+S.plugMaskIdSE[e]+")",S.plugOutlineFaceSE[e].style.display="inline"):(S.plugFaceSE[e].style.mask="none",S.plugOutlineFaceSE[e].style.display="none"),b=!0),_.plugOutline_enabledSE[e]&&(Xe(S,v.plugOutline_plugSE,e,t,E.apl_plugOutline_plugSE)&&(S.plugOutlineFaceSE[e].href.baseVal=S.plugMaskShapeSE[e].href.baseVal=S.plugOutlineMaskShapeSE[e].href.baseVal="#"+n.elmId,[S.plugMaskSE[e],S.plugOutlineMaskSE[e]].forEach((function(e){e.x.baseVal.value=n.bBox.left,e.y.baseVal.value=n.bBox.top,e.width.baseVal.value=n.bBox.width,e.height.baseVal.value=n.bBox.height})),b=!0),Xe(S,v.plugOutline_colorSE,e,g=_.plugOutline_colorSE[e],E.apl_plugOutline_colorSE)&&(S.plugOutlineFaceSE[e].style.fill=g,b=!0,ae&&(je(S,S.lineMaskCaps),je(S,S.lineOutlineMaskCaps))),Xe(S,v.plugOutline_strokeWidthSE,e,g=_.plugOutline_strokeWidthSE[e],E.apl_plugOutline_strokeWidthSE)&&(S.plugOutlineMaskShapeSE[e].style.strokeWidth=g+"px",b=!0),Xe(S,v.plugOutline_inStrokeWidthSE,e,g=_.plugOutline_inStrokeWidthSE[e],E.apl_plugOutline_inStrokeWidthSE)&&(S.plugMaskShapeSE[e].style.strokeWidth=g+"px",b=!0)))})),b)),(n.position||Q.line||Q.plug)&&(Q.position=Ke(t)),(n.path||Q.position)&&(Q.path=(w=(x=t).curStats,C=x.aplStats,I=x.pathList.animVal||x.pathList.baseVal,O=w.path_edge,A=!1,I&&(O.x1=O.x2=I[0][0].x,O.y1=O.y2=I[0][0].y,w.path_pathData=k=Be(I,(function(e){e.xO.x2&&(O.x2=e.x),e.y>O.y2&&(O.y2=e.y)})),Fe(k,C.path_pathData)&&(x.linePath.setPathData(k),C.path_pathData=k,A=!0,ae?(je(x,x.plugsFace),je(x,x.lineMaskCaps)):ie&&je(x,x.linePath),x.events.apl_path&&x.events.apl_path.forEach((function(e){e(x,k)})))),A)),Q.viewBox=(I=(M=t).curStats,C=M.aplStats,A=I.path_edge,L=I.viewBox_bBox,V=C.viewBox_bBox,P=M.svg.viewBox.baseVal,N=M.svg.style,W=!1,C=Math.max(I.line_strokeWidth/2,I.viewBox_plugBCircleSE[0]||0,I.viewBox_plugBCircleSE[1]||0),B={x1:A.x1-C,y1:A.y1-C,x2:A.x2+C,y2:A.y2+C},M.events.new_edge4viewBox&&M.events.new_edge4viewBox.forEach((function(e){e(M,B)})),L.x=I.lineMask_x=I.lineOutlineMask_x=I.maskBGRect_x=B.x1,L.y=I.lineMask_y=I.lineOutlineMask_y=I.maskBGRect_y=B.y1,L.width=B.x2-B.x1,L.height=B.y2-B.y1,["x","y","width","height"].forEach((function(e){var t;(t=L[e])!==V[e]&&(P[e]=V[e]=t,N[j[e]]=t+("x"===e||"y"===e?M.bodyOffset[e]:0)+"px",W=!0)})),W),Q.mask=(z=(F=t).curStats,H=F.aplStats,U=!1,z.plug_enabled?[0,1].forEach((function(e){z.capsMaskMarker_enabledSE[e]=z.plug_enabledSE[e]&&z.plug_colorTraSE[e]||z.plugOutline_enabledSE[e]&&z.plugOutline_colorTraSE[e]})):z.capsMaskMarker_enabledSE[0]=z.capsMaskMarker_enabledSE[1]=!1,z.capsMaskMarker_enabled=z.capsMaskMarker_enabledSE[0]||z.capsMaskMarker_enabledSE[1],z.lineMask_outlineMode=z.lineOutline_enabled,z.caps_enabled=z.capsMaskMarker_enabled||z.capsMaskAnchor_enabledSE[0]||z.capsMaskAnchor_enabledSE[1],z.lineMask_enabled=z.caps_enabled||z.lineMask_outlineMode,(z.lineMask_enabled&&!z.lineMask_outlineMode||z.lineOutline_enabled)&&["x","y"].forEach((function(e){var t="maskBGRect_"+e;Xe(F,H,t,D=z[t])&&(F.maskBGRect[e].baseVal.value=D,U=!0)})),Xe(F,H,"lineMask_enabled",D=z.lineMask_enabled)&&(F.lineFace.style.mask=D?"url(#"+F.lineMaskId+")":"none",U=!0,le&&je(F,F.lineMask)),z.lineMask_enabled&&(Xe(F,H,"lineMask_outlineMode",D=z.lineMask_outlineMode)&&(D?(F.lineMaskBG.style.display="none",F.lineMaskShape.style.display="inline"):(F.lineMaskBG.style.display="inline",F.lineMaskShape.style.display="none"),U=!0),["x","y"].forEach((function(e){var t="lineMask_"+e;Xe(F,H,t,D=z[t])&&(F.lineMask[e].baseVal.value=D,U=!0)})),Xe(F,H,"caps_enabled",D=z.caps_enabled)&&(F.lineMaskCaps.style.display=F.lineOutlineMaskCaps.style.display=D?"inline":"none",U=!0,le&&je(F,F.capsMaskLine)),z.caps_enabled&&([0,1].forEach((function(e){var t;Xe(F,H.capsMaskAnchor_enabledSE,e,D=z.capsMaskAnchor_enabledSE[e])&&(F.capsMaskAnchorSE[e].style.display=D?"inline":"none",U=!0,le&&je(F,F.lineMask)),z.capsMaskAnchor_enabledSE[e]&&(Fe(t=z.capsMaskAnchor_pathDataSE[e],H.capsMaskAnchor_pathDataSE[e])&&(F.capsMaskAnchorSE[e].setPathData(t),H.capsMaskAnchor_pathDataSE[e]=t,U=!0),Xe(F,H.capsMaskAnchor_strokeWidthSE,e,D=z.capsMaskAnchor_strokeWidthSE[e])&&(F.capsMaskAnchorSE[e].style.strokeWidth=D+"px",U=!0))})),Xe(F,H,"capsMaskMarker_enabled",D=z.capsMaskMarker_enabled)&&(F.capsMaskLine.style.display=D?"inline":"none",U=!0),z.capsMaskMarker_enabled&&[0,1].forEach((function(e){var t=z.capsMaskMarker_plugSE[e],n=t!==T?R[G[t]]:null,a=Ze(e,n);Xe(F,H.capsMaskMarker_enabledSE,e,D=z.capsMaskMarker_enabledSE[e])&&(F.capsMaskLine.style[a.prop]=D?"url(#"+F.lineMaskMarkerIdSE[e]+")":"none",U=!0),z.capsMaskMarker_enabledSE[e]&&(Xe(F,H.capsMaskMarker_plugSE,e,t)&&(F.capsMaskMarkerShapeSE[e].href.baseVal="#"+n.elmId,Ue(F,F.capsMaskMarkerSE[e],a.orient,n.bBox,F.svg,F.capsMaskMarkerShapeSE[e],F.capsMaskLine),U=!0,ie&&(je(F,F.capsMaskLine),je(F,F.lineFace))),["markerWidth","markerHeight"].forEach((function(t){var n="capsMaskMarker_"+t+"SE";Xe(F,H[n],e,D=z[n][e])&&(F.capsMaskMarkerSE[e][t].baseVal.value=D,U=!0)})))})))),z.lineOutline_enabled&&["x","y"].forEach((function(e){var t="lineOutlineMask_"+e;Xe(F,H,t,D=z[t])&&(F.lineOutlineMask[e].baseVal.value=D,U=!0)})),U),n.effect&&(X=(Z=t).curStats,q=Z.aplStats,Object.keys(e).forEach((function(t){var n=e[t],a=t+"_enabled",i=t+"_options";t=X[i];Xe(Z,q,a,Y=X[a])?(Y&&(q[i]=we(t)),n[Y?"init":"remove"](Z)):Y&&ke(t,q[i])&&(n.remove(Z),q[a]=!0,q[i]=we(t),n.init(Z))}))),(oe||le)&&Q.line&&!Q.path&&je(t,t.lineShape),oe&&Q.plug&&!Q.line&&je(t,t.plugsFace),He(t)}function et(e,t){return{duration:(he(e.duration)&&0t.x2&&(t.x2=n.x2),n.y2>t.y2&&(t.y2=n.y2),["x","y"].forEach((function(n){var o,l="dropShadow_"+n;a[l]=o=t[n+"1"],Xe(e,i,l,o)&&(e.efc_dropShadow_elmFilter[n].baseVal.value=o)})))}}},Object.keys(e).forEach((function(t){var n=e[t],a=n.stats;a[t+"_enabled"]={iniValue:!1},a[t+"_options"]={hasProps:!0},n.anim&&(a[t+"_animOptions"]={},a[t+"_animId"]={})})),t={none:{defaultAnimOptions:{},init:function(e,n){var a=e.curStats;a.show_animId&&(pe.remove(a.show_animId),a.show_animId=null),t.none.start(e,n)},start:function(e,n){t.none.stop(e,!0)},stop:function(e,t,n){var a=e.curStats;return n=null!=n?n:e.aplStats.show_on,a.show_inAnim=!1,t&&Je(e,n),n?1:0}},fade:{defaultAnimOptions:{duration:300,timing:"linear"},init:function(e,n){var a=e.curStats,i=e.aplStats;a.show_animId&&pe.remove(a.show_animId),a.show_animId=pe.add((function(e){return e}),(function(n,a){a?t.fade.stop(e,!0):(e.svg.style.opacity=n+"",ae&&(je(e,e.svg),He(e)))}),i.show_animOptions.duration,1,i.show_animOptions.timing,null,!1),t.fade.start(e,n)},start:function(e,t){var n,a=e.curStats;a.show_inAnim&&(n=pe.stop(a.show_animId)),Je(e,1),a.show_inAnim=!0,pe.start(a.show_animId,!e.aplStats.show_on,null!=t?t:n)},stop:function(e,t,n){var a,i=e.curStats;return n=null!=n?n:e.aplStats.show_on,a=i.show_inAnim?pe.stop(i.show_animId):n?1:0,i.show_inAnim=!1,t&&(e.svg.style.opacity=n?"":"0",Je(e,n)),a}},draw:{defaultAnimOptions:{duration:500,timing:[.58,0,.42,1]},init:function(e,n){var a=e.curStats,i=e.aplStats,o=e.pathList.baseVal,l=Re(o),r=l.segsLen,s=l.lenAll;a.show_animId&&pe.remove(a.show_animId),a.show_animId=pe.add((function(e){var t,n,a,i=-1;if(0===e)n=[[o[0][0],o[0][0]]];else if(1===e)n=o;else{for(t=s*e,n=[];t>=r[++i];)n.push(o[i]),t-=r[i];t&&(2===(a=o[i]).length?n.push([a[0],Ve(a[0],a[1],t/r[i])]):(e=Ne(a[0],a[1],a[2],a[3],We(a[0],a[1],a[2],a[3],t)),n.push([a[0],e.fromP1,e.fromP2,e])))}return n}),(function(n,a){a?t.draw.stop(e,!0):(e.pathList.animVal=n,$e(e,{path:!0}))}),i.show_animOptions.duration,1,i.show_animOptions.timing,null,!1),t.draw.start(e,n)},start:function(e,n){var a,i=e.curStats;i.show_inAnim&&(a=pe.stop(i.show_animId)),Je(e,1),i.show_inAnim=!0,Ge(e,"apl_position",t.draw.update),pe.start(i.show_animId,!e.aplStats.show_on,null!=n?n:a)},stop:function(e,t,n){var a,i=e.curStats;return n=null!=n?n:e.aplStats.show_on,a=i.show_inAnim?pe.stop(i.show_animId):n?1:0,i.show_inAnim=!1,t&&(e.pathList.animVal=n?null:[[e.pathList.baseVal[0][0],e.pathList.baseVal[0][0]]],$e(e,{path:!0}),Je(e,n)),a},update:function(e){De(e,"apl_position",t.draw.update),e.curStats.show_inAnim?t.draw.init(e,t.draw.stop(e)):e.aplStats.show_animOptions={}}}},[["start","anchorSE",0],["end","anchorSE",1],["color","lineColor"],["size","lineSize"],["startSocketGravity","socketGravitySE",0],["endSocketGravity","socketGravitySE",1],["startPlugColor","plugColorSE",0],["endPlugColor","plugColorSE",1],["startPlugSize","plugSizeSE",0],["endPlugSize","plugSizeSE",1],["outline","lineOutlineEnabled"],["outlineColor","lineOutlineColor"],["outlineSize","lineOutlineSize"],["startPlugOutline","plugOutlineEnabledSE",0],["endPlugOutline","plugOutlineEnabledSE",1],["startPlugOutlineColor","plugOutlineColorSE",0],["endPlugOutlineColor","plugOutlineColorSE",1],["startPlugOutlineSize","plugOutlineSizeSE",0],["endPlugOutlineSize","plugOutlineSizeSE",1]].forEach((function(e){var t=e[0],n=e[1],a=e[2];Object.defineProperty(ot.prototype,t,{get:function(){var e=null!=a?Se[this._id].options[n][a]:n?Se[this._id].options[n]:Se[this._id].options[t];return null==e?z:we(e)},set:lt(t),enumerable:!0})})),[["path",N],["startSocket",I,"socketSE",0],["endSocket",I,"socketSE",1],["startPlug",F,"plugSE",0],["endPlug",F,"plugSE",1]].forEach((function(e){var t=e[0],n=e[1],a=e[2],i=e[3];Object.defineProperty(ot.prototype,t,{get:function(){var e,o=null!=i?Se[this._id].options[a][i]:a?Se[this._id].options[a]:Se[this._id].options[t];return o?Object.keys(n).some((function(t){return n[t]===o&&(e=t,!0)}))?e:new Error("It's broken"):z},set:lt(t),enumerable:!0})})),Object.keys(e).forEach((function(t){var n=e[t];Object.defineProperty(ot.prototype,t,{get:function(){var e,a,i=Se[this._id].options[t];return ue(i)?(e=i,a=n.optionsConf.reduce((function(t,n){var a,i=n[0],o=n[1],l=n[2],r=n[3],s=(n=n[4],null!=n?e[r][n]:r?e[r]:e[o]);return t[o]="id"===i?s?Object.keys(l).some((function(e){return l[e]===s&&(a=e,!0)}))?a:new Error("It's broken"):z:null==s?z:we(s),t}),{}),n.anim&&(a.animation=we(e.animation)),a):i},set:lt(t),enumerable:!0})})),["startLabel","endLabel","middleLabel"].forEach((function(e,t){Object.defineProperty(ot.prototype,e,{get:function(){var e=Se[this._id],n=e.options;return n.labelSEM[t]&&!e.optionIsAttach.labelSEM[t]?_e[n.labelSEM[t]._id].text:n.labelSEM[t]||""},set:lt(e),enumerable:!0})})),ot.prototype.setOptions=function(e){return it(Se[this._id],e),this},ot.prototype.position=function(){return $e(Se[this._id],{position:!0}),this},ot.prototype.remove=function(){var t=Se[this._id],n=t.curStats;Object.keys(e).forEach((function(e){e+="_animId",n[e]&&pe.remove(n[e])})),n.show_animId&&pe.remove(n.show_animId),t.attachments.slice().forEach((function(e){at(t,e)})),t.baseWindow&&t.svg&&t.baseWindow.document.body.removeChild(t.svg),delete Se[this._id]},ot.prototype.show=function(e,t){return tt(Se[this._id],!0,e,t),this},ot.prototype.hide=function(e,t){return tt(Se[this._id],!1,e,t),this},o=function(e){e&&_e[e._id]&&(e.boundTargets.slice().forEach((function(t){at(t.props,e,!0)})),e.conf.remove&&e.conf.remove(e),delete _e[e._id])},rt.prototype.remove=function(){var e=this,t=_e[e._id];t&&(t.boundTargets.slice().forEach((function(e){t.conf.removeOption(t,e)})),ze((function(){var t=_e[e._id];t&&(console.error("LeaderLineAttachment was not removed by removeOption"),o(t))})))},a=rt,window.LeaderLineAttachment=a,i=function(e,t){return e instanceof a&&(!(e.isRemoved||t&&_e[e._id].conf.type!==t)||null)},n={pointAnchor:{type:"anchor",argOptions:[{optionName:"element",type:Me}],init:function(e,t){return e.element=n.pointAnchor.checkElement(t.element),e.x=n.pointAnchor.parsePercent(t.x,!0)||[.5,!0],e.y=n.pointAnchor.parsePercent(t.y,!0)||[.5,!0],!0},removeOption:function(e,t){var i=t.props,o={},l=e.element;e=i.options.anchorSE["start"===t.optionName?1:0];l===e&&(l=e===document.body?new a(n.pointAnchor,[l]):document.body),o[t.optionName]=l,it(i,o)},getBBoxNest:function(e,t){var n=Ae(e.element,t.baseWindow),a=n.width;t=n.height;return n.width=n.height=0,n.left=n.right=n.left+e.x[0]*(e.x[1]?a:1),n.top=n.bottom=n.top+e.y[0]*(e.y[1]?t:1),n},parsePercent:function(e,t){var n,a,i=!1;return he(e)?a=e:"string"==typeof e&&(n=ee.exec(e))&&n[2]&&(i=0!==(a=parseFloat(n[1])/100)),null!=a&&(t||0<=a)?[a,i]:null},checkElement:function(e){if(null==e)e=document.body;else if(!Me(e))throw new Error("`element` must be Element");return e}},areaAnchor:{type:"anchor",argOptions:[{optionName:"element",type:Me},{optionName:"shape",type:"string"}],stats:{color:{},strokeWidth:{},elementWidth:{},elementHeight:{},elementLeft:{},elementTop:{},pathListRel:{},bBoxRel:{},pathData:{},viewBoxBBox:{hasProps:!0},dashLen:{},dashGap:{}},init:function(e,t){var a,i=[];return e.element=n.pointAnchor.checkElement(t.element),"string"==typeof t.color&&(e.color=t.color.trim()),"string"==typeof t.fillColor&&(e.fill=t.fillColor.trim()),he(t.size)&&0<=t.size&&(e.size=t.size),t.dash&&(e.dash=!0,he(t.dash.len)&&0a.right&&(a.right=n),ea.bottom&&(a.bottom=e)):a={left:n,right:n,top:e,bottom:e},i?S.pathListRel.push([i,{x:n,y:e}]):S.pathListRel=[],i={x:n,y:e}})),S.pathListRel.push([]),o=S.strokeWidth/2,o=[{x:a.left-o,y:a.top-o},{x:a.right+o,y:a.bottom+o}],S.bBoxRel={left:o[0].x,top:o[0].y,right:o[1].x,bottom:o[1].y,width:o[1].x-o[0].x,height:o[1].y-o[0].y}}v.pathListRel=v.bBoxRel=!0}return(v.pathListRel||v.elementLeft||v.elementTop)&&(S.pathData=Be(S.pathListRel,(function(e){e.x+=t.left,e.y+=t.top}))),Xe(e,g,"strokeWidth",n=S.strokeWidth)&&(e.path.style.strokeWidth=n+"px"),Fe(n=S.pathData,g.pathData)&&(e.path.setPathData(n),g.pathData=n,v.pathData=!0),e.dash&&(!v.pathData&&(!v.strokeWidth||e.dashLen&&e.dashGap)||(S.dashLen=e.dashLen||2*S.strokeWidth,S.dashGap=e.dashGap||S.strokeWidth),v.dash=Xe(e,g,"dashLen",S.dashLen)||v.dash,v.dash=Xe(e,g,"dashGap",S.dashGap)||v.dash,v.dash&&(e.path.style.strokeDasharray=g.dashLen+","+g.dashGap)),d=S.viewBoxBBox,f=g.viewBoxBBox,y=e.svg.viewBox.baseVal,m=e.svg.style,d.x=S.bBoxRel.left+t.left,d.y=S.bBoxRel.top+t.top,d.width=S.bBoxRel.width,d.height=S.bBoxRel.height,["x","y","width","height"].forEach((function(t){(n=d[t])!==f[t]&&(y[t]=f[t]=n,m[j[t]]=n+("x"===t||"y"===t?e.bodyOffset[t]:0)+"px")})),v.strokeWidth||v.pathListRel||v.bBoxRel}},mouseHoverAnchor:{type:"anchor",argOptions:[{optionName:"element",type:Me},{optionName:"showEffectName",type:"string"}],style:{backgroundImage:"url('data:image/svg+xml;charset=utf-8;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cG9seWdvbiBwb2ludHM9IjI0LDAgMCw4IDgsMTEgMCwxOSA1LDI0IDEzLDE2IDE2LDI0IiBmaWxsPSJjb3JhbCIvPjwvc3ZnPg==')",backgroundSize:"",backgroundRepeat:"no-repeat",backgroundColor:"#f8f881",cursor:"default"},hoverStyle:{backgroundImage:"none",backgroundColor:"#fadf8f"},padding:{top:1,right:15,bottom:1,left:2},minHeight:15,backgroundPosition:{right:2,top:2},backgroundSize:{width:12,height:12},dirKeys:[["top","Top"],["right","Right"],["bottom","Bottom"],["left","Left"]],init:function(e,a){var i,o,l,r,s,u,h,p,c,d=n.mouseHoverAnchor,f={};if(e.element=n.pointAnchor.checkElement(a.element),h=e.element,!((p=h.ownerDocument)&&(c=p.defaultView)&&c.HTMLElement&&h instanceof c.HTMLElement))throw new Error("`element` must be HTML element");return d.style.backgroundSize=d.backgroundSize.width+"px "+d.backgroundSize.height+"px",["style","hoverStyle"].forEach((function(t){var n=d[t];e[t]=Object.keys(n).reduce((function(e,t){return e[t]=n[t],e}),{})})),"inline"===(i=e.element.ownerDocument.defaultView.getComputedStyle(e.element,"")).display?e.style.display="inline-block":"none"===i.display&&(e.style.display="block"),n.mouseHoverAnchor.dirKeys.forEach((function(t){var n=t[0];t="padding"+t[1];parseFloat(i[t])e.x2&&(e.x2=n.x2),n.y2>e.y2&&(e.y2=n.y2)},newText:function(e,t,n,a,i){var o,l,r=t.createElementNS(te,"text");return r.textContent=e,[r.x,r.y].forEach((function(e){var t=n.createSVGLength();t.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0),e.baseVal.initialize(t)})),"boolean"!=typeof s&&(s="paintOrder"in r.style),i&&!s?(o=t.createElementNS(te,"defs"),r.id=a,o.appendChild(r),(l=(e=t.createElementNS(te,"g")).appendChild(t.createElementNS(te,"use"))).href.baseVal="#"+a,(t=e.appendChild(t.createElementNS(te,"use"))).href.baseVal="#"+a,(l=l.style).strokeLinejoin="round",{elmPosition:r,styleText:r.style,styleFill:t.style,styleStroke:l,styleShow:e.style,elmsAppend:[o,e]}):(l=r.style,i&&(l.strokeLinejoin="round",l.paintOrder="stroke"),{elmPosition:r,styleText:l,styleFill:l,styleStroke:i?l:null,styleShow:l,elmsAppend:[r]})},getMidPoint:function(e,t){var n,a,i=Re(e),o=i.segsLen,l=(i=i.lenAll,-1),r=i/2+(t||0);if(r<=0)return 2===(n=e[0]).length?Ve(n[0],n[1],0):Ne(n[0],n[1],n[2],n[3],0);if(i<=r)return 2===(n=e[e.length-1]).length?Ve(n[0],n[1],1):Ne(n[0],n[1],n[2],n[3],1);for(a=[];r>o[++l];)a.push(e[l]),r-=o[l];return 2===(n=e[l]).length?Ve(n[0],n[1],r/o[l]):Ne(n[0],n[1],n[2],n[3],We(n[0],n[1],n[2],n[3],r))},initSvg:function(e,t){var a,i,o=n.captionLabel.newText(e.text,t.baseWindow.document,t.svg,x+"-captionLabel-"+e._id,e.outlineColor);["elmPosition","styleFill","styleShow","elmsAppend"].forEach((function(t){e[t]=o[t]})),e.isShown=!1,e.styleShow.visibility="hidden",n.captionLabel.textStyleProps.forEach((function(t){null!=e[t]&&(o.styleText[t]=e[t])})),o.elmsAppend.forEach((function(e){t.svg.appendChild(e)})),a=o.elmPosition.getBBox(),e.width=a.width,e.height=a.height,e.outlineColor&&(i=a.height/9,o.styleStroke.strokeWidth=(i=10t?((i=a.points)[1]=Pe(i[0],i[1],-t),a.len=Le(i[0],i[1])):(a.points=null,a.len=0),e.len>t+n?((i=e.points)[0]=Pe(i[1],i[0],-(t+n)),e.len=Le(i[0],i[1])):(e.points=null,e.len=0)),e):null})),o.reduce((function(e,t){var n=t.points;return n&&(i&&l(n[0],i)||e.push({type:"M",values:[n[0].x,n[0].y]}),"line"===t.type?e.push({type:"L",values:[n[1].x,n[1].y]}):(n.shift(),n.forEach((function(t){e.push({type:"L",values:[t.x,t.y]})}))),i=n[n.length-1]),e}),[])},newText:function(e,t,n,a){var i,o,l,r,u=t.createElementNS(te,"defs"),h=u.appendChild(t.createElementNS(te,"path"));return h.id=i=n+"-path",(l=(o=t.createElementNS(te,"text")).appendChild(t.createElementNS(te,"textPath"))).href.baseVal="#"+i,l.startOffset.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0),l.textContent=e,"boolean"!=typeof s&&(s="paintOrder"in o.style),a&&!s?(o.id=e=n+"-text",u.appendChild(o),(r=(n=t.createElementNS(te,"g")).appendChild(t.createElementNS(te,"use"))).href.baseVal="#"+e,(t=n.appendChild(t.createElementNS(te,"use"))).href.baseVal="#"+e,(r=r.style).strokeLinejoin="round",{elmPosition:o,elmPath:h,elmOffset:l,styleText:o.style,styleFill:t.style,styleStroke:r,styleShow:n.style,elmsAppend:[u,n]}):(r=o.style,a&&(r.strokeLinejoin="round",r.paintOrder="stroke"),{elmPosition:o,elmPath:h,elmOffset:l,styleText:r,styleFill:r,styleStroke:a?r:null,styleShow:r,elmsAppend:[u,o]})},initSvg:function(e,t){var a,i,o,l=n.pathLabel.newText(e.text,t.baseWindow.document,x+"-pathLabel-"+e._id,e.outlineColor);["elmPosition","elmPath","elmOffset","styleFill","styleShow","elmsAppend"].forEach((function(t){e[t]=l[t]})),e.isShown=!1,e.styleShow.visibility="hidden",n.captionLabel.textStyleProps.forEach((function(t){null!=e[t]&&(l.styleText[t]=e[t])})),l.elmsAppend.forEach((function(e){t.svg.appendChild(e)})),l.elmPath.setPathData([{type:"M",values:[0,100]},{type:"h",values:[100]}]),oe&&(o=l.elmOffset.href.baseVal,l.elmOffset.href.baseVal=""),a=l.elmPosition.getBBox(),oe&&(l.elmOffset.href.baseVal=o),l.styleText.textAnchor=["start","end","middle"][e.semIndex],2!==e.semIndex||e.lineOffset||l.elmOffset.startOffset.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PERCENTAGE,50),e.height=a.height,e.outlineColor&&(i=a.height/9,l.styleStroke.strokeWidth=(i=10