From 93ef472ea0ac48753c82eccf52e9d4ff9a3bde4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9A=AE=E5=85=89=EF=BC=9A=E5=9F=8E=E4=B8=AD=E5=9F=8E?= <806783409@qq.com> Date: Mon, 15 Aug 2022 23:00:11 +0800 Subject: [PATCH] #I5LO38 build --- zyplayer-doc-db/src/main/resources/dist/doc-db.html | 2 +- .../js/{chunk-vendors.ecfb4a1c.js => chunk-vendors.d7df6d0f.js} | 2 +- zyplayer-doc-db/src/main/resources/dist/js/index.5c0b8fd2.js | 1 - zyplayer-doc-db/src/main/resources/dist/js/index.d6c37eed.js | 1 + 4 files changed, 3 insertions(+), 3 deletions(-) rename zyplayer-doc-db/src/main/resources/dist/js/{chunk-vendors.ecfb4a1c.js => chunk-vendors.d7df6d0f.js} (99%) delete mode 100644 zyplayer-doc-db/src/main/resources/dist/js/index.5c0b8fd2.js create mode 100644 zyplayer-doc-db/src/main/resources/dist/js/index.d6c37eed.js diff --git a/zyplayer-doc-db/src/main/resources/dist/doc-db.html b/zyplayer-doc-db/src/main/resources/dist/doc-db.html index 896ed92d..542a9e47 100644 --- a/zyplayer-doc-db/src/main/resources/dist/doc-db.html +++ b/zyplayer-doc-db/src/main/resources/dist/doc-db.html @@ -1 +1 @@ -数据库文档管理
\ No newline at end of file +数据库文档管理
\ No newline at end of file diff --git a/zyplayer-doc-db/src/main/resources/dist/js/chunk-vendors.ecfb4a1c.js b/zyplayer-doc-db/src/main/resources/dist/js/chunk-vendors.d7df6d0f.js similarity index 99% rename from zyplayer-doc-db/src/main/resources/dist/js/chunk-vendors.ecfb4a1c.js rename to zyplayer-doc-db/src/main/resources/dist/js/chunk-vendors.d7df6d0f.js index 3f44da67..da0e9158 100644 --- a/zyplayer-doc-db/src/main/resources/dist/js/chunk-vendors.ecfb4a1c.js +++ b/zyplayer-doc-db/src/main/resources/dist/js/chunk-vendors.d7df6d0f.js @@ -50,7 +50,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function $(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function V(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{while((void 0===t||t-- >0)&&!(i=o.next()).done)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}return a}function G(e,t){for(var n=0,i=t.length,r=e.length;n=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}),De=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{i["i"].scheduleTask(()=>{this.renderVueComponent()})})}renderVueComponent(){this.unmountVueComponent();const e=this.getComponentContainer(),t=this.cell,n=this.graph;if(e){const i=this.graph.hook.getVueComponent(t);if(Ae){const r=Re,o=document.createElement("div");o.style.width="100%",o.style.height="100%";let a=null;if("string"===typeof i)o.innerHTML=i,a=new r({el:o});else{const e=i,{template:s}=e,l=De(e,["template"]);o.innerHTML=s,a=new r(Object.assign({el:o,provide(){return{getGraph:()=>n,getNode:()=>t}}},l))}e.appendChild(a.$el)}else Oe&&de({render(){return pe(i)},provide(){return{getGraph:()=>n,getNode:()=>t}}}).mount(e)}}unmountVueComponent(){const e=this.getComponentContainer();return e.innerHTML="",e}dispose(){this.unmountVueComponent()}}Ne([i["f"].dispose()],Ie.prototype,"dispose",null),function(e){e.action="vue",e.config({bootstrap:[e.action],actions:{component:e.action}}),i["f"].registry.register("vue-shape-view",e,!0)}(Ie||(Ie={}))},"3e47":function(e,t,n){var i=n("a5eb"),r=n("c1b2"),o=n("4180");i({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:o.f})},"3e80":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},"3eba":function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("697e7")),o=n("6d8b"),a=n("41ef"),s=n("22d1"),l=n("04f6"),c=n("1fab"),u=n("7e63"),d=n("843e"),h=n("2039"),p=n("ca98"),f=n("fb05"),g=n("d15d"),m=n("6cb7"),v=n("4f85"),_=n("b12f"),y=n("e887"),b=n("2306"),S=n("e0d3"),E=n("88b3"),C=E.throttle,x=n("fd63"),w=n("b809"),T=n("998c"),A=n("69ff"),O=n("c533"),R=n("f219");n("0352");var N=n("ec34"),D=o.assert,I=o.each,M=o.isFunction,k=o.isObject,L=m.parseClassType,P="4.9.0",F={zrender:"4.3.2"},B=1,$=1e3,V=800,G=900,U=5e3,z=1e3,j=1100,H=2e3,W=3e3,Y=3500,q=4e3,K=5e3,Q={PROCESSOR:{FILTER:$,SERIES_FILTER:V,STATISTIC:U},VISUAL:{LAYOUT:z,PROGRESSIVE_LAYOUT:j,GLOBAL:H,CHART:W,POST_CHART_LAYOUT:Y,COMPONENT:q,BRUSH:K}},X="__flagInMainProcess",Z="__optionUpdated",J=/^[a-zA-Z0-9_]+$/;function ee(e,t){return function(n,i,r){t||!this._disposed?(n=n&&n.toLowerCase(),c.prototype[e].call(this,n,i,r)):be(this.id)}}function te(){c.call(this)}function ne(e,t,n){n=n||{},"string"===typeof t&&(t=Ie[t]),this.id,this.group,this._dom=e;var i="canvas",a=this._zr=r.init(e,{renderer:n.renderer||i,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=C(o.bind(a.flush,a),17);t=o.clone(t);t&&f(t,!0),this._theme=t,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new h;var s=this._api=xe(this);function u(e,t){return e.__prio-t.__prio}l(De,u),l(Oe,u),this._scheduler=new A(this,s,Oe,De),c.call(this,this._ecEventProcessor=new we),this._messageCenter=new te,this._initEvents(),this.resize=o.bind(this.resize,this),this._pendingActions=[],a.animation.on("frame",this._onframe,this),he(a,this),o.setAsPrimitive(this)}te.prototype.on=ee("on",!0),te.prototype.off=ee("off",!0),te.prototype.one=ee("one",!0),o.mixin(te,c);var ie=ne.prototype;function re(e,t,n){if(this._disposed)be(this.id);else{var i,r=this._model,o=this._coordSysMgr.getCoordinateSystems();t=S.parseFinder(r,t);for(var a=0;a0&&e.unfinished);e.unfinished||this._zr.flush()}}},ie.getDom=function(){return this._dom},ie.getZr=function(){return this._zr},ie.setOption=function(e,t,n){if(this._disposed)be(this.id);else{var i;if(k(t)&&(n=t.lazyUpdate,i=t.silent,t=t.notMerge),this[X]=!0,!this._model||t){var r=new p(this._api),o=this._theme,a=this._model=new u;a.scheduler=this._scheduler,a.init(null,null,o,r)}this._model.setOption(e,Re),n?(this[Z]={silent:i},this[X]=!1):(ae(this),oe.update.call(this),this._zr.flush(),this[Z]=!1,this[X]=!1,ue.call(this,i),de.call(this,i))}},ie.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},ie.getModel=function(){return this._model},ie.getOption=function(){return this._model&&this._model.getOption()},ie.getWidth=function(){return this._zr.getWidth()},ie.getHeight=function(){return this._zr.getHeight()},ie.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},ie.getRenderedCanvas=function(e){if(s.canvasSupported){e=e||{},e.pixelRatio=e.pixelRatio||1,e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor");var t=this._zr;return t.painter.getRenderedCanvas(e)}},ie.getSvgDataURL=function(){if(s.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return o.each(t,(function(e){e.stopAnimation(!0)})),e.painter.toDataURL()}},ie.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,i=[],r=this;I(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return I(i,(function(e){e.group.ignore=!1})),o}be(this.id)},ie.getConnectedDataURL=function(e){if(this._disposed)be(this.id);else if(s.canvasSupported){var t="svg"===e.type,n=this.group,i=Math.min,a=Math.max,l=1/0;if(Le[n]){var c=l,u=l,d=-l,h=-l,p=[],f=e&&e.pixelRatio||1;o.each(ke,(function(r,s){if(r.group===n){var l=t?r.getZr().painter.getSvgDom().innerHTML:r.getRenderedCanvas(o.clone(e)),f=r.getDom().getBoundingClientRect();c=i(f.left,c),u=i(f.top,u),d=a(f.right,d),h=a(f.bottom,h),p.push({dom:l,left:f.left,top:f.top})}})),c*=f,u*=f,d*=f,h*=f;var g=d-c,m=h-u,v=o.createCanvas(),_=r.init(v,{renderer:t?"svg":"canvas"});if(_.resize({width:g,height:m}),t){var y="";return I(p,(function(e){var t=e.left-c,n=e.top-u;y+=''+e.dom+""})),_.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&_.painter.setBackgroundColor(e.connectedBackgroundColor),_.refreshImmediately(),_.painter.toDataURL()}return e.connectedBackgroundColor&&_.add(new b.Rect({shape:{x:0,y:0,width:g,height:m},style:{fill:e.connectedBackgroundColor}})),I(p,(function(e){var t=new b.Image({style:{x:e.left*f-c,y:e.top*f-u,image:e.dom}});_.add(t)})),_.refreshImmediately(),v.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},ie.convertToPixel=o.curry(re,"convertToPixel"),ie.convertFromPixel=o.curry(re,"convertFromPixel"),ie.containPixel=function(e,t){if(!this._disposed){var n,i=this._model;return e=S.parseFinder(i,e),o.each(e,(function(e,i){i.indexOf("Models")>=0&&o.each(e,(function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(t);else if("seriesModels"===i){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n|=o.containPoint(t,e))}}),this)}),this),!!n}be(this.id)},ie.getVisual=function(e,t){var n=this._model;e=S.parseFinder(n,e,{defaultMainType:"series"});var i=e.seriesModel,r=i.getData(),o=e.hasOwnProperty("dataIndexInside")?e.dataIndexInside:e.hasOwnProperty("dataIndex")?r.indexOfRawIndex(e.dataIndex):null;return null!=o?r.getItemVisual(o,t):r.getVisual(t)},ie.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},ie.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]};var oe={prepareAndUpdate:function(e){ae(this),oe.update.call(this,e)},update:function(e){var t=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,o=this._scheduler;if(t){o.restoreData(t,e),o.performSeriesTasks(t),r.create(t,n),o.performDataProcessorTasks(t,e),le(this,t),r.update(t,n),fe(t),o.performVisualTasks(t,e),ge(this,t,n,e);var l=t.get("backgroundColor")||"transparent";if(s.canvasSupported)i.setBackgroundColor(l);else{var c=a.parse(l);l=a.stringify(c,"rgb"),0===c[3]&&(l="transparent")}_e(t,n)}},updateTransform:function(e){var t=this._model,n=this,i=this._api;if(t){var r=[];t.eachComponent((function(o,a){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,t,i,e);l&&l.update&&r.push(s)}else r.push(s)}));var a=o.createHashMap();t.eachSeries((function(r){var o=n._chartsMap[r.__viewId];if(o.updateTransform){var s=o.updateTransform(r,t,i,e);s&&s.update&&a.set(r.uid,1)}else a.set(r.uid,1)})),fe(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0,dirtyMap:a}),ve(n,t,i,e,a),_e(t,this._api)}},updateView:function(e){var t=this._model;t&&(y.markUpdateMethod(e,"updateView"),fe(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),ge(this,this._model,this._api,e),_e(t,this._api))},updateVisual:function(e){oe.update.call(this,e)},updateLayout:function(e){oe.update.call(this,e)}};function ae(e){var t=e._model,n=e._scheduler;n.restorePipelines(t),n.prepareStageTasks(),pe(e,"component",t,n),pe(e,"chart",t,n),n.plan()}function se(e,t,n,i,r){var a=e._model;if(i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var c=n.excludeSeriesId;null!=c&&(c=o.createHashMap(S.normalizeToArray(c))),a&&a.eachComponent(l,(function(t){c&&null!=c.get(t.id)||u(e["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else I(e._componentsViews.concat(e._chartsViews),u);function u(i){i&&i.__alive&&i[t]&&i[t](i.__model,a,e._api,n)}}function le(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries((function(e){i.updateStreamModes(e,n[e.__viewId])}))}function ce(e,t){var n=e.type,i=e.escapeConnect,r=Te[n],a=r.actionInfo,s=(a.update||"update").split(":"),l=s.pop();s=null!=s[0]&&L(s[0]),this[X]=!0;var c=[e],u=!1;e.batch&&(u=!0,c=o.map(e.batch,(function(t){return t=o.defaults(o.extend({},t),e),t.batch=null,t})));var d,h=[],p="highlight"===n||"downplay"===n;I(c,(function(e){d=r.action(e,this._model,this._api),d=d||o.extend({},e),d.type=a.event||d.type,h.push(d),p?se(this,l,e,"series"):s&&se(this,l,e,s.main,s.sub)}),this),"none"===l||p||s||(this[Z]?(ae(this),oe.update.call(this,e),this[Z]=!1):oe[l].call(this,e)),d=u?{type:a.event||n,escapeConnect:i,batch:h}:h[0],this[X]=!1,!t&&this._messageCenter.trigger(d.type,d)}function ue(e){var t=this._pendingActions;while(t.length){var n=t.shift();ce.call(this,n,e)}}function de(e){!e&&this.trigger("updated")}function he(e,t){e.on("rendered",(function(){t.trigger("rendered"),!e.animation.isFinished()||t[Z]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))}function pe(e,t,n,i){for(var r="component"===t,o=r?e._componentsViews:e._chartsViews,a=r?e._componentsMap:e._chartsMap,s=e._zr,l=e._api,c=0;ct.get("hoverLayerThreshold")&&!s.node&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.group.traverse((function(e){e.useHoverLayer=!0}))}}))}function Ee(e,t){var n=e.get("blendMode")||null;t.group.traverse((function(e){e.isGroup||e.style.blend!==n&&e.setStyle("blend",n),e.eachPendingDisplayable&&e.eachPendingDisplayable((function(e){e.setStyle("blend",n)}))}))}function Ce(e,t){var n=e.get("z"),i=e.get("zlevel");t.group.traverse((function(e){"group"!==e.type&&(null!=n&&(e.z=n),null!=i&&(e.zlevel=i))}))}function xe(e){var t=e._coordSysMgr;return o.extend(new d(e),{getCoordinateSystems:o.bind(t.getCoordinateSystems,t),getComponentByElement:function(t){while(t){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}}})}function we(){this.eventInfo}ie._initEvents=function(){I(ye,(function(e){var t=function(t){var n,i=this.getModel(),r=t.target,a="globalout"===e;if(a)n={};else if(r&&null!=r.dataIndex){var s=r.dataModel||i.getSeriesByIndex(r.seriesIndex);n=s&&s.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(n=o.extend({},r.eventData));if(n){var l=n.componentType,c=n.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",c=n.seriesIndex);var u=l&&null!=c&&i.getComponent(l,c),d=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];n.event=t,n.type=e,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:n,model:u,view:d},this.trigger(e,n)}};t.zrEventfulCallAtLast=!0,this._zr.on(e,t,this)}),this),I(Ae,(function(e,t){this._messageCenter.on(t,(function(e){this.trigger(t,e)}),this)}),this)},ie.isDisposed=function(){return this._disposed},ie.clear=function(){this._disposed?be(this.id):this.setOption({series:[]},!0)},ie.dispose=function(){if(this._disposed)be(this.id);else{this._disposed=!0,S.setAttribute(this.getDom(),Be,"");var e=this._api,t=this._model;I(this._componentsViews,(function(n){n.dispose(t,e)})),I(this._chartsViews,(function(n){n.dispose(t,e)})),this._zr.dispose(),delete ke[this.id]}},o.mixin(ne,c),we.prototype={constructor:we,normalizeQuery:function(e){var t={},n={},i={};if(o.isString(e)){var r=L(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};o.each(e,(function(e,r){for(var o=!1,l=0;l0&&u===r.length-c.length){var d=r.slice(0,u);"data"!==d&&(t.mainType=d,t[c.toLowerCase()]=e,o=!0)}}s.hasOwnProperty(r)&&(n[r]=e,o=!0),o||(i[r]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},filter:function(e,t,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=t.cptQuery,c=t.dataQuery;return u(l,a,"mainType")&&u(l,a,"subType")&&u(l,a,"index","componentIndex")&&u(l,a,"name")&&u(l,a,"id")&&u(c,o,"name")&&u(c,o,"dataIndex")&&u(c,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,r,o));function u(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},afterTrigger:function(){this.eventInfo=null}};var Te={},Ae={},Oe=[],Re=[],Ne=[],De=[],Ie={},Me={},ke={},Le={},Pe=new Date-0,Fe=new Date-0,Be="_echarts_instance_";function $e(e){var t=0,n=1,i=2,r="__connectUpdateStatus";function o(e,t){for(var n=0;n|<-"}]}}},"3f6b":function(e,t,n){e.exports={default:n("b9c7"),__esModule:!0}},"3f8c":function(e,t){e.exports={}},"3f8e":function(e,t,n){var i=n("8727"),r=i.createElement,o=n("20c8"),a=n("9850"),s=n("1687"),l=n("e86a"),c=n("a73c"),u=n("76a5"),d=o.CMD,h=Array.prototype.join,p="none",f=Math.round,g=Math.sin,m=Math.cos,v=Math.PI,_=2*Math.PI,y=180/v,b=1e-4;function S(e){return f(1e4*e)/1e4}function E(e){return e-b}function C(e,t){var n=t?e.textFill:e.fill;return null!=n&&n!==p}function x(e,t){var n=t?e.textStroke:e.stroke;return null!=n&&n!==p}function w(e,t){t&&T(e,"transform","matrix("+h.call(t,",")+")")}function T(e,t,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&e.setAttribute(t,n)}function A(e,t,n){e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}function O(e,t,n,i){if(C(t,n)){var r=n?t.textFill:t.fill;r="transparent"===r?p:r,T(e,"fill",r),T(e,"fill-opacity",null!=t.fillOpacity?t.fillOpacity*t.opacity:t.opacity)}else T(e,"fill",p);if(x(t,n)){var o=n?t.textStroke:t.stroke;o="transparent"===o?p:o,T(e,"stroke",o);var a=n?t.textStrokeWidth:t.lineWidth,s=!n&&t.strokeNoScale?i.getLineScale():1;T(e,"stroke-width",a/s),T(e,"paint-order",n?"stroke":"fill"),T(e,"stroke-opacity",null!=t.strokeOpacity?t.strokeOpacity:t.opacity);var l=t.lineDash;l?(T(e,"stroke-dasharray",t.lineDash.join(",")),T(e,"stroke-dashoffset",f(t.lineDashOffset||0))):T(e,"stroke-dasharray",""),t.lineCap&&T(e,"stroke-linecap",t.lineCap),t.lineJoin&&T(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&T(e,"stroke-miterlimit",t.miterLimit)}else T(e,"stroke",p)}function R(e){for(var t=[],n=e.data,i=e.len(),r=0;r=_:-b>=_),A=b>0?b%_:b%_+_,O=!1;O=!!T||!E(w)&&A>=v===!!x;var R=S(l+u*m(p)),N=S(c+h*g(p));T&&(b=x?_-1e-4:1e-4-_,O=!0,9===r&&t.push("M",R,N));var D=S(l+u*m(p+b)),I=S(c+h*g(p+b));t.push("A",S(u),S(h),f(C*y),+O,+x,D,I);break;case d.Z:a="Z";break;case d.R:D=S(n[r++]),I=S(n[r++]);var M=S(n[r++]),k=S(n[r++]);t.push("M",D,I,"L",D+M,I,"L",D+M,I+k,"L",D,I+k,"L",D,I);break}a&&t.push(a);for(var L=0;LI){for(;N=t.length)break;r=t[i++]}else{if(i=t.next(),i.done)break;r=i.value}var o=r,a=o.target.__resizeListeners__||[];a.length&&a.forEach((function(e){e()}))}};t.addResizeListener=function(e,t){a||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new r.default(s),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},t.removeResizeListener=function(e,t){e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())}},"401b":function(e,t){var n="undefined"===typeof Float32Array?Array:Float32Array;function i(e,t){var i=new n(2);return null==e&&(e=0),null==t&&(t=0),i[0]=e,i[1]=t,i}function r(e,t){return e[0]=t[0],e[1]=t[1],e}function o(e){var t=new n(2);return t[0]=e[0],t[1]=e[1],t}function a(e,t,n){return e[0]=t,e[1]=n,e}function s(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function l(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e}function c(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function u(e){return Math.sqrt(h(e))}var d=u;function h(e){return e[0]*e[0]+e[1]*e[1]}var p=h;function f(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function g(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function m(e,t){return e[0]*t[0]+e[1]*t[1]}function v(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function _(e,t){var n=u(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function y(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var b=y;function S(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var E=S;function C(e,t){return e[0]=-t[0],e[1]=-t[1],e}function x(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e}function w(e,t,n){var i=t[0],r=t[1];return e[0]=n[0]*i+n[2]*r+n[4],e[1]=n[1]*i+n[3]*r+n[5],e}function T(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function A(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}t.create=i,t.copy=r,t.clone=o,t.set=a,t.add=s,t.scaleAndAdd=l,t.sub=c,t.len=u,t.length=d,t.lenSquare=h,t.lengthSquare=p,t.mul=f,t.div=g,t.dot=m,t.scale=v,t.normalize=_,t.distance=y,t.dist=b,t.distanceSquare=S,t.distSquare=E,t.negate=C,t.lerp=x,t.applyTransform=w,t.min=T,t.max=A},"408a":function(e,t,n){var i=n("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=i(e))throw TypeError("Incorrect invocation");return+e}},"40f4":function(e,t){e.exports=function(e){var t="do if then else end until while abort array attrib by call cards cards4 catname continue datalines datalines4 delete delim delimiter display dm drop endsas error file filename footnote format goto in infile informat input keep label leave length libname link list lostcard merge missing modify options output out page put redirect remove rename replace retain return select set skip startsas stop title update waitsas where window x systask add and alter as cascade check create delete describe distinct drop foreign from group having index insert into in key like message modify msgtype not null on or order primary references reset restrict select set table unique update validate view where",n="abs|addr|airy|arcos|arsin|atan|attrc|attrn|band|betainv|blshift|bnot|bor|brshift|bxor|byte|cdf|ceil|cexist|cinv|close|cnonct|collate|compbl|compound|compress|cos|cosh|css|curobs|cv|daccdb|daccdbsl|daccsl|daccsyd|dacctab|dairy|date|datejul|datepart|datetime|day|dclose|depdb|depdbsl|depdbsl|depsl|depsl|depsyd|depsyd|deptab|deptab|dequote|dhms|dif|digamma|dim|dinfo|dnum|dopen|doptname|doptnum|dread|dropnote|dsname|erf|erfc|exist|exp|fappend|fclose|fcol|fdelete|fetch|fetchobs|fexist|fget|fileexist|filename|fileref|finfo|finv|fipname|fipnamel|fipstate|floor|fnonct|fnote|fopen|foptname|foptnum|fpoint|fpos|fput|fread|frewind|frlen|fsep|fuzz|fwrite|gaminv|gamma|getoption|getvarc|getvarn|hbound|hms|hosthelp|hour|ibessel|index|indexc|indexw|input|inputc|inputn|int|intck|intnx|intrr|irr|jbessel|juldate|kurtosis|lag|lbound|left|length|lgamma|libname|libref|log|log10|log2|logpdf|logpmf|logsdf|lowcase|max|mdy|mean|min|minute|mod|month|mopen|mort|n|netpv|nmiss|normal|note|npv|open|ordinal|pathname|pdf|peek|peekc|pmf|point|poisson|poke|probbeta|probbnml|probchi|probf|probgam|probhypr|probit|probnegb|probnorm|probt|put|putc|putn|qtr|quote|ranbin|rancau|ranexp|rangam|range|rank|rannor|ranpoi|rantbl|rantri|ranuni|repeat|resolve|reverse|rewind|right|round|saving|scan|sdf|second|sign|sin|sinh|skewness|soundex|spedis|sqrt|std|stderr|stfips|stname|stnamel|substr|sum|symget|sysget|sysmsg|sysprod|sysrc|system|tan|tanh|time|timepart|tinv|tnonct|today|translate|tranwrd|trigamma|trim|trimn|trunc|uniform|upcase|uss|var|varfmt|varinfmt|varlabel|varlen|varname|varnum|varray|varrayx|vartype|verify|vformat|vformatd|vformatdx|vformatn|vformatnx|vformatw|vformatwx|vformatx|vinarray|vinarrayx|vinformat|vinformatd|vinformatdx|vinformatn|vinformatnx|vinformatw|vinformatwx|vinformatx|vlabel|vlabelx|vlength|vlengthx|vname|vnamex|vtype|vtypex|weekday|year|yyq|zipfips|zipname|zipnamel|zipstate",i="bquote|nrbquote|cmpres|qcmpres|compstor|datatyp|display|do|else|end|eval|global|goto|if|index|input|keydef|label|left|length|let|local|lowcase|macro|mend|nrbquote|nrquote|nrstr|put|qcmpres|qleft|qlowcase|qscan|qsubstr|qsysfunc|qtrim|quote|qupcase|scan|str|substr|superq|syscall|sysevalf|sysexec|sysfunc|sysget|syslput|sysprod|sysrc|sysrput|then|to|trim|unquote|until|upcase|verify|while|window";return{aliases:["sas","SAS"],case_insensitive:!0,keywords:{literal:"null missing _all_ _automatic_ _character_ _infile_ _n_ _name_ _null_ _numeric_ _user_ _webout_",meta:t},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s\;]/},{className:"variable",begin:/\&[a-zA-Z_\&][a-zA-Z0-9_]*\.?/},{className:"emphasis",begin:/^\s*datalines|cards.*;/,end:/^\s*;\s*$/},{className:"built_in",begin:"%("+i+")"},{className:"name",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:"[^%]("+n+")[(]"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}},4108:function(e,t){e.exports=function(e){var t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",n="(\\-|\\+)?\\d+([./]\\d+)?",i=n+"[+\\-]"+n+"i",r={"builtin-name":"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},o={className:"meta",begin:"^#!",end:"$"},a={className:"literal",begin:"(#t|#f|#\\\\"+t+"|#\\\\.)"},s={className:"number",variants:[{begin:n,relevance:0},{begin:i,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},l=e.QUOTE_STRING_MODE,c=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],u={begin:t,relevance:0},d={className:"symbol",begin:"'"+t},h={endsWithParent:!0,relevance:0},p={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",a,l,s,u,d]}]},f={className:"name",begin:t,lexemes:t,keywords:r},g={begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[f,{begin:/\(/,end:/\)/,endsParent:!0,contains:[u]}]},m={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[g,f,h]};return h.contains=[a,s,l,u,d,p,m].concat(c),{illegal:/\S/,contains:[o,s,l,d,p,m].concat(c)}}},4127:function(e,t,n){"use strict";var i=n("d233"),r=n("b313"),o={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,serializeDate:function(e){return a.call(e)},skipNulls:!1,strictNullHandling:!1},l=function e(t,n,r,o,a,l,c,u,d,h,p,f){var g=t;if("function"===typeof c)g=c(n,g);else if(g instanceof Date)g=h(g);else if(null===g){if(o)return l&&!f?l(n,s.encoder):n;g=""}if("string"===typeof g||"number"===typeof g||"boolean"===typeof g||i.isBuffer(g)){if(l){var m=f?n:l(n,s.encoder);return[p(m)+"="+p(l(g,s.encoder))]}return[p(n)+"="+p(String(g))]}var v,_=[];if("undefined"===typeof g)return _;if(Array.isArray(c))v=c;else{var y=Object.keys(g);v=u?y.sort(u):y}for(var b=0;b0?A+T:""}},"414c":function(e,t,n){var i=n("3a56"),r=i.extend({type:"dataZoom.select"});e.exports=r},4160:function(e,t,n){"use strict";var i=n("23e7"),r=n("17c2");i({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},"417f":function(e,t,n){"use strict";t.__esModule=!0;var i=n("a026"),r=a(i),o=n("5924");function a(e){return e&&e.__esModule?e:{default:e}}var s=[],l="@@clickoutsideContext",c=void 0,u=0;function d(e,t,n){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&i.target&&r.target)||e.contains(i.target)||e.contains(r.target)||e===i.target||n.context.popperElm&&(n.context.popperElm.contains(i.target)||n.context.popperElm.contains(r.target))||(t.expression&&e[l].methodName&&n.context[e[l].methodName]?n.context[e[l].methodName]():e[l].bindingFn&&e[l].bindingFn())}}!r.default.prototype.$isServer&&(0,o.on)(document,"mousedown",(function(e){return c=e})),!r.default.prototype.$isServer&&(0,o.on)(document,"mouseup",(function(e){s.forEach((function(t){return t[l].documentHandler(e,c)}))})),t.default={bind:function(e,t,n){s.push(e);var i=u++;e[l]={id:i,documentHandler:d(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[l].documentHandler=d(e,t,n),e[l].methodName=t.expression,e[l].bindingFn=t.value},unbind:function(e){for(var t=s.length,n=0;n255?255:e}function a(e){return e=Math.round(e),e<0?0:e>360?360:e}function s(e){return e<0?0:e>1?1:e}function l(e){return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function c(e){return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function u(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function d(e,t,n){return e+(t-e)*n}function h(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var f=new i(20),g=null;function m(e,t){g&&p(g,t),g=f.put(e,g||t.slice())}function v(e,t){if(e){t=t||[];var n=f.get(e);if(n)return p(t,n);e+="";var i=e.replace(/ /g,"").toLowerCase();if(i in r)return p(t,r[i]),m(e,t),t;if("#"!==i.charAt(0)){var o=i.indexOf("("),a=i.indexOf(")");if(-1!==o&&a+1===i.length){var s=i.substr(0,o),u=i.substr(o+1,a-(o+1)).split(","),d=1;switch(s){case"rgba":if(4!==u.length)return void h(t,0,0,0,1);d=c(u.pop());case"rgb":return 3!==u.length?void h(t,0,0,0,1):(h(t,l(u[0]),l(u[1]),l(u[2]),d),m(e,t),t);case"hsla":return 4!==u.length?void h(t,0,0,0,1):(u[3]=c(u[3]),_(u,t),m(e,t),t);case"hsl":return 3!==u.length?void h(t,0,0,0,1):(_(u,t),m(e,t),t);default:return}}h(t,0,0,0,1)}else{if(4===i.length){var g=parseInt(i.substr(1),16);return g>=0&&g<=4095?(h(t,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),m(e,t),t):void h(t,0,0,0,1)}if(7===i.length){g=parseInt(i.substr(1),16);return g>=0&&g<=16777215?(h(t,(16711680&g)>>16,(65280&g)>>8,255&g,1),m(e,t),t):void h(t,0,0,0,1)}}}}function _(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=c(e[1]),r=c(e[2]),a=r<=.5?r*(i+1):r+i-r*i,s=2*r-a;return t=t||[],h(t,o(255*u(s,a,n+1/3)),o(255*u(s,a,n)),o(255*u(s,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function y(e){if(e){var t,n,i=e[0]/255,r=e[1]/255,o=e[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,c=(s+a)/2;if(0===l)t=0,n=0;else{n=c<.5?l/(s+a):l/(2-s-a);var u=((s-i)/6+l/2)/l,d=((s-r)/6+l/2)/l,h=((s-o)/6+l/2)/l;i===s?t=h-d:r===s?t=1/3+u-h:o===s&&(t=2/3+d-u),t<0&&(t+=1),t>1&&(t-=1)}var p=[360*t,n,c];return null!=e[3]&&p.push(e[3]),p}}function b(e,t){var n=v(e);if(n){for(var i=0;i<3;i++)n[i]=t<0?n[i]*(1-t)|0:(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:e[i]<0&&(n[i]=0);return O(n,4===n.length?"rgba":"rgb")}}function S(e){var t=v(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function E(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var i=e*(t.length-1),r=Math.floor(i),a=Math.ceil(i),l=t[r],c=t[a],u=i-r;return n[0]=o(d(l[0],c[0],u)),n[1]=o(d(l[1],c[1],u)),n[2]=o(d(l[2],c[2],u)),n[3]=s(d(l[3],c[3],u)),n}}var C=E;function x(e,t,n){if(t&&t.length&&e>=0&&e<=1){var i=e*(t.length-1),r=Math.floor(i),a=Math.ceil(i),l=v(t[r]),c=v(t[a]),u=i-r,h=O([o(d(l[0],c[0],u)),o(d(l[1],c[1],u)),o(d(l[2],c[2],u)),s(d(l[3],c[3],u))],"rgba");return n?{color:h,leftIndex:r,rightIndex:a,value:i}:h}}var w=x;function T(e,t,n,i){if(e=v(e),e)return e=y(e),null!=t&&(e[0]=a(t)),null!=n&&(e[1]=c(n)),null!=i&&(e[2]=c(i)),O(_(e),"rgba")}function A(e,t){if(e=v(e),e&&null!=t)return e[3]=s(t),O(e,"rgba")}function O(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}t.parse=v,t.lift=b,t.toHex=S,t.fastLerp=E,t.fastMapToColor=C,t.lerp=x,t.mapToColor=w,t.modifyHSL=T,t.modifyAlpha=A,t.stringify=O},"41f8":function(e,t,n){"use strict";t.__esModule=!0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isVNode=o;var r=n("8122");function o(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":i(e))&&(0,r.hasOwn)(e,"componentOptions")}},4272:function(e,t){e.exports=function(e){return{case_insensitive:!1,lexemes:"[a-zA-Z][a-zA-Z0-9_-]*",keywords:{keyword:"base-uri child-src connect-src default-src font-src form-action frame-ancestors frame-src img-src media-src object-src plugin-types report-uri sandbox script-src style-src"},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}},"428f":function(e,t,n){e.exports=n("da84")},"42a2":function(e,t,n){var i=n("b5a7"),r=n("79bc"),o=n("1cec"),a=n("c869"),s=n("39ff"),l=n("3729"),c=n("dc57"),u="[object Map]",d="[object Object]",h="[object Promise]",p="[object Set]",f="[object WeakMap]",g="[object DataView]",m=c(i),v=c(r),_=c(o),y=c(a),b=c(s),S=l;(i&&S(new i(new ArrayBuffer(1)))!=g||r&&S(new r)!=u||o&&S(o.resolve())!=h||a&&S(new a)!=p||s&&S(new s)!=f)&&(S=function(e){var t=l(e),n=t==d?e.constructor:void 0,i=n?c(n):"";if(i)switch(i){case m:return g;case v:return u;case _:return h;case y:return p;case b:return f}return t}),e.exports=S},"42e5":function(e,t){var n=function(e){this.colorStops=e||[]};n.prototype={constructor:n,addColorStop:function(e,t){this.colorStops.push({offset:e,color:t})}};var i=n;e.exports=i},"42f6":function(e,t,n){var i=n("3eba"),r=n("6d8b"),o=n("22d1"),a=n("07d7"),s=n("82f9"),l=n("eda2"),c=n("3842"),u=n("2306"),d=n("133d"),h=n("f934"),p=n("4319"),f=n("17d6"),g=n("697e"),m=n("ff2e"),v=n("e0d3"),_=v.getTooltipRenderMode,y=r.bind,b=r.each,S=c.parsePercent,E=new u.Rect({shape:{x:-1,y:-1,width:2,height:2}}),C=i.extendComponentView({type:"tooltip",init:function(e,t){if(!o.node){var n,i=e.getComponent("tooltip"),r=i.get("renderMode");this._renderMode=_(r),"html"===this._renderMode?(n=new a(t.getDom(),t,{appendToBody:i.get("appendToBody",!0)}),this._newLine="
"):(n=new s(t),this._newLine="\n"),this._tooltipContent=n}},render:function(e,t,n){if(!o.node){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=e.get("alwaysShowContent");var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var e=this._tooltipModel,t=e.get("triggerOn");f.register("itemTooltip",this._api,y((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},_keepShow:function(){var e=this._tooltipModel,t=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY})}))}},manuallyShowTip:function(e,t,n,i){if(i.from!==this.uid&&!o.node){var r=w(i,n);this._ticket="";var a=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var s=E;s.position=[i.x,i.y],s.update(),s.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:s},r)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var l=d(i,t),c=l.point[0],u=l.point[1];null!=c&&null!=u&&this._tryShow({offsetX:c,offsetY:u,position:i.position,target:l.el},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},manuallyHideTip:function(e,t,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(w(i,n))},_manuallyAxisShowTip:function(e,t,n,i){var r=i.seriesIndex,o=i.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=t.getSeriesByIndex(r);if(s){var l=s.getData();e=x([l.getItemModel(o),s,(s.coordinateSystem||{}).model,e]);if("axis"===e.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},_tryShow:function(e,t){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;r&&r.length?this._showAxisTooltip(r,e):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(e,n,t)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(e,n,t)):(this._lastDataByCoordSys=null,this._hide(t))}},_showOrMove:function(e,t){var n=e.get("showDelay");t=r.bind(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},_showAxisTooltip:function(e,t){var n=this._ecModel,i=this._tooltipModel,o=[t.offsetX,t.offsetY],a=[],s=[],c=x([t.tooltipOption,i]),u=this._renderMode,d=this._newLine,h={};b(e,(function(e){b(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value,o=[];if(t&&null!=i){var c=m.getValueLabel(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt);r.each(e.seriesDataIndices,(function(a){var l=n.getSeriesByIndex(a.seriesIndex),d=a.dataIndexInside,p=l&&l.getDataParams(d);if(p.axisDim=e.axisDim,p.axisIndex=e.axisIndex,p.axisType=e.axisType,p.axisId=e.axisId,p.axisValue=g.getAxisRawValue(t.axis,i),p.axisValueLabel=c,p){s.push(p);var f,m=l.formatTooltip(d,!0,null,u);if(r.isObject(m)){f=m.html;var v=m.markers;r.merge(h,v)}else f=m;o.push(f)}}));var p=c;"html"!==u?a.push(o.join(d)):a.push((p?l.encodeHTML(p)+d:"")+o.join(d))}}))}),this),a.reverse(),a=a.join(this._newLine+this._newLine);var p=t.position;this._showOrMove(c,(function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(c,p,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(c,a,s,Math.random(),o[0],o[1],p,void 0,h)}))},_showSeriesItemTooltip:function(e,t,n){var i=this._ecModel,o=t.seriesIndex,a=i.getSeriesByIndex(o),s=t.dataModel||a,l=t.dataIndex,c=t.dataType,u=s.getData(c),d=x([u.getItemModel(l),s,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),h=d.get("trigger");if(null==h||"item"===h){var p,f,g=s.getDataParams(l,c),m=s.formatTooltip(l,!1,c,this._renderMode);r.isObject(m)?(p=m.html,f=m.markers):(p=m,f=null);var v="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,p,g,v,e.offsetX,e.offsetY,e.position,e.target,f)})),n({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:o,from:this.uid})}},_showComponentItemTooltip:function(e,t,n){var i=t.tooltip;if("string"===typeof i){var r=i;i={content:r,formatter:r}}var o=new p(i,this._tooltipModel,this._ecModel),a=o.get("content"),s=Math.random();this._showOrMove(o,(function(){this._showTooltipContent(o,a,o.get("formatterParams")||{},s,e.offsetX,e.offsetY,e.position,t)})),n({type:"showTip",from:this.uid})},_showTooltipContent:function(e,t,n,i,r,o,a,s,c){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent,d=e.get("formatter");a=a||e.get("position");var h=t;if(d&&"string"===typeof d)h=l.formatTpl(d,n,!0);else if("function"===typeof d){var p=y((function(t,i){t===this._ticket&&(u.setContent(i,c,e),this._updatePosition(e,a,r,o,u,n,s))}),this);this._ticket=i,h=d(n,i,p)}u.setContent(h,c,e),u.show(e),this._updatePosition(e,a,r,o,u,n,s)}},_updatePosition:function(e,t,n,i,o,a,s){var l=this._api.getWidth(),c=this._api.getHeight();t=t||e.get("position");var u=o.getSize(),d=e.get("align"),p=e.get("verticalAlign"),f=s&&s.getBoundingRect().clone();if(s&&f.applyTransform(s.transform),"function"===typeof t&&(t=t([n,i],a,o.el,f,{viewSize:[l,c],contentSize:u.slice()})),r.isArray(t))n=S(t[0],l),i=S(t[1],c);else if(r.isObject(t)){t.width=u[0],t.height=u[1];var g=h.getLayoutRect(t,{width:l,height:c});n=g.x,i=g.y,d=null,p=null}else if("string"===typeof t&&s){var m=O(t,f,u);n=m[0],i=m[1]}else{m=T(n,i,o,l,c,d?null:20,p?null:20);n=m[0],i=m[1]}if(d&&(n-=R(d)?u[0]/2:"right"===d?u[0]:0),p&&(i-=R(p)?u[1]/2:"bottom"===p?u[1]:0),e.get("confine")){m=A(n,i,o,l,c);n=m[0],i=m[1]}o.moveTo(n,i)},_updateContentNotChangedOnAxis:function(e){var t=this._lastDataByCoordSys,n=!!t&&t.length===e.length;return n&&b(t,(function(t,i){var r=t.dataByAxis||{},o=e[i]||{},a=o.dataByAxis||[];n&=r.length===a.length,n&&b(r,(function(e,t){var i=a[t]||{},r=e.seriesDataIndices||[],o=i.seriesDataIndices||[];n&=e.value===i.value&&e.axisType===i.axisType&&e.axisId===i.axisId&&r.length===o.length,n&&b(r,(function(e,t){var i=o[t];n&=e.seriesIndex===i.seriesIndex&&e.dataIndex===i.dataIndex}))}))})),this._lastDataByCoordSys=e,!!n},_hide:function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},dispose:function(e,t){o.node||(this._tooltipContent.dispose(),f.unregister("itemTooltip",t))}});function x(e){var t=e.pop();while(e.length){var n=e.pop();n&&(p.isInstance(n)&&(n=n.get("tooltip",!0)),"string"===typeof n&&(n={formatter:n}),t=new p(n,t,t.ecModel))}return t}function w(e,t){return e.dispatchAction||r.bind(t.dispatchAction,t)}function T(e,t,n,i,r,o,a){var s=n.getOuterSize(),l=s.width,c=s.height;return null!=o&&(e+l+o>i?e-=l+o:e+=o),null!=a&&(t+c+a>r?t-=c+a:t+=a),[e,t]}function A(e,t,n,i,r){var o=n.getOuterSize(),a=o.width,s=o.height;return e=Math.min(e+a,i)-a,t=Math.min(t+s,r)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function O(e,t,n){var i=n[0],r=n[1],o=5,a=0,s=0,l=t.width,c=t.height;switch(e){case"inside":a=t.x+l/2-i/2,s=t.y+c/2-r/2;break;case"top":a=t.x+l/2-i/2,s=t.y-r-o;break;case"bottom":a=t.x+l/2-i/2,s=t.y+c+o;break;case"left":a=t.x-i-o,s=t.y+c/2-r/2;break;case"right":a=t.x+l+o,s=t.y+c/2-r/2}return[a,s]}function R(e){return"center"===e||"middle"===e}e.exports=C},4319:function(e,t,n){var i=n("6d8b"),r=n("22d1"),o=n("e0d3"),a=o.makeInner,s=n("625e"),l=s.enableClassExtend,c=s.enableClassCheck,u=n("3901"),d=n("9bdb"),h=n("fe21"),p=n("551f"),f=i.mixin,g=a();function m(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}function v(e,t,n){for(var i=0;i\n \n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,i={on:{}};n&&(i.on.expand=this.handleExpand);var r=this.nodes.map((function(n,r){var o=n.hasChildren;return e("cascader-node",l()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+r,"aria-haspopup":o,"aria-owns":o?t:null}},i]))}));return[].concat(r,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,i={nativeOn:{}};return this.panel.isHoverMenu&&(i.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",l()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},i]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},A=T,O=Object(y["a"])(A,S,E,!1,null,null,null);O.options.__file="packages/cascader-panel/src/cascader-menu.vue";var R=O.exports,N=n(21),D=function(){function e(e,t){for(var n=0;n1?t-1:0),i=1;i1?i-1:0),o=1;o0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},D(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,i=n.disabled,r=n.checkStrictly;return e[i]||!r&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,i=this.children,r=this.config,o=r.lazy,a=r.leaf;if(o){var s=Object(N["isDef"])(e[a])?e[a]:!!t&&!i.length;return this.hasChildren=!s,s}return!n}}]),e}(),L=k;function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var F=function e(t,n){return t.reduce((function(t,i){return i.isLeaf?t.push(i):(!n&&t.push(i),t=t.concat(e(i.children,n))),t}),[])},B=function(){function e(t,n){P(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(g["coerceTruthyValueToArray"])(e),this.nodes=e.map((function(e){return new L(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new L(e,this.config,t),i=t?t.children:this.nodes;i.push(n)},e.prototype.appendNodes=function(e,t){var n=this;e=Object(g["coerceTruthyValueToArray"])(e),e.forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:F(this.nodes,e)},e.prototype.getNodeByValue=function(e){if(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(g["valueEquals"])(t.path,e)||t.value===e}));return t&&t.length?t[0]:null}return null},e}(),$=B,V=n(9),G=n.n(V),U=n(40),z=n.n(U),j=n(31),H=n.n(j),W=Object.assign||function(e){for(var t=1;t0){var l=n.store.getNodeByValue(o);l.data[s]||n.lazyLoad(l,(function(){n.handleExpand(l)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(i)};i.lazyLoad(e,r)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){if(!this.$isServer){var e=this.$refs.menu||[];e.forEach((function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),i=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");H()(n,i)}}))}},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue,n=this.multiple;if(n){var i=this.getFlattedNodes(e);return i.filter((function(e){return e.checked}))}return Object(g["isEmpty"])(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,i=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=i?[]:null}}},te=ee,ne=Object(y["a"])(te,i,r,!1,null,null,null);ne.options.__file="packages/cascader-panel/src/cascader-panel.vue";var ie=ne.exports;ie.install=function(e){e.component(ie.name,ie)};t["default"]=ie},6:function(e,t){e.exports=n("6b7c")},9:function(e,t){e.exports=n("7f4d")}})},4784:function(e,t,n){var i=n("3eba"),r=n("f706"),o=n("c8ef"),a=n("1687"),s=n("87c3"),l=i.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new r(o)},render:function(e,t,n){var i=e.getData(),r=this._symbolDraw;r.updateData(i),this.group.add(r.group)},updateTransform:function(e,t,n){var i=e.getData();this.group.dirty();var r=s().reset(e);r.progress&&r.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateGroupTransform:function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=a.clone(t.getRoamTransform()),this.group.decomposeTransform())},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(t)},dispose:function(){}});e.exports=l},"47f5":function(e,t,n){var i=n("2b03"),r=n("d9a8"),o=n("099a");function a(e,t,n){return t===t?o(e,t,n):i(e,r,n)}e.exports=a},"480e":function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),o=n("2306"),a=n("cd84"),s=n("6d8b");function l(e,t,n){var i=e[1]-e[0];t=s.map(t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}));var r=t.length,o=0;return function(e){for(var i=o;i=0;i--){a=t[i].interval;if(a[0]<=e&&e<=a[1]){o=i;break}}return i>=0&&i=t[0]&&e<=t[1]}}function u(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var d=r.extendChartView({type:"heatmap",render:function(e,t,n){var i;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):u(r)&&this._renderOnGeo(r,e,i,n)},incrementalPrepareRender:function(e,t,n){this.group.removeAll()},incrementalRender:function(e,t,n,i){var r=t.coordinateSystem;r&&this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)},_renderOnCartesianAndCalendar:function(e,t,n,i,r){var a,l,c=e.coordinateSystem;if("cartesian2d"===c.type){var u=c.getAxis("x"),d=c.getAxis("y");a=u.getBandWidth(),l=d.getBandWidth()}for(var h=this.group,p=e.getData(),f="itemStyle",g="emphasis.itemStyle",m="label",v="emphasis.label",_=e.getModel(f).getItemStyle(["color"]),y=e.getModel(g).getItemStyle(),b=e.getModel(m),S=e.getModel(v),E=c.type,C="cartesian2d"===E?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],x=n;x=0?i+=g:i-=g:b>=0?i-=g:i+=g}return i}function f(e,t){var n=[],o=i.quadraticSubdivide,s=[[],[],[]],l=[[],[]],c=[];t/=2,e.eachEdge((function(e,i){var u=e.getLayout(),d=e.getVisual("fromSymbol"),h=e.getVisual("toSymbol");u.__original||(u.__original=[r.clone(u[0]),r.clone(u[1])],u[2]&&u.__original.push(r.clone(u[2])));var f=u.__original;if(null!=u[2]){if(r.copy(s[0],f[0]),r.copy(s[1],f[2]),r.copy(s[2],f[1]),d&&"none"!==d){var g=a(e.node1),m=p(s,f[0],g*t);o(s[0][0],s[1][0],s[2][0],m,n),s[0][0]=n[3],s[1][0]=n[4],o(s[0][1],s[1][1],s[2][1],m,n),s[0][1]=n[3],s[1][1]=n[4]}if(h&&"none"!==h){g=a(e.node2),m=p(s,f[1],g*t);o(s[0][0],s[1][0],s[2][0],m,n),s[1][0]=n[1],s[2][0]=n[2],o(s[0][1],s[1][1],s[2][1],m,n),s[1][1]=n[1],s[2][1]=n[2]}r.copy(u[0],s[0]),r.copy(u[1],s[2]),r.copy(u[2],s[1])}else{if(r.copy(l[0],f[0]),r.copy(l[1],f[1]),r.sub(c,l[1],l[0]),r.normalize(c,c),d&&"none"!==d){g=a(e.node1);r.scaleAndAdd(l[0],l[0],c,g*t)}if(h&&"none"!==h){g=a(e.node2);r.scaleAndAdd(l[1],l[1],c,-g*t)}r.copy(u[0],l[0]),r.copy(u[1],l[1])}}))}e.exports=f},4840:function(e,t,n){var i=n("825a"),r=n("1c0b"),o=n("b622"),a=o("species");e.exports=function(e,t){var n,o=i(e).constructor;return void 0===o||void 0==(n=i(o)[a])?t:r(n)}},"485f":function(e,t){e.exports=function(e){var t={className:"params",begin:"\\(",end:"\\)"},n={literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_ofacosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image"};return{case_insensitive:!0,aliases:["f90","f95"],keywords:n,illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,t]},e.COMMENT("!","$",{relevance:0}),{className:"number",begin:"(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?",relevance:0}]}}},4896:function(e,t,n){var i=n("6f8d"),r=n("c230"),o=n("9e57"),a=n("6e9a"),s=n("edbd"),l=n("7a37"),c=n("b2ed"),u=c("IE_PROTO"),d="prototype",h=function(){},p=function(){var e,t=l("iframe"),n=o.length,i="<",r="script",a=">",c="java"+r+":";t.style.display="none",s.appendChild(t),t.src=String(c),e=t.contentWindow.document,e.open(),e.write(i+r+a+"document.F=Object"+i+"/"+r+a),e.close(),p=e.F;while(n--)delete p[d][o[n]];return p()};e.exports=Object.create||function(e,t){var n;return null!==e?(h[d]=i(e),n=new h,h[d]=null,n[u]=e):n=p(),void 0===t?n:r(n,t)},a[u]=!0},4897:function(e,t,n){"use strict";t.__esModule=!0,t.i18n=t.use=t.t=void 0;var i=n("f0d9"),r=d(i),o=n("a026"),a=d(o),s=n("3c4e"),l=d(s),c=n("9d7e"),u=d(c);function d(e){return e&&e.__esModule?e:{default:e}}var h=(0,u.default)(a.default),p=r.default,f=!1,g=function(){var e=Object.getPrototypeOf(this||a.default).$t;if("function"===typeof e&&a.default.locale)return f||(f=!0,a.default.locale(a.default.config.lang,(0,l.default)(p,a.default.locale(a.default.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},m=t.t=function(e,t){var n=g.apply(this,arguments);if(null!==n&&void 0!==n)return n;for(var i=e.split("."),r=p,o=0,a=i.length;o3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;p(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:a})}if(n){var c=Math.abs(i),u=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);p(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:u,originX:o,originY:a})}}}function h(e){if(!a.isTaken(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;p(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY})}}function p(e,t,n,i,r){e.pointerChecker&&e.pointerChecker(i,r.originX,r.originY)&&(o.stop(i.event),f(e,t,n,i,r))}function f(e,t,n,r,o){o.isAvailableBehavior=i.bind(g,null,n,r),e.trigger(t,o)}function g(e,t,n){var r=n[e];return!e||r&&(!i.isString(r)||t.event[r+"Key"])}i.mixin(s,r);var m=s;e.exports=m},"4a3f":function(e,t,n){var i=n("401b"),r=i.create,o=i.distSquare,a=Math.pow,s=Math.sqrt,l=1e-8,c=1e-4,u=s(3),d=1/3,h=r(),p=r(),f=r();function g(e){return e>-l&&el||e<-l}function v(e,t,n,i,r){var o=1-r;return o*o*(o*e+3*r*t)+r*r*(r*i+3*o*n)}function _(e,t,n,i,r){var o=1-r;return 3*(((t-e)*o+2*(n-t)*r)*o+(i-n)*r*r)}function y(e,t,n,i,r,o){var l=i+3*(t-n)-e,c=3*(n-2*t+e),h=3*(t-e),p=e-r,f=c*c-3*l*h,m=c*h-9*l*p,v=h*h-3*c*p,_=0;if(g(f)&&g(m))if(g(c))o[0]=0;else{var y=-h/c;y>=0&&y<=1&&(o[_++]=y)}else{var b=m*m-4*f*v;if(g(b)){var S=m/f,E=(y=-c/l+S,-S/2);y>=0&&y<=1&&(o[_++]=y),E>=0&&E<=1&&(o[_++]=E)}else if(b>0){var C=s(b),x=f*c+1.5*l*(-m+C),w=f*c+1.5*l*(-m-C);x=x<0?-a(-x,d):a(x,d),w=w<0?-a(-w,d):a(w,d);y=(-c-(x+w))/(3*l);y>=0&&y<=1&&(o[_++]=y)}else{var T=(2*f*c-3*l*m)/(2*s(f*f*f)),A=Math.acos(T)/3,O=s(f),R=Math.cos(A),N=(y=(-c-2*O*R)/(3*l),E=(-c+O*(R+u*Math.sin(A)))/(3*l),(-c+O*(R-u*Math.sin(A)))/(3*l));y>=0&&y<=1&&(o[_++]=y),E>=0&&E<=1&&(o[_++]=E),N>=0&&N<=1&&(o[_++]=N)}}return _}function b(e,t,n,i,r){var o=6*n-12*t+6*e,a=9*t+3*i-3*e-9*n,l=3*t-3*e,c=0;if(g(a)){if(m(o)){var u=-l/o;u>=0&&u<=1&&(r[c++]=u)}}else{var d=o*o-4*a*l;if(g(d))r[0]=-o/(2*a);else if(d>0){var h=s(d),p=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(r[c++]=u),p>=0&&p<=1&&(r[c++]=p)}}return c}function S(e,t,n,i,r,o){var a=(t-e)*r+e,s=(n-t)*r+t,l=(i-n)*r+n,c=(s-a)*r+a,u=(l-s)*r+s,d=(u-c)*r+c;o[0]=e,o[1]=a,o[2]=c,o[3]=d,o[4]=d,o[5]=u,o[6]=l,o[7]=i}function E(e,t,n,i,r,a,l,u,d,g,m){var _,y,b,S,E,C=.005,x=1/0;h[0]=d,h[1]=g;for(var w=0;w<1;w+=.05)p[0]=v(e,n,r,l,w),p[1]=v(t,i,a,u,w),S=o(h,p),S=0&&S=0&&u<=1&&(r[c++]=u)}}else{var d=a*a-4*o*l;if(g(d)){u=-a/(2*o);u>=0&&u<=1&&(r[c++]=u)}else if(d>0){var h=s(d),p=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(r[c++]=u),p>=0&&p<=1&&(r[c++]=p)}}return c}function T(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i}function A(e,t,n,i,r){var o=(t-e)*i+e,a=(n-t)*i+t,s=(a-o)*i+o;r[0]=e,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function O(e,t,n,i,r,a,l,u,d){var g,m=.005,v=1/0;h[0]=l,h[1]=u;for(var _=0;_<1;_+=.05){p[0]=C(e,n,r,_),p[1]=C(t,i,a,_);var y=o(h,p);y=0&&y=0;--i)if(t[i]===e)return!0;return!1}),n):null:n[0]},g.prototype.update=function(e,t){if(e){var n=this.getDefs(!1);if(e[this._domName]&&n.contains(e[this._domName]))"function"===typeof t&&t(e);else{var i=this.add(e);i&&(e[this._domName]=i)}}},g.prototype.addDom=function(e){var t=this.getDefs(!0);t.appendChild(e)},g.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},g.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return o.each(this._tagNames,(function(n){var i=e.getElementsByTagName(n);t=t.concat([].slice.call(i))})),t},g.prototype.markAllUnused=function(){var e=this.getDoms(),t=this;o.each(e,(function(e){e[t._markLabel]=p}))},g.prototype.markUsed=function(e){e&&(e[this._markLabel]=f)},g.prototype.removeUnused=function(){var e=this.getDefs(!1);if(e){var t=this.getDoms(),n=this;o.each(t,(function(t){t[n._markLabel]!==f&&e.removeChild(t)}))}},g.prototype.getSvgProxy=function(e){return e instanceof a?u:e instanceof s?d:e instanceof l?h:u},g.prototype.getTextSvgElement=function(e){return e.__textSvgEl},g.prototype.getSvgElement=function(e){return e.__svgEl};var m=g;e.exports=m},"4b08":function(e,t,n){var i=n("7dcf"),r=i.extend({type:"dataZoom.select"});e.exports=r},"4b17":function(e,t,n){var i=n("6428");function r(e){var t=i(e),n=t%1;return t===t?n?t-n:t:0}e.exports=r},"4b26":function(e,t,n){"use strict";t.__esModule=!0;var i=n("a026"),r=a(i),o=n("5924");function a(e){return e&&e.__esModule?e:{default:e}}var s=!1,l=!1,c=void 0,u=function(){if(!r.default.prototype.$isServer){var e=h.modalDom;return e?s=!0:(s=!1,e=document.createElement("div"),h.modalDom=e,e.addEventListener("touchmove",(function(e){e.preventDefault(),e.stopPropagation()})),e.addEventListener("click",(function(){h.doOnModalClick&&h.doOnModalClick()}))),e}},d={},h={modalFade:!0,getInstance:function(e){return d[e]},register:function(e,t){e&&t&&(d[e]=t)},deregister:function(e){e&&(d[e]=null,delete d[e])},nextZIndex:function(){return h.zIndex++},modalStack:[],doOnModalClick:function(){var e=h.modalStack[h.modalStack.length-1];if(e){var t=h.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,i,a){if(!r.default.prototype.$isServer&&e&&void 0!==t){this.modalFade=a;for(var l=this.modalStack,c=0,d=l.length;c0){var i=t[t.length-1];if(i.id===e){if(i.modalClass){var r=i.modalClass.trim().split(/\s+/);r.forEach((function(e){return(0,o.removeClass)(n,e)}))}t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex)}else for(var a=t.length-1;a>=0;a--)if(t[a].id===e){t.splice(a,1);break}}0===t.length&&(this.modalFade&&(0,o.addClass)(n,"v-modal-leave"),setTimeout((function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",h.modalDom=void 0),(0,o.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(h,"zIndex",{configurable:!0,get:function(){return l||(c=c||(r.default.prototype.$ELEMENT||{}).zIndex||2e3,l=!0),c},set:function(e){c=e}});var p=function(){if(!r.default.prototype.$isServer&&h.modalStack.length>0){var e=h.modalStack[h.modalStack.length-1];if(!e)return;var t=h.getInstance(e.id);return t}};r.default.prototype.$isServer||window.addEventListener("keydown",(function(e){if(27===e.keyCode){var t=p();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}})),t.default=h},"4b8b":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"4bf6":function(e,t,n){var i=n("66fc"),r=n("697e"),o=n("f934"),a=o.getLayoutRect,s=n("6d8b"),l=s.each;function c(e,t,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(e,t,n),this.model=e}c.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:c,_init:function(e,t,n){var o=this.dimension,a=new i(o,r.createScaleByModel(e),[0,0],e.get("type"),e.get("position")),s="category"===a.type;a.onBand=s&&e.get("boundaryGap"),a.inverse=e.get("inverse"),a.orient=e.get("orient"),e.axis=a,a.model=e,a.coordinateSystem=this,this._axis=a},update:function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();l(t.mapDimension(this.dimension,!0),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),r.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(e,t){this._rect=a({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],r=t.reverse?1:0;t.setExtent(i[r],i[1-r]),this._updateAxisTransform(t,n?e.x:e.y)},_updateAxisTransform:function(e,t){var n=e.getExtent(),i=n[0]+n[1],r=e.isHorizontal();e.toGlobalCoord=r?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=r?function(e){return e-t}:function(e){return i-e+t}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(e){var t=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},pointToData:function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},dataToPoint:function(e){var t=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[r]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i}};var u=c;e.exports=u},"4c86":function(e,t,n){var i=n("6d8b"),r=i.each,o=n("bda7"),a=n("e0d3"),s=a.makeInner,l=n("320a"),c=n("1792"),u=n("6bd4"),d=n("a7f2"),h=s(),p={load:function(e,t,n){var i=h(t).parsed;if(i)return i;var a,s=t.specialAreas||{},p=t.geoJSON;try{a=p?o(p,n):[]}catch(g){throw new Error("Invalid geoJson format\n"+g.message)}return l(e,a),r(a,(function(t){var n=t.name;c(e,t),u(e,t),d(e,t);var i=s[n];i&&t.transformTo(i.left,i.top,i.width,i.height)})),h(t).parsed={regions:a,boundingRect:f(a)}}};function f(e){for(var t,n=0;n0?a:s)}function u(e,t){return t.get(e>0?r:o)}}};e.exports=l},"4d20":function(e,t,n){var i=n("1917"),r=n("10db"),o=n("6ca1"),a=n("3397"),s=n("9c0e"),l=n("faf5"),c=Object.getOwnPropertyDescriptor;t.f=n("0bad")?c:function(e,t){if(e=o(e),t=a(t,!0),l)try{return c(e,t)}catch(n){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},"4d62":function(e,t,n){var i=n("2306"),r=n("6d8b"),o=n("e887");function a(e,t){i.Group.call(this);var n=new i.Polygon,r=new i.Polyline,o=new i.Text;this.add(n),this.add(r),this.add(o),this.highDownOnUpdate=function(e,t){"emphasis"===t?(r.ignore=r.hoverIgnore,o.ignore=o.hoverIgnore):(r.ignore=r.normalIgnore,o.ignore=o.normalIgnore)},this.updateData(e,t,!0)}var s=a.prototype,l=["itemStyle","opacity"];s.updateData=function(e,t,n){var o=this.childAt(0),a=e.hostModel,s=e.getItemModel(t),c=e.getItemLayout(t),u=e.getItemModel(t).get(l);u=null==u?1:u,o.useStyle({}),n?(o.setShape({points:c.points}),o.setStyle({opacity:0}),i.initProps(o,{style:{opacity:u}},a,t)):i.updateProps(o,{style:{opacity:u},shape:{points:c.points}},a,t);var d=s.getModel("itemStyle"),h=e.getItemVisual(t,"color");o.setStyle(r.defaults({lineJoin:"round",fill:h},d.getItemStyle(["opacity"]))),o.hoverStyle=d.getModel("emphasis").getItemStyle(),this._updateLabel(e,t),i.setHoverStyle(this)},s._updateLabel=function(e,t){var n=this.childAt(1),r=this.childAt(2),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,c=e.getItemVisual(t,"color");i.updateProps(n,{shape:{points:l.linePoints||l.linePoints}},o,t),i.updateProps(r,{style:{x:l.x,y:l.y}},o,t),r.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var u=a.getModel("label"),d=a.getModel("emphasis.label"),h=a.getModel("labelLine"),p=a.getModel("emphasis.labelLine");c=e.getItemVisual(t,"color");i.setLabelStyle(r.style,r.hoverStyle={},u,d,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:e.getName(t),autoColor:c,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign}),r.ignore=r.normalIgnore=!u.get("show"),r.hoverIgnore=!d.get("show"),n.ignore=n.normalIgnore=!h.get("show"),n.hoverIgnore=!p.get("show"),n.setStyle({stroke:c}),n.setStyle(h.getModel("lineStyle").getLineStyle()),n.hoverStyle=p.getModel("lineStyle").getLineStyle()},r.inherits(a,i.Group);var c=o.extend({type:"funnel",render:function(e,t,n){var i=e.getData(),r=this._data,o=this.group;i.diff(r).add((function(e){var t=new a(i,e);i.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=r.getItemGraphicEl(t);n.updateData(i,e),o.add(n),i.setItemGraphicEl(e,n)})).remove((function(e){var t=r.getItemGraphicEl(e);o.remove(t)})).execute(),this._data=i},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),u=c;e.exports=u},"4d64":function(e,t,n){var i=n("fc6a"),r=n("50c4"),o=n("23cb"),a=function(e){return function(t,n,a){var s,l=i(t),c=r(l.length),u=o(a,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4d85":function(e,t,n){var i=n("e46b"),r=n("4f85"),o=r.extend({type:"series.gauge",getInitialData:function(e,t){return i(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),a=o;e.exports=a},"4d88":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"4dd1":function(e,t){e.exports=function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",n={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},i={className:"number",variants:[{begin:"\\b(0[bB][01]+)n?"},{begin:"\\b(0[oO][0-7]+)n?"},{begin:e.C_NUMBER_RE+"n?"}],relevance:0},r={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},o={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,r],subLanguage:"xml"}},a={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,r],subLanguage:"css"}},s={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,r]};r.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,a,s,i,e.REGEXP_MODE];var l=r.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{aliases:["js","jsx"],keywords:n,contains:[{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},{className:"meta",begin:/^#!/,end:/$/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,a,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,{begin:/[{,\n]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:l}]}]},{className:"",begin:/\s/,end:/\s*/,skip:!0},{begin://,subLanguage:"xml",contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},{begin:/<[A-Za-z0-9\\._:-]+/,end:/(\/[A-Za-z0-9\\._:-]+|[A-Za-z0-9\\._:-]+\/)>/,skip:!0,contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},"self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:l}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor get set",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}}},"4de4":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").filter,o=n("1dde");i({target:"Array",proto:!0,forced:!o("filter")},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var i=n("f8c2"),r=n("7b0b"),o=n("9bdd"),a=n("e95a"),s=n("50c4"),l=n("8418"),c=n("35a1");e.exports=function(e){var t,n,u,d,h,p=r(e),f="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,v=void 0!==m,_=0,y=c(p);if(v&&(m=i(m,g>2?arguments[2]:void 0,2)),void 0==y||f==Array&&a(y))for(t=s(p.length),n=new f(t);t>_;_++)l(n,_,v?m(p[_],_):p[_]);else for(d=y.call(p),h=d.next,n=new f;!(u=h.call(d)).done;_++)l(n,_,v?o(d,m,[u.value,_],!0):u.value);return n.length=_,n}},"4e08":function(e,t,n){(function(e){var n;"undefined"!==typeof window?n=window.__DEV__:"undefined"!==typeof e&&(n=e.__DEV__),"undefined"===typeof n&&(n=!0);var i=n;t.__DEV__=i}).call(this,n("c8ba"))},"4e10":function(e,t,n){var i=n("6d8b"),r=n("e46b"),o=n("4f85"),a=n("eda2"),s=a.encodeHTML,l=a.addCommas,c=n("7023"),u=n("2b17"),d=u.retrieveRawAttr,h=n("5b87"),p=n("0f99"),f=p.makeSeriesEncodeForNameBased,g=o.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(e){for(var t=r(this,{coordDimensions:["value"],encodeDefaulter:i.curry(f,this)}),n=t.mapDimension("value"),o=i.createHashMap(),a=[],s=[],l=0,c=t.count();l":"\n";return u.join(", ")+f+s(a+" : "+o)},getTooltipPosition:function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,i=n.getRegion(t);return i&&n.dataToPoint(i.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});i.mixin(g,c);var m=g;e.exports=m},"4e47":function(e,t,n){var i=n("6d8b"),r=n("2306"),o={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},a=2,s=4;function l(e,t,n){r.Group.call(this);var i=new r.Sector({z2:a});i.seriesIndex=t.seriesIndex;var o=new r.Text({z2:s,silent:e.getModel("label").get("silent")});function l(){o.ignore=o.hoverIgnore}function c(){o.ignore=o.normalIgnore}this.add(i),this.add(o),this.updateData(!0,e,"normal",t,n),this.on("emphasis",l).on("normal",c).on("mouseover",l).on("mouseout",c)}var c=l.prototype;c.updateData=function(e,t,n,o,a){this.node=t,t.piece=this,o=o||this._seriesModel,a=a||this._ecModel;var s=this.childAt(0);s.dataIndex=t.dataIndex;var l=t.getModel(),c=t.getLayout(),u=i.extend({},c);u.label=null;var h=d(t,o,a);f(t,o,h);var p,g=l.getModel("itemStyle").getItemStyle();if("normal"===n)p=g;else{var m=l.getModel(n+".itemStyle").getItemStyle();p=i.merge(m,g)}p=i.defaults({lineJoin:"bevel",fill:p.fill||h},p),e?(s.setShape(u),s.shape.r=c.r0,r.updateProps(s,{shape:{r:c.r}},o,t.dataIndex),s.useStyle(p)):"object"===typeof p.fill&&p.fill.type||"object"===typeof s.style.fill&&s.style.fill.type?(r.updateProps(s,{shape:u},o),s.useStyle(p)):r.updateProps(s,{shape:u,style:p},o),this._updateLabel(o,h,n);var v=l.getShallow("cursor");if(v&&s.attr("cursor",v),e){var _=o.getShallow("highlightPolicy");this._initEvents(s,t,o,_)}this._seriesModel=o||this._seriesModel,this._ecModel=a||this._ecModel,r.setHoverStyle(this)},c.onEmphasis=function(e){var t=this;this.node.hostTree.root.eachNode((function(n){n.piece&&(t.node===n?n.piece.updateData(!1,n,"emphasis"):p(n,t.node,e)?n.piece.childAt(0).trigger("highlight"):e!==o.NONE&&n.piece.childAt(0).trigger("downplay"))}))},c.onNormal=function(){this.node.hostTree.root.eachNode((function(e){e.piece&&e.piece.updateData(!1,e,"normal")}))},c.onHighlight=function(){this.updateData(!1,this.node,"highlight")},c.onDownplay=function(){this.updateData(!1,this.node,"downplay")},c._updateLabel=function(e,t,n){var o=this.node.getModel(),a=o.getModel("label"),s="normal"===n||"emphasis"===n?a:o.getModel(n+".label"),l=o.getModel("emphasis.label"),c=s.get("formatter"),u=c?n:"normal",d=i.retrieve(e.getFormattedLabel(this.node.dataIndex,u,null,null,"label"),this.node.name);!1===A("show")&&(d="");var h=this.node.getLayout(),p=s.get("minAngle");null==p&&(p=a.get("minAngle")),p=p/180*Math.PI;var f=h.endAngle-h.startAngle;null!=p&&Math.abs(f)Math.PI/2?"right":"left"):E&&"center"!==E?"left"===E?(m=h.r0+S,v>Math.PI/2&&(E="right")):"right"===E&&(m=h.r-S,v>Math.PI/2&&(E="left")):(m=(h.r+h.r0)/2,E="center"),g.attr("style",{text:d,textAlign:E,textVerticalAlign:A("verticalAlign")||"middle",opacity:A("opacity")});var C=m*_+h.cx,x=m*y+h.cy;g.attr("position",[C,x]);var w=A("rotate"),T=0;function A(e){var t=s.get(e);return null==t?a.get(e):t}"radial"===w?(T=-v,T<-Math.PI/2&&(T+=Math.PI)):"tangential"===w?(T=Math.PI/2-v,T>Math.PI/2?T-=Math.PI:T<-Math.PI/2&&(T+=Math.PI)):"number"===typeof w&&(T=w*Math.PI/180),g.attr("rotation",T)},c._initEvents=function(e,t,n,i){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,o=function(){r.onEmphasis(i)},a=function(){r.onNormal()},s=function(){r.onDownplay()},l=function(){r.onHighlight()};n.isAnimationEnabled()&&e.on("mouseover",o).on("mouseout",a).on("emphasis",o).on("normal",a).on("downplay",s).on("highlight",l)},i.inherits(l,r.Group);var u=l;function d(e,t,n){var i=e.getVisual("color"),r=e.getVisual("visualMeta");r&&0!==r.length||(i=null);var o=e.getModel("itemStyle").get("color");if(o)return o;if(i)return i;if(0===e.depth)return n.option.color[0];var a=n.option.color.length;return o=n.option.color[h(e)%a],o}function h(e){var t=e;while(t.depth>1)t=t.parentNode;var n=e.getAncestors()[0];return i.indexOf(n.children,t)}function p(e,t,n){return n!==o.NONE&&(n===o.SELF?e===t:n===o.ANCESTOR?e===t||e.isAncestorOf(t):e===t||e.isDescendantOf(t))}function f(e,t,n){var i=t.getData();i.setItemVisual(e.dataIndex,"color",n)}e.exports=u},"4e4b":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=61)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},10:function(e,t){e.exports=n("f3ad")},12:function(e,t){e.exports=n("417f")},14:function(e,t){e.exports=n("14e9")},16:function(e,t){e.exports=n("4010")},17:function(e,t){e.exports=n("0e15")},21:function(e,t){e.exports=n("d397")},22:function(e,t){e.exports=n("12f2")},3:function(e,t){e.exports=n("8122")},31:function(e,t){e.exports=n("2a5e")},33:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},r=[];i._withStripped=!0;var o=n(4),a=n.n(o),s=n(3),l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c={mixins:[a.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,i=n.remote,r=n.valueKey;if(!this.created&&!i){if(r&&"object"===("undefined"===typeof e?"undefined":l(e))&&"object"===("undefined"===typeof t?"undefined":l(t))&&e[r]===t[r])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(s["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,i=n?t:[t],r=this.select.cachedOptions.indexOf(this),o=i.indexOf(this);r>-1&&o<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},u=c,d=n(0),h=Object(d["a"])(u,i,r,!1,null,null,null);h.options.__file="packages/select/src/option.vue";t["a"]=h.exports},37:function(e,t){e.exports=n("8bbc")},4:function(e,t){e.exports=n("d010")},5:function(e,t){e.exports=n("e974")},6:function(e,t){e.exports=n("6b7c")},61:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.navigateOptions("prev")},function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?(t.preventDefault(),e.selectOption(t)):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return"button"in t||!e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?e.deletePrevTag(t):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur},nativeOn:{keyup:function(t){return e.debouncedOnInputChange(t)},keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("prev")},function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?(t.preventDefault(),e.selectOption(t)):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],paste:function(t){return e.debouncedOnInputChange(t)},mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)},r=[];i._withStripped=!0;var o=n(4),a=n.n(o),s=n(22),l=n.n(s),c=n(6),u=n.n(c),d=n(10),h=n.n(d),p=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":e.$parent.multiple},e.popperClass],style:{minWidth:e.minWidth}},[e._t("default")],2)},f=[];p._withStripped=!0;var g=n(5),m=n.n(g),v={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[m.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},_=v,y=n(0),b=Object(y["a"])(_,p,f,!1,null,null,null);b.options.__file="packages/select/src/select-dropdown.vue";var S=b.exports,E=n(33),C=n(37),x=n.n(C),w=n(14),T=n.n(w),A=n(17),O=n.n(A),R=n(12),N=n.n(R),D=n(16),I=n(31),M=n.n(I),k=n(3),L={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"===typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(e){e.hover=t.hoverOption===e}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}},P=n(21),F={mixins:[a.a,u.a,l()("reference"),L],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(k["isIE"])()&&!Object(k["isEdge"])()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value,t=this.clearable&&!this.selectDisabled&&this.inputHovering&&e;return t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(e){return!e.created})).some((function(t){return t.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return"undefined"!==typeof this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:h.a,ElSelectMenu:S,ElOption:E["a"],ElTag:x.a,ElScrollbar:T.a},directives:{Clickoutside:N.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(k["valueEquals"])(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(e){return t.handleQueryChange(n)}));else{var i=n[n.length-1]||"";this.isOnComposition=!Object(P["isKorean"])(i)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!==typeof this.filterMethod&&"function"!==typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"===typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"===typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");M()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object(k["valueEquals"])(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),i="[object null]"===Object.prototype.toString.call(e).toLowerCase(),r="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o],s=n?Object(k["getValueByPath"])(a.value,this.valueKey)===Object(k["getValueByPath"])(e,this.valueKey):a.value===e;if(s){t=a;break}}if(t)return t;var l=n||i||r?"":e,c={value:e,currentLabel:l};return this.multiple&&(c.hitState=!1),c},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(t){n.push(e.getOption(t))})),this.selected=n,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.filterable&&(this.menuVisibleOnFocus=!0)),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],i=e.$refs.tags,r=e.initialInputHeight||40;n.style.height=0===e.selected.length?r+"px":Math.max(i?i.clientHeight+(i.clientHeight>r?6:0):0,r)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var i=(this.value||[]).slice(),r=this.getValueIndex(i,e.value);r>-1?i.splice(r,1):(this.multipleLimit<=0||i.length0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var i=this.valueKey,r=-1;return e.some((function(e,n){return Object(k["getValueByPath"])(e,i)===Object(k["getValueByPath"])(t,i)&&(r=n,!0)})),r}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var i=this.value.slice();i.splice(n,1),this.$emit("input",i),this.emitChange(i),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var i=this.options[n];if(this.query){if(!i.disabled&&!i.groupDisabled&&i.visible){this.hoverIndex=n;break}}else if(i.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(k["getValueByPath"])(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=O()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=O()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(D["addResizeListener"])(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n={medium:36,small:32,mini:28},i=t.$el.querySelector("input");this.initialInputHeight=i.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(D["removeResizeListener"])(this.$el,this.handleResize)}},B=F,$=Object(y["a"])(B,i,r,!1,null,null,null);$.options.__file="packages/select/src/select.vue";var V=$.exports;V.install=function(e){e.component(V.name,V)};t["default"]=V}})},"4e71":function(e,t,n){n("e198")("observable")},"4e82":function(e,t,n){"use strict";var i=n("23e7"),r=n("1c0b"),o=n("7b0b"),a=n("d039"),s=n("b301"),l=[],c=l.sort,u=a((function(){l.sort(void 0)})),d=a((function(){l.sort(null)})),h=s("sort"),p=u||!d||h;i({target:"Array",proto:!0,forced:p},{sort:function(e){return void 0===e?c.call(o(this)):c.call(o(this),r(e))}})},"4e9f":function(e,t,n){var i=n("22d1"),r=n("29a8"),o=n("2145"),a=r.toolbox.saveAsImage;function s(e){this.model=e}s.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:a.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:a.lang.slice()},s.prototype.unusable=!i.canvasSupported;var l=s.prototype;l.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",o="svg"===t.getZr().painter.getType(),a=o?"svg":n.get("type",!0)||"png",s=t.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!==typeof MouseEvent||i.browser.ie||i.browser.edge)if(window.navigator.msSaveOrOpenBlob){var l=atob(s.split(",")[1]),c=l.length,u=new Uint8Array(c);while(c--)u[c]=l.charCodeAt(c);var d=new Blob([u]);window.navigator.msSaveOrOpenBlob(d,r+"."+a)}else{var h=n.get("lang"),p='',f=window.open();f.document.write(p)}else{var g=document.createElement("a");g.download=r+"."+a,g.target="_blank",g.href=s;var m=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});g.dispatchEvent(m)}},o.register("saveAsImage",s);var c=s;e.exports=c},"4eb5":function(e,t,n){var i=n("6981"),r={autoSetContainer:!1,appendToBody:!0},o={install:function(e){e.prototype.$clipboardConfig=r,e.prototype.$copyText=function(e,t){return new Promise((function(n,o){var a=document.createElement("button"),s=new i(a,{text:function(){return e},action:function(){return"copy"},container:"object"===typeof t?t:document.body});s.on("success",(function(e){s.destroy(),n(e)})),s.on("error",(function(e){s.destroy(),o(e)})),r.appendToBody&&document.body.appendChild(a),a.click(),r.appendToBody&&document.body.removeChild(a)}))},e.directive("clipboard",{bind:function(e,t,n){if("success"===t.arg)e._vClipboard_success=t.value;else if("error"===t.arg)e._vClipboard_error=t.value;else{var o=new i(e,{text:function(){return t.value},action:function(){return"cut"===t.arg?"cut":"copy"},container:r.autoSetContainer?e:void 0});o.on("success",(function(t){var n=e._vClipboard_success;n&&n(t)})),o.on("error",(function(t){var n=e._vClipboard_error;n&&n(t)})),e._vClipboard=o}},update:function(e,t){"success"===t.arg?e._vClipboard_success=t.value:"error"===t.arg?e._vClipboard_error=t.value:(e._vClipboard.text=function(){return t.value},e._vClipboard.action=function(){return"cut"===t.arg?"cut":"copy"})},unbind:function(e,t){"success"===t.arg?delete e._vClipboard_success:"error"===t.arg?delete e._vClipboard_error:(e._vClipboard.destroy(),delete e._vClipboard)}})},config:r};e.exports=o},"4ebc":function(e,t,n){var i=n("4d88");e.exports=Array.isArray||function(e){return"Array"==i(e)}},"4f4a":function(e,t){e.exports=function(e){return{case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},e.COMMENT("^\\s*(!=#|=#|-#|/).*$",!1,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",starts:{end:"\\n",subLanguage:"ruby"}},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:"{\\s*",end:"\\s*}",contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:"#{",starts:{end:"}",subLanguage:"ruby"}}]}}},"4f85":function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),o=n("22d1"),a=n("eda2"),s=a.formatTime,l=a.encodeHTML,c=a.addCommas,u=a.getTooltipMarker,d=n("e0d3"),h=n("6cb7"),p=n("e47b"),f=n("38a2"),g=n("f934"),m=g.getLayoutParams,v=g.mergeLayoutParam,_=n("f47d"),y=_.createTask,b=n("0f99"),S=b.prepareSource,E=b.getSource,C=n("2b17"),x=C.retrieveRawValue,w=d.makeInner(),T=h.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(e,t,n,i){this.seriesIndex=this.componentIndex,this.dataTask=y({count:R,reset:N}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),S(this);var r=this.getInitialData(e,n);I(r,this),this.dataTask.context.data=r,w(this).dataBeforeProcessed=r,A(this)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,i=n?m(e):{},o=this.subType;h.hasClass(o)&&(o+="Series"),r.merge(e,t.getTheme().get(this.subType)),r.merge(e,this.getDefaultOption()),d.defaultEmphasis(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&v(e,i,n)},mergeOption:function(e,t){e=r.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var n=this.layoutMode;n&&v(this.option,e,n),S(this);var i=this.getInitialData(e,t);I(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,w(this).dataBeforeProcessed=i,A(this)},fillDataTextStyle:function(e){if(e&&!r.isTypedArray(e))for(var t=["show"],n=0;n":"\n",h="richText"===i,p={},f=0;function g(n){var a=r.reduce(n,(function(e,t,n){var i=v.getDimensionInfo(n);return e|(i&&!1!==i.tooltip&&null!=i.displayName)}),0),d=[];function g(e,n){var r=v.getDimensionInfo(n);if(r&&!1!==r.otherDims.tooltip){var g=r.type,m="sub"+o.seriesIndex+"at"+f,_=u({color:E,type:"subItem",renderMode:i,markerId:m}),y="string"===typeof _?_:_.content,b=(a?y+l(r.displayName||"-")+": ":"")+l("ordinal"===g?e+"":"time"===g?t?"":s("yyyy/MM/dd hh:mm:ss",e):c(e));b&&d.push(b),h&&(p[m]=E,++f)}}_.length?r.each(_,(function(t){g(x(v,e,t),t)})):r.each(n,g);var m=a?h?"\n":"
":"",y=m+d.join(m||", ");return{renderMode:i,content:y,style:p}}function m(e){return{renderMode:i,content:l(c(e)),style:p}}var v=this.getData(),_=v.mapDimension("defaultedTooltip",!0),y=_.length,b=this.getRawValue(e),S=r.isArray(b),E=v.getItemVisual(e,"color");r.isObject(E)&&E.colorStops&&(E=(E.colorStops[0]||{}).color),E=E||"transparent";var C=y>1||S&&!y?g(b):m(y?x(v,e,_[0]):S?b[0]:b),w=C.content,T=o.seriesIndex+"at"+f,A=u({color:E,type:"item",renderMode:i,markerId:T});p[T]=E,++f;var O=v.getName(e),R=this.name;d.isNameSpecified(this)||(R=""),R=R?l(R)+(t?": ":a):"";var N="string"===typeof A?A:A.content,D=t?N+R+w:R+N+(O?l(O)+": "+w:w);return{html:D,markers:p}},isAnimationEnabled:function(){if(o.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),e},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(e,t,n){var i=this.ecModel,r=p.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},coordDimToDataDim:function(e){return this.getRawData().mapDimension(e,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function A(e){var t=e.name;d.isNameSpecified(e)||(e.name=O(e)||t)}function O(e){var t=e.getRawData(),n=t.mapDimension("seriesName",!0),i=[];return r.each(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)})),i.join(" ")}function R(e){return e.model.getRawData().count()}function N(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),D}function D(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function I(e,t){r.each(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,r.curry(M,t))}))}function M(e){var t=k(e);t&&t.setOutputEnd(this.count())}function k(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}r.mixin(T,f),r.mixin(T,p);var L=T;e.exports=L},"4fac":function(e,t,n){var i=n("620b"),r=n("9c2c");function o(e,t,n){var o=t.points,a=t.smooth;if(o&&o.length>=2){if(a&&"spline"!==a){var s=r(o,a,n,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var l=o.length,c=0;c<(n?l:l-1);c++){var u=s[2*c],d=s[2*c+1],h=o[(c+1)%l];e.bezierCurveTo(u[0],u[1],d[0],d[1],h[0],h[1])}}else{"spline"===a&&(o=i(o,n)),e.moveTo(o[0][0],o[0][1]);c=1;for(var p=o.length;c",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},o]}],relevance:0}]}}},5051:function(e,t){e.exports=function(e){var t={variants:[e.COMMENT("--","$"),e.COMMENT("{-","-}",{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},i={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]},r={begin:"{",end:"}",contains:i.contains},o={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{keywords:"let in if then else case of where module import exposing type alias as infix infixl infixr port effect command subscription",contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[i,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[i,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,i,r,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},o,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}},"508e":function(e,t){e.exports=function(e){var t={begin:"`[\\s\\S]",relevance:0},n={className:"variable",variants:[{begin:/\$[\w\d][\w\d_:]*/}]},i={className:"literal",begin:/\$(null|true|false)\b/},r={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[t,n,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},o={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},a={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},s=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[a]});return{aliases:["ps","ps1"],lexemes:/-?[A-z\.\-]+/,case_insensitive:!0,keywords:{keyword:"if else foreach return function do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catchValidateNoCircleInNodeResources ValidateNodeExclusiveResources ValidateNodeManager ValidateNodeResources ValidateNodeResourceSource ValidateNoNameNodeResources ThrowError IsHiddenResourceIsPatternMatched ",built_in:"Add-Computer Add-Content Add-History Add-JobTrigger Add-Member Add-PSSnapin Add-Type Checkpoint-Computer Clear-Content Clear-EventLog Clear-History Clear-Host Clear-Item Clear-ItemProperty Clear-Variable Compare-Object Complete-Transaction Connect-PSSession Connect-WSMan Convert-Path ConvertFrom-Csv ConvertFrom-Json ConvertFrom-SecureString ConvertFrom-StringData ConvertTo-Csv ConvertTo-Html ConvertTo-Json ConvertTo-SecureString ConvertTo-Xml Copy-Item Copy-ItemProperty Debug-Process Disable-ComputerRestore Disable-JobTrigger Disable-PSBreakpoint Disable-PSRemoting Disable-PSSessionConfiguration Disable-WSManCredSSP Disconnect-PSSession Disconnect-WSMan Disable-ScheduledJob Enable-ComputerRestore Enable-JobTrigger Enable-PSBreakpoint Enable-PSRemoting Enable-PSSessionConfiguration Enable-ScheduledJob Enable-WSManCredSSP Enter-PSSession Exit-PSSession Export-Alias Export-Clixml Export-Console Export-Counter Export-Csv Export-FormatData Export-ModuleMember Export-PSSession ForEach-Object Format-Custom Format-List Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command Get-ComputerRestorePoint Get-Content Get-ControlPanelItem Get-Counter Get-Credential Get-Culture Get-Date Get-Event Get-EventLog Get-EventSubscriber Get-ExecutionPolicy Get-FormatData Get-Host Get-HotFix Get-Help Get-History Get-IseSnippet Get-Item Get-ItemProperty Get-Job Get-JobTrigger Get-Location Get-Member Get-Module Get-PfxCertificate Get-Process Get-PSBreakpoint Get-PSCallStack Get-PSDrive Get-PSProvider Get-PSSession Get-PSSessionConfiguration Get-PSSnapin Get-Random Get-ScheduledJob Get-ScheduledJobOption Get-Service Get-TraceSource Get-Transaction Get-TypeData Get-UICulture Get-Unique Get-Variable Get-Verb Get-WinEvent Get-WmiObject Get-WSManCredSSP Get-WSManInstance Group-Object Import-Alias Import-Clixml Import-Counter Import-Csv Import-IseSnippet Import-LocalizedData Import-PSSession Import-Module Invoke-AsWorkflow Invoke-Command Invoke-Expression Invoke-History Invoke-Item Invoke-RestMethod Invoke-WebRequest Invoke-WmiMethod Invoke-WSManAction Join-Path Limit-EventLog Measure-Command Measure-Object Move-Item Move-ItemProperty New-Alias New-Event New-EventLog New-IseSnippet New-Item New-ItemProperty New-JobTrigger New-Object New-Module New-ModuleManifest New-PSDrive New-PSSession New-PSSessionConfigurationFile New-PSSessionOption New-PSTransportOption New-PSWorkflowExecutionOption New-PSWorkflowSession New-ScheduledJobOption New-Service New-TimeSpan New-Variable New-WebServiceProxy New-WinEvent New-WSManInstance New-WSManSessionOption Out-Default Out-File Out-GridView Out-Host Out-Null Out-Printer Out-String Pop-Location Push-Location Read-Host Receive-Job Register-EngineEvent Register-ObjectEvent Register-PSSessionConfiguration Register-ScheduledJob Register-WmiEvent Remove-Computer Remove-Event Remove-EventLog Remove-Item Remove-ItemProperty Remove-Job Remove-JobTrigger Remove-Module Remove-PSBreakpoint Remove-PSDrive Remove-PSSession Remove-PSSnapin Remove-TypeData Remove-Variable Remove-WmiObject Remove-WSManInstance Rename-Computer Rename-Item Rename-ItemProperty Reset-ComputerMachinePassword Resolve-Path Restart-Computer Restart-Service Restore-Computer Resume-Job Resume-Service Save-Help Select-Object Select-String Select-Xml Send-MailMessage Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-JobTrigger Set-Location Set-PSBreakpoint Set-PSDebug Set-PSSessionConfiguration Set-ScheduledJob Set-ScheduledJobOption Set-Service Set-StrictMode Set-TraceSource Set-Variable Set-WmiInstance Set-WSManInstance Set-WSManQuickConfig Show-Command Show-ControlPanelItem Show-EventLog Sort-Object Split-Path Start-Job Start-Process Start-Service Start-Sleep Start-Transaction Start-Transcript Stop-Computer Stop-Job Stop-Process Stop-Service Stop-Transcript Suspend-Job Suspend-Service Tee-Object Test-ComputerSecureChannel Test-Connection Test-ModuleManifest Test-Path Test-PSSessionConfigurationFile Trace-Command Unblock-File Undo-Transaction Unregister-Event Unregister-PSSessionConfiguration Unregister-ScheduledJob Update-FormatData Update-Help Update-List Update-TypeData Use-Transaction Wait-Event Wait-Job Wait-Process Where-Object Write-Debug Write-Error Write-EventLog Write-Host Write-Output Write-Progress Write-Verbose Write-Warning Add-MDTPersistentDrive Disable-MDTMonitorService Enable-MDTMonitorService Get-MDTDeploymentShareStatistics Get-MDTMonitorData Get-MDTOperatingSystemCatalog Get-MDTPersistentDrive Import-MDTApplication Import-MDTDriver Import-MDTOperatingSystem Import-MDTPackage Import-MDTTaskSequence New-MDTDatabase Remove-MDTMonitorData Remove-MDTPersistentDrive Restore-MDTPersistentDrive Set-MDTMonitorData Test-MDTDeploymentShare Test-MDTMonitorData Update-MDTDatabaseSchema Update-MDTDeploymentShare Update-MDTLinkedDS Update-MDTMedia Add-VamtProductKey Export-VamtData Find-VamtManagedMachine Get-VamtConfirmationId Get-VamtProduct Get-VamtProductKey Import-VamtData Initialize-VamtData Install-VamtConfirmationId Install-VamtProductActivation Install-VamtProductKey Update-VamtProduct Add-CIDatastore Add-KeyManagementServer Add-NodeKeys Add-NsxDynamicCriteria Add-NsxDynamicMemberSet Add-NsxEdgeInterfaceAddress Add-NsxFirewallExclusionListMember Add-NsxFirewallRuleMember Add-NsxIpSetMember Add-NsxLicense Add-NsxLoadBalancerPoolMember Add-NsxLoadBalancerVip Add-NsxSecondaryManager Add-NsxSecurityGroupMember Add-NsxSecurityPolicyRule Add-NsxSecurityPolicyRuleGroup Add-NsxSecurityPolicyRuleService Add-NsxServiceGroupMember Add-NsxTransportZoneMember Add-PassthroughDevice Add-VDSwitchPhysicalNetworkAdapter Add-VDSwitchVMHost Add-VMHost Add-VMHostNtpServer Add-VirtualSwitchPhysicalNetworkAdapter Add-XmlElement Add-vRACustomForm Add-vRAPrincipalToTenantRole Add-vRAReservationNetwork Add-vRAReservationStorage Clear-NsxEdgeInterface Clear-NsxManagerTimeSettings Compress-Archive Connect-CIServer Connect-CisServer Connect-HCXServer Connect-NIServer Connect-NsxLogicalSwitch Connect-NsxServer Connect-NsxtServer Connect-SrmServer Connect-VIServer Connect-Vmc Connect-vRAServer Connect-vRNIServer ConvertFrom-Markdown ConvertTo-MOFInstance Copy-DatastoreItem Copy-HardDisk Copy-NsxEdge Copy-VDisk Copy-VMGuestFile Debug-Runspace Disable-NsxEdgeSsh Disable-RunspaceDebug Disable-vRNIDataSource Disconnect-CIServer Disconnect-CisServer Disconnect-HCXServer Disconnect-NsxLogicalSwitch Disconnect-NsxServer Disconnect-NsxtServer Disconnect-SrmServer Disconnect-VIServer Disconnect-Vmc Disconnect-vRAServer Disconnect-vRNIServer Dismount-Tools Enable-NsxEdgeSsh Enable-RunspaceDebug Enable-vRNIDataSource Expand-Archive Export-NsxObject Export-SpbmStoragePolicy Export-VApp Export-VDPortGroup Export-VDSwitch Export-VMHostProfile Export-vRAIcon Export-vRAPackage Find-Command Find-DscResource Find-Module Find-NsxWhereVMUsed Find-Package Find-PackageProvider Find-RoleCapability Find-Script Format-Hex Format-VMHostDiskPartition Format-XML Generate-VersionInfo Get-AdvancedSetting Get-AlarmAction Get-AlarmActionTrigger Get-AlarmDefinition Get-Annotation Get-CDDrive Get-CIAccessControlRule Get-CIDatastore Get-CINetworkAdapter Get-CIRole Get-CIUser Get-CIVApp Get-CIVAppNetwork Get-CIVAppStartRule Get-CIVAppTemplate Get-CIVM Get-CIVMTemplate Get-CIView Get-Catalog Get-CisCommand Get-CisService Get-CloudCommand Get-Cluster Get-CompatibleVersionAddtionaPropertiesStr Get-ComplexResourceQualifier Get-ConfigurationErrorCount Get-ContentLibraryItem Get-CustomAttribute Get-DSCResourceModules Get-Datacenter Get-Datastore Get-DatastoreCluster Get-DrsClusterGroup Get-DrsRecommendation Get-DrsRule Get-DrsVMHostRule Get-DscResource Get-EdgeGateway Get-EncryptedPassword Get-ErrorReport Get-EsxCli Get-EsxTop Get-ExternalNetwork Get-FileHash Get-FloppyDrive Get-Folder Get-HAPrimaryVMHost Get-HCXAppliance Get-HCXApplianceCompute Get-HCXApplianceDVS Get-HCXApplianceDatastore Get-HCXApplianceNetwork Get-HCXContainer Get-HCXDatastore Get-HCXGateway Get-HCXInterconnectStatus Get-HCXJob Get-HCXMigration Get-HCXNetwork Get-HCXNetworkExtension Get-HCXReplication Get-HCXReplicationSnapshot Get-HCXService Get-HCXSite Get-HCXSitePairing Get-HCXVM Get-HardDisk Get-IScsiHbaTarget Get-InnerMostErrorRecord Get-InstallPath Get-InstalledModule Get-InstalledScript Get-Inventory Get-ItemPropertyValue Get-KeyManagementServer Get-KmipClientCertificate Get-KmsCluster Get-Log Get-LogType Get-MarkdownOption Get-Media Get-MofInstanceName Get-MofInstanceText Get-NetworkAdapter Get-NetworkPool Get-NfsUser Get-NicTeamingPolicy Get-NsxApplicableMember Get-NsxApplicableSecurityAction Get-NsxBackingDVSwitch Get-NsxBackingPortGroup Get-NsxCliDfwAddrSet Get-NsxCliDfwFilter Get-NsxCliDfwRule Get-NsxClusterStatus Get-NsxController Get-NsxDynamicCriteria Get-NsxDynamicMemberSet Get-NsxEdge Get-NsxEdgeBgp Get-NsxEdgeBgpNeighbour Get-NsxEdgeCertificate Get-NsxEdgeCsr Get-NsxEdgeFirewall Get-NsxEdgeFirewallRule Get-NsxEdgeInterface Get-NsxEdgeInterfaceAddress Get-NsxEdgeNat Get-NsxEdgeNatRule Get-NsxEdgeOspf Get-NsxEdgeOspfArea Get-NsxEdgeOspfInterface Get-NsxEdgePrefix Get-NsxEdgeRedistributionRule Get-NsxEdgeRouting Get-NsxEdgeStaticRoute Get-NsxEdgeSubInterface Get-NsxFirewallExclusionListMember Get-NsxFirewallGlobalConfiguration Get-NsxFirewallPublishStatus Get-NsxFirewallRule Get-NsxFirewallRuleMember Get-NsxFirewallSavedConfiguration Get-NsxFirewallSection Get-NsxFirewallThreshold Get-NsxIpPool Get-NsxIpSet Get-NsxLicense Get-NsxLoadBalancer Get-NsxLoadBalancerApplicationProfile Get-NsxLoadBalancerApplicationRule Get-NsxLoadBalancerMonitor Get-NsxLoadBalancerPool Get-NsxLoadBalancerPoolMember Get-NsxLoadBalancerStats Get-NsxLoadBalancerVip Get-NsxLogicalRouter Get-NsxLogicalRouterBgp Get-NsxLogicalRouterBgpNeighbour Get-NsxLogicalRouterBridge Get-NsxLogicalRouterBridging Get-NsxLogicalRouterInterface Get-NsxLogicalRouterOspf Get-NsxLogicalRouterOspfArea Get-NsxLogicalRouterOspfInterface Get-NsxLogicalRouterPrefix Get-NsxLogicalRouterRedistributionRule Get-NsxLogicalRouterRouting Get-NsxLogicalRouterStaticRoute Get-NsxLogicalSwitch Get-NsxMacSet Get-NsxManagerBackup Get-NsxManagerCertificate Get-NsxManagerComponentSummary Get-NsxManagerNetwork Get-NsxManagerRole Get-NsxManagerSsoConfig Get-NsxManagerSyncStatus Get-NsxManagerSyslogServer Get-NsxManagerSystemSummary Get-NsxManagerTimeSettings Get-NsxManagerVcenterConfig Get-NsxSecondaryManager Get-NsxSecurityGroup Get-NsxSecurityGroupEffectiveIpAddress Get-NsxSecurityGroupEffectiveMacAddress Get-NsxSecurityGroupEffectiveMember Get-NsxSecurityGroupEffectiveVirtualMachine Get-NsxSecurityGroupEffectiveVnic Get-NsxSecurityGroupMemberTypes Get-NsxSecurityPolicy Get-NsxSecurityPolicyHighestUsedPrecedence Get-NsxSecurityPolicyRule Get-NsxSecurityTag Get-NsxSecurityTagAssignment Get-NsxSegmentIdRange Get-NsxService Get-NsxServiceDefinition Get-NsxServiceGroup Get-NsxServiceGroupMember Get-NsxServiceProfile Get-NsxSpoofguardNic Get-NsxSpoofguardPolicy Get-NsxSslVpn Get-NsxSslVpnAuthServer Get-NsxSslVpnClientInstallationPackage Get-NsxSslVpnIpPool Get-NsxSslVpnPrivateNetwork Get-NsxSslVpnUser Get-NsxTransportZone Get-NsxUserRole Get-NsxVdsContext Get-NsxtPolicyService Get-NsxtService Get-OSCustomizationNicMapping Get-OSCustomizationSpec Get-Org Get-OrgNetwork Get-OrgVdc Get-OrgVdcNetwork Get-OvfConfiguration Get-PSCurrentConfigurationNode Get-PSDefaultConfigurationDocument Get-PSMetaConfigDocumentInstVersionInfo Get-PSMetaConfigurationProcessed Get-PSReadLineKeyHandler Get-PSReadLineOption Get-PSRepository Get-PSTopConfigurationName Get-PSVersion Get-Package Get-PackageProvider Get-PackageSource Get-PassthroughDevice Get-PositionInfo Get-PowerCLICommunity Get-PowerCLIConfiguration Get-PowerCLIHelp Get-PowerCLIVersion Get-PowerNsxVersion Get-ProviderVdc Get-PublicKeyFromFile Get-PublicKeyFromStore Get-ResourcePool Get-Runspace Get-RunspaceDebug Get-ScsiController Get-ScsiLun Get-ScsiLunPath Get-SecurityInfo Get-SecurityPolicy Get-Snapshot Get-SpbmCapability Get-SpbmCompatibleStorage Get-SpbmEntityConfiguration Get-SpbmFaultDomain Get-SpbmPointInTimeReplica Get-SpbmReplicationGroup Get-SpbmReplicationPair Get-SpbmStoragePolicy Get-Stat Get-StatInterval Get-StatType Get-Tag Get-TagAssignment Get-TagCategory Get-Task Get-Template Get-TimeZone Get-Uptime Get-UsbDevice Get-VAIOFilter Get-VApp Get-VDBlockedPolicy Get-VDPort Get-VDPortgroup Get-VDPortgroupOverridePolicy Get-VDSecurityPolicy Get-VDSwitch Get-VDSwitchPrivateVlan Get-VDTrafficShapingPolicy Get-VDUplinkLacpPolicy Get-VDUplinkTeamingPolicy Get-VDisk Get-VIAccount Get-VICommand Get-VICredentialStoreItem Get-VIEvent Get-VIObjectByVIView Get-VIPermission Get-VIPrivilege Get-VIProperty Get-VIRole Get-VM Get-VMGuest Get-VMHost Get-VMHostAccount Get-VMHostAdvancedConfiguration Get-VMHostAuthentication Get-VMHostAvailableTimeZone Get-VMHostDiagnosticPartition Get-VMHostDisk Get-VMHostDiskPartition Get-VMHostFirewallDefaultPolicy Get-VMHostFirewallException Get-VMHostFirmware Get-VMHostHardware Get-VMHostHba Get-VMHostModule Get-VMHostNetwork Get-VMHostNetworkAdapter Get-VMHostNtpServer Get-VMHostPatch Get-VMHostPciDevice Get-VMHostProfile Get-VMHostProfileImageCacheConfiguration Get-VMHostProfileRequiredInput Get-VMHostProfileStorageDeviceConfiguration Get-VMHostProfileUserConfiguration Get-VMHostProfileVmPortGroupConfiguration Get-VMHostRoute Get-VMHostService Get-VMHostSnmp Get-VMHostStartPolicy Get-VMHostStorage Get-VMHostSysLogServer Get-VMQuestion Get-VMResourceConfiguration Get-VMStartPolicy Get-VTpm Get-VTpmCSR Get-VTpmCertificate Get-VasaProvider Get-VasaStorageArray Get-View Get-VirtualPortGroup Get-VirtualSwitch Get-VmcSddcNetworkService Get-VmcService Get-VsanClusterConfiguration Get-VsanComponent Get-VsanDisk Get-VsanDiskGroup Get-VsanEvacuationPlan Get-VsanFaultDomain Get-VsanIscsiInitiatorGroup Get-VsanIscsiInitiatorGroupTargetAssociation Get-VsanIscsiLun Get-VsanIscsiTarget Get-VsanObject Get-VsanResyncingComponent Get-VsanRuntimeInfo Get-VsanSpaceUsage Get-VsanStat Get-VsanView Get-vRAApplianceServiceStatus Get-vRAAuthorizationRole Get-vRABlueprint Get-vRABusinessGroup Get-vRACatalogItem Get-vRACatalogItemRequestTemplate Get-vRACatalogPrincipal Get-vRAComponentRegistryService Get-vRAComponentRegistryServiceEndpoint Get-vRAComponentRegistryServiceStatus Get-vRAContent Get-vRAContentData Get-vRAContentType Get-vRACustomForm Get-vRAEntitledCatalogItem Get-vRAEntitledService Get-vRAEntitlement Get-vRAExternalNetworkProfile Get-vRAGroupPrincipal Get-vRAIcon Get-vRANATNetworkProfile Get-vRANetworkProfileIPAddressList Get-vRANetworkProfileIPRangeSummary Get-vRAPackage Get-vRAPackageContent Get-vRAPropertyDefinition Get-vRAPropertyGroup Get-vRARequest Get-vRARequestDetail Get-vRAReservation Get-vRAReservationComputeResource Get-vRAReservationComputeResourceMemory Get-vRAReservationComputeResourceNetwork Get-vRAReservationComputeResourceResourcePool Get-vRAReservationComputeResourceStorage Get-vRAReservationPolicy Get-vRAReservationTemplate Get-vRAReservationType Get-vRAResource Get-vRAResourceAction Get-vRAResourceActionRequestTemplate Get-vRAResourceMetric Get-vRAResourceOperation Get-vRAResourceType Get-vRARoutedNetworkProfile Get-vRAService Get-vRAServiceBlueprint Get-vRASourceMachine Get-vRAStorageReservationPolicy Get-vRATenant Get-vRATenantDirectory Get-vRATenantDirectoryStatus Get-vRATenantRole Get-vRAUserPrincipal Get-vRAUserPrincipalGroupMembership Get-vRAVersion Get-vRNIAPIVersion Get-vRNIApplication Get-vRNIApplicationTier Get-vRNIDataSource Get-vRNIDataSourceSNMPConfig Get-vRNIDatastore Get-vRNIDistributedSwitch Get-vRNIDistributedSwitchPortGroup Get-vRNIEntity Get-vRNIEntityName Get-vRNIFirewallRule Get-vRNIFlow Get-vRNIHost Get-vRNIHostVMKNic Get-vRNIIPSet Get-vRNIL2Network Get-vRNINSXManager Get-vRNINodes Get-vRNIProblem Get-vRNIRecommendedRules Get-vRNIRecommendedRulesNsxBundle Get-vRNISecurityGroup Get-vRNISecurityTag Get-vRNIService Get-vRNIServiceGroup Get-vRNIVM Get-vRNIVMvNIC Get-vRNIvCenter Get-vRNIvCenterCluster Get-vRNIvCenterDatacenter Get-vRNIvCenterFolder Grant-NsxSpoofguardNicApproval Import-CIVApp Import-CIVAppTemplate Import-NsxObject Import-PackageProvider Import-PowerShellDataFile Import-SpbmStoragePolicy Import-VApp Import-VMHostProfile Import-vRAContentData Import-vRAIcon Import-vRAPackage Initialize-ConfigurationRuntimeState Install-Module Install-NsxCluster Install-Package Install-PackageProvider Install-Script Install-VMHostPatch Invoke-DrsRecommendation Invoke-NsxCli Invoke-NsxClusterResolveAll Invoke-NsxManagerSync Invoke-NsxRestMethod Invoke-NsxWebRequest Invoke-VMHostProfile Invoke-VMScript Invoke-XpathQuery Invoke-vRADataCollection Invoke-vRARestMethod Invoke-vRATenantDirectorySync Invoke-vRNIRestMethod Join-String Mount-Tools Move-Cluster Move-Datacenter Move-Datastore Move-Folder Move-HardDisk Move-Inventory Move-NsxSecurityPolicyRule Move-ResourcePool Move-Template Move-VApp Move-VDisk Move-VM Move-VMHost New-AdvancedSetting New-AlarmAction New-AlarmActionTrigger New-CDDrive New-CIAccessControlRule New-CIVApp New-CIVAppNetwork New-CIVAppTemplate New-CIVM New-Cluster New-CustomAttribute New-Datacenter New-Datastore New-DatastoreCluster New-DatastoreDrive New-DrsClusterGroup New-DrsRule New-DrsVMHostRule New-DscChecksum New-FloppyDrive New-Folder New-Guid New-HCXAppliance New-HCXMigration New-HCXNetworkExtension New-HCXNetworkMapping New-HCXReplication New-HCXSitePairing New-HCXStaticRoute New-HardDisk New-IScsiHbaTarget New-KmipClientCertificate New-NetworkAdapter New-NfsUser New-NsxAddressSpec New-NsxClusterVxlanConfig New-NsxController New-NsxDynamicCriteriaSpec New-NsxEdge New-NsxEdgeBgpNeighbour New-NsxEdgeCsr New-NsxEdgeFirewallRule New-NsxEdgeInterfaceSpec New-NsxEdgeNatRule New-NsxEdgeOspfArea New-NsxEdgeOspfInterface New-NsxEdgePrefix New-NsxEdgeRedistributionRule New-NsxEdgeSelfSignedCertificate New-NsxEdgeStaticRoute New-NsxEdgeSubInterface New-NsxEdgeSubInterfaceSpec New-NsxFirewallRule New-NsxFirewallSavedConfiguration New-NsxFirewallSection New-NsxIpPool New-NsxIpSet New-NsxLoadBalancerApplicationProfile New-NsxLoadBalancerApplicationRule New-NsxLoadBalancerMemberSpec New-NsxLoadBalancerMonitor New-NsxLoadBalancerPool New-NsxLogicalRouter New-NsxLogicalRouterBgpNeighbour New-NsxLogicalRouterBridge New-NsxLogicalRouterInterface New-NsxLogicalRouterInterfaceSpec New-NsxLogicalRouterOspfArea New-NsxLogicalRouterOspfInterface New-NsxLogicalRouterPrefix New-NsxLogicalRouterRedistributionRule New-NsxLogicalRouterStaticRoute New-NsxLogicalSwitch New-NsxMacSet New-NsxManager New-NsxSecurityGroup New-NsxSecurityPolicy New-NsxSecurityPolicyAssignment New-NsxSecurityPolicyFirewallRuleSpec New-NsxSecurityPolicyGuestIntrospectionSpec New-NsxSecurityPolicyNetworkIntrospectionSpec New-NsxSecurityTag New-NsxSecurityTagAssignment New-NsxSegmentIdRange New-NsxService New-NsxServiceGroup New-NsxSpoofguardPolicy New-NsxSslVpnAuthServer New-NsxSslVpnClientInstallationPackage New-NsxSslVpnIpPool New-NsxSslVpnPrivateNetwork New-NsxSslVpnUser New-NsxTransportZone New-NsxVdsContext New-OSCustomizationNicMapping New-OSCustomizationSpec New-Org New-OrgNetwork New-OrgVdc New-OrgVdcNetwork New-ResourcePool New-ScriptFileInfo New-ScsiController New-Snapshot New-SpbmRule New-SpbmRuleSet New-SpbmStoragePolicy New-StatInterval New-Tag New-TagAssignment New-TagCategory New-Template New-TemporaryFile New-VAIOFilter New-VApp New-VDPortgroup New-VDSwitch New-VDSwitchPrivateVlan New-VDisk New-VICredentialStoreItem New-VIInventoryDrive New-VIPermission New-VIProperty New-VIRole New-VISamlSecurityContext New-VM New-VMHostAccount New-VMHostNetworkAdapter New-VMHostProfile New-VMHostProfileVmPortGroupConfiguration New-VMHostRoute New-VTpm New-VasaProvider New-VcsOAuthSecurityContext New-VirtualPortGroup New-VirtualSwitch New-VsanDisk New-VsanDiskGroup New-VsanFaultDomain New-VsanIscsiInitiatorGroup New-VsanIscsiInitiatorGroupTargetAssociation New-VsanIscsiLun New-VsanIscsiTarget New-vRABusinessGroup New-vRAEntitlement New-vRAExternalNetworkProfile New-vRAGroupPrincipal New-vRANATNetworkProfile New-vRANetworkProfileIPRangeDefinition New-vRAPackage New-vRAPropertyDefinition New-vRAPropertyGroup New-vRAReservation New-vRAReservationNetworkDefinition New-vRAReservationPolicy New-vRAReservationStorageDefinition New-vRARoutedNetworkProfile New-vRAService New-vRAStorageReservationPolicy New-vRATenant New-vRATenantDirectory New-vRAUserPrincipal New-vRNIApplication New-vRNIApplicationTier New-vRNIDataSource Open-VMConsoleWindow Publish-Module Publish-NsxSpoofguardPolicy Publish-Script Register-PSRepository Register-PackageSource Remove-AdvancedSetting Remove-AlarmAction Remove-AlarmActionTrigger Remove-Alias Remove-CDDrive Remove-CIAccessControlRule Remove-CIVApp Remove-CIVAppNetwork Remove-CIVAppTemplate Remove-Cluster Remove-CustomAttribute Remove-Datacenter Remove-Datastore Remove-DatastoreCluster Remove-DrsClusterGroup Remove-DrsRule Remove-DrsVMHostRule Remove-FloppyDrive Remove-Folder Remove-HCXAppliance Remove-HCXNetworkExtension Remove-HCXReplication Remove-HCXSitePairing Remove-HardDisk Remove-IScsiHbaTarget Remove-Inventory Remove-KeyManagementServer Remove-NetworkAdapter Remove-NfsUser Remove-NsxCluster Remove-NsxClusterVxlanConfig Remove-NsxController Remove-NsxDynamicCriteria Remove-NsxDynamicMemberSet Remove-NsxEdge Remove-NsxEdgeBgpNeighbour Remove-NsxEdgeCertificate Remove-NsxEdgeCsr Remove-NsxEdgeFirewallRule Remove-NsxEdgeInterfaceAddress Remove-NsxEdgeNatRule Remove-NsxEdgeOspfArea Remove-NsxEdgeOspfInterface Remove-NsxEdgePrefix Remove-NsxEdgeRedistributionRule Remove-NsxEdgeStaticRoute Remove-NsxEdgeSubInterface Remove-NsxFirewallExclusionListMember Remove-NsxFirewallRule Remove-NsxFirewallRuleMember Remove-NsxFirewallSavedConfiguration Remove-NsxFirewallSection Remove-NsxIpPool Remove-NsxIpSet Remove-NsxIpSetMember Remove-NsxLoadBalancerApplicationProfile Remove-NsxLoadBalancerMonitor Remove-NsxLoadBalancerPool Remove-NsxLoadBalancerPoolMember Remove-NsxLoadBalancerVip Remove-NsxLogicalRouter Remove-NsxLogicalRouterBgpNeighbour Remove-NsxLogicalRouterBridge Remove-NsxLogicalRouterInterface Remove-NsxLogicalRouterOspfArea Remove-NsxLogicalRouterOspfInterface Remove-NsxLogicalRouterPrefix Remove-NsxLogicalRouterRedistributionRule Remove-NsxLogicalRouterStaticRoute Remove-NsxLogicalSwitch Remove-NsxMacSet Remove-NsxSecondaryManager Remove-NsxSecurityGroup Remove-NsxSecurityGroupMember Remove-NsxSecurityPolicy Remove-NsxSecurityPolicyAssignment Remove-NsxSecurityPolicyRule Remove-NsxSecurityPolicyRuleGroup Remove-NsxSecurityPolicyRuleService Remove-NsxSecurityTag Remove-NsxSecurityTagAssignment Remove-NsxSegmentIdRange Remove-NsxService Remove-NsxServiceGroup Remove-NsxSpoofguardPolicy Remove-NsxSslVpnClientInstallationPackage Remove-NsxSslVpnIpPool Remove-NsxSslVpnPrivateNetwork Remove-NsxSslVpnUser Remove-NsxTransportZone Remove-NsxTransportZoneMember Remove-NsxVdsContext Remove-OSCustomizationNicMapping Remove-OSCustomizationSpec Remove-Org Remove-OrgNetwork Remove-OrgVdc Remove-OrgVdcNetwork Remove-PSReadLineKeyHandler Remove-PassthroughDevice Remove-ResourcePool Remove-Snapshot Remove-SpbmStoragePolicy Remove-StatInterval Remove-Tag Remove-TagAssignment Remove-TagCategory Remove-Template Remove-UsbDevice Remove-VAIOFilter Remove-VApp Remove-VDPortGroup Remove-VDSwitch Remove-VDSwitchPhysicalNetworkAdapter Remove-VDSwitchPrivateVlan Remove-VDSwitchVMHost Remove-VDisk Remove-VICredentialStoreItem Remove-VIPermission Remove-VIProperty Remove-VIRole Remove-VM Remove-VMHost Remove-VMHostAccount Remove-VMHostNetworkAdapter Remove-VMHostNtpServer Remove-VMHostProfile Remove-VMHostProfileVmPortGroupConfiguration Remove-VMHostRoute Remove-VTpm Remove-VasaProvider Remove-VirtualPortGroup Remove-VirtualSwitch Remove-VirtualSwitchPhysicalNetworkAdapter Remove-VsanDisk Remove-VsanDiskGroup Remove-VsanFaultDomain Remove-VsanIscsiInitiatorGroup Remove-VsanIscsiInitiatorGroupTargetAssociation Remove-VsanIscsiLun Remove-VsanIscsiTarget Remove-vRABusinessGroup Remove-vRACustomForm Remove-vRAExternalNetworkProfile Remove-vRAGroupPrincipal Remove-vRAIcon Remove-vRANATNetworkProfile Remove-vRAPackage Remove-vRAPrincipalFromTenantRole Remove-vRAPropertyDefinition Remove-vRAPropertyGroup Remove-vRAReservation Remove-vRAReservationNetwork Remove-vRAReservationPolicy Remove-vRAReservationStorage Remove-vRARoutedNetworkProfile Remove-vRAService Remove-vRAStorageReservationPolicy Remove-vRATenant Remove-vRATenantDirectory Remove-vRAUserPrincipal Remove-vRNIApplication Remove-vRNIApplicationTier Remove-vRNIDataSource Repair-NsxEdge Repair-VsanObject Request-vRACatalogItem Request-vRAResourceAction Restart-CIVApp Restart-CIVAppGuest Restart-CIVM Restart-CIVMGuest Restart-VM Restart-VMGuest Restart-VMHost Restart-VMHostService Resume-HCXReplication Revoke-NsxSpoofguardNicApproval Save-Module Save-Package Save-Script Search-Cloud Set-AdvancedSetting Set-AlarmDefinition Set-Annotation Set-CDDrive Set-CIAccessControlRule Set-CINetworkAdapter Set-CIVApp Set-CIVAppNetwork Set-CIVAppStartRule Set-CIVAppTemplate Set-Cluster Set-CustomAttribute Set-Datacenter Set-Datastore Set-DatastoreCluster Set-DrsClusterGroup Set-DrsRule Set-DrsVMHostRule Set-FloppyDrive Set-Folder Set-HCXAppliance Set-HCXMigration Set-HCXReplication Set-HardDisk Set-IScsiHbaTarget Set-KeyManagementServer Set-KmsCluster Set-MarkdownOption Set-NetworkAdapter Set-NfsUser Set-NicTeamingPolicy Set-NodeExclusiveResources Set-NodeManager Set-NodeResourceSource Set-NodeResources Set-NsxEdge Set-NsxEdgeBgp Set-NsxEdgeFirewall Set-NsxEdgeInterface Set-NsxEdgeNat Set-NsxEdgeOspf Set-NsxEdgeRouting Set-NsxFirewallGlobalConfiguration Set-NsxFirewallRule Set-NsxFirewallSavedConfiguration Set-NsxFirewallThreshold Set-NsxLoadBalancer Set-NsxLoadBalancerPoolMember Set-NsxLogicalRouter Set-NsxLogicalRouterBgp Set-NsxLogicalRouterBridging Set-NsxLogicalRouterInterface Set-NsxLogicalRouterOspf Set-NsxLogicalRouterRouting Set-NsxManager Set-NsxManagerRole Set-NsxManagerTimeSettings Set-NsxSecurityPolicy Set-NsxSecurityPolicyFirewallRule Set-NsxSslVpn Set-OSCustomizationNicMapping Set-OSCustomizationSpec Set-Org Set-OrgNetwork Set-OrgVdc Set-OrgVdcNetwork Set-PSCurrentConfigurationNode Set-PSDefaultConfigurationDocument Set-PSMetaConfigDocInsProcessedBeforeMeta Set-PSMetaConfigVersionInfoV2 Set-PSReadLineKeyHandler Set-PSReadLineOption Set-PSRepository Set-PSTopConfigurationName Set-PackageSource Set-PowerCLIConfiguration Set-ResourcePool Set-ScsiController Set-ScsiLun Set-ScsiLunPath Set-SecurityPolicy Set-Snapshot Set-SpbmEntityConfiguration Set-SpbmStoragePolicy Set-StatInterval Set-Tag Set-TagCategory Set-Template Set-VAIOFilter Set-VApp Set-VDBlockedPolicy Set-VDPort Set-VDPortgroup Set-VDPortgroupOverridePolicy Set-VDSecurityPolicy Set-VDSwitch Set-VDTrafficShapingPolicy Set-VDUplinkLacpPolicy Set-VDUplinkTeamingPolicy Set-VDVlanConfiguration Set-VDisk Set-VIPermission Set-VIRole Set-VM Set-VMHost Set-VMHostAccount Set-VMHostAdvancedConfiguration Set-VMHostAuthentication Set-VMHostDiagnosticPartition Set-VMHostFirewallDefaultPolicy Set-VMHostFirewallException Set-VMHostFirmware Set-VMHostHba Set-VMHostModule Set-VMHostNetwork Set-VMHostNetworkAdapter Set-VMHostProfile Set-VMHostProfileImageCacheConfiguration Set-VMHostProfileStorageDeviceConfiguration Set-VMHostProfileUserConfiguration Set-VMHostProfileVmPortGroupConfiguration Set-VMHostRoute Set-VMHostService Set-VMHostSnmp Set-VMHostStartPolicy Set-VMHostStorage Set-VMHostSysLogServer Set-VMQuestion Set-VMResourceConfiguration Set-VMStartPolicy Set-VTpm Set-VirtualPortGroup Set-VirtualSwitch Set-VsanClusterConfiguration Set-VsanFaultDomain Set-VsanIscsiInitiatorGroup Set-VsanIscsiLun Set-VsanIscsiTarget Set-vRABusinessGroup Set-vRACatalogItem Set-vRACustomForm Set-vRAEntitlement Set-vRAExternalNetworkProfile Set-vRANATNetworkProfile Set-vRAReservation Set-vRAReservationNetwork Set-vRAReservationPolicy Set-vRAReservationStorage Set-vRARoutedNetworkProfile Set-vRAService Set-vRAStorageReservationPolicy Set-vRATenant Set-vRATenantDirectory Set-vRAUserPrincipal Set-vRNIDataSourceSNMPConfig Show-Markdown Start-CIVApp Start-CIVM Start-HCXMigration Start-HCXReplication Start-SpbmReplicationFailover Start-SpbmReplicationPrepareFailover Start-SpbmReplicationPromote Start-SpbmReplicationReverse Start-SpbmReplicationTestFailover Start-ThreadJob Start-VApp Start-VM Start-VMHost Start-VMHostService Start-VsanClusterDiskUpdate Start-VsanClusterRebalance Start-VsanEncryptionConfiguration Stop-CIVApp Stop-CIVAppGuest Stop-CIVM Stop-CIVMGuest Stop-SpbmReplicationTestFailover Stop-Task Stop-VApp Stop-VM Stop-VMGuest Stop-VMHost Stop-VMHostService Stop-VsanClusterRebalance Suspend-CIVApp Suspend-CIVM Suspend-HCXReplication Suspend-VM Suspend-VMGuest Suspend-VMHost Sync-SpbmReplicationGroup Test-ConflictingResources Test-HCXMigration Test-HCXReplication Test-Json Test-ModuleReloadRequired Test-MofInstanceText Test-NodeManager Test-NodeResourceSource Test-NodeResources Test-ScriptFileInfo Test-VMHostProfileCompliance Test-VMHostSnmp Test-VsanClusterHealth Test-VsanNetworkPerformance Test-VsanStoragePerformance Test-VsanVMCreation Test-vRAPackage Uninstall-Module Uninstall-Package Uninstall-Script Unlock-VM Unregister-PSRepository Unregister-PackageSource Update-ConfigurationDocumentRef Update-ConfigurationErrorCount Update-DependsOn Update-LocalConfigManager Update-Module Update-ModuleManifest Update-ModuleVersion Update-PowerNsx Update-Script Update-ScriptFileInfo Update-Tools Update-VsanHclDatabase ValidateUpdate-ConfigurationData Wait-Debugger Wait-NsxControllerJob Wait-NsxGenericJob Wait-NsxJob Wait-Task Wait-Tools Write-Information Write-Log Write-MetaConfigFile Write-NodeMOFFile",nomarkup:"-ne -eq -lt -gt -ge -le -not -like -notlike -match -notmatch -contains -notcontains -in -notin -replace"},contains:[t,e.NUMBER_MODE,r,o,i,n,s]}}},"50c4":function(e,t,n){var i=n("a691"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},"50e5":function(e,t,n){var i=n("6d8b"),r=n("eda2"),o=["x","y","z","radius","angle","single"],a=["cartesian2d","polar","singleAxis"];function s(e){return i.indexOf(a,e)>=0}function l(e,t){e=e.slice();var n=i.map(e,r.capitalFirst);t=(t||[]).slice();var o=i.map(t,r.capitalFirst);return function(r,a){i.each(e,(function(e,i){for(var s={name:e,capital:n[i]},l=0;l=0}function o(e,r){var o=!1;return t((function(t){i.each(n(e,t)||[],(function(e){r.records[t.name][e]&&(o=!0)}))})),o}function a(e,r){r.nodes.push(e),t((function(t){i.each(n(e,t)||[],(function(e){r.records[t.name][e]=!0}))}))}}t.isCoordSupported=s,t.createNameEach=l,t.eachAxisDim=c,t.createLinkedNodesFinder=u},"511f":function(e,t,n){n("0b99"),n("658f"),e.exports=n("fcd4").f("iterator")},5128:function(e,t,n){"use strict";t.__esModule=!0,t.PopupManager=void 0;var i=n("a026"),r=h(i),o=n("7f4d"),a=h(o),s=n("4b26"),l=h(s),c=n("e62d"),u=h(c),d=n("5924");function h(e){return e&&e.__esModule?e:{default:e}}var p=1,f=void 0;t.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+p++,l.default.register(this._popupId,this)},beforeDestroy:function(){l.default.deregister(this._popupId),l.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(e){var t=this;if(e){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,r.default.nextTick((function(){t.open()})))}else this.close()}},methods:{open:function(e){var t=this;this.rendered||(this.rendered=!0);var n=(0,a.default)({},this.$props||this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var i=Number(n.openDelay);i>0?this._openTimer=setTimeout((function(){t._openTimer=null,t.doOpen(n)}),i):this.doOpen(n)},doOpen:function(e){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var t=this.$el,n=e.modal,i=e.zIndex;if(i&&(l.default.zIndex=i),n&&(this._closing&&(l.default.closeModal(this._popupId),this._closing=!1),l.default.openModal(this._popupId,l.default.nextZIndex(),this.modalAppendToBody?void 0:t,e.modalClass,e.modalFade),e.lockScroll)){this.withoutHiddenClass=!(0,d.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,d.getStyle)(document.body,"paddingRight"),10)),f=(0,u.default)();var r=document.documentElement.clientHeight0&&(r||"scroll"===o)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+f+"px"),(0,d.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(t).position&&(t.style.position="absolute"),t.style.zIndex=l.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout((function(){e._closeTimer=null,e.doClose()}),t):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){l.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,d.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},t.PopupManager=l.default},"512c":function(e,t,n){var i=n("ef08"),r=n("5524"),o=n("9c0c"),a=n("051b"),s=n("9c0e"),l="prototype",c=function(e,t,n){var u,d,h,p=e&c.F,f=e&c.G,g=e&c.S,m=e&c.P,v=e&c.B,_=e&c.W,y=f?r:r[t]||(r[t]={}),b=y[l],S=f?i:g?i[t]:(i[t]||{})[l];for(u in f&&(n=t),n)d=!p&&S&&void 0!==S[u],d&&s(y,u)||(h=d?S[u]:n[u],y[u]=f&&"function"!=typeof S[u]?n[u]:v&&d?o(h,i):_&&S[u]==h?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t[l]=e[l],t}(h):m&&"function"==typeof h?o(Function.call,h):h,m&&((y.virtual||(y.virtual={}))[u]=h,e&c.R&&b&&!b[u]&&a(b,u,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"51ab":function(e,t){e.exports=function(e){return{aliases:["clean","icl","dcl"],keywords:{keyword:"if let in with where case of class instance otherwise implementation definition system module from import qualified as special code inline foreign export ccall stdcall generic derive infix infixl infixr",built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}},5270:function(e,t,n){"use strict";var i=n("c532"),r=n("c401"),o=n("2e67"),a=n("2444"),s=n("d925"),l=n("e683");function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){c(e),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=r(e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return c(e),t.data=r(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(c(e),t&&t.response&&(t.response.data=r(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"527a":function(e,t,n){var i=n("6d8b"),r=n("3842");function o(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,i={},o=n.getRect();i.rect=o;var s=e.get("boundaryGap"),l=n.getAxis();if(i.boundaryGap=s,"horizontal"===l.orient){s[0]=r.parsePercent(s[0],o.height),s[1]=r.parsePercent(s[1],o.height);var c=o.height-s[0]-s[1];a(t,e,c)}else{s[0]=r.parsePercent(s[0],o.width),s[1]=r.parsePercent(s[1],o.width);var u=o.width-s[0]-s[1];a(t,e,u)}t.setLayout("layoutInfo",i)}))}function a(e,t,n){if(e.count())for(var r,o=t.coordinateSystem,a=t.getLayerSeries(),l=e.mapDimension("single"),c=e.mapDimension("value"),u=i.map(a,(function(t){return i.map(t.indices,(function(t){var n=o.dataToPoint(e.get(l,t));return n[1]=e.get(c,t),n}))})),d=s(u),h=d.y0,p=n/d.max,f=a.length,g=a[0].indices.length,m=0;mo&&(o=c),i.push(c)}for(var u=0;uo&&(o=h)}return a.y0=r,a.max=o,a}e.exports=o},"53f3":function(e,t){function n(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,i=t.scale,r=i&&i[0]||1,o=t.getZoom(),a=(o-1)*n+1;return a/r}function i(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}t.getNodeGlobalScale=n,t.getSymbolSize=i},"53fe":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("85d3"),r=n.n(i);function o(e,t){for(var n=0;nr[n+t]&&(t=a),o&=i.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}t.register=s,t.unregister=l,t.generateCoordId=c},"55ac":function(e,t,n){var i=n("6d8b");function r(e,t,n){if(e&&i.indexOf(t,e.type)>=0){var r=n.getData().tree.root,o=e.targetNode;if("string"===typeof o&&(o=r.getNodeById(o)),o&&r.contains(o))return{node:o};var a=e.targetNodeId;if(null!=a&&(o=r.getNodeById(a)))return{node:o}}}function o(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function a(e,t){var n=o(e);return i.indexOf(n,t)>=0}function s(e,t){var n=[];while(e){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}t.retrieveTargetInfo=r,t.getPathToRoot=o,t.aboveViewRoot=a,t.wrapTreePathInfo=s},"562e":function(e,t,n){var i=n("6d8b");function r(e){null!=e&&i.extend(this,e),this.otherDims={}}var o=r;e.exports=o},5692:function(e,t,n){var i=n("c430"),r=n("c6cd");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.4.1",mode:i?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5693:function(e,t){function n(e,t){var n,i,r,o,a,s=t.x,l=t.y,c=t.width,u=t.height,d=t.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"===typeof d?n=i=r=o=d:d instanceof Array?1===d.length?n=i=r=o=d[0]:2===d.length?(n=r=d[0],i=o=d[1]):3===d.length?(n=d[0],i=o=d[1],r=d[2]):(n=d[0],i=d[1],r=d[2],o=d[3]):n=i=r=o=0,n+i>c&&(a=n+i,n*=c/a,i*=c/a),r+o>c&&(a=r+o,r*=c/a,o*=c/a),i+r>u&&(a=i+r,i*=u/a,r*=u/a),n+o>u&&(a=n+o,n*=u/a,o*=u/a),e.moveTo(s+n,l),e.lineTo(s+c-i,l),0!==i&&e.arc(s+c-i,l+i,i,-Math.PI/2,0),e.lineTo(s+c,l+u-r),0!==r&&e.arc(s+c-r,l+u-r,r,0,Math.PI/2),e.lineTo(s+o,l+u),0!==o&&e.arc(s+o,l+u-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}t.buildPath=n},"56b2":function(e,t){e.exports=function(e){var t="[ \\t\\f]*",n="[ \\t\\f]+",i="("+t+"[:=]"+t+"|"+n+")",r="([^\\\\\\W:= \\t\\f\\n]|\\\\.)+",o="([^\\\\:= \\t\\f\\n]|\\\\.)+",a={end:i,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\n"}]}};return{case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{begin:r+i,returnBegin:!0,contains:[{className:"attr",begin:r,endsParent:!0,relevance:0}],starts:a},{begin:o+i,returnBegin:!0,relevance:0,contains:[{className:"meta",begin:o,endsParent:!0,relevance:0}],starts:a},{className:"attr",relevance:0,begin:o+t+"$"}]}}},"56ef":function(e,t,n){var i=n("d066"),r=n("241c"),o=n("7418"),a=n("825a");e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},5728:function(e,t,n){"use strict";var i={};n.r(i),n.d(i,"isArray",(function(){return D})),n.d(i,"isArrayLike",(function(){return le})),n.d(i,"uniq",(function(){return fn})),n.d(i,"union",(function(){return ii})),n.d(i,"sortedIndex",(function(){return _i})),n.d(i,"sortedIndexBy",(function(){return ds})),n.d(i,"sortBy",(function(){return Ls})),n.d(i,"groupBy",(function(){return Ys})),n.d(i,"difference",(function(){return Zs})),n.d(i,"diff",(function(){return Js}));var r={};n.r(r),n.d(r,"has",(function(){return al})),n.d(r,"pick",(function(){return El})),n.d(r,"forIn",(function(){return kl})),n.d(r,"merge",(function(){return _c})),n.d(r,"extend",(function(){return bc})),n.d(r,"isEqual",(function(){return Ec})),n.d(r,"isEmpty",(function(){return Oc})),n.d(r,"isObject",(function(){return X})),n.d(r,"isPlainObject",(function(){return rc})),n.d(r,"clone",(function(){return md})),n.d(r,"cloneDeep",(function(){return bd})),n.d(r,"defaults",(function(){return xd})),n.d(r,"defaultsDeep",(function(){return Nd})),n.d(r,"ensure",(function(){return Fd})),n.d(r,"getValue",(function(){return Bd})),n.d(r,"getNumber",(function(){return $d})),n.d(r,"getBoolean",(function(){return Vd})),n.d(r,"getByPath",(function(){return Gd})),n.d(r,"setByPath",(function(){return Ud})),n.d(r,"unsetByPath",(function(){return zd})),n.d(r,"flatten",(function(){return jd})),n.d(r,"applyMixins",(function(){return Dd})),n.d(r,"inherit",(function(){return Md})),n.d(r,"createClass",(function(){return Pd}));var o={};n.r(o),n.d(o,"isString",(function(){return Yd})),n.d(o,"toString",(function(){return Pa})),n.d(o,"escape",(function(){return nh})),n.d(o,"unescape",(function(){return ch})),n.d(o,"startsWith",(function(){return Ih})),n.d(o,"endsWith",(function(){return kh})),n.d(o,"split",(function(){return Rp})),n.d(o,"repeat",(function(){return Lp})),n.d(o,"pad",(function(){return gf})),n.d(o,"padEnd",(function(){return vf})),n.d(o,"padStart",(function(){return yf})),n.d(o,"truncate",(function(){return xf})),n.d(o,"template",(function(){return sg})),n.d(o,"uniqueId",(function(){return ug})),n.d(o,"eval",(function(){return dg})),n.d(o,"lowerFirst",(function(){return Gm})),n.d(o,"upperFirst",(function(){return Rm})),n.d(o,"camelCase",(function(){return Lm})),n.d(o,"kebabCase",(function(){return zm})),n.d(o,"pascalCase",(function(){return jm})),n.d(o,"constantCase",(function(){return Hm})),n.d(o,"dotCase",(function(){return Wm})),n.d(o,"pathCase",(function(){return Ym})),n.d(o,"sentenceCase",(function(){return qm})),n.d(o,"titleCase",(function(){return Km})),n.d(o,"hashcode",(function(){return Qm})),n.d(o,"uuid",(function(){return Xm})),n.d(o,"sanitizeHTML",(function(){return Zm})),n.d(o,"getSpellingSuggestion",(function(){return Jm}));var a={};n.r(a),n.d(a,"isNaN",(function(){return ov})),n.d(a,"isNumber",(function(){return iv})),n.d(a,"isFinite",(function(){return lv})),n.d(a,"isInteger",(function(){return uv})),n.d(a,"isSafeInteger",(function(){return pv})),n.d(a,"clamp",(function(){return gv})),n.d(a,"inRange",(function(){return Sv})),n.d(a,"toFinite",(function(){return Oh})),n.d(a,"toNumber",(function(){return xh})),n.d(a,"toInteger",(function(){return Nh})),n.d(a,"toSafeInteger",(function(){return xv})),n.d(a,"parseInt",(function(){return Ov})),n.d(a,"isNumeric",(function(){return R})),n.d(a,"mod",(function(){return Rv})),n.d(a,"random",(function(){return Nv})),n.d(a,"isPercentage",(function(){return Dv})),n.d(a,"normalizePercentage",(function(){return Iv})),n.d(a,"parseCssNumeric",(function(){return Mv})),n.d(a,"normalizeSides",(function(){return kv}));var s={};n.r(s),n.d(s,"isFunction",(function(){return ie})),n.d(s,"once",(function(){return $v})),n.d(s,"noop",(function(){return rn})),n.d(s,"debounce",(function(){return Wv})),n.d(s,"defer",(function(){return Xv})),n.d(s,"apply",(function(){return Zv})),n.d(s,"call",(function(){return Jv})),n.d(s,"cacher",(function(){return t_})),n.d(s,"isAsyncLike",(function(){return n_})),n.d(s,"isAsync",(function(){return i_})),n.d(s,"toAsyncBoolean",(function(){return r_})),n.d(s,"toDeferredBoolean",(function(){return o_}));var l={};n.r(l),n.d(l,"annotate",(function(){return Y_})),n.d(l,"findAnnotationsAtIndex",(function(){return q_})),n.d(l,"findAnnotationsBetweenIndexes",(function(){return K_})),n.d(l,"shiftAnnotations",(function(){return Q_})),n.d(l,"sanitize",(function(){return X_}));var c={};n.r(c),n.d(c,"isVector",(function(){return aS})),n.d(c,"createVector",(function(){return sS})),n.d(c,"createVectors",(function(){return lS})),n.d(c,"requestAnimationFrame",(function(){return iy})),n.d(c,"cancelAnimationFrame",(function(){return ry})),n.d(c,"getAttribute",(function(){return B_})),n.d(c,"removeAttribute",(function(){return $_})),n.d(c,"setAttribute",(function(){return V_})),n.d(c,"setAttributes",(function(){return G_})),n.d(c,"attr",(function(){return U_})),n.d(c,"qualifyAttr",(function(){return z_})),n.d(c,"kebablizeAttrs",(function(){return j_})),n.d(c,"styleToObject",(function(){return H_})),n.d(c,"mergeAttrs",(function(){return W_})),n.d(c,"uniqueId",(function(){return g_})),n.d(c,"ensureId",(function(){return m_})),n.d(c,"isSVGGraphicsElement",(function(){return v_})),n.d(c,"ns",(function(){return __})),n.d(c,"svgVersion",(function(){return y_})),n.d(c,"createElement",(function(){return b_})),n.d(c,"createElementNS",(function(){return S_})),n.d(c,"createSvgElement",(function(){return E_})),n.d(c,"createSvgDocument",(function(){return C_})),n.d(c,"parseXML",(function(){return x_})),n.d(c,"tagName",(function(){return w_})),n.d(c,"index",(function(){return T_})),n.d(c,"find",(function(){return A_})),n.d(c,"findOne",(function(){return O_})),n.d(c,"findParentByClass",(function(){return R_})),n.d(c,"contains",(function(){return N_})),n.d(c,"remove",(function(){return D_})),n.d(c,"empty",(function(){return I_})),n.d(c,"append",(function(){return M_})),n.d(c,"prepend",(function(){return k_})),n.d(c,"before",(function(){return L_})),n.d(c,"appendTo",(function(){return P_})),n.d(c,"isHTMLElement",(function(){return F_})),n.d(c,"getClass",(function(){return c_})),n.d(c,"hasClass",(function(){return u_})),n.d(c,"addClass",(function(){return d_})),n.d(c,"removeClass",(function(){return h_})),n.d(c,"toggleClass",(function(){return p_})),n.d(c,"setPrefixedStyle",(function(){return hy})),n.d(c,"getComputedStyle",(function(){return py})),n.d(c,"hasScrollbars",(function(){return fy})),n.d(c,"getVendorPrefixedName",(function(){return dy})),n.d(c,"clearSelection",(function(){return gy})),n.d(c,"text",(function(){return nb})),n.d(c,"breakText",(function(){return rb})),n.d(c,"KAPPA",(function(){return ob})),n.d(c,"sample",(function(){return sb})),n.d(c,"lineToPathData",(function(){return lb})),n.d(c,"polygonToPathData",(function(){return cb})),n.d(c,"polylineToPathData",(function(){return ub})),n.d(c,"getPointsFromSvgElement",(function(){return hb})),n.d(c,"circleToPathData",(function(){return pb})),n.d(c,"ellipseToPathData",(function(){return fb})),n.d(c,"rectangleToPathData",(function(){return gb})),n.d(c,"rectToPathData",(function(){return mb})),n.d(c,"toPath",(function(){return vb})),n.d(c,"toPathData",(function(){return _b})),n.d(c,"createSlicePathData",(function(){return yb})),n.d(c,"bbox",(function(){return Vb})),n.d(c,"getBBox",(function(){return Gb})),n.d(c,"getBBoxByElementAttr",(function(){return Ub})),n.d(c,"getMatrixByElementAttr",(function(){return zb})),n.d(c,"getTransformToElement",(function(){return jb})),n.d(c,"toLocalPoint",(function(){return Hb})),n.d(c,"toGeometryShape",(function(){return Wb})),n.d(c,"getIntersection",(function(){return Yb})),n.d(c,"animate",(function(){return qb})),n.d(c,"animateTransform",(function(){return Kb})),n.d(c,"animateAlongPath",(function(){return Zb})),n.d(c,"getBoundingOffsetRect",(function(){return Jb})),n.d(c,"createSVGPoint",(function(){return xb})),n.d(c,"createSVGMatrix",(function(){return wb})),n.d(c,"createSVGTransform",(function(){return Tb})),n.d(c,"transformStringToMatrix",(function(){return Ab})),n.d(c,"matrixToTransformString",(function(){return Ob})),n.d(c,"parseTransformString",(function(){return Rb})),n.d(c,"decomposeMatrix",(function(){return Db})),n.d(c,"matrixToScale",(function(){return Ib})),n.d(c,"matrixToRotation",(function(){return Mb})),n.d(c,"matrixToTranslation",(function(){return kb})),n.d(c,"transformPoint",(function(){return Lb})),n.d(c,"transformLine",(function(){return Pb})),n.d(c,"transformPolyline",(function(){return Fb})),n.d(c,"transformRectangle",(function(){return Bb})),n.d(c,"transform",(function(){return eS})),n.d(c,"translate",(function(){return tS})),n.d(c,"rotate",(function(){return nS})),n.d(c,"scale",(function(){return iS})),n.d(c,"translateAndAutoOrient",(function(){return rS})),n.d(c,"MouseWheelHandle",(function(){return oS}));var u={};n.r(u),n.d(u,"block",(function(){return fE})),n.d(u,"classic",(function(){return gE})),n.d(u,"diamond",(function(){return _E})),n.d(u,"path",(function(){return bE})),n.d(u,"cross",(function(){return EE})),n.d(u,"async",(function(){return xE})),n.d(u,"circle",(function(){return TE})),n.d(u,"circlePlus",(function(){return AE})),n.d(u,"ellipse",(function(){return RE}));var d={};n.r(d),n.d(d,"ref",(function(){return vS})),n.d(d,"refX",(function(){return _S})),n.d(d,"refY",(function(){return yS})),n.d(d,"refDx",(function(){return bS})),n.d(d,"refDy",(function(){return SS})),n.d(d,"refWidth",(function(){return ES})),n.d(d,"refHeight",(function(){return CS})),n.d(d,"refRx",(function(){return xS})),n.d(d,"refRy",(function(){return wS})),n.d(d,"refRInscribed",(function(){return TS})),n.d(d,"refRCircumscribed",(function(){return AS})),n.d(d,"refCx",(function(){return OS})),n.d(d,"refCy",(function(){return RS})),n.d(d,"refDResetOffset",(function(){return NS})),n.d(d,"refDKeepOffset",(function(){return DS})),n.d(d,"refPointsResetOffset",(function(){return IS})),n.d(d,"refPointsKeepOffset",(function(){return MS})),n.d(d,"refR",(function(){return kS})),n.d(d,"refD",(function(){return LS})),n.d(d,"refPoints",(function(){return PS})),n.d(d,"refX2",(function(){return FS})),n.d(d,"refY2",(function(){return BS})),n.d(d,"refWidth2",(function(){return $S})),n.d(d,"refHeight2",(function(){return VS})),n.d(d,"fill",(function(){return WS})),n.d(d,"stroke",(function(){return YS})),n.d(d,"text",(function(){return qS})),n.d(d,"textWrap",(function(){return KS})),n.d(d,"lineHeight",(function(){return XS})),n.d(d,"textVerticalAnchor",(function(){return ZS})),n.d(d,"textPath",(function(){return JS})),n.d(d,"annotations",(function(){return eE})),n.d(d,"eol",(function(){return tE})),n.d(d,"displayEmpty",(function(){return nE})),n.d(d,"title",(function(){return iE})),n.d(d,"xAlign",(function(){return rE})),n.d(d,"yAlign",(function(){return oE})),n.d(d,"resetOffset",(function(){return aE})),n.d(d,"style",(function(){return lE})),n.d(d,"html",(function(){return cE})),n.d(d,"filter",(function(){return uE})),n.d(d,"port",(function(){return dE})),n.d(d,"sourceMarker",(function(){return ME})),n.d(d,"targetMarker",(function(){return kE})),n.d(d,"vertexMarker",(function(){return LE})),n.d(d,"connection",(function(){return $E})),n.d(d,"atConnectionLengthKeepGradient",(function(){return VE})),n.d(d,"atConnectionLengthIgnoreGradient",(function(){return GE})),n.d(d,"atConnectionRatioKeepGradient",(function(){return UE})),n.d(d,"atConnectionRatioIgnoreGradient",(function(){return zE})),n.d(d,"atConnectionLength",(function(){return jE})),n.d(d,"atConnectionRatio",(function(){return HE}));var h={};n.r(h),n.d(h,"dot",(function(){return qE})),n.d(h,"fixedDot",(function(){return KE})),n.d(h,"mesh",(function(){return QE})),n.d(h,"doubleMesh",(function(){return XE}));var p={};n.r(p),n.d(p,"outline",(function(){return tC})),n.d(p,"highlight",(function(){return nC})),n.d(p,"blur",(function(){return iC})),n.d(p,"dropShadow",(function(){return rC})),n.d(p,"grayScale",(function(){return oC})),n.d(p,"sepia",(function(){return aC})),n.d(p,"saturate",(function(){return sC})),n.d(p,"hueRotate",(function(){return lC})),n.d(p,"invert",(function(){return cC})),n.d(p,"brightness",(function(){return uC})),n.d(p,"contrast",(function(){return dC}));var f={};n.r(f),n.d(f,"flipX",(function(){return pC})),n.d(f,"flipY",(function(){return fC})),n.d(f,"flipXY",(function(){return gC})),n.d(f,"watermark",(function(){return mC}));var g={};n.r(g),n.d(g,"className",(function(){return EC})),n.d(g,"opacity",(function(){return xC})),n.d(g,"stroke",(function(){return TC}));var m={};n.r(m),n.d(m,"absolute",(function(){return DC})),n.d(m,"ellipse",(function(){return IC})),n.d(m,"ellipseSpread",(function(){return MC})),n.d(m,"line",(function(){return PC})),n.d(m,"left",(function(){return FC})),n.d(m,"right",(function(){return BC})),n.d(m,"top",(function(){return $C})),n.d(m,"bottom",(function(){return VC}));var v={};n.r(v),n.d(v,"manual",(function(){return HC})),n.d(v,"left",(function(){return WC})),n.d(v,"right",(function(){return YC})),n.d(v,"top",(function(){return qC})),n.d(v,"bottom",(function(){return KC})),n.d(v,"outside",(function(){return QC})),n.d(v,"outsideOriented",(function(){return XC})),n.d(v,"inside",(function(){return ZC})),n.d(v,"insideOriented",(function(){return JC})),n.d(v,"radial",(function(){return ix})),n.d(v,"radialOriented",(function(){return rx}));var _={};n.r(_),n.d(_,"noop",(function(){return Cx})),n.d(_,"pinRelative",(function(){return Ox})),n.d(_,"pinAbsolute",(function(){return Rx}));var y={};n.r(y),n.d(y,"center",(function(){return nw})),n.d(y,"top",(function(){return iw})),n.d(y,"bottom",(function(){return rw})),n.d(y,"left",(function(){return ow})),n.d(y,"right",(function(){return aw})),n.d(y,"topLeft",(function(){return sw})),n.d(y,"topRight",(function(){return lw})),n.d(y,"bottomLeft",(function(){return cw})),n.d(y,"bottomRight",(function(){return uw})),n.d(y,"orth",(function(){return gw})),n.d(y,"nodeCenter",(function(){return mw})),n.d(y,"midSide",(function(){return _w}));var b={};n.r(b),n.d(b,"closest",(function(){return Cw})),n.d(b,"ratio",(function(){return bw})),n.d(b,"length",(function(){return Sw})),n.d(b,"orth",(function(){return ww}));var S={};n.r(S),n.d(S,"bbox",(function(){return Nw})),n.d(S,"rect",(function(){return Dw})),n.d(S,"boundary",(function(){return Iw})),n.d(S,"anchor",(function(){return kw}));var E={};n.r(E),n.d(E,"normal",(function(){return Pw})),n.d(E,"oneSide",(function(){return Fw})),n.d(E,"orth",(function(){return jw})),n.d(E,"metro",(function(){return ST})),n.d(E,"manhattan",(function(){return yT})),n.d(E,"er",(function(){return ET})),n.d(E,"loop",(function(){return xT}));var C={};n.r(C),n.d(C,"normal",(function(){return TT})),n.d(C,"loop",(function(){return AT})),n.d(C,"rounded",(function(){return OT})),n.d(C,"smooth",(function(){return RT})),n.d(C,"jumpover",(function(){return UT}));var x={};n.r(x),n.d(x,"create",(function(){return jT})),n.d(x,"Attr",(function(){return YE})),n.d(x,"Grid",(function(){return ZE})),n.d(x,"Filter",(function(){return hC})),n.d(x,"Background",(function(){return vC})),n.d(x,"Highlighter",(function(){return OC})),n.d(x,"PortLayout",(function(){return UC})),n.d(x,"PortLabelLayout",(function(){return ax})),n.d(x,"NodeTool",(function(){return Jx})),n.d(x,"EdgeTool",(function(){return ew})),n.d(x,"Marker",(function(){return NE})),n.d(x,"NodeAnchor",(function(){return yw})),n.d(x,"EdgeAnchor",(function(){return Tw})),n.d(x,"ConnectionPoint",(function(){return Lw})),n.d(x,"Router",(function(){return wT})),n.d(x,"Connector",(function(){return zT})),n.d(x,"ConnectionStrategy",(function(){return Nx})),n.d(x,"Registry",(function(){return gS}));var w=n("1157"),T=n.n(w);n("b22e");const A=navigator.userAgent;var O;if(function(e){e.IS_MAC=navigator.appVersion.indexOf("Mac")>0,e.IS_IOS=!!A.match(/(iPad|iPhone|iPod)/g),e.IS_WINDOWS=navigator.appVersion.indexOf("Win")>0,e.IS_IE=A.indexOf("MSIE")>=0,e.IS_IE11=!!A.match(/Trident\/7\./),e.IS_EDGE=!!A.match(/Edge\//),e.IS_NETSCAPE=A.indexOf("Mozilla/")>=0&&A.indexOf("MSIE")<0&&A.indexOf("Edge/")<0,e.IS_CHROME_APP=null!=window.chrome&&null!=window.chrome.app&&null!=window.chrome.app.runtime,e.IS_CHROME=A.indexOf("Chrome/")>=0&&A.indexOf("Edge/")<0,e.IS_OPERA=A.indexOf("Opera/")>=0||A.indexOf("OPR/")>=0,e.IS_FIREFOX=A.indexOf("Firefox/")>=0,e.IS_SAFARI=A.indexOf("AppleWebKit/")>=0&&A.indexOf("Chrome/")<0&&A.indexOf("Edge/")<0,e.SUPPORT_TOUCH="ontouchstart"in document.documentElement,e.SUPPORT_POINTER=null!=window.PointerEvent&&!e.IS_MAC,e.SUPPORT_PASSIVE=!1;try{const t=Object.defineProperty({},"passive",{get(){e.SUPPORT_PASSIVE=!0}}),n=document.createElement("div");n.addEventListener&&n.addEventListener("click",()=>{},t)}catch(t){}e.NO_FOREIGNOBJECT=!document.createElementNS||"[object SVGForeignObjectElement]"!==`${document.createElementNS("http://www.w3.org/2000/svg","foreignObject")}`||A.indexOf("Opera/")>=0,e.SUPPORT_FOREIGNOBJECT=!e.NO_FOREIGNOBJECT}(O||(O={})),function(e){function t(){const e=window.module;return null!=e&&null!=e.hot&&null!=e.hot.status?e.hot.status():"unkonwn"}function n(){return"apply"===t()}e.getHMRStatus=t,e.isApplyingHMR=n;const i={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};function r(e){const t=document.createElement(i[e]||"div"),n=`on${e}`;let r=n in t;return r||(t.setAttribute(n,"return;"),r="function"===typeof t[n]),r}e.isEventSupported=r}(O||(O={})),O.SUPPORT_PASSIVE){T.a.event.special.touchstart={setup(e,t,n){if(!this.addEventListener)return!1;this.addEventListener("touchstart",n,{passive:!0})}};const e=T.a.event.special.mousewheel;if(e){const t=e.setup;e.setup=function(){const e=this.addEventListener;if(!e)return!1;this.addEventListener=(t,n)=>{e.call(this,t,n,{passive:!0})},t.call(this),this.addEventListener=e}}}window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),function(e){e.forEach(e=>{Object.prototype.hasOwnProperty.call(e,"append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value(...e){const t=document.createDocumentFragment();e.forEach(e=>{const n=e instanceof Node;t.appendChild(n?e:document.createTextNode(String(e)))}),this.appendChild(t)}})})}([Element.prototype,Document.prototype,DocumentFragment.prototype]);const R=e=>!Array.isArray(e)&&e-parseFloat(e)+1>=0;var N=Array.isArray,D=N,I=n("26ee"),M=I["a"].Symbol,k=M,L=Object.prototype,P=L.hasOwnProperty,F=L.toString,B=k?k.toStringTag:void 0;function $(e){var t=P.call(e,B),n=e[B];try{e[B]=void 0;var i=!0}catch(o){}var r=F.call(e);return i&&(t?e[B]=n:delete e[B]),r}var V=$,G=Object.prototype,U=G.toString;function z(e){return U.call(e)}var j=z,H="[object Null]",W="[object Undefined]",Y=k?k.toStringTag:void 0;function q(e){return null==e?void 0===e?W:H:Y&&Y in Object(e)?V(e):j(e)}var K=q;function Q(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var X=Q,Z="[object AsyncFunction]",J="[object Function]",ee="[object GeneratorFunction]",te="[object Proxy]";function ne(e){if(!X(e))return!1;var t=K(e);return t==J||t==ee||t==Z||t==te}var ie=ne,re=9007199254740991;function oe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=re}var ae=oe;function se(e){return null!=e&&ae(e.length)&&!ie(e)}var le=se,ce=I["a"]["__core-js_shared__"],ue=ce,de=function(){var e=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function he(e){return!!de&&de in e}var pe=he,fe=Function.prototype,ge=fe.toString;function me(e){if(null!=e){try{return ge.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var ve=me,_e=/[\\^$.*+?()[\]{}|]/g,ye=/^\[object .+?Constructor\]$/,be=Function.prototype,Se=Object.prototype,Ee=be.toString,Ce=Se.hasOwnProperty,xe=RegExp("^"+Ee.call(Ce).replace(_e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function we(e){if(!X(e)||pe(e))return!1;var t=ie(e)?xe:ye;return t.test(ve(e))}var Te=we;function Ae(e,t){return null==e?void 0:e[t]}var Oe=Ae;function Re(e,t){var n=Oe(e,t);return Te(n)?n:void 0}var Ne=Re,De=Ne(Object,"create"),Ie=De;function Me(){this.__data__=Ie?Ie(null):{},this.size=0}var ke=Me;function Le(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Pe=Le,Fe="__lodash_hash_undefined__",Be=Object.prototype,$e=Be.hasOwnProperty;function Ve(e){var t=this.__data__;if(Ie){var n=t[e];return n===Fe?void 0:n}return $e.call(t,e)?t[e]:void 0}var Ge=Ve,Ue=Object.prototype,ze=Ue.hasOwnProperty;function je(e){var t=this.__data__;return Ie?void 0!==t[e]:ze.call(t,e)}var He=je,We="__lodash_hash_undefined__";function Ye(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ie&&void 0===t?We:t,this}var qe=Ye;function Ke(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t-1}var ut=ct;function dt(e,t){var n=this.__data__,i=nt(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var ht=dt;function pt(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t-1}var Kt=qt;function Qt(e,t,n){var i=-1,r=null==e?0:e.length;while(++i=un){var c=t?null:cn(e);if(c)return an(c);a=!1,r=Jt,l=new $t}else l=t?[]:s;e:while(++i0&&n(s)?t>1?Nn(s,t-1,n,i,r):mn(r,s):i||(r[r.length]=s)}return r}var Dn=Nn;function In(e){return e}var Mn=In;function kn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Ln=kn,Pn=Math.max;function Fn(e,t,n){return t=Pn(void 0===t?e.length-1:t,0),function(){var i=arguments,r=-1,o=Pn(i.length-t,0),a=Array(o);while(++r0){if(++t>=Hn)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Kn=qn,Qn=Kn(jn),Xn=Qn;function Zn(e,t){return Xn(Bn(e,t,Mn),e+"")}var Jn=Zn;function ei(e){return _n(e)&&le(e)}var ti=ei,ni=Jn((function(e){return hn(Dn(e,1,ti,!0))})),ii=ni,ri="[object Symbol]";function oi(e){return"symbol"==typeof e||_n(e)&&K(e)==ri}var ai=oi,si=4294967295,li=si-1,ci=Math.floor,ui=Math.min;function di(e,t,n,i){var r=0,o=null==e?0:e.length;if(0===o)return 0;t=n(t);var a=t!==t,s=null===t,l=ai(t),c=void 0===t;while(r>>1;function gi(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t===t&&r<=fi){while(i>>1,a=e[o];null!==a&&!ai(a)&&(n?a<=t:as))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=n&Li?new $t:void 0;o.set(e,t),o.set(t,e);while(++d-1&&e%1==0&&et||o&&a&&l&&!s&&!c||i&&a&&l||!n&&l||!r)return 1;if(!i&&!o&&!c&&e=s)return l;var c=n[i];return l*("desc"==c?-1:1)}}return e.index-t.index}var Rs=Os;function Ns(e,t,n){t=t.length?Ra(t,(function(e){return D(e)?function(t){return za(t,1===e.length?e[0]:e)}:e})):[Mn];var i=-1;t=Ra(t,Xr(cs));var r=Cs(e,(function(e,n,r){var o=Ra(t,(function(t){return t(e)}));return{criteria:o,index:++i,value:e}}));return ws(r,(function(e,t){return Rs(e,t,n)}))}var Ds=Ns;function Is(e,t,n){if(!X(n))return!1;var i=typeof t;return!!("number"==i?le(n)&&Er(t,n.length):"string"==i&&t in n)&&et(n[t],e)}var Ms=Is,ks=Jn((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ms(e,t[0],t[1])?t=[]:n>2&&Ms(t[0],t[1],t[2])&&(t=[t[0]]),Ds(e,Dn(t,1),[])})),Ls=ks;function Ps(e,t,n){"__proto__"==t&&Un?Un(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Fs=Ps;function Bs(e,t,n,i){var r=-1,o=null==e?0:e.length;while(++r=qs&&(o=Jt,a=!1,t=new $t(t));e:while(++r1?n[r-1]:void 0,a=r>2?n[2]:void 0;o=e.length>3&&"function"==typeof o?(r--,o):void 0,a&&Ms(n[0],n[1],a)&&(o=r<3?void 0:o,r=1),t=Object(t);while(++i2?t[2]:void 0;r&&Ms(t[0],t[1],r)&&(i=1);while(++n{Object.getOwnPropertyNames(t.prototype).forEach(n=>{"constructor"!==n&&Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(t.prototype,n))})})}const Id=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])};function Md(e,t){function n(){this.constructor=e}Id(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}class kd{}const Ld=/^\s*class\s+/.test(`${kd}`)||/^\s*class\s*\{/.test(`${class{}}`);function Pd(e,t){let n;return Ld?n=new Function("base",`return class ${e} extends base { }`)(t):(n=new Function("base",`return function ${e}() { return base.apply(this, arguments) }`)(t),Md(n,t)),n}function Fd(e,t){return null!=e?e:t}function Bd(e,t,n){const i=null!=e?e[t]:null;return void 0!==n?Fd(i,n):i}function $d(e,t,n){let i=null!=e?e[t]:null;return null==i?n:(i=+i,Number.isNaN(i)||!Number.isFinite(i)?n:i)}function Vd(e,t,n){const i=null!=e?e[t]:null;return null==i?n:!!i}function Gd(e,t,n="/"){let i;const r=Array.isArray(t)?t:t.split(n);if(r.length){i=e;while(r.length){const e=r.shift();if(!(Object(i)===i&&e&&e in i))return;i=i[e]}}return i}function Ud(e,t,n,i="/"){const r=Array.isArray(t)?t:t.split(i),o=r.pop();if(o){let t=e;r.forEach(e=>{null==t[e]&&(t[e]={}),t=t[e]}),t[o]=n}return e}function zd(e,t,n="/"){const i=Array.isArray(t)?t.slice():t.split(n),r=i.pop();if(r)if(i.length>0){const t=Gd(e,i);t&&delete t[r]}else delete e[r];return e}function jd(e,t="/",n){const i={};Object.keys(e).forEach(r=>{const o=e[r];let a="object"===typeof o||Array.isArray(o);if(a&&n&&n(o)&&(a=!1),a){const e=jd(o,t,n);Object.keys(e).forEach(n=>{i[r+t+n]=e[n]})}else i[r]=o});for(const r in e)Object.prototype.hasOwnProperty.call(e,r);return i}var Hd="[object String]";function Wd(e){return"string"==typeof e||!D(e)&&_n(e)&&K(e)==Hd}var Yd=Wd;function qd(e){return function(t){return null==e?void 0:e[t]}}var Kd=qd,Qd={"&":"&","<":"<",">":">",'"':""","'":"'"},Xd=Kd(Qd),Zd=Xd,Jd=/[&<>"']/g,eh=RegExp(Jd.source);function th(e){return e=Pa(e),e&&eh.test(e)?e.replace(Jd,Zd):e}var nh=th,ih={"&":"&","<":"<",">":">",""":'"',"'":"'"},rh=Kd(ih),oh=rh,ah=/&(?:amp|lt|gt|quot|#39);/g,sh=RegExp(ah.source);function lh(e){return e=Pa(e),e&&sh.test(e)?e.replace(ah,oh):e}var ch=lh;function uh(e,t,n){return e===e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}var dh=uh,hh=/\s/;function ph(e){var t=e.length;while(t--&&hh.test(e.charAt(t)));return t}var fh=ph,gh=/^\s+/;function mh(e){return e?e.slice(0,fh(e)+1).replace(gh,""):e}var vh=mh,_h=NaN,yh=/^[-+]0x[0-9a-f]+$/i,bh=/^0b[01]+$/i,Sh=/^0o[0-7]+$/i,Eh=parseInt;function Ch(e){if("number"==typeof e)return e;if(ai(e))return _h;if(X(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=X(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=vh(e);var n=bh.test(e);return n||Sh.test(e)?Eh(e.slice(2),n?2:8):yh.test(e)?_h:+e}var xh=Ch,wh=1/0,Th=17976931348623157e292;function Ah(e){if(!e)return 0===e?e:0;if(e=xh(e),e===wh||e===-wh){var t=e<0?-1:1;return t*Th}return e===e?e:0}var Oh=Ah;function Rh(e){var t=Oh(e),n=t%1;return t===t?n?t-n:t:0}var Nh=Rh;function Dh(e,t,n){return e=Pa(e),n=null==n?0:dh(Nh(n),0,e.length),t=ka(t),e.slice(n,n+t.length)==t}var Ih=Dh;function Mh(e,t,n){e=Pa(e),t=ka(t);var i=e.length;n=void 0===n?i:dh(Nh(n),0,i);var r=n;return n-=t.length,n>=0&&e.slice(n,r)==t}var kh=Mh;function Lh(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;var o=Array(r);while(++i=i?e:Ph(e,t,n)}var Bh=Fh,$h="\\ud800-\\udfff",Vh="\\u0300-\\u036f",Gh="\\ufe20-\\ufe2f",Uh="\\u20d0-\\u20ff",zh=Vh+Gh+Uh,jh="\\ufe0e\\ufe0f",Hh="\\u200d",Wh=RegExp("["+Hh+$h+zh+jh+"]");function Yh(e){return Wh.test(e)}var qh=Yh,Kh="[object RegExp]";function Qh(e){return _n(e)&&K(e)==Kh}var Xh=Qh,Zh=Zr["a"]&&Zr["a"].isRegExp,Jh=Zh?Xr(Zh):Xh,ep=Jh;function tp(e){return e.split("")}var np=tp,ip="\\ud800-\\udfff",rp="\\u0300-\\u036f",op="\\ufe20-\\ufe2f",ap="\\u20d0-\\u20ff",sp=rp+op+ap,lp="\\ufe0e\\ufe0f",cp="["+ip+"]",up="["+sp+"]",dp="\\ud83c[\\udffb-\\udfff]",hp="(?:"+up+"|"+dp+")",pp="[^"+ip+"]",fp="(?:\\ud83c[\\udde6-\\uddff]){2}",gp="[\\ud800-\\udbff][\\udc00-\\udfff]",mp="\\u200d",vp=hp+"?",_p="["+lp+"]?",yp="(?:"+mp+"(?:"+[pp,fp,gp].join("|")+")"+_p+vp+")*",bp=_p+vp+yp,Sp="(?:"+[pp+up+"?",up,fp,gp,cp].join("|")+")",Ep=RegExp(dp+"(?="+dp+")|"+Sp+bp,"g");function Cp(e){return e.match(Ep)||[]}var xp=Cp;function wp(e){return qh(e)?xp(e):np(e)}var Tp=wp,Ap=4294967295;function Op(e,t,n){return n&&"number"!=typeof n&&Ms(e,t,n)&&(t=n=void 0),n=void 0===n?Ap:n>>>0,n?(e=Pa(e),e&&("string"==typeof t||null!=t&&!ep(t))&&(t=ka(t),!t&&qh(e))?Bh(Tp(e),0,n):e.split(t,n)):[]}var Rp=Op,Np=9007199254740991,Dp=Math.floor;function Ip(e,t){var n="";if(!e||t<1||t>Np)return n;do{t%2&&(n+=e),t=Dp(t/2),t&&(e+=e)}while(t);return n}var Mp=Ip;function kp(e,t,n){return t=(n?Ms(e,t,n):void 0===t)?1:Nh(t),Mp(Pa(e),t)}var Lp=kp,Pp=is("length"),Fp=Pp,Bp="\\ud800-\\udfff",$p="\\u0300-\\u036f",Vp="\\ufe20-\\ufe2f",Gp="\\u20d0-\\u20ff",Up=$p+Vp+Gp,zp="\\ufe0e\\ufe0f",jp="["+Bp+"]",Hp="["+Up+"]",Wp="\\ud83c[\\udffb-\\udfff]",Yp="(?:"+Hp+"|"+Wp+")",qp="[^"+Bp+"]",Kp="(?:\\ud83c[\\udde6-\\uddff]){2}",Qp="[\\ud800-\\udbff][\\udc00-\\udfff]",Xp="\\u200d",Zp=Yp+"?",Jp="["+zp+"]?",ef="(?:"+Xp+"(?:"+[qp,Kp,Qp].join("|")+")"+Jp+Zp+")*",tf=Jp+Zp+ef,nf="(?:"+[qp+Hp+"?",Hp,Kp,Qp,jp].join("|")+")",rf=RegExp(Wp+"(?="+Wp+")|"+nf+tf,"g");function of(e){var t=rf.lastIndex=0;while(rf.test(e))++t;return t}var af=of;function sf(e){return qh(e)?af(e):Fp(e)}var lf=sf,cf=Math.ceil;function uf(e,t){t=void 0===t?" ":ka(t);var n=t.length;if(n<2)return n?Mp(t,e):t;var i=Mp(t,cf(e/lf(t)));return qh(t)?Bh(Tp(i),0,e).join(""):i.slice(0,e)}var df=uf,hf=Math.ceil,pf=Math.floor;function ff(e,t,n){e=Pa(e),t=Nh(t);var i=t?lf(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return df(pf(r),n)+e+df(hf(r),n)}var gf=ff;function mf(e,t,n){e=Pa(e),t=Nh(t);var i=t?lf(e):0;return t&&i=o)return e;var s=n-lf(i);if(s<1)return i;var l=a?Bh(a,0,s).join(""):e.slice(0,s);if(void 0===r)return l+i;if(a&&(s+=l.length-s),ep(r)){if(e.slice(s).search(r)){var c,u=l;r.global||(r=RegExp(r.source,Pa(Ef.exec(r))+"g")),r.lastIndex=0;while(c=r.exec(u))var d=c.index;l=l.slice(0,void 0===d?s:d)}}else if(e.indexOf(ka(r),s)!=s){var h=l.lastIndexOf(r);h>-1&&(l=l.slice(0,h))}return l+i}var xf=Cf,wf=mc((function(e,t,n,i){lc(t,Il(t),e,i)})),Tf=wf,Af="[object DOMException]",Of="[object Error]";function Rf(e){if(!_n(e))return!1;var t=K(e);return t==Of||t==Af||"string"==typeof e.message&&"string"==typeof e.name&&!rc(e)}var Nf=Rf,Df=Jn((function(e,t){try{return Ln(e,void 0,t)}catch(n){return Nf(n)?n:new Error(n)}})),If=Df;function Mf(e,t){return Ra(t,(function(t){return e[t]}))}var kf=Mf,Lf=Object.prototype,Pf=Lf.hasOwnProperty;function Ff(e,t,n,i){return void 0===e||et(e,Lf[n])&&!Pf.call(i,n)?t:e}var Bf=Ff,$f={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Vf(e){return"\\"+$f[e]}var Gf=Vf,Uf=/<%=([\s\S]+?)%>/g,zf=Uf,jf=/<%-([\s\S]+?)%>/g,Hf=jf,Wf=/<%([\s\S]+?)%>/g,Yf=Wf,qf={escape:Hf,evaluate:Yf,interpolate:zf,variable:"",imports:{_:{escape:nh}}},Kf=qf,Qf="Invalid `variable` option passed into `_.template`",Xf=/\b__p \+= '';/g,Zf=/\b(__p \+=) '' \+/g,Jf=/(__e\(.*?\)|\b__t\)) \+\n'';/g,eg=/[()=,{}\[\]\/\s]/,tg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ng=/($^)/,ig=/['\n\r\u2028\u2029\\]/g,rg=Object.prototype,og=rg.hasOwnProperty;function ag(e,t,n){var i=Kf.imports._.templateSettings||Kf;n&&Ms(e,t,n)&&(t=void 0),e=Pa(e),t=Tf({},t,i,Bf);var r,o,a=Tf({},t.imports,i.imports,Bf),s=yo(a),l=kf(a,s),c=0,u=t.interpolate||ng,d="__p += '",h=RegExp((t.escape||ng).source+"|"+u.source+"|"+(u===zf?tg:ng).source+"|"+(t.evaluate||ng).source+"|$","g"),p=og.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(h,(function(t,n,i,a,s,l){return i||(i=a),d+=e.slice(c,l).replace(ig,Gf),n&&(r=!0,d+="' +\n__e("+n+") +\n'"),s&&(o=!0,d+="';\n"+s+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),d+="';\n";var f=og.call(t,"variable")&&t.variable;if(f){if(eg.test(f))throw new Error(Qf)}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(Xf,""):d).replace(Zf,"$1").replace(Jf,"$1;"),d="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=If((function(){return Function(s,p+"return "+d).apply(void 0,l)}));if(g.source=d,Nf(g))throw g;return g}var sg=ag,lg=0;function cg(e){var t=++lg;return Pa(e)+t}var ug=cg;function dg(e){let t=null;try{t=window.eval(e)}catch(n){}return t}function hg(e,t,n,i){var r=-1,o=null==e?0:e.length;i&&o&&(n=e[++r]);while(++r{const t=Object.create(null);return n=>{const i=t[n];return i||(t[n]=e(n))}},zm=Um(e=>e.replace(/\B([A-Z])/g,"-$1").toLowerCase()),jm=Um(e=>Dm(Lm(e)).replace(/ /g,"")),Hm=Um(e=>Fm(e).replace(/ /g,"_")),Wm=Um(e=>$m(e).replace(/ /g,".")),Ym=Um(e=>$m(e).replace(/ /g,"/")),qm=Um(e=>Rm($m(e))),Km=Um(e=>Dm(Lm(e)));function Qm(e){let t=2166136261,n=!1,i=e;for(let r=0,o=i.length;r127&&!n&&(i=unescape(encodeURIComponent(i)),e=i.charCodeAt(r),n=!0),t^=e,t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24)}return t>>>0}function Xm(){let e="";const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";for(let n=0,i=t.length;n{const t=e;if(t){const e=t.attributes;if(e)for(let n=0,i=e.length;n").append(n).html()}function Jm(e,t,n){const i=Math.min(2,Math.floor(.34*e.length));let r,o=Math.floor(.4*e.length)+1,a=!1;const s=e.toLowerCase();for(const l of t){const t=n(l);if(void 0!==t&&Math.abs(t.length-s.length)<=i){const n=t.toLowerCase();if(n===s){if(t===e)continue;return l}if(a)continue;if(t.length<3)continue;const i=ev(s,n,o-1);if(void 0===i)continue;i<3?(a=!0,r=l):(o=i,r=l)}}return r}function ev(e,t,n){let i=new Array(t.length+1),r=new Array(t.length+1);const o=n+1;for(let s=0;s<=t.length;s+=1)i[s]=s;for(let s=1;s<=e.length;s+=1){const a=e.charCodeAt(s-1),l=s>n?s-n:1,c=t.length>n+s?n+s:t.length;r[0]=s;let u=s;for(let e=1;en)return;const d=i;i=r,r=d}const a=i[t.length];return a>n?void 0:a}var tv="[object Number]";function nv(e){return"number"==typeof e||_n(e)&&K(e)==tv}var iv=nv;function rv(e){return iv(e)&&e!=+e}var ov=rv,av=I["a"].isFinite;function sv(e){return"number"==typeof e&&av(e)}var lv=sv;function cv(e){return"number"==typeof e&&e==Nh(e)}var uv=cv,dv=9007199254740991;function hv(e){return uv(e)&&e>=-dv&&e<=dv}var pv=hv;function fv(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=xh(n),n=n===n?n:0),void 0!==t&&(t=xh(t),t=t===t?t:0),dh(xh(e),t,n)}var gv=fv,mv=Math.max,vv=Math.min;function _v(e,t,n){return e>=vv(t,n)&&e0&&n<1?n*t:n:0}function Mv(e,t){function n(t){const n=new RegExp(`(?:\\d+(?:\\.\\d+)*)(${t})$`).exec(e);return n?n[1]:null}const i=parseFloat(e);if(Number.isNaN(i))return null;let r;if(null==t)r="[A-Za-z]*";else if(Array.isArray(t)){if(0===t.length)return null;r=t.join("|")}else"string"===typeof t&&(r=t);const o=n(r);return null===o?null:{unit:o,value:i}}function kv(e){if("object"===typeof e){let t=0,n=0,i=0,r=0;return null!=e.vertical&&Number.isFinite(e.vertical)&&(n=r=e.vertical),null!=e.horizontal&&Number.isFinite(e.horizontal)&&(i=t=e.horizontal),null!=e.left&&Number.isFinite(e.left)&&(t=e.left),null!=e.top&&Number.isFinite(e.top)&&(n=e.top),null!=e.right&&Number.isFinite(e.right)&&(i=e.right),null!=e.bottom&&Number.isFinite(e.bottom)&&(r=e.bottom),{top:n,right:i,bottom:r,left:t}}let t=0;return null!=e&&Number.isFinite(e)&&(t=e),{top:t,right:t,bottom:t,left:t}}var Lv="Expected a function";function Pv(e,t){var n;if("function"!=typeof t)throw new TypeError(Lv);return e=Nh(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var Fv=Pv;function Bv(e){return Fv(2,e)}var $v=Bv,Vv=function(){return I["a"].Date.now()},Gv=Vv,Uv="Expected a function",zv=Math.max,jv=Math.min;function Hv(e,t,n){var i,r,o,a,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError(Uv);function p(t){var n=i,o=r;return i=r=void 0,c=t,a=e.apply(o,n),a}function f(e){return c=e,s=setTimeout(v,t),u?p(e):a}function g(e){var n=e-l,i=e-c,r=t-n;return d?jv(r,o-i):r}function m(e){var n=e-l,i=e-c;return void 0===l||n>=t||n<0||d&&i>=o}function v(){var e=Gv();if(m(e))return _(e);s=setTimeout(v,g(e))}function _(e){return s=void 0,h&&i?p(e):(i=r=void 0,a)}function y(){void 0!==s&&clearTimeout(s),c=0,i=l=r=s=void 0}function b(){return void 0===s?a:_(Gv())}function S(){var e=Gv(),n=m(e);if(i=arguments,r=this,l=e,n){if(void 0===s)return f(l);if(d)return clearTimeout(s),s=setTimeout(v,t),p(l)}return void 0===s&&(s=setTimeout(v,t)),a}return t=xh(t)||0,X(n)&&(u=!!n.leading,d="maxWait"in n,o=d?zv(xh(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),S.cancel=y,S.flush=b,S}var Wv=Hv,Yv="Expected a function";function qv(e,t,n){if("function"!=typeof e)throw new TypeError(Yv);return setTimeout((function(){e.apply(void 0,n)}),t)}var Kv=qv,Qv=Jn((function(e,t){return Kv(e,1,t)})),Xv=Qv;function Zv(e,t,n){if(n)switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2]);case 4:return e.call(t,n[0],n[1],n[2],n[3]);case 5:return e.call(t,n[0],n[1],n[2],n[3],n[4]);case 6:return e.call(t,n[0],n[1],n[2],n[3],n[4],n[5]);default:return e.apply(t,n)}return e.call(t)}function Jv(e,t,...n){return Zv(e,t,n)}function e_(e,t){for(let n=0,i=e.length;n{let a=!1;const s=o.join("␀");return s in r?(a=!0,e_(i,s)):(i.length>=1e3&&delete r[i.shift()],i.push(s),r[s]=Zv(e,t||null,o)),n?n(r[s],a):r[s]};return o}function n_(e){return"object"===typeof e&&e.then&&"function"===typeof e.then}function i_(e){return null!=e&&(e instanceof Promise||n_(e))}function r_(...e){const t=[];e.forEach(e=>{Array.isArray(e)?t.push(...e):t.push(e)});const n=t.some(e=>i_(e));if(n){const e=t.map(e=>i_(e)?e:Promise.resolve(!1!==e));return Promise.all(e).then(e=>e.reduce((e,t)=>!1!==t&&e,!0))}return t.every(e=>!1!==e)}function o_(...e){const t=r_(e);return"boolean"===typeof t?Promise.resolve(t):t}const a_=/[\t\r\n\f]/g,s_=/\S+/g,l_=e=>` ${e} `;function c_(e){return e&&e.getAttribute&&e.getAttribute("class")||""}function u_(e,t){if(null==e||null==t)return!1;const n=l_(c_(e)),i=l_(t);return 1===e.nodeType&&n.replace(a_," ").includes(i)}function d_(e,t){if(null!=e&&null!=t){if("function"===typeof t)return d_(e,t(c_(e)));if("string"===typeof t&&1===e.nodeType){const n=t.match(s_)||[],i=l_(c_(e)).replace(a_," ");let r=n.reduce((e,t)=>{return e.indexOf(l_(t))<0?`${e}${t} `:e},i);r=r.trim(),i!==r&&e.setAttribute("class",r)}}}function h_(e,t){if(null!=e){if("function"===typeof t)return h_(e,t(c_(e)));if((!t||"string"===typeof t)&&1===e.nodeType){const n=(t||"").match(s_)||[],i=l_(c_(e)).replace(a_," ");let r=n.reduce((e,t)=>{const n=l_(t);return e.indexOf(n)>-1?e.replace(n," "):e},i);r=t?r.trim():"",i!==r&&e.setAttribute("class",r)}}}function p_(e,t,n){if(null!=e&&null!=t)if(null==n||"string"!==typeof t){if("function"===typeof t)return p_(e,t(c_(e),n),n);if("string"===typeof t){const n=t.match(s_)||[];n.forEach(t=>{u_(e,t)?h_(e,t):d_(e,t)})}}else n?d_(e,t):h_(e,t)}let f_=0;function g_(){return f_+=1,`v${f_}`}function m_(e){return null!=e.id&&""!==e.id||(e.id=g_()),e.id}function v_(e){return null!=e&&("function"===typeof e.getScreenCTM&&e instanceof SVGElement)}const __={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xml:"http://www.w3.org/XML/1998/namespace",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml"},y_="1.1";function b_(e,t=document){return t.createElement(e)}function S_(e,t=__.xhtml,n=document){return n.createElementNS(t,e)}function E_(e,t=document){return S_(e,__.svg,t)}function C_(e){if(e){const t=`${e}`,{documentElement:n}=x_(t,{async:!1});return n}const t=document.createElementNS(__.svg,"svg");return t.setAttributeNS(__.xmlns,"xmlns:xlink",__.xlink),t.setAttribute("version",y_),t}function x_(e,t={}){let n;try{const i=new DOMParser;if(null!=t.async){const e=i;e.async=t.async}n=i.parseFromString(e,t.mimeType||"text/xml")}catch(i){n=void 0}if(!n||n.getElementsByTagName("parsererror").length)throw new Error(`Invalid XML: ${e}`);return n}function w_(e,t=!0){const n=e.nodeName;return t?n.toLowerCase():n.toUpperCase()}function T_(e){let t=0,n=e.previousSibling;while(n)1===n.nodeType&&(t+=1),n=n.previousSibling;return t}function A_(e,t){return e.querySelectorAll(t)}function O_(e,t){return e.querySelector(t)}function R_(e,t,n){const i=e.ownerSVGElement;let r=e.parentNode;while(r&&r!==n&&r!==i){if(u_(r,t))return r;r=r.parentNode}return null}function N_(e,t){const n=t&&t.parentNode;return e===n||!!(n&&1===n.nodeType&&16&e.compareDocumentPosition(n))}function D_(e){e.parentNode&&e.parentNode.removeChild(e)}function I_(e){while(e.firstChild)e.removeChild(e.firstChild)}function M_(e,t){const n=Array.isArray(t)?t:[t];n.forEach(t=>{null!=t&&e.appendChild(t)})}function k_(e,t){const n=e.firstChild;return n?L_(n,t):M_(e,t)}function L_(e,t){const n=e.parentNode;if(n){const i=Array.isArray(t)?t:[t];i.forEach(t=>{null!=t&&n.insertBefore(t,e)})}}function P_(e,t){null!=t&&t.appendChild(e)}function F_(e){try{return e instanceof HTMLElement}catch(t){return"object"===typeof e&&1===e.nodeType&&"object"===typeof e.style&&"object"===typeof e.ownerDocument}}function B_(e,t){return e.getAttribute(t)}function $_(e,t){const n=z_(t);n.ns?e.hasAttributeNS(n.ns,n.local)&&e.removeAttributeNS(n.ns,n.local):e.hasAttribute(t)&&e.removeAttribute(t)}function V_(e,t,n){if(null==n)return $_(e,t);const i=z_(t);i.ns&&"string"===typeof n?e.setAttributeNS(i.ns,t,n):"id"===t?e.id=`${n}`:e.setAttribute(t,`${n}`)}function G_(e,t){Object.keys(t).forEach(n=>{V_(e,n,t[n])})}function U_(e,t,n){if(null==t){const t=e.attributes,n={};for(let e=0;e{const i=zm(n);t[i]=e[n]}),t}function H_(e){const t={},n=e.split(";");return n.forEach(e=>{const n=e.trim();if(n){const e=n.split("=");e.length&&(t[e[0].trim()]=e[1]?e[1].trim():"")}}),t}function W_(e,t){return Object.keys(t).forEach(n=>{if("class"===n)e[n]=e[n]?`${e[n]} ${t[n]}`:t[n];else if("style"===n){const i="object"===typeof e[n],r="object"===typeof t[n];let o,a;i&&r?(o=e[n],a=t[n]):i?(o=e[n],a=H_(t[n])):r?(o=H_(e[n]),a=t[n]):(o=H_(e[n]),a=H_(t[n])),e[n]=W_(o,a)}else e[n]=t[n]}),e}function Y_(e,t,n={}){const i=n.offset||0,o=[],a=[];let s,l,c=null;for(let u=0;u=l&&ue.startt>=e.start&&te.start&&n<=e.end||e.start>=t&&e.end{e.start=t?e.end+=n:e.start>=t&&(e.start+=n,e.end+=n)}),e}function X_(e){return e.replace(/ /g," ")}var Z_,J_;let ey;(function(e){function t(e){return null===e||void 0===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e}function n(e){return Array.isArray(e)}function i(e){return!t(e)&&!n(e)}function r(e,i){if(e===i)return!0;if(t(e)||t(i))return!1;const r=n(e),o=n(i);return r===o&&(r&&o?a(e,i):s(e,i))}function o(e){return t(e)?e:n(e)?l(e):c(e)}function a(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n{t[n]=o(e[n])}),t}e.emptyObject=Object.freeze({}),e.emptyArray=Object.freeze([]),e.isPrimitive=t,e.isArray=n,e.isObject=i,e.deepEqual=r,e.deepCopy=o})(Z_||(Z_={})),function(e){function t(e){const t="data:";return e.substr(0,t.length)===t}function n(e,n){if(!e||t(e))return void setTimeout(()=>n(null,e));const i=()=>{n(new Error(`Failed to load image: ${e}`))},r=window.FileReader?e=>{if(200===e.status){const t=new FileReader;t.onload=e=>{const t=e.target.result;n(null,t)},t.onerror=i,t.readAsDataURL(e.response)}else i()}:t=>{const r=e=>{const t=32768,n=[];for(let i=0;ir(o)),o.send()}function i(e){let t=e.replace(/\s/g,"");t=decodeURIComponent(t);const n=t.indexOf(","),i=t.slice(0,n),r=i.split(":")[1].split(";")[0],o=t.slice(n+1);let a;a=i.indexOf("base64")>=0?atob(o):unescape(encodeURIComponent(o));const s=new Uint8Array(a.length);for(let l=0;l]*viewBox\s*=\s*(["']?)(.+?)\1[^>]*>/i);return t&&t[2]?t[2].replace(/\s+/," ").split(" "):null}function s(e){const t=parseFloat(e);return Number.isNaN(t)?null:t}function l(e,t={}){let n=null;const i=t=>{return null==n&&(n=a(e)),null!=n?s(n[t]):null},r=t=>{const n=e.match(t);return n&&n[2]?s(n[2]):null};let o=t.width;if(null==o&&(o=r(/]*width\s*=\s*(["']?)(.+?)\1[^>]*>/i)),null==o&&(o=i(2)),null==o)throw new Error("Can not parse width from svg string");let l=t.height;if(null==l&&(l=r(/]*height\s*=\s*(["']?)(.+?)\1[^>]*>/i)),null==l&&(l=i(3)),null==l)throw new Error("Can not parse height from svg string");const c=encodeURIComponent(e).replace(/'/g,"%27").replace(/"/g,"%22"),u="data:image/svg+xml",d=`${u},${c}`;return d}e.isDataUrl=t,e.imageToDataUri=n,e.dataUriToBlob=i,e.downloadBlob=r,e.downloadDataUri=o,e.svgToDataUrl=l}(J_||(J_={}));const ty={px(e){return e},mm(e){return ey*e},cm(e){return ey*e*10},in(e){return ey*e*25.4},pt(e){return ey*(25.4*e/72)},pc(e){return ey*(25.4*e/6)}};var ny;(function(e){function t(e,t,n){const i=T()("
").css({display:"inline-block",position:"absolute",left:-15e3,top:-15e3,width:e+(n||""),height:t+(n||"")}).appendTo(document.body),r={width:i.width()||0,height:i.height()||0};return i.remove(),r}function n(e,n){null==ey&&(ey=t("1","1","mm").width);const i=n?ty[n]:null;return i?i(e):e}e.measure=t,e.toPx=n})(ny||(ny={}));const iy=function(){let e;const t=window;if(null!=t&&(e=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame,null!=e&&(e=e.bind(t))),null==e){let t=0;e=e=>{const n=(new Date).getTime(),i=Math.max(0,16-(n-t)),r=setTimeout(()=>{e(n+i)},i);return t=n+i,r}}return e}(),ry=function(){let e;const t=window;return null!=t&&(e=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame||t.msCancelAnimationFrame||t.msCancelRequestAnimationFrame||t.oCancelAnimationFrame||t.oCancelRequestAnimationFrame||t.mozCancelAnimationFrame||t.mozCancelRequestAnimationFrame,e&&(e=e.bind(t))),null==e&&(e=clearTimeout),e}(),oy=/-(.)/g;function ay(e){return e.replace(oy,(e,t)=>t.toUpperCase())}const sy={},ly=["Webkit","ms","Moz","O"],cy=document?document.createElement("div").style:{};function uy(e){for(let t=0;tn?n:e:et?t:e}function by(e,t){return t*Math.round(e/t)}function Sy(e,t){return null!=t&&null!=e&&t.x>=e.x&&t.x<=e.x+e.width&&t.y>=e.y&&t.y<=e.y+e.height}function Ey(e,t){const n=e.x-t.x,i=e.y-t.y;return n*n+i*i}(function(e){function t(e){return 180*e/Math.PI%360}function n(e){return e%360+(e<0?360:0)}e.toDeg=t,e.toRad=function(e,t=!1){const n=t?e:e%360;return n*Math.PI/180},e.normalize=n})(my||(my={}));class Cy{valueOf(){return this.toJSON()}toString(){return JSON.stringify(this.toJSON())}}class xy extends Cy{constructor(e,t){super(),this.x=null==e?0:e,this.y=null==t?0:t}get[Symbol.toStringTag](){return xy.toStringTag}round(e=0){return this.x=vy(this.x,e),this.y=vy(this.y,e),this}add(e,t){const n=xy.create(e,t);return this.x+=n.x,this.y+=n.y,this}update(e,t){const n=xy.create(e,t);return this.x=n.x,this.y=n.y,this}translate(e,t){const n=xy.create(e,t);return this.x+=n.x,this.y+=n.y,this}rotate(e,t){const n=xy.rotate(this,e,t);return this.x=n.x,this.y=n.y,this}scale(e,t,n=new xy){const i=xy.create(n);return this.x=i.x+e*(this.x-i.x),this.y=i.y+t*(this.y-i.y),this}closest(e){if(1===e.length)return xy.create(e[0]);let t=null,n=1/0;return e.forEach(e=>{const i=this.squaredDistance(e);ii&&(a=(this.x+this.width-i)/(f.x-i)),f.y>r&&(u=(this.y+this.height-r)/(f.y-r));const g=n.topRight;g.x>i&&(s=(this.x+this.width-i)/(g.x-i)),g.yr&&(h=(this.y+this.height-r)/(m.y-r)),{sx:Math.min(o,a,s,l),sy:Math.min(c,u,d,h)}}getMaxUniformScaleToFit(e,t=this.center){const n=this.getMaxScaleToFit(e,t);return Math.min(n.sx,n.sy)}containsPoint(e,t){return Sy(this,xy.create(e,t))}containsRect(e,t,n,i){const r=wy.create(e,t,n,i),o=this.x,a=this.y,s=this.width,l=this.height,c=r.x,u=r.y,d=r.width,h=r.height;return 0!==s&&0!==l&&0!==d&&0!==h&&(c>=o&&u>=a&&c+d<=o+s&&u+h<=a+l)}intersectsWithLine(e){const t=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],n=[],i=[];return t.forEach(t=>{const r=e.intersectsWithLine(t);null!==r&&i.indexOf(r.toString())<0&&(n.push(r),i.push(r.toString()))}),n.length>0?n:null}intersectsWithLineFromCenterToPoint(e,t){const n=xy.clone(e),i=this.center;let r=null;null!=t&&0!==t&&n.rotate(t,i);const o=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],a=new Ty(i,n);for(let s=o.length-1;s>=0;s-=1){const e=o[s].intersectsWithLine(a);if(null!==e){r=e;break}}return r&&null!=t&&0!==t&&r.rotate(-t,i),r}intersectsWithRect(e,t,n,i){const r=wy.create(e,t,n,i);if(!this.isIntersectWithRect(r))return null;const o=this.origin,a=this.corner,s=r.origin,l=r.corner,c=Math.max(o.x,s.x),u=Math.max(o.y,s.y);return new wy(c,u,Math.min(a.x,l.x)-c,Math.min(a.y,l.y)-u)}isIntersectWithRect(e,t,n,i){const r=wy.create(e,t,n,i),o=this.origin,a=this.corner,s=r.origin,l=r.corner;return!(l.x<=o.x||l.y<=o.y||s.x>=a.x||s.y>=a.y)}normalize(){let e=this.x,t=this.y,n=this.width,i=this.height;return this.width<0&&(e=this.x+this.width,n=-this.width),this.height<0&&(t=this.y+this.height,i=-this.height),this.x=e,this.y=t,this.width=n,this.height=i,this}union(e){const t=wy.clone(e),n=this.origin,i=this.corner,r=t.origin,o=t.corner,a=Math.min(n.x,r.x),s=Math.min(n.y,r.y),l=Math.max(i.x,o.x),c=Math.max(i.y,o.y);return new wy(a,s,l-a,c-s)}getNearestSideToPoint(e){const t=xy.clone(e),n=t.x-this.x,i=this.x+this.width-t.x,r=t.y-this.y,o=this.y+this.height-t.y;let a=n,s="left";return i=1?n.clone():t.lerp(n,e)}pointAtLength(e){const t=this.start,n=this.end;let i=!0;e<0&&(i=!1,e=-e);const r=this.length();if(e>=r)return i?n.clone():t.clone();const o=(i?e:r-e)/r;return this.pointAt(o)}divideAt(e){const t=this.pointAt(e);return[new Ty(this.start,t),new Ty(t,this.end)]}divideAtLength(e){const t=this.pointAtLength(e);return[new Ty(this.start,t),new Ty(t,this.end)]}containsPoint(e){const t=this.start,n=this.end;if(0!==t.cross(e,n))return!1;const i=this.length();return!(new Ty(t,e).length()>i)&&!(new Ty(e,n).length()>i)}intersect(e,t){const n=e.intersectsWithLine(this,t);return n?Array.isArray(n)?n:[n]:null}intersectsWithLine(e){const t=new xy(this.end.x-this.start.x,this.end.y-this.start.y),n=new xy(e.end.x-e.start.x,e.end.y-e.start.y),i=t.x*n.y-t.y*n.x,r=new xy(e.start.x-this.start.x,e.start.y-this.start.y),o=r.x*n.y-r.y*n.x,a=r.x*t.y-r.y*t.x;if(0===i||o*i<0||a*i<0)return null;if(i>0){if(o>i||a>i)return null}else if(o0&&(i-=o,r-=a,s=i*o+r*a,s<0&&(s=0))),s<0?-1:s>0?1:0}equals(e){return null!=e&&this.start.x===e.start.x&&this.start.y===e.start.y&&this.end.x===e.end.x&&this.end.y===e.end.y}clone(){return new Ty(this.start,this.end)}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){return[this.start.serialize(),this.end.serialize()].join(" ")}}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return!(null!=n&&n!==e.toStringTag||!xy.isPoint(i.start)||!xy.isPoint(i.end)||"function"!==typeof i.vector||"function"!==typeof i.bearing||"function"!==typeof i.parallel||"function"!==typeof i.intersect)}e.toStringTag=`X6.Geometry.${e.name}`,e.isLine=t})(Ty||(Ty={}));class Ay extends Cy{constructor(e,t,n,i){super(),this.x=null==e?0:e,this.y=null==t?0:t,this.a=null==n?0:n,this.b=null==i?0:i}get[Symbol.toStringTag](){return Ay.toStringTag}get center(){return new xy(this.x,this.y)}bbox(){return wy.fromEllipse(this)}getCenter(){return this.center}inflate(e,t){const n=e,i=null!=t?t:e;return this.a+=2*n,this.b+=2*i,this}normalizedDistance(e,t){const n=xy.create(e,t),i=n.x-this.x,r=n.y-this.y,o=this.a,a=this.b;return i*i/(o*o)+r*r/(a*a)}containsPoint(e,t){return this.normalizedDistance(e,t)<=1}intersectsWithLine(e){const t=[],n=this.a,i=this.b,r=e.start,o=e.end,a=e.vector(),s=r.diff(new xy(this.x,this.y)),l=new xy(a.x/(n*n),a.y/(i*i)),c=new xy(s.x/(n*n),s.y/(i*i)),u=a.dot(l),d=a.dot(c),h=s.dot(c)-1,p=d*d-u*h;if(p<0)return null;if(p>0){const e=Math.sqrt(p),n=(-d-e)/u,i=(-d+e)/u;if((n<0||n>1)&&(i<0||i>1))return null;n>=0&&n<=1&&t.push(r.lerp(o,n)),i>=0&&i<=1&&t.push(r.lerp(o,i))}else{const e=-d/u;if(!(e>=0&&e<=1))return null;t.push(r.lerp(o,e))}return t}intersectsWithLineFromCenterToPoint(e,t=0){const n=xy.clone(e);t&&n.rotate(t,this.getCenter());const i=n.x-this.x,r=n.y-this.y;let o;if(0===i)return o=this.bbox().getNearestPointToPoint(n),t?o.rotate(-t,this.getCenter()):o;const a=r/i,s=a*a,l=this.a*this.a,c=this.b*this.b;let u=Math.sqrt(1/(1/l+s/c));u=i<0?-u:u;const d=a*u;return o=new xy(this.x+u,this.y+d),t?o.rotate(-t,this.getCenter()):o}tangentTheta(e){const t=xy.clone(e),n=t.x,i=t.y,r=this.a,o=this.b,a=this.bbox().center,s=a.x,l=a.y,c=30,u=n>a.x+r/2,d=na.x?i-c:i+c,h=r*r/(n-s)-r*r*(i-l)*(p-l)/(o*o*(n-s))+s):(h=i>a.y?n+c:n-c,p=o*o/(i-l)-o*o*(n-s)*(h-s)/(r*r*(i-l))+l),new xy(h,p).theta(t)}scale(e,t){return this.a*=e,this.b*=t,this}rotate(e,t){const n=wy.fromEllipse(this);n.rotate(e,t);const i=Ay.fromRect(n);return this.a=i.a,this.b=i.b,this.x=i.x,this.y=i.y,this}translate(e,t){const n=xy.create(e,t);return this.x+=n.x,this.y+=n.y,this}equals(e){return null!=e&&e.x===this.x&&e.y===this.y&&e.a===this.a&&e.b===this.b}clone(){return new Ay(this.x,this.y,this.a,this.b)}toJSON(){return{x:this.x,y:this.y,a:this.a,b:this.b}}serialize(){return`${this.x} ${this.y} ${this.a} ${this.b}`}}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&"number"===typeof i.x&&"number"===typeof i.y&&"number"===typeof i.a&&"number"===typeof i.b&&"function"===typeof i.inflate&&"function"===typeof i.normalizedDistance}e.toStringTag=`X6.Geometry.${e.name}`,e.isEllipse=t})(Ay||(Ay={})),function(e){function t(t,i,r,o){return null==t||"number"===typeof t?new e(t,i,r,o):n(t)}function n(t){return e.isEllipse(t)?t.clone():Array.isArray(t)?new e(t[0],t[1],t[2],t[3]):new e(t.x,t.y,t.a,t.b)}function i(t){const n=t.center;return new e(n.x,n.y,t.width/2,t.height/2)}e.create=t,e.parse=n,e.fromRect=i}(Ay||(Ay={}));class Oy extends Cy{constructor(e){if(super(),null!=e){if("string"===typeof e)return Oy.parse(e);this.points=e.map(e=>xy.create(e))}else this.points=[]}get[Symbol.toStringTag](){return Oy.toStringTag}get start(){return 0===this.points.length?null:this.points[0]}get end(){return 0===this.points.length?null:this.points[this.points.length-1]}scale(e,t,n=new xy){return this.points.forEach(i=>i.scale(e,t,n)),this}rotate(e,t){return this.points.forEach(n=>n.rotate(e,t)),this}translate(e,t){const n=xy.create(e,t);return this.points.forEach(e=>e.translate(n.x,n.y)),this}bbox(){if(0===this.points.length)return new wy;let e=1/0,t=-1/0,n=1/0,i=-1/0;const r=this.points;for(let o=0,a=r.length;ot&&(t=s),li&&(i=l)}return new wy(e,n,t-e,i-n)}closestPoint(e){const t=this.closestPointLength(e);return this.pointAtLength(t)}closestPointLength(e){const t=this.points,n=t.length;if(0===n||1===n)return 0;let i=0,r=0,o=1/0;for(let a=0,s=n-1;ac.y||i>o.y&&i<=c.y){const t=o.x-n>c.x-n?o.x-n:c.x-n;if(t>=0){const r=new xy(n+t,i),o=new Ty(e,r);u.intersectsWithLine(o)&&(s+=1)}}a=l}return s%2===1}intersectsWithLine(e){const t=[];for(let n=0,i=this.points.length-1;n0?t:null}isDifferentiable(){for(let e=0,t=this.points.length-1;e=1)return t[n-1].clone();const i=this.length(),r=i*e;return this.pointAtLength(r)}pointAtLength(e){const t=this.points,n=t.length;if(0===n)return null;if(1===n)return t[0].clone();let i=!0;e<0&&(i=!1,e=-e);let r=0;for(let a=0,s=n-1;a1&&(e=1);const i=this.length(),r=i*e;return this.tangentAtLength(r)}tangentAtLength(e){const t=this.points,n=t.length;if(0===n||1===n)return null;let i,r=!0;e<0&&(r=!1,e=-e);let o=0;for(let a=0,s=n-1;an.x&&(n=e[d]);const i=[];for(let d=0;d{let n=e[2]-t[2];return 0===n&&(n=t[1]-e[1]),n}),i.length>2){const e=i[i.length-1];i.unshift(e)}const r={},o=[],a=e=>`${e[0].toString()}@${e[1]}`;while(0!==i.length){const e=i.pop(),t=e[0];if(r[a(e)])continue;let n=!1;while(!n)if(o.length<2)o.push(e),n=!0;else{const s=o.pop(),l=s[0],c=o.pop(),u=c[0],d=u.cross(l,t);if(d<0)o.push(c),o.push(s),o.push(e),n=!0;else if(0===d){const e=1e-10,n=l.angleBetween(u,t);Math.abs(n-180)2&&o.pop();let l=-1;for(let d=0,h=o.length;d0){const e=o.slice(l),t=o.slice(0,l);c=e.concat(t)}else c=o;const u=[];for(let d=0,h=c.length;de.equals(this.points[t])))}clone(){return new Oy(this.points.map(e=>e.clone()))}toJSON(){return this.points.map(e=>e.toJSON())}serialize(){return this.points.map(e=>`${e.x}, ${e.y}`).join(" ")}}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&"function"===typeof i.toHull&&"function"===typeof i.simplify}e.toStringTag=`X6.Geometry.${e.name}`,e.isPolyline=t})(Oy||(Oy={})),function(e){function t(t){const n=t.trim();if(""===n)return new e;const i=[],r=n.split(/\s*,\s*|\s+/);for(let e=0,o=r.length;e0&&_<1&&p.push(_)}else S=m*m-4*v*g,E=Math.sqrt(S),S<0||(y=(-m+E)/(2*g),y>0&&y<1&&p.push(y),b=(-m-E)/(2*g),b>0&&b<1&&p.push(b));let T=p.length;const A=T;while(T)T-=1,_=p[T],w=1-_,C=w*w*w*r+3*w*w*_*a+3*w*_*_*l+_*_*_*u,f[0][T]=C,x=w*w*w*o+3*w*w*_*s+3*w*_*_*c+_*_*_*d,f[1][T]=x,h[T]={X:C,Y:x};p[A]=0,p[A+1]=1,h[A]={X:r,Y:o},h[A+1]={X:u,Y:d},f[0][A]=r,f[1][A]=o,f[0][A+1]=u,f[1][A+1]=d,p.length=A+2,f[0].length=A+2,f[1].length=A+2,h.length=A+2;const O=Math.min.apply(null,f[0]),R=Math.min.apply(null,f[1]),N=Math.max.apply(null,f[0]),D=Math.max.apply(null,f[1]);return new wy(O,R,N-O,D-R)}closestPoint(e,t={}){return this.pointAtT(this.closestPointT(e,t))}closestPointLength(e,t={}){const n=this.getOptions(t);return this.lengthAtT(this.closestPointT(e,n),n)}closestPointNormalizedLength(e,t={}){const n=this.getOptions(t),i=this.closestPointLength(e,n);if(!i)return 0;const r=this.length(n);return 0===r?0:i/r}closestPointT(e,t={}){const n=this.getPrecision(t),i=this.getDivisions(t),r=Math.pow(10,-n);let o=null,a=0,s=0,l=0,c=0,u=0,d=null;const h=i.length;let p=h>0?1/h:0;i.forEach((t,n)=>{const i=t.start.distance(e),r=t.end.distance(e),h=i+r;(null==d||h=1)return this.divideAtT(1);const n=this.tAt(e,t);return this.divideAtT(n)}divideAtLength(e,t={}){const n=this.tAtLength(e,t);return this.divideAtT(n)}divide(e){return this.divideAtT(e)}divideAtT(e){const t=this.start,n=this.controlPoint1,i=this.controlPoint2,r=this.end;if(e<=0)return[new Ry(t,t,t,t),new Ry(t,n,i,r)];if(e>=1)return[new Ry(t,n,i,r),new Ry(r,r,r,r)];const o=this.getSkeletonPoints(e),a=o.startControlPoint1,s=o.startControlPoint2,l=o.divider,c=o.dividerControlPoint1,u=o.dividerControlPoint2;return[new Ry(t,a,s,l),new Ry(l,c,u,r)]}endpointDistance(){return this.start.distance(this.end)}getSkeletonPoints(e){const t=this.start,n=this.controlPoint1,i=this.controlPoint2,r=this.end;if(e<=0)return{startControlPoint1:t.clone(),startControlPoint2:t.clone(),divider:t.clone(),dividerControlPoint1:n.clone(),dividerControlPoint2:i.clone()};if(e>=1)return{startControlPoint1:n.clone(),startControlPoint2:i.clone(),divider:r.clone(),dividerControlPoint1:r.clone(),dividerControlPoint2:r.clone()};const o=new Ty(t,n).pointAt(e),a=new Ty(n,i).pointAt(e),s=new Ty(i,r).pointAt(e),l=new Ty(o,a).pointAt(e),c=new Ty(a,s).pointAt(e),u=new Ty(l,c).pointAt(e);return{startControlPoint1:o,startControlPoint2:l,divider:u,dividerControlPoint1:c,dividerControlPoint2:s}}getSubdivisions(e={}){const t=this.getPrecision(e);let n=[new Ry(this.start,this.controlPoint1,this.controlPoint2,this.end)];if(0===t)return n;let i=this.endpointDistance();const r=Math.pow(10,-t);let o=0;while(1){o+=1;const e=[];n.forEach(t=>{const n=t.divide(.5);e.push(n[0],n[1])});const t=e.reduce((e,t)=>e+t.endpointDistance(),0),a=0!==t?(t-i)/t:0;if(o>1&&a{return e+t.endpointDistance()},0)}lengthAtT(e,t={}){if(e<=0)return 0;const n=void 0===t.precision?this.PRECISION:t.precision,i=this.divide(e)[0];return i.length({precision:n})}pointAt(e,t={}){if(e<=0)return this.start.clone();if(e>=1)return this.end.clone();const n=this.tAt(e,t);return this.pointAtT(n)}pointAtLength(e,t={}){const n=this.tAtLength(e,t);return this.pointAtT(n)}pointAtT(e){return e<=0?this.start.clone():e>=1?this.end.clone():this.getSkeletonPoints(e).divider}isDifferentiable(){const e=this.start,t=this.controlPoint1,n=this.controlPoint2,i=this.end;return!(e.equals(t)&&t.equals(n)&&n.equals(i))}tangentAt(e,t={}){if(!this.isDifferentiable())return null;e<0?e=0:e>1&&(e=1);const n=this.tAt(e,t);return this.tangentAtT(n)}tangentAtLength(e,t={}){if(!this.isDifferentiable())return null;const n=this.tAtLength(e,t);return this.tangentAtT(n)}tangentAtT(e){if(!this.isDifferentiable())return null;e<0&&(e=0),e>1&&(e=1);const t=this.getSkeletonPoints(e),n=t.startControlPoint2,i=t.dividerControlPoint1,r=t.divider,o=new Ty(n,i);return o.translate(r.x-n.x,r.y-n.y),o}getPrecision(e={}){return null==e.precision?this.PRECISION:e.precision}getDivisions(e={}){if(null!=e.subdivisions)return e.subdivisions;const t=this.getPrecision(e);return this.getSubdivisions({precision:t})}getOptions(e={}){const t=this.getPrecision(e),n=this.getDivisions(e);return{precision:t,subdivisions:n}}tAt(e,t={}){if(e<=0)return 0;if(e>=1)return 1;const n=this.getOptions(t),i=this.length(n),r=i*e;return this.tAtLength(r,n)}tAtLength(e,t={}){let n=!0;e<0&&(n=!1,e=-e);const i=this.getPrecision(t),r=this.getDivisions(t),o={precision:i,subdivisions:r};let a,s,l=null,c=0,u=0,d=0;const h=r.length;let p=h>0?1/h:0;for(let m=0;mn.push(e.end.clone())),n}toPolyline(e={}){return new Oy(this.toPoints(e))}scale(e,t,n){return this.start.scale(e,t,n),this.controlPoint1.scale(e,t,n),this.controlPoint2.scale(e,t,n),this.end.scale(e,t,n),this}rotate(e,t){return this.start.rotate(e,t),this.controlPoint1.rotate(e,t),this.controlPoint2.rotate(e,t),this.end.rotate(e,t),this}translate(e,t){return"number"===typeof e?(this.start.translate(e,t),this.controlPoint1.translate(e,t),this.controlPoint2.translate(e,t),this.end.translate(e,t)):(this.start.translate(e),this.controlPoint1.translate(e),this.controlPoint2.translate(e),this.end.translate(e)),this}equals(e){return null!=e&&this.start.equals(e.start)&&this.controlPoint1.equals(e.controlPoint1)&&this.controlPoint2.equals(e.controlPoint2)&&this.end.equals(e.end)}clone(){return new Ry(this.start,this.controlPoint1,this.controlPoint2,this.end)}toJSON(){return{start:this.start.toJSON(),controlPoint1:this.controlPoint1.toJSON(),controlPoint2:this.controlPoint2.toJSON(),end:this.end.toJSON()}}serialize(){return[this.start.serialize(),this.controlPoint1.serialize(),this.controlPoint2.serialize(),this.end.serialize()].join(" ")}}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return!(null!=n&&n!==e.toStringTag||!xy.isPoint(i.start)||!xy.isPoint(i.controlPoint1)||!xy.isPoint(i.controlPoint2)||!xy.isPoint(i.end)||"function"!==typeof i.toPoints||"function"!==typeof i.toPolyline)}e.toStringTag=`X6.Geometry.${e.name}`,e.isCurve=t})(Ry||(Ry={})),function(e){function t(e){const t=e.length,n=[],i=[];let r=2;n[0]=e[0]/r;for(let o=1;oxy.clone(e)),i=[],r=[],o=n.length-1;if(1===o)return i[0]=new xy((2*n[0].x+n[1].x)/3,(2*n[0].y+n[1].y)/3),r[0]=new xy(2*i[0].x-n[0].x,2*i[0].y-n[0].y),[i,r];const a=[];for(let t=1;t=1?n:n*e}divideAtT(e){if(this.divideAt)return this.divideAt(e);throw new Error("Neither `divideAtT` nor `divideAt` method is implemented.")}pointAtT(e){if(this.pointAt)return this.pointAt(e);throw new Error("Neither `pointAtT` nor `pointAt` method is implemented.")}tangentAtT(e){if(this.tangentAt)return this.tangentAt(e);throw new Error("Neither `tangentAtT` nor `tangentAt` method is implemented.")}}class Dy extends Ny{constructor(e,t){super(),Ty.isLine(e)?this.endPoint=e.end.clone().round(2):this.endPoint=xy.create(e,t).round(2)}get type(){return"L"}get line(){return new Ty(this.start,this.end)}bbox(){return this.line.bbox()}closestPoint(e){return this.line.closestPoint(e)}closestPointLength(e){return this.line.closestPointLength(e)}closestPointNormalizedLength(e){return this.line.closestPointNormalizedLength(e)}closestPointTangent(e){return this.line.closestPointTangent(e)}length(){return this.line.length()}divideAt(e){const t=this.line.divideAt(e);return[new Dy(t[0]),new Dy(t[1])]}divideAtLength(e){const t=this.line.divideAtLength(e);return[new Dy(t[0]),new Dy(t[1])]}getSubdivisions(){return[]}pointAt(e){return this.line.pointAt(e)}pointAtLength(e){return this.line.pointAtLength(e)}tangentAt(e){return this.line.tangentAt(e)}tangentAtLength(e){return this.line.tangentAtLength(e)}isDifferentiable(){return null!=this.previousSegment&&!this.start.equals(this.end)}clone(){return new Dy(this.end)}scale(e,t,n){return this.end.scale(e,t,n),this}rotate(e,t){return this.end.rotate(e,t),this}translate(e,t){return"number"===typeof e?this.end.translate(e,t):this.end.translate(e),this}equals(e){return this.type===e.type&&this.start.equals(e.start)&&this.end.equals(e.end)}toJSON(){return{type:this.type,start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){const e=this.end;return`${this.type} ${e.x} ${e.y}`}}(function(e){function t(...t){const n=t.length,i=t[0];if(Ty.isLine(i))return new e(i);if(xy.isPointLike(i))return 1===n?new e(i):t.map(t=>new e(t));if(2===n)return new e(+t[0],+t[1]);const r=[];for(let o=0;o1&&(u=Math.sqrt(u),n*=u,i*=u);const v=n*n,_=i*i,y=(o===a?-1:1)*Math.sqrt(Math.abs((v*_-v*c*c-_*r*r)/(v*c*c+_*r*r)));g=y*n*c/i+(e+s)/2,m=y*-i*r/n+(t+l)/2,p=Math.asin((t-m)/i),f=Math.asin((l-m)/i),p=ef&&(p-=2*Math.PI),!a&&f>p&&(f-=2*Math.PI)}let _=f-p;if(Math.abs(_)>u){const e=f,t=s,o=l;f=p+u*(a&&f>p?1:-1),s=g+n*Math.cos(f),l=m+i*Math.sin(f),v=Fy(s,l,n,i,r,0,a,t,o,[f,e,g,m])}_=f-p;const y=Math.cos(p),b=Math.sin(p),S=Math.cos(f),E=Math.sin(f),C=Math.tan(_/4),x=4/3*(n*C),w=4/3*(i*C),T=[e,t],A=[e+x*b,t-w*y],O=[s+x*E,l-w*S],R=[s,l];if(A[0]=2*T[0]-A[0],A[1]=2*T[1]-A[1],c)return[A,O,R].concat(v);{v=[A,O,R].concat(v).join().split(",");const e=[],t=v.length;for(let n=0;n{const a=[];let s=t.toLowerCase();n.replace(i,(e,t)=>{return t&&a.push(+t),e}),"m"===s&&a.length>2&&(o.push([t,...a.splice(0,2)]),s="l",t="m"===t?"l":"L");const l=r[s];while(a.length>=l)if(o.push([t,...a.splice(0,l)]),!l)break;return e}),o}function $y(e){const t=By(e);if(!t||!t.length)return[["M",0,0]];let n=0,i=0,r=0,o=0;const a=[];for(let s=0,l=t.length;s7){e[n].shift();const i=e[n];while(i.length)o[n]="A",n+=1,e.splice(n,0,["C"].concat(i.splice(0,6)));e.splice(n,1),s=t.length}}const o=[];let a="",s=t.length;for(let l=0;l0&&(a=o[l-1])),t[l]=i(t[l],n,a),"A"!==o[l]&&"C"===e&&(o[l]="C"),r(t,l);const s=t[l],c=s.length;n.x=s[c-2],n.y=s[c-1],n.bx=parseFloat(s[c-4])||n.x,n.by=parseFloat(s[c-3])||n.y}return t[0][0]&&"M"===t[0][0]||t.unshift(["M",0,0]),t}function Gy(e){return Vy(e).map(e=>e.map(e=>"string"===typeof e?e:vy(e,2))).join(",").split(",").join(" ")}(function(e){function t(...t){const n=t.length,i=t[0];if(Ry.isCurve(i))return new e(i);if(xy.isPointLike(i)){if(3===n)return new e(t[0],t[1],t[2]);const i=[];for(let r=0;r0,l=t||0;if(i&&s){e=e.slice();const t=e[0],n=new xy(a.x+(t.x-a.x)/2,a.y+(t.y-a.y)/2);e.splice(0,0,n)}let c=e[0],u=1;n?o.push("M",c.x,c.y):o.push("L",c.x,c.y);while(u<(i?e.length:e.length-1)){let t=e[jy(u,e.length)],n=c.x-t.x,i=c.y-t.y;if(s&&(0!==n||0!==i)&&(null==r||r.indexOf(u-1)<0)){let r=Math.sqrt(n*n+i*i);const a=n*Math.min(l,r/2)/r,s=i*Math.min(l,r/2)/r,c=t.x+a,d=t.y+s;o.push("L",c,d);let h=e[jy(u+1,e.length)];while(u"string"===typeof e?e:+e.toFixed(3)).join(" ")}function Wy(e,t={}){const n=[];return e&&e.length&&e.forEach(e=>{Array.isArray(e)?n.push({x:e[0],y:e[1]}):n.push({x:e.x,y:e.y})}),Hy(n,t.round,null==t.initialMove||t.initialMove,t.close,t.exclude)}function Yy(e,t,n,i,r=0,o=0,a=0,s,l){if(0===n||0===i)return[];s-=e,l-=t,n=Math.abs(n),i=Math.abs(i);const c=-s/2,u=-l/2,d=Math.cos(r*Math.PI/180),h=Math.sin(r*Math.PI/180),p=d*c+h*u,f=-1*h*c+d*u,g=p*p,m=f*f,v=n*n,_=i*i,y=g/v+m/_;let b;if(y>1)n=Math.sqrt(y)*n,i=Math.sqrt(y)*i,b=0;else{let e=1;o===a&&(e=-1),b=e*Math.sqrt((v*_-v*m-_*g)/(v*m+_*g))}const S=b*n*f/i,E=-1*b*i*p/n,C=d*S-h*E+s/2,x=h*S+d*E+l/2;let w=Math.atan2((f-E)/i,(p-S)/n)-Math.atan2(0,1),T=w>=0?w:2*Math.PI+w;w=Math.atan2((-f-E)/i,(-p-S)/n)-Math.atan2((f-E)/i,(p-S)/n);let A=w>=0?w:2*Math.PI+w;0===a&&A>0?A-=2*Math.PI:0!==a&&A<0&&(A+=2*Math.PI);const O=2*A/Math.PI,R=Math.ceil(O<0?-1*O:O),N=A/R,D=8/3*Math.sin(N/4)*Math.sin(N/4)/Math.sin(N/2),I=d*n,M=d*i,k=h*n,L=h*i;let P=Math.cos(T),F=Math.sin(T),B=-D*(I*F+L*P),$=-D*(k*F-M*P),V=0,G=0;const U=[];for(let z=0;z+e.toFixed(2))}function qy(e,t,n,i,r=0,o=0,a=0,s,l){const c=[],u=Yy(e,t,n,i,r,o,a,s,l);if(null!=u)for(let d=0,h=u.length;d{0===n&&this.appendSegment(Ky.createSegment("M",e.start)),null==t||t.end.equals(e.start)||this.appendSegment(Ky.createSegment("M",e.start)),Ty.isLine(e)?this.appendSegment(Ky.createSegment("L",e.end)):Ry.isCurve(e)&&this.appendSegment(Ky.createSegment("C",e.controlPoint1,e.controlPoint2,e.end)),t=e})}else{const t=e;t.forEach(e=>{e.isSegment&&this.appendSegment(e)})}else null!=e&&(Ty.isLine(e)?(this.appendSegment(Ky.createSegment("M",e.start)),this.appendSegment(Ky.createSegment("L",e.end))):Ry.isCurve(e)?(this.appendSegment(Ky.createSegment("M",e.start)),this.appendSegment(Ky.createSegment("C",e.controlPoint1,e.controlPoint2,e.end))):Oy.isPolyline(e)?e.points&&e.points.length&&e.points.forEach((e,t)=>{const n=0===t?Ky.createSegment("M",e):Ky.createSegment("L",e);this.appendSegment(n)}):e.isSegment&&this.appendSegment(e))}get[Symbol.toStringTag](){return Ky.toStringTag}get start(){const e=this.segments,t=e.length;if(0===t)return null;for(let n=0;n=0;n-=1){const t=e[n];if(t.isVisible)return t.end}return e[t-1].end}moveTo(...e){return this.appendSegment(My.create.call(null,...e))}lineTo(...e){return this.appendSegment(Dy.create.call(null,...e))}curveTo(...e){return this.appendSegment(ky.create.call(null,...e))}arcTo(e,t,n,i,r,o,a){const s=this.end||new xy,l="number"===typeof o?Yy(s.x,s.y,e,t,n,i,r,o,a):Yy(s.x,s.y,e,t,n,i,r,o.x,o.y);if(null!=l)for(let c=0,u=l.length;cn||e<0)throw new Error("Index out of range.");let i,r=null,o=null;if(0!==n&&(e>=1?(r=this.segments[e-1],o=r.nextSegment):(r=null,o=this.segments[0])),Array.isArray(t))for(let a=0,s=t.length;a=t||n<0)throw new Error("Index out of range.");return n}segmentAt(e,t={}){const n=this.segmentIndexAt(e,t);return n?this.getSegment(n):null}segmentAtLength(e,t={}){const n=this.segmentIndexAtLength(e,t);return n?this.getSegment(n):null}segmentIndexAt(e,t={}){if(0===this.segments.length)return null;const n=yy(e,0,1),i=this.getOptions(t),r=this.length(i),o=r*n;return this.segmentIndexAtLength(o,i)}segmentIndexAtLength(e,t={}){const n=this.segments.length;if(0===n)return null;let i=!0;e<0&&(i=!1,e=-e);const r=this.getPrecision(t),o=this.getSubdivisions(t);let a=0,s=null;for(let l=0;l=1)return this.end.clone();const n=this.getOptions(t),i=this.length(n),r=i*e;return this.pointAtLength(r,n)}pointAtLength(e,t={}){if(0===this.segments.length)return null;if(0===e)return this.start.clone();let n=!0;e<0&&(n=!1,e=-e);const i=this.getPrecision(t),r=this.getSubdivisions(t);let o,a=0;for(let l=0,c=this.segments.length;l=n)return t[n-1].pointAtT(1);const r=yy(e.value,0,1);return t[i].pointAtT(r)}divideAt(e,t={}){if(0===this.segments.length)return null;const n=yy(e,0,1),i=this.getOptions(t),r=this.length(i),o=r*n;return this.divideAtLength(o,i)}divideAtLength(e,t={}){if(0===this.segments.length)return null;let n=!0;e<0&&(n=!1,e=-e);const i=this.getPrecision(t),r=this.getSubdivisions(t);let o,a,s,l,c,u=0;for(let b=0,S=this.segments.length;b=n&&(i=n-1,r=1);const o=this.getPrecision(t),a=this.getSubdivisions(t);let s=0;for(let u=0;u=t)return this.segments[t-1].tangentAtT(1);const i=yy(e.value,0,1);return this.segments[n].tangentAtT(i)}getPrecision(e={}){return null==e.precision?this.PRECISION:e.precision}getSubdivisions(e={}){if(null==e.segmentSubdivisions){const t=this.getPrecision(e);return this.getSegmentSubdivisions({precision:t})}return e.segmentSubdivisions}getOptions(e={}){const t=this.getPrecision(e),n=this.getSubdivisions(e);return{precision:t,segmentSubdivisions:n}}toPoints(e={}){const t=this.segments,n=t.length;if(0===n)return null;const i=this.getSubdivisions(e),r=[];let o=[];for(let a=0;a0?t.forEach(e=>o.push(e.start)):o.push(e.start)}else o.length>0&&(o.push(t[a-1].end),r.push(o),o=[])}return o.length>0&&(o.push(this.end),r.push(o)),r}toPolylines(e={}){const t=this.toPoints(e);return t?t.map(e=>new Oy(e)):null}scale(e,t,n){return this.segments.forEach(i=>i.scale(e,t,n)),this}rotate(e,t){return this.segments.forEach(n=>n.rotate(e,t)),this}translate(e,t){return"number"===typeof e?this.segments.forEach(n=>n.translate(e,t)):this.segments.forEach(t=>t.translate(e)),this}clone(){const e=new Ky;return this.segments.forEach(t=>e.appendSegment(t.clone())),e}equals(e){if(null==e)return!1;const t=this.segments,n=e.segments,i=t.length;if(n.length!==i)return!1;for(let r=0;re.toJSON())}serialize(){if(!this.isValid())throw new Error("Invalid path segments.");return this.segments.map(e=>e.serialize()).join(" ")}toString(){return this.serialize()}}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return!(null!=n&&n!==e.toStringTag||!Array.isArray(i.segments)||"function"!==typeof i.moveTo||"function"!==typeof i.lineTo||"function"!==typeof i.curveTo)}e.toStringTag=`X6.Geometry.${e.name}`,e.isPath=t})(Ky||(Ky={})),function(e){function t(t){if(!t)return new e;const i=new e,r=/(?:[a-zA-Z] *)(?:(?:-?\d+(?:\.\d+)?(?:e[-+]?\d+)? *,? *)|(?:-?\.\d+ *,? *))+|(?:[a-zA-Z] *)(?! |\d|-|\.)/g,o=e.normalize(t).match(r);if(null!=o)for(let e=0,a=o.length;e+e),r=n.call(null,e,...t);i.appendSegment(r)}}return i}function n(e,...t){if("M"===e)return My.create.call(null,...t);if("L"===e)return Dy.create.call(null,...t);if("C"===e)return ky.create.call(null,...t);if("z"===e||"Z"===e)return Iy.create();throw new Error(`Invalid path segment type "${e}"`)}e.parse=t,e.createSegment=n}(Ky||(Ky={})),function(e){e.normalize=Gy,e.isValid=zy,e.drawArc=qy,e.drawPoints=Wy,e.arcToCurves=Yy}(Ky||(Ky={}));class Qy{constructor(e,t,n){if(!e)throw new TypeError("Invalid element to create vector");let i;if(Qy.isVector(e))i=e.node;else if("string"===typeof e)if("svg"===e.toLowerCase())i=C_();else if("<"===e[0]){const t=C_(e);i=document.importNode(t.firstChild,!0)}else i=document.createElementNS(__.svg,e);else i=e;this.node=i,t&&this.setAttributes(t),n&&this.append(n)}get[Symbol.toStringTag](){return Qy.toStringTag}get type(){return this.node.nodeName}get id(){return this.node.id}set id(e){this.node.id=e}transform(e,t){return null==e?eS(this.node):(eS(this.node,e,t),this)}translate(e,t=0,n={}){return null==e?tS(this.node):(tS(this.node,e,t,n),this)}rotate(e,t,n,i={}){return null==e?nS(this.node):(nS(this.node,e,t,n,i),this)}scale(e,t){return null==e?iS(this.node):(iS(this.node,e,t),this)}getTransformToElement(e){const t=Qy.toNode(e);return jb(this.node,t)}removeAttribute(e){return $_(this.node,e),this}getAttribute(e){return B_(this.node,e)}setAttribute(e,t){return V_(this.node,e,t),this}setAttributes(e){return G_(this.node,e),this}attr(e,t){return null==e?U_(this.node):"string"===typeof e&&void 0===t?U_(this.node,e):("object"===typeof e?U_(this.node,e):U_(this.node,e,t),this)}svg(){return this.node instanceof SVGSVGElement?this:Qy.create(this.node.ownerSVGElement)}defs(){const e=this.svg()||this,t=e.node.getElementsByTagName("defs")[0];return t?Qy.create(t):Qy.create("defs").appendTo(e)}text(e,t={}){return nb(this.node,e,t),this}tagName(){return w_(this.node)}clone(){return Qy.create(this.node.cloneNode(!0))}remove(){return D_(this.node),this}empty(){return I_(this.node),this}append(e){return M_(this.node,Qy.toNodes(e)),this}appendTo(e){return P_(this.node,Qy.isVector(e)?e.node:e),this}prepend(e){return k_(this.node,Qy.toNodes(e)),this}before(e){return L_(this.node,Qy.toNodes(e)),this}replace(e){return this.node.parentNode&&this.node.parentNode.replaceChild(Qy.toNode(e),this.node),Qy.create(e)}first(){return this.node.firstChild?Qy.create(this.node.firstChild):null}last(){return this.node.lastChild?Qy.create(this.node.lastChild):null}get(e){const t=this.node.childNodes[e];return t?Qy.create(t):null}indexOf(e){const t=Array.prototype.slice.call(this.node.childNodes);return t.indexOf(Qy.toNode(e))}find(e){const t=[],n=A_(this.node,e);if(n)for(let i=0,r=n.length;is&&(s=l)}else i&&u===c&&(o+=i),a=document.createTextNode(o||" "),r&&r>s&&(s=r);e.appendChild(a)}return s&&(l.maxFontSize=s),o?l.lineHeight=o:s&&(l.lineHeight=1.2*s),l}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&i.node instanceof SVGElement&&"function"===typeof i.animate&&"function"===typeof i.sample&&"function"===typeof i.normalizePath&&"function"===typeof i.toPath}function n(t,n,i){return new e(t,n,i)}function i(e){if("<"===e[0]){const t=C_(e),i=[];for(let e=0,r=t.childNodes.length;er(e)):[r(e)]}e.toStringTag=`X6.${e.name}`,e.isVector=t,e.create=n,e.createVectors=i,e.toNode=r,e.toNodes=o})(Qy||(Qy={}));const Jy=/em$/;function eb(e,t){const n=parseFloat(e);return Jy.test(e)?n*t:n}function tb(e,t,n,i){if(!Array.isArray(t))return 0;const r=t.length;if(!r)return 0;let o=t[0];const a=eb(o.maxFontSize,n)||n;let s=0;const l=eb(i,n);for(let d=1;d0&&t.setAttribute("dy",m),(x>0||r)&&t.setAttribute("x",s),t.className.baseVal=e,g.appendChild(t),y+=o.length+1}if(a)if(u)m=tb(o,S,v,p);else if("top"===o)m="0.8em";else{let e;switch(E>0?(e=parseFloat(p)||1,e*=E,Jy.test(p)||(e/=v)):e=0,o){case"middle":m=`${.3-e/2}em`;break;case"bottom":m=`${-e-.3}em`;break;default:break}}else 0===o?m="0em":o?m=o:(m=0,null==e.getAttribute("y")&&e.setAttribute("y",`${_||"0.8em"}`));const C=g.firstChild;C.setAttribute("dy",m),e.appendChild(g)}function ib(e,t,n,i){const r=[],o=[];if(null!=t){const n=e.split(t);if(r.push(...n),"string"===typeof t)for(let e=0,i=n.length-1;e=0&&e.length>1){const t=e.split(n);for(let e=0,r=t.length-1;e""!==e);r.splice(a,1,...i);const s=i.map(()=>"");s.pop(),o.splice(a,0,...s)}}for(let a=0;a0&&to){const e=Math.floor(o/y)-1,t=S[e],n=S[e+1];if(S.splice(e+1),null==t)break;let a=i.ellipsis;if(!a)break;"string"!==typeof a&&(a="…");let s=t;n&&g&&(s+=b+n);let l,d,h=s.length;do{if(d=s[h],l=s.substring(0,h),d?d.match(p)&&(l+=d):l+=v[e],l+=a,u.data=l,c.getComputedTextLength()<=r){S[e]=l;break}h-=1}while(h>=0);break}}}else m[w]=!0,w+=1,S[w]=""}return D_(d?s:l),S.join(h)}const ob=.551784;function ab(e,t,n=NaN){const i=e.getAttribute(t);if(null==i)return n;const r=parseFloat(i);return Number.isNaN(r)?n:r}function sb(e,t=1){const n=e.getTotalLength(),i=[];let r,o=0;while(o`${e.x} ${e.y}`);return`M ${t.join(" L")}`}function hb(e){const t=[],n=e.points;if(n)for(let i=0,r=n.numberOfItems;i=r?o?`M0,${a}A${a},${a} 0 1,1 0,${-a}A${a},${a} 0 1,1 0,${a}M0,${o}A${o},${o} 0 1,0 0,${-o}A${o},${o} 0 1,0 0,${o}Z`:`M0,${a}A${a},${a} 0 1,1 0,${-a}A${a},${a} 0 1,1 0,${a}Z`:o?`M${a*d},${a*h}A${a},${a} 0 ${u},1 ${a*p},${a*f}L${o*p},${o*f}A${o},${o} 0 ${u},0 ${o*d},${o*h}Z`:`M${a*d},${a*h}A${a},${a} 0 ${u},1 ${a*p},${a*f}L0,0`+"Z"}const bb=E_("svg"),Sb=/(\w+)\(([^,)]+),?([^)]+)?\)/gi,Eb=/[ ,]+/,Cb=/^(\w+)\((.*)\)/;function xb(e,t){const n=bb.createSVGPoint();return n.x=e,n.y=t,n}function wb(e){const t=bb.createSVGMatrix();if(null!=e){const n=e,i=t;for(const e in n)i[e]=n[e]}return t}function Tb(e){return null!=e?(e instanceof DOMMatrix||(e=wb(e)),bb.createSVGTransformFromMatrix(e)):bb.createSVGTransform()}function Ab(e){let t=wb();const n=null!=e&&e.match(Sb);if(!n)return t;for(let i=0,r=n.length;i=0){const r=Ab(e),o=Db(r);t=[o.translateX,o.translateY],n=[o.rotation],i=[o.scaleX,o.scaleY];const a=[];0===t[0]&&0===t[1]||a.push(`translate(${t.join(",")})`),1===i[0]&&1===i[1]||a.push(`scale(${i.join(",")})`),0!==n[0]&&a.push(`rotate(${n[0]})`),e=a.join(" ")}else{const o=e.match(/translate\((.*?)\)/);o&&(t=o[1].split(r));const a=e.match(/rotate\((.*?)\)/);a&&(n=a[1].split(r));const s=e.match(/scale\((.*?)\)/);s&&(i=s[1].split(r))}}const r=i&&i[0]?parseFloat(i[0]):1;return{raw:e||"",translation:{tx:t&&t[0]?parseInt(t[0],10):0,ty:t&&t[1]?parseInt(t[1],10):0},rotation:{angle:n&&n[0]?parseInt(n[0],10):0,cx:n&&n[1]?parseInt(n[1],10):void 0,cy:n&&n[2]?parseInt(n[2],10):void 0},scale:{sx:r,sy:i&&i[1]?parseFloat(i[1]):r}}}function Nb(e,t){const n=t.x*e.a+t.y*e.c+0,i=t.x*e.b+t.y*e.d+0;return{x:n,y:i}}function Db(e){const t=Nb(e,{x:0,y:1}),n=Nb(e,{x:1,y:0}),i=180/Math.PI*Math.atan2(t.y,t.x)-90,r=180/Math.PI*Math.atan2(n.y,n.x);return{skewX:i,skewY:r,translateX:e.e,translateY:e.f,scaleX:Math.sqrt(e.a*e.a+e.b*e.b),scaleY:Math.sqrt(e.c*e.c+e.d*e.d),rotation:i}}function Ib(e){let t,n,i,r;return e?(t=null==e.a?1:e.a,r=null==e.d?1:e.d,n=e.b,i=e.c):t=r=1,{sx:n?Math.sqrt(t*t+n*n):t,sy:i?Math.sqrt(i*i+r*r):r}}function Mb(e){let t={x:0,y:1};return e&&(t=Nb(e,t)),{angle:my.normalize(my.toDeg(Math.atan2(t.y,t.x))-90)}}function kb(e){return{tx:e&&e.e||0,ty:e&&e.f||0}}function Lb(e,t){const n=xb(e.x,e.y).matrixTransform(t);return new xy(n.x,n.y)}function Pb(e,t){return new Ty(Lb(e.start,t),Lb(e.end,t))}function Fb(e,t){let n=e instanceof Oy?e.points:e;return Array.isArray(n)||(n=[]),new Oy(n.map(e=>Lb(e,t)))}function Bb(e,t){const n=bb.createSVGPoint();n.x=e.x,n.y=e.y;const i=n.matrixTransform(t);n.x=e.x+e.width,n.y=e.y;const r=n.matrixTransform(t);n.x=e.x+e.width,n.y=e.y+e.height;const o=n.matrixTransform(t);n.x=e.x,n.y=e.y+e.height;const a=n.matrixTransform(t),s=Math.min(i.x,r.x,o.x,a.x),l=Math.max(i.x,r.x,o.x,a.x),c=Math.min(i.y,r.y,o.y,a.y),u=Math.max(i.y,r.y,o.y,a.y);return new wy(s,c,l-s,u-c)}var $b=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const n=t.getAttribute(e),i=n?parseFloat(n):0;return Number.isNaN(i)?0:i};let r,o;switch(n){case"rect":o=new wy(i("x"),i("y"),i("width"),i("height"));break;case"circle":r=i("r"),o=new wy(i("cx")-r,i("cy")-r,2*r,2*r);break;default:break}return o}function zb(e,t){let n=wb();if(v_(t)&&v_(e)){let i=e;const r=[];while(i&&i!==t){const e=i.getAttribute("transform")||null,t=Ab(e);r.push(t),i=i.parentNode}r.reverse().forEach(e=>{n=n.multiply(e)})}return n}function jb(e,t){if(v_(t)&&v_(e)){const n=t.getScreenCTM(),i=e.getScreenCTM();if(n&&i)return n.inverse().multiply(i)}return wb()}function Hb(e,t,n){const i=e instanceof SVGSVGElement?e:e.ownerSVGElement,r=i.createSVGPoint();r.x=t,r.y=n;try{const t=i.getScreenCTM(),n=r.matrixTransform(t.inverse()),o=jb(e,i).inverse();return n.matrixTransform(o)}catch(o){return r}}function Wb(e){const t=t=>{const n=e.getAttribute(t),i=n?parseFloat(n):0;return Number.isNaN(i)?0:i};switch(e instanceof SVGElement&&e.nodeName.toLowerCase()){case"rect":return new wy(t("x"),t("y"),t("width"),t("height"));case"circle":return new Ay(t("cx"),t("cy"),t("r"),t("r"));case"ellipse":return new Ay(t("cx"),t("cy"),t("rx"),t("ry"));case"polyline":{const t=hb(e);return new Oy(t)}case"polygon":{const t=hb(e);return t.length>1&&t.push(t[0]),new Oy(t)}case"path":{let t=e.getAttribute("d");return Ky.isValid(t)||(t=Ky.normalize(t)),Ky.parse(t)}case"line":return new Ty(t("x1"),t("y1"),t("x2"),t("y2"));default:break}return Gb(e)}function Yb(e,t,n){const i=e instanceof SVGSVGElement?e:e.ownerSVGElement;n=n||i;const r=Gb(n),o=r.getCenter();if(!r.intersectsWithLineFromCenterToPoint(t))return null;let a=null;const s=e.tagName.toLowerCase();if("rect"===s){const r=new wy(parseFloat(e.getAttribute("x")||"0"),parseFloat(e.getAttribute("y")||"0"),parseFloat(e.getAttribute("width")||"0"),parseFloat(e.getAttribute("height")||"0")),s=jb(e,n),l=Db(s),c=i.createSVGTransform();c.setRotate(-l.rotation,o.x,o.y);const u=Bb(r,c.matrix.multiply(s));a=wy.create(u).intersectsWithLineFromCenterToPoint(t,l.rotation)}else if("path"===s||"polygon"===s||"polyline"===s||"circle"===s||"ellipse"===s){const i="path"===s?e:vb(e),r=sb(i);let l=1/0,c=[];for(let a=0,s=r.length;ae.refDistance-t.refDistance),c[0]&&(a=xy.create(c[0].sample))}return a}function qb(e,t){return Qb(e,t,"animate")}function Kb(e,t){return Qb(e,t,"animateTransform")}function Qb(e,t,n){const i=E_(n);e.appendChild(i);try{return Xb(i,t)}catch(r){}return()=>{}}function Xb(e,t){const{start:n,complete:i,repeat:r}=t,o=$b(t,["start","complete","repeat"]);U_(e,o),n&&e.addEventListener("beginEvent",n),i&&e.addEventListener("endEvent",i),r&&e.addEventListener("repeatEvent",r);const a=e;return a.beginElement(),()=>a.endElement()}function Zb(e,t,n){const i=m_(n),r=E_("animateMotion"),o=E_("mpath");U_(o,{"xlink:href":`#${i}`}),r.appendChild(o),e.appendChild(r);try{return Xb(r,t)}catch(a){if("fake"===document.documentElement.getAttribute("smiling")){const e=r;e.animators=[];const t=window,n=e.getAttribute("id");n&&(t.id2anim[n]=e);const i=t.getTargets(e);for(let r=0,o=i.length;r{}}function Jb(e){let t=0,n=0,i=0,r=0;if(e){let o=e;while(o)t+=o.offsetLeft,n+=o.offsetTop,o=o.offsetParent,o&&(t+=parseInt(py(o,"borderLeft"),10),n+=parseInt(py(o,"borderTop"),10));i=e.offsetWidth,r=e.offsetHeight}return{left:t,top:n,width:i,height:r}}function eS(e,t,n={}){if(null==t)return Ab(U_(e,"transform"));if(n.absolute)return void e.setAttribute("transform",Ob(t));const i=e.transform,r=Tb(t);i.baseVal.appendItem(r)}function tS(e,t,n=0,i={}){let r=U_(e,"transform");const o=Rb(r);if(null==t)return o.translation;r=o.raw,r=r.replace(/translate\([^)]*\)/g,"").trim();const a=i.absolute?t:o.translation.tx+t,s=i.absolute?n:o.translation.ty+n,l=`translate(${a},${s})`;e.setAttribute("transform",`${l} ${r}`.trim())}function nS(e,t,n,i,r={}){let o=U_(e,"transform");const a=Rb(o);if(null==t)return a.rotation;o=a.raw,o=o.replace(/rotate\([^)]*\)/g,"").trim(),t%=360;const s=r.absolute?t:a.rotation.angle+t,l=null!=n&&null!=i?`,${n},${i}`:"",c=`rotate(${s}${l})`;e.setAttribute("transform",`${o} ${c}`.trim())}function iS(e,t,n){let i=U_(e,"transform");const r=Rb(i);if(null==t)return r.scale;n=null==n?t:n,i=r.raw,i=i.replace(/scale\([^)]*\)/g,"").trim();const o=`scale(${t},${n})`;e.setAttribute("transform",`${i} ${o}`.trim())}function rS(e,t,n,i){const r=xy.create(t),o=xy.create(n);if(!i){const t=e instanceof SVGSVGElement?e:e.ownerSVGElement;i=t}const a=iS(e);e.setAttribute("transform","");const s=Gb(e,{target:i}).scale(a.sx,a.sy),l=Tb();l.setTranslate(-s.x-s.width/2,-s.y-s.height/2);const c=Tb(),u=r.angleBetween(o,r.clone().translate(1,0));u&&c.setRotate(u,0,0);const d=Tb(),h=r.clone().move(o,s.width/2);d.setTranslate(2*r.x-h.x,2*r.y-h.y);const p=jb(e,i),f=Tb();f.setMatrix(d.matrix.multiply(c.matrix.multiply(l.matrix.multiply(p.scale(a.sx,a.sy))))),e.setAttribute("transform",Ob(f.matrix))}class oS{constructor(e,t,n){this.animationFrameId=0,this.deltaX=0,this.deltaY=0,this.eventName=O.isEventSupported("wheel")?"wheel":"mousewheel",this.target=e,this.onWheelCallback=t,this.onWheelGuard=n,this.onWheel=this.onWheel.bind(this),this.didWheel=this.didWheel.bind(this)}enable(){O.SUPPORT_PASSIVE?this.target.addEventListener(this.eventName,this.onWheel,{passive:!1}):T()(this.target).on("mousewheel",this.onWheel)}disable(){O.SUPPORT_PASSIVE?this.target.removeEventListener(this.eventName,this.onWheel):T()(this.target).off("mousewheel")}onWheel(e){if(null!=this.onWheelGuard&&!this.onWheelGuard(e))return;let t;this.deltaX+=e.deltaX,this.deltaY+=e.deltaY,e.preventDefault(),0===this.deltaX&&0===this.deltaY||(e.stopPropagation(),t=!0),!0===t&&0===this.animationFrameId&&(this.animationFrameId=requestAnimationFrame(()=>{this.didWheel(e)}))}didWheel(e){this.animationFrameId=0,this.onWheelCallback(e,this.deltaX,this.deltaY),this.deltaX=0,this.deltaY=0}}const aS=Qy.isVector,sS=Qy.create,lS=Qy.createVectors;function cS(e,t=60){let n=null;return(...i)=>{n&&clearTimeout(n),n=window.setTimeout(()=>{e.apply(this,i)},t)}}function uS(e){let t=null,n=[];const i=()=>{if("static"===getComputedStyle(e).position){const t=e.style;t.position="relative"}const t=document.createElement("object");return t.onload=()=>{t.contentDocument.defaultView.addEventListener("resize",r),r()},t.style.display="block",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.height="100%",t.style.width="100%",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex="-1",t.style.opacity="0",t.setAttribute("tabindex","-1"),t.type="text/html",e.appendChild(t),t.data="about:blank",t},r=cS(()=>{n.forEach(t=>t(e))}),o=e=>{t||(t=i()),-1===n.indexOf(e)&&n.push(e)},a=()=>{t&&t.parentNode&&(t.contentDocument&&t.contentDocument.defaultView.removeEventListener("resize",r),t.parentNode.removeChild(t),t=null,n=[])},s=e=>{const i=n.indexOf(e);-1!==i&&n.splice(i,1),0===n.length&&t&&a()};return{element:e,bind:o,destroy:a,unbind:s}}function dS(e){let t=null,n=[];const i=cS(()=>{n.forEach(t=>{t(e)})}),r=()=>{const t=new ResizeObserver(i);return t.observe(e),i(),t},o=e=>{t||(t=r()),-1===n.indexOf(e)&&n.push(e)},a=()=>{t&&(t.disconnect(),n=[],t=null)},s=e=>{const i=n.indexOf(e);-1!==i&&n.splice(i,1),0===n.length&&t&&a()};return{element:e,bind:o,destroy:a,unbind:s}}const hS="undefined"!==typeof ResizeObserver?dS:uS;var pS,fS;(function(e){const t=new WeakMap;function n(e){let n=t.get(e);return n||(n=hS(e),t.set(e,n),n)}function i(e){e.destroy(),t.delete(e.element)}e.bind=(e,t)=>{const i=n(e);return i.bind(t),()=>i.unbind(t)},e.clear=e=>{const t=n(e);i(t)}})(pS||(pS={})),function(e){const t=[],n=1e3/60,i=[];let r=0;const o=()=>performance.now(),a=e=>e[0],s=e=>1===i.push(e)&&l(),l=(()=>{const e=()=>i.splice(0,i.length).forEach(e=>e());if("undefined"!==typeof MessageChannel){const{port1:t,port2:n}=new MessageChannel;return t.onmessage=e,()=>n.postMessage(null)}return()=>setTimeout(e)})(),c=()=>{r=o()+n;let i=a(t);while(i&&!e.shouldYield()){const{callback:e,data:n}=i;i.callback=null;const r=e&&e(n);r?i.callback=r:t.shift(),i=a(t)}i&&s(c)};e.scheduleTask=(e,n)=>{const i={callback:e,data:n};t.push(i),s(c)},e.shouldYield=()=>{var e,t;return(null===(t=null===(e=navigator)||void 0===e?void 0:e.scheduling)||void 0===t?void 0:t.isInputPending())||o()>=r}}(fS||(fS={}));class gS{constructor(e){this.options=Object.assign({},e),this.data=this.options.data||{},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this)}get names(){return Object.keys(this.data)}register(e,t,n=!1){if("object"===typeof e)return void Object.keys(e).forEach(n=>{this.register(n,e[n],t)});!this.exist(e)||n||O.isApplyingHMR()||this.onDuplicated(e);const i=this.options.process,r=i?s.call(i,this,e,t):t;return this.data[e]=r,r}unregister(e){const t=e?this.data[e]:null;return delete this.data[e],t}get(e){return e?this.data[e]:null}exist(e){return!!e&&null!=this.data[e]}onDuplicated(e){try{throw this.options.onConflict&&s.call(this.options.onConflict,this,e),new Error(`${o.upperFirst(this.options.type)} with name '${e}' already registered.`)}catch(t){throw t}}onNotFound(e,t){throw new Error(this.getSpellingSuggestion(e,t))}getSpellingSuggestion(e,t){const n=this.getSpellingSuggestionForName(e),i=t?`${t} ${o.lowerFirst(this.options.type)}`:this.options.type;return`${o.upperFirst(i)} with name '${e}' does not exist.${n?` Did you mean '${n}'?`:""}`}getSpellingSuggestionForName(e){return o.getSpellingSuggestion(e,Object.keys(this.data),e=>e)}}(function(e){function t(t){return new e(t)}e.create=t})(gS||(gS={}));const mS={xlinkHref:"xlink:href",xlinkShow:"xlink:show",xlinkRole:"xlink:role",xlinkType:"xlink:type",xlinkArcrole:"xlink:arcrole",xlinkTitle:"xlink:title",xlinkActuate:"xlink:actuate",xmlSpace:"xml:space",xmlBase:"xml:base",xmlLang:"xml:lang",preserveAspectRatio:"preserveAspectRatio",requiredExtension:"requiredExtension",requiredFeatures:"requiredFeatures",systemLanguage:"systemLanguage",externalResourcesRequired:"externalResourceRequired"},vS={},_S={position:GS("x","width","origin")},yS={position:GS("y","height","origin")},bS={position:GS("x","width","corner")},SS={position:GS("y","height","corner")},ES={set:US("width","width")},CS={set:US("height","height")},xS={set:US("rx","width")},wS={set:US("ry","height")},TS={set:(e=>{const t=US(e,"width"),n=US(e,"height");return function(e,i){const r=i.refBBox,o=r.height>r.width?t:n;return s.call(o,this,e,i)}})("r")},AS={set(e,{refBBox:t}){let n=parseFloat(e);const i=a.isPercentage(e);i&&(n/=100);const r=Math.sqrt(t.height*t.height+t.width*t.width);let o;return Number.isFinite(n)&&(o=i||n>=0&&n<=1?n*r:Math.max(n+r,0)),{r:o}}},OS={set:US("cx","width")},RS={set:US("cy","height")},NS={set:jS({resetOffset:!0})},DS={set:jS({resetOffset:!1})},IS={set:HS({resetOffset:!0})},MS={set:HS({resetOffset:!1})},kS=TS,LS=NS,PS=IS,FS=_S,BS=yS,$S=ES,VS=CS;function GS(e,t,n){return(i,{refBBox:r})=>{if(null==i)return null;let o=parseFloat(i);const s=a.isPercentage(i);let l;if(s&&(o/=100),Number.isFinite(o)){const i=r[n];l=s||o>0&&o<1?i[e]+r[t]*o:i[e]+o}const c=new xy;return c[e]=l||0,c}}function US(e,t){return function(n,{refBBox:i}){let r=parseFloat(n);const o=a.isPercentage(n);o&&(r/=100);const s={};if(Number.isFinite(r)){const n=o||r>=0&&r<=1?r*i[t]:Math.max(r+i[t],0);s[e]=n}return s}}function zS(e,t){const n="x6-shape",i=t&&t.resetOffset;return function(t,{view:r,elem:o,refBBox:a}){const s=r.$(o);let l=s.data(n);if(!l||l.value!==t){const i=e(t);l={value:t,shape:i,shapeBBox:i.bbox()},s.data(n,l)}const c=l.shape.clone(),u=l.shapeBBox.clone(),d=u.getOrigin(),h=a.getOrigin();u.x=h.x,u.y=h.y;const p=a.getMaxScaleToFit(u,h),f=0===u.width||0===a.width?1:p.sx,g=0===u.height||0===a.height?1:p.sy;return c.scale(f,g,d),i&&c.translate(-d.x,-d.y),c}}function jS(e){function t(e){return Ky.parse(e)}const n=zS(t,e);return(e,t)=>{const i=n(e,t);return{d:i.serialize()}}}function HS(e){const t=zS(e=>new Oy(e),e);return(e,n)=>{const i=t(e,n);return{points:i.serialize()}}}const WS={qualify:r.isPlainObject,set(e,{view:t}){return`url(#${t.graph.defineGradient(e)})`}},YS={qualify:r.isPlainObject,set(e,{view:t}){const n=t.cell,i=Object.assign({},e);if(n.isEdge()&&"linearGradient"===i.type){const e=t,r=e.sourcePoint,o=e.targetPoint;i.id=`gradient-${i.type}-${n.id}`,i.attrs=Object.assign(Object.assign({},i.attrs),{x1:r.x,y1:r.y,x2:o.x,y2:o.y,gradientUnits:"userSpaceOnUse"}),t.graph.defs.remove(i.id)}return`url(#${t.graph.defineGradient(i)})`}},qS={qualify(e,{attrs:t}){return null==t.textWrap||!r.isPlainObject(t.textWrap)},set(e,{view:t,elem:n,attrs:i}){const r="x6-text",o=t.$(n),a=o.data(r),s=e=>{try{return JSON.parse(e)}catch(t){return e}},l={x:i.x,eol:i.eol,annotations:s(i.annotations),textPath:s(i["text-path"]||i.textPath),textVerticalAnchor:i["text-vertical-anchor"]||i.textVerticalAnchor,displayEmpty:"true"===(i["display-empty"]||i.displayEmpty),lineHeight:i["line-height"]||i.lineHeight},u=i["font-size"]||i.fontSize,d=JSON.stringify([e,l]);if(null==a||a!==d){u&&n.setAttribute("font-size",u);const i=l.textPath;if(null!=i&&"object"===typeof i){const e=i.selector;if("string"===typeof e){const n=t.find(e)[0];n instanceof SVGPathElement&&(c.ensureId(n),l.textPath=Object.assign({"xlink:href":`#${n.id}`},i))}}c.text(n,`${e}`,l),o.data(r,d)}}},KS={qualify:r.isPlainObject,set(e,{view:t,elem:n,attrs:i,refBBox:r}){const o=e,l=o.width||0;a.isPercentage(l)?r.width*=parseFloat(l)/100:l<=0?r.width+=l:r.width=l;const u=o.height||0;let d;a.isPercentage(u)?r.height*=parseFloat(u)/100:u<=0?r.height+=u:r.height=u;let h=o.text;null==h&&(h=i.text),d=null!=h?c.breakText(`${h}`,r,{"font-weight":i["font-weight"]||i.fontWeight,"font-size":i["font-size"]||i.fontSize,"font-family":i["font-family"]||i.fontFamily,lineHeight:i.lineHeight},{svgDocument:t.graph.view.svg,ellipsis:o.ellipsis,hyphen:o.hyphen,breakWord:o.breakWord}):"",s.call(qS.set,this,d,{view:t,elem:n,attrs:i,refBBox:r,cell:t.cell})}},QS=(e,{attrs:t})=>{return void 0!==t.text},XS={qualify:QS},ZS={qualify:QS},JS={qualify:QS},eE={qualify:QS},tE={qualify:QS},nE={qualify:QS},iE={qualify(e,{elem:t}){return t instanceof SVGElement},set(e,{view:t,elem:n}){const i="x6-title",r=`${e}`,o=t.$(n),a=o.data(i);if(null==a||a!==r){o.data(i,r);const e=n.firstChild;if(e&&"TITLE"===e.tagName.toUpperCase()){const t=e;t.textContent=r}else{const t=document.createElementNS(n.namespaceURI,"title");t.textContent=r,n.insertBefore(t,e)}}}},rE={offset:sE("x","width","right")},oE={offset:sE("y","height","bottom")},aE={offset(e,{refBBox:t}){return e?{x:-t.x,y:-t.y}:{x:0,y:0}}};function sE(e,t,n){return(i,{refBBox:r})=>{const o=new xy;let s;return s="middle"===i?r[t]/2:i===n?r[t]:"number"===typeof i&&Number.isFinite(i)?i>-1&&i<1?-r[t]*i:-i:a.isPercentage(i)?r[t]*parseFloat(i)/100:0,o[e]=-(r[e]+s),o}}const lE={qualify:r.isPlainObject,set(e,{view:t,elem:n}){t.$(n).css(e)}},cE={set(e,{view:t,elem:n}){t.$(n).html(`${e}`)}},uE={qualify:r.isPlainObject,set(e,{view:t}){return`url(#${t.graph.defineFilter(e)})`}},dE={set(e){return null!=e&&"object"===typeof e&&e.id?e.id:e}};function hE(e,t,n){let i,r;"object"===typeof t?(i=t.x,r=t.y):(i=t,r=n);const o=Ky.parse(e),a=o.bbox();if(a){let e=-a.height/2-a.y,t=-a.width/2-a.x;"number"===typeof i&&(t-=i),"number"===typeof r&&(e-=r),o.translate(t,e)}return o.serialize()}var pE=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{size:t,width:n,height:i,offset:r,open:o}=e,a=pE(e,["size","width","height","offset","open"]);return mE({size:t,width:n,height:i,offset:r},!0===o,!0,void 0,a)},gE=e=>{var{size:t,width:n,height:i,offset:r,factor:o}=e,a=pE(e,["size","width","height","offset","factor"]);return mE({size:t,width:n,height:i,offset:r},!1,!1,o,a)};function mE(e,t,n,i=.75,r={}){const o=e.size||10,s=e.width||o,l=e.height||o,c=new Ky,u={};if(t)c.moveTo(s,0).lineTo(0,l/2).lineTo(s,l),u.fill="none";else{if(c.moveTo(0,l/2),c.lineTo(s,0),!n){const e=a.clamp(i,0,1);c.lineTo(s*e,l/2)}c.lineTo(s,l),c.close()}return Object.assign(Object.assign(Object.assign({},u),r),{tagName:"path",d:hE(c.serialize(),{x:null!=e.offset?e.offset:-s/2})})}var vE=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{size:t,width:n,height:i,offset:r}=e,o=vE(e,["size","width","height","offset"]);const a=t||10,s=n||a,l=i||a,c=new Ky;return c.moveTo(0,l/2).lineTo(s/2,0).lineTo(s,l/2).lineTo(s/2,l).close(),Object.assign(Object.assign({},o),{tagName:"path",d:hE(c.serialize(),null==r?-s/2:r)})};var yE=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{d:t,offsetX:n,offsetY:i}=e,r=yE(e,["d","offsetX","offsetY"]);return Object.assign(Object.assign({},r),{tagName:"path",d:hE(t,n,i)})};var SE=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{size:t,width:n,height:i,offset:r}=e,o=SE(e,["size","width","height","offset"]);const a=t||10,s=n||a,l=i||a,c=new Ky;return c.moveTo(0,0).lineTo(s,l).moveTo(0,l).lineTo(s,0),Object.assign(Object.assign({},o),{tagName:"path",fill:"none",d:hE(c.serialize(),r||-s/2)})};var CE=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{width:t,height:n,offset:i,open:r,flip:o}=e,a=CE(e,["width","height","offset","open","flip"]);let s=n||6;const l=t||10,c=!0===r,u=!0===o,d=Object.assign(Object.assign({},a),{tagName:"path"});u&&(s=-s);const h=new Ky;return h.moveTo(0,s).lineTo(l,0),c?d.fill="none":(h.lineTo(l,s),h.close()),d.d=hE(h.serialize(),{x:i||-l/2,y:s/2}),d};var wE=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{r:t}=e,n=wE(e,["r"]);const i=t||5;return Object.assign(Object.assign({cx:i},n),{tagName:"circle",r:i})},AE=e=>{var{r:t}=e,n=wE(e,["r"]);const i=t||5,r=new Ky;return r.moveTo(i,0).lineTo(i,2*i),r.moveTo(0,i).lineTo(2*i,i),{children:[Object.assign(Object.assign({},TE({r:i})),{fill:"none"}),Object.assign(Object.assign({},n),{tagName:"path",d:hE(r.serialize(),-i)})]}};var OE=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{rx:t,ry:n}=e,i=OE(e,["rx","ry"]);const r=t||5,o=n||5;return Object.assign(Object.assign({cx:r},i),{tagName:"ellipse",rx:r,ry:o})};var NE;(function(e){e.presets=u,e.registry=gS.create({type:"marker"}),e.registry.register(e.presets,!0)})(NE||(NE={})),function(e){e.normalize=hE}(NE||(NE={}));var DE=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r1){const e=Math.ceil(i/2);n.refX="marker-start"===t?e:-e}}return n}const BE=(e,{view:t})=>{return t.cell.isEdge()},$E={qualify:BE,set(e,t){const n=t.view,i=e.stubs||0;let r;if(Number.isFinite(i)&&0!==i){let e;if(i<0){const t=n.getConnectionLength()||0;e=(t+i)/2}else e=i;const t=n.getConnection();if(t){const n=t.divideAtLength(e),i=t.divideAtLength(-e);n&&i&&(r=`${n[0].serialize()} ${i[1].serialize()}`)}}return{d:r||n.getConnectionPathData()}}},VE={qualify:BE,set:WE("getTangentAtLength",{rotate:!0})},GE={qualify:BE,set:WE("getTangentAtLength",{rotate:!1})},UE={qualify:BE,set:WE("getTangentAtRatio",{rotate:!0})},zE={qualify:BE,set:WE("getTangentAtRatio",{rotate:!1})},jE=VE,HE=UE;function WE(e,t){const n={x:1,y:0};return(i,r)=>{let o,a;const s=r.view,l=s[e](Number(i));return l?(a=t.rotate?l.vector().vectorAngle(n):0,o=l.start):(o=s.path.start,a=0),0===a?{transform:`translate(${o.x},${o.y}')`}:{transform:`translate(${o.x},${o.y}') rotate(${a})`}}}var YE;(function(e){function t(e,t,n){if(null!=e){if("string"===typeof e)return!0;if("function"!==typeof e.qualify||s.call(e.qualify,this,t,n))return!0}return!1}e.isValidDefinition=t})(YE||(YE={})),function(e){e.presets=Object.assign(Object.assign({},mS),d),e.registry=gS.create({type:"attribute definition"}),e.registry.register(e.presets,!0)}(YE||(YE={}));const qE={color:"#aaaaaa",thickness:1,markup:"rect",update(e,t){const n=t.thickness*t.sx,i=t.thickness*t.sy;c.attr(e,{width:n,height:i,rx:n,ry:i,fill:t.color})}},KE={color:"#aaaaaa",thickness:1,markup:"rect",update(e,t){const n=t.sx<=1?t.thickness*t.sx:t.thickness;c.attr(e,{width:n,height:n,rx:n,ry:n,fill:t.color})}},QE={color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(e,t){let n;const i=t.width,r=t.height,o=t.thickness;n=i-o>=0&&r-o>=0?["M",i,0,"H0 M0 0 V0",r].join(" "):"M 0 0 0 0",c.attr(e,{d:n,stroke:t.color,"stroke-width":t.thickness})}},XE=[{color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(e,t){let n;const i=t.width,r=t.height,o=t.thickness;n=i-o>=0&&r-o>=0?["M",i,0,"H0 M0 0 V0",r].join(" "):"M 0 0 0 0",c.attr(e,{d:n,stroke:t.color,"stroke-width":t.thickness})}},{color:"rgba(224,224,224,0.2)",thickness:3,factor:4,markup:"path",update(e,t){let n;const i=t.factor||1,r=t.width*i,o=t.height*i,a=t.thickness;n=r-a>=0&&o-a>=0?["M",r,0,"H0 M0 0 V0",o].join(" "):"M 0 0 0 0",t.width=r,t.height=o,c.attr(e,{d:n,stroke:t.color,"stroke-width":t.thickness})}}];class ZE{constructor(){this.patterns={},this.root=Qy.create(c.createSvgDocument(),{width:"100%",height:"100%"},[c.createSvgElement("defs")]).node}add(e,t){const n=this.root.childNodes[0];n&&n.appendChild(t),this.patterns[e]=t,Qy.create("rect",{width:"100%",height:"100%",fill:`url(#${e})`}).appendTo(this.root)}get(e){return this.patterns[e]}has(e){return null!=this.patterns[e]}}function JE(e,t){return null!=e?e:t}function eC(e,t){return null!=e&&Number.isFinite(e)?e:t}function tC(e={}){const t=JE(e.color,"blue"),n=eC(e.width,1),i=eC(e.margin,2),r=eC(e.opacity,1),o=i,a=i+n;return`\n \n \n \n \n \n \n \n \n \n \n \n `.trim()}function nC(e={}){const t=JE(e.color,"red"),n=eC(e.blur,0),i=eC(e.width,1),r=eC(e.opacity,1);return`\n \n \n \n \n \n \n \n `.trim()}function iC(e={}){const t=eC(e.x,2),n=null!=e.y&&Number.isFinite(e.y)?[t,e.y]:t;return`\n \n \n \n `.trim()}function rC(e={}){const t=eC(e.dx,0),n=eC(e.dy,0),i=JE(e.color,"black"),r=eC(e.blur,4),o=eC(e.opacity,1);return"SVGFEDropShadowElement"in window?`\n \n `.trim():`\n \n \n \n \n \n \n \n \n \n \n \n `.trim()}function oC(e={}){const t=eC(e.amount,1),n=.2126+.7874*(1-t),i=.7152-.7152*(1-t),r=.0722-.0722*(1-t),o=.2126-.2126*(1-t),a=.7152+.2848*(1-t),s=.0722-.0722*(1-t),l=.2126-.2126*(1-t),c=.0722+.9278*(1-t);return`\n \n \n \n `.trim()}function aC(e={}){const t=eC(e.amount,1),n=.393+.607*(1-t),i=.769-.769*(1-t),r=.189-.189*(1-t),o=.349-.349*(1-t),a=.686+.314*(1-t),s=.168-.168*(1-t),l=.272-.272*(1-t),c=.534-.534*(1-t),u=.131+.869*(1-t);return`\n \n \n \n `.trim()}function sC(e={}){const t=eC(e.amount,1);return`\n \n \n \n `.trim()}function lC(e={}){const t=eC(e.angle,0);return`\n \n \n \n `.trim()}function cC(e={}){const t=eC(e.amount,1),n=1-t;return`\n \n \n \n \n \n \n \n `.trim()}function uC(e={}){const t=eC(e.amount,1);return`\n \n \n \n \n \n \n \n `.trim()}function dC(e={}){const t=eC(e.amount,1),n=.5-t/2;return`\n \n \n \n \n \n \n \n `.trim()}var hC;(function(e){e.presets=h,e.registry=gS.create({type:"grid"}),e.registry.register(e.presets,!0)})(ZE||(ZE={})),function(e){e.presets=p,e.registry=gS.create({type:"filter"}),e.registry.register(e.presets,!0)}(hC||(hC={}));const pC=function(e){const t=document.createElement("canvas"),n=e.width,i=e.height;t.width=2*n,t.height=i;const r=t.getContext("2d");return r.drawImage(e,0,0,n,i),r.translate(2*n,0),r.scale(-1,1),r.drawImage(e,0,0,n,i),t},fC=function(e){const t=document.createElement("canvas"),n=e.width,i=e.height;t.width=n,t.height=2*i;const r=t.getContext("2d");return r.drawImage(e,0,0,n,i),r.translate(0,2*i),r.scale(1,-1),r.drawImage(e,0,0,n,i),t},gC=function(e){const t=document.createElement("canvas"),n=e.width,i=e.height;t.width=2*n,t.height=2*i;const r=t.getContext("2d");return r.drawImage(e,0,0,n,i),r.setTransform(-1,0,0,-1,t.width,t.height),r.drawImage(e,0,0,n,i),r.setTransform(-1,0,0,1,t.width,0),r.drawImage(e,0,0,n,i),r.setTransform(1,0,0,-1,0,t.height),r.drawImage(e,0,0,n,i),t},mC=function(e,t){const n=e.width,i=e.height,r=document.createElement("canvas");r.width=3*n,r.height=3*i;const o=r.getContext("2d"),a=null!=t.angle?-t.angle:-20,s=my.toRad(a),l=r.width/4,c=r.height/4;for(let u=0;u<4;u+=1)for(let t=0;t<4;t+=1)(u+t)%2>0&&(o.setTransform(1,0,0,1,(2*u-1)*l,(2*t-1)*c),o.rotate(s),o.drawImage(e,-n/2,-i/2,n,i));return r};var vC;(function(e){e.presets=Object.assign({},f),e.presets["flip-x"]=pC,e.presets["flip-y"]=fC,e.presets["flip-xy"]=gC,e.registry=gS.create({type:"background pattern"}),e.registry.register(e.presets,!0)})(vC||(vC={}));const _C={prefixCls:"x6",autoInsertCSS:!0,useCSSSelector:!0,trackable:!1,trackInfo:{},track(e){_C.trackable=e}};var yC;(function(e){function t(e){return`${_C.prefixCls}-${e}`}e.snapToGrid=by,e.normalizeMarker=hE,e.prefix=t})(yC||(yC={})),function(e){function t(e,t,n,i=[]){const r="function"===typeof t.children?t.children(e):e[t.children||"children"];return n||(n=t.createNode(e),i.push(n)),Array.isArray(r)&&r.forEach(e=>{const r=t.createNode(e),o=t.createEdge(n,r);i.push(r,o),this.makeTree(e,t,r,i)}),i}e.makeTree=t}(yC||(yC={}));const bC="1.25.0",SC=yC.prefix("highlighted"),EC={highlight(e,t,n){const i=n&&n.className||SC;c.addClass(t,i)},unhighlight(e,t,n){const i=n&&n.className||SC;c.removeClass(t,i)}},CC=yC.prefix("highlight-opacity"),xC={highlight(e,t){c.addClass(t,CC)},unhighlight(e,t){c.removeClass(t,CC)}},wC={padding:3,rx:0,ry:0,attrs:{"stroke-width":3,stroke:"#FEB663"}},TC={highlight(e,t,n){const i=AC.getHighlighterId(t,n);if(AC.hasCache(i))return;n=r.defaultsDeep({},n,wC);const o=Qy.create(t);let a,s;try{a=o.toPathData()}catch(h){s=o.bbox(!0),a=c.rectToPathData(Object.assign(Object.assign({},n),s))}const l=c.createSvgElement("path");if(c.attr(l,Object.assign({d:a,"pointer-events":"none","vector-effect":"non-scaling-stroke",fill:"none"},n.attrs?c.kebablizeAttrs(n.attrs):null)),e.isEdgeElement(t))c.attr(l,"d",e.getConnectionPathData());else{let t=o.getTransformToElement(e.container);const i=n.padding;if(i){null==s&&(s=o.bbox(!0));const e=s.x+s.width/2,n=s.y+s.height/2;s=c.transformRectangle(s,t);const r=Math.max(s.width,1),a=Math.max(s.height,1),l=(r+i)/r,u=(a+i)/a,d=c.createSVGMatrix({a:l,b:0,c:0,d:u,e:e-l*e,f:n-u*n});t=t.multiply(d)}c.transform(l,t)}c.addClass(l,yC.prefix("highlight-stroke"));const u=e.cell,d=()=>AC.removeHighlighter(i);u.on("removed",d),u.model&&u.model.on("reseted",d),e.container.appendChild(l),AC.setCache(i,l)},unhighlight(e,t,n){AC.removeHighlighter(AC.getHighlighterId(t,n))}};var AC,OC;function RC(e,t={}){return new xy(a.normalizePercentage(t.x,e.width),a.normalizePercentage(t.y,e.height))}function NC(e,t,n){return Object.assign({angle:t,position:e.toJSON()},n)}(function(e){function t(e,t){return c.ensureId(e),e.id+JSON.stringify(t)}e.getHighlighterId=t;const n={};function i(e,t){n[e]=t}function r(e){return null!=n[e]}function o(e){const t=n[e];t&&(c.remove(t),delete n[e])}e.setCache=i,e.hasCache=r,e.removeHighlighter=o})(AC||(AC={})),function(e){function t(e,t){if("function"!==typeof t.highlight)throw new Error(`Highlighter '${e}' is missing required \`highlight()\` method`);if("function"!==typeof t.unhighlight)throw new Error(`Highlighter '${e}' is missing required \`unhighlight()\` method`)}e.check=t}(OC||(OC={})),function(e){e.presets=g,e.registry=gS.create({type:"highlighter"}),e.registry.register(e.presets,!0)}(OC||(OC={}));const DC=(e,t)=>{return e.map(({x:e,y:n,angle:i})=>NC(RC(t,{x:e,y:n}),i||0))},IC=(e,t,n)=>{const i=n.start||0,r=n.step||20;return kC(e,t,i,(e,t)=>(e+.5-t/2)*r)},MC=(e,t,n)=>{const i=n.start||0,r=n.step||360/e.length;return kC(e,t,i,e=>{return e*r})};function kC(e,t,n,i){const r=t.getCenter(),o=t.getTopCenter(),a=t.width/t.height,s=Ay.fromRect(t),l=e.length;return e.map((e,t)=>{const c=n+i(t,l),u=o.clone().rotate(-c,r).scale(a,1,r),d=e.compensateRotate?-s.tangentTheta(u):0;return(e.dx||e.dy)&&u.translate(e.dx||0,e.dy||0),e.dr&&u.move(r,e.dr),NC(u.round(),d,e)})}var LC=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const i=RC(t,n.start||t.getOrigin()),r=RC(t,n.end||t.getCorner());return GC(e,i,r,n)},FC=(e,t,n)=>{return GC(e,t.getTopLeft(),t.getBottomLeft(),n)},BC=(e,t,n)=>{return GC(e,t.getTopRight(),t.getBottomRight(),n)},$C=(e,t,n)=>{return GC(e,t.getTopLeft(),t.getTopRight(),n)},VC=(e,t,n)=>{return GC(e,t.getBottomLeft(),t.getBottomRight(),n)};function GC(e,t,n,i){const r=new Ty(t,n),o=e.length;return e.map((e,t)=>{var{strict:n}=e,a=LC(e,["strict"]);const s=n||i.strict?(t+1)/(o+1):(t+.5)/o,l=r.pointAt(s);return(a.dx||a.dy)&&l.translate(a.dx||0,a.dy||0),NC(l.round(),0,a)})}var UC;(function(e){e.presets=m,e.registry=gS.create({type:"port layout"}),e.registry.register(e.presets,!0)})(UC||(UC={}));const zC={position:{x:0,y:0},angle:0,attrs:{".":{y:"0","text-anchor":"start"}}};function jC(e,t){const{x:n,y:i,angle:o,attrs:a}=t||{};return r.defaultsDeep({},{angle:o,attrs:a,position:{x:n,y:i}},e,zC)}const HC=(e,t,n)=>jC({position:t.getTopLeft()},n),WC=(e,t,n)=>jC({position:{x:-15,y:0},attrs:{".":{y:".3em","text-anchor":"end"}}},n),YC=(e,t,n)=>jC({position:{x:15,y:0},attrs:{".":{y:".3em","text-anchor":"start"}}},n),qC=(e,t,n)=>jC({position:{x:0,y:-15},attrs:{".":{"text-anchor":"middle"}}},n),KC=(e,t,n)=>jC({position:{x:0,y:15},attrs:{".":{y:".6em","text-anchor":"middle"}}},n),QC=(e,t,n)=>ex(e,t,!1,n),XC=(e,t,n)=>ex(e,t,!0,n),ZC=(e,t,n)=>tx(e,t,!1,n),JC=(e,t,n)=>tx(e,t,!0,n);function ex(e,t,n,i){const r=null!=i.offset?i.offset:15,o=t.getCenter().theta(e),a=nx(t);let s,l,c,u,d=0;return oa[2]?(s=".3em",l=r,c=0,u="start"):oa[2]?(s=".3em",l=-r,c=0,u="end"):oox(e.diff(t.getCenter()),!1,n),rx=(e,t,n)=>ox(e.diff(t.getCenter()),!0,n);function ox(e,t,n){const i=null!=n.offset?n.offset:20,r=new xy(0,0),o=-e.theta(r),a=e.clone().move(r,i).diff(e).round();let s,l=".3em",c=o;return(o+90)%180===0?(s=t?"end":"middle",t||-270!==o||(l="0em")):o>-270&&o<-90?(s="start",c=o-180):s="end",jC({position:a.round().toJSON(),angle:t?c:0,attrs:{".":{y:l,"text-anchor":s}}},n)}var ax,sx;(function(e){e.presets=v,e.registry=gS.create({type:"port label layout"}),e.registry.register(e.presets,!0)})(ax||(ax={}));class lx{constructor(e,t,n,i){return null==e?this.set(255,255,255,1):"number"===typeof e?this.set(e,t,n,i):"string"===typeof e?lx.fromString(e)||this:Array.isArray(e)?this.set(e):void this.set(e.r,e.g,e.b,null==e.a?1:e.a)}blend(e,t,n){this.set(e.r+(t.r-e.r)*n,e.g+(t.g-e.g)*n,e.b+(t.b-e.b)*n,e.a+(t.a-e.a)*n)}lighten(e){const t=lx.lighten(this.toArray(),e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}darken(e){this.lighten(-e)}set(e,t,n,i){const r=Array.isArray(e)?e[0]:e,o=Array.isArray(e)?e[1]:t,s=Array.isArray(e)?e[2]:n,l=Array.isArray(e)?e[3]:i;return this.r=Math.round(a.clamp(r,0,255)),this.g=Math.round(a.clamp(o,0,255)),this.b=Math.round(a.clamp(s,0,255)),this.a=null==l?1:a.clamp(l,0,1),this}toHex(){const e=["r","g","b"].map(e=>{const t=this[e].toString(16);return t.length<2?`0${t}`:t});return`#${e.join("")}`}toRGBA(){return this.toArray()}toHSLA(){return lx.rgba2hsla(this.r,this.g,this.b,this.a)}toCSS(e){const t=`${this.r},${this.g},${this.b},`;return e?`rgb(${t})`:`rgba(${t},${this.a})`}toGrey(){return lx.makeGrey(Math.round((this.r+this.g+this.b)/3),this.a)}toArray(){return[this.r,this.g,this.b,this.a]}toString(){return this.toCSS()}}(function(e){function t(t){return new e(t)}function n(t){return new e([...g(t),1])}function i(t){const n=t.toLowerCase().match(/^rgba?\(([\s.,0-9]+)\)/);if(n){const t=n[1].split(/\s*,\s*/).map(e=>parseInt(e,10));return new e(t)}return null}function r(e,t,n){n<0&&++n,n>1&&--n;const i=6*n;return i<1?e+(t-e)*i:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function o(t){const n=t.toLowerCase().match(/^hsla?\(([\s.,0-9]+)\)/);if(n){const t=n[2].split(/\s*,\s*/),i=(parseFloat(t[0])%360+360)%360/360,r=parseFloat(t[1])/100,o=parseFloat(t[2])/100,a=null==t[3]?1:parseInt(t[3],10);return new e(u(i,r,o,a))}return null}function s(t){if(t.startsWith("#"))return n(t);if(t.startsWith("rgb"))return i(t);const r=e.named[t];return r?n(r):o(t)}function l(t,n){return e.fromArray([t,t,t,n])}function c(e,t,n,i){const r=Array.isArray(e)?e[0]:e,o=Array.isArray(e)?e[1]:t,a=Array.isArray(e)?e[2]:n,s=Array.isArray(e)?e[3]:i,l=Math.max(r,o,a),c=Math.min(r,o,a),u=(l+c)/2;let d=0,h=0;if(c!==l){const e=l-c;switch(h=u>.5?e/(2-l-c):e/(l+c),l){case r:d=(o-a)/e+(o186?"#000000":"#ffffff":`${n?"#":""}${m(255-i,255-r,255-o)}`}const n=e[0],i=e[1],r=e[2],o=e[3];return t?.299*n+.587*i+.114*r>186?[0,0,0,o]:[255,255,255,o]:[255-n,255-i,255-r,o]}function g(e){const t=0===e.indexOf("#")?e:`#${e}`;let n=Number(`0x${t.substr(1)}`);if(4!==t.length&&7!==t.length||Number.isNaN(n))throw new Error("Invalid hex color.");const i=4===t.length?4:8,r=(1<{const e=n&r;return n>>=i,4===i?17*e:e});return[o[2],o[1],o[0]]}function m(e,t,n){const i=e=>e.length<2?`0${e}`:e;return`${i(e.toString(16))}${i(t.toString(16))}${i(n.toString(16))}`}function v(e,t){return y(e,t)}function _(e,t){return y(e,-t)}function y(e,t){if("string"===typeof e){const n="#"===e[0],i=parseInt(n?e.substr(1):e,16),r=a.clamp((i>>16)+t,0,255),o=a.clamp((i>>8&255)+t,0,255),s=a.clamp((255&i)+t,0,255);return`${n?"#":""}${(s|o<<8|r<<16).toString(16)}`}const n=m(e[0],e[1],e[2]),i=g(y(n,t));return[i[0],i[1],i[2],e[3]]}e.fromArray=t,e.fromHex=n,e.fromRGBA=i,e.fromHSLA=o,e.fromString=s,e.makeGrey=l,e.rgba2hsla=c,e.hsla2rgba=u,e.random=d,e.randomHex=h,e.randomRGBA=p,e.invert=f,e.lighten=v,e.darken=_})(lx||(lx={})),function(e){e.named={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",burntsienna:"#ea7e5d",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}}(lx||(lx={}));class cx{constructor(){this.listeners={}}on(e,t,n){if(null==t)return this;this.listeners[e]||(this.listeners[e]=[]);const i=this.listeners[e];return i.push(t,n),this}once(e,t,n){const i=(...r)=>{return this.off(e,i),sx.call([t,n],r)};return this.on(e,i,this)}off(e,t,n){if(!(e||t||n))return this.listeners={},this;const i=this.listeners,r=e?[e]:Object.keys(i);return r.forEach(e=>{const r=i[e];if(r)if(t||n)for(let i=r.length-2;i>=0;i-=2)t&&r[i]!==t||n&&r[i+1]!==n||r.splice(i,2);else delete i[e]}),this}trigger(e,...t){let n=!0;if("*"!==e){const i=this.listeners[e];null!=i&&(n=sx.call([...i],t))}const i=this.listeners["*"];return null!=i?s.toAsyncBoolean([n,sx.call([...i],[e,...t])]):n}emit(e,...t){return this.trigger(e,...t)}}(function(e){function t(e,t){const n=[];for(let i=0;i{const i=n.value,r=e.__proto__;n.value=function(){this.disposed||(i.call(this),r.dispose.call(this))}}}e.dispose=t})(ux||(ux={}));class dx{constructor(){this.isDisposed=!1,this.items=new Set}get disposed(){return this.isDisposed}dispose(){this.isDisposed||(this.isDisposed=!0,this.items.forEach(e=>{e.dispose()}),this.items.clear())}contains(e){return this.items.has(e)}add(e){this.items.add(e)}remove(e){this.items.delete(e)}clear(){this.items.clear()}}(function(e){function t(t){const n=new e;return t.forEach(e=>{n.add(e)}),n}e.from=t})(dx||(dx={}));class hx extends cx{}(function(e){e.dispose=ux.dispose})(hx||(hx={})),r.applyMixins(hx,ux);class px extends hx{get disabled(){return!0===this._disabled}enable(){delete this._disabled}disable(){this._disabled=!0}}var fx,gx,mx,vx,_x,yx=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class bx extends ux{constructor(){super(),this.clear()}clear(){this.map=new WeakMap,this.arr=[]}has(e){return this.map.has(e)}get(e){return this.map.get(e)}set(e,t){this.map.set(e,t),this.arr.push(e)}delete(e){const t=this.arr.indexOf(e);t>=0&&this.arr.splice(t,1);const n=this.map.get(e);return this.map.delete(e),n}each(e){this.arr.forEach(t=>{const n=this.map.get(t);e(n,t)})}dispose(){this.clear()}}yx([ux.dispose()],bx.prototype,"dispose",null);class Sx{constructor(e={}){this.comparator=e.comparator||Sx.defaultComparator,this.index={},this.data=e.data||[],this.heapify()}isEmpty(){return 0===this.data.length}insert(e,t,n){const i={priority:e,value:t},r=this.data.length-1;return n&&(i.id=n,this.index[n]=r),this.data.push(i),this.bubbleUp(r),this}peek(){return this.data[0]?this.data[0].value:null}peekPriority(){return this.data[0]?this.data[0].priority:null}updatePriority(e,t){const n=this.index[e];if("undefined"===typeof n)throw new Error(`Node with id '${e}' was not found in the heap.`);const i=this.data,r=i[n].priority,o=this.comparator(t,r);o<0?(i[n].priority=t,this.bubbleUp(n)):o>0&&(i[n].priority=t,this.bubbleDown(n))}remove(){const e=this.data,t=e[0],n=e.pop();return delete this.index[e.length],e.length>0&&(e[0]=n,n.id&&(this.index[n.id]=0),this.bubbleDown(0)),t?t.value:null}heapify(){for(let e=0;e0){if(i=r-1>>>1,!(this.comparator(t[r].priority,t[i].priority)<0))break;{n=t[i],t[i]=t[r];let e=t[r].id;null!=e&&(this.index[e]=i),t[r]=n,e=t[r].id,null!=e&&(this.index[e]=r),r=i}}}bubbleDown(e){const t=this.data,n=t.length-1;let i=e;while(1){const e=1+(i<<1),r=e+1;let o=i;if(e<=n&&this.comparator(t[e].priority,t[o].priority)<0&&(o=e),r<=n&&this.comparator(t[r].priority,t[o].priority)<0&&(o=r),o===i)break;{const e=t[o];t[o]=t[i];let n=t[i].id;null!=n&&(this.index[n]=o),t[i]=e,n=t[i].id,null!=n&&(this.index[n]=i),i=o}}}}(function(e){e.defaultComparator=(e,t)=>e-t})(Sx||(Sx={})),function(e){function t(e,t,n=((e,t)=>1)){const i={},r={},o={},a=new Sx;i[t]=0,Object.keys(e).forEach(e=>{e!==t&&(i[e]=1/0),a.insert(i[e],e,e)});while(!a.isEmpty()){const t=a.remove();o[t]=!0;const s=e[t]||[];for(let e=0;ee,e.quad=e=>e*e,e.cubic=e=>e*e*e,e.inout=e=>{if(e<=0)return 0;if(e>=1)return 1;const t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)},e.exponential=e=>{return Math.pow(2,10*(e-1))},e.bounce=e=>{for(let t=0,n=1;1;t+=n,n/=2)if(e>=(7-4*t)/11){const i=(11-6*t-11*e)/4;return-i*i+n*n}}}(gx||(gx={})),function(e){e.decorators={reverse(e){return t=>1-e(1-t)},reflect(e){return t=>.5*(t<.5?e(2*t):2-e(2-2*t))},clamp(e,t=0,n=1){return i=>{const r=e(i);return rn?n:r}},back(e=1.70158){return t=>t*t*((e+1)*t-e)},elastic(e=1.5){return t=>Math.pow(2,10*(t-1))*Math.cos(20*Math.PI*e/3*t)}}}(gx||(gx={})),function(e){function t(e){return-1*Math.cos(e*(Math.PI/2))+1}function n(e){return Math.sin(e*(Math.PI/2))}function i(e){return-.5*(Math.cos(Math.PI*e)-1)}function r(e){return e*e}function o(e){return e*(2-e)}function a(e){return e<.5?2*e*e:(4-2*e)*e-1}function s(e){return e*e*e}function l(e){const t=e-1;return t*t*t+1}function c(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1}function u(e){return e*e*e*e}function d(e){const t=e-1;return 1-t*t*t*t}function h(e){const t=e-1;return e<.5?8*e*e*e*e:1-8*t*t*t*t}function p(e){return e*e*e*e*e}function f(e){const t=e-1;return 1+t*t*t*t*t}function g(e){const t=e-1;return e<.5?16*e*e*e*e*e:1+16*t*t*t*t*t}function m(e){return 0===e?0:Math.pow(2,10*(e-1))}function v(e){return 1===e?1:1-Math.pow(2,-10*e)}function _(e){if(0===e||1===e)return e;const t=2*e,n=t-1;return t<1?.5*Math.pow(2,10*n):.5*(2-Math.pow(2,-10*n))}function y(e){const t=e/1;return-1*(Math.sqrt(1-t*e)-1)}function b(e){const t=e-1;return Math.sqrt(1-t*t)}function S(e){const t=2*e,n=t-2;return t<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-n*n)+1)}function E(e,t=1.70158){return e*e*((t+1)*e-t)}function C(e,t=1.70158){const n=e/1-1;return n*n*((t+1)*n+t)+1}function x(e,t=1.70158){const n=2*e,i=n-2,r=1.525*t;return n<1?.5*n*n*((r+1)*n-r):.5*(i*i*((r+1)*i+r)+2)}function w(e,t=.7){if(0===e||1===e)return e;const n=e/1,i=n-1,r=1-t,o=r/(2*Math.PI)*Math.asin(1);return-Math.pow(2,10*i)*Math.sin((i-o)*(2*Math.PI)/r)}function T(e,t=.7){const n=1-t,i=2*e;if(0===e||1===e)return e;const r=n/(2*Math.PI)*Math.asin(1);return Math.pow(2,-10*i)*Math.sin((i-r)*(2*Math.PI)/n)+1}function A(e,t=.65){const n=1-t;if(0===e||1===e)return e;const i=2*e,r=i-1,o=n/(2*Math.PI)*Math.asin(1);return i<1?Math.pow(2,10*r)*Math.sin((r-o)*(2*Math.PI)/n)*-.5:Math.pow(2,-10*r)*Math.sin((r-o)*(2*Math.PI)/n)*.5+1}function O(e){const t=e/1;if(t<1/2.75)return 7.5625*t*t;if(t<2/2.75){const e=t-1.5/2.75;return 7.5625*e*e+.75}if(t<2.5/2.75){const e=t-2.25/2.75;return 7.5625*e*e+.9375}{const e=t-2.625/2.75;return 7.5625*e*e+.984375}}function R(e){return 1-O(1-e)}function N(e){return e<.5?.5*R(2*e):.5*O(2*e-1)+.5}e.easeInSine=t,e.easeOutSine=n,e.easeInOutSine=i,e.easeInQuad=r,e.easeOutQuad=o,e.easeInOutQuad=a,e.easeInCubic=s,e.easeOutCubic=l,e.easeInOutCubic=c,e.easeInQuart=u,e.easeOutQuart=d,e.easeInOutQuart=h,e.easeInQuint=p,e.easeOutQuint=f,e.easeInOutQuint=g,e.easeInExpo=m,e.easeOutExpo=v,e.easeInOutExpo=_,e.easeInCirc=y,e.easeOutCirc=b,e.easeInOutCirc=S,e.easeInBack=E,e.easeOutBack=C,e.easeInOutBack=x,e.easeInElastic=w,e.easeOutElastic=T,e.easeInOutElastic=A,e.easeOutBounce=O,e.easeInBounce=R,e.easeInOutBounce=N}(gx||(gx={})),function(e){e.number=(e,t)=>{const n=t-e;return t=>{return e+n*t}},e.object=(e,t)=>{const n=Object.keys(e);return i=>{const r={};for(let o=n.length-1;-1!==o;o-=1){const a=n[o];r[a]=e[a]+(t[a]-e[a])*i}return r}},e.unit=(e,t)=>{const n=/(-?[0-9]*.[0-9]*)(px|em|cm|mm|in|pt|pc|%)/,i=n.exec(e),r=n.exec(t),o=r?r[1]:"",a=i?+i[1]:0,s=r?+r[1]:0,l=o.indexOf("."),c=l>0?o[1].length-l-1:0,u=s-a,d=i?i[2]:"";return e=>{return(a+u*e).toFixed(c)+d}},e.color=(e,t)=>{const n=parseInt(e.slice(1),16),i=parseInt(t.slice(1),16),r=255&n,o=(255&i)-r,a=65280&n,s=(65280&i)-a,l=16711680&n,c=(16711680&i)-l;return e=>{const t=r+o*e&255,n=a+s*e&65280,i=l+c*e&16711680;return`#${(1<<24|t|n|i).toString(16).slice(1)}`}}}(mx||(mx={})),function(e){const t=`${_C.prefixCls}.storage`;function n(e,t,n){const i=t.id||o.uniqueId("doc-"),r=u(e);r.keys.push(i),l(d(e,i),t),l(h(e),r),a(n,null,Object.assign(Object.assign({},t),{id:i}))}function i(e,t,n){const i=u(e),r=[];if(null==t)i.keys.forEach(t=>{const i=c(d(e,t));i?r.push(i):a(n,new Error(`No document found for an ID '${t}' from index.`))}),a(n,null,r);else if(t.id){const i=c(d(e,t.id));a(n,null,i?[i]:[])}else a(n,null,[])}function r(e,t,n){const i=u(e);if(null==t)i.keys.forEach(t=>{localStorage.removeItem(d(e,t))}),localStorage.removeItem(h(e)),a(n,null);else if(t.id){const r=i.keys.indexOf(t.id);r>=0&&i.keys.splice(r,1),localStorage.removeItem(d(e,t.id)),l(h(e),i),a(n,null)}}function a(e,t,n){e&&s.defer(()=>{e(t,n)})}function l(e,t){localStorage.setItem(e,JSON.stringify(t))}function c(e){const t=localStorage.getItem(e);return t?JSON.parse(t):null}function u(e){const t=c(h(e));return t?(null==t.keys&&(t.keys=[]),t):{keys:[]}}function d(e,n){return`${t}.${e}.docs.${n}`}function h(e){return`${t}.${e}.index`}e.insert=n,e.find=i,e.remove=r}(vx||(vx={}));class Ex extends hx{constructor(){super(),this.cid=_x.uniqueId(),Ex.views[this.cid]=this}get priority(){return 2}confirmUpdate(e,t){return 0}$(e){return Ex.$(e)}empty(e=this.container){return this.$(e).empty(),this}unmount(e=this.container){return this.$(e).remove(),this}remove(e=this.container){return e===this.container&&(this.removeEventListeners(document),this.onRemove(),delete Ex.views[this.cid]),this.unmount(e),this}onRemove(){}setClass(e,t=this.container){t.classList.value=Array.isArray(e)?e.join(" "):e}addClass(e,t=this.container){return this.$(t).addClass(Array.isArray(e)?e.join(" "):e),this}removeClass(e,t=this.container){return this.$(t).removeClass(Array.isArray(e)?e.join(" "):e),this}setStyle(e,t=this.container){return this.$(t).css(e),this}setAttrs(e,t=this.container){return null!=e&&null!=t&&(t instanceof SVGElement?c.attr(t,e):this.$(t).attr(e)),this}findAttr(e,t=this.container){let n=t;while(n&&1===n.nodeType){const t=n.getAttribute(e);if(null!=t)return t;if(n===this.container)return null;n=n.parentNode}return null}find(e,t=this.container,n=this.selectors){return Ex.find(e,t,n).elems}findOne(e,t=this.container,n=this.selectors){const i=this.find(e,t,n);return i.length>0?i[0]:null}findByAttr(e,t=this.container){let n=t;while(n&&n.getAttribute){const t=n.getAttribute(e);if((null!=t||n===this.container)&&"false"!==t)return n;n=n.parentNode}return null}getSelector(e,t){let n;if(e===this.container)return"string"===typeof t&&(n=`> ${t}`),n;if(e){const i=c.index(e)+1;n=`${e.tagName.toLowerCase()}:nth-child(${i})`,t&&(n+=` > ${t}`),n=this.getSelector(e.parentNode,n)}return n}prefixClassName(e){return yC.prefix(e)}delegateEvents(e,t){if(null==e)return this;t||this.undelegateEvents();const n=/^(\S+)\s*(.*)$/;return Object.keys(e).forEach(t=>{const i=t.match(n);if(null==i)return;const r=this.getEventHandler(e[t]);"function"===typeof r&&this.delegateEvent(i[1],i[2],r)}),this}undelegateEvents(){return this.$(this.container).off(this.getEventNamespace()),this}delegateDocumentEvents(e,t){return this.addEventListeners(document,e,t),this}undelegateDocumentEvents(){return this.removeEventListeners(document),this}delegateEvent(e,t,n){return this.$(this.container).on(e+this.getEventNamespace(),t,n),this}undelegateEvent(e,t,n){const i=e+this.getEventNamespace();return null==t?this.$(this.container).off(i):"string"===typeof t?this.$(this.container).off(i,t,n):this.$(this.container).off(i,t),this}addEventListeners(e,t,n){if(null==t)return this;const i=this.getEventNamespace(),r=this.$(e);return Object.keys(t).forEach(e=>{const o=this.getEventHandler(t[e]);"function"===typeof o&&r.on(e+i,n,o)}),this}removeEventListeners(e){return null!=e&&this.$(e).off(this.getEventNamespace()),this}getEventNamespace(){return`.${_C.prefixCls}-event-${this.cid}`}getEventHandler(e){let t;if("string"===typeof e){const n=this[e];"function"===typeof n&&(t=(...e)=>n.call(this,...e))}else t=(...t)=>e.call(this,...t);return t}getEventTarget(e,t={}){const{target:n,type:i,clientX:r=0,clientY:o=0}=e;return t.fromPoint||"touchmove"===i||"touchend"===i?document.elementFromPoint(r,o):n}stopPropagation(e){return this.setEventData(e,{propagationStopped:!0}),this}isPropagationStopped(e){return!0===this.getEventData(e).propagationStopped}getEventData(e){return this.eventData(e)}setEventData(e,t){return this.eventData(e,t)}eventData(e,t){if(null==e)throw new TypeError("Event object required");let n=e.data;const i=`__${this.cid}__`;return null==t?null==n?{}:n[i]||{}:(null==n&&(n=e.data={}),null==n[i]?n[i]=Object.assign({},t):n[i]=Object.assign(Object.assign({},n[i]),t),n[i])}normalizeEvent(e){return Ex.normalizeEvent(e)}}(function(e){function t(e){return T()(e)}function n(e,t){return t?c.createSvgElement(e||"g"):c.createElementNS(e||"div")}function i(e,n,i){if(!e||"."===e)return{elems:[n]};if(i){const t=i[e];if(t)return{elems:Array.isArray(t)?t:[t]}}return _C.useCSSSelector?{isCSSSelector:!0,elems:t(n).find(e).toArray()}:{elems:[]}}function r(e){let t=e;const n=e.originalEvent,i=n&&n.changedTouches&&n.changedTouches[0];if(i){for(const t in e)void 0===i[t]&&(i[t]=e[t]);t=i}const r=t.target;if(r){const e=r.correspondingUseElement;e&&(t.target=e)}return t}e.$=t,e.createElement=n,e.find=i,e.normalizeEvent=r})(Ex||(Ex={})),function(e){function t(t){return e.views[t]||null}e.views={},e.getView=t}(Ex||(Ex={})),function(e){let t=0;function n(){const e=`v${t}`;return t+=1,e}e.uniqueId=n}(_x||(_x={}));const Cx=e=>e;function xx(e,t){return 0===t?"0%":`${Math.round(e/t*100)}%`}function wx(e){const t=(t,n,i,r)=>{return n.isEdgeElement(i)?Ax(e,t,n,i,r):Tx(e,t,n,i,r)};return t}function Tx(e,t,n,i,r){const o=n.cell,a=o.getAngle(),s=n.getUnrotatedBBoxOfElement(i),l=o.getBBox().getCenter(),c=xy.create(r).rotate(a,l);let u=c.x-s.x,d=c.y-s.y;return e&&(u=xx(u,s.width),d=xx(d,s.height)),t.anchor={name:"topLeft",args:{dx:u,dy:d,rotate:!0}},t}function Ax(e,t,n,i,r){const o=n.getConnection();if(!o)return t;const a=o.closestPointLength(r);if(e){const e=o.length();t.anchor={name:"ratio",args:{ratio:a/e}}}else t.anchor={name:"length",args:{length:a}};return t}const Ox=wx(!0),Rx=wx(!1);var Nx,Dx;(function(e){e.presets=_,e.registry=gS.create({type:"connection strategy"}),e.registry.register(e.presets,!0)})(Nx||(Nx={}));class Ix{constructor(e){this.view=e,this.clean()}clean(){this.elemCache&&this.elemCache.dispose(),this.elemCache=new bx,this.pathCache={}}get(e){const t=this.elemCache;return t.has(e)||this.elemCache.set(e,{}),this.elemCache.get(e)}getData(e){const t=this.get(e);return t.data||(t.data={}),t.data}getMatrix(e){const t=this.get(e);if(null==t.matrix){const n=this.view.rotatableNode||this.view.container;t.matrix=c.getTransformToElement(e,n)}return c.createSVGMatrix(t.matrix)}getShape(e){const t=this.get(e);return null==t.shape&&(t.shape=c.toGeometryShape(e)),t.shape.clone()}getBoundingRect(e){const t=this.get(e);return null==t.boundingRect&&(t.boundingRect=c.getBBox(e)),t.boundingRect.clone()}}(function(e){function t(e){return null!=e&&!n(e)}function n(e){return null!=e&&"string"===typeof e}function i(e){return null==e||n(e)?e:r.cloneDeep(e)}function a(e){return`${e}`.trim().replace(/[\r|\n]/g," ").replace(/>\s+<")}function s(e){const t=document.createDocumentFragment(),n={},i={},r=a(e),s=o.sanitizeHTML(r,{raw:!0});return s.forEach(e=>{t.appendChild(e)}),{fragment:t,selectors:i,groups:n}}function l(e,t={ns:c.ns.svg}){const n=document.createDocumentFragment(),i={},r={},o=[{markup:Array.isArray(e)?e:[e],parent:n,ns:t.ns}];while(o.length>0){const e=o.pop();let t=e.ns||c.ns.svg;const n=e.markup,a=e.parent;n.forEach(e=>{const n=e.tagName;if(!n)throw new TypeError("Invalid tagName");e.ns&&(t=e.ns);const s=t===c.ns.svg,l=t?c.createElementNS(n,t):c.createElement(n),u=e.attrs;u&&(s?c.attr(l,c.kebablizeAttrs(u)):T()(l).attr(u));const d=e.style;d&&T()(l).css(d);const h=e.className;null!=h&&l.setAttribute("class",Array.isArray(h)?h.join(" "):h),e.textContent&&(l.textContent=e.textContent);const p=e.selector;if(null!=p){if(r[p])throw new TypeError("Selector must be unique");r[p]=l}if(e.groupSelector){let t=e.groupSelector;Array.isArray(t)||(t=[t]),t.forEach(e=>{i[e]||(i[e]=[]),i[e].push(l)})}a.appendChild(l);const f=e.children;Array.isArray(f)&&o.push({ns:t,markup:f,parent:l})})}return Object.keys(i).forEach(e=>{if(r[e])throw new Error("Ambiguous group selector");r[e]=i[e]}),{fragment:n,selectors:r,groups:i}}function u(e){return e instanceof SVGElement?c.createSvgElement("g"):c.createElement("div")}function d(e){if(n(e)){const t=Qy.createVectors(e),n=t.length;if(1===n)return{elem:t[0].node};if(n>1){const e=u(t[0].node);return t.forEach(t=>{e.appendChild(t.node)}),{elem:e}}return{}}const t=l(e),i=t.fragment;let r=null;return i.childNodes.length>1?(r=u(i.firstChild),r.appendChild(i)):r=i.firstChild,{elem:r,selectors:t.selectors}}function h(e){const t=Qy.createVectors(e),n=document.createDocumentFragment();for(let i=0,r=t.length;i ${o} > ${i}`:`> ${o}`,r;const a=e.parentNode;if(a&&a.childNodes.length>1){const t=c.index(e)+1;r=`${o}:nth-child(${t})`}else r=o;return i&&(r+=` > ${i}`),t(e.parentNode,n,r)}return i}function n(e,n,i){if("#text"===e.nodeName)return null;let r=null,o=null,a=null,s=!1;const l={tagName:e.tagName};if(e.attributes){a={};for(let t=0,n=e.attributes.length;t{const r=n(e,t,i);if(null!=r){const{markup:n,attrs:i,isCSSSelector:o}=r;if(s.set(e,n),n.selector&&null!=i&&(Object.keys(i).length&&(a[n.selector]=i),o&&delete n.selector),e.childNodes&&e.childNodes.length>0)for(let r=0,a=e.childNodes.length;rl(e,e)).filter(e=>null!=e);return{markup:u,attrs:a}}e.getSelector=t,e.xml2json=i}(Dx||(Dx={})),function(e){function t(){return"g"}function n(){return{tagName:"circle",selector:"circle",attrs:{r:10,fill:"#FFFFFF",stroke:"#000000"}}}function i(){return{tagName:"text",selector:"text",attrs:{fill:"#000000"}}}e.getPortContainerMarkup=t,e.getPortMarkup=n,e.getPortLabelMarkup=i}(Dx||(Dx={})),function(e){function t(){return e.sanitize('\n \n \n \n \n \n \n \n \n ')}function n(){return e.sanitize('\n \n \n \n \n Remove edge.\n \n \n \n \n Edge options.\n \n \n ')}function i(){return e.sanitize('\n \n \n \n \n Remove vertex.\n \n \n ')}function r(){return e.sanitize('\n \n \n \n ')}e.getEdgeMarkup=t,e.getEdgeToolMarkup=n,e.getEdgeVertexMarkup=i,e.getEdgeArrowheadMarkup=r}(Dx||(Dx={})),function(e){function t(e=!1){return{tagName:"foreignObject",selector:"fo",children:[{ns:c.ns.xhtml,tagName:"body",selector:"foBody",attrs:{xmlns:c.ns.xhtml},style:{width:"100%",height:"100%",background:"transparent"},children:e?[]:[{tagName:"div",selector:"foContent",style:{width:"100%",height:"100%"}}]}]}}e.getForeignObjectMarkup=t}(Dx||(Dx={}));class Mx{constructor(e){this.view=e}get cell(){return this.view.cell}getDefinition(e){return this.cell.getAttrDefinition(e)}processAttrs(e,t){let n,i,r,a,l;const u=[];return Object.keys(t).forEach(i=>{const r=t[i],a=this.getDefinition(i),l=s.call(YE.isValidDefinition,this.view,a,r,{elem:e,attrs:t,cell:this.cell,view:this.view});if(a&&l)"string"===typeof a?(null==n&&(n={}),n[a]=r):null!==r&&u.push({name:i,definition:a});else{null==n&&(n={});const e=Mx.CASE_SENSITIVE_ATTR.includes(i)?i:o.kebabCase(i);n[e]=r}}),u.forEach(({name:n,definition:o})=>{const s=t[n],u=o;"function"===typeof u.set&&(!c.isHTMLElement(e)&&Mx.DELAY_ATTRS.includes(n)?(null==l&&(l={}),l[n]=s):(null==i&&(i={}),i[n]=s));const d=o;"function"===typeof d.offset&&(null==r&&(r={}),r[n]=s);const h=o;"function"===typeof h.position&&(null==a&&(a={}),a[n]=s)}),{raw:t,normal:n,set:i,offset:r,position:a,delay:l}}mergeProcessedAttrs(e,t){e.set=Object.assign(Object.assign({},e.set),t.set),e.position=Object.assign(Object.assign({},e.position),t.position),e.offset=Object.assign(Object.assign({},e.offset),t.offset);const n=e.normal&&e.normal.transform;null!=n&&t.normal&&(t.normal.transform=n),e.normal=t.normal}findAttrs(e,t,n,o){const a=[],s=new bx;return Object.keys(e).forEach(l=>{const c=e[l];if(!r.isPlainObject(c))return;const{isCSSSelector:u,elems:d}=Ex.find(l,t,o);n[l]=d;for(let e=0,t=d.length;e{const t=s.get(e),n=t.attrs;t.attrs=n.reduceRight((e,t)=>r.merge(e,t),{})}),s}updateRelativeAttrs(e,t,n,i){const r=t.raw||{};let o=t.normal||{};const a=t.set,l=t.position,u=t.offset,d=t.delay,h=()=>({elem:e,cell:this.cell,view:this.view,attrs:r,refBBox:n.clone()});if(null!=a&&Object.keys(a).forEach(e=>{const t=a[e],n=this.getDefinition(e);if(null!=n){const i=s.call(n.set,this.view,t,h());"object"===typeof i?o=Object.assign(Object.assign({},o),i):null!=i&&(o[e]=i)}}),c.isHTMLElement(e))return void this.view.setAttrs(o,e);const p=o.transform,f=p?`${p}`:null,g=c.transformStringToMatrix(f),m=new xy(g.e,g.f);p&&(delete o.transform,g.e=0,g.f=0);let v=1,_=1;if(l||u){const t=this.view.getScaleOfElement(e,i.scalableNode);v=t.sx,_=t.sy}let y=!1;null!=l&&Object.keys(l).forEach(e=>{const t=l[e],n=this.getDefinition(e);if(null!=n){const e=s.call(n.position,this.view,t,h());null!=e&&(y=!0,m.translate(xy.create(e).scale(v,_)))}}),this.view.setAttrs(o,e);let b=!1;if(null!=u){const t=this.view.getBoundingRectOfElement(e);if(t.width>0&&t.height>0){const n=c.transformRectangle(t,g).scale(1/v,1/_);Object.keys(u).forEach(t=>{const i=u[t],o=this.getDefinition(t);if(null!=o){const t=s.call(o.offset,this.view,i,{elem:e,cell:this.cell,view:this.view,attrs:r,refBBox:n});null!=t&&(b=!0,m.translate(xy.create(t).scale(v,_)))}})}}(null!=p||y||b)&&(m.round(1),g.e=m.x,g.f=m.y,e.setAttribute("transform",c.matrixToTransformString(g)));const S=()=>{null!=d&&Object.keys(d).forEach(t=>{const n=d[t],i=this.getDefinition(t);if(null!=i){const r=s.call(i.set,this.view,n,h());"object"===typeof r?this.view.setAttrs(r,e):null!=r&&this.view.setAttrs({[t]:r},e)}})};i.forceSync?S():fS.scheduleTask(S)}update(e,t,n){const i={},r=this.findAttrs(n.attrs||t,e,i,n.selectors),o=n.attrs?this.findAttrs(t,e,i,n.selectors):r,a=[];r.each(t=>{const r=t.elem,s=t.attrs,l=this.processAttrs(r,s);if(null==l.set&&null==l.position&&null==l.offset&&null==l.delay)this.view.setAttrs(l.normal,r);else{const t=o.get(r),c=t?t.attrs:null,u=c&&null==s.ref?c.ref:s.ref;let d;if(u){if(d=(i[u]||this.view.find(u,e,n.selectors))[0],!d)throw new Error(`"${u}" reference does not exist.`)}else d=null;const h={node:r,refNode:d,attributes:c,processedAttributes:l},p=a.findIndex(e=>e.refNode===r);p>-1?a.splice(p,0,h):a.push(h)}});const s=new bx;let l;a.forEach(t=>{const i=t.node,r=t.refNode;let o;const u=null!=r&&null!=n.rotatableNode&&c.contains(n.rotatableNode,r);if(r&&(o=s.get(r)),!o){const t=u?n.rotatableNode:e;o=r?c.getBBox(r,{target:t}):n.rootBBox,r&&s.set(r,o)}let d;n.attrs&&t.attributes?(d=this.processAttrs(i,t.attributes),this.mergeProcessedAttrs(d,t.processedAttributes)):d=t.processedAttributes;let h=o;u&&null!=n.rotatableNode&&!n.rotatableNode.contains(i)&&(l||(l=c.transformStringToMatrix(c.attr(n.rotatableNode,"transform"))),h=c.transformRectangle(o,l));const p=a.find(e=>e.refNode===i);p&&(n.forceSync=!0),this.updateRelativeAttrs(i,d,h,n)})}}(function(e){e.CASE_SENSITIVE_ATTR=["viewBox"],e.DELAY_ATTRS=["text","textWrap","sourceMarker","targetMarker"]})(Mx||(Mx={}));class kx{constructor(e,t,n=[]){this.view=e;const i={},r={};let o=0;Object.keys(t).forEach(e=>{let n=t[e];Array.isArray(n)||(n=[n]),n.forEach(t=>{let n=i[t];n||(o+=1,n=i[t]=1<{i[e]||(o+=1,i[e]=1<25)throw new Error("Maximum number of flags exceeded.");this.flags=i,this.attrs=r,this.bootstrap=n}get cell(){return this.view.cell}getFlag(e){const t=this.flags;return null==t?0:Array.isArray(e)?e.reduce((e,n)=>e|t[n],0):0|t[e]}hasAction(e,t){return e&this.getFlag(t)}removeAction(e,t){return e^e&this.getFlag(t)}getBootstrapFlag(){return this.getFlag(this.bootstrap)}getChangedFlag(){let e=0;return this.attrs?(Object.keys(this.attrs).forEach(t=>{this.cell.hasChanged(t)&&(e|=this.attrs[t])}),e):e}}var Lx=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{return null!=t?i.uniq([...Array.isArray(e)?e:[e],...Array.isArray(t)?t:[t]]):Array.isArray(e)?[...e]:[e]},n=r.cloneDeep(this.getDefaults()),{bootstrap:o,actions:a,events:s,documentEvents:l}=e,c=Lx(e,["bootstrap","actions","events","documentEvents"]);return o&&(n.bootstrap=t(n.bootstrap,o)),a&&Object.keys(a).forEach(e=>{const i=a[e],r=n.actions[e];i&&r?n.actions[e]=t(r,i):i&&(n.actions[e]=t(i))}),s&&(n.events=Object.assign(Object.assign({},n.events),s)),e.documentEvents&&(n.documentEvents=Object.assign(Object.assign({},n.documentEvents),l)),r.merge(n,c)}get[Symbol.toStringTag](){return Px.toStringTag}init(){}onRemove(){this.removeTools()}get priority(){return this.options.priority}get rootSelector(){return this.options.rootSelector}getConstructor(){return this.constructor}ensureOptions(e){return this.getConstructor().getOptions(e)}getContainerTagName(){return this.options.isSvgElement?"g":"div"}getContainerStyle(){}getContainerAttrs(){return{"data-cell-id":this.cell.id,"data-shape":this.cell.shape}}getContainerClassName(){return this.prefixClassName("cell")}ensureContainer(){return Ex.createElement(this.getContainerTagName(),this.options.isSvgElement)}setContainer(e){if(this.container!==e){this.undelegateEvents(),this.container=e,null!=this.options.events&&this.delegateEvents(this.options.events);const t=this.getContainerAttrs();null!=t&&this.setAttrs(t,e);const n=this.getContainerStyle();null!=n&&this.setStyle(n,e);const i=this.getContainerClassName();null!=i&&this.addClass(i,e)}return this}isNodeView(){return!1}isEdgeView(){return!1}render(){return this}confirmUpdate(e,t={}){return 0}getBootstrapFlag(){return this.flag.getBootstrapFlag()}getFlag(e){return this.flag.getFlag(e)}hasAction(e,t){return this.flag.hasAction(e,t)}removeAction(e,t){return this.flag.removeAction(e,t)}handleAction(e,t,n,i){if(this.hasAction(e,t)){n();const r=[t];return i&&("string"===typeof i?r.push(i):r.push(...i)),this.removeAction(e,r)}return e}setup(){this.cell.on("changed",({options:e})=>this.onAttrsChange(e))}onAttrsChange(e){let t=this.flag.getChangedFlag();!e.updated&&t&&(e.dirty&&this.hasAction(t,"update")&&(t|=this.getFlag("render")),e.toolId&&(e.async=!1),null!=this.graph&&this.graph.renderer.requestViewUpdate(this,t,this.priority,e))}parseJSONMarkup(e,t){const n=Dx.parseJSONMarkup(e),i=n.selectors,r=this.rootSelector;if(t&&r){if(i[r])throw new Error("Invalid root selector");i[r]=t}return n}can(e){let t=this.graph.options.interacting;if("function"===typeof t&&(t=s.call(t,this.graph,this)),"object"===typeof t){let n=t[e];return"function"===typeof n&&(n=s.call(n,this.graph,this)),!1!==n}return"boolean"===typeof t&&t}cleanCache(){return this.cache.clean(),this}getCache(e){return this.cache.get(e)}getDataOfElement(e){return this.cache.getData(e)}getMatrixOfElement(e){return this.cache.getMatrix(e)}getShapeOfElement(e){return this.cache.getShape(e)}getScaleOfElement(e,t){let n,i;if(t&&t.contains(e)){const e=c.scale(t);n=1/e.sx,i=1/e.sy}else n=1,i=1;return{sx:n,sy:i}}getBoundingRectOfElement(e){return this.cache.getBoundingRect(e)}getBBoxOfElement(e){const t=this.getBoundingRectOfElement(e),n=this.getMatrixOfElement(e),i=this.getRootRotatedMatrix(),r=this.getRootTranslatedMatrix();return c.transformRectangle(t,r.multiply(i).multiply(n))}getUnrotatedBBoxOfElement(e){const t=this.getBoundingRectOfElement(e),n=this.getMatrixOfElement(e),i=this.getRootTranslatedMatrix();return c.transformRectangle(t,i.multiply(n))}getBBox(e={}){let t;if(e.useCellGeometry){const e=this.cell,n=e.isNode()?e.getAngle():0;t=e.getBBox().bbox(n)}else t=this.getBBoxOfElement(this.container);return this.graph.localToGraph(t)}getRootTranslatedMatrix(){const e=this.cell,t=e.isNode()?e.getPosition():{x:0,y:0};return c.createSVGMatrix().translate(t.x,t.y)}getRootRotatedMatrix(){let e=c.createSVGMatrix();const t=this.cell,n=t.isNode()?t.getAngle():0;if(n){const i=t.getBBox(),r=i.width/2,o=i.height/2;e=e.translate(r,o).rotate(n).translate(-r,-o)}return e}findMagnet(e=this.container){return this.findByAttr("magnet",e)}updateAttrs(e,t,n={}){null==n.rootBBox&&(n.rootBBox=new wy),null==n.selectors&&(n.selectors=this.selectors),this.attr.update(e,t,n)}isEdgeElement(e){return this.cell.isEdge()&&(null==e||e===this.container)}prepareHighlight(e,t={}){const n=e&&this.$(e)[0]||this.container;return t.partial=n===this.container,n}highlight(e,t={}){const n=this.prepareHighlight(e,t);return this.notify("cell:highlight",{magnet:n,options:t,view:this,cell:this.cell}),this.isEdgeView()?this.notify("edge:highlight",{magnet:n,options:t,view:this,edge:this.cell,cell:this.cell}):this.isNodeView()&&this.notify("node:highlight",{magnet:n,options:t,view:this,node:this.cell,cell:this.cell}),this}unhighlight(e,t={}){const n=this.prepareHighlight(e,t);return this.notify("cell:unhighlight",{magnet:n,options:t,view:this,cell:this.cell}),this.isNodeView()?this.notify("node:unhighlight",{magnet:n,options:t,view:this,node:this.cell,cell:this.cell}):this.isEdgeView()&&this.notify("edge:unhighlight",{magnet:n,options:t,view:this,edge:this.cell,cell:this.cell}),this}notifyUnhighlight(e,t){}getEdgeTerminal(e,t,n,i,r){const o=this.cell,a=this.findAttr("port",e),s=e.getAttribute("data-selector"),l={cell:o.id};return null!=s&&(l.magnet=s),null!=a?(l.port=a,o.isNode()&&(o.hasPort(a)||null!=s||(l.selector=this.getSelector(e)))):null==s&&this.container!==e&&(l.selector=this.getSelector(e)),this.customizeEdgeTerminal(l,e,t,n,i,r)}customizeEdgeTerminal(e,t,n,i,r,o){const a=r.getStrategy()||this.graph.options.connecting.strategy;if(a){const l="string"===typeof a?a:a.name,c="string"===typeof a?{}:a.args||{},u=Nx.registry;if(l){const a=u.get(l);if(null==a)return u.onNotFound(l);const d=s.call(a,this.graph,e,this,t,new xy(n,i),r,o,c);if(d)return d}}return e}getMagnetFromEdgeTerminal(e){const t=this.cell,n=this.container,i=e.port;let r,o=e.magnet;return null!=i&&t.isNode()&&t.hasPort(i)?r=this.findPortElem(i,o)||n:(o||(o=e.selector),o||null==i||(o=`[port="${i}"]`),r=this.findOne(o,n,this.selectors)),r}animate(e,t){const n="string"===typeof e?this.findOne(e):e;if(null==n)throw new Error("Invalid animation element.");const i=n.parentNode,r=()=>{i||c.remove(n)},o=Qy.create(n);i||o.appendTo(this.graph.view.stage);const a=t.complete;return t.complete=e=>{r(),a&&a(e)},o.animate(t)}animateTransform(e,t){const n="string"===typeof e?this.findOne(e):e;if(null==n)throw new Error("Invalid animation element.");const i=n.parentNode,r=()=>{i||c.remove(n)},o=Qy.create(n);i||o.appendTo(this.graph.view.stage);const a=t.complete;return t.complete=e=>{r(),a&&a(e)},o.animateTransform(t)}hasTools(e){const t=this.tools;return null!=t&&(null==e||t.name===e)}addTools(e){if(!this.can("toolsAddable"))return this;if(this.removeTools(),e){const t=Fx.isToolsView(e)?e:new Fx(e);this.tools=t,this.graph.on("tools:hide",this.hideTools,this),this.graph.on("tools:show",this.showTools,this),this.graph.on("tools:remove",this.removeTools,this),t.config({view:this}),t.mount()}return this}updateTools(e={}){return this.tools&&this.tools.update(e),this}removeTools(){return this.tools&&(this.tools.remove(),this.graph.off("tools:hide",this.hideTools,this),this.graph.off("tools:show",this.showTools,this),this.graph.off("tools:remove",this.removeTools,this),this.tools=null),this}hideTools(){return this.tools&&this.tools.hide(),this}showTools(){return this.tools&&this.tools.show(),this}renderTools(){const e=this.cell.getTools();return this.addTools(e),this}notify(e,t){return this.trigger(e,t),this.graph.trigger(e,t),this}getEventArgs(e,t,n){const i=this,r=i.cell;return null==t||null==n?{e:e,view:i,cell:r}:{e:e,x:t,y:n,view:i,cell:r}}onClick(e,t,n){this.notify("cell:click",this.getEventArgs(e,t,n))}onDblClick(e,t,n){this.notify("cell:dblclick",this.getEventArgs(e,t,n))}onContextMenu(e,t,n){this.notify("cell:contextmenu",this.getEventArgs(e,t,n))}onMouseDown(e,t,n){this.cell.model&&(this.cachedModelForMouseEvent=this.cell.model,this.cachedModelForMouseEvent.startBatch("mouse")),this.notify("cell:mousedown",this.getEventArgs(e,t,n))}onMouseUp(e,t,n){this.notify("cell:mouseup",this.getEventArgs(e,t,n)),this.cachedModelForMouseEvent&&(this.cachedModelForMouseEvent.stopBatch("mouse",{cell:this.cell}),this.cachedModelForMouseEvent=null)}onMouseMove(e,t,n){this.notify("cell:mousemove",this.getEventArgs(e,t,n))}onMouseOver(e){this.notify("cell:mouseover",this.getEventArgs(e))}onMouseOut(e){this.notify("cell:mouseout",this.getEventArgs(e))}onMouseEnter(e){this.notify("cell:mouseenter",this.getEventArgs(e))}onMouseLeave(e){this.notify("cell:mouseleave",this.getEventArgs(e))}onMouseWheel(e,t,n,i){this.notify("cell:mousewheel",Object.assign({delta:i},this.getEventArgs(e,t,n)))}onCustomEvent(e,t,n,i){this.notify("cell:customevent",Object.assign({name:t},this.getEventArgs(e,n,i))),this.notify(t,Object.assign({},this.getEventArgs(e,n,i)))}onMagnetMouseDown(e,t,n,i){}onMagnetDblClick(e,t,n,i){}onMagnetContextMenu(e,t,n,i){}onLabelMouseDown(e,t,n){}checkMouseleave(e){const t=this.graph;t.renderer.isAsync()&&t.renderer.dumpView(this);const n=this.getEventTarget(e,{fromPoint:!0}),i=t.renderer.findViewByElem(n);i!==this&&(this.onMouseLeave(e),i&&i.onMouseEnter(e))}}Px.defaults={isSvgElement:!0,rootSelector:"root",priority:0,bootstrap:[],actions:{}},function(e){e.Flag=kx,e.Attr=Mx}(Px||(Px={})),function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&"function"===typeof i.isNodeView&&"function"===typeof i.isEdgeView&&"function"===typeof i.confirmUpdate}e.toStringTag=`X6.${e.name}`,e.isCellView=t}(Px||(Px={})),function(e){function t(e){return function(t){t.config({priority:e})}}function n(e){return function(t){t.config({bootstrap:e})}}e.priority=t,e.bootstrap=n}(Px||(Px={})),function(e){e.registry=gS.create({type:"view"})}(Px||(Px={}));class Fx extends Ex{constructor(e={}){super(),this.svgContainer=this.createContainer(!0,e),this.htmlContainer=this.createContainer(!1,e),this.config(e)}get name(){return this.options.name}get graph(){return this.cellView.graph}get cell(){return this.cellView.cell}get[Symbol.toStringTag](){return Fx.toStringTag}createContainer(e,t){const n=e?Ex.createElement("g",!0):Ex.createElement("div",!1);return c.addClass(n,this.prefixClassName("cell-tools")),t.className&&c.addClass(n,t.className),n}config(e){if(this.options=Object.assign(Object.assign({},this.options),e),!Px.isCellView(e.view)||e.view===this.cellView)return this;this.cellView=e.view,this.cell.isEdge()?(c.addClass(this.svgContainer,this.prefixClassName("edge-tools")),c.addClass(this.htmlContainer,this.prefixClassName("edge-tools"))):this.cell.isNode()&&(c.addClass(this.svgContainer,this.prefixClassName("node-tools")),c.addClass(this.htmlContainer,this.prefixClassName("node-tools"))),this.svgContainer.setAttribute("data-cell-id",this.cell.id),this.htmlContainer.setAttribute("data-cell-id",this.cell.id),this.name&&(this.svgContainer.setAttribute("data-tools-name",this.name),this.htmlContainer.setAttribute("data-tools-name",this.name));const t=this.options.items;if(!Array.isArray(t))return this;this.tools=[];const n=[];t.forEach(e=>{if(Fx.ToolItem.isToolItem(e))"vertices"===e.name?n.unshift(e):n.push(e);else{const t="object"===typeof e?e.name:e;"vertices"===t?n.unshift(e):n.push(e)}});for(let i=0;i{e.toolId!==t.cid&&t.isVisible()&&t.update()}),this}focus(e){const t=this.tools;return t&&t.forEach(t=>{e===t?t.show():t.hide()}),this}blur(e){const t=this.tools;return t&&t.forEach(t=>{t===e||t.isVisible()||(t.show(),t.update())}),this}hide(){return this.focus(null)}show(){return this.blur(null)}remove(){const e=this.tools;return e&&(e.forEach(e=>e.remove()),this.tools=null),c.remove(this.svgContainer),c.remove(this.htmlContainer),super.remove()}mount(){const e=this.tools,t=this.cellView;if(t&&e){const n=e.some(e=>!1!==e.options.isSVGElement),i=e.some(e=>!1===e.options.isSVGElement);if(n){const e=this.options.local?t.container:t.graph.view.decorator;e.appendChild(this.svgContainer)}i&&this.graph.container.appendChild(this.htmlContainer)}return this}}function Bx(e,t,n,i){const r=s.call(Nx.presets.pinRelative,this.graph,{},t,n,e,this.cell,i,{});return r.anchor}function $x(e,t){return t?e.cell.getBBox():e.cell.isEdge()?e.getConnection().bbox():e.getUnrotatedBBoxOfElement(e.container)}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&null!=i.graph&&null!=i.cell&&"function"===typeof i.config&&"function"===typeof i.update&&"function"===typeof i.focus&&"function"===typeof i.blur&&"function"===typeof i.show&&"function"===typeof i.hide}e.toStringTag=`X6.${e.name}`,e.isToolsView=t})(Fx||(Fx={})),function(e){class t extends Ex{constructor(e={}){super(),this.options=this.getOptions(e),this.container=Ex.createElement(this.options.tagName||"g",!1!==this.options.isSVGElement),c.addClass(this.container,this.prefixClassName("cell-tool")),"string"===typeof this.options.className&&c.addClass(this.container,this.options.className),this.init()}static getDefaults(){return this.defaults}static config(e){this.defaults=this.getOptions(e)}static getOptions(e){return r.merge(r.cloneDeep(this.getDefaults()),e)}get graph(){return this.cellView.graph}get cell(){return this.cellView.cell}get name(){return this.options.name}get[Symbol.toStringTag](){return t.toStringTag}init(){}getOptions(e){const t=this.constructor;return t.getOptions(e)}delegateEvents(){return this.options.events&&super.delegateEvents(this.options.events),this}config(e,t){return this.cellView=e,this.parent=t,this.stamp(this.container),this.cell.isEdge()?c.addClass(this.container,this.prefixClassName("edge-tool")):this.cell.isNode()&&c.addClass(this.container,this.prefixClassName("node-tool")),this.name&&this.container.setAttribute("data-tool-name",this.name),this.delegateEvents(),this}render(){this.empty();const e=this.options.markup;if(e){const t=Dx.isStringMarkup(e)?Dx.parseStringMarkup(e):Dx.parseJSONMarkup(e);this.container.appendChild(t.fragment),this.childNodes=t.selectors}return this.onRender(),this}onRender(){}update(){return this}stamp(e=this.container){e&&e.setAttribute("data-cell-id",this.cellView.cell.id)}show(){return this.container.style.display="",this.visible=!0,this}hide(){return this.container.style.display="none",this.visible=!1,this}isVisible(){return this.visible}focus(){const e=this.options.focusOpacity;return null!=e&&Number.isFinite(e)&&(this.container.style.opacity=`${e}`),this.parent.focus(this),this}blur(){return this.container.style.opacity="",this.parent.blur(this),this}guard(e){return null==this.graph||null==this.cellView||this.graph.view.guard(e,this.cellView)}}t.defaults={isSVGElement:!0,tagName:"g"},e.ToolItem=t,function(e){let t=0;function n(e){return e?o.pascalCase(e):(t+=1,`CustomTool${t}`)}function i(e){const t=r.createClass(n(e.name),this);return t.config(e),t}e.define=i}(t=e.ToolItem||(e.ToolItem={})),function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&null!=i.graph&&null!=i.cell&&"function"===typeof i.config&&"function"===typeof i.update&&"function"===typeof i.focus&&"function"===typeof i.blur&&"function"===typeof i.show&&"function"===typeof i.hide&&"function"===typeof i.isVisible}e.toStringTag=`X6.${e.name}`,e.isToolItem=t}(t=e.ToolItem||(e.ToolItem={}))}(Fx||(Fx={}));class Vx extends Fx.ToolItem{onRender(){c.addClass(this.container,this.prefixClassName("cell-tool-button")),this.update()}update(){return this.updatePosition(),this}updatePosition(){const e=this.cellView,t=e.cell.isEdge()?this.getEdgeMatrix():this.getNodeMatrix();c.transform(this.container,t,{absolute:!0})}getNodeMatrix(){const e=this.cellView,t=this.options;let{x:n=0,y:i=0}=t;const{offset:r,useCellGeometry:o,rotate:s}=t;let l=$x(e,o);const u=e.cell.getAngle();s||(l=l.bbox(u));let d=0,h=0;"number"===typeof r?(d=r,h=r):"object"===typeof r&&(d=r.x,h=r.y),n=a.normalizePercentage(n,l.width),i=a.normalizePercentage(i,l.height);let p=c.createSVGMatrix().translate(l.x+l.width/2,l.y+l.height/2);return s&&(p=p.rotate(u)),p=p.translate(n+d-l.width/2,i+h-l.height/2),p}getEdgeMatrix(){const e=this.cellView,t=this.options,{offset:n=0,distance:i=0,rotate:r}=t;let o,s,l;o=a.isPercentage(i)?e.getTangentAtRatio(parseFloat(i)/100):e.getTangentAtLength(i),o?(s=o.start,l=o.vector().vectorAngle(new xy(1,0))||0):(s=e.getConnection().start,l=0);let u=c.createSVGMatrix().translate(s.x,s.y).rotate(l);return u="object"===typeof n?u.translate(n.x||0,n.y||0):u.translate(0,n),r||(u=u.rotate(-l)),u}onMouseDown(e){if(this.guard(e))return;e.stopPropagation(),e.preventDefault();const t=this.options.onClick;"function"===typeof t&&s.call(t,this.cellView,{e:e,view:this.cellView,cell:this.cellView.cell,btn:this})}}(function(e){e.config({name:"button",events:{mousedown:"onMouseDown",touchstart:"onMouseDown"}})})(Vx||(Vx={})),function(e){e.Remove=e.define({name:"button-remove",markup:[{tagName:"circle",selector:"button",attrs:{r:7,fill:"#FF1D00",cursor:"pointer"}},{tagName:"path",selector:"icon",attrs:{d:"M -3 -3 3 3 M -3 3 3 -3",fill:"none",stroke:"#FFFFFF","stroke-width":2,"pointer-events":"none"}}],distance:60,offset:0,onClick({view:e,btn:t}){t.parent.remove(),e.cell.remove({ui:!0,toolId:t.cid})}})}(Vx||(Vx={}));var Gx=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{this.stopHandleListening(e),e.remove()})}renderHandles(){const e=this.vertices;for(let t=0,n=e.length;tthis.guard(e),attrs:this.options.attrs||{}});r&&r(o),this.graph.hook.onToolItemCreated({name:"vertices",cell:this.cell,view:this.cellView,tool:o}),o.updatePosition(n.x,n.y),this.stamp(o.container),this.container.appendChild(o.container),this.handles.push(o),this.startHandleListening(o)}}updateHandles(){const e=this.vertices;for(let t=0,n=e.length;t0?n[e-1]:t.sourceAnchor,r=e0){const i=this.getNeighborPoints(t),r=i.prev,o=i.next;Math.abs(e.x-r.x)new e.Handle(t),markup:[{tagName:"path",selector:"connection",className:t,attrs:{fill:"none",stroke:"transparent","stroke-width":10,cursor:"pointer"}}],events:{[`mousedown .${t}`]:"onPathMouseDown",[`touchstart .${t}`]:"onPathMouseDown"}})}(zx||(zx={}));class jx extends Fx.ToolItem{constructor(){super(...arguments),this.handles=[]}get vertices(){return this.cellView.cell.getVertices()}update(){return this.render(),this}onRender(){c.addClass(this.container,this.prefixClassName("edge-tool-segments")),this.resetHandles();const e=this.cellView,t=[...this.vertices];t.unshift(e.sourcePoint),t.push(e.targetPoint);for(let n=0,i=t.length;nthis.guard(e),attrs:this.options.attrs||{}});return this.options.processHandle&&this.options.processHandle(i),this.graph.hook.onToolItemCreated({name:"segments",cell:this.cell,view:this.cellView,tool:i}),this.updateHandle(i,e,t),this.container.appendChild(i.container),this.startHandleListening(i),i}startHandleListening(e){e.on("change",this.onHandleChange,this),e.on("changing",this.onHandleChanging,this),e.on("changed",this.onHandleChanged,this)}stopHandleListening(e){e.off("change",this.onHandleChange,this),e.off("changing",this.onHandleChanging,this),e.off("changed",this.onHandleChanged,this)}resetHandles(){const e=this.handles;this.handles=[],e&&e.forEach(e=>{this.stopHandleListening(e),e.remove()})}shiftHandleIndexes(e){const t=this.handles;for(let n=0,i=t.length;nnew e.Handle(t),anchor:Bx})}(jx||(jx={}));class Hx extends Fx.ToolItem{get type(){return this.options.type}onRender(){c.addClass(this.container,this.prefixClassName(`edge-tool-${this.type}-anchor`)),this.toggleArea(!1),this.update()}update(){const e=this.type,t=this.cellView,n=t.getTerminalView(e);return n?(this.updateAnchor(),this.updateArea(),this.container.style.display=""):this.container.style.display="none",this}updateAnchor(){const e=this.childNodes;if(!e)return;const t=e.anchor;if(!t)return;const n=this.type,i=this.cellView,r=this.options,o=i.getTerminalAnchor(n),a=i.cell.prop([n,"anchor"]);t.setAttribute("transform",`translate(${o.x}, ${o.y})`);const s=a?r.customAnchorAttrs:r.defaultAnchorAttrs;s&&Object.keys(s).forEach(e=>{t.setAttribute(e,s[e])})}updateArea(){const e=this.childNodes;if(!e)return;const t=e.area;if(!t)return;const n=this.type,i=this.cellView,r=i.getTerminalView(n);if(r){const e=r.cell,o=i.getTerminalMagnet(n);let a,s,l,u=this.options.areaPadding||0;Number.isFinite(u)||(u=0),r.isEdgeElement(o)?(a=r.getBBox(),s=0,l=a.getCenter()):(a=r.getUnrotatedBBoxOfElement(o),s=e.getAngle(),l=a.getCenter(),s&&l.rotate(-s,e.getBBox().getCenter())),a.inflate(u),c.attr(t,{x:-a.width/2,y:-a.height/2,width:a.width,height:a.height,transform:`translate(${l.x}, ${l.y}) rotate(${s})`})}}toggleArea(e){if(this.childNodes){const t=this.childNodes.area;t&&(t.style.display=e?"":"none")}}onMouseDown(e){this.guard(e)||(e.stopPropagation(),e.preventDefault(),this.graph.view.undelegateEvents(),this.options.documentEvents&&this.delegateDocumentEvents(this.options.documentEvents),this.focus(),this.toggleArea(this.options.restrictArea),this.cell.startBatch("move-anchor",{ui:!0,toolId:this.cid}))}resetAnchor(e){const t=this.type,n=this.cell;e?n.prop([t,"anchor"],e,{rewrite:!0,ui:!0,toolId:this.cid}):n.removeProp([t,"anchor"],{ui:!0,toolId:this.cid})}onMouseMove(e){const t=this.type,n=this.cellView,i=n.getTerminalView(t);if(null==i)return;const r=this.normalizeEvent(e),o=i.cell,a=n.getTerminalMagnet(t);let l=this.graph.clientToLocal(r.clientX,r.clientY);const c=this.options.snap;if("function"===typeof c){const e=s.call(c,n,l,i,a,t,n,this);l=xy.create(e)}if(this.options.restrictArea)if(i.isEdgeElement(a)){const e=i.getClosestPoint(l);e&&(l=e)}else{const e=i.getUnrotatedBBoxOfElement(a),t=o.getAngle(),n=o.getBBox().getCenter(),r=l.clone().rotate(t,n);e.containsPoint(r)||(l=e.getNearestPointToPoint(r).rotate(-t,n))}let u;const d=this.options.anchor;"function"===typeof d&&(u=s.call(d,n,l,i,a,t,n,this)),this.resetAnchor(u),this.update()}onMouseUp(e){this.graph.view.delegateEvents(),this.undelegateDocumentEvents(),this.blur(),this.toggleArea(!1);const t=this.cellView;this.options.removeRedundancies&&t.removeRedundantLinearVertices({ui:!0,toolId:this.cid}),this.cell.stopBatch("move-anchor",{ui:!0,toolId:this.cid})}onDblClick(){const e=this.options.resetAnchor;e&&this.resetAnchor(!0===e?void 0:e),this.update()}}(function(e){e.config({tagName:"g",markup:[{tagName:"circle",selector:"anchor",attrs:{cursor:"pointer"}},{tagName:"rect",selector:"area",attrs:{"pointer-events":"none",fill:"none",stroke:"#33334F","stroke-dasharray":"2,4",rx:5,ry:5}}],events:{mousedown:"onMouseDown",touchstart:"onMouseDown",dblclick:"onDblClick"},documentEvents:{mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"},customAnchorAttrs:{"stroke-width":4,stroke:"#33334F",fill:"#FFFFFF",r:5},defaultAnchorAttrs:{"stroke-width":2,stroke:"#FFFFFF",fill:"#33334F",r:6},areaPadding:6,snapRadius:10,resetAnchor:!0,restrictArea:!0,removeRedundancies:!0,anchor:Bx,snap(e,t,n,i,r,o){const a=o.options.snapRadius||0,s="source"===i,l=s?0:-1,c=this.cell.getVertexAt(l)||this.getTerminalAnchor(s?"target":"source");return c&&(Math.abs(c.x-e.x){this.editor.focus(),this.selectText()})}selectText(){if(window.getSelection){const e=document.createRange(),t=window.getSelection();e.selectNodeContents(this.editor),t.removeAllRanges(),t.addRange(e)}}}(function(e){e.config({tagName:"div",isSVGElement:!1,events:{dblclick:"onDblClick",mousedown:"onMouseDown"},documentEvents:{mousedown:"onDocumentMouseDown"}})})(Zx||(Zx={})),function(e){e.NodeEditor=e.define({attrs:{fontSize:14,fontFamily:"Arial, helvetica, sans-serif",color:"#000",backgroundColor:"#fff"},getText({cell:e}){return e.attr("text/text")},setText({cell:e,value:t}){e.attr("text/text",t)}}),e.EdgeEditor=e.define({attrs:{fontSize:14,fontFamily:"Arial, helvetica, sans-serif",color:"#000",backgroundColor:"#fff"},getText({cell:e,index:t}){return-1===t?"":e.prop(`labels/${t}/attrs/label/text`)},setText({cell:e,value:t,index:n,distance:i}){const r=e;-1===n?r.appendLabel({position:{distance:i},attrs:{label:{text:t}}}):r.prop(`labels/${n}/attrs/label/text`,t)}})}(Zx||(Zx={}));var Jx,ew,tw=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r1&&(r/=100),e.getPointAtRatio(r)},Sw=function(e,t,n,i){const r=null!=i.length?i.length:20;return e.getPointAtLength(r)},Ew=function(e,t,n,i){const r=e.getClosestPoint(n);return null!=r?r:new xy},Cw=hw(Ew),xw=function(e,t,n,i){const r=1e6,o=e.getConnection(),a=e.getConnectionSubdivisions(),l=new Ty(n.clone().translate(0,r),n.clone().translate(0,-r)),c=new Ty(n.clone().translate(r,0),n.clone().translate(-r,0)),u=l.intersect(o,{segmentSubdivisions:a}),d=c.intersect(o,{segmentSubdivisions:a}),h=[];return u&&h.push(...u),d&&h.push(...d),h.length>0?n.closest(h):null!=i.fallbackAt?pw(e,i.fallbackAt):s.call(Ew,this,e,t,n,i)},ww=hw(xw);var Tw;function Aw(e,t,n){let i;if("object"===typeof n){if(Number.isFinite(n.y)){const i=new Ty(t,e),{start:r,end:o}=i.parallel(n.y);t=r,e=o}i=n.x}else i=n;if(null==i||!Number.isFinite(i))return e;const r=e.distance(t);return 0===i&&r>0?e:e.move(t,-Math.min(i,r-1))}function Ow(e){const t=e.getAttribute("stroke-width");return null===t?0:parseFloat(t)||0}function Rw(e){if(null==e)return null;let t=e;do{let e=t.tagName;if("string"!==typeof e)return null;if(e=e.toUpperCase(),"G"===e)t=t.firstElementChild;else{if("TITLE"!==e)break;t=t.nextElementSibling}}while(t);return t}(function(e){e.presets=b,e.registry=gS.create({type:"edge endpoint"}),e.registry.register(e.presets,!0)})(Tw||(Tw={}));const Nw=function(e,t,n,i){const r=t.getBBoxOfElement(n);i.stroked&&r.inflate(Ow(n)/2);const o=e.intersect(r),a=o&&o.length?e.start.closest(o):e.end;return Aw(a,e.start,i.offset)},Dw=function(e,t,n,i,r){const o=t.cell,a=o.isNode()?o.getAngle():0;if(0===a)return s.call(Nw,this,e,t,n,i,r);const l=t.getUnrotatedBBoxOfElement(n);i.stroked&&l.inflate(Ow(n)/2);const c=l.getCenter(),u=e.clone().rotate(a,c),d=u.setLength(1e6).intersect(l),h=d&&d.length?u.start.closest(d).rotate(-a,c):e.end;return Aw(h,e.start,i.offset)},Iw=function(e,t,n,i){let o,a;const s=e.end,l=i.selector;if(o="string"===typeof l?t.findOne(l):Array.isArray(l)?r.getByPath(n,l):Rw(n),!c.isSVGGraphicsElement(o)){if(o===n||!c.isSVGGraphicsElement(n))return s;o=n}const u=t.getShapeOfElement(o),d=t.getMatrixOfElement(o),h=t.getRootTranslatedMatrix(),p=t.getRootRotatedMatrix(),f=h.multiply(p).multiply(d),g=f.inverse(),m=c.transformLine(e,g),v=m.start.clone(),_=t.getDataOfElement(o);if(!1===i.insideout){null==_.shapeBBox&&(_.shapeBBox=u.bbox());const e=_.shapeBBox;if(null!=e&&e.containsPoint(v))return s}let y;if(!0===i.extrapolate&&m.setLength(1e6),Ky.isPath(u)){const e=i.precision||2;null==_.segmentSubdivisions&&(_.segmentSubdivisions=u.getSegmentSubdivisions({precision:e})),y={precision:e,segmentSubdivisions:_.segmentSubdivisions},a=m.intersect(u,y)}else a=m.intersect(u);a?Array.isArray(a)&&(a=v.closest(a)):!0===i.sticky&&(a=wy.isRectangle(u)?u.getNearestPointToPoint(v):Ay.isEllipse(u)?u.intersectsWithLineFromCenterToPoint(v):u.closestPoint(v,y));const b=a?c.transformPoint(a,f):s;let S=i.offset||0;return!1!==i.stroked&&("object"===typeof S?(S=Object.assign({},S),null==S.x&&(S.x=0),S.x+=Ow(o)/2):S+=Ow(o)/2),Aw(b,e.start,S)};function Mw(e,t,n=0){const{start:i,end:r}=e;let o,a,s,l;switch(t){case"left":l="x",o=r,a=i,s=-1;break;case"right":l="x",o=i,a=r,s=1;break;case"top":l="y",o=r,a=i,s=-1;break;case"bottom":l="y",o=i,a=r,s=1;break;default:return}i[l]0?c[u]=l[u]:l[u]=c[u],[l.toJSON(),...e,c.toJSON()]};function Bw(e){return new wy(e.x,e.y,0,0)}function $w(e={}){const t=a.normalizeSides(e.padding||20);return{x:-t.left,y:-t.top,width:t.left+t.right,height:t.top+t.bottom}}function Vw(e,t={}){return e.sourceBBox.clone().moveAndExpand($w(t))}function Gw(e,t={}){return e.targetBBox.clone().moveAndExpand($w(t))}function Uw(e,t={}){if(e.sourceAnchor)return e.sourceAnchor;const n=Vw(e,t);return n.getCenter()}function zw(e,t={}){if(e.targetAnchor)return e.targetAnchor;const n=Gw(e,t);return n.getCenter()}const jw=function(e,t,n){let i=Vw(n,t),r=Gw(n,t);const o=Uw(n,t),a=zw(n,t);i=i.union(Bw(o)),r=r.union(Bw(a));const s=e.map(e=>xy.create(e));s.unshift(o),s.push(a);let l=null;const c=[];for(let u=0,d=s.length-1;ut.y?"N":"S":e.y===t.y?e.x>t.x?"W":"E":null}function s(e,n,i){const r=new xy(e.x,n.y),o=new xy(n.x,e.y),s=a(e,r),l=a(e,o),c=i?t[i]:null,u=s===i||s!==c&&(l===c||l!==i)?r:o;return{points:[u],direction:a(u,n)}}function l(e,t,n){const i=r(e,t,n);return{points:[i],direction:a(i,t)}}function c(e,t,n,s){const l=[new xy(e.x,t.y),new xy(t.x,e.y)],c=l.filter(e=>!n.containsPoint(e)),u=c.filter(t=>a(t,e)!==s);let d;if(u.length>0)return d=u.filter(t=>a(e,t)===s).pop(),d=d||u[0],{points:[d],direction:a(d,t)};{d=i.difference(l,c)[0];const u=xy.create(t).move(d,-o(n,s)/2),h=r(u,e,n);return{points:[h,u],direction:a(u,t)}}}function u(e,t,n,i){let r=l(t,e,i);const c=r.points[0];if(n.containsPoint(c)){r=l(e,t,n);const u=r.points[0];if(i.containsPoint(u)){const d=xy.create(e).move(u,-o(n,a(e,u))/2),h=xy.create(t).move(c,-o(i,a(t,c))/2),p=new Ty(d,h).getCenter(),f=l(e,p,n),g=s(p,t,f.direction);r.points=[f.points[0],g.points[0]],r.direction=g.direction}}return r}function d(e,t,i,o,s){const l=i.union(o).inflate(1),c=l.getCenter(),u=c.distance(t)>c.distance(e),d=u?t:e,h=u?e:t;let p,f,g,m;s?(p=xy.fromPolar(l.width+l.height,n[s],d),p=l.getNearestPointToPoint(p).move(p,-1)):p=l.getNearestPointToPoint(d).move(d,1),f=r(p,h,l),p.round().equals(f.round())?(f=xy.fromPolar(l.width+l.height,my.toRad(p.theta(d))+Math.PI/2,h),f=l.getNearestPointToPoint(f).move(h,1).round(),g=r(p,f,l),m=u?[f,g,p]:[p,g,f]):m=u?[f,p]:[p,f];const v=a(u?p:f,t);return{points:m,direction:v}}e.getBBoxSize=o,e.getBearing=a,e.vertexToVertex=s,e.nodeToVertex=l,e.vertexToNode=c,e.nodeToNode=u,e.insideNode=d})(Hw||(Hw={}));const Ww={step:10,maxLoopCount:2e3,precision:1,maxDirectionChange:90,perpendicular:!0,excludeTerminals:[],excludeShapes:[],startDirections:["top","right","bottom","left"],endDirections:["top","right","bottom","left"],directionMap:{top:{x:0,y:-1},right:{x:1,y:0},bottom:{x:0,y:1},left:{x:-1,y:0}},cost(){const e=Yw(this.step,this);return e},directions(){const e=Yw(this.step,this),t=Yw(this.cost,this);return[{cost:t,offsetX:e,offsetY:0},{cost:t,offsetX:0,offsetY:e},{cost:t,offsetX:-e,offsetY:0},{cost:t,offsetX:0,offsetY:-e}]},penalties(){const e=Yw(this.step,this);return{0:0,45:e/2,90:e/2}},paddingBox(){const e=Yw(this.step,this);return{x:-e,y:-e,width:2*e,height:2*e}},fallbackRouter:jw,draggingRouter:null};function Yw(e,t){return"function"===typeof e?e.call(t):e}function qw(e){const t=Object.keys(e).reduce((t,n)=>{const i=t;return i[n]="fallbackRouter"===n||"draggingRouter"===n||"fallbackRoute"===n?e[n]:Yw(e[n],e),t},{});if(t.padding){const n=a.normalizeSides(t.padding);e.paddingBox={x:-n.left,y:-n.top,width:n.left+n.right,height:n.top+n.bottom}}return t.directions.forEach(e=>{const t=new xy(0,0),n=new xy(e.offsetX,e.offsetY);e.angle=my.normalize(t.theta(n))}),t}const Kw=1,Qw=2;class Xw{constructor(){this.items=[],this.hash={},this.values={}}add(e,t){this.hash[e]?this.items.splice(this.items.indexOf(e),1):this.hash[e]=Kw,this.values[e]=t;const n=i.sortedIndexBy(this.items,e,e=>this.values[e]);this.items.splice(n,0,e)}pop(){const e=this.items.shift();return e&&(this.hash[e]=Qw),e}isOpen(e){return this.hash[e]===Kw}isClose(e){return this.hash[e]===Qw}isEmpty(){return 0===this.items.length}}class Zw{constructor(e){this.options=e,this.mapGridSize=100,this.map={}}build(e,t){const n=this.options,r=n.excludeTerminals.reduce((n,i)=>{const r=t[i];if(r){const t=e.getCell(r.cell);t&&n.push(t)}return n},[]);let o=[];const a=e.getCell(t.getSourceCellId());a&&(o=i.union(o,a.getAncestors().map(e=>e.id)));const s=e.getCell(t.getTargetCellId());s&&(o=i.union(o,s.getAncestors().map(e=>e.id)));const l=this.mapGridSize;return e.getNodes().reduce((e,t)=>{const i=t.shape,a=n.excludeShapes,s=!!i&&a.includes(i),c=r.some(e=>e.id===t.id),u=o.includes(t.id),d=s||c||u;if(!d){const i=t.getBBox().moveAndExpand(n.paddingBox),r=i.getOrigin().snapToGrid(l),o=i.getCorner().snapToGrid(l);for(let t=r.x;t<=o.x;t+=l)for(let n=r.y;n<=o.y;n+=l){const r=new xy(t,n).toString();null==e[r]&&(e[r]=[]),e[r].push(i)}}return e},this.map),this}isAccessible(e){const t=e.clone().snapToGrid(this.mapGridSize).toString(),n=this.map[t];return!n||n.every(t=>!t.containsPoint(e))}}function Jw(e,t){const n=e.sourceBBox.clone();return t&&t.paddingBox?n.moveAndExpand(t.paddingBox):n}function eT(e,t){const n=e.targetBBox.clone();return t&&t.paddingBox?n.moveAndExpand(t.paddingBox):n}function tT(e,t){if(e.sourceAnchor)return e.sourceAnchor;const n=Jw(e,t);return n.getCenter()}function nT(e,t){if(e.targetAnchor)return e.targetAnchor;const n=eT(e,t);return n.getCenter()}function iT(e,t,n,i,r){const o=360/n,a=e.theta(rT(e,t,i,r)),s=my.normalize(a+o/2);return o*Math.floor(s/o)}function rT(e,t,n,i){const r=i.step,o=t.x-e.x,a=t.y-e.y,s=o/n.x,l=a/n.y,c=s*r,u=l*r;return new xy(e.x+c,e.y+u)}function oT(e,t){const n=Math.abs(e-t);return n>180?360-n:n}function aT(e,t){const n=t.step;return t.directions.forEach(t=>{t.gridOffsetX=t.offsetX/n*e.x,t.gridOffsetY=t.offsetY/n*e.y}),t.directions}function sT(e,t,n){return{source:t.clone(),x:lT(n.x-t.x,e),y:lT(n.y-t.y,e)}}function lT(e,t){if(!e)return t;const n=Math.abs(e),i=Math.round(n/t);if(!i)return n;const r=i*t,o=n-r,a=o/i;return t+a}function cT(e,t){const n=t.source,i=yC.snapToGrid(e.x-n.x,t.x)+n.x,r=yC.snapToGrid(e.y-n.y,t.y)+n.y;return new xy(i,r)}function uT(e,t){return e.round(t)}function dT(e,t,n){return uT(cT(e.clone(),t),n)}function hT(e){return e.toString()}function pT(e){return new xy(0===e.x?0:Math.abs(e.x)/e.x,0===e.y?0:Math.abs(e.y)/e.y)}function fT(e,t){let n=1/0;for(let i=0,r=t.length;i{if(n.includes(l)){const n=a[l],c=new xy(e.x+n.x*(Math.abs(s.x)+t.width),e.y+n.y*(Math.abs(s.y)+t.height)),u=new Ty(e,c),d=u.intersect(t)||[];let h,p=null;for(let t=0;th)&&(h=i,p=n)}if(p){let e=dT(p,i,o);t.containsPoint(e)&&(e=dT(e.translate(n.x*i.x,n.y*i.y),i,o)),r.push(e)}}return r},[]);return t.containsPoint(e)||l.push(dT(e,i,o)),l}function mT(e,t,n,i,r){const o=[];let a,s=pT(r.diff(n)),l=hT(n),c=e[l];while(c){a=t[l];const n=pT(a.diff(c));n.equals(s)||(o.unshift(a),s=n),l=hT(c),c=e[l]}const u=t[l],d=pT(u.diff(i));return d.equals(s)||o.unshift(u),o}function vT(e,t,n,i,r){const o=r.precision;let a,l;a=wy.isRectangle(t)?uT(tT(e,r).clone(),o):uT(t.clone(),o),l=wy.isRectangle(n)?uT(nT(e,r).clone(),o):uT(n.clone(),o);const c=sT(r.step,a,l),u=a,d=l;let h,p;if(h=wy.isRectangle(t)?gT(u,t,r.startDirections,c,r):[u],p=wy.isRectangle(n)?gT(l,n,r.endDirections,c,r):[d],h=h.filter(e=>i.isAccessible(e)),p=p.filter(e=>i.isAccessible(e)),h.length>0&&p.length>0){const e=new Xw,t={},n={},a={};for(let i=0,r=h.length;i{const n=hT(t);return e.push(n),e},[]),y=xy.equalPoints(h,p);let b=r.maxLoopCount;while(!e.isEmpty()&&b>0){const h=e.pop(),S=t[h],E=n[h],C=a[h],x=S.equals(u),w=null==E;let T;T=w?l?x?null:iT(u,S,v,c,r):s:iT(E,S,v,c,r);const A=w&&y;if(!A&&_.indexOf(h)>=0)return r.previousDirectionAngle=T,mT(n,t,S,u,d);for(let s=0;sr.maxDirectionChange)continue;const h=dT(S.clone().translate(f.gridOffsetX||0,f.gridOffsetY||0),c,o),y=hT(h);if(e.isClose(y)||!i.isAccessible(h))continue;if(_.indexOf(y)>=0){const e=h.equals(d);if(!e){const e=iT(h,d,v,c,r),t=oT(u,e);if(t>r.maxDirectionChange)continue}}const b=f.cost,E=x?0:r.penalties[g],w=C+b+E;(!e.isOpen(y)||wxy.create(e)),u=[];let d,h,p=a;for(let f=0,g=c.length;f<=g;f+=1){let t=null;if(d=h||r,h=c[f],null==h){h=o;const e=n.cell,l=null==e.getSourceCellId()||null==e.getTargetCellId();if(l&&"function"===typeof i.draggingRouter){const e=d===r?a:d,o=h.getOrigin();t=s.call(i.draggingRouter,n,e,o,i)}}if(null==t&&(t=vT(n,d,h,l,i)),null===t)return s.call(i.fallbackRouter,this,e,i,n);const g=t[0];g&&g.equals(p)&&t.shift(),p=t[t.length-1]||p,u.push(...t)}return u},yT=function(e,t,n){return s.call(_T,this,e,Object.assign(Object.assign({},Ww),t),n)},bT={maxDirectionChange:45,directions(){const e=Yw(this.step,this),t=Yw(this.cost,this),n=Math.ceil(Math.sqrt(e*e<<1));return[{cost:t,offsetX:e,offsetY:0},{cost:n,offsetX:e,offsetY:e},{cost:t,offsetX:0,offsetY:e},{cost:n,offsetX:-e,offsetY:e},{cost:t,offsetX:-e,offsetY:0},{cost:n,offsetX:-e,offsetY:-e},{cost:t,offsetX:0,offsetY:-e},{cost:n,offsetX:e,offsetY:-e}]},fallbackRoute(e,t,n){const i=e.theta(t),r=[];let o={x:t.x,y:e.y},a={x:e.x,y:t.y};if(i%180>90){const e=o;o=a,a=e}const s=i%90<45?o:a,l=new Ty(e,s),c=90*Math.ceil(i/90),u=xy.fromPolar(l.squaredLength(),my.toRad(c+135),s),d=new Ty(t,u),h=l.intersectsWithLine(d),p=h||t,f=h?p:e,g=360/n.directions.length,m=f.theta(t),v=my.normalize(m+g/2),_=g*Math.floor(v/g);return n.previousDirectionAngle=_,p&&r.push(p.round()),r.push(t),r}},ST=function(e,t,n){return s.call(yT,this,e,Object.assign(Object.assign({},bT),t),n)},ET=function(e,t,n){const i=t.offset||32,r=null==t.min?16:t.min;let o=0,a=t.direction;const s=n.sourceBBox,l=n.targetBBox,c=s.getCenter(),u=l.getCenter();if("number"===typeof i&&(o=i),null==a){let e=l.left-s.right,t=l.top-s.bottom;e>=0&&t>=0?a=e>=t?"L":"T":e<=0&&t>=0?(e=s.left-l.right,a=e>=0&&e>=t?"R":"T"):e>=0&&t<=0?(t=s.top-l.bottom,a=t>=0?e>=t?"L":"B":"L"):(e=s.left-l.right,t=s.top-l.bottom,a=e>=0&&t>=0?e>=t?"R":"B":e<=0&&t>=0?"B":e>=0&&t<=0?"R":Math.abs(e)>Math.abs(t)?"R":"B")}let d,h,p;"H"===a?a=u.x-c.x>=0?"L":"R":"V"===a&&(a=u.y-c.y>=0?"T":"B"),"center"===i&&("L"===a?o=(l.left-s.right)/2:"R"===a?o=(s.left-l.right)/2:"T"===a?o=(l.top-s.bottom)/2:"B"===a&&(o=(s.top-l.bottom)/2));const f="L"===a||"R"===a;if(f){if(u.y===c.y)return[...e];p="L"===a?1:-1,d="x",h="width"}else{if(u.x===c.x)return[...e];p="T"===a?1:-1,d="y",h="height"}const g=c.clone(),m=u.clone();if(g[d]+=p*(s[h]/2+o),m[d]-=p*(l[h]/2+o),f){const e=g.x,t=m.x,n=s.width/2+r,i=l.width/2+r;u.x>c.x?t<=e&&(g.x=Math.max(t,c.x+n),m.x=Math.min(e,u.x-i)):t>=e&&(g.x=Math.min(t,c.x-n),m.x=Math.max(e,u.x+i))}else{const e=g.y,t=m.y,n=s.height/2+r,i=l.height/2+r;u.y>c.y?t<=e&&(g.y=Math.max(t,c.y+n),m.y=Math.min(e,u.y-i)):t>=e&&(g.y=Math.min(t,c.y-n),m.y=Math.max(e,u.y+i))}return[g.toJSON(),...e,m.toJSON()]};function CT(e,t){if(null!=t&&!1!==t){const n="boolean"===typeof t?0:t;if(n>0){const t=xy.create(e[1]).move(e[2],n),i=xy.create(e[1]).move(e[0],n);return[t.toJSON(),...e,i.toJSON()]}{const t=e[1];return[Object.assign({},t),...e,Object.assign({},t)]}}return e}const xT=function(e,t,n){const i=t.width||50,r=t.height||80,o=r/2,a=t.angle||"auto",s=n.sourceAnchor,l=n.targetAnchor,c=n.sourceBBox,u=n.targetBBox;if(s.equals(l)){const e=e=>{const t=my.toRad(e),n=Math.sin(t),r=Math.cos(t),a=new xy(s.x+r*i,s.y+n*i),l=new xy(a.x-r*o,a.y-n*o),c=l.clone().rotate(-90,a),u=l.clone().rotate(90,a);return[c.toJSON(),a.toJSON(),u.toJSON()]},n=e=>{const t=s.clone().move(e,-1),n=new Ty(t,e);return!c.containsPoint(e)&&!c.intersectsWithLine(n)},r=[0,90,180,270,45,135,225,315];if("number"===typeof a)return CT(e(a),t.merge);const l=c.getCenter();if(l.equals(s))return CT(e(0),t.merge);const u=l.angleBetween(s,l.clone().translate(1,0));let d=e(u);if(n(d[1]))return CT(d,t.merge);for(let i=1,o=r.length;i1&&(o.rotate(180-i,n),a.rotate(180-i,n),s.rotate(180-i,n))}const l=`\n M ${e.x} ${e.y}\n Q ${o.x} ${o.y} ${s.x} ${s.y}\n Q ${a.x} ${a.y} ${t.x} ${t.y}\n `;return i.raw?Ky.parse(l):l},OT=function(e,t,n,i={}){const r=new Ky;r.appendSegment(Ky.createSegment("M",e));const o=1/3,a=2/3,s=i.radius||10;let l,c;for(let u=0,d=n.length;u=Math.abs(e.y-t.y)?"H":"V"),"H"===o){const n=(e.x+t.x)/2;r.appendSegment(Ky.createSegment("C",n,e.y,n,t.y,t.x,t.y))}else{const n=(e.y+t.y)/2;r.appendSegment(Ky.createSegment("C",e.x,n,t.x,n,t.x,t.y))}return i.raw?r:r.serialize()},NT=1,DT=1/3,IT=2/3;function MT(e){let t=e.graph._jumpOverUpdateList;if(null==t&&(t=e.graph._jumpOverUpdateList=[],e.graph.on("cell:mouseup",()=>{const t=e.graph._jumpOverUpdateList;for(let e=0;e{t=e.graph._jumpOverUpdateList=[]})),t.indexOf(e)<0){t.push(e);const n=()=>t.splice(t.indexOf(e),1);e.cell.once("change:connector",n),e.cell.once("removed",n)}}function kT(e,t,n=[]){const i=[e,...n,t],r=[];return i.forEach((e,t)=>{const n=i[t+1];null!=n&&r.push(new Ty(e,n))}),r}function LT(e,t){const n=[];return t.forEach(t=>{const i=e.intersectsWithLine(t);i&&n.push(i)}),n}function PT(e,t){return new Ty(e,t).squaredLength()}function FT(e,t,n){return t.reduce((i,r,o)=>{if(GT.includes(r))return i;const a=i.pop()||e,s=xy.create(r).move(a.start,-n);let l=xy.create(r).move(a.start,+n);const c=t[o+1];if(null!=c){const e=l.distance(c);e<=n&&(l=c.move(a.start,e),GT.push(c))}else{const e=s.distance(a.end);if(e<2*n+NT)return i.push(a),i}const u=l.distance(a.start);if(u<2*n+NT)return i.push(a),i;const d=new Ty(s,l);return VT.push(d),i.push(new Ty(a.start,s),d,new Ty(l,a.end)),i},[])}function BT(e,t,n,i){const r=new Ky;let o;return o=Ky.createSegment("M",e[0].start),r.appendSegment(o),e.forEach((a,s)=>{if(VT.includes(a)){let e,i,s,l;if("arc"===n){e=-90,i=a.start.diff(a.end);const t=i.x<0||0===i.x&&i.y<0;t&&(e+=180);const n=a.getCenter(),c=new Ty(n,a.end).rotate(e,n);let u;u=new Ty(a.start,n),s=u.pointAt(2/3).rotate(e,a.start),l=c.pointAt(1/3).rotate(-e,c.end),o=Ky.createSegment("C",s,l,c.end),r.appendSegment(o),u=new Ty(n,a.end),s=c.pointAt(1/3).rotate(e,c.end),l=u.pointAt(1/3).rotate(-e,a.end),o=Ky.createSegment("C",s,l,a.end),r.appendSegment(o)}else if("gap"===n)o=Ky.createSegment("M",a.end),r.appendSegment(o);else if("cubic"===n){e=a.start.theta(a.end);const n=.6*t;let c=1.35*t;i=a.start.diff(a.end);const u=i.x<0||0===i.x&&i.y<0;u&&(c*=-1),s=new xy(a.start.x+n,a.start.y+c).rotate(e,a.start),l=new xy(a.end.x-n,a.end.y+c).rotate(e,a.end),o=Ky.createSegment("C",s,l,a.end),r.appendSegment(o)}}else{const t=e[s+1];0===i||!t||VT.includes(t)?(o=Ky.createSegment("L",a.end),r.appendSegment(o)):$T(i,r,a.end,a.start,t.end)}}),r}function $T(e,t,n,i,r){const o=n.distance(i)/2,a=n.distance(r)/2,s=-Math.min(e,o),l=-Math.min(e,a),c=n.clone().move(i,s).round(),u=n.clone().move(r,l).round(),d=new xy(DT*c.x+IT*n.x,IT*n.y+DT*c.y),h=new xy(DT*u.x+IT*n.x,IT*n.y+DT*u.y);let p;p=Ky.createSegment("L",c),t.appendSegment(p),p=Ky.createSegment("C",d,h,u),t.appendSegment(p)}let VT,GT;const UT=function(e,t,n,i={}){VT=[],GT=[],MT(this);const r=i.size||5,o=i.type||"arc",a=i.radius||0,s=i.ignoreConnectors||["smooth"],l=this.graph,c=l.model,u=c.getEdges();if(1===u.length)return BT(kT(e,t,n),r,o,a);const d=this.cell,h=u.indexOf(d),p=l.options.connecting.connector||{},f=u.filter((e,t)=>{const n=e.getConnector()||p;return!s.includes(n.name)&&(!(t>h)||"jumpover"!==n.name)}),g=f.map(e=>{return l.renderer.findViewByCell(e)}),m=kT(e,t,n),v=g.map(e=>{return null==e?[]:e===this?m:kT(e.sourcePoint,e.targetPoint,e.routePoints)}),_=[];m.forEach(e=>{const t=f.reduce((t,n,i)=>{if(n!==d){const n=LT(e,v[i]);t.push(...n)}return t},[]).sort((t,n)=>PT(e.start,t)-PT(e.start,n));t.length>0?_.push(...FT(e,t,r)):_.push(e)});const y=BT(_,r,o,a);return VT=[],GT=[],i.raw?y:y.serialize()};var zT;(function(e){e.presets=C,e.registry=gS.create({type:"connector"}),e.registry.register(e.presets,!0)})(zT||(zT={}));const jT=gS.create;class HT{constructor(e){this.cell=e,this.ids={},this.cache={}}get(){return Object.keys(this.ids)}start(e,t,n={},i="/"){const o=this.cell.getPropByPath(e),a=r.defaults(n,HT.defaultOptions),s=this.getTiming(a.timing),l=this.getInterp(a.interp,o,t);let u=0;const d=Array.isArray(e)?e.join(i):e,h=Array.isArray(e)?e:e.split(i),p=()=>{const e=(new Date).getTime();0===u&&(u=e);const t=e-u;let i=t/a.duration;i<1?this.ids[d]=c.requestAnimationFrame(p):i=1;const r=l(s(i));this.cell.setPropByPath(h,r),n.progress&&n.progress(Object.assign({progress:i,currentValue:r},this.getArgs(d))),1===i&&(this.cell.notify("transition:end",this.getArgs(d)),this.cell.notify("transition:complete",this.getArgs(d)),n.complete&&n.complete(this.getArgs(d)),this.cell.notify("transition:finish",this.getArgs(d)),n.finish&&n.finish(this.getArgs(d)),this.clean(d))};return setTimeout(()=>{this.stop(e,void 0,i),this.cache[d]={startValue:o,targetValue:t,options:a},this.ids[d]=c.requestAnimationFrame(p),this.cell.notify("transition:begin",this.getArgs(d)),this.cell.notify("transition:start",this.getArgs(d)),n.start&&n.start(this.getArgs(d))},n.delay),this.stop.bind(this,e,i,n)}stop(e,t={},n="/"){const i=Array.isArray(e)?e:e.split(n);return Object.keys(this.ids).filter(e=>r.isEqual(i,e.split(n).slice(0,i.length))).forEach(e=>{c.cancelAnimationFrame(this.ids[e]);const n=this.cache[e],i=this.getArgs(e),r=Object.assign(Object.assign({},n.options),t),o=r.jumpedToEnd;o&&null!=n.targetValue&&(this.cell.setPropByPath(e,n.targetValue),this.cell.notify("transition:end",Object.assign({},i)),this.cell.notify("transition:complete",Object.assign({},i)),r.complete&&r.complete(Object.assign({},i)));const a=Object.assign({jumpedToEnd:o},i);this.cell.notify("transition:stop",Object.assign({},a)),r.stop&&r.stop(Object.assign({},a)),this.cell.notify("transition:finish",Object.assign({},i)),r.finish&&r.finish(Object.assign({},i)),this.clean(e)}),this}clean(e){delete this.ids[e],delete this.cache[e]}getTiming(e){return"string"===typeof e?gx[e]:e}getInterp(e,t,n){return e?e(t,n):"number"===typeof n?mx.number(t,n):"string"===typeof n?"#"===n[0]?mx.color(t,n):mx.unit(t,n):mx.object(t,n)}getArgs(e){const t=this.cache[e];return{path:e,startValue:t.startValue,targetValue:t.targetValue,cell:this.cell}}}(function(e){e.defaultOptions={delay:10,duration:100,timing:"linear"}})(HT||(HT={}));var WT=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class YT extends hx{constructor(e={}){super(),this.pending=!1,this.changing=!1,this.data={},this.mutate(r.cloneDeep(e)),this.changed={}}mutate(e,t={}){const n=!0===t.unset,i=!0===t.silent,o=[],a=this.changing;this.changing=!0,a||(this.previous=r.cloneDeep(this.data),this.changed={});const s=this.data,l=this.previous,c=this.changed;if(Object.keys(e).forEach(t=>{const i=t,a=e[i];r.isEqual(s[i],a)||o.push(i),r.isEqual(l[i],a)?delete c[i]:c[i]=a,n?delete s[i]:s[i]=a}),!i&&o.length>0&&(this.pending=!0,this.pendingOptions=t,o.forEach(e=>{this.emit("change:*",{key:e,options:t,store:this,current:s[e],previous:l[e]})})),a)return this;if(!i)while(this.pending)this.pending=!1,this.emit("changed",{current:s,previous:l,store:this,options:this.pendingOptions});return this.pending=!1,this.changing=!1,this.pendingOptions=null,this}get(e,t){if(null==e)return this.data;const n=this.data[e];return null==n?t:n}getPrevious(e){if(this.previous){const t=this.previous[e];return null==t?void 0:t}}set(e,t,n){return null!=e&&("object"===typeof e?this.mutate(e,t):this.mutate({[e]:t},n)),this}remove(e,t){const n=void 0,i={};let r;if("string"===typeof e)i[e]=n,r=t;else if(Array.isArray(e))e.forEach(e=>i[e]=n),r=t;else{for(const e in this.data)i[e]=n;r=e}return this.mutate(i,Object.assign(Object.assign({},r),{unset:!0})),this}getByPath(e){return r.getByPath(this.data,e,"/")}setByPath(e,t,n={}){const i="/",o=Array.isArray(e)?[...e]:e.split(i),a=Array.isArray(e)?e.join(i):e,s=o[0],l=o.length;if(n.propertyPath=a,n.propertyValue=t,n.propertyPathArray=o,1===l)this.set(s,t,n);else{const a={};let c=a,u=s;for(let e=1;e0:e in this.changed}getChanges(e){if(null==e)return this.hasChanged()?r.cloneDeep(this.changed):null;const t=this.changing?this.previous:this.data,n={};let i;for(const o in e){const a=e[o];r.isEqual(t[o],a)||(n[o]=a,i=!0)}return i?r.cloneDeep(n):null}toJSON(){return r.cloneDeep(this.data)}clone(){const e=this.constructor;return new e(this.data)}dispose(){this.off(),this.data={},this.previous={},this.changed={},this.pending=!1,this.changing=!1,this.pendingOptions=null,this.trigger("disposed",{store:this})}}WT([hx.dispose()],YT.prototype,"dispose",null);var qT,KT=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},QT=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const t=n[e];"function"===typeof t&&this.propHooks.push(t)})),i&&(this.attrHooks=Object.assign(Object.assign({},this.attrHooks),i)),this.defaults=r.merge({},this.defaults,o)}static getMarkup(){return this.markup}static getDefaults(e){return e?this.defaults:r.cloneDeep(this.defaults)}static getAttrHooks(){return this.attrHooks}static applyPropHooks(e,t){return this.propHooks.reduce((t,n)=>{return n?s.call(n,e,t):t},t)}get[Symbol.toStringTag](){return XT.toStringTag}init(){}get model(){return this._model}set model(e){this._model!==e&&(this._model=e)}preprocess(e,t){const n=e.id,i=this.constructor,r=i.applyPropHooks(this,e);return null==n&&!0!==t&&(r.id=o.uuid()),r}postprocess(e){}setup(){this.store.on("change:*",e=>{const{key:t,current:n,previous:i,options:r}=e;this.notify("change:*",{key:t,options:r,current:n,previous:i,cell:this}),this.notify(`change:${t}`,{options:r,current:n,previous:i,cell:this});const o=t;"source"!==o&&"target"!==o||this.notify("change:terminal",{type:o,current:n,previous:i,options:r,cell:this})}),this.store.on("changed",({options:e})=>this.notify("changed",{options:e,cell:this}))}notify(e,t){this.trigger(e,t);const n=this.model;return n&&(n.notify(`cell:${e}`,t),this.isNode()?n.notify(`node:${e}`,Object.assign(Object.assign({},t),{node:this})):this.isEdge()&&n.notify(`edge:${e}`,Object.assign(Object.assign({},t),{edge:this}))),this}isNode(){return!1}isEdge(){return!1}isSameStore(e){return this.store===e.store}get view(){return this.store.get("view")}get shape(){return this.store.get("shape","")}getProp(e,t){return null==e?this.store.get():this.store.get(e,t)}setProp(e,t,n){if("string"===typeof e)this.store.set(e,t,n);else{const n=this.preprocess(e,!0);this.store.set(r.merge({},this.getProp(),n),t),this.postprocess(e)}return this}removeProp(e,t){return"string"===typeof e||Array.isArray(e)?this.store.removeByPath(e,t):this.store.remove(t),this}hasChanged(e){return null==e?this.store.hasChanged():this.store.hasChanged(e)}getPropByPath(e){return this.store.getByPath(e)}setPropByPath(e,t,n={}){return this.model&&("children"===e?this._children=t?t.map(e=>this.model.getCell(e)).filter(e=>null!=e):null:"parent"===e&&(this._parent=t?this.model.getCell(t):null)),this.store.setByPath(e,t,n),this}removePropByPath(e,t={}){const n=Array.isArray(e)?e:e.split("/");return"attrs"===n[0]&&(t.dirty=!0),this.store.removeByPath(n,t),this}prop(e,t,n){return null==e?this.getProp():"string"===typeof e||Array.isArray(e)?1===arguments.length?(Array.isArray(e),this.getPropByPath(e)):null==t?Array.isArray(e)?this.removePropByPath(e):this.removeAttrByPath(e,n||{}):this.setPropByPath(e,t,n||{}):this.setProp(e,t||{})}previous(e){return this.store.getPrevious(e)}get zIndex(){return this.getZIndex()}set zIndex(e){null==e?this.removeZIndex():this.setZIndex(e)}getZIndex(){return this.store.get("zIndex")}setZIndex(e,t={}){return this.store.set("zIndex",e,t),this}removeZIndex(e={}){return this.store.remove("zIndex",e),this}toFront(e={}){const t=this.model;if(t){let n,i=t.getMaxZIndex();e.deep?(n=this.getDescendants({deep:!0,breadthFirst:!0}),n.unshift(this)):n=[this],i=i-n.length+1;const r=t.total();let o=t.indexOf(this)!==r-n.length;o||(o=n.some((e,t)=>e.getZIndex()!==i+t)),o&&this.batchUpdate("to-front",()=>{i+=n.length,n.forEach((t,n)=>{t.setZIndex(i+n,e)})})}return this}toBack(e={}){const t=this.model;if(t){let n,i=t.getMinZIndex();e.deep?(n=this.getDescendants({deep:!0,breadthFirst:!0}),n.unshift(this)):n=[this];let r=0!==t.indexOf(this);r||(r=n.some((e,t)=>e.getZIndex()!==i+t)),r&&this.batchUpdate("to-back",()=>{i-=n.length,n.forEach((t,n)=>{t.setZIndex(i+n,e)})})}return this}get markup(){return this.getMarkup()}set markup(e){null==e?this.removeMarkup():this.setMarkup(e)}getMarkup(){let e=this.store.get("markup");if(null==e){const t=this.constructor;e=t.getMarkup()}return e}setMarkup(e,t={}){return this.store.set("markup",e,t),this}removeMarkup(e={}){return this.store.remove("markup",e),this}get attrs(){return this.getAttrs()}set attrs(e){null==e?this.removeAttrs():this.setAttrs(e)}getAttrs(){const e=this.store.get("attrs");return e?Object.assign({},e):{}}setAttrs(e,t={}){if(null==e)this.removeAttrs(t);else{const n=e=>this.store.set("attrs",e,t);if(!0===t.overwrite)n(e);else{const i=this.getAttrs();!1===t.deep?n(Object.assign(Object.assign({},i),e)):n(r.merge({},i,e))}}return this}replaceAttrs(e,t={}){return this.setAttrs(e,Object.assign(Object.assign({},t),{overwrite:!0}))}updateAttrs(e,t={}){return this.setAttrs(e,Object.assign(Object.assign({},t),{deep:!1}))}removeAttrs(e={}){return this.store.remove("attrs",e),this}getAttrDefinition(e){if(!e)return null;const t=this.constructor,n=t.getAttrHooks()||{};let i=n[e]||YE.registry.get(e);if(!i){const t=o.camelCase(e);i=n[t]||YE.registry.get(t)}return i||null}getAttrByPath(e){return null==e||""===e?this.getAttrs():this.getPropByPath(this.prefixAttrPath(e))}setAttrByPath(e,t,n={}){return this.setPropByPath(this.prefixAttrPath(e),t,n),this}removeAttrByPath(e,t={}){return this.removePropByPath(this.prefixAttrPath(e),t),this}prefixAttrPath(e){return Array.isArray(e)?["attrs"].concat(e):`attrs/${e}`}attr(e,t,n){return null==e?this.getAttrByPath():"string"===typeof e||Array.isArray(e)?1===arguments.length?this.getAttrByPath(e):null==t?this.removeAttrByPath(e,n||{}):this.setAttrByPath(e,t,n||{}):this.setAttrs(e,t||{})}get visible(){return this.isVisible()}set visible(e){this.setVisible(e)}setVisible(e,t={}){return this.store.set("visible",e,t),this}isVisible(){return!1!==this.store.get("visible")}show(e={}){return this.isVisible()||this.setVisible(!0,e),this}hide(e={}){return this.isVisible()&&this.setVisible(!1,e),this}toggleVisible(e,t={}){const n="boolean"===typeof e?e:!this.isVisible(),i="boolean"===typeof e?t:e;return n?this.show(i):this.hide(i),this}get data(){return this.getData()}set data(e){this.setData(e)}getData(){return this.store.get("data")}setData(e,t={}){if(null==e)this.removeData(t);else{const n=e=>this.store.set("data",e,t);if(!0===t.overwrite)n(e);else{const i=this.getData();!1===t.deep?n("object"===typeof e?Object.assign(Object.assign({},i),e):e):n(r.merge({},i,e))}}return this}replaceData(e,t={}){return this.setData(e,Object.assign(Object.assign({},t),{overwrite:!0}))}updateData(e,t={}){return this.setData(e,Object.assign(Object.assign({},t),{deep:!1}))}removeData(e={}){return this.store.remove("data",e),this}get parent(){return this.getParent()}get children(){return this.getChildren()}getParentId(){return this.store.get("parent")}getParent(){const e=this.getParentId();if(e&&this.model){const t=this.model.getCell(e);return this._parent=t,t}return null}getChildren(){const e=this.store.get("children");if(e&&e.length&&this.model){const t=e.map(e=>{var t;return null===(t=this.model)||void 0===t?void 0:t.getCell(e)}).filter(e=>null!=e);return this._children=t,[...t]}return null}hasParent(){return null!=this.parent}isParentOf(e){return null!=e&&e.getParent()===this}isChildOf(e){return null!=e&&this.getParent()===e}eachChild(e,t){return this.children&&this.children.forEach(e,t),this}filterChild(e,t){return this.children?this.children.filter(e,t):[]}getChildCount(){return null==this.children?0:this.children.length}getChildIndex(e){return null==this.children?-1:this.children.indexOf(e)}getChildAt(e){return null!=this.children&&e>=0?this.children[e]:null}getAncestors(e={}){const t=[];let n=this.getParent();while(n)t.push(n),n=!1!==e.deep?n.getParent():null;return t}getDescendants(e={}){if(!1!==e.deep){if(e.breadthFirst){const e=[],t=this.getChildren()||[];while(t.length>0){const n=t.shift(),i=n.getChildren();e.push(n),i&&t.push(...i)}return e}{const t=this.getChildren()||[];return t.forEach(n=>{t.push(...n.getDescendants(e))}),t}}return this.getChildren()||[]}isDescendantOf(e,t={}){if(null==e)return!1;if(!1!==t.deep){let t=this.getParent();while(t){if(t===e)return!0;t=t.getParent()}return!1}return this.isChildOf(e)}isAncestorOf(e,t={}){return null!=e&&e.isDescendantOf(this,t)}contains(e){return this.isAncestorOf(e)}getCommonAncestor(...e){return XT.getCommonAncestor(this,...e)}setParent(e,t={}){return this._parent=e,e?this.store.set("parent",e.id,t):this.store.remove("parent",t),this}setChildren(e,t={}){return this._children=e,null!=e?this.store.set("children",e.map(e=>e.id),t):this.store.remove("children",t),this}unembed(e,t={}){const n=this.children;if(null!=n&&null!=e){const i=this.getChildIndex(e);-1!==i&&(n.splice(i,1),e.setParent(null,t),this.setChildren(n,t))}return this}embed(e,t={}){return e.addTo(this,t),this}addTo(e,t={}){return XT.isCell(e)?e.addChild(this,t):e.addCell(this,t),this}insertTo(e,t,n={}){return e.insertChild(this,t,n),this}addChild(e,t={}){return this.insertChild(e,void 0,t)}insertChild(e,t,n={}){if(null!=e&&e!==this){const i=e.getParent(),r=this!==i;let o=t;if(null==o&&(o=this.getChildCount(),r||(o-=1)),i){const t=i.getChildren();if(t){const r=t.indexOf(e);r>=0&&(e.setParent(null,n),t.splice(r,1),i.setChildren(t,n))}}let a=this.children;if(null==a?(a=[],a.push(e)):a.splice(o,0,e),e.setParent(this,n),this.setChildren(a,n),r&&this.model){const e=this.model.getIncomingEdges(this),t=this.model.getOutgoingEdges(this);e&&e.forEach(e=>e.updateParent(n)),t&&t.forEach(e=>e.updateParent(n))}this.model&&this.model.addCell(e,n)}return this}removeFromParent(e={}){const t=this.getParent();if(null!=t){const n=t.getChildIndex(this);t.removeChildAt(n,e)}return this}removeChild(e,t={}){const n=this.getChildIndex(e);return this.removeChildAt(n,t)}removeChildAt(e,t={}){const n=this.getChildAt(e),i=this.children;return null!=i&&null!=n&&(this.unembed(n,t),n.remove(t)),n}remove(e={}){return this.batchUpdate("remove",()=>{const t=this.getParent();t&&t.removeChild(this,e),!1!==e.deep&&this.eachChild(t=>t.remove(e)),this.model&&this.model.removeCell(this,e)}),this}transition(e,t,n={},i="/"){return this.animation.start(e,t,n,i)}stopTransition(e,t,n="/"){return this.animation.stop(e,t,n),this}getTransitions(){return this.animation.get()}translate(e,t,n){return this}scale(e,t,n,i){return this}addTools(e,t,n){const i=Array.isArray(e)?e:[e],o="string"===typeof t?t:null,a="object"===typeof t?t:"object"===typeof n?n:{};if(a.reset)return this.setTools({name:o,items:i,local:a.local},a);let s=r.cloneDeep(this.getTools());return null==s||null==o||s.name===o?(null==s&&(s={}),s.items||(s.items=[]),s.name=o,s.items=[...s.items,...i],this.setTools(Object.assign({},s),a)):void 0}setTools(e,t={}){return null==e?this.removeTools():this.store.set("tools",XT.normalizeTools(e),t),this}getTools(){return this.store.get("tools")}removeTools(e={}){return this.store.remove("tools",e),this}hasTools(e){const t=this.getTools();return null!=t&&(null==e||t.name===e)}hasTool(e){const t=this.getTools();return null!=t&&t.items.some(t=>"string"===typeof t?t===e:t.name===e)}removeTool(e,t={}){const n=r.cloneDeep(this.getTools());if(n){let i=!1;const r=n.items.slice(),o=e=>{r.splice(e,1),i=!0};if("number"===typeof e)o(e);else for(let t=r.length-1;t>=0;t-=1){const n=r[t],i="string"===typeof n?n===e:n.name===e;i&&o(t)}i&&(n.items=r,this.setTools(n,t))}return this}getBBox(e){return new wy}getConnectionPoint(e,t){return new xy}toJSON(e={}){const t=Object.assign({},this.store.get()),n=Object.prototype.toString,i=this.isNode()?"node":this.isEdge()?"edge":"cell";if(!t.shape){const e=this.constructor;throw new Error(`Unable to serialize ${i} missing "shape" prop, check the ${i} "${e.name||n.call(e)}"`)}const o=this.constructor,a=!0===e.diff,s=t.attrs||{},l=o.getDefaults(!0),c=a?this.preprocess(l,!0):l,u=c.attrs||{},d={};Object.keys(t).forEach(e=>{const o=t[e];if(null!=o&&!Array.isArray(o)&&"object"===typeof o&&!r.isPlainObject(o))throw new Error(`Can only serialize ${i} with plain-object props, but got a "${n.call(o)}" type of key "${e}" on ${i} "${this.id}"`);if("attrs"!==e&&"shape"!==e&&a){const n=c[e];r.isEqual(o,n)&&delete t[e]}}),Object.keys(s).forEach(e=>{const t=s[e],n=u[e];Object.keys(t).forEach(i=>{const o=t[i],a=n?n[i]:null;null==o||"object"!==typeof o||Array.isArray(o)?null!=n&&r.isEqual(a,o)||(null==d[e]&&(d[e]={}),d[e][i]=o):Object.keys(o).forEach(t=>{const s=o[t];if(null==n||null==a||!r.isObject(a)||!r.isEqual(a[t],s)){null==d[e]&&(d[e]={}),null==d[e][i]&&(d[e][i]={});const n=d[e][i];n[t]=s}})})});const h=Object.assign(Object.assign({},t),{attrs:r.isEmpty(d)?void 0:d});null==h.attrs&&delete h.attrs;const p=h;return 0===p.angle&&delete p.angle,r.cloneDeep(p)}clone(e={}){if(!e.deep){const e=Object.assign({},this.store.get());delete e.id,delete e.parent,delete e.children;const t=this.constructor;return new t(e)}const t=XT.deepClone(this);return t[this.id]}findView(e){return e.renderer.findViewByCell(this)}startBatch(e,t={},n=this.model){return this.notify("batch:start",{name:e,data:t,cell:this}),n&&n.startBatch(e,Object.assign(Object.assign({},t),{cell:this})),this}stopBatch(e,t={},n=this.model){return n&&n.stopBatch(e,Object.assign(Object.assign({},t),{cell:this})),this.notify("batch:stop",{name:e,data:t,cell:this}),this}batchUpdate(e,t,n){const i=this.model;this.startBatch(e,n,i);const r=t();return this.stopBatch(e,n,i),r}dispose(){this.removeFromParent(),this.store.dispose()}}XT.defaults={},XT.attrHooks={},XT.propHooks=[],KT([hx.dispose()],XT.prototype,"dispose",null),function(e){function t(e){return"string"===typeof e?{items:[e]}:Array.isArray(e)?{items:e}:e.items?e:{items:[e]}}e.normalizeTools=t}(XT||(XT={})),function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&"function"===typeof i.isNode&&"function"===typeof i.isEdge&&"function"===typeof i.prop&&"function"===typeof i.attr}e.toStringTag=`X6.${e.name}`,e.isCell=t}(XT||(XT={})),function(e){function t(...e){const t=e.filter(e=>null!=e).map(e=>e.getAncestors()).sort((e,t)=>{return e.length-t.length}),n=t.shift();return n.find(e=>t.every(t=>t.includes(e)))||null}function n(e,t={}){let n=null;for(let i=0,r=e.length;i{return e[t.id]=t.clone(),e},{});return t.forEach(e=>{const t=n[e.id];if(t.isEdge()){const e=t.getSourceCellId(),i=t.getTargetCellId();e&&n[e]&&t.setSource(Object.assign(Object.assign({},t.getSource()),{cell:n[e].id})),i&&n[i]&&t.setTarget(Object.assign(Object.assign({},t.getTarget()),{cell:n[i].id}))}const i=e.getParent();i&&n[i.id]&&t.setParent(n[i.id]);const r=e.getChildren();if(r&&r.length){const e=r.reduce((e,t)=>{return n[t.id]&&e.push(n[t.id]),e},[]);e.length>0&&t.setChildren(e)}}),n}e.getCommonAncestor=t,e.getCellsBBox=n,e.deepClone=r,e.cloneCells=o}(XT||(XT={})),function(e){e.config({propHooks(t){var{tools:n}=t,i=QT(t,["tools"]);return n&&(i.tools=e.normalizeTools(n)),i}})}(XT||(XT={})),function(e){let t,n;function i(e,i){return i?null!=t&&t.exist(e):null!=n&&n.exist(e)}function r(e){t=e}function o(e){n=e}e.exist=i,e.setEdgeRegistry=r,e.setNodeRegistry=o}(qT||(qT={}));class ZT{constructor(e){this.ports=[],this.groups={},this.init(r.cloneDeep(e))}getPorts(){return this.ports}getGroup(e){return null!=e?this.groups[e]:null}getPortsByGroup(e){return this.ports.filter(t=>t.group===e||null==t.group&&null==e)}getPortsLayoutByGroup(e,t){const n=this.getPortsByGroup(e),i=e?this.getGroup(e):null,r=i?i.position:null,o=r?r.name:null;let a;if(null!=o){const e=UC.registry.get(o);if(null==e)return UC.registry.onNotFound(o);a=e}else a=UC.presets.left;const s=n.map(e=>e&&e.position&&e.position.args||{}),l=r&&r.args||{},c=a(s,t,l);return c.map((e,i)=>{const r=n[i];return{portLayout:e,portId:r.id,portSize:r.size,portAttrs:r.attrs,labelSize:r.label.size,labelLayout:this.getPortLabelLayout(r,xy.create(e.position),t)}})}init(e){const{groups:t,items:n}=e;null!=t&&Object.keys(t).forEach(e=>{this.groups[e]=this.parseGroup(t[e])}),Array.isArray(n)&&n.forEach(e=>{this.ports.push(this.parsePort(e))})}parseGroup(e){return Object.assign(Object.assign({},e),{label:this.getLabel(e,!0),position:this.getPortPosition(e.position,!0)})}parsePort(e){const t=Object.assign({},e),n=this.getGroup(e.group)||{};return t.markup=t.markup||n.markup,t.attrs=r.merge({},n.attrs,t.attrs),t.position=this.createPosition(n,t),t.label=r.merge({},n.label,this.getLabel(t)),t.zIndex=this.getZIndex(n,t),t.size=Object.assign(Object.assign({},n.size),t.size),t}getZIndex(e,t){return"number"===typeof t.zIndex?t.zIndex:"number"===typeof e.zIndex||"auto"===e.zIndex?e.zIndex:"auto"}createPosition(e,t){return r.merge({name:"left",args:{}},e.position,{args:t.args})}getPortPosition(e,t=!1){if(null==e){if(t)return{name:"left",args:{}}}else{if("string"===typeof e)return{name:e,args:{}};if(Array.isArray(e))return{name:"absolute",args:{x:e[0],y:e[1]}};if("object"===typeof e)return e}return{args:{}}}getPortLabelPosition(e,t=!1){if(null==e){if(t)return{name:"left",args:{}}}else{if("string"===typeof e)return{name:e,args:{}};if("object"===typeof e)return e}return{args:{}}}getLabel(e,t=!1){const n=e.label||{};return n.position=this.getPortLabelPosition(n.position,t),n}getPortLabelLayout(e,t,n){const i=e.label.position.name||"left",r=e.label.position.args||{},o=ax.registry.get(i)||ax.presets.left;return o?o(t,n,r):null}}var JT=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var r;const o=null===(r=n.exclude)||void 0===r?void 0:r.includes(i);o||i.translate(e,t,n)})):(this.startBatch("translate",n),this.store.set("position",r,n),this.eachChild(i=>{var r;const o=null===(r=n.exclude)||void 0===r?void 0:r.includes(i);o||i.translate(e,t,n)}),this.stopBatch("translate",n)),this}angle(e,t){return null==e?this.getAngle():this.rotate(e,t)}getAngle(){return this.store.get("angle",0)}rotate(e,t={}){const n=this.getAngle();if(t.center){const i=this.getSize(),r=this.getPosition(),o=this.getBBox().getCenter();o.rotate(n-e,t.center);const a=o.x-i.width/2-r.x,s=o.y-i.height/2-r.y;this.startBatch("rotate",{angle:e,options:t}),this.setPosition(r.x+a,r.y+s,t),this.rotate(e,Object.assign(Object.assign({},t),{center:null})),this.stopBatch("rotate")}else this.store.set("angle",t.absolute?e:(n+e)%360,t);return this}getBBox(e={}){if(e.deep){const e=this.getDescendants({deep:!0,breadthFirst:!0});return e.push(this),XT.getCellsBBox(e)}return wy.fromPositionAndSize(this.getPosition(),this.getSize())}getConnectionPoint(e,t){const n=this.getBBox(),i=n.getCenter(),r=e.getTerminal(t);if(null==r)return i;const o=r.port;if(!o||!this.hasPort(o))return i;const a=this.getPort(o);if(!a||!a.group)return i;const s=this.getPortsPosition(a.group),l=s[o].position,c=xy.create(l).translate(n.getOrigin()),u=this.getAngle();return u&&c.rotate(-u,i),c}fit(e={}){const t=this.getChildren()||[],n=t.filter(e=>e.isNode());if(0===n.length)return this;this.startBatch("fit-embeds",e),e.deep&&n.forEach(t=>t.fit(e));let{x:i,y:r,width:o,height:s}=XT.getCellsBBox(n);const l=a.normalizeSides(e.padding);return i-=l.left,r-=l.top,o+=l.left+l.right,s+=l.bottom+l.top,this.store.set({position:{x:i,y:r},size:{width:o,height:s}},e),this.stopBatch("fit-embeds"),this}get portContainerMarkup(){return this.getPortContainerMarkup()}set portContainerMarkup(e){this.setPortContainerMarkup(e)}getDefaultPortContainerMarkup(){return this.store.get("defaultPortContainerMarkup")||Dx.getPortContainerMarkup()}getPortContainerMarkup(){return this.store.get("portContainerMarkup")||this.getDefaultPortContainerMarkup()}setPortContainerMarkup(e,t={}){return this.store.set("portContainerMarkup",Dx.clone(e),t),this}get portMarkup(){return this.getPortMarkup()}set portMarkup(e){this.setPortMarkup(e)}getDefaultPortMarkup(){return this.store.get("defaultPortMarkup")||Dx.getPortMarkup()}getPortMarkup(){return this.store.get("portMarkup")||this.getDefaultPortMarkup()}setPortMarkup(e,t={}){return this.store.set("portMarkup",Dx.clone(e),t),this}get portLabelMarkup(){return this.getPortLabelMarkup()}set portLabelMarkup(e){this.setPortLabelMarkup(e)}getDefaultPortLabelMarkup(){return this.store.get("defaultPortLabelMarkup")||Dx.getPortLabelMarkup()}getPortLabelMarkup(){return this.store.get("portLabelMarkup")||this.getDefaultPortLabelMarkup()}setPortLabelMarkup(e,t={}){return this.store.set("portLabelMarkup",Dx.clone(e),t),this}get ports(){const e=this.store.get("ports",{items:[]});return null==e.items&&(e.items=[]),e}getPorts(){return r.cloneDeep(this.ports.items)}getPortsByGroup(e){return this.getPorts().filter(t=>t.group===e)}getPort(e){return r.cloneDeep(this.ports.items.find(t=>t.id&&t.id===e))}getPortAt(e){return this.ports.items[e]||null}hasPorts(){return this.ports.items.length>0}hasPort(e){return-1!==this.getPortIndex(e)}getPortIndex(e){const t="string"===typeof e?e:e.id;return null!=t?this.ports.items.findIndex(e=>e.id===t):-1}getPortsPosition(e){const t=this.getSize(),n=this.port.getPortsLayoutByGroup(e,new wy(0,0,t.width,t.height));return n.reduce((e,t)=>{const n=t.portLayout;return e[t.portId]={position:Object.assign({},n.position),angle:n.angle||0},e},{})}getPortProp(e,t){return this.getPropByPath(this.prefixPortPath(e,t))}setPortProp(e,t,n,i){if("string"===typeof t||Array.isArray(t)){const r=this.prefixPortPath(e,t),o=n;return this.setPropByPath(r,o,i)}const r=this.prefixPortPath(e),o=t;return this.setPropByPath(r,o,n)}removePortProp(e,t,n){return"string"===typeof t||Array.isArray(t)?this.removePropByPath(this.prefixPortPath(e,t),n):this.removePropByPath(this.prefixPortPath(e),t)}portProp(e,t,n,i){return null==t?this.getPortProp(e):"string"===typeof t||Array.isArray(t)?2===arguments.length?this.getPortProp(e,t):null==n?this.removePortProp(e,t,i):this.setPortProp(e,t,n,i):this.setPortProp(e,t,n)}prefixPortPath(e,t){const n=this.getPortIndex(e);if(-1===n)throw new Error(`Unable to find port with id: "${e}"`);return null==t||""===t?["ports","items",`${n}`]:Array.isArray(t)?["ports","items",`${n}`,...t]:`ports/items/${n}/${t}`}addPort(e,t){const n=[...this.ports.items];return n.push(e),this.setPropByPath("ports/items",n,t),this}addPorts(e,t){return this.setPropByPath("ports/items",[...this.ports.items,...e],t),this}removePort(e,t={}){return this.removePortAt(this.getPortIndex(e),t)}removePortAt(e,t={}){if(e>=0){const n=[...this.ports.items];n.splice(e,1),t.rewrite=!0,this.setPropByPath("ports/items",n,t)}return this}removePorts(e,t){let n;if(Array.isArray(e)){if(n=t||{},e.length){n.rewrite=!0;const t=[...this.ports.items],i=t.filter(t=>!e.some(e=>{const n="string"===typeof e?e:e.id;return t.id===n}));this.setPropByPath("ports/items",i,n)}}else n=e||{},n.rewrite=!0,this.setPropByPath("ports/items",[],n);return this}getParsedPorts(){return this.port.getPorts()}getParsedGroups(){return this.port.groups}getPortsLayoutByGroup(e,t){return this.port.getPortsLayoutByGroup(e,t)}initPorts(){this.updatePortData(),this.on("change:ports",()=>{this.processRemovedPort(),this.updatePortData()})}processRemovedPort(){const e=this.ports,t={};e.items.forEach(e=>{e.id&&(t[e.id]=!0)});const n={},i=this.store.getPrevious("ports")||{items:[]};i.items.forEach(e=>{e.id&&!t[e.id]&&(n[e.id]=!0)});const o=this.model;if(o&&!r.isEmpty(n)){const e=o.getConnectedEdges(this,{incoming:!0});e.forEach(e=>{const t=e.getTargetPortId();t&&n[t]&&e.remove()});const t=o.getConnectedEdges(this,{outgoing:!0});t.forEach(e=>{const t=e.getSourcePortId();t&&n[t]&&e.remove()})}}validatePorts(){const e={},t=[];return this.ports.items.forEach(n=>{"object"!==typeof n&&t.push(`Invalid port ${n}.`),null==n.id&&(n.id=this.generatePortId()),e[n.id]&&t.push("Duplicitied port id."),e[n.id]=!0}),t}generatePortId(){return o.uuid()}updatePortData(){const e=this.validatePorts();if(e.length>0)throw this.store.set("ports",this.store.getPrevious("ports")),new Error(e.join(" "));const t=this.port?this.port.getPorts():null;this.port=new ZT(this.ports);const n=this.port.getPorts(),i=t?n.filter(e=>{return t.find(t=>t.id===e.id)?null:e}):[...n],r=t?t.filter(e=>{return n.find(t=>t.id===e.id)?null:e}):[];i.length>0&&this.notify("ports:added",{added:i,cell:this,node:this}),r.length>0&&this.notify("ports:removed",{removed:r,cell:this,node:this})}}eA.defaults={angle:0,position:{x:0,y:0},size:{width:1,height:1}},function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&"function"===typeof i.isNode&&"function"===typeof i.isEdge&&"function"===typeof i.prop&&"function"===typeof i.attr&&"function"===typeof i.size&&"function"===typeof i.position}e.toStringTag=`X6.${e.name}`,e.isNode=t}(eA||(eA={})),function(e){e.config({propHooks(e){var{ports:t}=e,n=JT(e,["ports"]);return t&&(n.ports=Array.isArray(t)?{items:t}:t),n}})}(eA||(eA={})),function(e){e.registry=gS.create({type:"node",process(t,n){if(qT.exist(t,!0))throw new Error(`Node with name '${t}' was registered by anthor Edge`);if("function"===typeof n)return n.config({shape:t}),n;let i=e;const{inherit:r}=n,o=JT(n,["inherit"]);if(r)if("string"===typeof r){const e=this.get(r);null==e?this.onNotFound(r,"inherited"):i=e}else i=r;null==o.constructorName&&(o.constructorName=t);const a=i.define.call(i,o);return a.config({shape:t}),a}}),qT.setNodeRegistry(e.registry)}(eA||(eA={})),function(e){let t=0;function n(e){return e?o.pascalCase(e):(t+=1,`CustomNode${t}`)}function i(t){const{constructorName:i,overwrite:o}=t,a=JT(t,["constructorName","overwrite"]),s=r.createClass(n(i||a.shape),this);return s.config(a),a.shape&&e.registry.register(a.shape,s,o),s}function a(t){const n=t.shape||"rect",i=e.registry.get(n);return i?new i(t):e.registry.onNotFound(n)}e.define=i,e.create=a}(eA||(eA={}));var tA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<${e}/>${t?"":""}`}function oA(e){return`basic.${e}`}function aA(e="xlink:href"){const t=t=>{const{imageUrl:n,imageWidth:i,imageHeight:r}=t,o=iA(t,["imageUrl","imageWidth","imageHeight"]);if(null!=n||null!=i||null!=r){const t=()=>{if(o.attrs){const t=o.attrs.image;null!=n&&(t[e]=n),null!=i&&(t.width=i),null!=r&&(t.height=r),o.attrs.image=t}};o.attrs?(null==o.attrs.image&&(o.attrs.image={}),t()):(o.attrs={image:{}},t())}return o};return t}function sA(e,t,n={}){const i=oA(e),o={constructorName:i,attrs:{".":{fill:"#ffffff",stroke:"none"},[e]:{fill:"#ffffff",stroke:"#000000"}}};n.ignoreMarkup||(o.markup=rA(e,!0===n.noText));const a=n.parent||nA;return a.define(r.merge(o,t,{shape:i}))}sA("rect",{attrs:{rect:{width:100,height:60}}}),sA("circle",{width:60,height:60,attrs:{circle:{r:30,cx:30,cy:30}}}),sA("ellipse",{width:60,height:40,attrs:{ellipse:{rx:30,ry:20,cx:30,cy:20}}}),sA("polygon",{width:60,height:40,attrs:{text:{refY:null,refDy:16}}}),sA("polyline",{width:60,height:40,attrs:{text:{refY:null,refDy:16}}}),sA("image",{attrs:{text:{refY:null,refDy:16}},propHooks:aA()});var lA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r"string"===typeof e||"number"===typeof e;if(null!=n)if(XT.isCell(n))d.source={cell:n.id};else if(h(n))d.source={cell:n};else if(xy.isPoint(n))d.source=n.toJSON();else if(Array.isArray(n))d.source={x:n[0],y:n[1]};else{const e=n.cell;XT.isCell(e)?d.source=Object.assign(Object.assign({},n),{cell:e.id}):d.source=n}if(null!=i||null!=r){let e=d.source;if(null!=i){const t=h(i)?i:i.id;e?e.cell=t:e=d.source={cell:t}}null!=r&&e&&(e.port=r)}else null!=o&&(d.source=xy.create(o).toJSON());if(null!=a)if(XT.isCell(a))d.target={cell:a.id};else if(h(a))d.target={cell:a};else if(xy.isPoint(a))d.target=a.toJSON();else if(Array.isArray(a))d.target={x:a[0],y:a[1]};else{const e=a.cell;XT.isCell(e)?d.target=Object.assign(Object.assign({},a),{cell:e.id}):d.target=a}if(null!=s||null!=l){let e=d.target;if(null!=s){const t=h(s)?s:s.id;e?e.cell=t:e=d.target={cell:t}}null!=l&&e&&(e.port=l)}else null!=c&&(d.target=xy.create(c).toJSON());return super.preprocess(d,t)}setup(){super.setup(),this.on("change:labels",e=>this.onLabelsChanged(e)),this.on("change:vertices",e=>this.onVertexsChanged(e))}isEdge(){return!0}disconnect(e={}){return this.store.set({source:{x:0,y:0},target:{x:0,y:0}},e),this}get source(){return this.getSource()}set source(e){this.setSource(e)}getSource(){return this.getTerminal("source")}getSourceCellId(){return this.source.cell}getSourcePortId(){return this.source.port}setSource(e,t,n={}){return this.setTerminal("source",e,t,n)}get target(){return this.getTarget()}set target(e){this.setTarget(e)}getTarget(){return this.getTerminal("target")}getTargetCellId(){return this.target.cell}getTargetPortId(){return this.target.port}setTarget(e,t,n={}){return this.setTerminal("target",e,t,n)}getTerminal(e){return Object.assign({},this.store.get(e))}setTerminal(e,t,n,i={}){if(XT.isCell(t))return this.store.set(e,r.merge({},n,{cell:t.id}),i),this;const o=t;return xy.isPoint(t)||null!=o.x&&null!=o.y?(this.store.set(e,r.merge({},n,{x:o.x,y:o.y}),i),this):(this.store.set(e,r.cloneDeep(t),i),this)}getSourcePoint(){return this.getTerminalPoint("source")}getTargetPoint(){return this.getTerminalPoint("target")}getTerminalPoint(e){const t=this[e];if(xy.isPointLike(t))return xy.create(t);const n=this.getTerminalCell(e);return n?n.getConnectionPoint(this,e):new xy}getSourceCell(){return this.getTerminalCell("source")}getTargetCell(){return this.getTerminalCell("target")}getTerminalCell(e){if(this.model){const t="source"===e?this.getSourceCellId():this.getTargetCellId();if(t)return this.model.getCell(t)}return null}getSourceNode(){return this.getTerminalNode("source")}getTargetNode(){return this.getTerminalNode("target")}getTerminalNode(e){let t=this;const n={};while(t&&t.isEdge()){if(n[t.id])return null;n[t.id]=!0,t=t.getTerminalCell(e)}return t&&t.isNode()?t:null}get router(){return this.getRouter()}set router(e){null==e?this.removeRouter():this.setRouter(e)}getRouter(){return this.store.get("router")}setRouter(e,t,n){return"object"===typeof e?this.store.set("router",e,t):this.store.set("router",{name:e,args:t},n),this}removeRouter(e={}){return this.store.remove("router",e),this}get connector(){return this.getConnector()}set connector(e){null==e?this.removeConnector():this.setConnector(e)}getConnector(){return this.store.get("connector")}setConnector(e,t,n){return"object"===typeof e?this.store.set("connector",e,t):this.store.set("connector",{name:e,args:t},n),this}removeConnector(e={}){return this.store.remove("connector",e)}get strategy(){return this.getStrategy()}set strategy(e){null==e?this.removeStrategy():this.setStrategy(e)}getStrategy(){return this.store.get("strategy")}setStrategy(e,t,n){return"object"===typeof e?this.store.set("strategy",e,t):this.store.set("strategy",{name:e,args:t},n),this}removeStrategy(e={}){return this.store.remove("strategy",e)}getDefaultLabel(){const e=this.constructor,t=this.store.get("defaultLabel")||e.defaultLabel||{};return r.cloneDeep(t)}get labels(){return this.getLabels()}set labels(e){this.setLabels(e)}getLabels(){return[...this.store.get("labels",[])].map(e=>this.parseLabel(e))}setLabels(e,t={}){return this.store.set("labels",Array.isArray(e)?e:[e],t),this}insertLabel(e,t,n={}){const i=this.getLabels(),r=i.length;let o=null!=t&&Number.isFinite(t)?t:r;return o<0&&(o=r+o+1),i.splice(o,0,this.parseLabel(e)),this.setLabels(i,n)}appendLabel(e,t={}){return this.insertLabel(e,-1,t)}getLabelAt(e){const t=this.getLabels();return null!=e&&Number.isFinite(e)?this.parseLabel(t[e]):null}setLabelAt(e,t,n={}){if(null!=e&&Number.isFinite(e)){const i=this.getLabels();i[e]=this.parseLabel(t),this.setLabels(i,n)}return this}removeLabelAt(e,t={}){const n=this.getLabels(),i=null!=e&&Number.isFinite(e)?e:-1,r=n.splice(i,1);return this.setLabels(n,t),r.length?r[0]:null}parseLabel(e){if("string"===typeof e){const t=this.constructor;return t.parseStringLabel(e)}return e}onLabelsChanged({previous:e,current:t}){const n=e&&t?t.filter(t=>{return e.find(e=>t===e||r.isEqual(t,e))?null:t}):t?[...t]:[],i=e&&t?e.filter(e=>{return t.find(t=>e===t||r.isEqual(e,t))?null:e}):e?[...e]:[];n.length>0&&this.notify("labels:added",{added:n,cell:this,edge:this}),i.length>0&&this.notify("labels:removed",{removed:i,cell:this,edge:this})}get vertexMarkup(){return this.getVertexMarkup()}set vertexMarkup(e){this.setVertexMarkup(e)}getDefaultVertexMarkup(){return this.store.get("defaultVertexMarkup")||Dx.getEdgeVertexMarkup()}getVertexMarkup(){return this.store.get("vertexMarkup")||this.getDefaultVertexMarkup()}setVertexMarkup(e,t={}){return this.store.set("vertexMarkup",Dx.clone(e),t),this}get vertices(){return this.getVertices()}set vertices(e){this.setVertices(e)}getVertices(){return[...this.store.get("vertices",[])]}setVertices(e,t={}){const n=Array.isArray(e)?e:[e];return this.store.set("vertices",n.map(e=>xy.toJSON(e)),t),this}insertVertex(e,t,n={}){const i=this.getVertices(),r=i.length;let o=null!=t&&Number.isFinite(t)?t:r;return o<0&&(o=r+o+1),i.splice(o,0,xy.toJSON(e)),this.setVertices(i,n)}appendVertex(e,t={}){return this.insertVertex(e,-1,t)}getVertexAt(e){if(null!=e&&Number.isFinite(e)){const t=this.getVertices();return t[e]}return null}setVertexAt(e,t,n={}){if(null!=e&&Number.isFinite(e)){const i=this.getVertices();i[e]=t,this.setVertices(i,n)}return this}removeVertexAt(e,t={}){const n=this.getVertices(),i=null!=e&&Number.isFinite(e)?e:-1;return n.splice(i,1),this.setVertices(n,t)}onVertexsChanged({previous:e,current:t}){const n=e&&t?t.filter(t=>{return e.find(e=>xy.equals(t,e))?null:t}):t?[...t]:[],i=e&&t?e.filter(e=>{return t.find(t=>xy.equals(e,t))?null:e}):e?[...e]:[];n.length>0&&this.notify("vertexs:added",{added:n,cell:this,edge:this}),i.length>0&&this.notify("vertexs:removed",{removed:i,cell:this,edge:this})}getDefaultMarkup(){return this.store.get("defaultMarkup")||Dx.getEdgeMarkup()}getMarkup(){return super.getMarkup()||this.getDefaultMarkup()}get toolMarkup(){return this.getToolMarkup()}set toolMarkup(e){this.setToolMarkup(e)}getDefaultToolMarkup(){return this.store.get("defaultToolMarkup")||Dx.getEdgeToolMarkup()}getToolMarkup(){return this.store.get("toolMarkup")||this.getDefaultToolMarkup()}setToolMarkup(e,t={}){return this.store.set("toolMarkup",e,t),this}get doubleToolMarkup(){return this.getDoubleToolMarkup()}set doubleToolMarkup(e){this.setDoubleToolMarkup(e)}getDefaultDoubleToolMarkup(){return this.store.get("defaultDoubleToolMarkup")}getDoubleToolMarkup(){return this.store.get("doubleToolMarkup")||this.getDefaultDoubleToolMarkup()}setDoubleToolMarkup(e,t={}){return this.store.set("doubleToolMarkup",e,t),this}get arrowheadMarkup(){return this.getArrowheadMarkup()}set arrowheadMarkup(e){this.setArrowheadMarkup(e)}getDefaultArrowheadMarkup(){return this.store.get("defaultArrowheadMarkup")||Dx.getEdgeArrowheadMarkup()}getArrowheadMarkup(){return this.store.get("arrowheadMarkup")||this.getDefaultArrowheadMarkup()}setArrowheadMarkup(e,t={}){return this.store.set("arrowheadMarkup",e,t),this}translate(e,t,n={}){return n.translateBy=n.translateBy||this.id,n.tx=e,n.ty=t,this.applyToPoints(n=>({x:(n.x||0)+e,y:(n.y||0)+t}),n)}scale(e,t,n,i={}){return this.applyToPoints(i=>{return xy.create(i).scale(e,t,n).toJSON()},i)}applyToPoints(e,t={}){const n={},i=this.getSource(),r=this.getTarget();xy.isPointLike(i)&&(n.source=e(i)),xy.isPointLike(r)&&(n.target=e(r));const o=this.getVertices();return o.length>0&&(n.vertices=o.map(e)),this.store.set(n,t),this}getBBox(){return this.getPolyline().bbox()}getConnectionPoint(){return this.getPolyline().pointAt(.5)}getPolyline(){const e=[this.getSourcePoint(),this.getTargetPoint()],t=this.getVertices();return t.forEach(t=>e.push(xy.create(t))),new Oy(e)}updateParent(e){let t=null;const n=this.getSourceCell(),i=this.getTargetCell(),r=this.getParent();return n&&i&&(t=n===i||n.isDescendantOf(i)?i:i.isDescendantOf(n)?n:XT.getCommonAncestor(n,i)),!r||t&&t.id===r.id||r.unembed(this,e),t&&t.embed(this,e),t}hasLoop(e={}){const t=this.getSource(),n=this.getTarget(),i=t.cell,r=n.cell;if(!i||!r)return!1;let o=i===r;if(!o&&e.deep&&this._model){const t=this.getSourceCell(),n=this.getTargetCell();t&&n&&(o=t.isAncestorOf(n,e)||n.isAncestorOf(t,e))}return o}getFragmentAncestor(){const e=[this,this.getSourceNode(),this.getTargetNode()].filter(e=>null!=e);return this.getCommonAncestor(...e)}isFragmentDescendantOf(e){const t=this.getFragmentAncestor();return!!t&&(t.id===e.id||t.isDescendantOf(e))}}dA.defaults={},function(e){function t(e,t){const n=e,i=t;return n.cell===i.cell&&(n.port===i.port||null==n.port&&null==i.port)}e.equalTerminals=t}(dA||(dA={})),function(e){function t(e){return{attrs:{label:{text:e}}}}e.defaultLabel={markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"}],attrs:{text:{fill:"#000",fontSize:14,textAnchor:"middle",textVerticalAnchor:"middle",pointerEvents:"none"},rect:{ref:"label",fill:"#fff",rx:3,ry:3,refWidth:1,refHeight:1,refX:0,refY:0}},position:{distance:.5}},e.parseStringLabel=t}(dA||(dA={})),function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&"function"===typeof i.isNode&&"function"===typeof i.isEdge&&"function"===typeof i.prop&&"function"===typeof i.attr&&"function"===typeof i.disconnect&&"function"===typeof i.getSource&&"function"===typeof i.getTarget}e.toStringTag=`X6.${e.name}`,e.isEdge=t}(dA||(dA={})),function(e){e.registry=gS.create({type:"edge",process(t,n){if(qT.exist(t,!1))throw new Error(`Edge with name '${t}' was registered by anthor Node`);if("function"===typeof n)return n.config({shape:t}),n;let i=e;const{inherit:r="edge"}=n,o=uA(n,["inherit"]);if("string"===typeof r){const e=this.get(r||"edge");null==e&&r?this.onNotFound(r,"inherited"):i=e}else i=r;null==o.constructorName&&(o.constructorName=t);const a=i.define.call(i,o);return a.config({shape:t}),a}}),qT.setEdgeRegistry(e.registry)}(dA||(dA={})),function(e){let t=0;function n(e){return e?o.pascalCase(e):(t+=1,`CustomEdge${t}`)}function i(t){const{constructorName:i,overwrite:o}=t,a=uA(t,["constructorName","overwrite"]),s=r.createClass(n(i||a.shape),this);return s.config(a),a.shape&&e.registry.register(a.shape,s,o),s}function a(t){const n=t.shape||"edge",i=e.registry.get(n);return i?new i(t):e.registry.onNotFound(n)}e.define=i,e.create=a}(dA||(dA={})),function(e){const t="basic.edge";e.config({shape:t,propHooks(t){const{label:n,vertices:i}=t,r=uA(t,["label","vertices"]);if(n){null==r.labels&&(r.labels=[]);const t="string"===typeof n?e.parseStringLabel(n):n;r.labels.push(t)}return i&&Array.isArray(i)&&(r.vertices=i.map(e=>xy.create(e).toJSON())),r}}),e.registry.register(t,e)}(dA||(dA={}));var hA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);rthis.renderVertexMarkers()),n=this.handleAction(n,"update",()=>this.update(null,t)),n=this.handleAction(n,"labels",()=>this.onLabelsChange(t)),n=this.handleAction(n,"tools",()=>{this.renderTools(),this.updateToolsPosition()}),n=this.handleAction(n,"widget",()=>this.renderExternalTools()),n)}onLabelsChange(e={}){this.shouldRerenderLabels(e)?this.renderLabels():this.updateLabels(),this.updateLabelPositions()}shouldRerenderLabels(e={}){const t=this.cell.previous("labels");if(null==t)return!0;if("propertyPathArray"in e&&"propertyValue"in e){const n=e.propertyPathArray||[],i=n.length;if(i>1){const o=n[1];if(t[o]){if(2===i)return"object"===typeof e.propertyValue&&r.has(e.propertyValue,"markup");if("markup"!==n[2])return!1}}}return!0}render(){return this.empty(),this.containers={},this.renderMarkup(),this.renderLabels(),this.update(),this}renderMarkup(){const e=this.cell.markup;if(e)return"string"===typeof e?this.renderStringMarkup(e):this.renderJSONMarkup(e);throw new TypeError("Invalid edge markup.")}renderJSONMarkup(e){const t=this.parseJSONMarkup(e,this.container);this.selectors=t.selectors,this.container.append(t.fragment)}renderStringMarkup(e){const t=this.containers,n=Qy.createVectors(e);n.forEach(e=>{const n=e.attr("class");n&&(t[o.camelCase(n)]=e.node)}),this.renderTools(),this.renderVertexMarkers(),this.renderArrowheadMarkers(),c.append(this.container,n.map(e=>e.node))}renderLabels(){const e=this.cell,t=e.getLabels(),n=t.length;let i=this.containers.labels;if(this.labelCache={},this.labelSelectors={},n<=0)return i&&i.parentNode&&i.parentNode.removeChild(i),this;i?this.empty(i):(i=c.createSvgElement("g"),this.addClass(this.prefixClassName("edge-labels"),i),this.containers.labels=i);for(let r=0,o=t.length;r1||"G"!==i[0].nodeName.toUpperCase()?Qy.create("g").append(t):Qy.create(i[0]),n.addClass(this.prefixClassName("edge-label")),{node:n.node,selectors:e.selectors}}updateLabels(){if(this.containers.labels){const e=this.cell,t=e.labels,n=this.can("edgeLabelMovable"),i=e.getDefaultLabel();for(let o=0,a=t.length;o{n.append(Qy.create(e(Object.assign({index:i},t))).node)})}return this}renderArrowheadMarkers(){const e=this.containers.arrowheads;if(null==e)return this;const t=this.cell.arrowheadMarkup,n=this.$(e).empty();if(Dx.isStringMarkup(t)){const e=o.template(t),i=Qy.create(e({end:"source"})).node,r=Qy.create(e({end:"target"})).node;this.containers.sourceArrowhead=i,this.containers.targetArrowhead=r,n.append(i,r)}return this}update(e,t={}){this.cleanCache(),this.updateConnection(t);const n=this.cell.getAttrs();return null!=n&&this.updateAttrs(this.container,n,{attrs:e===n?null:e,selectors:this.selectors}),this.updateConnectionPath(),this.updateLabelPositions(),this.updateToolsPosition(),this.updateArrowheadMarkers(),null==t.toolId?this.renderExternalTools():this.updateTools(t),this}removeRedundantLinearVertices(e={}){const t=this.cell,n=t.getVertices(),i=[this.sourceAnchor,...n,this.targetAnchor],r=i.length,o=new Oy(i);o.simplify({threshold:.01});const a=o.points.map(e=>e.toJSON()),s=a.length;return r===s?0:(t.setVertices(a.slice(1,s-1),e),r-s)}updateConnectionPath(){const e=this.containers;if(e.connection){const t=this.getConnectionPathData();e.connection.setAttribute("d",t)}if(e.connectionWrap){const t=this.getConnectionPathData();e.connectionWrap.setAttribute("d",t)}e.sourceMarker&&e.targetMarker&&this.translateAndAutoOrientArrows(e.sourceMarker,e.targetMarker)}getTerminalView(e){switch(e){case"source":return this.sourceView||null;case"target":return this.targetView||null;default:throw new Error(`Unknown terminal type '${e}'`)}}getTerminalAnchor(e){switch(e){case"source":return xy.create(this.sourceAnchor);case"target":return xy.create(this.targetAnchor);default:throw new Error(`Unknown terminal type '${e}'`)}}getTerminalConnectionPoint(e){switch(e){case"source":return xy.create(this.sourcePoint);case"target":return xy.create(this.targetPoint);default:throw new Error(`Unknown terminal type '${e}'`)}}getTerminalMagnet(e,t={}){switch(e){case"source":{if(t.raw)return this.sourceMagnet;const e=this.sourceView;return e?this.sourceMagnet||e.container:null}case"target":{if(t.raw)return this.targetMagnet;const e=this.targetView;return e?this.targetMagnet||e.container:null}default:throw new Error(`Unknown terminal type '${e}'`)}}updateConnection(e={}){const t=this.cell;if(e.translateBy&&t.isFragmentDescendantOf(e.translateBy)){const t=e.tx||0,n=e.ty||0;this.routePoints=new Oy(this.routePoints).translate(t,n).points,this.translateConnectionPoints(t,n),this.path.translate(t,n)}else{const e=t.getVertices(),n=this.findAnchors(e);this.sourceAnchor=n.source,this.targetAnchor=n.target,this.routePoints=this.findRoutePoints(e);const i=this.findConnectionPoints(this.routePoints,this.sourceAnchor,this.targetAnchor);this.sourcePoint=i.source,this.targetPoint=i.target;const r=this.findMarkerPoints(this.routePoints,this.sourcePoint,this.targetPoint);this.path=this.findPath(this.routePoints,r.source||this.sourcePoint,r.target||this.targetPoint)}this.cleanCache()}findAnchors(e){const t=this.cell,n=t.source,i=t.target,r=e[0],o=e[e.length-1];return i.priority&&!n.priority?this.findAnchorsOrdered("target",o,"source",r):this.findAnchorsOrdered("source",r,"target",o)}findAnchorsOrdered(e,t,n,i){let r,o;const a=this.cell,s=a[e],l=a[n],c=this.getTerminalView(e),u=this.getTerminalView(n),d=this.getTerminalMagnet(e),h=this.getTerminalMagnet(n);if(c){let n;n=t?xy.create(t):u?h:xy.create(l),r=this.getAnchor(s.anchor,c,d,n,e)}else r=xy.create(s);if(u){const e=xy.create(i||r);o=this.getAnchor(l.anchor,u,h,e,n)}else o=xy.isPointLike(l)?xy.create(l):new xy;return{[e]:r,[n]:o}}getAnchor(e,t,n,i,r){const o=t.isEdgeElement(n),a=this.graph.options.connecting;let l,c="string"===typeof e?{name:e}:e;if(!c){const e=o?("source"===r?a.sourceEdgeAnchor:a.targetEdgeAnchor)||a.edgeAnchor:("source"===r?a.sourceAnchor:a.targetAnchor)||a.anchor;c="string"===typeof e?{name:e}:e}if(!c)throw new Error("Anchor should be specified.");const u=c.name;if(o){const e=Tw.registry.get(u);if("function"!==typeof e)return Tw.registry.onNotFound(u);l=s.call(e,this,t,n,i,c.args||{},r)}else{const e=yw.registry.get(u);if("function"!==typeof e)return yw.registry.onNotFound(u);l=s.call(e,this,t,n,i,c.args||{},r)}return l?l.round(this.POINT_ROUNDING):new xy}findRoutePoints(e=[]){const t=this.graph.options.connecting.router||wT.presets.normal,n=this.cell.getRouter()||t;let i;if("function"===typeof n)i=s.call(n,this,e,{},this);else{const t="string"===typeof n?n:n.name,r="string"===typeof n?{}:n.args||{},o=t?wT.registry.get(t):wT.presets.normal;if("function"!==typeof o)return wT.registry.onNotFound(t);i=s.call(o,this,e,r,this)}return null==i?e.map(e=>xy.create(e)):i.map(e=>xy.create(e))}findConnectionPoints(e,t,n){const i=this.cell,r=this.graph.options.connecting,o=i.getSource(),a=i.getTarget(),s=this.sourceView,l=this.targetView,c=e[0],u=e[e.length-1];let d,h;if(s&&!s.isEdgeElement(this.sourceMagnet)){const e=this.sourceMagnet||s.container,i=c||n,a=new Ty(i,t),l=o.connectionPoint||r.sourceConnectionPoint||r.connectionPoint;d=this.getConnectionPoint(l,s,e,a,"source")}else d=t;if(l&&!l.isEdgeElement(this.targetMagnet)){const e=this.targetMagnet||l.container,i=a.connectionPoint||r.targetConnectionPoint||r.connectionPoint,o=u||t,s=new Ty(o,n);h=this.getConnectionPoint(i,l,e,s,"target")}else h=n;return{source:d,target:h}}getConnectionPoint(e,t,n,i,r){const o=i.end;if(null==e)return o;const a="string"===typeof e?e:e.name,l="string"===typeof e?{}:e.args,c=Lw.registry.get(a);if("function"!==typeof c)return Lw.registry.onNotFound(a);const u=s.call(c,this,i,t,n,l||{},r);return u?u.round(this.POINT_ROUNDING):o}updateMarkerAttr(e){const t=this.cell.getAttrs(),n=`.${e}-marker`,i=t&&t[n];i&&this.updateAttrs(this.container,{},{attrs:{[n]:i},selectors:this.selectors})}findMarkerPoints(e,t,n){const i=e=>{const t=this.cell.getAttrs(),n=Object.keys(t);for(let i=0,r=n.length;i0){const e=c.scale(a);u=t.clone().move(r||n,l.sourceBBox.width*e.sx*-1)}}else{const e=i("source");e&&(u=t.clone().move(r||n,-e))}if(s){if(this.updateMarkerAttr("target"),l.targetBBox=l.targetBBox||c.getBBox(s),l.targetBBox.width>0){const e=c.scale(s);d=n.clone().move(o||t,l.targetBBox.width*e.sx*-1)}}else{const e=i("target");e&&(d=n.clone().move(o||t,-e))}return l.sourcePoint=u||t.clone(),l.targetPoint=d||n.clone(),{source:u,target:d}}findPath(e,t,n){const i=this.cell.getConnector()||this.graph.options.connecting.connector;let r,o,a;if("string"===typeof i?r=i:(r=i.name,o=i.args),r){const e=zT.registry.get(r);if("function"!==typeof e)return zT.registry.onNotFound(r);a=e}else a=zT.presets.normal;const l=s.call(a,this,t,n,e,Object.assign(Object.assign({},o),{raw:!0}),this);return"string"===typeof l?Ky.parse(l):l}translateConnectionPoints(e,t){const n=this.markerCache;n.sourcePoint&&n.sourcePoint.translate(e,t),n.targetPoint&&n.targetPoint.translate(e,t),this.sourcePoint.translate(e,t),this.targetPoint.translate(e,t),this.sourceAnchor.translate(e,t),this.targetAnchor.translate(e,t)}updateLabelPositions(){if(null==this.containers.labels)return this;const e=this.path;if(!e)return this;const t=this.cell,n=t.getLabels();if(0===n.length)return this;const i=t.getDefaultLabel(),o=this.normalizeLabelPosition(i.position);for(let a=0,s=n.length;a=this.options.longLength){const r=this.options.doubleToolsOffset||t;i=this.getPointAtLength(n-r),null!=i&&c.attr(this.tool2Cache,"transform",`translate(${i.x},${i.y}) ${e}`),c.attr(this.tool2Cache,"visibility","visible")}else this.options.doubleTools&&c.attr(this.tool2Cache,"visibility","hidden")}return this}updateArrowheadMarkers(){const e=this.containers.arrowheads;if(null==e)return this;if("none"===e.style.display)return this;const t=this.containers.sourceArrowhead,n=this.containers.targetArrowhead;if(t&&n){const e=this.getConnectionLength()||0,i=e{l[e]=a[e]})}let u;if(u="string"===typeof o?this.findOne(o,this.container,this.selectors):this.containers.connection?this.containers.connection:this.container.querySelector("path"),!(u instanceof SVGPathElement))throw new Error("Token animation requires a valid connection path.");const d="string"===typeof e?this.findOne(e):e;if(null==d)throw new Error("Token animation requires a valid token element.");const h=d.parentNode,p=()=>{h||c.remove(d)},f=Qy.create(d);h||f.appendTo(this.graph.view.stage);const g=l.complete;l.complete=e=>{p(),n&&n(),g&&g(e)};const m=f.animateAlongPath(l,u);return()=>{p(),m()}}getConnection(){return null!=this.path?this.path.clone():null}getConnectionPathData(){if(null==this.path)return"";const e=this.cache.pathCache;return r.has(e,"data")||(e.data=this.path.serialize()),e.data||""}getConnectionSubdivisions(){if(null==this.path)return null;const e=this.cache.pathCache;return r.has(e,"segmentSubdivisions")||(e.segmentSubdivisions=this.path.getSegmentSubdivisions()),e.segmentSubdivisions}getConnectionLength(){if(null==this.path)return 0;const e=this.cache.pathCache;return r.has(e,"length")||(e.length=this.path.length({segmentSubdivisions:this.getConnectionSubdivisions()})),e.length}getPointAtLength(e){return null==this.path?null:this.path.pointAtLength(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}getPointAtRatio(e){return null==this.path?null:(a.isPercentage(e)&&(e=parseFloat(e)/100),this.path.pointAt(e,{segmentSubdivisions:this.getConnectionSubdivisions()}))}getTangentAtLength(e){return null==this.path?null:this.path.tangentAtLength(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}getTangentAtRatio(e){return null==this.path?null:this.path.tangentAt(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}getClosestPoint(e){return null==this.path?null:this.path.closestPoint(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}getClosestPointLength(e){return null==this.path?null:this.path.closestPointLength(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}getClosestPointRatio(e){return null==this.path?null:this.path.closestPointNormalizedLength(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}getLabelPosition(e,t,n,i){const r={distance:0};let o,a=0;"number"===typeof n?(a=n,o=i):o=n,null!=o&&(r.options=o);const s=o&&o.absoluteOffset,l=!(o&&o.absoluteDistance),c=o&&o.absoluteDistance&&o.reverseDistance,u=this.path,d={segmentSubdivisions:this.getConnectionSubdivisions()},h=new xy(e,t),p=u.closestPointT(h,d),f=this.getConnectionLength()||0;let g,m,v=u.lengthAtT(p,d);if(l&&(v=f>0?v/f:0),c&&(v=-1*(f-v)||1),r.distance=v,s||(g=u.tangentAtT(p)),g)m=g.pointOffset(h);else{const e=u.pointAtT(p),t=h.diff(e);m={x:t.x,y:t.y}}return r.offset=m,r.angle=a,r}normalizeLabelPosition(e){return"number"===typeof e?{distance:e}:e}getLabelTransformationMatrix(e){const t=this.normalizeLabelPosition(e),n=t.options||{},i=t.angle||0,r=t.distance,o=r>0&&r<=1;let a=0;const s={x:0,y:0},l=t.offset;l&&("number"===typeof l?a=l:(null!=l.x&&(s.x=l.x),null!=l.y&&(s.y=l.y)));const u=0!==s.x||0!==s.y||0===a,d=n.keepGradient,h=n.ensureLegibility,p=this.path,f={segmentSubdivisions:this.getConnectionSubdivisions()},g=o?r*this.getConnectionLength():r,m=p.tangentAtLength(g,f);let v,_=i;if(m){if(u)v=m.start,v.translate(s);else{const e=m.clone();e.rotate(-90,m.start),e.setLength(a),v=e.end}d&&(_=m.angle()+i,h&&(_=my.normalize((_+90)%180-90)))}else v=p.start,u&&v.translate(s);return c.createSVGMatrix().translate(v.x,v.y).rotate(_)}getLabelCoordinates(e){const t=this.getLabelTransformationMatrix(e);return new xy(t.e,t.f)}getVertexIndex(e,t){const n=this.cell,i=n.getVertices(),r=this.getClosestPointLength(new xy(e,t));let o=0;if(null!=r)for(const a=i.length;o{return t[r]=e,t[r+1]=e.container===n?void 0:n,t}}beforeArrowheadDragging(e){e.zIndex=this.cell.zIndex,this.cell.toFront();const t=this.container.style;e.pointerEvents=t.pointerEvents,t.pointerEvents="none",this.graph.options.connecting.highlight&&this.highlightAvailableMagnets(e)}afterArrowheadDragging(e){null!=e.zIndex&&(this.cell.setZIndex(e.zIndex,{ui:!0}),e.zIndex=null);const t=this.container;t.style.pointerEvents=e.pointerEvents||"",this.graph.options.connecting.highlight&&this.unhighlightAvailableMagnets(e)}arrowheadDragging(e,t,n,i){i.x=t,i.y=n,i.currentTarget!==e&&(i.currentMagnet&&i.currentView&&i.currentView.unhighlight(i.currentMagnet,{type:"magnetAdsorbed"}),i.currentView=this.graph.renderer.findViewByElem(e),i.currentView?(i.currentMagnet=i.currentView.findMagnet(e),i.currentMagnet&&this.graph.hook.validateConnection(...i.getValidateConnectionArgs(i.currentView,i.currentMagnet),i.currentView.getEdgeTerminal(i.currentMagnet,t,n,this.cell,i.terminalType))?i.currentView.highlight(i.currentMagnet,{type:"magnetAdsorbed"}):i.currentMagnet=null):i.currentMagnet=null),i.currentTarget=e,this.cell.prop(i.terminalType,{x:t,y:n},Object.assign(Object.assign({},i.options),{ui:!0}))}arrowheadDragged(e,t,n){const i=e.currentView,r=e.currentMagnet;if(!r||!i)return;i.unhighlight(r,{type:"magnetAdsorbed"});const o=e.terminalType,a=i.getEdgeTerminal(r,t,n,this.cell,o);this.cell.setTerminal(o,a,{ui:!0})}snapArrowhead(e,t,n){const i=this.graph,r=i.options.connecting.snap,o="object"===typeof r&&r.radius||50,a=i.renderer.findViewsInArea({x:e-o,y:t-o,width:2*o,height:2*o}),s=n.closestView||null,l=n.closestMagnet||null;let c;n.closestView=null,n.closestMagnet=null;let u=Number.MAX_SAFE_INTEGER;const d=new xy(e,t);let h;a.forEach(r=>{"false"!==r.container.getAttribute("magnet")&&(c=r.cell.getBBox().getCenter().distance(d),c{if("false"!==a.getAttribute("magnet")){const s=r.getBBoxOfElement(a);c=d.distance(s.getCenter()),ct.hook.validateConnection(...e.getValidateConnectionArgs(r,n),r.getEdgeTerminal(n,e.x,e.y,this.cell,e.terminalType)));if(a.length>0){for(let e=0,t=a.length;e{const n=this.graph.renderer.findViewByCell(e);if(n){const i=t[e];i.forEach(e=>{n.unhighlight(e,{type:"magnetAvailable"})}),n.unhighlight(null,{type:"nodeAvailable"})}}),e.marked=null}startArrowheadDragging(e,t,n){if(!this.can("arrowheadMovable"))return void this.notifyUnhandledMouseDown(e,t,n);const i=e.target,r=i.getAttribute("data-terminal"),o=this.prepareArrowheadDragging(r,{x:t,y:n});this.setEventData(e,o)}dragArrowhead(e,t,n){const i=this.getEventData(e);this.graph.options.connecting.snap?this.snapArrowhead(t,n,i):this.arrowheadDragging(this.getEventTarget(e),t,n,i)}stopArrowheadDragging(e,t,n){const i=this.graph,r=this.getEventData(e);i.options.connecting.snap?this.snapArrowheadEnd(r):this.arrowheadDragged(r,t,n);const o=i.hook.validateEdge(this.cell,r.terminalType,r.initialTerminal);o?(this.finishEmbedding(r),this.notifyConnectionEvent(r,e)):this.fallbackConnection(r),this.afterArrowheadDragging(r)}startLabelDragging(e,t,n){if(this.can("edgeLabelMovable")){const t=e.currentTarget,n=parseInt(t.getAttribute("data-index"),10),i=this.getLabelPositionAngle(n),r=this.getLabelPositionArgs(n),o=this.getDefaultLabelPositionArgs(),a=this.mergeLabelPositionArgs(r,o);this.setEventData(e,{index:n,positionAngle:i,positionArgs:a,stopPropagation:!0,action:"drag-label"})}else this.setEventData(e,{stopPropagation:!0});this.graph.view.delegateDragEvents(e,this)}dragLabel(e,t,n){const i=this.getEventData(e),o=this.cell.getLabelAt(i.index),a=r.merge({},o,{position:this.getLabelPosition(t,n,i.positionAngle,i.positionArgs)});this.cell.setLabelAt(i.index,a)}stopLabelDragging(e,t,n){}handleVertexAdding(e,t,n){if(!this.can("vertexAddable"))return void this.notifyUnhandledMouseDown(e,t,n);const i=this.addVertex({x:t,y:n},{ui:!0});this.setEventData(e,{index:i,action:"drag-vertex"})}handleVertexRemoving(e,t,n){if(!this.can("vertexDeletable"))return void this.notifyUnhandledMouseDown(e,t,n);const i=e.target,r=parseInt(i.getAttribute("idx"),10);this.cell.removeVertexAt(r)}startVertexDragging(e,t,n){if(!this.can("vertexMovable"))return void this.notifyUnhandledMouseDown(e,t,n);const i=e.target,r=parseInt(i.getAttribute("idx"),10);this.setEventData(e,{index:r,action:"drag-vertex"})}dragVertex(e,t,n){const i=this.getEventData(e);this.cell.setVertexAt(i.index,{x:t,y:n},{ui:!0})}stopVertexDragging(e,t,n){}}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&"function"===typeof i.isNodeView&&"function"===typeof i.isEdgeView&&"function"===typeof i.confirmUpdate&&"function"===typeof i.update&&"function"===typeof i.getConnection}e.toStringTag=`X6.${e.name}`,e.isEdgeView=t})(pA||(pA={})),pA.config({isSvgElement:!0,priority:1,bootstrap:["render","source","target"],actions:{view:["render"],markup:["render"],attrs:["update"],source:["source","update"],target:["target","update"],router:["update"],connector:["update"],labels:["labels"],defaultLabel:["labels"],vertices:["vertices","update"],vertexMarkup:["vertices"],toolMarkup:["tools"],tools:["widget"]},shortLength:105,longLength:155,toolsOffset:40,doubleTools:!1,doubleToolsOffset:65,sampleInterval:50}),pA.registry.register("edge",pA,!0);class fA extends Px{constructor(){super(...arguments),this.scalableNode=null,this.rotatableNode=null,this.scalableSelector="scalable",this.rotatableSelector="rotatable",this.defaultPortMarkup=Dx.getPortMarkup(),this.defaultPortLabelMarkup=Dx.getPortLabelMarkup(),this.defaultPortContainerMarkup=Dx.getPortContainerMarkup(),this.portsCache={}}get[Symbol.toStringTag](){return fA.toStringTag}getContainerClassName(){const e=[super.getContainerClassName(),this.prefixClassName("node")];return this.can("nodeMovable")||e.push(this.prefixClassName("node-immovable")),e.join(" ")}updateClassName(e){const t=e.target;if(t.hasAttribute("magnet")){const e=this.prefixClassName("port-unconnectable");this.can("magnetConnectable")?c.removeClass(t,e):c.addClass(t,e)}else{const e=this.prefixClassName("node-immovable");this.can("nodeMovable")?this.removeClass(e):this.addClass(e)}}isNodeView(){return!0}confirmUpdate(e,t={}){let n=e;return this.hasAction(n,"ports")&&(this.removePorts(),this.cleanPortsCache()),this.hasAction(n,"render")?(this.render(),n=this.removeAction(n,["render","update","resize","translate","rotate","ports","tools"])):(n=this.handleAction(n,"resize",()=>this.resize(t),"update"),n=this.handleAction(n,"update",()=>this.update(),_C.useCSSSelector?"ports":null),n=this.handleAction(n,"translate",()=>this.translate()),n=this.handleAction(n,"rotate",()=>this.rotate()),n=this.handleAction(n,"ports",()=>this.renderPorts()),n=this.handleAction(n,"tools",()=>this.renderTools())),n}update(e){this.cleanCache(),_C.useCSSSelector&&this.removePorts();const t=this.cell,n=t.getSize(),i=t.getAttrs();this.updateAttrs(this.container,i,{attrs:e===i?null:e,rootBBox:new wy(0,0,n.width,n.height),selectors:this.selectors,scalableNode:this.scalableNode,rotatableNode:this.rotatableNode}),_C.useCSSSelector&&this.renderPorts()}renderMarkup(){const e=this.cell.markup;if(e)return"string"===typeof e?this.renderStringMarkup(e):this.renderJSONMarkup(e);throw new TypeError("Invalid node markup.")}renderJSONMarkup(e){const t=this.parseJSONMarkup(e,this.container),n=e=>Array.isArray(e)?e[0]:e;this.selectors=t.selectors,this.rotatableNode=n(this.selectors[this.rotatableSelector]),this.scalableNode=n(this.selectors[this.scalableSelector]),this.container.appendChild(t.fragment)}renderStringMarkup(e){c.append(this.container,Qy.toNodes(Qy.createVectors(e))),this.rotatableNode=c.findOne(this.container,`.${this.rotatableSelector}`),this.scalableNode=c.findOne(this.container,`.${this.scalableSelector}`),this.selectors={},this.rootSelector&&(this.selectors[this.rootSelector]=this.container)}render(){return this.empty(),this.renderMarkup(),this.scalableNode&&this.update(),this.resize(),this.rotatableNode?(this.rotate(),this.translate()):this.updateTransform(),_C.useCSSSelector||this.renderPorts(),this.renderTools(),this}resize(e={}){if(this.scalableNode)return this.updateSize(e);this.cell.getAngle()&&this.rotate(),this.update()}translate(){if(this.rotatableNode)return this.updateTranslation();this.updateTransform()}rotate(){if(this.rotatableNode)return this.updateRotation(),void this.update();this.updateTransform()}getTranslationString(){const e=this.cell.getPosition();return`translate(${e.x},${e.y})`}getRotationString(){const e=this.cell.getAngle();if(e){const t=this.cell.getSize();return`rotate(${e},${t.width/2},${t.height/2})`}}updateTransform(){let e=this.getTranslationString();const t=this.getRotationString();t&&(e+=` ${t}`),this.container.setAttribute("transform",e)}updateRotation(){if(null!=this.rotatableNode){const e=this.getRotationString();null!=e?this.rotatableNode.setAttribute("transform",e):this.rotatableNode.removeAttribute("transform")}}updateTranslation(){this.container.setAttribute("transform",this.getTranslationString())}updateSize(e={}){const t=this.cell,n=t.getSize(),i=t.getAngle(),r=this.scalableNode;let o=!1;r.getElementsByTagName("path").length>0&&(o=!0);const a=c.getBBox(r,{recursive:o}),s=n.width/(a.width||1),l=n.height/(a.height||1);r.setAttribute("transform",`scale(${s},${l})`);const u=this.rotatableNode;if(null!=u){const o=u.getAttribute("transform");if(o){u.setAttribute("transform",`${o} rotate(${-i},${n.width/2},${n.height/2})`);const a=c.getBBox(r,{target:this.graph.view.stage});t.prop("position",{x:a.x,y:a.y},Object.assign({updated:!0},e)),this.translate(),this.rotate()}}this.update()}findPortElem(e,t){const n=e?this.portsCache[e]:null;if(!n)return null;const i=n.portContentElement,r=n.portContentSelectors||{};return this.findOne(t,i,r)}initializePorts(){this.cleanPortsCache()}refreshPorts(){this.removePorts(),this.cleanPortsCache(),this.renderPorts()}cleanPortsCache(){this.portsCache={}}removePorts(){Object.keys(this.portsCache).forEach(e=>{const t=this.portsCache[e];c.remove(t.portElement)})}renderPorts(){const e=this.getPortsContainer(),t=[];e.childNodes.forEach(e=>{t.push(e)});const n=i.groupBy(this.cell.getParsedPorts(),"zIndex"),r="auto";n[r]&&n[r].forEach(n=>{const i=this.getPortElement(n);e.append(i),t.push(i)}),Object.keys(n).forEach(e=>{if(e!==r){const i=parseInt(e,10);this.appendPorts(n[e],i,t)}}),this.updatePorts()}getPortsContainer(){return this.rotatableNode||this.container}appendPorts(e,t,n){const i=e.map(e=>this.getPortElement(e));n[t]||t<0?c.before(n[Math.max(t,0)],i):c.append(this.getPortsContainer(),i)}getPortElement(e){const t=this.portsCache[e.id];return t?t.portElement:this.createPortElement(e)}createPortElement(e){let t=Dx.renderMarkup(this.getPortContainerMarkup());const n=t.elem;if(null==n)throw new Error("Invalid port container markup.");t=Dx.renderMarkup(this.getPortMarkup(e));const i=t.elem,r=t.selectors;if(null==i)throw new Error("Invalid port markup.");this.setAttrs({port:e.id,"port-group":e.group},i),t=Dx.renderMarkup(this.getPortLabelMarkup(e.label));const o=t.elem,a=t.selectors;if(null==o)throw new Error("Invalid port label markup.");let s;if(r&&a){for(const e in a)if(r[e]&&e!==this.rootSelector)throw new Error("Selectors within port must be unique.");s=Object.assign(Object.assign({},r),a)}else s=r||a;return c.addClass(n,"x6-port"),c.addClass(i,"x6-port-body"),c.addClass(o,"x6-port-label"),n.appendChild(i),n.appendChild(o),this.portsCache[e.id]={portElement:n,portSelectors:s,portLabelElement:o,portLabelSelectors:a,portContentElement:i,portContentSelectors:r},this.graph.hook.onPortRendered({port:e,node:this.cell,container:n,selectors:s,labelContainer:o,labelSelectors:a,contentContainer:i,contentSelectors:r}),n}updatePorts(){this.updatePortGroup();const e=this.cell.getParsedGroups();Object.keys(e).forEach(e=>this.updatePortGroup(e))}updatePortGroup(e){const t=wy.fromSize(this.cell.getSize()),n=this.cell.getPortsLayoutByGroup(e,t);for(let i=0,r=n.length;ithis.graph.options.clickThreshold||this.notify("node:magnet:click",Object.assign({magnet:t},this.getEventArgs(e,n,i)))}onMagnetDblClick(e,t,n,i){this.notify("node:magnet:dblclick",Object.assign({magnet:t},this.getEventArgs(e,n,i)))}onMagnetContextMenu(e,t,n,i){this.notify("node:magnet:contextmenu",Object.assign({magnet:t},this.getEventArgs(e,n,i)))}onMagnetMouseDown(e,t,n,i){this.startMagnetDragging(e,n,i)}onCustomEvent(e,t,n,i){this.notify("node:customevent",Object.assign({name:t},this.getEventArgs(e,n,i))),super.onCustomEvent(e,t,n,i)}prepareEmbedding(e){const t=this.getEventData(e),n=t.cell||this.cell,i=this.graph.findViewByCell(n),r=this.graph.snapToGrid(e.clientX,e.clientY);this.notify("node:embed",{e:e,node:n,view:i,cell:n,x:r.x,y:r.y,currentParent:n.getParent()})}processEmbedding(e,t){const n=t.cell||this.cell,i=t.graph||this.graph,r=i.options.embedding,o=r.findParent;let a="function"===typeof o?s.call(o,i,{view:this,node:this.cell}).filter(e=>{return XT.isCell(e)&&this.cell.id!==e.id&&!e.isDescendantOf(this.cell)}):i.model.getNodesUnderNode(n,{by:o});r.frontOnly&&(a=a.slice(-1));let l=null;const c=t.candidateEmbedView,u=r.validate;for(let h=a.length-1;h>=0;h-=1){const e=a[h];if(c&&c.cell.id===e.id){l=c;break}{const t=e.findView(i);if(s.call(u,i,{child:this.cell,parent:t.cell,childView:this,parentView:t})){l=t;break}}}this.clearEmbedding(t),l&&l.highlight(null,{type:"embedding"}),t.candidateEmbedView=l;const d=i.snapToGrid(e.clientX,e.clientY);this.notify("node:embedding",{e:e,cell:n,node:n,view:i.findViewByCell(n),x:d.x,y:d.y,currentParent:n.getParent(),candidateParent:l?l.cell:null})}clearEmbedding(e){const t=e.candidateEmbedView;t&&(t.unhighlight(null,{type:"embedding"}),e.candidateEmbedView=null)}finalizeEmbedding(e,t){const n=t.cell||this.cell,i=t.graph||this.graph,r=i.findViewByCell(n),o=n.getParent(),a=t.candidateEmbedView;a?(a.unhighlight(null,{type:"embedding"}),t.candidateEmbedView=null,null!=o&&o.id===a.cell.id||a.cell.insertChild(n,void 0,{ui:!0})):o&&o.unembed(n,{ui:!0}),i.model.getConnectedEdges(n,{deep:!0}).forEach(e=>{e.updateParent({ui:!0})});const s=i.snapToGrid(e.clientX,e.clientY);r&&r.notify("node:embedded",{e:e,cell:n,x:s.x,y:s.y,node:n,view:i.findViewByCell(n),previousParent:o,currentParent:n.getParent()})}getDelegatedView(){let e=this.cell,t=this;while(t){if(e.isEdge())break;if(!e.hasParent()||t.can("stopDelegateOnDragging"))return t;e=e.getParent(),t=this.graph.renderer.findViewByCell(e)}return null}startMagnetDragging(e,t,n){if(!this.can("magnetConnectable"))return;e.stopPropagation();const i=e.currentTarget,r=this.graph;this.setEventData(e,{targetMagnet:i}),r.hook.validateMagnet(this,i,e)?(r.options.magnetThreshold<=0&&this.startConnectting(e,i,t,n),this.setEventData(e,{action:"magnet"}),this.stopPropagation(e)):this.onMouseDown(e,t,n),r.view.delegateDragEvents(e,this)}startConnectting(e,t,n,i){this.graph.model.startBatch("add-edge");const r=this.createEdgeFromMagnet(t,n,i);r.notifyMouseDown(e,n,i),r.setEventData(e,r.prepareArrowheadDragging("target",{x:n,y:i,isNewEdge:!0,fallbackAction:"remove"})),this.setEventData(e,{edgeView:r})}createEdgeFromMagnet(e,t,n){const i=this.graph,r=i.model,o=i.hook.getDefaultEdge(this,e);return o.setSource(Object.assign(Object.assign({},o.getSource()),this.getEdgeTerminal(e,t,n,o,"source"))),o.setTarget(Object.assign(Object.assign({},o.getTarget()),{x:t,y:n})),o.addTo(r,{async:!1,ui:!0}),o.findView(i)}dragMagnet(e,t,n){const i=this.getEventData(e),r=i.edgeView;if(r)r.onMouseMove(e,t,n),this.autoScrollGraph(e.clientX,e.clientY);else{const r=this.graph,o=r.options.magnetThreshold,a=this.getEventTarget(e),s=i.targetMagnet;if("onleave"===o){if(s===a||s.contains(a))return}else if(r.view.getMouseMovedCount(e)<=o)return;this.startConnectting(e,s,t,n)}}stopMagnetDragging(e,t,n){const i=this.eventData(e),r=i.edgeView;r&&(r.onMouseUp(e,t,n),this.graph.model.stopBatch("add-edge"))}notifyUnhandledMouseDown(e,t,n){this.notify("node:unhandled:mousedown",{e:e,x:t,y:n,view:this,cell:this.cell,node:this.cell})}notifyNodeMove(e,t,n,i,r){let o=[r];const a=this.graph.selection.widget;if(a&&a.options.movable){const e=this.graph.getSelectedCells();e.includes(r)&&(o=e.filter(e=>e.isNode()))}o.forEach(r=>{this.notify(e,{e:t,x:n,y:i,cell:r,node:r,view:r.findView(this.graph)})})}startNodeDragging(e,t,n){const i=this.getDelegatedView();if(null==i||!i.can("nodeMovable"))return this.notifyUnhandledMouseDown(e,t,n);this.setEventData(e,{targetView:i,action:"move"});const r=xy.create(i.cell.getPosition());i.setEventData(e,{moving:!1,offset:r.diff(t,n),restrict:this.graph.hook.getRestrictArea(i)})}dragNode(e,t,n){const i=this.cell,r=this.graph,o=r.getGridSize(),a=this.getEventData(e),s=a.offset,l=a.restrict;a.moving||(a.moving=!0,this.addClass("node-moving"),this.notifyNodeMove("node:move",e,t,n,this.cell)),this.autoScrollGraph(e.clientX,e.clientY);const c=yC.snapToGrid(t+s.x,o),u=yC.snapToGrid(n+s.y,o);i.setPosition(c,u,{restrict:l,deep:!0,ui:!0}),r.options.embedding.enabled&&(a.embedding||(this.prepareEmbedding(e),a.embedding=!0),this.processEmbedding(e,a))}stopNodeDragging(e,t,n){const i=this.getEventData(e);i.embedding&&this.finalizeEmbedding(e,i),i.moving&&(this.removeClass("node-moving"),this.notifyNodeMove("node:moved",e,t,n,this.cell)),i.moving=!1,i.embedding=!1}autoScrollGraph(e,t){const n=this.graph.scroller.widget;n&&n.autoScroll(e,t)}}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&"function"===typeof i.isNodeView&&"function"===typeof i.isEdgeView&&"function"===typeof i.confirmUpdate&&"function"===typeof i.update&&"function"===typeof i.findPortElem&&"function"===typeof i.resize&&"function"===typeof i.rotate&&"function"===typeof i.translate}e.toStringTag=`X6.${e.name}`,e.isNodeView=t})(fA||(fA={})),fA.config({isSvgElement:!0,priority:0,bootstrap:["render"],actions:{view:["render"],markup:["render"],attrs:["update"],size:["resize","ports","tools"],angle:["rotate","tools"],position:["translate","tools"],ports:["ports"],tools:["tools"]}}),fA.registry.register("node",fA,!0);const gA=oA("text");class mA extends(sA("text",{view:gA,attrs:{text:{fontSize:18,fill:"#000000",stroke:null,refX:.5,refY:.5}}},{noText:!0})){}(function(e){class t extends fA{confirmUpdate(e,t={}){let n=super.confirmUpdate(e,t);return this.hasAction(n,"scale")&&(this.resize(),n=this.removeAction(n,"scale")),n}}e.View=t,t.config({actions:{attrs:["scale"]}}),fA.registry.register(gA,t)})(mA||(mA={}));class vA extends hx{constructor(e,t={}){super(),this.length=0,this.comparator=t.comparator||"zIndex",this.clean(),e&&this.reset(e,{silent:!0})}toJSON(){return this.cells.map(e=>e.toJSON())}add(e,t,n){let i,r;"number"===typeof t?(i=t,r=Object.assign({merge:!1},n)):(i=this.length,r=Object.assign({merge:!1},t)),i>this.length&&(i=this.length),i<0&&(i+=this.length+1);const o=Array.isArray(e)?e:[e],a=this.comparator&&"number"!==typeof t&&!1!==r.sort,s=this.comparator||null;let l=!1;const c=[],u=[];return o.forEach(e=>{const t=this.get(e);t?r.merge&&!e.isSameStore(t)&&(t.setProp(e.getProp(),n),u.push(t),a&&!l&&(l=null==s||"function"===typeof s?t.hasChanged():"string"===typeof s?t.hasChanged(s):s.some(e=>t.hasChanged(e)))):(c.push(e),this.reference(e))}),c.length&&(a&&(l=!0),this.cells.splice(i,0,...c),this.length=this.cells.length),l&&this.sort({silent:!0}),r.silent||(c.forEach((e,t)=>{const n={cell:e,index:i+t,options:r};this.trigger("added",n),r.dryrun||e.notify("added",Object.assign({},n))}),l&&this.trigger("sorted"),(c.length||u.length)&&this.trigger("updated",{added:c,merged:u,removed:[],options:r})),this}remove(e,t={}){const n=Array.isArray(e)?e:[e],i=this.removeCells(n,t);return!t.silent&&i.length>0&&this.trigger("updated",{options:t,removed:i,added:[],merged:[]}),Array.isArray(e)?i:i[0]}removeCells(e,t){const n=[];for(let i=0;ithis.unreference(e)),this.clean(),this.add(e,Object.assign({silent:!0},t)),!t.silent){const e=this.cells.slice();this.trigger("reseted",{options:t,previous:n,current:e});const i=[],r=[];e.forEach(e=>{const t=n.some(t=>t.id===e.id);t||i.push(e)}),n.forEach(t=>{const n=e.some(e=>e.id===t.id);n||r.push(t)}),this.trigger("updated",{options:t,added:i,removed:r,merged:[]})}return this}push(e,t){return this.add(e,this.length,t)}pop(e){const t=this.at(this.length-1);return this.remove(t,e)}unshift(e,t){return this.add(e,0,t)}shift(e){const t=this.at(0);return this.remove(t,e)}get(e){if(null==e)return null;const t="string"===typeof e||"number"===typeof e?e:e.id;return this.map[t]||null}has(e){return null!=this.get(e)}at(e){return e<0&&(e+=this.length),this.cells[e]||null}first(){return this.at(0)}last(){return this.at(-1)}indexOf(e){return this.cells.indexOf(e)}toArray(){return this.cells.slice()}sort(e={}){return null!=this.comparator&&(this.cells=i.sortBy(this.cells,this.comparator),e.silent||this.trigger("sorted")),this}clone(){const e=this.constructor;return new e(this.cells.slice(),{comparator:this.comparator})}reference(e){this.map[e.id]=e,e.on("*",this.notifyCellEvent,this)}unreference(e){e.off("*",this.notifyCellEvent,this),delete this.map[e.id]}notifyCellEvent(e,t){const n=t.cell;this.trigger(`cell:${e}`,t),n&&(n.isNode()?this.trigger(`node:${e}`,Object.assign(Object.assign({},t),{node:n})):n.isEdge()&&this.trigger(`edge:${e}`,Object.assign(Object.assign({},t),{edge:n})))}clean(){this.length=0,this.cells=[],this.map={}}}class _A extends hx{constructor(e=[]){super(),this.batches={},this.addings=new WeakMap,this.nodes={},this.edges={},this.outgoings={},this.incomings={},this.collection=new vA(e),this.setup()}get[Symbol.toStringTag](){return _A.toStringTag}notify(e,t){this.trigger(e,t);const n=this.graph;return n&&("sorted"===e||"reseted"===e||"updated"===e?n.trigger(`model:${e}`,t):n.trigger(e,t)),this}setup(){const e=this.collection;e.on("sorted",()=>this.notify("sorted",null)),e.on("updated",e=>this.notify("updated",e)),e.on("cell:change:zIndex",()=>this.sortOnChangeZ()),e.on("added",({cell:e})=>{this.onCellAdded(e)}),e.on("removed",e=>{const t=e.cell;this.onCellRemoved(t,e.options),this.notify("cell:removed",e),t.isNode()?this.notify("node:removed",Object.assign(Object.assign({},e),{node:t})):t.isEdge()&&this.notify("edge:removed",Object.assign(Object.assign({},e),{edge:t}))}),e.on("reseted",e=>{this.onReset(e.current),this.notify("reseted",e)}),e.on("edge:change:source",({edge:e})=>this.onEdgeTerminalChanged(e,"source")),e.on("edge:change:target",({edge:e})=>{this.onEdgeTerminalChanged(e,"target")})}sortOnChangeZ(){this.collection.sort()}onCellAdded(e){const t=e.id;e.isEdge()?(e.updateParent(),this.edges[t]=!0,this.onEdgeTerminalChanged(e,"source"),this.onEdgeTerminalChanged(e,"target")):this.nodes[t]=!0}onCellRemoved(e,t){const n=e.id;if(e.isEdge()){delete this.edges[n];const t=e.getSource(),i=e.getTarget();if(t&&t.cell){const e=this.outgoings[t.cell],i=e?e.indexOf(n):-1;i>=0&&(e.splice(i,1),0===e.length&&delete this.outgoings[t.cell])}if(i&&i.cell){const e=this.incomings[i.cell],t=e?e.indexOf(n):-1;t>=0&&(e.splice(t,1),0===e.length&&delete this.incomings[i.cell])}}else delete this.nodes[n];t.clear||(t.disconnectEdges?this.disconnectConnectedEdges(e,t):this.removeConnectedEdges(e,t)),e.model===this&&(e.model=null)}onReset(e){this.nodes={},this.edges={},this.outgoings={},this.incomings={},e.forEach(e=>this.onCellAdded(e))}onEdgeTerminalChanged(e,t){const n="source"===t?this.outgoings:this.incomings,i=e.previous(t);if(i&&i.cell){const t=n[i.cell],r=t?t.indexOf(e.id):-1;r>=0&&(t.splice(r,1),0===t.length&&delete n[i.cell])}const r=e.getTerminal(t);if(r&&r.cell){const t=n[r.cell]||[],i=t.indexOf(e.id);-1===i&&t.push(e.id),n[r.cell]=t}}prepareCell(e,t){return e.model||t&&t.dryrun||(e.model=this),null==e.zIndex&&e.setZIndex(this.getMaxZIndex()+1,{silent:!0}),e}resetCells(e,t={}){return e.map(e=>this.prepareCell(e,Object.assign(Object.assign({},t),{dryrun:!0}))),this.collection.reset(e,t),e.map(e=>this.prepareCell(e,{options:t})),this}clear(e={}){const t=this.getCells();if(0===t.length)return this;const n=Object.assign(Object.assign({},e),{clear:!0});return this.batchUpdate("clear",()=>{const e=t.sort((e,t)=>{const n=e.isEdge()?1:2,i=t.isEdge()?1:2;return n-i});while(e.length>0){const t=e.shift();t&&t.remove(n)}},n),this}addNode(e,t={}){const n=eA.isNode(e)?e:this.createNode(e);return this.addCell(n,t),n}createNode(e){return eA.create(e)}addEdge(e,t={}){const n=dA.isEdge(e)?e:this.createEdge(e);return this.addCell(n,t),n}createEdge(e){return dA.create(e)}addCell(e,t={}){return Array.isArray(e)?this.addCells(e,t):(this.collection.has(e)||this.addings.has(e)||(this.addings.set(e,!0),this.collection.add(this.prepareCell(e,t),t),e.eachChild(e=>this.addCell(e,t)),this.addings.delete(e)),this)}addCells(e,t={}){const n=e.length;if(0===n)return this;const i=Object.assign(Object.assign({},t),{position:n-1,maxPosition:n-1});return this.startBatch("add",Object.assign(Object.assign({},i),{cells:e})),e.forEach(e=>{this.addCell(e,i),i.position-=1}),this.stopBatch("add",Object.assign(Object.assign({},i),{cells:e})),this}removeCell(e,t={}){const n="string"===typeof e?this.getCell(e):e;return n&&this.has(n)?this.collection.remove(n,t):null}removeCells(e,t={}){return e.length?this.batchUpdate("remove",()=>{return e.map(e=>this.removeCell(e,t))}):[]}removeConnectedEdges(e,t={}){const n=this.getConnectedEdges(e);return n.forEach(e=>{e.remove(t)}),n}disconnectConnectedEdges(e,t={}){const n="string"===typeof e?e:e.id;this.getConnectedEdges(e).forEach(e=>{const i=e.getSourceCell(),r=e.getTargetCell();i&&i.id===n&&e.setSource({x:0,y:0},t),r&&r.id===n&&e.setTarget({x:0,y:0},t)})}has(e){return this.collection.has(e)}total(){return this.collection.length}indexOf(e){return this.collection.indexOf(e)}getCell(e){return this.collection.get(e)}getCells(){return this.collection.toArray()}getFirstCell(){return this.collection.first()}getLastCell(){return this.collection.last()}getMinZIndex(){const e=this.collection.first();return e&&e.getZIndex()||0}getMaxZIndex(){const e=this.collection.last();return e&&e.getZIndex()||0}getCellsFromCache(e){return e?Object.keys(e).map(e=>this.getCell(e)).filter(e=>null!=e):[]}getNodes(){return this.getCellsFromCache(this.nodes)}getEdges(){return this.getCellsFromCache(this.edges)}getOutgoingEdges(e){const t="string"===typeof e?e:e.id,n=this.outgoings[t];return n?n.map(e=>this.getCell(e)).filter(e=>e&&e.isEdge()):null}getIncomingEdges(e){const t="string"===typeof e?e:e.id,n=this.incomings[t];return n?n.map(e=>this.getCell(e)).filter(e=>e&&e.isEdge()):null}getConnectedEdges(e,t={}){const n=[],i="string"===typeof e?this.getCell(e):e;if(null==i)return n;const r={},o=t.indirect;let a=t.incoming,s=t.outgoing;null==a&&null==s&&(a=s=!0);const l=(e,t)=>{const i=t?this.getOutgoingEdges(e):this.getIncomingEdges(e);if(null!=i&&i.forEach(e=>{r[e.id]||(n.push(e),r[e.id]=!0,o&&(a&&l(e,!1),s&&l(e,!0)))}),o&&e.isEdge()){const i=t?e.getTargetCell():e.getSourceCell();i&&i.isEdge()&&(r[i.id]||(n.push(i),l(i,t)))}};if(s&&l(i,!0),a&&l(i,!1),t.deep){const e=i.getDescendants({deep:!0}),o={};e.forEach(e=>{e.isNode()&&(o[e.id]=!0)});const l=(e,i)=>{const a=i?this.getOutgoingEdges(e.id):this.getIncomingEdges(e.id);null!=a&&a.forEach(e=>{if(!r[e.id]){const i=e.getSourceCell(),a=e.getTargetCell();if(!t.enclosed&&i&&o[i.id]&&a&&o[a.id])return;n.push(e),r[e.id]=!0}})};e.forEach(e=>{e.isEdge()||(s&&l(e,!0),a&&l(e,!1))})}return n}isBoundary(e,t){const n="string"===typeof e?this.getCell(e):e,i=t?this.getIncomingEdges(n):this.getOutgoingEdges(n);return null==i||0===i.length}getBoundaryNodes(e){const t=[];return Object.keys(this.nodes).forEach(n=>{if(this.isBoundary(n,e)){const e=this.getCell(n);e&&t.push(e)}}),t}getRoots(){return this.getBoundaryNodes(!0)}getLeafs(){return this.getBoundaryNodes(!1)}isRoot(e){return this.isBoundary(e,!0)}isLeaf(e){return this.isBoundary(e,!1)}getNeighbors(e,t={}){let n=t.incoming,i=t.outgoing;null==n&&null==i&&(n=i=!0);const r=this.getConnectedEdges(e,t),o=r.reduce((r,o)=>{const a=o.hasLoop(t),s=o.getSourceCell(),l=o.getTargetCell();return n&&s&&s.isNode()&&!r[s.id]&&(!a&&(s===e||t.deep&&s.isDescendantOf(e))||(r[s.id]=s)),i&&l&&l.isNode()&&!r[l.id]&&(!a&&(l===e||t.deep&&l.isDescendantOf(e))||(r[l.id]=l)),r},{});if(e.isEdge()){if(n){const t=e.getSourceCell();t&&t.isNode()&&!o[t.id]&&(o[t.id]=t)}if(i){const t=e.getTargetCell();t&&t.isNode()&&!o[t.id]&&(o[t.id]=t)}}return Object.keys(o).map(e=>o[e])}isNeighbor(e,t,n={}){let i=n.incoming,r=n.outgoing;return null==i&&null==r&&(i=r=!0),this.getConnectedEdges(e,n).some(e=>{const n=e.getSourceCell(),o=e.getTargetCell();return!(!i||!n||n.id!==t.id)||!(!r||!o||o.id!==t.id)})}getSuccessors(e,t={}){const n=[];return this.search(e,(i,r)=>{i!==e&&this.matchDistance(r,t.distance)&&n.push(i)},Object.assign(Object.assign({},t),{outgoing:!0})),n}isSuccessor(e,t,n={}){let i=!1;return this.search(e,(r,o)=>{if(r===t&&r!==e&&this.matchDistance(o,n.distance))return i=!0,!1},Object.assign(Object.assign({},n),{outgoing:!0})),i}getPredecessors(e,t={}){const n=[];return this.search(e,(i,r)=>{i!==e&&this.matchDistance(r,t.distance)&&n.push(i)},Object.assign(Object.assign({},t),{incoming:!0})),n}isPredecessor(e,t,n={}){let i=!1;return this.search(e,(r,o)=>{if(r===t&&r!==e&&this.matchDistance(o,n.distance))return i=!0,!1},Object.assign(Object.assign({},n),{incoming:!0})),i}matchDistance(e,t){return null==t||("function"===typeof t?t(e):!(!Array.isArray(t)||!t.includes(e))||e===t)}getCommonAncestor(...e){const t=[];return e.forEach(e=>{e&&(Array.isArray(e)?t.push(...e):t.push(e))}),XT.getCommonAncestor(...t)}getSubGraph(e,t={}){const n=[],i={},r=[],o=[],a=e=>{i[e.id]||(n.push(e),i[e.id]=e,e.isEdge()&&o.push(e),e.isNode()&&r.push(e))};return e.forEach(e=>{if(a(e),t.deep){const t=e.getDescendants({deep:!0});t.forEach(e=>a(e))}}),o.forEach(e=>{const t=e.getSourceCell(),o=e.getTargetCell();t&&!i[t.id]&&(n.push(t),i[t.id]=t,t.isNode()&&r.push(t)),o&&!i[o.id]&&(n.push(o),i[o.id]=o,o.isNode()&&r.push(o))}),r.forEach(e=>{const r=this.getConnectedEdges(e,t);r.forEach(e=>{const t=e.getSourceCell(),r=e.getTargetCell();!i[e.id]&&t&&i[t.id]&&r&&i[r.id]&&(n.push(e),i[e.id]=e)})}),n}cloneSubGraph(e,t={}){const n=this.getSubGraph(e,t);return this.cloneCells(n)}cloneCells(e){return XT.cloneCells(e)}getNodesFromPoint(e,t){const n="number"===typeof e?{x:e,y:t||0}:e;return this.getNodes().filter(e=>{return e.getBBox().containsPoint(n)})}getNodesInArea(e,t,n,i,r){const o="number"===typeof e?new wy(e,t,n,i):wy.create(e),a="number"===typeof e?r:t,s=a&&a.strict;return this.getNodes().filter(e=>{const t=e.getBBox();return s?o.containsRect(t):o.isIntersectWithRect(t)})}getEdgesInArea(e,t,n,i,r){const o="number"===typeof e?new wy(e,t,n,i):wy.create(e),a="number"===typeof e?r:t,s=a&&a.strict;return this.getEdges().filter(e=>{const t=e.getBBox();return s?o.containsRect(t):o.isIntersectWithRect(t)})}getNodesUnderNode(e,t={}){const n=e.getBBox(),i=null==t.by||"bbox"===t.by?this.getNodesInArea(n):this.getNodesFromPoint(n[t.by]);return i.filter(t=>e.id!==t.id&&!t.isDescendantOf(e))}getAllCellsBBox(){return this.getCellsBBox(this.getCells())}getCellsBBox(e,t={}){return XT.getCellsBBox(e,t)}search(e,t,n={}){n.breadthFirst?this.breadthFirstSearch(e,t,n):this.depthFirstSearch(e,t,n)}breadthFirstSearch(e,t,n={}){const i=[],r={},o={};i.push(e),o[e.id]=0;while(i.length>0){const e=i.shift();if(null==e||r[e.id])continue;if(r[e.id]=!0,!1===s.call(t,this,e,o[e.id]))continue;const a=this.getNeighbors(e,n);a.forEach(t=>{o[t.id]=o[e.id]+1,i.push(t)})}}depthFirstSearch(e,t,n={}){const i=[],r={},o={};i.push(e),o[e.id]=0;while(i.length>0){const e=i.pop();if(null==e||r[e.id])continue;if(r[e.id]=!0,!1===s.call(t,this,e,o[e.id]))continue;const a=this.getNeighbors(e,n),l=i.length;a.forEach(t=>{o[t.id]=o[e.id]+1,i.splice(l,0,t)})}}getShortestPath(e,t,n={}){const i={};this.getEdges().forEach(e=>{const t=e.getSourceCellId(),r=e.getTargetCellId();t&&r&&(i[t]||(i[t]=[]),i[r]||(i[r]=[]),i[t].push(r),n.directed||i[r].push(t))});const r="string"===typeof e?e:e.id,o=fx.run(i,r,n.weight),a=[];let s="string"===typeof t?t:t.id;o[s]&&a.push(s);while(s=o[s])a.unshift(s);return a}translate(e,t,n){return this.getCells().filter(e=>!e.hasParent()).forEach(i=>i.translate(e,t,n)),this}resize(e,t,n){return this.resizeCells(e,t,this.getCells(),n)}resizeCells(e,t,n,i={}){const r=this.getCellsBBox(n);if(r){const o=Math.max(e/r.width,0),a=Math.max(t/r.height,0),s=r.getOrigin();n.forEach(e=>e.scale(o,a,s,i))}return this}toJSON(e={}){return _A.toJSON(this.getCells(),e)}parseJSON(e){return _A.fromJSON(e)}fromJSON(e,t={}){const n=this.parseJSON(e);return this.resetCells(n,t),this}startBatch(e,t={}){return this.batches[e]=(this.batches[e]||0)+1,this.notify("batch:start",{name:e,data:t}),this}stopBatch(e,t={}){return this.batches[e]=(this.batches[e]||0)-1,this.notify("batch:stop",{name:e,data:t}),this}batchUpdate(e,t,n={}){this.startBatch(e,n);const i=t();return this.stopBatch(e,n),i}hasActiveBatch(e=Object.keys(this.batches)){const t=Array.isArray(e)?e:[e];return t.some(e=>this.batches[e]>0)}}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&"function"===typeof i.addNode&&"function"===typeof i.addEdge&&null!=i.collection}e.toStringTag=`X6.${e.name}`,e.isModel=t})(_A||(_A={})),function(e){function t(e,t={}){return{cells:e.map(e=>e.toJSON(t))}}function n(e){const t=[];return Array.isArray(e)?t.push(...e):(e.cells&&t.push(...e.cells),e.nodes&&e.nodes.forEach(e=>{null==e.shape&&(e.shape="rect"),t.push(e)}),e.edges&&e.edges.forEach(e=>{null==e.shape&&(e.shape="edge"),t.push(e)})),t.map(e=>{const t=e.shape;if(t){if(eA.registry.exist(t))return eA.create(e);if(dA.registry.exist(t))return dA.create(e)}throw new Error("The `shape` should be specipied when creating a node/edge instance")})}e.toJSON=t,e.fromJSON=n}(_A||(_A={}));const yA=".text-block-content",bA=oA("text-block");class SA extends eA{get content(){return this.getContent()}set content(e){this.setContent(e)}getContent(){return this.store.get("content","")}setContent(e,t={}){this.store.set("content",e,t)}setup(){super.setup(),this.store.on("change:*",e=>{const t=e.key;"content"===t?this.updateContent(this.getContent()):"size"===t&&this.updateSize(this.getSize())}),this.updateSize(this.getSize()),this.updateContent(this.getContent())}updateSize(e){O.SUPPORT_FOREIGNOBJECT&&this.setAttrs({foreignObject:Object.assign({},e),[yA]:{style:Object.assign({},e)}})}updateContent(e){O.SUPPORT_FOREIGNOBJECT?this.setAttrs({[yA]:{html:e?o.sanitizeHTML(e):""}}):this.setAttrs({[yA]:{text:e}})}}(function(e){e.config({type:bA,view:bA,markup:['','',O.SUPPORT_FOREIGNOBJECT?["",'',`
`,"",""].join(""):``,""].join(""),attrs:{".":{fill:"#ffffff",stroke:"none"},rect:{fill:"#ffffff",stroke:"#000000",width:80,height:100},text:{fill:"#000000",fontSize:14,fontFamily:"Arial, helvetica, sans-serif"},body:{style:{background:"transparent",position:"static",margin:0,padding:0}},foreignObject:{style:{overflow:"hidden"}},[yA]:{refX:.5,refY:.5,yAlign:"middle",xAlign:"middle",style:{textAlign:"center",verticalAlign:"middle",display:"table-cell",padding:"0 5px",margin:0}}}}),eA.registry.register(bA,e)})(SA||(SA={})),function(e){const t="content";class n extends fA{confirmUpdate(e,n={}){let i=super.confirmUpdate(e,n);return this.hasAction(i,t)&&(this.updateContent(),i=this.removeAction(i,t)),i}update(e){if(O.SUPPORT_FOREIGNOBJECT)super.update(e);else{const t=this.cell,n=Object.assign({},e||t.getAttrs());delete n[yA],super.update(n),e&&!r.has(e,yA)||this.updateContent(e)}}updateContent(e){if(O.SUPPORT_FOREIGNOBJECT)super.update(e);else{const t=this.cell,n=(e||t.getAttrs())[yA],i=c.breakText(t.getContent(),t.getSize(),n,{svgDocument:this.graph.view.svg}),o={[yA]:r.merge({},n,{text:i})};super.update(o)}}}e.View=n,function(e){e.config({bootstrap:["render",t],actions:O.SUPPORT_FOREIGNOBJECT?{}:{size:t,content:t}}),fA.registry.register(bA,e)}(n=e.View||(e.View={}))}(SA||(SA={}));nA.define({shape:"empty"});function EA(e,t="body"){return[{tagName:e,selector:t},{tagName:"text",selector:"label"}]}function CA(e,t,n={}){const i={constructorName:e,markup:EA(e,n.selector),attrs:{[e]:Object.assign({},nA.bodyAttr)}},o=n.parent||nA;return o.define(r.merge(i,t,{shape:e}))}CA("rect",{attrs:{body:{refWidth:"100%",refHeight:"100%"}}}),eA.define({shape:"rect-headered",markup:[{tagName:"rect",selector:"body"},{tagName:"rect",selector:"header"},{tagName:"text",selector:"headerText"},{tagName:"text",selector:"bodyText"}],attrs:{body:Object.assign(Object.assign({},nA.bodyAttr),{refWidth:"100%",refHeight:"100%"}),header:Object.assign(Object.assign({},nA.bodyAttr),{refWidth:"100%",height:30,stroke:"#000000"}),headerText:Object.assign(Object.assign({},nA.labelAttr),{refX:"50%",refY:15,fontSize:16}),bodyText:Object.assign(Object.assign({},nA.labelAttr),{refY2:15})}}),CA("circle",{attrs:{body:{refCx:"50%",refCy:"50%",refR:"50%"}}});const xA=10;nA.define({shape:"cylinder",overwrite:!0,markup:[{tagName:"path",selector:"body"},{tagName:"ellipse",selector:"top"},{tagName:"text",selector:"label"}],attrs:{body:Object.assign(Object.assign({},nA.bodyAttr),{lateral:xA}),top:Object.assign(Object.assign({},nA.bodyAttr),{refCx:"50%",refRx:"50%",cy:xA,ry:xA})},attrHooks:{lateral:{set(e,{refBBox:t}){const n=a.isPercentage(e);n&&(e=parseFloat(e)/100);const i=t.x,r=t.y,o=t.width,s=t.height,l=o/2,c=n?s*e:e,u=.551784,d=u*l,h=u*c,p=i,f=i+o/2,g=i+o,m=r+c,v=m-c,_=r+s-c,y=r+s,b=["M",p,m,"L",p,_,"C",i,_+h,f-d,y,f,y,"C",f+d,y,g,_+h,g,_,"L",g,m,"C",g,m-h,f+d,v,f,v,"C",f-d,v,p,m-h,p,m,"Z"];return{d:b.join(" ")}}}},knob:{enabled:!0,position({node:e}){const t=e.attr("body/lateral");return{x:0,y:t}},onMouseMove({node:e,data:t,deltaY:n}){if(0!==n){const i=e.getBBox(),r=e.attr("body/lateral");null==t.round&&(t.round=r);const o=0,s=i.height/2,l=a.clamp(t.round+n,o,s);l!==r&&e.attr({body:{lateral:l},top:{cy:l,ry:l}})}}}}),CA("ellipse",{attrs:{body:{refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%"}}});var wA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{return Array.isArray(e)?e.join(","):xy.isPointLike(e)?`${e.x}, ${e.y}`:""}).join(" ")}e.pointsToString=t,e.config({propHooks(e){const{points:n}=e,i=wA(e,["points"]);if(n){const e=t(n);e&&r.setByPath(i,"attrs/body/refPoints",e)}return i}})})(TA||(TA={}));CA("polygon",{},{parent:TA}),CA("polyline",{},{parent:TA});var AA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const e=this.graph.hook.shouldUpdateHTMLComponent(this.cell);e&&this.renderHTMLComponent()})}confirmUpdate(e){const n=super.confirmUpdate(e);return this.handleAction(n,t.action,()=>this.renderHTMLComponent())}renderHTMLComponent(){const e=this.selectors.foContent;if(e){const t=this.$(e).empty(),n=this.graph.hook.getHTMLComponent(this.cell);n&&("string"===typeof n?t.html(n):t.append(n))}}}e.View=t,function(e){e.action="html",e.config({bootstrap:[e.action],actions:{html:e.action}}),fA.registry.register("html-view",e)}(t=e.View||(e.View={}))})(NA||(NA={})),function(e){e.config({view:"html-view",markup:[{tagName:"rect",selector:"body"},Object.assign({},Dx.getForeignObjectMarkup()),{tagName:"text",selector:"label"}],attrs:{body:{fill:"none",stroke:"none",refWidth:"100%",refHeight:"100%"},fo:{refWidth:"100%",refHeight:"100%"}}}),eA.registry.register("html",e)}(NA||(NA={})),function(e){e.componentRegistry=gS.create({type:"html componnet"})}(NA||(NA={}));var DA=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class IA extends px{constructor(e){super(),this.delay=10,this.throttle=2,this.threshold=5,this.changeCount=0,this.timestamp=0,this.options=Object.assign(Object.assign({},IA.defaultOptions),e),this.graph.model.on("cell:change:*",this.onModelChanged,this)}get graph(){return this.options.graph}onModelChanged(){if(this.disabled)return;const e=(new Date).getTime(),t=(e-this.timestamp)/1e3;t>this.delay||this.changeCount>=this.threshold&&t>this.throttle?(this.save(),this.reset()):this.changeCount+=1}save(){this.trigger("save")}reset(){this.changeCount=0,this.timestamp=(new Date).getTime()}dispose(){this.graph.model.off("cell:change:*",this.onModelChanged,this)}}DA([px.dispose()],IA.prototype,"dispose",null),function(e){e.defaultOptions={delay:10,throttle:2,threshold:5}}(IA||(IA={}));class MA extends ux{constructor(e){super(),this.graph=e,this.init()}get options(){return this.graph.options}get model(){return this.graph.model}get view(){return this.graph.view}init(){}}var kA,LA=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class PA extends Ex{constructor(e){super(),this.graph=e;const{selectors:t,fragment:n}=Dx.parseJSONMarkup(PA.markup);this.background=t.background,this.grid=t.grid,this.svg=t.svg,this.defs=t.defs,this.viewport=t.viewport,this.primer=t.primer,this.stage=t.stage,this.decorator=t.decorator,this.overlay=t.overlay,this.container=this.options.container,this.restore=PA.snapshoot(this.container),this.$(this.container).addClass(this.prefixClassName("graph")).append(n),this.delegateEvents()}get model(){return this.graph.model}get options(){return this.graph.options}delegateEvents(){const e=this.constructor;return super.delegateEvents(e.events),this}guard(e,t){return"mousedown"===e.type&&2===e.button||(!(!this.options.guard||!this.options.guard(e,t))||(e.data&&void 0!==e.data.guarded?e.data.guarded:!(t&&t.cell&&XT.isCell(t.cell))&&(this.svg!==e.target&&this.container!==e.target&&!T.a.contains(this.svg,e.target))))}findView(e){return this.graph.renderer.findViewByElem(e)}onDblClick(e){this.options.preventDefaultDblClick&&e.preventDefault();const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;const i=this.graph.snapToGrid(t.clientX,t.clientY);n?n.onDblClick(t,i.x,i.y):this.graph.trigger("blank:dblclick",{e:t,x:i.x,y:i.y})}onClick(e){if(this.getMouseMovedCount(e)<=this.options.clickThreshold){const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;const i=this.graph.snapToGrid(t.clientX,t.clientY);n?n.onClick(t,i.x,i.y):this.graph.trigger("blank:click",{e:t,x:i.x,y:i.y})}}onContextMenu(e){this.options.preventDefaultContextMenu&&e.preventDefault();const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;const i=this.graph.snapToGrid(t.clientX,t.clientY);n?n.onContextMenu(t,i.x,i.y):this.graph.trigger("blank:contextmenu",{e:t,x:i.x,y:i.y})}delegateDragEvents(e,t){null==e.data&&(e.data={}),this.setEventData(e,{currentView:t||null,mouseMovedCount:0,startPosition:{x:e.clientX,y:e.clientY}});const n=this.constructor;this.delegateDocumentEvents(n.documentEvents,e.data),this.undelegateEvents()}getMouseMovedCount(e){const t=this.getEventData(e);return t.mouseMovedCount||0}onMouseDown(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;this.options.preventDefaultMouseDown&&t.preventDefault();const i=this.graph.snapToGrid(t.clientX,t.clientY);n?n.onMouseDown(t,i.x,i.y):(this.options.preventDefaultBlankAction&&t.preventDefault(),this.graph.trigger("blank:mousedown",{e:t,x:i.x,y:i.y})),this.delegateDragEvents(t,n)}onMouseMove(e){const t=this.getEventData(e),n=t.startPosition;if(n&&n.x===e.clientX&&n.y===e.clientY)return;null==t.mouseMovedCount&&(t.mouseMovedCount=0),t.mouseMovedCount+=1;const i=t.mouseMovedCount;if(i<=this.options.moveThreshold)return;const r=this.normalizeEvent(e),o=this.graph.snapToGrid(r.clientX,r.clientY),a=t.currentView;a?a.onMouseMove(r,o.x,o.y):this.graph.trigger("blank:mousemove",{e:r,x:o.x,y:o.y}),this.setEventData(r,t)}onMouseUp(e){this.undelegateDocumentEvents();const t=this.normalizeEvent(e),n=this.graph.snapToGrid(t.clientX,t.clientY),i=this.getEventData(e),r=i.currentView;r?r.onMouseUp(t,n.x,n.y):this.graph.trigger("blank:mouseup",{e:t,x:n.x,y:n.y}),e.isPropagationStopped()||this.onClick(T.a.Event(e,{type:"click",data:e.data})),e.stopImmediatePropagation(),this.delegateEvents()}onMouseOver(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(!this.guard(t,n))if(n)n.onMouseOver(t);else{if(this.container===t.target)return;this.graph.trigger("blank:mouseover",{e:t})}}onMouseOut(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(!this.guard(t,n))if(n)n.onMouseOut(t);else{if(this.container===t.target)return;this.graph.trigger("blank:mouseout",{e:t})}}onMouseEnter(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;const i=this.graph.renderer.findViewByElem(t.relatedTarget);if(n){if(i===n)return;n.onMouseEnter(t)}else{if(i)return;this.graph.trigger("graph:mouseenter",{e:t})}}onMouseLeave(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;const i=this.graph.renderer.findViewByElem(t.relatedTarget);if(n){if(i===n)return;n.onMouseLeave(t)}else{if(i)return;this.graph.trigger("graph:mouseleave",{e:t})}}onMouseWheel(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;const i=t.originalEvent,r=this.graph.snapToGrid(i.clientX,i.clientY),o=Math.max(-1,Math.min(1,i.wheelDelta||-i.detail));n?n.onMouseWheel(t,r.x,r.y,o):this.graph.trigger("blank:mousewheel",{e:t,delta:o,x:r.x,y:r.y})}onCustomEvent(e){const t=e.currentTarget,n=t.getAttribute("event")||t.getAttribute("data-event");if(n){const i=this.findView(t);if(i){const t=this.normalizeEvent(e);if(this.guard(t,i))return;const r=this.graph.snapToGrid(t.clientX,t.clientY);i.onCustomEvent(t,n,r.x,r.y)}}}handleMagnetEvent(e,t){const n=e.currentTarget,i=n.getAttribute("magnet");if(i&&"false"!==i.toLowerCase()){const i=this.findView(n);if(i){const r=this.normalizeEvent(e);if(this.guard(r,i))return;const o=this.graph.snapToGrid(r.clientX,r.clientY);s.call(t,this.graph,i,r,n,o.x,o.y)}}}onMagnetMouseDown(e){this.handleMagnetEvent(e,(e,t,n,i,r)=>{e.onMagnetMouseDown(t,n,i,r)})}onMagnetDblClick(e){this.handleMagnetEvent(e,(e,t,n,i,r)=>{e.onMagnetDblClick(t,n,i,r)})}onMagnetContextMenu(e){this.options.preventDefaultContextMenu&&e.preventDefault(),this.handleMagnetEvent(e,(e,t,n,i,r)=>{e.onMagnetContextMenu(t,n,i,r)})}onLabelMouseDown(e){const t=e.currentTarget,n=this.findView(t);if(n){const t=this.normalizeEvent(e);if(this.guard(t,n))return;const i=this.graph.snapToGrid(t.clientX,t.clientY);n.onLabelMouseDown(t,i.x,i.y)}}onImageDragStart(){return!1}dispose(){this.undelegateEvents(),this.undelegateDocumentEvents(),this.restore(),this.restore=()=>{}}}LA([Ex.dispose()],PA.prototype,"dispose",null),function(e){const t=`${_C.prefixCls}-graph`;function n(e){const t=e.cloneNode();return e.childNodes.forEach(e=>t.appendChild(e)),()=>{c.empty(e);while(e.attributes.length>0)e.removeAttribute(e.attributes[0].name);for(let n=0,i=t.attributes.length;ne.appendChild(t))}}e.markup=[{ns:c.ns.xhtml,tagName:"div",selector:"background",className:`${t}-background`},{ns:c.ns.xhtml,tagName:"div",selector:"grid",className:`${t}-grid`},{ns:c.ns.svg,tagName:"svg",selector:"svg",className:`${t}-svg`,attrs:{width:"100%",height:"100%","xmlns:xlink":c.ns.xlink},children:[{tagName:"defs",selector:"defs"},{tagName:"g",selector:"viewport",className:`${t}-svg-viewport`,children:[{tagName:"g",selector:"primer",className:`${t}-svg-primer`},{tagName:"g",selector:"stage",className:`${t}-svg-stage`},{tagName:"g",selector:"decorator",className:`${t}-svg-decorator`},{tagName:"g",selector:"overlay",className:`${t}-svg-overlay`}]}]}],e.snapshoot=n}(PA||(PA={})),function(e){const t=_C.prefixCls;e.events={dblclick:"onDblClick",contextmenu:"onContextMenu",touchstart:"onMouseDown",mousedown:"onMouseDown",mouseover:"onMouseOver",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousewheel:"onMouseWheel",DOMMouseScroll:"onMouseWheel",[`mouseenter .${t}-cell`]:"onMouseEnter",[`mouseleave .${t}-cell`]:"onMouseLeave",[`mouseenter .${t}-cell-tools`]:"onMouseEnter",[`mouseleave .${t}-cell-tools`]:"onMouseLeave",[`mousedown .${t}-cell [event]`]:"onCustomEvent",[`touchstart .${t}-cell [event]`]:"onCustomEvent",[`mousedown .${t}-cell [data-event]`]:"onCustomEvent",[`touchstart .${t}-cell [data-event]`]:"onCustomEvent",[`dblclick .${t}-cell [magnet]`]:"onMagnetDblClick",[`contextmenu .${t}-cell [magnet]`]:"onMagnetContextMenu",[`mousedown .${t}-cell [magnet]`]:"onMagnetMouseDown",[`touchstart .${t}-cell [magnet]`]:"onMagnetMouseDown",[`dblclick .${t}-cell [data-magnet]`]:"onMagnetDblClick",[`contextmenu .${t}-cell [data-magnet]`]:"onMagnetContextMenu",[`mousedown .${t}-cell [data-magnet]`]:"onMagnetMouseDown",[`touchstart .${t}-cell [data-magnet]`]:"onMagnetMouseDown",[`dragstart .${t}-cell image`]:"onImageDragStart",[`mousedown .${t}-edge .${t}-edge-label`]:"onLabelMouseDown",[`touchstart .${t}-edge .${t}-edge-label`]:"onLabelMouseDown"},e.documentEvents={mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"}}(PA||(PA={})),function(e){function t(e,t){return(n,i,r)=>{const o=r.value;r.value=function(...n){const r=this.scroller.widget;if(null==r){const n=`Shoule enable scroller to use method '${i}'`;if(!1!==e)throw console.error(n),new Error(n);return!1!==t&&console.warn(n),this}return o.call(this,...n)}}}e.checkScroller=t}(kA||(kA={}));const FA=".x6-graph {\n position: relative;\n outline: none;\n}\n.x6-graph-background,\n.x6-graph-grid,\n.x6-graph-svg {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.x6-graph-background-stage,\n.x6-graph-grid-stage,\n.x6-graph-svg-stage {\n user-select: none;\n}\n.x6-graph.x6-graph-pannable {\n cursor: grab;\n cursor: -moz-grab;\n cursor: -webkit-grab;\n}\n.x6-graph.x6-graph-panning {\n cursor: grabbing;\n cursor: -moz-grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n}\n.x6-node {\n cursor: move;\n /* stylelint-disable-next-line */\n}\n.x6-node.x6-node-immovable {\n cursor: default;\n}\n.x6-node * {\n -webkit-user-drag: none;\n}\n.x6-node .scalable * {\n vector-effect: non-scaling-stroke;\n}\n.x6-node [magnet='true'] {\n cursor: crosshair;\n transition: opacity 0.3s;\n}\n.x6-node [magnet='true']:hover {\n opacity: 0.7;\n}\n.x6-node foreignObject {\n display: block;\n overflow: visible;\n background-color: transparent;\n}\n.x6-node foreignObject > body {\n position: static;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n overflow: visible;\n background-color: transparent;\n}\n.x6-edge .source-marker,\n.x6-edge .target-marker {\n vector-effect: non-scaling-stroke;\n}\n.x6-edge .connection {\n stroke-linejoin: round;\n fill: none;\n}\n.x6-edge .connection-wrap {\n cursor: move;\n opacity: 0;\n fill: none;\n stroke: #000;\n stroke-width: 15;\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n.x6-edge .connection-wrap:hover {\n opacity: 0.4;\n stroke-opacity: 0.4;\n}\n.x6-edge .vertices {\n cursor: move;\n opacity: 0;\n}\n.x6-edge .vertices .vertex {\n fill: #1abc9c;\n}\n.x6-edge .vertices .vertex :hover {\n fill: #34495e;\n stroke: none;\n}\n.x6-edge .vertices .vertex-remove {\n cursor: pointer;\n fill: #fff;\n}\n.x6-edge .vertices .vertex-remove-area {\n cursor: pointer;\n opacity: 0.1;\n}\n.x6-edge .vertices .vertex-group:hover .vertex-remove-area {\n opacity: 1;\n}\n.x6-edge .arrowheads {\n cursor: move;\n opacity: 0;\n}\n.x6-edge .arrowheads .arrowhead {\n fill: #1abc9c;\n}\n.x6-edge .arrowheads .arrowhead :hover {\n fill: #f39c12;\n stroke: none;\n}\n.x6-edge .tools {\n cursor: pointer;\n opacity: 0;\n}\n.x6-edge .tools .tool-options {\n display: none;\n}\n.x6-edge .tools .tool-remove circle {\n fill: #f00;\n}\n.x6-edge .tools .tool-remove path {\n fill: #fff;\n}\n.x6-edge:hover .vertices,\n.x6-edge:hover .arrowheads,\n.x6-edge:hover .tools {\n opacity: 1;\n}\n.x6-highlight-opacity {\n opacity: 0.3;\n}\n@keyframes halo-pie-visibility {\n 0% {\n visibility: hidden;\n }\n 100% {\n visibility: visible;\n }\n}\n@keyframes halo-pie-opening {\n 0% {\n transform: scale(0.4) rotate(-20deg);\n }\n 100% {\n transform: scale(1) rotate(0);\n }\n}\n.x6-widget-handle {\n position: absolute;\n width: 20px;\n height: 20px;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: 0 0;\n background-size: 20px 20px;\n cursor: pointer;\n user-select: none;\n pointer-events: auto;\n -webkit-user-drag: none;\n user-drag: none;\n /* stylelint-disable-line */\n}\n.x6-widget-handle.hidden {\n display: none;\n}\n.x6-widget-handle-selected {\n background-color: rgba(0, 0, 0, 0.1);\n border-radius: 3px;\n}\n.x6-widget-handle-remove {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M15.386%2C3.365c-3.315-3.314-8.707-3.313-12.021%2C0c-3.314%2C3.315-3.314%2C8.706%2C0%2C12.02%20c3.314%2C3.314%2C8.707%2C3.314%2C12.021%2C0S18.699%2C6.68%2C15.386%2C3.365L15.386%2C3.365z%20M4.152%2C14.598C1.273%2C11.719%2C1.273%2C7.035%2C4.153%2C4.154%20c2.88-2.88%2C7.563-2.88%2C10.443%2C0c2.881%2C2.88%2C2.881%2C7.562%2C0%2C10.443C11.716%2C17.477%2C7.032%2C17.477%2C4.152%2C14.598L4.152%2C14.598z%22%2F%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M12.157%2C11.371L7.38%2C6.593C7.162%2C6.375%2C6.809%2C6.375%2C6.592%2C6.592c-0.218%2C0.219-0.218%2C0.572%2C0%2C0.79%20l4.776%2C4.776c0.218%2C0.219%2C0.571%2C0.219%2C0.79%2C0C12.375%2C11.941%2C12.375%2C11.588%2C12.157%2C11.371L12.157%2C11.371z%22%2F%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M11.369%2C6.593l-4.777%2C4.778c-0.217%2C0.217-0.217%2C0.568%2C0%2C0.787c0.219%2C0.219%2C0.571%2C0.217%2C0.788%2C0l4.777-4.777%20c0.218-0.218%2C0.218-0.571%2C0.001-0.789C11.939%2C6.375%2C11.587%2C6.375%2C11.369%2C6.593L11.369%2C6.593z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n cursor: pointer;\n}\n.x6-widget-handle-remove:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M15.386%2C3.365c-3.315-3.314-8.707-3.313-12.021%2C0c-3.314%2C3.315-3.314%2C8.706%2C0%2C12.02%20c3.314%2C3.314%2C8.707%2C3.314%2C12.021%2C0S18.699%2C6.68%2C15.386%2C3.365L15.386%2C3.365z%22%2F%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M12.157%2C11.371L7.38%2C6.593C7.162%2C6.375%2C6.809%2C6.375%2C6.592%2C6.592c-0.218%2C0.219-0.218%2C0.572%2C0%2C0.79%20l4.776%2C4.776c0.218%2C0.219%2C0.571%2C0.219%2C0.79%2C0C12.375%2C11.941%2C12.375%2C11.588%2C12.157%2C11.371L12.157%2C11.371z%22%2F%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M11.369%2C6.593l-4.777%2C4.778c-0.217%2C0.217-0.217%2C0.568%2C0%2C0.787c0.219%2C0.219%2C0.571%2C0.217%2C0.788%2C0l4.777-4.777%20c0.218-0.218%2C0.218-0.571%2C0.001-0.789C11.939%2C6.375%2C11.587%2C6.375%2C11.369%2C6.593L11.369%2C6.593z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-rotate {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M9.374%2C17.592c-4.176%2C0-7.57-3.401-7.57-7.575c0-4.175%2C3.395-7.574%2C7.57-7.574c0.28%2C0%2C0.56%2C0.018%2C0.837%2C0.05%20V1.268c0-0.158%2C0.099-0.3%2C0.239-0.36c0.151-0.058%2C0.315-0.026%2C0.428%2C0.086l2.683%2C2.688c0.152%2C0.154%2C0.152%2C0.399%2C0%2C0.553l-2.68%2C2.693%20c-0.115%2C0.112-0.279%2C0.147-0.431%2C0.087c-0.141-0.063-0.239-0.205-0.239-0.361V5.296C9.934%2C5.243%2C9.654%2C5.22%2C9.374%2C5.22%20c-2.646%2C0-4.796%2C2.152-4.796%2C4.797s2.154%2C4.798%2C4.796%2C4.798c2.645%2C0%2C4.798-2.153%2C4.798-4.798c0-0.214%2C0.174-0.391%2C0.391-0.391h1.991%20c0.217%2C0%2C0.394%2C0.177%2C0.394%2C0.391C16.947%2C14.19%2C13.549%2C17.592%2C9.374%2C17.592L9.374%2C17.592z%20M9.374%2C17.592%22%2F%3E%3C%2Fsvg%3E%20');\n cursor: move;\n}\n.x6-widget-handle-rotate:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M9.374%2C17.592c-4.176%2C0-7.57-3.401-7.57-7.575c0-4.175%2C3.395-7.574%2C7.57-7.574c0.28%2C0%2C0.56%2C0.018%2C0.837%2C0.05%20V1.268c0-0.158%2C0.099-0.3%2C0.239-0.36c0.151-0.058%2C0.315-0.026%2C0.428%2C0.086l2.683%2C2.688c0.152%2C0.154%2C0.152%2C0.399%2C0%2C0.553l-2.68%2C2.693%20c-0.115%2C0.112-0.279%2C0.147-0.431%2C0.087c-0.141-0.063-0.239-0.205-0.239-0.361V5.296C9.934%2C5.243%2C9.654%2C5.22%2C9.374%2C5.22%20c-2.646%2C0-4.796%2C2.152-4.796%2C4.797s2.154%2C4.798%2C4.796%2C4.798c2.645%2C0%2C4.798-2.153%2C4.798-4.798c0-0.214%2C0.174-0.391%2C0.391-0.391h1.991%20c0.217%2C0%2C0.394%2C0.177%2C0.394%2C0.391C16.947%2C14.19%2C13.549%2C17.592%2C9.374%2C17.592L9.374%2C17.592z%20M9.374%2C17.592%22%2F%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-resize {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Csvg%20height%3D%2224px%22%20version%3D%221.1%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224px%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Asketch%3D%22http%3A%2F%2Fwww.bohemiancoding.com%2Fsketch%2Fns%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Ctitle%2F%3E%3Cdesc%2F%3E%3Cdefs%2F%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%20id%3D%22miu%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%3E%3Cg%20id%3D%22Artboard-1%22%20transform%3D%22translate(-251.000000%2C%20-443.000000)%22%3E%3Cg%20id%3D%22slice%22%20transform%3D%22translate(215.000000%2C%20119.000000)%22%2F%3E%3Cpath%20d%3D%22M252%2C448%20L256%2C448%20L256%2C444%20L252%2C444%20L252%2C448%20Z%20M257%2C448%20L269%2C448%20L269%2C446%20L257%2C446%20L257%2C448%20Z%20M257%2C464%20L269%2C464%20L269%2C462%20L257%2C462%20L257%2C464%20Z%20M270%2C444%20L270%2C448%20L274%2C448%20L274%2C444%20L270%2C444%20Z%20M252%2C462%20L252%2C466%20L256%2C466%20L256%2C462%20L252%2C462%20Z%20M270%2C462%20L270%2C466%20L274%2C466%20L274%2C462%20L270%2C462%20Z%20M254%2C461%20L256%2C461%20L256%2C449%20L254%2C449%20L254%2C461%20Z%20M270%2C461%20L272%2C461%20L272%2C449%20L270%2C449%20L270%2C461%20Z%22%20fill%3D%22%236A6C8A%22%20id%3D%22editor-crop-glyph%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E');\n cursor: se-resize;\n}\n.x6-widget-handle-resize:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Csvg%20height%3D%2224px%22%20version%3D%221.1%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224px%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Asketch%3D%22http%3A%2F%2Fwww.bohemiancoding.com%2Fsketch%2Fns%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Ctitle%2F%3E%3Cdesc%2F%3E%3Cdefs%2F%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%20id%3D%22miu%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%3E%3Cg%20id%3D%22Artboard-1%22%20transform%3D%22translate(-251.000000%2C%20-443.000000)%22%3E%3Cg%20id%3D%22slice%22%20transform%3D%22translate(215.000000%2C%20119.000000)%22%2F%3E%3Cpath%20d%3D%22M252%2C448%20L256%2C448%20L256%2C444%20L252%2C444%20L252%2C448%20Z%20M257%2C448%20L269%2C448%20L269%2C446%20L257%2C446%20L257%2C448%20Z%20M257%2C464%20L269%2C464%20L269%2C462%20L257%2C462%20L257%2C464%20Z%20M270%2C444%20L270%2C448%20L274%2C448%20L274%2C444%20L270%2C444%20Z%20M252%2C462%20L252%2C466%20L256%2C466%20L256%2C462%20L252%2C462%20Z%20M270%2C462%20L270%2C466%20L274%2C466%20L274%2C462%20L270%2C462%20Z%20M254%2C461%20L256%2C461%20L256%2C449%20L254%2C449%20L254%2C461%20Z%20M270%2C461%20L272%2C461%20L272%2C449%20L270%2C449%20L270%2C461%20Z%22%20fill%3D%22%23FD6EB6%22%20id%3D%22editor-crop-glyph%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E');\n}\n.x6-widget-handle-clone {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M12.852%2C0.875h-9.27c-0.853%2C0-1.547%2C0.694-1.547%2C1.547v10.816h1.547V2.422h9.27V0.875z%20M15.172%2C3.965h-8.5%20c-0.849%2C0-1.547%2C0.698-1.547%2C1.547v10.816c0%2C0.849%2C0.698%2C1.547%2C1.547%2C1.547h8.5c0.85%2C0%2C1.543-0.698%2C1.543-1.547V5.512%20C16.715%2C4.663%2C16.021%2C3.965%2C15.172%2C3.965L15.172%2C3.965z%20M15.172%2C16.328h-8.5V5.512h8.5V16.328z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n cursor: move;\n}\n.x6-widget-handle-clone:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M12.852%2C0.875h-9.27c-0.853%2C0-1.547%2C0.694-1.547%2C1.547v10.816h1.547V2.422h9.27V0.875z%20M15.172%2C3.965h-8.5%20c-0.849%2C0-1.547%2C0.698-1.547%2C1.547v10.816c0%2C0.849%2C0.698%2C1.547%2C1.547%2C1.547h8.5c0.849%2C0%2C1.543-0.698%2C1.543-1.547V5.512%20C16.715%2C4.663%2C16.021%2C3.965%2C15.172%2C3.965L15.172%2C3.965z%20M15.172%2C16.328h-8.5V5.512h8.5V16.328z%20M15.172%2C16.328%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-link {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M9.884%2C9.838c0.54-0.551%2C1.005-0.955%2C1.384-1.201c0.463-0.308%2C0.749-0.352%2C0.887-0.352h1.34v1.367%20c0%2C0.104%2C0.061%2C0.2%2C0.154%2C0.242s0.204%2C0.027%2C0.284-0.038l3.168-2.669c0.06-0.051%2C0.096-0.125%2C0.096-0.203S17.16%2C6.83%2C17.101%2C6.781%20l-3.168-2.677c-0.08-0.067-0.19-0.081-0.284-0.038c-0.094%2C0.045-0.154%2C0.139-0.154%2C0.242v1.414h-1.343%20c-1.24%2C0.014-2.215%2C0.67-2.927%2C1.242c-0.797%2C0.65-1.533%2C1.447-2.245%2C2.217c-0.361%2C0.391-0.7%2C0.759-1.044%2C1.1%20c-0.541%2C0.549-1.011%2C0.951-1.395%2C1.199c-0.354%2C0.231-0.678%2C0.357-0.921%2C0.357h-1.8c-0.146%2C0-0.266%2C0.12-0.266%2C0.265v2.029%20c0%2C0.148%2C0.12%2C0.268%2C0.266%2C0.268h1.8l0%2C0c1.255-0.014%2C2.239-0.667%2C2.958-1.24c0.82-0.661%2C1.572-1.475%2C2.297-2.256%20C9.225%2C10.524%2C9.555%2C10.169%2C9.884%2C9.838z%22%2F%3E%3C%2Fsvg%3E%20');\n cursor: move;\n cursor: -moz-grabbing;\n cursor: -webkit-grabbing;\n}\n.x6-widget-handle-link:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M9.884%2C9.838c0.54-0.551%2C1.005-0.955%2C1.384-1.201c0.463-0.308%2C0.749-0.352%2C0.887-0.352h1.34v1.367%20c0%2C0.104%2C0.061%2C0.2%2C0.154%2C0.242s0.204%2C0.027%2C0.284-0.038l3.168-2.669c0.06-0.051%2C0.096-0.125%2C0.096-0.203S17.16%2C6.83%2C17.101%2C6.781%20l-3.168-2.677c-0.08-0.067-0.19-0.081-0.284-0.038c-0.094%2C0.045-0.154%2C0.139-0.154%2C0.242v1.414h-1.343%20c-1.24%2C0.014-2.215%2C0.67-2.927%2C1.242c-0.797%2C0.65-1.533%2C1.447-2.245%2C2.217c-0.361%2C0.391-0.7%2C0.759-1.044%2C1.1%20c-0.541%2C0.549-1.011%2C0.951-1.395%2C1.199c-0.354%2C0.231-0.678%2C0.357-0.921%2C0.357h-1.8c-0.146%2C0-0.266%2C0.12-0.266%2C0.265v2.029%20c0%2C0.148%2C0.12%2C0.268%2C0.266%2C0.268h1.8l0%2C0c1.255-0.014%2C2.239-0.667%2C2.958-1.24c0.82-0.661%2C1.572-1.475%2C2.297-2.256%20C9.225%2C10.524%2C9.555%2C10.169%2C9.884%2C9.838z%22%2F%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-fork {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cg%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%236A6C8A%22%20d%3D%22M13.307%2C11.593c-0.69%2C0-1.299%2C0.33-1.693%2C0.835l-4.136-2.387%20C7.552%2C9.82%2C7.602%2C9.589%2C7.602%2C9.344c0-0.25-0.051-0.487-0.129-0.71l4.097-2.364c0.393%2C0.536%2C1.022%2C0.888%2C1.737%2C0.888%20c1.193%2C0%2C2.16-0.967%2C2.16-2.159s-0.967-2.159-2.16-2.159c-1.191%2C0-2.158%2C0.967-2.158%2C2.159c0%2C0.076%2C0.014%2C0.149%2C0.021%2C0.223%20L6.848%2C7.716C6.469%2C7.39%2C5.982%2C7.185%2C5.442%2C7.185c-1.191%2C0-2.158%2C0.967-2.158%2C2.159s0.967%2C2.159%2C2.158%2C2.159%20c0.545%2C0%2C1.037-0.208%2C1.417-0.541l4.319%2C2.493c-0.014%2C0.098-0.029%2C0.194-0.029%2C0.296c0%2C1.193%2C0.967%2C2.159%2C2.158%2C2.159%20c1.193%2C0%2C2.16-0.966%2C2.16-2.159C15.467%2C12.559%2C14.5%2C11.593%2C13.307%2C11.593z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n cursor: move;\n}\n.x6-widget-handle-fork:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cg%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23FD6EB6%22%20d%3D%22M13.307%2C11.593c-0.69%2C0-1.299%2C0.33-1.693%2C0.835l-4.136-2.387%20c0.075-0.22%2C0.125-0.452%2C0.125-0.697c0-0.25-0.051-0.487-0.129-0.71l4.097-2.365c0.394%2C0.536%2C1.022%2C0.888%2C1.737%2C0.888%20c1.193%2C0%2C2.16-0.967%2C2.16-2.159s-0.967-2.159-2.16-2.159c-1.191%2C0-2.158%2C0.967-2.158%2C2.159c0%2C0.076%2C0.015%2C0.148%2C0.022%2C0.223%20L6.848%2C7.716C6.469%2C7.39%2C5.981%2C7.185%2C5.442%2C7.185c-1.191%2C0-2.158%2C0.967-2.158%2C2.159s0.967%2C2.159%2C2.158%2C2.159%20c0.545%2C0%2C1.037-0.208%2C1.417-0.541l4.319%2C2.493c-0.013%2C0.098-0.029%2C0.194-0.029%2C0.296c0%2C1.193%2C0.967%2C2.159%2C2.158%2C2.159%20c1.193%2C0%2C2.16-0.966%2C2.16-2.159C15.467%2C12.559%2C14.5%2C11.593%2C13.307%2C11.593z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-unlink {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cg%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M12.285%2C9.711l-2.104-0.302L9.243%2C8.568L6.669%2C7.095C6.948%2C6.6%2C6.995%2C6.026%2C6.845%2C5.474%20c-0.191-0.698-0.695-1.36-1.438-1.786C4.068%2C2.922%2C2.464%2C3.214%2C1.82%2C4.338C1.536%2C4.836%2C1.489%2C5.414%2C1.64%2C5.97%20c0.189%2C0.698%2C0.694%2C1.36%2C1.438%2C1.787c0.328%2C0.187%2C0.67%2C0.31%2C1.01%2C0.372c0.002%2C0%2C0.006%2C0.002%2C0.008%2C0.004%20c0.027%2C0.004%2C0.057%2C0.009%2C0.088%2C0.011c2.12%2C0.316%2C3.203%2C0.915%2C3.73%2C1.337c-0.527%2C0.424-1.61%2C1.021-3.731%2C1.339%20c-0.029%2C0.003-0.058%2C0.007-0.087%2C0.012c-0.002%2C0.002-0.004%2C0.002-0.007%2C0.003c-0.341%2C0.062-0.684%2C0.187-1.013%2C0.374%20c-0.74%2C0.425-1.246%2C1.089-1.437%2C1.787c-0.149%2C0.555-0.105%2C1.133%2C0.181%2C1.632c0.011%2C0.018%2C0.021%2C0.033%2C0.033%2C0.049l0.883%2C0.783%20c0.765%2C0.366%2C1.775%2C0.328%2C2.67-0.184c0.744-0.425%2C1.248-1.088%2C1.439-1.786c0.148-0.552%2C0.104-1.126-0.176-1.62l2.573-1.473%20c0.573%2C0.287%2C2.299%2C1.292%2C2.299%2C1.292s3.602%2C1.445%2C4.241%2C1.812c0.773%2C0.191%2C0.566-0.151%2C0.566-0.151L12.285%2C9.711z%20M5.571%2C6.482%20C5.279%2C6.993%2C4.425%2C7.076%2C3.705%2C6.664C3.282%2C6.424%2C2.966%2C6.039%2C2.856%2C5.64C2.81%2C5.464%2C2.778%2C5.203%2C2.917%2C4.963%20c0.291-0.51%2C1.146-0.593%2C1.866-0.182C5.21%2C5.027%2C5.521%2C5.4%2C5.632%2C5.807C5.679%2C5.98%2C5.708%2C6.242%2C5.571%2C6.482z%20M5.632%2C13.159%20c-0.111%2C0.406-0.422%2C0.778-0.848%2C1.025c-0.719%2C0.409-1.576%2C0.327-1.867-0.184c-0.137-0.239-0.106-0.499-0.06-0.676%20c0.108-0.398%2C0.426-0.781%2C0.847-1.022c0.72-0.412%2C1.574-0.329%2C1.866%2C0.181C5.708%2C12.723%2C5.679%2C12.983%2C5.632%2C13.159z%20M16.181%2C5.139%20c-0.448%2C0.258-4.435%2C1.9-4.435%2C1.9s-1.556%2C0.855-2.104%2C1.13l0.937%2C0.843l2.057-0.229l4.11-3.638%20C16.745%2C5.146%2C17.013%2C4.664%2C16.181%2C5.139z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-unlink:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cg%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M12.285%2C9.711l-2.104-0.302L9.243%2C8.568L6.669%2C7.095C6.948%2C6.6%2C6.995%2C6.026%2C6.845%2C5.474%20c-0.191-0.698-0.695-1.36-1.438-1.786C4.068%2C2.922%2C2.464%2C3.214%2C1.82%2C4.338C1.536%2C4.836%2C1.489%2C5.414%2C1.64%2C5.97%20c0.189%2C0.698%2C0.694%2C1.36%2C1.438%2C1.787c0.328%2C0.187%2C0.67%2C0.31%2C1.01%2C0.372c0.002%2C0%2C0.006%2C0.002%2C0.008%2C0.004%20c0.027%2C0.004%2C0.057%2C0.009%2C0.088%2C0.011c2.12%2C0.316%2C3.203%2C0.915%2C3.73%2C1.337c-0.527%2C0.424-1.61%2C1.021-3.731%2C1.339%20c-0.029%2C0.003-0.058%2C0.007-0.087%2C0.012c-0.002%2C0.002-0.004%2C0.002-0.007%2C0.003c-0.341%2C0.062-0.684%2C0.187-1.013%2C0.374%20c-0.74%2C0.425-1.246%2C1.089-1.437%2C1.787c-0.149%2C0.555-0.105%2C1.133%2C0.181%2C1.632c0.011%2C0.018%2C0.021%2C0.033%2C0.033%2C0.049l0.883%2C0.783%20c0.765%2C0.366%2C1.775%2C0.328%2C2.67-0.184c0.744-0.425%2C1.248-1.088%2C1.439-1.786c0.148-0.552%2C0.104-1.126-0.176-1.62l2.573-1.473%20c0.573%2C0.287%2C2.299%2C1.292%2C2.299%2C1.292s3.602%2C1.445%2C4.241%2C1.812c0.773%2C0.191%2C0.566-0.151%2C0.566-0.151L12.285%2C9.711z%20M5.571%2C6.482%20C5.279%2C6.993%2C4.425%2C7.076%2C3.705%2C6.664C3.282%2C6.424%2C2.966%2C6.039%2C2.856%2C5.64C2.81%2C5.464%2C2.778%2C5.203%2C2.917%2C4.963%20c0.291-0.51%2C1.146-0.593%2C1.866-0.182C5.21%2C5.027%2C5.521%2C5.4%2C5.632%2C5.807C5.679%2C5.98%2C5.708%2C6.242%2C5.571%2C6.482z%20M5.632%2C13.159%20c-0.111%2C0.406-0.422%2C0.778-0.848%2C1.025c-0.719%2C0.409-1.576%2C0.327-1.867-0.184c-0.137-0.239-0.106-0.499-0.06-0.676%20c0.108-0.398%2C0.426-0.781%2C0.847-1.022c0.72-0.412%2C1.574-0.329%2C1.866%2C0.181C5.708%2C12.723%2C5.679%2C12.983%2C5.632%2C13.159z%20M16.181%2C5.139%20c-0.448%2C0.258-4.435%2C1.9-4.435%2C1.9s-1.556%2C0.855-2.104%2C1.13l0.937%2C0.843l2.057-0.229l4.11-3.638%20C16.745%2C5.146%2C17.013%2C4.664%2C16.181%2C5.139z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-direction {\n background-image: url(\"data:image/svg+xml;charset=UTF-8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3C!DOCTYPE%20svg%20%20PUBLIC%20'-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN'%20%20'http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd'%3E%3Csvg%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%20512%20512%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%20512%20512%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%0A%09.st0%7Bfill%3A%236A6C8A%3Bstroke%3A%236A6C8A%3Bstroke-width%3A30%7D%0A%09.dot%7Bfill%3A%236A6C8A%3B%7D%0A%3C%2Fstyle%3E%3Cg%3E%3Cg%20id%3D%22XMLID_475_%22%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M133.1%2C277.1c1.8%2C0%2C3.7-0.6%2C5.4-1.7c4.1-3%2C5-8.7%2C2-12.8c-3-4.1-8.7-5-12.8-2c0%2C0%2C0%2C0%2C0%2C0%20%20%20%20%20c-4.1%2C3-5%2C8.7-2%2C12.8C127.5%2C275.8%2C130.3%2C277.1%2C133.1%2C277.1z%22%20id%3D%22XMLID_489_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M138.5%2C359.6c-4.1-3-9.8-2.1-12.8%2C2c-3%2C4.1-2.1%2C9.8%2C2%2C12.8c1.6%2C1.2%2C3.5%2C1.7%2C5.4%2C1.7%20%20%20%20%20c2.8%2C0%2C5.6-1.3%2C7.4-3.7C143.5%2C368.3%2C142.6%2C362.6%2C138.5%2C359.6z%22%20id%3D%22XMLID_726_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M108.1%2C327.7c-4.8%2C1.6-7.4%2C6.7-5.9%2C11.5c1.3%2C3.9%2C4.8%2C6.3%2C8.7%2C6.3c0.9%2C0%2C1.9-0.1%2C2.8-0.4%20%20%20%20%20c4.8-1.6%2C7.4-6.7%2C5.9-11.5C118%2C328.8%2C112.9%2C326.2%2C108.1%2C327.7z%22%20id%3D%22XMLID_776_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M108.1%2C307.3c0.9%2C0.3%2C1.9%2C0.4%2C2.8%2C0.4c3.8%2C0%2C7.4-2.4%2C8.7-6.3c1.6-4.8-1.1-9.9-5.9-11.5%20%20%20%20%20c-4.8-1.6-9.9%2C1.1-11.5%2C5.9C100.7%2C300.6%2C103.3%2C305.7%2C108.1%2C307.3z%22%20id%3D%22XMLID_777_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M169.2%2C265.4c2.4%2C0%2C4.7-1%2C6.5-2.6c1.7-1.7%2C2.7-4.1%2C2.7-6.5c0-2.4-1-4.8-2.7-6.5%20%20%20%20%20c-1.7-1.7-4.1-2.7-6.5-2.7s-4.7%2C1-6.5%2C2.7c-1.7%2C1.7-2.7%2C4-2.7%2C6.5c0%2C2.4%2C1%2C4.7%2C2.7%2C6.5C164.4%2C264.4%2C166.8%2C265.4%2C169.2%2C265.4z%22%20id%3D%22XMLID_797_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M247.7%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C243.7%2C265.4%2C247.7%2C261.3%2C247.7%2C256.3z%22%20id%3D%22XMLID_798_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M213%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C208.9%2C265.4%2C213%2C261.3%2C213%2C256.3z%22%20id%3D%22XMLID_799_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M317.2%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C313.1%2C265.4%2C317.2%2C261.3%2C317.2%2C256.3z%22%20id%3D%22XMLID_800_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M282.5%2C256.3c0-5-4.1-9.1-9.1-9.1s-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20S282.5%2C261.3%2C282.5%2C256.3z%22%20id%3D%22XMLID_801_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M401.1%2C185.2c0.9%2C0%2C1.9-0.1%2C2.8-0.5c4.8-1.6%2C7.4-6.7%2C5.9-11.5c-1.6-4.8-6.7-7.4-11.5-5.8%20%20%20%20%20c-4.8%2C1.6-7.4%2C6.7-5.8%2C11.5C393.6%2C182.8%2C397.2%2C185.2%2C401.1%2C185.2z%22%20id%3D%22XMLID_802_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M403.9%2C205.2c-4.8-1.6-9.9%2C1-11.5%2C5.9l0%2C0c-1.6%2C4.8%2C1.1%2C9.9%2C5.9%2C11.5%20%20%20%20%20c0.9%2C0.3%2C1.9%2C0.5%2C2.8%2C0.5c3.9%2C0%2C7.4-2.5%2C8.7-6.3c0%2C0%2C0%2C0%2C0%2C0C411.3%2C211.9%2C408.7%2C206.8%2C403.9%2C205.2z%22%20id%3D%22XMLID_803_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M373.5%2C237.2L373.5%2C237.2c-4.1%2C3-5%2C8.7-2%2C12.8c1.8%2C2.4%2C4.6%2C3.7%2C7.4%2C3.7%20%20%20%20%20c1.8%2C0%2C3.7-0.6%2C5.4-1.8c4.1-3%2C4.9-8.7%2C2-12.8C383.3%2C235.1%2C377.6%2C234.2%2C373.5%2C237.2z%22%20id%3D%22XMLID_804_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M373.5%2C152.9c1.6%2C1.2%2C3.5%2C1.8%2C5.4%2C1.8c2.8%2C0%2C5.6-1.3%2C7.4-3.8c3-4.1%2C2.1-9.8-2-12.7%20%20%20%20%20c-4.1-3-9.8-2.1-12.7%2C2C368.5%2C144.2%2C369.4%2C149.9%2C373.5%2C152.9z%22%20id%3D%22XMLID_805_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M342.8%2C247.1c-2.4%2C0-4.8%2C1-6.5%2C2.7c-1.7%2C1.7-2.7%2C4-2.7%2C6.5c0%2C2.4%2C1%2C4.7%2C2.7%2C6.4%20%20%20%20%20c1.7%2C1.7%2C4%2C2.7%2C6.5%2C2.7c2.4%2C0%2C4.7-1%2C6.5-2.7c1.7-1.7%2C2.7-4%2C2.7-6.4c0-2.4-1-4.8-2.7-6.5C347.6%2C248.1%2C345.2%2C247.1%2C342.8%2C247.1z%22%20id%3D%22XMLID_806_%22%2F%3E%0A%3Cpath%20class%3D%22st0%22%20d%3D%22M342.8%2C124.7H206.6l36.4-36.4c3.6-3.6%2C3.6-9.3%2C0-12.9c-3.6-3.6-9.3-3.6-12.9%2C0l-51.5%2C51.5%20%20%20%20%20c-1.9%2C1.9-2.8%2C4.4-2.7%2C6.9c-0.1%2C2.5%2C0.7%2C5%2C2.7%2C6.9l51.5%2C51.5c1.8%2C1.8%2C4.1%2C2.7%2C6.5%2C2.7c2.3%2C0%2C4.7-0.9%2C6.5-2.7%20%20%20%20%20c3.6-3.6%2C3.6-9.3%2C0-12.9l-36.4-36.4h136.1c0%2C0%2C0.1%2C0%2C0.1%2C0c0.6%2C0%2C1.2-0.1%2C1.8-0.2c0.2%2C0%2C0.4-0.1%2C0.6-0.1c0.1%2C0%2C0.2%2C0%2C0.3-0.1%20%20%20%20%20c3.2-1%2C5.6-3.6%2C6.3-6.9c0.1-0.6%2C0.2-1.2%2C0.2-1.8c0-0.6-0.1-1.2-0.2-1.8C351%2C127.8%2C347.3%2C124.7%2C342.8%2C124.7z%22%20id%3D%22XMLID_807_%22%2F%3E%0A%3Cpath%20class%3D%22st0%22%20d%3D%22M322.1%2C371.3l-51.5-51.5c-3.6-3.6-9.3-3.6-12.9%2C0c-3.6%2C3.6-3.6%2C9.3%2C0%2C12.9l36.9%2C36.9H169.2%20%20%20%20%20c-2.8%2C0-5.4%2C1.3-7%2C3.3c-0.1%2C0.1-0.2%2C0.2-0.3%2C0.4c-0.1%2C0.1-0.2%2C0.2-0.2%2C0.3c-0.1%2C0.1-0.1%2C0.2-0.2%2C0.4c-0.1%2C0.1-0.2%2C0.3-0.2%2C0.4%20%20%20%20%20c0%2C0.1-0.1%2C0.2-0.1%2C0.2c-0.1%2C0.2-0.2%2C0.4-0.3%2C0.6c0%2C0%2C0%2C0%2C0%2C0.1c-0.4%2C1.1-0.7%2C2.2-0.7%2C3.4c0%2C1.5%2C0.4%2C2.9%2C1%2C4.2c0%2C0%2C0%2C0.1%2C0.1%2C0.1%20%20%20%20%20c0.1%2C0.1%2C0.1%2C0.2%2C0.2%2C0.3c0.4%2C0.7%2C0.9%2C1.3%2C1.4%2C1.8c0.4%2C0.4%2C0.7%2C0.7%2C1.2%2C1c0.1%2C0.1%2C0.1%2C0.1%2C0.2%2C0.2c0%2C0%2C0.1%2C0%2C0.1%2C0.1%20%20%20%20%20c1.4%2C0.9%2C3.1%2C1.5%2C5%2C1.5h124.4l-36%2C36c-3.6%2C3.6-3.6%2C9.3%2C0%2C12.9c1.8%2C1.8%2C4.1%2C2.7%2C6.5%2C2.7c2.3%2C0%2C4.7-0.9%2C6.5-2.7l51.5-51.5%20%20%20%20%20c1.9-1.9%2C2.8-4.4%2C2.7-6.9C324.8%2C375.7%2C324%2C373.2%2C322.1%2C371.3z%22%20id%3D%22XMLID_808_%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n.x6-widget-handle-direction:hover {\n background-image: url(\"data:image/svg+xml;charset=UTF-8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3C!DOCTYPE%20svg%20%20PUBLIC%20'-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN'%20%20'http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd'%3E%3Csvg%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%20512%20512%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%20512%20512%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%0A%09.st0%7Bfill%3A%23FD6EB6%3Bstroke%3A%23FD6EB6%3Bstroke-width%3A30%7D%0A%09.dot%7Bfill%3A%23FD6EB6%3B%7D%0A%3C%2Fstyle%3E%3Cg%3E%3Cg%20id%3D%22XMLID_475_%22%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M133.1%2C277.1c1.8%2C0%2C3.7-0.6%2C5.4-1.7c4.1-3%2C5-8.7%2C2-12.8c-3-4.1-8.7-5-12.8-2c0%2C0%2C0%2C0%2C0%2C0%20%20%20%20%20c-4.1%2C3-5%2C8.7-2%2C12.8C127.5%2C275.8%2C130.3%2C277.1%2C133.1%2C277.1z%22%20id%3D%22XMLID_489_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M138.5%2C359.6c-4.1-3-9.8-2.1-12.8%2C2c-3%2C4.1-2.1%2C9.8%2C2%2C12.8c1.6%2C1.2%2C3.5%2C1.7%2C5.4%2C1.7%20%20%20%20%20c2.8%2C0%2C5.6-1.3%2C7.4-3.7C143.5%2C368.3%2C142.6%2C362.6%2C138.5%2C359.6z%22%20id%3D%22XMLID_726_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M108.1%2C327.7c-4.8%2C1.6-7.4%2C6.7-5.9%2C11.5c1.3%2C3.9%2C4.8%2C6.3%2C8.7%2C6.3c0.9%2C0%2C1.9-0.1%2C2.8-0.4%20%20%20%20%20c4.8-1.6%2C7.4-6.7%2C5.9-11.5C118%2C328.8%2C112.9%2C326.2%2C108.1%2C327.7z%22%20id%3D%22XMLID_776_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M108.1%2C307.3c0.9%2C0.3%2C1.9%2C0.4%2C2.8%2C0.4c3.8%2C0%2C7.4-2.4%2C8.7-6.3c1.6-4.8-1.1-9.9-5.9-11.5%20%20%20%20%20c-4.8-1.6-9.9%2C1.1-11.5%2C5.9C100.7%2C300.6%2C103.3%2C305.7%2C108.1%2C307.3z%22%20id%3D%22XMLID_777_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M169.2%2C265.4c2.4%2C0%2C4.7-1%2C6.5-2.6c1.7-1.7%2C2.7-4.1%2C2.7-6.5c0-2.4-1-4.8-2.7-6.5%20%20%20%20%20c-1.7-1.7-4.1-2.7-6.5-2.7s-4.7%2C1-6.5%2C2.7c-1.7%2C1.7-2.7%2C4-2.7%2C6.5c0%2C2.4%2C1%2C4.7%2C2.7%2C6.5C164.4%2C264.4%2C166.8%2C265.4%2C169.2%2C265.4z%22%20id%3D%22XMLID_797_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M247.7%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C243.7%2C265.4%2C247.7%2C261.3%2C247.7%2C256.3z%22%20id%3D%22XMLID_798_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M213%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C208.9%2C265.4%2C213%2C261.3%2C213%2C256.3z%22%20id%3D%22XMLID_799_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M317.2%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C313.1%2C265.4%2C317.2%2C261.3%2C317.2%2C256.3z%22%20id%3D%22XMLID_800_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M282.5%2C256.3c0-5-4.1-9.1-9.1-9.1s-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20S282.5%2C261.3%2C282.5%2C256.3z%22%20id%3D%22XMLID_801_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M401.1%2C185.2c0.9%2C0%2C1.9-0.1%2C2.8-0.5c4.8-1.6%2C7.4-6.7%2C5.9-11.5c-1.6-4.8-6.7-7.4-11.5-5.8%20%20%20%20%20c-4.8%2C1.6-7.4%2C6.7-5.8%2C11.5C393.6%2C182.8%2C397.2%2C185.2%2C401.1%2C185.2z%22%20id%3D%22XMLID_802_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M403.9%2C205.2c-4.8-1.6-9.9%2C1-11.5%2C5.9l0%2C0c-1.6%2C4.8%2C1.1%2C9.9%2C5.9%2C11.5%20%20%20%20%20c0.9%2C0.3%2C1.9%2C0.5%2C2.8%2C0.5c3.9%2C0%2C7.4-2.5%2C8.7-6.3c0%2C0%2C0%2C0%2C0%2C0C411.3%2C211.9%2C408.7%2C206.8%2C403.9%2C205.2z%22%20id%3D%22XMLID_803_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M373.5%2C237.2L373.5%2C237.2c-4.1%2C3-5%2C8.7-2%2C12.8c1.8%2C2.4%2C4.6%2C3.7%2C7.4%2C3.7%20%20%20%20%20c1.8%2C0%2C3.7-0.6%2C5.4-1.8c4.1-3%2C4.9-8.7%2C2-12.8C383.3%2C235.1%2C377.6%2C234.2%2C373.5%2C237.2z%22%20id%3D%22XMLID_804_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M373.5%2C152.9c1.6%2C1.2%2C3.5%2C1.8%2C5.4%2C1.8c2.8%2C0%2C5.6-1.3%2C7.4-3.8c3-4.1%2C2.1-9.8-2-12.7%20%20%20%20%20c-4.1-3-9.8-2.1-12.7%2C2C368.5%2C144.2%2C369.4%2C149.9%2C373.5%2C152.9z%22%20id%3D%22XMLID_805_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M342.8%2C247.1c-2.4%2C0-4.8%2C1-6.5%2C2.7c-1.7%2C1.7-2.7%2C4-2.7%2C6.5c0%2C2.4%2C1%2C4.7%2C2.7%2C6.4%20%20%20%20%20c1.7%2C1.7%2C4%2C2.7%2C6.5%2C2.7c2.4%2C0%2C4.7-1%2C6.5-2.7c1.7-1.7%2C2.7-4%2C2.7-6.4c0-2.4-1-4.8-2.7-6.5C347.6%2C248.1%2C345.2%2C247.1%2C342.8%2C247.1z%22%20id%3D%22XMLID_806_%22%2F%3E%0A%3Cpath%20class%3D%22st0%22%20d%3D%22M342.8%2C124.7H206.6l36.4-36.4c3.6-3.6%2C3.6-9.3%2C0-12.9c-3.6-3.6-9.3-3.6-12.9%2C0l-51.5%2C51.5%20%20%20%20%20c-1.9%2C1.9-2.8%2C4.4-2.7%2C6.9c-0.1%2C2.5%2C0.7%2C5%2C2.7%2C6.9l51.5%2C51.5c1.8%2C1.8%2C4.1%2C2.7%2C6.5%2C2.7c2.3%2C0%2C4.7-0.9%2C6.5-2.7%20%20%20%20%20c3.6-3.6%2C3.6-9.3%2C0-12.9l-36.4-36.4h136.1c0%2C0%2C0.1%2C0%2C0.1%2C0c0.6%2C0%2C1.2-0.1%2C1.8-0.2c0.2%2C0%2C0.4-0.1%2C0.6-0.1c0.1%2C0%2C0.2%2C0%2C0.3-0.1%20%20%20%20%20c3.2-1%2C5.6-3.6%2C6.3-6.9c0.1-0.6%2C0.2-1.2%2C0.2-1.8c0-0.6-0.1-1.2-0.2-1.8C351%2C127.8%2C347.3%2C124.7%2C342.8%2C124.7z%22%20id%3D%22XMLID_807_%22%2F%3E%0A%3Cpath%20class%3D%22st0%22%20d%3D%22M322.1%2C371.3l-51.5-51.5c-3.6-3.6-9.3-3.6-12.9%2C0c-3.6%2C3.6-3.6%2C9.3%2C0%2C12.9l36.9%2C36.9H169.2%20%20%20%20%20c-2.8%2C0-5.4%2C1.3-7%2C3.3c-0.1%2C0.1-0.2%2C0.2-0.3%2C0.4c-0.1%2C0.1-0.2%2C0.2-0.2%2C0.3c-0.1%2C0.1-0.1%2C0.2-0.2%2C0.4c-0.1%2C0.1-0.2%2C0.3-0.2%2C0.4%20%20%20%20%20c0%2C0.1-0.1%2C0.2-0.1%2C0.2c-0.1%2C0.2-0.2%2C0.4-0.3%2C0.6c0%2C0%2C0%2C0%2C0%2C0.1c-0.4%2C1.1-0.7%2C2.2-0.7%2C3.4c0%2C1.5%2C0.4%2C2.9%2C1%2C4.2c0%2C0%2C0%2C0.1%2C0.1%2C0.1%20%20%20%20%20c0.1%2C0.1%2C0.1%2C0.2%2C0.2%2C0.3c0.4%2C0.7%2C0.9%2C1.3%2C1.4%2C1.8c0.4%2C0.4%2C0.7%2C0.7%2C1.2%2C1c0.1%2C0.1%2C0.1%2C0.1%2C0.2%2C0.2c0%2C0%2C0.1%2C0%2C0.1%2C0.1%20%20%20%20%20c1.4%2C0.9%2C3.1%2C1.5%2C5%2C1.5h124.4l-36%2C36c-3.6%2C3.6-3.6%2C9.3%2C0%2C12.9c1.8%2C1.8%2C4.1%2C2.7%2C6.5%2C2.7c2.3%2C0%2C4.7-0.9%2C6.5-2.7l51.5-51.5%20%20%20%20%20c1.9-1.9%2C2.8-4.4%2C2.7-6.9C324.8%2C375.7%2C324%2C373.2%2C322.1%2C371.3z%22%20id%3D%22XMLID_808_%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n.x6-widget-handle-surround .x6-widget-handle-animate .x6-widget-handle {\n transition: background-size 80ms, width 80ms, height 80ms, top 150ms, left 150ms, bottom 150ms, right 150ms;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-se {\n right: -25px;\n bottom: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-nw {\n top: -21px;\n left: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-n {\n top: -22px;\n left: 50%;\n margin-left: -10px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-e {\n top: -webkit-calc(40%);\n top: calc(50% - 10px);\n right: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-ne {\n top: -21px;\n right: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-w {\n top: 50%;\n left: -25px;\n margin-top: -10px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-sw {\n bottom: -25px;\n left: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-s {\n bottom: -24px;\n left: 50%;\n margin-left: -10px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle {\n width: 15px;\n height: 15px;\n font-size: 15px;\n background-size: 15px 15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-se {\n right: -19px;\n bottom: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-nw {\n top: -19px;\n left: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-n {\n top: -19px;\n margin-left: -7.5px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-e {\n top: -webkit-calc(42%);\n top: calc(50% - 8px);\n right: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-ne {\n top: -19px;\n right: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-w {\n left: -19px;\n margin-top: -8px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-sw {\n bottom: -19px;\n left: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-s {\n bottom: -19px;\n margin-left: -7.5px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle {\n width: 10px;\n height: 10px;\n font-size: 10px;\n background-size: 10px 10px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-se {\n right: -15px;\n bottom: -13px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-nw {\n top: -13px;\n left: -15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-n {\n top: -13px;\n margin-left: -5px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-e {\n top: -webkit-calc(45%);\n top: calc(50% - 5px);\n right: -15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-ne {\n top: -13px;\n right: -15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-w {\n left: -15px;\n margin-top: -5px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-sw {\n bottom: -13px;\n left: -15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-s {\n bottom: -13px;\n margin-left: -5px;\n}\n.x6-widget-handle-toolbar {\n position: absolute;\n top: -50px;\n display: table-row;\n padding: 7px 5px;\n}\n.x6-widget-handle-toolbar::after {\n position: absolute;\n top: 100%;\n left: 10px;\n width: 0;\n height: 0;\n margin-top: 4px;\n border-right: 10px solid transparent;\n border-left: 10px solid transparent;\n content: '';\n}\n.x6-widget-handle-toolbar .x6-widget-handle {\n position: relative;\n display: table-cell;\n min-width: 20px;\n margin: 0 2px;\n background-position: 3px 3px;\n background-size: 16px 16px;\n}\n.x6-widget-handle-toolbar .x6-widget-handle::after {\n position: absolute;\n bottom: -11px;\n width: 100%;\n content: '';\n}\n.x6-widget-handle-pie {\n position: absolute;\n top: -webkit-calc(0%);\n top: calc(50% - 50px);\n right: -50px;\n z-index: 1;\n display: none;\n width: 100px;\n height: 100px;\n margin: -2px -2px 0 0;\n border-radius: 50%;\n cursor: default;\n pointer-events: visiblePainted;\n}\n.x6-widget-handle-pie .x6-widget-handle {\n width: 1px;\n height: auto;\n pointer-events: visiblePainted;\n}\n.x6-widget-handle-pie-slice-svg {\n width: 100%;\n height: 100%;\n overflow: visible !important;\n}\n.x6-widget-handle-pie-slice-img,\n.x6-widget-handle-pie-slice-txt {\n display: none;\n pointer-events: none;\n}\n.x6-widget-handle-pie[data-pie-toggle-position='e'] {\n top: calc(50% - 50px);\n right: -50px;\n left: auto;\n}\n.x6-widget-handle-pie[data-pie-toggle-position='w'] {\n top: calc(50% - 50px);\n right: auto;\n left: -52px;\n}\n.x6-widget-handle-pie[data-pie-toggle-position='n'] {\n top: -50px;\n right: auto;\n bottom: auto;\n left: calc(50% - 52px);\n}\n.x6-widget-handle-pie[data-pie-toggle-position='s'] {\n top: auto;\n right: auto;\n bottom: -52px;\n left: calc(50% - 52px);\n}\n.x6-widget-handle-pie-opened {\n display: block;\n animation: halo-pie-visibility 0.1s, halo-pie-opening 0.1s;\n animation-timing-function: step-end, ease;\n animation-delay: 0s, 0.1s;\n}\n.x6-widget-handle-pie-toggle {\n position: absolute;\n top: -webkit-calc(35%);\n top: calc(50% - 15px);\n right: -15px;\n z-index: 2;\n display: block;\n box-sizing: border-box;\n width: 30px;\n height: 30px;\n background-repeat: no-repeat;\n background-position: center;\n background-size: 20px 20px;\n border-radius: 50%;\n cursor: pointer;\n user-select: none;\n pointer-events: visiblePainted;\n -webkit-user-drag: none;\n user-drag: none;\n /* stylelint-disable-line */\n}\n.x6-widget-handle-pie-toggle-pos-e {\n top: -webkit-calc(35%);\n top: calc(50% - 15px);\n right: -15px;\n bottom: auto;\n left: auto;\n}\n.x6-widget-handle-pie-toggle-pos-w {\n top: -webkit-calc(35%);\n top: calc(50% - 15px);\n right: auto;\n bottom: auto;\n left: -15px;\n}\n.x6-widget-handle-pie-toggle-pos-n {\n top: -15px;\n right: auto;\n bottom: auto;\n left: -webkit-calc(35%);\n left: calc(50% - 15px);\n}\n.x6-widget-handle-pie-toggle-pos-s {\n top: auto;\n right: auto;\n bottom: -15px;\n left: -webkit-calc(35%);\n left: calc(50% - 15px);\n}\n.x6-widget-handle-pie-toggle-opened {\n transition: 0.1s background-image;\n}\n.x6-widget-handle-toolbar {\n position: static;\n display: inline-block;\n margin-top: -50px;\n margin-left: 45px;\n white-space: nowrap;\n vertical-align: top;\n background-color: #f5f5f5;\n border-bottom: 3px solid #333;\n border-radius: 5px;\n box-shadow: 0 1px 2px #222;\n}\n.x6-widget-handle-toolbar::after {\n top: -12px;\n left: 55px;\n margin-top: 0;\n border-top: 6px solid #333;\n border-right: 10px solid transparent;\n border-left: 10px solid transparent;\n}\n.x6-widget-handle-toolbar .x6-widget-handle {\n display: inline-block;\n vertical-align: top;\n}\n.x6-widget-handle-toolbar .x6-widget-handle:hover::after {\n border-bottom: 4px solid #fc6cb8;\n}\n.x6-widget-handle-toolbar .x6-widget-handle-rotate {\n position: absolute;\n top: 100%;\n right: 100%;\n margin-top: 3px;\n margin-right: 6px;\n}\n.x6-widget-handle-toolbar .x6-widget-handle-remove:hover::after,\n.x6-widget-handle-toolbar .x6-widget-handle-rotate:hover::after {\n border-bottom: none;\n}\n.x6-widget-handle-toolbar .x6-widget-handle + .x6-widget-handle {\n margin-left: 4px;\n}\n.x6-widget-handle-pie {\n box-sizing: content-box;\n background-color: #f5f5f5;\n border: 2px solid #404040;\n}\n.x6-widget-handle-pie-slice {\n fill: transparent;\n stroke: #e9e9e9;\n stroke-width: 1;\n}\n.x6-widget-handle-pie-slice:hover {\n fill: #fff;\n}\n.x6-widget-handle-pie-slice-img {\n display: block;\n}\n.x6-widget-handle-selected .x6-widget-handle-pie-slice {\n fill: #fff;\n}\n.x6-widget-handle-pie-toggle {\n background-color: #f6f6f6;\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20height%3D%2216px%22%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%2016%2016%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%2016%2016%22%20width%3D%2216px%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M15%2C6h-5V1c0-0.55-0.45-1-1-1H7C6.45%2C0%2C6%2C0.45%2C6%2C1v5H1C0.45%2C6%2C0%2C6.45%2C0%2C7v2c0%2C0.55%2C0.45%2C1%2C1%2C1h5v5c0%2C0.55%2C0.45%2C1%2C1%2C1h2%20c0.55%2C0%2C1-0.45%2C1-1v-5h5c0.55%2C0%2C1-0.45%2C1-1V7C16%2C6.45%2C15.55%2C6%2C15%2C6z%22%2F%3E%3C%2Fsvg%3E');\n background-size: 16px 16px;\n border: 2px solid #3b425f;\n}\n.x6-widget-handle-pie-toggle:hover {\n background-color: #fff;\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20height%3D%2216px%22%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%2016%2016%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%2016%2016%22%20width%3D%2216px%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M15%2C6h-5V1c0-0.55-0.45-1-1-1H7C6.45%2C0%2C6%2C0.45%2C6%2C1v5H1C0.45%2C6%2C0%2C6.45%2C0%2C7v2c0%2C0.55%2C0.45%2C1%2C1%2C1h5v5c0%2C0.55%2C0.45%2C1%2C1%2C1h2%20c0.55%2C0%2C1-0.45%2C1-1v-5h5c0.55%2C0%2C1-0.45%2C1-1V7C16%2C6.45%2C15.55%2C6%2C15%2C6z%22%2F%3E%3C%2Fsvg%3E');\n border-color: #fd6eb6;\n}\n.x6-widget-handle-pie-toggle-opened {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3Csvg%20xmlns%3Adc%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%22%20xmlns%3Acc%3D%22http%3A%2F%2Fcreativecommons.org%2Fns%23%22%20xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%20xmlns%3Asvg%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20id%3D%22Layer_1%22%20xml%3Aspace%3D%22preserve%22%3E%3Cmetadata%20id%3D%22metadata9%22%3E%3Crdf%3ARDF%3E%3Ccc%3AWork%20rdf%3Aabout%3D%22%22%3E%3Cdc%3Aformat%3Eimage%2Fsvg%2Bxml%3C%2Fdc%3Aformat%3E%3Cdc%3Atype%20rdf%3Aresource%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Fdcmitype%2FStillImage%22%20%2F%3E%3Cdc%3Atitle%3E%3C%2Fdc%3Atitle%3E%3C%2Fcc%3AWork%3E%3C%2Frdf%3ARDF%3E%3C%2Fmetadata%3E%3Cdefs%20id%3D%22defs7%22%20%2F%3E%3Cpath%20d%3D%22M%2015%2C6%2010%2C6%20C%201.0301983%2C6.00505%2015.002631%2C6.011353%206%2C6%20L%201%2C6%20C%200.45%2C6%200%2C6.45%200%2C7%20l%200%2C2%20c%200%2C0.55%200.45%2C1%201%2C1%20l%205%2C0%20c%208.988585%2C-0.019732%20-5.02893401%2C-0.018728%204%2C0%20l%205%2C0%20c%200.55%2C0%201%2C-0.45%201%2C-1%20L%2016%2C7%20C%2016%2C6.45%2015.55%2C6%2015%2C6%20z%22%20id%3D%22path3%22%20style%3D%22fill%3A%236a6c8a%22%20%2F%3E%3C%2Fsvg%3E');\n}\n.x6-widget-handle-pie-toggle-opened:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3Csvg%20xmlns%3Adc%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%22%20xmlns%3Acc%3D%22http%3A%2F%2Fcreativecommons.org%2Fns%23%22%20xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%20xmlns%3Asvg%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20id%3D%22Layer_1%22%20xml%3Aspace%3D%22preserve%22%3E%3Cmetadata%20id%3D%22metadata9%22%3E%3Crdf%3ARDF%3E%3Ccc%3AWork%20rdf%3Aabout%3D%22%22%3E%3Cdc%3Aformat%3Eimage%2Fsvg%2Bxml%3C%2Fdc%3Aformat%3E%3Cdc%3Atype%20rdf%3Aresource%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Fdcmitype%2FStillImage%22%20%2F%3E%3Cdc%3Atitle%3E%3C%2Fdc%3Atitle%3E%3C%2Fcc%3AWork%3E%3C%2Frdf%3ARDF%3E%3C%2Fmetadata%3E%3Cdefs%20id%3D%22defs7%22%20%2F%3E%3Cpath%20d%3D%22M%2015%2C6%2010%2C6%20C%201.0301983%2C6.00505%2015.002631%2C6.011353%206%2C6%20L%201%2C6%20C%200.45%2C6%200%2C6.45%200%2C7%20l%200%2C2%20c%200%2C0.55%200.45%2C1%201%2C1%20l%205%2C0%20c%208.988585%2C-0.019732%20-5.02893401%2C-0.018728%204%2C0%20l%205%2C0%20c%200.55%2C0%201%2C-0.45%201%2C-1%20L%2016%2C7%20C%2016%2C6.45%2015.55%2C6%2015%2C6%20z%22%20id%3D%22path3%22%20style%3D%22fill%3A%23FD6EB6%22%20%2F%3E%3C%2Fsvg%3E');\n}\n.x6-widget-dnd {\n position: absolute;\n top: -10000px;\n left: -10000px;\n z-index: 100;\n display: none;\n cursor: move;\n opacity: 0.7;\n pointer-events: 'cursor';\n}\n.x6-widget-dnd.dragging {\n display: inline-block;\n}\n.x6-widget-dnd.dragging * {\n pointer-events: none !important;\n}\n.x6-widget-dnd .x6-graph {\n background: transparent;\n box-shadow: none;\n}\n.x6-widget-halo {\n position: absolute;\n pointer-events: none;\n}\n.x6-widget-halo-content {\n position: absolute;\n top: 100%;\n padding: 6px;\n font-size: 10px;\n line-height: 14px;\n text-align: center;\n border-radius: 6px;\n}\n.x6-widget-halo-handles + .x6-widget-halo-content {\n right: -20px;\n left: -20px;\n margin-top: 30px;\n}\n.x6-widget-halo-handles.x6-widget-handle-small + .x6-widget-halo-content {\n margin-top: 25px;\n}\n.x6-widget-halo-handles.x6-widget-handle-small + .x6-widget-halo-content {\n margin-top: 20px;\n}\n.x6-widget-halo-handles.x6-widget-handle-pie + .x6-widget-halo-content {\n right: 0;\n left: 0;\n margin-top: 10px;\n}\n.x6-widget-halo-content {\n color: #fff;\n background-color: #6a6b8a;\n}\n.x6-widget-halo.type-node .x6-widget-handle-toolbar .x6-widget-handle-remove {\n position: absolute;\n right: 100%;\n bottom: 100%;\n margin-right: 6px;\n margin-bottom: 3px;\n}\n.x6-widget-halo.type-edge .x6-widget-handle-surround .x6-widget-handle-remove {\n background-color: #fff;\n border-radius: 50%;\n}\n.x6-widget-halo.type-edge .x6-widget-handle-toolbar {\n margin-top: -60px;\n margin-left: -18px;\n}\n.x6-widget-halo.type-edge .x6-widget-handle-toolbar::after {\n top: -22px;\n left: -9px;\n}\n.x6-widget-minimap {\n position: relative;\n display: table-cell;\n box-sizing: border-box;\n overflow: hidden;\n text-align: center;\n vertical-align: middle;\n background-color: #fff;\n user-select: none;\n}\n.x6-widget-minimap .x6-graph {\n display: inline-block;\n box-shadow: 0 0 4px 0 #eee;\n cursor: pointer;\n}\n.x6-widget-minimap .x6-graph > svg {\n pointer-events: none;\n shape-rendering: optimizeSpeed;\n}\n.x6-widget-minimap .x6-graph .x6-node * {\n /* stylelint-disable-next-line */\n vector-effect: initial;\n}\n.x6-widget-minimap-viewport {\n position: absolute;\n box-sizing: content-box !important;\n margin: -2px 0 0 -2px;\n border: 2px solid #31d0c6;\n cursor: move;\n}\n.x6-widget-minimap-viewport-zoom {\n position: absolute;\n right: 0;\n bottom: 0;\n box-sizing: border-box;\n width: 12px;\n height: 12px;\n margin: 0 -6px -6px 0;\n background-color: #fff;\n border: 2px solid #31d0c6;\n border-radius: 50%;\n cursor: nwse-resize;\n}\n.x6-graph-scroller {\n position: relative;\n box-sizing: border-box;\n overflow: scroll;\n outline: none;\n}\n.x6-graph-scroller-content {\n position: relative;\n}\n.x6-graph-scroller-background {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.x6-graph-scroller .x6-graph {\n position: absolute;\n display: inline-block;\n margin: 0;\n box-shadow: none;\n}\n.x6-graph-scroller .x6-graph > svg {\n display: block;\n}\n.x6-graph-scroller.x6-graph-scroller-paged .x6-graph {\n box-shadow: 0 0 4px 0 #eee;\n}\n.x6-graph-scroller.x6-graph-scroller-pannable[data-panning='false'] {\n cursor: grab;\n cursor: -moz-grab;\n cursor: -webkit-grab;\n}\n.x6-graph-scroller.x6-graph-scroller-pannable[data-panning='true'] {\n cursor: grabbing;\n cursor: -moz-grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n}\n.x6-graph-pagebreak {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.x6-graph-pagebreak-vertical {\n position: absolute;\n top: 0;\n bottom: 0;\n box-sizing: border-box;\n width: 1px;\n border-left: 1px dashed #bdbdbd;\n}\n.x6-graph-pagebreak-horizontal {\n position: absolute;\n right: 0;\n left: 0;\n box-sizing: border-box;\n height: 1px;\n border-top: 1px dashed #bdbdbd;\n}\n.x6-widget-selection {\n position: absolute;\n display: none;\n width: 0;\n height: 0;\n touch-action: none;\n}\n.x6-widget-selection-rubberband {\n display: block;\n overflow: visible;\n opacity: 0.3;\n}\n.x6-widget-selection-selected {\n display: block;\n}\n.x6-widget-selection-box {\n cursor: move;\n}\n.x6-widget-selection-inner[data-selection-length='0'],\n.x6-widget-selection-inner[data-selection-length='1'] {\n display: none;\n}\n.x6-widget-selection-content {\n position: absolute;\n top: 100%;\n right: -20px;\n left: -20px;\n margin-top: 30px;\n padding: 6px;\n line-height: 14px;\n text-align: center;\n border-radius: 6px;\n}\n.x6-widget-selection-content:empty {\n display: none;\n}\n.x6-widget-selection-rubberband {\n background-color: #3498db;\n border: 2px solid #2980b9;\n}\n.x6-widget-selection-box {\n box-sizing: content-box !important;\n margin-top: -4px;\n margin-left: -4px;\n padding-right: 4px;\n padding-bottom: 4px;\n border: 2px dashed #feb663;\n box-shadow: 2px 2px 5px #d3d3d3;\n}\n.x6-widget-selection-inner {\n box-sizing: content-box !important;\n margin-top: -8px;\n margin-left: -8px;\n padding-right: 12px;\n padding-bottom: 12px;\n border: 2px solid #feb663;\n box-shadow: 2px 2px 5px #d3d3d3;\n}\n.x6-widget-selection-content {\n color: #fff;\n font-size: 10px;\n background-color: #6a6b8a;\n}\n.x6-widget-snapline {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n pointer-events: none;\n}\n.x6-widget-snapline-vertical,\n.x6-widget-snapline-horizontal {\n position: absolute;\n opacity: 1;\n pointer-events: none;\n}\n.x6-widget-snapline-horizontal {\n border-bottom: 1px solid #2ecc71;\n}\n.x6-widget-snapline-vertical {\n border-right: 1px solid #2ecc71;\n}\n.x6-widget-stencil {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.x6-widget-stencil::after {\n position: absolute;\n top: 0;\n display: block;\n width: 100%;\n height: 20px;\n padding: 8px 0;\n line-height: 20px;\n text-align: center;\n opacity: 0;\n transition: top 0.1s linear, opacity 0.1s linear;\n content: ' ';\n pointer-events: none;\n}\n.x6-widget-stencil-content {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n height: auto;\n overflow-x: hidden;\n overflow-y: auto;\n}\n.x6-widget-stencil .x6-node [magnet]:not([magnet='passive']) {\n pointer-events: none;\n}\n.x6-widget-stencil-group {\n padding: 0;\n padding-bottom: 8px;\n overflow: hidden;\n user-select: none;\n}\n.x6-widget-stencil-group.collapsed {\n height: auto;\n padding-bottom: 0;\n}\n.x6-widget-stencil-group-title {\n position: relative;\n margin-top: 0;\n margin-bottom: 0;\n padding: 4px;\n cursor: pointer;\n}\n.x6-widget-stencil-title,\n.x6-widget-stencil-group > .x6-widget-stencil-group-title {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n user-select: none;\n}\n.x6-widget-stencil .unmatched {\n opacity: 0.3;\n}\n.x6-widget-stencil .x6-node.unmatched {\n display: none;\n}\n.x6-widget-stencil-group.unmatched {\n display: none;\n}\n.x6-widget-stencil-search-text {\n position: relative;\n z-index: 1;\n box-sizing: border-box;\n width: 100%;\n height: 30px;\n max-height: 30px;\n line-height: 30px;\n outline: 0;\n}\n.x6-widget-stencil.not-found::after {\n opacity: 1;\n content: attr(data-not-found-text);\n}\n.x6-widget-stencil.not-found.searchable::after {\n top: 30px;\n}\n.x6-widget-stencil.not-found.searchable.collapsable::after {\n top: 50px;\n}\n.x6-widget-stencil {\n color: #333;\n background: #f5f5f5;\n}\n.x6-widget-stencil-content {\n position: absolute;\n}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-content {\n top: 32px;\n}\n.x6-widget-stencil.searchable > .x6-widget-stencil-content {\n top: 80px;\n}\n.x6-widget-stencil.not-found::after {\n position: absolute;\n}\n.x6-widget-stencil.not-found.searchable.collapsable::after {\n top: 80px;\n}\n.x6-widget-stencil.not-found.searchable::after {\n top: 60px;\n}\n.x6-widget-stencil-group {\n height: auto;\n margin-bottom: 1px;\n padding: 0;\n transition: none;\n}\n.x6-widget-stencil-group .x6-graph {\n background: transparent;\n box-shadow: none;\n}\n.x6-widget-stencil-group.collapsed {\n height: auto;\n max-height: 31px;\n}\n.x6-widget-stencil-title,\n.x6-widget-stencil-group > .x6-widget-stencil-group-title {\n position: relative;\n left: 0;\n box-sizing: border-box;\n width: 100%;\n height: 32px;\n padding: 0 5px 0 8px;\n color: #666;\n font-weight: 700;\n font-size: 12px;\n line-height: 32px;\n cursor: default;\n transition: all 0.3;\n}\n.x6-widget-stencil-title:hover,\n.x6-widget-stencil-group > .x6-widget-stencil-group-title:hover {\n color: #444;\n}\n.x6-widget-stencil-title {\n background: #e9e9e9;\n}\n.x6-widget-stencil-group > .x6-widget-stencil-group-title {\n background: #ededed;\n}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-title,\n.x6-widget-stencil-group.collapsable > .x6-widget-stencil-group-title {\n padding-left: 32px;\n cursor: pointer;\n}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-title::before,\n.x6-widget-stencil-group.collapsable > .x6-widget-stencil-group-title::before {\n position: absolute;\n top: 6px;\n left: 8px;\n display: block;\n width: 18px;\n height: 18px;\n margin: 0;\n padding: 0;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: 0 0;\n border: none;\n content: ' ';\n}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-title::before,\n.x6-widget-stencil-group.collapsable > .x6-widget-stencil-group-title::before {\n background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNOS4zNzUuNUM0LjY4Ny41Ljg3NSA0LjMxMy44NzUgOWMwIDQuNjg4IDMuODEyIDguNSA4LjUgOC41IDQuNjg3IDAgOC41LTMuODEyIDguNS04LjUgMC00LjY4Ny0zLjgxMy04LjUtOC41LTguNXptMCAxNS44ODZDNS4zMDMgMTYuMzg2IDEuOTkgMTMuMDcyIDEuOTkgOXMzLjMxMi03LjM4NSA3LjM4NS03LjM4NVMxNi43NiA0LjkyOCAxNi43NiA5YzAgNC4wNzItMy4zMTMgNy4zODYtNy4zODUgNy4zODZ6Ii8+PHBhdGggZD0iTTEyLjc1MyA4LjQ0M0g1Ljk5N2EuNTU4LjU1OCAwIDAwMCAxLjExNmg2Ljc1NmEuNTU4LjU1OCAwIDAwMC0xLjExNnoiLz48L2c+PC9zdmc+');\n opacity: 0.4;\n transition: all 0.3s;\n}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-title:hover::before,\n.x6-widget-stencil-group.collapsable > .x6-widget-stencil-group-title:hover::before {\n opacity: 0.6;\n}\n.x6-widget-stencil.collapsable.collapsed > .x6-widget-stencil-title::before,\n.x6-widget-stencil-group.collapsable.collapsed > .x6-widget-stencil-group-title::before {\n background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNOS4zNzUuNUM0LjY4Ny41Ljg3NSA0LjMxMy44NzUgOWMwIDQuNjg4IDMuODEyIDguNSA4LjUgOC41IDQuNjg3IDAgOC41LTMuODEyIDguNS04LjUgMC00LjY4Ny0zLjgxMy04LjUtOC41LTguNXptMCAxNS44ODZDNS4zMDMgMTYuMzg2IDEuOTkgMTMuMDcyIDEuOTkgOXMzLjMxMi03LjM4NSA3LjM4NS03LjM4NVMxNi43NiA0LjkyOCAxNi43NiA5YzAgNC4wNzItMy4zMTMgNy4zODYtNy4zODUgNy4zODZ6Ii8+PHBhdGggZD0iTTEyLjc1MyA4LjQ0M0g1Ljk5N2EuNTU4LjU1OCAwIDAwMCAxLjExNmg2Ljc1NmEuNTU4LjU1OCAwIDAwMC0xLjExNnoiLz48cGF0aCBkPSJNOC44MTcgNS42MjN2Ni43NTZhLjU1OC41NTggMCAwMDEuMTE2IDBWNS42MjNhLjU1OC41NTggMCAxMC0xLjExNiAweiIvPjwvZz48L3N2Zz4=');\n opacity: 0.4;\n}\n.x6-widget-stencil.collapsable.collapsed > .x6-widget-stencil-title:hover::before,\n.x6-widget-stencil-group.collapsable.collapsed > .x6-widget-stencil-group-title:hover::before {\n opacity: 0.6;\n}\n.x6-widget-stencil input[type='search'] {\n -webkit-appearance: textfield;\n}\n.x6-widget-stencil input[type='search']::-webkit-search-cancel-button,\n.x6-widget-stencil input[type='search']::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n.x6-widget-stencil-search-text {\n display: block;\n width: 90%;\n margin: 8px 5%;\n padding-left: 8px;\n color: #333;\n background: #fff;\n border: 1px solid #e9e9e9;\n border-radius: 12px;\n outline: 0;\n}\n.x6-widget-stencil-search-text:focus {\n outline: 0;\n}\n.x6-widget-stencil::after {\n color: #808080;\n font-weight: 600;\n font-size: 12px;\n background: 0 0;\n}\n.x6-widget-transform {\n position: absolute;\n box-sizing: content-box !important;\n margin: -5px 0 0 -5px;\n padding: 4px;\n border: 1px dashed #000;\n border-radius: 5px;\n user-select: none;\n pointer-events: none;\n}\n.x6-widget-transform > div {\n position: absolute;\n box-sizing: border-box;\n background-color: #fff;\n border: 1px solid #000;\n transition: background-color 0.2s;\n pointer-events: auto;\n -webkit-user-drag: none;\n user-drag: none;\n /* stylelint-disable-line */\n}\n.x6-widget-transform > div:hover {\n background-color: #d3d3d3;\n}\n.x6-widget-transform-cursor-n {\n cursor: n-resize;\n}\n.x6-widget-transform-cursor-s {\n cursor: s-resize;\n}\n.x6-widget-transform-cursor-e {\n cursor: e-resize;\n}\n.x6-widget-transform-cursor-w {\n cursor: w-resize;\n}\n.x6-widget-transform-cursor-ne {\n cursor: ne-resize;\n}\n.x6-widget-transform-cursor-nw {\n cursor: nw-resize;\n}\n.x6-widget-transform-cursor-se {\n cursor: se-resize;\n}\n.x6-widget-transform-cursor-sw {\n cursor: sw-resize;\n}\n.x6-widget-transform-resize {\n width: 10px;\n height: 10px;\n border-radius: 6px;\n}\n.x6-widget-transform-resize[data-position='top-left'] {\n top: -5px;\n left: -5px;\n}\n.x6-widget-transform-resize[data-position='top-right'] {\n top: -5px;\n right: -5px;\n}\n.x6-widget-transform-resize[data-position='bottom-left'] {\n bottom: -5px;\n left: -5px;\n}\n.x6-widget-transform-resize[data-position='bottom-right'] {\n right: -5px;\n bottom: -5px;\n}\n.x6-widget-transform-resize[data-position='top'] {\n top: -5px;\n left: 50%;\n margin-left: -5px;\n}\n.x6-widget-transform-resize[data-position='bottom'] {\n bottom: -5px;\n left: 50%;\n margin-left: -5px;\n}\n.x6-widget-transform-resize[data-position='left'] {\n top: 50%;\n left: -5px;\n margin-top: -5px;\n}\n.x6-widget-transform-resize[data-position='right'] {\n top: 50%;\n right: -5px;\n margin-top: -5px;\n}\n.x6-widget-transform.prevent-aspect-ratio .x6-widget-transform-resize[data-position='top'],\n.x6-widget-transform.prevent-aspect-ratio .x6-widget-transform-resize[data-position='bottom'],\n.x6-widget-transform.prevent-aspect-ratio .x6-widget-transform-resize[data-position='left'],\n.x6-widget-transform.prevent-aspect-ratio .x6-widget-transform-resize[data-position='right'] {\n display: none;\n}\n.x6-widget-transform.no-orth-resize .x6-widget-transform-resize[data-position='bottom'],\n.x6-widget-transform.no-orth-resize .x6-widget-transform-resize[data-position='left'],\n.x6-widget-transform.no-orth-resize .x6-widget-transform-resize[data-position='right'],\n.x6-widget-transform.no-orth-resize .x6-widget-transform-resize[data-position='top'] {\n display: none;\n}\n.x6-widget-transform.no-resize .x6-widget-transform-resize {\n display: none;\n}\n.x6-widget-transform-rotate {\n top: -20px;\n left: -20px;\n width: 12px;\n height: 12px;\n border-radius: 6px;\n cursor: crosshair;\n}\n.x6-widget-transform.no-rotate .x6-widget-transform-rotate {\n display: none;\n}\n.x6-widget-transform-active {\n border-color: transparent;\n pointer-events: all;\n}\n.x6-widget-transform-active > div {\n display: none;\n}\n.x6-widget-transform-active > .x6-widget-transform-active-handle {\n display: block;\n background-color: #808080;\n}\n.x6-widget-knob {\n position: absolute;\n box-sizing: border-box;\n width: 16px;\n height: 16px;\n margin-top: -8px;\n margin-left: -8px;\n cursor: pointer;\n user-select: none;\n}\n.x6-widget-knob::before,\n.x6-widget-knob::after {\n position: absolute;\n transform: rotate(45deg);\n content: '';\n}\n.x6-widget-knob::before {\n top: 4px;\n left: 4px;\n box-sizing: border-box;\n width: 8px;\n height: 8px;\n background-color: #fff;\n}\n.x6-widget-knob::after {\n top: 5px;\n left: 5px;\n box-sizing: border-box;\n width: 6px;\n height: 6px;\n background-color: #fca000;\n}\n.x6-graph-print {\n position: relative;\n}\n.x6-graph-print .x6-graph-print-ready {\n display: none;\n}\n.x6-graph-print .x6-graph-print-preview {\n overflow: hidden !important;\n background: #fff !important;\n}\n@media print {\n html,\n html > body.x6-graph-printing {\n position: relative !important;\n width: 100% !important;\n height: 100% !important;\n margin: 0 !important;\n padding: 0 !important;\n }\n html > body.x6-graph-printing > * {\n display: none !important;\n }\n html > body.x6-graph-printing > .x6-graph-print {\n display: block !important;\n }\n .x6-graph-print {\n top: 0 !important;\n left: 0 !important;\n margin: 0 !important;\n padding: 0 !important;\n overflow: hidden !important;\n page-break-after: always;\n background: #fff !important;\n }\n .x6-graph-print .x6-graph-print-ready {\n display: none;\n }\n}\n.x6-cell-tool-editor {\n position: relative;\n display: inline-block;\n min-height: 1em;\n margin: 0;\n padding: 0;\n line-height: 1;\n white-space: normal;\n text-align: center;\n vertical-align: top;\n overflow-wrap: normal;\n outline: none;\n transform-origin: 0 0;\n -webkit-user-drag: none;\n}\n.x6-edge-tool-editor {\n border: 1px solid #275fc5;\n border-radius: 2px;\n}\n";var BA=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class $A extends MA{init(){_C.autoInsertCSS&&$A.ensure()}dispose(){$A.clean()}}BA([$A.dispose()],$A.prototype,"dispose",null),function(e){let t,n=0;function i(){if(n+=1,!(n>1)&&!O.isApplyingHMR()){t=document.createElement("style"),t.setAttribute("type","text/css"),t.textContent=FA;const e=document.querySelector("head");e&&e.insertBefore(t,e.firstChild)}}function r(){n-=1,n>0||(t&&t.parentNode&&t.parentNode.removeChild(t),t=null)}e.ensure=i,e.clean=r}($A||($A={}));var VA,GA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);rthis.addHandle(e)),"pie"===this.handleOptions.type){if(this.pie.toggles){const e=VA.pieToggle;this.$pieToggles={},this.pie.toggles.forEach(t=>{const n=this.$("
");this.applyAttrs(n,t.attrs),n.addClass(e).addClass(`${e}-pos-${t.position||"e"}`).attr("data-name",t.name).appendTo(this.container),this.$pieToggles[t.name]=n})}this.setPieIcons()}if(this.$handleContainer){const e=this.handleOptions.type||"surround";this.$handleContainer.addClass(VA.wrap).addClass(VA.animate).addClass(`${VA.handle}-${e}`)}this.delegateEvents({[`mousedown .${VA.handle}`]:"onHandleMouseDown",[`touchstart .${VA.handle}`]:"onHandleMouseDown",[`mousedown .${VA.pieToggle}`]:"onPieToggleMouseDown",[`touchstart .${VA.pieToggle}`]:"onPieToggleMouseDown"})}onHandleMouseDown(e){const t=this.$(e.currentTarget).closest(`.${VA.handle}`).attr("data-action");t&&(e.preventDefault(),e.stopPropagation(),this.setEventData(e,{action:t,clientX:e.clientX,clientY:e.clientY,startX:e.clientX,startY:e.clientY}),"mousedown"===e.type&&2===e.button?this.triggerHandleAction(t,"contextmenu",e):(this.triggerHandleAction(t,"mousedown",e),this.delegateDocumentEvents({mousemove:"onHandleMouseMove",touchmove:"onHandleMouseMove",mouseup:"onHandleMouseUp",touchend:"onHandleMouseUp",touchcancel:"onHandleMouseUp"},e.data)))}onHandleMouseMove(e){const t=this.getEventData(e),n=t.action;n&&this.triggerHandleAction(n,"mousemove",e)}onHandleMouseUp(e){const t=this.getEventData(e),n=t.action;n&&(this.triggerHandleAction(n,"mouseup",e),this.undelegateDocumentEvents())}triggerHandleAction(e,t,n,i){n.preventDefault(),n.stopPropagation();const r=this.normalizeEvent(n),o=this.getEventData(r),a=this.graph.snapToGrid(r.clientX,r.clientY),s=this.graph.snapToGrid(o.clientX,o.clientY),l=a.x-s.x,c=a.y-s.y;this.trigger(`action:${e}:${t}`,Object.assign({e:r,dx:l,dy:c,x:a.x,y:a.y,offsetX:n.clientX-o.startX,offsetY:n.clientY-o.startY},i)),o.clientX=n.clientX,o.clientY=n.clientY}onPieToggleMouseDown(e){e.stopPropagation();const t=this.$(e.target).closest(`.${VA.pieToggle}`).attr("data-name");this.isOpen(t)||this.isOpen()&&this.toggleState(),this.toggleState(t)}setPieIcons(){"pie"===this.handleOptions.type&&this.$handleContainer.find(`.${VA.handle}`).each((e,t)=>{const n=this.$(t),i=n.attr("data-action"),r=VA.pieSlice,o=this.getHandle(i);if(!o||!o.icon){const e=window.getComputedStyle(t,":before").getPropertyValue("content");if(e&&"none"!==e){const t=n.find(`.${r}-txt`);t.length&&Qy.create(t[0]).text(e.replace(/['"]/g,""))}const i=n.css("background-image");if(i){const e=i.match(/url\(['"]?([^'"]+)['"]?\)/);if(e){const t=e[1],i=n.find(`.${r}-img`);i.length>0&&Qy.create(i[0]).attr("xlink:href",t)}}}})}getHandleIdx(e){return this.handles.findIndex(t=>t.name===e)}hasHandle(e){return this.getHandleIdx(e)>=0}getHandle(e){return this.handles.find(t=>t.name===e)}renderHandle(e){const t=this.$("
").addClass(`${VA.handle} ${VA.handle}-${e.name}`).attr("data-action",e.name).prop("draggable",!1);if("pie"===this.handleOptions.type){const n=this.getHandleIdx(e.name),i=this.pie,r=i.outerRadius,o=i.innerRadius,a=(r+o)/2,s=new xy(r,r),l=my.toRad(i.sliceAngle),u=n*l+my.toRad(i.startAngle),d=u+l,h=c.createSlicePathData(o,r,u,d),p=Qy.create("svg").addClass(`${VA.pieSlice}-svg`),f=Qy.create("path").addClass(VA.pieSlice).attr("d",h).translate(r,r),g=xy.fromPolar(a,-u-l/2,s).toJSON(),m=i.iconSize,v=Qy.create("image").attr(g).addClass(`${VA.pieSlice}-img`);g.y=g.y+m-2;const _=Qy.create("text",{"font-size":m}).attr(g).addClass(`${VA.pieSlice}-txt`);v.attr({width:m,height:m}),v.translate(-m/2,-m/2),_.translate(-m/2,-m/2),p.append([f,v,_]),t.append(p.node)}else t.addClass(`${VA.handle}-pos-${e.position}`),e.content&&("string"===typeof e.content?t.html(e.content):t.append(e.content));return this.updateHandleIcon(t,e.icon),this.applyAttrs(t,e.attrs),t}addHandle(e){if(!this.hasHandle(e.name)){this.handles.push(e);const t=e.events;t&&Object.keys(t).forEach(n=>{const i=t[n],r=`action:${e.name}:${n}`;"string"===typeof i?this.on(r,this[i],this):this.on(r,i)}),this.$handleContainer&&this.$handleContainer.append(this.renderHandle(e))}return this}addHandles(e){return e.forEach(e=>this.addHandle(e)),this}removeHandles(){while(this.handles.length)this.removeHandle(this.handles[0].name);return this}removeHandle(e){const t=this.getHandleIdx(e),n=this.handles[t];return n&&(n.events&&Object.keys(n.events).forEach(t=>{this.off(`action:${e}:${t}`)}),this.getHandleElem(e).remove(),this.handles.splice(t,1)),this}changeHandle(e,t){const n=this.getHandle(e);return n&&(this.removeHandle(e),this.addHandle(Object.assign(Object.assign({},n),t))),this}toggleHandle(e,t){const n=this.getHandle(e);if(n){const i=this.getHandleElem(e),r=`${VA.handle}-selected`;void 0===t&&(t=!i.hasClass(r)),i.toggleClass(r,t);const o=t?n.iconSelected:n.icon;o&&this.updateHandleIcon(i,o)}return this}selectHandle(e){return this.toggleHandle(e,!0)}deselectHandle(e){return this.toggleHandle(e,!1)}deselectAllHandles(){return this.handles.forEach(e=>this.deselectHandle(e.name)),this}getHandleElem(e){return this.$handleContainer.find(`.${VA.handle}-${e}`)}updateHandleIcon(e,t){if("pie"===this.handleOptions.type){const n=e.find(`.${VA.pieSliceImg}`);this.$(n[0]).attr("xlink:href",t||"")}else e.css("background-image",t?`url(${t})`:"")}isRendered(){return null!=this.$handleContainer}isOpen(e){return!!this.isRendered()&&(e?this.$pieToggles[e].hasClass(VA.pieToggleOpened):this.$handleContainer.hasClass(`${VA.pieOpended}`))}toggleState(e){if(this.isRendered()){const t=this.$handleContainer;if(Object.keys(this.$pieToggles).forEach(e=>{const t=this.$pieToggles[e];t.removeClass(VA.pieToggleOpened)}),this.isOpen())this.trigger("pie:close",{name:e}),t.removeClass(VA.pieOpended);else{if(this.trigger("pie:open",{name:e}),e){const n=this.pie.toggles,i=n&&n.find(t=>t.name===e);i&&t.attr({"data-pie-toggle-name":i.name,"data-pie-toggle-position":i.position}),this.$pieToggles[e].addClass(VA.pieToggleOpened)}t.addClass(VA.pieOpended)}}}applyAttrs(e,t){if(t){const n=Ex.$(e);Object.keys(t).forEach(e=>{const i=n.find(e).addBack().filter(e),r=t[e],{class:o}=r,a=GA(r,["class"]);o&&i.addClass(o),i.attr(a)})}}}(function(e){e.defaultPieOptions={innerRadius:20,outerRadius:50,sliceAngle:45,startAngle:0,iconSize:14,toggles:[{name:"default",position:"e"}]}})(UA||(UA={})),function(e){e.handle=Ex.prototype.prefixClassName("widget-handle"),e.wrap=`${e.handle}-wrap`,e.animate=`${e.handle}-animate`,e.pieOpended=`${e.handle}-pie-opened`,e.pieToggle=`${e.handle}-pie-toggle`,e.pieToggleOpened=`${e.handle}-pie-toggle-opened`,e.pieSlice=`${e.handle}-pie-slice`,e.pieSliceImg=`${e.handle}-pie-slice-img`}(VA||(VA={}));var zA,jA=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},HA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const t=n[e];t&&t.remove()})}static getInstances(e){const t=this.ensureCache();return t[e.view.cid]||{}}init(e){}render(){return this}startListening(){!1!==this.options.clearOnBlankMouseDown&&this.graph.on("blank:mousedown",this.remove,this)}stopListening(){!1!==this.options.clearOnBlankMouseDown&&this.graph.off("blank:mousedown",this.remove,this)}remove(){this.stopListening();const e=this.constructor;return e.unregister(this),super.remove()}dispose(){this.remove()}}WA.instanceCache=new WeakMap,jA([Ex.dispose()],WA.prototype,"dispose",null);class YA extends WA{get node(){return this.cell}get metadata(){const e=this.cell.prop("knob");return Array.isArray(e)?null!=this.options.index?e[this.options.index]:null:e}init(e){this.options=Object.assign({},e),this.render(),this.startListening()}startListening(){this.delegateEvents({mousedown:"onMouseDown",touchstart:"onMouseDown"}),this.model.on("*",this.update,this),this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this),this.model.on("reseted",this.remove,this),this.node.on("removed",this.remove,this),this.view.on("node:resize:mousedown",this.onTransform,this),this.view.on("node:rotate:mousedown",this.onTransform,this),this.view.on("node:resize:mouseup",this.onTransformed,this),this.view.on("node:rotate:mouseup",this.onTransformed,this),this.view.on("cell:knob:mousedown",this.onKnobMouseDown,this),this.view.on("cell:knob:mouseup",this.onKnobMouseUp,this),super.startListening()}stopListening(){this.undelegateEvents(),this.model.off("*",this.update,this),this.graph.off("scale",this.update,this),this.graph.off("translate",this.update,this),this.model.off("reseted",this.remove,this),this.node.off("removed",this.remove,this),this.view.off("node:resize:mousedown",this.onTransform,this),this.view.off("node:rotate:mousedown",this.onTransform,this),this.view.off("node:resize:mouseup",this.onTransformed,this),this.view.off("node:rotate:mouseup",this.onTransformed,this),this.view.off("cell:knob:mousedown",this.onKnobMouseDown,this),this.view.off("cell:knob:mouseup",this.onKnobMouseUp,this),super.stopListening()}render(){return this.container=document.createElement("div"),c.addClass(this.container,this.prefixClassName("widget-knob")),this.options.className&&c.addClass(this.container,this.options.className),this.view.addClass(zA.KNOB),this.graph.container.appendChild(this.container),this.update(),this}remove(){return this.view.removeClass(zA.KNOB),super.remove()}update(){if(this.metadata){const{update:e,position:t}=this.metadata,n={knob:this,cell:this.cell,node:this.node};if(t){const e=t.call(this.graph,Object.assign({},n));if(e){const t=this.graph.matrix(),n=this.node.getBBox(),i=my.normalize(this.node.getAngle()),r=xy.create(e);0!==i&&r.rotate(-i,{x:n.width/2,y:n.height/2}),r.translate(n).scale(t.a,t.d).translate(t.e,t.f),this.container.style.left=`${r.x}px`,this.container.style.top=`${r.y}px`}}e&&e.call(this.graph,Object.assign({},n))}}hide(){this.container.style.display="none"}show(){this.container.style.display=""}onTransform(){this.hide()}onTransformed(){this.show()}onKnobMouseDown({knob:e}){this.cid!==e.cid&&this.hide()}onKnobMouseUp(){this.show()}notify(e,t){if(this.view){const n=this.view.normalizeEvent(t),i=this.graph.snapToGrid(n.clientX,n.clientY);this.view.notify(`cell:${e}`,{e:n,view:this.view,node:this.node,cell:this.cell,x:i.x,y:i.y,knob:this}),this.cell.isNode()?this.view.notify(`node:${e}`,{e:n,view:this.view,node:this.node,cell:this.cell,x:i.x,y:i.y,knob:this}):this.cell.isEdge()&&this.view.notify(`edge:${e}`,{e:n,view:this.view,edge:this.cell,cell:this.cell,x:i.x,y:i.y,knob:this})}}onMouseDown(e){e.stopPropagation(),this.setEventData(e,{knobbing:!1,originX:e.clientX,originY:e.clientY,clientX:e.clientX,clientY:e.clientY}),this.graph.view.undelegateEvents(),this.delegateDocumentEvents(zA.documentEvents,e.data),this.metadata&&this.metadata.onMouseDown&&this.metadata.onMouseDown.call(this.graph,{e:e,data:this.getEventData(e),knob:this,cell:this.cell,node:this.node}),this.notify("knob:mousedown",e)}onMouseMove(e){const t=this.getEventData(e),n=this.graph.findViewByCell(this.node);if(t.knobbing||(t.knobbing=!0,n&&(n.addClass(zA.KNOBBING),this.notify("knob",e)),this.model.startBatch("knob",{cid:this.cid})),t.clientX=e.clientX,t.clientY=e.clientY,this.metadata&&this.metadata.onMouseMove){const n=this.graph.matrix(),i=(e.clientX-t.originX)/n.a,r=(e.clientY-t.originY)/n.d,o=this.node.getAngle(),a=new xy(i,r).rotate(o);this.metadata.onMouseMove.call(this.graph,{e:e,data:t,deltaX:a.x,deltaY:a.y,knob:this,cell:this.cell,node:this.node})}this.notify("knobbing",e),this.notify("knob:mousemove",e)}onMouseUp(e){this.undelegateDocumentEvents(),this.graph.view.delegateEvents();const t=this.getEventData(e),n=this.graph.findViewByCell(this.node);t.knobbing&&(n&&n.removeClass(zA.KNOBBING),this.metadata&&this.metadata.onMouseUp&&this.metadata.onMouseUp.call(this.graph,{e:e,data:t,knob:this,cell:this.cell,node:this.node}),this.model.stopBatch("knob",{cid:this.cid}),this.notify("knobbed",e)),this.notify("knob:mouseup",e)}}(function(e){e.KNOB="has-widget-knob",e.KNOBBING="node-knobbing",e.documentEvents={mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp"}})(zA||(zA={}));var qA,KA,QA=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};(function(e){e.root="widget-minimap",e.viewport=`${e.root}-viewport`,e.zoom=`${e.viewport}-zoom`})(qA||(qA={}));class XA extends Ex{constructor(e){super(),this.options=Object.assign(Object.assign({},KA.defaultOptions),e),this.updateViewport=s.debounce(this.updateViewport.bind(this),0),this.container=document.createElement("div"),this.$container=this.$(this.container).addClass(this.prefixClassName(qA.root));const t=document.createElement("div");this.container.appendChild(t),this.$viewport=this.$("
").addClass(this.prefixClassName(qA.viewport)),this.options.scalable&&(this.zoomHandle=this.$("
").addClass(this.prefixClassName(qA.zoom)).appendTo(this.$viewport).get(0)),this.$container.append(this.$viewport).css({width:this.options.width,height:this.options.height,padding:this.options.padding}),this.options.container&&this.options.container.appendChild(this.container),this.sourceGraph=this.graph;const n=Object.assign(Object.assign({},this.options.graphOptions),{container:t,model:this.sourceGraph.model,frozen:!0,async:this.sourceGraph.isAsync(),interacting:!1,grid:!1,background:!1,rotating:!1,resizing:!1,embedding:!1,selecting:!1,snapline:!1,clipboard:!1,history:!1,scroller:!1});this.targetGraph=this.options.createGraph?this.options.createGraph(n):new uR(n),this.targetGraph.renderer.unfreeze(),this.updatePaper(this.sourceGraph.options.width,this.sourceGraph.options.height),this.startListening()}get graph(){return this.options.graph}get scroller(){return this.graph.scroller.widget}get graphContainer(){return this.scroller?this.scroller.container:this.graph.container}get $graphContainer(){return this.scroller?this.scroller.$container:this.$(this.graph.container)}startListening(){this.scroller?this.$graphContainer.on(`scroll${this.getEventNamespace()}`,this.updateViewport):this.sourceGraph.on("translate",this.updateViewport,this),this.sourceGraph.on("resize",this.updatePaper,this),this.delegateEvents({mousedown:"startAction",touchstart:"startAction",[`mousedown .${this.prefixClassName("graph")}`]:"scrollTo",[`touchstart .${this.prefixClassName("graph")}`]:"scrollTo"})}stopListening(){this.scroller?this.$graphContainer.off(this.getEventNamespace()):this.sourceGraph.off("translate",this.updateViewport,this),this.sourceGraph.off("resize",this.updatePaper,this),this.undelegateEvents()}onRemove(){this.targetGraph.view.remove(),this.stopListening(),this.targetGraph.dispose()}updatePaper(e,t){let n,i;"object"===typeof e?(n=e.width,i=e.height):(n=e,i=t);const r=this.sourceGraph.options,o=this.sourceGraph.transform.getScale(),a=this.options.width-2*this.options.padding,s=this.options.height-2*this.options.padding;n/=o.sx,i/=o.sy,this.ratio=Math.min(a/n,s/i);const l=this.ratio,c=r.x*l/o.sx,u=r.y*l/o.sy;return n*=l,i*=l,this.targetGraph.resizeGraph(n,i),this.targetGraph.translate(c,u),this.targetGraph.scale(l,l),this.updateViewport(),this}updateViewport(){const e=this.ratio,t=this.sourceGraph.transform.getScale();let n=null;if(this.scroller)n=this.scroller.clientToLocalPoint(0,0);else{const e=this.sourceGraph.matrix();n=new xy(-e.e/e.a,-e.f/e.d)}const i=this.$(this.targetGraph.container).position(),r=this.targetGraph.translate();r.ty=r.ty||0,this.geometry={top:i.top+n.y*e+r.ty,left:i.left+n.x*e+r.tx,width:this.$graphContainer.innerWidth()*e/t.sx,height:this.$graphContainer.innerHeight()*e/t.sy},this.$viewport.css(this.geometry)}startAction(e){const t=this.normalizeEvent(e),n=t.target===this.zoomHandle?"zooming":"panning",{tx:i,ty:r}=this.sourceGraph.translate(),o={action:n,clientX:t.clientX,clientY:t.clientY,scrollLeft:this.graphContainer.scrollLeft,scrollTop:this.graphContainer.scrollTop,zoom:this.sourceGraph.zoom(),scale:this.sourceGraph.transform.getScale(),geometry:this.geometry,translateX:i,translateY:r};this.delegateDocumentEvents(KA.documentEvents,o)}doAction(e){const t=this.normalizeEvent(e),n=t.clientX,i=t.clientY,r=t.data;switch(r.action){case"panning":{const e=this.sourceGraph.transform.getScale(),t=(n-r.clientX)*e.sx,o=(i-r.clientY)*e.sy;this.scroller?(this.graphContainer.scrollLeft=r.scrollLeft+t/this.ratio,this.graphContainer.scrollTop=r.scrollTop+o/this.ratio):this.sourceGraph.translate(r.translateX-t/this.ratio,r.translateY-o/this.ratio);break}case"zooming":{const e=r.scale,t=r.geometry,i=1+(r.clientX-n)/t.width/e.sx;r.frameId&&cancelAnimationFrame(r.frameId),r.frameId=requestAnimationFrame(()=>{this.sourceGraph.zoom(i*r.zoom,{absolute:!0,minScale:this.options.minScale,maxScale:this.options.maxScale})});break}default:break}}stopAction(){this.undelegateDocumentEvents()}scrollTo(e){const t=this.normalizeEvent(e);let n,i;const r=this.targetGraph.translate();if(r.ty=r.ty||0,null==t.offsetX){const e=this.$(this.targetGraph.container).offset();n=t.pageX-e.left,i=t.pageY-e.top}else n=t.offsetX,i=t.offsetY;const o=(n-r.tx)/this.ratio,a=(i-r.ty)/this.ratio;this.sourceGraph.centerPoint(o,a)}dispose(){this.remove()}}QA([Ex.dispose()],XA.prototype,"dispose",null),function(e){e.defaultOptions={width:300,height:200,padding:10,scalable:!0,minScale:.01,maxScale:16,graphOptions:{},createGraph:e=>new uR(e)},e.documentEvents={mousemove:"doAction",touchmove:"doAction",mouseup:"stopAction",touchend:"stopAction"}}(KA||(KA={}));var ZA=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},JA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{"string"===typeof e?this.filterShapes[e]=!0:this.filterCells[e.id]=!0}):"function"===typeof e&&(this.filterFunction=e)}onBatchStop({name:e,data:t}){"resize"===e&&this.snapOnResizing(t.cell,t)}captureCursorOffset({view:e,x:t,y:n}){const i=e.getDelegatedView();if(i&&this.isNodeMovable(i)){const i=e.cell.getPosition();this.offset={x:t-i.x,y:n-i.y}}}isNodeMovable(e){return e&&e.cell.isNode()&&e.can("nodeMovable")}snapOnResizing(e,t){if(this.options.resizing&&!t.snapped&&t.ui&&t.direction&&t.trueDirection){const n=this.graph.renderer.findViewByCell(e);if(n&&n.cell.isNode()){const r=e.getBBox(),o=r.bbox(e.getAngle()),a=o.getTopLeft(),s=o.getBottomRight(),l=my.normalize(e.getAngle()),c=this.options.tolerance||0;let u,d,h,p,f,g;const m={vertical:0,horizontal:0},v=t.direction,_=t.trueDirection,y=t.relativeDirection;-1!==_.indexOf("right")?m.vertical=s.x:m.vertical=a.x,-1!==_.indexOf("bottom")?m.horizontal=s.y:m.horizontal=a.y,this.model.getNodes().some(t=>{if(this.isIgnored(e,t))return!1;const n=t.getBBox().bbox(t.getAngle()),r=n.getTopLeft(),a=n.getBottomRight(),l={vertical:[r.x,a.x],horizontal:[r.y,a.y]},v={};return Object.keys(l).forEach(e=>{const t=e,n=l[t].map(e=>({position:e,distance:Math.abs(e-m[t])})).filter(e=>e.distance<=c);v[t]=i.sortBy(n,e=>e.distance)}),null==u&&v.vertical.length>0&&(u=v.vertical[0].position,d=Math.min(o.y,n.y),h=Math.max(s.y,a.y)-d),null==p&&v.horizontal.length>0&&(p=v.horizontal[0].position,f=Math.min(o.x,n.x),g=Math.max(s.x,a.x)-f),null!=u&&null!=p}),this.hide();let b=0,S=0;null==p&&null==u||(null!=u&&(b=-1!==_.indexOf("right")?u-s.x:a.x-u),null!=p&&(S=-1!==_.indexOf("bottom")?p-s.y:a.y-p));let E=0,C=0;if(l%90===0)90===l||270===l?(E=S,C=b):(E=b,C=S);else{const e=l>=0&&l<90?1:l>=90&&l<180?4:l>=180&&l<270?3:2;null!=p&&null!=u&&(bx&&(w=Math.max(w,t.minWidth)),t.minHeight&&t.minHeight>x&&(T=Math.max(T,t.minHeight)),t.maxWidth&&(w=Math.min(w,t.maxWidth)),t.maxHeight&&(T=Math.min(T,t.maxHeight)),t.preserveAspectRatio&&(C1&&Math.abs(A.width+A.x-u)>1&&(u=void 0),p&&Math.abs(A.y-p)>1&&Math.abs(A.height+A.y-p)>1&&(p=void 0),this.update({verticalLeft:u,verticalTop:d,verticalHeight:h,horizontalTop:p,horizontalLeft:f,horizontalWidth:g})}}}snapOnMoving({view:e,e:t,x:n,y:i}){const r=e.getEventData(t).delegatedView||e;if(!this.isNodeMovable(r))return;const o=r.cell,a=o.getSize(),s=o.getPosition(),l=new wy(n-this.offset.x,i-this.offset.y,a.width,a.height),c=o.getAngle(),u=l.getCenter(),d=l.bbox(c),h=d.getTopLeft(),p=d.getBottomRight(),f=this.options.tolerance||0;let g,m,v,_,y,b,S=0,E=0;if(this.model.getNodes().some(e=>{if(this.isIgnored(o,e))return!1;const t=e.getBBox().bbox(e.getAngle()),n=t.getCenter(),i=t.getTopLeft(),r=t.getBottomRight();return null==g&&(Math.abs(n.x-u.x)0&&(this.timer=window.setTimeout(()=>{this.unmount()},t)),this}onRemove(){this.stopListening(),this.hide()}dispose(){this.remove()}}ZA([Ex.dispose()],eO.prototype,"dispose",null);var tO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class nO extends MA{init(){this.resetUpdates(),this.startListening(),this.resetViews(this.model.getCells()),!this.isFrozen()&&this.isAsync()&&this.updateViewsAsync()}startListening(){this.model.on("sorted",this.onSortModel,this),this.model.on("reseted",this.onModelReseted,this),this.model.on("batch:stop",this.onBatchStop,this),this.model.on("cell:added",this.onCellAdded,this),this.model.on("cell:removed",this.onCellRemoved,this),this.model.on("cell:change:zIndex",this.onCellZIndexChanged,this),this.model.on("cell:change:visible",this.onCellVisibleChanged,this)}stopListening(){this.model.off("sorted",this.onSortModel,this),this.model.off("reseted",this.onModelReseted,this),this.model.off("batch:stop",this.onBatchStop,this),this.model.off("cell:added",this.onCellAdded,this),this.model.off("cell:removed",this.onCellRemoved,this),this.model.off("cell:change:zIndex",this.onCellZIndexChanged,this),this.model.off("cell:change:visible",this.onCellVisibleChanged,this)}resetUpdates(){this.updates={priorities:[{},{},{}],mounted:{},mountedCids:[],unmounted:{},unmountedCids:[],count:0,sort:!1,frozen:!1,freezeKey:null,animationId:null}}onSortModel(){this.model.hasActiveBatch(nO.SORT_DELAYING_BATCHES)||this.sortViews()}onModelReseted({options:e}){this.removeZPivots(),this.resetViews(this.model.getCells(),e)}onBatchStop({name:e,data:t}){if(this.isFrozen())return;const n=this.model;if(!this.isAsync()){const i=nO.UPDATE_DELAYING_BATCHES;i.includes(e)&&!n.hasActiveBatch(i)&&this.updateViews(t)}const i=nO.SORT_DELAYING_BATCHES;i.includes(e)&&!n.hasActiveBatch(i)&&this.sortViews()}onCellAdded({cell:e,options:t}){const n=t.position;this.isAsync()||"number"!==typeof n?this.renderView(e,t):(t.maxPosition===n&&this.freeze({key:"addCells"}),this.renderView(e,t),0===n&&this.unfreeze({key:"addCells"}))}onCellRemoved({cell:e,options:t}){const n=this.findViewByCell(e);n&&this.requestViewUpdate(n,nO.FLAG_REMOVE,n.priority,t)}onCellZIndexChanged({cell:e,options:t}){if("approx"===this.options.sorting){const n=this.findViewByCell(e);n&&this.requestViewUpdate(n,nO.FLAG_INSERT,n.priority,t)}}onCellVisibleChanged({cell:e,current:t,options:n}){t||this.processEdgeOnTerminalVisibleChanged(e,!1);const i=this.findViewByCell(e);!t&&i?this.removeView(e):t&&null==i&&this.renderView(e,n),t&&this.processEdgeOnTerminalVisibleChanged(e,!0)}processEdgeOnTerminalVisibleChanged(e,t){const n=(e,t)=>{const n=e.getSourceCellId();if(n!==t.id)return e.getSourceCell();const i=e.getTargetCellId();return i!==t.id?e.getTargetCell():null};this.model.getConnectedEdges(e).forEach(i=>{const r=n(i,e);(null==r||r.isVisible())&&(t?i.show():i.hide())})}isEdgeTerminalVisible(e,t){const n="source"===t?e.getSourceCellId():e.getTargetCellId(),i=n?this.model.getCell(n):null;return!(i&&!i.isVisible())}requestConnectedEdgesUpdate(e,t={}){if(Px.isCellView(e)){const n=e.cell,i=this.model.getConnectedEdges(n);for(let e=0,r=i.length;e=i){r=!1;break e}const f=Ex.views[n];if(!f){delete p[n];continue}let g=p[n];if(0===(g&nO.FLAG_REMOVE)){const e=n in t.unmounted;if(d&&!s.call(d,this.graph,{view:f,unmounted:e})){e||(this.registerUnmountedView(f),f.unmount()),t.unmounted[n]|=g,delete p[n],l+=1;continue}e&&(g|=nO.FLAG_INSERT,a+=1),g|=this.registerMountedView(f)}const m=f;let v=this.updateView(f,g,e);if(v>0){const e=m.cell;e&&e.isEdge()&&(m.hasAction(v,"source")&&!this.isEdgeTerminalVisible(e,"source")&&(v=m.removeAction(v,"source"),v|=nO.FLAG_REMOVE),m.hasAction(v,"target")&&!this.isEdgeTerminalVisible(e,"target")&&(v=m.removeAction(v,"target"),v|=nO.FLAG_REMOVE))}v>0&&(p[n]=v,!this.graph.hook.onViewPostponed(m,v,e)||p[n])?(u+=1,r=!1):(o>h&&(o=h),c+=1,delete p[n])}}return{empty:r,priority:o,mountedCount:a,unmountedCount:l,updatedCount:c,postponedCount:u}}updateViewsAsync(e={},t={processed:0,priority:nO.MIN_PRIORITY}){const n=this.updates,i=n.animationId;if(i){if(c.cancelAnimationFrame(i),0===t.processed){const t=e.before;"function"===typeof t&&s.call(t,this.graph,this.graph)}const r=this.updateViewsBatch(e),o=this.checkViewImpl({checkView:e.checkView,mountedBatchSize:nO.MOUNT_BATCH_SIZE-r.mountedCount,unmountedBatchSize:nO.MOUNT_BATCH_SIZE-r.unmountedCount});let a=t.processed;const l=n.count,u=o.mountedCount,d=o.unmountedCount;r.updatedCount>0&&(a+=r.updatedCount+r.unmountedCount,t.priority=Math.min(r.priority,t.priority),r.empty&&0===u?(r.priority=t.priority,r.mountedCount+=u,r.unmountedCount+=d,this.graph.trigger("render:done",{stats:r,options:e}),t.processed=0,n.count=0):t.processed=a);const h=e.progress;if(l&&"function"===typeof h&&s.call(h,this.graph,{total:l,done:r.empty,current:a}),n.animationId!==i)return}n.animationId=c.requestAnimationFrame(()=>{this.updateViewsAsync(e,t)})}registerMountedView(e){const t=e.cid,n=this.updates;if(t in n.mounted)return 0;n.mounted[t]=!0,n.mountedCids.push(t);const i=n.unmounted[t]||0;return delete n.unmounted[t],i}registerUnmountedView(e){const t=e.cid,n=this.updates;if(t in n.unmounted)return 0;n.unmounted[t]|=nO.FLAG_INSERT;const i=n.unmounted[t];return n.unmountedCids.push(t),delete n.mounted[t],i}isViewMounted(e){if(null==e)return!1;const t=e.cid;return t in this.updates.mounted}getMountedViews(){return Object.keys(this.updates.mounted).map(e=>Px.views[e])}getUnmountedViews(){return Object.keys(this.updates.unmounted).map(e=>Px.views[e])}checkMountedViews(e,t){let n=0;if("function"!==typeof e)return n;const i=this.updates,r=i.mounted,o=i.mountedCids,a=null==t?o.length:Math.min(o.length,t);for(let l=0;l0?Math.min(this.updates.unmountedCids.length-n,e.mountedBatchSize):e.mountedBatchSize);return{mountedCount:i,unmountedCount:n}}checkView(e={}){return this.checkViewImpl(e)}isFrozen(){return!!this.options.frozen}freeze(e={}){const t=e.key,n=this.updates,i=this.options.frozen,r=n.freezeKey;if(t&&t!==r){if(i&&r)return;n.frozen=i,n.freezeKey=t}this.options.frozen=!0;const o=n.animationId;n.animationId=null,this.isAsync()&&null!=o&&c.cancelAnimationFrame(o),this.graph.trigger("freeze",{key:t})}unfreeze(e={}){const t=e.key,n=this.updates,i=n.freezeKey;if(t&&i&&t!==i)return;if(n.freezeKey=null,t&&t===i&&n.frozen)return;const r=()=>{this.options.frozen=n.frozen=!1,n.sort&&(this.sortViews(),n.sort=!1);const i=e.after;i&&s.call(i,this.graph,this.graph),this.graph.trigger("unfreeze",{key:t})};if(this.isAsync()){this.freeze();const t=e.progress;this.updateViewsAsync(Object.assign(Object.assign({},e),{progress:({done:e,current:n,total:i})=>{t&&s.call(t,this.graph,{done:e,current:n,total:i}),e&&r()}}))}else this.updateViews(e),r()}isAsync(){return!!this.options.async}setAsync(e){this.options.async=e}onRemove(){this.freeze(),this.removeViews()}resetViews(e=[],t={}){this.resetUpdates(),this.removeViews(),this.freeze({key:"reset"});for(let n=0,i=e.length;n{const t=this.views[e];t&&this.removeView(t.cell)}),this.views={}}renderView(e,t={}){const n=e.id,i=this.views;let r=0,o=i[n];if(e.isVisible()&&(!e.isEdge()||this.isEdgeTerminalVisible(e,"source")&&this.isEdgeTerminalVisible(e,"target"))){if(o)r=nO.FLAG_INSERT;else{const t=this.graph.hook.createCellView(e);t&&(o=i[e.id]=t,o.graph=this.graph,r=this.registerUnmountedView(o)|o.getBootstrapFlag())}o&&this.requestViewUpdate(o,r,o.priority,t)}}isExactSorting(){return"exact"===this.options.sorting}sortViews(){this.isExactSorting()&&(this.isFrozen()?this.updates.sort=!0:this.sortViewsExact())}sortElements(e,t){const n=e.map(e=>{const t=e.parentNode,n=t.insertBefore(document.createTextNode(""),e.nextSibling);return e=>{if(t===e)throw new Error("You can't sort elements if any one is a descendant of another.");t.insertBefore(e,n),t.removeChild(n)}});e.sort(t).forEach((e,t)=>n[t](e))}sortViewsExact(){const e=this.view.$(this.view.stage).children("[data-cell-id]").toArray(),t=this.model;this.sortElements(e,(e,n)=>{const i=t.getCell(e.getAttribute("data-cell-id")||""),r=t.getCell(n.getAttribute("data-cell-id")||""),o=i.getZIndex()||0,a=r.getZIndex()||0;return o===a?0:oi&&(i=t)}const r=this.view.stage;if(i!==-1/0){const e=t[i];r.insertBefore(n,e.nextSibling)}else r.insertBefore(n,r.firstChild);return n}removeZPivots(){this.zPivots&&Object.keys(this.zPivots).forEach(e=>{const t=this.zPivots[e];t&&t.parentNode&&t.parentNode.removeChild(t)}),this.zPivots={}}insertView(e){const t=this.view.stage;switch(this.options.sorting){case"approx":{const n=e.cell.getZIndex(),i=this.addZPivot(n);t.insertBefore(e.container,i);break}case"exact":default:t.appendChild(e.container);break}}findViewByCell(e){if(null==e)return null;const t=XT.isCell(e)?e.id:e;return this.views[t]}findViewByElem(e){if(null==e)return null;const t="string"===typeof e?this.view.stage.querySelector(e):e instanceof Element?e:e[0];if(t){const e=this.view.findAttr("data-cell-id",t);if(e)return this.views[e]}return null}findViewsFromPoint(e){const t={x:e.x,y:e.y};return this.model.getCells().map(e=>this.findViewByCell(e)).filter(e=>{return null!=e&&c.getBBox(e.container,{target:this.view.stage}).containsPoint(t)})}findEdgeViewsInArea(e,t={}){const n=wy.create(e);return this.model.getEdges().map(e=>this.findViewByCell(e)).filter(e=>{if(e){const i=c.getBBox(e.container,{target:this.view.stage});return t.strict?n.containsRect(i):n.isIntersectWithRect(i)}return!1})}findViewsInArea(e,t={}){const n=wy.create(e);return this.model.getNodes().map(e=>this.findViewByCell(e)).filter(e=>{if(e){const i=c.getBBox(e.container,{target:this.view.stage});return t.strict?n.containsRect(i):n.isIntersectWithRect(i)}return!1})}dispose(){this.resetUpdates(),this.stopListening()}}tO([MA.dispose()],nO.prototype,"dispose",null),function(e){e.FLAG_INSERT=1<<30,e.FLAG_REMOVE=1<<29,e.MOUNT_BATCH_SIZE=1e3,e.UPDATE_BATCH_SIZE=1e3,e.MIN_PRIORITY=2,e.SORT_DELAYING_BATCHES=["add","to-front","to-back"],e.UPDATE_DELAYING_BATCHES=["translate"]}(nO||(nO={}));var iO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class rO extends MA{get elem(){return this.view.background}init(){this.startListening(),this.options.background&&this.draw(this.options.background)}startListening(){this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this)}stopListening(){this.graph.off("scale",this.update,this),this.graph.off("translate",this.update,this)}updateBackgroundImage(e={}){let t=e.size||"auto auto",n=e.position||"center";const i=this.graph.transform.getScale(),r=this.graph.translate();if("object"===typeof n){const e=r.tx+i.sx*(n.x||0),t=r.ty+i.sy*(n.y||0);n=`${e}px ${t}px`}"object"===typeof t&&(t=wy.fromSize(t).scale(i.sx,i.sy),t=`${t.width}px ${t.height}px`),this.elem.style.backgroundSize=t,this.elem.style.backgroundPosition=n}drawBackgroundImage(e,t={}){if(!(e instanceof HTMLImageElement))return void(this.elem.style.backgroundImage="");let n;const i=t.opacity,o=t.size;let a=t.repeat||"no-repeat";const s=vC.registry.get(a);if("function"===typeof s){const i=t.quality||1;e.width*=i,e.height*=i;const r=s(e,t);if(!(r instanceof HTMLCanvasElement))throw new Error("Background pattern must return an HTML Canvas instance");n=r.toDataURL("image/png"),a=t.repeat&&a!==t.repeat?t.repeat:"repeat","object"===typeof o?(o.width*=r.width/e.width,o.height*=r.height/e.height):void 0===o&&(t.size={width:r.width/i,height:r.height/i})}else n=e.src,void 0===o&&(t.size={width:e.width,height:e.height});const l=this.optionsCache;null!=l&&"object"===typeof t.size&&t.image===l.image&&t.repeat===l.repeat&&t.quality===l.quality&&(l.size=r.clone(t.size));const c=this.elem.style;c.backgroundImage=`url(${n})`,c.backgroundRepeat=a,c.opacity=null==i||i>=1?"":`${i}`,this.updateBackgroundImage(t)}updateBackgroundColor(e){this.elem.style.backgroundColor=e||""}updateBackgroundOptions(e){this.graph.options.background=e}update(){this.optionsCache&&this.updateBackgroundImage(this.optionsCache)}draw(e){const t=e||{};if(this.updateBackgroundOptions(e),this.updateBackgroundColor(t.color),t.image){this.optionsCache=r.clone(t);const n=document.createElement("img");n.onload=()=>this.drawBackgroundImage(n,e),n.setAttribute("crossorigin","anonymous"),n.src=t.image}else this.drawBackgroundImage(null),this.optionsCache=null}clear(){this.draw()}dispose(){this.clear(),this.stopListening()}}iO([MA.dispose()],rO.prototype,"dispose",null);var oO,aO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},sO=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const n=t.trim();if(n){const t=n.split(":");t.length&&(e[t[0].trim()]=t[1]?t[1].trim():"")}}),Object.keys(e).forEach(t=>{"width"!==t&&"height"!==t&&(r.style[t]="",this.container.style[t]=e[t])})}this.content=document.createElement("div"),this.$content=this.$(this.content).addClass(this.prefixClassName(oO.contentClass)).css({width:this.graph.options.width,height:this.graph.options.height}),this.background=document.createElement("div"),this.$background=this.$(this.background).addClass(this.prefixClassName(oO.backgroundClass)),this.$content.append(this.background),this.options.pageVisible||this.$content.append(this.graph.view.grid),this.$content.append(r),this.$content.appendTo(this.container),this.startListening(),this.options.pageVisible||this.graph.grid.update(),this.backgroundManager=new lO.Background(this)}get graph(){return this.options.graph}get model(){return this.graph.model}startListening(){const e=this.graph,t=this.model;e.on("scale",this.onScale,this),e.on("resize",this.onResize,this),e.on("before:print",this.storeScrollPosition,this),e.on("before:export",this.storeScrollPosition,this),e.on("after:print",this.restoreScrollPosition,this),e.on("after:export",this.restoreScrollPosition,this),e.on("render:done",this.onRenderDone,this),e.on("unfreeze",this.onUpdate,this),t.on("reseted",this.onUpdate,this),t.on("cell:added",this.onUpdate,this),t.on("cell:removed",this.onUpdate,this),t.on("cell:changed",this.onUpdate,this),t.on("batch:stop",this.onBatchStop,this),this.delegateBackgroundEvents()}stopListening(){const e=this.graph,t=this.model;e.off("scale",this.onScale,this),e.off("resize",this.onResize,this),e.off("beforeprint",this.storeScrollPosition,this),e.off("beforeexport",this.storeScrollPosition,this),e.off("afterprint",this.restoreScrollPosition,this),e.off("afterexport",this.restoreScrollPosition,this),e.off("render:done",this.onRenderDone,this),e.off("unfreeze",this.onUpdate,this),t.off("reseted",this.onUpdate,this),t.off("cell:added",this.onUpdate,this),t.off("cell:removed",this.onUpdate,this),t.off("cell:changed",this.onUpdate,this),t.off("batch:stop",this.onBatchStop,this),this.undelegateBackgroundEvents()}enableAutoResize(){this.options.autoResize=!0}disableAutoResize(){this.options.autoResize=!1}onUpdate(){!this.graph.isAsync()&&this.options.autoResize&&this.update()}onBatchStop(e){!this.graph.isAsync()&&this.options.autoResize&&nO.UPDATE_DELAYING_BATCHES.includes(e.name)&&this.update()}delegateBackgroundEvents(e){const t=e||PA.events;this.delegatedHandlers=Object.keys(t).reduce((e,n)=>{const i=t[n];if(-1===n.indexOf(" "))if("function"===typeof i)e[n]=i;else{let t=this.graph.view[i];"function"===typeof t&&(t=t.bind(this.graph.view),e[n]=t)}return e},{}),this.onBackgroundEvent=this.onBackgroundEvent.bind(this),Object.keys(this.delegatedHandlers).forEach(e=>{this.delegateEvent(e,{guarded:!1},this.onBackgroundEvent)})}undelegateBackgroundEvents(){Object.keys(this.delegatedHandlers).forEach(e=>{this.undelegateEvent(e,this.onBackgroundEvent)})}onBackgroundEvent(e){let t=!1;const n=e.target;if(this.options.pageVisible)t=this.options.background?this.background===n:this.content===n;else{const e=this.graph.view;t=e.background===n||e.grid===n}if(t){const t=this.delegatedHandlers[e.type];"function"===typeof t&&t.apply(this.graph,arguments)}}onRenderDone({stats:e}){this.options.autoResize&&e.priority<2&&this.update()}onResize(){this.cachedCenterPoint&&(this.centerPoint(this.cachedCenterPoint.x,this.cachedCenterPoint.y),this.updatePageBreak())}onScale({sx:e,sy:t,ox:n,oy:i}){this.updateScale(e,t),(n||i)&&(this.centerPoint(n,i),this.updatePageBreak());const r=this.options.autoResizeOptions||this.options.fitTocontentOptions;"function"===typeof r&&this.update()}storeScrollPosition(){this.cachedScrollLeft=this.container.scrollLeft,this.cachedScrollTop=this.container.scrollTop}restoreScrollPosition(){this.container.scrollLeft=this.cachedScrollLeft,this.container.scrollTop=this.cachedScrollTop,this.cachedScrollLeft=null,this.cachedScrollTop=null}storeClientSize(){this.cachedClientSize={width:this.container.clientWidth,height:this.container.clientHeight}}restoreClientSize(){this.cachedClientSize=null}beforeManipulation(){(O.IS_IE||O.IS_EDGE)&&this.$container.css("visibility","hidden")}afterManipulation(){(O.IS_IE||O.IS_EDGE)&&this.$container.css("visibility","visible")}updatePageSize(e,t){null!=e&&(this.options.pageWidth=e),null!=t&&(this.options.pageHeight=t),this.updatePageBreak()}updatePageBreak(){if(this.pageBreak&&this.pageBreak.parentNode&&this.pageBreak.parentNode.removeChild(this.pageBreak),this.pageBreak=null,this.options.pageVisible&&this.options.pageBreak){const e=this.graph.options.width,t=this.graph.options.height,n=this.options.pageWidth*this.sx,i=this.options.pageHeight*this.sy;if(e>n||t>i){let r=!1;const o=document.createElement("div");for(let t=1,i=Math.floor(e/n);t").addClass(this.prefixClassName("graph-pagebreak-vertical")).css({left:t*n}).appendTo(o),r=!0;for(let e=1,n=Math.floor(t/i);e").addClass(this.prefixClassName("graph-pagebreak-horizontal")).css({top:e*i}).appendTo(o),r=!0;r&&(c.addClass(o,this.prefixClassName("graph-pagebreak")),this.$(this.graph.view.grid).after(o),this.pageBreak=o)}}}update(){const e=this.getClientSize();this.cachedCenterPoint=this.clientToLocalPoint(e.width/2,e.height/2);let t=this.options.autoResizeOptions||this.options.fitTocontentOptions;"function"===typeof t&&(t=s.call(t,this,this));const n=Object.assign({gridWidth:this.options.pageWidth,gridHeight:this.options.pageHeight,allowNewOrigin:"negative"},t);this.graph.fitToContent(this.getFitToContentOptions(n))}getFitToContentOptions(e){const t=this.sx,n=this.sy;return e.gridWidth&&(e.gridWidth*=t),e.gridHeight&&(e.gridHeight*=n),e.minWidth&&(e.minWidth*=t),e.minHeight&&(e.minHeight*=n),"object"===typeof e.padding?e.padding={left:(e.padding.left||0)*t,right:(e.padding.right||0)*t,top:(e.padding.top||0)*n,bottom:(e.padding.bottom||0)*n}:"number"===typeof e.padding&&(e.padding*=t),e}updateScale(e,t){const n=this.graph.options,i=e/this.sx,r=t/this.sy;this.sx=e,this.sy=t,this.graph.translate(n.x*i,n.y*r),this.graph.resizeGraph(n.width*i,n.height*r)}scrollbarPosition(e,t,n){if(null==e&&null==t)return{left:this.container.scrollLeft,top:this.container.scrollTop};const i={};return"number"===typeof e&&(i.scrollLeft=e),"number"===typeof t&&(i.scrollTop=t),n&&n.animation?this.$container.animate(i,n.animation):this.$container.prop(i),this}scrollToPoint(e,t,n){const i=this.getClientSize(),r=this.graph.matrix(),o={};return"number"===typeof e&&(o.scrollLeft=e-i.width/2+r.e+(this.padding.left||0)),"number"===typeof t&&(o.scrollTop=t-i.height/2+r.f+(this.padding.top||0)),n&&n.animation?this.$container.animate(o,n.animation):this.$container.prop(o),this}scrollToContent(e){const t=this.sx,n=this.sy,i=this.graph.getContentArea().getCenter();return this.scrollToPoint(i.x*t,i.y*n,e)}scrollToCell(e,t){const n=this.sx,i=this.sy,r=e.getBBox().getCenter();return this.scrollToPoint(r.x*n,r.y*i,t)}center(e){return this.centerPoint(e)}centerPoint(e,t,n){const i=this.graph.matrix(),r=i.a,o=i.d,a=-i.e,s=-i.f,l=a+this.graph.options.width,c=s+this.graph.options.height;let u;if(this.storeClientSize(),"number"===typeof e||"number"===typeof t){u=n;const i=this.getVisibleArea().getCenter();"number"===typeof e?e*=r:e=i.x,"number"===typeof t?t*=o:t=i.y}else u=e,e=(a+l)/2,t=(s+c)/2;if(u&&u.padding)return this.positionPoint({x:e,y:t},"50%","50%",u);const d=this.getPadding(),h=this.getClientSize(),p=h.width/2,f=h.height/2,g=p-d.left-e+a,m=p-d.right+e-l,v=f-d.top-t+s,_=f-d.bottom+t-c;this.addPadding(Math.max(g,0),Math.max(m,0),Math.max(v,0),Math.max(_,0));const y=this.scrollToPoint(e,t,u||void 0);return this.restoreClientSize(),y}centerContent(e){return this.positionContent("center",e)}centerCell(e,t){return this.positionCell(e,"center",t)}positionContent(e,t){const n=this.graph.getContentArea(t);return this.positionRect(n,e,t)}positionCell(e,t,n){const i=e.getBBox();return this.positionRect(i,t,n)}positionRect(e,t,n){const i=wy.create(e);switch(t){case"center":return this.positionPoint(i.getCenter(),"50%","50%",n);case"top":return this.positionPoint(i.getTopCenter(),"50%",0,n);case"top-right":return this.positionPoint(i.getTopRight(),"100%",0,n);case"right":return this.positionPoint(i.getRightMiddle(),"100%","50%",n);case"bottom-right":return this.positionPoint(i.getBottomRight(),"100%","100%",n);case"bottom":return this.positionPoint(i.getBottomCenter(),"50%","100%",n);case"bottom-left":return this.positionPoint(i.getBottomLeft(),0,"100%",n);case"left":return this.positionPoint(i.getLeftMiddle(),0,"50%",n);case"top-left":return this.positionPoint(i.getTopLeft(),0,0,n);default:return this}}positionPoint(e,t,n,i={}){const{padding:r}=i,o=sO(i,["padding"]),s=a.normalizeSides(r),l=wy.fromSize(this.getClientSize()),c=l.clone().moveAndExpand({x:s.left,y:s.top,width:-s.right-s.left,height:-s.top-s.bottom});t=a.normalizePercentage(t,Math.max(0,c.width)),t<0&&(t=c.width+t),n=a.normalizePercentage(n,Math.max(0,c.height)),n<0&&(n=c.height+n);const u=c.getTopLeft().translate(t,n),d=l.getCenter().diff(u),h=this.zoom(),p=d.scale(1/h,1/h),f=xy.create(e).translate(p);return this.centerPoint(f.x,f.y,o)}zoom(e,t){if(null==e)return this.sx;let n,i;t=t||{};const r=this.getClientSize(),o=this.clientToLocalPoint(r.width/2,r.height/2);let a=e,s=e;if(t.absolute||(a+=this.sx,s+=this.sy),t.scaleGrid&&(a=Math.round(a/t.scaleGrid)*t.scaleGrid,s=Math.round(s/t.scaleGrid)*t.scaleGrid),t.maxScale&&(a=Math.min(t.maxScale,a),s=Math.min(t.maxScale,s)),t.minScale&&(a=Math.max(t.minScale,a),s=Math.max(t.minScale,s)),a=this.graph.transform.clampScale(a),s=this.graph.transform.clampScale(s),t.center){const e=a/this.sx,r=s/this.sy;n=t.center.x-(t.center.x-o.x)/e,i=t.center.y-(t.center.y-o.y)/r}else n=o.x,i=o.y;return this.beforeManipulation(),this.graph.transform.scale(a,s),this.centerPoint(n,i),this.afterManipulation(),this}zoomToRect(e,t={}){const n=wy.create(e),i=this.graph;t.contentArea=n,null==t.viewportArea&&(t.viewportArea={x:i.options.x,y:i.options.y,width:this.$container.width(),height:this.$container.height()}),this.beforeManipulation(),i.transform.scaleContentToFitImpl(t,!1);const r=n.getCenter();return this.centerPoint(r.x,r.y),this.afterManipulation(),this}zoomToFit(e={}){return this.zoomToRect(this.graph.getContentArea(e),e)}transitionToPoint(e,t,n){let i,r;"object"===typeof e?(n=t,t=e.y,e=e.x):t=t,null==n&&(n={});const o=this.sx,a=Math.max(n.scale||o,1e-6),l=this.getClientSize(),c=new xy(e,t),u=this.clientToLocalPoint(l.width/2,l.height/2);if(o===a){const e=u.diff(c).scale(o,o).round();i=`translate(${e.x}px,${e.y}px)`}else{const e=a/(o-a)*c.distance(u),t=u.clone().move(c,e),n=this.localToBackgroundPoint(t).round();i=`scale(${a/o})`,r=`${n.x}px ${n.y}px`}const d=n.onTransitionEnd;return this.$container.addClass(oO.transitionClassName),this.$content.off(oO.transitionEventName).on(oO.transitionEventName,n=>{this.syncTransition(a,{x:e,y:t}),"function"===typeof d&&s.call(d,this,n.originalEvent)}).css({transform:i,transformOrigin:r,transition:"transform",transitionDuration:n.duration||"1s",transitionDelay:n.delay,transitionTimingFunction:n.timing}),this}syncTransition(e,t){return this.beforeManipulation(),this.graph.scale(e),this.removeTransition(),this.centerPoint(t.x,t.y),this.afterManipulation(),this}removeTransition(){return this.$container.removeClass(oO.transitionClassName),this.$content.off(oO.transitionEventName).css({transform:"",transformOrigin:"",transition:"",transitionDuration:"",transitionDelay:"",transitionTimingFunction:""}),this}transitionToRect(e,t={}){const n=wy.create(e),i=t.maxScale||1/0,r=t.minScale||Number.MIN_VALUE,o=t.scaleGrid||null,a=t.visibility||1,s=t.center?xy.create(t.center):n.getCenter(),l=this.getClientSize(),c=l.width*a,u=l.height*a;let d=new wy(s.x-c/2,s.y-u/2,c,u).getMaxUniformScaleToFit(n,s);return d=Math.min(d,i),o&&(d=Math.floor(d/o)*o),d=Math.max(r,d),this.transitionToPoint(s,Object.assign({scale:d},t))}startPanning(e){const t=this.normalizeEvent(e);this.clientX=t.clientX,this.clientY=t.clientY,this.trigger("pan:start",{e:t}),this.$(document.body).on({"mousemove.panning touchmove.panning":this.pan.bind(this),"mouseup.panning touchend.panning":this.stopPanning.bind(this)}),this.$(window).on("mouseup.panning",this.stopPanning.bind(this))}pan(e){const t=this.normalizeEvent(e),n=t.clientX-this.clientX,i=t.clientY-this.clientY;this.container.scrollTop-=i,this.container.scrollLeft-=n,this.clientX=t.clientX,this.clientY=t.clientY,this.trigger("panning",{e:t})}stopPanning(e){this.$(document.body).off(".panning"),this.$(window).off(".panning"),this.trigger("pan:stop",{e:e})}clientToLocalPoint(e,t){let n="object"===typeof e?e.x:e,i="object"===typeof e?e.y:t;const r=this.graph.matrix();return n+=this.container.scrollLeft-this.padding.left-r.e,i+=this.container.scrollTop-this.padding.top-r.f,new xy(n/r.a,i/r.d)}localToBackgroundPoint(e,t){const n="object"===typeof e?xy.create(e):new xy(e,t),i=this.graph.matrix(),r=this.padding;return c.transformPoint(n,i).translate(r.left,r.top)}resize(e,t){let n=null!=e?e:this.container.clientWidth,i=null!=t?t:this.container.clientHeight;"number"===typeof n&&(n=Math.round(n)),"number"===typeof i&&(i=Math.round(i)),this.options.width=n,this.options.height=i,this.$container.css({width:n,height:i}),this.update()}getClientSize(){return this.cachedClientSize?this.cachedClientSize:{width:this.container.clientWidth,height:this.container.clientHeight}}autoScroll(e,t){const n=10,i=this.container,r=i.getBoundingClientRect();let o=0,a=0;return e<=r.left+n&&(o=-n),t<=r.top+n&&(a=-n),e>=r.right-n&&(o=n),t>=r.bottom-n&&(a=n),0!==o&&(i.scrollLeft+=o),0!==a&&(i.scrollTop+=a),{scrollerX:o,scrollerY:a}}addPadding(e,t,n,i){let r=this.getPadding();this.padding={left:Math.round(r.left+(e||0)),top:Math.round(r.top+(n||0)),bottom:Math.round(r.bottom+(i||0)),right:Math.round(r.right+(t||0))},r=this.padding,this.$content.css({width:r.left+this.graph.options.width+r.right,height:r.top+this.graph.options.height+r.bottom});const o=this.graph.container;return o.style.left=`${this.padding.left}px`,o.style.top=`${this.padding.top}px`,this}getPadding(){const e=this.options.padding;return"function"===typeof e?a.normalizeSides(s.call(e,this,this)):a.normalizeSides(e)}getVisibleArea(){const e=this.graph.matrix(),t=this.getClientSize(),n={x:this.container.scrollLeft||0,y:this.container.scrollTop||0,width:t.width,height:t.height},i=c.transformRectangle(n,e.inverse());return i.x-=(this.padding.left||0)/this.sx,i.y-=(this.padding.top||0)/this.sy,i}isCellVisible(e,t={}){const n=e.getBBox(),i=this.getVisibleArea();return t.strict?i.containsRect(n):i.isIntersectWithRect(n)}isPointVisible(e){return this.getVisibleArea().containsPoint(e)}lock(){return this.$container.css("overflow","hidden"),this}unlock(){return this.$container.css("overflow","scroll"),this}onRemove(){this.stopListening()}dispose(){this.$(this.graph.container).insertBefore(this.$container),this.remove()}}function cO(e,t,n,i={}){if(n){const r=n.graph,o=r.view.normalizeEvent(t),a=r.snapToGrid(o.clientX,o.clientY);n.notify(e,Object.assign({e:o,view:n,node:n.cell,cell:n.cell,x:a.x,y:a.y},i))}}aO([Ex.dispose()],lO.prototype,"dispose",null),function(e){class t extends rO{constructor(e){super(e.graph),this.scroller=e,e.options.background&&this.draw(e.options.background)}get elem(){return this.scroller.background}init(){this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this)}updateBackgroundOptions(e){this.scroller.options.background=e}}e.Background=t}(lO||(lO={})),function(e){function t(t){const n=r.merge({},e.defaultOptions,t);return null==n.pageWidth&&(n.pageWidth=t.graph.options.width),null==n.pageHeight&&(n.pageHeight=t.graph.options.height),n}e.containerClass="graph-scroller",e.panningClass=`${e.containerClass}-panning`,e.pannableClass=`${e.containerClass}-pannable`,e.pagedClass=`${e.containerClass}-paged`,e.contentClass=`${e.containerClass}-content`,e.backgroundClass=`${e.containerClass}-background`,e.transitionClassName="transition-in-progress",e.transitionEventName="transitionend.graph-scroller-transition",e.defaultOptions={padding(){const e=this.getClientSize(),t=Math.max(this.options.minVisibleWidth||0,1)||1,n=Math.max(this.options.minVisibleHeight||0,1)||1,i=Math.max(e.width-t,0),r=Math.max(e.height-n,0);return{left:i,top:r,right:i,bottom:r}},minVisibleWidth:50,minVisibleHeight:50,pageVisible:!1,pageBreak:!1,autoResize:!0},e.getOptions=t}(oO||(oO={}));var uO,dO,hO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class pO extends Ex{constructor(e){super(),this.options=r.merge({},uO.defaultOptions,e),this.options.model&&(this.options.collection=this.options.model.collection),this.options.collection?this.collection=this.options.collection:(this.collection=new vA([],{comparator:uO.depthComparator}),this.options.collection=this.collection),this.boxCount=0,this.createContainer(),this.initHandles(),this.startListening()}get graph(){return this.options.graph}get boxClassName(){return this.prefixClassName(uO.classNames.box)}get $boxes(){return this.$container.children(`.${this.boxClassName}`)}get handleOptions(){return this.options}startListening(){const e=this.graph,t=this.collection;this.delegateEvents({[`mousedown .${this.boxClassName}`]:"onSelectionBoxMouseDown",[`touchstart .${this.boxClassName}`]:"onSelectionBoxMouseDown"},!0),e.on("scale",this.onGraphTransformed,this),e.on("translate",this.onGraphTransformed,this),e.model.on("updated",this.onModelUpdated,this),t.on("added",this.onCellAdded,this),t.on("removed",this.onCellRemoved,this),t.on("reseted",this.onReseted,this),t.on("updated",this.onCollectionUpdated,this),t.on("node:change:position",this.onNodePositionChanged,this),t.on("cell:changed",this.onCellChanged,this)}stopListening(){const e=this.graph,t=this.collection;this.undelegateEvents(),e.off("scale",this.onGraphTransformed,this),e.off("translate",this.onGraphTransformed,this),e.model.off("updated",this.onModelUpdated,this),t.off("added",this.onCellAdded,this),t.off("removed",this.onCellRemoved,this),t.off("reseted",this.onReseted,this),t.off("updated",this.onCollectionUpdated,this),t.off("node:change:position",this.onNodePositionChanged,this),t.off("cell:changed",this.onCellChanged,this)}onRemove(){this.stopListening()}onGraphTransformed(){this.updateSelectionBoxes({async:!1})}onCellChanged(){this.updateSelectionBoxes()}onNodePositionChanged({node:e,options:t}){const n=(!0!==this.options.showNodeSelectionBox||"none"===this.options.pointerEvents)&&!this.translating&&!t.selection&&t.ui;if(n){this.translating=!0;const n=e.position(),i=e.previous("position"),r=n.x-i.x,o=n.y-i.y;0===r&&0===o||this.translateSelectedNodes(r,o,e,t),this.translating=!1}}onModelUpdated({removed:e}){e&&e.length&&this.unselect(e)}isEmpty(){return this.length<=0}isSelected(e){return this.collection.has(e)}get length(){return this.collection.length}get cells(){return this.collection.toArray()}select(e,t={}){t.dryrun=!0;const n=this.filter(Array.isArray(e)?e:[e]);return this.collection.add(n,t),this}unselect(e,t={}){return t.dryrun=!0,this.collection.remove(Array.isArray(e)?e:[e],t),this}reset(e,t={}){if(e){const n=this.cells,i=this.filter(Array.isArray(e)?e:[e]),r={},o={};n.forEach(e=>r[e.id]=e),i.forEach(e=>o[e.id]=e);const a=[],s=[];return i.forEach(e=>{r[e.id]||a.push(e)}),n.forEach(e=>{o[e.id]||s.push(e)}),s.length&&this.unselect(s,Object.assign(Object.assign({},t),{ui:!0})),a.length&&this.select(a,Object.assign(Object.assign({},t),{ui:!0})),0===s.length&&0===a.length&&this.updateContainer(),this}return this.clean(t)}clean(e={}){return this.length&&this.collection.reset([],Object.assign(Object.assign({},e),{ui:!0})),this}setFilter(e){this.options.filter=e}setContent(e){this.options.content=e}startSelecting(e){let t,n;e=this.normalizeEvent(e),this.clean();const i=this.graph.container;if(null!=e.offsetX&&null!=e.offsetY&&i.contains(e.target))t=e.offsetX,n=e.offsetY;else{const r=this.$(i).offset(),o=i.scrollLeft,a=i.scrollTop;t=e.clientX-r.left+window.pageXOffset+o,n=e.clientY-r.top+window.pageYOffset+a}this.$container.css({top:n,left:t,width:1,height:1}),this.setEventData(e,{action:"selecting",clientX:e.clientX,clientY:e.clientY,offsetX:t,offsetY:n,scrollerX:0,scrollerY:0}),this.delegateDocumentEvents(uO.documentEvents,e.data)}filter(e){const t=this.options.filter;return Array.isArray(t)?e.filter(e=>!t.includes(e)&&!t.includes(e.shape)):"function"===typeof t?e.filter(e=>s.call(t,this.graph,e)):e}stopSelecting(e){const t=this.graph,n=this.getEventData(e),i=n.action;switch(i){case"selecting":{let e=this.$container.width(),n=this.$container.height();const i=this.$container.offset(),r=t.pageToLocal(i.left,i.top),o=t.transform.getScale();e/=o.sx,n/=o.sy;const a=new wy(r.x,r.y,e,n),s=this.getCellViewsInArea(a).map(e=>e.cell);this.reset(s),this.hideRubberband();break}case"translating":{const i=t.snapToGrid(e.clientX,e.clientY);if(!this.options.following){const e=n;this.updateSelectedNodesPosition({dx:e.clientX-e.originX,dy:e.clientY-e.originY})}this.graph.model.stopBatch("move-selection"),this.notifyBoxEvent("box:mouseup",e,i.x,i.y);break}default:this.clean();break}}onMouseUp(e){const t=this.getEventData(e).action;t&&(this.stopSelecting(e),this.undelegateDocumentEvents())}onSelectionBoxMouseDown(e){e.stopPropagation();const t=this.normalizeEvent(e);this.options.movable&&this.startTranslating(t);const n=this.getCellViewFromElem(t.target);this.setEventData(t,{activeView:n});const i=this.graph.snapToGrid(t.clientX,t.clientY);this.notifyBoxEvent("box:mousedown",t,i.x,i.y),this.delegateDocumentEvents(uO.documentEvents,t.data)}startTranslating(e){this.graph.model.startBatch("move-selection");const t=this.graph.snapToGrid(e.clientX,e.clientY);this.setEventData(e,{action:"translating",clientX:t.x,clientY:t.y,originX:t.x,originY:t.y})}getSelectionOffset(e,t){let n=e.x-t.clientX,i=e.y-t.clientY;const r=this.graph.hook.getRestrictArea();if(r){const o=this.collection.toArray(),a=XT.getCellsBBox(o,{deep:!0})||wy.create(),s=r.x-a.x,l=r.y-a.y,c=r.x+r.width-(a.x+a.width),u=r.y+r.height-(a.y+a.height);if(n=c?0:n,i=o<=l||o>=u?0:i}}return{dx:n,dy:i}}updateSelectedNodesPosition(e){const{dx:t,dy:n}=e;if(t||n)if(this.translateSelectedNodes(t,n),this.boxesUpdated)this.collection.length>1&&this.updateSelectionBoxes();else{const e=this.graph.transform.getScale();this.$boxes.add(this.$selectionContainer).css({left:`+=${t*e.sx}`,top:`+=${n*e.sy}`})}}autoScrollGraph(e,t){const n=this.graph.scroller.widget;return n?n.autoScroll(e,t):{scrollerX:0,scrollerY:0}}adjustSelection(e){const t=this.normalizeEvent(e),n=this.getEventData(t),i=n.action;switch(i){case"selecting":{const e=n;!0!==e.moving&&(this.$container.appendTo(this.graph.container),this.showRubberband(),e.moving=!0);const{scrollerX:i,scrollerY:r}=this.autoScrollGraph(t.clientX,t.clientY);e.scrollerX+=i,e.scrollerY+=r;const o=t.clientX-e.clientX+e.scrollerX,a=t.clientY-e.clientY+e.scrollerY,s=parseInt(this.$container.css("left"),10),l=parseInt(this.$container.css("top"),10);this.$container.css({left:o<0?e.offsetX+o:s,top:a<0?e.offsetY+a:l,width:Math.abs(o),height:Math.abs(a)});break}case"translating":{const i=this.graph.snapToGrid(t.clientX,t.clientY),r=n,o=this.getSelectionOffset(i,r);this.options.following?this.updateSelectedNodesPosition(o):this.updateContainerPosition(o),o.dx&&(r.clientX=i.x),o.dy&&(r.clientY=i.y),this.notifyBoxEvent("box:mousemove",e,i.x,i.y);break}default:break}this.boxesUpdated=!1}translateSelectedNodes(e,t,n,i){const r={},o=[];if(this.collection.toArray().forEach(e=>{e.getDescendants({deep:!0}).forEach(e=>{r[e.id]=!0})}),i&&i.translateBy){const e=this.graph.getCellById(i.translateBy);e&&(r[e.id]=!0,e.getDescendants({deep:!0}).forEach(e=>{r[e.id]=!0}),o.push(e))}this.collection.toArray().forEach(n=>{if(!r[n.id]){const a=Object.assign(Object.assign({},i),{selection:this.cid,exclude:o});n.translate(e,t,a),this.graph.model.getConnectedEdges(n).forEach(n=>{r[n.id]||(n.translate(e,t,a),r[n.id]=!0)})}})}getCellViewsInArea(e){const t=this.graph,n={strict:this.options.strict};let i=[];return this.options.rubberNode&&(i=this.options.useCellGeometry?i.concat(t.model.getNodesInArea(e,n).map(e=>t.renderer.findViewByCell(e)).filter(e=>null!=e)):i.concat(t.renderer.findViewsInArea(e,n))),this.options.rubberEdge&&(i=this.options.useCellGeometry?i.concat(t.model.getEdgesInArea(e,n).map(e=>t.renderer.findViewByCell(e)).filter(e=>null!=e)):i.concat(t.renderer.findEdgeViewsInArea(e,n))),i}notifyBoxEvent(e,t,n,i){const r=this.getEventData(t),o=r.activeView;this.trigger(e,{e:t,view:o,x:n,y:i,cell:o.cell})}getSelectedClassName(e){return this.prefixClassName(`${e.isNode()?"node":"edge"}-selected`)}addCellSelectedClassName(e){const t=this.graph.renderer.findViewByCell(e);t&&t.addClass(this.getSelectedClassName(e))}removeCellUnSelectedClassName(e){const t=this.graph.renderer.findViewByCell(e);t&&t.removeClass(this.getSelectedClassName(e))}destroySelectionBox(e){this.removeCellUnSelectedClassName(e),this.canShowSelectionBox(e)&&(this.$container.find(`[data-cell-id="${e.id}"]`).remove(),0===this.$boxes.length&&this.hide(),this.boxCount=Math.max(0,this.boxCount-1))}destroyAllSelectionBoxes(e){e.forEach(e=>this.removeCellUnSelectedClassName(e)),this.hide(),this.$boxes.remove(),this.boxCount=0}hide(){this.$container.removeClass(this.prefixClassName(uO.classNames.rubberband)).removeClass(this.prefixClassName(uO.classNames.selected))}showRubberband(){this.$container.addClass(this.prefixClassName(uO.classNames.rubberband))}hideRubberband(){this.$container.removeClass(this.prefixClassName(uO.classNames.rubberband))}showSelected(){this.$container.removeAttr("style").addClass(this.prefixClassName(uO.classNames.selected))}createContainer(){this.container=document.createElement("div"),this.$container=this.$(this.container),this.$container.addClass(this.prefixClassName(uO.classNames.root)),this.options.className&&this.$container.addClass(this.options.className),this.$selectionContainer=this.$("
").addClass(this.prefixClassName(uO.classNames.inner)),this.$selectionContent=this.$("
").addClass(this.prefixClassName(uO.classNames.content)),this.$selectionContainer.append(this.$selectionContent),this.$selectionContainer.attr("data-selection-length",this.collection.length),this.$container.prepend(this.$selectionContainer),this.$handleContainer=this.$selectionContainer}updateContainerPosition(e){(e.dx||e.dy)&&this.$selectionContainer.css({left:`+=${e.dx}`,top:`+=${e.dy}`})}updateContainer(){const e={x:1/0,y:1/0},t={x:0,y:0},n=this.collection.toArray().filter(e=>this.canShowSelectionBox(e));n.forEach(n=>{const i=this.graph.renderer.findViewByCell(n);if(i){const n=i.getBBox({useCellGeometry:this.options.useCellGeometry});e.x=Math.min(e.x,n.x),e.y=Math.min(e.y,n.y),t.x=Math.max(t.x,n.x+n.width),t.y=Math.max(t.y,n.y+n.height)}}),this.$selectionContainer.css({position:"absolute",pointerEvents:"none",left:e.x,top:e.y,width:t.x-e.x,height:t.y-e.y}).attr("data-selection-length",this.collection.length);const i=this.options.content;if(i)if("function"===typeof i){const e=s.call(i,this.graph,this,this.$selectionContent[0]);e&&this.$selectionContent.html(e)}else this.$selectionContent.html(i);this.collection.length>0&&!this.container.parentNode?this.$container.appendTo(this.graph.container):this.collection.length<=0&&this.container.parentNode&&this.container.parentNode.removeChild(this.container)}canShowSelectionBox(e){return e.isNode()&&!0===this.options.showNodeSelectionBox||e.isEdge()&&!0===this.options.showEdgeSelectionBox}createSelectionBox(e){if(this.addCellSelectedClassName(e),this.canShowSelectionBox(e)){const t=this.graph.renderer.findViewByCell(e);if(t){const n=t.getBBox({useCellGeometry:this.options.useCellGeometry}),i=this.boxClassName;this.$("
").addClass(i).addClass(`${i}-${e.isNode()?"node":"edge"}`).attr("data-cell-id",e.id).css({position:"absolute",left:n.x,top:n.y,width:n.width,height:n.height,pointerEvents:this.options.pointerEvents||"auto"}).appendTo(this.container),this.showSelected(),this.boxCount+=1}}}updateSelectionBoxes(e={}){this.collection.length>0&&(this.boxesUpdated=!0,this.graph.renderer.requestViewUpdate(this,1,2,e))}confirmUpdate(){return this.boxCount&&(this.hide(),this.$boxes.each((e,t)=>{const n=this.$(t).remove().attr("data-cell-id"),i=this.collection.get(n);i&&this.createSelectionBox(i)}),this.updateContainer()),0}getCellViewFromElem(e){const t=e.getAttribute("data-cell-id");if(t){const e=this.collection.get(t);if(e)return this.graph.renderer.findViewByCell(e)}return null}onCellRemoved({cell:e}){this.destroySelectionBox(e),this.updateContainer()}onReseted({previous:e,current:t}){this.destroyAllSelectionBoxes(e),t.forEach(e=>{this.listenCellRemoveEvent(e),this.createSelectionBox(e)}),this.updateContainer()}onCellAdded({cell:e}){this.listenCellRemoveEvent(e),this.createSelectionBox(e),this.updateContainer()}listenCellRemoveEvent(e){e.off("removed",this.onCellRemoved,this),e.on("removed",this.onCellRemoved,this)}onCollectionUpdated({added:e,removed:t,options:n}){e.forEach(e=>{this.trigger("cell:selected",{cell:e,options:n}),this.graph.trigger("cell:selected",{cell:e,options:n}),e.isNode()?(this.trigger("node:selected",{cell:e,options:n,node:e}),this.graph.trigger("node:selected",{cell:e,options:n,node:e})):e.isEdge()&&(this.trigger("edge:selected",{cell:e,options:n,edge:e}),this.graph.trigger("edge:selected",{cell:e,options:n,edge:e}))}),t.forEach(e=>{this.trigger("cell:unselected",{cell:e,options:n}),this.graph.trigger("cell:unselected",{cell:e,options:n}),e.isNode()?(this.trigger("node:unselected",{cell:e,options:n,node:e}),this.graph.trigger("node:unselected",{cell:e,options:n,node:e})):e.isEdge()&&(this.trigger("edge:unselected",{cell:e,options:n,edge:e}),this.graph.trigger("edge:unselected",{cell:e,options:n,edge:e}))});const i={added:e,removed:t,options:n,selected:this.cells};this.trigger("selection:changed",i),this.graph.trigger("selection:changed",i)}deleteSelectedCells(){const e=this.collection.toArray();this.clean(),this.graph.model.removeCells(e,{selection:this.cid})}startRotate({e:e}){const t=this.collection.toArray(),n=XT.getCellsBBox(t).getCenter(),i=this.graph.snapToGrid(e.clientX,e.clientY),r=t.reduce((e,t)=>{return e[t.id]=my.normalize(t.getAngle()),e},{});this.setEventData(e,{center:n,angles:r,start:i.theta(n)})}doRotate({e:e}){const t=this.getEventData(e),n=this.graph.options.rotating.grid,i="function"===typeof n?s.call(n,this.graph,null):n,r=this.graph.snapToGrid(e.clientX,e.clientY),o=t.start-r.theta(t.center);t.rotated||(t.rotated=!0),Math.abs(o)>.001&&(this.collection.toArray().forEach(e=>{const n=yC.snapToGrid(t.angles[e.id]+o,i||15);e.rotate(n,{absolute:!0,center:t.center,selection:this.cid})}),this.updateSelectionBoxes())}stopRotate({e:e}){const t=this.getEventData(e);t.rotated&&(t.rotated=!1,this.collection.toArray().forEach(t=>{cO("node:rotated",e,this.graph.findViewByCell(t))}))}startResize({e:e}){const t=this.graph.getGridSize(),n=this.collection.toArray(),i=XT.getCellsBBox(n),r=n.map(e=>e.getBBox()),o=r.reduce((e,t)=>{return t.width{return t.height.001||Math.abs(a-l)>.001)&&(this.graph.model.resizeCells(s,l,i.cells,{selection:this.cid}),r.width=s,r.height=l,this.updateSelectionBoxes())}stopResize({e:e}){const t=this.eventData(e);t.resized&&(t.resized=!1,this.collection.toArray().forEach(t=>{cO("node:resized",e,this.graph.findViewByCell(t))}))}dispose(){this.clean(),this.remove()}}hO([Ex.dispose()],pO.prototype,"dispose",null),r.applyMixins(pO,UA),function(e){const t="widget-selection";function n(e){return e.getAncestors().length}e.classNames={root:t,inner:`${t}-inner`,box:`${t}-box`,content:`${t}-content`,rubberband:`${t}-rubberband`,selected:`${t}-selected`},e.documentEvents={mousemove:"adjustSelection",touchmove:"adjustSelection",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"},e.defaultOptions={movable:!0,following:!0,strict:!1,useCellGeometry:!1,content(e){return o.template('<%= length %> node<%= length > 1 ? "s":"" %> selected.')({length:e.length})},handles:[{name:"remove",position:"nw",events:{mousedown:"deleteSelectedCells"}},{name:"rotate",position:"sw",events:{mousedown:"startRotate",mousemove:"doRotate",mouseup:"stopRotate"}},{name:"resize",position:"se",events:{mousedown:"startResize",mousemove:"doResize",mouseup:"stopResize"}}]},e.depthComparator=n}(uO||(uO={}));class fO extends WA{get node(){return this.cell}get containerClassName(){return this.prefixClassName("widget-transform")}get resizeClassName(){return`${this.containerClassName}-resize`}get rotateClassName(){return`${this.containerClassName}-rotate`}init(e){this.options=Object.assign(Object.assign({},dO.defaultOptions),e),this.render(),this.startListening()}startListening(){this.delegateEvents({[`mousedown .${this.resizeClassName}`]:"startResizing",[`touchstart .${this.resizeClassName}`]:"startResizing",[`mousedown .${this.rotateClassName}`]:"startRotating",[`touchstart .${this.rotateClassName}`]:"startRotating"}),this.model.on("*",this.update,this),this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this),this.node.on("removed",this.remove,this),this.model.on("reseted",this.remove,this),this.view.on("cell:knob:mousedown",this.onKnobMouseDown,this),this.view.on("cell:knob:mouseup",this.onKnobMouseUp,this),super.startListening()}stopListening(){this.undelegateEvents(),this.model.off("*",this.update,this),this.graph.off("scale",this.update,this),this.graph.off("translate",this.update,this),this.node.off("removed",this.remove,this),this.model.off("reseted",this.remove,this),this.view.off("cell:knob:mousedown",this.onKnobMouseDown,this),this.view.off("cell:knob:mouseup",this.onKnobMouseUp,this),super.stopListening()}renderHandles(){this.container=document.createElement("div"),this.$container=this.$(this.container);const e=this.$("
").prop("draggable",!1),t=e.clone().addClass(this.rotateClassName),n=dO.POSITIONS.map(t=>{return e.clone().addClass(this.resizeClassName).attr("data-position",t)});this.empty(),this.$container.append(n,t)}render(){return this.renderHandles(),this.view.addClass(dO.NODE_CLS),this.$container.addClass(this.containerClassName).toggleClass("no-orth-resize",this.options.preserveAspectRatio||!this.options.orthogonalResizing).toggleClass("no-resize",!this.options.resizable).toggleClass("no-rotate",!this.options.rotatable),this.options.className&&this.$container.addClass(this.options.className),this.graph.container.appendChild(this.container),this.update()}update(){const e=this.graph.matrix(),t=this.node.getBBox();t.x*=e.a,t.x+=e.e,t.y*=e.d,t.y+=e.f,t.width*=e.a,t.height*=e.d;const n=my.normalize(this.node.getAngle()),i=0!==n?`rotate(${n}deg)`:"";return this.$container.css({transform:i,width:t.width,height:t.height,left:t.x,top:t.y}),this.updateResizerDirections(),this}remove(){return this.view.removeClass(dO.NODE_CLS),super.remove()}onKnobMouseDown(){this.startHandle()}onKnobMouseUp(){this.stopHandle()}updateResizerDirections(){const e=my.normalize(this.node.getAngle()),t=Math.floor(e*(dO.DIRECTIONS.length/360));if(t!==this.prevShift){const e=dO.DIRECTIONS.slice(t).concat(dO.DIRECTIONS.slice(0,t)),n=e=>`${this.containerClassName}-cursor-${e}`;this.$container.find(`.${this.resizeClassName}`).removeClass(dO.DIRECTIONS.map(e=>n(e)).join(" ")).each((t,i)=>{this.$(i).addClass(n(e[t]))}),this.prevShift=t}}getTrueDirection(e){const t=my.normalize(this.node.getAngle());let n=dO.POSITIONS.indexOf(e);return n+=Math.floor(t*(dO.POSITIONS.length/360)),n%=dO.POSITIONS.length,dO.POSITIONS[n]}toValidResizeDirection(e){return{top:"top-left",bottom:"bottom-right",left:"bottom-left",right:"top-right"}[e]||e}startResizing(e){e.stopPropagation(),this.model.startBatch("resize",{cid:this.cid});const t=this.$(e.target).attr("data-position"),n=this.graph.findViewByCell(this.node);this.prepareResizing(e,t),this.startAction(e),cO("node:resize:mousedown",e,n)}prepareResizing(e,t){const n=this.getTrueDirection(t);let i=0,r=0;t.split("-").forEach(e=>{i={left:-1,right:1}[e]||i,r={top:-1,bottom:1}[e]||r});const o=this.toValidResizeDirection(t),a={"top-right":"bottomLeft","top-left":"bottomRight","bottom-left":"topRight","bottom-right":"topLeft"}[o],s=my.normalize(this.node.getAngle());this.setEventData(e,{selector:a,direction:o,trueDirection:n,relativeDirection:t,angle:s,resizeX:i,resizeY:r,action:"resizing"})}startRotating(e){e.stopPropagation(),this.model.startBatch("rotate",{cid:this.cid});const t=this.graph.findViewByCell(this.node),n=this.node.getBBox().getCenter(),i=this.graph.snapToGrid(e.clientX,e.clientY);this.setEventData(e,{center:n,action:"rotating",angle:my.normalize(this.node.getAngle()),start:xy.create(i).theta(n)}),this.startAction(e),cO("node:rotate:mousedown",e,t)}onMouseMove(e){const t=this.graph.findViewByCell(this.node);let n=this.getEventData(e);if(n.action){const i=this.normalizeEvent(e);let r=i.clientX,o=i.clientY;const s=this.graph.scroller.widget,l=this.options.restrictedResizing;if(!0===l||"number"===typeof l){const e=!0===l?0:l,t=s?Math.max(e,8):e,n=this.graph.container.getBoundingClientRect();r=a.clamp(r,n.left+t,n.right-t),o=a.clamp(o,n.top+t,n.bottom-t)}else this.options.autoScrollOnResizing&&s&&s.autoScroll(r,o);const c=this.graph.snapToGrid(r,o),u=this.graph.getGridSize(),d=this.node,h=this.options;if("resizing"===n.action){n=n,n.resized||(t&&(t.addClass("node-resizing"),cO("node:resize",e,t)),n.resized=!0);const i=d.getBBox(),r=xy.create(c).rotate(n.angle,i.getCenter()).diff(i[n.selector]);let o=n.resizeX?r.x*n.resizeX:i.width,a=n.resizeY?r.y*n.resizeY:i.height;const s=o,l=a;if(o=yC.snapToGrid(o,u),a=yC.snapToGrid(a,u),o=Math.max(o,h.minWidth||u),a=Math.max(a,h.minHeight||u),o=Math.min(o,h.maxWidth||1/0),a=Math.min(a,h.maxHeight||1/0),h.preserveAspectRatio){const e=i.width*a/i.height,t=i.height*o/i.width;o{const o=n[r];i[r]="function"===typeof o?o.call(e,t):o}),i}e.parseOptionGroup=t})(gO||(gO={})),function(e){function t(t){const{grid:n,panning:i,selecting:o,embedding:a,snapline:s,resizing:l,rotating:c,knob:u,clipboard:d,history:h,scroller:p,minimap:f,keyboard:g,mousewheel:m}=t,v=mO(t,["grid","panning","selecting","embedding","snapline","resizing","rotating","knob","clipboard","history","scroller","minimap","keyboard","mousewheel"]),_=t.container;if(null==_)throw new Error("Ensure the container of the graph is specified and valid");null==v.width&&(v.width=_.clientWidth),null==v.height&&(v.height=_.clientHeight);const y=r.merge({},e.defaults,v),b={size:10,visible:!1};y.grid="number"===typeof n?{size:n,visible:!1}:"boolean"===typeof n?Object.assign(Object.assign({},b),{visible:n}):Object.assign(Object.assign({},b),n);const S=["panning","selecting","embedding","snapline","resizing","rotating","knob","clipboard","history","scroller","minimap","keyboard","mousewheel"];return S.forEach(e=>{const n=t[e];"boolean"===typeof n?y[e].enabled=n:y[e]=Object.assign(Object.assign({},y[e]),n)}),y.background&&y.scroller.enabled&&null==y.scroller.background&&(y.scroller.background=y.background,delete y.background),y}e.get=t}(gO||(gO={})),function(e){e.defaults={x:0,y:0,grid:{size:10,visible:!1},scaling:{min:.01,max:16},background:!1,highlighting:{default:{name:"stroke",args:{padding:3}},nodeAvailable:{name:"className",args:{className:yC.prefix("available-node")}},magnetAvailable:{name:"className",args:{className:yC.prefix("available-magnet")}}},connecting:{snap:!1,multi:!0,dangling:!0,allowLoop:!0,allowNode:!0,allowEdge:!1,allowPort:!0,highlight:!1,anchor:"center",edgeAnchor:"ratio",connectionPoint:"boundary",strategy:null,router:"normal",connector:"normal",validateConnection({type:e,sourceView:t,targetView:n}){const i="target"===e?n:t;return null!=i},createEdge(){return new RA}},transforming:{clearAll:!0,clearOnBlankMouseDown:!0},resizing:{enabled:!1,minWidth:0,minHeight:0,maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,orthogonal:!0,restricted:!1,autoScroll:!0,preserveAspectRatio:!1,allowReverse:!0},rotating:{enabled:!1,grid:15},translating:{restrict:!1},knob:{enabled:!1,clearAll:!0,clearOnBlankMouseDown:!0},embedding:{enabled:!1,findParent:"bbox",frontOnly:!0,validate:()=>!0},selecting:{enabled:!1,rubberband:!1,rubberNode:!0,rubberEdge:!1,pointerEvents:"auto",multiple:!0,movable:!0,strict:!1,useCellGeometry:!1,selectCellOnMoved:!1,selectNodeOnMoved:!1,selectEdgeOnMoved:!1,content:null,handles:null},panning:{enabled:!1,eventTypes:["leftMouseDown"]},snapline:{enabled:!1},clipboard:{enabled:!1},history:{enabled:!1},scroller:{enabled:!1},keyboard:{enabled:!1},mousewheel:{enabled:!1,factor:1.2,zoomAtMousePosition:!0},async:!1,frozen:!1,sorting:"exact",moveThreshold:0,clickThreshold:0,magnetThreshold:0,preventDefaultDblClick:!0,preventDefaultMouseDown:!1,preventDefaultContextMenu:!0,preventDefaultBlankAction:!0,interacting:{edgeLabelMovable:!1},guard:()=>!1}}(gO||(gO={}));var vO=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const t=null!=e.opacity&&Number.isFinite(e.opacity)?e.opacity:1;return``}),o=`<${n}>${r.join("")}`,a=Object.assign({id:t},e.attrs);Qy.create(o,a).appendTo(this.defs)}return t}marker(e){const{id:t,refX:n,refY:i,markerUnits:r,markerOrient:a,tagName:s,children:l}=e,u=vO(e,["id","refX","refY","markerUnits","markerOrient","tagName","children"]);let d=t;if(d||(d=`marker-${this.cid}-${o.hashcode(JSON.stringify(e))}`),!this.isDefined(d)){"path"!==s&&delete u.d;const e=Qy.create("marker",{refX:n,refY:i,id:d,overflow:"visible",orient:null!=a?a:"auto",markerUnits:r||"userSpaceOnUse"},l?l.map(e=>{var{tagName:t}=e,n=vO(e,["tagName"]);return Qy.create(`${t}`||"path",c.kebablizeAttrs(Object.assign(Object.assign({},u),n)))}):[Qy.create(s||"path",c.kebablizeAttrs(u))]);this.defs.appendChild(e.node)}return d}remove(e){const t=this.svg.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)}}var yO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},bO=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const a=`pattern_${o}`,s=n.a||1,l=n.d||1,{update:u,markup:d}=e,h=bO(e,["update","markup"]),p=Object.assign(Object.assign(Object.assign({},h),r[o]),{sx:s,sy:l,ox:n.e||0,oy:n.f||0,width:t*s,height:t*l});i.has(a)||i.add(a,Qy.create("pattern",{id:a,patternUnits:"userSpaceOnUse"},Qy.createVectors(d)).node);const f=i.get(a);"function"===typeof u&&u(f.childNodes[0],p);let g=p.ox%p.width;g<0&&(g+=p.width);let m=p.oy%p.height;m<0&&(m+=p.height),c.attr(f,{x:g,y:m,width:p.width,height:p.height})});const o=(new XMLSerializer).serializeToString(i.root),a=`url(data:image/svg+xml;base64,${btoa(o)})`;this.elem.style.backgroundImage=a}getInstance(){return this.instance||(this.instance=new ZE),this.instance}resolveGrid(e){if(!e)return[];const t=e.type;if(null==t)return[Object.assign(Object.assign({},ZE.presets.dot),e.args)];const n=ZE.registry.get(t);if(n){let t=e.args||[];return Array.isArray(t)||(t=[t]),Array.isArray(n)?n.map((e,n)=>Object.assign(Object.assign({},e),t[n])):[Object.assign(Object.assign({},n),t[0])]}return ZE.registry.onNotFound(t)}dispose(){this.stopListening(),this.clear()}}yO([MA.dispose()],SO.prototype,"dispose",null);class EO extends MA{getClientMatrix(){return c.createSVGMatrix(this.view.stage.getScreenCTM())}getClientOffset(){const e=this.view.svg.getBoundingClientRect();return new xy(e.left,e.top)}getPageOffset(){return this.getClientOffset().translate(window.scrollX,window.scrollY)}snapToGrid(e,t){const n="number"===typeof e?this.clientToLocalPoint(e,t):this.clientToLocalPoint(e.x,e.y);return n.snapToGrid(this.graph.getGridSize())}localToGraphPoint(e,t){const n=xy.create(e,t);return c.transformPoint(n,this.graph.matrix())}localToClientPoint(e,t){const n=xy.create(e,t);return c.transformPoint(n,this.getClientMatrix())}localToPagePoint(e,t){const n="number"===typeof e?this.localToGraphPoint(e,t):this.localToGraphPoint(e);return n.translate(this.getPageOffset())}localToGraphRect(e,t,n,i){const r=wy.create(e,t,n,i);return c.transformRectangle(r,this.graph.matrix())}localToClientRect(e,t,n,i){const r=wy.create(e,t,n,i);return c.transformRectangle(r,this.getClientMatrix())}localToPageRect(e,t,n,i){const r="number"===typeof e?this.localToGraphRect(e,t,n,i):this.localToGraphRect(e);return r.translate(this.getPageOffset())}graphToLocalPoint(e,t){const n=xy.create(e,t);return c.transformPoint(n,this.graph.matrix().inverse())}clientToLocalPoint(e,t){const n=xy.create(e,t);return c.transformPoint(n,this.getClientMatrix().inverse())}clientToGraphPoint(e,t){const n=xy.create(e,t);return c.transformPoint(n,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalPoint(e,t){const n=xy.create(e,t),i=n.diff(this.getPageOffset());return this.graphToLocalPoint(i)}graphToLocalRect(e,t,n,i){const r=wy.create(e,t,n,i);return c.transformRectangle(r,this.graph.matrix().inverse())}clientToLocalRect(e,t,n,i){const r=wy.create(e,t,n,i);return c.transformRectangle(r,this.getClientMatrix().inverse())}clientToGraphRect(e,t,n,i){const r=wy.create(e,t,n,i);return c.transformRectangle(r,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalRect(e,t,n,i){const r=wy.create(e,t,n,i),o=this.getPageOffset();return r.x-=o.x,r.y-=o.y,this.graphToLocalRect(r)}}var CO,xO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class wO extends MA{constructor(){super(...arguments),this.widget=this.graph.hook.createSnapline()}dispose(){this.widget.dispose()}}xO([MA.dispose()],wO.prototype,"dispose",null),function(e){function t(e){const t=[],n=[];return Array.isArray(e)?t.push(...e):e.split("|").forEach(e=>{-1===e.indexOf("&")?t.push(e):n.push(...e.split("&"))}),{or:t,and:n}}function n(e,n){if(null!=e&&null!=n){const i=t(e),r=t(n),o=i.or.sort(),a=r.or.sort(),s=i.and.sort(),l=r.and.sort(),c=(e,t)=>{return e.length===t.length&&(0===e.length||e.every((e,n)=>e===t[n]))};return c(o,a)&&c(s,l)}return null==e&&null==n}function i(e,n,i){if(null==n||Array.isArray(n)&&0===n.length)return!i||!0!==e.altKey&&!0!==e.ctrlKey&&!0!==e.metaKey&&!0!==e.shiftKey;const{or:r,and:o}=t(n),a=t=>{const n=`${t.toLowerCase()}Key`;return!0===e[n]};return r.some(e=>a(e))&&o.every(e=>a(e))}e.parse=t,e.equals=n,e.isMatch=i}(CO||(CO={}));var TO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class AO extends MA{get widgetOptions(){return this.options.scroller}get pannable(){return!!this.widgetOptions&&("object"===typeof this.widgetOptions.pannable?this.widgetOptions.pannable.enabled:!!this.widgetOptions.pannable)}init(){this.widget=this.graph.hook.createScroller(),this.startListening(),this.updateClassName(),this.widget&&this.widget.center()}startListening(){let e=[];const t=this.widgetOptions.pannable;e="object"===typeof t?t.eventTypes||[]:["leftMouseDown"],e.includes("leftMouseDown")&&(this.graph.on("blank:mousedown",this.preparePanning,this),this.graph.on("node:unhandled:mousedown",this.preparePanning,this),this.graph.on("edge:unhandled:mousedown",this.preparePanning,this)),e.includes("rightMouseDown")&&(this.onRightMouseDown=this.onRightMouseDown.bind(this),this.view.$(this.graph.container).on("mousedown",this.onRightMouseDown))}stopListening(){let e=[];const t=this.widgetOptions.pannable;e="object"===typeof t?t.eventTypes||[]:["leftMouseDown"],e.includes("leftMouseDown")&&(this.graph.off("blank:mousedown",this.preparePanning,this),this.graph.off("node:unhandled:mousedown",this.preparePanning,this),this.graph.off("edge:unhandled:mousedown",this.preparePanning,this)),e.includes("rightMouseDown")&&this.view.$(this.graph.container).off("mousedown",this.onRightMouseDown)}onRightMouseDown(e){2===e.button&&this.allowPanning(e,!0)&&this.widget&&(this.updateClassName(!0),this.widget.startPanning(e),this.widget.once("pan:stop",()=>this.updateClassName(!1)))}preparePanning({e:e}){this.widget&&(this.allowPanning(e,!0)||this.allowPanning(e)&&!this.graph.selection.allowRubberband(e,!0))&&(this.updateClassName(!0),this.widget.startPanning(e),this.widget.once("pan:stop",()=>this.updateClassName(!1)))}allowPanning(e,t){return this.widget&&this.pannable&&CO.isMatch(e,this.widgetOptions.modifiers,t)&&this.graph.hook.allowPanning(e)}updateClassName(e){if(null==this.widget)return;const t=this.widget.container,n=this.view.prefixClassName("graph-scroller-pannable");this.pannable?(c.addClass(t,n),t.dataset.panning=(!!e).toString()):c.removeClass(t,n)}enablePanning(){this.pannable||(this.widgetOptions.pannable=!0,this.updateClassName())}disablePanning(){this.pannable&&(this.widgetOptions.pannable=!1,this.updateClassName())}lock(){this.widget&&this.widget.lock()}unlock(){this.widget&&this.widget.unlock()}update(){this.widget&&this.widget.update()}enableAutoResize(){this.widget&&this.widget.enableAutoResize()}disableAutoResize(){this.widget&&this.widget.disableAutoResize()}resize(e,t){this.widget&&this.widget.resize(e,t)}dispose(){this.widget&&this.widget.dispose(),this.stopListening()}}TO([MA.dispose()],AO.prototype,"dispose",null);var OO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},RO=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class IO extends MA{constructor(){super(...arguments),this.highlights={}}init(){this.startListening()}startListening(){this.graph.on("cell:highlight",this.onCellHighlight,this),this.graph.on("cell:unhighlight",this.onCellUnhighlight,this)}stopListening(){this.graph.off("cell:highlight",this.onCellHighlight,this),this.graph.off("cell:unhighlight",this.onCellUnhighlight,this)}onCellHighlight({view:e,magnet:t,options:n={}}){const i=this.resolveHighlighter(n);if(!i)return;const r=this.getHighlighterId(t,i);if(!this.highlights[r]){const n=i.highlighter;n.highlight(e,t,Object.assign({},i.args)),this.highlights[r]={cellView:e,magnet:t,highlighter:n,args:i.args}}}onCellUnhighlight({magnet:e,options:t={}}){const n=this.resolveHighlighter(t);if(!n)return;const i=this.getHighlighterId(e,n);this.unhighlight(i)}resolveHighlighter(e){const t=this.options;let n=e.highlighter;if(null==n){const i=e.type;n=i&&t.highlighting[i]||t.highlighting.default}if(null==n)return null;const i="string"===typeof n?{name:n}:n,r=i.name,o=OC.registry.get(r);return null==o?OC.registry.onNotFound(r):(OC.check(r,o),{name:r,highlighter:o,args:i.args||{}})}getHighlighterId(e,t){return c.ensureId(e),t.name+e.id+JSON.stringify(t.args)}unhighlight(e){const t=this.highlights[e];t&&(t.highlighter.unhighlight(t.cellView,t.magnet,t.args),delete this.highlights[e])}dispose(){Object.keys(this.highlights).forEach(e=>this.unhighlight(e)),this.stopListening()}}DO([IO.dispose()],IO.prototype,"dispose",null);var MO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class kO extends MA{constructor(){super(...arguments),this.widgets=new Map}get container(){return this.graph.view.container}get viewport(){return this.graph.view.viewport}get isSelectionEnabled(){return!0===this.options.selecting.enabled}init(){this.startListening(),this.resize()}startListening(){this.graph.on("node:mouseup",this.onNodeMouseUp,this),this.graph.on("node:selected",this.onNodeSelected,this),this.graph.on("node:unselected",this.onNodeUnSelected,this)}stopListening(){this.graph.off("node:mouseup",this.onNodeMouseUp,this),this.graph.off("node:selected",this.onNodeSelected,this),this.graph.off("node:unselected",this.onNodeUnSelected,this)}onNodeMouseUp({node:e}){if(!this.isSelectionEnabled){const t=this.graph.hook.createTransform(e,{clearAll:!0});t&&this.widgets.set(e,t)}}onNodeSelected({node:e}){if(this.isSelectionEnabled){const t=this.graph.hook.createTransform(e,{clearAll:!1});t&&this.widgets.set(e,t)}}onNodeUnSelected({node:e}){if(this.isSelectionEnabled){const t=this.widgets.get(e);t&&t.dispose(),this.widgets.delete(e)}}getMatrix(){const e=this.viewport.getAttribute("transform");return e!==this.viewportTransformString&&(this.viewportMatrix=this.viewport.getCTM(),this.viewportTransformString=e),c.createSVGMatrix(this.viewportMatrix)}setMatrix(e){const t=c.createSVGMatrix(e),n=c.matrixToTransformString(t);this.viewport.setAttribute("transform",n),this.viewportMatrix=t,this.viewportTransformString=n}resize(e,t){let n=void 0===e?this.options.width:e,i=void 0===t?this.options.height:t;this.options.width=n,this.options.height=i,"number"===typeof n&&(n=Math.round(n)),"number"===typeof i&&(i=Math.round(i)),this.container.style.width=null==n?"":`${n}px`,this.container.style.height=null==i?"":`${i}px`;const r=this.getComputedSize();return this.graph.trigger("resize",Object.assign({},r)),this}getComputedSize(){let e=this.options.width,t=this.options.height;return a.isNumber(e)||(e=this.container.clientWidth),a.isNumber(t)||(t=this.container.clientHeight),{width:e,height:t}}getScale(){return c.matrixToScale(this.getMatrix())}scale(e,t=e,n=0,i=0){if(e=this.clampScale(e),t=this.clampScale(t),n||i){const r=this.getTranslation(),o=r.tx-n*(e-1),a=r.ty-i*(t-1);o===r.tx&&a===r.ty||this.translate(o,a)}const r=this.getMatrix();return r.a=e,r.d=t,this.setMatrix(r),this.graph.trigger("scale",{sx:e,sy:t,ox:n,oy:i}),this}clampScale(e){const t=this.graph.options.scaling;return a.clamp(e,t.min||.01,t.max||16)}getZoom(){return this.getScale().sx}zoom(e,t){t=t||{};let n=e,i=e;const r=this.getScale(),o=this.getComputedSize();let a=o.width/2,s=o.height/2;if(t.absolute||(n+=r.sx,i+=r.sy),t.scaleGrid&&(n=Math.round(n/t.scaleGrid)*t.scaleGrid,i=Math.round(i/t.scaleGrid)*t.scaleGrid),t.maxScale&&(n=Math.min(t.maxScale,n),i=Math.min(t.maxScale,i)),t.minScale&&(n=Math.max(t.minScale,n),i=Math.max(t.minScale,i)),t.center&&(a=t.center.x,s=t.center.y),n=this.clampScale(n),i=this.clampScale(i),a||s){const e=this.getTranslation(),t=a-(a-e.tx)*(n/r.sx),o=s-(s-e.ty)*(i/r.sy);t===e.tx&&o===e.ty||this.translate(t,o)}return this.scale(n,i),this}getRotation(){return c.matrixToRotation(this.getMatrix())}rotate(e,t,n){if(null==t||null==n){const e=c.getBBox(this.graph.view.stage);t=e.width/2,n=e.height/2}const i=this.getMatrix().translate(t,n).rotate(e).translate(-t,-n);return this.setMatrix(i),this}getTranslation(){return c.matrixToTranslation(this.getMatrix())}translate(e,t){const n=this.getMatrix();n.e=e||0,n.f=t||0,this.setMatrix(n);const i=this.getTranslation();return this.options.x=i.tx,this.options.y=i.ty,this.graph.trigger("translate",Object.assign({},i)),this}setOrigin(e,t){return this.translate(e||0,t||0)}fitToContent(e,t,n,i){if("object"===typeof e){const r=e;e=r.gridWidth||1,t=r.gridHeight||1,n=r.padding||0,i=r}else e=e||1,t=t||1,n=n||0,null==i&&(i={});const r=a.normalizeSides(n),o=i.border||0,s=i.contentArea?wy.create(i.contentArea):this.getContentArea(i);o>0&&s.inflate(o);const l=this.getScale(),c=this.getTranslation(),u=l.sx,d=l.sy;s.x*=u,s.y*=d,s.width*=u,s.height*=d;let h=Math.max(Math.ceil((s.width+s.x)/e),1)*e,p=Math.max(Math.ceil((s.height+s.y)/t),1)*t,f=0,g=0;("negative"===i.allowNewOrigin&&s.x<0||"positive"===i.allowNewOrigin&&s.x>=0||"any"===i.allowNewOrigin)&&(f=Math.ceil(-s.x/e)*e,f+=r.left,h+=f),("negative"===i.allowNewOrigin&&s.y<0||"positive"===i.allowNewOrigin&&s.y>=0||"any"===i.allowNewOrigin)&&(g=Math.ceil(-s.y/t)*t,g+=r.top,p+=g),h+=r.right,p+=r.bottom,h=Math.max(h,i.minWidth||0),p=Math.max(p,i.minHeight||0),h=Math.min(h,i.maxWidth||Number.MAX_SAFE_INTEGER),p=Math.min(p,i.maxHeight||Number.MAX_SAFE_INTEGER);const m=this.getComputedSize(),v=h!==m.width||p!==m.height,_=f!==c.tx||g!==c.ty;return _&&this.translate(f,g),v&&this.resize(h,p),new wy(-f/u,-g/d,h/u,p/d)}scaleContentToFit(e={}){this.scaleContentToFitImpl(e)}scaleContentToFitImpl(e={},t=!0){let n,i;if(e.contentArea){const t=e.contentArea;n=this.graph.localToGraph(t),i=xy.create(t)}else n=this.getContentBBox(e),i=this.graph.graphToLocal(n);if(!n.width||!n.height)return;const r=a.normalizeSides(e.padding),o=e.minScale||0,s=e.maxScale||Number.MAX_SAFE_INTEGER,l=e.minScaleX||o,c=e.maxScaleX||s,u=e.minScaleY||o,d=e.maxScaleY||s;let h;if(e.viewportArea)h=e.viewportArea;else{const e=this.getComputedSize(),t=this.getTranslation();h={x:t.tx,y:t.ty,width:e.width,height:e.height}}h=wy.create(h).moveAndExpand({x:r.left,y:r.top,width:-r.left-r.right,height:-r.top-r.bottom});const p=this.getScale();let f=h.width/n.width*p.sx,g=h.height/n.height*p.sy;!1!==e.preserveAspectRatio&&(f=g=Math.min(f,g));const m=e.scaleGrid;if(m&&(f=m*Math.floor(f/m),g=m*Math.floor(g/m)),f=a.clamp(f,l,c),g=a.clamp(g,u,d),this.scale(f,g),t){const e=this.options,t=h.x-i.x*f-e.x,n=h.y-i.y*g-e.y;this.translate(t,n)}}getContentArea(e={}){return e.useCellGeometry?this.model.getAllCellsBBox()||new wy:c.getBBox(this.graph.view.stage)}getContentBBox(e={}){return this.graph.localToGraph(this.getContentArea(e))}getGraphArea(){const e=wy.fromSize(this.getComputedSize());return this.graph.graphToLocal(e)}zoomToRect(e,t={}){const n=wy.create(e),i=this.graph;t.contentArea=n,null==t.viewportArea&&(t.viewportArea={x:i.options.x,y:i.options.y,width:this.options.width,height:this.options.height}),this.scaleContentToFitImpl(t,!1);const r=n.getCenter();return this.centerPoint(r.x,r.y),this}zoomToFit(e={}){return this.zoomToRect(this.getContentArea(e),e)}centerPoint(e,t){const n=this.getComputedSize(),i=this.getScale(),r=this.getTranslation(),o=n.width/2,a=n.height/2;e="number"===typeof e?e:o,t="number"===typeof t?t:a,e=o-e*i.sx,t=a-t*i.sy,r.tx===e&&r.ty===t||this.translate(e,t)}centerContent(e){const t=this.graph.getContentArea(e),n=t.getCenter();this.centerPoint(n.x,n.y)}centerCell(e){return this.positionCell(e,"center")}positionPoint(e,t,n){const i=this.getComputedSize();t=a.normalizePercentage(t,Math.max(0,i.width)),t<0&&(t=i.width+t),n=a.normalizePercentage(n,Math.max(0,i.height)),n<0&&(n=i.height+n);const r=this.getTranslation(),o=this.getScale(),s=t-e.x*o.sx,l=n-e.y*o.sy;r.tx===s&&r.ty===l||this.translate(s,l)}positionRect(e,t){const n=wy.create(e);switch(t){case"center":return this.positionPoint(n.getCenter(),"50%","50%");case"top":return this.positionPoint(n.getTopCenter(),"50%",0);case"top-right":return this.positionPoint(n.getTopRight(),"100%",0);case"right":return this.positionPoint(n.getRightMiddle(),"100%","50%");case"bottom-right":return this.positionPoint(n.getBottomRight(),"100%","100%");case"bottom":return this.positionPoint(n.getBottomCenter(),"50%","100%");case"bottom-left":return this.positionPoint(n.getBottomLeft(),0,"100%");case"left":return this.positionPoint(n.getLeftMiddle(),0,"50%");case"top-left":return this.positionPoint(n.getTopLeft(),0,0);default:return this}}positionCell(e,t){const n=e.getBBox();return this.positionRect(n,t)}positionContent(e,t){const n=this.graph.getContentArea(t);return this.positionRect(n,e)}dispose(){this.widgets.forEach(e=>e.dispose()),this.widgets.clear(),this.stopListening()}}MO([kO.dispose()],kO.prototype,"dispose",null);var LO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class PO extends MA{constructor(){super(...arguments),this.movedMap=new WeakMap,this.unselectMap=new WeakMap}get widgetOptions(){return this.options.selecting}get rubberbandDisabled(){return!0!==this.widgetOptions.enabled||!0!==this.widgetOptions.rubberband}get disabled(){return!0!==this.widgetOptions.enabled}get length(){return this.widget.length}get cells(){return this.widget.cells}init(){this.widget=this.graph.hook.createSelection(),this.startListening()}startListening(){this.graph.on("blank:mousedown",this.onBlankMouseDown,this),this.graph.on("blank:click",this.onBlankClick,this),this.graph.on("cell:mousemove",this.onCellMouseMove,this),this.graph.on("cell:mouseup",this.onCellMouseUp,this),this.widget.on("box:mousedown",this.onBoxMouseDown,this)}stopListening(){this.graph.off("blank:mousedown",this.onBlankMouseDown,this),this.graph.off("blank:click",this.onBlankClick,this),this.graph.off("cell:mousemove",this.onCellMouseMove,this),this.graph.off("cell:mouseup",this.onCellMouseUp,this),this.widget.off("box:mousedown",this.onBoxMouseDown,this)}onBlankMouseDown({e:e}){(this.allowRubberband(e,!0)||this.allowRubberband(e)&&!this.graph.scroller.allowPanning(e,!0)&&!this.graph.panning.allowPanning(e,!0))&&this.startRubberband(e)}onBlankClick(){this.clean()}allowRubberband(e,t){return!this.rubberbandDisabled&&CO.isMatch(e,this.widgetOptions.modifiers,t)&&this.graph.hook.allowRubberband(e)}onCellMouseMove({cell:e}){this.movedMap.set(e,!0)}onCellMouseUp({e:e,cell:t}){const n=this.widgetOptions;let i=this.disabled;!i&&this.movedMap.has(t)&&(i=!1===n.selectCellOnMoved,i||(i=!1===n.selectNodeOnMoved&&t.isNode()),i||(i=!1===n.selectEdgeOnMoved&&t.isEdge())),i||(!1===n.multiple||!e.ctrlKey&&!e.metaKey?this.reset(t):this.unselectMap.has(t)?this.unselectMap.delete(t):this.isSelected(t)?this.unselect(t):this.select(t)),this.movedMap.delete(t)}onBoxMouseDown({e:e,cell:t}){this.disabled||!1!==this.widgetOptions.multiple&&(e.ctrlKey||e.metaKey)&&(this.unselect(t),this.unselectMap.set(t,!0))}isEmpty(){return this.length<=0}isSelected(e){return this.widget.isSelected(e)}getCells(e){return(Array.isArray(e)?e:[e]).map(e=>"string"===typeof e?this.graph.getCellById(e):e).filter(e=>null!=e)}select(e,t={}){const n=this.getCells(e);return n.length&&(this.isMultiple()?this.widget.select(n,t):this.reset(n.slice(0,1),t)),this}unselect(e,t={}){return this.widget.unselect(this.getCells(e),t),this}reset(e,t={}){return this.widget.reset(e?this.getCells(e):[],t),this}clean(){return this.widget.clean(),this}enable(){return this.disabled&&(this.widgetOptions.enabled=!0),this}disable(){return this.disabled||(this.widgetOptions.enabled=!1),this}startRubberband(e){return this.rubberbandDisabled||this.widget.startSelecting(e),this}enableRubberband(){return this.rubberbandDisabled&&(this.widgetOptions.rubberband=!0),this}disableRubberband(){return this.rubberbandDisabled||(this.widgetOptions.rubberband=!1),this}isMultiple(){return!1!==this.widgetOptions.multiple}enableMultiple(){return this.widgetOptions.multiple=!0,this}disableMultiple(){return this.widgetOptions.multiple=!1,this}setModifiers(e){return this.widgetOptions.modifiers=e,this}setContent(e){return this.widget.setContent(e),this}setFilter(e){return this.widget.setFilter(e),this}dispose(){this.stopListening(),this.widget.dispose()}}LO([MA.dispose()],PO.prototype,"dispose",null);var FO,BO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},$O=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r0}canRedo(){return!this.disabled&&this.redoStack.length>0}validate(e,...t){return this.validator.validate(e,...t),this}dispose(){this.validator.dispose(),this.clean(),this.stopListening()}startListening(){this.model.on("batch:start",this.initBatchCommand,this),this.model.on("batch:stop",this.storeBatchCommand,this),this.options.eventNames&&this.options.eventNames.forEach((e,t)=>{this.handlers[t]=this.addCommand.bind(this,e),this.model.on(e,this.handlers[t])}),this.validator.on("invalid",e=>this.trigger("invalid",e))}stopListening(){this.model.off("batch:start",this.initBatchCommand,this),this.model.off("batch:stop",this.storeBatchCommand,this),this.options.eventNames&&(this.options.eventNames.forEach((e,t)=>{this.model.off(e,this.handlers[t])}),this.handlers.length=0),this.validator.off("invalid")}createCommand(e){return{batch:!!e&&e.batch,data:{}}}revertCommand(e,t){this.freezed=!0;const n=Array.isArray(e)?FO.sortBatchCommands(e):[e];for(let i=n.length-1;i>=0;i-=1){const e=n[i],o=Object.assign(Object.assign({},t),r.pick(e.options,this.options.revertOptionsList||[]));this.executeCommand(e,!0,o)}this.freezed=!1}applyCommand(e,t){this.freezed=!0;const n=Array.isArray(e)?FO.sortBatchCommands(e):[e];for(let i=0;i=0&&(t||n)){const t=this.batchCommands.findIndex(t=>(l&&t.modelChange||t.data.id===a.id)&&t.event===e);t<0||FO.isAddEvent(e)||FO.isRemoveEvent(e)?c=this.createCommand({batch:!0}):(c=this.batchCommands[t],this.batchCommands.splice(t,1)),this.batchCommands.push(c),this.lastBatchIndex=this.batchCommands.length-1}}else c=this.createCommand({batch:!1});if(FO.isAddEvent(e)||FO.isRemoveEvent(e)){const t=c.data;return c.event=e,c.options=i,t.id=a.id,t.props=r.cloneDeep(a.toJSON()),a.isEdge()?t.edge=!0:a.isNode()&&(t.node=!0),this.push(c,i)}if(FO.isChangeEvent(e)){const n=t.key,o=c.data;return c.batch&&c.event||(c.event=e,c.options=i,o.key=n,null==o.prev&&(o.prev={}),o.prev[n]=r.clone(a.previous(n)),l?c.modelChange=!0:o.id=a.id),null==o.next&&(o.next={}),o.next[n]=r.clone(a.prop(n)),this.push(c,i)}const u=this.options.afterAddCommand;u&&s.call(u,this,e,t,c),this.push(c,i)}initBatchCommand(e){this.freezed||(this.batchCommands?this.batchLevel+=1:(this.batchCommands=[this.createCommand({batch:!0})],this.batchLevel=0,this.lastBatchIndex=-1))}storeBatchCommand(e){if(!this.freezed)if(this.batchCommands&&this.batchLevel<=0){const t=this.filterBatchCommand(this.batchCommands);t.length>0&&(this.redoStack=[],this.undoStack.push(t),this.notify("add",t,e)),this.batchCommands=null,this.lastBatchIndex=-1,this.batchLevel=0}else this.batchCommands&&this.batchLevel>0&&(this.batchLevel-=1)}filterBatchCommand(e){let t=e.slice();const n=[];while(t.length>0){const e=t.shift(),i=e.event,o=e.data.id;if(null!=i&&(null!=o||e.modelChange)){if(FO.isAddEvent(i)){const e=t.findIndex(e=>FO.isRemoveEvent(e.event)&&e.data.id===o);if(e>=0){t=t.filter((t,n)=>eFO.isAddEvent(e.event)&&e.data.id===o);if(e>=0){t.splice(e,1);continue}}else if(FO.isChangeEvent(i)){const t=e.data;if(r.isEqual(t.prev,t.next))continue}n.push(e)}}return n}notify(e,t,n){const i=null==t?null:Array.isArray(t)?t:[t];this.emit(e,{cmds:i,options:n}),this.emit("change",{cmds:i,options:n})}push(e,t){this.redoStack=[],e.batch?(this.lastBatchIndex=Math.max(this.lastBatchIndex,0),this.emit("batch",{cmd:e,options:t})):(this.undoStack.push(e),this.notify("add",e,t))}}BO([hx.dispose()],VO.prototype,"dispose",null),function(e){class t extends hx{constructor(e){super(),this.map={},this.command=e.history,this.cancelInvalid=!1!==e.cancelInvalid,this.command.on("add",this.onCommandAdded,this)}onCommandAdded({cmds:e}){return Array.isArray(e)?e.every(e=>this.isValidCommand(e)):this.isValidCommand(e)}isValidCommand(e){if(e.options&&!1===e.options.validation)return!0;const t=e.event&&this.map[e.event]||[];let n=null;return t.forEach(t=>{let i=0;const r=o=>{const a=t[i];i+=1;try{if(!a)return void(n=o);a(o,e,r)}catch(o){r(o)}};r(n)}),!n||(this.cancelInvalid&&this.command.cancel(),this.emit("invalid",{err:n}),!1)}validate(e,...t){const n=Array.isArray(e)?e:e.split(/\s+/);return t.forEach(e=>{if("function"!==typeof e)throw new Error(`${n.join(" ")} requires callback functions.`)}),n.forEach(e=>{null==this.map[e]&&(this.map[e]=[]),this.map[e].push(t)}),this}dispose(){this.command.off("add",this.onCommandAdded,this)}}BO([hx.dispose()],t.prototype,"dispose",null),e.Validator=t}(VO||(VO={})),function(e){function t(e){return"cell:added"===e}function n(e){return"cell:removed"===e}function i(e){return null!=e&&e.startsWith("cell:change:")}function r(t){const{graph:n}=t,i=$O(t,["graph"]),r=["cell:added","cell:removed","cell:change:*"],o=["batch:start","batch:stop"],a=t.eventNames?t.eventNames.filter(t=>!(e.isChangeEvent(t)||r.includes(t)||o.includes(t))):r;return Object.assign(Object.assign({},i),{eventNames:a,applyOptionsList:t.applyOptionsList||["propertyPath"],revertOptionsList:t.revertOptionsList||["propertyPath"]})}function o(t){const n=[];for(let i=0,r=t.length;i=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class UO extends MA{get widgetOptions(){return this.options.minimap}init(){this.widget=this.graph.hook.createMiniMap()}dispose(){this.widget&&this.widget.dispose()}}GO([MA.dispose()],UO.prototype,"dispose",null);var zO=n("8a60"),jO=n.n(zO),HO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class WO extends ux{constructor(e){super(),this.options=e;const t=this.graph.scroller.widget;this.container=t?t.container:this.graph.container,e.global?this.target=document:(this.target=this.container,this.disabled||this.target.setAttribute("tabindex","-1"),this.graph.on("cell:mouseup",this.focus,this),this.graph.on("blank:mouseup",this.focus,this)),this.mousetrap=WO.createMousetrap(this)}get graph(){return this.options.graph}get disabled(){return!0!==this.options.enabled}enable(){this.disabled&&(this.options.enabled=!0,this.graph.options.keyboard.enabled=!0,this.target instanceof HTMLElement&&this.target.setAttribute("tabindex","-1"))}disable(){this.disabled||(this.options.enabled=!1,this.graph.options.keyboard.enabled=!1,this.target instanceof HTMLElement&&this.target.removeAttribute("tabindex"))}on(e,t,n){this.mousetrap.bind(this.getKeys(e),t,n)}off(e,t){this.mousetrap.unbind(this.getKeys(e),t)}focus(){const e=this.target;e.focus({preventScroll:!0})}getKeys(e){return(Array.isArray(e)?e:[e]).map(e=>this.formatkey(e))}formatkey(e){const t=e.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command"),n=this.options.format;return n?s.call(n,this.graph,t):t}isGraphEvent(e){const t=e.srcElement||e.target;return!!t&&(t===this.target||t===document.body||c.contains(this.container,t))}isEnabledForEvent(e){const t=!this.disabled&&this.isGraphEvent(e);if(t){const t=e.target,n=t&&t.tagName.toLowerCase(),i=e.keyCode||e.which;if("input"===n&&(8===i||46===i))return!1;if(this.options.guard)return s.call(this.options.guard,this.graph,e)}return t}dispose(){this.mousetrap.reset()}}HO([ux.dispose()],WO.prototype,"dispose",null),function(e){function t(e){const t=new jO.a(e.target),n=t.stopCallback;return t.stopCallback=(i,r,o)=>{return!e.isEnabledForEvent(i)||!!n&&n.call(t,i,r,o)},t}e.createMousetrap=t}(WO||(WO={}));var YO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class qO extends ux{constructor(e){super(),this.options=e,this.cumulatedFactor=1;const t=this.graph.scroller.widget;this.container=t?t.container:this.graph.container,this.target=this.options.global?document:this.container,this.mousewheelHandle=new c.MouseWheelHandle(this.target,this.onMouseWheel.bind(this),this.allowMouseWheel.bind(this)),this.options.enabled&&this.enable(!0)}get graph(){return this.options.graph}get disabled(){return!0!==this.options.enabled}enable(e){(this.disabled||e)&&(this.options.enabled=!0,this.graph.options.mousewheel.enabled=!0,this.mousewheelHandle.enable())}disable(){this.disabled||(this.options.enabled=!1,this.graph.options.mousewheel.enabled=!1,this.mousewheelHandle.disable())}allowMouseWheel(e){const t=e.originalEvent||e,n=this.options.guard;return(null==n||n.call(this.graph,t))&&CO.isMatch(t,this.options.modifiers)}onMouseWheel(e){const t=e.originalEvent||e,n=this.options.guard;if((null==n||n.call(this.graph,t))&&CO.isMatch(t,this.options.modifiers)){const t=this.options.factor||1.2;null==this.currentScale&&(this.startPos={x:e.clientX,y:e.clientY},this.currentScale=this.graph.scroller.widget?this.graph.scroller.widget.zoom():this.graph.transform.getScale().sx);const n=e.deltaY;n<0?this.currentScale<.15?this.cumulatedFactor=(this.currentScale+.01)/this.currentScale:this.cumulatedFactor=Math.round(this.currentScale*t*20)/20/this.currentScale:this.currentScale<=.15?this.cumulatedFactor=(this.currentScale-.01)/this.currentScale:this.cumulatedFactor=Math.round(this.currentScale*(1/t)*20)/20/this.currentScale,this.cumulatedFactor=Math.max(.01,Math.min(this.currentScale*this.cumulatedFactor,160)/this.currentScale);const i=this.graph.scroller.widget,r=this.currentScale;let o=this.graph.transform.clampScale(r*this.cumulatedFactor);const s=this.options.minScale||Number.MIN_SAFE_INTEGER,l=this.options.maxScale||Number.MAX_SAFE_INTEGER;if(o=a.clamp(o,s,l),o!==r)if(i)if(this.options.zoomAtMousePosition){const e=this.graph.coord.clientToLocalPoint(this.startPos);i.zoom(o,{absolute:!0,center:e.clone()})}else i.zoom(o,{absolute:!0});else if(this.options.zoomAtMousePosition){const e=this.graph.coord.clientToGraphPoint(this.startPos);this.graph.zoom(o,{absolute:!0,center:e.clone()})}else this.graph.zoom(o,{absolute:!0});this.currentScale=null,this.cumulatedFactor=1}}dispose(){this.disable()}}YO([ux.dispose()],qO.prototype,"dispose",null);var KO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class QO extends MA{show(e={}){const t=Object.assign(Object.assign({},QO.defaultOptions),e),n=this.createPrintPages(t);t.ready(n,e=>this.showPrintWindow(e,t),{sheetSize:this.getSheetSize(t)})}get className(){return this.view.prefixClassName("graph-print")}showPrintWindow(e,t){if(e){const n=T()(document.body),i=T()(this.view.container),r=this.view.prefixClassName("graph-printing");n.addClass(r);const o=i.children().detach();e.forEach(e=>{e.removeClass(`${this.className}-preview`).addClass(`${this.className}-ready`).appendTo(n)});let a=!1;const s=()=>{a||(a=!0,n.removeClass(r),e.forEach(e=>e.remove()),i.append(o),T()(`#${this.styleSheetId}`).remove(),this.graph.trigger("after:print",t),T()(window).off("afterprint",s))};T()(window).one("afterprint",s),setTimeout(s,200),window.print()}}createPrintPage(e,t){this.graph.trigger("before:print",t);const n=T()("
").addClass(this.className),i=T()("
").addClass(this.view.prefixClassName("graph-print-inner")).css("position","relative");t.size&&n.addClass(`${this.className}-size-${t.size}`);const r=Qy.create(this.view.svg).clone(),o=r.findOne(`.${this.view.prefixClassName("graph-svg-stage")}`);i.append(r.node);const a=this.getSheetSize(t),s=this.graph.transform.getGraphArea(),l=this.graph.transform.getScale(),u=this.graph.translate(),d=c.createSVGMatrix().translate(u.tx/l.sx,u.ty/l.sy),h=this.getPageInfo(s,e,a),p=h.scale,f=h.bbox;return i.css({left:0,top:0}),r.attr({width:f.width*p,height:f.height*p,style:"position:relative",viewBox:[f.x,f.y,f.width,f.height].join(" ")}),o.attr("transform",c.matrixToTransformString(d)),n.append(i),n.addClass(`${this.className}-preview`),{$page:n,sheetSize:a}}createPrintPages(e){let t;const n=this.getPrintArea(e),i=[];if(e.page){const r=this.getPageSize(n,e.page),o=this.getPageAreas(n,r);o.forEach(n=>{t=this.createPrintPage(n,e),i.push(t.$page)})}else t=this.createPrintPage(n,e),i.push(t.$page);if(t){const n={width:t.sheetSize.cssWidth,height:t.sheetSize.cssHeight};this.updatePrintStyle(n,e)}return i}get styleSheetId(){return this.view.prefixClassName("graph-print-style")}updatePrintStyle(e,t){const n=Object.keys(e).reduce((t,n)=>`${t} ${n}:${e[n]};`,""),i=a.normalizeSides(t.margin),r=t.marginUnit||"",o=t.sheetUnit||"",s=`\n @media print {\n .${this.className}.${this.className}-ready {\n ${n}\n }\n\n @page {\n margin:\n ${[i.top+r,i.right+r,i.bottom+r,i.left+r].join(" ")};\n size: ${t.sheet.width+o} ${t.sheet.height+o};\n\n .${this.className}.${this.className}-preview {\n ${n}\n }\n }`,l=this.styleSheetId,c=T()(`#${l}`);c.length?c.html(s):T()("head").append(`''`)}getPrintArea(e){let t=e.area;if(!t){const n=a.normalizeSides(e.padding);t=this.graph.getContentArea().moveAndExpand({x:-n.left,y:-n.top,width:n.left+n.right,height:n.top+n.bottom})}return t}getPageSize(e,t){if("object"===typeof t){const n=t,i={width:n.width,height:n.height};return null==i.width&&(i.width=Math.ceil(e.width/(n.columns||1))),null==i.height&&(i.height=Math.ceil(e.height/(n.rows||1))),i}return{width:e.width,height:e.height}}getPageAreas(e,t){const n=[],i=t.width,r=t.height;for(let o=0,a=0;ot(e)}}(QO||(QO={}));class XO extends MA{toSVG(e,t={}){this.graph.trigger("before:export",t);const n=this.view.svg,i=Qy.create(n).clone();let r=i.node;const o=i.findOne(`.${this.view.prefixClassName("graph-svg-stage")}`),a=t.viewBox||this.graph.graphToLocal(this.graph.getContentBBox()),l=t.preserveDimensions;if(l){const e="boolean"===typeof l?a:l;i.attr({width:e.width,height:e.height})}if(i.removeAttribute("style").attr("viewBox",[a.x,a.y,a.width,a.height].join(" ")),o.removeAttribute("transform"),!1!==t.copyStyles){const e=n.ownerDocument,t=Array.from(n.querySelectorAll("*")),i=Array.from(r.querySelectorAll("*")),o=e.styleSheets.length,a=[];for(let n=o-1;n>=0;n-=1)a[n]=e.styleSheets[n],e.styleSheets[n].disabled=!0;const s={};t.forEach((e,t)=>{const n=window.getComputedStyle(e,null),i={};Object.keys(n).forEach(e=>{i[e]=n.getPropertyValue(e)}),s[t]=i}),o!==e.styleSheets.length&&a.forEach((t,n)=>{e.styleSheets[n]=t});for(let n=0;n{const n=window.getComputedStyle(e,null),i=s[t],r={};Object.keys(n).forEach(e=>{n.getPropertyValue(e)!==i[e]&&(r[e]=n.getPropertyValue(e))}),l[t]=r}),i.forEach((e,t)=>{T()(e).css(l[t])})}const c=t.stylesheet;if("string"===typeof c){const e=n.ownerDocument.implementation.createDocument(null,"xml",null).createCDATASection(c);i.prepend(Qy.create("style",{type:"text/css"},[e]))}const u=()=>{const n=t.beforeSerialize;if("function"===typeof n){const e=s.call(n,this.graph,r);e instanceof SVGSVGElement&&(r=e)}const i=(new XMLSerializer).serializeToString(r).replace(/ /g," ");this.graph.trigger("after:export",t),e(i)};if(t.serializeImages){const e=i.find("image").map(e=>{return new Promise(t=>{const n=e.attr("xlink:href")||e.attr("href");J_.imageToDataUri(n,(n,i)=>{!n&&i&&e.attr("xlink:href",i),t()})})});Promise.all(e).then(u)}else u()}toDataURL(e,t){let n=t.viewBox||this.graph.getContentBBox();const i=a.normalizeSides(t.padding);t.width&&t.height&&(i.left+i.right>=t.width&&(i.left=i.right=0),i.top+i.bottom>=t.height&&(i.top=i.bottom=0));const r=new wy(-i.left,-i.top,i.left+i.right,i.top+i.bottom);if(t.width&&t.height){const e=n.width+i.left+i.right,o=n.height+i.top+i.bottom;r.scale(e/t.width,o/t.height)}n=wy.create(n).moveAndExpand(r);const o="number"===typeof t.width&&"number"===typeof t.height?{width:t.width,height:t.height}:n;let s=t.ratio?parseFloat(t.ratio):1;Number.isFinite(s)&&0!==s||(s=1);const l={width:Math.max(Math.round(o.width*s),1),height:Math.max(Math.round(o.height*s),1)};{const e=document.createElement("canvas"),t=e.getContext("2d");e.width=l.width,e.height=l.height;const n=l.width-1,i=l.height-1;t.fillStyle="rgb(1,1,1)",t.fillRect(n,i,1,1);const r=t.getImageData(n,i,1,1).data;if(1!==r[0]||1!==r[1]||1!==r[2])throw new Error("size exceeded")}const c=new Image;c.onload=()=>{const n=document.createElement("canvas");n.width=l.width,n.height=l.height;const i=n.getContext("2d");i.fillStyle=t.backgroundColor||"white",i.fillRect(0,0,l.width,l.height);try{i.drawImage(c,0,0,l.width,l.height);const r=n.toDataURL(t.type,t.quality);e(r)}catch(r){}},this.toSVG(e=>{c.src=`data:image/svg+xml,${encodeURIComponent(e)}`},Object.assign(Object.assign({},t),{viewBox:n,serializeImages:!0,preserveDimensions:Object.assign({},l)}))}toPNG(e,t={}){this.toDataURL(e,Object.assign(Object.assign({},t),{type:"image/png"}))}toJPEG(e,t={}){this.toDataURL(e,Object.assign(Object.assign({},t),{type:"image/jpeg"}))}}class ZO extends MA{constructor(){super(...arguments),this.widgets=new Map}get isSelectionEnabled(){return!0===this.options.selecting.enabled}init(){this.startListening()}startListening(){this.graph.on("node:mouseup",this.onNodeMouseUp,this),this.graph.on("node:selected",this.onNodeSelected,this),this.graph.on("node:unselected",this.onNodeUnSelected,this)}stopListening(){this.graph.off("node:mouseup",this.onNodeMouseUp,this),this.graph.off("node:selected",this.onNodeSelected,this),this.graph.off("node:unselected",this.onNodeUnSelected,this)}onNodeMouseUp({node:e}){if(!this.isSelectionEnabled){const t=this.graph.hook.createKnob(e,{clearAll:!0});t&&this.widgets.set(e,t)}}onNodeSelected({node:e}){if(this.isSelectionEnabled){const t=this.graph.hook.createKnob(e,{clearAll:!1});t&&this.widgets.set(e,t)}}onNodeUnSelected({node:e}){if(this.isSelectionEnabled){const t=this.widgets.get(e);t&&t.forEach(e=>e.dispose()),this.widgets.delete(e)}}}var JO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class eR extends MA{get widgetOptions(){return this.options.panning}get pannable(){return this.widgetOptions&&!0===this.widgetOptions.enabled}init(){this.startListening(),this.updateClassName()}startListening(){const e=this.widgetOptions.eventTypes;e&&(e.includes("leftMouseDown")&&(this.graph.on("blank:mousedown",this.preparePanning,this),this.graph.on("node:unhandled:mousedown",this.preparePanning,this),this.graph.on("edge:unhandled:mousedown",this.preparePanning,this)),e.includes("rightMouseDown")&&(this.onRightMouseDown=this.onRightMouseDown.bind(this),this.view.$(this.graph.container).on("mousedown",this.onRightMouseDown)),e.includes("mouseWheel")&&(this.mousewheelHandle=new c.MouseWheelHandle(this.graph.container,this.onMouseWheel.bind(this),this.allowMouseWheel.bind(this)),this.mousewheelHandle.enable()))}stopListening(){const e=this.widgetOptions.eventTypes;e&&(e.includes("leftMouseDown")&&(this.graph.off("blank:mousedown",this.preparePanning,this),this.graph.off("node:unhandled:mousedown",this.preparePanning,this),this.graph.off("edge:unhandled:mousedown",this.preparePanning,this)),e.includes("rightMouseDown")&&this.view.$(this.graph.container).off("mousedown",this.onRightMouseDown),e.includes("mouseWheel")&&this.mousewheelHandle&&this.mousewheelHandle.disable())}preparePanning({e:e}){(this.allowPanning(e,!0)||this.allowPanning(e)&&!this.graph.selection.allowRubberband(e,!0))&&this.startPanning(e)}allowPanning(e,t){return this.pannable&&CO.isMatch(e,this.widgetOptions.modifiers,t)&&this.graph.hook.allowPanning(e)}startPanning(e){const t=this.view.normalizeEvent(e);this.clientX=t.clientX,this.clientY=t.clientY,this.panning=!0,this.updateClassName(),this.view.$(document.body).on({"mousemove.panning touchmove.panning":this.pan.bind(this),"mouseup.panning touchend.panning":this.stopPanning.bind(this)}),this.view.$(window).on("mouseup.panning",this.stopPanning.bind(this))}pan(e){const t=this.view.normalizeEvent(e),n=t.clientX-this.clientX,i=t.clientY-this.clientY;this.clientX=t.clientX,this.clientY=t.clientY,this.graph.translateBy(n,i)}stopPanning(e){this.panning=!1,this.updateClassName(),this.view.$(document.body).off(".panning"),this.view.$(window).off(".panning")}updateClassName(){const e=this.view.container,t=this.view.prefixClassName("graph-panning"),n=this.view.prefixClassName("graph-pannable");this.pannable?this.panning?(c.addClass(e,t),c.removeClass(e,n)):(c.removeClass(e,t),c.addClass(e,n)):(c.removeClass(e,t),c.removeClass(e,n))}onRightMouseDown(e){2===e.button&&this.allowPanning(e,!0)&&this.startPanning(e)}allowMouseWheel(e){return this.pannable&&!e.ctrlKey}onMouseWheel(e,t,n){e.ctrlKey||this.graph.translateBy(-t,-n)}autoPanning(e,t){const n=10,i=this.graph.getGraphArea();let r=0,o=0;e<=i.left+n&&(r=-n),t<=i.top+n&&(o=-n),e>=i.right-n&&(r=n),t>=i.bottom-n&&(o=n),0===r&&0===o||this.graph.translateBy(-r,-o)}enablePanning(){this.pannable||(this.widgetOptions.enabled=!0,this.updateClassName())}disablePanning(){this.pannable&&(this.widgetOptions.enabled=!1,this.updateClassName())}dispose(){this.stopListening()}}JO([MA.dispose()],eR.prototype,"dispose",null);var tR=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class nR extends MA{hasScroller(){return null!=this.graph.scroller.widget}getContainer(){return this.hasScroller()?this.graph.scroller.widget.container:this.graph.container}init(){const e=this.options.autoResize;if(e){const t="boolean"===typeof e?this.getContainer():e;pS.bind(t,()=>{const e=this.getContainer(),t=e.offsetWidth,n=e.offsetHeight;this.resize(t,n)})}}resize(e,t){this.hasScroller()?this.resizeScroller(e,t):this.resizeGraph(e,t)}resizeGraph(e,t){this.graph.transform.resize(e,t)}resizeScroller(e,t){this.graph.scroller.resize(e,t)}resizePage(e,t){const n=this.graph.scroller.widget;n&&n.updatePageSize(e,t)}dispose(){pS.clear(this.getContainer())}}tR([MA.dispose()],nR.prototype,"dispose",null);var iR,rR=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},oR=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const o=r.value,a=t||i;r.value=function(...t){const n=this.options[a];if(null!=n){this.getNativeValue=o.bind(this,...t);const i=s.call(n,this.graph,...t);if(this.getNativeValue=null,null!=i||!0===e&&null===i)return i}return o.call(this,...t)}}}function n(e){return(t,n,i)=>{const r=i.value,o=e||n;i.value=function(...e){let t=r.call(this,...e);const n=this.options[o];return null!=n&&(t=s.call(n,this.graph,...e)&&t),t}}}e.hook=t,e.after=n})(iR||(iR={}));class aR extends MA{createModel(){if(this.options.model)return this.options.model;const e=new _A;return e.graph=this.graph,e}createView(){return new PA(this.graph)}createRenderer(){return new nO(this.graph)}createDefsManager(){return new _O(this.graph)}createGridManager(){return new SO(this.graph)}createCoordManager(){return new EO(this.graph)}createKnobManager(){return new ZO(this.graph)}createTransform(e,t){const n=this.getTransformOptions(e);return n.resizable||n.rotatable?new fO(Object.assign(Object.assign({node:e,graph:this.graph},n),t)):(n.clearAll&&fO.removeInstances(this.graph),null)}createKnob(e,t){const n=gO.parseOptionGroup(this.graph,e,this.options.knob),i=Object.assign(Object.assign({},n),t);i.clearAll&&YA.removeInstances(this.graph),i.clearAll=!1;const r=e.prop("knob"),o=[],a=Array.isArray(r)?r:[r];return a.forEach((t,r)=>{t&&!1!==t.enabled&&("function"===typeof t.enabled&&!1===t.enabled.call(this.graph,e)||n.enabled&&o.push(new YA(Object.assign({node:e,index:r,graph:this.graph},i))))}),o}getTransformOptions(e){const t=gO.parseOptionGroup(this.graph,e,this.options.resizing),n=gO.parseOptionGroup(this.graph,e,this.options.rotating),i=gO.parseOptionGroup(this.graph,e,this.options.transforming),r=Object.assign(Object.assign({},i),{resizable:t.enabled,minWidth:t.minWidth,maxWidth:t.maxWidth,minHeight:t.minHeight,maxHeight:t.maxHeight,orthogonalResizing:t.orthogonal,restrictedResizing:null!=t.restrict?t.restrict:t.restricted,autoScrollOnResizing:t.autoScroll,preserveAspectRatio:t.preserveAspectRatio,allowReverse:t.allowReverse,rotatable:n.enabled,rotateGrid:n.grid});return r}createTransformManager(){return new kO(this.graph)}createHighlightManager(){return new IO(this.graph)}createBackgroundManager(){return new rO(this.graph)}createClipboard(){return new dR}createClipboardManager(){return new NO(this.graph)}createSnapline(){return new eO(Object.assign({graph:this.graph},this.options.snapline))}createSnaplineManager(){return new wO(this.graph)}createSelection(){return new pO(Object.assign({graph:this.graph},this.options.selecting))}createSelectionManager(){return new PO(this.graph)}allowRubberband(e){return!0}createHistoryManager(){return new VO(Object.assign({graph:this.graph},this.options.history))}createScroller(){return this.options.scroller.enabled?new lO(Object.assign({graph:this.graph},this.options.scroller)):null}createScrollerManager(){return new AO(this.graph)}allowPanning(e){return!0}createMiniMap(){const e=this.options.minimap,{enabled:t}=e,n=oR(e,["enabled"]);return t?new XA(Object.assign({graph:this.graph},n)):null}createMiniMapManager(){return new UO(this.graph)}createKeyboard(){return new WO(Object.assign({graph:this.graph},this.options.keyboard))}createMouseWheel(){return new qO(Object.assign({graph:this.graph},this.options.mousewheel))}createPrintManager(){return new QO(this.graph)}createFormatManager(){return new XO(this.graph)}createPanningManager(){return new eR(this.graph)}createSizeManager(){return new nR(this.graph)}allowConnectToBlank(e){const t=this.options.connecting,n=null!=t.allowBlank?t.allowBlank:t.dangling;if("function"!==typeof n)return!!n;const i=this.graph.findViewByCell(e),r=e.getSourceCell(),o=e.getTargetCell(),a=this.graph.findViewByCell(r),l=this.graph.findViewByCell(o);return s.call(n,this.graph,{edge:e,edgeView:i,sourceCell:r,targetCell:o,sourceView:a,targetView:l,sourcePort:e.getSourcePortId(),targetPort:e.getTargetPortId(),sourceMagnet:i.sourceMagnet,targetMagnet:i.targetMagnet})}validateEdge(e,t,n){if(!this.allowConnectToBlank(e)){const t=e.getSourceCellId(),n=e.getTargetCellId();if(!t||!n)return!1}const i=this.options.connecting.validateEdge;return!i||s.call(i,this.graph,{edge:e,type:t,previous:n})}validateMagnet(e,t,n){if("passive"!==t.getAttribute("magnet")){const i=this.options.connecting.validateMagnet;return!i||s.call(i,this.graph,{e:n,magnet:t,view:e,cell:e.cell})}return!1}getDefaultEdge(e,t){let n;const i=this.options.connecting.createEdge;return i&&(n=s.call(i,this.graph,{sourceMagnet:t,sourceView:e,sourceCell:e.cell})),null==n&&(n=new RA),n}validateConnection(e,t,n,i,r,o,a){const l=this.options.connecting,c=l.allowLoop,u=l.allowNode,d=l.allowEdge,h=l.allowPort,p=null!=l.allowMulti?l.allowMulti:l.multi,f=l.validateConnection,g=o?o.cell:null,m="target"===r?n:e,v="target"===r?i:t;let _=!0;const y=l=>{const c="source"===r?a?a.port:null:g?g.getSourcePortId():null,u="target"===r?a?a.port:null:g?g.getTargetPortId():null;return s.call(l,this.graph,{edge:g,edgeView:o,sourceView:e,targetView:n,sourcePort:c,targetPort:u,sourceMagnet:t,targetMagnet:i,sourceCell:e?e.cell:null,targetCell:n?n.cell:null,type:r})};if(null!=c&&("boolean"===typeof c?c||e!==n||(_=!1):_=y(c)),_&&null!=h&&("boolean"===typeof h?!h&&v&&(_=!1):_=y(h)),_&&null!=d&&("boolean"===typeof d?!d&&pA.isEdgeView(m)&&(_=!1):_=y(d)),_&&null!=u&&("boolean"===typeof u?u||null==m||fA.isNodeView(m)&&null==v&&(_=!1):_=y(u)),_&&null!=p&&o){const e=o.cell,t="source"===r?a:e.getSource(),n="target"===r?a:e.getTarget(),i=a?this.graph.getCellById(a.cell):null;if(t&&n&&t.cell&&n.cell&&i)if("function"===typeof p)_=y(p);else{const e=this.model.getConnectedEdges(i,{outgoing:"source"===r,incoming:"target"===r});if(e.length)if("withPort"===p){const i=e.some(e=>{const i=e.getSource(),r=e.getTarget();return i&&r&&i.cell===t.cell&&r.cell===n.cell&&null!=i.port&&i.port===t.port&&null!=r.port&&r.port===n.port});i&&(_=!1)}else if(!p){const i=e.some(e=>{const i=e.getSource(),r=e.getTarget();return i&&r&&i.cell===t.cell&&r.cell===n.cell});i&&(_=!1)}}}return _&&null!=f&&(_=y(f)),_}getRestrictArea(e){const t=this.options.translating.restrict,n="function"===typeof t?s.call(t,this.graph,e):t;return"number"===typeof n?this.graph.transform.getGraphArea().inflate(n):!0===n?this.graph.transform.getGraphArea():n||null}onViewUpdated(e,t,n){t&nO.FLAG_INSERT||n.mounting||this.graph.renderer.requestConnectedEdgesUpdate(e,n)}onViewPostponed(e,t,n){return this.graph.renderer.forcePostponedViewUpdate(e,t)}getCellView(e){return null}createCellView(e){const t={graph:this.graph},n=this.getCellView(e);if(n)return new n(e,t);const i=e.view;if(null!=i&&"string"===typeof i){const n=Px.registry.get(i);return n?new n(e,t):Px.registry.onNotFound(i)}return e.isNode()?new fA(e,t):e.isEdge()?new pA(e,t):null}getHTMLComponent(e){let t=e.getHTML();return"string"===typeof t&&(t=NA.componentRegistry.get(t)||t),r.isPlainObject(t)&&(t=t.render),"function"===typeof t?s.call(t,this.graph,e):t}shouldUpdateHTMLComponent(e){let t=e.getHTML();if("string"===typeof t&&(t=NA.componentRegistry.get(t)||t),r.isPlainObject(t)){const n=t.shouldComponentUpdate;return"function"===typeof n?s.call(n,this.graph,e):!!n}return!1}onEdgeLabelRendered(e){}onPortRendered(e){}onToolItemCreated(e){}}rR([iR.hook()],aR.prototype,"createModel",null),rR([iR.hook()],aR.prototype,"createView",null),rR([iR.hook()],aR.prototype,"createRenderer",null),rR([iR.hook()],aR.prototype,"createDefsManager",null),rR([iR.hook()],aR.prototype,"createGridManager",null),rR([iR.hook()],aR.prototype,"createCoordManager",null),rR([iR.hook()],aR.prototype,"createKnobManager",null),rR([iR.hook()],aR.prototype,"createTransform",null),rR([iR.hook()],aR.prototype,"createKnob",null),rR([iR.hook()],aR.prototype,"createTransformManager",null),rR([iR.hook()],aR.prototype,"createHighlightManager",null),rR([iR.hook()],aR.prototype,"createBackgroundManager",null),rR([iR.hook()],aR.prototype,"createClipboard",null),rR([iR.hook()],aR.prototype,"createClipboardManager",null),rR([iR.hook()],aR.prototype,"createSnapline",null),rR([iR.hook()],aR.prototype,"createSnaplineManager",null),rR([iR.hook()],aR.prototype,"createSelection",null),rR([iR.hook()],aR.prototype,"createSelectionManager",null),rR([iR.hook()],aR.prototype,"allowRubberband",null),rR([iR.hook()],aR.prototype,"createHistoryManager",null),rR([iR.hook()],aR.prototype,"createScroller",null),rR([iR.hook()],aR.prototype,"createScrollerManager",null),rR([iR.hook()],aR.prototype,"allowPanning",null),rR([iR.hook()],aR.prototype,"createMiniMap",null),rR([iR.hook()],aR.prototype,"createMiniMapManager",null),rR([iR.hook()],aR.prototype,"createKeyboard",null),rR([iR.hook()],aR.prototype,"createMouseWheel",null),rR([iR.hook()],aR.prototype,"createPrintManager",null),rR([iR.hook()],aR.prototype,"createFormatManager",null),rR([iR.hook()],aR.prototype,"createPanningManager",null),rR([iR.hook()],aR.prototype,"createSizeManager",null),rR([iR.after()],aR.prototype,"onViewUpdated",null),rR([iR.after()],aR.prototype,"onViewPostponed",null),rR([iR.hook()],aR.prototype,"getCellView",null),rR([iR.hook(!0)],aR.prototype,"createCellView",null),rR([iR.hook()],aR.prototype,"getHTMLComponent",null),rR([iR.hook()],aR.prototype,"shouldUpdateHTMLComponent",null),rR([iR.hook()],aR.prototype,"onEdgeLabelRendered",null),rR([iR.hook()],aR.prototype,"onPortRendered",null),rR([iR.hook()],aR.prototype,"onToolItemCreated",null);var sR,lR,cR=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class uR extends hx{constructor(e){super(),this.options=gO.get(e),this.css=new $A(this),this.hook=new aR(this),this.view=this.hook.createView(),this.defs=this.hook.createDefsManager(),this.coord=this.hook.createCoordManager(),this.transform=this.hook.createTransformManager(),this.knob=this.hook.createKnobManager(),this.highlight=this.hook.createHighlightManager(),this.grid=this.hook.createGridManager(),this.background=this.hook.createBackgroundManager(),this.model=this.hook.createModel(),this.renderer=this.hook.createRenderer(),this.clipboard=this.hook.createClipboardManager(),this.snapline=this.hook.createSnaplineManager(),this.selection=this.hook.createSelectionManager(),this.history=this.hook.createHistoryManager(),this.scroller=this.hook.createScrollerManager(),this.minimap=this.hook.createMiniMapManager(),this.keyboard=this.hook.createKeyboard(),this.mousewheel=this.hook.createMouseWheel(),this.print=this.hook.createPrintManager(),this.format=this.hook.createFormatManager(),this.panning=this.hook.createPanningManager(),this.size=this.hook.createSizeManager()}get container(){return this.view.container}get[Symbol.toStringTag](){return uR.toStringTag}isNode(e){return e.isNode()}isEdge(e){return e.isEdge()}resetCells(e,t={}){return this.model.resetCells(e,t),this}clearCells(e={}){return this.model.clear(e),this}toJSON(e={}){return this.model.toJSON(e)}parseJSON(e){return this.model.parseJSON(e)}fromJSON(e,t={}){return this.model.fromJSON(e,t),this}getCellById(e){return this.model.getCell(e)}addNode(e,t={}){return this.model.addNode(e,t)}addNodes(e,t={}){return this.addCell(e.map(e=>eA.isNode(e)?e:this.createNode(e)),t)}createNode(e){return this.model.createNode(e)}removeNode(e,t={}){return this.model.removeCell(e,t)}addEdge(e,t={}){return this.model.addEdge(e,t)}addEdges(e,t={}){return this.addCell(e.map(e=>dA.isEdge(e)?e:this.createEdge(e)),t)}removeEdge(e,t={}){return this.model.removeCell(e,t)}createEdge(e){return this.model.createEdge(e)}addCell(e,t={}){return this.model.addCell(e,t),this}removeCell(e,t={}){return this.model.removeCell(e,t)}removeCells(e,t={}){return this.model.removeCells(e,t)}removeConnectedEdges(e,t={}){return this.model.removeConnectedEdges(e,t)}disconnectConnectedEdges(e,t={}){return this.model.disconnectConnectedEdges(e,t),this}hasCell(e){return this.model.has(e)}getCell(e){return this.model.getCell(e)}getCells(){return this.model.getCells()}getCellCount(){return this.model.total()}getNodes(){return this.model.getNodes()}getEdges(){return this.model.getEdges()}getOutgoingEdges(e){return this.model.getOutgoingEdges(e)}getIncomingEdges(e){return this.model.getIncomingEdges(e)}getConnectedEdges(e,t={}){return this.model.getConnectedEdges(e,t)}getRootNodes(){return this.model.getRoots()}getLeafNodes(){return this.model.getLeafs()}isRootNode(e){return this.model.isRoot(e)}isLeafNode(e){return this.model.isLeaf(e)}getNeighbors(e,t={}){return this.model.getNeighbors(e,t)}isNeighbor(e,t,n={}){return this.model.isNeighbor(e,t,n)}getSuccessors(e,t={}){return this.model.getSuccessors(e,t)}isSuccessor(e,t,n={}){return this.model.isSuccessor(e,t,n)}getPredecessors(e,t={}){return this.model.getPredecessors(e,t)}isPredecessor(e,t,n={}){return this.model.isPredecessor(e,t,n)}getCommonAncestor(...e){return this.model.getCommonAncestor(...e)}getSubGraph(e,t={}){return this.model.getSubGraph(e,t)}cloneSubGraph(e,t={}){return this.model.cloneSubGraph(e,t)}cloneCells(e){return this.model.cloneCells(e)}getNodesFromPoint(e,t){return this.model.getNodesFromPoint(e,t)}getNodesInArea(e,t,n,i,r){return this.model.getNodesInArea(e,t,n,i,r)}getNodesUnderNode(e,t={}){return this.model.getNodesUnderNode(e,t)}searchCell(e,t,n={}){return this.model.search(e,t,n),this}getShortestPath(e,t,n={}){return this.model.getShortestPath(e,t,n)}getAllCellsBBox(){return this.model.getAllCellsBBox()}getCellsBBox(e,t={}){return this.model.getCellsBBox(e,t)}startBatch(e,t={}){this.model.startBatch(e,t)}stopBatch(e,t={}){this.model.stopBatch(e,t)}batchUpdate(e,t,n){const i="string"===typeof e?e:"update",r="string"===typeof e?t:e,o="function"===typeof t?n:t;this.startBatch(i,o);const a=r();return this.stopBatch(i,o),a}isFrozen(){return this.renderer.isFrozen()}freeze(e={}){return this.renderer.freeze(e),this}unfreeze(e={}){return this.renderer.unfreeze(e),this}isAsync(){return this.renderer.isAsync()}setAsync(e){return this.renderer.setAsync(e),this}findView(e){return XT.isCell(e)?this.findViewByCell(e):this.findViewByElem(e)}findViews(e){return wy.isRectangleLike(e)?this.findViewsInArea(e):xy.isPointLike(e)?this.findViewsFromPoint(e):[]}findViewByCell(e){return this.renderer.findViewByCell(e)}findViewByElem(e){return this.renderer.findViewByElem(e)}findViewsFromPoint(e,t){const n="number"===typeof e?{x:e,y:t}:e;return this.renderer.findViewsFromPoint(n)}findViewsInArea(e,t,n,i,r){const o="number"===typeof e?{x:e,y:t,width:n,height:i}:e,a="number"===typeof e?r:t;return this.renderer.findViewsInArea(o,a)}isViewMounted(e){return this.renderer.isViewMounted(e)}getMountedViews(){return this.renderer.getMountedViews()}getUnmountedViews(){return this.renderer.getUnmountedViews()}matrix(e){return"undefined"===typeof e?this.transform.getMatrix():(this.transform.setMatrix(e),this)}resize(e,t){return this.size.resize(e,t),this}resizeGraph(e,t){return this.size.resizeGraph(e,t),this}resizeScroller(e,t){return this.size.resizeScroller(e,t),this}resizePage(e,t){return this.size.resizePage(e,t),this}scale(e,t=e,n=0,i=0){return"undefined"===typeof e?this.transform.getScale():(this.transform.scale(e,t,n,i),this)}zoom(e,t){const n=this.scroller.widget;if(n){if("undefined"===typeof e)return n.zoom();n.zoom(e,t)}else{if("undefined"===typeof e)return this.transform.getZoom();this.transform.zoom(e,t)}return this}zoomTo(e,t={}){const n=this.scroller.widget;n?n.zoom(e,Object.assign(Object.assign({},t),{absolute:!0})):this.transform.zoom(e,Object.assign(Object.assign({},t),{absolute:!0}))}zoomToRect(e,t={}){const n=this.scroller.widget;return n?n.zoomToRect(e,t):this.transform.zoomToRect(e,t),this}zoomToFit(e={}){const t=this.scroller.widget;return t?t.zoomToFit(e):this.transform.zoomToFit(e),this}rotate(e,t,n){return"undefined"===typeof e?this.transform.getRotation():(this.transform.rotate(e,t,n),this)}translate(e,t){return"undefined"===typeof e?this.transform.getTranslation():(this.transform.translate(e,t),this)}translateBy(e,t){const n=this.translate(),i=n.tx+e,r=n.ty+t;return this.translate(i,r)}getArea(){return this.transform.getGraphArea()}getGraphArea(){return this.transform.getGraphArea()}getContentArea(e={}){return this.transform.getContentArea(e)}getContentBBox(e={}){return this.transform.getContentBBox(e)}fitToContent(e,t,n,i){return this.transform.fitToContent(e,t,n,i)}scaleContentToFit(e={}){return this.transform.scaleContentToFit(e),this}center(e){return this.centerPoint(e)}centerPoint(e,t,n){const i=this.scroller.widget;return i?i.centerPoint(e,t,n):this.transform.centerPoint(e,t),this}centerContent(e){const t=this.scroller.widget;return t?t.centerContent(e):this.transform.centerContent(e),this}centerCell(e,t){const n=this.scroller.widget;return n?n.centerCell(e,t):this.transform.centerCell(e),this}positionPoint(e,t,n,i={}){const r=this.scroller.widget;return r?r.positionPoint(e,t,n,i):this.transform.positionPoint(e,t,n),this}positionRect(e,t,n){const i=this.scroller.widget;return i?i.positionRect(e,t,n):this.transform.positionRect(e,t),this}positionCell(e,t,n){const i=this.scroller.widget;return i?i.positionCell(e,t,n):this.transform.positionCell(e,t),this}positionContent(e,t){const n=this.scroller.widget;return n?n.positionContent(e,t):this.transform.positionContent(e,t),this}getClientMatrix(){return this.coord.getClientMatrix()}getClientOffset(){return this.coord.getClientOffset()}getPageOffset(){return this.coord.getPageOffset()}snapToGrid(e,t){return this.coord.snapToGrid(e,t)}pageToLocal(e,t,n,i){return wy.isRectangleLike(e)?this.coord.pageToLocalRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof i?this.coord.pageToLocalRect(e,t,n,i):this.coord.pageToLocalPoint(e,t)}localToPage(e,t,n,i){return wy.isRectangleLike(e)?this.coord.localToPageRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof i?this.coord.localToPageRect(e,t,n,i):this.coord.localToPagePoint(e,t)}clientToLocal(e,t,n,i){return wy.isRectangleLike(e)?this.coord.clientToLocalRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof i?this.coord.clientToLocalRect(e,t,n,i):this.coord.clientToLocalPoint(e,t)}localToClient(e,t,n,i){return wy.isRectangleLike(e)?this.coord.localToClientRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof i?this.coord.localToClientRect(e,t,n,i):this.coord.localToClientPoint(e,t)}localToGraph(e,t,n,i){return wy.isRectangleLike(e)?this.coord.localToGraphRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof i?this.coord.localToGraphRect(e,t,n,i):this.coord.localToGraphPoint(e,t)}graphToLocal(e,t,n,i){return wy.isRectangleLike(e)?this.coord.graphToLocalRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof i?this.coord.graphToLocalRect(e,t,n,i):this.coord.graphToLocalPoint(e,t)}clientToGraph(e,t,n,i){return wy.isRectangleLike(e)?this.coord.clientToGraphRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof i?this.coord.clientToGraphRect(e,t,n,i):this.coord.clientToGraphPoint(e,t)}defineFilter(e){return this.defs.filter(e)}defineGradient(e){return this.defs.gradient(e)}defineMarker(e){return this.defs.marker(e)}getGridSize(){return this.grid.getGridSize()}setGridSize(e){return this.grid.setGridSize(e),this}showGrid(){return this.grid.show(),this}hideGrid(){return this.grid.hide(),this}clearGrid(){return this.grid.clear(),this}drawGrid(e){return this.grid.draw(e),this}updateBackground(){return this.background.update(),this}drawBackground(e,t){const n=this.scroller.widget;return null==n||null!=this.options.background&&t?this.background.draw(e):n.backgroundManager.draw(e),this}clearBackground(e){const t=this.scroller.widget;return null==t||null!=this.options.background&&e?this.background.clear():t.backgroundManager.clear(),this}isClipboardEnabled(){return!this.clipboard.disabled}enableClipboard(){return this.clipboard.enable(),this}disableClipboard(){return this.clipboard.disable(),this}toggleClipboard(e){return null!=e?e!==this.isClipboardEnabled()&&(e?this.enableClipboard():this.disableClipboard()):this.isClipboardEnabled()?this.disableClipboard():this.enableClipboard(),this}isClipboardEmpty(){return this.clipboard.isEmpty()}getCellsInClipboard(){return this.clipboard.cells}cleanClipboard(){return this.clipboard.clean(),this}copy(e,t={}){return this.clipboard.copy(e,t),this}cut(e,t={}){return this.clipboard.cut(e,t),this}paste(e={},t=this){return this.clipboard.paste(e,t)}isHistoryEnabled(){return!this.history.disabled}enableHistory(){return this.history.enable(),this}disableHistory(){return this.history.disable(),this}toggleHistory(e){return null!=e?e!==this.isHistoryEnabled()&&(e?this.enableHistory():this.disableHistory()):this.isHistoryEnabled()?this.disableHistory():this.enableHistory(),this}undo(e={}){return this.history.undo(e),this}undoAndCancel(e={}){return this.history.cancel(e),this}redo(e={}){return this.history.redo(e),this}canUndo(){return this.history.canUndo()}canRedo(){return this.history.canRedo()}cleanHistory(e={}){this.history.clean(e)}isKeyboardEnabled(){return!this.keyboard.disabled}enableKeyboard(){return this.keyboard.enable(),this}disableKeyboard(){return this.keyboard.disable(),this}toggleKeyboard(e){return null!=e?e!==this.isKeyboardEnabled()&&(e?this.enableKeyboard():this.disableKeyboard()):this.isKeyboardEnabled()?this.disableKeyboard():this.enableKeyboard(),this}bindKey(e,t,n){return this.keyboard.on(e,t,n),this}unbindKey(e,t){return this.keyboard.off(e,t),this}isMouseWheelEnabled(){return!this.mousewheel.disabled}enableMouseWheel(){return this.mousewheel.enable(),this}disableMouseWheel(){return this.mousewheel.disable(),this}toggleMouseWheel(e){return null==e?this.isMouseWheelEnabled()?this.disableMouseWheel():this.enableMouseWheel():e?this.enableMouseWheel():this.disableMouseWheel(),this}isPannable(){const e=this.scroller.widget;return e?this.scroller.pannable:this.panning.pannable}enablePanning(){const e=this.scroller.widget;return e?this.scroller.enablePanning():this.panning.enablePanning(),this}disablePanning(){const e=this.scroller.widget;return e?this.scroller.disablePanning():this.panning.disablePanning(),this}togglePanning(e){return null==e?this.isPannable()?this.disablePanning():this.enablePanning():e!==this.isPannable()&&(e?this.enablePanning():this.disablePanning()),this}lockScroller(){var e;null===(e=this.scroller.widget)||void 0===e||e.lock()}unlockScroller(){var e;null===(e=this.scroller.widget)||void 0===e||e.unlock()}updateScroller(){var e;null===(e=this.scroller.widget)||void 0===e||e.update()}getScrollbarPosition(){const e=this.scroller.widget;return e.scrollbarPosition()}setScrollbarPosition(e,t,n){const i=this.scroller.widget;return i.scrollbarPosition(e,t,n),this}scrollToPoint(e,t,n){const i=this.scroller.widget;return i.scrollToPoint(e,t,n),this}scrollToContent(e){const t=this.scroller.widget;return t.scrollToContent(e),this}scrollToCell(e,t){const n=this.scroller.widget;return n.scrollToCell(e,t),this}transitionToPoint(e,t,n){const i=this.scroller.widget;return i.transitionToPoint(e,t,n),this}transitionToRect(e,t={}){const n=this.scroller.widget;return n.transitionToRect(e,t),this}isSelectionEnabled(){return!this.selection.disabled}enableSelection(){return this.selection.enable(),this}disableSelection(){return this.selection.disable(),this}toggleSelection(e){return null!=e?e!==this.isSelectionEnabled()&&(e?this.enableSelection():this.disableSelection()):this.isSelectionEnabled()?this.disableSelection():this.enableSelection(),this}isMultipleSelection(){return this.selection.isMultiple()}enableMultipleSelection(){return this.selection.enableMultiple(),this}disableMultipleSelection(){return this.selection.disableMultiple(),this}toggleMultipleSelection(e){return null!=e?e!==this.isMultipleSelection()&&(e?this.enableMultipleSelection():this.disableMultipleSelection()):this.isMultipleSelection()?this.disableMultipleSelection():this.enableMultipleSelection(),this}isSelectionMovable(){return!1!==this.selection.widget.options.movable}enableSelectionMovable(){return this.selection.widget.options.movable=!0,this}disableSelectionMovable(){return this.selection.widget.options.movable=!1,this}toggleSelectionMovable(e){return null!=e?e!==this.isSelectionMovable()&&(e?this.enableSelectionMovable():this.disableSelectionMovable()):this.isSelectionMovable()?this.disableSelectionMovable():this.enableSelectionMovable(),this}isRubberbandEnabled(){return!this.selection.rubberbandDisabled}enableRubberband(){return this.selection.enableRubberband(),this}disableRubberband(){return this.selection.disableRubberband(),this}toggleRubberband(e){return null!=e?e!==this.isRubberbandEnabled()&&(e?this.enableRubberband():this.disableRubberband()):this.isRubberbandEnabled()?this.disableRubberband():this.enableRubberband(),this}isStrictRubberband(){return!0===this.selection.widget.options.strict}enableStrictRubberband(){return this.selection.widget.options.strict=!0,this}disableStrictRubberband(){return this.selection.widget.options.strict=!1,this}toggleStrictRubberband(e){return null!=e?e!==this.isStrictRubberband()&&(e?this.enableStrictRubberband():this.disableStrictRubberband()):this.isStrictRubberband()?this.disableStrictRubberband():this.enableStrictRubberband(),this}setRubberbandModifiers(e){this.selection.setModifiers(e)}setSelectionFilter(e){return this.selection.setFilter(e),this}setSelectionDisplayContent(e){return this.selection.setContent(e),this}isSelectionEmpty(){return this.selection.isEmpty()}cleanSelection(){return this.selection.clean(),this}resetSelection(e){return this.selection.reset(e),this}getSelectedCells(){return this.selection.cells}getSelectedCellCount(){return this.selection.length}isSelected(e){return this.selection.isSelected(e)}select(e,t={}){return this.selection.select(e,t),this}unselect(e,t={}){return this.selection.unselect(e,t),this}isSnaplineEnabled(){return!this.snapline.widget.disabled}enableSnapline(){return this.snapline.widget.enable(),this}disableSnapline(){return this.snapline.widget.disable(),this}toggleSnapline(e){if(null==e)return this.isSnaplineEnabled()?this.disableSnapline():this.enableSnapline(),this;e!==this.isSnaplineEnabled()&&(e?this.enableSnapline():this.disableSnapline())}hideSnapline(){return this.snapline.widget.hide(),this}setSnaplineFilter(e){return this.snapline.widget.setFilter(e),this}isSnaplineOnResizingEnabled(){return!0===this.snapline.widget.options.resizing}enableSnaplineOnResizing(){return this.snapline.widget.options.resizing=!0,this}disableSnaplineOnResizing(){return this.snapline.widget.options.resizing=!1,this}toggleSnaplineOnResizing(e){return null!=e?e!==this.isSnaplineOnResizingEnabled()&&(e?this.enableSnaplineOnResizing():this.disableSnaplineOnResizing()):this.isSnaplineOnResizingEnabled()?this.disableSnaplineOnResizing():this.enableSnaplineOnResizing(),this}isSharpSnapline(){return!0===this.snapline.widget.options.sharp}enableSharpSnapline(){return this.snapline.widget.options.sharp=!0,this}disableSharpSnapline(){return this.snapline.widget.options.sharp=!1,this}toggleSharpSnapline(e){return null!=e?e!==this.isSharpSnapline()&&(e?this.enableSharpSnapline():this.disableSharpSnapline()):this.isSharpSnapline()?this.disableSharpSnapline():this.enableSharpSnapline(),this}getSnaplineTolerance(){return this.snapline.widget.options.tolerance}setSnaplineTolerance(e){return this.snapline.widget.options.tolerance=e,this}removeTools(){return this.emit("tools:remove"),this}hideTools(){return this.emit("tools:hide"),this}showTools(){return this.emit("tools:show"),this}toSVG(e,t={}){this.format.toSVG(e,t)}toDataURL(e,t){this.format.toDataURL(e,t)}toPNG(e,t={}){this.format.toPNG(e,t)}toJPEG(e,t={}){this.format.toJPEG(e,t)}printPreview(e){this.print.show(e)}dispose(){this.clearCells(),this.off(),this.css.dispose(),this.hook.dispose(),this.defs.dispose(),this.grid.dispose(),this.coord.dispose(),this.transform.dispose(),this.knob.dispose(),this.highlight.dispose(),this.background.dispose(),this.clipboard.dispose(),this.snapline.dispose(),this.selection.dispose(),this.history.dispose(),this.keyboard.dispose(),this.mousewheel.dispose(),this.print.dispose(),this.format.dispose(),this.minimap.dispose(),this.panning.dispose(),this.scroller.dispose(),this.view.dispose(),this.renderer.dispose(),this.size.dispose()}}cR([kA.checkScroller()],uR.prototype,"lockScroller",null),cR([kA.checkScroller()],uR.prototype,"unlockScroller",null),cR([kA.checkScroller()],uR.prototype,"updateScroller",null),cR([kA.checkScroller()],uR.prototype,"getScrollbarPosition",null),cR([kA.checkScroller()],uR.prototype,"setScrollbarPosition",null),cR([kA.checkScroller()],uR.prototype,"scrollToPoint",null),cR([kA.checkScroller()],uR.prototype,"scrollToContent",null),cR([kA.checkScroller()],uR.prototype,"scrollToCell",null),cR([kA.checkScroller()],uR.prototype,"transitionToPoint",null),cR([kA.checkScroller()],uR.prototype,"transitionToRect",null),cR([hx.dispose()],uR.prototype,"dispose",null),function(e){e.View=PA,e.Hook=aR,e.Renderer=nO,e.Keyboard=WO,e.MouseWheel=qO,e.BaseManager=MA,e.DefsManager=_O,e.GridManager=SO,e.CoordManager=EO,e.PrintManager=QO,e.FormatManager=XO,e.MiniMapManager=UO,e.HistoryManager=VO,e.SnaplineManager=wO,e.ScrollerManager=AO,e.ClipboardManager=NO,e.TransformManager=kO,e.HighlightManager=IO,e.BackgroundManager=rO,e.SelectionManager=PO}(uR||(uR={})),function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&null!=i.hook&&null!=i.view&&null!=i.model}e.toStringTag=`X6.${e.name}`,e.isGraph=t}(uR||(uR={})),function(e){function t(t,n){const i=t instanceof HTMLElement?new e({container:t}):new e(t);return null!=n&&i.fromJSON(n),i}e.render=t}(uR||(uR={})),function(e){e.registerNode=eA.registry.register,e.registerEdge=dA.registry.register,e.registerView=Px.registry.register,e.registerAttr=YE.registry.register,e.registerGrid=ZE.registry.register,e.registerFilter=hC.registry.register,e.registerNodeTool=Jx.registry.register,e.registerEdgeTool=ew.registry.register,e.registerBackground=vC.registry.register,e.registerHighlighter=OC.registry.register,e.registerPortLayout=UC.registry.register,e.registerPortLabelLayout=ax.registry.register,e.registerMarker=NE.registry.register,e.registerRouter=wT.registry.register,e.registerConnector=zT.registry.register,e.registerAnchor=yw.registry.register,e.registerEdgeAnchor=Tw.registry.register,e.registerConnectionPoint=Lw.registry.register,e.registerConnectionStrategy=Nx.registry.register,e.registerHTMLComponent=NA.componentRegistry.register}(uR||(uR={})),function(e){e.unregisterNode=eA.registry.unregister,e.unregisterEdge=dA.registry.unregister,e.unregisterView=Px.registry.unregister,e.unregisterAttr=YE.registry.unregister,e.unregisterGrid=ZE.registry.unregister,e.unregisterFilter=hC.registry.unregister,e.unregisterNodeTool=Jx.registry.unregister,e.unregisterEdgeTool=ew.registry.unregister,e.unregisterBackground=vC.registry.unregister,e.unregisterHighlighter=OC.registry.unregister,e.unregisterPortLayout=UC.registry.unregister,e.unregisterPortLabelLayout=ax.registry.unregister,e.unregisterMarker=NE.registry.unregister,e.unregisterRouter=wT.registry.unregister,e.unregisterConnector=zT.registry.unregister,e.unregisterAnchor=yw.registry.unregister,e.unregisterEdgeAnchor=Tw.registry.unregister,e.unregisterConnectionPoint=Lw.registry.unregister,e.unregisterConnectionStrategy=Nx.registry.unregister,e.unregisterHTMLComponent=NA.componentRegistry.unregister}(uR||(uR={}));class dR{constructor(){this.cells=[]}copy(e,t,n={}){this.options=Object.assign({},n);const r=_A.isModel(t)?t:t.model,o=r.cloneSubGraph(e,n);this.cells=i.sortBy(Object.keys(o).map(e=>o[e]),e=>e.isEdge()?2:1),this.serialize(n)}cut(e,t,n={}){this.copy(e,t,n);const i=uR.isGraph(t)?t.model:t;i.batchUpdate("cut",()=>{e.forEach(e=>e.remove())})}paste(e,t={}){const n=Object.assign(Object.assign({},t),this.options),{offset:i,edgeProps:r,nodeProps:o}=n;let a=20,s=20;i&&(a="number"===typeof i?i:i.dx,s="number"===typeof i?i:i.dy),this.deserialize(n);const l=this.cells;l.forEach(e=>{e.model=null,e.removeProp("zIndex"),(a||s)&&e.translate(a,s),o&&e.isNode()&&e.prop(o),r&&e.isEdge()&&e.prop(r)});const c=uR.isGraph(e)?e.model:e;return c.batchUpdate("paste",()=>{c.addCells(this.cells)}),this.copy(l,e,t),l}serialize(e){!1!==e.useLocalStorage&&sR.save(this.cells)}deserialize(e){if(e.useLocalStorage){const e=sR.fetch();e&&(this.cells=e)}}isEmpty(){return this.cells.length<=0}clean(){this.options={},this.cells=[],sR.clean()}}(function(e){const t=`${_C.prefixCls}.clipboard.cells`;function n(e){if(window.localStorage){const n=e.map(e=>e.toJSON());localStorage.setItem(t,JSON.stringify(n))}}function i(){if(window.localStorage){const e=localStorage.getItem(t),n=e?JSON.parse(e):[];if(n)return _A.fromJSON(n)}}function r(){window.localStorage&&localStorage.removeItem(t)}e.save=n,e.fetch=i,e.clean=r})(sR||(sR={}));class hR{constructor(e){this.halo=e}get options(){return this.halo.options}get graph(){return this.halo.graph}get model(){return this.halo.model}get view(){return this.halo.view}get cell(){return this.halo.cell}get node(){return this.cell}getPresets(){return{className:"type-node",handles:[{name:"remove",position:"nw",events:{mousedown:this.removeCell.bind(this)},icon:null},{name:"resize",position:"se",events:{mousedown:this.startResize.bind(this),mousemove:this.doResize.bind(this),mouseup:this.stopResize.bind(this)},icon:null},{name:"clone",position:"n",events:{mousedown:this.startClone.bind(this),mousemove:this.doClone.bind(this),mouseup:this.stopClone.bind(this)},icon:null},{name:"link",position:"e",events:{mousedown:this.startLink.bind(this),mousemove:this.doLink.bind(this),mouseup:this.stopLink.bind(this)},icon:null},{name:"fork",position:"ne",events:{mousedown:this.startFork.bind(this),mousemove:this.doFork.bind(this),mouseup:this.stopFork.bind(this)},icon:null},{name:"unlink",position:"w",events:{mousedown:this.unlink.bind(this)},icon:null},{name:"rotate",position:"sw",events:{mousedown:this.startRotate.bind(this),mousemove:this.doRotate.bind(this),mouseup:this.stopRotate.bind(this)},icon:null}],bbox(e){if(this.options.useCellGeometry){const t=e.cell;return t.getBBox()}return e.getBBox()},content(e){const t=o.template("x: <%= x %>, y: <%= y %>, width: <%= width %>, height: <%= height %>, angle: <%= angle %>"),n=e.cell,i=n.getBBox();return t({x:Math.floor(i.x),y:Math.floor(i.y),width:Math.floor(i.width),height:Math.floor(i.height),angle:Math.floor(n.getAngle())})},magnet(e){return e.container},tinyThreshold:40,smallThreshold:80,loopEdgePreferredSide:"top",loopEdgeWidth:40,rotateGrid:15,rotateEmbeds:!1}}removeCell(){this.model.removeConnectedEdges(this.cell),this.cell.remove()}startLink({x:e,y:t}){this.halo.startBatch();const n=this.graph,i=this.createEdgeConnectedToSource();i.setTarget({x:e,y:t}),this.model.addEdge(i,{validation:!1,halo:this.halo.cid,async:!1}),n.view.undelegateEvents(),this.edgeView=n.renderer.findViewByCell(i),this.edgeView.prepareArrowheadDragging("target",{x:e,y:t,fallbackAction:"remove"})}createEdgeConnectedToSource(){const e=this.getMagnet(this.view,"source"),t=this.getEdgeTerminal(this.view,e),n=this.graph.hook.getDefaultEdge(this.view,e);return n.setSource(t),n}getMagnet(e,t){const n=this.options.magnet;if("function"===typeof n){const i=s.call(n,this.halo,e,t);if(i instanceof SVGElement)return i}throw new Error("`magnet()` has to return an SVGElement")}getEdgeTerminal(e,t){const n={cell:e.cell.id};if(t!==e.container){const i=t.getAttribute("port");i?n.port=i:n.selector=e.getSelector(t)}return n}doLink({e:e,x:t,y:n}){this.edgeView&&this.edgeView.onMouseMove(e,t,n)}stopLink({e:e,x:t,y:n}){const i=this.edgeView;if(i){i.onMouseUp(e,t,n);const r=i.cell;r.hasLoop()&&this.makeLoopEdge(r),this.halo.stopBatch(),this.halo.trigger("action:edge:addde",{edge:r}),this.edgeView=null}this.graph.view.delegateEvents()}makeLoopEdge(e){let t=null,n=null;const i=this.options.loopEdgeWidth,r=this.graph.options,o=new wy(0,0,r.width,r.height),a=this.graph.graphToLocal(this.view.getBBox()),s=[this.options.loopEdgePreferredSide,"top","bottom","left","right"].some(e=>{let r=null,s=0,l=0;switch(e){case"top":r=new xy(a.x+a.width/2,a.y-i),s=i/2;break;case"bottom":r=new xy(a.x+a.width/2,a.y+a.height+i),s=i/2;break;case"left":r=new xy(a.x-i,a.y+a.height/2),l=i/2;break;case"right":r=new xy(a.x+a.width+i,a.y+a.height/2),l=i/2;break;default:break}return!!r&&(t=r.translate(-s,-l),n=r.translate(s,l),o.containsPoint(t)&&o.containsPoint(n))});s&&t&&n&&e.setVertices([t,n])}startResize({e:e}){this.halo.startBatch(),this.flip=[1,0,0,1,1,0,0,1][Math.floor(my.normalize(this.node.getAngle())/45)],this.view.addClass("node-resizing"),cO("node:resize",e,this.view)}doResize({e:e,dx:t,dy:n}){const i=this.node.getSize(),r=Math.max(i.width+(this.flip?t:n),1),o=Math.max(i.height+(this.flip?n:t),1);this.node.resize(r,o,{absolute:!0}),cO("node:resizing",e,this.view)}stopResize({e:e}){this.view.removeClass("node-resizing"),cO("node:resized",e,this.view),this.halo.stopBatch()}startClone({e:e,x:t,y:n}){this.halo.startBatch();const i=this.options,r=i.clone(this.cell,{clone:!0});if(!XT.isCell(r))throw new Error("option 'clone()' has to return a cell");this.centerNodeAtCursor(r,t,n),this.model.addCell(r,{halo:this.halo.cid,async:!1});const o=this.graph.renderer.findViewByCell(r);o.onMouseDown(e,t,n),this.halo.setEventData(e,{cloneView:o})}centerNodeAtCursor(e,t,n){const i=e.getBBox().getCenter(),r=t-i.x,o=n-i.y;e.translate(r,o)}doClone({e:e,x:t,y:n}){const i=this.halo.getEventData(e).cloneView;i&&i.onMouseMove(e,t,n)}stopClone({e:e,x:t,y:n}){const i=this.halo.getEventData(e).cloneView;i&&i.onMouseUp(e,t,n),this.halo.stopBatch()}startFork({e:e,x:t,y:n}){this.halo.startBatch();const i=this.options.clone(this.cell,{fork:!0});if(!XT.isCell(i))throw new Error("option 'clone()' has to return a cell");this.centerNodeAtCursor(i,t,n),this.model.addCell(i,{halo:this.halo.cid,async:!1});const r=this.createEdgeConnectedToSource(),o=this.graph.renderer.findViewByCell(i),a=this.getMagnet(o,"target"),s=this.getEdgeTerminal(o,a);r.setTarget(s),this.model.addEdge(r,{halo:this.halo.cid,async:!1}),o.onMouseDown(e,t,n),this.halo.setEventData(e,{cloneView:o})}doFork({e:e,x:t,y:n}){const i=this.halo.getEventData(e).cloneView;i&&i.onMouseMove(e,t,n)}stopFork({e:e,x:t,y:n}){const i=this.halo.getEventData(e).cloneView;i&&i.onMouseUp(e,t,n),this.halo.stopBatch()}startRotate({e:e,x:t,y:n}){this.halo.startBatch();const i=this.node.getBBox().getCenter(),r=[this.node];this.options.rotateEmbeds&&this.node.getDescendants({deep:!0}).reduce((e,t)=>{return t.isNode()&&e.push(t),e},r),this.halo.setEventData(e,{center:i,nodes:r,rotateStartAngles:r.map(e=>e.getAngle()),clientStartAngle:new xy(t,n).theta(i)}),r.forEach(t=>{const n=this.graph.findViewByCell(t);n&&(n.addClass("node-rotating"),cO("node:rotate",e,n))})}doRotate({e:e,x:t,y:n}){const i=this.halo.getEventData(e),r=i.clientStartAngle-new xy(t,n).theta(i.center);i.nodes.forEach((t,n)=>{const o=i.rotateStartAngles[n],a=yC.snapToGrid(o+r,this.options.rotateGrid);t.rotate(a,{absolute:!0,center:i.center,halo:this.halo.cid}),cO("node:rotating",e,this.graph.findViewByCell(t))})}stopRotate({e:e}){const t=this.halo.getEventData(e);t.nodes.forEach(t=>{const n=this.graph.findViewByCell(t);n.removeClass("node-rotating"),cO("node:rotated",e,n)}),this.halo.stopBatch()}unlink(){this.halo.startBatch(),this.model.removeConnectedEdges(this.cell),this.halo.stopBatch()}}class pR{constructor(e){this.halo=e}get options(){return this.halo.options}get graph(){return this.halo.graph}get model(){return this.halo.model}get view(){return this.halo.view}get cell(){return this.halo.cell}get edge(){return this.cell}getPresets(){return{className:"type-edge",handles:[{name:"remove",position:"nw",icon:null,events:{mousedown:this.removeEdge.bind(this)}},{name:"direction",position:"se",icon:null,events:{mousedown:this.directionSwap.bind(this)}}],content:!1,bbox(e){return e.graph.localToGraph(e.getPointAtRatio(.5))},tinyThreshold:-1,smallThreshold:-1}}removeEdge(){this.cell.remove()}directionSwap(){const e=this.edge.getSource(),t=this.edge.getTarget();this.edge.prop({source:t,target:e})}}class fR extends WA{get type(){return this.options.type||"surround"}get handleOptions(){return this.options}init(e){this.options=r.merge(fR.defaultOptions,this.cell.isNode()?new hR(this).getPresets():this.cell.isEdge()?new pR(this).getPresets():null,e),this.render(),this.initHandles(),this.update(),this.startListening()}startListening(){const e=this.model,t=this.graph,n=this.view.cell;n.on("removed",this.remove,this),e.on("reseted",this.remove,this),t.on("halo:destroy",this.remove,this),e.on("*",this.update,this),t.on("scale",this.update,this),t.on("translate",this.update,this),super.startListening()}stopListening(){const e=this.model,t=this.graph,n=this.view.cell;this.undelegateEvents(),n.off("removed",this.remove,this),e.off("reseted",this.remove,this),t.off("halo:destroy",this.remove,this),e.off("*",this.update,this),t.off("scale",this.update,this),t.off("translate",this.update,this),super.stopListening()}render(){const e=this.options,t=this.prefixClassName("widget-halo");return this.view.addClass(lR.NODE_CLS),this.container=document.createElement("div"),this.$container=this.$(this.container).addClass(t).attr("data-shape",this.view.cell.shape),e.className&&this.$container.addClass(e.className),this.$handleContainer=this.$("
").addClass(`${t}-handles`).appendTo(this.container),this.$content=this.$("
").addClass(`${t}-content`).appendTo(this.container),this.$container.appendTo(this.graph.container),this}remove(){return this.stopBatch(),this.view.removeClass(lR.NODE_CLS),super.remove()}update(){if(this.isRendered()){this.updateContent();const e=this.getBBox(),t=this.options.tinyThreshold||0,n=this.options.smallThreshold||0;this.$handleContainer.toggleClass(`${this.handleClassName}-tiny`,e.width0;this.$handleContainer.children(".unlink").toggleClass("hidden",!e)}startBatch(){this.model.startBatch("halo",{halo:this.cid})}stopBatch(){this.model.hasActiveBatch("halo")&&this.model.stopBatch("halo",{halo:this.cid})}}(function(e){e.defaultOptions={type:"surround",clearAll:!0,clearOnBlankMouseDown:!0,useCellGeometry:!1,clone:e=>e.clone().removeZIndex()}})(fR||(fR={})),Object.getOwnPropertyNames(UA.prototype).forEach(e=>{"constructor"!==e&&Object.defineProperty(fR.prototype,e,Object.getOwnPropertyDescriptor(UA.prototype,e))}),function(e){e.NODE_CLS="has-widget-halo"}(lR||(lR={}));var gR,mR,vR,_R=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class yR extends Ex{constructor(e){super(),this.options=Object.assign(Object.assign({},yR.defaults),e),this.container=document.createElement("div"),this.$container=this.$(this.container).addClass(this.prefixClassName("widget-dnd")),this.draggingGraph=new uR(Object.assign(Object.assign({},this.options.delegateGraphOptions),{container:document.createElement("div"),width:1,height:1})),this.$container.append(this.draggingGraph.container)}get targetScroller(){const e=this.options.target;return uR.isGraph(e)?e.scroller.widget:e}get targetGraph(){const e=this.options.target;return uR.isGraph(e)?e:e.graph}get targetModel(){return this.targetGraph.model}get snapline(){return this.targetGraph.snapline.widget}start(e,t){const n=t;n.preventDefault(),this.targetModel.startBatch("dnd"),this.$container.addClass("dragging").appendTo(this.options.containerParent||document.body),this.sourceNode=e,this.prepareDragging(e,n.clientX,n.clientY);const i=this.updateNodePosition(n.clientX,n.clientY);this.isSnaplineEnabled()&&(this.snapline.captureCursorOffset({e:n,node:e,cell:e,view:this.draggingView,x:i.x,y:i.y}),this.draggingNode.on("change:position",this.snap,this)),this.delegateDocumentEvents(yR.documentEvents,n.data)}isSnaplineEnabled(){return this.snapline&&!this.snapline.disabled}prepareDragging(e,t,n){const i=this.draggingGraph,r=i.model,o=this.options.getDragNode(e,{sourceNode:e,draggingGraph:i,targetGraph:this.targetGraph});o.position(0,0);let a=5;if(this.isSnaplineEnabled()&&(a+=this.snapline.options.tolerance||0),this.isSnaplineEnabled()||this.options.scaled){const e=this.targetGraph.transform.getScale();i.scale(e.sx,e.sy),a*=Math.max(e.sx,e.sy)}else i.scale(1,1);this.clearDragging(),this.options.animation&&this.$container.stop(!0,!0),r.resetCells([o]);const s=i.findViewByCell(o);s.undelegateEvents(),s.cell.off("changed"),i.fitToContent({padding:a,allowNewOrigin:"any"});const l=s.getBBox();this.geometryBBox=s.getBBox({useCellGeometry:!0}),this.delta=this.geometryBBox.getTopLeft().diff(l.getTopLeft()),this.draggingNode=o,this.draggingView=s,this.draggingBBox=o.getBBox(),this.padding=a,this.originOffset=this.updateGraphPosition(t,n)}updateGraphPosition(e,t){const n=document.body.scrollTop||document.documentElement.scrollTop,i=this.delta,r=this.geometryBBox,o=this.padding||5,a={left:e-i.x-r.width/2-o,top:t-i.y-r.height/2-o+n};return this.draggingGraph&&this.$container.offset(a),a}updateNodePosition(e,t){const n=this.targetGraph.clientToLocal(e,t),i=this.draggingBBox;return n.x-=i.width/2,n.y-=i.height/2,this.draggingNode.position(n.x,n.y),n}snap({cell:e,current:t,options:n}){const i=e;if(n.snapped){const e=this.draggingBBox;i.position(e.x+n.tx,e.y+n.ty,{silent:!0}),this.draggingView.translate(),i.position(t.x,t.y,{silent:!0}),this.snapOffset={x:n.tx,y:n.ty}}else this.snapOffset=null}onDragging(e){const t=this.draggingView;if(t){e.preventDefault();const n=this.normalizeEvent(e),i=n.clientX,r=n.clientY;this.updateGraphPosition(i,r);const o=this.updateNodePosition(i,r),a=this.targetGraph.options.embedding.enabled,s=(a||this.isSnaplineEnabled())&&this.isInsideValidArea({x:i,y:r});if(a){t.setEventData(n,{graph:this.targetGraph,candidateEmbedView:this.candidateEmbedView});const e=t.getEventData(n);s?t.processEmbedding(n,e):t.clearEmbedding(e),this.candidateEmbedView=e.candidateEmbedView}this.isSnaplineEnabled()&&(s?this.snapline.snapOnMoving({e:n,view:t,x:o.x,y:o.y}):this.snapline.hide())}}onDragEnd(e){const t=this.draggingNode;if(t){const n=this.normalizeEvent(e),i=this.draggingView,r=this.draggingBBox,o=this.snapOffset;let a=r.x,l=r.y;o&&(a+=o.x,l+=o.y),t.position(a,l,{silent:!0});const c=this.drop(t,{x:n.clientX,y:n.clientY}),u=e=>{e?(this.onDropped(t),this.targetGraph.options.embedding.enabled&&i&&(i.setEventData(n,{cell:e,graph:this.targetGraph,candidateEmbedView:this.candidateEmbedView}),i.finalizeEmbedding(n,i.getEventData(n)))):this.onDropInvalid(),this.candidateEmbedView=null,this.targetModel.stopBatch("dnd")};s.isAsync(c)?(this.undelegateDocumentEvents(),c.then(u)):u(c)}}clearDragging(){this.draggingNode&&(this.sourceNode=null,this.draggingNode.remove(),this.draggingNode=null,this.draggingView=null,this.delta=null,this.padding=null,this.snapOffset=null,this.originOffset=null,this.undelegateDocumentEvents())}onDropped(e){this.draggingNode===e&&(this.clearDragging(),this.$container.removeClass("dragging").remove())}onDropInvalid(){const e=this.draggingNode;if(e){const t=this.options.animation;if(t){const n="object"===typeof t&&t.duration||150,i="object"===typeof t&&t.easing||"swing";this.draggingView=null,this.$container.animate(this.originOffset,n,i,()=>this.onDropped(e))}else this.onDropped(e)}}isInsideValidArea(e){let t;const n=this.targetGraph,i=this.targetScroller;if(i)if(i.options.autoResize)t=this.getDropArea(i.container);else{const e=this.getDropArea(i.container);t=this.getDropArea(n.container).intersectsWithRect(e)}else t=this.getDropArea(n.container);return t&&t.containsPoint(e)}getDropArea(e){const t=this.$(e),n=t.offset(),i=document.body.scrollTop||document.documentElement.scrollTop,r=document.body.scrollLeft||document.documentElement.scrollLeft;return wy.create({x:n.left+parseInt(t.css("border-left-width"),10)-r,y:n.top+parseInt(t.css("border-top-width"),10)-i,width:t.innerWidth(),height:t.innerHeight()})}drop(e,t){if(this.isInsideValidArea(t)){const n=this.targetGraph,i=n.model,r=n.clientToLocal(t),o=this.sourceNode,a=this.options.getDropNode(e,{sourceNode:o,draggingNode:e,targetGraph:this.targetGraph,draggingGraph:this.draggingGraph}),l=a.getBBox();r.x+=l.x-l.width/2,r.y+=l.y-l.height/2;const c=this.snapOffset?1:n.getGridSize();a.position(yC.snapToGrid(r.x,c),yC.snapToGrid(r.y,c)),a.removeZIndex();const u=this.options.validateNode,d=!u||u(a,{sourceNode:o,draggingNode:e,droppingNode:a,targetGraph:n,draggingGraph:this.draggingGraph});return"boolean"===typeof d?d?(i.addCell(a,{stencil:this.cid}),a):null:s.toDeferredBoolean(d).then(e=>{return e?(i.addCell(a,{stencil:this.cid}),a):null})}return null}onRemove(){this.draggingGraph&&(this.draggingGraph.view.remove(),this.draggingGraph.dispose())}dispose(){this.remove()}}function bR(e,t={}){const n=_A.isModel(e)?e:(new _A).resetCells(e,{sort:!1,dryrun:!0}),i=n.getNodes(),r=t.columns||1,o=Math.ceil(i.length/r),a=t.dx||0,s=t.dy||0,l=!1!==t.center,c=!0===t.resizeToFit,u=t.marginX||0,d=t.marginY||0,h=[];let p=t.columnWidth;if("compact"===p)for(let _=0;_{const i=n%r,o=Math.floor(n/r),u=h[i],d=g[o];let p=0,m=0,_=e.getSize();if(c){let n=u-2*a,i=d-2*s;const r=_.height*(_.width?n/_.width:1),o=_.width*(_.height?i/_.height:1);de.clone(),getDropNode:e=>e.clone()},e.documentEvents={mousemove:"onDragging",touchmove:"onDragging",mouseup:"onDragEnd",touchend:"onDragEnd",touchcancel:"onDragEnd"}}(yR||(yR={})),function(e){function t(e,t){return e.reduce((e,n)=>Math.max(n.getSize()[t],e),0)}function n(e,t,n){const i=[];for(let r=n*t,o=r+n;r{return e.push(e[n]+t),e},[t||0])}e.getMaxDim=t,e.getNodesInRow=n,e.getNodesInColumn=i,e.accumulate=r}(gR||(gR={}));class SR extends Ex{constructor(e){if(super(),this.graphs={},this.$groups={},this.options=Object.assign(Object.assign({},SR.defaultOptions),e),this.dnd=new yR(this.options),this.onSearch=s.debounce(this.onSearch,200),this.container=document.createElement("div"),this.$container=this.$(this.container).addClass(this.prefixClassName(mR.base)).attr("data-not-found-text",this.options.notFoundText||"No matches found"),this.options.collapsable=e.collapsable&&e.groups&&e.groups.some(e=>!1!==e.collapsable),this.options.collapsable){this.$container.addClass("collapsable");const t=e.groups&&e.groups.every(e=>e.collapsed||!1===e.collapsable);t&&this.$container.addClass("collapsed")}this.$("
").addClass(this.prefixClassName(mR.title)).html(this.options.title).appendTo(this.$container),e.search&&this.$container.addClass("searchable").append(this.renderSearch()),this.$content=this.$("
").addClass(this.prefixClassName(mR.content)).appendTo(this.$container);const t=e.stencilGraphOptions||{};if(e.groups&&e.groups.length)e.groups.forEach(n=>{const i=this.$("
").addClass(this.prefixClassName(mR.group)).attr("data-name",n.name);(null==n.collapsable&&e.collapsable||!1!==n.collapsable)&&i.addClass("collapsable"),i.toggleClass("collapsed",!0===n.collapsed);const r=this.$("

").addClass(this.prefixClassName(mR.groupTitle)).html(n.title||n.name),o=this.$("
").addClass(this.prefixClassName(mR.groupContent)),a=n.graphOptions,s=new uR(Object.assign(Object.assign(Object.assign({},t),a),{container:document.createElement("div"),model:t.model||new _A,width:n.graphWidth||e.stencilGraphWidth,height:n.graphHeight||e.stencilGraphHeight,interacting:!1,preventDefaultBlankAction:!1}));o.append(s.container),i.append(r,o).appendTo(this.$content),this.$groups[n.name]=i,this.graphs[n.name]=s});else{const n=new uR(Object.assign(Object.assign({},t),{container:document.createElement("div"),model:t.model||new _A,width:e.stencilGraphWidth,height:e.stencilGraphHeight,interacting:!1,preventDefaultBlankAction:!1}));this.$content.append(n.container),this.graphs[vR.defaultGroupName]=n}return this.startListening(),this}get targetScroller(){const e=this.options.target;return uR.isGraph(e)?e.scroller.widget:e}get targetGraph(){const e=this.options.target;return uR.isGraph(e)?e:e.graph}get targetModel(){return this.targetGraph.model}renderSearch(){return this.$("
").addClass(this.prefixClassName(mR.search)).append(this.$("").attr({type:"search",placeholder:this.options.placeholder||"Search"}).addClass(this.prefixClassName(mR.searchText)))}startListening(){const e=this.prefixClassName(mR.title),t=this.prefixClassName(mR.searchText),n=this.prefixClassName(mR.groupTitle);this.delegateEvents({[`click .${e}`]:"onTitleClick",[`touchstart .${e}`]:"onTitleClick",[`click .${n}`]:"onGroupTitleClick",[`touchstart .${n}`]:"onGroupTitleClick",[`input .${t}`]:"onSearch",[`focusin .${t}`]:"onSearchFocusIn",[`focusout .${t}`]:"onSearchFocusOut"}),Object.keys(this.graphs).forEach(e=>{const t=this.graphs[e];t.on("cell:mousedown",this.onDragStart,this)})}stopListening(){this.undelegateEvents(),Object.keys(this.graphs).forEach(e=>{const t=this.graphs[e];t.off("cell:mousedown",this.onDragStart,this)})}load(e,t){return Array.isArray(e)?this.loadGroup(e,t):this.options.groups&&Object.keys(this.options.groups).forEach(t=>{e[t]&&this.loadGroup(e[t],t)}),this}loadGroup(e,t){const n=this.getModel(t);if(n){const t=e.map(e=>eA.isNode(e)?e:eA.create(e));n.resetCells(t)}const i=this.getGroup(t);let r=this.options.stencilGraphHeight;i&&null!=i.graphHeight&&(r=i.graphHeight);const o=i&&i.layout||this.options.layout;if(o&&n&&s.call(o,this,n,i),!r){const e=this.getGraph(t);e.fitToContent({minWidth:e.options.width,gridHeight:1,padding:i&&i.graphPadding||this.options.stencilGraphPadding||10})}return this}onDragStart(e){const{e:t,node:n}=e;this.dnd.start(n,t)}filter(e,t){const n=Object.keys(this.graphs).reduce((n,i)=>{const r=this.graphs[i],o=i===vR.defaultGroupName?null:i,a=r.model.getNodes().filter(n=>{let i=!1;i="function"===typeof t?s.call(t,this,n,e,o,this):"boolean"===typeof t?t:this.isCellMatched(n,e,t,e.toLowerCase()!==e);const a=r.renderer.findViewByCell(n);return a&&a.$(a.container).toggleClass("unmatched",!i),i}),l=a.length>0,c=this.options,u=new _A;return u.resetCells(a),c.layout&&s.call(c.layout,this,u,this.getGroup(i)),this.$groups[i]&&this.$groups[i].toggleClass("unmatched",!l),r.fitToContent({gridWidth:1,gridHeight:1,padding:c.stencilGraphPadding||10}),n||l},!1);this.$container.toggleClass("not-found",!n)}isCellMatched(e,t,n,i){return!t||!n||Object.keys(n).some(r=>{if("*"===r||e.shape===r){const o=n[r];if("boolean"===typeof o)return o;const a=Array.isArray(o)?o:[o];return a.some(n=>{let r=e.getPropByPath(n);return null!=r&&(r=`${r}`,i&&(r=r.toLowerCase()),r.indexOf(t)>=0)})}return!1})}onSearch(e){this.filter(e.target.value,this.options.search)}onSearchFocusIn(){this.$container.addClass("is-focused")}onSearchFocusOut(){this.$container.removeClass("is-focused")}onTitleClick(){this.options.collapsable&&(this.$container.toggleClass("collapsed"),this.$container.hasClass("collapsed")?this.collapseGroups():this.expandGroups())}onGroupTitleClick(e){const t=this.$(e.target).closest(`.${this.prefixClassName(mR.group)}`);this.toggleGroup(t.attr("data-name")||"");const n=Object.keys(this.$groups).every(e=>{const t=this.getGroup(e),n=this.$groups[e];return t&&!1===t.collapsable||n.hasClass("collapsed")});this.$container.toggleClass("collapsed",n)}getModel(e){const t=this.getGraph(e);return t?t.model:null}getGraph(e){return this.graphs[e||vR.defaultGroupName]}getGroup(e){const t=this.options.groups;return null!=e&&t&&t.length?t.find(t=>t.name===e):null}toggleGroup(e){return this.isGroupCollapsed(e)?this.expandGroup(e):this.collapseGroup(e),this}collapseGroup(e){if(this.isGroupCollapsable(e)){const t=this.$groups[e];t&&!this.isGroupCollapsed(e)&&(this.trigger("group:collapse",{name:e}),t.addClass("collapsed"))}return this}expandGroup(e){if(this.isGroupCollapsable(e)){const t=this.$groups[e];t&&this.isGroupCollapsed(e)&&(this.trigger("group:expand",{name:e}),t.removeClass("collapsed"))}return this}isGroupCollapsable(e){const t=this.$groups[e];return t.hasClass("collapsable")}isGroupCollapsed(e){const t=this.$groups[e];return t&&t.hasClass("collapsed")}collapseGroups(){return Object.keys(this.$groups).forEach(e=>this.collapseGroup(e)),this}expandGroups(){return Object.keys(this.$groups).forEach(e=>this.expandGroup(e)),this}onRemove(){Object.keys(this.graphs).forEach(e=>{const t=this.graphs[e];t.view.remove(),delete this.graphs[e]}),this.dnd.remove(),this.stopListening(),this.undelegateDocumentEvents()}}function ER(){if(_C.trackable){const e="https://kcart.alipay.com/web/bi.do",t=new Image,n=Object.assign(Object.assign({},_C.trackInfo),{version:bC,pg:document.URL,r:(new Date).getTime(),x6:!0,page_type:"syslog"}),i=encodeURIComponent(JSON.stringify([n]));t.src=`${e}?BIProfile=merge&d=${i}`}}(function(e){e.defaultOptions=Object.assign({stencilGraphWidth:200,stencilGraphHeight:800,title:"Stencil",collapsable:!1,placeholder:"Search",notFoundText:"No matches found",layout(e,t){const n={columnWidth:this.options.stencilGraphWidth/2-10,columns:2,rowHeight:80,resizeToFit:!1,dx:10,dy:10};bR(e,Object.assign(Object.assign(Object.assign({},n),this.options.layoutOptions),t?t.layoutOptions:{}))}},yR.defaults)})(SR||(SR={})),function(e){e.base="widget-stencil",e.title=`${e.base}-title`,e.search=`${e.base}-search`,e.searchText=`${e.search}-text`,e.content=`${e.base}-content`,e.group=`${e.base}-group`,e.groupTitle=`${e.group}-title`,e.groupContent=`${e.group}-content`}(mR||(mR={})),function(e){e.defaultGroupName="__default__"}(vR||(vR={})),_C.trackable&&setTimeout(ER,3e3),n.d(t,"g",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"i",(function(){return fS})),n.d(t,"e",(function(){return eA})),n.d(t,"a",(function(){return dA})),n.d(t,"d",(function(){return Dx})),n.d(t,"f",(function(){return fA})),n.d(t,"c",(function(){return uR})),n.d(t,"h",(function(){return x}))},"57a5":function(e,t,n){var i=n("91e9"),r=i(Object.keys,Object);e.exports=r},"585a":function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("c8ba"))},5866:function(e,t,n){var i=n("ef2b"),r=i.forceLayout,o=n("1c5f"),a=o.simpleLayout,s=n("94e4"),l=s.circularLayout,c=n("3842"),u=c.linearMap,d=n("401b"),h=n("6d8b"),p=n("0c37"),f=p.getCurvenessForEdge;function g(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},i=e.getGraph(),o=i.data,s=i.edgeData,c=e.getModel("force"),p=c.get("initLayout");e.preservedPoints?o.each((function(e){var t=o.getId(e);o.setItemLayout(e,n[t]||[NaN,NaN])})):p&&"none"!==p?"circular"===p&&l(e,"value"):a(e);var g=o.getDataExtent("value"),m=s.getDataExtent("value"),v=c.get("repulsion"),_=c.get("edgeLength");h.isArray(v)||(v=[v,v]),h.isArray(_)||(_=[_,_]),_=[_[1],_[0]];var y=o.mapArray("value",(function(e,t){var n=o.getItemLayout(t),i=u(e,g,v);return isNaN(i)&&(i=(v[0]+v[1])/2),{w:i,rep:i,fixed:o.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),b=s.mapArray("value",(function(t,n){var r=i.getEdgeByIndex(n),o=u(t,m,_);isNaN(o)&&(o=(_[0]+_[1])/2);var a=r.getModel(),s=h.retrieve3(a.get("lineStyle.curveness"),-f(r,e,n,!0),0);return{n1:y[r.node1.dataIndex],n2:y[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),S=(t=e.coordinateSystem,t.getBoundingRect()),E=r(y,b,{rect:S,gravity:c.get("gravity"),friction:c.get("friction")}),C=E.step;E.step=function(e){for(var t=0,r=y.length;t \r\n]","[\\[\\]\\.,\\+\\-<> \r\n]",{returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?:\+\+|\-\-)/,contains:[t]},t]}}},5924:function(e,t,n){"use strict";t.__esModule=!0,t.isInContainer=t.getScrollContainer=t.isScroll=t.getStyle=t.once=t.off=t.on=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.hasClass=g,t.addClass=m,t.removeClass=v,t.setStyle=y;var r=n("a026"),o=a(r);function a(e){return e&&e.__esModule?e:{default:e}}var s=o.default.prototype.$isServer,l=/([\:\-\_]+(.))/g,c=/^moz([A-Z])/,u=s?0:Number(document.documentMode),d=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},h=function(e){return e.replace(l,(function(e,t,n,i){return i?n.toUpperCase():n})).replace(c,"Moz$1")},p=t.on=function(){return!s&&document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)}}(),f=t.off=function(){return!s&&document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)}}();t.once=function(e,t,n){var i=function i(){n&&n.apply(this,arguments),f(e,t,i)};p(e,t,i)};function g(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}function m(e,t){if(e){for(var n=e.className,i=(t||"").split(" "),r=0,o=i.length;ri.top&&n.right>i.left&&n.lefte?c():!0!==t&&(r=setTimeout(i?u:c,void 0===i?e-s:e))}return("boolean"!==typeof t&&(i=n,n=t,t=void 0),a)}},"5a34":function(e,t,n){var i=n("44e7");e.exports=function(e){if(i(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5a3e":function(e,t){e.exports=function(e){return{aliases:["vbs"],case_insensitive:!0,keywords:{keyword:"call class const dim do loop erase execute executeglobal exit for each next function if then else on error option explicit new private property let get public randomize redim rem select case set stop sub while wend with end to elseif is or xor and not class_initialize class_terminate default preserve in me byval byref step resume goto",built_in:"lcase month vartype instrrev ubound setlocale getobject rgb getref string weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency conversions csng timevalue second year space abs clng timeserial fixs len asc isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim strcomp int createobject loadpicture tan formatnumber mid scriptenginebuildversion scriptengine split scriptengineminorversion cint sin datepart ltrim sqr scriptenginemajorversion time derived eval date formatpercent exp inputbox left ascw chrw regexp server response request cstr err",literal:"true false null nothing empty"},illegal:"//",contains:[e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}},"5a94":function(e,t,n){var i=n("b367")("keys"),r=n("8b1a");e.exports=function(e){return i[e]||(i[e]=r(e))}},"5aa9":function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),o=r.isObject,a=r.each,s=r.map,l=r.indexOf,c=(r.retrieve,n("f934")),u=c.getLayoutRect,d=n("697e"),h=d.createScaleByModel,p=d.ifAxisCrossZero,f=d.niceScaleExtent,g=d.estimateLabelUnionRect,m=n("cbe9"),v=n("ec02"),_=n("2039"),y=n("ee1a"),b=y.getStackedDimension;function S(e,t,n){return e.getCoordSysModel()===t}function E(e,t,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(e,t,n),this.model=e}n("8ed2");var C=E.prototype;function x(e,t,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=e[t],a=n.model,s=a.get("axisLine.onZero"),l=a.get("axisLine.onZeroAxisIndex");if(s){if(null!=l)w(o[l])&&(r=o[l]);else for(var c in o)if(o.hasOwnProperty(c)&&w(o[c])&&!i[u(o[c])]){r=o[c];break}r&&(i[u(r)]=!0)}function u(e){return e.dim+"_"+e.index}}function w(e){return e&&"category"!==e.type&&"time"!==e.type&&p(e)}function T(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return i-e+t}}C.type="grid",C.axisPointerEnabled=!0,C.getRect=function(){return this._rect},C.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model),a(n.x,(function(e){f(e.scale,e.model)})),a(n.y,(function(e){f(e.scale,e.model)}));var i={};a(n.x,(function(e){x(n,"y",e,i)})),a(n.y,(function(e){x(n,"x",e,i)})),this.resize(this.model,t)},C.resize=function(e,t,n){var i=u(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});this._rect=i;var r=this._axesList;function o(){a(r,(function(e){var t=e.isHorizontal(),n=t?[0,i.width]:[0,i.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),T(e,t?i.x:i.y)}))}o(),!n&&e.get("containLabel")&&(a(r,(function(e){if(!e.model.get("axisLabel.inside")){var t=g(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get("axisLabel.margin");i[n]-=t[n]+r,"top"===e.position?i.y+=t.height+r:"left"===e.position&&(i.x+=t.width+r)}}})),o())},C.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n){if(null==t)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[t]}},C.getAxes=function(){return this._axesList.slice()},C.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}o(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,r=this._coordsList;i0?n("li",{staticClass:"number",class:{active:1===e.currentPage,disabled:e.disabled}},[e._v("1")]):e._e(),e.showPrevMore?n("li",{staticClass:"el-icon more btn-quickprev",class:[e.quickprevIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("left")},mouseleave:function(t){e.quickprevIconClass="el-icon-more"}}}):e._e(),e._l(e.pagers,(function(t){return n("li",{key:t,staticClass:"number",class:{active:e.currentPage===t,disabled:e.disabled}},[e._v(e._s(t))])})),e.showNextMore?n("li",{staticClass:"el-icon more btn-quicknext",class:[e.quicknextIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("right")},mouseleave:function(t){e.quicknextIconClass="el-icon-more"}}}):e._e(),e.pageCount>1?n("li",{staticClass:"number",class:{active:e.currentPage===e.pageCount,disabled:e.disabled}},[e._v(e._s(e.pageCount))]):e._e()],2)},r=[];i._withStripped=!0;var o={name:"ElPager",props:{currentPage:Number,pageCount:Number,pagerCount:Number,disabled:Boolean},watch:{showPrevMore:function(e){e||(this.quickprevIconClass="el-icon-more")},showNextMore:function(e){e||(this.quicknextIconClass="el-icon-more")}},methods:{onPagerClick:function(e){var t=e.target;if("UL"!==t.tagName&&!this.disabled){var n=Number(e.target.textContent),i=this.pageCount,r=this.currentPage,o=this.pagerCount-2;-1!==t.className.indexOf("more")&&(-1!==t.className.indexOf("quickprev")?n=r-o:-1!==t.className.indexOf("quicknext")&&(n=r+o)),isNaN(n)||(n<1&&(n=1),n>i&&(n=i)),n!==r&&this.$emit("change",n)}},onMouseenter:function(e){this.disabled||("left"===e?this.quickprevIconClass="el-icon-d-arrow-left":this.quicknextIconClass="el-icon-d-arrow-right")}},computed:{pagers:function(){var e=this.pagerCount,t=(e-1)/2,n=Number(this.currentPage),i=Number(this.pageCount),r=!1,o=!1;i>e&&(n>e-t&&(r=!0),n4&&e<22&&e%2===1},default:7},currentPage:{type:Number,default:1},layout:{default:"prev, pager, next, jumper, ->, total"},pageSizes:{type:Array,default:function(){return[10,20,30,40,50,100]}},popperClass:String,prevText:String,nextText:String,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean},data:function(){return{internalCurrentPage:1,internalPageSize:0,lastEmittedPage:-1,userChangePageSize:!1}},render:function(e){var t=this.layout;if(!t)return null;if(this.hideOnSinglePage&&(!this.internalPageCount||1===this.internalPageCount))return null;var n=e("div",{class:["el-pagination",{"is-background":this.background,"el-pagination--small":this.small}]}),i={prev:e("prev"),jumper:e("jumper"),pager:e("pager",{attrs:{currentPage:this.internalCurrentPage,pageCount:this.internalPageCount,pagerCount:this.pagerCount,disabled:this.disabled},on:{change:this.handleCurrentChange}}),next:e("next"),sizes:e("sizes",{attrs:{pageSizes:this.pageSizes}}),slot:e("slot",[this.$slots.default?this.$slots.default:""]),total:e("total")},r=t.split(",").map((function(e){return e.trim()})),o=e("div",{class:"el-pagination__rightwrapper"}),a=!1;return n.children=n.children||[],o.children=o.children||[],r.forEach((function(e){"->"!==e?a?o.children.push(i[e]):n.children.push(i[e]):a=!0})),a&&n.children.unshift(o),n},components:{Prev:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage<=1},class:"btn-prev",on:{click:this.$parent.prev}},[this.$parent.prevText?e("span",[this.$parent.prevText]):e("i",{class:"el-icon el-icon-arrow-left"})])}},Next:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage===this.$parent.internalPageCount||0===this.$parent.internalPageCount},class:"btn-next",on:{click:this.$parent.next}},[this.$parent.nextText?e("span",[this.$parent.nextText]):e("i",{class:"el-icon el-icon-arrow-right"})])}},Sizes:{mixins:[v.a],props:{pageSizes:Array},watch:{pageSizes:{immediate:!0,handler:function(e,t){Object(_["valueEquals"])(e,t)||Array.isArray(e)&&(this.$parent.internalPageSize=e.indexOf(this.$parent.pageSize)>-1?this.$parent.pageSize:this.pageSizes[0])}}},render:function(e){var t=this;return e("span",{class:"el-pagination__sizes"},[e("el-select",{attrs:{value:this.$parent.internalPageSize,popperClass:this.$parent.popperClass||"",size:"mini",disabled:this.$parent.disabled},on:{input:this.handleChange}},[this.pageSizes.map((function(n){return e("el-option",{attrs:{value:n,label:n+t.t("el.pagination.pagesize")}})}))])])},components:{ElSelect:d.a,ElOption:p.a},methods:{handleChange:function(e){e!==this.$parent.internalPageSize&&(this.$parent.internalPageSize=e=parseInt(e,10),this.$parent.userChangePageSize=!0,this.$parent.$emit("update:pageSize",e),this.$parent.$emit("size-change",e))}}},Jumper:{mixins:[v.a],components:{ElInput:g.a},data:function(){return{userInput:null}},watch:{"$parent.internalCurrentPage":function(){this.userInput=null}},methods:{handleKeyup:function(e){var t=e.keyCode,n=e.target;13===t&&this.handleChange(n.value)},handleInput:function(e){this.userInput=e},handleChange:function(e){this.$parent.internalCurrentPage=this.$parent.getValidCurrentPage(e),this.$parent.emitChange(),this.userInput=null}},render:function(e){return e("span",{class:"el-pagination__jump"},[this.t("el.pagination.goto"),e("el-input",{class:"el-pagination__editor is-in-pagination",attrs:{min:1,max:this.$parent.internalPageCount,value:null!==this.userInput?this.userInput:this.$parent.internalCurrentPage,type:"number",disabled:this.$parent.disabled},nativeOn:{keyup:this.handleKeyup},on:{input:this.handleInput,change:this.handleChange}}),this.t("el.pagination.pageClassifier")])}},Total:{mixins:[v.a],render:function(e){return"number"===typeof this.$parent.total?e("span",{class:"el-pagination__total"},[this.t("el.pagination.total",{total:this.$parent.total})]):""}},Pager:c},methods:{handleCurrentChange:function(e){this.internalCurrentPage=this.getValidCurrentPage(e),this.userChangePageSize=!0,this.emitChange()},prev:function(){if(!this.disabled){var e=this.internalCurrentPage-1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("prev-click",this.internalCurrentPage),this.emitChange()}},next:function(){if(!this.disabled){var e=this.internalCurrentPage+1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("next-click",this.internalCurrentPage),this.emitChange()}},getValidCurrentPage:function(e){e=parseInt(e,10);var t="number"===typeof this.internalPageCount,n=void 0;return t?e<1?n=1:e>this.internalPageCount&&(n=this.internalPageCount):(isNaN(e)||e<1)&&(n=1),void 0===n&&isNaN(e)?n=1:0===n&&(n=1),void 0===n?e:n},emitChange:function(){var e=this;this.$nextTick((function(){(e.internalCurrentPage!==e.lastEmittedPage||e.userChangePageSize)&&(e.$emit("current-change",e.internalCurrentPage),e.lastEmittedPage=e.internalCurrentPage,e.userChangePageSize=!1)}))}},computed:{internalPageCount:function(){return"number"===typeof this.total?Math.max(1,Math.ceil(this.total/this.internalPageSize)):"number"===typeof this.pageCount?Math.max(1,this.pageCount):null}},watch:{currentPage:{immediate:!0,handler:function(e){this.internalCurrentPage=this.getValidCurrentPage(e)}},pageSize:{immediate:!0,handler:function(e){this.internalPageSize=isNaN(e)?10:e}},internalCurrentPage:{immediate:!0,handler:function(e){this.$emit("update:currentPage",e),this.lastEmittedPage=-1}},internalPageCount:function(e){var t=this.internalCurrentPage;e>0&&0===t?this.internalCurrentPage=1:t>e&&(this.internalCurrentPage=0===e?1:e,this.userChangePageSize&&this.emitChange()),this.userChangePageSize=!1}},install:function(e){e.component(y.name,y)}},b=y,S=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"dialog-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{key:e.key,ref:"dialog",class:["el-dialog",{"is-fullscreen":e.fullscreen,"el-dialog--center":e.center},e.customClass],style:e.style,attrs:{role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"}},[n("div",{staticClass:"el-dialog__header"},[e._t("title",[n("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-dialog__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:e.handleClose}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2),e.rendered?n("div",{staticClass:"el-dialog__body"},[e._t("default")],2):e._e(),e.$slots.footer?n("div",{staticClass:"el-dialog__footer"},[e._t("footer")],2):e._e()])])])},E=[];S._withStripped=!0;var C=n(13),x=n.n(C),w=n(9),T=n.n(w),A=n(3),O=n.n(A),R={name:"ElDialog",mixins:[x.a,O.a,T.a],props:{title:{type:String,default:""},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1},destroyOnClose:Boolean},data:function(){return{closed:!1,key:0}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick((function(){t.$refs.dialog.scrollTop=0})),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"),this.destroyOnClose&&this.$nextTick((function(){t.key++})))}},computed:{style:function(){var e={};return this.fullscreen||(e.marginTop=this.top,this.width&&(e.width=this.width)),e}},methods:{getMigratingConfig:function(){return{props:{size:"size is removed."}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){"function"===typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper:function(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},N=R,D=s(N,S,E,!1,null,null,null);D.options.__file="packages/dialog/src/component.vue";var I=D.exports;I.install=function(e){e.component(I.name,I)};var M=I,k=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.close,expression:"close"}],staticClass:"el-autocomplete",attrs:{"aria-haspopup":"listbox",role:"combobox","aria-expanded":e.suggestionVisible,"aria-owns":e.id}},[n("el-input",e._b({ref:"input",on:{input:e.handleInput,change:e.handleChange,focus:e.handleFocus,blur:e.handleBlur,clear:e.handleClear},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex-1)},function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex+1)},function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleKeyEnter(t):null},function(t){return"button"in t||!e._k(t.keyCode,"tab",9,t.key,"Tab")?e.close(t):null}]}},"el-input",[e.$props,e.$attrs],!1),[e.$slots.prepend?n("template",{slot:"prepend"},[e._t("prepend")],2):e._e(),e.$slots.append?n("template",{slot:"append"},[e._t("append")],2):e._e(),e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),e.$slots.suffix?n("template",{slot:"suffix"},[e._t("suffix")],2):e._e()],2),n("el-autocomplete-suggestions",{ref:"suggestions",class:[e.popperClass?e.popperClass:""],attrs:{"visible-arrow":"","popper-options":e.popperOptions,"append-to-body":e.popperAppendToBody,placement:e.placement,id:e.id}},e._l(e.suggestions,(function(t,i){return n("li",{key:i,class:{highlighted:e.highlightedIndex===i},attrs:{id:e.id+"-item-"+i,role:"option","aria-selected":e.highlightedIndex===i},on:{click:function(n){e.select(t)}}},[e._t("default",[e._v("\n "+e._s(t[e.valueKey])+"\n ")],{item:t})],2)})),0)],1)},L=[];k._withStripped=!0;var P=n(14),F=n.n(P),B=n(10),$=n.n(B),V=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-autocomplete-suggestion el-popper",class:{"is-loading":!e.parent.hideLoading&&e.parent.loading},style:{width:e.dropdownWidth},attrs:{role:"region"}},[n("el-scrollbar",{attrs:{tag:"ul","wrap-class":"el-autocomplete-suggestion__wrap","view-class":"el-autocomplete-suggestion__list"}},[!e.parent.hideLoading&&e.parent.loading?n("li",[n("i",{staticClass:"el-icon-loading"})]):e._t("default")],2)],1)])},G=[];V._withStripped=!0;var U=n(5),z=n.n(U),j=n(17),H=n.n(j),W={components:{ElScrollbar:H.a},mixins:[z.a,O.a],componentName:"ElAutocompleteSuggestions",data:function(){return{parent:this.$parent,dropdownWidth:""}},props:{options:{default:function(){return{gpuAcceleration:!1}}},id:String},methods:{select:function(e){this.dispatch("ElAutocomplete","item-click",e)}},updated:function(){var e=this;this.$nextTick((function(t){e.popperJS&&e.updatePopper()}))},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$refs.input.$refs.input||this.$parent.$refs.input.$refs.textarea,this.referenceList=this.$el.querySelector(".el-autocomplete-suggestion__list"),this.referenceList.setAttribute("role","listbox"),this.referenceList.setAttribute("id",this.id)},created:function(){var e=this;this.$on("visible",(function(t,n){e.dropdownWidth=n+"px",e.showPopper=t}))}},Y=W,q=s(Y,V,G,!1,null,null,null);q.options.__file="packages/autocomplete/src/autocomplete-suggestions.vue";var K=q.exports,Q=n(22),X=n.n(Q),Z={name:"ElAutocomplete",mixins:[O.a,X()("input"),T.a],inheritAttrs:!1,componentName:"ElAutocomplete",components:{ElInput:g.a,ElAutocompleteSuggestions:K},directives:{Clickoutside:$.a},props:{valueKey:{type:String,default:"value"},popperClass:String,popperOptions:Object,placeholder:String,clearable:{type:Boolean,default:!1},disabled:Boolean,name:String,size:String,value:String,maxlength:Number,minlength:Number,autofocus:Boolean,fetchSuggestions:Function,triggerOnFocus:{type:Boolean,default:!0},customItem:String,selectWhenUnmatched:{type:Boolean,default:!1},prefixIcon:String,suffixIcon:String,label:String,debounce:{type:Number,default:300},placement:{type:String,default:"bottom-start"},hideLoading:Boolean,popperAppendToBody:{type:Boolean,default:!0},highlightFirstItem:{type:Boolean,default:!1}},data:function(){return{activated:!1,suggestions:[],loading:!1,highlightedIndex:-1,suggestionDisabled:!1}},computed:{suggestionVisible:function(){var e=this.suggestions,t=Array.isArray(e)&&e.length>0;return(t||this.loading)&&this.activated},id:function(){return"el-autocomplete-"+Object(_["generateId"])()}},watch:{suggestionVisible:function(e){var t=this.getInput();t&&this.broadcast("ElAutocompleteSuggestions","visible",[e,t.offsetWidth])}},methods:{getMigratingConfig:function(){return{props:{"custom-item":"custom-item is removed, use scoped slot instead.",props:"props is removed, use value-key instead."}}},getData:function(e){var t=this;this.suggestionDisabled||(this.loading=!0,this.fetchSuggestions(e,(function(e){t.loading=!1,t.suggestionDisabled||(Array.isArray(e)?(t.suggestions=e,t.highlightedIndex=t.highlightFirstItem?0:-1):console.error("[Element Error][Autocomplete]autocomplete suggestions must be an array"))})))},handleInput:function(e){if(this.$emit("input",e),this.suggestionDisabled=!1,!this.triggerOnFocus&&!e)return this.suggestionDisabled=!0,void(this.suggestions=[]);this.debouncedGetData(e)},handleChange:function(e){this.$emit("change",e)},handleFocus:function(e){this.activated=!0,this.$emit("focus",e),this.triggerOnFocus&&this.debouncedGetData(this.value)},handleBlur:function(e){this.$emit("blur",e)},handleClear:function(){this.activated=!1,this.$emit("clear")},close:function(e){this.activated=!1},handleKeyEnter:function(e){var t=this;this.suggestionVisible&&this.highlightedIndex>=0&&this.highlightedIndex=this.suggestions.length&&(e=this.suggestions.length-1);var t=this.$refs.suggestions.$el.querySelector(".el-autocomplete-suggestion__wrap"),n=t.querySelectorAll(".el-autocomplete-suggestion__list li"),i=n[e],r=t.scrollTop,o=i.offsetTop;o+i.scrollHeight>r+t.clientHeight&&(t.scrollTop+=i.scrollHeight),o=0&&this.resetTabindex(this.triggerElm),clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.visible=!1}),"click"===this.trigger?0:this.hideTimeout))},handleClick:function(){this.triggerElm.disabled||(this.visible?this.hide():this.show())},handleTriggerKeyDown:function(e){var t=e.keyCode;[38,40].indexOf(t)>-1?(this.removeTabindex(),this.resetTabindex(this.menuItems[0]),this.menuItems[0].focus(),e.preventDefault(),e.stopPropagation()):13===t?this.handleClick():[9,27].indexOf(t)>-1&&this.hide()},handleItemKeyDown:function(e){var t=e.keyCode,n=e.target,i=this.menuItemsArray.indexOf(n),r=this.menuItemsArray.length-1,o=void 0;[38,40].indexOf(t)>-1?(o=38===t?0!==i?i-1:0:i-1&&(this.hide(),this.triggerElmFocus())},resetTabindex:function(e){this.removeTabindex(),e.setAttribute("tabindex","0")},removeTabindex:function(){this.triggerElm.setAttribute("tabindex","-1"),this.menuItemsArray.forEach((function(e){e.setAttribute("tabindex","-1")}))},initAria:function(){this.dropdownElm.setAttribute("id",this.listId),this.triggerElm.setAttribute("aria-haspopup","list"),this.triggerElm.setAttribute("aria-controls",this.listId),this.splitButton||(this.triggerElm.setAttribute("role","button"),this.triggerElm.setAttribute("tabindex",this.tabindex),this.triggerElm.setAttribute("class",(this.triggerElm.getAttribute("class")||"")+" el-dropdown-selfdefine"))},initEvent:function(){var e=this,t=this.trigger,n=this.show,i=this.hide,r=this.handleClick,o=this.splitButton,a=this.handleTriggerKeyDown,s=this.handleItemKeyDown;this.triggerElm=o?this.$refs.trigger.$el:this.$slots.default[0].elm;var l=this.dropdownElm;this.triggerElm.addEventListener("keydown",a),l.addEventListener("keydown",s,!0),o||(this.triggerElm.addEventListener("focus",(function(){e.focusing=!0})),this.triggerElm.addEventListener("blur",(function(){e.focusing=!1})),this.triggerElm.addEventListener("click",(function(){e.focusing=!1}))),"hover"===t?(this.triggerElm.addEventListener("mouseenter",n),this.triggerElm.addEventListener("mouseleave",i),l.addEventListener("mouseenter",n),l.addEventListener("mouseleave",i)):"click"===t&&this.triggerElm.addEventListener("click",r)},handleMenuItemClick:function(e,t){this.hideOnClick&&(this.visible=!1),this.$emit("command",e,t)},triggerElmFocus:function(){this.triggerElm.focus&&this.triggerElm.focus()},initDomOperation:function(){this.dropdownElm=this.popperElm,this.menuItems=this.dropdownElm.querySelectorAll("[tabindex='-1']"),this.menuItemsArray=[].slice.call(this.menuItems),this.initEvent(),this.initAria()}},render:function(e){var t=this,n=this.hide,i=this.splitButton,r=this.type,o=this.dropdownSize,a=function(e){t.$emit("click",e),n()},s=i?e("el-button-group",[e("el-button",{attrs:{type:r,size:o},nativeOn:{click:a}},[this.$slots.default]),e("el-button",{ref:"trigger",attrs:{type:r,size:o},class:"el-dropdown__caret-button"},[e("i",{class:"el-dropdown__icon el-icon-arrow-down"})])]):this.$slots.default;return e("div",{class:"el-dropdown",directives:[{name:"clickoutside",value:n}]},[s,this.$slots.dropdown])}},ue=ce,de=s(ue,ne,ie,!1,null,null,null);de.options.__file="packages/dropdown/src/dropdown.vue";var he=de.exports;he.install=function(e){e.component(he.name,he)};var pe=he,fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-dropdown-menu el-popper",class:[e.size&&"el-dropdown-menu--"+e.size]},[e._t("default")],2)])},ge=[];fe._withStripped=!0;var me={name:"ElDropdownMenu",componentName:"ElDropdownMenu",mixins:[z.a],props:{visibleArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:0}},data:function(){return{size:this.dropdown.dropdownSize}},inject:["dropdown"],created:function(){var e=this;this.$on("updatePopper",(function(){e.showPopper&&e.updatePopper()})),this.$on("visible",(function(t){e.showPopper=t}))},mounted:function(){this.dropdown.popperElm=this.popperElm=this.$el,this.referenceElm=this.dropdown.$el,this.dropdown.initDomOperation()},watch:{"dropdown.placement":{immediate:!0,handler:function(e){this.currentPlacement=e}}}},ve=me,_e=s(ve,fe,ge,!1,null,null,null);_e.options.__file="packages/dropdown/src/dropdown-menu.vue";var ye=_e.exports;ye.install=function(e){e.component(ye.name,ye)};var be=ye,Se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":e.disabled,"el-dropdown-menu__item--divided":e.divided},attrs:{"aria-disabled":e.disabled,tabindex:e.disabled?null:-1},on:{click:e.handleClick}},[e.icon?n("i",{class:e.icon}):e._e(),e._t("default")],2)},Ee=[];Se._withStripped=!0;var Ce={name:"ElDropdownItem",mixins:[O.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(e){this.dispatch("ElDropdown","menu-item-click",[this.command,this])}}},xe=Ce,we=s(xe,Se,Ee,!1,null,null,null);we.options.__file="packages/dropdown/src/dropdown-item.vue";var Te=we.exports;Te.install=function(e){e.component(Te.name,Te)};var Ae=Te,Oe=Oe||{};Oe.Utils=Oe.Utils||{},Oe.Utils.focusFirstDescendant=function(e){for(var t=0;t=0;t--){var n=e.childNodes[t];if(Oe.Utils.attemptFocus(n)||Oe.Utils.focusLastDescendant(n))return!0}return!1},Oe.Utils.attemptFocus=function(e){if(!Oe.Utils.isFocusable(e))return!1;Oe.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){}return Oe.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},Oe.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Oe.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var i=document.createEvent(n),r=arguments.length,o=Array(r>2?r-2:0),a=2;a=0;t--)e.splice(t,0,e[t]);e=e.join("")}return/^[0-9a-fA-F]{6}$/.test(e)?{red:parseInt(e.slice(0,2),16),green:parseInt(e.slice(2,4),16),blue:parseInt(e.slice(4,6),16)}:{red:255,green:255,blue:255}},mixColor:function(e,t){var n=this.getColorChannels(e),i=n.red,r=n.green,o=n.blue;return t>0?(i*=1-t,r*=1-t,o*=1-t):(i+=(255-i)*t,r+=(255-r)*t,o+=(255-o)*t),"rgb("+Math.round(i)+", "+Math.round(r)+", "+Math.round(o)+")"},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},openMenu:function(e,t){var n=this.openedMenus;-1===n.indexOf(e)&&(this.uniqueOpened&&(this.openedMenus=n.filter((function(e){return-1!==t.indexOf(e)}))),this.openedMenus.push(e))},closeMenu:function(e){var t=this.openedMenus.indexOf(e);-1!==t&&this.openedMenus.splice(t,1)},handleSubmenuClick:function(e){var t=e.index,n=e.indexPath,i=-1!==this.openedMenus.indexOf(t);i?(this.closeMenu(t),this.$emit("close",t,n)):(this.openMenu(t,n),this.$emit("open",t,n))},handleItemClick:function(e){var t=this,n=e.index,i=e.indexPath,r=this.activeIndex,o=null!==e.index;o&&(this.activeIndex=e.index),this.$emit("select",n,i,e),("horizontal"===this.mode||this.collapse)&&(this.openedMenus=[]),this.router&&o&&this.routeToItem(e,(function(e){if(t.activeIndex=r,e){if("NavigationDuplicated"===e.name)return;console.error(e)}}))},initOpenedMenu:function(){var e=this,t=this.activeIndex,n=this.items[t];if(n&&"horizontal"!==this.mode&&!this.collapse){var i=n.indexPath;i.forEach((function(t){var n=e.submenus[t];n&&e.openMenu(t,n.indexPath)}))}},routeToItem:function(e,t){var n=e.route||e.index;try{this.$router.push(n,(function(){}),t)}catch(i){console.error(i)}},open:function(e){var t=this,n=this.submenus[e.toString()].indexPath;n.forEach((function(e){return t.openMenu(e,n)}))},close:function(e){this.closeMenu(e)}},mounted:function(){this.initOpenedMenu(),this.$on("item-click",this.handleItemClick),this.$on("submenu-click",this.handleSubmenuClick),"horizontal"===this.mode&&new Fe(this.$el),this.$watch("items",this.updateActiveIndex)}},Ve=$e,Ge=s(Ve,Le,Pe,!1,null,null,null);Ge.options.__file="packages/menu/src/menu.vue";var Ue=Ge.exports;Ue.install=function(e){e.component(Ue.name,Ue)};var ze,je,He=Ue,We=n(21),Ye=n.n(We),qe={inject:["rootMenu"],computed:{indexPath:function(){var e=[this.index],t=this.$parent;while("ElMenu"!==t.$options.componentName)t.index&&e.unshift(t.index),t=t.$parent;return e},parentMenu:function(){var e=this.$parent;while(e&&-1===["ElMenu","ElSubmenu"].indexOf(e.$options.componentName))e=e.$parent;return e},paddingStyle:function(){if("vertical"!==this.rootMenu.mode)return{};var e=20,t=this.$parent;if(this.rootMenu.collapse)e=20;else while(t&&"ElMenu"!==t.$options.componentName)"ElSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return{paddingLeft:e+"px"}}}},Ke={props:{transformOrigin:{type:[Boolean,String],default:!1},offset:z.a.props.offset,boundariesPadding:z.a.props.boundariesPadding,popperOptions:z.a.props.popperOptions},data:z.a.data,methods:z.a.methods,beforeDestroy:z.a.beforeDestroy,deactivated:z.a.deactivated},Qe={name:"ElSubmenu",componentName:"ElSubmenu",mixins:[qe,O.a,Ke],components:{ElCollapseTransition:Ye.a},props:{index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0}},data:function(){return{popperJS:null,timeout:null,items:{},submenus:{},mouseInChild:!1}},watch:{opened:function(e){var t=this;this.isMenuPopup&&this.$nextTick((function(e){t.updatePopper()}))}},computed:{appendToBody:function(){return void 0===this.popperAppendToBody?this.isFirstLevel:this.popperAppendToBody},menuTransitionName:function(){return this.rootMenu.collapse?"el-zoom-in-left":"el-zoom-in-top"},opened:function(){return this.rootMenu.openedMenus.indexOf(this.index)>-1},active:function(){var e=!1,t=this.submenus,n=this.items;return Object.keys(n).forEach((function(t){n[t].active&&(e=!0)})),Object.keys(t).forEach((function(n){t[n].active&&(e=!0)})),e},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},isMenuPopup:function(){return this.rootMenu.isMenuPopup},titleStyle:function(){return"horizontal"!==this.mode?{color:this.textColor}:{borderBottomColor:this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent",color:this.active?this.activeTextColor:this.textColor}},isFirstLevel:function(){var e=!0,t=this.$parent;while(t&&t!==this.rootMenu){if(["ElSubmenu","ElMenuItemGroup"].indexOf(t.$options.componentName)>-1){e=!1;break}t=t.$parent}return e}},methods:{handleCollapseToggle:function(e){e?this.initPopper():this.doDestroy()},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},handleClick:function(){var e=this.rootMenu,t=this.disabled;"hover"===e.menuTrigger&&"horizontal"===e.mode||e.collapse&&"vertical"===e.mode||t||this.dispatch("ElMenu","submenu-click",this)},handleMouseenter:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.showTimeout;if("ActiveXObject"in window||"focus"!==e.type||e.relatedTarget){var i=this.rootMenu,r=this.disabled;"click"===i.menuTrigger&&"horizontal"===i.mode||!i.collapse&&"vertical"===i.mode||r||(this.dispatch("ElSubmenu","mouse-enter-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.rootMenu.openMenu(t.index,t.indexPath)}),n),this.appendToBody&&this.$parent.$el.dispatchEvent(new MouseEvent("mouseenter")))}},handleMouseleave:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.rootMenu;"click"===n.menuTrigger&&"horizontal"===n.mode||!n.collapse&&"vertical"===n.mode||(this.dispatch("ElSubmenu","mouse-leave-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){!e.mouseInChild&&e.rootMenu.closeMenu(e.index)}),this.hideTimeout),this.appendToBody&&t&&"ElSubmenu"===this.$parent.$options.name&&this.$parent.handleMouseleave(!0))},handleTitleMouseenter:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var e=this.$refs["submenu-title"];e&&(e.style.backgroundColor=this.rootMenu.hoverBackground)}},handleTitleMouseleave:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var e=this.$refs["submenu-title"];e&&(e.style.backgroundColor=this.rootMenu.backgroundColor||"")}},updatePlacement:function(){this.currentPlacement="horizontal"===this.mode&&this.isFirstLevel?"bottom-start":"right-start"},initPopper:function(){this.referenceElm=this.$el,this.popperElm=this.$refs.menu,this.updatePlacement()}},created:function(){var e=this;this.$on("toggle-collapse",this.handleCollapseToggle),this.$on("mouse-enter-child",(function(){e.mouseInChild=!0,clearTimeout(e.timeout)})),this.$on("mouse-leave-child",(function(){e.mouseInChild=!1,clearTimeout(e.timeout)}))},mounted:function(){this.parentMenu.addSubmenu(this),this.rootMenu.addSubmenu(this),this.initPopper()},beforeDestroy:function(){this.parentMenu.removeSubmenu(this),this.rootMenu.removeSubmenu(this)},render:function(e){var t=this,n=this.active,i=this.opened,r=this.paddingStyle,o=this.titleStyle,a=this.backgroundColor,s=this.rootMenu,l=this.currentPlacement,c=this.menuTransitionName,u=this.mode,d=this.disabled,h=this.popperClass,p=this.$slots,f=this.isFirstLevel,g=e("transition",{attrs:{name:c}},[e("div",{ref:"menu",directives:[{name:"show",value:i}],class:["el-menu--"+u,h],on:{mouseenter:function(e){return t.handleMouseenter(e,100)},mouseleave:function(){return t.handleMouseleave(!0)},focus:function(e){return t.handleMouseenter(e,100)}}},[e("ul",{attrs:{role:"menu"},class:["el-menu el-menu--popup","el-menu--popup-"+l],style:{backgroundColor:s.backgroundColor||""}},[p.default])])]),m=e("el-collapse-transition",[e("ul",{attrs:{role:"menu"},class:"el-menu el-menu--inline",directives:[{name:"show",value:i}],style:{backgroundColor:s.backgroundColor||""}},[p.default])]),v="horizontal"===s.mode&&f||"vertical"===s.mode&&!s.collapse?"el-icon-arrow-down":"el-icon-arrow-right";return e("li",{class:{"el-submenu":!0,"is-active":n,"is-opened":i,"is-disabled":d},attrs:{role:"menuitem","aria-haspopup":"true","aria-expanded":i},on:{mouseenter:this.handleMouseenter,mouseleave:function(){return t.handleMouseleave(!1)},focus:this.handleMouseenter}},[e("div",{class:"el-submenu__title",ref:"submenu-title",on:{click:this.handleClick,mouseenter:this.handleTitleMouseenter,mouseleave:this.handleTitleMouseleave},style:[r,o,{backgroundColor:a}]},[p.title,e("i",{class:["el-submenu__icon-arrow",v]})]),this.isMenuPopup?g:m])}},Xe=Qe,Ze=s(Xe,ze,je,!1,null,null,null);Ze.options.__file="packages/menu/src/submenu.vue";var Je=Ze.exports;Je.install=function(e){e.component(Je.name,Je)};var et=Je,tt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-menu-item",class:{"is-active":e.active,"is-disabled":e.disabled},style:[e.paddingStyle,e.itemStyle,{backgroundColor:e.backgroundColor}],attrs:{role:"menuitem",tabindex:"-1"},on:{click:e.handleClick,mouseenter:e.onMouseEnter,focus:e.onMouseEnter,blur:e.onMouseLeave,mouseleave:e.onMouseLeave}},["ElMenu"===e.parentMenu.$options.componentName&&e.rootMenu.collapse&&e.$slots.title?n("el-tooltip",{attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[e._t("title")],2),n("div",{staticStyle:{position:"absolute",left:"0",top:"0",height:"100%",width:"100%",display:"inline-block","box-sizing":"border-box",padding:"0 20px"}},[e._t("default")],2)]):[e._t("default"),e._t("title")]],2)},nt=[];tt._withStripped=!0;var it=n(26),rt=n.n(it),ot={name:"ElMenuItem",componentName:"ElMenuItem",mixins:[qe,O.a],components:{ElTooltip:rt.a},props:{index:{default:null,validator:function(e){return"string"===typeof e||null===e}},route:[String,Object],disabled:Boolean},computed:{active:function(){return this.index===this.rootMenu.activeIndex},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},itemStyle:function(){var e={color:this.active?this.activeTextColor:this.textColor};return"horizontal"!==this.mode||this.isNested||(e.borderBottomColor=this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent"),e},isNested:function(){return this.parentMenu!==this.rootMenu}},methods:{onMouseEnter:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.hoverBackground)},onMouseLeave:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.backgroundColor)},handleClick:function(){this.disabled||(this.dispatch("ElMenu","item-click",this),this.$emit("click",this))}},mounted:function(){this.parentMenu.addItem(this),this.rootMenu.addItem(this)},beforeDestroy:function(){this.parentMenu.removeItem(this),this.rootMenu.removeItem(this)}},at=ot,st=s(at,tt,nt,!1,null,null,null);st.options.__file="packages/menu/src/menu-item.vue";var lt=st.exports;lt.install=function(e){e.component(lt.name,lt)};var ct=lt,ut=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-menu-item-group"},[n("div",{staticClass:"el-menu-item-group__title",style:{paddingLeft:e.levelPadding+"px"}},[e.$slots.title?e._t("title"):[e._v(e._s(e.title))]],2),n("ul",[e._t("default")],2)])},dt=[];ut._withStripped=!0;var ht={name:"ElMenuItemGroup",componentName:"ElMenuItemGroup",inject:["rootMenu"],props:{title:{type:String}},data:function(){return{paddingLeft:20}},computed:{levelPadding:function(){var e=20,t=this.$parent;if(this.rootMenu.collapse)return 20;while(t&&"ElMenu"!==t.$options.componentName)"ElSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return e}}},pt=ht,ft=s(pt,ut,dt,!1,null,null,null);ft.options.__file="packages/menu/src/menu-item-group.vue";var gt=ft.exports;gt.install=function(e){e.component(gt.name,gt)};var mt=gt,vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)},_t=[];vt._withStripped=!0;var yt=void 0,bt="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",St=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Et(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),i=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),r=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),o=St.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";");return{contextStyle:o,paddingSize:i,borderSize:r,boxSizing:n}}function Ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;yt||(yt=document.createElement("textarea"),document.body.appendChild(yt));var i=Et(e),r=i.paddingSize,o=i.borderSize,a=i.boxSizing,s=i.contextStyle;yt.setAttribute("style",s+";"+bt),yt.value=e.value||e.placeholder||"";var l=yt.scrollHeight,c={};"border-box"===a?l+=o:"content-box"===a&&(l-=r),yt.value="";var u=yt.scrollHeight-r;if(null!==t){var d=u*t;"border-box"===a&&(d=d+r+o),l=Math.max(d,l),c.minHeight=d+"px"}if(null!==n){var h=u*n;"border-box"===a&&(h=h+r+o),l=Math.min(h,l)}return c.height=l+"px",yt.parentNode&&yt.parentNode.removeChild(yt),yt=null,c}var xt=n(7),wt=n.n(xt),Tt=n(19),At={name:"ElInput",componentName:"ElInput",mixins:[O.a,T.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return wt()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"===typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize,t=this.type;if("textarea"===t)if(e){var n=e.minRows,i=e.maxRows;this.textareaCalcStyle=Ct(this.$refs.textarea,n,i)}else this.textareaCalcStyle={minHeight:Ct(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionUpdate:function(e){var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(Tt["isKorean"])(n)},handleCompositionEnd:function(e){this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,i=0;i=0&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;if(this.stepStrictly){var n=this.getPrecision(this.step),i=Math.pow(10,n);t=Math.round(t/this.step)*i*this.step/i}void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,i=this.precision,r=n(t);return void 0!==i?(r>i&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),i):Math.max(n(e),r)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e=this.currentValue;if("number"===typeof e){if(this.stepStrictly){var t=this.getPrecision(this.step),n=Math.pow(10,t);e=Math.round(e/this.step)*n*this.step/n}void 0!==this.precision&&(e=e.toFixed(this.precision))}return e}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),i=0;return-1!==n&&(i=t.length-n-1),i},_increase:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;"number"===typeof e&&void 0!==this.precision&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){if(this.$refs&&this.$refs.input){var e=this.$refs.input.$refs.input;e.setAttribute("aria-valuenow",this.currentValue)}}},Pt=Lt,Ft=s(Pt,It,Mt,!1,null,null,null);Ft.options.__file="packages/input-number/src/input-number.vue";var Bt=Ft.exports;Bt.install=function(e){e.component(Bt.name,Bt)};var $t=Bt,Vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio",class:[e.border&&e.radioSize?"el-radio--"+e.radioSize:"",{"is-disabled":e.isDisabled},{"is-focus":e.focus},{"is-bordered":e.border},{"is-checked":e.model===e.label}],attrs:{role:"radio","aria-checked":e.model===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.model=e.isDisabled?e.model:e.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":e.isDisabled,"is-checked":e.model===e.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:e.name,disabled:e.isDisabled,tabindex:"-1"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])},Gt=[];Vt._withStripped=!0;var Ut={name:"ElRadio",mixins:[O.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){var e=this.$parent;while(e){if("ElRadioGroup"===e.$options.componentName)return this._radioGroup=e,!0;e=e.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(e){this.isGroup?this.dispatch("ElRadioGroup","input",[e]):this.$emit("input",e),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||e},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.model),e.isGroup&&e.dispatch("ElRadioGroup","handleChange",e.model)}))}}},zt=Ut,jt=s(zt,Vt,Gt,!1,null,null,null);jt.options.__file="packages/radio/src/radio.vue";var Ht=jt.exports;Ht.install=function(e){e.component(Ht.name,Ht)};var Wt=Ht,Yt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e._elTag,{tag:"component",staticClass:"el-radio-group",attrs:{role:"radiogroup"},on:{keydown:e.handleKeydown}},[e._t("default")],2)},qt=[];Yt._withStripped=!0;var Kt=Object.freeze({LEFT:37,UP:38,RIGHT:39,DOWN:40}),Qt={name:"ElRadioGroup",componentName:"ElRadioGroup",inject:{elFormItem:{default:""}},mixins:[O.a],props:{value:{},size:String,fill:String,textColor:String,disabled:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},_elTag:function(){return(this.$vnode.data||{}).tag||"div"},radioGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},created:function(){var e=this;this.$on("handleChange",(function(t){e.$emit("change",t)}))},mounted:function(){var e=this.$el.querySelectorAll("[type=radio]"),t=this.$el.querySelectorAll("[role=radio]")[0];![].some.call(e,(function(e){return e.checked}))&&t&&(t.tabIndex=0)},methods:{handleKeydown:function(e){var t=e.target,n="INPUT"===t.nodeName?"[type=radio]":"[role=radio]",i=this.$el.querySelectorAll(n),r=i.length,o=[].indexOf.call(i,t),a=this.$el.querySelectorAll("[role=radio]");switch(e.keyCode){case Kt.LEFT:case Kt.UP:e.stopPropagation(),e.preventDefault(),0===o?(a[r-1].click(),a[r-1].focus()):(a[o-1].click(),a[o-1].focus());break;case Kt.RIGHT:case Kt.DOWN:o===r-1?(e.stopPropagation(),e.preventDefault(),a[0].click(),a[0].focus()):(a[o+1].click(),a[o+1].focus());break;default:break}}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[this.value])}}},Xt=Qt,Zt=s(Xt,Yt,qt,!1,null,null,null);Zt.options.__file="packages/radio/src/radio-group.vue";var Jt=Zt.exports;Jt.install=function(e){e.component(Jt.name,Jt)};var en=Jt,tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio-button",class:[e.size?"el-radio-button--"+e.size:"",{"is-active":e.value===e.label},{"is-disabled":e.isDisabled},{"is-focus":e.focus}],attrs:{role:"radio","aria-checked":e.value===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.value=e.isDisabled?e.value:e.label}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"el-radio-button__orig-radio",attrs:{type:"radio",name:e.name,disabled:e.isDisabled,tabindex:"-1"},domProps:{value:e.label,checked:e._q(e.value,e.label)},on:{change:[function(t){e.value=e.label},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}),n("span",{staticClass:"el-radio-button__inner",style:e.value===e.label?e.activeStyle:null,on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])},nn=[];tn._withStripped=!0;var rn={name:"ElRadioButton",mixins:[O.a],inject:{elForm:{default:""},elFormItem:{default:""}},props:{label:{},disabled:Boolean,name:String},data:function(){return{focus:!1}},computed:{value:{get:function(){return this._radioGroup.value},set:function(e){this._radioGroup.$emit("input",e)}},_radioGroup:function(){var e=this.$parent;while(e){if("ElRadioGroup"===e.$options.componentName)return e;e=e.$parent}return!1},activeStyle:function(){return{backgroundColor:this._radioGroup.fill||"",borderColor:this._radioGroup.fill||"",boxShadow:this._radioGroup.fill?"-1px 0 0 0 "+this._radioGroup.fill:"",color:this._radioGroup.textColor||""}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._radioGroup.radioGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isDisabled:function(){return this.disabled||this._radioGroup.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this._radioGroup&&this.value!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.dispatch("ElRadioGroup","handleChange",e.value)}))}}},on=rn,an=s(on,tn,nn,!1,null,null,null);an.options.__file="packages/radio/src/radio-button.vue";var sn=an.exports;sn.install=function(e){e.component(sn.name,sn)};var ln=sn,cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.border&&e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,i=t.target,r=i.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=null,a=e._i(n,o);i.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);i.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])},un=[];cn._withStripped=!0;var dn={name:"ElCheckbox",mixins:[O.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.lengththis._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},hn=dn,pn=s(hn,cn,un,!1,null,null,null);pn.options.__file="packages/checkbox/src/checkbox.vue";var fn=pn.exports;fn.install=function(e){e.component(fn.name,fn)};var gn=fn,mn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox-button",class:[e.size?"el-checkbox-button--"+e.size:"",{"is-disabled":e.isDisabled},{"is-checked":e.isChecked},{"is-focus":e.focus}],attrs:{role:"checkbox","aria-checked":e.isChecked,"aria-disabled":e.isDisabled}},[e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,i=t.target,r=i.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=null,a=e._i(n,o);i.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:e.name,disabled:e.isDisabled},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);i.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox-button__inner",style:e.isChecked?e.activeStyle:null},[e._t("default",[e._v(e._s(e.label))])],2):e._e()])},vn=[];mn._withStripped=!0;var _n={name:"ElCheckboxButton",mixins:[O.a],inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},props:{value:{},label:{},disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number]},computed:{model:{get:function(){return this._checkboxGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this._checkboxGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.lengththis._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):void 0!==this.value?this.$emit("input",e):this.selfModel=e}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},_checkboxGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return e;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},activeStyle:function(){return{backgroundColor:this._checkboxGroup.fill||"",borderColor:this._checkboxGroup.fill||"",color:this._checkboxGroup.textColor||"","box-shadow":"-1px 0 0 0 "+this._checkboxGroup.fill}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._checkboxGroup.checkboxGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this._checkboxGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled}},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t._checkboxGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()}},yn=_n,bn=s(yn,mn,vn,!1,null,null,null);bn.options.__file="packages/checkbox/src/checkbox-button.vue";var Sn=bn.exports;Sn.install=function(e){e.component(Sn.name,Sn)};var En=Sn,Cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[e._t("default")],2)},xn=[];Cn._withStripped=!0;var wn={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[O.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},Tn=wn,An=s(Tn,Cn,xn,!1,null,null,null);An.options.__file="packages/checkbox/src/checkbox-group.vue";var On=An.exports;On.install=function(e){e.component(On.name,On)};var Rn=On,Nn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-switch",class:{"is-disabled":e.switchDisabled,"is-checked":e.checked},attrs:{role:"switch","aria-checked":e.checked,"aria-disabled":e.switchDisabled},on:{click:function(t){return t.preventDefault(),e.switchValue(t)}}},[n("input",{ref:"input",staticClass:"el-switch__input",attrs:{type:"checkbox",id:e.id,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:e.switchDisabled},on:{change:e.handleChange,keydown:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.switchValue(t):null}}}),e.inactiveIconClass||e.inactiveText?n("span",{class:["el-switch__label","el-switch__label--left",e.checked?"":"is-active"]},[e.inactiveIconClass?n("i",{class:[e.inactiveIconClass]}):e._e(),!e.inactiveIconClass&&e.inactiveText?n("span",{attrs:{"aria-hidden":e.checked}},[e._v(e._s(e.inactiveText))]):e._e()]):e._e(),n("span",{ref:"core",staticClass:"el-switch__core",style:{width:e.coreWidth+"px"}}),e.activeIconClass||e.activeText?n("span",{class:["el-switch__label","el-switch__label--right",e.checked?"is-active":""]},[e.activeIconClass?n("i",{class:[e.activeIconClass]}):e._e(),!e.activeIconClass&&e.activeText?n("span",{attrs:{"aria-hidden":!e.checked}},[e._v(e._s(e.activeText))]):e._e()]):e._e()])},Dn=[];Nn._withStripped=!0;var In={name:"ElSwitch",mixins:[X()("input"),T.a,O.a],inject:{elForm:{default:""}},props:{value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:Number,default:40},activeIconClass:{type:String,default:""},inactiveIconClass:{type:String,default:""},activeText:String,inactiveText:String,activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String},data:function(){return{coreWidth:this.width}},created:function(){~[this.activeValue,this.inactiveValue].indexOf(this.value)||this.$emit("input",this.inactiveValue)},computed:{checked:function(){return this.value===this.activeValue},switchDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{checked:function(){this.$refs.input.checked=this.checked,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[this.value])}},methods:{handleChange:function(e){var t=this,n=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",n),this.$emit("change",n),this.$nextTick((function(){t.$refs.input.checked=t.checked}))},setBackgroundColor:function(){var e=this.checked?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=e,this.$refs.core.style.backgroundColor=e},switchValue:function(){!this.switchDisabled&&this.handleChange()},getMigratingConfig:function(){return{props:{"on-color":"on-color is renamed to active-color.","off-color":"off-color is renamed to inactive-color.","on-text":"on-text is renamed to active-text.","off-text":"off-text is renamed to inactive-text.","on-value":"on-value is renamed to active-value.","off-value":"off-value is renamed to inactive-value.","on-icon-class":"on-icon-class is renamed to active-icon-class.","off-icon-class":"off-icon-class is renamed to inactive-icon-class."}}}},mounted:function(){this.coreWidth=this.width||40,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.$refs.input.checked=this.checked}},Mn=In,kn=s(Mn,Nn,Dn,!1,null,null,null);kn.options.__file="packages/switch/src/component.vue";var Ln=kn.exports;Ln.install=function(e){e.component(Ln.name,Ln)};var Pn=Ln,Fn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.navigateOptions("prev")},function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?(t.preventDefault(),e.selectOption(t)):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return"button"in t||!e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?e.deletePrevTag(t):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur},nativeOn:{keyup:function(t){return e.debouncedOnInputChange(t)},keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("prev")},function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?(t.preventDefault(),e.selectOption(t)):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],paste:function(t){return e.debouncedOnInputChange(t)},mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)},Bn=[];Fn._withStripped=!0;var $n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":e.$parent.multiple},e.popperClass],style:{minWidth:e.minWidth}},[e._t("default")],2)},Vn=[];$n._withStripped=!0;var Gn={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[z.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},Un=Gn,zn=s(Un,$n,Vn,!1,null,null,null);zn.options.__file="packages/select/src/select-dropdown.vue";var jn=zn.exports,Hn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},Wn=[];Hn._withStripped=!0;var Yn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qn={mixins:[O.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,i=n.remote,r=n.valueKey;if(!this.created&&!i){if(r&&"object"===("undefined"===typeof e?"undefined":Yn(e))&&"object"===("undefined"===typeof t?"undefined":Yn(t))&&e[r]===t[r])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(_["getValueByPath"])(e,n)===Object(_["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(_["getValueByPath"])(e,n)===Object(_["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(_["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,i=n?t:[t],r=this.select.cachedOptions.indexOf(this),o=i.indexOf(this);r>-1&&o<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},Kn=qn,Qn=s(Kn,Hn,Wn,!1,null,null,null);Qn.options.__file="packages/select/src/option.vue";var Xn=Qn.exports,Zn=n(29),Jn=n.n(Zn),ei=n(12),ti=n(27),ni=n.n(ti),ii={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"===typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(e){e.hover=t.hoverOption===e}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}},ri={mixins:[O.a,v.a,X()("reference"),ii],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(_["isIE"])()&&!Object(_["isEdge"])()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value,t=this.clearable&&!this.selectDisabled&&this.inputHovering&&e;return t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(e){return!e.created})).some((function(t){return t.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return"undefined"!==typeof this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:g.a,ElSelectMenu:jn,ElOption:Xn,ElTag:Jn.a,ElScrollbar:H.a},directives:{Clickoutside:$.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(_["valueEquals"])(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(e){return t.handleQueryChange(n)}));else{var i=n[n.length-1]||"";this.isOnComposition=!Object(Tt["isKorean"])(i)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!==typeof this.filterMethod&&"function"!==typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"===typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"===typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");ni()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object(_["valueEquals"])(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),i="[object null]"===Object.prototype.toString.call(e).toLowerCase(),r="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o],s=n?Object(_["getValueByPath"])(a.value,this.valueKey)===Object(_["getValueByPath"])(e,this.valueKey):a.value===e;if(s){t=a;break}}if(t)return t;var l=n||i||r?"":e,c={value:e,currentLabel:l};return this.multiple&&(c.hitState=!1),c},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(t){n.push(e.getOption(t))})),this.selected=n,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.filterable&&(this.menuVisibleOnFocus=!0)),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],i=e.$refs.tags,r=e.initialInputHeight||40;n.style.height=0===e.selected.length?r+"px":Math.max(i?i.clientHeight+(i.clientHeight>r?6:0):0,r)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var i=(this.value||[]).slice(),r=this.getValueIndex(i,e.value);r>-1?i.splice(r,1):(this.multipleLimit<=0||i.length0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var i=this.valueKey,r=-1;return e.some((function(e,n){return Object(_["getValueByPath"])(e,i)===Object(_["getValueByPath"])(t,i)&&(r=n,!0)})),r}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var i=this.value.slice();i.splice(n,1),this.$emit("input",i),this.emitChange(i),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var i=this.options[n];if(this.query){if(!i.disabled&&!i.groupDisabled&&i.visible){this.hoverIndex=n;break}}else if(i.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(_["getValueByPath"])(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=F()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=F()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(ei["addResizeListener"])(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n={medium:36,small:32,mini:28},i=t.$el.querySelector("input");this.initialInputHeight=i.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(ei["removeResizeListener"])(this.$el,this.handleResize)}},oi=ri,ai=s(oi,Fn,Bn,!1,null,null,null);ai.options.__file="packages/select/src/select.vue";var si=ai.exports;si.install=function(e){e.component(si.name,si)};var li=si;Xn.install=function(e){e.component(Xn.name,Xn)};var ci=Xn,ui=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-group__wrap"},[n("li",{staticClass:"el-select-group__title"},[e._v(e._s(e.label))]),n("li",[n("ul",{staticClass:"el-select-group"},[e._t("default")],2)])])},di=[];ui._withStripped=!0;var hi={mixins:[O.a],name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},data:function(){return{visible:!0}},watch:{disabled:function(e){this.broadcast("ElOption","handleGroupDisabled",e)}},methods:{queryChange:function(){this.visible=this.$children&&Array.isArray(this.$children)&&this.$children.some((function(e){return!0===e.visible}))}},created:function(){this.$on("queryChange",this.queryChange)},mounted:function(){this.disabled&&this.broadcast("ElOption","handleGroupDisabled",this.disabled)}},pi=hi,fi=s(pi,ui,di,!1,null,null,null);fi.options.__file="packages/select/src/option-group.vue";var gi=fi.exports;gi.install=function(e){e.component(gi.name,gi)};var mi=gi,vi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])},_i=[];vi._withStripped=!0;var yi={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},bi=yi,Si=s(bi,vi,_i,!1,null,null,null);Si.options.__file="packages/button/src/button.vue";var Ei=Si.exports;Ei.install=function(e){e.component(Ei.name,Ei)};var Ci=Ei,xi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-button-group"},[e._t("default")],2)},wi=[];xi._withStripped=!0;var Ti={name:"ElButtonGroup"},Ai=Ti,Oi=s(Ai,xi,wi,!1,null,null,null);Oi.options.__file="packages/button/src/button-group.vue";var Ri=Oi.exports;Ri.install=function(e){e.component(Ri.name,Ri)};var Ni=Ri,Di=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-table",class:[{"el-table--fit":e.fit,"el-table--striped":e.stripe,"el-table--border":e.border||e.isGroup,"el-table--hidden":e.isHidden,"el-table--group":e.isGroup,"el-table--fluid-height":e.maxHeight,"el-table--scrollable-x":e.layout.scrollX,"el-table--scrollable-y":e.layout.scrollY,"el-table--enable-row-hover":!e.store.states.isComplex,"el-table--enable-row-transition":0!==(e.store.states.data||[]).length&&(e.store.states.data||[]).length<100},e.tableSize?"el-table--"+e.tableSize:""],on:{mouseleave:function(t){e.handleMouseLeave(t)}}},[n("div",{ref:"hiddenColumns",staticClass:"hidden-columns"},[e._t("default")],2),e.showHeader?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"headerWrapper",staticClass:"el-table__header-wrapper"},[n("table-header",{ref:"tableHeader",style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"default-sort":e.defaultSort}})],1):e._e(),n("div",{ref:"bodyWrapper",staticClass:"el-table__body-wrapper",class:[e.layout.scrollX?"is-scrolling-"+e.scrollPosition:"is-scrolling-none"],style:[e.bodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{context:e.context,store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.data&&0!==e.data.length?e._e():n("div",{ref:"emptyBlock",staticClass:"el-table__empty-block",style:e.emptyBlockStyle},[n("span",{staticClass:"el-table__empty-text"},[e._t("empty",[e._v(e._s(e.emptyText||e.t("el.table.emptyText")))])],2)]),e.$slots.append?n("div",{ref:"appendWrapper",staticClass:"el-table__append-wrapper"},[e._t("append")],2):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"},{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"footerWrapper",staticClass:"el-table__footer-wrapper"},[n("table-footer",{style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,"default-sort":e.defaultSort}})],1):e._e(),e.fixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"fixedWrapper",staticClass:"el-table__fixed",style:[{width:e.layout.fixedWidth?e.layout.fixedWidth+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"fixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"fixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"fixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"left",store:e.store,stripe:e.stripe,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"row-style":e.rowStyle}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"fixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"rightFixedWrapper",staticClass:"el-table__fixed-right",style:[{width:e.layout.rightFixedWidth?e.layout.rightFixedWidth+"px":"",right:e.layout.scrollY?(e.border?e.layout.gutterWidth:e.layout.gutterWidth||0)+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"rightFixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"rightFixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"rightFixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"right",store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"rightFixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{ref:"rightFixedPatch",staticClass:"el-table__fixed-right-patch",style:{width:e.layout.scrollY?e.layout.gutterWidth+"px":"0",height:e.layout.headerHeight+"px"}}):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.resizeProxyVisible,expression:"resizeProxyVisible"}],ref:"resizeProxy",staticClass:"el-table__column-resize-proxy"})])},Ii=[];Di._withStripped=!0;var Mi=n(16),ki=n.n(Mi),Li=n(35),Pi=n(38),Fi=n.n(Pi),Bi="undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,$i=function(e,t){e&&e.addEventListener&&e.addEventListener(Bi?"DOMMouseScroll":"mousewheel",(function(e){var n=Fi()(e);t&&t.apply(this,[e,n])}))},Vi={bind:function(e,t){$i(e,t.value)}},Gi=n(6),Ui=n.n(Gi),zi="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ji=function(e){var t=e.target;while(t&&"HTML"!==t.tagName.toUpperCase()){if("TD"===t.tagName.toUpperCase())return t;t=t.parentNode}return null},Hi=function(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":zi(e))},Wi=function(e,t,n,i,r){if(!t&&!i&&(!r||Array.isArray(r)&&!r.length))return e;n="string"===typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var o=i?null:function(n,i){return r?(Array.isArray(r)||(r=[r]),r.map((function(t){return"string"===typeof t?Object(_["getValueByPath"])(n,t):t(n,i,e)}))):("$key"!==t&&Hi(n)&&"$value"in n&&(n=n.$value),[Hi(n)?Object(_["getValueByPath"])(n,t):n])},a=function(e,t){if(i)return i(e.value,t.value);for(var n=0,r=e.key.length;nt.key[n])return 1}return 0};return e.map((function(e,t){return{value:e,index:t,key:o?o(e,t):null}})).sort((function(e,t){var i=a(e,t);return i||(i=e.index-t.index),i*n})).map((function(e){return e.value}))},Yi=function(e,t){var n=null;return e.columns.forEach((function(e){e.id===t&&(n=e)})),n},qi=function(e,t){for(var n=null,i=0;i2&&void 0!==arguments[2]?arguments[2]:"children",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hasChildren",r=function(e){return!(Array.isArray(e)&&e.length)};function o(e,a,s){t(e,a,s),a.forEach((function(e){if(e[i])t(e,null,s+1);else{var a=e[n];r(a)||o(e,a,s+1)}}))}e.forEach((function(e){if(e[i])t(e,null,0);else{var a=e[n];r(a)||o(e,a,0)}}))}var ar={data:function(){return{states:{defaultExpandAll:!1,expandRows:[]}}},methods:{updateExpandRows:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,i=e.rowKey,r=e.defaultExpandAll,o=e.expandRows;if(r)this.states.expandRows=n.slice();else if(i){var a=Xi(o,i);this.states.expandRows=n.reduce((function(e,t){var n=Qi(t,i),r=a[n];return r&&e.push(t),e}),[])}else this.states.expandRows=[]},toggleRowExpansion:function(e,t){var n=rr(this.states.expandRows,e,t);n&&(this.table.$emit("expand-change",e,this.states.expandRows.slice()),this.scheduleLayout())},setExpandRowKeys:function(e){this.assertRowKey();var t=this.states,n=t.data,i=t.rowKey,r=Xi(n,i);this.states.expandRows=e.reduce((function(e,t){var n=r[t];return n&&e.push(n.row),e}),[])},isRowExpanded:function(e){var t=this.states,n=t.expandRows,i=void 0===n?[]:n,r=t.rowKey;if(r){var o=Xi(i,r);return!!o[Qi(e,r)]}return-1!==i.indexOf(e)}}},sr={data:function(){return{states:{_currentRowKey:null,currentRow:null}}},methods:{setCurrentRowKey:function(e){this.assertRowKey(),this.states._currentRowKey=e,this.setCurrentRowByKey(e)},restoreCurrentRowKey:function(){this.states._currentRowKey=null},setCurrentRowByKey:function(e){var t=this.states,n=t.data,i=void 0===n?[]:n,r=t.rowKey,o=null;r&&(o=Object(_["arrayFind"])(i,(function(t){return Qi(t,r)===e}))),t.currentRow=o},updateCurrentRow:function(e){var t=this.states,n=this.table,i=t.currentRow;if(e&&e!==i)return t.currentRow=e,void n.$emit("current-change",e,i);!e&&i&&(t.currentRow=null,n.$emit("current-change",null,i))},updateCurrentRowData:function(){var e=this.states,t=this.table,n=e.rowKey,i=e._currentRowKey,r=e.data||[],o=e.currentRow;if(-1===r.indexOf(o)&&o){if(n){var a=Qi(o,n);this.setCurrentRowByKey(a)}else e.currentRow=null;null===e.currentRow&&t.$emit("current-change",null,o)}else i&&(this.setCurrentRowByKey(i),this.restoreCurrentRowKey())}}},lr=Object.assign||function(e){for(var t=1;t0&&t[0]&&"selection"===t[0].type&&!t[0].fixed&&(t[0].fixed=!0,e.fixedColumns.unshift(t[0]));var n=t.filter((function(e){return!e.fixed}));e.originColumns=[].concat(e.fixedColumns).concat(n).concat(e.rightFixedColumns);var i=dr(n),r=dr(e.fixedColumns),o=dr(e.rightFixedColumns);e.leafColumnsLength=i.length,e.fixedLeafColumnsLength=r.length,e.rightFixedLeafColumnsLength=o.length,e.columns=[].concat(r).concat(i).concat(o),e.isComplex=e.fixedColumns.length>0||e.rightFixedColumns.length>0},scheduleLayout:function(e){e&&this.updateColumns(),this.table.debouncedUpdateLayout()},isSelected:function(e){var t=this.states.selection,n=void 0===t?[]:t;return n.indexOf(e)>-1},clearSelection:function(){var e=this.states;e.isAllSelected=!1;var t=e.selection;t.length&&(e.selection=[],this.table.$emit("selection-change",[]))},cleanSelection:function(){var e=this.states,t=e.data,n=e.rowKey,i=e.selection,r=void 0;if(n){r=[];var o=Xi(i,n),a=Xi(t,n);for(var s in o)o.hasOwnProperty(s)&&!a[s]&&r.push(o[s].row)}else r=i.filter((function(e){return-1===t.indexOf(e)}));if(r.length){var l=i.filter((function(e){return-1===r.indexOf(e)}));e.selection=l,this.table.$emit("selection-change",l.slice())}},toggleRowSelection:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=rr(this.states.selection,e,t);if(i){var r=(this.states.selection||[]).slice();n&&this.table.$emit("select",r,e),this.table.$emit("selection-change",r)}},_toggleAllSelection:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,i=e.selection,r=e.selectOnIndeterminate?!e.isAllSelected:!(e.isAllSelected||i.length);e.isAllSelected=r;var o=!1;n.forEach((function(t,n){e.selectable?e.selectable.call(null,t,n)&&rr(i,t,r)&&(o=!0):rr(i,t,r)&&(o=!0)})),o&&this.table.$emit("selection-change",i?i.slice():[]),this.table.$emit("select-all",i)},updateSelectionByRowKey:function(){var e=this.states,t=e.selection,n=e.rowKey,i=e.data,r=Xi(t,n);i.forEach((function(e){var i=Qi(e,n),o=r[i];o&&(t[o.index]=e)}))},updateAllSelected:function(){var e=this.states,t=e.selection,n=e.rowKey,i=e.selectable,r=e.data||[];if(0!==r.length){var o=void 0;n&&(o=Xi(t,n));for(var a=function(e){return o?!!o[Qi(e,n)]:-1!==t.indexOf(e)},s=!0,l=0,c=0,u=r.length;c1?n-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Table is required.");var n=new pr;return n.table=e,n.toggleAllSelection=F()(10,n._toggleAllSelection),Object.keys(t).forEach((function(e){n.states[e]=t[e]})),n}function gr(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n],r=void 0;"string"===typeof i?r=function(){return this.store.states[i]}:"function"===typeof i?r=function(){return i.call(this,this.store.states)}:console.error("invalid value type"),r&&(t[n]=r)})),t}var mr=n(30),vr=n.n(mr);function _r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var yr=function(){function e(t){for(var n in _r(this,e),this.observers=[],this.table=null,this.store=null,this.columns=null,this.fit=!0,this.showHeader=!0,this.height=null,this.scrollX=!1,this.scrollY=!1,this.bodyWidth=null,this.fixedWidth=null,this.rightFixedWidth=null,this.tableHeight=null,this.headerHeight=44,this.appendHeight=0,this.footerHeight=44,this.viewportHeight=null,this.bodyHeight=null,this.fixedBodyHeight=null,this.gutterWidth=vr()(),t)t.hasOwnProperty(n)&&(this[n]=t[n]);if(!this.table)throw new Error("table is required for Table Layout");if(!this.store)throw new Error("store is required for Table Layout")}return e.prototype.updateScrollY=function(){var e=this.height;if(null===e)return!1;var t=this.table.bodyWrapper;if(this.table.$el&&t){var n=t.querySelector(".el-table__body"),i=this.scrollY,r=n.offsetHeight>this.bodyHeight;return this.scrollY=r,i!==r}return!1},e.prototype.setHeight=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"height";if(!Ui.a.prototype.$isServer){var i=this.table.$el;if(e=nr(e),this.height=e,!i&&(e||0===e))return Ui.a.nextTick((function(){return t.setHeight(e,n)}));"number"===typeof e?(i.style[n]=e+"px",this.updateElsHeight()):"string"===typeof e&&(i.style[n]=e,this.updateElsHeight())}},e.prototype.setMaxHeight=function(e){this.setHeight(e,"max-height")},e.prototype.getFlattenColumns=function(){var e=[],t=this.table.columns;return t.forEach((function(t){t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)})),e},e.prototype.updateElsHeight=function(){var e=this;if(!this.table.$ready)return Ui.a.nextTick((function(){return e.updateElsHeight()}));var t=this.table.$refs,n=t.headerWrapper,i=t.appendWrapper,r=t.footerWrapper;if(this.appendHeight=i?i.offsetHeight:0,!this.showHeader||n){var o=n?n.querySelector(".el-table__header tr"):null,a=this.headerDisplayNone(o),s=this.headerHeight=this.showHeader?n.offsetHeight:0;if(this.showHeader&&!a&&n.offsetWidth>0&&(this.table.columns||[]).length>0&&s<2)return Ui.a.nextTick((function(){return e.updateElsHeight()}));var l=this.tableHeight=this.table.$el.clientHeight,c=this.footerHeight=r?r.offsetHeight:0;null!==this.height&&(this.bodyHeight=l-s-c+(r?1:0)),this.fixedBodyHeight=this.scrollX?this.bodyHeight-this.gutterWidth:this.bodyHeight;var u=!(this.store.states.data&&this.store.states.data.length);this.viewportHeight=this.scrollX?l-(u?0:this.gutterWidth):l,this.updateScrollY(),this.notifyObservers("scrollable")}},e.prototype.headerDisplayNone=function(e){if(!e)return!0;var t=e;while("DIV"!==t.tagName){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1},e.prototype.updateColumnsWidth=function(){if(!Ui.a.prototype.$isServer){var e=this.fit,t=this.table.$el.clientWidth,n=0,i=this.getFlattenColumns(),r=i.filter((function(e){return"number"!==typeof e.width}));if(i.forEach((function(e){"number"===typeof e.width&&e.realWidth&&(e.realWidth=null)})),r.length>0&&e){i.forEach((function(e){n+=e.width||e.minWidth||80}));var o=this.scrollY?this.gutterWidth:0;if(n<=t-o){this.scrollX=!1;var a=t-o-n;if(1===r.length)r[0].realWidth=(r[0].minWidth||80)+a;else{var s=r.reduce((function(e,t){return e+(t.minWidth||80)}),0),l=a/s,c=0;r.forEach((function(e,t){if(0!==t){var n=Math.floor((e.minWidth||80)*l);c+=n,e.realWidth=(e.minWidth||80)+n}})),r[0].realWidth=(r[0].minWidth||80)+a-c}}else this.scrollX=!0,r.forEach((function(e){e.realWidth=e.minWidth}));this.bodyWidth=Math.max(n,t),this.table.resizeState.width=this.bodyWidth}else i.forEach((function(e){e.width||e.minWidth?e.realWidth=e.width||e.minWidth:e.realWidth=80,n+=e.realWidth})),this.scrollX=n>t,this.bodyWidth=n;var u=this.store.states.fixedColumns;if(u.length>0){var d=0;u.forEach((function(e){d+=e.realWidth||e.width})),this.fixedWidth=d}var h=this.store.states.rightFixedColumns;if(h.length>0){var p=0;h.forEach((function(e){p+=e.realWidth||e.width})),this.rightFixedWidth=p}this.notifyObservers("columns")}},e.prototype.addObserver=function(e){this.observers.push(e)},e.prototype.removeObserver=function(e){var t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)},e.prototype.notifyObservers=function(e){var t=this,n=this.observers;n.forEach((function(n){switch(e){case"columns":n.onColumnsChange(t);break;case"scrollable":n.onScrollableChange(t);break;default:throw new Error("Table Layout don't have event "+e+".")}}))},e}(),br=yr,Sr={created:function(){this.tableLayout.addObserver(this)},destroyed:function(){this.tableLayout.removeObserver(this)},computed:{tableLayout:function(){var e=this.layout;if(!e&&this.table&&(e=this.table.layout),!e)throw new Error("Can not find table layout.");return e}},mounted:function(){this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout)},updated:function(){this.__updated__||(this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout),this.__updated__=!0)},methods:{onColumnsChange:function(e){var t=this.$el.querySelectorAll("colgroup > col");if(t.length){var n=e.getFlattenColumns(),i={};n.forEach((function(e){i[e.id]=e}));for(var r=0,o=t.length;r col[name=gutter]"),n=0,i=t.length;n=this.leftFixedLeafCount:"right"===this.fixed?e=this.columnsCount-this.rightFixedLeafCount},getSpan:function(e,t,n,i){var r=1,o=1,a=this.table.spanMethod;if("function"===typeof a){var s=a({row:e,column:t,rowIndex:n,columnIndex:i});Array.isArray(s)?(r=s[0],o=s[1]):"object"===("undefined"===typeof s?"undefined":Er(s))&&(r=s.rowspan,o=s.colspan)}return{rowspan:r,colspan:o}},getRowStyle:function(e,t){var n=this.table.rowStyle;return"function"===typeof n?n.call(null,{row:e,rowIndex:t}):n||null},getRowClass:function(e,t){var n=["el-table__row"];this.table.highlightCurrentRow&&e===this.store.states.currentRow&&n.push("current-row"),this.stripe&&t%2===1&&n.push("el-table__row--striped");var i=this.table.rowClassName;return"string"===typeof i?n.push(i):"function"===typeof i&&n.push(i.call(null,{row:e,rowIndex:t})),this.store.states.expandRows.indexOf(e)>-1&&n.push("expanded"),n},getCellStyle:function(e,t,n,i){var r=this.table.cellStyle;return"function"===typeof r?r.call(null,{rowIndex:e,columnIndex:t,row:n,column:i}):r},getCellClass:function(e,t,n,i){var r=[i.id,i.align,i.className];this.isColumnHidden(t)&&r.push("is-hidden");var o=this.table.cellClassName;return"string"===typeof o?r.push(o):"function"===typeof o&&r.push(o.call(null,{rowIndex:e,columnIndex:t,row:n,column:i})),r.join(" ")},getColspanRealWidth:function(e,t,n){if(t<1)return e[n].realWidth;var i=e.map((function(e){var t=e.realWidth;return t})).slice(n,n+t);return i.reduce((function(e,t){return e+t}),-1)},handleCellMouseEnter:function(e,t){var n=this.table,i=ji(e);if(i){var r=Ki(n,i),o=n.hoverState={cell:i,column:r,row:t};n.$emit("cell-mouse-enter",o.row,o.column,o.cell,e)}var a=e.target.querySelector(".cell");if(Object(Be["hasClass"])(a,"el-tooltip")&&a.childNodes.length){var s=document.createRange();s.setStart(a,0),s.setEnd(a,a.childNodes.length);var l=s.getBoundingClientRect().width,c=(parseInt(Object(Be["getStyle"])(a,"paddingLeft"),10)||0)+(parseInt(Object(Be["getStyle"])(a,"paddingRight"),10)||0);if((l+c>a.offsetWidth||a.scrollWidth>a.offsetWidth)&&this.$refs.tooltip){var u=this.$refs.tooltip;this.tooltipContent=i.innerText||i.textContent,u.referenceElm=i,u.$refs.popper&&(u.$refs.popper.style.display="none"),u.doDestroy(),u.setExpectedState(!0),this.activateTooltip(u)}}},handleCellMouseLeave:function(e){var t=this.$refs.tooltip;t&&(t.setExpectedState(!1),t.handleClosePopper());var n=ji(e);if(n){var i=this.table.hoverState||{};this.table.$emit("cell-mouse-leave",i.row,i.column,i.cell,e)}},handleMouseEnter:F()(30,(function(e){this.store.commit("setHoverRow",e)})),handleMouseLeave:F()(30,(function(){this.store.commit("setHoverRow",null)})),handleContextMenu:function(e,t){this.handleEvent(e,t,"contextmenu")},handleDoubleClick:function(e,t){this.handleEvent(e,t,"dblclick")},handleClick:function(e,t){this.store.commit("setCurrentRow",t),this.handleEvent(e,t,"click")},handleEvent:function(e,t,n){var i=this.table,r=ji(e),o=void 0;r&&(o=Ki(i,r),o&&i.$emit("cell-"+n,t,o,r,e)),i.$emit("row-"+n,t,o,e)},rowRender:function(e,t,n){var i=this,r=this.$createElement,o=this.treeIndent,a=this.columns,s=this.firstDefaultColumnIndex,l=a.map((function(e,t){return i.isColumnHidden(t)})),c=this.getRowClass(e,t),u=!0;n&&(c.push("el-table__row--level-"+n.level),u=n.display);var d=u?null:{display:"none"};return r("tr",{style:[d,this.getRowStyle(e,t)],class:c,key:this.getKeyOfRow(e,t),on:{dblclick:function(t){return i.handleDoubleClick(t,e)},click:function(t){return i.handleClick(t,e)},contextmenu:function(t){return i.handleContextMenu(t,e)},mouseenter:function(e){return i.handleMouseEnter(t)},mouseleave:this.handleMouseLeave}},[a.map((function(c,u){var d=i.getSpan(e,c,t,u),h=d.rowspan,p=d.colspan;if(!h||!p)return null;var f=Cr({},c);f.realWidth=i.getColspanRealWidth(a,p,u);var g={store:i.store,_self:i.context||i.table.$vnode.context,column:f,row:e,$index:t};return u===s&&n&&(g.treeNode={indent:n.level*o,level:n.level},"boolean"===typeof n.expanded&&(g.treeNode.expanded=n.expanded,"loading"in n&&(g.treeNode.loading=n.loading),"noLazyChildren"in n&&(g.treeNode.noLazyChildren=n.noLazyChildren))),r("td",{style:i.getCellStyle(t,u,e,c),class:i.getCellClass(t,u,e,c),attrs:{rowspan:h,colspan:p},on:{mouseenter:function(t){return i.handleCellMouseEnter(t,e)},mouseleave:i.handleCellMouseLeave}},[c.renderCell.call(i._renderProxy,i.$createElement,g,l[u])])}))])},wrappedRowRender:function(e,t){var n=this,i=this.$createElement,r=this.store,o=r.isRowExpanded,a=r.assertRowKey,s=r.states,l=s.treeData,c=s.lazyTreeNodeMap,u=s.childrenColumnName,d=s.rowKey;if(this.hasExpandColumn&&o(e)){var h=this.table.renderExpanded,p=this.rowRender(e,t);return h?[[p,i("tr",{key:"expanded-row__"+p.key},[i("td",{attrs:{colspan:this.columnsCount},class:"el-table__expanded-cell"},[h(this.$createElement,{row:e,$index:t,store:this.store})])])]]:(console.error("[Element Error]renderExpanded is required."),p)}if(Object.keys(l).length){a();var f=Qi(e,d),g=l[f],m=null;g&&(m={expanded:g.expanded,level:g.level,display:!0},"boolean"===typeof g.lazy&&("boolean"===typeof g.loaded&&g.loaded&&(m.noLazyChildren=!(g.children&&g.children.length)),m.loading=g.loading));var v=[this.rowRender(e,t,m)];if(g){var _=0,y=function e(i,r){i&&i.length&&r&&i.forEach((function(i){var o={display:r.display&&r.expanded,level:r.level+1},a=Qi(i,d);if(void 0===a||null===a)throw new Error("for nested data item, row-key is required.");if(g=Cr({},l[a]),g&&(o.expanded=g.expanded,g.level=g.level||o.level,g.display=!(!g.expanded||!o.display),"boolean"===typeof g.lazy&&("boolean"===typeof g.loaded&&g.loaded&&(o.noLazyChildren=!(g.children&&g.children.length)),o.loading=g.loading)),_++,v.push(n.rowRender(i,t+_,o)),g){var s=c[a]||i[u];e(s,g)}}))};g.display=!0;var b=c[f]||e[u];y(b,g)}return v}return this.rowRender(e,t)}}},wr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"}},[e.multiple?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("div",{staticClass:"el-table-filter__content"},[n("el-scrollbar",{attrs:{"wrap-class":"el-table-filter__wrap"}},[n("el-checkbox-group",{staticClass:"el-table-filter__checkbox-group",model:{value:e.filteredValue,callback:function(t){e.filteredValue=t},expression:"filteredValue"}},e._l(e.filters,(function(t){return n("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.text))])})),1)],1)],1),n("div",{staticClass:"el-table-filter__bottom"},[n("button",{class:{"is-disabled":0===e.filteredValue.length},attrs:{disabled:0===e.filteredValue.length},on:{click:e.handleConfirm}},[e._v(e._s(e.t("el.table.confirmFilter")))]),n("button",{on:{click:e.handleReset}},[e._v(e._s(e.t("el.table.resetFilter")))])])]):n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("ul",{staticClass:"el-table-filter__list"},[n("li",{staticClass:"el-table-filter__list-item",class:{"is-active":void 0===e.filterValue||null===e.filterValue},on:{click:function(t){e.handleSelect(null)}}},[e._v(e._s(e.t("el.table.clearFilter")))]),e._l(e.filters,(function(t){return n("li",{key:t.value,staticClass:"el-table-filter__list-item",class:{"is-active":e.isActive(t)},attrs:{label:t.value},on:{click:function(n){e.handleSelect(t.value)}}},[e._v(e._s(t.text))])}))],2)])])},Tr=[];wr._withStripped=!0;var Ar=[];!Ui.a.prototype.$isServer&&document.addEventListener("click",(function(e){Ar.forEach((function(t){var n=e.target;t&&t.$el&&(n===t.$el||t.$el.contains(n)||t.handleOutsideClick&&t.handleOutsideClick(e))}))}));var Or={open:function(e){e&&Ar.push(e)},close:function(e){var t=Ar.indexOf(e);-1!==t&&Ar.splice(e,1)}},Rr=n(31),Nr=n.n(Rr),Dr={name:"ElTableFilterPanel",mixins:[z.a,v.a],directives:{Clickoutside:$.a},components:{ElCheckbox:ki.a,ElCheckboxGroup:Nr.a,ElScrollbar:H.a},props:{placement:{type:String,default:"bottom-end"}},methods:{isActive:function(e){return e.value===this.filterValue},handleOutsideClick:function(){var e=this;setTimeout((function(){e.showPopper=!1}),16)},handleConfirm:function(){this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleReset:function(){this.filteredValue=[],this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleSelect:function(e){this.filterValue=e,"undefined"!==typeof e&&null!==e?this.confirmFilter(this.filteredValue):this.confirmFilter([]),this.handleOutsideClick()},confirmFilter:function(e){this.table.store.commit("filterChange",{column:this.column,values:e}),this.table.store.updateAllSelected()}},data:function(){return{table:null,cell:null,column:null}},computed:{filters:function(){return this.column&&this.column.filters},filterValue:{get:function(){return(this.column.filteredValue||[])[0]},set:function(e){this.filteredValue&&("undefined"!==typeof e&&null!==e?this.filteredValue.splice(0,1,e):this.filteredValue.splice(0,1))}},filteredValue:{get:function(){return this.column&&this.column.filteredValue||[]},set:function(e){this.column&&(this.column.filteredValue=e)}},multiple:function(){return!this.column||this.column.filterMultiple}},mounted:function(){var e=this;this.popperElm=this.$el,this.referenceElm=this.cell,this.table.bodyWrapper.addEventListener("scroll",(function(){e.updatePopper()})),this.$watch("showPopper",(function(t){e.column&&(e.column.filterOpened=t),t?Or.open(e):Or.close(e)}))},watch:{showPopper:function(e){!0===e&&parseInt(this.popperJS._popper.style.zIndex,10)1;return r&&(this.$parent.isGroup=!0),e("table",{class:"el-table__header",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})})),this.hasGutter?e("col",{attrs:{name:"gutter"}}):""]),e("thead",{class:[{"is-group":r,"has-gutter":this.hasGutter}]},[this._l(i,(function(n,i){return e("tr",{style:t.getHeaderRowStyle(i),class:t.getHeaderRowClass(i)},[n.map((function(r,o){return e("th",{attrs:{colspan:r.colSpan,rowspan:r.rowSpan},on:{mousemove:function(e){return t.handleMouseMove(e,r)},mouseout:t.handleMouseOut,mousedown:function(e){return t.handleMouseDown(e,r)},click:function(e){return t.handleHeaderClick(e,r)},contextmenu:function(e){return t.handleHeaderContextMenu(e,r)}},style:t.getHeaderCellStyle(i,o,n,r),class:t.getHeaderCellClass(i,o,n,r),key:r.id},[e("div",{class:["cell",r.filteredValue&&r.filteredValue.length>0?"highlight":"",r.labelClassName]},[r.renderHeader?r.renderHeader.call(t._renderProxy,e,{column:r,$index:o,store:t.store,_self:t.$parent.$vnode.context}):r.label,r.sortable?e("span",{class:"caret-wrapper",on:{click:function(e){return t.handleSortClick(e,r)}}},[e("i",{class:"sort-caret ascending",on:{click:function(e){return t.handleSortClick(e,r,"ascending")}}}),e("i",{class:"sort-caret descending",on:{click:function(e){return t.handleSortClick(e,r,"descending")}}})]):"",r.filterable?e("span",{class:"el-table__column-filter-trigger",on:{click:function(e){return t.handleFilterClick(e,r)}}},[e("i",{class:["el-icon-arrow-down",r.filterOpened?"el-icon-arrow-up":""]})]):""])])})),t.hasGutter?e("th",{class:"gutter"}):""])}))])])},props:{fixed:String,store:{required:!0},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},components:{ElCheckbox:ki.a},computed:Lr({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},gr({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),created:function(){this.filterPanels={}},mounted:function(){var e=this;this.$nextTick((function(){var t=e.defaultSort,n=t.prop,i=t.order,r=!0;e.store.commit("sort",{prop:n,order:i,init:r})}))},beforeDestroy:function(){var e=this.filterPanels;for(var t in e)e.hasOwnProperty(t)&&e[t]&&e[t].$destroy(!0)},methods:{isCellHidden:function(e,t){for(var n=0,i=0;i=this.leftFixedLeafCount:"right"===this.fixed?n=this.columnsCount-this.rightFixedLeafCount},getHeaderRowStyle:function(e){var t=this.table.headerRowStyle;return"function"===typeof t?t.call(null,{rowIndex:e}):t},getHeaderRowClass:function(e){var t=[],n=this.table.headerRowClassName;return"string"===typeof n?t.push(n):"function"===typeof n&&t.push(n.call(null,{rowIndex:e})),t.join(" ")},getHeaderCellStyle:function(e,t,n,i){var r=this.table.headerCellStyle;return"function"===typeof r?r.call(null,{rowIndex:e,columnIndex:t,row:n,column:i}):r},getHeaderCellClass:function(e,t,n,i){var r=[i.id,i.order,i.headerAlign,i.className,i.labelClassName];0===e&&this.isCellHidden(t,n)&&r.push("is-hidden"),i.children||r.push("is-leaf"),i.sortable&&r.push("is-sortable");var o=this.table.headerCellClassName;return"string"===typeof o?r.push(o):"function"===typeof o&&r.push(o.call(null,{rowIndex:e,columnIndex:t,row:n,column:i})),r.join(" ")},toggleAllSelection:function(e){e.stopPropagation(),this.store.commit("toggleAllSelection")},handleFilterClick:function(e,t){e.stopPropagation();var n=e.target,i="TH"===n.tagName?n:n.parentNode;if(!Object(Be["hasClass"])(i,"noclick")){i=i.querySelector(".el-table__column-filter-trigger")||i;var r=this.$parent,o=this.filterPanels[t.id];o&&t.filterOpened?o.showPopper=!1:(o||(o=new Ui.a(kr),this.filterPanels[t.id]=o,t.filterPlacement&&(o.placement=t.filterPlacement),o.table=r,o.cell=i,o.column=t,!this.$isServer&&o.$mount(document.createElement("div"))),setTimeout((function(){o.showPopper=!0}),16))}},handleHeaderClick:function(e,t){!t.filters&&t.sortable?this.handleSortClick(e,t):t.filterable&&!t.sortable&&this.handleFilterClick(e,t),this.$parent.$emit("header-click",t,e)},handleHeaderContextMenu:function(e,t){this.$parent.$emit("header-contextmenu",t,e)},handleMouseDown:function(e,t){var n=this;if(!this.$isServer&&!(t.children&&t.children.length>0)&&this.draggingColumn&&this.border){this.dragging=!0,this.$parent.resizeProxyVisible=!0;var i=this.$parent,r=i.$el,o=r.getBoundingClientRect().left,a=this.$el.querySelector("th."+t.id),s=a.getBoundingClientRect(),l=s.left-o+30;Object(Be["addClass"])(a,"noclick"),this.dragState={startMouseLeft:e.clientX,startLeft:s.right-o,startColumnLeft:s.left-o,tableLeft:o};var c=i.$refs.resizeProxy;c.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var u=function(e){var t=e.clientX-n.dragState.startMouseLeft,i=n.dragState.startLeft+t;c.style.left=Math.max(l,i)+"px"},d=function r(){if(n.dragging){var o=n.dragState,s=o.startColumnLeft,l=o.startLeft,d=parseInt(c.style.left,10),h=d-s;t.width=t.realWidth=h,i.$emit("header-dragend",t.width,l-s,t,e),n.store.scheduleLayout(),document.body.style.cursor="",n.dragging=!1,n.draggingColumn=null,n.dragState={},i.resizeProxyVisible=!1}document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",r),document.onselectstart=null,document.ondragstart=null,setTimeout((function(){Object(Be["removeClass"])(a,"noclick")}),0)};document.addEventListener("mousemove",u),document.addEventListener("mouseup",d)}},handleMouseMove:function(e,t){if(!(t.children&&t.children.length>0)){var n=e.target;while(n&&"TH"!==n.tagName)n=n.parentNode;if(t&&t.resizable&&!this.dragging&&this.border){var i=n.getBoundingClientRect(),r=document.body.style;i.width>12&&i.right-e.pageX<8?(r.cursor="col-resize",Object(Be["hasClass"])(n,"is-sortable")&&(n.style.cursor="col-resize"),this.draggingColumn=t):this.dragging||(r.cursor="",Object(Be["hasClass"])(n,"is-sortable")&&(n.style.cursor="pointer"),this.draggingColumn=null)}}},handleMouseOut:function(){this.$isServer||(document.body.style.cursor="")},toggleOrder:function(e){var t=e.order,n=e.sortOrders;if(""===t)return n[0];var i=n.indexOf(t||null);return n[i>n.length-2?0:i+1]},handleSortClick:function(e,t,n){e.stopPropagation();var i=t.order===n?null:n||this.toggleOrder(t),r=e.target;while(r&&"TH"!==r.tagName)r=r.parentNode;if(r&&"TH"===r.tagName&&Object(Be["hasClass"])(r,"noclick"))Object(Be["removeClass"])(r,"noclick");else if(t.sortable){var o=this.store.states,a=o.sortProp,s=void 0,l=o.sortingColumn;(l!==t||l===t&&null===l.order)&&(l&&(l.order=null),o.sortingColumn=t,a=t.property),s=t.order=i||null,o.sortProp=a,o.sortOrder=s,this.store.commit("changeSortCondition")}}},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}}},$r=Object.assign||function(e){for(var t=1;t=this.leftFixedLeafCount;if("right"===this.fixed){for(var i=0,r=0;r=this.columnsCount-this.rightFixedCount)},getRowClasses:function(e,t){var n=[e.id,e.align,e.labelClassName];return e.className&&n.push(e.className),this.isCellHidden(t,this.columns,e)&&n.push("is-hidden"),e.children||n.push("is-leaf"),n}}},Gr=Object.assign||function(e){for(var t=1;t0){var i=n.scrollTop;t.pixelY<0&&0!==i&&e.preventDefault(),t.pixelY>0&&n.scrollHeight-n.clientHeight>i&&e.preventDefault(),n.scrollTop+=Math.ceil(t.pixelY/5)}else n.scrollLeft+=Math.ceil(t.pixelX/5)},handleHeaderFooterMousewheel:function(e,t){var n=t.pixelX,i=t.pixelY;Math.abs(n)>=Math.abs(i)&&(this.bodyWrapper.scrollLeft+=t.pixelX/5)},syncPostion:Object(Li["throttle"])(20,(function(){var e=this.bodyWrapper,t=e.scrollLeft,n=e.scrollTop,i=e.offsetWidth,r=e.scrollWidth,o=this.$refs,a=o.headerWrapper,s=o.footerWrapper,l=o.fixedBodyWrapper,c=o.rightFixedBodyWrapper;a&&(a.scrollLeft=t),s&&(s.scrollLeft=t),l&&(l.scrollTop=n),c&&(c.scrollTop=n);var u=r-i-1;this.scrollPosition=t>=u?"right":0===t?"left":"middle"})),bindEvents:function(){this.bodyWrapper.addEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(ei["addResizeListener"])(this.$el,this.resizeListener)},unbindEvents:function(){this.bodyWrapper.removeEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(ei["removeResizeListener"])(this.$el,this.resizeListener)},resizeListener:function(){if(this.$ready){var e=!1,t=this.$el,n=this.resizeState,i=n.width,r=n.height,o=t.offsetWidth;i!==o&&(e=!0);var a=t.offsetHeight;(this.height||this.shouldUpdateHeight)&&r!==a&&(e=!0),e&&(this.resizeState.width=o,this.resizeState.height=a,this.doLayout())}},doLayout:function(){this.shouldUpdateHeight&&this.layout.updateElsHeight(),this.layout.updateColumnsWidth()},sort:function(e,t){this.store.commit("sort",{prop:e,order:t})},toggleAllSelection:function(){this.store.commit("toggleAllSelection")}},computed:Gr({tableSize:function(){return this.size||(this.$ELEMENT||{}).size},bodyWrapper:function(){return this.$refs.bodyWrapper},shouldUpdateHeight:function(){return this.height||this.maxHeight||this.fixedColumns.length>0||this.rightFixedColumns.length>0},bodyWidth:function(){var e=this.layout,t=e.bodyWidth,n=e.scrollY,i=e.gutterWidth;return t?t-(n?i:0)+"px":""},bodyHeight:function(){var e=this.layout,t=e.headerHeight,n=void 0===t?0:t,i=e.bodyHeight,r=e.footerHeight,o=void 0===r?0:r;if(this.height)return{height:i?i+"px":""};if(this.maxHeight){var a=nr(this.maxHeight);if("number"===typeof a)return{"max-height":a-o-(this.showHeader?n:0)+"px"}}return{}},fixedBodyHeight:function(){if(this.height)return{height:this.layout.fixedBodyHeight?this.layout.fixedBodyHeight+"px":""};if(this.maxHeight){var e=nr(this.maxHeight);if("number"===typeof e)return e=this.layout.scrollX?e-this.layout.gutterWidth:e,this.showHeader&&(e-=this.layout.headerHeight),e-=this.layout.footerHeight,{"max-height":e+"px"}}return{}},fixedHeight:function(){return this.maxHeight?this.showSummary?{bottom:0}:{bottom:this.layout.scrollX&&this.data.length?this.layout.gutterWidth+"px":""}:this.showSummary?{height:this.layout.tableHeight?this.layout.tableHeight+"px":""}:{height:this.layout.viewportHeight?this.layout.viewportHeight+"px":""}},emptyBlockStyle:function(){if(this.data&&this.data.length)return null;var e="100%";return this.layout.appendHeight&&(e="calc(100% - "+this.layout.appendHeight+"px)"),{width:this.bodyWidth,height:e}}},gr({selection:"selection",columns:"columns",tableData:"data",fixedColumns:"fixedColumns",rightFixedColumns:"rightFixedColumns"})),watch:{height:{immediate:!0,handler:function(e){this.layout.setHeight(e)}},maxHeight:{immediate:!0,handler:function(e){this.layout.setMaxHeight(e)}},currentRowKey:{immediate:!0,handler:function(e){this.rowKey&&this.store.setCurrentRowKey(e)}},data:{immediate:!0,handler:function(e){this.store.commit("setData",e)}},expandRowKeys:{immediate:!0,handler:function(e){e&&this.store.setExpandRowKeysAdapter(e)}}},created:function(){var e=this;this.tableId="el-table_"+Ur++,this.debouncedUpdateLayout=Object(Li["debounce"])(50,(function(){return e.doLayout()}))},mounted:function(){var e=this;this.bindEvents(),this.store.updateColumns(),this.doLayout(),this.resizeState={width:this.$el.offsetWidth,height:this.$el.offsetHeight},this.store.states.columns.forEach((function(t){t.filteredValue&&t.filteredValue.length&&e.store.commit("filterChange",{column:t,values:t.filteredValue,silent:!0})})),this.$ready=!0},destroyed:function(){this.unbindEvents()},data:function(){var e=this.treeProps,t=e.hasChildren,n=void 0===t?"hasChildren":t,i=e.children,r=void 0===i?"children":i;this.store=fr(this,{rowKey:this.rowKey,defaultExpandAll:this.defaultExpandAll,selectOnIndeterminate:this.selectOnIndeterminate,indent:this.indent,lazy:this.lazy,lazyColumnIdentifier:n,childrenColumnName:r});var o=new br({store:this.store,table:this,fit:this.fit,showHeader:this.showHeader});return{layout:o,isHidden:!1,renderExpanded:null,resizeProxyVisible:!1,resizeState:{width:null,height:null},isGroup:!1,scrollPosition:"left"}}},jr=zr,Hr=s(jr,Di,Ii,!1,null,null,null);Hr.options.__file="packages/table/src/table.vue";var Wr=Hr.exports;Wr.install=function(e){e.component(Wr.name,Wr)};var Yr=Wr,qr={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:"",className:"el-table-column--selection"},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Kr={selection:{renderHeader:function(e,t){var n=t.store;return e("el-checkbox",{attrs:{disabled:n.states.data&&0===n.states.data.length,indeterminate:n.states.selection.length>0&&!this.isAllSelected,value:this.isAllSelected},nativeOn:{click:this.toggleAllSelection}})},renderCell:function(e,t){var n=t.row,i=t.column,r=t.store,o=t.$index;return e("el-checkbox",{nativeOn:{click:function(e){return e.stopPropagation()}},attrs:{value:r.isSelected(n),disabled:!!i.selectable&&!i.selectable.call(null,n,o)},on:{input:function(){r.commit("rowSelectedChanged",n)}}})},sortable:!1,resizable:!1},index:{renderHeader:function(e,t){var n=t.column;return n.label||"#"},renderCell:function(e,t){var n=t.$index,i=t.column,r=n+1,o=i.index;return"number"===typeof o?r=n+o:"function"===typeof o&&(r=o(n)),e("div",[r])},sortable:!1},expand:{renderHeader:function(e,t){var n=t.column;return n.label||""},renderCell:function(e,t){var n=t.row,i=t.store,r=["el-table__expand-icon"];i.states.expandRows.indexOf(n)>-1&&r.push("el-table__expand-icon--expanded");var o=function(e){e.stopPropagation(),i.toggleRowExpansion(n)};return e("div",{class:r,on:{click:o}},[e("i",{class:"el-icon el-icon-arrow-right"})])},sortable:!1,resizable:!1,className:"el-table__expand-column"}};function Qr(e,t){var n=t.row,i=t.column,r=t.$index,o=i.property,a=o&&Object(_["getPropByPath"])(n,o).v;return i&&i.formatter?i.formatter(n,i,a,r):a}function Xr(e,t){var n=t.row,i=t.treeNode,r=t.store;if(!i)return null;var o=[],a=function(e){e.stopPropagation(),r.loadOrToggle(n)};if(i.indent&&o.push(e("span",{class:"el-table__indent",style:{"padding-left":i.indent+"px"}})),"boolean"!==typeof i.expanded||i.noLazyChildren)o.push(e("span",{class:"el-table__placeholder"}));else{var s=["el-table__expand-icon",i.expanded?"el-table__expand-icon--expanded":""],l=["el-icon-arrow-right"];i.loading&&(l=["el-icon-loading"]),o.push(e("div",{class:s,on:{click:a}},[e("i",{class:l})]))}return o}var Zr=Object.assign||function(e){for(var t=1;t-1}))}}},data:function(){return{isSubColumn:!1,columns:[]}},computed:{owner:function(){var e=this.$parent;while(e&&!e.tableId)e=e.$parent;return e},columnOrTableParent:function(){var e=this.$parent;while(e&&!e.tableId&&!e.columnId)e=e.$parent;return e},realWidth:function(){return er(this.width)},realMinWidth:function(){return tr(this.minWidth)},realAlign:function(){return this.align?"is-"+this.align:null},realHeaderAlign:function(){return this.headerAlign?"is-"+this.headerAlign:this.realAlign}},methods:{getPropsData:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i3&&void 0!==arguments[3]?arguments[3]:"-";if(!e)return null;var r=(po[n]||po["default"]).parser,o=t||ao[n];return r(e,o,i)},mo=function(e,t,n){if(!e)return null;var i=(po[n]||po["default"]).formatter,r=t||ao[n];return i(e,r)},vo=function(e,t){var n=function(e,t){var n=e instanceof Date,i=t instanceof Date;return n&&i?e.getTime()===t.getTime():!n&&!i&&e===t},i=e instanceof Array,r=t instanceof Array;return i&&r?e.length===t.length&&e.every((function(e,i){return n(e,t[i])})):!i&&!r&&n(e,t)},_o=function(e){return"string"===typeof e||e instanceof String},yo=function(e){return null===e||void 0===e||_o(e)||Array.isArray(e)&&2===e.length&&e.every(_o)},bo={mixins:[O.a,oo],inject:{elForm:{default:""},elFormItem:{default:""}},props:{size:String,format:String,valueFormat:String,readonly:Boolean,placeholder:String,startPlaceholder:String,endPlaceholder:String,prefixIcon:String,clearIcon:{type:String,default:"el-icon-circle-close"},name:{default:"",validator:yo},disabled:Boolean,clearable:{type:Boolean,default:!0},id:{default:"",validator:yo},popperClass:String,editable:{type:Boolean,default:!0},align:{type:String,default:"left"},value:{},defaultValue:{},defaultTime:{},rangeSeparator:{default:"-"},pickerOptions:{},unlinkPanels:Boolean,validateEvent:{type:Boolean,default:!0}},components:{ElInput:g.a},directives:{Clickoutside:$.a},data:function(){return{pickerVisible:!1,showClose:!1,userInput:null,valueOnOpen:null,unwatchPickerOptions:null}},watch:{pickerVisible:function(e){this.readonly||this.pickerDisabled||(e?(this.showPicker(),this.valueOnOpen=Array.isArray(this.value)?[].concat(this.value):this.value):(this.hidePicker(),this.emitChange(this.value),this.userInput=null,this.validateEvent&&this.dispatch("ElFormItem","el.form.blur"),this.$emit("blur",this),this.blur()))},parsedValue:{immediate:!0,handler:function(e){this.picker&&(this.picker.value=e)}},defaultValue:function(e){this.picker&&(this.picker.defaultValue=e)},value:function(e,t){vo(e,t)||this.pickerVisible||!this.validateEvent||this.dispatch("ElFormItem","el.form.change",e)}},computed:{ranged:function(){return this.type.indexOf("range")>-1},reference:function(){var e=this.$refs.reference;return e.$el||e},refInput:function(){return this.reference?[].slice.call(this.reference.querySelectorAll("input")):[]},valueIsEmpty:function(){var e=this.value;if(Array.isArray(e)){for(var t=0,n=e.length;t0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.userInput=null,e.pickerVisible=e.picker.visible=n,e.emitInput(t),e.picker.resetView&&e.picker.resetView()})),this.picker.$on("select-range",(function(t,n,i){0!==e.refInput.length&&(i&&"min"!==i?"max"===i&&(e.refInput[1].setSelectionRange(t,n),e.refInput[1].focus()):(e.refInput[0].setSelectionRange(t,n),e.refInput[0].focus()))}))},unmountPicker:function(){this.picker&&(this.picker.$destroy(),this.picker.$off(),"function"===typeof this.unwatchPickerOptions&&this.unwatchPickerOptions(),this.picker.$el.parentNode.removeChild(this.picker.$el))},emitChange:function(e){vo(e,this.valueOnOpen)||(this.$emit("change",e),this.valueOnOpen=e,this.validateEvent&&this.dispatch("ElFormItem","el.form.change",e))},emitInput:function(e){var t=this.formatToValue(e);vo(this.value,t)||this.$emit("input",t)},isValidValue:function(e){return this.picker||this.mountPicker(),!this.picker.isValidValue||e&&this.picker.isValidValue(e)}}},So=bo,Eo=s(So,no,io,!1,null,null,null);Eo.options.__file="packages/date-picker/src/picker.vue";var Co=Eo.exports,xo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-enter":e.handleEnter,"after-leave":e.handleLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,i){return n("button",{key:i,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-picker__time-header"},[n("span",{staticClass:"el-date-picker__editor-wrap"},[n("el-input",{attrs:{placeholder:e.t("el.datepicker.selectDate"),value:e.visibleDate,size:"small"},on:{input:function(t){return e.userInputDate=t},change:e.handleVisibleDateChange}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleTimePickClose,expression:"handleTimePickClose"}],staticClass:"el-date-picker__editor-wrap"},[n("el-input",{ref:"input",attrs:{placeholder:e.t("el.datepicker.selectTime"),value:e.visibleTime,size:"small"},on:{focus:function(t){e.timePickerVisible=!0},input:function(t){return e.userInputTime=t},change:e.handleVisibleTimeChange}}),n("time-picker",{ref:"timepicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.timePickerVisible},on:{pick:e.handleTimePick,mounted:e.proxyTimePickerDataProperties}})],1)]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:"time"!==e.currentView,expression:"currentView !== 'time'"}],staticClass:"el-date-picker__header",class:{"el-date-picker__header--bordered":"year"===e.currentView||"month"===e.currentView}},[n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-d-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevYear")},on:{click:e.prevYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevMonth")},on:{click:e.prevMonth}}),n("span",{staticClass:"el-date-picker__header-label",attrs:{role:"button"},on:{click:e.showYearPicker}},[e._v(e._s(e.yearLabel))]),n("span",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-date-picker__header-label",class:{active:"month"===e.currentView},attrs:{role:"button"},on:{click:e.showMonthPicker}},[e._v(e._s(e.t("el.datepicker.month"+(e.month+1))))]),n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-d-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextYear")},on:{click:e.nextYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextMonth")},on:{click:e.nextMonth}})]),n("div",{staticClass:"el-picker-panel__content"},[n("date-table",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],attrs:{"selection-mode":e.selectionMode,"first-day-of-week":e.firstDayOfWeek,value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"cell-class-name":e.cellClassName,"disabled-date":e.disabledDate},on:{pick:e.handleDatePick}}),n("year-table",{directives:[{name:"show",rawName:"v-show",value:"year"===e.currentView,expression:"currentView === 'year'"}],attrs:{value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleYearPick}}),n("month-table",{directives:[{name:"show",rawName:"v-show",value:"month"===e.currentView,expression:"currentView === 'month'"}],attrs:{value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleMonthPick}})],1)])],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.footerVisible&&"date"===e.currentView,expression:"footerVisible && currentView === 'date'"}],staticClass:"el-picker-panel__footer"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:"dates"!==e.selectionMode,expression:"selectionMode !== 'dates'"}],staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.changeToNow}},[e._v("\n "+e._s(e.t("el.datepicker.now"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini"},on:{click:e.confirm}},[e._v("\n "+e._s(e.t("el.datepicker.confirm"))+"\n ")])],1)])])},wo=[];xo._withStripped=!0;var To=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-time-panel el-popper",class:e.popperClass},[n("div",{staticClass:"el-time-panel__content",class:{"has-seconds":e.showSeconds}},[n("time-spinner",{ref:"spinner",attrs:{"arrow-control":e.useArrow,"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,date:e.date},on:{change:e.handleChange,"select-range":e.setSelectionRange}})],1),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:e.handleCancel}},[e._v(e._s(e.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn",class:{confirm:!e.disabled},attrs:{type:"button"},on:{click:function(t){e.handleConfirm()}}},[e._v(e._s(e.t("el.datepicker.confirm")))])])])])},Ao=[];To._withStripped=!0;var Oo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-time-spinner",class:{"has-seconds":e.showSeconds}},[e.arrowControl?e._e():[n("el-scrollbar",{ref:"hours",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("hours")},mousemove:function(t){e.adjustCurrentSpinner("hours")}}},e._l(e.hoursList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:i===e.hours,disabled:t},on:{click:function(n){e.handleClick("hours",{value:i,disabled:t})}}},[e._v(e._s(("0"+(e.amPmMode?i%12||12:i)).slice(-2))+e._s(e.amPm(i)))])})),0),n("el-scrollbar",{ref:"minutes",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("minutes")},mousemove:function(t){e.adjustCurrentSpinner("minutes")}}},e._l(e.minutesList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:i===e.minutes,disabled:!t},on:{click:function(t){e.handleClick("minutes",{value:i,disabled:!1})}}},[e._v(e._s(("0"+i).slice(-2)))])})),0),n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.showSeconds,expression:"showSeconds"}],ref:"seconds",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("seconds")},mousemove:function(t){e.adjustCurrentSpinner("seconds")}}},e._l(60,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:i===e.seconds},on:{click:function(t){e.handleClick("seconds",{value:i,disabled:!1})}}},[e._v(e._s(("0"+i).slice(-2)))])})),0)],e.arrowControl?[n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("hours")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"hours",staticClass:"el-time-spinner__list"},e._l(e.arrowHourList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:t===e.hours,disabled:e.hoursList[t]}},[e._v(e._s(void 0===t?"":("0"+(e.amPmMode?t%12||12:t)).slice(-2)+e.amPm(t)))])})),0)]),n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("minutes")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"minutes",staticClass:"el-time-spinner__list"},e._l(e.arrowMinuteList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:t===e.minutes}},[e._v("\n "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n ")])})),0)]),e.showSeconds?n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("seconds")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"seconds",staticClass:"el-time-spinner__list"},e._l(e.arrowSecondList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:t===e.seconds}},[e._v("\n "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n ")])})),0)]):e._e()]:e._e()],2)},Ro=[];Oo._withStripped=!0;var No={components:{ElScrollbar:H.a},directives:{repeatClick:kt},props:{date:{},defaultValue:{},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:""}},computed:{hours:function(){return this.date.getHours()},minutes:function(){return this.date.getMinutes()},seconds:function(){return this.date.getSeconds()},hoursList:function(){return Object(ro["getRangeHours"])(this.selectableRange)},minutesList:function(){return Object(ro["getRangeMinutes"])(this.selectableRange,this.hours)},arrowHourList:function(){var e=this.hours;return[e>0?e-1:void 0,e,e<23?e+1:void 0]},arrowMinuteList:function(){var e=this.minutes;return[e>0?e-1:void 0,e,e<59?e+1:void 0]},arrowSecondList:function(){var e=this.seconds;return[e>0?e-1:void 0,e,e<59?e+1:void 0]}},data:function(){return{selectableRange:[],currentScrollbar:null}},mounted:function(){var e=this;this.$nextTick((function(){!e.arrowControl&&e.bindScrollEvent()}))},methods:{increase:function(){this.scrollDown(1)},decrease:function(){this.scrollDown(-1)},modifyDateField:function(e,t){switch(e){case"hours":this.$emit("change",Object(ro["modifyTime"])(this.date,t,this.minutes,this.seconds));break;case"minutes":this.$emit("change",Object(ro["modifyTime"])(this.date,this.hours,t,this.seconds));break;case"seconds":this.$emit("change",Object(ro["modifyTime"])(this.date,this.hours,this.minutes,t));break}},handleClick:function(e,t){var n=t.value,i=t.disabled;i||(this.modifyDateField(e,n),this.emitSelectRange(e),this.adjustSpinner(e,n))},emitSelectRange:function(e){"hours"===e?this.$emit("select-range",0,2):"minutes"===e?this.$emit("select-range",3,5):"seconds"===e&&this.$emit("select-range",6,8),this.currentScrollbar=e},bindScrollEvent:function(){var e=this,t=function(t){e.$refs[t].wrap.onscroll=function(n){e.handleScroll(t,n)}};t("hours"),t("minutes"),t("seconds")},handleScroll:function(e){var t=Math.min(Math.round((this.$refs[e].wrap.scrollTop-(.5*this.scrollBarHeight(e)-10)/this.typeItemHeight(e)+3)/this.typeItemHeight(e)),"hours"===e?23:59);this.modifyDateField(e,t)},adjustSpinners:function(){this.adjustSpinner("hours",this.hours),this.adjustSpinner("minutes",this.minutes),this.adjustSpinner("seconds",this.seconds)},adjustCurrentSpinner:function(e){this.adjustSpinner(e,this[e])},adjustSpinner:function(e,t){if(!this.arrowControl){var n=this.$refs[e].wrap;n&&(n.scrollTop=Math.max(0,t*this.typeItemHeight(e)))}},scrollDown:function(e){var t=this;this.currentScrollbar||this.emitSelectRange("hours");var n=this.currentScrollbar,i=this.hoursList,r=this[n];if("hours"===this.currentScrollbar){var o=Math.abs(e);e=e>0?1:-1;var a=i.length;while(a--&&o)r=(r+e+i.length)%i.length,i[r]||o--;if(i[r])return}else r=(r+e+60)%60;this.modifyDateField(n,r),this.adjustSpinner(n,r),this.$nextTick((function(){return t.emitSelectRange(t.currentScrollbar)}))},amPm:function(e){var t="a"===this.amPmMode.toLowerCase();if(!t)return"";var n="A"===this.amPmMode,i=e<12?" am":" pm";return n&&(i=i.toUpperCase()),i},typeItemHeight:function(e){return this.$refs[e].$el.querySelector("li").offsetHeight},scrollBarHeight:function(e){return this.$refs[e].$el.offsetHeight}}},Do=No,Io=s(Do,Oo,Ro,!1,null,null,null);Io.options.__file="packages/date-picker/src/basic/time-spinner.vue";var Mo=Io.exports,ko={mixins:[v.a],components:{TimeSpinner:Mo},props:{visible:Boolean,timeArrowControl:Boolean},watch:{visible:function(e){var t=this;e?(this.oldValue=this.value,this.$nextTick((function(){return t.$refs.spinner.emitSelectRange("hours")}))):this.needInitAdjust=!0},value:function(e){var t=this,n=void 0;e instanceof Date?n=Object(ro["limitTimeRange"])(e,this.selectableRange,this.format):e||(n=this.defaultValue?new Date(this.defaultValue):new Date),this.date=n,this.visible&&this.needInitAdjust&&(this.$nextTick((function(e){return t.adjustSpinners()})),this.needInitAdjust=!1)},selectableRange:function(e){this.$refs.spinner.selectableRange=e},defaultValue:function(e){Object(ro["isDate"])(this.value)||(this.date=e?new Date(e):new Date)}},data:function(){return{popperClass:"",format:"HH:mm:ss",value:"",defaultValue:null,date:new Date,oldValue:new Date,selectableRange:[],selectionRange:[0,2],disabled:!1,arrowControl:!1,needInitAdjust:!0}},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},useArrow:function(){return this.arrowControl||this.timeArrowControl||!1},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},methods:{handleCancel:function(){this.$emit("pick",this.oldValue,!1)},handleChange:function(e){this.visible&&(this.date=Object(ro["clearMilliseconds"])(e),this.isValidValue(this.date)&&this.$emit("pick",this.date,!0))},setSelectionRange:function(e,t){this.$emit("select-range",e,t),this.selectionRange=[e,t]},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(!t){var n=Object(ro["clearMilliseconds"])(Object(ro["limitTimeRange"])(this.date,this.selectableRange,this.format));this.$emit("pick",n,e,t)}},handleKeydown:function(e){var t=e.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===t||39===t){var i=n[t];return this.changeSelectionRange(i),void e.preventDefault()}if(38===t||40===t){var r=n[t];return this.$refs.spinner.scrollDown(r),void e.preventDefault()}},isValidValue:function(e){return Object(ro["timeWithinRange"])(e,this.selectableRange,this.format)},adjustSpinners:function(){return this.$refs.spinner.adjustSpinners()},changeSelectionRange:function(e){var t=[0,3].concat(this.showSeconds?[6]:[]),n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),i=t.indexOf(this.selectionRange[0]),r=(i+e+t.length)%t.length;this.$refs.spinner.emitSelectRange(n[r])}},mounted:function(){var e=this;this.$nextTick((function(){return e.handleConfirm(!0,!0)})),this.$emit("mounted")}},Lo=ko,Po=s(Lo,To,Ao,!1,null,null,null);Po.options.__file="packages/date-picker/src/panel/time.vue";var Fo=Po.exports,Bo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-year-table",on:{click:e.handleYearTableClick}},[n("tbody",[n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+0)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+1)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+1))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+2)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+2))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+3)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+3))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+4)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+4))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+5)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+5))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+6)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+6))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+7)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+7))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+8)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+8))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+9)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+9))])]),n("td"),n("td")])])])},$o=[];Bo._withStripped=!0;var Vo=function(e){var t=Object(ro["getDayCountOfYear"])(e),n=new Date(e,0,1);return Object(ro["range"])(t).map((function(e){return Object(ro["nextDate"])(n,e)}))},Go={props:{disabledDate:{},value:{},defaultValue:{validator:function(e){return null===e||e instanceof Date&&Object(ro["isDate"])(e)}},date:{}},computed:{startYear:function(){return 10*Math.floor(this.date.getFullYear()/10)}},methods:{getCellStyle:function(e){var t={},n=new Date;return t.disabled="function"===typeof this.disabledDate&&Vo(e).every(this.disabledDate),t.current=Object(_["arrayFindIndex"])(Object(_["coerceTruthyValueToArray"])(this.value),(function(t){return t.getFullYear()===e}))>=0,t.today=n.getFullYear()===e,t.default=this.defaultValue&&this.defaultValue.getFullYear()===e,t},handleYearTableClick:function(e){var t=e.target;if("A"===t.tagName){if(Object(Be["hasClass"])(t.parentNode,"disabled"))return;var n=t.textContent||t.innerText;this.$emit("pick",Number(n))}}}},Uo=Go,zo=s(Uo,Bo,$o,!1,null,null,null);zo.options.__file="packages/date-picker/src/basic/year-table.vue";var jo=zo.exports,Ho=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-month-table",on:{click:e.handleMonthTableClick,mousemove:e.handleMouseMove}},[n("tbody",e._l(e.rows,(function(t,i){return n("tr",{key:i},e._l(t,(function(t,i){return n("td",{key:i,class:e.getCellStyle(t)},[n("div",[n("a",{staticClass:"cell"},[e._v(e._s(e.t("el.datepicker.months."+e.months[t.text])))])])])})),0)})),0)])},Wo=[];Ho._withStripped=!0;var Yo=function(e,t){var n=Object(ro["getDayCountOfMonth"])(e,t),i=new Date(e,t,1);return Object(ro["range"])(n).map((function(e){return Object(ro["nextDate"])(i,e)}))},qo=function(e){return new Date(e.getFullYear(),e.getMonth())},Ko=function(e){return"number"===typeof e||"string"===typeof e?qo(new Date(e)).getTime():e instanceof Date?qo(e).getTime():NaN},Qo={props:{disabledDate:{},value:{},selectionMode:{default:"month"},minDate:{},maxDate:{},defaultValue:{validator:function(e){return null===e||Object(ro["isDate"])(e)||Array.isArray(e)&&e.every(ro["isDate"])}},date:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},mixins:[v.a],watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){Ko(e)!==Ko(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){Ko(e)!==Ko(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{months:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],tableRows:[[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.date.getFullYear()===n.getFullYear()&&Number(e.text)===n.getMonth()},getCellStyle:function(e){var t=this,n={},i=this.date.getFullYear(),r=new Date,o=e.text,a=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[];return n.disabled="function"===typeof this.disabledDate&&Yo(i,o).every(this.disabledDate),n.current=Object(_["arrayFindIndex"])(Object(_["coerceTruthyValueToArray"])(this.value),(function(e){return e.getFullYear()===i&&e.getMonth()===o}))>=0,n.today=r.getFullYear()===i&&r.getMonth()===o,n.default=a.some((function(n){return t.cellMatchesDate(e,n)})),e.inRange&&(n["in-range"]=!0,e.start&&(n["start-date"]=!0),e.end&&(n["end-date"]=!0)),n},getMonthOfCell:function(e){var t=this.date.getFullYear();return new Date(t,e,1)},markRange:function(e,t){e=Ko(e),t=Ko(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var i=this.rows,r=0,o=i.length;r=e&&d<=t,c.start=e&&d===e,c.end=t&&d===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex,i=t.cellIndex;this.rows[n][i].disabled||n===this.lastRow&&i===this.lastColumn||(this.lastRow=n,this.lastColumn=i,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getMonthOfCell(4*n+i)}}))}}},handleMonthTableClick:function(e){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName&&!Object(Be["hasClass"])(t,"disabled")){var n=t.cellIndex,i=t.parentNode.rowIndex,r=4*i+n,o=this.getMonthOfCell(r);"range"===this.selectionMode?this.rangeState.selecting?(o>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:o}):this.$emit("pick",{minDate:o,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:o,maxDate:null}),this.rangeState.selecting=!0):this.$emit("pick",r)}}},computed:{rows:function(){for(var e=this,t=this.tableRows,n=this.disabledDate,i=[],r=Ko(new Date),o=0;o<3;o++)for(var a=t[o],s=function(t){var s=a[t];s||(s={row:o,column:t,type:"normal",inRange:!1,start:!1,end:!1}),s.type="normal";var l=4*o+t,c=new Date(e.date.getFullYear(),l).getTime();s.inRange=c>=Ko(e.minDate)&&c<=Ko(e.maxDate),s.start=e.minDate&&c===Ko(e.minDate),s.end=e.maxDate&&c===Ko(e.maxDate);var u=c===r;u&&(s.type="today"),s.text=l;var d=new Date(c);s.disabled="function"===typeof n&&n(d),s.selected=Object(_["arrayFind"])(i,(function(e){return e.getTime()===d.getTime()})),e.$set(a,t,s)},l=0;l<4;l++)s(l);return t}}},Xo=Qo,Zo=s(Xo,Ho,Wo,!1,null,null,null);Zo.options.__file="packages/date-picker/src/basic/month-table.vue";var Jo=Zo.exports,ea=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-date-table",class:{"is-week-mode":"week"===e.selectionMode},attrs:{cellspacing:"0",cellpadding:"0"},on:{click:e.handleClick,mousemove:e.handleMouseMove}},[n("tbody",[n("tr",[e.showWeekNumber?n("th",[e._v(e._s(e.t("el.datepicker.week")))]):e._e(),e._l(e.WEEKS,(function(t,i){return n("th",{key:i},[e._v(e._s(e.t("el.datepicker.weeks."+t)))])}))],2),e._l(e.rows,(function(t,i){return n("tr",{key:i,staticClass:"el-date-table__row",class:{current:e.isWeekActive(t[1])}},e._l(t,(function(t,i){return n("td",{key:i,class:e.getCellClasses(t)},[n("div",[n("span",[e._v("\n "+e._s(t.text)+"\n ")])])])})),0)}))],2)])},ta=[];ea._withStripped=!0;var na=["sun","mon","tue","wed","thu","fri","sat"],ia=function(e){return"number"===typeof e||"string"===typeof e?Object(ro["clearTime"])(new Date(e)).getTime():e instanceof Date?Object(ro["clearTime"])(e).getTime():NaN},ra=function(e,t){var n="function"===typeof t?Object(_["arrayFindIndex"])(e,t):e.indexOf(t);return n>=0?[].concat(e.slice(0,n),e.slice(n+1)):e},oa={mixins:[v.a],props:{firstDayOfWeek:{default:7,type:Number,validator:function(e){return e>=1&&e<=7}},value:{},defaultValue:{validator:function(e){return null===e||Object(ro["isDate"])(e)||Array.isArray(e)&&e.every(ro["isDate"])}},date:{},selectionMode:{default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{},cellClassName:{},minDate:{},maxDate:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},computed:{offsetDay:function(){var e=this.firstDayOfWeek;return e>3?7-e:-e},WEEKS:function(){var e=this.firstDayOfWeek;return na.concat(na).slice(e,e+7)},year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},startDate:function(){return Object(ro["getStartDateOfMonth"])(this.year,this.month)},rows:function(){var e=this,t=new Date(this.year,this.month,1),n=Object(ro["getFirstDayOfMonth"])(t),i=Object(ro["getDayCountOfMonth"])(t.getFullYear(),t.getMonth()),r=Object(ro["getDayCountOfMonth"])(t.getFullYear(),0===t.getMonth()?11:t.getMonth()-1);n=0===n?7:n;for(var o=this.offsetDay,a=this.tableRows,s=1,l=this.startDate,c=this.disabledDate,u=this.cellClassName,d="dates"===this.selectionMode?Object(_["coerceTruthyValueToArray"])(this.value):[],h=ia(new Date),p=0;p<6;p++){var f=a[p];this.showWeekNumber&&(f[0]||(f[0]={type:"week",text:Object(ro["getWeekNumber"])(Object(ro["nextDate"])(l,7*p+1))}));for(var g=function(t){var a=f[e.showWeekNumber?t+1:t];a||(a={row:p,column:t,type:"normal",inRange:!1,start:!1,end:!1}),a.type="normal";var g=7*p+t,m=Object(ro["nextDate"])(l,g-o).getTime();a.inRange=m>=ia(e.minDate)&&m<=ia(e.maxDate),a.start=e.minDate&&m===ia(e.minDate),a.end=e.maxDate&&m===ia(e.maxDate);var v=m===h;if(v&&(a.type="today"),p>=0&&p<=1){var y=n+o<0?7+n+o:n+o;t+7*p>=y?a.text=s++:(a.text=r-(y-t%7)+1+7*p,a.type="prev-month")}else s<=i?a.text=s++:(a.text=s++-i,a.type="next-month");var b=new Date(m);a.disabled="function"===typeof c&&c(b),a.selected=Object(_["arrayFind"])(d,(function(e){return e.getTime()===b.getTime()})),a.customClass="function"===typeof u&&u(b),e.$set(f,e.showWeekNumber?t+1:t,a)},m=0;m<7;m++)g(m);if("week"===this.selectionMode){var v=this.showWeekNumber?1:0,y=this.showWeekNumber?7:6,b=this.isWeekActive(f[v+1]);f[v].inRange=b,f[v].start=b,f[y].inRange=b,f[y].end=b}}return a}},watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){ia(e)!==ia(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){ia(e)!==ia(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{tableRows:[[],[],[],[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.year===n.getFullYear()&&this.month===n.getMonth()&&Number(e.text)===n.getDate()},getCellClasses:function(e){var t=this,n=this.selectionMode,i=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[],r=[];return"normal"!==e.type&&"today"!==e.type||e.disabled?r.push(e.type):(r.push("available"),"today"===e.type&&r.push("today")),"normal"===e.type&&i.some((function(n){return t.cellMatchesDate(e,n)}))&&r.push("default"),"day"!==n||"normal"!==e.type&&"today"!==e.type||!this.cellMatchesDate(e,this.value)||r.push("current"),!e.inRange||"normal"!==e.type&&"today"!==e.type&&"week"!==this.selectionMode||(r.push("in-range"),e.start&&r.push("start-date"),e.end&&r.push("end-date")),e.disabled&&r.push("disabled"),e.selected&&r.push("selected"),e.customClass&&r.push(e.customClass),r.join(" ")},getDateOfCell:function(e,t){var n=7*e+(t-(this.showWeekNumber?1:0))-this.offsetDay;return Object(ro["nextDate"])(this.startDate,n)},isWeekActive:function(e){if("week"!==this.selectionMode)return!1;var t=new Date(this.year,this.month,1),n=t.getFullYear(),i=t.getMonth();if("prev-month"===e.type&&(t.setMonth(0===i?11:i-1),t.setFullYear(0===i?n-1:n)),"next-month"===e.type&&(t.setMonth(11===i?0:i+1),t.setFullYear(11===i?n+1:n)),t.setDate(parseInt(e.text,10)),Object(ro["isDate"])(this.value)){var r=(this.value.getDay()-this.firstDayOfWeek+7)%7-1,o=Object(ro["prevDate"])(this.value,r);return o.getTime()===t.getTime()}return!1},markRange:function(e,t){e=ia(e),t=ia(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var i=this.startDate,r=this.rows,o=0,a=r.length;o=e&&h<=t,u.start=e&&h===e,u.end=t&&h===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,i=t.cellIndex;this.rows[n][i].disabled||n===this.lastRow&&i===this.lastColumn||(this.lastRow=n,this.lastColumn=i,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getDateOfCell(n,i)}}))}}},handleClick:function(e){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,i="week"===this.selectionMode?1:t.cellIndex,r=this.rows[n][i];if(!r.disabled&&"week"!==r.type){var o=this.getDateOfCell(n,i);if("range"===this.selectionMode)this.rangeState.selecting?(o>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:o}):this.$emit("pick",{minDate:o,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:o,maxDate:null}),this.rangeState.selecting=!0);else if("day"===this.selectionMode)this.$emit("pick",o);else if("week"===this.selectionMode){var a=Object(ro["getWeekNumber"])(o),s=o.getFullYear()+"w"+a;this.$emit("pick",{year:o.getFullYear(),week:a,value:s,date:o})}else if("dates"===this.selectionMode){var l=this.value||[],c=r.selected?ra(l,(function(e){return e.getTime()===o.getTime()})):[].concat(l,[o]);this.$emit("pick",c)}}}}}},aa=oa,sa=s(aa,ea,ta,!1,null,null,null);sa.options.__file="packages/date-picker/src/basic/date-table.vue";var la=sa.exports,ca={mixins:[v.a],directives:{Clickoutside:$.a},watch:{showTime:function(e){var t=this;e&&this.$nextTick((function(e){var n=t.$refs.input.$el;n&&(t.pickerWidth=n.getBoundingClientRect().width+10)}))},value:function(e){"dates"===this.selectionMode&&this.value||(Object(ro["isDate"])(e)?this.date=new Date(e):this.date=this.getDefaultValue())},defaultValue:function(e){Object(ro["isDate"])(this.value)||(this.date=e?new Date(e):new Date)},timePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){return t.$refs.timepicker.adjustSpinners()}))},selectionMode:function(e){"month"===e?"year"===this.currentView&&"month"===this.currentView||(this.currentView="month"):"dates"===e&&(this.currentView="date")}},methods:{proxyTimePickerDataProperties:function(){var e=this,t=function(t){e.$refs.timepicker.format=t},n=function(t){e.$refs.timepicker.value=t},i=function(t){e.$refs.timepicker.date=t},r=function(t){e.$refs.timepicker.selectableRange=t};this.$watch("value",n),this.$watch("date",i),this.$watch("selectableRange",r),t(this.timeFormat),n(this.value),i(this.date),r(this.selectableRange)},handleClear:function(){this.date=this.getDefaultValue(),this.$emit("pick",null)},emit:function(e){for(var t=this,n=arguments.length,i=Array(n>1?n-1:0),r=1;r0)||Object(ro["timeWithinRange"])(e,this.selectableRange,this.format||"HH:mm:ss")}},components:{TimePicker:Fo,YearTable:jo,MonthTable:Jo,DateTable:la,ElInput:g.a,ElButton:ae.a},data:function(){return{popperClass:"",date:new Date,value:"",defaultValue:null,defaultTime:null,showTime:!1,selectionMode:"day",shortcuts:"",visible:!1,currentView:"date",disabledDate:"",cellClassName:"",selectableRange:[],firstDayOfWeek:7,showWeekNumber:!1,timePickerVisible:!1,format:"",arrowControl:!1,userInputDate:null,userInputTime:null}},computed:{year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},week:function(){return Object(ro["getWeekNumber"])(this.date)},monthDate:function(){return this.date.getDate()},footerVisible:function(){return this.showTime||"dates"===this.selectionMode},visibleTime:function(){return null!==this.userInputTime?this.userInputTime:Object(ro["formatDate"])(this.value||this.defaultValue,this.timeFormat)},visibleDate:function(){return null!==this.userInputDate?this.userInputDate:Object(ro["formatDate"])(this.value||this.defaultValue,this.dateFormat)},yearLabel:function(){var e=this.t("el.datepicker.year");if("year"===this.currentView){var t=10*Math.floor(this.year/10);return e?t+" "+e+" - "+(t+9)+" "+e:t+" - "+(t+9)}return this.year+" "+e},timeFormat:function(){return this.format?Object(ro["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(ro["extractDateFormat"])(this.format):"yyyy-MM-dd"}}},ua=ca,da=s(ua,xo,wo,!1,null,null,null);da.options.__file="packages/date-picker/src/panel/date.vue";var ha=da.exports,pa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,i){return n("button",{key:i,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-range-picker__time-header"},[n("span",{staticClass:"el-date-range-picker__editors-wrap"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{ref:"minInput",staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startDate"),value:e.minVisibleDate},on:{input:function(t){return e.handleDateInput(t,"min")},change:function(t){return e.handleDateChange(t,"min")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMinTimeClose,expression:"handleMinTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startTime"),value:e.minVisibleTime},on:{focus:function(t){e.minTimePickerVisible=!0},input:function(t){return e.handleTimeInput(t,"min")},change:function(t){return e.handleTimeChange(t,"min")}}}),n("time-picker",{ref:"minTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.minTimePickerVisible},on:{pick:e.handleMinTimePick,mounted:function(t){e.$refs.minTimePicker.format=e.timeFormat}}})],1)]),n("span",{staticClass:"el-icon-arrow-right"}),n("span",{staticClass:"el-date-range-picker__editors-wrap is-right"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endDate"),value:e.maxVisibleDate,readonly:!e.minDate},on:{input:function(t){return e.handleDateInput(t,"max")},change:function(t){return e.handleDateChange(t,"max")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMaxTimeClose,expression:"handleMaxTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endTime"),value:e.maxVisibleTime,readonly:!e.minDate},on:{focus:function(t){e.minDate&&(e.maxTimePickerVisible=!0)},input:function(t){return e.handleTimeInput(t,"max")},change:function(t){return e.handleTimeChange(t,"max")}}}),n("time-picker",{ref:"maxTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.maxTimePickerVisible},on:{pick:e.handleMaxTimePick,mounted:function(t){e.$refs.maxTimePicker.format=e.timeFormat}}})],1)])]):e._e(),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevMonth}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.leftNextMonth}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.rightPrevMonth}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",attrs:{type:"button"},on:{click:e.rightNextMonth}}),n("div",[e._v(e._s(e.rightLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2),e.showTime?n("div",{staticClass:"el-picker-panel__footer"},[n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.handleClear}},[e._v("\n "+e._s(e.t("el.datepicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini",disabled:e.btnDisabled},on:{click:function(t){e.handleConfirm(!1)}}},[e._v("\n "+e._s(e.t("el.datepicker.confirm"))+"\n ")])],1):e._e()])])},fa=[];pa._withStripped=!0;var ga=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(ro["nextDate"])(new Date(e),1)]:[new Date,Object(ro["nextDate"])(new Date,1)]},ma={mixins:[v.a],directives:{Clickoutside:$.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.leftDate.getMonth()+1))},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.rightDate.getMonth()+1))},leftYear:function(){return this.leftDate.getFullYear()},leftMonth:function(){return this.leftDate.getMonth()},leftMonthDate:function(){return this.leftDate.getDate()},rightYear:function(){return this.rightDate.getFullYear()},rightMonth:function(){return this.rightDate.getMonth()},rightMonthDate:function(){return this.rightDate.getDate()},minVisibleDate:function(){return null!==this.dateUserInput.min?this.dateUserInput.min:this.minDate?Object(ro["formatDate"])(this.minDate,this.dateFormat):""},maxVisibleDate:function(){return null!==this.dateUserInput.max?this.dateUserInput.max:this.maxDate||this.minDate?Object(ro["formatDate"])(this.maxDate||this.minDate,this.dateFormat):""},minVisibleTime:function(){return null!==this.timeUserInput.min?this.timeUserInput.min:this.minDate?Object(ro["formatDate"])(this.minDate,this.timeFormat):""},maxVisibleTime:function(){return null!==this.timeUserInput.max?this.timeUserInput.max:this.maxDate||this.minDate?Object(ro["formatDate"])(this.maxDate||this.minDate,this.timeFormat):""},timeFormat:function(){return this.format?Object(ro["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(ro["extractDateFormat"])(this.format):"yyyy-MM-dd"},enableMonthArrow:function(){var e=(this.leftMonth+1)%12,t=this.leftMonth+1>=12?1:0;return this.unlinkPanels&&new Date(this.leftYear+t,e)=12}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(ro["nextMonth"])(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},showTime:!1,shortcuts:"",visible:"",disabledDate:"",cellClassName:"",firstDayOfWeek:7,minTimePickerVisible:!1,maxTimePickerVisible:!1,format:"",arrowControl:!1,unlinkPanels:!1,dateUserInput:{min:null,max:null},timeUserInput:{min:null,max:null}}},watch:{minDate:function(e){var t=this;this.dateUserInput.min=null,this.timeUserInput.min=null,this.$nextTick((function(){if(t.$refs.maxTimePicker&&t.maxDate&&t.maxDatethis.maxDate&&(this.maxDate=this.minDate)):(this.maxDate=Object(ro["modifyDate"])(this.maxDate,n.getFullYear(),n.getMonth(),n.getDate()),this.maxDatethis.maxDate&&(this.maxDate=this.minDate),this.$refs.minTimePicker.value=this.minDate,this.minTimePickerVisible=!1):(this.maxDate=Object(ro["modifyTime"])(this.maxDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.maxDate1&&void 0!==arguments[1])||arguments[1],i=this.defaultTime||[],r=Object(ro["modifyWithTimeString"])(e.minDate,i[0]),o=Object(ro["modifyWithTimeString"])(e.maxDate,i[1]);this.maxDate===o&&this.minDate===r||(this.onPick&&this.onPick(e),this.maxDate=o,this.minDate=r,setTimeout((function(){t.maxDate=o,t.minDate=r}),10),n&&!this.showTime&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleMinTimePick:function(e,t,n){this.minDate=this.minDate||new Date,e&&(this.minDate=Object(ro["modifyTime"])(this.minDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.minTimePickerVisible=t),(!this.maxDate||this.maxDate&&this.maxDate.getTime()this.maxDate.getTime()&&(this.minDate=new Date(this.maxDate))},handleMaxTimeClose:function(){this.maxTimePickerVisible=!1},leftPrevYear:function(){this.leftDate=Object(ro["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(ro["nextMonth"])(this.leftDate))},leftPrevMonth:function(){this.leftDate=Object(ro["prevMonth"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(ro["nextMonth"])(this.leftDate))},rightNextYear:function(){this.unlinkPanels?this.rightDate=Object(ro["nextYear"])(this.rightDate):(this.leftDate=Object(ro["nextYear"])(this.leftDate),this.rightDate=Object(ro["nextMonth"])(this.leftDate))},rightNextMonth:function(){this.unlinkPanels?this.rightDate=Object(ro["nextMonth"])(this.rightDate):(this.leftDate=Object(ro["nextMonth"])(this.leftDate),this.rightDate=Object(ro["nextMonth"])(this.leftDate))},leftNextYear:function(){this.leftDate=Object(ro["nextYear"])(this.leftDate)},leftNextMonth:function(){this.leftDate=Object(ro["nextMonth"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(ro["prevYear"])(this.rightDate)},rightPrevMonth:function(){this.rightDate=Object(ro["prevMonth"])(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(ro["isDate"])(e[0])&&Object(ro["isDate"])(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!==typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate&&null==this.maxDate&&(this.rangeState.selecting=!1),this.minDate=this.value&&Object(ro["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(ro["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{TimePicker:Fo,DateTable:la,ElInput:g.a,ElButton:ae.a}},va=ma,_a=s(va,pa,fa,!1,null,null,null);_a.options.__file="packages/date-picker/src/panel/date-range.vue";var ya=_a.exports,ba=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,i){return n("button",{key:i,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("div",[e._v(e._s(e.rightLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2)])])},Sa=[];ba._withStripped=!0;var Ea=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(ro["nextMonth"])(new Date(e))]:[new Date,Object(ro["nextMonth"])(new Date)]},Ca={mixins:[v.a],directives:{Clickoutside:$.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")},leftYear:function(){return this.leftDate.getFullYear()},rightYear:function(){return this.rightDate.getFullYear()===this.leftDate.getFullYear()?this.leftDate.getFullYear()+1:this.rightDate.getFullYear()},enableYearArrow:function(){return this.unlinkPanels&&this.rightYear>this.leftYear+1}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(ro["nextYear"])(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},shortcuts:"",visible:"",disabledDate:"",format:"",arrowControl:!1,unlinkPanels:!1}},watch:{value:function(e){if(e){if(Array.isArray(e))if(this.minDate=Object(ro["isDate"])(e[0])?new Date(e[0]):null,this.maxDate=Object(ro["isDate"])(e[1])?new Date(e[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var t=this.minDate.getFullYear(),n=this.maxDate.getFullYear();this.rightDate=t===n?Object(ro["nextYear"])(this.maxDate):this.maxDate}else this.rightDate=Object(ro["nextYear"])(this.leftDate);else this.leftDate=Ea(this.defaultValue)[0],this.rightDate=Object(ro["nextYear"])(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=Ea(e),n=t[0],i=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&n.getFullYear()!==i.getFullYear()&&this.unlinkPanels?i:Object(ro["nextYear"])(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=Ea(this.defaultValue)[0],this.rightDate=Object(ro["nextYear"])(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleRangePick:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.defaultTime||[],r=Object(ro["modifyWithTimeString"])(e.minDate,i[0]),o=Object(ro["modifyWithTimeString"])(e.maxDate,i[1]);this.maxDate===o&&this.minDate===r||(this.onPick&&this.onPick(e),this.maxDate=o,this.minDate=r,setTimeout((function(){t.maxDate=o,t.minDate=r}),10),n&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},leftPrevYear:function(){this.leftDate=Object(ro["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(ro["prevYear"])(this.rightDate))},rightNextYear:function(){this.unlinkPanels||(this.leftDate=Object(ro["nextYear"])(this.leftDate)),this.rightDate=Object(ro["nextYear"])(this.rightDate)},leftNextYear:function(){this.leftDate=Object(ro["nextYear"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(ro["prevYear"])(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(ro["isDate"])(e[0])&&Object(ro["isDate"])(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!==typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate=this.value&&Object(ro["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(ro["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{MonthTable:Jo,ElInput:g.a,ElButton:ae.a}},xa=Ca,wa=s(xa,ba,Sa,!1,null,null,null);wa.options.__file="packages/date-picker/src/panel/month-range.vue";var Ta=wa.exports,Aa=function(e){return"daterange"===e||"datetimerange"===e?ya:"monthrange"===e?Ta:ha},Oa={mixins:[Co],name:"ElDatePicker",props:{type:{type:String,default:"date"},timeArrowControl:Boolean},watch:{type:function(e){this.picker?(this.unmountPicker(),this.panel=Aa(e),this.mountPicker()):this.panel=Aa(e)}},created:function(){this.panel=Aa(this.type)},install:function(e){e.component(Oa.name,Oa)}},Ra=Oa,Na=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],ref:"popper",staticClass:"el-picker-panel time-select el-popper",class:e.popperClass,style:{width:e.width+"px"}},[n("el-scrollbar",{attrs:{noresize:"","wrap-class":"el-picker-panel__content"}},e._l(e.items,(function(t){return n("div",{key:t.value,staticClass:"time-select-item",class:{selected:e.value===t.value,disabled:t.disabled,default:t.value===e.defaultValue},attrs:{disabled:t.disabled},on:{click:function(n){e.handleClick(t)}}},[e._v(e._s(t.value))])})),0)],1)])},Da=[];Na._withStripped=!0;var Ia=function(e){var t=(e||"").split(":");if(t.length>=2){var n=parseInt(t[0],10),i=parseInt(t[1],10);return{hours:n,minutes:i}}return null},Ma=function(e,t){var n=Ia(e),i=Ia(t),r=n.minutes+60*n.hours,o=i.minutes+60*i.hours;return r===o?0:r>o?1:-1},ka=function(e){return(e.hours<10?"0"+e.hours:e.hours)+":"+(e.minutes<10?"0"+e.minutes:e.minutes)},La=function(e,t){var n=Ia(e),i=Ia(t),r={hours:n.hours,minutes:n.minutes};return r.minutes+=i.minutes,r.hours+=i.hours,r.hours+=Math.floor(r.minutes/60),r.minutes=r.minutes%60,ka(r)},Pa={components:{ElScrollbar:H.a},watch:{value:function(e){var t=this;e&&this.$nextTick((function(){return t.scrollToOption()}))}},methods:{handleClick:function(e){e.disabled||this.$emit("pick",e.value)},handleClear:function(){this.$emit("pick",null)},scrollToOption:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".selected",t=this.$refs.popper.querySelector(".el-picker-panel__content");ni()(t,t.querySelector(e))},handleMenuEnter:function(){var e=this,t=-1!==this.items.map((function(e){return e.value})).indexOf(this.value),n=-1!==this.items.map((function(e){return e.value})).indexOf(this.defaultValue),i=(t?".selected":n&&".default")||".time-select-item:not(.disabled)";this.$nextTick((function(){return e.scrollToOption(i)}))},scrollDown:function(e){var t=this.items,n=t.length,i=t.length,r=t.map((function(e){return e.value})).indexOf(this.value);while(i--)if(r=(r+e+n)%n,!t[r].disabled)return void this.$emit("pick",t[r].value,!0)},isValidValue:function(e){return-1!==this.items.filter((function(e){return!e.disabled})).map((function(e){return e.value})).indexOf(e)},handleKeydown:function(e){var t=e.keyCode;if(38===t||40===t){var n={40:1,38:-1},i=n[t.toString()];return this.scrollDown(i),void e.stopPropagation()}}},data:function(){return{popperClass:"",start:"09:00",end:"18:00",step:"00:30",value:"",defaultValue:"",visible:!1,minTime:"",maxTime:"",width:0}},computed:{items:function(){var e=this.start,t=this.end,n=this.step,i=[];if(e&&t&&n){var r=e;while(Ma(r,t)<=0)i.push({value:r,disabled:Ma(r,this.minTime||"-1:-1")<=0||Ma(r,this.maxTime||"100:100")>=0}),r=La(r,n)}return i}}},Fa=Pa,Ba=s(Fa,Na,Da,!1,null,null,null);Ba.options.__file="packages/date-picker/src/panel/time-select.vue";var $a=Ba.exports,Va={mixins:[Co],name:"ElTimeSelect",componentName:"ElTimeSelect",props:{type:{type:String,default:"time-select"}},beforeCreate:function(){this.panel=$a},install:function(e){e.component(Va.name,Va)}},Ga=Va,Ua=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-time-range-picker el-picker-panel el-popper",class:e.popperClass},[n("div",{staticClass:"el-time-range-picker__content"},[n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[e._v(e._s(e.t("el.datepicker.startTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":e.showSeconds,"is-arrow":e.arrowControl}},[n("time-spinner",{ref:"minSpinner",attrs:{"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,date:e.minDate},on:{change:e.handleMinChange,"select-range":e.setMinSelectionRange}})],1)]),n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[e._v(e._s(e.t("el.datepicker.endTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":e.showSeconds,"is-arrow":e.arrowControl}},[n("time-spinner",{ref:"maxSpinner",attrs:{"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,date:e.maxDate},on:{change:e.handleMaxChange,"select-range":e.setMaxSelectionRange}})],1)])]),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:function(t){e.handleCancel()}}},[e._v(e._s(e.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn confirm",attrs:{type:"button",disabled:e.btnDisabled},on:{click:function(t){e.handleConfirm()}}},[e._v(e._s(e.t("el.datepicker.confirm")))])])])])},za=[];Ua._withStripped=!0;var ja=Object(ro["parseDate"])("00:00:00","HH:mm:ss"),Ha=Object(ro["parseDate"])("23:59:59","HH:mm:ss"),Wa=function(e){return Object(ro["modifyDate"])(ja,e.getFullYear(),e.getMonth(),e.getDate())},Ya=function(e){return Object(ro["modifyDate"])(Ha,e.getFullYear(),e.getMonth(),e.getDate())},qa=function(e,t){return new Date(Math.min(e.getTime()+t,Ya(e).getTime()))},Ka={mixins:[v.a],components:{TimeSpinner:Mo},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},offset:function(){return this.showSeconds?11:8},spinner:function(){return this.selectionRange[0]this.maxDate.getTime()},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},data:function(){return{popperClass:"",minDate:new Date,maxDate:new Date,value:[],oldValue:[new Date,new Date],defaultValue:null,format:"HH:mm:ss",visible:!1,selectionRange:[0,2],arrowControl:!1}},watch:{value:function(e){Array.isArray(e)?(this.minDate=new Date(e[0]),this.maxDate=new Date(e[1])):Array.isArray(this.defaultValue)?(this.minDate=new Date(this.defaultValue[0]),this.maxDate=new Date(this.defaultValue[1])):this.defaultValue?(this.minDate=new Date(this.defaultValue),this.maxDate=qa(new Date(this.defaultValue),36e5)):(this.minDate=new Date,this.maxDate=qa(new Date,36e5))},visible:function(e){var t=this;e&&(this.oldValue=this.value,this.$nextTick((function(){return t.$refs.minSpinner.emitSelectRange("hours")})))}},methods:{handleClear:function(){this.$emit("pick",null)},handleCancel:function(){this.$emit("pick",this.oldValue)},handleMinChange:function(e){this.minDate=Object(ro["clearMilliseconds"])(e),this.handleChange()},handleMaxChange:function(e){this.maxDate=Object(ro["clearMilliseconds"])(e),this.handleChange()},handleChange:function(){this.isValidValue([this.minDate,this.maxDate])&&(this.$refs.minSpinner.selectableRange=[[Wa(this.minDate),this.maxDate]],this.$refs.maxSpinner.selectableRange=[[this.minDate,Ya(this.maxDate)]],this.$emit("pick",[this.minDate,this.maxDate],!0))},setMinSelectionRange:function(e,t){this.$emit("select-range",e,t,"min"),this.selectionRange=[e,t]},setMaxSelectionRange:function(e,t){this.$emit("select-range",e,t,"max"),this.selectionRange=[e+this.offset,t+this.offset]},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.$refs.minSpinner.selectableRange,n=this.$refs.maxSpinner.selectableRange;this.minDate=Object(ro["limitTimeRange"])(this.minDate,t,this.format),this.maxDate=Object(ro["limitTimeRange"])(this.maxDate,n,this.format),this.$emit("pick",[this.minDate,this.maxDate],e)},adjustSpinners:function(){this.$refs.minSpinner.adjustSpinners(),this.$refs.maxSpinner.adjustSpinners()},changeSelectionRange:function(e){var t=this.showSeconds?[0,3,6,11,14,17]:[0,3,8,11],n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),i=t.indexOf(this.selectionRange[0]),r=(i+e+t.length)%t.length,o=t.length/2;r-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(_["generateId"])()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var e=this,t=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(Be["addClass"])(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(Be["on"])(t,"focusin",(function(){e.handleFocus();var n=t.__vue__;n&&"function"===typeof n.focus&&n.focus()})),Object(Be["on"])(n,"focusin",this.handleFocus),Object(Be["on"])(t,"focusout",this.handleBlur),Object(Be["on"])(n,"focusout",this.handleBlur)),Object(Be["on"])(t,"keydown",this.handleKeydown),Object(Be["on"])(t,"click",this.handleClick)),"click"===this.trigger?(Object(Be["on"])(t,"click",this.doToggle),Object(Be["on"])(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(Be["on"])(t,"mouseenter",this.handleMouseEnter),Object(Be["on"])(n,"mouseenter",this.handleMouseEnter),Object(Be["on"])(t,"mouseleave",this.handleMouseLeave),Object(Be["on"])(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),t.querySelector("input, textarea")?(Object(Be["on"])(t,"focusin",this.doShow),Object(Be["on"])(t,"focusout",this.doClose)):(Object(Be["on"])(t,"mousedown",this.doShow),Object(Be["on"])(t,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(Be["addClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(Be["removeClass"])(this.referenceElm,"focusing")},handleBlur:function(){Object(Be["removeClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){e.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){e.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(Be["off"])(e,"click",this.doToggle),Object(Be["off"])(e,"mouseup",this.doClose),Object(Be["off"])(e,"mousedown",this.doShow),Object(Be["off"])(e,"focusin",this.doShow),Object(Be["off"])(e,"focusout",this.doClose),Object(Be["off"])(e,"mousedown",this.doShow),Object(Be["off"])(e,"mouseup",this.doClose),Object(Be["off"])(e,"mouseleave",this.handleMouseLeave),Object(Be["off"])(e,"mouseenter",this.handleMouseEnter),Object(Be["off"])(document,"click",this.handleDocumentClick)}},rs=is,os=s(rs,ts,ns,!1,null,null,null);os.options.__file="packages/popover/src/main.vue";var as=os.exports,ss=function(e,t,n){var i=t.expression?t.value:t.arg,r=n.context.$refs[i];r&&(Array.isArray(r)?r[0].$refs.reference=e:r.$refs.reference=e)},ls={bind:function(e,t,n){ss(e,t,n)},inserted:function(e,t,n){ss(e,t,n)}};Ui.a.directive("popover",ls),as.install=function(e){e.directive("popover",ls),e.component(as.name,as)},as.directive=ls;var cs=as,us={name:"ElTooltip",mixins:[z.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(_["generateId"])(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new Ui.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=F()(200,(function(){return e.handleClosePopper()})))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var i=n.data=n.data||{};return i.staticClass=this.addTooltipClass(i.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(Be["on"])(this.referenceElm,"mouseenter",this.show),Object(Be["on"])(this.referenceElm,"mouseleave",this.hide),Object(Be["on"])(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(Be["on"])(this.referenceElm,"blur",this.handleBlur),Object(Be["on"])(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(Be["addClass"])(this.referenceElm,"focusing"):Object(Be["removeClass"])(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;n0){Os=Ns.shift();var t=Os.options;for(var n in t)t.hasOwnProperty(n)&&(Rs[n]=t[n]);void 0===t.callback&&(Rs.callback=Ds);var i=Rs.callback;Rs.callback=function(t,n){i(t,n),e()},Object(xs["isVNode"])(Rs.message)?(Rs.$slots.default=[Rs.message],Rs.message=null):delete Rs.$slots.default,["modal","showClose","closeOnClickModal","closeOnPressEscape","closeOnHashChange"].forEach((function(e){void 0===Rs[e]&&(Rs[e]=!0)})),document.body.appendChild(Rs.$el),Ui.a.nextTick((function(){Rs.visible=!0}))}},ks=function e(t,n){if(!Ui.a.prototype.$isServer){if("string"===typeof t||Object(xs["isVNode"])(t)?(t={message:t},"string"===typeof arguments[1]&&(t.title=arguments[1])):t.callback&&!n&&(n=t.callback),"undefined"!==typeof Promise)return new Promise((function(i,r){Ns.push({options:wt()({},Ts,e.defaults,t),callback:n,resolve:i,reject:r}),Ms()}));Ns.push({options:wt()({},Ts,e.defaults,t),callback:n}),Ms()}};ks.setDefaults=function(e){ks.defaults=e},ks.alert=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":ws(t))?(n=t,t=""):void 0===t&&(t=""),ks(wt()({title:t,message:e,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},ks.confirm=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":ws(t))?(n=t,t=""):void 0===t&&(t=""),ks(wt()({title:t,message:e,$type:"confirm",showCancelButton:!0},n))},ks.prompt=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":ws(t))?(n=t,t=""):void 0===t&&(t=""),ks(wt()({title:t,message:e,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},ks.close=function(){Rs.doClose(),Rs.visible=!1,Ns=[],Os=null};var Ls=ks,Ps=Ls,Fs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[e._t("default")],2)},Bs=[];Fs._withStripped=!0;var $s={name:"ElBreadcrumb",props:{separator:{type:String,default:"/"},separatorClass:{type:String,default:""}},provide:function(){return{elBreadcrumb:this}},mounted:function(){var e=this.$el.querySelectorAll(".el-breadcrumb__item");e.length&&e[e.length-1].setAttribute("aria-current","page")}},Vs=$s,Gs=s(Vs,Fs,Bs,!1,null,null,null);Gs.options.__file="packages/breadcrumb/src/breadcrumb.vue";var Us=Gs.exports;Us.install=function(e){e.component(Us.name,Us)};var zs=Us,js=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"el-breadcrumb__item"},[n("span",{ref:"link",class:["el-breadcrumb__inner",e.to?"is-link":""],attrs:{role:"link"}},[e._t("default")],2),e.separatorClass?n("i",{staticClass:"el-breadcrumb__separator",class:e.separatorClass}):n("span",{staticClass:"el-breadcrumb__separator",attrs:{role:"presentation"}},[e._v(e._s(e.separator))])])},Hs=[];js._withStripped=!0;var Ws={name:"ElBreadcrumbItem",props:{to:{},replace:Boolean},data:function(){return{separator:"",separatorClass:""}},inject:["elBreadcrumb"],mounted:function(){var e=this;this.separator=this.elBreadcrumb.separator,this.separatorClass=this.elBreadcrumb.separatorClass;var t=this.$refs.link;t.setAttribute("role","link"),t.addEventListener("click",(function(t){var n=e.to,i=e.$router;n&&i&&(e.replace?i.replace(n):i.push(n))}))}},Ys=Ws,qs=s(Ys,js,Hs,!1,null,null,null);qs.options.__file="packages/breadcrumb/src/breadcrumb-item.vue";var Ks=qs.exports;Ks.install=function(e){e.component(Ks.name,Ks)};var Qs=Ks,Xs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{staticClass:"el-form",class:[e.labelPosition?"el-form--label-"+e.labelPosition:"",{"el-form--inline":e.inline}]},[e._t("default")],2)},Zs=[];Xs._withStripped=!0;var Js={name:"ElForm",componentName:"ElForm",provide:function(){return{elForm:this}},props:{model:Object,rules:Object,labelPosition:String,labelWidth:String,labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:String,disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1}},watch:{rules:function(){this.fields.forEach((function(e){e.removeValidateEvents(),e.addValidateEvents()})),this.validateOnRuleChange&&this.validate((function(){}))}},computed:{autoLabelWidth:function(){if(!this.potentialLabelWidthArr.length)return 0;var e=Math.max.apply(Math,this.potentialLabelWidthArr);return e?e+"px":""}},data:function(){return{fields:[],potentialLabelWidthArr:[]}},created:function(){var e=this;this.$on("el.form.addField",(function(t){t&&e.fields.push(t)})),this.$on("el.form.removeField",(function(t){t.prop&&e.fields.splice(e.fields.indexOf(t),1)}))},methods:{resetFields:function(){this.model?this.fields.forEach((function(e){e.resetField()})):console.warn("[Element Warn][Form]model is required for resetFields to work.")},clearValidate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length?"string"===typeof e?this.fields.filter((function(t){return e===t.prop})):this.fields.filter((function(t){return e.indexOf(t.prop)>-1})):this.fields;t.forEach((function(e){e.clearValidate()}))},validate:function(e){var t=this;if(this.model){var n=void 0;"function"!==typeof e&&window.Promise&&(n=new window.Promise((function(t,n){e=function(e){e?t(e):n(e)}})));var i=!0,r=0;0===this.fields.length&&e&&e(!0);var o={};return this.fields.forEach((function(n){n.validate("",(function(n,a){n&&(i=!1),o=wt()({},o,a),"function"===typeof e&&++r===t.fields.length&&e(i,o)}))})),n||void 0}console.warn("[Element Warn][Form]model is required for validate to work!")},validateField:function(e,t){e=[].concat(e);var n=this.fields.filter((function(t){return-1!==e.indexOf(t.prop)}));n.length?n.forEach((function(e){e.validate("",t)})):console.warn("[Element Warn]please pass correct props!")},getLabelWidthIndex:function(e){var t=this.potentialLabelWidthArr.indexOf(e);if(-1===t)throw new Error("[ElementForm]unpected width ",e);return t},registerLabelWidth:function(e,t){if(e&&t){var n=this.getLabelWidthIndex(t);this.potentialLabelWidthArr.splice(n,1,e)}else e&&this.potentialLabelWidthArr.push(e)},deregisterLabelWidth:function(e){var t=this.getLabelWidthIndex(e);this.potentialLabelWidthArr.splice(t,1)}}},el=Js,tl=s(el,Xs,Zs,!1,null,null,null);tl.options.__file="packages/form/src/form.vue";var nl=tl.exports;nl.install=function(e){e.component(nl.name,nl)};var il=nl,rl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-form-item",class:[{"el-form-item--feedback":e.elForm&&e.elForm.statusIcon,"is-error":"error"===e.validateState,"is-validating":"validating"===e.validateState,"is-success":"success"===e.validateState,"is-required":e.isRequired||e.required,"is-no-asterisk":e.elForm&&e.elForm.hideRequiredAsterisk},e.sizeClass?"el-form-item--"+e.sizeClass:""]},[n("label-wrap",{attrs:{"is-auto-width":e.labelStyle&&"auto"===e.labelStyle.width,"update-all":"auto"===e.form.labelWidth}},[e.label||e.$slots.label?n("label",{staticClass:"el-form-item__label",style:e.labelStyle,attrs:{for:e.labelFor}},[e._t("label",[e._v(e._s(e.label+e.form.labelSuffix))])],2):e._e()]),n("div",{staticClass:"el-form-item__content",style:e.contentStyle},[e._t("default"),n("transition",{attrs:{name:"el-zoom-in-top"}},["error"===e.validateState&&e.showMessage&&e.form.showMessage?e._t("error",[n("div",{staticClass:"el-form-item__error",class:{"el-form-item__error--inline":"boolean"===typeof e.inlineMessage?e.inlineMessage:e.elForm&&e.elForm.inlineMessage||!1}},[e._v("\n "+e._s(e.validateMessage)+"\n ")])],{error:e.validateMessage}):e._e()],2)],2)],1)},ol=[];rl._withStripped=!0;var al,sl,ll=n(40),cl=n.n(ll),ul={props:{isAutoWidth:Boolean,updateAll:Boolean},inject:["elForm","elFormItem"],render:function(){var e=arguments[0],t=this.$slots.default;if(!t)return null;if(this.isAutoWidth){var n=this.elForm.autoLabelWidth,i={};if(n&&"auto"!==n){var r=parseInt(n,10)-this.computedWidth;r&&(i.marginLeft=r+"px")}return e("div",{class:"el-form-item__label-wrap",style:i},[t])}return t[0]},methods:{getLabelWidth:function(){if(this.$el&&this.$el.firstElementChild){var e=window.getComputedStyle(this.$el.firstElementChild).width;return Math.ceil(parseFloat(e))}return 0},updateLabelWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"update";this.$slots.default&&this.isAutoWidth&&this.$el.firstElementChild&&("update"===e?this.computedWidth=this.getLabelWidth():"remove"===e&&this.elForm.deregisterLabelWidth(this.computedWidth))}},watch:{computedWidth:function(e,t){this.updateAll&&(this.elForm.registerLabelWidth(e,t),this.elFormItem.updateComputedLabelWidth(e))}},data:function(){return{computedWidth:0}},mounted:function(){this.updateLabelWidth("update")},updated:function(){this.updateLabelWidth("update")},beforeDestroy:function(){this.updateLabelWidth("remove")}},dl=ul,hl=s(dl,al,sl,!1,null,null,null);hl.options.__file="packages/form/src/label-wrap.vue";var pl=hl.exports,fl={name:"ElFormItem",componentName:"ElFormItem",mixins:[O.a],provide:function(){return{elFormItem:this}},inject:["elForm"],props:{label:String,labelWidth:String,prop:String,required:{type:Boolean,default:void 0},rules:[Object,Array],error:String,validateStatus:String,for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:String},components:{LabelWrap:pl},watch:{error:{immediate:!0,handler:function(e){this.validateMessage=e,this.validateState=e?"error":""}},validateStatus:function(e){this.validateState=e}},computed:{labelFor:function(){return this.for||this.prop},labelStyle:function(){var e={};if("top"===this.form.labelPosition)return e;var t=this.labelWidth||this.form.labelWidth;return t&&(e.width=t),e},contentStyle:function(){var e={},t=this.label;if("top"===this.form.labelPosition||this.form.inline)return e;if(!t&&!this.labelWidth&&this.isNested)return e;var n=this.labelWidth||this.form.labelWidth;return"auto"===n?"auto"===this.labelWidth?e.marginLeft=this.computedLabelWidth:"auto"===this.form.labelWidth&&(e.marginLeft=this.elForm.autoLabelWidth):e.marginLeft=n,e},form:function(){var e=this.$parent,t=e.$options.componentName;while("ElForm"!==t)"ElFormItem"===t&&(this.isNested=!0),e=e.$parent,t=e.$options.componentName;return e},fieldValue:function(){var e=this.form.model;if(e&&this.prop){var t=this.prop;return-1!==t.indexOf(":")&&(t=t.replace(/:/,".")),Object(_["getPropByPath"])(e,t,!0).v}},isRequired:function(){var e=this.getRules(),t=!1;return e&&e.length&&e.every((function(e){return!e.required||(t=!0,!1)})),t},_formSize:function(){return this.elForm.size},elFormItemSize:function(){return this.size||this._formSize},sizeClass:function(){return this.elFormItemSize||(this.$ELEMENT||{}).size}},data:function(){return{validateState:"",validateMessage:"",validateDisabled:!1,validator:{},isNested:!1,computedLabelWidth:""}},methods:{validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_["noop"];this.validateDisabled=!1;var i=this.getFilteredRule(e);if((!i||0===i.length)&&void 0===this.required)return n(),!0;this.validateState="validating";var r={};i&&i.length>0&&i.forEach((function(e){delete e.trigger})),r[this.prop]=i;var o=new cl.a(r),a={};a[this.prop]=this.fieldValue,o.validate(a,{firstFields:!0},(function(e,i){t.validateState=e?"error":"success",t.validateMessage=e?e[0].message:"",n(t.validateMessage,i),t.elForm&&t.elForm.$emit("validate",t.prop,!e,t.validateMessage||null)}))},clearValidate:function(){this.validateState="",this.validateMessage="",this.validateDisabled=!1},resetField:function(){var e=this;this.validateState="",this.validateMessage="";var t=this.form.model,n=this.fieldValue,i=this.prop;-1!==i.indexOf(":")&&(i=i.replace(/:/,"."));var r=Object(_["getPropByPath"])(t,i,!0);this.validateDisabled=!0,Array.isArray(n)?r.o[r.k]=[].concat(this.initialValue):r.o[r.k]=this.initialValue,this.$nextTick((function(){e.validateDisabled=!1})),this.broadcast("ElTimeSelect","fieldReset",this.initialValue)},getRules:function(){var e=this.form.rules,t=this.rules,n=void 0!==this.required?{required:!!this.required}:[],i=Object(_["getPropByPath"])(e,this.prop||"");return e=e?i.o[this.prop||""]||i.v:[],[].concat(t||e||[]).concat(n)},getFilteredRule:function(e){var t=this.getRules();return t.filter((function(t){return!t.trigger||""===e||(Array.isArray(t.trigger)?t.trigger.indexOf(e)>-1:t.trigger===e)})).map((function(e){return wt()({},e)}))},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){this.validateDisabled?this.validateDisabled=!1:this.validate("change")},updateComputedLabelWidth:function(e){this.computedLabelWidth=e?e+"px":""},addValidateEvents:function(){var e=this.getRules();(e.length||void 0!==this.required)&&(this.$on("el.form.blur",this.onFieldBlur),this.$on("el.form.change",this.onFieldChange))},removeValidateEvents:function(){this.$off()}},mounted:function(){if(this.prop){this.dispatch("ElForm","el.form.addField",[this]);var e=this.fieldValue;Array.isArray(e)&&(e=[].concat(e)),Object.defineProperty(this,"initialValue",{value:e}),this.addValidateEvents()}},beforeDestroy:function(){this.dispatch("ElForm","el.form.removeField",[this])}},gl=fl,ml=s(gl,rl,ol,!1,null,null,null);ml.options.__file="packages/form/src/form-item.vue";var vl=ml.exports;vl.install=function(e){e.component(vl.name,vl)};var _l=vl,yl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-tabs__active-bar",class:"is-"+e.rootTabs.tabPosition,style:e.barStyle})},bl=[];yl._withStripped=!0;var Sl={name:"TabBar",props:{tabs:Array},inject:["rootTabs"],computed:{barStyle:{get:function(){var e=this,t={},n=0,i=0,r=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height",o="width"===r?"x":"y",a=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))};this.tabs.every((function(t,o){var s=Object(_["arrayFind"])(e.$parent.$refs.tabs||[],(function(e){return e.id.replace("tab-","")===t.paneName}));if(!s)return!1;if(t.active){i=s["client"+a(r)];var l=window.getComputedStyle(s);return"width"===r&&e.tabs.length>1&&(i-=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),"width"===r&&(n+=parseFloat(l.paddingLeft)),!1}return n+=s["client"+a(r)],!0}));var s="translate"+a(o)+"("+n+"px)";return t[r]=i+"px",t.transform=s,t.msTransform=s,t.webkitTransform=s,t}}}},El=Sl,Cl=s(El,yl,bl,!1,null,null,null);Cl.options.__file="packages/tabs/src/tab-bar.vue";var xl=Cl.exports;function wl(){}var Tl,Al,Ol=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))},Rl={name:"TabNav",components:{TabBar:xl},inject:["rootTabs"],props:{panes:Array,currentName:String,editable:Boolean,onTabClick:{type:Function,default:wl},onTabRemove:{type:Function,default:wl},type:String,stretch:Boolean},data:function(){return{scrollable:!1,navOffset:0,isFocus:!1,focusable:!0}},computed:{navStyle:function(){var e=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"X":"Y";return{transform:"translate"+e+"(-"+this.navOffset+"px)"}},sizeName:function(){return-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height"}},methods:{scrollPrev:function(){var e=this.$refs.navScroll["offset"+Ol(this.sizeName)],t=this.navOffset;if(t){var n=t>e?t-e:0;this.navOffset=n}},scrollNext:function(){var e=this.$refs.nav["offset"+Ol(this.sizeName)],t=this.$refs.navScroll["offset"+Ol(this.sizeName)],n=this.navOffset;if(!(e-n<=t)){var i=e-n>2*t?n+t:e-t;this.navOffset=i}},scrollToActiveTab:function(){if(this.scrollable){var e=this.$refs.nav,t=this.$el.querySelector(".is-active");if(t){var n=this.$refs.navScroll,i=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition),r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=i?e.offsetWidth-o.width:e.offsetHeight-o.height,s=this.navOffset,l=s;i?(r.lefto.right&&(l=s+r.right-o.right)):(r.topo.bottom&&(l=s+(r.bottom-o.bottom))),l=Math.max(l,0),this.navOffset=Math.min(l,a)}}},update:function(){if(this.$refs.nav){var e=this.sizeName,t=this.$refs.nav["offset"+Ol(e)],n=this.$refs.navScroll["offset"+Ol(e)],i=this.navOffset;if(n0&&(this.navOffset=0)}},changeTab:function(e){var t=e.keyCode,n=void 0,i=void 0,r=void 0;-1!==[37,38,39,40].indexOf(t)&&(r=e.currentTarget.querySelectorAll("[role=tab]"),i=Array.prototype.indexOf.call(r,e.target),n=37===t||38===t?0===i?r.length-1:i-1:i0&&void 0!==arguments[0]&&arguments[0];if(this.$slots.default){var n=this.$slots.default.filter((function(e){return e.tag&&e.componentOptions&&"ElTabPane"===e.componentOptions.Ctor.options.name})),i=n.map((function(e){var t=e.componentInstance;return t})),r=!(i.length===this.panes.length&&i.every((function(t,n){return t===e.panes[n]})));(t||r)&&(this.panes=i)}else 0!==this.panes.length&&(this.panes=[])},handleTabClick:function(e,t,n){e.disabled||(this.setCurrentName(t),this.$emit("tab-click",e,n))},handleTabRemove:function(e,t){e.disabled||(t.stopPropagation(),this.$emit("edit",e.name,"remove"),this.$emit("tab-remove",e.name))},handleTabAdd:function(){this.$emit("edit",null,"add"),this.$emit("tab-add")},setCurrentName:function(e){var t=this,n=function(){t.currentName=e,t.$emit("input",e)};if(this.currentName!==e&&this.beforeLeave){var i=this.beforeLeave(e,this.currentName);i&&i.then?i.then((function(){n(),t.$refs.nav&&t.$refs.nav.removeFocus()}),(function(){})):!1!==i&&n()}else n()}},render:function(e){var t,n=this.type,i=this.handleTabClick,r=this.handleTabRemove,o=this.handleTabAdd,a=this.currentName,s=this.panes,l=this.editable,c=this.addable,u=this.tabPosition,d=this.stretch,h=l||c?e("span",{class:"el-tabs__new-tab",on:{click:o,keydown:function(e){13===e.keyCode&&o()}},attrs:{tabindex:"0"}},[e("i",{class:"el-icon-plus"})]):null,p={props:{currentName:a,onTabClick:i,onTabRemove:r,editable:l,type:n,panes:s,stretch:d},ref:"nav"},f=e("div",{class:["el-tabs__header","is-"+u]},[h,e("tab-nav",p)]),g=e("div",{class:"el-tabs__content"},[this.$slots.default]);return e("div",{class:(t={"el-tabs":!0,"el-tabs--card":"card"===n},t["el-tabs--"+u]=!0,t["el-tabs--border-card"]="border-card"===n,t)},["bottom"!==u?[f,g]:[g,f]])},created:function(){this.currentName||this.setCurrentName("0"),this.$on("tab-nav-update",this.calcPaneInstances.bind(null,!0))},mounted:function(){this.calcPaneInstances()},updated:function(){this.calcPaneInstances()}},Pl=Ll,Fl=s(Pl,Il,Ml,!1,null,null,null);Fl.options.__file="packages/tabs/src/tabs.vue";var Bl=Fl.exports;Bl.install=function(e){e.component(Bl.name,Bl)};var $l=Bl,Vl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return!e.lazy||e.loaded||e.active?n("div",{directives:[{name:"show",rawName:"v-show",value:e.active,expression:"active"}],staticClass:"el-tab-pane",attrs:{role:"tabpanel","aria-hidden":!e.active,id:"pane-"+e.paneName,"aria-labelledby":"tab-"+e.paneName}},[e._t("default")],2):e._e()},Gl=[];Vl._withStripped=!0;var Ul={name:"ElTabPane",componentName:"ElTabPane",props:{label:String,labelContent:Function,name:String,closable:Boolean,disabled:Boolean,lazy:Boolean},data:function(){return{index:null,loaded:!1}},computed:{isClosable:function(){return this.closable||this.$parent.closable},active:function(){var e=this.$parent.currentName===(this.name||this.index);return e&&(this.loaded=!0),e},paneName:function(){return this.name||this.index}},updated:function(){this.$parent.$emit("tab-nav-update")}},zl=Ul,jl=s(zl,Vl,Gl,!1,null,null,null);jl.options.__file="packages/tabs/src/tab-pane.vue";var Hl=jl.exports;Hl.install=function(e){e.component(Hl.name,Hl)};var Wl,Yl,ql=Hl,Kl={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,i=this.hit,r=this.effect,o=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",r?"el-tag--"+r:"",i&&"is-hit"],a=e("span",{class:o,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?a:e("transition",{attrs:{name:"el-zoom-in-center"}},[a])}},Ql=Kl,Xl=s(Ql,Wl,Yl,!1,null,null,null);Xl.options.__file="packages/tag/src/tag.vue";var Zl=Xl.exports;Zl.install=function(e){e.component(Zl.name,Zl)};var Jl=Zl,ec=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-tree",class:{"el-tree--highlight-current":e.highlightCurrent,"is-dragging":!!e.dragState.draggingNode,"is-drop-not-allow":!e.dragState.allowDrop,"is-drop-inner":"inner"===e.dragState.dropType},attrs:{role:"tree"}},[e._l(e.root.childNodes,(function(t){return n("el-tree-node",{key:e.getNodeKey(t),attrs:{node:t,props:e.props,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent},on:{"node-expand":e.handleNodeExpand}})})),e.isEmpty?n("div",{staticClass:"el-tree__empty-block"},[n("span",{staticClass:"el-tree__empty-text"},[e._v(e._s(e.emptyText))])]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.dragState.showDropIndicator,expression:"dragState.showDropIndicator"}],ref:"dropIndicator",staticClass:"el-tree__drop-indicator"})],2)},tc=[];ec._withStripped=!0;var nc="$treeNodeId",ic=function(e,t){t&&!t[nc]&&Object.defineProperty(t,nc,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},rc=function(e,t){return e?t[e]:t[nc]},oc=function(e,t){var n=e;while(n&&"BODY"!==n.tagName){if(n.__vue__&&n.__vue__.$options.name===t)return n.__vue__;n=n.parentNode}return null},ac=function(){function e(e,t){for(var n=0;n0&&i.lazy&&i.defaultExpandAll&&this.expand(),Array.isArray(this.data)||ic(this,this.data),this.data){var a=i.defaultExpandedKeys,s=i.key;s&&a&&-1!==a.indexOf(this.key)&&this.expand(null,i.autoExpandParent),s&&void 0!==i.currentNodeKey&&this.key===i.currentNodeKey&&(i.currentNode=this,i.currentNode.isCurrent=!0),i.lazy&&i._initDefaultCheckedNode(this),this.updateLeafState()}}return e.prototype.setData=function(e){Array.isArray(e)||ic(this,e),this.data=e,this.childNodes=[];var t=void 0;t=0===this.level&&this.data instanceof Array?this.data:uc(this,"children")||[];for(var n=0,i=t.length;n1&&void 0!==arguments[1])||arguments[1],n=function n(i){for(var r=i.childNodes||[],o=!1,a=0,s=r.length;a-1&&t.splice(n,1);var i=this.childNodes.indexOf(e);i>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(i,1)),this.updateLeafState()},e.prototype.removeChildByData=function(e){for(var t=null,n=0;n0)i.expanded=!0,i=i.parent}n.expanded=!0,e&&e()};this.shouldLoadData()?this.loadData((function(e){e instanceof Array&&(n.checked?n.setChecked(!0,!0):n.store.checkStrictly||cc(n),i())})):i()},e.prototype.doCreateChildren=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e){t.insertChild(wt()({data:e},n),void 0,!0)}))},e.prototype.collapse=function(){this.expanded=!1},e.prototype.shouldLoadData=function(){return!0===this.store.lazy&&this.store.load&&!this.loaded},e.prototype.updateLeafState=function(){if(!0!==this.store.lazy||!0===this.loaded||"undefined"===typeof this.isLeafByUser){var e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}else this.isLeaf=this.isLeafByUser},e.prototype.setChecked=function(e,t,n,i){var r=this;if(this.indeterminate="half"===e,this.checked=!0===e,!this.store.checkStrictly){if(!this.shouldLoadData()||this.store.checkDescendants){var o=lc(this.childNodes),a=o.all,s=o.allWithoutDisable;this.isLeaf||a||!s||(this.checked=!1,e=!1);var l=function(){if(t){for(var n=r.childNodes,o=0,a=n.length;o0&&void 0!==arguments[0]&&arguments[0];if(0===this.level)return this.data;var t=this.data;if(!t)return null;var n=this.store.props,i="children";return n&&(i=n.children||"children"),void 0===t[i]&&(t[i]=null),e&&!t[i]&&(t[i]=[]),t[i]},e.prototype.updateChildren=function(){var e=this,t=this.getChildren()||[],n=this.childNodes.map((function(e){return e.data})),i={},r=[];t.forEach((function(e,t){var o=e[nc],a=!!o&&Object(_["arrayFindIndex"])(n,(function(e){return e[nc]===o}))>=0;a?i[o]={index:t,data:e}:r.push({index:t,data:e})})),this.store.lazy||n.forEach((function(t){i[t[nc]]||e.removeChildByData(t)})),r.forEach((function(t){var n=t.index,i=t.data;e.insertChild({data:i},n)})),this.updateLeafState()},e.prototype.loadData=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(n).length)e&&e.call(this);else{this.loading=!0;var i=function(i){t.loaded=!0,t.loading=!1,t.childNodes=[],t.doCreateChildren(i,n),t.updateLeafState(),e&&e.call(t,i)};this.store.load(this,i)}},ac(e,[{key:"label",get:function(){return uc(this,"label")}},{key:"key",get:function(){var e=this.store.key;return this.data?this.data[e]:null}},{key:"disabled",get:function(){return uc(this,"disabled")}},{key:"nextSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(t>-1)return e.childNodes[t+1]}return null}},{key:"previousSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}}]),e}(),pc=hc,fc="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function gc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var mc=function(){function e(t){var n=this;for(var i in gc(this,e),this.currentNode=null,this.currentNodeKey=null,t)t.hasOwnProperty(i)&&(this[i]=t[i]);if(this.nodesMap={},this.root=new pc({data:this.data,store:this}),this.lazy&&this.load){var r=this.load;r(this.root,(function(e){n.root.doCreateChildren(e),n._initDefaultCheckedNodes()}))}else this._initDefaultCheckedNodes()}return e.prototype.filter=function(e){var t=this.filterNodeMethod,n=this.lazy,i=function i(r){var o=r.root?r.root.childNodes:r.childNodes;if(o.forEach((function(n){n.visible=t.call(n,e,n.data,n),i(n)})),!r.visible&&o.length){var a=!0;a=!o.some((function(e){return e.visible})),r.root?r.root.visible=!1===a:r.visible=!1===a}e&&(!r.visible||r.isLeaf||n||r.expand())};i(this)},e.prototype.setData=function(e){var t=e!==this.root.data;t?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()},e.prototype.getNode=function(e){if(e instanceof pc)return e;var t="object"!==("undefined"===typeof e?"undefined":fc(e))?e:rc(this.key,e);return this.nodesMap[t]||null},e.prototype.insertBefore=function(e,t){var n=this.getNode(t);n.parent.insertBefore({data:e},n)},e.prototype.insertAfter=function(e,t){var n=this.getNode(t);n.parent.insertAfter({data:e},n)},e.prototype.remove=function(e){var t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))},e.prototype.append=function(e,t){var n=t?this.getNode(t):this.root;n&&n.insertChild({data:e})},e.prototype._initDefaultCheckedNodes=function(){var e=this,t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach((function(t){var i=n[t];i&&i.setChecked(!0,!e.checkStrictly)}))},e.prototype._initDefaultCheckedNode=function(e){var t=this.defaultCheckedKeys||[];-1!==t.indexOf(e.key)&&e.setChecked(!0,!this.checkStrictly)},e.prototype.setDefaultCheckedKey=function(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())},e.prototype.registerNode=function(e){var t=this.key;if(t&&e&&e.data){var n=e.key;void 0!==n&&(this.nodesMap[e.key]=e)}},e.prototype.deregisterNode=function(e){var t=this,n=this.key;n&&e&&e.data&&(e.childNodes.forEach((function(e){t.deregisterNode(e)})),delete this.nodesMap[e.key])},e.prototype.getCheckedNodes=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],i=function i(r){var o=r.root?r.root.childNodes:r.childNodes;o.forEach((function(r){(r.checked||t&&r.indeterminate)&&(!e||e&&r.isLeaf)&&n.push(r.data),i(r)}))};return i(this),n},e.prototype.getCheckedKeys=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getCheckedNodes(t).map((function(t){return(t||{})[e.key]}))},e.prototype.getHalfCheckedNodes=function(){var e=[],t=function t(n){var i=n.root?n.root.childNodes:n.childNodes;i.forEach((function(n){n.indeterminate&&e.push(n.data),t(n)}))};return t(this),e},e.prototype.getHalfCheckedKeys=function(){var e=this;return this.getHalfCheckedNodes().map((function(t){return(t||{})[e.key]}))},e.prototype._getAllNodes=function(){var e=[],t=this.nodesMap;for(var n in t)t.hasOwnProperty(n)&&e.push(t[n]);return e},e.prototype.updateChildren=function(e,t){var n=this.nodesMap[e];if(n){for(var i=n.childNodes,r=i.length-1;r>=0;r--){var o=i[r];this.remove(o.data)}for(var a=0,s=t.length;a1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=this._getAllNodes().sort((function(e,t){return t.level-e.level})),r=Object.create(null),o=Object.keys(n);i.forEach((function(e){return e.setChecked(!1,!1)}));for(var a=0,s=i.length;a-1;if(u){var d=l.parent;while(d&&d.level>0)r[d.data[e]]=!0,d=d.parent;l.isLeaf||this.checkStrictly?l.setChecked(!0,!1):(l.setChecked(!0,!0),t&&function(){l.setChecked(!1,!1);var e=function e(t){var n=t.childNodes;n.forEach((function(t){t.isLeaf||t.setChecked(!1,!1),e(t)}))};e(l)}())}else l.checked&&!r[c]&&l.setChecked(!1,!1)}},e.prototype.setCheckedNodes=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.key,i={};e.forEach((function(e){i[(e||{})[n]]=!0})),this._setCheckedKeys(n,t,i)},e.prototype.setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=e;var n=this.key,i={};e.forEach((function(e){i[e]=!0})),this._setCheckedKeys(n,t,i)},e.prototype.setDefaultExpandedKeys=function(e){var t=this;e=e||[],this.defaultExpandedKeys=e,e.forEach((function(e){var n=t.getNode(e);n&&n.expand(null,t.autoExpandParent)}))},e.prototype.setChecked=function(e,t,n){var i=this.getNode(e);i&&i.setChecked(!!t,n)},e.prototype.getCurrentNode=function(){return this.currentNode},e.prototype.setCurrentNode=function(e){var t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0},e.prototype.setUserCurrentNode=function(e){var t=e[this.key],n=this.nodesMap[t];this.setCurrentNode(n)},e.prototype.setCurrentNodeKey=function(e){if(null===e||void 0===e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);var t=this.getNode(e);t&&this.setCurrentNode(t)},e}(),vc=mc,_c=function(){var e=this,t=this,n=t.$createElement,i=t._self._c||n;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.node.visible,expression:"node.visible"}],ref:"node",staticClass:"el-tree-node",class:{"is-expanded":t.expanded,"is-current":t.node.isCurrent,"is-hidden":!t.node.visible,"is-focusable":!t.node.disabled,"is-checked":!t.node.disabled&&t.node.checked},attrs:{role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.draggable},on:{click:function(e){return e.stopPropagation(),t.handleClick(e)},contextmenu:function(t){return e.handleContextMenu(t)},dragstart:function(e){return e.stopPropagation(),t.handleDragStart(e)},dragover:function(e){return e.stopPropagation(),t.handleDragOver(e)},dragend:function(e){return e.stopPropagation(),t.handleDragEnd(e)},drop:function(e){return e.stopPropagation(),t.handleDrop(e)}}},[i("div",{staticClass:"el-tree-node__content",style:{"padding-left":(t.node.level-1)*t.tree.indent+"px"}},[i("span",{class:[{"is-leaf":t.node.isLeaf,expanded:!t.node.isLeaf&&t.expanded},"el-tree-node__expand-icon",t.tree.iconClass?t.tree.iconClass:"el-icon-caret-right"],on:{click:function(e){return e.stopPropagation(),t.handleExpandIconClick(e)}}}),t.showCheckbox?i("el-checkbox",{attrs:{indeterminate:t.node.indeterminate,disabled:!!t.node.disabled},on:{change:t.handleCheckChange},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:t.node.checked,callback:function(e){t.$set(t.node,"checked",e)},expression:"node.checked"}}):t._e(),t.node.loading?i("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):t._e(),i("node-content",{attrs:{node:t.node}})],1),i("el-collapse-transition",[!t.renderAfterExpand||t.childNodeRendered?i("div",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"expanded"}],staticClass:"el-tree-node__children",attrs:{role:"group","aria-expanded":t.expanded}},t._l(t.node.childNodes,(function(e){return i("el-tree-node",{key:t.getNodeKey(e),attrs:{"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:e},on:{"node-expand":t.handleChildNodeExpand}})})),1):t._e()])],1)},yc=[];_c._withStripped=!0;var bc={name:"ElTreeNode",componentName:"ElTreeNode",mixins:[O.a],props:{node:{default:function(){return{}}},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{ElCollapseTransition:Ye.a,ElCheckbox:ki.a,NodeContent:{props:{node:{required:!0}},render:function(e){var t=this.$parent,n=t.tree,i=this.node,r=i.data,o=i.store;return t.renderContent?t.renderContent.call(t._renderProxy,e,{_self:n.$vnode.context,node:i,data:r,store:o}):n.$scopedSlots.default?n.$scopedSlots.default({node:i,data:r}):e("span",{class:"el-tree-node__label"},[i.label])}}},data:function(){return{tree:null,expanded:!1,childNodeRendered:!1,oldChecked:null,oldIndeterminate:null}},watch:{"node.indeterminate":function(e){this.handleSelectChange(this.node.checked,e)},"node.checked":function(e){this.handleSelectChange(e,this.node.indeterminate)},"node.expanded":function(e){var t=this;this.$nextTick((function(){return t.expanded=e})),e&&(this.childNodeRendered=!0)}},methods:{getNodeKey:function(e){return rc(this.tree.nodeKey,e.data)},handleSelectChange:function(e,t){this.oldChecked!==e&&this.oldIndeterminate!==t&&this.tree.$emit("check-change",this.node.data,e,t),this.oldChecked=e,this.indeterminate=t},handleClick:function(){var e=this.tree.store;e.setCurrentNode(this.node),this.tree.$emit("current-change",e.currentNode?e.currentNode.data:null,e.currentNode),this.tree.currentNode=this,this.tree.expandOnClickNode&&this.handleExpandIconClick(),this.tree.checkOnClickNode&&!this.node.disabled&&this.handleCheckChange(null,{target:{checked:!this.node.checked}}),this.tree.$emit("node-click",this.node.data,this.node,this)},handleContextMenu:function(e){this.tree._events["node-contextmenu"]&&this.tree._events["node-contextmenu"].length>0&&(e.stopPropagation(),e.preventDefault()),this.tree.$emit("node-contextmenu",e,this.node.data,this.node,this)},handleExpandIconClick:function(){this.node.isLeaf||(this.expanded?(this.tree.$emit("node-collapse",this.node.data,this.node,this),this.node.collapse()):(this.node.expand(),this.$emit("node-expand",this.node.data,this.node,this)))},handleCheckChange:function(e,t){var n=this;this.node.setChecked(t.target.checked,!this.tree.checkStrictly),this.$nextTick((function(){var e=n.tree.store;n.tree.$emit("check",n.node.data,{checkedNodes:e.getCheckedNodes(),checkedKeys:e.getCheckedKeys(),halfCheckedNodes:e.getHalfCheckedNodes(),halfCheckedKeys:e.getHalfCheckedKeys()})}))},handleChildNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.tree.$emit("node-expand",e,t,n)},handleDragStart:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-start",e,this)},handleDragOver:function(e){this.tree.draggable&&(this.tree.$emit("tree-node-drag-over",e,this),e.preventDefault())},handleDrop:function(e){e.preventDefault()},handleDragEnd:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-end",e,this)}},created:function(){var e=this,t=this.$parent;t.isTree?this.tree=t:this.tree=t.tree;var n=this.tree;n||console.warn("Can not find node's tree.");var i=n.props||{},r=i["children"]||"children";this.$watch("node.data."+r,(function(){e.node.updateChildren()})),this.node.expanded&&(this.expanded=!0,this.childNodeRendered=!0),this.tree.accordion&&this.$on("tree-node-expand",(function(t){e.node!==t&&e.node.collapse()}))}},Sc=bc,Ec=s(Sc,_c,yc,!1,null,null,null);Ec.options.__file="packages/tree/src/tree-node.vue";var Cc=Ec.exports,xc={name:"ElTree",mixins:[O.a],components:{ElTreeNode:Cc},data:function(){return{store:null,root:null,currentNode:null,treeItems:null,checkboxItems:[],dragState:{showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0}}},props:{data:{type:Array},emptyText:{type:String,default:function(){return Object(fs["t"])("el.tree.emptyText")}},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{default:function(){return{children:"children",label:"label",disabled:"disabled"}}},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},iconClass:String},computed:{children:{set:function(e){this.data=e},get:function(){return this.data}},treeItemArray:function(){return Array.prototype.slice.call(this.treeItems)},isEmpty:function(){var e=this.root.childNodes;return!e||0===e.length||e.every((function(e){var t=e.visible;return!t}))}},watch:{defaultCheckedKeys:function(e){this.store.setDefaultCheckedKey(e)},defaultExpandedKeys:function(e){this.store.defaultExpandedKeys=e,this.store.setDefaultExpandedKeys(e)},data:function(e){this.store.setData(e)},checkboxItems:function(e){Array.prototype.forEach.call(e,(function(e){e.setAttribute("tabindex",-1)}))},checkStrictly:function(e){this.store.checkStrictly=e}},methods:{filter:function(e){if(!this.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");this.store.filter(e)},getNodeKey:function(e){return rc(this.nodeKey,e.data)},getNodePath:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");var t=this.store.getNode(e);if(!t)return[];var n=[t.data],i=t.parent;while(i&&i!==this.root)n.push(i.data),i=i.parent;return n.reverse()},getCheckedNodes:function(e,t){return this.store.getCheckedNodes(e,t)},getCheckedKeys:function(e){return this.store.getCheckedKeys(e)},getCurrentNode:function(){var e=this.store.getCurrentNode();return e?e.data:null},getCurrentKey:function(){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");var e=this.getCurrentNode();return e?e[this.nodeKey]:null},setCheckedNodes:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");this.store.setCheckedNodes(e,t)},setCheckedKeys:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");this.store.setCheckedKeys(e,t)},setChecked:function(e,t,n){this.store.setChecked(e,t,n)},getHalfCheckedNodes:function(){return this.store.getHalfCheckedNodes()},getHalfCheckedKeys:function(){return this.store.getHalfCheckedKeys()},setCurrentNode:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");this.store.setUserCurrentNode(e)},setCurrentKey:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");this.store.setCurrentNodeKey(e)},getNode:function(e){return this.store.getNode(e)},remove:function(e){this.store.remove(e)},append:function(e,t){this.store.append(e,t)},insertBefore:function(e,t){this.store.insertBefore(e,t)},insertAfter:function(e,t){this.store.insertAfter(e,t)},handleNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.$emit("node-expand",e,t,n)},updateKeyChildren:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");this.store.updateChildren(e,t)},initTabIndex:function(){this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]");var e=this.$el.querySelectorAll(".is-checked[role=treeitem]");e.length?e[0].setAttribute("tabindex",0):this.treeItems[0]&&this.treeItems[0].setAttribute("tabindex",0)},handleKeydown:function(e){var t=e.target;if(-1!==t.className.indexOf("el-tree-node")){var n=e.keyCode;this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]");var i=this.treeItemArray.indexOf(t),r=void 0;[38,40].indexOf(n)>-1&&(e.preventDefault(),r=38===n?0!==i?i-1:0:i-1&&(e.preventDefault(),t.click());var o=t.querySelector('[type="checkbox"]');[13,32].indexOf(n)>-1&&o&&(e.preventDefault(),o.click())}}},created:function(){var e=this;this.isTree=!0,this.store=new vc({key:this.nodeKey,data:this.data,lazy:this.lazy,props:this.props,load:this.load,currentNodeKey:this.currentNodeKey,checkStrictly:this.checkStrictly,checkDescendants:this.checkDescendants,defaultCheckedKeys:this.defaultCheckedKeys,defaultExpandedKeys:this.defaultExpandedKeys,autoExpandParent:this.autoExpandParent,defaultExpandAll:this.defaultExpandAll,filterNodeMethod:this.filterNodeMethod}),this.root=this.store.root;var t=this.dragState;this.$on("tree-node-drag-start",(function(n,i){if("function"===typeof e.allowDrag&&!e.allowDrag(i.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(r){}t.draggingNode=i,e.$emit("node-drag-start",i.node,n)})),this.$on("tree-node-drag-over",(function(n,i){var r=oc(n.target,"ElTreeNode"),o=t.dropNode;o&&o!==r&&Object(Be["removeClass"])(o.$el,"is-drop-inner");var a=t.draggingNode;if(a&&r){var s=!0,l=!0,c=!0,u=!0;"function"===typeof e.allowDrop&&(s=e.allowDrop(a.node,r.node,"prev"),u=l=e.allowDrop(a.node,r.node,"inner"),c=e.allowDrop(a.node,r.node,"next")),n.dataTransfer.dropEffect=l?"move":"none",(s||l||c)&&o!==r&&(o&&e.$emit("node-drag-leave",a.node,o.node,n),e.$emit("node-drag-enter",a.node,r.node,n)),(s||l||c)&&(t.dropNode=r),r.node.nextSibling===a.node&&(c=!1),r.node.previousSibling===a.node&&(s=!1),r.node.contains(a.node,!1)&&(l=!1),(a.node===r.node||a.node.contains(r.node))&&(s=!1,l=!1,c=!1);var d=r.$el.getBoundingClientRect(),h=e.$el.getBoundingClientRect(),p=void 0,f=s?l?.25:c?.45:1:-1,g=c?l?.75:s?.55:0:1,m=-9999,v=n.clientY-d.top;p=vd.height*g?"after":l?"inner":"none";var _=r.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),y=e.$refs.dropIndicator;"before"===p?m=_.top-h.top:"after"===p&&(m=_.bottom-h.top),y.style.top=m+"px",y.style.left=_.right-h.left+"px","inner"===p?Object(Be["addClass"])(r.$el,"is-drop-inner"):Object(Be["removeClass"])(r.$el,"is-drop-inner"),t.showDropIndicator="before"===p||"after"===p,t.allowDrop=t.showDropIndicator||u,t.dropType=p,e.$emit("node-drag-over",a.node,r.node,n)}})),this.$on("tree-node-drag-end",(function(n){var i=t.draggingNode,r=t.dropType,o=t.dropNode;if(n.preventDefault(),n.dataTransfer.dropEffect="move",i&&o){var a={data:i.node.data};"none"!==r&&i.node.remove(),"before"===r?o.node.parent.insertBefore(a,o.node):"after"===r?o.node.parent.insertAfter(a,o.node):"inner"===r&&o.node.insertChild(a),"none"!==r&&e.store.registerNode(a),Object(Be["removeClass"])(o.$el,"is-drop-inner"),e.$emit("node-drag-end",i.node,o.node,r,n),"none"!==r&&e.$emit("node-drop",i.node,o.node,r,n)}i&&!o&&e.$emit("node-drag-end",i.node,null,r,n),t.showDropIndicator=!1,t.draggingNode=null,t.dropNode=null,t.allowDrop=!0}))},mounted:function(){this.initTabIndex(),this.$el.addEventListener("keydown",this.handleKeydown)},updated:function(){this.treeItems=this.$el.querySelectorAll("[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]")}},wc=xc,Tc=s(wc,ec,tc,!1,null,null,null);Tc.options.__file="packages/tree/src/tree.vue";var Ac=Tc.exports;Ac.install=function(e){e.component(Ac.name,Ac)};var Oc=Ac,Rc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-alert-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-alert",class:[e.typeClass,e.center?"is-center":"","is-"+e.effect],attrs:{role:"alert"}},[e.showIcon?n("i",{staticClass:"el-alert__icon",class:[e.iconClass,e.isBigIcon]}):e._e(),n("div",{staticClass:"el-alert__content"},[e.title||e.$slots.title?n("span",{staticClass:"el-alert__title",class:[e.isBoldTitle]},[e._t("title",[e._v(e._s(e.title))])],2):e._e(),e.$slots.default&&!e.description?n("p",{staticClass:"el-alert__description"},[e._t("default")],2):e._e(),e.description&&!e.$slots.default?n("p",{staticClass:"el-alert__description"},[e._v(e._s(e.description))]):e._e(),n("i",{directives:[{name:"show",rawName:"v-show",value:e.closable,expression:"closable"}],staticClass:"el-alert__closebtn",class:{"is-customed":""!==e.closeText,"el-icon-close":""===e.closeText},on:{click:function(t){e.close()}}},[e._v(e._s(e.closeText))])])])])},Nc=[];Rc._withStripped=!0;var Dc={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"},Ic={name:"ElAlert",props:{title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:function(e){return-1!==["light","dark"].indexOf(e)}}},data:function(){return{visible:!0}},methods:{close:function(){this.visible=!1,this.$emit("close")}},computed:{typeClass:function(){return"el-alert--"+this.type},iconClass:function(){return Dc[this.type]||"el-icon-info"},isBigIcon:function(){return this.description||this.$slots.default?"is-big":""},isBoldTitle:function(){return this.description||this.$slots.default?"is-bold":""}}},Mc=Ic,kc=s(Mc,Rc,Nc,!1,null,null,null);kc.options.__file="packages/alert/src/main.vue";var Lc=kc.exports;Lc.install=function(e){e.component(Lc.name,Lc)};var Pc=Lc,Fc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-notification-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-notification",e.customClass,e.horizontalClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:function(t){e.clearTimer()},mouseleave:function(t){e.startTimer()},click:e.click}},[e.type||e.iconClass?n("i",{staticClass:"el-notification__icon",class:[e.typeClass,e.iconClass]}):e._e(),n("div",{staticClass:"el-notification__group",class:{"is-with-icon":e.typeClass||e.iconClass}},[n("h2",{staticClass:"el-notification__title",domProps:{textContent:e._s(e.title)}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.message,expression:"message"}],staticClass:"el-notification__content"},[e._t("default",[e.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:e._s(e.message)}}):n("p",[e._v(e._s(e.message))])])],2),e.showClose?n("div",{staticClass:"el-notification__closeBtn el-icon-close",on:{click:function(t){return t.stopPropagation(),e.close(t)}}}):e._e()])])])},Bc=[];Fc._withStripped=!0;var $c={success:"success",info:"info",warning:"warning",error:"error"},Vc={data:function(){return{visible:!1,title:"",message:"",duration:4500,type:"",showClose:!0,customClass:"",iconClass:"",onClose:null,onClick:null,closed:!1,verticalOffset:0,timer:null,dangerouslyUseHTMLString:!1,position:"top-right"}},computed:{typeClass:function(){return this.type&&$c[this.type]?"el-icon-"+$c[this.type]:""},horizontalClass:function(){return this.position.indexOf("right")>-1?"right":"left"},verticalProperty:function(){return/^top-/.test(this.position)?"top":"bottom"},positionStyle:function(){var e;return e={},e[this.verticalProperty]=this.verticalOffset+"px",e}},watch:{closed:function(e){e&&(this.visible=!1,this.$el.addEventListener("transitionend",this.destroyElement))}},methods:{destroyElement:function(){this.$el.removeEventListener("transitionend",this.destroyElement),this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},click:function(){"function"===typeof this.onClick&&this.onClick()},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose()},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration))},keydown:function(e){46===e.keyCode||8===e.keyCode?this.clearTimer():27===e.keyCode?this.closed||this.close():this.startTimer()}},mounted:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration)),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},Gc=Vc,Uc=s(Gc,Fc,Bc,!1,null,null,null);Uc.options.__file="packages/notification/src/main.vue";var zc=Uc.exports,jc=Ui.a.extend(zc),Hc=void 0,Wc=[],Yc=1,qc=function e(t){if(!Ui.a.prototype.$isServer){t=wt()({},t);var n=t.onClose,i="notification_"+Yc++,r=t.position||"top-right";t.onClose=function(){e.close(i,n)},Hc=new jc({data:t}),Object(xs["isVNode"])(t.message)&&(Hc.$slots.default=[t.message],t.message="REPLACED_BY_VNODE"),Hc.id=i,Hc.$mount(),document.body.appendChild(Hc.$el),Hc.visible=!0,Hc.dom=Hc.$el,Hc.dom.style.zIndex=C["PopupManager"].nextZIndex();var o=t.offset||0;return Wc.filter((function(e){return e.position===r})).forEach((function(e){o+=e.$el.offsetHeight+16})),o+=16,Hc.verticalOffset=o,Wc.push(Hc),Hc}};["success","warning","info","error"].forEach((function(e){qc[e]=function(t){return("string"===typeof t||Object(xs["isVNode"])(t))&&(t={message:t}),t.type=e,qc(t)}})),qc.close=function(e,t){var n=-1,i=Wc.length,r=Wc.filter((function(t,i){return t.id===e&&(n=i,!0)}))[0];if(r&&("function"===typeof t&&t(r),Wc.splice(n,1),!(i<=1)))for(var o=r.position,a=r.dom.offsetHeight,s=n;s=0;e--)Wc[e].close()};var Kc=qc,Qc=Kc,Xc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-slider",class:{"is-vertical":e.vertical,"el-slider--with-input":e.showInput},attrs:{role:"slider","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":e.sliderDisabled}},[e.showInput&&!e.range?n("el-input-number",{ref:"input",staticClass:"el-slider__input",attrs:{step:e.step,disabled:e.sliderDisabled,controls:e.showInputControls,min:e.min,max:e.max,debounce:e.debounce,size:e.inputSize},on:{change:e.emitChange},model:{value:e.firstValue,callback:function(t){e.firstValue=t},expression:"firstValue"}}):e._e(),n("div",{ref:"slider",staticClass:"el-slider__runway",class:{"show-input":e.showInput,disabled:e.sliderDisabled},style:e.runwayStyle,on:{click:e.onSliderClick}},[n("div",{staticClass:"el-slider__bar",style:e.barStyle}),n("slider-button",{ref:"button1",attrs:{vertical:e.vertical,"tooltip-class":e.tooltipClass},model:{value:e.firstValue,callback:function(t){e.firstValue=t},expression:"firstValue"}}),e.range?n("slider-button",{ref:"button2",attrs:{vertical:e.vertical,"tooltip-class":e.tooltipClass},model:{value:e.secondValue,callback:function(t){e.secondValue=t},expression:"secondValue"}}):e._e(),e._l(e.stops,(function(t,i){return e.showStops?n("div",{key:i,staticClass:"el-slider__stop",style:e.getStopStyle(t)}):e._e()})),e.markList.length>0?[n("div",e._l(e.markList,(function(t,i){return n("div",{key:i,staticClass:"el-slider__stop el-slider__marks-stop",style:e.getStopStyle(t.position)})})),0),n("div",{staticClass:"el-slider__marks"},e._l(e.markList,(function(t,i){return n("slider-marker",{key:i,style:e.getStopStyle(t.position),attrs:{mark:t.mark}})})),1)]:e._e()],2)],1)},Zc=[];Xc._withStripped=!0;var Jc=n(41),eu=n.n(Jc),tu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"button",staticClass:"el-slider__button-wrapper",class:{hover:e.hovering,dragging:e.dragging},style:e.wrapperStyle,attrs:{tabindex:"0"},on:{mouseenter:e.handleMouseEnter,mouseleave:e.handleMouseLeave,mousedown:e.onButtonDown,touchstart:e.onButtonDown,focus:e.handleMouseEnter,blur:e.handleMouseLeave,keydown:[function(t){return"button"in t||!e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])?"button"in t&&0!==t.button?null:e.onLeftKeyDown(t):null},function(t){return"button"in t||!e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])?"button"in t&&2!==t.button?null:e.onRightKeyDown(t):null},function(t){return"button"in t||!e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?(t.preventDefault(),e.onLeftKeyDown(t)):null},function(t){return"button"in t||!e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?(t.preventDefault(),e.onRightKeyDown(t)):null}]}},[n("el-tooltip",{ref:"tooltip",attrs:{placement:"top","popper-class":e.tooltipClass,disabled:!e.showTooltip}},[n("span",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.formatValue))]),n("div",{staticClass:"el-slider__button",class:{hover:e.hovering,dragging:e.dragging}})])],1)},nu=[];tu._withStripped=!0;var iu={name:"ElSliderButton",components:{ElTooltip:rt.a},props:{value:{type:Number,default:0},vertical:{type:Boolean,default:!1},tooltipClass:String},data:function(){return{hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.sliderDisabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},showTooltip:function(){return this.$parent.showTooltip},precision:function(){return this.$parent.precision},currentPosition:function(){return(this.value-this.min)/(this.max-this.min)*100+"%"},enableFormat:function(){return this.$parent.formatTooltip instanceof Function},formatValue:function(){return this.enableFormat&&this.$parent.formatTooltip(this.value)||this.value},wrapperStyle:function(){return this.vertical?{bottom:this.currentPosition}:{left:this.currentPosition}}},watch:{dragging:function(e){this.$parent.dragging=e}},methods:{displayTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!0)},hideTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!1)},handleMouseEnter:function(){this.hovering=!0,this.displayTooltip()},handleMouseLeave:function(){this.hovering=!1,this.hideTooltip()},onButtonDown:function(e){this.disabled||(e.preventDefault(),this.onDragStart(e),window.addEventListener("mousemove",this.onDragging),window.addEventListener("touchmove",this.onDragging),window.addEventListener("mouseup",this.onDragEnd),window.addEventListener("touchend",this.onDragEnd),window.addEventListener("contextmenu",this.onDragEnd))},onLeftKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onRightKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onDragStart:function(e){this.dragging=!0,this.isClick=!0,"touchstart"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),this.vertical?this.startY=e.clientY:this.startX=e.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(e){if(this.dragging){this.isClick=!1,this.displayTooltip(),this.$parent.resetSize();var t=0;"touchmove"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),this.vertical?(this.currentY=e.clientY,t=(this.startY-this.currentY)/this.$parent.sliderSize*100):(this.currentX=e.clientX,t=(this.currentX-this.startX)/this.$parent.sliderSize*100),this.newPosition=this.startPosition+t,this.setPosition(this.newPosition)}},onDragEnd:function(){var e=this;this.dragging&&(setTimeout((function(){e.dragging=!1,e.hideTooltip(),e.isClick||(e.setPosition(e.newPosition),e.$parent.emitChange())}),0),window.removeEventListener("mousemove",this.onDragging),window.removeEventListener("touchmove",this.onDragging),window.removeEventListener("mouseup",this.onDragEnd),window.removeEventListener("touchend",this.onDragEnd),window.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(e){var t=this;if(null!==e&&!isNaN(e)){e<0?e=0:e>100&&(e=100);var n=100/((this.max-this.min)/this.step),i=Math.round(e/n),r=i*n*(this.max-this.min)*.01+this.min;r=parseFloat(r.toFixed(this.precision)),this.$emit("input",r),this.$nextTick((function(){t.displayTooltip(),t.$refs.tooltip&&t.$refs.tooltip.updatePopper()})),this.dragging||this.value===this.oldValue||(this.oldValue=this.value)}}}},ru=iu,ou=s(ru,tu,nu,!1,null,null,null);ou.options.__file="packages/slider/src/button.vue";var au=ou.exports,su={name:"ElMarker",props:{mark:{type:[String,Object]}},render:function(){var e=arguments[0],t="string"===typeof this.mark?this.mark:this.mark.label;return e("div",{class:"el-slider__marks-text",style:this.mark.style||{}},[t])}},lu={name:"ElSlider",mixins:[O.a],inject:{elForm:{default:""}},props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},value:{type:[Number,Array],default:0},showInput:{type:Boolean,default:!1},showInputControls:{type:Boolean,default:!0},inputSize:{type:String,default:"small"},showStops:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},formatTooltip:Function,disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},height:{type:String},debounce:{type:Number,default:300},label:{type:String},tooltipClass:String,marks:Object},components:{ElInputNumber:eu.a,SliderButton:au,SliderMarker:su},data:function(){return{firstValue:null,secondValue:null,oldValue:null,dragging:!1,sliderSize:1}},watch:{value:function(e,t){this.dragging||Array.isArray(e)&&Array.isArray(t)&&e.every((function(e,n){return e===t[n]}))||this.setValues()},dragging:function(e){e||this.setValues()},firstValue:function(e){this.range?this.$emit("input",[this.minValue,this.maxValue]):this.$emit("input",e)},secondValue:function(){this.range&&this.$emit("input",[this.minValue,this.maxValue])},min:function(){this.setValues()},max:function(){this.setValues()}},methods:{valueChanged:function(){var e=this;return this.range?![this.minValue,this.maxValue].every((function(t,n){return t===e.oldValue[n]})):this.value!==this.oldValue},setValues:function(){if(this.min>this.max)console.error("[Element Error][Slider]min should not be greater than max.");else{var e=this.value;this.range&&Array.isArray(e)?e[1]this.max?this.$emit("input",[this.max,this.max]):e[0]this.max?this.$emit("input",[e[0],this.max]):(this.firstValue=e[0],this.secondValue=e[1],this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",[this.minValue,this.maxValue]),this.oldValue=e.slice())):this.range||"number"!==typeof e||isNaN(e)||(ethis.max?this.$emit("input",this.max):(this.firstValue=e,this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",e),this.oldValue=e)))}},setPosition:function(e){var t=this.min+e*(this.max-this.min)/100;if(this.range){var n=void 0;n=Math.abs(this.minValue-t)this.secondValue?"button1":"button2",this.$refs[n].setPosition(e)}else this.$refs.button1.setPosition(e)},onSliderClick:function(e){if(!this.sliderDisabled&&!this.dragging){if(this.resetSize(),this.vertical){var t=this.$refs.slider.getBoundingClientRect().bottom;this.setPosition((t-e.clientY)/this.sliderSize*100)}else{var n=this.$refs.slider.getBoundingClientRect().left;this.setPosition((e.clientX-n)/this.sliderSize*100)}this.emitChange()}},resetSize:function(){this.$refs.slider&&(this.sliderSize=this.$refs.slider["client"+(this.vertical?"Height":"Width")])},emitChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.range?[e.minValue,e.maxValue]:e.value)}))},getStopStyle:function(e){return this.vertical?{bottom:e+"%"}:{left:e+"%"}}},computed:{stops:function(){var e=this;if(!this.showStops||this.min>this.max)return[];if(0===this.step)return[];for(var t=(this.max-this.min)/this.step,n=100*this.step/(this.max-this.min),i=[],r=1;r100*(e.maxValue-e.min)/(e.max-e.min)})):i.filter((function(t){return t>100*(e.firstValue-e.min)/(e.max-e.min)}))},markList:function(){var e=this;if(!this.marks)return[];var t=Object.keys(this.marks);return t.map(parseFloat).sort((function(e,t){return e-t})).filter((function(t){return t<=e.max&&t>=e.min})).map((function(t){return{point:t,position:100*(t-e.min)/(e.max-e.min),mark:e.marks[t]}}))},minValue:function(){return Math.min(this.firstValue,this.secondValue)},maxValue:function(){return Math.max(this.firstValue,this.secondValue)},barSize:function(){return this.range?100*(this.maxValue-this.minValue)/(this.max-this.min)+"%":100*(this.firstValue-this.min)/(this.max-this.min)+"%"},barStart:function(){return this.range?100*(this.minValue-this.min)/(this.max-this.min)+"%":"0%"},precision:function(){var e=[this.min,this.max,this.step].map((function(e){var t=(""+e).split(".")[1];return t?t.length:0}));return Math.max.apply(null,e)},runwayStyle:function(){return this.vertical?{height:this.height}:{}},barStyle:function(){return this.vertical?{height:this.barSize,bottom:this.barStart}:{width:this.barSize,left:this.barStart}},sliderDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},mounted:function(){var e=void 0;this.range?(Array.isArray(this.value)?(this.firstValue=Math.max(this.min,this.value[0]),this.secondValue=Math.min(this.max,this.value[1])):(this.firstValue=this.min,this.secondValue=this.max),this.oldValue=[this.firstValue,this.secondValue],e=this.firstValue+"-"+this.secondValue):("number"!==typeof this.value||isNaN(this.value)?this.firstValue=this.min:this.firstValue=Math.min(this.max,Math.max(this.min,this.value)),this.oldValue=this.firstValue,e=this.firstValue),this.$el.setAttribute("aria-valuetext",e),this.$el.setAttribute("aria-label",this.label?this.label:"slider between "+this.min+" and "+this.max),this.resetSize(),window.addEventListener("resize",this.resetSize)},beforeDestroy:function(){window.removeEventListener("resize",this.resetSize)}},cu=lu,uu=s(cu,Xc,Zc,!1,null,null,null);uu.options.__file="packages/slider/src/main.vue";var du=uu.exports;du.install=function(e){e.component(du.name,du)};var hu=du,pu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"el-loading-spinner"},[e.spinner?n("i",{class:e.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?n("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])},fu=[];pu._withStripped=!0;var gu={data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave:function(){this.$emit("after-leave")},setText:function(e){this.text=e}}},mu=gu,vu=s(mu,pu,fu,!1,null,null,null);vu.options.__file="packages/loading/src/loading.vue";var _u=vu.exports,yu=n(32),bu=n.n(yu),Su=Ui.a.extend(_u),Eu={install:function(e){if(!e.prototype.$isServer){var t=function(t,i){i.value?e.nextTick((function(){i.modifiers.fullscreen?(t.originalPosition=Object(Be["getStyle"])(document.body,"position"),t.originalOverflow=Object(Be["getStyle"])(document.body,"overflow"),t.maskStyle.zIndex=C["PopupManager"].nextZIndex(),Object(Be["addClass"])(t.mask,"is-fullscreen"),n(document.body,t,i)):(Object(Be["removeClass"])(t.mask,"is-fullscreen"),i.modifiers.body?(t.originalPosition=Object(Be["getStyle"])(document.body,"position"),["top","left"].forEach((function(e){var n="top"===e?"scrollTop":"scrollLeft";t.maskStyle[e]=t.getBoundingClientRect()[e]+document.body[n]+document.documentElement[n]-parseInt(Object(Be["getStyle"])(document.body,"margin-"+e),10)+"px"})),["height","width"].forEach((function(e){t.maskStyle[e]=t.getBoundingClientRect()[e]+"px"})),n(document.body,t,i)):(t.originalPosition=Object(Be["getStyle"])(t,"position"),n(t,t,i)))})):(bu()(t.instance,(function(e){if(t.instance.hiding){t.domVisible=!1;var n=i.modifiers.fullscreen||i.modifiers.body?document.body:t;Object(Be["removeClass"])(n,"el-loading-parent--relative"),Object(Be["removeClass"])(n,"el-loading-parent--hidden"),t.instance.hiding=!1}}),300,!0),t.instance.visible=!1,t.instance.hiding=!0)},n=function(t,n,i){n.domVisible||"none"===Object(Be["getStyle"])(n,"display")||"hidden"===Object(Be["getStyle"])(n,"visibility")?n.domVisible&&!0===n.instance.hiding&&(n.instance.visible=!0,n.instance.hiding=!1):(Object.keys(n.maskStyle).forEach((function(e){n.mask.style[e]=n.maskStyle[e]})),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&Object(Be["addClass"])(t,"el-loading-parent--relative"),i.modifiers.fullscreen&&i.modifiers.lock&&Object(Be["addClass"])(t,"el-loading-parent--hidden"),n.domVisible=!0,t.appendChild(n.mask),e.nextTick((function(){n.instance.hiding?n.instance.$emit("after-leave"):n.instance.visible=!0})),n.domInserted=!0)};e.directive("loading",{bind:function(e,n,i){var r=e.getAttribute("element-loading-text"),o=e.getAttribute("element-loading-spinner"),a=e.getAttribute("element-loading-background"),s=e.getAttribute("element-loading-custom-class"),l=i.context,c=new Su({el:document.createElement("div"),data:{text:l&&l[r]||r,spinner:l&&l[o]||o,background:l&&l[a]||a,customClass:l&&l[s]||s,fullscreen:!!n.modifiers.fullscreen}});e.instance=c,e.mask=c.$el,e.maskStyle={},n.value&&t(e,n)},update:function(e,n){e.instance.setText(e.getAttribute("element-loading-text")),n.oldValue!==n.value&&t(e,n)},unbind:function(e,n){e.domInserted&&(e.mask&&e.mask.parentNode&&e.mask.parentNode.removeChild(e.mask),t(e,{value:!1,modifiers:n.modifiers})),e.instance&&e.instance.$destroy()}})}}},Cu=Eu,xu=Ui.a.extend(_u),wu={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},Tu=void 0;xu.prototype.originalPosition="",xu.prototype.originalOverflow="",xu.prototype.close=function(){var e=this;this.fullscreen&&(Tu=void 0),bu()(this,(function(t){var n=e.fullscreen||e.body?document.body:e.target;Object(Be["removeClass"])(n,"el-loading-parent--relative"),Object(Be["removeClass"])(n,"el-loading-parent--hidden"),e.$el&&e.$el.parentNode&&e.$el.parentNode.removeChild(e.$el),e.$destroy()}),300),this.visible=!1};var Au=function(e,t,n){var i={};e.fullscreen?(n.originalPosition=Object(Be["getStyle"])(document.body,"position"),n.originalOverflow=Object(Be["getStyle"])(document.body,"overflow"),i.zIndex=C["PopupManager"].nextZIndex()):e.body?(n.originalPosition=Object(Be["getStyle"])(document.body,"position"),["top","left"].forEach((function(t){var n="top"===t?"scrollTop":"scrollLeft";i[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]+"px"})),["height","width"].forEach((function(t){i[t]=e.target.getBoundingClientRect()[t]+"px"}))):n.originalPosition=Object(Be["getStyle"])(t,"position"),Object.keys(i).forEach((function(e){n.$el.style[e]=i[e]}))},Ou=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ui.a.prototype.$isServer){if(e=wt()({},wu,e),"string"===typeof e.target&&(e.target=document.querySelector(e.target)),e.target=e.target||document.body,e.target!==document.body?e.fullscreen=!1:e.body=!0,e.fullscreen&&Tu)return Tu;var t=e.body?document.body:e.target,n=new xu({el:document.createElement("div"),data:e});return Au(e,t,n),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&Object(Be["addClass"])(t,"el-loading-parent--relative"),e.fullscreen&&e.lock&&Object(Be["addClass"])(t,"el-loading-parent--hidden"),t.appendChild(n.$el),Ui.a.nextTick((function(){n.visible=!0})),e.fullscreen&&(Tu=n),n}},Ru=Ou,Nu={install:function(e){e.use(Cu),e.prototype.$loading=Ru},directive:Cu,service:Ru},Du=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("i",{class:"el-icon-"+e.name})},Iu=[];Du._withStripped=!0;var Mu={name:"ElIcon",props:{name:String}},ku=Mu,Lu=s(ku,Du,Iu,!1,null,null,null);Lu.options.__file="packages/icon/src/icon.vue";var Pu=Lu.exports;Pu.install=function(e){e.component(Pu.name,Pu)};var Fu=Pu,Bu={name:"ElRow",componentName:"ElRow",props:{tag:{type:String,default:"div"},gutter:Number,type:String,justify:{type:String,default:"start"},align:{type:String,default:"top"}},computed:{style:function(){var e={};return this.gutter&&(e.marginLeft="-"+this.gutter/2+"px",e.marginRight=e.marginLeft),e}},render:function(e){return e(this.tag,{class:["el-row","start"!==this.justify?"is-justify-"+this.justify:"","top"!==this.align?"is-align-"+this.align:"",{"el-row--flex":"flex"===this.type}],style:this.style},this.$slots.default)},install:function(e){e.component(Bu.name,Bu)}},$u=Bu,Vu="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gu={name:"ElCol",props:{span:{type:Number,default:24},tag:{type:String,default:"div"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{gutter:function(){var e=this.$parent;while(e&&"ElRow"!==e.$options.componentName)e=e.$parent;return e?e.gutter:0}},render:function(e){var t=this,n=[],i={};return this.gutter&&(i.paddingLeft=this.gutter/2+"px",i.paddingRight=i.paddingLeft),["span","offset","pull","push"].forEach((function(e){(t[e]||0===t[e])&&n.push("span"!==e?"el-col-"+e+"-"+t[e]:"el-col-"+t[e])})),["xs","sm","md","lg","xl"].forEach((function(e){if("number"===typeof t[e])n.push("el-col-"+e+"-"+t[e]);else if("object"===Vu(t[e])){var i=t[e];Object.keys(i).forEach((function(t){n.push("span"!==t?"el-col-"+e+"-"+t+"-"+i[t]:"el-col-"+e+"-"+i[t])}))}})),e(this.tag,{class:["el-col",n],style:i},this.$slots.default)},install:function(e){e.component(Gu.name,Gu)}},Uu=Gu,zu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition-group",{class:["el-upload-list","el-upload-list--"+e.listType,{"is-disabled":e.disabled}],attrs:{tag:"ul",name:"el-list"}},e._l(e.files,(function(t){return n("li",{key:t.uid,class:["el-upload-list__item","is-"+t.status,e.focusing?"focusing":""],attrs:{tabindex:"0"},on:{keydown:function(n){if(!("button"in n)&&e._k(n.keyCode,"delete",[8,46],n.key,["Backspace","Delete","Del"]))return null;!e.disabled&&e.$emit("remove",t)},focus:function(t){e.focusing=!0},blur:function(t){e.focusing=!1},click:function(t){e.focusing=!1}}},[e._t("default",["uploading"!==t.status&&["picture-card","picture"].indexOf(e.listType)>-1?n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:t.url,alt:""}}):e._e(),n("a",{staticClass:"el-upload-list__item-name",on:{click:function(n){e.handleClick(t)}}},[n("i",{staticClass:"el-icon-document"}),e._v(e._s(t.name)+"\n ")]),n("label",{staticClass:"el-upload-list__item-status-label"},[n("i",{class:{"el-icon-upload-success":!0,"el-icon-circle-check":"text"===e.listType,"el-icon-check":["picture-card","picture"].indexOf(e.listType)>-1}})]),e.disabled?e._e():n("i",{staticClass:"el-icon-close",on:{click:function(n){e.$emit("remove",t)}}}),e.disabled?e._e():n("i",{staticClass:"el-icon-close-tip"},[e._v(e._s(e.t("el.upload.deleteTip")))]),"uploading"===t.status?n("el-progress",{attrs:{type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:e.parsePercentage(t.percentage)}}):e._e(),"picture-card"===e.listType?n("span",{staticClass:"el-upload-list__item-actions"},[e.handlePreview&&"picture-card"===e.listType?n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(n){e.handlePreview(t)}}},[n("i",{staticClass:"el-icon-zoom-in"})]):e._e(),e.disabled?e._e():n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(n){e.$emit("remove",t)}}},[n("i",{staticClass:"el-icon-delete"})])]):e._e()],{file:t})],2)})),0)},ju=[];zu._withStripped=!0;var Hu=n(33),Wu=n.n(Hu),Yu={name:"ElUploadList",mixins:[v.a],data:function(){return{focusing:!1}},components:{ElProgress:Wu.a},props:{files:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},handlePreview:Function,listType:String},methods:{parsePercentage:function(e){return parseInt(e,10)},handleClick:function(e){this.handlePreview&&this.handlePreview(e)}}},qu=Yu,Ku=s(qu,zu,ju,!1,null,null,null);Ku.options.__file="packages/upload/src/upload-list.vue";var Qu=Ku.exports,Xu=n(24),Zu=n.n(Xu);function Ju(e,t,n){var i=void 0;i=n.response?""+(n.response.error||n.response):n.responseText?""+n.responseText:"fail to post "+e+" "+n.status;var r=new Error(i);return r.status=n.status,r.method="post",r.url=e,r}function ed(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function td(e){if("undefined"!==typeof XMLHttpRequest){var t=new XMLHttpRequest,n=e.action;t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var i=new FormData;e.data&&Object.keys(e.data).forEach((function(t){i.append(t,e.data[t])})),i.append(e.filename,e.file,e.file.name),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300)return e.onError(Ju(n,e,t));e.onSuccess(ed(t))},t.open("post",n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};for(var o in r)r.hasOwnProperty(o)&&null!==r[o]&&t.setRequestHeader(o,r[o]);return t.send(i),t}}var nd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-upload-dragger",class:{"is-dragover":e.dragover},on:{drop:function(t){return t.preventDefault(),e.onDrop(t)},dragover:function(t){return t.preventDefault(),e.onDragover(t)},dragleave:function(t){t.preventDefault(),e.dragover=!1}}},[e._t("default")],2)},id=[];nd._withStripped=!0;var rd={name:"ElUploadDrag",props:{disabled:Boolean},inject:{uploader:{default:""}},data:function(){return{dragover:!1}},methods:{onDragover:function(){this.disabled||(this.dragover=!0)},onDrop:function(e){if(!this.disabled&&this.uploader){var t=this.uploader.accept;this.dragover=!1,t?this.$emit("file",[].slice.call(e.dataTransfer.files).filter((function(e){var n=e.type,i=e.name,r=i.indexOf(".")>-1?"."+i.split(".").pop():"",o=n.replace(/\/.*$/,"");return t.split(",").map((function(e){return e.trim()})).filter((function(e){return e})).some((function(e){return/\..+$/.test(e)?r===e:/\/\*$/.test(e)?o===e.replace(/\/\*$/,""):!!/^[^\/]+\/[^\/]+$/.test(e)&&n===e}))}))):this.$emit("file",e.dataTransfer.files)}}}},od=rd,ad=s(od,nd,id,!1,null,null,null);ad.options.__file="packages/upload/src/upload-dragger.vue";var sd,ld,cd=ad.exports,ud={inject:["uploader"],components:{UploadDragger:cd},props:{type:String,action:{type:String,required:!0},name:{type:String,default:"file"},data:Object,headers:Object,withCredentials:Boolean,multiple:Boolean,accept:String,onStart:Function,onProgress:Function,onSuccess:Function,onError:Function,beforeUpload:Function,drag:Boolean,onPreview:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},fileList:Array,autoUpload:Boolean,listType:String,httpRequest:{type:Function,default:td},disabled:Boolean,limit:Number,onExceed:Function},data:function(){return{mouseover:!1,reqs:{}}},methods:{isImage:function(e){return-1!==e.indexOf("image")},handleChange:function(e){var t=e.target.files;t&&this.uploadFiles(t)},uploadFiles:function(e){var t=this;if(this.limit&&this.fileList.length+e.length>this.limit)this.onExceed&&this.onExceed(e,this.fileList);else{var n=Array.prototype.slice.call(e);this.multiple||(n=n.slice(0,1)),0!==n.length&&n.forEach((function(e){t.onStart(e),t.autoUpload&&t.upload(e)}))}},upload:function(e){var t=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(e);var n=this.beforeUpload(e);n&&n.then?n.then((function(n){var i=Object.prototype.toString.call(n);if("[object File]"===i||"[object Blob]"===i){for(var r in"[object Blob]"===i&&(n=new File([n],e.name,{type:e.type})),e)e.hasOwnProperty(r)&&(n[r]=e[r]);t.post(n)}else t.post(e)}),(function(){t.onRemove(null,e)})):!1!==n?this.post(e):this.onRemove(null,e)},abort:function(e){var t=this.reqs;if(e){var n=e;e.uid&&(n=e.uid),t[n]&&t[n].abort()}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort(),delete t[e]}))},post:function(e){var t=this,n=e.uid,i={headers:this.headers,withCredentials:this.withCredentials,file:e,data:this.data,filename:this.name,action:this.action,onProgress:function(n){t.onProgress(n,e)},onSuccess:function(i){t.onSuccess(i,e),delete t.reqs[n]},onError:function(i){t.onError(i,e),delete t.reqs[n]}},r=this.httpRequest(i);this.reqs[n]=r,r&&r.then&&r.then(i.onSuccess,i.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(e){e.target===e.currentTarget&&(13!==e.keyCode&&32!==e.keyCode||this.handleClick())}},render:function(e){var t=this.handleClick,n=this.drag,i=this.name,r=this.handleChange,o=this.multiple,a=this.accept,s=this.listType,l=this.uploadFiles,c=this.disabled,u=this.handleKeydown,d={class:{"el-upload":!0},on:{click:t,keydown:u}};return d.class["el-upload--"+s]=!0,e("div",Zu()([d,{attrs:{tabindex:"0"}}]),[n?e("upload-dragger",{attrs:{disabled:c},on:{file:l}},[this.$slots.default]):this.$slots.default,e("input",{class:"el-upload__input",attrs:{type:"file",name:i,multiple:o,accept:a},ref:"input",on:{change:r}})])}},dd=ud,hd=s(dd,sd,ld,!1,null,null,null);hd.options.__file="packages/upload/src/upload.vue";var pd=hd.exports;function fd(){}var gd,md,vd={name:"ElUpload",mixins:[T.a],components:{ElProgress:Wu.a,UploadList:Qu,Upload:pd},provide:function(){return{uploader:this}},inject:{elForm:{default:""}},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},data:Object,multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,dragger:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:String,type:{type:String,default:"select"},beforeUpload:Function,beforeRemove:Function,onRemove:{type:Function,default:fd},onChange:{type:Function,default:fd},onPreview:{type:Function},onSuccess:{type:Function,default:fd},onProgress:{type:Function,default:fd},onError:{type:Function,default:fd},fileList:{type:Array,default:function(){return[]}},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:"text"},httpRequest:Function,disabled:Boolean,limit:Number,onExceed:{type:Function,default:fd}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(e){"picture-card"!==e&&"picture"!==e||(this.uploadFiles=this.uploadFiles.map((function(e){if(!e.url&&e.raw)try{e.url=URL.createObjectURL(e.raw)}catch(t){console.error("[Element Error][Upload]",t)}return e})))},fileList:{immediate:!0,handler:function(e){var t=this;this.uploadFiles=e.map((function(e){return e.uid=e.uid||Date.now()+t.tempIndex++,e.status=e.status||"success",e}))}}},methods:{handleStart:function(e){e.uid=Date.now()+this.tempIndex++;var t={status:"ready",name:e.name,size:e.size,percentage:0,uid:e.uid,raw:e};if("picture-card"===this.listType||"picture"===this.listType)try{t.url=URL.createObjectURL(e)}catch(n){return void console.error("[Element Error][Upload]",n)}this.uploadFiles.push(t),this.onChange(t,this.uploadFiles)},handleProgress:function(e,t){var n=this.getFile(t);this.onProgress(e,n,this.uploadFiles),n.status="uploading",n.percentage=e.percent||0},handleSuccess:function(e,t){var n=this.getFile(t);n&&(n.status="success",n.response=e,this.onSuccess(e,n,this.uploadFiles),this.onChange(n,this.uploadFiles))},handleError:function(e,t){var n=this.getFile(t),i=this.uploadFiles;n.status="fail",i.splice(i.indexOf(n),1),this.onError(e,n,this.uploadFiles),this.onChange(n,this.uploadFiles)},handleRemove:function(e,t){var n=this;t&&(e=this.getFile(t));var i=function(){n.abort(e);var t=n.uploadFiles;t.splice(t.indexOf(e),1),n.onRemove(e,t)};if(this.beforeRemove){if("function"===typeof this.beforeRemove){var r=this.beforeRemove(e,this.uploadFiles);r&&r.then?r.then((function(){i()}),fd):!1!==r&&i()}}else i()},getFile:function(e){var t=this.uploadFiles,n=void 0;return t.every((function(t){return n=e.uid===t.uid?t:null,!n})),n},abort:function(e){this.$refs["upload-inner"].abort(e)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var e=this;this.uploadFiles.filter((function(e){return"ready"===e.status})).forEach((function(t){e.$refs["upload-inner"].upload(t.raw)}))},getMigratingConfig:function(){return{props:{"default-file-list":"default-file-list is renamed to file-list.","show-upload-list":"show-upload-list is renamed to show-file-list.","thumbnail-mode":"thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan"}}}},beforeDestroy:function(){this.uploadFiles.forEach((function(e){e.url&&0===e.url.indexOf("blob:")&&URL.revokeObjectURL(e.url)}))},render:function(e){var t=this,n=void 0;this.showFileList&&(n=e(Qu,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(e){if(t.$scopedSlots.file)return t.$scopedSlots.file({file:e.file})}]));var i={props:{type:this.type,drag:this.drag,action:this.action,multiple:this.multiple,"before-upload":this.beforeUpload,"with-credentials":this.withCredentials,headers:this.headers,name:this.name,data:this.data,accept:this.accept,fileList:this.uploadFiles,autoUpload:this.autoUpload,listType:this.listType,disabled:this.uploadDisabled,limit:this.limit,"on-exceed":this.onExceed,"on-start":this.handleStart,"on-progress":this.handleProgress,"on-success":this.handleSuccess,"on-error":this.handleError,"on-preview":this.onPreview,"on-remove":this.handleRemove,"http-request":this.httpRequest},ref:"upload-inner"},r=this.$slots.trigger||this.$slots.default,o=e("upload",i,[r]);return e("div",["picture-card"===this.listType?n:"",this.$slots.trigger?[o,this.$slots.default]:o,this.$slots.tip,"picture-card"!==this.listType?n:""])}},_d=vd,yd=s(_d,gd,md,!1,null,null,null);yd.options.__file="packages/upload/src/index.vue";var bd=yd.exports;bd.install=function(e){e.component(bd.name,bd)};var Sd=bd,Ed=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px"}},[n("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?n("div",{staticClass:"el-progress-bar__innerText"},[e._v(e._s(e.content))]):e._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:"#e5e9f2","stroke-width":e.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e.showText&&!e.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px"}},[e.status?n("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])},Cd=[];Ed._withStripped=!0;var xd={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(e){return["line","circle","dashboard"].indexOf(e)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(e){return e>=0&&e<=100}},status:{type:String,validator:function(e){return["success","exception","warning"].indexOf(e)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle:function(){var e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var e=this.radius,t="dashboard"===this.type;return"\n M 50 50\n m 0 "+(t?"":"-")+e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"-":"")+2*e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"":"-")+2*e+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){var e=-1*this.perimeter*(1-this.rate)/2;return e+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var e=void 0;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"===typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(e){return"function"===typeof this.color?this.color(e):"string"===typeof this.color?this.color:this.getLevelColor(e)},getLevelColor:function(e){for(var t=this.getColorArray().sort((function(e,t){return e.percentage-t.percentage})),n=0;ne)return t[n].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,t=100/e.length;return e.map((function(e,n){return"string"===typeof e?{color:e,percentage:(n+1)*t}:e}))}}},wd=xd,Td=s(wd,Ed,Cd,!1,null,null,null);Td.options.__file="packages/progress/src/progress.vue";var Ad=Td.exports;Ad.install=function(e){e.component(Ad.name,Ad)};var Od=Ad,Rd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"el-spinner"},[n("svg",{staticClass:"el-spinner-inner",style:{width:e.radius/2+"px",height:e.radius/2+"px"},attrs:{viewBox:"0 0 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:e.strokeColor,"stroke-width":e.strokeWidth}})])])},Nd=[];Rd._withStripped=!0;var Dd={name:"ElSpinner",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:"#efefef"}}},Id=Dd,Md=s(Id,Rd,Nd,!1,null,null,null);Md.options.__file="packages/spinner/src/spinner.vue";var kd=Md.exports;kd.install=function(e){e.component(kd.name,kd)};var Ld=kd,Pd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-message",e.type&&!e.iconClass?"el-message--"+e.type:"",e.center?"is-center":"",e.showClose?"is-closable":"",e.customClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:e.clearTimer,mouseleave:e.startTimer}},[e.iconClass?n("i",{class:e.iconClass}):n("i",{class:e.typeClass}),e._t("default",[e.dangerouslyUseHTMLString?n("p",{staticClass:"el-message__content",domProps:{innerHTML:e._s(e.message)}}):n("p",{staticClass:"el-message__content"},[e._v(e._s(e.message))])]),e.showClose?n("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:e.close}}):e._e()],2)])},Fd=[];Pd._withStripped=!0;var Bd={success:"success",info:"info",warning:"warning",error:"error"},$d={data:function(){return{visible:!1,message:"",duration:3e3,type:"info",iconClass:"",customClass:"",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?"el-message__icon el-icon-"+Bd[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(e){e&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration))},keydown:function(e){27===e.keyCode&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},Vd=$d,Gd=s(Vd,Pd,Fd,!1,null,null,null);Gd.options.__file="packages/message/src/main.vue";var Ud=Gd.exports,zd=Ui.a.extend(Ud),jd=void 0,Hd=[],Wd=1,Yd=function e(t){if(!Ui.a.prototype.$isServer){t=t||{},"string"===typeof t&&(t={message:t});var n=t.onClose,i="message_"+Wd++;t.onClose=function(){e.close(i,n)},jd=new zd({data:t}),jd.id=i,Object(xs["isVNode"])(jd.message)&&(jd.$slots.default=[jd.message],jd.message=null),jd.$mount(),document.body.appendChild(jd.$el);var r=t.offset||20;return Hd.forEach((function(e){r+=e.$el.offsetHeight+16})),jd.verticalOffset=r,jd.visible=!0,jd.$el.style.zIndex=C["PopupManager"].nextZIndex(),Hd.push(jd),jd}};["success","warning","info","error"].forEach((function(e){Yd[e]=function(t){return"string"===typeof t&&(t={message:t}),t.type=e,Yd(t)}})),Yd.close=function(e,t){for(var n=Hd.length,i=-1,r=void 0,o=0;oHd.length-1))for(var a=i;a=0;e--)Hd[e].close()};var qd=Yd,Kd=qd,Qd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-badge"},[e._t("default"),n("transition",{attrs:{name:"el-zoom-in-center"}},[n("sup",{directives:[{name:"show",rawName:"v-show",value:!e.hidden&&(e.content||0===e.content||e.isDot),expression:"!hidden && (content || content === 0 || isDot)"}],staticClass:"el-badge__content",class:["el-badge__content--"+e.type,{"is-fixed":e.$slots.default,"is-dot":e.isDot}],domProps:{textContent:e._s(e.content)}})])],2)},Xd=[];Qd._withStripped=!0;var Zd={name:"ElBadge",props:{value:[String,Number],max:Number,isDot:Boolean,hidden:Boolean,type:{type:String,validator:function(e){return["primary","success","warning","info","danger"].indexOf(e)>-1}}},computed:{content:function(){if(!this.isDot){var e=this.value,t=this.max;return"number"===typeof e&&"number"===typeof t&&t0&&e-1this.value,n=this.allowHalf&&this.pointerAtLeftHalf&&e-.5<=this.currentValue&&e>this.currentValue;return t||n},getIconStyle:function(e){var t=this.rateDisabled?this.disabledVoidColor:this.voidColor;return{color:e<=this.currentValue?this.activeColor:t}},selectValue:function(e){this.rateDisabled||(this.allowHalf&&this.pointerAtLeftHalf?(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)):(this.$emit("input",e),this.$emit("change",e)))},handleKey:function(e){if(!this.rateDisabled){var t=this.currentValue,n=e.keyCode;38===n||39===n?(this.allowHalf?t+=.5:t+=1,e.stopPropagation(),e.preventDefault()):37!==n&&40!==n||(this.allowHalf?t-=.5:t-=1,e.stopPropagation(),e.preventDefault()),t=t<0?0:t,t=t>this.max?this.max:t,this.$emit("input",t),this.$emit("change",t)}},setCurrentValue:function(e,t){if(!this.rateDisabled){if(this.allowHalf){var n=t.target;Object(Be["hasClass"])(n,"el-rate__item")&&(n=n.querySelector(".el-rate__icon")),Object(Be["hasClass"])(n,"el-rate__decimal")&&(n=n.parentNode),this.pointerAtLeftHalf=2*t.offsetX<=n.clientWidth,this.currentValue=this.pointerAtLeftHalf?e-.5:e}else this.currentValue=e;this.hoverIndex=e}},resetCurrentValue:function(){this.rateDisabled||(this.allowHalf&&(this.pointerAtLeftHalf=this.value!==Math.floor(this.value)),this.currentValue=this.value,this.hoverIndex=-1)}},created:function(){this.value||this.$emit("input",0)}},fh=ph,gh=s(fh,uh,dh,!1,null,null,null);gh.options.__file="packages/rate/src/main.vue";var mh=gh.exports;mh.install=function(e){e.component(mh.name,mh)};var vh=mh,_h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-steps",class:[!e.simple&&"el-steps--"+e.direction,e.simple&&"el-steps--simple"]},[e._t("default")],2)},yh=[];_h._withStripped=!0;var bh={name:"ElSteps",mixins:[T.a],props:{space:[Number,String],active:Number,direction:{type:String,default:"horizontal"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish"},processStatus:{type:String,default:"process"}},data:function(){return{steps:[],stepOffset:0}},methods:{getMigratingConfig:function(){return{props:{center:"center is removed."}}}},watch:{active:function(e,t){this.$emit("change",e,t)},steps:function(e){e.forEach((function(e,t){e.index=t}))}}},Sh=bh,Eh=s(Sh,_h,yh,!1,null,null,null);Eh.options.__file="packages/steps/src/steps.vue";var Ch=Eh.exports;Ch.install=function(e){e.component(Ch.name,Ch)};var xh=Ch,wh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-step",class:[!e.isSimple&&"is-"+e.$parent.direction,e.isSimple&&"is-simple",e.isLast&&!e.space&&!e.isCenter&&"is-flex",e.isCenter&&!e.isVertical&&!e.isSimple&&"is-center"],style:e.style},[n("div",{staticClass:"el-step__head",class:"is-"+e.currentStatus},[n("div",{staticClass:"el-step__line",style:e.isLast?"":{marginRight:e.$parent.stepOffset+"px"}},[n("i",{staticClass:"el-step__line-inner",style:e.lineStyle})]),n("div",{staticClass:"el-step__icon",class:"is-"+(e.icon?"icon":"text")},["success"!==e.currentStatus&&"error"!==e.currentStatus?e._t("icon",[e.icon?n("i",{staticClass:"el-step__icon-inner",class:[e.icon]}):e._e(),e.icon||e.isSimple?e._e():n("div",{staticClass:"el-step__icon-inner"},[e._v(e._s(e.index+1))])]):n("i",{staticClass:"el-step__icon-inner is-status",class:["el-icon-"+("success"===e.currentStatus?"check":"close")]})],2)]),n("div",{staticClass:"el-step__main"},[n("div",{ref:"title",staticClass:"el-step__title",class:["is-"+e.currentStatus]},[e._t("title",[e._v(e._s(e.title))])],2),e.isSimple?n("div",{staticClass:"el-step__arrow"}):n("div",{staticClass:"el-step__description",class:["is-"+e.currentStatus]},[e._t("description",[e._v(e._s(e.description))])],2)])])},Th=[];wh._withStripped=!0;var Ah={name:"ElStep",props:{title:String,icon:String,description:String,status:String},data:function(){return{index:-1,lineStyle:{},internalStatus:""}},beforeCreate:function(){this.$parent.steps.push(this)},beforeDestroy:function(){var e=this.$parent.steps,t=e.indexOf(this);t>=0&&e.splice(t,1)},computed:{currentStatus:function(){return this.status||this.internalStatus},prevStatus:function(){var e=this.$parent.steps[this.index-1];return e?e.currentStatus:"wait"},isCenter:function(){return this.$parent.alignCenter},isVertical:function(){return"vertical"===this.$parent.direction},isSimple:function(){return this.$parent.simple},isLast:function(){var e=this.$parent;return e.steps[e.steps.length-1]===this},stepsCount:function(){return this.$parent.steps.length},space:function(){var e=this.isSimple,t=this.$parent.space;return e?"":t},style:function(){var e={},t=this.$parent,n=t.steps.length,i="number"===typeof this.space?this.space+"px":this.space?this.space:100/(n-(this.isCenter?0:1))+"%";return e.flexBasis=i,this.isVertical?e:(this.isLast?e.maxWidth=100/this.stepsCount+"%":e.marginRight=-this.$parent.stepOffset+"px",e)}},methods:{updateStatus:function(e){var t=this.$parent.$children[this.index-1];e>this.index?this.internalStatus=this.$parent.finishStatus:e===this.index&&"error"!==this.prevStatus?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait",t&&t.calcProgress(this.internalStatus)},calcProgress:function(e){var t=100,n={};n.transitionDelay=150*this.index+"ms",e===this.$parent.processStatus?(this.currentStatus,t=0):"wait"===e&&(t=0,n.transitionDelay=-150*this.index+"ms"),n.borderWidth=t&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?n.height=t+"%":n.width=t+"%",this.lineStyle=n}},mounted:function(){var e=this,t=this.$watch("index",(function(n){e.$watch("$parent.active",e.updateStatus,{immediate:!0}),e.$watch("$parent.processStatus",(function(){var t=e.$parent.active;e.updateStatus(t)}),{immediate:!0}),t()}))}},Oh=Ah,Rh=s(Oh,wh,Th,!1,null,null,null);Rh.options.__file="packages/steps/src/step.vue";var Nh=Rh.exports;Nh.install=function(e){e.component(Nh.name,Nh)};var Dh=Nh,Ih=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.carouselClasses,on:{mouseenter:function(t){return t.stopPropagation(),e.handleMouseEnter(t)},mouseleave:function(t){return t.stopPropagation(),e.handleMouseLeave(t)}}},[n("div",{staticClass:"el-carousel__container",style:{height:e.height}},[e.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-left"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===e.arrow||e.hover)&&(e.loop||e.activeIndex>0),expression:"(arrow === 'always' || hover) && (loop || activeIndex > 0)"}],staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{type:"button"},on:{mouseenter:function(t){e.handleButtonEnter("left")},mouseleave:e.handleButtonLeave,click:function(t){t.stopPropagation(),e.throttledArrowClick(e.activeIndex-1)}}},[n("i",{staticClass:"el-icon-arrow-left"})])]):e._e(),e.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-right"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===e.arrow||e.hover)&&(e.loop||e.activeIndex0}))},carouselClasses:function(){var e=["el-carousel","el-carousel--"+this.direction];return"card"===this.type&&e.push("el-carousel--card"),e},indicatorsClasses:function(){var e=["el-carousel__indicators","el-carousel__indicators--"+this.direction];return this.hasLabel&&e.push("el-carousel__indicators--labels"),"outside"!==this.indicatorPosition&&"card"!==this.type||e.push("el-carousel__indicators--outside"),e}},watch:{items:function(e){e.length>0&&this.setActiveItem(this.initialIndex)},activeIndex:function(e,t){this.resetItemPosition(t),t>-1&&this.$emit("change",e,t)},autoplay:function(e){e?this.startTimer():this.pauseTimer()},loop:function(){this.setActiveItem(this.activeIndex)}},methods:{handleMouseEnter:function(){this.hover=!0,this.pauseTimer()},handleMouseLeave:function(){this.hover=!1,this.startTimer()},itemInStage:function(e,t){var n=this.items.length;return t===n-1&&e.inStage&&this.items[0].active||e.inStage&&this.items[t+1]&&this.items[t+1].active?"left":!!(0===t&&e.inStage&&this.items[n-1].active||e.inStage&&this.items[t-1]&&this.items[t-1].active)&&"right"},handleButtonEnter:function(e){var t=this;"vertical"!==this.direction&&this.items.forEach((function(n,i){e===t.itemInStage(n,i)&&(n.hover=!0)}))},handleButtonLeave:function(){"vertical"!==this.direction&&this.items.forEach((function(e){e.hover=!1}))},updateItems:function(){this.items=this.$children.filter((function(e){return"ElCarouselItem"===e.$options.name}))},resetItemPosition:function(e){var t=this;this.items.forEach((function(n,i){n.translateItem(i,t.activeIndex,e)}))},playSlides:function(){this.activeIndex0&&(e=this.items.indexOf(t[0]))}if(e=Number(e),isNaN(e)||e!==Math.floor(e))console.warn("[Element Warn][Carousel]index must be an integer.");else{var n=this.items.length,i=this.activeIndex;this.activeIndex=e<0?this.loop?n-1:0:e>=n?this.loop?0:n-1:e,i===this.activeIndex&&this.resetItemPosition(i)}},prev:function(){this.setActiveItem(this.activeIndex-1)},next:function(){this.setActiveItem(this.activeIndex+1)},handleIndicatorClick:function(e){this.activeIndex=e},handleIndicatorHover:function(e){"hover"===this.trigger&&e!==this.activeIndex&&(this.activeIndex=e)}},created:function(){var e=this;this.throttledArrowClick=Lh()(300,!0,(function(t){e.setActiveItem(t)})),this.throttledIndicatorHover=Lh()(300,(function(t){e.handleIndicatorHover(t)}))},mounted:function(){var e=this;this.updateItems(),this.$nextTick((function(){Object(ei["addResizeListener"])(e.$el,e.resetItemPosition),e.initialIndex=0&&(e.activeIndex=e.initialIndex),e.startTimer()}))},beforeDestroy:function(){this.$el&&Object(ei["removeResizeListener"])(this.$el,this.resetItemPosition),this.pauseTimer()}},Fh=Ph,Bh=s(Fh,Ih,Mh,!1,null,null,null);Bh.options.__file="packages/carousel/src/main.vue";var $h=Bh.exports;$h.install=function(e){e.component($h.name,$h)};var Vh=$h,Gh={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function Uh(e){var t=e.move,n=e.size,i=e.bar,r={},o="translate"+i.axis+"("+t+"%)";return r[i.size]=n,r.transform=o,r.msTransform=o,r.webkitTransform=o,r}var zh={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return Gh[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,i=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+i.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:Uh({size:t,move:n,bar:i})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,i=100*(t-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(Be["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(Be["on"])(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),i=this.$refs.thumb[this.bar.offset]-t,r=100*(n-i)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(Be["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(Be["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},jh={name:"ElScrollbar",components:{Bar:zh},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=vr()(),n=this.wrapStyle;if(t){var i="-"+t+"px",r="margin-bottom: "+i+"; margin-right: "+i+";";Array.isArray(this.wrapStyle)?(n=Object(_["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=i):"string"===typeof this.wrapStyle?n+=r:n=r}var o=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),a=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[o]]),s=void 0;return s=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[o]])]:[a,e(zh,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(zh,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},s)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e=void 0,t=void 0,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(ei["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(ei["removeResizeListener"])(this.$refs.resize,this.update)},install:function(e){e.component(jh.name,jh)}},Hh=jh,Wh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.ready,expression:"ready"}],staticClass:"el-carousel__item",class:{"is-active":e.active,"el-carousel__item--card":"card"===e.$parent.type,"is-in-stage":e.inStage,"is-hover":e.hover,"is-animating":e.animating},style:e.itemStyle,on:{click:e.handleItemClick}},["card"===e.$parent.type?n("div",{directives:[{name:"show",rawName:"v-show",value:!e.active,expression:"!active"}],staticClass:"el-carousel__mask"}):e._e(),e._t("default")],2)},Yh=[];Wh._withStripped=!0;var qh=.83,Kh={name:"ElCarouselItem",props:{name:String,label:{type:[String,Number],default:""}},data:function(){return{hover:!1,translate:0,scale:1,active:!1,ready:!1,inStage:!1,animating:!1}},methods:{processIndex:function(e,t,n){return 0===t&&e===n-1?-1:t===n-1&&0===e?n:e=n/2?n+1:e>t+1&&e-t>=n/2?-2:e},calcCardTranslate:function(e,t){var n=this.$parent.$el.offsetWidth;return this.inStage?n*((2-qh)*(e-t)+1)/4:e2&&this.$parent.loop&&(e=this.processIndex(e,t,o)),"card"===i)"vertical"===r&&console.warn("[Element Warn][Carousel]vertical direction is not supported in card mode"),this.inStage=Math.round(Math.abs(e-t))<=1,this.active=e===t,this.translate=this.calcCardTranslate(e,t),this.scale=this.active?1:qh;else{this.active=e===t;var a="vertical"===r;this.translate=this.calcTranslate(e,t,a)}this.ready=!0},handleItemClick:function(){var e=this.$parent;if(e&&"card"===e.type){var t=e.items.indexOf(this);e.setActiveItem(t)}}},computed:{parentDirection:function(){return this.$parent.direction},itemStyle:function(){var e="vertical"===this.parentDirection?"translateY":"translateX",t=e+"("+this.translate+"px) scale("+this.scale+")",n={transform:t};return Object(_["autoprefixer"])(n)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},Qh=Kh,Xh=s(Qh,Wh,Yh,!1,null,null,null);Xh.options.__file="packages/carousel/src/item.vue";var Zh=Xh.exports;Zh.install=function(e){e.component(Zh.name,Zh)};var Jh=Zh,ep=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[e._t("default")],2)},tp=[];ep._withStripped=!0;var np={name:"ElCollapse",componentName:"ElCollapse",props:{accordion:Boolean,value:{type:[Array,String,Number],default:function(){return[]}}},data:function(){return{activeNames:[].concat(this.value)}},provide:function(){return{collapse:this}},watch:{value:function(e){this.activeNames=[].concat(e)}},methods:{setActiveNames:function(e){e=[].concat(e);var t=this.accordion?e[0]:e;this.activeNames=e,this.$emit("input",t),this.$emit("change",t)},handleItemClick:function(e){if(this.accordion)this.setActiveNames(!this.activeNames[0]&&0!==this.activeNames[0]||this.activeNames[0]!==e.name?e.name:"");else{var t=this.activeNames.slice(0),n=t.indexOf(e.name);n>-1?t.splice(n,1):t.push(e.name),this.setActiveNames(t)}}},created:function(){this.$on("item-click",this.handleItemClick)}},ip=np,rp=s(ip,ep,tp,!1,null,null,null);rp.options.__file="packages/collapse/src/collapse.vue";var op=rp.exports;op.install=function(e){e.component(op.name,op)};var ap=op,sp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-collapse-item",class:{"is-active":e.isActive,"is-disabled":e.disabled}},[n("div",{attrs:{role:"tab","aria-expanded":e.isActive,"aria-controls":"el-collapse-content-"+e.id,"aria-describedby":"el-collapse-content-"+e.id}},[n("div",{staticClass:"el-collapse-item__header",class:{focusing:e.focusing,"is-active":e.isActive},attrs:{role:"button",id:"el-collapse-head-"+e.id,tabindex:e.disabled?void 0:0},on:{click:e.handleHeaderClick,keyup:function(t){return"button"in t||!e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])||!e._k(t.keyCode,"enter",13,t.key,"Enter")?(t.stopPropagation(),e.handleEnterClick(t)):null},focus:e.handleFocus,blur:function(t){e.focusing=!1}}},[e._t("title",[e._v(e._s(e.title))]),n("i",{staticClass:"el-collapse-item__arrow el-icon-arrow-right",class:{"is-active":e.isActive}})],2)]),n("el-collapse-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"el-collapse-item__wrap",attrs:{role:"tabpanel","aria-hidden":!e.isActive,"aria-labelledby":"el-collapse-head-"+e.id,id:"el-collapse-content-"+e.id}},[n("div",{staticClass:"el-collapse-item__content"},[e._t("default")],2)])])],1)},lp=[];sp._withStripped=!0;var cp={name:"ElCollapseItem",componentName:"ElCollapseItem",mixins:[O.a],components:{ElCollapseTransition:Ye.a},data:function(){return{contentWrapStyle:{height:"auto",display:"block"},contentHeight:0,focusing:!1,isClick:!1,id:Object(_["generateId"])()}},inject:["collapse"],props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},computed:{isActive:function(){return this.collapse.activeNames.indexOf(this.name)>-1}},methods:{handleFocus:function(){var e=this;setTimeout((function(){e.isClick?e.isClick=!1:e.focusing=!0}),50)},handleHeaderClick:function(){this.disabled||(this.dispatch("ElCollapse","item-click",this),this.focusing=!1,this.isClick=!0)},handleEnterClick:function(){this.dispatch("ElCollapse","item-click",this)}}},up=cp,dp=s(up,sp,lp,!1,null,null,null);dp.options.__file="packages/collapse/src/collapse-item.vue";var hp=dp.exports;hp.install=function(e){e.component(hp.name,hp)};var pp=hp,fp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:function(){return e.toggleDropDownVisible(!1)},expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:["el-cascader",e.realSize&&"el-cascader--"+e.realSize,{"is-disabled":e.isDisabled}],on:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1},click:function(){return e.toggleDropDownVisible(!e.readonly||void 0)},keydown:e.handleKeyDown}},[n("el-input",{ref:"input",class:{"is-focus":e.dropDownVisible},attrs:{size:e.realSize,placeholder:e.placeholder,readonly:e.readonly,disabled:e.isDisabled,"validate-event":!1},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.handleInput},model:{value:e.multiple?e.presentText:e.inputValue,callback:function(t){e.multiple?e.presentText:e.inputValue=t},expression:"multiple ? presentText : inputValue"}},[n("template",{slot:"suffix"},[e.clearBtnVisible?n("i",{key:"clear",staticClass:"el-input__icon el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.handleClear(t)}}}):n("i",{key:"arrow-down",class:["el-input__icon","el-icon-arrow-down",e.dropDownVisible&&"is-reverse"],on:{click:function(t){t.stopPropagation(),e.toggleDropDownVisible()}}})])],2),e.multiple?n("div",{staticClass:"el-cascader__tags"},[e._l(e.presentTags,(function(t,i){return n("el-tag",{key:t.key,attrs:{type:"info",size:e.tagSize,hit:t.hitState,closable:t.closable,"disable-transitions":""},on:{close:function(t){e.deleteTag(i)}}},[n("span",[e._v(e._s(t.text))])])})),e.filterable&&!e.isDisabled?n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.inputValue,expression:"inputValue",modifiers:{trim:!0}}],staticClass:"el-cascader__search-input",attrs:{type:"text",placeholder:e.presentTags.length?"":e.placeholder},domProps:{value:e.inputValue},on:{input:[function(t){t.target.composing||(e.inputValue=t.target.value.trim())},function(t){return e.handleInput(e.inputValue,t)}],click:function(t){t.stopPropagation(),e.toggleDropDownVisible(!0)},keydown:function(t){return"button"in t||!e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?e.handleDelete(t):null},blur:function(t){e.$forceUpdate()}}}):e._e()],2):e._e(),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.handleDropdownLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.dropDownVisible,expression:"dropDownVisible"}],ref:"popper",class:["el-popper","el-cascader__dropdown",e.popperClass]},[n("el-cascader-panel",{directives:[{name:"show",rawName:"v-show",value:!e.filtering,expression:"!filtering"}],ref:"panel",attrs:{options:e.options,props:e.config,border:!1,"render-label":e.$scopedSlots.default},on:{"expand-change":e.handleExpandChange,close:function(t){e.toggleDropDownVisible(!1)}},model:{value:e.checkedValue,callback:function(t){e.checkedValue=t},expression:"checkedValue"}}),e.filterable?n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.filtering,expression:"filtering"}],ref:"suggestionPanel",staticClass:"el-cascader__suggestion-panel",attrs:{tag:"ul","view-class":"el-cascader__suggestion-list"},nativeOn:{keydown:function(t){return e.handleSuggestionKeyDown(t)}}},[e.suggestions.length?e._l(e.suggestions,(function(t,i){return n("li",{key:t.uid,class:["el-cascader__suggestion-item",t.checked&&"is-checked"],attrs:{tabindex:-1},on:{click:function(t){e.handleSuggestionClick(i)}}},[n("span",[e._v(e._s(t.text))]),t.checked?n("i",{staticClass:"el-icon-check"}):e._e()])})):e._t("empty",[n("li",{staticClass:"el-cascader__empty-text"},[e._v(e._s(e.t("el.cascader.noMatch")))])])],2):e._e()],1)])],1)},gp=[];fp._withStripped=!0;var mp=n(42),vp=n.n(mp),_p=n(34),yp=n.n(_p),bp=yp.a.keys,Sp={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},Ep={props:{placement:{type:String,default:"bottom-start"},appendToBody:z.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:z.a.props.arrowOffset,offset:z.a.props.offset,boundariesPadding:z.a.props.boundariesPadding,popperOptions:z.a.props.popperOptions},methods:z.a.methods,data:z.a.data,beforeDestroy:z.a.beforeDestroy},Cp={medium:36,small:32,mini:28},xp={name:"ElCascader",directives:{Clickoutside:$.a},mixins:[Ep,O.a,v.a,T.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:g.a,ElTag:Jn.a,ElScrollbar:H.a,ElCascaderPanel:vp.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(fs["t"])("el.cascader.placeholder")}},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:Function,separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,debounce:{type:Number,default:300},beforeFilter:{type:Function,default:function(){return function(){}}},popperClass:String},data:function(){return{dropDownVisible:!1,checkedValue:this.value||null,inputHover:!1,inputValue:null,presentText:null,presentTags:[],checkedNodes:[],filtering:!1,suggestions:[],inputInitialHeight:0,pressDeleteCount:0}},computed:{realSize:function(){var e=(this.elFormItem||{}).elFormItemSize;return this.size||e||(this.$ELEMENT||{}).size},tagSize:function(){return["small","mini"].indexOf(this.realSize)>-1?"mini":"small"},isDisabled:function(){return this.disabled||(this.elForm||{}).disabled},config:function(){var e=this.props||{},t=this.$attrs;return Object.keys(Sp).forEach((function(n){var i=Sp[n],r=i.newProp,o=i.type,a=t[n]||t[Object(_["kebabCase"])(n)];Object(Tt["isDef"])(n)&&!Object(Tt["isDef"])(e[r])&&(o===Boolean&&""===a&&(a=!0),e[r]=a)})),e},multiple:function(){return this.config.multiple},leafOnly:function(){return!this.config.checkStrictly},readonly:function(){return!this.filterable||this.multiple},clearBtnVisible:function(){return!(!this.clearable||this.isDisabled||this.filtering||!this.inputHover)&&(this.multiple?!!this.checkedNodes.filter((function(e){return!e.isDisabled})).length:!!this.presentText)},panel:function(){return this.$refs.panel}},watch:{disabled:function(){this.computePresentContent()},value:function(e){Object(_["isEqual"])(e,this.checkedValue)||(this.checkedValue=e,this.computePresentContent())},checkedValue:function(e){var t=this.value,n=this.dropDownVisible,i=this.config,r=i.checkStrictly,o=i.multiple;Object(_["isEqual"])(e,t)&&!Object(hh["isUndefined"])(t)||(this.computePresentContent(),o||r||!n||this.toggleDropDownVisible(!1),this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",[e]))},options:{handler:function(){this.$nextTick(this.computePresentContent)},deep:!0},presentText:function(e){this.inputValue=e},presentTags:function(e,t){this.multiple&&(e.length||t.length)&&this.$nextTick(this.updateStyle)},filtering:function(e){this.$nextTick(this.updatePopper)}},mounted:function(){var e=this,t=this.$refs.input;t&&t.$el&&(this.inputInitialHeight=t.$el.offsetHeight||Cp[this.realSize]||40),Object(_["isEmpty"])(this.value)||this.computePresentContent(),this.filterHandler=F()(this.debounce,(function(){var t=e.inputValue;if(t){var n=e.beforeFilter(t);n&&n.then?n.then(e.getSuggestions):!1!==n?e.getSuggestions():e.filtering=!1}else e.filtering=!1})),Object(ei["addResizeListener"])(this.$el,this.updateStyle)},beforeDestroy:function(){Object(ei["removeResizeListener"])(this.$el,this.updateStyle)},methods:{getMigratingConfig:function(){return{props:{"expand-trigger":"expand-trigger is removed, use `props.expandTrigger` instead.","change-on-select":"change-on-select is removed, use `props.checkStrictly` instead.","hover-threshold":"hover-threshold is removed, use `props.hoverThreshold` instead"},events:{"active-item-change":"active-item-change is renamed to expand-change"}}},toggleDropDownVisible:function(e){var t=this;if(!this.isDisabled){var n=this.dropDownVisible,i=this.$refs.input;e=Object(Tt["isDef"])(e)?e:!n,e!==n&&(this.dropDownVisible=e,e&&this.$nextTick((function(){t.updatePopper(),t.panel.scrollIntoView()})),i.$refs.input.setAttribute("aria-expanded",e),this.$emit("visible-change",e))}},handleDropdownLeave:function(){this.filtering=!1,this.inputValue=this.presentText},handleKeyDown:function(e){switch(e.keyCode){case bp.enter:this.toggleDropDownVisible();break;case bp.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),e.preventDefault();break;case bp.esc:case bp.tab:this.toggleDropDownVisible(!1);break}},handleFocus:function(e){this.$emit("focus",e)},handleBlur:function(e){this.$emit("blur",e)},handleInput:function(e,t){!this.dropDownVisible&&this.toggleDropDownVisible(!0),t&&t.isComposing||(e?this.filterHandler():this.filtering=!1)},handleClear:function(){this.presentText="",this.panel.clearCheckedNodes()},handleExpandChange:function(e){this.$nextTick(this.updatePopper.bind(this)),this.$emit("expand-change",e),this.$emit("active-item-change",e)},focusFirstNode:function(){var e=this;this.$nextTick((function(){var t=e.filtering,n=e.$refs,i=n.popper,r=n.suggestionPanel,o=null;if(t&&r)o=r.$el.querySelector(".el-cascader__suggestion-item");else{var a=i.querySelector(".el-cascader-menu");o=a.querySelector('.el-cascader-node[tabindex="-1"]')}o&&(o.focus(),!t&&o.click())}))},computePresentContent:function(){var e=this;this.$nextTick((function(){e.config.multiple?(e.computePresentTags(),e.presentText=e.presentTags.length?" ":null):e.computePresentText()}))},computePresentText:function(){var e=this.checkedValue,t=this.config;if(!Object(_["isEmpty"])(e)){var n=this.panel.getNodeByValue(e);if(n&&(t.checkStrictly||n.isLeaf))return void(this.presentText=n.getText(this.showAllLevels,this.separator))}this.presentText=null},computePresentTags:function(){var e=this.isDisabled,t=this.leafOnly,n=this.showAllLevels,i=this.separator,r=this.collapseTags,o=this.getCheckedNodes(t),a=[],s=function(t){return{node:t,key:t.uid,text:t.getText(n,i),hitState:!1,closable:!e&&!t.isDisabled}};if(o.length){var l=o[0],c=o.slice(1),u=c.length;a.push(s(l)),u&&(r?a.push({key:-1,text:"+ "+u,closable:!1}):c.forEach((function(e){return a.push(s(e))})))}this.checkedNodes=o,this.presentTags=a},getSuggestions:function(){var e=this,t=this.filterMethod;Object(hh["isFunction"])(t)||(t=function(e,t){return e.text.includes(t)});var n=this.panel.getFlattedNodes(this.leafOnly).filter((function(n){return!n.isDisabled&&(n.text=n.getText(e.showAllLevels,e.separator)||"",t(n,e.inputValue))}));this.multiple?this.presentTags.forEach((function(e){e.hitState=!1})):n.forEach((function(t){t.checked=Object(_["isEqual"])(e.checkedValue,t.getValueByOption())})),this.filtering=!0,this.suggestions=n,this.$nextTick(this.updatePopper)},handleSuggestionKeyDown:function(e){var t=e.keyCode,n=e.target;switch(t){case bp.enter:n.click();break;case bp.up:var i=n.previousElementSibling;i&&i.focus();break;case bp.down:var r=n.nextElementSibling;r&&r.focus();break;case bp.esc:case bp.tab:this.toggleDropDownVisible(!1);break}},handleDelete:function(){var e=this.inputValue,t=this.pressDeleteCount,n=this.presentTags,i=n.length-1,r=n[i];this.pressDeleteCount=e?0:t+1,r&&this.pressDeleteCount&&(r.hitState?this.deleteTag(i):r.hitState=!0)},handleSuggestionClick:function(e){var t=this.multiple,n=this.suggestions[e];if(t){var i=n.checked;n.doCheck(!i),this.panel.calculateMultiCheckedValue()}else this.checkedValue=n.getValueByOption(),this.toggleDropDownVisible(!1)},deleteTag:function(e){var t=this.checkedValue,n=t[e];this.checkedValue=t.filter((function(t,n){return n!==e})),this.$emit("remove-tag",n)},updateStyle:function(){var e=this.$el,t=this.inputInitialHeight;if(!this.$isServer&&e){var n=this.$refs.suggestionPanel,i=e.querySelector(".el-input__inner");if(i){var r=e.querySelector(".el-cascader__tags"),o=null;if(n&&(o=n.$el)){var a=o.querySelector(".el-cascader__suggestion-list");a.style.minWidth=i.offsetWidth+"px"}if(r){var s=r.offsetHeight,l=Math.max(s+6,t)+"px";i.style.height=l,this.updatePopper()}}}},getCheckedNodes:function(e){return this.panel.getCheckedNodes(e)}}},wp=xp,Tp=s(wp,fp,gp,!1,null,null,null);Tp.options.__file="packages/cascader/src/cascader.vue";var Ap=Tp.exports;Ap.install=function(e){e.component(Ap.name,Ap)};var Op=Ap,Rp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.hide,expression:"hide"}],class:["el-color-picker",e.colorDisabled?"is-disabled":"",e.colorSize?"el-color-picker--"+e.colorSize:""]},[e.colorDisabled?n("div",{staticClass:"el-color-picker__mask"}):e._e(),n("div",{staticClass:"el-color-picker__trigger",on:{click:e.handleTrigger}},[n("span",{staticClass:"el-color-picker__color",class:{"is-alpha":e.showAlpha}},[n("span",{staticClass:"el-color-picker__color-inner",style:{backgroundColor:e.displayedColor}}),e.value||e.showPanelColor?e._e():n("span",{staticClass:"el-color-picker__empty el-icon-close"})]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.value||e.showPanelColor,expression:"value || showPanelColor"}],staticClass:"el-color-picker__icon el-icon-arrow-down"})]),n("picker-dropdown",{ref:"dropdown",class:["el-color-picker__panel",e.popperClass||""],attrs:{color:e.color,"show-alpha":e.showAlpha,predefine:e.predefine},on:{pick:e.confirmValue,clear:e.clearValue},model:{value:e.showPicker,callback:function(t){e.showPicker=t},expression:"showPicker"}})],1)},Np=[];Rp._withStripped=!0;var Dp="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Ip(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Mp=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},kp=function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)},Lp=function(e){return"string"===typeof e&&-1!==e.indexOf("%")},Pp=function(e,t){kp(e)&&(e="100%");var n=Lp(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)},Fp={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Bp=function(e){var t=e.r,n=e.g,i=e.b,r=function(e){e=Math.min(Math.round(e),255);var t=Math.floor(e/16),n=e%16;return""+(Fp[t]||t)+(Fp[n]||n)};return isNaN(t)||isNaN(n)||isNaN(i)?"":"#"+r(t)+r(n)+r(i)},$p={A:10,B:11,C:12,D:13,E:14,F:15},Vp=function(e){return 2===e.length?16*($p[e[0].toUpperCase()]||+e[0])+($p[e[1].toUpperCase()]||+e[1]):$p[e[1].toUpperCase()]||+e[1]},Gp=function(e,t,n){t/=100,n/=100;var i=t,r=Math.max(n,.01),o=void 0,a=void 0;return n*=2,t*=n<=1?n:2-n,i*=r<=1?r:2-r,a=(n+t)/2,o=0===n?2*i/(r+i):2*t/(n+t),{h:e,s:100*o,v:100*a}},Up=function(e,t,n){e=Pp(e,255),t=Pp(t,255),n=Pp(n,255);var i=Math.max(e,t,n),r=Math.min(e,t,n),o=void 0,a=void 0,s=i,l=i-r;if(a=0===i?0:l/i,i===r)o=0;else{switch(i){case e:o=(t-n)/l+(t2?parseFloat(e):parseInt(e,10)}));if(4===i.length?this._alpha=Math.floor(100*parseFloat(i[3])):3===i.length&&(this._alpha=100),i.length>=3){var r=Gp(i[0],i[1],i[2]),o=r.h,a=r.s,s=r.v;n(o,a,s)}}else if(-1!==e.indexOf("hsv")){var l=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));4===l.length?this._alpha=Math.floor(100*parseFloat(l[3])):3===l.length&&(this._alpha=100),l.length>=3&&n(l[0],l[1],l[2])}else if(-1!==e.indexOf("rgb")){var c=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));if(4===c.length?this._alpha=Math.floor(100*parseFloat(c[3])):3===c.length&&(this._alpha=100),c.length>=3){var u=Up(c[0],c[1],c[2]),d=u.h,h=u.s,p=u.v;n(d,h,p)}}else if(-1!==e.indexOf("#")){var f=e.replace("#","").trim();if(!/^(?:[0-9a-fA-F]{3}){1,2}$/.test(f))return;var g=void 0,m=void 0,v=void 0;3===f.length?(g=Vp(f[0]+f[0]),m=Vp(f[1]+f[1]),v=Vp(f[2]+f[2])):6!==f.length&&8!==f.length||(g=Vp(f.substring(0,2)),m=Vp(f.substring(2,4)),v=Vp(f.substring(4,6))),8===f.length?this._alpha=Math.floor(Vp(f.substring(6))/255*100):3!==f.length&&6!==f.length||(this._alpha=100);var _=Up(g,m,v),y=_.h,b=_.s,S=_.v;n(y,b,S)}},e.prototype.compare=function(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1},e.prototype.doOnChange=function(){var e=this._hue,t=this._saturation,n=this._value,i=this._alpha,r=this.format;if(this.enableAlpha)switch(r){case"hsl":var o=Mp(e,t/100,n/100);this.value="hsla("+e+", "+Math.round(100*o[1])+"%, "+Math.round(100*o[2])+"%, "+i/100+")";break;case"hsv":this.value="hsva("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%, "+i/100+")";break;default:var a=zp(e,t,n),s=a.r,l=a.g,c=a.b;this.value="rgba("+s+", "+l+", "+c+", "+i/100+")"}else switch(r){case"hsl":var u=Mp(e,t/100,n/100);this.value="hsl("+e+", "+Math.round(100*u[1])+"%, "+Math.round(100*u[2])+"%)";break;case"hsv":this.value="hsv("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%)";break;case"rgb":var d=zp(e,t,n),h=d.r,p=d.g,f=d.b;this.value="rgb("+h+", "+p+", "+f+")";break;default:this.value=Bp(zp(e,t,n))}},e}(),Hp=jp,Wp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-color-dropdown"},[n("div",{staticClass:"el-color-dropdown__main-wrapper"},[n("hue-slider",{ref:"hue",staticStyle:{float:"right"},attrs:{color:e.color,vertical:""}}),n("sv-panel",{ref:"sl",attrs:{color:e.color}})],1),e.showAlpha?n("alpha-slider",{ref:"alpha",attrs:{color:e.color}}):e._e(),e.predefine?n("predefine",{attrs:{color:e.color,colors:e.predefine}}):e._e(),n("div",{staticClass:"el-color-dropdown__btns"},[n("span",{staticClass:"el-color-dropdown__value"},[n("el-input",{attrs:{"validate-event":!1,size:"mini"},on:{blur:e.handleConfirm},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleConfirm(t):null}},model:{value:e.customInput,callback:function(t){e.customInput=t},expression:"customInput"}})],1),n("el-button",{staticClass:"el-color-dropdown__link-btn",attrs:{size:"mini",type:"text"},on:{click:function(t){e.$emit("clear")}}},[e._v("\n "+e._s(e.t("el.colorpicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-color-dropdown__btn",attrs:{plain:"",size:"mini"},on:{click:e.confirmValue}},[e._v("\n "+e._s(e.t("el.colorpicker.confirm"))+"\n ")])],1)],1)])},Yp=[];Wp._withStripped=!0;var qp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-svpanel",style:{backgroundColor:e.background}},[n("div",{staticClass:"el-color-svpanel__white"}),n("div",{staticClass:"el-color-svpanel__black"}),n("div",{staticClass:"el-color-svpanel__cursor",style:{top:e.cursorTop+"px",left:e.cursorLeft+"px"}},[n("div")])])},Kp=[];qp._withStripped=!0;var Qp=!1,Xp=function(e,t){if(!Ui.a.prototype.$isServer){var n=function(e){t.drag&&t.drag(e)},i=function e(i){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",e),document.onselectstart=null,document.ondragstart=null,Qp=!1,t.end&&t.end(i)};e.addEventListener("mousedown",(function(e){Qp||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",n),document.addEventListener("mouseup",i),Qp=!0,t.start&&t.start(e))}))}},Zp={name:"el-sl-panel",props:{color:{required:!0}},computed:{colorValue:function(){var e=this.color.get("hue"),t=this.color.get("value");return{hue:e,value:t}}},watch:{colorValue:function(){this.update()}},methods:{update:function(){var e=this.color.get("saturation"),t=this.color.get("value"),n=this.$el,i=n.clientWidth,r=n.clientHeight;this.cursorLeft=e*i/100,this.cursorTop=(100-t)*r/100,this.background="hsl("+this.color.get("hue")+", 100%, 50%)"},handleDrag:function(e){var t=this.$el,n=t.getBoundingClientRect(),i=e.clientX-n.left,r=e.clientY-n.top;i=Math.max(0,i),i=Math.min(i,n.width),r=Math.max(0,r),r=Math.min(r,n.height),this.cursorLeft=i,this.cursorTop=r,this.color.set({saturation:i/n.width*100,value:100-r/n.height*100})}},mounted:function(){var e=this;Xp(this.$el,{drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}}),this.update()},data:function(){return{cursorTop:0,cursorLeft:0,background:"hsl(0, 100%, 50%)"}}},Jp=Zp,ef=s(Jp,qp,Kp,!1,null,null,null);ef.options.__file="packages/color-picker/src/components/sv-panel.vue";var tf=ef.exports,nf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-hue-slider",class:{"is-vertical":e.vertical}},[n("div",{ref:"bar",staticClass:"el-color-hue-slider__bar",on:{click:e.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-hue-slider__thumb",style:{left:e.thumbLeft+"px",top:e.thumbTop+"px"}})])},rf=[];nf._withStripped=!0;var of={name:"el-color-hue-slider",props:{color:{required:!0},vertical:Boolean},data:function(){return{thumbLeft:0,thumbTop:0}},computed:{hueValue:function(){var e=this.color.get("hue");return e}},watch:{hueValue:function(){this.update()}},methods:{handleClick:function(e){var t=this.$refs.thumb,n=e.target;n!==t&&this.handleDrag(e)},handleDrag:function(e){var t=this.$el.getBoundingClientRect(),n=this.$refs.thumb,i=void 0;if(this.vertical){var r=e.clientY-t.top;r=Math.min(r,t.height-n.offsetHeight/2),r=Math.max(n.offsetHeight/2,r),i=Math.round((r-n.offsetHeight/2)/(t.height-n.offsetHeight)*360)}else{var o=e.clientX-t.left;o=Math.min(o,t.width-n.offsetWidth/2),o=Math.max(n.offsetWidth/2,o),i=Math.round((o-n.offsetWidth/2)/(t.width-n.offsetWidth)*360)}this.color.set("hue",i)},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/360)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/360)},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop()}},mounted:function(){var e=this,t=this.$refs,n=t.bar,i=t.thumb,r={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};Xp(n,r),Xp(i,r),this.update()}},af=of,sf=s(af,nf,rf,!1,null,null,null);sf.options.__file="packages/color-picker/src/components/hue-slider.vue";var lf=sf.exports,cf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-alpha-slider",class:{"is-vertical":e.vertical}},[n("div",{ref:"bar",staticClass:"el-color-alpha-slider__bar",style:{background:e.background},on:{click:e.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-alpha-slider__thumb",style:{left:e.thumbLeft+"px",top:e.thumbTop+"px"}})])},uf=[];cf._withStripped=!0;var df={name:"el-color-alpha-slider",props:{color:{required:!0},vertical:Boolean},watch:{"color._alpha":function(){this.update()},"color.value":function(){this.update()}},methods:{handleClick:function(e){var t=this.$refs.thumb,n=e.target;n!==t&&this.handleDrag(e)},handleDrag:function(e){var t=this.$el.getBoundingClientRect(),n=this.$refs.thumb;if(this.vertical){var i=e.clientY-t.top;i=Math.max(n.offsetHeight/2,i),i=Math.min(i,t.height-n.offsetHeight/2),this.color.set("alpha",Math.round((i-n.offsetHeight/2)/(t.height-n.offsetHeight)*100))}else{var r=e.clientX-t.left;r=Math.max(n.offsetWidth/2,r),r=Math.min(r,t.width-n.offsetWidth/2),this.color.set("alpha",Math.round((r-n.offsetWidth/2)/(t.width-n.offsetWidth)*100))}},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/100)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/100)},getBackground:function(){if(this.color&&this.color.value){var e=this.color.toRgb(),t=e.r,n=e.g,i=e.b;return"linear-gradient(to right, rgba("+t+", "+n+", "+i+", 0) 0%, rgba("+t+", "+n+", "+i+", 1) 100%)"}return null},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop(),this.background=this.getBackground()}},data:function(){return{thumbLeft:0,thumbTop:0,background:null}},mounted:function(){var e=this,t=this.$refs,n=t.bar,i=t.thumb,r={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};Xp(n,r),Xp(i,r),this.update()}},hf=df,pf=s(hf,cf,uf,!1,null,null,null);pf.options.__file="packages/color-picker/src/components/alpha-slider.vue";var ff=pf.exports,gf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-predefine"},[n("div",{staticClass:"el-color-predefine__colors"},e._l(e.rgbaColors,(function(t,i){return n("div",{key:e.colors[i],staticClass:"el-color-predefine__color-selector",class:{selected:t.selected,"is-alpha":t._alpha<100},on:{click:function(t){e.handleSelect(i)}}},[n("div",{style:{"background-color":t.value}})])})),0)])},mf=[];gf._withStripped=!0;var vf={props:{colors:{type:Array,required:!0},color:{required:!0}},data:function(){return{rgbaColors:this.parseColors(this.colors,this.color)}},methods:{handleSelect:function(e){this.color.fromString(this.colors[e])},parseColors:function(e,t){return e.map((function(e){var n=new Hp;return n.enableAlpha=!0,n.format="rgba",n.fromString(e),n.selected=n.value===t.value,n}))}},watch:{"$parent.currentColor":function(e){var t=new Hp;t.fromString(e),this.rgbaColors.forEach((function(e){e.selected=t.compare(e)}))},colors:function(e){this.rgbaColors=this.parseColors(e,this.color)},color:function(e){this.rgbaColors=this.parseColors(this.colors,e)}}},_f=vf,yf=s(_f,gf,mf,!1,null,null,null);yf.options.__file="packages/color-picker/src/components/predefine.vue";var bf=yf.exports,Sf={name:"el-color-picker-dropdown",mixins:[z.a,v.a],components:{SvPanel:tf,HueSlider:lf,AlphaSlider:ff,ElInput:g.a,ElButton:ae.a,Predefine:bf},props:{color:{required:!0},showAlpha:Boolean,predefine:Array},data:function(){return{customInput:""}},computed:{currentColor:function(){var e=this.$parent;return e.value||e.showPanelColor?e.color.value:""}},methods:{confirmValue:function(){this.$emit("pick")},handleConfirm:function(){this.color.fromString(this.customInput)}},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$el},watch:{showPopper:function(e){var t=this;!0===e&&this.$nextTick((function(){var e=t.$refs,n=e.sl,i=e.hue,r=e.alpha;n&&n.update(),i&&i.update(),r&&r.update()}))},currentColor:{immediate:!0,handler:function(e){this.customInput=e}}}},Ef=Sf,Cf=s(Ef,Wp,Yp,!1,null,null,null);Cf.options.__file="packages/color-picker/src/components/picker-dropdown.vue";var xf=Cf.exports,wf={name:"ElColorPicker",mixins:[O.a],props:{value:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:String,popperClass:String,predefine:Array},inject:{elForm:{default:""},elFormItem:{default:""}},directives:{Clickoutside:$.a},computed:{displayedColor:function(){return this.value||this.showPanelColor?this.displayedRgb(this.color,this.showAlpha):"transparent"},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},colorSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},colorDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(e){e?e&&e!==this.color.value&&this.color.fromString(e):this.showPanelColor=!1},color:{deep:!0,handler:function(){this.showPanelColor=!0}},displayedColor:function(e){if(this.showPicker){var t=new Hp({enableAlpha:this.showAlpha,format:this.colorFormat});t.fromString(this.value);var n=this.displayedRgb(t,this.showAlpha);e!==n&&this.$emit("active-change",e)}}},methods:{handleTrigger:function(){this.colorDisabled||(this.showPicker=!this.showPicker)},confirmValue:function(){var e=this.color.value;this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",e),this.showPicker=!1},clearValue:function(){this.$emit("input",null),this.$emit("change",null),null!==this.value&&this.dispatch("ElFormItem","el.form.change",null),this.showPanelColor=!1,this.showPicker=!1,this.resetColor()},hide:function(){this.showPicker=!1,this.resetColor()},resetColor:function(){var e=this;this.$nextTick((function(t){e.value?e.color.fromString(e.value):e.showPanelColor=!1}))},displayedRgb:function(e,t){if(!(e instanceof Hp))throw Error("color should be instance of Color Class");var n=e.toRgb(),i=n.r,r=n.g,o=n.b;return t?"rgba("+i+", "+r+", "+o+", "+e.get("alpha")/100+")":"rgb("+i+", "+r+", "+o+")"}},mounted:function(){var e=this.value;e&&this.color.fromString(e),this.popperElm=this.$refs.dropdown.$el},data:function(){var e=new Hp({enableAlpha:this.showAlpha,format:this.colorFormat});return{color:e,showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:xf}},Tf=wf,Af=s(Tf,Rp,Np,!1,null,null,null);Af.options.__file="packages/color-picker/src/main.vue";var Of=Af.exports;Of.install=function(e){e.component(Of.name,Of)};var Rf=Of,Nf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-transfer"},[n("transfer-panel",e._b({ref:"leftPanel",attrs:{data:e.sourceData,title:e.titles[0]||e.t("el.transfer.titles.0"),"default-checked":e.leftDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onSourceCheckedChange}},"transfer-panel",e.$props,!1),[e._t("left-footer")],2),n("div",{staticClass:"el-transfer__buttons"},[n("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.rightChecked.length},nativeOn:{click:function(t){return e.addToLeft(t)}}},[n("i",{staticClass:"el-icon-arrow-left"}),void 0!==e.buttonTexts[0]?n("span",[e._v(e._s(e.buttonTexts[0]))]):e._e()]),n("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.leftChecked.length},nativeOn:{click:function(t){return e.addToRight(t)}}},[void 0!==e.buttonTexts[1]?n("span",[e._v(e._s(e.buttonTexts[1]))]):e._e(),n("i",{staticClass:"el-icon-arrow-right"})])],1),n("transfer-panel",e._b({ref:"rightPanel",attrs:{data:e.targetData,title:e.titles[1]||e.t("el.transfer.titles.1"),"default-checked":e.rightDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onTargetCheckedChange}},"transfer-panel",e.$props,!1),[e._t("right-footer")],2)],1)},Df=[];Nf._withStripped=!0;var If=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-transfer-panel"},[n("p",{staticClass:"el-transfer-panel__header"},[n("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleAllCheckedChange},model:{value:e.allChecked,callback:function(t){e.allChecked=t},expression:"allChecked"}},[e._v("\n "+e._s(e.title)+"\n "),n("span",[e._v(e._s(e.checkedSummary))])])],1),n("div",{class:["el-transfer-panel__body",e.hasFooter?"is-with-footer":""]},[e.filterable?n("el-input",{staticClass:"el-transfer-panel__filter",attrs:{size:"small",placeholder:e.placeholder},nativeOn:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1}},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}},[n("i",{class:["el-input__icon","el-icon-"+e.inputIcon],attrs:{slot:"prefix"},on:{click:e.clearQuery},slot:"prefix"})]):e._e(),n("el-checkbox-group",{directives:[{name:"show",rawName:"v-show",value:!e.hasNoMatch&&e.data.length>0,expression:"!hasNoMatch && data.length > 0"}],staticClass:"el-transfer-panel__list",class:{"is-filterable":e.filterable},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},e._l(e.filteredData,(function(t){return n("el-checkbox",{key:t[e.keyProp],staticClass:"el-transfer-panel__item",attrs:{label:t[e.keyProp],disabled:t[e.disabledProp]}},[n("option-content",{attrs:{option:t}})],1)})),1),n("p",{directives:[{name:"show",rawName:"v-show",value:e.hasNoMatch,expression:"hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noMatch")))]),n("p",{directives:[{name:"show",rawName:"v-show",value:0===e.data.length&&!e.hasNoMatch,expression:"data.length === 0 && !hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noData")))])],1),e.hasFooter?n("p",{staticClass:"el-transfer-panel__footer"},[e._t("default")],2):e._e()])},Mf=[];If._withStripped=!0;var kf={mixins:[v.a],name:"ElTransferPanel",componentName:"ElTransferPanel",components:{ElCheckboxGroup:Nr.a,ElCheckbox:ki.a,ElInput:g.a,OptionContent:{props:{option:Object},render:function(e){var t=function e(t){return"ElTransferPanel"===t.$options.componentName?t:t.$parent?e(t.$parent):t},n=t(this),i=n.$parent||n;return n.renderContent?n.renderContent(e,this.option):i.$scopedSlots.default?i.$scopedSlots.default({option:this.option}):e("span",[this.option[n.labelProp]||this.option[n.keyProp]])}}},props:{data:{type:Array,default:function(){return[]}},renderContent:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},data:function(){return{checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}},watch:{checked:function(e,t){if(this.updateAllChecked(),this.checkChangeByUser){var n=e.concat(t).filter((function(n){return-1===e.indexOf(n)||-1===t.indexOf(n)}));this.$emit("checked-change",e,n)}else this.$emit("checked-change",e),this.checkChangeByUser=!0},data:function(){var e=this,t=[],n=this.filteredData.map((function(t){return t[e.keyProp]}));this.checked.forEach((function(e){n.indexOf(e)>-1&&t.push(e)})),this.checkChangeByUser=!1,this.checked=t},checkableData:function(){this.updateAllChecked()},defaultChecked:{immediate:!0,handler:function(e,t){var n=this;if(!t||e.length!==t.length||!e.every((function(e){return t.indexOf(e)>-1}))){var i=[],r=this.checkableData.map((function(e){return e[n.keyProp]}));e.forEach((function(e){r.indexOf(e)>-1&&i.push(e)})),this.checkChangeByUser=!1,this.checked=i}}}},computed:{filteredData:function(){var e=this;return this.data.filter((function(t){if("function"===typeof e.filterMethod)return e.filterMethod(e.query,t);var n=t[e.labelProp]||t[e.keyProp].toString();return n.toLowerCase().indexOf(e.query.toLowerCase())>-1}))},checkableData:function(){var e=this;return this.filteredData.filter((function(t){return!t[e.disabledProp]}))},checkedSummary:function(){var e=this.checked.length,t=this.data.length,n=this.format,i=n.noChecked,r=n.hasChecked;return i&&r?e>0?r.replace(/\${checked}/g,e).replace(/\${total}/g,t):i.replace(/\${total}/g,t):e+"/"+t},isIndeterminate:function(){var e=this.checked.length;return e>0&&e0&&0===this.filteredData.length},inputIcon:function(){return this.query.length>0&&this.inputHover?"circle-close":"search"},labelProp:function(){return this.props.label||"label"},keyProp:function(){return this.props.key||"key"},disabledProp:function(){return this.props.disabled||"disabled"},hasFooter:function(){return!!this.$slots.default}},methods:{updateAllChecked:function(){var e=this,t=this.checkableData.map((function(t){return t[e.keyProp]}));this.allChecked=t.length>0&&t.every((function(t){return e.checked.indexOf(t)>-1}))},handleAllCheckedChange:function(e){var t=this;this.checked=e?this.checkableData.map((function(e){return e[t.keyProp]})):[]},clearQuery:function(){"circle-close"===this.inputIcon&&(this.query="")}}},Lf=kf,Pf=s(Lf,If,Mf,!1,null,null,null);Pf.options.__file="packages/transfer/src/transfer-panel.vue";var Ff=Pf.exports,Bf={name:"ElTransfer",mixins:[O.a,v.a,T.a],components:{TransferPanel:Ff,ElButton:ae.a},props:{data:{type:Array,default:function(){return[]}},titles:{type:Array,default:function(){return[]}},buttonTexts:{type:Array,default:function(){return[]}},filterPlaceholder:{type:String,default:""},filterMethod:Function,leftDefaultChecked:{type:Array,default:function(){return[]}},rightDefaultChecked:{type:Array,default:function(){return[]}},renderContent:Function,value:{type:Array,default:function(){return[]}},format:{type:Object,default:function(){return{}}},filterable:Boolean,props:{type:Object,default:function(){return{label:"label",key:"key",disabled:"disabled"}}},targetOrder:{type:String,default:"original"}},data:function(){return{leftChecked:[],rightChecked:[]}},computed:{dataObj:function(){var e=this.props.key;return this.data.reduce((function(t,n){return(t[n[e]]=n)&&t}),{})},sourceData:function(){var e=this;return this.data.filter((function(t){return-1===e.value.indexOf(t[e.props.key])}))},targetData:function(){var e=this;return"original"===this.targetOrder?this.data.filter((function(t){return e.value.indexOf(t[e.props.key])>-1})):this.value.reduce((function(t,n){var i=e.dataObj[n];return i&&t.push(i),t}),[])},hasButtonTexts:function(){return 2===this.buttonTexts.length}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}},methods:{getMigratingConfig:function(){return{props:{"footer-format":"footer-format is renamed to format."}}},onSourceCheckedChange:function(e,t){this.leftChecked=e,void 0!==t&&this.$emit("left-check-change",e,t)},onTargetCheckedChange:function(e,t){this.rightChecked=e,void 0!==t&&this.$emit("right-check-change",e,t)},addToLeft:function(){var e=this.value.slice();this.rightChecked.forEach((function(t){var n=e.indexOf(t);n>-1&&e.splice(n,1)})),this.$emit("input",e),this.$emit("change",e,"left",this.rightChecked)},addToRight:function(){var e=this,t=this.value.slice(),n=[],i=this.props.key;this.data.forEach((function(t){var r=t[i];e.leftChecked.indexOf(r)>-1&&-1===e.value.indexOf(r)&&n.push(r)})),t="unshift"===this.targetOrder?n.concat(t):t.concat(n),this.$emit("input",t),this.$emit("change",t,"right",this.leftChecked)},clearQuery:function(e){"left"===e?this.$refs.leftPanel.query="":"right"===e&&(this.$refs.rightPanel.query="")}}},$f=Bf,Vf=s($f,Nf,Df,!1,null,null,null);Vf.options.__file="packages/transfer/src/main.vue";var Gf=Vf.exports;Gf.install=function(e){e.component(Gf.name,Gf)};var Uf=Gf,zf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"el-container",class:{"is-vertical":e.isVertical}},[e._t("default")],2)},jf=[];zf._withStripped=!0;var Hf={name:"ElContainer",componentName:"ElContainer",props:{direction:String},computed:{isVertical:function(){return"vertical"===this.direction||"horizontal"!==this.direction&&(!(!this.$slots||!this.$slots.default)&&this.$slots.default.some((function(e){var t=e.componentOptions&&e.componentOptions.tag;return"el-header"===t||"el-footer"===t})))}}},Wf=Hf,Yf=s(Wf,zf,jf,!1,null,null,null);Yf.options.__file="packages/container/src/main.vue";var qf=Yf.exports;qf.install=function(e){e.component(qf.name,qf)};var Kf=qf,Qf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",{staticClass:"el-header",style:{height:e.height}},[e._t("default")],2)},Xf=[];Qf._withStripped=!0;var Zf={name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},Jf=Zf,eg=s(Jf,Qf,Xf,!1,null,null,null);eg.options.__file="packages/header/src/main.vue";var tg=eg.exports;tg.install=function(e){e.component(tg.name,tg)};var ng=tg,ig=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("aside",{staticClass:"el-aside",style:{width:e.width}},[e._t("default")],2)},rg=[];ig._withStripped=!0;var og={name:"ElAside",componentName:"ElAside",props:{width:{type:String,default:"300px"}}},ag=og,sg=s(ag,ig,rg,!1,null,null,null);sg.options.__file="packages/aside/src/main.vue";var lg=sg.exports;lg.install=function(e){e.component(lg.name,lg)};var cg=lg,ug=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("main",{staticClass:"el-main"},[e._t("default")],2)},dg=[];ug._withStripped=!0;var hg={name:"ElMain",componentName:"ElMain"},pg=hg,fg=s(pg,ug,dg,!1,null,null,null);fg.options.__file="packages/main/src/main.vue";var gg=fg.exports;gg.install=function(e){e.component(gg.name,gg)};var mg=gg,vg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("footer",{staticClass:"el-footer",style:{height:e.height}},[e._t("default")],2)},_g=[];vg._withStripped=!0;var yg={name:"ElFooter",componentName:"ElFooter",props:{height:{type:String,default:"60px"}}},bg=yg,Sg=s(bg,vg,_g,!1,null,null,null);Sg.options.__file="packages/footer/src/main.vue";var Eg=Sg.exports;Eg.install=function(e){e.component(Eg.name,Eg)};var Cg,xg,wg=Eg,Tg={name:"ElTimeline",props:{reverse:{type:Boolean,default:!1}},provide:function(){return{timeline:this}},render:function(){var e=arguments[0],t=this.reverse,n={"el-timeline":!0,"is-reverse":t},i=this.$slots.default||[];return t&&(i=i.reverse()),e("ul",{class:n},[i])}},Ag=Tg,Og=s(Ag,Cg,xg,!1,null,null,null);Og.options.__file="packages/timeline/src/main.vue";var Rg=Og.exports;Rg.install=function(e){e.component(Rg.name,Rg)};var Ng=Rg,Dg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-timeline-item"},[n("div",{staticClass:"el-timeline-item__tail"}),e.$slots.dot?e._e():n("div",{staticClass:"el-timeline-item__node",class:["el-timeline-item__node--"+(e.size||""),"el-timeline-item__node--"+(e.type||"")],style:{backgroundColor:e.color}},[e.icon?n("i",{staticClass:"el-timeline-item__icon",class:e.icon}):e._e()]),e.$slots.dot?n("div",{staticClass:"el-timeline-item__dot"},[e._t("dot")],2):e._e(),n("div",{staticClass:"el-timeline-item__wrapper"},[e.hideTimestamp||"top"!==e.placement?e._e():n("div",{staticClass:"el-timeline-item__timestamp is-top"},[e._v("\n "+e._s(e.timestamp)+"\n ")]),n("div",{staticClass:"el-timeline-item__content"},[e._t("default")],2),e.hideTimestamp||"bottom"!==e.placement?e._e():n("div",{staticClass:"el-timeline-item__timestamp is-bottom"},[e._v("\n "+e._s(e.timestamp)+"\n ")])])])},Ig=[];Dg._withStripped=!0;var Mg={name:"ElTimelineItem",inject:["timeline"],props:{timestamp:String,hideTimestamp:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},type:String,color:String,size:{type:String,default:"normal"},icon:String}},kg=Mg,Lg=s(kg,Dg,Ig,!1,null,null,null);Lg.options.__file="packages/timeline/src/item.vue";var Pg=Lg.exports;Pg.install=function(e){e.component(Pg.name,Pg)};var Fg=Pg,Bg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",e._b({class:["el-link",e.type?"el-link--"+e.type:"",e.disabled&&"is-disabled",e.underline&&!e.disabled&&"is-underline"],attrs:{href:e.disabled?null:e.href},on:{click:e.handleClick}},"a",e.$attrs,!1),[e.icon?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",{staticClass:"el-link--inner"},[e._t("default")],2):e._e(),e.$slots.icon?[e.$slots.icon?e._t("icon"):e._e()]:e._e()],2)},$g=[];Bg._withStripped=!0;var Vg={name:"ElLink",props:{type:{type:String,default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:String,icon:String},methods:{handleClick:function(e){this.disabled||this.href||this.$emit("click",e)}}},Gg=Vg,Ug=s(Gg,Bg,$g,!1,null,null,null);Ug.options.__file="packages/link/src/main.vue";var zg=Ug.exports;zg.install=function(e){e.component(zg.name,zg)};var jg=zg,Hg=function(e,t){var n=t._c;return n("div",t._g(t._b({class:[t.data.staticClass,"el-divider","el-divider--"+t.props.direction]},"div",t.data.attrs,!1),t.listeners),[t.slots().default&&"vertical"!==t.props.direction?n("div",{class:["el-divider__text","is-"+t.props.contentPosition]},[t._t("default")],2):t._e()])},Wg=[];Hg._withStripped=!0;var Yg={name:"ElDivider",props:{direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}},contentPosition:{type:String,default:"center",validator:function(e){return-1!==["left","center","right"].indexOf(e)}}}},qg=Yg,Kg=s(qg,Hg,Wg,!0,null,null,null);Kg.options.__file="packages/divider/src/main.vue";var Qg=Kg.exports;Qg.install=function(e){e.component(Qg.name,Qg)};var Xg=Qg,Zg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-image"},[e.loading?e._t("placeholder",[n("div",{staticClass:"el-image__placeholder"})]):e.error?e._t("error",[n("div",{staticClass:"el-image__error"},[e._v(e._s(e.t("el.image.error")))])]):n("img",e._g(e._b({staticClass:"el-image__inner",class:{"el-image__inner--center":e.alignCenter,"el-image__preview":e.preview},style:e.imageStyle,attrs:{src:e.src},on:{click:e.clickHandler}},"img",e.$attrs,!1),e.$listeners)),e.preview?[e.showViewer?n("image-viewer",{attrs:{"z-index":e.zIndex,"initial-index":e.imageIndex,"on-close":e.closeViewer,"url-list":e.previewSrcList}}):e._e()]:e._e()],2)},Jg=[];Zg._withStripped=!0;var em=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"viewer-fade"}},[n("div",{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:{"z-index":e.zIndex},attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-image-viewer__mask",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleMaskClick(t)}}}),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:e.hide}},[n("i",{staticClass:"el-icon-close"})]),e.isSingle?e._e():[n("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[n("i",{staticClass:"el-icon-arrow-left"})]),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[n("i",{staticClass:"el-icon-arrow-right"})])],n("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[n("div",{staticClass:"el-image-viewer__actions__inner"},[n("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){e.handleActions("zoomOut")}}}),n("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){e.handleActions("zoomIn")}}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{class:e.mode.icon,on:{click:e.toggleMode}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){e.handleActions("anticlocelise")}}}),n("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){e.handleActions("clocelise")}}})])]),n("div",{staticClass:"el-image-viewer__canvas"},e._l(e.urlList,(function(t,i){return i===e.index?n("img",{key:t,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:e.imgStyle,attrs:{src:e.currentImg},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}}):e._e()})),0)],2)])},tm=[];em._withStripped=!0;var nm=Object.assign||function(e){for(var t=1;t0?e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})})),Object(Be["on"])(document,"keydown",this._keyDownHandler),Object(Be["on"])(document,rm,this._mouseWheelHandler)},deviceSupportUninstall:function(){Object(Be["off"])(document,"keydown",this._keyDownHandler),Object(Be["off"])(document,rm,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(e){this.loading=!1},handleImgError:function(e){this.loading=!1,e.target.alt="加载失败"},handleMouseDown:function(e){var t=this;if(!this.loading&&0===e.button){var n=this.transform,i=n.offsetX,r=n.offsetY,o=e.pageX,a=e.pageY;this._dragHandler=Object(_["rafThrottle"])((function(e){t.transform.offsetX=i+e.pageX-o,t.transform.offsetY=r+e.pageY-a})),Object(Be["on"])(document,"mousemove",this._dragHandler),Object(Be["on"])(document,"mouseup",(function(e){Object(Be["off"])(document,"mousemove",t._dragHandler)})),e.preventDefault()}},handleMaskClick:function(){this.maskClosable&&this.hide()},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){if(!this.loading){var e=Object.keys(im),t=Object.values(im),n=t.indexOf(this.mode),i=(n+1)%e.length;this.mode=im[e[i]],this.reset()}},prev:function(){if(!this.isFirst||this.infinite){var e=this.urlList.length;this.index=(this.index-1+e)%e}},next:function(){if(!this.isLast||this.infinite){var e=this.urlList.length;this.index=(this.index+1)%e}},handleActions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var n=nm({zoomRate:.2,rotateDeg:90,enableTransition:!0},t),i=n.zoomRate,r=n.rotateDeg,o=n.enableTransition,a=this.transform;switch(e){case"zoomOut":a.scale>.2&&(a.scale=parseFloat((a.scale-i).toFixed(3)));break;case"zoomIn":a.scale=parseFloat((a.scale+i).toFixed(3));break;case"clocelise":a.deg+=r;break;case"anticlocelise":a.deg-=r;break}a.enableTransition=o}}},mounted:function(){this.deviceSupportInstall(),this.appendToBody&&document.body.appendChild(this.$el),this.$refs["el-image-viewer__wrapper"].focus()},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},am=om,sm=s(am,em,tm,!1,null,null,null);sm.options.__file="packages/image/src/image-viewer.vue";var lm=sm.exports,cm=function(){return void 0!==document.documentElement.style.objectFit},um={NONE:"none",CONTAIN:"contain",COVER:"cover",FILL:"fill",SCALE_DOWN:"scale-down"},dm="",hm={name:"ElImage",mixins:[v.a],inheritAttrs:!1,components:{ImageViewer:lm},props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3}},data:function(){return{loading:!0,error:!1,show:!this.lazy,imageWidth:0,imageHeight:0,showViewer:!1}},computed:{imageStyle:function(){var e=this.fit;return!this.$isServer&&e?cm()?{"object-fit":e}:this.getImageStyle(e):{}},alignCenter:function(){return!this.$isServer&&!cm()&&this.fit!==um.FILL},preview:function(){var e=this.previewSrcList;return Array.isArray(e)&&e.length>0},imageIndex:function(){var e=0,t=this.previewSrcList.indexOf(this.src);return t>=0&&(e=t),e}},watch:{src:function(e){this.show&&this.loadImage()},show:function(e){e&&this.loadImage()}},mounted:function(){this.lazy?this.addLazyLoadListener():this.loadImage()},beforeDestroy:function(){this.lazy&&this.removeLazyLoadListener()},methods:{loadImage:function(){var e=this;if(!this.$isServer){this.loading=!0,this.error=!1;var t=new Image;t.onload=function(n){return e.handleLoad(n,t)},t.onerror=this.handleError.bind(this),Object.keys(this.$attrs).forEach((function(n){var i=e.$attrs[n];t.setAttribute(n,i)})),t.src=this.src}},handleLoad:function(e,t){this.imageWidth=t.width,this.imageHeight=t.height,this.loading=!1,this.error=!1},handleError:function(e){this.loading=!1,this.error=!0,this.$emit("error",e)},handleLazyLoad:function(){Object(Be["isInContainer"])(this.$el,this._scrollContainer)&&(this.show=!0,this.removeLazyLoadListener())},addLazyLoadListener:function(){if(!this.$isServer){var e=this.scrollContainer,t=null;t=Object(hh["isHtmlElement"])(e)?e:Object(hh["isString"])(e)?document.querySelector(e):Object(Be["getScrollContainer"])(this.$el),t&&(this._scrollContainer=t,this._lazyLoadHandler=Lh()(200,this.handleLazyLoad),Object(Be["on"])(t,"scroll",this._lazyLoadHandler),this.handleLazyLoad())}},removeLazyLoadListener:function(){var e=this._scrollContainer,t=this._lazyLoadHandler;!this.$isServer&&e&&t&&(Object(Be["off"])(e,"scroll",t),this._scrollContainer=null,this._lazyLoadHandler=null)},getImageStyle:function(e){var t=this.imageWidth,n=this.imageHeight,i=this.$el,r=i.clientWidth,o=i.clientHeight;if(!t||!n||!r||!o)return{};var a=t/n<1;if(e===um.SCALE_DOWN){var s=tr)return console.warn("[ElementCalendar]end time should be greater than start time"),[];if(Object(ro["validateRangeInOneMonth"])(i,r))return[[i,r]];var o=[],a=new Date(i.getFullYear(),i.getMonth()+1,1),s=this.toDate(a.getTime()-Rm);if(!Object(ro["validateRangeInOneMonth"])(a,r))return console.warn("[ElementCalendar]start time and end time interval must not exceed two months"),[];o.push([i,s]);var l=this.realFirstDayOfWeek,c=a.getDay(),u=0;return c!==l&&(0===l?u=7-c:(u=l-c,u=u>0?u:7+u)),a=this.toDate(a.getTime()+u*Rm),a.getDate()6?0:Math.floor(this.firstDayOfWeek)}},data:function(){return{selectedDay:"",now:new Date}}},Dm=Nm,Im=s(Dm,vm,_m,!1,null,null,null);Im.options.__file="packages/calendar/src/main.vue";var Mm=Im.exports;Mm.install=function(e){e.component(Mm.name,Mm)};var km=Mm,Lm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-fade-in"}},[e.visible?n("div",{staticClass:"el-backtop",style:{right:e.styleRight,bottom:e.styleBottom},on:{click:function(t){return t.stopPropagation(),e.handleClick(t)}}},[e._t("default",[n("el-icon",{attrs:{name:"caret-top"}})])],2):e._e()])},Pm=[];Lm._withStripped=!0;var Fm=function(e){return Math.pow(e,3)},Bm=function(e){return e<.5?Fm(2*e)/2:1-Fm(2*(1-e))/2},$m={name:"ElBacktop",props:{visibilityHeight:{type:Number,default:200},target:[String],right:{type:Number,default:40},bottom:{type:Number,default:40}},data:function(){return{el:null,container:null,visible:!1}},computed:{styleBottom:function(){return this.bottom+"px"},styleRight:function(){return this.right+"px"}},mounted:function(){this.init(),this.throttledScrollHandler=Lh()(300,this.onScroll),this.container.addEventListener("scroll",this.throttledScrollHandler)},methods:{init:function(){if(this.container=document,this.el=document.documentElement,this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error("target is not existed: "+this.target);this.container=this.el}},onScroll:function(){var e=this.el.scrollTop;this.visible=e>=this.visibilityHeight},handleClick:function(e){this.scrollToTop(),this.$emit("click",e)},scrollToTop:function(){var e=this.el,t=Date.now(),n=e.scrollTop,i=window.requestAnimationFrame||function(e){return setTimeout(e,16)},r=function r(){var o=(Date.now()-t)/500;o<1?(e.scrollTop=n*(1-Bm(o)),i(r)):e.scrollTop=0};i(r)}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},Vm=$m,Gm=s(Vm,Lm,Pm,!1,null,null,null);Gm.options.__file="packages/backtop/src/main.vue";var Um=Gm.exports;Um.install=function(e){e.component(Um.name,Um)};var zm=Um,jm=function(e,t){if(e===window&&(e=document.documentElement),1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n},Hm=function(e){return Object.keys(e||{}).map((function(t){return[t,e[t]]}))},Wm=function(e,t){return e===window||e===document?document.documentElement[t]:e[t]},Ym=function(e){return Wm(e,"offsetHeight")},qm=function(e){return Wm(e,"clientHeight")},Km="ElInfiniteScroll",Qm={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Xm=function(e,t){return Object(hh["isHtmlElement"])(e)?Hm(Qm).reduce((function(n,i){var r=i[0],o=i[1],a=o.type,s=o.default,l=e.getAttribute("infinite-scroll-"+r);switch(l=Object(hh["isUndefined"])(t[l])?l:t[l],a){case Number:l=Number(l),l=Number.isNaN(l)?s:l;break;case Boolean:l=Object(hh["isDefined"])(l)?"false"!==l&&Boolean(l):s;break;default:l=a(l)}return n[r]=l,n}),{}):{}},Zm=function(e){return e.getBoundingClientRect().top},Jm=function(e){var t=this[Km],n=t.el,i=t.vm,r=t.container,o=t.observer,a=Xm(n,i),s=a.distance,l=a.disabled;if(!l){var c=r.getBoundingClientRect();if(c.width||c.height){var u=!1;if(r===n){var d=r.scrollTop+qm(r);u=r.scrollHeight-d<=s}else{var h=Ym(n)+Zm(n)-Zm(r),p=Ym(r),f=Number.parseFloat(jm(r,"borderBottomWidth"));u=h-p+f<=s}u&&Object(hh["isFunction"])(e)?e.call(i):o&&(o.disconnect(),this[Km].observer=null)}}},ev={name:"InfiniteScroll",inserted:function(e,t,n){var i=t.value,r=n.context,o=Object(Be["getScrollContainer"])(e,!0),a=Xm(e,r),s=a.delay,l=a.immediate,c=F()(s,Jm.bind(e,i));if(e[Km]={el:e,vm:r,container:o,onScroll:c},o&&(o.addEventListener("scroll",c),l)){var u=e[Km].observer=new MutationObserver(c);u.observe(o,{childList:!0,subtree:!0}),c()}},unbind:function(e){var t=e[Km],n=t.container,i=t.onScroll;n&&n.removeEventListener("scroll",i)},install:function(e){e.directive(ev.name,ev)}},tv=ev,nv=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-page-header"},[n("div",{staticClass:"el-page-header__left",on:{click:function(t){e.$emit("back")}}},[n("i",{staticClass:"el-icon-back"}),n("div",{staticClass:"el-page-header__title"},[e._t("title",[e._v(e._s(e.title))])],2)]),n("div",{staticClass:"el-page-header__content"},[e._t("content",[e._v(e._s(e.content))])],2)])},iv=[];nv._withStripped=!0;var rv={name:"ElPageHeader",props:{title:{type:String,default:function(){return Object(fs["t"])("el.pageHeader.title")}},content:String}},ov=rv,av=s(ov,nv,iv,!1,null,null,null);av.options.__file="packages/page-header/src/main.vue";var sv=av.exports;sv.install=function(e){e.component(sv.name,sv)};var lv=sv,cv=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-cascader-panel",e.border&&"is-bordered"],on:{keydown:e.handleKeyDown}},e._l(e.menus,(function(e,t){return n("cascader-menu",{key:t,ref:"menu",refInFor:!0,attrs:{index:t,nodes:e}})})),1)},uv=[];cv._withStripped=!0;var dv,hv,pv=n(43),fv=n.n(pv),gv=function(e){return e.stopPropagation()},mv={inject:["panel"],components:{ElCheckbox:ki.a,ElRadio:fv.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var e=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(t){return e.isInPath(t)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var e=this,t=this.panel,n=this.node,i=this.isDisabled,r=this.config,o=r.multiple,a=r.checkStrictly;!a&&i||n.loading||(r.lazy&&!n.loaded?t.lazyLoad(n,(function(){var t=e.isLeaf;if(t||e.handleExpand(),o){var i=!!t&&n.checked;e.handleMultiCheckChange(i)}})):t.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node,n=e[t.level-1]||{};return n.uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,i=this.config,r=i.checkStrictly,o=i.multiple;return o?this.renderCheckbox(e):r?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(e){var t=this.node,n=this.config,i=this.isDisabled,r={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(r.nativeOn.click=gv),e("el-checkbox",Zu()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:i}},r]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,i=this.isDisabled;return Object(_["isEqual"])(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:i},on:{change:this.handleCheckChange},nativeOn:{click:gv}},[e("span")])},renderCheckIcon:function(e){return e("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(e){return e("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(e){return e("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(e){var t=this.panel,n=this.node,i=t.renderLabelFn,r=i?i({node:n,data:n.data}):null;return e("span",{class:"el-cascader-node__label"},[r||n.label])}},render:function(e){var t=this,n=this.inActivePath,i=this.inCheckedPath,r=this.isChecked,o=this.isLeaf,a=this.isDisabled,s=this.config,l=this.nodeId,c=s.expandTrigger,u=s.checkStrictly,d=s.multiple,h=!u&&a,p={on:{}};return"click"===c?p.on.click=this.handleExpand:(p.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},p.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!o||a||u||d||(p.on.click=this.handleCheckChange),e("li",Zu()([{attrs:{role:"menuitem",id:l,"aria-expanded":n,tabindex:h?null:-1},class:{"el-cascader-node":!0,"is-selectable":u,"in-active-path":n,"in-checked-path":i,"is-active":r,"is-disabled":h}},p]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},vv=mv,_v=s(vv,dv,hv,!1,null,null,null);_v.options.__file="packages/cascader-panel/src/cascader-node.vue";var yv,bv,Sv=_v.exports,Ev={name:"ElCascaderMenu",mixins:[v.a],inject:["panel"],components:{ElScrollbar:H.a,CascaderNode:Sv},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(_["generateId"])()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t=this.activeNode,n=this.hoverTimer,i=this.$refs.hoverZone;if(t&&i)if(t.contains(e.target)){clearTimeout(n);var r=this.$el.getBoundingClientRect(),o=r.left,a=e.clientX-o,s=this.$el,l=s.offsetWidth,c=s.offsetHeight,u=t.offsetTop,d=u+t.offsetHeight;i.innerHTML='\n \n \n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,i={on:{}};n&&(i.on.expand=this.handleExpand);var r=this.nodes.map((function(n,r){var o=n.hasChildren;return e("cascader-node",Zu()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+r,"aria-haspopup":o,"aria-owns":o?t:null}},i]))}));return[].concat(r,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,i={nativeOn:{}};return this.panel.isHoverMenu&&(i.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",Zu()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},i]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},Cv=Ev,xv=s(Cv,yv,bv,!1,null,null,null);xv.options.__file="packages/cascader-panel/src/cascader-menu.vue";var wv=xv.exports,Tv=function(){function e(e,t){for(var n=0;n1?t-1:0),i=1;i1?i-1:0),o=1;o0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},Tv(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,i=n.disabled,r=n.checkStrictly;return e[i]||!r&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,i=this.children,r=this.config,o=r.lazy,a=r.leaf;if(o){var s=Object(Tt["isDef"])(e[a])?e[a]:!!t&&!i.length;return this.hasChildren=!s,s}return!n}}]),e}(),Nv=Rv;function Dv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Iv=function e(t,n){return t.reduce((function(t,i){return i.isLeaf?t.push(i):(!n&&t.push(i),t=t.concat(e(i.children,n))),t}),[])},Mv=function(){function e(t,n){Dv(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(_["coerceTruthyValueToArray"])(e),this.nodes=e.map((function(e){return new Nv(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new Nv(e,this.config,t),i=t?t.children:this.nodes;i.push(n)},e.prototype.appendNodes=function(e,t){var n=this;e=Object(_["coerceTruthyValueToArray"])(e),e.forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:Iv(this.nodes,e)},e.prototype.getNodeByValue=function(e){if(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(_["valueEquals"])(t.path,e)||t.value===e}));return t&&t.length?t[0]:null}return null},e}(),kv=Mv,Lv=Object.assign||function(e){for(var t=1;t0){var l=n.store.getNodeByValue(o);l.data[s]||n.lazyLoad(l,(function(){n.handleExpand(l)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(i)};i.lazyLoad(e,r)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){if(!this.$isServer){var e=this.$refs.menu||[];e.forEach((function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),i=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");ni()(n,i)}}))}},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue,n=this.multiple;if(n){var i=this.getFlattedNodes(e);return i.filter((function(e){return e.checked}))}return Object(_["isEmpty"])(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,i=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=i?[]:null}}},jv=zv,Hv=s(jv,cv,uv,!1,null,null,null);Hv.options.__file="packages/cascader-panel/src/cascader-panel.vue";var Wv=Hv.exports;Wv.install=function(e){e.component(Wv.name,Wv)};var Yv,qv,Kv=Wv,Qv={name:"ElAvatar",props:{size:{type:[Number,String],validator:function(e){return"string"===typeof e?["large","medium","small"].includes(e):"number"===typeof e}},shape:{type:String,default:"circle",validator:function(e){return["circle","square"].includes(e)}},icon:String,src:String,alt:String,srcSet:String,error:Function,fit:{type:String,default:"cover"}},data:function(){return{isImageExist:!0}},computed:{avatarClass:function(){var e=this.size,t=this.icon,n=this.shape,i=["el-avatar"];return e&&"string"===typeof e&&i.push("el-avatar--"+e),t&&i.push("el-avatar--icon"),n&&i.push("el-avatar--"+n),i.join(" ")}},methods:{handleError:function(){var e=this.error,t=e?e():void 0;!1!==t&&(this.isImageExist=!1)},renderAvatar:function(){var e=this.$createElement,t=this.icon,n=this.src,i=this.alt,r=this.isImageExist,o=this.srcSet,a=this.fit;return r&&n?e("img",{attrs:{src:n,alt:i,srcSet:o},on:{error:this.handleError},style:{"object-fit":a}}):t?e("i",{class:t}):this.$slots.default}},render:function(){var e=arguments[0],t=this.avatarClass,n=this.size,i="number"===typeof n?{height:n+"px",width:n+"px",lineHeight:n+"px"}:{};return e("span",{class:t,style:i},[this.renderAvatar()])}},Xv=Qv,Zv=s(Xv,Yv,qv,!1,null,null,null);Zv.options.__file="packages/avatar/src/main.vue";var Jv=Zv.exports;Jv.install=function(e){e.component(Jv.name,Jv)};var e_=Jv,t_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-drawer-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-drawer__wrapper",attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-drawer__container",class:e.visible&&"el-drawer__open",attrs:{role:"document",tabindex:"-1"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{ref:"drawer",staticClass:"el-drawer",class:[e.direction,e.customClass],style:e.isHorizontal?"width: "+e.size:"height: "+e.size,attrs:{"aria-modal":"true","aria-labelledby":"el-drawer__title","aria-label":e.title,role:"dialog",tabindex:"-1"}},[e.withHeader?n("header",{staticClass:"el-drawer__header",attrs:{id:"el-drawer__title"}},[e._t("title",[n("span",{attrs:{role:"heading",title:e.title}},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-drawer__close-btn",attrs:{"aria-label":"close "+(e.title||"drawer"),type:"button"},on:{click:e.closeDrawer}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2):e._e(),e.rendered?n("section",{staticClass:"el-drawer__body"},[e._t("default")],2):e._e()])])])])},n_=[];t_._withStripped=!0;var i_={name:"ElDrawer",mixins:[x.a,O.a],props:{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Function},customClass:{type:String,default:""},closeOnPressEscape:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},direction:{type:String,default:"rtl",validator:function(e){return-1!==["ltr","rtl","ttb","btt"].indexOf(e)}},modalAppendToBody:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},size:{type:String,default:"30%"},title:{type:String,default:""},visible:{type:Boolean},wrapperClosable:{type:Boolean,default:!0},withHeader:{type:Boolean,default:!0}},computed:{isHorizontal:function(){return"rtl"===this.direction||"ltr"===this.direction}},data:function(){return{closed:!1,prevActiveElement:null}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.appendToBody&&document.body.appendChild(this.$el),this.prevActiveElement=document.activeElement):(this.closed||this.$emit("close"),this.$nextTick((function(){t.prevActiveElement&&t.prevActiveElement.focus()})))}},methods:{afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1),this.closed=!0)},handleWrapperClick:function(){this.wrapperClosable&&this.closeDrawer()},closeDrawer:function(){"function"===typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},handleClose:function(){this.closeDrawer()}},mounted:function(){this.visible&&(this.rendered=!0,this.open())},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},r_=i_,o_=s(r_,t_,n_,!1,null,null,null);o_.options.__file="packages/drawer/src/main.vue";var a_=o_.exports;a_.install=function(e){e.component(a_.name,a_)};var s_=a_,l_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-popover",e._b({attrs:{trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},"el-popover",e.$attrs,!1),[n("div",{staticClass:"el-popconfirm"},[n("p",{staticClass:"el-popconfirm__main"},[e.hideIcon?e._e():n("i",{staticClass:"el-popconfirm__icon",class:e.icon,style:{color:e.iconColor}}),e._v("\n "+e._s(e.title)+"\n ")]),n("div",{staticClass:"el-popconfirm__action"},[n("el-button",{attrs:{size:"mini",type:e.cancelButtonType},on:{click:e.cancel}},[e._v("\n "+e._s(e.displayCancelButtonText)+"\n ")]),n("el-button",{attrs:{size:"mini",type:e.confirmButtonType},on:{click:e.confirm}},[e._v("\n "+e._s(e.displayConfirmButtonText)+"\n ")])],1)]),e._t("reference",null,{slot:"reference"})],2)},c_=[];l_._withStripped=!0;var u_=n(44),d_=n.n(u_),h_={name:"ElPopconfirm",props:{title:{type:String},confirmButtonText:{type:String},cancelButtonText:{type:String},confirmButtonType:{type:String,default:"primary"},cancelButtonType:{type:String,default:"text"},icon:{type:String,default:"el-icon-question"},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1}},components:{ElPopover:d_.a,ElButton:ae.a},data:function(){return{visible:!1}},computed:{displayConfirmButtonText:function(){return this.confirmButtonText||Object(fs["t"])("el.popconfirm.confirmButtonText")},displayCancelButtonText:function(){return this.cancelButtonText||Object(fs["t"])("el.popconfirm.cancelButtonText")}},methods:{confirm:function(){this.visible=!1,this.$emit("confirm")},cancel:function(){this.visible=!1,this.$emit("cancel")}}},p_=h_,f_=s(p_,l_,c_,!1,null,null,null);f_.options.__file="packages/popconfirm/src/main.vue";var g_=f_.exports;g_.install=function(e){e.component(g_.name,g_)};var m_=g_,v_=[b,M,re,pe,be,Ae,He,et,ct,mt,Dt,$t,Wt,en,ln,gn,En,Rn,Pn,li,ci,mi,Ci,Ni,Yr,to,Ra,Ga,es,cs,ds,zs,Qs,il,_l,$l,ql,Jl,Oc,Pc,hu,Fu,$u,Uu,Sd,Od,Ld,nh,ch,vh,xh,Dh,Vh,Hh,Jh,ap,pp,Op,Rf,Uf,Kf,ng,cg,mg,wg,Ng,Fg,jg,Xg,mm,km,zm,lv,Kv,e_,s_,m_,Ye.a],__=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};gs.a.use(t.locale),gs.a.i18n(t.i18n),v_.forEach((function(t){e.component(t.name,t)})),e.use(tv),e.use(Nu.directive),e.prototype.$ELEMENT={size:t.size||"",zIndex:t.zIndex||2e3},e.prototype.$loading=Nu.service,e.prototype.$msgbox=Ps,e.prototype.$alert=Ps.alert,e.prototype.$confirm=Ps.confirm,e.prototype.$prompt=Ps.prompt,e.prototype.$notify=Qc,e.prototype.$message=Kd};"undefined"!==typeof window&&window.Vue&&__(window.Vue);t["default"]={version:"2.15.0",locale:gs.a.use,i18n:gs.a.i18n,install:__,CollapseTransition:Ye.a,Loading:Nu,Pagination:b,Dialog:M,Autocomplete:re,Dropdown:pe,DropdownMenu:be,DropdownItem:Ae,Menu:He,Submenu:et,MenuItem:ct,MenuItemGroup:mt,Input:Dt,InputNumber:$t,Radio:Wt,RadioGroup:en,RadioButton:ln,Checkbox:gn,CheckboxButton:En,CheckboxGroup:Rn,Switch:Pn,Select:li,Option:ci,OptionGroup:mi,Button:Ci,ButtonGroup:Ni,Table:Yr,TableColumn:to,DatePicker:Ra,TimeSelect:Ga,TimePicker:es,Popover:cs,Tooltip:ds,MessageBox:Ps,Breadcrumb:zs,BreadcrumbItem:Qs,Form:il,FormItem:_l,Tabs:$l,TabPane:ql,Tag:Jl,Tree:Oc,Alert:Pc,Notification:Qc,Slider:hu,Icon:Fu,Row:$u,Col:Uu,Upload:Sd,Progress:Od,Spinner:Ld,Message:Kd,Badge:nh,Card:ch,Rate:vh,Steps:xh,Step:Dh,Carousel:Vh,Scrollbar:Hh,CarouselItem:Jh,Collapse:ap,CollapseItem:pp,Cascader:Op,ColorPicker:Rf,Transfer:Uf,Container:Kf,Header:ng,Aside:cg,Main:mg,Footer:wg,Timeline:Ng,TimelineItem:Fg,Link:jg,Divider:Xg,Image:mm,Calendar:km,Backtop:zm,InfiniteScroll:tv,PageHeader:lv,CascaderPanel:Kv,Avatar:e_,Drawer:s_,Popconfirm:m_}}])["default"]},"5ce2":function(e,t,n){n("3970"),n("480e")},"5dfb":function(e,t){e.exports=function(e){var t={keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"};return{aliases:["k","kdb"],keywords:t,lexemes:/(`?)[A-Za-z0-9_]+\b/,contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}},"5e68":function(e,t,n){var i=n("6d8b"),r=n("2cf4"),o=r.devicePixelRatio,a=n("2b61"),s=n("dc2f");function l(){return!1}function c(e,t,n){var r=i.createCanvas(),o=t.getWidth(),a=t.getHeight(),s=r.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=o+"px",s.height=a+"px",r.setAttribute("data-zr-dom-id",e)),r.width=o*n,r.height=a*n,r}var u=function(e,t,n){var r;n=n||o,"string"===typeof e?r=c(e,t,n):i.isObject(e)&&(r=e,e=r.id),this.id=e,this.dom=r;var a=r.style;a&&(r.onselectstart=l,a["-webkit-user-select"]="none",a["user-select"]="none",a["-webkit-touch-callout"]="none",a["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",a["padding"]=0,a["margin"]=0,a["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=t,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};u.prototype={constructor:u,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var e=this.dpr;this.domBack=c("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},resize:function(e,t){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=e+"px",r.height=t+"px"),i.width=e*n,i.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},clear:function(e,t){var n,i=this.dom,r=this.ctx,o=i.width,l=i.height,c=(t=t||this.clearColor,this.motionBlur&&!e),u=this.lastFrameAlpha,d=this.dpr;(c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/d,l/d)),r.clearRect(0,0,o,l),t&&"transparent"!==t)&&(t.colorStops?(n=t.__canvasGradient||a.getGradient(r,t,{x:0,y:0,width:o,height:l}),t.__canvasGradient=n):t.image&&(n=s.prototype.getCanvasPattern.call(t,r)),r.save(),r.fillStyle=n||t,r.fillRect(0,0,o,l),r.restore());if(c){var h=this.domBack;r.save(),r.globalAlpha=u,r.drawImage(h,0,0,o,l),r.restore()}}};var d=u;e.exports=d},"5e76":function(e,t,n){var i=n("d51b"),r=new i(50);function o(e){if("string"===typeof e){var t=r.get(e);return t&&t.image}return e}function a(e,t,n,i,o){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var a=r.get(e),c={hostEl:n,cb:i,cbPayload:o};return a?(t=a.image,!l(t)&&a.pending.push(c)):(t=new Image,t.onload=t.onerror=s,r.put(e,t.__cachedImgObj={image:t,pending:[c]}),t.src=t.__zrImageSrc=e),t}return e}return t}function s(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=0;a--)null==n[a]&&(delete r[t[a]],t.pop())}function f(e,t){var n=e.visual,r=[];i.isObject(n)?s(n,(function(e){r.push(e)})):null!=n&&r.push(n);var o={color:1,symbol:1};t||1!==r.length||o.hasOwnProperty(e.type)||(r[1]=r[0]),E(e,r)}function g(e){return{applyVisual:function(t,n,i){t=this.mapValueToVisual(t),i("color",e(n("color"),t))},_doMap:b([0,1])}}function m(e){var t=this.option.visual;return t[Math.round(a(e,[0,1],[0,t.length-1],!0))]||{}}function v(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function _(e){var t=this.option.visual;return t[this.option.loop&&e!==c?e%t.length:e]}function y(){return this.option.visual[0]}function b(e){return{linear:function(t){return a(t,e,this.option.visual,!0)},category:_,piecewise:function(t,n){var i=S.call(this,n);return null==i&&(i=a(t,e,this.option.visual,!0)),i},fixed:y}}function S(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=u.findPieceIndex(e,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function E(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=i.map(t,(function(e){return r.parse(e)}))),t}var C={linear:function(e){return a(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=u.findPieceIndex(e,t,!0);if(null!=n)return a(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?c:t},fixed:i.noop};function x(e,t,n){return e?t<=n:t=0;if(r){var o="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];o&&d(e,o,t,n)}else d(e,t,t,n),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3;var a=t.button;return null==t.which&&void 0!==a&&c.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function g(e,t,n,i){l?e.addEventListener(t,n,i):e.attachEvent("on"+t,n)}function m(e,t,n,i){l?e.removeEventListener(t,n,i):e.detachEvent("on"+t,n)}var v=l?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};function _(e){return 2===e.which||3===e.which}function y(e){return e.which>1}t.clientToLocal=d,t.getNativeEvent=p,t.normalizeEvent=f,t.addEventListener=g,t.removeEventListener=m,t.stop=v,t.isMiddleOrRightButtonOnMouseUpDown=_,t.notLeftMouse=y},"60ae":function(e,t,n){var i,r,o=n("da84"),a=n("b39a"),s=o.process,l=s&&s.versions,c=l&&l.v8;c?(i=c.split("."),r=i[0]+i[1]):a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=i[1]))),e.exports=r&&+r},"60d7":function(e,t,n){var i=n("2306"),r=n("e887"),o=.3,a=r.extend({type:"parallel",init:function(){this._dataGroup=new i.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(e,t,n,r){var o=this._dataGroup,a=e.getData(),h=this._data,p=e.coordinateSystem,f=p.dimensions,g=u(e);function m(e){var t=c(a,o,e,f,p);d(t,a,e,g)}function v(t,n){var o=h.getItemGraphicEl(n),s=l(a,t,f,p);a.setItemGraphicEl(t,o);var c=r&&!1===r.animation?null:e;i.updateProps(o,{shape:{points:s}},c,t),d(o,a,t,g)}function _(e){var t=h.getItemGraphicEl(e);o.remove(t)}if(a.diff(h).add(m).update(v).remove(_).execute(),!this._initialized){this._initialized=!0;var y=s(p,e,(function(){setTimeout((function(){o.removeClipPath()}))}));o.setClipPath(y)}this._data=a},incrementalPrepareRender:function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(e,t,n){for(var i=t.getData(),r=t.coordinateSystem,o=r.dimensions,a=u(t),s=e.start;su){var p,f=c(arguments[u++]),g=d?o(f).concat(d(f)):o(f),m=g.length,v=0;while(m>v)p=g[v++],i&&!h.call(f,p)||(n[p]=f[p])}return n}:u},"60e3":function(e,t,n){var i=n("6d8b"),r={get:function(e,t,n){var r=i.clone((o[e]||{})[t]);return n&&i.isArray(r)?r[r.length-1]:r}},o={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},a=r;e.exports=a},6113:function(e,t){e.exports=function(e){var t="[a-zA-Z-][a-zA-Z0-9_-]*",n={className:"variable",begin:"(\\$"+t+")\\b"},i={className:"number",begin:"#[0-9A-Fa-f]+"};e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE;return{case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"\\#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},{className:"selector-attr",begin:"\\[",end:"\\]",illegal:"$"},{className:"selector-tag",begin:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",relevance:0},{begin:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{begin:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},n,{className:"attribute",begin:"\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",illegal:"[^\\s]"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[n,i,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"meta",begin:"!important"}]},{begin:"@",end:"[{;]",keywords:"mixin include extend for if else each while charset import debug media page content font-face namespace warn",contains:[n,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,i,e.CSS_NUMBER_MODE,{begin:"\\s[A-Za-z0-9_.-]+",relevance:0}]}]}}},"612a":function(e,t){e.exports=function(e){var t={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4dPromise"},n="[a-zA-Z_][a-zA-Z0-9\\._]*",i={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},r={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},o={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:n,returnEnd:!1}},a={begin:n+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:n,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},s={begin:n+"\\s*{",end:"{",returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:n})]};return{aliases:["qt"],case_insensitive:!1,keywords:t,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},r,i,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},o,a,s],illegal:/#/}}},6167:function(e,t,n){"use strict";var i,r;"function"===typeof Symbol&&Symbol.iterator;(function(o,a){i=a,r="function"===typeof i?i.call(t,n,t,e):i,void 0===r||(e.exports=r)})(0,(function(){var e=window,t={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function n(e,n,i){this._reference=e.jquery?e[0]:e,this.state={};var r="undefined"===typeof n||null===n,o=n&&"[object Object]"===Object.prototype.toString.call(n);return this._popper=r||o?this.parse(o?n:{}):n.jquery?n[0]:n,this._options=Object.assign({},t,i),this._options.modifiers=this._options.modifiers.map(function(e){if(-1===this._options.modifiersIgnored.indexOf(e))return"applyStyle"===e&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[e]||e}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),d(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function i(t){var n=t.style.display,i=t.style.visibility;t.style.display="block",t.style.visibility="hidden";t.offsetWidth;var r=e.getComputedStyle(t),o=parseFloat(r.marginTop)+parseFloat(r.marginBottom),a=parseFloat(r.marginLeft)+parseFloat(r.marginRight),s={width:t.offsetWidth+a,height:t.offsetHeight+o};return t.style.display=n,t.style.visibility=i,s}function r(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function o(e){var t=Object.assign({},e);return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function a(e,t){var n,i=0;for(n in e){if(e[n]===t)return i;i++}return null}function s(t,n){var i=e.getComputedStyle(t,null);return i[n]}function l(t){var n=t.offsetParent;return n!==e.document.body&&n?n:e.document.documentElement}function c(t){var n=t.parentNode;return n?n===e.document?e.document.body.scrollTop||e.document.body.scrollLeft?e.document.body:e.document.documentElement:-1!==["scroll","auto"].indexOf(s(n,"overflow"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-x"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-y"))?n:c(t.parentNode):t}function u(t){return t!==e.document.body&&("fixed"===s(t,"position")||(t.parentNode?u(t.parentNode):t))}function d(e,t){function n(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}Object.keys(t).forEach((function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&n(t[i])&&(r="px"),e.style[i]=t[i]+r}))}function h(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function p(e){var t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function f(e){var t=e.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf("MSIE"),i=n&&"HTML"===e.tagName?-e.scrollTop:t.top;return{left:t.left,top:i,right:t.right,bottom:t.bottom,width:t.right-t.left,height:t.bottom-i}}function g(e,t,n){var i=f(e),r=f(t);if(n){var o=c(t);r.top+=o.scrollTop,r.bottom+=o.scrollTop,r.left+=o.scrollLeft,r.right+=o.scrollLeft}var a={top:i.top-r.top,left:i.left-r.left,bottom:i.top-r.top+i.height,right:i.left-r.left+i.width,width:i.width,height:i.height};return a}function m(t){for(var n=["","ms","webkit","moz","o"],i=0;i1&&console.warn("WARNING: the given `parent` query("+t.parent+") matched more than one element, the first one will be used"),0===a.length)throw"ERROR: the given `parent` doesn't exists!";a=a[0]}return a.length>1&&a instanceof Element===!1&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),a=a[0]),a.appendChild(r),r;function s(e,t){t.forEach((function(t){e.classList.add(t)}))}function l(e,t){t.forEach((function(t){e.setAttribute(t.split(":")[0],t.split(":")[1]||"")}))}},n.prototype._getPosition=function(e,t){var n=l(t);if(this._options.forceAbsolute)return"absolute";var i=u(t,n);return i?"fixed":"absolute"},n.prototype._getOffsets=function(e,t,n){n=n.split("-")[0];var r={};r.position=this.state.position;var o="fixed"===r.position,a=g(t,l(e),o),s=i(e);return-1!==["right","left"].indexOf(n)?(r.top=a.top+a.height/2-s.height/2,r.left="left"===n?a.left-s.width:a.right):(r.left=a.left+a.width/2-s.width/2,r.top="top"===n?a.top-s.height:a.bottom),r.width=s.width,r.height=s.height,{popper:r,reference:a}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),e.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var t=c(this._reference);t!==e.document.body&&t!==e.document.documentElement||(t=e),t.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=t}},n.prototype._removeEventListeners=function(){e.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(t,n,i){var r,o,a={};if("window"===i){var s=e.document.body,u=e.document.documentElement;o=Math.max(s.scrollHeight,s.offsetHeight,u.clientHeight,u.scrollHeight,u.offsetHeight),r=Math.max(s.scrollWidth,s.offsetWidth,u.clientWidth,u.scrollWidth,u.offsetWidth),a={top:0,right:r,bottom:o,left:0}}else if("viewport"===i){var d=l(this._popper),h=c(this._popper),f=p(d),g=function(e){return e==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},m=function(e){return e==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):e.scrollLeft},v="fixed"===t.offsets.popper.position?0:g(h),_="fixed"===t.offsets.popper.position?0:m(h);a={top:0-(f.top-v),right:e.document.documentElement.clientWidth-(f.left-_),bottom:e.document.documentElement.clientHeight-(f.top-v),left:0-(f.left-_)}}else a=l(this._popper)===i?{top:0,left:0,right:i.clientWidth,bottom:i.clientHeight}:p(i);return a.left+=n,a.right-=n,a.top=a.top+n,a.bottom=a.bottom-n,a},n.prototype.runModifiers=function(e,t,n){var i=t.slice();return void 0!==n&&(i=this._options.modifiers.slice(0,a(this._options.modifiers,n))),i.forEach(function(t){h(t)&&(e=t.call(this,e))}.bind(this)),e},n.prototype.isModifierRequired=function(e,t){var n=a(this._options.modifiers,e);return!!this._options.modifiers.slice(0,n).filter((function(e){return e===t})).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(e){var t,n={position:e.offsets.popper.position},i=Math.round(e.offsets.popper.left),r=Math.round(e.offsets.popper.top);return this._options.gpuAcceleration&&(t=m("transform"))?(n[t]="translate3d("+i+"px, "+r+"px, 0)",n.top=0,n.left=0):(n.left=i,n.top=r),Object.assign(n,e.styles),d(this._popper,n),this._popper.setAttribute("x-placement",e.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&e.offsets.arrow&&d(e.arrowElement,e.offsets.arrow),e},n.prototype.modifiers.shift=function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets.reference,a=o(e.offsets.popper),s={y:{start:{top:r.top},end:{top:r.top+r.height-a.height}},x:{start:{left:r.left},end:{left:r.left+r.width-a.width}}},l=-1!==["bottom","top"].indexOf(n)?"x":"y";e.offsets.popper=Object.assign(a,s[l][i])}return e},n.prototype.modifiers.preventOverflow=function(e){var t=this._options.preventOverflowOrder,n=o(e.offsets.popper),i={left:function(){var t=n.left;return n.lefte.boundaries.right&&(t=Math.min(n.left,e.boundaries.right-n.width)),{left:t}},top:function(){var t=n.top;return n.tope.boundaries.bottom&&(t=Math.min(n.top,e.boundaries.bottom-n.height)),{top:t}}};return t.forEach((function(t){e.offsets.popper=Object.assign(n,i[t]())})),e},n.prototype.modifiers.keepTogether=function(e){var t=o(e.offsets.popper),n=e.offsets.reference,i=Math.floor;return t.righti(n.right)&&(e.offsets.popper.left=i(n.right)),t.bottomi(n.bottom)&&(e.offsets.popper.top=i(n.bottom)),e},n.prototype.modifiers.flip=function(e){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),e;if(e.flipped&&e.placement===e._originalPlacement)return e;var t=e.placement.split("-")[0],n=r(t),i=e.placement.split("-")[1]||"",a=[];return a="flip"===this._options.flipBehavior?[t,n]:this._options.flipBehavior,a.forEach(function(s,l){if(t===s&&a.length!==l+1){t=e.placement.split("-")[0],n=r(t);var c=o(e.offsets.popper),u=-1!==["right","bottom"].indexOf(t);(u&&Math.floor(e.offsets.reference[t])>Math.floor(c[n])||!u&&Math.floor(e.offsets.reference[t])s[p]&&(e.offsets.popper[d]+=l[d]+f-s[p]);var g=l[d]+(n||l[u]/2-f/2),m=g-s[d];return m=Math.max(Math.min(s[u]-f-8,m),8),r[d]=m,r[h]="",e.offsets.arrow=r,e.arrowElement=t,e},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n65535?y:S}function C(e){var t=e.constructor;return t===Array?e.slice():new t(e)}var x=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],w=["_extent","_approximateExtent","_rawExtent"];function T(e,t){r.each(x.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,r.each(w,(function(n){e[n]=r.clone(t[n])})),e._calculationInfo=r.extend(t._calculationInfo)}var A=function(e,t){e=e||["x","y"];for(var n={},i=[],o={},a=0;a=0?this._indices[e]:-1}function k(e,t){var n=e._idList[t];return null==n&&(n=D(e,e._idDimIdx,t)),null==n&&(n=v+t),n}function L(e){return r.isArray(e)||(e=[e]),e}function P(e,t){var n=e.dimensions,i=new A(r.map(n,e.getDimensionInfo,e),e.hostModel);T(i,e);for(var o=i._storage={},a=e._storage,s=0;s=0?(o[l]=F(a[l]),i._rawExtent[l]=B(),i._extent[l]=null):o[l]=a[l])}return i}function F(e){for(var t=new Array(e.length),n=0;ny[1]&&(y[1]=_)}t&&(this._nameList[p]=t[f])}this._rawCount=this._count=l,this._extent={},N(this)},O._initDataFromProvider=function(e,t){if(!(e>=t)){for(var n,i=this._chunkSize,r=this._rawData,o=this._storage,a=this.dimensions,s=a.length,l=this._dimensionInfos,c=this._nameList,u=this._idList,d=this._rawExtent,h=this._nameRepeatCount={},p=this._chunkCount,f=0;fx[1]&&(x[1]=C)}if(!r.pure){var w=c[_];if(v&&null==w)if(null!=v.name)c[_]=w=v.name;else if(null!=n){var T=a[n],A=o[T][y];if(A){w=A[b];var O=l[T].ordinalMeta;O&&O.categories.length&&(w=O.categories[w])}}var D=null==v?null:v.id;null==D&&null!=w&&(h[w]=h[w]||0,D=w,h[w]>0&&(D+="__ec__"+h[w]),h[w]++),null!=D&&(u[_]=D)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent={},N(this)}},O.count=function(){return this._count},O.getIndices=function(){var e=this._indices;if(e){var t=e.constructor,n=this._count;if(t===Array){r=new t(n);for(var i=0;i=0&&t=0&&ts&&(s=c)}return i=[a,s],this._extent[e]=i,i},O.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(e)},O.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},O.getCalculationInfo=function(e){return this._calculationInfo[e]},O.setCalculationInfo=function(e,t){f(e)?r.extend(this._calculationInfo,e):this._calculationInfo[e]=t},O.getSum=function(e){var t=this._storage[e],n=0;if(t)for(var i=0,r=this.count();i=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&ne))return o;r=o-1}}return-1},O.indicesOfNearest=function(e,t,n){var i=this._storage,r=i[e],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,c=0,u=this.count();c=0&&s<0)&&(a=h,s=d,l=0),d===s&&(o[l++]=c))}return o.length=l,o},O.getRawIndex=I,O.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],n=0;n=c&&_<=u||isNaN(_))&&(a[s++]=h),h++}d=!0}else if(2===i){p=this._storage[l];var y=this._storage[t[1]],b=e[t[1]][0],S=e[t[1]][1];for(f=0;f=c&&_<=u||isNaN(_))&&(x>=b&&x<=S||isNaN(x))&&(a[s++]=h),h++}}d=!0}}if(!d)if(1===i)for(v=0;v=c&&_<=u||isNaN(_))&&(a[s++]=w)}else for(v=0;ve[A][1])&&(T=!1)}T&&(a[s++]=this.getRawIndex(v))}return sE[1]&&(E[1]=S)}}}return o},O.downSample=function(e,t,n,i){for(var r=P(this,[e]),o=r._storage,a=[],s=Math.floor(1/t),l=o[e],c=this.count(),u=this._chunkSize,d=r._rawExtent[e],h=new(E(this))(c),p=0,f=0;fc-f&&(s=c-f,a.length=s);for(var g=0;gd[1]&&(d[1]=y),h[p++]=b}return r._count=p,r._indices=h,r.getRawIndex=M,r},O.getItemModel=function(e){var t=this.hostModel;return new o(this.getRawDataItem(e),t,t&&t.ecModel)},O.diff=function(e){var t=this;return new a(e?e.getIndices():[],this.getIndices(),(function(t){return k(e,t)}),(function(e){return k(t,e)}))},O.getVisual=function(e){var t=this._visual;return t&&t[e]},O.setVisual=function(e,t){if(f(e))for(var n in e)e.hasOwnProperty(n)&&this.setVisual(n,e[n]);else this._visual=this._visual||{},this._visual[e]=t},O.setLayout=function(e,t){if(f(e))for(var n in e)e.hasOwnProperty(n)&&this.setLayout(n,e[n]);else this._layout[e]=t},O.getLayout=function(e){return this._layout[e]},O.getItemLayout=function(e){return this._itemLayouts[e]},O.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?r.extend(this._itemLayouts[e]||{},t):t},O.clearItemLayouts=function(){this._itemLayouts.length=0},O.getItemVisual=function(e,t,n){var i=this._itemVisuals[e],r=i&&i[t];return null!=r||n?r:this.getVisual(t)},O.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{},r=this.hasItemVisual;if(this._itemVisuals[e]=i,f(t))for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o],r[o]=!0);else i[t]=n,r[t]=!0},O.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var $=function(e){e.seriesIndex=this.seriesIndex,e.dataIndex=this.dataIndex,e.dataType=this.dataType};O.setItemGraphicEl=function(e,t){var n=this.hostModel;t&&(t.dataIndex=e,t.dataType=this.dataType,t.seriesIndex=n&&n.seriesIndex,"group"===t.type&&t.traverse($,t)),this._graphicEls[e]=t},O.getItemGraphicEl=function(e){return this._graphicEls[e]},O.eachItemGraphicEl=function(e,t){r.each(this._graphicEls,(function(n,i){n&&e&&e.call(t,n,i)}))},O.cloneShallow=function(e){if(!e){var t=r.map(this.dimensions,this.getDimensionInfo,this);e=new A(t,this.hostModel)}if(e._storage=this._storage,T(e,this),this._indices){var n=this._indices.constructor;e._indices=new n(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?M:I,e},O.wrapMethod=function(e,t){var n=this[e];"function"===typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(r.slice(arguments)))})},O.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],O.CHANGABLE_METHODS=["filterSelf","selectRange"];var V=A;e.exports=V},"620b":function(e,t,n){var i=n("401b"),r=i.distance;function o(e,t,n,i,r,o,a){var s=.5*(n-e),l=.5*(i-t);return(2*(t-n)+s+l)*a+(-3*(t-n)-2*s-l)*o+s*r+t}function a(e,t){for(var n=e.length,i=[],a=0,s=1;sn-2?n-1:p+1],d=e[p>n-3?n-1:p+2]);var m=f*f,v=f*m;i.push([o(c[0],g[0],u[0],d[0],f,m,v),o(c[1],g[1],u[1],d[1],f,m,v)])}return i}e.exports=a},6220:function(e,t,n){var i=n("fc48");e.exports=Array.isArray||function(e){return"Array"==i(e)}},"625e":function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),o=".",a="___EC__COMPONENT__CONTAINER___";function s(e){var t={main:"",sub:""};return e&&(e=e.split(o),t.main=e[0]||"",t.sub=e[1]||""),t}function l(e){r.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function c(e,t){e.$constructor=e,e.extend=function(e){var t=this,n=function(){e.$constructor?e.$constructor.apply(this,arguments):t.apply(this,arguments)};return r.extend(n.prototype,e),n.extend=this.extend,n.superCall=h,n.superApply=p,r.inherits(n,this),n.superClass=t,n}}var u=0;function d(e){var t=["__\0is_clz",u++,Math.random().toFixed(3)].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function h(e,t){var n=r.slice(arguments,2);return this.superClass.prototype[t].apply(e,n)}function p(e,t,n){return this.superClass.prototype[t].apply(e,n)}function f(e,t){t=t||{};var n={};function i(e){var t=n[e.main];return t&&t[a]||(t=n[e.main]={},t[a]=!0),t}if(e.registerClass=function(e,t){if(t)if(l(t),t=s(t),t.sub){if(t.sub!==a){var r=i(t);r[t.sub]=e}}else n[t.main]=e;return e},e.getClass=function(e,t,i){var r=n[e];if(r&&r[a]&&(r=t?r[t]:null),i&&!r)throw new Error(t?"Component "+e+"."+(t||"")+" not exists. Load it first.":e+".type should be specified.");return r},e.getClassesByMainType=function(e){e=s(e);var t=[],i=n[e.main];return i&&i[a]?r.each(i,(function(e,n){n!==a&&t.push(e)})):t.push(i),t},e.hasClass=function(e){return e=s(e),!!n[e.main]},e.getAllClassMainTypes=function(){var e=[];return r.each(n,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){e=s(e);var t=n[e.main];return t&&t[a]},e.parseClassType=s,t.registerWhenExtend){var o=e.extend;o&&(e.extend=function(t){var n=o.call(this,t);return e.registerClass(n,t.type)})}return e}function g(e,t){}t.parseClassType=s,t.enableClassExtend=c,t.enableClassCheck=d,t.enableClassManagement=f,t.setReadOnly=g},"627c":function(e,t,n){var i=n("6d8b"),r=n("3eba"),o=n("2306"),a=n("f934"),s=a.getLayoutRect,l=n("eda2"),c=l.windowOpen;r.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),r.extendComponentView({type:"title",render:function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,a=e.getModel("textStyle"),l=e.getModel("subtextStyle"),u=e.get("textAlign"),d=i.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),h=new o.Text({style:o.setTextStyle({},a,{text:e.get("text"),textFill:a.getTextColor()},{disableBox:!0}),z2:10}),p=h.getBoundingRect(),f=e.get("subtext"),g=new o.Text({style:o.setTextStyle({},l,{text:f,textFill:l.getTextColor(),y:p.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),m=e.get("link"),v=e.get("sublink"),_=e.get("triggerEvent",!0);h.silent=!m&&!_,g.silent=!v&&!_,m&&h.on("click",(function(){c(m,"_"+e.get("target"))})),v&&g.on("click",(function(){c(v,"_"+e.get("subtarget"))})),h.eventData=g.eventData=_?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(h),f&&r.add(g);var y=r.getBoundingRect(),b=e.getBoxLayoutParams();b.width=y.width,b.height=y.height;var S=s(b,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));u||(u=e.get("left")||e.get("right"),"middle"===u&&(u="center"),"right"===u?S.x+=S.width:"center"===u&&(S.x+=S.width/2)),d||(d=e.get("top")||e.get("bottom"),"center"===d&&(d="middle"),"bottom"===d?S.y+=S.height:"middle"===d&&(S.y+=S.height/2),d=d||"top"),r.attr("position",[S.x,S.y]);var E={textAlign:u,textVerticalAlign:d};h.setStyle(E),g.setStyle(E),y=r.getBoundingRect();var C=S.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var w=new o.Rect({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});r.add(w)}}})},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},6386:function(e,t,n){var i=n("a421"),r=n("6725"),o=n("4508"),a=function(e){return function(t,n,a){var s,l=i(t),c=r(l.length),u=o(a,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"638c":function(e,t,n){var i=n("06fa"),r=n("fc48"),o="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?o.call(e,""):Object(e)}:Object},6428:function(e,t,n){var i=n("b4b0"),r=1/0,o=17976931348623157e292;function a(e){if(!e)return 0===e?e:0;if(e=i(e),e===r||e===-r){var t=e<0?-1:1;return t*o}return e===e?e:0}e.exports=a},6438:function(e,t,n){var i=n("03d6"),r=n("9742").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},6547:function(e,t,n){var i=n("a691"),r=n("1d80"),o=function(e){return function(t,n){var o,a,s=String(r(t)),l=i(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}};e.exports={codeAt:o(!1),charAt:o(!0)}},6566:function(e,t,n){"use strict";var i=n("9bf2").f,r=n("7c73"),o=n("e2cc"),a=n("f8c2"),s=n("19aa"),l=n("2266"),c=n("7dd0"),u=n("2626"),d=n("83ab"),h=n("f183").fastKey,p=n("69f3"),f=p.set,g=p.getterFor;e.exports={getConstructor:function(e,t,n,c){var u=e((function(e,i){s(e,u,t),f(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=i&&l(i,e[c],e,n)})),p=g(t),m=function(e,t,n){var i,r,o=p(e),a=v(e,t);return a?a.value=n:(o.last=a={index:r=h(t,!0),key:t,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=a),i&&(i.next=a),d?o.size++:e.size++,"F"!==r&&(o.index[r]=a)),e},v=function(e,t){var n,i=p(e),r=h(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==t)return n};return o(u.prototype,{clear:function(){var e=this,t=p(e),n=t.index,i=t.first;while(i)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,n=p(t),i=v(t,e);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first==i&&(n.first=r),n.last==i&&(n.last=o),d?n.size--:t.size--}return!!i},forEach:function(e){var t,n=p(this),i=a(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){i(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!v(this,e)}}),o(u.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),d&&i(u.prototype,"size",{get:function(){return p(this).size}}),u},setStrong:function(e,t,n){var i=t+" Iterator",r=g(t),o=g(i);c(e,t,(function(e,t){f(this,{type:i,target:e,state:r(e),kind:t,last:void 0})}),(function(){var e=o(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(t)}}},6569:function(e,t,n){var i=n("6d8b"),r=n("e0d3");function o(e){a(e),s(e)}function a(e){if(!e.parallel){var t=!1;i.each(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function s(e){var t=r.normalizeToArray(e.parallelAxis);i.each(t,(function(t){if(i.isObject(t)){var n=t.parallelIndex||0,o=r.normalizeToArray(e.parallel)[n];o&&o.parallelAxisDefault&&i.merge(t,o.parallelAxisDefault,!1)}}))}e.exports=o},6582:function(e,t,n){var i=n("cccd"),r={seriesType:"lines",plan:i(),reset:function(e){var t=e.coordinateSystem,n=e.get("polyline"),i=e.pipelineContext.large;function r(r,o){var a=[];if(i){var s,l=r.end-r.start;if(n){for(var c=0,u=r.start;u>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[c]+":0",i[1-l]+":auto",r[1-c]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function d(e,t,n){for(var i=n?"invTrans":"trans",r=t[i],a=t.srcCoords,s=!0,l=[],c=[],u=0;u<4;u++){var d=e[u].getBoundingClientRect(),h=2*u,p=d.left,f=d.top;l.push(p,f),s=s&&a&&p===a[h]&&f===a[h+1],c.push(e[u].offsetLeft,e[u].offsetTop)}return s&&r?r:(t.srcCoords=l,t[i]=n?o(c,l):o(l,c))}function h(e){return"CANVAS"===e.nodeName.toUpperCase()}t.transformLocalCoord=l,t.transformCoordWithViewport=c,t.isCanvasEl=h},"65f0":function(e,t,n){var i=n("861d"),r=n("e8b5"),o=n("b622"),a=o("species");e.exports=function(e,t){var n;return r(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!r(n.prototype)?i(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},6679:function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),o=n("cd33"),a=r.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(e,t,n,i){this.axisPointerClass&&o.fixValue(e),a.superApply(this,"render",arguments),s(this,e,t,n,i,!0)},updateAxisPointer:function(e,t,n,i,r){s(this,e,t,n,i,!1)},remove:function(e,t){var n=this._axisPointer;n&&n.remove(t),a.superApply(this,"remove",arguments)},dispose:function(e,t){l(this,t),a.superApply(this,"dispose",arguments)}});function s(e,t,n,i,r,s){var c=a.getAxisPointerClass(e.axisPointerClass);if(c){var u=o.getAxisPointerModel(t);u?(e._axisPointer||(e._axisPointer=new c)).render(t,u,i,s):l(e,i)}}function l(e,t,n){var i=e._axisPointer;i&&i.dispose(t,n),e._axisPointer=null}var c=[];a.registerAxisPointerClass=function(e,t){c[e]=t},a.getAxisPointerClass=function(e){return e&&c[e]};var u=a;e.exports=u},"66a4":function(e,t,n){var i=n("6d8b");function r(e){var t=e&&e.timeline;i.isArray(t)||(t=t?[t]:[]),i.each(t,(function(e){e&&o(e)}))}function o(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),a(e),s(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});s(r,"position")||(r.position=e.controlPosition),"none"!==r.position||s(r,"show")||(r.show=!1,delete r.position),delete e.controlPosition}i.each(e.data||[],(function(e){i.isObject(e)&&!i.isArray(e)&&(!s(e,"value")&&s(e,"name")&&(e.value=e.name),a(e))}))}function a(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},o=r.normal||(r.normal={}),a={normal:1,emphasis:1};i.each(r,(function(e,t){a[t]||s(o,t)||(o[t]=e)})),n.label&&!s(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function s(e,t){return e.hasOwnProperty(t)}e.exports=r},"66ba":function(e,t){e.exports=function(e){return{subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}},"66fc":function(e,t,n){var i=n("6d8b"),r=n("84ce"),o=function(e,t,n,i,o){r.call(this,e,t,n),this.type=i||"value",this.position=o||"bottom",this.orient=null};o.prototype={constructor:o,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},pointToData:function(e,t){return this.coordinateSystem.pointToData(e,t)[0]},toGlobalCoord:null,toLocalCoord:null},i.inherits(o,r);var a=o;e.exports=a},6725:function(e,t,n){var i=n("1561"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},6747:function(e,t){var n=Array.isArray;e.exports=n},"675a":function(e,t){function n(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getGraph(),r=i.data,o=n.mapArray(n.getName);r.filterSelf((function(e){var n=r.getItemModel(e),i=n.getShallow("category");if(null!=i){"number"===typeof i&&(i=o[i]);for(var a=0;a0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function R(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function N(e,t,n,i,r,s,c,u){var d=t.getItemVisual(n,"color"),h=t.getItemVisual(n,"opacity"),p=t.getVisual("borderColor"),f=i.getModel("itemStyle"),g=i.getModel("emphasis.itemStyle").getBarItemStyle();u||e.setShape("r",f.get("barBorderRadius")||0),e.useStyle(o.defaults({stroke:R(r)?"none":p,fill:R(r)?"none":d,opacity:h},f.getBarItemStyle()));var m=i.getShallow("cursor");m&&e.attr("cursor",m);var v=c?r.height>0?"bottom":"top":r.width>0?"left":"right";u||l(e.style,g,i,d,s,n,v),R(r)&&(g.fill=g.stroke="none"),a.setHoverStyle(e,g)}function D(e,t){var n=e.get(_)||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),r=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,r)}var I=d.extend({type:"largeBar",shape:{points:[]},buildPath:function(e,t){for(var n=t.points,i=this.__startPoint,r=this.__baseDimIdx,o=0;o=0?n:null}),30,!1);function L(e,t,n){var i=e.__baseDimIdx,r=1-i,o=e.shape.points,a=e.__largeDataIndices,s=Math.abs(e.__barWidth/2),l=e.__startPoint[r];y[0]=t,y[1]=n;for(var c=y[i],u=y[1-i],d=c-s,h=c+s,p=0,f=o.length/2;p=d&&m<=h&&(l<=v?u>=l&&u<=v:u>=v&&u<=l))return a[p]}return-1}function P(e,t,n){var i=n.getVisual("borderColor")||n.getVisual("color"),r=t.getModel("itemStyle").getItemStyle(["color","borderColor"]);e.useStyle(r),e.style.fill=null,e.style.stroke=i,e.style.lineWidth=n.getLayout("barWidth")}function F(e,t,n){var i=t.get("borderColor")||t.get("color"),r=t.getItemStyle(["color","borderColor"]);e.useStyle(r),e.style.fill=null,e.style.stroke=i,e.style.lineWidth=n.getLayout("barWidth")}function B(e,t,n){var i,r="polar"===n.type;return i=r?n.getArea():n.grid.getRect(),r?{cx:i.cx,cy:i.cy,r0:e?i.r0:t.r0,r:e?i.r:t.r,startAngle:e?t.startAngle:0,endAngle:e?t.endAngle:2*Math.PI}:{x:e?t.x:i.x,y:e?i.y:t.y,width:e?t.width:i.width,height:e?i.height:t.height}}function $(e,t,n){var i="polar"===e.type?a.Sector:a.Rect;return new i({shape:B(t,n,e),silent:!0,z2:0})}e.exports=S},6858:function(e,t,n){"use strict";var i=n("2f9a"),r=n("ea34"),o=n("8a0d"),a=n("6ca1");e.exports=n("393a")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},"68ab":function(e,t,n){var i=n("4a3f"),r=i.quadraticProjectPoint;function o(e,t,n,i,o,a,s,l,c){if(0===s)return!1;var u=s;if(c>t+u&&c>i+u&&c>a+u||ce+u&&l>n+u&&l>o+u||lr)Q(e,n=i[r++],t[n]);return e},Z=function(e,t){return void 0===t?x(e):X(x(e),t)},J=function(e){var t=$.call(this,e=E(e,!0));return!(this===z&&r(G,e)&&!r(U,e))&&(!(t||!r(this,e)||!r(G,e)||r(this,F)&&this[F][e])||t)},ee=function(e,t){if(e=S(e),t=E(t,!0),e!==z||!r(G,t)||r(U,t)){var n=N(e,t);return!n||!r(G,t)||r(e,F)&&e[F][t]||(n.enumerable=!0),n}},te=function(e){var t,n=I(S(e)),i=[],o=0;while(n.length>o)r(G,t=n[o++])||t==F||t==l||i.push(t);return i},ne=function(e){var t,n=e===z,i=I(n?U:S(e)),o=[],a=0;while(i.length>a)!r(G,t=i[a++])||n&&!r(z,t)||o.push(G[t]);return o};j||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===z&&t.call(U,n),r(this,F)&&r(this[F],e)&&(this[F][e]=!1),Y(this,e,C(1,n))};return o&&W&&Y(z,e,{configurable:!0,set:t}),q(e)},s(M[P],"toString",(function(){return this._k})),T.f=ee,O.f=Q,n("6438").f=w.f=te,n("1917").f=J,A.f=ne,o&&!n("e444")&&s(z,"propertyIsEnumerable",J,!0),f.f=function(e){return q(p(e))}),a(a.G+a.W+a.F*!j,{Symbol:M});for(var ie="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ie.length>re;)p(ie[re++]);for(var oe=R(p.store),ae=0;oe.length>ae;)g(oe[ae++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(V,e+="")?V[e]:V[e]=M(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in V)if(V[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!j,"Object",{create:Z,defineProperty:Q,defineProperties:X,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=c((function(){A.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return A.f(b(e))}}),k&&a(a.S+a.F*(!j||c((function(){var e=M();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))}))),"JSON",{stringify:function(e){var t,n,i=[e],r=1;while(arguments.length>r)i.push(arguments[r++]);if(n=t=i[1],(y(t)||void 0!==e)&&!K(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),i[1]=t,L.apply(k,i)}}),M[P][B]||n("051b")(M[P],B,M[P].valueOf),d(M,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},"697e":function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),o=n("18c0"),a=n("89e3"),s=n("e0d8"),l=n("3842"),c=n("9d57"),u=c.prepareLayoutBarSeries,d=c.makeColumnLayout,h=c.retrieveColumnLayout,p=n("9850");function f(e,t){var n,i,o,a=e.type,s=t.getMin(),c=t.getMax(),h=e.getExtent();"ordinal"===a?n=t.getCategories().length:(i=t.get("boundaryGap"),r.isArray(i)||(i=[i||0,i||0]),"boolean"===typeof i[0]&&(i=[0,0]),i[0]=l.parsePercent(i[0],1),i[1]=l.parsePercent(i[1],1),o=h[1]-h[0]||Math.abs(h[0])),"dataMin"===s?s=h[0]:"function"===typeof s&&(s=s({min:h[0],max:h[1]})),"dataMax"===c?c=h[1]:"function"===typeof c&&(c=c({min:h[0],max:h[1]}));var p=null!=s,f=null!=c;null==s&&(s="ordinal"===a?n?0:NaN:h[0]-i[0]*o),null==c&&(c="ordinal"===a?n?n-1:NaN:h[1]+i[1]*o),(null==s||!isFinite(s))&&(s=NaN),(null==c||!isFinite(c))&&(c=NaN),e.setBlank(r.eqNaN(s)||r.eqNaN(c)||"ordinal"===a&&!e.getOrdinalMeta().categories.length),t.getNeedCrossZero()&&(s>0&&c>0&&!p&&(s=0),s<0&&c<0&&!f&&(c=0));var m=t.ecModel;if(m&&"time"===a){var v,_=u("bar",m);if(r.each(_,(function(e){v|=e.getBaseAxis()===t.axis})),v){var y=d(_),b=g(s,c,t,y);s=b.min,c=b.max}}return{extent:[s,c],fixMin:p,fixMax:f}}function g(e,t,n,i){var o=n.axis.getExtent(),a=o[1]-o[0],s=h(i,n.axis);if(void 0===s)return{min:e,max:t};var l=1/0;r.each(s,(function(e){l=Math.min(e.offset,l)}));var c=-1/0;r.each(s,(function(e){c=Math.max(e.offset+e.width,c)})),l=Math.abs(l),c=Math.abs(c);var u=l+c,d=t-e,p=1-(l+c)/a,f=d/p-d;return t+=f*(c/u),e-=f*(l/u),{min:e,max:t}}function m(e,t){var n=f(e,t),i=n.extent,r=t.get("splitNumber");"log"===e.type&&(e.base=t.get("logBase"));var o=e.type;e.setExtent(i[0],i[1]),e.niceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===o||"time"===o?t.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?t.get("maxInterval"):null});var a=t.get("interval");null!=a&&e.setInterval&&e.setInterval(a)}function v(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new o(e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),[1/0,-1/0]);case"value":return new a;default:return(s.getClass(t)||a).create(e)}}function _(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}function y(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"string"===typeof t?(t=function(t){return function(n){return n=e.scale.getLabel(n),t.replace("{value}",null!=n?n:"")}}(t),t):"function"===typeof t?function(i,r){return null!=n&&(r=i-n),t(b(e,i),r)}:function(t){return e.scale.getLabel(t)}}function b(e,t){return"category"===e.type?e.scale.getLabel(t):t}function S(e){var t=e.model,n=e.scale;if(t.get("axisLabel.show")&&!n.isBlank()){var i,r,o="category"===e.type,a=n.getExtent();o?r=n.count():(i=n.getTicks(),r=i.length);var s,l=e.getLabelModel(),c=y(e),u=1;r>40&&(u=Math.ceil(r/40));for(var d=0;d=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function V(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{while((void 0===t||t-- >0)&&!(i=o.next()).done)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}return a}function G(e,t){for(var n=0,i=t.length,r=e.length;n=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}),De=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{i["i"].scheduleTask(()=>{this.renderVueComponent()})})}renderVueComponent(){this.unmountVueComponent();const e=this.getComponentContainer(),t=this.cell,n=this.graph;if(e){const i=this.graph.hook.getVueComponent(t);if(Ae){const r=Re,o=document.createElement("div");o.style.width="100%",o.style.height="100%";let a=null;if("string"===typeof i)o.innerHTML=i,a=new r({el:o});else{const e=i,{template:s}=e,l=De(e,["template"]);o.innerHTML=s,a=new r(Object.assign({el:o,provide(){return{getGraph:()=>n,getNode:()=>t}}},l))}e.appendChild(a.$el)}else Oe&&de({render(){return pe(i)},provide(){return{getGraph:()=>n,getNode:()=>t}}}).mount(e)}}unmountVueComponent(){const e=this.getComponentContainer();return e.innerHTML="",e}dispose(){this.unmountVueComponent()}}Ne([i["f"].dispose()],Ie.prototype,"dispose",null),function(e){e.action="vue",e.config({bootstrap:[e.action],actions:{component:e.action}}),i["f"].registry.register("vue-shape-view",e,!0)}(Ie||(Ie={}))},"3e47":function(e,t,n){var i=n("a5eb"),r=n("c1b2"),o=n("4180");i({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:o.f})},"3e80":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},"3eba":function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("697e7")),o=n("6d8b"),a=n("41ef"),s=n("22d1"),l=n("04f6"),c=n("1fab"),u=n("7e63"),d=n("843e"),h=n("2039"),p=n("ca98"),f=n("fb05"),g=n("d15d"),m=n("6cb7"),v=n("4f85"),_=n("b12f"),y=n("e887"),b=n("2306"),S=n("e0d3"),E=n("88b3"),C=E.throttle,x=n("fd63"),w=n("b809"),T=n("998c"),A=n("69ff"),O=n("c533"),R=n("f219");n("0352");var N=n("ec34"),D=o.assert,I=o.each,M=o.isFunction,k=o.isObject,L=m.parseClassType,P="4.9.0",F={zrender:"4.3.2"},B=1,$=1e3,V=800,G=900,U=5e3,z=1e3,j=1100,H=2e3,W=3e3,Y=3500,q=4e3,K=5e3,Q={PROCESSOR:{FILTER:$,SERIES_FILTER:V,STATISTIC:U},VISUAL:{LAYOUT:z,PROGRESSIVE_LAYOUT:j,GLOBAL:H,CHART:W,POST_CHART_LAYOUT:Y,COMPONENT:q,BRUSH:K}},X="__flagInMainProcess",Z="__optionUpdated",J=/^[a-zA-Z0-9_]+$/;function ee(e,t){return function(n,i,r){t||!this._disposed?(n=n&&n.toLowerCase(),c.prototype[e].call(this,n,i,r)):be(this.id)}}function te(){c.call(this)}function ne(e,t,n){n=n||{},"string"===typeof t&&(t=Ie[t]),this.id,this.group,this._dom=e;var i="canvas",a=this._zr=r.init(e,{renderer:n.renderer||i,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=C(o.bind(a.flush,a),17);t=o.clone(t);t&&f(t,!0),this._theme=t,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new h;var s=this._api=xe(this);function u(e,t){return e.__prio-t.__prio}l(De,u),l(Oe,u),this._scheduler=new A(this,s,Oe,De),c.call(this,this._ecEventProcessor=new we),this._messageCenter=new te,this._initEvents(),this.resize=o.bind(this.resize,this),this._pendingActions=[],a.animation.on("frame",this._onframe,this),he(a,this),o.setAsPrimitive(this)}te.prototype.on=ee("on",!0),te.prototype.off=ee("off",!0),te.prototype.one=ee("one",!0),o.mixin(te,c);var ie=ne.prototype;function re(e,t,n){if(this._disposed)be(this.id);else{var i,r=this._model,o=this._coordSysMgr.getCoordinateSystems();t=S.parseFinder(r,t);for(var a=0;a0&&e.unfinished);e.unfinished||this._zr.flush()}}},ie.getDom=function(){return this._dom},ie.getZr=function(){return this._zr},ie.setOption=function(e,t,n){if(this._disposed)be(this.id);else{var i;if(k(t)&&(n=t.lazyUpdate,i=t.silent,t=t.notMerge),this[X]=!0,!this._model||t){var r=new p(this._api),o=this._theme,a=this._model=new u;a.scheduler=this._scheduler,a.init(null,null,o,r)}this._model.setOption(e,Re),n?(this[Z]={silent:i},this[X]=!1):(ae(this),oe.update.call(this),this._zr.flush(),this[Z]=!1,this[X]=!1,ue.call(this,i),de.call(this,i))}},ie.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},ie.getModel=function(){return this._model},ie.getOption=function(){return this._model&&this._model.getOption()},ie.getWidth=function(){return this._zr.getWidth()},ie.getHeight=function(){return this._zr.getHeight()},ie.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},ie.getRenderedCanvas=function(e){if(s.canvasSupported){e=e||{},e.pixelRatio=e.pixelRatio||1,e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor");var t=this._zr;return t.painter.getRenderedCanvas(e)}},ie.getSvgDataURL=function(){if(s.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return o.each(t,(function(e){e.stopAnimation(!0)})),e.painter.toDataURL()}},ie.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,i=[],r=this;I(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return I(i,(function(e){e.group.ignore=!1})),o}be(this.id)},ie.getConnectedDataURL=function(e){if(this._disposed)be(this.id);else if(s.canvasSupported){var t="svg"===e.type,n=this.group,i=Math.min,a=Math.max,l=1/0;if(Le[n]){var c=l,u=l,d=-l,h=-l,p=[],f=e&&e.pixelRatio||1;o.each(ke,(function(r,s){if(r.group===n){var l=t?r.getZr().painter.getSvgDom().innerHTML:r.getRenderedCanvas(o.clone(e)),f=r.getDom().getBoundingClientRect();c=i(f.left,c),u=i(f.top,u),d=a(f.right,d),h=a(f.bottom,h),p.push({dom:l,left:f.left,top:f.top})}})),c*=f,u*=f,d*=f,h*=f;var g=d-c,m=h-u,v=o.createCanvas(),_=r.init(v,{renderer:t?"svg":"canvas"});if(_.resize({width:g,height:m}),t){var y="";return I(p,(function(e){var t=e.left-c,n=e.top-u;y+=''+e.dom+""})),_.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&_.painter.setBackgroundColor(e.connectedBackgroundColor),_.refreshImmediately(),_.painter.toDataURL()}return e.connectedBackgroundColor&&_.add(new b.Rect({shape:{x:0,y:0,width:g,height:m},style:{fill:e.connectedBackgroundColor}})),I(p,(function(e){var t=new b.Image({style:{x:e.left*f-c,y:e.top*f-u,image:e.dom}});_.add(t)})),_.refreshImmediately(),v.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},ie.convertToPixel=o.curry(re,"convertToPixel"),ie.convertFromPixel=o.curry(re,"convertFromPixel"),ie.containPixel=function(e,t){if(!this._disposed){var n,i=this._model;return e=S.parseFinder(i,e),o.each(e,(function(e,i){i.indexOf("Models")>=0&&o.each(e,(function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(t);else if("seriesModels"===i){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n|=o.containPoint(t,e))}}),this)}),this),!!n}be(this.id)},ie.getVisual=function(e,t){var n=this._model;e=S.parseFinder(n,e,{defaultMainType:"series"});var i=e.seriesModel,r=i.getData(),o=e.hasOwnProperty("dataIndexInside")?e.dataIndexInside:e.hasOwnProperty("dataIndex")?r.indexOfRawIndex(e.dataIndex):null;return null!=o?r.getItemVisual(o,t):r.getVisual(t)},ie.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},ie.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]};var oe={prepareAndUpdate:function(e){ae(this),oe.update.call(this,e)},update:function(e){var t=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,o=this._scheduler;if(t){o.restoreData(t,e),o.performSeriesTasks(t),r.create(t,n),o.performDataProcessorTasks(t,e),le(this,t),r.update(t,n),fe(t),o.performVisualTasks(t,e),ge(this,t,n,e);var l=t.get("backgroundColor")||"transparent";if(s.canvasSupported)i.setBackgroundColor(l);else{var c=a.parse(l);l=a.stringify(c,"rgb"),0===c[3]&&(l="transparent")}_e(t,n)}},updateTransform:function(e){var t=this._model,n=this,i=this._api;if(t){var r=[];t.eachComponent((function(o,a){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,t,i,e);l&&l.update&&r.push(s)}else r.push(s)}));var a=o.createHashMap();t.eachSeries((function(r){var o=n._chartsMap[r.__viewId];if(o.updateTransform){var s=o.updateTransform(r,t,i,e);s&&s.update&&a.set(r.uid,1)}else a.set(r.uid,1)})),fe(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0,dirtyMap:a}),ve(n,t,i,e,a),_e(t,this._api)}},updateView:function(e){var t=this._model;t&&(y.markUpdateMethod(e,"updateView"),fe(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),ge(this,this._model,this._api,e),_e(t,this._api))},updateVisual:function(e){oe.update.call(this,e)},updateLayout:function(e){oe.update.call(this,e)}};function ae(e){var t=e._model,n=e._scheduler;n.restorePipelines(t),n.prepareStageTasks(),pe(e,"component",t,n),pe(e,"chart",t,n),n.plan()}function se(e,t,n,i,r){var a=e._model;if(i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var c=n.excludeSeriesId;null!=c&&(c=o.createHashMap(S.normalizeToArray(c))),a&&a.eachComponent(l,(function(t){c&&null!=c.get(t.id)||u(e["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else I(e._componentsViews.concat(e._chartsViews),u);function u(i){i&&i.__alive&&i[t]&&i[t](i.__model,a,e._api,n)}}function le(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries((function(e){i.updateStreamModes(e,n[e.__viewId])}))}function ce(e,t){var n=e.type,i=e.escapeConnect,r=Te[n],a=r.actionInfo,s=(a.update||"update").split(":"),l=s.pop();s=null!=s[0]&&L(s[0]),this[X]=!0;var c=[e],u=!1;e.batch&&(u=!0,c=o.map(e.batch,(function(t){return t=o.defaults(o.extend({},t),e),t.batch=null,t})));var d,h=[],p="highlight"===n||"downplay"===n;I(c,(function(e){d=r.action(e,this._model,this._api),d=d||o.extend({},e),d.type=a.event||d.type,h.push(d),p?se(this,l,e,"series"):s&&se(this,l,e,s.main,s.sub)}),this),"none"===l||p||s||(this[Z]?(ae(this),oe.update.call(this,e),this[Z]=!1):oe[l].call(this,e)),d=u?{type:a.event||n,escapeConnect:i,batch:h}:h[0],this[X]=!1,!t&&this._messageCenter.trigger(d.type,d)}function ue(e){var t=this._pendingActions;while(t.length){var n=t.shift();ce.call(this,n,e)}}function de(e){!e&&this.trigger("updated")}function he(e,t){e.on("rendered",(function(){t.trigger("rendered"),!e.animation.isFinished()||t[Z]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))}function pe(e,t,n,i){for(var r="component"===t,o=r?e._componentsViews:e._chartsViews,a=r?e._componentsMap:e._chartsMap,s=e._zr,l=e._api,c=0;ct.get("hoverLayerThreshold")&&!s.node&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.group.traverse((function(e){e.useHoverLayer=!0}))}}))}function Ee(e,t){var n=e.get("blendMode")||null;t.group.traverse((function(e){e.isGroup||e.style.blend!==n&&e.setStyle("blend",n),e.eachPendingDisplayable&&e.eachPendingDisplayable((function(e){e.setStyle("blend",n)}))}))}function Ce(e,t){var n=e.get("z"),i=e.get("zlevel");t.group.traverse((function(e){"group"!==e.type&&(null!=n&&(e.z=n),null!=i&&(e.zlevel=i))}))}function xe(e){var t=e._coordSysMgr;return o.extend(new d(e),{getCoordinateSystems:o.bind(t.getCoordinateSystems,t),getComponentByElement:function(t){while(t){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}}})}function we(){this.eventInfo}ie._initEvents=function(){I(ye,(function(e){var t=function(t){var n,i=this.getModel(),r=t.target,a="globalout"===e;if(a)n={};else if(r&&null!=r.dataIndex){var s=r.dataModel||i.getSeriesByIndex(r.seriesIndex);n=s&&s.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(n=o.extend({},r.eventData));if(n){var l=n.componentType,c=n.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",c=n.seriesIndex);var u=l&&null!=c&&i.getComponent(l,c),d=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];n.event=t,n.type=e,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:n,model:u,view:d},this.trigger(e,n)}};t.zrEventfulCallAtLast=!0,this._zr.on(e,t,this)}),this),I(Ae,(function(e,t){this._messageCenter.on(t,(function(e){this.trigger(t,e)}),this)}),this)},ie.isDisposed=function(){return this._disposed},ie.clear=function(){this._disposed?be(this.id):this.setOption({series:[]},!0)},ie.dispose=function(){if(this._disposed)be(this.id);else{this._disposed=!0,S.setAttribute(this.getDom(),Be,"");var e=this._api,t=this._model;I(this._componentsViews,(function(n){n.dispose(t,e)})),I(this._chartsViews,(function(n){n.dispose(t,e)})),this._zr.dispose(),delete ke[this.id]}},o.mixin(ne,c),we.prototype={constructor:we,normalizeQuery:function(e){var t={},n={},i={};if(o.isString(e)){var r=L(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};o.each(e,(function(e,r){for(var o=!1,l=0;l0&&u===r.length-c.length){var d=r.slice(0,u);"data"!==d&&(t.mainType=d,t[c.toLowerCase()]=e,o=!0)}}s.hasOwnProperty(r)&&(n[r]=e,o=!0),o||(i[r]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},filter:function(e,t,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=t.cptQuery,c=t.dataQuery;return u(l,a,"mainType")&&u(l,a,"subType")&&u(l,a,"index","componentIndex")&&u(l,a,"name")&&u(l,a,"id")&&u(c,o,"name")&&u(c,o,"dataIndex")&&u(c,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,r,o));function u(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},afterTrigger:function(){this.eventInfo=null}};var Te={},Ae={},Oe=[],Re=[],Ne=[],De=[],Ie={},Me={},ke={},Le={},Pe=new Date-0,Fe=new Date-0,Be="_echarts_instance_";function $e(e){var t=0,n=1,i=2,r="__connectUpdateStatus";function o(e,t){for(var n=0;n|<-"}]}}},"3f6b":function(e,t,n){e.exports={default:n("b9c7"),__esModule:!0}},"3f8c":function(e,t){e.exports={}},"3f8e":function(e,t,n){var i=n("8727"),r=i.createElement,o=n("20c8"),a=n("9850"),s=n("1687"),l=n("e86a"),c=n("a73c"),u=n("76a5"),d=o.CMD,h=Array.prototype.join,p="none",f=Math.round,g=Math.sin,m=Math.cos,v=Math.PI,_=2*Math.PI,y=180/v,b=1e-4;function S(e){return f(1e4*e)/1e4}function E(e){return e-b}function C(e,t){var n=t?e.textFill:e.fill;return null!=n&&n!==p}function x(e,t){var n=t?e.textStroke:e.stroke;return null!=n&&n!==p}function w(e,t){t&&T(e,"transform","matrix("+h.call(t,",")+")")}function T(e,t,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&e.setAttribute(t,n)}function A(e,t,n){e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}function O(e,t,n,i){if(C(t,n)){var r=n?t.textFill:t.fill;r="transparent"===r?p:r,T(e,"fill",r),T(e,"fill-opacity",null!=t.fillOpacity?t.fillOpacity*t.opacity:t.opacity)}else T(e,"fill",p);if(x(t,n)){var o=n?t.textStroke:t.stroke;o="transparent"===o?p:o,T(e,"stroke",o);var a=n?t.textStrokeWidth:t.lineWidth,s=!n&&t.strokeNoScale?i.getLineScale():1;T(e,"stroke-width",a/s),T(e,"paint-order",n?"stroke":"fill"),T(e,"stroke-opacity",null!=t.strokeOpacity?t.strokeOpacity:t.opacity);var l=t.lineDash;l?(T(e,"stroke-dasharray",t.lineDash.join(",")),T(e,"stroke-dashoffset",f(t.lineDashOffset||0))):T(e,"stroke-dasharray",""),t.lineCap&&T(e,"stroke-linecap",t.lineCap),t.lineJoin&&T(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&T(e,"stroke-miterlimit",t.miterLimit)}else T(e,"stroke",p)}function R(e){for(var t=[],n=e.data,i=e.len(),r=0;r=_:-b>=_),A=b>0?b%_:b%_+_,O=!1;O=!!T||!E(w)&&A>=v===!!x;var R=S(l+u*m(p)),N=S(c+h*g(p));T&&(b=x?_-1e-4:1e-4-_,O=!0,9===r&&t.push("M",R,N));var D=S(l+u*m(p+b)),I=S(c+h*g(p+b));t.push("A",S(u),S(h),f(C*y),+O,+x,D,I);break;case d.Z:a="Z";break;case d.R:D=S(n[r++]),I=S(n[r++]);var M=S(n[r++]),k=S(n[r++]);t.push("M",D,I,"L",D+M,I,"L",D+M,I+k,"L",D,I+k,"L",D,I);break}a&&t.push(a);for(var L=0;LI){for(;N=t.length)break;r=t[i++]}else{if(i=t.next(),i.done)break;r=i.value}var o=r,a=o.target.__resizeListeners__||[];a.length&&a.forEach((function(e){e()}))}};t.addResizeListener=function(e,t){a||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new r.default(s),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},t.removeResizeListener=function(e,t){e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())}},"401b":function(e,t){var n="undefined"===typeof Float32Array?Array:Float32Array;function i(e,t){var i=new n(2);return null==e&&(e=0),null==t&&(t=0),i[0]=e,i[1]=t,i}function r(e,t){return e[0]=t[0],e[1]=t[1],e}function o(e){var t=new n(2);return t[0]=e[0],t[1]=e[1],t}function a(e,t,n){return e[0]=t,e[1]=n,e}function s(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function l(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e}function c(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function u(e){return Math.sqrt(h(e))}var d=u;function h(e){return e[0]*e[0]+e[1]*e[1]}var p=h;function f(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function g(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function m(e,t){return e[0]*t[0]+e[1]*t[1]}function v(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function _(e,t){var n=u(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function y(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var b=y;function S(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var E=S;function C(e,t){return e[0]=-t[0],e[1]=-t[1],e}function x(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e}function w(e,t,n){var i=t[0],r=t[1];return e[0]=n[0]*i+n[2]*r+n[4],e[1]=n[1]*i+n[3]*r+n[5],e}function T(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function A(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}t.create=i,t.copy=r,t.clone=o,t.set=a,t.add=s,t.scaleAndAdd=l,t.sub=c,t.len=u,t.length=d,t.lenSquare=h,t.lengthSquare=p,t.mul=f,t.div=g,t.dot=m,t.scale=v,t.normalize=_,t.distance=y,t.dist=b,t.distanceSquare=S,t.distSquare=E,t.negate=C,t.lerp=x,t.applyTransform=w,t.min=T,t.max=A},"408a":function(e,t,n){var i=n("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=i(e))throw TypeError("Incorrect invocation");return+e}},"40f4":function(e,t){e.exports=function(e){var t="do if then else end until while abort array attrib by call cards cards4 catname continue datalines datalines4 delete delim delimiter display dm drop endsas error file filename footnote format goto in infile informat input keep label leave length libname link list lostcard merge missing modify options output out page put redirect remove rename replace retain return select set skip startsas stop title update waitsas where window x systask add and alter as cascade check create delete describe distinct drop foreign from group having index insert into in key like message modify msgtype not null on or order primary references reset restrict select set table unique update validate view where",n="abs|addr|airy|arcos|arsin|atan|attrc|attrn|band|betainv|blshift|bnot|bor|brshift|bxor|byte|cdf|ceil|cexist|cinv|close|cnonct|collate|compbl|compound|compress|cos|cosh|css|curobs|cv|daccdb|daccdbsl|daccsl|daccsyd|dacctab|dairy|date|datejul|datepart|datetime|day|dclose|depdb|depdbsl|depdbsl|depsl|depsl|depsyd|depsyd|deptab|deptab|dequote|dhms|dif|digamma|dim|dinfo|dnum|dopen|doptname|doptnum|dread|dropnote|dsname|erf|erfc|exist|exp|fappend|fclose|fcol|fdelete|fetch|fetchobs|fexist|fget|fileexist|filename|fileref|finfo|finv|fipname|fipnamel|fipstate|floor|fnonct|fnote|fopen|foptname|foptnum|fpoint|fpos|fput|fread|frewind|frlen|fsep|fuzz|fwrite|gaminv|gamma|getoption|getvarc|getvarn|hbound|hms|hosthelp|hour|ibessel|index|indexc|indexw|input|inputc|inputn|int|intck|intnx|intrr|irr|jbessel|juldate|kurtosis|lag|lbound|left|length|lgamma|libname|libref|log|log10|log2|logpdf|logpmf|logsdf|lowcase|max|mdy|mean|min|minute|mod|month|mopen|mort|n|netpv|nmiss|normal|note|npv|open|ordinal|pathname|pdf|peek|peekc|pmf|point|poisson|poke|probbeta|probbnml|probchi|probf|probgam|probhypr|probit|probnegb|probnorm|probt|put|putc|putn|qtr|quote|ranbin|rancau|ranexp|rangam|range|rank|rannor|ranpoi|rantbl|rantri|ranuni|repeat|resolve|reverse|rewind|right|round|saving|scan|sdf|second|sign|sin|sinh|skewness|soundex|spedis|sqrt|std|stderr|stfips|stname|stnamel|substr|sum|symget|sysget|sysmsg|sysprod|sysrc|system|tan|tanh|time|timepart|tinv|tnonct|today|translate|tranwrd|trigamma|trim|trimn|trunc|uniform|upcase|uss|var|varfmt|varinfmt|varlabel|varlen|varname|varnum|varray|varrayx|vartype|verify|vformat|vformatd|vformatdx|vformatn|vformatnx|vformatw|vformatwx|vformatx|vinarray|vinarrayx|vinformat|vinformatd|vinformatdx|vinformatn|vinformatnx|vinformatw|vinformatwx|vinformatx|vlabel|vlabelx|vlength|vlengthx|vname|vnamex|vtype|vtypex|weekday|year|yyq|zipfips|zipname|zipnamel|zipstate",i="bquote|nrbquote|cmpres|qcmpres|compstor|datatyp|display|do|else|end|eval|global|goto|if|index|input|keydef|label|left|length|let|local|lowcase|macro|mend|nrbquote|nrquote|nrstr|put|qcmpres|qleft|qlowcase|qscan|qsubstr|qsysfunc|qtrim|quote|qupcase|scan|str|substr|superq|syscall|sysevalf|sysexec|sysfunc|sysget|syslput|sysprod|sysrc|sysrput|then|to|trim|unquote|until|upcase|verify|while|window";return{aliases:["sas","SAS"],case_insensitive:!0,keywords:{literal:"null missing _all_ _automatic_ _character_ _infile_ _n_ _name_ _null_ _numeric_ _user_ _webout_",meta:t},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s\;]/},{className:"variable",begin:/\&[a-zA-Z_\&][a-zA-Z0-9_]*\.?/},{className:"emphasis",begin:/^\s*datalines|cards.*;/,end:/^\s*;\s*$/},{className:"built_in",begin:"%("+i+")"},{className:"name",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:"[^%]("+n+")[(]"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}},4108:function(e,t){e.exports=function(e){var t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",n="(\\-|\\+)?\\d+([./]\\d+)?",i=n+"[+\\-]"+n+"i",r={"builtin-name":"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},o={className:"meta",begin:"^#!",end:"$"},a={className:"literal",begin:"(#t|#f|#\\\\"+t+"|#\\\\.)"},s={className:"number",variants:[{begin:n,relevance:0},{begin:i,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},l=e.QUOTE_STRING_MODE,c=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],u={begin:t,relevance:0},d={className:"symbol",begin:"'"+t},h={endsWithParent:!0,relevance:0},p={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",a,l,s,u,d]}]},f={className:"name",begin:t,lexemes:t,keywords:r},g={begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[f,{begin:/\(/,end:/\)/,endsParent:!0,contains:[u]}]},m={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[g,f,h]};return h.contains=[a,s,l,u,d,p,m].concat(c),{illegal:/\S/,contains:[o,s,l,d,p,m].concat(c)}}},4127:function(e,t,n){"use strict";var i=n("d233"),r=n("b313"),o={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,serializeDate:function(e){return a.call(e)},skipNulls:!1,strictNullHandling:!1},l=function e(t,n,r,o,a,l,c,u,d,h,p,f){var g=t;if("function"===typeof c)g=c(n,g);else if(g instanceof Date)g=h(g);else if(null===g){if(o)return l&&!f?l(n,s.encoder):n;g=""}if("string"===typeof g||"number"===typeof g||"boolean"===typeof g||i.isBuffer(g)){if(l){var m=f?n:l(n,s.encoder);return[p(m)+"="+p(l(g,s.encoder))]}return[p(n)+"="+p(String(g))]}var v,_=[];if("undefined"===typeof g)return _;if(Array.isArray(c))v=c;else{var y=Object.keys(g);v=u?y.sort(u):y}for(var b=0;b0?A+T:""}},"414c":function(e,t,n){var i=n("3a56"),r=i.extend({type:"dataZoom.select"});e.exports=r},4160:function(e,t,n){"use strict";var i=n("23e7"),r=n("17c2");i({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},"417f":function(e,t,n){"use strict";t.__esModule=!0;var i=n("a026"),r=a(i),o=n("5924");function a(e){return e&&e.__esModule?e:{default:e}}var s=[],l="@@clickoutsideContext",c=void 0,u=0;function d(e,t,n){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&i.target&&r.target)||e.contains(i.target)||e.contains(r.target)||e===i.target||n.context.popperElm&&(n.context.popperElm.contains(i.target)||n.context.popperElm.contains(r.target))||(t.expression&&e[l].methodName&&n.context[e[l].methodName]?n.context[e[l].methodName]():e[l].bindingFn&&e[l].bindingFn())}}!r.default.prototype.$isServer&&(0,o.on)(document,"mousedown",(function(e){return c=e})),!r.default.prototype.$isServer&&(0,o.on)(document,"mouseup",(function(e){s.forEach((function(t){return t[l].documentHandler(e,c)}))})),t.default={bind:function(e,t,n){s.push(e);var i=u++;e[l]={id:i,documentHandler:d(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[l].documentHandler=d(e,t,n),e[l].methodName=t.expression,e[l].bindingFn=t.value},unbind:function(e){for(var t=s.length,n=0;n255?255:e}function a(e){return e=Math.round(e),e<0?0:e>360?360:e}function s(e){return e<0?0:e>1?1:e}function l(e){return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function c(e){return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function u(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function d(e,t,n){return e+(t-e)*n}function h(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var f=new i(20),g=null;function m(e,t){g&&p(g,t),g=f.put(e,g||t.slice())}function v(e,t){if(e){t=t||[];var n=f.get(e);if(n)return p(t,n);e+="";var i=e.replace(/ /g,"").toLowerCase();if(i in r)return p(t,r[i]),m(e,t),t;if("#"!==i.charAt(0)){var o=i.indexOf("("),a=i.indexOf(")");if(-1!==o&&a+1===i.length){var s=i.substr(0,o),u=i.substr(o+1,a-(o+1)).split(","),d=1;switch(s){case"rgba":if(4!==u.length)return void h(t,0,0,0,1);d=c(u.pop());case"rgb":return 3!==u.length?void h(t,0,0,0,1):(h(t,l(u[0]),l(u[1]),l(u[2]),d),m(e,t),t);case"hsla":return 4!==u.length?void h(t,0,0,0,1):(u[3]=c(u[3]),_(u,t),m(e,t),t);case"hsl":return 3!==u.length?void h(t,0,0,0,1):(_(u,t),m(e,t),t);default:return}}h(t,0,0,0,1)}else{if(4===i.length){var g=parseInt(i.substr(1),16);return g>=0&&g<=4095?(h(t,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),m(e,t),t):void h(t,0,0,0,1)}if(7===i.length){g=parseInt(i.substr(1),16);return g>=0&&g<=16777215?(h(t,(16711680&g)>>16,(65280&g)>>8,255&g,1),m(e,t),t):void h(t,0,0,0,1)}}}}function _(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=c(e[1]),r=c(e[2]),a=r<=.5?r*(i+1):r+i-r*i,s=2*r-a;return t=t||[],h(t,o(255*u(s,a,n+1/3)),o(255*u(s,a,n)),o(255*u(s,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function y(e){if(e){var t,n,i=e[0]/255,r=e[1]/255,o=e[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,c=(s+a)/2;if(0===l)t=0,n=0;else{n=c<.5?l/(s+a):l/(2-s-a);var u=((s-i)/6+l/2)/l,d=((s-r)/6+l/2)/l,h=((s-o)/6+l/2)/l;i===s?t=h-d:r===s?t=1/3+u-h:o===s&&(t=2/3+d-u),t<0&&(t+=1),t>1&&(t-=1)}var p=[360*t,n,c];return null!=e[3]&&p.push(e[3]),p}}function b(e,t){var n=v(e);if(n){for(var i=0;i<3;i++)n[i]=t<0?n[i]*(1-t)|0:(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:e[i]<0&&(n[i]=0);return O(n,4===n.length?"rgba":"rgb")}}function S(e){var t=v(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function E(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var i=e*(t.length-1),r=Math.floor(i),a=Math.ceil(i),l=t[r],c=t[a],u=i-r;return n[0]=o(d(l[0],c[0],u)),n[1]=o(d(l[1],c[1],u)),n[2]=o(d(l[2],c[2],u)),n[3]=s(d(l[3],c[3],u)),n}}var C=E;function x(e,t,n){if(t&&t.length&&e>=0&&e<=1){var i=e*(t.length-1),r=Math.floor(i),a=Math.ceil(i),l=v(t[r]),c=v(t[a]),u=i-r,h=O([o(d(l[0],c[0],u)),o(d(l[1],c[1],u)),o(d(l[2],c[2],u)),s(d(l[3],c[3],u))],"rgba");return n?{color:h,leftIndex:r,rightIndex:a,value:i}:h}}var w=x;function T(e,t,n,i){if(e=v(e),e)return e=y(e),null!=t&&(e[0]=a(t)),null!=n&&(e[1]=c(n)),null!=i&&(e[2]=c(i)),O(_(e),"rgba")}function A(e,t){if(e=v(e),e&&null!=t)return e[3]=s(t),O(e,"rgba")}function O(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}t.parse=v,t.lift=b,t.toHex=S,t.fastLerp=E,t.fastMapToColor=C,t.lerp=x,t.mapToColor=w,t.modifyHSL=T,t.modifyAlpha=A,t.stringify=O},"41f8":function(e,t,n){"use strict";t.__esModule=!0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isVNode=o;var r=n("8122");function o(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":i(e))&&(0,r.hasOwn)(e,"componentOptions")}},4272:function(e,t){e.exports=function(e){return{case_insensitive:!1,lexemes:"[a-zA-Z][a-zA-Z0-9_-]*",keywords:{keyword:"base-uri child-src connect-src default-src font-src form-action frame-ancestors frame-src img-src media-src object-src plugin-types report-uri sandbox script-src style-src"},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}},"428f":function(e,t,n){e.exports=n("da84")},"42a2":function(e,t,n){var i=n("b5a7"),r=n("79bc"),o=n("1cec"),a=n("c869"),s=n("39ff"),l=n("3729"),c=n("dc57"),u="[object Map]",d="[object Object]",h="[object Promise]",p="[object Set]",f="[object WeakMap]",g="[object DataView]",m=c(i),v=c(r),_=c(o),y=c(a),b=c(s),S=l;(i&&S(new i(new ArrayBuffer(1)))!=g||r&&S(new r)!=u||o&&S(o.resolve())!=h||a&&S(new a)!=p||s&&S(new s)!=f)&&(S=function(e){var t=l(e),n=t==d?e.constructor:void 0,i=n?c(n):"";if(i)switch(i){case m:return g;case v:return u;case _:return h;case y:return p;case b:return f}return t}),e.exports=S},"42e5":function(e,t){var n=function(e){this.colorStops=e||[]};n.prototype={constructor:n,addColorStop:function(e,t){this.colorStops.push({offset:e,color:t})}};var i=n;e.exports=i},"42f6":function(e,t,n){var i=n("3eba"),r=n("6d8b"),o=n("22d1"),a=n("07d7"),s=n("82f9"),l=n("eda2"),c=n("3842"),u=n("2306"),d=n("133d"),h=n("f934"),p=n("4319"),f=n("17d6"),g=n("697e"),m=n("ff2e"),v=n("e0d3"),_=v.getTooltipRenderMode,y=r.bind,b=r.each,S=c.parsePercent,E=new u.Rect({shape:{x:-1,y:-1,width:2,height:2}}),C=i.extendComponentView({type:"tooltip",init:function(e,t){if(!o.node){var n,i=e.getComponent("tooltip"),r=i.get("renderMode");this._renderMode=_(r),"html"===this._renderMode?(n=new a(t.getDom(),t,{appendToBody:i.get("appendToBody",!0)}),this._newLine="
"):(n=new s(t),this._newLine="\n"),this._tooltipContent=n}},render:function(e,t,n){if(!o.node){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=e.get("alwaysShowContent");var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var e=this._tooltipModel,t=e.get("triggerOn");f.register("itemTooltip",this._api,y((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},_keepShow:function(){var e=this._tooltipModel,t=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY})}))}},manuallyShowTip:function(e,t,n,i){if(i.from!==this.uid&&!o.node){var r=w(i,n);this._ticket="";var a=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var s=E;s.position=[i.x,i.y],s.update(),s.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:s},r)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var l=d(i,t),c=l.point[0],u=l.point[1];null!=c&&null!=u&&this._tryShow({offsetX:c,offsetY:u,position:i.position,target:l.el},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},manuallyHideTip:function(e,t,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(w(i,n))},_manuallyAxisShowTip:function(e,t,n,i){var r=i.seriesIndex,o=i.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=t.getSeriesByIndex(r);if(s){var l=s.getData();e=x([l.getItemModel(o),s,(s.coordinateSystem||{}).model,e]);if("axis"===e.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},_tryShow:function(e,t){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;r&&r.length?this._showAxisTooltip(r,e):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(e,n,t)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(e,n,t)):(this._lastDataByCoordSys=null,this._hide(t))}},_showOrMove:function(e,t){var n=e.get("showDelay");t=r.bind(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},_showAxisTooltip:function(e,t){var n=this._ecModel,i=this._tooltipModel,o=[t.offsetX,t.offsetY],a=[],s=[],c=x([t.tooltipOption,i]),u=this._renderMode,d=this._newLine,h={};b(e,(function(e){b(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value,o=[];if(t&&null!=i){var c=m.getValueLabel(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt);r.each(e.seriesDataIndices,(function(a){var l=n.getSeriesByIndex(a.seriesIndex),d=a.dataIndexInside,p=l&&l.getDataParams(d);if(p.axisDim=e.axisDim,p.axisIndex=e.axisIndex,p.axisType=e.axisType,p.axisId=e.axisId,p.axisValue=g.getAxisRawValue(t.axis,i),p.axisValueLabel=c,p){s.push(p);var f,m=l.formatTooltip(d,!0,null,u);if(r.isObject(m)){f=m.html;var v=m.markers;r.merge(h,v)}else f=m;o.push(f)}}));var p=c;"html"!==u?a.push(o.join(d)):a.push((p?l.encodeHTML(p)+d:"")+o.join(d))}}))}),this),a.reverse(),a=a.join(this._newLine+this._newLine);var p=t.position;this._showOrMove(c,(function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(c,p,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(c,a,s,Math.random(),o[0],o[1],p,void 0,h)}))},_showSeriesItemTooltip:function(e,t,n){var i=this._ecModel,o=t.seriesIndex,a=i.getSeriesByIndex(o),s=t.dataModel||a,l=t.dataIndex,c=t.dataType,u=s.getData(c),d=x([u.getItemModel(l),s,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),h=d.get("trigger");if(null==h||"item"===h){var p,f,g=s.getDataParams(l,c),m=s.formatTooltip(l,!1,c,this._renderMode);r.isObject(m)?(p=m.html,f=m.markers):(p=m,f=null);var v="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,p,g,v,e.offsetX,e.offsetY,e.position,e.target,f)})),n({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:o,from:this.uid})}},_showComponentItemTooltip:function(e,t,n){var i=t.tooltip;if("string"===typeof i){var r=i;i={content:r,formatter:r}}var o=new p(i,this._tooltipModel,this._ecModel),a=o.get("content"),s=Math.random();this._showOrMove(o,(function(){this._showTooltipContent(o,a,o.get("formatterParams")||{},s,e.offsetX,e.offsetY,e.position,t)})),n({type:"showTip",from:this.uid})},_showTooltipContent:function(e,t,n,i,r,o,a,s,c){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent,d=e.get("formatter");a=a||e.get("position");var h=t;if(d&&"string"===typeof d)h=l.formatTpl(d,n,!0);else if("function"===typeof d){var p=y((function(t,i){t===this._ticket&&(u.setContent(i,c,e),this._updatePosition(e,a,r,o,u,n,s))}),this);this._ticket=i,h=d(n,i,p)}u.setContent(h,c,e),u.show(e),this._updatePosition(e,a,r,o,u,n,s)}},_updatePosition:function(e,t,n,i,o,a,s){var l=this._api.getWidth(),c=this._api.getHeight();t=t||e.get("position");var u=o.getSize(),d=e.get("align"),p=e.get("verticalAlign"),f=s&&s.getBoundingRect().clone();if(s&&f.applyTransform(s.transform),"function"===typeof t&&(t=t([n,i],a,o.el,f,{viewSize:[l,c],contentSize:u.slice()})),r.isArray(t))n=S(t[0],l),i=S(t[1],c);else if(r.isObject(t)){t.width=u[0],t.height=u[1];var g=h.getLayoutRect(t,{width:l,height:c});n=g.x,i=g.y,d=null,p=null}else if("string"===typeof t&&s){var m=O(t,f,u);n=m[0],i=m[1]}else{m=T(n,i,o,l,c,d?null:20,p?null:20);n=m[0],i=m[1]}if(d&&(n-=R(d)?u[0]/2:"right"===d?u[0]:0),p&&(i-=R(p)?u[1]/2:"bottom"===p?u[1]:0),e.get("confine")){m=A(n,i,o,l,c);n=m[0],i=m[1]}o.moveTo(n,i)},_updateContentNotChangedOnAxis:function(e){var t=this._lastDataByCoordSys,n=!!t&&t.length===e.length;return n&&b(t,(function(t,i){var r=t.dataByAxis||{},o=e[i]||{},a=o.dataByAxis||[];n&=r.length===a.length,n&&b(r,(function(e,t){var i=a[t]||{},r=e.seriesDataIndices||[],o=i.seriesDataIndices||[];n&=e.value===i.value&&e.axisType===i.axisType&&e.axisId===i.axisId&&r.length===o.length,n&&b(r,(function(e,t){var i=o[t];n&=e.seriesIndex===i.seriesIndex&&e.dataIndex===i.dataIndex}))}))})),this._lastDataByCoordSys=e,!!n},_hide:function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},dispose:function(e,t){o.node||(this._tooltipContent.dispose(),f.unregister("itemTooltip",t))}});function x(e){var t=e.pop();while(e.length){var n=e.pop();n&&(p.isInstance(n)&&(n=n.get("tooltip",!0)),"string"===typeof n&&(n={formatter:n}),t=new p(n,t,t.ecModel))}return t}function w(e,t){return e.dispatchAction||r.bind(t.dispatchAction,t)}function T(e,t,n,i,r,o,a){var s=n.getOuterSize(),l=s.width,c=s.height;return null!=o&&(e+l+o>i?e-=l+o:e+=o),null!=a&&(t+c+a>r?t-=c+a:t+=a),[e,t]}function A(e,t,n,i,r){var o=n.getOuterSize(),a=o.width,s=o.height;return e=Math.min(e+a,i)-a,t=Math.min(t+s,r)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function O(e,t,n){var i=n[0],r=n[1],o=5,a=0,s=0,l=t.width,c=t.height;switch(e){case"inside":a=t.x+l/2-i/2,s=t.y+c/2-r/2;break;case"top":a=t.x+l/2-i/2,s=t.y-r-o;break;case"bottom":a=t.x+l/2-i/2,s=t.y+c+o;break;case"left":a=t.x-i-o,s=t.y+c/2-r/2;break;case"right":a=t.x+l+o,s=t.y+c/2-r/2}return[a,s]}function R(e){return"center"===e||"middle"===e}e.exports=C},4319:function(e,t,n){var i=n("6d8b"),r=n("22d1"),o=n("e0d3"),a=o.makeInner,s=n("625e"),l=s.enableClassExtend,c=s.enableClassCheck,u=n("3901"),d=n("9bdb"),h=n("fe21"),p=n("551f"),f=i.mixin,g=a();function m(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}function v(e,t,n){for(var i=0;i\n \n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,i={on:{}};n&&(i.on.expand=this.handleExpand);var r=this.nodes.map((function(n,r){var o=n.hasChildren;return e("cascader-node",l()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+r,"aria-haspopup":o,"aria-owns":o?t:null}},i]))}));return[].concat(r,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,i={nativeOn:{}};return this.panel.isHoverMenu&&(i.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",l()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},i]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},A=T,O=Object(y["a"])(A,S,E,!1,null,null,null);O.options.__file="packages/cascader-panel/src/cascader-menu.vue";var R=O.exports,N=n(21),D=function(){function e(e,t){for(var n=0;n1?t-1:0),i=1;i1?i-1:0),o=1;o0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},D(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,i=n.disabled,r=n.checkStrictly;return e[i]||!r&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,i=this.children,r=this.config,o=r.lazy,a=r.leaf;if(o){var s=Object(N["isDef"])(e[a])?e[a]:!!t&&!i.length;return this.hasChildren=!s,s}return!n}}]),e}(),L=k;function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var F=function e(t,n){return t.reduce((function(t,i){return i.isLeaf?t.push(i):(!n&&t.push(i),t=t.concat(e(i.children,n))),t}),[])},B=function(){function e(t,n){P(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(g["coerceTruthyValueToArray"])(e),this.nodes=e.map((function(e){return new L(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new L(e,this.config,t),i=t?t.children:this.nodes;i.push(n)},e.prototype.appendNodes=function(e,t){var n=this;e=Object(g["coerceTruthyValueToArray"])(e),e.forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:F(this.nodes,e)},e.prototype.getNodeByValue=function(e){if(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(g["valueEquals"])(t.path,e)||t.value===e}));return t&&t.length?t[0]:null}return null},e}(),$=B,V=n(9),G=n.n(V),U=n(40),z=n.n(U),j=n(31),H=n.n(j),W=Object.assign||function(e){for(var t=1;t0){var l=n.store.getNodeByValue(o);l.data[s]||n.lazyLoad(l,(function(){n.handleExpand(l)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(i)};i.lazyLoad(e,r)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){if(!this.$isServer){var e=this.$refs.menu||[];e.forEach((function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),i=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");H()(n,i)}}))}},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue,n=this.multiple;if(n){var i=this.getFlattedNodes(e);return i.filter((function(e){return e.checked}))}return Object(g["isEmpty"])(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,i=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=i?[]:null}}},te=ee,ne=Object(y["a"])(te,i,r,!1,null,null,null);ne.options.__file="packages/cascader-panel/src/cascader-panel.vue";var ie=ne.exports;ie.install=function(e){e.component(ie.name,ie)};t["default"]=ie},6:function(e,t){e.exports=n("6b7c")},9:function(e,t){e.exports=n("7f4d")}})},4784:function(e,t,n){var i=n("3eba"),r=n("f706"),o=n("c8ef"),a=n("1687"),s=n("87c3"),l=i.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new r(o)},render:function(e,t,n){var i=e.getData(),r=this._symbolDraw;r.updateData(i),this.group.add(r.group)},updateTransform:function(e,t,n){var i=e.getData();this.group.dirty();var r=s().reset(e);r.progress&&r.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateGroupTransform:function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=a.clone(t.getRoamTransform()),this.group.decomposeTransform())},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(t)},dispose:function(){}});e.exports=l},"47f5":function(e,t,n){var i=n("2b03"),r=n("d9a8"),o=n("099a");function a(e,t,n){return t===t?o(e,t,n):i(e,r,n)}e.exports=a},"480e":function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),o=n("2306"),a=n("cd84"),s=n("6d8b");function l(e,t,n){var i=e[1]-e[0];t=s.map(t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}));var r=t.length,o=0;return function(e){for(var i=o;i=0;i--){a=t[i].interval;if(a[0]<=e&&e<=a[1]){o=i;break}}return i>=0&&i=t[0]&&e<=t[1]}}function u(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var d=r.extendChartView({type:"heatmap",render:function(e,t,n){var i;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):u(r)&&this._renderOnGeo(r,e,i,n)},incrementalPrepareRender:function(e,t,n){this.group.removeAll()},incrementalRender:function(e,t,n,i){var r=t.coordinateSystem;r&&this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)},_renderOnCartesianAndCalendar:function(e,t,n,i,r){var a,l,c=e.coordinateSystem;if("cartesian2d"===c.type){var u=c.getAxis("x"),d=c.getAxis("y");a=u.getBandWidth(),l=d.getBandWidth()}for(var h=this.group,p=e.getData(),f="itemStyle",g="emphasis.itemStyle",m="label",v="emphasis.label",_=e.getModel(f).getItemStyle(["color"]),y=e.getModel(g).getItemStyle(),b=e.getModel(m),S=e.getModel(v),E=c.type,C="cartesian2d"===E?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],x=n;x=0?i+=g:i-=g:b>=0?i-=g:i+=g}return i}function f(e,t){var n=[],o=i.quadraticSubdivide,s=[[],[],[]],l=[[],[]],c=[];t/=2,e.eachEdge((function(e,i){var u=e.getLayout(),d=e.getVisual("fromSymbol"),h=e.getVisual("toSymbol");u.__original||(u.__original=[r.clone(u[0]),r.clone(u[1])],u[2]&&u.__original.push(r.clone(u[2])));var f=u.__original;if(null!=u[2]){if(r.copy(s[0],f[0]),r.copy(s[1],f[2]),r.copy(s[2],f[1]),d&&"none"!==d){var g=a(e.node1),m=p(s,f[0],g*t);o(s[0][0],s[1][0],s[2][0],m,n),s[0][0]=n[3],s[1][0]=n[4],o(s[0][1],s[1][1],s[2][1],m,n),s[0][1]=n[3],s[1][1]=n[4]}if(h&&"none"!==h){g=a(e.node2),m=p(s,f[1],g*t);o(s[0][0],s[1][0],s[2][0],m,n),s[1][0]=n[1],s[2][0]=n[2],o(s[0][1],s[1][1],s[2][1],m,n),s[1][1]=n[1],s[2][1]=n[2]}r.copy(u[0],s[0]),r.copy(u[1],s[2]),r.copy(u[2],s[1])}else{if(r.copy(l[0],f[0]),r.copy(l[1],f[1]),r.sub(c,l[1],l[0]),r.normalize(c,c),d&&"none"!==d){g=a(e.node1);r.scaleAndAdd(l[0],l[0],c,g*t)}if(h&&"none"!==h){g=a(e.node2);r.scaleAndAdd(l[1],l[1],c,-g*t)}r.copy(u[0],l[0]),r.copy(u[1],l[1])}}))}e.exports=f},4840:function(e,t,n){var i=n("825a"),r=n("1c0b"),o=n("b622"),a=o("species");e.exports=function(e,t){var n,o=i(e).constructor;return void 0===o||void 0==(n=i(o)[a])?t:r(n)}},"485f":function(e,t){e.exports=function(e){var t={className:"params",begin:"\\(",end:"\\)"},n={literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_ofacosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image"};return{case_insensitive:!0,aliases:["f90","f95"],keywords:n,illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,t]},e.COMMENT("!","$",{relevance:0}),{className:"number",begin:"(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?",relevance:0}]}}},4896:function(e,t,n){var i=n("6f8d"),r=n("c230"),o=n("9e57"),a=n("6e9a"),s=n("edbd"),l=n("7a37"),c=n("b2ed"),u=c("IE_PROTO"),d="prototype",h=function(){},p=function(){var e,t=l("iframe"),n=o.length,i="<",r="script",a=">",c="java"+r+":";t.style.display="none",s.appendChild(t),t.src=String(c),e=t.contentWindow.document,e.open(),e.write(i+r+a+"document.F=Object"+i+"/"+r+a),e.close(),p=e.F;while(n--)delete p[d][o[n]];return p()};e.exports=Object.create||function(e,t){var n;return null!==e?(h[d]=i(e),n=new h,h[d]=null,n[u]=e):n=p(),void 0===t?n:r(n,t)},a[u]=!0},4897:function(e,t,n){"use strict";t.__esModule=!0,t.i18n=t.use=t.t=void 0;var i=n("f0d9"),r=d(i),o=n("a026"),a=d(o),s=n("3c4e"),l=d(s),c=n("9d7e"),u=d(c);function d(e){return e&&e.__esModule?e:{default:e}}var h=(0,u.default)(a.default),p=r.default,f=!1,g=function(){var e=Object.getPrototypeOf(this||a.default).$t;if("function"===typeof e&&a.default.locale)return f||(f=!0,a.default.locale(a.default.config.lang,(0,l.default)(p,a.default.locale(a.default.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},m=t.t=function(e,t){var n=g.apply(this,arguments);if(null!==n&&void 0!==n)return n;for(var i=e.split("."),r=p,o=0,a=i.length;o3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;p(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:a})}if(n){var c=Math.abs(i),u=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);p(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:u,originX:o,originY:a})}}}function h(e){if(!a.isTaken(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;p(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY})}}function p(e,t,n,i,r){e.pointerChecker&&e.pointerChecker(i,r.originX,r.originY)&&(o.stop(i.event),f(e,t,n,i,r))}function f(e,t,n,r,o){o.isAvailableBehavior=i.bind(g,null,n,r),e.trigger(t,o)}function g(e,t,n){var r=n[e];return!e||r&&(!i.isString(r)||t.event[r+"Key"])}i.mixin(s,r);var m=s;e.exports=m},"4a3f":function(e,t,n){var i=n("401b"),r=i.create,o=i.distSquare,a=Math.pow,s=Math.sqrt,l=1e-8,c=1e-4,u=s(3),d=1/3,h=r(),p=r(),f=r();function g(e){return e>-l&&el||e<-l}function v(e,t,n,i,r){var o=1-r;return o*o*(o*e+3*r*t)+r*r*(r*i+3*o*n)}function _(e,t,n,i,r){var o=1-r;return 3*(((t-e)*o+2*(n-t)*r)*o+(i-n)*r*r)}function y(e,t,n,i,r,o){var l=i+3*(t-n)-e,c=3*(n-2*t+e),h=3*(t-e),p=e-r,f=c*c-3*l*h,m=c*h-9*l*p,v=h*h-3*c*p,_=0;if(g(f)&&g(m))if(g(c))o[0]=0;else{var y=-h/c;y>=0&&y<=1&&(o[_++]=y)}else{var b=m*m-4*f*v;if(g(b)){var S=m/f,E=(y=-c/l+S,-S/2);y>=0&&y<=1&&(o[_++]=y),E>=0&&E<=1&&(o[_++]=E)}else if(b>0){var C=s(b),x=f*c+1.5*l*(-m+C),w=f*c+1.5*l*(-m-C);x=x<0?-a(-x,d):a(x,d),w=w<0?-a(-w,d):a(w,d);y=(-c-(x+w))/(3*l);y>=0&&y<=1&&(o[_++]=y)}else{var T=(2*f*c-3*l*m)/(2*s(f*f*f)),A=Math.acos(T)/3,O=s(f),R=Math.cos(A),N=(y=(-c-2*O*R)/(3*l),E=(-c+O*(R+u*Math.sin(A)))/(3*l),(-c+O*(R-u*Math.sin(A)))/(3*l));y>=0&&y<=1&&(o[_++]=y),E>=0&&E<=1&&(o[_++]=E),N>=0&&N<=1&&(o[_++]=N)}}return _}function b(e,t,n,i,r){var o=6*n-12*t+6*e,a=9*t+3*i-3*e-9*n,l=3*t-3*e,c=0;if(g(a)){if(m(o)){var u=-l/o;u>=0&&u<=1&&(r[c++]=u)}}else{var d=o*o-4*a*l;if(g(d))r[0]=-o/(2*a);else if(d>0){var h=s(d),p=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(r[c++]=u),p>=0&&p<=1&&(r[c++]=p)}}return c}function S(e,t,n,i,r,o){var a=(t-e)*r+e,s=(n-t)*r+t,l=(i-n)*r+n,c=(s-a)*r+a,u=(l-s)*r+s,d=(u-c)*r+c;o[0]=e,o[1]=a,o[2]=c,o[3]=d,o[4]=d,o[5]=u,o[6]=l,o[7]=i}function E(e,t,n,i,r,a,l,u,d,g,m){var _,y,b,S,E,C=.005,x=1/0;h[0]=d,h[1]=g;for(var w=0;w<1;w+=.05)p[0]=v(e,n,r,l,w),p[1]=v(t,i,a,u,w),S=o(h,p),S=0&&S=0&&u<=1&&(r[c++]=u)}}else{var d=a*a-4*o*l;if(g(d)){u=-a/(2*o);u>=0&&u<=1&&(r[c++]=u)}else if(d>0){var h=s(d),p=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(r[c++]=u),p>=0&&p<=1&&(r[c++]=p)}}return c}function T(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i}function A(e,t,n,i,r){var o=(t-e)*i+e,a=(n-t)*i+t,s=(a-o)*i+o;r[0]=e,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function O(e,t,n,i,r,a,l,u,d){var g,m=.005,v=1/0;h[0]=l,h[1]=u;for(var _=0;_<1;_+=.05){p[0]=C(e,n,r,_),p[1]=C(t,i,a,_);var y=o(h,p);y=0&&y=0;--i)if(t[i]===e)return!0;return!1}),n):null:n[0]},g.prototype.update=function(e,t){if(e){var n=this.getDefs(!1);if(e[this._domName]&&n.contains(e[this._domName]))"function"===typeof t&&t(e);else{var i=this.add(e);i&&(e[this._domName]=i)}}},g.prototype.addDom=function(e){var t=this.getDefs(!0);t.appendChild(e)},g.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},g.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return o.each(this._tagNames,(function(n){var i=e.getElementsByTagName(n);t=t.concat([].slice.call(i))})),t},g.prototype.markAllUnused=function(){var e=this.getDoms(),t=this;o.each(e,(function(e){e[t._markLabel]=p}))},g.prototype.markUsed=function(e){e&&(e[this._markLabel]=f)},g.prototype.removeUnused=function(){var e=this.getDefs(!1);if(e){var t=this.getDoms(),n=this;o.each(t,(function(t){t[n._markLabel]!==f&&e.removeChild(t)}))}},g.prototype.getSvgProxy=function(e){return e instanceof a?u:e instanceof s?d:e instanceof l?h:u},g.prototype.getTextSvgElement=function(e){return e.__textSvgEl},g.prototype.getSvgElement=function(e){return e.__svgEl};var m=g;e.exports=m},"4b08":function(e,t,n){var i=n("7dcf"),r=i.extend({type:"dataZoom.select"});e.exports=r},"4b17":function(e,t,n){var i=n("6428");function r(e){var t=i(e),n=t%1;return t===t?n?t-n:t:0}e.exports=r},"4b26":function(e,t,n){"use strict";t.__esModule=!0;var i=n("a026"),r=a(i),o=n("5924");function a(e){return e&&e.__esModule?e:{default:e}}var s=!1,l=!1,c=void 0,u=function(){if(!r.default.prototype.$isServer){var e=h.modalDom;return e?s=!0:(s=!1,e=document.createElement("div"),h.modalDom=e,e.addEventListener("touchmove",(function(e){e.preventDefault(),e.stopPropagation()})),e.addEventListener("click",(function(){h.doOnModalClick&&h.doOnModalClick()}))),e}},d={},h={modalFade:!0,getInstance:function(e){return d[e]},register:function(e,t){e&&t&&(d[e]=t)},deregister:function(e){e&&(d[e]=null,delete d[e])},nextZIndex:function(){return h.zIndex++},modalStack:[],doOnModalClick:function(){var e=h.modalStack[h.modalStack.length-1];if(e){var t=h.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,i,a){if(!r.default.prototype.$isServer&&e&&void 0!==t){this.modalFade=a;for(var l=this.modalStack,c=0,d=l.length;c0){var i=t[t.length-1];if(i.id===e){if(i.modalClass){var r=i.modalClass.trim().split(/\s+/);r.forEach((function(e){return(0,o.removeClass)(n,e)}))}t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex)}else for(var a=t.length-1;a>=0;a--)if(t[a].id===e){t.splice(a,1);break}}0===t.length&&(this.modalFade&&(0,o.addClass)(n,"v-modal-leave"),setTimeout((function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",h.modalDom=void 0),(0,o.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(h,"zIndex",{configurable:!0,get:function(){return l||(c=c||(r.default.prototype.$ELEMENT||{}).zIndex||2e3,l=!0),c},set:function(e){c=e}});var p=function(){if(!r.default.prototype.$isServer&&h.modalStack.length>0){var e=h.modalStack[h.modalStack.length-1];if(!e)return;var t=h.getInstance(e.id);return t}};r.default.prototype.$isServer||window.addEventListener("keydown",(function(e){if(27===e.keyCode){var t=p();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}})),t.default=h},"4b8b":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"4bf6":function(e,t,n){var i=n("66fc"),r=n("697e"),o=n("f934"),a=o.getLayoutRect,s=n("6d8b"),l=s.each;function c(e,t,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(e,t,n),this.model=e}c.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:c,_init:function(e,t,n){var o=this.dimension,a=new i(o,r.createScaleByModel(e),[0,0],e.get("type"),e.get("position")),s="category"===a.type;a.onBand=s&&e.get("boundaryGap"),a.inverse=e.get("inverse"),a.orient=e.get("orient"),e.axis=a,a.model=e,a.coordinateSystem=this,this._axis=a},update:function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();l(t.mapDimension(this.dimension,!0),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),r.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(e,t){this._rect=a({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],r=t.reverse?1:0;t.setExtent(i[r],i[1-r]),this._updateAxisTransform(t,n?e.x:e.y)},_updateAxisTransform:function(e,t){var n=e.getExtent(),i=n[0]+n[1],r=e.isHorizontal();e.toGlobalCoord=r?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=r?function(e){return e-t}:function(e){return i-e+t}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(e){var t=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},pointToData:function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},dataToPoint:function(e){var t=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[r]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i}};var u=c;e.exports=u},"4c86":function(e,t,n){var i=n("6d8b"),r=i.each,o=n("bda7"),a=n("e0d3"),s=a.makeInner,l=n("320a"),c=n("1792"),u=n("6bd4"),d=n("a7f2"),h=s(),p={load:function(e,t,n){var i=h(t).parsed;if(i)return i;var a,s=t.specialAreas||{},p=t.geoJSON;try{a=p?o(p,n):[]}catch(g){throw new Error("Invalid geoJson format\n"+g.message)}return l(e,a),r(a,(function(t){var n=t.name;c(e,t),u(e,t),d(e,t);var i=s[n];i&&t.transformTo(i.left,i.top,i.width,i.height)})),h(t).parsed={regions:a,boundingRect:f(a)}}};function f(e){for(var t,n=0;n0?a:s)}function u(e,t){return t.get(e>0?r:o)}}};e.exports=l},"4d20":function(e,t,n){var i=n("1917"),r=n("10db"),o=n("6ca1"),a=n("3397"),s=n("9c0e"),l=n("faf5"),c=Object.getOwnPropertyDescriptor;t.f=n("0bad")?c:function(e,t){if(e=o(e),t=a(t,!0),l)try{return c(e,t)}catch(n){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},"4d62":function(e,t,n){var i=n("2306"),r=n("6d8b"),o=n("e887");function a(e,t){i.Group.call(this);var n=new i.Polygon,r=new i.Polyline,o=new i.Text;this.add(n),this.add(r),this.add(o),this.highDownOnUpdate=function(e,t){"emphasis"===t?(r.ignore=r.hoverIgnore,o.ignore=o.hoverIgnore):(r.ignore=r.normalIgnore,o.ignore=o.normalIgnore)},this.updateData(e,t,!0)}var s=a.prototype,l=["itemStyle","opacity"];s.updateData=function(e,t,n){var o=this.childAt(0),a=e.hostModel,s=e.getItemModel(t),c=e.getItemLayout(t),u=e.getItemModel(t).get(l);u=null==u?1:u,o.useStyle({}),n?(o.setShape({points:c.points}),o.setStyle({opacity:0}),i.initProps(o,{style:{opacity:u}},a,t)):i.updateProps(o,{style:{opacity:u},shape:{points:c.points}},a,t);var d=s.getModel("itemStyle"),h=e.getItemVisual(t,"color");o.setStyle(r.defaults({lineJoin:"round",fill:h},d.getItemStyle(["opacity"]))),o.hoverStyle=d.getModel("emphasis").getItemStyle(),this._updateLabel(e,t),i.setHoverStyle(this)},s._updateLabel=function(e,t){var n=this.childAt(1),r=this.childAt(2),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,c=e.getItemVisual(t,"color");i.updateProps(n,{shape:{points:l.linePoints||l.linePoints}},o,t),i.updateProps(r,{style:{x:l.x,y:l.y}},o,t),r.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var u=a.getModel("label"),d=a.getModel("emphasis.label"),h=a.getModel("labelLine"),p=a.getModel("emphasis.labelLine");c=e.getItemVisual(t,"color");i.setLabelStyle(r.style,r.hoverStyle={},u,d,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:e.getName(t),autoColor:c,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign}),r.ignore=r.normalIgnore=!u.get("show"),r.hoverIgnore=!d.get("show"),n.ignore=n.normalIgnore=!h.get("show"),n.hoverIgnore=!p.get("show"),n.setStyle({stroke:c}),n.setStyle(h.getModel("lineStyle").getLineStyle()),n.hoverStyle=p.getModel("lineStyle").getLineStyle()},r.inherits(a,i.Group);var c=o.extend({type:"funnel",render:function(e,t,n){var i=e.getData(),r=this._data,o=this.group;i.diff(r).add((function(e){var t=new a(i,e);i.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=r.getItemGraphicEl(t);n.updateData(i,e),o.add(n),i.setItemGraphicEl(e,n)})).remove((function(e){var t=r.getItemGraphicEl(e);o.remove(t)})).execute(),this._data=i},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),u=c;e.exports=u},"4d64":function(e,t,n){var i=n("fc6a"),r=n("50c4"),o=n("23cb"),a=function(e){return function(t,n,a){var s,l=i(t),c=r(l.length),u=o(a,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4d85":function(e,t,n){var i=n("e46b"),r=n("4f85"),o=r.extend({type:"series.gauge",getInitialData:function(e,t){return i(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),a=o;e.exports=a},"4d88":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"4dd1":function(e,t){e.exports=function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",n={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},i={className:"number",variants:[{begin:"\\b(0[bB][01]+)n?"},{begin:"\\b(0[oO][0-7]+)n?"},{begin:e.C_NUMBER_RE+"n?"}],relevance:0},r={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},o={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,r],subLanguage:"xml"}},a={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,r],subLanguage:"css"}},s={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,r]};r.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,a,s,i,e.REGEXP_MODE];var l=r.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{aliases:["js","jsx"],keywords:n,contains:[{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},{className:"meta",begin:/^#!/,end:/$/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,a,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,{begin:/[{,\n]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:l}]}]},{className:"",begin:/\s/,end:/\s*/,skip:!0},{begin://,subLanguage:"xml",contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},{begin:/<[A-Za-z0-9\\._:-]+/,end:/(\/[A-Za-z0-9\\._:-]+|[A-Za-z0-9\\._:-]+\/)>/,skip:!0,contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},"self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:l}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor get set",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}}},"4de4":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").filter,o=n("1dde");i({target:"Array",proto:!0,forced:!o("filter")},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var i=n("f8c2"),r=n("7b0b"),o=n("9bdd"),a=n("e95a"),s=n("50c4"),l=n("8418"),c=n("35a1");e.exports=function(e){var t,n,u,d,h,p=r(e),f="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,v=void 0!==m,_=0,y=c(p);if(v&&(m=i(m,g>2?arguments[2]:void 0,2)),void 0==y||f==Array&&a(y))for(t=s(p.length),n=new f(t);t>_;_++)l(n,_,v?m(p[_],_):p[_]);else for(d=y.call(p),h=d.next,n=new f;!(u=h.call(d)).done;_++)l(n,_,v?o(d,m,[u.value,_],!0):u.value);return n.length=_,n}},"4e08":function(e,t,n){(function(e){var n;"undefined"!==typeof window?n=window.__DEV__:"undefined"!==typeof e&&(n=e.__DEV__),"undefined"===typeof n&&(n=!0);var i=n;t.__DEV__=i}).call(this,n("c8ba"))},"4e10":function(e,t,n){var i=n("6d8b"),r=n("e46b"),o=n("4f85"),a=n("eda2"),s=a.encodeHTML,l=a.addCommas,c=n("7023"),u=n("2b17"),d=u.retrieveRawAttr,h=n("5b87"),p=n("0f99"),f=p.makeSeriesEncodeForNameBased,g=o.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(e){for(var t=r(this,{coordDimensions:["value"],encodeDefaulter:i.curry(f,this)}),n=t.mapDimension("value"),o=i.createHashMap(),a=[],s=[],l=0,c=t.count();l":"\n";return u.join(", ")+f+s(a+" : "+o)},getTooltipPosition:function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,i=n.getRegion(t);return i&&n.dataToPoint(i.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});i.mixin(g,c);var m=g;e.exports=m},"4e47":function(e,t,n){var i=n("6d8b"),r=n("2306"),o={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},a=2,s=4;function l(e,t,n){r.Group.call(this);var i=new r.Sector({z2:a});i.seriesIndex=t.seriesIndex;var o=new r.Text({z2:s,silent:e.getModel("label").get("silent")});function l(){o.ignore=o.hoverIgnore}function c(){o.ignore=o.normalIgnore}this.add(i),this.add(o),this.updateData(!0,e,"normal",t,n),this.on("emphasis",l).on("normal",c).on("mouseover",l).on("mouseout",c)}var c=l.prototype;c.updateData=function(e,t,n,o,a){this.node=t,t.piece=this,o=o||this._seriesModel,a=a||this._ecModel;var s=this.childAt(0);s.dataIndex=t.dataIndex;var l=t.getModel(),c=t.getLayout(),u=i.extend({},c);u.label=null;var h=d(t,o,a);f(t,o,h);var p,g=l.getModel("itemStyle").getItemStyle();if("normal"===n)p=g;else{var m=l.getModel(n+".itemStyle").getItemStyle();p=i.merge(m,g)}p=i.defaults({lineJoin:"bevel",fill:p.fill||h},p),e?(s.setShape(u),s.shape.r=c.r0,r.updateProps(s,{shape:{r:c.r}},o,t.dataIndex),s.useStyle(p)):"object"===typeof p.fill&&p.fill.type||"object"===typeof s.style.fill&&s.style.fill.type?(r.updateProps(s,{shape:u},o),s.useStyle(p)):r.updateProps(s,{shape:u,style:p},o),this._updateLabel(o,h,n);var v=l.getShallow("cursor");if(v&&s.attr("cursor",v),e){var _=o.getShallow("highlightPolicy");this._initEvents(s,t,o,_)}this._seriesModel=o||this._seriesModel,this._ecModel=a||this._ecModel,r.setHoverStyle(this)},c.onEmphasis=function(e){var t=this;this.node.hostTree.root.eachNode((function(n){n.piece&&(t.node===n?n.piece.updateData(!1,n,"emphasis"):p(n,t.node,e)?n.piece.childAt(0).trigger("highlight"):e!==o.NONE&&n.piece.childAt(0).trigger("downplay"))}))},c.onNormal=function(){this.node.hostTree.root.eachNode((function(e){e.piece&&e.piece.updateData(!1,e,"normal")}))},c.onHighlight=function(){this.updateData(!1,this.node,"highlight")},c.onDownplay=function(){this.updateData(!1,this.node,"downplay")},c._updateLabel=function(e,t,n){var o=this.node.getModel(),a=o.getModel("label"),s="normal"===n||"emphasis"===n?a:o.getModel(n+".label"),l=o.getModel("emphasis.label"),c=s.get("formatter"),u=c?n:"normal",d=i.retrieve(e.getFormattedLabel(this.node.dataIndex,u,null,null,"label"),this.node.name);!1===A("show")&&(d="");var h=this.node.getLayout(),p=s.get("minAngle");null==p&&(p=a.get("minAngle")),p=p/180*Math.PI;var f=h.endAngle-h.startAngle;null!=p&&Math.abs(f)Math.PI/2?"right":"left"):E&&"center"!==E?"left"===E?(m=h.r0+S,v>Math.PI/2&&(E="right")):"right"===E&&(m=h.r-S,v>Math.PI/2&&(E="left")):(m=(h.r+h.r0)/2,E="center"),g.attr("style",{text:d,textAlign:E,textVerticalAlign:A("verticalAlign")||"middle",opacity:A("opacity")});var C=m*_+h.cx,x=m*y+h.cy;g.attr("position",[C,x]);var w=A("rotate"),T=0;function A(e){var t=s.get(e);return null==t?a.get(e):t}"radial"===w?(T=-v,T<-Math.PI/2&&(T+=Math.PI)):"tangential"===w?(T=Math.PI/2-v,T>Math.PI/2?T-=Math.PI:T<-Math.PI/2&&(T+=Math.PI)):"number"===typeof w&&(T=w*Math.PI/180),g.attr("rotation",T)},c._initEvents=function(e,t,n,i){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,o=function(){r.onEmphasis(i)},a=function(){r.onNormal()},s=function(){r.onDownplay()},l=function(){r.onHighlight()};n.isAnimationEnabled()&&e.on("mouseover",o).on("mouseout",a).on("emphasis",o).on("normal",a).on("downplay",s).on("highlight",l)},i.inherits(l,r.Group);var u=l;function d(e,t,n){var i=e.getVisual("color"),r=e.getVisual("visualMeta");r&&0!==r.length||(i=null);var o=e.getModel("itemStyle").get("color");if(o)return o;if(i)return i;if(0===e.depth)return n.option.color[0];var a=n.option.color.length;return o=n.option.color[h(e)%a],o}function h(e){var t=e;while(t.depth>1)t=t.parentNode;var n=e.getAncestors()[0];return i.indexOf(n.children,t)}function p(e,t,n){return n!==o.NONE&&(n===o.SELF?e===t:n===o.ANCESTOR?e===t||e.isAncestorOf(t):e===t||e.isDescendantOf(t))}function f(e,t,n){var i=t.getData();i.setItemVisual(e.dataIndex,"color",n)}e.exports=u},"4e4b":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=61)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},10:function(e,t){e.exports=n("f3ad")},12:function(e,t){e.exports=n("417f")},14:function(e,t){e.exports=n("14e9")},16:function(e,t){e.exports=n("4010")},17:function(e,t){e.exports=n("0e15")},21:function(e,t){e.exports=n("d397")},22:function(e,t){e.exports=n("12f2")},3:function(e,t){e.exports=n("8122")},31:function(e,t){e.exports=n("2a5e")},33:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},r=[];i._withStripped=!0;var o=n(4),a=n.n(o),s=n(3),l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c={mixins:[a.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,i=n.remote,r=n.valueKey;if(!this.created&&!i){if(r&&"object"===("undefined"===typeof e?"undefined":l(e))&&"object"===("undefined"===typeof t?"undefined":l(t))&&e[r]===t[r])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(s["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,i=n?t:[t],r=this.select.cachedOptions.indexOf(this),o=i.indexOf(this);r>-1&&o<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},u=c,d=n(0),h=Object(d["a"])(u,i,r,!1,null,null,null);h.options.__file="packages/select/src/option.vue";t["a"]=h.exports},37:function(e,t){e.exports=n("8bbc")},4:function(e,t){e.exports=n("d010")},5:function(e,t){e.exports=n("e974")},6:function(e,t){e.exports=n("6b7c")},61:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.navigateOptions("prev")},function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?(t.preventDefault(),e.selectOption(t)):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return"button"in t||!e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?e.deletePrevTag(t):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur},nativeOn:{keyup:function(t){return e.debouncedOnInputChange(t)},keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("prev")},function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?(t.preventDefault(),e.selectOption(t)):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],paste:function(t){return e.debouncedOnInputChange(t)},mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)},r=[];i._withStripped=!0;var o=n(4),a=n.n(o),s=n(22),l=n.n(s),c=n(6),u=n.n(c),d=n(10),h=n.n(d),p=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":e.$parent.multiple},e.popperClass],style:{minWidth:e.minWidth}},[e._t("default")],2)},f=[];p._withStripped=!0;var g=n(5),m=n.n(g),v={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[m.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},_=v,y=n(0),b=Object(y["a"])(_,p,f,!1,null,null,null);b.options.__file="packages/select/src/select-dropdown.vue";var S=b.exports,E=n(33),C=n(37),x=n.n(C),w=n(14),T=n.n(w),A=n(17),O=n.n(A),R=n(12),N=n.n(R),D=n(16),I=n(31),M=n.n(I),k=n(3),L={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"===typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(e){e.hover=t.hoverOption===e}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}},P=n(21),F={mixins:[a.a,u.a,l()("reference"),L],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(k["isIE"])()&&!Object(k["isEdge"])()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value,t=this.clearable&&!this.selectDisabled&&this.inputHovering&&e;return t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(e){return!e.created})).some((function(t){return t.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return"undefined"!==typeof this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:h.a,ElSelectMenu:S,ElOption:E["a"],ElTag:x.a,ElScrollbar:T.a},directives:{Clickoutside:N.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(k["valueEquals"])(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(e){return t.handleQueryChange(n)}));else{var i=n[n.length-1]||"";this.isOnComposition=!Object(P["isKorean"])(i)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!==typeof this.filterMethod&&"function"!==typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"===typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"===typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");M()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object(k["valueEquals"])(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),i="[object null]"===Object.prototype.toString.call(e).toLowerCase(),r="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o],s=n?Object(k["getValueByPath"])(a.value,this.valueKey)===Object(k["getValueByPath"])(e,this.valueKey):a.value===e;if(s){t=a;break}}if(t)return t;var l=n||i||r?"":e,c={value:e,currentLabel:l};return this.multiple&&(c.hitState=!1),c},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(t){n.push(e.getOption(t))})),this.selected=n,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.filterable&&(this.menuVisibleOnFocus=!0)),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],i=e.$refs.tags,r=e.initialInputHeight||40;n.style.height=0===e.selected.length?r+"px":Math.max(i?i.clientHeight+(i.clientHeight>r?6:0):0,r)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var i=(this.value||[]).slice(),r=this.getValueIndex(i,e.value);r>-1?i.splice(r,1):(this.multipleLimit<=0||i.length0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var i=this.valueKey,r=-1;return e.some((function(e,n){return Object(k["getValueByPath"])(e,i)===Object(k["getValueByPath"])(t,i)&&(r=n,!0)})),r}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var i=this.value.slice();i.splice(n,1),this.$emit("input",i),this.emitChange(i),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var i=this.options[n];if(this.query){if(!i.disabled&&!i.groupDisabled&&i.visible){this.hoverIndex=n;break}}else if(i.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(k["getValueByPath"])(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=O()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=O()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(D["addResizeListener"])(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n={medium:36,small:32,mini:28},i=t.$el.querySelector("input");this.initialInputHeight=i.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(D["removeResizeListener"])(this.$el,this.handleResize)}},B=F,$=Object(y["a"])(B,i,r,!1,null,null,null);$.options.__file="packages/select/src/select.vue";var V=$.exports;V.install=function(e){e.component(V.name,V)};t["default"]=V}})},"4e71":function(e,t,n){n("e198")("observable")},"4e82":function(e,t,n){"use strict";var i=n("23e7"),r=n("1c0b"),o=n("7b0b"),a=n("d039"),s=n("b301"),l=[],c=l.sort,u=a((function(){l.sort(void 0)})),d=a((function(){l.sort(null)})),h=s("sort"),p=u||!d||h;i({target:"Array",proto:!0,forced:p},{sort:function(e){return void 0===e?c.call(o(this)):c.call(o(this),r(e))}})},"4e9f":function(e,t,n){var i=n("22d1"),r=n("29a8"),o=n("2145"),a=r.toolbox.saveAsImage;function s(e){this.model=e}s.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:a.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:a.lang.slice()},s.prototype.unusable=!i.canvasSupported;var l=s.prototype;l.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",o="svg"===t.getZr().painter.getType(),a=o?"svg":n.get("type",!0)||"png",s=t.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!==typeof MouseEvent||i.browser.ie||i.browser.edge)if(window.navigator.msSaveOrOpenBlob){var l=atob(s.split(",")[1]),c=l.length,u=new Uint8Array(c);while(c--)u[c]=l.charCodeAt(c);var d=new Blob([u]);window.navigator.msSaveOrOpenBlob(d,r+"."+a)}else{var h=n.get("lang"),p='',f=window.open();f.document.write(p)}else{var g=document.createElement("a");g.download=r+"."+a,g.target="_blank",g.href=s;var m=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});g.dispatchEvent(m)}},o.register("saveAsImage",s);var c=s;e.exports=c},"4eb5":function(e,t,n){var i=n("6981"),r={autoSetContainer:!1,appendToBody:!0},o={install:function(e){e.prototype.$clipboardConfig=r,e.prototype.$copyText=function(e,t){return new Promise((function(n,o){var a=document.createElement("button"),s=new i(a,{text:function(){return e},action:function(){return"copy"},container:"object"===typeof t?t:document.body});s.on("success",(function(e){s.destroy(),n(e)})),s.on("error",(function(e){s.destroy(),o(e)})),r.appendToBody&&document.body.appendChild(a),a.click(),r.appendToBody&&document.body.removeChild(a)}))},e.directive("clipboard",{bind:function(e,t,n){if("success"===t.arg)e._vClipboard_success=t.value;else if("error"===t.arg)e._vClipboard_error=t.value;else{var o=new i(e,{text:function(){return t.value},action:function(){return"cut"===t.arg?"cut":"copy"},container:r.autoSetContainer?e:void 0});o.on("success",(function(t){var n=e._vClipboard_success;n&&n(t)})),o.on("error",(function(t){var n=e._vClipboard_error;n&&n(t)})),e._vClipboard=o}},update:function(e,t){"success"===t.arg?e._vClipboard_success=t.value:"error"===t.arg?e._vClipboard_error=t.value:(e._vClipboard.text=function(){return t.value},e._vClipboard.action=function(){return"cut"===t.arg?"cut":"copy"})},unbind:function(e,t){"success"===t.arg?delete e._vClipboard_success:"error"===t.arg?delete e._vClipboard_error:(e._vClipboard.destroy(),delete e._vClipboard)}})},config:r};e.exports=o},"4ebc":function(e,t,n){var i=n("4d88");e.exports=Array.isArray||function(e){return"Array"==i(e)}},"4f4a":function(e,t){e.exports=function(e){return{case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},e.COMMENT("^\\s*(!=#|=#|-#|/).*$",!1,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",starts:{end:"\\n",subLanguage:"ruby"}},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:"{\\s*",end:"\\s*}",contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:"#{",starts:{end:"}",subLanguage:"ruby"}}]}}},"4f85":function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),o=n("22d1"),a=n("eda2"),s=a.formatTime,l=a.encodeHTML,c=a.addCommas,u=a.getTooltipMarker,d=n("e0d3"),h=n("6cb7"),p=n("e47b"),f=n("38a2"),g=n("f934"),m=g.getLayoutParams,v=g.mergeLayoutParam,_=n("f47d"),y=_.createTask,b=n("0f99"),S=b.prepareSource,E=b.getSource,C=n("2b17"),x=C.retrieveRawValue,w=d.makeInner(),T=h.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(e,t,n,i){this.seriesIndex=this.componentIndex,this.dataTask=y({count:R,reset:N}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),S(this);var r=this.getInitialData(e,n);I(r,this),this.dataTask.context.data=r,w(this).dataBeforeProcessed=r,A(this)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,i=n?m(e):{},o=this.subType;h.hasClass(o)&&(o+="Series"),r.merge(e,t.getTheme().get(this.subType)),r.merge(e,this.getDefaultOption()),d.defaultEmphasis(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&v(e,i,n)},mergeOption:function(e,t){e=r.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var n=this.layoutMode;n&&v(this.option,e,n),S(this);var i=this.getInitialData(e,t);I(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,w(this).dataBeforeProcessed=i,A(this)},fillDataTextStyle:function(e){if(e&&!r.isTypedArray(e))for(var t=["show"],n=0;n":"\n",h="richText"===i,p={},f=0;function g(n){var a=r.reduce(n,(function(e,t,n){var i=v.getDimensionInfo(n);return e|(i&&!1!==i.tooltip&&null!=i.displayName)}),0),d=[];function g(e,n){var r=v.getDimensionInfo(n);if(r&&!1!==r.otherDims.tooltip){var g=r.type,m="sub"+o.seriesIndex+"at"+f,_=u({color:E,type:"subItem",renderMode:i,markerId:m}),y="string"===typeof _?_:_.content,b=(a?y+l(r.displayName||"-")+": ":"")+l("ordinal"===g?e+"":"time"===g?t?"":s("yyyy/MM/dd hh:mm:ss",e):c(e));b&&d.push(b),h&&(p[m]=E,++f)}}_.length?r.each(_,(function(t){g(x(v,e,t),t)})):r.each(n,g);var m=a?h?"\n":"
":"",y=m+d.join(m||", ");return{renderMode:i,content:y,style:p}}function m(e){return{renderMode:i,content:l(c(e)),style:p}}var v=this.getData(),_=v.mapDimension("defaultedTooltip",!0),y=_.length,b=this.getRawValue(e),S=r.isArray(b),E=v.getItemVisual(e,"color");r.isObject(E)&&E.colorStops&&(E=(E.colorStops[0]||{}).color),E=E||"transparent";var C=y>1||S&&!y?g(b):m(y?x(v,e,_[0]):S?b[0]:b),w=C.content,T=o.seriesIndex+"at"+f,A=u({color:E,type:"item",renderMode:i,markerId:T});p[T]=E,++f;var O=v.getName(e),R=this.name;d.isNameSpecified(this)||(R=""),R=R?l(R)+(t?": ":a):"";var N="string"===typeof A?A:A.content,D=t?N+R+w:R+N+(O?l(O)+": "+w:w);return{html:D,markers:p}},isAnimationEnabled:function(){if(o.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),e},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(e,t,n){var i=this.ecModel,r=p.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},coordDimToDataDim:function(e){return this.getRawData().mapDimension(e,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function A(e){var t=e.name;d.isNameSpecified(e)||(e.name=O(e)||t)}function O(e){var t=e.getRawData(),n=t.mapDimension("seriesName",!0),i=[];return r.each(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)})),i.join(" ")}function R(e){return e.model.getRawData().count()}function N(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),D}function D(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function I(e,t){r.each(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,r.curry(M,t))}))}function M(e){var t=k(e);t&&t.setOutputEnd(this.count())}function k(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}r.mixin(T,f),r.mixin(T,p);var L=T;e.exports=L},"4fac":function(e,t,n){var i=n("620b"),r=n("9c2c");function o(e,t,n){var o=t.points,a=t.smooth;if(o&&o.length>=2){if(a&&"spline"!==a){var s=r(o,a,n,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var l=o.length,c=0;c<(n?l:l-1);c++){var u=s[2*c],d=s[2*c+1],h=o[(c+1)%l];e.bezierCurveTo(u[0],u[1],d[0],d[1],h[0],h[1])}}else{"spline"===a&&(o=i(o,n)),e.moveTo(o[0][0],o[0][1]);c=1;for(var p=o.length;c",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},o]}],relevance:0}]}}},5051:function(e,t){e.exports=function(e){var t={variants:[e.COMMENT("--","$"),e.COMMENT("{-","-}",{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},i={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]},r={begin:"{",end:"}",contains:i.contains},o={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{keywords:"let in if then else case of where module import exposing type alias as infix infixl infixr port effect command subscription",contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[i,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[i,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,i,r,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},o,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}},"508e":function(e,t){e.exports=function(e){var t={begin:"`[\\s\\S]",relevance:0},n={className:"variable",variants:[{begin:/\$[\w\d][\w\d_:]*/}]},i={className:"literal",begin:/\$(null|true|false)\b/},r={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[t,n,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},o={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},a={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},s=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[a]});return{aliases:["ps","ps1"],lexemes:/-?[A-z\.\-]+/,case_insensitive:!0,keywords:{keyword:"if else foreach return function do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catchValidateNoCircleInNodeResources ValidateNodeExclusiveResources ValidateNodeManager ValidateNodeResources ValidateNodeResourceSource ValidateNoNameNodeResources ThrowError IsHiddenResourceIsPatternMatched ",built_in:"Add-Computer Add-Content Add-History Add-JobTrigger Add-Member Add-PSSnapin Add-Type Checkpoint-Computer Clear-Content Clear-EventLog Clear-History Clear-Host Clear-Item Clear-ItemProperty Clear-Variable Compare-Object Complete-Transaction Connect-PSSession Connect-WSMan Convert-Path ConvertFrom-Csv ConvertFrom-Json ConvertFrom-SecureString ConvertFrom-StringData ConvertTo-Csv ConvertTo-Html ConvertTo-Json ConvertTo-SecureString ConvertTo-Xml Copy-Item Copy-ItemProperty Debug-Process Disable-ComputerRestore Disable-JobTrigger Disable-PSBreakpoint Disable-PSRemoting Disable-PSSessionConfiguration Disable-WSManCredSSP Disconnect-PSSession Disconnect-WSMan Disable-ScheduledJob Enable-ComputerRestore Enable-JobTrigger Enable-PSBreakpoint Enable-PSRemoting Enable-PSSessionConfiguration Enable-ScheduledJob Enable-WSManCredSSP Enter-PSSession Exit-PSSession Export-Alias Export-Clixml Export-Console Export-Counter Export-Csv Export-FormatData Export-ModuleMember Export-PSSession ForEach-Object Format-Custom Format-List Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command Get-ComputerRestorePoint Get-Content Get-ControlPanelItem Get-Counter Get-Credential Get-Culture Get-Date Get-Event Get-EventLog Get-EventSubscriber Get-ExecutionPolicy Get-FormatData Get-Host Get-HotFix Get-Help Get-History Get-IseSnippet Get-Item Get-ItemProperty Get-Job Get-JobTrigger Get-Location Get-Member Get-Module Get-PfxCertificate Get-Process Get-PSBreakpoint Get-PSCallStack Get-PSDrive Get-PSProvider Get-PSSession Get-PSSessionConfiguration Get-PSSnapin Get-Random Get-ScheduledJob Get-ScheduledJobOption Get-Service Get-TraceSource Get-Transaction Get-TypeData Get-UICulture Get-Unique Get-Variable Get-Verb Get-WinEvent Get-WmiObject Get-WSManCredSSP Get-WSManInstance Group-Object Import-Alias Import-Clixml Import-Counter Import-Csv Import-IseSnippet Import-LocalizedData Import-PSSession Import-Module Invoke-AsWorkflow Invoke-Command Invoke-Expression Invoke-History Invoke-Item Invoke-RestMethod Invoke-WebRequest Invoke-WmiMethod Invoke-WSManAction Join-Path Limit-EventLog Measure-Command Measure-Object Move-Item Move-ItemProperty New-Alias New-Event New-EventLog New-IseSnippet New-Item New-ItemProperty New-JobTrigger New-Object New-Module New-ModuleManifest New-PSDrive New-PSSession New-PSSessionConfigurationFile New-PSSessionOption New-PSTransportOption New-PSWorkflowExecutionOption New-PSWorkflowSession New-ScheduledJobOption New-Service New-TimeSpan New-Variable New-WebServiceProxy New-WinEvent New-WSManInstance New-WSManSessionOption Out-Default Out-File Out-GridView Out-Host Out-Null Out-Printer Out-String Pop-Location Push-Location Read-Host Receive-Job Register-EngineEvent Register-ObjectEvent Register-PSSessionConfiguration Register-ScheduledJob Register-WmiEvent Remove-Computer Remove-Event Remove-EventLog Remove-Item Remove-ItemProperty Remove-Job Remove-JobTrigger Remove-Module Remove-PSBreakpoint Remove-PSDrive Remove-PSSession Remove-PSSnapin Remove-TypeData Remove-Variable Remove-WmiObject Remove-WSManInstance Rename-Computer Rename-Item Rename-ItemProperty Reset-ComputerMachinePassword Resolve-Path Restart-Computer Restart-Service Restore-Computer Resume-Job Resume-Service Save-Help Select-Object Select-String Select-Xml Send-MailMessage Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-JobTrigger Set-Location Set-PSBreakpoint Set-PSDebug Set-PSSessionConfiguration Set-ScheduledJob Set-ScheduledJobOption Set-Service Set-StrictMode Set-TraceSource Set-Variable Set-WmiInstance Set-WSManInstance Set-WSManQuickConfig Show-Command Show-ControlPanelItem Show-EventLog Sort-Object Split-Path Start-Job Start-Process Start-Service Start-Sleep Start-Transaction Start-Transcript Stop-Computer Stop-Job Stop-Process Stop-Service Stop-Transcript Suspend-Job Suspend-Service Tee-Object Test-ComputerSecureChannel Test-Connection Test-ModuleManifest Test-Path Test-PSSessionConfigurationFile Trace-Command Unblock-File Undo-Transaction Unregister-Event Unregister-PSSessionConfiguration Unregister-ScheduledJob Update-FormatData Update-Help Update-List Update-TypeData Use-Transaction Wait-Event Wait-Job Wait-Process Where-Object Write-Debug Write-Error Write-EventLog Write-Host Write-Output Write-Progress Write-Verbose Write-Warning Add-MDTPersistentDrive Disable-MDTMonitorService Enable-MDTMonitorService Get-MDTDeploymentShareStatistics Get-MDTMonitorData Get-MDTOperatingSystemCatalog Get-MDTPersistentDrive Import-MDTApplication Import-MDTDriver Import-MDTOperatingSystem Import-MDTPackage Import-MDTTaskSequence New-MDTDatabase Remove-MDTMonitorData Remove-MDTPersistentDrive Restore-MDTPersistentDrive Set-MDTMonitorData Test-MDTDeploymentShare Test-MDTMonitorData Update-MDTDatabaseSchema Update-MDTDeploymentShare Update-MDTLinkedDS Update-MDTMedia Add-VamtProductKey Export-VamtData Find-VamtManagedMachine Get-VamtConfirmationId Get-VamtProduct Get-VamtProductKey Import-VamtData Initialize-VamtData Install-VamtConfirmationId Install-VamtProductActivation Install-VamtProductKey Update-VamtProduct Add-CIDatastore Add-KeyManagementServer Add-NodeKeys Add-NsxDynamicCriteria Add-NsxDynamicMemberSet Add-NsxEdgeInterfaceAddress Add-NsxFirewallExclusionListMember Add-NsxFirewallRuleMember Add-NsxIpSetMember Add-NsxLicense Add-NsxLoadBalancerPoolMember Add-NsxLoadBalancerVip Add-NsxSecondaryManager Add-NsxSecurityGroupMember Add-NsxSecurityPolicyRule Add-NsxSecurityPolicyRuleGroup Add-NsxSecurityPolicyRuleService Add-NsxServiceGroupMember Add-NsxTransportZoneMember Add-PassthroughDevice Add-VDSwitchPhysicalNetworkAdapter Add-VDSwitchVMHost Add-VMHost Add-VMHostNtpServer Add-VirtualSwitchPhysicalNetworkAdapter Add-XmlElement Add-vRACustomForm Add-vRAPrincipalToTenantRole Add-vRAReservationNetwork Add-vRAReservationStorage Clear-NsxEdgeInterface Clear-NsxManagerTimeSettings Compress-Archive Connect-CIServer Connect-CisServer Connect-HCXServer Connect-NIServer Connect-NsxLogicalSwitch Connect-NsxServer Connect-NsxtServer Connect-SrmServer Connect-VIServer Connect-Vmc Connect-vRAServer Connect-vRNIServer ConvertFrom-Markdown ConvertTo-MOFInstance Copy-DatastoreItem Copy-HardDisk Copy-NsxEdge Copy-VDisk Copy-VMGuestFile Debug-Runspace Disable-NsxEdgeSsh Disable-RunspaceDebug Disable-vRNIDataSource Disconnect-CIServer Disconnect-CisServer Disconnect-HCXServer Disconnect-NsxLogicalSwitch Disconnect-NsxServer Disconnect-NsxtServer Disconnect-SrmServer Disconnect-VIServer Disconnect-Vmc Disconnect-vRAServer Disconnect-vRNIServer Dismount-Tools Enable-NsxEdgeSsh Enable-RunspaceDebug Enable-vRNIDataSource Expand-Archive Export-NsxObject Export-SpbmStoragePolicy Export-VApp Export-VDPortGroup Export-VDSwitch Export-VMHostProfile Export-vRAIcon Export-vRAPackage Find-Command Find-DscResource Find-Module Find-NsxWhereVMUsed Find-Package Find-PackageProvider Find-RoleCapability Find-Script Format-Hex Format-VMHostDiskPartition Format-XML Generate-VersionInfo Get-AdvancedSetting Get-AlarmAction Get-AlarmActionTrigger Get-AlarmDefinition Get-Annotation Get-CDDrive Get-CIAccessControlRule Get-CIDatastore Get-CINetworkAdapter Get-CIRole Get-CIUser Get-CIVApp Get-CIVAppNetwork Get-CIVAppStartRule Get-CIVAppTemplate Get-CIVM Get-CIVMTemplate Get-CIView Get-Catalog Get-CisCommand Get-CisService Get-CloudCommand Get-Cluster Get-CompatibleVersionAddtionaPropertiesStr Get-ComplexResourceQualifier Get-ConfigurationErrorCount Get-ContentLibraryItem Get-CustomAttribute Get-DSCResourceModules Get-Datacenter Get-Datastore Get-DatastoreCluster Get-DrsClusterGroup Get-DrsRecommendation Get-DrsRule Get-DrsVMHostRule Get-DscResource Get-EdgeGateway Get-EncryptedPassword Get-ErrorReport Get-EsxCli Get-EsxTop Get-ExternalNetwork Get-FileHash Get-FloppyDrive Get-Folder Get-HAPrimaryVMHost Get-HCXAppliance Get-HCXApplianceCompute Get-HCXApplianceDVS Get-HCXApplianceDatastore Get-HCXApplianceNetwork Get-HCXContainer Get-HCXDatastore Get-HCXGateway Get-HCXInterconnectStatus Get-HCXJob Get-HCXMigration Get-HCXNetwork Get-HCXNetworkExtension Get-HCXReplication Get-HCXReplicationSnapshot Get-HCXService Get-HCXSite Get-HCXSitePairing Get-HCXVM Get-HardDisk Get-IScsiHbaTarget Get-InnerMostErrorRecord Get-InstallPath Get-InstalledModule Get-InstalledScript Get-Inventory Get-ItemPropertyValue Get-KeyManagementServer Get-KmipClientCertificate Get-KmsCluster Get-Log Get-LogType Get-MarkdownOption Get-Media Get-MofInstanceName Get-MofInstanceText Get-NetworkAdapter Get-NetworkPool Get-NfsUser Get-NicTeamingPolicy Get-NsxApplicableMember Get-NsxApplicableSecurityAction Get-NsxBackingDVSwitch Get-NsxBackingPortGroup Get-NsxCliDfwAddrSet Get-NsxCliDfwFilter Get-NsxCliDfwRule Get-NsxClusterStatus Get-NsxController Get-NsxDynamicCriteria Get-NsxDynamicMemberSet Get-NsxEdge Get-NsxEdgeBgp Get-NsxEdgeBgpNeighbour Get-NsxEdgeCertificate Get-NsxEdgeCsr Get-NsxEdgeFirewall Get-NsxEdgeFirewallRule Get-NsxEdgeInterface Get-NsxEdgeInterfaceAddress Get-NsxEdgeNat Get-NsxEdgeNatRule Get-NsxEdgeOspf Get-NsxEdgeOspfArea Get-NsxEdgeOspfInterface Get-NsxEdgePrefix Get-NsxEdgeRedistributionRule Get-NsxEdgeRouting Get-NsxEdgeStaticRoute Get-NsxEdgeSubInterface Get-NsxFirewallExclusionListMember Get-NsxFirewallGlobalConfiguration Get-NsxFirewallPublishStatus Get-NsxFirewallRule Get-NsxFirewallRuleMember Get-NsxFirewallSavedConfiguration Get-NsxFirewallSection Get-NsxFirewallThreshold Get-NsxIpPool Get-NsxIpSet Get-NsxLicense Get-NsxLoadBalancer Get-NsxLoadBalancerApplicationProfile Get-NsxLoadBalancerApplicationRule Get-NsxLoadBalancerMonitor Get-NsxLoadBalancerPool Get-NsxLoadBalancerPoolMember Get-NsxLoadBalancerStats Get-NsxLoadBalancerVip Get-NsxLogicalRouter Get-NsxLogicalRouterBgp Get-NsxLogicalRouterBgpNeighbour Get-NsxLogicalRouterBridge Get-NsxLogicalRouterBridging Get-NsxLogicalRouterInterface Get-NsxLogicalRouterOspf Get-NsxLogicalRouterOspfArea Get-NsxLogicalRouterOspfInterface Get-NsxLogicalRouterPrefix Get-NsxLogicalRouterRedistributionRule Get-NsxLogicalRouterRouting Get-NsxLogicalRouterStaticRoute Get-NsxLogicalSwitch Get-NsxMacSet Get-NsxManagerBackup Get-NsxManagerCertificate Get-NsxManagerComponentSummary Get-NsxManagerNetwork Get-NsxManagerRole Get-NsxManagerSsoConfig Get-NsxManagerSyncStatus Get-NsxManagerSyslogServer Get-NsxManagerSystemSummary Get-NsxManagerTimeSettings Get-NsxManagerVcenterConfig Get-NsxSecondaryManager Get-NsxSecurityGroup Get-NsxSecurityGroupEffectiveIpAddress Get-NsxSecurityGroupEffectiveMacAddress Get-NsxSecurityGroupEffectiveMember Get-NsxSecurityGroupEffectiveVirtualMachine Get-NsxSecurityGroupEffectiveVnic Get-NsxSecurityGroupMemberTypes Get-NsxSecurityPolicy Get-NsxSecurityPolicyHighestUsedPrecedence Get-NsxSecurityPolicyRule Get-NsxSecurityTag Get-NsxSecurityTagAssignment Get-NsxSegmentIdRange Get-NsxService Get-NsxServiceDefinition Get-NsxServiceGroup Get-NsxServiceGroupMember Get-NsxServiceProfile Get-NsxSpoofguardNic Get-NsxSpoofguardPolicy Get-NsxSslVpn Get-NsxSslVpnAuthServer Get-NsxSslVpnClientInstallationPackage Get-NsxSslVpnIpPool Get-NsxSslVpnPrivateNetwork Get-NsxSslVpnUser Get-NsxTransportZone Get-NsxUserRole Get-NsxVdsContext Get-NsxtPolicyService Get-NsxtService Get-OSCustomizationNicMapping Get-OSCustomizationSpec Get-Org Get-OrgNetwork Get-OrgVdc Get-OrgVdcNetwork Get-OvfConfiguration Get-PSCurrentConfigurationNode Get-PSDefaultConfigurationDocument Get-PSMetaConfigDocumentInstVersionInfo Get-PSMetaConfigurationProcessed Get-PSReadLineKeyHandler Get-PSReadLineOption Get-PSRepository Get-PSTopConfigurationName Get-PSVersion Get-Package Get-PackageProvider Get-PackageSource Get-PassthroughDevice Get-PositionInfo Get-PowerCLICommunity Get-PowerCLIConfiguration Get-PowerCLIHelp Get-PowerCLIVersion Get-PowerNsxVersion Get-ProviderVdc Get-PublicKeyFromFile Get-PublicKeyFromStore Get-ResourcePool Get-Runspace Get-RunspaceDebug Get-ScsiController Get-ScsiLun Get-ScsiLunPath Get-SecurityInfo Get-SecurityPolicy Get-Snapshot Get-SpbmCapability Get-SpbmCompatibleStorage Get-SpbmEntityConfiguration Get-SpbmFaultDomain Get-SpbmPointInTimeReplica Get-SpbmReplicationGroup Get-SpbmReplicationPair Get-SpbmStoragePolicy Get-Stat Get-StatInterval Get-StatType Get-Tag Get-TagAssignment Get-TagCategory Get-Task Get-Template Get-TimeZone Get-Uptime Get-UsbDevice Get-VAIOFilter Get-VApp Get-VDBlockedPolicy Get-VDPort Get-VDPortgroup Get-VDPortgroupOverridePolicy Get-VDSecurityPolicy Get-VDSwitch Get-VDSwitchPrivateVlan Get-VDTrafficShapingPolicy Get-VDUplinkLacpPolicy Get-VDUplinkTeamingPolicy Get-VDisk Get-VIAccount Get-VICommand Get-VICredentialStoreItem Get-VIEvent Get-VIObjectByVIView Get-VIPermission Get-VIPrivilege Get-VIProperty Get-VIRole Get-VM Get-VMGuest Get-VMHost Get-VMHostAccount Get-VMHostAdvancedConfiguration Get-VMHostAuthentication Get-VMHostAvailableTimeZone Get-VMHostDiagnosticPartition Get-VMHostDisk Get-VMHostDiskPartition Get-VMHostFirewallDefaultPolicy Get-VMHostFirewallException Get-VMHostFirmware Get-VMHostHardware Get-VMHostHba Get-VMHostModule Get-VMHostNetwork Get-VMHostNetworkAdapter Get-VMHostNtpServer Get-VMHostPatch Get-VMHostPciDevice Get-VMHostProfile Get-VMHostProfileImageCacheConfiguration Get-VMHostProfileRequiredInput Get-VMHostProfileStorageDeviceConfiguration Get-VMHostProfileUserConfiguration Get-VMHostProfileVmPortGroupConfiguration Get-VMHostRoute Get-VMHostService Get-VMHostSnmp Get-VMHostStartPolicy Get-VMHostStorage Get-VMHostSysLogServer Get-VMQuestion Get-VMResourceConfiguration Get-VMStartPolicy Get-VTpm Get-VTpmCSR Get-VTpmCertificate Get-VasaProvider Get-VasaStorageArray Get-View Get-VirtualPortGroup Get-VirtualSwitch Get-VmcSddcNetworkService Get-VmcService Get-VsanClusterConfiguration Get-VsanComponent Get-VsanDisk Get-VsanDiskGroup Get-VsanEvacuationPlan Get-VsanFaultDomain Get-VsanIscsiInitiatorGroup Get-VsanIscsiInitiatorGroupTargetAssociation Get-VsanIscsiLun Get-VsanIscsiTarget Get-VsanObject Get-VsanResyncingComponent Get-VsanRuntimeInfo Get-VsanSpaceUsage Get-VsanStat Get-VsanView Get-vRAApplianceServiceStatus Get-vRAAuthorizationRole Get-vRABlueprint Get-vRABusinessGroup Get-vRACatalogItem Get-vRACatalogItemRequestTemplate Get-vRACatalogPrincipal Get-vRAComponentRegistryService Get-vRAComponentRegistryServiceEndpoint Get-vRAComponentRegistryServiceStatus Get-vRAContent Get-vRAContentData Get-vRAContentType Get-vRACustomForm Get-vRAEntitledCatalogItem Get-vRAEntitledService Get-vRAEntitlement Get-vRAExternalNetworkProfile Get-vRAGroupPrincipal Get-vRAIcon Get-vRANATNetworkProfile Get-vRANetworkProfileIPAddressList Get-vRANetworkProfileIPRangeSummary Get-vRAPackage Get-vRAPackageContent Get-vRAPropertyDefinition Get-vRAPropertyGroup Get-vRARequest Get-vRARequestDetail Get-vRAReservation Get-vRAReservationComputeResource Get-vRAReservationComputeResourceMemory Get-vRAReservationComputeResourceNetwork Get-vRAReservationComputeResourceResourcePool Get-vRAReservationComputeResourceStorage Get-vRAReservationPolicy Get-vRAReservationTemplate Get-vRAReservationType Get-vRAResource Get-vRAResourceAction Get-vRAResourceActionRequestTemplate Get-vRAResourceMetric Get-vRAResourceOperation Get-vRAResourceType Get-vRARoutedNetworkProfile Get-vRAService Get-vRAServiceBlueprint Get-vRASourceMachine Get-vRAStorageReservationPolicy Get-vRATenant Get-vRATenantDirectory Get-vRATenantDirectoryStatus Get-vRATenantRole Get-vRAUserPrincipal Get-vRAUserPrincipalGroupMembership Get-vRAVersion Get-vRNIAPIVersion Get-vRNIApplication Get-vRNIApplicationTier Get-vRNIDataSource Get-vRNIDataSourceSNMPConfig Get-vRNIDatastore Get-vRNIDistributedSwitch Get-vRNIDistributedSwitchPortGroup Get-vRNIEntity Get-vRNIEntityName Get-vRNIFirewallRule Get-vRNIFlow Get-vRNIHost Get-vRNIHostVMKNic Get-vRNIIPSet Get-vRNIL2Network Get-vRNINSXManager Get-vRNINodes Get-vRNIProblem Get-vRNIRecommendedRules Get-vRNIRecommendedRulesNsxBundle Get-vRNISecurityGroup Get-vRNISecurityTag Get-vRNIService Get-vRNIServiceGroup Get-vRNIVM Get-vRNIVMvNIC Get-vRNIvCenter Get-vRNIvCenterCluster Get-vRNIvCenterDatacenter Get-vRNIvCenterFolder Grant-NsxSpoofguardNicApproval Import-CIVApp Import-CIVAppTemplate Import-NsxObject Import-PackageProvider Import-PowerShellDataFile Import-SpbmStoragePolicy Import-VApp Import-VMHostProfile Import-vRAContentData Import-vRAIcon Import-vRAPackage Initialize-ConfigurationRuntimeState Install-Module Install-NsxCluster Install-Package Install-PackageProvider Install-Script Install-VMHostPatch Invoke-DrsRecommendation Invoke-NsxCli Invoke-NsxClusterResolveAll Invoke-NsxManagerSync Invoke-NsxRestMethod Invoke-NsxWebRequest Invoke-VMHostProfile Invoke-VMScript Invoke-XpathQuery Invoke-vRADataCollection Invoke-vRARestMethod Invoke-vRATenantDirectorySync Invoke-vRNIRestMethod Join-String Mount-Tools Move-Cluster Move-Datacenter Move-Datastore Move-Folder Move-HardDisk Move-Inventory Move-NsxSecurityPolicyRule Move-ResourcePool Move-Template Move-VApp Move-VDisk Move-VM Move-VMHost New-AdvancedSetting New-AlarmAction New-AlarmActionTrigger New-CDDrive New-CIAccessControlRule New-CIVApp New-CIVAppNetwork New-CIVAppTemplate New-CIVM New-Cluster New-CustomAttribute New-Datacenter New-Datastore New-DatastoreCluster New-DatastoreDrive New-DrsClusterGroup New-DrsRule New-DrsVMHostRule New-DscChecksum New-FloppyDrive New-Folder New-Guid New-HCXAppliance New-HCXMigration New-HCXNetworkExtension New-HCXNetworkMapping New-HCXReplication New-HCXSitePairing New-HCXStaticRoute New-HardDisk New-IScsiHbaTarget New-KmipClientCertificate New-NetworkAdapter New-NfsUser New-NsxAddressSpec New-NsxClusterVxlanConfig New-NsxController New-NsxDynamicCriteriaSpec New-NsxEdge New-NsxEdgeBgpNeighbour New-NsxEdgeCsr New-NsxEdgeFirewallRule New-NsxEdgeInterfaceSpec New-NsxEdgeNatRule New-NsxEdgeOspfArea New-NsxEdgeOspfInterface New-NsxEdgePrefix New-NsxEdgeRedistributionRule New-NsxEdgeSelfSignedCertificate New-NsxEdgeStaticRoute New-NsxEdgeSubInterface New-NsxEdgeSubInterfaceSpec New-NsxFirewallRule New-NsxFirewallSavedConfiguration New-NsxFirewallSection New-NsxIpPool New-NsxIpSet New-NsxLoadBalancerApplicationProfile New-NsxLoadBalancerApplicationRule New-NsxLoadBalancerMemberSpec New-NsxLoadBalancerMonitor New-NsxLoadBalancerPool New-NsxLogicalRouter New-NsxLogicalRouterBgpNeighbour New-NsxLogicalRouterBridge New-NsxLogicalRouterInterface New-NsxLogicalRouterInterfaceSpec New-NsxLogicalRouterOspfArea New-NsxLogicalRouterOspfInterface New-NsxLogicalRouterPrefix New-NsxLogicalRouterRedistributionRule New-NsxLogicalRouterStaticRoute New-NsxLogicalSwitch New-NsxMacSet New-NsxManager New-NsxSecurityGroup New-NsxSecurityPolicy New-NsxSecurityPolicyAssignment New-NsxSecurityPolicyFirewallRuleSpec New-NsxSecurityPolicyGuestIntrospectionSpec New-NsxSecurityPolicyNetworkIntrospectionSpec New-NsxSecurityTag New-NsxSecurityTagAssignment New-NsxSegmentIdRange New-NsxService New-NsxServiceGroup New-NsxSpoofguardPolicy New-NsxSslVpnAuthServer New-NsxSslVpnClientInstallationPackage New-NsxSslVpnIpPool New-NsxSslVpnPrivateNetwork New-NsxSslVpnUser New-NsxTransportZone New-NsxVdsContext New-OSCustomizationNicMapping New-OSCustomizationSpec New-Org New-OrgNetwork New-OrgVdc New-OrgVdcNetwork New-ResourcePool New-ScriptFileInfo New-ScsiController New-Snapshot New-SpbmRule New-SpbmRuleSet New-SpbmStoragePolicy New-StatInterval New-Tag New-TagAssignment New-TagCategory New-Template New-TemporaryFile New-VAIOFilter New-VApp New-VDPortgroup New-VDSwitch New-VDSwitchPrivateVlan New-VDisk New-VICredentialStoreItem New-VIInventoryDrive New-VIPermission New-VIProperty New-VIRole New-VISamlSecurityContext New-VM New-VMHostAccount New-VMHostNetworkAdapter New-VMHostProfile New-VMHostProfileVmPortGroupConfiguration New-VMHostRoute New-VTpm New-VasaProvider New-VcsOAuthSecurityContext New-VirtualPortGroup New-VirtualSwitch New-VsanDisk New-VsanDiskGroup New-VsanFaultDomain New-VsanIscsiInitiatorGroup New-VsanIscsiInitiatorGroupTargetAssociation New-VsanIscsiLun New-VsanIscsiTarget New-vRABusinessGroup New-vRAEntitlement New-vRAExternalNetworkProfile New-vRAGroupPrincipal New-vRANATNetworkProfile New-vRANetworkProfileIPRangeDefinition New-vRAPackage New-vRAPropertyDefinition New-vRAPropertyGroup New-vRAReservation New-vRAReservationNetworkDefinition New-vRAReservationPolicy New-vRAReservationStorageDefinition New-vRARoutedNetworkProfile New-vRAService New-vRAStorageReservationPolicy New-vRATenant New-vRATenantDirectory New-vRAUserPrincipal New-vRNIApplication New-vRNIApplicationTier New-vRNIDataSource Open-VMConsoleWindow Publish-Module Publish-NsxSpoofguardPolicy Publish-Script Register-PSRepository Register-PackageSource Remove-AdvancedSetting Remove-AlarmAction Remove-AlarmActionTrigger Remove-Alias Remove-CDDrive Remove-CIAccessControlRule Remove-CIVApp Remove-CIVAppNetwork Remove-CIVAppTemplate Remove-Cluster Remove-CustomAttribute Remove-Datacenter Remove-Datastore Remove-DatastoreCluster Remove-DrsClusterGroup Remove-DrsRule Remove-DrsVMHostRule Remove-FloppyDrive Remove-Folder Remove-HCXAppliance Remove-HCXNetworkExtension Remove-HCXReplication Remove-HCXSitePairing Remove-HardDisk Remove-IScsiHbaTarget Remove-Inventory Remove-KeyManagementServer Remove-NetworkAdapter Remove-NfsUser Remove-NsxCluster Remove-NsxClusterVxlanConfig Remove-NsxController Remove-NsxDynamicCriteria Remove-NsxDynamicMemberSet Remove-NsxEdge Remove-NsxEdgeBgpNeighbour Remove-NsxEdgeCertificate Remove-NsxEdgeCsr Remove-NsxEdgeFirewallRule Remove-NsxEdgeInterfaceAddress Remove-NsxEdgeNatRule Remove-NsxEdgeOspfArea Remove-NsxEdgeOspfInterface Remove-NsxEdgePrefix Remove-NsxEdgeRedistributionRule Remove-NsxEdgeStaticRoute Remove-NsxEdgeSubInterface Remove-NsxFirewallExclusionListMember Remove-NsxFirewallRule Remove-NsxFirewallRuleMember Remove-NsxFirewallSavedConfiguration Remove-NsxFirewallSection Remove-NsxIpPool Remove-NsxIpSet Remove-NsxIpSetMember Remove-NsxLoadBalancerApplicationProfile Remove-NsxLoadBalancerMonitor Remove-NsxLoadBalancerPool Remove-NsxLoadBalancerPoolMember Remove-NsxLoadBalancerVip Remove-NsxLogicalRouter Remove-NsxLogicalRouterBgpNeighbour Remove-NsxLogicalRouterBridge Remove-NsxLogicalRouterInterface Remove-NsxLogicalRouterOspfArea Remove-NsxLogicalRouterOspfInterface Remove-NsxLogicalRouterPrefix Remove-NsxLogicalRouterRedistributionRule Remove-NsxLogicalRouterStaticRoute Remove-NsxLogicalSwitch Remove-NsxMacSet Remove-NsxSecondaryManager Remove-NsxSecurityGroup Remove-NsxSecurityGroupMember Remove-NsxSecurityPolicy Remove-NsxSecurityPolicyAssignment Remove-NsxSecurityPolicyRule Remove-NsxSecurityPolicyRuleGroup Remove-NsxSecurityPolicyRuleService Remove-NsxSecurityTag Remove-NsxSecurityTagAssignment Remove-NsxSegmentIdRange Remove-NsxService Remove-NsxServiceGroup Remove-NsxSpoofguardPolicy Remove-NsxSslVpnClientInstallationPackage Remove-NsxSslVpnIpPool Remove-NsxSslVpnPrivateNetwork Remove-NsxSslVpnUser Remove-NsxTransportZone Remove-NsxTransportZoneMember Remove-NsxVdsContext Remove-OSCustomizationNicMapping Remove-OSCustomizationSpec Remove-Org Remove-OrgNetwork Remove-OrgVdc Remove-OrgVdcNetwork Remove-PSReadLineKeyHandler Remove-PassthroughDevice Remove-ResourcePool Remove-Snapshot Remove-SpbmStoragePolicy Remove-StatInterval Remove-Tag Remove-TagAssignment Remove-TagCategory Remove-Template Remove-UsbDevice Remove-VAIOFilter Remove-VApp Remove-VDPortGroup Remove-VDSwitch Remove-VDSwitchPhysicalNetworkAdapter Remove-VDSwitchPrivateVlan Remove-VDSwitchVMHost Remove-VDisk Remove-VICredentialStoreItem Remove-VIPermission Remove-VIProperty Remove-VIRole Remove-VM Remove-VMHost Remove-VMHostAccount Remove-VMHostNetworkAdapter Remove-VMHostNtpServer Remove-VMHostProfile Remove-VMHostProfileVmPortGroupConfiguration Remove-VMHostRoute Remove-VTpm Remove-VasaProvider Remove-VirtualPortGroup Remove-VirtualSwitch Remove-VirtualSwitchPhysicalNetworkAdapter Remove-VsanDisk Remove-VsanDiskGroup Remove-VsanFaultDomain Remove-VsanIscsiInitiatorGroup Remove-VsanIscsiInitiatorGroupTargetAssociation Remove-VsanIscsiLun Remove-VsanIscsiTarget Remove-vRABusinessGroup Remove-vRACustomForm Remove-vRAExternalNetworkProfile Remove-vRAGroupPrincipal Remove-vRAIcon Remove-vRANATNetworkProfile Remove-vRAPackage Remove-vRAPrincipalFromTenantRole Remove-vRAPropertyDefinition Remove-vRAPropertyGroup Remove-vRAReservation Remove-vRAReservationNetwork Remove-vRAReservationPolicy Remove-vRAReservationStorage Remove-vRARoutedNetworkProfile Remove-vRAService Remove-vRAStorageReservationPolicy Remove-vRATenant Remove-vRATenantDirectory Remove-vRAUserPrincipal Remove-vRNIApplication Remove-vRNIApplicationTier Remove-vRNIDataSource Repair-NsxEdge Repair-VsanObject Request-vRACatalogItem Request-vRAResourceAction Restart-CIVApp Restart-CIVAppGuest Restart-CIVM Restart-CIVMGuest Restart-VM Restart-VMGuest Restart-VMHost Restart-VMHostService Resume-HCXReplication Revoke-NsxSpoofguardNicApproval Save-Module Save-Package Save-Script Search-Cloud Set-AdvancedSetting Set-AlarmDefinition Set-Annotation Set-CDDrive Set-CIAccessControlRule Set-CINetworkAdapter Set-CIVApp Set-CIVAppNetwork Set-CIVAppStartRule Set-CIVAppTemplate Set-Cluster Set-CustomAttribute Set-Datacenter Set-Datastore Set-DatastoreCluster Set-DrsClusterGroup Set-DrsRule Set-DrsVMHostRule Set-FloppyDrive Set-Folder Set-HCXAppliance Set-HCXMigration Set-HCXReplication Set-HardDisk Set-IScsiHbaTarget Set-KeyManagementServer Set-KmsCluster Set-MarkdownOption Set-NetworkAdapter Set-NfsUser Set-NicTeamingPolicy Set-NodeExclusiveResources Set-NodeManager Set-NodeResourceSource Set-NodeResources Set-NsxEdge Set-NsxEdgeBgp Set-NsxEdgeFirewall Set-NsxEdgeInterface Set-NsxEdgeNat Set-NsxEdgeOspf Set-NsxEdgeRouting Set-NsxFirewallGlobalConfiguration Set-NsxFirewallRule Set-NsxFirewallSavedConfiguration Set-NsxFirewallThreshold Set-NsxLoadBalancer Set-NsxLoadBalancerPoolMember Set-NsxLogicalRouter Set-NsxLogicalRouterBgp Set-NsxLogicalRouterBridging Set-NsxLogicalRouterInterface Set-NsxLogicalRouterOspf Set-NsxLogicalRouterRouting Set-NsxManager Set-NsxManagerRole Set-NsxManagerTimeSettings Set-NsxSecurityPolicy Set-NsxSecurityPolicyFirewallRule Set-NsxSslVpn Set-OSCustomizationNicMapping Set-OSCustomizationSpec Set-Org Set-OrgNetwork Set-OrgVdc Set-OrgVdcNetwork Set-PSCurrentConfigurationNode Set-PSDefaultConfigurationDocument Set-PSMetaConfigDocInsProcessedBeforeMeta Set-PSMetaConfigVersionInfoV2 Set-PSReadLineKeyHandler Set-PSReadLineOption Set-PSRepository Set-PSTopConfigurationName Set-PackageSource Set-PowerCLIConfiguration Set-ResourcePool Set-ScsiController Set-ScsiLun Set-ScsiLunPath Set-SecurityPolicy Set-Snapshot Set-SpbmEntityConfiguration Set-SpbmStoragePolicy Set-StatInterval Set-Tag Set-TagCategory Set-Template Set-VAIOFilter Set-VApp Set-VDBlockedPolicy Set-VDPort Set-VDPortgroup Set-VDPortgroupOverridePolicy Set-VDSecurityPolicy Set-VDSwitch Set-VDTrafficShapingPolicy Set-VDUplinkLacpPolicy Set-VDUplinkTeamingPolicy Set-VDVlanConfiguration Set-VDisk Set-VIPermission Set-VIRole Set-VM Set-VMHost Set-VMHostAccount Set-VMHostAdvancedConfiguration Set-VMHostAuthentication Set-VMHostDiagnosticPartition Set-VMHostFirewallDefaultPolicy Set-VMHostFirewallException Set-VMHostFirmware Set-VMHostHba Set-VMHostModule Set-VMHostNetwork Set-VMHostNetworkAdapter Set-VMHostProfile Set-VMHostProfileImageCacheConfiguration Set-VMHostProfileStorageDeviceConfiguration Set-VMHostProfileUserConfiguration Set-VMHostProfileVmPortGroupConfiguration Set-VMHostRoute Set-VMHostService Set-VMHostSnmp Set-VMHostStartPolicy Set-VMHostStorage Set-VMHostSysLogServer Set-VMQuestion Set-VMResourceConfiguration Set-VMStartPolicy Set-VTpm Set-VirtualPortGroup Set-VirtualSwitch Set-VsanClusterConfiguration Set-VsanFaultDomain Set-VsanIscsiInitiatorGroup Set-VsanIscsiLun Set-VsanIscsiTarget Set-vRABusinessGroup Set-vRACatalogItem Set-vRACustomForm Set-vRAEntitlement Set-vRAExternalNetworkProfile Set-vRANATNetworkProfile Set-vRAReservation Set-vRAReservationNetwork Set-vRAReservationPolicy Set-vRAReservationStorage Set-vRARoutedNetworkProfile Set-vRAService Set-vRAStorageReservationPolicy Set-vRATenant Set-vRATenantDirectory Set-vRAUserPrincipal Set-vRNIDataSourceSNMPConfig Show-Markdown Start-CIVApp Start-CIVM Start-HCXMigration Start-HCXReplication Start-SpbmReplicationFailover Start-SpbmReplicationPrepareFailover Start-SpbmReplicationPromote Start-SpbmReplicationReverse Start-SpbmReplicationTestFailover Start-ThreadJob Start-VApp Start-VM Start-VMHost Start-VMHostService Start-VsanClusterDiskUpdate Start-VsanClusterRebalance Start-VsanEncryptionConfiguration Stop-CIVApp Stop-CIVAppGuest Stop-CIVM Stop-CIVMGuest Stop-SpbmReplicationTestFailover Stop-Task Stop-VApp Stop-VM Stop-VMGuest Stop-VMHost Stop-VMHostService Stop-VsanClusterRebalance Suspend-CIVApp Suspend-CIVM Suspend-HCXReplication Suspend-VM Suspend-VMGuest Suspend-VMHost Sync-SpbmReplicationGroup Test-ConflictingResources Test-HCXMigration Test-HCXReplication Test-Json Test-ModuleReloadRequired Test-MofInstanceText Test-NodeManager Test-NodeResourceSource Test-NodeResources Test-ScriptFileInfo Test-VMHostProfileCompliance Test-VMHostSnmp Test-VsanClusterHealth Test-VsanNetworkPerformance Test-VsanStoragePerformance Test-VsanVMCreation Test-vRAPackage Uninstall-Module Uninstall-Package Uninstall-Script Unlock-VM Unregister-PSRepository Unregister-PackageSource Update-ConfigurationDocumentRef Update-ConfigurationErrorCount Update-DependsOn Update-LocalConfigManager Update-Module Update-ModuleManifest Update-ModuleVersion Update-PowerNsx Update-Script Update-ScriptFileInfo Update-Tools Update-VsanHclDatabase ValidateUpdate-ConfigurationData Wait-Debugger Wait-NsxControllerJob Wait-NsxGenericJob Wait-NsxJob Wait-Task Wait-Tools Write-Information Write-Log Write-MetaConfigFile Write-NodeMOFFile",nomarkup:"-ne -eq -lt -gt -ge -le -not -like -notlike -match -notmatch -contains -notcontains -in -notin -replace"},contains:[t,e.NUMBER_MODE,r,o,i,n,s]}}},"50c4":function(e,t,n){var i=n("a691"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},"50e5":function(e,t,n){var i=n("6d8b"),r=n("eda2"),o=["x","y","z","radius","angle","single"],a=["cartesian2d","polar","singleAxis"];function s(e){return i.indexOf(a,e)>=0}function l(e,t){e=e.slice();var n=i.map(e,r.capitalFirst);t=(t||[]).slice();var o=i.map(t,r.capitalFirst);return function(r,a){i.each(e,(function(e,i){for(var s={name:e,capital:n[i]},l=0;l=0}function o(e,r){var o=!1;return t((function(t){i.each(n(e,t)||[],(function(e){r.records[t.name][e]&&(o=!0)}))})),o}function a(e,r){r.nodes.push(e),t((function(t){i.each(n(e,t)||[],(function(e){r.records[t.name][e]=!0}))}))}}t.isCoordSupported=s,t.createNameEach=l,t.eachAxisDim=c,t.createLinkedNodesFinder=u},"511f":function(e,t,n){n("0b99"),n("658f"),e.exports=n("fcd4").f("iterator")},5128:function(e,t,n){"use strict";t.__esModule=!0,t.PopupManager=void 0;var i=n("a026"),r=h(i),o=n("7f4d"),a=h(o),s=n("4b26"),l=h(s),c=n("e62d"),u=h(c),d=n("5924");function h(e){return e&&e.__esModule?e:{default:e}}var p=1,f=void 0;t.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+p++,l.default.register(this._popupId,this)},beforeDestroy:function(){l.default.deregister(this._popupId),l.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(e){var t=this;if(e){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,r.default.nextTick((function(){t.open()})))}else this.close()}},methods:{open:function(e){var t=this;this.rendered||(this.rendered=!0);var n=(0,a.default)({},this.$props||this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var i=Number(n.openDelay);i>0?this._openTimer=setTimeout((function(){t._openTimer=null,t.doOpen(n)}),i):this.doOpen(n)},doOpen:function(e){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var t=this.$el,n=e.modal,i=e.zIndex;if(i&&(l.default.zIndex=i),n&&(this._closing&&(l.default.closeModal(this._popupId),this._closing=!1),l.default.openModal(this._popupId,l.default.nextZIndex(),this.modalAppendToBody?void 0:t,e.modalClass,e.modalFade),e.lockScroll)){this.withoutHiddenClass=!(0,d.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,d.getStyle)(document.body,"paddingRight"),10)),f=(0,u.default)();var r=document.documentElement.clientHeight0&&(r||"scroll"===o)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+f+"px"),(0,d.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(t).position&&(t.style.position="absolute"),t.style.zIndex=l.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout((function(){e._closeTimer=null,e.doClose()}),t):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){l.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,d.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},t.PopupManager=l.default},"512c":function(e,t,n){var i=n("ef08"),r=n("5524"),o=n("9c0c"),a=n("051b"),s=n("9c0e"),l="prototype",c=function(e,t,n){var u,d,h,p=e&c.F,f=e&c.G,g=e&c.S,m=e&c.P,v=e&c.B,_=e&c.W,y=f?r:r[t]||(r[t]={}),b=y[l],S=f?i:g?i[t]:(i[t]||{})[l];for(u in f&&(n=t),n)d=!p&&S&&void 0!==S[u],d&&s(y,u)||(h=d?S[u]:n[u],y[u]=f&&"function"!=typeof S[u]?n[u]:v&&d?o(h,i):_&&S[u]==h?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t[l]=e[l],t}(h):m&&"function"==typeof h?o(Function.call,h):h,m&&((y.virtual||(y.virtual={}))[u]=h,e&c.R&&b&&!b[u]&&a(b,u,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"51ab":function(e,t){e.exports=function(e){return{aliases:["clean","icl","dcl"],keywords:{keyword:"if let in with where case of class instance otherwise implementation definition system module from import qualified as special code inline foreign export ccall stdcall generic derive infix infixl infixr",built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}},5270:function(e,t,n){"use strict";var i=n("c532"),r=n("c401"),o=n("2e67"),a=n("2444"),s=n("d925"),l=n("e683");function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){c(e),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=r(e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return c(e),t.data=r(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(c(e),t&&t.response&&(t.response.data=r(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"527a":function(e,t,n){var i=n("6d8b"),r=n("3842");function o(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,i={},o=n.getRect();i.rect=o;var s=e.get("boundaryGap"),l=n.getAxis();if(i.boundaryGap=s,"horizontal"===l.orient){s[0]=r.parsePercent(s[0],o.height),s[1]=r.parsePercent(s[1],o.height);var c=o.height-s[0]-s[1];a(t,e,c)}else{s[0]=r.parsePercent(s[0],o.width),s[1]=r.parsePercent(s[1],o.width);var u=o.width-s[0]-s[1];a(t,e,u)}t.setLayout("layoutInfo",i)}))}function a(e,t,n){if(e.count())for(var r,o=t.coordinateSystem,a=t.getLayerSeries(),l=e.mapDimension("single"),c=e.mapDimension("value"),u=i.map(a,(function(t){return i.map(t.indices,(function(t){var n=o.dataToPoint(e.get(l,t));return n[1]=e.get(c,t),n}))})),d=s(u),h=d.y0,p=n/d.max,f=a.length,g=a[0].indices.length,m=0;mo&&(o=c),i.push(c)}for(var u=0;uo&&(o=h)}return a.y0=r,a.max=o,a}e.exports=o},"53f3":function(e,t){function n(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,i=t.scale,r=i&&i[0]||1,o=t.getZoom(),a=(o-1)*n+1;return a/r}function i(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}t.getNodeGlobalScale=n,t.getSymbolSize=i},"53fe":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("85d3"),r=n.n(i);function o(e,t){for(var n=0;nr[n+t]&&(t=a),o&=i.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}t.register=s,t.unregister=l,t.generateCoordId=c},"55ac":function(e,t,n){var i=n("6d8b");function r(e,t,n){if(e&&i.indexOf(t,e.type)>=0){var r=n.getData().tree.root,o=e.targetNode;if("string"===typeof o&&(o=r.getNodeById(o)),o&&r.contains(o))return{node:o};var a=e.targetNodeId;if(null!=a&&(o=r.getNodeById(a)))return{node:o}}}function o(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function a(e,t){var n=o(e);return i.indexOf(n,t)>=0}function s(e,t){var n=[];while(e){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}t.retrieveTargetInfo=r,t.getPathToRoot=o,t.aboveViewRoot=a,t.wrapTreePathInfo=s},"562e":function(e,t,n){var i=n("6d8b");function r(e){null!=e&&i.extend(this,e),this.otherDims={}}var o=r;e.exports=o},5692:function(e,t,n){var i=n("c430"),r=n("c6cd");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.4.1",mode:i?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5693:function(e,t){function n(e,t){var n,i,r,o,a,s=t.x,l=t.y,c=t.width,u=t.height,d=t.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"===typeof d?n=i=r=o=d:d instanceof Array?1===d.length?n=i=r=o=d[0]:2===d.length?(n=r=d[0],i=o=d[1]):3===d.length?(n=d[0],i=o=d[1],r=d[2]):(n=d[0],i=d[1],r=d[2],o=d[3]):n=i=r=o=0,n+i>c&&(a=n+i,n*=c/a,i*=c/a),r+o>c&&(a=r+o,r*=c/a,o*=c/a),i+r>u&&(a=i+r,i*=u/a,r*=u/a),n+o>u&&(a=n+o,n*=u/a,o*=u/a),e.moveTo(s+n,l),e.lineTo(s+c-i,l),0!==i&&e.arc(s+c-i,l+i,i,-Math.PI/2,0),e.lineTo(s+c,l+u-r),0!==r&&e.arc(s+c-r,l+u-r,r,0,Math.PI/2),e.lineTo(s+o,l+u),0!==o&&e.arc(s+o,l+u-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}t.buildPath=n},"56b2":function(e,t){e.exports=function(e){var t="[ \\t\\f]*",n="[ \\t\\f]+",i="("+t+"[:=]"+t+"|"+n+")",r="([^\\\\\\W:= \\t\\f\\n]|\\\\.)+",o="([^\\\\:= \\t\\f\\n]|\\\\.)+",a={end:i,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\n"}]}};return{case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{begin:r+i,returnBegin:!0,contains:[{className:"attr",begin:r,endsParent:!0,relevance:0}],starts:a},{begin:o+i,returnBegin:!0,relevance:0,contains:[{className:"meta",begin:o,endsParent:!0,relevance:0}],starts:a},{className:"attr",relevance:0,begin:o+t+"$"}]}}},"56ef":function(e,t,n){var i=n("d066"),r=n("241c"),o=n("7418"),a=n("825a");e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},5728:function(e,t,n){"use strict";var i={};n.r(i),n.d(i,"isArray",(function(){return D})),n.d(i,"isArrayLike",(function(){return le})),n.d(i,"uniq",(function(){return fn})),n.d(i,"union",(function(){return ii})),n.d(i,"sortedIndex",(function(){return _i})),n.d(i,"sortedIndexBy",(function(){return ds})),n.d(i,"sortBy",(function(){return Ls})),n.d(i,"groupBy",(function(){return Ys})),n.d(i,"difference",(function(){return Zs})),n.d(i,"diff",(function(){return Js}));var r={};n.r(r),n.d(r,"has",(function(){return al})),n.d(r,"pick",(function(){return El})),n.d(r,"forIn",(function(){return kl})),n.d(r,"merge",(function(){return _c})),n.d(r,"extend",(function(){return bc})),n.d(r,"isEqual",(function(){return Ec})),n.d(r,"isEmpty",(function(){return Oc})),n.d(r,"isObject",(function(){return X})),n.d(r,"isPlainObject",(function(){return rc})),n.d(r,"clone",(function(){return md})),n.d(r,"cloneDeep",(function(){return bd})),n.d(r,"defaults",(function(){return xd})),n.d(r,"defaultsDeep",(function(){return Nd})),n.d(r,"ensure",(function(){return Fd})),n.d(r,"getValue",(function(){return Bd})),n.d(r,"getNumber",(function(){return $d})),n.d(r,"getBoolean",(function(){return Vd})),n.d(r,"getByPath",(function(){return Gd})),n.d(r,"setByPath",(function(){return Ud})),n.d(r,"unsetByPath",(function(){return zd})),n.d(r,"flatten",(function(){return jd})),n.d(r,"applyMixins",(function(){return Dd})),n.d(r,"inherit",(function(){return Md})),n.d(r,"createClass",(function(){return Pd}));var o={};n.r(o),n.d(o,"isString",(function(){return Yd})),n.d(o,"toString",(function(){return Pa})),n.d(o,"escape",(function(){return nh})),n.d(o,"unescape",(function(){return ch})),n.d(o,"startsWith",(function(){return Ih})),n.d(o,"endsWith",(function(){return kh})),n.d(o,"split",(function(){return Rp})),n.d(o,"repeat",(function(){return Lp})),n.d(o,"pad",(function(){return gf})),n.d(o,"padEnd",(function(){return vf})),n.d(o,"padStart",(function(){return yf})),n.d(o,"truncate",(function(){return xf})),n.d(o,"template",(function(){return sg})),n.d(o,"uniqueId",(function(){return ug})),n.d(o,"eval",(function(){return dg})),n.d(o,"lowerFirst",(function(){return Gm})),n.d(o,"upperFirst",(function(){return Rm})),n.d(o,"camelCase",(function(){return Lm})),n.d(o,"kebabCase",(function(){return zm})),n.d(o,"pascalCase",(function(){return jm})),n.d(o,"constantCase",(function(){return Hm})),n.d(o,"dotCase",(function(){return Wm})),n.d(o,"pathCase",(function(){return Ym})),n.d(o,"sentenceCase",(function(){return qm})),n.d(o,"titleCase",(function(){return Km})),n.d(o,"hashcode",(function(){return Qm})),n.d(o,"uuid",(function(){return Xm})),n.d(o,"sanitizeHTML",(function(){return Zm})),n.d(o,"getSpellingSuggestion",(function(){return Jm}));var a={};n.r(a),n.d(a,"isNaN",(function(){return ov})),n.d(a,"isNumber",(function(){return iv})),n.d(a,"isFinite",(function(){return lv})),n.d(a,"isInteger",(function(){return uv})),n.d(a,"isSafeInteger",(function(){return pv})),n.d(a,"clamp",(function(){return gv})),n.d(a,"inRange",(function(){return Sv})),n.d(a,"toFinite",(function(){return Oh})),n.d(a,"toNumber",(function(){return xh})),n.d(a,"toInteger",(function(){return Nh})),n.d(a,"toSafeInteger",(function(){return xv})),n.d(a,"parseInt",(function(){return Ov})),n.d(a,"isNumeric",(function(){return R})),n.d(a,"mod",(function(){return Rv})),n.d(a,"random",(function(){return Nv})),n.d(a,"isPercentage",(function(){return Dv})),n.d(a,"normalizePercentage",(function(){return Iv})),n.d(a,"parseCssNumeric",(function(){return Mv})),n.d(a,"normalizeSides",(function(){return kv}));var s={};n.r(s),n.d(s,"isFunction",(function(){return ie})),n.d(s,"once",(function(){return $v})),n.d(s,"noop",(function(){return rn})),n.d(s,"debounce",(function(){return Wv})),n.d(s,"defer",(function(){return Xv})),n.d(s,"apply",(function(){return Zv})),n.d(s,"call",(function(){return Jv})),n.d(s,"cacher",(function(){return t_})),n.d(s,"isAsyncLike",(function(){return n_})),n.d(s,"isAsync",(function(){return i_})),n.d(s,"toAsyncBoolean",(function(){return r_})),n.d(s,"toDeferredBoolean",(function(){return o_}));var l={};n.r(l),n.d(l,"annotate",(function(){return Y_})),n.d(l,"findAnnotationsAtIndex",(function(){return q_})),n.d(l,"findAnnotationsBetweenIndexes",(function(){return K_})),n.d(l,"shiftAnnotations",(function(){return Q_})),n.d(l,"sanitize",(function(){return X_}));var c={};n.r(c),n.d(c,"requestAnimationFrame",(function(){return iy})),n.d(c,"cancelAnimationFrame",(function(){return ry})),n.d(c,"getAttribute",(function(){return B_})),n.d(c,"removeAttribute",(function(){return $_})),n.d(c,"setAttribute",(function(){return V_})),n.d(c,"setAttributes",(function(){return G_})),n.d(c,"attr",(function(){return U_})),n.d(c,"qualifyAttr",(function(){return z_})),n.d(c,"kebablizeAttrs",(function(){return j_})),n.d(c,"styleToObject",(function(){return H_})),n.d(c,"mergeAttrs",(function(){return W_})),n.d(c,"uniqueId",(function(){return g_})),n.d(c,"ensureId",(function(){return m_})),n.d(c,"isSVGGraphicsElement",(function(){return v_})),n.d(c,"ns",(function(){return __})),n.d(c,"svgVersion",(function(){return y_})),n.d(c,"createElement",(function(){return b_})),n.d(c,"createElementNS",(function(){return S_})),n.d(c,"createSvgElement",(function(){return E_})),n.d(c,"createSvgDocument",(function(){return C_})),n.d(c,"parseXML",(function(){return x_})),n.d(c,"tagName",(function(){return w_})),n.d(c,"index",(function(){return T_})),n.d(c,"find",(function(){return A_})),n.d(c,"findOne",(function(){return O_})),n.d(c,"findParentByClass",(function(){return R_})),n.d(c,"contains",(function(){return N_})),n.d(c,"remove",(function(){return D_})),n.d(c,"empty",(function(){return I_})),n.d(c,"append",(function(){return M_})),n.d(c,"prepend",(function(){return k_})),n.d(c,"before",(function(){return L_})),n.d(c,"appendTo",(function(){return P_})),n.d(c,"isHTMLElement",(function(){return F_})),n.d(c,"getClass",(function(){return c_})),n.d(c,"hasClass",(function(){return u_})),n.d(c,"addClass",(function(){return d_})),n.d(c,"removeClass",(function(){return h_})),n.d(c,"toggleClass",(function(){return p_})),n.d(c,"setPrefixedStyle",(function(){return hy})),n.d(c,"getComputedStyle",(function(){return py})),n.d(c,"hasScrollbars",(function(){return fy})),n.d(c,"getVendorPrefixedName",(function(){return dy})),n.d(c,"clearSelection",(function(){return gy})),n.d(c,"text",(function(){return nb})),n.d(c,"breakText",(function(){return rb})),n.d(c,"KAPPA",(function(){return ob})),n.d(c,"sample",(function(){return sb})),n.d(c,"lineToPathData",(function(){return lb})),n.d(c,"polygonToPathData",(function(){return cb})),n.d(c,"polylineToPathData",(function(){return ub})),n.d(c,"getPointsFromSvgElement",(function(){return hb})),n.d(c,"circleToPathData",(function(){return pb})),n.d(c,"ellipseToPathData",(function(){return fb})),n.d(c,"rectangleToPathData",(function(){return gb})),n.d(c,"rectToPathData",(function(){return mb})),n.d(c,"toPath",(function(){return vb})),n.d(c,"toPathData",(function(){return _b})),n.d(c,"createSlicePathData",(function(){return yb})),n.d(c,"bbox",(function(){return Vb})),n.d(c,"getBBox",(function(){return Gb})),n.d(c,"getBBoxByElementAttr",(function(){return Ub})),n.d(c,"getMatrixByElementAttr",(function(){return zb})),n.d(c,"getTransformToElement",(function(){return jb})),n.d(c,"toLocalPoint",(function(){return Hb})),n.d(c,"toGeometryShape",(function(){return Wb})),n.d(c,"getIntersection",(function(){return Yb})),n.d(c,"animate",(function(){return qb})),n.d(c,"animateTransform",(function(){return Kb})),n.d(c,"animateAlongPath",(function(){return Zb})),n.d(c,"getBoundingOffsetRect",(function(){return Jb})),n.d(c,"createSVGPoint",(function(){return xb})),n.d(c,"createSVGMatrix",(function(){return wb})),n.d(c,"createSVGTransform",(function(){return Tb})),n.d(c,"transformStringToMatrix",(function(){return Ab})),n.d(c,"matrixToTransformString",(function(){return Ob})),n.d(c,"parseTransformString",(function(){return Rb})),n.d(c,"decomposeMatrix",(function(){return Db})),n.d(c,"matrixToScale",(function(){return Ib})),n.d(c,"matrixToRotation",(function(){return Mb})),n.d(c,"matrixToTranslation",(function(){return kb})),n.d(c,"transformPoint",(function(){return Lb})),n.d(c,"transformLine",(function(){return Pb})),n.d(c,"transformPolyline",(function(){return Fb})),n.d(c,"transformRectangle",(function(){return Bb})),n.d(c,"transform",(function(){return eS})),n.d(c,"translate",(function(){return tS})),n.d(c,"rotate",(function(){return nS})),n.d(c,"scale",(function(){return iS})),n.d(c,"translateAndAutoOrient",(function(){return rS})),n.d(c,"MouseWheelHandle",(function(){return oS})),n.d(c,"isVector",(function(){return aS})),n.d(c,"createVector",(function(){return sS})),n.d(c,"createVectors",(function(){return lS}));var u={};n.r(u),n.d(u,"block",(function(){return fE})),n.d(u,"classic",(function(){return gE})),n.d(u,"diamond",(function(){return _E})),n.d(u,"path",(function(){return bE})),n.d(u,"cross",(function(){return EE})),n.d(u,"async",(function(){return xE})),n.d(u,"circle",(function(){return TE})),n.d(u,"circlePlus",(function(){return AE})),n.d(u,"ellipse",(function(){return RE}));var d={};n.r(d),n.d(d,"ref",(function(){return vS})),n.d(d,"refX",(function(){return _S})),n.d(d,"refY",(function(){return yS})),n.d(d,"refDx",(function(){return bS})),n.d(d,"refDy",(function(){return SS})),n.d(d,"refWidth",(function(){return ES})),n.d(d,"refHeight",(function(){return CS})),n.d(d,"refRx",(function(){return xS})),n.d(d,"refRy",(function(){return wS})),n.d(d,"refRInscribed",(function(){return TS})),n.d(d,"refRCircumscribed",(function(){return AS})),n.d(d,"refCx",(function(){return OS})),n.d(d,"refCy",(function(){return RS})),n.d(d,"refDResetOffset",(function(){return NS})),n.d(d,"refDKeepOffset",(function(){return DS})),n.d(d,"refPointsResetOffset",(function(){return IS})),n.d(d,"refPointsKeepOffset",(function(){return MS})),n.d(d,"refR",(function(){return kS})),n.d(d,"refD",(function(){return LS})),n.d(d,"refPoints",(function(){return PS})),n.d(d,"refX2",(function(){return FS})),n.d(d,"refY2",(function(){return BS})),n.d(d,"refWidth2",(function(){return $S})),n.d(d,"refHeight2",(function(){return VS})),n.d(d,"fill",(function(){return WS})),n.d(d,"stroke",(function(){return YS})),n.d(d,"text",(function(){return qS})),n.d(d,"textWrap",(function(){return KS})),n.d(d,"lineHeight",(function(){return XS})),n.d(d,"textVerticalAnchor",(function(){return ZS})),n.d(d,"textPath",(function(){return JS})),n.d(d,"annotations",(function(){return eE})),n.d(d,"eol",(function(){return tE})),n.d(d,"displayEmpty",(function(){return nE})),n.d(d,"title",(function(){return iE})),n.d(d,"xAlign",(function(){return rE})),n.d(d,"yAlign",(function(){return oE})),n.d(d,"resetOffset",(function(){return aE})),n.d(d,"style",(function(){return lE})),n.d(d,"html",(function(){return cE})),n.d(d,"filter",(function(){return uE})),n.d(d,"port",(function(){return dE})),n.d(d,"sourceMarker",(function(){return ME})),n.d(d,"targetMarker",(function(){return kE})),n.d(d,"vertexMarker",(function(){return LE})),n.d(d,"connection",(function(){return $E})),n.d(d,"atConnectionLengthKeepGradient",(function(){return VE})),n.d(d,"atConnectionLengthIgnoreGradient",(function(){return GE})),n.d(d,"atConnectionRatioKeepGradient",(function(){return UE})),n.d(d,"atConnectionRatioIgnoreGradient",(function(){return zE})),n.d(d,"atConnectionLength",(function(){return jE})),n.d(d,"atConnectionRatio",(function(){return HE}));var h={};n.r(h),n.d(h,"dot",(function(){return qE})),n.d(h,"fixedDot",(function(){return KE})),n.d(h,"mesh",(function(){return QE})),n.d(h,"doubleMesh",(function(){return XE}));var p={};n.r(p),n.d(p,"outline",(function(){return tC})),n.d(p,"highlight",(function(){return nC})),n.d(p,"blur",(function(){return iC})),n.d(p,"dropShadow",(function(){return rC})),n.d(p,"grayScale",(function(){return oC})),n.d(p,"sepia",(function(){return aC})),n.d(p,"saturate",(function(){return sC})),n.d(p,"hueRotate",(function(){return lC})),n.d(p,"invert",(function(){return cC})),n.d(p,"brightness",(function(){return uC})),n.d(p,"contrast",(function(){return dC}));var f={};n.r(f),n.d(f,"flipX",(function(){return pC})),n.d(f,"flipY",(function(){return fC})),n.d(f,"flipXY",(function(){return gC})),n.d(f,"watermark",(function(){return mC}));var g={};n.r(g),n.d(g,"className",(function(){return EC})),n.d(g,"opacity",(function(){return xC})),n.d(g,"stroke",(function(){return TC}));var m={};n.r(m),n.d(m,"absolute",(function(){return DC})),n.d(m,"ellipse",(function(){return IC})),n.d(m,"ellipseSpread",(function(){return MC})),n.d(m,"line",(function(){return PC})),n.d(m,"left",(function(){return FC})),n.d(m,"right",(function(){return BC})),n.d(m,"top",(function(){return $C})),n.d(m,"bottom",(function(){return VC}));var v={};n.r(v),n.d(v,"manual",(function(){return HC})),n.d(v,"left",(function(){return WC})),n.d(v,"right",(function(){return YC})),n.d(v,"top",(function(){return qC})),n.d(v,"bottom",(function(){return KC})),n.d(v,"outside",(function(){return QC})),n.d(v,"outsideOriented",(function(){return XC})),n.d(v,"inside",(function(){return ZC})),n.d(v,"insideOriented",(function(){return JC})),n.d(v,"radial",(function(){return ix})),n.d(v,"radialOriented",(function(){return rx}));var _={};n.r(_),n.d(_,"noop",(function(){return Cx})),n.d(_,"pinRelative",(function(){return Ox})),n.d(_,"pinAbsolute",(function(){return Rx}));var y={};n.r(y),n.d(y,"center",(function(){return nw})),n.d(y,"top",(function(){return iw})),n.d(y,"bottom",(function(){return rw})),n.d(y,"left",(function(){return ow})),n.d(y,"right",(function(){return aw})),n.d(y,"topLeft",(function(){return sw})),n.d(y,"topRight",(function(){return lw})),n.d(y,"bottomLeft",(function(){return cw})),n.d(y,"bottomRight",(function(){return uw})),n.d(y,"orth",(function(){return gw})),n.d(y,"nodeCenter",(function(){return mw})),n.d(y,"midSide",(function(){return _w}));var b={};n.r(b),n.d(b,"closest",(function(){return Cw})),n.d(b,"ratio",(function(){return bw})),n.d(b,"length",(function(){return Sw})),n.d(b,"orth",(function(){return ww}));var S={};n.r(S),n.d(S,"bbox",(function(){return Nw})),n.d(S,"rect",(function(){return Dw})),n.d(S,"boundary",(function(){return Iw})),n.d(S,"anchor",(function(){return kw}));var E={};n.r(E),n.d(E,"normal",(function(){return Pw})),n.d(E,"oneSide",(function(){return Fw})),n.d(E,"orth",(function(){return jw})),n.d(E,"metro",(function(){return ST})),n.d(E,"manhattan",(function(){return yT})),n.d(E,"er",(function(){return ET})),n.d(E,"loop",(function(){return xT}));var C={};n.r(C),n.d(C,"normal",(function(){return TT})),n.d(C,"loop",(function(){return AT})),n.d(C,"rounded",(function(){return OT})),n.d(C,"smooth",(function(){return RT})),n.d(C,"jumpover",(function(){return UT}));var x={};n.r(x),n.d(x,"create",(function(){return jT})),n.d(x,"Attr",(function(){return YE})),n.d(x,"Grid",(function(){return ZE})),n.d(x,"Filter",(function(){return hC})),n.d(x,"Background",(function(){return vC})),n.d(x,"Highlighter",(function(){return OC})),n.d(x,"PortLayout",(function(){return UC})),n.d(x,"PortLabelLayout",(function(){return ax})),n.d(x,"NodeTool",(function(){return Jx})),n.d(x,"EdgeTool",(function(){return ew})),n.d(x,"Marker",(function(){return NE})),n.d(x,"NodeAnchor",(function(){return yw})),n.d(x,"EdgeAnchor",(function(){return Tw})),n.d(x,"ConnectionPoint",(function(){return Lw})),n.d(x,"Router",(function(){return wT})),n.d(x,"Connector",(function(){return zT})),n.d(x,"ConnectionStrategy",(function(){return Nx})),n.d(x,"Registry",(function(){return gS}));var w=n("1157"),T=n.n(w);n("b22e");const A=navigator.userAgent;var O;if(function(e){e.IS_MAC=navigator.appVersion.indexOf("Mac")>0,e.IS_IOS=!!A.match(/(iPad|iPhone|iPod)/g),e.IS_WINDOWS=navigator.appVersion.indexOf("Win")>0,e.IS_IE=A.indexOf("MSIE")>=0,e.IS_IE11=!!A.match(/Trident\/7\./),e.IS_EDGE=!!A.match(/Edge\//),e.IS_NETSCAPE=A.indexOf("Mozilla/")>=0&&A.indexOf("MSIE")<0&&A.indexOf("Edge/")<0,e.IS_CHROME_APP=null!=window.chrome&&null!=window.chrome.app&&null!=window.chrome.app.runtime,e.IS_CHROME=A.indexOf("Chrome/")>=0&&A.indexOf("Edge/")<0,e.IS_OPERA=A.indexOf("Opera/")>=0||A.indexOf("OPR/")>=0,e.IS_FIREFOX=A.indexOf("Firefox/")>=0,e.IS_SAFARI=A.indexOf("AppleWebKit/")>=0&&A.indexOf("Chrome/")<0&&A.indexOf("Edge/")<0,e.SUPPORT_TOUCH="ontouchstart"in document.documentElement,e.SUPPORT_POINTER=null!=window.PointerEvent&&!e.IS_MAC,e.SUPPORT_PASSIVE=!1;try{const t=Object.defineProperty({},"passive",{get(){e.SUPPORT_PASSIVE=!0}}),n=document.createElement("div");n.addEventListener&&n.addEventListener("click",()=>{},t)}catch(t){}e.NO_FOREIGNOBJECT=!document.createElementNS||"[object SVGForeignObjectElement]"!==`${document.createElementNS("http://www.w3.org/2000/svg","foreignObject")}`||A.indexOf("Opera/")>=0,e.SUPPORT_FOREIGNOBJECT=!e.NO_FOREIGNOBJECT}(O||(O={})),function(e){function t(){const e=window.module;return null!=e&&null!=e.hot&&null!=e.hot.status?e.hot.status():"unkonwn"}function n(){return"apply"===t()}e.getHMRStatus=t,e.isApplyingHMR=n;const i={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};function r(e){const t=document.createElement(i[e]||"div"),n=`on${e}`;let r=n in t;return r||(t.setAttribute(n,"return;"),r="function"===typeof t[n]),r}e.isEventSupported=r}(O||(O={})),O.SUPPORT_PASSIVE){T.a.event.special.touchstart={setup(e,t,n){if(!this.addEventListener)return!1;this.addEventListener("touchstart",n,{passive:!0})}};const e=T.a.event.special.mousewheel;if(e){const t=e.setup;e.setup=function(){const e=this.addEventListener;if(!e)return!1;this.addEventListener=(t,n)=>{e.call(this,t,n,{passive:!0})},t.call(this),this.addEventListener=e}}}window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),function(e){e.forEach(e=>{Object.prototype.hasOwnProperty.call(e,"append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value(...e){const t=document.createDocumentFragment();e.forEach(e=>{const n=e instanceof Node;t.appendChild(n?e:document.createTextNode(String(e)))}),this.appendChild(t)}})})}([Element.prototype,Document.prototype,DocumentFragment.prototype]);const R=e=>!Array.isArray(e)&&e-parseFloat(e)+1>=0;var N=Array.isArray,D=N,I=n("26ee"),M=I["a"].Symbol,k=M,L=Object.prototype,P=L.hasOwnProperty,F=L.toString,B=k?k.toStringTag:void 0;function $(e){var t=P.call(e,B),n=e[B];try{e[B]=void 0;var i=!0}catch(o){}var r=F.call(e);return i&&(t?e[B]=n:delete e[B]),r}var V=$,G=Object.prototype,U=G.toString;function z(e){return U.call(e)}var j=z,H="[object Null]",W="[object Undefined]",Y=k?k.toStringTag:void 0;function q(e){return null==e?void 0===e?W:H:Y&&Y in Object(e)?V(e):j(e)}var K=q;function Q(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var X=Q,Z="[object AsyncFunction]",J="[object Function]",ee="[object GeneratorFunction]",te="[object Proxy]";function ne(e){if(!X(e))return!1;var t=K(e);return t==J||t==ee||t==Z||t==te}var ie=ne,re=9007199254740991;function oe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=re}var ae=oe;function se(e){return null!=e&&ae(e.length)&&!ie(e)}var le=se,ce=I["a"]["__core-js_shared__"],ue=ce,de=function(){var e=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function he(e){return!!de&&de in e}var pe=he,fe=Function.prototype,ge=fe.toString;function me(e){if(null!=e){try{return ge.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var ve=me,_e=/[\\^$.*+?()[\]{}|]/g,ye=/^\[object .+?Constructor\]$/,be=Function.prototype,Se=Object.prototype,Ee=be.toString,Ce=Se.hasOwnProperty,xe=RegExp("^"+Ee.call(Ce).replace(_e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function we(e){if(!X(e)||pe(e))return!1;var t=ie(e)?xe:ye;return t.test(ve(e))}var Te=we;function Ae(e,t){return null==e?void 0:e[t]}var Oe=Ae;function Re(e,t){var n=Oe(e,t);return Te(n)?n:void 0}var Ne=Re,De=Ne(Object,"create"),Ie=De;function Me(){this.__data__=Ie?Ie(null):{},this.size=0}var ke=Me;function Le(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Pe=Le,Fe="__lodash_hash_undefined__",Be=Object.prototype,$e=Be.hasOwnProperty;function Ve(e){var t=this.__data__;if(Ie){var n=t[e];return n===Fe?void 0:n}return $e.call(t,e)?t[e]:void 0}var Ge=Ve,Ue=Object.prototype,ze=Ue.hasOwnProperty;function je(e){var t=this.__data__;return Ie?void 0!==t[e]:ze.call(t,e)}var He=je,We="__lodash_hash_undefined__";function Ye(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ie&&void 0===t?We:t,this}var qe=Ye;function Ke(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t-1}var ut=ct;function dt(e,t){var n=this.__data__,i=nt(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var ht=dt;function pt(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t-1}var Kt=qt;function Qt(e,t,n){var i=-1,r=null==e?0:e.length;while(++i=un){var c=t?null:cn(e);if(c)return an(c);a=!1,r=Jt,l=new $t}else l=t?[]:s;e:while(++i0&&n(s)?t>1?Nn(s,t-1,n,i,r):mn(r,s):i||(r[r.length]=s)}return r}var Dn=Nn;function In(e){return e}var Mn=In;function kn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Ln=kn,Pn=Math.max;function Fn(e,t,n){return t=Pn(void 0===t?e.length-1:t,0),function(){var i=arguments,r=-1,o=Pn(i.length-t,0),a=Array(o);while(++r0){if(++t>=Hn)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Kn=qn,Qn=Kn(jn),Xn=Qn;function Zn(e,t){return Xn(Bn(e,t,Mn),e+"")}var Jn=Zn;function ei(e){return _n(e)&&le(e)}var ti=ei,ni=Jn((function(e){return hn(Dn(e,1,ti,!0))})),ii=ni,ri="[object Symbol]";function oi(e){return"symbol"==typeof e||_n(e)&&K(e)==ri}var ai=oi,si=4294967295,li=si-1,ci=Math.floor,ui=Math.min;function di(e,t,n,i){var r=0,o=null==e?0:e.length;if(0===o)return 0;t=n(t);var a=t!==t,s=null===t,l=ai(t),c=void 0===t;while(r>>1;function gi(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t===t&&r<=fi){while(i>>1,a=e[o];null!==a&&!ai(a)&&(n?a<=t:as))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=n&Li?new $t:void 0;o.set(e,t),o.set(t,e);while(++d-1&&e%1==0&&et||o&&a&&l&&!s&&!c||i&&a&&l||!n&&l||!r)return 1;if(!i&&!o&&!c&&e=s)return l;var c=n[i];return l*("desc"==c?-1:1)}}return e.index-t.index}var Rs=Os;function Ns(e,t,n){t=t.length?Ra(t,(function(e){return D(e)?function(t){return za(t,1===e.length?e[0]:e)}:e})):[Mn];var i=-1;t=Ra(t,Xr(cs));var r=Cs(e,(function(e,n,r){var o=Ra(t,(function(t){return t(e)}));return{criteria:o,index:++i,value:e}}));return ws(r,(function(e,t){return Rs(e,t,n)}))}var Ds=Ns;function Is(e,t,n){if(!X(n))return!1;var i=typeof t;return!!("number"==i?le(n)&&Er(t,n.length):"string"==i&&t in n)&&et(n[t],e)}var Ms=Is,ks=Jn((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ms(e,t[0],t[1])?t=[]:n>2&&Ms(t[0],t[1],t[2])&&(t=[t[0]]),Ds(e,Dn(t,1),[])})),Ls=ks;function Ps(e,t,n){"__proto__"==t&&Un?Un(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Fs=Ps;function Bs(e,t,n,i){var r=-1,o=null==e?0:e.length;while(++r=qs&&(o=Jt,a=!1,t=new $t(t));e:while(++r1?n[r-1]:void 0,a=r>2?n[2]:void 0;o=e.length>3&&"function"==typeof o?(r--,o):void 0,a&&Ms(n[0],n[1],a)&&(o=r<3?void 0:o,r=1),t=Object(t);while(++i2?t[2]:void 0;r&&Ms(t[0],t[1],r)&&(i=1);while(++n{Object.getOwnPropertyNames(t.prototype).forEach(n=>{"constructor"!==n&&Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(t.prototype,n))})})}const Id=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])};function Md(e,t){function n(){this.constructor=e}Id(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}class kd{}const Ld=/^\s*class\s+/.test(`${kd}`)||/^\s*class\s*\{/.test(`${class{}}`);function Pd(e,t){let n;return Ld?n=new Function("base",`return class ${e} extends base { }`)(t):(n=new Function("base",`return function ${e}() { return base.apply(this, arguments) }`)(t),Md(n,t)),n}function Fd(e,t){return null!=e?e:t}function Bd(e,t,n){const i=null!=e?e[t]:null;return void 0!==n?Fd(i,n):i}function $d(e,t,n){let i=null!=e?e[t]:null;return null==i?n:(i=+i,Number.isNaN(i)||!Number.isFinite(i)?n:i)}function Vd(e,t,n){const i=null!=e?e[t]:null;return null==i?n:!!i}function Gd(e,t,n="/"){let i;const r=Array.isArray(t)?t:t.split(n);if(r.length){i=e;while(r.length){const e=r.shift();if(!(Object(i)===i&&e&&e in i))return;i=i[e]}}return i}function Ud(e,t,n,i="/"){const r=Array.isArray(t)?t:t.split(i),o=r.pop();if(o){let t=e;r.forEach(e=>{null==t[e]&&(t[e]={}),t=t[e]}),t[o]=n}return e}function zd(e,t,n="/"){const i=Array.isArray(t)?t.slice():t.split(n),r=i.pop();if(r)if(i.length>0){const t=Gd(e,i);t&&delete t[r]}else delete e[r];return e}function jd(e,t="/",n){const i={};Object.keys(e).forEach(r=>{const o=e[r];let a="object"===typeof o||Array.isArray(o);if(a&&n&&n(o)&&(a=!1),a){const e=jd(o,t,n);Object.keys(e).forEach(n=>{i[r+t+n]=e[n]})}else i[r]=o});for(const r in e)Object.prototype.hasOwnProperty.call(e,r);return i}var Hd="[object String]";function Wd(e){return"string"==typeof e||!D(e)&&_n(e)&&K(e)==Hd}var Yd=Wd;function qd(e){return function(t){return null==e?void 0:e[t]}}var Kd=qd,Qd={"&":"&","<":"<",">":">",'"':""","'":"'"},Xd=Kd(Qd),Zd=Xd,Jd=/[&<>"']/g,eh=RegExp(Jd.source);function th(e){return e=Pa(e),e&&eh.test(e)?e.replace(Jd,Zd):e}var nh=th,ih={"&":"&","<":"<",">":">",""":'"',"'":"'"},rh=Kd(ih),oh=rh,ah=/&(?:amp|lt|gt|quot|#39);/g,sh=RegExp(ah.source);function lh(e){return e=Pa(e),e&&sh.test(e)?e.replace(ah,oh):e}var ch=lh;function uh(e,t,n){return e===e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}var dh=uh,hh=/\s/;function ph(e){var t=e.length;while(t--&&hh.test(e.charAt(t)));return t}var fh=ph,gh=/^\s+/;function mh(e){return e?e.slice(0,fh(e)+1).replace(gh,""):e}var vh=mh,_h=NaN,yh=/^[-+]0x[0-9a-f]+$/i,bh=/^0b[01]+$/i,Sh=/^0o[0-7]+$/i,Eh=parseInt;function Ch(e){if("number"==typeof e)return e;if(ai(e))return _h;if(X(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=X(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=vh(e);var n=bh.test(e);return n||Sh.test(e)?Eh(e.slice(2),n?2:8):yh.test(e)?_h:+e}var xh=Ch,wh=1/0,Th=17976931348623157e292;function Ah(e){if(!e)return 0===e?e:0;if(e=xh(e),e===wh||e===-wh){var t=e<0?-1:1;return t*Th}return e===e?e:0}var Oh=Ah;function Rh(e){var t=Oh(e),n=t%1;return t===t?n?t-n:t:0}var Nh=Rh;function Dh(e,t,n){return e=Pa(e),n=null==n?0:dh(Nh(n),0,e.length),t=ka(t),e.slice(n,n+t.length)==t}var Ih=Dh;function Mh(e,t,n){e=Pa(e),t=ka(t);var i=e.length;n=void 0===n?i:dh(Nh(n),0,i);var r=n;return n-=t.length,n>=0&&e.slice(n,r)==t}var kh=Mh;function Lh(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;var o=Array(r);while(++i=i?e:Ph(e,t,n)}var Bh=Fh,$h="\\ud800-\\udfff",Vh="\\u0300-\\u036f",Gh="\\ufe20-\\ufe2f",Uh="\\u20d0-\\u20ff",zh=Vh+Gh+Uh,jh="\\ufe0e\\ufe0f",Hh="\\u200d",Wh=RegExp("["+Hh+$h+zh+jh+"]");function Yh(e){return Wh.test(e)}var qh=Yh,Kh="[object RegExp]";function Qh(e){return _n(e)&&K(e)==Kh}var Xh=Qh,Zh=Zr["a"]&&Zr["a"].isRegExp,Jh=Zh?Xr(Zh):Xh,ep=Jh;function tp(e){return e.split("")}var np=tp,ip="\\ud800-\\udfff",rp="\\u0300-\\u036f",op="\\ufe20-\\ufe2f",ap="\\u20d0-\\u20ff",sp=rp+op+ap,lp="\\ufe0e\\ufe0f",cp="["+ip+"]",up="["+sp+"]",dp="\\ud83c[\\udffb-\\udfff]",hp="(?:"+up+"|"+dp+")",pp="[^"+ip+"]",fp="(?:\\ud83c[\\udde6-\\uddff]){2}",gp="[\\ud800-\\udbff][\\udc00-\\udfff]",mp="\\u200d",vp=hp+"?",_p="["+lp+"]?",yp="(?:"+mp+"(?:"+[pp,fp,gp].join("|")+")"+_p+vp+")*",bp=_p+vp+yp,Sp="(?:"+[pp+up+"?",up,fp,gp,cp].join("|")+")",Ep=RegExp(dp+"(?="+dp+")|"+Sp+bp,"g");function Cp(e){return e.match(Ep)||[]}var xp=Cp;function wp(e){return qh(e)?xp(e):np(e)}var Tp=wp,Ap=4294967295;function Op(e,t,n){return n&&"number"!=typeof n&&Ms(e,t,n)&&(t=n=void 0),n=void 0===n?Ap:n>>>0,n?(e=Pa(e),e&&("string"==typeof t||null!=t&&!ep(t))&&(t=ka(t),!t&&qh(e))?Bh(Tp(e),0,n):e.split(t,n)):[]}var Rp=Op,Np=9007199254740991,Dp=Math.floor;function Ip(e,t){var n="";if(!e||t<1||t>Np)return n;do{t%2&&(n+=e),t=Dp(t/2),t&&(e+=e)}while(t);return n}var Mp=Ip;function kp(e,t,n){return t=(n?Ms(e,t,n):void 0===t)?1:Nh(t),Mp(Pa(e),t)}var Lp=kp,Pp=is("length"),Fp=Pp,Bp="\\ud800-\\udfff",$p="\\u0300-\\u036f",Vp="\\ufe20-\\ufe2f",Gp="\\u20d0-\\u20ff",Up=$p+Vp+Gp,zp="\\ufe0e\\ufe0f",jp="["+Bp+"]",Hp="["+Up+"]",Wp="\\ud83c[\\udffb-\\udfff]",Yp="(?:"+Hp+"|"+Wp+")",qp="[^"+Bp+"]",Kp="(?:\\ud83c[\\udde6-\\uddff]){2}",Qp="[\\ud800-\\udbff][\\udc00-\\udfff]",Xp="\\u200d",Zp=Yp+"?",Jp="["+zp+"]?",ef="(?:"+Xp+"(?:"+[qp,Kp,Qp].join("|")+")"+Jp+Zp+")*",tf=Jp+Zp+ef,nf="(?:"+[qp+Hp+"?",Hp,Kp,Qp,jp].join("|")+")",rf=RegExp(Wp+"(?="+Wp+")|"+nf+tf,"g");function of(e){var t=rf.lastIndex=0;while(rf.test(e))++t;return t}var af=of;function sf(e){return qh(e)?af(e):Fp(e)}var lf=sf,cf=Math.ceil;function uf(e,t){t=void 0===t?" ":ka(t);var n=t.length;if(n<2)return n?Mp(t,e):t;var i=Mp(t,cf(e/lf(t)));return qh(t)?Bh(Tp(i),0,e).join(""):i.slice(0,e)}var df=uf,hf=Math.ceil,pf=Math.floor;function ff(e,t,n){e=Pa(e),t=Nh(t);var i=t?lf(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return df(pf(r),n)+e+df(hf(r),n)}var gf=ff;function mf(e,t,n){e=Pa(e),t=Nh(t);var i=t?lf(e):0;return t&&i=o)return e;var s=n-lf(i);if(s<1)return i;var l=a?Bh(a,0,s).join(""):e.slice(0,s);if(void 0===r)return l+i;if(a&&(s+=l.length-s),ep(r)){if(e.slice(s).search(r)){var c,u=l;r.global||(r=RegExp(r.source,Pa(Ef.exec(r))+"g")),r.lastIndex=0;while(c=r.exec(u))var d=c.index;l=l.slice(0,void 0===d?s:d)}}else if(e.indexOf(ka(r),s)!=s){var h=l.lastIndexOf(r);h>-1&&(l=l.slice(0,h))}return l+i}var xf=Cf,wf=mc((function(e,t,n,i){lc(t,Il(t),e,i)})),Tf=wf,Af="[object DOMException]",Of="[object Error]";function Rf(e){if(!_n(e))return!1;var t=K(e);return t==Of||t==Af||"string"==typeof e.message&&"string"==typeof e.name&&!rc(e)}var Nf=Rf,Df=Jn((function(e,t){try{return Ln(e,void 0,t)}catch(n){return Nf(n)?n:new Error(n)}})),If=Df;function Mf(e,t){return Ra(t,(function(t){return e[t]}))}var kf=Mf,Lf=Object.prototype,Pf=Lf.hasOwnProperty;function Ff(e,t,n,i){return void 0===e||et(e,Lf[n])&&!Pf.call(i,n)?t:e}var Bf=Ff,$f={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Vf(e){return"\\"+$f[e]}var Gf=Vf,Uf=/<%=([\s\S]+?)%>/g,zf=Uf,jf=/<%-([\s\S]+?)%>/g,Hf=jf,Wf=/<%([\s\S]+?)%>/g,Yf=Wf,qf={escape:Hf,evaluate:Yf,interpolate:zf,variable:"",imports:{_:{escape:nh}}},Kf=qf,Qf="Invalid `variable` option passed into `_.template`",Xf=/\b__p \+= '';/g,Zf=/\b(__p \+=) '' \+/g,Jf=/(__e\(.*?\)|\b__t\)) \+\n'';/g,eg=/[()=,{}\[\]\/\s]/,tg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ng=/($^)/,ig=/['\n\r\u2028\u2029\\]/g,rg=Object.prototype,og=rg.hasOwnProperty;function ag(e,t,n){var i=Kf.imports._.templateSettings||Kf;n&&Ms(e,t,n)&&(t=void 0),e=Pa(e),t=Tf({},t,i,Bf);var r,o,a=Tf({},t.imports,i.imports,Bf),s=yo(a),l=kf(a,s),c=0,u=t.interpolate||ng,d="__p += '",h=RegExp((t.escape||ng).source+"|"+u.source+"|"+(u===zf?tg:ng).source+"|"+(t.evaluate||ng).source+"|$","g"),p=og.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(h,(function(t,n,i,a,s,l){return i||(i=a),d+=e.slice(c,l).replace(ig,Gf),n&&(r=!0,d+="' +\n__e("+n+") +\n'"),s&&(o=!0,d+="';\n"+s+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),d+="';\n";var f=og.call(t,"variable")&&t.variable;if(f){if(eg.test(f))throw new Error(Qf)}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(Xf,""):d).replace(Zf,"$1").replace(Jf,"$1;"),d="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=If((function(){return Function(s,p+"return "+d).apply(void 0,l)}));if(g.source=d,Nf(g))throw g;return g}var sg=ag,lg=0;function cg(e){var t=++lg;return Pa(e)+t}var ug=cg;function dg(e){let t=null;try{t=window.eval(e)}catch(n){}return t}function hg(e,t,n,i){var r=-1,o=null==e?0:e.length;i&&o&&(n=e[++r]);while(++r{const t=Object.create(null);return n=>{const i=t[n];return i||(t[n]=e(n))}},zm=Um(e=>e.replace(/\B([A-Z])/g,"-$1").toLowerCase()),jm=Um(e=>Dm(Lm(e)).replace(/ /g,"")),Hm=Um(e=>Fm(e).replace(/ /g,"_")),Wm=Um(e=>$m(e).replace(/ /g,".")),Ym=Um(e=>$m(e).replace(/ /g,"/")),qm=Um(e=>Rm($m(e))),Km=Um(e=>Dm(Lm(e)));function Qm(e){let t=2166136261,n=!1,i=e;for(let r=0,o=i.length;r127&&!n&&(i=unescape(encodeURIComponent(i)),e=i.charCodeAt(r),n=!0),t^=e,t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24)}return t>>>0}function Xm(){let e="";const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";for(let n=0,i=t.length;n{const t=e;if(t){const e=t.attributes;if(e)for(let n=0,i=e.length;n").append(n).html()}function Jm(e,t,n){const i=Math.min(2,Math.floor(.34*e.length));let r,o=Math.floor(.4*e.length)+1,a=!1;const s=e.toLowerCase();for(const l of t){const t=n(l);if(void 0!==t&&Math.abs(t.length-s.length)<=i){const n=t.toLowerCase();if(n===s){if(t===e)continue;return l}if(a)continue;if(t.length<3)continue;const i=ev(s,n,o-1);if(void 0===i)continue;i<3?(a=!0,r=l):(o=i,r=l)}}return r}function ev(e,t,n){let i=new Array(t.length+1),r=new Array(t.length+1);const o=n+1;for(let s=0;s<=t.length;s+=1)i[s]=s;for(let s=1;s<=e.length;s+=1){const a=e.charCodeAt(s-1),l=s>n?s-n:1,c=t.length>n+s?n+s:t.length;r[0]=s;let u=s;for(let e=1;en)return;const d=i;i=r,r=d}const a=i[t.length];return a>n?void 0:a}var tv="[object Number]";function nv(e){return"number"==typeof e||_n(e)&&K(e)==tv}var iv=nv;function rv(e){return iv(e)&&e!=+e}var ov=rv,av=I["a"].isFinite;function sv(e){return"number"==typeof e&&av(e)}var lv=sv;function cv(e){return"number"==typeof e&&e==Nh(e)}var uv=cv,dv=9007199254740991;function hv(e){return uv(e)&&e>=-dv&&e<=dv}var pv=hv;function fv(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=xh(n),n=n===n?n:0),void 0!==t&&(t=xh(t),t=t===t?t:0),dh(xh(e),t,n)}var gv=fv,mv=Math.max,vv=Math.min;function _v(e,t,n){return e>=vv(t,n)&&e0&&n<1?n*t:n:0}function Mv(e,t){function n(t){const n=new RegExp(`(?:\\d+(?:\\.\\d+)*)(${t})$`).exec(e);return n?n[1]:null}const i=parseFloat(e);if(Number.isNaN(i))return null;let r;if(null==t)r="[A-Za-z]*";else if(Array.isArray(t)){if(0===t.length)return null;r=t.join("|")}else"string"===typeof t&&(r=t);const o=n(r);return null===o?null:{unit:o,value:i}}function kv(e){if("object"===typeof e){let t=0,n=0,i=0,r=0;return null!=e.vertical&&Number.isFinite(e.vertical)&&(n=r=e.vertical),null!=e.horizontal&&Number.isFinite(e.horizontal)&&(i=t=e.horizontal),null!=e.left&&Number.isFinite(e.left)&&(t=e.left),null!=e.top&&Number.isFinite(e.top)&&(n=e.top),null!=e.right&&Number.isFinite(e.right)&&(i=e.right),null!=e.bottom&&Number.isFinite(e.bottom)&&(r=e.bottom),{top:n,right:i,bottom:r,left:t}}let t=0;return null!=e&&Number.isFinite(e)&&(t=e),{top:t,right:t,bottom:t,left:t}}var Lv="Expected a function";function Pv(e,t){var n;if("function"!=typeof t)throw new TypeError(Lv);return e=Nh(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var Fv=Pv;function Bv(e){return Fv(2,e)}var $v=Bv,Vv=function(){return I["a"].Date.now()},Gv=Vv,Uv="Expected a function",zv=Math.max,jv=Math.min;function Hv(e,t,n){var i,r,o,a,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError(Uv);function p(t){var n=i,o=r;return i=r=void 0,c=t,a=e.apply(o,n),a}function f(e){return c=e,s=setTimeout(v,t),u?p(e):a}function g(e){var n=e-l,i=e-c,r=t-n;return d?jv(r,o-i):r}function m(e){var n=e-l,i=e-c;return void 0===l||n>=t||n<0||d&&i>=o}function v(){var e=Gv();if(m(e))return _(e);s=setTimeout(v,g(e))}function _(e){return s=void 0,h&&i?p(e):(i=r=void 0,a)}function y(){void 0!==s&&clearTimeout(s),c=0,i=l=r=s=void 0}function b(){return void 0===s?a:_(Gv())}function S(){var e=Gv(),n=m(e);if(i=arguments,r=this,l=e,n){if(void 0===s)return f(l);if(d)return clearTimeout(s),s=setTimeout(v,t),p(l)}return void 0===s&&(s=setTimeout(v,t)),a}return t=xh(t)||0,X(n)&&(u=!!n.leading,d="maxWait"in n,o=d?zv(xh(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),S.cancel=y,S.flush=b,S}var Wv=Hv,Yv="Expected a function";function qv(e,t,n){if("function"!=typeof e)throw new TypeError(Yv);return setTimeout((function(){e.apply(void 0,n)}),t)}var Kv=qv,Qv=Jn((function(e,t){return Kv(e,1,t)})),Xv=Qv;function Zv(e,t,n){if(n)switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2]);case 4:return e.call(t,n[0],n[1],n[2],n[3]);case 5:return e.call(t,n[0],n[1],n[2],n[3],n[4]);case 6:return e.call(t,n[0],n[1],n[2],n[3],n[4],n[5]);default:return e.apply(t,n)}return e.call(t)}function Jv(e,t,...n){return Zv(e,t,n)}function e_(e,t){for(let n=0,i=e.length;n{let a=!1;const s=o.join("␀");return s in r?(a=!0,e_(i,s)):(i.length>=1e3&&delete r[i.shift()],i.push(s),r[s]=Zv(e,t||null,o)),n?n(r[s],a):r[s]};return o}function n_(e){return"object"===typeof e&&e.then&&"function"===typeof e.then}function i_(e){return null!=e&&(e instanceof Promise||n_(e))}function r_(...e){const t=[];e.forEach(e=>{Array.isArray(e)?t.push(...e):t.push(e)});const n=t.some(e=>i_(e));if(n){const e=t.map(e=>i_(e)?e:Promise.resolve(!1!==e));return Promise.all(e).then(e=>e.reduce((e,t)=>!1!==t&&e,!0))}return t.every(e=>!1!==e)}function o_(...e){const t=r_(e);return"boolean"===typeof t?Promise.resolve(t):t}const a_=/[\t\r\n\f]/g,s_=/\S+/g,l_=e=>` ${e} `;function c_(e){return e&&e.getAttribute&&e.getAttribute("class")||""}function u_(e,t){if(null==e||null==t)return!1;const n=l_(c_(e)),i=l_(t);return 1===e.nodeType&&n.replace(a_," ").includes(i)}function d_(e,t){if(null!=e&&null!=t){if("function"===typeof t)return d_(e,t(c_(e)));if("string"===typeof t&&1===e.nodeType){const n=t.match(s_)||[],i=l_(c_(e)).replace(a_," ");let r=n.reduce((e,t)=>{return e.indexOf(l_(t))<0?`${e}${t} `:e},i);r=r.trim(),i!==r&&e.setAttribute("class",r)}}}function h_(e,t){if(null!=e){if("function"===typeof t)return h_(e,t(c_(e)));if((!t||"string"===typeof t)&&1===e.nodeType){const n=(t||"").match(s_)||[],i=l_(c_(e)).replace(a_," ");let r=n.reduce((e,t)=>{const n=l_(t);return e.indexOf(n)>-1?e.replace(n," "):e},i);r=t?r.trim():"",i!==r&&e.setAttribute("class",r)}}}function p_(e,t,n){if(null!=e&&null!=t)if(null==n||"string"!==typeof t){if("function"===typeof t)return p_(e,t(c_(e),n),n);if("string"===typeof t){const n=t.match(s_)||[];n.forEach(t=>{u_(e,t)?h_(e,t):d_(e,t)})}}else n?d_(e,t):h_(e,t)}let f_=0;function g_(){return f_+=1,`v${f_}`}function m_(e){return null!=e.id&&""!==e.id||(e.id=g_()),e.id}function v_(e){return null!=e&&("function"===typeof e.getScreenCTM&&e instanceof SVGElement)}const __={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xml:"http://www.w3.org/XML/1998/namespace",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml"},y_="1.1";function b_(e,t=document){return t.createElement(e)}function S_(e,t=__.xhtml,n=document){return n.createElementNS(t,e)}function E_(e,t=document){return S_(e,__.svg,t)}function C_(e){if(e){const t=`${e}`,{documentElement:n}=x_(t,{async:!1});return n}const t=document.createElementNS(__.svg,"svg");return t.setAttributeNS(__.xmlns,"xmlns:xlink",__.xlink),t.setAttribute("version",y_),t}function x_(e,t={}){let n;try{const i=new DOMParser;if(null!=t.async){const e=i;e.async=t.async}n=i.parseFromString(e,t.mimeType||"text/xml")}catch(i){n=void 0}if(!n||n.getElementsByTagName("parsererror").length)throw new Error(`Invalid XML: ${e}`);return n}function w_(e,t=!0){const n=e.nodeName;return t?n.toLowerCase():n.toUpperCase()}function T_(e){let t=0,n=e.previousSibling;while(n)1===n.nodeType&&(t+=1),n=n.previousSibling;return t}function A_(e,t){return e.querySelectorAll(t)}function O_(e,t){return e.querySelector(t)}function R_(e,t,n){const i=e.ownerSVGElement;let r=e.parentNode;while(r&&r!==n&&r!==i){if(u_(r,t))return r;r=r.parentNode}return null}function N_(e,t){const n=t&&t.parentNode;return e===n||!!(n&&1===n.nodeType&&16&e.compareDocumentPosition(n))}function D_(e){e.parentNode&&e.parentNode.removeChild(e)}function I_(e){while(e.firstChild)e.removeChild(e.firstChild)}function M_(e,t){const n=Array.isArray(t)?t:[t];n.forEach(t=>{null!=t&&e.appendChild(t)})}function k_(e,t){const n=e.firstChild;return n?L_(n,t):M_(e,t)}function L_(e,t){const n=e.parentNode;if(n){const i=Array.isArray(t)?t:[t];i.forEach(t=>{null!=t&&n.insertBefore(t,e)})}}function P_(e,t){null!=t&&t.appendChild(e)}function F_(e){try{return e instanceof HTMLElement}catch(t){return"object"===typeof e&&1===e.nodeType&&"object"===typeof e.style&&"object"===typeof e.ownerDocument}}function B_(e,t){return e.getAttribute(t)}function $_(e,t){const n=z_(t);n.ns?e.hasAttributeNS(n.ns,n.local)&&e.removeAttributeNS(n.ns,n.local):e.hasAttribute(t)&&e.removeAttribute(t)}function V_(e,t,n){if(null==n)return $_(e,t);const i=z_(t);i.ns&&"string"===typeof n?e.setAttributeNS(i.ns,t,n):"id"===t?e.id=`${n}`:e.setAttribute(t,`${n}`)}function G_(e,t){Object.keys(t).forEach(n=>{V_(e,n,t[n])})}function U_(e,t,n){if(null==t){const t=e.attributes,n={};for(let e=0;e{const i=zm(n);t[i]=e[n]}),t}function H_(e){const t={},n=e.split(";");return n.forEach(e=>{const n=e.trim();if(n){const e=n.split("=");e.length&&(t[e[0].trim()]=e[1]?e[1].trim():"")}}),t}function W_(e,t){return Object.keys(t).forEach(n=>{if("class"===n)e[n]=e[n]?`${e[n]} ${t[n]}`:t[n];else if("style"===n){const i="object"===typeof e[n],r="object"===typeof t[n];let o,a;i&&r?(o=e[n],a=t[n]):i?(o=e[n],a=H_(t[n])):r?(o=H_(e[n]),a=t[n]):(o=H_(e[n]),a=H_(t[n])),e[n]=W_(o,a)}else e[n]=t[n]}),e}function Y_(e,t,n={}){const i=n.offset||0,o=[],a=[];let s,l,c=null;for(let u=0;u=l&&ue.startt>=e.start&&te.start&&n<=e.end||e.start>=t&&e.end{e.start=t?e.end+=n:e.start>=t&&(e.start+=n,e.end+=n)}),e}function X_(e){return e.replace(/ /g," ")}var Z_,J_;let ey;(function(e){function t(e){return null===e||void 0===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e}function n(e){return Array.isArray(e)}function i(e){return!t(e)&&!n(e)}function r(e,i){if(e===i)return!0;if(t(e)||t(i))return!1;const r=n(e),o=n(i);return r===o&&(r&&o?a(e,i):s(e,i))}function o(e){return t(e)?e:n(e)?l(e):c(e)}function a(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n{t[n]=o(e[n])}),t}e.emptyObject=Object.freeze({}),e.emptyArray=Object.freeze([]),e.isPrimitive=t,e.isArray=n,e.isObject=i,e.deepEqual=r,e.deepCopy=o})(Z_||(Z_={})),function(e){function t(e){const t="data:";return e.substr(0,t.length)===t}function n(e,n){if(!e||t(e))return void setTimeout(()=>n(null,e));const i=()=>{n(new Error(`Failed to load image: ${e}`))},r=window.FileReader?e=>{if(200===e.status){const t=new FileReader;t.onload=e=>{const t=e.target.result;n(null,t)},t.onerror=i,t.readAsDataURL(e.response)}else i()}:t=>{const r=e=>{const t=32768,n=[];for(let i=0;ir(o)),o.send()}function i(e){let t=e.replace(/\s/g,"");t=decodeURIComponent(t);const n=t.indexOf(","),i=t.slice(0,n),r=i.split(":")[1].split(";")[0],o=t.slice(n+1);let a;a=i.indexOf("base64")>=0?atob(o):unescape(encodeURIComponent(o));const s=new Uint8Array(a.length);for(let l=0;l]*viewBox\s*=\s*(["']?)(.+?)\1[^>]*>/i);return t&&t[2]?t[2].replace(/\s+/," ").split(" "):null}function s(e){const t=parseFloat(e);return Number.isNaN(t)?null:t}function l(e,t={}){let n=null;const i=t=>{return null==n&&(n=a(e)),null!=n?s(n[t]):null},r=t=>{const n=e.match(t);return n&&n[2]?s(n[2]):null};let o=t.width;if(null==o&&(o=r(/]*width\s*=\s*(["']?)(.+?)\1[^>]*>/i)),null==o&&(o=i(2)),null==o)throw new Error("Can not parse width from svg string");let l=t.height;if(null==l&&(l=r(/]*height\s*=\s*(["']?)(.+?)\1[^>]*>/i)),null==l&&(l=i(3)),null==l)throw new Error("Can not parse height from svg string");const c=encodeURIComponent(e).replace(/'/g,"%27").replace(/"/g,"%22"),u="data:image/svg+xml",d=`${u},${c}`;return d}e.isDataUrl=t,e.imageToDataUri=n,e.dataUriToBlob=i,e.downloadBlob=r,e.downloadDataUri=o,e.svgToDataUrl=l}(J_||(J_={}));const ty={px(e){return e},mm(e){return ey*e},cm(e){return ey*e*10},in(e){return ey*e*25.4},pt(e){return ey*(25.4*e/72)},pc(e){return ey*(25.4*e/6)}};var ny;(function(e){function t(e,t,n){const i=T()("
").css({display:"inline-block",position:"absolute",left:-15e3,top:-15e3,width:e+(n||""),height:t+(n||"")}).appendTo(document.body),r={width:i.width()||0,height:i.height()||0};return i.remove(),r}function n(e,n){null==ey&&(ey=t("1","1","mm").width);const i=n?ty[n]:null;return i?i(e):e}e.measure=t,e.toPx=n})(ny||(ny={}));const iy=function(){let e;const t=window;if(null!=t&&(e=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame,null!=e&&(e=e.bind(t))),null==e){let t=0;e=e=>{const n=(new Date).getTime(),i=Math.max(0,16-(n-t)),r=setTimeout(()=>{e(n+i)},i);return t=n+i,r}}return e}(),ry=function(){let e;const t=window;return null!=t&&(e=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame||t.msCancelAnimationFrame||t.msCancelRequestAnimationFrame||t.oCancelAnimationFrame||t.oCancelRequestAnimationFrame||t.mozCancelAnimationFrame||t.mozCancelRequestAnimationFrame,e&&(e=e.bind(t))),null==e&&(e=clearTimeout),e}(),oy=/-(.)/g;function ay(e){return e.replace(oy,(e,t)=>t.toUpperCase())}const sy={},ly=["Webkit","ms","Moz","O"],cy=document?document.createElement("div").style:{};function uy(e){for(let t=0;tn?n:e:et?t:e}function by(e,t){return t*Math.round(e/t)}function Sy(e,t){return null!=t&&null!=e&&t.x>=e.x&&t.x<=e.x+e.width&&t.y>=e.y&&t.y<=e.y+e.height}function Ey(e,t){const n=e.x-t.x,i=e.y-t.y;return n*n+i*i}(function(e){function t(e){return 180*e/Math.PI%360}function n(e){return e%360+(e<0?360:0)}e.toDeg=t,e.toRad=function(e,t=!1){const n=t?e:e%360;return n*Math.PI/180},e.normalize=n})(my||(my={}));class Cy{valueOf(){return this.toJSON()}toString(){return JSON.stringify(this.toJSON())}}class xy extends Cy{constructor(e,t){super(),this.x=null==e?0:e,this.y=null==t?0:t}get[Symbol.toStringTag](){return xy.toStringTag}round(e=0){return this.x=vy(this.x,e),this.y=vy(this.y,e),this}add(e,t){const n=xy.create(e,t);return this.x+=n.x,this.y+=n.y,this}update(e,t){const n=xy.create(e,t);return this.x=n.x,this.y=n.y,this}translate(e,t){const n=xy.create(e,t);return this.x+=n.x,this.y+=n.y,this}rotate(e,t){const n=xy.rotate(this,e,t);return this.x=n.x,this.y=n.y,this}scale(e,t,n=new xy){const i=xy.create(n);return this.x=i.x+e*(this.x-i.x),this.y=i.y+t*(this.y-i.y),this}closest(e){if(1===e.length)return xy.create(e[0]);let t=null,n=1/0;return e.forEach(e=>{const i=this.squaredDistance(e);ii&&(a=(this.x+this.width-i)/(f.x-i)),f.y>r&&(u=(this.y+this.height-r)/(f.y-r));const g=n.topRight;g.x>i&&(s=(this.x+this.width-i)/(g.x-i)),g.yr&&(h=(this.y+this.height-r)/(m.y-r)),{sx:Math.min(o,a,s,l),sy:Math.min(c,u,d,h)}}getMaxUniformScaleToFit(e,t=this.center){const n=this.getMaxScaleToFit(e,t);return Math.min(n.sx,n.sy)}containsPoint(e,t){return Sy(this,xy.create(e,t))}containsRect(e,t,n,i){const r=wy.create(e,t,n,i),o=this.x,a=this.y,s=this.width,l=this.height,c=r.x,u=r.y,d=r.width,h=r.height;return 0!==s&&0!==l&&0!==d&&0!==h&&(c>=o&&u>=a&&c+d<=o+s&&u+h<=a+l)}intersectsWithLine(e){const t=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],n=[],i=[];return t.forEach(t=>{const r=e.intersectsWithLine(t);null!==r&&i.indexOf(r.toString())<0&&(n.push(r),i.push(r.toString()))}),n.length>0?n:null}intersectsWithLineFromCenterToPoint(e,t){const n=xy.clone(e),i=this.center;let r=null;null!=t&&0!==t&&n.rotate(t,i);const o=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],a=new Ty(i,n);for(let s=o.length-1;s>=0;s-=1){const e=o[s].intersectsWithLine(a);if(null!==e){r=e;break}}return r&&null!=t&&0!==t&&r.rotate(-t,i),r}intersectsWithRect(e,t,n,i){const r=wy.create(e,t,n,i);if(!this.isIntersectWithRect(r))return null;const o=this.origin,a=this.corner,s=r.origin,l=r.corner,c=Math.max(o.x,s.x),u=Math.max(o.y,s.y);return new wy(c,u,Math.min(a.x,l.x)-c,Math.min(a.y,l.y)-u)}isIntersectWithRect(e,t,n,i){const r=wy.create(e,t,n,i),o=this.origin,a=this.corner,s=r.origin,l=r.corner;return!(l.x<=o.x||l.y<=o.y||s.x>=a.x||s.y>=a.y)}normalize(){let e=this.x,t=this.y,n=this.width,i=this.height;return this.width<0&&(e=this.x+this.width,n=-this.width),this.height<0&&(t=this.y+this.height,i=-this.height),this.x=e,this.y=t,this.width=n,this.height=i,this}union(e){const t=wy.clone(e),n=this.origin,i=this.corner,r=t.origin,o=t.corner,a=Math.min(n.x,r.x),s=Math.min(n.y,r.y),l=Math.max(i.x,o.x),c=Math.max(i.y,o.y);return new wy(a,s,l-a,c-s)}getNearestSideToPoint(e){const t=xy.clone(e),n=t.x-this.x,i=this.x+this.width-t.x,r=t.y-this.y,o=this.y+this.height-t.y;let a=n,s="left";return i=1?n.clone():t.lerp(n,e)}pointAtLength(e){const t=this.start,n=this.end;let i=!0;e<0&&(i=!1,e=-e);const r=this.length();if(e>=r)return i?n.clone():t.clone();const o=(i?e:r-e)/r;return this.pointAt(o)}divideAt(e){const t=this.pointAt(e);return[new Ty(this.start,t),new Ty(t,this.end)]}divideAtLength(e){const t=this.pointAtLength(e);return[new Ty(this.start,t),new Ty(t,this.end)]}containsPoint(e){const t=this.start,n=this.end;if(0!==t.cross(e,n))return!1;const i=this.length();return!(new Ty(t,e).length()>i)&&!(new Ty(e,n).length()>i)}intersect(e,t){const n=e.intersectsWithLine(this,t);return n?Array.isArray(n)?n:[n]:null}intersectsWithLine(e){const t=new xy(this.end.x-this.start.x,this.end.y-this.start.y),n=new xy(e.end.x-e.start.x,e.end.y-e.start.y),i=t.x*n.y-t.y*n.x,r=new xy(e.start.x-this.start.x,e.start.y-this.start.y),o=r.x*n.y-r.y*n.x,a=r.x*t.y-r.y*t.x;if(0===i||o*i<0||a*i<0)return null;if(i>0){if(o>i||a>i)return null}else if(o0&&(i-=o,r-=a,s=i*o+r*a,s<0&&(s=0))),s<0?-1:s>0?1:0}equals(e){return null!=e&&this.start.x===e.start.x&&this.start.y===e.start.y&&this.end.x===e.end.x&&this.end.y===e.end.y}clone(){return new Ty(this.start,this.end)}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){return[this.start.serialize(),this.end.serialize()].join(" ")}}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return!(null!=n&&n!==e.toStringTag||!xy.isPoint(i.start)||!xy.isPoint(i.end)||"function"!==typeof i.vector||"function"!==typeof i.bearing||"function"!==typeof i.parallel||"function"!==typeof i.intersect)}e.toStringTag=`X6.Geometry.${e.name}`,e.isLine=t})(Ty||(Ty={}));class Ay extends Cy{constructor(e,t,n,i){super(),this.x=null==e?0:e,this.y=null==t?0:t,this.a=null==n?0:n,this.b=null==i?0:i}get[Symbol.toStringTag](){return Ay.toStringTag}get center(){return new xy(this.x,this.y)}bbox(){return wy.fromEllipse(this)}getCenter(){return this.center}inflate(e,t){const n=e,i=null!=t?t:e;return this.a+=2*n,this.b+=2*i,this}normalizedDistance(e,t){const n=xy.create(e,t),i=n.x-this.x,r=n.y-this.y,o=this.a,a=this.b;return i*i/(o*o)+r*r/(a*a)}containsPoint(e,t){return this.normalizedDistance(e,t)<=1}intersectsWithLine(e){const t=[],n=this.a,i=this.b,r=e.start,o=e.end,a=e.vector(),s=r.diff(new xy(this.x,this.y)),l=new xy(a.x/(n*n),a.y/(i*i)),c=new xy(s.x/(n*n),s.y/(i*i)),u=a.dot(l),d=a.dot(c),h=s.dot(c)-1,p=d*d-u*h;if(p<0)return null;if(p>0){const e=Math.sqrt(p),n=(-d-e)/u,i=(-d+e)/u;if((n<0||n>1)&&(i<0||i>1))return null;n>=0&&n<=1&&t.push(r.lerp(o,n)),i>=0&&i<=1&&t.push(r.lerp(o,i))}else{const e=-d/u;if(!(e>=0&&e<=1))return null;t.push(r.lerp(o,e))}return t}intersectsWithLineFromCenterToPoint(e,t=0){const n=xy.clone(e);t&&n.rotate(t,this.getCenter());const i=n.x-this.x,r=n.y-this.y;let o;if(0===i)return o=this.bbox().getNearestPointToPoint(n),t?o.rotate(-t,this.getCenter()):o;const a=r/i,s=a*a,l=this.a*this.a,c=this.b*this.b;let u=Math.sqrt(1/(1/l+s/c));u=i<0?-u:u;const d=a*u;return o=new xy(this.x+u,this.y+d),t?o.rotate(-t,this.getCenter()):o}tangentTheta(e){const t=xy.clone(e),n=t.x,i=t.y,r=this.a,o=this.b,a=this.bbox().center,s=a.x,l=a.y,c=30,u=n>a.x+r/2,d=na.x?i-c:i+c,h=r*r/(n-s)-r*r*(i-l)*(p-l)/(o*o*(n-s))+s):(h=i>a.y?n+c:n-c,p=o*o/(i-l)-o*o*(n-s)*(h-s)/(r*r*(i-l))+l),new xy(h,p).theta(t)}scale(e,t){return this.a*=e,this.b*=t,this}rotate(e,t){const n=wy.fromEllipse(this);n.rotate(e,t);const i=Ay.fromRect(n);return this.a=i.a,this.b=i.b,this.x=i.x,this.y=i.y,this}translate(e,t){const n=xy.create(e,t);return this.x+=n.x,this.y+=n.y,this}equals(e){return null!=e&&e.x===this.x&&e.y===this.y&&e.a===this.a&&e.b===this.b}clone(){return new Ay(this.x,this.y,this.a,this.b)}toJSON(){return{x:this.x,y:this.y,a:this.a,b:this.b}}serialize(){return`${this.x} ${this.y} ${this.a} ${this.b}`}}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&"number"===typeof i.x&&"number"===typeof i.y&&"number"===typeof i.a&&"number"===typeof i.b&&"function"===typeof i.inflate&&"function"===typeof i.normalizedDistance}e.toStringTag=`X6.Geometry.${e.name}`,e.isEllipse=t})(Ay||(Ay={})),function(e){function t(t,i,r,o){return null==t||"number"===typeof t?new e(t,i,r,o):n(t)}function n(t){return e.isEllipse(t)?t.clone():Array.isArray(t)?new e(t[0],t[1],t[2],t[3]):new e(t.x,t.y,t.a,t.b)}function i(t){const n=t.center;return new e(n.x,n.y,t.width/2,t.height/2)}e.create=t,e.parse=n,e.fromRect=i}(Ay||(Ay={}));class Oy extends Cy{constructor(e){if(super(),null!=e){if("string"===typeof e)return Oy.parse(e);this.points=e.map(e=>xy.create(e))}else this.points=[]}get[Symbol.toStringTag](){return Oy.toStringTag}get start(){return 0===this.points.length?null:this.points[0]}get end(){return 0===this.points.length?null:this.points[this.points.length-1]}scale(e,t,n=new xy){return this.points.forEach(i=>i.scale(e,t,n)),this}rotate(e,t){return this.points.forEach(n=>n.rotate(e,t)),this}translate(e,t){const n=xy.create(e,t);return this.points.forEach(e=>e.translate(n.x,n.y)),this}bbox(){if(0===this.points.length)return new wy;let e=1/0,t=-1/0,n=1/0,i=-1/0;const r=this.points;for(let o=0,a=r.length;ot&&(t=s),li&&(i=l)}return new wy(e,n,t-e,i-n)}closestPoint(e){const t=this.closestPointLength(e);return this.pointAtLength(t)}closestPointLength(e){const t=this.points,n=t.length;if(0===n||1===n)return 0;let i=0,r=0,o=1/0;for(let a=0,s=n-1;ac.y||i>o.y&&i<=c.y){const t=o.x-n>c.x-n?o.x-n:c.x-n;if(t>=0){const r=new xy(n+t,i),o=new Ty(e,r);u.intersectsWithLine(o)&&(s+=1)}}a=l}return s%2===1}intersectsWithLine(e){const t=[];for(let n=0,i=this.points.length-1;n0?t:null}isDifferentiable(){for(let e=0,t=this.points.length-1;e=1)return t[n-1].clone();const i=this.length(),r=i*e;return this.pointAtLength(r)}pointAtLength(e){const t=this.points,n=t.length;if(0===n)return null;if(1===n)return t[0].clone();let i=!0;e<0&&(i=!1,e=-e);let r=0;for(let a=0,s=n-1;a1&&(e=1);const i=this.length(),r=i*e;return this.tangentAtLength(r)}tangentAtLength(e){const t=this.points,n=t.length;if(0===n||1===n)return null;let i,r=!0;e<0&&(r=!1,e=-e);let o=0;for(let a=0,s=n-1;an.x&&(n=e[d]);const i=[];for(let d=0;d{let n=e[2]-t[2];return 0===n&&(n=t[1]-e[1]),n}),i.length>2){const e=i[i.length-1];i.unshift(e)}const r={},o=[],a=e=>`${e[0].toString()}@${e[1]}`;while(0!==i.length){const e=i.pop(),t=e[0];if(r[a(e)])continue;let n=!1;while(!n)if(o.length<2)o.push(e),n=!0;else{const s=o.pop(),l=s[0],c=o.pop(),u=c[0],d=u.cross(l,t);if(d<0)o.push(c),o.push(s),o.push(e),n=!0;else if(0===d){const e=1e-10,n=l.angleBetween(u,t);Math.abs(n-180)2&&o.pop();let l=-1;for(let d=0,h=o.length;d0){const e=o.slice(l),t=o.slice(0,l);c=e.concat(t)}else c=o;const u=[];for(let d=0,h=c.length;de.equals(this.points[t])))}clone(){return new Oy(this.points.map(e=>e.clone()))}toJSON(){return this.points.map(e=>e.toJSON())}serialize(){return this.points.map(e=>`${e.x}, ${e.y}`).join(" ")}}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&"function"===typeof i.toHull&&"function"===typeof i.simplify}e.toStringTag=`X6.Geometry.${e.name}`,e.isPolyline=t})(Oy||(Oy={})),function(e){function t(t){const n=t.trim();if(""===n)return new e;const i=[],r=n.split(/\s*,\s*|\s+/);for(let e=0,o=r.length;e0&&_<1&&p.push(_)}else S=m*m-4*v*g,E=Math.sqrt(S),S<0||(y=(-m+E)/(2*g),y>0&&y<1&&p.push(y),b=(-m-E)/(2*g),b>0&&b<1&&p.push(b));let T=p.length;const A=T;while(T)T-=1,_=p[T],w=1-_,C=w*w*w*r+3*w*w*_*a+3*w*_*_*l+_*_*_*u,f[0][T]=C,x=w*w*w*o+3*w*w*_*s+3*w*_*_*c+_*_*_*d,f[1][T]=x,h[T]={X:C,Y:x};p[A]=0,p[A+1]=1,h[A]={X:r,Y:o},h[A+1]={X:u,Y:d},f[0][A]=r,f[1][A]=o,f[0][A+1]=u,f[1][A+1]=d,p.length=A+2,f[0].length=A+2,f[1].length=A+2,h.length=A+2;const O=Math.min.apply(null,f[0]),R=Math.min.apply(null,f[1]),N=Math.max.apply(null,f[0]),D=Math.max.apply(null,f[1]);return new wy(O,R,N-O,D-R)}closestPoint(e,t={}){return this.pointAtT(this.closestPointT(e,t))}closestPointLength(e,t={}){const n=this.getOptions(t);return this.lengthAtT(this.closestPointT(e,n),n)}closestPointNormalizedLength(e,t={}){const n=this.getOptions(t),i=this.closestPointLength(e,n);if(!i)return 0;const r=this.length(n);return 0===r?0:i/r}closestPointT(e,t={}){const n=this.getPrecision(t),i=this.getDivisions(t),r=Math.pow(10,-n);let o=null,a=0,s=0,l=0,c=0,u=0,d=null;const h=i.length;let p=h>0?1/h:0;i.forEach((t,n)=>{const i=t.start.distance(e),r=t.end.distance(e),h=i+r;(null==d||h=1)return this.divideAtT(1);const n=this.tAt(e,t);return this.divideAtT(n)}divideAtLength(e,t={}){const n=this.tAtLength(e,t);return this.divideAtT(n)}divide(e){return this.divideAtT(e)}divideAtT(e){const t=this.start,n=this.controlPoint1,i=this.controlPoint2,r=this.end;if(e<=0)return[new Ry(t,t,t,t),new Ry(t,n,i,r)];if(e>=1)return[new Ry(t,n,i,r),new Ry(r,r,r,r)];const o=this.getSkeletonPoints(e),a=o.startControlPoint1,s=o.startControlPoint2,l=o.divider,c=o.dividerControlPoint1,u=o.dividerControlPoint2;return[new Ry(t,a,s,l),new Ry(l,c,u,r)]}endpointDistance(){return this.start.distance(this.end)}getSkeletonPoints(e){const t=this.start,n=this.controlPoint1,i=this.controlPoint2,r=this.end;if(e<=0)return{startControlPoint1:t.clone(),startControlPoint2:t.clone(),divider:t.clone(),dividerControlPoint1:n.clone(),dividerControlPoint2:i.clone()};if(e>=1)return{startControlPoint1:n.clone(),startControlPoint2:i.clone(),divider:r.clone(),dividerControlPoint1:r.clone(),dividerControlPoint2:r.clone()};const o=new Ty(t,n).pointAt(e),a=new Ty(n,i).pointAt(e),s=new Ty(i,r).pointAt(e),l=new Ty(o,a).pointAt(e),c=new Ty(a,s).pointAt(e),u=new Ty(l,c).pointAt(e);return{startControlPoint1:o,startControlPoint2:l,divider:u,dividerControlPoint1:c,dividerControlPoint2:s}}getSubdivisions(e={}){const t=this.getPrecision(e);let n=[new Ry(this.start,this.controlPoint1,this.controlPoint2,this.end)];if(0===t)return n;let i=this.endpointDistance();const r=Math.pow(10,-t);let o=0;while(1){o+=1;const e=[];n.forEach(t=>{const n=t.divide(.5);e.push(n[0],n[1])});const t=e.reduce((e,t)=>e+t.endpointDistance(),0),a=0!==t?(t-i)/t:0;if(o>1&&a{return e+t.endpointDistance()},0)}lengthAtT(e,t={}){if(e<=0)return 0;const n=void 0===t.precision?this.PRECISION:t.precision,i=this.divide(e)[0];return i.length({precision:n})}pointAt(e,t={}){if(e<=0)return this.start.clone();if(e>=1)return this.end.clone();const n=this.tAt(e,t);return this.pointAtT(n)}pointAtLength(e,t={}){const n=this.tAtLength(e,t);return this.pointAtT(n)}pointAtT(e){return e<=0?this.start.clone():e>=1?this.end.clone():this.getSkeletonPoints(e).divider}isDifferentiable(){const e=this.start,t=this.controlPoint1,n=this.controlPoint2,i=this.end;return!(e.equals(t)&&t.equals(n)&&n.equals(i))}tangentAt(e,t={}){if(!this.isDifferentiable())return null;e<0?e=0:e>1&&(e=1);const n=this.tAt(e,t);return this.tangentAtT(n)}tangentAtLength(e,t={}){if(!this.isDifferentiable())return null;const n=this.tAtLength(e,t);return this.tangentAtT(n)}tangentAtT(e){if(!this.isDifferentiable())return null;e<0&&(e=0),e>1&&(e=1);const t=this.getSkeletonPoints(e),n=t.startControlPoint2,i=t.dividerControlPoint1,r=t.divider,o=new Ty(n,i);return o.translate(r.x-n.x,r.y-n.y),o}getPrecision(e={}){return null==e.precision?this.PRECISION:e.precision}getDivisions(e={}){if(null!=e.subdivisions)return e.subdivisions;const t=this.getPrecision(e);return this.getSubdivisions({precision:t})}getOptions(e={}){const t=this.getPrecision(e),n=this.getDivisions(e);return{precision:t,subdivisions:n}}tAt(e,t={}){if(e<=0)return 0;if(e>=1)return 1;const n=this.getOptions(t),i=this.length(n),r=i*e;return this.tAtLength(r,n)}tAtLength(e,t={}){let n=!0;e<0&&(n=!1,e=-e);const i=this.getPrecision(t),r=this.getDivisions(t),o={precision:i,subdivisions:r};let a,s,l=null,c=0,u=0,d=0;const h=r.length;let p=h>0?1/h:0;for(let m=0;mn.push(e.end.clone())),n}toPolyline(e={}){return new Oy(this.toPoints(e))}scale(e,t,n){return this.start.scale(e,t,n),this.controlPoint1.scale(e,t,n),this.controlPoint2.scale(e,t,n),this.end.scale(e,t,n),this}rotate(e,t){return this.start.rotate(e,t),this.controlPoint1.rotate(e,t),this.controlPoint2.rotate(e,t),this.end.rotate(e,t),this}translate(e,t){return"number"===typeof e?(this.start.translate(e,t),this.controlPoint1.translate(e,t),this.controlPoint2.translate(e,t),this.end.translate(e,t)):(this.start.translate(e),this.controlPoint1.translate(e),this.controlPoint2.translate(e),this.end.translate(e)),this}equals(e){return null!=e&&this.start.equals(e.start)&&this.controlPoint1.equals(e.controlPoint1)&&this.controlPoint2.equals(e.controlPoint2)&&this.end.equals(e.end)}clone(){return new Ry(this.start,this.controlPoint1,this.controlPoint2,this.end)}toJSON(){return{start:this.start.toJSON(),controlPoint1:this.controlPoint1.toJSON(),controlPoint2:this.controlPoint2.toJSON(),end:this.end.toJSON()}}serialize(){return[this.start.serialize(),this.controlPoint1.serialize(),this.controlPoint2.serialize(),this.end.serialize()].join(" ")}}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return!(null!=n&&n!==e.toStringTag||!xy.isPoint(i.start)||!xy.isPoint(i.controlPoint1)||!xy.isPoint(i.controlPoint2)||!xy.isPoint(i.end)||"function"!==typeof i.toPoints||"function"!==typeof i.toPolyline)}e.toStringTag=`X6.Geometry.${e.name}`,e.isCurve=t})(Ry||(Ry={})),function(e){function t(e){const t=e.length,n=[],i=[];let r=2;n[0]=e[0]/r;for(let o=1;oxy.clone(e)),i=[],r=[],o=n.length-1;if(1===o)return i[0]=new xy((2*n[0].x+n[1].x)/3,(2*n[0].y+n[1].y)/3),r[0]=new xy(2*i[0].x-n[0].x,2*i[0].y-n[0].y),[i,r];const a=[];for(let t=1;t=1?n:n*e}divideAtT(e){if(this.divideAt)return this.divideAt(e);throw new Error("Neither `divideAtT` nor `divideAt` method is implemented.")}pointAtT(e){if(this.pointAt)return this.pointAt(e);throw new Error("Neither `pointAtT` nor `pointAt` method is implemented.")}tangentAtT(e){if(this.tangentAt)return this.tangentAt(e);throw new Error("Neither `tangentAtT` nor `tangentAt` method is implemented.")}}class Dy extends Ny{constructor(e,t){super(),Ty.isLine(e)?this.endPoint=e.end.clone().round(2):this.endPoint=xy.create(e,t).round(2)}get type(){return"L"}get line(){return new Ty(this.start,this.end)}bbox(){return this.line.bbox()}closestPoint(e){return this.line.closestPoint(e)}closestPointLength(e){return this.line.closestPointLength(e)}closestPointNormalizedLength(e){return this.line.closestPointNormalizedLength(e)}closestPointTangent(e){return this.line.closestPointTangent(e)}length(){return this.line.length()}divideAt(e){const t=this.line.divideAt(e);return[new Dy(t[0]),new Dy(t[1])]}divideAtLength(e){const t=this.line.divideAtLength(e);return[new Dy(t[0]),new Dy(t[1])]}getSubdivisions(){return[]}pointAt(e){return this.line.pointAt(e)}pointAtLength(e){return this.line.pointAtLength(e)}tangentAt(e){return this.line.tangentAt(e)}tangentAtLength(e){return this.line.tangentAtLength(e)}isDifferentiable(){return null!=this.previousSegment&&!this.start.equals(this.end)}clone(){return new Dy(this.end)}scale(e,t,n){return this.end.scale(e,t,n),this}rotate(e,t){return this.end.rotate(e,t),this}translate(e,t){return"number"===typeof e?this.end.translate(e,t):this.end.translate(e),this}equals(e){return this.type===e.type&&this.start.equals(e.start)&&this.end.equals(e.end)}toJSON(){return{type:this.type,start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){const e=this.end;return`${this.type} ${e.x} ${e.y}`}}(function(e){function t(...t){const n=t.length,i=t[0];if(Ty.isLine(i))return new e(i);if(xy.isPointLike(i))return 1===n?new e(i):t.map(t=>new e(t));if(2===n)return new e(+t[0],+t[1]);const r=[];for(let o=0;o1&&(u=Math.sqrt(u),n*=u,i*=u);const v=n*n,_=i*i,y=(o===a?-1:1)*Math.sqrt(Math.abs((v*_-v*c*c-_*r*r)/(v*c*c+_*r*r)));g=y*n*c/i+(e+s)/2,m=y*-i*r/n+(t+l)/2,p=Math.asin((t-m)/i),f=Math.asin((l-m)/i),p=ef&&(p-=2*Math.PI),!a&&f>p&&(f-=2*Math.PI)}let _=f-p;if(Math.abs(_)>u){const e=f,t=s,o=l;f=p+u*(a&&f>p?1:-1),s=g+n*Math.cos(f),l=m+i*Math.sin(f),v=Fy(s,l,n,i,r,0,a,t,o,[f,e,g,m])}_=f-p;const y=Math.cos(p),b=Math.sin(p),S=Math.cos(f),E=Math.sin(f),C=Math.tan(_/4),x=4/3*(n*C),w=4/3*(i*C),T=[e,t],A=[e+x*b,t-w*y],O=[s+x*E,l-w*S],R=[s,l];if(A[0]=2*T[0]-A[0],A[1]=2*T[1]-A[1],c)return[A,O,R].concat(v);{v=[A,O,R].concat(v).join().split(",");const e=[],t=v.length;for(let n=0;n{const a=[];let s=t.toLowerCase();n.replace(i,(e,t)=>{return t&&a.push(+t),e}),"m"===s&&a.length>2&&(o.push([t,...a.splice(0,2)]),s="l",t="m"===t?"l":"L");const l=r[s];while(a.length>=l)if(o.push([t,...a.splice(0,l)]),!l)break;return e}),o}function $y(e){const t=By(e);if(!t||!t.length)return[["M",0,0]];let n=0,i=0,r=0,o=0;const a=[];for(let s=0,l=t.length;s7){e[n].shift();const i=e[n];while(i.length)o[n]="A",n+=1,e.splice(n,0,["C"].concat(i.splice(0,6)));e.splice(n,1),s=t.length}}const o=[];let a="",s=t.length;for(let l=0;l0&&(a=o[l-1])),t[l]=i(t[l],n,a),"A"!==o[l]&&"C"===e&&(o[l]="C"),r(t,l);const s=t[l],c=s.length;n.x=s[c-2],n.y=s[c-1],n.bx=parseFloat(s[c-4])||n.x,n.by=parseFloat(s[c-3])||n.y}return t[0][0]&&"M"===t[0][0]||t.unshift(["M",0,0]),t}function Gy(e){return Vy(e).map(e=>e.map(e=>"string"===typeof e?e:vy(e,2))).join(",").split(",").join(" ")}(function(e){function t(...t){const n=t.length,i=t[0];if(Ry.isCurve(i))return new e(i);if(xy.isPointLike(i)){if(3===n)return new e(t[0],t[1],t[2]);const i=[];for(let r=0;r0,l=t||0;if(i&&s){e=e.slice();const t=e[0],n=new xy(a.x+(t.x-a.x)/2,a.y+(t.y-a.y)/2);e.splice(0,0,n)}let c=e[0],u=1;n?o.push("M",c.x,c.y):o.push("L",c.x,c.y);while(u<(i?e.length:e.length-1)){let t=e[jy(u,e.length)],n=c.x-t.x,i=c.y-t.y;if(s&&(0!==n||0!==i)&&(null==r||r.indexOf(u-1)<0)){let r=Math.sqrt(n*n+i*i);const a=n*Math.min(l,r/2)/r,s=i*Math.min(l,r/2)/r,c=t.x+a,d=t.y+s;o.push("L",c,d);let h=e[jy(u+1,e.length)];while(u"string"===typeof e?e:+e.toFixed(3)).join(" ")}function Wy(e,t={}){const n=[];return e&&e.length&&e.forEach(e=>{Array.isArray(e)?n.push({x:e[0],y:e[1]}):n.push({x:e.x,y:e.y})}),Hy(n,t.round,null==t.initialMove||t.initialMove,t.close,t.exclude)}function Yy(e,t,n,i,r=0,o=0,a=0,s,l){if(0===n||0===i)return[];s-=e,l-=t,n=Math.abs(n),i=Math.abs(i);const c=-s/2,u=-l/2,d=Math.cos(r*Math.PI/180),h=Math.sin(r*Math.PI/180),p=d*c+h*u,f=-1*h*c+d*u,g=p*p,m=f*f,v=n*n,_=i*i,y=g/v+m/_;let b;if(y>1)n=Math.sqrt(y)*n,i=Math.sqrt(y)*i,b=0;else{let e=1;o===a&&(e=-1),b=e*Math.sqrt((v*_-v*m-_*g)/(v*m+_*g))}const S=b*n*f/i,E=-1*b*i*p/n,C=d*S-h*E+s/2,x=h*S+d*E+l/2;let w=Math.atan2((f-E)/i,(p-S)/n)-Math.atan2(0,1),T=w>=0?w:2*Math.PI+w;w=Math.atan2((-f-E)/i,(-p-S)/n)-Math.atan2((f-E)/i,(p-S)/n);let A=w>=0?w:2*Math.PI+w;0===a&&A>0?A-=2*Math.PI:0!==a&&A<0&&(A+=2*Math.PI);const O=2*A/Math.PI,R=Math.ceil(O<0?-1*O:O),N=A/R,D=8/3*Math.sin(N/4)*Math.sin(N/4)/Math.sin(N/2),I=d*n,M=d*i,k=h*n,L=h*i;let P=Math.cos(T),F=Math.sin(T),B=-D*(I*F+L*P),$=-D*(k*F-M*P),V=0,G=0;const U=[];for(let z=0;z+e.toFixed(2))}function qy(e,t,n,i,r=0,o=0,a=0,s,l){const c=[],u=Yy(e,t,n,i,r,o,a,s,l);if(null!=u)for(let d=0,h=u.length;d{0===n&&this.appendSegment(Ky.createSegment("M",e.start)),null==t||t.end.equals(e.start)||this.appendSegment(Ky.createSegment("M",e.start)),Ty.isLine(e)?this.appendSegment(Ky.createSegment("L",e.end)):Ry.isCurve(e)&&this.appendSegment(Ky.createSegment("C",e.controlPoint1,e.controlPoint2,e.end)),t=e})}else{const t=e;t.forEach(e=>{e.isSegment&&this.appendSegment(e)})}else null!=e&&(Ty.isLine(e)?(this.appendSegment(Ky.createSegment("M",e.start)),this.appendSegment(Ky.createSegment("L",e.end))):Ry.isCurve(e)?(this.appendSegment(Ky.createSegment("M",e.start)),this.appendSegment(Ky.createSegment("C",e.controlPoint1,e.controlPoint2,e.end))):Oy.isPolyline(e)?e.points&&e.points.length&&e.points.forEach((e,t)=>{const n=0===t?Ky.createSegment("M",e):Ky.createSegment("L",e);this.appendSegment(n)}):e.isSegment&&this.appendSegment(e))}get[Symbol.toStringTag](){return Ky.toStringTag}get start(){const e=this.segments,t=e.length;if(0===t)return null;for(let n=0;n=0;n-=1){const t=e[n];if(t.isVisible)return t.end}return e[t-1].end}moveTo(...e){return this.appendSegment(My.create.call(null,...e))}lineTo(...e){return this.appendSegment(Dy.create.call(null,...e))}curveTo(...e){return this.appendSegment(ky.create.call(null,...e))}arcTo(e,t,n,i,r,o,a){const s=this.end||new xy,l="number"===typeof o?Yy(s.x,s.y,e,t,n,i,r,o,a):Yy(s.x,s.y,e,t,n,i,r,o.x,o.y);if(null!=l)for(let c=0,u=l.length;cn||e<0)throw new Error("Index out of range.");let i,r=null,o=null;if(0!==n&&(e>=1?(r=this.segments[e-1],o=r.nextSegment):(r=null,o=this.segments[0])),Array.isArray(t))for(let a=0,s=t.length;a=t||n<0)throw new Error("Index out of range.");return n}segmentAt(e,t={}){const n=this.segmentIndexAt(e,t);return n?this.getSegment(n):null}segmentAtLength(e,t={}){const n=this.segmentIndexAtLength(e,t);return n?this.getSegment(n):null}segmentIndexAt(e,t={}){if(0===this.segments.length)return null;const n=yy(e,0,1),i=this.getOptions(t),r=this.length(i),o=r*n;return this.segmentIndexAtLength(o,i)}segmentIndexAtLength(e,t={}){const n=this.segments.length;if(0===n)return null;let i=!0;e<0&&(i=!1,e=-e);const r=this.getPrecision(t),o=this.getSubdivisions(t);let a=0,s=null;for(let l=0;l=1)return this.end.clone();const n=this.getOptions(t),i=this.length(n),r=i*e;return this.pointAtLength(r,n)}pointAtLength(e,t={}){if(0===this.segments.length)return null;if(0===e)return this.start.clone();let n=!0;e<0&&(n=!1,e=-e);const i=this.getPrecision(t),r=this.getSubdivisions(t);let o,a=0;for(let l=0,c=this.segments.length;l=n)return t[n-1].pointAtT(1);const r=yy(e.value,0,1);return t[i].pointAtT(r)}divideAt(e,t={}){if(0===this.segments.length)return null;const n=yy(e,0,1),i=this.getOptions(t),r=this.length(i),o=r*n;return this.divideAtLength(o,i)}divideAtLength(e,t={}){if(0===this.segments.length)return null;let n=!0;e<0&&(n=!1,e=-e);const i=this.getPrecision(t),r=this.getSubdivisions(t);let o,a,s,l,c,u=0;for(let b=0,S=this.segments.length;b=n&&(i=n-1,r=1);const o=this.getPrecision(t),a=this.getSubdivisions(t);let s=0;for(let u=0;u=t)return this.segments[t-1].tangentAtT(1);const i=yy(e.value,0,1);return this.segments[n].tangentAtT(i)}getPrecision(e={}){return null==e.precision?this.PRECISION:e.precision}getSubdivisions(e={}){if(null==e.segmentSubdivisions){const t=this.getPrecision(e);return this.getSegmentSubdivisions({precision:t})}return e.segmentSubdivisions}getOptions(e={}){const t=this.getPrecision(e),n=this.getSubdivisions(e);return{precision:t,segmentSubdivisions:n}}toPoints(e={}){const t=this.segments,n=t.length;if(0===n)return null;const i=this.getSubdivisions(e),r=[];let o=[];for(let a=0;a0?t.forEach(e=>o.push(e.start)):o.push(e.start)}else o.length>0&&(o.push(t[a-1].end),r.push(o),o=[])}return o.length>0&&(o.push(this.end),r.push(o)),r}toPolylines(e={}){const t=this.toPoints(e);return t?t.map(e=>new Oy(e)):null}scale(e,t,n){return this.segments.forEach(i=>i.scale(e,t,n)),this}rotate(e,t){return this.segments.forEach(n=>n.rotate(e,t)),this}translate(e,t){return"number"===typeof e?this.segments.forEach(n=>n.translate(e,t)):this.segments.forEach(t=>t.translate(e)),this}clone(){const e=new Ky;return this.segments.forEach(t=>e.appendSegment(t.clone())),e}equals(e){if(null==e)return!1;const t=this.segments,n=e.segments,i=t.length;if(n.length!==i)return!1;for(let r=0;re.toJSON())}serialize(){if(!this.isValid())throw new Error("Invalid path segments.");return this.segments.map(e=>e.serialize()).join(" ")}toString(){return this.serialize()}}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return!(null!=n&&n!==e.toStringTag||!Array.isArray(i.segments)||"function"!==typeof i.moveTo||"function"!==typeof i.lineTo||"function"!==typeof i.curveTo)}e.toStringTag=`X6.Geometry.${e.name}`,e.isPath=t})(Ky||(Ky={})),function(e){function t(t){if(!t)return new e;const i=new e,r=/(?:[a-zA-Z] *)(?:(?:-?\d+(?:\.\d+)?(?:e[-+]?\d+)? *,? *)|(?:-?\.\d+ *,? *))+|(?:[a-zA-Z] *)(?! |\d|-|\.)/g,o=e.normalize(t).match(r);if(null!=o)for(let e=0,a=o.length;e+e),r=n.call(null,e,...t);i.appendSegment(r)}}return i}function n(e,...t){if("M"===e)return My.create.call(null,...t);if("L"===e)return Dy.create.call(null,...t);if("C"===e)return ky.create.call(null,...t);if("z"===e||"Z"===e)return Iy.create();throw new Error(`Invalid path segment type "${e}"`)}e.parse=t,e.createSegment=n}(Ky||(Ky={})),function(e){e.normalize=Gy,e.isValid=zy,e.drawArc=qy,e.drawPoints=Wy,e.arcToCurves=Yy}(Ky||(Ky={}));class Qy{constructor(e,t,n){if(!e)throw new TypeError("Invalid element to create vector");let i;if(Qy.isVector(e))i=e.node;else if("string"===typeof e)if("svg"===e.toLowerCase())i=C_();else if("<"===e[0]){const t=C_(e);i=document.importNode(t.firstChild,!0)}else i=document.createElementNS(__.svg,e);else i=e;this.node=i,t&&this.setAttributes(t),n&&this.append(n)}get[Symbol.toStringTag](){return Qy.toStringTag}get type(){return this.node.nodeName}get id(){return this.node.id}set id(e){this.node.id=e}transform(e,t){return null==e?eS(this.node):(eS(this.node,e,t),this)}translate(e,t=0,n={}){return null==e?tS(this.node):(tS(this.node,e,t,n),this)}rotate(e,t,n,i={}){return null==e?nS(this.node):(nS(this.node,e,t,n,i),this)}scale(e,t){return null==e?iS(this.node):(iS(this.node,e,t),this)}getTransformToElement(e){const t=Qy.toNode(e);return jb(this.node,t)}removeAttribute(e){return $_(this.node,e),this}getAttribute(e){return B_(this.node,e)}setAttribute(e,t){return V_(this.node,e,t),this}setAttributes(e){return G_(this.node,e),this}attr(e,t){return null==e?U_(this.node):"string"===typeof e&&void 0===t?U_(this.node,e):("object"===typeof e?U_(this.node,e):U_(this.node,e,t),this)}svg(){return this.node instanceof SVGSVGElement?this:Qy.create(this.node.ownerSVGElement)}defs(){const e=this.svg()||this,t=e.node.getElementsByTagName("defs")[0];return t?Qy.create(t):Qy.create("defs").appendTo(e)}text(e,t={}){return nb(this.node,e,t),this}tagName(){return w_(this.node)}clone(){return Qy.create(this.node.cloneNode(!0))}remove(){return D_(this.node),this}empty(){return I_(this.node),this}append(e){return M_(this.node,Qy.toNodes(e)),this}appendTo(e){return P_(this.node,Qy.isVector(e)?e.node:e),this}prepend(e){return k_(this.node,Qy.toNodes(e)),this}before(e){return L_(this.node,Qy.toNodes(e)),this}replace(e){return this.node.parentNode&&this.node.parentNode.replaceChild(Qy.toNode(e),this.node),Qy.create(e)}first(){return this.node.firstChild?Qy.create(this.node.firstChild):null}last(){return this.node.lastChild?Qy.create(this.node.lastChild):null}get(e){const t=this.node.childNodes[e];return t?Qy.create(t):null}indexOf(e){const t=Array.prototype.slice.call(this.node.childNodes);return t.indexOf(Qy.toNode(e))}find(e){const t=[],n=A_(this.node,e);if(n)for(let i=0,r=n.length;is&&(s=l)}else i&&u===c&&(o+=i),a=document.createTextNode(o||" "),r&&r>s&&(s=r);e.appendChild(a)}return s&&(l.maxFontSize=s),o?l.lineHeight=o:s&&(l.lineHeight=1.2*s),l}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&i.node instanceof SVGElement&&"function"===typeof i.animate&&"function"===typeof i.sample&&"function"===typeof i.normalizePath&&"function"===typeof i.toPath}function n(t,n,i){return new e(t,n,i)}function i(e){if("<"===e[0]){const t=C_(e),i=[];for(let e=0,r=t.childNodes.length;er(e)):[r(e)]}e.toStringTag=`X6.${e.name}`,e.isVector=t,e.create=n,e.createVectors=i,e.toNode=r,e.toNodes=o})(Qy||(Qy={}));const Jy=/em$/;function eb(e,t){const n=parseFloat(e);return Jy.test(e)?n*t:n}function tb(e,t,n,i){if(!Array.isArray(t))return 0;const r=t.length;if(!r)return 0;let o=t[0];const a=eb(o.maxFontSize,n)||n;let s=0;const l=eb(i,n);for(let d=1;d0&&t.setAttribute("dy",m),(x>0||r)&&t.setAttribute("x",s),t.className.baseVal=e,g.appendChild(t),y+=o.length+1}if(a)if(u)m=tb(o,S,v,p);else if("top"===o)m="0.8em";else{let e;switch(E>0?(e=parseFloat(p)||1,e*=E,Jy.test(p)||(e/=v)):e=0,o){case"middle":m=`${.3-e/2}em`;break;case"bottom":m=`${-e-.3}em`;break;default:break}}else 0===o?m="0em":o?m=o:(m=0,null==e.getAttribute("y")&&e.setAttribute("y",`${_||"0.8em"}`));const C=g.firstChild;C.setAttribute("dy",m),e.appendChild(g)}function ib(e,t,n,i){const r=[],o=[];if(null!=t){const n=e.split(t);if(r.push(...n),"string"===typeof t)for(let e=0,i=n.length-1;e=0&&e.length>1){const t=e.split(n);for(let e=0,r=t.length-1;e""!==e);r.splice(a,1,...i);const s=i.map(()=>"");s.pop(),o.splice(a,0,...s)}}for(let a=0;a0&&to){const e=Math.floor(o/y)-1,t=S[e],n=S[e+1];if(S.splice(e+1),null==t)break;let a=i.ellipsis;if(!a)break;"string"!==typeof a&&(a="…");let s=t;n&&g&&(s+=b+n);let l,d,h=s.length;do{if(d=s[h],l=s.substring(0,h),d?d.match(p)&&(l+=d):l+=v[e],l+=a,u.data=l,c.getComputedTextLength()<=r){S[e]=l;break}h-=1}while(h>=0);break}}}else m[w]=!0,w+=1,S[w]=""}return D_(d?s:l),S.join(h)}const ob=.551784;function ab(e,t,n=NaN){const i=e.getAttribute(t);if(null==i)return n;const r=parseFloat(i);return Number.isNaN(r)?n:r}function sb(e,t=1){const n=e.getTotalLength(),i=[];let r,o=0;while(o`${e.x} ${e.y}`);return`M ${t.join(" L")}`}function hb(e){const t=[],n=e.points;if(n)for(let i=0,r=n.numberOfItems;i=r?o?`M0,${a}A${a},${a} 0 1,1 0,${-a}A${a},${a} 0 1,1 0,${a}M0,${o}A${o},${o} 0 1,0 0,${-o}A${o},${o} 0 1,0 0,${o}Z`:`M0,${a}A${a},${a} 0 1,1 0,${-a}A${a},${a} 0 1,1 0,${a}Z`:o?`M${a*d},${a*h}A${a},${a} 0 ${u},1 ${a*p},${a*f}L${o*p},${o*f}A${o},${o} 0 ${u},0 ${o*d},${o*h}Z`:`M${a*d},${a*h}A${a},${a} 0 ${u},1 ${a*p},${a*f}L0,0`+"Z"}const bb=E_("svg"),Sb=/(\w+)\(([^,)]+),?([^)]+)?\)/gi,Eb=/[ ,]+/,Cb=/^(\w+)\((.*)\)/;function xb(e,t){const n=bb.createSVGPoint();return n.x=e,n.y=t,n}function wb(e){const t=bb.createSVGMatrix();if(null!=e){const n=e,i=t;for(const e in n)i[e]=n[e]}return t}function Tb(e){return null!=e?(e instanceof DOMMatrix||(e=wb(e)),bb.createSVGTransformFromMatrix(e)):bb.createSVGTransform()}function Ab(e){let t=wb();const n=null!=e&&e.match(Sb);if(!n)return t;for(let i=0,r=n.length;i=0){const r=Ab(e),o=Db(r);t=[o.translateX,o.translateY],n=[o.rotation],i=[o.scaleX,o.scaleY];const a=[];0===t[0]&&0===t[1]||a.push(`translate(${t.join(",")})`),1===i[0]&&1===i[1]||a.push(`scale(${i.join(",")})`),0!==n[0]&&a.push(`rotate(${n[0]})`),e=a.join(" ")}else{const o=e.match(/translate\((.*?)\)/);o&&(t=o[1].split(r));const a=e.match(/rotate\((.*?)\)/);a&&(n=a[1].split(r));const s=e.match(/scale\((.*?)\)/);s&&(i=s[1].split(r))}}const r=i&&i[0]?parseFloat(i[0]):1;return{raw:e||"",translation:{tx:t&&t[0]?parseInt(t[0],10):0,ty:t&&t[1]?parseInt(t[1],10):0},rotation:{angle:n&&n[0]?parseInt(n[0],10):0,cx:n&&n[1]?parseInt(n[1],10):void 0,cy:n&&n[2]?parseInt(n[2],10):void 0},scale:{sx:r,sy:i&&i[1]?parseFloat(i[1]):r}}}function Nb(e,t){const n=t.x*e.a+t.y*e.c+0,i=t.x*e.b+t.y*e.d+0;return{x:n,y:i}}function Db(e){const t=Nb(e,{x:0,y:1}),n=Nb(e,{x:1,y:0}),i=180/Math.PI*Math.atan2(t.y,t.x)-90,r=180/Math.PI*Math.atan2(n.y,n.x);return{skewX:i,skewY:r,translateX:e.e,translateY:e.f,scaleX:Math.sqrt(e.a*e.a+e.b*e.b),scaleY:Math.sqrt(e.c*e.c+e.d*e.d),rotation:i}}function Ib(e){let t,n,i,r;return e?(t=null==e.a?1:e.a,r=null==e.d?1:e.d,n=e.b,i=e.c):t=r=1,{sx:n?Math.sqrt(t*t+n*n):t,sy:i?Math.sqrt(i*i+r*r):r}}function Mb(e){let t={x:0,y:1};return e&&(t=Nb(e,t)),{angle:my.normalize(my.toDeg(Math.atan2(t.y,t.x))-90)}}function kb(e){return{tx:e&&e.e||0,ty:e&&e.f||0}}function Lb(e,t){const n=xb(e.x,e.y).matrixTransform(t);return new xy(n.x,n.y)}function Pb(e,t){return new Ty(Lb(e.start,t),Lb(e.end,t))}function Fb(e,t){let n=e instanceof Oy?e.points:e;return Array.isArray(n)||(n=[]),new Oy(n.map(e=>Lb(e,t)))}function Bb(e,t){const n=bb.createSVGPoint();n.x=e.x,n.y=e.y;const i=n.matrixTransform(t);n.x=e.x+e.width,n.y=e.y;const r=n.matrixTransform(t);n.x=e.x+e.width,n.y=e.y+e.height;const o=n.matrixTransform(t);n.x=e.x,n.y=e.y+e.height;const a=n.matrixTransform(t),s=Math.min(i.x,r.x,o.x,a.x),l=Math.max(i.x,r.x,o.x,a.x),c=Math.min(i.y,r.y,o.y,a.y),u=Math.max(i.y,r.y,o.y,a.y);return new wy(s,c,l-s,u-c)}var $b=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const n=t.getAttribute(e),i=n?parseFloat(n):0;return Number.isNaN(i)?0:i};let r,o;switch(n){case"rect":o=new wy(i("x"),i("y"),i("width"),i("height"));break;case"circle":r=i("r"),o=new wy(i("cx")-r,i("cy")-r,2*r,2*r);break;default:break}return o}function zb(e,t){let n=wb();if(v_(t)&&v_(e)){let i=e;const r=[];while(i&&i!==t){const e=i.getAttribute("transform")||null,t=Ab(e);r.push(t),i=i.parentNode}r.reverse().forEach(e=>{n=n.multiply(e)})}return n}function jb(e,t){if(v_(t)&&v_(e)){const n=t.getScreenCTM(),i=e.getScreenCTM();if(n&&i)return n.inverse().multiply(i)}return wb()}function Hb(e,t,n){const i=e instanceof SVGSVGElement?e:e.ownerSVGElement,r=i.createSVGPoint();r.x=t,r.y=n;try{const t=i.getScreenCTM(),n=r.matrixTransform(t.inverse()),o=jb(e,i).inverse();return n.matrixTransform(o)}catch(o){return r}}function Wb(e){const t=t=>{const n=e.getAttribute(t),i=n?parseFloat(n):0;return Number.isNaN(i)?0:i};switch(e instanceof SVGElement&&e.nodeName.toLowerCase()){case"rect":return new wy(t("x"),t("y"),t("width"),t("height"));case"circle":return new Ay(t("cx"),t("cy"),t("r"),t("r"));case"ellipse":return new Ay(t("cx"),t("cy"),t("rx"),t("ry"));case"polyline":{const t=hb(e);return new Oy(t)}case"polygon":{const t=hb(e);return t.length>1&&t.push(t[0]),new Oy(t)}case"path":{let t=e.getAttribute("d");return Ky.isValid(t)||(t=Ky.normalize(t)),Ky.parse(t)}case"line":return new Ty(t("x1"),t("y1"),t("x2"),t("y2"));default:break}return Gb(e)}function Yb(e,t,n){const i=e instanceof SVGSVGElement?e:e.ownerSVGElement;n=n||i;const r=Gb(n),o=r.getCenter();if(!r.intersectsWithLineFromCenterToPoint(t))return null;let a=null;const s=e.tagName.toLowerCase();if("rect"===s){const r=new wy(parseFloat(e.getAttribute("x")||"0"),parseFloat(e.getAttribute("y")||"0"),parseFloat(e.getAttribute("width")||"0"),parseFloat(e.getAttribute("height")||"0")),s=jb(e,n),l=Db(s),c=i.createSVGTransform();c.setRotate(-l.rotation,o.x,o.y);const u=Bb(r,c.matrix.multiply(s));a=wy.create(u).intersectsWithLineFromCenterToPoint(t,l.rotation)}else if("path"===s||"polygon"===s||"polyline"===s||"circle"===s||"ellipse"===s){const i="path"===s?e:vb(e),r=sb(i);let l=1/0,c=[];for(let a=0,s=r.length;ae.refDistance-t.refDistance),c[0]&&(a=xy.create(c[0].sample))}return a}function qb(e,t){return Qb(e,t,"animate")}function Kb(e,t){return Qb(e,t,"animateTransform")}function Qb(e,t,n){const i=E_(n);e.appendChild(i);try{return Xb(i,t)}catch(r){}return()=>{}}function Xb(e,t){const{start:n,complete:i,repeat:r}=t,o=$b(t,["start","complete","repeat"]);U_(e,o),n&&e.addEventListener("beginEvent",n),i&&e.addEventListener("endEvent",i),r&&e.addEventListener("repeatEvent",r);const a=e;return a.beginElement(),()=>a.endElement()}function Zb(e,t,n){const i=m_(n),r=E_("animateMotion"),o=E_("mpath");U_(o,{"xlink:href":`#${i}`}),r.appendChild(o),e.appendChild(r);try{return Xb(r,t)}catch(a){if("fake"===document.documentElement.getAttribute("smiling")){const e=r;e.animators=[];const t=window,n=e.getAttribute("id");n&&(t.id2anim[n]=e);const i=t.getTargets(e);for(let r=0,o=i.length;r{}}function Jb(e){let t=0,n=0,i=0,r=0;if(e){let o=e;while(o)t+=o.offsetLeft,n+=o.offsetTop,o=o.offsetParent,o&&(t+=parseInt(py(o,"borderLeft"),10),n+=parseInt(py(o,"borderTop"),10));i=e.offsetWidth,r=e.offsetHeight}return{left:t,top:n,width:i,height:r}}function eS(e,t,n={}){if(null==t)return Ab(U_(e,"transform"));if(n.absolute)return void e.setAttribute("transform",Ob(t));const i=e.transform,r=Tb(t);i.baseVal.appendItem(r)}function tS(e,t,n=0,i={}){let r=U_(e,"transform");const o=Rb(r);if(null==t)return o.translation;r=o.raw,r=r.replace(/translate\([^)]*\)/g,"").trim();const a=i.absolute?t:o.translation.tx+t,s=i.absolute?n:o.translation.ty+n,l=`translate(${a},${s})`;e.setAttribute("transform",`${l} ${r}`.trim())}function nS(e,t,n,i,r={}){let o=U_(e,"transform");const a=Rb(o);if(null==t)return a.rotation;o=a.raw,o=o.replace(/rotate\([^)]*\)/g,"").trim(),t%=360;const s=r.absolute?t:a.rotation.angle+t,l=null!=n&&null!=i?`,${n},${i}`:"",c=`rotate(${s}${l})`;e.setAttribute("transform",`${o} ${c}`.trim())}function iS(e,t,n){let i=U_(e,"transform");const r=Rb(i);if(null==t)return r.scale;n=null==n?t:n,i=r.raw,i=i.replace(/scale\([^)]*\)/g,"").trim();const o=`scale(${t},${n})`;e.setAttribute("transform",`${i} ${o}`.trim())}function rS(e,t,n,i){const r=xy.create(t),o=xy.create(n);if(!i){const t=e instanceof SVGSVGElement?e:e.ownerSVGElement;i=t}const a=iS(e);e.setAttribute("transform","");const s=Gb(e,{target:i}).scale(a.sx,a.sy),l=Tb();l.setTranslate(-s.x-s.width/2,-s.y-s.height/2);const c=Tb(),u=r.angleBetween(o,r.clone().translate(1,0));u&&c.setRotate(u,0,0);const d=Tb(),h=r.clone().move(o,s.width/2);d.setTranslate(2*r.x-h.x,2*r.y-h.y);const p=jb(e,i),f=Tb();f.setMatrix(d.matrix.multiply(c.matrix.multiply(l.matrix.multiply(p.scale(a.sx,a.sy))))),e.setAttribute("transform",Ob(f.matrix))}class oS{constructor(e,t,n){this.animationFrameId=0,this.deltaX=0,this.deltaY=0,this.eventName=O.isEventSupported("wheel")?"wheel":"mousewheel",this.target=e,this.onWheelCallback=t,this.onWheelGuard=n,this.onWheel=this.onWheel.bind(this),this.didWheel=this.didWheel.bind(this)}enable(){O.SUPPORT_PASSIVE?this.target.addEventListener(this.eventName,this.onWheel,{passive:!1}):T()(this.target).on("mousewheel",this.onWheel)}disable(){O.SUPPORT_PASSIVE?this.target.removeEventListener(this.eventName,this.onWheel):T()(this.target).off("mousewheel")}onWheel(e){if(null!=this.onWheelGuard&&!this.onWheelGuard(e))return;let t;this.deltaX+=e.deltaX,this.deltaY+=e.deltaY,e.preventDefault(),0===this.deltaX&&0===this.deltaY||(e.stopPropagation(),t=!0),!0===t&&0===this.animationFrameId&&(this.animationFrameId=requestAnimationFrame(()=>{this.didWheel(e)}))}didWheel(e){this.animationFrameId=0,this.onWheelCallback(e,this.deltaX,this.deltaY),this.deltaX=0,this.deltaY=0}}const aS=Qy.isVector,sS=Qy.create,lS=Qy.createVectors;function cS(e,t=60){let n=null;return(...i)=>{n&&clearTimeout(n),n=window.setTimeout(()=>{e.apply(this,i)},t)}}function uS(e){let t=null,n=[];const i=()=>{if("static"===getComputedStyle(e).position){const t=e.style;t.position="relative"}const t=document.createElement("object");return t.onload=()=>{t.contentDocument.defaultView.addEventListener("resize",r),r()},t.style.display="block",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.height="100%",t.style.width="100%",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex="-1",t.style.opacity="0",t.setAttribute("tabindex","-1"),t.type="text/html",e.appendChild(t),t.data="about:blank",t},r=cS(()=>{n.forEach(t=>t(e))}),o=e=>{t||(t=i()),-1===n.indexOf(e)&&n.push(e)},a=()=>{t&&t.parentNode&&(t.contentDocument&&t.contentDocument.defaultView.removeEventListener("resize",r),t.parentNode.removeChild(t),t=null,n=[])},s=e=>{const i=n.indexOf(e);-1!==i&&n.splice(i,1),0===n.length&&t&&a()};return{element:e,bind:o,destroy:a,unbind:s}}function dS(e){let t=null,n=[];const i=cS(()=>{n.forEach(t=>{t(e)})}),r=()=>{const t=new ResizeObserver(i);return t.observe(e),i(),t},o=e=>{t||(t=r()),-1===n.indexOf(e)&&n.push(e)},a=()=>{t&&(t.disconnect(),n=[],t=null)},s=e=>{const i=n.indexOf(e);-1!==i&&n.splice(i,1),0===n.length&&t&&a()};return{element:e,bind:o,destroy:a,unbind:s}}const hS="undefined"!==typeof ResizeObserver?dS:uS;var pS,fS;(function(e){const t=new WeakMap;function n(e){let n=t.get(e);return n||(n=hS(e),t.set(e,n),n)}function i(e){e.destroy(),t.delete(e.element)}e.bind=(e,t)=>{const i=n(e);return i.bind(t),()=>i.unbind(t)},e.clear=e=>{const t=n(e);i(t)}})(pS||(pS={})),function(e){const t=[],n=1e3/60,i=[];let r=0;const o=()=>performance.now(),a=e=>e[0],s=e=>1===i.push(e)&&l(),l=(()=>{const e=()=>i.splice(0,i.length).forEach(e=>e());if("undefined"!==typeof MessageChannel){const{port1:t,port2:n}=new MessageChannel;return t.onmessage=e,()=>n.postMessage(null)}return()=>setTimeout(e)})(),c=()=>{r=o()+n;let i=a(t);while(i&&!e.shouldYield()){const{callback:e,data:n}=i;i.callback=null;const r=e&&e(n);r?i.callback=r:t.shift(),i=a(t)}i&&s(c)};e.scheduleTask=(e,n)=>{const i={callback:e,data:n};t.push(i),s(c)},e.shouldYield=()=>{var e,t;return(null===(t=null===(e=navigator)||void 0===e?void 0:e.scheduling)||void 0===t?void 0:t.isInputPending())||o()>=r}}(fS||(fS={}));class gS{constructor(e){this.options=Object.assign({},e),this.data=this.options.data||{},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this)}get names(){return Object.keys(this.data)}register(e,t,n=!1){if("object"===typeof e)return void Object.keys(e).forEach(n=>{this.register(n,e[n],t)});!this.exist(e)||n||O.isApplyingHMR()||this.onDuplicated(e);const i=this.options.process,r=i?s.call(i,this,e,t):t;return this.data[e]=r,r}unregister(e){const t=e?this.data[e]:null;return delete this.data[e],t}get(e){return e?this.data[e]:null}exist(e){return!!e&&null!=this.data[e]}onDuplicated(e){try{throw this.options.onConflict&&s.call(this.options.onConflict,this,e),new Error(`${o.upperFirst(this.options.type)} with name '${e}' already registered.`)}catch(t){throw t}}onNotFound(e,t){throw new Error(this.getSpellingSuggestion(e,t))}getSpellingSuggestion(e,t){const n=this.getSpellingSuggestionForName(e),i=t?`${t} ${o.lowerFirst(this.options.type)}`:this.options.type;return`${o.upperFirst(i)} with name '${e}' does not exist.${n?` Did you mean '${n}'?`:""}`}getSpellingSuggestionForName(e){return o.getSpellingSuggestion(e,Object.keys(this.data),e=>e)}}(function(e){function t(t){return new e(t)}e.create=t})(gS||(gS={}));const mS={xlinkHref:"xlink:href",xlinkShow:"xlink:show",xlinkRole:"xlink:role",xlinkType:"xlink:type",xlinkArcrole:"xlink:arcrole",xlinkTitle:"xlink:title",xlinkActuate:"xlink:actuate",xmlSpace:"xml:space",xmlBase:"xml:base",xmlLang:"xml:lang",preserveAspectRatio:"preserveAspectRatio",requiredExtension:"requiredExtension",requiredFeatures:"requiredFeatures",systemLanguage:"systemLanguage",externalResourcesRequired:"externalResourceRequired"},vS={},_S={position:GS("x","width","origin")},yS={position:GS("y","height","origin")},bS={position:GS("x","width","corner")},SS={position:GS("y","height","corner")},ES={set:US("width","width")},CS={set:US("height","height")},xS={set:US("rx","width")},wS={set:US("ry","height")},TS={set:(e=>{const t=US(e,"width"),n=US(e,"height");return function(e,i){const r=i.refBBox,o=r.height>r.width?t:n;return s.call(o,this,e,i)}})("r")},AS={set(e,{refBBox:t}){let n=parseFloat(e);const i=a.isPercentage(e);i&&(n/=100);const r=Math.sqrt(t.height*t.height+t.width*t.width);let o;return Number.isFinite(n)&&(o=i||n>=0&&n<=1?n*r:Math.max(n+r,0)),{r:o}}},OS={set:US("cx","width")},RS={set:US("cy","height")},NS={set:jS({resetOffset:!0})},DS={set:jS({resetOffset:!1})},IS={set:HS({resetOffset:!0})},MS={set:HS({resetOffset:!1})},kS=TS,LS=NS,PS=IS,FS=_S,BS=yS,$S=ES,VS=CS;function GS(e,t,n){return(i,{refBBox:r})=>{if(null==i)return null;let o=parseFloat(i);const s=a.isPercentage(i);let l;if(s&&(o/=100),Number.isFinite(o)){const i=r[n];l=s||o>0&&o<1?i[e]+r[t]*o:i[e]+o}const c=new xy;return c[e]=l||0,c}}function US(e,t){return function(n,{refBBox:i}){let r=parseFloat(n);const o=a.isPercentage(n);o&&(r/=100);const s={};if(Number.isFinite(r)){const n=o||r>=0&&r<=1?r*i[t]:Math.max(r+i[t],0);s[e]=n}return s}}function zS(e,t){const n="x6-shape",i=t&&t.resetOffset;return function(t,{view:r,elem:o,refBBox:a}){const s=r.$(o);let l=s.data(n);if(!l||l.value!==t){const i=e(t);l={value:t,shape:i,shapeBBox:i.bbox()},s.data(n,l)}const c=l.shape.clone(),u=l.shapeBBox.clone(),d=u.getOrigin(),h=a.getOrigin();u.x=h.x,u.y=h.y;const p=a.getMaxScaleToFit(u,h),f=0===u.width||0===a.width?1:p.sx,g=0===u.height||0===a.height?1:p.sy;return c.scale(f,g,d),i&&c.translate(-d.x,-d.y),c}}function jS(e){function t(e){return Ky.parse(e)}const n=zS(t,e);return(e,t)=>{const i=n(e,t);return{d:i.serialize()}}}function HS(e){const t=zS(e=>new Oy(e),e);return(e,n)=>{const i=t(e,n);return{points:i.serialize()}}}const WS={qualify:r.isPlainObject,set(e,{view:t}){return`url(#${t.graph.defineGradient(e)})`}},YS={qualify:r.isPlainObject,set(e,{view:t}){const n=t.cell,i=Object.assign({},e);if(n.isEdge()&&"linearGradient"===i.type){const e=t,r=e.sourcePoint,o=e.targetPoint;i.id=`gradient-${i.type}-${n.id}`,i.attrs=Object.assign(Object.assign({},i.attrs),{x1:r.x,y1:r.y,x2:o.x,y2:o.y,gradientUnits:"userSpaceOnUse"}),t.graph.defs.remove(i.id)}return`url(#${t.graph.defineGradient(i)})`}},qS={qualify(e,{attrs:t}){return null==t.textWrap||!r.isPlainObject(t.textWrap)},set(e,{view:t,elem:n,attrs:i}){const r="x6-text",o=t.$(n),a=o.data(r),s=e=>{try{return JSON.parse(e)}catch(t){return e}},l={x:i.x,eol:i.eol,annotations:s(i.annotations),textPath:s(i["text-path"]||i.textPath),textVerticalAnchor:i["text-vertical-anchor"]||i.textVerticalAnchor,displayEmpty:"true"===(i["display-empty"]||i.displayEmpty),lineHeight:i["line-height"]||i.lineHeight},u=i["font-size"]||i.fontSize,d=JSON.stringify([e,l]);if(null==a||a!==d){u&&n.setAttribute("font-size",u);const i=l.textPath;if(null!=i&&"object"===typeof i){const e=i.selector;if("string"===typeof e){const n=t.find(e)[0];n instanceof SVGPathElement&&(c.ensureId(n),l.textPath=Object.assign({"xlink:href":`#${n.id}`},i))}}c.text(n,`${e}`,l),o.data(r,d)}}},KS={qualify:r.isPlainObject,set(e,{view:t,elem:n,attrs:i,refBBox:r}){const o=e,l=o.width||0;a.isPercentage(l)?r.width*=parseFloat(l)/100:l<=0?r.width+=l:r.width=l;const u=o.height||0;let d;a.isPercentage(u)?r.height*=parseFloat(u)/100:u<=0?r.height+=u:r.height=u;let h=o.text;null==h&&(h=i.text),d=null!=h?c.breakText(`${h}`,r,{"font-weight":i["font-weight"]||i.fontWeight,"font-size":i["font-size"]||i.fontSize,"font-family":i["font-family"]||i.fontFamily,lineHeight:i.lineHeight},{svgDocument:t.graph.view.svg,ellipsis:o.ellipsis,hyphen:o.hyphen,breakWord:o.breakWord}):"",s.call(qS.set,this,d,{view:t,elem:n,attrs:i,refBBox:r,cell:t.cell})}},QS=(e,{attrs:t})=>{return void 0!==t.text},XS={qualify:QS},ZS={qualify:QS},JS={qualify:QS},eE={qualify:QS},tE={qualify:QS},nE={qualify:QS},iE={qualify(e,{elem:t}){return t instanceof SVGElement},set(e,{view:t,elem:n}){const i="x6-title",r=`${e}`,o=t.$(n),a=o.data(i);if(null==a||a!==r){o.data(i,r);const e=n.firstChild;if(e&&"TITLE"===e.tagName.toUpperCase()){const t=e;t.textContent=r}else{const t=document.createElementNS(n.namespaceURI,"title");t.textContent=r,n.insertBefore(t,e)}}}},rE={offset:sE("x","width","right")},oE={offset:sE("y","height","bottom")},aE={offset(e,{refBBox:t}){return e?{x:-t.x,y:-t.y}:{x:0,y:0}}};function sE(e,t,n){return(i,{refBBox:r})=>{const o=new xy;let s;return s="middle"===i?r[t]/2:i===n?r[t]:"number"===typeof i&&Number.isFinite(i)?i>-1&&i<1?-r[t]*i:-i:a.isPercentage(i)?r[t]*parseFloat(i)/100:0,o[e]=-(r[e]+s),o}}const lE={qualify:r.isPlainObject,set(e,{view:t,elem:n}){t.$(n).css(e)}},cE={set(e,{view:t,elem:n}){t.$(n).html(`${e}`)}},uE={qualify:r.isPlainObject,set(e,{view:t}){return`url(#${t.graph.defineFilter(e)})`}},dE={set(e){return null!=e&&"object"===typeof e&&e.id?e.id:e}};function hE(e,t,n){let i,r;"object"===typeof t?(i=t.x,r=t.y):(i=t,r=n);const o=Ky.parse(e),a=o.bbox();if(a){let e=-a.height/2-a.y,t=-a.width/2-a.x;"number"===typeof i&&(t-=i),"number"===typeof r&&(e-=r),o.translate(t,e)}return o.serialize()}var pE=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{size:t,width:n,height:i,offset:r,open:o}=e,a=pE(e,["size","width","height","offset","open"]);return mE({size:t,width:n,height:i,offset:r},!0===o,!0,void 0,a)},gE=e=>{var{size:t,width:n,height:i,offset:r,factor:o}=e,a=pE(e,["size","width","height","offset","factor"]);return mE({size:t,width:n,height:i,offset:r},!1,!1,o,a)};function mE(e,t,n,i=.75,r={}){const o=e.size||10,s=e.width||o,l=e.height||o,c=new Ky,u={};if(t)c.moveTo(s,0).lineTo(0,l/2).lineTo(s,l),u.fill="none";else{if(c.moveTo(0,l/2),c.lineTo(s,0),!n){const e=a.clamp(i,0,1);c.lineTo(s*e,l/2)}c.lineTo(s,l),c.close()}return Object.assign(Object.assign(Object.assign({},u),r),{tagName:"path",d:hE(c.serialize(),{x:null!=e.offset?e.offset:-s/2})})}var vE=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{size:t,width:n,height:i,offset:r}=e,o=vE(e,["size","width","height","offset"]);const a=t||10,s=n||a,l=i||a,c=new Ky;return c.moveTo(0,l/2).lineTo(s/2,0).lineTo(s,l/2).lineTo(s/2,l).close(),Object.assign(Object.assign({},o),{tagName:"path",d:hE(c.serialize(),null==r?-s/2:r)})};var yE=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{d:t,offsetX:n,offsetY:i}=e,r=yE(e,["d","offsetX","offsetY"]);return Object.assign(Object.assign({},r),{tagName:"path",d:hE(t,n,i)})};var SE=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{size:t,width:n,height:i,offset:r}=e,o=SE(e,["size","width","height","offset"]);const a=t||10,s=n||a,l=i||a,c=new Ky;return c.moveTo(0,0).lineTo(s,l).moveTo(0,l).lineTo(s,0),Object.assign(Object.assign({},o),{tagName:"path",fill:"none",d:hE(c.serialize(),r||-s/2)})};var CE=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{width:t,height:n,offset:i,open:r,flip:o}=e,a=CE(e,["width","height","offset","open","flip"]);let s=n||6;const l=t||10,c=!0===r,u=!0===o,d=Object.assign(Object.assign({},a),{tagName:"path"});u&&(s=-s);const h=new Ky;return h.moveTo(0,s).lineTo(l,0),c?d.fill="none":(h.lineTo(l,s),h.close()),d.d=hE(h.serialize(),{x:i||-l/2,y:s/2}),d};var wE=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{r:t}=e,n=wE(e,["r"]);const i=t||5;return Object.assign(Object.assign({cx:i},n),{tagName:"circle",r:i})},AE=e=>{var{r:t}=e,n=wE(e,["r"]);const i=t||5,r=new Ky;return r.moveTo(i,0).lineTo(i,2*i),r.moveTo(0,i).lineTo(2*i,i),{children:[Object.assign(Object.assign({},TE({r:i})),{fill:"none"}),Object.assign(Object.assign({},n),{tagName:"path",d:hE(r.serialize(),-i)})]}};var OE=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{rx:t,ry:n}=e,i=OE(e,["rx","ry"]);const r=t||5,o=n||5;return Object.assign(Object.assign({cx:r},i),{tagName:"ellipse",rx:r,ry:o})};var NE;(function(e){e.presets=u,e.registry=gS.create({type:"marker"}),e.registry.register(e.presets,!0)})(NE||(NE={})),function(e){e.normalize=hE}(NE||(NE={}));var DE=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r1){const e=Math.ceil(i/2);n.refX="marker-start"===t?e:-e}}return n}const BE=(e,{view:t})=>{return t.cell.isEdge()},$E={qualify:BE,set(e,t){const n=t.view,i=e.stubs||0;let r;if(Number.isFinite(i)&&0!==i){let e;if(i<0){const t=n.getConnectionLength()||0;e=(t+i)/2}else e=i;const t=n.getConnection();if(t){const n=t.divideAtLength(e),i=t.divideAtLength(-e);n&&i&&(r=`${n[0].serialize()} ${i[1].serialize()}`)}}return{d:r||n.getConnectionPathData()}}},VE={qualify:BE,set:WE("getTangentAtLength",{rotate:!0})},GE={qualify:BE,set:WE("getTangentAtLength",{rotate:!1})},UE={qualify:BE,set:WE("getTangentAtRatio",{rotate:!0})},zE={qualify:BE,set:WE("getTangentAtRatio",{rotate:!1})},jE=VE,HE=UE;function WE(e,t){const n={x:1,y:0};return(i,r)=>{let o,a;const s=r.view,l=s[e](Number(i));return l?(a=t.rotate?l.vector().vectorAngle(n):0,o=l.start):(o=s.path.start,a=0),0===a?{transform:`translate(${o.x},${o.y}')`}:{transform:`translate(${o.x},${o.y}') rotate(${a})`}}}var YE;(function(e){function t(e,t,n){if(null!=e){if("string"===typeof e)return!0;if("function"!==typeof e.qualify||s.call(e.qualify,this,t,n))return!0}return!1}e.isValidDefinition=t})(YE||(YE={})),function(e){e.presets=Object.assign(Object.assign({},mS),d),e.registry=gS.create({type:"attribute definition"}),e.registry.register(e.presets,!0)}(YE||(YE={}));const qE={color:"#aaaaaa",thickness:1,markup:"rect",update(e,t){const n=t.thickness*t.sx,i=t.thickness*t.sy;c.attr(e,{width:n,height:i,rx:n,ry:i,fill:t.color})}},KE={color:"#aaaaaa",thickness:1,markup:"rect",update(e,t){const n=t.sx<=1?t.thickness*t.sx:t.thickness;c.attr(e,{width:n,height:n,rx:n,ry:n,fill:t.color})}},QE={color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(e,t){let n;const i=t.width,r=t.height,o=t.thickness;n=i-o>=0&&r-o>=0?["M",i,0,"H0 M0 0 V0",r].join(" "):"M 0 0 0 0",c.attr(e,{d:n,stroke:t.color,"stroke-width":t.thickness})}},XE=[{color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(e,t){let n;const i=t.width,r=t.height,o=t.thickness;n=i-o>=0&&r-o>=0?["M",i,0,"H0 M0 0 V0",r].join(" "):"M 0 0 0 0",c.attr(e,{d:n,stroke:t.color,"stroke-width":t.thickness})}},{color:"rgba(224,224,224,0.2)",thickness:3,factor:4,markup:"path",update(e,t){let n;const i=t.factor||1,r=t.width*i,o=t.height*i,a=t.thickness;n=r-a>=0&&o-a>=0?["M",r,0,"H0 M0 0 V0",o].join(" "):"M 0 0 0 0",t.width=r,t.height=o,c.attr(e,{d:n,stroke:t.color,"stroke-width":t.thickness})}}];class ZE{constructor(){this.patterns={},this.root=Qy.create(c.createSvgDocument(),{width:"100%",height:"100%"},[c.createSvgElement("defs")]).node}add(e,t){const n=this.root.childNodes[0];n&&n.appendChild(t),this.patterns[e]=t,Qy.create("rect",{width:"100%",height:"100%",fill:`url(#${e})`}).appendTo(this.root)}get(e){return this.patterns[e]}has(e){return null!=this.patterns[e]}}function JE(e,t){return null!=e?e:t}function eC(e,t){return null!=e&&Number.isFinite(e)?e:t}function tC(e={}){const t=JE(e.color,"blue"),n=eC(e.width,1),i=eC(e.margin,2),r=eC(e.opacity,1),o=i,a=i+n;return`\n \n \n \n \n \n \n \n \n \n \n \n `.trim()}function nC(e={}){const t=JE(e.color,"red"),n=eC(e.blur,0),i=eC(e.width,1),r=eC(e.opacity,1);return`\n \n \n \n \n \n \n \n `.trim()}function iC(e={}){const t=eC(e.x,2),n=null!=e.y&&Number.isFinite(e.y)?[t,e.y]:t;return`\n \n \n \n `.trim()}function rC(e={}){const t=eC(e.dx,0),n=eC(e.dy,0),i=JE(e.color,"black"),r=eC(e.blur,4),o=eC(e.opacity,1);return"SVGFEDropShadowElement"in window?`\n \n `.trim():`\n \n \n \n \n \n \n \n \n \n \n \n `.trim()}function oC(e={}){const t=eC(e.amount,1),n=.2126+.7874*(1-t),i=.7152-.7152*(1-t),r=.0722-.0722*(1-t),o=.2126-.2126*(1-t),a=.7152+.2848*(1-t),s=.0722-.0722*(1-t),l=.2126-.2126*(1-t),c=.0722+.9278*(1-t);return`\n \n \n \n `.trim()}function aC(e={}){const t=eC(e.amount,1),n=.393+.607*(1-t),i=.769-.769*(1-t),r=.189-.189*(1-t),o=.349-.349*(1-t),a=.686+.314*(1-t),s=.168-.168*(1-t),l=.272-.272*(1-t),c=.534-.534*(1-t),u=.131+.869*(1-t);return`\n \n \n \n `.trim()}function sC(e={}){const t=eC(e.amount,1);return`\n \n \n \n `.trim()}function lC(e={}){const t=eC(e.angle,0);return`\n \n \n \n `.trim()}function cC(e={}){const t=eC(e.amount,1),n=1-t;return`\n \n \n \n \n \n \n \n `.trim()}function uC(e={}){const t=eC(e.amount,1);return`\n \n \n \n \n \n \n \n `.trim()}function dC(e={}){const t=eC(e.amount,1),n=.5-t/2;return`\n \n \n \n \n \n \n \n `.trim()}var hC;(function(e){e.presets=h,e.registry=gS.create({type:"grid"}),e.registry.register(e.presets,!0)})(ZE||(ZE={})),function(e){e.presets=p,e.registry=gS.create({type:"filter"}),e.registry.register(e.presets,!0)}(hC||(hC={}));const pC=function(e){const t=document.createElement("canvas"),n=e.width,i=e.height;t.width=2*n,t.height=i;const r=t.getContext("2d");return r.drawImage(e,0,0,n,i),r.translate(2*n,0),r.scale(-1,1),r.drawImage(e,0,0,n,i),t},fC=function(e){const t=document.createElement("canvas"),n=e.width,i=e.height;t.width=n,t.height=2*i;const r=t.getContext("2d");return r.drawImage(e,0,0,n,i),r.translate(0,2*i),r.scale(1,-1),r.drawImage(e,0,0,n,i),t},gC=function(e){const t=document.createElement("canvas"),n=e.width,i=e.height;t.width=2*n,t.height=2*i;const r=t.getContext("2d");return r.drawImage(e,0,0,n,i),r.setTransform(-1,0,0,-1,t.width,t.height),r.drawImage(e,0,0,n,i),r.setTransform(-1,0,0,1,t.width,0),r.drawImage(e,0,0,n,i),r.setTransform(1,0,0,-1,0,t.height),r.drawImage(e,0,0,n,i),t},mC=function(e,t){const n=e.width,i=e.height,r=document.createElement("canvas");r.width=3*n,r.height=3*i;const o=r.getContext("2d"),a=null!=t.angle?-t.angle:-20,s=my.toRad(a),l=r.width/4,c=r.height/4;for(let u=0;u<4;u+=1)for(let t=0;t<4;t+=1)(u+t)%2>0&&(o.setTransform(1,0,0,1,(2*u-1)*l,(2*t-1)*c),o.rotate(s),o.drawImage(e,-n/2,-i/2,n,i));return r};var vC;(function(e){e.presets=Object.assign({},f),e.presets["flip-x"]=pC,e.presets["flip-y"]=fC,e.presets["flip-xy"]=gC,e.registry=gS.create({type:"background pattern"}),e.registry.register(e.presets,!0)})(vC||(vC={}));const _C={prefixCls:"x6",autoInsertCSS:!0,useCSSSelector:!0,trackable:!1,trackInfo:{},track(e){_C.trackable=e}};var yC;(function(e){function t(e){return`${_C.prefixCls}-${e}`}e.snapToGrid=by,e.normalizeMarker=hE,e.prefix=t})(yC||(yC={})),function(e){function t(e,t,n,i=[]){const r="function"===typeof t.children?t.children(e):e[t.children||"children"];return n||(n=t.createNode(e),i.push(n)),Array.isArray(r)&&r.forEach(e=>{const r=t.createNode(e),o=t.createEdge(n,r);i.push(r,o),this.makeTree(e,t,r,i)}),i}e.makeTree=t}(yC||(yC={}));const bC="1.25.0",SC=yC.prefix("highlighted"),EC={highlight(e,t,n){const i=n&&n.className||SC;c.addClass(t,i)},unhighlight(e,t,n){const i=n&&n.className||SC;c.removeClass(t,i)}},CC=yC.prefix("highlight-opacity"),xC={highlight(e,t){c.addClass(t,CC)},unhighlight(e,t){c.removeClass(t,CC)}},wC={padding:3,rx:0,ry:0,attrs:{"stroke-width":3,stroke:"#FEB663"}},TC={highlight(e,t,n){const i=AC.getHighlighterId(t,n);if(AC.hasCache(i))return;n=r.defaultsDeep({},n,wC);const o=Qy.create(t);let a,s;try{a=o.toPathData()}catch(h){s=o.bbox(!0),a=c.rectToPathData(Object.assign(Object.assign({},n),s))}const l=c.createSvgElement("path");if(c.attr(l,Object.assign({d:a,"pointer-events":"none","vector-effect":"non-scaling-stroke",fill:"none"},n.attrs?c.kebablizeAttrs(n.attrs):null)),e.isEdgeElement(t))c.attr(l,"d",e.getConnectionPathData());else{let t=o.getTransformToElement(e.container);const i=n.padding;if(i){null==s&&(s=o.bbox(!0));const e=s.x+s.width/2,n=s.y+s.height/2;s=c.transformRectangle(s,t);const r=Math.max(s.width,1),a=Math.max(s.height,1),l=(r+i)/r,u=(a+i)/a,d=c.createSVGMatrix({a:l,b:0,c:0,d:u,e:e-l*e,f:n-u*n});t=t.multiply(d)}c.transform(l,t)}c.addClass(l,yC.prefix("highlight-stroke"));const u=e.cell,d=()=>AC.removeHighlighter(i);u.on("removed",d),u.model&&u.model.on("reseted",d),e.container.appendChild(l),AC.setCache(i,l)},unhighlight(e,t,n){AC.removeHighlighter(AC.getHighlighterId(t,n))}};var AC,OC;function RC(e,t={}){return new xy(a.normalizePercentage(t.x,e.width),a.normalizePercentage(t.y,e.height))}function NC(e,t,n){return Object.assign({angle:t,position:e.toJSON()},n)}(function(e){function t(e,t){return c.ensureId(e),e.id+JSON.stringify(t)}e.getHighlighterId=t;const n={};function i(e,t){n[e]=t}function r(e){return null!=n[e]}function o(e){const t=n[e];t&&(c.remove(t),delete n[e])}e.setCache=i,e.hasCache=r,e.removeHighlighter=o})(AC||(AC={})),function(e){function t(e,t){if("function"!==typeof t.highlight)throw new Error(`Highlighter '${e}' is missing required \`highlight()\` method`);if("function"!==typeof t.unhighlight)throw new Error(`Highlighter '${e}' is missing required \`unhighlight()\` method`)}e.check=t}(OC||(OC={})),function(e){e.presets=g,e.registry=gS.create({type:"highlighter"}),e.registry.register(e.presets,!0)}(OC||(OC={}));const DC=(e,t)=>{return e.map(({x:e,y:n,angle:i})=>NC(RC(t,{x:e,y:n}),i||0))},IC=(e,t,n)=>{const i=n.start||0,r=n.step||20;return kC(e,t,i,(e,t)=>(e+.5-t/2)*r)},MC=(e,t,n)=>{const i=n.start||0,r=n.step||360/e.length;return kC(e,t,i,e=>{return e*r})};function kC(e,t,n,i){const r=t.getCenter(),o=t.getTopCenter(),a=t.width/t.height,s=Ay.fromRect(t),l=e.length;return e.map((e,t)=>{const c=n+i(t,l),u=o.clone().rotate(-c,r).scale(a,1,r),d=e.compensateRotate?-s.tangentTheta(u):0;return(e.dx||e.dy)&&u.translate(e.dx||0,e.dy||0),e.dr&&u.move(r,e.dr),NC(u.round(),d,e)})}var LC=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const i=RC(t,n.start||t.getOrigin()),r=RC(t,n.end||t.getCorner());return GC(e,i,r,n)},FC=(e,t,n)=>{return GC(e,t.getTopLeft(),t.getBottomLeft(),n)},BC=(e,t,n)=>{return GC(e,t.getTopRight(),t.getBottomRight(),n)},$C=(e,t,n)=>{return GC(e,t.getTopLeft(),t.getTopRight(),n)},VC=(e,t,n)=>{return GC(e,t.getBottomLeft(),t.getBottomRight(),n)};function GC(e,t,n,i){const r=new Ty(t,n),o=e.length;return e.map((e,t)=>{var{strict:n}=e,a=LC(e,["strict"]);const s=n||i.strict?(t+1)/(o+1):(t+.5)/o,l=r.pointAt(s);return(a.dx||a.dy)&&l.translate(a.dx||0,a.dy||0),NC(l.round(),0,a)})}var UC;(function(e){e.presets=m,e.registry=gS.create({type:"port layout"}),e.registry.register(e.presets,!0)})(UC||(UC={}));const zC={position:{x:0,y:0},angle:0,attrs:{".":{y:"0","text-anchor":"start"}}};function jC(e,t){const{x:n,y:i,angle:o,attrs:a}=t||{};return r.defaultsDeep({},{angle:o,attrs:a,position:{x:n,y:i}},e,zC)}const HC=(e,t,n)=>jC({position:t.getTopLeft()},n),WC=(e,t,n)=>jC({position:{x:-15,y:0},attrs:{".":{y:".3em","text-anchor":"end"}}},n),YC=(e,t,n)=>jC({position:{x:15,y:0},attrs:{".":{y:".3em","text-anchor":"start"}}},n),qC=(e,t,n)=>jC({position:{x:0,y:-15},attrs:{".":{"text-anchor":"middle"}}},n),KC=(e,t,n)=>jC({position:{x:0,y:15},attrs:{".":{y:".6em","text-anchor":"middle"}}},n),QC=(e,t,n)=>ex(e,t,!1,n),XC=(e,t,n)=>ex(e,t,!0,n),ZC=(e,t,n)=>tx(e,t,!1,n),JC=(e,t,n)=>tx(e,t,!0,n);function ex(e,t,n,i){const r=null!=i.offset?i.offset:15,o=t.getCenter().theta(e),a=nx(t);let s,l,c,u,d=0;return oa[2]?(s=".3em",l=r,c=0,u="start"):oa[2]?(s=".3em",l=-r,c=0,u="end"):oox(e.diff(t.getCenter()),!1,n),rx=(e,t,n)=>ox(e.diff(t.getCenter()),!0,n);function ox(e,t,n){const i=null!=n.offset?n.offset:20,r=new xy(0,0),o=-e.theta(r),a=e.clone().move(r,i).diff(e).round();let s,l=".3em",c=o;return(o+90)%180===0?(s=t?"end":"middle",t||-270!==o||(l="0em")):o>-270&&o<-90?(s="start",c=o-180):s="end",jC({position:a.round().toJSON(),angle:t?c:0,attrs:{".":{y:l,"text-anchor":s}}},n)}var ax,sx;(function(e){e.presets=v,e.registry=gS.create({type:"port label layout"}),e.registry.register(e.presets,!0)})(ax||(ax={}));class lx{constructor(e,t,n,i){return null==e?this.set(255,255,255,1):"number"===typeof e?this.set(e,t,n,i):"string"===typeof e?lx.fromString(e)||this:Array.isArray(e)?this.set(e):void this.set(e.r,e.g,e.b,null==e.a?1:e.a)}blend(e,t,n){this.set(e.r+(t.r-e.r)*n,e.g+(t.g-e.g)*n,e.b+(t.b-e.b)*n,e.a+(t.a-e.a)*n)}lighten(e){const t=lx.lighten(this.toArray(),e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}darken(e){this.lighten(-e)}set(e,t,n,i){const r=Array.isArray(e)?e[0]:e,o=Array.isArray(e)?e[1]:t,s=Array.isArray(e)?e[2]:n,l=Array.isArray(e)?e[3]:i;return this.r=Math.round(a.clamp(r,0,255)),this.g=Math.round(a.clamp(o,0,255)),this.b=Math.round(a.clamp(s,0,255)),this.a=null==l?1:a.clamp(l,0,1),this}toHex(){const e=["r","g","b"].map(e=>{const t=this[e].toString(16);return t.length<2?`0${t}`:t});return`#${e.join("")}`}toRGBA(){return this.toArray()}toHSLA(){return lx.rgba2hsla(this.r,this.g,this.b,this.a)}toCSS(e){const t=`${this.r},${this.g},${this.b},`;return e?`rgb(${t})`:`rgba(${t},${this.a})`}toGrey(){return lx.makeGrey(Math.round((this.r+this.g+this.b)/3),this.a)}toArray(){return[this.r,this.g,this.b,this.a]}toString(){return this.toCSS()}}(function(e){function t(t){return new e(t)}function n(t){return new e([...g(t),1])}function i(t){const n=t.toLowerCase().match(/^rgba?\(([\s.,0-9]+)\)/);if(n){const t=n[1].split(/\s*,\s*/).map(e=>parseInt(e,10));return new e(t)}return null}function r(e,t,n){n<0&&++n,n>1&&--n;const i=6*n;return i<1?e+(t-e)*i:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function o(t){const n=t.toLowerCase().match(/^hsla?\(([\s.,0-9]+)\)/);if(n){const t=n[2].split(/\s*,\s*/),i=(parseFloat(t[0])%360+360)%360/360,r=parseFloat(t[1])/100,o=parseFloat(t[2])/100,a=null==t[3]?1:parseInt(t[3],10);return new e(u(i,r,o,a))}return null}function s(t){if(t.startsWith("#"))return n(t);if(t.startsWith("rgb"))return i(t);const r=e.named[t];return r?n(r):o(t)}function l(t,n){return e.fromArray([t,t,t,n])}function c(e,t,n,i){const r=Array.isArray(e)?e[0]:e,o=Array.isArray(e)?e[1]:t,a=Array.isArray(e)?e[2]:n,s=Array.isArray(e)?e[3]:i,l=Math.max(r,o,a),c=Math.min(r,o,a),u=(l+c)/2;let d=0,h=0;if(c!==l){const e=l-c;switch(h=u>.5?e/(2-l-c):e/(l+c),l){case r:d=(o-a)/e+(o186?"#000000":"#ffffff":`${n?"#":""}${m(255-i,255-r,255-o)}`}const n=e[0],i=e[1],r=e[2],o=e[3];return t?.299*n+.587*i+.114*r>186?[0,0,0,o]:[255,255,255,o]:[255-n,255-i,255-r,o]}function g(e){const t=0===e.indexOf("#")?e:`#${e}`;let n=Number(`0x${t.substr(1)}`);if(4!==t.length&&7!==t.length||Number.isNaN(n))throw new Error("Invalid hex color.");const i=4===t.length?4:8,r=(1<{const e=n&r;return n>>=i,4===i?17*e:e});return[o[2],o[1],o[0]]}function m(e,t,n){const i=e=>e.length<2?`0${e}`:e;return`${i(e.toString(16))}${i(t.toString(16))}${i(n.toString(16))}`}function v(e,t){return y(e,t)}function _(e,t){return y(e,-t)}function y(e,t){if("string"===typeof e){const n="#"===e[0],i=parseInt(n?e.substr(1):e,16),r=a.clamp((i>>16)+t,0,255),o=a.clamp((i>>8&255)+t,0,255),s=a.clamp((255&i)+t,0,255);return`${n?"#":""}${(s|o<<8|r<<16).toString(16)}`}const n=m(e[0],e[1],e[2]),i=g(y(n,t));return[i[0],i[1],i[2],e[3]]}e.fromArray=t,e.fromHex=n,e.fromRGBA=i,e.fromHSLA=o,e.fromString=s,e.makeGrey=l,e.rgba2hsla=c,e.hsla2rgba=u,e.random=d,e.randomHex=h,e.randomRGBA=p,e.invert=f,e.lighten=v,e.darken=_})(lx||(lx={})),function(e){e.named={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",burntsienna:"#ea7e5d",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}}(lx||(lx={}));class cx{constructor(){this.listeners={}}on(e,t,n){if(null==t)return this;this.listeners[e]||(this.listeners[e]=[]);const i=this.listeners[e];return i.push(t,n),this}once(e,t,n){const i=(...r)=>{return this.off(e,i),sx.call([t,n],r)};return this.on(e,i,this)}off(e,t,n){if(!(e||t||n))return this.listeners={},this;const i=this.listeners,r=e?[e]:Object.keys(i);return r.forEach(e=>{const r=i[e];if(r)if(t||n)for(let i=r.length-2;i>=0;i-=2)t&&r[i]!==t||n&&r[i+1]!==n||r.splice(i,2);else delete i[e]}),this}trigger(e,...t){let n=!0;if("*"!==e){const i=this.listeners[e];null!=i&&(n=sx.call([...i],t))}const i=this.listeners["*"];return null!=i?s.toAsyncBoolean([n,sx.call([...i],[e,...t])]):n}emit(e,...t){return this.trigger(e,...t)}}(function(e){function t(e,t){const n=[];for(let i=0;i{const i=n.value,r=e.__proto__;n.value=function(){this.disposed||(i.call(this),r.dispose.call(this))}}}e.dispose=t})(ux||(ux={}));class dx{constructor(){this.isDisposed=!1,this.items=new Set}get disposed(){return this.isDisposed}dispose(){this.isDisposed||(this.isDisposed=!0,this.items.forEach(e=>{e.dispose()}),this.items.clear())}contains(e){return this.items.has(e)}add(e){this.items.add(e)}remove(e){this.items.delete(e)}clear(){this.items.clear()}}(function(e){function t(t){const n=new e;return t.forEach(e=>{n.add(e)}),n}e.from=t})(dx||(dx={}));class hx extends cx{}(function(e){e.dispose=ux.dispose})(hx||(hx={})),r.applyMixins(hx,ux);class px extends hx{get disabled(){return!0===this._disabled}enable(){delete this._disabled}disable(){this._disabled=!0}}var fx,gx,mx,vx,_x,yx=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class bx extends ux{constructor(){super(),this.clear()}clear(){this.map=new WeakMap,this.arr=[]}has(e){return this.map.has(e)}get(e){return this.map.get(e)}set(e,t){this.map.set(e,t),this.arr.push(e)}delete(e){const t=this.arr.indexOf(e);t>=0&&this.arr.splice(t,1);const n=this.map.get(e);return this.map.delete(e),n}each(e){this.arr.forEach(t=>{const n=this.map.get(t);e(n,t)})}dispose(){this.clear()}}yx([ux.dispose()],bx.prototype,"dispose",null);class Sx{constructor(e={}){this.comparator=e.comparator||Sx.defaultComparator,this.index={},this.data=e.data||[],this.heapify()}isEmpty(){return 0===this.data.length}insert(e,t,n){const i={priority:e,value:t},r=this.data.length-1;return n&&(i.id=n,this.index[n]=r),this.data.push(i),this.bubbleUp(r),this}peek(){return this.data[0]?this.data[0].value:null}peekPriority(){return this.data[0]?this.data[0].priority:null}updatePriority(e,t){const n=this.index[e];if("undefined"===typeof n)throw new Error(`Node with id '${e}' was not found in the heap.`);const i=this.data,r=i[n].priority,o=this.comparator(t,r);o<0?(i[n].priority=t,this.bubbleUp(n)):o>0&&(i[n].priority=t,this.bubbleDown(n))}remove(){const e=this.data,t=e[0],n=e.pop();return delete this.index[e.length],e.length>0&&(e[0]=n,n.id&&(this.index[n.id]=0),this.bubbleDown(0)),t?t.value:null}heapify(){for(let e=0;e0){if(i=r-1>>>1,!(this.comparator(t[r].priority,t[i].priority)<0))break;{n=t[i],t[i]=t[r];let e=t[r].id;null!=e&&(this.index[e]=i),t[r]=n,e=t[r].id,null!=e&&(this.index[e]=r),r=i}}}bubbleDown(e){const t=this.data,n=t.length-1;let i=e;while(1){const e=1+(i<<1),r=e+1;let o=i;if(e<=n&&this.comparator(t[e].priority,t[o].priority)<0&&(o=e),r<=n&&this.comparator(t[r].priority,t[o].priority)<0&&(o=r),o===i)break;{const e=t[o];t[o]=t[i];let n=t[i].id;null!=n&&(this.index[n]=o),t[i]=e,n=t[i].id,null!=n&&(this.index[n]=i),i=o}}}}(function(e){e.defaultComparator=(e,t)=>e-t})(Sx||(Sx={})),function(e){function t(e,t,n=((e,t)=>1)){const i={},r={},o={},a=new Sx;i[t]=0,Object.keys(e).forEach(e=>{e!==t&&(i[e]=1/0),a.insert(i[e],e,e)});while(!a.isEmpty()){const t=a.remove();o[t]=!0;const s=e[t]||[];for(let e=0;ee,e.quad=e=>e*e,e.cubic=e=>e*e*e,e.inout=e=>{if(e<=0)return 0;if(e>=1)return 1;const t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)},e.exponential=e=>{return Math.pow(2,10*(e-1))},e.bounce=e=>{for(let t=0,n=1;1;t+=n,n/=2)if(e>=(7-4*t)/11){const i=(11-6*t-11*e)/4;return-i*i+n*n}}}(gx||(gx={})),function(e){e.decorators={reverse(e){return t=>1-e(1-t)},reflect(e){return t=>.5*(t<.5?e(2*t):2-e(2-2*t))},clamp(e,t=0,n=1){return i=>{const r=e(i);return rn?n:r}},back(e=1.70158){return t=>t*t*((e+1)*t-e)},elastic(e=1.5){return t=>Math.pow(2,10*(t-1))*Math.cos(20*Math.PI*e/3*t)}}}(gx||(gx={})),function(e){function t(e){return-1*Math.cos(e*(Math.PI/2))+1}function n(e){return Math.sin(e*(Math.PI/2))}function i(e){return-.5*(Math.cos(Math.PI*e)-1)}function r(e){return e*e}function o(e){return e*(2-e)}function a(e){return e<.5?2*e*e:(4-2*e)*e-1}function s(e){return e*e*e}function l(e){const t=e-1;return t*t*t+1}function c(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1}function u(e){return e*e*e*e}function d(e){const t=e-1;return 1-t*t*t*t}function h(e){const t=e-1;return e<.5?8*e*e*e*e:1-8*t*t*t*t}function p(e){return e*e*e*e*e}function f(e){const t=e-1;return 1+t*t*t*t*t}function g(e){const t=e-1;return e<.5?16*e*e*e*e*e:1+16*t*t*t*t*t}function m(e){return 0===e?0:Math.pow(2,10*(e-1))}function v(e){return 1===e?1:1-Math.pow(2,-10*e)}function _(e){if(0===e||1===e)return e;const t=2*e,n=t-1;return t<1?.5*Math.pow(2,10*n):.5*(2-Math.pow(2,-10*n))}function y(e){const t=e/1;return-1*(Math.sqrt(1-t*e)-1)}function b(e){const t=e-1;return Math.sqrt(1-t*t)}function S(e){const t=2*e,n=t-2;return t<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-n*n)+1)}function E(e,t=1.70158){return e*e*((t+1)*e-t)}function C(e,t=1.70158){const n=e/1-1;return n*n*((t+1)*n+t)+1}function x(e,t=1.70158){const n=2*e,i=n-2,r=1.525*t;return n<1?.5*n*n*((r+1)*n-r):.5*(i*i*((r+1)*i+r)+2)}function w(e,t=.7){if(0===e||1===e)return e;const n=e/1,i=n-1,r=1-t,o=r/(2*Math.PI)*Math.asin(1);return-Math.pow(2,10*i)*Math.sin((i-o)*(2*Math.PI)/r)}function T(e,t=.7){const n=1-t,i=2*e;if(0===e||1===e)return e;const r=n/(2*Math.PI)*Math.asin(1);return Math.pow(2,-10*i)*Math.sin((i-r)*(2*Math.PI)/n)+1}function A(e,t=.65){const n=1-t;if(0===e||1===e)return e;const i=2*e,r=i-1,o=n/(2*Math.PI)*Math.asin(1);return i<1?Math.pow(2,10*r)*Math.sin((r-o)*(2*Math.PI)/n)*-.5:Math.pow(2,-10*r)*Math.sin((r-o)*(2*Math.PI)/n)*.5+1}function O(e){const t=e/1;if(t<1/2.75)return 7.5625*t*t;if(t<2/2.75){const e=t-1.5/2.75;return 7.5625*e*e+.75}if(t<2.5/2.75){const e=t-2.25/2.75;return 7.5625*e*e+.9375}{const e=t-2.625/2.75;return 7.5625*e*e+.984375}}function R(e){return 1-O(1-e)}function N(e){return e<.5?.5*R(2*e):.5*O(2*e-1)+.5}e.easeInSine=t,e.easeOutSine=n,e.easeInOutSine=i,e.easeInQuad=r,e.easeOutQuad=o,e.easeInOutQuad=a,e.easeInCubic=s,e.easeOutCubic=l,e.easeInOutCubic=c,e.easeInQuart=u,e.easeOutQuart=d,e.easeInOutQuart=h,e.easeInQuint=p,e.easeOutQuint=f,e.easeInOutQuint=g,e.easeInExpo=m,e.easeOutExpo=v,e.easeInOutExpo=_,e.easeInCirc=y,e.easeOutCirc=b,e.easeInOutCirc=S,e.easeInBack=E,e.easeOutBack=C,e.easeInOutBack=x,e.easeInElastic=w,e.easeOutElastic=T,e.easeInOutElastic=A,e.easeOutBounce=O,e.easeInBounce=R,e.easeInOutBounce=N}(gx||(gx={})),function(e){e.number=(e,t)=>{const n=t-e;return t=>{return e+n*t}},e.object=(e,t)=>{const n=Object.keys(e);return i=>{const r={};for(let o=n.length-1;-1!==o;o-=1){const a=n[o];r[a]=e[a]+(t[a]-e[a])*i}return r}},e.unit=(e,t)=>{const n=/(-?[0-9]*.[0-9]*)(px|em|cm|mm|in|pt|pc|%)/,i=n.exec(e),r=n.exec(t),o=r?r[1]:"",a=i?+i[1]:0,s=r?+r[1]:0,l=o.indexOf("."),c=l>0?o[1].length-l-1:0,u=s-a,d=i?i[2]:"";return e=>{return(a+u*e).toFixed(c)+d}},e.color=(e,t)=>{const n=parseInt(e.slice(1),16),i=parseInt(t.slice(1),16),r=255&n,o=(255&i)-r,a=65280&n,s=(65280&i)-a,l=16711680&n,c=(16711680&i)-l;return e=>{const t=r+o*e&255,n=a+s*e&65280,i=l+c*e&16711680;return`#${(1<<24|t|n|i).toString(16).slice(1)}`}}}(mx||(mx={})),function(e){const t=`${_C.prefixCls}.storage`;function n(e,t,n){const i=t.id||o.uniqueId("doc-"),r=u(e);r.keys.push(i),l(d(e,i),t),l(h(e),r),a(n,null,Object.assign(Object.assign({},t),{id:i}))}function i(e,t,n){const i=u(e),r=[];if(null==t)i.keys.forEach(t=>{const i=c(d(e,t));i?r.push(i):a(n,new Error(`No document found for an ID '${t}' from index.`))}),a(n,null,r);else if(t.id){const i=c(d(e,t.id));a(n,null,i?[i]:[])}else a(n,null,[])}function r(e,t,n){const i=u(e);if(null==t)i.keys.forEach(t=>{localStorage.removeItem(d(e,t))}),localStorage.removeItem(h(e)),a(n,null);else if(t.id){const r=i.keys.indexOf(t.id);r>=0&&i.keys.splice(r,1),localStorage.removeItem(d(e,t.id)),l(h(e),i),a(n,null)}}function a(e,t,n){e&&s.defer(()=>{e(t,n)})}function l(e,t){localStorage.setItem(e,JSON.stringify(t))}function c(e){const t=localStorage.getItem(e);return t?JSON.parse(t):null}function u(e){const t=c(h(e));return t?(null==t.keys&&(t.keys=[]),t):{keys:[]}}function d(e,n){return`${t}.${e}.docs.${n}`}function h(e){return`${t}.${e}.index`}e.insert=n,e.find=i,e.remove=r}(vx||(vx={}));class Ex extends hx{constructor(){super(),this.cid=_x.uniqueId(),Ex.views[this.cid]=this}get priority(){return 2}confirmUpdate(e,t){return 0}$(e){return Ex.$(e)}empty(e=this.container){return this.$(e).empty(),this}unmount(e=this.container){return this.$(e).remove(),this}remove(e=this.container){return e===this.container&&(this.removeEventListeners(document),this.onRemove(),delete Ex.views[this.cid]),this.unmount(e),this}onRemove(){}setClass(e,t=this.container){t.classList.value=Array.isArray(e)?e.join(" "):e}addClass(e,t=this.container){return this.$(t).addClass(Array.isArray(e)?e.join(" "):e),this}removeClass(e,t=this.container){return this.$(t).removeClass(Array.isArray(e)?e.join(" "):e),this}setStyle(e,t=this.container){return this.$(t).css(e),this}setAttrs(e,t=this.container){return null!=e&&null!=t&&(t instanceof SVGElement?c.attr(t,e):this.$(t).attr(e)),this}findAttr(e,t=this.container){let n=t;while(n&&1===n.nodeType){const t=n.getAttribute(e);if(null!=t)return t;if(n===this.container)return null;n=n.parentNode}return null}find(e,t=this.container,n=this.selectors){return Ex.find(e,t,n).elems}findOne(e,t=this.container,n=this.selectors){const i=this.find(e,t,n);return i.length>0?i[0]:null}findByAttr(e,t=this.container){let n=t;while(n&&n.getAttribute){const t=n.getAttribute(e);if((null!=t||n===this.container)&&"false"!==t)return n;n=n.parentNode}return null}getSelector(e,t){let n;if(e===this.container)return"string"===typeof t&&(n=`> ${t}`),n;if(e){const i=c.index(e)+1;n=`${e.tagName.toLowerCase()}:nth-child(${i})`,t&&(n+=` > ${t}`),n=this.getSelector(e.parentNode,n)}return n}prefixClassName(e){return yC.prefix(e)}delegateEvents(e,t){if(null==e)return this;t||this.undelegateEvents();const n=/^(\S+)\s*(.*)$/;return Object.keys(e).forEach(t=>{const i=t.match(n);if(null==i)return;const r=this.getEventHandler(e[t]);"function"===typeof r&&this.delegateEvent(i[1],i[2],r)}),this}undelegateEvents(){return this.$(this.container).off(this.getEventNamespace()),this}delegateDocumentEvents(e,t){return this.addEventListeners(document,e,t),this}undelegateDocumentEvents(){return this.removeEventListeners(document),this}delegateEvent(e,t,n){return this.$(this.container).on(e+this.getEventNamespace(),t,n),this}undelegateEvent(e,t,n){const i=e+this.getEventNamespace();return null==t?this.$(this.container).off(i):"string"===typeof t?this.$(this.container).off(i,t,n):this.$(this.container).off(i,t),this}addEventListeners(e,t,n){if(null==t)return this;const i=this.getEventNamespace(),r=this.$(e);return Object.keys(t).forEach(e=>{const o=this.getEventHandler(t[e]);"function"===typeof o&&r.on(e+i,n,o)}),this}removeEventListeners(e){return null!=e&&this.$(e).off(this.getEventNamespace()),this}getEventNamespace(){return`.${_C.prefixCls}-event-${this.cid}`}getEventHandler(e){let t;if("string"===typeof e){const n=this[e];"function"===typeof n&&(t=(...e)=>n.call(this,...e))}else t=(...t)=>e.call(this,...t);return t}getEventTarget(e,t={}){const{target:n,type:i,clientX:r=0,clientY:o=0}=e;return t.fromPoint||"touchmove"===i||"touchend"===i?document.elementFromPoint(r,o):n}stopPropagation(e){return this.setEventData(e,{propagationStopped:!0}),this}isPropagationStopped(e){return!0===this.getEventData(e).propagationStopped}getEventData(e){return this.eventData(e)}setEventData(e,t){return this.eventData(e,t)}eventData(e,t){if(null==e)throw new TypeError("Event object required");let n=e.data;const i=`__${this.cid}__`;return null==t?null==n?{}:n[i]||{}:(null==n&&(n=e.data={}),null==n[i]?n[i]=Object.assign({},t):n[i]=Object.assign(Object.assign({},n[i]),t),n[i])}normalizeEvent(e){return Ex.normalizeEvent(e)}}(function(e){function t(e){return T()(e)}function n(e,t){return t?c.createSvgElement(e||"g"):c.createElementNS(e||"div")}function i(e,n,i){if(!e||"."===e)return{elems:[n]};if(i){const t=i[e];if(t)return{elems:Array.isArray(t)?t:[t]}}return _C.useCSSSelector?{isCSSSelector:!0,elems:t(n).find(e).toArray()}:{elems:[]}}function r(e){let t=e;const n=e.originalEvent,i=n&&n.changedTouches&&n.changedTouches[0];if(i){for(const t in e)void 0===i[t]&&(i[t]=e[t]);t=i}const r=t.target;if(r){const e=r.correspondingUseElement;e&&(t.target=e)}return t}e.$=t,e.createElement=n,e.find=i,e.normalizeEvent=r})(Ex||(Ex={})),function(e){function t(t){return e.views[t]||null}e.views={},e.getView=t}(Ex||(Ex={})),function(e){let t=0;function n(){const e=`v${t}`;return t+=1,e}e.uniqueId=n}(_x||(_x={}));const Cx=e=>e;function xx(e,t){return 0===t?"0%":`${Math.round(e/t*100)}%`}function wx(e){const t=(t,n,i,r)=>{return n.isEdgeElement(i)?Ax(e,t,n,i,r):Tx(e,t,n,i,r)};return t}function Tx(e,t,n,i,r){const o=n.cell,a=o.getAngle(),s=n.getUnrotatedBBoxOfElement(i),l=o.getBBox().getCenter(),c=xy.create(r).rotate(a,l);let u=c.x-s.x,d=c.y-s.y;return e&&(u=xx(u,s.width),d=xx(d,s.height)),t.anchor={name:"topLeft",args:{dx:u,dy:d,rotate:!0}},t}function Ax(e,t,n,i,r){const o=n.getConnection();if(!o)return t;const a=o.closestPointLength(r);if(e){const e=o.length();t.anchor={name:"ratio",args:{ratio:a/e}}}else t.anchor={name:"length",args:{length:a}};return t}const Ox=wx(!0),Rx=wx(!1);var Nx,Dx;(function(e){e.presets=_,e.registry=gS.create({type:"connection strategy"}),e.registry.register(e.presets,!0)})(Nx||(Nx={}));class Ix{constructor(e){this.view=e,this.clean()}clean(){this.elemCache&&this.elemCache.dispose(),this.elemCache=new bx,this.pathCache={}}get(e){const t=this.elemCache;return t.has(e)||this.elemCache.set(e,{}),this.elemCache.get(e)}getData(e){const t=this.get(e);return t.data||(t.data={}),t.data}getMatrix(e){const t=this.get(e);if(null==t.matrix){const n=this.view.rotatableNode||this.view.container;t.matrix=c.getTransformToElement(e,n)}return c.createSVGMatrix(t.matrix)}getShape(e){const t=this.get(e);return null==t.shape&&(t.shape=c.toGeometryShape(e)),t.shape.clone()}getBoundingRect(e){const t=this.get(e);return null==t.boundingRect&&(t.boundingRect=c.getBBox(e)),t.boundingRect.clone()}}(function(e){function t(e){return null!=e&&!n(e)}function n(e){return null!=e&&"string"===typeof e}function i(e){return null==e||n(e)?e:r.cloneDeep(e)}function a(e){return`${e}`.trim().replace(/[\r|\n]/g," ").replace(/>\s+<")}function s(e){const t=document.createDocumentFragment(),n={},i={},r=a(e),s=o.sanitizeHTML(r,{raw:!0});return s.forEach(e=>{t.appendChild(e)}),{fragment:t,selectors:i,groups:n}}function l(e,t={ns:c.ns.svg}){const n=document.createDocumentFragment(),i={},r={},o=[{markup:Array.isArray(e)?e:[e],parent:n,ns:t.ns}];while(o.length>0){const e=o.pop();let t=e.ns||c.ns.svg;const n=e.markup,a=e.parent;n.forEach(e=>{const n=e.tagName;if(!n)throw new TypeError("Invalid tagName");e.ns&&(t=e.ns);const s=t===c.ns.svg,l=t?c.createElementNS(n,t):c.createElement(n),u=e.attrs;u&&(s?c.attr(l,c.kebablizeAttrs(u)):T()(l).attr(u));const d=e.style;d&&T()(l).css(d);const h=e.className;null!=h&&l.setAttribute("class",Array.isArray(h)?h.join(" "):h),e.textContent&&(l.textContent=e.textContent);const p=e.selector;if(null!=p){if(r[p])throw new TypeError("Selector must be unique");r[p]=l}if(e.groupSelector){let t=e.groupSelector;Array.isArray(t)||(t=[t]),t.forEach(e=>{i[e]||(i[e]=[]),i[e].push(l)})}a.appendChild(l);const f=e.children;Array.isArray(f)&&o.push({ns:t,markup:f,parent:l})})}return Object.keys(i).forEach(e=>{if(r[e])throw new Error("Ambiguous group selector");r[e]=i[e]}),{fragment:n,selectors:r,groups:i}}function u(e){return e instanceof SVGElement?c.createSvgElement("g"):c.createElement("div")}function d(e){if(n(e)){const t=Qy.createVectors(e),n=t.length;if(1===n)return{elem:t[0].node};if(n>1){const e=u(t[0].node);return t.forEach(t=>{e.appendChild(t.node)}),{elem:e}}return{}}const t=l(e),i=t.fragment;let r=null;return i.childNodes.length>1?(r=u(i.firstChild),r.appendChild(i)):r=i.firstChild,{elem:r,selectors:t.selectors}}function h(e){const t=Qy.createVectors(e),n=document.createDocumentFragment();for(let i=0,r=t.length;i ${o} > ${i}`:`> ${o}`,r;const a=e.parentNode;if(a&&a.childNodes.length>1){const t=c.index(e)+1;r=`${o}:nth-child(${t})`}else r=o;return i&&(r+=` > ${i}`),t(e.parentNode,n,r)}return i}function n(e,n,i){if("#text"===e.nodeName)return null;let r=null,o=null,a=null,s=!1;const l={tagName:e.tagName};if(e.attributes){a={};for(let t=0,n=e.attributes.length;t{const r=n(e,t,i);if(null!=r){const{markup:n,attrs:i,isCSSSelector:o}=r;if(s.set(e,n),n.selector&&null!=i&&(Object.keys(i).length&&(a[n.selector]=i),o&&delete n.selector),e.childNodes&&e.childNodes.length>0)for(let r=0,a=e.childNodes.length;rl(e,e)).filter(e=>null!=e);return{markup:u,attrs:a}}e.getSelector=t,e.xml2json=i}(Dx||(Dx={})),function(e){function t(){return"g"}function n(){return{tagName:"circle",selector:"circle",attrs:{r:10,fill:"#FFFFFF",stroke:"#000000"}}}function i(){return{tagName:"text",selector:"text",attrs:{fill:"#000000"}}}e.getPortContainerMarkup=t,e.getPortMarkup=n,e.getPortLabelMarkup=i}(Dx||(Dx={})),function(e){function t(){return e.sanitize('\n \n \n \n \n \n \n \n \n ')}function n(){return e.sanitize('\n \n \n \n \n Remove edge.\n \n \n \n \n Edge options.\n \n \n ')}function i(){return e.sanitize('\n \n \n \n \n Remove vertex.\n \n \n ')}function r(){return e.sanitize('\n \n \n \n ')}e.getEdgeMarkup=t,e.getEdgeToolMarkup=n,e.getEdgeVertexMarkup=i,e.getEdgeArrowheadMarkup=r}(Dx||(Dx={})),function(e){function t(e=!1){return{tagName:"foreignObject",selector:"fo",children:[{ns:c.ns.xhtml,tagName:"body",selector:"foBody",attrs:{xmlns:c.ns.xhtml},style:{width:"100%",height:"100%",background:"transparent"},children:e?[]:[{tagName:"div",selector:"foContent",style:{width:"100%",height:"100%"}}]}]}}e.getForeignObjectMarkup=t}(Dx||(Dx={}));class Mx{constructor(e){this.view=e}get cell(){return this.view.cell}getDefinition(e){return this.cell.getAttrDefinition(e)}processAttrs(e,t){let n,i,r,a,l;const u=[];return Object.keys(t).forEach(i=>{const r=t[i],a=this.getDefinition(i),l=s.call(YE.isValidDefinition,this.view,a,r,{elem:e,attrs:t,cell:this.cell,view:this.view});if(a&&l)"string"===typeof a?(null==n&&(n={}),n[a]=r):null!==r&&u.push({name:i,definition:a});else{null==n&&(n={});const e=Mx.CASE_SENSITIVE_ATTR.includes(i)?i:o.kebabCase(i);n[e]=r}}),u.forEach(({name:n,definition:o})=>{const s=t[n],u=o;"function"===typeof u.set&&(!c.isHTMLElement(e)&&Mx.DELAY_ATTRS.includes(n)?(null==l&&(l={}),l[n]=s):(null==i&&(i={}),i[n]=s));const d=o;"function"===typeof d.offset&&(null==r&&(r={}),r[n]=s);const h=o;"function"===typeof h.position&&(null==a&&(a={}),a[n]=s)}),{raw:t,normal:n,set:i,offset:r,position:a,delay:l}}mergeProcessedAttrs(e,t){e.set=Object.assign(Object.assign({},e.set),t.set),e.position=Object.assign(Object.assign({},e.position),t.position),e.offset=Object.assign(Object.assign({},e.offset),t.offset);const n=e.normal&&e.normal.transform;null!=n&&t.normal&&(t.normal.transform=n),e.normal=t.normal}findAttrs(e,t,n,o){const a=[],s=new bx;return Object.keys(e).forEach(l=>{const c=e[l];if(!r.isPlainObject(c))return;const{isCSSSelector:u,elems:d}=Ex.find(l,t,o);n[l]=d;for(let e=0,t=d.length;e{const t=s.get(e),n=t.attrs;t.attrs=n.reduceRight((e,t)=>r.merge(e,t),{})}),s}updateRelativeAttrs(e,t,n,i){const r=t.raw||{};let o=t.normal||{};const a=t.set,l=t.position,u=t.offset,d=t.delay,h=()=>({elem:e,cell:this.cell,view:this.view,attrs:r,refBBox:n.clone()});if(null!=a&&Object.keys(a).forEach(e=>{const t=a[e],n=this.getDefinition(e);if(null!=n){const i=s.call(n.set,this.view,t,h());"object"===typeof i?o=Object.assign(Object.assign({},o),i):null!=i&&(o[e]=i)}}),c.isHTMLElement(e))return void this.view.setAttrs(o,e);const p=o.transform,f=p?`${p}`:null,g=c.transformStringToMatrix(f),m=new xy(g.e,g.f);p&&(delete o.transform,g.e=0,g.f=0);let v=1,_=1;if(l||u){const t=this.view.getScaleOfElement(e,i.scalableNode);v=t.sx,_=t.sy}let y=!1;null!=l&&Object.keys(l).forEach(e=>{const t=l[e],n=this.getDefinition(e);if(null!=n){const e=s.call(n.position,this.view,t,h());null!=e&&(y=!0,m.translate(xy.create(e).scale(v,_)))}}),this.view.setAttrs(o,e);let b=!1;if(null!=u){const t=this.view.getBoundingRectOfElement(e);if(t.width>0&&t.height>0){const n=c.transformRectangle(t,g).scale(1/v,1/_);Object.keys(u).forEach(t=>{const i=u[t],o=this.getDefinition(t);if(null!=o){const t=s.call(o.offset,this.view,i,{elem:e,cell:this.cell,view:this.view,attrs:r,refBBox:n});null!=t&&(b=!0,m.translate(xy.create(t).scale(v,_)))}})}}(null!=p||y||b)&&(m.round(1),g.e=m.x,g.f=m.y,e.setAttribute("transform",c.matrixToTransformString(g)));const S=()=>{null!=d&&Object.keys(d).forEach(t=>{const n=d[t],i=this.getDefinition(t);if(null!=i){const r=s.call(i.set,this.view,n,h());"object"===typeof r?this.view.setAttrs(r,e):null!=r&&this.view.setAttrs({[t]:r},e)}})};i.forceSync?S():fS.scheduleTask(S)}update(e,t,n){const i={},r=this.findAttrs(n.attrs||t,e,i,n.selectors),o=n.attrs?this.findAttrs(t,e,i,n.selectors):r,a=[];r.each(t=>{const r=t.elem,s=t.attrs,l=this.processAttrs(r,s);if(null==l.set&&null==l.position&&null==l.offset&&null==l.delay)this.view.setAttrs(l.normal,r);else{const t=o.get(r),c=t?t.attrs:null,u=c&&null==s.ref?c.ref:s.ref;let d;if(u){if(d=(i[u]||this.view.find(u,e,n.selectors))[0],!d)throw new Error(`"${u}" reference does not exist.`)}else d=null;const h={node:r,refNode:d,attributes:c,processedAttributes:l},p=a.findIndex(e=>e.refNode===r);p>-1?a.splice(p,0,h):a.push(h)}});const s=new bx;let l;a.forEach(t=>{const i=t.node,r=t.refNode;let o;const u=null!=r&&null!=n.rotatableNode&&c.contains(n.rotatableNode,r);if(r&&(o=s.get(r)),!o){const t=u?n.rotatableNode:e;o=r?c.getBBox(r,{target:t}):n.rootBBox,r&&s.set(r,o)}let d;n.attrs&&t.attributes?(d=this.processAttrs(i,t.attributes),this.mergeProcessedAttrs(d,t.processedAttributes)):d=t.processedAttributes;let h=o;u&&null!=n.rotatableNode&&!n.rotatableNode.contains(i)&&(l||(l=c.transformStringToMatrix(c.attr(n.rotatableNode,"transform"))),h=c.transformRectangle(o,l));const p=a.find(e=>e.refNode===i);p&&(n.forceSync=!0),this.updateRelativeAttrs(i,d,h,n)})}}(function(e){e.CASE_SENSITIVE_ATTR=["viewBox"],e.DELAY_ATTRS=["text","textWrap","sourceMarker","targetMarker"]})(Mx||(Mx={}));class kx{constructor(e,t,n=[]){this.view=e;const i={},r={};let o=0;Object.keys(t).forEach(e=>{let n=t[e];Array.isArray(n)||(n=[n]),n.forEach(t=>{let n=i[t];n||(o+=1,n=i[t]=1<{i[e]||(o+=1,i[e]=1<25)throw new Error("Maximum number of flags exceeded.");this.flags=i,this.attrs=r,this.bootstrap=n}get cell(){return this.view.cell}getFlag(e){const t=this.flags;return null==t?0:Array.isArray(e)?e.reduce((e,n)=>e|t[n],0):0|t[e]}hasAction(e,t){return e&this.getFlag(t)}removeAction(e,t){return e^e&this.getFlag(t)}getBootstrapFlag(){return this.getFlag(this.bootstrap)}getChangedFlag(){let e=0;return this.attrs?(Object.keys(this.attrs).forEach(t=>{this.cell.hasChanged(t)&&(e|=this.attrs[t])}),e):e}}var Lx=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{return null!=t?i.uniq([...Array.isArray(e)?e:[e],...Array.isArray(t)?t:[t]]):Array.isArray(e)?[...e]:[e]},n=r.cloneDeep(this.getDefaults()),{bootstrap:o,actions:a,events:s,documentEvents:l}=e,c=Lx(e,["bootstrap","actions","events","documentEvents"]);return o&&(n.bootstrap=t(n.bootstrap,o)),a&&Object.keys(a).forEach(e=>{const i=a[e],r=n.actions[e];i&&r?n.actions[e]=t(r,i):i&&(n.actions[e]=t(i))}),s&&(n.events=Object.assign(Object.assign({},n.events),s)),e.documentEvents&&(n.documentEvents=Object.assign(Object.assign({},n.documentEvents),l)),r.merge(n,c)}get[Symbol.toStringTag](){return Px.toStringTag}init(){}onRemove(){this.removeTools()}get priority(){return this.options.priority}get rootSelector(){return this.options.rootSelector}getConstructor(){return this.constructor}ensureOptions(e){return this.getConstructor().getOptions(e)}getContainerTagName(){return this.options.isSvgElement?"g":"div"}getContainerStyle(){}getContainerAttrs(){return{"data-cell-id":this.cell.id,"data-shape":this.cell.shape}}getContainerClassName(){return this.prefixClassName("cell")}ensureContainer(){return Ex.createElement(this.getContainerTagName(),this.options.isSvgElement)}setContainer(e){if(this.container!==e){this.undelegateEvents(),this.container=e,null!=this.options.events&&this.delegateEvents(this.options.events);const t=this.getContainerAttrs();null!=t&&this.setAttrs(t,e);const n=this.getContainerStyle();null!=n&&this.setStyle(n,e);const i=this.getContainerClassName();null!=i&&this.addClass(i,e)}return this}isNodeView(){return!1}isEdgeView(){return!1}render(){return this}confirmUpdate(e,t={}){return 0}getBootstrapFlag(){return this.flag.getBootstrapFlag()}getFlag(e){return this.flag.getFlag(e)}hasAction(e,t){return this.flag.hasAction(e,t)}removeAction(e,t){return this.flag.removeAction(e,t)}handleAction(e,t,n,i){if(this.hasAction(e,t)){n();const r=[t];return i&&("string"===typeof i?r.push(i):r.push(...i)),this.removeAction(e,r)}return e}setup(){this.cell.on("changed",({options:e})=>this.onAttrsChange(e))}onAttrsChange(e){let t=this.flag.getChangedFlag();!e.updated&&t&&(e.dirty&&this.hasAction(t,"update")&&(t|=this.getFlag("render")),e.toolId&&(e.async=!1),null!=this.graph&&this.graph.renderer.requestViewUpdate(this,t,this.priority,e))}parseJSONMarkup(e,t){const n=Dx.parseJSONMarkup(e),i=n.selectors,r=this.rootSelector;if(t&&r){if(i[r])throw new Error("Invalid root selector");i[r]=t}return n}can(e){let t=this.graph.options.interacting;if("function"===typeof t&&(t=s.call(t,this.graph,this)),"object"===typeof t){let n=t[e];return"function"===typeof n&&(n=s.call(n,this.graph,this)),!1!==n}return"boolean"===typeof t&&t}cleanCache(){return this.cache.clean(),this}getCache(e){return this.cache.get(e)}getDataOfElement(e){return this.cache.getData(e)}getMatrixOfElement(e){return this.cache.getMatrix(e)}getShapeOfElement(e){return this.cache.getShape(e)}getScaleOfElement(e,t){let n,i;if(t&&t.contains(e)){const e=c.scale(t);n=1/e.sx,i=1/e.sy}else n=1,i=1;return{sx:n,sy:i}}getBoundingRectOfElement(e){return this.cache.getBoundingRect(e)}getBBoxOfElement(e){const t=this.getBoundingRectOfElement(e),n=this.getMatrixOfElement(e),i=this.getRootRotatedMatrix(),r=this.getRootTranslatedMatrix();return c.transformRectangle(t,r.multiply(i).multiply(n))}getUnrotatedBBoxOfElement(e){const t=this.getBoundingRectOfElement(e),n=this.getMatrixOfElement(e),i=this.getRootTranslatedMatrix();return c.transformRectangle(t,i.multiply(n))}getBBox(e={}){let t;if(e.useCellGeometry){const e=this.cell,n=e.isNode()?e.getAngle():0;t=e.getBBox().bbox(n)}else t=this.getBBoxOfElement(this.container);return this.graph.localToGraph(t)}getRootTranslatedMatrix(){const e=this.cell,t=e.isNode()?e.getPosition():{x:0,y:0};return c.createSVGMatrix().translate(t.x,t.y)}getRootRotatedMatrix(){let e=c.createSVGMatrix();const t=this.cell,n=t.isNode()?t.getAngle():0;if(n){const i=t.getBBox(),r=i.width/2,o=i.height/2;e=e.translate(r,o).rotate(n).translate(-r,-o)}return e}findMagnet(e=this.container){return this.findByAttr("magnet",e)}updateAttrs(e,t,n={}){null==n.rootBBox&&(n.rootBBox=new wy),null==n.selectors&&(n.selectors=this.selectors),this.attr.update(e,t,n)}isEdgeElement(e){return this.cell.isEdge()&&(null==e||e===this.container)}prepareHighlight(e,t={}){const n=e&&this.$(e)[0]||this.container;return t.partial=n===this.container,n}highlight(e,t={}){const n=this.prepareHighlight(e,t);return this.notify("cell:highlight",{magnet:n,options:t,view:this,cell:this.cell}),this.isEdgeView()?this.notify("edge:highlight",{magnet:n,options:t,view:this,edge:this.cell,cell:this.cell}):this.isNodeView()&&this.notify("node:highlight",{magnet:n,options:t,view:this,node:this.cell,cell:this.cell}),this}unhighlight(e,t={}){const n=this.prepareHighlight(e,t);return this.notify("cell:unhighlight",{magnet:n,options:t,view:this,cell:this.cell}),this.isNodeView()?this.notify("node:unhighlight",{magnet:n,options:t,view:this,node:this.cell,cell:this.cell}):this.isEdgeView()&&this.notify("edge:unhighlight",{magnet:n,options:t,view:this,edge:this.cell,cell:this.cell}),this}notifyUnhighlight(e,t){}getEdgeTerminal(e,t,n,i,r){const o=this.cell,a=this.findAttr("port",e),s=e.getAttribute("data-selector"),l={cell:o.id};return null!=s&&(l.magnet=s),null!=a?(l.port=a,o.isNode()&&(o.hasPort(a)||null!=s||(l.selector=this.getSelector(e)))):null==s&&this.container!==e&&(l.selector=this.getSelector(e)),this.customizeEdgeTerminal(l,e,t,n,i,r)}customizeEdgeTerminal(e,t,n,i,r,o){const a=r.getStrategy()||this.graph.options.connecting.strategy;if(a){const l="string"===typeof a?a:a.name,c="string"===typeof a?{}:a.args||{},u=Nx.registry;if(l){const a=u.get(l);if(null==a)return u.onNotFound(l);const d=s.call(a,this.graph,e,this,t,new xy(n,i),r,o,c);if(d)return d}}return e}getMagnetFromEdgeTerminal(e){const t=this.cell,n=this.container,i=e.port;let r,o=e.magnet;return null!=i&&t.isNode()&&t.hasPort(i)?r=this.findPortElem(i,o)||n:(o||(o=e.selector),o||null==i||(o=`[port="${i}"]`),r=this.findOne(o,n,this.selectors)),r}animate(e,t){const n="string"===typeof e?this.findOne(e):e;if(null==n)throw new Error("Invalid animation element.");const i=n.parentNode,r=()=>{i||c.remove(n)},o=Qy.create(n);i||o.appendTo(this.graph.view.stage);const a=t.complete;return t.complete=e=>{r(),a&&a(e)},o.animate(t)}animateTransform(e,t){const n="string"===typeof e?this.findOne(e):e;if(null==n)throw new Error("Invalid animation element.");const i=n.parentNode,r=()=>{i||c.remove(n)},o=Qy.create(n);i||o.appendTo(this.graph.view.stage);const a=t.complete;return t.complete=e=>{r(),a&&a(e)},o.animateTransform(t)}hasTools(e){const t=this.tools;return null!=t&&(null==e||t.name===e)}addTools(e){if(!this.can("toolsAddable"))return this;if(this.removeTools(),e){const t=Fx.isToolsView(e)?e:new Fx(e);this.tools=t,this.graph.on("tools:hide",this.hideTools,this),this.graph.on("tools:show",this.showTools,this),this.graph.on("tools:remove",this.removeTools,this),t.config({view:this}),t.mount()}return this}updateTools(e={}){return this.tools&&this.tools.update(e),this}removeTools(){return this.tools&&(this.tools.remove(),this.graph.off("tools:hide",this.hideTools,this),this.graph.off("tools:show",this.showTools,this),this.graph.off("tools:remove",this.removeTools,this),this.tools=null),this}hideTools(){return this.tools&&this.tools.hide(),this}showTools(){return this.tools&&this.tools.show(),this}renderTools(){const e=this.cell.getTools();return this.addTools(e),this}notify(e,t){return this.trigger(e,t),this.graph.trigger(e,t),this}getEventArgs(e,t,n){const i=this,r=i.cell;return null==t||null==n?{e:e,view:i,cell:r}:{e:e,x:t,y:n,view:i,cell:r}}onClick(e,t,n){this.notify("cell:click",this.getEventArgs(e,t,n))}onDblClick(e,t,n){this.notify("cell:dblclick",this.getEventArgs(e,t,n))}onContextMenu(e,t,n){this.notify("cell:contextmenu",this.getEventArgs(e,t,n))}onMouseDown(e,t,n){this.cell.model&&(this.cachedModelForMouseEvent=this.cell.model,this.cachedModelForMouseEvent.startBatch("mouse")),this.notify("cell:mousedown",this.getEventArgs(e,t,n))}onMouseUp(e,t,n){this.notify("cell:mouseup",this.getEventArgs(e,t,n)),this.cachedModelForMouseEvent&&(this.cachedModelForMouseEvent.stopBatch("mouse",{cell:this.cell}),this.cachedModelForMouseEvent=null)}onMouseMove(e,t,n){this.notify("cell:mousemove",this.getEventArgs(e,t,n))}onMouseOver(e){this.notify("cell:mouseover",this.getEventArgs(e))}onMouseOut(e){this.notify("cell:mouseout",this.getEventArgs(e))}onMouseEnter(e){this.notify("cell:mouseenter",this.getEventArgs(e))}onMouseLeave(e){this.notify("cell:mouseleave",this.getEventArgs(e))}onMouseWheel(e,t,n,i){this.notify("cell:mousewheel",Object.assign({delta:i},this.getEventArgs(e,t,n)))}onCustomEvent(e,t,n,i){this.notify("cell:customevent",Object.assign({name:t},this.getEventArgs(e,n,i))),this.notify(t,Object.assign({},this.getEventArgs(e,n,i)))}onMagnetMouseDown(e,t,n,i){}onMagnetDblClick(e,t,n,i){}onMagnetContextMenu(e,t,n,i){}onLabelMouseDown(e,t,n){}checkMouseleave(e){const t=this.graph;t.renderer.isAsync()&&t.renderer.dumpView(this);const n=this.getEventTarget(e,{fromPoint:!0}),i=t.renderer.findViewByElem(n);i!==this&&(this.onMouseLeave(e),i&&i.onMouseEnter(e))}}Px.defaults={isSvgElement:!0,rootSelector:"root",priority:0,bootstrap:[],actions:{}},function(e){e.Flag=kx,e.Attr=Mx}(Px||(Px={})),function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&"function"===typeof i.isNodeView&&"function"===typeof i.isEdgeView&&"function"===typeof i.confirmUpdate}e.toStringTag=`X6.${e.name}`,e.isCellView=t}(Px||(Px={})),function(e){function t(e){return function(t){t.config({priority:e})}}function n(e){return function(t){t.config({bootstrap:e})}}e.priority=t,e.bootstrap=n}(Px||(Px={})),function(e){e.registry=gS.create({type:"view"})}(Px||(Px={}));class Fx extends Ex{constructor(e={}){super(),this.svgContainer=this.createContainer(!0,e),this.htmlContainer=this.createContainer(!1,e),this.config(e)}get name(){return this.options.name}get graph(){return this.cellView.graph}get cell(){return this.cellView.cell}get[Symbol.toStringTag](){return Fx.toStringTag}createContainer(e,t){const n=e?Ex.createElement("g",!0):Ex.createElement("div",!1);return c.addClass(n,this.prefixClassName("cell-tools")),t.className&&c.addClass(n,t.className),n}config(e){if(this.options=Object.assign(Object.assign({},this.options),e),!Px.isCellView(e.view)||e.view===this.cellView)return this;this.cellView=e.view,this.cell.isEdge()?(c.addClass(this.svgContainer,this.prefixClassName("edge-tools")),c.addClass(this.htmlContainer,this.prefixClassName("edge-tools"))):this.cell.isNode()&&(c.addClass(this.svgContainer,this.prefixClassName("node-tools")),c.addClass(this.htmlContainer,this.prefixClassName("node-tools"))),this.svgContainer.setAttribute("data-cell-id",this.cell.id),this.htmlContainer.setAttribute("data-cell-id",this.cell.id),this.name&&(this.svgContainer.setAttribute("data-tools-name",this.name),this.htmlContainer.setAttribute("data-tools-name",this.name));const t=this.options.items;if(!Array.isArray(t))return this;this.tools=[];const n=[];t.forEach(e=>{if(Fx.ToolItem.isToolItem(e))"vertices"===e.name?n.unshift(e):n.push(e);else{const t="object"===typeof e?e.name:e;"vertices"===t?n.unshift(e):n.push(e)}});for(let i=0;i{e.toolId!==t.cid&&t.isVisible()&&t.update()}),this}focus(e){const t=this.tools;return t&&t.forEach(t=>{e===t?t.show():t.hide()}),this}blur(e){const t=this.tools;return t&&t.forEach(t=>{t===e||t.isVisible()||(t.show(),t.update())}),this}hide(){return this.focus(null)}show(){return this.blur(null)}remove(){const e=this.tools;return e&&(e.forEach(e=>e.remove()),this.tools=null),c.remove(this.svgContainer),c.remove(this.htmlContainer),super.remove()}mount(){const e=this.tools,t=this.cellView;if(t&&e){const n=e.some(e=>!1!==e.options.isSVGElement),i=e.some(e=>!1===e.options.isSVGElement);if(n){const e=this.options.local?t.container:t.graph.view.decorator;e.appendChild(this.svgContainer)}i&&this.graph.container.appendChild(this.htmlContainer)}return this}}function Bx(e,t,n,i){const r=s.call(Nx.presets.pinRelative,this.graph,{},t,n,e,this.cell,i,{});return r.anchor}function $x(e,t){return t?e.cell.getBBox():e.cell.isEdge()?e.getConnection().bbox():e.getUnrotatedBBoxOfElement(e.container)}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&null!=i.graph&&null!=i.cell&&"function"===typeof i.config&&"function"===typeof i.update&&"function"===typeof i.focus&&"function"===typeof i.blur&&"function"===typeof i.show&&"function"===typeof i.hide}e.toStringTag=`X6.${e.name}`,e.isToolsView=t})(Fx||(Fx={})),function(e){class t extends Ex{constructor(e={}){super(),this.options=this.getOptions(e),this.container=Ex.createElement(this.options.tagName||"g",!1!==this.options.isSVGElement),c.addClass(this.container,this.prefixClassName("cell-tool")),"string"===typeof this.options.className&&c.addClass(this.container,this.options.className),this.init()}static getDefaults(){return this.defaults}static config(e){this.defaults=this.getOptions(e)}static getOptions(e){return r.merge(r.cloneDeep(this.getDefaults()),e)}get graph(){return this.cellView.graph}get cell(){return this.cellView.cell}get name(){return this.options.name}get[Symbol.toStringTag](){return t.toStringTag}init(){}getOptions(e){const t=this.constructor;return t.getOptions(e)}delegateEvents(){return this.options.events&&super.delegateEvents(this.options.events),this}config(e,t){return this.cellView=e,this.parent=t,this.stamp(this.container),this.cell.isEdge()?c.addClass(this.container,this.prefixClassName("edge-tool")):this.cell.isNode()&&c.addClass(this.container,this.prefixClassName("node-tool")),this.name&&this.container.setAttribute("data-tool-name",this.name),this.delegateEvents(),this}render(){this.empty();const e=this.options.markup;if(e){const t=Dx.isStringMarkup(e)?Dx.parseStringMarkup(e):Dx.parseJSONMarkup(e);this.container.appendChild(t.fragment),this.childNodes=t.selectors}return this.onRender(),this}onRender(){}update(){return this}stamp(e=this.container){e&&e.setAttribute("data-cell-id",this.cellView.cell.id)}show(){return this.container.style.display="",this.visible=!0,this}hide(){return this.container.style.display="none",this.visible=!1,this}isVisible(){return this.visible}focus(){const e=this.options.focusOpacity;return null!=e&&Number.isFinite(e)&&(this.container.style.opacity=`${e}`),this.parent.focus(this),this}blur(){return this.container.style.opacity="",this.parent.blur(this),this}guard(e){return null==this.graph||null==this.cellView||this.graph.view.guard(e,this.cellView)}}t.defaults={isSVGElement:!0,tagName:"g"},e.ToolItem=t,function(e){let t=0;function n(e){return e?o.pascalCase(e):(t+=1,`CustomTool${t}`)}function i(e){const t=r.createClass(n(e.name),this);return t.config(e),t}e.define=i}(t=e.ToolItem||(e.ToolItem={})),function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&null!=i.graph&&null!=i.cell&&"function"===typeof i.config&&"function"===typeof i.update&&"function"===typeof i.focus&&"function"===typeof i.blur&&"function"===typeof i.show&&"function"===typeof i.hide&&"function"===typeof i.isVisible}e.toStringTag=`X6.${e.name}`,e.isToolItem=t}(t=e.ToolItem||(e.ToolItem={}))}(Fx||(Fx={}));class Vx extends Fx.ToolItem{onRender(){c.addClass(this.container,this.prefixClassName("cell-tool-button")),this.update()}update(){return this.updatePosition(),this}updatePosition(){const e=this.cellView,t=e.cell.isEdge()?this.getEdgeMatrix():this.getNodeMatrix();c.transform(this.container,t,{absolute:!0})}getNodeMatrix(){const e=this.cellView,t=this.options;let{x:n=0,y:i=0}=t;const{offset:r,useCellGeometry:o,rotate:s}=t;let l=$x(e,o);const u=e.cell.getAngle();s||(l=l.bbox(u));let d=0,h=0;"number"===typeof r?(d=r,h=r):"object"===typeof r&&(d=r.x,h=r.y),n=a.normalizePercentage(n,l.width),i=a.normalizePercentage(i,l.height);let p=c.createSVGMatrix().translate(l.x+l.width/2,l.y+l.height/2);return s&&(p=p.rotate(u)),p=p.translate(n+d-l.width/2,i+h-l.height/2),p}getEdgeMatrix(){const e=this.cellView,t=this.options,{offset:n=0,distance:i=0,rotate:r}=t;let o,s,l;o=a.isPercentage(i)?e.getTangentAtRatio(parseFloat(i)/100):e.getTangentAtLength(i),o?(s=o.start,l=o.vector().vectorAngle(new xy(1,0))||0):(s=e.getConnection().start,l=0);let u=c.createSVGMatrix().translate(s.x,s.y).rotate(l);return u="object"===typeof n?u.translate(n.x||0,n.y||0):u.translate(0,n),r||(u=u.rotate(-l)),u}onMouseDown(e){if(this.guard(e))return;e.stopPropagation(),e.preventDefault();const t=this.options.onClick;"function"===typeof t&&s.call(t,this.cellView,{e:e,view:this.cellView,cell:this.cellView.cell,btn:this})}}(function(e){e.config({name:"button",events:{mousedown:"onMouseDown",touchstart:"onMouseDown"}})})(Vx||(Vx={})),function(e){e.Remove=e.define({name:"button-remove",markup:[{tagName:"circle",selector:"button",attrs:{r:7,fill:"#FF1D00",cursor:"pointer"}},{tagName:"path",selector:"icon",attrs:{d:"M -3 -3 3 3 M -3 3 3 -3",fill:"none",stroke:"#FFFFFF","stroke-width":2,"pointer-events":"none"}}],distance:60,offset:0,onClick({view:e,btn:t}){t.parent.remove(),e.cell.remove({ui:!0,toolId:t.cid})}})}(Vx||(Vx={}));var Gx=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{this.stopHandleListening(e),e.remove()})}renderHandles(){const e=this.vertices;for(let t=0,n=e.length;tthis.guard(e),attrs:this.options.attrs||{}});r&&r(o),this.graph.hook.onToolItemCreated({name:"vertices",cell:this.cell,view:this.cellView,tool:o}),o.updatePosition(n.x,n.y),this.stamp(o.container),this.container.appendChild(o.container),this.handles.push(o),this.startHandleListening(o)}}updateHandles(){const e=this.vertices;for(let t=0,n=e.length;t0?n[e-1]:t.sourceAnchor,r=e0){const i=this.getNeighborPoints(t),r=i.prev,o=i.next;Math.abs(e.x-r.x)new e.Handle(t),markup:[{tagName:"path",selector:"connection",className:t,attrs:{fill:"none",stroke:"transparent","stroke-width":10,cursor:"pointer"}}],events:{[`mousedown .${t}`]:"onPathMouseDown",[`touchstart .${t}`]:"onPathMouseDown"}})}(zx||(zx={}));class jx extends Fx.ToolItem{constructor(){super(...arguments),this.handles=[]}get vertices(){return this.cellView.cell.getVertices()}update(){return this.render(),this}onRender(){c.addClass(this.container,this.prefixClassName("edge-tool-segments")),this.resetHandles();const e=this.cellView,t=[...this.vertices];t.unshift(e.sourcePoint),t.push(e.targetPoint);for(let n=0,i=t.length;nthis.guard(e),attrs:this.options.attrs||{}});return this.options.processHandle&&this.options.processHandle(i),this.graph.hook.onToolItemCreated({name:"segments",cell:this.cell,view:this.cellView,tool:i}),this.updateHandle(i,e,t),this.container.appendChild(i.container),this.startHandleListening(i),i}startHandleListening(e){e.on("change",this.onHandleChange,this),e.on("changing",this.onHandleChanging,this),e.on("changed",this.onHandleChanged,this)}stopHandleListening(e){e.off("change",this.onHandleChange,this),e.off("changing",this.onHandleChanging,this),e.off("changed",this.onHandleChanged,this)}resetHandles(){const e=this.handles;this.handles=[],e&&e.forEach(e=>{this.stopHandleListening(e),e.remove()})}shiftHandleIndexes(e){const t=this.handles;for(let n=0,i=t.length;nnew e.Handle(t),anchor:Bx})}(jx||(jx={}));class Hx extends Fx.ToolItem{get type(){return this.options.type}onRender(){c.addClass(this.container,this.prefixClassName(`edge-tool-${this.type}-anchor`)),this.toggleArea(!1),this.update()}update(){const e=this.type,t=this.cellView,n=t.getTerminalView(e);return n?(this.updateAnchor(),this.updateArea(),this.container.style.display=""):this.container.style.display="none",this}updateAnchor(){const e=this.childNodes;if(!e)return;const t=e.anchor;if(!t)return;const n=this.type,i=this.cellView,r=this.options,o=i.getTerminalAnchor(n),a=i.cell.prop([n,"anchor"]);t.setAttribute("transform",`translate(${o.x}, ${o.y})`);const s=a?r.customAnchorAttrs:r.defaultAnchorAttrs;s&&Object.keys(s).forEach(e=>{t.setAttribute(e,s[e])})}updateArea(){const e=this.childNodes;if(!e)return;const t=e.area;if(!t)return;const n=this.type,i=this.cellView,r=i.getTerminalView(n);if(r){const e=r.cell,o=i.getTerminalMagnet(n);let a,s,l,u=this.options.areaPadding||0;Number.isFinite(u)||(u=0),r.isEdgeElement(o)?(a=r.getBBox(),s=0,l=a.getCenter()):(a=r.getUnrotatedBBoxOfElement(o),s=e.getAngle(),l=a.getCenter(),s&&l.rotate(-s,e.getBBox().getCenter())),a.inflate(u),c.attr(t,{x:-a.width/2,y:-a.height/2,width:a.width,height:a.height,transform:`translate(${l.x}, ${l.y}) rotate(${s})`})}}toggleArea(e){if(this.childNodes){const t=this.childNodes.area;t&&(t.style.display=e?"":"none")}}onMouseDown(e){this.guard(e)||(e.stopPropagation(),e.preventDefault(),this.graph.view.undelegateEvents(),this.options.documentEvents&&this.delegateDocumentEvents(this.options.documentEvents),this.focus(),this.toggleArea(this.options.restrictArea),this.cell.startBatch("move-anchor",{ui:!0,toolId:this.cid}))}resetAnchor(e){const t=this.type,n=this.cell;e?n.prop([t,"anchor"],e,{rewrite:!0,ui:!0,toolId:this.cid}):n.removeProp([t,"anchor"],{ui:!0,toolId:this.cid})}onMouseMove(e){const t=this.type,n=this.cellView,i=n.getTerminalView(t);if(null==i)return;const r=this.normalizeEvent(e),o=i.cell,a=n.getTerminalMagnet(t);let l=this.graph.clientToLocal(r.clientX,r.clientY);const c=this.options.snap;if("function"===typeof c){const e=s.call(c,n,l,i,a,t,n,this);l=xy.create(e)}if(this.options.restrictArea)if(i.isEdgeElement(a)){const e=i.getClosestPoint(l);e&&(l=e)}else{const e=i.getUnrotatedBBoxOfElement(a),t=o.getAngle(),n=o.getBBox().getCenter(),r=l.clone().rotate(t,n);e.containsPoint(r)||(l=e.getNearestPointToPoint(r).rotate(-t,n))}let u;const d=this.options.anchor;"function"===typeof d&&(u=s.call(d,n,l,i,a,t,n,this)),this.resetAnchor(u),this.update()}onMouseUp(e){this.graph.view.delegateEvents(),this.undelegateDocumentEvents(),this.blur(),this.toggleArea(!1);const t=this.cellView;this.options.removeRedundancies&&t.removeRedundantLinearVertices({ui:!0,toolId:this.cid}),this.cell.stopBatch("move-anchor",{ui:!0,toolId:this.cid})}onDblClick(){const e=this.options.resetAnchor;e&&this.resetAnchor(!0===e?void 0:e),this.update()}}(function(e){e.config({tagName:"g",markup:[{tagName:"circle",selector:"anchor",attrs:{cursor:"pointer"}},{tagName:"rect",selector:"area",attrs:{"pointer-events":"none",fill:"none",stroke:"#33334F","stroke-dasharray":"2,4",rx:5,ry:5}}],events:{mousedown:"onMouseDown",touchstart:"onMouseDown",dblclick:"onDblClick"},documentEvents:{mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"},customAnchorAttrs:{"stroke-width":4,stroke:"#33334F",fill:"#FFFFFF",r:5},defaultAnchorAttrs:{"stroke-width":2,stroke:"#FFFFFF",fill:"#33334F",r:6},areaPadding:6,snapRadius:10,resetAnchor:!0,restrictArea:!0,removeRedundancies:!0,anchor:Bx,snap(e,t,n,i,r,o){const a=o.options.snapRadius||0,s="source"===i,l=s?0:-1,c=this.cell.getVertexAt(l)||this.getTerminalAnchor(s?"target":"source");return c&&(Math.abs(c.x-e.x){this.editor.focus(),this.selectText()})}selectText(){if(window.getSelection){const e=document.createRange(),t=window.getSelection();e.selectNodeContents(this.editor),t.removeAllRanges(),t.addRange(e)}}}(function(e){e.config({tagName:"div",isSVGElement:!1,events:{dblclick:"onDblClick",mousedown:"onMouseDown"},documentEvents:{mousedown:"onDocumentMouseDown"}})})(Zx||(Zx={})),function(e){e.NodeEditor=e.define({attrs:{fontSize:14,fontFamily:"Arial, helvetica, sans-serif",color:"#000",backgroundColor:"#fff"},getText({cell:e}){return e.attr("text/text")},setText({cell:e,value:t}){e.attr("text/text",t)}}),e.EdgeEditor=e.define({attrs:{fontSize:14,fontFamily:"Arial, helvetica, sans-serif",color:"#000",backgroundColor:"#fff"},getText({cell:e,index:t}){return-1===t?"":e.prop(`labels/${t}/attrs/label/text`)},setText({cell:e,value:t,index:n,distance:i}){const r=e;-1===n?r.appendLabel({position:{distance:i},attrs:{label:{text:t}}}):r.prop(`labels/${n}/attrs/label/text`,t)}})}(Zx||(Zx={}));var Jx,ew,tw=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r1&&(r/=100),e.getPointAtRatio(r)},Sw=function(e,t,n,i){const r=null!=i.length?i.length:20;return e.getPointAtLength(r)},Ew=function(e,t,n,i){const r=e.getClosestPoint(n);return null!=r?r:new xy},Cw=hw(Ew),xw=function(e,t,n,i){const r=1e6,o=e.getConnection(),a=e.getConnectionSubdivisions(),l=new Ty(n.clone().translate(0,r),n.clone().translate(0,-r)),c=new Ty(n.clone().translate(r,0),n.clone().translate(-r,0)),u=l.intersect(o,{segmentSubdivisions:a}),d=c.intersect(o,{segmentSubdivisions:a}),h=[];return u&&h.push(...u),d&&h.push(...d),h.length>0?n.closest(h):null!=i.fallbackAt?pw(e,i.fallbackAt):s.call(Ew,this,e,t,n,i)},ww=hw(xw);var Tw;function Aw(e,t,n){let i;if("object"===typeof n){if(Number.isFinite(n.y)){const i=new Ty(t,e),{start:r,end:o}=i.parallel(n.y);t=r,e=o}i=n.x}else i=n;if(null==i||!Number.isFinite(i))return e;const r=e.distance(t);return 0===i&&r>0?e:e.move(t,-Math.min(i,r-1))}function Ow(e){const t=e.getAttribute("stroke-width");return null===t?0:parseFloat(t)||0}function Rw(e){if(null==e)return null;let t=e;do{let e=t.tagName;if("string"!==typeof e)return null;if(e=e.toUpperCase(),"G"===e)t=t.firstElementChild;else{if("TITLE"!==e)break;t=t.nextElementSibling}}while(t);return t}(function(e){e.presets=b,e.registry=gS.create({type:"edge endpoint"}),e.registry.register(e.presets,!0)})(Tw||(Tw={}));const Nw=function(e,t,n,i){const r=t.getBBoxOfElement(n);i.stroked&&r.inflate(Ow(n)/2);const o=e.intersect(r),a=o&&o.length?e.start.closest(o):e.end;return Aw(a,e.start,i.offset)},Dw=function(e,t,n,i,r){const o=t.cell,a=o.isNode()?o.getAngle():0;if(0===a)return s.call(Nw,this,e,t,n,i,r);const l=t.getUnrotatedBBoxOfElement(n);i.stroked&&l.inflate(Ow(n)/2);const c=l.getCenter(),u=e.clone().rotate(a,c),d=u.setLength(1e6).intersect(l),h=d&&d.length?u.start.closest(d).rotate(-a,c):e.end;return Aw(h,e.start,i.offset)},Iw=function(e,t,n,i){let o,a;const s=e.end,l=i.selector;if(o="string"===typeof l?t.findOne(l):Array.isArray(l)?r.getByPath(n,l):Rw(n),!c.isSVGGraphicsElement(o)){if(o===n||!c.isSVGGraphicsElement(n))return s;o=n}const u=t.getShapeOfElement(o),d=t.getMatrixOfElement(o),h=t.getRootTranslatedMatrix(),p=t.getRootRotatedMatrix(),f=h.multiply(p).multiply(d),g=f.inverse(),m=c.transformLine(e,g),v=m.start.clone(),_=t.getDataOfElement(o);if(!1===i.insideout){null==_.shapeBBox&&(_.shapeBBox=u.bbox());const e=_.shapeBBox;if(null!=e&&e.containsPoint(v))return s}let y;if(!0===i.extrapolate&&m.setLength(1e6),Ky.isPath(u)){const e=i.precision||2;null==_.segmentSubdivisions&&(_.segmentSubdivisions=u.getSegmentSubdivisions({precision:e})),y={precision:e,segmentSubdivisions:_.segmentSubdivisions},a=m.intersect(u,y)}else a=m.intersect(u);a?Array.isArray(a)&&(a=v.closest(a)):!0===i.sticky&&(a=wy.isRectangle(u)?u.getNearestPointToPoint(v):Ay.isEllipse(u)?u.intersectsWithLineFromCenterToPoint(v):u.closestPoint(v,y));const b=a?c.transformPoint(a,f):s;let S=i.offset||0;return!1!==i.stroked&&("object"===typeof S?(S=Object.assign({},S),null==S.x&&(S.x=0),S.x+=Ow(o)/2):S+=Ow(o)/2),Aw(b,e.start,S)};function Mw(e,t,n=0){const{start:i,end:r}=e;let o,a,s,l;switch(t){case"left":l="x",o=r,a=i,s=-1;break;case"right":l="x",o=i,a=r,s=1;break;case"top":l="y",o=r,a=i,s=-1;break;case"bottom":l="y",o=i,a=r,s=1;break;default:return}i[l]0?c[u]=l[u]:l[u]=c[u],[l.toJSON(),...e,c.toJSON()]};function Bw(e){return new wy(e.x,e.y,0,0)}function $w(e={}){const t=a.normalizeSides(e.padding||20);return{x:-t.left,y:-t.top,width:t.left+t.right,height:t.top+t.bottom}}function Vw(e,t={}){return e.sourceBBox.clone().moveAndExpand($w(t))}function Gw(e,t={}){return e.targetBBox.clone().moveAndExpand($w(t))}function Uw(e,t={}){if(e.sourceAnchor)return e.sourceAnchor;const n=Vw(e,t);return n.getCenter()}function zw(e,t={}){if(e.targetAnchor)return e.targetAnchor;const n=Gw(e,t);return n.getCenter()}const jw=function(e,t,n){let i=Vw(n,t),r=Gw(n,t);const o=Uw(n,t),a=zw(n,t);i=i.union(Bw(o)),r=r.union(Bw(a));const s=e.map(e=>xy.create(e));s.unshift(o),s.push(a);let l=null;const c=[];for(let u=0,d=s.length-1;ut.y?"N":"S":e.y===t.y?e.x>t.x?"W":"E":null}function s(e,n,i){const r=new xy(e.x,n.y),o=new xy(n.x,e.y),s=a(e,r),l=a(e,o),c=i?t[i]:null,u=s===i||s!==c&&(l===c||l!==i)?r:o;return{points:[u],direction:a(u,n)}}function l(e,t,n){const i=r(e,t,n);return{points:[i],direction:a(i,t)}}function c(e,t,n,s){const l=[new xy(e.x,t.y),new xy(t.x,e.y)],c=l.filter(e=>!n.containsPoint(e)),u=c.filter(t=>a(t,e)!==s);let d;if(u.length>0)return d=u.filter(t=>a(e,t)===s).pop(),d=d||u[0],{points:[d],direction:a(d,t)};{d=i.difference(l,c)[0];const u=xy.create(t).move(d,-o(n,s)/2),h=r(u,e,n);return{points:[h,u],direction:a(u,t)}}}function u(e,t,n,i){let r=l(t,e,i);const c=r.points[0];if(n.containsPoint(c)){r=l(e,t,n);const u=r.points[0];if(i.containsPoint(u)){const d=xy.create(e).move(u,-o(n,a(e,u))/2),h=xy.create(t).move(c,-o(i,a(t,c))/2),p=new Ty(d,h).getCenter(),f=l(e,p,n),g=s(p,t,f.direction);r.points=[f.points[0],g.points[0]],r.direction=g.direction}}return r}function d(e,t,i,o,s){const l=i.union(o).inflate(1),c=l.getCenter(),u=c.distance(t)>c.distance(e),d=u?t:e,h=u?e:t;let p,f,g,m;s?(p=xy.fromPolar(l.width+l.height,n[s],d),p=l.getNearestPointToPoint(p).move(p,-1)):p=l.getNearestPointToPoint(d).move(d,1),f=r(p,h,l),p.round().equals(f.round())?(f=xy.fromPolar(l.width+l.height,my.toRad(p.theta(d))+Math.PI/2,h),f=l.getNearestPointToPoint(f).move(h,1).round(),g=r(p,f,l),m=u?[f,g,p]:[p,g,f]):m=u?[f,p]:[p,f];const v=a(u?p:f,t);return{points:m,direction:v}}e.getBBoxSize=o,e.getBearing=a,e.vertexToVertex=s,e.nodeToVertex=l,e.vertexToNode=c,e.nodeToNode=u,e.insideNode=d})(Hw||(Hw={}));const Ww={step:10,maxLoopCount:2e3,precision:1,maxDirectionChange:90,perpendicular:!0,excludeTerminals:[],excludeShapes:[],startDirections:["top","right","bottom","left"],endDirections:["top","right","bottom","left"],directionMap:{top:{x:0,y:-1},right:{x:1,y:0},bottom:{x:0,y:1},left:{x:-1,y:0}},cost(){const e=Yw(this.step,this);return e},directions(){const e=Yw(this.step,this),t=Yw(this.cost,this);return[{cost:t,offsetX:e,offsetY:0},{cost:t,offsetX:0,offsetY:e},{cost:t,offsetX:-e,offsetY:0},{cost:t,offsetX:0,offsetY:-e}]},penalties(){const e=Yw(this.step,this);return{0:0,45:e/2,90:e/2}},paddingBox(){const e=Yw(this.step,this);return{x:-e,y:-e,width:2*e,height:2*e}},fallbackRouter:jw,draggingRouter:null};function Yw(e,t){return"function"===typeof e?e.call(t):e}function qw(e){const t=Object.keys(e).reduce((t,n)=>{const i=t;return i[n]="fallbackRouter"===n||"draggingRouter"===n||"fallbackRoute"===n?e[n]:Yw(e[n],e),t},{});if(t.padding){const n=a.normalizeSides(t.padding);e.paddingBox={x:-n.left,y:-n.top,width:n.left+n.right,height:n.top+n.bottom}}return t.directions.forEach(e=>{const t=new xy(0,0),n=new xy(e.offsetX,e.offsetY);e.angle=my.normalize(t.theta(n))}),t}const Kw=1,Qw=2;class Xw{constructor(){this.items=[],this.hash={},this.values={}}add(e,t){this.hash[e]?this.items.splice(this.items.indexOf(e),1):this.hash[e]=Kw,this.values[e]=t;const n=i.sortedIndexBy(this.items,e,e=>this.values[e]);this.items.splice(n,0,e)}pop(){const e=this.items.shift();return e&&(this.hash[e]=Qw),e}isOpen(e){return this.hash[e]===Kw}isClose(e){return this.hash[e]===Qw}isEmpty(){return 0===this.items.length}}class Zw{constructor(e){this.options=e,this.mapGridSize=100,this.map={}}build(e,t){const n=this.options,r=n.excludeTerminals.reduce((n,i)=>{const r=t[i];if(r){const t=e.getCell(r.cell);t&&n.push(t)}return n},[]);let o=[];const a=e.getCell(t.getSourceCellId());a&&(o=i.union(o,a.getAncestors().map(e=>e.id)));const s=e.getCell(t.getTargetCellId());s&&(o=i.union(o,s.getAncestors().map(e=>e.id)));const l=this.mapGridSize;return e.getNodes().reduce((e,t)=>{const i=t.shape,a=n.excludeShapes,s=!!i&&a.includes(i),c=r.some(e=>e.id===t.id),u=o.includes(t.id),d=s||c||u;if(!d){const i=t.getBBox().moveAndExpand(n.paddingBox),r=i.getOrigin().snapToGrid(l),o=i.getCorner().snapToGrid(l);for(let t=r.x;t<=o.x;t+=l)for(let n=r.y;n<=o.y;n+=l){const r=new xy(t,n).toString();null==e[r]&&(e[r]=[]),e[r].push(i)}}return e},this.map),this}isAccessible(e){const t=e.clone().snapToGrid(this.mapGridSize).toString(),n=this.map[t];return!n||n.every(t=>!t.containsPoint(e))}}function Jw(e,t){const n=e.sourceBBox.clone();return t&&t.paddingBox?n.moveAndExpand(t.paddingBox):n}function eT(e,t){const n=e.targetBBox.clone();return t&&t.paddingBox?n.moveAndExpand(t.paddingBox):n}function tT(e,t){if(e.sourceAnchor)return e.sourceAnchor;const n=Jw(e,t);return n.getCenter()}function nT(e,t){if(e.targetAnchor)return e.targetAnchor;const n=eT(e,t);return n.getCenter()}function iT(e,t,n,i,r){const o=360/n,a=e.theta(rT(e,t,i,r)),s=my.normalize(a+o/2);return o*Math.floor(s/o)}function rT(e,t,n,i){const r=i.step,o=t.x-e.x,a=t.y-e.y,s=o/n.x,l=a/n.y,c=s*r,u=l*r;return new xy(e.x+c,e.y+u)}function oT(e,t){const n=Math.abs(e-t);return n>180?360-n:n}function aT(e,t){const n=t.step;return t.directions.forEach(t=>{t.gridOffsetX=t.offsetX/n*e.x,t.gridOffsetY=t.offsetY/n*e.y}),t.directions}function sT(e,t,n){return{source:t.clone(),x:lT(n.x-t.x,e),y:lT(n.y-t.y,e)}}function lT(e,t){if(!e)return t;const n=Math.abs(e),i=Math.round(n/t);if(!i)return n;const r=i*t,o=n-r,a=o/i;return t+a}function cT(e,t){const n=t.source,i=yC.snapToGrid(e.x-n.x,t.x)+n.x,r=yC.snapToGrid(e.y-n.y,t.y)+n.y;return new xy(i,r)}function uT(e,t){return e.round(t)}function dT(e,t,n){return uT(cT(e.clone(),t),n)}function hT(e){return e.toString()}function pT(e){return new xy(0===e.x?0:Math.abs(e.x)/e.x,0===e.y?0:Math.abs(e.y)/e.y)}function fT(e,t){let n=1/0;for(let i=0,r=t.length;i{if(n.includes(l)){const n=a[l],c=new xy(e.x+n.x*(Math.abs(s.x)+t.width),e.y+n.y*(Math.abs(s.y)+t.height)),u=new Ty(e,c),d=u.intersect(t)||[];let h,p=null;for(let t=0;th)&&(h=i,p=n)}if(p){let e=dT(p,i,o);t.containsPoint(e)&&(e=dT(e.translate(n.x*i.x,n.y*i.y),i,o)),r.push(e)}}return r},[]);return t.containsPoint(e)||l.push(dT(e,i,o)),l}function mT(e,t,n,i,r){const o=[];let a,s=pT(r.diff(n)),l=hT(n),c=e[l];while(c){a=t[l];const n=pT(a.diff(c));n.equals(s)||(o.unshift(a),s=n),l=hT(c),c=e[l]}const u=t[l],d=pT(u.diff(i));return d.equals(s)||o.unshift(u),o}function vT(e,t,n,i,r){const o=r.precision;let a,l;a=wy.isRectangle(t)?uT(tT(e,r).clone(),o):uT(t.clone(),o),l=wy.isRectangle(n)?uT(nT(e,r).clone(),o):uT(n.clone(),o);const c=sT(r.step,a,l),u=a,d=l;let h,p;if(h=wy.isRectangle(t)?gT(u,t,r.startDirections,c,r):[u],p=wy.isRectangle(n)?gT(l,n,r.endDirections,c,r):[d],h=h.filter(e=>i.isAccessible(e)),p=p.filter(e=>i.isAccessible(e)),h.length>0&&p.length>0){const e=new Xw,t={},n={},a={};for(let i=0,r=h.length;i{const n=hT(t);return e.push(n),e},[]),y=xy.equalPoints(h,p);let b=r.maxLoopCount;while(!e.isEmpty()&&b>0){const h=e.pop(),S=t[h],E=n[h],C=a[h],x=S.equals(u),w=null==E;let T;T=w?l?x?null:iT(u,S,v,c,r):s:iT(E,S,v,c,r);const A=w&&y;if(!A&&_.indexOf(h)>=0)return r.previousDirectionAngle=T,mT(n,t,S,u,d);for(let s=0;sr.maxDirectionChange)continue;const h=dT(S.clone().translate(f.gridOffsetX||0,f.gridOffsetY||0),c,o),y=hT(h);if(e.isClose(y)||!i.isAccessible(h))continue;if(_.indexOf(y)>=0){const e=h.equals(d);if(!e){const e=iT(h,d,v,c,r),t=oT(u,e);if(t>r.maxDirectionChange)continue}}const b=f.cost,E=x?0:r.penalties[g],w=C+b+E;(!e.isOpen(y)||wxy.create(e)),u=[];let d,h,p=a;for(let f=0,g=c.length;f<=g;f+=1){let t=null;if(d=h||r,h=c[f],null==h){h=o;const e=n.cell,l=null==e.getSourceCellId()||null==e.getTargetCellId();if(l&&"function"===typeof i.draggingRouter){const e=d===r?a:d,o=h.getOrigin();t=s.call(i.draggingRouter,n,e,o,i)}}if(null==t&&(t=vT(n,d,h,l,i)),null===t)return s.call(i.fallbackRouter,this,e,i,n);const g=t[0];g&&g.equals(p)&&t.shift(),p=t[t.length-1]||p,u.push(...t)}return u},yT=function(e,t,n){return s.call(_T,this,e,Object.assign(Object.assign({},Ww),t),n)},bT={maxDirectionChange:45,directions(){const e=Yw(this.step,this),t=Yw(this.cost,this),n=Math.ceil(Math.sqrt(e*e<<1));return[{cost:t,offsetX:e,offsetY:0},{cost:n,offsetX:e,offsetY:e},{cost:t,offsetX:0,offsetY:e},{cost:n,offsetX:-e,offsetY:e},{cost:t,offsetX:-e,offsetY:0},{cost:n,offsetX:-e,offsetY:-e},{cost:t,offsetX:0,offsetY:-e},{cost:n,offsetX:e,offsetY:-e}]},fallbackRoute(e,t,n){const i=e.theta(t),r=[];let o={x:t.x,y:e.y},a={x:e.x,y:t.y};if(i%180>90){const e=o;o=a,a=e}const s=i%90<45?o:a,l=new Ty(e,s),c=90*Math.ceil(i/90),u=xy.fromPolar(l.squaredLength(),my.toRad(c+135),s),d=new Ty(t,u),h=l.intersectsWithLine(d),p=h||t,f=h?p:e,g=360/n.directions.length,m=f.theta(t),v=my.normalize(m+g/2),_=g*Math.floor(v/g);return n.previousDirectionAngle=_,p&&r.push(p.round()),r.push(t),r}},ST=function(e,t,n){return s.call(yT,this,e,Object.assign(Object.assign({},bT),t),n)},ET=function(e,t,n){const i=t.offset||32,r=null==t.min?16:t.min;let o=0,a=t.direction;const s=n.sourceBBox,l=n.targetBBox,c=s.getCenter(),u=l.getCenter();if("number"===typeof i&&(o=i),null==a){let e=l.left-s.right,t=l.top-s.bottom;e>=0&&t>=0?a=e>=t?"L":"T":e<=0&&t>=0?(e=s.left-l.right,a=e>=0&&e>=t?"R":"T"):e>=0&&t<=0?(t=s.top-l.bottom,a=t>=0?e>=t?"L":"B":"L"):(e=s.left-l.right,t=s.top-l.bottom,a=e>=0&&t>=0?e>=t?"R":"B":e<=0&&t>=0?"B":e>=0&&t<=0?"R":Math.abs(e)>Math.abs(t)?"R":"B")}let d,h,p;"H"===a?a=u.x-c.x>=0?"L":"R":"V"===a&&(a=u.y-c.y>=0?"T":"B"),"center"===i&&("L"===a?o=(l.left-s.right)/2:"R"===a?o=(s.left-l.right)/2:"T"===a?o=(l.top-s.bottom)/2:"B"===a&&(o=(s.top-l.bottom)/2));const f="L"===a||"R"===a;if(f){if(u.y===c.y)return[...e];p="L"===a?1:-1,d="x",h="width"}else{if(u.x===c.x)return[...e];p="T"===a?1:-1,d="y",h="height"}const g=c.clone(),m=u.clone();if(g[d]+=p*(s[h]/2+o),m[d]-=p*(l[h]/2+o),f){const e=g.x,t=m.x,n=s.width/2+r,i=l.width/2+r;u.x>c.x?t<=e&&(g.x=Math.max(t,c.x+n),m.x=Math.min(e,u.x-i)):t>=e&&(g.x=Math.min(t,c.x-n),m.x=Math.max(e,u.x+i))}else{const e=g.y,t=m.y,n=s.height/2+r,i=l.height/2+r;u.y>c.y?t<=e&&(g.y=Math.max(t,c.y+n),m.y=Math.min(e,u.y-i)):t>=e&&(g.y=Math.min(t,c.y-n),m.y=Math.max(e,u.y+i))}return[g.toJSON(),...e,m.toJSON()]};function CT(e,t){if(null!=t&&!1!==t){const n="boolean"===typeof t?0:t;if(n>0){const t=xy.create(e[1]).move(e[2],n),i=xy.create(e[1]).move(e[0],n);return[t.toJSON(),...e,i.toJSON()]}{const t=e[1];return[Object.assign({},t),...e,Object.assign({},t)]}}return e}const xT=function(e,t,n){const i=t.width||50,r=t.height||80,o=r/2,a=t.angle||"auto",s=n.sourceAnchor,l=n.targetAnchor,c=n.sourceBBox,u=n.targetBBox;if(s.equals(l)){const e=e=>{const t=my.toRad(e),n=Math.sin(t),r=Math.cos(t),a=new xy(s.x+r*i,s.y+n*i),l=new xy(a.x-r*o,a.y-n*o),c=l.clone().rotate(-90,a),u=l.clone().rotate(90,a);return[c.toJSON(),a.toJSON(),u.toJSON()]},n=e=>{const t=s.clone().move(e,-1),n=new Ty(t,e);return!c.containsPoint(e)&&!c.intersectsWithLine(n)},r=[0,90,180,270,45,135,225,315];if("number"===typeof a)return CT(e(a),t.merge);const l=c.getCenter();if(l.equals(s))return CT(e(0),t.merge);const u=l.angleBetween(s,l.clone().translate(1,0));let d=e(u);if(n(d[1]))return CT(d,t.merge);for(let i=1,o=r.length;i1&&(o.rotate(180-i,n),a.rotate(180-i,n),s.rotate(180-i,n))}const l=`\n M ${e.x} ${e.y}\n Q ${o.x} ${o.y} ${s.x} ${s.y}\n Q ${a.x} ${a.y} ${t.x} ${t.y}\n `;return i.raw?Ky.parse(l):l},OT=function(e,t,n,i={}){const r=new Ky;r.appendSegment(Ky.createSegment("M",e));const o=1/3,a=2/3,s=i.radius||10;let l,c;for(let u=0,d=n.length;u=Math.abs(e.y-t.y)?"H":"V"),"H"===o){const n=(e.x+t.x)/2;r.appendSegment(Ky.createSegment("C",n,e.y,n,t.y,t.x,t.y))}else{const n=(e.y+t.y)/2;r.appendSegment(Ky.createSegment("C",e.x,n,t.x,n,t.x,t.y))}return i.raw?r:r.serialize()},NT=1,DT=1/3,IT=2/3;function MT(e){let t=e.graph._jumpOverUpdateList;if(null==t&&(t=e.graph._jumpOverUpdateList=[],e.graph.on("cell:mouseup",()=>{const t=e.graph._jumpOverUpdateList;for(let e=0;e{t=e.graph._jumpOverUpdateList=[]})),t.indexOf(e)<0){t.push(e);const n=()=>t.splice(t.indexOf(e),1);e.cell.once("change:connector",n),e.cell.once("removed",n)}}function kT(e,t,n=[]){const i=[e,...n,t],r=[];return i.forEach((e,t)=>{const n=i[t+1];null!=n&&r.push(new Ty(e,n))}),r}function LT(e,t){const n=[];return t.forEach(t=>{const i=e.intersectsWithLine(t);i&&n.push(i)}),n}function PT(e,t){return new Ty(e,t).squaredLength()}function FT(e,t,n){return t.reduce((i,r,o)=>{if(GT.includes(r))return i;const a=i.pop()||e,s=xy.create(r).move(a.start,-n);let l=xy.create(r).move(a.start,+n);const c=t[o+1];if(null!=c){const e=l.distance(c);e<=n&&(l=c.move(a.start,e),GT.push(c))}else{const e=s.distance(a.end);if(e<2*n+NT)return i.push(a),i}const u=l.distance(a.start);if(u<2*n+NT)return i.push(a),i;const d=new Ty(s,l);return VT.push(d),i.push(new Ty(a.start,s),d,new Ty(l,a.end)),i},[])}function BT(e,t,n,i){const r=new Ky;let o;return o=Ky.createSegment("M",e[0].start),r.appendSegment(o),e.forEach((a,s)=>{if(VT.includes(a)){let e,i,s,l;if("arc"===n){e=-90,i=a.start.diff(a.end);const t=i.x<0||0===i.x&&i.y<0;t&&(e+=180);const n=a.getCenter(),c=new Ty(n,a.end).rotate(e,n);let u;u=new Ty(a.start,n),s=u.pointAt(2/3).rotate(e,a.start),l=c.pointAt(1/3).rotate(-e,c.end),o=Ky.createSegment("C",s,l,c.end),r.appendSegment(o),u=new Ty(n,a.end),s=c.pointAt(1/3).rotate(e,c.end),l=u.pointAt(1/3).rotate(-e,a.end),o=Ky.createSegment("C",s,l,a.end),r.appendSegment(o)}else if("gap"===n)o=Ky.createSegment("M",a.end),r.appendSegment(o);else if("cubic"===n){e=a.start.theta(a.end);const n=.6*t;let c=1.35*t;i=a.start.diff(a.end);const u=i.x<0||0===i.x&&i.y<0;u&&(c*=-1),s=new xy(a.start.x+n,a.start.y+c).rotate(e,a.start),l=new xy(a.end.x-n,a.end.y+c).rotate(e,a.end),o=Ky.createSegment("C",s,l,a.end),r.appendSegment(o)}}else{const t=e[s+1];0===i||!t||VT.includes(t)?(o=Ky.createSegment("L",a.end),r.appendSegment(o)):$T(i,r,a.end,a.start,t.end)}}),r}function $T(e,t,n,i,r){const o=n.distance(i)/2,a=n.distance(r)/2,s=-Math.min(e,o),l=-Math.min(e,a),c=n.clone().move(i,s).round(),u=n.clone().move(r,l).round(),d=new xy(DT*c.x+IT*n.x,IT*n.y+DT*c.y),h=new xy(DT*u.x+IT*n.x,IT*n.y+DT*u.y);let p;p=Ky.createSegment("L",c),t.appendSegment(p),p=Ky.createSegment("C",d,h,u),t.appendSegment(p)}let VT,GT;const UT=function(e,t,n,i={}){VT=[],GT=[],MT(this);const r=i.size||5,o=i.type||"arc",a=i.radius||0,s=i.ignoreConnectors||["smooth"],l=this.graph,c=l.model,u=c.getEdges();if(1===u.length)return BT(kT(e,t,n),r,o,a);const d=this.cell,h=u.indexOf(d),p=l.options.connecting.connector||{},f=u.filter((e,t)=>{const n=e.getConnector()||p;return!s.includes(n.name)&&(!(t>h)||"jumpover"!==n.name)}),g=f.map(e=>{return l.renderer.findViewByCell(e)}),m=kT(e,t,n),v=g.map(e=>{return null==e?[]:e===this?m:kT(e.sourcePoint,e.targetPoint,e.routePoints)}),_=[];m.forEach(e=>{const t=f.reduce((t,n,i)=>{if(n!==d){const n=LT(e,v[i]);t.push(...n)}return t},[]).sort((t,n)=>PT(e.start,t)-PT(e.start,n));t.length>0?_.push(...FT(e,t,r)):_.push(e)});const y=BT(_,r,o,a);return VT=[],GT=[],i.raw?y:y.serialize()};var zT;(function(e){e.presets=C,e.registry=gS.create({type:"connector"}),e.registry.register(e.presets,!0)})(zT||(zT={}));const jT=gS.create;class HT{constructor(e){this.cell=e,this.ids={},this.cache={}}get(){return Object.keys(this.ids)}start(e,t,n={},i="/"){const o=this.cell.getPropByPath(e),a=r.defaults(n,HT.defaultOptions),s=this.getTiming(a.timing),l=this.getInterp(a.interp,o,t);let u=0;const d=Array.isArray(e)?e.join(i):e,h=Array.isArray(e)?e:e.split(i),p=()=>{const e=(new Date).getTime();0===u&&(u=e);const t=e-u;let i=t/a.duration;i<1?this.ids[d]=c.requestAnimationFrame(p):i=1;const r=l(s(i));this.cell.setPropByPath(h,r),n.progress&&n.progress(Object.assign({progress:i,currentValue:r},this.getArgs(d))),1===i&&(this.cell.notify("transition:end",this.getArgs(d)),this.cell.notify("transition:complete",this.getArgs(d)),n.complete&&n.complete(this.getArgs(d)),this.cell.notify("transition:finish",this.getArgs(d)),n.finish&&n.finish(this.getArgs(d)),this.clean(d))};return setTimeout(()=>{this.stop(e,void 0,i),this.cache[d]={startValue:o,targetValue:t,options:a},this.ids[d]=c.requestAnimationFrame(p),this.cell.notify("transition:begin",this.getArgs(d)),this.cell.notify("transition:start",this.getArgs(d)),n.start&&n.start(this.getArgs(d))},n.delay),this.stop.bind(this,e,i,n)}stop(e,t={},n="/"){const i=Array.isArray(e)?e:e.split(n);return Object.keys(this.ids).filter(e=>r.isEqual(i,e.split(n).slice(0,i.length))).forEach(e=>{c.cancelAnimationFrame(this.ids[e]);const n=this.cache[e],i=this.getArgs(e),r=Object.assign(Object.assign({},n.options),t),o=r.jumpedToEnd;o&&null!=n.targetValue&&(this.cell.setPropByPath(e,n.targetValue),this.cell.notify("transition:end",Object.assign({},i)),this.cell.notify("transition:complete",Object.assign({},i)),r.complete&&r.complete(Object.assign({},i)));const a=Object.assign({jumpedToEnd:o},i);this.cell.notify("transition:stop",Object.assign({},a)),r.stop&&r.stop(Object.assign({},a)),this.cell.notify("transition:finish",Object.assign({},i)),r.finish&&r.finish(Object.assign({},i)),this.clean(e)}),this}clean(e){delete this.ids[e],delete this.cache[e]}getTiming(e){return"string"===typeof e?gx[e]:e}getInterp(e,t,n){return e?e(t,n):"number"===typeof n?mx.number(t,n):"string"===typeof n?"#"===n[0]?mx.color(t,n):mx.unit(t,n):mx.object(t,n)}getArgs(e){const t=this.cache[e];return{path:e,startValue:t.startValue,targetValue:t.targetValue,cell:this.cell}}}(function(e){e.defaultOptions={delay:10,duration:100,timing:"linear"}})(HT||(HT={}));var WT=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class YT extends hx{constructor(e={}){super(),this.pending=!1,this.changing=!1,this.data={},this.mutate(r.cloneDeep(e)),this.changed={}}mutate(e,t={}){const n=!0===t.unset,i=!0===t.silent,o=[],a=this.changing;this.changing=!0,a||(this.previous=r.cloneDeep(this.data),this.changed={});const s=this.data,l=this.previous,c=this.changed;if(Object.keys(e).forEach(t=>{const i=t,a=e[i];r.isEqual(s[i],a)||o.push(i),r.isEqual(l[i],a)?delete c[i]:c[i]=a,n?delete s[i]:s[i]=a}),!i&&o.length>0&&(this.pending=!0,this.pendingOptions=t,o.forEach(e=>{this.emit("change:*",{key:e,options:t,store:this,current:s[e],previous:l[e]})})),a)return this;if(!i)while(this.pending)this.pending=!1,this.emit("changed",{current:s,previous:l,store:this,options:this.pendingOptions});return this.pending=!1,this.changing=!1,this.pendingOptions=null,this}get(e,t){if(null==e)return this.data;const n=this.data[e];return null==n?t:n}getPrevious(e){if(this.previous){const t=this.previous[e];return null==t?void 0:t}}set(e,t,n){return null!=e&&("object"===typeof e?this.mutate(e,t):this.mutate({[e]:t},n)),this}remove(e,t){const n=void 0,i={};let r;if("string"===typeof e)i[e]=n,r=t;else if(Array.isArray(e))e.forEach(e=>i[e]=n),r=t;else{for(const e in this.data)i[e]=n;r=e}return this.mutate(i,Object.assign(Object.assign({},r),{unset:!0})),this}getByPath(e){return r.getByPath(this.data,e,"/")}setByPath(e,t,n={}){const i="/",o=Array.isArray(e)?[...e]:e.split(i),a=Array.isArray(e)?e.join(i):e,s=o[0],l=o.length;if(n.propertyPath=a,n.propertyValue=t,n.propertyPathArray=o,1===l)this.set(s,t,n);else{const a={};let c=a,u=s;for(let e=1;e0:e in this.changed}getChanges(e){if(null==e)return this.hasChanged()?r.cloneDeep(this.changed):null;const t=this.changing?this.previous:this.data,n={};let i;for(const o in e){const a=e[o];r.isEqual(t[o],a)||(n[o]=a,i=!0)}return i?r.cloneDeep(n):null}toJSON(){return r.cloneDeep(this.data)}clone(){const e=this.constructor;return new e(this.data)}dispose(){this.off(),this.data={},this.previous={},this.changed={},this.pending=!1,this.changing=!1,this.pendingOptions=null,this.trigger("disposed",{store:this})}}WT([hx.dispose()],YT.prototype,"dispose",null);var qT,KT=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},QT=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const t=n[e];"function"===typeof t&&this.propHooks.push(t)})),i&&(this.attrHooks=Object.assign(Object.assign({},this.attrHooks),i)),this.defaults=r.merge({},this.defaults,o)}static getMarkup(){return this.markup}static getDefaults(e){return e?this.defaults:r.cloneDeep(this.defaults)}static getAttrHooks(){return this.attrHooks}static applyPropHooks(e,t){return this.propHooks.reduce((t,n)=>{return n?s.call(n,e,t):t},t)}get[Symbol.toStringTag](){return XT.toStringTag}init(){}get model(){return this._model}set model(e){this._model!==e&&(this._model=e)}preprocess(e,t){const n=e.id,i=this.constructor,r=i.applyPropHooks(this,e);return null==n&&!0!==t&&(r.id=o.uuid()),r}postprocess(e){}setup(){this.store.on("change:*",e=>{const{key:t,current:n,previous:i,options:r}=e;this.notify("change:*",{key:t,options:r,current:n,previous:i,cell:this}),this.notify(`change:${t}`,{options:r,current:n,previous:i,cell:this});const o=t;"source"!==o&&"target"!==o||this.notify("change:terminal",{type:o,current:n,previous:i,options:r,cell:this})}),this.store.on("changed",({options:e})=>this.notify("changed",{options:e,cell:this}))}notify(e,t){this.trigger(e,t);const n=this.model;return n&&(n.notify(`cell:${e}`,t),this.isNode()?n.notify(`node:${e}`,Object.assign(Object.assign({},t),{node:this})):this.isEdge()&&n.notify(`edge:${e}`,Object.assign(Object.assign({},t),{edge:this}))),this}isNode(){return!1}isEdge(){return!1}isSameStore(e){return this.store===e.store}get view(){return this.store.get("view")}get shape(){return this.store.get("shape","")}getProp(e,t){return null==e?this.store.get():this.store.get(e,t)}setProp(e,t,n){if("string"===typeof e)this.store.set(e,t,n);else{const n=this.preprocess(e,!0);this.store.set(r.merge({},this.getProp(),n),t),this.postprocess(e)}return this}removeProp(e,t){return"string"===typeof e||Array.isArray(e)?this.store.removeByPath(e,t):this.store.remove(t),this}hasChanged(e){return null==e?this.store.hasChanged():this.store.hasChanged(e)}getPropByPath(e){return this.store.getByPath(e)}setPropByPath(e,t,n={}){return this.model&&("children"===e?this._children=t?t.map(e=>this.model.getCell(e)).filter(e=>null!=e):null:"parent"===e&&(this._parent=t?this.model.getCell(t):null)),this.store.setByPath(e,t,n),this}removePropByPath(e,t={}){const n=Array.isArray(e)?e:e.split("/");return"attrs"===n[0]&&(t.dirty=!0),this.store.removeByPath(n,t),this}prop(e,t,n){return null==e?this.getProp():"string"===typeof e||Array.isArray(e)?1===arguments.length?(Array.isArray(e),this.getPropByPath(e)):null==t?Array.isArray(e)?this.removePropByPath(e):this.removeAttrByPath(e,n||{}):this.setPropByPath(e,t,n||{}):this.setProp(e,t||{})}previous(e){return this.store.getPrevious(e)}get zIndex(){return this.getZIndex()}set zIndex(e){null==e?this.removeZIndex():this.setZIndex(e)}getZIndex(){return this.store.get("zIndex")}setZIndex(e,t={}){return this.store.set("zIndex",e,t),this}removeZIndex(e={}){return this.store.remove("zIndex",e),this}toFront(e={}){const t=this.model;if(t){let n,i=t.getMaxZIndex();e.deep?(n=this.getDescendants({deep:!0,breadthFirst:!0}),n.unshift(this)):n=[this],i=i-n.length+1;const r=t.total();let o=t.indexOf(this)!==r-n.length;o||(o=n.some((e,t)=>e.getZIndex()!==i+t)),o&&this.batchUpdate("to-front",()=>{i+=n.length,n.forEach((t,n)=>{t.setZIndex(i+n,e)})})}return this}toBack(e={}){const t=this.model;if(t){let n,i=t.getMinZIndex();e.deep?(n=this.getDescendants({deep:!0,breadthFirst:!0}),n.unshift(this)):n=[this];let r=0!==t.indexOf(this);r||(r=n.some((e,t)=>e.getZIndex()!==i+t)),r&&this.batchUpdate("to-back",()=>{i-=n.length,n.forEach((t,n)=>{t.setZIndex(i+n,e)})})}return this}get markup(){return this.getMarkup()}set markup(e){null==e?this.removeMarkup():this.setMarkup(e)}getMarkup(){let e=this.store.get("markup");if(null==e){const t=this.constructor;e=t.getMarkup()}return e}setMarkup(e,t={}){return this.store.set("markup",e,t),this}removeMarkup(e={}){return this.store.remove("markup",e),this}get attrs(){return this.getAttrs()}set attrs(e){null==e?this.removeAttrs():this.setAttrs(e)}getAttrs(){const e=this.store.get("attrs");return e?Object.assign({},e):{}}setAttrs(e,t={}){if(null==e)this.removeAttrs(t);else{const n=e=>this.store.set("attrs",e,t);if(!0===t.overwrite)n(e);else{const i=this.getAttrs();!1===t.deep?n(Object.assign(Object.assign({},i),e)):n(r.merge({},i,e))}}return this}replaceAttrs(e,t={}){return this.setAttrs(e,Object.assign(Object.assign({},t),{overwrite:!0}))}updateAttrs(e,t={}){return this.setAttrs(e,Object.assign(Object.assign({},t),{deep:!1}))}removeAttrs(e={}){return this.store.remove("attrs",e),this}getAttrDefinition(e){if(!e)return null;const t=this.constructor,n=t.getAttrHooks()||{};let i=n[e]||YE.registry.get(e);if(!i){const t=o.camelCase(e);i=n[t]||YE.registry.get(t)}return i||null}getAttrByPath(e){return null==e||""===e?this.getAttrs():this.getPropByPath(this.prefixAttrPath(e))}setAttrByPath(e,t,n={}){return this.setPropByPath(this.prefixAttrPath(e),t,n),this}removeAttrByPath(e,t={}){return this.removePropByPath(this.prefixAttrPath(e),t),this}prefixAttrPath(e){return Array.isArray(e)?["attrs"].concat(e):`attrs/${e}`}attr(e,t,n){return null==e?this.getAttrByPath():"string"===typeof e||Array.isArray(e)?1===arguments.length?this.getAttrByPath(e):null==t?this.removeAttrByPath(e,n||{}):this.setAttrByPath(e,t,n||{}):this.setAttrs(e,t||{})}get visible(){return this.isVisible()}set visible(e){this.setVisible(e)}setVisible(e,t={}){return this.store.set("visible",e,t),this}isVisible(){return!1!==this.store.get("visible")}show(e={}){return this.isVisible()||this.setVisible(!0,e),this}hide(e={}){return this.isVisible()&&this.setVisible(!1,e),this}toggleVisible(e,t={}){const n="boolean"===typeof e?e:!this.isVisible(),i="boolean"===typeof e?t:e;return n?this.show(i):this.hide(i),this}get data(){return this.getData()}set data(e){this.setData(e)}getData(){return this.store.get("data")}setData(e,t={}){if(null==e)this.removeData(t);else{const n=e=>this.store.set("data",e,t);if(!0===t.overwrite)n(e);else{const i=this.getData();!1===t.deep?n("object"===typeof e?Object.assign(Object.assign({},i),e):e):n(r.merge({},i,e))}}return this}replaceData(e,t={}){return this.setData(e,Object.assign(Object.assign({},t),{overwrite:!0}))}updateData(e,t={}){return this.setData(e,Object.assign(Object.assign({},t),{deep:!1}))}removeData(e={}){return this.store.remove("data",e),this}get parent(){return this.getParent()}get children(){return this.getChildren()}getParentId(){return this.store.get("parent")}getParent(){const e=this.getParentId();if(e&&this.model){const t=this.model.getCell(e);return this._parent=t,t}return null}getChildren(){const e=this.store.get("children");if(e&&e.length&&this.model){const t=e.map(e=>{var t;return null===(t=this.model)||void 0===t?void 0:t.getCell(e)}).filter(e=>null!=e);return this._children=t,[...t]}return null}hasParent(){return null!=this.parent}isParentOf(e){return null!=e&&e.getParent()===this}isChildOf(e){return null!=e&&this.getParent()===e}eachChild(e,t){return this.children&&this.children.forEach(e,t),this}filterChild(e,t){return this.children?this.children.filter(e,t):[]}getChildCount(){return null==this.children?0:this.children.length}getChildIndex(e){return null==this.children?-1:this.children.indexOf(e)}getChildAt(e){return null!=this.children&&e>=0?this.children[e]:null}getAncestors(e={}){const t=[];let n=this.getParent();while(n)t.push(n),n=!1!==e.deep?n.getParent():null;return t}getDescendants(e={}){if(!1!==e.deep){if(e.breadthFirst){const e=[],t=this.getChildren()||[];while(t.length>0){const n=t.shift(),i=n.getChildren();e.push(n),i&&t.push(...i)}return e}{const t=this.getChildren()||[];return t.forEach(n=>{t.push(...n.getDescendants(e))}),t}}return this.getChildren()||[]}isDescendantOf(e,t={}){if(null==e)return!1;if(!1!==t.deep){let t=this.getParent();while(t){if(t===e)return!0;t=t.getParent()}return!1}return this.isChildOf(e)}isAncestorOf(e,t={}){return null!=e&&e.isDescendantOf(this,t)}contains(e){return this.isAncestorOf(e)}getCommonAncestor(...e){return XT.getCommonAncestor(this,...e)}setParent(e,t={}){return this._parent=e,e?this.store.set("parent",e.id,t):this.store.remove("parent",t),this}setChildren(e,t={}){return this._children=e,null!=e?this.store.set("children",e.map(e=>e.id),t):this.store.remove("children",t),this}unembed(e,t={}){const n=this.children;if(null!=n&&null!=e){const i=this.getChildIndex(e);-1!==i&&(n.splice(i,1),e.setParent(null,t),this.setChildren(n,t))}return this}embed(e,t={}){return e.addTo(this,t),this}addTo(e,t={}){return XT.isCell(e)?e.addChild(this,t):e.addCell(this,t),this}insertTo(e,t,n={}){return e.insertChild(this,t,n),this}addChild(e,t={}){return this.insertChild(e,void 0,t)}insertChild(e,t,n={}){if(null!=e&&e!==this){const i=e.getParent(),r=this!==i;let o=t;if(null==o&&(o=this.getChildCount(),r||(o-=1)),i){const t=i.getChildren();if(t){const r=t.indexOf(e);r>=0&&(e.setParent(null,n),t.splice(r,1),i.setChildren(t,n))}}let a=this.children;if(null==a?(a=[],a.push(e)):a.splice(o,0,e),e.setParent(this,n),this.setChildren(a,n),r&&this.model){const e=this.model.getIncomingEdges(this),t=this.model.getOutgoingEdges(this);e&&e.forEach(e=>e.updateParent(n)),t&&t.forEach(e=>e.updateParent(n))}this.model&&this.model.addCell(e,n)}return this}removeFromParent(e={}){const t=this.getParent();if(null!=t){const n=t.getChildIndex(this);t.removeChildAt(n,e)}return this}removeChild(e,t={}){const n=this.getChildIndex(e);return this.removeChildAt(n,t)}removeChildAt(e,t={}){const n=this.getChildAt(e),i=this.children;return null!=i&&null!=n&&(this.unembed(n,t),n.remove(t)),n}remove(e={}){return this.batchUpdate("remove",()=>{const t=this.getParent();t&&t.removeChild(this,e),!1!==e.deep&&this.eachChild(t=>t.remove(e)),this.model&&this.model.removeCell(this,e)}),this}transition(e,t,n={},i="/"){return this.animation.start(e,t,n,i)}stopTransition(e,t,n="/"){return this.animation.stop(e,t,n),this}getTransitions(){return this.animation.get()}translate(e,t,n){return this}scale(e,t,n,i){return this}addTools(e,t,n){const i=Array.isArray(e)?e:[e],o="string"===typeof t?t:null,a="object"===typeof t?t:"object"===typeof n?n:{};if(a.reset)return this.setTools({name:o,items:i,local:a.local},a);let s=r.cloneDeep(this.getTools());return null==s||null==o||s.name===o?(null==s&&(s={}),s.items||(s.items=[]),s.name=o,s.items=[...s.items,...i],this.setTools(Object.assign({},s),a)):void 0}setTools(e,t={}){return null==e?this.removeTools():this.store.set("tools",XT.normalizeTools(e),t),this}getTools(){return this.store.get("tools")}removeTools(e={}){return this.store.remove("tools",e),this}hasTools(e){const t=this.getTools();return null!=t&&(null==e||t.name===e)}hasTool(e){const t=this.getTools();return null!=t&&t.items.some(t=>"string"===typeof t?t===e:t.name===e)}removeTool(e,t={}){const n=r.cloneDeep(this.getTools());if(n){let i=!1;const r=n.items.slice(),o=e=>{r.splice(e,1),i=!0};if("number"===typeof e)o(e);else for(let t=r.length-1;t>=0;t-=1){const n=r[t],i="string"===typeof n?n===e:n.name===e;i&&o(t)}i&&(n.items=r,this.setTools(n,t))}return this}getBBox(e){return new wy}getConnectionPoint(e,t){return new xy}toJSON(e={}){const t=Object.assign({},this.store.get()),n=Object.prototype.toString,i=this.isNode()?"node":this.isEdge()?"edge":"cell";if(!t.shape){const e=this.constructor;throw new Error(`Unable to serialize ${i} missing "shape" prop, check the ${i} "${e.name||n.call(e)}"`)}const o=this.constructor,a=!0===e.diff,s=t.attrs||{},l=o.getDefaults(!0),c=a?this.preprocess(l,!0):l,u=c.attrs||{},d={};Object.keys(t).forEach(e=>{const o=t[e];if(null!=o&&!Array.isArray(o)&&"object"===typeof o&&!r.isPlainObject(o))throw new Error(`Can only serialize ${i} with plain-object props, but got a "${n.call(o)}" type of key "${e}" on ${i} "${this.id}"`);if("attrs"!==e&&"shape"!==e&&a){const n=c[e];r.isEqual(o,n)&&delete t[e]}}),Object.keys(s).forEach(e=>{const t=s[e],n=u[e];Object.keys(t).forEach(i=>{const o=t[i],a=n?n[i]:null;null==o||"object"!==typeof o||Array.isArray(o)?null!=n&&r.isEqual(a,o)||(null==d[e]&&(d[e]={}),d[e][i]=o):Object.keys(o).forEach(t=>{const s=o[t];if(null==n||null==a||!r.isObject(a)||!r.isEqual(a[t],s)){null==d[e]&&(d[e]={}),null==d[e][i]&&(d[e][i]={});const n=d[e][i];n[t]=s}})})});const h=Object.assign(Object.assign({},t),{attrs:r.isEmpty(d)?void 0:d});null==h.attrs&&delete h.attrs;const p=h;return 0===p.angle&&delete p.angle,r.cloneDeep(p)}clone(e={}){if(!e.deep){const e=Object.assign({},this.store.get());delete e.id,delete e.parent,delete e.children;const t=this.constructor;return new t(e)}const t=XT.deepClone(this);return t[this.id]}findView(e){return e.renderer.findViewByCell(this)}startBatch(e,t={},n=this.model){return this.notify("batch:start",{name:e,data:t,cell:this}),n&&n.startBatch(e,Object.assign(Object.assign({},t),{cell:this})),this}stopBatch(e,t={},n=this.model){return n&&n.stopBatch(e,Object.assign(Object.assign({},t),{cell:this})),this.notify("batch:stop",{name:e,data:t,cell:this}),this}batchUpdate(e,t,n){const i=this.model;this.startBatch(e,n,i);const r=t();return this.stopBatch(e,n,i),r}dispose(){this.removeFromParent(),this.store.dispose()}}XT.defaults={},XT.attrHooks={},XT.propHooks=[],KT([hx.dispose()],XT.prototype,"dispose",null),function(e){function t(e){return"string"===typeof e?{items:[e]}:Array.isArray(e)?{items:e}:e.items?e:{items:[e]}}e.normalizeTools=t}(XT||(XT={})),function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&"function"===typeof i.isNode&&"function"===typeof i.isEdge&&"function"===typeof i.prop&&"function"===typeof i.attr}e.toStringTag=`X6.${e.name}`,e.isCell=t}(XT||(XT={})),function(e){function t(...e){const t=e.filter(e=>null!=e).map(e=>e.getAncestors()).sort((e,t)=>{return e.length-t.length}),n=t.shift();return n.find(e=>t.every(t=>t.includes(e)))||null}function n(e,t={}){let n=null;for(let i=0,r=e.length;i{return e[t.id]=t.clone(),e},{});return t.forEach(e=>{const t=n[e.id];if(t.isEdge()){const e=t.getSourceCellId(),i=t.getTargetCellId();e&&n[e]&&t.setSource(Object.assign(Object.assign({},t.getSource()),{cell:n[e].id})),i&&n[i]&&t.setTarget(Object.assign(Object.assign({},t.getTarget()),{cell:n[i].id}))}const i=e.getParent();i&&n[i.id]&&t.setParent(n[i.id]);const r=e.getChildren();if(r&&r.length){const e=r.reduce((e,t)=>{return n[t.id]&&e.push(n[t.id]),e},[]);e.length>0&&t.setChildren(e)}}),n}e.getCommonAncestor=t,e.getCellsBBox=n,e.deepClone=r,e.cloneCells=o}(XT||(XT={})),function(e){e.config({propHooks(t){var{tools:n}=t,i=QT(t,["tools"]);return n&&(i.tools=e.normalizeTools(n)),i}})}(XT||(XT={})),function(e){let t,n;function i(e,i){return i?null!=t&&t.exist(e):null!=n&&n.exist(e)}function r(e){t=e}function o(e){n=e}e.exist=i,e.setEdgeRegistry=r,e.setNodeRegistry=o}(qT||(qT={}));class ZT{constructor(e){this.ports=[],this.groups={},this.init(r.cloneDeep(e))}getPorts(){return this.ports}getGroup(e){return null!=e?this.groups[e]:null}getPortsByGroup(e){return this.ports.filter(t=>t.group===e||null==t.group&&null==e)}getPortsLayoutByGroup(e,t){const n=this.getPortsByGroup(e),i=e?this.getGroup(e):null,r=i?i.position:null,o=r?r.name:null;let a;if(null!=o){const e=UC.registry.get(o);if(null==e)return UC.registry.onNotFound(o);a=e}else a=UC.presets.left;const s=n.map(e=>e&&e.position&&e.position.args||{}),l=r&&r.args||{},c=a(s,t,l);return c.map((e,i)=>{const r=n[i];return{portLayout:e,portId:r.id,portSize:r.size,portAttrs:r.attrs,labelSize:r.label.size,labelLayout:this.getPortLabelLayout(r,xy.create(e.position),t)}})}init(e){const{groups:t,items:n}=e;null!=t&&Object.keys(t).forEach(e=>{this.groups[e]=this.parseGroup(t[e])}),Array.isArray(n)&&n.forEach(e=>{this.ports.push(this.parsePort(e))})}parseGroup(e){return Object.assign(Object.assign({},e),{label:this.getLabel(e,!0),position:this.getPortPosition(e.position,!0)})}parsePort(e){const t=Object.assign({},e),n=this.getGroup(e.group)||{};return t.markup=t.markup||n.markup,t.attrs=r.merge({},n.attrs,t.attrs),t.position=this.createPosition(n,t),t.label=r.merge({},n.label,this.getLabel(t)),t.zIndex=this.getZIndex(n,t),t.size=Object.assign(Object.assign({},n.size),t.size),t}getZIndex(e,t){return"number"===typeof t.zIndex?t.zIndex:"number"===typeof e.zIndex||"auto"===e.zIndex?e.zIndex:"auto"}createPosition(e,t){return r.merge({name:"left",args:{}},e.position,{args:t.args})}getPortPosition(e,t=!1){if(null==e){if(t)return{name:"left",args:{}}}else{if("string"===typeof e)return{name:e,args:{}};if(Array.isArray(e))return{name:"absolute",args:{x:e[0],y:e[1]}};if("object"===typeof e)return e}return{args:{}}}getPortLabelPosition(e,t=!1){if(null==e){if(t)return{name:"left",args:{}}}else{if("string"===typeof e)return{name:e,args:{}};if("object"===typeof e)return e}return{args:{}}}getLabel(e,t=!1){const n=e.label||{};return n.position=this.getPortLabelPosition(n.position,t),n}getPortLabelLayout(e,t,n){const i=e.label.position.name||"left",r=e.label.position.args||{},o=ax.registry.get(i)||ax.presets.left;return o?o(t,n,r):null}}var JT=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var r;const o=null===(r=n.exclude)||void 0===r?void 0:r.includes(i);o||i.translate(e,t,n)})):(this.startBatch("translate",n),this.store.set("position",r,n),this.eachChild(i=>{var r;const o=null===(r=n.exclude)||void 0===r?void 0:r.includes(i);o||i.translate(e,t,n)}),this.stopBatch("translate",n)),this}angle(e,t){return null==e?this.getAngle():this.rotate(e,t)}getAngle(){return this.store.get("angle",0)}rotate(e,t={}){const n=this.getAngle();if(t.center){const i=this.getSize(),r=this.getPosition(),o=this.getBBox().getCenter();o.rotate(n-e,t.center);const a=o.x-i.width/2-r.x,s=o.y-i.height/2-r.y;this.startBatch("rotate",{angle:e,options:t}),this.setPosition(r.x+a,r.y+s,t),this.rotate(e,Object.assign(Object.assign({},t),{center:null})),this.stopBatch("rotate")}else this.store.set("angle",t.absolute?e:(n+e)%360,t);return this}getBBox(e={}){if(e.deep){const e=this.getDescendants({deep:!0,breadthFirst:!0});return e.push(this),XT.getCellsBBox(e)}return wy.fromPositionAndSize(this.getPosition(),this.getSize())}getConnectionPoint(e,t){const n=this.getBBox(),i=n.getCenter(),r=e.getTerminal(t);if(null==r)return i;const o=r.port;if(!o||!this.hasPort(o))return i;const a=this.getPort(o);if(!a||!a.group)return i;const s=this.getPortsPosition(a.group),l=s[o].position,c=xy.create(l).translate(n.getOrigin()),u=this.getAngle();return u&&c.rotate(-u,i),c}fit(e={}){const t=this.getChildren()||[],n=t.filter(e=>e.isNode());if(0===n.length)return this;this.startBatch("fit-embeds",e),e.deep&&n.forEach(t=>t.fit(e));let{x:i,y:r,width:o,height:s}=XT.getCellsBBox(n);const l=a.normalizeSides(e.padding);return i-=l.left,r-=l.top,o+=l.left+l.right,s+=l.bottom+l.top,this.store.set({position:{x:i,y:r},size:{width:o,height:s}},e),this.stopBatch("fit-embeds"),this}get portContainerMarkup(){return this.getPortContainerMarkup()}set portContainerMarkup(e){this.setPortContainerMarkup(e)}getDefaultPortContainerMarkup(){return this.store.get("defaultPortContainerMarkup")||Dx.getPortContainerMarkup()}getPortContainerMarkup(){return this.store.get("portContainerMarkup")||this.getDefaultPortContainerMarkup()}setPortContainerMarkup(e,t={}){return this.store.set("portContainerMarkup",Dx.clone(e),t),this}get portMarkup(){return this.getPortMarkup()}set portMarkup(e){this.setPortMarkup(e)}getDefaultPortMarkup(){return this.store.get("defaultPortMarkup")||Dx.getPortMarkup()}getPortMarkup(){return this.store.get("portMarkup")||this.getDefaultPortMarkup()}setPortMarkup(e,t={}){return this.store.set("portMarkup",Dx.clone(e),t),this}get portLabelMarkup(){return this.getPortLabelMarkup()}set portLabelMarkup(e){this.setPortLabelMarkup(e)}getDefaultPortLabelMarkup(){return this.store.get("defaultPortLabelMarkup")||Dx.getPortLabelMarkup()}getPortLabelMarkup(){return this.store.get("portLabelMarkup")||this.getDefaultPortLabelMarkup()}setPortLabelMarkup(e,t={}){return this.store.set("portLabelMarkup",Dx.clone(e),t),this}get ports(){const e=this.store.get("ports",{items:[]});return null==e.items&&(e.items=[]),e}getPorts(){return r.cloneDeep(this.ports.items)}getPortsByGroup(e){return this.getPorts().filter(t=>t.group===e)}getPort(e){return r.cloneDeep(this.ports.items.find(t=>t.id&&t.id===e))}getPortAt(e){return this.ports.items[e]||null}hasPorts(){return this.ports.items.length>0}hasPort(e){return-1!==this.getPortIndex(e)}getPortIndex(e){const t="string"===typeof e?e:e.id;return null!=t?this.ports.items.findIndex(e=>e.id===t):-1}getPortsPosition(e){const t=this.getSize(),n=this.port.getPortsLayoutByGroup(e,new wy(0,0,t.width,t.height));return n.reduce((e,t)=>{const n=t.portLayout;return e[t.portId]={position:Object.assign({},n.position),angle:n.angle||0},e},{})}getPortProp(e,t){return this.getPropByPath(this.prefixPortPath(e,t))}setPortProp(e,t,n,i){if("string"===typeof t||Array.isArray(t)){const r=this.prefixPortPath(e,t),o=n;return this.setPropByPath(r,o,i)}const r=this.prefixPortPath(e),o=t;return this.setPropByPath(r,o,n)}removePortProp(e,t,n){return"string"===typeof t||Array.isArray(t)?this.removePropByPath(this.prefixPortPath(e,t),n):this.removePropByPath(this.prefixPortPath(e),t)}portProp(e,t,n,i){return null==t?this.getPortProp(e):"string"===typeof t||Array.isArray(t)?2===arguments.length?this.getPortProp(e,t):null==n?this.removePortProp(e,t,i):this.setPortProp(e,t,n,i):this.setPortProp(e,t,n)}prefixPortPath(e,t){const n=this.getPortIndex(e);if(-1===n)throw new Error(`Unable to find port with id: "${e}"`);return null==t||""===t?["ports","items",`${n}`]:Array.isArray(t)?["ports","items",`${n}`,...t]:`ports/items/${n}/${t}`}addPort(e,t){const n=[...this.ports.items];return n.push(e),this.setPropByPath("ports/items",n,t),this}addPorts(e,t){return this.setPropByPath("ports/items",[...this.ports.items,...e],t),this}removePort(e,t={}){return this.removePortAt(this.getPortIndex(e),t)}removePortAt(e,t={}){if(e>=0){const n=[...this.ports.items];n.splice(e,1),t.rewrite=!0,this.setPropByPath("ports/items",n,t)}return this}removePorts(e,t){let n;if(Array.isArray(e)){if(n=t||{},e.length){n.rewrite=!0;const t=[...this.ports.items],i=t.filter(t=>!e.some(e=>{const n="string"===typeof e?e:e.id;return t.id===n}));this.setPropByPath("ports/items",i,n)}}else n=e||{},n.rewrite=!0,this.setPropByPath("ports/items",[],n);return this}getParsedPorts(){return this.port.getPorts()}getParsedGroups(){return this.port.groups}getPortsLayoutByGroup(e,t){return this.port.getPortsLayoutByGroup(e,t)}initPorts(){this.updatePortData(),this.on("change:ports",()=>{this.processRemovedPort(),this.updatePortData()})}processRemovedPort(){const e=this.ports,t={};e.items.forEach(e=>{e.id&&(t[e.id]=!0)});const n={},i=this.store.getPrevious("ports")||{items:[]};i.items.forEach(e=>{e.id&&!t[e.id]&&(n[e.id]=!0)});const o=this.model;if(o&&!r.isEmpty(n)){const e=o.getConnectedEdges(this,{incoming:!0});e.forEach(e=>{const t=e.getTargetPortId();t&&n[t]&&e.remove()});const t=o.getConnectedEdges(this,{outgoing:!0});t.forEach(e=>{const t=e.getSourcePortId();t&&n[t]&&e.remove()})}}validatePorts(){const e={},t=[];return this.ports.items.forEach(n=>{"object"!==typeof n&&t.push(`Invalid port ${n}.`),null==n.id&&(n.id=this.generatePortId()),e[n.id]&&t.push("Duplicitied port id."),e[n.id]=!0}),t}generatePortId(){return o.uuid()}updatePortData(){const e=this.validatePorts();if(e.length>0)throw this.store.set("ports",this.store.getPrevious("ports")),new Error(e.join(" "));const t=this.port?this.port.getPorts():null;this.port=new ZT(this.ports);const n=this.port.getPorts(),i=t?n.filter(e=>{return t.find(t=>t.id===e.id)?null:e}):[...n],r=t?t.filter(e=>{return n.find(t=>t.id===e.id)?null:e}):[];i.length>0&&this.notify("ports:added",{added:i,cell:this,node:this}),r.length>0&&this.notify("ports:removed",{removed:r,cell:this,node:this})}}eA.defaults={angle:0,position:{x:0,y:0},size:{width:1,height:1}},function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&"function"===typeof i.isNode&&"function"===typeof i.isEdge&&"function"===typeof i.prop&&"function"===typeof i.attr&&"function"===typeof i.size&&"function"===typeof i.position}e.toStringTag=`X6.${e.name}`,e.isNode=t}(eA||(eA={})),function(e){e.config({propHooks(e){var{ports:t}=e,n=JT(e,["ports"]);return t&&(n.ports=Array.isArray(t)?{items:t}:t),n}})}(eA||(eA={})),function(e){e.registry=gS.create({type:"node",process(t,n){if(qT.exist(t,!0))throw new Error(`Node with name '${t}' was registered by anthor Edge`);if("function"===typeof n)return n.config({shape:t}),n;let i=e;const{inherit:r}=n,o=JT(n,["inherit"]);if(r)if("string"===typeof r){const e=this.get(r);null==e?this.onNotFound(r,"inherited"):i=e}else i=r;null==o.constructorName&&(o.constructorName=t);const a=i.define.call(i,o);return a.config({shape:t}),a}}),qT.setNodeRegistry(e.registry)}(eA||(eA={})),function(e){let t=0;function n(e){return e?o.pascalCase(e):(t+=1,`CustomNode${t}`)}function i(t){const{constructorName:i,overwrite:o}=t,a=JT(t,["constructorName","overwrite"]),s=r.createClass(n(i||a.shape),this);return s.config(a),a.shape&&e.registry.register(a.shape,s,o),s}function a(t){const n=t.shape||"rect",i=e.registry.get(n);return i?new i(t):e.registry.onNotFound(n)}e.define=i,e.create=a}(eA||(eA={}));var tA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<${e}/>${t?"":""}`}function oA(e){return`basic.${e}`}function aA(e="xlink:href"){const t=t=>{const{imageUrl:n,imageWidth:i,imageHeight:r}=t,o=iA(t,["imageUrl","imageWidth","imageHeight"]);if(null!=n||null!=i||null!=r){const t=()=>{if(o.attrs){const t=o.attrs.image;null!=n&&(t[e]=n),null!=i&&(t.width=i),null!=r&&(t.height=r),o.attrs.image=t}};o.attrs?(null==o.attrs.image&&(o.attrs.image={}),t()):(o.attrs={image:{}},t())}return o};return t}function sA(e,t,n={}){const i=oA(e),o={constructorName:i,attrs:{".":{fill:"#ffffff",stroke:"none"},[e]:{fill:"#ffffff",stroke:"#000000"}}};n.ignoreMarkup||(o.markup=rA(e,!0===n.noText));const a=n.parent||nA;return a.define(r.merge(o,t,{shape:i}))}sA("rect",{attrs:{rect:{width:100,height:60}}}),sA("circle",{width:60,height:60,attrs:{circle:{r:30,cx:30,cy:30}}}),sA("ellipse",{width:60,height:40,attrs:{ellipse:{rx:30,ry:20,cx:30,cy:20}}}),sA("polygon",{width:60,height:40,attrs:{text:{refY:null,refDy:16}}}),sA("polyline",{width:60,height:40,attrs:{text:{refY:null,refDy:16}}}),sA("image",{attrs:{text:{refY:null,refDy:16}},propHooks:aA()});var lA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r"string"===typeof e||"number"===typeof e;if(null!=n)if(XT.isCell(n))d.source={cell:n.id};else if(h(n))d.source={cell:n};else if(xy.isPoint(n))d.source=n.toJSON();else if(Array.isArray(n))d.source={x:n[0],y:n[1]};else{const e=n.cell;XT.isCell(e)?d.source=Object.assign(Object.assign({},n),{cell:e.id}):d.source=n}if(null!=i||null!=r){let e=d.source;if(null!=i){const t=h(i)?i:i.id;e?e.cell=t:e=d.source={cell:t}}null!=r&&e&&(e.port=r)}else null!=o&&(d.source=xy.create(o).toJSON());if(null!=a)if(XT.isCell(a))d.target={cell:a.id};else if(h(a))d.target={cell:a};else if(xy.isPoint(a))d.target=a.toJSON();else if(Array.isArray(a))d.target={x:a[0],y:a[1]};else{const e=a.cell;XT.isCell(e)?d.target=Object.assign(Object.assign({},a),{cell:e.id}):d.target=a}if(null!=s||null!=l){let e=d.target;if(null!=s){const t=h(s)?s:s.id;e?e.cell=t:e=d.target={cell:t}}null!=l&&e&&(e.port=l)}else null!=c&&(d.target=xy.create(c).toJSON());return super.preprocess(d,t)}setup(){super.setup(),this.on("change:labels",e=>this.onLabelsChanged(e)),this.on("change:vertices",e=>this.onVertexsChanged(e))}isEdge(){return!0}disconnect(e={}){return this.store.set({source:{x:0,y:0},target:{x:0,y:0}},e),this}get source(){return this.getSource()}set source(e){this.setSource(e)}getSource(){return this.getTerminal("source")}getSourceCellId(){return this.source.cell}getSourcePortId(){return this.source.port}setSource(e,t,n={}){return this.setTerminal("source",e,t,n)}get target(){return this.getTarget()}set target(e){this.setTarget(e)}getTarget(){return this.getTerminal("target")}getTargetCellId(){return this.target.cell}getTargetPortId(){return this.target.port}setTarget(e,t,n={}){return this.setTerminal("target",e,t,n)}getTerminal(e){return Object.assign({},this.store.get(e))}setTerminal(e,t,n,i={}){if(XT.isCell(t))return this.store.set(e,r.merge({},n,{cell:t.id}),i),this;const o=t;return xy.isPoint(t)||null!=o.x&&null!=o.y?(this.store.set(e,r.merge({},n,{x:o.x,y:o.y}),i),this):(this.store.set(e,r.cloneDeep(t),i),this)}getSourcePoint(){return this.getTerminalPoint("source")}getTargetPoint(){return this.getTerminalPoint("target")}getTerminalPoint(e){const t=this[e];if(xy.isPointLike(t))return xy.create(t);const n=this.getTerminalCell(e);return n?n.getConnectionPoint(this,e):new xy}getSourceCell(){return this.getTerminalCell("source")}getTargetCell(){return this.getTerminalCell("target")}getTerminalCell(e){if(this.model){const t="source"===e?this.getSourceCellId():this.getTargetCellId();if(t)return this.model.getCell(t)}return null}getSourceNode(){return this.getTerminalNode("source")}getTargetNode(){return this.getTerminalNode("target")}getTerminalNode(e){let t=this;const n={};while(t&&t.isEdge()){if(n[t.id])return null;n[t.id]=!0,t=t.getTerminalCell(e)}return t&&t.isNode()?t:null}get router(){return this.getRouter()}set router(e){null==e?this.removeRouter():this.setRouter(e)}getRouter(){return this.store.get("router")}setRouter(e,t,n){return"object"===typeof e?this.store.set("router",e,t):this.store.set("router",{name:e,args:t},n),this}removeRouter(e={}){return this.store.remove("router",e),this}get connector(){return this.getConnector()}set connector(e){null==e?this.removeConnector():this.setConnector(e)}getConnector(){return this.store.get("connector")}setConnector(e,t,n){return"object"===typeof e?this.store.set("connector",e,t):this.store.set("connector",{name:e,args:t},n),this}removeConnector(e={}){return this.store.remove("connector",e)}get strategy(){return this.getStrategy()}set strategy(e){null==e?this.removeStrategy():this.setStrategy(e)}getStrategy(){return this.store.get("strategy")}setStrategy(e,t,n){return"object"===typeof e?this.store.set("strategy",e,t):this.store.set("strategy",{name:e,args:t},n),this}removeStrategy(e={}){return this.store.remove("strategy",e)}getDefaultLabel(){const e=this.constructor,t=this.store.get("defaultLabel")||e.defaultLabel||{};return r.cloneDeep(t)}get labels(){return this.getLabels()}set labels(e){this.setLabels(e)}getLabels(){return[...this.store.get("labels",[])].map(e=>this.parseLabel(e))}setLabels(e,t={}){return this.store.set("labels",Array.isArray(e)?e:[e],t),this}insertLabel(e,t,n={}){const i=this.getLabels(),r=i.length;let o=null!=t&&Number.isFinite(t)?t:r;return o<0&&(o=r+o+1),i.splice(o,0,this.parseLabel(e)),this.setLabels(i,n)}appendLabel(e,t={}){return this.insertLabel(e,-1,t)}getLabelAt(e){const t=this.getLabels();return null!=e&&Number.isFinite(e)?this.parseLabel(t[e]):null}setLabelAt(e,t,n={}){if(null!=e&&Number.isFinite(e)){const i=this.getLabels();i[e]=this.parseLabel(t),this.setLabels(i,n)}return this}removeLabelAt(e,t={}){const n=this.getLabels(),i=null!=e&&Number.isFinite(e)?e:-1,r=n.splice(i,1);return this.setLabels(n,t),r.length?r[0]:null}parseLabel(e){if("string"===typeof e){const t=this.constructor;return t.parseStringLabel(e)}return e}onLabelsChanged({previous:e,current:t}){const n=e&&t?t.filter(t=>{return e.find(e=>t===e||r.isEqual(t,e))?null:t}):t?[...t]:[],i=e&&t?e.filter(e=>{return t.find(t=>e===t||r.isEqual(e,t))?null:e}):e?[...e]:[];n.length>0&&this.notify("labels:added",{added:n,cell:this,edge:this}),i.length>0&&this.notify("labels:removed",{removed:i,cell:this,edge:this})}get vertexMarkup(){return this.getVertexMarkup()}set vertexMarkup(e){this.setVertexMarkup(e)}getDefaultVertexMarkup(){return this.store.get("defaultVertexMarkup")||Dx.getEdgeVertexMarkup()}getVertexMarkup(){return this.store.get("vertexMarkup")||this.getDefaultVertexMarkup()}setVertexMarkup(e,t={}){return this.store.set("vertexMarkup",Dx.clone(e),t),this}get vertices(){return this.getVertices()}set vertices(e){this.setVertices(e)}getVertices(){return[...this.store.get("vertices",[])]}setVertices(e,t={}){const n=Array.isArray(e)?e:[e];return this.store.set("vertices",n.map(e=>xy.toJSON(e)),t),this}insertVertex(e,t,n={}){const i=this.getVertices(),r=i.length;let o=null!=t&&Number.isFinite(t)?t:r;return o<0&&(o=r+o+1),i.splice(o,0,xy.toJSON(e)),this.setVertices(i,n)}appendVertex(e,t={}){return this.insertVertex(e,-1,t)}getVertexAt(e){if(null!=e&&Number.isFinite(e)){const t=this.getVertices();return t[e]}return null}setVertexAt(e,t,n={}){if(null!=e&&Number.isFinite(e)){const i=this.getVertices();i[e]=t,this.setVertices(i,n)}return this}removeVertexAt(e,t={}){const n=this.getVertices(),i=null!=e&&Number.isFinite(e)?e:-1;return n.splice(i,1),this.setVertices(n,t)}onVertexsChanged({previous:e,current:t}){const n=e&&t?t.filter(t=>{return e.find(e=>xy.equals(t,e))?null:t}):t?[...t]:[],i=e&&t?e.filter(e=>{return t.find(t=>xy.equals(e,t))?null:e}):e?[...e]:[];n.length>0&&this.notify("vertexs:added",{added:n,cell:this,edge:this}),i.length>0&&this.notify("vertexs:removed",{removed:i,cell:this,edge:this})}getDefaultMarkup(){return this.store.get("defaultMarkup")||Dx.getEdgeMarkup()}getMarkup(){return super.getMarkup()||this.getDefaultMarkup()}get toolMarkup(){return this.getToolMarkup()}set toolMarkup(e){this.setToolMarkup(e)}getDefaultToolMarkup(){return this.store.get("defaultToolMarkup")||Dx.getEdgeToolMarkup()}getToolMarkup(){return this.store.get("toolMarkup")||this.getDefaultToolMarkup()}setToolMarkup(e,t={}){return this.store.set("toolMarkup",e,t),this}get doubleToolMarkup(){return this.getDoubleToolMarkup()}set doubleToolMarkup(e){this.setDoubleToolMarkup(e)}getDefaultDoubleToolMarkup(){return this.store.get("defaultDoubleToolMarkup")}getDoubleToolMarkup(){return this.store.get("doubleToolMarkup")||this.getDefaultDoubleToolMarkup()}setDoubleToolMarkup(e,t={}){return this.store.set("doubleToolMarkup",e,t),this}get arrowheadMarkup(){return this.getArrowheadMarkup()}set arrowheadMarkup(e){this.setArrowheadMarkup(e)}getDefaultArrowheadMarkup(){return this.store.get("defaultArrowheadMarkup")||Dx.getEdgeArrowheadMarkup()}getArrowheadMarkup(){return this.store.get("arrowheadMarkup")||this.getDefaultArrowheadMarkup()}setArrowheadMarkup(e,t={}){return this.store.set("arrowheadMarkup",e,t),this}translate(e,t,n={}){return n.translateBy=n.translateBy||this.id,n.tx=e,n.ty=t,this.applyToPoints(n=>({x:(n.x||0)+e,y:(n.y||0)+t}),n)}scale(e,t,n,i={}){return this.applyToPoints(i=>{return xy.create(i).scale(e,t,n).toJSON()},i)}applyToPoints(e,t={}){const n={},i=this.getSource(),r=this.getTarget();xy.isPointLike(i)&&(n.source=e(i)),xy.isPointLike(r)&&(n.target=e(r));const o=this.getVertices();return o.length>0&&(n.vertices=o.map(e)),this.store.set(n,t),this}getBBox(){return this.getPolyline().bbox()}getConnectionPoint(){return this.getPolyline().pointAt(.5)}getPolyline(){const e=[this.getSourcePoint(),this.getTargetPoint()],t=this.getVertices();return t.forEach(t=>e.push(xy.create(t))),new Oy(e)}updateParent(e){let t=null;const n=this.getSourceCell(),i=this.getTargetCell(),r=this.getParent();return n&&i&&(t=n===i||n.isDescendantOf(i)?i:i.isDescendantOf(n)?n:XT.getCommonAncestor(n,i)),!r||t&&t.id===r.id||r.unembed(this,e),t&&t.embed(this,e),t}hasLoop(e={}){const t=this.getSource(),n=this.getTarget(),i=t.cell,r=n.cell;if(!i||!r)return!1;let o=i===r;if(!o&&e.deep&&this._model){const t=this.getSourceCell(),n=this.getTargetCell();t&&n&&(o=t.isAncestorOf(n,e)||n.isAncestorOf(t,e))}return o}getFragmentAncestor(){const e=[this,this.getSourceNode(),this.getTargetNode()].filter(e=>null!=e);return this.getCommonAncestor(...e)}isFragmentDescendantOf(e){const t=this.getFragmentAncestor();return!!t&&(t.id===e.id||t.isDescendantOf(e))}}dA.defaults={},function(e){function t(e,t){const n=e,i=t;return n.cell===i.cell&&(n.port===i.port||null==n.port&&null==i.port)}e.equalTerminals=t}(dA||(dA={})),function(e){function t(e){return{attrs:{label:{text:e}}}}e.defaultLabel={markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"}],attrs:{text:{fill:"#000",fontSize:14,textAnchor:"middle",textVerticalAnchor:"middle",pointerEvents:"none"},rect:{ref:"label",fill:"#fff",rx:3,ry:3,refWidth:1,refHeight:1,refX:0,refY:0}},position:{distance:.5}},e.parseStringLabel=t}(dA||(dA={})),function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&"function"===typeof i.isNode&&"function"===typeof i.isEdge&&"function"===typeof i.prop&&"function"===typeof i.attr&&"function"===typeof i.disconnect&&"function"===typeof i.getSource&&"function"===typeof i.getTarget}e.toStringTag=`X6.${e.name}`,e.isEdge=t}(dA||(dA={})),function(e){e.registry=gS.create({type:"edge",process(t,n){if(qT.exist(t,!1))throw new Error(`Edge with name '${t}' was registered by anthor Node`);if("function"===typeof n)return n.config({shape:t}),n;let i=e;const{inherit:r="edge"}=n,o=uA(n,["inherit"]);if("string"===typeof r){const e=this.get(r||"edge");null==e&&r?this.onNotFound(r,"inherited"):i=e}else i=r;null==o.constructorName&&(o.constructorName=t);const a=i.define.call(i,o);return a.config({shape:t}),a}}),qT.setEdgeRegistry(e.registry)}(dA||(dA={})),function(e){let t=0;function n(e){return e?o.pascalCase(e):(t+=1,`CustomEdge${t}`)}function i(t){const{constructorName:i,overwrite:o}=t,a=uA(t,["constructorName","overwrite"]),s=r.createClass(n(i||a.shape),this);return s.config(a),a.shape&&e.registry.register(a.shape,s,o),s}function a(t){const n=t.shape||"edge",i=e.registry.get(n);return i?new i(t):e.registry.onNotFound(n)}e.define=i,e.create=a}(dA||(dA={})),function(e){const t="basic.edge";e.config({shape:t,propHooks(t){const{label:n,vertices:i}=t,r=uA(t,["label","vertices"]);if(n){null==r.labels&&(r.labels=[]);const t="string"===typeof n?e.parseStringLabel(n):n;r.labels.push(t)}return i&&Array.isArray(i)&&(r.vertices=i.map(e=>xy.create(e).toJSON())),r}}),e.registry.register(t,e)}(dA||(dA={}));var hA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);rthis.renderVertexMarkers()),n=this.handleAction(n,"update",()=>this.update(null,t)),n=this.handleAction(n,"labels",()=>this.onLabelsChange(t)),n=this.handleAction(n,"tools",()=>{this.renderTools(),this.updateToolsPosition()}),n=this.handleAction(n,"widget",()=>this.renderExternalTools()),n)}onLabelsChange(e={}){this.shouldRerenderLabels(e)?this.renderLabels():this.updateLabels(),this.updateLabelPositions()}shouldRerenderLabels(e={}){const t=this.cell.previous("labels");if(null==t)return!0;if("propertyPathArray"in e&&"propertyValue"in e){const n=e.propertyPathArray||[],i=n.length;if(i>1){const o=n[1];if(t[o]){if(2===i)return"object"===typeof e.propertyValue&&r.has(e.propertyValue,"markup");if("markup"!==n[2])return!1}}}return!0}render(){return this.empty(),this.containers={},this.renderMarkup(),this.renderLabels(),this.update(),this}renderMarkup(){const e=this.cell.markup;if(e)return"string"===typeof e?this.renderStringMarkup(e):this.renderJSONMarkup(e);throw new TypeError("Invalid edge markup.")}renderJSONMarkup(e){const t=this.parseJSONMarkup(e,this.container);this.selectors=t.selectors,this.container.append(t.fragment)}renderStringMarkup(e){const t=this.containers,n=Qy.createVectors(e);n.forEach(e=>{const n=e.attr("class");n&&(t[o.camelCase(n)]=e.node)}),this.renderTools(),this.renderVertexMarkers(),this.renderArrowheadMarkers(),c.append(this.container,n.map(e=>e.node))}renderLabels(){const e=this.cell,t=e.getLabels(),n=t.length;let i=this.containers.labels;if(this.labelCache={},this.labelSelectors={},n<=0)return i&&i.parentNode&&i.parentNode.removeChild(i),this;i?this.empty(i):(i=c.createSvgElement("g"),this.addClass(this.prefixClassName("edge-labels"),i),this.containers.labels=i);for(let r=0,o=t.length;r1||"G"!==i[0].nodeName.toUpperCase()?Qy.create("g").append(t):Qy.create(i[0]),n.addClass(this.prefixClassName("edge-label")),{node:n.node,selectors:e.selectors}}updateLabels(){if(this.containers.labels){const e=this.cell,t=e.labels,n=this.can("edgeLabelMovable"),i=e.getDefaultLabel();for(let o=0,a=t.length;o{n.append(Qy.create(e(Object.assign({index:i},t))).node)})}return this}renderArrowheadMarkers(){const e=this.containers.arrowheads;if(null==e)return this;const t=this.cell.arrowheadMarkup,n=this.$(e).empty();if(Dx.isStringMarkup(t)){const e=o.template(t),i=Qy.create(e({end:"source"})).node,r=Qy.create(e({end:"target"})).node;this.containers.sourceArrowhead=i,this.containers.targetArrowhead=r,n.append(i,r)}return this}update(e,t={}){this.cleanCache(),this.updateConnection(t);const n=this.cell.getAttrs();return null!=n&&this.updateAttrs(this.container,n,{attrs:e===n?null:e,selectors:this.selectors}),this.updateConnectionPath(),this.updateLabelPositions(),this.updateToolsPosition(),this.updateArrowheadMarkers(),null==t.toolId?this.renderExternalTools():this.updateTools(t),this}removeRedundantLinearVertices(e={}){const t=this.cell,n=t.getVertices(),i=[this.sourceAnchor,...n,this.targetAnchor],r=i.length,o=new Oy(i);o.simplify({threshold:.01});const a=o.points.map(e=>e.toJSON()),s=a.length;return r===s?0:(t.setVertices(a.slice(1,s-1),e),r-s)}updateConnectionPath(){const e=this.containers;if(e.connection){const t=this.getConnectionPathData();e.connection.setAttribute("d",t)}if(e.connectionWrap){const t=this.getConnectionPathData();e.connectionWrap.setAttribute("d",t)}e.sourceMarker&&e.targetMarker&&this.translateAndAutoOrientArrows(e.sourceMarker,e.targetMarker)}getTerminalView(e){switch(e){case"source":return this.sourceView||null;case"target":return this.targetView||null;default:throw new Error(`Unknown terminal type '${e}'`)}}getTerminalAnchor(e){switch(e){case"source":return xy.create(this.sourceAnchor);case"target":return xy.create(this.targetAnchor);default:throw new Error(`Unknown terminal type '${e}'`)}}getTerminalConnectionPoint(e){switch(e){case"source":return xy.create(this.sourcePoint);case"target":return xy.create(this.targetPoint);default:throw new Error(`Unknown terminal type '${e}'`)}}getTerminalMagnet(e,t={}){switch(e){case"source":{if(t.raw)return this.sourceMagnet;const e=this.sourceView;return e?this.sourceMagnet||e.container:null}case"target":{if(t.raw)return this.targetMagnet;const e=this.targetView;return e?this.targetMagnet||e.container:null}default:throw new Error(`Unknown terminal type '${e}'`)}}updateConnection(e={}){const t=this.cell;if(e.translateBy&&t.isFragmentDescendantOf(e.translateBy)){const t=e.tx||0,n=e.ty||0;this.routePoints=new Oy(this.routePoints).translate(t,n).points,this.translateConnectionPoints(t,n),this.path.translate(t,n)}else{const e=t.getVertices(),n=this.findAnchors(e);this.sourceAnchor=n.source,this.targetAnchor=n.target,this.routePoints=this.findRoutePoints(e);const i=this.findConnectionPoints(this.routePoints,this.sourceAnchor,this.targetAnchor);this.sourcePoint=i.source,this.targetPoint=i.target;const r=this.findMarkerPoints(this.routePoints,this.sourcePoint,this.targetPoint);this.path=this.findPath(this.routePoints,r.source||this.sourcePoint,r.target||this.targetPoint)}this.cleanCache()}findAnchors(e){const t=this.cell,n=t.source,i=t.target,r=e[0],o=e[e.length-1];return i.priority&&!n.priority?this.findAnchorsOrdered("target",o,"source",r):this.findAnchorsOrdered("source",r,"target",o)}findAnchorsOrdered(e,t,n,i){let r,o;const a=this.cell,s=a[e],l=a[n],c=this.getTerminalView(e),u=this.getTerminalView(n),d=this.getTerminalMagnet(e),h=this.getTerminalMagnet(n);if(c){let n;n=t?xy.create(t):u?h:xy.create(l),r=this.getAnchor(s.anchor,c,d,n,e)}else r=xy.create(s);if(u){const e=xy.create(i||r);o=this.getAnchor(l.anchor,u,h,e,n)}else o=xy.isPointLike(l)?xy.create(l):new xy;return{[e]:r,[n]:o}}getAnchor(e,t,n,i,r){const o=t.isEdgeElement(n),a=this.graph.options.connecting;let l,c="string"===typeof e?{name:e}:e;if(!c){const e=o?("source"===r?a.sourceEdgeAnchor:a.targetEdgeAnchor)||a.edgeAnchor:("source"===r?a.sourceAnchor:a.targetAnchor)||a.anchor;c="string"===typeof e?{name:e}:e}if(!c)throw new Error("Anchor should be specified.");const u=c.name;if(o){const e=Tw.registry.get(u);if("function"!==typeof e)return Tw.registry.onNotFound(u);l=s.call(e,this,t,n,i,c.args||{},r)}else{const e=yw.registry.get(u);if("function"!==typeof e)return yw.registry.onNotFound(u);l=s.call(e,this,t,n,i,c.args||{},r)}return l?l.round(this.POINT_ROUNDING):new xy}findRoutePoints(e=[]){const t=this.graph.options.connecting.router||wT.presets.normal,n=this.cell.getRouter()||t;let i;if("function"===typeof n)i=s.call(n,this,e,{},this);else{const t="string"===typeof n?n:n.name,r="string"===typeof n?{}:n.args||{},o=t?wT.registry.get(t):wT.presets.normal;if("function"!==typeof o)return wT.registry.onNotFound(t);i=s.call(o,this,e,r,this)}return null==i?e.map(e=>xy.create(e)):i.map(e=>xy.create(e))}findConnectionPoints(e,t,n){const i=this.cell,r=this.graph.options.connecting,o=i.getSource(),a=i.getTarget(),s=this.sourceView,l=this.targetView,c=e[0],u=e[e.length-1];let d,h;if(s&&!s.isEdgeElement(this.sourceMagnet)){const e=this.sourceMagnet||s.container,i=c||n,a=new Ty(i,t),l=o.connectionPoint||r.sourceConnectionPoint||r.connectionPoint;d=this.getConnectionPoint(l,s,e,a,"source")}else d=t;if(l&&!l.isEdgeElement(this.targetMagnet)){const e=this.targetMagnet||l.container,i=a.connectionPoint||r.targetConnectionPoint||r.connectionPoint,o=u||t,s=new Ty(o,n);h=this.getConnectionPoint(i,l,e,s,"target")}else h=n;return{source:d,target:h}}getConnectionPoint(e,t,n,i,r){const o=i.end;if(null==e)return o;const a="string"===typeof e?e:e.name,l="string"===typeof e?{}:e.args,c=Lw.registry.get(a);if("function"!==typeof c)return Lw.registry.onNotFound(a);const u=s.call(c,this,i,t,n,l||{},r);return u?u.round(this.POINT_ROUNDING):o}updateMarkerAttr(e){const t=this.cell.getAttrs(),n=`.${e}-marker`,i=t&&t[n];i&&this.updateAttrs(this.container,{},{attrs:{[n]:i},selectors:this.selectors})}findMarkerPoints(e,t,n){const i=e=>{const t=this.cell.getAttrs(),n=Object.keys(t);for(let i=0,r=n.length;i0){const e=c.scale(a);u=t.clone().move(r||n,l.sourceBBox.width*e.sx*-1)}}else{const e=i("source");e&&(u=t.clone().move(r||n,-e))}if(s){if(this.updateMarkerAttr("target"),l.targetBBox=l.targetBBox||c.getBBox(s),l.targetBBox.width>0){const e=c.scale(s);d=n.clone().move(o||t,l.targetBBox.width*e.sx*-1)}}else{const e=i("target");e&&(d=n.clone().move(o||t,-e))}return l.sourcePoint=u||t.clone(),l.targetPoint=d||n.clone(),{source:u,target:d}}findPath(e,t,n){const i=this.cell.getConnector()||this.graph.options.connecting.connector;let r,o,a;if("string"===typeof i?r=i:(r=i.name,o=i.args),r){const e=zT.registry.get(r);if("function"!==typeof e)return zT.registry.onNotFound(r);a=e}else a=zT.presets.normal;const l=s.call(a,this,t,n,e,Object.assign(Object.assign({},o),{raw:!0}),this);return"string"===typeof l?Ky.parse(l):l}translateConnectionPoints(e,t){const n=this.markerCache;n.sourcePoint&&n.sourcePoint.translate(e,t),n.targetPoint&&n.targetPoint.translate(e,t),this.sourcePoint.translate(e,t),this.targetPoint.translate(e,t),this.sourceAnchor.translate(e,t),this.targetAnchor.translate(e,t)}updateLabelPositions(){if(null==this.containers.labels)return this;const e=this.path;if(!e)return this;const t=this.cell,n=t.getLabels();if(0===n.length)return this;const i=t.getDefaultLabel(),o=this.normalizeLabelPosition(i.position);for(let a=0,s=n.length;a=this.options.longLength){const r=this.options.doubleToolsOffset||t;i=this.getPointAtLength(n-r),null!=i&&c.attr(this.tool2Cache,"transform",`translate(${i.x},${i.y}) ${e}`),c.attr(this.tool2Cache,"visibility","visible")}else this.options.doubleTools&&c.attr(this.tool2Cache,"visibility","hidden")}return this}updateArrowheadMarkers(){const e=this.containers.arrowheads;if(null==e)return this;if("none"===e.style.display)return this;const t=this.containers.sourceArrowhead,n=this.containers.targetArrowhead;if(t&&n){const e=this.getConnectionLength()||0,i=e{l[e]=a[e]})}let u;if(u="string"===typeof o?this.findOne(o,this.container,this.selectors):this.containers.connection?this.containers.connection:this.container.querySelector("path"),!(u instanceof SVGPathElement))throw new Error("Token animation requires a valid connection path.");const d="string"===typeof e?this.findOne(e):e;if(null==d)throw new Error("Token animation requires a valid token element.");const h=d.parentNode,p=()=>{h||c.remove(d)},f=Qy.create(d);h||f.appendTo(this.graph.view.stage);const g=l.complete;l.complete=e=>{p(),n&&n(),g&&g(e)};const m=f.animateAlongPath(l,u);return()=>{p(),m()}}getConnection(){return null!=this.path?this.path.clone():null}getConnectionPathData(){if(null==this.path)return"";const e=this.cache.pathCache;return r.has(e,"data")||(e.data=this.path.serialize()),e.data||""}getConnectionSubdivisions(){if(null==this.path)return null;const e=this.cache.pathCache;return r.has(e,"segmentSubdivisions")||(e.segmentSubdivisions=this.path.getSegmentSubdivisions()),e.segmentSubdivisions}getConnectionLength(){if(null==this.path)return 0;const e=this.cache.pathCache;return r.has(e,"length")||(e.length=this.path.length({segmentSubdivisions:this.getConnectionSubdivisions()})),e.length}getPointAtLength(e){return null==this.path?null:this.path.pointAtLength(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}getPointAtRatio(e){return null==this.path?null:(a.isPercentage(e)&&(e=parseFloat(e)/100),this.path.pointAt(e,{segmentSubdivisions:this.getConnectionSubdivisions()}))}getTangentAtLength(e){return null==this.path?null:this.path.tangentAtLength(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}getTangentAtRatio(e){return null==this.path?null:this.path.tangentAt(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}getClosestPoint(e){return null==this.path?null:this.path.closestPoint(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}getClosestPointLength(e){return null==this.path?null:this.path.closestPointLength(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}getClosestPointRatio(e){return null==this.path?null:this.path.closestPointNormalizedLength(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}getLabelPosition(e,t,n,i){const r={distance:0};let o,a=0;"number"===typeof n?(a=n,o=i):o=n,null!=o&&(r.options=o);const s=o&&o.absoluteOffset,l=!(o&&o.absoluteDistance),c=o&&o.absoluteDistance&&o.reverseDistance,u=this.path,d={segmentSubdivisions:this.getConnectionSubdivisions()},h=new xy(e,t),p=u.closestPointT(h,d),f=this.getConnectionLength()||0;let g,m,v=u.lengthAtT(p,d);if(l&&(v=f>0?v/f:0),c&&(v=-1*(f-v)||1),r.distance=v,s||(g=u.tangentAtT(p)),g)m=g.pointOffset(h);else{const e=u.pointAtT(p),t=h.diff(e);m={x:t.x,y:t.y}}return r.offset=m,r.angle=a,r}normalizeLabelPosition(e){return"number"===typeof e?{distance:e}:e}getLabelTransformationMatrix(e){const t=this.normalizeLabelPosition(e),n=t.options||{},i=t.angle||0,r=t.distance,o=r>0&&r<=1;let a=0;const s={x:0,y:0},l=t.offset;l&&("number"===typeof l?a=l:(null!=l.x&&(s.x=l.x),null!=l.y&&(s.y=l.y)));const u=0!==s.x||0!==s.y||0===a,d=n.keepGradient,h=n.ensureLegibility,p=this.path,f={segmentSubdivisions:this.getConnectionSubdivisions()},g=o?r*this.getConnectionLength():r,m=p.tangentAtLength(g,f);let v,_=i;if(m){if(u)v=m.start,v.translate(s);else{const e=m.clone();e.rotate(-90,m.start),e.setLength(a),v=e.end}d&&(_=m.angle()+i,h&&(_=my.normalize((_+90)%180-90)))}else v=p.start,u&&v.translate(s);return c.createSVGMatrix().translate(v.x,v.y).rotate(_)}getLabelCoordinates(e){const t=this.getLabelTransformationMatrix(e);return new xy(t.e,t.f)}getVertexIndex(e,t){const n=this.cell,i=n.getVertices(),r=this.getClosestPointLength(new xy(e,t));let o=0;if(null!=r)for(const a=i.length;o{return t[r]=e,t[r+1]=e.container===n?void 0:n,t}}beforeArrowheadDragging(e){e.zIndex=this.cell.zIndex,this.cell.toFront();const t=this.container.style;e.pointerEvents=t.pointerEvents,t.pointerEvents="none",this.graph.options.connecting.highlight&&this.highlightAvailableMagnets(e)}afterArrowheadDragging(e){null!=e.zIndex&&(this.cell.setZIndex(e.zIndex,{ui:!0}),e.zIndex=null);const t=this.container;t.style.pointerEvents=e.pointerEvents||"",this.graph.options.connecting.highlight&&this.unhighlightAvailableMagnets(e)}arrowheadDragging(e,t,n,i){i.x=t,i.y=n,i.currentTarget!==e&&(i.currentMagnet&&i.currentView&&i.currentView.unhighlight(i.currentMagnet,{type:"magnetAdsorbed"}),i.currentView=this.graph.renderer.findViewByElem(e),i.currentView?(i.currentMagnet=i.currentView.findMagnet(e),i.currentMagnet&&this.graph.hook.validateConnection(...i.getValidateConnectionArgs(i.currentView,i.currentMagnet),i.currentView.getEdgeTerminal(i.currentMagnet,t,n,this.cell,i.terminalType))?i.currentView.highlight(i.currentMagnet,{type:"magnetAdsorbed"}):i.currentMagnet=null):i.currentMagnet=null),i.currentTarget=e,this.cell.prop(i.terminalType,{x:t,y:n},Object.assign(Object.assign({},i.options),{ui:!0}))}arrowheadDragged(e,t,n){const i=e.currentView,r=e.currentMagnet;if(!r||!i)return;i.unhighlight(r,{type:"magnetAdsorbed"});const o=e.terminalType,a=i.getEdgeTerminal(r,t,n,this.cell,o);this.cell.setTerminal(o,a,{ui:!0})}snapArrowhead(e,t,n){const i=this.graph,r=i.options.connecting.snap,o="object"===typeof r&&r.radius||50,a=i.renderer.findViewsInArea({x:e-o,y:t-o,width:2*o,height:2*o}),s=n.closestView||null,l=n.closestMagnet||null;let c;n.closestView=null,n.closestMagnet=null;let u=Number.MAX_SAFE_INTEGER;const d=new xy(e,t);let h;a.forEach(r=>{"false"!==r.container.getAttribute("magnet")&&(c=r.cell.getBBox().getCenter().distance(d),c{if("false"!==a.getAttribute("magnet")){const s=r.getBBoxOfElement(a);c=d.distance(s.getCenter()),ct.hook.validateConnection(...e.getValidateConnectionArgs(r,n),r.getEdgeTerminal(n,e.x,e.y,this.cell,e.terminalType)));if(a.length>0){for(let e=0,t=a.length;e{const n=this.graph.renderer.findViewByCell(e);if(n){const i=t[e];i.forEach(e=>{n.unhighlight(e,{type:"magnetAvailable"})}),n.unhighlight(null,{type:"nodeAvailable"})}}),e.marked=null}startArrowheadDragging(e,t,n){if(!this.can("arrowheadMovable"))return void this.notifyUnhandledMouseDown(e,t,n);const i=e.target,r=i.getAttribute("data-terminal"),o=this.prepareArrowheadDragging(r,{x:t,y:n});this.setEventData(e,o)}dragArrowhead(e,t,n){const i=this.getEventData(e);this.graph.options.connecting.snap?this.snapArrowhead(t,n,i):this.arrowheadDragging(this.getEventTarget(e),t,n,i)}stopArrowheadDragging(e,t,n){const i=this.graph,r=this.getEventData(e);i.options.connecting.snap?this.snapArrowheadEnd(r):this.arrowheadDragged(r,t,n);const o=i.hook.validateEdge(this.cell,r.terminalType,r.initialTerminal);o?(this.finishEmbedding(r),this.notifyConnectionEvent(r,e)):this.fallbackConnection(r),this.afterArrowheadDragging(r)}startLabelDragging(e,t,n){if(this.can("edgeLabelMovable")){const t=e.currentTarget,n=parseInt(t.getAttribute("data-index"),10),i=this.getLabelPositionAngle(n),r=this.getLabelPositionArgs(n),o=this.getDefaultLabelPositionArgs(),a=this.mergeLabelPositionArgs(r,o);this.setEventData(e,{index:n,positionAngle:i,positionArgs:a,stopPropagation:!0,action:"drag-label"})}else this.setEventData(e,{stopPropagation:!0});this.graph.view.delegateDragEvents(e,this)}dragLabel(e,t,n){const i=this.getEventData(e),o=this.cell.getLabelAt(i.index),a=r.merge({},o,{position:this.getLabelPosition(t,n,i.positionAngle,i.positionArgs)});this.cell.setLabelAt(i.index,a)}stopLabelDragging(e,t,n){}handleVertexAdding(e,t,n){if(!this.can("vertexAddable"))return void this.notifyUnhandledMouseDown(e,t,n);const i=this.addVertex({x:t,y:n},{ui:!0});this.setEventData(e,{index:i,action:"drag-vertex"})}handleVertexRemoving(e,t,n){if(!this.can("vertexDeletable"))return void this.notifyUnhandledMouseDown(e,t,n);const i=e.target,r=parseInt(i.getAttribute("idx"),10);this.cell.removeVertexAt(r)}startVertexDragging(e,t,n){if(!this.can("vertexMovable"))return void this.notifyUnhandledMouseDown(e,t,n);const i=e.target,r=parseInt(i.getAttribute("idx"),10);this.setEventData(e,{index:r,action:"drag-vertex"})}dragVertex(e,t,n){const i=this.getEventData(e);this.cell.setVertexAt(i.index,{x:t,y:n},{ui:!0})}stopVertexDragging(e,t,n){}}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&"function"===typeof i.isNodeView&&"function"===typeof i.isEdgeView&&"function"===typeof i.confirmUpdate&&"function"===typeof i.update&&"function"===typeof i.getConnection}e.toStringTag=`X6.${e.name}`,e.isEdgeView=t})(pA||(pA={})),pA.config({isSvgElement:!0,priority:1,bootstrap:["render","source","target"],actions:{view:["render"],markup:["render"],attrs:["update"],source:["source","update"],target:["target","update"],router:["update"],connector:["update"],labels:["labels"],defaultLabel:["labels"],vertices:["vertices","update"],vertexMarkup:["vertices"],toolMarkup:["tools"],tools:["widget"]},shortLength:105,longLength:155,toolsOffset:40,doubleTools:!1,doubleToolsOffset:65,sampleInterval:50}),pA.registry.register("edge",pA,!0);class fA extends Px{constructor(){super(...arguments),this.scalableNode=null,this.rotatableNode=null,this.scalableSelector="scalable",this.rotatableSelector="rotatable",this.defaultPortMarkup=Dx.getPortMarkup(),this.defaultPortLabelMarkup=Dx.getPortLabelMarkup(),this.defaultPortContainerMarkup=Dx.getPortContainerMarkup(),this.portsCache={}}get[Symbol.toStringTag](){return fA.toStringTag}getContainerClassName(){const e=[super.getContainerClassName(),this.prefixClassName("node")];return this.can("nodeMovable")||e.push(this.prefixClassName("node-immovable")),e.join(" ")}updateClassName(e){const t=e.target;if(t.hasAttribute("magnet")){const e=this.prefixClassName("port-unconnectable");this.can("magnetConnectable")?c.removeClass(t,e):c.addClass(t,e)}else{const e=this.prefixClassName("node-immovable");this.can("nodeMovable")?this.removeClass(e):this.addClass(e)}}isNodeView(){return!0}confirmUpdate(e,t={}){let n=e;return this.hasAction(n,"ports")&&(this.removePorts(),this.cleanPortsCache()),this.hasAction(n,"render")?(this.render(),n=this.removeAction(n,["render","update","resize","translate","rotate","ports","tools"])):(n=this.handleAction(n,"resize",()=>this.resize(t),"update"),n=this.handleAction(n,"update",()=>this.update(),_C.useCSSSelector?"ports":null),n=this.handleAction(n,"translate",()=>this.translate()),n=this.handleAction(n,"rotate",()=>this.rotate()),n=this.handleAction(n,"ports",()=>this.renderPorts()),n=this.handleAction(n,"tools",()=>this.renderTools())),n}update(e){this.cleanCache(),_C.useCSSSelector&&this.removePorts();const t=this.cell,n=t.getSize(),i=t.getAttrs();this.updateAttrs(this.container,i,{attrs:e===i?null:e,rootBBox:new wy(0,0,n.width,n.height),selectors:this.selectors,scalableNode:this.scalableNode,rotatableNode:this.rotatableNode}),_C.useCSSSelector&&this.renderPorts()}renderMarkup(){const e=this.cell.markup;if(e)return"string"===typeof e?this.renderStringMarkup(e):this.renderJSONMarkup(e);throw new TypeError("Invalid node markup.")}renderJSONMarkup(e){const t=this.parseJSONMarkup(e,this.container),n=e=>Array.isArray(e)?e[0]:e;this.selectors=t.selectors,this.rotatableNode=n(this.selectors[this.rotatableSelector]),this.scalableNode=n(this.selectors[this.scalableSelector]),this.container.appendChild(t.fragment)}renderStringMarkup(e){c.append(this.container,Qy.toNodes(Qy.createVectors(e))),this.rotatableNode=c.findOne(this.container,`.${this.rotatableSelector}`),this.scalableNode=c.findOne(this.container,`.${this.scalableSelector}`),this.selectors={},this.rootSelector&&(this.selectors[this.rootSelector]=this.container)}render(){return this.empty(),this.renderMarkup(),this.scalableNode&&this.update(),this.resize(),this.rotatableNode?(this.rotate(),this.translate()):this.updateTransform(),_C.useCSSSelector||this.renderPorts(),this.renderTools(),this}resize(e={}){if(this.scalableNode)return this.updateSize(e);this.cell.getAngle()&&this.rotate(),this.update()}translate(){if(this.rotatableNode)return this.updateTranslation();this.updateTransform()}rotate(){if(this.rotatableNode)return this.updateRotation(),void this.update();this.updateTransform()}getTranslationString(){const e=this.cell.getPosition();return`translate(${e.x},${e.y})`}getRotationString(){const e=this.cell.getAngle();if(e){const t=this.cell.getSize();return`rotate(${e},${t.width/2},${t.height/2})`}}updateTransform(){let e=this.getTranslationString();const t=this.getRotationString();t&&(e+=` ${t}`),this.container.setAttribute("transform",e)}updateRotation(){if(null!=this.rotatableNode){const e=this.getRotationString();null!=e?this.rotatableNode.setAttribute("transform",e):this.rotatableNode.removeAttribute("transform")}}updateTranslation(){this.container.setAttribute("transform",this.getTranslationString())}updateSize(e={}){const t=this.cell,n=t.getSize(),i=t.getAngle(),r=this.scalableNode;let o=!1;r.getElementsByTagName("path").length>0&&(o=!0);const a=c.getBBox(r,{recursive:o}),s=n.width/(a.width||1),l=n.height/(a.height||1);r.setAttribute("transform",`scale(${s},${l})`);const u=this.rotatableNode;if(null!=u){const o=u.getAttribute("transform");if(o){u.setAttribute("transform",`${o} rotate(${-i},${n.width/2},${n.height/2})`);const a=c.getBBox(r,{target:this.graph.view.stage});t.prop("position",{x:a.x,y:a.y},Object.assign({updated:!0},e)),this.translate(),this.rotate()}}this.update()}findPortElem(e,t){const n=e?this.portsCache[e]:null;if(!n)return null;const i=n.portContentElement,r=n.portContentSelectors||{};return this.findOne(t,i,r)}initializePorts(){this.cleanPortsCache()}refreshPorts(){this.removePorts(),this.cleanPortsCache(),this.renderPorts()}cleanPortsCache(){this.portsCache={}}removePorts(){Object.keys(this.portsCache).forEach(e=>{const t=this.portsCache[e];c.remove(t.portElement)})}renderPorts(){const e=this.getPortsContainer(),t=[];e.childNodes.forEach(e=>{t.push(e)});const n=i.groupBy(this.cell.getParsedPorts(),"zIndex"),r="auto";n[r]&&n[r].forEach(n=>{const i=this.getPortElement(n);e.append(i),t.push(i)}),Object.keys(n).forEach(e=>{if(e!==r){const i=parseInt(e,10);this.appendPorts(n[e],i,t)}}),this.updatePorts()}getPortsContainer(){return this.rotatableNode||this.container}appendPorts(e,t,n){const i=e.map(e=>this.getPortElement(e));n[t]||t<0?c.before(n[Math.max(t,0)],i):c.append(this.getPortsContainer(),i)}getPortElement(e){const t=this.portsCache[e.id];return t?t.portElement:this.createPortElement(e)}createPortElement(e){let t=Dx.renderMarkup(this.getPortContainerMarkup());const n=t.elem;if(null==n)throw new Error("Invalid port container markup.");t=Dx.renderMarkup(this.getPortMarkup(e));const i=t.elem,r=t.selectors;if(null==i)throw new Error("Invalid port markup.");this.setAttrs({port:e.id,"port-group":e.group},i),t=Dx.renderMarkup(this.getPortLabelMarkup(e.label));const o=t.elem,a=t.selectors;if(null==o)throw new Error("Invalid port label markup.");let s;if(r&&a){for(const e in a)if(r[e]&&e!==this.rootSelector)throw new Error("Selectors within port must be unique.");s=Object.assign(Object.assign({},r),a)}else s=r||a;return c.addClass(n,"x6-port"),c.addClass(i,"x6-port-body"),c.addClass(o,"x6-port-label"),n.appendChild(i),n.appendChild(o),this.portsCache[e.id]={portElement:n,portSelectors:s,portLabelElement:o,portLabelSelectors:a,portContentElement:i,portContentSelectors:r},this.graph.hook.onPortRendered({port:e,node:this.cell,container:n,selectors:s,labelContainer:o,labelSelectors:a,contentContainer:i,contentSelectors:r}),n}updatePorts(){this.updatePortGroup();const e=this.cell.getParsedGroups();Object.keys(e).forEach(e=>this.updatePortGroup(e))}updatePortGroup(e){const t=wy.fromSize(this.cell.getSize()),n=this.cell.getPortsLayoutByGroup(e,t);for(let i=0,r=n.length;ithis.graph.options.clickThreshold||this.notify("node:magnet:click",Object.assign({magnet:t},this.getEventArgs(e,n,i)))}onMagnetDblClick(e,t,n,i){this.notify("node:magnet:dblclick",Object.assign({magnet:t},this.getEventArgs(e,n,i)))}onMagnetContextMenu(e,t,n,i){this.notify("node:magnet:contextmenu",Object.assign({magnet:t},this.getEventArgs(e,n,i)))}onMagnetMouseDown(e,t,n,i){this.startMagnetDragging(e,n,i)}onCustomEvent(e,t,n,i){this.notify("node:customevent",Object.assign({name:t},this.getEventArgs(e,n,i))),super.onCustomEvent(e,t,n,i)}prepareEmbedding(e){const t=this.getEventData(e),n=t.cell||this.cell,i=this.graph.findViewByCell(n),r=this.graph.snapToGrid(e.clientX,e.clientY);this.notify("node:embed",{e:e,node:n,view:i,cell:n,x:r.x,y:r.y,currentParent:n.getParent()})}processEmbedding(e,t){const n=t.cell||this.cell,i=t.graph||this.graph,r=i.options.embedding,o=r.findParent;let a="function"===typeof o?s.call(o,i,{view:this,node:this.cell}).filter(e=>{return XT.isCell(e)&&this.cell.id!==e.id&&!e.isDescendantOf(this.cell)}):i.model.getNodesUnderNode(n,{by:o});r.frontOnly&&(a=a.slice(-1));let l=null;const c=t.candidateEmbedView,u=r.validate;for(let h=a.length-1;h>=0;h-=1){const e=a[h];if(c&&c.cell.id===e.id){l=c;break}{const t=e.findView(i);if(s.call(u,i,{child:this.cell,parent:t.cell,childView:this,parentView:t})){l=t;break}}}this.clearEmbedding(t),l&&l.highlight(null,{type:"embedding"}),t.candidateEmbedView=l;const d=i.snapToGrid(e.clientX,e.clientY);this.notify("node:embedding",{e:e,cell:n,node:n,view:i.findViewByCell(n),x:d.x,y:d.y,currentParent:n.getParent(),candidateParent:l?l.cell:null})}clearEmbedding(e){const t=e.candidateEmbedView;t&&(t.unhighlight(null,{type:"embedding"}),e.candidateEmbedView=null)}finalizeEmbedding(e,t){const n=t.cell||this.cell,i=t.graph||this.graph,r=i.findViewByCell(n),o=n.getParent(),a=t.candidateEmbedView;a?(a.unhighlight(null,{type:"embedding"}),t.candidateEmbedView=null,null!=o&&o.id===a.cell.id||a.cell.insertChild(n,void 0,{ui:!0})):o&&o.unembed(n,{ui:!0}),i.model.getConnectedEdges(n,{deep:!0}).forEach(e=>{e.updateParent({ui:!0})});const s=i.snapToGrid(e.clientX,e.clientY);r&&r.notify("node:embedded",{e:e,cell:n,x:s.x,y:s.y,node:n,view:i.findViewByCell(n),previousParent:o,currentParent:n.getParent()})}getDelegatedView(){let e=this.cell,t=this;while(t){if(e.isEdge())break;if(!e.hasParent()||t.can("stopDelegateOnDragging"))return t;e=e.getParent(),t=this.graph.renderer.findViewByCell(e)}return null}startMagnetDragging(e,t,n){if(!this.can("magnetConnectable"))return;e.stopPropagation();const i=e.currentTarget,r=this.graph;this.setEventData(e,{targetMagnet:i}),r.hook.validateMagnet(this,i,e)?(r.options.magnetThreshold<=0&&this.startConnectting(e,i,t,n),this.setEventData(e,{action:"magnet"}),this.stopPropagation(e)):this.onMouseDown(e,t,n),r.view.delegateDragEvents(e,this)}startConnectting(e,t,n,i){this.graph.model.startBatch("add-edge");const r=this.createEdgeFromMagnet(t,n,i);r.notifyMouseDown(e,n,i),r.setEventData(e,r.prepareArrowheadDragging("target",{x:n,y:i,isNewEdge:!0,fallbackAction:"remove"})),this.setEventData(e,{edgeView:r})}createEdgeFromMagnet(e,t,n){const i=this.graph,r=i.model,o=i.hook.getDefaultEdge(this,e);return o.setSource(Object.assign(Object.assign({},o.getSource()),this.getEdgeTerminal(e,t,n,o,"source"))),o.setTarget(Object.assign(Object.assign({},o.getTarget()),{x:t,y:n})),o.addTo(r,{async:!1,ui:!0}),o.findView(i)}dragMagnet(e,t,n){const i=this.getEventData(e),r=i.edgeView;if(r)r.onMouseMove(e,t,n),this.autoScrollGraph(e.clientX,e.clientY);else{const r=this.graph,o=r.options.magnetThreshold,a=this.getEventTarget(e),s=i.targetMagnet;if("onleave"===o){if(s===a||s.contains(a))return}else if(r.view.getMouseMovedCount(e)<=o)return;this.startConnectting(e,s,t,n)}}stopMagnetDragging(e,t,n){const i=this.eventData(e),r=i.edgeView;r&&(r.onMouseUp(e,t,n),this.graph.model.stopBatch("add-edge"))}notifyUnhandledMouseDown(e,t,n){this.notify("node:unhandled:mousedown",{e:e,x:t,y:n,view:this,cell:this.cell,node:this.cell})}notifyNodeMove(e,t,n,i,r){let o=[r];const a=this.graph.selection.widget;if(a&&a.options.movable){const e=this.graph.getSelectedCells();e.includes(r)&&(o=e.filter(e=>e.isNode()))}o.forEach(r=>{this.notify(e,{e:t,x:n,y:i,cell:r,node:r,view:r.findView(this.graph)})})}startNodeDragging(e,t,n){const i=this.getDelegatedView();if(null==i||!i.can("nodeMovable"))return this.notifyUnhandledMouseDown(e,t,n);this.setEventData(e,{targetView:i,action:"move"});const r=xy.create(i.cell.getPosition());i.setEventData(e,{moving:!1,offset:r.diff(t,n),restrict:this.graph.hook.getRestrictArea(i)})}dragNode(e,t,n){const i=this.cell,r=this.graph,o=r.getGridSize(),a=this.getEventData(e),s=a.offset,l=a.restrict;a.moving||(a.moving=!0,this.addClass("node-moving"),this.notifyNodeMove("node:move",e,t,n,this.cell)),this.autoScrollGraph(e.clientX,e.clientY);const c=yC.snapToGrid(t+s.x,o),u=yC.snapToGrid(n+s.y,o);i.setPosition(c,u,{restrict:l,deep:!0,ui:!0}),r.options.embedding.enabled&&(a.embedding||(this.prepareEmbedding(e),a.embedding=!0),this.processEmbedding(e,a))}stopNodeDragging(e,t,n){const i=this.getEventData(e);i.embedding&&this.finalizeEmbedding(e,i),i.moving&&(this.removeClass("node-moving"),this.notifyNodeMove("node:moved",e,t,n,this.cell)),i.moving=!1,i.embedding=!1}autoScrollGraph(e,t){const n=this.graph.scroller.widget;n&&n.autoScroll(e,t)}}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&"function"===typeof i.isNodeView&&"function"===typeof i.isEdgeView&&"function"===typeof i.confirmUpdate&&"function"===typeof i.update&&"function"===typeof i.findPortElem&&"function"===typeof i.resize&&"function"===typeof i.rotate&&"function"===typeof i.translate}e.toStringTag=`X6.${e.name}`,e.isNodeView=t})(fA||(fA={})),fA.config({isSvgElement:!0,priority:0,bootstrap:["render"],actions:{view:["render"],markup:["render"],attrs:["update"],size:["resize","ports","tools"],angle:["rotate","tools"],position:["translate","tools"],ports:["ports"],tools:["tools"]}}),fA.registry.register("node",fA,!0);const gA=oA("text");class mA extends(sA("text",{view:gA,attrs:{text:{fontSize:18,fill:"#000000",stroke:null,refX:.5,refY:.5}}},{noText:!0})){}(function(e){class t extends fA{confirmUpdate(e,t={}){let n=super.confirmUpdate(e,t);return this.hasAction(n,"scale")&&(this.resize(),n=this.removeAction(n,"scale")),n}}e.View=t,t.config({actions:{attrs:["scale"]}}),fA.registry.register(gA,t)})(mA||(mA={}));class vA extends hx{constructor(e,t={}){super(),this.length=0,this.comparator=t.comparator||"zIndex",this.clean(),e&&this.reset(e,{silent:!0})}toJSON(){return this.cells.map(e=>e.toJSON())}add(e,t,n){let i,r;"number"===typeof t?(i=t,r=Object.assign({merge:!1},n)):(i=this.length,r=Object.assign({merge:!1},t)),i>this.length&&(i=this.length),i<0&&(i+=this.length+1);const o=Array.isArray(e)?e:[e],a=this.comparator&&"number"!==typeof t&&!1!==r.sort,s=this.comparator||null;let l=!1;const c=[],u=[];return o.forEach(e=>{const t=this.get(e);t?r.merge&&!e.isSameStore(t)&&(t.setProp(e.getProp(),n),u.push(t),a&&!l&&(l=null==s||"function"===typeof s?t.hasChanged():"string"===typeof s?t.hasChanged(s):s.some(e=>t.hasChanged(e)))):(c.push(e),this.reference(e))}),c.length&&(a&&(l=!0),this.cells.splice(i,0,...c),this.length=this.cells.length),l&&this.sort({silent:!0}),r.silent||(c.forEach((e,t)=>{const n={cell:e,index:i+t,options:r};this.trigger("added",n),r.dryrun||e.notify("added",Object.assign({},n))}),l&&this.trigger("sorted"),(c.length||u.length)&&this.trigger("updated",{added:c,merged:u,removed:[],options:r})),this}remove(e,t={}){const n=Array.isArray(e)?e:[e],i=this.removeCells(n,t);return!t.silent&&i.length>0&&this.trigger("updated",{options:t,removed:i,added:[],merged:[]}),Array.isArray(e)?i:i[0]}removeCells(e,t){const n=[];for(let i=0;ithis.unreference(e)),this.clean(),this.add(e,Object.assign({silent:!0},t)),!t.silent){const e=this.cells.slice();this.trigger("reseted",{options:t,previous:n,current:e});const i=[],r=[];e.forEach(e=>{const t=n.some(t=>t.id===e.id);t||i.push(e)}),n.forEach(t=>{const n=e.some(e=>e.id===t.id);n||r.push(t)}),this.trigger("updated",{options:t,added:i,removed:r,merged:[]})}return this}push(e,t){return this.add(e,this.length,t)}pop(e){const t=this.at(this.length-1);return this.remove(t,e)}unshift(e,t){return this.add(e,0,t)}shift(e){const t=this.at(0);return this.remove(t,e)}get(e){if(null==e)return null;const t="string"===typeof e||"number"===typeof e?e:e.id;return this.map[t]||null}has(e){return null!=this.get(e)}at(e){return e<0&&(e+=this.length),this.cells[e]||null}first(){return this.at(0)}last(){return this.at(-1)}indexOf(e){return this.cells.indexOf(e)}toArray(){return this.cells.slice()}sort(e={}){return null!=this.comparator&&(this.cells=i.sortBy(this.cells,this.comparator),e.silent||this.trigger("sorted")),this}clone(){const e=this.constructor;return new e(this.cells.slice(),{comparator:this.comparator})}reference(e){this.map[e.id]=e,e.on("*",this.notifyCellEvent,this)}unreference(e){e.off("*",this.notifyCellEvent,this),delete this.map[e.id]}notifyCellEvent(e,t){const n=t.cell;this.trigger(`cell:${e}`,t),n&&(n.isNode()?this.trigger(`node:${e}`,Object.assign(Object.assign({},t),{node:n})):n.isEdge()&&this.trigger(`edge:${e}`,Object.assign(Object.assign({},t),{edge:n})))}clean(){this.length=0,this.cells=[],this.map={}}}class _A extends hx{constructor(e=[]){super(),this.batches={},this.addings=new WeakMap,this.nodes={},this.edges={},this.outgoings={},this.incomings={},this.collection=new vA(e),this.setup()}get[Symbol.toStringTag](){return _A.toStringTag}notify(e,t){this.trigger(e,t);const n=this.graph;return n&&("sorted"===e||"reseted"===e||"updated"===e?n.trigger(`model:${e}`,t):n.trigger(e,t)),this}setup(){const e=this.collection;e.on("sorted",()=>this.notify("sorted",null)),e.on("updated",e=>this.notify("updated",e)),e.on("cell:change:zIndex",()=>this.sortOnChangeZ()),e.on("added",({cell:e})=>{this.onCellAdded(e)}),e.on("removed",e=>{const t=e.cell;this.onCellRemoved(t,e.options),this.notify("cell:removed",e),t.isNode()?this.notify("node:removed",Object.assign(Object.assign({},e),{node:t})):t.isEdge()&&this.notify("edge:removed",Object.assign(Object.assign({},e),{edge:t}))}),e.on("reseted",e=>{this.onReset(e.current),this.notify("reseted",e)}),e.on("edge:change:source",({edge:e})=>this.onEdgeTerminalChanged(e,"source")),e.on("edge:change:target",({edge:e})=>{this.onEdgeTerminalChanged(e,"target")})}sortOnChangeZ(){this.collection.sort()}onCellAdded(e){const t=e.id;e.isEdge()?(e.updateParent(),this.edges[t]=!0,this.onEdgeTerminalChanged(e,"source"),this.onEdgeTerminalChanged(e,"target")):this.nodes[t]=!0}onCellRemoved(e,t){const n=e.id;if(e.isEdge()){delete this.edges[n];const t=e.getSource(),i=e.getTarget();if(t&&t.cell){const e=this.outgoings[t.cell],i=e?e.indexOf(n):-1;i>=0&&(e.splice(i,1),0===e.length&&delete this.outgoings[t.cell])}if(i&&i.cell){const e=this.incomings[i.cell],t=e?e.indexOf(n):-1;t>=0&&(e.splice(t,1),0===e.length&&delete this.incomings[i.cell])}}else delete this.nodes[n];t.clear||(t.disconnectEdges?this.disconnectConnectedEdges(e,t):this.removeConnectedEdges(e,t)),e.model===this&&(e.model=null)}onReset(e){this.nodes={},this.edges={},this.outgoings={},this.incomings={},e.forEach(e=>this.onCellAdded(e))}onEdgeTerminalChanged(e,t){const n="source"===t?this.outgoings:this.incomings,i=e.previous(t);if(i&&i.cell){const t=n[i.cell],r=t?t.indexOf(e.id):-1;r>=0&&(t.splice(r,1),0===t.length&&delete n[i.cell])}const r=e.getTerminal(t);if(r&&r.cell){const t=n[r.cell]||[],i=t.indexOf(e.id);-1===i&&t.push(e.id),n[r.cell]=t}}prepareCell(e,t){return e.model||t&&t.dryrun||(e.model=this),null==e.zIndex&&e.setZIndex(this.getMaxZIndex()+1,{silent:!0}),e}resetCells(e,t={}){return e.map(e=>this.prepareCell(e,Object.assign(Object.assign({},t),{dryrun:!0}))),this.collection.reset(e,t),e.map(e=>this.prepareCell(e,{options:t})),this}clear(e={}){const t=this.getCells();if(0===t.length)return this;const n=Object.assign(Object.assign({},e),{clear:!0});return this.batchUpdate("clear",()=>{const e=t.sort((e,t)=>{const n=e.isEdge()?1:2,i=t.isEdge()?1:2;return n-i});while(e.length>0){const t=e.shift();t&&t.remove(n)}},n),this}addNode(e,t={}){const n=eA.isNode(e)?e:this.createNode(e);return this.addCell(n,t),n}createNode(e){return eA.create(e)}addEdge(e,t={}){const n=dA.isEdge(e)?e:this.createEdge(e);return this.addCell(n,t),n}createEdge(e){return dA.create(e)}addCell(e,t={}){return Array.isArray(e)?this.addCells(e,t):(this.collection.has(e)||this.addings.has(e)||(this.addings.set(e,!0),this.collection.add(this.prepareCell(e,t),t),e.eachChild(e=>this.addCell(e,t)),this.addings.delete(e)),this)}addCells(e,t={}){const n=e.length;if(0===n)return this;const i=Object.assign(Object.assign({},t),{position:n-1,maxPosition:n-1});return this.startBatch("add",Object.assign(Object.assign({},i),{cells:e})),e.forEach(e=>{this.addCell(e,i),i.position-=1}),this.stopBatch("add",Object.assign(Object.assign({},i),{cells:e})),this}removeCell(e,t={}){const n="string"===typeof e?this.getCell(e):e;return n&&this.has(n)?this.collection.remove(n,t):null}removeCells(e,t={}){return e.length?this.batchUpdate("remove",()=>{return e.map(e=>this.removeCell(e,t))}):[]}removeConnectedEdges(e,t={}){const n=this.getConnectedEdges(e);return n.forEach(e=>{e.remove(t)}),n}disconnectConnectedEdges(e,t={}){const n="string"===typeof e?e:e.id;this.getConnectedEdges(e).forEach(e=>{const i=e.getSourceCell(),r=e.getTargetCell();i&&i.id===n&&e.setSource({x:0,y:0},t),r&&r.id===n&&e.setTarget({x:0,y:0},t)})}has(e){return this.collection.has(e)}total(){return this.collection.length}indexOf(e){return this.collection.indexOf(e)}getCell(e){return this.collection.get(e)}getCells(){return this.collection.toArray()}getFirstCell(){return this.collection.first()}getLastCell(){return this.collection.last()}getMinZIndex(){const e=this.collection.first();return e&&e.getZIndex()||0}getMaxZIndex(){const e=this.collection.last();return e&&e.getZIndex()||0}getCellsFromCache(e){return e?Object.keys(e).map(e=>this.getCell(e)).filter(e=>null!=e):[]}getNodes(){return this.getCellsFromCache(this.nodes)}getEdges(){return this.getCellsFromCache(this.edges)}getOutgoingEdges(e){const t="string"===typeof e?e:e.id,n=this.outgoings[t];return n?n.map(e=>this.getCell(e)).filter(e=>e&&e.isEdge()):null}getIncomingEdges(e){const t="string"===typeof e?e:e.id,n=this.incomings[t];return n?n.map(e=>this.getCell(e)).filter(e=>e&&e.isEdge()):null}getConnectedEdges(e,t={}){const n=[],i="string"===typeof e?this.getCell(e):e;if(null==i)return n;const r={},o=t.indirect;let a=t.incoming,s=t.outgoing;null==a&&null==s&&(a=s=!0);const l=(e,t)=>{const i=t?this.getOutgoingEdges(e):this.getIncomingEdges(e);if(null!=i&&i.forEach(e=>{r[e.id]||(n.push(e),r[e.id]=!0,o&&(a&&l(e,!1),s&&l(e,!0)))}),o&&e.isEdge()){const i=t?e.getTargetCell():e.getSourceCell();i&&i.isEdge()&&(r[i.id]||(n.push(i),l(i,t)))}};if(s&&l(i,!0),a&&l(i,!1),t.deep){const e=i.getDescendants({deep:!0}),o={};e.forEach(e=>{e.isNode()&&(o[e.id]=!0)});const l=(e,i)=>{const a=i?this.getOutgoingEdges(e.id):this.getIncomingEdges(e.id);null!=a&&a.forEach(e=>{if(!r[e.id]){const i=e.getSourceCell(),a=e.getTargetCell();if(!t.enclosed&&i&&o[i.id]&&a&&o[a.id])return;n.push(e),r[e.id]=!0}})};e.forEach(e=>{e.isEdge()||(s&&l(e,!0),a&&l(e,!1))})}return n}isBoundary(e,t){const n="string"===typeof e?this.getCell(e):e,i=t?this.getIncomingEdges(n):this.getOutgoingEdges(n);return null==i||0===i.length}getBoundaryNodes(e){const t=[];return Object.keys(this.nodes).forEach(n=>{if(this.isBoundary(n,e)){const e=this.getCell(n);e&&t.push(e)}}),t}getRoots(){return this.getBoundaryNodes(!0)}getLeafs(){return this.getBoundaryNodes(!1)}isRoot(e){return this.isBoundary(e,!0)}isLeaf(e){return this.isBoundary(e,!1)}getNeighbors(e,t={}){let n=t.incoming,i=t.outgoing;null==n&&null==i&&(n=i=!0);const r=this.getConnectedEdges(e,t),o=r.reduce((r,o)=>{const a=o.hasLoop(t),s=o.getSourceCell(),l=o.getTargetCell();return n&&s&&s.isNode()&&!r[s.id]&&(!a&&(s===e||t.deep&&s.isDescendantOf(e))||(r[s.id]=s)),i&&l&&l.isNode()&&!r[l.id]&&(!a&&(l===e||t.deep&&l.isDescendantOf(e))||(r[l.id]=l)),r},{});if(e.isEdge()){if(n){const t=e.getSourceCell();t&&t.isNode()&&!o[t.id]&&(o[t.id]=t)}if(i){const t=e.getTargetCell();t&&t.isNode()&&!o[t.id]&&(o[t.id]=t)}}return Object.keys(o).map(e=>o[e])}isNeighbor(e,t,n={}){let i=n.incoming,r=n.outgoing;return null==i&&null==r&&(i=r=!0),this.getConnectedEdges(e,n).some(e=>{const n=e.getSourceCell(),o=e.getTargetCell();return!(!i||!n||n.id!==t.id)||!(!r||!o||o.id!==t.id)})}getSuccessors(e,t={}){const n=[];return this.search(e,(i,r)=>{i!==e&&this.matchDistance(r,t.distance)&&n.push(i)},Object.assign(Object.assign({},t),{outgoing:!0})),n}isSuccessor(e,t,n={}){let i=!1;return this.search(e,(r,o)=>{if(r===t&&r!==e&&this.matchDistance(o,n.distance))return i=!0,!1},Object.assign(Object.assign({},n),{outgoing:!0})),i}getPredecessors(e,t={}){const n=[];return this.search(e,(i,r)=>{i!==e&&this.matchDistance(r,t.distance)&&n.push(i)},Object.assign(Object.assign({},t),{incoming:!0})),n}isPredecessor(e,t,n={}){let i=!1;return this.search(e,(r,o)=>{if(r===t&&r!==e&&this.matchDistance(o,n.distance))return i=!0,!1},Object.assign(Object.assign({},n),{incoming:!0})),i}matchDistance(e,t){return null==t||("function"===typeof t?t(e):!(!Array.isArray(t)||!t.includes(e))||e===t)}getCommonAncestor(...e){const t=[];return e.forEach(e=>{e&&(Array.isArray(e)?t.push(...e):t.push(e))}),XT.getCommonAncestor(...t)}getSubGraph(e,t={}){const n=[],i={},r=[],o=[],a=e=>{i[e.id]||(n.push(e),i[e.id]=e,e.isEdge()&&o.push(e),e.isNode()&&r.push(e))};return e.forEach(e=>{if(a(e),t.deep){const t=e.getDescendants({deep:!0});t.forEach(e=>a(e))}}),o.forEach(e=>{const t=e.getSourceCell(),o=e.getTargetCell();t&&!i[t.id]&&(n.push(t),i[t.id]=t,t.isNode()&&r.push(t)),o&&!i[o.id]&&(n.push(o),i[o.id]=o,o.isNode()&&r.push(o))}),r.forEach(e=>{const r=this.getConnectedEdges(e,t);r.forEach(e=>{const t=e.getSourceCell(),r=e.getTargetCell();!i[e.id]&&t&&i[t.id]&&r&&i[r.id]&&(n.push(e),i[e.id]=e)})}),n}cloneSubGraph(e,t={}){const n=this.getSubGraph(e,t);return this.cloneCells(n)}cloneCells(e){return XT.cloneCells(e)}getNodesFromPoint(e,t){const n="number"===typeof e?{x:e,y:t||0}:e;return this.getNodes().filter(e=>{return e.getBBox().containsPoint(n)})}getNodesInArea(e,t,n,i,r){const o="number"===typeof e?new wy(e,t,n,i):wy.create(e),a="number"===typeof e?r:t,s=a&&a.strict;return this.getNodes().filter(e=>{const t=e.getBBox();return s?o.containsRect(t):o.isIntersectWithRect(t)})}getEdgesInArea(e,t,n,i,r){const o="number"===typeof e?new wy(e,t,n,i):wy.create(e),a="number"===typeof e?r:t,s=a&&a.strict;return this.getEdges().filter(e=>{const t=e.getBBox();return s?o.containsRect(t):o.isIntersectWithRect(t)})}getNodesUnderNode(e,t={}){const n=e.getBBox(),i=null==t.by||"bbox"===t.by?this.getNodesInArea(n):this.getNodesFromPoint(n[t.by]);return i.filter(t=>e.id!==t.id&&!t.isDescendantOf(e))}getAllCellsBBox(){return this.getCellsBBox(this.getCells())}getCellsBBox(e,t={}){return XT.getCellsBBox(e,t)}search(e,t,n={}){n.breadthFirst?this.breadthFirstSearch(e,t,n):this.depthFirstSearch(e,t,n)}breadthFirstSearch(e,t,n={}){const i=[],r={},o={};i.push(e),o[e.id]=0;while(i.length>0){const e=i.shift();if(null==e||r[e.id])continue;if(r[e.id]=!0,!1===s.call(t,this,e,o[e.id]))continue;const a=this.getNeighbors(e,n);a.forEach(t=>{o[t.id]=o[e.id]+1,i.push(t)})}}depthFirstSearch(e,t,n={}){const i=[],r={},o={};i.push(e),o[e.id]=0;while(i.length>0){const e=i.pop();if(null==e||r[e.id])continue;if(r[e.id]=!0,!1===s.call(t,this,e,o[e.id]))continue;const a=this.getNeighbors(e,n),l=i.length;a.forEach(t=>{o[t.id]=o[e.id]+1,i.splice(l,0,t)})}}getShortestPath(e,t,n={}){const i={};this.getEdges().forEach(e=>{const t=e.getSourceCellId(),r=e.getTargetCellId();t&&r&&(i[t]||(i[t]=[]),i[r]||(i[r]=[]),i[t].push(r),n.directed||i[r].push(t))});const r="string"===typeof e?e:e.id,o=fx.run(i,r,n.weight),a=[];let s="string"===typeof t?t:t.id;o[s]&&a.push(s);while(s=o[s])a.unshift(s);return a}translate(e,t,n){return this.getCells().filter(e=>!e.hasParent()).forEach(i=>i.translate(e,t,n)),this}resize(e,t,n){return this.resizeCells(e,t,this.getCells(),n)}resizeCells(e,t,n,i={}){const r=this.getCellsBBox(n);if(r){const o=Math.max(e/r.width,0),a=Math.max(t/r.height,0),s=r.getOrigin();n.forEach(e=>e.scale(o,a,s,i))}return this}toJSON(e={}){return _A.toJSON(this.getCells(),e)}parseJSON(e){return _A.fromJSON(e)}fromJSON(e,t={}){const n=this.parseJSON(e);return this.resetCells(n,t),this}startBatch(e,t={}){return this.batches[e]=(this.batches[e]||0)+1,this.notify("batch:start",{name:e,data:t}),this}stopBatch(e,t={}){return this.batches[e]=(this.batches[e]||0)-1,this.notify("batch:stop",{name:e,data:t}),this}batchUpdate(e,t,n={}){this.startBatch(e,n);const i=t();return this.stopBatch(e,n),i}hasActiveBatch(e=Object.keys(this.batches)){const t=Array.isArray(e)?e:[e];return t.some(e=>this.batches[e]>0)}}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&"function"===typeof i.addNode&&"function"===typeof i.addEdge&&null!=i.collection}e.toStringTag=`X6.${e.name}`,e.isModel=t})(_A||(_A={})),function(e){function t(e,t={}){return{cells:e.map(e=>e.toJSON(t))}}function n(e){const t=[];return Array.isArray(e)?t.push(...e):(e.cells&&t.push(...e.cells),e.nodes&&e.nodes.forEach(e=>{null==e.shape&&(e.shape="rect"),t.push(e)}),e.edges&&e.edges.forEach(e=>{null==e.shape&&(e.shape="edge"),t.push(e)})),t.map(e=>{const t=e.shape;if(t){if(eA.registry.exist(t))return eA.create(e);if(dA.registry.exist(t))return dA.create(e)}throw new Error("The `shape` should be specipied when creating a node/edge instance")})}e.toJSON=t,e.fromJSON=n}(_A||(_A={}));const yA=".text-block-content",bA=oA("text-block");class SA extends eA{get content(){return this.getContent()}set content(e){this.setContent(e)}getContent(){return this.store.get("content","")}setContent(e,t={}){this.store.set("content",e,t)}setup(){super.setup(),this.store.on("change:*",e=>{const t=e.key;"content"===t?this.updateContent(this.getContent()):"size"===t&&this.updateSize(this.getSize())}),this.updateSize(this.getSize()),this.updateContent(this.getContent())}updateSize(e){O.SUPPORT_FOREIGNOBJECT&&this.setAttrs({foreignObject:Object.assign({},e),[yA]:{style:Object.assign({},e)}})}updateContent(e){O.SUPPORT_FOREIGNOBJECT?this.setAttrs({[yA]:{html:e?o.sanitizeHTML(e):""}}):this.setAttrs({[yA]:{text:e}})}}(function(e){e.config({type:bA,view:bA,markup:['','',O.SUPPORT_FOREIGNOBJECT?["",'',`
`,"",""].join(""):``,""].join(""),attrs:{".":{fill:"#ffffff",stroke:"none"},rect:{fill:"#ffffff",stroke:"#000000",width:80,height:100},text:{fill:"#000000",fontSize:14,fontFamily:"Arial, helvetica, sans-serif"},body:{style:{background:"transparent",position:"static",margin:0,padding:0}},foreignObject:{style:{overflow:"hidden"}},[yA]:{refX:.5,refY:.5,yAlign:"middle",xAlign:"middle",style:{textAlign:"center",verticalAlign:"middle",display:"table-cell",padding:"0 5px",margin:0}}}}),eA.registry.register(bA,e)})(SA||(SA={})),function(e){const t="content";class n extends fA{confirmUpdate(e,n={}){let i=super.confirmUpdate(e,n);return this.hasAction(i,t)&&(this.updateContent(),i=this.removeAction(i,t)),i}update(e){if(O.SUPPORT_FOREIGNOBJECT)super.update(e);else{const t=this.cell,n=Object.assign({},e||t.getAttrs());delete n[yA],super.update(n),e&&!r.has(e,yA)||this.updateContent(e)}}updateContent(e){if(O.SUPPORT_FOREIGNOBJECT)super.update(e);else{const t=this.cell,n=(e||t.getAttrs())[yA],i=c.breakText(t.getContent(),t.getSize(),n,{svgDocument:this.graph.view.svg}),o={[yA]:r.merge({},n,{text:i})};super.update(o)}}}e.View=n,function(e){e.config({bootstrap:["render",t],actions:O.SUPPORT_FOREIGNOBJECT?{}:{size:t,content:t}}),fA.registry.register(bA,e)}(n=e.View||(e.View={}))}(SA||(SA={}));nA.define({shape:"empty"});function EA(e,t="body"){return[{tagName:e,selector:t},{tagName:"text",selector:"label"}]}function CA(e,t,n={}){const i={constructorName:e,markup:EA(e,n.selector),attrs:{[e]:Object.assign({},nA.bodyAttr)}},o=n.parent||nA;return o.define(r.merge(i,t,{shape:e}))}CA("rect",{attrs:{body:{refWidth:"100%",refHeight:"100%"}}}),eA.define({shape:"rect-headered",markup:[{tagName:"rect",selector:"body"},{tagName:"rect",selector:"header"},{tagName:"text",selector:"headerText"},{tagName:"text",selector:"bodyText"}],attrs:{body:Object.assign(Object.assign({},nA.bodyAttr),{refWidth:"100%",refHeight:"100%"}),header:Object.assign(Object.assign({},nA.bodyAttr),{refWidth:"100%",height:30,stroke:"#000000"}),headerText:Object.assign(Object.assign({},nA.labelAttr),{refX:"50%",refY:15,fontSize:16}),bodyText:Object.assign(Object.assign({},nA.labelAttr),{refY2:15})}}),CA("circle",{attrs:{body:{refCx:"50%",refCy:"50%",refR:"50%"}}});const xA=10;nA.define({shape:"cylinder",overwrite:!0,markup:[{tagName:"path",selector:"body"},{tagName:"ellipse",selector:"top"},{tagName:"text",selector:"label"}],attrs:{body:Object.assign(Object.assign({},nA.bodyAttr),{lateral:xA}),top:Object.assign(Object.assign({},nA.bodyAttr),{refCx:"50%",refRx:"50%",cy:xA,ry:xA})},attrHooks:{lateral:{set(e,{refBBox:t}){const n=a.isPercentage(e);n&&(e=parseFloat(e)/100);const i=t.x,r=t.y,o=t.width,s=t.height,l=o/2,c=n?s*e:e,u=.551784,d=u*l,h=u*c,p=i,f=i+o/2,g=i+o,m=r+c,v=m-c,_=r+s-c,y=r+s,b=["M",p,m,"L",p,_,"C",i,_+h,f-d,y,f,y,"C",f+d,y,g,_+h,g,_,"L",g,m,"C",g,m-h,f+d,v,f,v,"C",f-d,v,p,m-h,p,m,"Z"];return{d:b.join(" ")}}}},knob:{enabled:!0,position({node:e}){const t=e.attr("body/lateral");return{x:0,y:t}},onMouseMove({node:e,data:t,deltaY:n}){if(0!==n){const i=e.getBBox(),r=e.attr("body/lateral");null==t.round&&(t.round=r);const o=0,s=i.height/2,l=a.clamp(t.round+n,o,s);l!==r&&e.attr({body:{lateral:l},top:{cy:l,ry:l}})}}}}),CA("ellipse",{attrs:{body:{refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%"}}});var wA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{return Array.isArray(e)?e.join(","):xy.isPointLike(e)?`${e.x}, ${e.y}`:""}).join(" ")}e.pointsToString=t,e.config({propHooks(e){const{points:n}=e,i=wA(e,["points"]);if(n){const e=t(n);e&&r.setByPath(i,"attrs/body/refPoints",e)}return i}})})(TA||(TA={}));CA("polygon",{},{parent:TA}),CA("polyline",{},{parent:TA});var AA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const e=this.graph.hook.shouldUpdateHTMLComponent(this.cell);e&&this.renderHTMLComponent()})}confirmUpdate(e){const n=super.confirmUpdate(e);return this.handleAction(n,t.action,()=>this.renderHTMLComponent())}renderHTMLComponent(){const e=this.selectors.foContent;if(e){const t=this.$(e).empty(),n=this.graph.hook.getHTMLComponent(this.cell);n&&("string"===typeof n?t.html(n):t.append(n))}}}e.View=t,function(e){e.action="html",e.config({bootstrap:[e.action],actions:{html:e.action}}),fA.registry.register("html-view",e)}(t=e.View||(e.View={}))})(NA||(NA={})),function(e){e.config({view:"html-view",markup:[{tagName:"rect",selector:"body"},Object.assign({},Dx.getForeignObjectMarkup()),{tagName:"text",selector:"label"}],attrs:{body:{fill:"none",stroke:"none",refWidth:"100%",refHeight:"100%"},fo:{refWidth:"100%",refHeight:"100%"}}}),eA.registry.register("html",e)}(NA||(NA={})),function(e){e.componentRegistry=gS.create({type:"html componnet"})}(NA||(NA={}));var DA=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class IA extends px{constructor(e){super(),this.delay=10,this.throttle=2,this.threshold=5,this.changeCount=0,this.timestamp=0,this.options=Object.assign(Object.assign({},IA.defaultOptions),e),this.graph.model.on("cell:change:*",this.onModelChanged,this)}get graph(){return this.options.graph}onModelChanged(){if(this.disabled)return;const e=(new Date).getTime(),t=(e-this.timestamp)/1e3;t>this.delay||this.changeCount>=this.threshold&&t>this.throttle?(this.save(),this.reset()):this.changeCount+=1}save(){this.trigger("save")}reset(){this.changeCount=0,this.timestamp=(new Date).getTime()}dispose(){this.graph.model.off("cell:change:*",this.onModelChanged,this)}}DA([px.dispose()],IA.prototype,"dispose",null),function(e){e.defaultOptions={delay:10,throttle:2,threshold:5}}(IA||(IA={}));class MA extends ux{constructor(e){super(),this.graph=e,this.init()}get options(){return this.graph.options}get model(){return this.graph.model}get view(){return this.graph.view}init(){}}var kA,LA=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class PA extends Ex{constructor(e){super(),this.graph=e;const{selectors:t,fragment:n}=Dx.parseJSONMarkup(PA.markup);this.background=t.background,this.grid=t.grid,this.svg=t.svg,this.defs=t.defs,this.viewport=t.viewport,this.primer=t.primer,this.stage=t.stage,this.decorator=t.decorator,this.overlay=t.overlay,this.container=this.options.container,this.restore=PA.snapshoot(this.container),this.$(this.container).addClass(this.prefixClassName("graph")).append(n),this.delegateEvents()}get model(){return this.graph.model}get options(){return this.graph.options}delegateEvents(){const e=this.constructor;return super.delegateEvents(e.events),this}guard(e,t){return"mousedown"===e.type&&2===e.button||(!(!this.options.guard||!this.options.guard(e,t))||(e.data&&void 0!==e.data.guarded?e.data.guarded:!(t&&t.cell&&XT.isCell(t.cell))&&(this.svg!==e.target&&this.container!==e.target&&!T.a.contains(this.svg,e.target))))}findView(e){return this.graph.renderer.findViewByElem(e)}onDblClick(e){this.options.preventDefaultDblClick&&e.preventDefault();const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;const i=this.graph.snapToGrid(t.clientX,t.clientY);n?n.onDblClick(t,i.x,i.y):this.graph.trigger("blank:dblclick",{e:t,x:i.x,y:i.y})}onClick(e){if(this.getMouseMovedCount(e)<=this.options.clickThreshold){const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;const i=this.graph.snapToGrid(t.clientX,t.clientY);n?n.onClick(t,i.x,i.y):this.graph.trigger("blank:click",{e:t,x:i.x,y:i.y})}}onContextMenu(e){this.options.preventDefaultContextMenu&&e.preventDefault();const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;const i=this.graph.snapToGrid(t.clientX,t.clientY);n?n.onContextMenu(t,i.x,i.y):this.graph.trigger("blank:contextmenu",{e:t,x:i.x,y:i.y})}delegateDragEvents(e,t){null==e.data&&(e.data={}),this.setEventData(e,{currentView:t||null,mouseMovedCount:0,startPosition:{x:e.clientX,y:e.clientY}});const n=this.constructor;this.delegateDocumentEvents(n.documentEvents,e.data),this.undelegateEvents()}getMouseMovedCount(e){const t=this.getEventData(e);return t.mouseMovedCount||0}onMouseDown(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;this.options.preventDefaultMouseDown&&t.preventDefault();const i=this.graph.snapToGrid(t.clientX,t.clientY);n?n.onMouseDown(t,i.x,i.y):(this.options.preventDefaultBlankAction&&t.preventDefault(),this.graph.trigger("blank:mousedown",{e:t,x:i.x,y:i.y})),this.delegateDragEvents(t,n)}onMouseMove(e){const t=this.getEventData(e),n=t.startPosition;if(n&&n.x===e.clientX&&n.y===e.clientY)return;null==t.mouseMovedCount&&(t.mouseMovedCount=0),t.mouseMovedCount+=1;const i=t.mouseMovedCount;if(i<=this.options.moveThreshold)return;const r=this.normalizeEvent(e),o=this.graph.snapToGrid(r.clientX,r.clientY),a=t.currentView;a?a.onMouseMove(r,o.x,o.y):this.graph.trigger("blank:mousemove",{e:r,x:o.x,y:o.y}),this.setEventData(r,t)}onMouseUp(e){this.undelegateDocumentEvents();const t=this.normalizeEvent(e),n=this.graph.snapToGrid(t.clientX,t.clientY),i=this.getEventData(e),r=i.currentView;r?r.onMouseUp(t,n.x,n.y):this.graph.trigger("blank:mouseup",{e:t,x:n.x,y:n.y}),e.isPropagationStopped()||this.onClick(T.a.Event(e,{type:"click",data:e.data})),e.stopImmediatePropagation(),this.delegateEvents()}onMouseOver(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(!this.guard(t,n))if(n)n.onMouseOver(t);else{if(this.container===t.target)return;this.graph.trigger("blank:mouseover",{e:t})}}onMouseOut(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(!this.guard(t,n))if(n)n.onMouseOut(t);else{if(this.container===t.target)return;this.graph.trigger("blank:mouseout",{e:t})}}onMouseEnter(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;const i=this.graph.renderer.findViewByElem(t.relatedTarget);if(n){if(i===n)return;n.onMouseEnter(t)}else{if(i)return;this.graph.trigger("graph:mouseenter",{e:t})}}onMouseLeave(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;const i=this.graph.renderer.findViewByElem(t.relatedTarget);if(n){if(i===n)return;n.onMouseLeave(t)}else{if(i)return;this.graph.trigger("graph:mouseleave",{e:t})}}onMouseWheel(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;const i=t.originalEvent,r=this.graph.snapToGrid(i.clientX,i.clientY),o=Math.max(-1,Math.min(1,i.wheelDelta||-i.detail));n?n.onMouseWheel(t,r.x,r.y,o):this.graph.trigger("blank:mousewheel",{e:t,delta:o,x:r.x,y:r.y})}onCustomEvent(e){const t=e.currentTarget,n=t.getAttribute("event")||t.getAttribute("data-event");if(n){const i=this.findView(t);if(i){const t=this.normalizeEvent(e);if(this.guard(t,i))return;const r=this.graph.snapToGrid(t.clientX,t.clientY);i.onCustomEvent(t,n,r.x,r.y)}}}handleMagnetEvent(e,t){const n=e.currentTarget,i=n.getAttribute("magnet");if(i&&"false"!==i.toLowerCase()){const i=this.findView(n);if(i){const r=this.normalizeEvent(e);if(this.guard(r,i))return;const o=this.graph.snapToGrid(r.clientX,r.clientY);s.call(t,this.graph,i,r,n,o.x,o.y)}}}onMagnetMouseDown(e){this.handleMagnetEvent(e,(e,t,n,i,r)=>{e.onMagnetMouseDown(t,n,i,r)})}onMagnetDblClick(e){this.handleMagnetEvent(e,(e,t,n,i,r)=>{e.onMagnetDblClick(t,n,i,r)})}onMagnetContextMenu(e){this.options.preventDefaultContextMenu&&e.preventDefault(),this.handleMagnetEvent(e,(e,t,n,i,r)=>{e.onMagnetContextMenu(t,n,i,r)})}onLabelMouseDown(e){const t=e.currentTarget,n=this.findView(t);if(n){const t=this.normalizeEvent(e);if(this.guard(t,n))return;const i=this.graph.snapToGrid(t.clientX,t.clientY);n.onLabelMouseDown(t,i.x,i.y)}}onImageDragStart(){return!1}dispose(){this.undelegateEvents(),this.undelegateDocumentEvents(),this.restore(),this.restore=()=>{}}}LA([Ex.dispose()],PA.prototype,"dispose",null),function(e){const t=`${_C.prefixCls}-graph`;function n(e){const t=e.cloneNode();return e.childNodes.forEach(e=>t.appendChild(e)),()=>{c.empty(e);while(e.attributes.length>0)e.removeAttribute(e.attributes[0].name);for(let n=0,i=t.attributes.length;ne.appendChild(t))}}e.markup=[{ns:c.ns.xhtml,tagName:"div",selector:"background",className:`${t}-background`},{ns:c.ns.xhtml,tagName:"div",selector:"grid",className:`${t}-grid`},{ns:c.ns.svg,tagName:"svg",selector:"svg",className:`${t}-svg`,attrs:{width:"100%",height:"100%","xmlns:xlink":c.ns.xlink},children:[{tagName:"defs",selector:"defs"},{tagName:"g",selector:"viewport",className:`${t}-svg-viewport`,children:[{tagName:"g",selector:"primer",className:`${t}-svg-primer`},{tagName:"g",selector:"stage",className:`${t}-svg-stage`},{tagName:"g",selector:"decorator",className:`${t}-svg-decorator`},{tagName:"g",selector:"overlay",className:`${t}-svg-overlay`}]}]}],e.snapshoot=n}(PA||(PA={})),function(e){const t=_C.prefixCls;e.events={dblclick:"onDblClick",contextmenu:"onContextMenu",touchstart:"onMouseDown",mousedown:"onMouseDown",mouseover:"onMouseOver",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousewheel:"onMouseWheel",DOMMouseScroll:"onMouseWheel",[`mouseenter .${t}-cell`]:"onMouseEnter",[`mouseleave .${t}-cell`]:"onMouseLeave",[`mouseenter .${t}-cell-tools`]:"onMouseEnter",[`mouseleave .${t}-cell-tools`]:"onMouseLeave",[`mousedown .${t}-cell [event]`]:"onCustomEvent",[`touchstart .${t}-cell [event]`]:"onCustomEvent",[`mousedown .${t}-cell [data-event]`]:"onCustomEvent",[`touchstart .${t}-cell [data-event]`]:"onCustomEvent",[`dblclick .${t}-cell [magnet]`]:"onMagnetDblClick",[`contextmenu .${t}-cell [magnet]`]:"onMagnetContextMenu",[`mousedown .${t}-cell [magnet]`]:"onMagnetMouseDown",[`touchstart .${t}-cell [magnet]`]:"onMagnetMouseDown",[`dblclick .${t}-cell [data-magnet]`]:"onMagnetDblClick",[`contextmenu .${t}-cell [data-magnet]`]:"onMagnetContextMenu",[`mousedown .${t}-cell [data-magnet]`]:"onMagnetMouseDown",[`touchstart .${t}-cell [data-magnet]`]:"onMagnetMouseDown",[`dragstart .${t}-cell image`]:"onImageDragStart",[`mousedown .${t}-edge .${t}-edge-label`]:"onLabelMouseDown",[`touchstart .${t}-edge .${t}-edge-label`]:"onLabelMouseDown"},e.documentEvents={mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"}}(PA||(PA={})),function(e){function t(e,t){return(n,i,r)=>{const o=r.value;r.value=function(...n){const r=this.scroller.widget;if(null==r){const n=`Shoule enable scroller to use method '${i}'`;if(!1!==e)throw console.error(n),new Error(n);return!1!==t&&console.warn(n),this}return o.call(this,...n)}}}e.checkScroller=t}(kA||(kA={}));const FA=".x6-graph {\n position: relative;\n outline: none;\n}\n.x6-graph-background,\n.x6-graph-grid,\n.x6-graph-svg {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.x6-graph-background-stage,\n.x6-graph-grid-stage,\n.x6-graph-svg-stage {\n user-select: none;\n}\n.x6-graph.x6-graph-pannable {\n cursor: grab;\n cursor: -moz-grab;\n cursor: -webkit-grab;\n}\n.x6-graph.x6-graph-panning {\n cursor: grabbing;\n cursor: -moz-grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n}\n.x6-node {\n cursor: move;\n /* stylelint-disable-next-line */\n}\n.x6-node.x6-node-immovable {\n cursor: default;\n}\n.x6-node * {\n -webkit-user-drag: none;\n}\n.x6-node .scalable * {\n vector-effect: non-scaling-stroke;\n}\n.x6-node [magnet='true'] {\n cursor: crosshair;\n transition: opacity 0.3s;\n}\n.x6-node [magnet='true']:hover {\n opacity: 0.7;\n}\n.x6-node foreignObject {\n display: block;\n overflow: visible;\n background-color: transparent;\n}\n.x6-node foreignObject > body {\n position: static;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n overflow: visible;\n background-color: transparent;\n}\n.x6-edge .source-marker,\n.x6-edge .target-marker {\n vector-effect: non-scaling-stroke;\n}\n.x6-edge .connection {\n stroke-linejoin: round;\n fill: none;\n}\n.x6-edge .connection-wrap {\n cursor: move;\n opacity: 0;\n fill: none;\n stroke: #000;\n stroke-width: 15;\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n.x6-edge .connection-wrap:hover {\n opacity: 0.4;\n stroke-opacity: 0.4;\n}\n.x6-edge .vertices {\n cursor: move;\n opacity: 0;\n}\n.x6-edge .vertices .vertex {\n fill: #1abc9c;\n}\n.x6-edge .vertices .vertex :hover {\n fill: #34495e;\n stroke: none;\n}\n.x6-edge .vertices .vertex-remove {\n cursor: pointer;\n fill: #fff;\n}\n.x6-edge .vertices .vertex-remove-area {\n cursor: pointer;\n opacity: 0.1;\n}\n.x6-edge .vertices .vertex-group:hover .vertex-remove-area {\n opacity: 1;\n}\n.x6-edge .arrowheads {\n cursor: move;\n opacity: 0;\n}\n.x6-edge .arrowheads .arrowhead {\n fill: #1abc9c;\n}\n.x6-edge .arrowheads .arrowhead :hover {\n fill: #f39c12;\n stroke: none;\n}\n.x6-edge .tools {\n cursor: pointer;\n opacity: 0;\n}\n.x6-edge .tools .tool-options {\n display: none;\n}\n.x6-edge .tools .tool-remove circle {\n fill: #f00;\n}\n.x6-edge .tools .tool-remove path {\n fill: #fff;\n}\n.x6-edge:hover .vertices,\n.x6-edge:hover .arrowheads,\n.x6-edge:hover .tools {\n opacity: 1;\n}\n.x6-highlight-opacity {\n opacity: 0.3;\n}\n@keyframes halo-pie-visibility {\n 0% {\n visibility: hidden;\n }\n 100% {\n visibility: visible;\n }\n}\n@keyframes halo-pie-opening {\n 0% {\n transform: scale(0.4) rotate(-20deg);\n }\n 100% {\n transform: scale(1) rotate(0);\n }\n}\n.x6-widget-handle {\n position: absolute;\n width: 20px;\n height: 20px;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: 0 0;\n background-size: 20px 20px;\n cursor: pointer;\n user-select: none;\n pointer-events: auto;\n -webkit-user-drag: none;\n user-drag: none;\n /* stylelint-disable-line */\n}\n.x6-widget-handle.hidden {\n display: none;\n}\n.x6-widget-handle-selected {\n background-color: rgba(0, 0, 0, 0.1);\n border-radius: 3px;\n}\n.x6-widget-handle-remove {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M15.386%2C3.365c-3.315-3.314-8.707-3.313-12.021%2C0c-3.314%2C3.315-3.314%2C8.706%2C0%2C12.02%20c3.314%2C3.314%2C8.707%2C3.314%2C12.021%2C0S18.699%2C6.68%2C15.386%2C3.365L15.386%2C3.365z%20M4.152%2C14.598C1.273%2C11.719%2C1.273%2C7.035%2C4.153%2C4.154%20c2.88-2.88%2C7.563-2.88%2C10.443%2C0c2.881%2C2.88%2C2.881%2C7.562%2C0%2C10.443C11.716%2C17.477%2C7.032%2C17.477%2C4.152%2C14.598L4.152%2C14.598z%22%2F%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M12.157%2C11.371L7.38%2C6.593C7.162%2C6.375%2C6.809%2C6.375%2C6.592%2C6.592c-0.218%2C0.219-0.218%2C0.572%2C0%2C0.79%20l4.776%2C4.776c0.218%2C0.219%2C0.571%2C0.219%2C0.79%2C0C12.375%2C11.941%2C12.375%2C11.588%2C12.157%2C11.371L12.157%2C11.371z%22%2F%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M11.369%2C6.593l-4.777%2C4.778c-0.217%2C0.217-0.217%2C0.568%2C0%2C0.787c0.219%2C0.219%2C0.571%2C0.217%2C0.788%2C0l4.777-4.777%20c0.218-0.218%2C0.218-0.571%2C0.001-0.789C11.939%2C6.375%2C11.587%2C6.375%2C11.369%2C6.593L11.369%2C6.593z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n cursor: pointer;\n}\n.x6-widget-handle-remove:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M15.386%2C3.365c-3.315-3.314-8.707-3.313-12.021%2C0c-3.314%2C3.315-3.314%2C8.706%2C0%2C12.02%20c3.314%2C3.314%2C8.707%2C3.314%2C12.021%2C0S18.699%2C6.68%2C15.386%2C3.365L15.386%2C3.365z%22%2F%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M12.157%2C11.371L7.38%2C6.593C7.162%2C6.375%2C6.809%2C6.375%2C6.592%2C6.592c-0.218%2C0.219-0.218%2C0.572%2C0%2C0.79%20l4.776%2C4.776c0.218%2C0.219%2C0.571%2C0.219%2C0.79%2C0C12.375%2C11.941%2C12.375%2C11.588%2C12.157%2C11.371L12.157%2C11.371z%22%2F%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M11.369%2C6.593l-4.777%2C4.778c-0.217%2C0.217-0.217%2C0.568%2C0%2C0.787c0.219%2C0.219%2C0.571%2C0.217%2C0.788%2C0l4.777-4.777%20c0.218-0.218%2C0.218-0.571%2C0.001-0.789C11.939%2C6.375%2C11.587%2C6.375%2C11.369%2C6.593L11.369%2C6.593z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-rotate {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M9.374%2C17.592c-4.176%2C0-7.57-3.401-7.57-7.575c0-4.175%2C3.395-7.574%2C7.57-7.574c0.28%2C0%2C0.56%2C0.018%2C0.837%2C0.05%20V1.268c0-0.158%2C0.099-0.3%2C0.239-0.36c0.151-0.058%2C0.315-0.026%2C0.428%2C0.086l2.683%2C2.688c0.152%2C0.154%2C0.152%2C0.399%2C0%2C0.553l-2.68%2C2.693%20c-0.115%2C0.112-0.279%2C0.147-0.431%2C0.087c-0.141-0.063-0.239-0.205-0.239-0.361V5.296C9.934%2C5.243%2C9.654%2C5.22%2C9.374%2C5.22%20c-2.646%2C0-4.796%2C2.152-4.796%2C4.797s2.154%2C4.798%2C4.796%2C4.798c2.645%2C0%2C4.798-2.153%2C4.798-4.798c0-0.214%2C0.174-0.391%2C0.391-0.391h1.991%20c0.217%2C0%2C0.394%2C0.177%2C0.394%2C0.391C16.947%2C14.19%2C13.549%2C17.592%2C9.374%2C17.592L9.374%2C17.592z%20M9.374%2C17.592%22%2F%3E%3C%2Fsvg%3E%20');\n cursor: move;\n}\n.x6-widget-handle-rotate:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M9.374%2C17.592c-4.176%2C0-7.57-3.401-7.57-7.575c0-4.175%2C3.395-7.574%2C7.57-7.574c0.28%2C0%2C0.56%2C0.018%2C0.837%2C0.05%20V1.268c0-0.158%2C0.099-0.3%2C0.239-0.36c0.151-0.058%2C0.315-0.026%2C0.428%2C0.086l2.683%2C2.688c0.152%2C0.154%2C0.152%2C0.399%2C0%2C0.553l-2.68%2C2.693%20c-0.115%2C0.112-0.279%2C0.147-0.431%2C0.087c-0.141-0.063-0.239-0.205-0.239-0.361V5.296C9.934%2C5.243%2C9.654%2C5.22%2C9.374%2C5.22%20c-2.646%2C0-4.796%2C2.152-4.796%2C4.797s2.154%2C4.798%2C4.796%2C4.798c2.645%2C0%2C4.798-2.153%2C4.798-4.798c0-0.214%2C0.174-0.391%2C0.391-0.391h1.991%20c0.217%2C0%2C0.394%2C0.177%2C0.394%2C0.391C16.947%2C14.19%2C13.549%2C17.592%2C9.374%2C17.592L9.374%2C17.592z%20M9.374%2C17.592%22%2F%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-resize {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Csvg%20height%3D%2224px%22%20version%3D%221.1%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224px%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Asketch%3D%22http%3A%2F%2Fwww.bohemiancoding.com%2Fsketch%2Fns%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Ctitle%2F%3E%3Cdesc%2F%3E%3Cdefs%2F%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%20id%3D%22miu%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%3E%3Cg%20id%3D%22Artboard-1%22%20transform%3D%22translate(-251.000000%2C%20-443.000000)%22%3E%3Cg%20id%3D%22slice%22%20transform%3D%22translate(215.000000%2C%20119.000000)%22%2F%3E%3Cpath%20d%3D%22M252%2C448%20L256%2C448%20L256%2C444%20L252%2C444%20L252%2C448%20Z%20M257%2C448%20L269%2C448%20L269%2C446%20L257%2C446%20L257%2C448%20Z%20M257%2C464%20L269%2C464%20L269%2C462%20L257%2C462%20L257%2C464%20Z%20M270%2C444%20L270%2C448%20L274%2C448%20L274%2C444%20L270%2C444%20Z%20M252%2C462%20L252%2C466%20L256%2C466%20L256%2C462%20L252%2C462%20Z%20M270%2C462%20L270%2C466%20L274%2C466%20L274%2C462%20L270%2C462%20Z%20M254%2C461%20L256%2C461%20L256%2C449%20L254%2C449%20L254%2C461%20Z%20M270%2C461%20L272%2C461%20L272%2C449%20L270%2C449%20L270%2C461%20Z%22%20fill%3D%22%236A6C8A%22%20id%3D%22editor-crop-glyph%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E');\n cursor: se-resize;\n}\n.x6-widget-handle-resize:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Csvg%20height%3D%2224px%22%20version%3D%221.1%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224px%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Asketch%3D%22http%3A%2F%2Fwww.bohemiancoding.com%2Fsketch%2Fns%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Ctitle%2F%3E%3Cdesc%2F%3E%3Cdefs%2F%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%20id%3D%22miu%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%3E%3Cg%20id%3D%22Artboard-1%22%20transform%3D%22translate(-251.000000%2C%20-443.000000)%22%3E%3Cg%20id%3D%22slice%22%20transform%3D%22translate(215.000000%2C%20119.000000)%22%2F%3E%3Cpath%20d%3D%22M252%2C448%20L256%2C448%20L256%2C444%20L252%2C444%20L252%2C448%20Z%20M257%2C448%20L269%2C448%20L269%2C446%20L257%2C446%20L257%2C448%20Z%20M257%2C464%20L269%2C464%20L269%2C462%20L257%2C462%20L257%2C464%20Z%20M270%2C444%20L270%2C448%20L274%2C448%20L274%2C444%20L270%2C444%20Z%20M252%2C462%20L252%2C466%20L256%2C466%20L256%2C462%20L252%2C462%20Z%20M270%2C462%20L270%2C466%20L274%2C466%20L274%2C462%20L270%2C462%20Z%20M254%2C461%20L256%2C461%20L256%2C449%20L254%2C449%20L254%2C461%20Z%20M270%2C461%20L272%2C461%20L272%2C449%20L270%2C449%20L270%2C461%20Z%22%20fill%3D%22%23FD6EB6%22%20id%3D%22editor-crop-glyph%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E');\n}\n.x6-widget-handle-clone {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M12.852%2C0.875h-9.27c-0.853%2C0-1.547%2C0.694-1.547%2C1.547v10.816h1.547V2.422h9.27V0.875z%20M15.172%2C3.965h-8.5%20c-0.849%2C0-1.547%2C0.698-1.547%2C1.547v10.816c0%2C0.849%2C0.698%2C1.547%2C1.547%2C1.547h8.5c0.85%2C0%2C1.543-0.698%2C1.543-1.547V5.512%20C16.715%2C4.663%2C16.021%2C3.965%2C15.172%2C3.965L15.172%2C3.965z%20M15.172%2C16.328h-8.5V5.512h8.5V16.328z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n cursor: move;\n}\n.x6-widget-handle-clone:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M12.852%2C0.875h-9.27c-0.853%2C0-1.547%2C0.694-1.547%2C1.547v10.816h1.547V2.422h9.27V0.875z%20M15.172%2C3.965h-8.5%20c-0.849%2C0-1.547%2C0.698-1.547%2C1.547v10.816c0%2C0.849%2C0.698%2C1.547%2C1.547%2C1.547h8.5c0.849%2C0%2C1.543-0.698%2C1.543-1.547V5.512%20C16.715%2C4.663%2C16.021%2C3.965%2C15.172%2C3.965L15.172%2C3.965z%20M15.172%2C16.328h-8.5V5.512h8.5V16.328z%20M15.172%2C16.328%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-link {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M9.884%2C9.838c0.54-0.551%2C1.005-0.955%2C1.384-1.201c0.463-0.308%2C0.749-0.352%2C0.887-0.352h1.34v1.367%20c0%2C0.104%2C0.061%2C0.2%2C0.154%2C0.242s0.204%2C0.027%2C0.284-0.038l3.168-2.669c0.06-0.051%2C0.096-0.125%2C0.096-0.203S17.16%2C6.83%2C17.101%2C6.781%20l-3.168-2.677c-0.08-0.067-0.19-0.081-0.284-0.038c-0.094%2C0.045-0.154%2C0.139-0.154%2C0.242v1.414h-1.343%20c-1.24%2C0.014-2.215%2C0.67-2.927%2C1.242c-0.797%2C0.65-1.533%2C1.447-2.245%2C2.217c-0.361%2C0.391-0.7%2C0.759-1.044%2C1.1%20c-0.541%2C0.549-1.011%2C0.951-1.395%2C1.199c-0.354%2C0.231-0.678%2C0.357-0.921%2C0.357h-1.8c-0.146%2C0-0.266%2C0.12-0.266%2C0.265v2.029%20c0%2C0.148%2C0.12%2C0.268%2C0.266%2C0.268h1.8l0%2C0c1.255-0.014%2C2.239-0.667%2C2.958-1.24c0.82-0.661%2C1.572-1.475%2C2.297-2.256%20C9.225%2C10.524%2C9.555%2C10.169%2C9.884%2C9.838z%22%2F%3E%3C%2Fsvg%3E%20');\n cursor: move;\n cursor: -moz-grabbing;\n cursor: -webkit-grabbing;\n}\n.x6-widget-handle-link:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M9.884%2C9.838c0.54-0.551%2C1.005-0.955%2C1.384-1.201c0.463-0.308%2C0.749-0.352%2C0.887-0.352h1.34v1.367%20c0%2C0.104%2C0.061%2C0.2%2C0.154%2C0.242s0.204%2C0.027%2C0.284-0.038l3.168-2.669c0.06-0.051%2C0.096-0.125%2C0.096-0.203S17.16%2C6.83%2C17.101%2C6.781%20l-3.168-2.677c-0.08-0.067-0.19-0.081-0.284-0.038c-0.094%2C0.045-0.154%2C0.139-0.154%2C0.242v1.414h-1.343%20c-1.24%2C0.014-2.215%2C0.67-2.927%2C1.242c-0.797%2C0.65-1.533%2C1.447-2.245%2C2.217c-0.361%2C0.391-0.7%2C0.759-1.044%2C1.1%20c-0.541%2C0.549-1.011%2C0.951-1.395%2C1.199c-0.354%2C0.231-0.678%2C0.357-0.921%2C0.357h-1.8c-0.146%2C0-0.266%2C0.12-0.266%2C0.265v2.029%20c0%2C0.148%2C0.12%2C0.268%2C0.266%2C0.268h1.8l0%2C0c1.255-0.014%2C2.239-0.667%2C2.958-1.24c0.82-0.661%2C1.572-1.475%2C2.297-2.256%20C9.225%2C10.524%2C9.555%2C10.169%2C9.884%2C9.838z%22%2F%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-fork {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cg%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%236A6C8A%22%20d%3D%22M13.307%2C11.593c-0.69%2C0-1.299%2C0.33-1.693%2C0.835l-4.136-2.387%20C7.552%2C9.82%2C7.602%2C9.589%2C7.602%2C9.344c0-0.25-0.051-0.487-0.129-0.71l4.097-2.364c0.393%2C0.536%2C1.022%2C0.888%2C1.737%2C0.888%20c1.193%2C0%2C2.16-0.967%2C2.16-2.159s-0.967-2.159-2.16-2.159c-1.191%2C0-2.158%2C0.967-2.158%2C2.159c0%2C0.076%2C0.014%2C0.149%2C0.021%2C0.223%20L6.848%2C7.716C6.469%2C7.39%2C5.982%2C7.185%2C5.442%2C7.185c-1.191%2C0-2.158%2C0.967-2.158%2C2.159s0.967%2C2.159%2C2.158%2C2.159%20c0.545%2C0%2C1.037-0.208%2C1.417-0.541l4.319%2C2.493c-0.014%2C0.098-0.029%2C0.194-0.029%2C0.296c0%2C1.193%2C0.967%2C2.159%2C2.158%2C2.159%20c1.193%2C0%2C2.16-0.966%2C2.16-2.159C15.467%2C12.559%2C14.5%2C11.593%2C13.307%2C11.593z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n cursor: move;\n}\n.x6-widget-handle-fork:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cg%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23FD6EB6%22%20d%3D%22M13.307%2C11.593c-0.69%2C0-1.299%2C0.33-1.693%2C0.835l-4.136-2.387%20c0.075-0.22%2C0.125-0.452%2C0.125-0.697c0-0.25-0.051-0.487-0.129-0.71l4.097-2.365c0.394%2C0.536%2C1.022%2C0.888%2C1.737%2C0.888%20c1.193%2C0%2C2.16-0.967%2C2.16-2.159s-0.967-2.159-2.16-2.159c-1.191%2C0-2.158%2C0.967-2.158%2C2.159c0%2C0.076%2C0.015%2C0.148%2C0.022%2C0.223%20L6.848%2C7.716C6.469%2C7.39%2C5.981%2C7.185%2C5.442%2C7.185c-1.191%2C0-2.158%2C0.967-2.158%2C2.159s0.967%2C2.159%2C2.158%2C2.159%20c0.545%2C0%2C1.037-0.208%2C1.417-0.541l4.319%2C2.493c-0.013%2C0.098-0.029%2C0.194-0.029%2C0.296c0%2C1.193%2C0.967%2C2.159%2C2.158%2C2.159%20c1.193%2C0%2C2.16-0.966%2C2.16-2.159C15.467%2C12.559%2C14.5%2C11.593%2C13.307%2C11.593z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-unlink {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cg%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M12.285%2C9.711l-2.104-0.302L9.243%2C8.568L6.669%2C7.095C6.948%2C6.6%2C6.995%2C6.026%2C6.845%2C5.474%20c-0.191-0.698-0.695-1.36-1.438-1.786C4.068%2C2.922%2C2.464%2C3.214%2C1.82%2C4.338C1.536%2C4.836%2C1.489%2C5.414%2C1.64%2C5.97%20c0.189%2C0.698%2C0.694%2C1.36%2C1.438%2C1.787c0.328%2C0.187%2C0.67%2C0.31%2C1.01%2C0.372c0.002%2C0%2C0.006%2C0.002%2C0.008%2C0.004%20c0.027%2C0.004%2C0.057%2C0.009%2C0.088%2C0.011c2.12%2C0.316%2C3.203%2C0.915%2C3.73%2C1.337c-0.527%2C0.424-1.61%2C1.021-3.731%2C1.339%20c-0.029%2C0.003-0.058%2C0.007-0.087%2C0.012c-0.002%2C0.002-0.004%2C0.002-0.007%2C0.003c-0.341%2C0.062-0.684%2C0.187-1.013%2C0.374%20c-0.74%2C0.425-1.246%2C1.089-1.437%2C1.787c-0.149%2C0.555-0.105%2C1.133%2C0.181%2C1.632c0.011%2C0.018%2C0.021%2C0.033%2C0.033%2C0.049l0.883%2C0.783%20c0.765%2C0.366%2C1.775%2C0.328%2C2.67-0.184c0.744-0.425%2C1.248-1.088%2C1.439-1.786c0.148-0.552%2C0.104-1.126-0.176-1.62l2.573-1.473%20c0.573%2C0.287%2C2.299%2C1.292%2C2.299%2C1.292s3.602%2C1.445%2C4.241%2C1.812c0.773%2C0.191%2C0.566-0.151%2C0.566-0.151L12.285%2C9.711z%20M5.571%2C6.482%20C5.279%2C6.993%2C4.425%2C7.076%2C3.705%2C6.664C3.282%2C6.424%2C2.966%2C6.039%2C2.856%2C5.64C2.81%2C5.464%2C2.778%2C5.203%2C2.917%2C4.963%20c0.291-0.51%2C1.146-0.593%2C1.866-0.182C5.21%2C5.027%2C5.521%2C5.4%2C5.632%2C5.807C5.679%2C5.98%2C5.708%2C6.242%2C5.571%2C6.482z%20M5.632%2C13.159%20c-0.111%2C0.406-0.422%2C0.778-0.848%2C1.025c-0.719%2C0.409-1.576%2C0.327-1.867-0.184c-0.137-0.239-0.106-0.499-0.06-0.676%20c0.108-0.398%2C0.426-0.781%2C0.847-1.022c0.72-0.412%2C1.574-0.329%2C1.866%2C0.181C5.708%2C12.723%2C5.679%2C12.983%2C5.632%2C13.159z%20M16.181%2C5.139%20c-0.448%2C0.258-4.435%2C1.9-4.435%2C1.9s-1.556%2C0.855-2.104%2C1.13l0.937%2C0.843l2.057-0.229l4.11-3.638%20C16.745%2C5.146%2C17.013%2C4.664%2C16.181%2C5.139z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-unlink:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cg%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M12.285%2C9.711l-2.104-0.302L9.243%2C8.568L6.669%2C7.095C6.948%2C6.6%2C6.995%2C6.026%2C6.845%2C5.474%20c-0.191-0.698-0.695-1.36-1.438-1.786C4.068%2C2.922%2C2.464%2C3.214%2C1.82%2C4.338C1.536%2C4.836%2C1.489%2C5.414%2C1.64%2C5.97%20c0.189%2C0.698%2C0.694%2C1.36%2C1.438%2C1.787c0.328%2C0.187%2C0.67%2C0.31%2C1.01%2C0.372c0.002%2C0%2C0.006%2C0.002%2C0.008%2C0.004%20c0.027%2C0.004%2C0.057%2C0.009%2C0.088%2C0.011c2.12%2C0.316%2C3.203%2C0.915%2C3.73%2C1.337c-0.527%2C0.424-1.61%2C1.021-3.731%2C1.339%20c-0.029%2C0.003-0.058%2C0.007-0.087%2C0.012c-0.002%2C0.002-0.004%2C0.002-0.007%2C0.003c-0.341%2C0.062-0.684%2C0.187-1.013%2C0.374%20c-0.74%2C0.425-1.246%2C1.089-1.437%2C1.787c-0.149%2C0.555-0.105%2C1.133%2C0.181%2C1.632c0.011%2C0.018%2C0.021%2C0.033%2C0.033%2C0.049l0.883%2C0.783%20c0.765%2C0.366%2C1.775%2C0.328%2C2.67-0.184c0.744-0.425%2C1.248-1.088%2C1.439-1.786c0.148-0.552%2C0.104-1.126-0.176-1.62l2.573-1.473%20c0.573%2C0.287%2C2.299%2C1.292%2C2.299%2C1.292s3.602%2C1.445%2C4.241%2C1.812c0.773%2C0.191%2C0.566-0.151%2C0.566-0.151L12.285%2C9.711z%20M5.571%2C6.482%20C5.279%2C6.993%2C4.425%2C7.076%2C3.705%2C6.664C3.282%2C6.424%2C2.966%2C6.039%2C2.856%2C5.64C2.81%2C5.464%2C2.778%2C5.203%2C2.917%2C4.963%20c0.291-0.51%2C1.146-0.593%2C1.866-0.182C5.21%2C5.027%2C5.521%2C5.4%2C5.632%2C5.807C5.679%2C5.98%2C5.708%2C6.242%2C5.571%2C6.482z%20M5.632%2C13.159%20c-0.111%2C0.406-0.422%2C0.778-0.848%2C1.025c-0.719%2C0.409-1.576%2C0.327-1.867-0.184c-0.137-0.239-0.106-0.499-0.06-0.676%20c0.108-0.398%2C0.426-0.781%2C0.847-1.022c0.72-0.412%2C1.574-0.329%2C1.866%2C0.181C5.708%2C12.723%2C5.679%2C12.983%2C5.632%2C13.159z%20M16.181%2C5.139%20c-0.448%2C0.258-4.435%2C1.9-4.435%2C1.9s-1.556%2C0.855-2.104%2C1.13l0.937%2C0.843l2.057-0.229l4.11-3.638%20C16.745%2C5.146%2C17.013%2C4.664%2C16.181%2C5.139z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-direction {\n background-image: url(\"data:image/svg+xml;charset=UTF-8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3C!DOCTYPE%20svg%20%20PUBLIC%20'-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN'%20%20'http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd'%3E%3Csvg%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%20512%20512%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%20512%20512%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%0A%09.st0%7Bfill%3A%236A6C8A%3Bstroke%3A%236A6C8A%3Bstroke-width%3A30%7D%0A%09.dot%7Bfill%3A%236A6C8A%3B%7D%0A%3C%2Fstyle%3E%3Cg%3E%3Cg%20id%3D%22XMLID_475_%22%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M133.1%2C277.1c1.8%2C0%2C3.7-0.6%2C5.4-1.7c4.1-3%2C5-8.7%2C2-12.8c-3-4.1-8.7-5-12.8-2c0%2C0%2C0%2C0%2C0%2C0%20%20%20%20%20c-4.1%2C3-5%2C8.7-2%2C12.8C127.5%2C275.8%2C130.3%2C277.1%2C133.1%2C277.1z%22%20id%3D%22XMLID_489_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M138.5%2C359.6c-4.1-3-9.8-2.1-12.8%2C2c-3%2C4.1-2.1%2C9.8%2C2%2C12.8c1.6%2C1.2%2C3.5%2C1.7%2C5.4%2C1.7%20%20%20%20%20c2.8%2C0%2C5.6-1.3%2C7.4-3.7C143.5%2C368.3%2C142.6%2C362.6%2C138.5%2C359.6z%22%20id%3D%22XMLID_726_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M108.1%2C327.7c-4.8%2C1.6-7.4%2C6.7-5.9%2C11.5c1.3%2C3.9%2C4.8%2C6.3%2C8.7%2C6.3c0.9%2C0%2C1.9-0.1%2C2.8-0.4%20%20%20%20%20c4.8-1.6%2C7.4-6.7%2C5.9-11.5C118%2C328.8%2C112.9%2C326.2%2C108.1%2C327.7z%22%20id%3D%22XMLID_776_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M108.1%2C307.3c0.9%2C0.3%2C1.9%2C0.4%2C2.8%2C0.4c3.8%2C0%2C7.4-2.4%2C8.7-6.3c1.6-4.8-1.1-9.9-5.9-11.5%20%20%20%20%20c-4.8-1.6-9.9%2C1.1-11.5%2C5.9C100.7%2C300.6%2C103.3%2C305.7%2C108.1%2C307.3z%22%20id%3D%22XMLID_777_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M169.2%2C265.4c2.4%2C0%2C4.7-1%2C6.5-2.6c1.7-1.7%2C2.7-4.1%2C2.7-6.5c0-2.4-1-4.8-2.7-6.5%20%20%20%20%20c-1.7-1.7-4.1-2.7-6.5-2.7s-4.7%2C1-6.5%2C2.7c-1.7%2C1.7-2.7%2C4-2.7%2C6.5c0%2C2.4%2C1%2C4.7%2C2.7%2C6.5C164.4%2C264.4%2C166.8%2C265.4%2C169.2%2C265.4z%22%20id%3D%22XMLID_797_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M247.7%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C243.7%2C265.4%2C247.7%2C261.3%2C247.7%2C256.3z%22%20id%3D%22XMLID_798_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M213%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C208.9%2C265.4%2C213%2C261.3%2C213%2C256.3z%22%20id%3D%22XMLID_799_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M317.2%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C313.1%2C265.4%2C317.2%2C261.3%2C317.2%2C256.3z%22%20id%3D%22XMLID_800_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M282.5%2C256.3c0-5-4.1-9.1-9.1-9.1s-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20S282.5%2C261.3%2C282.5%2C256.3z%22%20id%3D%22XMLID_801_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M401.1%2C185.2c0.9%2C0%2C1.9-0.1%2C2.8-0.5c4.8-1.6%2C7.4-6.7%2C5.9-11.5c-1.6-4.8-6.7-7.4-11.5-5.8%20%20%20%20%20c-4.8%2C1.6-7.4%2C6.7-5.8%2C11.5C393.6%2C182.8%2C397.2%2C185.2%2C401.1%2C185.2z%22%20id%3D%22XMLID_802_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M403.9%2C205.2c-4.8-1.6-9.9%2C1-11.5%2C5.9l0%2C0c-1.6%2C4.8%2C1.1%2C9.9%2C5.9%2C11.5%20%20%20%20%20c0.9%2C0.3%2C1.9%2C0.5%2C2.8%2C0.5c3.9%2C0%2C7.4-2.5%2C8.7-6.3c0%2C0%2C0%2C0%2C0%2C0C411.3%2C211.9%2C408.7%2C206.8%2C403.9%2C205.2z%22%20id%3D%22XMLID_803_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M373.5%2C237.2L373.5%2C237.2c-4.1%2C3-5%2C8.7-2%2C12.8c1.8%2C2.4%2C4.6%2C3.7%2C7.4%2C3.7%20%20%20%20%20c1.8%2C0%2C3.7-0.6%2C5.4-1.8c4.1-3%2C4.9-8.7%2C2-12.8C383.3%2C235.1%2C377.6%2C234.2%2C373.5%2C237.2z%22%20id%3D%22XMLID_804_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M373.5%2C152.9c1.6%2C1.2%2C3.5%2C1.8%2C5.4%2C1.8c2.8%2C0%2C5.6-1.3%2C7.4-3.8c3-4.1%2C2.1-9.8-2-12.7%20%20%20%20%20c-4.1-3-9.8-2.1-12.7%2C2C368.5%2C144.2%2C369.4%2C149.9%2C373.5%2C152.9z%22%20id%3D%22XMLID_805_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M342.8%2C247.1c-2.4%2C0-4.8%2C1-6.5%2C2.7c-1.7%2C1.7-2.7%2C4-2.7%2C6.5c0%2C2.4%2C1%2C4.7%2C2.7%2C6.4%20%20%20%20%20c1.7%2C1.7%2C4%2C2.7%2C6.5%2C2.7c2.4%2C0%2C4.7-1%2C6.5-2.7c1.7-1.7%2C2.7-4%2C2.7-6.4c0-2.4-1-4.8-2.7-6.5C347.6%2C248.1%2C345.2%2C247.1%2C342.8%2C247.1z%22%20id%3D%22XMLID_806_%22%2F%3E%0A%3Cpath%20class%3D%22st0%22%20d%3D%22M342.8%2C124.7H206.6l36.4-36.4c3.6-3.6%2C3.6-9.3%2C0-12.9c-3.6-3.6-9.3-3.6-12.9%2C0l-51.5%2C51.5%20%20%20%20%20c-1.9%2C1.9-2.8%2C4.4-2.7%2C6.9c-0.1%2C2.5%2C0.7%2C5%2C2.7%2C6.9l51.5%2C51.5c1.8%2C1.8%2C4.1%2C2.7%2C6.5%2C2.7c2.3%2C0%2C4.7-0.9%2C6.5-2.7%20%20%20%20%20c3.6-3.6%2C3.6-9.3%2C0-12.9l-36.4-36.4h136.1c0%2C0%2C0.1%2C0%2C0.1%2C0c0.6%2C0%2C1.2-0.1%2C1.8-0.2c0.2%2C0%2C0.4-0.1%2C0.6-0.1c0.1%2C0%2C0.2%2C0%2C0.3-0.1%20%20%20%20%20c3.2-1%2C5.6-3.6%2C6.3-6.9c0.1-0.6%2C0.2-1.2%2C0.2-1.8c0-0.6-0.1-1.2-0.2-1.8C351%2C127.8%2C347.3%2C124.7%2C342.8%2C124.7z%22%20id%3D%22XMLID_807_%22%2F%3E%0A%3Cpath%20class%3D%22st0%22%20d%3D%22M322.1%2C371.3l-51.5-51.5c-3.6-3.6-9.3-3.6-12.9%2C0c-3.6%2C3.6-3.6%2C9.3%2C0%2C12.9l36.9%2C36.9H169.2%20%20%20%20%20c-2.8%2C0-5.4%2C1.3-7%2C3.3c-0.1%2C0.1-0.2%2C0.2-0.3%2C0.4c-0.1%2C0.1-0.2%2C0.2-0.2%2C0.3c-0.1%2C0.1-0.1%2C0.2-0.2%2C0.4c-0.1%2C0.1-0.2%2C0.3-0.2%2C0.4%20%20%20%20%20c0%2C0.1-0.1%2C0.2-0.1%2C0.2c-0.1%2C0.2-0.2%2C0.4-0.3%2C0.6c0%2C0%2C0%2C0%2C0%2C0.1c-0.4%2C1.1-0.7%2C2.2-0.7%2C3.4c0%2C1.5%2C0.4%2C2.9%2C1%2C4.2c0%2C0%2C0%2C0.1%2C0.1%2C0.1%20%20%20%20%20c0.1%2C0.1%2C0.1%2C0.2%2C0.2%2C0.3c0.4%2C0.7%2C0.9%2C1.3%2C1.4%2C1.8c0.4%2C0.4%2C0.7%2C0.7%2C1.2%2C1c0.1%2C0.1%2C0.1%2C0.1%2C0.2%2C0.2c0%2C0%2C0.1%2C0%2C0.1%2C0.1%20%20%20%20%20c1.4%2C0.9%2C3.1%2C1.5%2C5%2C1.5h124.4l-36%2C36c-3.6%2C3.6-3.6%2C9.3%2C0%2C12.9c1.8%2C1.8%2C4.1%2C2.7%2C6.5%2C2.7c2.3%2C0%2C4.7-0.9%2C6.5-2.7l51.5-51.5%20%20%20%20%20c1.9-1.9%2C2.8-4.4%2C2.7-6.9C324.8%2C375.7%2C324%2C373.2%2C322.1%2C371.3z%22%20id%3D%22XMLID_808_%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n.x6-widget-handle-direction:hover {\n background-image: url(\"data:image/svg+xml;charset=UTF-8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3C!DOCTYPE%20svg%20%20PUBLIC%20'-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN'%20%20'http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd'%3E%3Csvg%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%20512%20512%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%20512%20512%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%0A%09.st0%7Bfill%3A%23FD6EB6%3Bstroke%3A%23FD6EB6%3Bstroke-width%3A30%7D%0A%09.dot%7Bfill%3A%23FD6EB6%3B%7D%0A%3C%2Fstyle%3E%3Cg%3E%3Cg%20id%3D%22XMLID_475_%22%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M133.1%2C277.1c1.8%2C0%2C3.7-0.6%2C5.4-1.7c4.1-3%2C5-8.7%2C2-12.8c-3-4.1-8.7-5-12.8-2c0%2C0%2C0%2C0%2C0%2C0%20%20%20%20%20c-4.1%2C3-5%2C8.7-2%2C12.8C127.5%2C275.8%2C130.3%2C277.1%2C133.1%2C277.1z%22%20id%3D%22XMLID_489_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M138.5%2C359.6c-4.1-3-9.8-2.1-12.8%2C2c-3%2C4.1-2.1%2C9.8%2C2%2C12.8c1.6%2C1.2%2C3.5%2C1.7%2C5.4%2C1.7%20%20%20%20%20c2.8%2C0%2C5.6-1.3%2C7.4-3.7C143.5%2C368.3%2C142.6%2C362.6%2C138.5%2C359.6z%22%20id%3D%22XMLID_726_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M108.1%2C327.7c-4.8%2C1.6-7.4%2C6.7-5.9%2C11.5c1.3%2C3.9%2C4.8%2C6.3%2C8.7%2C6.3c0.9%2C0%2C1.9-0.1%2C2.8-0.4%20%20%20%20%20c4.8-1.6%2C7.4-6.7%2C5.9-11.5C118%2C328.8%2C112.9%2C326.2%2C108.1%2C327.7z%22%20id%3D%22XMLID_776_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M108.1%2C307.3c0.9%2C0.3%2C1.9%2C0.4%2C2.8%2C0.4c3.8%2C0%2C7.4-2.4%2C8.7-6.3c1.6-4.8-1.1-9.9-5.9-11.5%20%20%20%20%20c-4.8-1.6-9.9%2C1.1-11.5%2C5.9C100.7%2C300.6%2C103.3%2C305.7%2C108.1%2C307.3z%22%20id%3D%22XMLID_777_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M169.2%2C265.4c2.4%2C0%2C4.7-1%2C6.5-2.6c1.7-1.7%2C2.7-4.1%2C2.7-6.5c0-2.4-1-4.8-2.7-6.5%20%20%20%20%20c-1.7-1.7-4.1-2.7-6.5-2.7s-4.7%2C1-6.5%2C2.7c-1.7%2C1.7-2.7%2C4-2.7%2C6.5c0%2C2.4%2C1%2C4.7%2C2.7%2C6.5C164.4%2C264.4%2C166.8%2C265.4%2C169.2%2C265.4z%22%20id%3D%22XMLID_797_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M247.7%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C243.7%2C265.4%2C247.7%2C261.3%2C247.7%2C256.3z%22%20id%3D%22XMLID_798_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M213%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C208.9%2C265.4%2C213%2C261.3%2C213%2C256.3z%22%20id%3D%22XMLID_799_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M317.2%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C313.1%2C265.4%2C317.2%2C261.3%2C317.2%2C256.3z%22%20id%3D%22XMLID_800_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M282.5%2C256.3c0-5-4.1-9.1-9.1-9.1s-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20S282.5%2C261.3%2C282.5%2C256.3z%22%20id%3D%22XMLID_801_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M401.1%2C185.2c0.9%2C0%2C1.9-0.1%2C2.8-0.5c4.8-1.6%2C7.4-6.7%2C5.9-11.5c-1.6-4.8-6.7-7.4-11.5-5.8%20%20%20%20%20c-4.8%2C1.6-7.4%2C6.7-5.8%2C11.5C393.6%2C182.8%2C397.2%2C185.2%2C401.1%2C185.2z%22%20id%3D%22XMLID_802_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M403.9%2C205.2c-4.8-1.6-9.9%2C1-11.5%2C5.9l0%2C0c-1.6%2C4.8%2C1.1%2C9.9%2C5.9%2C11.5%20%20%20%20%20c0.9%2C0.3%2C1.9%2C0.5%2C2.8%2C0.5c3.9%2C0%2C7.4-2.5%2C8.7-6.3c0%2C0%2C0%2C0%2C0%2C0C411.3%2C211.9%2C408.7%2C206.8%2C403.9%2C205.2z%22%20id%3D%22XMLID_803_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M373.5%2C237.2L373.5%2C237.2c-4.1%2C3-5%2C8.7-2%2C12.8c1.8%2C2.4%2C4.6%2C3.7%2C7.4%2C3.7%20%20%20%20%20c1.8%2C0%2C3.7-0.6%2C5.4-1.8c4.1-3%2C4.9-8.7%2C2-12.8C383.3%2C235.1%2C377.6%2C234.2%2C373.5%2C237.2z%22%20id%3D%22XMLID_804_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M373.5%2C152.9c1.6%2C1.2%2C3.5%2C1.8%2C5.4%2C1.8c2.8%2C0%2C5.6-1.3%2C7.4-3.8c3-4.1%2C2.1-9.8-2-12.7%20%20%20%20%20c-4.1-3-9.8-2.1-12.7%2C2C368.5%2C144.2%2C369.4%2C149.9%2C373.5%2C152.9z%22%20id%3D%22XMLID_805_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M342.8%2C247.1c-2.4%2C0-4.8%2C1-6.5%2C2.7c-1.7%2C1.7-2.7%2C4-2.7%2C6.5c0%2C2.4%2C1%2C4.7%2C2.7%2C6.4%20%20%20%20%20c1.7%2C1.7%2C4%2C2.7%2C6.5%2C2.7c2.4%2C0%2C4.7-1%2C6.5-2.7c1.7-1.7%2C2.7-4%2C2.7-6.4c0-2.4-1-4.8-2.7-6.5C347.6%2C248.1%2C345.2%2C247.1%2C342.8%2C247.1z%22%20id%3D%22XMLID_806_%22%2F%3E%0A%3Cpath%20class%3D%22st0%22%20d%3D%22M342.8%2C124.7H206.6l36.4-36.4c3.6-3.6%2C3.6-9.3%2C0-12.9c-3.6-3.6-9.3-3.6-12.9%2C0l-51.5%2C51.5%20%20%20%20%20c-1.9%2C1.9-2.8%2C4.4-2.7%2C6.9c-0.1%2C2.5%2C0.7%2C5%2C2.7%2C6.9l51.5%2C51.5c1.8%2C1.8%2C4.1%2C2.7%2C6.5%2C2.7c2.3%2C0%2C4.7-0.9%2C6.5-2.7%20%20%20%20%20c3.6-3.6%2C3.6-9.3%2C0-12.9l-36.4-36.4h136.1c0%2C0%2C0.1%2C0%2C0.1%2C0c0.6%2C0%2C1.2-0.1%2C1.8-0.2c0.2%2C0%2C0.4-0.1%2C0.6-0.1c0.1%2C0%2C0.2%2C0%2C0.3-0.1%20%20%20%20%20c3.2-1%2C5.6-3.6%2C6.3-6.9c0.1-0.6%2C0.2-1.2%2C0.2-1.8c0-0.6-0.1-1.2-0.2-1.8C351%2C127.8%2C347.3%2C124.7%2C342.8%2C124.7z%22%20id%3D%22XMLID_807_%22%2F%3E%0A%3Cpath%20class%3D%22st0%22%20d%3D%22M322.1%2C371.3l-51.5-51.5c-3.6-3.6-9.3-3.6-12.9%2C0c-3.6%2C3.6-3.6%2C9.3%2C0%2C12.9l36.9%2C36.9H169.2%20%20%20%20%20c-2.8%2C0-5.4%2C1.3-7%2C3.3c-0.1%2C0.1-0.2%2C0.2-0.3%2C0.4c-0.1%2C0.1-0.2%2C0.2-0.2%2C0.3c-0.1%2C0.1-0.1%2C0.2-0.2%2C0.4c-0.1%2C0.1-0.2%2C0.3-0.2%2C0.4%20%20%20%20%20c0%2C0.1-0.1%2C0.2-0.1%2C0.2c-0.1%2C0.2-0.2%2C0.4-0.3%2C0.6c0%2C0%2C0%2C0%2C0%2C0.1c-0.4%2C1.1-0.7%2C2.2-0.7%2C3.4c0%2C1.5%2C0.4%2C2.9%2C1%2C4.2c0%2C0%2C0%2C0.1%2C0.1%2C0.1%20%20%20%20%20c0.1%2C0.1%2C0.1%2C0.2%2C0.2%2C0.3c0.4%2C0.7%2C0.9%2C1.3%2C1.4%2C1.8c0.4%2C0.4%2C0.7%2C0.7%2C1.2%2C1c0.1%2C0.1%2C0.1%2C0.1%2C0.2%2C0.2c0%2C0%2C0.1%2C0%2C0.1%2C0.1%20%20%20%20%20c1.4%2C0.9%2C3.1%2C1.5%2C5%2C1.5h124.4l-36%2C36c-3.6%2C3.6-3.6%2C9.3%2C0%2C12.9c1.8%2C1.8%2C4.1%2C2.7%2C6.5%2C2.7c2.3%2C0%2C4.7-0.9%2C6.5-2.7l51.5-51.5%20%20%20%20%20c1.9-1.9%2C2.8-4.4%2C2.7-6.9C324.8%2C375.7%2C324%2C373.2%2C322.1%2C371.3z%22%20id%3D%22XMLID_808_%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n.x6-widget-handle-surround .x6-widget-handle-animate .x6-widget-handle {\n transition: background-size 80ms, width 80ms, height 80ms, top 150ms, left 150ms, bottom 150ms, right 150ms;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-se {\n right: -25px;\n bottom: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-nw {\n top: -21px;\n left: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-n {\n top: -22px;\n left: 50%;\n margin-left: -10px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-e {\n top: -webkit-calc(40%);\n top: calc(50% - 10px);\n right: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-ne {\n top: -21px;\n right: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-w {\n top: 50%;\n left: -25px;\n margin-top: -10px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-sw {\n bottom: -25px;\n left: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-s {\n bottom: -24px;\n left: 50%;\n margin-left: -10px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle {\n width: 15px;\n height: 15px;\n font-size: 15px;\n background-size: 15px 15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-se {\n right: -19px;\n bottom: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-nw {\n top: -19px;\n left: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-n {\n top: -19px;\n margin-left: -7.5px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-e {\n top: -webkit-calc(42%);\n top: calc(50% - 8px);\n right: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-ne {\n top: -19px;\n right: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-w {\n left: -19px;\n margin-top: -8px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-sw {\n bottom: -19px;\n left: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-s {\n bottom: -19px;\n margin-left: -7.5px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle {\n width: 10px;\n height: 10px;\n font-size: 10px;\n background-size: 10px 10px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-se {\n right: -15px;\n bottom: -13px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-nw {\n top: -13px;\n left: -15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-n {\n top: -13px;\n margin-left: -5px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-e {\n top: -webkit-calc(45%);\n top: calc(50% - 5px);\n right: -15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-ne {\n top: -13px;\n right: -15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-w {\n left: -15px;\n margin-top: -5px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-sw {\n bottom: -13px;\n left: -15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-s {\n bottom: -13px;\n margin-left: -5px;\n}\n.x6-widget-handle-toolbar {\n position: absolute;\n top: -50px;\n display: table-row;\n padding: 7px 5px;\n}\n.x6-widget-handle-toolbar::after {\n position: absolute;\n top: 100%;\n left: 10px;\n width: 0;\n height: 0;\n margin-top: 4px;\n border-right: 10px solid transparent;\n border-left: 10px solid transparent;\n content: '';\n}\n.x6-widget-handle-toolbar .x6-widget-handle {\n position: relative;\n display: table-cell;\n min-width: 20px;\n margin: 0 2px;\n background-position: 3px 3px;\n background-size: 16px 16px;\n}\n.x6-widget-handle-toolbar .x6-widget-handle::after {\n position: absolute;\n bottom: -11px;\n width: 100%;\n content: '';\n}\n.x6-widget-handle-pie {\n position: absolute;\n top: -webkit-calc(0%);\n top: calc(50% - 50px);\n right: -50px;\n z-index: 1;\n display: none;\n width: 100px;\n height: 100px;\n margin: -2px -2px 0 0;\n border-radius: 50%;\n cursor: default;\n pointer-events: visiblePainted;\n}\n.x6-widget-handle-pie .x6-widget-handle {\n width: 1px;\n height: auto;\n pointer-events: visiblePainted;\n}\n.x6-widget-handle-pie-slice-svg {\n width: 100%;\n height: 100%;\n overflow: visible !important;\n}\n.x6-widget-handle-pie-slice-img,\n.x6-widget-handle-pie-slice-txt {\n display: none;\n pointer-events: none;\n}\n.x6-widget-handle-pie[data-pie-toggle-position='e'] {\n top: calc(50% - 50px);\n right: -50px;\n left: auto;\n}\n.x6-widget-handle-pie[data-pie-toggle-position='w'] {\n top: calc(50% - 50px);\n right: auto;\n left: -52px;\n}\n.x6-widget-handle-pie[data-pie-toggle-position='n'] {\n top: -50px;\n right: auto;\n bottom: auto;\n left: calc(50% - 52px);\n}\n.x6-widget-handle-pie[data-pie-toggle-position='s'] {\n top: auto;\n right: auto;\n bottom: -52px;\n left: calc(50% - 52px);\n}\n.x6-widget-handle-pie-opened {\n display: block;\n animation: halo-pie-visibility 0.1s, halo-pie-opening 0.1s;\n animation-timing-function: step-end, ease;\n animation-delay: 0s, 0.1s;\n}\n.x6-widget-handle-pie-toggle {\n position: absolute;\n top: -webkit-calc(35%);\n top: calc(50% - 15px);\n right: -15px;\n z-index: 2;\n display: block;\n box-sizing: border-box;\n width: 30px;\n height: 30px;\n background-repeat: no-repeat;\n background-position: center;\n background-size: 20px 20px;\n border-radius: 50%;\n cursor: pointer;\n user-select: none;\n pointer-events: visiblePainted;\n -webkit-user-drag: none;\n user-drag: none;\n /* stylelint-disable-line */\n}\n.x6-widget-handle-pie-toggle-pos-e {\n top: -webkit-calc(35%);\n top: calc(50% - 15px);\n right: -15px;\n bottom: auto;\n left: auto;\n}\n.x6-widget-handle-pie-toggle-pos-w {\n top: -webkit-calc(35%);\n top: calc(50% - 15px);\n right: auto;\n bottom: auto;\n left: -15px;\n}\n.x6-widget-handle-pie-toggle-pos-n {\n top: -15px;\n right: auto;\n bottom: auto;\n left: -webkit-calc(35%);\n left: calc(50% - 15px);\n}\n.x6-widget-handle-pie-toggle-pos-s {\n top: auto;\n right: auto;\n bottom: -15px;\n left: -webkit-calc(35%);\n left: calc(50% - 15px);\n}\n.x6-widget-handle-pie-toggle-opened {\n transition: 0.1s background-image;\n}\n.x6-widget-handle-toolbar {\n position: static;\n display: inline-block;\n margin-top: -50px;\n margin-left: 45px;\n white-space: nowrap;\n vertical-align: top;\n background-color: #f5f5f5;\n border-bottom: 3px solid #333;\n border-radius: 5px;\n box-shadow: 0 1px 2px #222;\n}\n.x6-widget-handle-toolbar::after {\n top: -12px;\n left: 55px;\n margin-top: 0;\n border-top: 6px solid #333;\n border-right: 10px solid transparent;\n border-left: 10px solid transparent;\n}\n.x6-widget-handle-toolbar .x6-widget-handle {\n display: inline-block;\n vertical-align: top;\n}\n.x6-widget-handle-toolbar .x6-widget-handle:hover::after {\n border-bottom: 4px solid #fc6cb8;\n}\n.x6-widget-handle-toolbar .x6-widget-handle-rotate {\n position: absolute;\n top: 100%;\n right: 100%;\n margin-top: 3px;\n margin-right: 6px;\n}\n.x6-widget-handle-toolbar .x6-widget-handle-remove:hover::after,\n.x6-widget-handle-toolbar .x6-widget-handle-rotate:hover::after {\n border-bottom: none;\n}\n.x6-widget-handle-toolbar .x6-widget-handle + .x6-widget-handle {\n margin-left: 4px;\n}\n.x6-widget-handle-pie {\n box-sizing: content-box;\n background-color: #f5f5f5;\n border: 2px solid #404040;\n}\n.x6-widget-handle-pie-slice {\n fill: transparent;\n stroke: #e9e9e9;\n stroke-width: 1;\n}\n.x6-widget-handle-pie-slice:hover {\n fill: #fff;\n}\n.x6-widget-handle-pie-slice-img {\n display: block;\n}\n.x6-widget-handle-selected .x6-widget-handle-pie-slice {\n fill: #fff;\n}\n.x6-widget-handle-pie-toggle {\n background-color: #f6f6f6;\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20height%3D%2216px%22%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%2016%2016%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%2016%2016%22%20width%3D%2216px%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M15%2C6h-5V1c0-0.55-0.45-1-1-1H7C6.45%2C0%2C6%2C0.45%2C6%2C1v5H1C0.45%2C6%2C0%2C6.45%2C0%2C7v2c0%2C0.55%2C0.45%2C1%2C1%2C1h5v5c0%2C0.55%2C0.45%2C1%2C1%2C1h2%20c0.55%2C0%2C1-0.45%2C1-1v-5h5c0.55%2C0%2C1-0.45%2C1-1V7C16%2C6.45%2C15.55%2C6%2C15%2C6z%22%2F%3E%3C%2Fsvg%3E');\n background-size: 16px 16px;\n border: 2px solid #3b425f;\n}\n.x6-widget-handle-pie-toggle:hover {\n background-color: #fff;\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20height%3D%2216px%22%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%2016%2016%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%2016%2016%22%20width%3D%2216px%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M15%2C6h-5V1c0-0.55-0.45-1-1-1H7C6.45%2C0%2C6%2C0.45%2C6%2C1v5H1C0.45%2C6%2C0%2C6.45%2C0%2C7v2c0%2C0.55%2C0.45%2C1%2C1%2C1h5v5c0%2C0.55%2C0.45%2C1%2C1%2C1h2%20c0.55%2C0%2C1-0.45%2C1-1v-5h5c0.55%2C0%2C1-0.45%2C1-1V7C16%2C6.45%2C15.55%2C6%2C15%2C6z%22%2F%3E%3C%2Fsvg%3E');\n border-color: #fd6eb6;\n}\n.x6-widget-handle-pie-toggle-opened {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3Csvg%20xmlns%3Adc%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%22%20xmlns%3Acc%3D%22http%3A%2F%2Fcreativecommons.org%2Fns%23%22%20xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%20xmlns%3Asvg%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20id%3D%22Layer_1%22%20xml%3Aspace%3D%22preserve%22%3E%3Cmetadata%20id%3D%22metadata9%22%3E%3Crdf%3ARDF%3E%3Ccc%3AWork%20rdf%3Aabout%3D%22%22%3E%3Cdc%3Aformat%3Eimage%2Fsvg%2Bxml%3C%2Fdc%3Aformat%3E%3Cdc%3Atype%20rdf%3Aresource%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Fdcmitype%2FStillImage%22%20%2F%3E%3Cdc%3Atitle%3E%3C%2Fdc%3Atitle%3E%3C%2Fcc%3AWork%3E%3C%2Frdf%3ARDF%3E%3C%2Fmetadata%3E%3Cdefs%20id%3D%22defs7%22%20%2F%3E%3Cpath%20d%3D%22M%2015%2C6%2010%2C6%20C%201.0301983%2C6.00505%2015.002631%2C6.011353%206%2C6%20L%201%2C6%20C%200.45%2C6%200%2C6.45%200%2C7%20l%200%2C2%20c%200%2C0.55%200.45%2C1%201%2C1%20l%205%2C0%20c%208.988585%2C-0.019732%20-5.02893401%2C-0.018728%204%2C0%20l%205%2C0%20c%200.55%2C0%201%2C-0.45%201%2C-1%20L%2016%2C7%20C%2016%2C6.45%2015.55%2C6%2015%2C6%20z%22%20id%3D%22path3%22%20style%3D%22fill%3A%236a6c8a%22%20%2F%3E%3C%2Fsvg%3E');\n}\n.x6-widget-handle-pie-toggle-opened:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3Csvg%20xmlns%3Adc%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%22%20xmlns%3Acc%3D%22http%3A%2F%2Fcreativecommons.org%2Fns%23%22%20xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%20xmlns%3Asvg%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20id%3D%22Layer_1%22%20xml%3Aspace%3D%22preserve%22%3E%3Cmetadata%20id%3D%22metadata9%22%3E%3Crdf%3ARDF%3E%3Ccc%3AWork%20rdf%3Aabout%3D%22%22%3E%3Cdc%3Aformat%3Eimage%2Fsvg%2Bxml%3C%2Fdc%3Aformat%3E%3Cdc%3Atype%20rdf%3Aresource%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Fdcmitype%2FStillImage%22%20%2F%3E%3Cdc%3Atitle%3E%3C%2Fdc%3Atitle%3E%3C%2Fcc%3AWork%3E%3C%2Frdf%3ARDF%3E%3C%2Fmetadata%3E%3Cdefs%20id%3D%22defs7%22%20%2F%3E%3Cpath%20d%3D%22M%2015%2C6%2010%2C6%20C%201.0301983%2C6.00505%2015.002631%2C6.011353%206%2C6%20L%201%2C6%20C%200.45%2C6%200%2C6.45%200%2C7%20l%200%2C2%20c%200%2C0.55%200.45%2C1%201%2C1%20l%205%2C0%20c%208.988585%2C-0.019732%20-5.02893401%2C-0.018728%204%2C0%20l%205%2C0%20c%200.55%2C0%201%2C-0.45%201%2C-1%20L%2016%2C7%20C%2016%2C6.45%2015.55%2C6%2015%2C6%20z%22%20id%3D%22path3%22%20style%3D%22fill%3A%23FD6EB6%22%20%2F%3E%3C%2Fsvg%3E');\n}\n.x6-widget-dnd {\n position: absolute;\n top: -10000px;\n left: -10000px;\n z-index: 100;\n display: none;\n cursor: move;\n opacity: 0.7;\n pointer-events: 'cursor';\n}\n.x6-widget-dnd.dragging {\n display: inline-block;\n}\n.x6-widget-dnd.dragging * {\n pointer-events: none !important;\n}\n.x6-widget-dnd .x6-graph {\n background: transparent;\n box-shadow: none;\n}\n.x6-widget-halo {\n position: absolute;\n pointer-events: none;\n}\n.x6-widget-halo-content {\n position: absolute;\n top: 100%;\n padding: 6px;\n font-size: 10px;\n line-height: 14px;\n text-align: center;\n border-radius: 6px;\n}\n.x6-widget-halo-handles + .x6-widget-halo-content {\n right: -20px;\n left: -20px;\n margin-top: 30px;\n}\n.x6-widget-halo-handles.x6-widget-handle-small + .x6-widget-halo-content {\n margin-top: 25px;\n}\n.x6-widget-halo-handles.x6-widget-handle-small + .x6-widget-halo-content {\n margin-top: 20px;\n}\n.x6-widget-halo-handles.x6-widget-handle-pie + .x6-widget-halo-content {\n right: 0;\n left: 0;\n margin-top: 10px;\n}\n.x6-widget-halo-content {\n color: #fff;\n background-color: #6a6b8a;\n}\n.x6-widget-halo.type-node .x6-widget-handle-toolbar .x6-widget-handle-remove {\n position: absolute;\n right: 100%;\n bottom: 100%;\n margin-right: 6px;\n margin-bottom: 3px;\n}\n.x6-widget-halo.type-edge .x6-widget-handle-surround .x6-widget-handle-remove {\n background-color: #fff;\n border-radius: 50%;\n}\n.x6-widget-halo.type-edge .x6-widget-handle-toolbar {\n margin-top: -60px;\n margin-left: -18px;\n}\n.x6-widget-halo.type-edge .x6-widget-handle-toolbar::after {\n top: -22px;\n left: -9px;\n}\n.x6-widget-minimap {\n position: relative;\n display: table-cell;\n box-sizing: border-box;\n overflow: hidden;\n text-align: center;\n vertical-align: middle;\n background-color: #fff;\n user-select: none;\n}\n.x6-widget-minimap .x6-graph {\n display: inline-block;\n box-shadow: 0 0 4px 0 #eee;\n cursor: pointer;\n}\n.x6-widget-minimap .x6-graph > svg {\n pointer-events: none;\n shape-rendering: optimizeSpeed;\n}\n.x6-widget-minimap .x6-graph .x6-node * {\n /* stylelint-disable-next-line */\n vector-effect: initial;\n}\n.x6-widget-minimap-viewport {\n position: absolute;\n box-sizing: content-box !important;\n margin: -2px 0 0 -2px;\n border: 2px solid #31d0c6;\n cursor: move;\n}\n.x6-widget-minimap-viewport-zoom {\n position: absolute;\n right: 0;\n bottom: 0;\n box-sizing: border-box;\n width: 12px;\n height: 12px;\n margin: 0 -6px -6px 0;\n background-color: #fff;\n border: 2px solid #31d0c6;\n border-radius: 50%;\n cursor: nwse-resize;\n}\n.x6-graph-scroller {\n position: relative;\n box-sizing: border-box;\n overflow: scroll;\n outline: none;\n}\n.x6-graph-scroller-content {\n position: relative;\n}\n.x6-graph-scroller-background {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.x6-graph-scroller .x6-graph {\n position: absolute;\n display: inline-block;\n margin: 0;\n box-shadow: none;\n}\n.x6-graph-scroller .x6-graph > svg {\n display: block;\n}\n.x6-graph-scroller.x6-graph-scroller-paged .x6-graph {\n box-shadow: 0 0 4px 0 #eee;\n}\n.x6-graph-scroller.x6-graph-scroller-pannable[data-panning='false'] {\n cursor: grab;\n cursor: -moz-grab;\n cursor: -webkit-grab;\n}\n.x6-graph-scroller.x6-graph-scroller-pannable[data-panning='true'] {\n cursor: grabbing;\n cursor: -moz-grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n}\n.x6-graph-pagebreak {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.x6-graph-pagebreak-vertical {\n position: absolute;\n top: 0;\n bottom: 0;\n box-sizing: border-box;\n width: 1px;\n border-left: 1px dashed #bdbdbd;\n}\n.x6-graph-pagebreak-horizontal {\n position: absolute;\n right: 0;\n left: 0;\n box-sizing: border-box;\n height: 1px;\n border-top: 1px dashed #bdbdbd;\n}\n.x6-widget-selection {\n position: absolute;\n display: none;\n width: 0;\n height: 0;\n touch-action: none;\n}\n.x6-widget-selection-rubberband {\n display: block;\n overflow: visible;\n opacity: 0.3;\n}\n.x6-widget-selection-selected {\n display: block;\n}\n.x6-widget-selection-box {\n cursor: move;\n}\n.x6-widget-selection-inner[data-selection-length='0'],\n.x6-widget-selection-inner[data-selection-length='1'] {\n display: none;\n}\n.x6-widget-selection-content {\n position: absolute;\n top: 100%;\n right: -20px;\n left: -20px;\n margin-top: 30px;\n padding: 6px;\n line-height: 14px;\n text-align: center;\n border-radius: 6px;\n}\n.x6-widget-selection-content:empty {\n display: none;\n}\n.x6-widget-selection-rubberband {\n background-color: #3498db;\n border: 2px solid #2980b9;\n}\n.x6-widget-selection-box {\n box-sizing: content-box !important;\n margin-top: -4px;\n margin-left: -4px;\n padding-right: 4px;\n padding-bottom: 4px;\n border: 2px dashed #feb663;\n box-shadow: 2px 2px 5px #d3d3d3;\n}\n.x6-widget-selection-inner {\n box-sizing: content-box !important;\n margin-top: -8px;\n margin-left: -8px;\n padding-right: 12px;\n padding-bottom: 12px;\n border: 2px solid #feb663;\n box-shadow: 2px 2px 5px #d3d3d3;\n}\n.x6-widget-selection-content {\n color: #fff;\n font-size: 10px;\n background-color: #6a6b8a;\n}\n.x6-widget-snapline {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n pointer-events: none;\n}\n.x6-widget-snapline-vertical,\n.x6-widget-snapline-horizontal {\n position: absolute;\n opacity: 1;\n pointer-events: none;\n}\n.x6-widget-snapline-horizontal {\n border-bottom: 1px solid #2ecc71;\n}\n.x6-widget-snapline-vertical {\n border-right: 1px solid #2ecc71;\n}\n.x6-widget-stencil {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.x6-widget-stencil::after {\n position: absolute;\n top: 0;\n display: block;\n width: 100%;\n height: 20px;\n padding: 8px 0;\n line-height: 20px;\n text-align: center;\n opacity: 0;\n transition: top 0.1s linear, opacity 0.1s linear;\n content: ' ';\n pointer-events: none;\n}\n.x6-widget-stencil-content {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n height: auto;\n overflow-x: hidden;\n overflow-y: auto;\n}\n.x6-widget-stencil .x6-node [magnet]:not([magnet='passive']) {\n pointer-events: none;\n}\n.x6-widget-stencil-group {\n padding: 0;\n padding-bottom: 8px;\n overflow: hidden;\n user-select: none;\n}\n.x6-widget-stencil-group.collapsed {\n height: auto;\n padding-bottom: 0;\n}\n.x6-widget-stencil-group-title {\n position: relative;\n margin-top: 0;\n margin-bottom: 0;\n padding: 4px;\n cursor: pointer;\n}\n.x6-widget-stencil-title,\n.x6-widget-stencil-group > .x6-widget-stencil-group-title {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n user-select: none;\n}\n.x6-widget-stencil .unmatched {\n opacity: 0.3;\n}\n.x6-widget-stencil .x6-node.unmatched {\n display: none;\n}\n.x6-widget-stencil-group.unmatched {\n display: none;\n}\n.x6-widget-stencil-search-text {\n position: relative;\n z-index: 1;\n box-sizing: border-box;\n width: 100%;\n height: 30px;\n max-height: 30px;\n line-height: 30px;\n outline: 0;\n}\n.x6-widget-stencil.not-found::after {\n opacity: 1;\n content: attr(data-not-found-text);\n}\n.x6-widget-stencil.not-found.searchable::after {\n top: 30px;\n}\n.x6-widget-stencil.not-found.searchable.collapsable::after {\n top: 50px;\n}\n.x6-widget-stencil {\n color: #333;\n background: #f5f5f5;\n}\n.x6-widget-stencil-content {\n position: absolute;\n}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-content {\n top: 32px;\n}\n.x6-widget-stencil.searchable > .x6-widget-stencil-content {\n top: 80px;\n}\n.x6-widget-stencil.not-found::after {\n position: absolute;\n}\n.x6-widget-stencil.not-found.searchable.collapsable::after {\n top: 80px;\n}\n.x6-widget-stencil.not-found.searchable::after {\n top: 60px;\n}\n.x6-widget-stencil-group {\n height: auto;\n margin-bottom: 1px;\n padding: 0;\n transition: none;\n}\n.x6-widget-stencil-group .x6-graph {\n background: transparent;\n box-shadow: none;\n}\n.x6-widget-stencil-group.collapsed {\n height: auto;\n max-height: 31px;\n}\n.x6-widget-stencil-title,\n.x6-widget-stencil-group > .x6-widget-stencil-group-title {\n position: relative;\n left: 0;\n box-sizing: border-box;\n width: 100%;\n height: 32px;\n padding: 0 5px 0 8px;\n color: #666;\n font-weight: 700;\n font-size: 12px;\n line-height: 32px;\n cursor: default;\n transition: all 0.3;\n}\n.x6-widget-stencil-title:hover,\n.x6-widget-stencil-group > .x6-widget-stencil-group-title:hover {\n color: #444;\n}\n.x6-widget-stencil-title {\n background: #e9e9e9;\n}\n.x6-widget-stencil-group > .x6-widget-stencil-group-title {\n background: #ededed;\n}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-title,\n.x6-widget-stencil-group.collapsable > .x6-widget-stencil-group-title {\n padding-left: 32px;\n cursor: pointer;\n}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-title::before,\n.x6-widget-stencil-group.collapsable > .x6-widget-stencil-group-title::before {\n position: absolute;\n top: 6px;\n left: 8px;\n display: block;\n width: 18px;\n height: 18px;\n margin: 0;\n padding: 0;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: 0 0;\n border: none;\n content: ' ';\n}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-title::before,\n.x6-widget-stencil-group.collapsable > .x6-widget-stencil-group-title::before {\n background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNOS4zNzUuNUM0LjY4Ny41Ljg3NSA0LjMxMy44NzUgOWMwIDQuNjg4IDMuODEyIDguNSA4LjUgOC41IDQuNjg3IDAgOC41LTMuODEyIDguNS04LjUgMC00LjY4Ny0zLjgxMy04LjUtOC41LTguNXptMCAxNS44ODZDNS4zMDMgMTYuMzg2IDEuOTkgMTMuMDcyIDEuOTkgOXMzLjMxMi03LjM4NSA3LjM4NS03LjM4NVMxNi43NiA0LjkyOCAxNi43NiA5YzAgNC4wNzItMy4zMTMgNy4zODYtNy4zODUgNy4zODZ6Ii8+PHBhdGggZD0iTTEyLjc1MyA4LjQ0M0g1Ljk5N2EuNTU4LjU1OCAwIDAwMCAxLjExNmg2Ljc1NmEuNTU4LjU1OCAwIDAwMC0xLjExNnoiLz48L2c+PC9zdmc+');\n opacity: 0.4;\n transition: all 0.3s;\n}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-title:hover::before,\n.x6-widget-stencil-group.collapsable > .x6-widget-stencil-group-title:hover::before {\n opacity: 0.6;\n}\n.x6-widget-stencil.collapsable.collapsed > .x6-widget-stencil-title::before,\n.x6-widget-stencil-group.collapsable.collapsed > .x6-widget-stencil-group-title::before {\n background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNOS4zNzUuNUM0LjY4Ny41Ljg3NSA0LjMxMy44NzUgOWMwIDQuNjg4IDMuODEyIDguNSA4LjUgOC41IDQuNjg3IDAgOC41LTMuODEyIDguNS04LjUgMC00LjY4Ny0zLjgxMy04LjUtOC41LTguNXptMCAxNS44ODZDNS4zMDMgMTYuMzg2IDEuOTkgMTMuMDcyIDEuOTkgOXMzLjMxMi03LjM4NSA3LjM4NS03LjM4NVMxNi43NiA0LjkyOCAxNi43NiA5YzAgNC4wNzItMy4zMTMgNy4zODYtNy4zODUgNy4zODZ6Ii8+PHBhdGggZD0iTTEyLjc1MyA4LjQ0M0g1Ljk5N2EuNTU4LjU1OCAwIDAwMCAxLjExNmg2Ljc1NmEuNTU4LjU1OCAwIDAwMC0xLjExNnoiLz48cGF0aCBkPSJNOC44MTcgNS42MjN2Ni43NTZhLjU1OC41NTggMCAwMDEuMTE2IDBWNS42MjNhLjU1OC41NTggMCAxMC0xLjExNiAweiIvPjwvZz48L3N2Zz4=');\n opacity: 0.4;\n}\n.x6-widget-stencil.collapsable.collapsed > .x6-widget-stencil-title:hover::before,\n.x6-widget-stencil-group.collapsable.collapsed > .x6-widget-stencil-group-title:hover::before {\n opacity: 0.6;\n}\n.x6-widget-stencil input[type='search'] {\n -webkit-appearance: textfield;\n}\n.x6-widget-stencil input[type='search']::-webkit-search-cancel-button,\n.x6-widget-stencil input[type='search']::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n.x6-widget-stencil-search-text {\n display: block;\n width: 90%;\n margin: 8px 5%;\n padding-left: 8px;\n color: #333;\n background: #fff;\n border: 1px solid #e9e9e9;\n border-radius: 12px;\n outline: 0;\n}\n.x6-widget-stencil-search-text:focus {\n outline: 0;\n}\n.x6-widget-stencil::after {\n color: #808080;\n font-weight: 600;\n font-size: 12px;\n background: 0 0;\n}\n.x6-widget-transform {\n position: absolute;\n box-sizing: content-box !important;\n margin: -5px 0 0 -5px;\n padding: 4px;\n border: 1px dashed #000;\n border-radius: 5px;\n user-select: none;\n pointer-events: none;\n}\n.x6-widget-transform > div {\n position: absolute;\n box-sizing: border-box;\n background-color: #fff;\n border: 1px solid #000;\n transition: background-color 0.2s;\n pointer-events: auto;\n -webkit-user-drag: none;\n user-drag: none;\n /* stylelint-disable-line */\n}\n.x6-widget-transform > div:hover {\n background-color: #d3d3d3;\n}\n.x6-widget-transform-cursor-n {\n cursor: n-resize;\n}\n.x6-widget-transform-cursor-s {\n cursor: s-resize;\n}\n.x6-widget-transform-cursor-e {\n cursor: e-resize;\n}\n.x6-widget-transform-cursor-w {\n cursor: w-resize;\n}\n.x6-widget-transform-cursor-ne {\n cursor: ne-resize;\n}\n.x6-widget-transform-cursor-nw {\n cursor: nw-resize;\n}\n.x6-widget-transform-cursor-se {\n cursor: se-resize;\n}\n.x6-widget-transform-cursor-sw {\n cursor: sw-resize;\n}\n.x6-widget-transform-resize {\n width: 10px;\n height: 10px;\n border-radius: 6px;\n}\n.x6-widget-transform-resize[data-position='top-left'] {\n top: -5px;\n left: -5px;\n}\n.x6-widget-transform-resize[data-position='top-right'] {\n top: -5px;\n right: -5px;\n}\n.x6-widget-transform-resize[data-position='bottom-left'] {\n bottom: -5px;\n left: -5px;\n}\n.x6-widget-transform-resize[data-position='bottom-right'] {\n right: -5px;\n bottom: -5px;\n}\n.x6-widget-transform-resize[data-position='top'] {\n top: -5px;\n left: 50%;\n margin-left: -5px;\n}\n.x6-widget-transform-resize[data-position='bottom'] {\n bottom: -5px;\n left: 50%;\n margin-left: -5px;\n}\n.x6-widget-transform-resize[data-position='left'] {\n top: 50%;\n left: -5px;\n margin-top: -5px;\n}\n.x6-widget-transform-resize[data-position='right'] {\n top: 50%;\n right: -5px;\n margin-top: -5px;\n}\n.x6-widget-transform.prevent-aspect-ratio .x6-widget-transform-resize[data-position='top'],\n.x6-widget-transform.prevent-aspect-ratio .x6-widget-transform-resize[data-position='bottom'],\n.x6-widget-transform.prevent-aspect-ratio .x6-widget-transform-resize[data-position='left'],\n.x6-widget-transform.prevent-aspect-ratio .x6-widget-transform-resize[data-position='right'] {\n display: none;\n}\n.x6-widget-transform.no-orth-resize .x6-widget-transform-resize[data-position='bottom'],\n.x6-widget-transform.no-orth-resize .x6-widget-transform-resize[data-position='left'],\n.x6-widget-transform.no-orth-resize .x6-widget-transform-resize[data-position='right'],\n.x6-widget-transform.no-orth-resize .x6-widget-transform-resize[data-position='top'] {\n display: none;\n}\n.x6-widget-transform.no-resize .x6-widget-transform-resize {\n display: none;\n}\n.x6-widget-transform-rotate {\n top: -20px;\n left: -20px;\n width: 12px;\n height: 12px;\n border-radius: 6px;\n cursor: crosshair;\n}\n.x6-widget-transform.no-rotate .x6-widget-transform-rotate {\n display: none;\n}\n.x6-widget-transform-active {\n border-color: transparent;\n pointer-events: all;\n}\n.x6-widget-transform-active > div {\n display: none;\n}\n.x6-widget-transform-active > .x6-widget-transform-active-handle {\n display: block;\n background-color: #808080;\n}\n.x6-widget-knob {\n position: absolute;\n box-sizing: border-box;\n width: 16px;\n height: 16px;\n margin-top: -8px;\n margin-left: -8px;\n cursor: pointer;\n user-select: none;\n}\n.x6-widget-knob::before,\n.x6-widget-knob::after {\n position: absolute;\n transform: rotate(45deg);\n content: '';\n}\n.x6-widget-knob::before {\n top: 4px;\n left: 4px;\n box-sizing: border-box;\n width: 8px;\n height: 8px;\n background-color: #fff;\n}\n.x6-widget-knob::after {\n top: 5px;\n left: 5px;\n box-sizing: border-box;\n width: 6px;\n height: 6px;\n background-color: #fca000;\n}\n.x6-graph-print {\n position: relative;\n}\n.x6-graph-print .x6-graph-print-ready {\n display: none;\n}\n.x6-graph-print .x6-graph-print-preview {\n overflow: hidden !important;\n background: #fff !important;\n}\n@media print {\n html,\n html > body.x6-graph-printing {\n position: relative !important;\n width: 100% !important;\n height: 100% !important;\n margin: 0 !important;\n padding: 0 !important;\n }\n html > body.x6-graph-printing > * {\n display: none !important;\n }\n html > body.x6-graph-printing > .x6-graph-print {\n display: block !important;\n }\n .x6-graph-print {\n top: 0 !important;\n left: 0 !important;\n margin: 0 !important;\n padding: 0 !important;\n overflow: hidden !important;\n page-break-after: always;\n background: #fff !important;\n }\n .x6-graph-print .x6-graph-print-ready {\n display: none;\n }\n}\n.x6-cell-tool-editor {\n position: relative;\n display: inline-block;\n min-height: 1em;\n margin: 0;\n padding: 0;\n line-height: 1;\n white-space: normal;\n text-align: center;\n vertical-align: top;\n overflow-wrap: normal;\n outline: none;\n transform-origin: 0 0;\n -webkit-user-drag: none;\n}\n.x6-edge-tool-editor {\n border: 1px solid #275fc5;\n border-radius: 2px;\n}\n";var BA=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class $A extends MA{init(){_C.autoInsertCSS&&$A.ensure()}dispose(){$A.clean()}}BA([$A.dispose()],$A.prototype,"dispose",null),function(e){let t,n=0;function i(){if(n+=1,!(n>1)&&!O.isApplyingHMR()){t=document.createElement("style"),t.setAttribute("type","text/css"),t.textContent=FA;const e=document.querySelector("head");e&&e.insertBefore(t,e.firstChild)}}function r(){n-=1,n>0||(t&&t.parentNode&&t.parentNode.removeChild(t),t=null)}e.ensure=i,e.clean=r}($A||($A={}));var VA,GA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);rthis.addHandle(e)),"pie"===this.handleOptions.type){if(this.pie.toggles){const e=VA.pieToggle;this.$pieToggles={},this.pie.toggles.forEach(t=>{const n=this.$("
");this.applyAttrs(n,t.attrs),n.addClass(e).addClass(`${e}-pos-${t.position||"e"}`).attr("data-name",t.name).appendTo(this.container),this.$pieToggles[t.name]=n})}this.setPieIcons()}if(this.$handleContainer){const e=this.handleOptions.type||"surround";this.$handleContainer.addClass(VA.wrap).addClass(VA.animate).addClass(`${VA.handle}-${e}`)}this.delegateEvents({[`mousedown .${VA.handle}`]:"onHandleMouseDown",[`touchstart .${VA.handle}`]:"onHandleMouseDown",[`mousedown .${VA.pieToggle}`]:"onPieToggleMouseDown",[`touchstart .${VA.pieToggle}`]:"onPieToggleMouseDown"})}onHandleMouseDown(e){const t=this.$(e.currentTarget).closest(`.${VA.handle}`).attr("data-action");t&&(e.preventDefault(),e.stopPropagation(),this.setEventData(e,{action:t,clientX:e.clientX,clientY:e.clientY,startX:e.clientX,startY:e.clientY}),"mousedown"===e.type&&2===e.button?this.triggerHandleAction(t,"contextmenu",e):(this.triggerHandleAction(t,"mousedown",e),this.delegateDocumentEvents({mousemove:"onHandleMouseMove",touchmove:"onHandleMouseMove",mouseup:"onHandleMouseUp",touchend:"onHandleMouseUp",touchcancel:"onHandleMouseUp"},e.data)))}onHandleMouseMove(e){const t=this.getEventData(e),n=t.action;n&&this.triggerHandleAction(n,"mousemove",e)}onHandleMouseUp(e){const t=this.getEventData(e),n=t.action;n&&(this.triggerHandleAction(n,"mouseup",e),this.undelegateDocumentEvents())}triggerHandleAction(e,t,n,i){n.preventDefault(),n.stopPropagation();const r=this.normalizeEvent(n),o=this.getEventData(r),a=this.graph.snapToGrid(r.clientX,r.clientY),s=this.graph.snapToGrid(o.clientX,o.clientY),l=a.x-s.x,c=a.y-s.y;this.trigger(`action:${e}:${t}`,Object.assign({e:r,dx:l,dy:c,x:a.x,y:a.y,offsetX:n.clientX-o.startX,offsetY:n.clientY-o.startY},i)),o.clientX=n.clientX,o.clientY=n.clientY}onPieToggleMouseDown(e){e.stopPropagation();const t=this.$(e.target).closest(`.${VA.pieToggle}`).attr("data-name");this.isOpen(t)||this.isOpen()&&this.toggleState(),this.toggleState(t)}setPieIcons(){"pie"===this.handleOptions.type&&this.$handleContainer.find(`.${VA.handle}`).each((e,t)=>{const n=this.$(t),i=n.attr("data-action"),r=VA.pieSlice,o=this.getHandle(i);if(!o||!o.icon){const e=window.getComputedStyle(t,":before").getPropertyValue("content");if(e&&"none"!==e){const t=n.find(`.${r}-txt`);t.length&&Qy.create(t[0]).text(e.replace(/['"]/g,""))}const i=n.css("background-image");if(i){const e=i.match(/url\(['"]?([^'"]+)['"]?\)/);if(e){const t=e[1],i=n.find(`.${r}-img`);i.length>0&&Qy.create(i[0]).attr("xlink:href",t)}}}})}getHandleIdx(e){return this.handles.findIndex(t=>t.name===e)}hasHandle(e){return this.getHandleIdx(e)>=0}getHandle(e){return this.handles.find(t=>t.name===e)}renderHandle(e){const t=this.$("
").addClass(`${VA.handle} ${VA.handle}-${e.name}`).attr("data-action",e.name).prop("draggable",!1);if("pie"===this.handleOptions.type){const n=this.getHandleIdx(e.name),i=this.pie,r=i.outerRadius,o=i.innerRadius,a=(r+o)/2,s=new xy(r,r),l=my.toRad(i.sliceAngle),u=n*l+my.toRad(i.startAngle),d=u+l,h=c.createSlicePathData(o,r,u,d),p=Qy.create("svg").addClass(`${VA.pieSlice}-svg`),f=Qy.create("path").addClass(VA.pieSlice).attr("d",h).translate(r,r),g=xy.fromPolar(a,-u-l/2,s).toJSON(),m=i.iconSize,v=Qy.create("image").attr(g).addClass(`${VA.pieSlice}-img`);g.y=g.y+m-2;const _=Qy.create("text",{"font-size":m}).attr(g).addClass(`${VA.pieSlice}-txt`);v.attr({width:m,height:m}),v.translate(-m/2,-m/2),_.translate(-m/2,-m/2),p.append([f,v,_]),t.append(p.node)}else t.addClass(`${VA.handle}-pos-${e.position}`),e.content&&("string"===typeof e.content?t.html(e.content):t.append(e.content));return this.updateHandleIcon(t,e.icon),this.applyAttrs(t,e.attrs),t}addHandle(e){if(!this.hasHandle(e.name)){this.handles.push(e);const t=e.events;t&&Object.keys(t).forEach(n=>{const i=t[n],r=`action:${e.name}:${n}`;"string"===typeof i?this.on(r,this[i],this):this.on(r,i)}),this.$handleContainer&&this.$handleContainer.append(this.renderHandle(e))}return this}addHandles(e){return e.forEach(e=>this.addHandle(e)),this}removeHandles(){while(this.handles.length)this.removeHandle(this.handles[0].name);return this}removeHandle(e){const t=this.getHandleIdx(e),n=this.handles[t];return n&&(n.events&&Object.keys(n.events).forEach(t=>{this.off(`action:${e}:${t}`)}),this.getHandleElem(e).remove(),this.handles.splice(t,1)),this}changeHandle(e,t){const n=this.getHandle(e);return n&&(this.removeHandle(e),this.addHandle(Object.assign(Object.assign({},n),t))),this}toggleHandle(e,t){const n=this.getHandle(e);if(n){const i=this.getHandleElem(e),r=`${VA.handle}-selected`;void 0===t&&(t=!i.hasClass(r)),i.toggleClass(r,t);const o=t?n.iconSelected:n.icon;o&&this.updateHandleIcon(i,o)}return this}selectHandle(e){return this.toggleHandle(e,!0)}deselectHandle(e){return this.toggleHandle(e,!1)}deselectAllHandles(){return this.handles.forEach(e=>this.deselectHandle(e.name)),this}getHandleElem(e){return this.$handleContainer.find(`.${VA.handle}-${e}`)}updateHandleIcon(e,t){if("pie"===this.handleOptions.type){const n=e.find(`.${VA.pieSliceImg}`);this.$(n[0]).attr("xlink:href",t||"")}else e.css("background-image",t?`url(${t})`:"")}isRendered(){return null!=this.$handleContainer}isOpen(e){return!!this.isRendered()&&(e?this.$pieToggles[e].hasClass(VA.pieToggleOpened):this.$handleContainer.hasClass(`${VA.pieOpended}`))}toggleState(e){if(this.isRendered()){const t=this.$handleContainer;if(Object.keys(this.$pieToggles).forEach(e=>{const t=this.$pieToggles[e];t.removeClass(VA.pieToggleOpened)}),this.isOpen())this.trigger("pie:close",{name:e}),t.removeClass(VA.pieOpended);else{if(this.trigger("pie:open",{name:e}),e){const n=this.pie.toggles,i=n&&n.find(t=>t.name===e);i&&t.attr({"data-pie-toggle-name":i.name,"data-pie-toggle-position":i.position}),this.$pieToggles[e].addClass(VA.pieToggleOpened)}t.addClass(VA.pieOpended)}}}applyAttrs(e,t){if(t){const n=Ex.$(e);Object.keys(t).forEach(e=>{const i=n.find(e).addBack().filter(e),r=t[e],{class:o}=r,a=GA(r,["class"]);o&&i.addClass(o),i.attr(a)})}}}(function(e){e.defaultPieOptions={innerRadius:20,outerRadius:50,sliceAngle:45,startAngle:0,iconSize:14,toggles:[{name:"default",position:"e"}]}})(UA||(UA={})),function(e){e.handle=Ex.prototype.prefixClassName("widget-handle"),e.wrap=`${e.handle}-wrap`,e.animate=`${e.handle}-animate`,e.pieOpended=`${e.handle}-pie-opened`,e.pieToggle=`${e.handle}-pie-toggle`,e.pieToggleOpened=`${e.handle}-pie-toggle-opened`,e.pieSlice=`${e.handle}-pie-slice`,e.pieSliceImg=`${e.handle}-pie-slice-img`}(VA||(VA={}));var zA,jA=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},HA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const t=n[e];t&&t.remove()})}static getInstances(e){const t=this.ensureCache();return t[e.view.cid]||{}}init(e){}render(){return this}startListening(){!1!==this.options.clearOnBlankMouseDown&&this.graph.on("blank:mousedown",this.remove,this)}stopListening(){!1!==this.options.clearOnBlankMouseDown&&this.graph.off("blank:mousedown",this.remove,this)}remove(){this.stopListening();const e=this.constructor;return e.unregister(this),super.remove()}dispose(){this.remove()}}WA.instanceCache=new WeakMap,jA([Ex.dispose()],WA.prototype,"dispose",null);class YA extends WA{get node(){return this.cell}get metadata(){const e=this.cell.prop("knob");return Array.isArray(e)?null!=this.options.index?e[this.options.index]:null:e}init(e){this.options=Object.assign({},e),this.render(),this.startListening()}startListening(){this.delegateEvents({mousedown:"onMouseDown",touchstart:"onMouseDown"}),this.model.on("*",this.update,this),this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this),this.model.on("reseted",this.remove,this),this.node.on("removed",this.remove,this),this.view.on("node:resize:mousedown",this.onTransform,this),this.view.on("node:rotate:mousedown",this.onTransform,this),this.view.on("node:resize:mouseup",this.onTransformed,this),this.view.on("node:rotate:mouseup",this.onTransformed,this),this.view.on("cell:knob:mousedown",this.onKnobMouseDown,this),this.view.on("cell:knob:mouseup",this.onKnobMouseUp,this),super.startListening()}stopListening(){this.undelegateEvents(),this.model.off("*",this.update,this),this.graph.off("scale",this.update,this),this.graph.off("translate",this.update,this),this.model.off("reseted",this.remove,this),this.node.off("removed",this.remove,this),this.view.off("node:resize:mousedown",this.onTransform,this),this.view.off("node:rotate:mousedown",this.onTransform,this),this.view.off("node:resize:mouseup",this.onTransformed,this),this.view.off("node:rotate:mouseup",this.onTransformed,this),this.view.off("cell:knob:mousedown",this.onKnobMouseDown,this),this.view.off("cell:knob:mouseup",this.onKnobMouseUp,this),super.stopListening()}render(){return this.container=document.createElement("div"),c.addClass(this.container,this.prefixClassName("widget-knob")),this.options.className&&c.addClass(this.container,this.options.className),this.view.addClass(zA.KNOB),this.graph.container.appendChild(this.container),this.update(),this}remove(){return this.view.removeClass(zA.KNOB),super.remove()}update(){if(this.metadata){const{update:e,position:t}=this.metadata,n={knob:this,cell:this.cell,node:this.node};if(t){const e=t.call(this.graph,Object.assign({},n));if(e){const t=this.graph.matrix(),n=this.node.getBBox(),i=my.normalize(this.node.getAngle()),r=xy.create(e);0!==i&&r.rotate(-i,{x:n.width/2,y:n.height/2}),r.translate(n).scale(t.a,t.d).translate(t.e,t.f),this.container.style.left=`${r.x}px`,this.container.style.top=`${r.y}px`}}e&&e.call(this.graph,Object.assign({},n))}}hide(){this.container.style.display="none"}show(){this.container.style.display=""}onTransform(){this.hide()}onTransformed(){this.show()}onKnobMouseDown({knob:e}){this.cid!==e.cid&&this.hide()}onKnobMouseUp(){this.show()}notify(e,t){if(this.view){const n=this.view.normalizeEvent(t),i=this.graph.snapToGrid(n.clientX,n.clientY);this.view.notify(`cell:${e}`,{e:n,view:this.view,node:this.node,cell:this.cell,x:i.x,y:i.y,knob:this}),this.cell.isNode()?this.view.notify(`node:${e}`,{e:n,view:this.view,node:this.node,cell:this.cell,x:i.x,y:i.y,knob:this}):this.cell.isEdge()&&this.view.notify(`edge:${e}`,{e:n,view:this.view,edge:this.cell,cell:this.cell,x:i.x,y:i.y,knob:this})}}onMouseDown(e){e.stopPropagation(),this.setEventData(e,{knobbing:!1,originX:e.clientX,originY:e.clientY,clientX:e.clientX,clientY:e.clientY}),this.graph.view.undelegateEvents(),this.delegateDocumentEvents(zA.documentEvents,e.data),this.metadata&&this.metadata.onMouseDown&&this.metadata.onMouseDown.call(this.graph,{e:e,data:this.getEventData(e),knob:this,cell:this.cell,node:this.node}),this.notify("knob:mousedown",e)}onMouseMove(e){const t=this.getEventData(e),n=this.graph.findViewByCell(this.node);if(t.knobbing||(t.knobbing=!0,n&&(n.addClass(zA.KNOBBING),this.notify("knob",e)),this.model.startBatch("knob",{cid:this.cid})),t.clientX=e.clientX,t.clientY=e.clientY,this.metadata&&this.metadata.onMouseMove){const n=this.graph.matrix(),i=(e.clientX-t.originX)/n.a,r=(e.clientY-t.originY)/n.d,o=this.node.getAngle(),a=new xy(i,r).rotate(o);this.metadata.onMouseMove.call(this.graph,{e:e,data:t,deltaX:a.x,deltaY:a.y,knob:this,cell:this.cell,node:this.node})}this.notify("knobbing",e),this.notify("knob:mousemove",e)}onMouseUp(e){this.undelegateDocumentEvents(),this.graph.view.delegateEvents();const t=this.getEventData(e),n=this.graph.findViewByCell(this.node);t.knobbing&&(n&&n.removeClass(zA.KNOBBING),this.metadata&&this.metadata.onMouseUp&&this.metadata.onMouseUp.call(this.graph,{e:e,data:t,knob:this,cell:this.cell,node:this.node}),this.model.stopBatch("knob",{cid:this.cid}),this.notify("knobbed",e)),this.notify("knob:mouseup",e)}}(function(e){e.KNOB="has-widget-knob",e.KNOBBING="node-knobbing",e.documentEvents={mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp"}})(zA||(zA={}));var qA,KA,QA=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};(function(e){e.root="widget-minimap",e.viewport=`${e.root}-viewport`,e.zoom=`${e.viewport}-zoom`})(qA||(qA={}));class XA extends Ex{constructor(e){super(),this.options=Object.assign(Object.assign({},KA.defaultOptions),e),this.updateViewport=s.debounce(this.updateViewport.bind(this),0),this.container=document.createElement("div"),this.$container=this.$(this.container).addClass(this.prefixClassName(qA.root));const t=document.createElement("div");this.container.appendChild(t),this.$viewport=this.$("
").addClass(this.prefixClassName(qA.viewport)),this.options.scalable&&(this.zoomHandle=this.$("
").addClass(this.prefixClassName(qA.zoom)).appendTo(this.$viewport).get(0)),this.$container.append(this.$viewport).css({width:this.options.width,height:this.options.height,padding:this.options.padding}),this.options.container&&this.options.container.appendChild(this.container),this.sourceGraph=this.graph;const n=Object.assign(Object.assign({},this.options.graphOptions),{container:t,model:this.sourceGraph.model,frozen:!0,async:this.sourceGraph.isAsync(),interacting:!1,grid:!1,background:!1,rotating:!1,resizing:!1,embedding:!1,selecting:!1,snapline:!1,clipboard:!1,history:!1,scroller:!1});this.targetGraph=this.options.createGraph?this.options.createGraph(n):new uR(n),this.targetGraph.renderer.unfreeze(),this.updatePaper(this.sourceGraph.options.width,this.sourceGraph.options.height),this.startListening()}get graph(){return this.options.graph}get scroller(){return this.graph.scroller.widget}get graphContainer(){return this.scroller?this.scroller.container:this.graph.container}get $graphContainer(){return this.scroller?this.scroller.$container:this.$(this.graph.container)}startListening(){this.scroller?this.$graphContainer.on(`scroll${this.getEventNamespace()}`,this.updateViewport):this.sourceGraph.on("translate",this.updateViewport,this),this.sourceGraph.on("resize",this.updatePaper,this),this.delegateEvents({mousedown:"startAction",touchstart:"startAction",[`mousedown .${this.prefixClassName("graph")}`]:"scrollTo",[`touchstart .${this.prefixClassName("graph")}`]:"scrollTo"})}stopListening(){this.scroller?this.$graphContainer.off(this.getEventNamespace()):this.sourceGraph.off("translate",this.updateViewport,this),this.sourceGraph.off("resize",this.updatePaper,this),this.undelegateEvents()}onRemove(){this.targetGraph.view.remove(),this.stopListening(),this.targetGraph.dispose()}updatePaper(e,t){let n,i;"object"===typeof e?(n=e.width,i=e.height):(n=e,i=t);const r=this.sourceGraph.options,o=this.sourceGraph.transform.getScale(),a=this.options.width-2*this.options.padding,s=this.options.height-2*this.options.padding;n/=o.sx,i/=o.sy,this.ratio=Math.min(a/n,s/i);const l=this.ratio,c=r.x*l/o.sx,u=r.y*l/o.sy;return n*=l,i*=l,this.targetGraph.resizeGraph(n,i),this.targetGraph.translate(c,u),this.targetGraph.scale(l,l),this.updateViewport(),this}updateViewport(){const e=this.ratio,t=this.sourceGraph.transform.getScale();let n=null;if(this.scroller)n=this.scroller.clientToLocalPoint(0,0);else{const e=this.sourceGraph.matrix();n=new xy(-e.e/e.a,-e.f/e.d)}const i=this.$(this.targetGraph.container).position(),r=this.targetGraph.translate();r.ty=r.ty||0,this.geometry={top:i.top+n.y*e+r.ty,left:i.left+n.x*e+r.tx,width:this.$graphContainer.innerWidth()*e/t.sx,height:this.$graphContainer.innerHeight()*e/t.sy},this.$viewport.css(this.geometry)}startAction(e){const t=this.normalizeEvent(e),n=t.target===this.zoomHandle?"zooming":"panning",{tx:i,ty:r}=this.sourceGraph.translate(),o={action:n,clientX:t.clientX,clientY:t.clientY,scrollLeft:this.graphContainer.scrollLeft,scrollTop:this.graphContainer.scrollTop,zoom:this.sourceGraph.zoom(),scale:this.sourceGraph.transform.getScale(),geometry:this.geometry,translateX:i,translateY:r};this.delegateDocumentEvents(KA.documentEvents,o)}doAction(e){const t=this.normalizeEvent(e),n=t.clientX,i=t.clientY,r=t.data;switch(r.action){case"panning":{const e=this.sourceGraph.transform.getScale(),t=(n-r.clientX)*e.sx,o=(i-r.clientY)*e.sy;this.scroller?(this.graphContainer.scrollLeft=r.scrollLeft+t/this.ratio,this.graphContainer.scrollTop=r.scrollTop+o/this.ratio):this.sourceGraph.translate(r.translateX-t/this.ratio,r.translateY-o/this.ratio);break}case"zooming":{const e=r.scale,t=r.geometry,i=1+(r.clientX-n)/t.width/e.sx;r.frameId&&cancelAnimationFrame(r.frameId),r.frameId=requestAnimationFrame(()=>{this.sourceGraph.zoom(i*r.zoom,{absolute:!0,minScale:this.options.minScale,maxScale:this.options.maxScale})});break}default:break}}stopAction(){this.undelegateDocumentEvents()}scrollTo(e){const t=this.normalizeEvent(e);let n,i;const r=this.targetGraph.translate();if(r.ty=r.ty||0,null==t.offsetX){const e=this.$(this.targetGraph.container).offset();n=t.pageX-e.left,i=t.pageY-e.top}else n=t.offsetX,i=t.offsetY;const o=(n-r.tx)/this.ratio,a=(i-r.ty)/this.ratio;this.sourceGraph.centerPoint(o,a)}dispose(){this.remove()}}QA([Ex.dispose()],XA.prototype,"dispose",null),function(e){e.defaultOptions={width:300,height:200,padding:10,scalable:!0,minScale:.01,maxScale:16,graphOptions:{},createGraph:e=>new uR(e)},e.documentEvents={mousemove:"doAction",touchmove:"doAction",mouseup:"stopAction",touchend:"stopAction"}}(KA||(KA={}));var ZA=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},JA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{"string"===typeof e?this.filterShapes[e]=!0:this.filterCells[e.id]=!0}):"function"===typeof e&&(this.filterFunction=e)}onBatchStop({name:e,data:t}){"resize"===e&&this.snapOnResizing(t.cell,t)}captureCursorOffset({view:e,x:t,y:n}){const i=e.getDelegatedView();if(i&&this.isNodeMovable(i)){const i=e.cell.getPosition();this.offset={x:t-i.x,y:n-i.y}}}isNodeMovable(e){return e&&e.cell.isNode()&&e.can("nodeMovable")}snapOnResizing(e,t){if(this.options.resizing&&!t.snapped&&t.ui&&t.direction&&t.trueDirection){const n=this.graph.renderer.findViewByCell(e);if(n&&n.cell.isNode()){const r=e.getBBox(),o=r.bbox(e.getAngle()),a=o.getTopLeft(),s=o.getBottomRight(),l=my.normalize(e.getAngle()),c=this.options.tolerance||0;let u,d,h,p,f,g;const m={vertical:0,horizontal:0},v=t.direction,_=t.trueDirection,y=t.relativeDirection;-1!==_.indexOf("right")?m.vertical=s.x:m.vertical=a.x,-1!==_.indexOf("bottom")?m.horizontal=s.y:m.horizontal=a.y,this.model.getNodes().some(t=>{if(this.isIgnored(e,t))return!1;const n=t.getBBox().bbox(t.getAngle()),r=n.getTopLeft(),a=n.getBottomRight(),l={vertical:[r.x,a.x],horizontal:[r.y,a.y]},v={};return Object.keys(l).forEach(e=>{const t=e,n=l[t].map(e=>({position:e,distance:Math.abs(e-m[t])})).filter(e=>e.distance<=c);v[t]=i.sortBy(n,e=>e.distance)}),null==u&&v.vertical.length>0&&(u=v.vertical[0].position,d=Math.min(o.y,n.y),h=Math.max(s.y,a.y)-d),null==p&&v.horizontal.length>0&&(p=v.horizontal[0].position,f=Math.min(o.x,n.x),g=Math.max(s.x,a.x)-f),null!=u&&null!=p}),this.hide();let b=0,S=0;null==p&&null==u||(null!=u&&(b=-1!==_.indexOf("right")?u-s.x:a.x-u),null!=p&&(S=-1!==_.indexOf("bottom")?p-s.y:a.y-p));let E=0,C=0;if(l%90===0)90===l||270===l?(E=S,C=b):(E=b,C=S);else{const e=l>=0&&l<90?1:l>=90&&l<180?4:l>=180&&l<270?3:2;null!=p&&null!=u&&(bx&&(w=Math.max(w,t.minWidth)),t.minHeight&&t.minHeight>x&&(T=Math.max(T,t.minHeight)),t.maxWidth&&(w=Math.min(w,t.maxWidth)),t.maxHeight&&(T=Math.min(T,t.maxHeight)),t.preserveAspectRatio&&(C1&&Math.abs(A.width+A.x-u)>1&&(u=void 0),p&&Math.abs(A.y-p)>1&&Math.abs(A.height+A.y-p)>1&&(p=void 0),this.update({verticalLeft:u,verticalTop:d,verticalHeight:h,horizontalTop:p,horizontalLeft:f,horizontalWidth:g})}}}snapOnMoving({view:e,e:t,x:n,y:i}){const r=e.getEventData(t).delegatedView||e;if(!this.isNodeMovable(r))return;const o=r.cell,a=o.getSize(),s=o.getPosition(),l=new wy(n-this.offset.x,i-this.offset.y,a.width,a.height),c=o.getAngle(),u=l.getCenter(),d=l.bbox(c),h=d.getTopLeft(),p=d.getBottomRight(),f=this.options.tolerance||0;let g,m,v,_,y,b,S=0,E=0;if(this.model.getNodes().some(e=>{if(this.isIgnored(o,e))return!1;const t=e.getBBox().bbox(e.getAngle()),n=t.getCenter(),i=t.getTopLeft(),r=t.getBottomRight();return null==g&&(Math.abs(n.x-u.x)0&&(this.timer=window.setTimeout(()=>{this.unmount()},t)),this}onRemove(){this.stopListening(),this.hide()}dispose(){this.remove()}}ZA([Ex.dispose()],eO.prototype,"dispose",null);var tO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class nO extends MA{init(){this.resetUpdates(),this.startListening(),this.resetViews(this.model.getCells()),!this.isFrozen()&&this.isAsync()&&this.updateViewsAsync()}startListening(){this.model.on("sorted",this.onSortModel,this),this.model.on("reseted",this.onModelReseted,this),this.model.on("batch:stop",this.onBatchStop,this),this.model.on("cell:added",this.onCellAdded,this),this.model.on("cell:removed",this.onCellRemoved,this),this.model.on("cell:change:zIndex",this.onCellZIndexChanged,this),this.model.on("cell:change:visible",this.onCellVisibleChanged,this)}stopListening(){this.model.off("sorted",this.onSortModel,this),this.model.off("reseted",this.onModelReseted,this),this.model.off("batch:stop",this.onBatchStop,this),this.model.off("cell:added",this.onCellAdded,this),this.model.off("cell:removed",this.onCellRemoved,this),this.model.off("cell:change:zIndex",this.onCellZIndexChanged,this),this.model.off("cell:change:visible",this.onCellVisibleChanged,this)}resetUpdates(){this.updates={priorities:[{},{},{}],mounted:{},mountedCids:[],unmounted:{},unmountedCids:[],count:0,sort:!1,frozen:!1,freezeKey:null,animationId:null}}onSortModel(){this.model.hasActiveBatch(nO.SORT_DELAYING_BATCHES)||this.sortViews()}onModelReseted({options:e}){this.removeZPivots(),this.resetViews(this.model.getCells(),e)}onBatchStop({name:e,data:t}){if(this.isFrozen())return;const n=this.model;if(!this.isAsync()){const i=nO.UPDATE_DELAYING_BATCHES;i.includes(e)&&!n.hasActiveBatch(i)&&this.updateViews(t)}const i=nO.SORT_DELAYING_BATCHES;i.includes(e)&&!n.hasActiveBatch(i)&&this.sortViews()}onCellAdded({cell:e,options:t}){const n=t.position;this.isAsync()||"number"!==typeof n?this.renderView(e,t):(t.maxPosition===n&&this.freeze({key:"addCells"}),this.renderView(e,t),0===n&&this.unfreeze({key:"addCells"}))}onCellRemoved({cell:e,options:t}){const n=this.findViewByCell(e);n&&this.requestViewUpdate(n,nO.FLAG_REMOVE,n.priority,t)}onCellZIndexChanged({cell:e,options:t}){if("approx"===this.options.sorting){const n=this.findViewByCell(e);n&&this.requestViewUpdate(n,nO.FLAG_INSERT,n.priority,t)}}onCellVisibleChanged({cell:e,current:t,options:n}){t||this.processEdgeOnTerminalVisibleChanged(e,!1);const i=this.findViewByCell(e);!t&&i?this.removeView(e):t&&null==i&&this.renderView(e,n),t&&this.processEdgeOnTerminalVisibleChanged(e,!0)}processEdgeOnTerminalVisibleChanged(e,t){const n=(e,t)=>{const n=e.getSourceCellId();if(n!==t.id)return e.getSourceCell();const i=e.getTargetCellId();return i!==t.id?e.getTargetCell():null};this.model.getConnectedEdges(e).forEach(i=>{const r=n(i,e);(null==r||r.isVisible())&&(t?i.show():i.hide())})}isEdgeTerminalVisible(e,t){const n="source"===t?e.getSourceCellId():e.getTargetCellId(),i=n?this.model.getCell(n):null;return!(i&&!i.isVisible())}requestConnectedEdgesUpdate(e,t={}){if(Px.isCellView(e)){const n=e.cell,i=this.model.getConnectedEdges(n);for(let e=0,r=i.length;e=i){r=!1;break e}const f=Ex.views[n];if(!f){delete p[n];continue}let g=p[n];if(0===(g&nO.FLAG_REMOVE)){const e=n in t.unmounted;if(d&&!s.call(d,this.graph,{view:f,unmounted:e})){e||(this.registerUnmountedView(f),f.unmount()),t.unmounted[n]|=g,delete p[n],l+=1;continue}e&&(g|=nO.FLAG_INSERT,a+=1),g|=this.registerMountedView(f)}const m=f;let v=this.updateView(f,g,e);if(v>0){const e=m.cell;e&&e.isEdge()&&(m.hasAction(v,"source")&&!this.isEdgeTerminalVisible(e,"source")&&(v=m.removeAction(v,"source"),v|=nO.FLAG_REMOVE),m.hasAction(v,"target")&&!this.isEdgeTerminalVisible(e,"target")&&(v=m.removeAction(v,"target"),v|=nO.FLAG_REMOVE))}v>0&&(p[n]=v,!this.graph.hook.onViewPostponed(m,v,e)||p[n])?(u+=1,r=!1):(o>h&&(o=h),c+=1,delete p[n])}}return{empty:r,priority:o,mountedCount:a,unmountedCount:l,updatedCount:c,postponedCount:u}}updateViewsAsync(e={},t={processed:0,priority:nO.MIN_PRIORITY}){const n=this.updates,i=n.animationId;if(i){if(c.cancelAnimationFrame(i),0===t.processed){const t=e.before;"function"===typeof t&&s.call(t,this.graph,this.graph)}const r=this.updateViewsBatch(e),o=this.checkViewImpl({checkView:e.checkView,mountedBatchSize:nO.MOUNT_BATCH_SIZE-r.mountedCount,unmountedBatchSize:nO.MOUNT_BATCH_SIZE-r.unmountedCount});let a=t.processed;const l=n.count,u=o.mountedCount,d=o.unmountedCount;r.updatedCount>0&&(a+=r.updatedCount+r.unmountedCount,t.priority=Math.min(r.priority,t.priority),r.empty&&0===u?(r.priority=t.priority,r.mountedCount+=u,r.unmountedCount+=d,this.graph.trigger("render:done",{stats:r,options:e}),t.processed=0,n.count=0):t.processed=a);const h=e.progress;if(l&&"function"===typeof h&&s.call(h,this.graph,{total:l,done:r.empty,current:a}),n.animationId!==i)return}n.animationId=c.requestAnimationFrame(()=>{this.updateViewsAsync(e,t)})}registerMountedView(e){const t=e.cid,n=this.updates;if(t in n.mounted)return 0;n.mounted[t]=!0,n.mountedCids.push(t);const i=n.unmounted[t]||0;return delete n.unmounted[t],i}registerUnmountedView(e){const t=e.cid,n=this.updates;if(t in n.unmounted)return 0;n.unmounted[t]|=nO.FLAG_INSERT;const i=n.unmounted[t];return n.unmountedCids.push(t),delete n.mounted[t],i}isViewMounted(e){if(null==e)return!1;const t=e.cid;return t in this.updates.mounted}getMountedViews(){return Object.keys(this.updates.mounted).map(e=>Px.views[e])}getUnmountedViews(){return Object.keys(this.updates.unmounted).map(e=>Px.views[e])}checkMountedViews(e,t){let n=0;if("function"!==typeof e)return n;const i=this.updates,r=i.mounted,o=i.mountedCids,a=null==t?o.length:Math.min(o.length,t);for(let l=0;l0?Math.min(this.updates.unmountedCids.length-n,e.mountedBatchSize):e.mountedBatchSize);return{mountedCount:i,unmountedCount:n}}checkView(e={}){return this.checkViewImpl(e)}isFrozen(){return!!this.options.frozen}freeze(e={}){const t=e.key,n=this.updates,i=this.options.frozen,r=n.freezeKey;if(t&&t!==r){if(i&&r)return;n.frozen=i,n.freezeKey=t}this.options.frozen=!0;const o=n.animationId;n.animationId=null,this.isAsync()&&null!=o&&c.cancelAnimationFrame(o),this.graph.trigger("freeze",{key:t})}unfreeze(e={}){const t=e.key,n=this.updates,i=n.freezeKey;if(t&&i&&t!==i)return;if(n.freezeKey=null,t&&t===i&&n.frozen)return;const r=()=>{this.options.frozen=n.frozen=!1,n.sort&&(this.sortViews(),n.sort=!1);const i=e.after;i&&s.call(i,this.graph,this.graph),this.graph.trigger("unfreeze",{key:t})};if(this.isAsync()){this.freeze();const t=e.progress;this.updateViewsAsync(Object.assign(Object.assign({},e),{progress:({done:e,current:n,total:i})=>{t&&s.call(t,this.graph,{done:e,current:n,total:i}),e&&r()}}))}else this.updateViews(e),r()}isAsync(){return!!this.options.async}setAsync(e){this.options.async=e}onRemove(){this.freeze(),this.removeViews()}resetViews(e=[],t={}){this.resetUpdates(),this.removeViews(),this.freeze({key:"reset"});for(let n=0,i=e.length;n{const t=this.views[e];t&&this.removeView(t.cell)}),this.views={}}renderView(e,t={}){const n=e.id,i=this.views;let r=0,o=i[n];if(e.isVisible()&&(!e.isEdge()||this.isEdgeTerminalVisible(e,"source")&&this.isEdgeTerminalVisible(e,"target"))){if(o)r=nO.FLAG_INSERT;else{const t=this.graph.hook.createCellView(e);t&&(o=i[e.id]=t,o.graph=this.graph,r=this.registerUnmountedView(o)|o.getBootstrapFlag())}o&&this.requestViewUpdate(o,r,o.priority,t)}}isExactSorting(){return"exact"===this.options.sorting}sortViews(){this.isExactSorting()&&(this.isFrozen()?this.updates.sort=!0:this.sortViewsExact())}sortElements(e,t){const n=e.map(e=>{const t=e.parentNode,n=t.insertBefore(document.createTextNode(""),e.nextSibling);return e=>{if(t===e)throw new Error("You can't sort elements if any one is a descendant of another.");t.insertBefore(e,n),t.removeChild(n)}});e.sort(t).forEach((e,t)=>n[t](e))}sortViewsExact(){const e=this.view.$(this.view.stage).children("[data-cell-id]").toArray(),t=this.model;this.sortElements(e,(e,n)=>{const i=t.getCell(e.getAttribute("data-cell-id")||""),r=t.getCell(n.getAttribute("data-cell-id")||""),o=i.getZIndex()||0,a=r.getZIndex()||0;return o===a?0:oi&&(i=t)}const r=this.view.stage;if(i!==-1/0){const e=t[i];r.insertBefore(n,e.nextSibling)}else r.insertBefore(n,r.firstChild);return n}removeZPivots(){this.zPivots&&Object.keys(this.zPivots).forEach(e=>{const t=this.zPivots[e];t&&t.parentNode&&t.parentNode.removeChild(t)}),this.zPivots={}}insertView(e){const t=this.view.stage;switch(this.options.sorting){case"approx":{const n=e.cell.getZIndex(),i=this.addZPivot(n);t.insertBefore(e.container,i);break}case"exact":default:t.appendChild(e.container);break}}findViewByCell(e){if(null==e)return null;const t=XT.isCell(e)?e.id:e;return this.views[t]}findViewByElem(e){if(null==e)return null;const t="string"===typeof e?this.view.stage.querySelector(e):e instanceof Element?e:e[0];if(t){const e=this.view.findAttr("data-cell-id",t);if(e)return this.views[e]}return null}findViewsFromPoint(e){const t={x:e.x,y:e.y};return this.model.getCells().map(e=>this.findViewByCell(e)).filter(e=>{return null!=e&&c.getBBox(e.container,{target:this.view.stage}).containsPoint(t)})}findEdgeViewsInArea(e,t={}){const n=wy.create(e);return this.model.getEdges().map(e=>this.findViewByCell(e)).filter(e=>{if(e){const i=c.getBBox(e.container,{target:this.view.stage});return t.strict?n.containsRect(i):n.isIntersectWithRect(i)}return!1})}findViewsInArea(e,t={}){const n=wy.create(e);return this.model.getNodes().map(e=>this.findViewByCell(e)).filter(e=>{if(e){const i=c.getBBox(e.container,{target:this.view.stage});return t.strict?n.containsRect(i):n.isIntersectWithRect(i)}return!1})}dispose(){this.resetUpdates(),this.stopListening()}}tO([MA.dispose()],nO.prototype,"dispose",null),function(e){e.FLAG_INSERT=1<<30,e.FLAG_REMOVE=1<<29,e.MOUNT_BATCH_SIZE=1e3,e.UPDATE_BATCH_SIZE=1e3,e.MIN_PRIORITY=2,e.SORT_DELAYING_BATCHES=["add","to-front","to-back"],e.UPDATE_DELAYING_BATCHES=["translate"]}(nO||(nO={}));var iO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class rO extends MA{get elem(){return this.view.background}init(){this.startListening(),this.options.background&&this.draw(this.options.background)}startListening(){this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this)}stopListening(){this.graph.off("scale",this.update,this),this.graph.off("translate",this.update,this)}updateBackgroundImage(e={}){let t=e.size||"auto auto",n=e.position||"center";const i=this.graph.transform.getScale(),r=this.graph.translate();if("object"===typeof n){const e=r.tx+i.sx*(n.x||0),t=r.ty+i.sy*(n.y||0);n=`${e}px ${t}px`}"object"===typeof t&&(t=wy.fromSize(t).scale(i.sx,i.sy),t=`${t.width}px ${t.height}px`),this.elem.style.backgroundSize=t,this.elem.style.backgroundPosition=n}drawBackgroundImage(e,t={}){if(!(e instanceof HTMLImageElement))return void(this.elem.style.backgroundImage="");let n;const i=t.opacity,o=t.size;let a=t.repeat||"no-repeat";const s=vC.registry.get(a);if("function"===typeof s){const i=t.quality||1;e.width*=i,e.height*=i;const r=s(e,t);if(!(r instanceof HTMLCanvasElement))throw new Error("Background pattern must return an HTML Canvas instance");n=r.toDataURL("image/png"),a=t.repeat&&a!==t.repeat?t.repeat:"repeat","object"===typeof o?(o.width*=r.width/e.width,o.height*=r.height/e.height):void 0===o&&(t.size={width:r.width/i,height:r.height/i})}else n=e.src,void 0===o&&(t.size={width:e.width,height:e.height});const l=this.optionsCache;null!=l&&"object"===typeof t.size&&t.image===l.image&&t.repeat===l.repeat&&t.quality===l.quality&&(l.size=r.clone(t.size));const c=this.elem.style;c.backgroundImage=`url(${n})`,c.backgroundRepeat=a,c.opacity=null==i||i>=1?"":`${i}`,this.updateBackgroundImage(t)}updateBackgroundColor(e){this.elem.style.backgroundColor=e||""}updateBackgroundOptions(e){this.graph.options.background=e}update(){this.optionsCache&&this.updateBackgroundImage(this.optionsCache)}draw(e){const t=e||{};if(this.updateBackgroundOptions(e),this.updateBackgroundColor(t.color),t.image){this.optionsCache=r.clone(t);const n=document.createElement("img");n.onload=()=>this.drawBackgroundImage(n,e),n.setAttribute("crossorigin","anonymous"),n.src=t.image}else this.drawBackgroundImage(null),this.optionsCache=null}clear(){this.draw()}dispose(){this.clear(),this.stopListening()}}iO([MA.dispose()],rO.prototype,"dispose",null);var oO,aO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},sO=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const n=t.trim();if(n){const t=n.split(":");t.length&&(e[t[0].trim()]=t[1]?t[1].trim():"")}}),Object.keys(e).forEach(t=>{"width"!==t&&"height"!==t&&(r.style[t]="",this.container.style[t]=e[t])})}this.content=document.createElement("div"),this.$content=this.$(this.content).addClass(this.prefixClassName(oO.contentClass)).css({width:this.graph.options.width,height:this.graph.options.height}),this.background=document.createElement("div"),this.$background=this.$(this.background).addClass(this.prefixClassName(oO.backgroundClass)),this.$content.append(this.background),this.options.pageVisible||this.$content.append(this.graph.view.grid),this.$content.append(r),this.$content.appendTo(this.container),this.startListening(),this.options.pageVisible||this.graph.grid.update(),this.backgroundManager=new lO.Background(this)}get graph(){return this.options.graph}get model(){return this.graph.model}startListening(){const e=this.graph,t=this.model;e.on("scale",this.onScale,this),e.on("resize",this.onResize,this),e.on("before:print",this.storeScrollPosition,this),e.on("before:export",this.storeScrollPosition,this),e.on("after:print",this.restoreScrollPosition,this),e.on("after:export",this.restoreScrollPosition,this),e.on("render:done",this.onRenderDone,this),e.on("unfreeze",this.onUpdate,this),t.on("reseted",this.onUpdate,this),t.on("cell:added",this.onUpdate,this),t.on("cell:removed",this.onUpdate,this),t.on("cell:changed",this.onUpdate,this),t.on("batch:stop",this.onBatchStop,this),this.delegateBackgroundEvents()}stopListening(){const e=this.graph,t=this.model;e.off("scale",this.onScale,this),e.off("resize",this.onResize,this),e.off("beforeprint",this.storeScrollPosition,this),e.off("beforeexport",this.storeScrollPosition,this),e.off("afterprint",this.restoreScrollPosition,this),e.off("afterexport",this.restoreScrollPosition,this),e.off("render:done",this.onRenderDone,this),e.off("unfreeze",this.onUpdate,this),t.off("reseted",this.onUpdate,this),t.off("cell:added",this.onUpdate,this),t.off("cell:removed",this.onUpdate,this),t.off("cell:changed",this.onUpdate,this),t.off("batch:stop",this.onBatchStop,this),this.undelegateBackgroundEvents()}enableAutoResize(){this.options.autoResize=!0}disableAutoResize(){this.options.autoResize=!1}onUpdate(){!this.graph.isAsync()&&this.options.autoResize&&this.update()}onBatchStop(e){!this.graph.isAsync()&&this.options.autoResize&&nO.UPDATE_DELAYING_BATCHES.includes(e.name)&&this.update()}delegateBackgroundEvents(e){const t=e||PA.events;this.delegatedHandlers=Object.keys(t).reduce((e,n)=>{const i=t[n];if(-1===n.indexOf(" "))if("function"===typeof i)e[n]=i;else{let t=this.graph.view[i];"function"===typeof t&&(t=t.bind(this.graph.view),e[n]=t)}return e},{}),this.onBackgroundEvent=this.onBackgroundEvent.bind(this),Object.keys(this.delegatedHandlers).forEach(e=>{this.delegateEvent(e,{guarded:!1},this.onBackgroundEvent)})}undelegateBackgroundEvents(){Object.keys(this.delegatedHandlers).forEach(e=>{this.undelegateEvent(e,this.onBackgroundEvent)})}onBackgroundEvent(e){let t=!1;const n=e.target;if(this.options.pageVisible)t=this.options.background?this.background===n:this.content===n;else{const e=this.graph.view;t=e.background===n||e.grid===n}if(t){const t=this.delegatedHandlers[e.type];"function"===typeof t&&t.apply(this.graph,arguments)}}onRenderDone({stats:e}){this.options.autoResize&&e.priority<2&&this.update()}onResize(){this.cachedCenterPoint&&(this.centerPoint(this.cachedCenterPoint.x,this.cachedCenterPoint.y),this.updatePageBreak())}onScale({sx:e,sy:t,ox:n,oy:i}){this.updateScale(e,t),(n||i)&&(this.centerPoint(n,i),this.updatePageBreak());const r=this.options.autoResizeOptions||this.options.fitTocontentOptions;"function"===typeof r&&this.update()}storeScrollPosition(){this.cachedScrollLeft=this.container.scrollLeft,this.cachedScrollTop=this.container.scrollTop}restoreScrollPosition(){this.container.scrollLeft=this.cachedScrollLeft,this.container.scrollTop=this.cachedScrollTop,this.cachedScrollLeft=null,this.cachedScrollTop=null}storeClientSize(){this.cachedClientSize={width:this.container.clientWidth,height:this.container.clientHeight}}restoreClientSize(){this.cachedClientSize=null}beforeManipulation(){(O.IS_IE||O.IS_EDGE)&&this.$container.css("visibility","hidden")}afterManipulation(){(O.IS_IE||O.IS_EDGE)&&this.$container.css("visibility","visible")}updatePageSize(e,t){null!=e&&(this.options.pageWidth=e),null!=t&&(this.options.pageHeight=t),this.updatePageBreak()}updatePageBreak(){if(this.pageBreak&&this.pageBreak.parentNode&&this.pageBreak.parentNode.removeChild(this.pageBreak),this.pageBreak=null,this.options.pageVisible&&this.options.pageBreak){const e=this.graph.options.width,t=this.graph.options.height,n=this.options.pageWidth*this.sx,i=this.options.pageHeight*this.sy;if(e>n||t>i){let r=!1;const o=document.createElement("div");for(let t=1,i=Math.floor(e/n);t").addClass(this.prefixClassName("graph-pagebreak-vertical")).css({left:t*n}).appendTo(o),r=!0;for(let e=1,n=Math.floor(t/i);e").addClass(this.prefixClassName("graph-pagebreak-horizontal")).css({top:e*i}).appendTo(o),r=!0;r&&(c.addClass(o,this.prefixClassName("graph-pagebreak")),this.$(this.graph.view.grid).after(o),this.pageBreak=o)}}}update(){const e=this.getClientSize();this.cachedCenterPoint=this.clientToLocalPoint(e.width/2,e.height/2);let t=this.options.autoResizeOptions||this.options.fitTocontentOptions;"function"===typeof t&&(t=s.call(t,this,this));const n=Object.assign({gridWidth:this.options.pageWidth,gridHeight:this.options.pageHeight,allowNewOrigin:"negative"},t);this.graph.fitToContent(this.getFitToContentOptions(n))}getFitToContentOptions(e){const t=this.sx,n=this.sy;return e.gridWidth&&(e.gridWidth*=t),e.gridHeight&&(e.gridHeight*=n),e.minWidth&&(e.minWidth*=t),e.minHeight&&(e.minHeight*=n),"object"===typeof e.padding?e.padding={left:(e.padding.left||0)*t,right:(e.padding.right||0)*t,top:(e.padding.top||0)*n,bottom:(e.padding.bottom||0)*n}:"number"===typeof e.padding&&(e.padding*=t),e}updateScale(e,t){const n=this.graph.options,i=e/this.sx,r=t/this.sy;this.sx=e,this.sy=t,this.graph.translate(n.x*i,n.y*r),this.graph.resizeGraph(n.width*i,n.height*r)}scrollbarPosition(e,t,n){if(null==e&&null==t)return{left:this.container.scrollLeft,top:this.container.scrollTop};const i={};return"number"===typeof e&&(i.scrollLeft=e),"number"===typeof t&&(i.scrollTop=t),n&&n.animation?this.$container.animate(i,n.animation):this.$container.prop(i),this}scrollToPoint(e,t,n){const i=this.getClientSize(),r=this.graph.matrix(),o={};return"number"===typeof e&&(o.scrollLeft=e-i.width/2+r.e+(this.padding.left||0)),"number"===typeof t&&(o.scrollTop=t-i.height/2+r.f+(this.padding.top||0)),n&&n.animation?this.$container.animate(o,n.animation):this.$container.prop(o),this}scrollToContent(e){const t=this.sx,n=this.sy,i=this.graph.getContentArea().getCenter();return this.scrollToPoint(i.x*t,i.y*n,e)}scrollToCell(e,t){const n=this.sx,i=this.sy,r=e.getBBox().getCenter();return this.scrollToPoint(r.x*n,r.y*i,t)}center(e){return this.centerPoint(e)}centerPoint(e,t,n){const i=this.graph.matrix(),r=i.a,o=i.d,a=-i.e,s=-i.f,l=a+this.graph.options.width,c=s+this.graph.options.height;let u;if(this.storeClientSize(),"number"===typeof e||"number"===typeof t){u=n;const i=this.getVisibleArea().getCenter();"number"===typeof e?e*=r:e=i.x,"number"===typeof t?t*=o:t=i.y}else u=e,e=(a+l)/2,t=(s+c)/2;if(u&&u.padding)return this.positionPoint({x:e,y:t},"50%","50%",u);const d=this.getPadding(),h=this.getClientSize(),p=h.width/2,f=h.height/2,g=p-d.left-e+a,m=p-d.right+e-l,v=f-d.top-t+s,_=f-d.bottom+t-c;this.addPadding(Math.max(g,0),Math.max(m,0),Math.max(v,0),Math.max(_,0));const y=this.scrollToPoint(e,t,u||void 0);return this.restoreClientSize(),y}centerContent(e){return this.positionContent("center",e)}centerCell(e,t){return this.positionCell(e,"center",t)}positionContent(e,t){const n=this.graph.getContentArea(t);return this.positionRect(n,e,t)}positionCell(e,t,n){const i=e.getBBox();return this.positionRect(i,t,n)}positionRect(e,t,n){const i=wy.create(e);switch(t){case"center":return this.positionPoint(i.getCenter(),"50%","50%",n);case"top":return this.positionPoint(i.getTopCenter(),"50%",0,n);case"top-right":return this.positionPoint(i.getTopRight(),"100%",0,n);case"right":return this.positionPoint(i.getRightMiddle(),"100%","50%",n);case"bottom-right":return this.positionPoint(i.getBottomRight(),"100%","100%",n);case"bottom":return this.positionPoint(i.getBottomCenter(),"50%","100%",n);case"bottom-left":return this.positionPoint(i.getBottomLeft(),0,"100%",n);case"left":return this.positionPoint(i.getLeftMiddle(),0,"50%",n);case"top-left":return this.positionPoint(i.getTopLeft(),0,0,n);default:return this}}positionPoint(e,t,n,i={}){const{padding:r}=i,o=sO(i,["padding"]),s=a.normalizeSides(r),l=wy.fromSize(this.getClientSize()),c=l.clone().moveAndExpand({x:s.left,y:s.top,width:-s.right-s.left,height:-s.top-s.bottom});t=a.normalizePercentage(t,Math.max(0,c.width)),t<0&&(t=c.width+t),n=a.normalizePercentage(n,Math.max(0,c.height)),n<0&&(n=c.height+n);const u=c.getTopLeft().translate(t,n),d=l.getCenter().diff(u),h=this.zoom(),p=d.scale(1/h,1/h),f=xy.create(e).translate(p);return this.centerPoint(f.x,f.y,o)}zoom(e,t){if(null==e)return this.sx;let n,i;t=t||{};const r=this.getClientSize(),o=this.clientToLocalPoint(r.width/2,r.height/2);let a=e,s=e;if(t.absolute||(a+=this.sx,s+=this.sy),t.scaleGrid&&(a=Math.round(a/t.scaleGrid)*t.scaleGrid,s=Math.round(s/t.scaleGrid)*t.scaleGrid),t.maxScale&&(a=Math.min(t.maxScale,a),s=Math.min(t.maxScale,s)),t.minScale&&(a=Math.max(t.minScale,a),s=Math.max(t.minScale,s)),a=this.graph.transform.clampScale(a),s=this.graph.transform.clampScale(s),t.center){const e=a/this.sx,r=s/this.sy;n=t.center.x-(t.center.x-o.x)/e,i=t.center.y-(t.center.y-o.y)/r}else n=o.x,i=o.y;return this.beforeManipulation(),this.graph.transform.scale(a,s),this.centerPoint(n,i),this.afterManipulation(),this}zoomToRect(e,t={}){const n=wy.create(e),i=this.graph;t.contentArea=n,null==t.viewportArea&&(t.viewportArea={x:i.options.x,y:i.options.y,width:this.$container.width(),height:this.$container.height()}),this.beforeManipulation(),i.transform.scaleContentToFitImpl(t,!1);const r=n.getCenter();return this.centerPoint(r.x,r.y),this.afterManipulation(),this}zoomToFit(e={}){return this.zoomToRect(this.graph.getContentArea(e),e)}transitionToPoint(e,t,n){let i,r;"object"===typeof e?(n=t,t=e.y,e=e.x):t=t,null==n&&(n={});const o=this.sx,a=Math.max(n.scale||o,1e-6),l=this.getClientSize(),c=new xy(e,t),u=this.clientToLocalPoint(l.width/2,l.height/2);if(o===a){const e=u.diff(c).scale(o,o).round();i=`translate(${e.x}px,${e.y}px)`}else{const e=a/(o-a)*c.distance(u),t=u.clone().move(c,e),n=this.localToBackgroundPoint(t).round();i=`scale(${a/o})`,r=`${n.x}px ${n.y}px`}const d=n.onTransitionEnd;return this.$container.addClass(oO.transitionClassName),this.$content.off(oO.transitionEventName).on(oO.transitionEventName,n=>{this.syncTransition(a,{x:e,y:t}),"function"===typeof d&&s.call(d,this,n.originalEvent)}).css({transform:i,transformOrigin:r,transition:"transform",transitionDuration:n.duration||"1s",transitionDelay:n.delay,transitionTimingFunction:n.timing}),this}syncTransition(e,t){return this.beforeManipulation(),this.graph.scale(e),this.removeTransition(),this.centerPoint(t.x,t.y),this.afterManipulation(),this}removeTransition(){return this.$container.removeClass(oO.transitionClassName),this.$content.off(oO.transitionEventName).css({transform:"",transformOrigin:"",transition:"",transitionDuration:"",transitionDelay:"",transitionTimingFunction:""}),this}transitionToRect(e,t={}){const n=wy.create(e),i=t.maxScale||1/0,r=t.minScale||Number.MIN_VALUE,o=t.scaleGrid||null,a=t.visibility||1,s=t.center?xy.create(t.center):n.getCenter(),l=this.getClientSize(),c=l.width*a,u=l.height*a;let d=new wy(s.x-c/2,s.y-u/2,c,u).getMaxUniformScaleToFit(n,s);return d=Math.min(d,i),o&&(d=Math.floor(d/o)*o),d=Math.max(r,d),this.transitionToPoint(s,Object.assign({scale:d},t))}startPanning(e){const t=this.normalizeEvent(e);this.clientX=t.clientX,this.clientY=t.clientY,this.trigger("pan:start",{e:t}),this.$(document.body).on({"mousemove.panning touchmove.panning":this.pan.bind(this),"mouseup.panning touchend.panning":this.stopPanning.bind(this)}),this.$(window).on("mouseup.panning",this.stopPanning.bind(this))}pan(e){const t=this.normalizeEvent(e),n=t.clientX-this.clientX,i=t.clientY-this.clientY;this.container.scrollTop-=i,this.container.scrollLeft-=n,this.clientX=t.clientX,this.clientY=t.clientY,this.trigger("panning",{e:t})}stopPanning(e){this.$(document.body).off(".panning"),this.$(window).off(".panning"),this.trigger("pan:stop",{e:e})}clientToLocalPoint(e,t){let n="object"===typeof e?e.x:e,i="object"===typeof e?e.y:t;const r=this.graph.matrix();return n+=this.container.scrollLeft-this.padding.left-r.e,i+=this.container.scrollTop-this.padding.top-r.f,new xy(n/r.a,i/r.d)}localToBackgroundPoint(e,t){const n="object"===typeof e?xy.create(e):new xy(e,t),i=this.graph.matrix(),r=this.padding;return c.transformPoint(n,i).translate(r.left,r.top)}resize(e,t){let n=null!=e?e:this.container.clientWidth,i=null!=t?t:this.container.clientHeight;"number"===typeof n&&(n=Math.round(n)),"number"===typeof i&&(i=Math.round(i)),this.options.width=n,this.options.height=i,this.$container.css({width:n,height:i}),this.update()}getClientSize(){return this.cachedClientSize?this.cachedClientSize:{width:this.container.clientWidth,height:this.container.clientHeight}}autoScroll(e,t){const n=10,i=this.container,r=i.getBoundingClientRect();let o=0,a=0;return e<=r.left+n&&(o=-n),t<=r.top+n&&(a=-n),e>=r.right-n&&(o=n),t>=r.bottom-n&&(a=n),0!==o&&(i.scrollLeft+=o),0!==a&&(i.scrollTop+=a),{scrollerX:o,scrollerY:a}}addPadding(e,t,n,i){let r=this.getPadding();this.padding={left:Math.round(r.left+(e||0)),top:Math.round(r.top+(n||0)),bottom:Math.round(r.bottom+(i||0)),right:Math.round(r.right+(t||0))},r=this.padding,this.$content.css({width:r.left+this.graph.options.width+r.right,height:r.top+this.graph.options.height+r.bottom});const o=this.graph.container;return o.style.left=`${this.padding.left}px`,o.style.top=`${this.padding.top}px`,this}getPadding(){const e=this.options.padding;return"function"===typeof e?a.normalizeSides(s.call(e,this,this)):a.normalizeSides(e)}getVisibleArea(){const e=this.graph.matrix(),t=this.getClientSize(),n={x:this.container.scrollLeft||0,y:this.container.scrollTop||0,width:t.width,height:t.height},i=c.transformRectangle(n,e.inverse());return i.x-=(this.padding.left||0)/this.sx,i.y-=(this.padding.top||0)/this.sy,i}isCellVisible(e,t={}){const n=e.getBBox(),i=this.getVisibleArea();return t.strict?i.containsRect(n):i.isIntersectWithRect(n)}isPointVisible(e){return this.getVisibleArea().containsPoint(e)}lock(){return this.$container.css("overflow","hidden"),this}unlock(){return this.$container.css("overflow","scroll"),this}onRemove(){this.stopListening()}dispose(){this.$(this.graph.container).insertBefore(this.$container),this.remove()}}function cO(e,t,n,i={}){if(n){const r=n.graph,o=r.view.normalizeEvent(t),a=r.snapToGrid(o.clientX,o.clientY);n.notify(e,Object.assign({e:o,view:n,node:n.cell,cell:n.cell,x:a.x,y:a.y},i))}}aO([Ex.dispose()],lO.prototype,"dispose",null),function(e){class t extends rO{constructor(e){super(e.graph),this.scroller=e,e.options.background&&this.draw(e.options.background)}get elem(){return this.scroller.background}init(){this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this)}updateBackgroundOptions(e){this.scroller.options.background=e}}e.Background=t}(lO||(lO={})),function(e){function t(t){const n=r.merge({},e.defaultOptions,t);return null==n.pageWidth&&(n.pageWidth=t.graph.options.width),null==n.pageHeight&&(n.pageHeight=t.graph.options.height),n}e.containerClass="graph-scroller",e.panningClass=`${e.containerClass}-panning`,e.pannableClass=`${e.containerClass}-pannable`,e.pagedClass=`${e.containerClass}-paged`,e.contentClass=`${e.containerClass}-content`,e.backgroundClass=`${e.containerClass}-background`,e.transitionClassName="transition-in-progress",e.transitionEventName="transitionend.graph-scroller-transition",e.defaultOptions={padding(){const e=this.getClientSize(),t=Math.max(this.options.minVisibleWidth||0,1)||1,n=Math.max(this.options.minVisibleHeight||0,1)||1,i=Math.max(e.width-t,0),r=Math.max(e.height-n,0);return{left:i,top:r,right:i,bottom:r}},minVisibleWidth:50,minVisibleHeight:50,pageVisible:!1,pageBreak:!1,autoResize:!0},e.getOptions=t}(oO||(oO={}));var uO,dO,hO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class pO extends Ex{constructor(e){super(),this.options=r.merge({},uO.defaultOptions,e),this.options.model&&(this.options.collection=this.options.model.collection),this.options.collection?this.collection=this.options.collection:(this.collection=new vA([],{comparator:uO.depthComparator}),this.options.collection=this.collection),this.boxCount=0,this.createContainer(),this.initHandles(),this.startListening()}get graph(){return this.options.graph}get boxClassName(){return this.prefixClassName(uO.classNames.box)}get $boxes(){return this.$container.children(`.${this.boxClassName}`)}get handleOptions(){return this.options}startListening(){const e=this.graph,t=this.collection;this.delegateEvents({[`mousedown .${this.boxClassName}`]:"onSelectionBoxMouseDown",[`touchstart .${this.boxClassName}`]:"onSelectionBoxMouseDown"},!0),e.on("scale",this.onGraphTransformed,this),e.on("translate",this.onGraphTransformed,this),e.model.on("updated",this.onModelUpdated,this),t.on("added",this.onCellAdded,this),t.on("removed",this.onCellRemoved,this),t.on("reseted",this.onReseted,this),t.on("updated",this.onCollectionUpdated,this),t.on("node:change:position",this.onNodePositionChanged,this),t.on("cell:changed",this.onCellChanged,this)}stopListening(){const e=this.graph,t=this.collection;this.undelegateEvents(),e.off("scale",this.onGraphTransformed,this),e.off("translate",this.onGraphTransformed,this),e.model.off("updated",this.onModelUpdated,this),t.off("added",this.onCellAdded,this),t.off("removed",this.onCellRemoved,this),t.off("reseted",this.onReseted,this),t.off("updated",this.onCollectionUpdated,this),t.off("node:change:position",this.onNodePositionChanged,this),t.off("cell:changed",this.onCellChanged,this)}onRemove(){this.stopListening()}onGraphTransformed(){this.updateSelectionBoxes({async:!1})}onCellChanged(){this.updateSelectionBoxes()}onNodePositionChanged({node:e,options:t}){const n=(!0!==this.options.showNodeSelectionBox||"none"===this.options.pointerEvents)&&!this.translating&&!t.selection&&t.ui;if(n){this.translating=!0;const n=e.position(),i=e.previous("position"),r=n.x-i.x,o=n.y-i.y;0===r&&0===o||this.translateSelectedNodes(r,o,e,t),this.translating=!1}}onModelUpdated({removed:e}){e&&e.length&&this.unselect(e)}isEmpty(){return this.length<=0}isSelected(e){return this.collection.has(e)}get length(){return this.collection.length}get cells(){return this.collection.toArray()}select(e,t={}){t.dryrun=!0;const n=this.filter(Array.isArray(e)?e:[e]);return this.collection.add(n,t),this}unselect(e,t={}){return t.dryrun=!0,this.collection.remove(Array.isArray(e)?e:[e],t),this}reset(e,t={}){if(e){const n=this.cells,i=this.filter(Array.isArray(e)?e:[e]),r={},o={};n.forEach(e=>r[e.id]=e),i.forEach(e=>o[e.id]=e);const a=[],s=[];return i.forEach(e=>{r[e.id]||a.push(e)}),n.forEach(e=>{o[e.id]||s.push(e)}),s.length&&this.unselect(s,Object.assign(Object.assign({},t),{ui:!0})),a.length&&this.select(a,Object.assign(Object.assign({},t),{ui:!0})),0===s.length&&0===a.length&&this.updateContainer(),this}return this.clean(t)}clean(e={}){return this.length&&this.collection.reset([],Object.assign(Object.assign({},e),{ui:!0})),this}setFilter(e){this.options.filter=e}setContent(e){this.options.content=e}startSelecting(e){let t,n;e=this.normalizeEvent(e),this.clean();const i=this.graph.container;if(null!=e.offsetX&&null!=e.offsetY&&i.contains(e.target))t=e.offsetX,n=e.offsetY;else{const r=this.$(i).offset(),o=i.scrollLeft,a=i.scrollTop;t=e.clientX-r.left+window.pageXOffset+o,n=e.clientY-r.top+window.pageYOffset+a}this.$container.css({top:n,left:t,width:1,height:1}),this.setEventData(e,{action:"selecting",clientX:e.clientX,clientY:e.clientY,offsetX:t,offsetY:n,scrollerX:0,scrollerY:0}),this.delegateDocumentEvents(uO.documentEvents,e.data)}filter(e){const t=this.options.filter;return Array.isArray(t)?e.filter(e=>!t.includes(e)&&!t.includes(e.shape)):"function"===typeof t?e.filter(e=>s.call(t,this.graph,e)):e}stopSelecting(e){const t=this.graph,n=this.getEventData(e),i=n.action;switch(i){case"selecting":{let e=this.$container.width(),n=this.$container.height();const i=this.$container.offset(),r=t.pageToLocal(i.left,i.top),o=t.transform.getScale();e/=o.sx,n/=o.sy;const a=new wy(r.x,r.y,e,n),s=this.getCellViewsInArea(a).map(e=>e.cell);this.reset(s),this.hideRubberband();break}case"translating":{const i=t.snapToGrid(e.clientX,e.clientY);if(!this.options.following){const e=n;this.updateSelectedNodesPosition({dx:e.clientX-e.originX,dy:e.clientY-e.originY})}this.graph.model.stopBatch("move-selection"),this.notifyBoxEvent("box:mouseup",e,i.x,i.y);break}default:this.clean();break}}onMouseUp(e){const t=this.getEventData(e).action;t&&(this.stopSelecting(e),this.undelegateDocumentEvents())}onSelectionBoxMouseDown(e){e.stopPropagation();const t=this.normalizeEvent(e);this.options.movable&&this.startTranslating(t);const n=this.getCellViewFromElem(t.target);this.setEventData(t,{activeView:n});const i=this.graph.snapToGrid(t.clientX,t.clientY);this.notifyBoxEvent("box:mousedown",t,i.x,i.y),this.delegateDocumentEvents(uO.documentEvents,t.data)}startTranslating(e){this.graph.model.startBatch("move-selection");const t=this.graph.snapToGrid(e.clientX,e.clientY);this.setEventData(e,{action:"translating",clientX:t.x,clientY:t.y,originX:t.x,originY:t.y})}getSelectionOffset(e,t){let n=e.x-t.clientX,i=e.y-t.clientY;const r=this.graph.hook.getRestrictArea();if(r){const o=this.collection.toArray(),a=XT.getCellsBBox(o,{deep:!0})||wy.create(),s=r.x-a.x,l=r.y-a.y,c=r.x+r.width-(a.x+a.width),u=r.y+r.height-(a.y+a.height);if(n=c?0:n,i=o<=l||o>=u?0:i}}return{dx:n,dy:i}}updateSelectedNodesPosition(e){const{dx:t,dy:n}=e;if(t||n)if(this.translateSelectedNodes(t,n),this.boxesUpdated)this.collection.length>1&&this.updateSelectionBoxes();else{const e=this.graph.transform.getScale();this.$boxes.add(this.$selectionContainer).css({left:`+=${t*e.sx}`,top:`+=${n*e.sy}`})}}autoScrollGraph(e,t){const n=this.graph.scroller.widget;return n?n.autoScroll(e,t):{scrollerX:0,scrollerY:0}}adjustSelection(e){const t=this.normalizeEvent(e),n=this.getEventData(t),i=n.action;switch(i){case"selecting":{const e=n;!0!==e.moving&&(this.$container.appendTo(this.graph.container),this.showRubberband(),e.moving=!0);const{scrollerX:i,scrollerY:r}=this.autoScrollGraph(t.clientX,t.clientY);e.scrollerX+=i,e.scrollerY+=r;const o=t.clientX-e.clientX+e.scrollerX,a=t.clientY-e.clientY+e.scrollerY,s=parseInt(this.$container.css("left"),10),l=parseInt(this.$container.css("top"),10);this.$container.css({left:o<0?e.offsetX+o:s,top:a<0?e.offsetY+a:l,width:Math.abs(o),height:Math.abs(a)});break}case"translating":{const i=this.graph.snapToGrid(t.clientX,t.clientY),r=n,o=this.getSelectionOffset(i,r);this.options.following?this.updateSelectedNodesPosition(o):this.updateContainerPosition(o),o.dx&&(r.clientX=i.x),o.dy&&(r.clientY=i.y),this.notifyBoxEvent("box:mousemove",e,i.x,i.y);break}default:break}this.boxesUpdated=!1}translateSelectedNodes(e,t,n,i){const r={},o=[];if(this.collection.toArray().forEach(e=>{e.getDescendants({deep:!0}).forEach(e=>{r[e.id]=!0})}),i&&i.translateBy){const e=this.graph.getCellById(i.translateBy);e&&(r[e.id]=!0,e.getDescendants({deep:!0}).forEach(e=>{r[e.id]=!0}),o.push(e))}this.collection.toArray().forEach(n=>{if(!r[n.id]){const a=Object.assign(Object.assign({},i),{selection:this.cid,exclude:o});n.translate(e,t,a),this.graph.model.getConnectedEdges(n).forEach(n=>{r[n.id]||(n.translate(e,t,a),r[n.id]=!0)})}})}getCellViewsInArea(e){const t=this.graph,n={strict:this.options.strict};let i=[];return this.options.rubberNode&&(i=this.options.useCellGeometry?i.concat(t.model.getNodesInArea(e,n).map(e=>t.renderer.findViewByCell(e)).filter(e=>null!=e)):i.concat(t.renderer.findViewsInArea(e,n))),this.options.rubberEdge&&(i=this.options.useCellGeometry?i.concat(t.model.getEdgesInArea(e,n).map(e=>t.renderer.findViewByCell(e)).filter(e=>null!=e)):i.concat(t.renderer.findEdgeViewsInArea(e,n))),i}notifyBoxEvent(e,t,n,i){const r=this.getEventData(t),o=r.activeView;this.trigger(e,{e:t,view:o,x:n,y:i,cell:o.cell})}getSelectedClassName(e){return this.prefixClassName(`${e.isNode()?"node":"edge"}-selected`)}addCellSelectedClassName(e){const t=this.graph.renderer.findViewByCell(e);t&&t.addClass(this.getSelectedClassName(e))}removeCellUnSelectedClassName(e){const t=this.graph.renderer.findViewByCell(e);t&&t.removeClass(this.getSelectedClassName(e))}destroySelectionBox(e){this.removeCellUnSelectedClassName(e),this.canShowSelectionBox(e)&&(this.$container.find(`[data-cell-id="${e.id}"]`).remove(),0===this.$boxes.length&&this.hide(),this.boxCount=Math.max(0,this.boxCount-1))}destroyAllSelectionBoxes(e){e.forEach(e=>this.removeCellUnSelectedClassName(e)),this.hide(),this.$boxes.remove(),this.boxCount=0}hide(){this.$container.removeClass(this.prefixClassName(uO.classNames.rubberband)).removeClass(this.prefixClassName(uO.classNames.selected))}showRubberband(){this.$container.addClass(this.prefixClassName(uO.classNames.rubberband))}hideRubberband(){this.$container.removeClass(this.prefixClassName(uO.classNames.rubberband))}showSelected(){this.$container.removeAttr("style").addClass(this.prefixClassName(uO.classNames.selected))}createContainer(){this.container=document.createElement("div"),this.$container=this.$(this.container),this.$container.addClass(this.prefixClassName(uO.classNames.root)),this.options.className&&this.$container.addClass(this.options.className),this.$selectionContainer=this.$("
").addClass(this.prefixClassName(uO.classNames.inner)),this.$selectionContent=this.$("
").addClass(this.prefixClassName(uO.classNames.content)),this.$selectionContainer.append(this.$selectionContent),this.$selectionContainer.attr("data-selection-length",this.collection.length),this.$container.prepend(this.$selectionContainer),this.$handleContainer=this.$selectionContainer}updateContainerPosition(e){(e.dx||e.dy)&&this.$selectionContainer.css({left:`+=${e.dx}`,top:`+=${e.dy}`})}updateContainer(){const e={x:1/0,y:1/0},t={x:0,y:0},n=this.collection.toArray().filter(e=>this.canShowSelectionBox(e));n.forEach(n=>{const i=this.graph.renderer.findViewByCell(n);if(i){const n=i.getBBox({useCellGeometry:this.options.useCellGeometry});e.x=Math.min(e.x,n.x),e.y=Math.min(e.y,n.y),t.x=Math.max(t.x,n.x+n.width),t.y=Math.max(t.y,n.y+n.height)}}),this.$selectionContainer.css({position:"absolute",pointerEvents:"none",left:e.x,top:e.y,width:t.x-e.x,height:t.y-e.y}).attr("data-selection-length",this.collection.length);const i=this.options.content;if(i)if("function"===typeof i){const e=s.call(i,this.graph,this,this.$selectionContent[0]);e&&this.$selectionContent.html(e)}else this.$selectionContent.html(i);this.collection.length>0&&!this.container.parentNode?this.$container.appendTo(this.graph.container):this.collection.length<=0&&this.container.parentNode&&this.container.parentNode.removeChild(this.container)}canShowSelectionBox(e){return e.isNode()&&!0===this.options.showNodeSelectionBox||e.isEdge()&&!0===this.options.showEdgeSelectionBox}createSelectionBox(e){if(this.addCellSelectedClassName(e),this.canShowSelectionBox(e)){const t=this.graph.renderer.findViewByCell(e);if(t){const n=t.getBBox({useCellGeometry:this.options.useCellGeometry}),i=this.boxClassName;this.$("
").addClass(i).addClass(`${i}-${e.isNode()?"node":"edge"}`).attr("data-cell-id",e.id).css({position:"absolute",left:n.x,top:n.y,width:n.width,height:n.height,pointerEvents:this.options.pointerEvents||"auto"}).appendTo(this.container),this.showSelected(),this.boxCount+=1}}}updateSelectionBoxes(e={}){this.collection.length>0&&(this.boxesUpdated=!0,this.graph.renderer.requestViewUpdate(this,1,2,e))}confirmUpdate(){return this.boxCount&&(this.hide(),this.$boxes.each((e,t)=>{const n=this.$(t).remove().attr("data-cell-id"),i=this.collection.get(n);i&&this.createSelectionBox(i)}),this.updateContainer()),0}getCellViewFromElem(e){const t=e.getAttribute("data-cell-id");if(t){const e=this.collection.get(t);if(e)return this.graph.renderer.findViewByCell(e)}return null}onCellRemoved({cell:e}){this.destroySelectionBox(e),this.updateContainer()}onReseted({previous:e,current:t}){this.destroyAllSelectionBoxes(e),t.forEach(e=>{this.listenCellRemoveEvent(e),this.createSelectionBox(e)}),this.updateContainer()}onCellAdded({cell:e}){this.listenCellRemoveEvent(e),this.createSelectionBox(e),this.updateContainer()}listenCellRemoveEvent(e){e.off("removed",this.onCellRemoved,this),e.on("removed",this.onCellRemoved,this)}onCollectionUpdated({added:e,removed:t,options:n}){e.forEach(e=>{this.trigger("cell:selected",{cell:e,options:n}),this.graph.trigger("cell:selected",{cell:e,options:n}),e.isNode()?(this.trigger("node:selected",{cell:e,options:n,node:e}),this.graph.trigger("node:selected",{cell:e,options:n,node:e})):e.isEdge()&&(this.trigger("edge:selected",{cell:e,options:n,edge:e}),this.graph.trigger("edge:selected",{cell:e,options:n,edge:e}))}),t.forEach(e=>{this.trigger("cell:unselected",{cell:e,options:n}),this.graph.trigger("cell:unselected",{cell:e,options:n}),e.isNode()?(this.trigger("node:unselected",{cell:e,options:n,node:e}),this.graph.trigger("node:unselected",{cell:e,options:n,node:e})):e.isEdge()&&(this.trigger("edge:unselected",{cell:e,options:n,edge:e}),this.graph.trigger("edge:unselected",{cell:e,options:n,edge:e}))});const i={added:e,removed:t,options:n,selected:this.cells};this.trigger("selection:changed",i),this.graph.trigger("selection:changed",i)}deleteSelectedCells(){const e=this.collection.toArray();this.clean(),this.graph.model.removeCells(e,{selection:this.cid})}startRotate({e:e}){const t=this.collection.toArray(),n=XT.getCellsBBox(t).getCenter(),i=this.graph.snapToGrid(e.clientX,e.clientY),r=t.reduce((e,t)=>{return e[t.id]=my.normalize(t.getAngle()),e},{});this.setEventData(e,{center:n,angles:r,start:i.theta(n)})}doRotate({e:e}){const t=this.getEventData(e),n=this.graph.options.rotating.grid,i="function"===typeof n?s.call(n,this.graph,null):n,r=this.graph.snapToGrid(e.clientX,e.clientY),o=t.start-r.theta(t.center);t.rotated||(t.rotated=!0),Math.abs(o)>.001&&(this.collection.toArray().forEach(e=>{const n=yC.snapToGrid(t.angles[e.id]+o,i||15);e.rotate(n,{absolute:!0,center:t.center,selection:this.cid})}),this.updateSelectionBoxes())}stopRotate({e:e}){const t=this.getEventData(e);t.rotated&&(t.rotated=!1,this.collection.toArray().forEach(t=>{cO("node:rotated",e,this.graph.findViewByCell(t))}))}startResize({e:e}){const t=this.graph.getGridSize(),n=this.collection.toArray(),i=XT.getCellsBBox(n),r=n.map(e=>e.getBBox()),o=r.reduce((e,t)=>{return t.width{return t.height.001||Math.abs(a-l)>.001)&&(this.graph.model.resizeCells(s,l,i.cells,{selection:this.cid}),r.width=s,r.height=l,this.updateSelectionBoxes())}stopResize({e:e}){const t=this.eventData(e);t.resized&&(t.resized=!1,this.collection.toArray().forEach(t=>{cO("node:resized",e,this.graph.findViewByCell(t))}))}dispose(){this.clean(),this.remove()}}hO([Ex.dispose()],pO.prototype,"dispose",null),r.applyMixins(pO,UA),function(e){const t="widget-selection";function n(e){return e.getAncestors().length}e.classNames={root:t,inner:`${t}-inner`,box:`${t}-box`,content:`${t}-content`,rubberband:`${t}-rubberband`,selected:`${t}-selected`},e.documentEvents={mousemove:"adjustSelection",touchmove:"adjustSelection",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"},e.defaultOptions={movable:!0,following:!0,strict:!1,useCellGeometry:!1,content(e){return o.template('<%= length %> node<%= length > 1 ? "s":"" %> selected.')({length:e.length})},handles:[{name:"remove",position:"nw",events:{mousedown:"deleteSelectedCells"}},{name:"rotate",position:"sw",events:{mousedown:"startRotate",mousemove:"doRotate",mouseup:"stopRotate"}},{name:"resize",position:"se",events:{mousedown:"startResize",mousemove:"doResize",mouseup:"stopResize"}}]},e.depthComparator=n}(uO||(uO={}));class fO extends WA{get node(){return this.cell}get containerClassName(){return this.prefixClassName("widget-transform")}get resizeClassName(){return`${this.containerClassName}-resize`}get rotateClassName(){return`${this.containerClassName}-rotate`}init(e){this.options=Object.assign(Object.assign({},dO.defaultOptions),e),this.render(),this.startListening()}startListening(){this.delegateEvents({[`mousedown .${this.resizeClassName}`]:"startResizing",[`touchstart .${this.resizeClassName}`]:"startResizing",[`mousedown .${this.rotateClassName}`]:"startRotating",[`touchstart .${this.rotateClassName}`]:"startRotating"}),this.model.on("*",this.update,this),this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this),this.node.on("removed",this.remove,this),this.model.on("reseted",this.remove,this),this.view.on("cell:knob:mousedown",this.onKnobMouseDown,this),this.view.on("cell:knob:mouseup",this.onKnobMouseUp,this),super.startListening()}stopListening(){this.undelegateEvents(),this.model.off("*",this.update,this),this.graph.off("scale",this.update,this),this.graph.off("translate",this.update,this),this.node.off("removed",this.remove,this),this.model.off("reseted",this.remove,this),this.view.off("cell:knob:mousedown",this.onKnobMouseDown,this),this.view.off("cell:knob:mouseup",this.onKnobMouseUp,this),super.stopListening()}renderHandles(){this.container=document.createElement("div"),this.$container=this.$(this.container);const e=this.$("
").prop("draggable",!1),t=e.clone().addClass(this.rotateClassName),n=dO.POSITIONS.map(t=>{return e.clone().addClass(this.resizeClassName).attr("data-position",t)});this.empty(),this.$container.append(n,t)}render(){return this.renderHandles(),this.view.addClass(dO.NODE_CLS),this.$container.addClass(this.containerClassName).toggleClass("no-orth-resize",this.options.preserveAspectRatio||!this.options.orthogonalResizing).toggleClass("no-resize",!this.options.resizable).toggleClass("no-rotate",!this.options.rotatable),this.options.className&&this.$container.addClass(this.options.className),this.graph.container.appendChild(this.container),this.update()}update(){const e=this.graph.matrix(),t=this.node.getBBox();t.x*=e.a,t.x+=e.e,t.y*=e.d,t.y+=e.f,t.width*=e.a,t.height*=e.d;const n=my.normalize(this.node.getAngle()),i=0!==n?`rotate(${n}deg)`:"";return this.$container.css({transform:i,width:t.width,height:t.height,left:t.x,top:t.y}),this.updateResizerDirections(),this}remove(){return this.view.removeClass(dO.NODE_CLS),super.remove()}onKnobMouseDown(){this.startHandle()}onKnobMouseUp(){this.stopHandle()}updateResizerDirections(){const e=my.normalize(this.node.getAngle()),t=Math.floor(e*(dO.DIRECTIONS.length/360));if(t!==this.prevShift){const e=dO.DIRECTIONS.slice(t).concat(dO.DIRECTIONS.slice(0,t)),n=e=>`${this.containerClassName}-cursor-${e}`;this.$container.find(`.${this.resizeClassName}`).removeClass(dO.DIRECTIONS.map(e=>n(e)).join(" ")).each((t,i)=>{this.$(i).addClass(n(e[t]))}),this.prevShift=t}}getTrueDirection(e){const t=my.normalize(this.node.getAngle());let n=dO.POSITIONS.indexOf(e);return n+=Math.floor(t*(dO.POSITIONS.length/360)),n%=dO.POSITIONS.length,dO.POSITIONS[n]}toValidResizeDirection(e){return{top:"top-left",bottom:"bottom-right",left:"bottom-left",right:"top-right"}[e]||e}startResizing(e){e.stopPropagation(),this.model.startBatch("resize",{cid:this.cid});const t=this.$(e.target).attr("data-position"),n=this.graph.findViewByCell(this.node);this.prepareResizing(e,t),this.startAction(e),cO("node:resize:mousedown",e,n)}prepareResizing(e,t){const n=this.getTrueDirection(t);let i=0,r=0;t.split("-").forEach(e=>{i={left:-1,right:1}[e]||i,r={top:-1,bottom:1}[e]||r});const o=this.toValidResizeDirection(t),a={"top-right":"bottomLeft","top-left":"bottomRight","bottom-left":"topRight","bottom-right":"topLeft"}[o],s=my.normalize(this.node.getAngle());this.setEventData(e,{selector:a,direction:o,trueDirection:n,relativeDirection:t,angle:s,resizeX:i,resizeY:r,action:"resizing"})}startRotating(e){e.stopPropagation(),this.model.startBatch("rotate",{cid:this.cid});const t=this.graph.findViewByCell(this.node),n=this.node.getBBox().getCenter(),i=this.graph.snapToGrid(e.clientX,e.clientY);this.setEventData(e,{center:n,action:"rotating",angle:my.normalize(this.node.getAngle()),start:xy.create(i).theta(n)}),this.startAction(e),cO("node:rotate:mousedown",e,t)}onMouseMove(e){const t=this.graph.findViewByCell(this.node);let n=this.getEventData(e);if(n.action){const i=this.normalizeEvent(e);let r=i.clientX,o=i.clientY;const s=this.graph.scroller.widget,l=this.options.restrictedResizing;if(!0===l||"number"===typeof l){const e=!0===l?0:l,t=s?Math.max(e,8):e,n=this.graph.container.getBoundingClientRect();r=a.clamp(r,n.left+t,n.right-t),o=a.clamp(o,n.top+t,n.bottom-t)}else this.options.autoScrollOnResizing&&s&&s.autoScroll(r,o);const c=this.graph.snapToGrid(r,o),u=this.graph.getGridSize(),d=this.node,h=this.options;if("resizing"===n.action){n=n,n.resized||(t&&(t.addClass("node-resizing"),cO("node:resize",e,t)),n.resized=!0);const i=d.getBBox(),r=xy.create(c).rotate(n.angle,i.getCenter()).diff(i[n.selector]);let o=n.resizeX?r.x*n.resizeX:i.width,a=n.resizeY?r.y*n.resizeY:i.height;const s=o,l=a;if(o=yC.snapToGrid(o,u),a=yC.snapToGrid(a,u),o=Math.max(o,h.minWidth||u),a=Math.max(a,h.minHeight||u),o=Math.min(o,h.maxWidth||1/0),a=Math.min(a,h.maxHeight||1/0),h.preserveAspectRatio){const e=i.width*a/i.height,t=i.height*o/i.width;o{const o=n[r];i[r]="function"===typeof o?o.call(e,t):o}),i}e.parseOptionGroup=t})(gO||(gO={})),function(e){function t(t){const{grid:n,panning:i,selecting:o,embedding:a,snapline:s,resizing:l,rotating:c,knob:u,clipboard:d,history:h,scroller:p,minimap:f,keyboard:g,mousewheel:m}=t,v=mO(t,["grid","panning","selecting","embedding","snapline","resizing","rotating","knob","clipboard","history","scroller","minimap","keyboard","mousewheel"]),_=t.container;if(null==_)throw new Error("Ensure the container of the graph is specified and valid");null==v.width&&(v.width=_.clientWidth),null==v.height&&(v.height=_.clientHeight);const y=r.merge({},e.defaults,v),b={size:10,visible:!1};y.grid="number"===typeof n?{size:n,visible:!1}:"boolean"===typeof n?Object.assign(Object.assign({},b),{visible:n}):Object.assign(Object.assign({},b),n);const S=["panning","selecting","embedding","snapline","resizing","rotating","knob","clipboard","history","scroller","minimap","keyboard","mousewheel"];return S.forEach(e=>{const n=t[e];"boolean"===typeof n?y[e].enabled=n:y[e]=Object.assign(Object.assign({},y[e]),n)}),y.background&&y.scroller.enabled&&null==y.scroller.background&&(y.scroller.background=y.background,delete y.background),y}e.get=t}(gO||(gO={})),function(e){e.defaults={x:0,y:0,grid:{size:10,visible:!1},scaling:{min:.01,max:16},background:!1,highlighting:{default:{name:"stroke",args:{padding:3}},nodeAvailable:{name:"className",args:{className:yC.prefix("available-node")}},magnetAvailable:{name:"className",args:{className:yC.prefix("available-magnet")}}},connecting:{snap:!1,multi:!0,dangling:!0,allowLoop:!0,allowNode:!0,allowEdge:!1,allowPort:!0,highlight:!1,anchor:"center",edgeAnchor:"ratio",connectionPoint:"boundary",strategy:null,router:"normal",connector:"normal",validateConnection({type:e,sourceView:t,targetView:n}){const i="target"===e?n:t;return null!=i},createEdge(){return new RA}},transforming:{clearAll:!0,clearOnBlankMouseDown:!0},resizing:{enabled:!1,minWidth:0,minHeight:0,maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,orthogonal:!0,restricted:!1,autoScroll:!0,preserveAspectRatio:!1,allowReverse:!0},rotating:{enabled:!1,grid:15},translating:{restrict:!1},knob:{enabled:!1,clearAll:!0,clearOnBlankMouseDown:!0},embedding:{enabled:!1,findParent:"bbox",frontOnly:!0,validate:()=>!0},selecting:{enabled:!1,rubberband:!1,rubberNode:!0,rubberEdge:!1,pointerEvents:"auto",multiple:!0,movable:!0,strict:!1,useCellGeometry:!1,selectCellOnMoved:!1,selectNodeOnMoved:!1,selectEdgeOnMoved:!1,content:null,handles:null},panning:{enabled:!1,eventTypes:["leftMouseDown"]},snapline:{enabled:!1},clipboard:{enabled:!1},history:{enabled:!1},scroller:{enabled:!1},keyboard:{enabled:!1},mousewheel:{enabled:!1,factor:1.2,zoomAtMousePosition:!0},async:!1,frozen:!1,sorting:"exact",moveThreshold:0,clickThreshold:0,magnetThreshold:0,preventDefaultDblClick:!0,preventDefaultMouseDown:!1,preventDefaultContextMenu:!0,preventDefaultBlankAction:!0,interacting:{edgeLabelMovable:!1},guard:()=>!1}}(gO||(gO={}));var vO=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const t=null!=e.opacity&&Number.isFinite(e.opacity)?e.opacity:1;return``}),o=`<${n}>${r.join("")}`,a=Object.assign({id:t},e.attrs);Qy.create(o,a).appendTo(this.defs)}return t}marker(e){const{id:t,refX:n,refY:i,markerUnits:r,markerOrient:a,tagName:s,children:l}=e,u=vO(e,["id","refX","refY","markerUnits","markerOrient","tagName","children"]);let d=t;if(d||(d=`marker-${this.cid}-${o.hashcode(JSON.stringify(e))}`),!this.isDefined(d)){"path"!==s&&delete u.d;const e=Qy.create("marker",{refX:n,refY:i,id:d,overflow:"visible",orient:null!=a?a:"auto",markerUnits:r||"userSpaceOnUse"},l?l.map(e=>{var{tagName:t}=e,n=vO(e,["tagName"]);return Qy.create(`${t}`||"path",c.kebablizeAttrs(Object.assign(Object.assign({},u),n)))}):[Qy.create(s||"path",c.kebablizeAttrs(u))]);this.defs.appendChild(e.node)}return d}remove(e){const t=this.svg.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)}}var yO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},bO=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const a=`pattern_${o}`,s=n.a||1,l=n.d||1,{update:u,markup:d}=e,h=bO(e,["update","markup"]),p=Object.assign(Object.assign(Object.assign({},h),r[o]),{sx:s,sy:l,ox:n.e||0,oy:n.f||0,width:t*s,height:t*l});i.has(a)||i.add(a,Qy.create("pattern",{id:a,patternUnits:"userSpaceOnUse"},Qy.createVectors(d)).node);const f=i.get(a);"function"===typeof u&&u(f.childNodes[0],p);let g=p.ox%p.width;g<0&&(g+=p.width);let m=p.oy%p.height;m<0&&(m+=p.height),c.attr(f,{x:g,y:m,width:p.width,height:p.height})});const o=(new XMLSerializer).serializeToString(i.root),a=`url(data:image/svg+xml;base64,${btoa(o)})`;this.elem.style.backgroundImage=a}getInstance(){return this.instance||(this.instance=new ZE),this.instance}resolveGrid(e){if(!e)return[];const t=e.type;if(null==t)return[Object.assign(Object.assign({},ZE.presets.dot),e.args)];const n=ZE.registry.get(t);if(n){let t=e.args||[];return Array.isArray(t)||(t=[t]),Array.isArray(n)?n.map((e,n)=>Object.assign(Object.assign({},e),t[n])):[Object.assign(Object.assign({},n),t[0])]}return ZE.registry.onNotFound(t)}dispose(){this.stopListening(),this.clear()}}yO([MA.dispose()],SO.prototype,"dispose",null);class EO extends MA{getClientMatrix(){return c.createSVGMatrix(this.view.stage.getScreenCTM())}getClientOffset(){const e=this.view.svg.getBoundingClientRect();return new xy(e.left,e.top)}getPageOffset(){return this.getClientOffset().translate(window.scrollX,window.scrollY)}snapToGrid(e,t){const n="number"===typeof e?this.clientToLocalPoint(e,t):this.clientToLocalPoint(e.x,e.y);return n.snapToGrid(this.graph.getGridSize())}localToGraphPoint(e,t){const n=xy.create(e,t);return c.transformPoint(n,this.graph.matrix())}localToClientPoint(e,t){const n=xy.create(e,t);return c.transformPoint(n,this.getClientMatrix())}localToPagePoint(e,t){const n="number"===typeof e?this.localToGraphPoint(e,t):this.localToGraphPoint(e);return n.translate(this.getPageOffset())}localToGraphRect(e,t,n,i){const r=wy.create(e,t,n,i);return c.transformRectangle(r,this.graph.matrix())}localToClientRect(e,t,n,i){const r=wy.create(e,t,n,i);return c.transformRectangle(r,this.getClientMatrix())}localToPageRect(e,t,n,i){const r="number"===typeof e?this.localToGraphRect(e,t,n,i):this.localToGraphRect(e);return r.translate(this.getPageOffset())}graphToLocalPoint(e,t){const n=xy.create(e,t);return c.transformPoint(n,this.graph.matrix().inverse())}clientToLocalPoint(e,t){const n=xy.create(e,t);return c.transformPoint(n,this.getClientMatrix().inverse())}clientToGraphPoint(e,t){const n=xy.create(e,t);return c.transformPoint(n,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalPoint(e,t){const n=xy.create(e,t),i=n.diff(this.getPageOffset());return this.graphToLocalPoint(i)}graphToLocalRect(e,t,n,i){const r=wy.create(e,t,n,i);return c.transformRectangle(r,this.graph.matrix().inverse())}clientToLocalRect(e,t,n,i){const r=wy.create(e,t,n,i);return c.transformRectangle(r,this.getClientMatrix().inverse())}clientToGraphRect(e,t,n,i){const r=wy.create(e,t,n,i);return c.transformRectangle(r,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalRect(e,t,n,i){const r=wy.create(e,t,n,i),o=this.getPageOffset();return r.x-=o.x,r.y-=o.y,this.graphToLocalRect(r)}}var CO,xO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class wO extends MA{constructor(){super(...arguments),this.widget=this.graph.hook.createSnapline()}dispose(){this.widget.dispose()}}xO([MA.dispose()],wO.prototype,"dispose",null),function(e){function t(e){const t=[],n=[];return Array.isArray(e)?t.push(...e):e.split("|").forEach(e=>{-1===e.indexOf("&")?t.push(e):n.push(...e.split("&"))}),{or:t,and:n}}function n(e,n){if(null!=e&&null!=n){const i=t(e),r=t(n),o=i.or.sort(),a=r.or.sort(),s=i.and.sort(),l=r.and.sort(),c=(e,t)=>{return e.length===t.length&&(0===e.length||e.every((e,n)=>e===t[n]))};return c(o,a)&&c(s,l)}return null==e&&null==n}function i(e,n,i){if(null==n||Array.isArray(n)&&0===n.length)return!i||!0!==e.altKey&&!0!==e.ctrlKey&&!0!==e.metaKey&&!0!==e.shiftKey;const{or:r,and:o}=t(n),a=t=>{const n=`${t.toLowerCase()}Key`;return!0===e[n]};return r.some(e=>a(e))&&o.every(e=>a(e))}e.parse=t,e.equals=n,e.isMatch=i}(CO||(CO={}));var TO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class AO extends MA{get widgetOptions(){return this.options.scroller}get pannable(){return!!this.widgetOptions&&("object"===typeof this.widgetOptions.pannable?this.widgetOptions.pannable.enabled:!!this.widgetOptions.pannable)}init(){this.widget=this.graph.hook.createScroller(),this.startListening(),this.updateClassName(),this.widget&&this.widget.center()}startListening(){let e=[];const t=this.widgetOptions.pannable;e="object"===typeof t?t.eventTypes||[]:["leftMouseDown"],e.includes("leftMouseDown")&&(this.graph.on("blank:mousedown",this.preparePanning,this),this.graph.on("node:unhandled:mousedown",this.preparePanning,this),this.graph.on("edge:unhandled:mousedown",this.preparePanning,this)),e.includes("rightMouseDown")&&(this.onRightMouseDown=this.onRightMouseDown.bind(this),this.view.$(this.graph.container).on("mousedown",this.onRightMouseDown))}stopListening(){let e=[];const t=this.widgetOptions.pannable;e="object"===typeof t?t.eventTypes||[]:["leftMouseDown"],e.includes("leftMouseDown")&&(this.graph.off("blank:mousedown",this.preparePanning,this),this.graph.off("node:unhandled:mousedown",this.preparePanning,this),this.graph.off("edge:unhandled:mousedown",this.preparePanning,this)),e.includes("rightMouseDown")&&this.view.$(this.graph.container).off("mousedown",this.onRightMouseDown)}onRightMouseDown(e){2===e.button&&this.allowPanning(e,!0)&&this.widget&&(this.updateClassName(!0),this.widget.startPanning(e),this.widget.once("pan:stop",()=>this.updateClassName(!1)))}preparePanning({e:e}){this.widget&&(this.allowPanning(e,!0)||this.allowPanning(e)&&!this.graph.selection.allowRubberband(e,!0))&&(this.updateClassName(!0),this.widget.startPanning(e),this.widget.once("pan:stop",()=>this.updateClassName(!1)))}allowPanning(e,t){return this.widget&&this.pannable&&CO.isMatch(e,this.widgetOptions.modifiers,t)&&this.graph.hook.allowPanning(e)}updateClassName(e){if(null==this.widget)return;const t=this.widget.container,n=this.view.prefixClassName("graph-scroller-pannable");this.pannable?(c.addClass(t,n),t.dataset.panning=(!!e).toString()):c.removeClass(t,n)}enablePanning(){this.pannable||(this.widgetOptions.pannable=!0,this.updateClassName())}disablePanning(){this.pannable&&(this.widgetOptions.pannable=!1,this.updateClassName())}lock(){this.widget&&this.widget.lock()}unlock(){this.widget&&this.widget.unlock()}update(){this.widget&&this.widget.update()}enableAutoResize(){this.widget&&this.widget.enableAutoResize()}disableAutoResize(){this.widget&&this.widget.disableAutoResize()}resize(e,t){this.widget&&this.widget.resize(e,t)}dispose(){this.widget&&this.widget.dispose(),this.stopListening()}}TO([MA.dispose()],AO.prototype,"dispose",null);var OO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},RO=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class IO extends MA{constructor(){super(...arguments),this.highlights={}}init(){this.startListening()}startListening(){this.graph.on("cell:highlight",this.onCellHighlight,this),this.graph.on("cell:unhighlight",this.onCellUnhighlight,this)}stopListening(){this.graph.off("cell:highlight",this.onCellHighlight,this),this.graph.off("cell:unhighlight",this.onCellUnhighlight,this)}onCellHighlight({view:e,magnet:t,options:n={}}){const i=this.resolveHighlighter(n);if(!i)return;const r=this.getHighlighterId(t,i);if(!this.highlights[r]){const n=i.highlighter;n.highlight(e,t,Object.assign({},i.args)),this.highlights[r]={cellView:e,magnet:t,highlighter:n,args:i.args}}}onCellUnhighlight({magnet:e,options:t={}}){const n=this.resolveHighlighter(t);if(!n)return;const i=this.getHighlighterId(e,n);this.unhighlight(i)}resolveHighlighter(e){const t=this.options;let n=e.highlighter;if(null==n){const i=e.type;n=i&&t.highlighting[i]||t.highlighting.default}if(null==n)return null;const i="string"===typeof n?{name:n}:n,r=i.name,o=OC.registry.get(r);return null==o?OC.registry.onNotFound(r):(OC.check(r,o),{name:r,highlighter:o,args:i.args||{}})}getHighlighterId(e,t){return c.ensureId(e),t.name+e.id+JSON.stringify(t.args)}unhighlight(e){const t=this.highlights[e];t&&(t.highlighter.unhighlight(t.cellView,t.magnet,t.args),delete this.highlights[e])}dispose(){Object.keys(this.highlights).forEach(e=>this.unhighlight(e)),this.stopListening()}}DO([IO.dispose()],IO.prototype,"dispose",null);var MO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class kO extends MA{constructor(){super(...arguments),this.widgets=new Map}get container(){return this.graph.view.container}get viewport(){return this.graph.view.viewport}get isSelectionEnabled(){return!0===this.options.selecting.enabled}init(){this.startListening(),this.resize()}startListening(){this.graph.on("node:mouseup",this.onNodeMouseUp,this),this.graph.on("node:selected",this.onNodeSelected,this),this.graph.on("node:unselected",this.onNodeUnSelected,this)}stopListening(){this.graph.off("node:mouseup",this.onNodeMouseUp,this),this.graph.off("node:selected",this.onNodeSelected,this),this.graph.off("node:unselected",this.onNodeUnSelected,this)}onNodeMouseUp({node:e}){if(!this.isSelectionEnabled){const t=this.graph.hook.createTransform(e,{clearAll:!0});t&&this.widgets.set(e,t)}}onNodeSelected({node:e}){if(this.isSelectionEnabled){const t=this.graph.hook.createTransform(e,{clearAll:!1});t&&this.widgets.set(e,t)}}onNodeUnSelected({node:e}){if(this.isSelectionEnabled){const t=this.widgets.get(e);t&&t.dispose(),this.widgets.delete(e)}}getMatrix(){const e=this.viewport.getAttribute("transform");return e!==this.viewportTransformString&&(this.viewportMatrix=this.viewport.getCTM(),this.viewportTransformString=e),c.createSVGMatrix(this.viewportMatrix)}setMatrix(e){const t=c.createSVGMatrix(e),n=c.matrixToTransformString(t);this.viewport.setAttribute("transform",n),this.viewportMatrix=t,this.viewportTransformString=n}resize(e,t){let n=void 0===e?this.options.width:e,i=void 0===t?this.options.height:t;this.options.width=n,this.options.height=i,"number"===typeof n&&(n=Math.round(n)),"number"===typeof i&&(i=Math.round(i)),this.container.style.width=null==n?"":`${n}px`,this.container.style.height=null==i?"":`${i}px`;const r=this.getComputedSize();return this.graph.trigger("resize",Object.assign({},r)),this}getComputedSize(){let e=this.options.width,t=this.options.height;return a.isNumber(e)||(e=this.container.clientWidth),a.isNumber(t)||(t=this.container.clientHeight),{width:e,height:t}}getScale(){return c.matrixToScale(this.getMatrix())}scale(e,t=e,n=0,i=0){if(e=this.clampScale(e),t=this.clampScale(t),n||i){const r=this.getTranslation(),o=r.tx-n*(e-1),a=r.ty-i*(t-1);o===r.tx&&a===r.ty||this.translate(o,a)}const r=this.getMatrix();return r.a=e,r.d=t,this.setMatrix(r),this.graph.trigger("scale",{sx:e,sy:t,ox:n,oy:i}),this}clampScale(e){const t=this.graph.options.scaling;return a.clamp(e,t.min||.01,t.max||16)}getZoom(){return this.getScale().sx}zoom(e,t){t=t||{};let n=e,i=e;const r=this.getScale(),o=this.getComputedSize();let a=o.width/2,s=o.height/2;if(t.absolute||(n+=r.sx,i+=r.sy),t.scaleGrid&&(n=Math.round(n/t.scaleGrid)*t.scaleGrid,i=Math.round(i/t.scaleGrid)*t.scaleGrid),t.maxScale&&(n=Math.min(t.maxScale,n),i=Math.min(t.maxScale,i)),t.minScale&&(n=Math.max(t.minScale,n),i=Math.max(t.minScale,i)),t.center&&(a=t.center.x,s=t.center.y),n=this.clampScale(n),i=this.clampScale(i),a||s){const e=this.getTranslation(),t=a-(a-e.tx)*(n/r.sx),o=s-(s-e.ty)*(i/r.sy);t===e.tx&&o===e.ty||this.translate(t,o)}return this.scale(n,i),this}getRotation(){return c.matrixToRotation(this.getMatrix())}rotate(e,t,n){if(null==t||null==n){const e=c.getBBox(this.graph.view.stage);t=e.width/2,n=e.height/2}const i=this.getMatrix().translate(t,n).rotate(e).translate(-t,-n);return this.setMatrix(i),this}getTranslation(){return c.matrixToTranslation(this.getMatrix())}translate(e,t){const n=this.getMatrix();n.e=e||0,n.f=t||0,this.setMatrix(n);const i=this.getTranslation();return this.options.x=i.tx,this.options.y=i.ty,this.graph.trigger("translate",Object.assign({},i)),this}setOrigin(e,t){return this.translate(e||0,t||0)}fitToContent(e,t,n,i){if("object"===typeof e){const r=e;e=r.gridWidth||1,t=r.gridHeight||1,n=r.padding||0,i=r}else e=e||1,t=t||1,n=n||0,null==i&&(i={});const r=a.normalizeSides(n),o=i.border||0,s=i.contentArea?wy.create(i.contentArea):this.getContentArea(i);o>0&&s.inflate(o);const l=this.getScale(),c=this.getTranslation(),u=l.sx,d=l.sy;s.x*=u,s.y*=d,s.width*=u,s.height*=d;let h=Math.max(Math.ceil((s.width+s.x)/e),1)*e,p=Math.max(Math.ceil((s.height+s.y)/t),1)*t,f=0,g=0;("negative"===i.allowNewOrigin&&s.x<0||"positive"===i.allowNewOrigin&&s.x>=0||"any"===i.allowNewOrigin)&&(f=Math.ceil(-s.x/e)*e,f+=r.left,h+=f),("negative"===i.allowNewOrigin&&s.y<0||"positive"===i.allowNewOrigin&&s.y>=0||"any"===i.allowNewOrigin)&&(g=Math.ceil(-s.y/t)*t,g+=r.top,p+=g),h+=r.right,p+=r.bottom,h=Math.max(h,i.minWidth||0),p=Math.max(p,i.minHeight||0),h=Math.min(h,i.maxWidth||Number.MAX_SAFE_INTEGER),p=Math.min(p,i.maxHeight||Number.MAX_SAFE_INTEGER);const m=this.getComputedSize(),v=h!==m.width||p!==m.height,_=f!==c.tx||g!==c.ty;return _&&this.translate(f,g),v&&this.resize(h,p),new wy(-f/u,-g/d,h/u,p/d)}scaleContentToFit(e={}){this.scaleContentToFitImpl(e)}scaleContentToFitImpl(e={},t=!0){let n,i;if(e.contentArea){const t=e.contentArea;n=this.graph.localToGraph(t),i=xy.create(t)}else n=this.getContentBBox(e),i=this.graph.graphToLocal(n);if(!n.width||!n.height)return;const r=a.normalizeSides(e.padding),o=e.minScale||0,s=e.maxScale||Number.MAX_SAFE_INTEGER,l=e.minScaleX||o,c=e.maxScaleX||s,u=e.minScaleY||o,d=e.maxScaleY||s;let h;if(e.viewportArea)h=e.viewportArea;else{const e=this.getComputedSize(),t=this.getTranslation();h={x:t.tx,y:t.ty,width:e.width,height:e.height}}h=wy.create(h).moveAndExpand({x:r.left,y:r.top,width:-r.left-r.right,height:-r.top-r.bottom});const p=this.getScale();let f=h.width/n.width*p.sx,g=h.height/n.height*p.sy;!1!==e.preserveAspectRatio&&(f=g=Math.min(f,g));const m=e.scaleGrid;if(m&&(f=m*Math.floor(f/m),g=m*Math.floor(g/m)),f=a.clamp(f,l,c),g=a.clamp(g,u,d),this.scale(f,g),t){const e=this.options,t=h.x-i.x*f-e.x,n=h.y-i.y*g-e.y;this.translate(t,n)}}getContentArea(e={}){return e.useCellGeometry?this.model.getAllCellsBBox()||new wy:c.getBBox(this.graph.view.stage)}getContentBBox(e={}){return this.graph.localToGraph(this.getContentArea(e))}getGraphArea(){const e=wy.fromSize(this.getComputedSize());return this.graph.graphToLocal(e)}zoomToRect(e,t={}){const n=wy.create(e),i=this.graph;t.contentArea=n,null==t.viewportArea&&(t.viewportArea={x:i.options.x,y:i.options.y,width:this.options.width,height:this.options.height}),this.scaleContentToFitImpl(t,!1);const r=n.getCenter();return this.centerPoint(r.x,r.y),this}zoomToFit(e={}){return this.zoomToRect(this.getContentArea(e),e)}centerPoint(e,t){const n=this.getComputedSize(),i=this.getScale(),r=this.getTranslation(),o=n.width/2,a=n.height/2;e="number"===typeof e?e:o,t="number"===typeof t?t:a,e=o-e*i.sx,t=a-t*i.sy,r.tx===e&&r.ty===t||this.translate(e,t)}centerContent(e){const t=this.graph.getContentArea(e),n=t.getCenter();this.centerPoint(n.x,n.y)}centerCell(e){return this.positionCell(e,"center")}positionPoint(e,t,n){const i=this.getComputedSize();t=a.normalizePercentage(t,Math.max(0,i.width)),t<0&&(t=i.width+t),n=a.normalizePercentage(n,Math.max(0,i.height)),n<0&&(n=i.height+n);const r=this.getTranslation(),o=this.getScale(),s=t-e.x*o.sx,l=n-e.y*o.sy;r.tx===s&&r.ty===l||this.translate(s,l)}positionRect(e,t){const n=wy.create(e);switch(t){case"center":return this.positionPoint(n.getCenter(),"50%","50%");case"top":return this.positionPoint(n.getTopCenter(),"50%",0);case"top-right":return this.positionPoint(n.getTopRight(),"100%",0);case"right":return this.positionPoint(n.getRightMiddle(),"100%","50%");case"bottom-right":return this.positionPoint(n.getBottomRight(),"100%","100%");case"bottom":return this.positionPoint(n.getBottomCenter(),"50%","100%");case"bottom-left":return this.positionPoint(n.getBottomLeft(),0,"100%");case"left":return this.positionPoint(n.getLeftMiddle(),0,"50%");case"top-left":return this.positionPoint(n.getTopLeft(),0,0);default:return this}}positionCell(e,t){const n=e.getBBox();return this.positionRect(n,t)}positionContent(e,t){const n=this.graph.getContentArea(t);return this.positionRect(n,e)}dispose(){this.widgets.forEach(e=>e.dispose()),this.widgets.clear(),this.stopListening()}}MO([kO.dispose()],kO.prototype,"dispose",null);var LO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class PO extends MA{constructor(){super(...arguments),this.movedMap=new WeakMap,this.unselectMap=new WeakMap}get widgetOptions(){return this.options.selecting}get rubberbandDisabled(){return!0!==this.widgetOptions.enabled||!0!==this.widgetOptions.rubberband}get disabled(){return!0!==this.widgetOptions.enabled}get length(){return this.widget.length}get cells(){return this.widget.cells}init(){this.widget=this.graph.hook.createSelection(),this.startListening()}startListening(){this.graph.on("blank:mousedown",this.onBlankMouseDown,this),this.graph.on("blank:click",this.onBlankClick,this),this.graph.on("cell:mousemove",this.onCellMouseMove,this),this.graph.on("cell:mouseup",this.onCellMouseUp,this),this.widget.on("box:mousedown",this.onBoxMouseDown,this)}stopListening(){this.graph.off("blank:mousedown",this.onBlankMouseDown,this),this.graph.off("blank:click",this.onBlankClick,this),this.graph.off("cell:mousemove",this.onCellMouseMove,this),this.graph.off("cell:mouseup",this.onCellMouseUp,this),this.widget.off("box:mousedown",this.onBoxMouseDown,this)}onBlankMouseDown({e:e}){(this.allowRubberband(e,!0)||this.allowRubberband(e)&&!this.graph.scroller.allowPanning(e,!0)&&!this.graph.panning.allowPanning(e,!0))&&this.startRubberband(e)}onBlankClick(){this.clean()}allowRubberband(e,t){return!this.rubberbandDisabled&&CO.isMatch(e,this.widgetOptions.modifiers,t)&&this.graph.hook.allowRubberband(e)}onCellMouseMove({cell:e}){this.movedMap.set(e,!0)}onCellMouseUp({e:e,cell:t}){const n=this.widgetOptions;let i=this.disabled;!i&&this.movedMap.has(t)&&(i=!1===n.selectCellOnMoved,i||(i=!1===n.selectNodeOnMoved&&t.isNode()),i||(i=!1===n.selectEdgeOnMoved&&t.isEdge())),i||(!1===n.multiple||!e.ctrlKey&&!e.metaKey?this.reset(t):this.unselectMap.has(t)?this.unselectMap.delete(t):this.isSelected(t)?this.unselect(t):this.select(t)),this.movedMap.delete(t)}onBoxMouseDown({e:e,cell:t}){this.disabled||!1!==this.widgetOptions.multiple&&(e.ctrlKey||e.metaKey)&&(this.unselect(t),this.unselectMap.set(t,!0))}isEmpty(){return this.length<=0}isSelected(e){return this.widget.isSelected(e)}getCells(e){return(Array.isArray(e)?e:[e]).map(e=>"string"===typeof e?this.graph.getCellById(e):e).filter(e=>null!=e)}select(e,t={}){const n=this.getCells(e);return n.length&&(this.isMultiple()?this.widget.select(n,t):this.reset(n.slice(0,1),t)),this}unselect(e,t={}){return this.widget.unselect(this.getCells(e),t),this}reset(e,t={}){return this.widget.reset(e?this.getCells(e):[],t),this}clean(){return this.widget.clean(),this}enable(){return this.disabled&&(this.widgetOptions.enabled=!0),this}disable(){return this.disabled||(this.widgetOptions.enabled=!1),this}startRubberband(e){return this.rubberbandDisabled||this.widget.startSelecting(e),this}enableRubberband(){return this.rubberbandDisabled&&(this.widgetOptions.rubberband=!0),this}disableRubberband(){return this.rubberbandDisabled||(this.widgetOptions.rubberband=!1),this}isMultiple(){return!1!==this.widgetOptions.multiple}enableMultiple(){return this.widgetOptions.multiple=!0,this}disableMultiple(){return this.widgetOptions.multiple=!1,this}setModifiers(e){return this.widgetOptions.modifiers=e,this}setContent(e){return this.widget.setContent(e),this}setFilter(e){return this.widget.setFilter(e),this}dispose(){this.stopListening(),this.widget.dispose()}}LO([MA.dispose()],PO.prototype,"dispose",null);var FO,BO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},$O=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r0}canRedo(){return!this.disabled&&this.redoStack.length>0}validate(e,...t){return this.validator.validate(e,...t),this}dispose(){this.validator.dispose(),this.clean(),this.stopListening()}startListening(){this.model.on("batch:start",this.initBatchCommand,this),this.model.on("batch:stop",this.storeBatchCommand,this),this.options.eventNames&&this.options.eventNames.forEach((e,t)=>{this.handlers[t]=this.addCommand.bind(this,e),this.model.on(e,this.handlers[t])}),this.validator.on("invalid",e=>this.trigger("invalid",e))}stopListening(){this.model.off("batch:start",this.initBatchCommand,this),this.model.off("batch:stop",this.storeBatchCommand,this),this.options.eventNames&&(this.options.eventNames.forEach((e,t)=>{this.model.off(e,this.handlers[t])}),this.handlers.length=0),this.validator.off("invalid")}createCommand(e){return{batch:!!e&&e.batch,data:{}}}revertCommand(e,t){this.freezed=!0;const n=Array.isArray(e)?FO.sortBatchCommands(e):[e];for(let i=n.length-1;i>=0;i-=1){const e=n[i],o=Object.assign(Object.assign({},t),r.pick(e.options,this.options.revertOptionsList||[]));this.executeCommand(e,!0,o)}this.freezed=!1}applyCommand(e,t){this.freezed=!0;const n=Array.isArray(e)?FO.sortBatchCommands(e):[e];for(let i=0;i=0&&(t||n)){const t=this.batchCommands.findIndex(t=>(l&&t.modelChange||t.data.id===a.id)&&t.event===e);t<0||FO.isAddEvent(e)||FO.isRemoveEvent(e)?c=this.createCommand({batch:!0}):(c=this.batchCommands[t],this.batchCommands.splice(t,1)),this.batchCommands.push(c),this.lastBatchIndex=this.batchCommands.length-1}}else c=this.createCommand({batch:!1});if(FO.isAddEvent(e)||FO.isRemoveEvent(e)){const t=c.data;return c.event=e,c.options=i,t.id=a.id,t.props=r.cloneDeep(a.toJSON()),a.isEdge()?t.edge=!0:a.isNode()&&(t.node=!0),this.push(c,i)}if(FO.isChangeEvent(e)){const n=t.key,o=c.data;return c.batch&&c.event||(c.event=e,c.options=i,o.key=n,null==o.prev&&(o.prev={}),o.prev[n]=r.clone(a.previous(n)),l?c.modelChange=!0:o.id=a.id),null==o.next&&(o.next={}),o.next[n]=r.clone(a.prop(n)),this.push(c,i)}const u=this.options.afterAddCommand;u&&s.call(u,this,e,t,c),this.push(c,i)}initBatchCommand(e){this.freezed||(this.batchCommands?this.batchLevel+=1:(this.batchCommands=[this.createCommand({batch:!0})],this.batchLevel=0,this.lastBatchIndex=-1))}storeBatchCommand(e){if(!this.freezed)if(this.batchCommands&&this.batchLevel<=0){const t=this.filterBatchCommand(this.batchCommands);t.length>0&&(this.redoStack=[],this.undoStack.push(t),this.notify("add",t,e)),this.batchCommands=null,this.lastBatchIndex=-1,this.batchLevel=0}else this.batchCommands&&this.batchLevel>0&&(this.batchLevel-=1)}filterBatchCommand(e){let t=e.slice();const n=[];while(t.length>0){const e=t.shift(),i=e.event,o=e.data.id;if(null!=i&&(null!=o||e.modelChange)){if(FO.isAddEvent(i)){const e=t.findIndex(e=>FO.isRemoveEvent(e.event)&&e.data.id===o);if(e>=0){t=t.filter((t,n)=>eFO.isAddEvent(e.event)&&e.data.id===o);if(e>=0){t.splice(e,1);continue}}else if(FO.isChangeEvent(i)){const t=e.data;if(r.isEqual(t.prev,t.next))continue}n.push(e)}}return n}notify(e,t,n){const i=null==t?null:Array.isArray(t)?t:[t];this.emit(e,{cmds:i,options:n}),this.emit("change",{cmds:i,options:n})}push(e,t){this.redoStack=[],e.batch?(this.lastBatchIndex=Math.max(this.lastBatchIndex,0),this.emit("batch",{cmd:e,options:t})):(this.undoStack.push(e),this.notify("add",e,t))}}BO([hx.dispose()],VO.prototype,"dispose",null),function(e){class t extends hx{constructor(e){super(),this.map={},this.command=e.history,this.cancelInvalid=!1!==e.cancelInvalid,this.command.on("add",this.onCommandAdded,this)}onCommandAdded({cmds:e}){return Array.isArray(e)?e.every(e=>this.isValidCommand(e)):this.isValidCommand(e)}isValidCommand(e){if(e.options&&!1===e.options.validation)return!0;const t=e.event&&this.map[e.event]||[];let n=null;return t.forEach(t=>{let i=0;const r=o=>{const a=t[i];i+=1;try{if(!a)return void(n=o);a(o,e,r)}catch(o){r(o)}};r(n)}),!n||(this.cancelInvalid&&this.command.cancel(),this.emit("invalid",{err:n}),!1)}validate(e,...t){const n=Array.isArray(e)?e:e.split(/\s+/);return t.forEach(e=>{if("function"!==typeof e)throw new Error(`${n.join(" ")} requires callback functions.`)}),n.forEach(e=>{null==this.map[e]&&(this.map[e]=[]),this.map[e].push(t)}),this}dispose(){this.command.off("add",this.onCommandAdded,this)}}BO([hx.dispose()],t.prototype,"dispose",null),e.Validator=t}(VO||(VO={})),function(e){function t(e){return"cell:added"===e}function n(e){return"cell:removed"===e}function i(e){return null!=e&&e.startsWith("cell:change:")}function r(t){const{graph:n}=t,i=$O(t,["graph"]),r=["cell:added","cell:removed","cell:change:*"],o=["batch:start","batch:stop"],a=t.eventNames?t.eventNames.filter(t=>!(e.isChangeEvent(t)||r.includes(t)||o.includes(t))):r;return Object.assign(Object.assign({},i),{eventNames:a,applyOptionsList:t.applyOptionsList||["propertyPath"],revertOptionsList:t.revertOptionsList||["propertyPath"]})}function o(t){const n=[];for(let i=0,r=t.length;i=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class UO extends MA{get widgetOptions(){return this.options.minimap}init(){this.widget=this.graph.hook.createMiniMap()}dispose(){this.widget&&this.widget.dispose()}}GO([MA.dispose()],UO.prototype,"dispose",null);var zO=n("8a60"),jO=n.n(zO),HO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class WO extends ux{constructor(e){super(),this.options=e;const t=this.graph.scroller.widget;this.container=t?t.container:this.graph.container,e.global?this.target=document:(this.target=this.container,this.disabled||this.target.setAttribute("tabindex","-1"),this.graph.on("cell:mouseup",this.focus,this),this.graph.on("blank:mouseup",this.focus,this)),this.mousetrap=WO.createMousetrap(this)}get graph(){return this.options.graph}get disabled(){return!0!==this.options.enabled}enable(){this.disabled&&(this.options.enabled=!0,this.graph.options.keyboard.enabled=!0,this.target instanceof HTMLElement&&this.target.setAttribute("tabindex","-1"))}disable(){this.disabled||(this.options.enabled=!1,this.graph.options.keyboard.enabled=!1,this.target instanceof HTMLElement&&this.target.removeAttribute("tabindex"))}on(e,t,n){this.mousetrap.bind(this.getKeys(e),t,n)}off(e,t){this.mousetrap.unbind(this.getKeys(e),t)}focus(){const e=this.target;e.focus({preventScroll:!0})}getKeys(e){return(Array.isArray(e)?e:[e]).map(e=>this.formatkey(e))}formatkey(e){const t=e.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command"),n=this.options.format;return n?s.call(n,this.graph,t):t}isGraphEvent(e){const t=e.srcElement||e.target;return!!t&&(t===this.target||t===document.body||c.contains(this.container,t))}isEnabledForEvent(e){const t=!this.disabled&&this.isGraphEvent(e);if(t){const t=e.target,n=t&&t.tagName.toLowerCase(),i=e.keyCode||e.which;if("input"===n&&(8===i||46===i))return!1;if(this.options.guard)return s.call(this.options.guard,this.graph,e)}return t}dispose(){this.mousetrap.reset()}}HO([ux.dispose()],WO.prototype,"dispose",null),function(e){function t(e){const t=new jO.a(e.target),n=t.stopCallback;return t.stopCallback=(i,r,o)=>{return!e.isEnabledForEvent(i)||!!n&&n.call(t,i,r,o)},t}e.createMousetrap=t}(WO||(WO={}));var YO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class qO extends ux{constructor(e){super(),this.options=e,this.cumulatedFactor=1;const t=this.graph.scroller.widget;this.container=t?t.container:this.graph.container,this.target=this.options.global?document:this.container,this.mousewheelHandle=new c.MouseWheelHandle(this.target,this.onMouseWheel.bind(this),this.allowMouseWheel.bind(this)),this.options.enabled&&this.enable(!0)}get graph(){return this.options.graph}get disabled(){return!0!==this.options.enabled}enable(e){(this.disabled||e)&&(this.options.enabled=!0,this.graph.options.mousewheel.enabled=!0,this.mousewheelHandle.enable())}disable(){this.disabled||(this.options.enabled=!1,this.graph.options.mousewheel.enabled=!1,this.mousewheelHandle.disable())}allowMouseWheel(e){const t=e.originalEvent||e,n=this.options.guard;return(null==n||n.call(this.graph,t))&&CO.isMatch(t,this.options.modifiers)}onMouseWheel(e){const t=e.originalEvent||e,n=this.options.guard;if((null==n||n.call(this.graph,t))&&CO.isMatch(t,this.options.modifiers)){const t=this.options.factor||1.2;null==this.currentScale&&(this.startPos={x:e.clientX,y:e.clientY},this.currentScale=this.graph.scroller.widget?this.graph.scroller.widget.zoom():this.graph.transform.getScale().sx);const n=e.deltaY;n<0?this.currentScale<.15?this.cumulatedFactor=(this.currentScale+.01)/this.currentScale:this.cumulatedFactor=Math.round(this.currentScale*t*20)/20/this.currentScale:this.currentScale<=.15?this.cumulatedFactor=(this.currentScale-.01)/this.currentScale:this.cumulatedFactor=Math.round(this.currentScale*(1/t)*20)/20/this.currentScale,this.cumulatedFactor=Math.max(.01,Math.min(this.currentScale*this.cumulatedFactor,160)/this.currentScale);const i=this.graph.scroller.widget,r=this.currentScale;let o=this.graph.transform.clampScale(r*this.cumulatedFactor);const s=this.options.minScale||Number.MIN_SAFE_INTEGER,l=this.options.maxScale||Number.MAX_SAFE_INTEGER;if(o=a.clamp(o,s,l),o!==r)if(i)if(this.options.zoomAtMousePosition){const e=this.graph.coord.clientToLocalPoint(this.startPos);i.zoom(o,{absolute:!0,center:e.clone()})}else i.zoom(o,{absolute:!0});else if(this.options.zoomAtMousePosition){const e=this.graph.coord.clientToGraphPoint(this.startPos);this.graph.zoom(o,{absolute:!0,center:e.clone()})}else this.graph.zoom(o,{absolute:!0});this.currentScale=null,this.cumulatedFactor=1}}dispose(){this.disable()}}YO([ux.dispose()],qO.prototype,"dispose",null);var KO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class QO extends MA{show(e={}){const t=Object.assign(Object.assign({},QO.defaultOptions),e),n=this.createPrintPages(t);t.ready(n,e=>this.showPrintWindow(e,t),{sheetSize:this.getSheetSize(t)})}get className(){return this.view.prefixClassName("graph-print")}showPrintWindow(e,t){if(e){const n=T()(document.body),i=T()(this.view.container),r=this.view.prefixClassName("graph-printing");n.addClass(r);const o=i.children().detach();e.forEach(e=>{e.removeClass(`${this.className}-preview`).addClass(`${this.className}-ready`).appendTo(n)});let a=!1;const s=()=>{a||(a=!0,n.removeClass(r),e.forEach(e=>e.remove()),i.append(o),T()(`#${this.styleSheetId}`).remove(),this.graph.trigger("after:print",t),T()(window).off("afterprint",s))};T()(window).one("afterprint",s),setTimeout(s,200),window.print()}}createPrintPage(e,t){this.graph.trigger("before:print",t);const n=T()("
").addClass(this.className),i=T()("
").addClass(this.view.prefixClassName("graph-print-inner")).css("position","relative");t.size&&n.addClass(`${this.className}-size-${t.size}`);const r=Qy.create(this.view.svg).clone(),o=r.findOne(`.${this.view.prefixClassName("graph-svg-stage")}`);i.append(r.node);const a=this.getSheetSize(t),s=this.graph.transform.getGraphArea(),l=this.graph.transform.getScale(),u=this.graph.translate(),d=c.createSVGMatrix().translate(u.tx/l.sx,u.ty/l.sy),h=this.getPageInfo(s,e,a),p=h.scale,f=h.bbox;return i.css({left:0,top:0}),r.attr({width:f.width*p,height:f.height*p,style:"position:relative",viewBox:[f.x,f.y,f.width,f.height].join(" ")}),o.attr("transform",c.matrixToTransformString(d)),n.append(i),n.addClass(`${this.className}-preview`),{$page:n,sheetSize:a}}createPrintPages(e){let t;const n=this.getPrintArea(e),i=[];if(e.page){const r=this.getPageSize(n,e.page),o=this.getPageAreas(n,r);o.forEach(n=>{t=this.createPrintPage(n,e),i.push(t.$page)})}else t=this.createPrintPage(n,e),i.push(t.$page);if(t){const n={width:t.sheetSize.cssWidth,height:t.sheetSize.cssHeight};this.updatePrintStyle(n,e)}return i}get styleSheetId(){return this.view.prefixClassName("graph-print-style")}updatePrintStyle(e,t){const n=Object.keys(e).reduce((t,n)=>`${t} ${n}:${e[n]};`,""),i=a.normalizeSides(t.margin),r=t.marginUnit||"",o=t.sheetUnit||"",s=`\n @media print {\n .${this.className}.${this.className}-ready {\n ${n}\n }\n\n @page {\n margin:\n ${[i.top+r,i.right+r,i.bottom+r,i.left+r].join(" ")};\n size: ${t.sheet.width+o} ${t.sheet.height+o};\n\n .${this.className}.${this.className}-preview {\n ${n}\n }\n }`,l=this.styleSheetId,c=T()(`#${l}`);c.length?c.html(s):T()("head").append(`''`)}getPrintArea(e){let t=e.area;if(!t){const n=a.normalizeSides(e.padding);t=this.graph.getContentArea().moveAndExpand({x:-n.left,y:-n.top,width:n.left+n.right,height:n.top+n.bottom})}return t}getPageSize(e,t){if("object"===typeof t){const n=t,i={width:n.width,height:n.height};return null==i.width&&(i.width=Math.ceil(e.width/(n.columns||1))),null==i.height&&(i.height=Math.ceil(e.height/(n.rows||1))),i}return{width:e.width,height:e.height}}getPageAreas(e,t){const n=[],i=t.width,r=t.height;for(let o=0,a=0;ot(e)}}(QO||(QO={}));class XO extends MA{toSVG(e,t={}){this.graph.trigger("before:export",t);const n=this.view.svg,i=Qy.create(n).clone();let r=i.node;const o=i.findOne(`.${this.view.prefixClassName("graph-svg-stage")}`),a=t.viewBox||this.graph.graphToLocal(this.graph.getContentBBox()),l=t.preserveDimensions;if(l){const e="boolean"===typeof l?a:l;i.attr({width:e.width,height:e.height})}if(i.removeAttribute("style").attr("viewBox",[a.x,a.y,a.width,a.height].join(" ")),o.removeAttribute("transform"),!1!==t.copyStyles){const e=n.ownerDocument,t=Array.from(n.querySelectorAll("*")),i=Array.from(r.querySelectorAll("*")),o=e.styleSheets.length,a=[];for(let n=o-1;n>=0;n-=1)a[n]=e.styleSheets[n],e.styleSheets[n].disabled=!0;const s={};t.forEach((e,t)=>{const n=window.getComputedStyle(e,null),i={};Object.keys(n).forEach(e=>{i[e]=n.getPropertyValue(e)}),s[t]=i}),o!==e.styleSheets.length&&a.forEach((t,n)=>{e.styleSheets[n]=t});for(let n=0;n{const n=window.getComputedStyle(e,null),i=s[t],r={};Object.keys(n).forEach(e=>{n.getPropertyValue(e)!==i[e]&&(r[e]=n.getPropertyValue(e))}),l[t]=r}),i.forEach((e,t)=>{T()(e).css(l[t])})}const c=t.stylesheet;if("string"===typeof c){const e=n.ownerDocument.implementation.createDocument(null,"xml",null).createCDATASection(c);i.prepend(Qy.create("style",{type:"text/css"},[e]))}const u=()=>{const n=t.beforeSerialize;if("function"===typeof n){const e=s.call(n,this.graph,r);e instanceof SVGSVGElement&&(r=e)}const i=(new XMLSerializer).serializeToString(r).replace(/ /g," ");this.graph.trigger("after:export",t),e(i)};if(t.serializeImages){const e=i.find("image").map(e=>{return new Promise(t=>{const n=e.attr("xlink:href")||e.attr("href");J_.imageToDataUri(n,(n,i)=>{!n&&i&&e.attr("xlink:href",i),t()})})});Promise.all(e).then(u)}else u()}toDataURL(e,t){let n=t.viewBox||this.graph.getContentBBox();const i=a.normalizeSides(t.padding);t.width&&t.height&&(i.left+i.right>=t.width&&(i.left=i.right=0),i.top+i.bottom>=t.height&&(i.top=i.bottom=0));const r=new wy(-i.left,-i.top,i.left+i.right,i.top+i.bottom);if(t.width&&t.height){const e=n.width+i.left+i.right,o=n.height+i.top+i.bottom;r.scale(e/t.width,o/t.height)}n=wy.create(n).moveAndExpand(r);const o="number"===typeof t.width&&"number"===typeof t.height?{width:t.width,height:t.height}:n;let s=t.ratio?parseFloat(t.ratio):1;Number.isFinite(s)&&0!==s||(s=1);const l={width:Math.max(Math.round(o.width*s),1),height:Math.max(Math.round(o.height*s),1)};{const e=document.createElement("canvas"),t=e.getContext("2d");e.width=l.width,e.height=l.height;const n=l.width-1,i=l.height-1;t.fillStyle="rgb(1,1,1)",t.fillRect(n,i,1,1);const r=t.getImageData(n,i,1,1).data;if(1!==r[0]||1!==r[1]||1!==r[2])throw new Error("size exceeded")}const c=new Image;c.onload=()=>{const n=document.createElement("canvas");n.width=l.width,n.height=l.height;const i=n.getContext("2d");i.fillStyle=t.backgroundColor||"white",i.fillRect(0,0,l.width,l.height);try{i.drawImage(c,0,0,l.width,l.height);const r=n.toDataURL(t.type,t.quality);e(r)}catch(r){}},this.toSVG(e=>{c.src=`data:image/svg+xml,${encodeURIComponent(e)}`},Object.assign(Object.assign({},t),{viewBox:n,serializeImages:!0,preserveDimensions:Object.assign({},l)}))}toPNG(e,t={}){this.toDataURL(e,Object.assign(Object.assign({},t),{type:"image/png"}))}toJPEG(e,t={}){this.toDataURL(e,Object.assign(Object.assign({},t),{type:"image/jpeg"}))}}class ZO extends MA{constructor(){super(...arguments),this.widgets=new Map}get isSelectionEnabled(){return!0===this.options.selecting.enabled}init(){this.startListening()}startListening(){this.graph.on("node:mouseup",this.onNodeMouseUp,this),this.graph.on("node:selected",this.onNodeSelected,this),this.graph.on("node:unselected",this.onNodeUnSelected,this)}stopListening(){this.graph.off("node:mouseup",this.onNodeMouseUp,this),this.graph.off("node:selected",this.onNodeSelected,this),this.graph.off("node:unselected",this.onNodeUnSelected,this)}onNodeMouseUp({node:e}){if(!this.isSelectionEnabled){const t=this.graph.hook.createKnob(e,{clearAll:!0});t&&this.widgets.set(e,t)}}onNodeSelected({node:e}){if(this.isSelectionEnabled){const t=this.graph.hook.createKnob(e,{clearAll:!1});t&&this.widgets.set(e,t)}}onNodeUnSelected({node:e}){if(this.isSelectionEnabled){const t=this.widgets.get(e);t&&t.forEach(e=>e.dispose()),this.widgets.delete(e)}}}var JO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class eR extends MA{get widgetOptions(){return this.options.panning}get pannable(){return this.widgetOptions&&!0===this.widgetOptions.enabled}init(){this.startListening(),this.updateClassName()}startListening(){const e=this.widgetOptions.eventTypes;e&&(e.includes("leftMouseDown")&&(this.graph.on("blank:mousedown",this.preparePanning,this),this.graph.on("node:unhandled:mousedown",this.preparePanning,this),this.graph.on("edge:unhandled:mousedown",this.preparePanning,this)),e.includes("rightMouseDown")&&(this.onRightMouseDown=this.onRightMouseDown.bind(this),this.view.$(this.graph.container).on("mousedown",this.onRightMouseDown)),e.includes("mouseWheel")&&(this.mousewheelHandle=new c.MouseWheelHandle(this.graph.container,this.onMouseWheel.bind(this),this.allowMouseWheel.bind(this)),this.mousewheelHandle.enable()))}stopListening(){const e=this.widgetOptions.eventTypes;e&&(e.includes("leftMouseDown")&&(this.graph.off("blank:mousedown",this.preparePanning,this),this.graph.off("node:unhandled:mousedown",this.preparePanning,this),this.graph.off("edge:unhandled:mousedown",this.preparePanning,this)),e.includes("rightMouseDown")&&this.view.$(this.graph.container).off("mousedown",this.onRightMouseDown),e.includes("mouseWheel")&&this.mousewheelHandle&&this.mousewheelHandle.disable())}preparePanning({e:e}){(this.allowPanning(e,!0)||this.allowPanning(e)&&!this.graph.selection.allowRubberband(e,!0))&&this.startPanning(e)}allowPanning(e,t){return this.pannable&&CO.isMatch(e,this.widgetOptions.modifiers,t)&&this.graph.hook.allowPanning(e)}startPanning(e){const t=this.view.normalizeEvent(e);this.clientX=t.clientX,this.clientY=t.clientY,this.panning=!0,this.updateClassName(),this.view.$(document.body).on({"mousemove.panning touchmove.panning":this.pan.bind(this),"mouseup.panning touchend.panning":this.stopPanning.bind(this)}),this.view.$(window).on("mouseup.panning",this.stopPanning.bind(this))}pan(e){const t=this.view.normalizeEvent(e),n=t.clientX-this.clientX,i=t.clientY-this.clientY;this.clientX=t.clientX,this.clientY=t.clientY,this.graph.translateBy(n,i)}stopPanning(e){this.panning=!1,this.updateClassName(),this.view.$(document.body).off(".panning"),this.view.$(window).off(".panning")}updateClassName(){const e=this.view.container,t=this.view.prefixClassName("graph-panning"),n=this.view.prefixClassName("graph-pannable");this.pannable?this.panning?(c.addClass(e,t),c.removeClass(e,n)):(c.removeClass(e,t),c.addClass(e,n)):(c.removeClass(e,t),c.removeClass(e,n))}onRightMouseDown(e){2===e.button&&this.allowPanning(e,!0)&&this.startPanning(e)}allowMouseWheel(e){return this.pannable&&!e.ctrlKey}onMouseWheel(e,t,n){e.ctrlKey||this.graph.translateBy(-t,-n)}autoPanning(e,t){const n=10,i=this.graph.getGraphArea();let r=0,o=0;e<=i.left+n&&(r=-n),t<=i.top+n&&(o=-n),e>=i.right-n&&(r=n),t>=i.bottom-n&&(o=n),0===r&&0===o||this.graph.translateBy(-r,-o)}enablePanning(){this.pannable||(this.widgetOptions.enabled=!0,this.updateClassName())}disablePanning(){this.pannable&&(this.widgetOptions.enabled=!1,this.updateClassName())}dispose(){this.stopListening()}}JO([MA.dispose()],eR.prototype,"dispose",null);var tR=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class nR extends MA{hasScroller(){return null!=this.graph.scroller.widget}getContainer(){return this.hasScroller()?this.graph.scroller.widget.container:this.graph.container}init(){const e=this.options.autoResize;if(e){const t="boolean"===typeof e?this.getContainer():e;pS.bind(t,()=>{const e=this.getContainer(),t=e.offsetWidth,n=e.offsetHeight;this.resize(t,n)})}}resize(e,t){this.hasScroller()?this.resizeScroller(e,t):this.resizeGraph(e,t)}resizeGraph(e,t){this.graph.transform.resize(e,t)}resizeScroller(e,t){this.graph.scroller.resize(e,t)}resizePage(e,t){const n=this.graph.scroller.widget;n&&n.updatePageSize(e,t)}dispose(){pS.clear(this.getContainer())}}tR([MA.dispose()],nR.prototype,"dispose",null);var iR,rR=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},oR=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const o=r.value,a=t||i;r.value=function(...t){const n=this.options[a];if(null!=n){this.getNativeValue=o.bind(this,...t);const i=s.call(n,this.graph,...t);if(this.getNativeValue=null,null!=i||!0===e&&null===i)return i}return o.call(this,...t)}}}function n(e){return(t,n,i)=>{const r=i.value,o=e||n;i.value=function(...e){let t=r.call(this,...e);const n=this.options[o];return null!=n&&(t=s.call(n,this.graph,...e)&&t),t}}}e.hook=t,e.after=n})(iR||(iR={}));class aR extends MA{createModel(){if(this.options.model)return this.options.model;const e=new _A;return e.graph=this.graph,e}createView(){return new PA(this.graph)}createRenderer(){return new nO(this.graph)}createDefsManager(){return new _O(this.graph)}createGridManager(){return new SO(this.graph)}createCoordManager(){return new EO(this.graph)}createKnobManager(){return new ZO(this.graph)}createTransform(e,t){const n=this.getTransformOptions(e);return n.resizable||n.rotatable?new fO(Object.assign(Object.assign({node:e,graph:this.graph},n),t)):(n.clearAll&&fO.removeInstances(this.graph),null)}createKnob(e,t){const n=gO.parseOptionGroup(this.graph,e,this.options.knob),i=Object.assign(Object.assign({},n),t);i.clearAll&&YA.removeInstances(this.graph),i.clearAll=!1;const r=e.prop("knob"),o=[],a=Array.isArray(r)?r:[r];return a.forEach((t,r)=>{t&&!1!==t.enabled&&("function"===typeof t.enabled&&!1===t.enabled.call(this.graph,e)||n.enabled&&o.push(new YA(Object.assign({node:e,index:r,graph:this.graph},i))))}),o}getTransformOptions(e){const t=gO.parseOptionGroup(this.graph,e,this.options.resizing),n=gO.parseOptionGroup(this.graph,e,this.options.rotating),i=gO.parseOptionGroup(this.graph,e,this.options.transforming),r=Object.assign(Object.assign({},i),{resizable:t.enabled,minWidth:t.minWidth,maxWidth:t.maxWidth,minHeight:t.minHeight,maxHeight:t.maxHeight,orthogonalResizing:t.orthogonal,restrictedResizing:null!=t.restrict?t.restrict:t.restricted,autoScrollOnResizing:t.autoScroll,preserveAspectRatio:t.preserveAspectRatio,allowReverse:t.allowReverse,rotatable:n.enabled,rotateGrid:n.grid});return r}createTransformManager(){return new kO(this.graph)}createHighlightManager(){return new IO(this.graph)}createBackgroundManager(){return new rO(this.graph)}createClipboard(){return new dR}createClipboardManager(){return new NO(this.graph)}createSnapline(){return new eO(Object.assign({graph:this.graph},this.options.snapline))}createSnaplineManager(){return new wO(this.graph)}createSelection(){return new pO(Object.assign({graph:this.graph},this.options.selecting))}createSelectionManager(){return new PO(this.graph)}allowRubberband(e){return!0}createHistoryManager(){return new VO(Object.assign({graph:this.graph},this.options.history))}createScroller(){return this.options.scroller.enabled?new lO(Object.assign({graph:this.graph},this.options.scroller)):null}createScrollerManager(){return new AO(this.graph)}allowPanning(e){return!0}createMiniMap(){const e=this.options.minimap,{enabled:t}=e,n=oR(e,["enabled"]);return t?new XA(Object.assign({graph:this.graph},n)):null}createMiniMapManager(){return new UO(this.graph)}createKeyboard(){return new WO(Object.assign({graph:this.graph},this.options.keyboard))}createMouseWheel(){return new qO(Object.assign({graph:this.graph},this.options.mousewheel))}createPrintManager(){return new QO(this.graph)}createFormatManager(){return new XO(this.graph)}createPanningManager(){return new eR(this.graph)}createSizeManager(){return new nR(this.graph)}allowConnectToBlank(e){const t=this.options.connecting,n=null!=t.allowBlank?t.allowBlank:t.dangling;if("function"!==typeof n)return!!n;const i=this.graph.findViewByCell(e),r=e.getSourceCell(),o=e.getTargetCell(),a=this.graph.findViewByCell(r),l=this.graph.findViewByCell(o);return s.call(n,this.graph,{edge:e,edgeView:i,sourceCell:r,targetCell:o,sourceView:a,targetView:l,sourcePort:e.getSourcePortId(),targetPort:e.getTargetPortId(),sourceMagnet:i.sourceMagnet,targetMagnet:i.targetMagnet})}validateEdge(e,t,n){if(!this.allowConnectToBlank(e)){const t=e.getSourceCellId(),n=e.getTargetCellId();if(!t||!n)return!1}const i=this.options.connecting.validateEdge;return!i||s.call(i,this.graph,{edge:e,type:t,previous:n})}validateMagnet(e,t,n){if("passive"!==t.getAttribute("magnet")){const i=this.options.connecting.validateMagnet;return!i||s.call(i,this.graph,{e:n,magnet:t,view:e,cell:e.cell})}return!1}getDefaultEdge(e,t){let n;const i=this.options.connecting.createEdge;return i&&(n=s.call(i,this.graph,{sourceMagnet:t,sourceView:e,sourceCell:e.cell})),null==n&&(n=new RA),n}validateConnection(e,t,n,i,r,o,a){const l=this.options.connecting,c=l.allowLoop,u=l.allowNode,d=l.allowEdge,h=l.allowPort,p=null!=l.allowMulti?l.allowMulti:l.multi,f=l.validateConnection,g=o?o.cell:null,m="target"===r?n:e,v="target"===r?i:t;let _=!0;const y=l=>{const c="source"===r?a?a.port:null:g?g.getSourcePortId():null,u="target"===r?a?a.port:null:g?g.getTargetPortId():null;return s.call(l,this.graph,{edge:g,edgeView:o,sourceView:e,targetView:n,sourcePort:c,targetPort:u,sourceMagnet:t,targetMagnet:i,sourceCell:e?e.cell:null,targetCell:n?n.cell:null,type:r})};if(null!=c&&("boolean"===typeof c?c||e!==n||(_=!1):_=y(c)),_&&null!=h&&("boolean"===typeof h?!h&&v&&(_=!1):_=y(h)),_&&null!=d&&("boolean"===typeof d?!d&&pA.isEdgeView(m)&&(_=!1):_=y(d)),_&&null!=u&&("boolean"===typeof u?u||null==m||fA.isNodeView(m)&&null==v&&(_=!1):_=y(u)),_&&null!=p&&o){const e=o.cell,t="source"===r?a:e.getSource(),n="target"===r?a:e.getTarget(),i=a?this.graph.getCellById(a.cell):null;if(t&&n&&t.cell&&n.cell&&i)if("function"===typeof p)_=y(p);else{const e=this.model.getConnectedEdges(i,{outgoing:"source"===r,incoming:"target"===r});if(e.length)if("withPort"===p){const i=e.some(e=>{const i=e.getSource(),r=e.getTarget();return i&&r&&i.cell===t.cell&&r.cell===n.cell&&null!=i.port&&i.port===t.port&&null!=r.port&&r.port===n.port});i&&(_=!1)}else if(!p){const i=e.some(e=>{const i=e.getSource(),r=e.getTarget();return i&&r&&i.cell===t.cell&&r.cell===n.cell});i&&(_=!1)}}}return _&&null!=f&&(_=y(f)),_}getRestrictArea(e){const t=this.options.translating.restrict,n="function"===typeof t?s.call(t,this.graph,e):t;return"number"===typeof n?this.graph.transform.getGraphArea().inflate(n):!0===n?this.graph.transform.getGraphArea():n||null}onViewUpdated(e,t,n){t&nO.FLAG_INSERT||n.mounting||this.graph.renderer.requestConnectedEdgesUpdate(e,n)}onViewPostponed(e,t,n){return this.graph.renderer.forcePostponedViewUpdate(e,t)}getCellView(e){return null}createCellView(e){const t={graph:this.graph},n=this.getCellView(e);if(n)return new n(e,t);const i=e.view;if(null!=i&&"string"===typeof i){const n=Px.registry.get(i);return n?new n(e,t):Px.registry.onNotFound(i)}return e.isNode()?new fA(e,t):e.isEdge()?new pA(e,t):null}getHTMLComponent(e){let t=e.getHTML();return"string"===typeof t&&(t=NA.componentRegistry.get(t)||t),r.isPlainObject(t)&&(t=t.render),"function"===typeof t?s.call(t,this.graph,e):t}shouldUpdateHTMLComponent(e){let t=e.getHTML();if("string"===typeof t&&(t=NA.componentRegistry.get(t)||t),r.isPlainObject(t)){const n=t.shouldComponentUpdate;return"function"===typeof n?s.call(n,this.graph,e):!!n}return!1}onEdgeLabelRendered(e){}onPortRendered(e){}onToolItemCreated(e){}}rR([iR.hook()],aR.prototype,"createModel",null),rR([iR.hook()],aR.prototype,"createView",null),rR([iR.hook()],aR.prototype,"createRenderer",null),rR([iR.hook()],aR.prototype,"createDefsManager",null),rR([iR.hook()],aR.prototype,"createGridManager",null),rR([iR.hook()],aR.prototype,"createCoordManager",null),rR([iR.hook()],aR.prototype,"createKnobManager",null),rR([iR.hook()],aR.prototype,"createTransform",null),rR([iR.hook()],aR.prototype,"createKnob",null),rR([iR.hook()],aR.prototype,"createTransformManager",null),rR([iR.hook()],aR.prototype,"createHighlightManager",null),rR([iR.hook()],aR.prototype,"createBackgroundManager",null),rR([iR.hook()],aR.prototype,"createClipboard",null),rR([iR.hook()],aR.prototype,"createClipboardManager",null),rR([iR.hook()],aR.prototype,"createSnapline",null),rR([iR.hook()],aR.prototype,"createSnaplineManager",null),rR([iR.hook()],aR.prototype,"createSelection",null),rR([iR.hook()],aR.prototype,"createSelectionManager",null),rR([iR.hook()],aR.prototype,"allowRubberband",null),rR([iR.hook()],aR.prototype,"createHistoryManager",null),rR([iR.hook()],aR.prototype,"createScroller",null),rR([iR.hook()],aR.prototype,"createScrollerManager",null),rR([iR.hook()],aR.prototype,"allowPanning",null),rR([iR.hook()],aR.prototype,"createMiniMap",null),rR([iR.hook()],aR.prototype,"createMiniMapManager",null),rR([iR.hook()],aR.prototype,"createKeyboard",null),rR([iR.hook()],aR.prototype,"createMouseWheel",null),rR([iR.hook()],aR.prototype,"createPrintManager",null),rR([iR.hook()],aR.prototype,"createFormatManager",null),rR([iR.hook()],aR.prototype,"createPanningManager",null),rR([iR.hook()],aR.prototype,"createSizeManager",null),rR([iR.after()],aR.prototype,"onViewUpdated",null),rR([iR.after()],aR.prototype,"onViewPostponed",null),rR([iR.hook()],aR.prototype,"getCellView",null),rR([iR.hook(!0)],aR.prototype,"createCellView",null),rR([iR.hook()],aR.prototype,"getHTMLComponent",null),rR([iR.hook()],aR.prototype,"shouldUpdateHTMLComponent",null),rR([iR.hook()],aR.prototype,"onEdgeLabelRendered",null),rR([iR.hook()],aR.prototype,"onPortRendered",null),rR([iR.hook()],aR.prototype,"onToolItemCreated",null);var sR,lR,cR=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class uR extends hx{constructor(e){super(),this.options=gO.get(e),this.css=new $A(this),this.hook=new aR(this),this.view=this.hook.createView(),this.defs=this.hook.createDefsManager(),this.coord=this.hook.createCoordManager(),this.transform=this.hook.createTransformManager(),this.knob=this.hook.createKnobManager(),this.highlight=this.hook.createHighlightManager(),this.grid=this.hook.createGridManager(),this.background=this.hook.createBackgroundManager(),this.model=this.hook.createModel(),this.renderer=this.hook.createRenderer(),this.clipboard=this.hook.createClipboardManager(),this.snapline=this.hook.createSnaplineManager(),this.selection=this.hook.createSelectionManager(),this.history=this.hook.createHistoryManager(),this.scroller=this.hook.createScrollerManager(),this.minimap=this.hook.createMiniMapManager(),this.keyboard=this.hook.createKeyboard(),this.mousewheel=this.hook.createMouseWheel(),this.print=this.hook.createPrintManager(),this.format=this.hook.createFormatManager(),this.panning=this.hook.createPanningManager(),this.size=this.hook.createSizeManager()}get container(){return this.view.container}get[Symbol.toStringTag](){return uR.toStringTag}isNode(e){return e.isNode()}isEdge(e){return e.isEdge()}resetCells(e,t={}){return this.model.resetCells(e,t),this}clearCells(e={}){return this.model.clear(e),this}toJSON(e={}){return this.model.toJSON(e)}parseJSON(e){return this.model.parseJSON(e)}fromJSON(e,t={}){return this.model.fromJSON(e,t),this}getCellById(e){return this.model.getCell(e)}addNode(e,t={}){return this.model.addNode(e,t)}addNodes(e,t={}){return this.addCell(e.map(e=>eA.isNode(e)?e:this.createNode(e)),t)}createNode(e){return this.model.createNode(e)}removeNode(e,t={}){return this.model.removeCell(e,t)}addEdge(e,t={}){return this.model.addEdge(e,t)}addEdges(e,t={}){return this.addCell(e.map(e=>dA.isEdge(e)?e:this.createEdge(e)),t)}removeEdge(e,t={}){return this.model.removeCell(e,t)}createEdge(e){return this.model.createEdge(e)}addCell(e,t={}){return this.model.addCell(e,t),this}removeCell(e,t={}){return this.model.removeCell(e,t)}removeCells(e,t={}){return this.model.removeCells(e,t)}removeConnectedEdges(e,t={}){return this.model.removeConnectedEdges(e,t)}disconnectConnectedEdges(e,t={}){return this.model.disconnectConnectedEdges(e,t),this}hasCell(e){return this.model.has(e)}getCell(e){return this.model.getCell(e)}getCells(){return this.model.getCells()}getCellCount(){return this.model.total()}getNodes(){return this.model.getNodes()}getEdges(){return this.model.getEdges()}getOutgoingEdges(e){return this.model.getOutgoingEdges(e)}getIncomingEdges(e){return this.model.getIncomingEdges(e)}getConnectedEdges(e,t={}){return this.model.getConnectedEdges(e,t)}getRootNodes(){return this.model.getRoots()}getLeafNodes(){return this.model.getLeafs()}isRootNode(e){return this.model.isRoot(e)}isLeafNode(e){return this.model.isLeaf(e)}getNeighbors(e,t={}){return this.model.getNeighbors(e,t)}isNeighbor(e,t,n={}){return this.model.isNeighbor(e,t,n)}getSuccessors(e,t={}){return this.model.getSuccessors(e,t)}isSuccessor(e,t,n={}){return this.model.isSuccessor(e,t,n)}getPredecessors(e,t={}){return this.model.getPredecessors(e,t)}isPredecessor(e,t,n={}){return this.model.isPredecessor(e,t,n)}getCommonAncestor(...e){return this.model.getCommonAncestor(...e)}getSubGraph(e,t={}){return this.model.getSubGraph(e,t)}cloneSubGraph(e,t={}){return this.model.cloneSubGraph(e,t)}cloneCells(e){return this.model.cloneCells(e)}getNodesFromPoint(e,t){return this.model.getNodesFromPoint(e,t)}getNodesInArea(e,t,n,i,r){return this.model.getNodesInArea(e,t,n,i,r)}getNodesUnderNode(e,t={}){return this.model.getNodesUnderNode(e,t)}searchCell(e,t,n={}){return this.model.search(e,t,n),this}getShortestPath(e,t,n={}){return this.model.getShortestPath(e,t,n)}getAllCellsBBox(){return this.model.getAllCellsBBox()}getCellsBBox(e,t={}){return this.model.getCellsBBox(e,t)}startBatch(e,t={}){this.model.startBatch(e,t)}stopBatch(e,t={}){this.model.stopBatch(e,t)}batchUpdate(e,t,n){const i="string"===typeof e?e:"update",r="string"===typeof e?t:e,o="function"===typeof t?n:t;this.startBatch(i,o);const a=r();return this.stopBatch(i,o),a}isFrozen(){return this.renderer.isFrozen()}freeze(e={}){return this.renderer.freeze(e),this}unfreeze(e={}){return this.renderer.unfreeze(e),this}isAsync(){return this.renderer.isAsync()}setAsync(e){return this.renderer.setAsync(e),this}findView(e){return XT.isCell(e)?this.findViewByCell(e):this.findViewByElem(e)}findViews(e){return wy.isRectangleLike(e)?this.findViewsInArea(e):xy.isPointLike(e)?this.findViewsFromPoint(e):[]}findViewByCell(e){return this.renderer.findViewByCell(e)}findViewByElem(e){return this.renderer.findViewByElem(e)}findViewsFromPoint(e,t){const n="number"===typeof e?{x:e,y:t}:e;return this.renderer.findViewsFromPoint(n)}findViewsInArea(e,t,n,i,r){const o="number"===typeof e?{x:e,y:t,width:n,height:i}:e,a="number"===typeof e?r:t;return this.renderer.findViewsInArea(o,a)}isViewMounted(e){return this.renderer.isViewMounted(e)}getMountedViews(){return this.renderer.getMountedViews()}getUnmountedViews(){return this.renderer.getUnmountedViews()}matrix(e){return"undefined"===typeof e?this.transform.getMatrix():(this.transform.setMatrix(e),this)}resize(e,t){return this.size.resize(e,t),this}resizeGraph(e,t){return this.size.resizeGraph(e,t),this}resizeScroller(e,t){return this.size.resizeScroller(e,t),this}resizePage(e,t){return this.size.resizePage(e,t),this}scale(e,t=e,n=0,i=0){return"undefined"===typeof e?this.transform.getScale():(this.transform.scale(e,t,n,i),this)}zoom(e,t){const n=this.scroller.widget;if(n){if("undefined"===typeof e)return n.zoom();n.zoom(e,t)}else{if("undefined"===typeof e)return this.transform.getZoom();this.transform.zoom(e,t)}return this}zoomTo(e,t={}){const n=this.scroller.widget;n?n.zoom(e,Object.assign(Object.assign({},t),{absolute:!0})):this.transform.zoom(e,Object.assign(Object.assign({},t),{absolute:!0}))}zoomToRect(e,t={}){const n=this.scroller.widget;return n?n.zoomToRect(e,t):this.transform.zoomToRect(e,t),this}zoomToFit(e={}){const t=this.scroller.widget;return t?t.zoomToFit(e):this.transform.zoomToFit(e),this}rotate(e,t,n){return"undefined"===typeof e?this.transform.getRotation():(this.transform.rotate(e,t,n),this)}translate(e,t){return"undefined"===typeof e?this.transform.getTranslation():(this.transform.translate(e,t),this)}translateBy(e,t){const n=this.translate(),i=n.tx+e,r=n.ty+t;return this.translate(i,r)}getArea(){return this.transform.getGraphArea()}getGraphArea(){return this.transform.getGraphArea()}getContentArea(e={}){return this.transform.getContentArea(e)}getContentBBox(e={}){return this.transform.getContentBBox(e)}fitToContent(e,t,n,i){return this.transform.fitToContent(e,t,n,i)}scaleContentToFit(e={}){return this.transform.scaleContentToFit(e),this}center(e){return this.centerPoint(e)}centerPoint(e,t,n){const i=this.scroller.widget;return i?i.centerPoint(e,t,n):this.transform.centerPoint(e,t),this}centerContent(e){const t=this.scroller.widget;return t?t.centerContent(e):this.transform.centerContent(e),this}centerCell(e,t){const n=this.scroller.widget;return n?n.centerCell(e,t):this.transform.centerCell(e),this}positionPoint(e,t,n,i={}){const r=this.scroller.widget;return r?r.positionPoint(e,t,n,i):this.transform.positionPoint(e,t,n),this}positionRect(e,t,n){const i=this.scroller.widget;return i?i.positionRect(e,t,n):this.transform.positionRect(e,t),this}positionCell(e,t,n){const i=this.scroller.widget;return i?i.positionCell(e,t,n):this.transform.positionCell(e,t),this}positionContent(e,t){const n=this.scroller.widget;return n?n.positionContent(e,t):this.transform.positionContent(e,t),this}getClientMatrix(){return this.coord.getClientMatrix()}getClientOffset(){return this.coord.getClientOffset()}getPageOffset(){return this.coord.getPageOffset()}snapToGrid(e,t){return this.coord.snapToGrid(e,t)}pageToLocal(e,t,n,i){return wy.isRectangleLike(e)?this.coord.pageToLocalRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof i?this.coord.pageToLocalRect(e,t,n,i):this.coord.pageToLocalPoint(e,t)}localToPage(e,t,n,i){return wy.isRectangleLike(e)?this.coord.localToPageRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof i?this.coord.localToPageRect(e,t,n,i):this.coord.localToPagePoint(e,t)}clientToLocal(e,t,n,i){return wy.isRectangleLike(e)?this.coord.clientToLocalRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof i?this.coord.clientToLocalRect(e,t,n,i):this.coord.clientToLocalPoint(e,t)}localToClient(e,t,n,i){return wy.isRectangleLike(e)?this.coord.localToClientRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof i?this.coord.localToClientRect(e,t,n,i):this.coord.localToClientPoint(e,t)}localToGraph(e,t,n,i){return wy.isRectangleLike(e)?this.coord.localToGraphRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof i?this.coord.localToGraphRect(e,t,n,i):this.coord.localToGraphPoint(e,t)}graphToLocal(e,t,n,i){return wy.isRectangleLike(e)?this.coord.graphToLocalRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof i?this.coord.graphToLocalRect(e,t,n,i):this.coord.graphToLocalPoint(e,t)}clientToGraph(e,t,n,i){return wy.isRectangleLike(e)?this.coord.clientToGraphRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof i?this.coord.clientToGraphRect(e,t,n,i):this.coord.clientToGraphPoint(e,t)}defineFilter(e){return this.defs.filter(e)}defineGradient(e){return this.defs.gradient(e)}defineMarker(e){return this.defs.marker(e)}getGridSize(){return this.grid.getGridSize()}setGridSize(e){return this.grid.setGridSize(e),this}showGrid(){return this.grid.show(),this}hideGrid(){return this.grid.hide(),this}clearGrid(){return this.grid.clear(),this}drawGrid(e){return this.grid.draw(e),this}updateBackground(){return this.background.update(),this}drawBackground(e,t){const n=this.scroller.widget;return null==n||null!=this.options.background&&t?this.background.draw(e):n.backgroundManager.draw(e),this}clearBackground(e){const t=this.scroller.widget;return null==t||null!=this.options.background&&e?this.background.clear():t.backgroundManager.clear(),this}isClipboardEnabled(){return!this.clipboard.disabled}enableClipboard(){return this.clipboard.enable(),this}disableClipboard(){return this.clipboard.disable(),this}toggleClipboard(e){return null!=e?e!==this.isClipboardEnabled()&&(e?this.enableClipboard():this.disableClipboard()):this.isClipboardEnabled()?this.disableClipboard():this.enableClipboard(),this}isClipboardEmpty(){return this.clipboard.isEmpty()}getCellsInClipboard(){return this.clipboard.cells}cleanClipboard(){return this.clipboard.clean(),this}copy(e,t={}){return this.clipboard.copy(e,t),this}cut(e,t={}){return this.clipboard.cut(e,t),this}paste(e={},t=this){return this.clipboard.paste(e,t)}isHistoryEnabled(){return!this.history.disabled}enableHistory(){return this.history.enable(),this}disableHistory(){return this.history.disable(),this}toggleHistory(e){return null!=e?e!==this.isHistoryEnabled()&&(e?this.enableHistory():this.disableHistory()):this.isHistoryEnabled()?this.disableHistory():this.enableHistory(),this}undo(e={}){return this.history.undo(e),this}undoAndCancel(e={}){return this.history.cancel(e),this}redo(e={}){return this.history.redo(e),this}canUndo(){return this.history.canUndo()}canRedo(){return this.history.canRedo()}cleanHistory(e={}){this.history.clean(e)}isKeyboardEnabled(){return!this.keyboard.disabled}enableKeyboard(){return this.keyboard.enable(),this}disableKeyboard(){return this.keyboard.disable(),this}toggleKeyboard(e){return null!=e?e!==this.isKeyboardEnabled()&&(e?this.enableKeyboard():this.disableKeyboard()):this.isKeyboardEnabled()?this.disableKeyboard():this.enableKeyboard(),this}bindKey(e,t,n){return this.keyboard.on(e,t,n),this}unbindKey(e,t){return this.keyboard.off(e,t),this}isMouseWheelEnabled(){return!this.mousewheel.disabled}enableMouseWheel(){return this.mousewheel.enable(),this}disableMouseWheel(){return this.mousewheel.disable(),this}toggleMouseWheel(e){return null==e?this.isMouseWheelEnabled()?this.disableMouseWheel():this.enableMouseWheel():e?this.enableMouseWheel():this.disableMouseWheel(),this}isPannable(){const e=this.scroller.widget;return e?this.scroller.pannable:this.panning.pannable}enablePanning(){const e=this.scroller.widget;return e?this.scroller.enablePanning():this.panning.enablePanning(),this}disablePanning(){const e=this.scroller.widget;return e?this.scroller.disablePanning():this.panning.disablePanning(),this}togglePanning(e){return null==e?this.isPannable()?this.disablePanning():this.enablePanning():e!==this.isPannable()&&(e?this.enablePanning():this.disablePanning()),this}lockScroller(){var e;null===(e=this.scroller.widget)||void 0===e||e.lock()}unlockScroller(){var e;null===(e=this.scroller.widget)||void 0===e||e.unlock()}updateScroller(){var e;null===(e=this.scroller.widget)||void 0===e||e.update()}getScrollbarPosition(){const e=this.scroller.widget;return e.scrollbarPosition()}setScrollbarPosition(e,t,n){const i=this.scroller.widget;return i.scrollbarPosition(e,t,n),this}scrollToPoint(e,t,n){const i=this.scroller.widget;return i.scrollToPoint(e,t,n),this}scrollToContent(e){const t=this.scroller.widget;return t.scrollToContent(e),this}scrollToCell(e,t){const n=this.scroller.widget;return n.scrollToCell(e,t),this}transitionToPoint(e,t,n){const i=this.scroller.widget;return i.transitionToPoint(e,t,n),this}transitionToRect(e,t={}){const n=this.scroller.widget;return n.transitionToRect(e,t),this}isSelectionEnabled(){return!this.selection.disabled}enableSelection(){return this.selection.enable(),this}disableSelection(){return this.selection.disable(),this}toggleSelection(e){return null!=e?e!==this.isSelectionEnabled()&&(e?this.enableSelection():this.disableSelection()):this.isSelectionEnabled()?this.disableSelection():this.enableSelection(),this}isMultipleSelection(){return this.selection.isMultiple()}enableMultipleSelection(){return this.selection.enableMultiple(),this}disableMultipleSelection(){return this.selection.disableMultiple(),this}toggleMultipleSelection(e){return null!=e?e!==this.isMultipleSelection()&&(e?this.enableMultipleSelection():this.disableMultipleSelection()):this.isMultipleSelection()?this.disableMultipleSelection():this.enableMultipleSelection(),this}isSelectionMovable(){return!1!==this.selection.widget.options.movable}enableSelectionMovable(){return this.selection.widget.options.movable=!0,this}disableSelectionMovable(){return this.selection.widget.options.movable=!1,this}toggleSelectionMovable(e){return null!=e?e!==this.isSelectionMovable()&&(e?this.enableSelectionMovable():this.disableSelectionMovable()):this.isSelectionMovable()?this.disableSelectionMovable():this.enableSelectionMovable(),this}isRubberbandEnabled(){return!this.selection.rubberbandDisabled}enableRubberband(){return this.selection.enableRubberband(),this}disableRubberband(){return this.selection.disableRubberband(),this}toggleRubberband(e){return null!=e?e!==this.isRubberbandEnabled()&&(e?this.enableRubberband():this.disableRubberband()):this.isRubberbandEnabled()?this.disableRubberband():this.enableRubberband(),this}isStrictRubberband(){return!0===this.selection.widget.options.strict}enableStrictRubberband(){return this.selection.widget.options.strict=!0,this}disableStrictRubberband(){return this.selection.widget.options.strict=!1,this}toggleStrictRubberband(e){return null!=e?e!==this.isStrictRubberband()&&(e?this.enableStrictRubberband():this.disableStrictRubberband()):this.isStrictRubberband()?this.disableStrictRubberband():this.enableStrictRubberband(),this}setRubberbandModifiers(e){this.selection.setModifiers(e)}setSelectionFilter(e){return this.selection.setFilter(e),this}setSelectionDisplayContent(e){return this.selection.setContent(e),this}isSelectionEmpty(){return this.selection.isEmpty()}cleanSelection(){return this.selection.clean(),this}resetSelection(e){return this.selection.reset(e),this}getSelectedCells(){return this.selection.cells}getSelectedCellCount(){return this.selection.length}isSelected(e){return this.selection.isSelected(e)}select(e,t={}){return this.selection.select(e,t),this}unselect(e,t={}){return this.selection.unselect(e,t),this}isSnaplineEnabled(){return!this.snapline.widget.disabled}enableSnapline(){return this.snapline.widget.enable(),this}disableSnapline(){return this.snapline.widget.disable(),this}toggleSnapline(e){if(null==e)return this.isSnaplineEnabled()?this.disableSnapline():this.enableSnapline(),this;e!==this.isSnaplineEnabled()&&(e?this.enableSnapline():this.disableSnapline())}hideSnapline(){return this.snapline.widget.hide(),this}setSnaplineFilter(e){return this.snapline.widget.setFilter(e),this}isSnaplineOnResizingEnabled(){return!0===this.snapline.widget.options.resizing}enableSnaplineOnResizing(){return this.snapline.widget.options.resizing=!0,this}disableSnaplineOnResizing(){return this.snapline.widget.options.resizing=!1,this}toggleSnaplineOnResizing(e){return null!=e?e!==this.isSnaplineOnResizingEnabled()&&(e?this.enableSnaplineOnResizing():this.disableSnaplineOnResizing()):this.isSnaplineOnResizingEnabled()?this.disableSnaplineOnResizing():this.enableSnaplineOnResizing(),this}isSharpSnapline(){return!0===this.snapline.widget.options.sharp}enableSharpSnapline(){return this.snapline.widget.options.sharp=!0,this}disableSharpSnapline(){return this.snapline.widget.options.sharp=!1,this}toggleSharpSnapline(e){return null!=e?e!==this.isSharpSnapline()&&(e?this.enableSharpSnapline():this.disableSharpSnapline()):this.isSharpSnapline()?this.disableSharpSnapline():this.enableSharpSnapline(),this}getSnaplineTolerance(){return this.snapline.widget.options.tolerance}setSnaplineTolerance(e){return this.snapline.widget.options.tolerance=e,this}removeTools(){return this.emit("tools:remove"),this}hideTools(){return this.emit("tools:hide"),this}showTools(){return this.emit("tools:show"),this}toSVG(e,t={}){this.format.toSVG(e,t)}toDataURL(e,t){this.format.toDataURL(e,t)}toPNG(e,t={}){this.format.toPNG(e,t)}toJPEG(e,t={}){this.format.toJPEG(e,t)}printPreview(e){this.print.show(e)}dispose(){this.clearCells(),this.off(),this.css.dispose(),this.hook.dispose(),this.defs.dispose(),this.grid.dispose(),this.coord.dispose(),this.transform.dispose(),this.knob.dispose(),this.highlight.dispose(),this.background.dispose(),this.clipboard.dispose(),this.snapline.dispose(),this.selection.dispose(),this.history.dispose(),this.keyboard.dispose(),this.mousewheel.dispose(),this.print.dispose(),this.format.dispose(),this.minimap.dispose(),this.panning.dispose(),this.scroller.dispose(),this.view.dispose(),this.renderer.dispose(),this.size.dispose()}}cR([kA.checkScroller()],uR.prototype,"lockScroller",null),cR([kA.checkScroller()],uR.prototype,"unlockScroller",null),cR([kA.checkScroller()],uR.prototype,"updateScroller",null),cR([kA.checkScroller()],uR.prototype,"getScrollbarPosition",null),cR([kA.checkScroller()],uR.prototype,"setScrollbarPosition",null),cR([kA.checkScroller()],uR.prototype,"scrollToPoint",null),cR([kA.checkScroller()],uR.prototype,"scrollToContent",null),cR([kA.checkScroller()],uR.prototype,"scrollToCell",null),cR([kA.checkScroller()],uR.prototype,"transitionToPoint",null),cR([kA.checkScroller()],uR.prototype,"transitionToRect",null),cR([hx.dispose()],uR.prototype,"dispose",null),function(e){e.View=PA,e.Hook=aR,e.Renderer=nO,e.Keyboard=WO,e.MouseWheel=qO,e.BaseManager=MA,e.DefsManager=_O,e.GridManager=SO,e.CoordManager=EO,e.PrintManager=QO,e.FormatManager=XO,e.MiniMapManager=UO,e.HistoryManager=VO,e.SnaplineManager=wO,e.ScrollerManager=AO,e.ClipboardManager=NO,e.TransformManager=kO,e.HighlightManager=IO,e.BackgroundManager=rO,e.SelectionManager=PO}(uR||(uR={})),function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],i=t;return(null==n||n===e.toStringTag)&&null!=i.hook&&null!=i.view&&null!=i.model}e.toStringTag=`X6.${e.name}`,e.isGraph=t}(uR||(uR={})),function(e){function t(t,n){const i=t instanceof HTMLElement?new e({container:t}):new e(t);return null!=n&&i.fromJSON(n),i}e.render=t}(uR||(uR={})),function(e){e.registerNode=eA.registry.register,e.registerEdge=dA.registry.register,e.registerView=Px.registry.register,e.registerAttr=YE.registry.register,e.registerGrid=ZE.registry.register,e.registerFilter=hC.registry.register,e.registerNodeTool=Jx.registry.register,e.registerEdgeTool=ew.registry.register,e.registerBackground=vC.registry.register,e.registerHighlighter=OC.registry.register,e.registerPortLayout=UC.registry.register,e.registerPortLabelLayout=ax.registry.register,e.registerMarker=NE.registry.register,e.registerRouter=wT.registry.register,e.registerConnector=zT.registry.register,e.registerAnchor=yw.registry.register,e.registerEdgeAnchor=Tw.registry.register,e.registerConnectionPoint=Lw.registry.register,e.registerConnectionStrategy=Nx.registry.register,e.registerHTMLComponent=NA.componentRegistry.register}(uR||(uR={})),function(e){e.unregisterNode=eA.registry.unregister,e.unregisterEdge=dA.registry.unregister,e.unregisterView=Px.registry.unregister,e.unregisterAttr=YE.registry.unregister,e.unregisterGrid=ZE.registry.unregister,e.unregisterFilter=hC.registry.unregister,e.unregisterNodeTool=Jx.registry.unregister,e.unregisterEdgeTool=ew.registry.unregister,e.unregisterBackground=vC.registry.unregister,e.unregisterHighlighter=OC.registry.unregister,e.unregisterPortLayout=UC.registry.unregister,e.unregisterPortLabelLayout=ax.registry.unregister,e.unregisterMarker=NE.registry.unregister,e.unregisterRouter=wT.registry.unregister,e.unregisterConnector=zT.registry.unregister,e.unregisterAnchor=yw.registry.unregister,e.unregisterEdgeAnchor=Tw.registry.unregister,e.unregisterConnectionPoint=Lw.registry.unregister,e.unregisterConnectionStrategy=Nx.registry.unregister,e.unregisterHTMLComponent=NA.componentRegistry.unregister}(uR||(uR={}));class dR{constructor(){this.cells=[]}copy(e,t,n={}){this.options=Object.assign({},n);const r=_A.isModel(t)?t:t.model,o=r.cloneSubGraph(e,n);this.cells=i.sortBy(Object.keys(o).map(e=>o[e]),e=>e.isEdge()?2:1),this.serialize(n)}cut(e,t,n={}){this.copy(e,t,n);const i=uR.isGraph(t)?t.model:t;i.batchUpdate("cut",()=>{e.forEach(e=>e.remove())})}paste(e,t={}){const n=Object.assign(Object.assign({},t),this.options),{offset:i,edgeProps:r,nodeProps:o}=n;let a=20,s=20;i&&(a="number"===typeof i?i:i.dx,s="number"===typeof i?i:i.dy),this.deserialize(n);const l=this.cells;l.forEach(e=>{e.model=null,e.removeProp("zIndex"),(a||s)&&e.translate(a,s),o&&e.isNode()&&e.prop(o),r&&e.isEdge()&&e.prop(r)});const c=uR.isGraph(e)?e.model:e;return c.batchUpdate("paste",()=>{c.addCells(this.cells)}),this.copy(l,e,t),l}serialize(e){!1!==e.useLocalStorage&&sR.save(this.cells)}deserialize(e){if(e.useLocalStorage){const e=sR.fetch();e&&(this.cells=e)}}isEmpty(){return this.cells.length<=0}clean(){this.options={},this.cells=[],sR.clean()}}(function(e){const t=`${_C.prefixCls}.clipboard.cells`;function n(e){if(window.localStorage){const n=e.map(e=>e.toJSON());localStorage.setItem(t,JSON.stringify(n))}}function i(){if(window.localStorage){const e=localStorage.getItem(t),n=e?JSON.parse(e):[];if(n)return _A.fromJSON(n)}}function r(){window.localStorage&&localStorage.removeItem(t)}e.save=n,e.fetch=i,e.clean=r})(sR||(sR={}));class hR{constructor(e){this.halo=e}get options(){return this.halo.options}get graph(){return this.halo.graph}get model(){return this.halo.model}get view(){return this.halo.view}get cell(){return this.halo.cell}get node(){return this.cell}getPresets(){return{className:"type-node",handles:[{name:"remove",position:"nw",events:{mousedown:this.removeCell.bind(this)},icon:null},{name:"resize",position:"se",events:{mousedown:this.startResize.bind(this),mousemove:this.doResize.bind(this),mouseup:this.stopResize.bind(this)},icon:null},{name:"clone",position:"n",events:{mousedown:this.startClone.bind(this),mousemove:this.doClone.bind(this),mouseup:this.stopClone.bind(this)},icon:null},{name:"link",position:"e",events:{mousedown:this.startLink.bind(this),mousemove:this.doLink.bind(this),mouseup:this.stopLink.bind(this)},icon:null},{name:"fork",position:"ne",events:{mousedown:this.startFork.bind(this),mousemove:this.doFork.bind(this),mouseup:this.stopFork.bind(this)},icon:null},{name:"unlink",position:"w",events:{mousedown:this.unlink.bind(this)},icon:null},{name:"rotate",position:"sw",events:{mousedown:this.startRotate.bind(this),mousemove:this.doRotate.bind(this),mouseup:this.stopRotate.bind(this)},icon:null}],bbox(e){if(this.options.useCellGeometry){const t=e.cell;return t.getBBox()}return e.getBBox()},content(e){const t=o.template("x: <%= x %>, y: <%= y %>, width: <%= width %>, height: <%= height %>, angle: <%= angle %>"),n=e.cell,i=n.getBBox();return t({x:Math.floor(i.x),y:Math.floor(i.y),width:Math.floor(i.width),height:Math.floor(i.height),angle:Math.floor(n.getAngle())})},magnet(e){return e.container},tinyThreshold:40,smallThreshold:80,loopEdgePreferredSide:"top",loopEdgeWidth:40,rotateGrid:15,rotateEmbeds:!1}}removeCell(){this.model.removeConnectedEdges(this.cell),this.cell.remove()}startLink({x:e,y:t}){this.halo.startBatch();const n=this.graph,i=this.createEdgeConnectedToSource();i.setTarget({x:e,y:t}),this.model.addEdge(i,{validation:!1,halo:this.halo.cid,async:!1}),n.view.undelegateEvents(),this.edgeView=n.renderer.findViewByCell(i),this.edgeView.prepareArrowheadDragging("target",{x:e,y:t,fallbackAction:"remove"})}createEdgeConnectedToSource(){const e=this.getMagnet(this.view,"source"),t=this.getEdgeTerminal(this.view,e),n=this.graph.hook.getDefaultEdge(this.view,e);return n.setSource(t),n}getMagnet(e,t){const n=this.options.magnet;if("function"===typeof n){const i=s.call(n,this.halo,e,t);if(i instanceof SVGElement)return i}throw new Error("`magnet()` has to return an SVGElement")}getEdgeTerminal(e,t){const n={cell:e.cell.id};if(t!==e.container){const i=t.getAttribute("port");i?n.port=i:n.selector=e.getSelector(t)}return n}doLink({e:e,x:t,y:n}){this.edgeView&&this.edgeView.onMouseMove(e,t,n)}stopLink({e:e,x:t,y:n}){const i=this.edgeView;if(i){i.onMouseUp(e,t,n);const r=i.cell;r.hasLoop()&&this.makeLoopEdge(r),this.halo.stopBatch(),this.halo.trigger("action:edge:addde",{edge:r}),this.edgeView=null}this.graph.view.delegateEvents()}makeLoopEdge(e){let t=null,n=null;const i=this.options.loopEdgeWidth,r=this.graph.options,o=new wy(0,0,r.width,r.height),a=this.graph.graphToLocal(this.view.getBBox()),s=[this.options.loopEdgePreferredSide,"top","bottom","left","right"].some(e=>{let r=null,s=0,l=0;switch(e){case"top":r=new xy(a.x+a.width/2,a.y-i),s=i/2;break;case"bottom":r=new xy(a.x+a.width/2,a.y+a.height+i),s=i/2;break;case"left":r=new xy(a.x-i,a.y+a.height/2),l=i/2;break;case"right":r=new xy(a.x+a.width+i,a.y+a.height/2),l=i/2;break;default:break}return!!r&&(t=r.translate(-s,-l),n=r.translate(s,l),o.containsPoint(t)&&o.containsPoint(n))});s&&t&&n&&e.setVertices([t,n])}startResize({e:e}){this.halo.startBatch(),this.flip=[1,0,0,1,1,0,0,1][Math.floor(my.normalize(this.node.getAngle())/45)],this.view.addClass("node-resizing"),cO("node:resize",e,this.view)}doResize({e:e,dx:t,dy:n}){const i=this.node.getSize(),r=Math.max(i.width+(this.flip?t:n),1),o=Math.max(i.height+(this.flip?n:t),1);this.node.resize(r,o,{absolute:!0}),cO("node:resizing",e,this.view)}stopResize({e:e}){this.view.removeClass("node-resizing"),cO("node:resized",e,this.view),this.halo.stopBatch()}startClone({e:e,x:t,y:n}){this.halo.startBatch();const i=this.options,r=i.clone(this.cell,{clone:!0});if(!XT.isCell(r))throw new Error("option 'clone()' has to return a cell");this.centerNodeAtCursor(r,t,n),this.model.addCell(r,{halo:this.halo.cid,async:!1});const o=this.graph.renderer.findViewByCell(r);o.onMouseDown(e,t,n),this.halo.setEventData(e,{cloneView:o})}centerNodeAtCursor(e,t,n){const i=e.getBBox().getCenter(),r=t-i.x,o=n-i.y;e.translate(r,o)}doClone({e:e,x:t,y:n}){const i=this.halo.getEventData(e).cloneView;i&&i.onMouseMove(e,t,n)}stopClone({e:e,x:t,y:n}){const i=this.halo.getEventData(e).cloneView;i&&i.onMouseUp(e,t,n),this.halo.stopBatch()}startFork({e:e,x:t,y:n}){this.halo.startBatch();const i=this.options.clone(this.cell,{fork:!0});if(!XT.isCell(i))throw new Error("option 'clone()' has to return a cell");this.centerNodeAtCursor(i,t,n),this.model.addCell(i,{halo:this.halo.cid,async:!1});const r=this.createEdgeConnectedToSource(),o=this.graph.renderer.findViewByCell(i),a=this.getMagnet(o,"target"),s=this.getEdgeTerminal(o,a);r.setTarget(s),this.model.addEdge(r,{halo:this.halo.cid,async:!1}),o.onMouseDown(e,t,n),this.halo.setEventData(e,{cloneView:o})}doFork({e:e,x:t,y:n}){const i=this.halo.getEventData(e).cloneView;i&&i.onMouseMove(e,t,n)}stopFork({e:e,x:t,y:n}){const i=this.halo.getEventData(e).cloneView;i&&i.onMouseUp(e,t,n),this.halo.stopBatch()}startRotate({e:e,x:t,y:n}){this.halo.startBatch();const i=this.node.getBBox().getCenter(),r=[this.node];this.options.rotateEmbeds&&this.node.getDescendants({deep:!0}).reduce((e,t)=>{return t.isNode()&&e.push(t),e},r),this.halo.setEventData(e,{center:i,nodes:r,rotateStartAngles:r.map(e=>e.getAngle()),clientStartAngle:new xy(t,n).theta(i)}),r.forEach(t=>{const n=this.graph.findViewByCell(t);n&&(n.addClass("node-rotating"),cO("node:rotate",e,n))})}doRotate({e:e,x:t,y:n}){const i=this.halo.getEventData(e),r=i.clientStartAngle-new xy(t,n).theta(i.center);i.nodes.forEach((t,n)=>{const o=i.rotateStartAngles[n],a=yC.snapToGrid(o+r,this.options.rotateGrid);t.rotate(a,{absolute:!0,center:i.center,halo:this.halo.cid}),cO("node:rotating",e,this.graph.findViewByCell(t))})}stopRotate({e:e}){const t=this.halo.getEventData(e);t.nodes.forEach(t=>{const n=this.graph.findViewByCell(t);n.removeClass("node-rotating"),cO("node:rotated",e,n)}),this.halo.stopBatch()}unlink(){this.halo.startBatch(),this.model.removeConnectedEdges(this.cell),this.halo.stopBatch()}}class pR{constructor(e){this.halo=e}get options(){return this.halo.options}get graph(){return this.halo.graph}get model(){return this.halo.model}get view(){return this.halo.view}get cell(){return this.halo.cell}get edge(){return this.cell}getPresets(){return{className:"type-edge",handles:[{name:"remove",position:"nw",icon:null,events:{mousedown:this.removeEdge.bind(this)}},{name:"direction",position:"se",icon:null,events:{mousedown:this.directionSwap.bind(this)}}],content:!1,bbox(e){return e.graph.localToGraph(e.getPointAtRatio(.5))},tinyThreshold:-1,smallThreshold:-1}}removeEdge(){this.cell.remove()}directionSwap(){const e=this.edge.getSource(),t=this.edge.getTarget();this.edge.prop({source:t,target:e})}}class fR extends WA{get type(){return this.options.type||"surround"}get handleOptions(){return this.options}init(e){this.options=r.merge(fR.defaultOptions,this.cell.isNode()?new hR(this).getPresets():this.cell.isEdge()?new pR(this).getPresets():null,e),this.render(),this.initHandles(),this.update(),this.startListening()}startListening(){const e=this.model,t=this.graph,n=this.view.cell;n.on("removed",this.remove,this),e.on("reseted",this.remove,this),t.on("halo:destroy",this.remove,this),e.on("*",this.update,this),t.on("scale",this.update,this),t.on("translate",this.update,this),super.startListening()}stopListening(){const e=this.model,t=this.graph,n=this.view.cell;this.undelegateEvents(),n.off("removed",this.remove,this),e.off("reseted",this.remove,this),t.off("halo:destroy",this.remove,this),e.off("*",this.update,this),t.off("scale",this.update,this),t.off("translate",this.update,this),super.stopListening()}render(){const e=this.options,t=this.prefixClassName("widget-halo");return this.view.addClass(lR.NODE_CLS),this.container=document.createElement("div"),this.$container=this.$(this.container).addClass(t).attr("data-shape",this.view.cell.shape),e.className&&this.$container.addClass(e.className),this.$handleContainer=this.$("
").addClass(`${t}-handles`).appendTo(this.container),this.$content=this.$("
").addClass(`${t}-content`).appendTo(this.container),this.$container.appendTo(this.graph.container),this}remove(){return this.stopBatch(),this.view.removeClass(lR.NODE_CLS),super.remove()}update(){if(this.isRendered()){this.updateContent();const e=this.getBBox(),t=this.options.tinyThreshold||0,n=this.options.smallThreshold||0;this.$handleContainer.toggleClass(`${this.handleClassName}-tiny`,e.width0;this.$handleContainer.children(".unlink").toggleClass("hidden",!e)}startBatch(){this.model.startBatch("halo",{halo:this.cid})}stopBatch(){this.model.hasActiveBatch("halo")&&this.model.stopBatch("halo",{halo:this.cid})}}(function(e){e.defaultOptions={type:"surround",clearAll:!0,clearOnBlankMouseDown:!0,useCellGeometry:!1,clone:e=>e.clone().removeZIndex()}})(fR||(fR={})),Object.getOwnPropertyNames(UA.prototype).forEach(e=>{"constructor"!==e&&Object.defineProperty(fR.prototype,e,Object.getOwnPropertyDescriptor(UA.prototype,e))}),function(e){e.NODE_CLS="has-widget-halo"}(lR||(lR={}));var gR,mR,vR,_R=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class yR extends Ex{constructor(e){super(),this.options=Object.assign(Object.assign({},yR.defaults),e),this.container=document.createElement("div"),this.$container=this.$(this.container).addClass(this.prefixClassName("widget-dnd")),this.draggingGraph=new uR(Object.assign(Object.assign({},this.options.delegateGraphOptions),{container:document.createElement("div"),width:1,height:1})),this.$container.append(this.draggingGraph.container)}get targetScroller(){const e=this.options.target;return uR.isGraph(e)?e.scroller.widget:e}get targetGraph(){const e=this.options.target;return uR.isGraph(e)?e:e.graph}get targetModel(){return this.targetGraph.model}get snapline(){return this.targetGraph.snapline.widget}start(e,t){const n=t;n.preventDefault(),this.targetModel.startBatch("dnd"),this.$container.addClass("dragging").appendTo(this.options.containerParent||document.body),this.sourceNode=e,this.prepareDragging(e,n.clientX,n.clientY);const i=this.updateNodePosition(n.clientX,n.clientY);this.isSnaplineEnabled()&&(this.snapline.captureCursorOffset({e:n,node:e,cell:e,view:this.draggingView,x:i.x,y:i.y}),this.draggingNode.on("change:position",this.snap,this)),this.delegateDocumentEvents(yR.documentEvents,n.data)}isSnaplineEnabled(){return this.snapline&&!this.snapline.disabled}prepareDragging(e,t,n){const i=this.draggingGraph,r=i.model,o=this.options.getDragNode(e,{sourceNode:e,draggingGraph:i,targetGraph:this.targetGraph});o.position(0,0);let a=5;if(this.isSnaplineEnabled()&&(a+=this.snapline.options.tolerance||0),this.isSnaplineEnabled()||this.options.scaled){const e=this.targetGraph.transform.getScale();i.scale(e.sx,e.sy),a*=Math.max(e.sx,e.sy)}else i.scale(1,1);this.clearDragging(),this.options.animation&&this.$container.stop(!0,!0),r.resetCells([o]);const s=i.findViewByCell(o);s.undelegateEvents(),s.cell.off("changed"),i.fitToContent({padding:a,allowNewOrigin:"any"});const l=s.getBBox();this.geometryBBox=s.getBBox({useCellGeometry:!0}),this.delta=this.geometryBBox.getTopLeft().diff(l.getTopLeft()),this.draggingNode=o,this.draggingView=s,this.draggingBBox=o.getBBox(),this.padding=a,this.originOffset=this.updateGraphPosition(t,n)}updateGraphPosition(e,t){const n=document.body.scrollTop||document.documentElement.scrollTop,i=this.delta,r=this.geometryBBox,o=this.padding||5,a={left:e-i.x-r.width/2-o,top:t-i.y-r.height/2-o+n};return this.draggingGraph&&this.$container.offset(a),a}updateNodePosition(e,t){const n=this.targetGraph.clientToLocal(e,t),i=this.draggingBBox;return n.x-=i.width/2,n.y-=i.height/2,this.draggingNode.position(n.x,n.y),n}snap({cell:e,current:t,options:n}){const i=e;if(n.snapped){const e=this.draggingBBox;i.position(e.x+n.tx,e.y+n.ty,{silent:!0}),this.draggingView.translate(),i.position(t.x,t.y,{silent:!0}),this.snapOffset={x:n.tx,y:n.ty}}else this.snapOffset=null}onDragging(e){const t=this.draggingView;if(t){e.preventDefault();const n=this.normalizeEvent(e),i=n.clientX,r=n.clientY;this.updateGraphPosition(i,r);const o=this.updateNodePosition(i,r),a=this.targetGraph.options.embedding.enabled,s=(a||this.isSnaplineEnabled())&&this.isInsideValidArea({x:i,y:r});if(a){t.setEventData(n,{graph:this.targetGraph,candidateEmbedView:this.candidateEmbedView});const e=t.getEventData(n);s?t.processEmbedding(n,e):t.clearEmbedding(e),this.candidateEmbedView=e.candidateEmbedView}this.isSnaplineEnabled()&&(s?this.snapline.snapOnMoving({e:n,view:t,x:o.x,y:o.y}):this.snapline.hide())}}onDragEnd(e){const t=this.draggingNode;if(t){const n=this.normalizeEvent(e),i=this.draggingView,r=this.draggingBBox,o=this.snapOffset;let a=r.x,l=r.y;o&&(a+=o.x,l+=o.y),t.position(a,l,{silent:!0});const c=this.drop(t,{x:n.clientX,y:n.clientY}),u=e=>{e?(this.onDropped(t),this.targetGraph.options.embedding.enabled&&i&&(i.setEventData(n,{cell:e,graph:this.targetGraph,candidateEmbedView:this.candidateEmbedView}),i.finalizeEmbedding(n,i.getEventData(n)))):this.onDropInvalid(),this.candidateEmbedView=null,this.targetModel.stopBatch("dnd")};s.isAsync(c)?(this.undelegateDocumentEvents(),c.then(u)):u(c)}}clearDragging(){this.draggingNode&&(this.sourceNode=null,this.draggingNode.remove(),this.draggingNode=null,this.draggingView=null,this.delta=null,this.padding=null,this.snapOffset=null,this.originOffset=null,this.undelegateDocumentEvents())}onDropped(e){this.draggingNode===e&&(this.clearDragging(),this.$container.removeClass("dragging").remove())}onDropInvalid(){const e=this.draggingNode;if(e){const t=this.options.animation;if(t){const n="object"===typeof t&&t.duration||150,i="object"===typeof t&&t.easing||"swing";this.draggingView=null,this.$container.animate(this.originOffset,n,i,()=>this.onDropped(e))}else this.onDropped(e)}}isInsideValidArea(e){let t;const n=this.targetGraph,i=this.targetScroller;if(i)if(i.options.autoResize)t=this.getDropArea(i.container);else{const e=this.getDropArea(i.container);t=this.getDropArea(n.container).intersectsWithRect(e)}else t=this.getDropArea(n.container);return t&&t.containsPoint(e)}getDropArea(e){const t=this.$(e),n=t.offset(),i=document.body.scrollTop||document.documentElement.scrollTop,r=document.body.scrollLeft||document.documentElement.scrollLeft;return wy.create({x:n.left+parseInt(t.css("border-left-width"),10)-r,y:n.top+parseInt(t.css("border-top-width"),10)-i,width:t.innerWidth(),height:t.innerHeight()})}drop(e,t){if(this.isInsideValidArea(t)){const n=this.targetGraph,i=n.model,r=n.clientToLocal(t),o=this.sourceNode,a=this.options.getDropNode(e,{sourceNode:o,draggingNode:e,targetGraph:this.targetGraph,draggingGraph:this.draggingGraph}),l=a.getBBox();r.x+=l.x-l.width/2,r.y+=l.y-l.height/2;const c=this.snapOffset?1:n.getGridSize();a.position(yC.snapToGrid(r.x,c),yC.snapToGrid(r.y,c)),a.removeZIndex();const u=this.options.validateNode,d=!u||u(a,{sourceNode:o,draggingNode:e,droppingNode:a,targetGraph:n,draggingGraph:this.draggingGraph});return"boolean"===typeof d?d?(i.addCell(a,{stencil:this.cid}),a):null:s.toDeferredBoolean(d).then(e=>{return e?(i.addCell(a,{stencil:this.cid}),a):null})}return null}onRemove(){this.draggingGraph&&(this.draggingGraph.view.remove(),this.draggingGraph.dispose())}dispose(){this.remove()}}function bR(e,t={}){const n=_A.isModel(e)?e:(new _A).resetCells(e,{sort:!1,dryrun:!0}),i=n.getNodes(),r=t.columns||1,o=Math.ceil(i.length/r),a=t.dx||0,s=t.dy||0,l=!1!==t.center,c=!0===t.resizeToFit,u=t.marginX||0,d=t.marginY||0,h=[];let p=t.columnWidth;if("compact"===p)for(let _=0;_{const i=n%r,o=Math.floor(n/r),u=h[i],d=g[o];let p=0,m=0,_=e.getSize();if(c){let n=u-2*a,i=d-2*s;const r=_.height*(_.width?n/_.width:1),o=_.width*(_.height?i/_.height:1);de.clone(),getDropNode:e=>e.clone()},e.documentEvents={mousemove:"onDragging",touchmove:"onDragging",mouseup:"onDragEnd",touchend:"onDragEnd",touchcancel:"onDragEnd"}}(yR||(yR={})),function(e){function t(e,t){return e.reduce((e,n)=>Math.max(n.getSize()[t],e),0)}function n(e,t,n){const i=[];for(let r=n*t,o=r+n;r{return e.push(e[n]+t),e},[t||0])}e.getMaxDim=t,e.getNodesInRow=n,e.getNodesInColumn=i,e.accumulate=r}(gR||(gR={}));class SR extends Ex{constructor(e){if(super(),this.graphs={},this.$groups={},this.options=Object.assign(Object.assign({},SR.defaultOptions),e),this.dnd=new yR(this.options),this.onSearch=s.debounce(this.onSearch,200),this.container=document.createElement("div"),this.$container=this.$(this.container).addClass(this.prefixClassName(mR.base)).attr("data-not-found-text",this.options.notFoundText||"No matches found"),this.options.collapsable=e.collapsable&&e.groups&&e.groups.some(e=>!1!==e.collapsable),this.options.collapsable){this.$container.addClass("collapsable");const t=e.groups&&e.groups.every(e=>e.collapsed||!1===e.collapsable);t&&this.$container.addClass("collapsed")}this.$("
").addClass(this.prefixClassName(mR.title)).html(this.options.title).appendTo(this.$container),e.search&&this.$container.addClass("searchable").append(this.renderSearch()),this.$content=this.$("
").addClass(this.prefixClassName(mR.content)).appendTo(this.$container);const t=e.stencilGraphOptions||{};if(e.groups&&e.groups.length)e.groups.forEach(n=>{const i=this.$("
").addClass(this.prefixClassName(mR.group)).attr("data-name",n.name);(null==n.collapsable&&e.collapsable||!1!==n.collapsable)&&i.addClass("collapsable"),i.toggleClass("collapsed",!0===n.collapsed);const r=this.$("

").addClass(this.prefixClassName(mR.groupTitle)).html(n.title||n.name),o=this.$("
").addClass(this.prefixClassName(mR.groupContent)),a=n.graphOptions,s=new uR(Object.assign(Object.assign(Object.assign({},t),a),{container:document.createElement("div"),model:t.model||new _A,width:n.graphWidth||e.stencilGraphWidth,height:n.graphHeight||e.stencilGraphHeight,interacting:!1,preventDefaultBlankAction:!1}));o.append(s.container),i.append(r,o).appendTo(this.$content),this.$groups[n.name]=i,this.graphs[n.name]=s});else{const n=new uR(Object.assign(Object.assign({},t),{container:document.createElement("div"),model:t.model||new _A,width:e.stencilGraphWidth,height:e.stencilGraphHeight,interacting:!1,preventDefaultBlankAction:!1}));this.$content.append(n.container),this.graphs[vR.defaultGroupName]=n}return this.startListening(),this}get targetScroller(){const e=this.options.target;return uR.isGraph(e)?e.scroller.widget:e}get targetGraph(){const e=this.options.target;return uR.isGraph(e)?e:e.graph}get targetModel(){return this.targetGraph.model}renderSearch(){return this.$("
").addClass(this.prefixClassName(mR.search)).append(this.$("").attr({type:"search",placeholder:this.options.placeholder||"Search"}).addClass(this.prefixClassName(mR.searchText)))}startListening(){const e=this.prefixClassName(mR.title),t=this.prefixClassName(mR.searchText),n=this.prefixClassName(mR.groupTitle);this.delegateEvents({[`click .${e}`]:"onTitleClick",[`touchstart .${e}`]:"onTitleClick",[`click .${n}`]:"onGroupTitleClick",[`touchstart .${n}`]:"onGroupTitleClick",[`input .${t}`]:"onSearch",[`focusin .${t}`]:"onSearchFocusIn",[`focusout .${t}`]:"onSearchFocusOut"}),Object.keys(this.graphs).forEach(e=>{const t=this.graphs[e];t.on("cell:mousedown",this.onDragStart,this)})}stopListening(){this.undelegateEvents(),Object.keys(this.graphs).forEach(e=>{const t=this.graphs[e];t.off("cell:mousedown",this.onDragStart,this)})}load(e,t){return Array.isArray(e)?this.loadGroup(e,t):this.options.groups&&Object.keys(this.options.groups).forEach(t=>{e[t]&&this.loadGroup(e[t],t)}),this}loadGroup(e,t){const n=this.getModel(t);if(n){const t=e.map(e=>eA.isNode(e)?e:eA.create(e));n.resetCells(t)}const i=this.getGroup(t);let r=this.options.stencilGraphHeight;i&&null!=i.graphHeight&&(r=i.graphHeight);const o=i&&i.layout||this.options.layout;if(o&&n&&s.call(o,this,n,i),!r){const e=this.getGraph(t);e.fitToContent({minWidth:e.options.width,gridHeight:1,padding:i&&i.graphPadding||this.options.stencilGraphPadding||10})}return this}onDragStart(e){const{e:t,node:n}=e;this.dnd.start(n,t)}filter(e,t){const n=Object.keys(this.graphs).reduce((n,i)=>{const r=this.graphs[i],o=i===vR.defaultGroupName?null:i,a=r.model.getNodes().filter(n=>{let i=!1;i="function"===typeof t?s.call(t,this,n,e,o,this):"boolean"===typeof t?t:this.isCellMatched(n,e,t,e.toLowerCase()!==e);const a=r.renderer.findViewByCell(n);return a&&a.$(a.container).toggleClass("unmatched",!i),i}),l=a.length>0,c=this.options,u=new _A;return u.resetCells(a),c.layout&&s.call(c.layout,this,u,this.getGroup(i)),this.$groups[i]&&this.$groups[i].toggleClass("unmatched",!l),r.fitToContent({gridWidth:1,gridHeight:1,padding:c.stencilGraphPadding||10}),n||l},!1);this.$container.toggleClass("not-found",!n)}isCellMatched(e,t,n,i){return!t||!n||Object.keys(n).some(r=>{if("*"===r||e.shape===r){const o=n[r];if("boolean"===typeof o)return o;const a=Array.isArray(o)?o:[o];return a.some(n=>{let r=e.getPropByPath(n);return null!=r&&(r=`${r}`,i&&(r=r.toLowerCase()),r.indexOf(t)>=0)})}return!1})}onSearch(e){this.filter(e.target.value,this.options.search)}onSearchFocusIn(){this.$container.addClass("is-focused")}onSearchFocusOut(){this.$container.removeClass("is-focused")}onTitleClick(){this.options.collapsable&&(this.$container.toggleClass("collapsed"),this.$container.hasClass("collapsed")?this.collapseGroups():this.expandGroups())}onGroupTitleClick(e){const t=this.$(e.target).closest(`.${this.prefixClassName(mR.group)}`);this.toggleGroup(t.attr("data-name")||"");const n=Object.keys(this.$groups).every(e=>{const t=this.getGroup(e),n=this.$groups[e];return t&&!1===t.collapsable||n.hasClass("collapsed")});this.$container.toggleClass("collapsed",n)}getModel(e){const t=this.getGraph(e);return t?t.model:null}getGraph(e){return this.graphs[e||vR.defaultGroupName]}getGroup(e){const t=this.options.groups;return null!=e&&t&&t.length?t.find(t=>t.name===e):null}toggleGroup(e){return this.isGroupCollapsed(e)?this.expandGroup(e):this.collapseGroup(e),this}collapseGroup(e){if(this.isGroupCollapsable(e)){const t=this.$groups[e];t&&!this.isGroupCollapsed(e)&&(this.trigger("group:collapse",{name:e}),t.addClass("collapsed"))}return this}expandGroup(e){if(this.isGroupCollapsable(e)){const t=this.$groups[e];t&&this.isGroupCollapsed(e)&&(this.trigger("group:expand",{name:e}),t.removeClass("collapsed"))}return this}isGroupCollapsable(e){const t=this.$groups[e];return t.hasClass("collapsable")}isGroupCollapsed(e){const t=this.$groups[e];return t&&t.hasClass("collapsed")}collapseGroups(){return Object.keys(this.$groups).forEach(e=>this.collapseGroup(e)),this}expandGroups(){return Object.keys(this.$groups).forEach(e=>this.expandGroup(e)),this}onRemove(){Object.keys(this.graphs).forEach(e=>{const t=this.graphs[e];t.view.remove(),delete this.graphs[e]}),this.dnd.remove(),this.stopListening(),this.undelegateDocumentEvents()}}function ER(){if(_C.trackable){const e="https://kcart.alipay.com/web/bi.do",t=new Image,n=Object.assign(Object.assign({},_C.trackInfo),{version:bC,pg:document.URL,r:(new Date).getTime(),x6:!0,page_type:"syslog"}),i=encodeURIComponent(JSON.stringify([n]));t.src=`${e}?BIProfile=merge&d=${i}`}}(function(e){e.defaultOptions=Object.assign({stencilGraphWidth:200,stencilGraphHeight:800,title:"Stencil",collapsable:!1,placeholder:"Search",notFoundText:"No matches found",layout(e,t){const n={columnWidth:this.options.stencilGraphWidth/2-10,columns:2,rowHeight:80,resizeToFit:!1,dx:10,dy:10};bR(e,Object.assign(Object.assign(Object.assign({},n),this.options.layoutOptions),t?t.layoutOptions:{}))}},yR.defaults)})(SR||(SR={})),function(e){e.base="widget-stencil",e.title=`${e.base}-title`,e.search=`${e.base}-search`,e.searchText=`${e.search}-text`,e.content=`${e.base}-content`,e.group=`${e.base}-group`,e.groupTitle=`${e.group}-title`,e.groupContent=`${e.group}-content`}(mR||(mR={})),function(e){e.defaultGroupName="__default__"}(vR||(vR={})),_C.trackable&&setTimeout(ER,3e3),n.d(t,"g",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"i",(function(){return fS})),n.d(t,"e",(function(){return eA})),n.d(t,"a",(function(){return dA})),n.d(t,"d",(function(){return Dx})),n.d(t,"f",(function(){return fA})),n.d(t,"c",(function(){return uR})),n.d(t,"h",(function(){return x}))},"57a5":function(e,t,n){var i=n("91e9"),r=i(Object.keys,Object);e.exports=r},"585a":function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("c8ba"))},5866:function(e,t,n){var i=n("ef2b"),r=i.forceLayout,o=n("1c5f"),a=o.simpleLayout,s=n("94e4"),l=s.circularLayout,c=n("3842"),u=c.linearMap,d=n("401b"),h=n("6d8b"),p=n("0c37"),f=p.getCurvenessForEdge;function g(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},i=e.getGraph(),o=i.data,s=i.edgeData,c=e.getModel("force"),p=c.get("initLayout");e.preservedPoints?o.each((function(e){var t=o.getId(e);o.setItemLayout(e,n[t]||[NaN,NaN])})):p&&"none"!==p?"circular"===p&&l(e,"value"):a(e);var g=o.getDataExtent("value"),m=s.getDataExtent("value"),v=c.get("repulsion"),_=c.get("edgeLength");h.isArray(v)||(v=[v,v]),h.isArray(_)||(_=[_,_]),_=[_[1],_[0]];var y=o.mapArray("value",(function(e,t){var n=o.getItemLayout(t),i=u(e,g,v);return isNaN(i)&&(i=(v[0]+v[1])/2),{w:i,rep:i,fixed:o.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),b=s.mapArray("value",(function(t,n){var r=i.getEdgeByIndex(n),o=u(t,m,_);isNaN(o)&&(o=(_[0]+_[1])/2);var a=r.getModel(),s=h.retrieve3(a.get("lineStyle.curveness"),-f(r,e,n,!0),0);return{n1:y[r.node1.dataIndex],n2:y[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),S=(t=e.coordinateSystem,t.getBoundingRect()),E=r(y,b,{rect:S,gravity:c.get("gravity"),friction:c.get("friction")}),C=E.step;E.step=function(e){for(var t=0,r=y.length;t \r\n]","[\\[\\]\\.,\\+\\-<> \r\n]",{returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?:\+\+|\-\-)/,contains:[t]},t]}}},5924:function(e,t,n){"use strict";t.__esModule=!0,t.isInContainer=t.getScrollContainer=t.isScroll=t.getStyle=t.once=t.off=t.on=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.hasClass=g,t.addClass=m,t.removeClass=v,t.setStyle=y;var r=n("a026"),o=a(r);function a(e){return e&&e.__esModule?e:{default:e}}var s=o.default.prototype.$isServer,l=/([\:\-\_]+(.))/g,c=/^moz([A-Z])/,u=s?0:Number(document.documentMode),d=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},h=function(e){return e.replace(l,(function(e,t,n,i){return i?n.toUpperCase():n})).replace(c,"Moz$1")},p=t.on=function(){return!s&&document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)}}(),f=t.off=function(){return!s&&document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)}}();t.once=function(e,t,n){var i=function i(){n&&n.apply(this,arguments),f(e,t,i)};p(e,t,i)};function g(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}function m(e,t){if(e){for(var n=e.className,i=(t||"").split(" "),r=0,o=i.length;ri.top&&n.right>i.left&&n.lefte?c():!0!==t&&(r=setTimeout(i?u:c,void 0===i?e-s:e))}return("boolean"!==typeof t&&(i=n,n=t,t=void 0),a)}},"5a34":function(e,t,n){var i=n("44e7");e.exports=function(e){if(i(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5a3e":function(e,t){e.exports=function(e){return{aliases:["vbs"],case_insensitive:!0,keywords:{keyword:"call class const dim do loop erase execute executeglobal exit for each next function if then else on error option explicit new private property let get public randomize redim rem select case set stop sub while wend with end to elseif is or xor and not class_initialize class_terminate default preserve in me byval byref step resume goto",built_in:"lcase month vartype instrrev ubound setlocale getobject rgb getref string weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency conversions csng timevalue second year space abs clng timeserial fixs len asc isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim strcomp int createobject loadpicture tan formatnumber mid scriptenginebuildversion scriptengine split scriptengineminorversion cint sin datepart ltrim sqr scriptenginemajorversion time derived eval date formatpercent exp inputbox left ascw chrw regexp server response request cstr err",literal:"true false null nothing empty"},illegal:"//",contains:[e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}},"5a94":function(e,t,n){var i=n("b367")("keys"),r=n("8b1a");e.exports=function(e){return i[e]||(i[e]=r(e))}},"5aa9":function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),o=r.isObject,a=r.each,s=r.map,l=r.indexOf,c=(r.retrieve,n("f934")),u=c.getLayoutRect,d=n("697e"),h=d.createScaleByModel,p=d.ifAxisCrossZero,f=d.niceScaleExtent,g=d.estimateLabelUnionRect,m=n("cbe9"),v=n("ec02"),_=n("2039"),y=n("ee1a"),b=y.getStackedDimension;function S(e,t,n){return e.getCoordSysModel()===t}function E(e,t,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(e,t,n),this.model=e}n("8ed2");var C=E.prototype;function x(e,t,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=e[t],a=n.model,s=a.get("axisLine.onZero"),l=a.get("axisLine.onZeroAxisIndex");if(s){if(null!=l)w(o[l])&&(r=o[l]);else for(var c in o)if(o.hasOwnProperty(c)&&w(o[c])&&!i[u(o[c])]){r=o[c];break}r&&(i[u(r)]=!0)}function u(e){return e.dim+"_"+e.index}}function w(e){return e&&"category"!==e.type&&"time"!==e.type&&p(e)}function T(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return i-e+t}}C.type="grid",C.axisPointerEnabled=!0,C.getRect=function(){return this._rect},C.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model),a(n.x,(function(e){f(e.scale,e.model)})),a(n.y,(function(e){f(e.scale,e.model)}));var i={};a(n.x,(function(e){x(n,"y",e,i)})),a(n.y,(function(e){x(n,"x",e,i)})),this.resize(this.model,t)},C.resize=function(e,t,n){var i=u(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});this._rect=i;var r=this._axesList;function o(){a(r,(function(e){var t=e.isHorizontal(),n=t?[0,i.width]:[0,i.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),T(e,t?i.x:i.y)}))}o(),!n&&e.get("containLabel")&&(a(r,(function(e){if(!e.model.get("axisLabel.inside")){var t=g(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get("axisLabel.margin");i[n]-=t[n]+r,"top"===e.position?i.y+=t.height+r:"left"===e.position&&(i.x+=t.width+r)}}})),o())},C.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n){if(null==t)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[t]}},C.getAxes=function(){return this._axesList.slice()},C.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}o(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,r=this._coordsList;i0?n("li",{staticClass:"number",class:{active:1===e.currentPage,disabled:e.disabled}},[e._v("1")]):e._e(),e.showPrevMore?n("li",{staticClass:"el-icon more btn-quickprev",class:[e.quickprevIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("left")},mouseleave:function(t){e.quickprevIconClass="el-icon-more"}}}):e._e(),e._l(e.pagers,(function(t){return n("li",{key:t,staticClass:"number",class:{active:e.currentPage===t,disabled:e.disabled}},[e._v(e._s(t))])})),e.showNextMore?n("li",{staticClass:"el-icon more btn-quicknext",class:[e.quicknextIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("right")},mouseleave:function(t){e.quicknextIconClass="el-icon-more"}}}):e._e(),e.pageCount>1?n("li",{staticClass:"number",class:{active:e.currentPage===e.pageCount,disabled:e.disabled}},[e._v(e._s(e.pageCount))]):e._e()],2)},r=[];i._withStripped=!0;var o={name:"ElPager",props:{currentPage:Number,pageCount:Number,pagerCount:Number,disabled:Boolean},watch:{showPrevMore:function(e){e||(this.quickprevIconClass="el-icon-more")},showNextMore:function(e){e||(this.quicknextIconClass="el-icon-more")}},methods:{onPagerClick:function(e){var t=e.target;if("UL"!==t.tagName&&!this.disabled){var n=Number(e.target.textContent),i=this.pageCount,r=this.currentPage,o=this.pagerCount-2;-1!==t.className.indexOf("more")&&(-1!==t.className.indexOf("quickprev")?n=r-o:-1!==t.className.indexOf("quicknext")&&(n=r+o)),isNaN(n)||(n<1&&(n=1),n>i&&(n=i)),n!==r&&this.$emit("change",n)}},onMouseenter:function(e){this.disabled||("left"===e?this.quickprevIconClass="el-icon-d-arrow-left":this.quicknextIconClass="el-icon-d-arrow-right")}},computed:{pagers:function(){var e=this.pagerCount,t=(e-1)/2,n=Number(this.currentPage),i=Number(this.pageCount),r=!1,o=!1;i>e&&(n>e-t&&(r=!0),n4&&e<22&&e%2===1},default:7},currentPage:{type:Number,default:1},layout:{default:"prev, pager, next, jumper, ->, total"},pageSizes:{type:Array,default:function(){return[10,20,30,40,50,100]}},popperClass:String,prevText:String,nextText:String,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean},data:function(){return{internalCurrentPage:1,internalPageSize:0,lastEmittedPage:-1,userChangePageSize:!1}},render:function(e){var t=this.layout;if(!t)return null;if(this.hideOnSinglePage&&(!this.internalPageCount||1===this.internalPageCount))return null;var n=e("div",{class:["el-pagination",{"is-background":this.background,"el-pagination--small":this.small}]}),i={prev:e("prev"),jumper:e("jumper"),pager:e("pager",{attrs:{currentPage:this.internalCurrentPage,pageCount:this.internalPageCount,pagerCount:this.pagerCount,disabled:this.disabled},on:{change:this.handleCurrentChange}}),next:e("next"),sizes:e("sizes",{attrs:{pageSizes:this.pageSizes}}),slot:e("slot",[this.$slots.default?this.$slots.default:""]),total:e("total")},r=t.split(",").map((function(e){return e.trim()})),o=e("div",{class:"el-pagination__rightwrapper"}),a=!1;return n.children=n.children||[],o.children=o.children||[],r.forEach((function(e){"->"!==e?a?o.children.push(i[e]):n.children.push(i[e]):a=!0})),a&&n.children.unshift(o),n},components:{Prev:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage<=1},class:"btn-prev",on:{click:this.$parent.prev}},[this.$parent.prevText?e("span",[this.$parent.prevText]):e("i",{class:"el-icon el-icon-arrow-left"})])}},Next:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage===this.$parent.internalPageCount||0===this.$parent.internalPageCount},class:"btn-next",on:{click:this.$parent.next}},[this.$parent.nextText?e("span",[this.$parent.nextText]):e("i",{class:"el-icon el-icon-arrow-right"})])}},Sizes:{mixins:[v.a],props:{pageSizes:Array},watch:{pageSizes:{immediate:!0,handler:function(e,t){Object(_["valueEquals"])(e,t)||Array.isArray(e)&&(this.$parent.internalPageSize=e.indexOf(this.$parent.pageSize)>-1?this.$parent.pageSize:this.pageSizes[0])}}},render:function(e){var t=this;return e("span",{class:"el-pagination__sizes"},[e("el-select",{attrs:{value:this.$parent.internalPageSize,popperClass:this.$parent.popperClass||"",size:"mini",disabled:this.$parent.disabled},on:{input:this.handleChange}},[this.pageSizes.map((function(n){return e("el-option",{attrs:{value:n,label:n+t.t("el.pagination.pagesize")}})}))])])},components:{ElSelect:d.a,ElOption:p.a},methods:{handleChange:function(e){e!==this.$parent.internalPageSize&&(this.$parent.internalPageSize=e=parseInt(e,10),this.$parent.userChangePageSize=!0,this.$parent.$emit("update:pageSize",e),this.$parent.$emit("size-change",e))}}},Jumper:{mixins:[v.a],components:{ElInput:g.a},data:function(){return{userInput:null}},watch:{"$parent.internalCurrentPage":function(){this.userInput=null}},methods:{handleKeyup:function(e){var t=e.keyCode,n=e.target;13===t&&this.handleChange(n.value)},handleInput:function(e){this.userInput=e},handleChange:function(e){this.$parent.internalCurrentPage=this.$parent.getValidCurrentPage(e),this.$parent.emitChange(),this.userInput=null}},render:function(e){return e("span",{class:"el-pagination__jump"},[this.t("el.pagination.goto"),e("el-input",{class:"el-pagination__editor is-in-pagination",attrs:{min:1,max:this.$parent.internalPageCount,value:null!==this.userInput?this.userInput:this.$parent.internalCurrentPage,type:"number",disabled:this.$parent.disabled},nativeOn:{keyup:this.handleKeyup},on:{input:this.handleInput,change:this.handleChange}}),this.t("el.pagination.pageClassifier")])}},Total:{mixins:[v.a],render:function(e){return"number"===typeof this.$parent.total?e("span",{class:"el-pagination__total"},[this.t("el.pagination.total",{total:this.$parent.total})]):""}},Pager:c},methods:{handleCurrentChange:function(e){this.internalCurrentPage=this.getValidCurrentPage(e),this.userChangePageSize=!0,this.emitChange()},prev:function(){if(!this.disabled){var e=this.internalCurrentPage-1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("prev-click",this.internalCurrentPage),this.emitChange()}},next:function(){if(!this.disabled){var e=this.internalCurrentPage+1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("next-click",this.internalCurrentPage),this.emitChange()}},getValidCurrentPage:function(e){e=parseInt(e,10);var t="number"===typeof this.internalPageCount,n=void 0;return t?e<1?n=1:e>this.internalPageCount&&(n=this.internalPageCount):(isNaN(e)||e<1)&&(n=1),void 0===n&&isNaN(e)?n=1:0===n&&(n=1),void 0===n?e:n},emitChange:function(){var e=this;this.$nextTick((function(){(e.internalCurrentPage!==e.lastEmittedPage||e.userChangePageSize)&&(e.$emit("current-change",e.internalCurrentPage),e.lastEmittedPage=e.internalCurrentPage,e.userChangePageSize=!1)}))}},computed:{internalPageCount:function(){return"number"===typeof this.total?Math.max(1,Math.ceil(this.total/this.internalPageSize)):"number"===typeof this.pageCount?Math.max(1,this.pageCount):null}},watch:{currentPage:{immediate:!0,handler:function(e){this.internalCurrentPage=this.getValidCurrentPage(e)}},pageSize:{immediate:!0,handler:function(e){this.internalPageSize=isNaN(e)?10:e}},internalCurrentPage:{immediate:!0,handler:function(e){this.$emit("update:currentPage",e),this.lastEmittedPage=-1}},internalPageCount:function(e){var t=this.internalCurrentPage;e>0&&0===t?this.internalCurrentPage=1:t>e&&(this.internalCurrentPage=0===e?1:e,this.userChangePageSize&&this.emitChange()),this.userChangePageSize=!1}},install:function(e){e.component(y.name,y)}},b=y,S=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"dialog-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{key:e.key,ref:"dialog",class:["el-dialog",{"is-fullscreen":e.fullscreen,"el-dialog--center":e.center},e.customClass],style:e.style,attrs:{role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"}},[n("div",{staticClass:"el-dialog__header"},[e._t("title",[n("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-dialog__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:e.handleClose}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2),e.rendered?n("div",{staticClass:"el-dialog__body"},[e._t("default")],2):e._e(),e.$slots.footer?n("div",{staticClass:"el-dialog__footer"},[e._t("footer")],2):e._e()])])])},E=[];S._withStripped=!0;var C=n(13),x=n.n(C),w=n(9),T=n.n(w),A=n(3),O=n.n(A),R={name:"ElDialog",mixins:[x.a,O.a,T.a],props:{title:{type:String,default:""},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1},destroyOnClose:Boolean},data:function(){return{closed:!1,key:0}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick((function(){t.$refs.dialog.scrollTop=0})),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"),this.destroyOnClose&&this.$nextTick((function(){t.key++})))}},computed:{style:function(){var e={};return this.fullscreen||(e.marginTop=this.top,this.width&&(e.width=this.width)),e}},methods:{getMigratingConfig:function(){return{props:{size:"size is removed."}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){"function"===typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper:function(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},N=R,D=s(N,S,E,!1,null,null,null);D.options.__file="packages/dialog/src/component.vue";var I=D.exports;I.install=function(e){e.component(I.name,I)};var M=I,k=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.close,expression:"close"}],staticClass:"el-autocomplete",attrs:{"aria-haspopup":"listbox",role:"combobox","aria-expanded":e.suggestionVisible,"aria-owns":e.id}},[n("el-input",e._b({ref:"input",on:{input:e.handleInput,change:e.handleChange,focus:e.handleFocus,blur:e.handleBlur,clear:e.handleClear},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex-1)},function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex+1)},function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleKeyEnter(t):null},function(t){return"button"in t||!e._k(t.keyCode,"tab",9,t.key,"Tab")?e.close(t):null}]}},"el-input",[e.$props,e.$attrs],!1),[e.$slots.prepend?n("template",{slot:"prepend"},[e._t("prepend")],2):e._e(),e.$slots.append?n("template",{slot:"append"},[e._t("append")],2):e._e(),e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),e.$slots.suffix?n("template",{slot:"suffix"},[e._t("suffix")],2):e._e()],2),n("el-autocomplete-suggestions",{ref:"suggestions",class:[e.popperClass?e.popperClass:""],attrs:{"visible-arrow":"","popper-options":e.popperOptions,"append-to-body":e.popperAppendToBody,placement:e.placement,id:e.id}},e._l(e.suggestions,(function(t,i){return n("li",{key:i,class:{highlighted:e.highlightedIndex===i},attrs:{id:e.id+"-item-"+i,role:"option","aria-selected":e.highlightedIndex===i},on:{click:function(n){e.select(t)}}},[e._t("default",[e._v("\n "+e._s(t[e.valueKey])+"\n ")],{item:t})],2)})),0)],1)},L=[];k._withStripped=!0;var P=n(14),F=n.n(P),B=n(10),$=n.n(B),V=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-autocomplete-suggestion el-popper",class:{"is-loading":!e.parent.hideLoading&&e.parent.loading},style:{width:e.dropdownWidth},attrs:{role:"region"}},[n("el-scrollbar",{attrs:{tag:"ul","wrap-class":"el-autocomplete-suggestion__wrap","view-class":"el-autocomplete-suggestion__list"}},[!e.parent.hideLoading&&e.parent.loading?n("li",[n("i",{staticClass:"el-icon-loading"})]):e._t("default")],2)],1)])},G=[];V._withStripped=!0;var U=n(5),z=n.n(U),j=n(17),H=n.n(j),W={components:{ElScrollbar:H.a},mixins:[z.a,O.a],componentName:"ElAutocompleteSuggestions",data:function(){return{parent:this.$parent,dropdownWidth:""}},props:{options:{default:function(){return{gpuAcceleration:!1}}},id:String},methods:{select:function(e){this.dispatch("ElAutocomplete","item-click",e)}},updated:function(){var e=this;this.$nextTick((function(t){e.popperJS&&e.updatePopper()}))},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$refs.input.$refs.input||this.$parent.$refs.input.$refs.textarea,this.referenceList=this.$el.querySelector(".el-autocomplete-suggestion__list"),this.referenceList.setAttribute("role","listbox"),this.referenceList.setAttribute("id",this.id)},created:function(){var e=this;this.$on("visible",(function(t,n){e.dropdownWidth=n+"px",e.showPopper=t}))}},Y=W,q=s(Y,V,G,!1,null,null,null);q.options.__file="packages/autocomplete/src/autocomplete-suggestions.vue";var K=q.exports,Q=n(22),X=n.n(Q),Z={name:"ElAutocomplete",mixins:[O.a,X()("input"),T.a],inheritAttrs:!1,componentName:"ElAutocomplete",components:{ElInput:g.a,ElAutocompleteSuggestions:K},directives:{Clickoutside:$.a},props:{valueKey:{type:String,default:"value"},popperClass:String,popperOptions:Object,placeholder:String,clearable:{type:Boolean,default:!1},disabled:Boolean,name:String,size:String,value:String,maxlength:Number,minlength:Number,autofocus:Boolean,fetchSuggestions:Function,triggerOnFocus:{type:Boolean,default:!0},customItem:String,selectWhenUnmatched:{type:Boolean,default:!1},prefixIcon:String,suffixIcon:String,label:String,debounce:{type:Number,default:300},placement:{type:String,default:"bottom-start"},hideLoading:Boolean,popperAppendToBody:{type:Boolean,default:!0},highlightFirstItem:{type:Boolean,default:!1}},data:function(){return{activated:!1,suggestions:[],loading:!1,highlightedIndex:-1,suggestionDisabled:!1}},computed:{suggestionVisible:function(){var e=this.suggestions,t=Array.isArray(e)&&e.length>0;return(t||this.loading)&&this.activated},id:function(){return"el-autocomplete-"+Object(_["generateId"])()}},watch:{suggestionVisible:function(e){var t=this.getInput();t&&this.broadcast("ElAutocompleteSuggestions","visible",[e,t.offsetWidth])}},methods:{getMigratingConfig:function(){return{props:{"custom-item":"custom-item is removed, use scoped slot instead.",props:"props is removed, use value-key instead."}}},getData:function(e){var t=this;this.suggestionDisabled||(this.loading=!0,this.fetchSuggestions(e,(function(e){t.loading=!1,t.suggestionDisabled||(Array.isArray(e)?(t.suggestions=e,t.highlightedIndex=t.highlightFirstItem?0:-1):console.error("[Element Error][Autocomplete]autocomplete suggestions must be an array"))})))},handleInput:function(e){if(this.$emit("input",e),this.suggestionDisabled=!1,!this.triggerOnFocus&&!e)return this.suggestionDisabled=!0,void(this.suggestions=[]);this.debouncedGetData(e)},handleChange:function(e){this.$emit("change",e)},handleFocus:function(e){this.activated=!0,this.$emit("focus",e),this.triggerOnFocus&&this.debouncedGetData(this.value)},handleBlur:function(e){this.$emit("blur",e)},handleClear:function(){this.activated=!1,this.$emit("clear")},close:function(e){this.activated=!1},handleKeyEnter:function(e){var t=this;this.suggestionVisible&&this.highlightedIndex>=0&&this.highlightedIndex=this.suggestions.length&&(e=this.suggestions.length-1);var t=this.$refs.suggestions.$el.querySelector(".el-autocomplete-suggestion__wrap"),n=t.querySelectorAll(".el-autocomplete-suggestion__list li"),i=n[e],r=t.scrollTop,o=i.offsetTop;o+i.scrollHeight>r+t.clientHeight&&(t.scrollTop+=i.scrollHeight),o=0&&this.resetTabindex(this.triggerElm),clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.visible=!1}),"click"===this.trigger?0:this.hideTimeout))},handleClick:function(){this.triggerElm.disabled||(this.visible?this.hide():this.show())},handleTriggerKeyDown:function(e){var t=e.keyCode;[38,40].indexOf(t)>-1?(this.removeTabindex(),this.resetTabindex(this.menuItems[0]),this.menuItems[0].focus(),e.preventDefault(),e.stopPropagation()):13===t?this.handleClick():[9,27].indexOf(t)>-1&&this.hide()},handleItemKeyDown:function(e){var t=e.keyCode,n=e.target,i=this.menuItemsArray.indexOf(n),r=this.menuItemsArray.length-1,o=void 0;[38,40].indexOf(t)>-1?(o=38===t?0!==i?i-1:0:i-1&&(this.hide(),this.triggerElmFocus())},resetTabindex:function(e){this.removeTabindex(),e.setAttribute("tabindex","0")},removeTabindex:function(){this.triggerElm.setAttribute("tabindex","-1"),this.menuItemsArray.forEach((function(e){e.setAttribute("tabindex","-1")}))},initAria:function(){this.dropdownElm.setAttribute("id",this.listId),this.triggerElm.setAttribute("aria-haspopup","list"),this.triggerElm.setAttribute("aria-controls",this.listId),this.splitButton||(this.triggerElm.setAttribute("role","button"),this.triggerElm.setAttribute("tabindex",this.tabindex),this.triggerElm.setAttribute("class",(this.triggerElm.getAttribute("class")||"")+" el-dropdown-selfdefine"))},initEvent:function(){var e=this,t=this.trigger,n=this.show,i=this.hide,r=this.handleClick,o=this.splitButton,a=this.handleTriggerKeyDown,s=this.handleItemKeyDown;this.triggerElm=o?this.$refs.trigger.$el:this.$slots.default[0].elm;var l=this.dropdownElm;this.triggerElm.addEventListener("keydown",a),l.addEventListener("keydown",s,!0),o||(this.triggerElm.addEventListener("focus",(function(){e.focusing=!0})),this.triggerElm.addEventListener("blur",(function(){e.focusing=!1})),this.triggerElm.addEventListener("click",(function(){e.focusing=!1}))),"hover"===t?(this.triggerElm.addEventListener("mouseenter",n),this.triggerElm.addEventListener("mouseleave",i),l.addEventListener("mouseenter",n),l.addEventListener("mouseleave",i)):"click"===t&&this.triggerElm.addEventListener("click",r)},handleMenuItemClick:function(e,t){this.hideOnClick&&(this.visible=!1),this.$emit("command",e,t)},triggerElmFocus:function(){this.triggerElm.focus&&this.triggerElm.focus()},initDomOperation:function(){this.dropdownElm=this.popperElm,this.menuItems=this.dropdownElm.querySelectorAll("[tabindex='-1']"),this.menuItemsArray=[].slice.call(this.menuItems),this.initEvent(),this.initAria()}},render:function(e){var t=this,n=this.hide,i=this.splitButton,r=this.type,o=this.dropdownSize,a=function(e){t.$emit("click",e),n()},s=i?e("el-button-group",[e("el-button",{attrs:{type:r,size:o},nativeOn:{click:a}},[this.$slots.default]),e("el-button",{ref:"trigger",attrs:{type:r,size:o},class:"el-dropdown__caret-button"},[e("i",{class:"el-dropdown__icon el-icon-arrow-down"})])]):this.$slots.default;return e("div",{class:"el-dropdown",directives:[{name:"clickoutside",value:n}]},[s,this.$slots.dropdown])}},ue=ce,de=s(ue,ne,ie,!1,null,null,null);de.options.__file="packages/dropdown/src/dropdown.vue";var he=de.exports;he.install=function(e){e.component(he.name,he)};var pe=he,fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-dropdown-menu el-popper",class:[e.size&&"el-dropdown-menu--"+e.size]},[e._t("default")],2)])},ge=[];fe._withStripped=!0;var me={name:"ElDropdownMenu",componentName:"ElDropdownMenu",mixins:[z.a],props:{visibleArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:0}},data:function(){return{size:this.dropdown.dropdownSize}},inject:["dropdown"],created:function(){var e=this;this.$on("updatePopper",(function(){e.showPopper&&e.updatePopper()})),this.$on("visible",(function(t){e.showPopper=t}))},mounted:function(){this.dropdown.popperElm=this.popperElm=this.$el,this.referenceElm=this.dropdown.$el,this.dropdown.initDomOperation()},watch:{"dropdown.placement":{immediate:!0,handler:function(e){this.currentPlacement=e}}}},ve=me,_e=s(ve,fe,ge,!1,null,null,null);_e.options.__file="packages/dropdown/src/dropdown-menu.vue";var ye=_e.exports;ye.install=function(e){e.component(ye.name,ye)};var be=ye,Se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":e.disabled,"el-dropdown-menu__item--divided":e.divided},attrs:{"aria-disabled":e.disabled,tabindex:e.disabled?null:-1},on:{click:e.handleClick}},[e.icon?n("i",{class:e.icon}):e._e(),e._t("default")],2)},Ee=[];Se._withStripped=!0;var Ce={name:"ElDropdownItem",mixins:[O.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(e){this.dispatch("ElDropdown","menu-item-click",[this.command,this])}}},xe=Ce,we=s(xe,Se,Ee,!1,null,null,null);we.options.__file="packages/dropdown/src/dropdown-item.vue";var Te=we.exports;Te.install=function(e){e.component(Te.name,Te)};var Ae=Te,Oe=Oe||{};Oe.Utils=Oe.Utils||{},Oe.Utils.focusFirstDescendant=function(e){for(var t=0;t=0;t--){var n=e.childNodes[t];if(Oe.Utils.attemptFocus(n)||Oe.Utils.focusLastDescendant(n))return!0}return!1},Oe.Utils.attemptFocus=function(e){if(!Oe.Utils.isFocusable(e))return!1;Oe.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){}return Oe.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},Oe.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Oe.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var i=document.createEvent(n),r=arguments.length,o=Array(r>2?r-2:0),a=2;a=0;t--)e.splice(t,0,e[t]);e=e.join("")}return/^[0-9a-fA-F]{6}$/.test(e)?{red:parseInt(e.slice(0,2),16),green:parseInt(e.slice(2,4),16),blue:parseInt(e.slice(4,6),16)}:{red:255,green:255,blue:255}},mixColor:function(e,t){var n=this.getColorChannels(e),i=n.red,r=n.green,o=n.blue;return t>0?(i*=1-t,r*=1-t,o*=1-t):(i+=(255-i)*t,r+=(255-r)*t,o+=(255-o)*t),"rgb("+Math.round(i)+", "+Math.round(r)+", "+Math.round(o)+")"},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},openMenu:function(e,t){var n=this.openedMenus;-1===n.indexOf(e)&&(this.uniqueOpened&&(this.openedMenus=n.filter((function(e){return-1!==t.indexOf(e)}))),this.openedMenus.push(e))},closeMenu:function(e){var t=this.openedMenus.indexOf(e);-1!==t&&this.openedMenus.splice(t,1)},handleSubmenuClick:function(e){var t=e.index,n=e.indexPath,i=-1!==this.openedMenus.indexOf(t);i?(this.closeMenu(t),this.$emit("close",t,n)):(this.openMenu(t,n),this.$emit("open",t,n))},handleItemClick:function(e){var t=this,n=e.index,i=e.indexPath,r=this.activeIndex,o=null!==e.index;o&&(this.activeIndex=e.index),this.$emit("select",n,i,e),("horizontal"===this.mode||this.collapse)&&(this.openedMenus=[]),this.router&&o&&this.routeToItem(e,(function(e){if(t.activeIndex=r,e){if("NavigationDuplicated"===e.name)return;console.error(e)}}))},initOpenedMenu:function(){var e=this,t=this.activeIndex,n=this.items[t];if(n&&"horizontal"!==this.mode&&!this.collapse){var i=n.indexPath;i.forEach((function(t){var n=e.submenus[t];n&&e.openMenu(t,n.indexPath)}))}},routeToItem:function(e,t){var n=e.route||e.index;try{this.$router.push(n,(function(){}),t)}catch(i){console.error(i)}},open:function(e){var t=this,n=this.submenus[e.toString()].indexPath;n.forEach((function(e){return t.openMenu(e,n)}))},close:function(e){this.closeMenu(e)}},mounted:function(){this.initOpenedMenu(),this.$on("item-click",this.handleItemClick),this.$on("submenu-click",this.handleSubmenuClick),"horizontal"===this.mode&&new Fe(this.$el),this.$watch("items",this.updateActiveIndex)}},Ve=$e,Ge=s(Ve,Le,Pe,!1,null,null,null);Ge.options.__file="packages/menu/src/menu.vue";var Ue=Ge.exports;Ue.install=function(e){e.component(Ue.name,Ue)};var ze,je,He=Ue,We=n(21),Ye=n.n(We),qe={inject:["rootMenu"],computed:{indexPath:function(){var e=[this.index],t=this.$parent;while("ElMenu"!==t.$options.componentName)t.index&&e.unshift(t.index),t=t.$parent;return e},parentMenu:function(){var e=this.$parent;while(e&&-1===["ElMenu","ElSubmenu"].indexOf(e.$options.componentName))e=e.$parent;return e},paddingStyle:function(){if("vertical"!==this.rootMenu.mode)return{};var e=20,t=this.$parent;if(this.rootMenu.collapse)e=20;else while(t&&"ElMenu"!==t.$options.componentName)"ElSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return{paddingLeft:e+"px"}}}},Ke={props:{transformOrigin:{type:[Boolean,String],default:!1},offset:z.a.props.offset,boundariesPadding:z.a.props.boundariesPadding,popperOptions:z.a.props.popperOptions},data:z.a.data,methods:z.a.methods,beforeDestroy:z.a.beforeDestroy,deactivated:z.a.deactivated},Qe={name:"ElSubmenu",componentName:"ElSubmenu",mixins:[qe,O.a,Ke],components:{ElCollapseTransition:Ye.a},props:{index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0}},data:function(){return{popperJS:null,timeout:null,items:{},submenus:{},mouseInChild:!1}},watch:{opened:function(e){var t=this;this.isMenuPopup&&this.$nextTick((function(e){t.updatePopper()}))}},computed:{appendToBody:function(){return void 0===this.popperAppendToBody?this.isFirstLevel:this.popperAppendToBody},menuTransitionName:function(){return this.rootMenu.collapse?"el-zoom-in-left":"el-zoom-in-top"},opened:function(){return this.rootMenu.openedMenus.indexOf(this.index)>-1},active:function(){var e=!1,t=this.submenus,n=this.items;return Object.keys(n).forEach((function(t){n[t].active&&(e=!0)})),Object.keys(t).forEach((function(n){t[n].active&&(e=!0)})),e},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},isMenuPopup:function(){return this.rootMenu.isMenuPopup},titleStyle:function(){return"horizontal"!==this.mode?{color:this.textColor}:{borderBottomColor:this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent",color:this.active?this.activeTextColor:this.textColor}},isFirstLevel:function(){var e=!0,t=this.$parent;while(t&&t!==this.rootMenu){if(["ElSubmenu","ElMenuItemGroup"].indexOf(t.$options.componentName)>-1){e=!1;break}t=t.$parent}return e}},methods:{handleCollapseToggle:function(e){e?this.initPopper():this.doDestroy()},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},handleClick:function(){var e=this.rootMenu,t=this.disabled;"hover"===e.menuTrigger&&"horizontal"===e.mode||e.collapse&&"vertical"===e.mode||t||this.dispatch("ElMenu","submenu-click",this)},handleMouseenter:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.showTimeout;if("ActiveXObject"in window||"focus"!==e.type||e.relatedTarget){var i=this.rootMenu,r=this.disabled;"click"===i.menuTrigger&&"horizontal"===i.mode||!i.collapse&&"vertical"===i.mode||r||(this.dispatch("ElSubmenu","mouse-enter-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.rootMenu.openMenu(t.index,t.indexPath)}),n),this.appendToBody&&this.$parent.$el.dispatchEvent(new MouseEvent("mouseenter")))}},handleMouseleave:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.rootMenu;"click"===n.menuTrigger&&"horizontal"===n.mode||!n.collapse&&"vertical"===n.mode||(this.dispatch("ElSubmenu","mouse-leave-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){!e.mouseInChild&&e.rootMenu.closeMenu(e.index)}),this.hideTimeout),this.appendToBody&&t&&"ElSubmenu"===this.$parent.$options.name&&this.$parent.handleMouseleave(!0))},handleTitleMouseenter:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var e=this.$refs["submenu-title"];e&&(e.style.backgroundColor=this.rootMenu.hoverBackground)}},handleTitleMouseleave:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var e=this.$refs["submenu-title"];e&&(e.style.backgroundColor=this.rootMenu.backgroundColor||"")}},updatePlacement:function(){this.currentPlacement="horizontal"===this.mode&&this.isFirstLevel?"bottom-start":"right-start"},initPopper:function(){this.referenceElm=this.$el,this.popperElm=this.$refs.menu,this.updatePlacement()}},created:function(){var e=this;this.$on("toggle-collapse",this.handleCollapseToggle),this.$on("mouse-enter-child",(function(){e.mouseInChild=!0,clearTimeout(e.timeout)})),this.$on("mouse-leave-child",(function(){e.mouseInChild=!1,clearTimeout(e.timeout)}))},mounted:function(){this.parentMenu.addSubmenu(this),this.rootMenu.addSubmenu(this),this.initPopper()},beforeDestroy:function(){this.parentMenu.removeSubmenu(this),this.rootMenu.removeSubmenu(this)},render:function(e){var t=this,n=this.active,i=this.opened,r=this.paddingStyle,o=this.titleStyle,a=this.backgroundColor,s=this.rootMenu,l=this.currentPlacement,c=this.menuTransitionName,u=this.mode,d=this.disabled,h=this.popperClass,p=this.$slots,f=this.isFirstLevel,g=e("transition",{attrs:{name:c}},[e("div",{ref:"menu",directives:[{name:"show",value:i}],class:["el-menu--"+u,h],on:{mouseenter:function(e){return t.handleMouseenter(e,100)},mouseleave:function(){return t.handleMouseleave(!0)},focus:function(e){return t.handleMouseenter(e,100)}}},[e("ul",{attrs:{role:"menu"},class:["el-menu el-menu--popup","el-menu--popup-"+l],style:{backgroundColor:s.backgroundColor||""}},[p.default])])]),m=e("el-collapse-transition",[e("ul",{attrs:{role:"menu"},class:"el-menu el-menu--inline",directives:[{name:"show",value:i}],style:{backgroundColor:s.backgroundColor||""}},[p.default])]),v="horizontal"===s.mode&&f||"vertical"===s.mode&&!s.collapse?"el-icon-arrow-down":"el-icon-arrow-right";return e("li",{class:{"el-submenu":!0,"is-active":n,"is-opened":i,"is-disabled":d},attrs:{role:"menuitem","aria-haspopup":"true","aria-expanded":i},on:{mouseenter:this.handleMouseenter,mouseleave:function(){return t.handleMouseleave(!1)},focus:this.handleMouseenter}},[e("div",{class:"el-submenu__title",ref:"submenu-title",on:{click:this.handleClick,mouseenter:this.handleTitleMouseenter,mouseleave:this.handleTitleMouseleave},style:[r,o,{backgroundColor:a}]},[p.title,e("i",{class:["el-submenu__icon-arrow",v]})]),this.isMenuPopup?g:m])}},Xe=Qe,Ze=s(Xe,ze,je,!1,null,null,null);Ze.options.__file="packages/menu/src/submenu.vue";var Je=Ze.exports;Je.install=function(e){e.component(Je.name,Je)};var et=Je,tt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-menu-item",class:{"is-active":e.active,"is-disabled":e.disabled},style:[e.paddingStyle,e.itemStyle,{backgroundColor:e.backgroundColor}],attrs:{role:"menuitem",tabindex:"-1"},on:{click:e.handleClick,mouseenter:e.onMouseEnter,focus:e.onMouseEnter,blur:e.onMouseLeave,mouseleave:e.onMouseLeave}},["ElMenu"===e.parentMenu.$options.componentName&&e.rootMenu.collapse&&e.$slots.title?n("el-tooltip",{attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[e._t("title")],2),n("div",{staticStyle:{position:"absolute",left:"0",top:"0",height:"100%",width:"100%",display:"inline-block","box-sizing":"border-box",padding:"0 20px"}},[e._t("default")],2)]):[e._t("default"),e._t("title")]],2)},nt=[];tt._withStripped=!0;var it=n(26),rt=n.n(it),ot={name:"ElMenuItem",componentName:"ElMenuItem",mixins:[qe,O.a],components:{ElTooltip:rt.a},props:{index:{default:null,validator:function(e){return"string"===typeof e||null===e}},route:[String,Object],disabled:Boolean},computed:{active:function(){return this.index===this.rootMenu.activeIndex},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},itemStyle:function(){var e={color:this.active?this.activeTextColor:this.textColor};return"horizontal"!==this.mode||this.isNested||(e.borderBottomColor=this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent"),e},isNested:function(){return this.parentMenu!==this.rootMenu}},methods:{onMouseEnter:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.hoverBackground)},onMouseLeave:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.backgroundColor)},handleClick:function(){this.disabled||(this.dispatch("ElMenu","item-click",this),this.$emit("click",this))}},mounted:function(){this.parentMenu.addItem(this),this.rootMenu.addItem(this)},beforeDestroy:function(){this.parentMenu.removeItem(this),this.rootMenu.removeItem(this)}},at=ot,st=s(at,tt,nt,!1,null,null,null);st.options.__file="packages/menu/src/menu-item.vue";var lt=st.exports;lt.install=function(e){e.component(lt.name,lt)};var ct=lt,ut=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-menu-item-group"},[n("div",{staticClass:"el-menu-item-group__title",style:{paddingLeft:e.levelPadding+"px"}},[e.$slots.title?e._t("title"):[e._v(e._s(e.title))]],2),n("ul",[e._t("default")],2)])},dt=[];ut._withStripped=!0;var ht={name:"ElMenuItemGroup",componentName:"ElMenuItemGroup",inject:["rootMenu"],props:{title:{type:String}},data:function(){return{paddingLeft:20}},computed:{levelPadding:function(){var e=20,t=this.$parent;if(this.rootMenu.collapse)return 20;while(t&&"ElMenu"!==t.$options.componentName)"ElSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return e}}},pt=ht,ft=s(pt,ut,dt,!1,null,null,null);ft.options.__file="packages/menu/src/menu-item-group.vue";var gt=ft.exports;gt.install=function(e){e.component(gt.name,gt)};var mt=gt,vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)},_t=[];vt._withStripped=!0;var yt=void 0,bt="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",St=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Et(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),i=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),r=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),o=St.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";");return{contextStyle:o,paddingSize:i,borderSize:r,boxSizing:n}}function Ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;yt||(yt=document.createElement("textarea"),document.body.appendChild(yt));var i=Et(e),r=i.paddingSize,o=i.borderSize,a=i.boxSizing,s=i.contextStyle;yt.setAttribute("style",s+";"+bt),yt.value=e.value||e.placeholder||"";var l=yt.scrollHeight,c={};"border-box"===a?l+=o:"content-box"===a&&(l-=r),yt.value="";var u=yt.scrollHeight-r;if(null!==t){var d=u*t;"border-box"===a&&(d=d+r+o),l=Math.max(d,l),c.minHeight=d+"px"}if(null!==n){var h=u*n;"border-box"===a&&(h=h+r+o),l=Math.min(h,l)}return c.height=l+"px",yt.parentNode&&yt.parentNode.removeChild(yt),yt=null,c}var xt=n(7),wt=n.n(xt),Tt=n(19),At={name:"ElInput",componentName:"ElInput",mixins:[O.a,T.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return wt()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"===typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize,t=this.type;if("textarea"===t)if(e){var n=e.minRows,i=e.maxRows;this.textareaCalcStyle=Ct(this.$refs.textarea,n,i)}else this.textareaCalcStyle={minHeight:Ct(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionUpdate:function(e){var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(Tt["isKorean"])(n)},handleCompositionEnd:function(e){this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,i=0;i=0&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;if(this.stepStrictly){var n=this.getPrecision(this.step),i=Math.pow(10,n);t=Math.round(t/this.step)*i*this.step/i}void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,i=this.precision,r=n(t);return void 0!==i?(r>i&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),i):Math.max(n(e),r)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e=this.currentValue;if("number"===typeof e){if(this.stepStrictly){var t=this.getPrecision(this.step),n=Math.pow(10,t);e=Math.round(e/this.step)*n*this.step/n}void 0!==this.precision&&(e=e.toFixed(this.precision))}return e}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),i=0;return-1!==n&&(i=t.length-n-1),i},_increase:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;"number"===typeof e&&void 0!==this.precision&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){if(this.$refs&&this.$refs.input){var e=this.$refs.input.$refs.input;e.setAttribute("aria-valuenow",this.currentValue)}}},Pt=Lt,Ft=s(Pt,It,Mt,!1,null,null,null);Ft.options.__file="packages/input-number/src/input-number.vue";var Bt=Ft.exports;Bt.install=function(e){e.component(Bt.name,Bt)};var $t=Bt,Vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio",class:[e.border&&e.radioSize?"el-radio--"+e.radioSize:"",{"is-disabled":e.isDisabled},{"is-focus":e.focus},{"is-bordered":e.border},{"is-checked":e.model===e.label}],attrs:{role:"radio","aria-checked":e.model===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.model=e.isDisabled?e.model:e.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":e.isDisabled,"is-checked":e.model===e.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:e.name,disabled:e.isDisabled,tabindex:"-1"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])},Gt=[];Vt._withStripped=!0;var Ut={name:"ElRadio",mixins:[O.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){var e=this.$parent;while(e){if("ElRadioGroup"===e.$options.componentName)return this._radioGroup=e,!0;e=e.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(e){this.isGroup?this.dispatch("ElRadioGroup","input",[e]):this.$emit("input",e),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||e},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.model),e.isGroup&&e.dispatch("ElRadioGroup","handleChange",e.model)}))}}},zt=Ut,jt=s(zt,Vt,Gt,!1,null,null,null);jt.options.__file="packages/radio/src/radio.vue";var Ht=jt.exports;Ht.install=function(e){e.component(Ht.name,Ht)};var Wt=Ht,Yt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e._elTag,{tag:"component",staticClass:"el-radio-group",attrs:{role:"radiogroup"},on:{keydown:e.handleKeydown}},[e._t("default")],2)},qt=[];Yt._withStripped=!0;var Kt=Object.freeze({LEFT:37,UP:38,RIGHT:39,DOWN:40}),Qt={name:"ElRadioGroup",componentName:"ElRadioGroup",inject:{elFormItem:{default:""}},mixins:[O.a],props:{value:{},size:String,fill:String,textColor:String,disabled:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},_elTag:function(){return(this.$vnode.data||{}).tag||"div"},radioGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},created:function(){var e=this;this.$on("handleChange",(function(t){e.$emit("change",t)}))},mounted:function(){var e=this.$el.querySelectorAll("[type=radio]"),t=this.$el.querySelectorAll("[role=radio]")[0];![].some.call(e,(function(e){return e.checked}))&&t&&(t.tabIndex=0)},methods:{handleKeydown:function(e){var t=e.target,n="INPUT"===t.nodeName?"[type=radio]":"[role=radio]",i=this.$el.querySelectorAll(n),r=i.length,o=[].indexOf.call(i,t),a=this.$el.querySelectorAll("[role=radio]");switch(e.keyCode){case Kt.LEFT:case Kt.UP:e.stopPropagation(),e.preventDefault(),0===o?(a[r-1].click(),a[r-1].focus()):(a[o-1].click(),a[o-1].focus());break;case Kt.RIGHT:case Kt.DOWN:o===r-1?(e.stopPropagation(),e.preventDefault(),a[0].click(),a[0].focus()):(a[o+1].click(),a[o+1].focus());break;default:break}}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[this.value])}}},Xt=Qt,Zt=s(Xt,Yt,qt,!1,null,null,null);Zt.options.__file="packages/radio/src/radio-group.vue";var Jt=Zt.exports;Jt.install=function(e){e.component(Jt.name,Jt)};var en=Jt,tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio-button",class:[e.size?"el-radio-button--"+e.size:"",{"is-active":e.value===e.label},{"is-disabled":e.isDisabled},{"is-focus":e.focus}],attrs:{role:"radio","aria-checked":e.value===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.value=e.isDisabled?e.value:e.label}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"el-radio-button__orig-radio",attrs:{type:"radio",name:e.name,disabled:e.isDisabled,tabindex:"-1"},domProps:{value:e.label,checked:e._q(e.value,e.label)},on:{change:[function(t){e.value=e.label},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}),n("span",{staticClass:"el-radio-button__inner",style:e.value===e.label?e.activeStyle:null,on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])},nn=[];tn._withStripped=!0;var rn={name:"ElRadioButton",mixins:[O.a],inject:{elForm:{default:""},elFormItem:{default:""}},props:{label:{},disabled:Boolean,name:String},data:function(){return{focus:!1}},computed:{value:{get:function(){return this._radioGroup.value},set:function(e){this._radioGroup.$emit("input",e)}},_radioGroup:function(){var e=this.$parent;while(e){if("ElRadioGroup"===e.$options.componentName)return e;e=e.$parent}return!1},activeStyle:function(){return{backgroundColor:this._radioGroup.fill||"",borderColor:this._radioGroup.fill||"",boxShadow:this._radioGroup.fill?"-1px 0 0 0 "+this._radioGroup.fill:"",color:this._radioGroup.textColor||""}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._radioGroup.radioGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isDisabled:function(){return this.disabled||this._radioGroup.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this._radioGroup&&this.value!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.dispatch("ElRadioGroup","handleChange",e.value)}))}}},on=rn,an=s(on,tn,nn,!1,null,null,null);an.options.__file="packages/radio/src/radio-button.vue";var sn=an.exports;sn.install=function(e){e.component(sn.name,sn)};var ln=sn,cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.border&&e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,i=t.target,r=i.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=null,a=e._i(n,o);i.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);i.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])},un=[];cn._withStripped=!0;var dn={name:"ElCheckbox",mixins:[O.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.lengththis._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},hn=dn,pn=s(hn,cn,un,!1,null,null,null);pn.options.__file="packages/checkbox/src/checkbox.vue";var fn=pn.exports;fn.install=function(e){e.component(fn.name,fn)};var gn=fn,mn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox-button",class:[e.size?"el-checkbox-button--"+e.size:"",{"is-disabled":e.isDisabled},{"is-checked":e.isChecked},{"is-focus":e.focus}],attrs:{role:"checkbox","aria-checked":e.isChecked,"aria-disabled":e.isDisabled}},[e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,i=t.target,r=i.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=null,a=e._i(n,o);i.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:e.name,disabled:e.isDisabled},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);i.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox-button__inner",style:e.isChecked?e.activeStyle:null},[e._t("default",[e._v(e._s(e.label))])],2):e._e()])},vn=[];mn._withStripped=!0;var _n={name:"ElCheckboxButton",mixins:[O.a],inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},props:{value:{},label:{},disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number]},computed:{model:{get:function(){return this._checkboxGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this._checkboxGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.lengththis._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):void 0!==this.value?this.$emit("input",e):this.selfModel=e}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},_checkboxGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return e;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},activeStyle:function(){return{backgroundColor:this._checkboxGroup.fill||"",borderColor:this._checkboxGroup.fill||"",color:this._checkboxGroup.textColor||"","box-shadow":"-1px 0 0 0 "+this._checkboxGroup.fill}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._checkboxGroup.checkboxGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this._checkboxGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled}},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t._checkboxGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()}},yn=_n,bn=s(yn,mn,vn,!1,null,null,null);bn.options.__file="packages/checkbox/src/checkbox-button.vue";var Sn=bn.exports;Sn.install=function(e){e.component(Sn.name,Sn)};var En=Sn,Cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[e._t("default")],2)},xn=[];Cn._withStripped=!0;var wn={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[O.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},Tn=wn,An=s(Tn,Cn,xn,!1,null,null,null);An.options.__file="packages/checkbox/src/checkbox-group.vue";var On=An.exports;On.install=function(e){e.component(On.name,On)};var Rn=On,Nn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-switch",class:{"is-disabled":e.switchDisabled,"is-checked":e.checked},attrs:{role:"switch","aria-checked":e.checked,"aria-disabled":e.switchDisabled},on:{click:function(t){return t.preventDefault(),e.switchValue(t)}}},[n("input",{ref:"input",staticClass:"el-switch__input",attrs:{type:"checkbox",id:e.id,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:e.switchDisabled},on:{change:e.handleChange,keydown:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.switchValue(t):null}}}),e.inactiveIconClass||e.inactiveText?n("span",{class:["el-switch__label","el-switch__label--left",e.checked?"":"is-active"]},[e.inactiveIconClass?n("i",{class:[e.inactiveIconClass]}):e._e(),!e.inactiveIconClass&&e.inactiveText?n("span",{attrs:{"aria-hidden":e.checked}},[e._v(e._s(e.inactiveText))]):e._e()]):e._e(),n("span",{ref:"core",staticClass:"el-switch__core",style:{width:e.coreWidth+"px"}}),e.activeIconClass||e.activeText?n("span",{class:["el-switch__label","el-switch__label--right",e.checked?"is-active":""]},[e.activeIconClass?n("i",{class:[e.activeIconClass]}):e._e(),!e.activeIconClass&&e.activeText?n("span",{attrs:{"aria-hidden":!e.checked}},[e._v(e._s(e.activeText))]):e._e()]):e._e()])},Dn=[];Nn._withStripped=!0;var In={name:"ElSwitch",mixins:[X()("input"),T.a,O.a],inject:{elForm:{default:""}},props:{value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:Number,default:40},activeIconClass:{type:String,default:""},inactiveIconClass:{type:String,default:""},activeText:String,inactiveText:String,activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String},data:function(){return{coreWidth:this.width}},created:function(){~[this.activeValue,this.inactiveValue].indexOf(this.value)||this.$emit("input",this.inactiveValue)},computed:{checked:function(){return this.value===this.activeValue},switchDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{checked:function(){this.$refs.input.checked=this.checked,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[this.value])}},methods:{handleChange:function(e){var t=this,n=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",n),this.$emit("change",n),this.$nextTick((function(){t.$refs.input.checked=t.checked}))},setBackgroundColor:function(){var e=this.checked?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=e,this.$refs.core.style.backgroundColor=e},switchValue:function(){!this.switchDisabled&&this.handleChange()},getMigratingConfig:function(){return{props:{"on-color":"on-color is renamed to active-color.","off-color":"off-color is renamed to inactive-color.","on-text":"on-text is renamed to active-text.","off-text":"off-text is renamed to inactive-text.","on-value":"on-value is renamed to active-value.","off-value":"off-value is renamed to inactive-value.","on-icon-class":"on-icon-class is renamed to active-icon-class.","off-icon-class":"off-icon-class is renamed to inactive-icon-class."}}}},mounted:function(){this.coreWidth=this.width||40,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.$refs.input.checked=this.checked}},Mn=In,kn=s(Mn,Nn,Dn,!1,null,null,null);kn.options.__file="packages/switch/src/component.vue";var Ln=kn.exports;Ln.install=function(e){e.component(Ln.name,Ln)};var Pn=Ln,Fn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.navigateOptions("prev")},function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?(t.preventDefault(),e.selectOption(t)):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return"button"in t||!e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?e.deletePrevTag(t):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur},nativeOn:{keyup:function(t){return e.debouncedOnInputChange(t)},keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("prev")},function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?(t.preventDefault(),e.selectOption(t)):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],paste:function(t){return e.debouncedOnInputChange(t)},mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)},Bn=[];Fn._withStripped=!0;var $n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":e.$parent.multiple},e.popperClass],style:{minWidth:e.minWidth}},[e._t("default")],2)},Vn=[];$n._withStripped=!0;var Gn={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[z.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},Un=Gn,zn=s(Un,$n,Vn,!1,null,null,null);zn.options.__file="packages/select/src/select-dropdown.vue";var jn=zn.exports,Hn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},Wn=[];Hn._withStripped=!0;var Yn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qn={mixins:[O.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,i=n.remote,r=n.valueKey;if(!this.created&&!i){if(r&&"object"===("undefined"===typeof e?"undefined":Yn(e))&&"object"===("undefined"===typeof t?"undefined":Yn(t))&&e[r]===t[r])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(_["getValueByPath"])(e,n)===Object(_["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(_["getValueByPath"])(e,n)===Object(_["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(_["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,i=n?t:[t],r=this.select.cachedOptions.indexOf(this),o=i.indexOf(this);r>-1&&o<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},Kn=qn,Qn=s(Kn,Hn,Wn,!1,null,null,null);Qn.options.__file="packages/select/src/option.vue";var Xn=Qn.exports,Zn=n(29),Jn=n.n(Zn),ei=n(12),ti=n(27),ni=n.n(ti),ii={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"===typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(e){e.hover=t.hoverOption===e}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}},ri={mixins:[O.a,v.a,X()("reference"),ii],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(_["isIE"])()&&!Object(_["isEdge"])()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value,t=this.clearable&&!this.selectDisabled&&this.inputHovering&&e;return t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(e){return!e.created})).some((function(t){return t.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return"undefined"!==typeof this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:g.a,ElSelectMenu:jn,ElOption:Xn,ElTag:Jn.a,ElScrollbar:H.a},directives:{Clickoutside:$.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(_["valueEquals"])(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(e){return t.handleQueryChange(n)}));else{var i=n[n.length-1]||"";this.isOnComposition=!Object(Tt["isKorean"])(i)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!==typeof this.filterMethod&&"function"!==typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"===typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"===typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");ni()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object(_["valueEquals"])(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),i="[object null]"===Object.prototype.toString.call(e).toLowerCase(),r="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o],s=n?Object(_["getValueByPath"])(a.value,this.valueKey)===Object(_["getValueByPath"])(e,this.valueKey):a.value===e;if(s){t=a;break}}if(t)return t;var l=n||i||r?"":e,c={value:e,currentLabel:l};return this.multiple&&(c.hitState=!1),c},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(t){n.push(e.getOption(t))})),this.selected=n,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.filterable&&(this.menuVisibleOnFocus=!0)),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],i=e.$refs.tags,r=e.initialInputHeight||40;n.style.height=0===e.selected.length?r+"px":Math.max(i?i.clientHeight+(i.clientHeight>r?6:0):0,r)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var i=(this.value||[]).slice(),r=this.getValueIndex(i,e.value);r>-1?i.splice(r,1):(this.multipleLimit<=0||i.length0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var i=this.valueKey,r=-1;return e.some((function(e,n){return Object(_["getValueByPath"])(e,i)===Object(_["getValueByPath"])(t,i)&&(r=n,!0)})),r}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var i=this.value.slice();i.splice(n,1),this.$emit("input",i),this.emitChange(i),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var i=this.options[n];if(this.query){if(!i.disabled&&!i.groupDisabled&&i.visible){this.hoverIndex=n;break}}else if(i.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(_["getValueByPath"])(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=F()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=F()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(ei["addResizeListener"])(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n={medium:36,small:32,mini:28},i=t.$el.querySelector("input");this.initialInputHeight=i.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(ei["removeResizeListener"])(this.$el,this.handleResize)}},oi=ri,ai=s(oi,Fn,Bn,!1,null,null,null);ai.options.__file="packages/select/src/select.vue";var si=ai.exports;si.install=function(e){e.component(si.name,si)};var li=si;Xn.install=function(e){e.component(Xn.name,Xn)};var ci=Xn,ui=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-group__wrap"},[n("li",{staticClass:"el-select-group__title"},[e._v(e._s(e.label))]),n("li",[n("ul",{staticClass:"el-select-group"},[e._t("default")],2)])])},di=[];ui._withStripped=!0;var hi={mixins:[O.a],name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},data:function(){return{visible:!0}},watch:{disabled:function(e){this.broadcast("ElOption","handleGroupDisabled",e)}},methods:{queryChange:function(){this.visible=this.$children&&Array.isArray(this.$children)&&this.$children.some((function(e){return!0===e.visible}))}},created:function(){this.$on("queryChange",this.queryChange)},mounted:function(){this.disabled&&this.broadcast("ElOption","handleGroupDisabled",this.disabled)}},pi=hi,fi=s(pi,ui,di,!1,null,null,null);fi.options.__file="packages/select/src/option-group.vue";var gi=fi.exports;gi.install=function(e){e.component(gi.name,gi)};var mi=gi,vi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])},_i=[];vi._withStripped=!0;var yi={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},bi=yi,Si=s(bi,vi,_i,!1,null,null,null);Si.options.__file="packages/button/src/button.vue";var Ei=Si.exports;Ei.install=function(e){e.component(Ei.name,Ei)};var Ci=Ei,xi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-button-group"},[e._t("default")],2)},wi=[];xi._withStripped=!0;var Ti={name:"ElButtonGroup"},Ai=Ti,Oi=s(Ai,xi,wi,!1,null,null,null);Oi.options.__file="packages/button/src/button-group.vue";var Ri=Oi.exports;Ri.install=function(e){e.component(Ri.name,Ri)};var Ni=Ri,Di=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-table",class:[{"el-table--fit":e.fit,"el-table--striped":e.stripe,"el-table--border":e.border||e.isGroup,"el-table--hidden":e.isHidden,"el-table--group":e.isGroup,"el-table--fluid-height":e.maxHeight,"el-table--scrollable-x":e.layout.scrollX,"el-table--scrollable-y":e.layout.scrollY,"el-table--enable-row-hover":!e.store.states.isComplex,"el-table--enable-row-transition":0!==(e.store.states.data||[]).length&&(e.store.states.data||[]).length<100},e.tableSize?"el-table--"+e.tableSize:""],on:{mouseleave:function(t){e.handleMouseLeave(t)}}},[n("div",{ref:"hiddenColumns",staticClass:"hidden-columns"},[e._t("default")],2),e.showHeader?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"headerWrapper",staticClass:"el-table__header-wrapper"},[n("table-header",{ref:"tableHeader",style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"default-sort":e.defaultSort}})],1):e._e(),n("div",{ref:"bodyWrapper",staticClass:"el-table__body-wrapper",class:[e.layout.scrollX?"is-scrolling-"+e.scrollPosition:"is-scrolling-none"],style:[e.bodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{context:e.context,store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.data&&0!==e.data.length?e._e():n("div",{ref:"emptyBlock",staticClass:"el-table__empty-block",style:e.emptyBlockStyle},[n("span",{staticClass:"el-table__empty-text"},[e._t("empty",[e._v(e._s(e.emptyText||e.t("el.table.emptyText")))])],2)]),e.$slots.append?n("div",{ref:"appendWrapper",staticClass:"el-table__append-wrapper"},[e._t("append")],2):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"},{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"footerWrapper",staticClass:"el-table__footer-wrapper"},[n("table-footer",{style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,"default-sort":e.defaultSort}})],1):e._e(),e.fixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"fixedWrapper",staticClass:"el-table__fixed",style:[{width:e.layout.fixedWidth?e.layout.fixedWidth+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"fixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"fixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"fixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"left",store:e.store,stripe:e.stripe,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"row-style":e.rowStyle}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"fixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"rightFixedWrapper",staticClass:"el-table__fixed-right",style:[{width:e.layout.rightFixedWidth?e.layout.rightFixedWidth+"px":"",right:e.layout.scrollY?(e.border?e.layout.gutterWidth:e.layout.gutterWidth||0)+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"rightFixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"rightFixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"rightFixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"right",store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"rightFixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{ref:"rightFixedPatch",staticClass:"el-table__fixed-right-patch",style:{width:e.layout.scrollY?e.layout.gutterWidth+"px":"0",height:e.layout.headerHeight+"px"}}):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.resizeProxyVisible,expression:"resizeProxyVisible"}],ref:"resizeProxy",staticClass:"el-table__column-resize-proxy"})])},Ii=[];Di._withStripped=!0;var Mi=n(16),ki=n.n(Mi),Li=n(35),Pi=n(38),Fi=n.n(Pi),Bi="undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,$i=function(e,t){e&&e.addEventListener&&e.addEventListener(Bi?"DOMMouseScroll":"mousewheel",(function(e){var n=Fi()(e);t&&t.apply(this,[e,n])}))},Vi={bind:function(e,t){$i(e,t.value)}},Gi=n(6),Ui=n.n(Gi),zi="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ji=function(e){var t=e.target;while(t&&"HTML"!==t.tagName.toUpperCase()){if("TD"===t.tagName.toUpperCase())return t;t=t.parentNode}return null},Hi=function(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":zi(e))},Wi=function(e,t,n,i,r){if(!t&&!i&&(!r||Array.isArray(r)&&!r.length))return e;n="string"===typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var o=i?null:function(n,i){return r?(Array.isArray(r)||(r=[r]),r.map((function(t){return"string"===typeof t?Object(_["getValueByPath"])(n,t):t(n,i,e)}))):("$key"!==t&&Hi(n)&&"$value"in n&&(n=n.$value),[Hi(n)?Object(_["getValueByPath"])(n,t):n])},a=function(e,t){if(i)return i(e.value,t.value);for(var n=0,r=e.key.length;nt.key[n])return 1}return 0};return e.map((function(e,t){return{value:e,index:t,key:o?o(e,t):null}})).sort((function(e,t){var i=a(e,t);return i||(i=e.index-t.index),i*n})).map((function(e){return e.value}))},Yi=function(e,t){var n=null;return e.columns.forEach((function(e){e.id===t&&(n=e)})),n},qi=function(e,t){for(var n=null,i=0;i2&&void 0!==arguments[2]?arguments[2]:"children",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hasChildren",r=function(e){return!(Array.isArray(e)&&e.length)};function o(e,a,s){t(e,a,s),a.forEach((function(e){if(e[i])t(e,null,s+1);else{var a=e[n];r(a)||o(e,a,s+1)}}))}e.forEach((function(e){if(e[i])t(e,null,0);else{var a=e[n];r(a)||o(e,a,0)}}))}var ar={data:function(){return{states:{defaultExpandAll:!1,expandRows:[]}}},methods:{updateExpandRows:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,i=e.rowKey,r=e.defaultExpandAll,o=e.expandRows;if(r)this.states.expandRows=n.slice();else if(i){var a=Xi(o,i);this.states.expandRows=n.reduce((function(e,t){var n=Qi(t,i),r=a[n];return r&&e.push(t),e}),[])}else this.states.expandRows=[]},toggleRowExpansion:function(e,t){var n=rr(this.states.expandRows,e,t);n&&(this.table.$emit("expand-change",e,this.states.expandRows.slice()),this.scheduleLayout())},setExpandRowKeys:function(e){this.assertRowKey();var t=this.states,n=t.data,i=t.rowKey,r=Xi(n,i);this.states.expandRows=e.reduce((function(e,t){var n=r[t];return n&&e.push(n.row),e}),[])},isRowExpanded:function(e){var t=this.states,n=t.expandRows,i=void 0===n?[]:n,r=t.rowKey;if(r){var o=Xi(i,r);return!!o[Qi(e,r)]}return-1!==i.indexOf(e)}}},sr={data:function(){return{states:{_currentRowKey:null,currentRow:null}}},methods:{setCurrentRowKey:function(e){this.assertRowKey(),this.states._currentRowKey=e,this.setCurrentRowByKey(e)},restoreCurrentRowKey:function(){this.states._currentRowKey=null},setCurrentRowByKey:function(e){var t=this.states,n=t.data,i=void 0===n?[]:n,r=t.rowKey,o=null;r&&(o=Object(_["arrayFind"])(i,(function(t){return Qi(t,r)===e}))),t.currentRow=o},updateCurrentRow:function(e){var t=this.states,n=this.table,i=t.currentRow;if(e&&e!==i)return t.currentRow=e,void n.$emit("current-change",e,i);!e&&i&&(t.currentRow=null,n.$emit("current-change",null,i))},updateCurrentRowData:function(){var e=this.states,t=this.table,n=e.rowKey,i=e._currentRowKey,r=e.data||[],o=e.currentRow;if(-1===r.indexOf(o)&&o){if(n){var a=Qi(o,n);this.setCurrentRowByKey(a)}else e.currentRow=null;null===e.currentRow&&t.$emit("current-change",null,o)}else i&&(this.setCurrentRowByKey(i),this.restoreCurrentRowKey())}}},lr=Object.assign||function(e){for(var t=1;t0&&t[0]&&"selection"===t[0].type&&!t[0].fixed&&(t[0].fixed=!0,e.fixedColumns.unshift(t[0]));var n=t.filter((function(e){return!e.fixed}));e.originColumns=[].concat(e.fixedColumns).concat(n).concat(e.rightFixedColumns);var i=dr(n),r=dr(e.fixedColumns),o=dr(e.rightFixedColumns);e.leafColumnsLength=i.length,e.fixedLeafColumnsLength=r.length,e.rightFixedLeafColumnsLength=o.length,e.columns=[].concat(r).concat(i).concat(o),e.isComplex=e.fixedColumns.length>0||e.rightFixedColumns.length>0},scheduleLayout:function(e){e&&this.updateColumns(),this.table.debouncedUpdateLayout()},isSelected:function(e){var t=this.states.selection,n=void 0===t?[]:t;return n.indexOf(e)>-1},clearSelection:function(){var e=this.states;e.isAllSelected=!1;var t=e.selection;t.length&&(e.selection=[],this.table.$emit("selection-change",[]))},cleanSelection:function(){var e=this.states,t=e.data,n=e.rowKey,i=e.selection,r=void 0;if(n){r=[];var o=Xi(i,n),a=Xi(t,n);for(var s in o)o.hasOwnProperty(s)&&!a[s]&&r.push(o[s].row)}else r=i.filter((function(e){return-1===t.indexOf(e)}));if(r.length){var l=i.filter((function(e){return-1===r.indexOf(e)}));e.selection=l,this.table.$emit("selection-change",l.slice())}},toggleRowSelection:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=rr(this.states.selection,e,t);if(i){var r=(this.states.selection||[]).slice();n&&this.table.$emit("select",r,e),this.table.$emit("selection-change",r)}},_toggleAllSelection:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,i=e.selection,r=e.selectOnIndeterminate?!e.isAllSelected:!(e.isAllSelected||i.length);e.isAllSelected=r;var o=!1;n.forEach((function(t,n){e.selectable?e.selectable.call(null,t,n)&&rr(i,t,r)&&(o=!0):rr(i,t,r)&&(o=!0)})),o&&this.table.$emit("selection-change",i?i.slice():[]),this.table.$emit("select-all",i)},updateSelectionByRowKey:function(){var e=this.states,t=e.selection,n=e.rowKey,i=e.data,r=Xi(t,n);i.forEach((function(e){var i=Qi(e,n),o=r[i];o&&(t[o.index]=e)}))},updateAllSelected:function(){var e=this.states,t=e.selection,n=e.rowKey,i=e.selectable,r=e.data||[];if(0!==r.length){var o=void 0;n&&(o=Xi(t,n));for(var a=function(e){return o?!!o[Qi(e,n)]:-1!==t.indexOf(e)},s=!0,l=0,c=0,u=r.length;c1?n-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Table is required.");var n=new pr;return n.table=e,n.toggleAllSelection=F()(10,n._toggleAllSelection),Object.keys(t).forEach((function(e){n.states[e]=t[e]})),n}function gr(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n],r=void 0;"string"===typeof i?r=function(){return this.store.states[i]}:"function"===typeof i?r=function(){return i.call(this,this.store.states)}:console.error("invalid value type"),r&&(t[n]=r)})),t}var mr=n(30),vr=n.n(mr);function _r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var yr=function(){function e(t){for(var n in _r(this,e),this.observers=[],this.table=null,this.store=null,this.columns=null,this.fit=!0,this.showHeader=!0,this.height=null,this.scrollX=!1,this.scrollY=!1,this.bodyWidth=null,this.fixedWidth=null,this.rightFixedWidth=null,this.tableHeight=null,this.headerHeight=44,this.appendHeight=0,this.footerHeight=44,this.viewportHeight=null,this.bodyHeight=null,this.fixedBodyHeight=null,this.gutterWidth=vr()(),t)t.hasOwnProperty(n)&&(this[n]=t[n]);if(!this.table)throw new Error("table is required for Table Layout");if(!this.store)throw new Error("store is required for Table Layout")}return e.prototype.updateScrollY=function(){var e=this.height;if(null===e)return!1;var t=this.table.bodyWrapper;if(this.table.$el&&t){var n=t.querySelector(".el-table__body"),i=this.scrollY,r=n.offsetHeight>this.bodyHeight;return this.scrollY=r,i!==r}return!1},e.prototype.setHeight=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"height";if(!Ui.a.prototype.$isServer){var i=this.table.$el;if(e=nr(e),this.height=e,!i&&(e||0===e))return Ui.a.nextTick((function(){return t.setHeight(e,n)}));"number"===typeof e?(i.style[n]=e+"px",this.updateElsHeight()):"string"===typeof e&&(i.style[n]=e,this.updateElsHeight())}},e.prototype.setMaxHeight=function(e){this.setHeight(e,"max-height")},e.prototype.getFlattenColumns=function(){var e=[],t=this.table.columns;return t.forEach((function(t){t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)})),e},e.prototype.updateElsHeight=function(){var e=this;if(!this.table.$ready)return Ui.a.nextTick((function(){return e.updateElsHeight()}));var t=this.table.$refs,n=t.headerWrapper,i=t.appendWrapper,r=t.footerWrapper;if(this.appendHeight=i?i.offsetHeight:0,!this.showHeader||n){var o=n?n.querySelector(".el-table__header tr"):null,a=this.headerDisplayNone(o),s=this.headerHeight=this.showHeader?n.offsetHeight:0;if(this.showHeader&&!a&&n.offsetWidth>0&&(this.table.columns||[]).length>0&&s<2)return Ui.a.nextTick((function(){return e.updateElsHeight()}));var l=this.tableHeight=this.table.$el.clientHeight,c=this.footerHeight=r?r.offsetHeight:0;null!==this.height&&(this.bodyHeight=l-s-c+(r?1:0)),this.fixedBodyHeight=this.scrollX?this.bodyHeight-this.gutterWidth:this.bodyHeight;var u=!(this.store.states.data&&this.store.states.data.length);this.viewportHeight=this.scrollX?l-(u?0:this.gutterWidth):l,this.updateScrollY(),this.notifyObservers("scrollable")}},e.prototype.headerDisplayNone=function(e){if(!e)return!0;var t=e;while("DIV"!==t.tagName){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1},e.prototype.updateColumnsWidth=function(){if(!Ui.a.prototype.$isServer){var e=this.fit,t=this.table.$el.clientWidth,n=0,i=this.getFlattenColumns(),r=i.filter((function(e){return"number"!==typeof e.width}));if(i.forEach((function(e){"number"===typeof e.width&&e.realWidth&&(e.realWidth=null)})),r.length>0&&e){i.forEach((function(e){n+=e.width||e.minWidth||80}));var o=this.scrollY?this.gutterWidth:0;if(n<=t-o){this.scrollX=!1;var a=t-o-n;if(1===r.length)r[0].realWidth=(r[0].minWidth||80)+a;else{var s=r.reduce((function(e,t){return e+(t.minWidth||80)}),0),l=a/s,c=0;r.forEach((function(e,t){if(0!==t){var n=Math.floor((e.minWidth||80)*l);c+=n,e.realWidth=(e.minWidth||80)+n}})),r[0].realWidth=(r[0].minWidth||80)+a-c}}else this.scrollX=!0,r.forEach((function(e){e.realWidth=e.minWidth}));this.bodyWidth=Math.max(n,t),this.table.resizeState.width=this.bodyWidth}else i.forEach((function(e){e.width||e.minWidth?e.realWidth=e.width||e.minWidth:e.realWidth=80,n+=e.realWidth})),this.scrollX=n>t,this.bodyWidth=n;var u=this.store.states.fixedColumns;if(u.length>0){var d=0;u.forEach((function(e){d+=e.realWidth||e.width})),this.fixedWidth=d}var h=this.store.states.rightFixedColumns;if(h.length>0){var p=0;h.forEach((function(e){p+=e.realWidth||e.width})),this.rightFixedWidth=p}this.notifyObservers("columns")}},e.prototype.addObserver=function(e){this.observers.push(e)},e.prototype.removeObserver=function(e){var t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)},e.prototype.notifyObservers=function(e){var t=this,n=this.observers;n.forEach((function(n){switch(e){case"columns":n.onColumnsChange(t);break;case"scrollable":n.onScrollableChange(t);break;default:throw new Error("Table Layout don't have event "+e+".")}}))},e}(),br=yr,Sr={created:function(){this.tableLayout.addObserver(this)},destroyed:function(){this.tableLayout.removeObserver(this)},computed:{tableLayout:function(){var e=this.layout;if(!e&&this.table&&(e=this.table.layout),!e)throw new Error("Can not find table layout.");return e}},mounted:function(){this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout)},updated:function(){this.__updated__||(this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout),this.__updated__=!0)},methods:{onColumnsChange:function(e){var t=this.$el.querySelectorAll("colgroup > col");if(t.length){var n=e.getFlattenColumns(),i={};n.forEach((function(e){i[e.id]=e}));for(var r=0,o=t.length;r col[name=gutter]"),n=0,i=t.length;n=this.leftFixedLeafCount:"right"===this.fixed?e=this.columnsCount-this.rightFixedLeafCount},getSpan:function(e,t,n,i){var r=1,o=1,a=this.table.spanMethod;if("function"===typeof a){var s=a({row:e,column:t,rowIndex:n,columnIndex:i});Array.isArray(s)?(r=s[0],o=s[1]):"object"===("undefined"===typeof s?"undefined":Er(s))&&(r=s.rowspan,o=s.colspan)}return{rowspan:r,colspan:o}},getRowStyle:function(e,t){var n=this.table.rowStyle;return"function"===typeof n?n.call(null,{row:e,rowIndex:t}):n||null},getRowClass:function(e,t){var n=["el-table__row"];this.table.highlightCurrentRow&&e===this.store.states.currentRow&&n.push("current-row"),this.stripe&&t%2===1&&n.push("el-table__row--striped");var i=this.table.rowClassName;return"string"===typeof i?n.push(i):"function"===typeof i&&n.push(i.call(null,{row:e,rowIndex:t})),this.store.states.expandRows.indexOf(e)>-1&&n.push("expanded"),n},getCellStyle:function(e,t,n,i){var r=this.table.cellStyle;return"function"===typeof r?r.call(null,{rowIndex:e,columnIndex:t,row:n,column:i}):r},getCellClass:function(e,t,n,i){var r=[i.id,i.align,i.className];this.isColumnHidden(t)&&r.push("is-hidden");var o=this.table.cellClassName;return"string"===typeof o?r.push(o):"function"===typeof o&&r.push(o.call(null,{rowIndex:e,columnIndex:t,row:n,column:i})),r.join(" ")},getColspanRealWidth:function(e,t,n){if(t<1)return e[n].realWidth;var i=e.map((function(e){var t=e.realWidth;return t})).slice(n,n+t);return i.reduce((function(e,t){return e+t}),-1)},handleCellMouseEnter:function(e,t){var n=this.table,i=ji(e);if(i){var r=Ki(n,i),o=n.hoverState={cell:i,column:r,row:t};n.$emit("cell-mouse-enter",o.row,o.column,o.cell,e)}var a=e.target.querySelector(".cell");if(Object(Be["hasClass"])(a,"el-tooltip")&&a.childNodes.length){var s=document.createRange();s.setStart(a,0),s.setEnd(a,a.childNodes.length);var l=s.getBoundingClientRect().width,c=(parseInt(Object(Be["getStyle"])(a,"paddingLeft"),10)||0)+(parseInt(Object(Be["getStyle"])(a,"paddingRight"),10)||0);if((l+c>a.offsetWidth||a.scrollWidth>a.offsetWidth)&&this.$refs.tooltip){var u=this.$refs.tooltip;this.tooltipContent=i.innerText||i.textContent,u.referenceElm=i,u.$refs.popper&&(u.$refs.popper.style.display="none"),u.doDestroy(),u.setExpectedState(!0),this.activateTooltip(u)}}},handleCellMouseLeave:function(e){var t=this.$refs.tooltip;t&&(t.setExpectedState(!1),t.handleClosePopper());var n=ji(e);if(n){var i=this.table.hoverState||{};this.table.$emit("cell-mouse-leave",i.row,i.column,i.cell,e)}},handleMouseEnter:F()(30,(function(e){this.store.commit("setHoverRow",e)})),handleMouseLeave:F()(30,(function(){this.store.commit("setHoverRow",null)})),handleContextMenu:function(e,t){this.handleEvent(e,t,"contextmenu")},handleDoubleClick:function(e,t){this.handleEvent(e,t,"dblclick")},handleClick:function(e,t){this.store.commit("setCurrentRow",t),this.handleEvent(e,t,"click")},handleEvent:function(e,t,n){var i=this.table,r=ji(e),o=void 0;r&&(o=Ki(i,r),o&&i.$emit("cell-"+n,t,o,r,e)),i.$emit("row-"+n,t,o,e)},rowRender:function(e,t,n){var i=this,r=this.$createElement,o=this.treeIndent,a=this.columns,s=this.firstDefaultColumnIndex,l=a.map((function(e,t){return i.isColumnHidden(t)})),c=this.getRowClass(e,t),u=!0;n&&(c.push("el-table__row--level-"+n.level),u=n.display);var d=u?null:{display:"none"};return r("tr",{style:[d,this.getRowStyle(e,t)],class:c,key:this.getKeyOfRow(e,t),on:{dblclick:function(t){return i.handleDoubleClick(t,e)},click:function(t){return i.handleClick(t,e)},contextmenu:function(t){return i.handleContextMenu(t,e)},mouseenter:function(e){return i.handleMouseEnter(t)},mouseleave:this.handleMouseLeave}},[a.map((function(c,u){var d=i.getSpan(e,c,t,u),h=d.rowspan,p=d.colspan;if(!h||!p)return null;var f=Cr({},c);f.realWidth=i.getColspanRealWidth(a,p,u);var g={store:i.store,_self:i.context||i.table.$vnode.context,column:f,row:e,$index:t};return u===s&&n&&(g.treeNode={indent:n.level*o,level:n.level},"boolean"===typeof n.expanded&&(g.treeNode.expanded=n.expanded,"loading"in n&&(g.treeNode.loading=n.loading),"noLazyChildren"in n&&(g.treeNode.noLazyChildren=n.noLazyChildren))),r("td",{style:i.getCellStyle(t,u,e,c),class:i.getCellClass(t,u,e,c),attrs:{rowspan:h,colspan:p},on:{mouseenter:function(t){return i.handleCellMouseEnter(t,e)},mouseleave:i.handleCellMouseLeave}},[c.renderCell.call(i._renderProxy,i.$createElement,g,l[u])])}))])},wrappedRowRender:function(e,t){var n=this,i=this.$createElement,r=this.store,o=r.isRowExpanded,a=r.assertRowKey,s=r.states,l=s.treeData,c=s.lazyTreeNodeMap,u=s.childrenColumnName,d=s.rowKey;if(this.hasExpandColumn&&o(e)){var h=this.table.renderExpanded,p=this.rowRender(e,t);return h?[[p,i("tr",{key:"expanded-row__"+p.key},[i("td",{attrs:{colspan:this.columnsCount},class:"el-table__expanded-cell"},[h(this.$createElement,{row:e,$index:t,store:this.store})])])]]:(console.error("[Element Error]renderExpanded is required."),p)}if(Object.keys(l).length){a();var f=Qi(e,d),g=l[f],m=null;g&&(m={expanded:g.expanded,level:g.level,display:!0},"boolean"===typeof g.lazy&&("boolean"===typeof g.loaded&&g.loaded&&(m.noLazyChildren=!(g.children&&g.children.length)),m.loading=g.loading));var v=[this.rowRender(e,t,m)];if(g){var _=0,y=function e(i,r){i&&i.length&&r&&i.forEach((function(i){var o={display:r.display&&r.expanded,level:r.level+1},a=Qi(i,d);if(void 0===a||null===a)throw new Error("for nested data item, row-key is required.");if(g=Cr({},l[a]),g&&(o.expanded=g.expanded,g.level=g.level||o.level,g.display=!(!g.expanded||!o.display),"boolean"===typeof g.lazy&&("boolean"===typeof g.loaded&&g.loaded&&(o.noLazyChildren=!(g.children&&g.children.length)),o.loading=g.loading)),_++,v.push(n.rowRender(i,t+_,o)),g){var s=c[a]||i[u];e(s,g)}}))};g.display=!0;var b=c[f]||e[u];y(b,g)}return v}return this.rowRender(e,t)}}},wr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"}},[e.multiple?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("div",{staticClass:"el-table-filter__content"},[n("el-scrollbar",{attrs:{"wrap-class":"el-table-filter__wrap"}},[n("el-checkbox-group",{staticClass:"el-table-filter__checkbox-group",model:{value:e.filteredValue,callback:function(t){e.filteredValue=t},expression:"filteredValue"}},e._l(e.filters,(function(t){return n("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.text))])})),1)],1)],1),n("div",{staticClass:"el-table-filter__bottom"},[n("button",{class:{"is-disabled":0===e.filteredValue.length},attrs:{disabled:0===e.filteredValue.length},on:{click:e.handleConfirm}},[e._v(e._s(e.t("el.table.confirmFilter")))]),n("button",{on:{click:e.handleReset}},[e._v(e._s(e.t("el.table.resetFilter")))])])]):n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("ul",{staticClass:"el-table-filter__list"},[n("li",{staticClass:"el-table-filter__list-item",class:{"is-active":void 0===e.filterValue||null===e.filterValue},on:{click:function(t){e.handleSelect(null)}}},[e._v(e._s(e.t("el.table.clearFilter")))]),e._l(e.filters,(function(t){return n("li",{key:t.value,staticClass:"el-table-filter__list-item",class:{"is-active":e.isActive(t)},attrs:{label:t.value},on:{click:function(n){e.handleSelect(t.value)}}},[e._v(e._s(t.text))])}))],2)])])},Tr=[];wr._withStripped=!0;var Ar=[];!Ui.a.prototype.$isServer&&document.addEventListener("click",(function(e){Ar.forEach((function(t){var n=e.target;t&&t.$el&&(n===t.$el||t.$el.contains(n)||t.handleOutsideClick&&t.handleOutsideClick(e))}))}));var Or={open:function(e){e&&Ar.push(e)},close:function(e){var t=Ar.indexOf(e);-1!==t&&Ar.splice(e,1)}},Rr=n(31),Nr=n.n(Rr),Dr={name:"ElTableFilterPanel",mixins:[z.a,v.a],directives:{Clickoutside:$.a},components:{ElCheckbox:ki.a,ElCheckboxGroup:Nr.a,ElScrollbar:H.a},props:{placement:{type:String,default:"bottom-end"}},methods:{isActive:function(e){return e.value===this.filterValue},handleOutsideClick:function(){var e=this;setTimeout((function(){e.showPopper=!1}),16)},handleConfirm:function(){this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleReset:function(){this.filteredValue=[],this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleSelect:function(e){this.filterValue=e,"undefined"!==typeof e&&null!==e?this.confirmFilter(this.filteredValue):this.confirmFilter([]),this.handleOutsideClick()},confirmFilter:function(e){this.table.store.commit("filterChange",{column:this.column,values:e}),this.table.store.updateAllSelected()}},data:function(){return{table:null,cell:null,column:null}},computed:{filters:function(){return this.column&&this.column.filters},filterValue:{get:function(){return(this.column.filteredValue||[])[0]},set:function(e){this.filteredValue&&("undefined"!==typeof e&&null!==e?this.filteredValue.splice(0,1,e):this.filteredValue.splice(0,1))}},filteredValue:{get:function(){return this.column&&this.column.filteredValue||[]},set:function(e){this.column&&(this.column.filteredValue=e)}},multiple:function(){return!this.column||this.column.filterMultiple}},mounted:function(){var e=this;this.popperElm=this.$el,this.referenceElm=this.cell,this.table.bodyWrapper.addEventListener("scroll",(function(){e.updatePopper()})),this.$watch("showPopper",(function(t){e.column&&(e.column.filterOpened=t),t?Or.open(e):Or.close(e)}))},watch:{showPopper:function(e){!0===e&&parseInt(this.popperJS._popper.style.zIndex,10)1;return r&&(this.$parent.isGroup=!0),e("table",{class:"el-table__header",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})})),this.hasGutter?e("col",{attrs:{name:"gutter"}}):""]),e("thead",{class:[{"is-group":r,"has-gutter":this.hasGutter}]},[this._l(i,(function(n,i){return e("tr",{style:t.getHeaderRowStyle(i),class:t.getHeaderRowClass(i)},[n.map((function(r,o){return e("th",{attrs:{colspan:r.colSpan,rowspan:r.rowSpan},on:{mousemove:function(e){return t.handleMouseMove(e,r)},mouseout:t.handleMouseOut,mousedown:function(e){return t.handleMouseDown(e,r)},click:function(e){return t.handleHeaderClick(e,r)},contextmenu:function(e){return t.handleHeaderContextMenu(e,r)}},style:t.getHeaderCellStyle(i,o,n,r),class:t.getHeaderCellClass(i,o,n,r),key:r.id},[e("div",{class:["cell",r.filteredValue&&r.filteredValue.length>0?"highlight":"",r.labelClassName]},[r.renderHeader?r.renderHeader.call(t._renderProxy,e,{column:r,$index:o,store:t.store,_self:t.$parent.$vnode.context}):r.label,r.sortable?e("span",{class:"caret-wrapper",on:{click:function(e){return t.handleSortClick(e,r)}}},[e("i",{class:"sort-caret ascending",on:{click:function(e){return t.handleSortClick(e,r,"ascending")}}}),e("i",{class:"sort-caret descending",on:{click:function(e){return t.handleSortClick(e,r,"descending")}}})]):"",r.filterable?e("span",{class:"el-table__column-filter-trigger",on:{click:function(e){return t.handleFilterClick(e,r)}}},[e("i",{class:["el-icon-arrow-down",r.filterOpened?"el-icon-arrow-up":""]})]):""])])})),t.hasGutter?e("th",{class:"gutter"}):""])}))])])},props:{fixed:String,store:{required:!0},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},components:{ElCheckbox:ki.a},computed:Lr({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},gr({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),created:function(){this.filterPanels={}},mounted:function(){var e=this;this.$nextTick((function(){var t=e.defaultSort,n=t.prop,i=t.order,r=!0;e.store.commit("sort",{prop:n,order:i,init:r})}))},beforeDestroy:function(){var e=this.filterPanels;for(var t in e)e.hasOwnProperty(t)&&e[t]&&e[t].$destroy(!0)},methods:{isCellHidden:function(e,t){for(var n=0,i=0;i=this.leftFixedLeafCount:"right"===this.fixed?n=this.columnsCount-this.rightFixedLeafCount},getHeaderRowStyle:function(e){var t=this.table.headerRowStyle;return"function"===typeof t?t.call(null,{rowIndex:e}):t},getHeaderRowClass:function(e){var t=[],n=this.table.headerRowClassName;return"string"===typeof n?t.push(n):"function"===typeof n&&t.push(n.call(null,{rowIndex:e})),t.join(" ")},getHeaderCellStyle:function(e,t,n,i){var r=this.table.headerCellStyle;return"function"===typeof r?r.call(null,{rowIndex:e,columnIndex:t,row:n,column:i}):r},getHeaderCellClass:function(e,t,n,i){var r=[i.id,i.order,i.headerAlign,i.className,i.labelClassName];0===e&&this.isCellHidden(t,n)&&r.push("is-hidden"),i.children||r.push("is-leaf"),i.sortable&&r.push("is-sortable");var o=this.table.headerCellClassName;return"string"===typeof o?r.push(o):"function"===typeof o&&r.push(o.call(null,{rowIndex:e,columnIndex:t,row:n,column:i})),r.join(" ")},toggleAllSelection:function(e){e.stopPropagation(),this.store.commit("toggleAllSelection")},handleFilterClick:function(e,t){e.stopPropagation();var n=e.target,i="TH"===n.tagName?n:n.parentNode;if(!Object(Be["hasClass"])(i,"noclick")){i=i.querySelector(".el-table__column-filter-trigger")||i;var r=this.$parent,o=this.filterPanels[t.id];o&&t.filterOpened?o.showPopper=!1:(o||(o=new Ui.a(kr),this.filterPanels[t.id]=o,t.filterPlacement&&(o.placement=t.filterPlacement),o.table=r,o.cell=i,o.column=t,!this.$isServer&&o.$mount(document.createElement("div"))),setTimeout((function(){o.showPopper=!0}),16))}},handleHeaderClick:function(e,t){!t.filters&&t.sortable?this.handleSortClick(e,t):t.filterable&&!t.sortable&&this.handleFilterClick(e,t),this.$parent.$emit("header-click",t,e)},handleHeaderContextMenu:function(e,t){this.$parent.$emit("header-contextmenu",t,e)},handleMouseDown:function(e,t){var n=this;if(!this.$isServer&&!(t.children&&t.children.length>0)&&this.draggingColumn&&this.border){this.dragging=!0,this.$parent.resizeProxyVisible=!0;var i=this.$parent,r=i.$el,o=r.getBoundingClientRect().left,a=this.$el.querySelector("th."+t.id),s=a.getBoundingClientRect(),l=s.left-o+30;Object(Be["addClass"])(a,"noclick"),this.dragState={startMouseLeft:e.clientX,startLeft:s.right-o,startColumnLeft:s.left-o,tableLeft:o};var c=i.$refs.resizeProxy;c.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var u=function(e){var t=e.clientX-n.dragState.startMouseLeft,i=n.dragState.startLeft+t;c.style.left=Math.max(l,i)+"px"},d=function r(){if(n.dragging){var o=n.dragState,s=o.startColumnLeft,l=o.startLeft,d=parseInt(c.style.left,10),h=d-s;t.width=t.realWidth=h,i.$emit("header-dragend",t.width,l-s,t,e),n.store.scheduleLayout(),document.body.style.cursor="",n.dragging=!1,n.draggingColumn=null,n.dragState={},i.resizeProxyVisible=!1}document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",r),document.onselectstart=null,document.ondragstart=null,setTimeout((function(){Object(Be["removeClass"])(a,"noclick")}),0)};document.addEventListener("mousemove",u),document.addEventListener("mouseup",d)}},handleMouseMove:function(e,t){if(!(t.children&&t.children.length>0)){var n=e.target;while(n&&"TH"!==n.tagName)n=n.parentNode;if(t&&t.resizable&&!this.dragging&&this.border){var i=n.getBoundingClientRect(),r=document.body.style;i.width>12&&i.right-e.pageX<8?(r.cursor="col-resize",Object(Be["hasClass"])(n,"is-sortable")&&(n.style.cursor="col-resize"),this.draggingColumn=t):this.dragging||(r.cursor="",Object(Be["hasClass"])(n,"is-sortable")&&(n.style.cursor="pointer"),this.draggingColumn=null)}}},handleMouseOut:function(){this.$isServer||(document.body.style.cursor="")},toggleOrder:function(e){var t=e.order,n=e.sortOrders;if(""===t)return n[0];var i=n.indexOf(t||null);return n[i>n.length-2?0:i+1]},handleSortClick:function(e,t,n){e.stopPropagation();var i=t.order===n?null:n||this.toggleOrder(t),r=e.target;while(r&&"TH"!==r.tagName)r=r.parentNode;if(r&&"TH"===r.tagName&&Object(Be["hasClass"])(r,"noclick"))Object(Be["removeClass"])(r,"noclick");else if(t.sortable){var o=this.store.states,a=o.sortProp,s=void 0,l=o.sortingColumn;(l!==t||l===t&&null===l.order)&&(l&&(l.order=null),o.sortingColumn=t,a=t.property),s=t.order=i||null,o.sortProp=a,o.sortOrder=s,this.store.commit("changeSortCondition")}}},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}}},$r=Object.assign||function(e){for(var t=1;t=this.leftFixedLeafCount;if("right"===this.fixed){for(var i=0,r=0;r=this.columnsCount-this.rightFixedCount)},getRowClasses:function(e,t){var n=[e.id,e.align,e.labelClassName];return e.className&&n.push(e.className),this.isCellHidden(t,this.columns,e)&&n.push("is-hidden"),e.children||n.push("is-leaf"),n}}},Gr=Object.assign||function(e){for(var t=1;t0){var i=n.scrollTop;t.pixelY<0&&0!==i&&e.preventDefault(),t.pixelY>0&&n.scrollHeight-n.clientHeight>i&&e.preventDefault(),n.scrollTop+=Math.ceil(t.pixelY/5)}else n.scrollLeft+=Math.ceil(t.pixelX/5)},handleHeaderFooterMousewheel:function(e,t){var n=t.pixelX,i=t.pixelY;Math.abs(n)>=Math.abs(i)&&(this.bodyWrapper.scrollLeft+=t.pixelX/5)},syncPostion:Object(Li["throttle"])(20,(function(){var e=this.bodyWrapper,t=e.scrollLeft,n=e.scrollTop,i=e.offsetWidth,r=e.scrollWidth,o=this.$refs,a=o.headerWrapper,s=o.footerWrapper,l=o.fixedBodyWrapper,c=o.rightFixedBodyWrapper;a&&(a.scrollLeft=t),s&&(s.scrollLeft=t),l&&(l.scrollTop=n),c&&(c.scrollTop=n);var u=r-i-1;this.scrollPosition=t>=u?"right":0===t?"left":"middle"})),bindEvents:function(){this.bodyWrapper.addEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(ei["addResizeListener"])(this.$el,this.resizeListener)},unbindEvents:function(){this.bodyWrapper.removeEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(ei["removeResizeListener"])(this.$el,this.resizeListener)},resizeListener:function(){if(this.$ready){var e=!1,t=this.$el,n=this.resizeState,i=n.width,r=n.height,o=t.offsetWidth;i!==o&&(e=!0);var a=t.offsetHeight;(this.height||this.shouldUpdateHeight)&&r!==a&&(e=!0),e&&(this.resizeState.width=o,this.resizeState.height=a,this.doLayout())}},doLayout:function(){this.shouldUpdateHeight&&this.layout.updateElsHeight(),this.layout.updateColumnsWidth()},sort:function(e,t){this.store.commit("sort",{prop:e,order:t})},toggleAllSelection:function(){this.store.commit("toggleAllSelection")}},computed:Gr({tableSize:function(){return this.size||(this.$ELEMENT||{}).size},bodyWrapper:function(){return this.$refs.bodyWrapper},shouldUpdateHeight:function(){return this.height||this.maxHeight||this.fixedColumns.length>0||this.rightFixedColumns.length>0},bodyWidth:function(){var e=this.layout,t=e.bodyWidth,n=e.scrollY,i=e.gutterWidth;return t?t-(n?i:0)+"px":""},bodyHeight:function(){var e=this.layout,t=e.headerHeight,n=void 0===t?0:t,i=e.bodyHeight,r=e.footerHeight,o=void 0===r?0:r;if(this.height)return{height:i?i+"px":""};if(this.maxHeight){var a=nr(this.maxHeight);if("number"===typeof a)return{"max-height":a-o-(this.showHeader?n:0)+"px"}}return{}},fixedBodyHeight:function(){if(this.height)return{height:this.layout.fixedBodyHeight?this.layout.fixedBodyHeight+"px":""};if(this.maxHeight){var e=nr(this.maxHeight);if("number"===typeof e)return e=this.layout.scrollX?e-this.layout.gutterWidth:e,this.showHeader&&(e-=this.layout.headerHeight),e-=this.layout.footerHeight,{"max-height":e+"px"}}return{}},fixedHeight:function(){return this.maxHeight?this.showSummary?{bottom:0}:{bottom:this.layout.scrollX&&this.data.length?this.layout.gutterWidth+"px":""}:this.showSummary?{height:this.layout.tableHeight?this.layout.tableHeight+"px":""}:{height:this.layout.viewportHeight?this.layout.viewportHeight+"px":""}},emptyBlockStyle:function(){if(this.data&&this.data.length)return null;var e="100%";return this.layout.appendHeight&&(e="calc(100% - "+this.layout.appendHeight+"px)"),{width:this.bodyWidth,height:e}}},gr({selection:"selection",columns:"columns",tableData:"data",fixedColumns:"fixedColumns",rightFixedColumns:"rightFixedColumns"})),watch:{height:{immediate:!0,handler:function(e){this.layout.setHeight(e)}},maxHeight:{immediate:!0,handler:function(e){this.layout.setMaxHeight(e)}},currentRowKey:{immediate:!0,handler:function(e){this.rowKey&&this.store.setCurrentRowKey(e)}},data:{immediate:!0,handler:function(e){this.store.commit("setData",e)}},expandRowKeys:{immediate:!0,handler:function(e){e&&this.store.setExpandRowKeysAdapter(e)}}},created:function(){var e=this;this.tableId="el-table_"+Ur++,this.debouncedUpdateLayout=Object(Li["debounce"])(50,(function(){return e.doLayout()}))},mounted:function(){var e=this;this.bindEvents(),this.store.updateColumns(),this.doLayout(),this.resizeState={width:this.$el.offsetWidth,height:this.$el.offsetHeight},this.store.states.columns.forEach((function(t){t.filteredValue&&t.filteredValue.length&&e.store.commit("filterChange",{column:t,values:t.filteredValue,silent:!0})})),this.$ready=!0},destroyed:function(){this.unbindEvents()},data:function(){var e=this.treeProps,t=e.hasChildren,n=void 0===t?"hasChildren":t,i=e.children,r=void 0===i?"children":i;this.store=fr(this,{rowKey:this.rowKey,defaultExpandAll:this.defaultExpandAll,selectOnIndeterminate:this.selectOnIndeterminate,indent:this.indent,lazy:this.lazy,lazyColumnIdentifier:n,childrenColumnName:r});var o=new br({store:this.store,table:this,fit:this.fit,showHeader:this.showHeader});return{layout:o,isHidden:!1,renderExpanded:null,resizeProxyVisible:!1,resizeState:{width:null,height:null},isGroup:!1,scrollPosition:"left"}}},jr=zr,Hr=s(jr,Di,Ii,!1,null,null,null);Hr.options.__file="packages/table/src/table.vue";var Wr=Hr.exports;Wr.install=function(e){e.component(Wr.name,Wr)};var Yr=Wr,qr={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:"",className:"el-table-column--selection"},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Kr={selection:{renderHeader:function(e,t){var n=t.store;return e("el-checkbox",{attrs:{disabled:n.states.data&&0===n.states.data.length,indeterminate:n.states.selection.length>0&&!this.isAllSelected,value:this.isAllSelected},nativeOn:{click:this.toggleAllSelection}})},renderCell:function(e,t){var n=t.row,i=t.column,r=t.store,o=t.$index;return e("el-checkbox",{nativeOn:{click:function(e){return e.stopPropagation()}},attrs:{value:r.isSelected(n),disabled:!!i.selectable&&!i.selectable.call(null,n,o)},on:{input:function(){r.commit("rowSelectedChanged",n)}}})},sortable:!1,resizable:!1},index:{renderHeader:function(e,t){var n=t.column;return n.label||"#"},renderCell:function(e,t){var n=t.$index,i=t.column,r=n+1,o=i.index;return"number"===typeof o?r=n+o:"function"===typeof o&&(r=o(n)),e("div",[r])},sortable:!1},expand:{renderHeader:function(e,t){var n=t.column;return n.label||""},renderCell:function(e,t){var n=t.row,i=t.store,r=["el-table__expand-icon"];i.states.expandRows.indexOf(n)>-1&&r.push("el-table__expand-icon--expanded");var o=function(e){e.stopPropagation(),i.toggleRowExpansion(n)};return e("div",{class:r,on:{click:o}},[e("i",{class:"el-icon el-icon-arrow-right"})])},sortable:!1,resizable:!1,className:"el-table__expand-column"}};function Qr(e,t){var n=t.row,i=t.column,r=t.$index,o=i.property,a=o&&Object(_["getPropByPath"])(n,o).v;return i&&i.formatter?i.formatter(n,i,a,r):a}function Xr(e,t){var n=t.row,i=t.treeNode,r=t.store;if(!i)return null;var o=[],a=function(e){e.stopPropagation(),r.loadOrToggle(n)};if(i.indent&&o.push(e("span",{class:"el-table__indent",style:{"padding-left":i.indent+"px"}})),"boolean"!==typeof i.expanded||i.noLazyChildren)o.push(e("span",{class:"el-table__placeholder"}));else{var s=["el-table__expand-icon",i.expanded?"el-table__expand-icon--expanded":""],l=["el-icon-arrow-right"];i.loading&&(l=["el-icon-loading"]),o.push(e("div",{class:s,on:{click:a}},[e("i",{class:l})]))}return o}var Zr=Object.assign||function(e){for(var t=1;t-1}))}}},data:function(){return{isSubColumn:!1,columns:[]}},computed:{owner:function(){var e=this.$parent;while(e&&!e.tableId)e=e.$parent;return e},columnOrTableParent:function(){var e=this.$parent;while(e&&!e.tableId&&!e.columnId)e=e.$parent;return e},realWidth:function(){return er(this.width)},realMinWidth:function(){return tr(this.minWidth)},realAlign:function(){return this.align?"is-"+this.align:null},realHeaderAlign:function(){return this.headerAlign?"is-"+this.headerAlign:this.realAlign}},methods:{getPropsData:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i3&&void 0!==arguments[3]?arguments[3]:"-";if(!e)return null;var r=(po[n]||po["default"]).parser,o=t||ao[n];return r(e,o,i)},mo=function(e,t,n){if(!e)return null;var i=(po[n]||po["default"]).formatter,r=t||ao[n];return i(e,r)},vo=function(e,t){var n=function(e,t){var n=e instanceof Date,i=t instanceof Date;return n&&i?e.getTime()===t.getTime():!n&&!i&&e===t},i=e instanceof Array,r=t instanceof Array;return i&&r?e.length===t.length&&e.every((function(e,i){return n(e,t[i])})):!i&&!r&&n(e,t)},_o=function(e){return"string"===typeof e||e instanceof String},yo=function(e){return null===e||void 0===e||_o(e)||Array.isArray(e)&&2===e.length&&e.every(_o)},bo={mixins:[O.a,oo],inject:{elForm:{default:""},elFormItem:{default:""}},props:{size:String,format:String,valueFormat:String,readonly:Boolean,placeholder:String,startPlaceholder:String,endPlaceholder:String,prefixIcon:String,clearIcon:{type:String,default:"el-icon-circle-close"},name:{default:"",validator:yo},disabled:Boolean,clearable:{type:Boolean,default:!0},id:{default:"",validator:yo},popperClass:String,editable:{type:Boolean,default:!0},align:{type:String,default:"left"},value:{},defaultValue:{},defaultTime:{},rangeSeparator:{default:"-"},pickerOptions:{},unlinkPanels:Boolean,validateEvent:{type:Boolean,default:!0}},components:{ElInput:g.a},directives:{Clickoutside:$.a},data:function(){return{pickerVisible:!1,showClose:!1,userInput:null,valueOnOpen:null,unwatchPickerOptions:null}},watch:{pickerVisible:function(e){this.readonly||this.pickerDisabled||(e?(this.showPicker(),this.valueOnOpen=Array.isArray(this.value)?[].concat(this.value):this.value):(this.hidePicker(),this.emitChange(this.value),this.userInput=null,this.validateEvent&&this.dispatch("ElFormItem","el.form.blur"),this.$emit("blur",this),this.blur()))},parsedValue:{immediate:!0,handler:function(e){this.picker&&(this.picker.value=e)}},defaultValue:function(e){this.picker&&(this.picker.defaultValue=e)},value:function(e,t){vo(e,t)||this.pickerVisible||!this.validateEvent||this.dispatch("ElFormItem","el.form.change",e)}},computed:{ranged:function(){return this.type.indexOf("range")>-1},reference:function(){var e=this.$refs.reference;return e.$el||e},refInput:function(){return this.reference?[].slice.call(this.reference.querySelectorAll("input")):[]},valueIsEmpty:function(){var e=this.value;if(Array.isArray(e)){for(var t=0,n=e.length;t0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.userInput=null,e.pickerVisible=e.picker.visible=n,e.emitInput(t),e.picker.resetView&&e.picker.resetView()})),this.picker.$on("select-range",(function(t,n,i){0!==e.refInput.length&&(i&&"min"!==i?"max"===i&&(e.refInput[1].setSelectionRange(t,n),e.refInput[1].focus()):(e.refInput[0].setSelectionRange(t,n),e.refInput[0].focus()))}))},unmountPicker:function(){this.picker&&(this.picker.$destroy(),this.picker.$off(),"function"===typeof this.unwatchPickerOptions&&this.unwatchPickerOptions(),this.picker.$el.parentNode.removeChild(this.picker.$el))},emitChange:function(e){vo(e,this.valueOnOpen)||(this.$emit("change",e),this.valueOnOpen=e,this.validateEvent&&this.dispatch("ElFormItem","el.form.change",e))},emitInput:function(e){var t=this.formatToValue(e);vo(this.value,t)||this.$emit("input",t)},isValidValue:function(e){return this.picker||this.mountPicker(),!this.picker.isValidValue||e&&this.picker.isValidValue(e)}}},So=bo,Eo=s(So,no,io,!1,null,null,null);Eo.options.__file="packages/date-picker/src/picker.vue";var Co=Eo.exports,xo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-enter":e.handleEnter,"after-leave":e.handleLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,i){return n("button",{key:i,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-picker__time-header"},[n("span",{staticClass:"el-date-picker__editor-wrap"},[n("el-input",{attrs:{placeholder:e.t("el.datepicker.selectDate"),value:e.visibleDate,size:"small"},on:{input:function(t){return e.userInputDate=t},change:e.handleVisibleDateChange}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleTimePickClose,expression:"handleTimePickClose"}],staticClass:"el-date-picker__editor-wrap"},[n("el-input",{ref:"input",attrs:{placeholder:e.t("el.datepicker.selectTime"),value:e.visibleTime,size:"small"},on:{focus:function(t){e.timePickerVisible=!0},input:function(t){return e.userInputTime=t},change:e.handleVisibleTimeChange}}),n("time-picker",{ref:"timepicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.timePickerVisible},on:{pick:e.handleTimePick,mounted:e.proxyTimePickerDataProperties}})],1)]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:"time"!==e.currentView,expression:"currentView !== 'time'"}],staticClass:"el-date-picker__header",class:{"el-date-picker__header--bordered":"year"===e.currentView||"month"===e.currentView}},[n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-d-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevYear")},on:{click:e.prevYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevMonth")},on:{click:e.prevMonth}}),n("span",{staticClass:"el-date-picker__header-label",attrs:{role:"button"},on:{click:e.showYearPicker}},[e._v(e._s(e.yearLabel))]),n("span",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-date-picker__header-label",class:{active:"month"===e.currentView},attrs:{role:"button"},on:{click:e.showMonthPicker}},[e._v(e._s(e.t("el.datepicker.month"+(e.month+1))))]),n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-d-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextYear")},on:{click:e.nextYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextMonth")},on:{click:e.nextMonth}})]),n("div",{staticClass:"el-picker-panel__content"},[n("date-table",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],attrs:{"selection-mode":e.selectionMode,"first-day-of-week":e.firstDayOfWeek,value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"cell-class-name":e.cellClassName,"disabled-date":e.disabledDate},on:{pick:e.handleDatePick}}),n("year-table",{directives:[{name:"show",rawName:"v-show",value:"year"===e.currentView,expression:"currentView === 'year'"}],attrs:{value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleYearPick}}),n("month-table",{directives:[{name:"show",rawName:"v-show",value:"month"===e.currentView,expression:"currentView === 'month'"}],attrs:{value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleMonthPick}})],1)])],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.footerVisible&&"date"===e.currentView,expression:"footerVisible && currentView === 'date'"}],staticClass:"el-picker-panel__footer"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:"dates"!==e.selectionMode,expression:"selectionMode !== 'dates'"}],staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.changeToNow}},[e._v("\n "+e._s(e.t("el.datepicker.now"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini"},on:{click:e.confirm}},[e._v("\n "+e._s(e.t("el.datepicker.confirm"))+"\n ")])],1)])])},wo=[];xo._withStripped=!0;var To=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-time-panel el-popper",class:e.popperClass},[n("div",{staticClass:"el-time-panel__content",class:{"has-seconds":e.showSeconds}},[n("time-spinner",{ref:"spinner",attrs:{"arrow-control":e.useArrow,"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,date:e.date},on:{change:e.handleChange,"select-range":e.setSelectionRange}})],1),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:e.handleCancel}},[e._v(e._s(e.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn",class:{confirm:!e.disabled},attrs:{type:"button"},on:{click:function(t){e.handleConfirm()}}},[e._v(e._s(e.t("el.datepicker.confirm")))])])])])},Ao=[];To._withStripped=!0;var Oo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-time-spinner",class:{"has-seconds":e.showSeconds}},[e.arrowControl?e._e():[n("el-scrollbar",{ref:"hours",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("hours")},mousemove:function(t){e.adjustCurrentSpinner("hours")}}},e._l(e.hoursList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:i===e.hours,disabled:t},on:{click:function(n){e.handleClick("hours",{value:i,disabled:t})}}},[e._v(e._s(("0"+(e.amPmMode?i%12||12:i)).slice(-2))+e._s(e.amPm(i)))])})),0),n("el-scrollbar",{ref:"minutes",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("minutes")},mousemove:function(t){e.adjustCurrentSpinner("minutes")}}},e._l(e.minutesList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:i===e.minutes,disabled:!t},on:{click:function(t){e.handleClick("minutes",{value:i,disabled:!1})}}},[e._v(e._s(("0"+i).slice(-2)))])})),0),n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.showSeconds,expression:"showSeconds"}],ref:"seconds",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("seconds")},mousemove:function(t){e.adjustCurrentSpinner("seconds")}}},e._l(60,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:i===e.seconds},on:{click:function(t){e.handleClick("seconds",{value:i,disabled:!1})}}},[e._v(e._s(("0"+i).slice(-2)))])})),0)],e.arrowControl?[n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("hours")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"hours",staticClass:"el-time-spinner__list"},e._l(e.arrowHourList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:t===e.hours,disabled:e.hoursList[t]}},[e._v(e._s(void 0===t?"":("0"+(e.amPmMode?t%12||12:t)).slice(-2)+e.amPm(t)))])})),0)]),n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("minutes")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"minutes",staticClass:"el-time-spinner__list"},e._l(e.arrowMinuteList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:t===e.minutes}},[e._v("\n "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n ")])})),0)]),e.showSeconds?n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("seconds")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"seconds",staticClass:"el-time-spinner__list"},e._l(e.arrowSecondList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:t===e.seconds}},[e._v("\n "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n ")])})),0)]):e._e()]:e._e()],2)},Ro=[];Oo._withStripped=!0;var No={components:{ElScrollbar:H.a},directives:{repeatClick:kt},props:{date:{},defaultValue:{},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:""}},computed:{hours:function(){return this.date.getHours()},minutes:function(){return this.date.getMinutes()},seconds:function(){return this.date.getSeconds()},hoursList:function(){return Object(ro["getRangeHours"])(this.selectableRange)},minutesList:function(){return Object(ro["getRangeMinutes"])(this.selectableRange,this.hours)},arrowHourList:function(){var e=this.hours;return[e>0?e-1:void 0,e,e<23?e+1:void 0]},arrowMinuteList:function(){var e=this.minutes;return[e>0?e-1:void 0,e,e<59?e+1:void 0]},arrowSecondList:function(){var e=this.seconds;return[e>0?e-1:void 0,e,e<59?e+1:void 0]}},data:function(){return{selectableRange:[],currentScrollbar:null}},mounted:function(){var e=this;this.$nextTick((function(){!e.arrowControl&&e.bindScrollEvent()}))},methods:{increase:function(){this.scrollDown(1)},decrease:function(){this.scrollDown(-1)},modifyDateField:function(e,t){switch(e){case"hours":this.$emit("change",Object(ro["modifyTime"])(this.date,t,this.minutes,this.seconds));break;case"minutes":this.$emit("change",Object(ro["modifyTime"])(this.date,this.hours,t,this.seconds));break;case"seconds":this.$emit("change",Object(ro["modifyTime"])(this.date,this.hours,this.minutes,t));break}},handleClick:function(e,t){var n=t.value,i=t.disabled;i||(this.modifyDateField(e,n),this.emitSelectRange(e),this.adjustSpinner(e,n))},emitSelectRange:function(e){"hours"===e?this.$emit("select-range",0,2):"minutes"===e?this.$emit("select-range",3,5):"seconds"===e&&this.$emit("select-range",6,8),this.currentScrollbar=e},bindScrollEvent:function(){var e=this,t=function(t){e.$refs[t].wrap.onscroll=function(n){e.handleScroll(t,n)}};t("hours"),t("minutes"),t("seconds")},handleScroll:function(e){var t=Math.min(Math.round((this.$refs[e].wrap.scrollTop-(.5*this.scrollBarHeight(e)-10)/this.typeItemHeight(e)+3)/this.typeItemHeight(e)),"hours"===e?23:59);this.modifyDateField(e,t)},adjustSpinners:function(){this.adjustSpinner("hours",this.hours),this.adjustSpinner("minutes",this.minutes),this.adjustSpinner("seconds",this.seconds)},adjustCurrentSpinner:function(e){this.adjustSpinner(e,this[e])},adjustSpinner:function(e,t){if(!this.arrowControl){var n=this.$refs[e].wrap;n&&(n.scrollTop=Math.max(0,t*this.typeItemHeight(e)))}},scrollDown:function(e){var t=this;this.currentScrollbar||this.emitSelectRange("hours");var n=this.currentScrollbar,i=this.hoursList,r=this[n];if("hours"===this.currentScrollbar){var o=Math.abs(e);e=e>0?1:-1;var a=i.length;while(a--&&o)r=(r+e+i.length)%i.length,i[r]||o--;if(i[r])return}else r=(r+e+60)%60;this.modifyDateField(n,r),this.adjustSpinner(n,r),this.$nextTick((function(){return t.emitSelectRange(t.currentScrollbar)}))},amPm:function(e){var t="a"===this.amPmMode.toLowerCase();if(!t)return"";var n="A"===this.amPmMode,i=e<12?" am":" pm";return n&&(i=i.toUpperCase()),i},typeItemHeight:function(e){return this.$refs[e].$el.querySelector("li").offsetHeight},scrollBarHeight:function(e){return this.$refs[e].$el.offsetHeight}}},Do=No,Io=s(Do,Oo,Ro,!1,null,null,null);Io.options.__file="packages/date-picker/src/basic/time-spinner.vue";var Mo=Io.exports,ko={mixins:[v.a],components:{TimeSpinner:Mo},props:{visible:Boolean,timeArrowControl:Boolean},watch:{visible:function(e){var t=this;e?(this.oldValue=this.value,this.$nextTick((function(){return t.$refs.spinner.emitSelectRange("hours")}))):this.needInitAdjust=!0},value:function(e){var t=this,n=void 0;e instanceof Date?n=Object(ro["limitTimeRange"])(e,this.selectableRange,this.format):e||(n=this.defaultValue?new Date(this.defaultValue):new Date),this.date=n,this.visible&&this.needInitAdjust&&(this.$nextTick((function(e){return t.adjustSpinners()})),this.needInitAdjust=!1)},selectableRange:function(e){this.$refs.spinner.selectableRange=e},defaultValue:function(e){Object(ro["isDate"])(this.value)||(this.date=e?new Date(e):new Date)}},data:function(){return{popperClass:"",format:"HH:mm:ss",value:"",defaultValue:null,date:new Date,oldValue:new Date,selectableRange:[],selectionRange:[0,2],disabled:!1,arrowControl:!1,needInitAdjust:!0}},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},useArrow:function(){return this.arrowControl||this.timeArrowControl||!1},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},methods:{handleCancel:function(){this.$emit("pick",this.oldValue,!1)},handleChange:function(e){this.visible&&(this.date=Object(ro["clearMilliseconds"])(e),this.isValidValue(this.date)&&this.$emit("pick",this.date,!0))},setSelectionRange:function(e,t){this.$emit("select-range",e,t),this.selectionRange=[e,t]},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(!t){var n=Object(ro["clearMilliseconds"])(Object(ro["limitTimeRange"])(this.date,this.selectableRange,this.format));this.$emit("pick",n,e,t)}},handleKeydown:function(e){var t=e.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===t||39===t){var i=n[t];return this.changeSelectionRange(i),void e.preventDefault()}if(38===t||40===t){var r=n[t];return this.$refs.spinner.scrollDown(r),void e.preventDefault()}},isValidValue:function(e){return Object(ro["timeWithinRange"])(e,this.selectableRange,this.format)},adjustSpinners:function(){return this.$refs.spinner.adjustSpinners()},changeSelectionRange:function(e){var t=[0,3].concat(this.showSeconds?[6]:[]),n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),i=t.indexOf(this.selectionRange[0]),r=(i+e+t.length)%t.length;this.$refs.spinner.emitSelectRange(n[r])}},mounted:function(){var e=this;this.$nextTick((function(){return e.handleConfirm(!0,!0)})),this.$emit("mounted")}},Lo=ko,Po=s(Lo,To,Ao,!1,null,null,null);Po.options.__file="packages/date-picker/src/panel/time.vue";var Fo=Po.exports,Bo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-year-table",on:{click:e.handleYearTableClick}},[n("tbody",[n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+0)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+1)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+1))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+2)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+2))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+3)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+3))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+4)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+4))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+5)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+5))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+6)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+6))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+7)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+7))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+8)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+8))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+9)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+9))])]),n("td"),n("td")])])])},$o=[];Bo._withStripped=!0;var Vo=function(e){var t=Object(ro["getDayCountOfYear"])(e),n=new Date(e,0,1);return Object(ro["range"])(t).map((function(e){return Object(ro["nextDate"])(n,e)}))},Go={props:{disabledDate:{},value:{},defaultValue:{validator:function(e){return null===e||e instanceof Date&&Object(ro["isDate"])(e)}},date:{}},computed:{startYear:function(){return 10*Math.floor(this.date.getFullYear()/10)}},methods:{getCellStyle:function(e){var t={},n=new Date;return t.disabled="function"===typeof this.disabledDate&&Vo(e).every(this.disabledDate),t.current=Object(_["arrayFindIndex"])(Object(_["coerceTruthyValueToArray"])(this.value),(function(t){return t.getFullYear()===e}))>=0,t.today=n.getFullYear()===e,t.default=this.defaultValue&&this.defaultValue.getFullYear()===e,t},handleYearTableClick:function(e){var t=e.target;if("A"===t.tagName){if(Object(Be["hasClass"])(t.parentNode,"disabled"))return;var n=t.textContent||t.innerText;this.$emit("pick",Number(n))}}}},Uo=Go,zo=s(Uo,Bo,$o,!1,null,null,null);zo.options.__file="packages/date-picker/src/basic/year-table.vue";var jo=zo.exports,Ho=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-month-table",on:{click:e.handleMonthTableClick,mousemove:e.handleMouseMove}},[n("tbody",e._l(e.rows,(function(t,i){return n("tr",{key:i},e._l(t,(function(t,i){return n("td",{key:i,class:e.getCellStyle(t)},[n("div",[n("a",{staticClass:"cell"},[e._v(e._s(e.t("el.datepicker.months."+e.months[t.text])))])])])})),0)})),0)])},Wo=[];Ho._withStripped=!0;var Yo=function(e,t){var n=Object(ro["getDayCountOfMonth"])(e,t),i=new Date(e,t,1);return Object(ro["range"])(n).map((function(e){return Object(ro["nextDate"])(i,e)}))},qo=function(e){return new Date(e.getFullYear(),e.getMonth())},Ko=function(e){return"number"===typeof e||"string"===typeof e?qo(new Date(e)).getTime():e instanceof Date?qo(e).getTime():NaN},Qo={props:{disabledDate:{},value:{},selectionMode:{default:"month"},minDate:{},maxDate:{},defaultValue:{validator:function(e){return null===e||Object(ro["isDate"])(e)||Array.isArray(e)&&e.every(ro["isDate"])}},date:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},mixins:[v.a],watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){Ko(e)!==Ko(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){Ko(e)!==Ko(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{months:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],tableRows:[[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.date.getFullYear()===n.getFullYear()&&Number(e.text)===n.getMonth()},getCellStyle:function(e){var t=this,n={},i=this.date.getFullYear(),r=new Date,o=e.text,a=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[];return n.disabled="function"===typeof this.disabledDate&&Yo(i,o).every(this.disabledDate),n.current=Object(_["arrayFindIndex"])(Object(_["coerceTruthyValueToArray"])(this.value),(function(e){return e.getFullYear()===i&&e.getMonth()===o}))>=0,n.today=r.getFullYear()===i&&r.getMonth()===o,n.default=a.some((function(n){return t.cellMatchesDate(e,n)})),e.inRange&&(n["in-range"]=!0,e.start&&(n["start-date"]=!0),e.end&&(n["end-date"]=!0)),n},getMonthOfCell:function(e){var t=this.date.getFullYear();return new Date(t,e,1)},markRange:function(e,t){e=Ko(e),t=Ko(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var i=this.rows,r=0,o=i.length;r=e&&d<=t,c.start=e&&d===e,c.end=t&&d===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex,i=t.cellIndex;this.rows[n][i].disabled||n===this.lastRow&&i===this.lastColumn||(this.lastRow=n,this.lastColumn=i,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getMonthOfCell(4*n+i)}}))}}},handleMonthTableClick:function(e){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName&&!Object(Be["hasClass"])(t,"disabled")){var n=t.cellIndex,i=t.parentNode.rowIndex,r=4*i+n,o=this.getMonthOfCell(r);"range"===this.selectionMode?this.rangeState.selecting?(o>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:o}):this.$emit("pick",{minDate:o,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:o,maxDate:null}),this.rangeState.selecting=!0):this.$emit("pick",r)}}},computed:{rows:function(){for(var e=this,t=this.tableRows,n=this.disabledDate,i=[],r=Ko(new Date),o=0;o<3;o++)for(var a=t[o],s=function(t){var s=a[t];s||(s={row:o,column:t,type:"normal",inRange:!1,start:!1,end:!1}),s.type="normal";var l=4*o+t,c=new Date(e.date.getFullYear(),l).getTime();s.inRange=c>=Ko(e.minDate)&&c<=Ko(e.maxDate),s.start=e.minDate&&c===Ko(e.minDate),s.end=e.maxDate&&c===Ko(e.maxDate);var u=c===r;u&&(s.type="today"),s.text=l;var d=new Date(c);s.disabled="function"===typeof n&&n(d),s.selected=Object(_["arrayFind"])(i,(function(e){return e.getTime()===d.getTime()})),e.$set(a,t,s)},l=0;l<4;l++)s(l);return t}}},Xo=Qo,Zo=s(Xo,Ho,Wo,!1,null,null,null);Zo.options.__file="packages/date-picker/src/basic/month-table.vue";var Jo=Zo.exports,ea=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-date-table",class:{"is-week-mode":"week"===e.selectionMode},attrs:{cellspacing:"0",cellpadding:"0"},on:{click:e.handleClick,mousemove:e.handleMouseMove}},[n("tbody",[n("tr",[e.showWeekNumber?n("th",[e._v(e._s(e.t("el.datepicker.week")))]):e._e(),e._l(e.WEEKS,(function(t,i){return n("th",{key:i},[e._v(e._s(e.t("el.datepicker.weeks."+t)))])}))],2),e._l(e.rows,(function(t,i){return n("tr",{key:i,staticClass:"el-date-table__row",class:{current:e.isWeekActive(t[1])}},e._l(t,(function(t,i){return n("td",{key:i,class:e.getCellClasses(t)},[n("div",[n("span",[e._v("\n "+e._s(t.text)+"\n ")])])])})),0)}))],2)])},ta=[];ea._withStripped=!0;var na=["sun","mon","tue","wed","thu","fri","sat"],ia=function(e){return"number"===typeof e||"string"===typeof e?Object(ro["clearTime"])(new Date(e)).getTime():e instanceof Date?Object(ro["clearTime"])(e).getTime():NaN},ra=function(e,t){var n="function"===typeof t?Object(_["arrayFindIndex"])(e,t):e.indexOf(t);return n>=0?[].concat(e.slice(0,n),e.slice(n+1)):e},oa={mixins:[v.a],props:{firstDayOfWeek:{default:7,type:Number,validator:function(e){return e>=1&&e<=7}},value:{},defaultValue:{validator:function(e){return null===e||Object(ro["isDate"])(e)||Array.isArray(e)&&e.every(ro["isDate"])}},date:{},selectionMode:{default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{},cellClassName:{},minDate:{},maxDate:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},computed:{offsetDay:function(){var e=this.firstDayOfWeek;return e>3?7-e:-e},WEEKS:function(){var e=this.firstDayOfWeek;return na.concat(na).slice(e,e+7)},year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},startDate:function(){return Object(ro["getStartDateOfMonth"])(this.year,this.month)},rows:function(){var e=this,t=new Date(this.year,this.month,1),n=Object(ro["getFirstDayOfMonth"])(t),i=Object(ro["getDayCountOfMonth"])(t.getFullYear(),t.getMonth()),r=Object(ro["getDayCountOfMonth"])(t.getFullYear(),0===t.getMonth()?11:t.getMonth()-1);n=0===n?7:n;for(var o=this.offsetDay,a=this.tableRows,s=1,l=this.startDate,c=this.disabledDate,u=this.cellClassName,d="dates"===this.selectionMode?Object(_["coerceTruthyValueToArray"])(this.value):[],h=ia(new Date),p=0;p<6;p++){var f=a[p];this.showWeekNumber&&(f[0]||(f[0]={type:"week",text:Object(ro["getWeekNumber"])(Object(ro["nextDate"])(l,7*p+1))}));for(var g=function(t){var a=f[e.showWeekNumber?t+1:t];a||(a={row:p,column:t,type:"normal",inRange:!1,start:!1,end:!1}),a.type="normal";var g=7*p+t,m=Object(ro["nextDate"])(l,g-o).getTime();a.inRange=m>=ia(e.minDate)&&m<=ia(e.maxDate),a.start=e.minDate&&m===ia(e.minDate),a.end=e.maxDate&&m===ia(e.maxDate);var v=m===h;if(v&&(a.type="today"),p>=0&&p<=1){var y=n+o<0?7+n+o:n+o;t+7*p>=y?a.text=s++:(a.text=r-(y-t%7)+1+7*p,a.type="prev-month")}else s<=i?a.text=s++:(a.text=s++-i,a.type="next-month");var b=new Date(m);a.disabled="function"===typeof c&&c(b),a.selected=Object(_["arrayFind"])(d,(function(e){return e.getTime()===b.getTime()})),a.customClass="function"===typeof u&&u(b),e.$set(f,e.showWeekNumber?t+1:t,a)},m=0;m<7;m++)g(m);if("week"===this.selectionMode){var v=this.showWeekNumber?1:0,y=this.showWeekNumber?7:6,b=this.isWeekActive(f[v+1]);f[v].inRange=b,f[v].start=b,f[y].inRange=b,f[y].end=b}}return a}},watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){ia(e)!==ia(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){ia(e)!==ia(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{tableRows:[[],[],[],[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.year===n.getFullYear()&&this.month===n.getMonth()&&Number(e.text)===n.getDate()},getCellClasses:function(e){var t=this,n=this.selectionMode,i=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[],r=[];return"normal"!==e.type&&"today"!==e.type||e.disabled?r.push(e.type):(r.push("available"),"today"===e.type&&r.push("today")),"normal"===e.type&&i.some((function(n){return t.cellMatchesDate(e,n)}))&&r.push("default"),"day"!==n||"normal"!==e.type&&"today"!==e.type||!this.cellMatchesDate(e,this.value)||r.push("current"),!e.inRange||"normal"!==e.type&&"today"!==e.type&&"week"!==this.selectionMode||(r.push("in-range"),e.start&&r.push("start-date"),e.end&&r.push("end-date")),e.disabled&&r.push("disabled"),e.selected&&r.push("selected"),e.customClass&&r.push(e.customClass),r.join(" ")},getDateOfCell:function(e,t){var n=7*e+(t-(this.showWeekNumber?1:0))-this.offsetDay;return Object(ro["nextDate"])(this.startDate,n)},isWeekActive:function(e){if("week"!==this.selectionMode)return!1;var t=new Date(this.year,this.month,1),n=t.getFullYear(),i=t.getMonth();if("prev-month"===e.type&&(t.setMonth(0===i?11:i-1),t.setFullYear(0===i?n-1:n)),"next-month"===e.type&&(t.setMonth(11===i?0:i+1),t.setFullYear(11===i?n+1:n)),t.setDate(parseInt(e.text,10)),Object(ro["isDate"])(this.value)){var r=(this.value.getDay()-this.firstDayOfWeek+7)%7-1,o=Object(ro["prevDate"])(this.value,r);return o.getTime()===t.getTime()}return!1},markRange:function(e,t){e=ia(e),t=ia(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var i=this.startDate,r=this.rows,o=0,a=r.length;o=e&&h<=t,u.start=e&&h===e,u.end=t&&h===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,i=t.cellIndex;this.rows[n][i].disabled||n===this.lastRow&&i===this.lastColumn||(this.lastRow=n,this.lastColumn=i,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getDateOfCell(n,i)}}))}}},handleClick:function(e){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,i="week"===this.selectionMode?1:t.cellIndex,r=this.rows[n][i];if(!r.disabled&&"week"!==r.type){var o=this.getDateOfCell(n,i);if("range"===this.selectionMode)this.rangeState.selecting?(o>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:o}):this.$emit("pick",{minDate:o,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:o,maxDate:null}),this.rangeState.selecting=!0);else if("day"===this.selectionMode)this.$emit("pick",o);else if("week"===this.selectionMode){var a=Object(ro["getWeekNumber"])(o),s=o.getFullYear()+"w"+a;this.$emit("pick",{year:o.getFullYear(),week:a,value:s,date:o})}else if("dates"===this.selectionMode){var l=this.value||[],c=r.selected?ra(l,(function(e){return e.getTime()===o.getTime()})):[].concat(l,[o]);this.$emit("pick",c)}}}}}},aa=oa,sa=s(aa,ea,ta,!1,null,null,null);sa.options.__file="packages/date-picker/src/basic/date-table.vue";var la=sa.exports,ca={mixins:[v.a],directives:{Clickoutside:$.a},watch:{showTime:function(e){var t=this;e&&this.$nextTick((function(e){var n=t.$refs.input.$el;n&&(t.pickerWidth=n.getBoundingClientRect().width+10)}))},value:function(e){"dates"===this.selectionMode&&this.value||(Object(ro["isDate"])(e)?this.date=new Date(e):this.date=this.getDefaultValue())},defaultValue:function(e){Object(ro["isDate"])(this.value)||(this.date=e?new Date(e):new Date)},timePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){return t.$refs.timepicker.adjustSpinners()}))},selectionMode:function(e){"month"===e?"year"===this.currentView&&"month"===this.currentView||(this.currentView="month"):"dates"===e&&(this.currentView="date")}},methods:{proxyTimePickerDataProperties:function(){var e=this,t=function(t){e.$refs.timepicker.format=t},n=function(t){e.$refs.timepicker.value=t},i=function(t){e.$refs.timepicker.date=t},r=function(t){e.$refs.timepicker.selectableRange=t};this.$watch("value",n),this.$watch("date",i),this.$watch("selectableRange",r),t(this.timeFormat),n(this.value),i(this.date),r(this.selectableRange)},handleClear:function(){this.date=this.getDefaultValue(),this.$emit("pick",null)},emit:function(e){for(var t=this,n=arguments.length,i=Array(n>1?n-1:0),r=1;r0)||Object(ro["timeWithinRange"])(e,this.selectableRange,this.format||"HH:mm:ss")}},components:{TimePicker:Fo,YearTable:jo,MonthTable:Jo,DateTable:la,ElInput:g.a,ElButton:ae.a},data:function(){return{popperClass:"",date:new Date,value:"",defaultValue:null,defaultTime:null,showTime:!1,selectionMode:"day",shortcuts:"",visible:!1,currentView:"date",disabledDate:"",cellClassName:"",selectableRange:[],firstDayOfWeek:7,showWeekNumber:!1,timePickerVisible:!1,format:"",arrowControl:!1,userInputDate:null,userInputTime:null}},computed:{year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},week:function(){return Object(ro["getWeekNumber"])(this.date)},monthDate:function(){return this.date.getDate()},footerVisible:function(){return this.showTime||"dates"===this.selectionMode},visibleTime:function(){return null!==this.userInputTime?this.userInputTime:Object(ro["formatDate"])(this.value||this.defaultValue,this.timeFormat)},visibleDate:function(){return null!==this.userInputDate?this.userInputDate:Object(ro["formatDate"])(this.value||this.defaultValue,this.dateFormat)},yearLabel:function(){var e=this.t("el.datepicker.year");if("year"===this.currentView){var t=10*Math.floor(this.year/10);return e?t+" "+e+" - "+(t+9)+" "+e:t+" - "+(t+9)}return this.year+" "+e},timeFormat:function(){return this.format?Object(ro["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(ro["extractDateFormat"])(this.format):"yyyy-MM-dd"}}},ua=ca,da=s(ua,xo,wo,!1,null,null,null);da.options.__file="packages/date-picker/src/panel/date.vue";var ha=da.exports,pa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,i){return n("button",{key:i,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-range-picker__time-header"},[n("span",{staticClass:"el-date-range-picker__editors-wrap"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{ref:"minInput",staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startDate"),value:e.minVisibleDate},on:{input:function(t){return e.handleDateInput(t,"min")},change:function(t){return e.handleDateChange(t,"min")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMinTimeClose,expression:"handleMinTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startTime"),value:e.minVisibleTime},on:{focus:function(t){e.minTimePickerVisible=!0},input:function(t){return e.handleTimeInput(t,"min")},change:function(t){return e.handleTimeChange(t,"min")}}}),n("time-picker",{ref:"minTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.minTimePickerVisible},on:{pick:e.handleMinTimePick,mounted:function(t){e.$refs.minTimePicker.format=e.timeFormat}}})],1)]),n("span",{staticClass:"el-icon-arrow-right"}),n("span",{staticClass:"el-date-range-picker__editors-wrap is-right"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endDate"),value:e.maxVisibleDate,readonly:!e.minDate},on:{input:function(t){return e.handleDateInput(t,"max")},change:function(t){return e.handleDateChange(t,"max")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMaxTimeClose,expression:"handleMaxTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endTime"),value:e.maxVisibleTime,readonly:!e.minDate},on:{focus:function(t){e.minDate&&(e.maxTimePickerVisible=!0)},input:function(t){return e.handleTimeInput(t,"max")},change:function(t){return e.handleTimeChange(t,"max")}}}),n("time-picker",{ref:"maxTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.maxTimePickerVisible},on:{pick:e.handleMaxTimePick,mounted:function(t){e.$refs.maxTimePicker.format=e.timeFormat}}})],1)])]):e._e(),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevMonth}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.leftNextMonth}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.rightPrevMonth}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",attrs:{type:"button"},on:{click:e.rightNextMonth}}),n("div",[e._v(e._s(e.rightLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2),e.showTime?n("div",{staticClass:"el-picker-panel__footer"},[n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.handleClear}},[e._v("\n "+e._s(e.t("el.datepicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini",disabled:e.btnDisabled},on:{click:function(t){e.handleConfirm(!1)}}},[e._v("\n "+e._s(e.t("el.datepicker.confirm"))+"\n ")])],1):e._e()])])},fa=[];pa._withStripped=!0;var ga=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(ro["nextDate"])(new Date(e),1)]:[new Date,Object(ro["nextDate"])(new Date,1)]},ma={mixins:[v.a],directives:{Clickoutside:$.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.leftDate.getMonth()+1))},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.rightDate.getMonth()+1))},leftYear:function(){return this.leftDate.getFullYear()},leftMonth:function(){return this.leftDate.getMonth()},leftMonthDate:function(){return this.leftDate.getDate()},rightYear:function(){return this.rightDate.getFullYear()},rightMonth:function(){return this.rightDate.getMonth()},rightMonthDate:function(){return this.rightDate.getDate()},minVisibleDate:function(){return null!==this.dateUserInput.min?this.dateUserInput.min:this.minDate?Object(ro["formatDate"])(this.minDate,this.dateFormat):""},maxVisibleDate:function(){return null!==this.dateUserInput.max?this.dateUserInput.max:this.maxDate||this.minDate?Object(ro["formatDate"])(this.maxDate||this.minDate,this.dateFormat):""},minVisibleTime:function(){return null!==this.timeUserInput.min?this.timeUserInput.min:this.minDate?Object(ro["formatDate"])(this.minDate,this.timeFormat):""},maxVisibleTime:function(){return null!==this.timeUserInput.max?this.timeUserInput.max:this.maxDate||this.minDate?Object(ro["formatDate"])(this.maxDate||this.minDate,this.timeFormat):""},timeFormat:function(){return this.format?Object(ro["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(ro["extractDateFormat"])(this.format):"yyyy-MM-dd"},enableMonthArrow:function(){var e=(this.leftMonth+1)%12,t=this.leftMonth+1>=12?1:0;return this.unlinkPanels&&new Date(this.leftYear+t,e)=12}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(ro["nextMonth"])(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},showTime:!1,shortcuts:"",visible:"",disabledDate:"",cellClassName:"",firstDayOfWeek:7,minTimePickerVisible:!1,maxTimePickerVisible:!1,format:"",arrowControl:!1,unlinkPanels:!1,dateUserInput:{min:null,max:null},timeUserInput:{min:null,max:null}}},watch:{minDate:function(e){var t=this;this.dateUserInput.min=null,this.timeUserInput.min=null,this.$nextTick((function(){if(t.$refs.maxTimePicker&&t.maxDate&&t.maxDatethis.maxDate&&(this.maxDate=this.minDate)):(this.maxDate=Object(ro["modifyDate"])(this.maxDate,n.getFullYear(),n.getMonth(),n.getDate()),this.maxDatethis.maxDate&&(this.maxDate=this.minDate),this.$refs.minTimePicker.value=this.minDate,this.minTimePickerVisible=!1):(this.maxDate=Object(ro["modifyTime"])(this.maxDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.maxDate1&&void 0!==arguments[1])||arguments[1],i=this.defaultTime||[],r=Object(ro["modifyWithTimeString"])(e.minDate,i[0]),o=Object(ro["modifyWithTimeString"])(e.maxDate,i[1]);this.maxDate===o&&this.minDate===r||(this.onPick&&this.onPick(e),this.maxDate=o,this.minDate=r,setTimeout((function(){t.maxDate=o,t.minDate=r}),10),n&&!this.showTime&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleMinTimePick:function(e,t,n){this.minDate=this.minDate||new Date,e&&(this.minDate=Object(ro["modifyTime"])(this.minDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.minTimePickerVisible=t),(!this.maxDate||this.maxDate&&this.maxDate.getTime()this.maxDate.getTime()&&(this.minDate=new Date(this.maxDate))},handleMaxTimeClose:function(){this.maxTimePickerVisible=!1},leftPrevYear:function(){this.leftDate=Object(ro["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(ro["nextMonth"])(this.leftDate))},leftPrevMonth:function(){this.leftDate=Object(ro["prevMonth"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(ro["nextMonth"])(this.leftDate))},rightNextYear:function(){this.unlinkPanels?this.rightDate=Object(ro["nextYear"])(this.rightDate):(this.leftDate=Object(ro["nextYear"])(this.leftDate),this.rightDate=Object(ro["nextMonth"])(this.leftDate))},rightNextMonth:function(){this.unlinkPanels?this.rightDate=Object(ro["nextMonth"])(this.rightDate):(this.leftDate=Object(ro["nextMonth"])(this.leftDate),this.rightDate=Object(ro["nextMonth"])(this.leftDate))},leftNextYear:function(){this.leftDate=Object(ro["nextYear"])(this.leftDate)},leftNextMonth:function(){this.leftDate=Object(ro["nextMonth"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(ro["prevYear"])(this.rightDate)},rightPrevMonth:function(){this.rightDate=Object(ro["prevMonth"])(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(ro["isDate"])(e[0])&&Object(ro["isDate"])(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!==typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate&&null==this.maxDate&&(this.rangeState.selecting=!1),this.minDate=this.value&&Object(ro["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(ro["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{TimePicker:Fo,DateTable:la,ElInput:g.a,ElButton:ae.a}},va=ma,_a=s(va,pa,fa,!1,null,null,null);_a.options.__file="packages/date-picker/src/panel/date-range.vue";var ya=_a.exports,ba=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,i){return n("button",{key:i,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("div",[e._v(e._s(e.rightLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2)])])},Sa=[];ba._withStripped=!0;var Ea=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(ro["nextMonth"])(new Date(e))]:[new Date,Object(ro["nextMonth"])(new Date)]},Ca={mixins:[v.a],directives:{Clickoutside:$.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")},leftYear:function(){return this.leftDate.getFullYear()},rightYear:function(){return this.rightDate.getFullYear()===this.leftDate.getFullYear()?this.leftDate.getFullYear()+1:this.rightDate.getFullYear()},enableYearArrow:function(){return this.unlinkPanels&&this.rightYear>this.leftYear+1}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(ro["nextYear"])(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},shortcuts:"",visible:"",disabledDate:"",format:"",arrowControl:!1,unlinkPanels:!1}},watch:{value:function(e){if(e){if(Array.isArray(e))if(this.minDate=Object(ro["isDate"])(e[0])?new Date(e[0]):null,this.maxDate=Object(ro["isDate"])(e[1])?new Date(e[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var t=this.minDate.getFullYear(),n=this.maxDate.getFullYear();this.rightDate=t===n?Object(ro["nextYear"])(this.maxDate):this.maxDate}else this.rightDate=Object(ro["nextYear"])(this.leftDate);else this.leftDate=Ea(this.defaultValue)[0],this.rightDate=Object(ro["nextYear"])(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=Ea(e),n=t[0],i=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&n.getFullYear()!==i.getFullYear()&&this.unlinkPanels?i:Object(ro["nextYear"])(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=Ea(this.defaultValue)[0],this.rightDate=Object(ro["nextYear"])(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleRangePick:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.defaultTime||[],r=Object(ro["modifyWithTimeString"])(e.minDate,i[0]),o=Object(ro["modifyWithTimeString"])(e.maxDate,i[1]);this.maxDate===o&&this.minDate===r||(this.onPick&&this.onPick(e),this.maxDate=o,this.minDate=r,setTimeout((function(){t.maxDate=o,t.minDate=r}),10),n&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},leftPrevYear:function(){this.leftDate=Object(ro["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(ro["prevYear"])(this.rightDate))},rightNextYear:function(){this.unlinkPanels||(this.leftDate=Object(ro["nextYear"])(this.leftDate)),this.rightDate=Object(ro["nextYear"])(this.rightDate)},leftNextYear:function(){this.leftDate=Object(ro["nextYear"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(ro["prevYear"])(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(ro["isDate"])(e[0])&&Object(ro["isDate"])(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!==typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate=this.value&&Object(ro["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(ro["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{MonthTable:Jo,ElInput:g.a,ElButton:ae.a}},xa=Ca,wa=s(xa,ba,Sa,!1,null,null,null);wa.options.__file="packages/date-picker/src/panel/month-range.vue";var Ta=wa.exports,Aa=function(e){return"daterange"===e||"datetimerange"===e?ya:"monthrange"===e?Ta:ha},Oa={mixins:[Co],name:"ElDatePicker",props:{type:{type:String,default:"date"},timeArrowControl:Boolean},watch:{type:function(e){this.picker?(this.unmountPicker(),this.panel=Aa(e),this.mountPicker()):this.panel=Aa(e)}},created:function(){this.panel=Aa(this.type)},install:function(e){e.component(Oa.name,Oa)}},Ra=Oa,Na=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],ref:"popper",staticClass:"el-picker-panel time-select el-popper",class:e.popperClass,style:{width:e.width+"px"}},[n("el-scrollbar",{attrs:{noresize:"","wrap-class":"el-picker-panel__content"}},e._l(e.items,(function(t){return n("div",{key:t.value,staticClass:"time-select-item",class:{selected:e.value===t.value,disabled:t.disabled,default:t.value===e.defaultValue},attrs:{disabled:t.disabled},on:{click:function(n){e.handleClick(t)}}},[e._v(e._s(t.value))])})),0)],1)])},Da=[];Na._withStripped=!0;var Ia=function(e){var t=(e||"").split(":");if(t.length>=2){var n=parseInt(t[0],10),i=parseInt(t[1],10);return{hours:n,minutes:i}}return null},Ma=function(e,t){var n=Ia(e),i=Ia(t),r=n.minutes+60*n.hours,o=i.minutes+60*i.hours;return r===o?0:r>o?1:-1},ka=function(e){return(e.hours<10?"0"+e.hours:e.hours)+":"+(e.minutes<10?"0"+e.minutes:e.minutes)},La=function(e,t){var n=Ia(e),i=Ia(t),r={hours:n.hours,minutes:n.minutes};return r.minutes+=i.minutes,r.hours+=i.hours,r.hours+=Math.floor(r.minutes/60),r.minutes=r.minutes%60,ka(r)},Pa={components:{ElScrollbar:H.a},watch:{value:function(e){var t=this;e&&this.$nextTick((function(){return t.scrollToOption()}))}},methods:{handleClick:function(e){e.disabled||this.$emit("pick",e.value)},handleClear:function(){this.$emit("pick",null)},scrollToOption:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".selected",t=this.$refs.popper.querySelector(".el-picker-panel__content");ni()(t,t.querySelector(e))},handleMenuEnter:function(){var e=this,t=-1!==this.items.map((function(e){return e.value})).indexOf(this.value),n=-1!==this.items.map((function(e){return e.value})).indexOf(this.defaultValue),i=(t?".selected":n&&".default")||".time-select-item:not(.disabled)";this.$nextTick((function(){return e.scrollToOption(i)}))},scrollDown:function(e){var t=this.items,n=t.length,i=t.length,r=t.map((function(e){return e.value})).indexOf(this.value);while(i--)if(r=(r+e+n)%n,!t[r].disabled)return void this.$emit("pick",t[r].value,!0)},isValidValue:function(e){return-1!==this.items.filter((function(e){return!e.disabled})).map((function(e){return e.value})).indexOf(e)},handleKeydown:function(e){var t=e.keyCode;if(38===t||40===t){var n={40:1,38:-1},i=n[t.toString()];return this.scrollDown(i),void e.stopPropagation()}}},data:function(){return{popperClass:"",start:"09:00",end:"18:00",step:"00:30",value:"",defaultValue:"",visible:!1,minTime:"",maxTime:"",width:0}},computed:{items:function(){var e=this.start,t=this.end,n=this.step,i=[];if(e&&t&&n){var r=e;while(Ma(r,t)<=0)i.push({value:r,disabled:Ma(r,this.minTime||"-1:-1")<=0||Ma(r,this.maxTime||"100:100")>=0}),r=La(r,n)}return i}}},Fa=Pa,Ba=s(Fa,Na,Da,!1,null,null,null);Ba.options.__file="packages/date-picker/src/panel/time-select.vue";var $a=Ba.exports,Va={mixins:[Co],name:"ElTimeSelect",componentName:"ElTimeSelect",props:{type:{type:String,default:"time-select"}},beforeCreate:function(){this.panel=$a},install:function(e){e.component(Va.name,Va)}},Ga=Va,Ua=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-time-range-picker el-picker-panel el-popper",class:e.popperClass},[n("div",{staticClass:"el-time-range-picker__content"},[n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[e._v(e._s(e.t("el.datepicker.startTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":e.showSeconds,"is-arrow":e.arrowControl}},[n("time-spinner",{ref:"minSpinner",attrs:{"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,date:e.minDate},on:{change:e.handleMinChange,"select-range":e.setMinSelectionRange}})],1)]),n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[e._v(e._s(e.t("el.datepicker.endTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":e.showSeconds,"is-arrow":e.arrowControl}},[n("time-spinner",{ref:"maxSpinner",attrs:{"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,date:e.maxDate},on:{change:e.handleMaxChange,"select-range":e.setMaxSelectionRange}})],1)])]),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:function(t){e.handleCancel()}}},[e._v(e._s(e.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn confirm",attrs:{type:"button",disabled:e.btnDisabled},on:{click:function(t){e.handleConfirm()}}},[e._v(e._s(e.t("el.datepicker.confirm")))])])])])},za=[];Ua._withStripped=!0;var ja=Object(ro["parseDate"])("00:00:00","HH:mm:ss"),Ha=Object(ro["parseDate"])("23:59:59","HH:mm:ss"),Wa=function(e){return Object(ro["modifyDate"])(ja,e.getFullYear(),e.getMonth(),e.getDate())},Ya=function(e){return Object(ro["modifyDate"])(Ha,e.getFullYear(),e.getMonth(),e.getDate())},qa=function(e,t){return new Date(Math.min(e.getTime()+t,Ya(e).getTime()))},Ka={mixins:[v.a],components:{TimeSpinner:Mo},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},offset:function(){return this.showSeconds?11:8},spinner:function(){return this.selectionRange[0]this.maxDate.getTime()},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},data:function(){return{popperClass:"",minDate:new Date,maxDate:new Date,value:[],oldValue:[new Date,new Date],defaultValue:null,format:"HH:mm:ss",visible:!1,selectionRange:[0,2],arrowControl:!1}},watch:{value:function(e){Array.isArray(e)?(this.minDate=new Date(e[0]),this.maxDate=new Date(e[1])):Array.isArray(this.defaultValue)?(this.minDate=new Date(this.defaultValue[0]),this.maxDate=new Date(this.defaultValue[1])):this.defaultValue?(this.minDate=new Date(this.defaultValue),this.maxDate=qa(new Date(this.defaultValue),36e5)):(this.minDate=new Date,this.maxDate=qa(new Date,36e5))},visible:function(e){var t=this;e&&(this.oldValue=this.value,this.$nextTick((function(){return t.$refs.minSpinner.emitSelectRange("hours")})))}},methods:{handleClear:function(){this.$emit("pick",null)},handleCancel:function(){this.$emit("pick",this.oldValue)},handleMinChange:function(e){this.minDate=Object(ro["clearMilliseconds"])(e),this.handleChange()},handleMaxChange:function(e){this.maxDate=Object(ro["clearMilliseconds"])(e),this.handleChange()},handleChange:function(){this.isValidValue([this.minDate,this.maxDate])&&(this.$refs.minSpinner.selectableRange=[[Wa(this.minDate),this.maxDate]],this.$refs.maxSpinner.selectableRange=[[this.minDate,Ya(this.maxDate)]],this.$emit("pick",[this.minDate,this.maxDate],!0))},setMinSelectionRange:function(e,t){this.$emit("select-range",e,t,"min"),this.selectionRange=[e,t]},setMaxSelectionRange:function(e,t){this.$emit("select-range",e,t,"max"),this.selectionRange=[e+this.offset,t+this.offset]},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.$refs.minSpinner.selectableRange,n=this.$refs.maxSpinner.selectableRange;this.minDate=Object(ro["limitTimeRange"])(this.minDate,t,this.format),this.maxDate=Object(ro["limitTimeRange"])(this.maxDate,n,this.format),this.$emit("pick",[this.minDate,this.maxDate],e)},adjustSpinners:function(){this.$refs.minSpinner.adjustSpinners(),this.$refs.maxSpinner.adjustSpinners()},changeSelectionRange:function(e){var t=this.showSeconds?[0,3,6,11,14,17]:[0,3,8,11],n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),i=t.indexOf(this.selectionRange[0]),r=(i+e+t.length)%t.length,o=t.length/2;r-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(_["generateId"])()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var e=this,t=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(Be["addClass"])(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(Be["on"])(t,"focusin",(function(){e.handleFocus();var n=t.__vue__;n&&"function"===typeof n.focus&&n.focus()})),Object(Be["on"])(n,"focusin",this.handleFocus),Object(Be["on"])(t,"focusout",this.handleBlur),Object(Be["on"])(n,"focusout",this.handleBlur)),Object(Be["on"])(t,"keydown",this.handleKeydown),Object(Be["on"])(t,"click",this.handleClick)),"click"===this.trigger?(Object(Be["on"])(t,"click",this.doToggle),Object(Be["on"])(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(Be["on"])(t,"mouseenter",this.handleMouseEnter),Object(Be["on"])(n,"mouseenter",this.handleMouseEnter),Object(Be["on"])(t,"mouseleave",this.handleMouseLeave),Object(Be["on"])(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),t.querySelector("input, textarea")?(Object(Be["on"])(t,"focusin",this.doShow),Object(Be["on"])(t,"focusout",this.doClose)):(Object(Be["on"])(t,"mousedown",this.doShow),Object(Be["on"])(t,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(Be["addClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(Be["removeClass"])(this.referenceElm,"focusing")},handleBlur:function(){Object(Be["removeClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){e.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){e.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(Be["off"])(e,"click",this.doToggle),Object(Be["off"])(e,"mouseup",this.doClose),Object(Be["off"])(e,"mousedown",this.doShow),Object(Be["off"])(e,"focusin",this.doShow),Object(Be["off"])(e,"focusout",this.doClose),Object(Be["off"])(e,"mousedown",this.doShow),Object(Be["off"])(e,"mouseup",this.doClose),Object(Be["off"])(e,"mouseleave",this.handleMouseLeave),Object(Be["off"])(e,"mouseenter",this.handleMouseEnter),Object(Be["off"])(document,"click",this.handleDocumentClick)}},rs=is,os=s(rs,ts,ns,!1,null,null,null);os.options.__file="packages/popover/src/main.vue";var as=os.exports,ss=function(e,t,n){var i=t.expression?t.value:t.arg,r=n.context.$refs[i];r&&(Array.isArray(r)?r[0].$refs.reference=e:r.$refs.reference=e)},ls={bind:function(e,t,n){ss(e,t,n)},inserted:function(e,t,n){ss(e,t,n)}};Ui.a.directive("popover",ls),as.install=function(e){e.directive("popover",ls),e.component(as.name,as)},as.directive=ls;var cs=as,us={name:"ElTooltip",mixins:[z.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(_["generateId"])(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new Ui.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=F()(200,(function(){return e.handleClosePopper()})))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var i=n.data=n.data||{};return i.staticClass=this.addTooltipClass(i.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(Be["on"])(this.referenceElm,"mouseenter",this.show),Object(Be["on"])(this.referenceElm,"mouseleave",this.hide),Object(Be["on"])(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(Be["on"])(this.referenceElm,"blur",this.handleBlur),Object(Be["on"])(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(Be["addClass"])(this.referenceElm,"focusing"):Object(Be["removeClass"])(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;n0){Os=Ns.shift();var t=Os.options;for(var n in t)t.hasOwnProperty(n)&&(Rs[n]=t[n]);void 0===t.callback&&(Rs.callback=Ds);var i=Rs.callback;Rs.callback=function(t,n){i(t,n),e()},Object(xs["isVNode"])(Rs.message)?(Rs.$slots.default=[Rs.message],Rs.message=null):delete Rs.$slots.default,["modal","showClose","closeOnClickModal","closeOnPressEscape","closeOnHashChange"].forEach((function(e){void 0===Rs[e]&&(Rs[e]=!0)})),document.body.appendChild(Rs.$el),Ui.a.nextTick((function(){Rs.visible=!0}))}},ks=function e(t,n){if(!Ui.a.prototype.$isServer){if("string"===typeof t||Object(xs["isVNode"])(t)?(t={message:t},"string"===typeof arguments[1]&&(t.title=arguments[1])):t.callback&&!n&&(n=t.callback),"undefined"!==typeof Promise)return new Promise((function(i,r){Ns.push({options:wt()({},Ts,e.defaults,t),callback:n,resolve:i,reject:r}),Ms()}));Ns.push({options:wt()({},Ts,e.defaults,t),callback:n}),Ms()}};ks.setDefaults=function(e){ks.defaults=e},ks.alert=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":ws(t))?(n=t,t=""):void 0===t&&(t=""),ks(wt()({title:t,message:e,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},ks.confirm=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":ws(t))?(n=t,t=""):void 0===t&&(t=""),ks(wt()({title:t,message:e,$type:"confirm",showCancelButton:!0},n))},ks.prompt=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":ws(t))?(n=t,t=""):void 0===t&&(t=""),ks(wt()({title:t,message:e,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},ks.close=function(){Rs.doClose(),Rs.visible=!1,Ns=[],Os=null};var Ls=ks,Ps=Ls,Fs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[e._t("default")],2)},Bs=[];Fs._withStripped=!0;var $s={name:"ElBreadcrumb",props:{separator:{type:String,default:"/"},separatorClass:{type:String,default:""}},provide:function(){return{elBreadcrumb:this}},mounted:function(){var e=this.$el.querySelectorAll(".el-breadcrumb__item");e.length&&e[e.length-1].setAttribute("aria-current","page")}},Vs=$s,Gs=s(Vs,Fs,Bs,!1,null,null,null);Gs.options.__file="packages/breadcrumb/src/breadcrumb.vue";var Us=Gs.exports;Us.install=function(e){e.component(Us.name,Us)};var zs=Us,js=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"el-breadcrumb__item"},[n("span",{ref:"link",class:["el-breadcrumb__inner",e.to?"is-link":""],attrs:{role:"link"}},[e._t("default")],2),e.separatorClass?n("i",{staticClass:"el-breadcrumb__separator",class:e.separatorClass}):n("span",{staticClass:"el-breadcrumb__separator",attrs:{role:"presentation"}},[e._v(e._s(e.separator))])])},Hs=[];js._withStripped=!0;var Ws={name:"ElBreadcrumbItem",props:{to:{},replace:Boolean},data:function(){return{separator:"",separatorClass:""}},inject:["elBreadcrumb"],mounted:function(){var e=this;this.separator=this.elBreadcrumb.separator,this.separatorClass=this.elBreadcrumb.separatorClass;var t=this.$refs.link;t.setAttribute("role","link"),t.addEventListener("click",(function(t){var n=e.to,i=e.$router;n&&i&&(e.replace?i.replace(n):i.push(n))}))}},Ys=Ws,qs=s(Ys,js,Hs,!1,null,null,null);qs.options.__file="packages/breadcrumb/src/breadcrumb-item.vue";var Ks=qs.exports;Ks.install=function(e){e.component(Ks.name,Ks)};var Qs=Ks,Xs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{staticClass:"el-form",class:[e.labelPosition?"el-form--label-"+e.labelPosition:"",{"el-form--inline":e.inline}]},[e._t("default")],2)},Zs=[];Xs._withStripped=!0;var Js={name:"ElForm",componentName:"ElForm",provide:function(){return{elForm:this}},props:{model:Object,rules:Object,labelPosition:String,labelWidth:String,labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:String,disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1}},watch:{rules:function(){this.fields.forEach((function(e){e.removeValidateEvents(),e.addValidateEvents()})),this.validateOnRuleChange&&this.validate((function(){}))}},computed:{autoLabelWidth:function(){if(!this.potentialLabelWidthArr.length)return 0;var e=Math.max.apply(Math,this.potentialLabelWidthArr);return e?e+"px":""}},data:function(){return{fields:[],potentialLabelWidthArr:[]}},created:function(){var e=this;this.$on("el.form.addField",(function(t){t&&e.fields.push(t)})),this.$on("el.form.removeField",(function(t){t.prop&&e.fields.splice(e.fields.indexOf(t),1)}))},methods:{resetFields:function(){this.model?this.fields.forEach((function(e){e.resetField()})):console.warn("[Element Warn][Form]model is required for resetFields to work.")},clearValidate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length?"string"===typeof e?this.fields.filter((function(t){return e===t.prop})):this.fields.filter((function(t){return e.indexOf(t.prop)>-1})):this.fields;t.forEach((function(e){e.clearValidate()}))},validate:function(e){var t=this;if(this.model){var n=void 0;"function"!==typeof e&&window.Promise&&(n=new window.Promise((function(t,n){e=function(e){e?t(e):n(e)}})));var i=!0,r=0;0===this.fields.length&&e&&e(!0);var o={};return this.fields.forEach((function(n){n.validate("",(function(n,a){n&&(i=!1),o=wt()({},o,a),"function"===typeof e&&++r===t.fields.length&&e(i,o)}))})),n||void 0}console.warn("[Element Warn][Form]model is required for validate to work!")},validateField:function(e,t){e=[].concat(e);var n=this.fields.filter((function(t){return-1!==e.indexOf(t.prop)}));n.length?n.forEach((function(e){e.validate("",t)})):console.warn("[Element Warn]please pass correct props!")},getLabelWidthIndex:function(e){var t=this.potentialLabelWidthArr.indexOf(e);if(-1===t)throw new Error("[ElementForm]unpected width ",e);return t},registerLabelWidth:function(e,t){if(e&&t){var n=this.getLabelWidthIndex(t);this.potentialLabelWidthArr.splice(n,1,e)}else e&&this.potentialLabelWidthArr.push(e)},deregisterLabelWidth:function(e){var t=this.getLabelWidthIndex(e);this.potentialLabelWidthArr.splice(t,1)}}},el=Js,tl=s(el,Xs,Zs,!1,null,null,null);tl.options.__file="packages/form/src/form.vue";var nl=tl.exports;nl.install=function(e){e.component(nl.name,nl)};var il=nl,rl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-form-item",class:[{"el-form-item--feedback":e.elForm&&e.elForm.statusIcon,"is-error":"error"===e.validateState,"is-validating":"validating"===e.validateState,"is-success":"success"===e.validateState,"is-required":e.isRequired||e.required,"is-no-asterisk":e.elForm&&e.elForm.hideRequiredAsterisk},e.sizeClass?"el-form-item--"+e.sizeClass:""]},[n("label-wrap",{attrs:{"is-auto-width":e.labelStyle&&"auto"===e.labelStyle.width,"update-all":"auto"===e.form.labelWidth}},[e.label||e.$slots.label?n("label",{staticClass:"el-form-item__label",style:e.labelStyle,attrs:{for:e.labelFor}},[e._t("label",[e._v(e._s(e.label+e.form.labelSuffix))])],2):e._e()]),n("div",{staticClass:"el-form-item__content",style:e.contentStyle},[e._t("default"),n("transition",{attrs:{name:"el-zoom-in-top"}},["error"===e.validateState&&e.showMessage&&e.form.showMessage?e._t("error",[n("div",{staticClass:"el-form-item__error",class:{"el-form-item__error--inline":"boolean"===typeof e.inlineMessage?e.inlineMessage:e.elForm&&e.elForm.inlineMessage||!1}},[e._v("\n "+e._s(e.validateMessage)+"\n ")])],{error:e.validateMessage}):e._e()],2)],2)],1)},ol=[];rl._withStripped=!0;var al,sl,ll=n(40),cl=n.n(ll),ul={props:{isAutoWidth:Boolean,updateAll:Boolean},inject:["elForm","elFormItem"],render:function(){var e=arguments[0],t=this.$slots.default;if(!t)return null;if(this.isAutoWidth){var n=this.elForm.autoLabelWidth,i={};if(n&&"auto"!==n){var r=parseInt(n,10)-this.computedWidth;r&&(i.marginLeft=r+"px")}return e("div",{class:"el-form-item__label-wrap",style:i},[t])}return t[0]},methods:{getLabelWidth:function(){if(this.$el&&this.$el.firstElementChild){var e=window.getComputedStyle(this.$el.firstElementChild).width;return Math.ceil(parseFloat(e))}return 0},updateLabelWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"update";this.$slots.default&&this.isAutoWidth&&this.$el.firstElementChild&&("update"===e?this.computedWidth=this.getLabelWidth():"remove"===e&&this.elForm.deregisterLabelWidth(this.computedWidth))}},watch:{computedWidth:function(e,t){this.updateAll&&(this.elForm.registerLabelWidth(e,t),this.elFormItem.updateComputedLabelWidth(e))}},data:function(){return{computedWidth:0}},mounted:function(){this.updateLabelWidth("update")},updated:function(){this.updateLabelWidth("update")},beforeDestroy:function(){this.updateLabelWidth("remove")}},dl=ul,hl=s(dl,al,sl,!1,null,null,null);hl.options.__file="packages/form/src/label-wrap.vue";var pl=hl.exports,fl={name:"ElFormItem",componentName:"ElFormItem",mixins:[O.a],provide:function(){return{elFormItem:this}},inject:["elForm"],props:{label:String,labelWidth:String,prop:String,required:{type:Boolean,default:void 0},rules:[Object,Array],error:String,validateStatus:String,for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:String},components:{LabelWrap:pl},watch:{error:{immediate:!0,handler:function(e){this.validateMessage=e,this.validateState=e?"error":""}},validateStatus:function(e){this.validateState=e}},computed:{labelFor:function(){return this.for||this.prop},labelStyle:function(){var e={};if("top"===this.form.labelPosition)return e;var t=this.labelWidth||this.form.labelWidth;return t&&(e.width=t),e},contentStyle:function(){var e={},t=this.label;if("top"===this.form.labelPosition||this.form.inline)return e;if(!t&&!this.labelWidth&&this.isNested)return e;var n=this.labelWidth||this.form.labelWidth;return"auto"===n?"auto"===this.labelWidth?e.marginLeft=this.computedLabelWidth:"auto"===this.form.labelWidth&&(e.marginLeft=this.elForm.autoLabelWidth):e.marginLeft=n,e},form:function(){var e=this.$parent,t=e.$options.componentName;while("ElForm"!==t)"ElFormItem"===t&&(this.isNested=!0),e=e.$parent,t=e.$options.componentName;return e},fieldValue:function(){var e=this.form.model;if(e&&this.prop){var t=this.prop;return-1!==t.indexOf(":")&&(t=t.replace(/:/,".")),Object(_["getPropByPath"])(e,t,!0).v}},isRequired:function(){var e=this.getRules(),t=!1;return e&&e.length&&e.every((function(e){return!e.required||(t=!0,!1)})),t},_formSize:function(){return this.elForm.size},elFormItemSize:function(){return this.size||this._formSize},sizeClass:function(){return this.elFormItemSize||(this.$ELEMENT||{}).size}},data:function(){return{validateState:"",validateMessage:"",validateDisabled:!1,validator:{},isNested:!1,computedLabelWidth:""}},methods:{validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_["noop"];this.validateDisabled=!1;var i=this.getFilteredRule(e);if((!i||0===i.length)&&void 0===this.required)return n(),!0;this.validateState="validating";var r={};i&&i.length>0&&i.forEach((function(e){delete e.trigger})),r[this.prop]=i;var o=new cl.a(r),a={};a[this.prop]=this.fieldValue,o.validate(a,{firstFields:!0},(function(e,i){t.validateState=e?"error":"success",t.validateMessage=e?e[0].message:"",n(t.validateMessage,i),t.elForm&&t.elForm.$emit("validate",t.prop,!e,t.validateMessage||null)}))},clearValidate:function(){this.validateState="",this.validateMessage="",this.validateDisabled=!1},resetField:function(){var e=this;this.validateState="",this.validateMessage="";var t=this.form.model,n=this.fieldValue,i=this.prop;-1!==i.indexOf(":")&&(i=i.replace(/:/,"."));var r=Object(_["getPropByPath"])(t,i,!0);this.validateDisabled=!0,Array.isArray(n)?r.o[r.k]=[].concat(this.initialValue):r.o[r.k]=this.initialValue,this.$nextTick((function(){e.validateDisabled=!1})),this.broadcast("ElTimeSelect","fieldReset",this.initialValue)},getRules:function(){var e=this.form.rules,t=this.rules,n=void 0!==this.required?{required:!!this.required}:[],i=Object(_["getPropByPath"])(e,this.prop||"");return e=e?i.o[this.prop||""]||i.v:[],[].concat(t||e||[]).concat(n)},getFilteredRule:function(e){var t=this.getRules();return t.filter((function(t){return!t.trigger||""===e||(Array.isArray(t.trigger)?t.trigger.indexOf(e)>-1:t.trigger===e)})).map((function(e){return wt()({},e)}))},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){this.validateDisabled?this.validateDisabled=!1:this.validate("change")},updateComputedLabelWidth:function(e){this.computedLabelWidth=e?e+"px":""},addValidateEvents:function(){var e=this.getRules();(e.length||void 0!==this.required)&&(this.$on("el.form.blur",this.onFieldBlur),this.$on("el.form.change",this.onFieldChange))},removeValidateEvents:function(){this.$off()}},mounted:function(){if(this.prop){this.dispatch("ElForm","el.form.addField",[this]);var e=this.fieldValue;Array.isArray(e)&&(e=[].concat(e)),Object.defineProperty(this,"initialValue",{value:e}),this.addValidateEvents()}},beforeDestroy:function(){this.dispatch("ElForm","el.form.removeField",[this])}},gl=fl,ml=s(gl,rl,ol,!1,null,null,null);ml.options.__file="packages/form/src/form-item.vue";var vl=ml.exports;vl.install=function(e){e.component(vl.name,vl)};var _l=vl,yl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-tabs__active-bar",class:"is-"+e.rootTabs.tabPosition,style:e.barStyle})},bl=[];yl._withStripped=!0;var Sl={name:"TabBar",props:{tabs:Array},inject:["rootTabs"],computed:{barStyle:{get:function(){var e=this,t={},n=0,i=0,r=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height",o="width"===r?"x":"y",a=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))};this.tabs.every((function(t,o){var s=Object(_["arrayFind"])(e.$parent.$refs.tabs||[],(function(e){return e.id.replace("tab-","")===t.paneName}));if(!s)return!1;if(t.active){i=s["client"+a(r)];var l=window.getComputedStyle(s);return"width"===r&&e.tabs.length>1&&(i-=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),"width"===r&&(n+=parseFloat(l.paddingLeft)),!1}return n+=s["client"+a(r)],!0}));var s="translate"+a(o)+"("+n+"px)";return t[r]=i+"px",t.transform=s,t.msTransform=s,t.webkitTransform=s,t}}}},El=Sl,Cl=s(El,yl,bl,!1,null,null,null);Cl.options.__file="packages/tabs/src/tab-bar.vue";var xl=Cl.exports;function wl(){}var Tl,Al,Ol=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))},Rl={name:"TabNav",components:{TabBar:xl},inject:["rootTabs"],props:{panes:Array,currentName:String,editable:Boolean,onTabClick:{type:Function,default:wl},onTabRemove:{type:Function,default:wl},type:String,stretch:Boolean},data:function(){return{scrollable:!1,navOffset:0,isFocus:!1,focusable:!0}},computed:{navStyle:function(){var e=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"X":"Y";return{transform:"translate"+e+"(-"+this.navOffset+"px)"}},sizeName:function(){return-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height"}},methods:{scrollPrev:function(){var e=this.$refs.navScroll["offset"+Ol(this.sizeName)],t=this.navOffset;if(t){var n=t>e?t-e:0;this.navOffset=n}},scrollNext:function(){var e=this.$refs.nav["offset"+Ol(this.sizeName)],t=this.$refs.navScroll["offset"+Ol(this.sizeName)],n=this.navOffset;if(!(e-n<=t)){var i=e-n>2*t?n+t:e-t;this.navOffset=i}},scrollToActiveTab:function(){if(this.scrollable){var e=this.$refs.nav,t=this.$el.querySelector(".is-active");if(t){var n=this.$refs.navScroll,i=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition),r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=i?e.offsetWidth-o.width:e.offsetHeight-o.height,s=this.navOffset,l=s;i?(r.lefto.right&&(l=s+r.right-o.right)):(r.topo.bottom&&(l=s+(r.bottom-o.bottom))),l=Math.max(l,0),this.navOffset=Math.min(l,a)}}},update:function(){if(this.$refs.nav){var e=this.sizeName,t=this.$refs.nav["offset"+Ol(e)],n=this.$refs.navScroll["offset"+Ol(e)],i=this.navOffset;if(n0&&(this.navOffset=0)}},changeTab:function(e){var t=e.keyCode,n=void 0,i=void 0,r=void 0;-1!==[37,38,39,40].indexOf(t)&&(r=e.currentTarget.querySelectorAll("[role=tab]"),i=Array.prototype.indexOf.call(r,e.target),n=37===t||38===t?0===i?r.length-1:i-1:i0&&void 0!==arguments[0]&&arguments[0];if(this.$slots.default){var n=this.$slots.default.filter((function(e){return e.tag&&e.componentOptions&&"ElTabPane"===e.componentOptions.Ctor.options.name})),i=n.map((function(e){var t=e.componentInstance;return t})),r=!(i.length===this.panes.length&&i.every((function(t,n){return t===e.panes[n]})));(t||r)&&(this.panes=i)}else 0!==this.panes.length&&(this.panes=[])},handleTabClick:function(e,t,n){e.disabled||(this.setCurrentName(t),this.$emit("tab-click",e,n))},handleTabRemove:function(e,t){e.disabled||(t.stopPropagation(),this.$emit("edit",e.name,"remove"),this.$emit("tab-remove",e.name))},handleTabAdd:function(){this.$emit("edit",null,"add"),this.$emit("tab-add")},setCurrentName:function(e){var t=this,n=function(){t.currentName=e,t.$emit("input",e)};if(this.currentName!==e&&this.beforeLeave){var i=this.beforeLeave(e,this.currentName);i&&i.then?i.then((function(){n(),t.$refs.nav&&t.$refs.nav.removeFocus()}),(function(){})):!1!==i&&n()}else n()}},render:function(e){var t,n=this.type,i=this.handleTabClick,r=this.handleTabRemove,o=this.handleTabAdd,a=this.currentName,s=this.panes,l=this.editable,c=this.addable,u=this.tabPosition,d=this.stretch,h=l||c?e("span",{class:"el-tabs__new-tab",on:{click:o,keydown:function(e){13===e.keyCode&&o()}},attrs:{tabindex:"0"}},[e("i",{class:"el-icon-plus"})]):null,p={props:{currentName:a,onTabClick:i,onTabRemove:r,editable:l,type:n,panes:s,stretch:d},ref:"nav"},f=e("div",{class:["el-tabs__header","is-"+u]},[h,e("tab-nav",p)]),g=e("div",{class:"el-tabs__content"},[this.$slots.default]);return e("div",{class:(t={"el-tabs":!0,"el-tabs--card":"card"===n},t["el-tabs--"+u]=!0,t["el-tabs--border-card"]="border-card"===n,t)},["bottom"!==u?[f,g]:[g,f]])},created:function(){this.currentName||this.setCurrentName("0"),this.$on("tab-nav-update",this.calcPaneInstances.bind(null,!0))},mounted:function(){this.calcPaneInstances()},updated:function(){this.calcPaneInstances()}},Pl=Ll,Fl=s(Pl,Il,Ml,!1,null,null,null);Fl.options.__file="packages/tabs/src/tabs.vue";var Bl=Fl.exports;Bl.install=function(e){e.component(Bl.name,Bl)};var $l=Bl,Vl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return!e.lazy||e.loaded||e.active?n("div",{directives:[{name:"show",rawName:"v-show",value:e.active,expression:"active"}],staticClass:"el-tab-pane",attrs:{role:"tabpanel","aria-hidden":!e.active,id:"pane-"+e.paneName,"aria-labelledby":"tab-"+e.paneName}},[e._t("default")],2):e._e()},Gl=[];Vl._withStripped=!0;var Ul={name:"ElTabPane",componentName:"ElTabPane",props:{label:String,labelContent:Function,name:String,closable:Boolean,disabled:Boolean,lazy:Boolean},data:function(){return{index:null,loaded:!1}},computed:{isClosable:function(){return this.closable||this.$parent.closable},active:function(){var e=this.$parent.currentName===(this.name||this.index);return e&&(this.loaded=!0),e},paneName:function(){return this.name||this.index}},updated:function(){this.$parent.$emit("tab-nav-update")}},zl=Ul,jl=s(zl,Vl,Gl,!1,null,null,null);jl.options.__file="packages/tabs/src/tab-pane.vue";var Hl=jl.exports;Hl.install=function(e){e.component(Hl.name,Hl)};var Wl,Yl,ql=Hl,Kl={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,i=this.hit,r=this.effect,o=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",r?"el-tag--"+r:"",i&&"is-hit"],a=e("span",{class:o,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?a:e("transition",{attrs:{name:"el-zoom-in-center"}},[a])}},Ql=Kl,Xl=s(Ql,Wl,Yl,!1,null,null,null);Xl.options.__file="packages/tag/src/tag.vue";var Zl=Xl.exports;Zl.install=function(e){e.component(Zl.name,Zl)};var Jl=Zl,ec=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-tree",class:{"el-tree--highlight-current":e.highlightCurrent,"is-dragging":!!e.dragState.draggingNode,"is-drop-not-allow":!e.dragState.allowDrop,"is-drop-inner":"inner"===e.dragState.dropType},attrs:{role:"tree"}},[e._l(e.root.childNodes,(function(t){return n("el-tree-node",{key:e.getNodeKey(t),attrs:{node:t,props:e.props,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent},on:{"node-expand":e.handleNodeExpand}})})),e.isEmpty?n("div",{staticClass:"el-tree__empty-block"},[n("span",{staticClass:"el-tree__empty-text"},[e._v(e._s(e.emptyText))])]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.dragState.showDropIndicator,expression:"dragState.showDropIndicator"}],ref:"dropIndicator",staticClass:"el-tree__drop-indicator"})],2)},tc=[];ec._withStripped=!0;var nc="$treeNodeId",ic=function(e,t){t&&!t[nc]&&Object.defineProperty(t,nc,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},rc=function(e,t){return e?t[e]:t[nc]},oc=function(e,t){var n=e;while(n&&"BODY"!==n.tagName){if(n.__vue__&&n.__vue__.$options.name===t)return n.__vue__;n=n.parentNode}return null},ac=function(){function e(e,t){for(var n=0;n0&&i.lazy&&i.defaultExpandAll&&this.expand(),Array.isArray(this.data)||ic(this,this.data),this.data){var a=i.defaultExpandedKeys,s=i.key;s&&a&&-1!==a.indexOf(this.key)&&this.expand(null,i.autoExpandParent),s&&void 0!==i.currentNodeKey&&this.key===i.currentNodeKey&&(i.currentNode=this,i.currentNode.isCurrent=!0),i.lazy&&i._initDefaultCheckedNode(this),this.updateLeafState()}}return e.prototype.setData=function(e){Array.isArray(e)||ic(this,e),this.data=e,this.childNodes=[];var t=void 0;t=0===this.level&&this.data instanceof Array?this.data:uc(this,"children")||[];for(var n=0,i=t.length;n1&&void 0!==arguments[1])||arguments[1],n=function n(i){for(var r=i.childNodes||[],o=!1,a=0,s=r.length;a-1&&t.splice(n,1);var i=this.childNodes.indexOf(e);i>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(i,1)),this.updateLeafState()},e.prototype.removeChildByData=function(e){for(var t=null,n=0;n0)i.expanded=!0,i=i.parent}n.expanded=!0,e&&e()};this.shouldLoadData()?this.loadData((function(e){e instanceof Array&&(n.checked?n.setChecked(!0,!0):n.store.checkStrictly||cc(n),i())})):i()},e.prototype.doCreateChildren=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e){t.insertChild(wt()({data:e},n),void 0,!0)}))},e.prototype.collapse=function(){this.expanded=!1},e.prototype.shouldLoadData=function(){return!0===this.store.lazy&&this.store.load&&!this.loaded},e.prototype.updateLeafState=function(){if(!0!==this.store.lazy||!0===this.loaded||"undefined"===typeof this.isLeafByUser){var e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}else this.isLeaf=this.isLeafByUser},e.prototype.setChecked=function(e,t,n,i){var r=this;if(this.indeterminate="half"===e,this.checked=!0===e,!this.store.checkStrictly){if(!this.shouldLoadData()||this.store.checkDescendants){var o=lc(this.childNodes),a=o.all,s=o.allWithoutDisable;this.isLeaf||a||!s||(this.checked=!1,e=!1);var l=function(){if(t){for(var n=r.childNodes,o=0,a=n.length;o0&&void 0!==arguments[0]&&arguments[0];if(0===this.level)return this.data;var t=this.data;if(!t)return null;var n=this.store.props,i="children";return n&&(i=n.children||"children"),void 0===t[i]&&(t[i]=null),e&&!t[i]&&(t[i]=[]),t[i]},e.prototype.updateChildren=function(){var e=this,t=this.getChildren()||[],n=this.childNodes.map((function(e){return e.data})),i={},r=[];t.forEach((function(e,t){var o=e[nc],a=!!o&&Object(_["arrayFindIndex"])(n,(function(e){return e[nc]===o}))>=0;a?i[o]={index:t,data:e}:r.push({index:t,data:e})})),this.store.lazy||n.forEach((function(t){i[t[nc]]||e.removeChildByData(t)})),r.forEach((function(t){var n=t.index,i=t.data;e.insertChild({data:i},n)})),this.updateLeafState()},e.prototype.loadData=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(n).length)e&&e.call(this);else{this.loading=!0;var i=function(i){t.loaded=!0,t.loading=!1,t.childNodes=[],t.doCreateChildren(i,n),t.updateLeafState(),e&&e.call(t,i)};this.store.load(this,i)}},ac(e,[{key:"label",get:function(){return uc(this,"label")}},{key:"key",get:function(){var e=this.store.key;return this.data?this.data[e]:null}},{key:"disabled",get:function(){return uc(this,"disabled")}},{key:"nextSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(t>-1)return e.childNodes[t+1]}return null}},{key:"previousSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}}]),e}(),pc=hc,fc="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function gc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var mc=function(){function e(t){var n=this;for(var i in gc(this,e),this.currentNode=null,this.currentNodeKey=null,t)t.hasOwnProperty(i)&&(this[i]=t[i]);if(this.nodesMap={},this.root=new pc({data:this.data,store:this}),this.lazy&&this.load){var r=this.load;r(this.root,(function(e){n.root.doCreateChildren(e),n._initDefaultCheckedNodes()}))}else this._initDefaultCheckedNodes()}return e.prototype.filter=function(e){var t=this.filterNodeMethod,n=this.lazy,i=function i(r){var o=r.root?r.root.childNodes:r.childNodes;if(o.forEach((function(n){n.visible=t.call(n,e,n.data,n),i(n)})),!r.visible&&o.length){var a=!0;a=!o.some((function(e){return e.visible})),r.root?r.root.visible=!1===a:r.visible=!1===a}e&&(!r.visible||r.isLeaf||n||r.expand())};i(this)},e.prototype.setData=function(e){var t=e!==this.root.data;t?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()},e.prototype.getNode=function(e){if(e instanceof pc)return e;var t="object"!==("undefined"===typeof e?"undefined":fc(e))?e:rc(this.key,e);return this.nodesMap[t]||null},e.prototype.insertBefore=function(e,t){var n=this.getNode(t);n.parent.insertBefore({data:e},n)},e.prototype.insertAfter=function(e,t){var n=this.getNode(t);n.parent.insertAfter({data:e},n)},e.prototype.remove=function(e){var t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))},e.prototype.append=function(e,t){var n=t?this.getNode(t):this.root;n&&n.insertChild({data:e})},e.prototype._initDefaultCheckedNodes=function(){var e=this,t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach((function(t){var i=n[t];i&&i.setChecked(!0,!e.checkStrictly)}))},e.prototype._initDefaultCheckedNode=function(e){var t=this.defaultCheckedKeys||[];-1!==t.indexOf(e.key)&&e.setChecked(!0,!this.checkStrictly)},e.prototype.setDefaultCheckedKey=function(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())},e.prototype.registerNode=function(e){var t=this.key;if(t&&e&&e.data){var n=e.key;void 0!==n&&(this.nodesMap[e.key]=e)}},e.prototype.deregisterNode=function(e){var t=this,n=this.key;n&&e&&e.data&&(e.childNodes.forEach((function(e){t.deregisterNode(e)})),delete this.nodesMap[e.key])},e.prototype.getCheckedNodes=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],i=function i(r){var o=r.root?r.root.childNodes:r.childNodes;o.forEach((function(r){(r.checked||t&&r.indeterminate)&&(!e||e&&r.isLeaf)&&n.push(r.data),i(r)}))};return i(this),n},e.prototype.getCheckedKeys=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getCheckedNodes(t).map((function(t){return(t||{})[e.key]}))},e.prototype.getHalfCheckedNodes=function(){var e=[],t=function t(n){var i=n.root?n.root.childNodes:n.childNodes;i.forEach((function(n){n.indeterminate&&e.push(n.data),t(n)}))};return t(this),e},e.prototype.getHalfCheckedKeys=function(){var e=this;return this.getHalfCheckedNodes().map((function(t){return(t||{})[e.key]}))},e.prototype._getAllNodes=function(){var e=[],t=this.nodesMap;for(var n in t)t.hasOwnProperty(n)&&e.push(t[n]);return e},e.prototype.updateChildren=function(e,t){var n=this.nodesMap[e];if(n){for(var i=n.childNodes,r=i.length-1;r>=0;r--){var o=i[r];this.remove(o.data)}for(var a=0,s=t.length;a1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=this._getAllNodes().sort((function(e,t){return t.level-e.level})),r=Object.create(null),o=Object.keys(n);i.forEach((function(e){return e.setChecked(!1,!1)}));for(var a=0,s=i.length;a-1;if(u){var d=l.parent;while(d&&d.level>0)r[d.data[e]]=!0,d=d.parent;l.isLeaf||this.checkStrictly?l.setChecked(!0,!1):(l.setChecked(!0,!0),t&&function(){l.setChecked(!1,!1);var e=function e(t){var n=t.childNodes;n.forEach((function(t){t.isLeaf||t.setChecked(!1,!1),e(t)}))};e(l)}())}else l.checked&&!r[c]&&l.setChecked(!1,!1)}},e.prototype.setCheckedNodes=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.key,i={};e.forEach((function(e){i[(e||{})[n]]=!0})),this._setCheckedKeys(n,t,i)},e.prototype.setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=e;var n=this.key,i={};e.forEach((function(e){i[e]=!0})),this._setCheckedKeys(n,t,i)},e.prototype.setDefaultExpandedKeys=function(e){var t=this;e=e||[],this.defaultExpandedKeys=e,e.forEach((function(e){var n=t.getNode(e);n&&n.expand(null,t.autoExpandParent)}))},e.prototype.setChecked=function(e,t,n){var i=this.getNode(e);i&&i.setChecked(!!t,n)},e.prototype.getCurrentNode=function(){return this.currentNode},e.prototype.setCurrentNode=function(e){var t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0},e.prototype.setUserCurrentNode=function(e){var t=e[this.key],n=this.nodesMap[t];this.setCurrentNode(n)},e.prototype.setCurrentNodeKey=function(e){if(null===e||void 0===e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);var t=this.getNode(e);t&&this.setCurrentNode(t)},e}(),vc=mc,_c=function(){var e=this,t=this,n=t.$createElement,i=t._self._c||n;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.node.visible,expression:"node.visible"}],ref:"node",staticClass:"el-tree-node",class:{"is-expanded":t.expanded,"is-current":t.node.isCurrent,"is-hidden":!t.node.visible,"is-focusable":!t.node.disabled,"is-checked":!t.node.disabled&&t.node.checked},attrs:{role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.draggable},on:{click:function(e){return e.stopPropagation(),t.handleClick(e)},contextmenu:function(t){return e.handleContextMenu(t)},dragstart:function(e){return e.stopPropagation(),t.handleDragStart(e)},dragover:function(e){return e.stopPropagation(),t.handleDragOver(e)},dragend:function(e){return e.stopPropagation(),t.handleDragEnd(e)},drop:function(e){return e.stopPropagation(),t.handleDrop(e)}}},[i("div",{staticClass:"el-tree-node__content",style:{"padding-left":(t.node.level-1)*t.tree.indent+"px"}},[i("span",{class:[{"is-leaf":t.node.isLeaf,expanded:!t.node.isLeaf&&t.expanded},"el-tree-node__expand-icon",t.tree.iconClass?t.tree.iconClass:"el-icon-caret-right"],on:{click:function(e){return e.stopPropagation(),t.handleExpandIconClick(e)}}}),t.showCheckbox?i("el-checkbox",{attrs:{indeterminate:t.node.indeterminate,disabled:!!t.node.disabled},on:{change:t.handleCheckChange},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:t.node.checked,callback:function(e){t.$set(t.node,"checked",e)},expression:"node.checked"}}):t._e(),t.node.loading?i("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):t._e(),i("node-content",{attrs:{node:t.node}})],1),i("el-collapse-transition",[!t.renderAfterExpand||t.childNodeRendered?i("div",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"expanded"}],staticClass:"el-tree-node__children",attrs:{role:"group","aria-expanded":t.expanded}},t._l(t.node.childNodes,(function(e){return i("el-tree-node",{key:t.getNodeKey(e),attrs:{"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:e},on:{"node-expand":t.handleChildNodeExpand}})})),1):t._e()])],1)},yc=[];_c._withStripped=!0;var bc={name:"ElTreeNode",componentName:"ElTreeNode",mixins:[O.a],props:{node:{default:function(){return{}}},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{ElCollapseTransition:Ye.a,ElCheckbox:ki.a,NodeContent:{props:{node:{required:!0}},render:function(e){var t=this.$parent,n=t.tree,i=this.node,r=i.data,o=i.store;return t.renderContent?t.renderContent.call(t._renderProxy,e,{_self:n.$vnode.context,node:i,data:r,store:o}):n.$scopedSlots.default?n.$scopedSlots.default({node:i,data:r}):e("span",{class:"el-tree-node__label"},[i.label])}}},data:function(){return{tree:null,expanded:!1,childNodeRendered:!1,oldChecked:null,oldIndeterminate:null}},watch:{"node.indeterminate":function(e){this.handleSelectChange(this.node.checked,e)},"node.checked":function(e){this.handleSelectChange(e,this.node.indeterminate)},"node.expanded":function(e){var t=this;this.$nextTick((function(){return t.expanded=e})),e&&(this.childNodeRendered=!0)}},methods:{getNodeKey:function(e){return rc(this.tree.nodeKey,e.data)},handleSelectChange:function(e,t){this.oldChecked!==e&&this.oldIndeterminate!==t&&this.tree.$emit("check-change",this.node.data,e,t),this.oldChecked=e,this.indeterminate=t},handleClick:function(){var e=this.tree.store;e.setCurrentNode(this.node),this.tree.$emit("current-change",e.currentNode?e.currentNode.data:null,e.currentNode),this.tree.currentNode=this,this.tree.expandOnClickNode&&this.handleExpandIconClick(),this.tree.checkOnClickNode&&!this.node.disabled&&this.handleCheckChange(null,{target:{checked:!this.node.checked}}),this.tree.$emit("node-click",this.node.data,this.node,this)},handleContextMenu:function(e){this.tree._events["node-contextmenu"]&&this.tree._events["node-contextmenu"].length>0&&(e.stopPropagation(),e.preventDefault()),this.tree.$emit("node-contextmenu",e,this.node.data,this.node,this)},handleExpandIconClick:function(){this.node.isLeaf||(this.expanded?(this.tree.$emit("node-collapse",this.node.data,this.node,this),this.node.collapse()):(this.node.expand(),this.$emit("node-expand",this.node.data,this.node,this)))},handleCheckChange:function(e,t){var n=this;this.node.setChecked(t.target.checked,!this.tree.checkStrictly),this.$nextTick((function(){var e=n.tree.store;n.tree.$emit("check",n.node.data,{checkedNodes:e.getCheckedNodes(),checkedKeys:e.getCheckedKeys(),halfCheckedNodes:e.getHalfCheckedNodes(),halfCheckedKeys:e.getHalfCheckedKeys()})}))},handleChildNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.tree.$emit("node-expand",e,t,n)},handleDragStart:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-start",e,this)},handleDragOver:function(e){this.tree.draggable&&(this.tree.$emit("tree-node-drag-over",e,this),e.preventDefault())},handleDrop:function(e){e.preventDefault()},handleDragEnd:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-end",e,this)}},created:function(){var e=this,t=this.$parent;t.isTree?this.tree=t:this.tree=t.tree;var n=this.tree;n||console.warn("Can not find node's tree.");var i=n.props||{},r=i["children"]||"children";this.$watch("node.data."+r,(function(){e.node.updateChildren()})),this.node.expanded&&(this.expanded=!0,this.childNodeRendered=!0),this.tree.accordion&&this.$on("tree-node-expand",(function(t){e.node!==t&&e.node.collapse()}))}},Sc=bc,Ec=s(Sc,_c,yc,!1,null,null,null);Ec.options.__file="packages/tree/src/tree-node.vue";var Cc=Ec.exports,xc={name:"ElTree",mixins:[O.a],components:{ElTreeNode:Cc},data:function(){return{store:null,root:null,currentNode:null,treeItems:null,checkboxItems:[],dragState:{showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0}}},props:{data:{type:Array},emptyText:{type:String,default:function(){return Object(fs["t"])("el.tree.emptyText")}},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{default:function(){return{children:"children",label:"label",disabled:"disabled"}}},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},iconClass:String},computed:{children:{set:function(e){this.data=e},get:function(){return this.data}},treeItemArray:function(){return Array.prototype.slice.call(this.treeItems)},isEmpty:function(){var e=this.root.childNodes;return!e||0===e.length||e.every((function(e){var t=e.visible;return!t}))}},watch:{defaultCheckedKeys:function(e){this.store.setDefaultCheckedKey(e)},defaultExpandedKeys:function(e){this.store.defaultExpandedKeys=e,this.store.setDefaultExpandedKeys(e)},data:function(e){this.store.setData(e)},checkboxItems:function(e){Array.prototype.forEach.call(e,(function(e){e.setAttribute("tabindex",-1)}))},checkStrictly:function(e){this.store.checkStrictly=e}},methods:{filter:function(e){if(!this.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");this.store.filter(e)},getNodeKey:function(e){return rc(this.nodeKey,e.data)},getNodePath:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");var t=this.store.getNode(e);if(!t)return[];var n=[t.data],i=t.parent;while(i&&i!==this.root)n.push(i.data),i=i.parent;return n.reverse()},getCheckedNodes:function(e,t){return this.store.getCheckedNodes(e,t)},getCheckedKeys:function(e){return this.store.getCheckedKeys(e)},getCurrentNode:function(){var e=this.store.getCurrentNode();return e?e.data:null},getCurrentKey:function(){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");var e=this.getCurrentNode();return e?e[this.nodeKey]:null},setCheckedNodes:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");this.store.setCheckedNodes(e,t)},setCheckedKeys:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");this.store.setCheckedKeys(e,t)},setChecked:function(e,t,n){this.store.setChecked(e,t,n)},getHalfCheckedNodes:function(){return this.store.getHalfCheckedNodes()},getHalfCheckedKeys:function(){return this.store.getHalfCheckedKeys()},setCurrentNode:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");this.store.setUserCurrentNode(e)},setCurrentKey:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");this.store.setCurrentNodeKey(e)},getNode:function(e){return this.store.getNode(e)},remove:function(e){this.store.remove(e)},append:function(e,t){this.store.append(e,t)},insertBefore:function(e,t){this.store.insertBefore(e,t)},insertAfter:function(e,t){this.store.insertAfter(e,t)},handleNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.$emit("node-expand",e,t,n)},updateKeyChildren:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");this.store.updateChildren(e,t)},initTabIndex:function(){this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]");var e=this.$el.querySelectorAll(".is-checked[role=treeitem]");e.length?e[0].setAttribute("tabindex",0):this.treeItems[0]&&this.treeItems[0].setAttribute("tabindex",0)},handleKeydown:function(e){var t=e.target;if(-1!==t.className.indexOf("el-tree-node")){var n=e.keyCode;this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]");var i=this.treeItemArray.indexOf(t),r=void 0;[38,40].indexOf(n)>-1&&(e.preventDefault(),r=38===n?0!==i?i-1:0:i-1&&(e.preventDefault(),t.click());var o=t.querySelector('[type="checkbox"]');[13,32].indexOf(n)>-1&&o&&(e.preventDefault(),o.click())}}},created:function(){var e=this;this.isTree=!0,this.store=new vc({key:this.nodeKey,data:this.data,lazy:this.lazy,props:this.props,load:this.load,currentNodeKey:this.currentNodeKey,checkStrictly:this.checkStrictly,checkDescendants:this.checkDescendants,defaultCheckedKeys:this.defaultCheckedKeys,defaultExpandedKeys:this.defaultExpandedKeys,autoExpandParent:this.autoExpandParent,defaultExpandAll:this.defaultExpandAll,filterNodeMethod:this.filterNodeMethod}),this.root=this.store.root;var t=this.dragState;this.$on("tree-node-drag-start",(function(n,i){if("function"===typeof e.allowDrag&&!e.allowDrag(i.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(r){}t.draggingNode=i,e.$emit("node-drag-start",i.node,n)})),this.$on("tree-node-drag-over",(function(n,i){var r=oc(n.target,"ElTreeNode"),o=t.dropNode;o&&o!==r&&Object(Be["removeClass"])(o.$el,"is-drop-inner");var a=t.draggingNode;if(a&&r){var s=!0,l=!0,c=!0,u=!0;"function"===typeof e.allowDrop&&(s=e.allowDrop(a.node,r.node,"prev"),u=l=e.allowDrop(a.node,r.node,"inner"),c=e.allowDrop(a.node,r.node,"next")),n.dataTransfer.dropEffect=l?"move":"none",(s||l||c)&&o!==r&&(o&&e.$emit("node-drag-leave",a.node,o.node,n),e.$emit("node-drag-enter",a.node,r.node,n)),(s||l||c)&&(t.dropNode=r),r.node.nextSibling===a.node&&(c=!1),r.node.previousSibling===a.node&&(s=!1),r.node.contains(a.node,!1)&&(l=!1),(a.node===r.node||a.node.contains(r.node))&&(s=!1,l=!1,c=!1);var d=r.$el.getBoundingClientRect(),h=e.$el.getBoundingClientRect(),p=void 0,f=s?l?.25:c?.45:1:-1,g=c?l?.75:s?.55:0:1,m=-9999,v=n.clientY-d.top;p=vd.height*g?"after":l?"inner":"none";var _=r.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),y=e.$refs.dropIndicator;"before"===p?m=_.top-h.top:"after"===p&&(m=_.bottom-h.top),y.style.top=m+"px",y.style.left=_.right-h.left+"px","inner"===p?Object(Be["addClass"])(r.$el,"is-drop-inner"):Object(Be["removeClass"])(r.$el,"is-drop-inner"),t.showDropIndicator="before"===p||"after"===p,t.allowDrop=t.showDropIndicator||u,t.dropType=p,e.$emit("node-drag-over",a.node,r.node,n)}})),this.$on("tree-node-drag-end",(function(n){var i=t.draggingNode,r=t.dropType,o=t.dropNode;if(n.preventDefault(),n.dataTransfer.dropEffect="move",i&&o){var a={data:i.node.data};"none"!==r&&i.node.remove(),"before"===r?o.node.parent.insertBefore(a,o.node):"after"===r?o.node.parent.insertAfter(a,o.node):"inner"===r&&o.node.insertChild(a),"none"!==r&&e.store.registerNode(a),Object(Be["removeClass"])(o.$el,"is-drop-inner"),e.$emit("node-drag-end",i.node,o.node,r,n),"none"!==r&&e.$emit("node-drop",i.node,o.node,r,n)}i&&!o&&e.$emit("node-drag-end",i.node,null,r,n),t.showDropIndicator=!1,t.draggingNode=null,t.dropNode=null,t.allowDrop=!0}))},mounted:function(){this.initTabIndex(),this.$el.addEventListener("keydown",this.handleKeydown)},updated:function(){this.treeItems=this.$el.querySelectorAll("[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]")}},wc=xc,Tc=s(wc,ec,tc,!1,null,null,null);Tc.options.__file="packages/tree/src/tree.vue";var Ac=Tc.exports;Ac.install=function(e){e.component(Ac.name,Ac)};var Oc=Ac,Rc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-alert-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-alert",class:[e.typeClass,e.center?"is-center":"","is-"+e.effect],attrs:{role:"alert"}},[e.showIcon?n("i",{staticClass:"el-alert__icon",class:[e.iconClass,e.isBigIcon]}):e._e(),n("div",{staticClass:"el-alert__content"},[e.title||e.$slots.title?n("span",{staticClass:"el-alert__title",class:[e.isBoldTitle]},[e._t("title",[e._v(e._s(e.title))])],2):e._e(),e.$slots.default&&!e.description?n("p",{staticClass:"el-alert__description"},[e._t("default")],2):e._e(),e.description&&!e.$slots.default?n("p",{staticClass:"el-alert__description"},[e._v(e._s(e.description))]):e._e(),n("i",{directives:[{name:"show",rawName:"v-show",value:e.closable,expression:"closable"}],staticClass:"el-alert__closebtn",class:{"is-customed":""!==e.closeText,"el-icon-close":""===e.closeText},on:{click:function(t){e.close()}}},[e._v(e._s(e.closeText))])])])])},Nc=[];Rc._withStripped=!0;var Dc={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"},Ic={name:"ElAlert",props:{title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:function(e){return-1!==["light","dark"].indexOf(e)}}},data:function(){return{visible:!0}},methods:{close:function(){this.visible=!1,this.$emit("close")}},computed:{typeClass:function(){return"el-alert--"+this.type},iconClass:function(){return Dc[this.type]||"el-icon-info"},isBigIcon:function(){return this.description||this.$slots.default?"is-big":""},isBoldTitle:function(){return this.description||this.$slots.default?"is-bold":""}}},Mc=Ic,kc=s(Mc,Rc,Nc,!1,null,null,null);kc.options.__file="packages/alert/src/main.vue";var Lc=kc.exports;Lc.install=function(e){e.component(Lc.name,Lc)};var Pc=Lc,Fc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-notification-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-notification",e.customClass,e.horizontalClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:function(t){e.clearTimer()},mouseleave:function(t){e.startTimer()},click:e.click}},[e.type||e.iconClass?n("i",{staticClass:"el-notification__icon",class:[e.typeClass,e.iconClass]}):e._e(),n("div",{staticClass:"el-notification__group",class:{"is-with-icon":e.typeClass||e.iconClass}},[n("h2",{staticClass:"el-notification__title",domProps:{textContent:e._s(e.title)}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.message,expression:"message"}],staticClass:"el-notification__content"},[e._t("default",[e.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:e._s(e.message)}}):n("p",[e._v(e._s(e.message))])])],2),e.showClose?n("div",{staticClass:"el-notification__closeBtn el-icon-close",on:{click:function(t){return t.stopPropagation(),e.close(t)}}}):e._e()])])])},Bc=[];Fc._withStripped=!0;var $c={success:"success",info:"info",warning:"warning",error:"error"},Vc={data:function(){return{visible:!1,title:"",message:"",duration:4500,type:"",showClose:!0,customClass:"",iconClass:"",onClose:null,onClick:null,closed:!1,verticalOffset:0,timer:null,dangerouslyUseHTMLString:!1,position:"top-right"}},computed:{typeClass:function(){return this.type&&$c[this.type]?"el-icon-"+$c[this.type]:""},horizontalClass:function(){return this.position.indexOf("right")>-1?"right":"left"},verticalProperty:function(){return/^top-/.test(this.position)?"top":"bottom"},positionStyle:function(){var e;return e={},e[this.verticalProperty]=this.verticalOffset+"px",e}},watch:{closed:function(e){e&&(this.visible=!1,this.$el.addEventListener("transitionend",this.destroyElement))}},methods:{destroyElement:function(){this.$el.removeEventListener("transitionend",this.destroyElement),this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},click:function(){"function"===typeof this.onClick&&this.onClick()},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose()},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration))},keydown:function(e){46===e.keyCode||8===e.keyCode?this.clearTimer():27===e.keyCode?this.closed||this.close():this.startTimer()}},mounted:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration)),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},Gc=Vc,Uc=s(Gc,Fc,Bc,!1,null,null,null);Uc.options.__file="packages/notification/src/main.vue";var zc=Uc.exports,jc=Ui.a.extend(zc),Hc=void 0,Wc=[],Yc=1,qc=function e(t){if(!Ui.a.prototype.$isServer){t=wt()({},t);var n=t.onClose,i="notification_"+Yc++,r=t.position||"top-right";t.onClose=function(){e.close(i,n)},Hc=new jc({data:t}),Object(xs["isVNode"])(t.message)&&(Hc.$slots.default=[t.message],t.message="REPLACED_BY_VNODE"),Hc.id=i,Hc.$mount(),document.body.appendChild(Hc.$el),Hc.visible=!0,Hc.dom=Hc.$el,Hc.dom.style.zIndex=C["PopupManager"].nextZIndex();var o=t.offset||0;return Wc.filter((function(e){return e.position===r})).forEach((function(e){o+=e.$el.offsetHeight+16})),o+=16,Hc.verticalOffset=o,Wc.push(Hc),Hc}};["success","warning","info","error"].forEach((function(e){qc[e]=function(t){return("string"===typeof t||Object(xs["isVNode"])(t))&&(t={message:t}),t.type=e,qc(t)}})),qc.close=function(e,t){var n=-1,i=Wc.length,r=Wc.filter((function(t,i){return t.id===e&&(n=i,!0)}))[0];if(r&&("function"===typeof t&&t(r),Wc.splice(n,1),!(i<=1)))for(var o=r.position,a=r.dom.offsetHeight,s=n;s=0;e--)Wc[e].close()};var Kc=qc,Qc=Kc,Xc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-slider",class:{"is-vertical":e.vertical,"el-slider--with-input":e.showInput},attrs:{role:"slider","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":e.sliderDisabled}},[e.showInput&&!e.range?n("el-input-number",{ref:"input",staticClass:"el-slider__input",attrs:{step:e.step,disabled:e.sliderDisabled,controls:e.showInputControls,min:e.min,max:e.max,debounce:e.debounce,size:e.inputSize},on:{change:e.emitChange},model:{value:e.firstValue,callback:function(t){e.firstValue=t},expression:"firstValue"}}):e._e(),n("div",{ref:"slider",staticClass:"el-slider__runway",class:{"show-input":e.showInput,disabled:e.sliderDisabled},style:e.runwayStyle,on:{click:e.onSliderClick}},[n("div",{staticClass:"el-slider__bar",style:e.barStyle}),n("slider-button",{ref:"button1",attrs:{vertical:e.vertical,"tooltip-class":e.tooltipClass},model:{value:e.firstValue,callback:function(t){e.firstValue=t},expression:"firstValue"}}),e.range?n("slider-button",{ref:"button2",attrs:{vertical:e.vertical,"tooltip-class":e.tooltipClass},model:{value:e.secondValue,callback:function(t){e.secondValue=t},expression:"secondValue"}}):e._e(),e._l(e.stops,(function(t,i){return e.showStops?n("div",{key:i,staticClass:"el-slider__stop",style:e.getStopStyle(t)}):e._e()})),e.markList.length>0?[n("div",e._l(e.markList,(function(t,i){return n("div",{key:i,staticClass:"el-slider__stop el-slider__marks-stop",style:e.getStopStyle(t.position)})})),0),n("div",{staticClass:"el-slider__marks"},e._l(e.markList,(function(t,i){return n("slider-marker",{key:i,style:e.getStopStyle(t.position),attrs:{mark:t.mark}})})),1)]:e._e()],2)],1)},Zc=[];Xc._withStripped=!0;var Jc=n(41),eu=n.n(Jc),tu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"button",staticClass:"el-slider__button-wrapper",class:{hover:e.hovering,dragging:e.dragging},style:e.wrapperStyle,attrs:{tabindex:"0"},on:{mouseenter:e.handleMouseEnter,mouseleave:e.handleMouseLeave,mousedown:e.onButtonDown,touchstart:e.onButtonDown,focus:e.handleMouseEnter,blur:e.handleMouseLeave,keydown:[function(t){return"button"in t||!e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])?"button"in t&&0!==t.button?null:e.onLeftKeyDown(t):null},function(t){return"button"in t||!e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])?"button"in t&&2!==t.button?null:e.onRightKeyDown(t):null},function(t){return"button"in t||!e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?(t.preventDefault(),e.onLeftKeyDown(t)):null},function(t){return"button"in t||!e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?(t.preventDefault(),e.onRightKeyDown(t)):null}]}},[n("el-tooltip",{ref:"tooltip",attrs:{placement:"top","popper-class":e.tooltipClass,disabled:!e.showTooltip}},[n("span",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.formatValue))]),n("div",{staticClass:"el-slider__button",class:{hover:e.hovering,dragging:e.dragging}})])],1)},nu=[];tu._withStripped=!0;var iu={name:"ElSliderButton",components:{ElTooltip:rt.a},props:{value:{type:Number,default:0},vertical:{type:Boolean,default:!1},tooltipClass:String},data:function(){return{hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.sliderDisabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},showTooltip:function(){return this.$parent.showTooltip},precision:function(){return this.$parent.precision},currentPosition:function(){return(this.value-this.min)/(this.max-this.min)*100+"%"},enableFormat:function(){return this.$parent.formatTooltip instanceof Function},formatValue:function(){return this.enableFormat&&this.$parent.formatTooltip(this.value)||this.value},wrapperStyle:function(){return this.vertical?{bottom:this.currentPosition}:{left:this.currentPosition}}},watch:{dragging:function(e){this.$parent.dragging=e}},methods:{displayTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!0)},hideTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!1)},handleMouseEnter:function(){this.hovering=!0,this.displayTooltip()},handleMouseLeave:function(){this.hovering=!1,this.hideTooltip()},onButtonDown:function(e){this.disabled||(e.preventDefault(),this.onDragStart(e),window.addEventListener("mousemove",this.onDragging),window.addEventListener("touchmove",this.onDragging),window.addEventListener("mouseup",this.onDragEnd),window.addEventListener("touchend",this.onDragEnd),window.addEventListener("contextmenu",this.onDragEnd))},onLeftKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onRightKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onDragStart:function(e){this.dragging=!0,this.isClick=!0,"touchstart"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),this.vertical?this.startY=e.clientY:this.startX=e.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(e){if(this.dragging){this.isClick=!1,this.displayTooltip(),this.$parent.resetSize();var t=0;"touchmove"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),this.vertical?(this.currentY=e.clientY,t=(this.startY-this.currentY)/this.$parent.sliderSize*100):(this.currentX=e.clientX,t=(this.currentX-this.startX)/this.$parent.sliderSize*100),this.newPosition=this.startPosition+t,this.setPosition(this.newPosition)}},onDragEnd:function(){var e=this;this.dragging&&(setTimeout((function(){e.dragging=!1,e.hideTooltip(),e.isClick||(e.setPosition(e.newPosition),e.$parent.emitChange())}),0),window.removeEventListener("mousemove",this.onDragging),window.removeEventListener("touchmove",this.onDragging),window.removeEventListener("mouseup",this.onDragEnd),window.removeEventListener("touchend",this.onDragEnd),window.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(e){var t=this;if(null!==e&&!isNaN(e)){e<0?e=0:e>100&&(e=100);var n=100/((this.max-this.min)/this.step),i=Math.round(e/n),r=i*n*(this.max-this.min)*.01+this.min;r=parseFloat(r.toFixed(this.precision)),this.$emit("input",r),this.$nextTick((function(){t.displayTooltip(),t.$refs.tooltip&&t.$refs.tooltip.updatePopper()})),this.dragging||this.value===this.oldValue||(this.oldValue=this.value)}}}},ru=iu,ou=s(ru,tu,nu,!1,null,null,null);ou.options.__file="packages/slider/src/button.vue";var au=ou.exports,su={name:"ElMarker",props:{mark:{type:[String,Object]}},render:function(){var e=arguments[0],t="string"===typeof this.mark?this.mark:this.mark.label;return e("div",{class:"el-slider__marks-text",style:this.mark.style||{}},[t])}},lu={name:"ElSlider",mixins:[O.a],inject:{elForm:{default:""}},props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},value:{type:[Number,Array],default:0},showInput:{type:Boolean,default:!1},showInputControls:{type:Boolean,default:!0},inputSize:{type:String,default:"small"},showStops:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},formatTooltip:Function,disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},height:{type:String},debounce:{type:Number,default:300},label:{type:String},tooltipClass:String,marks:Object},components:{ElInputNumber:eu.a,SliderButton:au,SliderMarker:su},data:function(){return{firstValue:null,secondValue:null,oldValue:null,dragging:!1,sliderSize:1}},watch:{value:function(e,t){this.dragging||Array.isArray(e)&&Array.isArray(t)&&e.every((function(e,n){return e===t[n]}))||this.setValues()},dragging:function(e){e||this.setValues()},firstValue:function(e){this.range?this.$emit("input",[this.minValue,this.maxValue]):this.$emit("input",e)},secondValue:function(){this.range&&this.$emit("input",[this.minValue,this.maxValue])},min:function(){this.setValues()},max:function(){this.setValues()}},methods:{valueChanged:function(){var e=this;return this.range?![this.minValue,this.maxValue].every((function(t,n){return t===e.oldValue[n]})):this.value!==this.oldValue},setValues:function(){if(this.min>this.max)console.error("[Element Error][Slider]min should not be greater than max.");else{var e=this.value;this.range&&Array.isArray(e)?e[1]this.max?this.$emit("input",[this.max,this.max]):e[0]this.max?this.$emit("input",[e[0],this.max]):(this.firstValue=e[0],this.secondValue=e[1],this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",[this.minValue,this.maxValue]),this.oldValue=e.slice())):this.range||"number"!==typeof e||isNaN(e)||(ethis.max?this.$emit("input",this.max):(this.firstValue=e,this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",e),this.oldValue=e)))}},setPosition:function(e){var t=this.min+e*(this.max-this.min)/100;if(this.range){var n=void 0;n=Math.abs(this.minValue-t)this.secondValue?"button1":"button2",this.$refs[n].setPosition(e)}else this.$refs.button1.setPosition(e)},onSliderClick:function(e){if(!this.sliderDisabled&&!this.dragging){if(this.resetSize(),this.vertical){var t=this.$refs.slider.getBoundingClientRect().bottom;this.setPosition((t-e.clientY)/this.sliderSize*100)}else{var n=this.$refs.slider.getBoundingClientRect().left;this.setPosition((e.clientX-n)/this.sliderSize*100)}this.emitChange()}},resetSize:function(){this.$refs.slider&&(this.sliderSize=this.$refs.slider["client"+(this.vertical?"Height":"Width")])},emitChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.range?[e.minValue,e.maxValue]:e.value)}))},getStopStyle:function(e){return this.vertical?{bottom:e+"%"}:{left:e+"%"}}},computed:{stops:function(){var e=this;if(!this.showStops||this.min>this.max)return[];if(0===this.step)return[];for(var t=(this.max-this.min)/this.step,n=100*this.step/(this.max-this.min),i=[],r=1;r100*(e.maxValue-e.min)/(e.max-e.min)})):i.filter((function(t){return t>100*(e.firstValue-e.min)/(e.max-e.min)}))},markList:function(){var e=this;if(!this.marks)return[];var t=Object.keys(this.marks);return t.map(parseFloat).sort((function(e,t){return e-t})).filter((function(t){return t<=e.max&&t>=e.min})).map((function(t){return{point:t,position:100*(t-e.min)/(e.max-e.min),mark:e.marks[t]}}))},minValue:function(){return Math.min(this.firstValue,this.secondValue)},maxValue:function(){return Math.max(this.firstValue,this.secondValue)},barSize:function(){return this.range?100*(this.maxValue-this.minValue)/(this.max-this.min)+"%":100*(this.firstValue-this.min)/(this.max-this.min)+"%"},barStart:function(){return this.range?100*(this.minValue-this.min)/(this.max-this.min)+"%":"0%"},precision:function(){var e=[this.min,this.max,this.step].map((function(e){var t=(""+e).split(".")[1];return t?t.length:0}));return Math.max.apply(null,e)},runwayStyle:function(){return this.vertical?{height:this.height}:{}},barStyle:function(){return this.vertical?{height:this.barSize,bottom:this.barStart}:{width:this.barSize,left:this.barStart}},sliderDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},mounted:function(){var e=void 0;this.range?(Array.isArray(this.value)?(this.firstValue=Math.max(this.min,this.value[0]),this.secondValue=Math.min(this.max,this.value[1])):(this.firstValue=this.min,this.secondValue=this.max),this.oldValue=[this.firstValue,this.secondValue],e=this.firstValue+"-"+this.secondValue):("number"!==typeof this.value||isNaN(this.value)?this.firstValue=this.min:this.firstValue=Math.min(this.max,Math.max(this.min,this.value)),this.oldValue=this.firstValue,e=this.firstValue),this.$el.setAttribute("aria-valuetext",e),this.$el.setAttribute("aria-label",this.label?this.label:"slider between "+this.min+" and "+this.max),this.resetSize(),window.addEventListener("resize",this.resetSize)},beforeDestroy:function(){window.removeEventListener("resize",this.resetSize)}},cu=lu,uu=s(cu,Xc,Zc,!1,null,null,null);uu.options.__file="packages/slider/src/main.vue";var du=uu.exports;du.install=function(e){e.component(du.name,du)};var hu=du,pu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"el-loading-spinner"},[e.spinner?n("i",{class:e.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?n("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])},fu=[];pu._withStripped=!0;var gu={data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave:function(){this.$emit("after-leave")},setText:function(e){this.text=e}}},mu=gu,vu=s(mu,pu,fu,!1,null,null,null);vu.options.__file="packages/loading/src/loading.vue";var _u=vu.exports,yu=n(32),bu=n.n(yu),Su=Ui.a.extend(_u),Eu={install:function(e){if(!e.prototype.$isServer){var t=function(t,i){i.value?e.nextTick((function(){i.modifiers.fullscreen?(t.originalPosition=Object(Be["getStyle"])(document.body,"position"),t.originalOverflow=Object(Be["getStyle"])(document.body,"overflow"),t.maskStyle.zIndex=C["PopupManager"].nextZIndex(),Object(Be["addClass"])(t.mask,"is-fullscreen"),n(document.body,t,i)):(Object(Be["removeClass"])(t.mask,"is-fullscreen"),i.modifiers.body?(t.originalPosition=Object(Be["getStyle"])(document.body,"position"),["top","left"].forEach((function(e){var n="top"===e?"scrollTop":"scrollLeft";t.maskStyle[e]=t.getBoundingClientRect()[e]+document.body[n]+document.documentElement[n]-parseInt(Object(Be["getStyle"])(document.body,"margin-"+e),10)+"px"})),["height","width"].forEach((function(e){t.maskStyle[e]=t.getBoundingClientRect()[e]+"px"})),n(document.body,t,i)):(t.originalPosition=Object(Be["getStyle"])(t,"position"),n(t,t,i)))})):(bu()(t.instance,(function(e){if(t.instance.hiding){t.domVisible=!1;var n=i.modifiers.fullscreen||i.modifiers.body?document.body:t;Object(Be["removeClass"])(n,"el-loading-parent--relative"),Object(Be["removeClass"])(n,"el-loading-parent--hidden"),t.instance.hiding=!1}}),300,!0),t.instance.visible=!1,t.instance.hiding=!0)},n=function(t,n,i){n.domVisible||"none"===Object(Be["getStyle"])(n,"display")||"hidden"===Object(Be["getStyle"])(n,"visibility")?n.domVisible&&!0===n.instance.hiding&&(n.instance.visible=!0,n.instance.hiding=!1):(Object.keys(n.maskStyle).forEach((function(e){n.mask.style[e]=n.maskStyle[e]})),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&Object(Be["addClass"])(t,"el-loading-parent--relative"),i.modifiers.fullscreen&&i.modifiers.lock&&Object(Be["addClass"])(t,"el-loading-parent--hidden"),n.domVisible=!0,t.appendChild(n.mask),e.nextTick((function(){n.instance.hiding?n.instance.$emit("after-leave"):n.instance.visible=!0})),n.domInserted=!0)};e.directive("loading",{bind:function(e,n,i){var r=e.getAttribute("element-loading-text"),o=e.getAttribute("element-loading-spinner"),a=e.getAttribute("element-loading-background"),s=e.getAttribute("element-loading-custom-class"),l=i.context,c=new Su({el:document.createElement("div"),data:{text:l&&l[r]||r,spinner:l&&l[o]||o,background:l&&l[a]||a,customClass:l&&l[s]||s,fullscreen:!!n.modifiers.fullscreen}});e.instance=c,e.mask=c.$el,e.maskStyle={},n.value&&t(e,n)},update:function(e,n){e.instance.setText(e.getAttribute("element-loading-text")),n.oldValue!==n.value&&t(e,n)},unbind:function(e,n){e.domInserted&&(e.mask&&e.mask.parentNode&&e.mask.parentNode.removeChild(e.mask),t(e,{value:!1,modifiers:n.modifiers})),e.instance&&e.instance.$destroy()}})}}},Cu=Eu,xu=Ui.a.extend(_u),wu={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},Tu=void 0;xu.prototype.originalPosition="",xu.prototype.originalOverflow="",xu.prototype.close=function(){var e=this;this.fullscreen&&(Tu=void 0),bu()(this,(function(t){var n=e.fullscreen||e.body?document.body:e.target;Object(Be["removeClass"])(n,"el-loading-parent--relative"),Object(Be["removeClass"])(n,"el-loading-parent--hidden"),e.$el&&e.$el.parentNode&&e.$el.parentNode.removeChild(e.$el),e.$destroy()}),300),this.visible=!1};var Au=function(e,t,n){var i={};e.fullscreen?(n.originalPosition=Object(Be["getStyle"])(document.body,"position"),n.originalOverflow=Object(Be["getStyle"])(document.body,"overflow"),i.zIndex=C["PopupManager"].nextZIndex()):e.body?(n.originalPosition=Object(Be["getStyle"])(document.body,"position"),["top","left"].forEach((function(t){var n="top"===t?"scrollTop":"scrollLeft";i[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]+"px"})),["height","width"].forEach((function(t){i[t]=e.target.getBoundingClientRect()[t]+"px"}))):n.originalPosition=Object(Be["getStyle"])(t,"position"),Object.keys(i).forEach((function(e){n.$el.style[e]=i[e]}))},Ou=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ui.a.prototype.$isServer){if(e=wt()({},wu,e),"string"===typeof e.target&&(e.target=document.querySelector(e.target)),e.target=e.target||document.body,e.target!==document.body?e.fullscreen=!1:e.body=!0,e.fullscreen&&Tu)return Tu;var t=e.body?document.body:e.target,n=new xu({el:document.createElement("div"),data:e});return Au(e,t,n),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&Object(Be["addClass"])(t,"el-loading-parent--relative"),e.fullscreen&&e.lock&&Object(Be["addClass"])(t,"el-loading-parent--hidden"),t.appendChild(n.$el),Ui.a.nextTick((function(){n.visible=!0})),e.fullscreen&&(Tu=n),n}},Ru=Ou,Nu={install:function(e){e.use(Cu),e.prototype.$loading=Ru},directive:Cu,service:Ru},Du=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("i",{class:"el-icon-"+e.name})},Iu=[];Du._withStripped=!0;var Mu={name:"ElIcon",props:{name:String}},ku=Mu,Lu=s(ku,Du,Iu,!1,null,null,null);Lu.options.__file="packages/icon/src/icon.vue";var Pu=Lu.exports;Pu.install=function(e){e.component(Pu.name,Pu)};var Fu=Pu,Bu={name:"ElRow",componentName:"ElRow",props:{tag:{type:String,default:"div"},gutter:Number,type:String,justify:{type:String,default:"start"},align:{type:String,default:"top"}},computed:{style:function(){var e={};return this.gutter&&(e.marginLeft="-"+this.gutter/2+"px",e.marginRight=e.marginLeft),e}},render:function(e){return e(this.tag,{class:["el-row","start"!==this.justify?"is-justify-"+this.justify:"","top"!==this.align?"is-align-"+this.align:"",{"el-row--flex":"flex"===this.type}],style:this.style},this.$slots.default)},install:function(e){e.component(Bu.name,Bu)}},$u=Bu,Vu="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gu={name:"ElCol",props:{span:{type:Number,default:24},tag:{type:String,default:"div"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{gutter:function(){var e=this.$parent;while(e&&"ElRow"!==e.$options.componentName)e=e.$parent;return e?e.gutter:0}},render:function(e){var t=this,n=[],i={};return this.gutter&&(i.paddingLeft=this.gutter/2+"px",i.paddingRight=i.paddingLeft),["span","offset","pull","push"].forEach((function(e){(t[e]||0===t[e])&&n.push("span"!==e?"el-col-"+e+"-"+t[e]:"el-col-"+t[e])})),["xs","sm","md","lg","xl"].forEach((function(e){if("number"===typeof t[e])n.push("el-col-"+e+"-"+t[e]);else if("object"===Vu(t[e])){var i=t[e];Object.keys(i).forEach((function(t){n.push("span"!==t?"el-col-"+e+"-"+t+"-"+i[t]:"el-col-"+e+"-"+i[t])}))}})),e(this.tag,{class:["el-col",n],style:i},this.$slots.default)},install:function(e){e.component(Gu.name,Gu)}},Uu=Gu,zu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition-group",{class:["el-upload-list","el-upload-list--"+e.listType,{"is-disabled":e.disabled}],attrs:{tag:"ul",name:"el-list"}},e._l(e.files,(function(t){return n("li",{key:t.uid,class:["el-upload-list__item","is-"+t.status,e.focusing?"focusing":""],attrs:{tabindex:"0"},on:{keydown:function(n){if(!("button"in n)&&e._k(n.keyCode,"delete",[8,46],n.key,["Backspace","Delete","Del"]))return null;!e.disabled&&e.$emit("remove",t)},focus:function(t){e.focusing=!0},blur:function(t){e.focusing=!1},click:function(t){e.focusing=!1}}},[e._t("default",["uploading"!==t.status&&["picture-card","picture"].indexOf(e.listType)>-1?n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:t.url,alt:""}}):e._e(),n("a",{staticClass:"el-upload-list__item-name",on:{click:function(n){e.handleClick(t)}}},[n("i",{staticClass:"el-icon-document"}),e._v(e._s(t.name)+"\n ")]),n("label",{staticClass:"el-upload-list__item-status-label"},[n("i",{class:{"el-icon-upload-success":!0,"el-icon-circle-check":"text"===e.listType,"el-icon-check":["picture-card","picture"].indexOf(e.listType)>-1}})]),e.disabled?e._e():n("i",{staticClass:"el-icon-close",on:{click:function(n){e.$emit("remove",t)}}}),e.disabled?e._e():n("i",{staticClass:"el-icon-close-tip"},[e._v(e._s(e.t("el.upload.deleteTip")))]),"uploading"===t.status?n("el-progress",{attrs:{type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:e.parsePercentage(t.percentage)}}):e._e(),"picture-card"===e.listType?n("span",{staticClass:"el-upload-list__item-actions"},[e.handlePreview&&"picture-card"===e.listType?n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(n){e.handlePreview(t)}}},[n("i",{staticClass:"el-icon-zoom-in"})]):e._e(),e.disabled?e._e():n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(n){e.$emit("remove",t)}}},[n("i",{staticClass:"el-icon-delete"})])]):e._e()],{file:t})],2)})),0)},ju=[];zu._withStripped=!0;var Hu=n(33),Wu=n.n(Hu),Yu={name:"ElUploadList",mixins:[v.a],data:function(){return{focusing:!1}},components:{ElProgress:Wu.a},props:{files:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},handlePreview:Function,listType:String},methods:{parsePercentage:function(e){return parseInt(e,10)},handleClick:function(e){this.handlePreview&&this.handlePreview(e)}}},qu=Yu,Ku=s(qu,zu,ju,!1,null,null,null);Ku.options.__file="packages/upload/src/upload-list.vue";var Qu=Ku.exports,Xu=n(24),Zu=n.n(Xu);function Ju(e,t,n){var i=void 0;i=n.response?""+(n.response.error||n.response):n.responseText?""+n.responseText:"fail to post "+e+" "+n.status;var r=new Error(i);return r.status=n.status,r.method="post",r.url=e,r}function ed(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function td(e){if("undefined"!==typeof XMLHttpRequest){var t=new XMLHttpRequest,n=e.action;t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var i=new FormData;e.data&&Object.keys(e.data).forEach((function(t){i.append(t,e.data[t])})),i.append(e.filename,e.file,e.file.name),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300)return e.onError(Ju(n,e,t));e.onSuccess(ed(t))},t.open("post",n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};for(var o in r)r.hasOwnProperty(o)&&null!==r[o]&&t.setRequestHeader(o,r[o]);return t.send(i),t}}var nd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-upload-dragger",class:{"is-dragover":e.dragover},on:{drop:function(t){return t.preventDefault(),e.onDrop(t)},dragover:function(t){return t.preventDefault(),e.onDragover(t)},dragleave:function(t){t.preventDefault(),e.dragover=!1}}},[e._t("default")],2)},id=[];nd._withStripped=!0;var rd={name:"ElUploadDrag",props:{disabled:Boolean},inject:{uploader:{default:""}},data:function(){return{dragover:!1}},methods:{onDragover:function(){this.disabled||(this.dragover=!0)},onDrop:function(e){if(!this.disabled&&this.uploader){var t=this.uploader.accept;this.dragover=!1,t?this.$emit("file",[].slice.call(e.dataTransfer.files).filter((function(e){var n=e.type,i=e.name,r=i.indexOf(".")>-1?"."+i.split(".").pop():"",o=n.replace(/\/.*$/,"");return t.split(",").map((function(e){return e.trim()})).filter((function(e){return e})).some((function(e){return/\..+$/.test(e)?r===e:/\/\*$/.test(e)?o===e.replace(/\/\*$/,""):!!/^[^\/]+\/[^\/]+$/.test(e)&&n===e}))}))):this.$emit("file",e.dataTransfer.files)}}}},od=rd,ad=s(od,nd,id,!1,null,null,null);ad.options.__file="packages/upload/src/upload-dragger.vue";var sd,ld,cd=ad.exports,ud={inject:["uploader"],components:{UploadDragger:cd},props:{type:String,action:{type:String,required:!0},name:{type:String,default:"file"},data:Object,headers:Object,withCredentials:Boolean,multiple:Boolean,accept:String,onStart:Function,onProgress:Function,onSuccess:Function,onError:Function,beforeUpload:Function,drag:Boolean,onPreview:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},fileList:Array,autoUpload:Boolean,listType:String,httpRequest:{type:Function,default:td},disabled:Boolean,limit:Number,onExceed:Function},data:function(){return{mouseover:!1,reqs:{}}},methods:{isImage:function(e){return-1!==e.indexOf("image")},handleChange:function(e){var t=e.target.files;t&&this.uploadFiles(t)},uploadFiles:function(e){var t=this;if(this.limit&&this.fileList.length+e.length>this.limit)this.onExceed&&this.onExceed(e,this.fileList);else{var n=Array.prototype.slice.call(e);this.multiple||(n=n.slice(0,1)),0!==n.length&&n.forEach((function(e){t.onStart(e),t.autoUpload&&t.upload(e)}))}},upload:function(e){var t=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(e);var n=this.beforeUpload(e);n&&n.then?n.then((function(n){var i=Object.prototype.toString.call(n);if("[object File]"===i||"[object Blob]"===i){for(var r in"[object Blob]"===i&&(n=new File([n],e.name,{type:e.type})),e)e.hasOwnProperty(r)&&(n[r]=e[r]);t.post(n)}else t.post(e)}),(function(){t.onRemove(null,e)})):!1!==n?this.post(e):this.onRemove(null,e)},abort:function(e){var t=this.reqs;if(e){var n=e;e.uid&&(n=e.uid),t[n]&&t[n].abort()}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort(),delete t[e]}))},post:function(e){var t=this,n=e.uid,i={headers:this.headers,withCredentials:this.withCredentials,file:e,data:this.data,filename:this.name,action:this.action,onProgress:function(n){t.onProgress(n,e)},onSuccess:function(i){t.onSuccess(i,e),delete t.reqs[n]},onError:function(i){t.onError(i,e),delete t.reqs[n]}},r=this.httpRequest(i);this.reqs[n]=r,r&&r.then&&r.then(i.onSuccess,i.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(e){e.target===e.currentTarget&&(13!==e.keyCode&&32!==e.keyCode||this.handleClick())}},render:function(e){var t=this.handleClick,n=this.drag,i=this.name,r=this.handleChange,o=this.multiple,a=this.accept,s=this.listType,l=this.uploadFiles,c=this.disabled,u=this.handleKeydown,d={class:{"el-upload":!0},on:{click:t,keydown:u}};return d.class["el-upload--"+s]=!0,e("div",Zu()([d,{attrs:{tabindex:"0"}}]),[n?e("upload-dragger",{attrs:{disabled:c},on:{file:l}},[this.$slots.default]):this.$slots.default,e("input",{class:"el-upload__input",attrs:{type:"file",name:i,multiple:o,accept:a},ref:"input",on:{change:r}})])}},dd=ud,hd=s(dd,sd,ld,!1,null,null,null);hd.options.__file="packages/upload/src/upload.vue";var pd=hd.exports;function fd(){}var gd,md,vd={name:"ElUpload",mixins:[T.a],components:{ElProgress:Wu.a,UploadList:Qu,Upload:pd},provide:function(){return{uploader:this}},inject:{elForm:{default:""}},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},data:Object,multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,dragger:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:String,type:{type:String,default:"select"},beforeUpload:Function,beforeRemove:Function,onRemove:{type:Function,default:fd},onChange:{type:Function,default:fd},onPreview:{type:Function},onSuccess:{type:Function,default:fd},onProgress:{type:Function,default:fd},onError:{type:Function,default:fd},fileList:{type:Array,default:function(){return[]}},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:"text"},httpRequest:Function,disabled:Boolean,limit:Number,onExceed:{type:Function,default:fd}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(e){"picture-card"!==e&&"picture"!==e||(this.uploadFiles=this.uploadFiles.map((function(e){if(!e.url&&e.raw)try{e.url=URL.createObjectURL(e.raw)}catch(t){console.error("[Element Error][Upload]",t)}return e})))},fileList:{immediate:!0,handler:function(e){var t=this;this.uploadFiles=e.map((function(e){return e.uid=e.uid||Date.now()+t.tempIndex++,e.status=e.status||"success",e}))}}},methods:{handleStart:function(e){e.uid=Date.now()+this.tempIndex++;var t={status:"ready",name:e.name,size:e.size,percentage:0,uid:e.uid,raw:e};if("picture-card"===this.listType||"picture"===this.listType)try{t.url=URL.createObjectURL(e)}catch(n){return void console.error("[Element Error][Upload]",n)}this.uploadFiles.push(t),this.onChange(t,this.uploadFiles)},handleProgress:function(e,t){var n=this.getFile(t);this.onProgress(e,n,this.uploadFiles),n.status="uploading",n.percentage=e.percent||0},handleSuccess:function(e,t){var n=this.getFile(t);n&&(n.status="success",n.response=e,this.onSuccess(e,n,this.uploadFiles),this.onChange(n,this.uploadFiles))},handleError:function(e,t){var n=this.getFile(t),i=this.uploadFiles;n.status="fail",i.splice(i.indexOf(n),1),this.onError(e,n,this.uploadFiles),this.onChange(n,this.uploadFiles)},handleRemove:function(e,t){var n=this;t&&(e=this.getFile(t));var i=function(){n.abort(e);var t=n.uploadFiles;t.splice(t.indexOf(e),1),n.onRemove(e,t)};if(this.beforeRemove){if("function"===typeof this.beforeRemove){var r=this.beforeRemove(e,this.uploadFiles);r&&r.then?r.then((function(){i()}),fd):!1!==r&&i()}}else i()},getFile:function(e){var t=this.uploadFiles,n=void 0;return t.every((function(t){return n=e.uid===t.uid?t:null,!n})),n},abort:function(e){this.$refs["upload-inner"].abort(e)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var e=this;this.uploadFiles.filter((function(e){return"ready"===e.status})).forEach((function(t){e.$refs["upload-inner"].upload(t.raw)}))},getMigratingConfig:function(){return{props:{"default-file-list":"default-file-list is renamed to file-list.","show-upload-list":"show-upload-list is renamed to show-file-list.","thumbnail-mode":"thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan"}}}},beforeDestroy:function(){this.uploadFiles.forEach((function(e){e.url&&0===e.url.indexOf("blob:")&&URL.revokeObjectURL(e.url)}))},render:function(e){var t=this,n=void 0;this.showFileList&&(n=e(Qu,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(e){if(t.$scopedSlots.file)return t.$scopedSlots.file({file:e.file})}]));var i={props:{type:this.type,drag:this.drag,action:this.action,multiple:this.multiple,"before-upload":this.beforeUpload,"with-credentials":this.withCredentials,headers:this.headers,name:this.name,data:this.data,accept:this.accept,fileList:this.uploadFiles,autoUpload:this.autoUpload,listType:this.listType,disabled:this.uploadDisabled,limit:this.limit,"on-exceed":this.onExceed,"on-start":this.handleStart,"on-progress":this.handleProgress,"on-success":this.handleSuccess,"on-error":this.handleError,"on-preview":this.onPreview,"on-remove":this.handleRemove,"http-request":this.httpRequest},ref:"upload-inner"},r=this.$slots.trigger||this.$slots.default,o=e("upload",i,[r]);return e("div",["picture-card"===this.listType?n:"",this.$slots.trigger?[o,this.$slots.default]:o,this.$slots.tip,"picture-card"!==this.listType?n:""])}},_d=vd,yd=s(_d,gd,md,!1,null,null,null);yd.options.__file="packages/upload/src/index.vue";var bd=yd.exports;bd.install=function(e){e.component(bd.name,bd)};var Sd=bd,Ed=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px"}},[n("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?n("div",{staticClass:"el-progress-bar__innerText"},[e._v(e._s(e.content))]):e._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:"#e5e9f2","stroke-width":e.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e.showText&&!e.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px"}},[e.status?n("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])},Cd=[];Ed._withStripped=!0;var xd={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(e){return["line","circle","dashboard"].indexOf(e)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(e){return e>=0&&e<=100}},status:{type:String,validator:function(e){return["success","exception","warning"].indexOf(e)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle:function(){var e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var e=this.radius,t="dashboard"===this.type;return"\n M 50 50\n m 0 "+(t?"":"-")+e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"-":"")+2*e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"":"-")+2*e+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){var e=-1*this.perimeter*(1-this.rate)/2;return e+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var e=void 0;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"===typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(e){return"function"===typeof this.color?this.color(e):"string"===typeof this.color?this.color:this.getLevelColor(e)},getLevelColor:function(e){for(var t=this.getColorArray().sort((function(e,t){return e.percentage-t.percentage})),n=0;ne)return t[n].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,t=100/e.length;return e.map((function(e,n){return"string"===typeof e?{color:e,percentage:(n+1)*t}:e}))}}},wd=xd,Td=s(wd,Ed,Cd,!1,null,null,null);Td.options.__file="packages/progress/src/progress.vue";var Ad=Td.exports;Ad.install=function(e){e.component(Ad.name,Ad)};var Od=Ad,Rd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"el-spinner"},[n("svg",{staticClass:"el-spinner-inner",style:{width:e.radius/2+"px",height:e.radius/2+"px"},attrs:{viewBox:"0 0 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:e.strokeColor,"stroke-width":e.strokeWidth}})])])},Nd=[];Rd._withStripped=!0;var Dd={name:"ElSpinner",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:"#efefef"}}},Id=Dd,Md=s(Id,Rd,Nd,!1,null,null,null);Md.options.__file="packages/spinner/src/spinner.vue";var kd=Md.exports;kd.install=function(e){e.component(kd.name,kd)};var Ld=kd,Pd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-message",e.type&&!e.iconClass?"el-message--"+e.type:"",e.center?"is-center":"",e.showClose?"is-closable":"",e.customClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:e.clearTimer,mouseleave:e.startTimer}},[e.iconClass?n("i",{class:e.iconClass}):n("i",{class:e.typeClass}),e._t("default",[e.dangerouslyUseHTMLString?n("p",{staticClass:"el-message__content",domProps:{innerHTML:e._s(e.message)}}):n("p",{staticClass:"el-message__content"},[e._v(e._s(e.message))])]),e.showClose?n("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:e.close}}):e._e()],2)])},Fd=[];Pd._withStripped=!0;var Bd={success:"success",info:"info",warning:"warning",error:"error"},$d={data:function(){return{visible:!1,message:"",duration:3e3,type:"info",iconClass:"",customClass:"",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?"el-message__icon el-icon-"+Bd[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(e){e&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration))},keydown:function(e){27===e.keyCode&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},Vd=$d,Gd=s(Vd,Pd,Fd,!1,null,null,null);Gd.options.__file="packages/message/src/main.vue";var Ud=Gd.exports,zd=Ui.a.extend(Ud),jd=void 0,Hd=[],Wd=1,Yd=function e(t){if(!Ui.a.prototype.$isServer){t=t||{},"string"===typeof t&&(t={message:t});var n=t.onClose,i="message_"+Wd++;t.onClose=function(){e.close(i,n)},jd=new zd({data:t}),jd.id=i,Object(xs["isVNode"])(jd.message)&&(jd.$slots.default=[jd.message],jd.message=null),jd.$mount(),document.body.appendChild(jd.$el);var r=t.offset||20;return Hd.forEach((function(e){r+=e.$el.offsetHeight+16})),jd.verticalOffset=r,jd.visible=!0,jd.$el.style.zIndex=C["PopupManager"].nextZIndex(),Hd.push(jd),jd}};["success","warning","info","error"].forEach((function(e){Yd[e]=function(t){return"string"===typeof t&&(t={message:t}),t.type=e,Yd(t)}})),Yd.close=function(e,t){for(var n=Hd.length,i=-1,r=void 0,o=0;oHd.length-1))for(var a=i;a=0;e--)Hd[e].close()};var qd=Yd,Kd=qd,Qd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-badge"},[e._t("default"),n("transition",{attrs:{name:"el-zoom-in-center"}},[n("sup",{directives:[{name:"show",rawName:"v-show",value:!e.hidden&&(e.content||0===e.content||e.isDot),expression:"!hidden && (content || content === 0 || isDot)"}],staticClass:"el-badge__content",class:["el-badge__content--"+e.type,{"is-fixed":e.$slots.default,"is-dot":e.isDot}],domProps:{textContent:e._s(e.content)}})])],2)},Xd=[];Qd._withStripped=!0;var Zd={name:"ElBadge",props:{value:[String,Number],max:Number,isDot:Boolean,hidden:Boolean,type:{type:String,validator:function(e){return["primary","success","warning","info","danger"].indexOf(e)>-1}}},computed:{content:function(){if(!this.isDot){var e=this.value,t=this.max;return"number"===typeof e&&"number"===typeof t&&t0&&e-1this.value,n=this.allowHalf&&this.pointerAtLeftHalf&&e-.5<=this.currentValue&&e>this.currentValue;return t||n},getIconStyle:function(e){var t=this.rateDisabled?this.disabledVoidColor:this.voidColor;return{color:e<=this.currentValue?this.activeColor:t}},selectValue:function(e){this.rateDisabled||(this.allowHalf&&this.pointerAtLeftHalf?(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)):(this.$emit("input",e),this.$emit("change",e)))},handleKey:function(e){if(!this.rateDisabled){var t=this.currentValue,n=e.keyCode;38===n||39===n?(this.allowHalf?t+=.5:t+=1,e.stopPropagation(),e.preventDefault()):37!==n&&40!==n||(this.allowHalf?t-=.5:t-=1,e.stopPropagation(),e.preventDefault()),t=t<0?0:t,t=t>this.max?this.max:t,this.$emit("input",t),this.$emit("change",t)}},setCurrentValue:function(e,t){if(!this.rateDisabled){if(this.allowHalf){var n=t.target;Object(Be["hasClass"])(n,"el-rate__item")&&(n=n.querySelector(".el-rate__icon")),Object(Be["hasClass"])(n,"el-rate__decimal")&&(n=n.parentNode),this.pointerAtLeftHalf=2*t.offsetX<=n.clientWidth,this.currentValue=this.pointerAtLeftHalf?e-.5:e}else this.currentValue=e;this.hoverIndex=e}},resetCurrentValue:function(){this.rateDisabled||(this.allowHalf&&(this.pointerAtLeftHalf=this.value!==Math.floor(this.value)),this.currentValue=this.value,this.hoverIndex=-1)}},created:function(){this.value||this.$emit("input",0)}},fh=ph,gh=s(fh,uh,dh,!1,null,null,null);gh.options.__file="packages/rate/src/main.vue";var mh=gh.exports;mh.install=function(e){e.component(mh.name,mh)};var vh=mh,_h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-steps",class:[!e.simple&&"el-steps--"+e.direction,e.simple&&"el-steps--simple"]},[e._t("default")],2)},yh=[];_h._withStripped=!0;var bh={name:"ElSteps",mixins:[T.a],props:{space:[Number,String],active:Number,direction:{type:String,default:"horizontal"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish"},processStatus:{type:String,default:"process"}},data:function(){return{steps:[],stepOffset:0}},methods:{getMigratingConfig:function(){return{props:{center:"center is removed."}}}},watch:{active:function(e,t){this.$emit("change",e,t)},steps:function(e){e.forEach((function(e,t){e.index=t}))}}},Sh=bh,Eh=s(Sh,_h,yh,!1,null,null,null);Eh.options.__file="packages/steps/src/steps.vue";var Ch=Eh.exports;Ch.install=function(e){e.component(Ch.name,Ch)};var xh=Ch,wh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-step",class:[!e.isSimple&&"is-"+e.$parent.direction,e.isSimple&&"is-simple",e.isLast&&!e.space&&!e.isCenter&&"is-flex",e.isCenter&&!e.isVertical&&!e.isSimple&&"is-center"],style:e.style},[n("div",{staticClass:"el-step__head",class:"is-"+e.currentStatus},[n("div",{staticClass:"el-step__line",style:e.isLast?"":{marginRight:e.$parent.stepOffset+"px"}},[n("i",{staticClass:"el-step__line-inner",style:e.lineStyle})]),n("div",{staticClass:"el-step__icon",class:"is-"+(e.icon?"icon":"text")},["success"!==e.currentStatus&&"error"!==e.currentStatus?e._t("icon",[e.icon?n("i",{staticClass:"el-step__icon-inner",class:[e.icon]}):e._e(),e.icon||e.isSimple?e._e():n("div",{staticClass:"el-step__icon-inner"},[e._v(e._s(e.index+1))])]):n("i",{staticClass:"el-step__icon-inner is-status",class:["el-icon-"+("success"===e.currentStatus?"check":"close")]})],2)]),n("div",{staticClass:"el-step__main"},[n("div",{ref:"title",staticClass:"el-step__title",class:["is-"+e.currentStatus]},[e._t("title",[e._v(e._s(e.title))])],2),e.isSimple?n("div",{staticClass:"el-step__arrow"}):n("div",{staticClass:"el-step__description",class:["is-"+e.currentStatus]},[e._t("description",[e._v(e._s(e.description))])],2)])])},Th=[];wh._withStripped=!0;var Ah={name:"ElStep",props:{title:String,icon:String,description:String,status:String},data:function(){return{index:-1,lineStyle:{},internalStatus:""}},beforeCreate:function(){this.$parent.steps.push(this)},beforeDestroy:function(){var e=this.$parent.steps,t=e.indexOf(this);t>=0&&e.splice(t,1)},computed:{currentStatus:function(){return this.status||this.internalStatus},prevStatus:function(){var e=this.$parent.steps[this.index-1];return e?e.currentStatus:"wait"},isCenter:function(){return this.$parent.alignCenter},isVertical:function(){return"vertical"===this.$parent.direction},isSimple:function(){return this.$parent.simple},isLast:function(){var e=this.$parent;return e.steps[e.steps.length-1]===this},stepsCount:function(){return this.$parent.steps.length},space:function(){var e=this.isSimple,t=this.$parent.space;return e?"":t},style:function(){var e={},t=this.$parent,n=t.steps.length,i="number"===typeof this.space?this.space+"px":this.space?this.space:100/(n-(this.isCenter?0:1))+"%";return e.flexBasis=i,this.isVertical?e:(this.isLast?e.maxWidth=100/this.stepsCount+"%":e.marginRight=-this.$parent.stepOffset+"px",e)}},methods:{updateStatus:function(e){var t=this.$parent.$children[this.index-1];e>this.index?this.internalStatus=this.$parent.finishStatus:e===this.index&&"error"!==this.prevStatus?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait",t&&t.calcProgress(this.internalStatus)},calcProgress:function(e){var t=100,n={};n.transitionDelay=150*this.index+"ms",e===this.$parent.processStatus?(this.currentStatus,t=0):"wait"===e&&(t=0,n.transitionDelay=-150*this.index+"ms"),n.borderWidth=t&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?n.height=t+"%":n.width=t+"%",this.lineStyle=n}},mounted:function(){var e=this,t=this.$watch("index",(function(n){e.$watch("$parent.active",e.updateStatus,{immediate:!0}),e.$watch("$parent.processStatus",(function(){var t=e.$parent.active;e.updateStatus(t)}),{immediate:!0}),t()}))}},Oh=Ah,Rh=s(Oh,wh,Th,!1,null,null,null);Rh.options.__file="packages/steps/src/step.vue";var Nh=Rh.exports;Nh.install=function(e){e.component(Nh.name,Nh)};var Dh=Nh,Ih=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.carouselClasses,on:{mouseenter:function(t){return t.stopPropagation(),e.handleMouseEnter(t)},mouseleave:function(t){return t.stopPropagation(),e.handleMouseLeave(t)}}},[n("div",{staticClass:"el-carousel__container",style:{height:e.height}},[e.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-left"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===e.arrow||e.hover)&&(e.loop||e.activeIndex>0),expression:"(arrow === 'always' || hover) && (loop || activeIndex > 0)"}],staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{type:"button"},on:{mouseenter:function(t){e.handleButtonEnter("left")},mouseleave:e.handleButtonLeave,click:function(t){t.stopPropagation(),e.throttledArrowClick(e.activeIndex-1)}}},[n("i",{staticClass:"el-icon-arrow-left"})])]):e._e(),e.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-right"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===e.arrow||e.hover)&&(e.loop||e.activeIndex0}))},carouselClasses:function(){var e=["el-carousel","el-carousel--"+this.direction];return"card"===this.type&&e.push("el-carousel--card"),e},indicatorsClasses:function(){var e=["el-carousel__indicators","el-carousel__indicators--"+this.direction];return this.hasLabel&&e.push("el-carousel__indicators--labels"),"outside"!==this.indicatorPosition&&"card"!==this.type||e.push("el-carousel__indicators--outside"),e}},watch:{items:function(e){e.length>0&&this.setActiveItem(this.initialIndex)},activeIndex:function(e,t){this.resetItemPosition(t),t>-1&&this.$emit("change",e,t)},autoplay:function(e){e?this.startTimer():this.pauseTimer()},loop:function(){this.setActiveItem(this.activeIndex)}},methods:{handleMouseEnter:function(){this.hover=!0,this.pauseTimer()},handleMouseLeave:function(){this.hover=!1,this.startTimer()},itemInStage:function(e,t){var n=this.items.length;return t===n-1&&e.inStage&&this.items[0].active||e.inStage&&this.items[t+1]&&this.items[t+1].active?"left":!!(0===t&&e.inStage&&this.items[n-1].active||e.inStage&&this.items[t-1]&&this.items[t-1].active)&&"right"},handleButtonEnter:function(e){var t=this;"vertical"!==this.direction&&this.items.forEach((function(n,i){e===t.itemInStage(n,i)&&(n.hover=!0)}))},handleButtonLeave:function(){"vertical"!==this.direction&&this.items.forEach((function(e){e.hover=!1}))},updateItems:function(){this.items=this.$children.filter((function(e){return"ElCarouselItem"===e.$options.name}))},resetItemPosition:function(e){var t=this;this.items.forEach((function(n,i){n.translateItem(i,t.activeIndex,e)}))},playSlides:function(){this.activeIndex0&&(e=this.items.indexOf(t[0]))}if(e=Number(e),isNaN(e)||e!==Math.floor(e))console.warn("[Element Warn][Carousel]index must be an integer.");else{var n=this.items.length,i=this.activeIndex;this.activeIndex=e<0?this.loop?n-1:0:e>=n?this.loop?0:n-1:e,i===this.activeIndex&&this.resetItemPosition(i)}},prev:function(){this.setActiveItem(this.activeIndex-1)},next:function(){this.setActiveItem(this.activeIndex+1)},handleIndicatorClick:function(e){this.activeIndex=e},handleIndicatorHover:function(e){"hover"===this.trigger&&e!==this.activeIndex&&(this.activeIndex=e)}},created:function(){var e=this;this.throttledArrowClick=Lh()(300,!0,(function(t){e.setActiveItem(t)})),this.throttledIndicatorHover=Lh()(300,(function(t){e.handleIndicatorHover(t)}))},mounted:function(){var e=this;this.updateItems(),this.$nextTick((function(){Object(ei["addResizeListener"])(e.$el,e.resetItemPosition),e.initialIndex=0&&(e.activeIndex=e.initialIndex),e.startTimer()}))},beforeDestroy:function(){this.$el&&Object(ei["removeResizeListener"])(this.$el,this.resetItemPosition),this.pauseTimer()}},Fh=Ph,Bh=s(Fh,Ih,Mh,!1,null,null,null);Bh.options.__file="packages/carousel/src/main.vue";var $h=Bh.exports;$h.install=function(e){e.component($h.name,$h)};var Vh=$h,Gh={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function Uh(e){var t=e.move,n=e.size,i=e.bar,r={},o="translate"+i.axis+"("+t+"%)";return r[i.size]=n,r.transform=o,r.msTransform=o,r.webkitTransform=o,r}var zh={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return Gh[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,i=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+i.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:Uh({size:t,move:n,bar:i})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,i=100*(t-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(Be["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(Be["on"])(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),i=this.$refs.thumb[this.bar.offset]-t,r=100*(n-i)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(Be["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(Be["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},jh={name:"ElScrollbar",components:{Bar:zh},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=vr()(),n=this.wrapStyle;if(t){var i="-"+t+"px",r="margin-bottom: "+i+"; margin-right: "+i+";";Array.isArray(this.wrapStyle)?(n=Object(_["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=i):"string"===typeof this.wrapStyle?n+=r:n=r}var o=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),a=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[o]]),s=void 0;return s=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[o]])]:[a,e(zh,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(zh,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},s)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e=void 0,t=void 0,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(ei["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(ei["removeResizeListener"])(this.$refs.resize,this.update)},install:function(e){e.component(jh.name,jh)}},Hh=jh,Wh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.ready,expression:"ready"}],staticClass:"el-carousel__item",class:{"is-active":e.active,"el-carousel__item--card":"card"===e.$parent.type,"is-in-stage":e.inStage,"is-hover":e.hover,"is-animating":e.animating},style:e.itemStyle,on:{click:e.handleItemClick}},["card"===e.$parent.type?n("div",{directives:[{name:"show",rawName:"v-show",value:!e.active,expression:"!active"}],staticClass:"el-carousel__mask"}):e._e(),e._t("default")],2)},Yh=[];Wh._withStripped=!0;var qh=.83,Kh={name:"ElCarouselItem",props:{name:String,label:{type:[String,Number],default:""}},data:function(){return{hover:!1,translate:0,scale:1,active:!1,ready:!1,inStage:!1,animating:!1}},methods:{processIndex:function(e,t,n){return 0===t&&e===n-1?-1:t===n-1&&0===e?n:e=n/2?n+1:e>t+1&&e-t>=n/2?-2:e},calcCardTranslate:function(e,t){var n=this.$parent.$el.offsetWidth;return this.inStage?n*((2-qh)*(e-t)+1)/4:e2&&this.$parent.loop&&(e=this.processIndex(e,t,o)),"card"===i)"vertical"===r&&console.warn("[Element Warn][Carousel]vertical direction is not supported in card mode"),this.inStage=Math.round(Math.abs(e-t))<=1,this.active=e===t,this.translate=this.calcCardTranslate(e,t),this.scale=this.active?1:qh;else{this.active=e===t;var a="vertical"===r;this.translate=this.calcTranslate(e,t,a)}this.ready=!0},handleItemClick:function(){var e=this.$parent;if(e&&"card"===e.type){var t=e.items.indexOf(this);e.setActiveItem(t)}}},computed:{parentDirection:function(){return this.$parent.direction},itemStyle:function(){var e="vertical"===this.parentDirection?"translateY":"translateX",t=e+"("+this.translate+"px) scale("+this.scale+")",n={transform:t};return Object(_["autoprefixer"])(n)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},Qh=Kh,Xh=s(Qh,Wh,Yh,!1,null,null,null);Xh.options.__file="packages/carousel/src/item.vue";var Zh=Xh.exports;Zh.install=function(e){e.component(Zh.name,Zh)};var Jh=Zh,ep=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[e._t("default")],2)},tp=[];ep._withStripped=!0;var np={name:"ElCollapse",componentName:"ElCollapse",props:{accordion:Boolean,value:{type:[Array,String,Number],default:function(){return[]}}},data:function(){return{activeNames:[].concat(this.value)}},provide:function(){return{collapse:this}},watch:{value:function(e){this.activeNames=[].concat(e)}},methods:{setActiveNames:function(e){e=[].concat(e);var t=this.accordion?e[0]:e;this.activeNames=e,this.$emit("input",t),this.$emit("change",t)},handleItemClick:function(e){if(this.accordion)this.setActiveNames(!this.activeNames[0]&&0!==this.activeNames[0]||this.activeNames[0]!==e.name?e.name:"");else{var t=this.activeNames.slice(0),n=t.indexOf(e.name);n>-1?t.splice(n,1):t.push(e.name),this.setActiveNames(t)}}},created:function(){this.$on("item-click",this.handleItemClick)}},ip=np,rp=s(ip,ep,tp,!1,null,null,null);rp.options.__file="packages/collapse/src/collapse.vue";var op=rp.exports;op.install=function(e){e.component(op.name,op)};var ap=op,sp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-collapse-item",class:{"is-active":e.isActive,"is-disabled":e.disabled}},[n("div",{attrs:{role:"tab","aria-expanded":e.isActive,"aria-controls":"el-collapse-content-"+e.id,"aria-describedby":"el-collapse-content-"+e.id}},[n("div",{staticClass:"el-collapse-item__header",class:{focusing:e.focusing,"is-active":e.isActive},attrs:{role:"button",id:"el-collapse-head-"+e.id,tabindex:e.disabled?void 0:0},on:{click:e.handleHeaderClick,keyup:function(t){return"button"in t||!e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])||!e._k(t.keyCode,"enter",13,t.key,"Enter")?(t.stopPropagation(),e.handleEnterClick(t)):null},focus:e.handleFocus,blur:function(t){e.focusing=!1}}},[e._t("title",[e._v(e._s(e.title))]),n("i",{staticClass:"el-collapse-item__arrow el-icon-arrow-right",class:{"is-active":e.isActive}})],2)]),n("el-collapse-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"el-collapse-item__wrap",attrs:{role:"tabpanel","aria-hidden":!e.isActive,"aria-labelledby":"el-collapse-head-"+e.id,id:"el-collapse-content-"+e.id}},[n("div",{staticClass:"el-collapse-item__content"},[e._t("default")],2)])])],1)},lp=[];sp._withStripped=!0;var cp={name:"ElCollapseItem",componentName:"ElCollapseItem",mixins:[O.a],components:{ElCollapseTransition:Ye.a},data:function(){return{contentWrapStyle:{height:"auto",display:"block"},contentHeight:0,focusing:!1,isClick:!1,id:Object(_["generateId"])()}},inject:["collapse"],props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},computed:{isActive:function(){return this.collapse.activeNames.indexOf(this.name)>-1}},methods:{handleFocus:function(){var e=this;setTimeout((function(){e.isClick?e.isClick=!1:e.focusing=!0}),50)},handleHeaderClick:function(){this.disabled||(this.dispatch("ElCollapse","item-click",this),this.focusing=!1,this.isClick=!0)},handleEnterClick:function(){this.dispatch("ElCollapse","item-click",this)}}},up=cp,dp=s(up,sp,lp,!1,null,null,null);dp.options.__file="packages/collapse/src/collapse-item.vue";var hp=dp.exports;hp.install=function(e){e.component(hp.name,hp)};var pp=hp,fp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:function(){return e.toggleDropDownVisible(!1)},expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:["el-cascader",e.realSize&&"el-cascader--"+e.realSize,{"is-disabled":e.isDisabled}],on:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1},click:function(){return e.toggleDropDownVisible(!e.readonly||void 0)},keydown:e.handleKeyDown}},[n("el-input",{ref:"input",class:{"is-focus":e.dropDownVisible},attrs:{size:e.realSize,placeholder:e.placeholder,readonly:e.readonly,disabled:e.isDisabled,"validate-event":!1},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.handleInput},model:{value:e.multiple?e.presentText:e.inputValue,callback:function(t){e.multiple?e.presentText:e.inputValue=t},expression:"multiple ? presentText : inputValue"}},[n("template",{slot:"suffix"},[e.clearBtnVisible?n("i",{key:"clear",staticClass:"el-input__icon el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.handleClear(t)}}}):n("i",{key:"arrow-down",class:["el-input__icon","el-icon-arrow-down",e.dropDownVisible&&"is-reverse"],on:{click:function(t){t.stopPropagation(),e.toggleDropDownVisible()}}})])],2),e.multiple?n("div",{staticClass:"el-cascader__tags"},[e._l(e.presentTags,(function(t,i){return n("el-tag",{key:t.key,attrs:{type:"info",size:e.tagSize,hit:t.hitState,closable:t.closable,"disable-transitions":""},on:{close:function(t){e.deleteTag(i)}}},[n("span",[e._v(e._s(t.text))])])})),e.filterable&&!e.isDisabled?n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.inputValue,expression:"inputValue",modifiers:{trim:!0}}],staticClass:"el-cascader__search-input",attrs:{type:"text",placeholder:e.presentTags.length?"":e.placeholder},domProps:{value:e.inputValue},on:{input:[function(t){t.target.composing||(e.inputValue=t.target.value.trim())},function(t){return e.handleInput(e.inputValue,t)}],click:function(t){t.stopPropagation(),e.toggleDropDownVisible(!0)},keydown:function(t){return"button"in t||!e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?e.handleDelete(t):null},blur:function(t){e.$forceUpdate()}}}):e._e()],2):e._e(),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.handleDropdownLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.dropDownVisible,expression:"dropDownVisible"}],ref:"popper",class:["el-popper","el-cascader__dropdown",e.popperClass]},[n("el-cascader-panel",{directives:[{name:"show",rawName:"v-show",value:!e.filtering,expression:"!filtering"}],ref:"panel",attrs:{options:e.options,props:e.config,border:!1,"render-label":e.$scopedSlots.default},on:{"expand-change":e.handleExpandChange,close:function(t){e.toggleDropDownVisible(!1)}},model:{value:e.checkedValue,callback:function(t){e.checkedValue=t},expression:"checkedValue"}}),e.filterable?n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.filtering,expression:"filtering"}],ref:"suggestionPanel",staticClass:"el-cascader__suggestion-panel",attrs:{tag:"ul","view-class":"el-cascader__suggestion-list"},nativeOn:{keydown:function(t){return e.handleSuggestionKeyDown(t)}}},[e.suggestions.length?e._l(e.suggestions,(function(t,i){return n("li",{key:t.uid,class:["el-cascader__suggestion-item",t.checked&&"is-checked"],attrs:{tabindex:-1},on:{click:function(t){e.handleSuggestionClick(i)}}},[n("span",[e._v(e._s(t.text))]),t.checked?n("i",{staticClass:"el-icon-check"}):e._e()])})):e._t("empty",[n("li",{staticClass:"el-cascader__empty-text"},[e._v(e._s(e.t("el.cascader.noMatch")))])])],2):e._e()],1)])],1)},gp=[];fp._withStripped=!0;var mp=n(42),vp=n.n(mp),_p=n(34),yp=n.n(_p),bp=yp.a.keys,Sp={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},Ep={props:{placement:{type:String,default:"bottom-start"},appendToBody:z.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:z.a.props.arrowOffset,offset:z.a.props.offset,boundariesPadding:z.a.props.boundariesPadding,popperOptions:z.a.props.popperOptions},methods:z.a.methods,data:z.a.data,beforeDestroy:z.a.beforeDestroy},Cp={medium:36,small:32,mini:28},xp={name:"ElCascader",directives:{Clickoutside:$.a},mixins:[Ep,O.a,v.a,T.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:g.a,ElTag:Jn.a,ElScrollbar:H.a,ElCascaderPanel:vp.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(fs["t"])("el.cascader.placeholder")}},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:Function,separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,debounce:{type:Number,default:300},beforeFilter:{type:Function,default:function(){return function(){}}},popperClass:String},data:function(){return{dropDownVisible:!1,checkedValue:this.value||null,inputHover:!1,inputValue:null,presentText:null,presentTags:[],checkedNodes:[],filtering:!1,suggestions:[],inputInitialHeight:0,pressDeleteCount:0}},computed:{realSize:function(){var e=(this.elFormItem||{}).elFormItemSize;return this.size||e||(this.$ELEMENT||{}).size},tagSize:function(){return["small","mini"].indexOf(this.realSize)>-1?"mini":"small"},isDisabled:function(){return this.disabled||(this.elForm||{}).disabled},config:function(){var e=this.props||{},t=this.$attrs;return Object.keys(Sp).forEach((function(n){var i=Sp[n],r=i.newProp,o=i.type,a=t[n]||t[Object(_["kebabCase"])(n)];Object(Tt["isDef"])(n)&&!Object(Tt["isDef"])(e[r])&&(o===Boolean&&""===a&&(a=!0),e[r]=a)})),e},multiple:function(){return this.config.multiple},leafOnly:function(){return!this.config.checkStrictly},readonly:function(){return!this.filterable||this.multiple},clearBtnVisible:function(){return!(!this.clearable||this.isDisabled||this.filtering||!this.inputHover)&&(this.multiple?!!this.checkedNodes.filter((function(e){return!e.isDisabled})).length:!!this.presentText)},panel:function(){return this.$refs.panel}},watch:{disabled:function(){this.computePresentContent()},value:function(e){Object(_["isEqual"])(e,this.checkedValue)||(this.checkedValue=e,this.computePresentContent())},checkedValue:function(e){var t=this.value,n=this.dropDownVisible,i=this.config,r=i.checkStrictly,o=i.multiple;Object(_["isEqual"])(e,t)&&!Object(hh["isUndefined"])(t)||(this.computePresentContent(),o||r||!n||this.toggleDropDownVisible(!1),this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",[e]))},options:{handler:function(){this.$nextTick(this.computePresentContent)},deep:!0},presentText:function(e){this.inputValue=e},presentTags:function(e,t){this.multiple&&(e.length||t.length)&&this.$nextTick(this.updateStyle)},filtering:function(e){this.$nextTick(this.updatePopper)}},mounted:function(){var e=this,t=this.$refs.input;t&&t.$el&&(this.inputInitialHeight=t.$el.offsetHeight||Cp[this.realSize]||40),Object(_["isEmpty"])(this.value)||this.computePresentContent(),this.filterHandler=F()(this.debounce,(function(){var t=e.inputValue;if(t){var n=e.beforeFilter(t);n&&n.then?n.then(e.getSuggestions):!1!==n?e.getSuggestions():e.filtering=!1}else e.filtering=!1})),Object(ei["addResizeListener"])(this.$el,this.updateStyle)},beforeDestroy:function(){Object(ei["removeResizeListener"])(this.$el,this.updateStyle)},methods:{getMigratingConfig:function(){return{props:{"expand-trigger":"expand-trigger is removed, use `props.expandTrigger` instead.","change-on-select":"change-on-select is removed, use `props.checkStrictly` instead.","hover-threshold":"hover-threshold is removed, use `props.hoverThreshold` instead"},events:{"active-item-change":"active-item-change is renamed to expand-change"}}},toggleDropDownVisible:function(e){var t=this;if(!this.isDisabled){var n=this.dropDownVisible,i=this.$refs.input;e=Object(Tt["isDef"])(e)?e:!n,e!==n&&(this.dropDownVisible=e,e&&this.$nextTick((function(){t.updatePopper(),t.panel.scrollIntoView()})),i.$refs.input.setAttribute("aria-expanded",e),this.$emit("visible-change",e))}},handleDropdownLeave:function(){this.filtering=!1,this.inputValue=this.presentText},handleKeyDown:function(e){switch(e.keyCode){case bp.enter:this.toggleDropDownVisible();break;case bp.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),e.preventDefault();break;case bp.esc:case bp.tab:this.toggleDropDownVisible(!1);break}},handleFocus:function(e){this.$emit("focus",e)},handleBlur:function(e){this.$emit("blur",e)},handleInput:function(e,t){!this.dropDownVisible&&this.toggleDropDownVisible(!0),t&&t.isComposing||(e?this.filterHandler():this.filtering=!1)},handleClear:function(){this.presentText="",this.panel.clearCheckedNodes()},handleExpandChange:function(e){this.$nextTick(this.updatePopper.bind(this)),this.$emit("expand-change",e),this.$emit("active-item-change",e)},focusFirstNode:function(){var e=this;this.$nextTick((function(){var t=e.filtering,n=e.$refs,i=n.popper,r=n.suggestionPanel,o=null;if(t&&r)o=r.$el.querySelector(".el-cascader__suggestion-item");else{var a=i.querySelector(".el-cascader-menu");o=a.querySelector('.el-cascader-node[tabindex="-1"]')}o&&(o.focus(),!t&&o.click())}))},computePresentContent:function(){var e=this;this.$nextTick((function(){e.config.multiple?(e.computePresentTags(),e.presentText=e.presentTags.length?" ":null):e.computePresentText()}))},computePresentText:function(){var e=this.checkedValue,t=this.config;if(!Object(_["isEmpty"])(e)){var n=this.panel.getNodeByValue(e);if(n&&(t.checkStrictly||n.isLeaf))return void(this.presentText=n.getText(this.showAllLevels,this.separator))}this.presentText=null},computePresentTags:function(){var e=this.isDisabled,t=this.leafOnly,n=this.showAllLevels,i=this.separator,r=this.collapseTags,o=this.getCheckedNodes(t),a=[],s=function(t){return{node:t,key:t.uid,text:t.getText(n,i),hitState:!1,closable:!e&&!t.isDisabled}};if(o.length){var l=o[0],c=o.slice(1),u=c.length;a.push(s(l)),u&&(r?a.push({key:-1,text:"+ "+u,closable:!1}):c.forEach((function(e){return a.push(s(e))})))}this.checkedNodes=o,this.presentTags=a},getSuggestions:function(){var e=this,t=this.filterMethod;Object(hh["isFunction"])(t)||(t=function(e,t){return e.text.includes(t)});var n=this.panel.getFlattedNodes(this.leafOnly).filter((function(n){return!n.isDisabled&&(n.text=n.getText(e.showAllLevels,e.separator)||"",t(n,e.inputValue))}));this.multiple?this.presentTags.forEach((function(e){e.hitState=!1})):n.forEach((function(t){t.checked=Object(_["isEqual"])(e.checkedValue,t.getValueByOption())})),this.filtering=!0,this.suggestions=n,this.$nextTick(this.updatePopper)},handleSuggestionKeyDown:function(e){var t=e.keyCode,n=e.target;switch(t){case bp.enter:n.click();break;case bp.up:var i=n.previousElementSibling;i&&i.focus();break;case bp.down:var r=n.nextElementSibling;r&&r.focus();break;case bp.esc:case bp.tab:this.toggleDropDownVisible(!1);break}},handleDelete:function(){var e=this.inputValue,t=this.pressDeleteCount,n=this.presentTags,i=n.length-1,r=n[i];this.pressDeleteCount=e?0:t+1,r&&this.pressDeleteCount&&(r.hitState?this.deleteTag(i):r.hitState=!0)},handleSuggestionClick:function(e){var t=this.multiple,n=this.suggestions[e];if(t){var i=n.checked;n.doCheck(!i),this.panel.calculateMultiCheckedValue()}else this.checkedValue=n.getValueByOption(),this.toggleDropDownVisible(!1)},deleteTag:function(e){var t=this.checkedValue,n=t[e];this.checkedValue=t.filter((function(t,n){return n!==e})),this.$emit("remove-tag",n)},updateStyle:function(){var e=this.$el,t=this.inputInitialHeight;if(!this.$isServer&&e){var n=this.$refs.suggestionPanel,i=e.querySelector(".el-input__inner");if(i){var r=e.querySelector(".el-cascader__tags"),o=null;if(n&&(o=n.$el)){var a=o.querySelector(".el-cascader__suggestion-list");a.style.minWidth=i.offsetWidth+"px"}if(r){var s=r.offsetHeight,l=Math.max(s+6,t)+"px";i.style.height=l,this.updatePopper()}}}},getCheckedNodes:function(e){return this.panel.getCheckedNodes(e)}}},wp=xp,Tp=s(wp,fp,gp,!1,null,null,null);Tp.options.__file="packages/cascader/src/cascader.vue";var Ap=Tp.exports;Ap.install=function(e){e.component(Ap.name,Ap)};var Op=Ap,Rp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.hide,expression:"hide"}],class:["el-color-picker",e.colorDisabled?"is-disabled":"",e.colorSize?"el-color-picker--"+e.colorSize:""]},[e.colorDisabled?n("div",{staticClass:"el-color-picker__mask"}):e._e(),n("div",{staticClass:"el-color-picker__trigger",on:{click:e.handleTrigger}},[n("span",{staticClass:"el-color-picker__color",class:{"is-alpha":e.showAlpha}},[n("span",{staticClass:"el-color-picker__color-inner",style:{backgroundColor:e.displayedColor}}),e.value||e.showPanelColor?e._e():n("span",{staticClass:"el-color-picker__empty el-icon-close"})]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.value||e.showPanelColor,expression:"value || showPanelColor"}],staticClass:"el-color-picker__icon el-icon-arrow-down"})]),n("picker-dropdown",{ref:"dropdown",class:["el-color-picker__panel",e.popperClass||""],attrs:{color:e.color,"show-alpha":e.showAlpha,predefine:e.predefine},on:{pick:e.confirmValue,clear:e.clearValue},model:{value:e.showPicker,callback:function(t){e.showPicker=t},expression:"showPicker"}})],1)},Np=[];Rp._withStripped=!0;var Dp="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Ip(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Mp=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},kp=function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)},Lp=function(e){return"string"===typeof e&&-1!==e.indexOf("%")},Pp=function(e,t){kp(e)&&(e="100%");var n=Lp(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)},Fp={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Bp=function(e){var t=e.r,n=e.g,i=e.b,r=function(e){e=Math.min(Math.round(e),255);var t=Math.floor(e/16),n=e%16;return""+(Fp[t]||t)+(Fp[n]||n)};return isNaN(t)||isNaN(n)||isNaN(i)?"":"#"+r(t)+r(n)+r(i)},$p={A:10,B:11,C:12,D:13,E:14,F:15},Vp=function(e){return 2===e.length?16*($p[e[0].toUpperCase()]||+e[0])+($p[e[1].toUpperCase()]||+e[1]):$p[e[1].toUpperCase()]||+e[1]},Gp=function(e,t,n){t/=100,n/=100;var i=t,r=Math.max(n,.01),o=void 0,a=void 0;return n*=2,t*=n<=1?n:2-n,i*=r<=1?r:2-r,a=(n+t)/2,o=0===n?2*i/(r+i):2*t/(n+t),{h:e,s:100*o,v:100*a}},Up=function(e,t,n){e=Pp(e,255),t=Pp(t,255),n=Pp(n,255);var i=Math.max(e,t,n),r=Math.min(e,t,n),o=void 0,a=void 0,s=i,l=i-r;if(a=0===i?0:l/i,i===r)o=0;else{switch(i){case e:o=(t-n)/l+(t2?parseFloat(e):parseInt(e,10)}));if(4===i.length?this._alpha=Math.floor(100*parseFloat(i[3])):3===i.length&&(this._alpha=100),i.length>=3){var r=Gp(i[0],i[1],i[2]),o=r.h,a=r.s,s=r.v;n(o,a,s)}}else if(-1!==e.indexOf("hsv")){var l=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));4===l.length?this._alpha=Math.floor(100*parseFloat(l[3])):3===l.length&&(this._alpha=100),l.length>=3&&n(l[0],l[1],l[2])}else if(-1!==e.indexOf("rgb")){var c=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));if(4===c.length?this._alpha=Math.floor(100*parseFloat(c[3])):3===c.length&&(this._alpha=100),c.length>=3){var u=Up(c[0],c[1],c[2]),d=u.h,h=u.s,p=u.v;n(d,h,p)}}else if(-1!==e.indexOf("#")){var f=e.replace("#","").trim();if(!/^(?:[0-9a-fA-F]{3}){1,2}$/.test(f))return;var g=void 0,m=void 0,v=void 0;3===f.length?(g=Vp(f[0]+f[0]),m=Vp(f[1]+f[1]),v=Vp(f[2]+f[2])):6!==f.length&&8!==f.length||(g=Vp(f.substring(0,2)),m=Vp(f.substring(2,4)),v=Vp(f.substring(4,6))),8===f.length?this._alpha=Math.floor(Vp(f.substring(6))/255*100):3!==f.length&&6!==f.length||(this._alpha=100);var _=Up(g,m,v),y=_.h,b=_.s,S=_.v;n(y,b,S)}},e.prototype.compare=function(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1},e.prototype.doOnChange=function(){var e=this._hue,t=this._saturation,n=this._value,i=this._alpha,r=this.format;if(this.enableAlpha)switch(r){case"hsl":var o=Mp(e,t/100,n/100);this.value="hsla("+e+", "+Math.round(100*o[1])+"%, "+Math.round(100*o[2])+"%, "+i/100+")";break;case"hsv":this.value="hsva("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%, "+i/100+")";break;default:var a=zp(e,t,n),s=a.r,l=a.g,c=a.b;this.value="rgba("+s+", "+l+", "+c+", "+i/100+")"}else switch(r){case"hsl":var u=Mp(e,t/100,n/100);this.value="hsl("+e+", "+Math.round(100*u[1])+"%, "+Math.round(100*u[2])+"%)";break;case"hsv":this.value="hsv("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%)";break;case"rgb":var d=zp(e,t,n),h=d.r,p=d.g,f=d.b;this.value="rgb("+h+", "+p+", "+f+")";break;default:this.value=Bp(zp(e,t,n))}},e}(),Hp=jp,Wp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-color-dropdown"},[n("div",{staticClass:"el-color-dropdown__main-wrapper"},[n("hue-slider",{ref:"hue",staticStyle:{float:"right"},attrs:{color:e.color,vertical:""}}),n("sv-panel",{ref:"sl",attrs:{color:e.color}})],1),e.showAlpha?n("alpha-slider",{ref:"alpha",attrs:{color:e.color}}):e._e(),e.predefine?n("predefine",{attrs:{color:e.color,colors:e.predefine}}):e._e(),n("div",{staticClass:"el-color-dropdown__btns"},[n("span",{staticClass:"el-color-dropdown__value"},[n("el-input",{attrs:{"validate-event":!1,size:"mini"},on:{blur:e.handleConfirm},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleConfirm(t):null}},model:{value:e.customInput,callback:function(t){e.customInput=t},expression:"customInput"}})],1),n("el-button",{staticClass:"el-color-dropdown__link-btn",attrs:{size:"mini",type:"text"},on:{click:function(t){e.$emit("clear")}}},[e._v("\n "+e._s(e.t("el.colorpicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-color-dropdown__btn",attrs:{plain:"",size:"mini"},on:{click:e.confirmValue}},[e._v("\n "+e._s(e.t("el.colorpicker.confirm"))+"\n ")])],1)],1)])},Yp=[];Wp._withStripped=!0;var qp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-svpanel",style:{backgroundColor:e.background}},[n("div",{staticClass:"el-color-svpanel__white"}),n("div",{staticClass:"el-color-svpanel__black"}),n("div",{staticClass:"el-color-svpanel__cursor",style:{top:e.cursorTop+"px",left:e.cursorLeft+"px"}},[n("div")])])},Kp=[];qp._withStripped=!0;var Qp=!1,Xp=function(e,t){if(!Ui.a.prototype.$isServer){var n=function(e){t.drag&&t.drag(e)},i=function e(i){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",e),document.onselectstart=null,document.ondragstart=null,Qp=!1,t.end&&t.end(i)};e.addEventListener("mousedown",(function(e){Qp||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",n),document.addEventListener("mouseup",i),Qp=!0,t.start&&t.start(e))}))}},Zp={name:"el-sl-panel",props:{color:{required:!0}},computed:{colorValue:function(){var e=this.color.get("hue"),t=this.color.get("value");return{hue:e,value:t}}},watch:{colorValue:function(){this.update()}},methods:{update:function(){var e=this.color.get("saturation"),t=this.color.get("value"),n=this.$el,i=n.clientWidth,r=n.clientHeight;this.cursorLeft=e*i/100,this.cursorTop=(100-t)*r/100,this.background="hsl("+this.color.get("hue")+", 100%, 50%)"},handleDrag:function(e){var t=this.$el,n=t.getBoundingClientRect(),i=e.clientX-n.left,r=e.clientY-n.top;i=Math.max(0,i),i=Math.min(i,n.width),r=Math.max(0,r),r=Math.min(r,n.height),this.cursorLeft=i,this.cursorTop=r,this.color.set({saturation:i/n.width*100,value:100-r/n.height*100})}},mounted:function(){var e=this;Xp(this.$el,{drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}}),this.update()},data:function(){return{cursorTop:0,cursorLeft:0,background:"hsl(0, 100%, 50%)"}}},Jp=Zp,ef=s(Jp,qp,Kp,!1,null,null,null);ef.options.__file="packages/color-picker/src/components/sv-panel.vue";var tf=ef.exports,nf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-hue-slider",class:{"is-vertical":e.vertical}},[n("div",{ref:"bar",staticClass:"el-color-hue-slider__bar",on:{click:e.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-hue-slider__thumb",style:{left:e.thumbLeft+"px",top:e.thumbTop+"px"}})])},rf=[];nf._withStripped=!0;var of={name:"el-color-hue-slider",props:{color:{required:!0},vertical:Boolean},data:function(){return{thumbLeft:0,thumbTop:0}},computed:{hueValue:function(){var e=this.color.get("hue");return e}},watch:{hueValue:function(){this.update()}},methods:{handleClick:function(e){var t=this.$refs.thumb,n=e.target;n!==t&&this.handleDrag(e)},handleDrag:function(e){var t=this.$el.getBoundingClientRect(),n=this.$refs.thumb,i=void 0;if(this.vertical){var r=e.clientY-t.top;r=Math.min(r,t.height-n.offsetHeight/2),r=Math.max(n.offsetHeight/2,r),i=Math.round((r-n.offsetHeight/2)/(t.height-n.offsetHeight)*360)}else{var o=e.clientX-t.left;o=Math.min(o,t.width-n.offsetWidth/2),o=Math.max(n.offsetWidth/2,o),i=Math.round((o-n.offsetWidth/2)/(t.width-n.offsetWidth)*360)}this.color.set("hue",i)},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/360)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/360)},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop()}},mounted:function(){var e=this,t=this.$refs,n=t.bar,i=t.thumb,r={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};Xp(n,r),Xp(i,r),this.update()}},af=of,sf=s(af,nf,rf,!1,null,null,null);sf.options.__file="packages/color-picker/src/components/hue-slider.vue";var lf=sf.exports,cf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-alpha-slider",class:{"is-vertical":e.vertical}},[n("div",{ref:"bar",staticClass:"el-color-alpha-slider__bar",style:{background:e.background},on:{click:e.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-alpha-slider__thumb",style:{left:e.thumbLeft+"px",top:e.thumbTop+"px"}})])},uf=[];cf._withStripped=!0;var df={name:"el-color-alpha-slider",props:{color:{required:!0},vertical:Boolean},watch:{"color._alpha":function(){this.update()},"color.value":function(){this.update()}},methods:{handleClick:function(e){var t=this.$refs.thumb,n=e.target;n!==t&&this.handleDrag(e)},handleDrag:function(e){var t=this.$el.getBoundingClientRect(),n=this.$refs.thumb;if(this.vertical){var i=e.clientY-t.top;i=Math.max(n.offsetHeight/2,i),i=Math.min(i,t.height-n.offsetHeight/2),this.color.set("alpha",Math.round((i-n.offsetHeight/2)/(t.height-n.offsetHeight)*100))}else{var r=e.clientX-t.left;r=Math.max(n.offsetWidth/2,r),r=Math.min(r,t.width-n.offsetWidth/2),this.color.set("alpha",Math.round((r-n.offsetWidth/2)/(t.width-n.offsetWidth)*100))}},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/100)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/100)},getBackground:function(){if(this.color&&this.color.value){var e=this.color.toRgb(),t=e.r,n=e.g,i=e.b;return"linear-gradient(to right, rgba("+t+", "+n+", "+i+", 0) 0%, rgba("+t+", "+n+", "+i+", 1) 100%)"}return null},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop(),this.background=this.getBackground()}},data:function(){return{thumbLeft:0,thumbTop:0,background:null}},mounted:function(){var e=this,t=this.$refs,n=t.bar,i=t.thumb,r={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};Xp(n,r),Xp(i,r),this.update()}},hf=df,pf=s(hf,cf,uf,!1,null,null,null);pf.options.__file="packages/color-picker/src/components/alpha-slider.vue";var ff=pf.exports,gf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-predefine"},[n("div",{staticClass:"el-color-predefine__colors"},e._l(e.rgbaColors,(function(t,i){return n("div",{key:e.colors[i],staticClass:"el-color-predefine__color-selector",class:{selected:t.selected,"is-alpha":t._alpha<100},on:{click:function(t){e.handleSelect(i)}}},[n("div",{style:{"background-color":t.value}})])})),0)])},mf=[];gf._withStripped=!0;var vf={props:{colors:{type:Array,required:!0},color:{required:!0}},data:function(){return{rgbaColors:this.parseColors(this.colors,this.color)}},methods:{handleSelect:function(e){this.color.fromString(this.colors[e])},parseColors:function(e,t){return e.map((function(e){var n=new Hp;return n.enableAlpha=!0,n.format="rgba",n.fromString(e),n.selected=n.value===t.value,n}))}},watch:{"$parent.currentColor":function(e){var t=new Hp;t.fromString(e),this.rgbaColors.forEach((function(e){e.selected=t.compare(e)}))},colors:function(e){this.rgbaColors=this.parseColors(e,this.color)},color:function(e){this.rgbaColors=this.parseColors(this.colors,e)}}},_f=vf,yf=s(_f,gf,mf,!1,null,null,null);yf.options.__file="packages/color-picker/src/components/predefine.vue";var bf=yf.exports,Sf={name:"el-color-picker-dropdown",mixins:[z.a,v.a],components:{SvPanel:tf,HueSlider:lf,AlphaSlider:ff,ElInput:g.a,ElButton:ae.a,Predefine:bf},props:{color:{required:!0},showAlpha:Boolean,predefine:Array},data:function(){return{customInput:""}},computed:{currentColor:function(){var e=this.$parent;return e.value||e.showPanelColor?e.color.value:""}},methods:{confirmValue:function(){this.$emit("pick")},handleConfirm:function(){this.color.fromString(this.customInput)}},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$el},watch:{showPopper:function(e){var t=this;!0===e&&this.$nextTick((function(){var e=t.$refs,n=e.sl,i=e.hue,r=e.alpha;n&&n.update(),i&&i.update(),r&&r.update()}))},currentColor:{immediate:!0,handler:function(e){this.customInput=e}}}},Ef=Sf,Cf=s(Ef,Wp,Yp,!1,null,null,null);Cf.options.__file="packages/color-picker/src/components/picker-dropdown.vue";var xf=Cf.exports,wf={name:"ElColorPicker",mixins:[O.a],props:{value:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:String,popperClass:String,predefine:Array},inject:{elForm:{default:""},elFormItem:{default:""}},directives:{Clickoutside:$.a},computed:{displayedColor:function(){return this.value||this.showPanelColor?this.displayedRgb(this.color,this.showAlpha):"transparent"},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},colorSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},colorDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(e){e?e&&e!==this.color.value&&this.color.fromString(e):this.showPanelColor=!1},color:{deep:!0,handler:function(){this.showPanelColor=!0}},displayedColor:function(e){if(this.showPicker){var t=new Hp({enableAlpha:this.showAlpha,format:this.colorFormat});t.fromString(this.value);var n=this.displayedRgb(t,this.showAlpha);e!==n&&this.$emit("active-change",e)}}},methods:{handleTrigger:function(){this.colorDisabled||(this.showPicker=!this.showPicker)},confirmValue:function(){var e=this.color.value;this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",e),this.showPicker=!1},clearValue:function(){this.$emit("input",null),this.$emit("change",null),null!==this.value&&this.dispatch("ElFormItem","el.form.change",null),this.showPanelColor=!1,this.showPicker=!1,this.resetColor()},hide:function(){this.showPicker=!1,this.resetColor()},resetColor:function(){var e=this;this.$nextTick((function(t){e.value?e.color.fromString(e.value):e.showPanelColor=!1}))},displayedRgb:function(e,t){if(!(e instanceof Hp))throw Error("color should be instance of Color Class");var n=e.toRgb(),i=n.r,r=n.g,o=n.b;return t?"rgba("+i+", "+r+", "+o+", "+e.get("alpha")/100+")":"rgb("+i+", "+r+", "+o+")"}},mounted:function(){var e=this.value;e&&this.color.fromString(e),this.popperElm=this.$refs.dropdown.$el},data:function(){var e=new Hp({enableAlpha:this.showAlpha,format:this.colorFormat});return{color:e,showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:xf}},Tf=wf,Af=s(Tf,Rp,Np,!1,null,null,null);Af.options.__file="packages/color-picker/src/main.vue";var Of=Af.exports;Of.install=function(e){e.component(Of.name,Of)};var Rf=Of,Nf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-transfer"},[n("transfer-panel",e._b({ref:"leftPanel",attrs:{data:e.sourceData,title:e.titles[0]||e.t("el.transfer.titles.0"),"default-checked":e.leftDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onSourceCheckedChange}},"transfer-panel",e.$props,!1),[e._t("left-footer")],2),n("div",{staticClass:"el-transfer__buttons"},[n("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.rightChecked.length},nativeOn:{click:function(t){return e.addToLeft(t)}}},[n("i",{staticClass:"el-icon-arrow-left"}),void 0!==e.buttonTexts[0]?n("span",[e._v(e._s(e.buttonTexts[0]))]):e._e()]),n("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.leftChecked.length},nativeOn:{click:function(t){return e.addToRight(t)}}},[void 0!==e.buttonTexts[1]?n("span",[e._v(e._s(e.buttonTexts[1]))]):e._e(),n("i",{staticClass:"el-icon-arrow-right"})])],1),n("transfer-panel",e._b({ref:"rightPanel",attrs:{data:e.targetData,title:e.titles[1]||e.t("el.transfer.titles.1"),"default-checked":e.rightDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onTargetCheckedChange}},"transfer-panel",e.$props,!1),[e._t("right-footer")],2)],1)},Df=[];Nf._withStripped=!0;var If=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-transfer-panel"},[n("p",{staticClass:"el-transfer-panel__header"},[n("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleAllCheckedChange},model:{value:e.allChecked,callback:function(t){e.allChecked=t},expression:"allChecked"}},[e._v("\n "+e._s(e.title)+"\n "),n("span",[e._v(e._s(e.checkedSummary))])])],1),n("div",{class:["el-transfer-panel__body",e.hasFooter?"is-with-footer":""]},[e.filterable?n("el-input",{staticClass:"el-transfer-panel__filter",attrs:{size:"small",placeholder:e.placeholder},nativeOn:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1}},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}},[n("i",{class:["el-input__icon","el-icon-"+e.inputIcon],attrs:{slot:"prefix"},on:{click:e.clearQuery},slot:"prefix"})]):e._e(),n("el-checkbox-group",{directives:[{name:"show",rawName:"v-show",value:!e.hasNoMatch&&e.data.length>0,expression:"!hasNoMatch && data.length > 0"}],staticClass:"el-transfer-panel__list",class:{"is-filterable":e.filterable},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},e._l(e.filteredData,(function(t){return n("el-checkbox",{key:t[e.keyProp],staticClass:"el-transfer-panel__item",attrs:{label:t[e.keyProp],disabled:t[e.disabledProp]}},[n("option-content",{attrs:{option:t}})],1)})),1),n("p",{directives:[{name:"show",rawName:"v-show",value:e.hasNoMatch,expression:"hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noMatch")))]),n("p",{directives:[{name:"show",rawName:"v-show",value:0===e.data.length&&!e.hasNoMatch,expression:"data.length === 0 && !hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noData")))])],1),e.hasFooter?n("p",{staticClass:"el-transfer-panel__footer"},[e._t("default")],2):e._e()])},Mf=[];If._withStripped=!0;var kf={mixins:[v.a],name:"ElTransferPanel",componentName:"ElTransferPanel",components:{ElCheckboxGroup:Nr.a,ElCheckbox:ki.a,ElInput:g.a,OptionContent:{props:{option:Object},render:function(e){var t=function e(t){return"ElTransferPanel"===t.$options.componentName?t:t.$parent?e(t.$parent):t},n=t(this),i=n.$parent||n;return n.renderContent?n.renderContent(e,this.option):i.$scopedSlots.default?i.$scopedSlots.default({option:this.option}):e("span",[this.option[n.labelProp]||this.option[n.keyProp]])}}},props:{data:{type:Array,default:function(){return[]}},renderContent:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},data:function(){return{checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}},watch:{checked:function(e,t){if(this.updateAllChecked(),this.checkChangeByUser){var n=e.concat(t).filter((function(n){return-1===e.indexOf(n)||-1===t.indexOf(n)}));this.$emit("checked-change",e,n)}else this.$emit("checked-change",e),this.checkChangeByUser=!0},data:function(){var e=this,t=[],n=this.filteredData.map((function(t){return t[e.keyProp]}));this.checked.forEach((function(e){n.indexOf(e)>-1&&t.push(e)})),this.checkChangeByUser=!1,this.checked=t},checkableData:function(){this.updateAllChecked()},defaultChecked:{immediate:!0,handler:function(e,t){var n=this;if(!t||e.length!==t.length||!e.every((function(e){return t.indexOf(e)>-1}))){var i=[],r=this.checkableData.map((function(e){return e[n.keyProp]}));e.forEach((function(e){r.indexOf(e)>-1&&i.push(e)})),this.checkChangeByUser=!1,this.checked=i}}}},computed:{filteredData:function(){var e=this;return this.data.filter((function(t){if("function"===typeof e.filterMethod)return e.filterMethod(e.query,t);var n=t[e.labelProp]||t[e.keyProp].toString();return n.toLowerCase().indexOf(e.query.toLowerCase())>-1}))},checkableData:function(){var e=this;return this.filteredData.filter((function(t){return!t[e.disabledProp]}))},checkedSummary:function(){var e=this.checked.length,t=this.data.length,n=this.format,i=n.noChecked,r=n.hasChecked;return i&&r?e>0?r.replace(/\${checked}/g,e).replace(/\${total}/g,t):i.replace(/\${total}/g,t):e+"/"+t},isIndeterminate:function(){var e=this.checked.length;return e>0&&e0&&0===this.filteredData.length},inputIcon:function(){return this.query.length>0&&this.inputHover?"circle-close":"search"},labelProp:function(){return this.props.label||"label"},keyProp:function(){return this.props.key||"key"},disabledProp:function(){return this.props.disabled||"disabled"},hasFooter:function(){return!!this.$slots.default}},methods:{updateAllChecked:function(){var e=this,t=this.checkableData.map((function(t){return t[e.keyProp]}));this.allChecked=t.length>0&&t.every((function(t){return e.checked.indexOf(t)>-1}))},handleAllCheckedChange:function(e){var t=this;this.checked=e?this.checkableData.map((function(e){return e[t.keyProp]})):[]},clearQuery:function(){"circle-close"===this.inputIcon&&(this.query="")}}},Lf=kf,Pf=s(Lf,If,Mf,!1,null,null,null);Pf.options.__file="packages/transfer/src/transfer-panel.vue";var Ff=Pf.exports,Bf={name:"ElTransfer",mixins:[O.a,v.a,T.a],components:{TransferPanel:Ff,ElButton:ae.a},props:{data:{type:Array,default:function(){return[]}},titles:{type:Array,default:function(){return[]}},buttonTexts:{type:Array,default:function(){return[]}},filterPlaceholder:{type:String,default:""},filterMethod:Function,leftDefaultChecked:{type:Array,default:function(){return[]}},rightDefaultChecked:{type:Array,default:function(){return[]}},renderContent:Function,value:{type:Array,default:function(){return[]}},format:{type:Object,default:function(){return{}}},filterable:Boolean,props:{type:Object,default:function(){return{label:"label",key:"key",disabled:"disabled"}}},targetOrder:{type:String,default:"original"}},data:function(){return{leftChecked:[],rightChecked:[]}},computed:{dataObj:function(){var e=this.props.key;return this.data.reduce((function(t,n){return(t[n[e]]=n)&&t}),{})},sourceData:function(){var e=this;return this.data.filter((function(t){return-1===e.value.indexOf(t[e.props.key])}))},targetData:function(){var e=this;return"original"===this.targetOrder?this.data.filter((function(t){return e.value.indexOf(t[e.props.key])>-1})):this.value.reduce((function(t,n){var i=e.dataObj[n];return i&&t.push(i),t}),[])},hasButtonTexts:function(){return 2===this.buttonTexts.length}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}},methods:{getMigratingConfig:function(){return{props:{"footer-format":"footer-format is renamed to format."}}},onSourceCheckedChange:function(e,t){this.leftChecked=e,void 0!==t&&this.$emit("left-check-change",e,t)},onTargetCheckedChange:function(e,t){this.rightChecked=e,void 0!==t&&this.$emit("right-check-change",e,t)},addToLeft:function(){var e=this.value.slice();this.rightChecked.forEach((function(t){var n=e.indexOf(t);n>-1&&e.splice(n,1)})),this.$emit("input",e),this.$emit("change",e,"left",this.rightChecked)},addToRight:function(){var e=this,t=this.value.slice(),n=[],i=this.props.key;this.data.forEach((function(t){var r=t[i];e.leftChecked.indexOf(r)>-1&&-1===e.value.indexOf(r)&&n.push(r)})),t="unshift"===this.targetOrder?n.concat(t):t.concat(n),this.$emit("input",t),this.$emit("change",t,"right",this.leftChecked)},clearQuery:function(e){"left"===e?this.$refs.leftPanel.query="":"right"===e&&(this.$refs.rightPanel.query="")}}},$f=Bf,Vf=s($f,Nf,Df,!1,null,null,null);Vf.options.__file="packages/transfer/src/main.vue";var Gf=Vf.exports;Gf.install=function(e){e.component(Gf.name,Gf)};var Uf=Gf,zf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"el-container",class:{"is-vertical":e.isVertical}},[e._t("default")],2)},jf=[];zf._withStripped=!0;var Hf={name:"ElContainer",componentName:"ElContainer",props:{direction:String},computed:{isVertical:function(){return"vertical"===this.direction||"horizontal"!==this.direction&&(!(!this.$slots||!this.$slots.default)&&this.$slots.default.some((function(e){var t=e.componentOptions&&e.componentOptions.tag;return"el-header"===t||"el-footer"===t})))}}},Wf=Hf,Yf=s(Wf,zf,jf,!1,null,null,null);Yf.options.__file="packages/container/src/main.vue";var qf=Yf.exports;qf.install=function(e){e.component(qf.name,qf)};var Kf=qf,Qf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",{staticClass:"el-header",style:{height:e.height}},[e._t("default")],2)},Xf=[];Qf._withStripped=!0;var Zf={name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},Jf=Zf,eg=s(Jf,Qf,Xf,!1,null,null,null);eg.options.__file="packages/header/src/main.vue";var tg=eg.exports;tg.install=function(e){e.component(tg.name,tg)};var ng=tg,ig=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("aside",{staticClass:"el-aside",style:{width:e.width}},[e._t("default")],2)},rg=[];ig._withStripped=!0;var og={name:"ElAside",componentName:"ElAside",props:{width:{type:String,default:"300px"}}},ag=og,sg=s(ag,ig,rg,!1,null,null,null);sg.options.__file="packages/aside/src/main.vue";var lg=sg.exports;lg.install=function(e){e.component(lg.name,lg)};var cg=lg,ug=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("main",{staticClass:"el-main"},[e._t("default")],2)},dg=[];ug._withStripped=!0;var hg={name:"ElMain",componentName:"ElMain"},pg=hg,fg=s(pg,ug,dg,!1,null,null,null);fg.options.__file="packages/main/src/main.vue";var gg=fg.exports;gg.install=function(e){e.component(gg.name,gg)};var mg=gg,vg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("footer",{staticClass:"el-footer",style:{height:e.height}},[e._t("default")],2)},_g=[];vg._withStripped=!0;var yg={name:"ElFooter",componentName:"ElFooter",props:{height:{type:String,default:"60px"}}},bg=yg,Sg=s(bg,vg,_g,!1,null,null,null);Sg.options.__file="packages/footer/src/main.vue";var Eg=Sg.exports;Eg.install=function(e){e.component(Eg.name,Eg)};var Cg,xg,wg=Eg,Tg={name:"ElTimeline",props:{reverse:{type:Boolean,default:!1}},provide:function(){return{timeline:this}},render:function(){var e=arguments[0],t=this.reverse,n={"el-timeline":!0,"is-reverse":t},i=this.$slots.default||[];return t&&(i=i.reverse()),e("ul",{class:n},[i])}},Ag=Tg,Og=s(Ag,Cg,xg,!1,null,null,null);Og.options.__file="packages/timeline/src/main.vue";var Rg=Og.exports;Rg.install=function(e){e.component(Rg.name,Rg)};var Ng=Rg,Dg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-timeline-item"},[n("div",{staticClass:"el-timeline-item__tail"}),e.$slots.dot?e._e():n("div",{staticClass:"el-timeline-item__node",class:["el-timeline-item__node--"+(e.size||""),"el-timeline-item__node--"+(e.type||"")],style:{backgroundColor:e.color}},[e.icon?n("i",{staticClass:"el-timeline-item__icon",class:e.icon}):e._e()]),e.$slots.dot?n("div",{staticClass:"el-timeline-item__dot"},[e._t("dot")],2):e._e(),n("div",{staticClass:"el-timeline-item__wrapper"},[e.hideTimestamp||"top"!==e.placement?e._e():n("div",{staticClass:"el-timeline-item__timestamp is-top"},[e._v("\n "+e._s(e.timestamp)+"\n ")]),n("div",{staticClass:"el-timeline-item__content"},[e._t("default")],2),e.hideTimestamp||"bottom"!==e.placement?e._e():n("div",{staticClass:"el-timeline-item__timestamp is-bottom"},[e._v("\n "+e._s(e.timestamp)+"\n ")])])])},Ig=[];Dg._withStripped=!0;var Mg={name:"ElTimelineItem",inject:["timeline"],props:{timestamp:String,hideTimestamp:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},type:String,color:String,size:{type:String,default:"normal"},icon:String}},kg=Mg,Lg=s(kg,Dg,Ig,!1,null,null,null);Lg.options.__file="packages/timeline/src/item.vue";var Pg=Lg.exports;Pg.install=function(e){e.component(Pg.name,Pg)};var Fg=Pg,Bg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",e._b({class:["el-link",e.type?"el-link--"+e.type:"",e.disabled&&"is-disabled",e.underline&&!e.disabled&&"is-underline"],attrs:{href:e.disabled?null:e.href},on:{click:e.handleClick}},"a",e.$attrs,!1),[e.icon?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",{staticClass:"el-link--inner"},[e._t("default")],2):e._e(),e.$slots.icon?[e.$slots.icon?e._t("icon"):e._e()]:e._e()],2)},$g=[];Bg._withStripped=!0;var Vg={name:"ElLink",props:{type:{type:String,default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:String,icon:String},methods:{handleClick:function(e){this.disabled||this.href||this.$emit("click",e)}}},Gg=Vg,Ug=s(Gg,Bg,$g,!1,null,null,null);Ug.options.__file="packages/link/src/main.vue";var zg=Ug.exports;zg.install=function(e){e.component(zg.name,zg)};var jg=zg,Hg=function(e,t){var n=t._c;return n("div",t._g(t._b({class:[t.data.staticClass,"el-divider","el-divider--"+t.props.direction]},"div",t.data.attrs,!1),t.listeners),[t.slots().default&&"vertical"!==t.props.direction?n("div",{class:["el-divider__text","is-"+t.props.contentPosition]},[t._t("default")],2):t._e()])},Wg=[];Hg._withStripped=!0;var Yg={name:"ElDivider",props:{direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}},contentPosition:{type:String,default:"center",validator:function(e){return-1!==["left","center","right"].indexOf(e)}}}},qg=Yg,Kg=s(qg,Hg,Wg,!0,null,null,null);Kg.options.__file="packages/divider/src/main.vue";var Qg=Kg.exports;Qg.install=function(e){e.component(Qg.name,Qg)};var Xg=Qg,Zg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-image"},[e.loading?e._t("placeholder",[n("div",{staticClass:"el-image__placeholder"})]):e.error?e._t("error",[n("div",{staticClass:"el-image__error"},[e._v(e._s(e.t("el.image.error")))])]):n("img",e._g(e._b({staticClass:"el-image__inner",class:{"el-image__inner--center":e.alignCenter,"el-image__preview":e.preview},style:e.imageStyle,attrs:{src:e.src},on:{click:e.clickHandler}},"img",e.$attrs,!1),e.$listeners)),e.preview?[e.showViewer?n("image-viewer",{attrs:{"z-index":e.zIndex,"initial-index":e.imageIndex,"on-close":e.closeViewer,"url-list":e.previewSrcList}}):e._e()]:e._e()],2)},Jg=[];Zg._withStripped=!0;var em=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"viewer-fade"}},[n("div",{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:{"z-index":e.zIndex},attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-image-viewer__mask",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleMaskClick(t)}}}),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:e.hide}},[n("i",{staticClass:"el-icon-close"})]),e.isSingle?e._e():[n("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[n("i",{staticClass:"el-icon-arrow-left"})]),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[n("i",{staticClass:"el-icon-arrow-right"})])],n("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[n("div",{staticClass:"el-image-viewer__actions__inner"},[n("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){e.handleActions("zoomOut")}}}),n("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){e.handleActions("zoomIn")}}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{class:e.mode.icon,on:{click:e.toggleMode}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){e.handleActions("anticlocelise")}}}),n("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){e.handleActions("clocelise")}}})])]),n("div",{staticClass:"el-image-viewer__canvas"},e._l(e.urlList,(function(t,i){return i===e.index?n("img",{key:t,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:e.imgStyle,attrs:{src:e.currentImg},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}}):e._e()})),0)],2)])},tm=[];em._withStripped=!0;var nm=Object.assign||function(e){for(var t=1;t0?e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})})),Object(Be["on"])(document,"keydown",this._keyDownHandler),Object(Be["on"])(document,rm,this._mouseWheelHandler)},deviceSupportUninstall:function(){Object(Be["off"])(document,"keydown",this._keyDownHandler),Object(Be["off"])(document,rm,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(e){this.loading=!1},handleImgError:function(e){this.loading=!1,e.target.alt="加载失败"},handleMouseDown:function(e){var t=this;if(!this.loading&&0===e.button){var n=this.transform,i=n.offsetX,r=n.offsetY,o=e.pageX,a=e.pageY;this._dragHandler=Object(_["rafThrottle"])((function(e){t.transform.offsetX=i+e.pageX-o,t.transform.offsetY=r+e.pageY-a})),Object(Be["on"])(document,"mousemove",this._dragHandler),Object(Be["on"])(document,"mouseup",(function(e){Object(Be["off"])(document,"mousemove",t._dragHandler)})),e.preventDefault()}},handleMaskClick:function(){this.maskClosable&&this.hide()},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){if(!this.loading){var e=Object.keys(im),t=Object.values(im),n=t.indexOf(this.mode),i=(n+1)%e.length;this.mode=im[e[i]],this.reset()}},prev:function(){if(!this.isFirst||this.infinite){var e=this.urlList.length;this.index=(this.index-1+e)%e}},next:function(){if(!this.isLast||this.infinite){var e=this.urlList.length;this.index=(this.index+1)%e}},handleActions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var n=nm({zoomRate:.2,rotateDeg:90,enableTransition:!0},t),i=n.zoomRate,r=n.rotateDeg,o=n.enableTransition,a=this.transform;switch(e){case"zoomOut":a.scale>.2&&(a.scale=parseFloat((a.scale-i).toFixed(3)));break;case"zoomIn":a.scale=parseFloat((a.scale+i).toFixed(3));break;case"clocelise":a.deg+=r;break;case"anticlocelise":a.deg-=r;break}a.enableTransition=o}}},mounted:function(){this.deviceSupportInstall(),this.appendToBody&&document.body.appendChild(this.$el),this.$refs["el-image-viewer__wrapper"].focus()},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},am=om,sm=s(am,em,tm,!1,null,null,null);sm.options.__file="packages/image/src/image-viewer.vue";var lm=sm.exports,cm=function(){return void 0!==document.documentElement.style.objectFit},um={NONE:"none",CONTAIN:"contain",COVER:"cover",FILL:"fill",SCALE_DOWN:"scale-down"},dm="",hm={name:"ElImage",mixins:[v.a],inheritAttrs:!1,components:{ImageViewer:lm},props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3}},data:function(){return{loading:!0,error:!1,show:!this.lazy,imageWidth:0,imageHeight:0,showViewer:!1}},computed:{imageStyle:function(){var e=this.fit;return!this.$isServer&&e?cm()?{"object-fit":e}:this.getImageStyle(e):{}},alignCenter:function(){return!this.$isServer&&!cm()&&this.fit!==um.FILL},preview:function(){var e=this.previewSrcList;return Array.isArray(e)&&e.length>0},imageIndex:function(){var e=0,t=this.previewSrcList.indexOf(this.src);return t>=0&&(e=t),e}},watch:{src:function(e){this.show&&this.loadImage()},show:function(e){e&&this.loadImage()}},mounted:function(){this.lazy?this.addLazyLoadListener():this.loadImage()},beforeDestroy:function(){this.lazy&&this.removeLazyLoadListener()},methods:{loadImage:function(){var e=this;if(!this.$isServer){this.loading=!0,this.error=!1;var t=new Image;t.onload=function(n){return e.handleLoad(n,t)},t.onerror=this.handleError.bind(this),Object.keys(this.$attrs).forEach((function(n){var i=e.$attrs[n];t.setAttribute(n,i)})),t.src=this.src}},handleLoad:function(e,t){this.imageWidth=t.width,this.imageHeight=t.height,this.loading=!1,this.error=!1},handleError:function(e){this.loading=!1,this.error=!0,this.$emit("error",e)},handleLazyLoad:function(){Object(Be["isInContainer"])(this.$el,this._scrollContainer)&&(this.show=!0,this.removeLazyLoadListener())},addLazyLoadListener:function(){if(!this.$isServer){var e=this.scrollContainer,t=null;t=Object(hh["isHtmlElement"])(e)?e:Object(hh["isString"])(e)?document.querySelector(e):Object(Be["getScrollContainer"])(this.$el),t&&(this._scrollContainer=t,this._lazyLoadHandler=Lh()(200,this.handleLazyLoad),Object(Be["on"])(t,"scroll",this._lazyLoadHandler),this.handleLazyLoad())}},removeLazyLoadListener:function(){var e=this._scrollContainer,t=this._lazyLoadHandler;!this.$isServer&&e&&t&&(Object(Be["off"])(e,"scroll",t),this._scrollContainer=null,this._lazyLoadHandler=null)},getImageStyle:function(e){var t=this.imageWidth,n=this.imageHeight,i=this.$el,r=i.clientWidth,o=i.clientHeight;if(!t||!n||!r||!o)return{};var a=t/n<1;if(e===um.SCALE_DOWN){var s=tr)return console.warn("[ElementCalendar]end time should be greater than start time"),[];if(Object(ro["validateRangeInOneMonth"])(i,r))return[[i,r]];var o=[],a=new Date(i.getFullYear(),i.getMonth()+1,1),s=this.toDate(a.getTime()-Rm);if(!Object(ro["validateRangeInOneMonth"])(a,r))return console.warn("[ElementCalendar]start time and end time interval must not exceed two months"),[];o.push([i,s]);var l=this.realFirstDayOfWeek,c=a.getDay(),u=0;return c!==l&&(0===l?u=7-c:(u=l-c,u=u>0?u:7+u)),a=this.toDate(a.getTime()+u*Rm),a.getDate()6?0:Math.floor(this.firstDayOfWeek)}},data:function(){return{selectedDay:"",now:new Date}}},Dm=Nm,Im=s(Dm,vm,_m,!1,null,null,null);Im.options.__file="packages/calendar/src/main.vue";var Mm=Im.exports;Mm.install=function(e){e.component(Mm.name,Mm)};var km=Mm,Lm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-fade-in"}},[e.visible?n("div",{staticClass:"el-backtop",style:{right:e.styleRight,bottom:e.styleBottom},on:{click:function(t){return t.stopPropagation(),e.handleClick(t)}}},[e._t("default",[n("el-icon",{attrs:{name:"caret-top"}})])],2):e._e()])},Pm=[];Lm._withStripped=!0;var Fm=function(e){return Math.pow(e,3)},Bm=function(e){return e<.5?Fm(2*e)/2:1-Fm(2*(1-e))/2},$m={name:"ElBacktop",props:{visibilityHeight:{type:Number,default:200},target:[String],right:{type:Number,default:40},bottom:{type:Number,default:40}},data:function(){return{el:null,container:null,visible:!1}},computed:{styleBottom:function(){return this.bottom+"px"},styleRight:function(){return this.right+"px"}},mounted:function(){this.init(),this.throttledScrollHandler=Lh()(300,this.onScroll),this.container.addEventListener("scroll",this.throttledScrollHandler)},methods:{init:function(){if(this.container=document,this.el=document.documentElement,this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error("target is not existed: "+this.target);this.container=this.el}},onScroll:function(){var e=this.el.scrollTop;this.visible=e>=this.visibilityHeight},handleClick:function(e){this.scrollToTop(),this.$emit("click",e)},scrollToTop:function(){var e=this.el,t=Date.now(),n=e.scrollTop,i=window.requestAnimationFrame||function(e){return setTimeout(e,16)},r=function r(){var o=(Date.now()-t)/500;o<1?(e.scrollTop=n*(1-Bm(o)),i(r)):e.scrollTop=0};i(r)}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},Vm=$m,Gm=s(Vm,Lm,Pm,!1,null,null,null);Gm.options.__file="packages/backtop/src/main.vue";var Um=Gm.exports;Um.install=function(e){e.component(Um.name,Um)};var zm=Um,jm=function(e,t){if(e===window&&(e=document.documentElement),1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n},Hm=function(e){return Object.keys(e||{}).map((function(t){return[t,e[t]]}))},Wm=function(e,t){return e===window||e===document?document.documentElement[t]:e[t]},Ym=function(e){return Wm(e,"offsetHeight")},qm=function(e){return Wm(e,"clientHeight")},Km="ElInfiniteScroll",Qm={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Xm=function(e,t){return Object(hh["isHtmlElement"])(e)?Hm(Qm).reduce((function(n,i){var r=i[0],o=i[1],a=o.type,s=o.default,l=e.getAttribute("infinite-scroll-"+r);switch(l=Object(hh["isUndefined"])(t[l])?l:t[l],a){case Number:l=Number(l),l=Number.isNaN(l)?s:l;break;case Boolean:l=Object(hh["isDefined"])(l)?"false"!==l&&Boolean(l):s;break;default:l=a(l)}return n[r]=l,n}),{}):{}},Zm=function(e){return e.getBoundingClientRect().top},Jm=function(e){var t=this[Km],n=t.el,i=t.vm,r=t.container,o=t.observer,a=Xm(n,i),s=a.distance,l=a.disabled;if(!l){var c=r.getBoundingClientRect();if(c.width||c.height){var u=!1;if(r===n){var d=r.scrollTop+qm(r);u=r.scrollHeight-d<=s}else{var h=Ym(n)+Zm(n)-Zm(r),p=Ym(r),f=Number.parseFloat(jm(r,"borderBottomWidth"));u=h-p+f<=s}u&&Object(hh["isFunction"])(e)?e.call(i):o&&(o.disconnect(),this[Km].observer=null)}}},ev={name:"InfiniteScroll",inserted:function(e,t,n){var i=t.value,r=n.context,o=Object(Be["getScrollContainer"])(e,!0),a=Xm(e,r),s=a.delay,l=a.immediate,c=F()(s,Jm.bind(e,i));if(e[Km]={el:e,vm:r,container:o,onScroll:c},o&&(o.addEventListener("scroll",c),l)){var u=e[Km].observer=new MutationObserver(c);u.observe(o,{childList:!0,subtree:!0}),c()}},unbind:function(e){var t=e[Km],n=t.container,i=t.onScroll;n&&n.removeEventListener("scroll",i)},install:function(e){e.directive(ev.name,ev)}},tv=ev,nv=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-page-header"},[n("div",{staticClass:"el-page-header__left",on:{click:function(t){e.$emit("back")}}},[n("i",{staticClass:"el-icon-back"}),n("div",{staticClass:"el-page-header__title"},[e._t("title",[e._v(e._s(e.title))])],2)]),n("div",{staticClass:"el-page-header__content"},[e._t("content",[e._v(e._s(e.content))])],2)])},iv=[];nv._withStripped=!0;var rv={name:"ElPageHeader",props:{title:{type:String,default:function(){return Object(fs["t"])("el.pageHeader.title")}},content:String}},ov=rv,av=s(ov,nv,iv,!1,null,null,null);av.options.__file="packages/page-header/src/main.vue";var sv=av.exports;sv.install=function(e){e.component(sv.name,sv)};var lv=sv,cv=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-cascader-panel",e.border&&"is-bordered"],on:{keydown:e.handleKeyDown}},e._l(e.menus,(function(e,t){return n("cascader-menu",{key:t,ref:"menu",refInFor:!0,attrs:{index:t,nodes:e}})})),1)},uv=[];cv._withStripped=!0;var dv,hv,pv=n(43),fv=n.n(pv),gv=function(e){return e.stopPropagation()},mv={inject:["panel"],components:{ElCheckbox:ki.a,ElRadio:fv.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var e=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(t){return e.isInPath(t)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var e=this,t=this.panel,n=this.node,i=this.isDisabled,r=this.config,o=r.multiple,a=r.checkStrictly;!a&&i||n.loading||(r.lazy&&!n.loaded?t.lazyLoad(n,(function(){var t=e.isLeaf;if(t||e.handleExpand(),o){var i=!!t&&n.checked;e.handleMultiCheckChange(i)}})):t.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node,n=e[t.level-1]||{};return n.uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,i=this.config,r=i.checkStrictly,o=i.multiple;return o?this.renderCheckbox(e):r?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(e){var t=this.node,n=this.config,i=this.isDisabled,r={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(r.nativeOn.click=gv),e("el-checkbox",Zu()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:i}},r]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,i=this.isDisabled;return Object(_["isEqual"])(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:i},on:{change:this.handleCheckChange},nativeOn:{click:gv}},[e("span")])},renderCheckIcon:function(e){return e("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(e){return e("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(e){return e("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(e){var t=this.panel,n=this.node,i=t.renderLabelFn,r=i?i({node:n,data:n.data}):null;return e("span",{class:"el-cascader-node__label"},[r||n.label])}},render:function(e){var t=this,n=this.inActivePath,i=this.inCheckedPath,r=this.isChecked,o=this.isLeaf,a=this.isDisabled,s=this.config,l=this.nodeId,c=s.expandTrigger,u=s.checkStrictly,d=s.multiple,h=!u&&a,p={on:{}};return"click"===c?p.on.click=this.handleExpand:(p.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},p.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!o||a||u||d||(p.on.click=this.handleCheckChange),e("li",Zu()([{attrs:{role:"menuitem",id:l,"aria-expanded":n,tabindex:h?null:-1},class:{"el-cascader-node":!0,"is-selectable":u,"in-active-path":n,"in-checked-path":i,"is-active":r,"is-disabled":h}},p]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},vv=mv,_v=s(vv,dv,hv,!1,null,null,null);_v.options.__file="packages/cascader-panel/src/cascader-node.vue";var yv,bv,Sv=_v.exports,Ev={name:"ElCascaderMenu",mixins:[v.a],inject:["panel"],components:{ElScrollbar:H.a,CascaderNode:Sv},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(_["generateId"])()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t=this.activeNode,n=this.hoverTimer,i=this.$refs.hoverZone;if(t&&i)if(t.contains(e.target)){clearTimeout(n);var r=this.$el.getBoundingClientRect(),o=r.left,a=e.clientX-o,s=this.$el,l=s.offsetWidth,c=s.offsetHeight,u=t.offsetTop,d=u+t.offsetHeight;i.innerHTML='\n \n \n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,i={on:{}};n&&(i.on.expand=this.handleExpand);var r=this.nodes.map((function(n,r){var o=n.hasChildren;return e("cascader-node",Zu()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+r,"aria-haspopup":o,"aria-owns":o?t:null}},i]))}));return[].concat(r,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,i={nativeOn:{}};return this.panel.isHoverMenu&&(i.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",Zu()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},i]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},Cv=Ev,xv=s(Cv,yv,bv,!1,null,null,null);xv.options.__file="packages/cascader-panel/src/cascader-menu.vue";var wv=xv.exports,Tv=function(){function e(e,t){for(var n=0;n1?t-1:0),i=1;i1?i-1:0),o=1;o0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},Tv(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,i=n.disabled,r=n.checkStrictly;return e[i]||!r&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,i=this.children,r=this.config,o=r.lazy,a=r.leaf;if(o){var s=Object(Tt["isDef"])(e[a])?e[a]:!!t&&!i.length;return this.hasChildren=!s,s}return!n}}]),e}(),Nv=Rv;function Dv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Iv=function e(t,n){return t.reduce((function(t,i){return i.isLeaf?t.push(i):(!n&&t.push(i),t=t.concat(e(i.children,n))),t}),[])},Mv=function(){function e(t,n){Dv(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(_["coerceTruthyValueToArray"])(e),this.nodes=e.map((function(e){return new Nv(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new Nv(e,this.config,t),i=t?t.children:this.nodes;i.push(n)},e.prototype.appendNodes=function(e,t){var n=this;e=Object(_["coerceTruthyValueToArray"])(e),e.forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:Iv(this.nodes,e)},e.prototype.getNodeByValue=function(e){if(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(_["valueEquals"])(t.path,e)||t.value===e}));return t&&t.length?t[0]:null}return null},e}(),kv=Mv,Lv=Object.assign||function(e){for(var t=1;t0){var l=n.store.getNodeByValue(o);l.data[s]||n.lazyLoad(l,(function(){n.handleExpand(l)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(i)};i.lazyLoad(e,r)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){if(!this.$isServer){var e=this.$refs.menu||[];e.forEach((function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),i=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");ni()(n,i)}}))}},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue,n=this.multiple;if(n){var i=this.getFlattedNodes(e);return i.filter((function(e){return e.checked}))}return Object(_["isEmpty"])(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,i=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=i?[]:null}}},jv=zv,Hv=s(jv,cv,uv,!1,null,null,null);Hv.options.__file="packages/cascader-panel/src/cascader-panel.vue";var Wv=Hv.exports;Wv.install=function(e){e.component(Wv.name,Wv)};var Yv,qv,Kv=Wv,Qv={name:"ElAvatar",props:{size:{type:[Number,String],validator:function(e){return"string"===typeof e?["large","medium","small"].includes(e):"number"===typeof e}},shape:{type:String,default:"circle",validator:function(e){return["circle","square"].includes(e)}},icon:String,src:String,alt:String,srcSet:String,error:Function,fit:{type:String,default:"cover"}},data:function(){return{isImageExist:!0}},computed:{avatarClass:function(){var e=this.size,t=this.icon,n=this.shape,i=["el-avatar"];return e&&"string"===typeof e&&i.push("el-avatar--"+e),t&&i.push("el-avatar--icon"),n&&i.push("el-avatar--"+n),i.join(" ")}},methods:{handleError:function(){var e=this.error,t=e?e():void 0;!1!==t&&(this.isImageExist=!1)},renderAvatar:function(){var e=this.$createElement,t=this.icon,n=this.src,i=this.alt,r=this.isImageExist,o=this.srcSet,a=this.fit;return r&&n?e("img",{attrs:{src:n,alt:i,srcSet:o},on:{error:this.handleError},style:{"object-fit":a}}):t?e("i",{class:t}):this.$slots.default}},render:function(){var e=arguments[0],t=this.avatarClass,n=this.size,i="number"===typeof n?{height:n+"px",width:n+"px",lineHeight:n+"px"}:{};return e("span",{class:t,style:i},[this.renderAvatar()])}},Xv=Qv,Zv=s(Xv,Yv,qv,!1,null,null,null);Zv.options.__file="packages/avatar/src/main.vue";var Jv=Zv.exports;Jv.install=function(e){e.component(Jv.name,Jv)};var e_=Jv,t_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-drawer-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-drawer__wrapper",attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-drawer__container",class:e.visible&&"el-drawer__open",attrs:{role:"document",tabindex:"-1"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{ref:"drawer",staticClass:"el-drawer",class:[e.direction,e.customClass],style:e.isHorizontal?"width: "+e.size:"height: "+e.size,attrs:{"aria-modal":"true","aria-labelledby":"el-drawer__title","aria-label":e.title,role:"dialog",tabindex:"-1"}},[e.withHeader?n("header",{staticClass:"el-drawer__header",attrs:{id:"el-drawer__title"}},[e._t("title",[n("span",{attrs:{role:"heading",title:e.title}},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-drawer__close-btn",attrs:{"aria-label":"close "+(e.title||"drawer"),type:"button"},on:{click:e.closeDrawer}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2):e._e(),e.rendered?n("section",{staticClass:"el-drawer__body"},[e._t("default")],2):e._e()])])])])},n_=[];t_._withStripped=!0;var i_={name:"ElDrawer",mixins:[x.a,O.a],props:{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Function},customClass:{type:String,default:""},closeOnPressEscape:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},direction:{type:String,default:"rtl",validator:function(e){return-1!==["ltr","rtl","ttb","btt"].indexOf(e)}},modalAppendToBody:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},size:{type:String,default:"30%"},title:{type:String,default:""},visible:{type:Boolean},wrapperClosable:{type:Boolean,default:!0},withHeader:{type:Boolean,default:!0}},computed:{isHorizontal:function(){return"rtl"===this.direction||"ltr"===this.direction}},data:function(){return{closed:!1,prevActiveElement:null}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.appendToBody&&document.body.appendChild(this.$el),this.prevActiveElement=document.activeElement):(this.closed||this.$emit("close"),this.$nextTick((function(){t.prevActiveElement&&t.prevActiveElement.focus()})))}},methods:{afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1),this.closed=!0)},handleWrapperClick:function(){this.wrapperClosable&&this.closeDrawer()},closeDrawer:function(){"function"===typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},handleClose:function(){this.closeDrawer()}},mounted:function(){this.visible&&(this.rendered=!0,this.open())},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},r_=i_,o_=s(r_,t_,n_,!1,null,null,null);o_.options.__file="packages/drawer/src/main.vue";var a_=o_.exports;a_.install=function(e){e.component(a_.name,a_)};var s_=a_,l_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-popover",e._b({attrs:{trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},"el-popover",e.$attrs,!1),[n("div",{staticClass:"el-popconfirm"},[n("p",{staticClass:"el-popconfirm__main"},[e.hideIcon?e._e():n("i",{staticClass:"el-popconfirm__icon",class:e.icon,style:{color:e.iconColor}}),e._v("\n "+e._s(e.title)+"\n ")]),n("div",{staticClass:"el-popconfirm__action"},[n("el-button",{attrs:{size:"mini",type:e.cancelButtonType},on:{click:e.cancel}},[e._v("\n "+e._s(e.displayCancelButtonText)+"\n ")]),n("el-button",{attrs:{size:"mini",type:e.confirmButtonType},on:{click:e.confirm}},[e._v("\n "+e._s(e.displayConfirmButtonText)+"\n ")])],1)]),e._t("reference",null,{slot:"reference"})],2)},c_=[];l_._withStripped=!0;var u_=n(44),d_=n.n(u_),h_={name:"ElPopconfirm",props:{title:{type:String},confirmButtonText:{type:String},cancelButtonText:{type:String},confirmButtonType:{type:String,default:"primary"},cancelButtonType:{type:String,default:"text"},icon:{type:String,default:"el-icon-question"},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1}},components:{ElPopover:d_.a,ElButton:ae.a},data:function(){return{visible:!1}},computed:{displayConfirmButtonText:function(){return this.confirmButtonText||Object(fs["t"])("el.popconfirm.confirmButtonText")},displayCancelButtonText:function(){return this.cancelButtonText||Object(fs["t"])("el.popconfirm.cancelButtonText")}},methods:{confirm:function(){this.visible=!1,this.$emit("confirm")},cancel:function(){this.visible=!1,this.$emit("cancel")}}},p_=h_,f_=s(p_,l_,c_,!1,null,null,null);f_.options.__file="packages/popconfirm/src/main.vue";var g_=f_.exports;g_.install=function(e){e.component(g_.name,g_)};var m_=g_,v_=[b,M,re,pe,be,Ae,He,et,ct,mt,Dt,$t,Wt,en,ln,gn,En,Rn,Pn,li,ci,mi,Ci,Ni,Yr,to,Ra,Ga,es,cs,ds,zs,Qs,il,_l,$l,ql,Jl,Oc,Pc,hu,Fu,$u,Uu,Sd,Od,Ld,nh,ch,vh,xh,Dh,Vh,Hh,Jh,ap,pp,Op,Rf,Uf,Kf,ng,cg,mg,wg,Ng,Fg,jg,Xg,mm,km,zm,lv,Kv,e_,s_,m_,Ye.a],__=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};gs.a.use(t.locale),gs.a.i18n(t.i18n),v_.forEach((function(t){e.component(t.name,t)})),e.use(tv),e.use(Nu.directive),e.prototype.$ELEMENT={size:t.size||"",zIndex:t.zIndex||2e3},e.prototype.$loading=Nu.service,e.prototype.$msgbox=Ps,e.prototype.$alert=Ps.alert,e.prototype.$confirm=Ps.confirm,e.prototype.$prompt=Ps.prompt,e.prototype.$notify=Qc,e.prototype.$message=Kd};"undefined"!==typeof window&&window.Vue&&__(window.Vue);t["default"]={version:"2.15.0",locale:gs.a.use,i18n:gs.a.i18n,install:__,CollapseTransition:Ye.a,Loading:Nu,Pagination:b,Dialog:M,Autocomplete:re,Dropdown:pe,DropdownMenu:be,DropdownItem:Ae,Menu:He,Submenu:et,MenuItem:ct,MenuItemGroup:mt,Input:Dt,InputNumber:$t,Radio:Wt,RadioGroup:en,RadioButton:ln,Checkbox:gn,CheckboxButton:En,CheckboxGroup:Rn,Switch:Pn,Select:li,Option:ci,OptionGroup:mi,Button:Ci,ButtonGroup:Ni,Table:Yr,TableColumn:to,DatePicker:Ra,TimeSelect:Ga,TimePicker:es,Popover:cs,Tooltip:ds,MessageBox:Ps,Breadcrumb:zs,BreadcrumbItem:Qs,Form:il,FormItem:_l,Tabs:$l,TabPane:ql,Tag:Jl,Tree:Oc,Alert:Pc,Notification:Qc,Slider:hu,Icon:Fu,Row:$u,Col:Uu,Upload:Sd,Progress:Od,Spinner:Ld,Message:Kd,Badge:nh,Card:ch,Rate:vh,Steps:xh,Step:Dh,Carousel:Vh,Scrollbar:Hh,CarouselItem:Jh,Collapse:ap,CollapseItem:pp,Cascader:Op,ColorPicker:Rf,Transfer:Uf,Container:Kf,Header:ng,Aside:cg,Main:mg,Footer:wg,Timeline:Ng,TimelineItem:Fg,Link:jg,Divider:Xg,Image:mm,Calendar:km,Backtop:zm,InfiniteScroll:tv,PageHeader:lv,CascaderPanel:Kv,Avatar:e_,Drawer:s_,Popconfirm:m_}}])["default"]},"5ce2":function(e,t,n){n("3970"),n("480e")},"5dfb":function(e,t){e.exports=function(e){var t={keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"};return{aliases:["k","kdb"],keywords:t,lexemes:/(`?)[A-Za-z0-9_]+\b/,contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}},"5e68":function(e,t,n){var i=n("6d8b"),r=n("2cf4"),o=r.devicePixelRatio,a=n("2b61"),s=n("dc2f");function l(){return!1}function c(e,t,n){var r=i.createCanvas(),o=t.getWidth(),a=t.getHeight(),s=r.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=o+"px",s.height=a+"px",r.setAttribute("data-zr-dom-id",e)),r.width=o*n,r.height=a*n,r}var u=function(e,t,n){var r;n=n||o,"string"===typeof e?r=c(e,t,n):i.isObject(e)&&(r=e,e=r.id),this.id=e,this.dom=r;var a=r.style;a&&(r.onselectstart=l,a["-webkit-user-select"]="none",a["user-select"]="none",a["-webkit-touch-callout"]="none",a["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",a["padding"]=0,a["margin"]=0,a["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=t,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};u.prototype={constructor:u,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var e=this.dpr;this.domBack=c("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},resize:function(e,t){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=e+"px",r.height=t+"px"),i.width=e*n,i.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},clear:function(e,t){var n,i=this.dom,r=this.ctx,o=i.width,l=i.height,c=(t=t||this.clearColor,this.motionBlur&&!e),u=this.lastFrameAlpha,d=this.dpr;(c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/d,l/d)),r.clearRect(0,0,o,l),t&&"transparent"!==t)&&(t.colorStops?(n=t.__canvasGradient||a.getGradient(r,t,{x:0,y:0,width:o,height:l}),t.__canvasGradient=n):t.image&&(n=s.prototype.getCanvasPattern.call(t,r)),r.save(),r.fillStyle=n||t,r.fillRect(0,0,o,l),r.restore());if(c){var h=this.domBack;r.save(),r.globalAlpha=u,r.drawImage(h,0,0,o,l),r.restore()}}};var d=u;e.exports=d},"5e76":function(e,t,n){var i=n("d51b"),r=new i(50);function o(e){if("string"===typeof e){var t=r.get(e);return t&&t.image}return e}function a(e,t,n,i,o){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var a=r.get(e),c={hostEl:n,cb:i,cbPayload:o};return a?(t=a.image,!l(t)&&a.pending.push(c)):(t=new Image,t.onload=t.onerror=s,r.put(e,t.__cachedImgObj={image:t,pending:[c]}),t.src=t.__zrImageSrc=e),t}return e}return t}function s(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=0;a--)null==n[a]&&(delete r[t[a]],t.pop())}function f(e,t){var n=e.visual,r=[];i.isObject(n)?s(n,(function(e){r.push(e)})):null!=n&&r.push(n);var o={color:1,symbol:1};t||1!==r.length||o.hasOwnProperty(e.type)||(r[1]=r[0]),E(e,r)}function g(e){return{applyVisual:function(t,n,i){t=this.mapValueToVisual(t),i("color",e(n("color"),t))},_doMap:b([0,1])}}function m(e){var t=this.option.visual;return t[Math.round(a(e,[0,1],[0,t.length-1],!0))]||{}}function v(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function _(e){var t=this.option.visual;return t[this.option.loop&&e!==c?e%t.length:e]}function y(){return this.option.visual[0]}function b(e){return{linear:function(t){return a(t,e,this.option.visual,!0)},category:_,piecewise:function(t,n){var i=S.call(this,n);return null==i&&(i=a(t,e,this.option.visual,!0)),i},fixed:y}}function S(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=u.findPieceIndex(e,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function E(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=i.map(t,(function(e){return r.parse(e)}))),t}var C={linear:function(e){return a(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=u.findPieceIndex(e,t,!0);if(null!=n)return a(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?c:t},fixed:i.noop};function x(e,t,n){return e?t<=n:t=0;if(r){var o="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];o&&d(e,o,t,n)}else d(e,t,t,n),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3;var a=t.button;return null==t.which&&void 0!==a&&c.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function g(e,t,n,i){l?e.addEventListener(t,n,i):e.attachEvent("on"+t,n)}function m(e,t,n,i){l?e.removeEventListener(t,n,i):e.detachEvent("on"+t,n)}var v=l?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};function _(e){return 2===e.which||3===e.which}function y(e){return e.which>1}t.clientToLocal=d,t.getNativeEvent=p,t.normalizeEvent=f,t.addEventListener=g,t.removeEventListener=m,t.stop=v,t.isMiddleOrRightButtonOnMouseUpDown=_,t.notLeftMouse=y},"60ae":function(e,t,n){var i,r,o=n("da84"),a=n("b39a"),s=o.process,l=s&&s.versions,c=l&&l.v8;c?(i=c.split("."),r=i[0]+i[1]):a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=i[1]))),e.exports=r&&+r},"60d7":function(e,t,n){var i=n("2306"),r=n("e887"),o=.3,a=r.extend({type:"parallel",init:function(){this._dataGroup=new i.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(e,t,n,r){var o=this._dataGroup,a=e.getData(),h=this._data,p=e.coordinateSystem,f=p.dimensions,g=u(e);function m(e){var t=c(a,o,e,f,p);d(t,a,e,g)}function v(t,n){var o=h.getItemGraphicEl(n),s=l(a,t,f,p);a.setItemGraphicEl(t,o);var c=r&&!1===r.animation?null:e;i.updateProps(o,{shape:{points:s}},c,t),d(o,a,t,g)}function _(e){var t=h.getItemGraphicEl(e);o.remove(t)}if(a.diff(h).add(m).update(v).remove(_).execute(),!this._initialized){this._initialized=!0;var y=s(p,e,(function(){setTimeout((function(){o.removeClipPath()}))}));o.setClipPath(y)}this._data=a},incrementalPrepareRender:function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(e,t,n){for(var i=t.getData(),r=t.coordinateSystem,o=r.dimensions,a=u(t),s=e.start;su){var p,f=c(arguments[u++]),g=d?o(f).concat(d(f)):o(f),m=g.length,v=0;while(m>v)p=g[v++],i&&!h.call(f,p)||(n[p]=f[p])}return n}:u},"60e3":function(e,t,n){var i=n("6d8b"),r={get:function(e,t,n){var r=i.clone((o[e]||{})[t]);return n&&i.isArray(r)?r[r.length-1]:r}},o={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},a=r;e.exports=a},6113:function(e,t){e.exports=function(e){var t="[a-zA-Z-][a-zA-Z0-9_-]*",n={className:"variable",begin:"(\\$"+t+")\\b"},i={className:"number",begin:"#[0-9A-Fa-f]+"};e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE;return{case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"\\#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},{className:"selector-attr",begin:"\\[",end:"\\]",illegal:"$"},{className:"selector-tag",begin:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",relevance:0},{begin:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{begin:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},n,{className:"attribute",begin:"\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",illegal:"[^\\s]"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[n,i,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"meta",begin:"!important"}]},{begin:"@",end:"[{;]",keywords:"mixin include extend for if else each while charset import debug media page content font-face namespace warn",contains:[n,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,i,e.CSS_NUMBER_MODE,{begin:"\\s[A-Za-z0-9_.-]+",relevance:0}]}]}}},"612a":function(e,t){e.exports=function(e){var t={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4dPromise"},n="[a-zA-Z_][a-zA-Z0-9\\._]*",i={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},r={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},o={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:n,returnEnd:!1}},a={begin:n+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:n,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},s={begin:n+"\\s*{",end:"{",returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:n})]};return{aliases:["qt"],case_insensitive:!1,keywords:t,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},r,i,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},o,a,s],illegal:/#/}}},6167:function(e,t,n){"use strict";var i,r;"function"===typeof Symbol&&Symbol.iterator;(function(o,a){i=a,r="function"===typeof i?i.call(t,n,t,e):i,void 0===r||(e.exports=r)})(0,(function(){var e=window,t={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function n(e,n,i){this._reference=e.jquery?e[0]:e,this.state={};var r="undefined"===typeof n||null===n,o=n&&"[object Object]"===Object.prototype.toString.call(n);return this._popper=r||o?this.parse(o?n:{}):n.jquery?n[0]:n,this._options=Object.assign({},t,i),this._options.modifiers=this._options.modifiers.map(function(e){if(-1===this._options.modifiersIgnored.indexOf(e))return"applyStyle"===e&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[e]||e}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),d(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function i(t){var n=t.style.display,i=t.style.visibility;t.style.display="block",t.style.visibility="hidden";t.offsetWidth;var r=e.getComputedStyle(t),o=parseFloat(r.marginTop)+parseFloat(r.marginBottom),a=parseFloat(r.marginLeft)+parseFloat(r.marginRight),s={width:t.offsetWidth+a,height:t.offsetHeight+o};return t.style.display=n,t.style.visibility=i,s}function r(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function o(e){var t=Object.assign({},e);return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function a(e,t){var n,i=0;for(n in e){if(e[n]===t)return i;i++}return null}function s(t,n){var i=e.getComputedStyle(t,null);return i[n]}function l(t){var n=t.offsetParent;return n!==e.document.body&&n?n:e.document.documentElement}function c(t){var n=t.parentNode;return n?n===e.document?e.document.body.scrollTop||e.document.body.scrollLeft?e.document.body:e.document.documentElement:-1!==["scroll","auto"].indexOf(s(n,"overflow"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-x"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-y"))?n:c(t.parentNode):t}function u(t){return t!==e.document.body&&("fixed"===s(t,"position")||(t.parentNode?u(t.parentNode):t))}function d(e,t){function n(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}Object.keys(t).forEach((function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&n(t[i])&&(r="px"),e.style[i]=t[i]+r}))}function h(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function p(e){var t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function f(e){var t=e.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf("MSIE"),i=n&&"HTML"===e.tagName?-e.scrollTop:t.top;return{left:t.left,top:i,right:t.right,bottom:t.bottom,width:t.right-t.left,height:t.bottom-i}}function g(e,t,n){var i=f(e),r=f(t);if(n){var o=c(t);r.top+=o.scrollTop,r.bottom+=o.scrollTop,r.left+=o.scrollLeft,r.right+=o.scrollLeft}var a={top:i.top-r.top,left:i.left-r.left,bottom:i.top-r.top+i.height,right:i.left-r.left+i.width,width:i.width,height:i.height};return a}function m(t){for(var n=["","ms","webkit","moz","o"],i=0;i1&&console.warn("WARNING: the given `parent` query("+t.parent+") matched more than one element, the first one will be used"),0===a.length)throw"ERROR: the given `parent` doesn't exists!";a=a[0]}return a.length>1&&a instanceof Element===!1&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),a=a[0]),a.appendChild(r),r;function s(e,t){t.forEach((function(t){e.classList.add(t)}))}function l(e,t){t.forEach((function(t){e.setAttribute(t.split(":")[0],t.split(":")[1]||"")}))}},n.prototype._getPosition=function(e,t){var n=l(t);if(this._options.forceAbsolute)return"absolute";var i=u(t,n);return i?"fixed":"absolute"},n.prototype._getOffsets=function(e,t,n){n=n.split("-")[0];var r={};r.position=this.state.position;var o="fixed"===r.position,a=g(t,l(e),o),s=i(e);return-1!==["right","left"].indexOf(n)?(r.top=a.top+a.height/2-s.height/2,r.left="left"===n?a.left-s.width:a.right):(r.left=a.left+a.width/2-s.width/2,r.top="top"===n?a.top-s.height:a.bottom),r.width=s.width,r.height=s.height,{popper:r,reference:a}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),e.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var t=c(this._reference);t!==e.document.body&&t!==e.document.documentElement||(t=e),t.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=t}},n.prototype._removeEventListeners=function(){e.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(t,n,i){var r,o,a={};if("window"===i){var s=e.document.body,u=e.document.documentElement;o=Math.max(s.scrollHeight,s.offsetHeight,u.clientHeight,u.scrollHeight,u.offsetHeight),r=Math.max(s.scrollWidth,s.offsetWidth,u.clientWidth,u.scrollWidth,u.offsetWidth),a={top:0,right:r,bottom:o,left:0}}else if("viewport"===i){var d=l(this._popper),h=c(this._popper),f=p(d),g=function(e){return e==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},m=function(e){return e==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):e.scrollLeft},v="fixed"===t.offsets.popper.position?0:g(h),_="fixed"===t.offsets.popper.position?0:m(h);a={top:0-(f.top-v),right:e.document.documentElement.clientWidth-(f.left-_),bottom:e.document.documentElement.clientHeight-(f.top-v),left:0-(f.left-_)}}else a=l(this._popper)===i?{top:0,left:0,right:i.clientWidth,bottom:i.clientHeight}:p(i);return a.left+=n,a.right-=n,a.top=a.top+n,a.bottom=a.bottom-n,a},n.prototype.runModifiers=function(e,t,n){var i=t.slice();return void 0!==n&&(i=this._options.modifiers.slice(0,a(this._options.modifiers,n))),i.forEach(function(t){h(t)&&(e=t.call(this,e))}.bind(this)),e},n.prototype.isModifierRequired=function(e,t){var n=a(this._options.modifiers,e);return!!this._options.modifiers.slice(0,n).filter((function(e){return e===t})).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(e){var t,n={position:e.offsets.popper.position},i=Math.round(e.offsets.popper.left),r=Math.round(e.offsets.popper.top);return this._options.gpuAcceleration&&(t=m("transform"))?(n[t]="translate3d("+i+"px, "+r+"px, 0)",n.top=0,n.left=0):(n.left=i,n.top=r),Object.assign(n,e.styles),d(this._popper,n),this._popper.setAttribute("x-placement",e.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&e.offsets.arrow&&d(e.arrowElement,e.offsets.arrow),e},n.prototype.modifiers.shift=function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets.reference,a=o(e.offsets.popper),s={y:{start:{top:r.top},end:{top:r.top+r.height-a.height}},x:{start:{left:r.left},end:{left:r.left+r.width-a.width}}},l=-1!==["bottom","top"].indexOf(n)?"x":"y";e.offsets.popper=Object.assign(a,s[l][i])}return e},n.prototype.modifiers.preventOverflow=function(e){var t=this._options.preventOverflowOrder,n=o(e.offsets.popper),i={left:function(){var t=n.left;return n.lefte.boundaries.right&&(t=Math.min(n.left,e.boundaries.right-n.width)),{left:t}},top:function(){var t=n.top;return n.tope.boundaries.bottom&&(t=Math.min(n.top,e.boundaries.bottom-n.height)),{top:t}}};return t.forEach((function(t){e.offsets.popper=Object.assign(n,i[t]())})),e},n.prototype.modifiers.keepTogether=function(e){var t=o(e.offsets.popper),n=e.offsets.reference,i=Math.floor;return t.righti(n.right)&&(e.offsets.popper.left=i(n.right)),t.bottomi(n.bottom)&&(e.offsets.popper.top=i(n.bottom)),e},n.prototype.modifiers.flip=function(e){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),e;if(e.flipped&&e.placement===e._originalPlacement)return e;var t=e.placement.split("-")[0],n=r(t),i=e.placement.split("-")[1]||"",a=[];return a="flip"===this._options.flipBehavior?[t,n]:this._options.flipBehavior,a.forEach(function(s,l){if(t===s&&a.length!==l+1){t=e.placement.split("-")[0],n=r(t);var c=o(e.offsets.popper),u=-1!==["right","bottom"].indexOf(t);(u&&Math.floor(e.offsets.reference[t])>Math.floor(c[n])||!u&&Math.floor(e.offsets.reference[t])s[p]&&(e.offsets.popper[d]+=l[d]+f-s[p]);var g=l[d]+(n||l[u]/2-f/2),m=g-s[d];return m=Math.max(Math.min(s[u]-f-8,m),8),r[d]=m,r[h]="",e.offsets.arrow=r,e.arrowElement=t,e},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n65535?y:S}function C(e){var t=e.constructor;return t===Array?e.slice():new t(e)}var x=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],w=["_extent","_approximateExtent","_rawExtent"];function T(e,t){r.each(x.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,r.each(w,(function(n){e[n]=r.clone(t[n])})),e._calculationInfo=r.extend(t._calculationInfo)}var A=function(e,t){e=e||["x","y"];for(var n={},i=[],o={},a=0;a=0?this._indices[e]:-1}function k(e,t){var n=e._idList[t];return null==n&&(n=D(e,e._idDimIdx,t)),null==n&&(n=v+t),n}function L(e){return r.isArray(e)||(e=[e]),e}function P(e,t){var n=e.dimensions,i=new A(r.map(n,e.getDimensionInfo,e),e.hostModel);T(i,e);for(var o=i._storage={},a=e._storage,s=0;s=0?(o[l]=F(a[l]),i._rawExtent[l]=B(),i._extent[l]=null):o[l]=a[l])}return i}function F(e){for(var t=new Array(e.length),n=0;ny[1]&&(y[1]=_)}t&&(this._nameList[p]=t[f])}this._rawCount=this._count=l,this._extent={},N(this)},O._initDataFromProvider=function(e,t){if(!(e>=t)){for(var n,i=this._chunkSize,r=this._rawData,o=this._storage,a=this.dimensions,s=a.length,l=this._dimensionInfos,c=this._nameList,u=this._idList,d=this._rawExtent,h=this._nameRepeatCount={},p=this._chunkCount,f=0;fx[1]&&(x[1]=C)}if(!r.pure){var w=c[_];if(v&&null==w)if(null!=v.name)c[_]=w=v.name;else if(null!=n){var T=a[n],A=o[T][y];if(A){w=A[b];var O=l[T].ordinalMeta;O&&O.categories.length&&(w=O.categories[w])}}var D=null==v?null:v.id;null==D&&null!=w&&(h[w]=h[w]||0,D=w,h[w]>0&&(D+="__ec__"+h[w]),h[w]++),null!=D&&(u[_]=D)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent={},N(this)}},O.count=function(){return this._count},O.getIndices=function(){var e=this._indices;if(e){var t=e.constructor,n=this._count;if(t===Array){r=new t(n);for(var i=0;i=0&&t=0&&ts&&(s=c)}return i=[a,s],this._extent[e]=i,i},O.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(e)},O.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},O.getCalculationInfo=function(e){return this._calculationInfo[e]},O.setCalculationInfo=function(e,t){f(e)?r.extend(this._calculationInfo,e):this._calculationInfo[e]=t},O.getSum=function(e){var t=this._storage[e],n=0;if(t)for(var i=0,r=this.count();i=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&ne))return o;r=o-1}}return-1},O.indicesOfNearest=function(e,t,n){var i=this._storage,r=i[e],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,c=0,u=this.count();c=0&&s<0)&&(a=h,s=d,l=0),d===s&&(o[l++]=c))}return o.length=l,o},O.getRawIndex=I,O.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],n=0;n=c&&_<=u||isNaN(_))&&(a[s++]=h),h++}d=!0}else if(2===i){p=this._storage[l];var y=this._storage[t[1]],b=e[t[1]][0],S=e[t[1]][1];for(f=0;f=c&&_<=u||isNaN(_))&&(x>=b&&x<=S||isNaN(x))&&(a[s++]=h),h++}}d=!0}}if(!d)if(1===i)for(v=0;v=c&&_<=u||isNaN(_))&&(a[s++]=w)}else for(v=0;ve[A][1])&&(T=!1)}T&&(a[s++]=this.getRawIndex(v))}return sE[1]&&(E[1]=S)}}}return o},O.downSample=function(e,t,n,i){for(var r=P(this,[e]),o=r._storage,a=[],s=Math.floor(1/t),l=o[e],c=this.count(),u=this._chunkSize,d=r._rawExtent[e],h=new(E(this))(c),p=0,f=0;fc-f&&(s=c-f,a.length=s);for(var g=0;gd[1]&&(d[1]=y),h[p++]=b}return r._count=p,r._indices=h,r.getRawIndex=M,r},O.getItemModel=function(e){var t=this.hostModel;return new o(this.getRawDataItem(e),t,t&&t.ecModel)},O.diff=function(e){var t=this;return new a(e?e.getIndices():[],this.getIndices(),(function(t){return k(e,t)}),(function(e){return k(t,e)}))},O.getVisual=function(e){var t=this._visual;return t&&t[e]},O.setVisual=function(e,t){if(f(e))for(var n in e)e.hasOwnProperty(n)&&this.setVisual(n,e[n]);else this._visual=this._visual||{},this._visual[e]=t},O.setLayout=function(e,t){if(f(e))for(var n in e)e.hasOwnProperty(n)&&this.setLayout(n,e[n]);else this._layout[e]=t},O.getLayout=function(e){return this._layout[e]},O.getItemLayout=function(e){return this._itemLayouts[e]},O.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?r.extend(this._itemLayouts[e]||{},t):t},O.clearItemLayouts=function(){this._itemLayouts.length=0},O.getItemVisual=function(e,t,n){var i=this._itemVisuals[e],r=i&&i[t];return null!=r||n?r:this.getVisual(t)},O.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{},r=this.hasItemVisual;if(this._itemVisuals[e]=i,f(t))for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o],r[o]=!0);else i[t]=n,r[t]=!0},O.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var $=function(e){e.seriesIndex=this.seriesIndex,e.dataIndex=this.dataIndex,e.dataType=this.dataType};O.setItemGraphicEl=function(e,t){var n=this.hostModel;t&&(t.dataIndex=e,t.dataType=this.dataType,t.seriesIndex=n&&n.seriesIndex,"group"===t.type&&t.traverse($,t)),this._graphicEls[e]=t},O.getItemGraphicEl=function(e){return this._graphicEls[e]},O.eachItemGraphicEl=function(e,t){r.each(this._graphicEls,(function(n,i){n&&e&&e.call(t,n,i)}))},O.cloneShallow=function(e){if(!e){var t=r.map(this.dimensions,this.getDimensionInfo,this);e=new A(t,this.hostModel)}if(e._storage=this._storage,T(e,this),this._indices){var n=this._indices.constructor;e._indices=new n(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?M:I,e},O.wrapMethod=function(e,t){var n=this[e];"function"===typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(r.slice(arguments)))})},O.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],O.CHANGABLE_METHODS=["filterSelf","selectRange"];var V=A;e.exports=V},"620b":function(e,t,n){var i=n("401b"),r=i.distance;function o(e,t,n,i,r,o,a){var s=.5*(n-e),l=.5*(i-t);return(2*(t-n)+s+l)*a+(-3*(t-n)-2*s-l)*o+s*r+t}function a(e,t){for(var n=e.length,i=[],a=0,s=1;sn-2?n-1:p+1],d=e[p>n-3?n-1:p+2]);var m=f*f,v=f*m;i.push([o(c[0],g[0],u[0],d[0],f,m,v),o(c[1],g[1],u[1],d[1],f,m,v)])}return i}e.exports=a},6220:function(e,t,n){var i=n("fc48");e.exports=Array.isArray||function(e){return"Array"==i(e)}},"625e":function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),o=".",a="___EC__COMPONENT__CONTAINER___";function s(e){var t={main:"",sub:""};return e&&(e=e.split(o),t.main=e[0]||"",t.sub=e[1]||""),t}function l(e){r.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function c(e,t){e.$constructor=e,e.extend=function(e){var t=this,n=function(){e.$constructor?e.$constructor.apply(this,arguments):t.apply(this,arguments)};return r.extend(n.prototype,e),n.extend=this.extend,n.superCall=h,n.superApply=p,r.inherits(n,this),n.superClass=t,n}}var u=0;function d(e){var t=["__\0is_clz",u++,Math.random().toFixed(3)].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function h(e,t){var n=r.slice(arguments,2);return this.superClass.prototype[t].apply(e,n)}function p(e,t,n){return this.superClass.prototype[t].apply(e,n)}function f(e,t){t=t||{};var n={};function i(e){var t=n[e.main];return t&&t[a]||(t=n[e.main]={},t[a]=!0),t}if(e.registerClass=function(e,t){if(t)if(l(t),t=s(t),t.sub){if(t.sub!==a){var r=i(t);r[t.sub]=e}}else n[t.main]=e;return e},e.getClass=function(e,t,i){var r=n[e];if(r&&r[a]&&(r=t?r[t]:null),i&&!r)throw new Error(t?"Component "+e+"."+(t||"")+" not exists. Load it first.":e+".type should be specified.");return r},e.getClassesByMainType=function(e){e=s(e);var t=[],i=n[e.main];return i&&i[a]?r.each(i,(function(e,n){n!==a&&t.push(e)})):t.push(i),t},e.hasClass=function(e){return e=s(e),!!n[e.main]},e.getAllClassMainTypes=function(){var e=[];return r.each(n,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){e=s(e);var t=n[e.main];return t&&t[a]},e.parseClassType=s,t.registerWhenExtend){var o=e.extend;o&&(e.extend=function(t){var n=o.call(this,t);return e.registerClass(n,t.type)})}return e}function g(e,t){}t.parseClassType=s,t.enableClassExtend=c,t.enableClassCheck=d,t.enableClassManagement=f,t.setReadOnly=g},"627c":function(e,t,n){var i=n("6d8b"),r=n("3eba"),o=n("2306"),a=n("f934"),s=a.getLayoutRect,l=n("eda2"),c=l.windowOpen;r.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),r.extendComponentView({type:"title",render:function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,a=e.getModel("textStyle"),l=e.getModel("subtextStyle"),u=e.get("textAlign"),d=i.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),h=new o.Text({style:o.setTextStyle({},a,{text:e.get("text"),textFill:a.getTextColor()},{disableBox:!0}),z2:10}),p=h.getBoundingRect(),f=e.get("subtext"),g=new o.Text({style:o.setTextStyle({},l,{text:f,textFill:l.getTextColor(),y:p.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),m=e.get("link"),v=e.get("sublink"),_=e.get("triggerEvent",!0);h.silent=!m&&!_,g.silent=!v&&!_,m&&h.on("click",(function(){c(m,"_"+e.get("target"))})),v&&g.on("click",(function(){c(v,"_"+e.get("subtarget"))})),h.eventData=g.eventData=_?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(h),f&&r.add(g);var y=r.getBoundingRect(),b=e.getBoxLayoutParams();b.width=y.width,b.height=y.height;var S=s(b,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));u||(u=e.get("left")||e.get("right"),"middle"===u&&(u="center"),"right"===u?S.x+=S.width:"center"===u&&(S.x+=S.width/2)),d||(d=e.get("top")||e.get("bottom"),"center"===d&&(d="middle"),"bottom"===d?S.y+=S.height:"middle"===d&&(S.y+=S.height/2),d=d||"top"),r.attr("position",[S.x,S.y]);var E={textAlign:u,textVerticalAlign:d};h.setStyle(E),g.setStyle(E),y=r.getBoundingRect();var C=S.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var w=new o.Rect({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});r.add(w)}}})},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},6386:function(e,t,n){var i=n("a421"),r=n("6725"),o=n("4508"),a=function(e){return function(t,n,a){var s,l=i(t),c=r(l.length),u=o(a,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"638c":function(e,t,n){var i=n("06fa"),r=n("fc48"),o="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?o.call(e,""):Object(e)}:Object},6428:function(e,t,n){var i=n("b4b0"),r=1/0,o=17976931348623157e292;function a(e){if(!e)return 0===e?e:0;if(e=i(e),e===r||e===-r){var t=e<0?-1:1;return t*o}return e===e?e:0}e.exports=a},6438:function(e,t,n){var i=n("03d6"),r=n("9742").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},6547:function(e,t,n){var i=n("a691"),r=n("1d80"),o=function(e){return function(t,n){var o,a,s=String(r(t)),l=i(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}};e.exports={codeAt:o(!1),charAt:o(!0)}},6566:function(e,t,n){"use strict";var i=n("9bf2").f,r=n("7c73"),o=n("e2cc"),a=n("f8c2"),s=n("19aa"),l=n("2266"),c=n("7dd0"),u=n("2626"),d=n("83ab"),h=n("f183").fastKey,p=n("69f3"),f=p.set,g=p.getterFor;e.exports={getConstructor:function(e,t,n,c){var u=e((function(e,i){s(e,u,t),f(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=i&&l(i,e[c],e,n)})),p=g(t),m=function(e,t,n){var i,r,o=p(e),a=v(e,t);return a?a.value=n:(o.last=a={index:r=h(t,!0),key:t,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=a),i&&(i.next=a),d?o.size++:e.size++,"F"!==r&&(o.index[r]=a)),e},v=function(e,t){var n,i=p(e),r=h(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==t)return n};return o(u.prototype,{clear:function(){var e=this,t=p(e),n=t.index,i=t.first;while(i)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,n=p(t),i=v(t,e);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first==i&&(n.first=r),n.last==i&&(n.last=o),d?n.size--:t.size--}return!!i},forEach:function(e){var t,n=p(this),i=a(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){i(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!v(this,e)}}),o(u.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),d&&i(u.prototype,"size",{get:function(){return p(this).size}}),u},setStrong:function(e,t,n){var i=t+" Iterator",r=g(t),o=g(i);c(e,t,(function(e,t){f(this,{type:i,target:e,state:r(e),kind:t,last:void 0})}),(function(){var e=o(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(t)}}},6569:function(e,t,n){var i=n("6d8b"),r=n("e0d3");function o(e){a(e),s(e)}function a(e){if(!e.parallel){var t=!1;i.each(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function s(e){var t=r.normalizeToArray(e.parallelAxis);i.each(t,(function(t){if(i.isObject(t)){var n=t.parallelIndex||0,o=r.normalizeToArray(e.parallel)[n];o&&o.parallelAxisDefault&&i.merge(t,o.parallelAxisDefault,!1)}}))}e.exports=o},6582:function(e,t,n){var i=n("cccd"),r={seriesType:"lines",plan:i(),reset:function(e){var t=e.coordinateSystem,n=e.get("polyline"),i=e.pipelineContext.large;function r(r,o){var a=[];if(i){var s,l=r.end-r.start;if(n){for(var c=0,u=r.start;u>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[c]+":0",i[1-l]+":auto",r[1-c]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function d(e,t,n){for(var i=n?"invTrans":"trans",r=t[i],a=t.srcCoords,s=!0,l=[],c=[],u=0;u<4;u++){var d=e[u].getBoundingClientRect(),h=2*u,p=d.left,f=d.top;l.push(p,f),s=s&&a&&p===a[h]&&f===a[h+1],c.push(e[u].offsetLeft,e[u].offsetTop)}return s&&r?r:(t.srcCoords=l,t[i]=n?o(c,l):o(l,c))}function h(e){return"CANVAS"===e.nodeName.toUpperCase()}t.transformLocalCoord=l,t.transformCoordWithViewport=c,t.isCanvasEl=h},"65f0":function(e,t,n){var i=n("861d"),r=n("e8b5"),o=n("b622"),a=o("species");e.exports=function(e,t){var n;return r(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!r(n.prototype)?i(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},6679:function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),o=n("cd33"),a=r.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(e,t,n,i){this.axisPointerClass&&o.fixValue(e),a.superApply(this,"render",arguments),s(this,e,t,n,i,!0)},updateAxisPointer:function(e,t,n,i,r){s(this,e,t,n,i,!1)},remove:function(e,t){var n=this._axisPointer;n&&n.remove(t),a.superApply(this,"remove",arguments)},dispose:function(e,t){l(this,t),a.superApply(this,"dispose",arguments)}});function s(e,t,n,i,r,s){var c=a.getAxisPointerClass(e.axisPointerClass);if(c){var u=o.getAxisPointerModel(t);u?(e._axisPointer||(e._axisPointer=new c)).render(t,u,i,s):l(e,i)}}function l(e,t,n){var i=e._axisPointer;i&&i.dispose(t,n),e._axisPointer=null}var c=[];a.registerAxisPointerClass=function(e,t){c[e]=t},a.getAxisPointerClass=function(e){return e&&c[e]};var u=a;e.exports=u},"66a4":function(e,t,n){var i=n("6d8b");function r(e){var t=e&&e.timeline;i.isArray(t)||(t=t?[t]:[]),i.each(t,(function(e){e&&o(e)}))}function o(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),a(e),s(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});s(r,"position")||(r.position=e.controlPosition),"none"!==r.position||s(r,"show")||(r.show=!1,delete r.position),delete e.controlPosition}i.each(e.data||[],(function(e){i.isObject(e)&&!i.isArray(e)&&(!s(e,"value")&&s(e,"name")&&(e.value=e.name),a(e))}))}function a(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},o=r.normal||(r.normal={}),a={normal:1,emphasis:1};i.each(r,(function(e,t){a[t]||s(o,t)||(o[t]=e)})),n.label&&!s(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function s(e,t){return e.hasOwnProperty(t)}e.exports=r},"66ba":function(e,t){e.exports=function(e){return{subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}},"66fc":function(e,t,n){var i=n("6d8b"),r=n("84ce"),o=function(e,t,n,i,o){r.call(this,e,t,n),this.type=i||"value",this.position=o||"bottom",this.orient=null};o.prototype={constructor:o,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},pointToData:function(e,t){return this.coordinateSystem.pointToData(e,t)[0]},toGlobalCoord:null,toLocalCoord:null},i.inherits(o,r);var a=o;e.exports=a},6725:function(e,t,n){var i=n("1561"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},6747:function(e,t){var n=Array.isArray;e.exports=n},"675a":function(e,t){function n(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getGraph(),r=i.data,o=n.mapArray(n.getName);r.filterSelf((function(e){var n=r.getItemModel(e),i=n.getShallow("category");if(null!=i){"number"===typeof i&&(i=o[i]);for(var a=0;a0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function R(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function N(e,t,n,i,r,s,c,u){var d=t.getItemVisual(n,"color"),h=t.getItemVisual(n,"opacity"),p=t.getVisual("borderColor"),f=i.getModel("itemStyle"),g=i.getModel("emphasis.itemStyle").getBarItemStyle();u||e.setShape("r",f.get("barBorderRadius")||0),e.useStyle(o.defaults({stroke:R(r)?"none":p,fill:R(r)?"none":d,opacity:h},f.getBarItemStyle()));var m=i.getShallow("cursor");m&&e.attr("cursor",m);var v=c?r.height>0?"bottom":"top":r.width>0?"left":"right";u||l(e.style,g,i,d,s,n,v),R(r)&&(g.fill=g.stroke="none"),a.setHoverStyle(e,g)}function D(e,t){var n=e.get(_)||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),r=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,r)}var I=d.extend({type:"largeBar",shape:{points:[]},buildPath:function(e,t){for(var n=t.points,i=this.__startPoint,r=this.__baseDimIdx,o=0;o=0?n:null}),30,!1);function L(e,t,n){var i=e.__baseDimIdx,r=1-i,o=e.shape.points,a=e.__largeDataIndices,s=Math.abs(e.__barWidth/2),l=e.__startPoint[r];y[0]=t,y[1]=n;for(var c=y[i],u=y[1-i],d=c-s,h=c+s,p=0,f=o.length/2;p=d&&m<=h&&(l<=v?u>=l&&u<=v:u>=v&&u<=l))return a[p]}return-1}function P(e,t,n){var i=n.getVisual("borderColor")||n.getVisual("color"),r=t.getModel("itemStyle").getItemStyle(["color","borderColor"]);e.useStyle(r),e.style.fill=null,e.style.stroke=i,e.style.lineWidth=n.getLayout("barWidth")}function F(e,t,n){var i=t.get("borderColor")||t.get("color"),r=t.getItemStyle(["color","borderColor"]);e.useStyle(r),e.style.fill=null,e.style.stroke=i,e.style.lineWidth=n.getLayout("barWidth")}function B(e,t,n){var i,r="polar"===n.type;return i=r?n.getArea():n.grid.getRect(),r?{cx:i.cx,cy:i.cy,r0:e?i.r0:t.r0,r:e?i.r:t.r,startAngle:e?t.startAngle:0,endAngle:e?t.endAngle:2*Math.PI}:{x:e?t.x:i.x,y:e?i.y:t.y,width:e?t.width:i.width,height:e?i.height:t.height}}function $(e,t,n){var i="polar"===e.type?a.Sector:a.Rect;return new i({shape:B(t,n,e),silent:!0,z2:0})}e.exports=S},6858:function(e,t,n){"use strict";var i=n("2f9a"),r=n("ea34"),o=n("8a0d"),a=n("6ca1");e.exports=n("393a")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},"68ab":function(e,t,n){var i=n("4a3f"),r=i.quadraticProjectPoint;function o(e,t,n,i,o,a,s,l,c){if(0===s)return!1;var u=s;if(c>t+u&&c>i+u&&c>a+u||ce+u&&l>n+u&&l>o+u||lr)Q(e,n=i[r++],t[n]);return e},Z=function(e,t){return void 0===t?x(e):X(x(e),t)},J=function(e){var t=$.call(this,e=E(e,!0));return!(this===z&&r(G,e)&&!r(U,e))&&(!(t||!r(this,e)||!r(G,e)||r(this,F)&&this[F][e])||t)},ee=function(e,t){if(e=S(e),t=E(t,!0),e!==z||!r(G,t)||r(U,t)){var n=N(e,t);return!n||!r(G,t)||r(e,F)&&e[F][t]||(n.enumerable=!0),n}},te=function(e){var t,n=I(S(e)),i=[],o=0;while(n.length>o)r(G,t=n[o++])||t==F||t==l||i.push(t);return i},ne=function(e){var t,n=e===z,i=I(n?U:S(e)),o=[],a=0;while(i.length>a)!r(G,t=i[a++])||n&&!r(z,t)||o.push(G[t]);return o};j||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===z&&t.call(U,n),r(this,F)&&r(this[F],e)&&(this[F][e]=!1),Y(this,e,C(1,n))};return o&&W&&Y(z,e,{configurable:!0,set:t}),q(e)},s(M[P],"toString",(function(){return this._k})),T.f=ee,O.f=Q,n("6438").f=w.f=te,n("1917").f=J,A.f=ne,o&&!n("e444")&&s(z,"propertyIsEnumerable",J,!0),f.f=function(e){return q(p(e))}),a(a.G+a.W+a.F*!j,{Symbol:M});for(var ie="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ie.length>re;)p(ie[re++]);for(var oe=R(p.store),ae=0;oe.length>ae;)g(oe[ae++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(V,e+="")?V[e]:V[e]=M(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in V)if(V[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!j,"Object",{create:Z,defineProperty:Q,defineProperties:X,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=c((function(){A.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return A.f(b(e))}}),k&&a(a.S+a.F*(!j||c((function(){var e=M();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))}))),"JSON",{stringify:function(e){var t,n,i=[e],r=1;while(arguments.length>r)i.push(arguments[r++]);if(n=t=i[1],(y(t)||void 0!==e)&&!K(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),i[1]=t,L.apply(k,i)}}),M[P][B]||n("051b")(M[P],B,M[P].valueOf),d(M,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},"697e":function(e,t,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),o=n("18c0"),a=n("89e3"),s=n("e0d8"),l=n("3842"),c=n("9d57"),u=c.prepareLayoutBarSeries,d=c.makeColumnLayout,h=c.retrieveColumnLayout,p=n("9850");function f(e,t){var n,i,o,a=e.type,s=t.getMin(),c=t.getMax(),h=e.getExtent();"ordinal"===a?n=t.getCategories().length:(i=t.get("boundaryGap"),r.isArray(i)||(i=[i||0,i||0]),"boolean"===typeof i[0]&&(i=[0,0]),i[0]=l.parsePercent(i[0],1),i[1]=l.parsePercent(i[1],1),o=h[1]-h[0]||Math.abs(h[0])),"dataMin"===s?s=h[0]:"function"===typeof s&&(s=s({min:h[0],max:h[1]})),"dataMax"===c?c=h[1]:"function"===typeof c&&(c=c({min:h[0],max:h[1]}));var p=null!=s,f=null!=c;null==s&&(s="ordinal"===a?n?0:NaN:h[0]-i[0]*o),null==c&&(c="ordinal"===a?n?n-1:NaN:h[1]+i[1]*o),(null==s||!isFinite(s))&&(s=NaN),(null==c||!isFinite(c))&&(c=NaN),e.setBlank(r.eqNaN(s)||r.eqNaN(c)||"ordinal"===a&&!e.getOrdinalMeta().categories.length),t.getNeedCrossZero()&&(s>0&&c>0&&!p&&(s=0),s<0&&c<0&&!f&&(c=0));var m=t.ecModel;if(m&&"time"===a){var v,_=u("bar",m);if(r.each(_,(function(e){v|=e.getBaseAxis()===t.axis})),v){var y=d(_),b=g(s,c,t,y);s=b.min,c=b.max}}return{extent:[s,c],fixMin:p,fixMax:f}}function g(e,t,n,i){var o=n.axis.getExtent(),a=o[1]-o[0],s=h(i,n.axis);if(void 0===s)return{min:e,max:t};var l=1/0;r.each(s,(function(e){l=Math.min(e.offset,l)}));var c=-1/0;r.each(s,(function(e){c=Math.max(e.offset+e.width,c)})),l=Math.abs(l),c=Math.abs(c);var u=l+c,d=t-e,p=1-(l+c)/a,f=d/p-d;return t+=f*(c/u),e-=f*(l/u),{min:e,max:t}}function m(e,t){var n=f(e,t),i=n.extent,r=t.get("splitNumber");"log"===e.type&&(e.base=t.get("logBase"));var o=e.type;e.setExtent(i[0],i[1]),e.niceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===o||"time"===o?t.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?t.get("maxInterval"):null});var a=t.get("interval");null!=a&&e.setInterval&&e.setInterval(a)}function v(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new o(e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),[1/0,-1/0]);case"value":return new a;default:return(s.getClass(t)||a).create(e)}}function _(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}function y(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"string"===typeof t?(t=function(t){return function(n){return n=e.scale.getLabel(n),t.replace("{value}",null!=n?n:"")}}(t),t):"function"===typeof t?function(i,r){return null!=n&&(r=i-n),t(b(e,i),r)}:function(t){return e.scale.getLabel(t)}}function b(e,t){return"category"===e.type?e.scale.getLabel(t):t}function S(e){var t=e.model,n=e.scale;if(t.get("axisLabel.show")&&!n.isBlank()){var i,r,o="category"===e.type,a=n.getExtent();o?r=n.count():(i=n.getTicks(),r=i.length);var s,l=e.getLabelModel(),c=y(e),u=1;r>40&&(u=Math.ceil(r/40));for(var d=0;d0&&e.children[0].needLoad&&(console.log("加载节点:",e),1==e.type&&this.loadGetTableList(e))},databaseActionDropdown:function(e){if("refresh"==e.command)e.node.loading=!0,e.node.data.children=[],this.loadGetTableList(e.node.data,(function(){setTimeout((function(){return e.node.loading=!1}),500)}));else if("procedure"==e.command){var t=e.node.data,a={sourceId:this.choiceDatasourceId,dbName:t.dbName,host:t.host};this.$router.push({path:"/procedure/list",query:a})}else if("download"==e.command){var o=e.node.data,n={sourceId:this.choiceDatasourceId,dbName:o.dbName};this.$router.push({path:"/data/export",query:n})}else this.$message.warning("暂未支持的选项")},loadGetTableList:function(e,t){b.tableList({sourceId:this.choiceDatasourceId,dbName:e.dbName}).then((function(a){for(var o=[],n=a.data||[],r=0;r0||(this.choiceDatasourceId=parseInt(e.sourceId),this.loadDatabaseList(e.sourceId,e.host).then((function(){t.databaseExpandedKeys=[e.host]})))},dragChangeRightAsideWidth:function(){var e=this,t=this.$refs.rightResize,a=this.$refs.rightResizeBar;t.onmousedown=function(o){var n=o.clientX;return t.style.background="#ccc",a.style.background="#aaa",t.left=t.offsetLeft,document.onmousemove=function(t){var a=t.clientX,o=n-a;(o<0&&e.rightAsideWidth<600||o>0&&e.rightAsideWidth>200)&&(n=a,e.rightAsideWidth-=o,e.rightAsideWidth<200&&(e.rightAsideWidth=200))},document.onmouseup=function(){t.style.background="#fafafa",a.style.background="#ccc",document.onmousemove=null,document.onmouseup=null},!1}}}},k=_,I=(a("034f"),Object(C["a"])(k,i,s,!1,null,null,null)),L=I.exports,E=a("8c4f"),P=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"10px"}},[a("div",{staticStyle:{"max-width":"1200px",margin:"20px auto"}},[a("div",{staticStyle:{"text-align":"center"}},[e._v("欢迎使用"),a("span",{on:{dblclick:e.showErGraph}},[e._v('ヾ(๑╹◡╹)ノ"')]),e._v(" - 在左上角选择一个数据源吧~")])])])},N=[],T={data:function(){return{}},mounted:function(){},methods:{showErGraph:function(){}}},O=T,q=Object(C["a"])(O,P,N,!1,null,null,null),$=q.exports,z=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"10px"}},[a("er-graph")],1)},j=[],A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"styles.erGraphDemo"},[a("ERGraphDemo")],1)},R=[],F=a("779d"),V=a.n(F),U=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%",height:"650px"}},[a("ERGraph",{attrs:{graphData:e.graphData}})],1)},Q=[],B=(a("d81d"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"er-editor-demo-container"},[a("div",{ref:"refContainer",staticStyle:{width:"100%",height:"100%"},attrs:{id:"refContainer"}}),a("div",{ref:"refMinimapContainer",staticClass:"minimap-container",attrs:{id:"refMinimapContainer"}})])}),M=[],G=(a("a4d3"),a("e439"),a("dbb4"),a("b64b"),a("2fa7")),J=(a("f32d"),a("9f12")),H=a("53fe"),K=a("5728"),W=(a("99af"),a("dfdf")),X=a("2ef0"),Y=a.n(X);a("3e2f");function Z(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function ee(e){for(var t=1;t0&&(this.graph.removeCells(e),this.nodes=Y.a.pullAll(this.nodes,e))}},{key:"removeNode",value:function(e){if(e)if(e instanceof Node)this.removeNodes([e]);else{var t=this.findNodeById(e);t&&this.removeNodes([t])}}},{key:"addEdges",value:function(e){var t=this;e.forEach((function(e){t.addEdge(e)}))}},{key:"addEdge",value:function(e){var t=e.id,a=e.source,o=e.target,n=(e.render,e.data),r=Object(W["a"])(e,["id","source","target","render","data"]),i=Y.a.find(this.nodes,(function(e){return e.id===a})),s=Y.a.find(this.nodes,(function(e){return e.id===o}));if(!a||!o)throw new Error("edge must has source and target!");var l=this.graph.addEdge(ee({id:t||"".concat(a,"-").concat(o),data:n||void 0,source:i,target:s,attrs:{line:{stroke:"#B4BDCF",strokeWidth:1}}},r));this.edges.push(l)}},{key:"updateEdge",value:function(e,t){Y.a.isEqual(e.data,t.data)||e.setData(t.data)}},{key:"removeEdges",value:function(e){this.graph.removeCells(e),this.edges=Y.a.pullAll(this.edges,e)}},{key:"removeEdge",value:function(e){if(e)if(e instanceof K["a"])this.graph.removeCells([e]),this.removeEdges([e]);else{var t=this.findEdgeById(e);t&&this.removeEdges([t])}}},{key:"findNodeById",value:function(e){return this.nodes.find((function(t){return t.id===e}))}},{key:"findEdgeById",value:function(e){return this.edges.find((function(t){return t.id===e}))}}]),e}(),oe=function e(t){var a=this;Object(J["a"])(this,e),Object(G["a"])(this,"registerEvent",(function(e){e&&e.forEach((function(e){switch(e.eventName){case"scale":a.graph.on("scale",(function(t){var a=t.sx,o=(t.sy,t.ox,t.oy,a);e.handler&&e.handler({scale:o})}));break;case"graph:mouseenter":a.graph.on("graph:mouseenter",(function(t){t.e;e.handler&&e.handler()}));break;case"graph:mouseleave":a.graph.on("graph:mouseleave",(function(t){t.e;e.handler&&e.handler()}));break;case"blank:mouseDown":a.graph.on("blank:mousedown",(function(t){t.e;var a=t.x,o=t.y;e.handler&&e.handler({x:a,y:o})}));break;case"blank:mouseUp":a.graph.on("blank:mouseup",(function(t){t.e;var a=t.x,o=t.y;e.handler&&e.handler({x:a,y:o})}));break;case"node:added":a.graph.on("node:added",(function(e){var t=e.node;a.x6BaseGraph.bringNodesToFront([t])}));break;case"node:removed":a.graph.on("node:removed",(function(e){e.node}));break;case"edge:added":a.graph.on("edge:added",(function(e){e.edge}));break;case"edge:removed":a.graph.on("edge:removed",(function(e){e.edge;a.isDeleteX6DefaultEdge}));break;case"node:mousedown":a.graph.on("node:mousedown",(function(t){t.e;var a=t.view,o=t.x,n=t.y;e.handler&&e.handler({node:a.cell,x:o,y:n})}));break;case"node:mousemove":a.graph.on("node:mousemove",(function(t){t.e;var a=t.view,o=t.x,n=t.y;e.handler&&e.handler({node:a.cell,x:o,y:n})}));break;case"node:mouseup":a.graph.on("node:mouseup",(function(t){t.e;var a=t.view,o=t.x,n=t.y;e.handler&&e.handler({node:a.cell,x:o,y:n})}));break;case"node:click":a.graph.on("node:click",(function(t){var a=t.view;e.handler&&e.handler({node:a.cell})}));break;case"node:dbclick":a.graph.on("node:dblclick",(function(t){var a=t.view;e.handler&&e.handler({node:a.cell})}));break;case"edge:connected":a.graph.on("edge:connected",(function(e){e.edge}));break;case"selection:changed":a.graph.on("selection:changed",(function(t){var o=t.selected,n=t.removed,r=t.added;e.handler&&e.handler({selected:o,removed:n,added:r}),a.x6BaseGraph.bringCellsToFront(o)}));break;default:break}}))})),this.x6BaseGraph=t,this.graph=t.graph};function ne(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function re(e){for(var t=1;t0&&t.cellController.addNodes(o),n&&n.length>0&&t.cellController.addEdges(n)}))}},{key:"zoomGraph",value:function(e){"number"===typeof e?this.graph.zoom(e):"fit"===e?this.graph.zoomToFit({padding:12}):e&&(this.graph.scale(1),this.graph.centerContent())}},{key:"focusNodeToGraphCenter",value:function(e){if(e instanceof Node)this.graph.centerCell(e);else{var t=this.cellController.findNodeById(e);t&&this.graph.centerCell(t)}}},{key:"bringNodesToFront",value:function(e){e.forEach((function(e){e.toBack()}))}},{key:"bringNodesToBack",value:function(e){e.forEach((function(e){e.toBack()}))}},{key:"clearGraph",value:function(){}},{key:"registerEvent",value:function(e){this.eventController.registerEvent(e)}},{key:"graphContentDiff",value:function(e){var t=this,a=e.nodes,o=e.edges,n=[];a.forEach((function(e){var a=t.cellController.findNodeById(e.id);a||n.push(e)}));var r=[],i=[],s=[];this.cellController.nodes.forEach((function(e){var o=a.find((function(t){return t.id===e.id}));o?Y.a.isEqual(e.data,o.data)?r.push(e):(i.push(e),t.cellController.updateNode(e,o)):s.push(e)}));var l=[];o.forEach((function(e){if(e.id){var a=t.cellController.findEdgeById(e.id);a||l.push(e)}}));var c=[],u=[],d=[];return this.cellController.edges.forEach((function(e){var a=o.find((function(t){return t.id===e.id}));a?Y.a.isEqual(e.data,a.data)?c.push(e):(u.push(e),t.cellController.updateEdge(e,a)):d.push(e)})),this.cellController.removeNodes(s),this.cellController.removeEdges(d),{addNodesData:n,addEdgesData:l}}}]),e}();function se(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function le(e){for(var t=1;t',data:function(){return{entity:e}},components:{Entity:xe}}}})),this.graphData.edges=fe.map((function(e){var t=e.relationId,a=e.sourceEntityId,o=e.targetEntityId;return{id:t,source:a,target:o,label:"1:N",data:e}}))}}},Se=Ce,De=Object(C["a"])(Se,U,Q,!1,null,"29ea1468",null),_e=De.exports,ke={name:"index",components:{ERGraphDemo:_e},data:function(){return{visible:!1,graph:"",styles:V.a}},mounted:function(){},methods:{showDrawer:function(){this.visible=!0},onClose:function(){this.visible=!1}}},Ie=ke,Le=Object(C["a"])(Ie,A,R,!1,null,"1e71010a",null),Ee=Le.exports,Pe={data:function(){return{}},components:{erGraph:Ee},mounted:function(){},methods:{}},Ne=Pe,Te=Object(C["a"])(Ne,z,j,!1,null,null,null),Oe=(Te.exports,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"padding-top":"50px"}},[a("el-form",{ref:"loginParam",staticClass:"demo-ruleForm login-container",attrs:{model:e.loginParam,rules:e.loginRules,"label-position":"left","label-width":"0px"}},[a("h3",{staticClass:"title"},[e._v("系统登录")]),a("el-form-item",{attrs:{prop:"username"}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:"账号"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.loginSubmit(t)}},model:{value:e.loginParam.username,callback:function(t){e.$set(e.loginParam,"username",t)},expression:"loginParam.username"}})],1),a("el-form-item",{attrs:{prop:"password"}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:"密码"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.loginSubmit(t)}},model:{value:e.loginParam.password,callback:function(t){e.$set(e.loginParam,"password",t)},expression:"loginParam.password"}})],1),a("el-form-item",{staticStyle:{width:"100%"}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary",loading:e.logining},nativeOn:{click:function(t){return t.preventDefault(),e.loginSubmit(t)}}},[e._v("登录")])],1)],1)],1)}),qe=[],$e={data:function(){return{logining:!1,redirect:"",loginParam:{username:"",password:""},loginRules:{username:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},checked:!0}},mounted:function(){this.redirect=this.$route.query.redirect},methods:{loginSubmit:function(){var e=this;this.$refs.loginParam.validate((function(t){t&&f.userLogin(e.loginParam).then((function(){e.redirect?location.href=decodeURIComponent(e.redirect):e.$router.back()}))}))}}},ze=$e,je=(a("9231"),Object(C["a"])(ze,Oe,qe,!1,null,null,null)),Ae=je.exports,Re=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-info-vue"},[a("div",{staticStyle:{margin:"0 auto","max-width":"1000px"}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e._v("我的信息")]),a("el-form",{staticClass:"search-form-box",attrs:{"label-width":"100px"}},[a("el-form-item",{attrs:{label:"账号:"}},[e._v(e._s(e.userInfo.userNo))]),a("el-form-item",{attrs:{label:"用户名:"}},[e._v(e._s(e.userInfo.userName))]),a("el-form-item",{attrs:{label:"手机号:"}},[e._v(e._s(e.userInfo.phone))]),a("el-form-item",{attrs:{label:"邮箱:"}},[e._v(e._s(e.userInfo.email))]),a("el-form-item",{attrs:{label:"状态:"}},[e._v(e._s(0==e.userInfo.delFlag?"正常":"停用"))]),a("el-form-item",{attrs:{label:"性别:"}},[e._v(e._s(0==e.userInfo.sex?"女":"男"))])],1)],1)],1)])},Fe=[],Ve={data:function(){return{userInfo:{}}},mounted:function(){this.getUserInfo()},methods:{getUserInfo:function(){var e=this;f.getSelfUserInfo().then((function(t){e.userInfo=t.data}))}}},Ue=Ve,Qe=(a("dcfc"),Object(C["a"])(Ue,Re,Fe,!1,null,null,null)),Be=Qe.exports,Me=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("router-view")},Ge=[],Je={},He=Object(C["a"])(Je,Me,Ge,!1,null,null,null),Ke=He.exports,We=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-tabs",{staticStyle:{padding:"5px 10px 0"},attrs:{type:"card",closable:""},on:{"tab-click":e.changePage,"tab-remove":e.removePageTab},model:{value:e.activePage,callback:function(t){e.activePage=t},expression:"activePage"}},e._l(e.pageList,(function(t){return a("el-tab-pane",{key:t.fullPath,attrs:{label:e.pageTabNameMap[t.fullPath]||t.name,name:e.getRouteRealPath(t),fullPath:t.fullPath}})})),1),a("keep-alive",[a("router-view",{key:e.$route.fullPath,on:{initLoadDataList:e.initLoadDataList,loadDatasourceList:e.loadDatasourceList}})],1)],1)},Xe=[],Ye=(a("c975"),{name:"PageTableView",components:{},data:function(){return{pageList:[],linkList:[],activePage:"",multiPage:!0,ignoreParamPath:["/data/export"]}},computed:{pageTabNameMap:function(){return this.$store.state.global.pageTabNameMap}},created:function(){var e=this.$route,t=e.name,a=e.path,o=e.fullPath;this.pageList.push({name:t,path:a,fullPath:o});var n=this.getRouteRealPath(this.$route);this.linkList.push(n),this.activePage=n,this.$router.push(this.$route.fullPath)},watch:{$route:function(e,t){var a=this,o=this.getRouteRealPath(e);if(this.activePage=o,this.linkList.indexOf(o)<0){this.linkList.push(o);var n=e.name,r=e.path,i=e.fullPath;this.pageList.push({name:n,path:r,fullPath:i})}var s=this.pageList.find((function(e){return a.getRouteRealPath(e)===o}));s.fullPath=e.fullPath}},methods:{initLoadDataList:function(e){this.$emit("initLoadDataList",e)},loadDatasourceList:function(){this.$emit("loadDatasourceList")},isIgnoreParamPath:function(e){return this.ignoreParamPath.indexOf(e)>=0},getRouteRealPath:function(e){return this.isIgnoreParamPath(e.path)?e.path:e.fullPath},changePage:function(e){this.activePage=e.name,this.$router.push(e.$attrs.fullPath)},editPage:function(e,t){this[t](e)},removePageTab:function(e){var t=this;if(1!==this.pageList.length){this.pageList=this.pageList.filter((function(a){return t.getRouteRealPath(a)!==e})),this.linkList=this.linkList.filter((function(t){return t!==e}));var a=this.linkList.indexOf(this.activePage);a<0&&(a=this.linkList.length-1,this.activePage=this.linkList[a],this.$router.push(this.activePage))}else this.$message.warning("这是最后一页,不能再关闭了啦")}}}),Ze=Ye,et=Object(C["a"])(Ze,We,Xe,!1,null,"6fc73724",null),tt=et.exports,at=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"table-info-vue"},[a("el-tabs",{on:{"tab-click":e.tabActiveNameChange},model:{value:e.tabActiveName,callback:function(t){e.tabActiveName=t},expression:"tabActiveName"}},[a("el-tab-pane",{attrs:{label:"表字段",name:"columns"}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.columnListLoading,expression:"columnListLoading"}]},[a("el-row",{staticClass:"row-bg",staticStyle:{"margin-bottom":"10px"},attrs:{type:"flex",justify:"space-between"}},[a("el-col",{staticStyle:{color:"#606266","line-height":"40px"}},[a("span",[e._v("表名:"+e._s(e.tableStatusInfo.name))]),a("span",{staticStyle:{"margin-left":"20px"}},[1==e.tableInfo.inEdit?a("span",[a("el-input",{staticStyle:{width:"500px"},attrs:{placeholder:"输入表注释"},on:{blur:e.saveTableDescription},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.saveTableDescription(t)}},model:{value:e.tableInfo.newDesc,callback:function(t){e.$set(e.tableInfo,"newDesc",t)},expression:"tableInfo.newDesc"}})],1):a("span",[e._v(e._s(e.tableInfo.description||"暂无表注释")+" "),a("i",{staticClass:"el-icon-edit edit-table-desc",on:{click:function(t){e.tableInfo.inEdit=1}}})])])]),a("el-col",{staticStyle:{width:"100px","text-align":"right"}},[a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{plain:"",type:"primary",icon:"el-icon-magic-stick"},on:{click:e.showCreateTableDdl}},[e._v("DDL")])],1)],1),a("el-table",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.columnList,stripe:"",border:""}},[a("el-table-column",{attrs:{prop:"name",label:"字段名",width:"220"}}),a("el-table-column",{attrs:{label:"自增",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.selfIncrement?"是":"否"))]}}])}),a("el-table-column",{attrs:{prop:"type",label:"类型",width:"110"}}),a("el-table-column",{attrs:{prop:"length",label:"长度",width:"110"}}),a("el-table-column",{attrs:{prop:"numericScale",label:"小数点",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(0==t.row.numericScale?"":t.row.numericScale))]}}])}),a("el-table-column",{attrs:{prop:"nullable",label:"空值",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.nullable?"允许":"不允许"))]}}])}),a("el-table-column",{attrs:{label:"主键",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.primaryKey?"是":"否"))]}}])}),a("el-table-column",{scopedSlots:e._u([{key:"header",fn:function(t){return[e._v(" 注释 "),a("el-tooltip",{attrs:{effect:"dark",content:"点击注释列可编辑字段注释",placement:"top"}},[a("i",{staticClass:"el-icon-info",staticStyle:{color:"#999"}})])]}},{key:"default",fn:function(t){return[1==t.row.inEdit?a("div",[a("el-input",{attrs:{placeholder:"输入字段注释"},on:{blur:function(a){return e.saveColumnDescription(t.row)}},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.saveColumnDescription(t.row)}},model:{value:t.row.newDesc,callback:function(a){e.$set(t.row,"newDesc",a)},expression:"scope.row.newDesc"}})],1):a("div",{staticClass:"description",on:{click:function(a){return e.descBoxClick(t.row)}}},[e._v(e._s(t.row.description))])]}}])})],1)],1)]),a("el-tab-pane",{attrs:{label:"表信息",name:"tableInfo"}},[a("el-row",{staticClass:"status-info-row"},[a("el-col",{attrs:{span:24}},[a("span",{staticClass:"label"},[e._v("数据源:")]),e._v(e._s(e.vueQueryParam.host))])],1),a("el-row",{staticClass:"status-info-row"},[a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("数据库:")]),e._v(e._s(e.vueQueryParam.dbName))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("数据表:")]),e._v(e._s(e.tableStatusInfo.name))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("引擎:")]),e._v(e._s(e.tableStatusInfo.engine))])],1),a("el-row",{staticClass:"status-info-row"},[a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("行数:")]),e._v(e._s(e.tableStatusInfo.rows||0))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("自动递增:")]),e._v(e._s(e.tableStatusInfo.avgRowLength||0))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("行格式:")]),e._v(e._s(e.tableStatusInfo.rowFormat))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("排序规则:")]),e._v(e._s(e.tableStatusInfo.collation))])],1),a("el-row",{staticClass:"status-info-row"},[a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("索引长度:")]),e._v(e._s(e.getBytesSize(e.tableStatusInfo.indexLength)))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("数据长度:")]),e._v(e._s(e.getBytesSize(e.tableStatusInfo.dataLength)))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("最大长度:")]),e._v(e._s(e.getBytesSize(e.tableStatusInfo.maxDataLength)))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("可用空间:")]),e._v(e._s(e.getBytesSize(e.tableStatusInfo.dataFree)))])],1),a("el-row",{staticClass:"status-info-row"},[a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("创建时间:")]),e._v(e._s(e.tableStatusInfo.createTime))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("修改时间:")]),e._v(e._s(e.tableStatusInfo.updateTime))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("检查时间:")]),e._v(e._s(e.tableStatusInfo.checkTime))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("创建选项:")]),e._v(e._s(e.tableStatusInfo.createOptions))])],1),a("el-row",{staticClass:"status-info-row"},[a("el-col",{attrs:{span:24}},[a("span",{staticClass:"label"},[e._v("表注释:")]),1==e.tableInfo.inEdit?a("span",[a("el-input",{staticStyle:{width:"500px"},attrs:{placeholder:"输入表注释"},on:{blur:e.saveTableDescription},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.saveTableDescription(t)}},model:{value:e.tableInfo.newDesc,callback:function(t){e.$set(e.tableInfo,"newDesc",t)},expression:"tableInfo.newDesc"}})],1):a("span",[e._v(e._s(e.tableInfo.description||"暂无注释")+" "),a("i",{staticClass:"el-icon-edit edit-table-desc",on:{click:function(t){e.tableInfo.inEdit=1}}})])])],1)],1),a("el-tab-pane",{attrs:{label:"关系图",name:"relationChart"}},[a("table-relation-charts",{ref:"relationChart"})],1),a("el-tab-pane",{attrs:{label:"表数据",name:"tableData"}},[a("data-preview",{ref:"dataPreview"})],1)],1),a("el-dialog",{attrs:{visible:e.tableDDLInfoDialogVisible,footer:null,width:"760px"},on:{"update:visible":function(t){e.tableDDLInfoDialogVisible=t}}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("span",{staticStyle:{"margin-right":"15px"}},[e._v("DDL")]),a("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.tableDDLInfo[e.tableDDLInfoTab],expression:"tableDDLInfo[tableDDLInfoTab]",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopySuccess,expression:"onCopySuccess",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.onCopyError,expression:"onCopyError",arg:"error"}],attrs:{size:"small",icon:"el-icon-document-copy"}},[e._v("复制")])],1),a("el-tabs",{model:{value:e.tableDDLInfoTab,callback:function(t){e.tableDDLInfoTab=t},expression:"tableDDLInfoTab"}},[e.tableDDLInfo.mysql?a("el-tab-pane",{attrs:{label:"mysql",name:"mysql"}},[a("div",{directives:[{name:"highlight",rawName:"v-highlight"}]},[a("pre",[a("code",{domProps:{innerHTML:e._s(e.tableDDLInfo.mysql)}})])])]):e._e(),e.tableDDLInfo.sqlserver?a("el-tab-pane",{attrs:{label:"sqlserver",name:"sqlserver"}},[a("div",{directives:[{name:"highlight",rawName:"v-highlight"}]},[a("pre",[a("code",{domProps:{innerHTML:e._s(e.tableDDLInfo.sqlserver)}})])])]):e._e(),e.tableDDLInfo.oracle?a("el-tab-pane",{attrs:{label:"oracle",name:"oracle"}},[a("div",{directives:[{name:"highlight",rawName:"v-highlight"}]},[a("pre",[a("code",{domProps:{innerHTML:e._s(e.tableDDLInfo.oracle)}})])])]):e._e(),e.tableDDLInfo.postgresql?a("el-tab-pane",{attrs:{label:"postgresql",name:"postgresql"}},[a("div",{directives:[{name:"highlight",rawName:"v-highlight"}]},[a("pre",[a("code",{domProps:{innerHTML:e._s(e.tableDDLInfo.postgresql)}})])])]):e._e(),e.tableDDLInfo.hive?a("el-tab-pane",{attrs:{label:"hive",name:"hive"}},[a("div",{directives:[{name:"highlight",rawName:"v-highlight"}]},[a("pre",[a("code",{domProps:{innerHTML:e._s(e.tableDDLInfo.hive)}})])])]):e._e()],1)],1)],1)},ot=[],nt=(a("e01a"),a("b680"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"data-executor-vue"},[a("div",{staticStyle:{padding:"0 10px 10px",height:"100%","box-sizing":"border-box"}},[a("el-card",{staticStyle:{"margin-bottom":"10px"}},[a("ace-editor",{staticStyle:{"margin-bottom":"10px"},attrs:{lang:"sql",theme:"monokai",width:"100%",height:"60",options:e.sqlEditorConfig,source:e.executorSource},on:{init:e.sqlExecutorInit},model:{value:e.sqlExecutorContent,callback:function(t){e.sqlExecutorContent=t},expression:"sqlExecutorContent"}}),a("div",[e.sqlExecuting?a("el-button",{attrs:{type:"primary",plain:"",size:"small",icon:"el-icon-video-pause"},on:{click:e.cancelExecutorSql}},[e._v("取消执行")]):a("el-tooltip",{attrs:{effect:"dark",content:"Ctrl+R、Ctrl+Enter",placement:"top"}},[a("el-button",{attrs:{type:"primary",plain:"",size:"small",icon:"el-icon-video-play"},on:{click:e.doExecutorClick}},[e._v("筛选")])],1),a("el-button",{attrs:{icon:"el-icon-refresh-left",size:"small"},on:{click:e.refreshData}},[e._v("重置")]),a("el-button",{staticStyle:{"margin-left":"30px"},attrs:{type:"success",size:"small",icon:"el-icon-download",plain:""},on:{click:e.downloadTableData}},[e._v("导出")])],1)],1),a("el-card",[e.executeError?a("div",{staticStyle:{color:"#f00"}},[e._v(e._s(e.executeError))]):e.sqlExecuting?a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.sqlExecuting,expression:"sqlExecuting"}],staticStyle:{padding:"20px 0"}},[e._v("数据加载中...")]):e.executeResultList.length<=0?a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.sqlExecuting,expression:"sqlExecuting"}],staticStyle:{padding:"20px 0"}},[e._v("暂无数据")]):a("div",{staticStyle:{position:"relative"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:"table0"!==e.executeShowTable,expression:"executeShowTable !== 'table0'"}],staticStyle:{position:"absolute",right:"0","z-index":"1"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:e.choiceResultObj[e.executeShowTable]&&e.choiceResultObj[e.executeShowTable].length>0,expression:"choiceResultObj[executeShowTable] && choiceResultObj[executeShowTable].length > 0"}]},[a("el-button",{staticStyle:{"margin-right":"10px"},attrs:{icon:"el-icon-delete",size:"small",type:"danger",plain:""},on:{click:e.deleteCheckLine}},[e._v("删除")]),a("el-dropdown",{on:{command:e.handleCopyCheckLineCommand}},[a("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-document-copy"}},[e._v(" 复制选中行"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"insert"}},[e._v("SQL Inserts")]),a("el-dropdown-item",{attrs:{command:"update"}},[e._v("SQL Updates")]),a("el-dropdown-item",{attrs:{command:"json"}},[e._v("JSON")])],1)],1)],1),a("el-tooltip",{attrs:{effect:"dark",content:"选择展示列",placement:"top"}},[a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{icon:"el-icon-setting",size:"small"},on:{click:e.choiceShowColumnDrawerShow}})],1)],1),a("el-tabs",{model:{value:e.executeShowTable,callback:function(t){e.executeShowTable=t},expression:"executeShowTable"}},[a("el-tab-pane",{attrs:{label:"信息",name:"table0"}},[a("pre",[e._v(e._s(e.executeResultInfo))])]),e._l(e.executeResultList,(function(t){return t.index?a("el-tab-pane",{attrs:{label:"结果"+t.index,name:t.name}},[t.errMsg?a("div",{staticStyle:{color:"#f00"}},[e._v(e._s(t.errMsg))]):t.dataList.length<=0?a("div",{staticStyle:{"text-align":"center",color:"#aaa",padding:"20px 0"}},[e._v("暂无数据")]):[a("el-table",{staticClass:"execute-result-table",staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:t.dataList,stripe:"",border:"","max-height":e.tableMaxHeight,"default-sort":e.tableSort},on:{"selection-change":e.handleSelectionChange,"sort-change":e.tableSortChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{type:"index",width:"50"}}),e._l(t.dataCols,(function(t){return a("el-table-column",{attrs:{sortable:"",prop:t.prop,label:t.prop,width:t.width},scopedSlots:e._u([{key:"header",fn:function(o){return[a("el-tooltip",{attrs:{effect:"dark",content:t.desc,placement:"top"}},[a("span",[e._v(e._s(t.prop))])])]}},{key:"default",fn:function(e){return[a("textarea",{staticClass:"el-textarea__inner",attrs:{readonly:"",rows:"1"},domProps:{value:e.row[t.prop]}})]}}],null,!0)})}))],2),a("el-pagination",{staticStyle:{"margin-top":"10px"},attrs:{"current-page":e.currentPage,"page-sizes":[50,100,300,500],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.tableTotalCount},on:{"size-change":e.handlePageSizeChange,"current-change":e.handleCurrentChange}})]],2):e._e()}))],2)],1)])],1),a("el-dialog",{attrs:{visible:e.exportConditionVisible,width:"500px",title:"选择更新语句条件"},on:{"update:visible":function(t){e.exportConditionVisible=t}}},[a("div",[e._v(" 更新条件列: "),a("el-select",{staticStyle:{width:"370px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.conditionDataColsChoice,callback:function(t){e.conditionDataColsChoice=t},expression:"conditionDataColsChoice"}},e._l(e.conditionDataCols,(function(e){return a("el-option",{key:e.prop,attrs:{label:e.prop,value:e.prop}})})),1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.exportConditionVisible=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.doCopyCheckLineUpdate}},[e._v("确 定")])],1)]),a("el-dialog",{attrs:{visible:e.downloadDataVisible,width:"600px",title:"表数据导出"},on:{"update:visible":function(t){e.downloadDataVisible=t}}},[a("el-form",{attrs:{"label-width":"120px"}},[a("el-form-item",{attrs:{label:"导出类型:"}},[a("el-select",{staticStyle:{width:"370px"},attrs:{filterable:"",placeholder:"请选择导出类型"},model:{value:e.downloadDataParam.downloadType,callback:function(t){e.$set(e.downloadDataParam,"downloadType",t)},expression:"downloadDataParam.downloadType"}},[a("el-option",{attrs:{label:"SQL Inserts",value:"insert"}}),a("el-option",{attrs:{label:"SQL Updates",value:"update"}}),a("el-option",{attrs:{label:"JSON",value:"json"}}),a("el-option",{attrs:{label:"Excel",value:"excel"}})],1)],1),"insert"===e.downloadDataParam.downloadType?a("el-form-item",{attrs:{label:"数据表:"}},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.dropTableFlagChange},model:{value:e.downloadDataParam.dropTableFlag,callback:function(t){e.$set(e.downloadDataParam,"dropTableFlag",t)},expression:"downloadDataParam.dropTableFlag"}},[e._v("删除表"+e._s(1==e.downloadDataParam.dropTableFlag?"!!":""))]),a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.createTableFlagChange},model:{value:e.downloadDataParam.createTableFlag,callback:function(t){e.$set(e.downloadDataParam,"createTableFlag",t)},expression:"downloadDataParam.createTableFlag"}},[e._v("创建表")])],1):e._e(),"update"===e.downloadDataParam.downloadType?a("el-form-item",{attrs:{label:"更新条件列:"}},[a("el-select",{staticStyle:{width:"370px"},attrs:{multiple:"",placeholder:"不选则是没有条件的更新"},model:{value:e.downloadDataParam.conditionColumnArr,callback:function(t){e.$set(e.downloadDataParam,"conditionColumnArr",t)},expression:"downloadDataParam.conditionColumnArr"}},e._l(e.conditionDataCols,(function(e){return a("el-option",{key:e.prop,attrs:{label:e.prop,value:e.prop}})})),1)],1):e._e()],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.downloadDataVisible=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.doDownloadTableData}},[e._v("确 定")])],1)],1),a("el-drawer",{attrs:{size:"350px","with-header":!1,visible:e.choiceShowColumnDrawer,"before-close":e.choiceShowColumnDrawerClose,direction:"rtl"},on:{"update:visible":function(t){e.choiceShowColumnDrawer=t}}},[a("div",{staticStyle:{padding:"10px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[e._v("选择展示列")]),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:12}},[a("el-checkbox",{on:{change:e.choiceShowColumnAllChange},model:{value:e.choiceShowColumnAll,callback:function(t){e.choiceShowColumnAll=t},expression:"choiceShowColumnAll"}},[e._v("全选")]),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"mini"},on:{click:e.choiceShowColumnOk}},[e._v("确定")])],1)],1)],1),a("div",{staticStyle:{overflow:"auto",height:"calc(100vh - 50px)"}},[a("el-tree",{ref:"showColumnTree",attrs:{"node-key":"name",props:e.showColumnProps,data:e.tableDataColumns,"check-on-click-node":"","show-checkbox":""},on:{"check-change":e.tableDataColumnsCheckChange}})],1)]),a("form",{ref:"downloadForm",attrs:{method:"post",action:e.downloadFormParam.url,target:"_blank"}},e._l(e.downloadFormParam.param,(function(e,t){return a("input",{attrs:{type:"hidden",name:t},domProps:{value:e}})})),0),a("span",{staticStyle:{visibility:"hidden","white-space":"nowrap",position:"fixed"},attrs:{id:"widthCalculate"}})],1)}),rt=[],it=(a("a15b"),a("0d03"),a("ac1f"),a("1276"),{insert:function(e,t,a,o){var n=a?a+".":"";n+=o||"table";var r="",i="";return e.forEach((function(e){i.length>0&&(i+=", "),i+=e.prop})),t.forEach((function(t){var a="";e.forEach((function(e){a.length>0&&(a+=", ");var o=t[e.prop];void 0===o||null===o||isNaN(o)?a+="null":"number"!==typeof o||isNaN(o)?(o=String(o).replaceAll("'","''"),a+="'"+o+"'"):a+=o})),r+="insert into "+n+" ("+i+") values ("+a+");\n"})),r},update:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,r=o?o+".":"";r+=n||"table";var i="";return t.forEach((function(t){var o="",n="";e.forEach((function(e){var r=t[e.prop];a.indexOf(e.prop)>=0?(n.length>0&&(n+=" and "),void 0===r||null===r||isNaN(r)?n+=e.prop+" = null":"number"!==typeof r||isNaN(r)?n+=e.prop+" = '"+r+"'":n+=e.prop+" = "+r):(o.length>0&&(o+=", "),o+=e.prop+"=",void 0===r||null===r||isNaN(r)?o+="null":"number"!==typeof r||isNaN(r)?(r=String(r).replaceAll("'","''"),o+="'"+r+"'"):o+=r)})),n.length>0&&(n=" where "+n),i+="update "+r+" set "+o+n+";\n"})),i},json:function(e,t,a,o){return JSON.stringify(t)}}),st={insert:function(e,t,a,o){var n=a?a+"..":"";n+=o||"table";var r="",i="";return e.forEach((function(e){i.length>0&&(i+=", "),i+=e.prop})),t.forEach((function(t){var a="";e.forEach((function(e){a.length>0&&(a+=", ");var o=t[e.prop];void 0===o||null===o||isNaN(o)?a+="null":"number"!==typeof o||isNaN(o)?(o=String(o).replaceAll("'","''"),a+="'"+o+"'"):a+=o})),r+="insert into "+n+" ("+i+") values ("+a+");\n"})),r},update:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,r=o?o+"..":"";r+=n||"table";var i="";return t.forEach((function(t){var o="",n="";e.forEach((function(e){var r=t[e.prop];a.indexOf(e.prop)>=0?(n.length>0&&(n+=" and "),void 0===r||null===r||isNaN(r)?n+=e.prop+" = null":"number"!==typeof r||isNaN(r)?n+=e.prop+" = '"+r+"'":n+=e.prop+" = "+r):(o.length>0&&(o+=", "),o+=e.prop+"=",void 0===r||null===r||isNaN(r)?o+="null":"number"!==typeof r||isNaN(r)?(r=String(r).replaceAll("'","''"),o+="'"+r+"'"):o+=r)})),n.length>0&&(n=" where "+n),i+="update "+r+" set "+o+n+";\n"})),i},json:function(e,t,a,o){return JSON.stringify(t)}},lt={format:function(e,t,a,o,n,r,i){var s=this.getProduct(t);return"insert"===e?s.insert(a,o,r,i):"update"===e?s.update(a,o,n,r,i):"json"===e?s.json(a,o,r,i):void 0},getProduct:function(e){return"sqlserver"===e?st:it}},ct=a("db05"),ut=a.n(ct),dt=a("061c"),ht=a.n(dt),pt=(a("2099"),a("842f"),a("6e63"),a("818b"),a("b039"),a("14d4"),a("8a79"),a("96cf"),{isInit:!1,source:{},databaseInfo:{},tableInfo:{},columnInfo:{},lastCallbackArr:[],isAutocomplete:!1,change:function(e){var t=this;if(this.source=e,this.lastCallbackArr=[],console.log("change(sourceId):"+JSON.stringify(this.source)),!this.isInit){console.log("change(sourceId),isInit:"+this.isInit),this.isInit=!0;var a=ace.acequire("ace/ext/language_tools");a.addCompleter(this)}if(this.source.sourceId){var o=this.databaseInfo[this.source.sourceId]||[];if(o.length<=0&&b.databaseList({sourceId:this.source.sourceId}).then((function(e){t.databaseInfo[t.source.sourceId]=e.data||[]})),this.source.dbName){var n=this.source.sourceId+"_"+this.source.dbName,r=this.tableInfo[n]||[];r.length<=0&&b.tableList({sourceId:this.source.sourceId,dbName:this.source.dbName}).then((function(e){t.tableInfo[n]=e.data||[]}))}if(this.source.tableName){var i=this.source.sourceId+"_"+this.source.dbName+"_"+this.source.tableName,s=this.columnInfo[i]||[];s.length<=0&&b.tableColumnList({sourceId:this.source.sourceId,dbName:this.source.dbName,tableName:this.source.tableName}).then((function(e){t.columnInfo[i]=e.data.columnList||[]}))}}},startAutocomplete:function(e){this.isAutocomplete=!0,e.execCommand("startAutocomplete")},getCompletions:function(e,t,a,o,n){var r,i,s;return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:if(r=[],i=this.isAutocomplete?a.column:a.column-1,s=t.getLine(a.row).substring(0,i),this.isAutocomplete=!1,console.log("Executor.vue getCompletions,sourceId:"+JSON.stringify(this.source)+", lineStr:"+s,a),!this.source.tableName){e.next=12;break}return e.next=8,regeneratorRuntime.awrap(this.getAssignTableColumns(this.source.dbName,this.source.tableName));case 8:r=e.sent,n(null,r),e.next=35;break;case 12:if(!(s.endsWith("from ")||s.endsWith("join ")||s.endsWith("into ")||s.endsWith("update ")||s.endsWith("table "))){e.next=18;break}r=this.getDatabasesAndTables(),this.lastCallbackArr=r,n(null,r),e.next=35;break;case 18:if(!s.endsWith(".")){e.next=26;break}return e.next=21,regeneratorRuntime.awrap(this.getTablesAndColumns(s));case 21:r=e.sent,this.lastCallbackArr=r,n(null,r),e.next=35;break;case 26:if(!(s.endsWith("select ")||s.endsWith("where ")||s.endsWith("and ")||s.endsWith("or ")||s.endsWith("set "))){e.next=34;break}return e.next=29,regeneratorRuntime.awrap(this.getTableColumns(t,a));case 29:r=e.sent,this.lastCallbackArr=r,n(null,r),e.next=35;break;case 34:n(null,this.lastCallbackArr);case 35:case"end":return e.stop()}}),null,this)},getDatabasesAndTables:function(){var e=[],t=this.tableInfo[this.source.sourceId+"_"+this.source.dbName]||[];t.forEach((function(t){return e.push({caption:t.tableComment?t.tableName+"-"+t.tableComment:t.tableName,snippet:t.tableName,meta:"表",type:"snippet",score:1e3})}));var a=this.databaseInfo[this.source.sourceId]||[];return a.forEach((function(t){return e.push({caption:t.dbName,snippet:t.dbName,meta:"库",type:"snippet",score:1e3})})),e},getTablesAndColumns:function(e){var t,a,o,n,r,i,s,l,c,u;return regeneratorRuntime.async((function(d){while(1)switch(d.prev=d.next){case 0:t=!1,a=[],o=this.databaseInfo[this.source.sourceId]||[],n=0;case 4:if(!(n=0)){h.next=10;break}if(n=e.getLine(o),a=n+" "+a,!(n.indexOf(";")>=0)){h.next=7;break}return h.abrupt("break",10);case 7:o--,h.next=2;break;case 10:r=t.row+1;case 11:if(!(r=0)){h.next=16;break}return h.abrupt("break",19);case 16:r++,h.next=11;break;case 19:s=[],l=this.tableInfo[this.source.sourceId+"_"+this.source.dbName]||[],c=0;case 22:if(!(c=0)){h.next=29;break}return h.next=27,regeneratorRuntime.awrap(this.getAssignTableColumns(this.source.dbName,u));case 27:d=h.sent,s=s.concat(d);case 29:c++,h.next=22;break;case 32:return h.abrupt("return",s);case 33:case"end":return h.stop()}}),null,this)},getAssignTableColumns:function(e,t){var a,o,n,r;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:if(a=this.source.sourceId+"_"+e+"_"+t,o=this.columnInfo[a]||[],!(o.length<=0)){i.next=8;break}return i.next=5,regeneratorRuntime.awrap(b.tableColumnList({sourceId:this.source.sourceId,dbName:e,tableName:t}));case 5:n=i.sent,o=n.data.columnList||[],this.columnInfo[a]=o;case 8:return r=[],o.forEach((function(e){var t=e.description?e.name+"-"+e.description:e.name;r.push({caption:t,snippet:e.name,meta:"字段",type:"snippet",score:1e3})})),i.abrupt("return",r);case 11:case"end":return i.stop()}}),null,this)}}),mt=(a("aa11"),{render:function(e){var t=this.height?this.px(this.height):"100%",a=this.width?this.px(this.width):"100%";return e("div",{attrs:{style:"height: "+t+"; width: "+a}})},props:{value:String,source:Object,lang:!0,theme:String,height:!0,width:!0,options:Object},data:function(){return{editor:null,contentBackup:""}},watch:{value:function(e){this.contentBackup!==e&&(this.editor.session.setValue(e,1),this.contentBackup=e)},theme:function(e){this.editor.setTheme("ace/theme/"+e)},lang:function(e){this.editor.getSession().setMode("string"===typeof e?"ace/mode/"+e:e)},options:function(e){this.editor.setOptions(e)},height:function(){this.$nextTick((function(){this.editor.resize()}))},width:function(){this.$nextTick((function(){this.editor.resize()}))},source:function(e){pt.change(e)}},beforeDestroy:function(){this.editor.destroy(),this.editor.container.remove()},activated:function(){pt.change(this.source)},mounted:function(){var e=this,t=this.lang||"text",o=this.theme||"chrome";a("b378");var n=e.editor=ht.a.edit(this.$el);n.$blockScrolling=1/0,this.$emit("init",n),n.getSession().setMode("string"===typeof t?"ace/mode/"+t:t),n.setTheme("ace/theme/"+o),this.value&&n.setValue(this.value,1),this.contentBackup=this.value,n.on("change",(function(){var t=n.getValue();e.$emit("input",t),e.contentBackup=t})),n.commands.addCommand({name:"start-autocomplete",bindKey:{win:"Alt-Enter",mac:"Alt-Enter"},exec:function(e){pt.startAutocomplete(e)}}),e.options&&n.setOptions(e.options),pt.change(this.source)},methods:{px:function(e){return/^\d*$/.test(e)?e+"px":e}}}),ft=(a("fb6a"),a("4e82"),{set:{save:function(e,t,a){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100;if(window.localStorage){var n=JSON.parse(window.localStorage.getItem(e)||"[]"),r=n.find((function(e){return e.key===t}));r?(r.value=a,r.time=(new Date).getTime()):n.push({key:t,value:a,time:(new Date).getTime()}),n.sort((function(e,t){return t.time-e.time})),n=n.slice(0,o+1),window.localStorage.setItem(e,JSON.stringify(n))}else console.log("当前浏览器不支持localStorage")},get:function(e,t){if(!window.localStorage)return"";var a=JSON.parse(window.localStorage.getItem(e)||"[]"),o=a.find((function(e){return e.key===t}))||{};return o.value||""}}}),bt={name:"dataPreview",data:function(){return{sqlExecuting:!1,executeResultList:[],executeResultInfo:"",executeShowTable:"table1",sqlExecutorEditor:{},nowExecutorId:1,executeError:"",pageParam:{},vueQueryParam:{},pageSize:50,currentPage:1,tableTotalCount:0,tableSort:{},tableMaxHeight:600,tableStatusInfo:{},choiceResultObj:{},exportConditionVisible:!1,tableDataColumns:[],conditionDataCols:[],conditionDataColsChoice:[],downloadDataVisible:!1,downloadDataParam:{downloadType:"insert",dropTableFlag:0,createTableFlag:0,conditionColumnArr:[],retainColumnArr:[]},downloadFormParam:{url:"zyplayer-doc-db/data-view/downloadMultiple",param:{}},choiceShowColumnDrawer:!1,showColumnProps:{label:"name"},choiceShowColumnLast:[],choiceShowColumnAll:!0,sqlExecutorContent:"",sqlEditorConfig:{wrap:!0,autoScrollEditorIntoView:!0,enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0,minLines:3,maxLines:3},executorSource:{},columnMap:{},primaryKeyColumn:{},storageKey:{key:"zyplayer-doc-table-show-columns",subKey:""}}},components:{"ace-editor":mt},mounted:function(){var e=this,t=function(){e.tableMaxHeight=document.body.clientHeight-420};t(),window.onresize=t},methods:{init:function(e,t){var a=this;if(this.pageParam.sourceId!=e.sourceId){this.pageParam=e,this.executorSource={sourceId:e.sourceId,dbName:e.dbName,tableName:e.tableName},this.columnMap={},t.forEach((function(e){a.columnMap[e.name]=e,1==e.primaryKey&&(a.primaryKeyColumn=e)})),this.tableDataColumns=t,this.storageKey.subKey=e.sourceId+"-"+e.dbName+"-"+e.tableName;var o=ft.set.get(this.storageKey.key,this.storageKey.subKey);if(this.choiceShowColumnLast=t.map((function(e){return e.name})),o){var n=o.split(",");n=n.filter((function(e){return a.choiceShowColumnLast.indexOf(e)>=0})),n.length>0&&(this.choiceShowColumnLast=n)}this.doExecutorSqlCommon()}},sqlExecutorInit:function(e){this.sqlExecutorEditor=e,this.sqlExecutorEditor.setFontSize(16);var t=this;this.sqlExecutorEditor.commands.addCommand({name:"execute-sql",bindKey:{win:"Ctrl-R|Ctrl-Shift-R|Ctrl-Enter",mac:"Command-R|Command-Shift-R|Command-Enter"},exec:function(e){t.doExecutorClick()}})},handleCurrentChange:function(e){this.currentPage=e,this.doExecutorSqlCommon()},handlePageSizeChange:function(e){this.pageSize=e,this.currentPage=1,this.doExecutorSqlCommon()},tableSortChange:function(e){this.tableSort.prop===e.prop&&this.tableSort.order===e.order||(this.tableSort={prop:e.prop,order:e.order},this.doExecutorSqlCommon())},refreshData:function(){this.tableSort={},this.currentPage=1,this.sqlExecutorEditor.setValue("",1),this.doExecutorSqlCommon()},cancelExecutorSql:function(){var e=this;b.executeSqlCancel({executeId:this.nowExecutorId}).then((function(){e.sqlExecuting=!1,e.$message.success("取消成功")}))},doExecutorClick:function(){this.tableSort={},this.currentPage=1,this.doExecutorSqlCommon()},doExecutorSqlCommon:function(){var e=this;if(this.pageParam.sourceId){this.tableSort.prop||(this.tableSort={prop:this.pageParam.orderColumn,order:"ascending"});var t=this.sqlExecutorEditor.getSelectedText();t=t||this.sqlExecutorEditor.getValue(),t=t||"",this.executeError="",this.executeUseTime="",this.choiceResultObj={},this.executeResultList=[],this.nowExecutorId=(new Date).getTime()+Math.ceil(1e3*Math.random()),this.sqlExecuting=!0;var a={sourceId:this.pageParam.sourceId,dbName:this.pageParam.dbName,tableName:this.pageParam.tableName,executeId:this.nowExecutorId,condition:t,retainColumn:this.choiceShowColumnLast.join(","),pageNum:this.currentPage,pageSize:this.pageSize,orderColumn:this.tableSort.prop,orderType:"ascending"===this.tableSort.order?"asc":"desc",params:""};b.dataViewQuery(a).then((function(t){if(e.sqlExecuting=!1,200===t.errCode){for(var a=t.data||[],o=[],n="",r=1,i=0;i=0&&(t+="\n> 影响行数:"+e.updateCount),t+="\n> 耗时:"+(e.useTime||0)/1e3+"s",t+="\n\n",t},dealExecuteResult:function(e){var t=e.result||[],a=[];if(t.length>0){var o=t[0];for(var n in o){document.getElementById("widthCalculate").innerText=n;var r=document.getElementById("widthCalculate").offsetWidth;document.getElementById("widthCalculate").innerText=o[n];var i=document.getElementById("widthCalculate").offsetWidth,s=r>i?r:i;s=s<50?50:s,s=s>200?200:s;var l=this.columnMap[n]||{};a.push({prop:n,width:s+50,desc:l.description||n})}}var c={};return c.dataList=t,c.dataCols=a,c.useTime=e.useTime||0,c.errMsg=e.errMsg||"",c.updateCount=e.updateCount,c},handleSelectionChange:function(e){this.$set(this.choiceResultObj,this.executeShowTable,e)},doCopyCheckLineUpdate:function(){var e=this,t=this.choiceResultObj[this.executeShowTable]||[];if(t.length>0){var a=this.executeResultList.find((function(t){return t.name===e.executeShowTable})).dataCols,o=lt.format("update",this.pageParam.dbType,a,t,this.conditionDataColsChoice,this.pageParam.dbName,this.pageParam.tableName);this.conditionDataColsChoice=[],this.exportConditionVisible=!1,this.$copyText(o).then((function(t){return e.$message.success("内容已复制到剪切板!")}),(function(t){return e.$message.error("抱歉,复制失败!")}))}},deleteCheckLine:function(){var e=this,t=this.choiceResultObj[this.executeShowTable]||[];if(t.length>0){var a=this.primaryKeyColumn.name;if(!a)return void this.$message.error("删除失败,未找到数据表的主键列");var o=[];t.forEach((function(e){var t={};t[a]=e[a],o.push(t)})),this.$confirm("确定要删除选中的".concat(t.length,"行数据吗?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t={sourceId:e.pageParam.sourceId,dbName:e.pageParam.dbName,tableName:e.pageParam.tableName,lineJson:JSON.stringify(o)};b.deleteTableLineData(t).then((function(){e.$message.success("删除成功!"),e.refreshData()}))})).catch((function(){}))}},handleCopyCheckLineCommand:function(e){var t=this,a=this.choiceResultObj[this.executeShowTable]||[];if(a.length>0){this.conditionDataColsChoice=[];var o=this.executeResultList.find((function(e){return e.name===t.executeShowTable})).dataCols;if("update"===e){if(!this.primaryKeyColumn.name)return this.conditionDataCols=o,void(this.exportConditionVisible=!0);this.conditionDataColsChoice=[this.primaryKeyColumn.name]}var n=lt.format(e,this.pageParam.dbType,o,a,this.conditionDataColsChoice,this.pageParam.dbName,this.pageParam.tableName);this.$copyText(n).then((function(e){return t.$message.success("内容已复制到剪切板!")}),(function(e){return t.$message.error("抱歉,复制失败!")}))}},doDownloadTableData:function(){var e=this,t=this.sqlExecutorEditor.getSelectedText();t=t||this.sqlExecutorEditor.getValue(),t=t||"",this.nowExecutorId=(new Date).getTime()+Math.ceil(1e3*Math.random());var a={},o={},n={};a[this.pageParam.tableName]=t,o[this.pageParam.tableName]=this.downloadDataParam.conditionColumnArr.join(","),n[this.pageParam.tableName]=this.choiceShowColumnLast.join(","),this.downloadFormParam.param={executeId:this.nowExecutorId,sourceId:this.pageParam.sourceId,dbName:this.pageParam.dbName,tableNames:this.pageParam.tableName,downloadType:this.downloadDataParam.downloadType,dropTableFlag:this.downloadDataParam.dropTableFlag,createTableFlag:this.downloadDataParam.createTableFlag,conditionJson:JSON.stringify(a),conditionColumnJson:JSON.stringify(o),retainColumnJson:JSON.stringify(n)},setTimeout((function(){return e.$refs.downloadForm.submit()}),0),this.downloadDataVisible=!1},downloadTableData:function(){var e=this,t=this.executeResultList.find((function(t){return t.name===e.executeShowTable}));if(!t||!t.dataList||t.dataList.length<=0)this.$message.warning("当前筛选条件下无数据,请重新筛选后再操作导出");else{var a=this.primaryKeyColumn.name;this.downloadDataParam.conditionColumnArr.length<=0&&a&&(this.downloadDataParam.conditionColumnArr=[a]),this.conditionDataCols=t.dataCols,this.downloadDataVisible=!0}},dropTableFlagChange:function(){1===this.downloadDataParam.dropTableFlag&&(this.downloadDataParam.createTableFlag=1)},createTableFlagChange:function(){0==this.downloadDataParam.createTableFlag&&(this.downloadDataParam.dropTableFlag=0)},choiceShowColumnDrawerShow:function(){var e=this;this.choiceShowColumnDrawer=!0,setTimeout((function(){e.$refs.showColumnTree.setCheckedKeys(e.choiceShowColumnLast),e.choiceShowColumnAll=e.choiceShowColumnLast.length===e.tableDataColumns.length}),10)},choiceShowColumnDrawerClose:function(){this.choiceShowColumnDrawer=!1},choiceShowColumnOk:function(){var e=this.$refs.showColumnTree.getCheckedKeys();e.length<=0?this.$message.warning("必须选择一列展示"):(ft.set.save(this.storageKey.key,this.storageKey.subKey,e.join(","),50),this.choiceShowColumnLast=e,this.choiceShowColumnDrawer=!1,this.doExecutorClick())},tableDataColumnsCheckChange:function(){var e=this.$refs.showColumnTree.getCheckedKeys();this.choiceShowColumnAll=e.length===this.tableDataColumns.length},choiceShowColumnAllChange:function(){var e=[];this.choiceShowColumnAll&&(e=this.tableDataColumns.map((function(e){return e.name}))),this.$refs.showColumnTree.setCheckedKeys(e)}}},gt=bt,vt=(a("f52e"),Object(C["a"])(gt,nt,rt,!1,null,null,null)),yt=vt.exports,wt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"data-executor-vue"},[e._m(0),a("el-dialog",{attrs:{visible:e.choiceRelationColumnVisible,width:"750px",title:"选择关联的表字段 "+e.editNodeInfo.tableName+"."+e.editNodeInfo.columnName},on:{"update:visible":function(t){e.choiceRelationColumnVisible=t}}},[e._l(e.editRelationArr,(function(t){return a("div",{staticStyle:{"margin-top":"10px"}},[a("el-select",{staticStyle:{"margin-right":"10px",width:"200px"},attrs:{filterable:"",placeholder:"请选择数据库"},on:{change:function(a){return e.dbNameChangeEvents(t)}},model:{value:t.dbName,callback:function(a){e.$set(t,"dbName",a)},expression:"item.dbName"}},e._l(e.databaseList,(function(e){return a("el-option",{key:e.dbName,attrs:{label:e.dbName,value:e.dbName}})})),1),a("el-select",{staticStyle:{"margin-right":"10px",width:"200px"},attrs:{filterable:"",placeholder:"请选择数据表"},on:{change:function(a){return e.tableNameChangeEvents(t)}},model:{value:t.tableName,callback:function(a){e.$set(t,"tableName",a)},expression:"item.tableName"}},e._l(e.dbTableList[t.dbName],(function(e){return a("el-option",{key:e.tableName,attrs:{label:e.tableName,value:e.tableName}})})),1),a("el-select",{staticStyle:{"margin-right":"10px",width:"200px"},attrs:{filterable:"",placeholder:"请选择表字段"},model:{value:t.columnName,callback:function(a){e.$set(t,"columnName",a)},expression:"item.columnName"}},e._l(e.dbTableColumnList[t.dbName+"."+t.tableName],(function(e){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.name}})})),1),a("el-button",{attrs:{icon:"el-icon-delete",circle:""},on:{click:function(a){return e.delTableColumnRelation(t)}}})],1)})),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.addTableColumnRelation}},[e._v("添加关联")]),a("el-button",{attrs:{type:"primary"},on:{click:e.doUpdateTableColumnRelation}},[e._v("确 定")])],1)],2)],1)},xt=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"max(100%, 1000px)",height:"calc(100vh - 160px)",overflow:"auto"}},[a("div",{staticStyle:{width:"1500px",height:"1000px"},attrs:{id:"relationChart"}})])}],Ct=a("313e"),St={name:"tableRelation",data:function(){return{pageParam:{},relationChart:{},relationChartData:{},relationChartOption:{},editNodeInfo:{},editRelationArr:[],databaseList:[],dbTableList:{},dbTableColumnList:{},choiceRelationColumnVisible:!1,columnListLoading:!1}},mounted:function(){},methods:{init:function(e){var t=this;this.pageParam.sourceId!=e.sourceId&&(this.pageParam=e,this.relationChartData.name=e.tableName,this.relationChart=Ct["init"](document.getElementById("relationChart")),this.relationChartOption={tooltip:{trigger:"item",triggerOn:"mousemove"},series:[{type:"tree",id:0,name:"tree1",data:[this.relationChartData],top:"10%",left:"8%",bottom:"22%",right:"20%",symbolSize:7,edgeShape:"polyline",edgeForkPosition:"63%",initialTreeDepth:3,lineStyle:{width:2},label:{backgroundColor:"#fff",position:"right",verticalAlign:"middle",align:"left"},leaves:{label:{position:"right",verticalAlign:"middle",align:"left"}},emphasis:{focus:"descendant"},expandAndCollapse:!1,animationDuration:550,animationDurationUpdate:750}]},this.relationChart.setOption(this.relationChartOption),this.relationChart.on("click",(function(e){if(1==e.data.nodeType){t.editNodeInfo=e.data;var a=t.editNodeInfo.children||[];t.editRelationArr=[],a.length<=0?t.editRelationArr.push({dbName:t.pageParam.dbName,tableName:"",columnName:""}):a.forEach((function(e){t.editRelationArr.push({dbName:e.dbName,tableName:e.tableName,columnName:e.columnName})}));var o=[],n=[];t.editRelationArr.forEach((function(e){o.indexOf(e.dbName)<0&&(o.push(e.dbName),t.dbNameChangeEvents(e)),n.indexOf(e.dbName+"."+e.tableName)<0&&(n.push(e.dbName+"."+e.tableName),t.tableNameChangeEvents(e))})),t.choiceRelationColumnVisible=!0}})),this.relationChart.on("contextmenu",(function(e){console.log(e)})),this.doGetTableColumnRelation(),b.databaseList({sourceId:this.pageParam.sourceId}).then((function(e){t.databaseList=e.data||[]})))},doGetTableColumnRelation:function(){var e=this;this.relationChart.clear(),b.getTableColumnRelation(this.pageParam).then((function(t){e.relationChartData=t.data||{},e.relationChartOption.series[0].data=[t.data||{}],e.columnListLoading=!1,e.relationChart.setOption(e.relationChartOption),setTimeout((function(){return e.relationChart.resize()}),0)}))},delTableColumnRelation:function(e){this.editRelationArr=this.editRelationArr.filter((function(t){return t!==e}))},addTableColumnRelation:function(){this.editRelationArr.push({dbName:this.pageParam.dbName,tableName:"",columnName:""})},doUpdateTableColumnRelation:function(){var e=this,t={dbName:this.editNodeInfo.dbName,tableName:this.editNodeInfo.tableName,columnName:this.editNodeInfo.columnName,sourceId:this.pageParam.sourceId,relation:JSON.stringify(this.editRelationArr)};b.updateTableColumnRelation(t).then((function(t){e.choiceRelationColumnVisible=!1,e.doGetTableColumnRelation()}))},dbNameChangeEvents:function(e){var t=this;b.tableList({sourceId:this.pageParam.sourceId,dbName:e.dbName}).then((function(a){t.$set(t.dbTableList,e.dbName,a.data||[])}))},tableNameChangeEvents:function(e){var t=this;b.tableColumnList({sourceId:this.pageParam.sourceId,dbName:e.dbName,tableName:e.tableName}).then((function(a){t.$set(t.dbTableColumnList,e.dbName+"."+e.tableName,a.data.columnList||[])}))}}},Dt=St,_t=(a("499b"),Object(C["a"])(Dt,wt,xt,!1,null,null,null)),kt=_t.exports,It={data:function(){return{columnListLoading:!1,vueQueryParam:{},tableStatusInfo:{},columnList:[],tableInfo:{},nowExecutorId:1,tableDDLInfoTab:"",tableDDLInfo:"",tableDDLInfoDialogVisible:!1,tabActiveName:"columns"}},mounted:function(){var e=this;setTimeout((function(){e.$emit("initLoadDataList",{sourceId:e.vueQueryParam.sourceId,host:e.vueQueryParam.host,dbName:e.vueQueryParam.dbName})}),500)},activated:function(){this.initQueryParam(this.$route)},components:{"data-preview":yt,"table-relation-charts":kt},methods:{initQueryParam:function(e){var t=this;this.columnListLoading||(this.columnListLoading=!0,this.vueQueryParam=e.query,b.tableColumnList(this.vueQueryParam).then((function(e){for(var a=e.data.columnList||[],o=0;o0?"编辑数据源":"新增数据源",visible:e.datasourceDialogVisible,width:"760px","close-on-click-modal":!1},on:{"update:visible":function(t){e.datasourceDialogVisible=t}}},[a("el-form",{attrs:{"label-width":"120px"}},[a("el-form-item",{attrs:{label:"分组:"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择或输入新的分组名字",filterable:"","allow-create":""},model:{value:e.newDatasource.groupName,callback:function(t){e.$set(e.newDatasource,"groupName",t)},expression:"newDatasource.groupName"}},[a("el-option",{attrs:{value:""}},[e._v("未分组")]),e._l(e.datasourceGroupList,(function(e){return a("el-option",{attrs:{value:e}})}))],2)],1),a("el-form-item",{attrs:{label:"数据源名称:"}},[a("el-input",{attrs:{placeholder:"给数据源起个中文名称"},model:{value:e.newDatasource.name,callback:function(t){e.$set(e.newDatasource,"name",t)},expression:"newDatasource.name"}})],1),a("el-form-item",{attrs:{label:"驱动类:"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"驱动类"},on:{change:e.driverClassNameChange},model:{value:e.newDatasource.driverClassName,callback:function(t){e.$set(e.newDatasource,"driverClassName",t)},expression:"newDatasource.driverClassName"}},[a("el-option",{attrs:{label:"com.mysql.jdbc.Driver",value:"com.mysql.jdbc.Driver"}}),a("el-option",{attrs:{label:"net.sourceforge.jtds.jdbc.Driver",value:"net.sourceforge.jtds.jdbc.Driver"}}),a("el-option",{attrs:{label:"oracle.jdbc.driver.OracleDriver",value:"oracle.jdbc.driver.OracleDriver"}}),a("el-option",{attrs:{label:"org.postgresql.Driver",value:"org.postgresql.Driver"}}),a("el-option",{attrs:{label:"org.apache.hive.jdbc.HiveDriver",value:"org.apache.hive.jdbc.HiveDriver"}})],1)],1),a("el-form-item",{attrs:{label:"数据源URL:"}},[a("el-input",{attrs:{placeholder:e.urlPlaceholder},model:{value:e.newDatasource.sourceUrl,callback:function(t){e.$set(e.newDatasource,"sourceUrl",t)},expression:"newDatasource.sourceUrl"}})],1),a("el-form-item",{attrs:{label:"账号:"}},[a("el-input",{attrs:{placeholder:"账号"},model:{value:e.newDatasource.sourceName,callback:function(t){e.$set(e.newDatasource,"sourceName",t)},expression:"newDatasource.sourceName"}})],1),a("el-form-item",{attrs:{label:"密码:"}},[a("el-input",{attrs:{placeholder:"密码"},model:{value:e.newDatasource.sourcePassword,callback:function(t){e.$set(e.newDatasource,"sourcePassword",t)},expression:"newDatasource.sourcePassword"}})],1),a("el-form-item",{attrs:{label:"测试连接:"}},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.testDatasourceErrLoading,expression:"testDatasourceErrLoading"}],attrs:{type:"primary"},on:{click:e.testDatasource}},[e._v("测试数据源")])],1)],1),a("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveDatasource}},[e._v("保存")]),a("el-button",{attrs:{plain:""},on:{click:function(t){e.datasourceDialogVisible=!1}}},[e._v("取消")])],1)],1),a("el-dialog",{attrs:{visible:e.dbSourceAuthDialogVisible,width:"900px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dbSourceAuthDialogVisible=t}}},[a("span",{attrs:{slot:"title"},slot:"title"},[a("span",[e._v("权限编辑")]),a("span",{staticStyle:{"margin-left":"10px",color:"#999","font-size":"12px"}},[a("i",{staticClass:"el-icon-info"}),e._v(" 添加、删除或编辑之后记得点击保存哦~")])]),a("el-row",[a("el-select",{staticStyle:{width:"750px","margin-right":"10px"},attrs:{filterable:"",remote:"","reserve-keyword":"",autoComplete:"new-password",placeholder:"请输入名字、邮箱、账号搜索用户","remote-method":e.getSearchUserList,loading:e.dbSourceAuthUserLoading},model:{value:e.dbSourceAuthNewUser,callback:function(t){e.dbSourceAuthNewUser=t},expression:"dbSourceAuthNewUser"}},e._l(e.searchUserList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.userName,value:e.id}})})),1),a("el-button",{on:{click:e.addDbSourceAuthUser}},[e._v("添加")])],1),a("el-table",{staticStyle:{width:"100%",margin:"10px 0"},attrs:{data:e.dbSourceAuthUserList,border:"",size:"mini"}},[a("el-table-column",{attrs:{prop:"userName",label:"用户",width:"150"}}),a("el-table-column",{attrs:{label:"权限"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticStyle:{width:"150px","margin-right":"10px"},attrs:{placeholder:"选择权限"},model:{value:t.row.executeAuth,callback:function(a){e.$set(t.row,"executeAuth",a)},expression:"scope.row.executeAuth"}},[a("el-option",{attrs:{value:""}},[e._v("无权限")]),a("el-option",{attrs:{value:1,label:"库表查看权"}}),a("el-option",{attrs:{value:2,label:"数据查询权"}}),a("el-option",{attrs:{value:3,label:"所有权限"}})],1),a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.descEditAuth,callback:function(a){e.$set(t.row,"descEditAuth",a)},expression:"scope.row.descEditAuth"}},[e._v("表字段注释修改权")]),a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.procEditAuth,callback:function(a){e.$set(t.row,"procEditAuth",a)},expression:"scope.row.procEditAuth"}},[e._v("函数修改权")])]}}])}),a("el-table-column",{attrs:{label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"small",type:"danger",plain:""},on:{click:function(a){return e.deleteUserDbSourceAuth(t.row)}}},[e._v("删除")])]}}])})],1),a("div",[a("el-button",{attrs:{type:"primary"},on:{click:e.saveUserDbSourceAuth}},[e._v("保存配置")])],1)],1),a("el-dialog",{attrs:{title:"测试数据源失败",visible:e.testDatasourceErrVisible,footer:null,width:"760px"},on:{"update:visible":function(t){e.testDatasourceErrVisible=t}}},[a("div",{directives:[{name:"highlight",rawName:"v-highlight"}]},[a("pre",[a("code",{domProps:{innerHTML:e._s(e.testDatasourceErrInfo)}})])])])],1)},ea=[];function ta(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function aa(e){for(var t=1;t0?a("div",{staticClass:"sql-params"},e._l(e.sqlParams,(function(t){return a("el-input",{attrs:{placeholder:"请输入"+t.key+"的值"},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"param.value"}},[a("template",{slot:"prepend"},[e._v(e._s(t.key))])],2)})),1):e._e()],1),a("el-card",[a("div",{staticStyle:{position:"relative"}},[a("div",{staticStyle:{position:"absolute",right:"0","z-index":"1"}},[a("el-dropdown",{directives:[{name:"show",rawName:"v-show",value:this.choiceResultObj[this.executeShowTable]&&this.choiceResultObj[this.executeShowTable].length>0,expression:"this.choiceResultObj[this.executeShowTable] && this.choiceResultObj[this.executeShowTable].length > 0"}],on:{command:e.handleCopyCheckLineCommand}},[a("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-document-copy"}},[e._v(" 复制选中行"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"insert"}},[e._v("SQL Inserts")]),a("el-dropdown-item",{attrs:{command:"update"}},[e._v("SQL Updates")]),a("el-dropdown-item",{attrs:{command:"json"}},[e._v("JSON")])],1)],1)],1),a("el-tabs",{model:{value:e.executeShowTable,callback:function(t){e.executeShowTable=t},expression:"executeShowTable"}},[a("el-tab-pane",{attrs:{label:"执行历史",name:"tabHistory"}},[a("el-table",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.myHistoryListList,stripe:"",border:""}},[a("el-table-column",{attrs:{prop:"createTime",label:"执行时间",width:"160px"}}),a("el-table-column",{attrs:{prop:"content",label:"SQL"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("pre",{staticClass:"sql-content-line",attrs:{title:t.row.content},on:{dblclick:function(a){return e.inputFavoriteSql(t.row)}}},[e._v(e._s(t.row.content))])]}}])}),a("el-table-column",{attrs:{label:"操作",width:"160px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){return e.inputFavoriteSql(t.row)}}},[e._v("输入")]),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"mini",type:"success"},on:{click:function(a){return e.addFavorite(t.row.content)}}},[e._v("收藏")])]}}])})],1)],1),a("el-tab-pane",{attrs:{label:"我的收藏",name:"tabFavorite"}},[a("el-table",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll"}],staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.myFavoriteList,stripe:"",border:""}},[a("el-table-column",{attrs:{prop:"createTime",label:"执行时间",width:"160px"}}),a("el-table-column",{attrs:{prop:"content",label:"SQL"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("pre",{staticClass:"sql-content-line",attrs:{title:t.row.content},on:{dblclick:function(a){return e.inputFavoriteSql(t.row)}}},[e._v(e._s(t.row.content))])]}}])}),a("el-table-column",{attrs:{label:"操作",width:"160px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){return e.inputFavoriteSql(t.row)}}},[e._v("输入")]),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"mini",type:"danger"},on:{click:function(a){return e.delFavorite(t.row)}}},[e._v("删除")])]}}])})],1)],1),e.executeResultInfo?a("el-tab-pane",{attrs:{label:"信息",name:"tabInfo"}},[a("pre",{staticStyle:{"white-space":"pre-wrap"}},[e._v(e._s(e.executeResultInfo))])]):e._e(),e.executeError?a("el-tab-pane",{attrs:{label:"错误",name:"tabError"}},[a("div",{staticStyle:{color:"#f00"}},[e._v(e._s(e.executeError))])]):e._l(e.executeResultList,(function(t){return t.index?a("el-tab-pane",{attrs:{label:"结果"+t.index,name:t.name}},[t.errMsg?a("div",{staticStyle:{color:"#f00"}},[e._v(e._s(t.errMsg))]):t.dataList.length<=0?a("div",{staticStyle:{"text-align":"center",color:"#aaa",padding:"20px 0"}},[e._v("暂无数据")]):a("el-table",{staticClass:"execute-result-table",staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:t.dataList,stripe:"",border:"","max-height":"600"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{type:"index",width:"50"}}),e._l(t.dataCols,(function(t){return a("el-table-column",{attrs:{prop:t.prop,label:t.prop,width:t.width},scopedSlots:e._u([{key:"default",fn:function(e){return[a("textarea",{staticClass:"el-textarea__inner",attrs:{readonly:"",rows:"1"},domProps:{value:e.row[t.prop]}})]}}],null,!0)})}))],2)],1):e._e()}))],2)],1)])],1),a("el-dialog",{attrs:{visible:e.exportConditionVisible,width:"500px",title:"选择更新语句条件"},on:{"update:visible":function(t){e.exportConditionVisible=t}}},[a("div",[e._v(" 更新条件列: "),a("el-select",{staticStyle:{width:"370px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.conditionDataColsChoice,callback:function(t){e.conditionDataColsChoice=t},expression:"conditionDataColsChoice"}},e._l(e.conditionDataCols,(function(e){return a("el-option",{key:e.prop,attrs:{label:e.prop,value:e.prop}})})),1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.exportConditionVisible=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.doCopyCheckLineUpdate}},[e._v("确 定")])],1)]),a("span",{staticStyle:{visibility:"hidden","white-space":"nowrap",position:"fixed"},attrs:{id:"widthCalculate"}})],1)},ma=[],fa={parser:function(e,t,a){var o=[];if(!e)return o;var n=e.indexOf(t,0);if(-1==n)return o;var r=0,i="";while(n>-1){if(n>0&&"\\"==e[n-1])r=n+t.length;else{i="",r=n+t.length;var s=e.indexOf(a,r);while(s>-1){if(!(s>r&&"\\"==e[s-1])){i+=e.substr(r,s-r),r=s+a.length;break}i+=e.substr(r,s-r-1),r=s+a.length,s=e.indexOf(a,r)}-1==s?r=e.length:(i&&o.push(i),r=s+a.length)}n=e.indexOf(t,r)}return o},parserArr:function(e,t){var a=this,o={};t.forEach((function(t){var n=a.parser(e,t.start,t.end);n.forEach((function(e){return o[e]=1}))}));var n=[];for(var r in o)n.push(r);return n}},ba={data:function(){return{datasourceList:[],choiceDatasourceId:"",datasourceOptions:[],datasourceGroupList:[],choiceDatasourceGroup:"",databaseList:[],choiceDatabase:"",editorDbProduct:"",editorDbInfo:[],editorDbTableInfo:{},editorColumnInfo:{},sqlExecuting:!1,executeResultList:[],executeResultInfo:"",executeShowTable:"tabHistory",sqlExecutorEditor:{},nowExecutorId:1,executeError:"",myFavoriteList:[],myHistoryListList:[],choiceResultObj:{},exportConditionVisible:!1,conditionDataCols:[],conditionDataColsChoice:[],sqlExecutorContent:"",sqlEditorConfig:{wrap:!0,autoScrollEditorIntoView:!0,enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0,minLines:15,maxLines:40},executorSource:{},sqlParams:[],sqlParamWaiting:!1,sqlParamHistory:{}}},components:{"ace-editor":mt},mounted:function(){this.loadDatasourceList()},methods:{sqlExecutorInit:function(e){var t=this;this.sqlExecutorEditor=e,this.sqlExecutorEditor.setFontSize(16);var a=this;this.sqlExecutorEditor.commands.addCommand({name:"execute-sql",bindKey:{win:"Ctrl-R|Ctrl-Shift-R|Ctrl-Enter",mac:"Command-R|Command-Shift-R|Command-Enter"},exec:function(e){a.doExecutorSql()}}),e.on("change",(function(){t.sqlParamWaiting||(t.sqlParamWaiting=!0,setTimeout((function(){var a=e.getValue(),o=fa.parserArr(a,[{start:"${",end:"}"},{start:"#{",end:"}"}]);t.sqlParams=[],o.forEach((function(e){t.sqlParams.push({key:e,value:t.sqlParamHistory[e]||""})})),t.sqlParamWaiting=!1}),300))}))},cancelExecutorSql:function(){var e=this;b.executeSqlCancel({executeId:this.nowExecutorId}).then((function(){e.$message.success("取消成功")}))},loadHistoryAndFavoriteList:function(){this.loadHistoryList(),this.loadFavoriteList()},loadFavoriteList:function(){var e=this;b.favoriteList({sourceId:this.choiceDatasourceId}).then((function(t){e.myFavoriteList=t.data||[]}))},loadHistoryList:function(){var e=this;b.historyList({sourceId:this.choiceDatasourceId}).then((function(t){e.myHistoryListList=t.data||[]}))},addFavorite:function(e){var t=this;e||(e=this.sqlExecutorEditor.getSelectedText(),e||(e=this.sqlExecutorEditor.getValue()));var a={};this.sqlParams.forEach((function(e){e.value&&(a[e.key]=e.value)}));var o={name:"我的收藏",content:e,paramJson:JSON.stringify(a),datasourceId:this.choiceDatasourceId};b.updateFavorite(o).then((function(){t.$message.success("收藏成功"),t.loadFavoriteList()}))},delFavorite:function(e){var t=this;b.updateFavorite({id:e.id,yn:0}).then((function(){t.$message.success("删除成功"),t.loadFavoriteList()}))},inputFavoriteSql:function(e){if(this.sqlExecutorEditor.setValue(e.content,1),e.paramJson){var t=JSON.parse(e.paramJson);for(var a in t)this.sqlParamHistory[a]=t[a]}},formatterSql:function(){var e=this.sqlExecutorEditor.getSelectedText();if(e){var t=this.sqlExecutorEditor.getSelectionRange();this.sqlExecutorEditor.remove(t)}else e=this.sqlExecutorEditor.getValue(),this.sqlExecutorEditor.setValue("",1);e&&(e=ut.a.format(e),this.sqlExecutorEditor.insert(e))},doExecutorSql:function(){var e=this;if(this.choiceDatasourceId){this.executeError="",this.executeUseTime="",this.executeResultList=[];var t={};this.sqlParams.forEach((function(a){a.value&&(t[a.key]=a.value,e.sqlParamHistory[a.key]=a.value)})),this.nowExecutorId=(new Date).getTime()+Math.ceil(1e3*Math.random());var a=this.sqlExecutorEditor.getSelectedText();a||(a=this.sqlExecutorEditor.getValue()),this.sqlExecuting=!0,b.queryExecuteSql({sourceId:this.choiceDatasourceId,dbName:this.choiceDatabase,executeId:this.nowExecutorId,sql:a,params:JSON.stringify(t)}).then((function(t){if(e.sqlExecuting=!1,200!=t.errCode)return e.executeShowTable="tabError",void(e.executeError=t.errMsg);for(var a=t.data||[],o=[],n="",r=1,i=0;i0&&(e.choiceDatasourceId=e.datasourceList[0].id,e.executorSource={sourceId:e.choiceDatasourceId},e.loadDatabaseList(),e.loadSourceBaseInfo(),e.loadHistoryAndFavoriteList())}))},loadDatabaseList:function(){var e=this;b.databaseList({sourceId:this.choiceDatasourceId}).then((function(t){if(e.databaseList=t.data||[],e.databaseList.length>0){var a=["information_schema","master","model","msdb","tempdb"],o=e.databaseList.find((function(e){return a.indexOf(e.dbName)<0}));e.choiceDatabase=o?o.dbName:e.databaseList[0].dbName,e.executorSource={sourceId:e.choiceDatasourceId,dbName:e.choiceDatabase}}}))},loadSourceBaseInfo:function(){var e=this;b.getSourceBaseInfo({sourceId:this.choiceDatasourceId}).then((function(t){var a=t.data||{};e.editorDbProduct=a.product||""}))},sourceGroupChangeEvents:function(){for(var e=[],t=0;t0&&(this.choiceDatasourceId=e[0].id,this.executorSource={sourceId:this.choiceDatasourceId},this.loadDatabaseList(),this.loadSourceBaseInfo(),this.loadHistoryAndFavoriteList())},datasourceChangeEvents:function(){this.executorSource={sourceId:this.choiceDatasourceId},this.loadDatabaseList(),this.loadSourceBaseInfo(),this.loadHistoryAndFavoriteList()},databaseChangeEvents:function(){this.executorSource={sourceId:this.choiceDatasourceId,dbName:this.choiceDatabase}},getExecuteInfoStr:function(e){var t=e.sql;return t+="\n> 状态:"+(e.errMsg?"ERROR":"OK"),e.updateCount>=0&&(t+="\n> 影响行数:"+e.updateCount),t+="\n> 耗时:"+(e.useTime||0)/1e3+"s",t+="\n\n",t},dealExecuteResult:function(e){var t=e.result||[],a=[];if(t.length>0){var o=t[0];for(var n in o){document.getElementById("widthCalculate").innerText=n;var r=document.getElementById("widthCalculate").offsetWidth;document.getElementById("widthCalculate").innerText=o[n];var i=document.getElementById("widthCalculate").offsetWidth,s=r>i?r:i;s=s<50?50:s,s=s>200?200:s,a.push({prop:n,width:s+25})}}var l={};return l.dataList=t,l.dataCols=a,l.useTime=e.useTime||0,l.errMsg=e.errMsg||"",l.updateCount=e.updateCount,l},handleSelectionChange:function(e){this.$set(this.choiceResultObj,this.executeShowTable,e)},doCopyCheckLineUpdate:function(){var e=this,t=this.choiceResultObj[this.executeShowTable]||[];if(t.length>0){var a=this.executeResultList.find((function(t){return t.name===e.executeShowTable})).dataCols,o=lt.format("update",this.editorDbProduct,a,t,this.conditionDataColsChoice);this.conditionDataColsChoice=[],this.exportConditionVisible=!1,this.$copyText(o).then((function(t){return e.$message.success("内容已复制到剪切板!")}),(function(t){return e.$message.error("抱歉,复制失败!")}))}},handleCopyCheckLineCommand:function(e){var t=this,a=this.choiceResultObj[this.executeShowTable]||[];if(a.length>0){var o=this.executeResultList.find((function(e){return e.name===t.executeShowTable})).dataCols;if("update"===e)return this.conditionDataCols=o,void(this.exportConditionVisible=!0);var n=lt.format(e,this.editorDbProduct,o,a,"");this.$copyText(n).then((function(e){return t.$message.success("内容已复制到剪切板!")}),(function(e){return t.$message.error("抱歉,复制失败!")}))}}}},ga=ba,va=(a("7002"),Object(C["a"])(ga,pa,ma,!1,null,null,null)),ya=va.exports,wa=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"data-transfer-vue"},[a("div",{staticStyle:{padding:"0 10px",height:"100%","box-sizing":"border-box"}},[a("el-card",[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("数据互导工具")]),a("a",{attrs:{target:"_blank",title:"点击查看如何使用",href:"http://doc.zyplayer.com/doc-wiki#/page/share/view?pageId=128&space=23f3f59a60824d21af9f7c3bbc9bc3cb"}},[a("i",{staticClass:"el-icon-info",staticStyle:{color:"#999"}})])]),a("div",{staticStyle:{"margin-bottom":"10px","text-align":"right"}},[a("el-button",{attrs:{type:"success",icon:"el-icon-plus"},on:{click:e.createNewTask}},[e._v("新建")]),a("el-button",{attrs:{type:"primary",loading:e.loadDataListLoading,icon:"el-icon-refresh"},on:{click:e.loadGetTaskList}},[e._v("查询")])],1),a("el-table",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.taskList,stripe:"",border:""}},[a("el-table-column",{attrs:{prop:"id",label:"ID",width:"55"}}),a("el-table-column",{attrs:{prop:"name",label:"任务名称"}}),a("el-table-column",{attrs:{label:"条数查询"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.needCount?"是":"否"))]}}])}),a("el-table-column",{attrs:{prop:"lastExecuteStatus",label:"最后执行状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.lastExecuteStatus?a("el-tag",[e._v("未执行")]):1==t.row.lastExecuteStatus?a("el-tag",{attrs:{type:"info"}},[e._v("执行中")]):2==t.row.lastExecuteStatus?a("el-tag",{attrs:{type:"success"}},[e._v("执行成功")]):3==t.row.lastExecuteStatus?a("el-tag",{attrs:{type:"danger"}},[e._v("执行失败")]):4==t.row.lastExecuteStatus?a("el-tag",{attrs:{type:"warning"}},[e._v("取消执行")]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"lastExecuteTime",label:"最后执行时间"}}),a("el-table-column",{attrs:{prop:"createUserName",label:"创建人"}}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间"}}),a("el-table-column",{attrs:{label:"操作",width:"290"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){return e.viewTask(t.row.id)}}},[e._v("查看")]),a("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(a){return e.editTask(t.row)}}},[e._v("编辑")]),a("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(a){return e.executeTask(t.row.id)}}},[e._v("执行")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){return e.deleteTask(t.row.id)}}},[e._v("删除")])]}}])})],1)],1)],1),a("el-dialog",{attrs:{visible:e.taskEditDialogVisible,width:"900px","close-on-click-modal":!1},on:{"update:visible":function(t){e.taskEditDialogVisible=t}}},[e.taskEditInfo.id?a("span",{attrs:{slot:"title"},slot:"title"},[e._v("编辑任务")]):a("span",{attrs:{slot:"title"},slot:"title"},[e._v("新建任务")]),a("el-form",{attrs:{"label-width":"120px"}},[a("el-form-item",{attrs:{label:"任务名称:"}},[a("el-input",{attrs:{placeholder:"任务名称"},model:{value:e.taskEditInfo.name,callback:function(t){e.$set(e.taskEditInfo,"name",t)},expression:"taskEditInfo.name"}})],1),a("el-form-item",{attrs:{label:"查询数据源:"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择查询数据源"},model:{value:e.taskEditInfo.queryDatasourceId,callback:function(t){e.$set(e.taskEditInfo,"queryDatasourceId",t)},expression:"taskEditInfo.queryDatasourceId"}},e._l(e.datasourceOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"查询SQL:"}},[a("ace-editor",{attrs:{lang:"sql",theme:"monokai",width:"100%",height:"100",options:e.editSqlConfig},on:{init:e.querySqlInit},model:{value:e.querySqlContent,callback:function(t){e.querySqlContent=t},expression:"querySqlContent"}})],1),a("el-form-item",{attrs:{label:"总条数查询:"}},[a("el-radio",{attrs:{label:0},model:{value:e.taskEditInfo.needCount,callback:function(t){e.$set(e.taskEditInfo,"needCount",t)},expression:"taskEditInfo.needCount"}},[e._v("不查询")]),a("el-radio",{attrs:{label:1},model:{value:e.taskEditInfo.needCount,callback:function(t){e.$set(e.taskEditInfo,"needCount",t)},expression:"taskEditInfo.needCount"}},[e._v("自动查询")])],1),a("el-form-item",{attrs:{label:"入库数据源:"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择写入数据源"},model:{value:e.taskEditInfo.storageDatasourceId,callback:function(t){e.$set(e.taskEditInfo,"storageDatasourceId",t)},expression:"taskEditInfo.storageDatasourceId"}},e._l(e.datasourceOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"入库SQL:"}},[a("ace-editor",{attrs:{lang:"sql",theme:"monokai",width:"100%",height:"100",options:e.editSqlConfig},on:{init:e.storageSqlInit},model:{value:e.storageSqlContent,callback:function(t){e.storageSqlContent=t},expression:"storageSqlContent"}}),a("el-button",{staticStyle:{"margin-top":"10px"},on:{click:e.autoFillStorageSql}},[e._v("智能填充")])],1)],1),a("div",{staticStyle:{"text-align":"center"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveEditTask}},[e._v("保存")]),a("el-button",{attrs:{type:"warning"},on:{click:function(t){e.taskEditDialogVisible=!1}}},[e._v("取消")])],1)],1),a("el-dialog",{attrs:{visible:e.taskViewDialogVisible,width:"80%"},on:{"update:visible":function(t){e.taskViewDialogVisible=t}}},[a("span",{attrs:{slot:"title"},slot:"title"},[e._v("查看任务")]),a("el-form",{attrs:{"label-width":"120px"}},[a("el-form-item",{attrs:{label:"任务名称:"}},[e._v(e._s(e.taskEditInfo.name))]),a("el-form-item",{attrs:{label:"最后执行状态:"}},[0==e.taskEditInfo.lastExecuteStatus?a("el-tag",[e._v("未执行")]):1==e.taskEditInfo.lastExecuteStatus?a("el-tag",{attrs:{type:"info"}},[e._v("执行中")]):2==e.taskEditInfo.lastExecuteStatus?a("el-tag",{attrs:{type:"success"}},[e._v("执行成功")]):3==e.taskEditInfo.lastExecuteStatus?a("el-tag",{attrs:{type:"danger"}},[e._v("执行失败")]):4==e.taskEditInfo.lastExecuteStatus?a("el-tag",{attrs:{type:"warning"}},[e._v("取消执行")]):e._e()],1),a("el-form-item",{attrs:{label:"最后执行时间:"}},[e._v(e._s(e.taskEditInfo.lastExecuteTime))]),a("el-form-item",{attrs:{label:"执行信息:"}},[a("pre",{staticStyle:{"word-wrap":"break-word","word-break":"break-all","white-space":"pre-wrap","line-height":"22px"}},[e._v(e._s(e.taskEditInfo.lastExecuteInfo))])]),1==e.taskEditInfo.lastExecuteStatus?a("el-form-item",{attrs:{label:"操作:"}},[a("el-button",{attrs:{type:"success",icon:"el-icon-refresh",loading:e.viewTaskLoading},on:{click:function(t){return e.viewTask(e.taskEditInfo.id)}}},[e._v("刷新")]),a("el-button",{attrs:{type:"danger"},on:{click:e.cancelTask}},[e._v("取消执行")])],1):e._e()],1)],1)],1)},xa=[],Ca={data:function(){return{viewTaskLoading:!1,loadDataListLoading:!1,datasourceOptions:[],queryDatasourceId:"",storageDatasourceId:"",taskList:[],datasourceMap:{},taskViewDialogVisible:!1,taskEditDialogVisible:!1,taskEditInfo:{},querySqlEditor:{},storageSqlEditor:{},querySqlContent:"",storageSqlContent:"",editSqlConfig:{wrap:!0,autoScrollEditorIntoView:!0,enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0,minLines:10,maxLines:25}}},components:{"ace-editor":mt},mounted:function(){this.loadDatasourceList()},methods:{editTask:function(e){var t=this;this.taskEditInfo=JSON.parse(JSON.stringify(e)),this.taskEditDialogVisible=!0,setTimeout((function(){t.querySqlEditor.setValue(t.taskEditInfo.querySql,1),t.storageSqlEditor.setValue(t.taskEditInfo.storageSql,1)}),200)},querySqlInit:function(e){this.querySqlEditor=e,this.querySqlEditor.setFontSize(16)},storageSqlInit:function(e){this.storageSqlEditor=e,this.storageSqlEditor.setFontSize(16)},createNewTask:function(){var e=this;this.taskEditInfo={querySql:"",storageSql:"",name:"",needCount:1,queryDatasourceId:"",storageDatasourceId:""},this.taskEditDialogVisible=!0,setTimeout((function(){e.querySqlEditor.setValue("",1),e.storageSqlEditor.setValue("",1)}),200)},deleteTask:function(e){var t=this;this.$confirm("确定要删除此任务吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){b.transferUpdate({id:e,delFlag:1}).then((function(){t.$message.success("删除成功"),t.loadGetTaskList()}))})).catch((function(){}))},executeTask:function(e){var t=this;this.$confirm("确定要执行一次此任务吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){b.transferStart({id:e}).then((function(){t.$message.success("任务提交成功")}))})).catch((function(){}))},saveEditTask:function(){var e=this;this.taskEditInfo.querySql=this.querySqlEditor.getValue(),this.taskEditInfo.storageSql=this.storageSqlEditor.getValue(),b.transferUpdate(this.taskEditInfo).then((function(){e.$message.success("保存成功"),e.taskEditDialogVisible=!1,e.loadGetTaskList()}))},viewTask:function(e){var t=this;this.viewTaskLoading=!0,this.taskViewDialogVisible=!0,b.transferDetail({id:e}).then((function(e){t.taskEditInfo=e.data||{},setTimeout((function(){t.viewTaskLoading=!1}),300)}))},cancelTask:function(){var e=this;this.$confirm("确定要取消执行此任务吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){b.transferCancel({id:e.taskEditInfo.id}).then((function(){e.$message.success("取消成功"),e.viewTask(e.taskEditInfo.id)}))})).catch((function(){}))},loadGetTaskList:function(){var e=this;this.loadDataListLoading=!0,b.transferList({}).then((function(t){e.taskList=t.data||[],setTimeout((function(){e.loadDataListLoading=!1}),800)}))},autoFillStorageSql:function(){var e=this,t=this.querySqlEditor.getValue();b.transferSqlColumns({sql:t}).then((function(t){var a=t.data||[];if(a.length<=0)e.$message.error("查询的字段不明确,不能自动填充");else{var o="\n";o+="insert into TableName (\n";for(var n=0;n0&&e.children[0].needLoad&&(console.log("加载节点:",e),1==e.type&&this.loadGetTableList(e))},databaseActionDropdown:function(e){if("refresh"==e.command)e.node.loading=!0,e.node.data.children=[],this.loadGetTableList(e.node.data,(function(){setTimeout((function(){return e.node.loading=!1}),500)}));else if("procedure"==e.command){var t=e.node.data,a={sourceId:this.choiceDatasourceId,dbName:t.dbName,host:t.host};this.$router.push({path:"/procedure/list",query:a})}else if("download"==e.command){var o=e.node.data,n={sourceId:this.choiceDatasourceId,dbName:o.dbName};this.$router.push({path:"/data/export",query:n})}else this.$message.warning("暂未支持的选项")},loadGetTableList:function(e,t){b.tableList({sourceId:this.choiceDatasourceId,dbName:e.dbName}).then((function(a){for(var o=[],n=a.data||[],r=0;r0||(this.choiceDatasourceId=parseInt(e.sourceId),this.loadDatabaseList(e.sourceId,e.host).then((function(){t.databaseExpandedKeys=[e.host]})))},dragChangeRightAsideWidth:function(){var e=this,t=this.$refs.rightResize,a=this.$refs.rightResizeBar;t.onmousedown=function(o){var n=o.clientX;return t.style.background="#ccc",a.style.background="#aaa",t.left=t.offsetLeft,document.onmousemove=function(t){var a=t.clientX,o=n-a;(o<0&&e.rightAsideWidth<600||o>0&&e.rightAsideWidth>200)&&(n=a,e.rightAsideWidth-=o,e.rightAsideWidth<200&&(e.rightAsideWidth=200))},document.onmouseup=function(){t.style.background="#fafafa",a.style.background="#ccc",document.onmousemove=null,document.onmouseup=null},!1}}}},k=_,I=(a("034f"),Object(C["a"])(k,i,s,!1,null,null,null)),L=I.exports,E=a("8c4f"),P=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"10px"}},[a("div",{staticStyle:{"max-width":"1200px",margin:"20px auto"}},[a("div",{staticStyle:{"text-align":"center"}},[e._v("欢迎使用"),a("span",{on:{dblclick:e.showErGraph}},[e._v('ヾ(๑╹◡╹)ノ"')]),e._v(" - 在左上角选择一个数据源吧~")])])])},N=[],T={data:function(){return{}},mounted:function(){},methods:{showErGraph:function(){}}},O=T,q=Object(C["a"])(O,P,N,!1,null,null,null),$=q.exports,z=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"10px"}},[a("er-graph")],1)},j=[],A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"styles.erGraphDemo"},[a("ERGraphDemo")],1)},R=[],F=a("779d"),V=a.n(F),U=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%",height:"650px"}},[a("ERGraph",{attrs:{graphData:e.graphData}})],1)},Q=[],B=(a("d81d"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"er-editor-demo-container"},[a("div",{ref:"refContainer",staticStyle:{width:"100%",height:"100%"},attrs:{id:"refContainer"}}),a("div",{ref:"refMinimapContainer",staticClass:"minimap-container",attrs:{id:"refMinimapContainer"}})])}),M=[],G=(a("a4d3"),a("e439"),a("dbb4"),a("b64b"),a("2fa7")),J=(a("f32d"),a("9f12")),H=a("53fe"),K=a("5728"),W=(a("99af"),a("dfdf")),X=a("2ef0"),Y=a.n(X);a("3e2f");function Z(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function ee(e){for(var t=1;t0&&(this.graph.removeCells(e),this.nodes=Y.a.pullAll(this.nodes,e))}},{key:"removeNode",value:function(e){if(e)if(e instanceof Node)this.removeNodes([e]);else{var t=this.findNodeById(e);t&&this.removeNodes([t])}}},{key:"addEdges",value:function(e){var t=this;e.forEach((function(e){t.addEdge(e)}))}},{key:"addEdge",value:function(e){var t=e.id,a=e.source,o=e.target,n=(e.render,e.data),r=Object(W["a"])(e,["id","source","target","render","data"]),i=Y.a.find(this.nodes,(function(e){return e.id===a})),s=Y.a.find(this.nodes,(function(e){return e.id===o}));if(!a||!o)throw new Error("edge must has source and target!");var l=this.graph.addEdge(ee({id:t||"".concat(a,"-").concat(o),data:n||void 0,source:i,target:s,attrs:{line:{stroke:"#B4BDCF",strokeWidth:1}}},r));this.edges.push(l)}},{key:"updateEdge",value:function(e,t){Y.a.isEqual(e.data,t.data)||e.setData(t.data)}},{key:"removeEdges",value:function(e){this.graph.removeCells(e),this.edges=Y.a.pullAll(this.edges,e)}},{key:"removeEdge",value:function(e){if(e)if(e instanceof K["a"])this.graph.removeCells([e]),this.removeEdges([e]);else{var t=this.findEdgeById(e);t&&this.removeEdges([t])}}},{key:"findNodeById",value:function(e){return this.nodes.find((function(t){return t.id===e}))}},{key:"findEdgeById",value:function(e){return this.edges.find((function(t){return t.id===e}))}}]),e}(),oe=function e(t){var a=this;Object(J["a"])(this,e),Object(G["a"])(this,"registerEvent",(function(e){e&&e.forEach((function(e){switch(e.eventName){case"scale":a.graph.on("scale",(function(t){var a=t.sx,o=(t.sy,t.ox,t.oy,a);e.handler&&e.handler({scale:o})}));break;case"graph:mouseenter":a.graph.on("graph:mouseenter",(function(t){t.e;e.handler&&e.handler()}));break;case"graph:mouseleave":a.graph.on("graph:mouseleave",(function(t){t.e;e.handler&&e.handler()}));break;case"blank:mouseDown":a.graph.on("blank:mousedown",(function(t){t.e;var a=t.x,o=t.y;e.handler&&e.handler({x:a,y:o})}));break;case"blank:mouseUp":a.graph.on("blank:mouseup",(function(t){t.e;var a=t.x,o=t.y;e.handler&&e.handler({x:a,y:o})}));break;case"node:added":a.graph.on("node:added",(function(e){var t=e.node;a.x6BaseGraph.bringNodesToFront([t])}));break;case"node:removed":a.graph.on("node:removed",(function(e){e.node}));break;case"edge:added":a.graph.on("edge:added",(function(e){e.edge}));break;case"edge:removed":a.graph.on("edge:removed",(function(e){e.edge;a.isDeleteX6DefaultEdge}));break;case"node:mousedown":a.graph.on("node:mousedown",(function(t){t.e;var a=t.view,o=t.x,n=t.y;e.handler&&e.handler({node:a.cell,x:o,y:n})}));break;case"node:mousemove":a.graph.on("node:mousemove",(function(t){t.e;var a=t.view,o=t.x,n=t.y;e.handler&&e.handler({node:a.cell,x:o,y:n})}));break;case"node:mouseup":a.graph.on("node:mouseup",(function(t){t.e;var a=t.view,o=t.x,n=t.y;e.handler&&e.handler({node:a.cell,x:o,y:n})}));break;case"node:click":a.graph.on("node:click",(function(t){var a=t.view;e.handler&&e.handler({node:a.cell})}));break;case"node:dbclick":a.graph.on("node:dblclick",(function(t){var a=t.view;e.handler&&e.handler({node:a.cell})}));break;case"edge:connected":a.graph.on("edge:connected",(function(e){e.edge}));break;case"selection:changed":a.graph.on("selection:changed",(function(t){var o=t.selected,n=t.removed,r=t.added;e.handler&&e.handler({selected:o,removed:n,added:r}),a.x6BaseGraph.bringCellsToFront(o)}));break;default:break}}))})),this.x6BaseGraph=t,this.graph=t.graph};function ne(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function re(e){for(var t=1;t0&&t.cellController.addNodes(o),n&&n.length>0&&t.cellController.addEdges(n)}))}},{key:"zoomGraph",value:function(e){"number"===typeof e?this.graph.zoom(e):"fit"===e?this.graph.zoomToFit({padding:12}):e&&(this.graph.scale(1),this.graph.centerContent())}},{key:"focusNodeToGraphCenter",value:function(e){if(e instanceof Node)this.graph.centerCell(e);else{var t=this.cellController.findNodeById(e);t&&this.graph.centerCell(t)}}},{key:"bringNodesToFront",value:function(e){e.forEach((function(e){e.toBack()}))}},{key:"bringNodesToBack",value:function(e){e.forEach((function(e){e.toBack()}))}},{key:"clearGraph",value:function(){}},{key:"registerEvent",value:function(e){this.eventController.registerEvent(e)}},{key:"graphContentDiff",value:function(e){var t=this,a=e.nodes,o=e.edges,n=[];a.forEach((function(e){var a=t.cellController.findNodeById(e.id);a||n.push(e)}));var r=[],i=[],s=[];this.cellController.nodes.forEach((function(e){var o=a.find((function(t){return t.id===e.id}));o?Y.a.isEqual(e.data,o.data)?r.push(e):(i.push(e),t.cellController.updateNode(e,o)):s.push(e)}));var l=[];o.forEach((function(e){if(e.id){var a=t.cellController.findEdgeById(e.id);a||l.push(e)}}));var c=[],u=[],d=[];return this.cellController.edges.forEach((function(e){var a=o.find((function(t){return t.id===e.id}));a?Y.a.isEqual(e.data,a.data)?c.push(e):(u.push(e),t.cellController.updateEdge(e,a)):d.push(e)})),this.cellController.removeNodes(s),this.cellController.removeEdges(d),{addNodesData:n,addEdgesData:l}}}]),e}();function se(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function le(e){for(var t=1;t',data:function(){return{entity:e}},components:{Entity:xe}}}})),this.graphData.edges=fe.map((function(e){var t=e.relationId,a=e.sourceEntityId,o=e.targetEntityId;return{id:t,source:a,target:o,label:"1:N",data:e}}))}}},Se=Ce,De=Object(C["a"])(Se,U,Q,!1,null,"29ea1468",null),_e=De.exports,ke={name:"index",components:{ERGraphDemo:_e},data:function(){return{visible:!1,graph:"",styles:V.a}},mounted:function(){},methods:{showDrawer:function(){this.visible=!0},onClose:function(){this.visible=!1}}},Ie=ke,Le=Object(C["a"])(Ie,A,R,!1,null,"1e71010a",null),Ee=Le.exports,Pe={data:function(){return{}},components:{erGraph:Ee},mounted:function(){},methods:{}},Ne=Pe,Te=Object(C["a"])(Ne,z,j,!1,null,null,null),Oe=(Te.exports,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"padding-top":"50px"}},[a("el-form",{ref:"loginParam",staticClass:"demo-ruleForm login-container",attrs:{model:e.loginParam,rules:e.loginRules,"label-position":"left","label-width":"0px"}},[a("h3",{staticClass:"title"},[e._v("系统登录")]),a("el-form-item",{attrs:{prop:"username"}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:"账号"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.loginSubmit(t)}},model:{value:e.loginParam.username,callback:function(t){e.$set(e.loginParam,"username",t)},expression:"loginParam.username"}})],1),a("el-form-item",{attrs:{prop:"password"}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:"密码"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.loginSubmit(t)}},model:{value:e.loginParam.password,callback:function(t){e.$set(e.loginParam,"password",t)},expression:"loginParam.password"}})],1),a("el-form-item",{staticStyle:{width:"100%"}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary",loading:e.logining},nativeOn:{click:function(t){return t.preventDefault(),e.loginSubmit(t)}}},[e._v("登录")])],1)],1)],1)}),qe=[],$e={data:function(){return{logining:!1,redirect:"",loginParam:{username:"",password:""},loginRules:{username:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},checked:!0}},mounted:function(){this.redirect=this.$route.query.redirect},methods:{loginSubmit:function(){var e=this;this.$refs.loginParam.validate((function(t){t&&f.userLogin(e.loginParam).then((function(){e.redirect?location.href=decodeURIComponent(e.redirect):e.$router.back()}))}))}}},ze=$e,je=(a("9231"),Object(C["a"])(ze,Oe,qe,!1,null,null,null)),Ae=je.exports,Re=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-info-vue"},[a("div",{staticStyle:{margin:"0 auto","max-width":"1000px"}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e._v("我的信息")]),a("el-form",{staticClass:"search-form-box",attrs:{"label-width":"100px"}},[a("el-form-item",{attrs:{label:"账号:"}},[e._v(e._s(e.userInfo.userNo))]),a("el-form-item",{attrs:{label:"用户名:"}},[e._v(e._s(e.userInfo.userName))]),a("el-form-item",{attrs:{label:"手机号:"}},[e._v(e._s(e.userInfo.phone))]),a("el-form-item",{attrs:{label:"邮箱:"}},[e._v(e._s(e.userInfo.email))]),a("el-form-item",{attrs:{label:"状态:"}},[e._v(e._s(0==e.userInfo.delFlag?"正常":"停用"))]),a("el-form-item",{attrs:{label:"性别:"}},[e._v(e._s(0==e.userInfo.sex?"女":"男"))])],1)],1)],1)])},Fe=[],Ve={data:function(){return{userInfo:{}}},mounted:function(){this.getUserInfo()},methods:{getUserInfo:function(){var e=this;f.getSelfUserInfo().then((function(t){e.userInfo=t.data}))}}},Ue=Ve,Qe=(a("dcfc"),Object(C["a"])(Ue,Re,Fe,!1,null,null,null)),Be=Qe.exports,Me=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("router-view")},Ge=[],Je={},He=Object(C["a"])(Je,Me,Ge,!1,null,null,null),Ke=He.exports,We=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-tabs",{staticStyle:{padding:"5px 10px 0"},attrs:{type:"card",closable:""},on:{"tab-click":e.changePage,"tab-remove":e.removePageTab},model:{value:e.activePage,callback:function(t){e.activePage=t},expression:"activePage"}},e._l(e.pageList,(function(t){return a("el-tab-pane",{key:t.fullPath,attrs:{label:e.pageTabNameMap[t.fullPath]||t.name,name:e.getRouteRealPath(t),fullPath:t.fullPath}})})),1),a("keep-alive",[a("router-view",{key:e.$route.fullPath,on:{initLoadDataList:e.initLoadDataList,loadDatasourceList:e.loadDatasourceList}})],1)],1)},Xe=[],Ye=(a("c975"),{name:"PageTableView",components:{},data:function(){return{pageList:[],linkList:[],activePage:"",multiPage:!0,ignoreParamPath:["/data/export"]}},computed:{pageTabNameMap:function(){return this.$store.state.global.pageTabNameMap}},created:function(){var e=this.$route,t=e.name,a=e.path,o=e.fullPath;this.pageList.push({name:t,path:a,fullPath:o});var n=this.getRouteRealPath(this.$route);this.linkList.push(n),this.activePage=n,this.$router.push(this.$route.fullPath)},watch:{$route:function(e,t){var a=this,o=this.getRouteRealPath(e);if(this.activePage=o,this.linkList.indexOf(o)<0){this.linkList.push(o);var n=e.name,r=e.path,i=e.fullPath;this.pageList.push({name:n,path:r,fullPath:i})}var s=this.pageList.find((function(e){return a.getRouteRealPath(e)===o}));s.fullPath=e.fullPath}},methods:{initLoadDataList:function(e){this.$emit("initLoadDataList",e)},loadDatasourceList:function(){this.$emit("loadDatasourceList")},isIgnoreParamPath:function(e){return this.ignoreParamPath.indexOf(e)>=0},getRouteRealPath:function(e){return this.isIgnoreParamPath(e.path)?e.path:e.fullPath},changePage:function(e){this.activePage=e.name,this.$router.push(e.$attrs.fullPath)},editPage:function(e,t){this[t](e)},removePageTab:function(e){var t=this;if(1!==this.pageList.length){this.pageList=this.pageList.filter((function(a){return t.getRouteRealPath(a)!==e})),this.linkList=this.linkList.filter((function(t){return t!==e}));var a=this.linkList.indexOf(this.activePage);a<0&&(a=this.linkList.length-1,this.activePage=this.linkList[a],this.$router.push(this.activePage))}else this.$message.warning("这是最后一页,不能再关闭了啦")}}}),Ze=Ye,et=Object(C["a"])(Ze,We,Xe,!1,null,"6fc73724",null),tt=et.exports,at=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"table-info-vue"},[a("el-tabs",{on:{"tab-click":e.tabActiveNameChange},model:{value:e.tabActiveName,callback:function(t){e.tabActiveName=t},expression:"tabActiveName"}},[a("el-tab-pane",{attrs:{label:"表字段",name:"columns"}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.columnListLoading,expression:"columnListLoading"}]},[a("el-row",{staticClass:"row-bg",staticStyle:{"margin-bottom":"10px"},attrs:{type:"flex",justify:"space-between"}},[a("el-col",{staticStyle:{color:"#606266","line-height":"40px"}},[a("span",[e._v("表名:"+e._s(e.tableStatusInfo.name))]),a("span",{staticStyle:{"margin-left":"20px"}},[1==e.tableInfo.inEdit?a("span",[a("el-input",{staticStyle:{width:"500px"},attrs:{placeholder:"输入表注释"},on:{blur:e.saveTableDescription},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.saveTableDescription(t)}},model:{value:e.tableInfo.newDesc,callback:function(t){e.$set(e.tableInfo,"newDesc",t)},expression:"tableInfo.newDesc"}})],1):a("span",[e._v(e._s(e.tableInfo.description||"暂无表注释")+" "),a("i",{staticClass:"el-icon-edit edit-table-desc",on:{click:function(t){e.tableInfo.inEdit=1}}})])])]),a("el-col",{staticStyle:{width:"100px","text-align":"right"}},[a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{plain:"",type:"primary",icon:"el-icon-magic-stick"},on:{click:e.showCreateTableDdl}},[e._v("DDL")])],1)],1),a("el-table",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.columnList,stripe:"",border:""}},[a("el-table-column",{attrs:{prop:"name",label:"字段名",width:"220"}}),a("el-table-column",{attrs:{label:"自增",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.selfIncrement?"是":"否"))]}}])}),a("el-table-column",{attrs:{prop:"type",label:"类型",width:"110"}}),a("el-table-column",{attrs:{prop:"length",label:"长度",width:"110"}}),a("el-table-column",{attrs:{prop:"numericScale",label:"小数点",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(0==t.row.numericScale?"":t.row.numericScale))]}}])}),a("el-table-column",{attrs:{prop:"nullable",label:"空值",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.nullable?"允许":"不允许"))]}}])}),a("el-table-column",{attrs:{label:"主键",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.primaryKey?"是":"否"))]}}])}),a("el-table-column",{scopedSlots:e._u([{key:"header",fn:function(t){return[e._v(" 注释 "),a("el-tooltip",{attrs:{effect:"dark",content:"点击注释列可编辑字段注释",placement:"top"}},[a("i",{staticClass:"el-icon-info",staticStyle:{color:"#999"}})])]}},{key:"default",fn:function(t){return[1==t.row.inEdit?a("div",[a("el-input",{attrs:{placeholder:"输入字段注释"},on:{blur:function(a){return e.saveColumnDescription(t.row)}},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.saveColumnDescription(t.row)}},model:{value:t.row.newDesc,callback:function(a){e.$set(t.row,"newDesc",a)},expression:"scope.row.newDesc"}})],1):a("div",{staticClass:"description",on:{click:function(a){return e.descBoxClick(t.row)}}},[e._v(e._s(t.row.description))])]}}])})],1)],1)]),a("el-tab-pane",{attrs:{label:"表信息",name:"tableInfo"}},[a("el-row",{staticClass:"status-info-row"},[a("el-col",{attrs:{span:24}},[a("span",{staticClass:"label"},[e._v("数据源:")]),e._v(e._s(e.vueQueryParam.host))])],1),a("el-row",{staticClass:"status-info-row"},[a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("数据库:")]),e._v(e._s(e.vueQueryParam.dbName))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("数据表:")]),e._v(e._s(e.tableStatusInfo.name))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("引擎:")]),e._v(e._s(e.tableStatusInfo.engine))])],1),a("el-row",{staticClass:"status-info-row"},[a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("行数:")]),e._v(e._s(e.tableStatusInfo.rows||0))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("自动递增:")]),e._v(e._s(e.tableStatusInfo.autoIncrement||0))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("行格式:")]),e._v(e._s(e.tableStatusInfo.rowFormat))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("排序规则:")]),e._v(e._s(e.tableStatusInfo.collation))])],1),a("el-row",{staticClass:"status-info-row"},[a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("索引长度:")]),e._v(e._s(e.getBytesSize(e.tableStatusInfo.indexLength)))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("数据长度:")]),e._v(e._s(e.getBytesSize(e.tableStatusInfo.dataLength)))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("最大长度:")]),e._v(e._s(e.getBytesSize(e.tableStatusInfo.maxDataLength)))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("可用空间:")]),e._v(e._s(e.getBytesSize(e.tableStatusInfo.dataFree)))])],1),a("el-row",{staticClass:"status-info-row"},[a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("创建时间:")]),e._v(e._s(e.tableStatusInfo.createTime))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("修改时间:")]),e._v(e._s(e.tableStatusInfo.updateTime))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("检查时间:")]),e._v(e._s(e.tableStatusInfo.checkTime))]),a("el-col",{attrs:{span:6}},[a("span",{staticClass:"label"},[e._v("创建选项:")]),e._v(e._s(e.tableStatusInfo.createOptions))])],1),a("el-row",{staticClass:"status-info-row"},[a("el-col",{attrs:{span:24}},[a("span",{staticClass:"label"},[e._v("表注释:")]),1==e.tableInfo.inEdit?a("span",[a("el-input",{staticStyle:{width:"500px"},attrs:{placeholder:"输入表注释"},on:{blur:e.saveTableDescription},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.saveTableDescription(t)}},model:{value:e.tableInfo.newDesc,callback:function(t){e.$set(e.tableInfo,"newDesc",t)},expression:"tableInfo.newDesc"}})],1):a("span",[e._v(e._s(e.tableInfo.description||"暂无注释")+" "),a("i",{staticClass:"el-icon-edit edit-table-desc",on:{click:function(t){e.tableInfo.inEdit=1}}})])])],1)],1),a("el-tab-pane",{attrs:{label:"关系图",name:"relationChart"}},[a("table-relation-charts",{ref:"relationChart"})],1),a("el-tab-pane",{attrs:{label:"表数据",name:"tableData"}},[a("data-preview",{ref:"dataPreview"})],1)],1),a("el-dialog",{attrs:{visible:e.tableDDLInfoDialogVisible,footer:null,width:"760px"},on:{"update:visible":function(t){e.tableDDLInfoDialogVisible=t}}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("span",{staticStyle:{"margin-right":"15px"}},[e._v("DDL")]),a("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.tableDDLInfo[e.tableDDLInfoTab],expression:"tableDDLInfo[tableDDLInfoTab]",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopySuccess,expression:"onCopySuccess",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.onCopyError,expression:"onCopyError",arg:"error"}],attrs:{size:"small",icon:"el-icon-document-copy"}},[e._v("复制")])],1),a("el-tabs",{model:{value:e.tableDDLInfoTab,callback:function(t){e.tableDDLInfoTab=t},expression:"tableDDLInfoTab"}},[e.tableDDLInfo.mysql?a("el-tab-pane",{attrs:{label:"mysql",name:"mysql"}},[a("div",{directives:[{name:"highlight",rawName:"v-highlight"}]},[a("pre",[a("code",{domProps:{innerHTML:e._s(e.tableDDLInfo.mysql)}})])])]):e._e(),e.tableDDLInfo.sqlserver?a("el-tab-pane",{attrs:{label:"sqlserver",name:"sqlserver"}},[a("div",{directives:[{name:"highlight",rawName:"v-highlight"}]},[a("pre",[a("code",{domProps:{innerHTML:e._s(e.tableDDLInfo.sqlserver)}})])])]):e._e(),e.tableDDLInfo.oracle?a("el-tab-pane",{attrs:{label:"oracle",name:"oracle"}},[a("div",{directives:[{name:"highlight",rawName:"v-highlight"}]},[a("pre",[a("code",{domProps:{innerHTML:e._s(e.tableDDLInfo.oracle)}})])])]):e._e(),e.tableDDLInfo.postgresql?a("el-tab-pane",{attrs:{label:"postgresql",name:"postgresql"}},[a("div",{directives:[{name:"highlight",rawName:"v-highlight"}]},[a("pre",[a("code",{domProps:{innerHTML:e._s(e.tableDDLInfo.postgresql)}})])])]):e._e(),e.tableDDLInfo.hive?a("el-tab-pane",{attrs:{label:"hive",name:"hive"}},[a("div",{directives:[{name:"highlight",rawName:"v-highlight"}]},[a("pre",[a("code",{domProps:{innerHTML:e._s(e.tableDDLInfo.hive)}})])])]):e._e()],1)],1)],1)},ot=[],nt=(a("e01a"),a("b680"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"data-executor-vue"},[a("div",{staticStyle:{padding:"0 10px 10px",height:"100%","box-sizing":"border-box"}},[a("el-card",{staticStyle:{"margin-bottom":"10px"}},[a("ace-editor",{staticStyle:{"margin-bottom":"10px"},attrs:{lang:"sql",theme:"monokai",width:"100%",height:"60",options:e.sqlEditorConfig,source:e.executorSource},on:{init:e.sqlExecutorInit},model:{value:e.sqlExecutorContent,callback:function(t){e.sqlExecutorContent=t},expression:"sqlExecutorContent"}}),a("div",[e.sqlExecuting?a("el-button",{attrs:{type:"primary",plain:"",size:"small",icon:"el-icon-video-pause"},on:{click:e.cancelExecutorSql}},[e._v("取消执行")]):a("el-tooltip",{attrs:{effect:"dark",content:"Ctrl+R、Ctrl+Enter",placement:"top"}},[a("el-button",{attrs:{type:"primary",plain:"",size:"small",icon:"el-icon-video-play"},on:{click:e.doExecutorClick}},[e._v("筛选")])],1),a("el-button",{attrs:{icon:"el-icon-refresh-left",size:"small"},on:{click:e.refreshData}},[e._v("重置")]),a("el-button",{staticStyle:{"margin-left":"30px"},attrs:{type:"success",size:"small",icon:"el-icon-download",plain:""},on:{click:e.downloadTableData}},[e._v("导出")])],1)],1),a("el-card",[e.executeError?a("div",{staticStyle:{color:"#f00"}},[e._v(e._s(e.executeError))]):e.sqlExecuting?a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.sqlExecuting,expression:"sqlExecuting"}],staticStyle:{padding:"20px 0"}},[e._v("数据加载中...")]):e.executeResultList.length<=0?a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.sqlExecuting,expression:"sqlExecuting"}],staticStyle:{padding:"20px 0"}},[e._v("暂无数据")]):a("div",{staticStyle:{position:"relative"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:"table0"!==e.executeShowTable,expression:"executeShowTable !== 'table0'"}],staticStyle:{position:"absolute",right:"0","z-index":"1"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:e.choiceResultObj[e.executeShowTable]&&e.choiceResultObj[e.executeShowTable].length>0,expression:"choiceResultObj[executeShowTable] && choiceResultObj[executeShowTable].length > 0"}]},[a("el-button",{staticStyle:{"margin-right":"10px"},attrs:{icon:"el-icon-delete",size:"small",type:"danger",plain:""},on:{click:e.deleteCheckLine}},[e._v("删除")]),a("el-dropdown",{on:{command:e.handleCopyCheckLineCommand}},[a("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-document-copy"}},[e._v(" 复制选中行"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"insert"}},[e._v("SQL Inserts")]),a("el-dropdown-item",{attrs:{command:"update"}},[e._v("SQL Updates")]),a("el-dropdown-item",{attrs:{command:"json"}},[e._v("JSON")])],1)],1)],1),a("el-tooltip",{attrs:{effect:"dark",content:"选择展示列",placement:"top"}},[a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{icon:"el-icon-setting",size:"small"},on:{click:e.choiceShowColumnDrawerShow}})],1)],1),a("el-tabs",{model:{value:e.executeShowTable,callback:function(t){e.executeShowTable=t},expression:"executeShowTable"}},[a("el-tab-pane",{attrs:{label:"信息",name:"table0"}},[a("pre",[e._v(e._s(e.executeResultInfo))])]),e._l(e.executeResultList,(function(t){return t.index?a("el-tab-pane",{attrs:{label:"结果"+t.index,name:t.name}},[t.errMsg?a("div",{staticStyle:{color:"#f00"}},[e._v(e._s(t.errMsg))]):t.dataList.length<=0?a("div",{staticStyle:{"text-align":"center",color:"#aaa",padding:"20px 0"}},[e._v("暂无数据")]):[a("el-table",{staticClass:"execute-result-table",staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:t.dataList,stripe:"",border:"","max-height":e.tableMaxHeight,"default-sort":e.tableSort},on:{"selection-change":e.handleSelectionChange,"sort-change":e.tableSortChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{type:"index",width:"50"}}),e._l(t.dataCols,(function(t){return a("el-table-column",{attrs:{sortable:"",prop:t.prop,label:t.prop,width:t.width},scopedSlots:e._u([{key:"header",fn:function(o){return[a("el-tooltip",{attrs:{effect:"dark",content:t.desc,placement:"top"}},[a("span",[e._v(e._s(t.prop))])])]}},{key:"default",fn:function(e){return[a("textarea",{staticClass:"el-textarea__inner",attrs:{readonly:"",rows:"1"},domProps:{value:e.row[t.prop]}})]}}],null,!0)})}))],2),a("el-pagination",{staticStyle:{"margin-top":"10px"},attrs:{"current-page":e.currentPage,"page-sizes":[50,100,300,500],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.tableTotalCount},on:{"size-change":e.handlePageSizeChange,"current-change":e.handleCurrentChange}})]],2):e._e()}))],2)],1)])],1),a("el-dialog",{attrs:{visible:e.exportConditionVisible,width:"500px",title:"选择更新语句条件"},on:{"update:visible":function(t){e.exportConditionVisible=t}}},[a("div",[e._v(" 更新条件列: "),a("el-select",{staticStyle:{width:"370px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.conditionDataColsChoice,callback:function(t){e.conditionDataColsChoice=t},expression:"conditionDataColsChoice"}},e._l(e.conditionDataCols,(function(e){return a("el-option",{key:e.prop,attrs:{label:e.prop,value:e.prop}})})),1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.exportConditionVisible=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.doCopyCheckLineUpdate}},[e._v("确 定")])],1)]),a("el-dialog",{attrs:{visible:e.downloadDataVisible,width:"600px",title:"表数据导出"},on:{"update:visible":function(t){e.downloadDataVisible=t}}},[a("el-form",{attrs:{"label-width":"120px"}},[a("el-form-item",{attrs:{label:"导出类型:"}},[a("el-select",{staticStyle:{width:"370px"},attrs:{filterable:"",placeholder:"请选择导出类型"},model:{value:e.downloadDataParam.downloadType,callback:function(t){e.$set(e.downloadDataParam,"downloadType",t)},expression:"downloadDataParam.downloadType"}},[a("el-option",{attrs:{label:"SQL Inserts",value:"insert"}}),a("el-option",{attrs:{label:"SQL Updates",value:"update"}}),a("el-option",{attrs:{label:"JSON",value:"json"}}),a("el-option",{attrs:{label:"Excel",value:"excel"}})],1)],1),"insert"===e.downloadDataParam.downloadType?a("el-form-item",{attrs:{label:"数据表:"}},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.dropTableFlagChange},model:{value:e.downloadDataParam.dropTableFlag,callback:function(t){e.$set(e.downloadDataParam,"dropTableFlag",t)},expression:"downloadDataParam.dropTableFlag"}},[e._v("删除表"+e._s(1==e.downloadDataParam.dropTableFlag?"!!":""))]),a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.createTableFlagChange},model:{value:e.downloadDataParam.createTableFlag,callback:function(t){e.$set(e.downloadDataParam,"createTableFlag",t)},expression:"downloadDataParam.createTableFlag"}},[e._v("创建表")])],1):e._e(),"update"===e.downloadDataParam.downloadType?a("el-form-item",{attrs:{label:"更新条件列:"}},[a("el-select",{staticStyle:{width:"370px"},attrs:{multiple:"",placeholder:"不选则是没有条件的更新"},model:{value:e.downloadDataParam.conditionColumnArr,callback:function(t){e.$set(e.downloadDataParam,"conditionColumnArr",t)},expression:"downloadDataParam.conditionColumnArr"}},e._l(e.conditionDataCols,(function(e){return a("el-option",{key:e.prop,attrs:{label:e.prop,value:e.prop}})})),1)],1):e._e()],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.downloadDataVisible=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.doDownloadTableData}},[e._v("确 定")])],1)],1),a("el-drawer",{attrs:{size:"350px","with-header":!1,visible:e.choiceShowColumnDrawer,"before-close":e.choiceShowColumnDrawerClose,direction:"rtl"},on:{"update:visible":function(t){e.choiceShowColumnDrawer=t}}},[a("div",{staticStyle:{padding:"10px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[e._v("选择展示列")]),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:12}},[a("el-checkbox",{on:{change:e.choiceShowColumnAllChange},model:{value:e.choiceShowColumnAll,callback:function(t){e.choiceShowColumnAll=t},expression:"choiceShowColumnAll"}},[e._v("全选")]),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"mini"},on:{click:e.choiceShowColumnOk}},[e._v("确定")])],1)],1)],1),a("div",{staticStyle:{overflow:"auto",height:"calc(100vh - 50px)"}},[a("el-tree",{ref:"showColumnTree",attrs:{"node-key":"name",props:e.showColumnProps,data:e.tableDataColumns,"check-on-click-node":"","show-checkbox":""},on:{"check-change":e.tableDataColumnsCheckChange}})],1)]),a("form",{ref:"downloadForm",attrs:{method:"post",action:e.downloadFormParam.url,target:"_blank"}},e._l(e.downloadFormParam.param,(function(e,t){return a("input",{attrs:{type:"hidden",name:t},domProps:{value:e}})})),0),a("span",{staticStyle:{visibility:"hidden","white-space":"nowrap",position:"fixed"},attrs:{id:"widthCalculate"}})],1)}),rt=[],it=(a("a15b"),a("0d03"),a("ac1f"),a("1276"),{insert:function(e,t,a,o){var n=a?a+".":"";n+=o||"table";var r="",i="";return e.forEach((function(e){i.length>0&&(i+=", "),i+=e.prop})),t.forEach((function(t){var a="";e.forEach((function(e){a.length>0&&(a+=", ");var o=t[e.prop];void 0===o||null===o||isNaN(o)?a+="null":"number"!==typeof o||isNaN(o)?(o=String(o).replaceAll("'","''"),a+="'"+o+"'"):a+=o})),r+="insert into "+n+" ("+i+") values ("+a+");\n"})),r},update:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,r=o?o+".":"";r+=n||"table";var i="";return t.forEach((function(t){var o="",n="";e.forEach((function(e){var r=t[e.prop];a.indexOf(e.prop)>=0?(n.length>0&&(n+=" and "),void 0===r||null===r||isNaN(r)?n+=e.prop+" = null":"number"!==typeof r||isNaN(r)?n+=e.prop+" = '"+r+"'":n+=e.prop+" = "+r):(o.length>0&&(o+=", "),o+=e.prop+"=",void 0===r||null===r||isNaN(r)?o+="null":"number"!==typeof r||isNaN(r)?(r=String(r).replaceAll("'","''"),o+="'"+r+"'"):o+=r)})),n.length>0&&(n=" where "+n),i+="update "+r+" set "+o+n+";\n"})),i},json:function(e,t,a,o){return JSON.stringify(t)}}),st={insert:function(e,t,a,o){var n=a?a+"..":"";n+=o||"table";var r="",i="";return e.forEach((function(e){i.length>0&&(i+=", "),i+=e.prop})),t.forEach((function(t){var a="";e.forEach((function(e){a.length>0&&(a+=", ");var o=t[e.prop];void 0===o||null===o||isNaN(o)?a+="null":"number"!==typeof o||isNaN(o)?(o=String(o).replaceAll("'","''"),a+="'"+o+"'"):a+=o})),r+="insert into "+n+" ("+i+") values ("+a+");\n"})),r},update:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,r=o?o+"..":"";r+=n||"table";var i="";return t.forEach((function(t){var o="",n="";e.forEach((function(e){var r=t[e.prop];a.indexOf(e.prop)>=0?(n.length>0&&(n+=" and "),void 0===r||null===r||isNaN(r)?n+=e.prop+" = null":"number"!==typeof r||isNaN(r)?n+=e.prop+" = '"+r+"'":n+=e.prop+" = "+r):(o.length>0&&(o+=", "),o+=e.prop+"=",void 0===r||null===r||isNaN(r)?o+="null":"number"!==typeof r||isNaN(r)?(r=String(r).replaceAll("'","''"),o+="'"+r+"'"):o+=r)})),n.length>0&&(n=" where "+n),i+="update "+r+" set "+o+n+";\n"})),i},json:function(e,t,a,o){return JSON.stringify(t)}},lt={format:function(e,t,a,o,n,r,i){var s=this.getProduct(t);return"insert"===e?s.insert(a,o,r,i):"update"===e?s.update(a,o,n,r,i):"json"===e?s.json(a,o,r,i):void 0},getProduct:function(e){return"sqlserver"===e?st:it}},ct=a("db05"),ut=a.n(ct),dt=a("061c"),ht=a.n(dt),pt=(a("2099"),a("842f"),a("6e63"),a("818b"),a("b039"),a("14d4"),a("8a79"),a("96cf"),{isInit:!1,source:{},databaseInfo:{},tableInfo:{},columnInfo:{},lastCallbackArr:[],isAutocomplete:!1,change:function(e){var t=this;if(this.source=e,this.lastCallbackArr=[],console.log("change(sourceId):"+JSON.stringify(this.source)),!this.isInit){console.log("change(sourceId),isInit:"+this.isInit),this.isInit=!0;var a=ace.acequire("ace/ext/language_tools");a.addCompleter(this)}if(this.source.sourceId){var o=this.databaseInfo[this.source.sourceId]||[];if(o.length<=0&&b.databaseList({sourceId:this.source.sourceId}).then((function(e){t.databaseInfo[t.source.sourceId]=e.data||[]})),this.source.dbName){var n=this.source.sourceId+"_"+this.source.dbName,r=this.tableInfo[n]||[];r.length<=0&&b.tableList({sourceId:this.source.sourceId,dbName:this.source.dbName}).then((function(e){t.tableInfo[n]=e.data||[]}))}if(this.source.tableName){var i=this.source.sourceId+"_"+this.source.dbName+"_"+this.source.tableName,s=this.columnInfo[i]||[];s.length<=0&&b.tableColumnList({sourceId:this.source.sourceId,dbName:this.source.dbName,tableName:this.source.tableName}).then((function(e){t.columnInfo[i]=e.data.columnList||[]}))}}},startAutocomplete:function(e){this.isAutocomplete=!0,e.execCommand("startAutocomplete")},getCompletions:function(e,t,a,o,n){var r,i,s;return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:if(r=[],i=this.isAutocomplete?a.column:a.column-1,s=t.getLine(a.row).substring(0,i),this.isAutocomplete=!1,console.log("Executor.vue getCompletions,sourceId:"+JSON.stringify(this.source)+", lineStr:"+s,a),!this.source.tableName){e.next=12;break}return e.next=8,regeneratorRuntime.awrap(this.getAssignTableColumns(this.source.dbName,this.source.tableName));case 8:r=e.sent,n(null,r),e.next=35;break;case 12:if(!(s.endsWith("from ")||s.endsWith("join ")||s.endsWith("into ")||s.endsWith("update ")||s.endsWith("table "))){e.next=18;break}r=this.getDatabasesAndTables(),this.lastCallbackArr=r,n(null,r),e.next=35;break;case 18:if(!s.endsWith(".")){e.next=26;break}return e.next=21,regeneratorRuntime.awrap(this.getTablesAndColumns(s));case 21:r=e.sent,this.lastCallbackArr=r,n(null,r),e.next=35;break;case 26:if(!(s.endsWith("select ")||s.endsWith("where ")||s.endsWith("and ")||s.endsWith("or ")||s.endsWith("set "))){e.next=34;break}return e.next=29,regeneratorRuntime.awrap(this.getTableColumns(t,a));case 29:r=e.sent,this.lastCallbackArr=r,n(null,r),e.next=35;break;case 34:n(null,this.lastCallbackArr);case 35:case"end":return e.stop()}}),null,this)},getDatabasesAndTables:function(){var e=[],t=this.tableInfo[this.source.sourceId+"_"+this.source.dbName]||[];t.forEach((function(t){return e.push({caption:t.tableComment?t.tableName+"-"+t.tableComment:t.tableName,snippet:t.tableName,meta:"表",type:"snippet",score:1e3})}));var a=this.databaseInfo[this.source.sourceId]||[];return a.forEach((function(t){return e.push({caption:t.dbName,snippet:t.dbName,meta:"库",type:"snippet",score:1e3})})),e},getTablesAndColumns:function(e){var t,a,o,n,r,i,s,l,c,u;return regeneratorRuntime.async((function(d){while(1)switch(d.prev=d.next){case 0:t=!1,a=[],o=this.databaseInfo[this.source.sourceId]||[],n=0;case 4:if(!(n=0)){h.next=10;break}if(n=e.getLine(o),a=n+" "+a,!(n.indexOf(";")>=0)){h.next=7;break}return h.abrupt("break",10);case 7:o--,h.next=2;break;case 10:r=t.row+1;case 11:if(!(r=0)){h.next=16;break}return h.abrupt("break",19);case 16:r++,h.next=11;break;case 19:s=[],l=this.tableInfo[this.source.sourceId+"_"+this.source.dbName]||[],c=0;case 22:if(!(c=0)){h.next=29;break}return h.next=27,regeneratorRuntime.awrap(this.getAssignTableColumns(this.source.dbName,u));case 27:d=h.sent,s=s.concat(d);case 29:c++,h.next=22;break;case 32:return h.abrupt("return",s);case 33:case"end":return h.stop()}}),null,this)},getAssignTableColumns:function(e,t){var a,o,n,r;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:if(a=this.source.sourceId+"_"+e+"_"+t,o=this.columnInfo[a]||[],!(o.length<=0)){i.next=8;break}return i.next=5,regeneratorRuntime.awrap(b.tableColumnList({sourceId:this.source.sourceId,dbName:e,tableName:t}));case 5:n=i.sent,o=n.data.columnList||[],this.columnInfo[a]=o;case 8:return r=[],o.forEach((function(e){var t=e.description?e.name+"-"+e.description:e.name;r.push({caption:t,snippet:e.name,meta:"字段",type:"snippet",score:1e3})})),i.abrupt("return",r);case 11:case"end":return i.stop()}}),null,this)}}),mt=(a("aa11"),{render:function(e){var t=this.height?this.px(this.height):"100%",a=this.width?this.px(this.width):"100%";return e("div",{attrs:{style:"height: "+t+"; width: "+a}})},props:{value:String,source:Object,lang:!0,theme:String,height:!0,width:!0,options:Object},data:function(){return{editor:null,contentBackup:""}},watch:{value:function(e){this.contentBackup!==e&&(this.editor.session.setValue(e,1),this.contentBackup=e)},theme:function(e){this.editor.setTheme("ace/theme/"+e)},lang:function(e){this.editor.getSession().setMode("string"===typeof e?"ace/mode/"+e:e)},options:function(e){this.editor.setOptions(e)},height:function(){this.$nextTick((function(){this.editor.resize()}))},width:function(){this.$nextTick((function(){this.editor.resize()}))},source:function(e){pt.change(e)}},beforeDestroy:function(){this.editor.destroy(),this.editor.container.remove()},activated:function(){pt.change(this.source)},mounted:function(){var e=this,t=this.lang||"text",o=this.theme||"chrome";a("b378");var n=e.editor=ht.a.edit(this.$el);n.$blockScrolling=1/0,this.$emit("init",n),n.getSession().setMode("string"===typeof t?"ace/mode/"+t:t),n.setTheme("ace/theme/"+o),this.value&&n.setValue(this.value,1),this.contentBackup=this.value,n.on("change",(function(){var t=n.getValue();e.$emit("input",t),e.contentBackup=t})),n.commands.addCommand({name:"start-autocomplete",bindKey:{win:"Alt-Enter",mac:"Alt-Enter"},exec:function(e){pt.startAutocomplete(e)}}),e.options&&n.setOptions(e.options),pt.change(this.source)},methods:{px:function(e){return/^\d*$/.test(e)?e+"px":e}}}),ft=(a("fb6a"),a("4e82"),{set:{save:function(e,t,a){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100;if(window.localStorage){var n=JSON.parse(window.localStorage.getItem(e)||"[]"),r=n.find((function(e){return e.key===t}));r?(r.value=a,r.time=(new Date).getTime()):n.push({key:t,value:a,time:(new Date).getTime()}),n.sort((function(e,t){return t.time-e.time})),n=n.slice(0,o+1),window.localStorage.setItem(e,JSON.stringify(n))}else console.log("当前浏览器不支持localStorage")},get:function(e,t){if(!window.localStorage)return"";var a=JSON.parse(window.localStorage.getItem(e)||"[]"),o=a.find((function(e){return e.key===t}))||{};return o.value||""}}}),bt={name:"dataPreview",data:function(){return{sqlExecuting:!1,executeResultList:[],executeResultInfo:"",executeShowTable:"table1",sqlExecutorEditor:{},nowExecutorId:1,executeError:"",pageParam:{},vueQueryParam:{},pageSize:50,currentPage:1,tableTotalCount:0,tableSort:{},tableMaxHeight:600,tableStatusInfo:{},choiceResultObj:{},exportConditionVisible:!1,tableDataColumns:[],conditionDataCols:[],conditionDataColsChoice:[],downloadDataVisible:!1,downloadDataParam:{downloadType:"insert",dropTableFlag:0,createTableFlag:0,conditionColumnArr:[],retainColumnArr:[]},downloadFormParam:{url:"zyplayer-doc-db/data-view/downloadMultiple",param:{}},choiceShowColumnDrawer:!1,showColumnProps:{label:"name"},choiceShowColumnLast:[],choiceShowColumnAll:!0,sqlExecutorContent:"",sqlEditorConfig:{wrap:!0,autoScrollEditorIntoView:!0,enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0,minLines:3,maxLines:3},executorSource:{},columnMap:{},primaryKeyColumn:{},storageKey:{key:"zyplayer-doc-table-show-columns",subKey:""}}},components:{"ace-editor":mt},mounted:function(){var e=this,t=function(){e.tableMaxHeight=document.body.clientHeight-420};t(),window.onresize=t},methods:{init:function(e,t){var a=this;if(this.pageParam.sourceId!=e.sourceId){this.pageParam=e,this.executorSource={sourceId:e.sourceId,dbName:e.dbName,tableName:e.tableName},this.columnMap={},t.forEach((function(e){a.columnMap[e.name]=e,1==e.primaryKey&&(a.primaryKeyColumn=e)})),this.tableDataColumns=t,this.storageKey.subKey=e.sourceId+"-"+e.dbName+"-"+e.tableName;var o=ft.set.get(this.storageKey.key,this.storageKey.subKey);if(this.choiceShowColumnLast=t.map((function(e){return e.name})),o){var n=o.split(",");n=n.filter((function(e){return a.choiceShowColumnLast.indexOf(e)>=0})),n.length>0&&(this.choiceShowColumnLast=n)}this.doExecutorSqlCommon()}},sqlExecutorInit:function(e){this.sqlExecutorEditor=e,this.sqlExecutorEditor.setFontSize(16);var t=this;this.sqlExecutorEditor.commands.addCommand({name:"execute-sql",bindKey:{win:"Ctrl-R|Ctrl-Shift-R|Ctrl-Enter",mac:"Command-R|Command-Shift-R|Command-Enter"},exec:function(e){t.doExecutorClick()}})},handleCurrentChange:function(e){this.currentPage=e,this.doExecutorSqlCommon()},handlePageSizeChange:function(e){this.pageSize=e,this.currentPage=1,this.doExecutorSqlCommon()},tableSortChange:function(e){this.tableSort.prop===e.prop&&this.tableSort.order===e.order||(this.tableSort={prop:e.prop,order:e.order},this.doExecutorSqlCommon())},refreshData:function(){this.tableSort={},this.currentPage=1,this.sqlExecutorEditor.setValue("",1),this.doExecutorSqlCommon()},cancelExecutorSql:function(){var e=this;b.executeSqlCancel({executeId:this.nowExecutorId}).then((function(){e.sqlExecuting=!1,e.$message.success("取消成功")}))},doExecutorClick:function(){this.tableSort={},this.currentPage=1,this.doExecutorSqlCommon()},doExecutorSqlCommon:function(){var e=this;if(this.pageParam.sourceId){this.tableSort.prop||(this.tableSort={prop:this.pageParam.orderColumn,order:"ascending"});var t=this.sqlExecutorEditor.getSelectedText();t=t||this.sqlExecutorEditor.getValue(),t=t||"",this.executeError="",this.executeUseTime="",this.choiceResultObj={},this.executeResultList=[],this.nowExecutorId=(new Date).getTime()+Math.ceil(1e3*Math.random()),this.sqlExecuting=!0;var a={sourceId:this.pageParam.sourceId,dbName:this.pageParam.dbName,tableName:this.pageParam.tableName,executeId:this.nowExecutorId,condition:t,retainColumn:this.choiceShowColumnLast.join(","),pageNum:this.currentPage,pageSize:this.pageSize,orderColumn:this.tableSort.prop,orderType:"ascending"===this.tableSort.order?"asc":"desc",params:""};b.dataViewQuery(a).then((function(t){if(e.sqlExecuting=!1,200===t.errCode){for(var a=t.data||[],o=[],n="",r=1,i=0;i=0&&(t+="\n> 影响行数:"+e.updateCount),t+="\n> 耗时:"+(e.useTime||0)/1e3+"s",t+="\n\n",t},dealExecuteResult:function(e){var t=e.result||[],a=[];if(t.length>0){var o=t[0];for(var n in o){document.getElementById("widthCalculate").innerText=n;var r=document.getElementById("widthCalculate").offsetWidth;document.getElementById("widthCalculate").innerText=o[n];var i=document.getElementById("widthCalculate").offsetWidth,s=r>i?r:i;s=s<50?50:s,s=s>200?200:s;var l=this.columnMap[n]||{};a.push({prop:n,width:s+50,desc:l.description||n})}}var c={};return c.dataList=t,c.dataCols=a,c.useTime=e.useTime||0,c.errMsg=e.errMsg||"",c.updateCount=e.updateCount,c},handleSelectionChange:function(e){this.$set(this.choiceResultObj,this.executeShowTable,e)},doCopyCheckLineUpdate:function(){var e=this,t=this.choiceResultObj[this.executeShowTable]||[];if(t.length>0){var a=this.executeResultList.find((function(t){return t.name===e.executeShowTable})).dataCols,o=lt.format("update",this.pageParam.dbType,a,t,this.conditionDataColsChoice,this.pageParam.dbName,this.pageParam.tableName);this.conditionDataColsChoice=[],this.exportConditionVisible=!1,this.$copyText(o).then((function(t){return e.$message.success("内容已复制到剪切板!")}),(function(t){return e.$message.error("抱歉,复制失败!")}))}},deleteCheckLine:function(){var e=this,t=this.choiceResultObj[this.executeShowTable]||[];if(t.length>0){var a=this.primaryKeyColumn.name;if(!a)return void this.$message.error("删除失败,未找到数据表的主键列");var o=[];t.forEach((function(e){var t={};t[a]=e[a],o.push(t)})),this.$confirm("确定要删除选中的".concat(t.length,"行数据吗?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t={sourceId:e.pageParam.sourceId,dbName:e.pageParam.dbName,tableName:e.pageParam.tableName,lineJson:JSON.stringify(o)};b.deleteTableLineData(t).then((function(){e.$message.success("删除成功!"),e.refreshData()}))})).catch((function(){}))}},handleCopyCheckLineCommand:function(e){var t=this,a=this.choiceResultObj[this.executeShowTable]||[];if(a.length>0){this.conditionDataColsChoice=[];var o=this.executeResultList.find((function(e){return e.name===t.executeShowTable})).dataCols;if("update"===e){if(!this.primaryKeyColumn.name)return this.conditionDataCols=o,void(this.exportConditionVisible=!0);this.conditionDataColsChoice=[this.primaryKeyColumn.name]}var n=lt.format(e,this.pageParam.dbType,o,a,this.conditionDataColsChoice,this.pageParam.dbName,this.pageParam.tableName);this.$copyText(n).then((function(e){return t.$message.success("内容已复制到剪切板!")}),(function(e){return t.$message.error("抱歉,复制失败!")}))}},doDownloadTableData:function(){var e=this,t=this.sqlExecutorEditor.getSelectedText();t=t||this.sqlExecutorEditor.getValue(),t=t||"",this.nowExecutorId=(new Date).getTime()+Math.ceil(1e3*Math.random());var a={},o={},n={};a[this.pageParam.tableName]=t,o[this.pageParam.tableName]=this.downloadDataParam.conditionColumnArr.join(","),n[this.pageParam.tableName]=this.choiceShowColumnLast.join(","),this.downloadFormParam.param={executeId:this.nowExecutorId,sourceId:this.pageParam.sourceId,dbName:this.pageParam.dbName,tableNames:this.pageParam.tableName,downloadType:this.downloadDataParam.downloadType,dropTableFlag:this.downloadDataParam.dropTableFlag,createTableFlag:this.downloadDataParam.createTableFlag,conditionJson:JSON.stringify(a),conditionColumnJson:JSON.stringify(o),retainColumnJson:JSON.stringify(n)},setTimeout((function(){return e.$refs.downloadForm.submit()}),0),this.downloadDataVisible=!1},downloadTableData:function(){var e=this,t=this.executeResultList.find((function(t){return t.name===e.executeShowTable}));if(!t||!t.dataList||t.dataList.length<=0)this.$message.warning("当前筛选条件下无数据,请重新筛选后再操作导出");else{var a=this.primaryKeyColumn.name;this.downloadDataParam.conditionColumnArr.length<=0&&a&&(this.downloadDataParam.conditionColumnArr=[a]),this.conditionDataCols=t.dataCols,this.downloadDataVisible=!0}},dropTableFlagChange:function(){1===this.downloadDataParam.dropTableFlag&&(this.downloadDataParam.createTableFlag=1)},createTableFlagChange:function(){0==this.downloadDataParam.createTableFlag&&(this.downloadDataParam.dropTableFlag=0)},choiceShowColumnDrawerShow:function(){var e=this;this.choiceShowColumnDrawer=!0,setTimeout((function(){e.$refs.showColumnTree.setCheckedKeys(e.choiceShowColumnLast),e.choiceShowColumnAll=e.choiceShowColumnLast.length===e.tableDataColumns.length}),10)},choiceShowColumnDrawerClose:function(){this.choiceShowColumnDrawer=!1},choiceShowColumnOk:function(){var e=this.$refs.showColumnTree.getCheckedKeys();e.length<=0?this.$message.warning("必须选择一列展示"):(ft.set.save(this.storageKey.key,this.storageKey.subKey,e.join(","),50),this.choiceShowColumnLast=e,this.choiceShowColumnDrawer=!1,this.doExecutorClick())},tableDataColumnsCheckChange:function(){var e=this.$refs.showColumnTree.getCheckedKeys();this.choiceShowColumnAll=e.length===this.tableDataColumns.length},choiceShowColumnAllChange:function(){var e=[];this.choiceShowColumnAll&&(e=this.tableDataColumns.map((function(e){return e.name}))),this.$refs.showColumnTree.setCheckedKeys(e)}}},gt=bt,vt=(a("f52e"),Object(C["a"])(gt,nt,rt,!1,null,null,null)),yt=vt.exports,wt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"data-executor-vue"},[e._m(0),a("el-dialog",{attrs:{visible:e.choiceRelationColumnVisible,width:"750px",title:"选择关联的表字段 "+e.editNodeInfo.tableName+"."+e.editNodeInfo.columnName},on:{"update:visible":function(t){e.choiceRelationColumnVisible=t}}},[e._l(e.editRelationArr,(function(t){return a("div",{staticStyle:{"margin-top":"10px"}},[a("el-select",{staticStyle:{"margin-right":"10px",width:"200px"},attrs:{filterable:"",placeholder:"请选择数据库"},on:{change:function(a){return e.dbNameChangeEvents(t)}},model:{value:t.dbName,callback:function(a){e.$set(t,"dbName",a)},expression:"item.dbName"}},e._l(e.databaseList,(function(e){return a("el-option",{key:e.dbName,attrs:{label:e.dbName,value:e.dbName}})})),1),a("el-select",{staticStyle:{"margin-right":"10px",width:"200px"},attrs:{filterable:"",placeholder:"请选择数据表"},on:{change:function(a){return e.tableNameChangeEvents(t)}},model:{value:t.tableName,callback:function(a){e.$set(t,"tableName",a)},expression:"item.tableName"}},e._l(e.dbTableList[t.dbName],(function(e){return a("el-option",{key:e.tableName,attrs:{label:e.tableName,value:e.tableName}})})),1),a("el-select",{staticStyle:{"margin-right":"10px",width:"200px"},attrs:{filterable:"",placeholder:"请选择表字段"},model:{value:t.columnName,callback:function(a){e.$set(t,"columnName",a)},expression:"item.columnName"}},e._l(e.dbTableColumnList[t.dbName+"."+t.tableName],(function(e){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.name}})})),1),a("el-button",{attrs:{icon:"el-icon-delete",circle:""},on:{click:function(a){return e.delTableColumnRelation(t)}}})],1)})),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.addTableColumnRelation}},[e._v("添加关联")]),a("el-button",{attrs:{type:"primary"},on:{click:e.doUpdateTableColumnRelation}},[e._v("确 定")])],1)],2)],1)},xt=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"max(100%, 1000px)",height:"calc(100vh - 160px)",overflow:"auto"}},[a("div",{staticStyle:{width:"1500px",height:"1000px"},attrs:{id:"relationChart"}})])}],Ct=a("313e"),St={name:"tableRelation",data:function(){return{pageParam:{},relationChart:{},relationChartData:{},relationChartOption:{},editNodeInfo:{},editRelationArr:[],databaseList:[],dbTableList:{},dbTableColumnList:{},choiceRelationColumnVisible:!1,columnListLoading:!1}},mounted:function(){},methods:{init:function(e){var t=this;this.pageParam.sourceId!=e.sourceId&&(this.pageParam=e,this.relationChartData.name=e.tableName,this.relationChart=Ct["init"](document.getElementById("relationChart")),this.relationChartOption={tooltip:{trigger:"item",triggerOn:"mousemove"},series:[{type:"tree",id:0,name:"tree1",data:[this.relationChartData],top:"10%",left:"8%",bottom:"22%",right:"20%",symbolSize:7,edgeShape:"polyline",edgeForkPosition:"63%",initialTreeDepth:3,lineStyle:{width:2},label:{backgroundColor:"#fff",position:"right",verticalAlign:"middle",align:"left"},leaves:{label:{position:"right",verticalAlign:"middle",align:"left"}},emphasis:{focus:"descendant"},expandAndCollapse:!1,animationDuration:550,animationDurationUpdate:750}]},this.relationChart.setOption(this.relationChartOption),this.relationChart.on("click",(function(e){if(1==e.data.nodeType){t.editNodeInfo=e.data;var a=t.editNodeInfo.children||[];t.editRelationArr=[],a.length<=0?t.editRelationArr.push({dbName:t.pageParam.dbName,tableName:"",columnName:""}):a.forEach((function(e){t.editRelationArr.push({dbName:e.dbName,tableName:e.tableName,columnName:e.columnName})}));var o=[],n=[];t.editRelationArr.forEach((function(e){o.indexOf(e.dbName)<0&&(o.push(e.dbName),t.dbNameChangeEvents(e)),n.indexOf(e.dbName+"."+e.tableName)<0&&(n.push(e.dbName+"."+e.tableName),t.tableNameChangeEvents(e))})),t.choiceRelationColumnVisible=!0}})),this.relationChart.on("contextmenu",(function(e){console.log(e)})),this.doGetTableColumnRelation(),b.databaseList({sourceId:this.pageParam.sourceId}).then((function(e){t.databaseList=e.data||[]})))},doGetTableColumnRelation:function(){var e=this;this.relationChart.clear(),b.getTableColumnRelation(this.pageParam).then((function(t){e.relationChartData=t.data||{},e.relationChartOption.series[0].data=[t.data||{}],e.columnListLoading=!1,e.relationChart.setOption(e.relationChartOption),setTimeout((function(){return e.relationChart.resize()}),0)}))},delTableColumnRelation:function(e){this.editRelationArr=this.editRelationArr.filter((function(t){return t!==e}))},addTableColumnRelation:function(){this.editRelationArr.push({dbName:this.pageParam.dbName,tableName:"",columnName:""})},doUpdateTableColumnRelation:function(){var e=this,t={dbName:this.editNodeInfo.dbName,tableName:this.editNodeInfo.tableName,columnName:this.editNodeInfo.columnName,sourceId:this.pageParam.sourceId,relation:JSON.stringify(this.editRelationArr)};b.updateTableColumnRelation(t).then((function(t){e.choiceRelationColumnVisible=!1,e.doGetTableColumnRelation()}))},dbNameChangeEvents:function(e){var t=this;b.tableList({sourceId:this.pageParam.sourceId,dbName:e.dbName}).then((function(a){t.$set(t.dbTableList,e.dbName,a.data||[])}))},tableNameChangeEvents:function(e){var t=this;b.tableColumnList({sourceId:this.pageParam.sourceId,dbName:e.dbName,tableName:e.tableName}).then((function(a){t.$set(t.dbTableColumnList,e.dbName+"."+e.tableName,a.data.columnList||[])}))}}},Dt=St,_t=(a("499b"),Object(C["a"])(Dt,wt,xt,!1,null,null,null)),kt=_t.exports,It={data:function(){return{columnListLoading:!1,vueQueryParam:{},tableStatusInfo:{},columnList:[],tableInfo:{},nowExecutorId:1,tableDDLInfoTab:"",tableDDLInfo:"",tableDDLInfoDialogVisible:!1,tabActiveName:"columns"}},mounted:function(){var e=this;setTimeout((function(){e.$emit("initLoadDataList",{sourceId:e.vueQueryParam.sourceId,host:e.vueQueryParam.host,dbName:e.vueQueryParam.dbName})}),500)},activated:function(){this.initQueryParam(this.$route)},components:{"data-preview":yt,"table-relation-charts":kt},methods:{initQueryParam:function(e){var t=this;this.columnListLoading||(this.columnListLoading=!0,this.vueQueryParam=e.query,b.tableColumnList(this.vueQueryParam).then((function(e){for(var a=e.data.columnList||[],o=0;o0?"编辑数据源":"新增数据源",visible:e.datasourceDialogVisible,width:"760px","close-on-click-modal":!1},on:{"update:visible":function(t){e.datasourceDialogVisible=t}}},[a("el-form",{attrs:{"label-width":"120px"}},[a("el-form-item",{attrs:{label:"分组:"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择或输入新的分组名字",filterable:"","allow-create":""},model:{value:e.newDatasource.groupName,callback:function(t){e.$set(e.newDatasource,"groupName",t)},expression:"newDatasource.groupName"}},[a("el-option",{attrs:{value:""}},[e._v("未分组")]),e._l(e.datasourceGroupList,(function(e){return a("el-option",{attrs:{value:e}})}))],2)],1),a("el-form-item",{attrs:{label:"数据源名称:"}},[a("el-input",{attrs:{placeholder:"给数据源起个中文名称"},model:{value:e.newDatasource.name,callback:function(t){e.$set(e.newDatasource,"name",t)},expression:"newDatasource.name"}})],1),a("el-form-item",{attrs:{label:"驱动类:"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"驱动类"},on:{change:e.driverClassNameChange},model:{value:e.newDatasource.driverClassName,callback:function(t){e.$set(e.newDatasource,"driverClassName",t)},expression:"newDatasource.driverClassName"}},[a("el-option",{attrs:{label:"com.mysql.jdbc.Driver",value:"com.mysql.jdbc.Driver"}}),a("el-option",{attrs:{label:"net.sourceforge.jtds.jdbc.Driver",value:"net.sourceforge.jtds.jdbc.Driver"}}),a("el-option",{attrs:{label:"oracle.jdbc.driver.OracleDriver",value:"oracle.jdbc.driver.OracleDriver"}}),a("el-option",{attrs:{label:"org.postgresql.Driver",value:"org.postgresql.Driver"}}),a("el-option",{attrs:{label:"org.apache.hive.jdbc.HiveDriver",value:"org.apache.hive.jdbc.HiveDriver"}})],1)],1),a("el-form-item",{attrs:{label:"数据源URL:"}},[a("el-input",{attrs:{placeholder:e.urlPlaceholder},model:{value:e.newDatasource.sourceUrl,callback:function(t){e.$set(e.newDatasource,"sourceUrl",t)},expression:"newDatasource.sourceUrl"}})],1),a("el-form-item",{attrs:{label:"账号:"}},[a("el-input",{attrs:{placeholder:"账号"},model:{value:e.newDatasource.sourceName,callback:function(t){e.$set(e.newDatasource,"sourceName",t)},expression:"newDatasource.sourceName"}})],1),a("el-form-item",{attrs:{label:"密码:"}},[a("el-input",{attrs:{placeholder:"密码"},model:{value:e.newDatasource.sourcePassword,callback:function(t){e.$set(e.newDatasource,"sourcePassword",t)},expression:"newDatasource.sourcePassword"}})],1),a("el-form-item",{attrs:{label:"测试连接:"}},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.testDatasourceErrLoading,expression:"testDatasourceErrLoading"}],attrs:{type:"primary"},on:{click:e.testDatasource}},[e._v("测试数据源")])],1)],1),a("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveDatasource}},[e._v("保存")]),a("el-button",{attrs:{plain:""},on:{click:function(t){e.datasourceDialogVisible=!1}}},[e._v("取消")])],1)],1),a("el-dialog",{attrs:{visible:e.dbSourceAuthDialogVisible,width:"900px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dbSourceAuthDialogVisible=t}}},[a("span",{attrs:{slot:"title"},slot:"title"},[a("span",[e._v("权限编辑")]),a("span",{staticStyle:{"margin-left":"10px",color:"#999","font-size":"12px"}},[a("i",{staticClass:"el-icon-info"}),e._v(" 添加、删除或编辑之后记得点击保存哦~")])]),a("el-row",[a("el-select",{staticStyle:{width:"750px","margin-right":"10px"},attrs:{filterable:"",remote:"","reserve-keyword":"",autoComplete:"new-password",placeholder:"请输入名字、邮箱、账号搜索用户","remote-method":e.getSearchUserList,loading:e.dbSourceAuthUserLoading},model:{value:e.dbSourceAuthNewUser,callback:function(t){e.dbSourceAuthNewUser=t},expression:"dbSourceAuthNewUser"}},e._l(e.searchUserList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.userName,value:e.id}})})),1),a("el-button",{on:{click:e.addDbSourceAuthUser}},[e._v("添加")])],1),a("el-table",{staticStyle:{width:"100%",margin:"10px 0"},attrs:{data:e.dbSourceAuthUserList,border:"",size:"mini"}},[a("el-table-column",{attrs:{prop:"userName",label:"用户",width:"150"}}),a("el-table-column",{attrs:{label:"权限"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticStyle:{width:"150px","margin-right":"10px"},attrs:{placeholder:"选择权限"},model:{value:t.row.executeAuth,callback:function(a){e.$set(t.row,"executeAuth",a)},expression:"scope.row.executeAuth"}},[a("el-option",{attrs:{value:""}},[e._v("无权限")]),a("el-option",{attrs:{value:1,label:"库表查看权"}}),a("el-option",{attrs:{value:2,label:"数据查询权"}}),a("el-option",{attrs:{value:3,label:"所有权限"}})],1),a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.descEditAuth,callback:function(a){e.$set(t.row,"descEditAuth",a)},expression:"scope.row.descEditAuth"}},[e._v("表字段注释修改权")]),a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.procEditAuth,callback:function(a){e.$set(t.row,"procEditAuth",a)},expression:"scope.row.procEditAuth"}},[e._v("函数修改权")])]}}])}),a("el-table-column",{attrs:{label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"small",type:"danger",plain:""},on:{click:function(a){return e.deleteUserDbSourceAuth(t.row)}}},[e._v("删除")])]}}])})],1),a("div",[a("el-button",{attrs:{type:"primary"},on:{click:e.saveUserDbSourceAuth}},[e._v("保存配置")])],1)],1),a("el-dialog",{attrs:{title:"测试数据源失败",visible:e.testDatasourceErrVisible,footer:null,width:"760px"},on:{"update:visible":function(t){e.testDatasourceErrVisible=t}}},[a("div",{directives:[{name:"highlight",rawName:"v-highlight"}]},[a("pre",[a("code",{domProps:{innerHTML:e._s(e.testDatasourceErrInfo)}})])])])],1)},ea=[];function ta(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function aa(e){for(var t=1;t0?a("div",{staticClass:"sql-params"},e._l(e.sqlParams,(function(t){return a("el-input",{attrs:{placeholder:"请输入"+t.key+"的值"},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"param.value"}},[a("template",{slot:"prepend"},[e._v(e._s(t.key))])],2)})),1):e._e()],1),a("el-card",[a("div",{staticStyle:{position:"relative"}},[a("div",{staticStyle:{position:"absolute",right:"0","z-index":"1"}},[a("el-dropdown",{directives:[{name:"show",rawName:"v-show",value:this.choiceResultObj[this.executeShowTable]&&this.choiceResultObj[this.executeShowTable].length>0,expression:"this.choiceResultObj[this.executeShowTable] && this.choiceResultObj[this.executeShowTable].length > 0"}],on:{command:e.handleCopyCheckLineCommand}},[a("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-document-copy"}},[e._v(" 复制选中行"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"insert"}},[e._v("SQL Inserts")]),a("el-dropdown-item",{attrs:{command:"update"}},[e._v("SQL Updates")]),a("el-dropdown-item",{attrs:{command:"json"}},[e._v("JSON")])],1)],1)],1),a("el-tabs",{model:{value:e.executeShowTable,callback:function(t){e.executeShowTable=t},expression:"executeShowTable"}},[a("el-tab-pane",{attrs:{label:"执行历史",name:"tabHistory"}},[a("el-table",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.myHistoryListList,stripe:"",border:""}},[a("el-table-column",{attrs:{prop:"createTime",label:"执行时间",width:"160px"}}),a("el-table-column",{attrs:{prop:"content",label:"SQL"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("pre",{staticClass:"sql-content-line",attrs:{title:t.row.content},on:{dblclick:function(a){return e.inputFavoriteSql(t.row)}}},[e._v(e._s(t.row.content))])]}}])}),a("el-table-column",{attrs:{label:"操作",width:"160px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){return e.inputFavoriteSql(t.row)}}},[e._v("输入")]),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"mini",type:"success"},on:{click:function(a){return e.addFavorite(t.row.content)}}},[e._v("收藏")])]}}])})],1)],1),a("el-tab-pane",{attrs:{label:"我的收藏",name:"tabFavorite"}},[a("el-table",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll"}],staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.myFavoriteList,stripe:"",border:""}},[a("el-table-column",{attrs:{prop:"createTime",label:"执行时间",width:"160px"}}),a("el-table-column",{attrs:{prop:"content",label:"SQL"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("pre",{staticClass:"sql-content-line",attrs:{title:t.row.content},on:{dblclick:function(a){return e.inputFavoriteSql(t.row)}}},[e._v(e._s(t.row.content))])]}}])}),a("el-table-column",{attrs:{label:"操作",width:"160px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){return e.inputFavoriteSql(t.row)}}},[e._v("输入")]),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"mini",type:"danger"},on:{click:function(a){return e.delFavorite(t.row)}}},[e._v("删除")])]}}])})],1)],1),e.executeResultInfo?a("el-tab-pane",{attrs:{label:"信息",name:"tabInfo"}},[a("pre",{staticStyle:{"white-space":"pre-wrap"}},[e._v(e._s(e.executeResultInfo))])]):e._e(),e.executeError?a("el-tab-pane",{attrs:{label:"错误",name:"tabError"}},[a("div",{staticStyle:{color:"#f00"}},[e._v(e._s(e.executeError))])]):e._l(e.executeResultList,(function(t){return t.index?a("el-tab-pane",{attrs:{label:"结果"+t.index,name:t.name}},[t.errMsg?a("div",{staticStyle:{color:"#f00"}},[e._v(e._s(t.errMsg))]):t.dataList.length<=0?a("div",{staticStyle:{"text-align":"center",color:"#aaa",padding:"20px 0"}},[e._v("暂无数据")]):a("el-table",{staticClass:"execute-result-table",staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:t.dataList,stripe:"",border:"","max-height":"600"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{type:"index",width:"50"}}),e._l(t.dataCols,(function(t){return a("el-table-column",{attrs:{prop:t.prop,label:t.prop,width:t.width},scopedSlots:e._u([{key:"default",fn:function(e){return[a("textarea",{staticClass:"el-textarea__inner",attrs:{readonly:"",rows:"1"},domProps:{value:e.row[t.prop]}})]}}],null,!0)})}))],2)],1):e._e()}))],2)],1)])],1),a("el-dialog",{attrs:{visible:e.exportConditionVisible,width:"500px",title:"选择更新语句条件"},on:{"update:visible":function(t){e.exportConditionVisible=t}}},[a("div",[e._v(" 更新条件列: "),a("el-select",{staticStyle:{width:"370px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.conditionDataColsChoice,callback:function(t){e.conditionDataColsChoice=t},expression:"conditionDataColsChoice"}},e._l(e.conditionDataCols,(function(e){return a("el-option",{key:e.prop,attrs:{label:e.prop,value:e.prop}})})),1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.exportConditionVisible=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.doCopyCheckLineUpdate}},[e._v("确 定")])],1)]),a("span",{staticStyle:{visibility:"hidden","white-space":"nowrap",position:"fixed"},attrs:{id:"widthCalculate"}})],1)},ma=[],fa={parser:function(e,t,a){var o=[];if(!e)return o;var n=e.indexOf(t,0);if(-1==n)return o;var r=0,i="";while(n>-1){if(n>0&&"\\"==e[n-1])r=n+t.length;else{i="",r=n+t.length;var s=e.indexOf(a,r);while(s>-1){if(!(s>r&&"\\"==e[s-1])){i+=e.substr(r,s-r),r=s+a.length;break}i+=e.substr(r,s-r-1),r=s+a.length,s=e.indexOf(a,r)}-1==s?r=e.length:(i&&o.push(i),r=s+a.length)}n=e.indexOf(t,r)}return o},parserArr:function(e,t){var a=this,o={};t.forEach((function(t){var n=a.parser(e,t.start,t.end);n.forEach((function(e){return o[e]=1}))}));var n=[];for(var r in o)n.push(r);return n}},ba={data:function(){return{datasourceList:[],choiceDatasourceId:"",datasourceOptions:[],datasourceGroupList:[],choiceDatasourceGroup:"",databaseList:[],choiceDatabase:"",editorDbProduct:"",editorDbInfo:[],editorDbTableInfo:{},editorColumnInfo:{},sqlExecuting:!1,executeResultList:[],executeResultInfo:"",executeShowTable:"tabHistory",sqlExecutorEditor:{},nowExecutorId:1,executeError:"",myFavoriteList:[],myHistoryListList:[],choiceResultObj:{},exportConditionVisible:!1,conditionDataCols:[],conditionDataColsChoice:[],sqlExecutorContent:"",sqlEditorConfig:{wrap:!0,autoScrollEditorIntoView:!0,enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0,minLines:15,maxLines:40},executorSource:{},sqlParams:[],sqlParamWaiting:!1,sqlParamHistory:{}}},components:{"ace-editor":mt},mounted:function(){this.loadDatasourceList()},methods:{sqlExecutorInit:function(e){var t=this;this.sqlExecutorEditor=e,this.sqlExecutorEditor.setFontSize(16);var a=this;this.sqlExecutorEditor.commands.addCommand({name:"execute-sql",bindKey:{win:"Ctrl-R|Ctrl-Shift-R|Ctrl-Enter",mac:"Command-R|Command-Shift-R|Command-Enter"},exec:function(e){a.doExecutorSql()}}),e.on("change",(function(){t.sqlParamWaiting||(t.sqlParamWaiting=!0,setTimeout((function(){var a=e.getValue(),o=fa.parserArr(a,[{start:"${",end:"}"},{start:"#{",end:"}"}]);t.sqlParams=[],o.forEach((function(e){t.sqlParams.push({key:e,value:t.sqlParamHistory[e]||""})})),t.sqlParamWaiting=!1}),300))}))},cancelExecutorSql:function(){var e=this;b.executeSqlCancel({executeId:this.nowExecutorId}).then((function(){e.$message.success("取消成功")}))},loadHistoryAndFavoriteList:function(){this.loadHistoryList(),this.loadFavoriteList()},loadFavoriteList:function(){var e=this;b.favoriteList({sourceId:this.choiceDatasourceId}).then((function(t){e.myFavoriteList=t.data||[]}))},loadHistoryList:function(){var e=this;b.historyList({sourceId:this.choiceDatasourceId}).then((function(t){e.myHistoryListList=t.data||[]}))},addFavorite:function(e){var t=this;e||(e=this.sqlExecutorEditor.getSelectedText(),e||(e=this.sqlExecutorEditor.getValue()));var a={};this.sqlParams.forEach((function(e){e.value&&(a[e.key]=e.value)}));var o={name:"我的收藏",content:e,paramJson:JSON.stringify(a),datasourceId:this.choiceDatasourceId};b.updateFavorite(o).then((function(){t.$message.success("收藏成功"),t.loadFavoriteList()}))},delFavorite:function(e){var t=this;b.updateFavorite({id:e.id,yn:0}).then((function(){t.$message.success("删除成功"),t.loadFavoriteList()}))},inputFavoriteSql:function(e){if(this.sqlExecutorEditor.setValue(e.content,1),e.paramJson){var t=JSON.parse(e.paramJson);for(var a in t)this.sqlParamHistory[a]=t[a]}},formatterSql:function(){var e=this.sqlExecutorEditor.getSelectedText();if(e){var t=this.sqlExecutorEditor.getSelectionRange();this.sqlExecutorEditor.remove(t)}else e=this.sqlExecutorEditor.getValue(),this.sqlExecutorEditor.setValue("",1);e&&(e=ut.a.format(e),this.sqlExecutorEditor.insert(e))},doExecutorSql:function(){var e=this;if(this.choiceDatasourceId){this.executeError="",this.executeUseTime="",this.executeResultList=[];var t={};this.sqlParams.forEach((function(a){a.value&&(t[a.key]=a.value,e.sqlParamHistory[a.key]=a.value)})),this.nowExecutorId=(new Date).getTime()+Math.ceil(1e3*Math.random());var a=this.sqlExecutorEditor.getSelectedText();a||(a=this.sqlExecutorEditor.getValue()),this.sqlExecuting=!0,b.queryExecuteSql({sourceId:this.choiceDatasourceId,dbName:this.choiceDatabase,executeId:this.nowExecutorId,sql:a,params:JSON.stringify(t)}).then((function(t){if(e.sqlExecuting=!1,200!=t.errCode)return e.executeShowTable="tabError",void(e.executeError=t.errMsg);for(var a=t.data||[],o=[],n="",r=1,i=0;i0&&(e.choiceDatasourceId=e.datasourceList[0].id,e.executorSource={sourceId:e.choiceDatasourceId},e.loadDatabaseList(),e.loadSourceBaseInfo(),e.loadHistoryAndFavoriteList())}))},loadDatabaseList:function(){var e=this;b.databaseList({sourceId:this.choiceDatasourceId}).then((function(t){if(e.databaseList=t.data||[],e.databaseList.length>0){var a=["information_schema","master","model","msdb","tempdb"],o=e.databaseList.find((function(e){return a.indexOf(e.dbName)<0}));e.choiceDatabase=o?o.dbName:e.databaseList[0].dbName,e.executorSource={sourceId:e.choiceDatasourceId,dbName:e.choiceDatabase}}}))},loadSourceBaseInfo:function(){var e=this;b.getSourceBaseInfo({sourceId:this.choiceDatasourceId}).then((function(t){var a=t.data||{};e.editorDbProduct=a.product||""}))},sourceGroupChangeEvents:function(){for(var e=[],t=0;t0&&(this.choiceDatasourceId=e[0].id,this.executorSource={sourceId:this.choiceDatasourceId},this.loadDatabaseList(),this.loadSourceBaseInfo(),this.loadHistoryAndFavoriteList())},datasourceChangeEvents:function(){this.executorSource={sourceId:this.choiceDatasourceId},this.loadDatabaseList(),this.loadSourceBaseInfo(),this.loadHistoryAndFavoriteList()},databaseChangeEvents:function(){this.executorSource={sourceId:this.choiceDatasourceId,dbName:this.choiceDatabase}},getExecuteInfoStr:function(e){var t=e.sql;return t+="\n> 状态:"+(e.errMsg?"ERROR":"OK"),e.updateCount>=0&&(t+="\n> 影响行数:"+e.updateCount),t+="\n> 耗时:"+(e.useTime||0)/1e3+"s",t+="\n\n",t},dealExecuteResult:function(e){var t=e.result||[],a=[];if(t.length>0){var o=t[0];for(var n in o){document.getElementById("widthCalculate").innerText=n;var r=document.getElementById("widthCalculate").offsetWidth;document.getElementById("widthCalculate").innerText=o[n];var i=document.getElementById("widthCalculate").offsetWidth,s=r>i?r:i;s=s<50?50:s,s=s>200?200:s,a.push({prop:n,width:s+25})}}var l={};return l.dataList=t,l.dataCols=a,l.useTime=e.useTime||0,l.errMsg=e.errMsg||"",l.updateCount=e.updateCount,l},handleSelectionChange:function(e){this.$set(this.choiceResultObj,this.executeShowTable,e)},doCopyCheckLineUpdate:function(){var e=this,t=this.choiceResultObj[this.executeShowTable]||[];if(t.length>0){var a=this.executeResultList.find((function(t){return t.name===e.executeShowTable})).dataCols,o=lt.format("update",this.editorDbProduct,a,t,this.conditionDataColsChoice);this.conditionDataColsChoice=[],this.exportConditionVisible=!1,this.$copyText(o).then((function(t){return e.$message.success("内容已复制到剪切板!")}),(function(t){return e.$message.error("抱歉,复制失败!")}))}},handleCopyCheckLineCommand:function(e){var t=this,a=this.choiceResultObj[this.executeShowTable]||[];if(a.length>0){var o=this.executeResultList.find((function(e){return e.name===t.executeShowTable})).dataCols;if("update"===e)return this.conditionDataCols=o,void(this.exportConditionVisible=!0);var n=lt.format(e,this.editorDbProduct,o,a,"");this.$copyText(n).then((function(e){return t.$message.success("内容已复制到剪切板!")}),(function(e){return t.$message.error("抱歉,复制失败!")}))}}}},ga=ba,va=(a("7002"),Object(C["a"])(ga,pa,ma,!1,null,null,null)),ya=va.exports,wa=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"data-transfer-vue"},[a("div",{staticStyle:{padding:"0 10px",height:"100%","box-sizing":"border-box"}},[a("el-card",[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("数据互导工具")]),a("a",{attrs:{target:"_blank",title:"点击查看如何使用",href:"http://doc.zyplayer.com/doc-wiki#/page/share/view?pageId=128&space=23f3f59a60824d21af9f7c3bbc9bc3cb"}},[a("i",{staticClass:"el-icon-info",staticStyle:{color:"#999"}})])]),a("div",{staticStyle:{"margin-bottom":"10px","text-align":"right"}},[a("el-button",{attrs:{type:"success",icon:"el-icon-plus"},on:{click:e.createNewTask}},[e._v("新建")]),a("el-button",{attrs:{type:"primary",loading:e.loadDataListLoading,icon:"el-icon-refresh"},on:{click:e.loadGetTaskList}},[e._v("查询")])],1),a("el-table",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.taskList,stripe:"",border:""}},[a("el-table-column",{attrs:{prop:"id",label:"ID",width:"55"}}),a("el-table-column",{attrs:{prop:"name",label:"任务名称"}}),a("el-table-column",{attrs:{label:"条数查询"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.needCount?"是":"否"))]}}])}),a("el-table-column",{attrs:{prop:"lastExecuteStatus",label:"最后执行状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.lastExecuteStatus?a("el-tag",[e._v("未执行")]):1==t.row.lastExecuteStatus?a("el-tag",{attrs:{type:"info"}},[e._v("执行中")]):2==t.row.lastExecuteStatus?a("el-tag",{attrs:{type:"success"}},[e._v("执行成功")]):3==t.row.lastExecuteStatus?a("el-tag",{attrs:{type:"danger"}},[e._v("执行失败")]):4==t.row.lastExecuteStatus?a("el-tag",{attrs:{type:"warning"}},[e._v("取消执行")]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"lastExecuteTime",label:"最后执行时间"}}),a("el-table-column",{attrs:{prop:"createUserName",label:"创建人"}}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间"}}),a("el-table-column",{attrs:{label:"操作",width:"290"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){return e.viewTask(t.row.id)}}},[e._v("查看")]),a("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(a){return e.editTask(t.row)}}},[e._v("编辑")]),a("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(a){return e.executeTask(t.row.id)}}},[e._v("执行")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){return e.deleteTask(t.row.id)}}},[e._v("删除")])]}}])})],1)],1)],1),a("el-dialog",{attrs:{visible:e.taskEditDialogVisible,width:"900px","close-on-click-modal":!1},on:{"update:visible":function(t){e.taskEditDialogVisible=t}}},[e.taskEditInfo.id?a("span",{attrs:{slot:"title"},slot:"title"},[e._v("编辑任务")]):a("span",{attrs:{slot:"title"},slot:"title"},[e._v("新建任务")]),a("el-form",{attrs:{"label-width":"120px"}},[a("el-form-item",{attrs:{label:"任务名称:"}},[a("el-input",{attrs:{placeholder:"任务名称"},model:{value:e.taskEditInfo.name,callback:function(t){e.$set(e.taskEditInfo,"name",t)},expression:"taskEditInfo.name"}})],1),a("el-form-item",{attrs:{label:"查询数据源:"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择查询数据源"},model:{value:e.taskEditInfo.queryDatasourceId,callback:function(t){e.$set(e.taskEditInfo,"queryDatasourceId",t)},expression:"taskEditInfo.queryDatasourceId"}},e._l(e.datasourceOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"查询SQL:"}},[a("ace-editor",{attrs:{lang:"sql",theme:"monokai",width:"100%",height:"100",options:e.editSqlConfig},on:{init:e.querySqlInit},model:{value:e.querySqlContent,callback:function(t){e.querySqlContent=t},expression:"querySqlContent"}})],1),a("el-form-item",{attrs:{label:"总条数查询:"}},[a("el-radio",{attrs:{label:0},model:{value:e.taskEditInfo.needCount,callback:function(t){e.$set(e.taskEditInfo,"needCount",t)},expression:"taskEditInfo.needCount"}},[e._v("不查询")]),a("el-radio",{attrs:{label:1},model:{value:e.taskEditInfo.needCount,callback:function(t){e.$set(e.taskEditInfo,"needCount",t)},expression:"taskEditInfo.needCount"}},[e._v("自动查询")])],1),a("el-form-item",{attrs:{label:"入库数据源:"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择写入数据源"},model:{value:e.taskEditInfo.storageDatasourceId,callback:function(t){e.$set(e.taskEditInfo,"storageDatasourceId",t)},expression:"taskEditInfo.storageDatasourceId"}},e._l(e.datasourceOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"入库SQL:"}},[a("ace-editor",{attrs:{lang:"sql",theme:"monokai",width:"100%",height:"100",options:e.editSqlConfig},on:{init:e.storageSqlInit},model:{value:e.storageSqlContent,callback:function(t){e.storageSqlContent=t},expression:"storageSqlContent"}}),a("el-button",{staticStyle:{"margin-top":"10px"},on:{click:e.autoFillStorageSql}},[e._v("智能填充")])],1)],1),a("div",{staticStyle:{"text-align":"center"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveEditTask}},[e._v("保存")]),a("el-button",{attrs:{type:"warning"},on:{click:function(t){e.taskEditDialogVisible=!1}}},[e._v("取消")])],1)],1),a("el-dialog",{attrs:{visible:e.taskViewDialogVisible,width:"80%"},on:{"update:visible":function(t){e.taskViewDialogVisible=t}}},[a("span",{attrs:{slot:"title"},slot:"title"},[e._v("查看任务")]),a("el-form",{attrs:{"label-width":"120px"}},[a("el-form-item",{attrs:{label:"任务名称:"}},[e._v(e._s(e.taskEditInfo.name))]),a("el-form-item",{attrs:{label:"最后执行状态:"}},[0==e.taskEditInfo.lastExecuteStatus?a("el-tag",[e._v("未执行")]):1==e.taskEditInfo.lastExecuteStatus?a("el-tag",{attrs:{type:"info"}},[e._v("执行中")]):2==e.taskEditInfo.lastExecuteStatus?a("el-tag",{attrs:{type:"success"}},[e._v("执行成功")]):3==e.taskEditInfo.lastExecuteStatus?a("el-tag",{attrs:{type:"danger"}},[e._v("执行失败")]):4==e.taskEditInfo.lastExecuteStatus?a("el-tag",{attrs:{type:"warning"}},[e._v("取消执行")]):e._e()],1),a("el-form-item",{attrs:{label:"最后执行时间:"}},[e._v(e._s(e.taskEditInfo.lastExecuteTime))]),a("el-form-item",{attrs:{label:"执行信息:"}},[a("pre",{staticStyle:{"word-wrap":"break-word","word-break":"break-all","white-space":"pre-wrap","line-height":"22px"}},[e._v(e._s(e.taskEditInfo.lastExecuteInfo))])]),1==e.taskEditInfo.lastExecuteStatus?a("el-form-item",{attrs:{label:"操作:"}},[a("el-button",{attrs:{type:"success",icon:"el-icon-refresh",loading:e.viewTaskLoading},on:{click:function(t){return e.viewTask(e.taskEditInfo.id)}}},[e._v("刷新")]),a("el-button",{attrs:{type:"danger"},on:{click:e.cancelTask}},[e._v("取消执行")])],1):e._e()],1)],1)],1)},xa=[],Ca={data:function(){return{viewTaskLoading:!1,loadDataListLoading:!1,datasourceOptions:[],queryDatasourceId:"",storageDatasourceId:"",taskList:[],datasourceMap:{},taskViewDialogVisible:!1,taskEditDialogVisible:!1,taskEditInfo:{},querySqlEditor:{},storageSqlEditor:{},querySqlContent:"",storageSqlContent:"",editSqlConfig:{wrap:!0,autoScrollEditorIntoView:!0,enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0,minLines:10,maxLines:25}}},components:{"ace-editor":mt},mounted:function(){this.loadDatasourceList()},methods:{editTask:function(e){var t=this;this.taskEditInfo=JSON.parse(JSON.stringify(e)),this.taskEditDialogVisible=!0,setTimeout((function(){t.querySqlEditor.setValue(t.taskEditInfo.querySql,1),t.storageSqlEditor.setValue(t.taskEditInfo.storageSql,1)}),200)},querySqlInit:function(e){this.querySqlEditor=e,this.querySqlEditor.setFontSize(16)},storageSqlInit:function(e){this.storageSqlEditor=e,this.storageSqlEditor.setFontSize(16)},createNewTask:function(){var e=this;this.taskEditInfo={querySql:"",storageSql:"",name:"",needCount:1,queryDatasourceId:"",storageDatasourceId:""},this.taskEditDialogVisible=!0,setTimeout((function(){e.querySqlEditor.setValue("",1),e.storageSqlEditor.setValue("",1)}),200)},deleteTask:function(e){var t=this;this.$confirm("确定要删除此任务吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){b.transferUpdate({id:e,delFlag:1}).then((function(){t.$message.success("删除成功"),t.loadGetTaskList()}))})).catch((function(){}))},executeTask:function(e){var t=this;this.$confirm("确定要执行一次此任务吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){b.transferStart({id:e}).then((function(){t.$message.success("任务提交成功")}))})).catch((function(){}))},saveEditTask:function(){var e=this;this.taskEditInfo.querySql=this.querySqlEditor.getValue(),this.taskEditInfo.storageSql=this.storageSqlEditor.getValue(),b.transferUpdate(this.taskEditInfo).then((function(){e.$message.success("保存成功"),e.taskEditDialogVisible=!1,e.loadGetTaskList()}))},viewTask:function(e){var t=this;this.viewTaskLoading=!0,this.taskViewDialogVisible=!0,b.transferDetail({id:e}).then((function(e){t.taskEditInfo=e.data||{},setTimeout((function(){t.viewTaskLoading=!1}),300)}))},cancelTask:function(){var e=this;this.$confirm("确定要取消执行此任务吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){b.transferCancel({id:e.taskEditInfo.id}).then((function(){e.$message.success("取消成功"),e.viewTask(e.taskEditInfo.id)}))})).catch((function(){}))},loadGetTaskList:function(){var e=this;this.loadDataListLoading=!0,b.transferList({}).then((function(t){e.taskList=t.data||[],setTimeout((function(){e.loadDataListLoading=!1}),800)}))},autoFillStorageSql:function(){var e=this,t=this.querySqlEditor.getValue();b.transferSqlColumns({sql:t}).then((function(t){var a=t.data||[];if(a.length<=0)e.$message.error("查询的字段不明确,不能自动填充");else{var o="\n";o+="insert into TableName (\n";for(var n=0;n